mzg8p8.classicar.biz Open in urlscan Pro
2606:4700:3037::6815:48d0  Public Scan

Submitted URL: http://mzg8p8.classicar.biz/cp/javascript/vendors.js?1728393047
Effective URL: https://mzg8p8.classicar.biz/cp/javascript/vendors.js?1728393047
Submission: On November 04 via api from US — Scanned from US

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),c=n.RegExp,u=c.prototype;i&&s((function(){var e=!0;try{c(".","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(u,"flags").get.call(t)!==n||r!==n}))&&o(u,"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),c=r(20).CONFIGURABLE,u=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")||c&&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||u(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"),c=s&&"something"===function(){}.name,u=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},(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.38.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.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),c=r(27),u=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,u(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(!c(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),c=TypeError,u=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 u(e,t,r)}:u:function(e,t,r){if(a(e),t=s(t),a(r),i)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("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),c=r(48),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,c=a(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!i(r)||o(r))return r;throw new u("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,c=o.Deno,u=s&&s.versions||c&&c.version,l=u&&u.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,t,r)=>{"use strict";var n=r(8).navigator,i=n&&n.userAgent;e.exports=i?String(i):""},(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),c=r(40),u=n.Symbol,l=i("wks"),f=c?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return o(l,e)||(l[e]=s&&o(u,e)?u[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(87)},(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),c=r(64),u=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],!u(m?l:h+(g?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;c(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),c=r(34),u=r(16),l=r(30),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=s(e),t=c(t),l)try{return f(e,t)}catch(e){}if(u(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 c=s.enumerable,u=void 0!==s.name?s.name:t;if(n(r)&&o(r,u,s),s.global)c?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?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),c=a.f,u=o.f,l=0;l<s.length;l++){var f=s[l];n(e,f)||r&&n(r,f)||c(e,f,u(t,f))}}},(e,t,r)=>{"use strict";var n=r(38),i=r(13),o=r(66),a=r(75),s=r(33),c=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),r=a.f;return r?c(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),c=n([].push);e.exports=function(e,t){var r,n=o(e),u=0,l=[];for(r in n)!i(s,r)&&i(n,r)&&c(l,r);for(;t.length>u;)i(n,r=t[u++])&&(~a(l,r)||c(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),c=o(s);if(0===c)return!e&&-1;var u,l=i(a,c);if(e&&r!=r){for(;c>l;)if((u=s[l++])!=u)return!0}else for(;c>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=c[s(e)];return r===l||r!==u&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},(e,t,r)=>{"use strict";var n,i,o,a,s=r(8),c=r(78),u=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(){c(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=u(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(86);e.exports="NODE"===n},(e,t,r)=>{"use strict";var n=r(8),i=r(43),o=r(62),a=function(e){return i.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},(e,t,r)=>{"use strict";var n=r(57),i=r(8),o=r(77).set,a=r(88),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(86),c=r(43),u=r(82),l=r(83),f=i.Function,p=/MSIE .\./.test(c)||"BUN"===s&&((n=i.Bun.version.split(".")).length<3||"0"===n[0]&&(n[1]<3||"3"===n[1]&&"0"===n[2]));e.exports=function(e,t){var r=t?2:1;return p?function(n,i){var s=l(arguments.length,1)>r,c=a(n)?n:f(n),p=s?u(arguments,r):[],d=s?function(){o(c,this,p)}:c;return t?e(d,i):e(d)}:e}},,,,,(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:()=>u});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 c(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var u=function(){function e(t,r,i,u){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=u||{},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=u&&u.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:c(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:c(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:c(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:()=>u,__exportStar:()=>y,__extends:()=>i,__generator:()=>m,__importDefault:()=>R,__importStar:()=>I,__makeTemplateObject:()=>k,__metadata:()=>d,__param:()=>c,__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 c(e,t){return function(r,n){t(r,n,e)}}function u(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,c=n.kind,u="getter"===c?"get":"setter"===c?"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"===c?{get:f.get,set:f.set}:f[u],h);if("accessor"===c){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"===c?i.unshift(s):f[u]=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{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}function m(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}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=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",(function(e){return function(t){return Promise.resolve(t).then(e,u)}})),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(c,u):l(o[0][2],r)}catch(e){l(o[0][3],e)}var r}function c(e){s("next",e)}function u(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}var r,n=0;return function i(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,(function(e){return t(e),i()}))}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}const j={__extends:i,__assign:o,__rest:a,__decorate:s,__param:c,__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:()=>u,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:()=>c});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 c(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 u=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),c=r(109),u=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 c=this.clonePosition();this.bump(),n.push({type:a.TYPE.pound,location:p(c,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,c=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!A(this.char()))return this.error(o.ErrorKind.INVALID_TAG,p(c,this.clonePosition()));var u=this.clonePosition();return n!==this.parseTagName()?this.error(o.ErrorKind.UNMATCHED_CLOSING_TAG,p(u,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(c,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 c=p(r,this.clonePosition());return{val:{type:a.TYPE.literal,value:n,location:c},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,u.getBestPattern)(y,this.locale));var b={type:a.SKELETON_TYPE.dateTime,pattern:v,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?(0,c.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,c.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,c.parseNumberSkeleton)(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,a=!1,s=[],c=new Set,u=n.value,l=n.location;;){if(0===u.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()),u=this.message.slice(f.offset,this.offset())}if(c.has(u))return this.error("select"===t?o.ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR:o.ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===u&&(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([u,{value:m.val,location:p(h,this.clonePosition())}]),c.add(u),this.bumpSpace(),u=(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 c(e){return e.type===n.date}function u(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:()=>c,isDateTimeSkeleton:()=>m,isLiteralElement:()=>o,isNumberElement:()=>s,isNumberSkeleton:()=>h,isPluralElement:()=>f,isPoundElement:()=>p,isSelectElement:()=>l,isTagElement:()=>d,isTimeElement:()=>u}),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),c=0,u=s;c<u.length;c++){if(0===u[c].length)throw new Error("Invalid number skeleton")}t.push({stem:a,options:s})}return t}var a=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,s=/^(@+)?(\+|#+)?[rs]?$/g,c=/(\*)(0+)|(#+)(0+)|(0+)/g,u=/^(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)),!u.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(c,(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(u.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),c=a<2?1:3+(a>>1),u=o(t);for("H"!=u&&"k"!=u||(c=0);c-- >0;)r+="a";for(;s-- >0;)r=u+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:c;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 c=function(){return JSON.stringify(arguments)};function u(){this.cache=Object.create(null)}u.prototype.get=function(e){return this.cache[e]},u.prototype.set=function(e,t){this.cache[e]=t};var l={create:function(){return new u}},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,c,u,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(!u||!(g in u))throw new o.MissingValueError(g,f);var y=u[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?c.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?c.time[m.style]:(0,i.isDateTimeSkeleton)(m.style)?m.style.parsedOptions:c.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?c.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=u[_];if(!a(S))throw new o.InvalidValueTypeError(_,"function",f);var E=S(s(b,t,r,c,u,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,c,u))}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,c,u,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:()=>c});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),c=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 c=[];i.arrayEach(o,(function(e){c.push(r(e))})),s=a+"="+c.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 c=o.update(t).digest(r);return n&&n(null,c),c}var u=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),u+=e.length,l._continueReading()},l._continueReading=function(){if(u>=t.size)n(null,o.digest(r));else{var e=u+524288;e>t.size&&(e=t.size),l.readAsArrayBuffer(a.call(t,u,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,c=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(u,o+(e.retryAfter||0))}r(e)},u=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),c(a)}}))}),c)};n.util.defer(u)},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]]=c(r[s[a]]||{},n[s[a]]);for(a=0,s=Object.keys(o);a<s.length;a++)r[s[a]]=c(r[s[a]]||{},o[s[a]]);return r;function c(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.1691.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,c=new i;1===o&&(o="1.0"),r.awsQueryCompatible&&(t.params||(t.params={}),Object.assign(t.params,e.params)),t.body=c.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 c=new n.XML.Parser;if(r&&r.members&&!r.members._XAMZRequestId){var u=a.create({type:"string"},{api:{protocol:"query"}},"requestId");r.members._XAMZRequestId=u}var l=c.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 c=o(n);s(c=e?e+"."+c:c,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 c="."+(n+1);if("ec2"===r.api.protocol)c+="";else if(r.flattened){if(a.name){var u=e.split(".");u.pop(),u.push(o(a)),e=u.join(".")}}else c="."+(a.name?a.name:"member")+c;s(e+c,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+++".",c=a+(r.key.name||"key"),u=a+(r.value.name||"value");s(e+c,t,r.key,i),s(e+u,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 c(e){s.apply(this,arguments),o(this,"isComposite",!0),e.flattened&&o(this,"flattened",e.flattened||!1)}function u(e,t){var r=this,i=null,u=!this.isShape;c.apply(this,arguments),u&&(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(c.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;c.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:u,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:u,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 c=new RegExp("\\{"+t.name+"(\\+)?\\}");o=o.replace(c,(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 c=[];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++)c.push(n.uriEscape(String(e))+"="+a[e][t])})),o+=c.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:"",c=new RegExp("^"+s+"(.+)","i");n.each(i.headers,(function(t,n){var i=t.match(c);null!==i&&(r[e][i[1]]=n)}))}else if("header"===t.location){if(void 0!==a[o]){var u=t.isJsonValue?n.base64.decode(a[o]):a[o];r[e]=t.toType(u)}}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),c=r(126),u=["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),u.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 u=s.members[s.payload],l=e.httpResponse.body;if(u.isEventStream)f=new c,e.data[s.payload]=i.createEventStream(2===n.HttpClient.streamsApiVersion?e.httpResponse.stream:l,f,u);else if("structure"===u.type||"list"===u.type){var f=new c;e.data[s.payload]=f.parse(l,u)}else"binary"===u.type||u.isStreaming?e.data[s.payload]=l:e.data[s.payload]=u.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)&&u.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 c=s.name;e.httpRequest.body=r.toXML(o,s,c,!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],c=s.output,u=(s.hasEventOutput,c.payload);if(u){var l=c.members[u];l.isEventStream?(t=new n.XML.Parser,e.data[u]=i.createEventStream(2===n.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,t,l)):"structure"===l.type?(t=new n.XML.Parser,e.data[u]=t.parse(a.toString(),l)):"binary"===l.type||l.isStreaming?e.data[u]=a:e.data[u]=l.toType(a)}else if(a.length>0){var f=(t=new n.XML.Parser).parse(a.toString(),c);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],u=o.name;if(null!=a)if(o.isXmlAttribute)e.addAttribute(u,a);else if(o.flattened)s(e,a,o);else{var l=new i(u);e.addChildNode(l),c(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 c=new i(r.flattened?r.name:"entry");e.addChildNode(c);var u=new i(o),l=new i(a);c.addChildNode(u),c.addChildNode(l),s(u,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 c(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 c(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),c=r(144),u=r(122),l=u.property,f=u.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&&c[p]&&l(this,"xmlNoDefaultLists",c[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)}),u.string.lowerFirst,(function(e,t){!0===t.endpointoperation&&l(r,"endpointOperation",u.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)}),u.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"},"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"},"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"},"qapps":{"name":"QApps"},"ssmquicksetup":{"prefix":"ssm-quicksetup","name":"SSMQuickSetup"},"pcs":{"name":"PCS"}}')},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 c=e.shift();if(c._isAsync)return void c.apply(o,t.concat([s]));try{c.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,c=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;c.isFipsRegion(t)&&(e.region=c.getRealRegion(t),e.useFipsEndpoint=!0),c.isGlobalRegion(t)&&(e.region=c.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,c=0,u=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,c++}),l),e.on("validateResponse",(function(){i=Math.round(n.util.realClock.now()-r)})),e.addNamedListener("API_CALL_ATTEMPT","success",(function(){var r=u.apiAttemptEvent(e);r.Timestamp=t,r.AttemptLatency=i>=0?i:0,r.Region=a,u.emit("apiCallAttempt",[r])})),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",(function(){var o=u.attemptFailEvent(e);o.Timestamp=t,i=i||Math.round(n.util.realClock.now()-r),o.AttemptLatency=i>=0?i:0,o.Region=a,u.emit("apiCallAttempt",[o])})),e.addNamedListener("API_CALL","complete",(function(){var t=u.apiCallEvent(e);if(t.AttemptCount=c,!(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),u.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,c=(0,n.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new s(c),c.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 c=r?n?i.dualstackFipsRules:i.fipsRules:n?i.dualstackRules:i.rules;if(Object.prototype.hasOwnProperty.call(c,s)){var u=c[s];"string"==typeof u&&(u=i.patterns[u]),e.isGlobalEndpoint=!!u.globalEndpoint,u.signingRegion&&(e.signingRegion=u.signingRegion),u.signatureVersion||(u.signatureVersion="v4");var l="bearer"===(e.api&&e.api.signatureVersion);return void o(e,Object.assign({},u,{signatureVersion:l?"bearer":u.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","^eu\\-isoe\\-west\\-1$":"cloud.adc-e.uk","^us\\-isof\\-\\w+\\-\\d+$":"csp.hci.ic.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"},"us-isof-*/route53":"globalUsIsof","eu-isoe-*/route53":"globalEuIsoe","*/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"},"globalUsIsof":{"endpoint":"{service}.csp.hci.ic.gov","globalEndpoint":true,"signingRegion":"us-isof-south-1"},"globalEuIsoe":{"endpoint":"{service}.cloud.adc-e.uk","globalEndpoint":true,"signingRegion":"eu-isoe-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],c=new a(e.httpRequest,r.getSigningName(e),{signatureCache:r.config.signatureCache,operation:s,signatureVersion:r.api.signatureVersion});c.setServiceClientId(r._clientId),delete e.httpRequest.headers.Authorization,delete e.httpRequest.headers.Date,delete e.httpRequest.headers["X-Amz-Date"],c.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,c=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(c.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&&c.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,c=e.httpResponse.statusCode,u=t.params;t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input&&(u=a(t.service.api.operations[t.operation].input,t.params));var l=r(159).inspect(u,!0,null),f="";return s&&(f+=""),f+="[AWS "+t.service.serviceIdentifier+" "+c,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 c(e,t){var r={};return s(r,e.params,t),r}function u(e){var t=e.service,r=t.api,o=r.operations?r.operations[e.operation]:void 0,s=c(e,o?o.input:void 0),u=a(e);Object.keys(s).length>0&&(u=i.update(u,s),o&&(u.operation=o.name));var l=n.endpointCache.get(u);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(u,[{Address:"",CachePeriodInMinutes:1}]),f.send((function(e,t){t&&t.Endpoints?n.endpointCache.put(u,t.Endpoints):e&&n.endpointCache.put(u,[{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,u=s?s.input:void 0,f=c(e,u),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||{},u=c(o,s[o.operation]?s[o.operation].input:void 0),l=a(o);Object.keys(u).length>0&&(l=i.update(l,u),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",c=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 c=s[process.env.AWS_PROFILE||n.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(c,"endpoint_discovery_enabled")){if(void 0===c.endpoint_discovery_enabled)throw i.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!h(c.endpoint_discovery_enabled)}}}(e),l=r.api.hasRequiredEndpointDiscovery;switch((c||l)&&e.httpRequest.appendToUserAgent("endpoint-discovery"),s){case"OPTIONAL":(c||l)&&(u(e),e.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",d)),t();break;case"REQUIRED":if(!1===c){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:u,marshallCustomIdentifiers:c,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(c(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+=" "+c(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 c(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=u),f(n,e,n.depth)}function u(e,t){var r=c.styles[t];return r?"["+c.colors[r][0]+"m"+e+"["+c.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 c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","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 u,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),u=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]}(u,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,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),C(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=g(r)?f(e,c.value,null):f(e,c.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=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(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 c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(c)var h=s(BigInt.prototype.valueOf);if(u)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 c&&g(e,h)}function P(e){return u&&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),c=r(170),u=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 u},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%":c,"%ThrowTypeError%":m,"%TypedArray%":_,"%TypeError%":u,"%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 u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,e))throw new c("`%` 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 c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("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 c("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 u("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),c=[],u=0;u<s;u++)c[u]="$"+u;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}(c,",")+"){ 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%"),c=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||n.call(c,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=u(n,c,arguments);return o(t,1+f(0,e.length-(arguments.length-1)),!0)};var p=function(){return u(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),c=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||c(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(u=!1)}return(n||u||!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,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(n)n(e,t,{configurable:null===u&&f?f.configurable:!u,enumerable:null===s&&f?f.enumerable:!s,value:r,writable:null===c&&f?f.writable:!c});else{if(!l&&(s||c||u))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)(),c=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(!c)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&c(t)}return c(e)===n}},(e,t,r)=>{"use strict";var n=r(186),i=r(188),o=r(178),a=r(164),s=r(182),c=a("Object.prototype.toString"),u=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,u&&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(!u){var t=p(c(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}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var p=document.all;c.call(p)===c.call(document.all)&&(f=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=c.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(u)return s(e);if(a(e))return!1;var t=c.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),c={success:1,error:1,complete:1};var u=new i;u.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(c,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)},u.setupStates(),n.Request=o({constructor:function(e,t,r){var o=e.endpoint,s=e.config.region,c=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(c),this.startTime=e.getSkewCorrectedDate(),this.response=new n.Response(this),this._asm=new i(u.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),c=!0;return n.util.arrayEach(a,(function(t){if(!1===(c=e(null,t)))return n.util.abort})),c}))},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,c=!1;if("HEAD"!==t.httpRequest.method&&(s=parseInt(o["content-length"],10)),void 0!==s&&!isNaN(s)&&s>=0){c=!0;var u=0}var l=function(){c&&u!==s?r.emit("error",n.util.error(new Error("Stream content length mismatch. Received "+u+" of "+s+" bytes."),{code:"StreamContentLengthMismatch"})):2===n.HttpClient.streamsApiVersion?r.end():r.emit("end")},f=a.httpResponse.createUnbufferedStream();if(2===n.HttpClient.streamsApiVersion)if(c){var p=new e.PassThrough;p._write=function(t){return t&&t.length&&(u+=t.length),e.PassThrough.prototype._write.apply(this,arguments)},p.on("end",l),r.on("error",(function(e){c=!1,f.unpipe(p),p.emit("end"),p.end()})),f.pipe(p).pipe(r,{end:!1})}else f.pipe(r);else c&&f.on("data",(function(e){e&&e.length&&(u+=e.length)})),f.on("data",(function(e){r.emit("data",e)})),f.on("end",l);f.on("error",(function(e){c=!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 c in i)if(hasOwnProperty.call(i,c)&&!0!==a[c])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,c=2,u=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},G={"<":!0,">":!0,"=":!0,"!":!0},V={" ":!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!==G[e[this._current]])o.push(this._consumeOperator(e));else if(void 0!==V[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:[c,u]},{types:[s]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[c]},{types:[c]}]},floor:{_func:this._functionFloor,_signature:[{types:[a]}]},length:{_func:this._functionLength,_signature:[{types:[c,u,l]}]},map:{_func:this._functionMap,_signature:[{types:[f]},{types:[u]}]},max:{_func:this._functionMax,_signature:[{types:[p,d]}]},merge:{_func:this._functionMerge,_signature:[{types:[l],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[u]},{types:[f]}]},sum:{_func:this._functionSum,_signature:[{types:[p]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[c]},{types:[c]}]},min:{_func:this._functionMin,_signature:[{types:[p,d]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[u]},{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:[u]},{types:[f]}]},join:{_func:this._functionJoin,_signature:[{types:[c]},{types:[d]}]},reverse:{_func:this._functionReverse,_signature:[{types:[c,u]}]},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 c=this._lookaheadToken(0);return c.type===w||c.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,c,u,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(c=this.visit(e.children[0],o),h=1;h<e.children.length;h++)if(null===(c=this.visit(e.children[1],c)))return null;return c;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===(c=o[m])&&(c=null),c;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(c=[],_>0)for(h=v;h<b;h+=_)c.push(o[h]);else for(h=v;h>b;h+=_)c.push(o[h]);return c;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(u=this.visit(e.children[0],o),l=this.visit(e.children[1],o),e.name){case I:c=n(u,l);break;case N:c=!n(u,l);break;case R:c=u>l;break;case P:c=u>=l;break;case A:c=u<l;break;case D:c=u<=l;break;default:throw new Error("Unknown comparator: "+e.name)}return c;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(u=this.visit(e.children[0],o))?u:this.visit(e.children[1],o);case"NotExpression":return i(u=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 c=0;c<i.length;c++)if(this._typeMatches(o,i[c],t[s])){a=!0;break}if(!a){var u=i.map((function(e){return h[e]})).join(",");throw new Error("TypeError: "+e+"() expected argument "+(s+1)+" to be type "+u+" but received type "+h[o]+" instead.")}}},_typeMatches:function(e,t,r){if(t===s)return!0;if(t!==d&&t!==p&&t!==u)return e===t;if(t===u)return e===u;if(e===u){var n;t===p?n=a:t===d&&(n=c);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 c;case"[object Number]":return a;case"[object Array]":return u;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])===c){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 c:return"string";case u: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])===u?e[0]:[e[0]]},_functionToString:function(e){return this._getTypeName(e[0])===c?e[0]:JSON.stringify(e[0])},_functionToNumber:function(e){var t,r=this._getTypeName(e[0]);return r===a?e[0]:r!==c||(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,c].indexOf(i)<0)throw new Error("TypeError");for(var o=this,s=[],u=0;u<t.length;u++)s.push([u,t[u]]);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,c]),s=-1/0,u=0;u<i.length;u++)(r=o(i[u]))>s&&(s=r,t=i[u]);return t},_functionMinBy:function(e){for(var t,r,n=e[1],i=e[0],o=this.createKeyFunction(n,[a,c]),s=1/0,u=0;u<i.length;u++)(r=o(i[u]))<s&&(s=r,t=i[u]);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,c){var u=[n.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),t,r,s].join("_");if((c=!1!==c)&&u in i)return i[u];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 c&&(i[u]=d,o.push(u),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 c=[r,n].join(".");this.validateMember(s,a,c)}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 c=s.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+t+" to be a"+c+" "+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) is in maintenance mode."," SDK releases are limited to address critical bug fixes and security issues only.\n","Please migrate your code to use AWS SDK for JavaScript (v3).","For more information, check the 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 c=0,u=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:u+1,g=h-c+(m-u)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||h>c)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=h,u=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 c=r(n.concat(e));if(c[6]=15&c[6]|t,c[8]=63&c[8]|128,o)for(var u=0;u<16;++u)o[s+u]=c[u];return o||(0,i.default)(c)};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)))<<(c=o)|s>>>32-c,n);var s,c}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 c=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,c,u,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)c=p,u=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,c),d=r(d,u),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=c},(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,c=Math.ceil(s/16),u=new Array(c);for(a=0;a<c;a++){u[a]=new Array(16);for(var l=0;l<16;l++)u[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(u[c-1][14]=8*(e.length-1)/Math.pow(2,32),u[c-1][14]=Math.floor(u[c-1][14]),u[c-1][15]=8*(e.length-1)&4294967295,a=0;a<c;a++){for(var f=new Array(80),p=0;p<16;p++)f[p]=u[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 c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,r){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(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 u(this,e,t,r)}function u(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);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.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(!c.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(c.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)),!c.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(c.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=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t)return t&=255,c.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,c=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,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(r+c>s&&(r=s-c),o=r;o>=0;o--){for(var f=!0,p=0;p<c;p++)if(u(e,o+p)!==u(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,c,u=e[i],l=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=r)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}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=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.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(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,r){return u(null,e,t,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.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)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.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},c.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}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=c.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},c.byteLength=h,c.prototype._isBuffer=!0,c.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},c.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},c.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},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.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+">"},c.prototype.compare=function(e,t,r,n,i){if(!c.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),u=this.slice(n,i),l=e.slice(t,r),f=0;f<s;++f)if(u[f]!==l[f]){o=u[f],a=l[f];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},c.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}},c.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(!c.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}c.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),c.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;r=new c(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},c.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},c.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},c.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},c.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]},c.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])},c.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},c.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},c.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.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},c.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},c.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},c.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]},c.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},c.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},c.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},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,4294967295,0),c.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},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,4294967295,0),c.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},c.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},c.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},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,2147483647,-2147483648),c.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},c.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),c.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},c.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},c.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||!c.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},c.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&&!c.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=c.isBuffer(e)?e:H(new c(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],c=o[1],u=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,c)),l=0,f=c>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)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===c&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[l++]=255&t);1===c&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,u=n-i;s<u;s+=a)o.push(c(e,s,s+a>u?u: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 c(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,c=(1<<s)-1,u=c>>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-u;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=u}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-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*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-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,u+=i;u>0;e[r+d]=255&a,d+=h,a/=256,u-=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 c(e,t,r,n,i,o,a){return s(t&r|~t&n,e,t,i,o,a)}function u(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 c=new DataView(new ArrayBuffer(16));for(s=0;s<4;s++)c.setUint32(4*s,this.state[s],!0);var u=new i(c.buffer,c.byteOffset,c.byteLength);return e?u.toString(e):u},a.prototype.hashBuffer=function(){var e=this.buffer,t=this.state,r=t[0],n=t[1],i=t[2],o=t[3];r=c(r,n,i,o,e.getUint32(0,!0),7,3614090360),o=c(o,r,n,i,e.getUint32(4,!0),12,3905402710),i=c(i,o,r,n,e.getUint32(8,!0),17,606105819),n=c(n,i,o,r,e.getUint32(12,!0),22,3250441966),r=c(r,n,i,o,e.getUint32(16,!0),7,4118548399),o=c(o,r,n,i,e.getUint32(20,!0),12,1200080426),i=c(i,o,r,n,e.getUint32(24,!0),17,2821735955),n=c(n,i,o,r,e.getUint32(28,!0),22,4249261313),r=c(r,n,i,o,e.getUint32(32,!0),7,1770035416),o=c(o,r,n,i,e.getUint32(36,!0),12,2336552879),i=c(i,o,r,n,e.getUint32(40,!0),17,4294925233),n=c(n,i,o,r,e.getUint32(44,!0),22,2304563134),r=c(r,n,i,o,e.getUint32(48,!0),7,1804603682),o=c(o,r,n,i,e.getUint32(52,!0),12,4254626195),i=c(i,o,r,n,e.getUint32(56,!0),17,2792965006),r=u(r,n=c(n,i,o,r,e.getUint32(60,!0),22,1236535329),i,o,e.getUint32(4,!0),5,4129170786),o=u(o,r,n,i,e.getUint32(24,!0),9,3225465664),i=u(i,o,r,n,e.getUint32(44,!0),14,643717713),n=u(n,i,o,r,e.getUint32(0,!0),20,3921069994),r=u(r,n,i,o,e.getUint32(20,!0),5,3593408605),o=u(o,r,n,i,e.getUint32(40,!0),9,38016083),i=u(i,o,r,n,e.getUint32(60,!0),14,3634488961),n=u(n,i,o,r,e.getUint32(16,!0),20,3889429448),r=u(r,n,i,o,e.getUint32(36,!0),5,568446438),o=u(o,r,n,i,e.getUint32(56,!0),9,3275163606),i=u(i,o,r,n,e.getUint32(12,!0),14,4107603335),n=u(n,i,o,r,e.getUint32(32,!0),20,1163531501),r=u(r,n,i,o,e.getUint32(52,!0),5,2850285829),o=u(o,r,n,i,e.getUint32(8,!0),9,4243563512),i=u(i,o,r,n,e.getUint32(28,!0),14,1735328473),r=l(r,n=u(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,c=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 u=(i<<5|i>>>27)+r+c+n+(0|this.block[e]);c=s,s=a,a=o<<30|o>>>2,o=i,i=u}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+c|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 c(){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=c,c.BLOCK_SIZE=o,c.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},c.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},c.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],n=t[1],i=t[2],s=t[3],c=t[4],u=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=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&u^~c&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=u,u=c,c=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]+=c,t[5]+=u,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"]),c=["'"].concat(s),u=["%","/","?",";","#"].concat(c),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<u.length;E++){var w;-1!==(w=i.indexOf(u[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=c.length;E<T;E++){var F=c[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),c=e.host||e.pathname&&"/"===e.pathname.charAt(0),u=c||s||r.host&&e.pathname,l=u,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),u=u&&(""===n[0]||""===f[0])),c)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(!u&&!l)for(;y--;y)f.unshift("..");!u||""===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(u=u||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(){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof r.g&&r.g;i.global!==i&&i.window!==i&&i.self;var o,a=2147483647,s=36,c=1,u=26,l=38,f=700,p=72,d=128,h="-",m=/^xn--/,g=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=s-c,_=Math.floor,S=String.fromCharCode;function E(e){throw RangeError(v[e])}function w(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function O(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+w((e=e.replace(y,".")).split("."),t).join(".")}function x(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 T(e){return w(e,(function(e){var t="";return e>65535&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)})).join("")}function k(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,r){var n=0;for(e=r?_(e/f):e>>1,e+=_(e/t);e>b*u>>1;n+=s)e=_(e/b);return _(n+(b+1)*e/(e+l))}function I(e){var t,r,n,i,o,l,f,m,g,y,v,b=[],S=e.length,w=0,O=d,x=p;for((r=e.lastIndexOf(h))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&E("not-basic"),b.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<S;){for(o=w,l=1,f=s;i>=S&&E("invalid-input"),((m=(v=e.charCodeAt(i++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:s)>=s||m>_((a-w)/l))&&E("overflow"),w+=m*l,!(m<(g=f<=x?c:f>=x+u?u:f-x));f+=s)l>_(a/(y=s-g))&&E("overflow"),l*=y;x=C(w-o,t=b.length+1,0==o),_(w/t)>a-O&&E("overflow"),O+=_(w/t),w%=t,b.splice(w++,0,O)}return T(b)}function R(e){var t,r,n,i,o,l,f,m,g,y,v,b,w,O,T,I=[];for(b=(e=x(e)).length,t=d,r=0,o=p,l=0;l<b;++l)(v=e[l])<128&&I.push(S(v));for(n=i=I.length,i&&I.push(h);n<b;){for(f=a,l=0;l<b;++l)(v=e[l])>=t&&v<f&&(f=v);for(f-t>_((a-r)/(w=n+1))&&E("overflow"),r+=(f-t)*w,t=f,l=0;l<b;++l)if((v=e[l])<t&&++r>a&&E("overflow"),v==t){for(m=r,g=s;!(m<(y=g<=o?c:g>=o+u?u:g-o));g+=s)T=m-y,O=s-y,I.push(S(k(y+T%O,0))),m=_(T/O);I.push(S(k(m,0))),o=C(r,w,n==i),r=0,++n}++r,++t}return I.join("")}o={version:"1.3.2",ucs2:{decode:x,encode:T},decode:I,encode:R,toASCII:function(e){return O(e,(function(e){return g.test(e)?"xn--"+R(e):e}))},toUnicode:function(e){return O(e,(function(e){return m.test(e)?I(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return o}.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 c=e.length;s>0&&c>s&&(c=s);for(var u=0;u<c;++u){var l,f,p,d,h=e[u].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 c={},u=s.eventPayloadMemberName;if(u){var l=s.members[u];"binary"===l.type?c[u]=i.body:c[u]=e.parse(i.body.toString(),l)}for(var f=s.eventHeaderMemberNames,p=0;p<f.length;p++){var d=f[p];i.headers[d]&&(c[d]=s.members[d].toType(i.headers[d].value))}var h={};return h[a.value]=c,h}}}},(e,t,r)=>{var n=r(240).Int64,i=r(241).splitMessage,o="boolean",a="byte",s="short",c="integer",u="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:c,value:e.readInt32BE(r)},r+=4;break;case 5:t[h]={type:u,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","protocols":["json"],"serviceFullName":"Amazon Cognito Identity","serviceId":"Cognito Identity","signatureVersion":"v4","targetPrefix":"AWSCognitoIdentityService","uid":"cognito-identity-2014-06-30","auth":["aws.auth#sigv4"]},"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","auth":["smithy.api#noAuth"]},"GetId":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"AccountId":{},"IdentityPoolId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{}}},"authtype":"none","auth":["smithy.api#noAuth"]},"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","auth":["smithy.api#noAuth"]},"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","auth":["smithy.api#noAuth"]},"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 c(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",c=e.firstElementChild;for(;c;){if(c.nodeName===o){var u=a(c,n).textContent,l=a(c,i);r[u]=s(l,t.value)}c=c.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 c(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 c(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 c=i.flattened?e:a(e,i.name);c?r[n]=s(c,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 c=o.getElementsByTagName("div")[0]||o;throw n.error(new Error(c.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 u=s(r.documentElement,t),l=a(r.documentElement,"ResponseMetadata");return l&&(u.ResponseMetadata=s(l,{})),u}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,c=new i,u=s.protocol+"//"+s.hostname;80!==s.port&&443!==s.port&&(u+=":"+s.port),u+=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&&(c.statusCode=l.status,c.headers=a.parseHeaders(l.getAllResponseHeaders()),c.emit("headers",c.statusCode,c.headers,l.statusText),f=!0),this.readyState===this.DONE&&a.finishRequest(l,c)}),!1),l.upload.addEventListener("progress",(function(e){c.emit("sendProgress",e)})),l.addEventListener("progress",(function(e){c.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(c),l.open(e.method,u,!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 c},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,c,u;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=(u=o.slice()).length,c=0;c<a;c++)u[c].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","auth":["aws.auth#sigv4"]},"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"},"ReadFromTimestamp":{"type":"timestamp"}}},"SnowflakeDestinationConfiguration":{"type":"structure","required":["AccountUrl","Database","Schema","Table","RoleARN","S3Configuration"],"members":{"AccountUrl":{"shape":"S4b"},"PrivateKey":{"shape":"S4c"},"KeyPassphrase":{"shape":"S4d"},"User":{"shape":"S4e"},"Database":{"shape":"S4f"},"Schema":{"shape":"S4g"},"Table":{"shape":"S4h"},"SnowflakeRoleConfiguration":{"shape":"S4i"},"DataLoadingOption":{},"MetaDataColumnName":{"shape":"S4l"},"ContentColumnName":{"shape":"S4m"},"SnowflakeVpcConfiguration":{"shape":"S4n"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S4p"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"SecretsManagerConfiguration":{"shape":"S24"},"BufferingHints":{"shape":"S4s"}}},"IcebergDestinationConfiguration":{"type":"structure","required":["RoleARN","CatalogConfiguration","S3Configuration"],"members":{"DestinationTableConfigurationList":{"shape":"S4w"},"BufferingHints":{"shape":"Se"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"RetryOptions":{"shape":"S1p"},"RoleARN":{},"CatalogConfiguration":{"shape":"S4z"},"S3Configuration":{"shape":"Sa"}}}}},"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":"S5b"},"DeliveryStreamEncryptionConfiguration":{"type":"structure","members":{"KeyARN":{},"KeyType":{},"Status":{},"FailureDescription":{"shape":"S5b"}}},"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"},"ReadFromTimestamp":{"type":"timestamp"}}}}},"Destinations":{"type":"list","member":{"type":"structure","required":["DestinationId"],"members":{"DestinationId":{},"S3DestinationDescription":{"shape":"S5n"},"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":"S5n"},"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":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupDescription":{"shape":"S5n"},"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":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfigurationDescription":{"shape":"S5r"},"DocumentIdOptions":{"shape":"S2l"}}},"AmazonopensearchserviceDestinationDescription":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2t"},"RetryOptions":{"shape":"S2w"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfigurationDescription":{"shape":"S5r"},"DocumentIdOptions":{"shape":"S2l"}}},"SplunkDestinationDescription":{"type":"structure","members":{"HECEndpoint":{},"HECEndpointType":{},"HECToken":{},"HECAcknowledgmentTimeoutInSeconds":{"type":"integer"},"RetryOptions":{"shape":"S34"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"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":"S5n"},"SecretsManagerConfiguration":{"shape":"S24"}}},"SnowflakeDestinationDescription":{"type":"structure","members":{"AccountUrl":{"shape":"S4b"},"User":{"shape":"S4e"},"Database":{"shape":"S4f"},"Schema":{"shape":"S4g"},"Table":{"shape":"S4h"},"SnowflakeRoleConfiguration":{"shape":"S4i"},"DataLoadingOption":{},"MetaDataColumnName":{"shape":"S4l"},"ContentColumnName":{"shape":"S4m"},"SnowflakeVpcConfiguration":{"shape":"S4n"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S4p"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"SecretsManagerConfiguration":{"shape":"S24"},"BufferingHints":{"shape":"S4s"}}},"AmazonOpenSearchServerlessDestinationDescription":{"type":"structure","members":{"RoleARN":{},"CollectionEndpoint":{},"IndexName":{},"BufferingHints":{"shape":"S3y"},"RetryOptions":{"shape":"S41"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfigurationDescription":{"shape":"S5r"}}},"IcebergDestinationDescription":{"type":"structure","members":{"DestinationTableConfigurationList":{"shape":"S4w"},"BufferingHints":{"shape":"Se"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"RetryOptions":{"shape":"S1p"},"RoleARN":{},"CatalogConfiguration":{"shape":"S4z"},"S3DestinationDescription":{"shape":"S5n"}}}}}},"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":"S68"}}},"output":{"type":"structure","required":["RecordId"],"members":{"RecordId":{},"Encrypted":{"type":"boolean"}}}},"PutRecordBatch":{"input":{"type":"structure","required":["DeliveryStreamName","Records"],"members":{"DeliveryStreamName":{},"Records":{"type":"list","member":{"shape":"S68"}}}},"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":"S6t","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":"S6t"},"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":"S6t"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupUpdate":{"shape":"S6t"},"CloudWatchLoggingOptions":{"shape":"Sl"},"SecretsManagerConfiguration":{"shape":"S24"}}},"ElasticsearchDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2c"},"RetryOptions":{"shape":"S2f"},"S3Update":{"shape":"S6t"},"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":"S6t"},"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":"S6t"},"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":"S6t"},"SecretsManagerConfiguration":{"shape":"S24"}}},"AmazonOpenSearchServerlessDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"CollectionEndpoint":{},"IndexName":{},"BufferingHints":{"shape":"S3y"},"RetryOptions":{"shape":"S41"},"S3Update":{"shape":"S6t"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"}}},"SnowflakeDestinationUpdate":{"type":"structure","members":{"AccountUrl":{"shape":"S4b"},"PrivateKey":{"shape":"S4c"},"KeyPassphrase":{"shape":"S4d"},"User":{"shape":"S4e"},"Database":{"shape":"S4f"},"Schema":{"shape":"S4g"},"Table":{"shape":"S4h"},"SnowflakeRoleConfiguration":{"shape":"S4i"},"DataLoadingOption":{},"MetaDataColumnName":{"shape":"S4l"},"ContentColumnName":{"shape":"S4m"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S4p"},"S3BackupMode":{},"S3Update":{"shape":"S6t"},"SecretsManagerConfiguration":{"shape":"S24"},"BufferingHints":{"shape":"S4s"}}},"IcebergDestinationUpdate":{"type":"structure","members":{"DestinationTableConfigurationList":{"shape":"S4w"},"BufferingHints":{"shape":"Se"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"RetryOptions":{"shape":"S1p"},"RoleARN":{},"CatalogConfiguration":{"shape":"S4z"},"S3Configuration":{"shape":"Sa"}}}}},"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":{"shape":"S1m"},"BloomFilterFalsePositiveProbability":{"type":"double"},"DictionaryKeyThreshold":{"type":"double"},"FormatVersion":{}}}}}}},"Enabled":{"type":"boolean"}}},"S1m":{"type":"list","member":{}},"S1o":{"type":"structure","members":{"RetryOptions":{"shape":"S1p"},"Enabled":{"type":"boolean"}}},"S1p":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"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":{}}},"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":"string","sensitive":true},"S4i":{"type":"structure","members":{"Enabled":{"type":"boolean"},"SnowflakeRole":{"type":"string","sensitive":true}}},"S4l":{"type":"string","sensitive":true},"S4m":{"type":"string","sensitive":true},"S4n":{"type":"structure","required":["PrivateLinkVpceId"],"members":{"PrivateLinkVpceId":{"type":"string","sensitive":true}}},"S4p":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S4s":{"type":"structure","members":{"SizeInMBs":{"type":"integer"},"IntervalInSeconds":{"type":"integer"}}},"S4w":{"type":"list","member":{"type":"structure","required":["DestinationTableName","DestinationDatabaseName"],"members":{"DestinationTableName":{},"DestinationDatabaseName":{},"UniqueKeys":{"shape":"S1m"},"S3ErrorOutputPrefix":{}}}},"S4z":{"type":"structure","members":{"CatalogARN":{}}},"S5b":{"type":"structure","required":["Type","Details"],"members":{"Type":{},"Details":{}}},"S5n":{"type":"structure","required":["RoleARN","BucketARN","BufferingHints","CompressionFormat","EncryptionConfiguration"],"members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"}}},"S5r":{"type":"structure","required":["SubnetIds","RoleARN","SecurityGroupIds","VpcId"],"members":{"SubnetIds":{"shape":"S2j"},"RoleARN":{},"SecurityGroupIds":{"shape":"S2k"},"VpcId":{}}},"S68":{"type":"structure","required":["Data"],"members":{"Data":{"type":"blob"}}},"S6t":{"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,u)).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=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(E,w)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(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 c(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 u={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 u.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,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(a,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(a,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(a,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(a,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(a,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(a,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(a,"|(?::").concat(c,"){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),c=r(278),u=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);u.DEBUG_BUILD&&n.logger.warn("Cannot capture check-in. Client does not support sending check-ins.")}else u.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 c;try{c=t()}catch(e){throw s("error"),e}return(0,a.isThenable)(c)?Promise.resolve(c).then((()=>{s("ok")}),(()=>{s("error")})):s("ok"),c}async function R(e){const t=D();return t?t.flush(e):(u.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):(u.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=c.DEFAULT_ENVIRONMENT}=t&&t.getOptions()||{},{userAgent:a}=s.GLOBAL_OBJ.navigator||{},u=(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(u),n.setSession(u),u}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),c=r(278),u=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 c={timestamp:(0,o.dateTimestampInSeconds)(),...e},u=i?(0,a.consoleSandbox)((()=>i(c,t))):c;null!==u&&(n.emit&&n.emit("beforeAddBreadcrumb",u,t),r.addBreadcrumb(u,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 u.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(u.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=c.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}),u=t.getSession&&t.getSession();return u&&"ok"===u.status&&(0,f.updateSession)(u,{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);u.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),c=r(288),u=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,c.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:c,_propagationContext:u,_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:c,propagationContext:u,sdkProcessingMetadata:l,transactionName:f,span:p}}applyToEvent(e,t={},r=[]){(0,u.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:()=>u,getGlobalEventProcessors:()=>c,notifyEventProcessors:()=>l});var n=r(283),i=r(284),o=r(286),a=r(285),s=r(279);function c(){return(0,n.getGlobalSingleton)("globalEventProcessors",(()=>[]))}function u(e){c().push(e)}function l(e,t,r,n=0){return new i.SyncPromise(((i,c)=>{const u=e[n];if(null===t||"function"!=typeof u)i(t);else{const f=u({...t},r);s.DEBUG_BUILD&&u.id&&null===f&&o.logger.log(`Event processor "${u.id}" dropped event`),(0,a.isThenable)(f)?f.then((t=>l(e,t,r,n+1).then(i))).then(null,c):l(e,f,r,n+1).then(i).then(null,c)}}))}},(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:()=>c,isElement:()=>h,isError:()=>i,isErrorEvent:()=>a,isEvent:()=>d,isInstanceOf:()=>b,isNaN:()=>v,isParameterizedString:()=>l,isPlainObject:()=>p,isPrimitive:()=>f,isRegExp:()=>m,isString:()=>u,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 c(e){return o(e,"DOMException")}function u(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:()=>c,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 c=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:()=>c,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 c(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:()=>c,browserPerformanceTimeOrigin:()=>u,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 c;const u=(()=>{const{performance:e}=n.GLOBAL_OBJ;if(!e||!e.now)return void(c="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,u="number"==typeof s?Math.abs(s+r-i):t;return a||u<t?o<=u?(c="timeOrigin",e.timeOrigin):(c="navigationStart",s):(c="dateNow",i)})()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addContextToFrame:()=>d,addExceptionMechanism:()=>l,addExceptionTypeValue:()=>u,arrayify:()=>m,checkOrSetAlreadyCaught:()=>h,getEventDescription:()=>c,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 c(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 u(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:()=>u,convertToPlainObject:()=>d,dropUndefinedKeys:()=>y,extractExceptionKeysForMessage:()=>g,fill:()=>c,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 c(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 u(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,u(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:()=>u,getLocationHref:()=>c,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,c=0;const u=" > ",l=u.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&&c+i.length*l+f.length>=d));)i.push(f),c+=f.length,r=r.parentNode;return i.reverse().join(u)}catch(e){return"<unknown>"}}function s(e,t){const r=e,o=[];let a,s,c,u,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++)c=p[l],u=r.getAttribute(c),u&&o.push(`[${c}="${u}"]`);return o.join("")}function c(){try{return i.document.location.href}catch(e){return""}}function u(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:()=>c,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 c(e,t=[],r=!1){return t.some((t=>s(e,t,r)))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyScopeDataToEvent:()=>c,mergeAndOverwriteScopeData:()=>l,mergeScopeData:()=>u});var n=r(291),i=r(290),o=r(295),a=r(296),s=r(297);function c(e,t){const{fingerprint:r,span:c,breadcrumbs:u,sdkProcessingMetadata:l}=t;!function(e,t){const{extra:r,tags:i,user:o,contexts:a,level:s,transactionName:c}=t,u=(0,n.dropUndefinedKeys)(r);u&&Object.keys(u).length&&(e.extra={...u,...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);c&&(e.transaction=c)}(e,t),c&&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,c),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,u),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,l)}function u(e,t){const{extra:r,tags:n,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:u,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),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),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:()=>c,getDynamicSamplingContextFromSpan:()=>u});var n=r(291),i=r(278),o=r(277),a=r(296),s=r(297);function c(e,t,r){const o=t.getOptions(),{publicKey:a}=t.getDsn()||{},{segment:s}=r&&r.getUser()||{},c=(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",c),c}function u(e){const t=(0,o.getClient)();if(!t)return{};const r=c((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:u,source:l}=n.metadata;null!=u&&(r.sample_rate=`${u}`);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:()=>c,spanToTraceHeader:()=>u});var n=r(291),i=r(298),o=r(289);const a=0,s=1;function c(e){const{spanId:t,traceId:r}=e.spanContext(),{data:i,op:o,parent_span_id:a,status:s,tags:c,origin:u}=p(e);return(0,n.dropUndefinedKeys)({data:i,op:o,parent_span_id:a,span_id:t,status:s,tags:c,trace_id:r,origin:u})}function u(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:()=>u,propagationContextFromHeaders:()=>c,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:c,parentSampled:u}=r||{};return r?{traceparentData:r,dynamicSamplingContext:o||{},propagationContext:{traceId:s||(0,i.uuid4)(),parentSpanId:c||(0,i.uuid4)().substring(16),spanId:(0,i.uuid4)().substring(16),sampled:u,dsc:o||{}}}:{traceparentData:r,dynamicSamplingContext:void 0,propagationContext:{traceId:s||(0,i.uuid4)(),spanId:(0,i.uuid4)().substring(16)}}}function c(e,t){const r=a(e),o=(0,n.baggageHeaderToDynamicSamplingContext)(t),{traceId:s,parentSpanId:c,parentSampled:u}=r||{};return r?{traceId:s||(0,i.uuid4)(),parentSpanId:c||(0,i.uuid4)().substring(16),spanId:(0,i.uuid4)().substring(16),sampled:u,dsc:o||{}}:{traceId:s||(0,i.uuid4)(),spanId:(0,i.uuid4)().substring(16)}}function u(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:()=>u,SENTRY_BAGGAGE_KEY_PREFIX:()=>s,SENTRY_BAGGAGE_KEY_PREFIX_REGEX:()=>c,baggageHeaderToDynamicSamplingContext:()=>l,dynamicSamplingContextToSentryBaggageHeader:()=>f});var n=r(287),i=r(285),o=r(286);const a="baggage",s="sentry-",c=/^sentry-/,u=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(c)){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>u?(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.119.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),c=r(278),u=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:c.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 u=e.request;u&&u.url&&(u.url=(0,o.truncate)(u.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,u.getGlobalEventProcessors)(),...w.eventProcessors];return(0,u.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:()=>c,normalizeUrlToBase:()=>l,walk:()=>u});var n=r(285),i=r(303),o=r(291),a=r(304);function s(e,t=100,r=1/0){try{return u("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function c(e,t=3,r=102400){const n=s(e,t);return i=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>r?c(e,t-1,r):n;var i}function u(e,t,s=1/0,c=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 u("",m.toJSON(),h-1,c,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>=c){g[e]="[MaxProperties ~]";break}const t=v[e];g[e]=u(e,t,h-1,c,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:()=>c,stripSentryFramesAndReverse:()=>u});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 u(n)}}function c(e){return Array.isArray(e)?s(...e):e}function u(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 c=o[2]&&o[2].startsWith("file://")?o[2].slice(7):o[2];const u="native"===o[5];return c&&c.match(/\/[A-Z]:/)&&(c=c.slice(1)),c||!o[5]||u||(c=o[5]),{filename:c,module:e?e(c):void 0,function:i,lineno:parseInt(o[3],10)||void 0,colno:parseInt(o[4],10)||void 0,in_app:n(c,u)}}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:()=>u,recallCache:()=>c});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 c(e){a(e).vars.forEach((function(t){return t.attachCache(e)}))}function u(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 c=Array.from(r);r.clear(),c.forEach((function(t){return t(e)}))}}else{var u=i.getValue();u&&(o(u),a(u).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:()=>u,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 c;function u(...e){return(c||(c=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=u,normalizeResult:s,subscribe:c,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=c,i.forget=()=>p.delete(t));const u=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()),u};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:c,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&&c(e[r])?t.weak:t.strong;t=n&&n.get(e[r])}return t&&t.data}getChildTrie(e){const t=this.weakness&&c(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 c(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 c(e,t){const r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function u(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 u(e.value)}(this,e):u(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&&!c(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)):c(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:()=>u});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 c=o.done?e:a;var u;(u=o.value)&&"function"==typeof u.then?o.value.then(c,o.done?i:s):c(o.value)}const a=e=>o(r,e),s=e=>o(n,e);a()}))}}const c=[];function u(e){if(c.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"),c.push(e)}return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Slot:()=>u});let n=null;const i={};let o=1;function a(e){try{return e()}catch(e){}}const s="@wry/context:Slot",c=a((()=>globalThis))||a((()=>global))||Object.create(null),u=c[s]||Array[s]||function(e){try{Object.defineProperty(c,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:()=>a});r(327);var i=r(325),o=r(335),a=(n||(n=r.t(i,2))).useSyncExternalStore||function(e,t,r){var n=t();var a=i.useState({inst:{value:n,getSnapshot:t}}),c=a[0].inst,u=a[1];return o.canUseLayoutEffect?i.useLayoutEffect((function(){Object.assign(c,{value:n,getSnapshot:t}),s(c)&&u({inst:c})}),[e,n,t]):Object.assign(c,{value:n,getSnapshot:t}),i.useEffect((function(){return s(c)&&u({inst:c}),e((function(){s(c)&&u({inst:c})}))}),[e]),n};function s(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},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloErrorMessageHandler:()=>l,InvariantError:()=>n.InvariantError,invariant:()=>c,newInvariantError:()=>u});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 c=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 u(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){if("string"==typeof e)return e;try{return(0,a.stringifyForDisplay)(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}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:()=>c,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 c(e,t){if(!e)throw new s(t)}var u=["debug","log","warn","error","silent"],l=u.indexOf("log");function f(e){return function(){if(u.indexOf(e)>=l)return(console[e]||console.log).apply(console,arguments)}}function p(e){var t=u[l];return l=Math.max(0,u.indexOf(e)),t}!function(e){e.debug=f("debug"),e.log=f("log"),e.warn=f("warn"),e.error=f("error")}(c||(c={}));const d=c},(e,t,r)=>{"use strict";r.r(t),r.d(t,{version:()=>n});var n="3.11.8"},(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:()=>c,canUseDOM:()=>u,canUseLayoutEffect:()=>f,canUseSymbol:()=>s,canUseWeakMap:()=>o,canUseWeakSet:()=>a});var n=r(327),i="ReactNative"==(0,n.maybe)((function(){return navigator.product})),o="function"==typeof WeakMap&&!(i&&!global.HermesInternal),a="function"==typeof WeakSet,s="function"==typeof Symbol&&"function"==typeof Symbol.for,c=s&&Symbol.asyncIterator,u="function"==typeof(0,n.maybe)((function(){return window.document.createElement})),l=(0,n.maybe)((function(){return navigator.userAgent.indexOf("jsdom")>=0}))||!1,f=(u||i)&&!l},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(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(407);function c(e,t){return t?t(e):i.Observable.of()}function u(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(u).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,r,n){var o,a=u(r),s=u(n||new e(c));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 n=u(t);if(l(n))return n;var o,a=u(r);return o=l(a)?new e((function(e){return n.request(e,(function(e){return a.request(e)||i.Observable.of()}))||i.Observable.of()})):new e((function(e,t){return n.request(e,(function(e){return a.request(e,t)||i.Observable.of()}))||i.Observable.of()})),Object.assign(o,{left:n,right:a})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(c)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,n.newInvariantError)(37)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},(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},c=function(e){return s()&&Boolean(Symbol[e])},u=function(e){return c(e)?Symbol[e]:"@@"+e};s()&&!c("observable")&&(Symbol.observable=Symbol("observable"));var l=u("iterator"),f=u("observable"),p=u("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(c("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:()=>c,getMainDefinition:()=>f,getOperationDefinition:()=>a,getOperationName:()=>s,getQueryDefinition:()=>u});var n=r(327),i=r(400);function o(e){(0,n.invariant)(e&&"Document"===e.kind,77);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw(0,n.newInvariantError)(78,e.kind);return e}));return(0,n.invariant)(t.length<=1,79,t.length),e}function a(e){return o(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function s(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&!!e.name})).map((function(e){return e.name.value}))[0]||null}function c(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function u(e){var t=a(e);return(0,n.invariant)(t&&"query"===t.operation,80),t}function l(e){(0,n.invariant)("Document"===e.kind,81),(0,n.invariant)(e.definitions.length<=1,82);var t=e.definitions[0];return(0,n.invariant)("FragmentDefinition"===t.kind,83),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)(84)}function p(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach((function(e){e.defaultValue&&(0,i.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:()=>u,isField:()=>v,isInlineFragment:()=>b,isReference:()=>c,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 c(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function u(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)(85,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(u=a[i])){if("__typename"===u.name.value)return e[g(u)]}else n?n.push(u):n=[u]}if("string"==typeof e.__typename)return e.__typename;if(n)for(var s=0,c=n;s<c.length;s++){var u=c[s],l=y(e,(0,o.getFragmentFromSelection)(u,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)(74,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&o.push(e)})),void 0===r&&((0,i.invariant)(1===o.length,75,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,76,r),n||null;default:return null}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{canonicalStringify:()=>a});var n,i=r(404),o=r(406),a=Object.assign((function(e){return JSON.stringify(e,s)}),{reset:function(){n=new i.AutoCleanedStrongCache(o.cacheSizes.canonicalStringify||1e3)}});function s(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}a.reset()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AutoCleanedStrongCache:()=>c,AutoCleanedWeakCache:()=>s});var n=r(405),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},c=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:()=>c});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 c{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,{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,{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)(44,o)}return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentryLink:()=>u});var n=r(395),i=r(426),o=r(396),a=r(409),s=r(422),c=r(424);class u 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,c.setTransaction)(e),r.setFingerprint&&(0,c.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,c.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,c.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(410),i=r.n(n),o=r(413),a=r(412);function s(e,t){const r=t.attachBreadcrumbs,n=(0,a.extractDefinition)(e),s={},c=t.uri;c&&(s.url=c);const u=n.name?.value;u&&(s.operationName=u),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(411),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(414),i=r(416),o=r(417);function a(e){return(0,o.visit)(e,s)}const s={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>c(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=l("(",c(e.variableDefinitions,", "),")"),r=c([e.operation,c([e.name,t]),c(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+l(" = ",r)+l(" ",c(n," "))},SelectionSet:{leave:({selections:e})=>u(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const o=l("",e,": ")+t;let a=o+l("(",c(r,", "),")");return a.length>80&&(a=o+l("(\n",f(c(r,"\n")),"\n)")),c([a,c(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+l(" ",c(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>c(["...",l("on ",e),c(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${l("(",c(r,", "),")")} on ${t} ${l("",c(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})=>"["+c(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+c(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+l("(",c(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>l("",e,"\n")+c(["schema",c(t," "),u(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>l("",e,"\n")+c(["scalar",t,c(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>l("",e,"\n")+c(["type",t,l("implements ",c(r," & ")),c(n," "),u(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>l("",e,"\n")+t+(p(r)?l("(\n",f(c(r,"\n")),"\n)"):l("(",c(r,", "),")"))+": "+n+l(" ",c(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>l("",e,"\n")+c([t+": "+r,l("= ",n),c(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>l("",e,"\n")+c(["interface",t,l("implements ",c(r," & ")),c(n," "),u(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>l("",e,"\n")+c(["union",t,c(r," "),l("= ",c(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>l("",e,"\n")+c(["enum",t,c(r," "),u(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>l("",e,"\n")+c([t,c(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>l("",e,"\n")+c(["input",t,c(r," "),u(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>l("",e,"\n")+"directive @"+t+(p(r)?l("(\n",f(c(r,"\n")),"\n)"):l("(",c(r,", "),")"))+(n?" repeatable":"")+" on "+c(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>c(["extend schema",c(e," "),u(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>c(["extend scalar",e,c(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>c(["extend type",e,l("implements ",c(t," & ")),c(r," "),u(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>c(["extend interface",e,l("implements ",c(t," & ")),c(r," "),u(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>c(["extend union",e,c(t," "),l("= ",c(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>c(["extend enum",e,c(t," "),u(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>c(["extend input",e,c(t," "),u(r)]," ")}};function c(e,t=""){var r;return null!==(r=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==r?r:""}function u(e){return l("{\n",f(c(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(415);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],c=o(s);c!==s.length&&(n=null!==(a=n)&&void 0!==a?a:t,i=t,0!==t&&c<r&&(r=c))}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('\\"""'),c=e.endsWith('"')&&!s,u=e.endsWith("\\"),l=c||u,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:()=>c,visitInParallel:()=>u});var n=r(418),i=r(419),o=r(420),a=r(421);const s=Object.freeze({});function c(e,t,r=o.QueryDocumentKeys){const c=new Map;for(const e of Object.values(a.Kind))c.set(e,l(t,e));let u,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=u.index,h=u.keys,g=u.edits,d=u.inArray,u=u.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===(_=c.get(y.kind))||void 0===_?void 0:_.leave:null===(S=c.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 u={inArray:d,index:m,keys:h,edits:g,prev:u},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!==u);return 0!==g.length?g[g.length-1][1]:e}function u(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 c={enter(...r){const n=r[0];for(let a=0;a<e.length;a++)if(null===t[a]){var i;const c=null===(i=o[a])||void 0===i?void 0:i.apply(e[a],r);if(!1===c)t[a]=n;else if(c===s)t[a]=s;else if(void 0!==c)return c}},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]=c}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:()=>c,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 c;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(c||(c={}))},(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(423),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)?c((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 c;var r=t.customMerge(e);return"function"==typeof r?r:c}(o,r)(e[o],t[o],r):i[o]=n(t[o],r))})),i}function c(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)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var u=c;e.exports=u},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_FINGERPRINT:()=>s,attachBreadcrumbToSentry:()=>u,setFingerprint:()=>c,setTransaction:()=>a});var n=r(277),i=r(412),o=r(425);function a(e){const t=(0,i.extractDefinition)(e).name;t&&(0,n.configureScope)((e=>{e.setTransactionName(t.value)}))}const s="{{ default }}";function c(e){const t=(0,i.extractDefinition)(e).name;t&&(0,n.configureScope)((e=>{e.setFingerprint([s,t.value])}))}function u(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:()=>c,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 c=function(e){function t(r){var o,a,s=r.graphQLErrors,c=r.protocolErrors,u=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=c||[],d.clientErrors=u||[],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.cause=(0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)([l],s||[],!0),c||[],!0),u||[],!0).find((function(e){return!!e}))||null,d.__proto__=t.prototype,d}return(0,n.__extends)(t,e),t}(Error)},(e,t,r)=>{"use strict";const n=r(428);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}.`:"",c=new Set(a).add(t);if(r){let r=0;for(const n of t){const t=e(n,o+r++,c);i||s.push(t)}}else for(const r in t){const n=e(t[r],o+r,c);i||(s[r]=n)}}}}return s}(e,t,new Set),files:i}}},(e,t,r)=>{"use strict";const n=r(429);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(431),{createSignalIfSupported:o,fallbackHttpConfig:a,parseAndCheckHttpResponse:s,rewriteURIForGET:c,selectHttpOptionsAndBody:u,selectURI:l,serializeFetchParameter:f}=r(490),p=r(427),d=r(508),h=r(509);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}=u(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}=c(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:()=>u.ApolloCache,ApolloClient:()=>n.ApolloClient,ApolloError:()=>s.ApolloError,ApolloLink:()=>h.ApolloLink,Cache:()=>c.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(432),i=r(457),o=r(438),a=r(439),s=r(426),c=r(473),u=r(474),l=r(475),f=r(476),p=r(479),d=r(314),h=r(485),m=r(490),g=r(471),y=r(493),v=r(494),b=r(468),_=r(449),S=r(396),E=r(400),w=r(329),O=r(495);(0,w.setVerbosity)("silent")},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloClient:()=>p,mergeOptions:()=>f.mergeOptions});var n=r(103),i=r(327),o=r(395),a=r(454),s=r(330),c=r(458),u=r(433),l=r(455),f=r(457),p=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i.newInvariantError)(15);var r=e.uri,a=e.credentials,f=e.headers,p=e.cache,d=e.documentTransform,h=e.ssrMode,m=void 0!==h&&h,g=e.ssrForceFetchDelay,y=void 0===g?0:g,v=e.connectToDevTools,b=e.queryDeduplication,_=void 0===b||b,S=e.defaultOptions,E=e.defaultContext,w=e.assumeImmutableResults,O=void 0===w?p.assumeImmutableResults:w,x=e.resolvers,T=e.typeDefs,k=e.fragmentMatcher,C=e.name,I=e.version,R=e.devtools,A=e.link;A||(A=r?new c.HttpLink({uri:r,credentials:a,headers:f}):o.ApolloLink.empty()),this.link=A,this.cache=p,this.disableNetworkFetches=m||y>0,this.queryDeduplication=_,this.defaultOptions=S||Object.create(null),this.typeDefs=T,this.devtoolsConfig=(0,n.__assign)((0,n.__assign)({},R),{enabled:(null==R?void 0:R.enabled)||v}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1),y&&setTimeout((function(){return t.disableNetworkFetches=!1}),y),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=s.version,this.localState=new l.LocalState({cache:p,client:this,resolvers:x,fragmentMatcher:k}),this.queryManager=new u.QueryManager({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:E,documentTransform:d,queryDeduplication:_,ssrMode:m,clientAwareness:{name:C,version:I},localState:this.localState,assumeImmutableResults:O,onBroadcast:this.devtoolsConfig.enabled?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}},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 i=Promise.all(n);return i.queries=r,i.results=n,i.catch((function(e){})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{QueryManager:()=>R});var n=r(103),i=r(327),o=(r(434),r(454)),a=r(435),s=r(441),c=r(451),u=r(403),l=r(449),f=r(450),p=r(447),d=r(436),h=r(399),m=r(400),g=r(401),y=r(334),v=r(396),b=r(453),_=r(426),S=r(438),E=r(439),w=r(446),O=r(452),x=r(448),T=r(404),k=r(406),C=Object.prototype.hasOwnProperty,I=Object.create(null),R=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new T.AutoCleanedWeakCache(k.cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new x.Trie(!1);var r=new l.DocumentTransform((function(e){return t.cache.transformDocument(e)}),{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.cancelPendingFetches((0,i.newInvariantError)(26))},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,c,u,l=e.mutation,d=e.variables,h=e.optimisticResponse,m=e.updateQueries,g=e.refetchQueries,y=void 0===g?[]:g,v=e.awaitRefetchQueries,b=void 0!==v&&v,S=e.update,E=e.onQueryUpdated,w=e.fetchPolicy,O=void 0===w?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.fetchPolicy)||"network-only":w,x=e.errorPolicy,T=void 0===x?(null===(u=this.defaultOptions.mutate)||void 0===u?void 0:u.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,27),(0,i.invariant)("network-only"===O||"no-cache"===O,28),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),r=this.getDocumentInfo(l).hasClientExports,d=this.getVariables(l,d),r?[4,this.localState.addExportedVariables(l,d,C)]:[3,2];case 1:d=e.sent(),e.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:d,loading:!0,error:null}),a=h&&this.markMutationOptimistic(h,{mutationId:t,document:l,variables:d,fetchPolicy:O,errorPolicy:T,context:C,updateQueries:m,update:S,keepRootFields:k}),this.broadcastQueries(),s=this,[2,new Promise((function(e,r){return(0,f.asyncMap)(s.getObservableFromLink(l,(0,n.__assign)((0,n.__assign)({},C),{optimisticResponse:a?h:void 0}),d,{},!1),(function(e){if((0,p.graphQLResultHasError)(e)&&"none"===T)throw new _.ApolloError({graphQLErrors:(0,p.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,p.graphQLResultHasError)(r)&&delete r.errors,s.markMutationResult({mutationId:t,result:r,document:l,variables:d,fetchPolicy:O,errorPolicy:T,context:C,update:S,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 _.ApolloError?e:new _.ApolloError({networkError:e}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],s="no-cache"===e.fetchPolicy;if(!s&&(0,w.shouldWriteResult)(i,e.errorPolicy)){if((0,a.isExecutionPatchIncrementalResult)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,a.isExecutionPatchIncrementalResult)(i)&&(0,d.isNonEmptyArray)(i.incremental)){var c=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;c.result&&(u=(0,a.mergeIncrementalData)(c.result,i)),void 0!==u&&(i.data=u,o.push({result:u,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&&C.call(l,s)){var c=l[s],u=r.queries.get(n),f=u.document,p=u.variables,d=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),m=d.result;if(d.complete&&m){var g=c(m,{mutationResult:i,queryName:f&&(0,h.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){s||o.forEach((function(e){return t.write(e)}));var c=e.update,u=!(0,a.isExecutionPatchResult)(i)||(0,a.isExecutionPatchIncrementalResult)(i)&&!i.hasNext;if(c){if(!s){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)}u&&c(t,i,{context:e.context,variables:e.variables})}s||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return 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,i="function"==typeof e?e(t.variables,{IGNORE:I}):e;return i!==I&&(this.cache.recordOptimisticTransaction((function(e){try{r.markMutationResult((0,n.__assign)((0,n.__assign)({},t),{result:{data:i}}),e)}catch(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,s.hasClientExports)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,s.hasDirectives)(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,c.removeDirectivesFromDocument)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:(0,h.getDefaultValues)((0,h.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 w.QueryInfo(this),i=new S.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,29),(0,i.invariant)("Document"===e.query.kind,30),(0,i.invariant)(!e.returnPartialData,31),(0,i.invariant)(!e.pollInterval,32),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)(33)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=E.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,m.isDocumentNode)(e)?o.set(t.transform(e),!1):(0,g.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,y.makeUniqueId)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new S.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)})),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,c=void 0===s?{}:s,u=e.extensions,l=void 0===u?{}:u;r=this.transform(r),a=this.getVariables(r,a);var f=function(e){return t.getObservableFromLink(r,c,e,l).map((function(i){"no-cache"!==n&&((0,w.shouldWriteResult)(i,o)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=(0,p.graphQLResultHasError)(i),s=(0,_.graphQLResultHasProtocolErrors)(i);if(a||s){var c={};if(a&&(c.graphQLErrors=i.errors),s&&(c.protocolErrors=i.extensions[_.PROTOCOL_ERRORS_SYMBOL]),"none"===o||s)throw new _.ApolloError(c)}return"ignore"===o&&delete i.errors,i}))};if(this.getDocumentInfo(r).hasClientExports){var d=this.localState.addExportedVariables(r,a,c).then(f);return new v.Observable((function(e){var t=null;return d.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return f(a)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i,a){var s,c,l=this;void 0===a&&(a=null!==(s=null==t?void 0:t.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var p=this.getDocumentInfo(e),d=p.serverQuery,m=p.clientQuery;if(d){var g=this.inFlightLinkObservables,y=this.link,_={query:d,variables:r,operationName:(0,h.getOperationName)(d)||void 0,context:this.prepareContext((0,n.__assign)((0,n.__assign)({},t),{forceFetch:!a})),extensions:i};if(t=_.context,a){var S=(0,O.print)(d),E=(0,u.canonicalStringify)(r),w=g.lookup(S,E);if(!(c=w.observable)){var x=new b.Concast([(0,o.execute)(y,_)]);c=w.observable=x,x.beforeNext((function(){g.remove(S,E)}))}}else c=new b.Concast([(0,o.execute)(y,_)])}else c=new b.Concast([v.Observable.of({data:{}})]),t=this.prepareContext(t);return m&&(c=(0,f.asyncMap)(c,(function(e){return l.localState.runResolvers({document:m,remoteResult:e,context:t,variables:r})}))),c},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return(0,f.asyncMap)(this.getObservableFromLink(i,r.context,r.variables),(function(o){var a=(0,p.getGraphQLErrorsFromResult)(o),s=a.length>0,c=r.errorPolicy;if(n>=e.lastRequestId){if(s&&"none"===c)throw e.markError(new _.ApolloError({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var u={data:o.data,loading:!1,networkStatus:E.NetworkStatus.ready};return s&&"none"===c&&(u.data=void 0),s&&"ignore"!==c&&(u.errors=a,u.networkStatus=E.NetworkStatus.error),u}),(function(t){var r=(0,_.isApolloError)(t)?t:new _.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=E.NetworkStatus.loading),void 0===n&&(n=t.query);var o,a,s=this.getVariables(n,t.variables),c=this.getQuery(e),u=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?u&&u.fetchPolicy||"cache-first":l,p=t.errorPolicy,d=void 0===p?u&&u.errorPolicy||"none":p,h=t.returnPartialData,m=void 0!==h&&h,g=t.notifyOnNetworkStatusChange,y=void 0!==g&&g,v=t.context,_=void 0===v?{}:v,S=Object.assign({},t,{query:n,variables:s,fetchPolicy:f,errorPolicy:d,returnPartialData:m,notifyOnNetworkStatusChange:y,context:_}),w=function(e){S.variables=e;var n=i.fetchQueryByPolicy(c,S,r);return"standby"!==S.fetchPolicy&&n.sources.length>0&&c.observableQuery&&c.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 b.Concast(this.localState.addExportedVariables(S.query,S.variables,S.context).then(w).then((function(e){return e.sources}))),a=!0;else{var x=w(S.variables);a=x.fromLink,o=new b.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,y.makeUniqueId)("refetchQueries"):void 0:a,c=e.onQueryUpdated,u=new Map;n&&this.getObservableQueries(n).forEach((function(e,r){u.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 w.QueryInfo&&e.watcher.observableQuery;if(n){if(c){u.delete(n.queryId);var i=c(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==c&&u.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),u.size&&u.forEach((function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(c){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=c(i,a,o)}c&&!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,o=t.query,a=t.variables,s=t.fetchPolicy,c=t.refetchWritePolicy,u=t.errorPolicy,l=t.returnPartialData,f=t.context,p=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:o,variables:a,networkStatus:r});var h=function(){return e.getDiff()},m=function(t,r){void 0===r&&(r=e.networkStatus||E.NetworkStatus.loading);var s=t.result;var c=function(e){return v.Observable.of((0,n.__assign)({data:e,loading:(0,E.isNetworkRequestInFlight)(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:f,variables:a,onlyRunForcedResolvers:!0}).then((function(e){return c(e.data||void 0)})):"none"===u&&r===E.NetworkStatus.refetch&&Array.isArray(t.missing)?c(void 0):c(s)},g="no-cache"===s?0:r===E.NetworkStatus.refetch&&"merge"!==c?1:2,y=function(){return i.getResultsFromLink(e,g,{query:o,variables:a,context:f,fetchPolicy:s,errorPolicy:u})},b=p&&"number"==typeof d&&d!==r&&(0,E.isNetworkRequestInFlight)(r);switch(s){default:case"cache-first":return(_=h()).complete?{fromLink:!1,sources:[m(_,e.markReady())]}:l||b?{fromLink:!0,sources:[m(_),y()]}:{fromLink:!0,sources:[y()]};case"cache-and-network":var _;return(_=h()).complete||l||b?{fromLink:!0,sources:[m(_),y()]}:{fromLink:!0,sources:[y()]};case"cache-only":return{fromLink:!1,sources:[m(h(),e.markReady())]};case"network-only":return b?{fromLink:!0,sources:[m(h()),y()]}:{fromLink:!0,sources:[y()]};case"no-cache":return b?{fromLink:!0,sources:[m(e.getDiff()),y()]}:{fromLink:!0,sources:[y()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new w.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:()=>c,equal:()=>s});const{toString:n,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,a=new Map;function s(e,t){try{return u(e,t)}finally{a.clear()}}const c=s;function u(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(!u(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&&!u(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:()=>u,isExecutionPatchIncrementalResult:()=>a,isExecutionPatchInitialResult:()=>s,isExecutionPatchResult:()=>c,mergeIncrementalData:()=>l});var n=r(401),i=r(436),o=r(437);function a(e){return"incremental"in e}function s(e){return"hasNext"in e&&"data"in e}function c(e){return a(e)||s(e)}function u(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:()=>u,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 u,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var c=function(e,t,r){return this.merge(e[r],t[r])},u=function(){function e(e){void 0===e&&(e=c),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 c=r.reconciler.apply(r,(0,n.__spreadArray)([e,t,i],a,!1));c!==s&&((e=r.shallowCopyForMerge(e))[i]=c)}}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(434),a=r(439),s=r(399),c=r(442),u=r(443),l=r(444),f=r(396),p=r(445),d=r(426),h=r(440),m=Object.assign,g=(Object.hasOwnProperty,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,a.subscribeToMore=a.subscribeToMore.bind(a);var c=r.defaultOptions.watchQuery,u=(void 0===c?{}:c).fetchPolicy,l=void 0===u?"cache-first":u,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,c=void 0===s?"cache-first":s;if(_(c)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(i.data=u.result),(0,o.equal)(i.data,{})&&(i.data=void 0),u.complete?(delete i.partial,!u.complete||i.networkStatus!==a.NetworkStatus.loading||"cache-first"!==c&&"cache-only"!==c||(i.networkStatus=a.NetworkStatus.ready,i.loading=!1)):i.partial=!0}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||((this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!(0,h.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={pollInterval:0},r=this.options.fetchPolicy;return t.fetchPolicy="cache-and-network"===r?r:"no-cache"===r?"no-cache":"network-only",e&&!(0,o.equal)(this.options.variables,e)&&(t.variables=this.options.variables=(0,n.__assign)((0,n.__assign)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(t,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 o=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var s=this.queryInfo,c=s.networkStatus;s.networkStatus=a.NetworkStatus.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var u=new Set,l=null==e?void 0:e.updateQuery,f="no-cache"!==this.options.fetchPolicy;return f||(0,i.invariant)(l,21),this.queryManager.fetchQuery(o,r,a.NetworkStatus.fetchMore).then((function(i){if(t.queryManager.removeQuery(o),s.networkStatus===a.NetworkStatus.fetchMore&&(s.networkStatus=c),f)t.queryManager.cache.batch({update:function(n){var o=e.updateQuery;o?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return o(e,{fetchMoreResult:i.data,variables:r.variables})})):n.writeQuery({query:r.query,variables:r.variables,data:i.data})},onWatchUpdated:function(e){u.add(e.query)}});else{var p=t.getLast("result"),d=l(p.data,{fetchMoreResult:i.data,variables:r.variables});t.reportResult((0,n.__assign)((0,n.__assign)({},p),{data:d}),t.variables)}return i})).finally((function(){f&&!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)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,c.compact)(this.options,e||{});m(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,23),(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,u.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,u=this.options.fetchPolicy,l=(0,c.compact)(this.options,e||{}),f=i?l:m(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!==u&&"function"!=typeof f.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",f),void 0===t&&(t=a.NetworkStatus.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=_(f.fetchPolicy));var h=function(){r.concast===v&&(r.waitForOwnResult=!1)},g=f.variables&&(0,n.__assign)({},f.variables),y=this.fetch(f,t,p),v=y.concast,b=y.fromLink,S={next:function(e){(0,o.equal)(r.variables,g)&&(h(),r.reportResult(e,g))},error:function(e){(0,o.equal)(r.variables,g)&&((0,d.isApolloError)(e)||(e=new d.ApolloError({networkError:e})),h(),r.reportError(e,g))}};return i||!b&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=v,this.observer=S),v.addObserver(S),v},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){}function b(e){0}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:()=>u});var n=r(103),i=r(434),o=r(399),a=r(402),s=r(441),c=r(400);function u(e,t,r,s){var c=t.data,u=(0,n.__rest)(t,["data"]),f=r.data,p=(0,n.__rest)(r,["data"]);return(0,i.default)(u,p)&&l((0,o.getMainDefinition)(e).selectionSet,c,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,c.isField)(e)){var u=(0,c.resultKeyNameFromField)(e),p=t&&t[u],d=r&&r[u],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:()=>c,hasAnyDirectives:()=>s,hasClientExports:()=>l,hasDirectives:()=>u,shouldInclude:()=>o});var n=r(327),i=r(417);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,70,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 u(e,t,!1)},c=function(e,t){return u(e,t,!0)};function u(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&&u(["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,71,o);var a=i[0];(0,n.invariant)(a.name&&"if"===a.name.value,72,o);var s=a.value;(0,n.invariant)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),73,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,{QueryInfo:()=>m,shouldWriteResult:()=>g});var n=r(103),i=r(434),o=r(437),a=r(435),s=r(438),c=r(335),u=r(436),l=r(447),f=r(439),p=new(c.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,c=new o.DeepMerger,l=(0,u.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,u.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=c.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),c=o.diff(a);!s.stopped&&(0,i.equal)(s.variables,r.variables)&&s.updateWatch(r.variables),s.updateLastDiff(c,a),c.complete&&(e.data=c.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(436),i=r(435);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(448),i=r(335),o=r(399),a=r(327),s=r(405),c=r(315),u=r(406);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,c.wrap)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,a.invariant)(Array.isArray(n),69),r.lookupArray(n)},max:u.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,{addTypenameToDocument:()=>g,buildQueryFromSelectionSet:()=>S,removeArgumentsFromDocument:()=>b,removeClientSetsFromDocument:()=>E,removeConnectionDirectiveFromDocument:()=>v,removeDirectivesFromDocument:()=>m,removeFragmentSpreadFromDocument:()=>_});var n=r(103),i=(r(327),r(421)),o=r(417),a=r(399),s=r(400),c=r(402),u=r(436),l={kind:i.Kind.FIELD,name:{kind:i.Kind.NAME,value:"__typename"}};function f(e,t){return!e||e.selectionSet.selections.every((function(e){return e.kind===i.Kind.FRAGMENT_SPREAD&&f(t[e.name.value],t)}))}function p(e){return f((0,a.getOperationDefinition)(e)||(0,a.getFragmentDefinition)(e),(0,c.createFragmentMap)((0,a.getFragmentDefinitions)(e)))?null:e}function d(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 h(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 m(e,t){(0,a.checkDocument)(t);for(var r=h(""),s=h(""),c=function(e){for(var t=0,n=void 0;t<e.length&&(n=e[t]);++t)if(!(0,u.isArray)(n)){if(n.kind===i.Kind.OPERATION_DEFINITION)return r(n.name&&n.name.value);if(n.kind===i.Kind.FRAGMENT_DEFINITION)return s(n.name.value)}return null},l=0,f=t.definitions.length-1;f>=0;--f)t.definitions[f].kind===i.Kind.OPERATION_DEFINITION&&++l;var m=d(e),g=function(e){return(0,u.isNonEmptyArray)(e)&&e.map(m).some((function(e){return e&&e.remove}))},y=new Map,v=!1,b={enter:function(e){if(g(e.directives))return v=!0,null}},_=(0,o.visit)(t,{Field:b,InlineFragment:b,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(g(e.directives))return v=!0,null;var o=c(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){y.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===y.get(JSON.stringify(n))?e:l>0&&e.selectionSet.selections.every((function(e){return e.kind===i.Kind.FIELD&&"__typename"===e.name.value}))?(s(e.name.value).removed=!0,v=!0,null):void 0}},Directive:{leave:function(e){if(m(e))return v=!0,null}}});if(!v)return t;var S=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){S(s(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},E=new Set;_.definitions.forEach((function(e){e.kind===i.Kind.OPERATION_DEFINITION?S(r(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){E.add(e)})):e.kind!==i.Kind.FRAGMENT_DEFINITION||0!==l||s(e.name.value).removed||E.add(e.name.value)})),E.forEach((function(e){S(s(e)).fragmentSpreads.forEach((function(e){E.add(e)}))}));var w={enter:function(e){if(t=e.name.value,!E.has(t)||s(t).removed)return null;var t}};return p((0,o.visit)(_,{FragmentSpread:w,FragmentDefinition:w,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=S(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 g=Object.assign((function(e){return(0,o.visit)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==i.Kind.OPERATION_DEFINITION){var o=e.selections;if(o)if(!o.some((function(e){return(0,s.isField)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var a=r;if(!((0,s.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)([],o,!0),[l],!1)})}}}}})}),{added:function(e){return e===l}}),y={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some((function(e){return"key"===e.name.value}))),t}};function v(e){return m([y],(0,a.checkDocument)(e))}function b(e,t){var r=function(e){return function(t){return e.some((function(e){return t.value&&t.value.kind===i.Kind.VARIABLE&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return p((0,o.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 _(e,t){function r(t){if(e.some((function(e){return e.name===t.name.value})))return null}return p((0,o.visit)(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}function S(e){return"query"===(0,a.getMainDefinition)(e).operation?e:(0,o.visit)(e,{OperationDefinition:{enter:function(e){return(0,n.__assign)((0,n.__assign)({},e),{operation:"query"})}}})}function E(e){return(0,a.checkDocument)(e),m([{test:function(e){return"client"===e.name.value},remove:!0}],e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{print:()=>s});var n,i=r(413),o=r(404),a=r(406),s=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)}});s.reset()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Concast:()=>c});var n=r(103),i=r(396),o=r(444),a=r(445);function s(e){return e&&"function"==typeof e.then}var c=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.error(e)},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)(c)},(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,{LocalState:()=>h});var n=r(103),i=r(327),o=r(417),a=r(456),s=r(437),c=r(441),u=r(451),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,c.hasDirectives)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,u.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,u.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,c,u,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),c=(0,l.getFragmentDefinitions)(e),u=(0,f.createFragmentMap)(c),p=this.collectSelectionsToResolve(s,u),d=s.operation,h=d?d.charAt(0).toUpperCase()+d.slice(1):"Query",g=(m=this).cache,y=m.client,v={fragmentMap:u,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,u,l,f,d,h=this;return(0,n.__generator)(this,(function(m){return a=o.fragmentMap,u=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,c.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,u))?[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,c,u,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),c=a!==s,u=r[s]||r[a],l=Promise.resolve(u),i.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=r.__typename||i.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(m=h[c?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=u),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 c=new Set;n.set(s,c),(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)&&c.add(e)}))},FragmentSpread:function(n,o,s,u,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)&&c.add(e)})),c.add(n),p.forEach((function(e){c.add(e)})))}})}return n.get(s)}(e)},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isConstValueNode:()=>c,isDefinitionNode:()=>i,isExecutableDefinitionNode:()=>o,isSelectionNode:()=>a,isTypeDefinitionNode:()=>f,isTypeExtensionNode:()=>d,isTypeNode:()=>u,isTypeSystemDefinitionNode:()=>l,isTypeSystemExtensionNode:()=>p,isValueNode:()=>s});var n=r(421);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 c(e){return s(e)&&(e.kind===n.Kind.LIST?e.values.some(c):e.kind===n.Kind.OBJECT?e.fields.some((e=>c(e.value))):e.kind!==n.Kind.VARIABLE)}function u(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,{mergeOptions:()=>o});var n=r(103),i=r(442);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(459),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:()=>v});var n=r(103),i=r(327),o=r(395),a=r(441),s=r(396),c=r(460),u=r(461),l=r(462),f=r(469),p=r(470),d=r(471),h=r(472),m=r(451),g=r(399),y=(0,i.maybe)((function(){return fetch})),v=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,v=e.fetch,b=e.print,_=void 0===b?f.defaultPrinter:b,S=e.includeExtensions,E=e.preserveHeaderCase,w=e.useGETForQueries,O=e.includeUnusedVariables,x=void 0!==O&&O,T=(0,n.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);var k={http:{includeExtensions:S,preserveHeaderCase:E},options:T.fetchOptions,credentials:T.credentials,headers:T.headers};return new o.ApolloLink((function(e){var t=(0,u.selectURI)(e,r),o=e.getContext(),b={};if(o.clientAwareness){var S=o.clientAwareness,E=S.name,O=S.version;E&&(b["apollographql-client-name"]=E),O&&(b["apollographql-client-version"]=O)}var T=(0,n.__assign)((0,n.__assign)({},b),o.headers),C={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:T};if((0,a.hasDirectives)(["client"],e.query)){var I=(0,m.removeClientSetsFromDocument)(e.query);if(!I)return(0,d.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,f.selectHttpOptionsAndBodyInternal)(e,_,f.fallbackHttpConfig,k,C),P=A.options,D=A.body;D.variables&&!x&&(D.variables=(0,h.filterOperationVariables)(D.variables,e.query)),P.signal||"undefined"==typeof AbortController||(R=new AbortController,P.signal=R.signal);var N,M="OperationDefinition"===(N=(0,g.getMainDefinition)(e.query)).kind&&"subscription"===N.operation,L=(0,a.hasDirectives)(["defer"],e.query);if(w&&!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?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,p.rewriteURIForGET)(t,D),F=B.newURI,U=B.parseError;if(U)return(0,d.fromError)(U);t=F}else try{P.body=(0,c.serializeFetchParameter)(D,"Payload")}catch(U){return(0,d.fromError)(U)}return new s.Observable((function(r){var n=v||(0,i.maybe)((function(){return fetch}))||y,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)(40,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:()=>u});var n=r(103),i=r(463),o=r(468),a=r(426),s=r(435),c=Object.prototype.hasOwnProperty;function u(e,t){return(0,n.__awaiter)(this,void 0,void 0,(function(){var r,o,c,u,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"),c="boundary=",u=(null==o?void 0:o.includes(c))?null==o?void 0:o.substring((null==o?void 0:o.indexOf(c))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",p="\r\n--".concat(u),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)||c.call(r,"data")||c.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:()=>c});var n=r(335),i=r(464),o=r(465),a=r(466),s=r(467);function c(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 c(e){r=e,a.slice().forEach((function(t){t[1](e)})),!t||t()}function u(){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",c),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",s),e.on("error",c),e.on("end",u),e.on("finish",u),e.on("close",u);var l={next:function(){return new Promise((function(e,t){return r?t(r):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,{defaultPrinter:()=>a,fallbackHttpConfig:()=>o,selectHttpOptionsAndBody:()=>s,selectHttpOptionsAndBodyInternal:()=>c});var n=r(103),i=r(452),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),c.apply(void 0,(0,n.__spreadArray)([e,a],r,!1))}function c(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={};return Object.keys(Object(e)).forEach((function(t){r[t.toLowerCase()]=e[t]})),r}var n={};Object.keys(Object(e)).forEach((function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}}));var i={};return Object.keys(n).forEach((function(e){i[n[e].originalName]=n[e].value})),i}(a.headers,s.preserveHeaderCase));var c=e.operationName,u=e.extensions,l=e.variables,f=e.query,p={operationName:c,variables:l};return s.includeExtensions&&(p.extensions=u),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(460);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="",c=e,u=e.indexOf("#");-1!==u&&(s=e.substr(u),c=e.substr(0,u));var l=-1===c.indexOf("?")?"?":"&";return{newURI:c+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(417);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:()=>f});var n=r(103),i=r(315),o=r(402),a=r(406),s=r(396),c=r(437),u=r(405),l=r(440),f=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,i.wrap)(o.getFragmentQueryDocument,{max:a.cacheSizes["cache.fragmentQueryDocuments"]||1e3,cache:u.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,u=e.optimistic,f=void 0===u||u,p=(0,n.__rest)(e,["fragment","fragmentName","from","optimistic"]),d=this.getFragmentDoc(i,o),h=(0,n.__assign)((0,n.__assign)({},p),{returnPartialData:!0,id:void 0===a||"string"==typeof a?a:this.identify(a),query:d,optimistic:f});return new s.Observable((function(e){return r.watch((0,n.__assign)((0,n.__assign)({},h),{immediate:!0,callback:function(r){if(!t||!(0,l.equalByQuery)(d,{data:null==t?void 0:t.result},{data:r.result})){var n={data:r.result,complete:!!r.complete};r.missing&&(n.missing=(0,c.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}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InMemoryCache:()=>_});var n=r(103),i=(r(327),r(315)),o=r(434),a=r(474),s=r(476),c=r(449),u=r(451),l=r(406),f=r(403),p=r(452),d=r(400),h=r(477),m=r(482),g=r(478),y=r(314),v=r(483),b=r(479),_=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(u.addTypenameToDocument),r.assumeImmutableResults=!0,r.makeVar=y.makeVar,r.txCount=0,r.config=(0,b.normalizeConfig)(t),r.addTypename=!!r.config.addTypename,r.policies=new v.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 g.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 m.StoreWriter(this,this.storeReader=new h.StoreReader({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,b.shouldCanonizeResults)(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,i.wrap)((function(e,r){return t.broadcastWatch(e,r)}),{max:this.config.resultCacheMaxSize||l.cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if((0,g.supportsResultCaching)(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,f.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 s.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(b.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,y.recallCache)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,y.forgetCache)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){var t;f.canonicalStringify.reset(),p.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,d.isReference)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){}},t.prototype.evict=function(e){if(!e.id){if(b.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(),f.canonicalStringify.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),(0,y.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,c=e.onWatchUpdated,u=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 c&&!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,u):!1===a?u(this.data):u(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),c&&l.size?(this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e,t){var r=c.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,o.equal)(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(a.ApolloCache)},(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 c=s.path.length-1;c>=0;--c)s.missing=((a={})[s.path[c]]=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:()=>O});var n=r(103),i=r(327),o=r(421),a=r(315),s=r(335),c=r(442),u=r(406),l=r(400),f=r(399),p=r(403),d=r(437),h=r(441),m=r(451),g=r(402),y=r(480),v=(r(401),r(478)),b=r(479),_=r(436),S=r(476),E=r(481);function w(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var O=function(){function e(e){var t=this;this.knownResults=new(s.canUseWeakMap?WeakMap:Map),this.config=(0,c.compact)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,b.shouldCanonizeResults)(e)}),this.canon=e.canon||new E.ObjectCanon,this.executeSelectionSet=(0,a.wrap)((function(e){var r,i=e.context.canonizeResults,o=w(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,v.maybeDependOnExistenceOfEntity)(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize||u.cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:w,makeCacheKey:function(e,t,r,n){if((0,v.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,v.maybeDependOnExistenceOfEntity)(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize||u.cacheSizes["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if((0,v.supportsResultCaching)(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new E.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,c=void 0===s||s,u=e.canonizeResults,d=void 0===u?this.config.canonizeResults:u,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,b.extractFragmentContext)(r,this.config.fragments))});if(y.missing&&(m=[new S.MissingFieldError(x(y.missing),y.missing,r,a)],!c))throw m[0];return{result:y.result,complete:!m,missing:m}},e.prototype.isFresh=function(e,t,r,n){if((0,v.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 c,u=s.variables,f=s.policies,p=s.store.getFieldValue(n,"__typename"),v=[],b=new d.DeepMerger;function S(e,t){var r;return e.missing&&(c=b.merge(c,((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,u))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)||(c=b.merge(c,((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,_.isArray)(y)?y.length>0&&(y=S(t.executeSubSelectedArray({field:e,array:y,enclosingRef:a,context:s}),w)):e.selectionSet?null!=y&&(y=S(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:c},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,i=e.array,o=e.enclosingRef,a=e.context,s=new d.DeepMerger;function c(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map((function(e,t){return null===e?null:(0,_.isArray)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:a}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,l.isReference)(e)?e:o,context:a}),t):e})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function x(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(434),s=r(448),c=r(480),u=r(400),l=r(437),f=r(401),p=r(335),d=r(479),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,c.maybeDeepFreeze)((0,u.isReference)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,u.isReference)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,u.makeReference)(e);if((0,u.isReference)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,u.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,u.isReference)(e)&&(e=e.__ref),(0,u.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 c=Object.create(null);o||(c.__exists=1),Object.keys(a).forEach((function(e){if(!o||o[e]!==s[e]){c[e]=1;var t=(0,d.fieldNameFromStoreName)(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(c[t]=1),void 0!==s[e]||n instanceof S||delete s[e]}})),!c.__typename||o&&o.__typename||this.policies.rootTypenamesById[r]!==s.__typename||delete c.__typename,Object.keys(c).forEach((function(e){return n.group.dirty(r,e)}))}}},e.prototype.modify=function(e,t){var r=this,i=this.lookup(e);if(i){var o=Object.create(null),a=!1,s=!0,l={DELETE:h,INVALIDATE:g,isReference:u.isReference,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,u.makeReference)(e)}:t,{store:r})}};if(Object.keys(i).forEach((function(u){var f=(0,d.fieldNameFromStoreName)(u),p=i[u];if(void 0!==p){var y="function"==typeof t?t:t[u]||t[f];if(y){var v=y===m?h:y((0,c.maybeDeepFreeze)(p),(0,n.__assign)((0,n.__assign)({},l),{fieldName:f,storeFieldName:u,storage:r.getStorage(e,u)}));if(v===g)r.group.dirty(e,u);else if(v===h&&(v=void 0),v!==p)o[u]=v,a=!0,p=v}void 0!==p&&(s=!1)}})),a)return this.merge(e,o),s&&(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,u.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(436),i=r(442),o=r(400),a=r(401),s=r(441),c=r(437),u=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 c.DeepMerger}function w(e,t){var r=(0,u.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:()=>n});r(401);function n(e){return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ObjectCanon:()=>c});var n=r(103),i=r(448),o=r(401),a=r(335),s=r(436);var c=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(c=this.pool.lookupArray(n)).array||this.known.add(c.array=n),c.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 c,u=a.length;if(s.sorted.forEach((function(r){a.push(t.admit(e[r]))})),!(c=this.pool.lookupArray(a)).object){var l=c.object=Object.create(i);this.known.add(l),s.sorted.forEach((function(e,t){l[e]=a[u+t]}))}return c.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:()=>g});var n=r(103),i=r(327),o=(r(434),r(448)),a=r(421),s=r(399),c=r(403),u=r(400),l=r(441),f=r(436),p=r(402),d=r(479),h=r(483);function m(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 g=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,o=t.query,a=t.result,l=t.dataId,f=t.variables,p=t.overwrite,h=(0,s.getOperationDefinition)(o),m=(0,d.makeProcessedFieldsMerger)();f=(0,n.__assign)((0,n.__assign)({},(0,s.getDefaultValues)(h)),f);var g=(0,n.__assign)((0,n.__assign)({store:e,written:Object.create(null),merge:function(e,t){return m.merge(e,t)},variables:f,varString:(0,c.canonicalStringify)(f)},(0,d.extractFragmentContext)(o,this.fragments)),{overwrite:!!p,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),y=this.processSelectionSet({result:a||Object.create(null),dataId:l,selectionSet:h.selectionSet,mergeTree:{map:new Map},context:g});if(!(0,u.isReference)(y))throw(0,i.newInvariantError)(11,a);return g.incomingById.forEach((function(t,n){var i=t.storeObject,o=t.mergeTree,a=(t.fieldNodeSet,(0,u.makeReference)(n));if(o&&o.map.size){var s=r.applyMerges(o,a,i,g);if((0,u.isReference)(s))return;i=s}e.merge(n,i)})),e.retain(y.__ref),y},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,i=e.result,o=e.selectionSet,a=e.context,s=e.mergeTree,c=this.cache.policies,l=Object.create(null),f=r&&c.rootTypenamesById[r]||(0,u.getTypenameFromResult)(i,o,a.fragmentMap)||r&&a.store.get(r,"__typename");"string"==typeof f&&(l.__typename=f);var p=function(){var e=(0,h.normalizeReadFieldOptions)(arguments,l,a.variables);if((0,u.isReference)(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var r=c.readField((0,n.__assign)((0,n.__assign)({},e),{from:t.storeObject}),a);if(void 0!==r)return r}}return c.readField(e,a)},g=new Set;this.flattenFields(o,i,a,f).forEach((function(e,r){var n,o=(0,u.resultKeyNameFromField)(r),a=i[o];if(g.add(r),void 0!==a){var h=c.getStoreFieldName({typename:f,fieldName:r.name.value,field:r,variables:e.variables}),y=v(s,h),b=t.processFieldValue(a,r,r.selectionSet?m(e,!1,!1):e,y),_=void 0;r.selectionSet&&((0,u.isReference)(b)||(0,d.storeValueIsStoreObject)(b))&&(_=p("__typename",b));var E=c.getMergeFunction(f,r.name.value,_);E?y.info={field:r,typename:f,merge:E}:S(s,h),l=e.merge(l,((n={})[h]=b,n))}else 0}));try{var y=c.identify(i,{typename:f,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:l,readField:p}),E=y[0],w=y[1];r=r||E,w&&(l=a.merge(l,w))}catch(e){if(!r)throw e}if("string"==typeof r){var O=(0,u.makeReference)(r),x=a.written[r]||(a.written[r]=[]);if(x.indexOf(o)>=0)return O;if(x.push(o),this.reader&&this.reader.isFresh(i,O,o,a))return O;var T=a.incomingById.get(r);return T?(T.storeObject=a.merge(T.storeObject,l),T.mergeTree=b(T.mergeTree,s),g.forEach((function(e){return T.fieldNodeSet.add(e)}))):a.incomingById.set(r,{storeObject:l,mergeTree:_(s)?void 0:s,fieldNodeSet:g}),O}return l},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,f.isArray)(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,r,v(n,o));return S(n,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,u.getTypenameFromResult)(t,e,r.fragmentMap));var s=new Map,c=this.cache.policies,d=new o.Trie(!1);return function e(o,h){var g=d.lookup(o,h.clientOnly,h.deferred);g.visited||(g.visited=!0,o.selections.forEach((function(o){if((0,l.shouldInclude)(o,r.variables)){var d=h.clientOnly,g=h.deferred;if(d&&g||!(0,f.isNonEmptyArray)(o.directives)||o.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(d=!0),"defer"===t){var n=(0,u.argumentsObjectFromField)(e,r.variables);n&&!1===n.if||(g=!0)}})),(0,u.isField)(o)){var y=s.get(o);y&&(d=d&&y.clientOnly,g=g&&y.deferred),s.set(o,m(r,d,g))}else{var v=(0,p.getFragmentFromSelection)(o,r.lookupFragment);if(!v&&o.kind===a.Kind.FRAGMENT_SPREAD)throw(0,i.newInvariantError)(13,o.name.value);v&&c.fragmentMatches(v,n,t,r.variables)&&e(v.selectionSet,m(r,d,g))}}})))}(e,r),s},e.prototype.applyMerges=function(e,t,r,o,a){var s,c=this;if(e.map.size&&!(0,u.isReference)(r)){var l,p=(0,f.isArray)(r)||!(0,u.isReference)(t)&&!(0,d.storeValueIsStoreObject)(t)?void 0:t,h=r;p&&!a&&(a=[(0,u.isReference)(p)?p.__ref:p]);var m=function(e,t){return(0,f.isArray)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var r=m(p,t),n=m(h,t);if(void 0!==n){a&&a.push(t);var s=c.applyMerges(e,r,n,o,a);s!==n&&(l=l||new Map).set(t,s),a&&(0,i.invariant)(a.pop()===t)}})),l&&(r=(0,f.isArray)(h)?h.slice(0):(0,n.__assign)({},h),l.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}(),y=[];function v(e,t){var r=e.map;return r.has(t)||r.set(t,y.pop()||{map:new Map}),r.get(t)}function b(e,t){if(e===t||!t||_(t))return e;if(!e||_(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,b(e,t.map.get(r))),a.delete(r)})),a.forEach((function(r){o.map.set(r,b(t.map.get(r),e.map.get(r)))}))}return o}function _(e){return!e||!(e.info||e.map.size)}function S(e,t){var r=e.map,n=r.get(t);n&&_(n)&&(y.push(n),r.delete(t))}new Set},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Policies:()=>g,normalizeReadFieldOptions:()=>v});var n=r(103),i=r(327),o=r(400),a=r(401),s=r(479),c=r(436),u=r(314),l=r(484);function f(e){return void 0!==e.args?e.args:e.field?(0,o.argumentsObjectFromField)(e.field,e.variables):null}var p=function(){},d=function(e,t){return t.fieldName},h=function(e,t,r){return(0,r.mergeObjects)(e,t)},m=function(e,t){return t},g=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:s.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=v(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),f=o&&this.getTypePolicy(o),p=f&&f.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,l.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,c=i.subscriptionType,u=(0,n.__rest)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),c&&t.setRootTypename("Subscription",r),s.hasOwn.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]}))},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?h:!1===t?m:e.merge}a(n,t.merge),n.keyFn=!1===i?p:(0,c.isArray)(i)?(0,l.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,f=i.merge;n.keyFn=!1===s?d:(0,c.isArray)(s)?(0,l.keyArgsFnFromSpecifier)(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,f)}n.read&&n.merge&&(n.keyFn=n.keyFn||d)}))},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(s.TypeOrFieldNameRegExp);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!s.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 i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),c=[a],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&c.indexOf(t)<0&&c.push(t)},l=!(!r||!this.fuzzySubtypes.size),f=0;f<c.length;++f){var p=c[f];if(p.has(o))return a.has(o)||a.add(o),!0;p.forEach(u),l&&f===c.length-1&&(0,s.selectionSetMatchesResult)(e.selectionSet,r,n)&&(l=!1,this.fuzzySubtypes.forEach((function(e,r){var n=t.match(e);n&&n[0]===t&&u(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 u={typename:r,fieldName:n,field:e.field||null,variables:e.variables},p=f(e);a;){var d=a(p,u);if(!(0,c.isArray)(d)){t=d||n;break}a=(0,l.keyArgsFnFromSpecifier)(d)}return void 0===t&&(t=e.field?(0,o.storeKeyNameFromField)(e.field,e.variables):(0,o.getStoreKeyName)(n,f(e))),!1===t?n:n===(0,s.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,s.fieldNameFromStoreName)(i),c=t.store.getFieldValue(r,i),l=this.getFieldPolicy(e.typename,a,!1),f=l&&l.read;if(f){var p=y(this,r,e,t,t.store.getStorage((0,o.isReference)(r)?r.__ref:r,i));return u.cacheSlot.withValue(this.cache,f,[c,p])}return c}},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===h?b(n.store)(e,t):s===m?t:(n.overwrite&&(e=void 0),s(e,t,y(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function y(e,t,r,n,i){var a=e.getStoreFieldName(r),c=(0,s.fieldNameFromStoreName)(a),u=r.variables||n.variables,l=n.store,p=l.toReference,d=l.canRead;return{args:f(r),field:r.field||null,fieldName:c,storeFieldName:a,variables:u,isReference:o.isReference,toReference:p,storage:i,cache:e.cache,canRead:d,readField:function(){return e.readField(v(arguments,t,u),n)},mergeObjects:b(n.store)}}function v(e,t,r){var i,o=e[0],a=e[1],c=e.length;return"string"==typeof o?i={fieldName:o,from:c>1?a:t}:(i=(0,n.__assign)({},o),s.hasOwn.call(i,"from")||(i.from=t)),void 0===i.variables&&(i.variables=r),i}function b(e){return function(t,r){if((0,c.isArray)(t)||(0,c.isArray)(r))throw(0,i.newInvariantError)(8);if((0,a.isNonNullObject)(t)&&(0,a.isNonNullObject)(r)){var u=e.getFieldValue(t,"__typename"),l=e.getFieldValue(r,"__typename");if(u&&l&&u!==l)return r;if((0,o.isReference)(t)&&(0,s.storeValueIsStoreObject)(r))return e.merge(t.__ref,r),t;if((0,s.storeValueIsStoreObject)(t)&&(0,o.isReference)(r))return e.merge(t,r.__ref),r;if((0,s.storeValueIsStoreObject)(t)&&(0,s.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(436),o=r(400),a=r(437),s=r(401),c=r(479),u=Object.create(null);function l(e){var t=JSON.stringify(e);return u[t]||(u[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&&c.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,u=d(e,(function(e){var r=e[0],s=r.charAt(0);if("@"!==s)if("$"!==s){if(t)return g(t,e)}else{var u=r.slice(1);if(a&&c.hasOwn.call(a,u)){var l=e.slice(0);return l[0]=u,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(u);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:()=>c.ApolloLink,concat:()=>a.concat,empty:()=>n.empty,execute:()=>s.execute,from:()=>i.from,split:()=>o.split});r(327);var n=r(486),i=r(487),o=r(488),a=r(489),s=r(454),c=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:()=>u.createHttpLink,createSignalIfSupported:()=>s.createSignalIfSupported,defaultPrinter:()=>o.defaultPrinter,fallbackHttpConfig:()=>o.fallbackHttpConfig,parseAndCheckHttpResponse:()=>n.parseAndCheckHttpResponse,rewriteURIForGET:()=>f.rewriteURIForGET,selectHttpOptionsAndBody:()=>o.selectHttpOptionsAndBody,selectHttpOptionsAndBodyInternal:()=>o.selectHttpOptionsAndBodyInternal,selectURI:()=>c.selectURI,serializeFetchParameter:()=>i.serializeFetchParameter});r(327);var n=r(462),i=r(460),o=r(469),a=r(491),s=r(492),c=r(461),u=r(459),l=r(458),f=r(470)},(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)(38)}},(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:()=>n});r(327);function n(e){var t=!1;return new Promise((function(r,n){e.subscribe({next:function(e){t||(t=!0,r(e))},error:n})}))}},(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(496),o=new Map,a=new Map,s=!0,c=!1;function u(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=u((c=e.loc).source.body.substring(c.start,c.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 c})),(0,n.__assign)((0,n.__assign)({},e),{definitions:r})}function f(e){var t=u(e);if(!o.has(t)){var r=(0,i.parse)(e,{experimentalFragmentVariables:c,allowLegacyFragmentVariables:c});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(){c=!0}function g(){c=!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(497),i=r(420),o=r(503),a=r(421),s=r(504),c=r(506),u=r(505);function l(e,t){return new h(e,t).parseDocument()}function f(e,t){const r=new h(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseValueLiteral(!1);return r.expectToken(u.TokenKind.EOF),n}function p(e,t){const r=new h(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseConstValueLiteral();return r.expectToken(u.TokenKind.EOF),n}function d(e,t){const r=new h(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseTypeReference();return r.expectToken(u.TokenKind.EOF),n}class h{constructor(e,t={}){const r=(0,c.isSource)(e)?e:new c.Source(e);this._lexer=new s.Lexer(r),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(u.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(u.TokenKind.SOF,this.parseDefinition,u.TokenKind.EOF)})}parseDefinition(){if(this.peek(u.TokenKind.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===u.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(u.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(u.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(u.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(u.TokenKind.PAREN_L,this.parseVariableDefinition,u.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(u.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(u.TokenKind.BRACE_L,this.parseSelection,u.TokenKind.BRACE_R)})}parseSelection(){return this.peek(u.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let r,n;return this.expectOptionalToken(u.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(u.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.TokenKind.PAREN_L,t,u.TokenKind.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,r=this.parseName();return this.expectToken(u.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(u.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(u.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 u.TokenKind.BRACKET_L:return this.parseList(e);case u.TokenKind.BRACE_L:return this.parseObject(e);case u.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:a.Kind.INT,value:t.value});case u.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:a.Kind.FLOAT,value:t.value});case u.TokenKind.STRING:case u.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case u.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 u.TokenKind.DOLLAR:if(e){if(this.expectToken(u.TokenKind.DOLLAR),this._lexer.token.kind===u.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===u.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:a.Kind.LIST,values:this.any(u.TokenKind.BRACKET_L,(()=>this.parseValueLiteral(e)),u.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:a.Kind.OBJECT,fields:this.any(u.TokenKind.BRACE_L,(()=>this.parseObjectField(e)),u.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,r=this.parseName();return this.expectToken(u.TokenKind.COLON),this.node(t,{kind:a.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(u.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(u.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(u.TokenKind.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(u.TokenKind.BRACKET_R),t=this.node(e,{kind:a.Kind.LIST_TYPE,type:r})}else t=this.parseNamedType();return this.expectOptionalToken(u.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(u.TokenKind.STRING)||this.peek(u.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(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.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(u.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(u.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseFieldDefinition,u.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(u.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(u.TokenKind.PAREN_L,this.parseInputValueDef,u.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(u.TokenKind.COLON);const n=this.parseTypeReference();let i;this.expectOptionalToken(u.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(u.TokenKind.EQUALS)?this.delimitedMany(u.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(u.TokenKind.BRACE_L,this.parseEnumValueDefinition,u.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(u.TokenKind.BRACE_L,this.parseInputValueDef,u.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===u.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(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.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(u.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(u.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!==u.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===u.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!==u.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(498);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:()=>u,printError:()=>c});var n=r(499),i=r(500),o=r(502);class a extends Error{constructor(e,...t){var r,o,c;const{nodes:u,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(u)?u:u?[u]: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!==(c=null!=h?h:g)&&void 0!==c?c: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 c(e){return e.toString()}function u(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(501);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(500);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,c=1===t.line?r:0,u=t.column+c,l=`${e.name}:${s}:${u}\n`,f=n.split(/\r\n|[\n\r]/g),p=f[i];if(p.length>120){const e=Math.floor(u/80),t=u%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(u)],[`${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:()=>c,isPunctuatorTokenKind:()=>u});var n=r(497),i=r(420),o=r(414),a=r(415),s=r(505);class c{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 u(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,c=r,u=!1;if(45===c&&(c=i.charCodeAt(++o)),48===c){if(c=i.charCodeAt(++o),(0,a.isDigit)(c))throw(0,n.syntaxError)(e.source,o,`Invalid number, unexpected digit after 0: ${h(e,o)}.`)}else o=b(e,o,c),c=i.charCodeAt(o);if(46===c&&(u=!0,c=i.charCodeAt(++o),o=b(e,o,c),c=i.charCodeAt(o)),69!==c&&101!==c||(u=!0,c=i.charCodeAt(++o),43!==c&&45!==c||(c=i.charCodeAt(++o)),o=b(e,o,c),c=i.charCodeAt(o)),46===c||(0,a.isNameStart)(c))throw(0,n.syntaxError)(e.source,o,`Invalid number, expected digit but got: ${h(e,o)}.`);return m(e,u?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,c="";for(;o<i;){const i=r.charCodeAt(o);if(34===i)return c+=r.slice(a,o),m(e,s.TokenKind.STRING,t,o+1,c);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{c+=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);c+=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,c=t+3,u=c,p="";const d=[];for(;c<i;){const i=r.charCodeAt(c);if(34===i&&34===r.charCodeAt(c+1)&&34===r.charCodeAt(c+2)){p+=r.slice(u,c),d.push(p);const n=m(e,s.TokenKind.BLOCK_STRING,t,c+3,(0,o.dedentBlockStringLines)(d).join("\n"));return e.line+=d.length-1,e.lineStart=a,n}if(92!==i||34!==r.charCodeAt(c+1)||34!==r.charCodeAt(c+2)||34!==r.charCodeAt(c+3))if(10!==i&&13!==i)if(l(i))++c;else{if(!f(r,c))throw(0,n.syntaxError)(e.source,c,`Invalid character within String: ${h(e,c)}.`);c+=2}else p+=r.slice(u,c),d.push(p),13===i&&10===r.charCodeAt(c+1)?c+=2:++c,p="",u=c,a=c;else p+=r.slice(u,c),u=c+1,c+=4}throw(0,n.syntaxError)(e.source,c,"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(418),i=r(419),o=r(507);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(419);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(428)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BatchHttpLink:()=>y});var n=r(103),i=r(395),o=r(327),a=r(441),s=r(451),c=r(396),u=r(471),l=r(469),f=r(461),p=r(460),d=r(462),h=r(511),m=r(472),g=(0,o.maybe)((function(){return fetch})),y=function(e){function t(t){var r=e.call(this)||this,i=t||{},y=i.uri,v=void 0===y?"/graphql":y,b=i.fetch,_=i.print,S=void 0===_?l.defaultPrinter:_,E=i.includeExtensions,w=i.preserveHeaderCase,O=i.batchInterval,x=i.batchDebounce,T=i.batchMax,k=i.batchKey,C=i.includeUnusedVariables,I=void 0!==C&&C,R=(0,n.__rest)(i,["uri","fetch","print","includeExtensions","preserveHeaderCase","batchInterval","batchDebounce","batchMax","batchKey","includeUnusedVariables"]);var A={http:{includeExtensions:E,preserveHeaderCase:w},options:R.fetchOptions,credentials:R.credentials,headers:R.headers};r.batchDebounce=x,r.batchInterval=O||10,r.batchMax=T||10;return k=k||function(e){var t=e.getContext(),r={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:t.headers};return(0,f.selectURI)(e,v)+JSON.stringify(r)},r.batcher=new h.BatchLink({batchDebounce:r.batchDebounce,batchInterval:r.batchInterval,batchMax:r.batchMax,batchKey:k,batchHandler:function(e){var t=(0,f.selectURI)(e[0],v),r=e[0].getContext(),i={};if(r.clientAwareness){var h=r.clientAwareness,y=h.name,_=h.version;y&&(i["apollographql-client-name"]=y),_&&(i["apollographql-client-version"]=_)}var E={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,u.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]}),S,l.fallbackHttpConfig,A,E);return r.body.variables&&!I&&(r.body.variables=(0,m.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,u.fromError)(new Error("apollo-link-batch-http does not support GET requests"));try{k.body=(0,p.serializeFetchParameter)(T,"Payload")}catch(e){return(0,u.fromError)(e)}return k.signal||"undefined"==typeof AbortController||(O=new AbortController,k.signal=O.signal),new c.Observable((function(r){return(b||(0,o.maybe)((function(){return fetch}))||g)(t,k).then((function(t){return e.forEach((function(e){return e.setContext({response:t})})),t})).then((0,d.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(512),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,c=n.batchMax,u=void 0===c?0:c,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:u,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=[],c=[];t.forEach((function(e){r.push(e.operation),n.push(e.forward),o.push(e.observable),a.push(e.next),s.push(e.error),c.push(e.complete)}));var u=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=u.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(){c.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,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,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},u=Math.floor,l=String.fromCharCode;function f(e){throw new RangeError(c[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?u(e/700):e>>1,e+=u(e/t);e>455;n+=i)e=u(e/35);return u(n+36*e/(e+38))},y=function(e){const t=[],r=e.length;let o=0,a=128,s=72,c=e.lastIndexOf("-");c<0&&(c=0);for(let r=0;r<c;++r)e.charCodeAt(r)>=128&&f("not-basic"),t.push(e.charCodeAt(r));for(let p=c>0?c+1:0;p<r;){const c=o;for(let t=1,a=i;;a+=i){p>=r&&f("invalid-input");const c=(l=e.charCodeAt(p++))>=48&&l<58?l-48+26:l>=65&&l<91?l-65:l>=97&&l<123?l-97:i;c>=i&&f("invalid-input"),c>u((n-o)/t)&&f("overflow"),o+=c*t;const d=a<=s?1:a>=s+26?26:a-s;if(c<d)break;const h=i-d;t>u(n/h)&&f("overflow"),t*=h}const d=t.length+1;s=g(o-c,d,0==c),u(o/d)>n-a&&f("overflow"),a+=u(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 c=t.length;let p=c;for(c&&t.push("-");p<r;){let r=n;for(const t of e)t>=o&&t<r&&(r=t);const d=p+1;r-o>u((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=u(o/a)}t.push(l(m(e,0))),s=g(a,d,p===c),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:()=>D,Form:()=>U,HashRouter:()=>N,Link:()=>B,MemoryRouter:()=>i.MemoryRouter,NavLink:()=>F,Navigate:()=>i.Navigate,NavigationType:()=>o.Action,Outlet:()=>i.Outlet,Route:()=>i.Route,Router:()=>i.Router,RouterProvider:()=>R,Routes:()=>i.Routes,ScrollRestoration:()=>H,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:()=>re,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,replace:()=>o.replace,resolvePath:()=>o.resolvePath,unstable_HistoryRouter:()=>M,unstable_usePrompt:()=>ie,unstable_useViewTransitionState:()=>oe,useActionData:()=>i.useActionData,useAsyncError:()=>i.useAsyncError,useAsyncValue:()=>i.useAsyncValue,useBeforeUnload:()=>ne,useBlocker:()=>i.useBlocker,useFetcher:()=>J,useFetchers:()=>Z,useFormAction:()=>X,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:()=>$,useSubmit:()=>Q});var n=r(270),i=r(574),o=r(575);
/**
 * React Router DOM v6.26.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 c="get",u="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")||c,i=h(e.getAttribute("enctype"))||u,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")||c,i=h(e.getAttribute("formenctype"))||h(s.getAttribute("enctype"))||u,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=c,n=null,i=u,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,unstable_patchRoutesOnNavigation:null==t?void 0:t.unstable_patchRoutesOnNavigation,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,unstable_patchRoutesOnNavigation:null==t?void 0:t.unstable_patchRoutesOnNavigation,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),[c,u]=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),u(void 0),f({isTransitioning:!1})}))})),void C((()=>m(t)))}h?(p&&p.resolve(),h.skipTransition(),y({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(u(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&&c&&r.window){let e=c,t=p.promise,n=r.window.document.startViewTransition((async()=>{_((()=>s(e))),await t}));n.finished.finally((()=>{d(void 0),m(void 0),u(void 0),f({isTransitioning:!1})})),m(n)}}),[_,c,p,r.window]),n.useEffect((()=>{p&&c&&a.location.key===c.location.key&&p.resolve()}),[p,h,a.location,c]),n.useEffect((()=>{!l.isTransitioning&&g&&(u(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]),R=n.useMemo((()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath})),[r.future.v7_relativeSplatPath]);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:R},a.initialized||r.future.v7_partialHydration?n.createElement(A,{routes:r.routes,future:r.future,state:a}):t))))),null)}const A=n.memo(P);function P(e){let{routes:t,future:r,state:n}=e;return(0,i.UNSAFE_useRoutesImpl)(t,void 0,n,r)}function D(e){let{basename:t,children:r,future:a,window:s}=e,c=n.useRef();null==c.current&&(c.current=(0,o.createBrowserHistory)({window:s,v5Compat:!0}));let u=c.current,[l,f]=n.useState({action:u.action,location:u.location}),{v7_startTransition:p}=a||{},d=n.useCallback((e=>{p&&x?x((()=>f(e))):f(e)}),[f,p]);return n.useLayoutEffect((()=>u.listen(d)),[u,d]),n.createElement(i.Router,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:u,future:a})}function N(e){let{basename:t,children:r,future:a,window:s}=e,c=n.useRef();null==c.current&&(c.current=(0,o.createHashHistory)({window:s,v5Compat:!0}));let u=c.current,[l,f]=n.useState({action:u.action,location:u.location}),{v7_startTransition:p}=a||{},d=n.useCallback((e=>{p&&x?x((()=>f(e))):f(e)}),[f,p]);return n.useLayoutEffect((()=>u.listen(d)),[u,d]),n.createElement(i.Router,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:u,future:a})}function M(e){let{basename:t,children:r,future:o,history:a}=e,[s,c]=n.useState({action:a.action,location:a.location}),{v7_startTransition:u}=o||{},l=n.useCallback((e=>{u&&x?x((()=>c(e))):c(e)}),[c,u]);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 L="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,j=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,B=n.forwardRef((function(e,t){let r,{onClick:c,relative:u,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&&j.test(h)&&(r=h,L))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:u}),E=V(h,{replace:f,state:p,target:d,preventScrollReset:m,relative:u,unstable_viewTransition:y});return n.createElement("a",a({},v,{href:r||S,onClick:_||l?c:function(e){c&&c(e),e.defaultPrevented||E(e)},ref:t,target:d}))}));const F=n.forwardRef((function(e,t){let{"aria-current":r="page",caseSensitive:c=!1,className:u="",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&&oe(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;c||(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 u?u(R):[u,C?"active":null,I?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let P="function"==typeof f?f(R):f;return n.createElement(B,a({},m,{"aria-current":A,className:k,ref:t,style:P,to:p,unstable_viewTransition:d}),"function"==typeof h?h(R):h)}));const U=n.forwardRef(((e,t)=>{let{fetcherKey:r,navigate:i,reloadDocument:o,replace:u,state:l,method:f=c,action:p,onSubmit:d,relative:h,preventScrollReset:m,unstable_viewTransition:g}=e,y=s(e,v),b=Q(),_=X(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:u,state:l,relative:h,preventScrollReset:m,unstable_viewTransition:g})}},y))}));function H(e){let{getKey:t,storageKey:r}=e;return re({getKey:t,storageKey:r}),null}var q,z;function W(e){let t=n.useContext(i.UNSAFE_DataRouterContext);return t||(0,o.UNSAFE_invariant)(!1),t}function G(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:c,relative:u,unstable_viewTransition:l}=void 0===t?{}:t,f=(0,i.useNavigate)(),p=(0,i.useLocation)(),d=(0,i.useResolvedPath)(e,{relative:u});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:c,relative:u,unstable_viewTransition:l})}}),[p,f,d,a,s,r,e,c,u,l])}function $(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)(),c=n.useCallback(((e,t)=>{const n=f("function"==typeof e?e(a):e);r.current=!0,s("?"+n,t)}),[s,a]);return[a,c]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(q||(q={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(z||(z={}));let K=0,Y=()=>"__"+String(++K)+"__";function Q(){let{router:e}=W(q.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:c,body:u}=m(n,t);if(!1===i.navigate){let t=i.fetcherKey||Y();e.fetch(t,r,i.action||o,{preventScrollReset:i.preventScrollReset,formData:c,body:u,formMethod:i.method||a,formEncType:i.encType||s,unstable_flushSync:i.unstable_flushSync})}else e.navigate(i.action||o,{preventScrollReset:i.preventScrollReset,formData:c,body:u,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 X(e,t){let{relative:r}=void 0===t?{}:t,{basename:s}=n.useContext(i.UNSAFE_NavigationContext),c=n.useContext(i.UNSAFE_RouteContext);c||(0,o.UNSAFE_invariant)(!1);let[u]=c.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||!u.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 J(e){var t;let{key:r}=void 0===e?{}:e,{router:s}=W(q.UseFetcher),c=G(z.UseFetcher),u=n.useContext(O),l=n.useContext(i.UNSAFE_RouteContext),f=null==(t=l.matches[l.matches.length-1])?void 0:t.route.id;u||(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(Y()),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=Q(),y=n.useCallback(((e,t)=>{g(e,a({},t,{navigate:!1,fetcherKey:d}))}),[d,g]),v=n.useMemo((()=>n.forwardRef(((e,t)=>n.createElement(U,a({},e,{navigate:!1,fetcherKey:d,ref:t}))))),[d]),b=c.fetchers.get(d)||o.IDLE_FETCHER,_=u.get(d);return n.useMemo((()=>a({Form:v,submit:y,load:m},b,{data:_})),[v,y,m,b,_])}function Z(){let e=G(z.UseFetchers);return Array.from(e.fetchers.entries()).map((e=>{let[t,r]=e;return a({},r,{key:t})}))}const ee="react-router-scroll-positions";let te={};function re(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:s}=W(q.UseScrollRestoration),{restoreScrollPosition:c,preventScrollReset:u}=G(z.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;te[e]=window.scrollY}try{sessionStorage.setItem(r||ee,JSON.stringify(te))}catch(e){}window.history.scrollRestoration="auto"}),[r,t,d.state,f,p])),"undefined"!=typeof document&&(n.useLayoutEffect((()=>{try{let e=sessionStorage.getItem(r||ee);e&&(te=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(te,(()=>window.scrollY),e);return()=>r&&r()}),[s,l,t]),n.useLayoutEffect((()=>{if(!1!==c)if("number"!=typeof c){if(f.hash){let e=document.getElementById(decodeURIComponent(f.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==u&&window.scrollTo(0,0)}else window.scrollTo(0,c)}),[f,c,u]))}function ne(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 ie(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 oe(e,t){void 0===t&&(t={});let r=n.useContext(w);null==r&&(0,o.UNSAFE_invariant)(!1);let{basename:a}=W(q.useViewTransitionState),s=(0,i.useResolvedPath)(e,{relative:t.relative});if(!r.isTransitioning)return!1;let c=(0,o.stripBasename)(r.currentLocation.pathname,a)||r.currentLocation.pathname,u=(0,o.stripBasename)(r.nextLocation.pathname,a)||r.nextLocation.pathname;return null!=(0,o.matchPath)(s.pathname,u)||null!=(0,o.matchPath)(s.pathname,c)}},(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:()=>u,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,replace:()=>i.replace,resolvePath:()=>i.resolvePath,useActionData:()=>z,useAsyncError:()=>V,useAsyncValue:()=>G,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(575);
/**
 * React Router v6.26.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 c=n.createContext(null);const u=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(u),{hash:s,pathname:c,search:l}=O(e,{relative:r}),f=c;return"/"!==o&&(f="/"===c?o:(0,i.joinPaths)([o,c])),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,(0,i.UNSAFE_decodePath)(t))),[t,e])}function v(e){n.useContext(u).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(u),{matches:s}=n.useContext(f),{pathname:c}=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),c,"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,c,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(u),{matches:a}=n.useContext(f),{pathname:s}=m(),c=JSON.stringify((0,i.UNSAFE_getResolveToMatches)(a,o.v7_relativeSplatPath));return n.useMemo((()=>(0,i.resolveTo)(e,JSON.parse(c),s,"path"===r)),[e,c,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(u),{matches:c}=n.useContext(f),p=c[c.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])}))),c,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(!r)return null;if(r.errors)e=r.matches;else{if(!(null!=(s=o)&&s.v7_partialHydration&&0===t.length&&!r.initialized&&r.matches.length>0))return null;e=r.matches}}let c=e,u=null==(a=r)?void 0:a.errors;if(null!=u){let e=c.findIndex((e=>e.route.id&&void 0!==(null==u?void 0:u[e.route.id])));e>=0||(0,i.UNSAFE_invariant)(!1),c=c.slice(0,Math.min(c.length,e+1))}let l=!1,f=-1;if(r&&o&&o.v7_partialHydration)for(let e=0;e<c.length;e++){let t=c[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,c=f>=0?c.slice(0,f+1):[c[0]];break}}}return c.reduceRight(((e,i,o)=>{let a,s=!1,p=null,d=null;var h;r&&(a=u&&i.route.id?u[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(c.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(){let e=n.useContext(f);return e||(0,i.UNSAFE_invariant)(!1),e}(),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 G(){let e=n.useContext(c);return null==e?void 0:e._data}function V(){let e=n.useContext(c);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,c]=n.useState(""),u=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 c(e),()=>t.deleteBlocker(e)}),[t]),n.useEffect((()=>{""!==s&&t.getBlocker(s,u)}),[t,s,u]),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,c]=n.useState(r.state),{v7_startTransition:u}=i||{},l=n.useCallback((e=>{u&&Q?Q((()=>c(e))):c(e)}),[c,u]);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,c=n.useRef();null==c.current&&(c.current=(0,i.createMemoryHistory)({initialEntries:o,initialIndex:a,v5Compat:!0}));let u=c.current,[l,f]=n.useState({action:u.action,location:u.location}),{v7_startTransition:p}=s||{},d=n.useCallback((e=>{p&&Q?Q((()=>f(e))):f(e)}),[f,p]);return n.useLayoutEffect((()=>u.listen(d)),[u,d]),n.createElement(ne,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:u,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:c}=n.useContext(u),{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:c,static:f=!1,future:p}=e;h()&&(0,i.UNSAFE_invariant)(!1);let d=t.replace(/^\/*/,"/"),m=n.useMemo((()=>({basename:d,navigator:c,static:f,future:o({v7_relativeSplatPath:!1},p)})),[d,p,c,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(u.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(ce,{resolve:i,errorElement:r},n.createElement(ue,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 ce 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(c.Provider,{value:o,children:t});if(a===ae.success)return n.createElement(c.Provider,{value:o,children:e});throw o}}function ue(e){let{children:t}=e,r=G(),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,unstable_patchRoutesOnNavigation:null==t?void 0:t.unstable_patchRoutesOnNavigation}).initialize()}},(e,t,r)=>{"use strict";
/**
 * @remix-run/router v1.19.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:()=>Q,Action:()=>i,IDLE_BLOCKER:()=>de,IDLE_FETCHER:()=>pe,IDLE_NAVIGATION:()=>fe,UNSAFE_DEFERRED_SYMBOL:()=>ve,UNSAFE_DeferredData:()=>X,UNSAFE_ErrorResponseImpl:()=>ne,UNSAFE_convertRouteMatchToUiMatch:()=>S,UNSAFE_convertRoutesToDataRoutes:()=>v,UNSAFE_decodePath:()=>M,UNSAFE_getResolveToMatches:()=>U,UNSAFE_invariant:()=>u,UNSAFE_warning:()=>l,createBrowserHistory:()=>s,createHashHistory:()=>c,createMemoryHistory:()=>a,createPath:()=>d,createRouter:()=>ye,createStaticHandler:()=>be,defer:()=>Z,generatePath:()=>D,getStaticContextFromError:()=>_e,getToPathname:()=>q,isDataWithResponseInit:()=>Je,isDeferredData:()=>Ze,isRouteErrorResponse:()=>ie,joinPaths:()=>z,json:()=>$,matchPath:()=>N,matchRoutes:()=>b,normalizePathname:()=>W,parsePath:()=>h,redirect:()=>ee,redirectDocument:()=>te,replace:()=>re,resolvePath:()=>j,resolveTo:()=>H,stripBasename:()=>L,unstable_data:()=>Y}),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=u(null==n?t.length-1:n),s=i.Pop,c=null;function u(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&&c&&c({action:s,location:n,delta:1})},replace(e,r){s=i.Replace;let n=m(e,r);t[a]=n,o&&c&&c({action:s,location:n,delta:0})},go(e){s=i.Pop;let r=u(a+e),n=t[r];a=r,c&&c({action:s,location:n,delta:e})},listen:e=>(c=e,()=>{c=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 c(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 u(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:c=!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"),u(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)}c&&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),c&&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,String(o)],s="string"==typeof e.id?e.id:a.join("-");if(u(!0!==e.index||!e.children,"Cannot specify children on an index route"),u(!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){return void 0===r&&(r="/"),_(e,t,r,!1)}function _(e,t,r,n){let i=L(("string"==typeof t?h(t):t).pathname||"/",r);if(null==i)return null;let o=E(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)))))}(o);let a=null;for(let e=0;null==a&&e<o.length;++e){let t=M(i);a=P(o[e],t,n)}return a}function S(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 E(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("/")&&(u(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=z([n,a.relativePath]),c=r.concat(a);e.children&&e.children.length>0&&(u(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),E(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:A(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of w(e.path))i(e,t,r);else i(e,t)})),t}function w(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=w(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 O=/^:[\w-]+$/,x=3,T=2,k=1,C=10,I=-2,R=e=>"*"===e;function A(e,t){let r=e.split("/"),n=r.length;return r.some(R)&&(n+=I),t&&(n+=T),r.filter((e=>!R(e))).reduce(((e,t)=>e+(O.test(t)?x:""===t?k:C)),n)}function P(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,i={},o="/",a=[];for(let e=0;e<n.length;++e){let s=n[e],c=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",l=N({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},u),f=s.route;if(!l&&c&&r&&!n[n.length-1].route.index&&(l=N({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},u)),!l)return null;Object.assign(i,l.params),a.push({params:i,pathname:z([o,l.pathname]),pathnameBase:W(z([o,l.pathnameBase])),route:f}),"/"!==l.pathnameBase&&(o=z([o,l.pathnameBase]))}return a}function D(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 u("?"===r||null!=n,'Missing ":'+e+'" param'),i(n)}return e.replace(/\?$/g,"")})).filter((e=>!!e)).join("/")}function N(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 c=s[r];return e[n]=i&&!c?void 0:(c||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function M(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 L(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 j(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:G(n),hash:V(i)}}function B(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 F(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function U(e,t){let r=F(e);return t?r.map(((e,t)=>t===r.length-1?e.pathname:e.pathnameBase)):r.map((e=>e.pathnameBase))}function H(e,t,r,i){let o;void 0===i&&(i=!1),"string"==typeof e?o=h(e):(o=n({},e),u(!o.pathname||!o.pathname.includes("?"),B("?","pathname","search",o)),u(!o.pathname||!o.pathname.includes("#"),B("#","pathname","hash",o)),u(!o.search||!o.search.includes("#"),B("#","search","hash",o)));let a,s=""===e||""===o.pathname,c=s?"/":o.pathname;if(null==c)a=r;else{let e=t.length-1;if(!i&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=j(o,a),f=c&&"/"!==c&&c.endsWith("/"),p=(s||"."===c)&&r.endsWith("/");return l.pathname.endsWith("/")||!f&&!p||(l.pathname+="/"),l}function q(e){return""===e||""===e.pathname?"/":"string"==typeof e?h(e).pathname:e.pathname}const z=e=>e.join("/").replace(/\/\/+/g,"/"),W=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),G=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",V=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",$=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 K{constructor(e,t){this.type="DataWithResponseInit",this.data=e,this.init=t||null}}function Y(e,t){return new K(e,"number"==typeof t?{status:t}:t)}class Q extends Error{}class X{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],u(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 Q("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 Q)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 u(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]:J(n)})}),{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function J(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}const Z=function(e,t){return void 0===t&&(t={}),new X(e,"number"==typeof t?{status:t}:t)},ee=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}))},te=(e,t)=>{let r=ee(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},re=(e,t)=>{let r=ee(e,t);return r.headers.set("X-Remix-Replace","true"),r};class ne{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 ie(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const oe=["post","put","patch","delete"],ae=new Set(oe),se=["get",...oe],ce=new Set(se),ue=new Set([301,302,303,307,308]),le=new Set([307,308]),fe={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},pe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},de={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},he=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,me=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ge="remix-router-transitions";function ye(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(u(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=me;let s,c,f,d={},h=v(e.routes,a,void 0,d),m=e.basename||"/",y=e.unstable_dataStrategy||Ae,E=e.unstable_patchRoutesOnNavigation,w=n({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),O=null,x=new Set,T=1e3,k=new Set,C=null,I=null,R=null,A=null!=e.hydrationData,P=b(h,e.history.location,m),D=null;if(null==P&&!E){let t=Ge(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=We(h);P=r,D={[n.id]:t}}if(P&&!e.hydrationData){pt(P,h,e.history.location.pathname).active&&(P=null)}if(P)if(P.some((e=>e.route.lazy)))c=!1;else if(P.some((e=>e.route.loader)))if(w.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=P.findIndex((e=>void 0!==r[e.route.id]));c=P.slice(0,e+1).every(n)}else c=P.every(n)}else c=null!=e.hydrationData;else c=!0;else if(c=!1,P=[],w.v7_partialHydration){let t=pt(null,h,e.history.location.pathname);t.active&&t.matches&&(P=t.matches)}let N,M={historyAction:e.history.action,location:e.history.location,matches:P,initialized:c,navigation:fe,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||D,fetchers:new Map,blockers:new Map},j=i.Pop,B=!1,F=!1,U=new Map,H=null,q=!1,z=!1,W=[],G=new Set,V=new Map,$=0,K=-1,Y=new Map,Q=new Set,X=new Map,J=new Map,Z=new Set,ee=new Map,te=new Map,re=new Map,ne=!1;function oe(e,t){void 0===t&&(t={}),M=n({},M,e);let r=[],i=[];w.v7_fetcherPersist&&M.fetchers.forEach(((e,t)=>{"idle"===e.state&&(Z.has(t)?i.push(t):r.push(t))})),[...x].forEach((e=>e(M,{deletedFetchers:i,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),w.v7_fetcherPersist&&(r.forEach((e=>M.fetchers.delete(e))),i.forEach((e=>Te(e))))}function ae(t,r,o){var a,c;let u,{flushSync:l}=void 0===o?{}:o,f=null!=M.actionData&&null!=M.navigation.formMethod&&rt(M.navigation.formMethod)&&"loading"===M.navigation.state&&!0!==(null==(a=t.state)?void 0:a._isRedirect);u=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:f?M.actionData:null;let p=r.loaderData?He(M.loaderData,r.loaderData,r.matches||[],r.errors):M.loaderData,d=M.blockers;d.size>0&&(d=new Map(d),d.forEach(((e,t)=>d.set(t,de))));let m,g=!0===B||null!=M.navigation.formMethod&&rt(M.navigation.formMethod)&&!0!==(null==(c=t.state)?void 0:c._isRedirect);if(s&&(h=s,s=void 0),q||j===i.Pop||(j===i.Push?e.history.push(t,t.state):j===i.Replace&&e.history.replace(t,t.state)),j===i.Pop){let e=U.get(M.location.pathname);e&&e.has(t.pathname)?m={currentLocation:M.location,nextLocation:t}:U.has(t.pathname)&&(m={currentLocation:t,nextLocation:M.location})}else if(F){let e=U.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),U.set(M.location.pathname,e)),m={currentLocation:M.location,nextLocation:t}}oe(n({},r,{actionData:u,loaderData:p,historyAction:j,location:t,initialized:!0,navigation:fe,revalidation:"idle",restoreScrollPosition:ft(t,r.matches||M.matches),preventScrollReset:g,blockers:d}),{viewTransitionOpts:m,flushSync:!0===l}),j=i.Pop,B=!1,F=!1,q=!1,z=!1,W=[]}async function se(t,r,o){N&&N.abort(),N=null,j=t,q=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(C&&R){let r=ot(e,t);C[r]=R()}}(M.location,M.matches),B=!0===(o&&o.preventScrollReset),F=!0===(o&&o.enableViewTransition);let a=s||h,c=o&&o.overrideNavigation,u=b(a,r,m),l=!0===(o&&o.flushSync),f=pt(u,a,r.pathname);if(f.active&&f.matches&&(u=f.matches),!u){let{error:e,notFoundMatches:t,route:n}=Ze(r.pathname);return void ae(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:l})}if(M.initialized&&!z&&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}(M.location,r)&&!(o&&o.submission&&rt(o.submission.formMethod)))return void ae(r,{matches:u},{flushSync:l});N=new AbortController;let p,d=Le(e.history,r,N.signal,o&&o.submission);if(o&&o.pendingError)p=[ze(u).route.id,{type:g.error,error:o.pendingError}];else if(o&&o.submission&&rt(o.submission.formMethod)){let t=await async function(e,t,r,n,o,a){void 0===a&&(a={});be();let s,c=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);if(oe({navigation:c},{flushSync:!0===a.flushSync}),o){let r=await dt(n,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let{boundaryId:e,error:n}=et(t.pathname,r);return{matches:r.partialMatches,pendingActionResult:[e,{type:g.error,error:n}]}}if(!r.matches){let{notFoundMatches:e,error:r,route:n}=Ze(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:g.error,error:r}]}}n=r.matches}let u=at(n,t);if(u.route.action||u.route.lazy){if(s=(await ye("action",e,[u],n))[0],e.signal.aborted)return{shortCircuited:!0}}else s={type:g.error,error:Ge(405,{method:e.method,pathname:t.pathname,routeId:u.route.id})};if(Xe(s)){let t;if(a&&null!=a.replace)t=a.replace;else{t=Me(s.response.headers.get("Location"),new URL(e.url),m)===M.location.pathname+M.location.search}return await ue(e,s,{submission:r,replace:t}),{shortCircuited:!0}}if(Ye(s))throw Ge(400,{type:"defer-action"});if(Qe(s)){let e=ze(n,u.route.id);return!0!==(a&&a.replace)&&(j=i.Push),{matches:n,pendingActionResult:[e.route.id,s]}}return{matches:n,pendingActionResult:[u.route.id,s]}}(d,r,o.submission,u,f.active,{replace:o.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,n]=t.pendingActionResult;if(Qe(n)&&ie(n.error)&&404===n.error.status)return N=null,void ae(r,{matches:t.matches,loaderData:{},errors:{[e]:n.error}})}u=t.matches||u,p=t.pendingActionResult,c=ct(r,o.submission),l=!1,f.active=!1,d=Le(e.history,d.url,d.signal)}let{shortCircuited:y,matches:v,loaderData:_,errors:S}=await async function(t,r,i,o,a,c,u,l,f,p,d){let g=a||ct(r,c),y=c||u||st(g),v=!(q||w.v7_partialHydration&&f);if(o){if(v){let e=ce(d);oe(n({navigation:g},void 0!==e?{actionData:e}:{}),{flushSync:p})}let e=await dt(i,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let{boundaryId:t,error:n}=et(r.pathname,e);return{matches:e.partialMatches,loaderData:{},errors:{[t]:n}}}if(!e.matches){let{error:e,notFoundMatches:t,route:n}=Ze(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}i=e.matches}let b=s||h,[_,S]=xe(e.history,M,i,y,r,w.v7_partialHydration&&!0===f,w.v7_skipActionErrorRevalidation,z,W,G,Z,X,Q,b,m,d);if(tt((e=>!(i&&i.some((t=>t.route.id===e)))||_&&_.some((t=>t.route.id===e)))),K=++$,0===_.length&&0===S.length){let e=je();return ae(r,n({matches:i,loaderData:{},errors:d&&Qe(d[1])?{[d[0]]:d[1].error}:null},qe(d),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:p}),{shortCircuited:!0}}if(v){let e={};if(!o){e.navigation=g;let t=ce(d);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=M.fetchers.get(e.key),r=ut(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)})),new Map(M.fetchers)}(S)),oe(e,{flushSync:p})}S.forEach((e=>{V.has(e.key)&&ke(e.key),e.controller&&V.set(e.key,e.controller)}));let E=()=>S.forEach((e=>ke(e.key)));N&&N.signal.addEventListener("abort",E);let{loaderResults:O,fetcherResults:x}=await ve(M.matches,i,_,S,t);if(t.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",E);S.forEach((e=>V.delete(e.key)));let T=Ve([...O,...x]);if(T){if(T.idx>=_.length){let e=S[T.idx-_.length].key;Q.add(e)}return await ue(t,T.result,{replace:l}),{shortCircuited:!0}}let{loaderData:k,errors:C}=Ue(M,i,_,O,d,S,x,ee);ee.forEach(((e,t)=>{e.subscribe((r=>{(r||e.done)&&ee.delete(t)}))})),w.v7_partialHydration&&f&&M.errors&&Object.entries(M.errors).filter((e=>{let[t]=e;return!_.some((e=>e.route.id===t))})).forEach((e=>{let[t,r]=e;C=Object.assign(C||{},{[t]:r})}));let I=je(),R=Be(K),A=I||R||S.length>0;return n({matches:i,loaderData:k,errors:C},A?{fetchers:new Map(M.fetchers)}:{})}(d,r,u,f.active,c,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,l,p);y||(N=null,ae(r,n({matches:v||u},qe(p),{loaderData:_,errors:S})))}function ce(e){return e&&!Qe(e[1])?{[e[0]]:e[1].data}:M.actionData?0===Object.keys(M.actionData).length?null:M.actionData:void 0}async function ue(o,a,s){let{submission:c,fetcherSubmission:l,replace:f}=void 0===s?{}:s;a.response.headers.has("X-Remix-Revalidate")&&(z=!0);let d=a.response.headers.get("Location");u(d,"Expected a Location header on the redirect Response"),d=Me(d,new URL(o.url),m);let h=p(M.location,d,{_isRedirect:!0});if(r){let r=!1;if(a.response.headers.has("X-Remix-Reload-Document"))r=!0;else if(he.test(d)){const n=e.history.createURL(d);r=n.origin!==t.location.origin||null==L(n.pathname,m)}if(r)return void(f?t.location.replace(d):t.location.assign(d))}N=null;let g=!0===f||a.response.headers.has("X-Remix-Replace")?i.Replace:i.Push,{formMethod:y,formAction:v,formEncType:b}=M.navigation;!c&&!l&&y&&v&&b&&(c=st(M.navigation));let _=c||l;if(le.has(a.response.status)&&_&&rt(_.formMethod))await se(g,h,{submission:n({},_,{formAction:d}),preventScrollReset:B});else{let e=ct(h,c);await se(g,h,{overrideNavigation:e,fetcherSubmission:l,preventScrollReset:B})}}async function ye(e,t,r,n){try{let i=await Pe(y,e,t,r,n,d,a);return await Promise.all(i.map(((e,i)=>{if(Ke(e)){let o=e.result;return{type:g.redirect,response:Ne(o,t,r[i].route.id,n,m,w.v7_relativeSplatPath)}}return De(e)})))}catch(e){return r.map((()=>({type:g.error,error:e})))}}async function ve(t,r,n,i,o){let[a,...s]=await Promise.all([n.length?ye("loader",o,n,r):[],...i.map((t=>{if(t.matches&&t.match&&t.controller){return ye("loader",Le(e.history,t.path,t.controller.signal),[t.match],t.matches).then((e=>e[0]))}return Promise.resolve({type:g.error,error:Ge(404,{pathname:t.path})})}))]);return await Promise.all([nt(t,n,a,a.map((()=>o.signal)),!1,M.loaderData),nt(t,i.map((e=>e.match)),s,i.map((e=>e.controller?e.controller.signal:null)),!0)]),{loaderResults:a,fetcherResults:s}}function be(){z=!0,W.push(...tt()),X.forEach(((e,t)=>{V.has(t)&&(G.add(t),ke(t))}))}function _e(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),oe({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Se(e,t,r,n){void 0===n&&(n={});let i=ze(M.matches,t);Te(e),oe({errors:{[i.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Oe(e){return w.v7_fetcherPersist&&(J.set(e,(J.get(e)||0)+1),Z.has(e)&&Z.delete(e)),M.fetchers.get(e)||pe}function Te(e){let t=M.fetchers.get(e);!V.has(e)||t&&"loading"===t.state&&Y.has(e)||ke(e),X.delete(e),Y.delete(e),Q.delete(e),Z.delete(e),G.delete(e),M.fetchers.delete(e)}function ke(e){let t=V.get(e);u(t,"Expected fetch controller: "+e),t.abort(),V.delete(e)}function Re(e){for(let t of e){let e=lt(Oe(t).data);M.fetchers.set(t,e)}}function je(){let e=[],t=!1;for(let r of Q){let n=M.fetchers.get(r);u(n,"Expected fetcher: "+r),"loading"===n.state&&(Q.delete(r),e.push(r),t=!0)}return Re(e),t}function Be(e){let t=[];for(let[r,n]of Y)if(n<e){let e=M.fetchers.get(r);u(e,"Expected fetcher: "+r),"loading"===e.state&&(ke(r),Y.delete(r),t.push(r))}return Re(t),t.length>0}function Fe(e){M.blockers.delete(e),te.delete(e)}function $e(e,t){let r=M.blockers.get(e)||de;u("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(M.blockers);n.set(e,t),oe({blockers:n})}function Je(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===te.size)return;te.size>1&&l(!1,"A router only supports one blocker at a time");let i=Array.from(te.entries()),[o,a]=i[i.length-1],s=M.blockers.get(o);return s&&"proceeding"===s.state?void 0:a({currentLocation:t,nextLocation:r,historyAction:n})?o:void 0}function Ze(e){let t=Ge(404,{pathname:e}),r=s||h,{matches:n,route:i}=We(r);return tt(),{notFoundMatches:n,route:i,error:t}}function et(e,t){return{boundaryId:ze(t.partialMatches).route.id,error:Ge(400,{type:"route-discovery",pathname:e,message:null!=t.error&&"message"in t.error?t.error:String(t.error)})}}function tt(e){let t=[];return ee.forEach(((r,n)=>{e&&!e(n)||(r.cancel(),t.push(n),ee.delete(n))})),t}function ot(e,t){if(I){return I(e,t.map((e=>S(e,M.loaderData))))||e.key}return e.key}function ft(e,t){if(C){let r=ot(e,t),n=C[r];if("number"==typeof n)return n}return null}function pt(e,t,r){if(E){if(k.has(r))return{active:!1,matches:e};if(!e){return{active:!0,matches:_(t,r,m,!0)||[]}}if(Object.keys(e[0].params).length>0){return{active:!0,matches:_(t,r,m,!0)}}}return{active:!1,matches:null}}async function dt(e,t,r){let n=e;for(;;){let e=null==s,i=s||h;try{await Ce(E,t,n,i,d,a,re,r)}catch(e){return{type:"error",error:e,partialMatches:n}}finally{e&&(h=[...h])}if(r.aborted)return{type:"aborted"};let o=b(i,t,m);if(o)return ht(t,k),{type:"success",matches:o};let c=_(i,t,m,!0);if(!c||n.length===c.length&&n.every(((e,t)=>e.route.id===c[t].route.id)))return ht(t,k),{type:"success",matches:null};n=c}}function ht(e,t){if(t.size>=T){let e=t.values().next().value;t.delete(e)}t.add(e)}return f={get basename(){return m},get future(){return w},get state(){return M},get routes(){return h},get window(){return t},initialize:function(){if(O=e.history.listen((t=>{let{action:r,location:n,delta:i}=t;if(ne)return void(ne=!1);l(0===te.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=Je({currentLocation:M.location,nextLocation:n,historyAction:r});return o&&null!=i?(ne=!0,e.history.go(-1*i),void $e(o,{state:"blocked",location:n,proceed(){$e(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(i)},reset(){let e=new Map(M.blockers);e.set(o,de),oe({blockers:e})}})):se(r,n)})),r){!function(e,t){try{let r=e.sessionStorage.getItem(ge);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,U);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ge,JSON.stringify(r))}catch(e){l(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,U);t.addEventListener("pagehide",e),H=()=>t.removeEventListener("pagehide",e)}return M.initialized||se(i.Pop,M.location,{initialHydration:!0}),f},subscribe:function(e){return x.add(e),()=>x.delete(e)},enableScrollRestoration:function(e,t,r){if(C=e,R=t,I=r||null,!A&&M.navigation===fe){A=!0;let e=ft(M.location,M.matches);null!=e&&oe({restoreScrollPosition:e})}return()=>{C=null,R=null,I=null}},navigate:async function t(r,o){if("number"==typeof r)return void e.history.go(r);let a=Ee(M.location,M.matches,m,w.v7_prependBasename,r,w.v7_relativeSplatPath,null==o?void 0:o.fromRouteId,null==o?void 0:o.relative),{path:s,submission:c,error:u}=we(w.v7_normalizeFormMethod,!1,a,o),l=M.location,f=p(M.location,s,o&&o.state);f=n({},f,e.history.encodeLocation(f));let d=o&&null!=o.replace?o.replace:void 0,h=i.Push;!0===d?h=i.Replace:!1===d||null!=c&&rt(c.formMethod)&&c.formAction===M.location.pathname+M.location.search&&(h=i.Replace);let g=o&&"preventScrollReset"in o?!0===o.preventScrollReset:void 0,y=!0===(o&&o.unstable_flushSync),v=Je({currentLocation:l,nextLocation:f,historyAction:h});if(!v)return await se(h,f,{submission:c,pendingError:u,preventScrollReset:g,replace:o&&o.replace,enableViewTransition:o&&o.unstable_viewTransition,flushSync:y});$e(v,{state:"blocked",location:f,proceed(){$e(v,{state:"proceeding",proceed:void 0,reset:void 0,location:f}),t(r,o)},reset(){let e=new Map(M.blockers);e.set(v,de),oe({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.");V.has(t)&&ke(t);let a=!0===(i&&i.unstable_flushSync),c=s||h,l=Ee(M.location,M.matches,m,w.v7_prependBasename,n,w.v7_relativeSplatPath,r,null==i?void 0:i.relative),f=b(c,l,m),p=pt(f,c,l);if(p.active&&p.matches&&(f=p.matches),!f)return void Se(t,r,Ge(404,{pathname:l}),{flushSync:a});let{path:d,submission:g,error:y}=we(w.v7_normalizeFormMethod,!0,l,i);if(y)return void Se(t,r,y,{flushSync:a});let v=at(f,d);B=!0===(i&&i.preventScrollReset),g&&rt(g.formMethod)?async function(t,r,n,i,o,a,c,l){function f(e){if(!e.route.action&&!e.route.lazy){let e=Ge(405,{method:l.formMethod,pathname:n,routeId:r});return Se(t,r,e,{flushSync:c}),!0}return!1}if(be(),X.delete(t),!a&&f(i))return;let p=M.fetchers.get(t);_e(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}(l,p),{flushSync:c});let d=new AbortController,g=Le(e.history,n,d.signal,l);if(a){let e=await dt(o,n,g.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:i}=et(n,e);return void Se(t,r,i,{flushSync:c})}if(!e.matches)return void Se(t,r,Ge(404,{pathname:n}),{flushSync:c});if(f(i=at(o=e.matches,n)))return}V.set(t,d);let y=$,v=await ye("action",g,[i],o),_=v[0];if(g.signal.aborted)return void(V.get(t)===d&&V.delete(t));if(w.v7_fetcherPersist&&Z.has(t)){if(Xe(_)||Qe(_))return void _e(t,lt(void 0))}else{if(Xe(_))return V.delete(t),K>y?void _e(t,lt(void 0)):(Q.add(t),_e(t,ut(l)),ue(g,_,{fetcherSubmission:l}));if(Qe(_))return void Se(t,r,_.error)}if(Ye(_))throw Ge(400,{type:"defer-action"});let S=M.navigation.location||M.location,E=Le(e.history,S,d.signal),O=s||h,x="idle"!==M.navigation.state?b(O,M.navigation.location,m):M.matches;u(x,"Didn't find any matches after fetcher action");let T=++$;Y.set(t,T);let k=ut(l,_.data);M.fetchers.set(t,k);let[C,I]=xe(e.history,M,x,l,S,!1,w.v7_skipActionErrorRevalidation,z,W,G,Z,X,Q,O,m,[i.route.id,_]);I.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,r=M.fetchers.get(t),n=ut(void 0,r?r.data:void 0);M.fetchers.set(t,n),V.has(t)&&ke(t),e.controller&&V.set(t,e.controller)})),oe({fetchers:new Map(M.fetchers)});let R=()=>I.forEach((e=>ke(e.key)));d.signal.addEventListener("abort",R);let{loaderResults:A,fetcherResults:P}=await ve(M.matches,x,C,I,E);if(d.signal.aborted)return;d.signal.removeEventListener("abort",R),Y.delete(t),V.delete(t),I.forEach((e=>V.delete(e.key)));let D=Ve([...A,...P]);if(D){if(D.idx>=C.length){let e=I[D.idx-C.length].key;Q.add(e)}return ue(E,D.result)}let{loaderData:L,errors:B}=Ue(M,M.matches,C,A,void 0,I,P,ee);if(M.fetchers.has(t)){let e=lt(_.data);M.fetchers.set(t,e)}Be(T),"loading"===M.navigation.state&&T>K?(u(j,"Expected pending action"),N&&N.abort(),ae(M.navigation.location,{matches:x,loaderData:L,errors:B,fetchers:new Map(M.fetchers)})):(oe({errors:B,loaderData:He(M.loaderData,L,x,B),fetchers:new Map(M.fetchers)}),z=!1)}(t,r,d,v,f,p.active,a,g):(X.set(t,{routeId:r,path:d}),async function(t,r,n,i,o,a,s,c){let l=M.fetchers.get(t);_e(t,ut(c,l?l.data:void 0),{flushSync:s});let f=new AbortController,p=Le(e.history,n,f.signal);if(a){let e=await dt(o,n,p.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:i}=et(n,e);return void Se(t,r,i,{flushSync:s})}if(!e.matches)return void Se(t,r,Ge(404,{pathname:n}),{flushSync:s});i=at(o=e.matches,n)}V.set(t,f);let d=$,h=await ye("loader",p,[i],o),m=h[0];Ye(m)&&(m=await it(m,p.signal,!0)||m);V.get(t)===f&&V.delete(t);if(p.signal.aborted)return;if(Z.has(t))return void _e(t,lt(void 0));if(Xe(m))return K>d?void _e(t,lt(void 0)):(Q.add(t),void await ue(p,m));if(Qe(m))return void Se(t,r,m.error);u(!Ye(m),"Unhandled fetcher deferred data"),_e(t,lt(m.data))}(t,r,d,v,f,p.active,a,g))},revalidate:function(){be(),oe({revalidation:"loading"}),"submitting"!==M.navigation.state&&("idle"!==M.navigation.state?se(j||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation}):se(M.historyAction,M.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Oe,deleteFetcher:function(e){if(w.v7_fetcherPersist){let t=(J.get(e)||0)-1;t<=0?(J.delete(e),Z.add(e)):J.set(e,t)}else Te(e);oe({fetchers:new Map(M.fetchers)})},dispose:function(){O&&O(),H&&H(),x.clear(),N&&N.abort(),M.fetchers.forEach(((e,t)=>Te(t))),M.blockers.forEach(((e,t)=>Fe(t)))},getBlocker:function(e,t){let r=M.blockers.get(e)||de;return te.get(e)!==t&&te.set(e,t),r},deleteBlocker:Fe,patchRoutes:function(e,t){let r=null==s;Ie(e,t,s||h,d,a),r&&(h=[...h],oe({}))},_internalFetchControllers:V,_internalActiveDeferreds:ee,_internalSetRoutes:function(e){d={},s=v(e,a,void 0,d)}},f}const ve=Symbol("deferred");function be(e,t){u(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=me;let a=n({v7_relativeSplatPath:!1,v7_throwAbortReason:!1},t?t.future:null),s=v(e,r,void 0,i);async function c(e,t,r,i,o,s,c){u(e.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(rt(e.method.toLowerCase())){let u=await async function(e,t,r,i,o,s,c){let u;if(r.route.action||r.route.lazy){u=(await f("action",e,[r],t,c,i,o))[0],e.signal.aborted&&Se(e,c,a)}else{let t=Ge(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:r.route.id});if(c)throw t;u={type:g.error,error:t}}if(Xe(u))throw new Response(null,{status:u.response.status,headers:{Location:u.response.headers.get("Location")}});if(Ye(u)){let e=Ge(400,{type:"defer-action"});if(c)throw e;u={type:g.error,error:e}}if(c){if(Qe(u))throw u.error;return{matches:[r],loaderData:{},actionData:{[r.route.id]:u.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(Qe(u)){let e=s?r:ze(t,r.route.id);return n({},await l(p,t,i,o,s,null,[e.route.id,u]),{statusCode:ie(u.error)?u.error.status:null!=u.statusCode?u.statusCode:500,actionData:null,actionHeaders:n({},u.headers?{[r.route.id]:u.headers}:{})})}let d=await l(p,t,i,o,s,null);return n({},d,{actionData:{[r.route.id]:u.data}},u.statusCode?{statusCode:u.statusCode}:{},{actionHeaders:u.headers?{[r.route.id]:u.headers}:{}})}(e,r,c||at(r,t),i,o,s,null!=c);return u}let u=await l(e,r,i,o,s,c);return et(u)?u:n({},u,{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)&&et(e.result)){if(e.type===g.error)throw e.result;return e.result}if(function(e){if(!et(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,c){let u=null!=s;if(u&&(null==s||!s.route.loader)&&(null==s||!s.route.lazy))throw Ge(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:null==s?void 0:s.route.id});let l=(s?[s]:c&&Qe(c[1])?Oe(t,c[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:c&&Qe(c[1])?{[c[0]]:c[1].error}:null,statusCode:200,loaderHeaders:{},activeDeferreds:null};let p=await f("loader",e,l,t,u,r,i);e.signal.aborted&&Se(e,u,a);let d=new Map,h=Fe(t,l,p,c,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,c,u,l){let f=await Pe(l||Ae,e,t,n,s,i,r,u);return await Promise.all(f.map(((e,r)=>{if(Ke(e)){throw Ne(e.result,t,n[r].route.id,s,o,a.v7_relativeSplatPath)}if(et(e.result)&&c)throw e;return De(e)})))}return{dataRoutes:s,query:async function(e,t){let{requestContext:r,skipLoaderErrorBubbling:i,unstable_dataStrategy:a}=void 0===t?{}:t,u=new URL(e.url),l=e.method,f=p("",d(u),null,"default"),h=b(s,f,o);if(!tt(l)&&"HEAD"!==l){let e=Ge(405,{method:l}),{matches:t,route:r}=We(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=Ge(404,{pathname:f.pathname}),{matches:t,route:r}=We(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 c(e,f,h,r,a||null,!0===i,null);return et(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),u=e.method,l=p("",d(a),null,"default"),f=b(s,l,o);if(!tt(u)&&"HEAD"!==u&&"OPTIONS"!==u)throw Ge(405,{method:u});if(!f)throw Ge(404,{pathname:l.pathname});let h=r?f.find((e=>e.route.id===r)):at(f,l);if(r&&!h)throw Ge(403,{pathname:l.pathname,routeId:r});if(!h)throw Ge(404,{pathname:l.pathname});let m=await c(e,l,f,n,i||null,!1,h);if(et(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[ve]=m.activeDeferreds[h.route.id]),e}}}}function _e(e,t,r){return n({},t,{statusCode:ie(r)?r.status:500,errors:{[t._deepestRenderedBoundaryId||e[0].id]:r}})}function Se(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 Ee(e,t,r,n,i,o,a,s){let c,u;if(a){c=[];for(let e of t)if(c.push(e),e.route.id===a){u=e;break}}else c=t,u=t[t.length-1];let l=H(i||".",U(c,o),L(e.pathname,r)||e.pathname,"path"===s);return null==i&&(l.search=e.search,l.hash=e.hash),null!=i&&""!==i&&"."!==i||!u||!u.route.index||ot(l.search)||(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(l.pathname="/"===l.pathname?r:z([r,l.pathname])),d(l)}function we(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&&!tt(n.formMethod))return{path:r,error:Ge(405,{method:n.formMethod})};let i,o,a=()=>({path:r,error:Ge(400,{type:"invalid-body"})}),s=n.formMethod||"get",c=e?s.toUpperCase():s.toLowerCase(),l=$e(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!rt(c))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:c,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!rt(c))return a();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:c,formAction:l,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return a()}}}if(u("function"==typeof FormData,"FormData is not available in this environment"),n.formData)i=je(n.formData),o=n.formData;else if(n.body instanceof FormData)i=je(n.body),o=n.body;else if(n.body instanceof URLSearchParams)i=n.body,o=Be(i);else if(null==n.body)i=new URLSearchParams,o=new FormData;else try{i=new URLSearchParams(n.body),o=Be(i)}catch(e){return a()}let f={formMethod:c,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(rt(f.formMethod))return{path:r,submission:f};let p=h(r);return t&&p.search&&ot(p.search)&&i.append("index",""),p.search="?"+i,{path:d(p),submission:f}}function Oe(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 xe(e,t,r,i,o,a,s,c,u,l,f,p,d,h,m,g){let y=g?Qe(g[1])?g[1].error:g[1].data:void 0,v=e.createURL(t.location),_=e.createURL(o),S=g&&Qe(g[1])?g[0]:void 0,E=S?Oe(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)||u.some((t=>t===e.route.id)))return!0;let s=t.matches[r],l=e;return ke(e,n({currentUrl:v,currentParams:s.params,nextUrl:_,nextParams:l.params},i,{actionResult:y,actionStatus:w,defaultShouldRevalidate:!O&&(c||v.pathname+v.search===_.pathname+_.search||v.search!==_.search||Te(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 u=t.fetchers.get(o),p=at(s,e.path),g=!1;d.has(o)?g=!1:l.has(o)?(l.delete(o),g=!0):g=u&&"idle"!==u.state&&void 0===u.data?c:ke(p,n({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:_,nextParams:r[r.length-1].params},i,{actionResult:y,actionStatus:w,defaultShouldRevalidate:!O&&c})),g&&T.push({key:o,routeId:e.routeId,path:e.path,matches:s,match:p,controller:new AbortController})})),[x,T]}function Te(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ke(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}async function Ce(e,t,r,n,i,o,a,s){let c=[t,...r.map((e=>e.route.id))].join("-");try{let l=a.get(c);l||(l=e({path:t,matches:r,patch:(e,t)=>{s.aborted||Ie(e,t,n,i,o)}}),a.set(c,l)),l&&("object"==typeof(u=l)&&null!=u&&"then"in u)&&await l}finally{a.delete(c)}var u}function Ie(e,t,r,n,i){if(e){var o;let r=n[e];u(r,"No route found to patch children into: routeId = "+e);let a=v(t,i,[e,"patch",String((null==(o=r.children)?void 0:o.length)||"0")],n);r.children?r.children.push(...a):r.children=a}else{let e=v(t,i,["patch",String(r.length||"0")],n);r.push(...e)}}async function Re(e,t,r){if(!e.lazy)return;let i=await e.lazy();if(!e.lazy)return;let o=r[e.id];u(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 Ae(e){return Promise.all(e.matches.map((e=>e.resolve())))}async function Pe(e,t,r,i,o,a,s,c){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,c,l=n=>{let i,s=new Promise(((e,t)=>i=t));c=()=>i(),t.signal.addEventListener("abort",c);let u,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 u=o?o((e=>l(e))):(async()=>{try{return{type:"data",result:await l()}}catch(e){return{type:"error",result:e}}})(),Promise.race([u,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})),Re(r.route,i,n)]);if(void 0!==e)throw e;s=t}else{if(await Re(r.route,i,n),o=r.route[e],!o){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw Ge(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 Ge(404,{pathname:e.pathname+e.search})}s=await l(o)}u(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{c&&t.signal.removeEventListener("abort",c)}return s}(t,r,e,a,s,n,c):Promise.resolve({type:g.data,result:void 0}))})})),request:r,params:o[0].params,context:c});return o.forEach((e=>u(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 De(e){let{result:t,type:r}=e;if(et(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 ne(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:g.data,data:e,statusCode:t.status,headers:t.headers}}if(r===g.error){if(Je(t)){var n,i;if(t.data instanceof Error)return{type:g.error,error:t.data,statusCode:null==(i=t.init)?void 0:i.status};t=new ne((null==(n=t.init)?void 0:n.status)||500,void 0,t.data)}return{type:g.error,error:t,statusCode:ie(t)?t.status:void 0}}var o,a,s,c;return Ze(t)?{type:g.deferred,deferredData:t,statusCode:null==(o=t.init)?void 0:o.status,headers:(null==(a=t.init)?void 0:a.headers)&&new Headers(t.init.headers)}:Je(t)?{type:g.data,data:t.data,statusCode:null==(s=t.init)?void 0:s.status,headers:null!=(c=t.init)&&c.headers?new Headers(t.init.headers):void 0}:{type:g.data,data:t}}function Ne(e,t,r,n,i,o){let a=e.headers.get("Location");if(u(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!he.test(a)){let s=n.slice(0,n.findIndex((e=>e.route.id===r))+1);a=Ee(new URL(t.url),s,i,!0,a,o),e.headers.set("Location",a)}return e}function Me(e,t,r){if(he.test(e)){let n=e,i=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=null!=L(i.pathname,r);if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function Le(e,t,r,n){let i=e.createURL($e(t)).toString(),o={signal:r};if(n&&rt(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=je(n.formData):o.body=n.formData}return new Request(i,o)}function je(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function Be(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Fe(e,t,r,n,i,o){let a,s={},c=null,l=!1,f={},p=n&&Qe(n[1])?n[1].error:void 0;return r.forEach(((r,n)=>{let d=t[n].route.id;if(u(!Xe(r),"Cannot handle redirect results in processLoaderData"),Qe(r)){let t=r.error;if(void 0!==p&&(t=p,p=void 0),c=c||{},o)c[d]=t;else{let r=ze(e,d);null==c[r.route.id]&&(c[r.route.id]=t)}s[d]=void 0,l||(l=!0,a=ie(r.error)?r.error.status:500),r.headers&&(f[d]=r.headers)}else Ye(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&&(c={[n[0]]:p},s[n[0]]=void 0),{loaderData:s,errors:c,statusCode:a||200,loaderHeaders:f}}function Ue(e,t,r,i,o,a,s,c){let{loaderData:l,errors:f}=Fe(t,r,i,o,c,!1);for(let t=0;t<a.length;t++){let{key:r,match:i,controller:o}=a[t];u(void 0!==s&&void 0!==s[t],"Did not find corresponding fetcher result");let c=s[t];if(!o||!o.signal.aborted)if(Qe(c)){let t=ze(e.matches,null==i?void 0:i.route.id);f&&f[t.route.id]||(f=n({},f,{[t.route.id]:c.error})),e.fetchers.delete(r)}else if(Xe(c))u(!1,"Unhandled fetcher revalidation redirect");else if(Ye(c))u(!1,"Unhandled fetcher deferred data");else{let t=lt(c.data);e.fetchers.set(r,t)}}return{loaderData:l,errors:f}}function He(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 qe(e){return e?Qe(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ze(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 We(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 Ge(e,t){let{pathname:r,routeId:n,method:i,type:o,message:a}=void 0===t?{}:t,s="Unknown Server Error",c="Unknown @remix-run/router error";return 400===e?(s="Bad Request","route-discovery"===o?c='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` function threw the following error:\n'+a:i&&r&&n?c="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?c="defer() is not supported in actions":"invalid-body"===o&&(c="Unable to encode submission body")):403===e?(s="Forbidden",c='Route "'+n+'" does not match URL "'+r+'"'):404===e?(s="Not Found",c='No route matches URL "'+r+'"'):405===e&&(s="Method Not Allowed",i&&r&&n?c="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&&(c='Invalid request method "'+i.toUpperCase()+'"')),new ne(e||500,s,new Error(c),!0)}function Ve(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(Xe(r))return{result:r,idx:t}}}function $e(e){return d(n({},"string"==typeof e?h(e):e,{hash:""}))}function Ke(e){return et(e.result)&&ue.has(e.result.status)}function Ye(e){return e.type===g.deferred}function Qe(e){return e.type===g.error}function Xe(e){return(e&&e.type)===g.redirect}function Je(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Ze(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 et(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function tt(e){return ce.has(e.toLowerCase())}function rt(e){return ae.has(e.toLowerCase())}async function nt(e,t,r,n,i,o){for(let a=0;a<r.length;a++){let s=r[a],c=t[a];if(!c)continue;let l=e.find((e=>e.route.id===c.route.id)),f=null!=l&&!Te(l,c)&&void 0!==(o&&o[c.route.id]);if(Ye(s)&&(i||f)){let e=n[a];u(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await it(s,e,i).then((e=>{e&&(r[a]=e||r[a])}))}}}async function it(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 ot(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function at(e,t){let r="string"==typeof t?h(t).search:t.search;if(e[e.length-1].route.index&&ot(r||""))return e[e.length-1];let n=F(e);return n[n.length-1]}function st(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 ct(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 ut(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 lt(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,{createMakeWatchQueryOptions:()=>w,getDefaultFetchPolicy:()=>k,getObsQueryOptions:()=>O,lastWatchOptions:()=>b,toApolloError:()=>C,toQueryResult:()=>I,useQuery:()=>_,useQueryInternals:()=>E});var n=r(103),i=(r(327),r(325)),o=r(326),a=r(434),s=r(457),c=r(582),u=r(426),l=r(439),f=r(580),p=r(581),d=r(442),h=r(436),m=r(480),g=r(583),y=Object.prototype.hasOwnProperty;function v(){}var b=Symbol();function _(e,t){return void 0===t&&(t=Object.create(null)),(0,g.wrapHook)("useQuery",S,(0,p.useApolloClient)(t&&t.client))(e,t)}function S(e,t){var r=E(e,t),o=r.result,a=r.obsQueryFields;return i.useMemo((function(){return(0,n.__assign)((0,n.__assign)({},o),a)}),[o,a])}function E(e,t){var r=(0,p.useApolloClient)(t.client),s=i.useContext((0,c.getApolloContext)()).renderPromises,u=!!s,d=r.disableNetworkFetches,h=!1!==t.ssr&&!t.skip,m=t.partialRefetch,g=w(r,e,t,u),_=function(e,t,r,o,a){function s(n){var i;return(0,f.verifyDocumentType)(t,f.DocumentType.Query),{client:e,query:t,observable:o&&o.getSSRObservable(a())||e.watchQuery(O(void 0,e,r,a())),resultData:{previousData:null===(i=null==n?void 0:n.resultData.current)||void 0===i?void 0:i.data}}}var c=i.useState(s),u=c[0],l=c[1];function p(e){var t,r;Object.assign(u.observable,((t={})[b]=e,t));var i=u.resultData;l((0,n.__assign)((0,n.__assign)({},u),{query:e.query,resultData:Object.assign(i,{previousData:(null===(r=i.current)||void 0===r?void 0:r.data)||i.previousData,current:void 0})}))}if(e!==u.client||t!==u.query){var d=s(u);return l(d),[d,p]}return[u,p]}(r,e,t,s,g),S=_[0],E=S.observable,k=S.resultData,C=_[1],P=g(E);!function(e,t,r,n,i){var o;t[b]&&!(0,a.equal)(t[b],i)&&(t.reobserve(O(t,r,n,i)),e.previousData=(null===(o=e.current)||void 0===o?void 0:o.data)||e.previousData,e.current=void 0);t[b]=i}(k,E,r,t,P);var D=i.useMemo((function(){return function(e){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)}),[E]);!function(e,t,r){t&&r&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}(E,s,h);var N=function(e,t,r,n,s,c,u,f,p){var d=i.useRef(p);i.useEffect((function(){d.current=p}));var h=!f&&!c||!1!==n.ssr||n.skip?n.skip||"standby"===s.fetchPolicy?A:void 0:R,m=e.previousData,g=i.useMemo((function(){return h&&I(h,m,t,r)}),[r,t,h,m]);return(0,o.useSyncExternalStore)(i.useCallback((function(n){if(f)return function(){};var i=function(){var i=e.current,o=t.getCurrentResult();i&&i.loading===o.loading&&i.networkStatus===o.networkStatus&&(0,a.equal)(i.data,o.data)||x(o,e,t,r,u,n,d.current)},o=function(c){if(s.current.unsubscribe(),s.current=t.resubscribeAfterError(i,o),!y.call(c,"graphQLErrors"))throw c;var f=e.current;(!f||f&&f.loading||!(0,a.equal)(c,f.error))&&x({data:f&&f.data,error:c,loading:!1,networkStatus:l.NetworkStatus.error},e,t,r,u,n,d.current)},s={current:t.subscribe(i,o)};return function(){setTimeout((function(){return s.current.unsubscribe()}))}}),[c,f,t,e,u,r]),(function(){return g||T(e,t,d.current,u,r)}),(function(){return g||T(e,t,d.current,u,r)}))}(k,E,r,t,P,d,m,u,{onCompleted:t.onCompleted||v,onError:t.onError||v});return{result:N,obsQueryFields:D,observable:E,resultData:k,client:r,onQueryExecuted:C}}function w(e,t,r,i){void 0===r&&(r={});var o=r.skip,a=(r.ssr,r.onCompleted,r.onError,r.defaultOptions),s=(0,n.__rest)(r,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(r){var n=Object.assign(s,{query:t});return!i||"network-only"!==n.fetchPolicy&&"cache-and-network"!==n.fetchPolicy||(n.fetchPolicy="cache-first"),n.variables||(n.variables={}),o?(n.initialFetchPolicy=n.initialFetchPolicy||n.fetchPolicy||k(a,e.defaultOptions),n.fetchPolicy="standby"):n.fetchPolicy||(n.fetchPolicy=(null==r?void 0:r.options.initialFetchPolicy)||k(a,e.defaultOptions)),n}}function O(e,t,r,n){var i=[],o=t.defaultOptions.watchQuery;return o&&i.push(o),r.defaultOptions&&i.push(r.defaultOptions),i.push((0,d.compact)(e&&e.options,n)),i.reduce(s.mergeOptions)}function x(e,t,r,i,o,a,s){var c=t.current;c&&c.data&&(t.previousData=c.data),!e.error&&(0,h.isNonEmptyArray)(e.errors)&&(e.error=new u.ApolloError({graphQLErrors:e.errors})),t.current=I(function(e,t,r){if(e.partial&&r&&!e.loading&&(!e.data||0===Object.keys(e.data).length)&&"cache-only"!==t.options.fetchPolicy)return t.refetch(),(0,n.__assign)((0,n.__assign)({},e),{loading:!0,networkStatus:l.NetworkStatus.refetch});return e}(e,r,o),t.previousData,r,i),a(),function(e,t,r){if(!e.loading){var n=C(e);Promise.resolve().then((function(){n?r.onError(n):e.data&&t!==e.networkStatus&&e.networkStatus===l.NetworkStatus.ready&&r.onCompleted(e.data)})).catch((function(e){}))}}(e,null==c?void 0:c.networkStatus,s)}function T(e,t,r,n,i){return e.current||x(t.getCurrentResult(),e,t,i,n,(function(){}),r),e.current}function k(e,t){var r;return(null==e?void 0:e.fetchPolicy)||(null===(r=null==t?void 0:t.watchQuery)||void 0===r?void 0:r.fetchPolicy)||"cache-first"}function C(e){return(0,h.isNonEmptyArray)(e.errors)?new u.ApolloError({graphQLErrors:e.errors}):e.error}function I(e,t,r,i){var o=e.data,a=(e.partial,(0,n.__rest)(e,["data","partial"]));return(0,n.__assign)((0,n.__assign)({data:o},a),{client:i,observable:r,variables:r.variables,called:e!==R&&e!==A,previousData:t})}var R=(0,m.maybeDeepFreeze)({loading:!0,data:void 0,error:void 0,networkStatus:l.NetworkStatus.loading}),A=(0,m.maybeDeepFreeze)({loading:!1,data:void 0,error:void 0,networkStatus:l.NetworkStatus.ready})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DocumentType:()=>n,operationName:()=>c,parser:()=>u,verifyDocumentType:()=>l});var n,i,o=r(327),a=r(404),s=r(406);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 u(e){i||(i=new a.AutoCleanedWeakCache(s.cacheSizes.parser||1e3));var t,r,c=i.get(e);if(c)return c;(0,o.invariant)(!!e&&!!e.kind,62,e);for(var u=[],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 u.push(m)}(0,o.invariant)(!u.length||l.length||f.length||p.length,63),(0,o.invariant)(l.length+f.length+p.length<=1,64,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,65,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 l(e,t){var r=u(e),n=c(t),i=c(r.type);(0,o.invariant)(r.type===t,66,n,n,i)}!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(n||(n={})),u.resetCache=function(){i=void 0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useApolloClient:()=>a});var n=r(327),i=r(325),o=r(582);function a(e){var t=i.useContext((0,o.getApolloContext)()),r=e||t.client;return(0,n.invariant)(!!r,50),r}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{getApolloContext:()=>c,resetApolloContext:()=>u});var i=r(325),o=r(335),a=r(327),s=o.canUseSymbol?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function c(){(0,a.invariant)("createContext"in(n||(n=r.t(i,2))),46);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 u=c},(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(586),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,c,u,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(u*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!==c&&i.cancelAnimationFrame(c),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(u),2))}())},progress:function(e){return void 0===e||("string"==typeof e&&(e=(e.indexOf("+")>=0||e.indexOf("-")>=0?u:0)+parseFloat(e)),u=e>1?1:e,p()),u},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(c=null);c=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(593)),i=o(r(594));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(594));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(595)),c=l(r(596)),u=l(r(597));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,u.default)(n._node,e||(0,c.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"],c="undefined"!=typeof MutationObserver,u=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&&c()}function s(){a(o)}function c(){var e=Date.now();if(r){if(e-i<2)return;n=!0}else r=!0,n=!1,setTimeout(s,t);i=e}return c}(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),c?(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),c=d(n.height);if("border-box"===n.boxSizing&&(Math.round(s+o)!==t&&(s-=h(n,"left","right")+o),Math.round(c+a)!==r&&(c-=h(n,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var u=Math.round(s+o)-t,l=Math.round(c+a)-r;1!==Math.abs(u)&&(s-=u),1!==Math.abs(l)&&(c-=l)}return v(i.left,i.top,s,c)}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,c,u=(n=(r=t).x,i=r.y,o=r.width,a=r.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),l(c,{x:n,y:i,width:o,height:a,top:i,right:n+o,bottom:a+i,left:n}),c);l(this,{target:e,contentRect:u})},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=u.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)=>{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,{useMutation:()=>f});var n=r(103),i=r(325),o=r(457),a=r(434),s=r(580),c=r(426),u=r(581),l=r(617);function f(e,t){var r=(0,u.useApolloClient)(null==t?void 0:t.client);(0,s.verifyDocumentType)(e,s.DocumentType.Mutation);var f=i.useState({called:!1,loading:!1,client:r}),p=f[0],d=f[1],h=i.useRef({result:p,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});(0,l.useIsomorphicLayoutEffect)((function(){Object.assign(h.current,{client:r,options:t,mutation:e})}));var m=i.useCallback((function(e){void 0===e&&(e={});var t=h.current,r=t.options,i=t.mutation,s=(0,n.__assign)((0,n.__assign)({},r),{mutation:i}),u=e.client||h.current.client;h.current.result.loading||s.ignoreResults||!h.current.isMounted||d(h.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:u});var l=++h.current.mutationId,f=(0,o.mergeOptions)(s,e);return u.mutate(f).then((function(t){var r,n,i=t.data,o=t.errors,s=o&&o.length>0?new c.ApolloError({graphQLErrors:o}):void 0,p=e.onError||(null===(r=h.current.options)||void 0===r?void 0:r.onError);if(s&&p&&p(s,f),l===h.current.mutationId&&!f.ignoreResults){var m={called:!0,loading:!1,data:i,error:s,client:u};h.current.isMounted&&!(0,a.equal)(h.current.result,m)&&d(h.current.result=m)}var g=e.onCompleted||(null===(n=h.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===h.current.mutationId&&h.current.isMounted){var n={loading:!1,error:t,data:void 0,called:!0,client:u};(0,a.equal)(h.current.result,n)||d(h.current.result=n)}var i=e.onError||(null===(r=h.current.options)||void 0===r?void 0:r.onError);if(i)return i(t,f),{data:void 0,errors:t};throw t}))}),[]),g=i.useCallback((function(){if(h.current.isMounted){var e={called:!1,loading:!1,client:h.current.client};Object.assign(h.current,{mutationId:0,result:e}),d(e)}}),[]);return i.useEffect((function(){var e=h.current;return e.isMounted=!0,function(){e.isMounted=!1}}),[]),[m,(0,n.__assign)({reset:g},p)]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useIsomorphicLayoutEffect:()=>i});var n=r(325),i=r(335).canUseDOM?n.useLayoutEffect:n.useEffect},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{ENTERED:()=>p,ENTERING:()=>f,EXITED:()=>l,EXITING:()=>d,UNMOUNTED:()=>u,default:()=>g});var n=r(678),i=r(679),o=r(270),a=r(681),s=r(682),c=r(683),u="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?u:l,n.state={status:i},n.nextCallback=null,n}(0,i.default)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{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,c.forceReflow)(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:u})},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],c=i[1],u=this.getTimeouts(),l=n?u.appear:u.enter;!e&&!r||a.default.disabled?this.safeSetState({status:p},(function(){t.props.onEntered(s)})):(this.props.onEnter(s,c),this.safeSetState({status:f},(function(){t.props.onEntering(s,c),t.onTransitionEnd(l,(function(){t.safeSetState({status:p},(function(){t.props.onEntered(s,c)}))}))})))},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===u)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=u,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.includes(n))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(680);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(582),s=function(e){var t=e.client,r=e.children,s=(0,a.getApolloContext)(),c=o.useContext(s),u=o.useMemo((function(){return(0,n.__assign)((0,n.__assign)({},c),{client:t||c.client})}),[c,t]);return(0,i.invariant)(u.client,47),o.createElement(s.Provider,{value:u},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(862),i=r(941),o=r(867),a=r(920),s=r(936),c=r(914),u=r(926),l=r(918),f=r(868),p=r(889),d=r(935),h=r(937),m=r(944),g=r(947),y=r(950),v=r(951),b=r(952),_=r(953),S=r(954);const E=n.BrowserTracing,w=i.addExtensionMethods,O=o.getActiveTransaction,x=o.extractTraceparentData,T=a.spanStatusfromHttpCode,k=s.Transaction,C=c.Span,I=n.BROWSER_TRACING_INTEGRATION_ID,R=u.defaultRequestInstrumentationOptions,A=l.hasTracingEnabled,P=f.stripUrlQueryAndFragment,D=p.TRACEPARENT_REGEXP,N=d.IdleTransaction,M=u.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(935),i=r(937),o=r(867),a=r(919),s=r(886),c=r(876),u=r(889),l=r(882),f=r(863),p=r(864),d=r(897),h=r(912),m=r(926),g=r(932),y=r(865);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:u,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&&c.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:u,traceXHR:l,tracePropagationTargets:v,shouldCreateSpanForRequest:d,enableHTTPTimings:h})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(f.DEBUG_BUILD&&c.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,u.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&&c.logger.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),f.DEBUG_BUILD&&c.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",u=(0,o.getActiveTransaction)();if(u&&u.op&&["navigation","pageload"].includes(u.op))return void(f.DEBUG_BUILD&&c.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&&c.logger.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`));if(!this._latestRoute.name)return void(f.DEBUG_BUILD&&c.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)(),c=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),u=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===u||o>this._interactionIdToRouteNameMapping[u].duration){const e=this._latestRoute.name,r=this._latestRoute.context;e&&r&&(u&&Object.keys(this._interactionIdToRouteNameMapping).length>=10&&delete this._interactionIdToRouteNameMapping[u],this._interactionIdToRouteNameMapping[t]={routeName:e,duration:o,parentContext:r,user:c,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:()=>c});var n=r(867),i=r(888),o=r(876),a=r(863),s=r(865);function c(){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(866).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(889),i=r(868),o=r(869);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(875),i=r(880),o=r(879),a=r(876),s=r(866),c=r(870),u=r(871),l=r(872),f=r(878),p=r(896);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 c={timestamp:(0,o.dateTimestampInSeconds)(),...e},u=i?(0,a.consoleSandbox)((()=>i(c,t))):c;null!==u&&(n.emit&&n.emit("beforeAddBreadcrumb",u,t),r.addBreadcrumb(u,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 u.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(u.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=c.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}),u=t.getSession&&t.getSession();return u&&"ok"===u.status&&(0,f.updateSession)(u,{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);u.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(875),i=r(879),o=r(880),a=r(876),s=r(873),c=r(878),u=r(884);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,c.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:c,_propagationContext:u,_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:c,propagationContext:u,sdkProcessingMetadata:l,transactionName:f,span:p}}applyToEvent(e,t={},r=[]){(0,u.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:()=>u,getGlobalEventProcessors:()=>c,notifyEventProcessors:()=>l});var n=r(866),i=r(874),o=r(876),a=r(875),s=r(871);function c(){return(0,n.getGlobalSingleton)("globalEventProcessors",(()=>[]))}function u(e){c().push(e)}function l(e,t,r,n=0){return new i.SyncPromise(((i,c)=>{const u=e[n];if(null===t||"function"!=typeof u)i(t);else{const f=u({...t},r);s.DEBUG_BUILD&&u.id&&null===f&&o.logger.log(`Event processor "${u.id}" dropped event`),(0,a.isThenable)(f)?f.then((t=>l(e,t,r,n+1).then(i))).then(null,c):l(e,f,r,n+1).then(i).then(null,c)}}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SyncPromise:()=>s,rejectedSyncPromise:()=>a,resolvedSyncPromise:()=>o});var n,i=r(875);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:()=>c,isElement:()=>h,isError:()=>i,isErrorEvent:()=>a,isEvent:()=>d,isInstanceOf:()=>b,isNaN:()=>v,isParameterizedString:()=>l,isPlainObject:()=>p,isPrimitive:()=>f,isRegExp:()=>m,isString:()=>u,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 c(e){return o(e,"DOMException")}function u(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:()=>c,originalConsoleMethods:()=>a});var n=r(877),i=r(866);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 c=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:()=>c,makeSession:()=>a,updateSession:()=>s});var n=r(879),i=r(880),o=r(881);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 c(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:()=>c,browserPerformanceTimeOrigin:()=>u,dateTimestampInSeconds:()=>o,timestampInSeconds:()=>a,timestampWithMs:()=>s});var n=r(866);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 c;const u=(()=>{const{performance:e}=n.GLOBAL_OBJ;if(!e||!e.now)return void(c="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,u="number"==typeof s?Math.abs(s+r-i):t;return a||u<t?o<=u?(c="timeOrigin",e.timeOrigin):(c="navigationStart",s):(c="dateNow",i)})()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addContextToFrame:()=>d,addExceptionMechanism:()=>l,addExceptionTypeValue:()=>u,arrayify:()=>m,checkOrSetAlreadyCaught:()=>h,getEventDescription:()=>c,parseSemver:()=>p,uuid4:()=>a});var n=r(881),i=r(883),o=r(866);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 c(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 u(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:()=>u,convertToPlainObject:()=>d,dropUndefinedKeys:()=>y,extractExceptionKeysForMessage:()=>g,fill:()=>c,getOriginalFunction:()=>f,markFunctionWrapped:()=>l,objectify:()=>b,urlEncode:()=>p});var n=r(882),i=r(877),o=r(875),a=r(876),s=r(883);function c(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 u(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,u(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:()=>u,getLocationHref:()=>c,htmlTreeAsString:()=>a});var n=r(875);const i=(0,r(866).getGlobalObject)(),o=80;function a(e,t={}){if(!e)return"<unknown>";try{let r=e;const n=5,i=[];let a=0,c=0;const u=" > ",l=u.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&&c+i.length*l+f.length>=d));)i.push(f),c+=f.length,r=r.parentNode;return i.reverse().join(u)}catch(e){return"<unknown>"}}function s(e,t){const r=e,o=[];let a,s,c,u,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++)c=p[l],u=r.getAttribute(c),u&&o.push(`[${c}="${u}"]`);return o.join("")}function c(){try{return i.document.location.href}catch(e){return""}}function u(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:()=>c,truncate:()=>i});var n=r(875);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 c(e,t=[],r=!1){return t.some((t=>s(e,t,r)))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyScopeDataToEvent:()=>c,mergeAndOverwriteScopeData:()=>l,mergeScopeData:()=>u});var n=r(881),i=r(880),o=r(885),a=r(895),s=r(888);function c(e,t){const{fingerprint:r,span:c,breadcrumbs:u,sdkProcessingMetadata:l}=t;!function(e,t){const{extra:r,tags:i,user:o,contexts:a,level:s,transactionName:c}=t,u=(0,n.dropUndefinedKeys)(r);u&&Object.keys(u).length&&(e.extra={...u,...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);c&&(e.transaction=c)}(e,t),c&&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,c),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,u),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,l)}function u(e,t){const{extra:r,tags:n,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:u,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),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),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:()=>c,getDynamicSamplingContextFromSpan:()=>u});var n=r(881),i=r(870),o=r(886),a=r(895),s=r(888);function c(e,t,r){const o=t.getOptions(),{publicKey:a}=t.getDsn()||{},{segment:s}=r&&r.getUser()||{},c=(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",c),c}function u(e){const t=(0,o.getClient)();if(!t)return{};const r=c((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:u,source:l}=n.metadata;null!=u&&(r.sample_rate=`${u}`);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(876),i=r(880),o=r(879),a=r(875),s=r(866),c=r(870),u=r(871),l=r(869),f=r(878),p=r(887);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);u.DEBUG_BUILD&&n.logger.warn("Cannot capture check-in. Client does not support sending check-ins.")}else u.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 c;try{c=t()}catch(e){throw s("error"),e}return(0,a.isThenable)(c)?Promise.resolve(c).then((()=>{s("ok")}),(()=>{s("error")})):s("ok"),c}async function R(e){const t=D();return t?t.flush(e):(u.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):(u.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=c.DEFAULT_ENVIRONMENT}=t&&t.getOptions()||{},{userAgent:a}=s.GLOBAL_OBJ.navigator||{},u=(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(u),n.setSession(u),u}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(880),i=r(879),o=r(883),a=r(866),s=r(891),c=r(870),u=r(873),l=r(872),f=r(884),p=r(888);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:c.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 u=e.request;u&&u.url&&(u.url=(0,o.truncate)(u.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,u.getGlobalEventProcessors)(),...w.eventProcessors];return(0,u.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:()=>c,spanToTraceHeader:()=>u});var n=r(881),i=r(889),o=r(879);const a=0,s=1;function c(e){const{spanId:t,traceId:r}=e.spanContext(),{data:i,op:o,parent_span_id:a,status:s,tags:c,origin:u}=p(e);return(0,n.dropUndefinedKeys)({data:i,op:o,parent_span_id:a,span_id:t,status:s,tags:c,trace_id:r,origin:u})}function u(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:()=>u,propagationContextFromHeaders:()=>c,tracingContextFromHeaders:()=>s});var n=r(890),i=r(880);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:c,parentSampled:u}=r||{};return r?{traceparentData:r,dynamicSamplingContext:o||{},propagationContext:{traceId:s||(0,i.uuid4)(),parentSpanId:c||(0,i.uuid4)().substring(16),spanId:(0,i.uuid4)().substring(16),sampled:u,dsc:o||{}}}:{traceparentData:r,dynamicSamplingContext:void 0,propagationContext:{traceId:s||(0,i.uuid4)(),spanId:(0,i.uuid4)().substring(16)}}}function c(e,t){const r=a(e),o=(0,n.baggageHeaderToDynamicSamplingContext)(t),{traceId:s,parentSpanId:c,parentSampled:u}=r||{};return r?{traceId:s||(0,i.uuid4)(),parentSpanId:c||(0,i.uuid4)().substring(16),spanId:(0,i.uuid4)().substring(16),sampled:u,dsc:o||{}}:{traceId:s||(0,i.uuid4)(),spanId:(0,i.uuid4)().substring(16)}}function u(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:()=>u,SENTRY_BAGGAGE_KEY_PREFIX:()=>s,SENTRY_BAGGAGE_KEY_PREFIX_REGEX:()=>c,baggageHeaderToDynamicSamplingContext:()=>l,dynamicSamplingContextToSentryBaggageHeader:()=>f});var n=r(877),i=r(875),o=r(876);const a="baggage",s="sentry-",c=/^sentry-/,u=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(c)){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>u?(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:()=>c,normalizeUrlToBase:()=>l,walk:()=>u});var n=r(875),i=r(892),o=r(881),a=r(893);function s(e,t=100,r=1/0){try{return u("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function c(e,t=3,r=102400){const n=s(e,t);return i=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>r?c(e,t-1,r):n;var i}function u(e,t,s=1/0,c=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 u("",m.toJSON(),h-1,c,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>=c){g[e]="[MaxProperties ~]";break}const t=v[e];g[e]=u(e,t,h-1,c,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:()=>c,stripSentryFramesAndReverse:()=>u});var n=r(894);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 u(n)}}function c(e){return Array.isArray(e)?s(...e):e}function u(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 c=o[2]&&o[2].startsWith("file://")?o[2].slice(7):o[2];const u="native"===o[5];return c&&c.match(/\/[A-Z]:/)&&(c=c.slice(1)),c||!o[5]||u||(c=o[5]),{filename:c,module:e?e(c):void 0,function:i,lineno:parseInt(o[3],10)||void 0,colno:parseInt(o[4],10)||void 0,in_app:n(c,u)}}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(876),i=r(893),o=r(863),a=r(898),s=r(906),c=r(908),u=r(910),l=r(904),f=r(911);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,u.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,c.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(899),i=r(900),o=r(904),a=r(905);const s=(e,t={})=>{const r=(0,i.initMetric)("CLS",0);let s,c=0,u=[];const l=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=u[0],n=u[u.length-1];c&&0!==u.length&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(c+=e.value,u.push(e)):(c=e.value,u=[e]),c>r.value&&(r.value=c,r.entries=u,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(865),i=r(901),o=r(902),a=r(903);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(903);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(865);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(865);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:()=>c});var n=r(899),i=r(907),o=r(900),a=r(904),s=r(905);const c=e=>{const t=(0,i.getVisibilityWatcher)(),r=(0,o.initMetric)("FID");let c;const u=e=>{e.startTime<t.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),c(!0))},l=e=>{e.forEach(u)},f=(0,a.observe)("first-input",l);c=(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(865),i=r(905);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(899),i=r(900),o=r(904),a=r(905),s=r(909);const c=()=>(0,s.getInteractionCount)(),u=[],l={},f=e=>{const t=u[u.length-1],r=l[e.interactionId];if(r||u.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,u.push(t)}u.sort(((e,t)=>t.latency-e.latency)),u.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){!u.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&f(e)}}));const t=(()=>{const e=Math.min(u.length-1,Math.floor(c()/50));return u[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&&c()>0&&(r.value=0,r.entries=[]),l(!0)})))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getInteractionCount:()=>u,initInteractionCountPolyfill:()=>l});var n=r(904);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 c;const u=()=>c?i:performance.interactionCount||0,l=()=>{"interactionCount"in performance||c||(c=(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(865),i=r(899),o=r(902),a=r(907),s=r(900),c=r(904),u=r(905);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,c.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,u.onHidden)(t,!0),t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onTTFB:()=>u});var n=r(865),i=r(899),o=r(902),a=r(903),s=r(900);const c=e=>{n.WINDOW.document&&(n.WINDOW.document.prerendering?addEventListener("prerenderingchange",(()=>c(e)),!0):"complete"!==n.WINDOW.document.readyState?addEventListener("load",(()=>c(e)),!0):setTimeout(e,0))},u=(e,t)=>{t=t||{};const r=(0,s.initMetric)("TTFB"),n=(0,i.bindReporter)(e,r,t.reportAllChanges);c((()=>{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(867),i=r(886),o=r(914),a=r(921),s=r(888),c=r(924),u=r(918),l=r(925),f=r(879),p=r(882),d=r(876),h=r(868),m=r(863),g=r(897),y=r(865),v=r(907),b=r(913),_=r(903);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 c=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.${c}`,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,u.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,c.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 c=o+n,u=c+i;(0,b._startChild)(e,{description:r.replace(y.WINDOW.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,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(880),i=r(879),o=r(876),a=r(881),s=r(871),c=r(915),u=r(919),l=r(895),f=r(888),p=r(920);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({[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:e.origin||"manual",[u.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[u.SEMANTIC_ATTRIBUTE_SENTRY_OP]}set op(e){this.setAttribute(u.SEMANTIC_ATTRIBUTE_SENTRY_OP,e)}get origin(){return this._attributes[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]}set origin(e){this.setAttribute(u.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[u.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[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:(0,c.getMetricSummaryJsonForSpan)(this),profile_id:this._attributes[u.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:()=>c});var n=r(881),i=r(916);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 c(e,t,r,n,s,c){const u=(0,i.getActiveSpan)();if(u){const i=a(u)||new Map,l=`${e}:${t}@${n}`,f=i.get(c);if(f){const[,e]=f;i.set(c,[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(c,[l,{min:r,max:r,count:1,sum:r,tags:s}]);o||(o=new WeakMap),o.set(u,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(889),i=r(876),o=r(881),a=r(871),s=r(869),c=r(888),u=r(885),l=r(886),f=r(917),p=r(918);function d(e,t,r=()=>{},n=()=>{}){const i=(0,s.getCurrentHub)(),o=(0,l.getCurrentScope)(),a=o.getSpan(),c=S(e),u=_(i,{parentSpan:a,spanContext:c,forceTransaction:!1,scope:o});return o.setSpan(u),(0,f.handleCallbackErrors)((()=>t(u)),(e=>{u&&u.setStatus("internal_error"),r(e,u)}),(()=>{u&&u.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,c.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 u(){a&&a.end()}return(0,f.handleCallbackErrors)((()=>t(a,u)),(()=>{if(a&&a.isRecording()){const{status:e}=(0,c.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 c=(0,l.getCurrentScope)(),{traceparentData:u,dynamicSamplingContext:f,propagationContext:p}=(0,n.tracingContextFromHeaders)(e,t);c.setPropagationContext(p),a.DEBUG_BUILD&&u&&i.logger.log(`[Tracing] Continuing trace ${u.traceId}.`);const d={...u,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,u.getDynamicSamplingContextFromSpan)(t),{traceId:i,spanId:o}=t.spanContext(),a=(0,c.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,c.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(875);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(886);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(922),i=r(923);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:()=>u});var n=r(877),i=r(876);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:c}=e;return`${s}://${c}${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,u="",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 c({host:s,pass:a,path:f,projectId:p,port:u,protocol:r,publicKey:n})}function c(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){const t="string"==typeof e?s(e):c(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:()=>u,envelopeItemTypeToDataCategory:()=>m,forEachEnvelopeItem:()=>c,getSdkMetadataForEnvelopeHeader:()=>g,parseEnvelope:()=>p,serializeEnvelope:()=>f});var n=r(922),i=r(891),o=r(881);function a(e,t=[]){return[e,t]}function s(e,t){const[r,n]=e;return[r,[...n,t]]}function c(e,t){const r=e[1];for(const e of r){if(t(e,e[0].type))return!0}return!1}function u(e,t){return c(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(867);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:()=>u});var n=r(876),i=r(875),o=r(871),a=r(919),s=r(918),c=r(888);function u(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,c.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(888),i=r(918),o=r(920),a=r(886),s=r(869),c=r(916),u=r(919),l=r(885),f=r(928),p=r(868),d=r(931),h=r(879),m=r(883),g=r(889),y=r(890),v=r(927),b=r(897),_=r(865);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,c=e=>k(e,n||i),u={};t&&(0,f.addFetchInstrumentationHandler)((e=>{const t=(0,v.instrumentFetchRequest)(e,s,c,u);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,c,u);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,c.startInactiveSpan)({name:`${m.method} ${m.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":m.method,"http.url":S,url:m.url,"server.address":E,[u.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(918),i=r(886),o=r(916),a=r(919),s=r(869),c=r(888),u=r(885),l=r(920),f=r(868),p=r(889),d=r(890),h=r(875);function m(e,t,r,s,c="auto.http.browser"){if(!(0,n.hasTracingEnabled)()||!e.fetchData)return;const u=t(e.fetchData.url);if(e.endTimestamp&&u){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=u?(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]:c},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,c.spanToTraceHeader)(o):(0,p.generateSentryTraceHeader)(l,f,m),v=(0,d.dynamicSamplingContextToSentryBaggageHeader)(g||(o?(0,u.getDynamicSamplingContextFromSpan)(o):(0,u.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(881),i=r(929),o=r(866),a=r(930);function s(e){const t="fetch";(0,a.addHandler)(t,e),(0,a.maybeInstrument)(t,c)}function c(){(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 u(e,t){return!!e&&"object"==typeof e&&!!e[t]}function l(e){return"string"==typeof e?e:e?u(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:u(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:l(t),method:u(t,"method")?String(t.method).toUpperCase():"GET"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isNativeFetch:()=>l,supportsDOMError:()=>s,supportsDOMException:()=>c,supportsErrorEvent:()=>a,supportsFetch:()=>u,supportsNativeFetch:()=>f,supportsReferrerPolicy:()=>d,supportsReportingObserver:()=>p});var n=r(877),i=r(876);const o=(0,r(866).getGlobalObject)();function a(){try{return new ErrorEvent(""),!0}catch(e){return!1}}function s(){try{return new DOMError(""),!0}catch(e){return!1}}function c(){try{return new DOMException(""),!0}catch(e){return!1}}function u(){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(!u())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(!u())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:()=>c,maybeInstrument:()=>l,resetInstrumentationHandlers:()=>u,triggerHandlers:()=>f});var n=r(877),i=r(876),o=r(893);const a={},s={};function c(e,t){a[e]=a[e]||[],a[e].push(t)}function u(){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:()=>c,addXhrInstrumentationHandler:()=>u,instrumentXHR:()=>l});var n=r(875),i=r(881),o=r(866),a=r(930);const s=o.GLOBAL_OBJ,c="__sentry_xhr_v3__";function u(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[c]={method:o,url:s,request_headers:{}},"POST"===o&&s.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const u=()=>{const e=this[c];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 u(),e.apply(this,t)}})):this.addEventListener("readystatechange",u),(0,i.fill)(this,"setRequestHeader",(function(e){return function(...t){const[r,i]=t,o=this[c];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[c];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:()=>c});var n=r(876),i=r(879),o=r(933),a=r(863),s=r(865);function c(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 c,u=s.WINDOW.location.href;t&&(c=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&&u&&-1!==u.indexOf(t)?u=void 0:r!==t&&(u=void 0,c&&(a.DEBUG_BUILD&&n.logger.log(`[Tracing] Finishing current transaction with op: ${c.op}`),c.end()),c=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:()=>u});var n=r(881),i=r(866),o=r(934),a=r(930);const s=i.GLOBAL_OBJ;let c;function u(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=c,t=String(r);c=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=c;c=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(866).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:()=>u});var n=r(876),i=r(879),o=r(871),a=r(888),s=r(914),c=r(936);const u={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 c.Transaction{constructor(e,t,r=u.idleTimeout,i=u.finalTimeout,a=u.heartbeatInterval,s=!1,c=!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=!c,s&&(o.DEBUG_BUILD&&n.logger.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),c||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,c=(this._finalTimeout+this._idleTimeout)/1e3,u=i&&r&&i-r<c;if(o.DEBUG_BUILD){const t=JSON.stringify(e,void 0,2);s?u||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&&u})),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(881),i=r(876),o=r(871),a=r(869),s=r(915),c=r(919),u=r(888),l=r(885),f=r(914),p=r(916);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[c.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]&&{source:this._attributes[c.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]},...this._attributes[c.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]&&{sampleRate:this._attributes[c.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(c.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,u.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,u.spanToJSON)(e).timestamp)):[];if(this._trimEnd&&r.length>0){const e=r.map((e=>(0,u.spanToJSON)(e).timestamp)).filter(Boolean);this._endTime=e.reduce(((e,t)=>e>t?e:t))}const{scope:a,isolationScope:c}=(0,p.getCapturedScopesOnSpan)(this),{metadata:f}=this,{source:d}=f,h={contexts:{...this._contexts,trace:(0,u.spanToTraceContext)(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...f,capturedSpanScope:a,capturedSpanIsolationScope:c,...(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(876),i=r(871),o=r(869),a=r(888),s=r(938),c=r(935),u=r(925),l=r(936);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 c=new l.Transaction(e,this);return c=(0,u.sampleTransaction)(c,o,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),c.isRecording()&&c.initSpanRecorder(o._experiments&&o._experiments.maxSpans),r&&r.emit&&r.emit("startTransaction",c),c}function d(e,t,r,n,i,o,a,s=!1){const l=e.getClient(),f=l&&l.getOptions()||{};let p=new c.IdleTransaction(t,e,r,n,a,i,s);return p=(0,u.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:()=>u});var n=r(939),i=r(940),o=r(876),a=r(871),s=r(867);let c=!1;function u(){c||(c=!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(866),i=r(930);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(866),i=r(930);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(869),i=r(937),o=r(942);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(943);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(946),i=r(942),o=r(876),a=r(881),s=r(880),c=r(875),u=r(863),l=r(945);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))u.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(u.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(u.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 u.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"})]),u=e.call(this,...o);return(0,c.isThenable)(u)?u.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()]),u)}}))}(e,r,i,t)}))})),e)))}f.__initStatic()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{shouldDisableAutoInstrumentation:()=>i});var n=r(946);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(946),i=r(888),o=r(919),a=r(876),s=r(868),c=r(948),u=r(875),l=r(866),f=r(863),p=r(945);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,u.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((c=t,c.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 c;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,c.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,c=(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)([c,"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,c=0;return a.forEach(((e,t)=>{if(e){const[r,n]=e,o=s.substring(0,r-c),a=`:${i[t].name}`,u=s.substring(n-c);s=o+a+u,c+=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 c=(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[c+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(949),i=r(877),o=r(875),a=r(876),s=r(891),c=r(868);const u={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,c.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={},c=e.headers||{},u=e.method,f=c.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=c,r.includes("cookies")||delete a.headers.cookie;break;case"method":a.method=u;break;case"url":a.url=h;break;case"cookies":a.cookies=e.cookies||c.cookie&&(0,n.parseCookie)(c.cookie)||{};break;case"query_string":a.query_string=g(e,i);break;case"data":if("GET"===u||"HEAD"===u)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={...u,...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(946),i=r(942),o=r(876),a=r(881),s=r(875),c=r(863),u=r(945);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,u.shouldDisableAutoInstrumentation)(t))return void(c.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 c=e.call(this,...r);return(0,s.isThenable)(c)?c.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)]),c)}})):c.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(946),i=r(942),o=r(876),a=r(881),s=r(875),c=r(863),u=r(945);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,u.shouldDisableAutoInstrumentation)(t))return void(c.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";c.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],c=r(),u=c.getScope(),l=c.getClient(),f=u.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:()=>u});var n=r(946),i=r(942),o=r(876),a=r(881),s=r(863),c=r(945);class u{static __initStatic(){this.id="Mysql"}constructor(){this.name=u.id}loadDependency(){return this._module=this._module||(0,i.loadModule)("mysql/lib/Connection.js")}setupOnce(e,t){if((0,c.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 u(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){u(s),o(e,t,r)}));if("function"==typeof i)return e.call(this,r,(function(e,t,r){u(s),i(e,t,r)}));const c=e.call(this,r,i);return c.on("end",(()=>{u(s)})),c}}))}}u.__initStatic()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Postgres:()=>l});var n=r(946),i=r(942),o=r(876),a=r(881),s=r(875),c=r(863),u=r(945);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,u.shouldDisableAutoInstrumentation)(t))return void(c.DEBUG_BUILD&&o.logger.log("Postgres Integration is skipped because of instrumenter configuration."));const r=this.loadDependency();if(!r)return void(c.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(),c={"db.system":"postgresql"};try{this.database&&(c["db.name"]=this.database),this.host&&(c["server.address"]=this.host),this.port&&(c["server.port"]=this.port),this.user&&(c["db.user"]=this.user)}catch(e){}const u=(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:c})]);if("function"==typeof o)return e.call(this,r,i,(function(e,t){(0,n._optionalChain)([u,"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)([u,"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)([u,"optionalAccess",e=>e.end,"call",e=>e()]),e))):((0,n._optionalChain)([u,"optionalAccess",e=>e.end,"call",e=>e()]),l)}})):c.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(869),i=r(916),o=r(919),a=r(881),s=r(876),c=r(863),u=r(945);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,u.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 c.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(999),i=r(1e3),o=r(966),a=r(1001),s=r(280),c=r(964),u=r(277),l=r(304),f=r(979),p=r(286),d=r(980),h=r(956),m=r(957),g=r(959),y=r(973),v=r(984),b=r(985),_=r(988),S=r(989),E=r(991),w=r(992),O=r(993),x=r(998);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,u.startSession)({ignoreDuration:!0}),(0,u.captureSession)(),(0,d.addHistoryInstrumentationHandler)((({from:e,to:t})=>{void 0!==e&&e!==t&&((0,u.startSession)({ignoreDuration:!0}),(0,u.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,c.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 u=g.WINDOW.document.head||g.WINDOW.document.body;u?u.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,u.getClient)();t&&t.captureUserFeedback(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BrowserClient:()=>d});var n=r(963),i=r(971),o=r(970),a=r(286),s=r(972),c=r(961),u=r(957),l=r(958),f=r(959),p=r(960);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(u.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(u.DEBUG_BUILD&&a.logger.log("No outcomes to send"));if(!this._dsn)return void(u.DEBUG_BUILD&&a.logger.log("No dsn provided, will not send outcomes"));u.DEBUG_BUILD&&a.logger.log("Sending outcomes:",e);const t=(0,s.createClientReportEnvelope)(e,this._options.tunnel&&(0,c.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:()=>u,parseStackFrames:()=>p});var n=r(277),i=r(285),o=r(302),a=r(290),s=r(284),c=r(291);function u(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)(),c=s&&s.getOptions().normalizeDepth,u={exception:{values:[{type:(0,i.isEvent)(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:b(t,{isUnhandledRejection:a})}]},extra:{__serialized__:(0,o.normalizeToSize)(t,c)}};if(r){const t=p(e,r);t.length&&(u.exception.values[0].stacktrace={frames:t})}return u}function f(e,t){return{exception:{values:[u(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"),c=o.message?`${t}: ${o.message}`:t;s=v(e,c,r,n),(0,a.addExceptionTypeValue)(s,c)}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,c.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:()=>u,wrap:()=>f});var n=r(277),i=r(283),o=r(291),a=r(290);const s=i.GLOBAL_OBJ;let c=0;function u(){return c>0}function l(){c++,setTimeout((()=>{c--}))}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(961),i=r(962);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:()=>u});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:c}=e;return`${s}://${c}${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,u="",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 c({host:s,pass:a,path:f,projectId:p,port:u,protocol:r,publicKey:n})}function c(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){const t="string"==typeof e?s(e):c(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:()=>u,envelopeItemTypeToDataCategory:()=>m,forEachEnvelopeItem:()=>c,getSdkMetadataForEnvelopeHeader:()=>g,parseEnvelope:()=>p,serializeEnvelope:()=>f});var n=r(961),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 c(e,t){const r=e[1];for(const e of r){if(t(e,e[0].type))return!0}return!1}function u(e,t){return c(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(961),i=r(286),o=r(290),a=r(285),s=r(284),c=r(962),u=r(969),l=r(964),f=r(279),p=r(965),d=r(277),h=r(280),m=r(966),g=r(967),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,c.addItemToEnvelope)(r,(0,c.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 n="number"==typeof r?r:1,o=`${e}:${t}`;f.DEBUG_BUILD&&i.logger.log(`Recording outcome: "${o}"${n>1?` (${n} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+n}}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),c=E(e),l=e.type||"error",f=`before send for type \`${l}\``;if(c&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),(0,s.rejectedSyncPromise)(new u.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 u.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){if(t.spans){const e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}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 u.SentryError(r);return e}),(e=>{throw new u.SentryError(`${t} rejected with ${e}`)}));if(!(0,a.isPlainObject)(e)&&null!==e)throw new u.SentryError(r);return e}(i,f)})).then((n=>{if(null===n){if(this.recordDroppedEvent("before_send",p,e),o){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new u.SentryError(`${f} returned \`null\`, will not send event.`,"log")}const i=r&&r.getSession();if(!o&&i&&this._updateSessionFromEvent(i,n),o){const e=(n.sdkProcessingMetadata&&n.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(n.spans?n.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}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 u.SentryError)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new u.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:()=>c});var n=r(291),i=r(961);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 c(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(962),i=r(961);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)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,n.createEnvelope)(s,[c])}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 c=[{type:a},e];return(0,n.createEnvelope)(s,[c])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addIntegration:()=>h,afterSetupIntegrations:()=>p,convertIntegrationFnToClass:()=>m,defineIntegration:()=>g,getIntegrationsToSetup:()=>l,installedIntegrations:()=>u,setupIntegration:()=>d,setupIntegrations:()=>f});var n=r(290),i=r(286),o=r(279),a=r(282),s=r(277),c=r(280);const u=[];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===u.indexOf(t.name)&&(t.setupOnce(a.addGlobalEventProcessor,c.getCurrentHub),u.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(961),i=r(962),o=r(968);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 c=function(e){const t=(0,o.serializeMetricBuckets)(e);return[{type:"statsd",length:t.length},t]}(e);return(0,i.createEnvelope)(s,[c])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getBucketKey:()=>i,sanitizeMetricKey:()=>c,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 c(e){return e.replace(/[^\w\-.]+/gi,"_")}function u(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[u(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(962),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(966),i=r(277),o=r(974),a=r(976),s=r(977),c=r(978),u=r(980),l=r(290),f=r(286),p=r(292),d=r(982),h=r(293),m=r(983),g=r(957),y=r(959);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 c={category:`ui.${r.name}`,message:n};o&&(c.data={"ui.component_name":o}),(0,i.addBreadcrumb)(c,{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:c,status_code:u,body:l}=o,f={method:a,url:c,status_code:u},p={xhr:t.xhr,input:l,startTimestamp:r,endTimestamp:n};(0,i.addBreadcrumb)({category:"xhr",data:f,type:"http"},p)}}(e)),t.fetch&&(0,c.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,u.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(975);function s(e){const t="console";(0,a.addHandler)(t,e),(0,a.maybeInstrument)(t,c)}function c(){"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:()=>c,maybeInstrument:()=>l,resetInstrumentationHandlers:()=>u,triggerHandlers:()=>f});var n=r(287),i=r(286),o=r(304);const a={},s={};function c(e,t){a[e]=a[e]||[],a[e].push(t)}function u(){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(975);const s=o.GLOBAL_OBJ,c=1e3;let u,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(u),u=s.setTimeout((()=>{f=void 0,l=void 0}),c)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SENTRY_XHR_DATA_KEY:()=>c,addXhrInstrumentationHandler:()=>u,instrumentXHR:()=>l});var n=r(285),i=r(291),o=r(283),a=r(975);const s=o.GLOBAL_OBJ,c="__sentry_xhr_v3__";function u(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[c]={method:o,url:s,request_headers:{}},"POST"===o&&s.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const u=()=>{const e=this[c];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 u(),e.apply(this,t)}})):this.addEventListener("readystatechange",u),(0,i.fill)(this,"setRequestHeader",(function(e){return function(...t){const[r,i]=t,o=this[c];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[c];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(979),o=r(283),a=r(975);function s(e){const t="fetch";(0,a.addHandler)(t,e),(0,a.maybeInstrument)(t,c)}function c(){(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 u(e,t){return!!e&&"object"==typeof e&&!!e[t]}function l(e){return"string"==typeof e?e:e?u(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:u(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:l(t),method:u(t,"method")?String(t.method).toUpperCase():"GET"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isNativeFetch:()=>l,supportsDOMError:()=>s,supportsDOMException:()=>c,supportsErrorEvent:()=>a,supportsFetch:()=>u,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 c(){try{return new DOMException(""),!0}catch(e){return!1}}function u(){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(!u())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(!u())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:()=>u});var n=r(291),i=r(283),o=r(981),a=r(975);const s=i.GLOBAL_OBJ;let c;function u(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=c,t=String(r);c=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=c;c=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:()=>c,dedupeIntegration:()=>s});var n=r(966),i=r(286),o=r(957);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(!u(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(!u(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}}})),c=(0,n.convertIntegrationFnToClass)(a,s);function u(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(966),i=r(277),o=r(986),a=r(285),s=r(987),c=r(292),u=r(286),l=r(957),f=r(958),p=r(959);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:c,column:u,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 c=o.match(i);c&&(s=c[1],o=c[2]);const u={exception:{values:[{type:s,value:o}]}};return g(u,t,r,n)}(o,s,c,u):g((0,f.eventFromUnknownInput)(r,l||o,void 0,n,!1),s,c,u);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]||{},u=s.stacktrace=s.stacktrace||{},l=u.frames=u.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,c.getLocationHref)();return 0===l.length&&l.push({colno:f,filename:d,function:"?",in_app:!0,lineno:p}),e}function y(e){l.DEBUG_BUILD&&u.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(975);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(975);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(966),i=r(959);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:()=>c,linkedErrorsIntegration:()=>s});var n=r(966),i=r(990),o=r(958);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)}}})),c=(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,c,u){if(!(c.exception&&c.exception.values&&u&&(0,n.isInstanceOf)(u.originalException,Error)))return;const l=c.exception.values.length>0?c.exception.values[c.exception.values.length-1]:void 0;var f,p;l&&(c.exception.values=(f=a(e,t,s,u.originalException,o,c.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,u,l,f){if(u.length>=r+1)return u;let p=[...u];if((0,n.isInstanceOf)(i[o],Error)){s(l,f);const n=e(t,i[o]),u=p.length;c(n,o,u,f),p=a(e,t,r,i[o],o,[n,...p],n,u)}return Array.isArray(i.errors)&&i.errors.forEach(((i,u)=>{if((0,n.isInstanceOf)(i,Error)){s(l,f);const n=e(t,i),d=p.length;c(n,`errors[${u}]`,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 c(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:()=>u});var n=r(966),i=r(291),o=r(304),a=r(959);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"],c="TryCatch",u=(0,n.defineIntegration)(((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:c,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)(c,u);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:()=>c,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+))\)/,c=[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)}}],u=/^\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=u.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=[c,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(995),i=r(284),o=r(994);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 c={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r<=6e4&&a<15,...e.fetchOptions};try{return t(e.url,c).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:()=>u,getNativeFetchImplementation:()=>c});var n=r(979),i=r(286),o=r(957),a=r(959);let s;function c(){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 u(){s=void 0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_TRANSPORT_BUFFER_SIZE:()=>l,createTransport:()=>f});var n=r(996),i=r(962),o=r(997),a=r(284),s=r(286),c=r(969),u=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)&&u.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 c.SentryError)return u.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(969),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(995),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(966);const c=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],u=[/^.*\/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?[]:c],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:u],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:()=>u});var n=r(291),i=r(277),o=r(966);let a;const s="FunctionToString",c=new WeakMap,u=(0,o.defineIntegration)((()=>({name:s,setupOnce(){a=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,n.getOriginalFunction)(this),r=c.has((0,i.getClient)())&&void 0!==t?t:this;return a.apply(r,e)}}catch(e){}},setup(e){c.set(e,!0)}}))),l=(0,o.convertIntegrationFnToClass)(s,u)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initAndBind:()=>s,setCurrentClient:()=>c});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);c(r),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(r)}function c(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(1003),i=r(1004),o=r(277),a=r(1022),s=r(963),c=r(301),u=r(280),l=r(297),f=r(1023),p=r(283),d=r(302),h=r(291),m=r(292),g=r(289),y=r(286),v=r(290),b=r(977),_=r(293),S=r(978),E=r(976),w=r(980),O=r(962),x=r(997),T=r(1024),k=r(1005);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 G(e){return e.toLowerCase()}function V(e){return e.toUpperCase()}const $="__rrweb_original__";function K(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?G(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,c=r||i||"";if(!s)return e;if(ne.test(s)||ie.test(s))return`url(${c}${s}${c})`;if(oe.test(s))return`url(${c}${s}${c})`;if("/"===s[0])return`url(${c}${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}${c})`;const u=t.split("/"),l=s.split("/");u.pop();for(const e of l)"."!==e&&(".."===e?u.pop():u.push(e));return`url(${c}${u.join("/")}${c})`}))}const se=/^[^ \t\n\r\u000c]+/,ce=/^[, \t\n\r\u000c]+/;function ue(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]?ue(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(ce),!(r>=t.length);){let o=n(se);if(","===o.slice(-1))o=ue(e,o.substring(0,o.length-1)),i.push(o);else{let n="";o=ue(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?ue(e,n):"function"==typeof o?o(r,n,i):n:ue(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,c=-1;if(o){if(c=he(a,me(n,i)),c<0)return!0;s=he(a,me(t,r),c>=0?c:1/0)}else{if(s=he(a,me(t,r)),s<0)return!1;c=he(a,me(n,i),s>=0?s:1/0)}return s>=0?!(c>=0)||s<=c:!(c>=0)&&!!o}catch(e){}return!!o}function ye(e,t){const{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskAttributeFn:c,maskTextClass:u,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:c,maskInputFn:u,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=G(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,G(n.name),n.value,e,c))}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,V(E),r),i=t.checked;if("submit"!==r&&"button"!==r&&n){const e=ge(t,y,b,v,_,z({type:r,tagName:V(E),maskInputOptions:s}));w.value=W({isMasked:e,element:t,value:n,maskInputFn:u})}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:c,maskInputOptions:h,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:S,rootId:E,maskAllText:s,maskTextClass:u,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:c,maskInputFn:u,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&&(c.textarea||g)&&(p=u?u(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:c})),element:e,value:p,maskInputFn:u})}return{type:j.Text,textContent:p||"",isStyle:d,rootId:l}}(e,{maskAllText:s,maskTextClass:u,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:c,unmaskTextClass:u,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:c,unmaskTextClass:u,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:c,unmaskTextClass:u,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:c,unmaskTextClass:u,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:c,unmaskTextClass:u,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),c=this;s<=0||s>t?(n&&(!function(...e){We("clearTimeout")(...e)}(n),n=null),i=a,e.apply(c,o)):n||!1===r.trailing||(n=Ge((()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(c,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){Ge((()=>{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 c=-1;return!(s<0)&&(n&&(c=he(o,me(null,n))),s>-1&&c<0||s<c)}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 Ge(...e){return We("setTimeout")(...e)}var Ve=(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))(Ve||{}),$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,G(t.tagName),G(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 ct(){at=void 0}const ut=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(ut((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,c=[];let u=null;return Object.keys(Ke).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((a=>{let s=G(a);const l=(t=>a=>{const s=pt(a);if(Pe(s,n,i,o,!0))return;let c=null,l=t;if("pointerType"in a){switch(a.pointerType){case"mouse":c=Ye.Mouse;break;case"touch":c=Ye.Touch;break;case"pen":c=Ye.Pen}c===Ye.Touch?Ke[t]===Ke.MouseDown?l="TouchStart":Ke[t]===Ke.MouseUp&&(l="TouchEnd"):Ye.Pen}else Me(a)&&(c=Ye.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===Ye.Touch||l.startsWith("Mouse")&&c===Ye.Mouse)&&(c=null)):Ke[t]===Ke.Click&&(c=u,u=null);const f=Me(a)?a.changedTouches[0]:a;if(!f)return;const p=r.getId(s),{clientX:d,clientY:h}=f;ut(e)({type:Ke[l],id:p,x:d,y:h,...null!==c&&{pointerType:c}})})(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}c.push(Se(s,l,t))})),ut((()=>{c.forEach((e=>e()))}))}function mt({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:a}){return Se("scroll",ut(Oe(ut((a=>{const s=pt(a);if(!s||Pe(s,n,i,o,!0))return;const c=r.getId(s);if(s===t&&t.defaultView){const r=Ce(t.defaultView);e({id:c,x:r.left,y:r.top})}else e({id:c,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:c,maskInputFn:u,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&&V(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:c,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:u}),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:u});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);ut(e)({...n,id:i})}}const v=("last"===l.input?["change"]:["input","change"]).map((e=>Se(e,ut(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(){ut(g)({target:this,isTrusted:!1})}},!1,b)))),ut((()=>{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}}),ut((()=>{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 c=Oe(ut((t=>{const r=Date.now()-a;e(s.map((e=>(e.timeOffset-=r,e))),t),s=[],a=null})),o),u=ut(Oe(ut((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}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?$e.Drag:e instanceof MouseEvent?$e.MouseMove:$e.TouchMove)})),i,{trailing:!1})),l=[Se("mousemove",u,r),Se("touchmove",u,r),Se("drag",u,r)];return ut((()=>{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",ut(Oe(ut((()=>{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}),c=vt(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:o,doc:a}){const s=ut((a=>Oe(ut((o=>{const s=pt(o);if(!s||Pe(s,t,r,n,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:f}=s;e({type:a,id:i.getId(s),currentTime:c,volume:u,muted:l,playbackRate:f})})),o.media||500))),c=[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 ut((()=>{c.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:ut(((n,i,o)=>{const[a,s]=o,{id:c,styleId:u}=_t(i,t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,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:ut(((n,i,o)=>{const[a]=o,{id:s,styleId:c}=_t(i,t,r.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:a}]}),n.apply(i,o)}))}),n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:ut(((n,i,o)=>{const[a]=o,{id:s,styleId:c}=_t(i,t,r.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replace:a}),n.apply(i,o)}))})),n.CSSStyleSheet.prototype.replaceSync&&(s=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:ut(((n,i,o)=>{const[a]=o,{id:s,styleId:c}=_t(i,t,r.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replaceSync:a}),n.apply(i,o)}))}));const c={};Ot("CSSGroupingRule")?c.CSSGroupingRule=n.CSSGroupingRule:(Ot("CSSMediaRule")&&(c.CSSMediaRule=n.CSSMediaRule),Ot("CSSConditionRule")&&(c.CSSConditionRule=n.CSSConditionRule),Ot("CSSSupportsRule")&&(c.CSSSupportsRule=n.CSSSupportsRule));const u={};return Object.entries(c).forEach((([n,i])=>{u[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(u[n].insertRule,{apply:ut(((n,i,o)=>{const[a,s]=o,{id:c,styleId:u}=_t(i.parentStyleSheet,t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:a,index:[...bt(i),s||0]}]}),n.apply(i,o)}))}),i.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:ut(((n,i,o)=>{const[a]=o,{id:s,styleId:c}=_t(i.parentStyleSheet,t,r.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:[...bt(i),a]}]}),n.apply(i,o)}))})})),ut((()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=o,a&&(n.CSSStyleSheet.prototype.replace=a),s&&(n.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[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:ut(((i,a,s)=>{const[c,u,l]=s;if(r.has(c))return o.apply(a,[c,u,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:c,value:u,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:ut(((i,o,s)=>{const[c]=s;if(r.has(c))return a.apply(o,[c]);const{id:u,styleId:l}=_t(lt([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,n.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,remove:{property:c},index:bt(o.parentRule)}),i.apply(o,s)}))}),ut((()=>{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 Ge(ut((()=>{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),ut((()=>{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 c=ut((()=>{const e=t.getSelection();if(!e||s&&lt([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;const c=[],u=e.rangeCount||0;for(let t=0;t<u;t++){const a=e.getRangeAt(t),{startContainer:s,startOffset:u,endContainer:l,endOffset:f}=a;Pe(s,n,i,o,!0)||Pe(l,n,i,o,!0)||c.push({start:r.getId(s),startOffset:u,end:r.getId(l),endOffset:f})}a({ranges:c})}));return c(),Se("selectionchange",c)}(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 ut((()=>{ft.forEach((e=>e.reset())),n.disconnect(),i(),o(),a(),s(),c(),u(),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 Ve.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:Ve.IncrementalSnapshot,data:{source:$e.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ve.Meta:case Ve.Load:case Ve.DomContentLoaded:return!1;case Ve.Plugin:return t;case Ve.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Ve.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})),Ge((()=>{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:c="rr-ignore",ignoreSelector:u=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 G=0;const V=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===Ve.FullSnapshot||a.type===Ve.IncrementalSnapshot&&a.data.source===$e.Mutation||ft.forEach((e=>e.unfreeze())),F)(0,i._optionalChain)([t,"optionalCall",e=>e(V(a),o)]);else if(U){const e={type:"rrweb",event:V(a),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(a.type===Ve.FullSnapshot)W=a,G=0;else if(a.type===Ve.IncrementalSnapshot){if(a.data.source===$e.Mutation&&a.data.isAttachIframe)return;G++;const e=n&&G>=n,t=r&&W&&a.timestamp-W.timestamp>r;(e||t)&&te(!0)}};const $=e=>{Nt({type:Ve.IncrementalSnapshot,data:{source:$e.Mutation,...e}})},K=e=>Nt({type:Ve.IncrementalSnapshot,data:{source:$e.Scroll,...e}}),Y=e=>Nt({type:Ve.IncrementalSnapshot,data:{source:$e.CanvasMutation,...e}}),Q=new Pt({mutationCb:$,adoptedStyleSheetCb:e=>Nt({type:Ve.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:Ve.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:Ve.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:c=null,maskTextSelector:u=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:c,maskTextSelector:u,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:Ve.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=>ut(Et)({onMutation:j,mutationCb:$,mousemoveCb:(e,t)=>Nt({type:Ve.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Nt({type:Ve.IncrementalSnapshot,data:{source:$e.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>Nt({type:Ve.IncrementalSnapshot,data:{source:$e.ViewportResize,...e}}),inputCb:e=>Nt({type:Ve.IncrementalSnapshot,data:{source:$e.Input,...e}}),mediaInteractionCb:e=>Nt({type:Ve.IncrementalSnapshot,data:{source:$e.MediaInteraction,...e}}),styleSheetRuleCb:e=>Nt({type:Ve.IncrementalSnapshot,data:{source:$e.StyleSheetRule,...e}}),styleDeclarationCb:e=>Nt({type:Ve.IncrementalSnapshot,data:{source:$e.StyleDeclaration,...e}}),canvasMutationCb:Y,fontCb:e=>Nt({type:Ve.IncrementalSnapshot,data:{source:$e.Font,...e}}),selectionCb:e=>{Nt({type:Ve.IncrementalSnapshot,data:{source:$e.Selection,...e}})},customElementCb:e=>{Nt({type:Ve.IncrementalSnapshot,data:{source:$e.CustomElement,...e}})},blockClass:o,ignoreClass:c,ignoreSelector:u,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:Ve.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:Ve.DomContentLoaded,data:{}}),"DOMContentLoaded"===I&&r()}))),e.push(Se("load",(()=>{Nt({type:Ve.Load,data:{}}),"load"===I&&r()}),window))),()=>{e.forEach((e=>e())),J.destroy(),Mt=void 0,ct()}}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:Ve.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=Gt(e);return t&&t instanceof Element?zt(t):t}function Gt(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Vt;function $t(e){return Vt||(Vt=[],(0,h.fill)(C,"open",(function(e){return function(...t){if(Vt)try{Vt.forEach((e=>e()))}catch(e){}return e.apply(C,t)}}))),Vt.push(e),()=>{const t=Vt?Vt.indexOf(e):-1;t>-1&&Vt.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):Gt(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,c=1===o.length;if(!s&&c)return null;const u=(0,m.htmlTreeAsString)(a,{maxStringLength:200})||"<unknown>",l=nr(a,u);return Jt({category:"ui.keyDown",message:u,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:c,transferSize:u}=e;if(["fetch","xmlhttprequest"].includes(r))return null;return{type:`${t}.${r}`,start:sr(o),end:sr(i),name:n,data:{size:u,statusCode:c,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:c,domInteractive:u,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:u,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,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 cr(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 ur="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){ur&&(y.logger.info(e),t&&dr(e))}function pr(e,t){ur&&(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 ur&&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=>{ur&&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){ur&&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===Ve.Custom}(e))return t(e)}catch(e){return ur&&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";ur&&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:Ve.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 ur&&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:Ve.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(!ur||!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 Gr(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 ur&&y.logger.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ur&&y.logger.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Vr(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:c}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:(0,h.dropUndefinedKeys)({method:o,statusCode:a,request:s,response:c})}}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:c=0,request_body_size:u,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]=Gr(o),c=Yr(i,n,a);if(s)return Vr(c,s);return c}(r,t.input,u):Kr(u),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,c]=await async function(e){const t=function(e){try{return e.clone()}catch(e){ur&&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 ur&&y.logger.warn("[Replay] Failed to get text body from response",e),[void 0,"BODY_PARSE_ERROR"]}}(i),u=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 ur&&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(c)return Vr(u,c);return u}(f,r,t.response,l);return{startTimestamp:i,endTimestamp:o,url:a,method:s,statusCode:c,request:p,response:d}}(e,t,r),i=$r("resource.fetch",n);Hr(r.replay,i)}catch(e){ur&&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:c,method:u,status_code:l=0,request_body_size:f,response_body_size:p}=e.data;if(!c)return null;if(!s||!Jr(c,r.networkDetailAllowUrls)||Jr(c,r.networkDetailDenyUrls)){return{startTimestamp:i,endTimestamp:o,url:c,method:u,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?Gr(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 ur&&y.logger.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ur&&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 ur&&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:c,method:u,statusCode:l,request:v?Vr(E,v):E,response:S?Vr(w,S):w}}(e,t,r),i=$r("resource.xhr",n);Hr(r.replay,i)}catch(e){ur&&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(),c={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){ur&&y.logger.warn("Error when enriching network breadcrumb")}}(c,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 cn=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 un(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(ur&&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:Ve.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,c.prepareEvent)(e.getOptions(),n,i,t,e,(0,u.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}),ur&&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 c(),n=e(),n}function c(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function u(){return i&&clearTimeout(i),i=setTimeout(s,t),a&&void 0===o&&(o=setTimeout(s,a)),n}return u.cancel=c,u.flush=function(){return void 0!==i||void 0!==o?s():n},u}((()=>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){ur&&y.logger.error("[Replay]",e),ur&&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(cn(e)),(0,E.addClickKeypressInstrumentationHandler)(rr(e)),(0,w.addHistoryInstrumentationHandler)(Ur(e)),an(e);const n=Br(e,!un(r));r&&r.addEventProcessor?r.addEventProcessor(n):(0,s.addEventProcessor)(n),un(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=cr(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:Ve.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 ur&&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(ur&&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){ur&&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:c,errorSampleRate:u,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:c,ignoreClass:u}){const l={maskTextSelector:bn(e,[".sentry-mask","[data-sentry-mask]"],s,c),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"]'],u)};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:c,errorSampleRate:u,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 c&&(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: ${c} })`),this._initialOptions.sessionSampleRate=c),"number"==typeof u&&(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: ${u} })`),this._initialOptions.errorSampleRate=u),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(1006),a=r(1007),s=r(1016),c=r(1018),u=r(1020),l=r(1014),f=r(1021);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,u.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,c.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(1008),i=r(1009),o=r(1014),a=r(1015);const s=(e,t={})=>{const r=(0,i.initMetric)("CLS",0);let s,c=0,u=[];const l=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=u[0],n=u[u.length-1];c&&0!==u.length&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(c+=e.value,u.push(e)):(c=e.value,u=[e]),c>r.value&&(r.value=c,r.entries=u,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(1010),i=r(1011),o=r(1012),a=r(1013);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(1013);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(1010);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(1010);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:()=>c});var n=r(1008),i=r(1017),o=r(1009),a=r(1014),s=r(1015);const c=e=>{const t=(0,i.getVisibilityWatcher)(),r=(0,o.initMetric)("FID");let c;const u=e=>{e.startTime<t.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),c(!0))},l=e=>{e.forEach(u)},f=(0,a.observe)("first-input",l);c=(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(1010),i=r(1015);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(1008),i=r(1009),o=r(1014),a=r(1015),s=r(1019);const c=()=>(0,s.getInteractionCount)(),u=[],l={},f=e=>{const t=u[u.length-1],r=l[e.interactionId];if(r||u.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,u.push(t)}u.sort(((e,t)=>t.latency-e.latency)),u.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){!u.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&f(e)}}));const t=(()=>{const e=Math.min(u.length-1,Math.floor(c()/50));return u[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&&c()>0&&(r.value=0,r.entries=[]),l(!0)})))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getInteractionCount:()=>u,initInteractionCountPolyfill:()=>l});var n=r(1014);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 c;const u=()=>c?i:performance.interactionCount||0,l=()=>{"interactionCount"in performance||c||(c=(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(1010),i=r(1008),o=r(1012),a=r(1017),s=r(1009),c=r(1014),u=r(1015);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,c.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,u.onHidden)(t,!0),t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onTTFB:()=>u});var n=r(1010),i=r(1008),o=r(1012),a=r(1013),s=r(1009);const c=e=>{n.WINDOW.document&&(n.WINDOW.document.prerendering?addEventListener("prerenderingchange",(()=>c(e)),!0):"complete"!==n.WINDOW.document.readyState?addEventListener("load",(()=>c(e)),!0):setTimeout(e,0))},u=(e,t)=>{t=t||{};const r=(0,s.initMetric)("TTFB"),n=(0,i.bindReporter)(e,r,t.reportAllChanges);c((()=>{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(1025),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(970);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)=>{"use strict";r.r(t),r.d(t,{useLazyQuery:()=>u});var n=r(103),i=r(325),o=r(457),a=r(579),s=r(617),c=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function u(e,t){var r,u=i.useRef(),l=i.useRef(),f=i.useRef(),p=(0,o.mergeOptions)(t,u.current||{}),d=null!==(r=null==p?void 0:p.query)&&void 0!==r?r:e;l.current=t,f.current=d;var h=(0,n.__assign)((0,n.__assign)({},p),{skip:!u.current}),m=(0,a.useQueryInternals)(d,h),g=m.obsQueryFields,y=m.result,v=m.client,b=m.resultData,_=m.observable,S=m.onQueryExecuted,E=_.options.initialFetchPolicy||(0,a.getDefaultFetchPolicy)(h.defaultOptions,v.defaultOptions),w=i.useReducer((function(e){return e+1}),0)[1],O=i.useMemo((function(){for(var e={},t=function(t){var r=g[t];e[t]=function(){return u.current||(u.current=Object.create(null),w()),r.apply(this,arguments)}},r=0,n=c;r<n.length;r++){t(n[r])}return e}),[w,g]),x=!!u.current,T=i.useMemo((function(){return(0,n.__assign)((0,n.__assign)((0,n.__assign)({},y),O),{called:x})}),[y,O,x]),k=i.useCallback((function(e){u.current=e?(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:e.fetchPolicy||E}):{fetchPolicy:E};var t=(0,o.mergeOptions)(l.current,(0,n.__assign)({query:f.current},u.current)),r=function(e,t,r,n,i,o){var s=i.query||n,c=(0,a.createMakeWatchQueryOptions)(r,s,i,!1)(t),u=t.reobserveAsConcast((0,a.getObsQueryOptions)(t,r,i,c));return o(c),new Promise((function(n){var i;u.subscribe({next:function(e){i=e},error:function(){n((0,a.toQueryResult)(t.getCurrentResult(),e.previousData,t,r))},complete:function(){n((0,a.toQueryResult)(i,e.previousData,t,r))}})}))}(b,_,v,d,(0,n.__assign)((0,n.__assign)({},t),{skip:!1}),S).then((function(e){return Object.assign(e,O)}));return r.catch((function(){})),r}),[v,d,O,E,_,b,S]),C=i.useRef(k);(0,s.useIsomorphicLayoutEffect)((function(){C.current=k}));var I=i.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return C.current.apply(C,e)}),[]);return[I,T]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{const n=r(1320),i=r(1321),o=r(1344),a=r(1346);function s(e,t,r,o,a){const s=[].slice.call(arguments,1),c=s.length,u="function"==typeof s[c-1];if(!u&&!n())throw new Error("Callback required as last argument");if(!u){if(c<1)throw new Error("Too few arguments provided");return 1===c?(r=t,t=o=void 0):2!==c||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(c<2)throw new Error("Too few arguments provided");2===c?(a=r,r=t,t=o=void 0):3===c&&(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(1322),i=r(1323),o=r(1324),a=r(1325),s=r(1326),c=r(1327),u=r(1328),l=r(1329),f=r(1330),p=r(1333),d=r(1337),h=r(1334),m=r(1338);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),c=i%s,u=s-c,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<u?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=c.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=u.getBestMask(h,g.bind(null,h,r))),u.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=u.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(1322).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(1322).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 c=0;c<t;c++){i=o=0,a=s=null;for(let u=0;u<t;u++){let t=e.get(c,u);t===a?i++:(i>=5&&(n+=r+(i-5)),a=t,i=1),t=e.get(u,c),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(1323),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(1331);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(1332);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(1322),i=r(1329),o=r(1323),a=r(1334),s=r(1335),c=n.getBCHDigit(7973);function u(e,t){return a.getCharCountIndicator(e,t)+4}function l(e,t){let r=0;return e.forEach((function(e){const n=u(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 c=o-u(r,e);switch(r){case a.NUMERIC:return Math.floor(c/10*3);case a.ALPHANUMERIC:return Math.floor(c/11*2);case a.KANJI:return Math.floor(c/13);case a.BYTE:default:return Math.floor(c/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)-c>=0;)t^=7973<<n.getBCHDigit(t)-c;return e<<12|t}},(e,t,r)=>{const n=r(1335),i=r(1336);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(1322),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(1334),i=r(1339),o=r(1340),a=r(1341),s=r(1342),c=r(1336),u=r(1322),l=r(1343);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(c.NUMERIC,n.NUMERIC,e),r=p(c.ALPHANUMERIC,n.ALPHANUMERIC,e);let i,o;u.isKanjiModeEnabled()?(i=p(c.BYTE,n.BYTE,e),o=p(c.KANJI,n.KANJI,e)):(i=p(c.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 c=n.getBestModeForData(e);if(r=n.from(t,c),r!==n.BYTE&&r.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+n.toString(r)+".\n Suggested mode is: "+n.toString(c));switch(r!==n.KANJI||u.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,u.isKanjiModeEnabled())),o=function(e,t){const r={},i={start:{}};let o=["start"];for(let a=0;a<e.length;a++){const s=e[a],c=[];for(let e=0;e<s.length;e++){const u=s[e],l=""+a+e;c.push(l),r[l]={node:u,lastCount:0},i[l]={};for(let e=0;e<o.length;e++){const a=o[e];r[a]&&r[a].node.mode===u.mode?(i[a][l]=h(r[a].lastCount+u.length,u.mode)-h(r[a].lastCount,u.mode),r[a].lastCount+=u.length):(r[a]&&(r[a].lastCount=u.length),i[a][l]=h(u.length,u.mode)+4+n.getCharCountIndicator(u.mode,t))}}o=c}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,u.isKanjiModeEnabled()))}},(e,t,r)=>{const n=r(1334);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(1334),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(1334);function i(e){this.mode=n.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)},e.exports=i},(e,t,r)=>{const n=r(1334),i=r(1322);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,c,u,l,f,p,d=t.PriorityQueue.make();for(d.push(r,0);!d.empty();)for(c in s=(a=d.pop()).value,u=a.cost,l=e[s]||{})l.hasOwnProperty(c)&&(f=u+l[c],p=o[c],(void 0===o[c]||p>f)&&(o[c]=f,d.push(c,f),i[c]=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(1345);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"),c=s.createImageData(a,a);return n.qrToImageData(c.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(c,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),c=n.margin*a,u=[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>=c&&r>=c&&t<s-c&&r<s-c){f=u[o[Math.floor((t-c)/a)*i+Math.floor((r-c)/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(1345);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,c=e.modules.data,u=s+2*a.margin,l=a.color.light.a?"<path "+i(a.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",f="<path "+i(a.color.dark,"stroke")+' d="'+function(e,t,r){let n="",i=0,a=!1,s=0;for(let c=0;c<e.length;c++){const u=Math.floor(c%t),l=Math.floor(c/t);u||a||(a=!0),e[c]?(s++,c>0&&u>0&&e[c-1]||(n+=a?o("M",u+r,.5+l+r):o("m",i,0),i=0,a=!1),u+1<t&&e[c+1]||(n+=o("h",s),s=0)):i++}return n}(c,s,a.margin)+'"/>',p='viewBox="0 0 '+u+" "+u+'"',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(678),i=r(1409),o=r(1410),a=r(679),s=r(270),c=r(682),u=r(1411),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,u.getInitialChildMapping)(e,n):(0,u.getNextChildMapping)(e,r,n),firstRender:!1}},r.handleExited=function(e,t){var r=(0,u.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(c.default.Provider,{value:o},a):s.default.createElement(c.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:()=>c,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 c in t){if(i[c])for(n=0;n<i[c].length;n++){var u=i[c][n];s[i[c][n]]=r(u)}s[c]=r(c)}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 c(e,t,r){var s=i(e.children),c=o(t,s);return Object.keys(c).forEach((function(i){var o=c[i];if((0,n.isValidElement)(o)){var u=i in t,l=i in s,f=t[i],p=(0,n.isValidElement)(f)&&!f.props.in;!l||u&&!p?l||!u||p?l&&u&&(0,n.isValidElement)(f)&&(c[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:f.props.in,exit:a(o,"exit",e),enter:a(o,"enter",e)})):c[i]=(0,n.cloneElement)(o,{in:!1}):c[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:!0,exit:a(o,"exit",e),enter:a(o,"enter",e)})}})),c}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(1409),i=r(678),o=r(679),a=r(1413),s=r(1415),c=r(270),u=r(677),l=r(683),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 c.default.createElement(u.default,(0,n.default)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(c.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(1414);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,c=/^0o[0-7]+$/i,u=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||c.test(e)?u(e.slice(2),r?2:8):a.test(e)?n:+e}e.exports=function(e,t,r){var n,i,o,a,s,c,u=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,u=t,a=e.apply(o,r)}function b(e){var r=e-c;return void 0===c||r>=t||r<0||f&&e-u>=o}function _(){var e=g();if(b(e))return S(e);s=setTimeout(_,function(e){var r=t-(e-c);return f?m(r,o-(e-u)):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,c=e,r){if(void 0===s)return function(e){return u=e,s=setTimeout(_,t),l?d(e):a}(c);if(f)return s=setTimeout(_,t),d(c)}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),u=0,n=c=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:()=>c.default,ContentClipPath:()=>ee.default,ContinuousColorLegend:()=>W.default,ContinuousSizeLegend:()=>G.default,ContourSeries:()=>u.default,Crosshair:()=>l.default,CustomSVGSeries:()=>f.default,DecorativeAxis:()=>p.default,DiscreteColorLegend:()=>V.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(1483),i=r(1584),o=r(1593),a=r(1650),s=r(1651),c=r(1652),u=r(1654),l=r(1680),f=r(1681),p=r(1682),d=r(1684),h=r(1685),m=r(1686),g=r(1687),y=r(1690),v=r(1691),b=r(1692),_=r(1694),S=r(1696),E=r(1697),w=r(1699),O=r(1701),x=r(1702),T=r(1705),k=r(1703),C=r(1707),I=r(1704),R=r(1706),A=r(1708),P=r(1709),D=r(1710),N=r(1711),M=r(1712),L=r(1713),j=r(1714),B=r(1698),F=r(1700),U=r(1715),H=r(1716),q=r(1736),z=r(1741),W=r(1742),G=r(1743),V=r(1744),$=r(1746),K=r(1747),Y=r(1748),Q=r(1749),X=r(1750),J=r(1766),Z=r(1785),ee=r(1802),te=r(1803),re=r(1653),ne=r(1524)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(272),i=r.n(n),o=r(1484),a=r(270),s=r(1494),c=r(1524);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 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){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,c.getScalePropTypesByAttribute)("x")),(0,c.getScalePropTypesByAttribute)("y")),(0,c.getScalePropTypesByAttribute)("size")),(0,c.getScalePropTypesByAttribute)("opacity")),(0,c.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,c.getAttr0Functor)(this.props,e)}},{key:"_getAttributeFunctor",value:function(e){return(0,c.getAttributeFunctor)(this.props,e)}},{key:"_getAttributeValue",value:function(e){return(0,c.getAttributeValue)(this.props,e)}},{key:"_getScaleDistance",value:function(e){var t=(0,c.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,c=s.getBoundingClientRect(),u=a.clientX,l=a.clientY;return"touchmove"===a.type&&(u=a.touches[0].pageX,l=a.touches[0].pageY),{x:u-c.left-s.clientLeft-o,y:l-c.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),c=this._getAttributeFunctor("x");n.forEach((function(e,t){var r=c(e),n=Math.abs(s.x-r);n<i&&(i=n,o=e,a=t)})),o&&r(o,{innerX:c(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"),c=(0,o.voronoi)().x(a).y(s)(n).find(i.x,i.y),u=c.data;u&&r(u,{innerX:c[0],innerY:c[1],index:c.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(1485)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(1486),i=r(1487),o=r(1488);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(1489),c=r(1491),u=r(1493),l=r(1492),f=r(1490),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=u.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,c.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,c.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,c.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,c,u,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&&(c=a,u=d,((s=l)[0]-u[0])*(c[1]-s[1])-(s[0]-c[0])*(u[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 c=e-i.site[0],u=t-i.site[1],l=c*c+u*u;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 c=e-s[0],u=t-s[1],f=c*c+u*u;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(1490),i=r(1491),o=r(1493),a=r(1492),s=r(1488),c=[];function u(){(0,n.RedBlackNode)(this),this.edge=this.site=this.circle=null}function l(e){var t=c.pop()||new u;return t.site=e,t}function f(e){(0,o.detachCircle)(e),s.beaches.remove(e),c.push(e),(0,n.RedBlackNode)(e)}function p(e){var t=e.circle,r=t.x,n=t.cy,i=[r,n],c=e.P,u=e.N,l=[e];f(e);for(var p=c;p.circle&&Math.abs(r-p.circle.x)<s.epsilon&&Math.abs(n-p.circle.cy)<s.epsilon;)c=p.P,l.unshift(p),f(p),p=c;l.unshift(p),(0,o.detachCircle)(p);for(var d=u;d.circle&&Math.abs(r-d.circle.x)<s.epsilon&&Math.abs(n-d.circle.cy)<s.epsilon;)u=d.N,l.push(d),f(d),d=u;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,c,u=e[0],f=e[1],p=s.beaches._;p;)if((n=h(p,f)-u)>s.epsilon)p=p.L;else{if(!((c=u-m(p,f))>s.epsilon)){n>-s.epsilon?(t=p.P,r=p):c>-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],c=r[1],u=c-t;if(!u)return s;var l=s-n,f=1/o-1/u,p=l/u;return f?(-p+Math.sqrt(p*p-2*f*(l*l/(-2*u)-c+u/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:()=>c}),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,c=e.L,u=e.R;if(r=c?u?s(u):c:u,i?i.L===e?i.L=r:i.R=r:this._=r,c&&u?(n=r.C,r.C=e.C,r.L=c,c.U=r,r!==u?(i=r.U,r.U=e.U,e=r.R,i.L=e,r.R=u,u.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 c=n},(e,t,r)=>{"use strict";r.r(t),r.d(t,{cellHalfedgeEnd:()=>c,cellHalfedgeStart:()=>s,clipCells:()=>l,createCell:()=>o,sortCellHalfedges:()=>u});var n=r(1492),i=r(1488);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 c(e,t){return t[+(t.left===e.site)]}function u(){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 c=new Array(n),u=new Array(n);for(r=0;r<n;++r)c[r]=r,u[r]=a(e,i.edges[t[r]]);for(c.sort((function(e,t){return u[t]-u[e]})),r=0;r<n;++r)u[r]=t[c[r]];for(r=0;r<n;++r)t[r]=u[r]}}function l(e,t,r,o){var a,u,l,f,p,d,h,m,g,y,v,b,_=i.cells.length,S=!0;for(a=0;a<_;++a)if(u=i.cells[a]){for(l=u.site,f=(p=u.halfedges).length;f--;)i.edges[p[f]]||p.splice(f,1);for(f=0,d=p.length;f<d;)v=(y=c(u,i.edges[p[f]]))[0],b=y[1],m=(h=s(u,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)(u=i.cells[a])&&(O=(E=(l=u.site)[0]-e)*E+(w=l[1]-t)*w)<x&&(x=O,S=u);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)(u=i.cells[a])&&(u.halfedges.length||delete i.cells[a])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{clipEdges:()=>u,createBorderEdge:()=>o,createEdge:()=>i,setEdgeEnd:()=>a});var n=r(1488);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],c=a[0],u=a[1],l=0,f=1,p=s[0]-c,d=s[1]-u;if(o=t-c,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-c,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-u,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-u,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]=[c+l*p,u+l*d]),f<1&&(e[1]=[c+f*p,u+f*d]),!0)}}}}}function c(e,t,r,n,i){var o=e[1];if(o)return!0;var a,s,c=e[0],u=e.left,l=e.right,f=u[0],p=u[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(c){if(c[1]>=i)return}else c=[m,r];o=[m,i]}else{if(c){if(c[1]<r)return}else c=[m,i];o=[m,r]}}else if(s=g-(a=(f-d)/(h-p))*m,a<-1||a>1)if(f>d){if(c){if(c[1]>=i)return}else c=[(r-s)/a,r];o=[(i-s)/a,i]}else{if(c){if(c[1]<r)return}else c=[(i-s)/a,i];o=[(r-s)/a,r]}else if(p<h){if(c){if(c[0]>=n)return}else c=[t,a*t+s];o=[n,a*n+s]}else{if(c){if(c[0]<t)return}else c=[n,a*n+s];o=[t,a*t+s]}return e[0]=c,e[1]=o,!0}function u(e,t,r,i){for(var o,a=n.edges.length;a--;)c(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:()=>c,detachCircle:()=>u,firstCircle:()=>n});var n,i=r(1490),o=r(1488),a=[];function s(){(0,i.RedBlackNode)(this),this.x=this.y=this.arc=this.site=this.cy=null}function c(e){var t=e.P,r=e.N;if(t&&r){var i=t.site,c=e.site,u=r.site;if(i!==u){var l=c[0],f=c[1],p=i[0]-l,d=i[1]-f,h=u[0]-l,m=u[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=c,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 u(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(1510),s=r(1495);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 u(){return u=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},u.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"===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){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)}(c,e);var t,r,i,o=p(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),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,c=s&&s.data||null;return c&&a.props._data&&(c=c.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:c||a.props.data||null,_animation:Math.random()}))})),t._updateInterpolator(e),t}return t=c,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,u({defaultStyle:{i:0},style:t,key:r},{onRest:this._motionEndHandler}),this._renderChildren)}}],r&&l(t.prototype,r),i&&l(t,i),c}(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(1496);t.Motion=n(i);var o=r(1504);t.StaggeredMotion=n(o);var a=r(1505);t.TransitionMotion=n(a);var s=r(1507);t.spring=n(s);var c=r(1508);t.presets=n(c);var u=r(1498);t.stripStyle=n(u);var l=r(1509);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(1497)),s=o(r(1498)),c=o(r(1499)),u=o(r(1500)),l=o(r(1501)),f=o(r(1503)),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,c=r.lastIdealVelocity;for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)){var l=e[u];"number"==typeof l&&(t||(t=!0,o=n({},o),a=n({},a),s=n({},s),c=n({},c)),o[u]=l,a[u]=0,s[u]=l,c[u]=0)}t&&i.setState({currentStyle:o,currentVelocity:a,lastIdealStyle:s,lastIdealVelocity:c})},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||u.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 _=c.default(h/1e3,y,v,g.val,g.stiffness,g.damping,g.precision);y=_[0],v=_[1]}var S=c.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=u.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyle&&this.clearUnreadPropStyle(this.unreadPropStyle),this.unreadPropStyle=e.style,null==this.animationID&&(this.prevTime=u.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 c=n+(-o*(t-i)+-a*n)*e,u=t+c*e;if(Math.abs(c)<s&&Math.abs(u-i)<s)return r[0]=i,r[1]=0,r;return r[0]=u,r[1]=c,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(1502),i="undefined"==typeof window?r.g:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],c=i["cancel"+a]||i["cancelRequest"+a],u=0;!s&&u<o.length;u++)s=i[o[u]+"Request"+a],c=i[o[u]+"Cancel"+a]||i[o[u]+"CancelRequest"+a];if(!s||!c){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},c=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(){c.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=c}},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(1497)),s=o(r(1498)),c=o(r(1499)),u=o(r(1500)),l=o(r(1501)),f=o(r(1503)),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,c=!1,u=0;u<e.length;u++){var l=e[u],f=!1;for(var p in l)if(Object.prototype.hasOwnProperty.call(l,p)){var d=l[p];"number"==typeof d&&(f||(f=!0,c=!0,r[u]=n({},r[u]),o[u]=n({},o[u]),a[u]=n({},a[u]),s[u]=n({},s[u])),r[u][p]=d,o[u][p]=0,a[u][p]=d,s[u][p]=0)}}c&&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||u.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=c.default(h/1e3,w,O,E.val,E.stiffness,E.damping,E.precision);w=T[0],O=T[1]}var k=c.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=u.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=u.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(1497)),s=o(r(1498)),c=o(r(1499)),u=o(r(1506)),l=o(r(1500)),f=o(r(1501)),p=o(r(1503)),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,c,l){for(var f=u.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]=c[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],c=t[4],u=0;u<e.length;u++){var l=e[u].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[u]=n({},o[u]),a[u]=n({},a[u]),s[u]=n({},s[u]),c[u]=n({},c[u]),r[u]={key:r[u].key,data:r[u].data,style:n({},r[u].style)}),o[u][p]=d,a[u][p]=0,s[u][p]=d,c[u][p]=0,r[u].style[p]=d)}}i.setState({currentStyles:o,currentVelocities:a,mergedPropsStyles:r,lastIdealStyles:s,lastIdealVelocities:c})},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),u=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=u[0],d=u[1],h=u[2],v=u[3],b=u[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=c.default(m/1e3,C,I,k.val,k.stiffness,k.damping,k.precision);C=A[0],I=A[1]}var P=c.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,c="function"==typeof r?r(t):r,u=void 0;u=null==t?c:t.map((function(e){for(var t=0;t<c.length;t++)if(c[t].key===e.key)return c[t];return e}));var l=null==t?c.map((function(e){return s.default(e.style)})):t.map((function(e){return s.default(e.style)})),f=null==t?c.map((function(e){return a.default(e.style)})):t.map((function(e){return a.default(e.style)})),p=y(n,i,o,u,c,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],c=n[r.key];if(null!=i&&null!=a)return o[e.key]-o[r.key];if(null!=s&&null!=c)return n[e.key]-n[r.key];if(null!=i){for(var u=0;u<t.length;u++){var l=t[u].key;if(Object.prototype.hasOwnProperty.call(n,l)){if(i<o[l]&&c>n[l])return-1;if(i>o[l]&&c<n[l])return 1}}return 1}for(u=0;u<t.length;u++){l=t[u].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(1508),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(1516),i=r(1511),o=r(1518),a=r(1520),s=r(1521),c=r(1522),u=r(1523),l=r(1515),f=r(1519);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):u.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)?c.default:s.default)(e,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,rgbBasis:()=>u,rgbBasisClosed:()=>l});var n=r(1516),i=r(1512),o=r(1513),a=r(1514);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),c=(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=c(t),e+""}}return i.gamma=e,i}(1);function c(e){return function(t){var r,i,o=t.length,a=new Array(o),s=new Array(o),c=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,c[r]=i.b||0;return a=e(a),s=e(s),c=e(c),i.opacity=1,function(e){return i.r=a(e),i.g=s(e),i.b=c(e),i+""}}}var u=c(i.default),l=c(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,c=i<t-1?e[i+2]:2*a-o;return n((r-i/t)*t,s,o,a,c)}}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(1512);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],c=e[(i+2)%t];return(0,n.basis)((r-i/t)*t,o,a,s,c)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,gamma:()=>a,hue:()=>o});var n=r(1515);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(1517);function i(){}var o=.7,a=1/o,s="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,f=new RegExp(`^rgb\\(${s},${s},${s}\\)$`),p=new RegExp(`^rgb\\(${u},${u},${u}\\)$`),d=new RegExp(`^rgba\\(${s},${s},${s},${c}\\)$`),h=new RegExp(`^rgba\\(${u},${u},${u},${c}\\)$`),m=new RegExp(`^hsl\\(${c},${u},${u}\\)$`),g=new RegExp(`^hsla\\(${c},${u},${u},${c}\\)$`),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,c=a-o,u=(a+o)/2;return c?(s=t===a?(r-n)/c+6*(r<n):r===a?(n-t)/c+2:(t-r)/c+4,c/=u<.5?a+o:2-a-o,s*=60):c=u>0&&u<1?0:s,new N(s,c,u,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(1510),i=r(1519);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(1510);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(1521),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(i.source,"g");function a(e,t){var r,a,s,c=i.lastIndex=o.lastIndex=0,u=-1,l=[],f=[];for(e+="",t+="";(r=i.exec(e))&&(a=o.exec(t));)(s=a.index)>c&&(s=t.slice(c,s),l[u]?l[u]+=s:l[++u]=s),(r=r[0])===(a=a[0])?l[u]?l[u]+=a:l[++u]=a:(l[++u]=null,f.push({i:u,x:(0,n.default)(r,a)})),c=o.lastIndex;return c<t.length&&(s=t.slice(c),l[u]?l[u]+=s:l[++u]=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:()=>G,getDomainByAccessor:()=>M,getFontColorFromBackground:()=>Q,getMissingScaleProps:()=>K,getOptionalScaleProps:()=>Z,getScaleFnFromScaleObject:()=>N,getScaleObjectFromProps:()=>F,getScalePropTypesByAttribute:()=>V,getXYPlotValues:()=>X,literalScale:()=>Y});var n,i=r(1534),o=r(1562),a=r(1563),s=r(1566),c=r(1568),u=r(1582),l=r(1583),f=r(1525),p=r(1516),d=r(272),h=r.n(d),m=r(1532),g=r(1533);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,c.default),w(n,"time-utc",u.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,c=1;c<e.length;c++)i=r(e[c]),(o=Math.abs(i-a))<s&&(s=o,n=c),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),c=[].concat(r);c[0]-=function(e){return e.length>1?(e[1]-e[0])/2:1===e.length?e[0]-.5:0}(a),c[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&&(c[0]=Math.min(r[1]/10,1));var u=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,c,s,N(v(v({},t),{},{domain:c})));return{domain0:c[0],domainN:c[c.length-1],distance:u}}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,c=e["".concat(t,"BaseValue")],u=e["".concat(t,"Type")],l=void 0===u?O:u,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!==c&&(y=(0,g.addValueToArray)(y,c)),o&&y&&y.length?{domain:(r={domain:y,range:o,type:l,distance:s,attr:t,baseValue:c,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],c=a[o-1],u=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),c=Math.max(c,a),u=Math.max(u,l)}})),t.domain=[s].concat(b(a.slice(1,-1)),[c]),t.distance=u,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 G(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 V(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:G,getDomainByAccessor:M,getFontColorFromBackground:Q,getMissingScaleProps:K,getOptionalScaleProps:Z,getScaleObjectFromProps:F,getScalePropTypesByAttribute:V,getXYPlotValues:X,literalScale:Y}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{entries:()=>c.default,keys:()=>a.default,map:()=>o.default,nest:()=>n.default,set:()=>i.default,values:()=>s.default});var n=r(1526),i=r(1528),o=r(1527),a=r(1529),s=r(1530),c=r(1531)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1527);function i(){var e,t,r,i=[],u=[];function l(r,o,a,s){if(o>=i.length)return null!=e&&r.sort(e),null!=t?t(r):r;for(var c,u,f,p=-1,d=r.length,h=i[o++],m=(0,n.default)(),g=a();++p<d;)(f=m.get(c=h(u=r[p])+""))?f.push(u):m.set(c,[u]);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=u[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,c)},entries:function(e){return f(l(e,0,s,c),0)},key:function(e){return i.push(e),r},sortKeys:function(e){return u[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 c(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(1527);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.")}()),c=s[0],u=s[1],l=Number(u)>13||Number(c)>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:()=>c,linearish:()=>s});var n=r(1546),i=r(1535),o=r(1544),a=r(1545);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,c=a.length-1,u=a[s],l=a[c],f=10;for(l<u&&(o=u,u=l,l=o,o=s,s=c,c=o);f-- >0;){if((o=(0,n.tickIncrement)(u,l,r))===i)return a[s]=u,a[c]=l,t(a);if(o>0)u=Math.floor(u/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,l=Math.floor(l*o)/o}i=o}return e},e}function c(){var e=(0,i.default)();return e.copy=function(){return(0,i.copy)(e,c())},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(1538),i=r(1510),o=r(1521),a=r(1543),s=r(1536),c=r(1537),u=[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=u,m=u,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,c.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:()=>u,bisectLeft:()=>c,bisectRight:()=>s,default:()=>l});var n=r(1539),i=r(1540),o=r(1542);const a=(0,i.default)(n.default),s=a.right,c=a.left,u=(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(1539),i=r(1541);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:()=>u});var n=r(1546),i=r(1547),o=r(1548),a=r(1551),s=r(1560),c=r(1561);function u(e,t,r,u){var l,f=(0,n.tickStep)(e,t,r);switch((u=(0,i.default)(null==u?",f":u)).type){case"s":var p=Math.max(Math.abs(e),Math.abs(t));return null!=u.precision||isNaN(l=(0,o.default)(f,p))||(u.precision=l),(0,a.formatPrefix)(u,p);case"":case"e":case"g":case"p":case"r":null!=u.precision||isNaN(l=(0,s.default)(f,Math.max(Math.abs(e),Math.abs(t))))||(u.precision=l-("e"===u.type));break;case"f":case"%":null!=u.precision||isNaN(l=(0,c.default)(f))||(u.precision=l-2*("%"===u.type))}return(0,a.format)(u)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,tickIncrement:()=>c,tickStep:()=>u});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),c=Math.floor(Math.log10(s)),u=s/Math.pow(10,c),l=u>=n?10:u>=i?5:u>=o?2:1;let f,p,d;return c<0?(d=Math.pow(10,-c)/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,c)*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 c=o-i+1,u=new Array(c);if(n)if(s<0)for(let e=0;e<c;++e)u[e]=(o-e)/-s;else for(let e=0;e<c;++e)u[e]=(o-e)*s;else if(s<0)for(let e=0;e<c;++e)u[e]=(i+e)/-s;else for(let e=0;e<c;++e)u[e]=(i+e)*s;return u}function c(e,t,r){return a(e=+e,t=+t,r=+r)[2]}function u(e,t,r){r=+r;const n=(t=+t)<(e=+e),i=n?c(t,e,r):c(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(1549);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(1550);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(1552);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(1549),i=r(1553),o=r(1554),a=r(1547),s=r(1555),c=r(1556),u=r(1557),l=r(1559),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"):c.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=c.default[w],k=/[defgprs%]/.test(w);function C(e){var r,a,c,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+u.prefixExponent/3]:"")+d+(g&&"("===o?")":""),k)for(r=-1,a=e.length;++r<a;)if(48>(c=e.charCodeAt(r))||c>57){d=(46===c?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],c=0;i>0&&s>0&&(c+s+1>n&&(s=Math.max(1,n-c)),o.push(r.substring(i-=s,i+s)),!((c+=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(1550),i=r(1557),o=r(1558);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(1550);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,c=o.length;return s===c?o:s>c?o+new Array(s-c+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(1550);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(1549);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(1549);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:()=>c});var n=r(1565),i=r(1544),o=r(1563);function a(){var e,t,r=(0,o.default)().unknown(void 0),s=r.domain,c=r.range,u=0,l=1,f=!1,p=0,d=0,h=.5;function m(){var r=s().length,i=l<u,o=i?l:u,a=i?u: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 c(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?([u,l]=e,u=+u,l=+l,m()):[u,l]},r.rangeRound=function(e){return[u,l]=e,u=+u,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(),[u,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 c(){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(1564),i=r(1544);const o=Symbol("implicit");function a(){var e=new n.InternMap,t=[],r=[],s=o;function c(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 c.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 c},c.range=function(e){return arguments.length?(r=Array.from(e),c):r.slice()},c.unknown=function(e){return arguments.length?(s=e,c):s},c.copy=function(){return a(t,r).unknown(s)},i.initRange.apply(c,arguments),c}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InternMap:()=>n,InternSet:()=>i});class n extends Map{constructor(e,t=c){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=c){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 c(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(1546),i=r(1547),o=r(1551),a=r(1567),s=r(1535),c=r(1544);function u(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(u,l),r=t.domain;let s,c,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),c=function(e){return 10===e?d:e===Math.E?Math.exp:t=>Math.pow(e,t)}(m),r()[0]<0?(s=h(s),c=h(c),e(f,p)):e(u,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 u,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(u=1;u<m;++u)if(l=f<0?u/c(-f):u*c(f),!(l<i)){if(l>o)break;h.push(l)}}else for(;f<=p;++f)for(u=m-1;u>=1;--u)if(l=f>0?u/c(-f):u*c(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(c);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/c(Math.round(s(e)));return t*m<m-.5&&(t*=m),t<=n?r(e):""}},t.nice=()=>r((0,a.default)(r(),{floor:e=>c(Math.floor(s(e))),ceil:e=>c(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()),c.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(1569),i=r(1579),o=r(1578),a=r(1577),s=r(1576),c=r(1575),u=r(1574),l=r(1573),f=r(1580),p=r(1535),d=r(1544),h=r(1567);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,c,u){var l=(0,p.default)(),f=l.invert,d=l.domain,v=u(".%L"),b=u(":%S"),_=u("%I:%M"),S=u("%I %p"),E=u("%a %d"),w=u("%b %d"),O=u("%B"),x=u("%Y");function T(e){return(c(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:u(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,c,u))},l}function v(){return d.initRange.apply(y(n.timeTicks,n.timeTickInterval,i.timeYear,o.timeMonth,a.timeSunday,s.timeDay,c.timeHour,u.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(1540),i=r(1546),o=r(1570),a=r(1571),s=r(1573),c=r(1574),u=r(1575),l=r(1576),f=r(1577),p=r(1578),d=r(1579);function h(e,t,r,c,u,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],[u,1,o.durationHour],[u,3,3*o.durationHour],[u,6,6*o.durationHour],[u,12,12*o.durationHour],[c,1,o.durationDay],[c,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 c=Math.abs(r-t)/s,u=(0,n.default)((([,,e])=>e)).right(f,c);if(u===f.length)return e.every((0,i.tickStep)(t/o.durationYear,r/o.durationYear,s));if(0===u)return a.millisecond.every(Math.max((0,i.tickStep)(t,r,s),1));const[l,p]=f[c/f[u-1][2]<f[u][2]/c?u-1:u];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,u.utcHour,c.utcMinute),[y,v]=h(d.timeYear,p.timeMonth,f.timeSunday,l.timeDay,u.timeHour,c.timeMinute)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{durationDay:()=>a,durationHour:()=>o,durationMinute:()=>i,durationMonth:()=>c,durationSecond:()=>n,durationWeek:()=>s,durationYear:()=>u});const n=1e3,i=60*n,o=60*i,a=24*o,s=7*a,c=30*a,u=365*a},(e,t,r)=>{"use strict";r.r(t),r.d(t,{millisecond:()=>i,milliseconds:()=>o});var n=r(1572);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(1572),i=r(1570);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:()=>c});var n=r(1572),i=r(1570);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())),c=s.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeHour:()=>o,timeHours:()=>a,utcHour:()=>s,utcHours:()=>c});var n=r(1572),i=r(1570);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())),c=s.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeDay:()=>o,timeDays:()=>a,unixDay:()=>u,unixDays:()=>l,utcDay:()=>s,utcDays:()=>c});var n=r(1572),i=r(1570);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)),c=s.range,u=(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=u.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:()=>c,timeTuesdays:()=>m,timeWednesday:()=>u,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(1572),i=r(1570);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),c=o(2),u=o(3),l=o(4),f=o(5),p=o(6),d=a.range,h=s.range,m=c.range,g=u.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(1572);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(1572);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:()=>u,timeFormat:()=>i,timeParse:()=>o,utcFormat:()=>a,utcParse:()=>s});var n,i,o,a,s,c=r(1581);function u(e){return n=(0,c.default)(e),i=n.format,o=n.parse,a=n.utcFormat,s=n.utcParse,n}u({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:()=>u});var n=r(1577),i=r(1576),o=r(1579);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 c(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function u(e){var t=e.dateTime,r=e.date,o=e.time,u=e.periods,f=e.days,p=e.shortDays,d=e.months,h=e.shortMonths,m=g(u),Y=y(u),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:G,p:function(e){return u[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:xe,s:Te,S:V,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:ue,g:_e,G:Ee,H:oe,I:ae,j:se,L:ce,m:le,M:fe,p:function(e){return u[+(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,c=0,u=e.length;for(r instanceof Date||(r=new Date(+r));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(c,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),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function Be(e,t){return function(r){var o,u,l=c(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?(u=(o=s(c(l.y,0,1))).getUTCDay(),o=u>4||0===u?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):(u=(o=a(c(l.y,0,1))).getDay(),o=u>4||0===u?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),u="Z"in l?s(c(l.y,0,1)).getUTCDay():a(c(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+7*l.W-(u+5)%7:l.w+7*l.U-(u+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,c=r.length;a<s;){if(n>=c)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 G(e,t){return h(e.getMinutes(),t,2)}function V(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 ce(e,t){return h(e.getUTCMilliseconds(),t,3)}function ue(e,t){return ce(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(1569),i=r(1579),o=r(1578),a=r(1577),s=r(1576),c=r(1575),u=r(1574),l=r(1573),f=r(1580),p=r(1568),d=r(1544);function h(){return d.initRange.apply((0,p.calendar)(n.utcTicks,n.utcTickInterval,i.utcYear,o.utcMonth,a.utcSunday,s.utcDay,c.utcHour,u.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(1494),s=r(1588),c=r(1585),u=r(1483),l=r(1524),f=r(1587);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({},u.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)}(u,e);var t,r,i,o=g(u);function u(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);var r=(t=o.call(this,e))._getAllScaleProps(e);return t.state={scaleProps:r},t}return t=u,(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:c.ANIMATED_SERIES_PROPS,data:w}),n.default.createElement(u,d({},this.props,{animation:null,disableSeries:!0,data:w}))),n.default.createElement(u,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(_),c=t.style||{},u=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),c),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(u),d:a(o)})})))}}])&&h(t.prototype,r),i&&h(t,i),u}(u.default);x.propTypes=b(b(b(b({},u.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:()=>u});var n=r(270),i=r(1483),o=r(1586);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){c(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 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 u(e){return e.type.prototype instanceof i.default}function l(e){return n.default.Children.toArray(e).filter((function(e){return e&&u(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,u=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}(u);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,u=n[f][o][e[m]];if(!u)return n[f][o][e[m]]=(c(a={},h,e[h]),c(a,t,e[t]),a),s({},e);var l=s(s({},e),{},(c(r={},h,u[t]),c(r,t,u[t]+e[t]-(e[h]||0)),r));return n[f][o][e[m]]=(c(i={},h,l[h]),c(i,t,l[t]),i),l}))),e}),[])}function p(e){var t=[],r=function(e){var t={};return e.filter(u).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(u(e)){var c=r[e.type.displayName],l=o.DISCRETE_COLOR_RANGE[n%o.DISCRETE_COLOR_RANGE.length];a=s(s({},c),{},{seriesIndex:n,_colorValue:l,_opacityValue:i}),c.sameTypeIndex++,n++,e.props.cluster&&(a.cluster=e.props.cluster,a.clusters=Array.from(c.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:()=>u,DEFAULT_SIZE:()=>l,DEFAULT_TICK_SIZE:()=>p,DISCRETE_COLOR_RANGE:()=>n,EXTENDED_DISCRETE_COLOR_RANGE:()=>i,OPACITY_RANGE:()=>s,OPACITY_TYPE:()=>c,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],c="literal",u=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(1589),i=r(1590),o=r(1591);function a(e){return e.innerRadius}function s(e){return e.outerRadius}function c(e){return e.startAngle}function u(e){return e.endAngle}function l(e){return e&&e.padAngle}function f(e,t,r,n,o,a,s){var c=e-r,u=t-n,l=(s?a:-a)/(0,i.sqrt)(c*c+u*u),f=l*u,p=-l*c,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=c,h=u,m=l,g=null,y=(0,o.withPath)(v);function v(){var n,o,a=+e.apply(this,arguments),s=+t.apply(this,arguments),c=d.apply(this,arguments)-i.halfPi,u=h.apply(this,arguments)-i.halfPi,l=(0,i.abs)(u-c),v=u>c;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)(c),s*(0,i.sin)(c)),g.arc(0,0,s,c,u,!v),a>i.epsilon&&(g.moveTo(a*(0,i.cos)(u),a*(0,i.sin)(u)),g.arc(0,0,a,u,c,v));else{var b,_,S=c,E=u,w=c,O=u,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=(c+u)/2),(T-=2*D)>i.epsilon?(S+=D*=v?1:-1,E-=D):(T=0,S=E=(c+u)/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,c){var u=r-e,l=n-t,f=s-o,p=c-a,d=p*u-f*l;if(!(d*d<i.epsilon))return[e+(d=(f*(t-a)-p*(e-o))/d)*u,t+d*l]}(N,M,H,q,F,U,L,j)){var z=N-B[0],W=M-B[1],G=F-B[0],V=U-B[1],$=1/(0,i.sin)((0,i.acos)((z*G+W*V)/((0,i.sqrt)(z*z+W*W)*(0,i.sqrt)(G*G+V*V)))/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:()=>c,sqrt:()=>u,tau:()=>d});const n=Math.abs,i=Math.atan2,o=Math.cos,a=Math.max,s=Math.min,c=Math.sin,u=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(1592);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:()=>c,path:()=>u,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 c{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,c=this._y1,u=r-e,l=i-t,f=s-e,p=c-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*u-l*f)>o&&a){let h=r-s,m=i-c,g=u*u+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*u},${this._y1=t+E*l}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,r,s,c,u){if(e=+e,t=+t,u=!!u,(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^u,m=u?s-c:c-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(c)},${this._y1=t+r*Math.sin(c)}`)}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 u(){return new c}function l(e=3){return new c(+e)}u.prototype=c.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(1595),s=r(1594),c=r(1494),u=r(1586),l=r(1585),f=r(1532),p=r(1587),d=r(1483);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 c=a.default();return null!==i&&("string"==typeof i&&s[i]?c=c.curve(s[i]):"function"==typeof i&&(c=c.curve(i))),(c=(c=c.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(c.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:u.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:()=>c.default,link:()=>l.link,linkHorizontal:()=>l.linkHorizontal,linkRadial:()=>l.linkRadial,linkVertical:()=>l.linkVertical,pie:()=>a.default,pointRadial:()=>u.default,radialArea:()=>s.default,radialLine:()=>c.default,stack:()=>H.default,stackOffsetDiverging:()=>z.default,stackOffsetExpand:()=>q.default,stackOffsetNone:()=>W.default,stackOffsetSilhouette:()=>G.default,stackOffsetWiggle:()=>V.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(1588),i=r(1595),o=r(1598),a=r(1600),s=r(1603),c=r(1605),u=r(1606),l=r(1607),f=r(1609),p=r(1610),d=r(1611),h=r(1612),m=r(1613),g=r(1614),y=r(1615),v=r(1616),b=r(1617),_=r(1618),S=r(1619),E=r(1620),w=r(1621),O=r(1622),x=r(1623),T=r(1626),k=r(1625),C=r(1608),I=r(1627),R=r(1628),A=r(1630),P=r(1629),D=r(1631),N=r(1633),M=r(1632),L=r(1634),j=r(1597),B=r(1635),F=r(1636),U=r(1637),H=r(1638),q=r(1641),z=r(1642),W=r(1639),G=r(1643),V=r(1644),$=r(1645),K=r(1646),Y=r(1647),Q=r(1648),X=r(1640),J=r(1649)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(1596),i=r(1589),o=r(1597),a=r(1598),s=r(1591),c=r(1599);function u(e,t,r){var u=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,c,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(c=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(c,o,i),b[o]=+t(c,o,i),d.point(u?+u(c,o,i):v[o],r?+r(c,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?c.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?c.y:(0,i.default)(+r),m.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(+t),u=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?(u=null==e?null:"function"==typeof e?e:(0,i.default)(+e),m):u},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(u).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:()=>c});var n=r(1596),i=r(1589),o=r(1597),a=r(1591),s=r(1599);function c(e,t){var r=(0,i.default)(!0),c=null,u=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==c&&(l=u(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?(u=e,null!=c&&(l=u(c)),p):u},p.context=function(e){return arguments.length?(null==e?c=l=null:l=u(c=e),p):c},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:()=>c});var n=r(1596),i=r(1589),o=r(1601),a=r(1602),s=r(1590);function c(){var e=a.default,t=o.default,r=null,c=(0,i.default)(0),u=(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=+c.apply(this,arguments),b=Math.min(s.tau,Math.max(-s.tau,u.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?(c="function"==typeof e?e:(0,i.default)(+e),f):c},f.endAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.default)(+e),f):u},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(1604),i=r(1595),o=r(1605);function a(){var e=(0,i.default)().curve(n.curveRadialLinear),t=e.curve,r=e.lineX0,a=e.lineX1,s=e.lineY0,c=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)(c())},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(1597).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(1604),i=r(1598);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(1596),i=r(1589),o=r(1608),a=r(1591),s=r(1599);function c(e){return e.source}function u(e){return e.target}function l(e){let t=c,r=u,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),c=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]=c,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:()=>c,bumpX:()=>a,bumpY:()=>s});var n=r(1606);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 c(e){return new o(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_,symbolsFill:()=>v,symbolsStroke:()=>b});var n=r(1589),i=r(1591),o=r(1610),a=r(1611),s=r(1612),c=r(1613),u=r(1614),l=r(1615),f=r(1616),p=r(1617),d=r(1618),h=r(1619),m=r(1620),g=r(1621),y=r(1622);const v=[a.default,s.default,c.default,f.default,d.default,h.default,g.default],b=[a.default,l.default,y.default,m.default,o.default,p.default,u.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(1590);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(1590);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(1590);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(1590);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(1590);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(1590);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(1590);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(1590);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(1590);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),c=(0,n.sin)(o);e.lineTo(c*r,-a*r),e.lineTo(a*i-c*s,c*i+a*s)}e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(1590);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(1590);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:()=>c});var n=r(1590);const i=-.5,o=(0,n.sqrt)(3)/2,a=1/(0,n.sqrt)(12),s=3*(a/2+1),c={draw(e,t){const r=(0,n.sqrt)(t/s),c=r/2,u=r*a,l=c,f=r*a+r,p=-l,d=f;e.moveTo(c,u),e.lineTo(l,f),e.lineTo(p,d),e.lineTo(i*c-o*u,o*c+i*u),e.lineTo(i*l-o*f,o*l+i*f),e.lineTo(i*p-o*d,o*p+i*d),e.lineTo(i*c+o*u,i*u-o*c),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(1590);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(1624),i=r(1625);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(1625);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(1625);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,c=-1;++c<=r;)n=c/r,this._basis.point(this._beta*e[c]+(1-this._beta)*(i+n*a),this._beta*t[c]+(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(1624),i=r(1629);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(1629);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(1628),i=r(1624),o=r(1632);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(1590),i=r(1629);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 c=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*c-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,o=(o*c-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}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(1630),i=r(1632);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(1624);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),c=(a*o+s*i)/(i+o);return(n(a)+n(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(c))||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 c(e){this._context=new u(e)}function u(e){this._context=e}function l(e){return new s(e)}function f(e){return new c(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}}},(c.prototype=Object.create(s.prototype)).point=function(e,t){s.prototype.point.call(this,t,e)},u.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:()=>u});var n=r(1596),i=r(1589),o=r(1639),a=r(1640);function s(e,t){return e[t]}function c(e){const t=[];return t.key=e,t}function u(){var e=(0,i.default)([]),t=a.default,r=o.default,u=s;function l(i){var o,a,s=Array.from(e.apply(this,arguments),c),l=s.length,f=-1;for(const e of i)for(o=0,++f;o<l;++o)(s[o][f]=[0,+u(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?(u="function"==typeof e?e:(0,i.default)(+e),l):u},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(1639);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,c=0,u=e[t[0]].length;c<u;++c)for(o=a=0,r=0;r<s;++r)(i=(n=e[t[r]][c])[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(1639);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,c=0;s<r;++s)c+=e[s][i][1]||0;o[i][1]+=o[i][0]=-c/2}(0,n.default)(e,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1639);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 c=0,u=0,l=0;c<o;++c){for(var f=e[t[c]],p=f[s][1]||0,d=(p-(f[s-1][1]||0))/2,h=0;h<c;++h){var m=e[t[h]];d+=(m[s][1]||0)-(m[s-1][1]||0)}u+=p,l+=d*p}r[s-1][1]+=r[s-1][0]=a,u&&(a-=l/u)}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(1640);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(1640);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(1646);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(1645),i=r(1646);function o(e){var t,r,o=e.length,a=e.map(i.sum),s=(0,n.default)(e),c=0,u=0,l=[],f=[];for(t=0;t<o;++t)r=s[t],c<u?(c+=a[r],l.push(r)):(u+=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(1640);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(1587);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 c(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}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 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,u=e.innerHeight,l=e.style,g=e.className,y=u+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:c(c({},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:c(c({},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:c(c({},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:c(c({},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(1587);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 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 u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(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&&u(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,c=e.marginTop,u=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?c+i:0))*e.yPercent+(l?c:0);return n.default.createElement("g",{transform:"translate(".concat(d,", ").concat(h,")"),className:(0,a.getCombinedClassName)("rv-xy-plot__axis__title",u)},n.default.createElement("text",f,p))}}])&&c(t.prototype,r),i&&c(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(1524),s=r(1494),c=r(1653);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 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"===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 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)}(u,e);var t,r,i,o=g(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:"_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,c.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(u,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,c.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),u}(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:()=>u,generatePoints:()=>l,getAxisAngle:()=>f,getTickValues:()=>c,getTicksTotalFromSize:()=>s});var n=r(1565),i=r(1534),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 c(e,t,r){return r||(e.ticks?e.ticks(t):e.domain())}function u(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=u(t,r),c=s.left,l=s.right,f=s.slope,p=s.offset,d=(l-c)/o,h=(0,i.default)().domain([c,l]).range(a),m=t.x===r.x;return{slope:m?1/0:f,points:(0,n.default)(c,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: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(1655),s=r(1668),c=r(1534),u=r(1483),l=r(1494),f=r(1585),p=r(1587),d=r(1586);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)}(u,e);var t,r,i,o=S(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:"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(u,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,c.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),u}(u.default);w.propTypes=g(g({},u.default.propTypes),{},{animation:o().bool,bandwidth:o().number,className:o().string,marginLeft:o().number,marginTop:o().number,style:o().object}),w.defaultProps=g(g({},u.default.defaultProps),{},{bandwidth:40,style:{}});const O=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(1666),i=r(1546),o=r(1667),a=r(1656),s=r(1657),c=r(1658);function u(e){return e[0]}function l(e){return e[1]}function f(){return 1}function p(){var e=u,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 c=(e(n,++s,i)+g)*a,u=(t(n,s,i)+g)*a,l=+r(n,s,i);if(l&&c>=0&&c<y&&u>=0&&u<v){var f=Math.floor(c),p=Math.floor(u),d=c-f-.5,b=u-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,c.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,c.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(1663),i=r(1583),o=r(1546),a=r(1665),s=r(1656),c=r(1659),u=r(1660),l=r(1657),f=r(1661),p=r(1662),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(c.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,c,u,l,f=new Array,p=new Array;o=a=-1,c=g(r[0],n),d[c<<1].forEach(h);for(;++o<e-1;)s=c,c=g(r[o+1],n),d[s|c<<1].forEach(h);d[c|0].forEach(h);for(;++a<t-1;){for(o=-1,c=g(r[a*e+e],n),u=g(r[a*e],n),d[c<<1|u<<2].forEach(h);++o<e-1;)s=c,c=g(r[a*e+e+o+1],n),l=u,u=g(r[a*e+o+1],n),d[s|c<<1|u<<2|l<<3].forEach(h);d[c|u<<3].forEach(h)}o=-1,u=r[a*e]>=n,d[u<<2].forEach(h);for(;++o<e-1;)l=u,u=g(r[a*e+o+1],n),d[u<<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],c=S(n),u=S(s);(t=p[c])?(r=f[u])?(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=u]=t):(t=f[u])?(r=p[c])?(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=c]=t):f[c]=p[u]={start:c,end:u,ring:[n,s]}}d[u<<3].forEach(h)}(r,i,(function(e){h(e,r,i),(0,u.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,c=0|a,u=y(n[c*e+s]);o>0&&o<e&&s===o&&(r[0]=v(o,y(n[c*e+s-1]),u,i)),a>0&&a<t&&c===a&&(r[1]=v(a,y(n[(c-1)*e+s]),u,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,c=s-1;a<s;c=a++){var u=e[a],l=u[0],f=u[1],p=e[c],d=p[0],h=p[1];if(o(u,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(1664);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(1546);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=u(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(u),o=a((function(e){const t=u(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 u=r&&e(r),l=n&&e(n),f=i.slice();return u&&l?(s(u,f,i,o,a),s(u,i,f,o,a),s(u,f,i,o,a),c(l,i,f,o,a),c(l,f,i,o,a),c(l,i,f,o,a)):u?(s(u,i,f,o,a),s(u,f,i,o,a),s(u,i,f,o,a)):l&&(c(l,i,f,o,a),c(l,f,i,o,a),c(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 c(e,t,r,n,i){for(let o=0,a=n*i;o<n;++o)e(t,r,o,o+a,n)}function u(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 c=a*e;for(let e=i,t=i+c;e<t;e+=a)s+=n[Math.min(o,e)];for(let e=i,u=o;e<=u;e+=a)s+=n[Math.min(o,e+c)],r[e]=s/t,s-=n[Math.max(i,e-c)]}}(e);const r=e-t,n=2*e+1;return(e,i,o,a,s)=>{if(!((a-=s)>=o))return;let c=t*i[o];const u=s*t,l=u+s;for(let e=o,t=o+u;e<t;e+=s)c+=i[Math.min(a,e)];for(let t=o,f=a;t<=f;t+=s)c+=i[Math.min(a,t+u)],e[t]=(c+r*(i[Math.max(o,t-l)]+i[Math.min(a,t+l)]))/n,c-=i[Math.max(o,t-u)]}}},(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(1669),i=r(1670),o=r(1671),a=r(1675),s=r(1676),c=r(1677),u=r(1678),l=r(1679);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(u.default)),u.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 c.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:()=>c});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 c(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(1674),c=r(1672),u=r(1673),l=new s.Adder,f=new s.Adder,p={point:u.default,lineStart:u.default,lineEnd:u.default,polygonStart:function(){p.lineStart=d,p.lineEnd=g},polygonEnd:function(){p.lineStart=p.lineEnd=p.point=u.default,l.add((0,c.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:()=>u,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:()=>c});var n=1e-6,i=1e-12,o=Math.PI,a=o/2,s=o/4,c=2*o,u=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:()=>c});var n=r(1673),i=1/0,o=i,a=-i,s=a;const c={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(1672),c=0,u=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?[c/l,u/l]:[NaN,NaN];return c=u=l=f=p=d=h=m=g=0,e}};function v(e,t){c+=e,u+=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(1672),i=r(1673);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,c=r(1674),u=r(1672),l=r(1673),f=new c.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 c.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,u.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?c:function(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return c;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 c(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(1533),s=r(1524),c=r(1587);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 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)}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)}(u,e);var t,r,i,a=m(u);function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.apply(this,arguments)}return t=u,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,u=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>u/2?"left":"right":m);return n.default.createElement("div",{className:(0,c.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),u}(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(1483),s=r(1494),c=r(1585),u=r(1587);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:c.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,c=y(y({},o),t.style||{}),u=t.customComponent;return u||"string"!=typeof r?u?"string"==typeof u?E(u||r,s,c):u(t,n,c,i):r(t,n,c,i):E(r,s||a,c)}({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,u.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(1551),o=r(272),a=r.n(o),s=r(1483),c=r(1683),u=r(1494),l=r(1587);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(u.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,c.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:()=>u});var n=r(270),i=r(1653);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){c(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 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 u(e){var t=e.axisDomain,r=e.numberOfTicks,a=e.axisStart,c=e.axisEnd,u=e.tickValue,l=e.tickSize,f=e.style,p=(0,i.generatePoints)({axisStart:a,axisEnd:c,numberOfTicks:r,axisDomain:t}).points,d=(0,i.getAxisAngle)(a,c)+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"}),u(e.text)))}))}},(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(1587);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 c=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(1524),s=r(1587),c=r(1494),u=r(1653);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=u.DIRECTION.VERTICAL,_=u.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:c.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,u.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(c.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,u.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(1494),o=r(1585),a=r(1587),s=r(1483);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 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 l(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){f(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 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"===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=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,s,c=m(u);function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),c.apply(this,arguments)}return t=u,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,c=t.data,f=t.marginLeft,d=t.marginTop,h=t.style;if(!c)return null;if(r)return n.default.createElement(i.default,p({},this.props,{animatedProps:o.ANIMATED_SERIES_PROPS}),n.default.createElement(u,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,")")},c.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),u}(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(1494),s=r(1688),c=r(1534),u=r(1585),l=r(1587),f=r(1586),p=r(1483);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:u.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,c.default)().domain(I).range(o),A=(0,c.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(1689)},(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,c=0,u=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(c=+f.call(null,s=e[n],n,e))&&!isNaN(u=+p.call(null,s,n,e))){var s,c,u,l=Math.round(u/=r),d=Math.round(c=c/t-(1&l)/2),h=u-l;if(3*Math.abs(h)>1){var m=c-d,g=d+(c<d?-1:1)/2,y=l+(u<l?-1:1),v=c-g,b=u-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(c/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<u+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=c=0,u=+e[0],l=+e[1],d):[u-s,l-c]},d.extent=function(e){return arguments.length?(s=+e[0][0],c=+e[0][1],u=+e[1][0],l=+e[1][1],d):[[s,c],[u,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(1483),s=r(1524),c=r(1587);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 l(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){y(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 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,c=o.highlightWidth,u=o.highlightHeight,l=o.innerWidth,f=o.innerHeight,p=o.marginLeft,d=o.marginRight,h=o.marginBottom,m=o.marginTop,g=c||l+p+d,y=u||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,c=o.dragArea;return{bottom:c.bottom+(i?t-s:0),left:c.left+(n?e-a:0),right:c.right+(n?e-a:0),top:c.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,c=s.left,u=s.right,l=s.top,f=s.bottom,p=a&&(e<c||e>u),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"),c=(0,s.getAttributeScale)(this.props,"y");return r&&n?{bottom:c.invert(e.bottom),left:a.invert(e.left-i),right:a.invert(e.right-i),top:c.invert(e.top)}:n?{bottom:c.invert(e.bottom-o),top:c.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),c=s.xLoc,u=s.yLoc,l=function(e,r){var n={bottom:u,left:c,right:c,top:u};t.setState({dragging:e,brushArea:a&&!r?a:n,brushing:!e,startLocX:c,startLocY:u})},f=this._clickedOutsideDrag(c,u);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,c=Math.abs(n.right-n.left)<5,u=Math.abs(n.top-n.bottom)<5||c;this.setState({brushing:!1,dragging:!1,brushArea:s?n:{top:0,right:0,bottom:0,left:0},startLocX:0,startLocY:0,dragArea:s&&!u&&n}),t&&o&&o(u?null:this._convertAreaToCoordinates(n)),s&&a&&a(u?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,c=v(e.nativeEvent),u=c.xLoc,l=c.yLoc;if(a){var f=this._getDrawArea(u,l);this.setState({brushArea:f}),r&&r(this._convertAreaToCoordinates(f))}if(i&&s){var p=this._getDragArea(u,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,u=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;u&&(w=(0,s.getAttributeScale)(this.props,"x")(u));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,c.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(1533),s=r(1524),c=r(1587);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 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={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)}(u,e);var t,r,i,a=m(u);function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.apply(this,arguments)}return t=u,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,c=a.vertical,u=o?this._mapOrientationToAlign(o):{horizontal:s,vertical:c};return s===y.AUTO&&(u.horizontal=e>n/2?y.LEFT:y.RIGHT),c===y.AUTO&&(u.vertical=t>i/2?y.TOP:y.BOTTOM),u}},{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(),u=s.position,l=s.positionClassName;return n.default.createElement("div",{className:(0,c.getCombinedClassName)("rv-hint",l,a),style:f(f(f({},o),u),{},{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),u}(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(1483),o=r(1693);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 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 u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(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&&u(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"}))}}])&&c(t.prototype,r),i&&c(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(1494),s=r(1585),c=r(1587),u=r(1483);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({},u.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,u=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(u),x=this._getAttributeFunctor(u),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,c.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,c=a-A+s*w+w,f=(d(i={style:p({opacity:R&&R(t),stroke:I&&I(t),fill:C&&C(t)},y)},u,c),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}(u.default);b.displayName="BarSeries";const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(1483),i=r(1695);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){c(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 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 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 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}}])&&u(t.prototype,r),n&&u(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(1516),a=r(1586),s=r(1524),c=r(1585),u=r(1483);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)}(u,e);var t,r,n,i=g(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.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,u),m=(0,s.getAttr0Functor)(e,u),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,c.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)),c=(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"===u?O:S,T="y"===u?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(c.r,", ").concat(c.g,", ").concat(c.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),u}(u.default);v.displayName="BarSeriesCanvas",v.defaultProps=f(f({},u.default.defaultProps),{},{linePosAttr:i().string.isRequired,valuePosAttr:i().string.isRequired,lineSizeAttr:i().string.isRequired,valueSizeAttr:i().string.isRequired}),v.propTypes=f({},u.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(1653),s=r(1685);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 u(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}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=u(u({},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(1483),o=r(1698);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 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 u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(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&&u(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"}))}}])&&c(t.prototype,r),i&&c(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(1494),s=r(1585),c=r(1587),u=r(1483);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({},u.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,u=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(u),S=this._getAttr0Functor(u),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,c.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)},u,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}(u.default);b.displayName="RectSeries";const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(1483),i=r(1700);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){c(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 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 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 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}}])&&u(t.prototype,r),n&&u(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(1516),a=r(1586),s=r(1524),c=r(1483);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 l(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){f(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 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)}(c,e);var t,r,n,i=m(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.marginLeft,u=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(_+c,S+u,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),c}(c.default);y.displayName="RectSeriesCanvas",y.defaultProps=l(l({},c.default.defaultProps),{},{linePosAttr:i().string.isRequired,valuePosAttr:i().string.isRequired,lineSizeAttr:i().string.isRequired,valueSizeAttr:i().string.isRequired}),y.propTypes=l({},c.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(1483),s=r(1494),c=r(1585),u=r(1587);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:c.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,u.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,c=r.yOffset;if(!d(r))return t;var u=x(r),l=T(r),m=u<(S[1]-S[0])/2,g=l<Math.abs(E[1]-E[0])/2,v=u+(i&&m?-1:1)*(s||0),k=l+(i&&g?-1:1)*(c||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(1483),s=r(1703),c=r(1704);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 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"===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 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(c.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(1598),s=r(1594),c=r(1494),u=r(1586),l=r(1585),f=r(1532),p=r(1587),d=r(1483);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(c.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:u.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(1494),s=r(1585),c=r(1532),u=r(1587),l=r(1586),f=r(1483);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,c=o.opacity,u=o.size,f=o.stroke,p=o.x,d=o.y,h={r:u?u(e):l.DEFAULT_SIZE,cx:p(e),cy:d(e),style:m({opacity:c?c(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,c.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,u.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(1483),i=r(1706),o=r(1707);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 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 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 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"===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 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}}])&&u(t.prototype,r),n&&u(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(1516),i=r(1586),o=r(1524),a=r(1483);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 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 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 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"===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 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)}(c,e);var t,r,a,s=p(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.apply(this,arguments)}return t=c,a=[{key:"renderLayer",value:function(e,t){var r=e.data,a=e.marginLeft,s=e.marginTop,c=(0,o.getAttributeFunctor)(e,"x"),u=(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(c(e)+a,u(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),c}(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){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}({},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(1516),a=r(1598),s=r(1594),c=r(270),u=r(1586),l=r(1524),f=r(1483);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,c=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:u.DEFAULT_OPACITY,b=a.default().x((function(e){return d(e)+i})).y((function(e){return h(e)+c}));"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 c.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(1494),o=r(1585),a=r(1587),s=r(1483);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 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 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"===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 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,c,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,c=[{key:"propTypes",get:function(){return function(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}({},s.default.propTypes)}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,s=t.color,c=t.className,u=t.data,l=t.marginLeft,p=t.marginTop,d=t.style;if(!u)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",c),onMouseOver:function(t){return e._seriesMouseOverHandler(u,t)},onMouseOut:function(t){return e._seriesMouseOutHandler(u,t)},onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,fill:s||"#12939A",style:d,d:g(u,h,m),transform:"translate(".concat(l,",").concat(p,")")})}}])&&p(t.prototype,r),c&&p(t,c),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(1483),o=r(1693);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 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 u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(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&&u(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"}))}}])&&c(t.prototype,r),i&&c(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(1483),i=r(1695);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){c(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 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 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 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}}])&&u(t.prototype,r),n&&u(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(1685);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 c(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}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 l=r(1653).DIRECTION.VERTICAL,f=c(c({},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(1483),o=r(1698);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 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 u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(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&&u(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"}))}}])&&c(t.prototype,r),i&&c(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(1483),i=r(1700);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){c(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 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 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 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}}])&&u(t.prototype,r),n&&u(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(1484),s=r(1524),c=r(1587);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 l(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){f(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 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,u,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,u=t.marginTop,[[o,u],[r+o,i+u]])).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,c.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(1494),s=r(1585),c=r(1587),u=r(1586),l=r(1483);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,c.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,c=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):u.DEFAULT_OPACITY,stroke:s&&s(t),strokeWidth:c||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(1717),s=r.n(a),c=r(1587),u=r(1524),l=r(1585),f=r(1734),p=r(1494),d=r(1586),h=r(1735);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),c=n.default.Children.toArray(this.props.children),p=(0,l.getSeriesPropsFromChildren)(c),d=(0,u.getXYPlotValues)(t,c);return c.map((function(t,i){var c=null;if(p[i]){var u=p[i].seriesIndex;c={data:a[u]}}return n.default.cloneElement(t,x(x(x(x(x(x(x({},s),{},{animation:r},c&&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]),c))}))}},{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,u.getOptionalScaleProps)(t),s=(0,u.extractScalePropsFromProps)(t,k),c=(0,u.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),c),{},{_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,c=r.innerHeight,u=r.innerWidth;return n.default.createElement(h.default,{innerHeight:c,innerWidth:u,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,c.getCombinedClassName)("rv-xy-plot",t),style:x({width:"".concat(o,"px"),height:"".concat(a,"px")},this.props.style)});var u=this._getClonedChildComponents();return n.default.createElement("div",{style:{width:"".concat(o,"px"),height:"".concat(a,"px")},className:(0,c.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},u.filter((function(e){return e&&e.type.requiresSVG}))),this.renderCanvasComponents(u),u.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(1718),i=r(161),o=r(1721),a=r(1726),s=r(1727),c=r(1733),u=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(c(e)&&c(t))return u.call(e)===u.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(1719),o=Object.keys,a=o?function(e){return o(e)}:r(1720),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(1719),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),u=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=u&&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(c)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(1722),i=r(178),o=r(1723),a=r(1724),s=r(1725),c=i(a(),Object);n(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},(e,t,r)=>{"use strict";var n=r(1718),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=r(180),c=r(183)(),u=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;c?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)u(e,o[s],t[o[s]],r[o[s]])};l.supportsDescriptors=!!c,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(1723);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},(e,t,r)=>{"use strict";var n=r(1724),i=r(1722);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),c=r(162)();if(c){n=s("Object.prototype.hasOwnProperty"),i=s("RegExp.prototype.exec"),o={};var u=function(){throw o};a={toString:u,valueOf:u},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=u)}var l=s("Object.prototype.toString"),f=Object.getOwnPropertyDescriptor;e.exports=c?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(1722),i=r(178),o=r(1728),a=r(1731),s=r(1732),c=i(a());n(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},(e,t,r)=>{"use strict";var n=r(1729),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(1730).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(1728),i=r(1722).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(1722).supportsDescriptors,i=r(1731),o=Object.getOwnPropertyDescriptor,a=Object.defineProperty,s=TypeError,c=Object.getPrototypeOf,u=/a/;e.exports=function(){if(!n||!c)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=i(),t=c(u),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:()=>c,getRadialLayoutMargin:()=>u});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 c(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,c=void 0===s?0:s,u=o.top,l=void 0===u?0:u,f=o.right,p=void 0===f?0:f,d=o.bottom,h=void 0===d?0:d;return{marginLeft:c,marginTop:l,marginRight:p,marginBottom:h,innerHeight:i-h-l,innerWidth:n-c-p}}function u(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(1510),s=r(1494),c=r(1585);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 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"===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 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)}(u,e);var t,r,i,o=p(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,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,u=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+u,_=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:c.ANIMATED_SERIES_PROPS})),o=n?(0,s.extractAnimatedPropValues)(m(m({},n),{},{animatedProps:c.ANIMATED_SERIES_PROPS})):null,u=(0,a.default)(i,o);return{renderLayer:e.type.renderLayer,newProps:e.props,animation:e.props.animation,interpolator:u}})));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,c=t.marginTop,u=t.pixelRatio,l=r+c+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*u,width:f*u,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),u}(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(1653),s=r(1737);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 u(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}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=u(u({},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(1494),s=r(1653),c=r(1524),u=r(1587),l=r(1738),f=r(1739),p=r(1740);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,c=e.orientation;return c===T?{tickTotal:(0,s.getTicksTotalFromSize)(t),top:r+n,left:o,width:t,height:i}:c===x?{tickTotal:(0,s.getTicksTotalFromSize)(t),top:0,left:o,width:t,height:n}:c===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,c.getAttributeScale)(r,i);R?P=N(0):D=b+N(0)}return n.default.createElement("g",{transform:"translate(".concat(P,",").concat(D,")"),className:(0,u.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(1653);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 c=a.ORIENTATION.LEFT,u=a.ORIENTATION.RIGHT,l=a.ORIENTATION.TOP,f=a.ORIENTATION.BOTTOM,p={height:o().number.isRequired,style:o().object,orientation:o().oneOf([c,u,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===c?{x1:i,x2:i,y1:0,y2:o}:r===u?{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(1653),s=r(1524);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 u(){return u=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},u.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"===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=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)}(c,e);var t,r,i,o=m(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:"_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,c=void 0===s?i:s;e=r===y||r===_&&n?"end":r===v||r===b&&n?"start":"middle";var u=this._isAxisVertical(),l=(this._areTicksWrapped()?-1:1)*(a+c),f=(u?"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(),c=s?"y":"x",u=s?"x":"y",l=this._areTicksWrapped()?-1:1;return p(e={},"".concat(c,"1"),0),p(e,"".concat(c,"2"),0),p(e,"".concat(u,"1"),-l*a),p(e,"".concat(u,"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,c=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",u({key:t},S(r,0),{className:"rv-xy-plot__axis__tick",style:c}),n.default.createElement("line",u({},E,{className:"rv-xy-plot__axis__tick__line",style:f(f({},c),c.line)})),a?n.default.cloneElement(o,s?f(f({},w),{},{containerWidth:i,tickCount:v.length}):void 0):n.default.createElement("text",u({},w,{className:"rv-xy-plot__axis__tick__text",style:f(f({},c),c.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),c}(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(1653);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 c(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}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 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 u(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"}}),u(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"}}),u(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"}}),u(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:c({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(1653),s=r(1737);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 u(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}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=u(u({},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(1586),s=r(1587),c={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},u={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,c=e.endTitle,u=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:u}},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"},c),a?n.default.createElement("span",{className:"rv-legend-titles__center"},a):null))}l.displayName="ContinuousColorLegend",l.propTypes=c,l.defaultProps=u;const f=l},(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(1587),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 c(e){for(var t=e.startTitle,r=e.endTitle,i=e.startSize,o=e.endSize,s=e.circlesTotal,c=e.height,u=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:u,height:c}},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)))}c.displayName="ContinuousSizeLegend",c.propTypes=s,c.defaultProps={circlesTotal:10,className:"",endSize:20,startSize:2};const u=c},(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(1745),s=r(1586),c=r(1587);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 l(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){f(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 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,u=e.onItemMouseEnter,f=e.onItemMouseLeave,p=e.orientation,d=e.style,h=e.width;return n.default.createElement("div",{className:(0,c.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:u?function(r){return u(e,t,r)}:null,onMouseLeave:u?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){c(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 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 u={dashed:"6, 2",solid:null};function l(e){var t=e.color,r=e.strokeDasharray,i=e.strokeStyle,o=e.strokeWidth,a=e.disabled,c=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"),c&&(h+=" clickable");var m=u[i]||r;return n.default.createElement("div",{className:h,onClick:c,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(u))},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(1744),s=r(1587);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 u(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}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=u(u({},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,c=e.onItemClick,u=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:c,onItemMouseEnter:u,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(1534),s=r(1551),c=r(1494),u=r(1716),l=r(1586),f=r(1734),p=r(1587),d=r(1703),h=r(1702),m=r(1701),g=r(1682),y=r(1690);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,c=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,c=e.style,u=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({},c.lines),e.style||{})};return s||(g.style=x(x({},g.style),c.deselectedLineStyle)),u?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(u.default,{height:_,width:P,margin:E,dontCheckIfEmpty:!0,className:(0,p.getCombinedClassName)(s,k),onMouseLeave:w,onMouseEnter:O,xType:"ordinal",yDomain:[0,1]},c,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:c.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(1534),s=r(1551),c=r(1494),u=r(1716),l=r(1586),f=r(1734),p=r(1587),d=r(1704),h=r(1708),m=r(1701),g=r(1682);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,c=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,c){var u=c/r.length*Math.PI*2+i,l=e.domain;return n.default.createElement(g.default,{animation:t,key:"".concat(c,"-axis"),axisStart:{x:0,y:0},axisEnd:{x:E(Math.cos(u)),y:E(Math.sin(u))},axisDomain:l,numberOfTicks:5,tickValue:function(t){return s&&t===l[0]?"":e.tickFormat?e.tickFormat(t):a(t)},style:o.axes})}))}({domains:c,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,c=e.startingAngle,u=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+c,u=Math.max(f[n](a),0);return{x:u*Math.cos(s),y:u*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:u,onSeriesMouseOut:l})}))}({animation:t,colorRange:o,domains:c,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,c=e.onValueMouseOver,u=e.onValueMouseOut;if(c){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],c=n/r.length*Math.PI*2+o,u=Math.max(l[i](s),0);return{x:u*Math.cos(c),y:u*Math.sin(c),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:c,onValueMouseOut:u})}))}}({animation:t,colorRange:o,domains:c,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:c,style:x.labels,startingAngle:O})});return n.default.createElement(u.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:c.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(1600),s=r(1494),c=r(1584),u=r(1701),l=r(1716),f=r(1586),p=r(1734),d=r(1585),h=r(1587);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,c=(o+a)/2*-1+Math.PI/2,u=[];return n(t)&&u.push({angle:c,radius:s*r,label:n(t)}),i(t)&&u.push({angle:c,radius:s*r,label:i(t),style:{fontSize:10},yOffset:12}),e.concat(u)}),[])}(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(c.default,m({},M,{getAngle:function(e){return e.angle}})),R&&!w&&n.default.createElement(u.default,{data:B,style:x}),i,R&&w&&n.default.createElement(u.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(1751),s=r(1716),c=r(1734),u=r(1587),l=r(1712),f=r(1701),p=r(1714),d=r(1586),h=r(1765);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,u.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,c.getInnerDimensions)({margin:k,height:y,width:B},w),q=H.marginLeft,z=H.marginTop,W=H.marginRight,G=H.marginBottom,V=(0,a.sankey)().extent([[q,z],[B-W,y-G-z]]).nodeWidth(R).nodePadding(C).nodes(F).links(U).nodeAlign(E[t]).iterations(O);V(F);var $=V.nodeWidth(),K=(0,a.sankeyLinkHorizontal)();return n.default.createElement(s.default,_({},e,{yType:"literal",className:(0,u.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,u.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+G]],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:c.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(1752),i=r(1753),o=r(1758)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(1756),i=r(1757),o=r(1754),a=r(1753),s=r(1755);function c(e,t){return l(e.source,t.source)||e.index-t.index}function u(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(u);for(const{target:{targetLinks:t}}of e)t.sort(c)}}function M(e){if(void 0===r)for(const{sourceLinks:t,targetLinks:r}of e)t.sort(u),r.sort(c)}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:()=>c,justify:()=>s,left:()=>o,right:()=>a});var n=r(1754);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 c(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(1759);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(1764),i=r(1760),o=r(1761),a=r(1762),s=r(1763);function c(e){return e.source}function u(e){return e.target}function l(e){var t=c,r=u,s=a.x,l=a.y,f=null;function p(){var o,a=i.slice.call(arguments),c=t.apply(this,a),u=r.apply(this,a);if(f||(f=o=(0,n.default)()),e(f,+s.apply(this,(a[0]=c,a)),+l.apply(this,a),+s.apply(this,(a[0]=u,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),c=(0,s.default)(n,r),u=(0,s.default)(n,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],c[0],c[1],u[0],u[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:()=>u});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 c(){return new s}s.prototype=c.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,c=this._y1,u=r-e,l=i-t,f=s-e,p=c-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*u-l*f)>o&&a){var h=r-s,m=i-c,g=u*u+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*u)+","+(this._y1=t+E*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,r,s,c,u){e=+e,t=+t,u=!!u;var l=(r=+r)*Math.cos(s),f=r*Math.sin(s),p=e+l,d=t+f,h=1^u,m=u?s-c:c-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(c))+","+(this._y1=t+r*Math.sin(c))))},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 u=c},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(270),i=r(1586),o=r(1494),a=r(1585);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 c=i.DISCRETE_COLOR_RANGE[1];function u(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(u,s({},e,{animation:null}))):n.default.createElement("path",s({d:r},d,{className:"rv-sankey__link",opacity:Number.isFinite(l)?l:.7,stroke:f||c,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"}))}u.displayName="SankeyLink",u.requiresSVG=!0;const l=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(1767),s=r(1770),c=r(1534),u=r(1784),l=r(1494),f=r(1701),p=r(1584),d=r(1716),h=r(1585),m=r(1734),g=r(1587);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,c.default)().range([0,2*Math.PI]),h=(0,u.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(1768),i=r(1769);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,c=n.y1-r;s<o&&(o=s=(o+s)/2),c<a&&(a=c=(a+c)/2),n.x0=o,n.y0=a,n.x1=s,n.y1=c}}(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,c=a.length,u=e.value&&(n-t)/e.value;++s<c;)(o=a[s]).y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*u}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(1771),i=r(1772),o=r(1773),a=r(1774),s=r(1775),c=r(1776),u=r(1777),l=r(1778),f=r(1779),p=r(1780),d=r(1781),h=r(1782),m=r(1783);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),c=[s];r=c.pop();)if((i=t(r.data))&&(a=(i=Array.from(i)).length))for(r.children=i,o=a-1;o>=0;--o)c.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:c.default,sort:u.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=[],c=-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,++c,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:()=>u,sqrt:()=>f});var n=r(1534),i=r(1535),o=r(1544);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 c(e){return e<0?-e*e:e*e}function u(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,c):e(a(r),a(1/r)):r},(0,n.linearish)(t)}function l(){var e=u((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(1789),s=r(1791),c=r(1790),u=r(1769),l=r(1792),f=r(1793),p=r(1767),d=r(1770),h=r(1794),m=r(1801),g=r(1586),y=r(1494),v=r(1524),b=r(1734),_=r(1786),S=r(1788);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:c.default,dice:u.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,c=e.getSize;if(!i)return[];if("partition"===o||"partition-pivot"===o){var u=(0,p.default)().size("partition-pivot"===o?[n,t]:[t,n]).padding(a)((0,d.default)(i).sum(c).sort((function(e,t){return s(e,t,c)}))).descendants();return"partition-pivot"===o?u.map((function(e){return O(O({},e),{},{x0:e.y0,x1:e.y1,y0:e.x0,y1:e.x1})})):u}if("circlePack"===o)return(0,h.default)().size([t,n]).padding(a)((0,d.default)(i).sum(c).sort((function(e,t){return s(e,t,c)}))).descendants();var l=T[o];return(0,m.default)(l).tile(l).size([t,n]).padding(a)((0,d.default)(i).sum(c).sort((function(e,t){return s(e,t,c)}))).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(1787),o=r(1587);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 c(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}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 l(e){var t=e.animation,r=e.className,s=e.height,u=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(u&&!o)return null;var s=c(c({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(1494),s=r(1524);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 u(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}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,c=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=u(u({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 c(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(1716),o=r(1708),a=r(1704),s=r(1701),c=r(1587);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 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"===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 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,u,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,c=e.onLeafClick,u=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:u.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:c,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,c=e.onLeafClick,u=e.scales,l=e.style,f=u.color;return i.reduce((function(e,i,u){if(!u&&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:u,color:f(i),type:"literal",onSeriesMouseEnter:a,onSeriesMouseLeave:s,onSeriesClick:c,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,u=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,c.getCombinedClassName)("rv-treemap",f&&"rv-treemap-circle-paked",t),width:u,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),u&&h(t,u),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(1769),i=r(1790),o=(1+Math.sqrt(5))/2;function a(e,t,r,o,a,s){for(var c,u,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+=u=_[E].value,u<d&&(d=u),u>h&&(h=u),v=p*p*y,(m=Math.max(h/v,v/d))>g){p-=u;break}g=m}b.push(c={value:p,dice:l<f,children:_.slice(S,E)}),c.dice?(0,n.default)(c,r,o,a,O?o+=f*p/O:s):(0,i.default)(c,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,c=a.length,u=e.value&&(i-r)/e.value;++s<c;)(o=a[s]).x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*u}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(1769),i=r(1790),o=r(1789);const a=function e(t){function r(e,r,a,s,c){if((u=e._squarify)&&u.ratio===t)for(var u,l,f,p,d,h=-1,m=u.length,g=e.value;++h<m;){for(f=(l=u[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+=(c-a)*l.value/g:c):(0,i.default)(l,r,a,g?r+=(s-r)*l.value/g:s,c),g-=l.value}else e._squarify=u=(0,o.squarifyRatio)(t,e,r,a,s,c),u.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(1769),i=r(1790);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,c=s.length,u=new Array(c+1);for(u[0]=a=o=0;o<c;++o)u[o+1]=a+=s[o].value;!function e(t,r,n,i,o,a,c){if(t>=r-1){var l=s[t];return l.x0=i,l.y0=o,l.x1=a,void(l.y1=c)}var f=u[t],p=n/2+f,d=t+1,h=r-1;for(;d<h;){var m=d+h>>>1;u[m]<p?d=m+1:h=m}p-u[d-1]<u[d]-p&&t+1<d&&--d;var g=u[d]-f,y=n-g;if(a-i>c-o){var v=n?(i*y+a*g)/n:a;e(t,d,g,i,o,v,c),e(d,r,y,v,o,a,c)}else{var b=n?(o*y+c*g)/n:c;e(t,d,g,i,o,a,b),e(d,r,y,i,b,a,c)}}(0,c,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:()=>c});var n=r(1795),i=r(1796),o=r(1797),a=r(1798);function s(e){return Math.sqrt(e.value)}function c(){var e=null,t=1,r=1,a=i.constantZero;function c(n){const c=(0,o.default)();return n.x=t/2,n.y=r/2,e?n.eachBefore(u(e)).eachAfter(l(a,.5,c)).eachBefore(f(1)):n.eachBefore(u(s)).eachAfter(l(i.constantZero,1,c)).eachAfter(l(a,n.r/Math.min(t,r),c)).eachBefore(f(Math.min(t,r)/(2*n.r))),n}return c.radius=function(t){return arguments.length?(e=(0,n.optional)(t),c):e},c.size=function(e){return arguments.length?(t=+e[0],r=+e[1],c):[t,r]},c.padding=function(e){return arguments.length?(a="function"==typeof e?e:(0,i.default)(+e),c):a},c}function u(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,c=i.length,u=e(n)*t||0;if(u)for(o=0;o<c;++o)i[o].r+=u;if(s=(0,a.packSiblingsRandom)(i,r),u)for(o=0;o<c;++o)i[o].r-=u;n.r=s+u}}}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(1799),i=r(1797),o=r(1800);function a(e,t,r){var n,i,o,a,s=e.x-t.x,c=e.y-t.y,u=s*s+c*c;u?(i=t.r+r.r,i*=i,a=e.r+r.r,i>(a*=a)?(n=(u+a-i)/(2*u),o=Math.sqrt(Math.max(0,a/u-n*n)),r.x=e.x-n*s-o*c,r.y=e.y-n*c+o*s):(n=(u+i-a)/(2*u),o=Math.sqrt(Math.max(0,i/u-n*n)),r.x=t.x+n*s-o*c,r.y=t.y+n*c+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 c(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 u(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 u(r),i=new u(i),l=new u(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 u(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=c(r);(l=l.next)!==i;)(d=c(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(1799),i=r(1797);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,c=[];o<a;)r=e[o],i&&u(i,r)?++o:(i=f(c=s(c,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(c(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(c(p(e[r],e[n]),t)&&c(p(e[r],t),e[n])&&c(p(e[n],t),e[r])&&l(d(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function c(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 u(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(!u(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,c=o-r,u=a-n,l=s-i,f=Math.sqrt(c*c+u*u);return{x:(r+o+c/f*l)/2,y:(n+a+u/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,c=t.r,u=r.x,l=r.y,f=r.r,p=n-a,d=n-u,h=i-s,m=i-l,g=c-o,y=f-o,v=n*n+i*i-o*o,b=v-a*a-s*s+c*c,_=v-u*u-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(1768),i=r(1789),o=r(1795),a=r(1796);function s(){var e=i.default,t=!1,r=1,s=1,c=[0],u=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),c=[0],t&&e.eachBefore(n.default),e}function m(t){var r=c[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=c[t.depth+1]=u(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?(u="function"==typeof e?e:(0,a.default)(+e),h):u},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(1804),o=r.n(i),a=r(1716),s=r(1532);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 u(){return u=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},u.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"===c(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,c=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,u({},l,c)))}}]),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,{compareVersions:()=>i});var n=r(2081);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:()=>c,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},c=(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:()=>Nn,Draggable:()=>Zn,Droppable:()=>xi,resetServerContext:()=>Dn,useKeyboardSensor:()=>cn,useMouseSensor:()=>nn,useTouchSensor:()=>pn});var n=r(270),i=r(2339),o=r(2341),a=r(2377),s=r(2378),c=r(2380),u=r(2381),l=r(1409);function f(e,t){}f.bind(null,"warn"),f.bind(null,"error");function p(){}function d(e,t,r){const n=t.map((t=>{const n=function(e,t){return{...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((e=>{e()}))}}const h=!0,m="Invariant failed";class g extends Error{}function y(e,t){if(!e)throw new g(h?m:`${m}: ${t||""}`)}g.prototype.toString=function(){return this.message};class v extends n.default.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=p,this.onWindowError=e=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort();e.error instanceof g&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=d(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof g))throw e;this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const b=e=>e+1,_=(e,t)=>{const r=e.droppableId===t.droppableId,n=b(e.index),i=b(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  `},S=(e,t,r)=>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    `,E=e=>`\n  The item has returned to its starting position\n  of ${b(e.index)}\n`,w={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:e=>`\n  You have lifted an item in position ${b(e.source.index)}\n`,onDragUpdate:e=>{const t=e.destination;if(t)return _(e.source,t);const r=e.combine;return r?S(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},onDragEnd:e=>{if("CANCEL"===e.reason)return`\n      Movement cancelled.\n      ${E(e.source)}\n    `;const t=e.destination,r=e.combine;return t?`\n      You have dropped the item.\n      ${_(e.source,t)}\n    `:r?`\n      You have dropped the item.\n      ${S(e.draggableId,e.source,r)}\n    `:`\n    The item has been dropped while not over a drop area.\n    ${E(e.source)}\n  `}};var O=w;const x={x:0,y:0},T=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),k=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),C=(e,t)=>e.x===t.x&&e.y===t.y,I=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),R=(e,t,r=0)=>"x"===e?{x:t,y:r}:{x:r,y:t},A=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),P=(e,t)=>Math.min(...t.map((t=>A(e,t)))),D=e=>t=>({x:e(t.x),y:e(t.y)});const N=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),M=e=>[{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=(e,t)=>t&&t.shouldClipSubject?((e,t)=>{const r=(0,s.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,s.getRect)(e);var j=({page:e,withPlaceholder:t,axis:r,frame:n})=>{const i=((e,t)=>t?N(e,t.scroll.diff.displacement):e)(e.marginBox,n),o=((e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e)(i,r,t);return{page:e,withPlaceholder:t,active:L(o,n)}},B=(e,t)=>{e.frame||y(!1);const r=e.frame,n=k(t,r.scroll.initial),i=I(n),o={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:i},max:r.scroll.max}},a=j({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return{...e,frame:o,subject:a}};const F=(0,c.default)((e=>e.reduce(((e,t)=>(e[t.descriptor.id]=t,e)),{}))),U=(0,c.default)((e=>e.reduce(((e,t)=>(e[t.descriptor.id]=t,e)),{}))),H=(0,c.default)((e=>Object.values(e))),q=(0,c.default)((e=>Object.values(e)));var z=(0,c.default)(((e,t)=>{const r=q(t).filter((t=>e===t.descriptor.droppableId)).sort(((e,t)=>e.descriptor.index-t.descriptor.index));return r}));function W(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function G(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var V=(0,c.default)(((e,t)=>t.filter((t=>t.descriptor.id!==e.descriptor.id)))),$=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const K={point:x,value:0},Y={invisible:{},visible:{},all:[]};var Q={displaced:Y,displacedBy:K,at:null},X=(e,t)=>r=>e<=r&&r<=t,J=e=>{const t=X(e.top,e.bottom),r=X(e.left,e.right);return n=>{if(t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right))return!0;const i=t(n.top)||t(n.bottom),o=r(n.left)||r(n.right);if(i&&o)return!0;const a=n.top<e.top&&n.bottom>e.bottom,s=n.left<e.left&&n.right>e.right;if(a&&s)return!0;return a&&o||s&&i}},Z=e=>{const t=X(e.top,e.bottom),r=X(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)};const ee={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},te={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};const re=({target:e,destination:t,viewport:r,withDroppableDisplacement:n,isVisibleThroughFrameFn:i})=>{const o=n?((e,t)=>{const r=t.frame?t.frame.scroll.diff.displacement:x;return N(e,r)})(e,t):e;return((e,t,r)=>!!t.subject.active&&r(t.subject.active)(e))(o,t,i)&&((e,t,r)=>r(t)(e))(o,r,i)},ne=e=>re({...e,isVisibleThroughFrameFn:J}),ie=e=>re({...e,isVisibleThroughFrameFn:Z}),oe=(e,t,r)=>{if("boolean"==typeof r)return r;if(!t)return!0;const{invisible:n,visible:i}=t;if(n[e])return!1;const o=i[e];return!o||o.shouldAnimate};function ae({afterDragging:e,destination:t,displacedBy:r,viewport:n,forceShouldAnimate:i,last:o}){return e.reduce((function(e,a){const c=function(e,t){const r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return(0,s.getRect)((0,s.expand)(r,n))}(a,r),u=a.descriptor.id;e.all.push(u);if(!ne({target:c,destination:t,viewport:n,withDroppableDisplacement:!0}))return e.invisible[a.descriptor.id]=!0,e;const l={draggableId:u,shouldAnimate:oe(u,o,i)};return e.visible[u]=l,e}),{all:[],visible:{},invisible:{}})}function se({insideDestination:e,inHomeList:t,displacedBy:r,destination:n}){const i=function(e,t){if(!e.length)return 0;const r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(e,{inHomeList:t});return{displaced:Y,displacedBy:r,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:i}}}}function ce({draggable:e,insideDestination:t,destination:r,viewport:n,displacedBy:i,last:o,index:a,forceShouldAnimate:s}){const c=$(e,r);if(null==a)return se({insideDestination:t,inHomeList:c,displacedBy:i,destination:r});const u=t.find((e=>e.descriptor.index===a));if(!u)return se({insideDestination:t,inHomeList:c,displacedBy:i,destination:r});const l=V(e,t),f=t.indexOf(u);return{displaced:ae({afterDragging:l.slice(f),destination:r,displacedBy:i,last:o,viewport:n.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function ue(e,t){return Boolean(t.effected[e])}var le=({isMovingForward:e,isInHomeList:t,draggable:r,draggables:n,destination:i,insideDestination:o,previousImpact:a,viewport:s,afterCritical:c})=>{const u=a.at;if(u||y(!1),"REORDER"===u.type){const n=(({isMovingForward:e,isInHomeList:t,insideDestination:r,location:n})=>{if(!r.length)return null;const i=n.index,o=e?i+1:i-1,a=r[0].descriptor.index,s=r[r.length-1].descriptor.index;return o<a||o>(t?s:s+1)?null:o})({isMovingForward:e,isInHomeList:t,location:u.destination,insideDestination:o});return null==n?null:ce({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:n})}const l=(({isMovingForward:e,destination:t,draggables:r,combine:n,afterCritical:i})=>{if(!t.isCombineEnabled)return null;const o=n.draggableId,a=r[o].descriptor.index;return ue(o,i)?e?a:a-1:e?a+1:a})({isMovingForward:e,destination:i,displaced:a.displaced,draggables:n,combine:u.combine,afterCritical:c});return null==l?null:ce({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:l})},fe=({afterCritical:e,impact:t,draggables:r})=>{const n=G(t);n||y(!1);const i=n.draggableId,o=r[i].page.borderBox.center,a=(({displaced:e,afterCritical:t,combineWith:r,displacedBy:n})=>{const i=Boolean(e.visible[r]||e.invisible[r]);return ue(r,t)?i?x:I(n.point):i?n.point:x})({displaced:t.displaced,afterCritical:e,combineWith:i,displacedBy:t.displacedBy});return T(o,a)};const pe=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,de=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,he=({axis:e,moveRelativeTo:t,isMoving:r})=>R(e.line,t.marginBox[e.end]+pe(e,r),de(e,t.marginBox,r)),me=({axis:e,moveRelativeTo:t,isMoving:r})=>R(e.line,t.marginBox[e.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(e,r),de(e,t.marginBox,r));var ge=({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:i})=>{const o=z(n.descriptor.id,r),a=t.page,c=n.axis;if(!o.length)return(({axis:e,moveInto:t,isMoving:r})=>R(e.line,t.contentBox[e.start]+pe(e,r),de(e,t.contentBox,r)))({axis:c,moveInto:n.page,isMoving:a});const{displaced:u,displacedBy:l}=e,f=u.all[0];if(f){const e=r[f];if(ue(f,i))return me({axis:c,moveRelativeTo:e.page,isMoving:a});const t=(0,s.offset)(e.page,l.point);return me({axis:c,moveRelativeTo:t,isMoving:a})}const p=o[o.length-1];if(p.descriptor.id===t.descriptor.id)return a.borderBox.center;if(ue(p.descriptor.id,i)){const e=(0,s.offset)(p.page,I(i.displacedBy.point));return he({axis:c,moveRelativeTo:e,isMoving:a})}return he({axis:c,moveRelativeTo:p.page,isMoving:a})},ye=(e,t)=>{const r=e.frame;return r?T(t,r.scroll.diff.displacement):t};var ve=e=>{const t=(({impact:e,draggable:t,droppable:r,draggables:n,afterCritical:i})=>{const o=t.page.borderBox.center,a=e.at;return r&&a?"REORDER"===a.type?ge({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:i}):fe({impact:e,draggables:n,afterCritical:i}):o})(e),r=e.droppable;return r?ye(r,t):t},be=(e,t)=>{const r=k(t,e.scroll.initial),n=I(r);return{frame:(0,s.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 _e(e,t){return e.map((e=>t[e]))}var Se=({pageBorderBoxCenter:e,draggable:t,viewport:r})=>{const n=((e,t)=>T(e.scroll.diff.displacement,t))(r,e),i=k(n,t.page.borderBox.center);return T(t.client.borderBox.center,i)},Ee=({draggable:e,destination:t,newPageBorderBoxCenter:r,viewport:n,withDroppableDisplacement:i,onlyOnMainAxis:o=!1})=>{const a=k(r,e.page.borderBox.center),s={target:N(e.page.borderBox,a),destination:t,withDroppableDisplacement:i,viewport:n};return o?(e=>{return re({...e,isVisibleThroughFrameFn:(t=e.destination.axis,e=>{const r=X(e.top,e.bottom),n=X(e.left,e.right);return e=>t===ee?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)})});var t})(s):ie(s)},we=({isMovingForward:e,draggable:t,destination:r,draggables:n,previousImpact:i,viewport:o,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:c})=>{if(!r.isEnabled)return null;const u=z(r.descriptor.id,n),l=$(t,r),f=(({isMovingForward:e,draggable:t,destination:r,insideDestination:n,previousImpact:i})=>{if(!r.isCombineEnabled)return null;if(!W(i))return null;function o(e){const t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return{...i,at:t}}const a=i.displaced.all,s=a.length?a[0]:null;if(e)return s?o(s):null;const c=V(t,n);if(!s)return c.length?o(c[c.length-1].descriptor.id):null;const u=c.findIndex((e=>e.descriptor.id===s));-1===u&&y(!1);const l=u-1;return l<0?null:o(c[l].descriptor.id)})({isMovingForward:e,draggable:t,destination:r,insideDestination:u,previousImpact:i})||le({isMovingForward:e,isInHomeList:l,draggable:t,draggables:n,destination:r,insideDestination:u,previousImpact:i,viewport:o,afterCritical:c});if(!f)return null;const p=ve({impact:f,draggable:t,droppable:r,draggables:n,afterCritical:c});if(Ee({draggable:t,destination:r,newPageBorderBoxCenter:p,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})){return{clientSelection:Se({pageBorderBoxCenter:p,draggable:t,viewport:o}),impact:f,scrollJumpRequest:null}}const d=k(p,a),h=(({impact:e,viewport:t,destination:r,draggables:n,maxScrollChange:i})=>{const o=be(t,T(t.scroll.current,i)),a=r.frame?B(r,T(r.frame.scroll.current,i)):r,s=e.displaced,c=ae({afterDragging:_e(s.all,n),destination:r,displacedBy:e.displacedBy,viewport:o.frame,last:s,forceShouldAnimate:!1}),u=ae({afterDragging:_e(s.all,n),destination:a,displacedBy:e.displacedBy,viewport:t.frame,last:s,forceShouldAnimate:!1}),l={},f={},p=[s,c,u];return s.all.forEach((e=>{const t=function(e,t){for(let r=0;r<t.length;r++){const n=t[r].visible[e];if(n)return n}return null}(e,p);t?f[e]=t:l[e]=!0})),{...e,displaced:{all:s.all,invisible:l,visible:f}}})({impact:f,viewport:o,destination:r,draggables:n,maxScrollChange:d});return{clientSelection:s,impact:h,scrollJumpRequest:d}};const Oe=e=>{const t=e.subject.active;return t||y(!1),t};const xe=(e,t)=>{const r=e.page.borderBox.center;return ue(e.descriptor.id,t)?k(r,t.displacedBy.point):r},Te=(e,t)=>{const r=e.page.borderBox;return ue(e.descriptor.id,t)?N(r,I(t.displacedBy.point)):r};var ke=(0,c.default)((function(e,t){const r=t[e.line];return{value:r,point:R(e.line,r)}}));const Ce=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),Ie=(e,t,r)=>{const n=e.frame;$(t,e)&&y(!1),e.subject.withPlaceholder&&y(!1);const i=ke(e.axis,t.displaceBy).point,o=((e,t,r)=>{const n=e.axis;if("virtual"===e.descriptor.mode)return R(n.line,t[n.line]);const i=e.subject.page.contentBox[n.size],o=z(e.descriptor.id,r).reduce(((e,t)=>e+t.client.marginBox[n.size]),0)+t[n.line]-i;return o<=0?null:R(n.line,o)})(e,i,r),a={placeholderSize:i,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){const t=j({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:t}}const s=o?T(n.scroll.max,o):n.scroll.max,c=Ce(n,s),u=j({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:c});return{...e,subject:u,frame:c}};var Re=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:r,isOver:n,draggables:i,droppables:o,viewport:a,afterCritical:s})=>{const c=(({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:n,viewport:i})=>{const o=r.subject.active;if(!o)return null;const a=r.axis,s=X(o[a.start],o[a.end]),c=H(n).filter((e=>e!==r)).filter((e=>e.isEnabled)).filter((e=>Boolean(e.subject.active))).filter((e=>J(i.frame)(Oe(e)))).filter((t=>{const r=Oe(t);return e?o[a.crossAxisEnd]<r[a.crossAxisEnd]:r[a.crossAxisStart]<o[a.crossAxisStart]})).filter((e=>{const t=Oe(e),r=X(t[a.start],t[a.end]);return s(t[a.start])||s(t[a.end])||r(o[a.start])||r(o[a.end])})).sort(((t,r)=>{const n=Oe(t)[a.crossAxisStart],i=Oe(r)[a.crossAxisStart];return e?n-i:i-n})).filter(((e,t,r)=>Oe(e)[a.crossAxisStart]===Oe(r[0])[a.crossAxisStart]));if(!c.length)return null;if(1===c.length)return c[0];const u=c.filter((e=>X(Oe(e)[a.start],Oe(e)[a.end])(t[a.line])));return 1===u.length?u[0]:u.length>1?u.sort(((e,t)=>Oe(e)[a.start]-Oe(t)[a.start]))[0]:c.sort(((e,r)=>{const n=P(t,M(Oe(e))),i=P(t,M(Oe(r)));return n!==i?n-i:Oe(e)[a.start]-Oe(r)[a.start]}))[0]})({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:o,viewport:a});if(!c)return null;const u=z(c.descriptor.id,i),l=(({pageBorderBoxCenter:e,viewport:t,destination:r,insideDestination:n,afterCritical:i})=>{const o=n.filter((e=>ie({target:Te(e,i),destination:r,viewport:t.frame,withDroppableDisplacement:!0}))).sort(((t,n)=>{const o=A(e,ye(r,xe(t,i))),a=A(e,ye(r,xe(n,i)));return o<a?-1:a<o?1:t.descriptor.index-n.descriptor.index}));return o[0]||null})({pageBorderBoxCenter:t,viewport:a,destination:c,insideDestination:u,afterCritical:s}),f=(({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:r,draggable:n,draggables:i,destination:o,viewport:a,afterCritical:s})=>{if(!t){if(r.length)return null;const e={displaced:Y,displacedBy:K,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},t=ve({impact:e,draggable:n,droppable:o,draggables:i,afterCritical:s}),c=$(n,o)?o:Ie(o,n,i);return Ee({draggable:n,destination:c,newPageBorderBoxCenter:t,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}const c=Boolean(e[o.axis.line]<=t.page.borderBox.center[o.axis.line]),u=(()=>{const e=t.descriptor.index;return t.descriptor.id===n.descriptor.id||c?e:e+1})(),l=ke(o.axis,n.displaceBy);return ce({draggable:n,insideDestination:r,destination:o,viewport:a,displacedBy:l,last:Y,index:u})})({previousPageBorderBoxCenter:t,destination:c,draggable:r,draggables:i,moveRelativeTo:l,insideDestination:u,viewport:a,afterCritical:s});if(!f)return null;const p=ve({impact:f,draggable:r,droppable:c,draggables:i,afterCritical:s});return{clientSelection:Se({pageBorderBoxCenter:p,draggable:r,viewport:a}),impact:f,scrollJumpRequest:null}},Ae=e=>{const t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null};var Pe=({state:e,type:t})=>{const r=((e,t)=>{const r=Ae(e);return r?t[r]:null})(e.impact,e.dimensions.droppables),n=Boolean(r),i=e.dimensions.droppables[e.critical.droppable.id],o=r||i,a=o.axis.direction,s="vertical"===a&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===a&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(s&&!n)return null;const c="MOVE_DOWN"===t||"MOVE_RIGHT"===t,u=e.dimensions.draggables[e.critical.draggable.id],l=e.current.page.borderBoxCenter,{draggables:f,droppables:p}=e.dimensions;return s?we({isMovingForward:c,previousPageBorderBoxCenter:l,draggable:u,destination:o,draggables:f,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):Re({isMovingForward:c,previousPageBorderBoxCenter:l,draggable:u,isOver:o,draggables:f,droppables:p,viewport:e.viewport,afterCritical:e.afterCritical})};function De(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Ne(e){const t=X(e.top,e.bottom),r=X(e.left,e.right);return function(e){return t(e.y)&&r(e.x)}}function Me({pageBorderBox:e,draggable:t,droppables:r}){const n=H(r).filter((t=>{if(!t.isEnabled)return!1;const r=t.subject.active;if(!r)return!1;if(i=r,!((n=e).left<i.right&&n.right>i.left&&n.top<i.bottom&&n.bottom>i.top))return!1;var n,i;if(Ne(r)(e.center))return!0;const o=t.axis,a=r.center[o.crossAxisLine],s=e[o.crossAxisStart],c=e[o.crossAxisEnd],u=X(r[o.crossAxisStart],r[o.crossAxisEnd]),l=u(s),f=u(c);return!l&&!f||(l?s<a:c>a)}));return n.length?1===n.length?n[0].descriptor.id:function({pageBorderBox:e,draggable:t,candidates:r}){const n=t.page.borderBox.center,i=r.map((t=>{const r=t.axis,i=R(t.axis.line,e.center[r.line],t.page.borderBox.center[r.crossAxisLine]);return{id:t.descriptor.id,distance:A(n,i)}})).sort(((e,t)=>t.distance-e.distance));return i[0]?i[0].id:null}({pageBorderBox:e,draggable:t,candidates:n}):null}const Le=(e,t)=>(0,s.getRect)(N(e,t));function je({displaced:e,id:t}){return Boolean(e.visible[t]||e.invisible[t])}var Be=({pageOffset:e,draggable:t,draggables:r,droppables:n,previousImpact:i,viewport:o,afterCritical:a})=>{const s=Le(t.page.borderBox,e),c=Me({pageBorderBox:s,draggable:t,droppables:n});if(!c)return Q;const u=n[c],l=z(u.descriptor.id,r),f=((e,t)=>{const r=e.frame;return r?Le(t,r.scroll.diff.value):t})(u,s);return(({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:r,destination:n,insideDestination:i,afterCritical:o})=>{if(!n.isCombineEnabled)return null;const a=n.axis,s=ke(n.axis,e.displaceBy),c=s.value,u=t[a.start],l=t[a.end],f=V(e,i).find((e=>{const t=e.descriptor.id,n=e.page.borderBox,i=n[a.size]/4,s=ue(t,o),f=je({displaced:r.displaced,id:t});return s?f?l>n[a.start]+i&&l<n[a.end]-i:u>n[a.start]-c+i&&u<n[a.end]-c-i:f?l>n[a.start]+c+i&&l<n[a.end]+c-i:u>n[a.start]+i&&u<n[a.end]-i}));return f?{displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:n.descriptor.id}}}:null})({pageBorderBoxWithDroppableScroll:f,draggable:t,previousImpact:i,destination:u,insideDestination:l,afterCritical:a})||(({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:r,insideDestination:n,last:i,viewport:o,afterCritical:a})=>{const s=r.axis,c=ke(r.axis,t.displaceBy),u=c.value,l=e[s.start],f=e[s.end],p=function({draggable:e,closest:t,inHomeList:r}){return t?r&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:V(t,n).find((e=>{const t=e.descriptor.id,r=e.page.borderBox.center[s.line],n=ue(t,a),o=je({displaced:i,id:t});return n?o?f<=r:l<r-u:o?f<=r+u:l<r}))||null,inHomeList:$(t,r)});return ce({draggable:t,insideDestination:n,destination:r,viewport:o,last:i,displacedBy:c,index:p})})({pageBorderBoxWithDroppableScroll:f,draggable:t,destination:u,insideDestination:l,last:i.displaced,viewport:o,afterCritical:a})},Fe=(e,t)=>({...e,[t.descriptor.id]:t});const Ue=({previousImpact:e,impact:t,droppables:r})=>{const n=Ae(e),i=Ae(t);if(!n)return r;if(n===i)return r;const o=r[n];if(!o.subject.withPlaceholder)return r;const a=(e=>{const t=e.subject.withPlaceholder;t||y(!1);const r=e.frame;if(!r){const t=j({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}const n=t.oldFrameMaxScroll;n||y(!1);const i=Ce(r,n),o=j({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return{...e,subject:o,frame:i}})(o);return Fe(r,a)};var He=({state:e,clientSelection:t,dimensions:r,viewport:n,impact:i,scrollJumpRequest:o})=>{const a=n||e.viewport,s=r||e.dimensions,c=t||e.current.client.selection,u=k(c,e.initial.client.selection),l={offset:u,selection:c,borderBoxCenter:T(e.initial.client.borderBoxCenter,u)},f={selection:T(l.selection,a.scroll.current),borderBoxCenter:T(l.borderBoxCenter,a.scroll.current),offset:T(l.offset,a.scroll.diff.value)},p={client:l,page:f};if("COLLECTING"===e.phase)return{...e,dimensions:s,viewport:a,current:p};const d=s.draggables[e.critical.draggable.id],h=i||Be({pageOffset:f.offset,draggable:d,draggables:s.draggables,droppables:s.droppables,previousImpact:e.impact,viewport:a,afterCritical:e.afterCritical}),m=(({draggable:e,draggables:t,droppables:r,previousImpact:n,impact:i})=>{const o=Ue({previousImpact:n,impact:i,droppables:r}),a=Ae(i);if(!a)return o;const s=r[a];if($(e,s))return o;if(s.subject.withPlaceholder)return o;const c=Ie(s,e,t);return Fe(o,c)})({draggable:d,impact:h,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:p,dimensions:{draggables:s.draggables,droppables:m},impact:h,viewport:a,scrollJumpRequest:o||null,forceShouldAnimate:!o&&null}};var qe=({impact:e,viewport:t,draggables:r,destination:n,forceShouldAnimate:i})=>{const o=e.displaced,a=function(e,t){return e.map((e=>t[e]))}(o.all,r),s=ae({afterDragging:a,destination:n,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:i,last:o});return{...e,displaced:s}},ze=({impact:e,draggable:t,droppable:r,draggables:n,viewport:i,afterCritical:o})=>{const a=ve({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:o});return Se({pageBorderBoxCenter:a,draggable:t,viewport:i})},We=({state:e,dimensions:t,viewport:r})=>{"SNAP"!==e.movementMode&&y(!1);const n=e.impact,i=r||e.viewport,o=t||e.dimensions,{draggables:a,droppables:s}=o,c=a[e.critical.draggable.id],u=Ae(n);u||y(!1);const l=s[u],f=qe({impact:n,viewport:i,destination:l,draggables:a}),p=ze({impact:f,draggable:c,droppable:l,draggables:a,viewport:i,afterCritical:e.afterCritical});return He({impact:f,clientSelection:p,state:e,dimensions:o,viewport:i})},Ge=({draggable:e,home:t,draggables:r,viewport:n})=>{const i=ke(t.axis,e.displaceBy),o=z(t.descriptor.id,r),a=o.indexOf(e);-1===a&&y(!1);const s=o.slice(a+1),c=s.reduce(((e,t)=>(e[t.descriptor.id]=!0,e)),{}),u={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:i,effected:c};var l;return{impact:{displaced:ae({afterDragging:s,destination:t,displacedBy:i,last:null,viewport:n.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(l=e.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:u}};const Ve=e=>{0},$e=e=>{0};var Ke=({additions:e,updatedDroppables:t,viewport:r})=>{const n=r.scroll.diff.value;return e.map((e=>{const i=e.descriptor.droppableId,o=(e=>{const t=e.frame;return t||y(!1),t})(t[i]),a=o.scroll.diff.value,c=(({draggable:e,offset:t,initialWindowScroll:r})=>{const n=(0,s.offset)(e.client,t),i=(0,s.withScroll)(n,r);return{...e,placeholder:{...e.placeholder,client:n},client:n,page:i}})({draggable:e,offset:T(n,a),initialWindowScroll:r.scroll.initial});return c}))};const Ye=e=>"SNAP"===e.movementMode,Qe=(e,t,r)=>{const n=((e,t)=>({draggables:e.draggables,droppables:Fe(e.droppables,t)}))(e.dimensions,t);return!Ye(e)||r?He({state:e,dimensions:n}):We({state:e,dimensions:n})};function Xe(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}const Je={phase:"IDLE",completed:null,shouldFlush:!1};var Ze=(e=Je,t)=>{if("FLUSH"===t.type)return{...Je,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&y(!1);const{critical:r,clientSelection:n,viewport:i,dimensions:o,movementMode:a}=t.payload,s=o.draggables[r.draggable.id],c=o.droppables[r.droppable.id],u={selection:n,borderBoxCenter:s.client.borderBox.center,offset:x},l={client:u,page:{selection:T(u.selection,i.scroll.initial),borderBoxCenter:T(u.selection,i.scroll.initial),offset:T(u.selection,i.scroll.diff.value)}},f=H(o.droppables).every((e=>!e.isFixedOnPage)),{impact:p,afterCritical:d}=Ge({draggable:s,home:c,draggables:o.draggables,viewport:i});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:o,initial:l,current:l,isWindowScrollAllowed:f,impact:p,afterCritical:d,onLiftImpact:p,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&y(!1);return{...e,phase:"COLLECTING"}}if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&y(!1),(({state:e,published:t})=>{Ve();const r=t.modified.map((t=>{const r=e.dimensions.droppables[t.droppableId];return B(r,t.scroll)})),n={...e.dimensions.droppables,...F(r)},i=U(Ke({additions:t.additions,updatedDroppables:n,viewport:e.viewport})),o={...e.dimensions.draggables,...i};t.removals.forEach((e=>{delete o[e]}));const a={droppables:n,draggables:o},s=Ae(e.impact),c=s?a.droppables[s]:null,u=a.draggables[e.critical.draggable.id],l=a.droppables[e.critical.droppable.id],{impact:f,afterCritical:p}=Ge({draggable:u,home:l,draggables:o,viewport:e.viewport}),d=c&&c.isCombineEnabled?e.impact:f,h=Be({pageOffset:e.current.page.offset,draggable:a.draggables[e.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:d,viewport:e.viewport,afterCritical:p});$e();const m={...e,phase:"DRAGGING",impact:h,onLiftImpact:f,dimensions:a,afterCritical:p,forceShouldAnimate:!1};return"COLLECTING"===e.phase?m:{...m,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}})({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;De(e)||y(!1);const{client:r}=t.payload;return C(r,e.current.client.selection)?e:He({state:e,clientSelection:r,impact:Ye(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Xe(e);if("COLLECTING"===e.phase)return Xe(e);De(e)||y(!1);const{id:r,newScroll:n}=t.payload,i=e.dimensions.droppables[r];if(!i)return e;const o=B(i,n);return Qe(e,o,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;De(e)||y(!1);const{id:r,isEnabled:n}=t.payload,i=e.dimensions.droppables[r];i||y(!1),i.isEnabled===n&&y(!1);const o={...i,isEnabled:n};return Qe(e,o,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;De(e)||y(!1);const{id:r,isCombineEnabled:n}=t.payload,i=e.dimensions.droppables[r];i||y(!1),i.isCombineEnabled===n&&y(!1);const o={...i,isCombineEnabled:n};return Qe(e,o,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;De(e)||y(!1),e.isWindowScrollAllowed||y(!1);const r=t.payload.newScroll;if(C(e.viewport.scroll.current,r))return Xe(e);const n=be(e.viewport,r);return Ye(e)?We({state:e,viewport:n}):He({state:e,viewport:n})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!De(e))return e;const r=t.payload.maxScroll;if(C(r,e.viewport.scroll.max))return e;const n={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:n}}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&&y(!1);const r=Pe({state:e,type:t.type});return r?He({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){const r=t.payload.reason;"COLLECTING"!==e.phase&&y(!1);return{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if("DROP_ANIMATE"===t.type){const{completed:r,dropDuration:n,newHomeClientOffset:i}=t.payload;"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&y(!1);return{phase:"DROP_ANIMATING",completed:r,dropDuration:n,newHomeClientOffset:i,dimensions:e.dimensions}}if("DROP_COMPLETE"===t.type){const{completed:e}=t.payload;return{phase:"IDLE",completed:e,shouldFlush:!1}}return e};const et=e=>({type:"LIFT",payload:e}),tt=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),rt=()=>({type:"COLLECTION_STARTING",payload:null}),nt=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),it=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),ot=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),at=e=>({type:"MOVE",payload:e}),st=()=>({type:"MOVE_UP",payload:null}),ct=()=>({type:"MOVE_DOWN",payload:null}),ut=()=>({type:"MOVE_RIGHT",payload:null}),lt=()=>({type:"MOVE_LEFT",payload:null}),ft=()=>({type:"FLUSH",payload:null}),pt=e=>({type:"DROP_COMPLETE",payload:e}),dt=e=>({type:"DROP",payload:e}),ht=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});const mt="cubic-bezier(.2,1,.1,1)",gt={drop:0,combining:.7},yt={drop:.75},vt={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},bt=`${vt.outOfTheWay}s ${"cubic-bezier(0.2, 0, 0, 1)"}`,_t={fluid:`opacity ${bt}`,snap:`transform ${bt}, opacity ${bt}`,drop:e=>{const t=`${e}s ${mt}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${bt}`,placeholder:`height ${bt}, width ${bt}, margin ${bt}`},St=e=>C(e,x)?void 0:`translate(${e.x}px, ${e.y}px)`,Et={moveTo:St,drop:(e,t)=>{const r=St(e);if(r)return t?`${r} scale(${yt.drop})`:r}},{minDropTime:wt,maxDropTime:Ot}=vt,xt=Ot-wt;var Tt=({getState:e,dispatch:t})=>r=>n=>{if("DROP"!==n.type)return void r(n);const i=e(),o=n.payload.reason;if("COLLECTING"===i.phase)return void t((e=>({type:"DROP_PENDING",payload:e}))({reason:o}));if("IDLE"===i.phase)return;"DROP_PENDING"===i.phase&&i.isWaiting&&y(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&y(!1);const a=i.critical,s=i.dimensions,c=s.draggables[i.critical.draggable.id],{impact:u,didDropInsideDroppable:l}=(({draggables:e,reason:t,lastImpact:r,home:n,viewport:i,onLiftImpact:o})=>{if(!r.at||"DROP"!==t)return{impact:qe({draggables:e,impact:o,destination:n,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1};return"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:Y},didDropInsideDroppable:!0}})({reason:o,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?W(u):null,p=l?G(u):null,d={index:a.draggable.index,droppableId:a.droppable.id},h={draggableId:c.descriptor.id,type:c.descriptor.type,source:d,reason:o,mode:i.movementMode,destination:f,combine:p},m=(({impact:e,draggable:t,dimensions:r,viewport:n,afterCritical:i})=>{const{draggables:o,droppables:a}=r,s=Ae(e),c=s?a[s]:null,u=a[t.descriptor.droppableId],l=ze({impact:e,draggable:t,draggables:o,afterCritical:i,droppable:c||u,viewport:n});return k(l,t.client.borderBox.center)})({impact:u,draggable:c,dimensions:s,viewport:i.viewport,afterCritical:i.afterCritical}),g={critical:i.critical,afterCritical:i.afterCritical,result:h,impact:u};if(!(!C(i.current.client.offset,m)||Boolean(h.combine)))return void t(pt({completed:g}));const v=(({current:e,destination:t,reason:r})=>{const n=A(e,t);if(n<=0)return wt;if(n>=1500)return Ot;const i=wt+xt*(n/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))})({current:i.current.client.offset,destination:m,reason:o});t((e=>({type:"DROP_ANIMATE",payload:e}))({newHomeClientOffset:m,dropDuration:v,completed:g}))},kt=()=>({x:window.pageXOffset,y:window.pageYOffset});function Ct({onWindowScroll:e}){const t=(0,u.default)((function(){e(kt())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}(t);let n=p;function i(){return n!==p}return{start:function(){i()&&y(!1),n=d(window,[r])},stop:function(){i()||y(!1),t.cancel(),n(),n=p},isActive:i}}var It=e=>{const t=Ct({onWindowScroll:t=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return e=>r=>{t.isActive()||"INITIAL_PUBLISH"!==r.type||t.start(),t.isActive()&&(e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type)(r)&&t.stop(),e(r)}},Rt=()=>{const e=[];return{add:t=>{const r=setTimeout((()=>(t=>{const r=e.findIndex((e=>e.timerId===t));-1===r&&y(!1);const[n]=e.splice(r,1);n.callback()})(r))),n={timerId:r,callback:t};e.push(n)},flush:()=>{if(!e.length)return;const t=[...e];e.length=0,t.forEach((e=>{clearTimeout(e.timerId),e.callback()}))}}};const At=(e,t)=>{Ve(),t(),$e()},Pt=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Dt(e,t,r,n){if(!e)return void r(n(t));const i=(e=>{let t=!1,r=!1;const n=setTimeout((()=>{r=!0})),i=i=>{t||r||(t=!0,e(i),clearTimeout(n))};return i.wasCalled=()=>t,i})(r);e(t,{announce:i}),i.wasCalled()||r(n(t))}var Nt=(e,t)=>{const r=((e,t)=>{const r=Rt();let n=null;const i=r=>{n||y(!1),n=null,At(0,(()=>Dt(e().onDragEnd,r,t,O.onDragEnd)))};return{beforeCapture:(t,r)=>{n&&y(!1),At(0,(()=>{const n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})}))},beforeStart:(t,r)=>{n&&y(!1),At(0,(()=>{const n=e().onBeforeDragStart;n&&n(Pt(t,r))}))},start:(i,o)=>{n&&y(!1);const a=Pt(i,o);n={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},r.add((()=>{At(0,(()=>Dt(e().onDragStart,a,t,O.onDragStart)))}))},update:(i,o)=>{const a=W(o),s=G(o);n||y(!1);const c=!((e,t)=>{if(e===t)return!0;const 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);const u=(f=a,!(null==(l=n.lastLocation)&&null==f||null!=l&&null!=f&&l.droppableId===f.droppableId&&l.index===f.index));var l,f;u&&(n.lastLocation=a);const p=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId)(n.lastCombine,s);if(p&&(n.lastCombine=s),!c&&!u&&!p)return;const d={...Pt(i,n.mode),combine:s,destination:a};r.add((()=>{At(0,(()=>Dt(e().onDragUpdate,d,t,O.onDragUpdate)))}))},flush:()=>{n||y(!1),r.flush()},drop:i,abort:()=>{if(!n)return;const e={...Pt(n.lastCritical,n.mode),combine:null,destination:null,reason:"CANCEL"};i(e)}}})(e,t);return e=>t=>n=>{if("BEFORE_INITIAL_CAPTURE"===n.type)return void r.beforeCapture(n.payload.draggableId,n.payload.movementMode);if("INITIAL_PUBLISH"===n.type){const e=n.payload.critical;return r.beforeStart(e,n.payload.movementMode),t(n),void r.start(e,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){const e=n.payload.completed.result;return r.flush(),t(n),void r.drop(e)}if(t(n),"FLUSH"===n.type)return void r.abort();const i=e.getState();"DRAGGING"===i.phase&&r.update(i.critical,i.impact)}};var Mt=e=>t=>r=>{if("DROP_ANIMATION_FINISHED"!==r.type)return void t(r);const n=e.getState();"DROP_ANIMATING"!==n.phase&&y(!1),e.dispatch(pt({completed:n.completed}))};var Lt=e=>{let t=null,r=null;return n=>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)return;const 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((()=>{r=null,t=d(window,[o])}))}};var jt=e=>t=>r=>{if(t(r),"PUBLISH_WHILE_DRAGGING"!==r.type)return;const n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(dt({reason:n.reason})))};const Bt=i.compose;var Ft=({dimensionMarshal:e,focusMarshal:t,styleMarshal:r,getResponders:n,announce:o,autoScroller:a})=>{return(0,i.createStore)(Ze,Bt((0,i.applyMiddleware)((s=r,()=>e=>t=>{"INITIAL_PUBLISH"===t.type&&s.dragging(),"DROP_ANIMATE"===t.type&&s.dropping(t.payload.completed.result.reason),"FLUSH"!==t.type&&"DROP_COMPLETE"!==t.type||s.resting(),e(t)}),(e=>()=>t=>r=>{"DROP_COMPLETE"!==r.type&&"FLUSH"!==r.type&&"DROP_ANIMATE"!==r.type||e.stopPublishing(),t(r)})(e),(e=>({getState:t,dispatch:r})=>n=>i=>{if("LIFT"!==i.type)return void n(i);const{id:o,clientSelection:a,movementMode:s}=i.payload,c=t();"DROP_ANIMATING"===c.phase&&r(pt({completed:c.completed})),"IDLE"!==t().phase&&y(!1),r(ft()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:o,movementMode:s}});const u={draggableId:o,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},{critical:l,dimensions:f,viewport:p}=e.startPublishing(u);r({type:"INITIAL_PUBLISH",payload:{critical:l,dimensions:f,clientSelection:a,movementMode:s,viewport:p}})})(e),Tt,Mt,Lt,jt,(e=>t=>r=>n=>{if((e=>"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);const i=t.getState();return"DRAGGING"!==i.phase&&y(!1),void e.start(i)}r(n),e.scroll(t.getState())})(a),It,(e=>{let t=!1;return()=>r=>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;const r=n.payload.completed.result;r.combine&&e.tryShiftRecord(r.draggableId,r.combine.draggableId),e.tryRestoreFocusRecorded()}}}})(t),Nt(n,o))));var s};var Ut=({scrollHeight:e,scrollWidth:t,height:r,width:n})=>{const i=k({x:t,y:e},{x:n,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Ht=()=>{const e=document.documentElement;return e||y(!1),e},qt=()=>{const e=Ht();return Ut({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},zt=({critical:e,scrollOptions:t,registry:r})=>{Ve();const n=(()=>{const e=kt(),t=qt(),r=e.y,n=e.x,i=Ht(),o=n+i.clientWidth,a=r+i.clientHeight;return{frame:(0,s.getRect)({top:r,left:n,right:o,bottom:a}),scroll:{initial:e,current:e,max:t,diff:{value:x,displacement:x}}}})(),i=n.scroll.current,o=e.droppable,a=r.droppable.getAllByType(o.type).map((e=>e.callbacks.getDimensionAndWatchScroll(i,t))),c=r.draggable.getAllByType(e.draggable.type).map((e=>e.getDimension(i))),u={draggables:U(c),droppables:F(a)};$e();return{dimensions:u,critical:e,viewport:n}};function Wt(e,t,r){if(r.descriptor.id===t.id)return!1;if(r.descriptor.type!==t.type)return!1;return"virtual"===e.droppable.getById(r.descriptor.droppableId).descriptor.mode}var Gt=(e,t)=>{let r=null;const n=function({registry:e,callbacks:t}){let r={additions:{},removals:{},modified:{}},n=null;const i=()=>{n||(t.collectionStarting(),n=requestAnimationFrame((()=>{n=null,Ve();const{additions:i,removals:o,modified:a}=r,s=Object.keys(i).map((t=>e.draggable.getById(t).getDimension(x))).sort(((e,t)=>e.descriptor.index-t.descriptor.index)),c=Object.keys(a).map((t=>({droppableId:t,scroll:e.droppable.getById(t).callbacks.getScrollWhileDragging()}))),u={additions:s,removals:Object.keys(o),modified:c};r={additions:{},removals:{},modified:{}},$e(),t.publish(u)})))};return{add:e=>{const t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:e=>{const t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:()=>{n&&(cancelAnimationFrame(n),n=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=t=>{r||y(!1);const i=r.critical.draggable;"ADDITION"===t.type&&Wt(e,i,t.value)&&n.add(t.value),"REMOVAL"===t.type&&Wt(e,i,t.value)&&n.remove(t.value)},o={updateDroppableIsEnabled:(n,i)=>{e.droppable.exists(n)||y(!1),r&&t.updateDroppableIsEnabled({id:n,isEnabled:i})},updateDroppableIsCombineEnabled:(n,i)=>{r&&(e.droppable.exists(n)||y(!1),t.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:i}))},scrollDroppable:(t,n)=>{r&&e.droppable.getById(t).callbacks.scroll(n)},updateDroppableScroll:(n,i)=>{r&&(e.droppable.exists(n)||y(!1),t.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:t=>{r&&y(!1);const 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},zt({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:()=>{if(!r)return;n.stop();const t=r.critical.droppable;e.droppable.getAllByType(t.type).forEach((e=>e.callbacks.dragStopped())),r.unsubscribe(),r=null}};return o},Vt=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason),$t=e=>{window.scrollBy(e.x,e.y)};const Kt=(0,c.default)((e=>H(e).filter((e=>!!e.isEnabled&&!!e.frame))));var Yt=({center:e,destination:t,droppables:r})=>{if(t){const e=r[t];return e.frame?e:null}const n=((e,t)=>{const r=Kt(t).find((t=>(t.frame||y(!1),Ne(t.frame.pageMarginBox)(e))))||null;return r})(e,r);return n};const Qt={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var Xt=({startOfRange:e,endOfRange:t,current:r})=>{const n=t-e;if(0===n)return 0;return(r-e)/n},Jt=({distanceToEdge:e,thresholds:t,dragStartTime:r,shouldUseTimeDampening:n,getAutoScrollerOptions:i})=>{const o=((e,t,r=()=>Qt)=>{const n=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return n.maxPixelScroll;if(e===t.startScrollingFrom)return 1;const i=1-Xt({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),o=n.maxPixelScroll*n.ease(i);return Math.ceil(o)})(e,t,i);return 0===o?0:n?Math.max(((e,t,r)=>{const n=r(),i=n.durationDampening.accelerateAt,o=n.durationDampening.stopDampeningAt,a=t,s=o,c=Date.now()-a;if(c>=o)return e;if(c<i)return 1;const u=Xt({startOfRange:i,endOfRange:s,current:c}),l=e*n.ease(u);return Math.ceil(l)})(o,r,i),1):o},Zt=({container:e,distanceToEdges:t,dragStartTime:r,axis:n,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const a=((e,t,r=()=>Qt)=>{const n=r();return{startScrollingFrom:e[t.size]*n.startFromPercentage,maxScrollValueAt:e[t.size]*n.maxScrollAtPercentage}})(e,n,o);return t[n.end]<t[n.start]?Jt({distanceToEdge:t[n.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o}):-1*Jt({distanceToEdge:t[n.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o})};const er=D((e=>0===e?0:e));var tr=({dragStartTime:e,container:t,subject:r,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const a={top:n.y-t.top,right:t.right-n.x,bottom:t.bottom-n.y,left:n.x-t.left},s=Zt({container:t,distanceToEdges:a,dragStartTime:e,axis:ee,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),c=Zt({container:t,distanceToEdges:a,dragStartTime:e,axis:te,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),u=er({x:c,y:s});if(C(u,x))return null;const l=(({container:e,subject:t,proposedScroll:r})=>{const n=t.height>e.height,i=t.width>e.width;return i||n?i&&n?null:{x:i?0:r.x,y:n?0:r.y}:r})({container:t,subject:r,proposedScroll:u});return l?C(l,x)?null:l:null};const rr=D((e=>0===e?0:e>0?1:-1)),nr=(()=>{const e=(e,t)=>e<0?e:e>t?e-t:0;return({current:t,max:r,change:n})=>{const i=T(t,n),o={x:e(i.x,r.x),y:e(i.y,r.y)};return C(o,x)?null:o}})(),ir=({max:e,current:t,change:r})=>{const n={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},i=rr(r),o=nr({max:n,current:t,change:i});return!o||(0!==i.x&&0===o.x||0!==i.y&&0===o.y)},or=(e,t)=>ir({current:e.scroll.current,max:e.scroll.max,change:t}),ar=(e,t)=>{const r=e.frame;return!!r&&ir({current:r.scroll.current,max:r.scroll.max,change:t})};var sr=({state:e,dragStartTime:t,shouldUseTimeDampening:r,scrollWindow:n,scrollDroppable:i,getAutoScrollerOptions:o})=>{const a=e.current.page.borderBoxCenter,s=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const i=(({viewport:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const a=tr({dragStartTime:n,container:e.frame,subject:t,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return a&&or(e,a)?a:null})({dragStartTime:t,viewport:e.viewport,subject:s,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});if(i)return void n(i)}const c=Yt({center:a,destination:Ae(e.impact),droppables:e.dimensions.droppables});if(!c)return;const u=(({droppable:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const a=e.frame;if(!a)return null;const s=tr({dragStartTime:n,container:a.pageMarginBox,subject:t,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return s&&ar(e,s)?s:null})({dragStartTime:t,droppable:c,subject:s,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});u&&i(c.descriptor.id,u)},cr=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:r=()=>Qt})=>{const n=(0,u.default)(e),i=(0,u.default)(t);let o=null;const a=e=>{o||y(!1);const{shouldUseTimeDampening:t,dragStartTime:a}=o;sr({state:e,scrollWindow:n,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:t,getAutoScrollerOptions:r})};return{start:e=>{Ve(),o&&y(!1);const t=Date.now();let n=!1;const i=()=>{n=!0};sr({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:i,scrollDroppable:i,getAutoScrollerOptions:r}),o={dragStartTime:t,shouldUseTimeDampening:n},$e(),n&&a(e)},stop:()=>{o&&(n.cancel(),i.cancel(),o=null)},scroll:a}},ur=({move:e,scrollDroppable:t,scrollWindow:r})=>{const n=(e,r)=>{if(!ar(e,r))return r;const n=((e,t)=>{const r=e.frame;return r&&ar(e,t)?nr({current:r.scroll.current,max:r.scroll.max,change:t}):null})(e,r);if(!n)return t(e.descriptor.id,r),null;const i=k(r,n);t(e.descriptor.id,i);return k(r,i)},i=(e,t,n)=>{if(!e)return n;if(!or(t,n))return n;const i=((e,t)=>{if(!or(e,t))return null;const r=e.scroll.max,n=e.scroll.current;return nr({current:n,max:r,change:t})})(t,n);if(!i)return r(n),null;const o=k(n,i);r(o);return k(n,o)};return t=>{const r=t.scrollJumpRequest;if(!r)return;const o=Ae(t.impact);o||y(!1);const a=n(t.dimensions.droppables[o],r);if(!a)return;const s=t.viewport,c=i(t.isWindowScrollAllowed,s,a);c&&((t,r)=>{const n=T(t.current.client.selection,r);e({client:n})})(t,c)}},lr=({scrollDroppable:e,scrollWindow:t,move:r,getAutoScrollerOptions:n})=>{const i=cr({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:n}),o=ur({move:r,scrollWindow:t,scrollDroppable:e});return{scroll:e=>{n().disabled||"DRAGGING"!==e.phase||("FLUID"!==e.movementMode?e.scrollJumpRequest&&o(e):i.scroll(e))},start:i.start,stop:i.stop}};const fr="data-rfd",pr=(()=>{const e=`${fr}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),dr=(()=>{const e=`${fr}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),hr=(()=>{const e=`${fr}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),mr={contextId:`${fr}-scroll-container-context-id`},gr=(e,t)=>e.map((e=>{const r=e.styles[t];return r?`${e.selector} { ${r} }`:""})).join(" ");var yr=e=>{const t=(r=e,e=>`[${e}="${r}"]`);var r;const n=(()=>{const e="\n      cursor: -webkit-grab;\n      cursor: grab;\n    ";return{selector:t(pr.contextId),styles:{always:"\n          -webkit-touch-callout: none;\n          -webkit-tap-highlight-color: rgba(0,0,0,0);\n          touch-action: manipulation;\n        ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}})(),i=[(()=>{const e=`\n      transition: ${_t.outOfTheWay};\n    `;return{selector:t(dr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),n,{selector:t(hr.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:gr(i,"always"),resting:gr(i,"resting"),dragging:gr(i,"dragging"),dropAnimating:gr(i,"dropAnimating"),userCancel:gr(i,"userCancel")}};var vr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;const br=()=>{const e=document.querySelector("head");return e||y(!1),e},_r=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Sr(e,t){return Array.from(e.querySelectorAll(t))}var Er=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function wr(e){return e instanceof Er(e).HTMLElement}function Or(e,t){const r=`[${pr.contextId}="${e}"]`,n=Sr(document,r);if(!n.length)return null;const i=n.find((e=>e.getAttribute(pr.draggableId)===t));return i&&wr(i)?i:null}function xr(){const e={draggables:{},droppables:{}},t=[];function r(e){t.length&&t.forEach((t=>t(e)))}function n(t){return e.draggables[t]||null}function i(t){return e.droppables[t]||null}return{draggable:{register:t=>{e.draggables[t.descriptor.id]=t,r({type:"ADDITION",value:t})},update:(t,r)=>{const n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{const i=t.descriptor.id,o=n(i);o&&t.uniqueId===o.uniqueId&&(delete e.draggables[i],e.droppables[t.descriptor.droppableId]&&r({type:"REMOVAL",value:t}))},getById:function(e){const t=n(e);return t||y(!1),t},findById:n,exists:e=>Boolean(n(e)),getAllByType:t=>Object.values(e.draggables).filter((e=>e.descriptor.type===t))},droppable:{register:t=>{e.droppables[t.descriptor.id]=t},unregister:t=>{const r=i(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){const t=i(e);return t||y(!1),t},findById:i,exists:e=>Boolean(i(e)),getAllByType:t=>Object.values(e.droppables).filter((e=>e.descriptor.type===t))},subscribe:function(e){return t.push(e),function(){const r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Tr=n.default.createContext(null),kr=()=>{const e=document.body;return e||y(!1),e};var Cr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};const Ir=e=>`rfd-announcement-${e}`;let Rr=0;const Ar={separator:"::"};var Pr="useId"in n.default?function(e,t=Ar){const r=n.default.useId();return(0,a.useMemo)((()=>`${e}${t.separator}${r}`),[t.separator,e,r])}:function(e,t=Ar){return(0,a.useMemo)((()=>`${e}${t.separator}${Rr++}`),[t.separator,e])};var Dr=n.default.createContext(null);function Nr(e){0}function Mr(e,t){Nr()}function Lr(e){const t=(0,n.useRef)(e);return(0,n.useEffect)((()=>{t.current=e})),t}function jr(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}const Br=9,Fr=13,Ur=27,Hr=32,qr=33,zr=34,Wr=35,Gr=36,Vr=37,$r=38,Kr=39,Yr=40,Qr={[Fr]:!0,[Br]:!0};var Xr=e=>{Qr[e.keyCode]&&e.preventDefault()};var Jr=(()=>{const e="visibilitychange";if("undefined"==typeof document)return e;return[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find((e=>`on${e}`in document))||e})();const Zr=0,en=5;const tn={type:"IDLE"};function rn({cancel:e,completed:t,getPhase:r,setPhase:n}){return[{eventName:"mousemove",fn:e=>{const{button:t,clientX:i,clientY:o}=e;if(t!==Zr)return;const a={x:i,y:o},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&y(!1);const c=s.point;if(u=c,l=a,!(Math.abs(l.x-u.x)>=en||Math.abs(l.y-u.y)>=en))return;var u,l;e.preventDefault();const f=s.actions.fluidLift(a);n({type:"DRAGGING",actions:f})}},{eventName:"mouseup",fn:n=>{const i=r();"DRAGGING"===i.type?(n.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"mousedown",fn:t=>{"DRAGGING"===r().type&&t.preventDefault(),e()}},{eventName:"keydown",fn:t=>{if("PENDING"!==r().type)return t.keyCode===Ur?(t.preventDefault(),void e()):void Xr(t);e()}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===r().type&&e()}},{eventName:"webkitmouseforcedown",fn:t=>{const n=r();"IDLE"===n.type&&y(!1),n.actions.shouldRespectForcePress()?e():t.preventDefault()}},{eventName:Jr,fn:e}]}function nn(e){const t=(0,n.useRef)(tn),r=(0,n.useRef)(p),i=(0,a.useMemo)((()=>({eventName:"mousedown",fn:function(t){if(t.defaultPrevented)return;if(t.button!==Zr)return;if(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)return;const n=e.findClosestDraggableId(t);if(!n)return;const i=e.tryGetLock(n,c,{sourceEvent:t});if(!i)return;t.preventDefault();const o={x:t.clientX,y:t.clientY};r.current(),f(i,o)}})),[e]),o=(0,a.useMemo)((()=>({eventName:"webkitmouseforcewillbegin",fn:t=>{if(t.defaultPrevented)return;const r=e.findClosestDraggableId(t);if(!r)return;const n=e.findOptionsForDraggable(r);n&&(n.shouldRespectForcePress||e.canGetLock(r)&&t.preventDefault())}})),[e]),s=(0,a.useCallback)((function(){r.current=d(window,[o,i],{passive:!1,capture:!0})}),[o,i]),c=(0,a.useCallback)((()=>{"IDLE"!==t.current.type&&(t.current=tn,r.current(),s())}),[s]),u=(0,a.useCallback)((()=>{const e=t.current;c(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[c]),l=(0,a.useCallback)((function(){const e=rn({cancel:u,completed:c,getPhase:()=>t.current,setPhase:e=>{t.current=e}});r.current=d(window,e,{capture:!0,passive:!1})}),[u,c]),f=(0,a.useCallback)((function(e,r){"IDLE"!==t.current.type&&y(!1),t.current={type:"PENDING",point:r,actions:e},l()}),[l]);vr((function(){return s(),function(){r.current()}}),[s])}function on(){}const an={[zr]:!0,[qr]:!0,[Gr]:!0,[Wr]:!0};function sn(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:n=>n.keyCode===Ur?(n.preventDefault(),void r()):n.keyCode===Hr?(n.preventDefault(),t(),void e.drop()):n.keyCode===Yr?(n.preventDefault(),void e.moveDown()):n.keyCode===$r?(n.preventDefault(),void e.moveUp()):n.keyCode===Kr?(n.preventDefault(),void e.moveRight()):n.keyCode===Vr?(n.preventDefault(),void e.moveLeft()):void(an[n.keyCode]?n.preventDefault():Xr(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:Jr,fn:r}]}function cn(e){const t=(0,n.useRef)(on),r=(0,a.useMemo)((()=>({eventName:"keydown",fn:function(r){if(r.defaultPrevented)return;if(r.keyCode!==Hr)return;const n=e.findClosestDraggableId(r);if(!n)return;const o=e.tryGetLock(n,c,{sourceEvent:r});if(!o)return;r.preventDefault();let a=!0;const s=o.snapLift();function c(){a||y(!1),a=!1,t.current(),i()}t.current(),t.current=d(window,sn(s,c),{capture:!0,passive:!1})}})),[e]),i=(0,a.useCallback)((function(){t.current=d(window,[r],{passive:!1,capture:!0})}),[r]);vr((function(){return i(),function(){t.current()}}),[i])}const un={type:"IDLE"},ln=120,fn=.15;function pn(e){const t=(0,n.useRef)(un),r=(0,n.useRef)(p),i=(0,a.useCallback)((function(){return t.current}),[]),o=(0,a.useCallback)((function(e){t.current=e}),[]),s=(0,a.useMemo)((()=>({eventName:"touchstart",fn:function(t){if(t.defaultPrevented)return;const n=e.findClosestDraggableId(t);if(!n)return;const i=e.tryGetLock(n,u,{sourceEvent:t});if(!i)return;const o=t.touches[0],{clientX:a,clientY:s}=o,c={x:a,y:s};r.current(),m(i,c)}})),[e]),c=(0,a.useCallback)((function(){r.current=d(window,[s],{capture:!0,passive:!1})}),[s]),u=(0,a.useCallback)((()=>{const e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(un),r.current(),c())}),[c,o]),l=(0,a.useCallback)((()=>{const e=t.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),f=(0,a.useCallback)((function(){const e={capture:!0,passive:!1},t={cancel:l,completed:u,getPhase:i},n=d(window,function({cancel:e,completed:t,getPhase:r}){return[{eventName:"touchmove",options:{capture:!1},fn:t=>{const n=r();if("DRAGGING"!==n.type)return void e();n.hasMoved=!0;const{clientX:i,clientY:o}=t.touches[0],a={x:i,y:o};t.preventDefault(),n.actions.move(a)}},{eventName:"touchend",fn:n=>{const i=r();"DRAGGING"===i.type?(n.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"touchcancel",fn:t=>{"DRAGGING"===r().type?(t.preventDefault(),e()):e()}},{eventName:"touchforcechange",fn:t=>{const n=r();"IDLE"===n.type&&y(!1);const i=t.touches[0];if(!i)return;if(!(i.force>=fn))return;const o=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return o?n.hasMoved?void t.preventDefault():void e():void t.preventDefault();o&&e()}},{eventName:Jr,fn:e}]}(t),e),o=d(window,function({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:r=>{"DRAGGING"===t().type?(r.keyCode===Ur&&r.preventDefault(),e()):e()}},{eventName:Jr,fn:e}]}(t),e);r.current=function(){n(),o()}}),[l,i,u]),h=(0,a.useCallback)((function(){const e=i();"PENDING"!==e.type&&y(!1);const t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[i,o]),m=(0,a.useCallback)((function(e,t){"IDLE"!==i().type&&y(!1);const r=setTimeout(h,ln);o({type:"PENDING",point:t,actions:e,longPressTimerId:r}),f()}),[f,i,o,h]);vr((function(){return c(),function(){r.current();const e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(un))}}),[i,c,o]),vr((function(){return d(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])}),[])}const dn=["input","button","textarea","select","option","optgroup","video","audio"];function hn(e,t){if(null==t)return!1;if(dn.includes(t.tagName.toLowerCase()))return!0;const r=t.getAttribute("contenteditable");return"true"===r||""===r||t!==e&&hn(e,t.parentElement)}function mn(e,t){const r=t.target;return!!wr(r)&&hn(e,r)}var gn=e=>(0,s.getRect)(e.getBoundingClientRect()).center;const yn=(()=>{const e="matches";if("undefined"==typeof document)return e;return[e,"msMatchesSelector","webkitMatchesSelector"].find((e=>e in Element.prototype))||e})();function vn(e,t){return null==e?null:e[yn](t)?e:vn(e.parentElement,t)}function bn(e,t){return e.closest?e.closest(t):vn(e,t)}function _n(e,t){const r=t.target;if(!((n=r)instanceof Er(n).Element))return null;var n;const i=function(e){return`[${pr.contextId}="${e}"]`}(e),o=bn(r,i);return o&&wr(o)?o:null}function Sn(e){e.preventDefault()}function En({expected:e,phase:t,isLockActive:r,shouldWarn:n}){return!!r()&&e===t}function wn({lockAPI:e,store:t,registry:r,draggableId:n}){if(e.isClaimed())return!1;const i=r.draggable.findById(n);return!!i&&(!!i.options.isEnabled&&!!Vt(t.getState(),n))}function On({lockAPI:e,contextId:t,store:r,registry:n,draggableId:i,forceSensorStop:o,sourceEvent:a}){if(!wn({lockAPI:e,store:r,registry:n,draggableId:i}))return null;const s=n.draggable.getById(i),c=function(e,t){const r=`[${dr.contextId}="${e}"]`,n=Sr(document,r).find((e=>e.getAttribute(dr.id)===t));return n&&wr(n)?n:null}(t,s.descriptor.id);if(!c)return null;if(a&&!s.options.canDragInteractiveElements&&mn(c,a))return null;const l=e.claim(o||p);let f="PRE_DRAG";function h(){return s.options.shouldRespectForcePress}function m(){return e.isActive(l)}const g=function(e,t){En({expected:e,phase:f,isLockActive:m,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function v(t){function n(){e.release(),f="COMPLETED"}function i(e,i={shouldBlockNextClick:!1}){if(t.cleanup(),i.shouldBlockNextClick){const e=d(window,[{eventName:"click",fn:Sn,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}n(),r.dispatch(dt({reason:e}))}return"PRE_DRAG"!==f&&(n(),y(!1)),r.dispatch(et(t.liftActionArgs)),f="DRAGGING",{isActive:()=>En({expected:"DRAGGING",phase:f,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:h,drop:e=>i("DROP",e),cancel:e=>i("CANCEL",e),...t.actions}}return{isActive:()=>En({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:h,fluidLift:function(e){const t=(0,u.default)((e=>{g((()=>at({client:e})))}));return{...v({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}},snapLift:function(){const e={moveUp:()=>g(st),moveRight:()=>g(ut),moveDown:()=>g(ct),moveLeft:()=>g(lt)};return v({liftActionArgs:{id:i,clientSelection:gn(c),movementMode:"SNAP"},cleanup:p,actions:e})},abort:function(){En({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!0})&&e.release()}}}const xn=[nn,cn,pn];function Tn({contextId:e,store:t,registry:r,customSensors:i,enableDefaultSensors:o}){const s=[...o?xn:[],...i||[]],c=(0,n.useState)((()=>function(){let e=null;function t(){e||y(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&y(!1);const r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()))[0],u=(0,a.useCallback)((function(e,t){jr(e)&&!jr(t)&&c.tryAbandon()}),[c]);vr((function(){let e=t.getState();return t.subscribe((()=>{const r=t.getState();u(e,r),e=r}))}),[c,t,u]),vr((()=>c.tryAbandon),[c.tryAbandon]);const l=(0,a.useCallback)((e=>wn({lockAPI:c,registry:r,store:t,draggableId:e})),[c,r,t]),f=(0,a.useCallback)(((n,i,o)=>On({lockAPI:c,registry:r,contextId:e,store:t,draggableId:n,forceSensorStop:i||null,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})),[e,c,r,t]),p=(0,a.useCallback)((t=>function(e,t){const r=_n(e,t);return r?r.getAttribute(pr.draggableId):null}(e,t)),[e]),d=(0,a.useCallback)((e=>{const t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),h=(0,a.useCallback)((function(){c.isClaimed()&&(c.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch(ft()))}),[c,t]),m=(0,a.useCallback)((()=>c.isClaimed()),[c]),g=(0,a.useMemo)((()=>({canGetLock:l,tryGetLock:f,findClosestDraggableId:p,findOptionsForDraggable:d,tryReleaseLock:h,isLockClaimed:m})),[l,f,p,d,h,m]);Nr();for(let e=0;e<s.length;e++)s[e](g)}const kn=e=>({onBeforeCapture:t=>{const r=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};n.default.version.startsWith("16")||n.default.version.startsWith("17")?r():(0,n.flushSync)(r)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),Cn=e=>({...Qt,...e.autoScrollerOptions,durationDampening:{...Qt.durationDampening,...e.autoScrollerOptions}});function In(e){return e.current||y(!1),e.current}function Rn(e){const{contextId:t,setCallbacks:r,sensors:s,nonce:u,dragHandleUsageInstructions:f}=e,p=(0,n.useRef)(null);Mr();const d=Lr(e),h=(0,a.useCallback)((()=>kn(d.current)),[d]),m=(0,a.useCallback)((()=>Cn(d.current)),[d]),g=function(e){const t=(0,a.useMemo)((()=>Ir(e)),[e]),r=(0,n.useRef)(null);return(0,n.useEffect)((function(){const e=document.createElement("div");return r.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,l.default)(e.style,Cr),kr().appendChild(e),function(){setTimeout((function(){const t=kr();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[t]),(0,a.useCallback)((e=>{const t=r.current;t&&(t.textContent=e)}),[])}(t),v=function({contextId:e,text:t}){const r=Pr("hidden-text",{separator:"-"}),i=(0,a.useMemo)((()=>function({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}({contextId:e,uniqueId:r})),[r,e]);return(0,n.useEffect)((function(){const e=document.createElement("div");return e.id=i,e.textContent=t,e.style.display="none",kr().appendChild(e),function(){const t=kr();t.contains(e)&&t.removeChild(e)}}),[i,t]),i}({contextId:t,text:f}),b=function(e,t){const r=(0,a.useMemo)((()=>yr(e)),[e]),i=(0,n.useRef)(null),o=(0,n.useRef)(null),s=(0,a.useCallback)((0,c.default)((e=>{const t=o.current;t||y(!1),t.textContent=e})),[]),u=(0,a.useCallback)((e=>{const t=i.current;t||y(!1),t.textContent=e}),[]);vr((()=>{(i.current||o.current)&&y(!1);const n=_r(t),a=_r(t);return i.current=n,o.current=a,n.setAttribute(`${fr}-always`,e),a.setAttribute(`${fr}-dynamic`,e),br().appendChild(n),br().appendChild(a),u(r.always),s(r.resting),()=>{const e=e=>{const t=e.current;t||y(!1),br().removeChild(t),e.current=null};e(i),e(o)}}),[t,u,s,r.always,r.resting,e]);const l=(0,a.useCallback)((()=>s(r.dragging)),[s,r.dragging]),f=(0,a.useCallback)((e=>{s("DROP"!==e?r.userCancel:r.dropAnimating)}),[s,r.dropAnimating,r.userCancel]),p=(0,a.useCallback)((()=>{o.current&&s(r.resting)}),[s,r.resting]);return(0,a.useMemo)((()=>({dragging:l,dropping:f,resting:p})),[l,f,p])}(t,u),_=(0,a.useCallback)((e=>{In(p).dispatch(e)}),[]),S=(0,a.useMemo)((()=>(0,i.bindActionCreators)({publishWhileDragging:tt,updateDroppableScroll:nt,updateDroppableIsEnabled:it,updateDroppableIsCombineEnabled:ot,collectionStarting:rt},_)),[_]),E=function(){const e=(0,a.useMemo)(xr,[]);return(0,n.useEffect)((()=>function(){n.default.version.startsWith("16")||n.default.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()}),[e]),e}(),w=(0,a.useMemo)((()=>Gt(E,S)),[E,S]),O=(0,a.useMemo)((()=>lr({scrollWindow:$t,scrollDroppable:w.scrollDroppable,getAutoScrollerOptions:m,...(0,i.bindActionCreators)({move:at},_)})),[w.scrollDroppable,_,m]),x=function(e){const t=(0,n.useRef)({}),r=(0,n.useRef)(null),i=(0,n.useRef)(null),o=(0,n.useRef)(!1),s=(0,a.useCallback)((function(e,r){const n={id:e,focus:r};return t.current[e]=n,function(){const r=t.current;r[e]!==n&&delete r[e]}}),[]),c=(0,a.useCallback)((function(t){const r=Or(e,t);r&&r!==document.activeElement&&r.focus()}),[e]),u=(0,a.useCallback)((function(e,t){r.current===e&&(r.current=t)}),[]),l=(0,a.useCallback)((function(){i.current||o.current&&(i.current=requestAnimationFrame((()=>{i.current=null;const e=r.current;e&&c(e)})))}),[c]),f=(0,a.useCallback)((function(e){r.current=null;const t=document.activeElement;t&&t.getAttribute(pr.draggableId)===e&&(r.current=e)}),[]);return vr((()=>(o.current=!0,function(){o.current=!1;const e=i.current;e&&cancelAnimationFrame(e)})),[]),(0,a.useMemo)((()=>({register:s,tryRecordFocus:f,tryRestoreFocusRecorded:l,tryShiftRecord:u})),[s,f,l,u])}(t),T=(0,a.useMemo)((()=>Ft({announce:g,autoScroller:O,dimensionMarshal:w,focusMarshal:x,getResponders:h,styleMarshal:b})),[g,O,w,x,h,b]);p.current=T;const k=(0,a.useCallback)((()=>{const e=In(p);"IDLE"!==e.getState().phase&&e.dispatch(ft())}),[]),C=(0,a.useCallback)((()=>{const e=In(p).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging}),[]);r((0,a.useMemo)((()=>({isDragging:C,tryAbort:k})),[C,k]));const I=(0,a.useCallback)((e=>Vt(In(p).getState(),e)),[]),R=(0,a.useCallback)((()=>De(In(p).getState())),[]),A=(0,a.useMemo)((()=>({marshal:w,focus:x,contextId:t,canLift:I,isMovementAllowed:R,dragHandleUsageInstructionsId:v,registry:E})),[t,w,v,x,I,R,E]);return Tn({contextId:t,store:T,registry:E,customSensors:s||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)((()=>k),[k]),n.default.createElement(Dr.Provider,{value:A},n.default.createElement(o.Provider,{context:Tr,store:T},e.children))}let An=0;var Pn="useId"in n.default?function(){return n.default.useId()}:function(){return(0,a.useMemo)((()=>""+An++),[])};function Dn(){"useId"in n.default||(An=0,Rr=0)}function Nn(e){const t=Pn(),r=e.dragHandleUsageInstructions||O.dragHandleUsageInstructions;return n.default.createElement(v,null,(i=>n.default.createElement(Rn,{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,autoScrollerOptions:e.autoScrollerOptions},e.children)))}const Mn={dragging:5e3,dropAnimating:4500},Ln=(e,t)=>t?_t.drop(t.duration):e?_t.snap:_t.fluid,jn=(e,t)=>{if(e)return t?gt.drop:gt.combining},Bn=e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode;function Fn(e){return"DRAGGING"===e.type?function(e){const t=e.dimension.client,{offset:r,combineWith:n,dropping:i}=e,o=Boolean(n),a=Bn(e),s=Boolean(i),c=s?Et.drop(r,o):Et.moveTo(r);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Ln(a,i),transform:c,opacity:jn(o,s),zIndex:s?Mn.dropAnimating:Mn.dragging,pointerEvents:"none"}}(e):(t=e,{transform:Et.moveTo(t.offset),transition:t.shouldAnimateDisplacement?void 0:"none"});var t}function Un(e){const t=Pr("draggable"),{descriptor:r,registry:i,getDraggableRef:o,canDragInteractiveElements:c,shouldRespectForcePress:u,isEnabled:l}=e,f=(0,a.useMemo)((()=>({canDragInteractiveElements:c,shouldRespectForcePress:u,isEnabled:l})),[c,l,u]),p=(0,a.useCallback)((e=>{const t=o();return t||y(!1),function(e,t,r=x){const n=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=(0,s.calculateBox)(i,n),a=(0,s.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,a.useMemo)((()=>({uniqueId:t,descriptor:r,options:f,getDimension:p})),[r,p,f,t]),h=(0,n.useRef)(d),m=(0,n.useRef)(!0);vr((()=>(i.draggable.register(h.current),()=>i.draggable.unregister(h.current))),[i.draggable]),vr((()=>{if(m.current)return void(m.current=!1);const e=h.current;h.current=d,i.draggable.update(d,e)}),[d,i.draggable])}var Hn=n.default.createContext(null);function qn(e){const t=(0,n.useContext)(e);return t||y(!1),t}function zn(e){e.preventDefault()}var Wn=e=>{const t=(0,n.useRef)(null),r=(0,a.useCallback)(((e=null)=>{t.current=e}),[]),i=(0,a.useCallback)((()=>t.current),[]),{contextId:o,dragHandleUsageInstructionsId:s,registry:c}=qn(Dr),{type:u,droppableId:l}=qn(Hn),f=(0,a.useMemo)((()=>({id:e.draggableId,index:e.index,type:u,droppableId:l})),[e.draggableId,e.index,u,l]),{children:p,draggableId:d,isEnabled:h,shouldRespectForcePress:m,canDragInteractiveElements:g,isClone:y,mapped:v,dropAnimationFinished:b}=e;if(Mr(),Nr(),!y){Un((0,a.useMemo)((()=>({descriptor:f,registry:c,getDraggableRef:i,canDragInteractiveElements:g,shouldRespectForcePress:m,isEnabled:h})),[f,c,i,g,m,h]))}const _=(0,a.useMemo)((()=>h?{tabIndex:0,role:"button","aria-describedby":s,"data-rfd-drag-handle-draggable-id":d,"data-rfd-drag-handle-context-id":o,draggable:!1,onDragStart:zn}:null),[o,s,d,h]),S=(0,a.useCallback)((e=>{"DRAGGING"===v.type&&v.dropping&&"transform"===e.propertyName&&(n.default.version.startsWith("16")||n.default.version.startsWith("17")?b():(0,n.flushSync)(b))}),[b,v]),E=(0,a.useMemo)((()=>{const e=Fn(v),t="DRAGGING"===v.type&&v.dropping?S:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":o,"data-rfd-draggable-id":d,style:e,onTransitionEnd:t},dragHandleProps:_}}),[o,_,d,v,S,r]),w=(0,a.useMemo)((()=>({draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}})),[f.droppableId,f.id,f.index,f.type]);return n.default.createElement(n.default.Fragment,null,p(E,v.snapshot,w))},Gn=(e,t)=>e===t,Vn=e=>{const{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};function $n(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const Kn={mapped:{type:"SECONDARY",offset:x,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:$n(null)}};const Yn={dropAnimationFinished:ht},Qn=(0,o.connect)((()=>{const e=function(){const e=(0,c.default)(((e,t)=>({x:e,y:t}))),t=(0,c.default)(((e,t,r=null,n=null,i=null)=>({isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:r,combineWith:n,combineTargetFor:null}))),r=(0,c.default)(((e,r,n,i,o=null,a=null,s=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:r,offset:e,dimension:n,forceShouldAnimate:s,snapshot:t(r,i,o,a,null)}})));return(n,i)=>{if(jr(n)){if(n.critical.draggable.id!==i.draggableId)return null;const t=n.current.client.offset,a=n.dimensions.draggables[i.draggableId],s=Ae(n.impact),c=(o=n.impact).at&&"COMBINE"===o.at.type?o.at.combine.draggableId:null,u=n.forceShouldAnimate;return r(e(t.x,t.y),n.movementMode,a,i.isClone,s,c,u)}var o;if("DROP_ANIMATING"===n.phase){const e=n.completed;if(e.result.draggableId!==i.draggableId)return null;const r=i.isClone,o=n.dimensions.draggables[i.draggableId],a=e.result,s=a.mode,c=Vn(a),u=(e=>e.combine?e.combine.draggableId:null)(a),l={duration:n.dropDuration,curve:mt,moveTo:n.newHomeClientOffset,opacity:u?gt.drop:null,scale:u?yt.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:o,dropping:l,draggingOver:c,combineWith:u,mode:s,forceShouldAnimate:null,snapshot:t(s,r,c,u,l)}}}return null}}(),t=function(){const e=(0,c.default)(((e,t)=>({x:e,y:t}))),t=(0,c.default)($n),r=(0,c.default)(((e,r=null,n)=>({mapped:{type:"SECONDARY",offset:e,combineTargetFor:r,shouldAnimateDisplacement:n,snapshot:t(r)}}))),n=e=>e?r(x,e,!0):null,i=(t,i,o,a)=>{const s=o.displaced.visible[t],c=Boolean(a.inVirtualList&&a.effected[t]),u=G(o),l=u&&u.draggableId===t?i:null;if(!s){if(!c)return n(l);if(o.displaced.invisible[t])return null;const i=I(a.displacedBy.point),s=e(i.x,i.y);return r(s,l,!0)}if(c)return n(l);const f=o.displacedBy.point,p=e(f.x,f.y);return r(p,l,s.shouldAnimate)};return(e,t)=>{if(jr(e))return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){const r=e.completed;return r.result.draggableId===t.draggableId?null:i(t.draggableId,r.result.draggableId,r.impact,r.afterCritical)}return null}}();return(r,n)=>e(r,n)||t(r,n)||Kn}),Yn,null,{context:Tr,areStatePropsEqual:Gn})(Wn);var Xn=Qn;function Jn(e){return qn(Hn).isUsingCloneFor!==e.draggableId||e.isClone?n.default.createElement(Xn,e):null}function Zn(e){const t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,r=Boolean(e.disableInteractiveElementBlocking),i=Boolean(e.shouldRespectForcePress);return n.default.createElement(Jn,(0,l.default)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:i}))}const ei=e=>t=>e===t,ti=ei("scroll"),ri=ei("auto"),ni=(ei("visible"),(e,t)=>t(e.overflowX)||t(e.overflowY)),ii=e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return ni(r,ti)||ni(r,ri)},oi=e=>null==e||e===document.body||e===document.documentElement?null:ii(e)?e:oi(e.parentElement);var ai=e=>({x:e.scrollLeft,y:e.scrollTop});const si=e=>{if(!e)return!1;return"fixed"===window.getComputedStyle(e).position||si(e.parentElement)};var ci=({ref:e,descriptor:t,env:r,windowScroll:n,direction:i,isDropDisabled:o,isCombineEnabled:a,shouldClipSubject:c})=>{const u=r.closestScrollable,l=((e,t)=>{const r=(0,s.getBox)(e);if(!t)return r;if(e!==t)return r;const 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},c=(0,s.expand)(a,r.border);return(0,s.createBox)({borderBox:c,margin:r.margin,border:r.border,padding:r.padding})})(e,u),f=(0,s.withScroll)(l,n),p=(()=>{if(!u)return null;const e=(0,s.getBox)(u),t={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:e,page:(0,s.withScroll)(e,n),scroll:ai(u),scrollSize:t,shouldClipSubject:c}})(),d=(({descriptor:e,isEnabled:t,isCombineEnabled:r,isFixedOnPage:n,direction:i,client:o,page:a,closest:s})=>{const c=(()=>{if(!s)return null;const{scrollSize:e,client:t}=s,r=Ut({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:r,diff:{value:x,displacement:x}}}})(),u="vertical"===i?ee:te;return{descriptor:e,isCombineEnabled:r,isFixedOnPage:n,axis:u,isEnabled:t,client:o,page:a,frame:c,subject:j({page:a,withPlaceholder:null,axis:u,frame:c})}})({descriptor:t,isEnabled:!o,isCombineEnabled:a,isFixedOnPage:r.isFixedOnPage,direction:i,client:l,page:f,closest:p});return d};const ui={passive:!1},li={passive:!0};var fi=e=>e.shouldPublishImmediately?ui:li;const pi=e=>e&&e.env.closestScrollable||null;function di(e){const t=(0,n.useRef)(null),r=qn(Dr),i=Pr("droppable"),{registry:o,marshal:s}=r,l=Lr(e),f=(0,a.useMemo)((()=>({id:e.droppableId,type:e.type,mode:e.mode})),[e.droppableId,e.mode,e.type]),p=(0,n.useRef)(f),d=(0,a.useMemo)((()=>(0,c.default)(((e,r)=>{t.current||y(!1);const n={x:e,y:r};s.updateDroppableScroll(f.id,n)}))),[f.id,s]),h=(0,a.useCallback)((()=>{const e=t.current;return e&&e.env.closestScrollable?ai(e.env.closestScrollable):x}),[]),m=(0,a.useCallback)((()=>{const e=h();d(e.x,e.y)}),[h,d]),g=(0,a.useMemo)((()=>(0,u.default)(m)),[m]),v=(0,a.useCallback)((()=>{const e=t.current,r=pi(e);e&&r||y(!1);e.scrollOptions.shouldPublishImmediately?m():g()}),[g,m]),b=(0,a.useCallback)(((e,n)=>{t.current&&y(!1);const i=l.current,o=i.getDroppableRef();o||y(!1);const a=(e=>({closestScrollable:oi(e),isFixedOnPage:si(e)}))(o),s={ref:o,descriptor:f,env:a,scrollOptions:n};t.current=s;const c=ci({ref:o,descriptor:f,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),u=a.closestScrollable;return u&&(u.setAttribute(mr.contextId,r.contextId),u.addEventListener("scroll",v,fi(s.scrollOptions))),c}),[r.contextId,f,v,l]),_=(0,a.useCallback)((()=>{const e=t.current,r=pi(e);return e&&r||y(!1),ai(r)}),[]),S=(0,a.useCallback)((()=>{const e=t.current;e||y(!1);const r=pi(e);t.current=null,r&&(g.cancel(),r.removeAttribute(mr.contextId),r.removeEventListener("scroll",v,fi(e.scrollOptions)))}),[v,g]),E=(0,a.useCallback)((e=>{const r=t.current;r||y(!1);const n=pi(r);n||y(!1),n.scrollTop+=e.y,n.scrollLeft+=e.x}),[]),w=(0,a.useMemo)((()=>({getDimensionAndWatchScroll:b,getScrollWhileDragging:_,dragStopped:S,scroll:E})),[S,b,_,E]),O=(0,a.useMemo)((()=>({uniqueId:i,descriptor:f,callbacks:w})),[w,f,i]);vr((()=>(p.current=O.descriptor,o.droppable.register(O),()=>{t.current&&S(),o.droppable.unregister(O)})),[w,f,S,O,s,o.droppable]),vr((()=>{t.current&&s.updateDroppableIsEnabled(p.current.id,!e.isDropDisabled)}),[e.isDropDisabled,s]),vr((()=>{t.current&&s.updateDroppableIsCombineEnabled(p.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,s])}function hi(){}const mi={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},gi=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>{const n=(({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>e||"close"===r?mi:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin})({isAnimatingOpenOnMount:e,placeholder:t,animate:r});return{display:t.display,boxSizing:"border-box",width:n.width,height:n.height,marginTop:n.margin.top,marginRight:n.margin.right,marginBottom:n.margin.bottom,marginLeft:n.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?_t.placeholder:null}};var yi=n.default.memo((e=>{const t=(0,n.useRef)(null),r=(0,a.useCallback)((()=>{t.current&&(clearTimeout(t.current),t.current=null)}),[]),{animate:i,onTransitionEnd:o,onClose:s,contextId:c}=e,[u,l]=(0,n.useState)("open"===e.animate);(0,n.useEffect)((()=>u?"open"!==i?(r(),l(!1),hi):t.current?hi:(t.current=setTimeout((()=>{t.current=null,l(!1)})),r):hi),[i,u,r]);const f=(0,a.useCallback)((e=>{"height"===e.propertyName&&(o(),"close"===i&&s())}),[i,s,o]),p=gi({isAnimatingOpenOnMount:u,animate:e.animate,placeholder:e.placeholder});return n.default.createElement(e.placeholder.tagName,{style:p,"data-rfd-placeholder-context-id":c,onTransitionEnd:f,ref:e.innerRef})}));class vi extends n.default.PureComponent{constructor(...e){super(...e),this.state={isVisible:Boolean(this.props.on),data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(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"}}render(){if(!this.state.isVisible)return null;const e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}}var bi=e=>{const t=(0,n.useContext)(Dr);t||y(!1);const{contextId:r,isMovementAllowed:i}=t,o=(0,n.useRef)(null),s=(0,n.useRef)(null),{children:c,droppableId:u,type:l,mode:f,direction:p,ignoreContainerClipping:d,isDropDisabled:h,isCombineEnabled:m,snapshot:g,useClone:v,updateViewportMaxScroll:b,getContainerForClone:_}=e,S=(0,a.useCallback)((()=>o.current),[]),E=(0,a.useCallback)(((e=null)=>{o.current=e}),[]),w=((0,a.useCallback)((()=>s.current),[]),(0,a.useCallback)(((e=null)=>{s.current=e}),[]));Mr();const O=(0,a.useCallback)((()=>{i()&&b({maxScroll:qt()})}),[i,b]);di({droppableId:u,type:l,mode:f,direction:p,isDropDisabled:h,isCombineEnabled:m,ignoreContainerClipping:d,getDroppableRef:S});const x=(0,a.useMemo)((()=>n.default.createElement(vi,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(({onClose:e,data:t,animate:i})=>n.default.createElement(yi,{placeholder:t,onClose:e,innerRef:w,animate:i,contextId:r,onTransitionEnd:O})))),[r,O,e.placeholder,e.shouldAnimatePlaceholder,w]),T=(0,a.useMemo)((()=>({innerRef:E,placeholder:x,droppableProps:{"data-rfd-droppable-id":u,"data-rfd-droppable-context-id":r}})),[r,u,x,E]),k=v?v.dragging.draggableId:null,C=(0,a.useMemo)((()=>({droppableId:u,type:l,isUsingCloneFor:k})),[u,k,l]);return n.default.createElement(Hn.Provider,{value:C},c(T,g),function(){if(!v)return null;const{dragging:e,render:t}=v,r=n.default.createElement(Jn,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},((r,n)=>t(r,n,e)));return n.default.createPortal(r,_())}())};const _i={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||y(!1),document.body}},Si=e=>{let t,r={...e};for(t in _i)void 0===e[t]&&(r={...r,[t]:_i[t]});return r},Ei=(e,t)=>e===t.droppable.type,wi=(e,t)=>t.draggables[e.draggable.id],Oi={updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})};var xi=(0,o.connect)((()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=(0,c.default)((e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}))),n=(0,c.default)(((n,i,o,a,s,c)=>{const u=s.descriptor.id;if(s.descriptor.droppableId===n){const e=c?{render:c,dragging:r(s.descriptor)}:null,t={isDraggingOver:o,draggingOverWith:o?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:t,useClone:e}}if(!i)return t;if(!a)return e;const l={isDraggingOver:o,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:l,useClone:null}}));return(r,i)=>{const o=Si(i),a=o.droppableId,s=o.type,c=!o.isDropDisabled,u=o.renderClone;if(jr(r)){const e=r.critical;if(!Ei(s,e))return t;const i=wi(e,r.dimensions),o=Ae(r.impact)===a;return n(a,c,o,o,i,u)}if("DROP_ANIMATING"===r.phase){const e=r.completed;if(!Ei(s,e.critical))return t;const i=wi(e.critical,r.dimensions);return n(a,c,Vn(e.result)===a,Ae(e.impact)===a,i,u)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){const n=r.completed;if(!Ei(s,n.critical))return t;const i=Ae(n.impact)===a,o=Boolean(n.impact.at&&"COMBINE"===n.impact.at.type),c=n.critical.droppable.id===a;return i?o?e:t:c?e:t}return t}}),Oi,((e,t,r)=>({...Si(r),...e,...t})),{context:Tr,areStatePropsEqual:Gn})(bi)},(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:()=>u,legacy_createStore:()=>l});var n=r(2340);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 c(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 u(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(u)(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(!c(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=u;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,c=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<c.length;s++){var u=c[s],l=r[u],f=e[u],p=l(f,t);if(void 0===p){t&&t.type;throw new Error(i(14))}o[u]=p,n=n||p!==f}return(n=n||c.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:()=>u.Provider,ReactReduxContext:()=>u.ReactReduxContext,batch:()=>o.unstable_batchedUpdates,connect:()=>u.connect,createDispatchHook:()=>u.createDispatchHook,createSelectorHook:()=>u.createSelectorHook,createStoreHook:()=>u.createStoreHook,shallowEqual:()=>u.shallowEqual,useDispatch:()=>u.useDispatch,useSelector:()=>u.useSelector,useStore:()=>u.useStore});var n=r(2342),i=r(2344),o=r(2346),a=r(2347),s=r(2348),c=r(2352),u=r(2372);(0,s.initializeUseSelector)(i.useSyncExternalStoreWithSelector),(0,c.initializeConnect)(n.useSyncExternalStore),(0,a.setBatch)(o.unstable_batchedUpdates)},(e,t,r)=>{"use strict";e.exports=r(2343)},(e,t,r)=>{"use strict";
/**
 * @license React
 * use-sync-external-store-shim.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 n=r(270);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,l=n[1];return s((function(){i.value=r,i.getSnapshot=t,u(i)&&l({inst:i})}),[e,r,t]),a((function(){return u(i)&&l({inst:i}),e((function(){u(i)&&l({inst:i})}))}),[e]),c(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},(e,t,r)=>{"use strict";e.exports=r(2345)},(e,t,r)=>{"use strict";
/**
 * @license React
 * use-sync-external-store-shim/with-selector.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 n=r(270),i=r(2342);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=n.useRef,c=n.useEffect,u=n.useMemo,l=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var f=s(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=u((function(){function e(e){if(!c){if(c=!0,a=e,e=n(e),void 0!==i&&p.hasValue){var t=p.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var r=n(e);return void 0!==i&&i(t,r)?t:(a=e,s=r)}var a,s,c=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,r,n,i]);var d=a(e,f[0],f[1]);return c((function(){p.hasValue=!0,p.value=d}),[d]),l(d),d}},(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,{getBatch:()=>o,setBatch:()=>i});let n=function(e){e()};const i=e=>n=e,o=()=>n},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createSelectorHook:()=>u,initializeUseSelector:()=>s,useSelector:()=>l});var n=r(270),i=r(2349),o=r(2350);let a=r(2351).notInitialized;const s=e=>{a=e},c=(e,t)=>e===t;function u(e=o.ReactReduxContext){const t=e===o.ReactReduxContext?i.useReduxContext:(0,i.createReduxContextHook)(e);return function(e,r={}){const{equalityFn:i=c,stabilityCheck:o,noopCheck:s}="function"==typeof r?{equalityFn:r}:r;const{store:u,subscription:l,getServerState:f,stabilityCheck:p,noopCheck:d}=t(),h=((0,n.useRef)(!0),(0,n.useCallback)({[e.name]:t=>e(t)}[e.name],[e,p,o])),m=a(l.addNestedSub,u.getState,f||u.getState,h,i);return(0,n.useDebugValue)(m),m}}const l=u()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createReduxContextHook:()=>o,useReduxContext:()=>a});var n=r(270),i=r(2350);function o(e=i.ReactReduxContext){return function(){return(0,n.useContext)(e)}}const a=o()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ReactReduxContext:()=>s,default:()=>c});var n=r(270);const i=Symbol.for("react-redux-context"),o="undefined"!=typeof globalThis?globalThis:{};function a(){var e;if(!n.createContext)return{};const t=null!=(e=o[i])?e:o[i]=new Map;let r=t.get(n.createContext);return r||(r=n.createContext(null),t.set(n.createContext,r)),r}const s=a(),c=s},(e,t,r)=>{"use strict";r.r(t),r.d(t,{notInitialized:()=>n});const n=()=>{throw new Error("uSES not initialized!")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O,initializeConnect:()=>_});var n=r(1409),i=r(678),o=r(2353),a=r.n(o),s=r(270),c=r(2356),u=r(2358),l=r(2361),f=r(2367),p=r(2368),d=r(2369),h=r(2370),m=r(2371),g=(r(2360),r(2350)),y=r(2351);const v=["reactReduxForwardedRef"];let b=y.notInitialized;const _=e=>{b=e},S=[null,null];function E(e,t,r,n,i,o){e.current=n,r.current=!1,i.current&&(i.current=null,o())}function w(e,t){return e===t}const O=function(e,t,r,{pure:o,areStatesEqual:y=w,areOwnPropsEqual:_=m.default,areStatePropsEqual:O=m.default,areMergedPropsEqual:x=m.default,forwardRef:T=!1,context:k=g.ReactReduxContext}={}){const C=k,I=(0,f.mapStateToPropsFactory)(e),R=(0,l.mapDispatchToPropsFactory)(t),A=(0,p.mergePropsFactory)(r),P=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",r=`Connect(${t})`,o={shouldHandleStateChanges:P,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:I,initMapDispatchToProps:R,initMergeProps:A,areStatesEqual:y,areStatePropsEqual:O,areOwnPropsEqual:_,areMergedPropsEqual:x};function l(t){const[r,a,l]=s.useMemo((()=>{const{reactReduxForwardedRef:e}=t,r=(0,i.default)(t,v);return[t.context,e,r]}),[t]),f=s.useMemo((()=>r&&r.Consumer&&(0,c.isContextConsumer)(s.createElement(r.Consumer,null))?r:C),[r,C]),p=s.useContext(f),m=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),g=Boolean(p)&&Boolean(p.store);const y=m?t.store:p.store,_=g?p.getServerState:y.getState,w=s.useMemo((()=>(0,u.default)(y.dispatch,o)),[y]),[O,x]=s.useMemo((()=>{if(!P)return S;const e=(0,d.createSubscription)(y,m?void 0:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[y,m,p]),T=s.useMemo((()=>m?p:(0,n.default)({},p,{subscription:O})),[m,p,O]),k=s.useRef(),I=s.useRef(l),R=s.useRef(),A=s.useRef(!1),D=(s.useRef(!1),s.useRef(!1)),N=s.useRef();(0,h.useIsomorphicLayoutEffect)((()=>(D.current=!0,()=>{D.current=!1})),[]);const M=s.useMemo((()=>()=>R.current&&l===I.current?R.current:w(y.getState(),l)),[y,l]),L=s.useMemo((()=>e=>O?function(e,t,r,n,i,o,a,s,c,u,l){if(!e)return()=>{};let f=!1,p=null;const d=()=>{if(f||!s.current)return;const e=t.getState();let r,d;try{r=n(e,i.current)}catch(e){d=e,p=e}d||(p=null),r===o.current?a.current||u():(o.current=r,c.current=r,a.current=!0,l())};return r.onStateChange=d,r.trySubscribe(),d(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,p)throw p}}(P,y,O,w,I,k,A,D,R,x,e):()=>{}),[O]);var j,B,F;let U;j=E,B=[I,k,A,l,R,x],(0,h.useIsomorphicLayoutEffect)((()=>j(...B)),F);try{U=b(L,M,_?()=>w(_(),l):M)}catch(e){throw N.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${N.current.stack}\n\n`),e}(0,h.useIsomorphicLayoutEffect)((()=>{N.current=void 0,R.current=void 0,k.current=U}));const H=s.useMemo((()=>s.createElement(e,(0,n.default)({},U,{ref:a}))),[a,e,U]);return s.useMemo((()=>P?s.createElement(f.Provider,{value:T},H):H),[f,H,T])}const f=s.memo(l);if(f.WrappedComponent=e,f.displayName=l.displayName=r,T){const t=s.forwardRef((function(e,t){return s.createElement(f,(0,n.default)({},e,{reactReduxForwardedRef:t}))}));return t.displayName=r,t.WrappedComponent=e,a()(t,e)}return a()(f,e)}}},(e,t,r)=>{"use strict";var n=r(2354),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 c(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,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=c(t),m=c(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{u(t,y,v)}catch(e){}}}}return t}},(e,t,r)=>{"use strict";e.exports=r(2355)},(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,c=r?Symbol.for("react.provider"):60109,u=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 u:case p:case g:case m:case c:return e;default:return t}}case i:return t}}}function E(e){return S(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,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)===u},t.isContextProvider=function(e){return S(e)===c},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===c||e.$$typeof===u||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(2357)},(e,t)=>{"use strict";
/**
 * @license React
 * 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,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case s:case a:case p:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case f:case m:case h:case c:return e;default:return t}}case i:return t}}}r=Symbol.for("react.module.reference"),t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=h,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.SuspenseList=d,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return y(e)===u},t.isContextProvider=function(e){return y(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return y(e)===f},t.isFragment=function(e){return y(e)===o},t.isLazy=function(e){return y(e)===m},t.isMemo=function(e){return y(e)===h},t.isPortal=function(e){return y(e)===i},t.isProfiler=function(e){return y(e)===s},t.isStrictMode=function(e){return y(e)===a},t.isSuspense=function(e){return y(e)===p},t.isSuspenseList=function(e){return y(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===p||e===d||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===r||void 0!==e.getModuleId)},t.typeOf=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a,pureFinalPropsSelectorFactory:()=>o});var n=r(678);r(2359);const i=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function o(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s,c,u,l,f,p=!1;function d(p,d){const h=!o(d,c),m=!i(p,s,d,c);return s=p,c=d,h&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(n,c)),f=r(u,l,c),f):h?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(n,c)),f=r(u,l,c),f):m?function(){const t=e(s,c),n=!a(t,u);return u=t,n&&(f=r(u,l,c)),f}():f}return function(i,o){return p?d(i,o):(s=i,c=o,u=e(s,c),l=t(n,c),f=r(u,l,c),p=!0,f)}}function a(e,t){let{initMapStateToProps:r,initMapDispatchToProps:a,initMergeProps:s}=t,c=(0,n.default)(t,i);return o(r(e,c),a(e,c),s(e,c),e,c)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2360);function i(e,t){if(!e)throw new Error(`Unexpected value for ${t} in connect.`);"mapStateToProps"!==t&&"mapDispatchToProps"!==t||Object.prototype.hasOwnProperty.call(e,"dependsOnOwnProps")||(0,n.default)(`The selector for ${t} of connect did not specify a value for dependsOnOwnProps.`)}function o(e,t,r){i(e,"mapStateToProps"),i(t,"mapDispatchToProps"),i(r,"mergeProps")}},(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,{mapDispatchToPropsFactory:()=>a});var n=r(2362),i=r(2363),o=r(2366);function a(e){return e&&"object"==typeof e?(0,i.wrapMapToPropsConstant)((t=>(0,n.default)(e,t))):e?"function"==typeof e?(0,i.wrapMapToPropsFunc)(e,"mapDispatchToProps"):(0,o.createInvalidArgFactory)(e,"mapDispatchToProps"):(0,i.wrapMapToPropsConstant)((e=>({dispatch:e})))}},(e,t,r)=>{"use strict";function n(e,t){const r={};for(const n in e){const i=e[n];"function"==typeof i&&(r[n]=(...e)=>t(i(...e)))}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(2364);function n(e){return function(t){const r=e(t);function n(){return r}return n.dependsOnOwnProps=!1,n}}function i(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function o(e,t){return function(t,{displayName:r}){const n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=i(e);let 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(2365),i=r(2360);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;let t=Object.getPrototypeOf(e);if(null===t)return!0;let r=t;for(;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,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}r.r(t),r.d(t,{createInvalidArgFactory:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{mapStateToPropsFactory:()=>o});var n=r(2363),i=r(2366);function o(e){return e?"function"==typeof e?(0,n.wrapMapToPropsFunc)(e,"mapStateToProps"):(0,i.createInvalidArgFactory)(e,"mapStateToProps"):(0,n.wrapMapToPropsConstant)((()=>({})))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultMergeProps:()=>o,mergePropsFactory:()=>s,wrapMergePropsFunc:()=>a});var n=r(1409),i=(r(2364),r(2366));function o(e,t,r){return(0,n.default)({},r,e,t)}function a(e){return function(t,{displayName:r,areMergedPropsEqual:n}){let i,o=!1;return function(t,r,a){const s=e(t,r,a);return o?n(s,i)||(i=s):(o=!0,i=s),i}}}function s(e){return e?"function"==typeof e?a(e):(0,i.createInvalidArgFactory)(e,"mergeProps"):()=>o}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createSubscription:()=>o});var n=r(2347);const i={notify(){},get:()=>[]};function o(e,t){let r,o=i,a=0,s=!1;function c(){f.onStateChange&&f.onStateChange()}function u(){a++,r||(r=t?t.addNestedSub(c):e.subscribe(c),o=function(){const e=(0,n.getBatch)();let t=null,r=null;return{clear(){t=null,r=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let n=!0,i=r={callback:e,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){n&&null!==t&&(n=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}function l(){a--,r&&0===a&&(r(),r=void 0,o.clear(),o=i)}const f={addNestedSub:function(e){u();const t=o.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),l())}},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:c,isSubscribed:function(){return s},trySubscribe:function(){s||(s=!0,u())},tryUnsubscribe:function(){s&&(s=!1,l())},getListeners:()=>o};return f}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{canUseDOM:()=>i,useIsomorphicLayoutEffect:()=>o});var n=r(270);const i=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),o=i?n.useLayoutEffect:n.useEffect},(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;const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!n(e[r[i]],t[r[i]]))return!1;return!0}r.r(t),r.d(t,{default:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Provider:()=>n.default,ReactReduxContext:()=>o.ReactReduxContext,connect:()=>i.default,createDispatchHook:()=>a.createDispatchHook,createSelectorHook:()=>s.createSelectorHook,createStoreHook:()=>c.createStoreHook,shallowEqual:()=>u.default,useDispatch:()=>a.useDispatch,useSelector:()=>s.useSelector,useStore:()=>c.useStore});var n=r(2373),i=r(2352),o=r(2350),a=r(2374),s=r(2348),c=r(2375),u=r(2371);r(2376)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(270),i=r(2350),o=r(2369),a=r(2370);const s=function({store:e,context:t,children:r,serverState:s,stabilityCheck:c="once",noopCheck:u="once"}){const l=n.useMemo((()=>{const t=(0,o.createSubscription)(e);return{store:e,subscription:t,getServerState:s?()=>s:void 0,stabilityCheck:c,noopCheck:u}}),[e,s,c,u]),f=n.useMemo((()=>e.getState()),[e]);(0,a.useIsomorphicLayoutEffect)((()=>{const{subscription:t}=l;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),f!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[l,f]);const p=t||i.ReactReduxContext;return n.createElement(p.Provider,{value:l},r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createDispatchHook:()=>o,useDispatch:()=>a});var n=r(2350),i=r(2375);function o(e=n.ReactReduxContext){const t=e===n.ReactReduxContext?i.useStore:(0,i.createStoreHook)(e);return function(){return t().dispatch}}const a=o()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createStoreHook:()=>o,useStore:()=>a});var n=r(2350),i=r(2349);function o(e=n.ReactReduxContext){const t=e===n.ReactReduxContext?i.useReduxContext:(0,i.createReduxContextHook)(e);return function(){const{store:e}=t();return e}}const a=o()},(e,t,r)=>{"use strict";r.r(t)},(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:()=>c,expand:()=>o,getBox:()=>d,getRect:()=>i,offset:()=>l,shrink:()=>a,withScroll:()=>f});var n=r(2379),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},c=function(e){var t=e.borderBox,r=e.margin,n=void 0===r?s:r,c=e.border,u=void 0===c?s:c,l=e.padding,f=void 0===l?s:l,p=i(o(t,n)),d=i(a(t,u)),h=i(a(d,f));return{marginBox:p,borderBox:i(t),paddingBox:d,contentBox:h,margin:n,border:u,padding:f}},u=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,u=(n=t,{top:(r=i).top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x});return c({borderBox:u,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:u(t.marginTop),right:u(t.marginRight),bottom:u(t.marginBottom),left:u(t.marginLeft)},n={top:u(t.paddingTop),right:u(t.paddingRight),bottom:u(t.paddingBottom),left:u(t.paddingLeft)},i={top:u(t.borderTopWidth),right:u(t.borderRightWidth),bottom:u(t.borderBottomWidth),left:u(t.borderLeftWidth)};return c({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}function o(e,t){void 0===t&&(t=i);var r=null;function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var o=e.apply(this,n);return r={lastResult:o,lastArgs:n,lastThis:this},o}return n.clear=function(){r=null},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