D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
psa
/
admin
/
cp
/
public
/
javascript
/
Filename :
vendors.js
back
Copy
(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),p=l.enforce,f=l.get,h=String,d=Object.defineProperty,m=n("".slice),y=n("".replace),g=n([].join),v=s&&!i((function(){return 8!==d((function(){}),"length",{value:8}).length})),b=String(String).split("String"),S=e.exports=function(e,t,r){"Symbol("===m(h(t),0,7)&&(t="["+y(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(s?d(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=p(e);return a(n,"source")||(n.source=g(b,"string"==typeof t?t:"")),e};Function.prototype.toString=S((function(){return o(this)&&f(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),p=r(22),f=r(52),h=r(53),d="Object already initialized",m=s.TypeError,y=s.WeakMap;if(a||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new m(d);return t.facade=e,g.set(e,t),t},i=function(e){return g.get(e)||{}},o=function(e){return g.has(e)}}else{var v=f("state");h[v]=!0,n=function(e,t){if(l(e,v))throw new m(d);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,p="enumerable",f="configurable",h="writable";t.f=n?o?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=l(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:p in r?r[p]:n[p],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"),p=c?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return o(l,e)||(l[e]=s&&o(u,e)?u[e]:p("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,p,f,h,d=e.target,m=e.global,y=e.stat;if(r=m?n:y?n[d]||s(d,{}):n[d]&&n[d].prototype)for(l in t){if(f=t[l],p=e.dontCallGetSet?(h=i(r,l))&&h.value:r[l],!u(m?l:d+(y?".":"#")+l,e.forced)&&void 0!==p){if(typeof f==typeof p)continue;c(f,p)}(e.sham||p&&p.sham)&&o(f,"sham",!0),a(r,l,f,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),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=s(e),t=c(t),l)try{return p(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 p=s[l];n(e,p)||r&&n(r,p)||c(e,p,u(t,p))}}},(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),p=r(16),f=r(10),h=r(81),d=r(82),m=r(31),y=r(83),g=r(84),v=r(85),b=s.setImmediate,S=s.clearImmediate,_=s.process,E=s.Dispatch,w=s.Function,x=s.MessageChannel,O=s.String,T=0,P={},C="onreadystatechange";f((function(){n=s.location}));var A=function(e){if(p(P,e)){var t=P[e];delete P[e],t()}},k=function(e){return function(){A(e)}},R=function(e){A(e.data)},I=function(e){s.postMessage(O(e),n.protocol+"//"+n.host)};b&&S||(b=function(e){y(arguments.length,1);var t=l(e)?e:w(e),r=d(arguments,1);return P[++T]=function(){c(t,void 0,r)},i(T),T},S=function(e){delete P[e]},v?i=function(e){_.nextTick(k(e))}:E&&E.now?i=function(e){E.now(k(e))}:x&&!g?(a=(o=new x).port2,o.port1.onmessage=R,i=u(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!f(I)?(i=I,s.addEventListener("message",R,!1)):i=C in m("script")?function(e){h.appendChild(m("script"))[C]=function(){h.removeChild(this),A(e)}}:function(e){setTimeout(k(e),0)}),e.exports={set:b,clear:S}},(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),p=i.Function,f=/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 f?function(n,i){var s=l(arguments.length,1)>r,c=a(n)?n:p(n),f=s?u(arguments,r):[],h=s?function(){o(c,this,f)}:c;return t?e(h,i):e(h)}: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,p=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=p.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)(p.ast,p.locales,p.formatters,p.formats,e,void 0,p.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=p.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(p.locales)[0]}},this.getAst=function(){return p.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 f=u||{},h=(f.formatters,(0,n.__rest)(f,["formatters"]));this.ast=e.__parse(t,(0,n.__assign)((0,n.__assign)({},h),{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:()=>M,__assign:()=>o,__asyncDelegator:()=>O,__asyncGenerator:()=>x,__asyncValues:()=>T,__await:()=>w,__awaiter:()=>d,__classPrivateFieldGet:()=>R,__classPrivateFieldIn:()=>D,__classPrivateFieldSet:()=>I,__createBinding:()=>y,__decorate:()=>s,__disposeResources:()=>F,__esDecorate:()=>u,__exportStar:()=>g,__extends:()=>i,__generator:()=>m,__importDefault:()=>k,__importStar:()=>A,__makeTemplateObject:()=>P,__metadata:()=>h,__param:()=>c,__propKey:()=>p,__read:()=>b,__rest:()=>a,__runInitializers:()=>l,__setFunctionName:()=>f,__spread:()=>S,__spreadArray:()=>E,__spreadArrays:()=>_,__values:()=>v,default:()=>L});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,p=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),f=!1,h=r.length-1;h>=0;h--){var d={};for(var m in n)d[m]="access"===m?{}:n[m];for(var m in n.access)d.access[m]=n.access[m];d.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var y=(0,r[h])("accessor"===c?{get:p.get,set:p.set}:p[u],d);if("accessor"===c){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw new TypeError("Object expected");(s=a(y.get))&&(p.get=s),(s=a(y.set))&&(p.set=s),(s=a(y.init))&&i.unshift(s)}else(s=a(y))&&("field"===c?i.unshift(s):p[u]=s)}l&&Object.defineProperty(l,n.name,p),f=!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 p(e){return"symbol"==typeof e?e:"".concat(e)}function f(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 h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(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 y=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 g(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||y(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 S(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function _(){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 x(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 O(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 P(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 A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&y(t,e,r);return C(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function R(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 I(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 M(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 N="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 F(e){function t(t){e.error=e.hasError?new N(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 L={__extends:i,__assign:o,__rest:a,__decorate:s,__param:c,__metadata:h,__awaiter:d,__generator:m,__createBinding:y,__exportStar:g,__values:v,__read:b,__spread:S,__spreadArrays:_,__spreadArray:E,__await:w,__asyncGenerator:x,__asyncDelegator:O,__asyncValues:T,__makeTemplateObject:P,__importStar:A,__importDefault:k,__classPrivateFieldGet:R,__classPrivateFieldSet:I,__classPrivateFieldIn:D,__addDisposableResource:M,__disposeResources:F}},(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:()=>k});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,"*")),p=new RegExp("".concat(s.SPACE_SEPARATOR_REGEX.source,"*$"));function f(e,t){return{start:e,end:t}}var h=!!String.prototype.startsWith&&"_a".startsWith("a",1),d=!!String.fromCodePoint,m=!!Object.fromEntries,y=!!String.prototype.codePointAt,g=!!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},S=!0;try{S="a"===(null===(n=C("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===n?void 0:n[0])}catch(e){S=!1}var _,E=h?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},w=d?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},x=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},O=y?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=g?function(e){return e.trimStart()}:function(e){return e.replace(l,"")},P=v?function(e){return e.trimEnd()}:function(e){return e.replace(p,"")};function C(e,t){return new RegExp(e,t)}if(S){var A=C("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");_=function(e,t){var r;return A.lastIndex=t,null!==(r=A.exec(e)[1])&&void 0!==r?r:""}}else _=function(e,t){for(var r=[];;){var n=O(e,t);if(void 0===n||I(n)||D(n))break;r.push(n),t+=n>=65536?2:1}return w.apply(void 0,r)};var k=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,f(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&R(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:f(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:f(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()||!R(this.char()))return this.error(o.ErrorKind.INVALID_TAG,f(c,this.clonePosition()));var u=this.clonePosition();return n!==this.parseTagName()?this.error(o.ErrorKind.UNMATCHED_CLOSING_TAG,f(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:a.TYPE.tag,value:n,children:s,location:f(r,this.clonePosition())},err:null}:this.error(o.ErrorKind.INVALID_TAG,f(c,this.clonePosition())))}return this.error(o.ErrorKind.UNCLOSED_TAG,f(r,this.clonePosition()))}return this.error(o.ErrorKind.INVALID_TAG,f(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=f(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&&(R(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,f(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(o.ErrorKind.EMPTY_ARGUMENT,f(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(o.ErrorKind.MALFORMED_ARGUMENT,f(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(o.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,f(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:a.TYPE.argument,value:n,location:f(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(o.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,f(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(o.ErrorKind.MALFORMED_ARGUMENT,f(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=_(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:f(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var s,l=this.clonePosition(),p=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(p){case"":return this.error(o.ErrorKind.EXPECT_ARGUMENT_TYPE,f(l,h));case"number":case"date":case"time":this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var m=this.clonePosition();if((O=this.parseSimpleArgStyleIfPossible()).err)return O;if(0===(b=P(O.val)).length)return this.error(o.ErrorKind.EXPECT_ARGUMENT_STYLE,f(this.clonePosition(),this.clonePosition()));d={style:b,styleLocation:f(m,this.clonePosition())}}if((C=this.tryParseArgumentClose(n)).err)return C;var y=f(n,this.clonePosition());if(d&&E(null==d?void 0:d.style,"::",0)){var g=T(d.style.slice(2));if("number"===p)return(O=this.parseNumberSkeletonFromString(g,d.styleLocation)).err?O:{val:{type:a.TYPE.number,value:r,location:y,style:O.val},err:null};if(0===g.length)return this.error(o.ErrorKind.EXPECT_DATE_TIME_SKELETON,y);var v=g;this.locale&&(v=(0,u.getBestPattern)(g,this.locale));var b={type:a.SKELETON_TYPE.dateTime,pattern:v,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?(0,c.parseDateTimeSkeleton)(v):{}};return{val:{type:"date"===p?a.TYPE.date:a.TYPE.time,value:r,location:y,style:b},err:null}}return{val:{type:"number"===p?a.TYPE.number:"date"===p?a.TYPE.date:a.TYPE.time,value:r,location:y,style:null!==(s=null==d?void 0:d.style)&&void 0!==s?s:null},err:null};case"plural":case"selectordinal":case"select":var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(o.ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS,f(S,(0,i.__assign)({},S)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),w=0;if("select"!==p&&"offset"===_.value){if(!this.bumpIf(":"))return this.error(o.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f(this.clonePosition(),this.clonePosition()));var O;if(this.bumpSpace(),(O=this.tryParseDecimalInteger(o.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,o.ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return O;this.bumpSpace(),_=this.parseIdentifierIfPossible(),w=O.val}var C,A=this.tryParsePluralOrSelectOptions(e,p,t,_);if(A.err)return A;if((C=this.tryParseArgumentClose(n)).err)return C;var k=f(n,this.clonePosition());return"select"===p?{val:{type:a.TYPE.select,value:r,options:x(A.val),location:k},err:null}:{val:{type:a.TYPE.plural,value:r,options:x(A.val),offset:w,pluralType:"plural"===p?"cardinal":"ordinal",location:k},err:null};default:return this.error(o.ErrorKind.INVALID_ARGUMENT_TYPE,f(l,h))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(o.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,f(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,f(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 p=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(o.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,o.ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=f(p,this.clonePosition()),u=this.message.slice(p.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 d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?o.ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:o.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,f(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,r);if(m.err)return m;var y=this.tryParseArgumentClose(d);if(y.err)return y;s.push([u,{value:m.val,location:f(d,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,f(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(o.ErrorKind.MISSING_OTHER_CLAUSE,f(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=f(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=O(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()&&I(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 R(e){return e>=97&&e<=122||e>=65&&e<=90}function I(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 p(e){return e.type===n.plural}function f(e){return e.type===n.pound}function h(e){return e.type===n.tag}function d(e){return!(!e||"object"!=typeof e||e.type!==i.number)}function m(e){return!(!e||"object"!=typeof e||e.type!==i.dateTime)}function y(e){return{type:n.literal,value:e}}function g(e,t){return{type:n.number,value:e,style:t}}r.r(t),r.d(t,{SKELETON_TYPE:()=>i,TYPE:()=>n,createLiteralElement:()=>y,createNumberElement:()=>g,isArgumentElement:()=>a,isDateElement:()=>c,isDateTimeSkeleton:()=>m,isLiteralElement:()=>o,isNumberElement:()=>s,isNumberSkeleton:()=>d,isPluralElement:()=>p,isPoundElement:()=>f,isSelectElement:()=>l,isTagElement:()=>h,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:()=>d,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 p(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 f(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 h(e){var t=p(e);return t||{}}function d(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),h(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),h(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 d=o.options[0];"w"===d?t=(0,n.__assign)((0,n.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):d&&(t=(0,n.__assign)((0,n.__assign)({},t),l(d)))}else if(s.test(o.stem))t=(0,n.__assign)((0,n.__assign)({},t),l(o.stem));else{var m=p(o.stem);m&&(t=(0,n.__assign)((0,n.__assign)({},t),m));var y=f(o.stem);y&&(t=(0,n.__assign)((0,n.__assign)({},t),y))}}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:()=>p});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}},p={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,p){if(1===e.length&&(0,i.isLiteralElement)(e[0]))return[{type:n.literal,value:e[0].value}];for(var f=[],h=0,d=e;h<d.length;h++){var m=d[h];if((0,i.isLiteralElement)(m))f.push({type:n.literal,value:m.value});else if((0,i.isPoundElement)(m))"number"==typeof l&&f.push({type:n.literal,value:r.getNumberFormat(t).format(l)});else{var y=m.value;if(!u||!(y in u))throw new o.MissingValueError(y,p);var g=u[y];if((0,i.isArgumentElement)(m))g&&"string"!=typeof g&&"number"!=typeof g||(g="string"==typeof g||"number"==typeof g?String(g):""),f.push({type:"string"==typeof g?n.literal:n.object,value:g});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;f.push({type:n.literal,value:r.getDateTimeFormat(t,v).format(g)})}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;f.push({type:n.literal,value:r.getDateTimeFormat(t,v).format(g)})}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&&(g*=v.scale||1),f.push({type:n.literal,value:r.getNumberFormat(t,v).format(g)})}else{if((0,i.isTagElement)(m)){var b=m.children,S=m.value,_=u[S];if(!a(_))throw new o.InvalidValueTypeError(S,"function",p);var E=_(s(b,t,r,c,u,l).map((function(e){return e.value})));Array.isArray(E)||(E=[E]),f.push.apply(f,E.map((function(e){return{type:"string"==typeof e?n.literal:n.object,value:e}})))}if((0,i.isSelectElement)(m)){if(!(w=m.options[g]||m.options.other))throw new o.InvalidValueError(m.value,g,Object.keys(m.options),p);f.push.apply(f,s(w.value,t,r,c,u))}else if((0,i.isPluralElement)(m)){var w;if(!(w=m.options["=".concat(g)])){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,p);var x=r.getPluralRules(t,{type:m.pluralType}).select(g-(m.offset||0));w=m.options[x]||m.options.other}if(!w)throw new o.InvalidValueError(m.value,g,Object.keys(m.options),p);f.push.apply(f,s(w.value,t,r,c,u,g-(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}),[])}(f)}!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(273);return e.paginators=r(274).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.Firehose},(e,t,r)=>{var n=r(122);n.crypto.lib=r(235),n.Buffer=r(238).Buffer,n.url=r(245),n.querystring=r(247),n.realClock=r(250),n.environment="js",n.createEventStream=r(251).createEventStream,n.isBrowser=function(){return!0},n.isNode=function(){return!1};var i=r(123);if(e.exports=i,r(154),r(155),r(257),r(263),r(264),r(265),r(269),i.XML.Parser=r(270),r(271),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(224).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(224).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(224);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(225).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(208),r(211),r(212),r(213),r(222),r(223),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 p(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 f(){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 h(){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 d(){h.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:p,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:f,base64:d,binary:h},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:p,StringShape:f,BooleanShape:m,Base64Shape:d},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)p=new c,e.data[s.payload]=i.createEventStream(2===n.HttpClient.streamsApiVersion?e.httpResponse.stream:l,p,u);else if("structure"===u.type||"list"===u.type){var p=new c;e.data[s.payload]=p.parse(l,u)}else"binary"===u.type||u.isStreaming?e.data[s.payload]=l:e.data[s.payload]=u.toType(l)}else{var f=e.data;a.extractData(e),e.data=i.merge(f,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 p=(t=new n.XML.Parser).parse(a.toString(),c);i.update(e.data,p)}}}},(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,"&").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}}},(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,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}}},(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,p=u.memoizedProperty;e.exports=function(e,t){var r=this;e=e||{},(t=t||{}).api=this,e.metadata=e.metadata||{};var f=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),f&&c[f]&&l(this,"xmlNoDefaultLists",c[f].xmlNoDefaultLists,!1),p(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),p="";return s&&(p+="[33m"),p+="[AWS "+t.service.serviceIdentifier+" "+c,p+=" "+o.toString()+"s "+e.retryCount+" retries]",s&&(p+="[0;1m"),p+=" "+n.util.string.lowerFirst(t.operation),p+="("+l+")",s&&(p+="[0m"),p}();"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 p=t.makeRequest(r.endpointOperation,{Operation:o.name,Identifiers:s});f(p),p.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),p.removeListener("retry",n.EventListeners.Core.RETRY_CHECK),n.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}]),p.send((function(e,t){t&&t.Endpoints?n.endpointCache.put(u,t.Endpoints):e&&n.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}])}))}}var l={};function p(e,t){var r=e.service,o=r.api,s=o.operations?o.operations[e.operation]:void 0,u=s?s.input:void 0,p=c(e,u),h=a(e);Object.keys(p).length>0&&(h=i.update(h,p),s&&(h.operation=s.name));var d=n.EndpointCache.getKeyString(h),m=n.endpointCache.get(d);if(m&&1===m.length&&""===m[0].Address)return l[d]||(l[d]=[]),void l[d].push({request:e,callback:t});if(m&&m.length>0)e.httpRequest.updateEndpoint(m[0].Address),t();else{var y=r.makeRequest(o.endpointOperation,{Operation:s.name,Identifiers:p});y.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),f(y),n.endpointCache.put(d,[{Address:"",CachePeriodInMinutes:60}]),y.send((function(r,o){if(r){if(e.response.error=i.error(r,{retryable:!1}),n.endpointCache.remove(h),l[d]){var a=l[d];i.arrayEach(a,(function(e){e.request.response.error=i.error(r,{retryable:!1}),e.callback()})),delete l[d]}}else if(o&&(n.endpointCache.put(d,o.Endpoints),e.httpRequest.updateEndpoint(o.Endpoints[0].Address),l[d])){a=l[d];i.arrayEach(a,(function(e){e.request.httpRequest.updateEndpoint(o.Endpoints[0].Address),e.callback()})),delete l[d]}t()}))}}function f(e){var t=e.service.api.apiVersion;t&&!e.httpRequest.headers["x-amz-api-version"]&&(e.httpRequest.headers["x-amz-api-version"]=t)}function h(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 d(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!d(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!d(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",h)),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",h),p(e,t);break;default:t()}},requiredDiscoverEndpoint:p,optionalDiscoverEndpoint:u,marshallCustomIdentifiers:c,getCacheKey:a,invalidateCachedEndpoint:h}},(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])y(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),p(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 p(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return v(i)||(i=p(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(g(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(y(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 f(r);if(0===a.length){if(x(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(S(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 f(r)}var u,l="",_=!1,O=["{","}"];(d(r)&&(_=!0,O=["[","]"]),x(r))&&(l=" [Function"+(r.name?": "+r.name:"")+"]");return S(r)&&(l=" "+RegExp.prototype.toString.call(r)),E(r)&&(l=" "+Date.prototype.toUTCString.call(r)),w(r)&&(l=" "+f(r)),0!==a.length||_&&0!=r.length?n<0?S(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=_?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)C(t,String(a))?o.push(h(e,t,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(h(e,t,r,n,i,!0))})),o}(e,r,n,s,a):a.map((function(t){return h(e,r,n,s,t,_)})),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,O)):O[0]+l+O[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function h(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=y(r)?p(e,c.value,null):p(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 d(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return void 0===e}function S(e){return _(e)&&"[object RegExp]"===O(e)}function _(e){return"object"==typeof e&&null!==e}function E(e){return _(e)&&"[object Date]"===O(e)}function w(e){return _(e)&&("[object Error]"===O(e)||e instanceof Error)}function x(e){return"function"==typeof e}function O(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=d,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=S,t.types.isRegExp=S,t.isObject=_,t.isDate=E,t.types.isDate=E,t.isError=w,t.types.isNativeError=w,t.isFunction=x,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(206);var P=["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(),P[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(207),t._extend=function(e,t){if(!t||!_(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var A="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function k(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(A&&e[A]){var t;if("function"!=typeof(t=e[A]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,A,{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)),A&&Object.defineProperty(t,A,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=A,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(k.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(195),o=r(196),a=r(205);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),p=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(c)var d=s(BigInt.prototype.valueOf);if(u)var m=s(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===l(e)}function v(e){return"[object Set]"===l(e)}function b(e){return"[object WeakMap]"===l(e)}function S(e){return"[object WeakSet]"===l(e)}function _(e){return"[object ArrayBuffer]"===l(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function w(e){return"[object DataView]"===l(e)}function x(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)||x(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)},g.working="undefined"!=typeof Map&&g(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(g.working?g(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)},S.working="undefined"!=typeof WeakSet&&S(new WeakSet),t.isWeakSet=function(e){return S(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=E,w.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&w(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=x;var O="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function T(e){return"[object SharedArrayBuffer]"===l(e)}function P(e){return void 0!==O&&(void 0===T.working&&(T.working=T(new O)),T.working?T(e):e instanceof O)}function C(e){return y(e,p)}function A(e){return y(e,f)}function k(e){return y(e,h)}function R(e){return c&&y(e,d)}function I(e){return u&&y(e,m)}t.isSharedArrayBuffer=P,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=A,t.isBooleanObject=k,t.isBigIntObject=R,t.isSymbolObject=I,t.isBoxedPrimitive=function(e){return C(e)||A(e)||k(e)||R(e)||I(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(E(e)||P(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(179),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),p=Function,f=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(e){h=null}var d=function(){throw new u},m=h?function(){try{return d}catch(e){try{return h(arguments,"callee").get}catch(e){return d}}}():d,y=r(173)(),g=r(175)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),b={},S="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&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%":p,"%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%":y&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&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&&y&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":S,"%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));_["%Error.prototype%"]=E}var w=function e(t){var r;if("%AsyncFunction%"===t)r=f("async function () {}");else if("%GeneratorFunction%"===t)r=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=f("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 _[t]=r,r},x={__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"]},O=r(176),T=r(178),P=O.call(Function.call,Array.prototype.concat),C=O.call(Function.apply,Array.prototype.splice),A=O.call(Function.call,String.prototype.replace),k=O.call(Function.call,String.prototype.slice),R=O.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,M=function(e,t){var r,n=e;if(T(x,n)&&(n="%"+(r=x[n])[0]+"%"),T(_,n)){var i=_[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===R(/^%?[^%]*%?$/,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=k(e,0,1),r=k(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 A(e,I,(function(e,t,r,i){n[n.length]=r?A(i,D,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=M("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],C(r,P([0,1],l)));for(var p=1,f=!0;p<r.length;p+=1){var d=r[p],m=k(d,0,1),y=k(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&f||(s=!0),T(_,o="%"+(n+="."+d)+"%"))a=_[o];else if(null!=a){if(!(d in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(h&&p+1>=r.length){var g=h(a,d);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else f=T(a,d),a=a[d];f&&!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(174);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},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=>{"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(177);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(176);e.exports=o.call(n,i)},(e,t,r)=>{"use strict";var n=r(176),i=r(165),o=r(180),a=r(171),s=i("%Function.prototype.apply%"),c=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||n.call(c,s),l=r(185),p=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+p(0,e.length-(arguments.length-1)),!0)};var f=function(){return u(n,s,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f},(e,t,r)=>{"use strict";var n=r(181),i=r(184),o=r(193)(),a=r(194),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,i=r(166),o=r(167),a=r(168),s=r(169),c=r(170),u=r(171),l=r(172),p=Function,f=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(e){h=null}var d=function(){throw new u},m=h?function(){try{return d}catch(e){try{return h(arguments,"callee").get}catch(e){return d}}}():d,y=r(182)(),g=r(175)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),b={},S="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&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%":p,"%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%":y&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&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&&y&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":S,"%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));_["%Error.prototype%"]=E}var w=function e(t){var r;if("%AsyncFunction%"===t)r=f("async function () {}");else if("%GeneratorFunction%"===t)r=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=f("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 _[t]=r,r},x={__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"]},O=r(176),T=r(178),P=O.call(Function.call,Array.prototype.concat),C=O.call(Function.apply,Array.prototype.splice),A=O.call(Function.call,String.prototype.replace),k=O.call(Function.call,String.prototype.slice),R=O.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,M=function(e,t){var r,n=e;if(T(x,n)&&(n="%"+(r=x[n])[0]+"%"),T(_,n)){var i=_[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===R(/^%?[^%]*%?$/,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=k(e,0,1),r=k(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 A(e,I,(function(e,t,r,i){n[n.length]=r?A(i,D,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=M("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],C(r,P([0,1],l)));for(var p=1,f=!0;p<r.length;p+=1){var d=r[p],m=k(d,0,1),y=k(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&f||(s=!0),T(_,o="%"+(n+="."+d)+"%"))a=_[o];else if(null!=a){if(!(d in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(h&&p+1>=r.length){var g=h(a,d);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else f=T(a,d),a=a[d];f&&!s&&(_[o]=a)}}return a}},(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(183);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},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(185),i=r(170),o=r(171),a=r(189);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],p=!!a&&a(e,t);if(n)n(e,t,{configurable:null===u&&p?p.configurable:!u,enumerable:null===s&&p?p.enumerable:!s,value:r,writable:null===c&&p?p.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(186)("%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,i=r(166),o=r(167),a=r(168),s=r(169),c=r(170),u=r(171),l=r(172),p=Function,f=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(e){h=null}var d=function(){throw new u},m=h?function(){try{return d}catch(e){try{return h(arguments,"callee").get}catch(e){return d}}}():d,y=r(187)(),g=r(175)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),b={},S="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&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%":p,"%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%":y&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&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&&y&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":S,"%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));_["%Error.prototype%"]=E}var w=function e(t){var r;if("%AsyncFunction%"===t)r=f("async function () {}");else if("%GeneratorFunction%"===t)r=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=f("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 _[t]=r,r},x={__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"]},O=r(176),T=r(178),P=O.call(Function.call,Array.prototype.concat),C=O.call(Function.apply,Array.prototype.splice),A=O.call(Function.call,String.prototype.replace),k=O.call(Function.call,String.prototype.slice),R=O.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,M=function(e,t){var r,n=e;if(T(x,n)&&(n="%"+(r=x[n])[0]+"%"),T(_,n)){var i=_[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===R(/^%?[^%]*%?$/,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=k(e,0,1),r=k(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 A(e,I,(function(e,t,r,i){n[n.length]=r?A(i,D,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=M("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],C(r,P([0,1],l)));for(var p=1,f=!0;p<r.length;p+=1){var d=r[p],m=k(d,0,1),y=k(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&f||(s=!0),T(_,o="%"+(n+="."+d)+"%"))a=_[o];else if(null!=a){if(!(d in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(h&&p+1>=r.length){var g=h(a,d);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else f=T(a,d),a=a[d];f&&!s&&(_[o]=a)}}return a}},(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(188);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},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(190)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},(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),p=Function,f=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(e){h=null}var d=function(){throw new u},m=h?function(){try{return d}catch(e){try{return h(arguments,"callee").get}catch(e){return d}}}():d,y=r(191)(),g=r(175)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),b={},S="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&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%":p,"%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%":y&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&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&&y&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":S,"%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));_["%Error.prototype%"]=E}var w=function e(t){var r;if("%AsyncFunction%"===t)r=f("async function () {}");else if("%GeneratorFunction%"===t)r=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=f("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 _[t]=r,r},x={__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"]},O=r(176),T=r(178),P=O.call(Function.call,Array.prototype.concat),C=O.call(Function.apply,Array.prototype.splice),A=O.call(Function.call,String.prototype.replace),k=O.call(Function.call,String.prototype.slice),R=O.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,M=function(e,t){var r,n=e;if(T(x,n)&&(n="%"+(r=x[n])[0]+"%"),T(_,n)){var i=_[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===R(/^%?[^%]*%?$/,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=k(e,0,1),r=k(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 A(e,I,(function(e,t,r,i){n[n.length]=r?A(i,D,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=M("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],C(r,P([0,1],l)));for(var p=1,f=!0;p<r.length;p+=1){var d=r[p],m=k(d,0,1),y=k(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&f||(s=!0),T(_,o="%"+(n+="."+d)+"%"))a=_[o];else if(null!=a){if(!(d in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(h&&p+1>=r.length){var g=h(a,d);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else f=T(a,d),a=a[d];f&&!s&&(_[o]=a)}}return a}},(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(192);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},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(185),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=r(181)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},(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(197),i=r(199),o=r(179),a=r(164),s=r(201),c=a("Object.prototype.toString"),u=r(162)(),l="undefined"==typeof globalThis?r.g:globalThis,p=i(),f=a("String.prototype.slice"),h=Object.getPrototypeOf,d=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(p,u&&s&&h?function(e){var t=new l[e];if(Symbol.toStringTag in t){var r=h(t),n=s(r,Symbol.toStringTag);if(!n){var i=h(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=f(c(e),8,-1);return d(p,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(m,(function(r,n){if(!t)try{r(e),t=f(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=f(n,1))}catch(e){}})),t}(e):null}},(e,t,r)=>{"use strict";var n=r(198),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[,]),p=function(){return!1};if("object"==typeof document){var f=document.all;c.call(f)===c.call(document.all)&&(p=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(p(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(p(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(200),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(202)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},(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),p=Function,f=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(e){h=null}var d=function(){throw new u},m=h?function(){try{return d}catch(e){try{return h(arguments,"callee").get}catch(e){return d}}}():d,y=r(203)(),g=r(175)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),b={},S="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&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%":p,"%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%":y&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&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&&y&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":S,"%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));_["%Error.prototype%"]=E}var w=function e(t){var r;if("%AsyncFunction%"===t)r=f("async function () {}");else if("%GeneratorFunction%"===t)r=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=f("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 _[t]=r,r},x={__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"]},O=r(176),T=r(178),P=O.call(Function.call,Array.prototype.concat),C=O.call(Function.apply,Array.prototype.splice),A=O.call(Function.call,String.prototype.replace),k=O.call(Function.call,String.prototype.slice),R=O.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,M=function(e,t){var r,n=e;if(T(x,n)&&(n="%"+(r=x[n])[0]+"%"),T(_,n)){var i=_[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===R(/^%?[^%]*%?$/,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=k(e,0,1),r=k(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 A(e,I,(function(e,t,r,i){n[n.length]=r?A(i,D,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=M("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],C(r,P([0,1],l)));for(var p=1,f=!0;p<r.length;p+=1){var d=r[p],m=k(d,0,1),y=k(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&f||(s=!0),T(_,o="%"+(n+="."+d)+"%"))a=_[o];else if(null!=a){if(!(d in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(h&&p+1>=r.length){var g=h(a,d);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else f=T(a,d),a=a[d];f&&!s&&(_[o]=a)}}return a}},(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(204);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},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(196);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(209),o=n.util.inherit,a=n.util.domain,s=r(210),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")},p=a.httpResponse.createUnbufferedStream();if(2===n.HttpClient.streamsApiVersion)if(c){var f=new e.PassThrough;f._write=function(t){return t&&t.length&&(u+=t.length),e.PassThrough.prototype._write.apply(this,arguments)},f.on("end",l),r.on("error",(function(e){c=!1,p.unpipe(f),f.emit("end"),f.end()})),p.pipe(f).pipe(r,{end:!1})}else p.pipe(r);else c&&p.on("data",(function(e){e&&e.length&&(u+=e.length)})),p.on("data",(function(e){r.emit("data",e)})),p.on("end",l);p.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=2,c={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},u="EOF",l="UnquotedIdentifier",p="QuotedIdentifier",f="Rbracket",h="Rparen",d="Comma",m="Colon",y="Rbrace",g="Number",v="Current",b="Expref",S="Pipe",_="Or",E="And",w="EQ",x="GT",O="LT",T="GTE",P="LTE",C="NE",A="Flatten",k="Star",R="Filter",I="Dot",D="Not",M="Lbrace",N="Lbracket",F="Lparen",L="Literal",j={".":I,"*":k,",":d,":":m,"{":M,"}":y,"]":f,"(":F,")":h,"@":v},B={"<":!0,">":!0,"=":!0,"!":!0},U={" ":!0,"\t":!0,"\n":!0};function V(e){return e>="0"&&e<="9"||"-"===e}function z(){}z.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:l,value:r,start:t});else if(void 0!==j[e[this._current]])o.push({type:j[e[this._current]],value:e[this._current],start:this._current}),this._current++;else if(V(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:p,value:r,start:t});else if("'"===e[this._current])t=this._current,r=this._consumeRawStringLiteral(e),o.push({type:L,value:r,start:t});else if("`"===e[this._current]){t=this._current;var a=this._consumeLiteral(e);o.push({type:L,value:a,start:t})}else if(void 0!==B[e[this._current]])o.push(this._consumeOperator(e));else if(void 0!==U[e[this._current]])this._current++;else if("&"===e[this._current])t=this._current,this._current++,"&"===e[this._current]?(this._current++,o.push({type:E,value:"&&",start:t})):o.push({type:b,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:_,value:"||",start:t})):o.push({type:S,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;V(e[this._current])&&this._current<r;)this._current++;var n=parseInt(e.slice(t,this._current));return{type:g,value:n,start:t}},_consumeLBracket:function(e){var t=this._current;return this._current++,"?"===e[this._current]?(this._current++,{type:R,value:"[?",start:t}):"]"===e[this._current]?(this._current++,{type:A,value:"[]",start:t}):{type:N,value:"[",start:t}},_consumeOperator:function(e){var t=this._current,r=e[t];return this._current++,"!"===r?"="===e[this._current]?(this._current++,{type:C,value:"!=",start:t}):{type:D,value:"!",start:t}:"<"===r?"="===e[this._current]?(this._current++,{type:P,value:"<=",start:t}):{type:O,value:"<",start:t}:">"===r?"="===e[this._current]?(this._current++,{type:T,value:">=",start:t}):{type:x,value:">",start:t}:"="===r&&"="===e[this._current]?(this._current++,{type:w,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 H={};function q(){}function G(e){this.runtime=e}function W(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[a]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[a]}]},contains:{_func:this._functionContains,_signature:[{types:[s,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[s]},{types:[s]}]},floor:{_func:this._functionFloor,_signature:[{types:[a]}]},length:{_func:this._functionLength,_signature:[{types:[s,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[s]},{types:[s]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[s]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[s,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}H[u]=0,H[l]=0,H[p]=0,H[f]=0,H[h]=0,H[d]=0,H[y]=0,H[g]=0,H[v]=0,H[b]=0,H[S]=1,H[_]=2,H[E]=3,H[w]=5,H[x]=5,H[O]=5,H[T]=5,H[P]=5,H[C]=5,H[A]=9,H[k]=20,H[R]=21,H[I]=40,H[D]=45,H[M]=50,H[N]=55,H[F]=60,q.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if(this._lookahead(0)!==u){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 z).tokenize(e);t.push({type:u,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<H[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 L:return{type:"Literal",value:e.value};case l:return{type:"Field",name:e.value};case p:var n={type:"Field",name:e.value};if(this._lookahead(0)===F)throw new Error("Quoted identifier not allowed for function names.");return n;case D:return{type:"NotExpression",children:[t=this.expression(H.Not)]};case k:return t=null,{type:"ValueProjection",children:[{type:"Identity"},t=this._lookahead(0)===f?{type:"Identity"}:this._parseProjectionRHS(H.Star)]};case R:return this.led(e.type,{type:"Identity"});case M:return this._parseMultiselectHash();case A:return{type:"Projection",children:[{type:A,children:[{type:"Identity"}]},t=this._parseProjectionRHS(H.Flatten)]};case N:return this._lookahead(0)===g||this._lookahead(0)===m?(t=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},t)):this._lookahead(0)===k&&this._lookahead(1)===f?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},t=this._parseProjectionRHS(H.Star)]}):this._parseMultiselectList();case v:return{type:v};case b:return{type:"ExpressionReference",children:[r=this.expression(H.Expref)]};case F:for(var i=[];this._lookahead(0)!==h;)this._lookahead(0)===v?(r={type:v},this._advance()):r=this.expression(0),i.push(r);return this._match(h),i[0];default:this._errorToken(e)}},led:function(e,t){var r;switch(e){case I:var n=H.Dot;return this._lookahead(0)!==k?{type:"Subexpression",children:[t,r=this._parseDotRHS(n)]}:(this._advance(),{type:"ValueProjection",children:[t,r=this._parseProjectionRHS(n)]});case S:return r=this.expression(H.Pipe),{type:S,children:[t,r]};case _:return{type:"OrExpression",children:[t,r=this.expression(H.Or)]};case E:return{type:"AndExpression",children:[t,r=this.expression(H.And)]};case F:for(var i,o=t.name,a=[];this._lookahead(0)!==h;)this._lookahead(0)===v?(i={type:v},this._advance()):i=this.expression(0),this._lookahead(0)===d&&this._match(d),a.push(i);return this._match(h),{type:"Function",name:o,children:a};case R:var s=this.expression(0);return this._match(f),{type:"FilterProjection",children:[t,r=this._lookahead(0)===A?{type:"Identity"}:this._parseProjectionRHS(H.Filter),s]};case A:return{type:"Projection",children:[{type:A,children:[t]},this._parseProjectionRHS(H.Flatten)]};case w:case C:case x:case T:case O:case P:return this._parseComparator(t,e);case N:var c=this._lookaheadToken(0);return c.type===g||c.type===m?(r=this._parseIndexExpression(),this._projectIfSlice(t,r)):(this._match(k),this._match(f),{type:"Projection",children:[t,r=this._parseProjectionRHS(H.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)===m||this._lookahead(1)===m)return this._parseSliceExpression();var e={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(f),e},_projectIfSlice:function(e,t){var r={type:"IndexExpression",children:[e,t]};return"Slice"===t.type?{type:"Projection",children:[r,this._parseProjectionRHS(H.Star)]}:r},_parseSliceExpression:function(){for(var e=[null,null,null],t=0,r=this._lookahead(0);r!==f&&t<3;){if(r===m)t++,this._advance();else{if(r!==g){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(f),{type:"Slice",children:e}},_parseComparator:function(e,t){return{type:"Comparator",name:t,children:[e,this.expression(H[t])]}},_parseDotRHS:function(e){var t=this._lookahead(0);return[l,p,k].indexOf(t)>=0?this.expression(e):t===N?(this._match(N),this._parseMultiselectList()):t===M?(this._match(M),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(H[this._lookahead(0)]<10)t={type:"Identity"};else if(this._lookahead(0)===N)t=this.expression(e);else if(this._lookahead(0)===R)t=this.expression(e);else{if(this._lookahead(0)!==I){var r=this._lookaheadToken(0),n=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw n.name="ParserError",n}this._match(I),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];this._lookahead(0)!==f;){var t=this.expression(0);if(e.push(t),this._lookahead(0)===d&&(this._match(d),this._lookahead(0)===f))throw new Error("Unexpected token Rbracket")}return this._match(f),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,n=[],i=[l,p];;){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(m),r={type:"KeyValuePair",name:t,value:this.expression(0)},n.push(r),this._lookahead(0)===d)this._match(d);else if(this._lookahead(0)===y){this._match(y);break}}return{type:"MultiSelectHash",children:n}}},G.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,o){var a,s,c,u,l,p,f,h,d;switch(e.type){case"Field":return null!==o&&r(o)?void 0===(p=o[e.name])?null:p:null;case"Subexpression":for(c=this.visit(e.children[0],o),d=1;d<e.children.length;d++)if(null===(c=this.visit(e.children[1],c)))return null;return c;case"IndexExpression":return f=this.visit(e.children[0],o),this.visit(e.children[1],f);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 y=e.children.slice(0),g=this.computeSliceParams(o.length,y),_=g[0],E=g[1],k=g[2];if(c=[],k>0)for(d=_;d<E;d+=k)c.push(o[d]);else for(d=_;d>E;d+=k)c.push(o[d]);return c;case"Projection":var R=this.visit(e.children[0],o);if(!t(R))return null;for(h=[],d=0;d<R.length;d++)null!==(s=this.visit(e.children[1],R[d]))&&h.push(s);return h;case"ValueProjection":if(!r(R=this.visit(e.children[0],o)))return null;h=[];var I=function(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;n++)r.push(e[t[n]]);return r}(R);for(d=0;d<I.length;d++)null!==(s=this.visit(e.children[1],I[d]))&&h.push(s);return h;case"FilterProjection":if(!t(R=this.visit(e.children[0],o)))return null;var D=[],M=[];for(d=0;d<R.length;d++)i(a=this.visit(e.children[2],R[d]))||D.push(R[d]);for(var N=0;N<D.length;N++)null!==(s=this.visit(e.children[1],D[N]))&&M.push(s);return M;case"Comparator":switch(u=this.visit(e.children[0],o),l=this.visit(e.children[1],o),e.name){case w:c=n(u,l);break;case C:c=!n(u,l);break;case x:c=u>l;break;case T:c=u>=l;break;case O:c=u<l;break;case P:c=u<=l;break;default:throw new Error("Unknown comparator: "+e.name)}return c;case A:var F=this.visit(e.children[0],o);if(!t(F))return null;var L=[];for(d=0;d<F.length;d++)t(s=F[d])?L.push.apply(L,s):L.push(s);return L;case"Identity":return o;case"MultiSelectList":if(null===o)return null;for(h=[],d=0;d<e.children.length;d++)h.push(this.visit(e.children[d],o));return h;case"MultiSelectHash":if(null===o)return null;var j;for(h={},d=0;d<e.children.length;d++)h[(j=e.children[d]).name]=this.visit(j.value,o);return h;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 S:return f=this.visit(e.children[0],o),this.visit(e.children[1],f);case v:return o;case"Function":var B=[];for(d=0;d<e.children.length;d++)B.push(this.visit(e.children[d],o));return this.runtime.callFunction(e.name,B);case"ExpressionReference":var U=e.children[0];return U.jmespathType=b,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}},W.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var n,i,o,a;if(r[r.length-1].variadic){if(t.length<r.length)throw n=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes at least"+r.length+n+" but received "+t.length)}else if(t.length!==r.length)throw n=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes "+r.length+n+" but received "+t.length);for(var s=0;s<r.length;s++){a=!1,i=r[s].types,o=this._getTypeName(t[s]);for(var u=0;u<i.length;u++)if(this._typeMatches(o,i[u],t[s])){a=!0;break}if(!a){var l=i.map((function(e){return c[e]})).join(",");throw new Error("TypeError: "+e+"() expected argument "+(s+1)+" to be type "+l+" but received type "+c[o]+" instead.")}}},_typeMatches:function(e,t,r){if(1===t)return!0;if(9!==t&&8!==t&&3!==t)return e===t;if(3===t)return 3===e;if(3===e){var n;8===t?n=a:9===t&&(n=s);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 s;case"[object Number]":return a;case"[object Array]":return 3;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return e.jmespathType===b?6:4}},_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])===s){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 s:return"string";case 3:return"array";case 4:return"object";case 5:return"boolean";case 6: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 3===this._getTypeName(e[0])?e[0]:[e[0]]},_functionToString:function(e){return this._getTypeName(e[0])===s?e[0]:JSON.stringify(e[0])},_functionToNumber:function(e){var t,r=this._getTypeName(e[0]);return r===a?e[0]:r!==s||(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,s].indexOf(i)<0)throw new Error("TypeError");for(var o=this,c=[],u=0;u<t.length;u++)c.push([u,t[u]]);c.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<c.length;l++)t[l]=c[l][1];return t},_functionMaxBy:function(e){for(var t,r,n=e[1],i=e[0],o=this.createKeyFunction(n,[a,s]),c=-1/0,u=0;u<i.length;u++)(r=o(i[u]))>c&&(c=r,t=i[u]);return t},_functionMinBy:function(e){for(var t,r,n=e[1],i=e[0],o=this.createKeyFunction(n,[a,s]),c=1/0,u=0;u<i.length;u++)(r=o(i[u]))<c&&(c=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 z).tokenize(e)},e.compile=function(e){return(new q).parse(e)},e.search=function(e,t){var r=new q,n=new W,i=new G(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(210);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(210);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(214),r(215),r(216),r(217),r(219),r(220),r(221)},(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(215),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(218),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"),p=n.util.crypto.hmac(l,r,"buffer"),f=n.util.crypto.hmac(p,s,"buffer"),h=n.util.crypto.hmac(f,a,"buffer");return c&&(i[u]=h,o.push(u),o.length>50&&delete i[o.shift()]),h},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(226)),i=s(r(229)),o=s(r(232)),a=s(r(233));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(227)),a=s(r(228));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||[],p=(e=e||{}).node||n,f=void 0!==e.clockseq?e.clockseq:i;if(null==p||null==f){var h=e.random||(e.rng||o.default)();null==p&&(p=n=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==f&&(f=i=16383&(h[6]<<8|h[7]))}var d=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:u+1,y=d-c+(m-u)/1e4;if(y<0&&void 0===e.clockseq&&(f=f+1&16383),(y<0||d>c)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=d,u=m,i=f;var g=(1e4*(268435455&(d+=122192928e5))+m)%4294967296;l[s++]=g>>>24&255,l[s++]=g>>>16&255,l[s++]=g>>>8&255,l[s++]=255&g;var v=d/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++]=f>>>8|128,l[s++]=255&f;for(var b=0;b<6;++b)l[s+b]=p[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(230)),i=o(r(231));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(228))&&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,p;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var f=1732584193,h=-271733879,d=-1732584194,m=271733878;for(n=0;n<e.length;n+=16)c=f,u=h,l=d,p=m,f=i(f,h,d,m,e[n],7,-680876936),m=i(m,f,h,d,e[n+1],12,-389564586),d=i(d,m,f,h,e[n+2],17,606105819),h=i(h,d,m,f,e[n+3],22,-1044525330),f=i(f,h,d,m,e[n+4],7,-176418897),m=i(m,f,h,d,e[n+5],12,1200080426),d=i(d,m,f,h,e[n+6],17,-1473231341),h=i(h,d,m,f,e[n+7],22,-45705983),f=i(f,h,d,m,e[n+8],7,1770035416),m=i(m,f,h,d,e[n+9],12,-1958414417),d=i(d,m,f,h,e[n+10],17,-42063),h=i(h,d,m,f,e[n+11],22,-1990404162),f=i(f,h,d,m,e[n+12],7,1804603682),m=i(m,f,h,d,e[n+13],12,-40341101),d=i(d,m,f,h,e[n+14],17,-1502002290),f=o(f,h=i(h,d,m,f,e[n+15],22,1236535329),d,m,e[n+1],5,-165796510),m=o(m,f,h,d,e[n+6],9,-1069501632),d=o(d,m,f,h,e[n+11],14,643717713),h=o(h,d,m,f,e[n],20,-373897302),f=o(f,h,d,m,e[n+5],5,-701558691),m=o(m,f,h,d,e[n+10],9,38016083),d=o(d,m,f,h,e[n+15],14,-660478335),h=o(h,d,m,f,e[n+4],20,-405537848),f=o(f,h,d,m,e[n+9],5,568446438),m=o(m,f,h,d,e[n+14],9,-1019803690),d=o(d,m,f,h,e[n+3],14,-187363961),h=o(h,d,m,f,e[n+8],20,1163531501),f=o(f,h,d,m,e[n+13],5,-1444681467),m=o(m,f,h,d,e[n+2],9,-51403784),d=o(d,m,f,h,e[n+7],14,1735328473),f=a(f,h=o(h,d,m,f,e[n+12],20,-1926607734),d,m,e[n+5],4,-378558),m=a(m,f,h,d,e[n+8],11,-2022574463),d=a(d,m,f,h,e[n+11],16,1839030562),h=a(h,d,m,f,e[n+14],23,-35309556),f=a(f,h,d,m,e[n+1],4,-1530992060),m=a(m,f,h,d,e[n+4],11,1272893353),d=a(d,m,f,h,e[n+7],16,-155497632),h=a(h,d,m,f,e[n+10],23,-1094730640),f=a(f,h,d,m,e[n+13],4,681279174),m=a(m,f,h,d,e[n],11,-358537222),d=a(d,m,f,h,e[n+3],16,-722521979),h=a(h,d,m,f,e[n+6],23,76029189),f=a(f,h,d,m,e[n+9],4,-640364487),m=a(m,f,h,d,e[n+12],11,-421815835),d=a(d,m,f,h,e[n+15],16,530742520),f=s(f,h=a(h,d,m,f,e[n+2],23,-995338651),d,m,e[n],6,-198630844),m=s(m,f,h,d,e[n+7],10,1126891415),d=s(d,m,f,h,e[n+14],15,-1416354905),h=s(h,d,m,f,e[n+5],21,-57434055),f=s(f,h,d,m,e[n+12],6,1700485571),m=s(m,f,h,d,e[n+3],10,-1894986606),d=s(d,m,f,h,e[n+10],15,-1051523),h=s(h,d,m,f,e[n+1],21,-2054922799),f=s(f,h,d,m,e[n+8],6,1873313359),m=s(m,f,h,d,e[n+15],10,-30611744),d=s(d,m,f,h,e[n+6],15,-1560198380),h=s(h,d,m,f,e[n+13],21,1309151649),f=s(f,h,d,m,e[n+4],6,-145523070),m=s(m,f,h,d,e[n+11],10,-1120210379),d=s(d,m,f,h,e[n+2],15,718787259),h=s(h,d,m,f,e[n+9],21,-343485551),f=r(f,c),h=r(h,u),d=r(d,l),m=r(m,p);return[f,h,d,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(227)),i=o(r(228));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(230)),i=o(r(234));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 p=new Array(80),f=0;f<16;f++)p[f]=u[a][f];for(f=16;f<80;f++)p[f]=n(p[f-3]^p[f-8]^p[f-14]^p[f-16],1);var h=i[0],d=i[1],m=i[2],y=i[3],g=i[4];for(f=0;f<80;f++){var v=Math.floor(f/20),b=n(h,5)+r(v,d,m,y)+g+t[v]+p[f]>>>0;g=y,y=m,m=n(d,30)>>>0,d=h,h=b}i[0]=i[0]+h>>>0,i[1]=i[1]+d>>>0,i[2]=i[2]+m>>>0,i[3]=i[3]+y>>>0,i[4]=i[4]+g>>>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(236),i=r(242),o=r(243),a=r(244);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(237);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(238).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(239),i=r(240),o=r(241);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 p(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=f(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|d(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|h(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):f(e,t);if("Buffer"===t.type&&o(t.data))return f(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 p(e,t){if(l(t),e=s(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function f(e,t){var r=t.length<0?0:0|h(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(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 V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(n)return V(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 k(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 A(this,t,r);case"base64":return O(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(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 p=!0,f=0;f<c;f++)if(u(e,o+f)!==u(t,f)){p=!1;break}if(p)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 S(e,t,r,n){return H(V(t,e.length-r),e,r,n)}function _(e,t,r,n){return H(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 _(e,t,r,n)}function w(e,t,r,n){return H(z(t),e,r,n)}function x(e,t,r,n){return H(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 O(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,p=u>239?4:u>223?3:u>191?2:1;if(i+p<=r)switch(p){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,p=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=p}return function(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=P));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 p(null,e)},c.allocUnsafeSlow=function(e){return p(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=d,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)y(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)y(this,t,t+3),y(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)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(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),p=0;p<s;++p)if(u[p]!==l[p]){o=u[p],a=l[p];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 g(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return g(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 S(this,e,t,r);case"ascii":return _(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 x(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 P=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 A(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 k(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 R(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 I(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 M(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 N(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 F(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 L(e,t,r,n,o){return o||F(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function j(e,t,r,n,o){return o||F(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||I(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||I(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||I(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||I(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||I(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||I(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||I(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||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||I(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||I(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||I(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||I(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||I(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||I(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):M(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):M(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):N(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):N(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):M(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):M(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):N(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):N(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return j(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return j(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:V(new c(e,n).toString()),s=a.length;for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function V(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 z(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(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,p=c>0?a-4:a;for(r=0;r<p;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,p=r?i-1:0,f=r?-1:1,h=e[t+p];for(p+=f,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+p],p+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+p],p+=f,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,p=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,d=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+p>=1?f/c:f*Math.pow(2,1-p))*c>=2&&(a++,c/=2),a+p>=l?(s=0,a=l):a+p>=1?(s=(t*c-1)*Math.pow(2,i),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=d,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[r+h]=255&a,h+=d,a/=256,u-=8);e[r+h-d]|=128*m}},e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},(e,t,r)=>{var n=r(237),i=r(238).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 p(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=p(r,n=l(n,i,o,r,e.getUint32(8,!0),23,3299628645),i,o,e.getUint32(0,!0),6,4096336452),o=p(o,r,n,i,e.getUint32(28,!0),10,1126891415),i=p(i,o,r,n,e.getUint32(56,!0),15,2878612391),n=p(n,i,o,r,e.getUint32(20,!0),21,4237533241),r=p(r,n,i,o,e.getUint32(48,!0),6,1700485571),o=p(o,r,n,i,e.getUint32(12,!0),10,2399980690),i=p(i,o,r,n,e.getUint32(40,!0),15,4293915773),n=p(n,i,o,r,e.getUint32(4,!0),21,2240044497),r=p(r,n,i,o,e.getUint32(32,!0),6,1873313359),o=p(o,r,n,i,e.getUint32(60,!0),10,4264355552),i=p(i,o,r,n,e.getUint32(24,!0),15,2734768916),n=p(n,i,o,r,e.getUint32(52,!0),21,1309151649),r=p(r,n,i,o,e.getUint32(16,!0),6,4149444226),o=p(o,r,n,i,e.getUint32(44,!0),10,3174756917),i=p(i,o,r,n,e.getUint32(8,!0),15,718787259),n=p(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(238).Buffer,i=r(237);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(238).Buffer,i=r(237),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],p=t[7],f=0;f<o;f++){if(f<16)this.temp[f]=(255&e[4*f])<<24|(255&e[4*f+1])<<16|(255&e[4*f+2])<<8|255&e[4*f+3];else{var h=this.temp[f-2],d=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,m=((h=this.temp[f-15])>>>7|h<<25)^(h>>>18|h<<14)^h>>>3;this.temp[f]=(d+this.temp[f-7]|0)+(m+this.temp[f-16]|0)}var y=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&u^~c&l)|0)+(p+(a[f]+this.temp[f]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n^r&i^n&i)|0;p=l,l=u,u=c,c=s+y|0,s=i,i=n,n=r,r=y+g|0}t[0]+=r,t[1]+=n,t[2]+=i,t[3]+=s,t[4]+=c,t[5]+=u,t[6]+=l,t[7]+=p}},(e,t,r)=>{var n=r(246);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=g,t.resolve=function(e,t){return g(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?g(e,!1,!0).resolveObject(t):t},t.format=function(e){v(e)&&(e=g(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=["/","?","#"],p=/^[a-z0-9A-Z_-]{0,63}$/,f=/^([a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},d={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},y=r(247);function g(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 S(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 g="//"===i.substr(0,2);!g||a&&d[a]||(i=i.substr(2),this.slashes=!0)}if(!d[a]&&(g||a&&!m[a])){for(var b,S,_=-1,E=0;E<l.length;E++){-1!==(w=i.indexOf(l[E]))&&(-1===_||w<_)&&(_=w)}-1!==(S=-1===_?i.lastIndexOf("@"):i.lastIndexOf("@",_))&&(b=i.slice(0,S),i=i.slice(S+1),this.auth=decodeURIComponent(b)),_=-1;for(E=0;E<u.length;E++){var w;-1!==(w=i.indexOf(u[E]))&&(-1===_||w<_)&&(_=w)}-1===_&&(_=i.length),this.host=i.slice(0,_),i=i.slice(_),this.parseHost(),this.hostname=this.hostname||"";var x="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!x)for(var O=this.hostname.split(/\./),T=(E=0,O.length);E<T;E++){var P=O[E];if(P&&!P.match(p)){for(var C="",A=0,k=P.length;A<k;A++)P.charCodeAt(A)>127?C+="x":C+=P[A];if(!C.match(p)){var R=O.slice(0,E),I=O.slice(E+1),D=P.match(f);D&&(R.push(D[1]),I.unshift(D[2])),I.length&&(i="/"+I.join(".")+i),this.hostname=R.join(".");break}}}if(this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),!x){var M=this.hostname.split("."),N=[];for(E=0;E<M.length;++E){var F=M[E];N.push(F.match(/[^A-Za-z0-9_-]/)?"xn--"+n.encode(F):F)}this.hostname=N.join(".")}var L=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+L,this.href+=this.host,x&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==i[0]&&(i="/"+i))}if(!h[s])for(E=0,T=c.length;E<T;E++){var B=c[E],U=encodeURIComponent(B);U===B&&(U=escape(B)),i=i.split(B).join(U)}var V=i.indexOf("#");-1!==V&&(this.hash=i.substr(V),i=i.slice(0,V));var z=i.indexOf("?");if(-1!==z?(this.search=i.substr(z),this.query=i.substr(z+1),t&&(this.query=y.parse(this.query)),i=i.slice(0,z)):t&&(this.search="",this.query={}),i&&(this.pathname=i),m[s]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){L=this.pathname||"",F=this.search||"";this.path=L+F}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=y.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(g(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||d[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,p=r.pathname&&r.pathname.split("/")||[],f=(n=e.pathname&&e.pathname.split("/")||[],r.protocol&&!m[r.protocol]);if(f&&(r.hostname="",r.port=null,r.host&&(""===p[0]?p[0]=r.host:p.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]||""===p[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,p=n;else if(n.length)p||(p=[]),p.pop(),p=p.concat(n),r.search=e.search,r.query=e.query;else if(null!=e.search){if(f)r.hostname=r.host=p.shift(),(_=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=_.shift(),r.host=r.hostname=_.shift());return r.search=e.search,r.query=e.query,S(r.pathname)&&S(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!p.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var h=p.slice(-1)[0],y=(r.host||e.host)&&("."===h||".."===h)||""===h,g=0,b=p.length;b>=0;b--)"."==(h=p[b])?p.splice(b,1):".."===h?(p.splice(b,1),g++):g&&(p.splice(b,1),g--);if(!u&&!l)for(;g--;g)p.unshift("..");!u||""===p[0]||p[0]&&"/"===p[0].charAt(0)||p.unshift(""),y&&"/"!==p.join("/").substr(-1)&&p.push("");var _,E=""===p[0]||p[0]&&"/"===p[0].charAt(0);f&&(r.hostname=r.host=E?"":p.length?p.shift():"",(_=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=_.shift(),r.host=r.hostname=_.shift()));return(u=u||r.host&&p.length)&&!E&&p.unshift(""),p.length?r.pathname=p.join("/"):(r.pathname=null,r.path=null),S(r.pathname)&&S(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=/^xn--/,u=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,h=String.fromCharCode;function d(e){throw RangeError(p[e])}function m(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+m((e=e.replace(l,".")).split("."),t).join(".")}function g(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 v(e){return m(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function b(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,r){var n=0;for(e=r?f(e/700):e>>1,e+=f(e/t);e>455;n+=s)e=f(e/35);return f(n+36*e/(e+38))}function _(e){var t,r,n,i,o,c,u,l,p,h,m,y=[],g=e.length,b=0,_=128,E=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&d("not-basic"),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<g;){for(o=b,c=1,u=s;i>=g&&d("invalid-input"),((l=(m=e.charCodeAt(i++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:s)>=s||l>f((a-b)/c))&&d("overflow"),b+=l*c,!(l<(p=u<=E?1:u>=E+26?26:u-E));u+=s)c>f(a/(h=s-p))&&d("overflow"),c*=h;E=S(b-o,t=y.length+1,0==o),f(b/t)>a-_&&d("overflow"),_+=f(b/t),b%=t,y.splice(b++,0,_)}return v(y)}function E(e){var t,r,n,i,o,c,u,l,p,m,y,v,_,E,w,x=[];for(v=(e=g(e)).length,t=128,r=0,o=72,c=0;c<v;++c)(y=e[c])<128&&x.push(h(y));for(n=i=x.length,i&&x.push("-");n<v;){for(u=a,c=0;c<v;++c)(y=e[c])>=t&&y<u&&(u=y);for(u-t>f((a-r)/(_=n+1))&&d("overflow"),r+=(u-t)*_,t=u,c=0;c<v;++c)if((y=e[c])<t&&++r>a&&d("overflow"),y==t){for(l=r,p=s;!(l<(m=p<=o?1:p>=o+26?26:p-o));p+=s)w=l-m,E=s-m,x.push(h(b(m+w%E,0))),l=f(w/E);x.push(h(b(l,0))),o=S(r,_,n==i),r=0,++n}++r,++t}return x.join("")}o={version:"1.3.2",ucs2:{decode:g,encode:v},decode:_,encode:E,toASCII:function(e){return y(e,(function(e){return u.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return y(e,(function(e){return c.test(e)?_(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(248),t.encode=t.stringify=r(249)},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,p,f,h,d=e[u].replace(a,"%20"),m=d.indexOf(n);m>=0?(l=d.substr(0,m),p=d.substr(m+1)):(l=d,p=""),f=decodeURIComponent(l),h=decodeURIComponent(p),t(o,f)?Array.isArray(o[f])?o[f].push(h):o[f]=[o[f],h]:o[f]=h}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(252).eventMessageChunker,i=r(253).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(254).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 p=s.eventHeaderMemberNames,f=0;f<p.length;f++){var h=p[f];i.headers[h]&&(c[h]=s.members[h].toType(i.headers[h].value))}var d={};return d[a.value]=c,d}}}},(e,t,r)=>{var n=r(255).Int64,i=r(256).splitMessage,o="boolean";function a(e){for(var t={},r=0;r<e.length;){var i=e.readUInt8(r++),a=e.slice(r,r+i).toString();switch(r+=i,e.readUInt8(r++)){case 0:t[a]={type:o,value:!0};break;case 1:t[a]={type:o,value:!1};break;case 2:t[a]={type:"byte",value:e.readInt8(r++)};break;case 3:t[a]={type:"short",value:e.readInt16BE(r)},r+=2;break;case 4:t[a]={type:"integer",value:e.readInt32BE(r)},r+=4;break;case 5:t[a]={type:"long",value:new n(e.slice(r,r+8))},r+=8;break;case 6:var s=e.readUInt16BE(r);r+=2,t[a]={type:"binary",value:e.slice(r,r+s)},r+=s;break;case 7:var c=e.readUInt16BE(r);r+=2,t[a]={type:"string",value:e.slice(r,r+c).toString()},r+=c;break;case 8:t[a]={type:"timestamp",value:new Date(new n(e.slice(r,r+8)).valueOf())},r+=8;break;case 9:var u=e.slice(r,r+16).toString("hex");r+=16,t[a]={type:"uuid",value:u.substr(0,8)+"-"+u.substr(8,4)+"-"+u.substr(12,4)+"-"+u.substr(16,4)+"-"+u.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return t}e.exports={parseMessage:function(e){var t=i(e);return{headers:a(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(258);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(259),Object.defineProperty(o.services.sts,"2011-06-15",{get:function(){var e=r(261);return e.paginators=r(262).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.STS},(e,t,r)=>{var n=r(123),i=r(260);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(258);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(258);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(266),o=r(258);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(267);return e.paginators=r(268).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(258);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(272).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,p=!1;e.stream=l,l.addEventListener("readystatechange",(function(){try{if(0===l.status)return}catch(e){return}this.readyState>=this.HEADERS_RECEIVED&&!p&&(c.statusCode=l.status,c.headers=a.parseHeaders(l.getAllResponseHeaders()),c.emit("headers",c.statusCode,c.headers,l.statusText),p=!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,f,h,d,m,y,g;if(y=e.split("#"),e=y.shift(),y=e.split("?"),e=y.shift(),(y=e.split("://")).length>1){if(r=y.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;y[0]=e.slice(2)}}if(""===(e=y.join("://")))return!1;if(y=e.split("/"),""===(e=y.shift())&&!t.require_host)return!0;if((y=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===y[0])return!1;if((s=y.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.")}()),S=b[0],_=b[1];if(""===S&&""===_)return!1}var E,w;h=y.join("@"),m=null,g=null;var x=h.match(l);x?(f="",g=x[1],m=x[2]||null):(f=(y=h.split(":")).shift(),y.length&&(m=y.join(":")));if(null!==m&&m.length>0){if(d=parseInt(m,10),!/^[0-9]+$/.test(m)||d<=0||d>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return p(f,t.host_whitelist);if(""===f&&!t.require_host)return!0;if(!((0,o.default)(f)||(0,i.default)(f,t)||g&&(0,o.default)(g,6)))return!1;if(f=f||g,t.host_blacklist&&p(f,t.host_blacklist))return!1;return!0};var n=s(r(276)),i=s(r(277)),o=s(r(279)),a=s(r(278));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 p(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(276)),i=o(r(278));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(276))&&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)=>{"use strict";var n=r(285);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addEventProcessor:()=>C,captureCheckIn:()=>E,captureEvent:()=>d,captureException:()=>f,captureMessage:()=>h,captureSession:()=>I,close:()=>O,endSession:()=>k,flush:()=>x,isEnabled:()=>P,isInitialized:()=>T,lastEventId:()=>_,setContext:()=>m,setExtra:()=>g,setExtras:()=>y,setTag:()=>b,setTags:()=>v,setUser:()=>S,startSession:()=>A,withMonitor:()=>w});var n=r(290),i=r(310),o=r(298),a=r(301),s=r(303),c=r(306),u=r(305),l=r(294),p=r(311);function f(e,t){return(0,n.getCurrentScope)().captureException(e,(0,p.parseEventHintOrCaptureContext)(t))}function h(e,t){const r="string"==typeof t?t:void 0,i="string"!=typeof t?{captureContext:t}:void 0;return(0,n.getCurrentScope)().captureMessage(e,r,i)}function d(e,t){return(0,n.getCurrentScope)().captureEvent(e,t)}function m(e,t){(0,n.getIsolationScope)().setContext(e,t)}function y(e){(0,n.getIsolationScope)().setExtras(e)}function g(e,t){(0,n.getIsolationScope)().setExtra(e,t)}function v(e){(0,n.getIsolationScope)().setTags(e)}function b(e,t){(0,n.getIsolationScope)().setTag(e,t)}function S(e){(0,n.getIsolationScope)().setUser(e)}function _(){return(0,n.getIsolationScope)().lastEventId()}function E(e,t){const r=(0,n.getCurrentScope)(),o=(0,n.getClient)();if(o){if(o.captureCheckIn)return o.captureCheckIn(e,t,r);i.DEBUG_BUILD&&s.logger.warn("Cannot capture check-in. Client does not support sending check-ins.")}else i.DEBUG_BUILD&&s.logger.warn("Cannot capture check-in. No client defined.");return(0,c.uuid4)()}function w(e,t,r){const i=E({monitorSlug:e,status:"in_progress"},r),o=(0,u.timestampInSeconds)();function s(t){E({monitorSlug:e,status:t,checkInId:i,duration:(0,u.timestampInSeconds)()-o})}return(0,n.withIsolationScope)((()=>{let e;try{e=t()}catch(e){throw s("error"),e}return(0,a.isThenable)(e)?Promise.resolve(e).then((()=>{s("ok")}),(e=>{throw s("error"),e})):s("ok"),e}))}async function x(e){const t=(0,n.getClient)();return t?t.flush(e):(i.DEBUG_BUILD&&s.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function O(e){const t=(0,n.getClient)();return t?t.close(e):(i.DEBUG_BUILD&&s.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function T(){return!!(0,n.getClient)()}function P(){const e=(0,n.getClient)();return!1!==e?.getOptions().enabled&&!!e?.getTransport()}function C(e){(0,n.getIsolationScope)().addEventProcessor(e)}function A(e){const t=(0,n.getIsolationScope)(),r=(0,n.getCurrentScope)(),{userAgent:i}=l.GLOBAL_OBJ.navigator||{},a=(0,o.makeSession)({user:r.getUser()||t.getUser(),...i&&{userAgent:i},...e}),s=t.getSession();return"ok"===s?.status&&(0,o.updateSession)(s,{status:"exited"}),k(),t.setSession(a),a}function k(){const e=(0,n.getIsolationScope)(),t=(0,n.getCurrentScope)().getSession()||e.getSession();t&&(0,o.closeSession)(t),R(),e.setSession()}function R(){const e=(0,n.getIsolationScope)(),t=(0,n.getClient)(),r=e.getSession();r&&t&&t.captureSession(r)}function I(e=!1){e?k():R()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getClient:()=>h,getCurrentScope:()=>c,getGlobalScope:()=>l,getIsolationScope:()=>u,getTraceContextFromScope:()=>d,withIsolationScope:()=>f,withScope:()=>p});var n=r(291),i=r(292),o=r(297),a=r(299),s=r(307);function c(){const e=(0,i.getMainCarrier)();return(0,n.getAsyncContextStrategy)(e).getCurrentScope()}function u(){const e=(0,i.getMainCarrier)();return(0,n.getAsyncContextStrategy)(e).getIsolationScope()}function l(){return(0,i.getGlobalSingleton)("globalScope",(()=>new o.Scope))}function p(...e){const t=(0,i.getMainCarrier)(),r=(0,n.getAsyncContextStrategy)(t);if(2===e.length){const[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])}function f(...e){const t=(0,i.getMainCarrier)(),r=(0,n.getAsyncContextStrategy)(t);if(2===e.length){const[t,n]=e;return t?r.withSetIsolationScope(t,n):r.withIsolationScope(n)}return r.withIsolationScope(e[0])}function h(){return c().getClient()}function d(e){const t=e.getPropagationContext(),{traceId:r,parentSpanId:n,propagationSpanId:i}=t;return(0,a.dropUndefinedKeys)({trace_id:r,span_id:i||(0,s.generateSpanId)(),parent_span_id:n})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAsyncContextStrategy:()=>a,setAsyncContextStrategy:()=>o});var n=r(292),i=r(295);function o(e){const t=(0,n.getMainCarrier)();(0,n.getSentryCarrier)(t).acs=e}function a(e){const t=(0,n.getSentryCarrier)(e);return t.acs?t.acs:(0,i.getStackAsyncContextStrategy)()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getGlobalSingleton:()=>s,getMainCarrier:()=>o,getSentryCarrier:()=>a});var n=r(293),i=r(294);function o(){return a(i.GLOBAL_OBJ),i.GLOBAL_OBJ}function a(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||n.SDK_VERSION,t[n.SDK_VERSION]=t[n.SDK_VERSION]||{}}function s(e,t,r=i.GLOBAL_OBJ){const o=r.__SENTRY__=r.__SENTRY__||{},a=o[n.SDK_VERSION]=o[n.SDK_VERSION]||{};return a[e]||(a[e]=t())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SDK_VERSION:()=>n});const n="9.6.0"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{GLOBAL_OBJ:()=>n});const n=globalThis},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AsyncContextStack:()=>s,getStackAsyncContextStrategy:()=>f});var n=r(296),i=r(297),o=r(301),a=r(292);class s{constructor(e,t){let r,n;r=e||new i.Scope,n=t||new i.Scope,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){const t=this._pushScope();let r;try{r=e(t)}catch(e){throw this._popScope(),e}return(0,o.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}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function c(){const e=(0,a.getMainCarrier)(),t=(0,a.getSentryCarrier)(e);return t.stack=t.stack||new s((0,n.getDefaultCurrentScope)(),(0,n.getDefaultIsolationScope)())}function u(e){return c().withScope(e)}function l(e,t){const r=c();return r.withScope((()=>(r.getStackTop().scope=e,t(e))))}function p(e){return c().withScope((()=>e(c().getIsolationScope())))}function f(){return{withIsolationScope:p,withScope:u,withSetScope:l,withSetIsolationScope:(e,t)=>p(t),getCurrentScope:()=>c().getScope(),getIsolationScope:()=>c().getIsolationScope()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDefaultCurrentScope:()=>o,getDefaultIsolationScope:()=>a});var n=r(292),i=r(297);function o(){return(0,n.getGlobalSingleton)("defaultCurrentScope",(()=>new i.Scope))}function a(){return(0,n.getGlobalSingleton)("defaultIsolationScope",(()=>new i.Scope))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Scope:()=>p});var n=r(298),i=r(301),o=r(303),a=r(306),s=r(307),c=r(305),u=r(308),l=r(309);class p{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,s.generateTraceId)(),sampleRand:Math.random()}}clone(){const e=new p;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,(0,l._setSpanForScope)(e,(0,l._getSpanForScope)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}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,username:void 0},this._session&&(0,n.updateSession)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}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}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,r=t instanceof p?t.getScopeData():(0,i.isPlainObject)(t)?e:void 0,{tags:n,extra:o,user:a,contexts:s,level:c,fingerprint:u=[],propagationContext:l}=r||{};return this._tags={...this._tags,...n},this._extra={...this._extra,...o},this._contexts={...this._contexts,...s},a&&Object.keys(a).length&&(this._user=a),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),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._session=void 0,(0,l._setSpanForScope)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,s.generateTraceId)(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const r="number"==typeof t?t:100;if(r<=0)return this;const n={timestamp:(0,c.dateTimestampInSeconds)(),...e};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),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}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,l._getSpanForScope)(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,u.merge)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const r=t?.event_id||(0,a.uuid4)();if(!this._client)return o.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?.event_id||(0,a.uuid4)();if(!this._client)return o.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?.event_id||(0,a.uuid4)();return this._client?(this._client.captureEvent(e,{...t,event_id:r},this),r):(o.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)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{closeSession:()=>c,makeSession:()=>a,updateSession:()=>s});var n=r(299),i=r(305),o=r(306);function a(e){const t=(0,i.timestampInSeconds)(),r={sid:(0,o.uuid4)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,n.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,i.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,o.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,{addNonEnumerableProperty:()=>u,convertToPlainObject:()=>f,dropUndefinedKeys:()=>y,extractExceptionKeysForMessage:()=>m,fill:()=>c,getOriginalFunction:()=>p,markFunctionWrapped:()=>l,objectify:()=>v});var n=r(300),i=r(302),o=r(301),a=r(303),s=r(304);function c(e,t,r){if(!(t in e))return;const n=e[t];if("function"!=typeof n)return;const o=r(n);"function"==typeof o&&l(o,n);try{e[t]=o}catch{i.DEBUG_BUILD&&a.logger.log(`Failed to replace method "${t}" in object`,e)}}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 p(e){return e.__sentry_original__}function f(e){if((0,o.isError)(e))return{message:e.message,name:e.name,stack:e.stack,...d(e)};if((0,o.isEvent)(e)){const t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...d(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 d(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 m(e,t=40){const r=Object.keys(f(e));r.sort();const n=r[0];if(!n)return"[object has no keys]";if(n.length>=t)return(0,s.truncate)(n,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 g(e,new Map)}function g(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{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.getOwnPropertyNames(e))void 0!==e[r]&&(n[r]=g(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(g(e,t))})),n}return e}function v(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:()=>u,getLocationHref:()=>c,htmlTreeAsString:()=>a});var n=r(301);const i=r(294).GLOBAL_OBJ,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 p;const f=Array.isArray(t)?t:t.keyAttrs,h=!Array.isArray(t)&&t.maxStringLength||o;for(;r&&a++<n&&(p=s(r,f),!("html"===p||a>1&&c+i.length*l+p.length>=h));)i.push(p),c+=p.length,r=r.parentNode;return i.reverse().join(u)}catch(e){return"<unknown>"}}function s(e,t){const r=e,o=[];if(!r?.tagName)return"";if(i.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}o.push(r.tagName.toLowerCase());const a=t?.length?t.filter((e=>r.getAttribute(e))).map((e=>[e,r.getAttribute(e)])):null;if(a?.length)a.forEach((e=>{o.push(`[${e[0]}="${e[1]}"]`)}));else{r.id&&o.push(`#${r.id}`);const e=r.className;if(e&&(0,n.isString)(e)){const t=e.split(/\s+/);for(const e of t)o.push(`.${e}`)}}const s=["aria-label","type","name","title","alt"];for(const e of s){const t=r.getAttribute(e);t&&o.push(`[${e}="${t}"]`)}return o.join("")}function c(){try{return i.document.location.href}catch(e){return""}}function u(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isDOMError:()=>s,isDOMException:()=>c,isElement:()=>d,isError:()=>i,isErrorEvent:()=>a,isEvent:()=>h,isInstanceOf:()=>v,isParameterizedString:()=>l,isPlainObject:()=>f,isPrimitive:()=>p,isRegExp:()=>m,isString:()=>u,isSyntheticEvent:()=>g,isThenable:()=>y,isVueViewModel:()=>b});const n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return v(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 p(e){return null===e||l(e)||"object"!=typeof e&&"function"!=typeof e}function f(e){return o(e,"Object")}function h(e){return"undefined"!=typeof Event&&v(e,Event)}function d(e){return"undefined"!=typeof Element&&v(e,Element)}function m(e){return o(e,"RegExp")}function y(e){return Boolean(e?.then&&"function"==typeof e.then)}function g(e){return f(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch(e){return!1}}function b(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}},(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,{CONSOLE_LEVELS:()=>a,consoleSandbox:()=>c,logger:()=>u,originalConsoleMethods:()=>s});var n=r(292),i=r(302),o=r(294);const a=["debug","info","warn","error","log","assert","trace"],s={};function c(e){if(!("console"in o.GLOBAL_OBJ))return e();const t=o.GLOBAL_OBJ.console,r={},n=Object.keys(s);n.forEach((e=>{const n=s[e];r[e]=t[e],t[e]=n}));try{return e()}finally{n.forEach((e=>{t[e]=r[e]}))}}const u=(0,n.getGlobalSingleton)("logger",(function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return i.DEBUG_BUILD?a.forEach((r=>{t[r]=(...t)=>{e&&c((()=>{o.GLOBAL_OBJ.console[r](`Sentry Logger [${r}]:`,...t)}))}})):a.forEach((e=>{t[e]=()=>{}})),t}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isMatchingPattern:()=>s,safeJoin:()=>a,snipLine:()=>o,stringMatchesSomePattern:()=>c,truncate:()=>i});var n=r(301);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,{browserPerformanceTimeOrigin:()=>c,dateTimestampInSeconds:()=>o,timestampInSeconds:()=>a});var n=r(294);const i=1e3;function o(){return Date.now()/i}const a=function(){const{performance:e}=n.GLOBAL_OBJ;if(!e?.now)return o;const t=Date.now()-e.now(),r=null==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/i}();let s;function c(){return s||(s=function(){const{performance:e}=n.GLOBAL_OBJ;if(!e?.now)return[void 0,"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?.navigationStart,c="number"==typeof s?Math.abs(s+r-i):t;return a||c<t?o<=c?[e.timeOrigin,"timeOrigin"]:[s,"navigationStart"]:[i,"dateNow"]}()),s[0]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addContextToFrame:()=>d,addExceptionMechanism:()=>l,addExceptionTypeValue:()=>u,checkOrSetAlreadyCaught:()=>m,getEventDescription:()=>c,parseSemver:()=>h,uuid4:()=>a});var n=r(299),i=r(304),o=r(294);function a(e=function(){const e=o.GLOBAL_OBJ;return e.crypto||e.msCrypto}()){let t=()=>16*Math.random();try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&t())>>e/4).toString(16)))}function s(e){return e.exception?.values?.[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?.data,...t.data};r.mechanism.data=e}}const p=/^(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 f(e){return parseInt(e||"",10)}function h(e){const t=e.match(p)||[],r=f(t[1]),n=f(t[2]),i=f(t[3]);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)));const a=Math.min(n-1,o);t.context_line=(0,i.snipLine)(e[a],t.colno||0),t.post_context=e.slice(Math.min(o+1,n),o+1+r).map((e=>(0,i.snipLine)(e,0)))}function m(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{(0,n.addNonEnumerableProperty)(e,"__sentry_captured__",!0)}catch(e){}return!1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{generateSpanId:()=>o,generateTraceId:()=>i});var n=r(306);function i(){return(0,n.uuid4)()}function o(){return(0,n.uuid4)().substring(16)}},(e,t,r)=>{"use strict";function n(e,t,r=2){if(!t||"object"!=typeof t||r<=0)return t;if(e&&0===Object.keys(t).length)return e;const i={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=n(i[e],t[e],r-1));return i}r.r(t),r.d(t,{merge:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_getSpanForScope:()=>a,_setSpanForScope:()=>o});var n=r(299);const i="_sentrySpan";function o(e,t){t?(0,n.addNonEnumerableProperty)(e,i,t):delete e[i]}function a(e){return e[i]}},(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,{applyClientOptions:()=>d,applyDebugIds:()=>m,applyDebugMeta:()=>y,parseEventHintOrCaptureContext:()=>g,prepareEvent:()=>h});var n=r(312),i=r(290),o=r(313),a=r(297),s=r(315),c=r(306),u=r(316),l=r(304),p=r(305),f=r(318);function h(e,t,r,n,s,l){const{normalizeDepth:h=3,normalizeMaxBreadth:g=1e3}=e,v={...t,event_id:t.event_id||r.event_id||(0,c.uuid4)(),timestamp:t.timestamp||(0,p.dateTimestampInSeconds)()},b=r.integrations||e.integrations.map((e=>e.name));d(v,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(v,b),s&&s.emit("applyFrameMetadata",t),void 0===t.type&&m(v,e.stackParser);const S=function(e,t){if(!t)return e;const r=e?e.clone():new a.Scope;return r.update(t),r}(n,r.captureContext);r.mechanism&&(0,c.addExceptionMechanism)(v,r.mechanism);const _=s?s.getEventProcessors():[],E=(0,i.getGlobalScope)().getScopeData();if(l){const e=l.getScopeData();(0,f.mergeScopeData)(E,e)}if(S){const e=S.getScopeData();(0,f.mergeScopeData)(E,e)}const w=[...r.attachments||[],...E.attachments];w.length&&(r.attachments=w),(0,f.applyScopeDataToEvent)(v,E);const x=[..._,...E.eventProcessors];return(0,o.notifyEventProcessors)(x,v,r).then((e=>(e&&y(e),"number"==typeof h&&h>0?function(e,t,r){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:(0,u.normalize)(e.data,t,r)}})))},...e.user&&{user:(0,u.normalize)(e.user,t,r)},...e.contexts&&{contexts:(0,u.normalize)(e.contexts,t,r)},...e.extra&&{extra:(0,u.normalize)(e.extra,t,r)}};e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,u.normalize)(e.contexts.trace.data,t,r)));e.spans&&(n.spans=e.spans.map((e=>({...e,...e.data&&{data:(0,u.normalize)(e.data,t,r)}}))));e.contexts?.flags&&n.contexts&&(n.contexts.flags=(0,u.normalize)(e.contexts.flags,3,r));return n}(e,h,g):e)))}function d(e,t){const{environment:r,release:i,dist:o,maxValueLength:a=250}=t;e.environment=e.environment||r||n.DEFAULT_ENVIRONMENT,!e.release&&i&&(e.release=i),!e.dist&&o&&(e.dist=o),e.message&&(e.message=(0,l.truncate)(e.message,a));const s=e.exception?.values?.[0];s?.value&&(s.value=(0,l.truncate)(s.value,a));const c=e.request;c?.url&&(c.url=(0,l.truncate)(c.url,a))}function m(e,t){const r=(0,s.getFilenameToDebugIdMap)(t);e.exception?.values?.forEach((e=>{e.stacktrace?.frames?.forEach((e=>{e.filename&&(e.debug_id=r[e.filename])}))}))}function y(e){const t={};if(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)}))})),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.entries(t).forEach((([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})}))}function g(e){if(e)return function(e){return e instanceof a.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","propagationContext"]},(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,{notifyEventProcessors:()=>s});var n=r(310),i=r(301),o=r(303),a=r(314);function s(e,t,r,c=0){return new a.SyncPromise(((a,u)=>{const l=e[c];if(null===t||"function"!=typeof l)a(t);else{const p=l({...t},r);n.DEBUG_BUILD&&l.id&&null===p&&o.logger.log(`Event processor "${l.id}" dropped event`),(0,i.isThenable)(p)?p.then((t=>s(e,t,r,c+1).then(a))).then(null,u):s(e,p,r,c+1).then(a).then(null,u)}}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SyncPromise:()=>s,rejectedSyncPromise:()=>a,resolvedSyncPromise:()=>o});var n,i=r(301);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){this._state=n.PENDING,this._handlers=[],this._runExecutor(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)}))}))}_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)}))}_runExecutor(e){const t=(e,t)=>{this._state===n.PENDING&&((0,i.isThenable)(t)?t.then(r,o):(this._state=e,this._value=t,this._executeHandlers()))},r=e=>{t(n.RESOLVED,e)},o=e=>{t(n.REJECTED,e)};try{e(r,o)}catch(e){o(e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDebugImagesForResources:()=>c,getFilenameToDebugIdMap:()=>s});var n=r(294);let i,o,a;function s(e){const t=n.GLOBAL_OBJ._sentryDebugIds;if(!t)return{};const r=Object.keys(t);return a&&r.length===o||(o=r.length,a=r.reduce(((r,n)=>{i||(i={});const o=i[n];if(o)r[o[0]]=o[1];else{const o=e(n);for(let e=o.length-1;e>=0;e--){const a=o[e],s=a?.filename,c=t[n];if(s&&c){r[s]=c,i[n]=[s,c];break}}}return r}),{})),a}function c(e,t){const r=s(e);if(!r)return[];const n=[];for(const e of t)e&&r[e]&&n.push({type:"sourcemap",code_file:e,debug_id:r[e]});return n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{normalize:()=>a,normalizeToSize:()=>s,normalizeUrlToBase:()=>u});var n=r(301),i=r(299),o=r(317);function a(e,t=100,r=1/0){try{return c("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function s(e,t=3,r=102400){const n=a(e,t);return i=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>r?s(e,t-1,r):n;var i}function c(e,t,r=1/0,a=1/0,s=function(){const e=new WeakSet;function t(t){return!!e.has(t)||(e.add(t),!1)}function r(t){e.delete(t)}return[t,r]}()){const[u,l]=s;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const p=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)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&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,o.getFunctionName)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!p.startsWith("[object "))return p;if(t.__sentry_skip_normalization__)return t;const f="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===f)return p.replace("object ","");if(u(t))return"[Circular ~]";const h=t;if(h&&"function"==typeof h.toJSON)try{return c("",h.toJSON(),f-1,a,s)}catch(e){}const d=Array.isArray(t)?[]:{};let m=0;const y=(0,i.convertToPlainObject)(t);for(const e in y){if(!Object.prototype.hasOwnProperty.call(y,e))continue;if(m>=a){d[e]="[MaxProperties ~]";break}const t=y[e];d[e]=c(e,t,f-1,a,s),m++}return l(t),d}function u(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";r.r(t),r.d(t,{UNKNOWN_FUNCTION:()=>i,createStackParser:()=>s,getFramesFromEvent:()=>h,getFunctionName:()=>f,stackParserFromStackParserOptions:()=>c,stripSentryFramesAndReverse:()=>u});const n=50,i="?",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,i=0)=>{const a=[],s=e.split("\n");for(let e=r;e<s.length;e++){const r=s[e];if(r.length>1024)continue;const c=o.test(r)?r.replace(o,"$1"):r;if(!c.match(/\S*Error: /)){for(const e of t){const t=e(c);if(t){a.push(t);break}}if(a.length>=n+i)break}}return u(a.slice(i))}}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(l(t).function||"")&&t.pop(),t.reverse(),a.test(l(t).function||"")&&(t.pop(),a.test(l(t).function||"")&&t.pop()),t.slice(0,n).map((e=>({...e,filename:e.filename||l(t).filename,function:e.function||i})))}function l(e){return e[e.length-1]||{}}const p="<anonymous>";function f(e){try{return e&&"function"==typeof e&&e.name||p}catch(e){return p}}function h(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(e){return}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyScopeDataToEvent:()=>s,mergeAndOverwriteScopeData:()=>u,mergeScopeData:()=>c});var n=r(319),i=r(299),o=r(308),a=r(323);function s(e,t){const{fingerprint:r,span:o,breadcrumbs:s,sdkProcessingMetadata:c}=t;!function(e,t){const{extra:r,tags:n,user:o,contexts:a,level:s,transactionName:c}=t,u=(0,i.dropUndefinedKeys)(r);Object.keys(u).length&&(e.extra={...u,...e.extra});const l=(0,i.dropUndefinedKeys)(n);Object.keys(l).length&&(e.tags={...l,...e.tags});const p=(0,i.dropUndefinedKeys)(o);Object.keys(p).length&&(e.user={...p,...e.user});const f=(0,i.dropUndefinedKeys)(a);Object.keys(f).length&&(e.contexts={...f,...e.contexts});s&&(e.level=s);c&&"transaction"!==e.type&&(e.transaction=c)}(e,t),o&&function(e,t){e.contexts={trace:(0,a.spanToTraceContext)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,n.getDynamicSamplingContextFromSpan)(t),...e.sdkProcessingMetadata};const r=(0,a.getRootSpan)(t),i=(0,a.spanToJSON)(r).description;i&&!e.transaction&&"transaction"===e.type&&(e.transaction=i)}(e,o),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint.length||delete e.fingerprint}(e,r),function(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,s),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,c)}function c(e,t){const{extra:r,tags:n,user:i,contexts:a,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:p,eventProcessors:f,attachments:h,propagationContext:d,transactionName:m,span:y}=t;u(e,"extra",r),u(e,"tags",n),u(e,"user",i),u(e,"contexts",a),e.sdkProcessingMetadata=(0,o.merge)(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),y&&(e.span=y),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),p.length&&(e.fingerprint=[...e.fingerprint,...p]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),h.length&&(e.attachments=[...e.attachments,...h]),e.propagationContext={...e.propagationContext,...d}}function u(e,t,r){e[t]=(0,o.merge)(e[t],r,1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{freezeDscOnSpan:()=>f,getDynamicSamplingContextFromClient:()=>h,getDynamicSamplingContextFromScope:()=>d,getDynamicSamplingContextFromSpan:()=>m,spanToBaggageHeader:()=>y});var n=r(312),i=r(290),o=r(320),a=r(321),s=r(299),c=r(322),u=r(323),l=r(325);const p="_frozenDsc";function f(e,t){const r=e;(0,s.addNonEnumerableProperty)(r,p,t)}function h(e,t){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},o=(0,s.dropUndefinedKeys)({environment:r.environment||n.DEFAULT_ENVIRONMENT,release:r.release,public_key:i,trace_id:e});return t.emit("createDsc",o),o}function d(e,t){const r=t.getPropagationContext();return r.dsc||h(r.traceId,e)}function m(e){const t=(0,i.getClient)();if(!t)return{};const r=(0,u.getRootSpan)(e),n=(0,u.spanToJSON)(r),s=n.data,f=r.spanContext().traceState,d=f?.get("sentry.sample_rate")??s[o.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];function m(e){return"number"!=typeof d&&"string"!=typeof d||(e.sample_rate=`${d}`),e}const y=r[p];if(y)return m(y);const g=f?.get("sentry.dsc"),v=g&&(0,a.baggageHeaderToDynamicSamplingContext)(g);if(v)return m(v);const b=h(e.spanContext().traceId,t),S=s[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],_=n.description;return"url"!==S&&_&&(b.transaction=_),(0,c.hasSpansEnabled)()&&(b.sampled=String((0,u.spanIsSampled)(r)),b.sample_rand=f?.get("sentry.sample_rand")??(0,l.getCapturedScopesOnSpan)(r).scope?.getPropagationContext().sampleRand.toString()),m(b),t.emit("createDsc",b,r),b}function y(e){const t=m(e);return(0,a.dynamicSamplingContextToSentryBaggageHeader)(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SEMANTIC_ATTRIBUTE_CACHE_HIT:()=>h,SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE:()=>m,SEMANTIC_ATTRIBUTE_CACHE_KEY:()=>d,SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME:()=>f,SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD:()=>y,SEMANTIC_ATTRIBUTE_PROFILE_ID:()=>p,SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME:()=>l,SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON:()=>s,SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT:()=>c,SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE:()=>u,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>o,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>a,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>i,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>n,SEMANTIC_ATTRIBUTE_URL_FULL:()=>g});const n="sentry.source",i="sentry.sample_rate",o="sentry.op",a="sentry.origin",s="sentry.idle_span_finish_reason",c="sentry.measurement_unit",u="sentry.measurement_value",l="sentry.custom_span_name",p="sentry.profile_id",f="sentry.exclusive_time",h="cache.hit",d="cache.key",m="cache.item_size",y="http.request.method",g="url.full"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MAX_BAGGAGE_STRING_LENGTH:()=>c,SENTRY_BAGGAGE_KEY_PREFIX:()=>a,SENTRY_BAGGAGE_KEY_PREFIX_REGEX:()=>s,baggageHeaderToDynamicSamplingContext:()=>u,dynamicSamplingContextToSentryBaggageHeader:()=>l,objectToBaggageHeader:()=>h,parseBaggageHeader:()=>p});var n=r(302),i=r(301),o=r(303);const a="sentry-",s=/^sentry-/,c=8192;function u(e){const t=p(e);if(!t)return;const r=Object.entries(t).reduce(((e,[t,r])=>{if(t.match(s)){e[t.slice(a.length)]=r}return e}),{});return Object.keys(r).length>0?r:void 0}function l(e){if(!e)return;return h(Object.entries(e).reduce(((e,[t,r])=>(r&&(e[`${a}${t}`]=r),e)),{}))}function p(e){if(e&&((0,i.isString)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const r=f(t);return Object.entries(r).forEach((([t,r])=>{e[t]=r})),e}),{}):f(e)}function f(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,r])=>(t&&r&&(e[t]=r),e)),{})}function h(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce(((e,[t,r],i)=>{const a=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,s=0===i?a:`${e},${a}`;return s.length>c?(n.DEBUG_BUILD&&o.logger.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):s}),"")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{hasSpansEnabled:()=>i,hasTracingEnabled:()=>o});var n=r(290);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||(0,n.getClient)()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}const o=i},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACE_FLAG_NONE:()=>m,TRACE_FLAG_SAMPLED:()=>y,addChildSpanToSpan:()=>A,convertSpanLinksForEnvelope:()=>_,getActiveSpan:()=>D,getRootSpan:()=>I,getSpanDescendants:()=>R,getStatusMessage:()=>T,removeChildSpanFromSpan:()=>k,showSpanDropWarning:()=>M,spanIsSampled:()=>O,spanTimeInputToSeconds:()=>E,spanToJSON:()=>x,spanToTraceContext:()=>b,spanToTraceHeader:()=>S,spanToTransactionTraceContext:()=>v,updateSpanName:()=>N});var n=r(291),i=r(292),o=r(290),a=r(320),s=r(324),c=r(325),u=r(303),l=r(299),p=r(307),f=r(305),h=r(326),d=r(309);const m=0,y=1;let g=!1;function v(e){const{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:o,status:a,origin:s,links:c}=x(e);return(0,l.dropUndefinedKeys)({parent_span_id:o,span_id:t,trace_id:r,data:n,op:i,status:a,origin:s,links:c})}function b(e){const{spanId:t,traceId:r,isRemote:n}=e.spanContext(),i=n?t:x(e).parent_span_id,o=(0,c.getCapturedScopesOnSpan)(e).scope,a=n?o?.getPropagationContext().propagationSpanId||(0,p.generateSpanId)():t;return(0,l.dropUndefinedKeys)({parent_span_id:i,span_id:a,trace_id:r})}function S(e){const{traceId:t,spanId:r}=e.spanContext(),n=O(e);return(0,h.generateSentryTraceHeader)(t,r,n)}function _(e){return e&&e.length>0?e.map((({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:i})=>({span_id:e,trace_id:t,sampled:r===y,attributes:i,...n}))):void 0}function E(e){return"number"==typeof e?w(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?w(e.getTime()):(0,f.timestampInSeconds)()}function w(e){return e>9999999999?e/1e3:e}function x(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();const{spanId:t,traceId:r}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:n,startTime:i,name:o,endTime:s,parentSpanId:c,status:u,links:p}=e;return(0,l.dropUndefinedKeys)({span_id:t,trace_id:r,data:n,description:o,parent_span_id:c,start_timestamp:E(i),timestamp:E(s)||void 0,status:T(u),op:n[a.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:n[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:_(p)})}return{span_id:t,trace_id:r,start_timestamp:0,data:{}}}function O(e){const{traceFlags:t}=e.spanContext();return t===y}function T(e){if(e&&e.code!==s.SPAN_STATUS_UNSET)return e.code===s.SPAN_STATUS_OK?"ok":e.message||"unknown_error"}const P="_sentryChildSpans",C="_sentryRootSpan";function A(e,t){const r=e[C]||e;(0,l.addNonEnumerableProperty)(t,C,r),e[P]?e[P].add(t):(0,l.addNonEnumerableProperty)(e,P,new Set([t]))}function k(e,t){e[P]&&e[P].delete(t)}function R(e){const t=new Set;return function e(r){if(!t.has(r)&&O(r)){t.add(r);const n=r[P]?Array.from(r[P]):[];for(const t of n)e(t)}}(e),Array.from(t)}function I(e){return e[C]||e}function D(){const e=(0,i.getMainCarrier)(),t=(0,n.getAsyncContextStrategy)(e);return t.getActiveSpan?t.getActiveSpan():(0,d._getSpanForScope)((0,o.getCurrentScope)())}function M(){g||((0,u.consoleSandbox)((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")})),g=!0)}function N(e,t){e.updateName(t),e.setAttributes({[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]:t})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SPAN_STATUS_ERROR:()=>o,SPAN_STATUS_OK:()=>i,SPAN_STATUS_UNSET:()=>n,getSpanStatusFromHttpCode:()=>a,setHttpStatus:()=>s});const n=0,i=1,o=2;function a(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:o,message:"unauthenticated"};case 403:return{code:o,message:"permission_denied"};case 404:return{code:o,message:"not_found"};case 409:return{code:o,message:"already_exists"};case 413:return{code:o,message:"failed_precondition"};case 429:return{code:o,message:"resource_exhausted"};case 499:return{code:o,message:"cancelled"};default:return{code:o,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:o,message:"unimplemented"};case 503:return{code:o,message:"unavailable"};case 504:return{code:o,message:"deadline_exceeded"};default:return{code:o,message:"internal_error"}}return{code:o,message:"unknown_error"}}function s(e,t){e.setAttribute("http.response.status_code",t);const r=a(t);"unknown_error"!==r.message&&e.setStatus(r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getCapturedScopesOnSpan:()=>s,setCapturedScopesOnSpan:()=>a});var n=r(299);const i="_sentryScope",o="_sentryIsolationScope";function a(e,t,r){e&&((0,n.addNonEnumerableProperty)(e,o,r),(0,n.addNonEnumerableProperty)(e,i,t))}function s(e){return{scope:e[i],isolationScope:e[o]}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACEPARENT_REGEXP:()=>a,extractTraceparentData:()=>s,generateSentryTraceHeader:()=>u,propagationContextFromHeaders:()=>c});var n=r(327),i=r(321),o=r(307);const a=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function s(e){if(!e)return;const t=e.match(a);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 c(e,t){const r=s(e),a=(0,i.baggageHeaderToDynamicSamplingContext)(t);if(!r?.traceId)return{traceId:(0,o.generateTraceId)(),sampleRand:Math.random()};const c=function(e,t){const r=(0,n.parseSampleRate)(t?.sample_rand);if(void 0!==r)return r;const i=(0,n.parseSampleRate)(t?.sample_rate);return i&&void 0!==e?.parentSampled?e.parentSampled?Math.random()*i:i+Math.random()*(1-i):Math.random()}(r,a);a&&(a.sample_rand=c.toString());const{traceId:u,parentSpanId:l,parentSampled:p}=r;return{traceId:u,parentSpanId:l,sampled:p,dsc:a||{},sampleRand:c}}function u(e=(0,o.generateTraceId)(),t=(0,o.generateSpanId)(),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}},(e,t,r)=>{"use strict";function n(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}r.r(t),r.d(t,{parseSampleRate:()=>n})},,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{cacheSlot:()=>i,forgetCache:()=>s,makeVar:()=>u,recallCache:()=>c});var n=r(337),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:()=>p});var n=r(338),i=r(345),o=r(339),a=r(340),s=r(344);let c;function u(...e){return(c||(c=new n.Trie("function"==typeof WeakMap))).lookupArray(e)}const l=new Set;function p(e,{max:t=Math.pow(2,16),keyArgs:r,makeCacheKey:n=u,normalizeResult:s,subscribe:c,cache:p=i.StrongCache}=Object.create(null)){const f="function"==typeof p?new p(t,(e=>e.dispose())):p,h=function(){const t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let i=f.get(t);i||(f.set(t,i=new o.Entry(e)),i.normalizeResult=s,i.subscribe=c,i.forget=()=>f.delete(t));const u=i.recompute(Array.prototype.slice.call(arguments));return f.set(t,i),l.add(f),a.parentEntrySlot.hasValue()||(l.forEach((e=>e.clean())),l.clear()),u};function d(e){const t=e&&f.get(e);t&&t.setDirty()}function m(e){const t=e&&f.get(e);if(t)return t.peek()}function y(e){return!!e&&f.delete(e)}return Object.defineProperty(h,"size",{get:()=>f.size,configurable:!1,enumerable:!1}),Object.freeze(h.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:s,subscribe:c,cache:f}),h.dirtyKey=d,h.dirty=function(){d(n.apply(null,arguments))},h.peekKey=m,h.peek=function(){return m(n.apply(null,arguments))},h.forgetKey=y,h.forget=function(){return y(n.apply(null,arguments))},h.makeCacheKey=n,h.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(h)}},(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:()=>l});var n=r(340),i=r(343);const o=[];function a(e,t){if(!e)throw new Error(t||"assertion failure")}function s(e,t){const r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function c(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function u(e){return e.slice(0)}class l{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,++l.count}peek(){if(1===this.value.length&&!h(this))return p(this),this.value[0]}recompute(e){return a(!this.recomputing,"already recomputing"),p(this),h(this)?function(e,t){S(e),n.parentEntrySlot.withValue(e,f,[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;m(e)}(e);return c(e.value)}(this,e):c(this.value)}setDirty(){this.dirty||(this.dirty=!0,d(this),(0,i.maybeUnsubscribe)(this))}dispose(){this.setDirty(),S(this),y(this,((e,t)=>{e.setDirty(),_(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)?g(t,e):v(t,e),t}function f(e,t){e.recomputing=!0;const{normalizeResult:r}=e;let n;r&&1===e.value.length&&(n=u(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),r&&n&&!s(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 d(e){y(e,g)}function m(e){y(e,v)}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 g(e,t){a(e.childValues.has(t)),a(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&&d(e)}function v(e,t){a(e.childValues.has(t)),a(!h(t));const r=e.childValues.get(t);0===r.length?e.childValues.set(t,u(t.value)):s(r,t.value)||e.setDirty(),b(e,t),h(e)||m(e)}function b(e,t){const r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(o.length<100&&o.push(r),e.dirtyChildren=null))}function S(e){e.childValues.size>0&&e.childValues.forEach(((t,r)=>{_(e,r)})),e.forgetDeps(),a(null===e.dirtyChildren)}function _(e,t){t.parents.delete(e),e.childValues.delete(t),b(e,t)}l.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(341);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(342);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(340),i=r(343);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(347),i=r(348);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(285))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{useSyncExternalStore:()=>a});r(349);var i=r(347),o=r(357),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(350),i=r(354),o=r(353),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(351),i=r(352),o=r(353),a=r(355);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=f(i))||(t=h(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,f(t,r)||h(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(f(e,t)||h(e,t))}var l=Symbol.for("ApolloErrorMessageHandler_"+i.version);function p(e){if("string"==typeof e)return e;try{return(0,a.stringifyForDisplay)(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function f(e,t){if(void 0===t&&(t=[]),e)return o.default[l]&&o.default[l](e,t.map(p))}function h(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(p)})))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InvariantError:()=>s,default:()=>h,invariant:()=>c,setVerbosity:()=>f});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 p(e){return function(){if(u.indexOf(e)>=l)return(console[e]||console.log).apply(console,arguments)}}function f(e){var t=u[l];return l=Math.max(0,u.indexOf(e)),t}!function(e){e.debug=p("debug"),e.log=p("log"),e.warn=p("warn"),e.error=p("error")}(c||(c={}));const h=c},(e,t,r)=>{"use strict";r.r(t),r.d(t,{version:()=>n});var n="3.13.0"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(354);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(356);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:()=>p,canUseSymbol:()=>s,canUseWeakMap:()=>o,canUseWeakSet:()=>a});var n=r(349),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,p=(u||i)&&!l},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{ErrorLink:()=>c,onError:()=>s});var n=r(103),i=r(417),o=r(420),a=r(419);function s(e){return new a.ApolloLink((function(t,r){return new o.Observable((function(n){var o,a,s;try{o=r(t).subscribe({next:function(o){o.errors?s=e({graphQLErrors:o.errors,response:o,operation:t,forward:r}):(0,i.graphQLResultHasProtocolErrors)(o)&&(s=e({protocolErrors:o.extensions[i.PROTOCOL_ERRORS_SYMBOL],response:o,operation:t,forward:r})),s?a=s.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.next(o)},error:function(i){(s=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors||void 0,forward:r}))?a=s.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.error(i)},complete:function(){s||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){o&&o.unsubscribe(),a&&o.unsubscribe()}}))}))}var c=function(e){function t(t){var r=e.call(this)||this;return r.link=s(t),r}return(0,n.__extends)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)},t}(a.ApolloLink)},(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(349),r(418)),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,p=r.errorMessage,f=r.extraInfo,h=e.call(this,p)||this;return h.name="ApolloError",h.graphQLErrors=s||[],h.protocolErrors=c||[],h.clientErrors=u||[],h.networkError=l||null,h.message=p||(o=h,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")),h.extraInfo=f,h.cause=(0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)([l],s||[],!0),c||[],!0),u||[],!0).find((function(e){return!!e}))||null,h.__proto__=t.prototype,h}return(0,n.__extends)(t,e),t}(Error)},(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,{ApolloLink:()=>p});var n=r(349),i=r(420),o=r(421),a=r(422),s=r(435);function c(e,t){return t?t(e):i.Observable.of()}function u(e){return"function"==typeof e?new p(e):e}function l(e){return e.request.length<=1}var p=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)(39)},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:()=>x});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"),p=u("observable"),f=u("species");function h(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function d(e){var t=e.constructor;return void 0!==t&&null===(t=t[f])&&(t=void 0),void 0!==t?t:x}function m(e){return e instanceof x}function y(e){y.log?y.log(e):setTimeout((function(){throw e}))}function g(e){Promise.resolve().then((function(){try{e()}catch(e){y(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=h(t,"unsubscribe");r&&r.call(t)}}catch(e){y(e)}}function b(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function S(e,t,r){e._state="running";var n=e._observer;try{var i=h(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){y(e)}"closed"===e._state?v(e):"running"===e._state&&(e._state="ready")}function _(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 g((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(S(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)}))):void S(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){_(this._subscription,"next",e)},t.error=function(e){_(this._subscription,"error",e)},t.complete=function(){_(this._subscription,"complete")},a(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),x=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(d(this))((function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(d(this))((function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=d(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=d(this);return new i((function(t){var n,o=0;return function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=d(this);return new r((function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[p]=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=h(t,p);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=h(t,l)))return new r((function(e){g((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){g((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){g((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:f,get:function(){return this}}]),e}();s()&&Object.defineProperty(x,Symbol("extensions"),{value:{symbol:p,hostReportError:y},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(423);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:()=>f,getFragmentDefinition:()=>l,getFragmentDefinitions:()=>c,getMainDefinition:()=>p,getOperationDefinition:()=>a,getOperationName:()=>s,getQueryDefinition:()=>u});var n=r(349),i=r(424);function o(e){(0,n.invariant)(e&&"Document"===e.kind,88);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw(0,n.newInvariantError)(89,e.kind);return e}));return(0,n.invariant)(t.length<=1,90,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,91),t}function l(e){(0,n.invariant)("Document"===e.kind,92),(0,n.invariant)(e.definitions.length<=1,93);var t=e.definitions[0];return(0,n.invariant)("FragmentDefinition"===t.kind,94),t}function p(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)(95)}function f(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:()=>d,getTypenameFromResult:()=>g,isDocumentNode:()=>u,isField:()=>v,isInlineFragment:()=>b,isReference:()=>c,makeReference:()=>s,resultKeyNameFromField:()=>y,storeKeyNameFromField:()=>p,valueToObjectRepresentation:()=>l});var n=r(349),i=r(418),o=r(425),a=r(431);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)(96,t.value,r.kind);e[t.value]=null}}function p(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)}))),d(e.name.value,n,r)}var f=["connection","include","skip","client","rest","export","nonreactive"],h=a.canonicalStringify,d=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(h(i),")")}return r.connection.key}var o=e;if(t){var a=h(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach((function(e){-1===f.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(h(r[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=h;return h=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 y(e){return e.alias?e.alias.value:e.name.value}function g(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[y(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=g(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";r.r(t),r.d(t,{createFragmentMap:()=>s,getFragmentFromSelection:()=>c,getFragmentQueryDocument:()=>a,isFullyUnmaskedOperation:()=>u});var n=r(103),i=r(349),o=r(426);function a(e,t){var r=t,o=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw(0,i.newInvariantError)(85,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&o.push(e)})),void 0===r&&((0,i.invariant)(1===o.length,86,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 s(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function c(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,87,r),n||null;default:return null}}function u(e){var t=!0;return(0,o.visit)(e,{FragmentSpread:function(e){if(!(t=!!e.directives&&e.directives.some((function(e){return"unmask"===e.name.value}))))return o.BREAK}}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BREAK:()=>s,getEnterLeaveForKind:()=>l,getVisitFn:()=>p,visit:()=>c,visitInParallel:()=>u});var n=r(427),i=r(428),o=r(429),a=r(430);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,p,f,h=Array.isArray(e),d=[e],m=-1,y=[],g=e;const v=[],b=[];do{m++;const e=m===d.length,a=e&&0!==y.length;if(e){if(p=0===b.length?void 0:v[v.length-1],g=f,f=b.pop(),a)if(h){g=g.slice();let e=0;for(const[t,r]of y){const n=t-e;null===r?(g.splice(n,1),e++):g[n]=r}}else{g=Object.defineProperties({},Object.getOwnPropertyDescriptors(g));for(const[e,t]of y)g[e]=t}m=u.index,d=u.keys,y=u.edits,h=u.inArray,u=u.prev}else if(f){if(p=h?m:d[m],g=f[p],null==g)continue;v.push(p)}let l;if(!Array.isArray(g)){var S,_;(0,o.isNode)(g)||(0,n.devAssert)(!1,`Invalid AST Node: ${(0,i.inspect)(g)}.`);const r=e?null===(S=c.get(g.kind))||void 0===S?void 0:S.leave:null===(_=c.get(g.kind))||void 0===_?void 0:_.enter;if(l=null==r?void 0:r.call(t,g,p,f,v,b),l===s)break;if(!1===l){if(!e){v.pop();continue}}else if(void 0!==l&&(y.push([p,l]),!e)){if(!(0,o.isNode)(l)){v.pop();continue}g=l}}var E;if(void 0===l&&a&&y.push([p,g]),e)v.pop();else u={inArray:h,index:m,keys:d,edits:y,prev:u},h=Array.isArray(g),d=h?g:null!==(E=r[g.kind])&&void 0!==E?E:[],m=-1,y=[],f&&b.push(f),f=g}while(void 0!==u);return 0!==y.length?y[y.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 p(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,{canonicalStringify:()=>a});var n,i=r(432),o=r(434),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(433),i=r(345),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(349),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(349);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)(46,o)}return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(419),i=r(437),o=r(438),a=r(448),s=r(450),c=r(456),u=r(449),l=r(420),p=r(457),f=r(459),h=r(460);function d({uri:e="/graphql",useGETForQueries:t,isExtractableFile:r=h.default,FormData:d,formDataAppendFile:m=f.default,print:y=s.defaultPrinter,fetch:g,fetchOptions:v,credentials:b,headers:S,includeExtensions:_}={}){const E={http:{includeExtensions:_},options:v,credentials:b,headers:S};return new n.ApolloLink((n=>{const f=n.getContext(),{clientAwareness:{name:h,version:v}={},headers:b}=f,S={http:f.http,options:f.fetchOptions,credentials:f.credentials,headers:{...h&&{"apollographql-client-name":h},...v&&{"apollographql-client-version":v},...b}},{options:_,body:w}=(0,s.selectHttpOptionsAndBodyInternal)(n,y,s.fallbackHttpConfig,E,S),{clone:x,files:O}=(0,p.default)(w,r,"");let T=(0,c.selectURI)(n,e);if(O.size){_.headers&&delete _.headers["content-type"];const e=new(d||FormData);e.append("operations",(0,u.serializeFetchParameter)(x,"Payload"));const t={};let r=0;O.forEach((e=>{t[++r]=e})),e.append("map",JSON.stringify(t)),r=0,O.forEach(((t,n)=>{m(e,String(++r),n)})),_.body=e}else if(t&&!n.query.definitions.some((e=>"OperationDefinition"===e.kind&&"mutation"===e.operation))&&(_.method="GET"),"GET"===_.method){const{newURI:e,parseError:t}=(0,a.rewriteURIForGET)(T,w);if(t)return new l.Observable((e=>{e.error(t)}));T=e}else _.body=(0,u.serializeFetchParameter)(x,"Payload");const{controller:P}=(0,i.createSignalIfSupported)();"boolean"!=typeof P&&(_.signal&&(_.signal.aborted?P.abort():_.signal.addEventListener("abort",(()=>{P.abort()}),{once:!0})),_.signal=P.signal);const C=g||fetch;return new l.Observable((e=>{let t;return C(T,_).then((e=>(n.setContext({response:e}),e))).then((0,o.parseAndCheckHttpResponse)(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,"boolean"!=typeof P&&P.abort()}}))}))}},(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,{handleError:()=>f,parseAndCheckHttpResponse:()=>h,parseHeaders:()=>l,parseJsonBody:()=>p,readMultipartBody:()=>u});var n=r(103),i=r(439),o=r(447),a=r(417),s=r(444),c=Object.prototype.hasOwnProperty;function u(e,t){return(0,n.__awaiter)(this,void 0,void 0,(function(){var r,o,c,u,f,h,d,m,y,g,v,b,S,_,E,w,x,O,T,P,C,A,k,R;return(0,n.__generator)(this,(function(I){switch(I.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===(R=e.headers)||void 0===R?void 0:R.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():"-",f="\r\n--".concat(u),h="",d=(0,i.responseIterator)(e),m=!0,I.label=1;case 1:return m?[4,d.next()]:[3,3];case 2:for(y=I.sent(),g=y.value,v=y.done,b="string"==typeof g?g:r.decode(g),S=h.length-f.length+1,m=!v,_=(h+=b).indexOf(f,S);_>-1;){if(E=void 0,A=[h.slice(0,_),h.slice(_+f.length)],h=A[1],w=(E=A[0]).indexOf("\r\n\r\n"),x=l(E.slice(0,w)),(O=x["content-type"])&&-1===O.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(T=E.slice(w))if(P=p(e,T),Object.keys(P).length>1||"data"in P||"incremental"in P||"errors"in P||"payload"in P)if((0,s.isApolloPayloadResult)(P)){if(C={},"payload"in P){if(1===Object.keys(P).length&&null===P.payload)return[2];C=(0,n.__assign)({},P.payload)}"errors"in P&&(C=(0,n.__assign)((0,n.__assign)({},C),{extensions:(0,n.__assign)((0,n.__assign)({},"extensions"in C?C.extensions:null),(k={},k[a.PROTOCOL_ERRORS_SYMBOL]=P.errors,k))})),t(C)}else t(P);else if(1===Object.keys(P).length&&"hasNext"in P&&!P.hasNext)return[2];_=h.indexOf(f)}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 p(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 f(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function h(e){return function(t){return t.text().then((function(e){return p(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(357),i=r(440),o=r(441),a=r(442),s=r(443);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(357);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(357);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(357);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,{isApolloPayloadResult:()=>u,isExecutionPatchIncrementalResult:()=>a,isExecutionPatchInitialResult:()=>s,isExecutionPatchResult:()=>c,mergeIncrementalData:()=>l});var n=r(418),i=r(445),o=r(446);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(418),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,{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,{rewriteURIForGET:()=>i});var n=r(449);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,{serializeFetchParameter:()=>i});var n=r(349),i=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var i=(0,n.newInvariantError)(42,t,e.message);throw i.parseError=e,i}return r}},(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(451),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,p=e.query,f={operationName:c,variables:l};return s.includeExtensions&&(f.extensions=u),s.includeQuery&&(f.query=t(p,i.print)),{options:a,body:f}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{print:()=>s});var n,i=r(452),o=r(432),a=r(434),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,{print:()=>a});var n=r(453),i=r(455),o=r(426);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",p(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+(f(r)?l("(\n",p(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+(f(r)?l("(\n",p(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",p(c(e,"\n")),"\n}")}function l(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function p(e){return l(" ",e.replace(/\n/g,"\n "))}function f(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(454);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,p=!(null!=t&&t.minimize)&&(!o||e.length>70||l||a||s);let f="";const h=o&&(0,n.isWhiteSpace)(e.charCodeAt(0));return(p&&!h||a)&&(f+="\n"),f+=r,(p||l)&&(f+="\n"),'"""'+f+'"""'}},(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,{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,{default:()=>i});var n=r(458);function i(e,t,r=""){if(!arguments.length)throw new TypeError("Argument 1 `value` is required.");if("function"!=typeof t)throw new TypeError("Argument 2 `isExtractable` must be a function.");if("string"!=typeof r)throw new TypeError("Argument 3 `path` must be a string.");const i=new Map,o=new Map;return{clone:function e(r,a,s){if(t(r)){const e=o.get(r);return e?e.push(a):o.set(r,[a]),null}const c=Array.isArray(r)||"undefined"!=typeof FileList&&r instanceof FileList,u=(0,n.default)(r);if(c||u){let t=i.get(r);const n=!t;if(n&&(t=c?[]:r instanceof Object?{}:Object.create(null),i.set(r,t)),!s.has(r)){const i=a?`${a}.`:"",o=new Set(s).add(r);if(c){let a=0;for(const s of r){const r=e(s,i+a++,o);n&&t.push(r)}}else for(const a in r){const s=e(r[a],i+a,o);n&&(t[a]=s)}}return t}return r}(e,r,new Set),files:o}}},(e,t,r)=>{"use strict";function n(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t,r){"name"in r?e.append(t,r,r.name):e.append(t,r)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentryLink:()=>u});var n=r(419),i=r(417),o=r(420),a=r(462),s=r(466),c=r(468);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(463),i=r.n(n),o=r(452),a=r(465);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(464),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,{defaultOptions:()=>o,withDefaults:()=>a});var n=r(467),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:()=>c,attachBreadcrumbToSentry:()=>l,setFingerprint:()=>u,setTransaction:()=>s});var n=r(290),i=r(470),o=r(465),a=r(469);function s(e){const t=(0,o.extractDefinition)(e).name;t&&(0,n.getCurrentScope)().setTransactionName(t.value)}const c="{{ default }}";function u(e){const t=(0,o.extractDefinition)(e).name;t&&(0,n.getCurrentScope)().setFingerprint([c,t.value])}function l(e,t,r){const n=r.attachBreadcrumbs&&"function"==typeof r.attachBreadcrumbs.transform?r.attachBreadcrumbs.transform(t,e):t;n.data=(0,a.stringifyObjectKeys)(n.data),(0,i.addBreadcrumb)(n)}},(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,{addBreadcrumb:()=>s});var n=r(290),i=r(303),o=r(305);const a=100;function s(e,t){const r=(0,n.getClient)(),s=(0,n.getIsolationScope)();if(!r)return;const{beforeBreadcrumb:c=null,maxBreadcrumbs:u=a}=r.getOptions();if(u<=0)return;const l={timestamp:(0,o.dateTimestampInSeconds)(),...e},p=c?(0,i.consoleSandbox)((()=>c(l,t))):l;null!==p&&(r.emit&&r.emit("beforeAddBreadcrumb",p,t),s.addBreadcrumb(p,u))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BatchHttpLink:()=>g});var n=r(103),i=r(419),o=r(349),a=r(473),s=r(474),c=r(420),u=r(475),l=r(450),p=r(456),f=r(449),h=r(438),d=r(476),m=r(472),y=(0,o.maybe)((function(){return fetch})),g=function(e){function t(t){var r=e.call(this)||this,i=t||{},g=i.uri,v=void 0===g?"/graphql":g,b=i.fetch,S=i.print,_=void 0===S?l.defaultPrinter:S,E=i.includeExtensions,w=i.preserveHeaderCase,x=i.batchInterval,O=i.batchDebounce,T=i.batchMax,P=i.batchKey,C=i.includeUnusedVariables,A=void 0!==C&&C,k=(0,n.__rest)(i,["uri","fetch","print","includeExtensions","preserveHeaderCase","batchInterval","batchDebounce","batchMax","batchKey","includeUnusedVariables"]);var R={http:{includeExtensions:E,preserveHeaderCase:w},options:k.fetchOptions,credentials:k.credentials,headers:k.headers};r.batchDebounce=O,r.batchInterval=x||10,r.batchMax=T||10;return P=P||function(e){var t=e.getContext(),r={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:t.headers};return(0,p.selectURI)(e,v)+JSON.stringify(r)},r.batcher=new d.BatchLink({batchDebounce:r.batchDebounce,batchInterval:r.batchInterval,batchMax:r.batchMax,batchKey:P,batchHandler:function(e){var t=(0,p.selectURI)(e[0],v),r=e[0].getContext(),i={};if(r.clientAwareness){var d=r.clientAwareness,g=d.name,S=d.version;g&&(i["apollographql-client-name"]=g),S&&(i["apollographql-client-version"]=S)}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 x,O=e.map((function(e,t){var r=(0,l.selectHttpOptionsAndBodyInternal)((0,n.__assign)((0,n.__assign)({},e),{query:w[t]}),_,l.fallbackHttpConfig,R,E);return r.body.variables&&!A&&(r.body.variables=(0,m.filterOperationVariables)(r.body.variables,e.query)),r})),T=O.map((function(e){return e.body})),P=O[0].options;if("GET"===P.method)return(0,u.fromError)(new Error("apollo-link-batch-http does not support GET requests"));try{P.body=(0,f.serializeFetchParameter)(T,"Payload")}catch(e){return(0,u.fromError)(e)}return P.signal||"undefined"==typeof AbortController||(x=new AbortController,P.signal=x.signal),new c.Observable((function(r){return(b||(0,o.maybe)((function(){return fetch}))||y)(t,P).then((function(t){return e.forEach((function(e){return e.setContext({response:t})})),t})).then((0,h.parseAndCheckHttpResponse)(e)).then((function(e){return x=void 0,r.next(e),r.complete(),e})).catch((function(e){x=void 0,e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e)})),function(){x&&x.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,{filterOperationVariables:()=>o});var n=r(103),i=r(426);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";r.r(t),r.d(t,{getDirectiveNames:()=>a,getFragmentMaskMode:()=>f,getInclusionDirectives:()=>p,hasAllDirectives:()=>c,hasAnyDirectives:()=>s,hasClientExports:()=>l,hasDirectives:()=>u,shouldInclude:()=>o});var n=r(349),i=r(426);function o(e,t){var r=e.directives;return!r||!r.length||p(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,78,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 p(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,79,o);var a=i[0];(0,n.invariant)(a.name&&"if"===a.name.value,80,o);var s=a.value;(0,n.invariant)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),81,o),t.push({directive:e,ifArgument:a})}})),t}function f(e){var t,r,n=null===(t=e.directives)||void 0===t?void 0:t.find((function(e){return"unmask"===e.name.value}));if(!n)return"mask";var i=null===(r=n.arguments)||void 0===r?void 0:r.find((function(e){return"mode"===e.name.value}));return i&&"value"in i.value&&"migrate"===i.value.value?"migrate":"unmask"}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addNonReactiveToNamedFragments:()=>w,addTypenameToDocument:()=>y,buildQueryFromSelectionSet:()=>_,removeArgumentsFromDocument:()=>b,removeClientSetsFromDocument:()=>E,removeConnectionDirectiveFromDocument:()=>v,removeDirectivesFromDocument:()=>m,removeFragmentSpreadFromDocument:()=>S});var n=r(103),i=(r(349),r(430)),o=r(426),a=r(423),s=r(424),c=r(425),u=r(445),l={kind:i.Kind.FIELD,name:{kind:i.Kind.NAME,value:"__typename"}};function p(e,t){return!e||e.selectionSet.selections.every((function(e){return e.kind===i.Kind.FRAGMENT_SPREAD&&p(t[e.name.value],t)}))}function f(e){return p((0,a.getOperationDefinition)(e)||(0,a.getFragmentDefinition)(e),(0,c.createFragmentMap)((0,a.getFragmentDefinitions)(e)))?null:e}function h(e){var t=new Map,r=new Map;return e.forEach((function(e){e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))})),function(e){var n=t.get(e.name.value);return!n&&r.size&&r.forEach((function(t,r){r(e)&&(n=t)})),n}}function d(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=d(""),s=d(""),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,p=t.definitions.length-1;p>=0;--p)t.definitions[p].kind===i.Kind.OPERATION_DEFINITION&&++l;var m=h(e),y=function(e){return(0,u.isNonEmptyArray)(e)&&e.map(m).some((function(e){return e&&e.remove}))},g=new Map,v=!1,b={enter:function(e){if(y(e.directives))return v=!0,null}},S=(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(y(e.directives))return v=!0,null;var o=c(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){g.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===g.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 _=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){_(s(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},E=new Set;S.definitions.forEach((function(e){e.kind===i.Kind.OPERATION_DEFINITION?_(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(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 f((0,o.visit)(S,{FragmentSpread:w,FragmentDefinition:w,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=_(r(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,n.__assign)((0,n.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter((function(e){return t.has(e.variable.name.value)}))})}}}}))}var y=Object.assign((function(e){return(0,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}}),g={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([g],(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 f((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 S(e,t){function r(t){if(e.some((function(e){return e.name===t.name.value})))return null}return f((0,o.visit)(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}function _(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)}function w(e){return(0,a.checkDocument)(e),(0,o.visit)(e,{FragmentSpread:function(e){var t;if(!(null===(t=e.directives)||void 0===t?void 0:t.some((function(e){return"unmask"===e.name.value}))))return(0,n.__assign)((0,n.__assign)({},e),{directives:(0,n.__spreadArray)((0,n.__spreadArray)([],e.directives||[],!0),[{kind:i.Kind.DIRECTIVE,name:{kind:i.Kind.NAME,value:"nonreactive"}}],!1)})}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromError:()=>i});var n=r(420);function i(e){return new n.Observable((function(t){t.error(e)}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BatchLink:()=>a,OperationBatcher:()=>o.OperationBatcher});var n=r(103),i=r(419),o=r(477),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,p=void 0===l?function(){return null}:l,f=n.batchKey,h=void 0===f?function(){return""}:f;return r.batcher=new o.OperationBatcher({batchDebounce:i,batchInterval:s,batchMax:u,batchHandler:p,batchKey:h}),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(420),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,{ApolloClient:()=>f,mergeOptions:()=>p.mergeOptions});var n=r(103),i=r(349),o=r(419),a=r(495),s=r(352),c=r(504),u=r(479),l=r(501),p=r(503),f=function(){function e(e){var t,r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i.newInvariantError)(16);var a=e.uri,p=e.credentials,f=e.headers,h=e.cache,d=e.documentTransform,m=e.ssrMode,y=void 0!==m&&m,g=e.ssrForceFetchDelay,v=void 0===g?0:g,b=e.connectToDevTools,S=e.queryDeduplication,_=void 0===S||S,E=e.defaultOptions,w=e.defaultContext,x=e.assumeImmutableResults,O=void 0===x?h.assumeImmutableResults:x,T=e.resolvers,P=e.typeDefs,C=e.fragmentMatcher,A=e.name,k=e.version,R=e.devtools,I=e.dataMasking,D=e.link;D||(D=a?new c.HttpLink({uri:a,credentials:p,headers:f}):o.ApolloLink.empty()),this.link=D,this.cache=h,this.disableNetworkFetches=y||v>0,this.queryDeduplication=_,this.defaultOptions=E||Object.create(null),this.typeDefs=P,this.devtoolsConfig=(0,n.__assign)((0,n.__assign)({},R),{enabled:null!==(t=null==R?void 0:R.enabled)&&void 0!==t?t:b}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1),v&&setTimeout((function(){return r.disableNetworkFetches=!1}),v),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:h,client:this,resolvers:T,fragmentMatcher:C}),this.queryManager=new u.QueryManager({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:w,documentTransform:d,queryDeduplication:_,ssrMode:y,dataMasking:!!I,clientAwareness:{name:A,version:k},localState:this.localState,assumeImmutableResults:O,onBroadcast:this.devtoolsConfig.enabled?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.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,p.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,p.mergeOptions)(this.defaultOptions.query,e)),(0,i.invariant)("cache-and-network"!==e.fetchPolicy,17),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,p.mergeOptions)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map((function(i){return(0,n.__assign)((0,n.__assign)({},i),{data:t.queryManager.maskOperation({document:e.query,data:i.data,fetchPolicy:e.fetchPolicy,id:r})})}))},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,n.__assign)((0,n.__assign)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},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:()=>I});var n=r(103),i=r(349),o=(r(480),r(495)),a=r(444),s=r(473),c=r(474),u=r(431),l=r(492),p=r(493),f=r(490),h=r(445),d=r(423),m=r(424),y=r(418),g=r(356),v=r(420),b=r(494),S=r(417),_=r(481),E=r(482),w=r(489),x=r(451),O=r(491),T=r(432),P=r(434),C=r(496),A=r(500),k=Object.prototype.hasOwnProperty,R=Object.create(null),I=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new T.AutoCleanedWeakCache(P.cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new O.Trie(!1),this.noCacheWarningsByQueryId=new Set;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,this.dataMasking=e.dataMasking;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)(27))},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,h=e.variables,d=e.optimisticResponse,m=e.updateQueries,y=e.refetchQueries,g=void 0===y?[]:y,v=e.awaitRefetchQueries,b=void 0!==v&&v,_=e.update,E=e.onQueryUpdated,w=e.fetchPolicy,x=void 0===w?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.fetchPolicy)||"network-only":w,O=e.errorPolicy,T=void 0===O?(null===(u=this.defaultOptions.mutate)||void 0===u?void 0:u.errorPolicy)||"none":O,P=e.keepRootFields,C=e.context;return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return(0,i.invariant)(l,28),(0,i.invariant)("network-only"===x||"no-cache"===x,29),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),r=this.getDocumentInfo(l).hasClientExports,h=this.getVariables(l,h),r?[4,this.localState.addExportedVariables(l,h,C)]:[3,2];case 1:h=e.sent(),e.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:h,loading:!0,error:null}),a=d&&this.markMutationOptimistic(d,{mutationId:t,document:l,variables:h,fetchPolicy:x,errorPolicy:T,context:C,updateQueries:m,update:_,keepRootFields:P}),this.broadcastQueries(),s=this,[2,new Promise((function(e,r){return(0,p.asyncMap)(s.getObservableFromLink(l,(0,n.__assign)((0,n.__assign)({},C),{optimisticResponse:a?d:void 0}),h,{},!1),(function(e){if((0,f.graphQLResultHasError)(e)&&"none"===T)throw new S.ApolloError({graphQLErrors:(0,f.getGraphQLErrorsFromResult)(e)});o&&(o.loading=!1,o.error=null);var r=(0,n.__assign)({},e);return"function"==typeof g&&(g=g(r)),"ignore"===T&&(0,f.graphQLResultHasError)(r)&&delete r.errors,s.markMutationResult({mutationId:t,result:r,document:l,variables:h,fetchPolicy:x,errorPolicy:T,context:C,update:_,updateQueries:m,awaitRefetchQueries:b,refetchQueries:g,removeOptimistic:a?t:void 0,onQueryUpdated:E,keepRootFields:P})})).subscribe({next:function(r){s.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,n.__assign)((0,n.__assign)({},r),{data:s.maskOperation({document:l,data:r.data,fetchPolicy:x,id:t})}))},error:function(e){o&&(o.loading=!1,o.error=e),a&&s.cache.removeOptimistic(t),s.broadcastQueries(),r(e instanceof S.ApolloError?e:new S.ApolloError({networkError:e}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],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,h.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&&k.call(l,s)){var c=l[s],u=r.queries.get(n),p=u.document,f=u.variables,h=t.diff({query:p,variables:f,returnPartialData:!0,optimistic:!1}),m=h.result;if(h.complete&&m){var y=c(m,{mutationResult:i,queryName:p&&(0,d.getOperationName)(p)||void 0,queryVariables:f});y&&o.push({result:y,dataId:"ROOT_QUERY",query:p,variables:f})}}}))}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var p=[];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 p.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(p).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:R}):e;return i!==R&&(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),nonReactiveQuery:(0,c.addNonReactiveToNamedFragments)(e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,c.removeDirectivesFromDocument)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,d.getDefaultValues)((0,d.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 _.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;void 0===t&&(t=this.generateQueryId()),(0,i.invariant)(e.query,30),(0,i.invariant)("Document"===e.query.kind,31),(0,i.invariant)(!e.returnPartialData,32),(0,i.invariant)(!e.pollInterval,33);var o=this.transform(e.query);return this.fetchQuery(t,(0,n.__assign)((0,n.__assign)({},e),{query:o})).then((function(i){return i&&(0,n.__assign)((0,n.__assign)({},i),{data:r.maskOperation({document:o,data:i.data,fetchPolicy:e.fetchPolicy,id:t})})})).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)(34)),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 Map,s=new Set;return Array.isArray(e)&&e.forEach((function(e){if("string"==typeof e)o.set(e,e),a.set(e,!1);else if((0,m.isDocumentNode)(e)){var r=(0,x.print)(t.transform(e));o.set(r,(0,d.getOperationName)(e)),a.set(r,!1)}else(0,y.isNonNullObject)(e)&&e.query&&s.add(e)})),this.queries.forEach((function(t,n){var i=t.observableQuery,o=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&&a.has(s)||o&&a.has((0,x.print)(o)))&&(r.set(n,i),s&&a.set(s,!0),o&&a.set((0,x.print)(o),!0))}})),s.size&&s.forEach((function(e){var o=(0,g.makeUniqueId)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new _.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.variables,i=e.fetchPolicy,o=e.errorPolicy,a=void 0===o?"none":o,s=e.context,c=void 0===s?{}:s,u=e.extensions,l=void 0===u?{}:u;r=this.transform(r),n=this.getVariables(r,n);var p=function(e){return t.getObservableFromLink(r,c,e,l).map((function(n){"no-cache"!==i&&((0,w.shouldWriteResult)(n,a)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=(0,f.graphQLResultHasError)(n),s=(0,S.graphQLResultHasProtocolErrors)(n);if(o||s){var c={};if(o&&(c.graphQLErrors=n.errors),s&&(c.protocolErrors=n.extensions[S.PROTOCOL_ERRORS_SYMBOL]),"none"===a||s)throw new S.ApolloError(c)}return"ignore"===a&&delete n.errors,n}))};if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,n,c).then(p);return new v.Observable((function(e){var t=null;return h.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return p(n)},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 f=this.getDocumentInfo(e),h=f.serverQuery,m=f.clientQuery;if(h){var y=this.inFlightLinkObservables,g=this.link,S={query:h,variables:r,operationName:(0,d.getOperationName)(h)||void 0,context:this.prepareContext((0,n.__assign)((0,n.__assign)({},t),{forceFetch:!a})),extensions:i};if(t=S.context,a){var _=(0,x.print)(h),E=(0,u.canonicalStringify)(r),w=y.lookup(_,E);if(!(c=w.observable)){var O=new b.Concast([(0,o.execute)(g,S)]);c=w.observable=O,O.beforeNext((function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?O.beforeNext(e):y.remove(_,E)}))}}else c=new b.Concast([(0,o.execute)(g,S)])}else c=new b.Concast([v.Observable.of({data:{}})]),t=this.prepareContext(t);return m&&(c=(0,p.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,p.asyncMap)(this.getObservableFromLink(i,r.context,r.variables),(function(o){var a=(0,f.getGraphQLErrorsFromResult)(o),s=a.length>0,c=r.errorPolicy;if(n>=e.lastRequestId){if(s&&"none"===c)throw e.markError(new S.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,S.isApolloError)(t)?t:new S.ApolloError({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i=this;void 0===r&&(r=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,p=void 0===l?u&&u.fetchPolicy||"cache-first":l,f=t.errorPolicy,h=void 0===f?u&&u.errorPolicy||"none":f,d=t.returnPartialData,m=void 0!==d&&d,y=t.notifyOnNetworkStatusChange,g=void 0!==y&&y,v=t.context,S=void 0===v?{}:v,_=Object.assign({},t,{query:n,variables:s,fetchPolicy:p,errorPolicy:h,returnPartialData:m,notifyOnNetworkStatusChange:g,context:S}),w=function(e){_.variables=e;var n=i.fetchQueryByPolicy(c,_,r);return"standby"!==_.fetchPolicy&&n.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),n},x=function(){return i.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){x(),setTimeout((function(){return o.cancel(e)}))})),this.getDocumentInfo(_.query).hasClientExports)o=new b.Concast(this.localState.addExportedVariables(_.query,_.variables,_.context).then(w).then((function(e){return e.sources}))),a=!0;else{var O=w(_.variables);a=O.fromLink,o=new b.Concast(O.sources)}return o.promise.then(x,x),{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,g.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.maskOperation=function(e){var t=e.document,r=e.data;return this.dataMasking?(0,C.maskOperation)(r,t,this.cache):r},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?(0,A.maskFragment)(t,r,this.cache,n):t},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,p=t.context,f=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:o,variables:a,networkStatus:r});var d=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:p,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)},y="no-cache"===s?0:r===E.NetworkStatus.refetch&&"merge"!==c?1:2,g=function(){return i.getResultsFromLink(e,y,{query:o,variables:a,context:p,fetchPolicy:s,errorPolicy:u})},b=f&&"number"==typeof h&&h!==r&&(0,E.isNetworkRequestInFlight)(r);switch(s){default:case"cache-first":return(S=d()).complete?{fromLink:!1,sources:[m(S,e.markReady())]}:l||b?{fromLink:!0,sources:[m(S),g()]}:{fromLink:!0,sources:[g()]};case"cache-and-network":var S;return(S=d()).complete||l||b?{fromLink:!0,sources:[m(S),g()]}:{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[m(d(),e.markReady())]};case"network-only":return b?{fromLink:!0,sources:[m(d()),g()]}:{fromLink:!0,sources:[g()]};case"no-cache":return b?{fromLink:!0,sources:[m(e.getDiff()),g()]}:{fromLink:!0,sources:[g()]};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(h(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(h(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,f)}}return!1}function l(e){return Object.keys(e).filter(p,e)}function p(e){return void 0!==this[e]}const f="{ [native code] }";function h(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,{ObservableQuery:()=>g,logMissingFieldErrors:()=>S,reobserveCacheFirst:()=>v});var n=r(103),i=r(349),o=r(480),a=r(482),s=r(423),c=r(484),u=r(485),l=r(486),p=r(487),f=r(420),h=r(488),d=r(417),m=r(483),y=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=b)}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(a.maskResult(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),a.maskResult=a.maskResult.bind(a);var c=r.defaultOptions.watchQuery,u=(void 0===c?{}:c).fetchPolicy,l=void 0===u?"cache-first":u,p=o.fetchPolicy,f=void 0===p?l:p,h=o.initialFetchPolicy,d=void 0===h?"standby"===f?l:f:h;a.options=(0,n.__assign)((0,n.__assign)({},o),{initialFetchPolicy:d,fetchPolicy:f}),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.getCurrentFullResult=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.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var r=this.queryManager.getDocumentInfo(this.query),n=this.queryManager.dataMasking,i=n?r.nonReactiveQuery:this.query;return(n||r.hasNonreactiveDirective?!(0,m.equalByQuery)(i,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,p="no-cache"!==this.options.fetchPolicy;return p||(0,i.invariant)(l,22),this.queryManager.fetchQuery(o,r,a.NetworkStatus.fetchMore).then((function(i){if(t.queryManager.removeQuery(o),s.networkStatus===a.NetworkStatus.fetchMore&&(s.networkStatus=c),p)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 f=t.getLast("result"),h=l(f.data,{fetchMoreResult:i.data,variables:r.variables});t.reportResult((0,n.__assign)((0,n.__assign)({},f),{networkStatus:c,loading:(0,a.isNetworkRequestInFlight)(c),data:h}),t.variables)}return t.maskResult(i)})).finally((function(){p&&!u.has(t.query)&&v(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 i=e.updateQuery;i&&t.updateQuery((function(e,t){return i(e,(0,n.__assign)({subscriptionData:r},t))}))},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||{});y(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=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),n=r.result,i=r.complete,o=e(n,{variables:this.variables,complete:!!i,previousData:n});o&&(t.cache.writeQuery({query:this.options.query,data:o,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,24),(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||{}),p=i?l:y(this.options,l),f=this.transformDocument(p.query);this.lastQuery=f,i||(this.updatePolling(),!e||!e.variables||(0,o.equal)(e.variables,s)||"standby"===p.fetchPolicy||p.fetchPolicy!==u&&"function"!=typeof p.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",p),void 0===t&&(t=a.NetworkStatus.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=_(p.fetchPolicy));var h=function(){r.concast===v&&(r.waitForOwnResult=!1)},m=p.variables&&(0,n.__assign)({},p.variables),g=this.fetch(p,t,f),v=g.concast,b=g.fromLink,S={next:function(e){(0,o.equal)(r.variables,m)&&(h(),r.reportResult(e,m))},error:function(e){(0,o.equal)(r.variables,m)&&((0,d.isApolloError)(e)||(e=new d.ApolloError({networkError:e})),h(),r.reportError(e,m))}};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(0,l.preventUnhandledRejection)(this.reobserveAsConcast(e,t).promise.then(this.maskResult))},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.getCurrentFullResult(!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,p.iterateObserversSafely)(this.observers,"next",this.maskResult(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,p.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.prototype.maskResult=function(e){return e&&"data"in e?(0,n.__assign)((0,n.__assign)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t}(f.Observable));function v(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 b(e){}function S(e){0}function _(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,h.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(480),o=r(423),a=r(425),s=r(473),c=r(424);function u(e,t,r,s){var c=t.data,u=(0,n.__rest)(t,["data"]),p=r.data,f=(0,n.__rest)(r,["data"]);return(0,i.default)(u,f)&&l((0,o.getMainDefinition)(e).selectionSet,c,p,{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(p(e))return!0;if((0,c.isField)(e)){var u=(0,c.resultKeyNameFromField)(e),f=t&&t[u],h=r&&r[u],d=e.selectionSet;if(!d)return(0,i.default)(f,h);var m=Array.isArray(f),y=Array.isArray(h);if(m!==y)return!1;if(m&&y){var g=f.length;if(h.length!==g)return!1;for(var v=0;v<g;++v)if(!l(d,f[v],h[v],n))return!1;return!0}return l(d,f,h,n)}var b=(0,a.getFragmentFromSelection)(e,n.fragmentMap);return b?!!p(b)||l(b.selectionSet,t,r,n):void 0}))}function p(e){return!!e.directives&&e.directives.some(f)}function f(e){return"nonreactive"===e.name.value}},(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){return e.catch((function(){})),e}r.r(t),r.d(t,{preventUnhandledRejection:()=>n})},(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(420),i=r(357);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:()=>y});var n=r(103),i=r(480),o=r(446),a=r(444),s=r(481),c=r(357),u=r(445),l=r(490),p=r(482),f=new(c.canUseWeakMap?WeakMap:Map);function h(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return f.set(e,(f.get(e)+1)%1e15),r.apply(this,arguments)})}function d(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;f.has(r)||(f.set(r,0),h(r,"evict"),h(r,"modify"),h(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||p.NetworkStatus.loading;return this.variables&&this.networkStatus!==p.NetworkStatus.loading&&!(0,i.equal)(this.variables,e.variables)&&(t=p.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(){d(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;d(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,p.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===f.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 p=(0,a.mergeIncrementalData)(this.getDiff().result,e);e.data=p}else if("hasNext"in e&&e.hasNext){var h=this.getDiff();e.data=c.merge(h.result,e.data)}this.graphQLErrors=l,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(y(e,r.errorPolicy)?this.cache.performTransaction((function(o){if(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:f.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=p.NetworkStatus.ready},e.prototype.markError=function(e){return this.networkStatus=p.NetworkStatus.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function y(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!(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(445),i=r(444);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:()=>p});var n=r(491),i=r(357),o=r(423),a=r(349),s=r(433),c=r(337),u=r(434);function l(e){return e}var p=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),77),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(420);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,{Concast:()=>c});var n=r(103),i=r(420),o=r(487),a=r(488);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(419).ApolloLink.execute},(e,t,r)=>{"use strict";r.r(t),r.d(t,{maskOperation:()=>c});var n=r(349),i=r(423),o=r(425),a=r(497),s=r(498);function c(e,t,r){var c;if(!r.fragmentMatches)return e;var u=(0,i.getOperationDefinition)(t);return(0,n.invariant)(u,51),null==e?e:(0,a.maskDefinition)(e,u.selectionSet,{operationType:u.operation,operationName:null===(c=u.name)||void 0===c?void 0:c.value,fragmentMap:(0,o.createFragmentMap)((0,i.getFragmentDefinitions)(t)),cache:r,mutableTargets:new s.MapImpl,knownChanged:new s.SetImpl})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{maskDefinition:()=>u});var n=r(430),i=r(499),o=r(424),a=r(473),s=r(498),c=r(349);function u(e,t,r){return s.disableWarningsSlot.withValue(!0,(function(){var n=l(e,t,r,!1);return Object.isFrozen(e)&&(0,i.maybeDeepFreeze)(n),n}))}function l(e,t,r,i,s){var u=r.knownChanged,p=function(e,t){if(t.has(e))return t.get(e);var r=Array.isArray(e)?[]:Object.create(null);return t.set(e,r),r}(e,r.mutableTargets);if(Array.isArray(e)){for(var f=0,h=Array.from(e.entries());f<h.length;f++){var d=h[f],m=d[0],y=d[1];if(null!==y){var g=l(y,t,r,i,void 0);u.has(g)&&u.add(p),p[m]=g}else p[m]=null}return u.has(p)?p:e}for(var v=0,b=t.selections;v<b.length;v++){var S=b[v],_=void 0;if(i&&u.add(p),S.kind===n.Kind.FIELD){var E=(0,o.resultKeyNameFromField)(S),w=S.selectionSet;if(void 0===(_=p[E]||e[E]))continue;if(w&&null!==_){g=l(e[E],w,r,i,void 0);u.has(g)&&(_=g)}p[E]=_}if(S.kind!==n.Kind.INLINE_FRAGMENT||S.typeCondition&&!r.cache.fragmentMatches(S,e.__typename)||(_=l(e,S.selectionSet,r,i,s)),S.kind===n.Kind.FRAGMENT_SPREAD){var x=S.name.value,O=r.fragmentMap[x]||(r.fragmentMap[x]=r.cache.lookupFragment(x));(0,c.invariant)(O,47,x);var T=(0,a.getFragmentMaskMode)(S);"mask"!==T&&(_=l(e,O.selectionSet,r,"migrate"===T,s))}u.has(_)&&u.add(p)}return"__typename"in e&&!("__typename"in p)&&(p.__typename=e.__typename),Object.keys(p).length!==Object.keys(e).length&&u.add(p),u.has(p)?p:e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MapImpl:()=>o,SetImpl:()=>a,disableWarningsSlot:()=>s,warnOnImproperCacheImplementation:()=>u});var n=r(337),i=(r(349),r(357)),o=i.canUseWeakMap?WeakMap:Map,a=i.canUseWeakSet?WeakSet:Set,s=new n.Slot,c=!1;function u(){c||(c=!0)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{deepFreeze:()=>i,maybeDeepFreeze:()=>o});var n=r(418);function i(e){var t=new Set([e]);return t.forEach((function(e){(0,n.isNonNullObject)(e)&&function(e){0;return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(r){(0,n.isNonNullObject)(e[r])&&t.add(e[r])}))})),e}function o(e){return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{maskFragment:()=>l});var n=r(430),i=r(498),o=r(349),a=r(480),s=r(497),c=r(425),u=r(423);function l(e,t,r,l){if(!r.fragmentMatches)return e;var p=t.definitions.filter((function(e){return e.kind===n.Kind.FRAGMENT_DEFINITION}));void 0===l&&((0,o.invariant)(1===p.length,49,p.length),l=p[0].name.value);var f=p.find((function(e){return e.name.value===l}));return(0,o.invariant)(!!f,50,l),null==e||(0,a.default)(e,{})?e:(0,s.maskDefinition)(e,f.selectionSet,{operationType:"fragment",operationName:f.name.value,fragmentMap:(0,c.createFragmentMap)((0,u.getFragmentDefinitions)(t)),cache:r,mutableTargets:new i.MapImpl,knownChanged:new i.SetImpl})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LocalState:()=>d});var n=r(103),i=r(349),o=r(426),a=r(502),s=r(446),c=r(473),u=r(474),l=r(423),p=r(425),f=r(424),h=r(336),d=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,f,h,d,m,y,g,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,p.createFragmentMap)(c),f=this.collectSelectionsToResolve(s,u),h=s.operation,d=h?h.charAt(0).toUpperCase()+h.slice(1):"Query",y=(m=this).cache,g=m.client,v={fragmentMap:u,context:(0,n.__assign)((0,n.__assign)({},r),{cache:y,client:g}),variables:i,fragmentMatcher:o,defaultOperationType:d,exportedVariables:{},selectionsToResolve:f,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,p,h,d=this;return(0,n.__generator)(this,(function(m){return a=o.fragmentMap,u=o.context,l=o.variables,p=[r],h=function(e){return(0,n.__awaiter)(d,void 0,void 0,(function(){var s,h;return(0,n.__generator)(this,(function(n){return(t||o.selectionsToResolve.has(e))&&(0,c.shouldInclude)(e,l)?(0,f.isField)(e)?[2,this.resolveField(e,t,r,o).then((function(t){var r;void 0!==t&&p.push(((r={})[(0,f.resultKeyNameFromField)(e)]=t,r))}))]:((0,f.isInlineFragment)(e)?s=e:(s=a[e.name.value],(0,i.invariant)(s,19,e.name.value)),s&&s.typeCondition&&(h=s.typeCondition.name.value,o.fragmentMatcher(r,h,u))?[2,this.resolveSelectionSet(s.selectionSet,t,r,o).then((function(e){p.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(h)).then((function(){return(0,s.mergeDeepArray)(p)}))]}))}))},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,p,d,m,y=this;return(0,n.__generator)(this,(function(n){return r?(o=i.variables,a=e.name.value,s=(0,f.resultKeyNameFromField)(e),c=a!==s,u=r[s]||r[a],l=Promise.resolve(u),i.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(p=r.__typename||i.defaultOperationType,(d=this.resolvers&&this.resolvers[p])&&(m=d[c?a:s])&&(l=Promise.resolve(h.cacheSlot.withValue(this.cache,m,[r,(0,f.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)?y.resolveSubSelectedArray(e,t||a,r,i):e.selectionSet?y.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 p=t[n.name.value];(0,i.invariant)(p,20,n.name.value);var f=e(p);f.size>0&&(l.forEach((function(e){r(e)&&(0,a.isSelectionNode)(e)&&c.add(e)})),c.add(n),f.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:()=>p,isTypeExtensionNode:()=>h,isTypeNode:()=>u,isTypeSystemDefinitionNode:()=>l,isTypeSystemExtensionNode:()=>f,isValueNode:()=>s});var n=r(430);function i(e){return o(e)||l(e)||f(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||p(e)||e.kind===n.Kind.DIRECTIVE_DEFINITION}function p(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 f(e){return e.kind===n.Kind.SCHEMA_EXTENSION||h(e)}function h(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(484);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(419),o=r(505),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(349),o=r(419),a=r(473),s=r(420),c=r(449),u=r(456),l=r(438),p=r(450),f=r(448),h=r(475),d=r(472),m=r(474),y=r(423),g=(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,S=void 0===b?p.defaultPrinter:b,_=e.includeExtensions,E=e.preserveHeaderCase,w=e.useGETForQueries,x=e.includeUnusedVariables,O=void 0!==x&&x,T=(0,n.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);var P={http:{includeExtensions:_,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 _=o.clientAwareness,E=_.name,x=_.version;E&&(b["apollographql-client-name"]=E),x&&(b["apollographql-client-version"]=x)}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 A=(0,m.removeClientSetsFromDocument)(e.query);if(!A)return(0,h.fromError)(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=A}var k,R=(0,p.selectHttpOptionsAndBodyInternal)(e,S,p.fallbackHttpConfig,P,C),I=R.options,D=R.body;D.variables&&!O&&(D.variables=(0,d.filterOperationVariables)(D.variables,e.query)),I.signal||"undefined"==typeof AbortController||(k=new AbortController,I.signal=k.signal);var M,N="OperationDefinition"===(M=(0,y.getMainDefinition)(e.query)).kind&&"subscription"===M.operation,F=(0,a.hasDirectives)(["defer"],e.query);if(w&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(I.method="GET"),F||N){I.headers=I.headers||{};var L="multipart/mixed;";N?L+="boundary=graphql;subscriptionSpec=1.0,application/json":F&&(L+="deferSpec=20220824,application/json"),I.headers.accept=L}if("GET"===I.method){var j=(0,f.rewriteURIForGET)(t,D),B=j.newURI,U=j.parseError;if(U)return(0,h.fromError)(U);t=B}else try{I.body=(0,c.serializeFetchParameter)(D,"Payload")}catch(U){return(0,h.fromError)(U)}return new s.Observable((function(r){var n=v||(0,i.maybe)((function(){return fetch}))||g,o=r.next.bind(r);return n(t,I).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(){k=void 0,r.complete()})).catch((function(e){k=void 0,(0,l.handleError)(e,r)})),function(){k&&k.abort()}}))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{from:()=>n});var n=r(419).ApolloLink.from},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InMemoryCache:()=>S});var n=r(103),i=(r(349),r(337)),o=r(480),a=r(508),s=r(509),c=r(492),u=r(474),l=r(434),p=r(431),f=r(451),h=r(424),d=r(510),m=r(514),y=r(511),g=r(336),v=r(515),b=r(512),S=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=g.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 y.EntityStore.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new m.StoreWriter(this,this.storeReader=new d.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,y.supportsResultCaching)(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,p.canonicalStringify)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(e){if(e instanceof 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,g.recallCache)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,g.forgetCache)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){var t;p.canonicalStringify.reset(),f.print.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,h.isReference)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){}},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(),p.canonicalStringify.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),(0,g.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.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null===(t=this.config.fragments)||void 0===t?void 0:t.lookup(e))||null},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,{ApolloCache:()=>f});var n=r(103),i=r(337),o=r(425),a=r(434),s=r(420),c=r(446),u=r(433),l=r(483),p=(r(349),r(500)),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.lookupFragment=function(e){return null},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,h=(0,n.__rest)(e,["fragment","fragmentName","from","optimistic"]),d=this.getFragmentDoc(i,o),m=void 0===a||"string"==typeof a?a:this.identify(a),y=!!e[Symbol.for("apollo.dataMasking")],g=(0,n.__assign)((0,n.__assign)({},h),{returnPartialData:!0,id:m,query:d,optimistic:f});return new s.Observable((function(a){return r.watch((0,n.__assign)((0,n.__assign)({},g),{immediate:!0,callback:function(s){var u=y?(0,p.maskFragment)(s.result,i,r,o):s.result;if(!t||!(0,l.equalByQuery)(d,{data:t.result},{data:u},e.variables)){var f={data:u,complete:!!s.complete};s.missing&&(f.missing=(0,c.mergeDeepArray)(s.missing.map((function(e){return e.missing})))),t=(0,n.__assign)((0,n.__assign)({},s),{result:u}),a.next(f)}}}))}))},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,{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:()=>x});var n=r(103),i=r(349),o=r(430),a=r(337),s=r(357),c=r(484),u=r(434),l=r(424),p=r(423),f=r(431),h=r(446),d=r(473),m=r(474),y=r(425),g=r(499),v=(r(418),r(511)),b=r(512),S=r(445),_=r(509),E=r(513);function w(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var x=function(){function e(e){var t=this;this.knownResults=new(s.canUseWeakMap?WeakMap:Map),this.config=(0,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,h=void 0===u?this.config.canonizeResults:u,d=this.config.cache.policies;a=(0,n.__assign)((0,n.__assign)({},(0,p.getDefaultValues)((0,p.getQueryDefinition)(r))),a);var m,y=(0,l.makeReference)(o),g=this.executeSelectionSet({selectionSet:(0,p.getMainDefinition)(r).selectionSet,objectOrReference:y,enclosingRef:y,context:(0,n.__assign)({store:t,query:r,policies:d,variables:a,varString:(0,f.canonicalStringify)(a),canonizeResults:h},(0,b.extractFragmentContext)(r,this.config.fragments))});if(g.missing&&(m=[new _.MissingFieldError(O(g.missing),g.missing,r,a)],!c))throw m[0];return{result:g.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,p=s.policies,f=s.store.getFieldValue(n,"__typename"),v=[],b=new h.DeepMerger;function _(e,t){var r;return e.missing&&(c=b.merge(c,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof f&&!p.rootIdsByTypename[f]&&v.push({__typename:f});var E=new Set(r.selections);E.forEach((function(e){var r,h;if((0,d.shouldInclude)(e,u))if((0,l.isField)(e)){var g=p.readField({fieldName:e.name.value,field:e,variables:s.variables,from:n},s),w=(0,l.resultKeyNameFromField)(e);void 0===g?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,S.isArray)(g)?g.length>0&&(g=_(t.executeSubSelectedArray({field:e,array:g,enclosingRef:a,context:s}),w)):e.selectionSet?null!=g&&(g=_(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:g,enclosingRef:(0,l.isReference)(g)?g:a,context:s}),w)):s.canonizeResults&&(g=t.canon.pass(g)),void 0!==g&&v.push(((h={})[w]=g,h))}else{var x=(0,y.getFragmentFromSelection)(e,s.lookupFragment);if(!x&&e.kind===o.Kind.FRAGMENT_SPREAD)throw(0,i.newInvariantError)(10,e.name.value);x&&p.fragmentMatches(x,f)&&x.selectionSet.selections.forEach(E.add,E)}}));var w={result:(0,h.mergeDeepArray)(v),missing:c},x=s.canonizeResults?this.canon.admit(w):(0,g.maybeDeepFreeze)(w);return x.result&&this.knownResults.set(x.result,r),x},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new h.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,S.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 O(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:()=>g,maybeDependOnExistenceOfEntity:()=>S,supportsResultCaching:()=>x});var n=r(103),i=r(349),o=r(337),a=r(480),s=r(491),c=r(499),u=r(424),l=r(446),p=r(418),f=r(357),h=r(512),d=Object.create(null),m=function(){return d},y=Object.create(null),g=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),h.hasOwn.call(this.data,e)){var r=this.data[e];if(r&&h.hasOwn.call(r,t))return r[t]}return"__typename"===t&&h.hasOwn.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof _?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),h.hasOwn.call(this.data,e)?this.data[e]:this instanceof _?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,2);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,h.fieldNameFromStoreName)(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(c[t]=1),void 0!==s[e]||n instanceof _||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:d,INVALIDATE:y,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 p=(0,h.fieldNameFromStoreName)(u),f=i[u];if(void 0!==f){var g="function"==typeof t?t:t[u]||t[p];if(g){var v=g===m?d:g((0,c.maybeDeepFreeze)(f),(0,n.__assign)((0,n.__assign)({},l),{fieldName:p,storeFieldName:u,storage:r.getStorage(e,u)}));if(v===y)r.group.dirty(e,u);else if(v===d&&(v=void 0),v!==f)o[u]=v,a=!0,f=v}void 0!==f&&(s=!1)}})),a)return this.merge(e,o),s&&(this instanceof _?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&&(h.hasOwn.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof _&&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){h.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&&h.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 _?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){h.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 _;)i=i.parent;n.forEach((function(e){return i.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!h.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,p.isNonNullObject)(e)&&Object.keys(e).forEach((function(t){var r=e[t];(0,p.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(f.canUseWeakMap)},e.prototype.depend=function(e,t){if(this.d){this.d(b(e,t));var r=(0,h.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 S(e,t){x(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(f.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}(g||(g={}));var _=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 h.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}(g),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}(_);function w(e,t,r){var n=e[r],i=t[r];return(0,a.equal)(n,i)?n:i}function x(e){return!!(e instanceof g&&e.group.caching)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TypeOrFieldNameRegExp:()=>v,defaultDataIdFromObject:()=>h,extractFragmentContext:()=>w,fieldNameFromStoreName:()=>b,getTypenameFromStoreObject:()=>g,hasOwn:()=>p,isArray:()=>n.isArray,isNullish:()=>f,makeProcessedFieldsMerger:()=>E,normalizeConfig:()=>m,selectionSetMatchesResult:()=>S,shouldCanonizeResults:()=>y,storeValueIsStoreObject:()=>_});var n=r(445),i=r(484),o=r(424),a=r(418),s=r(473),c=r(446),u=r(425),l=r(423),p=Object.prototype.hasOwnProperty;function f(e){return null==e}function h(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=f(n)?f(i)?void 0:{_id:i}:{id:n}),f(n)&&!f(i)&&(n=i),!f(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var d={dataIdFromObject:h,addTypename:!0,resultCaching:!0,canonizeResults:!1};function m(e){return(0,i.compact)(d,e)}function y(e){var t=e.canonizeResults;return void 0===t?d.canonizeResults:t}function g(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 S(e,t,r){return!!(0,a.isNonNullObject)(t)&&((0,n.isArray)(t)?t.every((function(t){return S(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 p.call(t,n)&&(!e.selectionSet||S(e.selectionSet,t[n],r))}return!0})))}function _(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,{ObjectCanon:()=>c});var n=r(103),i=r(491),o=r(418),a=r(357),s=r(445);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:()=>y});var n=r(103),i=r(349),o=(r(480),r(491)),a=r(430),s=r(423),c=r(431),u=r(424),l=r(473),p=r(445),f=r(425),h=r(512),d=r(515);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 y=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,p=t.variables,f=t.overwrite,d=(0,s.getOperationDefinition)(o),m=(0,h.makeProcessedFieldsMerger)();p=(0,n.__assign)((0,n.__assign)({},(0,s.getDefaultValues)(d)),p);var y=(0,n.__assign)((0,n.__assign)({store:e,written:Object.create(null),merge:function(e,t){return m.merge(e,t)},variables:p,varString:(0,c.canonicalStringify)(p)},(0,h.extractFragmentContext)(o,this.fragments)),{overwrite:!!f,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),g=this.processSelectionSet({result:a||Object.create(null),dataId:l,selectionSet:d.selectionSet,mergeTree:{map:new Map},context:y});if(!(0,u.isReference)(g))throw(0,i.newInvariantError)(12,a);return y.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,y);if((0,u.isReference)(s))return;i=s}e.merge(n,i)})),e.retain(g.__ref),g},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),p=r&&c.rootTypenamesById[r]||(0,u.getTypenameFromResult)(i,o,a.fragmentMap)||r&&a.store.get(r,"__typename");"string"==typeof p&&(l.__typename=p);var f=function(){var e=(0,d.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)},y=new Set;this.flattenFields(o,i,a,p).forEach((function(e,r){var n,o=(0,u.resultKeyNameFromField)(r),a=i[o];if(y.add(r),void 0!==a){var d=c.getStoreFieldName({typename:p,fieldName:r.name.value,field:r,variables:e.variables}),g=v(s,d),b=t.processFieldValue(a,r,r.selectionSet?m(e,!1,!1):e,g),S=void 0;r.selectionSet&&((0,u.isReference)(b)||(0,h.storeValueIsStoreObject)(b))&&(S=f("__typename",b));var E=c.getMergeFunction(p,r.name.value,S);E?g.info={field:r,typename:p,merge:E}:_(s,d),l=e.merge(l,((n={})[d]=b,n))}else 0}));try{var g=c.identify(i,{typename:p,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:l,readField:f}),E=g[0],w=g[1];r=r||E,w&&(l=a.merge(l,w))}catch(e){if(!r)throw e}if("string"==typeof r){var x=(0,u.makeReference)(r),O=a.written[r]||(a.written[r]=[]);if(O.indexOf(o)>=0)return x;if(O.push(o),this.reader&&this.reader.isFresh(i,x,o,a))return x;var T=a.incomingById.get(r);return T?(T.storeObject=a.merge(T.storeObject,l),T.mergeTree=b(T.mergeTree,s),y.forEach((function(e){return T.fieldNodeSet.add(e)}))):a.incomingById.set(r,{storeObject:l,mergeTree:S(s)?void 0:s,fieldNodeSet:y}),x}return l},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,p.isArray)(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,r,v(n,o));return _(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,h=new o.Trie(!1);return function e(o,d){var y=h.lookup(o,d.clientOnly,d.deferred);y.visited||(y.visited=!0,o.selections.forEach((function(o){if((0,l.shouldInclude)(o,r.variables)){var h=d.clientOnly,y=d.deferred;if(h&&y||!(0,p.isNonEmptyArray)(o.directives)||o.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(h=!0),"defer"===t){var n=(0,u.argumentsObjectFromField)(e,r.variables);n&&!1===n.if||(y=!0)}})),(0,u.isField)(o)){var g=s.get(o);g&&(h=h&&g.clientOnly,y=y&&g.deferred),s.set(o,m(r,h,y))}else{var v=(0,f.getFragmentFromSelection)(o,r.lookupFragment);if(!v&&o.kind===a.Kind.FRAGMENT_SPREAD)throw(0,i.newInvariantError)(14,o.name.value);v&&c.fragmentMatches(v,n,t,r.variables)&&e(v.selectionSet,m(r,h,y))}}})))}(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,f=(0,p.isArray)(r)||!(0,u.isReference)(t)&&!(0,h.storeValueIsStoreObject)(t)?void 0:t,d=r;f&&!a&&(a=[(0,u.isReference)(f)?f.__ref:f]);var m=function(e,t){return(0,p.isArray)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var r=m(f,t),n=m(d,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,p.isArray)(d)?d.slice(0):(0,n.__assign)({},d),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}(),g=[];function v(e,t){var r=e.map;return r.has(t)||r.set(t,g.pop()||{map:new Map}),r.get(t)}function b(e,t){if(e===t||!t||S(t))return e;if(!e||S(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 S(e){return!e||!(e.info||e.map.size)}function _(e,t){var r=e.map,n=r.get(t);n&&S(n)&&(g.push(n),r.delete(t))}new Set},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Policies:()=>g,normalizeReadFieldOptions:()=>b});var n=r(103),i=r(349),o=r(424),a=r(418),s=r(512),c=r(445),u=r(336),l=r(516),p=r(498);function f(e){return void 0!==e.args?e.args:e.field?(0,o.argumentsObjectFromField)(e.field,e.variables):null}var h=function(){},d=function(e,t){return t.fieldName},m=function(e,t,r){return(0,r.mergeObjects)(e,t)},y=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"];var a,s=t&&t.storeObject||e,u=(0,n.__assign)((0,n.__assign)({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=b(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),f=o&&this.getTypePolicy(o),h=f&&f.keyFn||this.config.dataIdFromObject;return p.disableWarningsSlot.withValue(!0,(function(){for(;h;){var t=h((0,n.__assign)((0,n.__assign)({},e),s),u);if(!(0,c.isArray)(t)){a=t;break}h=(0,l.keyFieldsFnFromSpecifier)(t)}})),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?m:!1===t?y:e.merge}a(n,t.merge),n.keyFn=!1===i?h:(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,p=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,p)}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,6,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),p=0;p<c.length;++p){var f=c[p];if(f.has(o))return a.has(o)||a.add(o),!0;f.forEach(u),l&&p===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 h=a(p,u);if(!(0,c.isArray)(h)){t=h||n;break}a=(0,l.keyArgsFnFromSpecifier)(h)}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),p=l&&l.read;if(p){var f=v(this,r,e,t,t.store.getStorage((0,o.isReference)(r)?r.__ref:r,i));return u.cacheSlot.withValue(this.cache,p,[c,f])}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===m?S(n.store)(e,t):s===y?t:(n.overwrite&&(e=void 0),s(e,t,v(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function v(e,t,r,n,i){var a=e.getStoreFieldName(r),c=(0,s.fieldNameFromStoreName)(a),u=r.variables||n.variables,l=n.store,p=l.toReference,h=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:h,readField:function(){return e.readField(b(arguments,t,u),n)},mergeObjects:S(n.store)}}function b(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 S(e){return function(t,r){if((0,c.isArray)(t)||(0,c.isArray)(r))throw(0,i.newInvariantError)(9);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:()=>h,extractKeyPath:()=>y,getSpecifierPaths:()=>d,keyArgsFnFromSpecifier:()=>f,keyFieldsFnFromSpecifier:()=>p});var n=r(349),i=r(445),o=r(424),a=r(446),s=r(418),c=r(512),u=Object.create(null);function l(e){var t=JSON.stringify(e);return u[t]||(u[t]=Object.create(null))}function p(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=h(e,(function(e){var o=y(r.storeObject,e,i);return void 0===o&&t!==r.storeObject&&c.hasOwn.call(t,e[0])&&(o=y(t,e,m)),(0,n.invariant)(void 0!==o,5,e.join("."),t),o}));return"".concat(r.typename,":").concat(JSON.stringify(o))})}function f(e){var t=l(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,a=r.variables,s=r.fieldName,u=h(e,(function(e){var r=e[0],s=r.charAt(0);if("@"!==s)if("$"!==s){if(t)return y(t,e)}else{var u=r.slice(1);if(a&&c.hasOwn.call(a,u)){var l=e.slice(0);return l[0]=u,y(a,l)}}else if(n&&(0,i.isNonEmptyArray)(n.directives)){var p=r.slice(1),f=n.directives.find((function(e){return e.name.value===p})),h=f&&(0,o.argumentsObjectFromField)(f,a);return h&&y(h,e.slice(1))}})),l=JSON.stringify(u);return(t||"{}"!==l)&&(s+=":"+l),s})}function h(e,t){var r=new a.DeepMerger;return d(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 d(e){var t=l(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach((function(t,o){(0,i.isArray)(t)?(d(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 y(e,t,r){return r=r||m,g(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 g(e){return(0,s.isNonNullObject)(e)?(0,i.isArray)(e)?e.map(g):h(Object.keys(e).sort(),(function(t){return y(e,t)})):e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{decode:()=>g,default:()=>_,encode:()=>v,toASCII:()=>S,toUnicode:()=>b,ucs2decode:()=>h,ucs2encode:()=>d});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 p(e){throw new RangeError(c[e])}function f(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 h(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 d=e=>String.fromCodePoint(...e),m=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},y=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))},g=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&&p("not-basic"),t.push(e.charCodeAt(r));for(let f=c>0?c+1:0;f<r;){const c=o;for(let t=1,a=i;;a+=i){f>=r&&p("invalid-input");const c=(l=e.charCodeAt(f++))>=48&&l<58?l-48+26:l>=65&&l<91?l-65:l>=97&&l<123?l-97:i;c>=i&&p("invalid-input"),c>u((n-o)/t)&&p("overflow"),o+=c*t;const h=a<=s?1:a>=s+26?26:a-s;if(c<h)break;const d=i-h;t>u(n/d)&&p("overflow"),t*=d}const h=t.length+1;s=y(o-c,h,0==c),u(o/h)>n-a&&p("overflow"),a+=u(o/h),o%=h,t.splice(o++,0,a)}var l;return String.fromCodePoint(...t)},v=function(e){const t=[],r=(e=h(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 f=c;for(c&&t.push("-");f<r;){let r=n;for(const t of e)t>=o&&t<r&&(r=t);const h=f+1;r-o>u((n-a)/h)&&p("overflow"),a+=(r-o)*h,o=r;for(const r of e)if(r<o&&++a>n&&p("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=y(a,h,f===c),a=0,++f}++a,++o}return t.join("")},b=function(e){return f(e,(function(e){return o.test(e)?g(e.slice(4).toLowerCase()):e}))},S=function(e){return f(e,(function(e){return a.test(e)?"xn--"+v(e):e}))},_={version:"2.3.1",ucs2:{decode:h,encode:d},decode:g,encode:v,toASCII:S,toUnicode:b}},,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{AbortedDeferredError:()=>o.AbortedDeferredError,Await:()=>i.Await,BrowserRouter:()=>D,Form:()=>U,HashRouter:()=>M,Link:()=>j,MemoryRouter:()=>i.MemoryRouter,NavLink:()=>B,Navigate:()=>i.Navigate,NavigationType:()=>o.Action,Outlet:()=>i.Outlet,Route:()=>i.Route,Router:()=>i.Router,RouterProvider:()=>k,Routes:()=>i.Routes,ScrollRestoration:()=>V,UNSAFE_DataRouterContext:()=>i.UNSAFE_DataRouterContext,UNSAFE_DataRouterStateContext:()=>i.UNSAFE_DataRouterStateContext,UNSAFE_ErrorResponseImpl:()=>o.UNSAFE_ErrorResponseImpl,UNSAFE_FetchersContext:()=>x,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:()=>S,createMemoryRouter:()=>i.createMemoryRouter,createPath:()=>o.createPath,createRoutesFromChildren:()=>i.createRoutesFromChildren,createRoutesFromElements:()=>i.createRoutesFromElements,createSearchParams:()=>p,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:()=>N,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:()=>Q,useHref:()=>i.useHref,useInRouterContext:()=>i.useInRouterContext,useLinkClickHandler:()=>W,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:()=>K,useSubmit:()=>X});var n=r(285),i=r(580),o=r(581); /** * React Router DOM v6.26.2 * * 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 p(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 f=null;const h=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function d(e){return null==e||h.has(e)?e:null}function m(e,t){let r,n,i,a,s;if(l(p=e)&&"form"===p.tagName.toLowerCase()){let s=e.getAttribute("action");n=s?(0,o.stripBasename)(s,t):null,r=e.getAttribute("method")||c,i=d(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=d(e.getAttribute("formenctype"))||d(s.getAttribute("enctype"))||u,a=new FormData(s,e),!function(){if(null===f)try{new FormData(document.createElement("form"),0),f=!1}catch(e){f=!0}return f}()){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 p;return a&&"text/plain"===i&&(s=a,a=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:a,body:s}}const y=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],g=["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)||_(),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(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)||_(),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 _(){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 x=n.createContext(new Map);const O=n.startTransition,T=n.flushSync,P=n.useId;function C(e){T?T(e):e()}class A{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 k(e){let{fallbackElement:t,router:r,future:o}=e,[a,s]=n.useState(r.state),[c,u]=n.useState(),[l,p]=n.useState({isTransitioning:!1}),[f,h]=n.useState(),[d,m]=n.useState(),[y,g]=n.useState(),v=n.useRef(new Map),{v7_startTransition:b}=o||{},S=n.useCallback((e=>{b?function(e){O?O(e):e()}(e):e()}),[b]),_=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((()=>{d&&(f&&f.resolve(),d.skipTransition()),p({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})}));let t=r.window.document.startViewTransition((()=>{C((()=>s(e)))}));return t.finished.finally((()=>{C((()=>{h(void 0),m(void 0),u(void 0),p({isTransitioning:!1})}))})),void C((()=>m(t)))}d?(f&&f.resolve(),d.skipTransition(),g({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(u(e),p({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else i?C((()=>s(e))):S((()=>s(e)))}),[r.window,d,f,v,S]);n.useLayoutEffect((()=>r.subscribe(_)),[r,_]),n.useEffect((()=>{l.isTransitioning&&!l.flushSync&&h(new A)}),[l]),n.useEffect((()=>{if(f&&c&&r.window){let e=c,t=f.promise,n=r.window.document.startViewTransition((async()=>{S((()=>s(e))),await t}));n.finished.finally((()=>{h(void 0),m(void 0),u(void 0),p({isTransitioning:!1})})),m(n)}}),[S,c,f,r.window]),n.useEffect((()=>{f&&c&&a.location.key===c.location.key&&f.resolve()}),[f,d,a.location,c]),n.useEffect((()=>{!l.isTransitioning&&y&&(u(y.state),p({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),g(void 0))}),[l.isTransitioning,y]),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||"/",P=n.useMemo((()=>({router:r,navigator:E,static:!1,basename:T})),[r,E,T]),k=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:P},n.createElement(i.UNSAFE_DataRouterStateContext.Provider,{value:a},n.createElement(x.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:k},a.initialized||r.future.v7_partialHydration?n.createElement(R,{routes:r.routes,future:r.future,state:a}):t))))),null)}const R=n.memo(I);function I(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,p]=n.useState({action:u.action,location:u.location}),{v7_startTransition:f}=a||{},h=n.useCallback((e=>{f&&O?O((()=>p(e))):p(e)}),[p,f]);return n.useLayoutEffect((()=>u.listen(h)),[u,h]),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:a,window:s}=e,c=n.useRef();null==c.current&&(c.current=(0,o.createHashHistory)({window:s,v5Compat:!0}));let u=c.current,[l,p]=n.useState({action:u.action,location:u.location}),{v7_startTransition:f}=a||{},h=n.useCallback((e=>{f&&O?O((()=>p(e))):p(e)}),[p,f]);return n.useLayoutEffect((()=>u.listen(h)),[u,h]),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:o,history:a}=e,[s,c]=n.useState({action:a.action,location:a.location}),{v7_startTransition:u}=o||{},l=n.useCallback((e=>{u&&O?O((()=>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 F="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,L=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,j=n.forwardRef((function(e,t){let r,{onClick:c,relative:u,reloadDocument:l,replace:p,state:f,target:h,to:d,preventScrollReset:m,unstable_viewTransition:g}=e,v=s(e,y),{basename:b}=n.useContext(i.UNSAFE_NavigationContext),S=!1;if("string"==typeof d&&L.test(d)&&(r=d,F))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),r=(0,o.stripBasename)(t.pathname,b);t.origin===e.origin&&null!=r?d=r+t.search+t.hash:S=!0}catch(e){}let _=(0,i.useHref)(d,{relative:u}),E=W(d,{replace:p,state:f,target:h,preventScrollReset:m,relative:u,unstable_viewTransition:g});return n.createElement("a",a({},v,{href:r||_,onClick:S||l?c:function(e){c&&c(e),e.defaultPrevented||E(e)},ref:t,target:h}))}));const B=n.forwardRef((function(e,t){let{"aria-current":r="page",caseSensitive:c=!1,className:u="",end:l=!1,style:p,to:f,unstable_viewTransition:h,children:d}=e,m=s(e,g),y=(0,i.useResolvedPath)(f,{relative:m.relative}),v=(0,i.useLocation)(),b=n.useContext(i.UNSAFE_DataRouterStateContext),{navigator:S,basename:_}=n.useContext(i.UNSAFE_NavigationContext),E=null!=b&&oe(y)&&!0===h,w=S.encodeLocation?S.encodeLocation(y).pathname:y.pathname,x=v.pathname,O=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;c||(x=x.toLowerCase(),O=O?O.toLowerCase():null,w=w.toLowerCase()),O&&_&&(O=(0,o.stripBasename)(O,_)||O);const T="/"!==w&&w.endsWith("/")?w.length-1:w.length;let P,C=x===w||!l&&x.startsWith(w)&&"/"===x.charAt(T),A=null!=O&&(O===w||!l&&O.startsWith(w)&&"/"===O.charAt(w.length)),k={isActive:C,isPending:A,isTransitioning:E},R=C?r:void 0;P="function"==typeof u?u(k):[u,C?"active":null,A?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let I="function"==typeof p?p(k):p;return n.createElement(j,a({},m,{"aria-current":R,className:P,ref:t,style:I,to:f,unstable_viewTransition:h}),"function"==typeof d?d(k):d)}));const U=n.forwardRef(((e,t)=>{let{fetcherKey:r,navigate:i,reloadDocument:o,replace:u,state:l,method:p=c,action:f,onSubmit:h,relative:d,preventScrollReset:m,unstable_viewTransition:y}=e,g=s(e,v),b=X(),S=Q(f,{relative:d}),_="get"===p.toLowerCase()?"get":"post";return n.createElement("form",a({ref:t,method:_,action:S,onSubmit:o?h:e=>{if(h&&h(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=(null==t?void 0:t.getAttribute("formmethod"))||p;b(t||e.currentTarget,{fetcherKey:r,method:n,navigate:i,replace:u,state:l,relative:d,preventScrollReset:m,unstable_viewTransition:y})}},g))}));function V(e){let{getKey:t,storageKey:r}=e;return re({getKey:t,storageKey:r}),null}var z,H;function q(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 W(e,t){let{target:r,replace:a,state:s,preventScrollReset:c,relative:u,unstable_viewTransition:l}=void 0===t?{}:t,p=(0,i.useNavigate)(),f=(0,i.useLocation)(),h=(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)(f)===(0,o.createPath)(h);p(e,{replace:r,state:s,preventScrollReset:c,relative:u,unstable_viewTransition:l})}}),[f,p,h,a,s,r,e,c,u,l])}function K(e){let t=n.useRef(p(e)),r=n.useRef(!1),o=(0,i.useLocation)(),a=n.useMemo((()=>function(e,t){let r=p(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=p("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"})(z||(z={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(H||(H={}));let $=0,Y=()=>"__"+String(++$)+"__";function X(){let{router:e}=q(z.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 Q(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})),p=(0,i.useLocation)();if(null==e){l.search=p.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}=q(z.UseFetcher),c=G(H.UseFetcher),u=n.useContext(x),l=n.useContext(i.UNSAFE_RouteContext),p=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==p&&(0,o.UNSAFE_invariant)(!1);let f=P?P():"",[h,d]=n.useState(r||f);r&&r!==h?d(r):h||d(Y()),n.useEffect((()=>(s.getFetcher(h),()=>{s.deleteFetcher(h)})),[s,h]);let m=n.useCallback(((e,t)=>{p||(0,o.UNSAFE_invariant)(!1),s.fetch(h,p,e,t)}),[h,p,s]),y=X(),g=n.useCallback(((e,t)=>{y(e,a({},t,{navigate:!1,fetcherKey:h}))}),[h,y]),v=n.useMemo((()=>n.forwardRef(((e,t)=>n.createElement(U,a({},e,{navigate:!1,fetcherKey:h,ref:t}))))),[h]),b=c.fetchers.get(h)||o.IDLE_FETCHER,S=u.get(h);return n.useMemo((()=>a({Form:v,submit:g,load:m},b,{data:S})),[v,g,m,b,S])}function Z(){let e=G(H.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}=q(z.UseScrollRestoration),{restoreScrollPosition:c,preventScrollReset:u}=G(H.UseScrollRestoration),{basename:l}=n.useContext(i.UNSAFE_NavigationContext),p=(0,i.useLocation)(),f=(0,i.useMatches)(),h=(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"===h.state){let e=(t?t(p,f):null)||p.key;te[e]=window.scrollY}try{sessionStorage.setItem(r||ee,JSON.stringify(te))}catch(e){}window.history.scrollRestoration="auto"}),[r,t,h.state,p,f])),"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(p.hash){let e=document.getElementById(decodeURIComponent(p.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==u&&window.scrollTo(0,0)}else window.scrollTo(0,c)}),[p,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}=q(z.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:()=>Q,Routes:()=>ie,UNSAFE_DataRouterContext:()=>a,UNSAFE_DataRouterStateContext:()=>s,UNSAFE_LocationContext:()=>l,UNSAFE_NavigationContext:()=>u,UNSAFE_RouteContext:()=>p,UNSAFE_mapRouteProperties:()=>fe,UNSAFE_useRouteId:()=>L,UNSAFE_useRoutesImpl:()=>T,createMemoryRouter:()=>he,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:()=>pe,replace:()=>i.replace,resolvePath:()=>i.resolvePath,useActionData:()=>H,useAsyncError:()=>W,useAsyncValue:()=>G,useBlocker:()=>$,useHref:()=>h,useInRouterContext:()=>d,useLoaderData:()=>V,useLocation:()=>m,useMatch:()=>g,useMatches:()=>U,useNavigate:()=>b,useNavigation:()=>j,useNavigationType:()=>y,useOutlet:()=>E,useOutletContext:()=>_,useParams:()=>w,useResolvedPath:()=>x,useRevalidator:()=>B,useRouteError:()=>q,useRouteLoaderData:()=>z,useRoutes:()=>O});var n=r(285),i=r(581); /** * React Router v6.26.2 * * 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 p=n.createContext({outlet:null,matches:[],isDataRoute:!1});const f=n.createContext(null);function h(e,t){let{relative:r}=void 0===t?{}:t;d()||(0,i.UNSAFE_invariant)(!1);let{basename:o,navigator:a}=n.useContext(u),{hash:s,pathname:c,search:l}=x(e,{relative:r}),p=c;return"/"!==o&&(p="/"===c?o:(0,i.joinPaths)([o,c])),a.createHref({pathname:p,search:l,hash:s})}function d(){return null!=n.useContext(l)}function m(){return d()||(0,i.UNSAFE_invariant)(!1),n.useContext(l).location}function y(){return n.useContext(l).navigationType}function g(e){d()||(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(p);return e?function(){let{router:e}=M(I.UseNavigateStable),t=F(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(){d()||(0,i.UNSAFE_invariant)(!1);let e=n.useContext(a),{basename:t,future:r,navigator:o}=n.useContext(u),{matches:s}=n.useContext(p),{pathname:c}=m(),l=JSON.stringify((0,i.UNSAFE_getResolveToMatches)(s,r.v7_relativeSplatPath)),f=n.useRef(!1);return v((()=>{f.current=!0})),n.useCallback((function(r,n){if(void 0===n&&(n={}),!f.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 S=n.createContext(null);function _(){return n.useContext(S)}function E(e){let t=n.useContext(p).outlet;return t?n.createElement(S.Provider,{value:e},t):t}function w(){let{matches:e}=n.useContext(p),t=e[e.length-1];return t?t.params:{}}function x(e,t){let{relative:r}=void 0===t?{}:t,{future:o}=n.useContext(u),{matches:a}=n.useContext(p),{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 O(e,t){return T(e,t)}function T(e,t,r,a){d()||(0,i.UNSAFE_invariant)(!1);let{navigator:s}=n.useContext(u),{matches:c}=n.useContext(p),f=c[c.length-1],h=f?f.params:{},y=(f&&f.pathname,f?f.pathnameBase:"/");f&&f.route;let g,v=m();if(t){var b;let e="string"==typeof t?(0,i.parsePath)(t):t;"/"===y||(null==(b=e.pathname)?void 0:b.startsWith(y))||(0,i.UNSAFE_invariant)(!1),g=e}else g=v;let S=g.pathname||"/",_=S;if("/"!==y){let e=y.replace(/^\//,"").split("/");_="/"+S.replace(/^\//,"").split("/").slice(e.length).join("/")}let E=(0,i.matchRoutes)(e,{pathname:_});let w=R(E&&E.map((e=>Object.assign({},e,{params:Object.assign({},h,e.params),pathname:(0,i.joinPaths)([y,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?y:(0,i.joinPaths)([y,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"},g),navigationType:i.Action.Pop}},w):w}function P(){let e=q(),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(P,null);class A 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(p.Provider,{value:this.props.routeContext},n.createElement(f.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function k(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(p.Provider,{value:t},i)}function R(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,p=-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)&&(p=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=p>=0?c.slice(0,p+1):[c[0]];break}}}return c.reduceRight(((e,i,o)=>{let a,s=!1,f=null,h=null;var d;r&&(a=u&&i.route.id?u[i.route.id]:void 0,f=i.route.errorElement||C,l&&(p<0&&0===o?(d="route-fallback",!1||Y[d]||(Y[d]=!0),s=!0,h=null):p===o&&(s=!0,h=i.route.hydrateFallbackElement||null)));let m=t.concat(c.slice(0,o+1)),y=()=>{let t;return t=a?f:s?h:i.route.Component?n.createElement(i.route.Component,null):i.route.element?i.route.element:e,n.createElement(k,{match:i,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(i.route.ErrorBoundary||i.route.errorElement||0===o)?n.createElement(A,{location:r.location,revalidation:r.revalidation,component:f,error:a,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):y()}),null)}var I=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(I||{}),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 M(e){let t=n.useContext(a);return t||(0,i.UNSAFE_invariant)(!1),t}function N(e){let t=n.useContext(s);return t||(0,i.UNSAFE_invariant)(!1),t}function F(e){let t=function(){let e=n.useContext(p);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 L(){return F(D.UseRouteId)}function j(){return N(D.UseNavigation).navigation}function B(){let e=M(I.UseRevalidator),t=N(D.UseRevalidator);return n.useMemo((()=>({revalidate:e.router.revalidate,state:t.revalidation})),[e.router.revalidate,t.revalidation])}function U(){let{matches:e,loaderData:t}=N(D.UseMatches);return n.useMemo((()=>e.map((e=>(0,i.UNSAFE_convertRouteMatchToUiMatch)(e,t)))),[e,t])}function V(){let e=N(D.UseLoaderData),t=F(D.UseLoaderData);if(!e.errors||null==e.errors[t])return e.loaderData[t];console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")")}function z(e){return N(D.UseRouteLoaderData).loaderData[e]}function H(){let e=N(D.UseActionData),t=F(D.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function q(){var e;let t=n.useContext(f),r=N(D.UseRouteError),i=F(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 W(){let e=n.useContext(c);return null==e?void 0:e._error}let K=0;function $(e){let{router:t,basename:r}=M(I.UseBlocker),a=N(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(++K);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 X=n.startTransition;function Q(e){let{fallbackElement:t,router:r,future:i}=e,[o,c]=n.useState(r.state),{v7_startTransition:u}=i||{},l=n.useCallback((e=>{u&&X?X((()=>c(e))):c(e)}),[c,u]);n.useLayoutEffect((()=>r.subscribe(l)),[r,l]),n.useEffect((()=>{}),[]);let p=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]),f=r.basename||"/",h=n.useMemo((()=>({router:r,navigator:p,static:!1,basename:f})),[r,p,f]);return n.createElement(n.Fragment,null,n.createElement(a.Provider,{value:h},n.createElement(s.Provider,{value:o},n.createElement(ne,{basename:f,location:o.location,navigationType:o.historyAction,navigator:p,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,p]=n.useState({action:u.action,location:u.location}),{v7_startTransition:f}=s||{},h=n.useCallback((e=>{f&&X?X((()=>p(e))):p(e)}),[p,f]);return n.useLayoutEffect((()=>u.listen(h)),[u,h]),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;d()||(0,i.UNSAFE_invariant)(!1);let{future:s,static:c}=n.useContext(u),{matches:l}=n.useContext(p),{pathname:f}=m(),h=b(),y=(0,i.resolveTo)(t,(0,i.UNSAFE_getResolveToMatches)(l,s.v7_relativeSplatPath),f,"path"===a),g=JSON.stringify(y);return n.useEffect((()=>h(JSON.parse(g),{replace:r,state:o,relative:a})),[h,g,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:p=!1,future:f}=e;d()&&(0,i.UNSAFE_invariant)(!1);let h=t.replace(/^\/*/,"/"),m=n.useMemo((()=>({basename:h,navigator:c,static:p,future:o({v7_relativeSplatPath:!1},f)})),[h,f,c,p]);"string"==typeof a&&(a=(0,i.parsePath)(a));let{pathname:y="/",search:g="",hash:v="",state:b=null,key:S="default"}=a,_=n.useMemo((()=>{let e=(0,i.stripBasename)(y,h);return null==e?null:{location:{pathname:e,search:g,hash:v,state:b,key:S},navigationType:s}}),[h,y,g,v,b,S,s]);return null==_?null:n.createElement(u.Provider,{value:m},n.createElement(l.Provider,{children:r,value:_}))}function ie(e){let{children:t,location:r}=e;return O(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 pe(e){return R(e)}function fe(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 he(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:fe,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.2 * * 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:()=>X,Action:()=>i,IDLE_BLOCKER:()=>he,IDLE_FETCHER:()=>fe,IDLE_NAVIGATION:()=>pe,UNSAFE_DEFERRED_SYMBOL:()=>ve,UNSAFE_DeferredData:()=>Q,UNSAFE_ErrorResponseImpl:()=>ne,UNSAFE_convertRouteMatchToUiMatch:()=>_,UNSAFE_convertRoutesToDataRoutes:()=>v,UNSAFE_decodePath:()=>N,UNSAFE_getResolveToMatches:()=>U,UNSAFE_invariant:()=>u,UNSAFE_warning:()=>l,createBrowserHistory:()=>s,createHashHistory:()=>c,createMemoryHistory:()=>a,createPath:()=>h,createRouter:()=>ge,createStaticHandler:()=>be,defer:()=>Z,generatePath:()=>D,getStaticContextFromError:()=>Se,getToPathname:()=>z,isDataWithResponseInit:()=>Qe,isDeferredData:()=>Je,isRouteErrorResponse:()=>ie,joinPaths:()=>H,json:()=>K,matchPath:()=>M,matchRoutes:()=>b,normalizePathname:()=>q,parsePath:()=>d,redirect:()=>ee,redirectDocument:()=>te,replace:()=>re,resolvePath:()=>L,resolveTo:()=>V,stripBasename:()=>F,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 p(){return t[a]}function m(e,r,n){void 0===r&&(r=null);let i=f(t?p().pathname:"/",e,r,n);return l("/"===i.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),i}function y(e){return"string"==typeof e?e:h(e)}return{get index(){return a},get action(){return s},get location(){return p()},createHref:y,createURL:e=>new URL(y(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?d(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 f("",{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:h(t)}),null,e)}function c(e){return void 0===e&&(e={}),m((function(e,t){let{pathname:r="/",search:n="",hash:i=""}=d(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),f("",{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:h(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 p(e,t){return{usr:e.state,key:e.key,idx:t}}function f(e,t,r,i){return void 0===r&&(r=null),n({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?d(t):t,{state:r,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function h(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 d(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,d=i.Pop,m=null,y=g();function g(){return(l.state||{idx:null}).idx}function v(){d=i.Pop;let e=g(),t=null==e?null:e-y;y=e,m&&m({action:d,location:S.location,delta:t})}function b(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,r="string"==typeof e?e:h(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==y&&(y=0,l.replaceState(n({},l.state,{idx:y}),""));let S={get action(){return d},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){d=i.Push;let n=f(S.location,e,t);r&&r(n,e),y=g()+1;let o=p(n,y),a=S.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:d,location:S.location,delta:1})},replace:function(e,t){d=i.Replace;let n=f(S.location,e,t);r&&r(n,e),y=g();let o=p(n,y),a=S.createHref(n);l.replaceState(o,"",a),c&&m&&m({action:d,location:S.location,delta:0})},go:e=>l.go(e)};return S}var y;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(y||(y={}));const g=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="/"),S(e,t,r,!1)}function S(e,t,r,n){let i=F(("string"==typeof t?d(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=N(i);a=I(o[e],t,n)}return a}function _(e,t){let{route:r,pathname:n,params:i}=e;return{id:r.id,pathname:n,params:i,data:t[r.id],handle:r.handle}}function 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=H([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:R(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 x=/^:[\w-]+$/,O=3,T=2,P=1,C=10,A=-2,k=e=>"*"===e;function R(e,t){let r=e.split("/"),n=r.length;return r.some(k)&&(n+=A),t&&(n+=T),r.filter((e=>!k(e))).reduce(((e,t)=>e+(x.test(t)?O:""===t?P:C)),n)}function I(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=M({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},u),p=s.route;if(!l&&c&&r&&!n[n.length-1].route.index&&(l=M({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},u)),!l)return null;Object.assign(i,l.params),a.push({params:i,pathname:H([o,l.pathname]),pathnameBase:q(H([o,l.pathnameBase])),route:p}),"/"!==l.pathnameBase&&(o=H([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 M(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 N(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return l(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function F(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function L(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:i=""}="string"==typeof e?d(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:W(i)}}function j(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function B(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function U(e,t){let r=B(e);return t?r.map(((e,t)=>t===r.length-1?e.pathname:e.pathnameBase)):r.map((e=>e.pathnameBase))}function V(e,t,r,i){let o;void 0===i&&(i=!1),"string"==typeof e?o=d(e):(o=n({},e),u(!o.pathname||!o.pathname.includes("?"),j("?","pathname","search",o)),u(!o.pathname||!o.pathname.includes("#"),j("#","pathname","hash",o)),u(!o.search||!o.search.includes("#"),j("#","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=L(o,a),p=c&&"/"!==c&&c.endsWith("/"),f=(s||"."===c)&&r.endsWith("/");return l.pathname.endsWith("/")||!p&&!f||(l.pathname+="/"),l}function z(e){return""===e||""===e.pathname?"/":"string"==typeof e?d(e).pathname:e.pathname}const H=e=>e.join("/").replace(/\/\/+/g,"/"),q=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),G=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",W=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",K=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 ${constructor(e,t){this.type="DataWithResponseInit",this.data=e,this.init=t||null}}function Y(e,t){return new $(e,"number"==typeof t?{status:t}:t)}class X extends Error{}class Q{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 X("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 X)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 Q(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]),pe={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},fe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},he={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},de=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,me=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ye="remix-router-transitions";function ge(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,p,h={},d=v(e.routes,a,void 0,h),m=e.basename||"/",g=e.unstable_dataStrategy||ke,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),x=null,O=new Set,T=new Set,P=null,C=null,A=null,k=null!=e.hydrationData,R=b(d,e.history.location,m),I=null;if(null==R&&!E){let t=qe(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=He(d);R=r,I={[n.id]:t}}if(R&&!e.hydrationData){ft(R,d,e.history.location.pathname).active&&(R=null)}if(R)if(R.some((e=>e.route.lazy)))c=!1;else if(R.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=R.findIndex((e=>void 0!==r[e.route.id]));c=R.slice(0,e+1).every(n)}else c=R.every(n)}else c=null!=e.hydrationData;else c=!0;else if(c=!1,R=[],w.v7_partialHydration){let t=ft(null,d,e.history.location.pathname);t.active&&t.matches&&(R=t.matches)}let D,M,N={historyAction:e.history.action,location:e.history.location,matches:R,initialized:c,navigation:pe,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||I,fetchers:new Map,blockers:new Map},L=i.Pop,j=!1,B=!1,U=new Map,V=null,z=!1,H=!1,q=[],G=new Set,W=new Map,K=0,$=-1,Y=new Map,X=new Set,Q=new Map,J=new Map,Z=new Set,ee=new Map,te=new Map,re=new Map;function ne(e,t){void 0===t&&(t={}),N=n({},N,e);let r=[],i=[];w.v7_fetcherPersist&&N.fetchers.forEach(((e,t)=>{"idle"===e.state&&(Z.has(t)?i.push(t):r.push(t))})),[...O].forEach((e=>e(N,{deletedFetchers:i,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),w.v7_fetcherPersist&&(r.forEach((e=>N.fetchers.delete(e))),i.forEach((e=>xe(e))))}function oe(t,r,o){var a,c;let u,{flushSync:l}=void 0===o?{}:o,p=null!=N.actionData&&null!=N.navigation.formMethod&&tt(N.navigation.formMethod)&&"loading"===N.navigation.state&&!0!==(null==(a=t.state)?void 0:a._isRedirect);u=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:p?N.actionData:null;let f=r.loaderData?Ue(N.loaderData,r.loaderData,r.matches||[],r.errors):N.loaderData,h=N.blockers;h.size>0&&(h=new Map(h),h.forEach(((e,t)=>h.set(t,he))));let m,y=!0===j||null!=N.navigation.formMethod&&tt(N.navigation.formMethod)&&!0!==(null==(c=t.state)?void 0:c._isRedirect);if(s&&(d=s,s=void 0),z||L===i.Pop||(L===i.Push?e.history.push(t,t.state):L===i.Replace&&e.history.replace(t,t.state)),L===i.Pop){let e=U.get(N.location.pathname);e&&e.has(t.pathname)?m={currentLocation:N.location,nextLocation:t}:U.has(t.pathname)&&(m={currentLocation:t,nextLocation:N.location})}else if(B){let e=U.get(N.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),U.set(N.location.pathname,e)),m={currentLocation:N.location,nextLocation:t}}ne(n({},r,{actionData:u,loaderData:f,historyAction:L,location:t,initialized:!0,navigation:pe,revalidation:"idle",restoreScrollPosition:pt(t,r.matches||N.matches),preventScrollReset:y,blockers:h}),{viewTransitionOpts:m,flushSync:!0===l}),L=i.Pop,j=!1,B=!1,z=!1,H=!1,q=[]}async function ae(t,r,o){D&&D.abort(),D=null,L=t,z=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(P&&A){let r=ot(e,t);P[r]=A()}}(N.location,N.matches),j=!0===(o&&o.preventScrollReset),B=!0===(o&&o.enableViewTransition);let a=s||d,c=o&&o.overrideNavigation,u=b(a,r,m),l=!0===(o&&o.flushSync),p=ft(u,a,r.pathname);if(p.active&&p.matches&&(u=p.matches),!u){let{error:e,notFoundMatches:t,route:n}=Je(r.pathname);return void oe(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:l})}if(N.initialized&&!H&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(N.location,r)&&!(o&&o.submission&&tt(o.submission.formMethod)))return void oe(r,{matches:u},{flushSync:l});D=new AbortController;let f,h=Ne(e.history,r,D.signal,o&&o.submission);if(o&&o.pendingError)f=[ze(u).route.id,{type:y.error,error:o.pendingError}];else if(o&&o.submission&&tt(o.submission.formMethod)){let t=await async function(e,t,r,n,o,a){void 0===a&&(a={});ve();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(ne({navigation:c},{flushSync:!0===a.flushSync}),o){let r=await ht(n,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let{boundaryId:e,error:n}=Ze(t.pathname,r);return{matches:r.partialMatches,pendingActionResult:[e,{type:y.error,error:n}]}}if(!r.matches){let{notFoundMatches:e,error:r,route:n}=Je(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:y.error,error:r}]}}n=r.matches}let u=at(n,t);if(u.route.action||u.route.lazy){if(s=(await ue("action",N,e,[u],n,null))[u.route.id],e.signal.aborted)return{shortCircuited:!0}}else s={type:y.error,error:qe(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)===N.location.pathname+N.location.search}return await ce(e,s,!0,{submission:r,replace:t}),{shortCircuited:!0}}if($e(s))throw qe(400,{type:"defer-action"});if(Ye(s)){let e=ze(n,u.route.id);return!0!==(a&&a.replace)&&(L=i.Push),{matches:n,pendingActionResult:[e.route.id,s]}}return{matches:n,pendingActionResult:[u.route.id,s]}}(h,r,o.submission,u,p.active,{replace:o.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,n]=t.pendingActionResult;if(Ye(n)&&ie(n.error)&&404===n.error.status)return D=null,void oe(r,{matches:t.matches,loaderData:{},errors:{[e]:n.error}})}u=t.matches||u,f=t.pendingActionResult,c=ct(r,o.submission),l=!1,p.active=!1,h=Ne(e.history,h.url,h.signal)}let{shortCircuited:g,matches:v,loaderData:S,errors:_}=await async function(t,r,i,o,a,c,u,l,p,f,h){let y=a||ct(r,c),g=c||u||st(y),v=!(z||w.v7_partialHydration&&p);if(o){if(v){let e=se(h);ne(n({navigation:y},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await ht(i,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let{boundaryId:t,error:n}=Ze(r.pathname,e);return{matches:e.partialMatches,loaderData:{},errors:{[t]:n}}}if(!e.matches){let{error:e,notFoundMatches:t,route:n}=Je(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}i=e.matches}let b=s||d,[S,_]=Oe(e.history,N,i,g,r,w.v7_partialHydration&&!0===p,w.v7_skipActionErrorRevalidation,H,q,G,Z,Q,X,b,m,h);if(et((e=>!(i&&i.some((t=>t.route.id===e)))||S&&S.some((t=>t.route.id===e)))),$=++K,0===S.length&&0===_.length){let e=Fe();return oe(r,n({matches:i,loaderData:{},errors:h&&Ye(h[1])?{[h[0]]:h[1].error}:null},Ve(h),e?{fetchers:new Map(N.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(v){let e={};if(!o){e.navigation=y;let t=se(h);void 0!==t&&(e.actionData=t)}_.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=N.fetchers.get(e.key),r=ut(void 0,t?t.data:void 0);N.fetchers.set(e.key,r)})),new Map(N.fetchers)}(_)),ne(e,{flushSync:f})}_.forEach((e=>{W.has(e.key)&&Te(e.key),e.controller&&W.set(e.key,e.controller)}));let E=()=>_.forEach((e=>Te(e.key)));D&&D.signal.addEventListener("abort",E);let{loaderResults:x,fetcherResults:O}=await ge(N,i,S,_,t);if(t.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",E);_.forEach((e=>W.delete(e.key)));let T=Ge(x);if(T)return await ce(t,T.result,!0,{replace:l}),{shortCircuited:!0};if(T=Ge(O),T)return X.add(T.key),await ce(t,T.result,!0,{replace:l}),{shortCircuited:!0};let{loaderData:P,errors:C}=Be(N,i,S,x,h,_,O,ee);ee.forEach(((e,t)=>{e.subscribe((r=>{(r||e.done)&&ee.delete(t)}))})),w.v7_partialHydration&&p&&N.errors&&Object.entries(N.errors).filter((e=>{let[t]=e;return!S.some((e=>e.route.id===t))})).forEach((e=>{let[t,r]=e;C=Object.assign(C||{},{[t]:r})}));let A=Fe(),k=Le($),R=A||k||_.length>0;return n({matches:i,loaderData:P,errors:C},R?{fetchers:new Map(N.fetchers)}:{})}(h,r,u,p.active,c,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,l,f);g||(D=null,oe(r,n({matches:v||u},Ve(f),{loaderData:S,errors:_})))}function se(e){return e&&!Ye(e[1])?{[e[0]]:e[1].data}:N.actionData?0===Object.keys(N.actionData).length?null:N.actionData:void 0}async function ce(o,a,s,c){let{submission:l,fetcherSubmission:p,replace:h}=void 0===c?{}:c;a.response.headers.has("X-Remix-Revalidate")&&(H=!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 y=f(N.location,d,{_isRedirect:!0});if(r){let r=!1;if(a.response.headers.has("X-Remix-Reload-Document"))r=!0;else if(de.test(d)){const n=e.history.createURL(d);r=n.origin!==t.location.origin||null==F(n.pathname,m)}if(r)return void(h?t.location.replace(d):t.location.assign(d))}D=null;let g=!0===h||a.response.headers.has("X-Remix-Replace")?i.Replace:i.Push,{formMethod:v,formAction:b,formEncType:S}=N.navigation;!l&&!p&&v&&b&&S&&(l=st(N.navigation));let _=l||p;if(le.has(a.response.status)&&_&&tt(_.formMethod))await ae(g,y,{submission:n({},_,{formAction:d}),preventScrollReset:j,enableViewTransition:s?B:void 0});else{let e=ct(y,l);await ae(g,y,{overrideNavigation:e,fetcherSubmission:p,preventScrollReset:j,enableViewTransition:s?B:void 0})}}async function ue(e,t,r,n,i,o){let s,c={};try{s=await Re(g,e,t,r,n,i,o,h,a)}catch(e){return n.forEach((t=>{c[t.route.id]={type:y.error,error:e}})),c}for(let[e,t]of Object.entries(s))if(Ke(t)){let n=t.result;c[e]={type:y.redirect,response:De(n,r,e,i,m,w.v7_relativeSplatPath)}}else c[e]=await Ie(t);return c}async function ge(t,r,n,i,o){let a=t.matches,s=ue("loader",t,o,n,r,null),c=Promise.all(i.map((async r=>{if(r.matches&&r.match&&r.controller){let n=(await ue("loader",t,Ne(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}return Promise.resolve({[r.key]:{type:y.error,error:qe(404,{pathname:r.path})}})}))),u=await s,l=(await c).reduce(((e,t)=>Object.assign(e,t)),{});return await Promise.all([rt(r,u,o.signal,a,t.loaderData),nt(r,l,i)]),{loaderResults:u,fetcherResults:l}}function ve(){H=!0,q.push(...et()),Q.forEach(((e,t)=>{W.has(t)&&(G.add(t),Te(t))}))}function be(e,t,r){void 0===r&&(r={}),N.fetchers.set(e,t),ne({fetchers:new Map(N.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Se(e,t,r,n){void 0===n&&(n={});let i=ze(N.matches,t);xe(e),ne({errors:{[i.route.id]:r},fetchers:new Map(N.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function _e(e){return w.v7_fetcherPersist&&(J.set(e,(J.get(e)||0)+1),Z.has(e)&&Z.delete(e)),N.fetchers.get(e)||fe}function xe(e){let t=N.fetchers.get(e);!W.has(e)||t&&"loading"===t.state&&Y.has(e)||Te(e),Q.delete(e),Y.delete(e),X.delete(e),Z.delete(e),G.delete(e),N.fetchers.delete(e)}function Te(e){let t=W.get(e);u(t,"Expected fetch controller: "+e),t.abort(),W.delete(e)}function Pe(e){for(let t of e){let e=lt(_e(t).data);N.fetchers.set(t,e)}}function Fe(){let e=[],t=!1;for(let r of X){let n=N.fetchers.get(r);u(n,"Expected fetcher: "+r),"loading"===n.state&&(X.delete(r),e.push(r),t=!0)}return Pe(e),t}function Le(e){let t=[];for(let[r,n]of Y)if(n<e){let e=N.fetchers.get(r);u(e,"Expected fetcher: "+r),"loading"===e.state&&(Te(r),Y.delete(r),t.push(r))}return Pe(t),t.length>0}function je(e){N.blockers.delete(e),te.delete(e)}function We(e,t){let r=N.blockers.get(e)||he;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(N.blockers);n.set(e,t),ne({blockers:n})}function Qe(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=N.blockers.get(o);return s&&"proceeding"===s.state?void 0:a({currentLocation:t,nextLocation:r,historyAction:n})?o:void 0}function Je(e){let t=qe(404,{pathname:e}),r=s||d,{matches:n,route:i}=He(r);return et(),{notFoundMatches:n,route:i,error:t}}function Ze(e,t){return{boundaryId:ze(t.partialMatches).route.id,error:qe(400,{type:"route-discovery",pathname:e,message:null!=t.error&&"message"in t.error?t.error:String(t.error)})}}function et(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(C){return C(e,t.map((e=>_(e,N.loaderData))))||e.key}return e.key}function pt(e,t){if(P){let r=ot(e,t),n=P[r];if("number"==typeof n)return n}return null}function ft(e,t,r){if(E){if(T.has(r))return{active:!1,matches:e};if(!e){return{active:!0,matches:S(t,r,m,!0)||[]}}if(Object.keys(e[0].params).length>0){return{active:!0,matches:S(t,r,m,!0)}}}return{active:!1,matches:null}}async function ht(e,t,r){let n=e;for(;;){let e=null==s,i=s||d;try{await Ce(E,t,n,i,h,a,re,r)}catch(e){return{type:"error",error:e,partialMatches:n}}finally{e&&(d=[...d])}if(r.aborted)return{type:"aborted"};let o=b(i,t,m);if(o)return dt(t,T),{type:"success",matches:o};let c=S(i,t,m,!0);if(!c||n.length===c.length&&n.every(((e,t)=>e.route.id===c[t].route.id)))return dt(t,T),{type:"success",matches:null};n=c}}function dt(e,t){if(t.size>=1e3){let e=t.values().next().value;t.delete(e)}t.add(e)}return p={get basename(){return m},get future(){return w},get state(){return N},get routes(){return d},get window(){return t},initialize:function(){if(x=e.history.listen((t=>{let{action:r,location:n,delta:i}=t;if(M)return M(),void(M=void 0);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=Qe({currentLocation:N.location,nextLocation:n,historyAction:r});if(o&&null!=i){let t=new Promise((e=>{M=e}));return e.history.go(-1*i),void We(o,{state:"blocked",location:n,proceed(){We(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then((()=>e.history.go(i)))},reset(){let e=new Map(N.blockers);e.set(o,he),ne({blockers:e})}})}return ae(r,n)})),r){!function(e,t){try{let r=e.sessionStorage.getItem(ye);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(ye,JSON.stringify(r))}catch(e){l(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,U);t.addEventListener("pagehide",e),V=()=>t.removeEventListener("pagehide",e)}return N.initialized||ae(i.Pop,N.location,{initialHydration:!0}),p},subscribe:function(e){return O.add(e),()=>O.delete(e)},enableScrollRestoration:function(e,t,r){if(P=e,A=t,C=r||null,!k&&N.navigation===pe){k=!0;let e=pt(N.location,N.matches);null!=e&&ne({restoreScrollPosition:e})}return()=>{P=null,A=null,C=null}},navigate:async function t(r,o){if("number"==typeof r)return void e.history.go(r);let a=Ee(N.location,N.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=N.location,p=f(N.location,s,o&&o.state);p=n({},p,e.history.encodeLocation(p));let h=o&&null!=o.replace?o.replace:void 0,d=i.Push;!0===h?d=i.Replace:!1===h||null!=c&&tt(c.formMethod)&&c.formAction===N.location.pathname+N.location.search&&(d=i.Replace);let y=o&&"preventScrollReset"in o?!0===o.preventScrollReset:void 0,g=!0===(o&&o.unstable_flushSync),v=Qe({currentLocation:l,nextLocation:p,historyAction:d});if(!v)return await ae(d,p,{submission:c,pendingError:u,preventScrollReset:y,replace:o&&o.replace,enableViewTransition:o&&o.unstable_viewTransition,flushSync:g});We(v,{state:"blocked",location:p,proceed(){We(v,{state:"proceeding",proceed:void 0,reset:void 0,location:p}),t(r,o)},reset(){let e=new Map(N.blockers);e.set(v,he),ne({blockers:e})}})},fetch:function(t,r,n,i){if(o)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(t)&&Te(t);let a=!0===(i&&i.unstable_flushSync),c=s||d,l=Ee(N.location,N.matches,m,w.v7_prependBasename,n,w.v7_relativeSplatPath,r,null==i?void 0:i.relative),p=b(c,l,m),f=ft(p,c,l);if(f.active&&f.matches&&(p=f.matches),!p)return void Se(t,r,qe(404,{pathname:l}),{flushSync:a});let{path:h,submission:y,error:g}=we(w.v7_normalizeFormMethod,!0,l,i);if(g)return void Se(t,r,g,{flushSync:a});let v=at(p,h);j=!0===(i&&i.preventScrollReset),y&&tt(y.formMethod)?async function(t,r,n,i,o,a,c,l){function p(e){if(!e.route.action&&!e.route.lazy){let e=qe(405,{method:l.formMethod,pathname:n,routeId:r});return Se(t,r,e,{flushSync:c}),!0}return!1}if(ve(),Q.delete(t),!a&&p(i))return;let f=N.fetchers.get(t);be(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,f),{flushSync:c});let h=new AbortController,y=Ne(e.history,n,h.signal,l);if(a){let e=await ht(o,n,y.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:i}=Ze(n,e);return void Se(t,r,i,{flushSync:c})}if(!e.matches)return void Se(t,r,qe(404,{pathname:n}),{flushSync:c});if(p(i=at(o=e.matches,n)))return}W.set(t,h);let g=K,v=await ue("action",N,y,[i],o,t),S=v[i.route.id];if(y.signal.aborted)return void(W.get(t)===h&&W.delete(t));if(w.v7_fetcherPersist&&Z.has(t)){if(Xe(S)||Ye(S))return void be(t,lt(void 0))}else{if(Xe(S))return W.delete(t),$>g?void be(t,lt(void 0)):(X.add(t),be(t,ut(l)),ce(y,S,!1,{fetcherSubmission:l}));if(Ye(S))return void Se(t,r,S.error)}if($e(S))throw qe(400,{type:"defer-action"});let _=N.navigation.location||N.location,E=Ne(e.history,_,h.signal),x=s||d,O="idle"!==N.navigation.state?b(x,N.navigation.location,m):N.matches;u(O,"Didn't find any matches after fetcher action");let T=++K;Y.set(t,T);let P=ut(l,S.data);N.fetchers.set(t,P);let[C,A]=Oe(e.history,N,O,l,_,!1,w.v7_skipActionErrorRevalidation,H,q,G,Z,Q,X,x,m,[i.route.id,S]);A.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,r=N.fetchers.get(t),n=ut(void 0,r?r.data:void 0);N.fetchers.set(t,n),W.has(t)&&Te(t),e.controller&&W.set(t,e.controller)})),ne({fetchers:new Map(N.fetchers)});let k=()=>A.forEach((e=>Te(e.key)));h.signal.addEventListener("abort",k);let{loaderResults:R,fetcherResults:I}=await ge(N,O,C,A,E);if(h.signal.aborted)return;h.signal.removeEventListener("abort",k),Y.delete(t),W.delete(t),A.forEach((e=>W.delete(e.key)));let M=Ge(R);if(M)return ce(E,M.result,!1);if(M=Ge(I),M)return X.add(M.key),ce(E,M.result,!1);let{loaderData:F,errors:j}=Be(N,O,C,R,void 0,A,I,ee);if(N.fetchers.has(t)){let e=lt(S.data);N.fetchers.set(t,e)}Le(T),"loading"===N.navigation.state&&T>$?(u(L,"Expected pending action"),D&&D.abort(),oe(N.navigation.location,{matches:O,loaderData:F,errors:j,fetchers:new Map(N.fetchers)})):(ne({errors:j,loaderData:Ue(N.loaderData,F,O,j),fetchers:new Map(N.fetchers)}),H=!1)}(t,r,h,v,p,f.active,a,y):(Q.set(t,{routeId:r,path:h}),async function(t,r,n,i,o,a,s,c){let l=N.fetchers.get(t);be(t,ut(c,l?l.data:void 0),{flushSync:s});let p=new AbortController,f=Ne(e.history,n,p.signal);if(a){let e=await ht(o,n,f.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:i}=Ze(n,e);return void Se(t,r,i,{flushSync:s})}if(!e.matches)return void Se(t,r,qe(404,{pathname:n}),{flushSync:s});i=at(o=e.matches,n)}W.set(t,p);let h=K,d=await ue("loader",N,f,[i],o,t),m=d[i.route.id];$e(m)&&(m=await it(m,f.signal,!0)||m);W.get(t)===p&&W.delete(t);if(f.signal.aborted)return;if(Z.has(t))return void be(t,lt(void 0));if(Xe(m))return $>h?void be(t,lt(void 0)):(X.add(t),void await ce(f,m,!1));if(Ye(m))return void Se(t,r,m.error);u(!$e(m),"Unhandled fetcher deferred data"),be(t,lt(m.data))}(t,r,h,v,p,f.active,a,y))},revalidate:function(){ve(),ne({revalidation:"loading"}),"submitting"!==N.navigation.state&&("idle"!==N.navigation.state?ae(L||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation,enableViewTransition:!0===B}):ae(N.historyAction,N.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:_e,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 xe(e);ne({fetchers:new Map(N.fetchers)})},dispose:function(){x&&x(),V&&V(),O.clear(),D&&D.abort(),N.fetchers.forEach(((e,t)=>xe(t))),N.blockers.forEach(((e,t)=>je(t)))},getBlocker:function(e,t){let r=N.blockers.get(e)||he;return te.get(e)!==t&&te.set(e,t),r},deleteBlocker:je,patchRoutes:function(e,t){let r=null==s;Ae(e,t,s||d,h,a),r&&(d=[...d],ne({}))},_internalFetchControllers:W,_internalActiveDeferreds:ee,_internalSetRoutes:function(e){h={},s=v(e,a,void 0,h)}},p}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(tt(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 p("action",e,[r],t,c,i,o))[r.route.id],e.signal.aborted&&_e(e,c,a)}else{let t=qe(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:r.route.id});if(c)throw t;u={type:y.error,error:t}}if(Xe(u))throw new Response(null,{status:u.response.status,headers:{Location:u.response.headers.get("Location")}});if($e(u)){let e=qe(400,{type:"defer-action"});if(c)throw e;u={type:y.error,error:e}}if(c){if(Ye(u))throw u.error;return{matches:[r],loaderData:{},actionData:{[r.route.id]:u.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let f=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal});if(Ye(u)){let e=s?r:ze(t,r.route.id);return n({},await l(f,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 h=await l(f,t,i,o,s,null);return n({},h,{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 Ze(u)?u:n({},u,{actionData:null,actionHeaders:{}})}catch(e){if(null!=(f=e)&&"object"==typeof f&&"type"in f&&"result"in f&&(f.type===y.data||f.type===y.error)&&Ze(e.result)){if(e.type===y.error)throw e.result;return e.result}if(function(e){if(!Ze(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 f}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 qe(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:null==s?void 0:s.route.id});let l=(s?[s]:c&&Ye(c[1])?xe(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&&Ye(c[1])?{[c[0]]:c[1].error}:null,statusCode:200,loaderHeaders:{},activeDeferreds:null};let f=await p("loader",e,l,t,u,r,i);e.signal.aborted&&_e(e,u,a);let h=new Map,d=je(t,f,c,h,o),m=new Set(l.map((e=>e.route.id)));return t.forEach((e=>{m.has(e.route.id)||(d.loaderData[e.route.id]=null)})),n({},d,{matches:t,activeDeferreds:h.size>0?Object.fromEntries(h.entries()):null})}async function p(e,t,n,s,c,u,l){let p=await Re(l||ke,e,null,t,n,s,null,i,r,u),f={};return await Promise.all(s.map((async e=>{if(!(e.route.id in p))return;let r=p[e.route.id];if(Ke(r)){throw De(r.result,t,e.route.id,s,o,a.v7_relativeSplatPath)}if(Ze(r.result)&&c)throw r;f[e.route.id]=await Ie(r)}))),f}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,p=f("",h(u),null,"default"),d=b(s,p,o);if(!et(l)&&"HEAD"!==l){let e=qe(405,{method:l}),{matches:t,route:r}=He(s);return{basename:o,location:p,matches:t,loaderData:{},actionData:null,errors:{[r.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}if(!d){let e=qe(404,{pathname:p.pathname}),{matches:t,route:r}=He(s);return{basename:o,location:p,matches:t,loaderData:{},actionData:null,errors:{[r.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let m=await c(e,p,d,r,a||null,!0===i,null);return Ze(m)?m:n({location:p,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=f("",h(a),null,"default"),p=b(s,l,o);if(!et(u)&&"HEAD"!==u&&"OPTIONS"!==u)throw qe(405,{method:u});if(!p)throw qe(404,{pathname:l.pathname});let d=r?p.find((e=>e.route.id===r)):at(p,l);if(r&&!d)throw qe(403,{pathname:l.pathname,routeId:r});if(!d)throw qe(404,{pathname:l.pathname});let m=await c(e,l,p,n,i||null,!1,d);if(Ze(m))return m;let y=m.errors?Object.values(m.errors)[0]:void 0;if(void 0!==y)throw y;if(m.actionData)return Object.values(m.actionData)[0];if(m.loaderData){var g;let e=Object.values(m.loaderData)[0];return null!=(g=m.activeDeferreds)&&g[d.route.id]&&(e[ve]=m.activeDeferreds[d.route.id]),e}}}}function Se(e,t,r){return n({},t,{statusCode:ie(r)?r.status:500,errors:{[t._deepestRenderedBoundaryId||e[0].id]:r}})}function _e(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=V(i||".",U(c,o),F(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:H([r,l.pathname])),h(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&&!et(n.formMethod))return{path:r,error:qe(405,{method:n.formMethod})};let i,o,a=()=>({path:r,error:qe(400,{type:"invalid-body"})}),s=n.formMethod||"get",c=e?s.toUpperCase():s.toLowerCase(),l=We(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!tt(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(!tt(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=Fe(n.formData),o=n.formData;else if(n.body instanceof FormData)i=Fe(n.body),o=n.body;else if(n.body instanceof URLSearchParams)i=n.body,o=Le(i);else if(null==n.body)i=new URLSearchParams,o=new FormData;else try{i=new URLSearchParams(n.body),o=Le(i)}catch(e){return a()}let p={formMethod:c,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(tt(p.formMethod))return{path:r,submission:p};let f=d(r);return t&&f.search&&ot(f.search)&&i.append("index",""),f.search="?"+i,{path:h(f),submission:p}}function xe(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 Oe(e,t,r,i,o,a,s,c,u,l,p,f,h,d,m,y){let g=y?Ye(y[1])?y[1].error:y[1].data:void 0,v=e.createURL(t.location),S=e.createURL(o),_=y&&Ye(y[1])?y[0]:void 0,E=_?xe(r,_):r,w=y?y[1].statusCode:void 0,x=s&&w&&w>=400,O=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 Pe(e,n({currentUrl:v,currentParams:s.params,nextUrl:S,nextParams:l.params},i,{actionResult:g,actionStatus:w,defaultShouldRevalidate:!x&&(c||v.pathname+v.search===S.pathname+S.search||v.search!==S.search||Te(s,l))}))})),T=[];return f.forEach(((e,o)=>{if(a||!r.some((t=>t.route.id===e.routeId))||p.has(o))return;let s=b(d,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),f=at(s,e.path),y=!1;h.has(o)?y=!1:l.has(o)?(l.delete(o),y=!0):y=u&&"idle"!==u.state&&void 0===u.data?c:Pe(f,n({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:S,nextParams:r[r.length-1].params},i,{actionResult:g,actionStatus:w,defaultShouldRevalidate:!x&&c})),y&&T.push({key:o,routeId:e.routeId,path:e.path,matches:s,match:f,controller:new AbortController})})),[O,T]}function Te(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Pe(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||Ae(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 Ae(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 ke(e){let{matches:t}=e,r=t.filter((e=>e.shouldLoad));return(await Promise.all(r.map((e=>e.resolve())))).reduce(((e,t,n)=>Object.assign(e,{[r[n].route.id]:t})),{})}async function Re(e,t,r,i,o,a,s,c,p,f){let h=a.map((e=>e.route.lazy?async function(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||g.has(e)||(a[e]=i[e])}Object.assign(o,a),Object.assign(o,n({},t(o),{lazy:void 0}))}(e.route,p,c):void 0)),d=a.map(((e,r)=>{let a=h[r],s=o.some((t=>t.route.id===e.route.id));return n({},e,{shouldLoad:s,resolve:async r=>(r&&"GET"===i.method&&(e.route.lazy||e.route.loader)&&(s=!0),s?async function(e,t,r,n,i,o){let a,s,c=n=>{let a,c=new Promise(((e,t)=>a=t));s=()=>a(),t.signal.addEventListener("abort",s);let u=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:o},...void 0!==i?[i]:[]),l=(async()=>{try{return{type:"data",result:await(i?i((e=>u(e))):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([l,c])};try{let i=r.route[e];if(n)if(i){let e,[t]=await Promise.all([c(i).catch((t=>{e=t})),n]);if(void 0!==e)throw e;a=t}else{if(await n,i=r.route[e],!i){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw qe(405,{method:t.method,pathname:n,routeId:r.route.id})}return{type:y.data,result:void 0}}a=await c(i)}else{if(!i){let e=new URL(t.url);throw qe(404,{pathname:e.pathname+e.search})}a=await c(i)}u(void 0!==a.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:y.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return a}(t,i,e,a,r,f):Promise.resolve({type:y.data,result:void 0}))})})),m=await e({matches:d,request:i,params:a[0].params,fetcherKey:s,context:f});try{await Promise.all(h)}catch(e){}return m}async function Ie(e){let{result:t,type:r}=e;if(Ze(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:y.error,error:e}}return r===y.error?{type:y.error,error:new ne(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:y.data,data:e,statusCode:t.status,headers:t.headers}}if(r===y.error){if(Qe(t)){var n,i;if(t.data instanceof Error)return{type:y.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:y.error,error:t,statusCode:ie(t)?t.status:void 0}}var o,a,s,c;return Je(t)?{type:y.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)}:Qe(t)?{type:y.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:y.data,data:t}}function De(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"),!de.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(de.test(e)){let n=e,i=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=null!=F(i.pathname,r);if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function Ne(e,t,r,n){let i=e.createURL(We(t)).toString(),o={signal:r};if(n&&tt(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=Fe(n.formData):o.body=n.formData}return new Request(i,o)}function Fe(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function Le(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function je(e,t,r,n,i){let o,a={},s=null,c=!1,l={},p=r&&Ye(r[1])?r[1].error:void 0;return e.forEach((r=>{if(!(r.route.id in t))return;let f=r.route.id,h=t[f];if(u(!Xe(h),"Cannot handle redirect results in processLoaderData"),Ye(h)){let t=h.error;if(void 0!==p&&(t=p,p=void 0),s=s||{},i)s[f]=t;else{let r=ze(e,f);null==s[r.route.id]&&(s[r.route.id]=t)}a[f]=void 0,c||(c=!0,o=ie(h.error)?h.error.status:500),h.headers&&(l[f]=h.headers)}else $e(h)?(n.set(f,h.deferredData),a[f]=h.deferredData.data,null==h.statusCode||200===h.statusCode||c||(o=h.statusCode),h.headers&&(l[f]=h.headers)):(a[f]=h.data,h.statusCode&&200!==h.statusCode&&!c&&(o=h.statusCode),h.headers&&(l[f]=h.headers))})),void 0!==p&&r&&(s={[r[0]]:p},a[r[0]]=void 0),{loaderData:a,errors:s,statusCode:o||200,loaderHeaders:l}}function Be(e,t,r,i,o,a,s,c){let{loaderData:l,errors:p}=je(t,i,o,c,!1);return a.forEach((t=>{let{key:r,match:i,controller:o}=t,a=s[r];if(u(a,"Did not find corresponding fetcher result"),!o||!o.signal.aborted)if(Ye(a)){let t=ze(e.matches,null==i?void 0:i.route.id);p&&p[t.route.id]||(p=n({},p,{[t.route.id]:a.error})),e.fetchers.delete(r)}else if(Xe(a))u(!1,"Unhandled fetcher revalidation redirect");else if($e(a))u(!1,"Unhandled fetcher deferred data");else{let t=lt(a.data);e.fetchers.set(r,t)}})),{loaderData:l,errors:p}}function Ue(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 Ve(e){return e?Ye(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 He(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 qe(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 Ge(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(Xe(n))return{key:r,result:n}}}function We(e){return h(n({},"string"==typeof e?d(e):e,{hash:""}))}function Ke(e){return Ze(e.result)&&ue.has(e.result.status)}function $e(e){return e.type===y.deferred}function Ye(e){return e.type===y.error}function Xe(e){return(e&&e.type)===y.redirect}function Qe(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Je(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 Ze(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function et(e){return ce.has(e.toLowerCase())}function tt(e){return ae.has(e.toLowerCase())}async function rt(e,t,r,n,i){let o=Object.entries(t);for(let a=0;a<o.length;a++){let[s,c]=o[a],u=e.find((e=>(null==e?void 0:e.route.id)===s));if(!u)continue;let l=n.find((e=>e.route.id===u.route.id)),p=null!=l&&!Te(l,u)&&void 0!==(i&&i[u.route.id]);$e(c)&&p&&await it(c,r,!1).then((e=>{e&&(t[s]=e)}))}}async function nt(e,t,r){for(let n=0;n<r.length;n++){let{key:i,routeId:o,controller:a}=r[n],s=t[i];e.find((e=>(null==e?void 0:e.route.id)===o))&&($e(s)&&(u(a,"Expected an AbortController for revalidating fetcher deferred result"),await it(s,a.signal,!0).then((e=>{e&&(t[i]=e)}))))}}async function it(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:y.data,data:e.deferredData.unwrappedData}}catch(e){return{type:y.error,error:e}}return{type:y.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?d(t).search:t.search;if(e[e.length-1].route.index&&ot(r||""))return e[e.length-1];let n=B(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:()=>P,getObsQueryOptions:()=>x,lastWatchOptions:()=>b,toApolloError:()=>C,toQueryResult:()=>A,useQuery:()=>S,useQueryInternals:()=>E});var n=r(103),i=(r(349),r(347)),o=r(348),a=r(480),s=r(503),c=r(589),u=r(417),l=r(482),p=r(587),f=r(588),h=r(484),d=r(445),m=r(499),y=r(590),g=Object.prototype.hasOwnProperty;function v(){}var b=Symbol();function S(e,t){return void 0===t&&(t=Object.create(null)),(0,y.wrapHook)("useQuery",_,(0,f.useApolloClient)(t&&t.client))(e,t)}function _(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,f.useApolloClient)(t.client),s=i.useContext((0,c.getApolloContext)()).renderPromises,u=!!s,h=r.disableNetworkFetches,d=!1!==t.ssr&&!t.skip,m=t.partialRefetch,y=w(r,e,t,u),S=function(e,t,r,o,a){function s(n){var i;return(0,p.verifyDocumentType)(t,p.DocumentType.Query),{client:e,query:t,observable:o&&o.getSSRObservable(a())||e.watchQuery(x(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 f(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 h=s(u);return l(h),[h,f]}return[u,f]}(r,e,t,s,y),_=S[0],E=_.observable,P=_.resultData,C=S[1],I=y(E);!function(e,t,r,n,i){var o;t[b]&&!(0,a.equal)(t[b],i)&&(t.reobserve(x(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}(P,E,r,t,I);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,d);var M=function(e,t,r,n,s,c,u,p,f){var h=i.useRef(f);i.useEffect((function(){h.current=f}));var d=!p&&!c||!1!==n.ssr||n.skip?n.skip||"standby"===s.fetchPolicy?R:void 0:k,m=e.previousData,y=i.useMemo((function(){return d&&A(d,m,t,r)}),[r,t,d,m]);return(0,o.useSyncExternalStore)(i.useCallback((function(n){if(p)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)||O(o,e,t,r,u,n,h.current)},o=function(c){if(s.current.unsubscribe(),s.current=t.resubscribeAfterError(i,o),!g.call(c,"graphQLErrors"))throw c;var p=e.current;(!p||p&&p.loading||!(0,a.equal)(c,p.error))&&O({data:p&&p.data,error:c,loading:!1,networkStatus:l.NetworkStatus.error},e,t,r,u,n,h.current)},s={current:t.subscribe(i,o)};return function(){setTimeout((function(){return s.current.unsubscribe()}))}}),[c,p,t,e,u,r]),(function(){return y||T(e,t,h.current,u,r)}),(function(){return y||T(e,t,h.current,u,r)}))}(P,E,r,t,I,h,m,u,{onCompleted:t.onCompleted||v,onError:t.onError||v});return{result:M,obsQueryFields:D,observable:E,resultData:P,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||P(a,e.defaultOptions),n.fetchPolicy="standby"):n.fetchPolicy||(n.fetchPolicy=(null==r?void 0:r.options.initialFetchPolicy)||P(a,e.defaultOptions)),n}}function x(e,t,r,n){var i=[],o=t.defaultOptions.watchQuery;return o&&i.push(o),r.defaultOptions&&i.push(r.defaultOptions),i.push((0,h.compact)(e&&e.options,n)),i.reduce(s.mergeOptions)}function O(e,t,r,i,o,a,s){var c=t.current;c&&c.data&&(t.previousData=c.data),!e.error&&(0,d.isNonEmptyArray)(e.errors)&&(e.error=new u.ApolloError({graphQLErrors:e.errors})),t.current=A(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||O(t.getCurrentResult(),e,t,i,n,(function(){}),r),e.current}function P(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,d.isNonEmptyArray)(e.errors)?new u.ApolloError({graphQLErrors:e.errors}):e.error}function A(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!==k&&e!==R,previousData:t})}var k=(0,m.maybeDeepFreeze)({loading:!0,data:void 0,error:void 0,networkStatus:l.NetworkStatus.loading}),R=(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(349),a=r(432),s=r(434);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,70,e);for(var u=[],l=[],p=[],f=[],h=0,d=e.definitions;h<d.length;h++){var m=d[h];if("FragmentDefinition"!==m.kind){if("OperationDefinition"===m.kind)switch(m.operation){case"query":l.push(m);break;case"mutation":p.push(m);break;case"subscription":f.push(m)}}else u.push(m)}(0,o.invariant)(!u.length||l.length||p.length||f.length,71),(0,o.invariant)(l.length+p.length+f.length<=1,72,e,l.length,f.length,p.length),r=l.length?n.Query:n.Mutation,l.length||p.length||(r=n.Subscription);var y=l.length?l:p.length?p:f;(0,o.invariant)(1===y.length,73,e,y.length);var g=y[0];t=g.variableDefinitions||[];var v={name:g.name&&"Name"===g.name.kind?g.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,74,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(349),i=r(347),o=r(589);function a(e){var t=i.useContext((0,o.getApolloContext)()),r=e||t.client;return(0,n.invariant)(!!r,58),r}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{getApolloContext:()=>c,resetApolloContext:()=>u});var i=r(347),o=r(357),a=r(349),s=o.canUseSymbol?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function c(){(0,a.invariant)("createContext"in(n||(n=r.t(i,2))),54);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(285),i="undefined"==typeof window?{show:function(){},hide:function(){},config:function(){}}:r(593),o=0,a=function(e){return e.topbar||i};function s(e){return n.useEffect((function(){return 0===o&&a(e).show(),o++,function(){0===--o&&a(e).hide()}}),[]),null}s.config=i.config,e.exports=s},function(e,t,r){var n; /*! topbar 0.1.4, 2020-04-27 * http://buunguyen.github.io/topbar * Copyright (c) 2019 Buu Nguyen * Licensed under the MIT License */(function(i,o){"use strict";!function(){for(var e=0,t=["ms","moz","webkit","o"],r=0;r<t.length&&!i.requestAnimationFrame;++r)i.requestAnimationFrame=i[t[r]+"RequestAnimationFrame"],i.cancelAnimationFrame=i[t[r]+"CancelAnimationFrame"]||i[t[r]+"CancelRequestAnimationFrame"];i.requestAnimationFrame||(i.requestAnimationFrame=function(t,r){var n=(new Date).getTime(),o=Math.max(0,16-(n-e)),a=i.setTimeout((function(){t(n+o)}),o);return e=n+o,a}),i.cancelAnimationFrame||(i.cancelAnimationFrame=function(e){clearTimeout(e)})}();var a,s,c,u,l,p={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},f=function(){a.width=i.innerWidth,a.height=5*p.barThickness;var e=a.getContext("2d");e.shadowBlur=p.shadowBlur,e.shadowColor=p.shadowColor;var t=e.createLinearGradient(0,0,a.width,0);for(var r in p.barColors)t.addColorStop(r,p.barColors[r]);e.lineWidth=p.barThickness,e.beginPath(),e.moveTo(0,p.barThickness/2),e.lineTo(Math.ceil(u*a.width),p.barThickness/2),e.strokeStyle=t,e.stroke()},h={config:function(e){for(var t in e)p.hasOwnProperty(t)&&(p[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",p.className&&a.classList.add(p.className),o.body.appendChild(a),t="resize",r=f,(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",h.progress(0),p.autoRun&&function e(){s=i.requestAnimationFrame(e),h.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,f()),u},hide:function(){l&&(l=!1,null!=s&&(i.cancelAnimationFrame(s),s=null),function e(){if(h.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=h:void 0===(n=function(){return h}.call(t,r,t,e))||(e.exports=n)}).call(this,window,document)},,,(e,t,r)=>{e.exports=r(597)()},(e,t,r)=>{"use strict";var n=r(598);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";Object.defineProperty(t,"__esModule",{value:!0}),t.withContentRect=t.default=void 0;var n=o(r(606)),i=o(r(607));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(285));var n=i(r(607));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(285),a=(l(o),l(r(596))),s=l(r(608)),c=l(r(609)),u=l(r(610));function l(e){return e&&e.__esModule?e:{default:e}}function p(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=p(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)},p(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:()=>x});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},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},f=v(0,0,0,0);function h(e){return parseFloat(e)||0}function d(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce((function(t,r){return t+h(e["border-"+r+"-width"])}),0)}function m(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return f;var n=p(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]=h(o)}return t}(n),o=i.left+i.right,a=i.top+i.bottom,s=h(n.width),c=h(n.height);if("border-box"===n.boxSizing&&(Math.round(s+o)!==t&&(s-=d(n,"left","right")+o),Math.round(c+a)!==r&&(c-=d(n,"top","bottom")+a)),!function(e){return e===p(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 y="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return i?y(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):m(e):f}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=g(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}(),S=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})},_=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 p(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 p(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 S(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 _(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 x=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:()=>p});var n=r(103),i=r(347),o=r(503),a=r(480),s=r(587),c=r(417),u=r(588),l=r(629);function p(e,t){var r=(0,u.useApolloClient)(null==t?void 0:t.client);(0,s.verifyDocumentType)(e,s.DocumentType.Mutation);var p=i.useState({called:!1,loading:!1,client:r}),f=p[0],h=p[1],d=i.useRef({result:f,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});(0,l.useIsomorphicLayoutEffect)((function(){Object.assign(d.current,{client:r,options:t,mutation:e})}));var m=i.useCallback((function(e){void 0===e&&(e={});var t=d.current,r=t.options,i=t.mutation,s=(0,n.__assign)((0,n.__assign)({},r),{mutation:i}),u=e.client||d.current.client;d.current.result.loading||s.ignoreResults||!d.current.isMounted||h(d.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:u});var l=++d.current.mutationId,p=(0,o.mergeOptions)(s,e);return u.mutate(p).then((function(t){var r,n,i=t.data,o=t.errors,s=o&&o.length>0?new c.ApolloError({graphQLErrors:o}):void 0,f=e.onError||(null===(r=d.current.options)||void 0===r?void 0:r.onError);if(s&&f&&f(s,p),l===d.current.mutationId&&!p.ignoreResults){var m={called:!0,loading:!1,data:i,error:s,client:u};d.current.isMounted&&!(0,a.equal)(d.current.result,m)&&h(d.current.result=m)}var y=e.onCompleted||(null===(n=d.current.options)||void 0===n?void 0:n.onCompleted);return s||null==y||y(t.data,p),t}),(function(t){var r;if(l===d.current.mutationId&&d.current.isMounted){var n={loading:!1,error:t,data:void 0,called:!0,client:u};(0,a.equal)(d.current.result,n)||h(d.current.result=n)}var i=e.onError||(null===(r=d.current.options)||void 0===r?void 0:r.onError);if(i)return i(t,p),{data:void 0,errors:t};throw t}))}),[]),y=i.useCallback((function(){if(d.current.isMounted){var e={called:!1,loading:!1,client:d.current.client};Object.assign(d.current,{mutationId:0,result:e}),h(e)}}),[]);return i.useEffect((function(){var e=d.current;return e.isMounted=!0,function(){e.isMounted=!1}}),[]),[m,(0,n.__assign)({reset:y},f)]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useIsomorphicLayoutEffect:()=>i});var n=r(347),i=r(357).canUseDOM?n.useLayoutEffect:n.useEffect},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{Particles:()=>i.default,default:()=>i.default,initParticlesEngine:()=>o});var n=r(693),i=r(891);r(285);async function o(e){await e(n.tsParticles)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AlterType:()=>o.AlterType,AnimatableColor:()=>o.AnimatableColor,AnimationMode:()=>o.AnimationMode,AnimationOptions:()=>o.AnimationOptions,AnimationStatus:()=>o.AnimationStatus,AnimationValueWithRandom:()=>o.AnimationValueWithRandom,Background:()=>o.Background,BackgroundMask:()=>o.BackgroundMask,BackgroundMaskCover:()=>o.BackgroundMaskCover,BaseRange:()=>o.BaseRange,Circle:()=>o.Circle,ClickEvent:()=>o.ClickEvent,CollisionMode:()=>o.CollisionMode,Collisions:()=>o.Collisions,CollisionsAbsorb:()=>o.CollisionsAbsorb,CollisionsOverlap:()=>o.CollisionsOverlap,ColorAnimation:()=>o.ColorAnimation,DestroyType:()=>o.DestroyType,DivEvent:()=>o.DivEvent,DivType:()=>o.DivType,EasingType:()=>o.EasingType,EventType:()=>o.EventType,Events:()=>o.Events,ExternalInteractorBase:()=>o.ExternalInteractorBase,FullScreen:()=>o.FullScreen,GradientType:()=>o.GradientType,HoverEvent:()=>o.HoverEvent,HslAnimation:()=>o.HslAnimation,Interactivity:()=>o.Interactivity,InteractivityDetect:()=>o.InteractivityDetect,InteractorType:()=>o.InteractorType,LimitMode:()=>o.LimitMode,ManualParticle:()=>o.ManualParticle,Modes:()=>o.Modes,Move:()=>o.Move,MoveAngle:()=>o.MoveAngle,MoveAttract:()=>o.MoveAttract,MoveCenter:()=>o.MoveCenter,MoveDirection:()=>o.MoveDirection,MoveGravity:()=>o.MoveGravity,MovePath:()=>o.MovePath,MoveTrail:()=>o.MoveTrail,Opacity:()=>o.Opacity,OpacityAnimation:()=>o.OpacityAnimation,Options:()=>o.Options,OptionsColor:()=>o.OptionsColor,OutMode:()=>o.OutMode,OutModeDirection:()=>o.OutModeDirection,OutModes:()=>o.OutModes,Parallax:()=>o.Parallax,ParticleOutType:()=>o.ParticleOutType,ParticlesBounce:()=>o.ParticlesBounce,ParticlesBounceFactor:()=>o.ParticlesBounceFactor,ParticlesDensity:()=>o.ParticlesDensity,ParticlesInteractorBase:()=>o.ParticlesInteractorBase,ParticlesNumber:()=>o.ParticlesNumber,ParticlesNumberLimit:()=>o.ParticlesNumberLimit,ParticlesOptions:()=>o.ParticlesOptions,PixelMode:()=>o.PixelMode,Point:()=>o.Point,RangedAnimationOptions:()=>o.RangedAnimationOptions,RangedAnimationValueWithRandom:()=>o.RangedAnimationValueWithRandom,Rectangle:()=>o.Rectangle,ResizeEvent:()=>o.ResizeEvent,Responsive:()=>o.Responsive,ResponsiveMode:()=>o.ResponsiveMode,RotateDirection:()=>o.RotateDirection,Shadow:()=>o.Shadow,Shape:()=>o.Shape,Size:()=>o.Size,SizeAnimation:()=>o.SizeAnimation,Spin:()=>o.Spin,StartValueType:()=>o.StartValueType,Stroke:()=>o.Stroke,Theme:()=>o.Theme,ThemeDefault:()=>o.ThemeDefault,ThemeMode:()=>o.ThemeMode,ValueWithRandom:()=>o.ValueWithRandom,Vector:()=>o.Vector,Vector3d:()=>o.Vector3d,ZIndex:()=>o.ZIndex,alterHsl:()=>o.alterHsl,animate:()=>o.animate,areBoundsInside:()=>o.areBoundsInside,arrayRandomIndex:()=>o.arrayRandomIndex,calcExactPositionOrRandomFromSize:()=>o.calcExactPositionOrRandomFromSize,calcExactPositionOrRandomFromSizeRanged:()=>o.calcExactPositionOrRandomFromSizeRanged,calcPositionFromSize:()=>o.calcPositionFromSize,calcPositionOrRandomFromSize:()=>o.calcPositionOrRandomFromSize,calcPositionOrRandomFromSizeRanged:()=>o.calcPositionOrRandomFromSizeRanged,calculateBounds:()=>o.calculateBounds,cancelAnimation:()=>o.cancelAnimation,canvasFirstIndex:()=>o.canvasFirstIndex,canvasTag:()=>o.canvasTag,circleBounce:()=>o.circleBounce,circleBounceDataFromParticle:()=>o.circleBounceDataFromParticle,clamp:()=>o.clamp,clear:()=>o.clear,clickRadius:()=>o.clickRadius,cloneStyle:()=>o.cloneStyle,collisionVelocity:()=>o.collisionVelocity,colorMix:()=>o.colorMix,colorToHsl:()=>o.colorToHsl,colorToRgb:()=>o.colorToRgb,countOffset:()=>o.countOffset,decayOffset:()=>o.decayOffset,deepExtend:()=>o.deepExtend,defaultAlpha:()=>o.defaultAlpha,defaultAngle:()=>o.defaultAngle,defaultDensityFactor:()=>o.defaultDensityFactor,defaultFps:()=>o.defaultFps,defaultFpsLimit:()=>o.defaultFpsLimit,defaultLoops:()=>o.defaultLoops,defaultOpacity:()=>o.defaultOpacity,defaultRadius:()=>o.defaultRadius,defaultRatio:()=>o.defaultRatio,defaultReduceFactor:()=>o.defaultReduceFactor,defaultRemoveQuantity:()=>o.defaultRemoveQuantity,defaultRetryCount:()=>o.defaultRetryCount,defaultRgbMin:()=>o.defaultRgbMin,defaultTime:()=>o.defaultTime,defaultTransform:()=>o.defaultTransform,defaultTransformValue:()=>o.defaultTransformValue,defaultVelocity:()=>o.defaultVelocity,degToRad:()=>o.degToRad,deleteCount:()=>o.deleteCount,divMode:()=>o.divMode,divModeExecute:()=>o.divModeExecute,double:()=>o.double,doublePI:()=>o.doublePI,drawEffect:()=>o.drawEffect,drawLine:()=>o.drawLine,drawParticle:()=>o.drawParticle,drawParticlePlugin:()=>o.drawParticlePlugin,drawPlugin:()=>o.drawPlugin,drawShape:()=>o.drawShape,drawShapeAfterDraw:()=>o.drawShapeAfterDraw,empty:()=>o.empty,errorPrefix:()=>o.errorPrefix,executeOnSingleOrMultiple:()=>o.executeOnSingleOrMultiple,findItemFromSingleOrMultiple:()=>o.findItemFromSingleOrMultiple,generatedAttribute:()=>o.generatedAttribute,generatedFalse:()=>o.generatedFalse,generatedTrue:()=>o.generatedTrue,getDistance:()=>o.getDistance,getDistances:()=>o.getDistances,getFullScreenStyle:()=>o.getFullScreenStyle,getHslAnimationFromHsl:()=>o.getHslAnimationFromHsl,getHslFromAnimation:()=>o.getHslFromAnimation,getLinkColor:()=>o.getLinkColor,getLinkRandomColor:()=>o.getLinkRandomColor,getLogger:()=>o.getLogger,getParticleBaseVelocity:()=>o.getParticleBaseVelocity,getParticleDirectionAngle:()=>o.getParticleDirectionAngle,getPosition:()=>o.getPosition,getRandom:()=>o.getRandom,getRandomRgbColor:()=>o.getRandomRgbColor,getRangeMax:()=>o.getRangeMax,getRangeMin:()=>o.getRangeMin,getRangeValue:()=>o.getRangeValue,getSize:()=>o.getSize,getStyleFromHsl:()=>o.getStyleFromHsl,getStyleFromRgb:()=>o.getStyleFromRgb,hMax:()=>o.hMax,hMin:()=>o.hMin,hPhase:()=>o.hPhase,half:()=>o.half,hasMatchMedia:()=>o.hasMatchMedia,hslToRgb:()=>o.hslToRgb,hslaToRgba:()=>o.hslaToRgba,identity:()=>o.identity,initParticleNumericAnimationValue:()=>o.initParticleNumericAnimationValue,inverseFactorNumerator:()=>o.inverseFactorNumerator,isArray:()=>o.isArray,isBoolean:()=>o.isBoolean,isDivModeEnabled:()=>o.isDivModeEnabled,isFunction:()=>o.isFunction,isInArray:()=>o.isInArray,isNull:()=>o.isNull,isNumber:()=>o.isNumber,isObject:()=>o.isObject,isPointInside:()=>o.isPointInside,isSsr:()=>o.isSsr,isString:()=>o.isString,itemFromArray:()=>o.itemFromArray,itemFromSingleOrMultiple:()=>o.itemFromSingleOrMultiple,lFactor:()=>o.lFactor,lMax:()=>o.lMax,lMin:()=>o.lMin,lengthOffset:()=>o.lengthOffset,loadFont:()=>o.loadFont,loadMinIndex:()=>o.loadMinIndex,loadOptions:()=>o.loadOptions,loadParticlesOptions:()=>o.loadParticlesOptions,loadRandomFactor:()=>o.loadRandomFactor,manualCount:()=>o.manualCount,manualDefaultPosition:()=>o.manualDefaultPosition,midColorValue:()=>o.midColorValue,millisecondsToSeconds:()=>o.millisecondsToSeconds,minCoordinate:()=>o.minCoordinate,minCount:()=>o.minCount,minFpsLimit:()=>o.minFpsLimit,minIndex:()=>o.minIndex,minLimit:()=>o.minLimit,minRetries:()=>o.minRetries,minStrokeWidth:()=>o.minStrokeWidth,minVelocity:()=>o.minVelocity,minZ:()=>o.minZ,minimumLength:()=>o.minimumLength,minimumSize:()=>o.minimumSize,mix:()=>o.mix,mouseDownEvent:()=>o.mouseDownEvent,mouseLeaveEvent:()=>o.mouseLeaveEvent,mouseMoveEvent:()=>o.mouseMoveEvent,mouseOutEvent:()=>o.mouseOutEvent,mouseUpEvent:()=>o.mouseUpEvent,none:()=>o.none,one:()=>o.one,originPoint:()=>o.originPoint,paintBase:()=>o.paintBase,paintImage:()=>o.paintImage,parseAlpha:()=>o.parseAlpha,percentDenominator:()=>o.percentDenominator,phaseNumerator:()=>o.phaseNumerator,posOffset:()=>o.posOffset,qTreeCapacity:()=>o.qTreeCapacity,quarter:()=>o.quarter,randomColorValue:()=>o.randomColorValue,randomInRange:()=>o.randomInRange,rangeColorToHsl:()=>o.rangeColorToHsl,rangeColorToRgb:()=>o.rangeColorToRgb,rectBounce:()=>o.rectBounce,removeDeleteCount:()=>o.removeDeleteCount,removeMinIndex:()=>o.removeMinIndex,resizeEvent:()=>o.resizeEvent,rgbFactor:()=>o.rgbFactor,rgbMax:()=>o.rgbMax,rgbToHsl:()=>o.rgbToHsl,rollFactor:()=>o.rollFactor,sMax:()=>o.sMax,sMin:()=>o.sMin,sNormalizedOffset:()=>o.sNormalizedOffset,safeIntersectionObserver:()=>o.safeIntersectionObserver,safeMatchMedia:()=>o.safeMatchMedia,safeMutationObserver:()=>o.safeMutationObserver,setAnimationFunctions:()=>o.setAnimationFunctions,setLogger:()=>o.setLogger,setRandom:()=>o.setRandom,setRangeValue:()=>o.setRangeValue,sextuple:()=>o.sextuple,singleDivModeExecute:()=>o.singleDivModeExecute,sizeFactor:()=>o.sizeFactor,squareExp:()=>o.squareExp,stringToAlpha:()=>o.stringToAlpha,stringToRgb:()=>o.stringToRgb,subdivideCount:()=>o.subdivideCount,threeQuarter:()=>o.threeQuarter,touchCancelEvent:()=>o.touchCancelEvent,touchDelay:()=>o.touchDelay,touchEndEvent:()=>o.touchEndEvent,touchEndLengthOffset:()=>o.touchEndLengthOffset,touchMoveEvent:()=>o.touchMoveEvent,touchStartEvent:()=>o.touchStartEvent,triple:()=>o.triple,tryCountIncrement:()=>o.tryCountIncrement,tsParticles:()=>a,updateAnimation:()=>o.updateAnimation,updateColor:()=>o.updateColor,updateColorValue:()=>o.updateColorValue,visibilityChangeEvent:()=>o.visibilityChangeEvent,zIndexFactorOffset:()=>o.zIndexFactorOffset});var n=r(694),i=r(697),o=r(785);r(791);const a=(0,n.init)();(0,i.isSsr)()||(window.tsParticles=a)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{init:()=>i});var n=r(695);function i(){const e=new n.Engine;return e.init(),e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Engine:()=>l});var n=r(696),i=r(697),o=r(708),a=r(784),s=r(715),c=r(698);async function u(e,t,r,n=!1){let i=t.get(e);return i&&!n||(i=await Promise.all([...r.values()].map((t=>t(e)))),t.set(e,i)),i}class l{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new a.EventDispatcher,this._initialized=!1,this.plugins=[],this.colorManagers=new Map,this.easingFunctions=new Map,this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const e={};for(const[t,r]of this._configs)e[t]=r;return e}get items(){return this._domArray}get version(){return"3.8.1"}async addColorManager(e,t=!0){this.colorManagers.set(e.key,e),await this.refresh(t)}addConfig(e){const t=e.key??e.name??"default";this._configs.set(t,e),this._eventDispatcher.dispatchEvent(s.EventType.configAdded,{data:{name:t,config:e}})}async addEasing(e,t,r=!0){this.getEasing(e)||(this.easingFunctions.set(e,t),await this.refresh(r))}async addEffect(e,t,r=!0){(0,i.executeOnSingleOrMultiple)(e,(e=>{this.getEffectDrawer(e)||this.effectDrawers.set(e,t)})),await this.refresh(r)}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}async addInteractor(e,t,r=!0){this._initializers.interactors.set(e,t),await this.refresh(r)}async addMover(e,t,r=!0){this._initializers.movers.set(e,t),await this.refresh(r)}async addParticleUpdater(e,t,r=!0){this._initializers.updaters.set(e,t),await this.refresh(r)}async addPathGenerator(e,t,r=!0){this.getPathGenerator(e)||this.pathGenerators.set(e,t),await this.refresh(r)}async addPlugin(e,t=!0){this.getPlugin(e.id)||this.plugins.push(e),await this.refresh(t)}async addPreset(e,t,r=!1,n=!0){!r&&this.getPreset(e)||this.presets.set(e,t),await this.refresh(n)}async addShape(e,t=!0){for(const t of e.validTypes)this.getShapeDrawer(t)||this.shapeDrawers.set(t,e);await this.refresh(t)}checkVersion(e){if(this.version!==e)throw new Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${e}`)}clearPlugins(e){this.updaters.delete(e),this.movers.delete(e),this.interactors.delete(e)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}dom(){return this.items}domItem(e){return this.item(e)}async getAvailablePlugins(e){const t=new Map;for(const r of this.plugins)r.needsPlugin(e.actualOptions)&&t.set(r.id,await r.getPlugin(e));return t}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawer(e){return this.effectDrawers.get(e)}async getInteractors(e,t=!1){return u(e,this.interactors,this._initializers.interactors,t)}async getMovers(e,t=!1){return u(e,this.movers,this._initializers.movers,t)}getPathGenerator(e){return this.pathGenerators.get(e)}getPlugin(e){return this.plugins.find((t=>t.id===e))}getPreset(e){return this.presets.get(e)}getShapeDrawer(e){return this.shapeDrawers.get(e)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(e,t=!1){return u(e,this.updaters,this._initializers.updaters,t)}init(){this._initialized||(this._initialized=!0)}item(e){const{items:t}=this,r=t[e];if(r&&!r.destroyed)return r;t.splice(e,n.removeDeleteCount)}async load(e){const t=e.id??e.element?.id??`tsparticles${Math.floor((0,c.getRandom)()*n.loadRandomFactor)}`,{index:r,url:a}=e,s=a?await async function(e){const t=(0,i.itemFromSingleOrMultiple)(e.url,e.index);if(!t)return e.fallback;const r=await fetch(t);return r.ok?await r.json():((0,i.getLogger)().error(`${n.errorPrefix} ${r.status} while retrieving config file`),e.fallback)}({fallback:e.options,url:a,index:r}):e.options,u=(0,i.itemFromSingleOrMultiple)(s,r),{items:l}=this,p=l.findIndex((e=>e.id.description===t)),f=new o.Container(this,t,u);if(p>=n.loadMinIndex){const e=this.item(p),t=e?n.one:n.none;e&&!e.destroyed&&e.destroy(!1),l.splice(p,t,f)}else l.push(f);const h=((e,t)=>{let r=t??document.getElementById(e);return r||(r=document.createElement("div"),r.id=e,r.dataset[n.generatedAttribute]=n.generatedTrue,document.body.append(r),r)})(t,e.element),d=(e=>{let t;if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===n.canvasTag)t=e,t.dataset[n.generatedAttribute]||(t.dataset[n.generatedAttribute]=n.generatedFalse);else{const r=e.getElementsByTagName(n.canvasTag);r.length?(t=r[n.canvasFirstIndex],t.dataset[n.generatedAttribute]=n.generatedFalse):(t=document.createElement(n.canvasTag),t.dataset[n.generatedAttribute]=n.generatedTrue,e.appendChild(t))}const r="100%";return t.style.width||(t.style.width=r),t.style.height||(t.style.height=r),t})(h);return f.canvas.loadCanvas(d),await f.start(),f}loadOptions(e,t){this.plugins.forEach((r=>r.loadOptions?.(e,t)))}loadParticlesOptions(e,t,...r){const n=this.updaters.get(e);n&&n.forEach((e=>e.loadOptions?.(t,...r)))}async refresh(e=!0){e&&await Promise.all(this.items.map((e=>e.refresh())))}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}setOnClickHandler(e){const{items:t}=this;if(!t.length)throw new Error(`${n.errorPrefix} can only set click handlers after calling tsParticles.load()`);t.forEach((t=>t.addClickHandler(e)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{canvasFirstIndex:()=>se,canvasTag:()=>A,clickRadius:()=>ee,countOffset:()=>_e,decayOffset:()=>fe,defaultAlpha:()=>T,defaultAngle:()=>ke,defaultDensityFactor:()=>Te,defaultFps:()=>O,defaultFpsLimit:()=>oe,defaultLoops:()=>ze,defaultOpacity:()=>Z,defaultRadius:()=>ge,defaultRatio:()=>M,defaultReduceFactor:()=>N,defaultRemoveQuantity:()=>D,defaultRetryCount:()=>k,defaultRgbMin:()=>Ue,defaultTime:()=>He,defaultTransform:()=>S,defaultTransformValue:()=>Y,defaultVelocity:()=>Ve,deleteCount:()=>Pe,double:()=>w,doublePI:()=>x,empty:()=>G,errorPrefix:()=>m,generatedAttribute:()=>n,generatedFalse:()=>C,generatedTrue:()=>P,hMax:()=>B,hMin:()=>z,hPhase:()=>q,half:()=>g,identity:()=>Re,inverseFactorNumerator:()=>L,lFactor:()=>De,lMax:()=>V,lMin:()=>Me,lengthOffset:()=>Oe,loadMinIndex:()=>ue,loadRandomFactor:()=>ce,manualCount:()=>xe,manualDefaultPosition:()=>Ae,midColorValue:()=>E,millisecondsToSeconds:()=>v,minCoordinate:()=>re,minCount:()=>Ee,minFpsLimit:()=>ae,minIndex:()=>we,minLimit:()=>Se,minRetries:()=>de,minStrokeWidth:()=>Ie,minVelocity:()=>$,minZ:()=>ye,minimumLength:()=>Q,minimumSize:()=>X,mouseDownEvent:()=>i,mouseLeaveEvent:()=>a,mouseMoveEvent:()=>c,mouseOutEvent:()=>s,mouseUpEvent:()=>o,none:()=>pe,one:()=>le,originPoint:()=>b,percentDenominator:()=>y,phaseNumerator:()=>Be,posOffset:()=>ve,qTreeCapacity:()=>I,quarter:()=>W,randomColorValue:()=>_,removeDeleteCount:()=>ne,removeMinIndex:()=>ie,resizeEvent:()=>h,rgbFactor:()=>Ne,rgbMax:()=>j,rollFactor:()=>me,sMax:()=>U,sMin:()=>H,sNormalizedOffset:()=>je,sextuple:()=>Le,sizeFactor:()=>be,squareExp:()=>R,subdivideCount:()=>F,threeQuarter:()=>K,touchCancelEvent:()=>f,touchDelay:()=>Ce,touchEndEvent:()=>l,touchEndLengthOffset:()=>te,touchMoveEvent:()=>p,touchStartEvent:()=>u,triple:()=>Fe,tryCountIncrement:()=>he,visibilityChangeEvent:()=>d,zIndexFactorOffset:()=>J});const n="generated",i="pointerdown",o="pointerup",a="pointerleave",s="pointerout",c="pointermove",u="touchstart",l="touchend",p="touchmove",f="touchcancel",h="resize",d="visibilitychange",m="tsParticles - Error",y=100,g=.5,v=1e3,b={x:0,y:0,z:0},S={a:1,b:0,c:0,d:1},_="random",E="mid",w=2,x=Math.PI*w,O=60,T=1,P="true",C="false",A="canvas",k=0,R=2,I=4,D=1,M=1,N=1,F=4,L=1,j=255,B=360,U=100,V=100,z=0,H=0,q=60,G=0,W=.25,K=g+W,$=0,Y=1,X=0,Q=0,J=1,Z=1,ee=1,te=1,re=0,ne=1,ie=0,oe=120,ae=0,se=0,ce=1e4,ue=0,le=1,pe=0,fe=1,he=1,de=0,me=1,ye=0,ge=0,ve=-W,be=1.5,Se=0,_e=1,Ee=0,we=0,xe=0,Oe=1,Te=1,Pe=1,Ce=500,Ae=50,ke=0,Re=1,Ie=0,De=1,Me=0,Ne=255,Fe=3,Le=6,je=1,Be=1,Ue=0,Ve=0,ze=0,He=0},(e,t,r)=>{"use strict";r.r(t),r.d(t,{areBoundsInside:()=>P,arrayRandomIndex:()=>x,calculateBounds:()=>C,circleBounce:()=>N,circleBounceDataFromParticle:()=>M,cloneStyle:()=>G,deepExtend:()=>A,divMode:()=>D,divModeExecute:()=>R,executeOnSingleOrMultiple:()=>L,findItemFromSingleOrMultiple:()=>B,getFullScreenStyle:()=>W,getLogger:()=>m,getPosition:()=>z,getSize:()=>H,hasMatchMedia:()=>v,initParticleNumericAnimationValue:()=>U,isDivModeEnabled:()=>k,isInArray:()=>E,isPointInside:()=>T,isSsr:()=>g,itemFromArray:()=>O,itemFromSingleOrMultiple:()=>j,loadFont:()=>w,rectBounce:()=>F,safeIntersectionObserver:()=>S,safeMatchMedia:()=>b,safeMutationObserver:()=>_,setLogger:()=>d,singleDivModeExecute:()=>I,updateAnimation:()=>q});var n=r(698),i=r(696),o=r(701),a=r(702),s=r(703),c=r(704),u=r(705),l=r(706),p=r(707),f=r(700);const h={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function d(e){h.debug=e.debug||h.debug,h.error=e.error||h.error,h.info=e.info||h.info,h.log=e.log||h.log,h.verbose=e.verbose||h.verbose,h.warning=e.warning||h.warning}function m(){return h}function y(e){const t={bounced:!1},{pSide:r,pOtherSide:n,rectSide:o,rectOtherSide:a,velocity:s,factor:c}=e;return n.min<a.min||n.min>a.max||n.max<a.min||n.max>a.max||(r.max>=o.min&&r.max<=(o.max+o.min)*i.half&&s>i.minVelocity||r.min<=o.max&&r.min>(o.max+o.min)*i.half&&s<i.minVelocity)&&(t.velocity=s*-c,t.bounced=!0),t}function g(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function v(){return!g()&&"undefined"!=typeof matchMedia}function b(e){if(v())return matchMedia(e)}function S(e){if(!g()&&"undefined"!=typeof IntersectionObserver)return new IntersectionObserver(e)}function _(e){if(!g()&&"undefined"!=typeof MutationObserver)return new MutationObserver(e)}function E(e,t){return e===t||(0,o.isArray)(t)&&t.indexOf(e)>-1}async function w(e,t){try{await document.fonts.load(`${t??"400"} 36px '${e??"Verdana"}'`)}catch{}}function x(e){return Math.floor((0,n.getRandom)()*e.length)}function O(e,t,r=!0){return e[void 0!==t&&r?t%e.length:x(e)]}function T(e,t,r,n,i){return P(C(e,n??0),t,r,i)}function P(e,t,r,n){let i=!0;return n&&n!==u.OutModeDirection.bottom||(i=e.top<t.height+r.x),!i||n&&n!==u.OutModeDirection.left||(i=e.right>r.x),!i||n&&n!==u.OutModeDirection.right||(i=e.left<t.width+r.y),!i||n&&n!==u.OutModeDirection.top||(i=e.bottom>r.y),i}function C(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function A(e,...t){for(const r of t){if(null==r)continue;if(!(0,o.isObject)(r)){e=r;continue}const t=Array.isArray(r);!t||!(0,o.isObject)(e)&&e&&Array.isArray(e)?t||!(0,o.isObject)(e)&&e&&!Array.isArray(e)||(e={}):e=[];for(const t in r){if("__proto__"===t)continue;const n=r[t],i=e;i[t]=(0,o.isObject)(n)&&Array.isArray(n)?n.map((e=>A(i[t],e))):A(i[t],n)}}return e}function k(e,t){return!!B(t,(t=>t.enable&&E(e,t.mode)))}function R(e,t,r){L(t,(t=>{const n=t.mode;t.enable&&E(e,n)&&I(t,r)}))}function I(e,t){L(e.selectors,(r=>{t(r,e)}))}function D(e,t){if(t&&e)return B(e,(e=>function(e,t){const r=L(t,(t=>e.matches(t)));return(0,o.isArray)(r)?r.some((e=>e)):r}(t,e.selectors)))}function M(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:f.Vector.create((0,n.getRangeValue)(e.options.bounce.horizontal.value),(0,n.getRangeValue)(e.options.bounce.vertical.value))}}function N(e,t){const{x:r,y:i}=e.velocity.sub(t.velocity),[o,a]=[e.position,t.position],{dx:s,dy:c}=(0,n.getDistances)(a,o);if(r*s+i*c<0)return;const u=-Math.atan2(c,s),l=e.mass,p=t.mass,f=e.velocity.rotate(u),h=t.velocity.rotate(u),d=(0,n.collisionVelocity)(f,h,l,p),m=(0,n.collisionVelocity)(h,f,l,p),y=d.rotate(-u),g=m.rotate(-u);e.velocity.x=y.x*e.factor.x,e.velocity.y=y.y*e.factor.y,t.velocity.x=g.x*t.factor.x,t.velocity.y=g.y*t.factor.y}function F(e,t){const r=C(e.getPosition(),e.getRadius()),i=e.options.bounce,o=y({pSide:{min:r.left,max:r.right},pOtherSide:{min:r.top,max:r.bottom},rectSide:{min:t.left,max:t.right},rectOtherSide:{min:t.top,max:t.bottom},velocity:e.velocity.x,factor:(0,n.getRangeValue)(i.horizontal.value)});o.bounced&&(void 0!==o.velocity&&(e.velocity.x=o.velocity),void 0!==o.position&&(e.position.x=o.position));const a=y({pSide:{min:r.top,max:r.bottom},pOtherSide:{min:r.left,max:r.right},rectSide:{min:t.top,max:t.bottom},rectOtherSide:{min:t.left,max:t.right},velocity:e.velocity.y,factor:(0,n.getRangeValue)(i.vertical.value)});a.bounced&&(void 0!==a.velocity&&(e.velocity.y=a.velocity),void 0!==a.position&&(e.position.y=a.position))}function L(e,t){return(0,o.isArray)(e)?e.map(((e,r)=>t(e,r))):t(e,0)}function j(e,t,r){return(0,o.isArray)(e)?O(e,t,r):e}function B(e,t){if((0,o.isArray)(e))return e.find(((e,r)=>t(e,r)));return t(e,0)?e:void 0}function U(e,t){const r=e.value,o=e.animation,c={delayTime:(0,n.getRangeValue)(o.delay)*i.millisecondsToSeconds,enable:o.enable,value:(0,n.getRangeValue)(e.value)*t,max:(0,n.getRangeMax)(r)*t,min:(0,n.getRangeMin)(r)*t,loops:0,maxLoops:(0,n.getRangeValue)(o.count),time:0};if(o.enable){switch(c.decay=1-(0,n.getRangeValue)(o.decay),o.mode){case a.AnimationMode.increase:c.status=s.AnimationStatus.increasing;break;case a.AnimationMode.decrease:c.status=s.AnimationStatus.decreasing;break;case a.AnimationMode.random:c.status=(0,n.getRandom)()>=i.half?s.AnimationStatus.increasing:s.AnimationStatus.decreasing}const e=o.mode===a.AnimationMode.auto;switch(o.startValue){case p.StartValueType.min:c.value=c.min,e&&(c.status=s.AnimationStatus.increasing);break;case p.StartValueType.max:c.value=c.max,e&&(c.status=s.AnimationStatus.decreasing);break;case p.StartValueType.random:default:c.value=(0,n.randomInRange)(c),e&&(c.status=(0,n.getRandom)()>=i.half?s.AnimationStatus.increasing:s.AnimationStatus.decreasing)}}return c.initialValue=c.value,c}function V(e,t){if(!(e.mode===l.PixelMode.percent)){const{mode:t,...r}=e;return r}return"x"in e?{x:e.x/i.percentDenominator*t.width,y:e.y/i.percentDenominator*t.height}:{width:e.width/i.percentDenominator*t.width,height:e.height/i.percentDenominator*t.height}}function z(e,t){return V(e,t)}function H(e,t){return V(e,t)}function q(e,t,r,i,o){if(e.destroyed||!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;const a=(t.velocity??0)*o.factor,u=t.min,l=t.max,p=t.decay??1;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=o.value),!((t.delayTime??0)>0&&t.time<(t.delayTime??0))){switch(t.status){case s.AnimationStatus.increasing:t.value>=l?(r?t.status=s.AnimationStatus.decreasing:t.value-=l,t.loops||(t.loops=0),t.loops++):t.value+=a;break;case s.AnimationStatus.decreasing:t.value<=u?(r?t.status=s.AnimationStatus.increasing:t.value+=l,t.loops||(t.loops=0),t.loops++):t.value-=a}t.velocity&&1!==p&&(t.velocity*=p),function(e,t,r,n,i){switch(t){case c.DestroyType.max:r>=i&&e.destroy();break;case c.DestroyType.min:r<=n&&e.destroy()}}(e,i,t.value,u,l),e.destroyed||(t.value=(0,n.clamp)(t.value,u,l))}}function G(e){const t=document.createElement("div").style;if(!e)return t;for(const r in e){const n=e[r];if(!Object.prototype.hasOwnProperty.call(e,r)||(0,o.isNull)(n))continue;const i=e.getPropertyValue?.(n);if(!i)continue;const a=e.getPropertyPriority?.(n);a?t.setProperty?.(n,i,a):t.setProperty?.(n,i)}return t}const W=function(e){const t=new Map;return(...r)=>{const n=JSON.stringify(r);if(t.has(n))return t.get(n);const i=e(...r);return t.set(n,i),i}}((function(e){const t=document.createElement("div").style,r={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:e.toString(10),"z-index":e.toString(10),top:"0",left:"0"};for(const e in r){const n=r[e];t.setProperty(e,n)}return t}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{animate:()=>f,calcExactPositionOrRandomFromSize:()=>k,calcExactPositionOrRandomFromSizeRanged:()=>R,calcPositionFromSize:()=>P,calcPositionOrRandomFromSize:()=>C,calcPositionOrRandomFromSizeRanged:()=>A,cancelAnimation:()=>h,clamp:()=>d,collisionVelocity:()=>T,degToRad:()=>w,getDistance:()=>E,getDistances:()=>_,getParticleBaseVelocity:()=>O,getParticleDirectionAngle:()=>x,getRandom:()=>l,getRangeMax:()=>b,getRangeMin:()=>v,getRangeValue:()=>g,mix:()=>m,parseAlpha:()=>I,randomInRange:()=>y,setAnimationFunctions:()=>p,setRandom:()=>u,setRangeValue:()=>S});var n=r(699),i=r(696),o=r(700),a=r(701);let s=Math.random;const c={nextFrame:e=>requestAnimationFrame(e),cancel:e=>cancelAnimationFrame(e)};function u(e=Math.random){s=e}function l(){return d(s(),0,1-Number.EPSILON)}function p(e,t){c.nextFrame=t=>e(t),c.cancel=e=>t(e)}function f(e){return c.nextFrame(e)}function h(e){c.cancel(e)}function d(e,t,r){return Math.min(Math.max(e,t),r)}function m(e,t,r,n){return Math.floor((e*r+t*n)/(r+n))}function y(e){const t=b(e);let r=v(e);return t===r&&(r=0),l()*(t-r)+r}function g(e){return(0,a.isNumber)(e)?e:y(e)}function v(e){return(0,a.isNumber)(e)?e:e.min}function b(e){return(0,a.isNumber)(e)?e:e.max}function S(e,t){if(e===t||void 0===t&&(0,a.isNumber)(e))return e;const r=v(e),n=b(e);return void 0!==t?{min:Math.min(r,t),max:Math.max(n,t)}:S(r,n)}function _(e,t){const r=e.x-t.x,n=e.y-t.y;return{dx:r,dy:n,distance:Math.sqrt(r**2+n**2)}}function E(e,t){return _(e,t).distance}function w(e){return e*Math.PI/180}function x(e,t,r){if((0,a.isNumber)(e))return w(e);switch(e){case n.MoveDirection.top:return-Math.PI*i.half;case n.MoveDirection.topRight:return-Math.PI*i.quarter;case n.MoveDirection.right:return i.empty;case n.MoveDirection.bottomRight:return Math.PI*i.quarter;case n.MoveDirection.bottom:return Math.PI*i.half;case n.MoveDirection.bottomLeft:return Math.PI*i.threeQuarter;case n.MoveDirection.left:return Math.PI;case n.MoveDirection.topLeft:return-Math.PI*i.threeQuarter;case n.MoveDirection.inside:return Math.atan2(r.y-t.y,r.x-t.x);case n.MoveDirection.outside:return Math.atan2(t.y-r.y,t.x-r.x);default:return l()*i.doublePI}}function O(e){const t=o.Vector.origin;return t.length=1,t.angle=e,t}function T(e,t,r,n){return o.Vector.create(e.x*(r-n)/(r+n)+t.x*i.double*n/(r+n),e.y)}function P(e){return void 0!==e.position?.x&&void 0!==e.position.y?{x:e.position.x*e.size.width/i.percentDenominator,y:e.position.y*e.size.height/i.percentDenominator}:void 0}function C(e){return{x:(e.position?.x??l()*i.percentDenominator)*e.size.width/i.percentDenominator,y:(e.position?.y??l()*i.percentDenominator)*e.size.height/i.percentDenominator}}function A(e){const t={x:void 0!==e.position?.x?g(e.position.x):void 0,y:void 0!==e.position?.y?g(e.position.y):void 0};return C({size:e.size,position:t})}function k(e){return{x:e.position?.x??l()*e.size.width,y:e.position?.y??l()*e.size.height}}function R(e){const t={x:void 0!==e.position?.x?g(e.position.x):void 0,y:void 0!==e.position?.y?g(e.position.y):void 0};return k({size:e.size,position:t})}function I(e){return e?e.endsWith("%")?parseFloat(e)/i.percentDenominator:parseFloat(e):1}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{MoveDirection:()=>n}),function(e){e.bottom="bottom",e.bottomLeft="bottom-left",e.bottomRight="bottom-right",e.left="left",e.none="none",e.right="right",e.top="top",e.topLeft="top-left",e.topRight="top-right",e.outside="outside",e.inside="inside"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Vector:()=>a,Vector3d:()=>o});var n=r(696),i=r(701);class o{constructor(e,t,r){if(this._updateFromAngle=(e,t)=>{this.x=Math.cos(e)*t,this.y=Math.sin(e)*t},!(0,i.isNumber)(e)&&e){this.x=e.x,this.y=e.y;const t=e;this.z=t.z?t.z:n.originPoint.z}else{if(void 0===e||void 0===t)throw new Error(`${n.errorPrefix} Vector3d not initialized correctly`);this.x=e,this.y=t,this.z=r??n.originPoint.z}}static get origin(){return o.create(n.originPoint.x,n.originPoint.y,n.originPoint.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return o.create(e.x,e.y,e.z)}static create(e,t,r){return new o(e,t,r)}add(e){return o.create(this.x+e.x,this.y+e.y,this.z+e.z)}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=e.z}copy(){return o.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}div(e){return o.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**n.squareExp+this.y**n.squareExp}mult(e){return o.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){const e=this.length;e!=n.none&&this.multTo(n.inverseFactorNumerator/e)}rotate(e){return o.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),n.originPoint.z)}setTo(e){this.x=e.x,this.y=e.y;const t=e;this.z=t.z?t.z:n.originPoint.z}sub(e){return o.create(this.x-e.x,this.y-e.y,this.z-e.z)}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=e.z}}class a extends o{constructor(e,t){super(e,t,n.originPoint.z)}static get origin(){return a.create(n.originPoint.x,n.originPoint.y)}static clone(e){return a.create(e.x,e.y)}static create(e,t){return new a(e,t)}}},(e,t,r)=>{"use strict";function n(e){return"boolean"==typeof e}function i(e){return"string"==typeof e}function o(e){return"number"==typeof e}function a(e){return"function"==typeof e}function s(e){return"object"==typeof e&&null!==e}function c(e){return Array.isArray(e)}function u(e){return null==e}r.r(t),r.d(t,{isArray:()=>c,isBoolean:()=>n,isFunction:()=>a,isNull:()=>u,isNumber:()=>o,isObject:()=>s,isString:()=>i})},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{AnimationMode:()=>n}),function(e){e.auto="auto",e.increase="increase",e.decrease="decrease",e.random="random"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{AnimationStatus:()=>n}),function(e){e.increasing="increasing",e.decreasing="decreasing"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{DestroyType:()=>n}),function(e){e.none="none",e.max="max",e.min="min"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{OutModeDirection:()=>n}),function(e){e.bottom="bottom",e.left="left",e.right="right",e.top="top"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{PixelMode:()=>n}),function(e){e.precise="precise",e.percent="percent"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{StartValueType:()=>n}),function(e){e.max="max",e.min="min",e.random="random"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Container:()=>m});var n=r(698),i=r(696),o=r(697),a=r(709),s=r(713),c=r(715),u=r(716),l=r(774),p=r(783),f=r(737);function h(e){return e&&!e.destroyed}function d(e,t,...r){const n=new u.Options(e,t);return(0,f.loadOptions)(n,...r),n}class m{constructor(e,t,r){this._intersectionManager=e=>{if(h(this)&&this.actualOptions.pauseOnOutsideViewport)for(const t of e)t.target===this.interactivity.element&&(t.isIntersecting?this.play():this.pause())},this._nextFrame=e=>{try{if(!this._smooth&&void 0!==this._lastFrameTime&&e<this._lastFrameTime+i.millisecondsToSeconds/this.fpsLimit)return void this.draw(!1);this._lastFrameTime??=e;const t=function(e,t=i.defaultFps,r=!1){return{value:e,factor:r?i.defaultFps/t:i.defaultFps*e/i.millisecondsToSeconds}}(e-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(t.value),this._lastFrameTime=e,t.value>i.millisecondsToSeconds)return void this.draw(!1);if(this.particles.draw(t),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(e){(0,o.getLogger)().error(`${i.errorPrefix} in animation loop`,e)}},this._engine=e,this.id=Symbol(t),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._clickHandlers=new Map,this._sourceOptions=r,this._initialSourceOptions=r,this.retina=new p.Retina(this),this.canvas=new a.Canvas(this,this._engine),this.particles=new l.Particles(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=d(this._engine,this),this.actualOptions=d(this._engine,this),this._eventListeners=new s.EventListeners(this),this._intersectionObserver=(0,o.safeIntersectionObserver)((e=>this._intersectionManager(e))),this._engine.dispatchEvent(c.EventType.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&h(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(e){if(!h(this))return;const t=this.interactivity.element;if(!t)return;const r=(t,r,n)=>{if(!h(this))return;const i=this.retina.pixelRatio,o={x:r.x*i,y:r.y*i},a=this.particles.quadTree.queryCircle(o,n*i);e(t,a)};let n=!1,o=!1;this._clickHandlers.set("click",(e=>{if(!h(this))return;const t=e,n={x:t.offsetX||t.clientX,y:t.offsetY||t.clientY};r(e,n,i.clickRadius)})),this._clickHandlers.set("touchstart",(()=>{h(this)&&(n=!0,o=!1)})),this._clickHandlers.set("touchmove",(()=>{h(this)&&(o=!0)})),this._clickHandlers.set("touchend",(e=>{if(h(this)){if(n&&!o){const t=e;let n=t.touches[t.touches.length-i.touchEndLengthOffset];if(!n&&(n=t.changedTouches[t.changedTouches.length-i.touchEndLengthOffset],!n))return;const o=this.canvas.element,a=o?o.getBoundingClientRect():void 0,s={x:n.clientX-(a?a.left:i.minCoordinate),y:n.clientY-(a?a.top:i.minCoordinate)};r(e,s,Math.max(n.radiusX,n.radiusY))}n=!1,o=!1}})),this._clickHandlers.set("touchcancel",(()=>{h(this)&&(n=!1,o=!1)}));for(const[e,r]of this._clickHandlers)t.addEventListener(e,r)}addLifeTime(e){this._lifeTime+=e}addPath(e,t,r=!1){return!(!h(this)||!r&&this.pathGenerators.has(e))&&(this.pathGenerators.set(e,t),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){if(h(this)){for(const[e,t]of this._clickHandlers)this.interactivity.element?.removeEventListener(e,t);this._clickHandlers.clear()}}destroy(e=!0){if(h(this)){this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy();for(const e of this.effectDrawers.values())e.destroy?.(this);for(const e of this.shapeDrawers.values())e.destroy?.(this);for(const e of this.effectDrawers.keys())this.effectDrawers.delete(e);for(const e of this.shapeDrawers.keys())this.shapeDrawers.delete(e);if(this._engine.clearPlugins(this),this.destroyed=!0,e){const e=this._engine.items,t=e.findIndex((e=>e===this));t>=i.removeMinIndex&&e.splice(t,i.removeDeleteCount)}this._engine.dispatchEvent(c.EventType.containerDestroyed,{container:this})}}draw(e){if(!h(this))return;let t=e;const r=e=>{t&&(this._lastFrameTime=void 0,t=!1),this._nextFrame(e)};this._drawAnimationFrame=(0,n.animate)((e=>r(e)))}async export(e,t={}){for(const r of this.plugins.values()){if(!r.export)continue;const n=await r.export(e,t);if(n.supported)return n.blob}(0,o.getLogger)().error(`${i.errorPrefix} - Export plugin with type ${e} not found`)}handleClickMode(e){if(h(this)){this.particles.handleClickMode(e);for(const t of this.plugins.values())t.handleClickMode?.(e)}}async init(){if(!h(this))return;const e=this._engine.getSupportedEffects();for(const t of e){const e=this._engine.getEffectDrawer(t);e&&this.effectDrawers.set(t,e)}const t=this._engine.getSupportedShapes();for(const e of t){const t=this._engine.getShapeDrawer(e);t&&this.shapeDrawers.set(e,t)}await this.particles.initPlugins(),this._options=d(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=d(this._engine,this,this._options);const r=await this._engine.getAvailablePlugins(this);for(const[e,t]of r)this.plugins.set(e,t);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{zLayers:o,duration:a,delay:s,fpsLimit:u,smooth:l}=this.actualOptions;this.zLayers=o,this._duration=(0,n.getRangeValue)(a)*i.millisecondsToSeconds,this._delay=(0,n.getRangeValue)(s)*i.millisecondsToSeconds,this._lifeTime=0,this.fpsLimit=u>i.minFpsLimit?u:i.defaultFpsLimit,this._smooth=l;for(const e of this.effectDrawers.values())await(e.init?.(this));for(const e of this.shapeDrawers.values())await(e.init?.(this));for(const e of this.plugins.values())await(e.init?.());this._engine.dispatchEvent(c.EventType.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity();for(const e of this.plugins.values())e.particlesSetup?.();this._engine.dispatchEvent(c.EventType.particlesSetup,{container:this})}async loadTheme(e){h(this)&&(this._currentTheme=e,await this.refresh())}pause(){if(h(this)&&(void 0!==this._drawAnimationFrame&&((0,n.cancelAnimation)(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const e of this.plugins.values())e.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(c.EventType.containerPaused,{container:this})}}play(e){if(!h(this))return;const t=this._paused||e;if(!this._firstStart||this.actualOptions.autoPlay){if(this._paused&&(this._paused=!1),t)for(const e of this.plugins.values())e.play&&e.play();this._engine.dispatchEvent(c.EventType.containerPlay,{container:this}),this.draw(t??!1)}else this._firstStart=!1}async refresh(){if(h(this))return this.stop(),this.start()}async reset(e){if(h(this))return this._initialSourceOptions=e,this._sourceOptions=e,this._options=d(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=d(this._engine,this,this._options),this.refresh()}async start(){h(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise((e=>{const t=async()=>{this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const e of this.plugins.values())await(e.start?.());this._engine.dispatchEvent(c.EventType.containerStarted,{container:this}),this.play(),e()};this._delayTimeout=setTimeout((()=>{t()}),this._delay)})))}stop(){if(h(this)&&this.started){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element);for(const e of this.plugins.values())e.stop?.();for(const e of this.plugins.keys())this.plugins.delete(e);this._sourceOptions=this._options,this._engine.dispatchEvent(c.EventType.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const e=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth!==e&&(this._responsiveMaxWidth=e,!0)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Canvas:()=>u});var n=r(710),i=r(697),o=r(696),a=r(712);function s(e,t,r){const n=t[r];void 0!==n&&(e[r]=(e[r]??o.defaultTransformValue)*n)}function c(e,t,r=!1){if(!t)return;if(!e)return;const n=e.style;if(!n)return;const i=new Set;for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&i.add(n[e]);for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&i.add(t[e]);for(const e of i){const i=t.getPropertyValue(e);i?n.setProperty(e,i,r?"important":""):n.removeProperty(e)}}class u{constructor(e,t){this.container=e,this._applyPostDrawUpdaters=e=>{for(const t of this._postDrawUpdaters)t.afterDraw?.(e)},this._applyPreDrawUpdaters=(e,t,r,n,i,o)=>{for(const a of this._preDrawUpdaters){if(a.getColorStyles){const{fill:o,stroke:s}=a.getColorStyles(t,e,r,n);o&&(i.fill=o),s&&(i.stroke=s)}if(a.getTransformValues){const e=a.getTransformValues(t);for(const t in e)s(o,e,t)}a.beforeDraw?.(t)}},this._applyResizePlugins=()=>{for(const e of this._resizePlugins)e.resize?.()},this._getPluginParticleColors=e=>{let t,r;for(const n of this._colorPlugins)if(!t&&n.particleFillColor&&(t=(0,a.rangeColorToHsl)(this._engine,n.particleFillColor(e))),!r&&n.particleStrokeColor&&(r=(0,a.rangeColorToHsl)(this._engine,n.particleStrokeColor(e))),t&&r)break;return[t,r]},this._initCover=async()=>{const e=this.container.actualOptions.backgroundMask.cover,t=e.color;if(t){const r=(0,a.rangeColorToRgb)(this._engine,t);if(r){const t={...r,a:e.opacity};this._coverColorStyle=(0,a.getStyleFromRgb)(t,t.a)}}else await new Promise(((t,r)=>{if(!e.image)return;const n=document.createElement("img");n.addEventListener("load",(()=>{this._coverImage={image:n,opacity:e.opacity},t()})),n.addEventListener("error",(e=>{r(e.error)})),n.src=e.image}))},this._initStyle=()=>{const e=this.element,t=this.container.actualOptions;if(e){this._fullScreen?this._setFullScreenStyle():this._resetOriginalStyle();for(const r in t.style){if(!r||!t.style||!Object.prototype.hasOwnProperty.call(t.style,r))continue;const n=t.style[r];n&&e.style.setProperty(r,n,"important")}}},this._initTrail=async()=>{const e=this.container.actualOptions.particles.move.trail,t=e.fill;if(!e.enable)return;const r=o.inverseFactorNumerator/e.length;if(t.color){const e=(0,a.rangeColorToRgb)(this._engine,t.color);if(!e)return;this._trailFill={color:{...e},opacity:r}}else await new Promise(((e,n)=>{if(!t.image)return;const i=document.createElement("img");i.addEventListener("load",(()=>{this._trailFill={image:i,opacity:r},e()})),i.addEventListener("error",(e=>{n(e.error)})),i.src=t.image}))},this._paintBase=e=>{this.draw((t=>(0,n.paintBase)(t,this.size,e)))},this._paintImage=(e,t)=>{this.draw((r=>(0,n.paintImage)(r,this.size,e,t)))},this._repairStyle=()=>{const e=this.element;e&&(this._safeMutationObserver((e=>e.disconnect())),this._initStyle(),this.initBackground(),this._safeMutationObserver((t=>{e&&e instanceof Node&&t.observe(e,{attributes:!0})})))},this._resetOriginalStyle=()=>{const e=this.element,t=this._originalStyle;e&&t&&c(e,t,!0)},this._safeMutationObserver=e=>{this._mutationObserver&&e(this._mutationObserver)},this._setFullScreenStyle=()=>{const e=this.element;e&&c(e,(0,i.getFullScreenStyle)(this.container.actualOptions.fullScreen.zIndex),!0)},this._engine=t,this._standardSize={height:0,width:0};const r=e.retina.pixelRatio,u=this._standardSize;this.size={height:u.height*r,width:u.width*r},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const e=this.container.actualOptions,t=e.particles.move.trail,r=this._trailFill;e.backgroundMask.enable?this.paint():t.enable&&t.length>o.minimumLength&&r?r.color?this._paintBase((0,a.getStyleFromRgb)(r.color,r.opacity)):r.image&&this._paintImage(r.image,r.opacity):e.clear&&this.draw((e=>{(0,n.clear)(e,this.size)}))}destroy(){if(this.stop(),this._generated){const e=this.element;e?.remove(),this.element=void 0}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(e){const t=this._context;if(t)return e(t)}drawAsync(e){const t=this._context;if(t)return e(t)}drawParticle(e,t){if(e.spawning||e.destroyed)return;const r=e.getRadius();if(r<=o.minimumSize)return;const i=e.getFillColor(),s=e.getStrokeColor()??i;let[c,u]=this._getPluginParticleColors(e);c||(c=i),u||(u=s),(c||u)&&this.draw((i=>{const s=this.container,l=s.actualOptions,p=e.options.zIndex,f=o.zIndexFactorOffset-e.zIndexFactor,h=f**p.opacityRate,d=e.bubble.opacity??e.opacity?.value??o.defaultOpacity,m=d*h,y=(e.strokeOpacity??d)*h,g={},v={fill:c?(0,a.getStyleFromHsl)(c,m):void 0};v.stroke=u?(0,a.getStyleFromHsl)(u,y):v.fill,this._applyPreDrawUpdaters(i,e,r,m,v,g),(0,n.drawParticle)({container:s,context:i,particle:e,delta:t,colorStyles:v,backgroundMask:l.backgroundMask.enable,composite:l.backgroundMask.composite,radius:r*f**p.sizeRate,opacity:m,shadow:e.options.shadow,transform:g}),this._applyPostDrawUpdaters(e)}))}drawParticlePlugin(e,t,r){this.draw((i=>(0,n.drawParticlePlugin)(i,e,t,r)))}drawPlugin(e,t){this.draw((r=>(0,n.drawPlugin)(r,e,t)))}async init(){this._safeMutationObserver((e=>e.disconnect())),this._mutationObserver=(0,i.safeMutationObserver)((e=>{for(const t of e)"attributes"===t.type&&"style"===t.attributeName&&this._repairStyle()})),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(e){(0,i.getLogger)().error(e)}this.initBackground(),this._safeMutationObserver((e=>{this.element&&this.element instanceof Node&&e.observe(this.element,{attributes:!0})})),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const e=this.container.actualOptions.background,t=this.element;if(!t)return;const r=t.style;if(r){if(e.color){const t=(0,a.rangeColorToRgb)(this._engine,e.color);r.backgroundColor=t?(0,a.getStyleFromRgb)(t,e.opacity):""}else r.backgroundColor="";r.backgroundImage=e.image||"",r.backgroundPosition=e.position||"",r.backgroundRepeat=e.repeat||"",r.backgroundSize=e.size||""}}initPlugins(){this._resizePlugins=[];for(const e of this.container.plugins.values())e.resize&&this._resizePlugins.push(e),(e.particleFillColor??e.particleStrokeColor)&&this._colorPlugins.push(e)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const e of this.container.particles.updaters)e.afterDraw&&this._postDrawUpdaters.push(e),(e.getColorStyles??e.getTransformValues??e.beforeDraw)&&this._preDrawUpdaters.push(e)}loadCanvas(e){this._generated&&this.element&&this.element.remove(),this._generated=e.dataset&&o.generatedAttribute in e.dataset?"true"===e.dataset[o.generatedAttribute]:this._generated,this.element=e,this.element.ariaHidden="true",this._originalStyle=(0,i.cloneStyle)(this.element.style);const t=this._standardSize;t.height=e.offsetHeight,t.width=e.offsetWidth;const r=this.container.retina.pixelRatio,n=this.size;e.height=n.height=t.height*r,e.width=n.width=t.width*r,this._context=this.element.getContext("2d"),this._safeMutationObserver((e=>e.disconnect())),this.container.retina.init(),this.initBackground(),this._safeMutationObserver((e=>{this.element&&this.element instanceof Node&&e.observe(this.element,{attributes:!0})}))}paint(){const e=this.container.actualOptions;this.draw((t=>{e.backgroundMask.enable&&e.backgroundMask.cover?((0,n.clear)(t,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()}))}resize(){if(!this.element)return!1;const e=this.container,t=e.canvas._standardSize,r={width:this.element.offsetWidth,height:this.element.offsetHeight},n=e.retina.pixelRatio,i={width:r.width*n,height:r.height*n};if(r.height===t.height&&r.width===t.width&&i.height===this.element.height&&i.width===this.element.width)return!1;const o={...t};t.height=r.height,t.width=r.width;const a=this.size;return this.element.width=a.width=i.width,this.element.height=a.height=i.height,this.container.started&&e.particles.setResizeFactor({width:t.width/o.width,height:t.height/o.height}),!0}stop(){this._safeMutationObserver((e=>e.disconnect())),this._mutationObserver=void 0,this.draw((e=>(0,n.clear)(e,this.size)))}async windowResize(){if(!this.element||!this.resize())return;const e=this.container,t=e.updateActualOptions();e.particles.setDensity(),this._applyResizePlugins(),t&&await e.refresh()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{alterHsl:()=>y,clear:()=>u,drawEffect:()=>p,drawLine:()=>a,drawParticle:()=>l,drawParticlePlugin:()=>m,drawPlugin:()=>d,drawShape:()=>f,drawShapeAfterDraw:()=>h,paintBase:()=>s,paintImage:()=>c});var n=r(696),i=r(711),o=r(712);function a(e,t,r){e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(r.x,r.y),e.closePath()}function s(e,t,r){e.fillStyle=r??"rgba(0,0,0,0)",e.fillRect(n.originPoint.x,n.originPoint.y,t.width,t.height)}function c(e,t,r,i){r&&(e.globalAlpha=i,e.drawImage(r,n.originPoint.x,n.originPoint.y,t.width,t.height),e.globalAlpha=1)}function u(e,t){e.clearRect(n.originPoint.x,n.originPoint.y,t.width,t.height)}function l(e){const{container:t,context:r,particle:i,delta:a,colorStyles:s,backgroundMask:c,composite:u,radius:l,opacity:d,shadow:m,transform:y}=e,g=i.getPosition(),v=i.rotation+(i.pathRotation?i.velocity.angle:n.defaultAngle),b=Math.sin(v),S=Math.cos(v),_=!!v,E={a:S*(y.a??n.defaultTransform.a),b:_?b*(y.b??n.identity):y.b??n.defaultTransform.b,c:_?-b*(y.c??n.identity):y.c??n.defaultTransform.c,d:S*(y.d??n.defaultTransform.d)};r.setTransform(E.a,E.b,E.c,E.d,g.x,g.y),c&&(r.globalCompositeOperation=u);const w=i.shadowColor;m.enable&&w&&(r.shadowBlur=m.blur,r.shadowColor=(0,o.getStyleFromRgb)(w),r.shadowOffsetX=m.offset.x,r.shadowOffsetY=m.offset.y),s.fill&&(r.fillStyle=s.fill);const x=i.strokeWidth??n.minStrokeWidth;r.lineWidth=x,s.stroke&&(r.strokeStyle=s.stroke);const O={container:t,context:r,particle:i,radius:l,opacity:d,delta:a,transformData:E,strokeWidth:x};f(O),h(O),p(O),r.globalCompositeOperation="source-over",r.resetTransform()}function p(e){const{container:t,context:r,particle:n,radius:i,opacity:o,delta:a,transformData:s}=e;if(!n.effect)return;const c=t.effectDrawers.get(n.effect);c&&c.draw({context:r,particle:n,radius:i,opacity:o,delta:a,pixelRatio:t.retina.pixelRatio,transformData:{...s}})}function f(e){const{container:t,context:r,particle:i,radius:o,opacity:a,delta:s,strokeWidth:c,transformData:u}=e;if(!i.shape)return;const l=t.shapeDrawers.get(i.shape);l&&(r.beginPath(),l.draw({context:r,particle:i,radius:o,opacity:a,delta:s,pixelRatio:t.retina.pixelRatio,transformData:{...u}}),i.shapeClose&&r.closePath(),c>n.minStrokeWidth&&r.stroke(),i.shapeFill&&r.fill())}function h(e){const{container:t,context:r,particle:n,radius:i,opacity:o,delta:a,transformData:s}=e;if(!n.shape)return;const c=t.shapeDrawers.get(n.shape);c?.afterDraw&&c.afterDraw({context:r,particle:n,radius:i,opacity:o,delta:a,pixelRatio:t.retina.pixelRatio,transformData:{...s}})}function d(e,t,r){t.draw&&t.draw(e,r)}function m(e,t,r,n){t.drawParticle&&t.drawParticle(e,r,n)}function y(e,t,r){return{h:e.h,s:e.s,l:e.l+(t===i.AlterType.darken?-n.lFactor:n.lFactor)*r}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{AlterType:()=>n}),function(e){e.darken="darken",e.enlighten="enlighten"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{colorMix:()=>_,colorToHsl:()=>p,colorToRgb:()=>l,getHslAnimationFromHsl:()=>O,getHslFromAnimation:()=>x,getLinkColor:()=>E,getLinkRandomColor:()=>w,getRandomRgbColor:()=>v,getStyleFromHsl:()=>S,getStyleFromRgb:()=>b,hslToRgb:()=>y,hslaToRgba:()=>g,rangeColorToHsl:()=>f,rangeColorToRgb:()=>u,rgbToHsl:()=>h,stringToAlpha:()=>d,stringToRgb:()=>m,updateColor:()=>C,updateColorValue:()=>P});var n=r(698),i=r(696),o=r(701),a=r(703),s=r(697);function c(e,t){if(t)for(const r of e.colorManagers.values())if(t.startsWith(r.stringPrefix))return r.parseString(t)}function u(e,t,r,n=!0){if(!t)return;const i=(0,o.isString)(t)?{value:t}:t;if((0,o.isString)(i.value))return l(e,i.value,r,n);if((0,o.isArray)(i.value))return u(e,{value:(0,s.itemFromArray)(i.value,r,n)});for(const t of e.colorManagers.values()){const e=t.handleRangeColor(i);if(e)return e}}function l(e,t,r,n=!0){if(!t)return;const a=(0,o.isString)(t)?{value:t}:t;if((0,o.isString)(a.value))return a.value===i.randomColorValue?v():m(e,a.value);if((0,o.isArray)(a.value))return l(e,{value:(0,s.itemFromArray)(a.value,r,n)});for(const t of e.colorManagers.values()){const e=t.handleColor(a);if(e)return e}}function p(e,t,r,n=!0){const i=l(e,t,r,n);return i?h(i):void 0}function f(e,t,r,n=!0){const i=u(e,t,r,n);return i?h(i):void 0}function h(e){const t=e.r/i.rgbMax,r=e.g/i.rgbMax,n=e.b/i.rgbMax,o=Math.max(t,r,n),a=Math.min(t,r,n),s={h:i.hMin,l:(o+a)*i.half,s:i.sMin};return o!==a&&(s.s=s.l<i.half?(o-a)/(o+a):(o-a)/(i.double-o-a),s.h=t===o?(r-n)/(o-a):s.h=r===o?i.double+(n-t)/(o-a):i.double*i.double+(t-r)/(o-a)),s.l*=i.lMax,s.s*=i.sMax,s.h*=i.hPhase,s.h<i.hMin&&(s.h+=i.hMax),s.h>=i.hMax&&(s.h-=i.hMax),s}function d(e,t){return c(e,t)?.a}function m(e,t){return c(e,t)}function y(e){const t=(e.h%i.hMax+i.hMax)%i.hMax,r=Math.max(i.sMin,Math.min(i.sMax,e.s)),n=Math.max(i.lMin,Math.min(i.lMax,e.l)),o=t/i.hMax,a=r/i.sMax,s=n/i.lMax;if(r===i.sMin){const e=Math.round(s*i.rgbFactor);return{r:e,g:e,b:e}}const c=(e,t,r)=>{if(r<0&&r++,r>1&&r--,r*i.sextuple<1)return e+(t-e)*i.sextuple*r;if(r*i.double<1)return t;if(r*i.triple<1*i.double){return e+(t-e)*(i.double/i.triple-r)*i.sextuple}return e},u=s<i.half?s*(i.sNormalizedOffset+a):s+a-s*a,l=i.double*s-u,p=i.phaseNumerator/i.triple,f=Math.min(i.rgbFactor,i.rgbFactor*c(l,u,o+p)),h=Math.min(i.rgbFactor,i.rgbFactor*c(l,u,o)),d=Math.min(i.rgbFactor,i.rgbFactor*c(l,u,o-p));return{r:Math.round(f),g:Math.round(h),b:Math.round(d)}}function g(e){const t=y(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function v(e){const t=e??i.defaultRgbMin,r=i.rgbMax+i.identity;return{b:Math.floor((0,n.randomInRange)((0,n.setRangeValue)(t,r))),g:Math.floor((0,n.randomInRange)((0,n.setRangeValue)(t,r))),r:Math.floor((0,n.randomInRange)((0,n.setRangeValue)(t,r)))}}function b(e,t){return`rgba(${e.r}, ${e.g}, ${e.b}, ${t??i.defaultOpacity})`}function S(e,t){return`hsla(${e.h}, ${e.s}%, ${e.l}%, ${t??i.defaultOpacity})`}function _(e,t,r,i){let o=e,a=t;return void 0===o.r&&(o=y(e)),void 0===a.r&&(a=y(t)),{b:(0,n.mix)(o.b,a.b,r,i),g:(0,n.mix)(o.g,a.g,r,i),r:(0,n.mix)(o.r,a.r,r,i)}}function E(e,t,r){if(r===i.randomColorValue)return v();if(r!==i.midColorValue)return r;{const r=e.getFillColor()??e.getStrokeColor(),n=t?.getFillColor()??t?.getStrokeColor();if(r&&n&&t)return _(r,n,e.getRadius(),t.getRadius());{const e=r??n;if(e)return y(e)}}}function w(e,t,r,n){const a=(0,o.isString)(t)?t:t.value;return a===i.randomColorValue?n?u(e,{value:a}):r?i.randomColorValue:i.midColorValue:a===i.midColorValue?i.midColorValue:u(e,{value:a})}function x(e){return void 0!==e?{h:e.h.value,s:e.s.value,l:e.l.value}:void 0}function O(e,t,r){const n={h:{enable:!1,value:e.h},s:{enable:!1,value:e.s},l:{enable:!1,value:e.l}};return t&&(T(n.h,t.h,r),T(n.s,t.s,r),T(n.l,t.l,r)),n}function T(e,t,r){e.enable=t.enable,e.enable?(e.velocity=(0,n.getRangeValue)(t.speed)/i.percentDenominator*r,e.decay=i.decayOffset-(0,n.getRangeValue)(t.decay),e.status=a.AnimationStatus.increasing,e.loops=i.defaultLoops,e.maxLoops=(0,n.getRangeValue)(t.count),e.time=i.defaultTime,e.delayTime=(0,n.getRangeValue)(t.delay)*i.millisecondsToSeconds,t.sync||(e.velocity*=(0,n.getRandom)(),e.value*=(0,n.getRandom)()),e.initialValue=e.value,e.offset=(0,n.setRangeValue)(t.offset)):e.velocity=i.defaultVelocity}function P(e,t,r,i){if(!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;if(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=i.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0))return;const o=e.offset?(0,n.randomInRange)(e.offset):0,s=(e.velocity??0)*i.factor+3.6*o,c=e.decay??1,u=(0,n.getRangeMax)(t),l=(0,n.getRangeMin)(t);if(r&&e.status!==a.AnimationStatus.increasing){e.value-=s;const t=0;e.value<t&&(e.loops||(e.loops=0),e.loops++,e.status=a.AnimationStatus.increasing)}else e.value+=s,e.value>u&&(e.loops||(e.loops=0),e.loops++,r?e.status=a.AnimationStatus.decreasing:e.value-=u);e.velocity&&1!==c&&(e.velocity*=c),e.value=(0,n.clamp)(e.value,l,u)}function C(e,t){if(!e)return;const{h:r,s:n,l:i}=e,o={min:0,max:100},a={min:0,max:100};r&&P(r,{min:0,max:360},!1,t),n&&P(n,o,!0,t),i&&P(i,a,!0,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EventListeners:()=>c});var n=r(696),i=r(697),o=r(714),a=r(701);function s(e,t,r,n,i){if(n){let n={passive:!0};(0,a.isBoolean)(i)?n.capture=i:void 0!==i&&(n=i),e.addEventListener(t,r,n)}else{const n=i;e.removeEventListener(t,r,n)}}class c{constructor(e){this.container=e,this._doMouseTouchClick=e=>{const t=this.container,r=t.actualOptions;if(this._canPush){const e=t.interactivity.mouse,n=e.position;if(!n)return;e.clickPosition={...n},e.clickTime=(new Date).getTime();const o=r.interactivity.events.onClick;(0,i.executeOnSingleOrMultiple)(o.mode,(e=>this.container.handleClickMode(e)))}"touchend"===e.type&&setTimeout((()=>this._mouseTouchFinish()),n.touchDelay)},this._handleThemeChange=e=>{const t=e,r=this.container,n=r.options,i=n.defaultThemes,o=t.matches?i.dark:i.light,a=n.themes.find((e=>e.name===o));a?.default.auto&&r.loadTheme(o)},this._handleVisibilityChange=()=>{const e=this.container,t=e.actualOptions;this._mouseTouchFinish(),t.pauseOnBlur&&(document?.hidden?(e.pageHidden=!0,e.pause()):(e.pageHidden=!1,e.animationStatus?e.play(!0):e.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const e=async()=>{const e=this.container.canvas;await(e?.windowResize())};this._resizeTimeout=setTimeout((()=>{e()}),this.container.actualOptions.interactivity.events.resize.delay*n.millisecondsToSeconds)},this._manageInteractivityListeners=(e,t)=>{const r=this._handlers,i=this.container,o=i.actualOptions,a=i.interactivity.element;if(!a)return;const c=a,u=i.canvas.element;u&&(u.style.pointerEvents=c===u?"initial":"none"),(o.interactivity.events.onHover.enable||o.interactivity.events.onClick.enable)&&(s(a,n.mouseMoveEvent,r.mouseMove,t),s(a,n.touchStartEvent,r.touchStart,t),s(a,n.touchMoveEvent,r.touchMove,t),o.interactivity.events.onClick.enable?(s(a,n.touchEndEvent,r.touchEndClick,t),s(a,n.mouseUpEvent,r.mouseUp,t),s(a,n.mouseDownEvent,r.mouseDown,t)):s(a,n.touchEndEvent,r.touchEnd,t),s(a,e,r.mouseLeave,t),s(a,n.touchCancelEvent,r.touchCancel,t))},this._manageListeners=e=>{const t=this._handlers,r=this.container,i=r.actualOptions.interactivity.detectsOn,a=r.canvas.element;let c=n.mouseLeaveEvent;i===o.InteractivityDetect.window?(r.interactivity.element=window,c=n.mouseOutEvent):i===o.InteractivityDetect.parent&&a?r.interactivity.element=a.parentElement??a.parentNode:r.interactivity.element=a,this._manageMediaMatch(e),this._manageResize(e),this._manageInteractivityListeners(c,e),document&&s(document,n.visibilityChangeEvent,t.visibilityChange,e,!1)},this._manageMediaMatch=e=>{const t=this._handlers,r=(0,i.safeMatchMedia)("(prefers-color-scheme: dark)");r&&(void 0===r.addEventListener?void 0!==r.addListener&&(e?r.addListener(t.oldThemeChange):r.removeListener(t.oldThemeChange)):s(r,"change",t.themeChange,e))},this._manageResize=e=>{const t=this._handlers,r=this.container;if(!r.actualOptions.interactivity.events.resize)return;if("undefined"==typeof ResizeObserver)return void s(window,n.resizeEvent,t.resize,e);const i=r.canvas.element;this._resizeObserver&&!e?(i&&this._resizeObserver.unobserve(i),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&e&&i&&(this._resizeObserver=new ResizeObserver((e=>{e.find((e=>e.target===i))&&this._handleWindowResize()})),this._resizeObserver.observe(i))},this._mouseDown=()=>{const{interactivity:e}=this.container;if(!e)return;const{mouse:t}=e;t.clicking=!0,t.downPosition=t.position},this._mouseTouchClick=e=>{const t=this.container,r=t.actualOptions,{mouse:n}=t.interactivity;n.inside=!0;let i=!1;const o=n.position;if(o&&r.interactivity.events.onClick.enable){for(const e of t.plugins.values())if(e.clickPositionValid&&(i=e.clickPositionValid(o),i))break;i||this._doMouseTouchClick(e),n.clicking=!1}},this._mouseTouchFinish=()=>{const e=this.container.interactivity;if(!e)return;const t=e.mouse;delete t.position,delete t.clickPosition,delete t.downPosition,e.status=n.mouseLeaveEvent,t.inside=!1,t.clicking=!1},this._mouseTouchMove=e=>{const t=this.container,r=t.actualOptions,i=t.interactivity,a=t.canvas.element;if(!i?.element)return;let s;if(i.mouse.inside=!0,e.type.startsWith("pointer")){this._canPush=!0;const t=e;if(i.element===window){if(a){const e=a.getBoundingClientRect();s={x:t.clientX-e.left,y:t.clientY-e.top}}}else if(r.interactivity.detectsOn===o.InteractivityDetect.parent){const e=t.target,r=t.currentTarget;if(e&&r&&a){const i=e.getBoundingClientRect(),o=r.getBoundingClientRect(),c=a.getBoundingClientRect();s={x:t.offsetX+n.double*i.left-(o.left+c.left),y:t.offsetY+n.double*i.top-(o.top+c.top)}}else s={x:t.offsetX??t.clientX,y:t.offsetY??t.clientY}}else t.target===a&&(s={x:t.offsetX??t.clientX,y:t.offsetY??t.clientY})}else if(this._canPush="touchmove"!==e.type,a){const t=e,r=t.touches[t.touches.length-n.lengthOffset],i=a.getBoundingClientRect();s={x:r.clientX-(i.left??n.minCoordinate),y:r.clientY-(i.top??n.minCoordinate)}}const c=t.retina.pixelRatio;s&&(s.x*=c,s.y*=c),i.mouse.position=s,i.status=n.mouseMoveEvent},this._touchEnd=e=>{const t=e,r=Array.from(t.changedTouches);for(const e of r)this._touches.delete(e.identifier);this._mouseTouchFinish()},this._touchEndClick=e=>{const t=e,r=Array.from(t.changedTouches);for(const e of r)this._touches.delete(e.identifier);this._mouseTouchClick(e)},this._touchStart=e=>{const t=e,r=Array.from(t.changedTouches);for(const e of r)this._touches.set(e.identifier,performance.now());this._mouseTouchMove(e)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:e=>this._mouseTouchMove(e),mouseUp:e=>this._mouseTouchClick(e),touchStart:e=>this._touchStart(e),touchMove:e=>this._mouseTouchMove(e),touchEnd:e=>this._touchEnd(e),touchCancel:e=>this._touchEnd(e),touchEndClick:e=>this._touchEndClick(e),visibilityChange:()=>this._handleVisibilityChange(),themeChange:e=>this._handleThemeChange(e),oldThemeChange:e=>this._handleThemeChange(e),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{InteractivityDetect:()=>n}),function(e){e.canvas="canvas",e.parent="parent",e.window="window"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{EventType:()=>n}),function(e){e.configAdded="configAdded",e.containerInit="containerInit",e.particlesSetup="particlesSetup",e.containerStarted="containerStarted",e.containerStopped="containerStopped",e.containerDestroyed="containerDestroyed",e.containerPaused="containerPaused",e.containerPlay="containerPlay",e.containerBuilt="containerBuilt",e.particleAdded="particleAdded",e.particleDestroyed="particleDestroyed",e.particleRemoved="particleRemoved"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Options:()=>y});var n=r(697),i=r(701),o=r(717),a=r(719),s=r(721),c=r(722),u=r(731),l=r(732),p=r(733),f=r(734),h=r(736),d=r(737),m=r(698);class y{constructor(e,t){this._findDefaultTheme=e=>this.themes.find((t=>t.default.value&&t.default.mode===e))??this.themes.find((e=>e.default.value&&e.default.mode===h.ThemeMode.any)),this._importPreset=e=>{this.load(this._engine.getPreset(e))},this._engine=e,this._container=t,this.autoPlay=!0,this.background=new o.Background,this.backgroundMask=new a.BackgroundMask,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new s.FullScreen,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new c.Interactivity(e,t),this.manualParticles=[],this.particles=(0,d.loadParticlesOptions)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(e){if((0,i.isNull)(e))return;void 0!==e.preset&&(0,n.executeOnSingleOrMultiple)(e.preset,(e=>this._importPreset(e))),void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.clear&&(this.clear=e.clear),void 0!==e.key&&(this.key=e.key),void 0!==e.name&&(this.name=e.name),void 0!==e.delay&&(this.delay=(0,m.setRangeValue)(e.delay));const t=e.detectRetina;void 0!==t&&(this.detectRetina=t),void 0!==e.duration&&(this.duration=(0,m.setRangeValue)(e.duration));const r=e.fpsLimit;void 0!==r&&(this.fpsLimit=r),void 0!==e.pauseOnBlur&&(this.pauseOnBlur=e.pauseOnBlur),void 0!==e.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),void 0!==e.zLayers&&(this.zLayers=e.zLayers),this.background.load(e.background);const o=e.fullScreen;(0,i.isBoolean)(o)?this.fullScreen.enable=o:this.fullScreen.load(o),this.backgroundMask.load(e.backgroundMask),this.interactivity.load(e.interactivity),e.manualParticles&&(this.manualParticles=e.manualParticles.map((e=>{const t=new u.ManualParticle;return t.load(e),t}))),this.particles.load(e.particles),this.style=(0,n.deepExtend)(this.style,e.style),this._engine.loadOptions(this,e),void 0!==e.smooth&&(this.smooth=e.smooth);const a=this._engine.interactors.get(this._container);if(a)for(const t of a)t.loadOptions&&t.loadOptions(this,e);if(void 0!==e.responsive)for(const t of e.responsive){const e=new l.Responsive;e.load(t),this.responsive.push(e)}if(this.responsive.sort(((e,t)=>e.maxWidth-t.maxWidth)),void 0!==e.themes)for(const t of e.themes){const e=this.themes.find((e=>e.name===t.name));if(e)e.load(t);else{const e=new f.Theme;e.load(t),this.themes.push(e)}}this.defaultThemes.dark=this._findDefaultTheme(h.ThemeMode.dark)?.name,this.defaultThemes.light=this._findDefaultTheme(h.ThemeMode.light)?.name}setResponsive(e,t,r){this.load(r);const n=this.responsive.find((r=>r.mode===p.ResponsiveMode.screen&&screen?r.maxWidth>screen.availWidth:r.maxWidth*t>e));return this.load(n?.options),n?.maxWidth}setTheme(e){if(e){const t=this.themes.find((t=>t.name===e));t&&this.load(t.options)}else{const e=(0,n.safeMatchMedia)("(prefers-color-scheme: dark)"),t=e?.matches,r=this._findDefaultTheme(t?h.ThemeMode.dark:h.ThemeMode.light);r&&this.load(r.options)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Background:()=>o});var n=r(718),i=r(701);class o{constructor(){this.color=new n.OptionsColor,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){(0,i.isNull)(e)||(void 0!==e.color&&(this.color=n.OptionsColor.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image),void 0!==e.position&&(this.position=e.position),void 0!==e.repeat&&(this.repeat=e.repeat),void 0!==e.size&&(this.size=e.size),void 0!==e.opacity&&(this.opacity=e.opacity))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OptionsColor:()=>i});var n=r(701);class i{constructor(){this.value=""}static create(e,t){const r=new i;return r.load(e),void 0!==t&&((0,n.isString)(t)||(0,n.isArray)(t)?r.load({value:t}):r.load(t)),r}load(e){(0,n.isNull)(e)||(0,n.isNull)(e.value)||(this.value=e.value)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BackgroundMask:()=>o});var n=r(701),i=r(720);class o{constructor(){this.composite="destination-out",this.cover=new i.BackgroundMaskCover,this.enable=!1}load(e){if(!(0,n.isNull)(e)){if(void 0!==e.composite&&(this.composite=e.composite),void 0!==e.cover){const t=e.cover,r=(0,n.isString)(e.cover)?{color:e.cover}:e.cover;this.cover.load(void 0!==t.color||void 0!==t.image?t:{color:r})}void 0!==e.enable&&(this.enable=e.enable)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BackgroundMaskCover:()=>o});var n=r(718),i=r(701);class o{constructor(){this.opacity=1}load(e){(0,i.isNull)(e)||(void 0!==e.color&&(this.color=n.OptionsColor.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image),void 0!==e.opacity&&(this.opacity=e.opacity))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FullScreen:()=>i});var n=r(701);class i{constructor(){this.enable=!0,this.zIndex=0}load(e){(0,n.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.zIndex&&(this.zIndex=e.zIndex))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Interactivity:()=>s});var n=r(723),i=r(714),o=r(730),a=r(701);class s{constructor(e,t){this.detectsOn=i.InteractivityDetect.window,this.events=new n.Events,this.modes=new o.Modes(e,t)}load(e){if((0,a.isNull)(e))return;const t=e.detectsOn;void 0!==t&&(this.detectsOn=t),this.events.load(e.events),this.modes.load(e.modes)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Events:()=>u});var n=r(724),i=r(725),o=r(727),a=r(729),s=r(697),c=r(701);class u{constructor(){this.onClick=new n.ClickEvent,this.onDiv=new i.DivEvent,this.onHover=new o.HoverEvent,this.resize=new a.ResizeEvent}load(e){if((0,c.isNull)(e))return;this.onClick.load(e.onClick);const t=e.onDiv;void 0!==t&&(this.onDiv=(0,s.executeOnSingleOrMultiple)(t,(e=>{const t=new i.DivEvent;return t.load(e),t}))),this.onHover.load(e.onHover),this.resize.load(e.resize)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ClickEvent:()=>i});var n=r(701);class i{constructor(){this.enable=!1,this.mode=[]}load(e){(0,n.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.mode&&(this.mode=e.mode))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DivEvent:()=>o});var n=r(726),i=r(701);class o{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=n.DivType.circle}load(e){(0,i.isNull)(e)||(void 0!==e.selectors&&(this.selectors=e.selectors),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.type&&(this.type=e.type))}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{DivType:()=>n}),function(e){e.circle="circle",e.rectangle="rectangle"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HoverEvent:()=>o});var n=r(728),i=r(701);class o{constructor(){this.enable=!1,this.mode=[],this.parallax=new n.Parallax}load(e){(0,i.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.mode&&(this.mode=e.mode),this.parallax.load(e.parallax))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Parallax:()=>i});var n=r(701);class i{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(e){(0,n.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.force&&(this.force=e.force),void 0!==e.smooth&&(this.smooth=e.smooth))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ResizeEvent:()=>i});var n=r(701);class i{constructor(){this.delay=.5,this.enable=!0}load(e){(0,n.isNull)(e)||(void 0!==e.delay&&(this.delay=e.delay),void 0!==e.enable&&(this.enable=e.enable))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Modes:()=>i});var n=r(701);class i{constructor(e,t){this._engine=e,this._container=t}load(e){if((0,n.isNull)(e))return;if(!this._container)return;const t=this._engine.interactors.get(this._container);if(t)for(const r of t)r.loadModeOptions&&r.loadModeOptions(this,e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ManualParticle:()=>s});var n=r(706),i=r(697),o=r(701),a=r(696);class s{load(e){(0,o.isNull)(e)||(e.position&&(this.position={x:e.position.x??a.manualDefaultPosition,y:e.position.y??a.manualDefaultPosition,mode:e.position.mode??n.PixelMode.percent}),e.options&&(this.options=(0,i.deepExtend)({},e.options)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Responsive:()=>a});var n=r(733),i=r(697),o=r(701);class a{constructor(){this.maxWidth=1/0,this.options={},this.mode=n.ResponsiveMode.canvas}load(e){(0,o.isNull)(e)||((0,o.isNull)(e.maxWidth)||(this.maxWidth=e.maxWidth),(0,o.isNull)(e.mode)||(e.mode===n.ResponsiveMode.screen?this.mode=n.ResponsiveMode.screen:this.mode=n.ResponsiveMode.canvas),(0,o.isNull)(e.options)||(this.options=(0,i.deepExtend)({},e.options)))}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{ResponsiveMode:()=>n}),function(e){e.screen="screen",e.canvas="canvas"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Theme:()=>a});var n=r(735),i=r(697),o=r(701);class a{constructor(){this.name="",this.default=new n.ThemeDefault}load(e){(0,o.isNull)(e)||(void 0!==e.name&&(this.name=e.name),this.default.load(e.default),void 0!==e.options&&(this.options=(0,i.deepExtend)({},e.options)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ThemeDefault:()=>o});var n=r(736),i=r(701);class o{constructor(){this.auto=!1,this.mode=n.ThemeMode.any,this.value=!1}load(e){(0,i.isNull)(e)||(void 0!==e.auto&&(this.auto=e.auto),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{ThemeMode:()=>n}),function(e){e.any="any",e.dark="dark",e.light="light"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadOptions:()=>i,loadParticlesOptions:()=>o});var n=r(738);function i(e,...t){for(const r of t)e.load(r)}function o(e,t,...r){const o=new n.ParticlesOptions(e,t);return i(o,...r),o}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesOptions:()=>g});var n=r(697),i=r(739),o=r(743),a=r(750),s=r(751),c=r(762),u=r(747),l=r(764),p=r(768),f=r(769),h=r(770),d=r(772),m=r(773),y=r(701);class g{constructor(e,t){this._engine=e,this._container=t,this.bounce=new u.ParticlesBounce,this.collisions=new o.Collisions,this.color=new i.AnimatableColor,this.color.value="#fff",this.effect=new a.Effect,this.groups={},this.move=new s.Move,this.number=new l.ParticlesNumber,this.opacity=new c.Opacity,this.reduceDuplicates=!1,this.shadow=new p.Shadow,this.shape=new f.Shape,this.size=new h.Size,this.stroke=new d.Stroke,this.zIndex=new m.ZIndex}load(e){if((0,y.isNull)(e))return;if(void 0!==e.groups)for(const t of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,t))continue;const r=e.groups[t];void 0!==r&&(this.groups[t]=(0,n.deepExtend)(this.groups[t]??{},r))}void 0!==e.reduceDuplicates&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(i.AnimatableColor.create(this.color,e.color)),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.shadow.load(e.shadow),this.zIndex.load(e.zIndex),this.collisions.load(e.collisions),void 0!==e.interactivity&&(this.interactivity=(0,n.deepExtend)({},e.interactivity));const t=e.stroke;if(t&&(this.stroke=(0,n.executeOnSingleOrMultiple)(t,(e=>{const t=new d.Stroke;return t.load(e),t}))),this._container){const t=this._engine.updaters.get(this._container);if(t)for(const r of t)r.loadOptions&&r.loadOptions(this,e);const r=this._engine.interactors.get(this._container);if(r)for(const t of r)t.loadParticlesOptions&&t.loadParticlesOptions(this,e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AnimatableColor:()=>a});var n=r(701),i=r(740),o=r(718);class a extends o.OptionsColor{constructor(){super(),this.animation=new i.HslAnimation}static create(e,t){const r=new a;return r.load(e),void 0!==t&&((0,n.isString)(t)||(0,n.isArray)(t)?r.load({value:t}):r.load(t)),r}load(e){if(super.load(e),(0,n.isNull)(e))return;const t=e.animation;void 0!==t&&(void 0!==t.enable?this.animation.h.load(t):this.animation.load(e.animation))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HslAnimation:()=>o});var n=r(741),i=r(701);class o{constructor(){this.h=new n.ColorAnimation,this.s=new n.ColorAnimation,this.l=new n.ColorAnimation}load(e){(0,i.isNull)(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ColorAnimation:()=>a});var n=r(742),i=r(701),o=r(698);class a extends n.AnimationOptions{constructor(){super(),this.offset=0,this.sync=!0}load(e){super.load(e),(0,i.isNull)(e)||void 0!==e.offset&&(this.offset=(0,o.setRangeValue)(e.offset))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AnimationOptions:()=>s,RangedAnimationOptions:()=>c});var n=r(702),i=r(707),o=r(701),a=r(698);class s{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){(0,o.isNull)(e)||(void 0!==e.count&&(this.count=(0,a.setRangeValue)(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,a.setRangeValue)(e.speed)),void 0!==e.decay&&(this.decay=(0,a.setRangeValue)(e.decay)),void 0!==e.delay&&(this.delay=(0,a.setRangeValue)(e.delay)),void 0!==e.sync&&(this.sync=e.sync))}}class c extends s{constructor(){super(),this.mode=n.AnimationMode.auto,this.startValue=i.StartValueType.random}load(e){super.load(e),(0,o.isNull)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Collisions:()=>u});var n=r(744),i=r(745),o=r(746),a=r(747),s=r(701),c=r(698);class u{constructor(){this.absorb=new i.CollisionsAbsorb,this.bounce=new a.ParticlesBounce,this.enable=!1,this.maxSpeed=50,this.mode=n.CollisionMode.bounce,this.overlap=new o.CollisionsOverlap}load(e){(0,s.isNull)(e)||(this.absorb.load(e.absorb),this.bounce.load(e.bounce),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.maxSpeed&&(this.maxSpeed=(0,c.setRangeValue)(e.maxSpeed)),void 0!==e.mode&&(this.mode=e.mode),this.overlap.load(e.overlap))}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{CollisionMode:()=>n}),function(e){e.absorb="absorb",e.bounce="bounce",e.destroy="destroy"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CollisionsAbsorb:()=>i});var n=r(701);class i{constructor(){this.speed=2}load(e){(0,n.isNull)(e)||void 0!==e.speed&&(this.speed=e.speed)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CollisionsOverlap:()=>i});var n=r(701);class i{constructor(){this.enable=!0,this.retries=0}load(e){(0,n.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.retries&&(this.retries=e.retries))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesBounce:()=>o});var n=r(748),i=r(701);class o{constructor(){this.horizontal=new n.ParticlesBounceFactor,this.vertical=new n.ParticlesBounceFactor}load(e){(0,i.isNull)(e)||(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesBounceFactor:()=>i});var n=r(749);class i extends n.ValueWithRandom{constructor(){super(),this.value=1}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AnimationValueWithRandom:()=>s,RangedAnimationValueWithRandom:()=>c,ValueWithRandom:()=>a});var n=r(742),i=r(701),o=r(698);class a{constructor(){this.value=0}load(e){(0,i.isNull)(e)||(0,i.isNull)(e.value)||(this.value=(0,o.setRangeValue)(e.value))}}class s extends a{constructor(){super(),this.animation=new n.AnimationOptions}load(e){if(super.load(e),(0,i.isNull)(e))return;const t=e.animation;void 0!==t&&this.animation.load(t)}}class c extends s{constructor(){super(),this.animation=new n.RangedAnimationOptions}load(e){super.load(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Effect:()=>o});var n=r(697),i=r(701);class o{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if((0,i.isNull)(e))return;const t=e.options;if(void 0!==t)for(const e in t){const r=t[e];r&&(this.options[e]=(0,n.deepExtend)(this.options[e]??{},r))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.type=e.type)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Move:()=>d});var n=r(699),i=r(701),o=r(752),a=r(753),s=r(754),c=r(755),u=r(756),l=r(757),p=r(759),f=r(761),h=r(698);class d{constructor(){this.angle=new o.MoveAngle,this.attract=new a.MoveAttract,this.center=new s.MoveCenter,this.decay=0,this.distance={},this.direction=n.MoveDirection.none,this.drift=0,this.enable=!1,this.gravity=new c.MoveGravity,this.path=new u.MovePath,this.outModes=new p.OutModes,this.random=!1,this.size=!1,this.speed=2,this.spin=new f.Spin,this.straight=!1,this.trail=new l.MoveTrail,this.vibrate=!1,this.warp=!1}load(e){if((0,i.isNull)(e))return;this.angle.load((0,i.isNumber)(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),void 0!==e.decay&&(this.decay=(0,h.setRangeValue)(e.decay)),void 0!==e.direction&&(this.direction=e.direction),void 0!==e.distance&&(this.distance=(0,i.isNumber)(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),void 0!==e.drift&&(this.drift=(0,h.setRangeValue)(e.drift)),void 0!==e.enable&&(this.enable=e.enable),this.gravity.load(e.gravity);const t=e.outModes;void 0!==t&&((0,i.isObject)(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),void 0!==e.random&&(this.random=e.random),void 0!==e.size&&(this.size=e.size),void 0!==e.speed&&(this.speed=(0,h.setRangeValue)(e.speed)),this.spin.load(e.spin),void 0!==e.straight&&(this.straight=e.straight),this.trail.load(e.trail),void 0!==e.vibrate&&(this.vibrate=e.vibrate),void 0!==e.warp&&(this.warp=e.warp)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MoveAngle:()=>o});var n=r(701),i=r(698);class o{constructor(){this.offset=0,this.value=90}load(e){(0,n.isNull)(e)||(void 0!==e.offset&&(this.offset=(0,i.setRangeValue)(e.offset)),void 0!==e.value&&(this.value=(0,i.setRangeValue)(e.value)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MoveAttract:()=>o});var n=r(701),i=r(698);class o{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(!(0,n.isNull)(e)&&(void 0!==e.distance&&(this.distance=(0,i.setRangeValue)(e.distance)),void 0!==e.enable&&(this.enable=e.enable),e.rotate)){const t=e.rotate.x;void 0!==t&&(this.rotate.x=t);const r=e.rotate.y;void 0!==r&&(this.rotate.y=r)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MoveCenter:()=>o});var n=r(706),i=r(701);class o{constructor(){this.x=50,this.y=50,this.mode=n.PixelMode.percent,this.radius=0}load(e){(0,i.isNull)(e)||(void 0!==e.x&&(this.x=e.x),void 0!==e.y&&(this.y=e.y),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.radius&&(this.radius=e.radius))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MoveGravity:()=>o});var n=r(701),i=r(698);class o{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){(0,n.isNull)(e)||(void 0!==e.acceleration&&(this.acceleration=(0,i.setRangeValue)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.inverse&&(this.inverse=e.inverse),void 0!==e.maxSpeed&&(this.maxSpeed=(0,i.setRangeValue)(e.maxSpeed)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MovePath:()=>a});var n=r(749),i=r(697),o=r(701);class a{constructor(){this.clamp=!0,this.delay=new n.ValueWithRandom,this.enable=!1,this.options={}}load(e){(0,o.isNull)(e)||(void 0!==e.clamp&&(this.clamp=e.clamp),this.delay.load(e.delay),void 0!==e.enable&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=(0,i.deepExtend)(this.options,e.options)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MoveTrail:()=>o});var n=r(758),i=r(701);class o{constructor(){this.enable=!1,this.length=10,this.fill=new n.MoveTrailFill}load(e){(0,i.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.fill&&this.fill.load(e.fill),void 0!==e.length&&(this.length=e.length))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MoveTrailFill:()=>o});var n=r(718),i=r(701);class o{load(e){(0,i.isNull)(e)||(void 0!==e.color&&(this.color=n.OptionsColor.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OutModes:()=>o});var n=r(760),i=r(701);class o{constructor(){this.default=n.OutMode.out}load(e){(0,i.isNull)(e)||(void 0!==e.default&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{OutMode:()=>n}),function(e){e.bounce="bounce",e.none="none",e.out="out",e.destroy="destroy",e.split="split"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Spin:()=>a});var n=r(697),i=r(701),o=r(698);class a{constructor(){this.acceleration=0,this.enable=!1}load(e){(0,i.isNull)(e)||(void 0!==e.acceleration&&(this.acceleration=(0,o.setRangeValue)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=(0,n.deepExtend)({},e.position)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Opacity:()=>a});var n=r(763),i=r(749),o=r(701);class a extends i.RangedAnimationValueWithRandom{constructor(){super(),this.animation=new n.OpacityAnimation,this.value=1}load(e){if((0,o.isNull)(e))return;super.load(e);const t=e.animation;void 0!==t&&this.animation.load(t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OpacityAnimation:()=>a});var n=r(704),i=r(742),o=r(701);class a extends i.RangedAnimationOptions{constructor(){super(),this.destroy=n.DestroyType.none,this.speed=2}load(e){super.load(e),(0,o.isNull)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesNumber:()=>a});var n=r(765),i=r(766),o=r(701);class a{constructor(){this.density=new n.ParticlesDensity,this.limit=new i.ParticlesNumberLimit,this.value=0}load(e){(0,o.isNull)(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesDensity:()=>i});var n=r(701);class i{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if((0,n.isNull)(e))return;void 0!==e.enable&&(this.enable=e.enable);const t=e.width;void 0!==t&&(this.width=t);const r=e.height;void 0!==r&&(this.height=r)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesNumberLimit:()=>o});var n=r(767),i=r(701);class o{constructor(){this.mode=n.LimitMode.delete,this.value=0}load(e){(0,i.isNull)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{LimitMode:()=>n}),function(e){e.delete="delete",e.wait="wait"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Shadow:()=>o});var n=r(718),i=r(701);class o{constructor(){this.blur=0,this.color=new n.OptionsColor,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(e){(0,i.isNull)(e)||(void 0!==e.blur&&(this.blur=e.blur),this.color=n.OptionsColor.create(this.color,e.color),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.offset&&(void 0!==e.offset.x&&(this.offset.x=e.offset.x),void 0!==e.offset.y&&(this.offset.y=e.offset.y)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Shape:()=>o});var n=r(697),i=r(701);class o{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if((0,i.isNull)(e))return;const t=e.options;if(void 0!==t)for(const e in t){const r=t[e];r&&(this.options[e]=(0,n.deepExtend)(this.options[e]??{},r))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.type=e.type)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Size:()=>a});var n=r(749),i=r(771),o=r(701);class a extends n.RangedAnimationValueWithRandom{constructor(){super(),this.animation=new i.SizeAnimation,this.value=3}load(e){if(super.load(e),(0,o.isNull)(e))return;const t=e.animation;void 0!==t&&this.animation.load(t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SizeAnimation:()=>a});var n=r(704),i=r(742),o=r(701);class a extends i.RangedAnimationOptions{constructor(){super(),this.destroy=n.DestroyType.none,this.speed=5}load(e){super.load(e),(0,o.isNull)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Stroke:()=>a});var n=r(739),i=r(701),o=r(698);class a{constructor(){this.width=0}load(e){(0,i.isNull)(e)||(void 0!==e.color&&(this.color=n.AnimatableColor.create(this.color,e.color)),void 0!==e.width&&(this.width=(0,o.setRangeValue)(e.width)),void 0!==e.opacity&&(this.opacity=(0,o.setRangeValue)(e.opacity)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ZIndex:()=>o});var n=r(749),i=r(701);class o extends n.ValueWithRandom{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),(0,i.isNull)(e)||(void 0!==e.opacityRate&&(this.opacityRate=e.opacityRate),void 0!==e.sizeRate&&(this.sizeRate=e.sizeRate),void 0!==e.velocityRate&&(this.velocityRate=e.velocityRate))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Particles:()=>h});var n=r(696),i=r(697),o=r(715),a=r(775),s=r(767),c=r(777),u=r(779),l=r(780),p=r(781);const f=e=>{const{height:t,width:r}=e;return new p.Rectangle(n.posOffset*r,n.posOffset*t,n.sizeFactor*r,n.sizeFactor*t)};class h{constructor(e,t){this._addToPool=(...e)=>{this._pool.push(...e)},this._applyDensity=(e,t,r)=>{const i=e.number;if(!e.number.density?.enable)return void(void 0===r?this._limit=i.limit.value:i.limit&&this._groupLimits.set(r,i.limit.value));const o=this._initDensityFactor(i.density),a=i.value,s=i.limit.value>n.minLimit?i.limit.value:a,c=Math.min(a,s)*o+t,u=Math.min(this.count,this.filter((e=>e.group===r)).length);void 0===r?this._limit=i.limit.value*o:this._groupLimits.set(r,i.limit.value*o),u<c?this.push(Math.abs(c-u),void 0,e,r):u>c&&this.removeQuantity(u-c,r)},this._initDensityFactor=e=>{const t=this._container;if(!t.canvas.element||!e.enable)return n.defaultDensityFactor;const r=t.canvas.element,i=t.retina.pixelRatio;return r.width*r.height/(e.height*e.width*i**n.squareExp)},this._pushParticle=(e,t,r,a)=>{try{let n=this._pool.pop();n||(n=new c.Particle(this._engine,this._container)),n.init(this._nextId,e,t,r);let i=!0;if(a&&(i=a(n)),!i)return;return this._array.push(n),this._zArray.push(n),this._nextId++,this._engine.dispatchEvent(o.EventType.particleAdded,{container:this._container,data:{particle:n}}),n}catch(e){(0,i.getLogger)().warning(`${n.errorPrefix} adding particle: ${e}`)}},this._removeParticle=(e,t,r)=>{const i=this._array[e];if(!i||i.group!==t)return!1;const a=this._zArray.indexOf(i);return this._array.splice(e,n.deleteCount),this._zArray.splice(a,n.deleteCount),i.destroy(r),this._engine.dispatchEvent(o.EventType.particleRemoved,{container:this._container,data:{particle:i}}),this._addToPool(i),!0},this._engine=e,this._container=t,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new a.InteractionManager(e,t),this._pluginsInitialized=!1;const r=t.canvas.size;this.quadTree=new l.QuadTree(f(r),n.qTreeCapacity),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){const e=this._container;e.actualOptions.manualParticles.forEach((t=>this.addParticle(t.position?(0,i.getPosition)(t.position,e.canvas.size):void 0,t.options)))}addParticle(e,t,r,i){const o=this._container.actualOptions.particles.number.limit.mode,a=void 0===r?this._limit:this._groupLimits.get(r)??this._limit,c=this.count;if(a>n.minLimit)switch(o){case s.LimitMode.delete:{const e=c+n.countOffset-a;e>n.minCount&&this.removeQuantity(e);break}case s.LimitMode.wait:if(c>=a)return}return this._pushParticle(e,t,r,i)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(e){const t=this._container,r=t.canvas;r.clear(),this.update(e);for(const n of t.plugins.values())r.drawPlugin(n,e);for(const t of this._zArray)t.draw(e)}filter(e){return this._array.filter(e)}find(e){return this._array.find(e)}get(e){return this._array[e]}handleClickMode(e){this._interactionManager.handleClickMode(e)}async init(){const e=this._container,t=e.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let r=!1;for(const t of e.plugins.values())if(r=t.particlesInitialization?.()??r,r)break;if(this.addManualParticles(),!r){const e=t.particles,r=e.groups;for(const t in r){const n=r[t];for(let r=this.count,i=0;i<n.number?.value&&r<e.number.value;r++,i++)this.addParticle(void 0,n,t)}for(let t=this.count;t<e.number.value;t++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;const e=this._container;this.movers=await this._engine.getMovers(e,!0),this.updaters=await this._engine.getUpdaters(e,!0),await this._interactionManager.init();for(const t of e.pathGenerators.values())t.init(e)}push(e,t,r,n){for(let i=0;i<e;i++)this.addParticle(t?.position,r,n)}async redraw(){this.clear(),await this.init(),this.draw({value:0,factor:0})}remove(e,t,r){this.removeAt(this._array.indexOf(e),void 0,t,r)}removeAt(e,t=n.defaultRemoveQuantity,r,i){if(e<n.minIndex||e>this.count)return;let o=0;for(let n=e;o<t&&n<this.count;n++)this._removeParticle(n,r,i)&&(n--,o++)}removeQuantity(e,t){this.removeAt(n.minIndex,e,t)}setDensity(){const e=this._container.actualOptions,t=e.particles.groups;for(const e in t)this._applyDensity(t[e],n.manualCount,e);this._applyDensity(e.particles,e.manualParticles.length)}setLastZIndex(e){this._lastZIndex=e,this._needsSort=this._needsSort||this._lastZIndex<e}setResizeFactor(e){this._resizeFactor=e}update(e){const t=this._container,r=new Set;this.quadTree=new l.QuadTree(f(t.canvas.size),n.qTreeCapacity);for(const e of t.pathGenerators.values())e.update();for(const r of t.plugins.values())r.update?.(e);const i=this._resizeFactor;for(const t of this._array){i&&!t.ignoresResizeRatio&&(t.position.x*=i.width,t.position.y*=i.height,t.initialPosition.x*=i.width,t.initialPosition.y*=i.height),t.ignoresResizeRatio=!1,this._interactionManager.reset(t);for(const r of this._container.plugins.values()){if(t.destroyed)break;r.particleUpdate?.(t,e)}for(const r of this.movers)r.isEnabled(t)&&r.move(t,e);t.destroyed?r.add(t):this.quadTree.insert(new u.Point(t.getPosition(),t))}if(r.size){const e=e=>!r.has(e);this._array=this.filter(e),this._zArray=this._zArray.filter(e);for(const e of r)this._engine.dispatchEvent(o.EventType.particleRemoved,{container:this._container,data:{particle:e}});this._addToPool(...r)}this._interactionManager.externalInteract(e);for(const t of this._array){for(const r of this.updaters)r.update(t,e);t.destroyed||t.spawning||this._interactionManager.particlesInteract(t,e)}if(delete this._resizeFactor,this._needsSort){const e=this._zArray;e.sort(((e,t)=>t.position.z-e.position.z||e.id-t.id)),this._lastZIndex=e[e.length-n.lengthOffset].position.z,this._needsSort=!1}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InteractionManager:()=>i});var n=r(776);class i{constructor(e,t){this.container=t,this._engine=e,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(e){for(const t of this._externalInteractors)t.isEnabled()&&t.interact(e)}handleClickMode(e){for(const t of this._externalInteractors)t.handleClickMode?.(e)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(const e of this._interactors){switch(e.type){case n.InteractorType.external:this._externalInteractors.push(e);break;case n.InteractorType.particles:this._particleInteractors.push(e)}e.init()}}particlesInteract(e,t){for(const r of this._externalInteractors)r.clear(e,t);for(const r of this._particleInteractors)r.isEnabled(e)&&r.interact(e,t)}reset(e){for(const t of this._externalInteractors)t.isEnabled()&&t.reset(e);for(const t of this._particleInteractors)t.isEnabled(e)&&t.reset(e)}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{InteractorType:()=>n}),function(e){e.external="external",e.particles="particles"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Particle:()=>g});var n=r(700),i=r(698),o=r(696),a=r(697),s=r(712),c=r(715),u=r(722),l=r(699),p=r(760),f=r(778),h=r(706),d=r(710),m=r(737);function y(e){if(!(0,a.isInArray)(e.outMode,e.checkModes))return;const t=e.radius*o.double;e.coord>e.maxCoord-t?e.setCb(-e.radius):e.coord<t&&e.setCb(e.radius)}class g{constructor(e,t){this.container=t,this._calcPosition=(e,t,r,a=o.defaultRetryCount)=>{for(const i of e.plugins.values()){const e=void 0!==i.particlePosition?i.particlePosition(t,this):void 0;if(e)return n.Vector3d.create(e.x,e.y,r)}const s=e.canvas.size,c=(0,i.calcExactPositionOrRandomFromSize)({size:s,position:t}),u=n.Vector3d.create(c.x,c.y,r),l=this.getRadius(),f=this.options.move.outModes,h=t=>{y({outMode:t,checkModes:[p.OutMode.bounce],coord:u.x,maxCoord:e.canvas.size.width,setCb:e=>u.x+=e,radius:l})},d=t=>{y({outMode:t,checkModes:[p.OutMode.bounce],coord:u.y,maxCoord:e.canvas.size.height,setCb:e=>u.y+=e,radius:l})};return h(f.left??f.default),h(f.right??f.default),d(f.top??f.default),d(f.bottom??f.default),this._checkOverlap(u,a)?this._calcPosition(e,void 0,r,a+o.tryCountIncrement):u},this._calculateVelocity=()=>{const e=(0,i.getParticleBaseVelocity)(this.direction).copy(),t=this.options.move;if(t.direction===l.MoveDirection.inside||t.direction===l.MoveDirection.outside)return e;const r=(0,i.degToRad)((0,i.getRangeValue)(t.angle.value)),n=(0,i.degToRad)((0,i.getRangeValue)(t.angle.offset)),a={left:n-r*o.half,right:n+r*o.half};return t.straight||(e.angle+=(0,i.randomInRange)((0,i.setRangeValue)(a.left,a.right))),t.random&&"number"==typeof t.speed&&(e.length*=(0,i.getRandom)()),e},this._checkOverlap=(e,t=o.defaultRetryCount)=>{const r=this.options.collisions,n=this.getRadius();if(!r.enable)return!1;const a=r.overlap;if(a.enable)return!1;const s=a.retries;if(s>=o.minRetries&&t>s)throw new Error(`${o.errorPrefix} particle is overlapping and can't be placed`);return!!this.container.particles.find((t=>(0,i.getDistance)(e,t.position)<n+t.getRadius()))},this._getRollColor=e=>{if(!e||!this.roll||!this.backColor&&!this.roll.alter)return e;const t=this.roll.horizontal&&this.roll.vertical?o.double*o.rollFactor:o.rollFactor,r=this.roll.horizontal?Math.PI*o.half:o.none;return Math.floor(((this.roll.angle??o.none)+r)/(Math.PI/t))%o.double?this.backColor?this.backColor:this.roll.alter?(0,d.alterHsl)(e,this.roll.alter.type,this.roll.alter.value):e:e},this._initPosition=e=>{const t=this.container,r=(0,i.getRangeValue)(this.options.zIndex.value);this.position=this._calcPosition(t,e,(0,i.clamp)(r,o.minZ,t.zLayers)),this.initialPosition=this.position.copy();const s=t.canvas.size;switch(this.moveCenter={...(0,a.getPosition)(this.options.move.center,s),radius:this.options.move.center.radius??o.defaultRadius,mode:this.options.move.center.mode??h.PixelMode.percent},this.direction=(0,i.getParticleDirectionAngle)(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case l.MoveDirection.inside:this.outType=f.ParticleOutType.inside;break;case l.MoveDirection.outside:this.outType=f.ParticleOutType.outside}this.offset=n.Vector.origin},this._engine=e}destroy(e){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const t=this.container,r=this.pathGenerator,n=t.shapeDrawers.get(this.shape);n?.particleDestroy?.(this);for(const r of t.plugins.values())r.particleDestroyed?.(this,e);for(const r of t.particles.updaters)r.particleDestroyed?.(this,e);r?.reset(this),this._engine.dispatchEvent(c.EventType.particleDestroyed,{container:this.container,data:{particle:this}})}draw(e){const t=this.container,r=t.canvas;for(const n of t.plugins.values())r.drawParticlePlugin(n,this,e);r.drawParticle(this,e)}getFillColor(){return this._getRollColor(this.bubble.color??(0,s.getHslFromAnimation)(this.color))}getMass(){return this.getRadius()**o.squareExp*Math.PI*o.half}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??(0,s.getHslFromAnimation)(this.strokeColor))}init(e,t,r,n){const c=this.container,l=this._engine;this.id=e,this.group=n,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType=f.ParticleOutType.normal,this.ignoresResizeRatio=!0;const p=c.retina.pixelRatio,h=c.actualOptions,d=(0,m.loadParticlesOptions)(this._engine,c,h.particles),{reduceDuplicates:y}=d,g=d.effect.type,v=d.shape.type;this.effect=(0,a.itemFromSingleOrMultiple)(g,this.id,y),this.shape=(0,a.itemFromSingleOrMultiple)(v,this.id,y);const b=d.effect,S=d.shape;if(r){if(r.effect?.type){const e=r.effect.type,t=(0,a.itemFromSingleOrMultiple)(e,this.id,y);t&&(this.effect=t,b.load(r.effect))}if(r.shape?.type){const e=r.shape.type,t=(0,a.itemFromSingleOrMultiple)(e,this.id,y);t&&(this.shape=t,S.load(r.shape))}}if(this.effect===o.randomColorValue){const e=[...this.container.effectDrawers.keys()];this.effect=e[Math.floor(Math.random()*e.length)]}if(this.shape===o.randomColorValue){const e=[...this.container.shapeDrawers.keys()];this.shape=e[Math.floor(Math.random()*e.length)]}this.effectData=function(e,t,r,n){const i=t.options[e];if(i)return(0,a.deepExtend)({close:t.close,fill:t.fill},(0,a.itemFromSingleOrMultiple)(i,r,n))}(this.effect,b,this.id,y),this.shapeData=function(e,t,r,n){const i=t.options[e];if(i)return(0,a.deepExtend)({close:t.close,fill:t.fill},(0,a.itemFromSingleOrMultiple)(i,r,n))}(this.shape,S,this.id,y),d.load(r);const _=this.effectData;_&&d.load(_.particles);const E=this.shapeData;E&&d.load(E.particles);const w=new u.Interactivity(l,c);w.load(c.actualOptions.interactivity),w.load(d.interactivity),this.interactivity=w,this.effectFill=_?.fill??d.effect.fill,this.effectClose=_?.close??d.effect.close,this.shapeFill=E?.fill??d.shape.fill,this.shapeClose=E?.close??d.shape.close,this.options=d;const x=this.options.move.path;this.pathDelay=(0,i.getRangeValue)(x.delay.value)*o.millisecondsToSeconds,x.generator&&(this.pathGenerator=this._engine.getPathGenerator(x.generator),this.pathGenerator&&c.addPath(x.generator,this.pathGenerator)&&this.pathGenerator.init(c)),c.retina.initParticle(this),this.size=(0,a.initParticleNumericAnimationValue)(this.options.size,p),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(t),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=o.decayOffset-(0,i.getRangeValue)(this.options.move.decay);const O=c.particles;O.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/c.zLayers,this.sides=24;let T=c.effectDrawers.get(this.effect);T||(T=this._engine.getEffectDrawer(this.effect),T&&c.effectDrawers.set(this.effect,T)),T?.loadEffect&&T.loadEffect(this);let P=c.shapeDrawers.get(this.shape);P||(P=this._engine.getShapeDrawer(this.shape),P&&c.shapeDrawers.set(this.shape,P)),P?.loadShape&&P.loadShape(this);const C=P?.getSidesCount;C&&(this.sides=C(this)),this.spawning=!1,this.shadowColor=(0,s.rangeColorToRgb)(this._engine,this.options.shadow.color);for(const e of O.updaters)e.init(this);for(const e of O.movers)e.init?.(this);T?.particleInit?.(c,this),P?.particleInit?.(c,this);for(const e of c.plugins.values())e.particleCreated?.(this)}isInsideCanvas(){const e=this.getRadius(),t=this.container.canvas.size,r=this.position;return r.x>=-e&&r.y>=-e&&r.y<=t.height+e&&r.x<=t.width+e}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const e of this.container.particles.updaters)e.reset?.(this)}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{ParticleOutType:()=>n}),function(e){e.normal="normal",e.inside="inside",e.outside="outside"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Point:()=>n});class n{constructor(e,t){this.position=e,this.particle=t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{QuadTree:()=>a});var n=r(781),i=r(696),o=r(698);class a{constructor(e,t){this.rectangle=e,this.capacity=t,this._subdivide=()=>{const{x:e,y:t}=this.rectangle.position,{width:r,height:o}=this.rectangle.size,{capacity:s}=this;for(let c=0;c<i.subdivideCount;c++){const u=c%i.double;this._subs.push(new a(new n.Rectangle(e+r*i.half*u,t+o*i.half*(Math.round(c*i.half)-u),r*i.half,o*i.half),s))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(e){return!!this.rectangle.contains(e.position)&&(this._points.length<this.capacity?(this._points.push(e),!0):(this._divided||this._subdivide(),this._subs.some((t=>t.insert(e)))))}query(e,t){const r=[];if(!e.intersects(this.rectangle))return[];for(const n of this._points)!e.contains(n.position)&&(0,o.getDistance)(e.position,n.position)>n.particle.getRadius()&&(!t||t(n.particle))||r.push(n.particle);if(this._divided)for(const n of this._subs)r.push(...n.query(e,t));return r}queryCircle(e,t,r){return this.query(new n.Circle(e.x,e.y,t),r)}queryRectangle(e,t,r){return this.query(new n.Rectangle(e.x,e.y,t.width,t.height),r)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseRange:()=>a,Circle:()=>s,Rectangle:()=>c});var n=r(782),i=r(698),o=r(696);class a{constructor(e,t,r){this.position={x:e,y:t},this.type=r}}class s extends a{constructor(e,t,r){super(e,t,n.RangeType.circle),this.radius=r}contains(e){return(0,i.getDistance)(e,this.position)<=this.radius}intersects(e){const t=this.position,r=e.position,i=Math.abs(r.x-t.x),a=Math.abs(r.y-t.y),u=this.radius;if(e instanceof s||e.type===n.RangeType.circle){return u+e.radius>Math.sqrt(i**o.squareExp+a**o.squareExp)}if(e instanceof c||e.type===n.RangeType.rectangle){const t=e,{width:r,height:n}=t.size;return Math.pow(i-r,o.squareExp)+Math.pow(a-n,o.squareExp)<=u**o.squareExp||i<=u+r&&a<=u+n||i<=r||a<=n}return!1}}class c extends a{constructor(e,t,r,i){super(e,t,n.RangeType.rectangle),this.size={height:i,width:r}}contains(e){const t=this.size.width,r=this.size.height,n=this.position;return e.x>=n.x&&e.x<=n.x+t&&e.y>=n.y&&e.y<=n.y+r}intersects(e){if(e instanceof s)return e.intersects(this);const t=this.size.width,r=this.size.height,n=this.position,i=e.position,o=e instanceof c?e.size:{width:0,height:0},a=o.width,u=o.height;return i.x<n.x+t&&i.x+a>n.x&&i.y<n.y+r&&i.y+u>n.y}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{RangeType:()=>n}),function(e){e.circle="circle",e.rectangle="rectangle"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Retina:()=>a});var n=r(696),i=r(698),o=r(697);class a{constructor(e){this.container=e,this.pixelRatio=n.defaultRatio,this.reduceFactor=n.defaultReduceFactor}init(){const e=this.container,t=e.actualOptions;this.pixelRatio=!t.detectRetina||(0,o.isSsr)()?n.defaultRatio:window.devicePixelRatio,this.reduceFactor=n.defaultReduceFactor;const r=this.pixelRatio,a=e.canvas;if(a.element){const e=a.element;a.size.width=e.offsetWidth*r,a.size.height=e.offsetHeight*r}const s=t.particles,c=s.move;this.maxSpeed=(0,i.getRangeValue)(c.gravity.maxSpeed)*r,this.sizeAnimationSpeed=(0,i.getRangeValue)(s.size.animation.speed)*r}initParticle(e){const t=e.options,r=this.pixelRatio,n=t.move,o=n.distance,a=e.retina;a.moveDrift=(0,i.getRangeValue)(n.drift)*r,a.moveSpeed=(0,i.getRangeValue)(n.speed)*r,a.sizeAnimationSpeed=(0,i.getRangeValue)(t.size.animation.speed)*r;const s=a.maxDistance;s.horizontal=void 0!==o.horizontal?o.horizontal*r:void 0,s.vertical=void 0!==o.vertical?o.vertical*r:void 0,a.maxSpeed=(0,i.getRangeValue)(n.gravity.maxSpeed)*r}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EventDispatcher:()=>i});var n=r(696);class i{constructor(){this._listeners=new Map}addEventListener(e,t){this.removeEventListener(e,t);let r=this._listeners.get(e);r||(r=[],this._listeners.set(e,r)),r.push(t)}dispatchEvent(e,t){const r=this._listeners.get(e);r?.forEach((e=>e(t)))}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,t){const r=this._listeners.get(e);if(!r)return;const i=r.length,o=r.indexOf(t);o<n.minIndex||(i===n.deleteCount?this._listeners.delete(e):r.splice(o,n.deleteCount))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AlterType:()=>b.AlterType,AnimatableColor:()=>k.AnimatableColor,AnimationMode:()=>f.AnimationMode,AnimationOptions:()=>R.AnimationOptions,AnimationStatus:()=>C.AnimationStatus,AnimationValueWithRandom:()=>xe.AnimationValueWithRandom,Background:()=>I.Background,BackgroundMask:()=>D.BackgroundMask,BackgroundMaskCover:()=>M.BackgroundMaskCover,BaseRange:()=>s.BaseRange,Circle:()=>s.Circle,ClickEvent:()=>j.ClickEvent,CollisionMode:()=>h.CollisionMode,Collisions:()=>Q.Collisions,CollisionsAbsorb:()=>J.CollisionsAbsorb,CollisionsOverlap:()=>Z.CollisionsOverlap,ColorAnimation:()=>N.ColorAnimation,DestroyType:()=>S.DestroyType,DivEvent:()=>B.DivEvent,DivType:()=>O.DivType,EasingType:()=>T.EasingType,EventType:()=>P.EventType,Events:()=>U.Events,ExternalInteractorBase:()=>i.ExternalInteractorBase,FullScreen:()=>F.FullScreen,GradientType:()=>_.GradientType,HoverEvent:()=>V.HoverEvent,HslAnimation:()=>L.HslAnimation,Interactivity:()=>q.Interactivity,InteractivityDetect:()=>A.InteractivityDetect,InteractorType:()=>E.InteractorType,LimitMode:()=>d.LimitMode,ManualParticle:()=>W.ManualParticle,Modes:()=>G.Modes,Move:()=>ie.Move,MoveAngle:()=>oe.MoveAngle,MoveAttract:()=>ne.MoveAttract,MoveCenter:()=>ae.MoveCenter,MoveDirection:()=>u.MoveDirection,MoveGravity:()=>se.MoveGravity,MovePath:()=>ue.MovePath,MoveTrail:()=>pe.MoveTrail,Opacity:()=>me.Opacity,OpacityAnimation:()=>ye.OpacityAnimation,Options:()=>K.Options,OptionsColor:()=>$.OptionsColor,OutMode:()=>m.OutMode,OutModeDirection:()=>p.OutModeDirection,OutModes:()=>ce.OutModes,Parallax:()=>z.Parallax,ParticleOutType:()=>w.ParticleOutType,ParticlesBounce:()=>Y.ParticlesBounce,ParticlesBounceFactor:()=>X.ParticlesBounceFactor,ParticlesDensity:()=>de.ParticlesDensity,ParticlesInteractorBase:()=>o.ParticlesInteractorBase,ParticlesNumber:()=>fe.ParticlesNumber,ParticlesNumberLimit:()=>he.ParticlesNumberLimit,ParticlesOptions:()=>ee.ParticlesOptions,PixelMode:()=>y.PixelMode,Point:()=>a.Point,RangedAnimationOptions:()=>R.RangedAnimationOptions,RangedAnimationValueWithRandom:()=>xe.RangedAnimationValueWithRandom,Rectangle:()=>s.Rectangle,ResizeEvent:()=>H.ResizeEvent,Responsive:()=>_e.Responsive,ResponsiveMode:()=>v.ResponsiveMode,RotateDirection:()=>l.RotateDirection,Shadow:()=>te.Shadow,Shape:()=>ge.Shape,Size:()=>ve.Size,SizeAnimation:()=>be.SizeAnimation,Spin:()=>le.Spin,StartValueType:()=>x.StartValueType,Stroke:()=>re.Stroke,Theme:()=>Ee.Theme,ThemeDefault:()=>we.ThemeDefault,ThemeMode:()=>g.ThemeMode,ValueWithRandom:()=>xe.ValueWithRandom,Vector:()=>c.Vector,Vector3d:()=>c.Vector3d,ZIndex:()=>Se.ZIndex,alterHsl:()=>Oe.alterHsl,animate:()=>Pe.animate,areBoundsInside:()=>Ae.areBoundsInside,arrayRandomIndex:()=>Ae.arrayRandomIndex,calcExactPositionOrRandomFromSize:()=>Pe.calcExactPositionOrRandomFromSize,calcExactPositionOrRandomFromSizeRanged:()=>Pe.calcExactPositionOrRandomFromSizeRanged,calcPositionFromSize:()=>Pe.calcPositionFromSize,calcPositionOrRandomFromSize:()=>Pe.calcPositionOrRandomFromSize,calcPositionOrRandomFromSizeRanged:()=>Pe.calcPositionOrRandomFromSizeRanged,calculateBounds:()=>Ae.calculateBounds,cancelAnimation:()=>Pe.cancelAnimation,canvasFirstIndex:()=>n.canvasFirstIndex,canvasTag:()=>n.canvasTag,circleBounce:()=>Ae.circleBounce,circleBounceDataFromParticle:()=>Ae.circleBounceDataFromParticle,clamp:()=>Pe.clamp,clear:()=>Oe.clear,clickRadius:()=>n.clickRadius,cloneStyle:()=>Ae.cloneStyle,collisionVelocity:()=>Pe.collisionVelocity,colorMix:()=>Te.colorMix,colorToHsl:()=>Te.colorToHsl,colorToRgb:()=>Te.colorToRgb,countOffset:()=>n.countOffset,decayOffset:()=>n.decayOffset,deepExtend:()=>Ae.deepExtend,defaultAlpha:()=>n.defaultAlpha,defaultAngle:()=>n.defaultAngle,defaultDensityFactor:()=>n.defaultDensityFactor,defaultFps:()=>n.defaultFps,defaultFpsLimit:()=>n.defaultFpsLimit,defaultLoops:()=>n.defaultLoops,defaultOpacity:()=>n.defaultOpacity,defaultRadius:()=>n.defaultRadius,defaultRatio:()=>n.defaultRatio,defaultReduceFactor:()=>n.defaultReduceFactor,defaultRemoveQuantity:()=>n.defaultRemoveQuantity,defaultRetryCount:()=>n.defaultRetryCount,defaultRgbMin:()=>n.defaultRgbMin,defaultTime:()=>n.defaultTime,defaultTransform:()=>n.defaultTransform,defaultTransformValue:()=>n.defaultTransformValue,defaultVelocity:()=>n.defaultVelocity,degToRad:()=>Pe.degToRad,deleteCount:()=>n.deleteCount,divMode:()=>Ae.divMode,divModeExecute:()=>Ae.divModeExecute,double:()=>n.double,doublePI:()=>n.doublePI,drawEffect:()=>Oe.drawEffect,drawLine:()=>Oe.drawLine,drawParticle:()=>Oe.drawParticle,drawParticlePlugin:()=>Oe.drawParticlePlugin,drawPlugin:()=>Oe.drawPlugin,drawShape:()=>Oe.drawShape,drawShapeAfterDraw:()=>Oe.drawShapeAfterDraw,empty:()=>n.empty,errorPrefix:()=>n.errorPrefix,executeOnSingleOrMultiple:()=>Ae.executeOnSingleOrMultiple,findItemFromSingleOrMultiple:()=>Ae.findItemFromSingleOrMultiple,generatedAttribute:()=>n.generatedAttribute,generatedFalse:()=>n.generatedFalse,generatedTrue:()=>n.generatedTrue,getDistance:()=>Pe.getDistance,getDistances:()=>Pe.getDistances,getFullScreenStyle:()=>Ae.getFullScreenStyle,getHslAnimationFromHsl:()=>Te.getHslAnimationFromHsl,getHslFromAnimation:()=>Te.getHslFromAnimation,getLinkColor:()=>Te.getLinkColor,getLinkRandomColor:()=>Te.getLinkRandomColor,getLogger:()=>Ae.getLogger,getParticleBaseVelocity:()=>Pe.getParticleBaseVelocity,getParticleDirectionAngle:()=>Pe.getParticleDirectionAngle,getPosition:()=>Ae.getPosition,getRandom:()=>Pe.getRandom,getRandomRgbColor:()=>Te.getRandomRgbColor,getRangeMax:()=>Pe.getRangeMax,getRangeMin:()=>Pe.getRangeMin,getRangeValue:()=>Pe.getRangeValue,getSize:()=>Ae.getSize,getStyleFromHsl:()=>Te.getStyleFromHsl,getStyleFromRgb:()=>Te.getStyleFromRgb,hMax:()=>n.hMax,hMin:()=>n.hMin,hPhase:()=>n.hPhase,half:()=>n.half,hasMatchMedia:()=>Ae.hasMatchMedia,hslToRgb:()=>Te.hslToRgb,hslaToRgba:()=>Te.hslaToRgba,identity:()=>n.identity,initParticleNumericAnimationValue:()=>Ae.initParticleNumericAnimationValue,inverseFactorNumerator:()=>n.inverseFactorNumerator,isArray:()=>ke.isArray,isBoolean:()=>ke.isBoolean,isDivModeEnabled:()=>Ae.isDivModeEnabled,isFunction:()=>ke.isFunction,isInArray:()=>Ae.isInArray,isNull:()=>ke.isNull,isNumber:()=>ke.isNumber,isObject:()=>ke.isObject,isPointInside:()=>Ae.isPointInside,isSsr:()=>Ae.isSsr,isString:()=>ke.isString,itemFromArray:()=>Ae.itemFromArray,itemFromSingleOrMultiple:()=>Ae.itemFromSingleOrMultiple,lFactor:()=>n.lFactor,lMax:()=>n.lMax,lMin:()=>n.lMin,lengthOffset:()=>n.lengthOffset,loadFont:()=>Ae.loadFont,loadMinIndex:()=>n.loadMinIndex,loadOptions:()=>Ce.loadOptions,loadParticlesOptions:()=>Ce.loadParticlesOptions,loadRandomFactor:()=>n.loadRandomFactor,manualCount:()=>n.manualCount,manualDefaultPosition:()=>n.manualDefaultPosition,midColorValue:()=>n.midColorValue,millisecondsToSeconds:()=>n.millisecondsToSeconds,minCoordinate:()=>n.minCoordinate,minCount:()=>n.minCount,minFpsLimit:()=>n.minFpsLimit,minIndex:()=>n.minIndex,minLimit:()=>n.minLimit,minRetries:()=>n.minRetries,minStrokeWidth:()=>n.minStrokeWidth,minVelocity:()=>n.minVelocity,minZ:()=>n.minZ,minimumLength:()=>n.minimumLength,minimumSize:()=>n.minimumSize,mix:()=>Pe.mix,mouseDownEvent:()=>n.mouseDownEvent,mouseLeaveEvent:()=>n.mouseLeaveEvent,mouseMoveEvent:()=>n.mouseMoveEvent,mouseOutEvent:()=>n.mouseOutEvent,mouseUpEvent:()=>n.mouseUpEvent,none:()=>n.none,one:()=>n.one,originPoint:()=>n.originPoint,paintBase:()=>Oe.paintBase,paintImage:()=>Oe.paintImage,parseAlpha:()=>Pe.parseAlpha,percentDenominator:()=>n.percentDenominator,phaseNumerator:()=>n.phaseNumerator,posOffset:()=>n.posOffset,qTreeCapacity:()=>n.qTreeCapacity,quarter:()=>n.quarter,randomColorValue:()=>n.randomColorValue,randomInRange:()=>Pe.randomInRange,rangeColorToHsl:()=>Te.rangeColorToHsl,rangeColorToRgb:()=>Te.rangeColorToRgb,rectBounce:()=>Ae.rectBounce,removeDeleteCount:()=>n.removeDeleteCount,removeMinIndex:()=>n.removeMinIndex,resizeEvent:()=>n.resizeEvent,rgbFactor:()=>n.rgbFactor,rgbMax:()=>n.rgbMax,rgbToHsl:()=>Te.rgbToHsl,rollFactor:()=>n.rollFactor,sMax:()=>n.sMax,sMin:()=>n.sMin,sNormalizedOffset:()=>n.sNormalizedOffset,safeIntersectionObserver:()=>Ae.safeIntersectionObserver,safeMatchMedia:()=>Ae.safeMatchMedia,safeMutationObserver:()=>Ae.safeMutationObserver,setAnimationFunctions:()=>Pe.setAnimationFunctions,setLogger:()=>Ae.setLogger,setRandom:()=>Pe.setRandom,setRangeValue:()=>Pe.setRangeValue,sextuple:()=>n.sextuple,singleDivModeExecute:()=>Ae.singleDivModeExecute,sizeFactor:()=>n.sizeFactor,squareExp:()=>n.squareExp,stringToAlpha:()=>Te.stringToAlpha,stringToRgb:()=>Te.stringToRgb,subdivideCount:()=>n.subdivideCount,threeQuarter:()=>n.threeQuarter,touchCancelEvent:()=>n.touchCancelEvent,touchDelay:()=>n.touchDelay,touchEndEvent:()=>n.touchEndEvent,touchEndLengthOffset:()=>n.touchEndLengthOffset,touchMoveEvent:()=>n.touchMoveEvent,touchStartEvent:()=>n.touchStartEvent,triple:()=>n.triple,tryCountIncrement:()=>n.tryCountIncrement,updateAnimation:()=>Ae.updateAnimation,updateColor:()=>Te.updateColor,updateColorValue:()=>Te.updateColorValue,visibilityChangeEvent:()=>n.visibilityChangeEvent,zIndexFactorOffset:()=>n.zIndexFactorOffset});var n=r(696),i=r(786),o=r(787),a=r(779),s=r(781),c=r(700),u=r(699),l=r(788),p=r(705),f=r(702),h=r(744),d=r(767),m=r(760),y=r(706),g=r(736),v=r(733),b=r(711),S=r(704),_=r(789),E=r(776),w=r(778),x=r(707),O=r(726),T=r(790),P=r(715),C=r(703),A=r(714),k=r(739),R=r(742),I=r(717),D=r(719),M=r(720),N=r(741),F=r(721),L=r(740),j=r(724),B=r(725),U=r(723),V=r(727),z=r(728),H=r(729),q=r(722),G=r(730),W=r(731),K=r(716),$=r(718),Y=r(747),X=r(748),Q=r(743),J=r(745),Z=r(746),ee=r(738),te=r(768),re=r(772),ne=r(753),ie=r(751),oe=r(752),ae=r(754),se=r(755),ce=r(759),ue=r(756),le=r(761),pe=r(757),fe=r(764),he=r(766),de=r(765),me=r(762),ye=r(763),ge=r(769),ve=r(770),be=r(771),Se=r(773),_e=r(732),Ee=r(734),we=r(735),xe=r(749),Oe=r(710),Te=r(712),Pe=r(698),Ce=r(737),Ae=r(697),ke=r(701)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ExternalInteractorBase:()=>i});var n=r(776);class i{constructor(e){this.type=n.InteractorType.external,this.container=e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesInteractorBase:()=>i});var n=r(776);class i{constructor(e){this.type=n.InteractorType.particles,this.container=e}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{RotateDirection:()=>n}),function(e){e.clockwise="clockwise",e.counterClockwise="counter-clockwise",e.random="random"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{GradientType:()=>n}),function(e){e.linear="linear",e.radial="radial",e.random="random"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{EasingType:()=>n}),function(e){e.easeInBack="ease-in-back",e.easeInCirc="ease-in-circ",e.easeInCubic="ease-in-cubic",e.easeInLinear="ease-in-linear",e.easeInQuad="ease-in-quad",e.easeInQuart="ease-in-quart",e.easeInQuint="ease-in-quint",e.easeInExpo="ease-in-expo",e.easeInSine="ease-in-sine",e.easeOutBack="ease-out-back",e.easeOutCirc="ease-out-circ",e.easeOutCubic="ease-out-cubic",e.easeOutLinear="ease-out-linear",e.easeOutQuad="ease-out-quad",e.easeOutQuart="ease-out-quart",e.easeOutQuint="ease-out-quint",e.easeOutExpo="ease-out-expo",e.easeOutSine="ease-out-sine",e.easeInOutBack="ease-in-out-back",e.easeInOutCirc="ease-in-out-circ",e.easeInOutCubic="ease-in-out-cubic",e.easeInOutLinear="ease-in-out-linear",e.easeInOutQuad="ease-in-out-quad",e.easeInOutQuart="ease-in-out-quart",e.easeInOutQuint="ease-in-out-quint",e.easeInOutExpo="ease-in-out-expo",e.easeInOutSine="ease-in-out-sine"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t);r(792),r(793),r(794),r(795),r(796),r(797),r(798),r(799),r(800),r(801),r(802),r(803),r(804),r(805),r(806),r(807),r(808),r(809),r(810),r(811),r(812),r(813),r(814),r(815),r(816),r(817),r(818),r(819),r(820),r(821),r(822),r(823),r(824),r(825),r(826),r(827),r(828),r(829),r(830),r(831),r(832),r(833),r(834),r(835),r(836),r(837),r(838),r(839),r(840),r(841),r(842),r(843),r(844),r(845),r(846),r(847),r(848),r(849),r(850),r(851),r(852),r(853),r(854),r(855),r(856),r(857),r(858),r(859),r(860),r(861),r(862),r(863),r(864),r(865),r(866),r(867),r(868),r(869),r(870),r(871),r(872),r(873),r(874),r(875),r(876),r(877),r(878),r(879),r(880),r(881),r(882),r(883),r(884),r(885),r(886),r(887),r(888),r(889),r(890)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(285),i=r(693);const o=e=>{const t=e.id??"tsparticles";return(0,n.useEffect)((()=>{let r;return i.tsParticles.load({id:t,url:e.url,options:e.options}).then((t=>{var n;r=t,null==(n=e.particlesLoaded)||n.call(e,t)})),()=>{null==r||r.destroy()}}),[t,e,e.url,e.options]),(0,n.jsx)("div",{id:t,className:e.className})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadConfettiPreset:()=>h});var n=r(893),i=r(919),o=r(937),a=r(943),s=r(948),c=r(954),u=r(958),l=r(961),p=r(966),f=r(971);async function h(e){await async function(e,t=!0){await(0,n.loadBasic)(e,!1),await(0,u.loadSquareShape)(e,!1),await(0,i.loadEmittersPlugin)(e,!1),await(0,a.loadMotionPlugin)(e,!1),await(0,p.loadWobbleUpdater)(e,!1),await(0,s.loadRollUpdater)(e,!1),await(0,c.loadRotateUpdater)(e,!1),await(0,l.loadTiltUpdater)(e,!1),await(0,o.loadLifeUpdater)(e,!1),await e.addPreset("confetti",f.options,!1),await e.refresh(t)}(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadBasic:()=>f});var n=r(894),i=r(897),o=r(900),a=r(902),s=r(904),c=r(906),u=r(908),l=r(915),p=r(917);async function f(e,t=!0){e.checkVersion("3.8.1"),await(0,a.loadHexColorPlugin)(e,!1),await(0,s.loadHslColorPlugin)(e,!1),await(0,l.loadRgbColorPlugin)(e,!1),await(0,n.loadBaseMover)(e,!1),await(0,i.loadCircleShape)(e,!1),await(0,o.loadColorUpdater)(e,!1),await(0,c.loadOpacityUpdater)(e,!1),await(0,u.loadOutModesUpdater)(e,!1),await(0,p.loadSizeUpdater)(e,!1),await e.refresh(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadBaseMover:()=>i});var n=r(895);async function i(e,t=!0){e.checkVersion("3.8.1"),await e.addMover("base",(()=>Promise.resolve(new n.BaseMover)),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseMover:()=>o});var n=r(693),i=r(896);class o{init(e){const t=e.options.move.gravity;e.gravity={enable:t.enable,acceleration:(0,n.getRangeValue)(t.acceleration),inverse:t.inverse},(0,i.initSpin)(e)}isEnabled(e){return!e.destroyed&&e.options.move.enable}move(e,t){const r=e.options,o=r.move;if(!o.enable)return;const a=e.container,s=a.retina.pixelRatio;e.retina.moveSpeed??=(0,n.getRangeValue)(o.speed)*s,e.retina.moveDrift??=(0,n.getRangeValue)(e.options.move.drift)*s;const c=(0,i.getProximitySpeedFactor)(e),u=e.retina.moveSpeed*a.retina.reduceFactor,l=e.retina.moveDrift,p=(0,n.getRangeMax)(r.size.value)*s,f=u*(o.size?e.getRadius()/p:1)*c*(t.factor||1)/2,h=e.retina.maxSpeed??a.retina.maxSpeed;o.spin.enable?(0,i.spin)(e,f):(0,i.move)(e,o,f,h,l,t),(0,i.applyDistance)(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyDistance:()=>p,applyPath:()=>d,getProximitySpeedFactor:()=>m,initSpin:()=>y,move:()=>f,spin:()=>h});var n=r(693);const i=.5,o=0,a=1,s=60,c=0,u=.01,l=2*Math.PI;function p(e){const t=e.initialPosition,{dx:r,dy:a}=(0,n.getDistances)(t,e.position),s=Math.abs(r),c=Math.abs(a),{maxDistance:u}=e.retina,l=u.horizontal,p=u.vertical;if(!l&&!p)return;if(!((l&&s>=l)??!1)&&!((p&&c>=p)??!1)||e.misplaced){if((!l||s<l)&&(!p||c<p)&&e.misplaced)e.misplaced=!1;else if(e.misplaced){const r=e.position,i=e.velocity;l&&(r.x<t.x&&i.x<o||r.x>t.x&&i.x>o)&&(i.x*=-(0,n.getRandom)()),p&&(r.y<t.y&&i.y<o||r.y>t.y&&i.y>o)&&(i.y*=-(0,n.getRandom)())}}else e.misplaced=!!l&&s>l||!!p&&c>p,l&&(e.velocity.x=e.velocity.y*i-e.velocity.x),p&&(e.velocity.y=e.velocity.x*i-e.velocity.y)}function f(e,t,r,n,i,c){d(e,c);const u=e.gravity,l=u?.enable&&u.inverse?-a:a;i&&r&&(e.velocity.x+=i*c.factor/(s*r)),u?.enable&&r&&(e.velocity.y+=l*(u.acceleration*c.factor)/(s*r));const p=e.moveDecay;e.velocity.multTo(p);const f=e.velocity.mult(r);u?.enable&&n>o&&(!u.inverse&&f.y>=o&&f.y>=n||u.inverse&&f.y<=o&&f.y<=-n)&&(f.y=l*n,r&&(e.velocity.y=f.y/r));const h=e.options.zIndex,m=(a-e.zIndexFactor)**h.velocityRate;f.multTo(m);const{position:y}=e;y.addTo(f),t.vibrate&&(y.x+=Math.sin(y.x*Math.cos(y.y)),y.y+=Math.cos(y.y*Math.sin(y.x)))}function h(e,t){const r=e.container;if(!e.spin)return;const o=e.spin.direction===n.RotateDirection.clockwise,s={x:o?Math.cos:Math.sin,y:o?Math.sin:Math.cos};e.position.x=e.spin.center.x+e.spin.radius*s.x(e.spin.angle),e.position.y=e.spin.center.y+e.spin.radius*s.y(e.spin.angle),e.spin.radius+=e.spin.acceleration;const l=Math.max(r.canvas.size.width,r.canvas.size.height),p=l*i;e.spin.radius>p?(e.spin.radius=p,e.spin.acceleration*=-a):e.spin.radius<c&&(e.spin.radius=c,e.spin.acceleration*=-a),e.spin.angle+=t*u*(a-e.spin.radius/l)}function d(e,t){const r=e.options.move.path;if(!r.enable)return;if(e.lastPathTime<=e.pathDelay)return void(e.lastPathTime+=t.value);const i=e.pathGenerator?.generate(e,t);i&&e.velocity.addTo(i),r.clamp&&(e.velocity.x=(0,n.clamp)(e.velocity.x,-a,a),e.velocity.y=(0,n.clamp)(e.velocity.y,-a,a)),e.lastPathTime-=e.pathDelay}function m(e){return e.slow.inRange?e.slow.factor:a}function y(e){const t=e.container,r=e.options.move.spin;if(!r.enable)return;const i=r.position??{x:50,y:50},a={x:.01*i.x*t.canvas.size.width,y:.01*i.y*t.canvas.size.height},s=e.getPosition(),c=(0,n.getDistance)(s,a),u=(0,n.getRangeValue)(r.acceleration);e.retina.spinAcceleration=u*t.retina.pixelRatio,e.spin={center:a,direction:e.velocity.x>=o?n.RotateDirection.clockwise:n.RotateDirection.counterClockwise,angle:(0,n.getRandom)()*l,radius:c,acceleration:e.retina.spinAcceleration}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadCircleShape:()=>i});var n=r(898);async function i(e,t=!0){e.checkVersion("3.8.1"),await e.addShape(new n.CircleDrawer,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CircleDrawer:()=>o});var n=r(693),i=r(899);class o{constructor(){this.validTypes=["circle"]}draw(e){(0,i.drawCircle)(e)}getSidesCount(){return 12}particleInit(e,t){const r=t.shapeData,i=r?.angle??{max:360,min:0};t.circleRange=(0,n.isObject)(i)?{min:(0,n.degToRad)(i.min),max:(0,n.degToRad)(i.max)}:{min:0,max:(0,n.degToRad)(i)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{drawCircle:()=>a});const n=2*Math.PI,i=0,o={x:0,y:0};function a(e){const{context:t,particle:r,radius:a}=e;r.circleRange||(r.circleRange={min:i,max:n});const s=r.circleRange;t.arc(o.x,o.y,a,s.min,s.max,!1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadColorUpdater:()=>i});var n=r(901);async function i(e,t=!0){e.checkVersion("3.8.1"),await e.addParticleUpdater("color",(t=>Promise.resolve(new n.ColorUpdater(t,e))),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ColorUpdater:()=>i});var n=r(693);class i{constructor(e,t){this._container=e,this._engine=t}init(e){const t=(0,n.rangeColorToHsl)(this._engine,e.options.color,e.id,e.options.reduceDuplicates);t&&(e.color=(0,n.getHslAnimationFromHsl)(t,e.options.color.animation,this._container.retina.reduceFactor))}isEnabled(e){const{h:t,s:r,l:n}=e.options.color.animation,{color:i}=e;return!e.destroyed&&!e.spawning&&(void 0!==i?.h.value&&t.enable||void 0!==i?.s.value&&r.enable||void 0!==i?.l.value&&n.enable)}update(e,t){(0,n.updateColor)(e.color,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadHexColorPlugin:()=>i});var n=r(903);async function i(e,t=!0){e.checkVersion("3.8.1"),await e.addColorManager(new n.HexColorManager,t)}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{HexColorManager:()=>a}),function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=4]="a"}(n||(n={}));const i=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class a{constructor(){this.key="hex",this.stringPrefix="#"}handleColor(e){return this._parseString(e.value)}handleRangeColor(e){return this._parseString(e.value)}parseString(e){return this._parseString(e)}_parseString(e){if("string"!=typeof e)return;if(!e?.startsWith(this.stringPrefix))return;const t=e.replace(i,((e,t,r,n,i)=>t+t+r+r+n+n+(void 0!==i?i+i:""))),r=o.exec(t);return r?{a:void 0!==r[n.a]?parseInt(r[n.a],16)/255:1,b:parseInt(r[n.b],16),g:parseInt(r[n.g],16),r:parseInt(r[n.r],16)}:void 0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadHslColorPlugin:()=>i});var n=r(905);async function i(e,t=!0){e.checkVersion("3.8.1"),await e.addColorManager(new n.HslColorManager,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HslColorManager:()=>o});var n,i=r(693);!function(e){e[e.h=1]="h",e[e.s=2]="s",e[e.l=3]="l",e[e.a=5]="a"}(n||(n={}));class o{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(e){const t=e.value.hsl??e.value;if(void 0!==t.h&&void 0!==t.s&&void 0!==t.l)return(0,i.hslToRgb)(t)}handleRangeColor(e){const t=e.value.hsl??e.value;if(void 0!==t.h&&void 0!==t.l)return(0,i.hslToRgb)({h:(0,i.getRangeValue)(t.h),l:(0,i.getRangeValue)(t.l),s:(0,i.getRangeValue)(t.s)})}parseString(e){if(!e.startsWith("hsl"))return;const t=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i.exec(e);return t?(0,i.hslaToRgba)({a:t.length>4?(0,i.parseAlpha)(t[n.a]):1,h:parseInt(t[n.h],10),l:parseInt(t[n.l],10),s:parseInt(t[n.s],10)}):void 0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadOpacityUpdater:()=>i});var n=r(907);async function i(e,t=!0){e.checkVersion("3.8.1"),await e.addParticleUpdater("opacity",(e=>Promise.resolve(new n.OpacityUpdater(e))),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OpacityUpdater:()=>i});var n=r(693);class i{constructor(e){this.container=e}init(e){const t=e.options.opacity;e.opacity=(0,n.initParticleNumericAnimationValue)(t,1);const r=t.animation;r.enable&&(e.opacity.velocity=(0,n.getRangeValue)(r.speed)/n.percentDenominator*this.container.retina.reduceFactor,r.sync||(e.opacity.velocity*=(0,n.getRandom)()))}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.opacity&&e.opacity.enable&&((e.opacity.maxLoops??0)<=0||(e.opacity.maxLoops??0)>0&&(e.opacity.loops??0)<(e.opacity.maxLoops??0))}reset(e){e.opacity&&(e.opacity.time=0,e.opacity.loops=0)}update(e,t){this.isEnabled(e)&&e.opacity&&(0,n.updateAnimation)(e,e.opacity,!0,e.options.opacity.animation.destroy,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadOutModesUpdater:()=>i});var n=r(909);async function i(e,t=!0){e.checkVersion("3.8.1"),await e.addParticleUpdater("outModes",(e=>Promise.resolve(new n.OutOfCanvasUpdater(e))),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OutOfCanvasUpdater:()=>c});var n=r(693),i=r(910),o=r(912),a=r(913),s=r(914);class c{constructor(e){this._addUpdaterIfMissing=(e,t,r)=>{const n=e.options.move.outModes;!this.updaters.has(t)&&((e,t)=>e.default===t||e.bottom===t||e.left===t||e.right===t||e.top===t)(n,t)&&this.updaters.set(t,r(this.container))},this._updateOutMode=(e,t,r,n)=>{for(const i of this.updaters.values())i.update(e,n,t,r)},this.container=e,this.updaters=new Map}init(e){this._addUpdaterIfMissing(e,n.OutMode.bounce,(e=>new i.BounceOutMode(e))),this._addUpdaterIfMissing(e,n.OutMode.out,(e=>new s.OutOutMode(e))),this._addUpdaterIfMissing(e,n.OutMode.destroy,(e=>new o.DestroyOutMode(e))),this._addUpdaterIfMissing(e,n.OutMode.none,(e=>new a.NoneOutMode(e)))}isEnabled(e){return!e.destroyed&&!e.spawning}update(e,t){const r=e.options.move.outModes;this._updateOutMode(e,t,r.bottom??r.default,n.OutModeDirection.bottom),this._updateOutMode(e,t,r.left??r.default,n.OutModeDirection.left),this._updateOutMode(e,t,r.right??r.default,n.OutModeDirection.right),this._updateOutMode(e,t,r.top??r.default,n.OutModeDirection.top)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BounceOutMode:()=>o});var n=r(693),i=r(911);class o{constructor(e){this.container=e,this.modes=[n.OutMode.bounce,n.OutMode.split]}update(e,t,r,o){if(!this.modes.includes(o))return;const a=this.container;let s=!1;for(const n of a.plugins.values())if(void 0!==n.particleBounce&&(s=n.particleBounce(e,r,t)),s)break;if(s)return;const c=e.getPosition(),u=e.offset,l=e.getRadius(),p=(0,n.calculateBounds)(c,l),f=a.canvas.size;(0,i.bounceHorizontal)({particle:e,outMode:o,direction:t,bounds:p,canvasSize:f,offset:u,size:l}),(0,i.bounceVertical)({particle:e,outMode:o,direction:t,bounds:p,canvasSize:f,offset:u,size:l})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bounceHorizontal:()=>a,bounceVertical:()=>s});var n=r(693);const i=0,o=0;function a(e){if(e.outMode!==n.OutMode.bounce&&e.outMode!==n.OutMode.split||e.direction!==n.OutModeDirection.left&&e.direction!==n.OutModeDirection.right)return;e.bounds.right<o&&e.direction===n.OutModeDirection.left?e.particle.position.x=e.size+e.offset.x:e.bounds.left>e.canvasSize.width&&e.direction===n.OutModeDirection.right&&(e.particle.position.x=e.canvasSize.width-e.size-e.offset.x);const t=e.particle.velocity.x;let r=!1;if(e.direction===n.OutModeDirection.right&&e.bounds.right>=e.canvasSize.width&&t>i||e.direction===n.OutModeDirection.left&&e.bounds.left<=o&&t<i){const t=(0,n.getRangeValue)(e.particle.options.bounce.horizontal.value);e.particle.velocity.x*=-t,r=!0}if(!r)return;const a=e.offset.x+e.size;e.bounds.right>=e.canvasSize.width&&e.direction===n.OutModeDirection.right?e.particle.position.x=e.canvasSize.width-a:e.bounds.left<=o&&e.direction===n.OutModeDirection.left&&(e.particle.position.x=a),e.outMode===n.OutMode.split&&e.particle.destroy()}function s(e){if(e.outMode!==n.OutMode.bounce&&e.outMode!==n.OutMode.split||e.direction!==n.OutModeDirection.bottom&&e.direction!==n.OutModeDirection.top)return;e.bounds.bottom<o&&e.direction===n.OutModeDirection.top?e.particle.position.y=e.size+e.offset.y:e.bounds.top>e.canvasSize.height&&e.direction===n.OutModeDirection.bottom&&(e.particle.position.y=e.canvasSize.height-e.size-e.offset.y);const t=e.particle.velocity.y;let r=!1;if(e.direction===n.OutModeDirection.bottom&&e.bounds.bottom>=e.canvasSize.height&&t>i||e.direction===n.OutModeDirection.top&&e.bounds.top<=o&&t<i){const t=(0,n.getRangeValue)(e.particle.options.bounce.vertical.value);e.particle.velocity.y*=-t,r=!0}if(!r)return;const a=e.offset.y+e.size;e.bounds.bottom>=e.canvasSize.height&&e.direction===n.OutModeDirection.bottom?e.particle.position.y=e.canvasSize.height-a:e.bounds.top<=o&&e.direction===n.OutModeDirection.top&&(e.particle.position.y=a),e.outMode===n.OutMode.split&&e.particle.destroy()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DestroyOutMode:()=>i});var n=r(693);class i{constructor(e){this.container=e,this.modes=[n.OutMode.destroy]}update(e,t,r,i){if(!this.modes.includes(i))return;const o=this.container;switch(e.outType){case n.ParticleOutType.normal:case n.ParticleOutType.outside:if((0,n.isPointInside)(e.position,o.canvas.size,n.Vector.origin,e.getRadius(),t))return;break;case n.ParticleOutType.inside:{const{dx:t,dy:r}=(0,n.getDistances)(e.position,e.moveCenter),{x:i,y:o}=e.velocity;if(i<0&&t>e.moveCenter.radius||o<0&&r>e.moveCenter.radius||i>=0&&t<-e.moveCenter.radius||o>=0&&r<-e.moveCenter.radius)return;break}}o.particles.remove(e,e.group,!0)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{NoneOutMode:()=>i});var n=r(693);class i{constructor(e){this.container=e,this.modes=[n.OutMode.none]}update(e,t,r,i){if(!this.modes.includes(i))return;if((e.options.move.distance.horizontal&&(t===n.OutModeDirection.left||t===n.OutModeDirection.right))??(e.options.move.distance.vertical&&(t===n.OutModeDirection.top||t===n.OutModeDirection.bottom)))return;const o=e.options.move.gravity,a=this.container,s=a.canvas.size,c=e.getRadius();if(o.enable){const r=e.position;(!o.inverse&&r.y>s.height+c&&t===n.OutModeDirection.bottom||o.inverse&&r.y<-c&&t===n.OutModeDirection.top)&&a.particles.remove(e)}else{if(e.velocity.y>0&&e.position.y<=s.height+c||e.velocity.y<0&&e.position.y>=-c||e.velocity.x>0&&e.position.x<=s.width+c||e.velocity.x<0&&e.position.x>=-c)return;(0,n.isPointInside)(e.position,a.canvas.size,n.Vector.origin,c,t)||a.particles.remove(e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OutOutMode:()=>i});var n=r(693);class i{constructor(e){this.container=e,this.modes=[n.OutMode.out]}update(e,t,r,i){if(!this.modes.includes(i))return;const o=this.container;switch(e.outType){case n.ParticleOutType.inside:{const{x:t,y:r}=e.velocity,i=n.Vector.origin;i.length=e.moveCenter.radius,i.angle=e.velocity.angle+Math.PI,i.addTo(n.Vector.create(e.moveCenter));const{dx:a,dy:s}=(0,n.getDistances)(e.position,i);if(t<=0&&a>=0||r<=0&&s>=0||t>=0&&a<=0||r>=0&&s<=0)return;e.position.x=Math.floor((0,n.randomInRange)({min:0,max:o.canvas.size.width})),e.position.y=Math.floor((0,n.randomInRange)({min:0,max:o.canvas.size.height}));const{dx:c,dy:u}=(0,n.getDistances)(e.position,e.moveCenter);e.direction=Math.atan2(-u,-c),e.velocity.angle=e.direction;break}default:if((0,n.isPointInside)(e.position,o.canvas.size,n.Vector.origin,e.getRadius(),t))return;switch(e.outType){case n.ParticleOutType.outside:{e.position.x=Math.floor((0,n.randomInRange)({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.x,e.position.y=Math.floor((0,n.randomInRange)({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.y;const{dx:t,dy:r}=(0,n.getDistances)(e.position,e.moveCenter);e.moveCenter.radius&&(e.direction=Math.atan2(r,t),e.velocity.angle=e.direction);break}case n.ParticleOutType.normal:{const r=e.options.move.warp,i=o.canvas.size,a={bottom:i.height+e.getRadius()+e.offset.y,left:-e.getRadius()-e.offset.x,right:i.width+e.getRadius()+e.offset.x,top:-e.getRadius()-e.offset.y},s=e.getRadius(),c=(0,n.calculateBounds)(e.position,s);t===n.OutModeDirection.right&&c.left>i.width+e.offset.x?(e.position.x=a.left,e.initialPosition.x=e.position.x,r||(e.position.y=(0,n.getRandom)()*i.height,e.initialPosition.y=e.position.y)):t===n.OutModeDirection.left&&c.right<-e.offset.x&&(e.position.x=a.right,e.initialPosition.x=e.position.x,r||(e.position.y=(0,n.getRandom)()*i.height,e.initialPosition.y=e.position.y)),t===n.OutModeDirection.bottom&&c.top>i.height+e.offset.y?(r||(e.position.x=(0,n.getRandom)()*i.width,e.initialPosition.x=e.position.x),e.position.y=a.top,e.initialPosition.y=e.position.y):t===n.OutModeDirection.top&&c.bottom<-e.offset.y&&(r||(e.position.x=(0,n.getRandom)()*i.width,e.initialPosition.x=e.position.x),e.position.y=a.bottom,e.initialPosition.y=e.position.y);break}}}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadRgbColorPlugin:()=>i});var n=r(916);async function i(e,t=!0){e.checkVersion("3.8.1"),await e.addColorManager(new n.RgbColorManager,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RgbColorManager:()=>o});var n,i=r(693);!function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=5]="a"}(n||(n={}));class o{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(e){const t=e.value.rgb??e.value;if(void 0!==t.r)return t}handleRangeColor(e){const t=e.value.rgb??e.value;if(void 0!==t.r)return{r:(0,i.getRangeValue)(t.r),g:(0,i.getRangeValue)(t.g),b:(0,i.getRangeValue)(t.b)}}parseString(e){if(!e.startsWith(this.stringPrefix))return;const t=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i.exec(e);return t?{a:t.length>4?(0,i.parseAlpha)(t[n.a]):1,b:parseInt(t[n.b],10),g:parseInt(t[n.g],10),r:parseInt(t[n.r],10)}:void 0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadSizeUpdater:()=>i});var n=r(918);async function i(e,t=!0){e.checkVersion("3.8.1"),await e.addParticleUpdater("size",(()=>Promise.resolve(new n.SizeUpdater)),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SizeUpdater:()=>i});var n=r(693);class i{init(e){const t=e.container,r=e.options.size.animation;r.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??t.retina.sizeAnimationSpeed)/n.percentDenominator*t.retina.reduceFactor,r.sync||(e.size.velocity*=(0,n.getRandom)()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??0)<=0||(e.size.maxLoops??0)>0&&(e.size.loops??0)<(e.size.maxLoops??0))}reset(e){e.size.loops=0}update(e,t){this.isEnabled(e)&&(0,n.updateAnimation)(e,e.size,!0,e.options.size.animation.destroy,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterClickMode:()=>a.EmitterClickMode,EmitterShapeBase:()=>o.EmitterShapeBase,loadEmittersPlugin:()=>s});var n=r(920),i=r(930),o=(r(931),r(932)),a=(r(933),r(934),r(935),r(927));r(936);async function s(e,t=!0){e.checkVersion("3.8.1"),e.emitterShapeManager||(e.emitterShapeManager=new i.ShapeManager(e)),e.addEmitterShapeGenerator||(e.addEmitterShapeGenerator=(t,r)=>{e.emitterShapeManager?.addShapeGenerator(t,r)});const r=new n.EmittersPlugin(e);await e.addPlugin(r,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmittersPlugin:()=>s});var n=r(693),i=r(921),o=r(927),a=r(928);class s{constructor(e){this._engine=e,this.id="emitters"}getPlugin(e){return Promise.resolve(new a.Emitters(this._engine,e))}loadOptions(e,t){if(!this.needsPlugin(e)&&!this.needsPlugin(t))return;t?.emitters&&(e.emitters=(0,n.executeOnSingleOrMultiple)(t.emitters,(e=>{const t=new i.Emitter;return t.load(e),t})));const r=t?.interactivity?.modes?.emitters;if(r)if((0,n.isArray)(r))e.interactivity.modes.emitters={random:{count:1,enable:!0},value:r.map((e=>{const t=new i.Emitter;return t.load(e),t}))};else{const t=r;if(void 0!==t.value){const r=1;if((0,n.isArray)(t.value))e.interactivity.modes.emitters={random:{count:t.random.count??r,enable:t.random.enable??!1},value:t.value.map((e=>{const t=new i.Emitter;return t.load(e),t}))};else{const n=new i.Emitter;n.load(t.value),e.interactivity.modes.emitters={random:{count:t.random.count??r,enable:t.random.enable??!1},value:n}}}else{(e.interactivity.modes.emitters={random:{count:1,enable:!1},value:new i.Emitter}).value.load(r)}}}needsPlugin(e){if(!e)return!1;const t=e.emitters;return(0,n.isArray)(t)&&!!t.length||void 0!==t||!!e.interactivity?.events?.onClick?.mode&&(0,n.isInArray)(o.EmitterClickMode.emitter,e.interactivity.events.onClick.mode)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Emitter:()=>c});var n=r(693),i=r(922),o=r(923),a=r(924),s=r(926);class c{constructor(){this.autoPlay=!0,this.fill=!0,this.life=new i.EmitterLife,this.rate=new o.EmitterRate,this.shape=new a.EmitterShape,this.startCount=0}load(e){(0,n.isNull)(e)||(void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.size&&(this.size||(this.size=new s.EmitterSize),this.size.load(e.size)),void 0!==e.direction&&(this.direction=e.direction),this.domId=e.domId,void 0!==e.fill&&(this.fill=e.fill),this.life.load(e.life),this.name=e.name,this.particles=(0,n.executeOnSingleOrMultiple)(e.particles,(e=>(0,n.deepExtend)({},e))),this.rate.load(e.rate),this.shape.load(e.shape),void 0!==e.position&&(this.position={},void 0!==e.position.x&&(this.position.x=(0,n.setRangeValue)(e.position.x)),void 0!==e.position.y&&(this.position.y=(0,n.setRangeValue)(e.position.y))),void 0!==e.spawnColor&&(void 0===this.spawnColor&&(this.spawnColor=new n.AnimatableColor),this.spawnColor.load(e.spawnColor)),void 0!==e.startCount&&(this.startCount=e.startCount))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterLife:()=>i});var n=r(693);class i{constructor(){this.wait=!1}load(e){(0,n.isNull)(e)||(void 0!==e.count&&(this.count=e.count),void 0!==e.delay&&(this.delay=(0,n.setRangeValue)(e.delay)),void 0!==e.duration&&(this.duration=(0,n.setRangeValue)(e.duration)),void 0!==e.wait&&(this.wait=e.wait))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterRate:()=>i});var n=r(693);class i{constructor(){this.quantity=1,this.delay=.1}load(e){(0,n.isNull)(e)||(void 0!==e.quantity&&(this.quantity=(0,n.setRangeValue)(e.quantity)),void 0!==e.delay&&(this.delay=(0,n.setRangeValue)(e.delay)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterShape:()=>o});var n=r(693),i=r(925);class o{constructor(){this.options={},this.replace=new i.EmitterShapeReplace,this.type="square"}load(e){(0,n.isNull)(e)||(void 0!==e.options&&(this.options=(0,n.deepExtend)({},e.options??{})),this.replace.load(e.replace),void 0!==e.type&&(this.type=e.type))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterShapeReplace:()=>i});var n=r(693);class i{constructor(){this.color=!1,this.opacity=!1}load(e){(0,n.isNull)(e)||(void 0!==e.color&&(this.color=e.color),void 0!==e.opacity&&(this.opacity=e.opacity))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterSize:()=>i});var n=r(693);class i{constructor(){this.mode=n.PixelMode.percent,this.height=0,this.width=0}load(e){(0,n.isNull)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.height&&(this.height=e.height),void 0!==e.width&&(this.width=e.width))}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{EmitterClickMode:()=>n}),function(e){e.emitter="emitter"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Emitters:()=>s});var n=r(693),i=r(921),o=r(927),a=r(929);class s{constructor(e,t){this.container=t,this._engine=e,this.array=[],this.emitters=[],this.interactivityEmitters={random:{count:1,enable:!1},value:[]};t.getEmitter=e=>void 0===e||(0,n.isNumber)(e)?this.array[e??0]:this.array.find((t=>t.name===e)),t.addEmitter=async(e,t)=>this.addEmitter(e,t),t.removeEmitter=e=>{const r=t.getEmitter(e);r&&this.removeEmitter(r)},t.playEmitter=e=>{const r=t.getEmitter(e);r&&r.externalPlay()},t.pauseEmitter=e=>{const r=t.getEmitter(e);r&&r.externalPause()}}async addEmitter(e,t){const r=new i.Emitter;r.load(e);const n=new a.EmitterInstance(this._engine,this,this.container,r,t);return await n.init(),this.array.push(n),n}handleClickMode(e){const t=this.emitters,r=this.interactivityEmitters;if(e!==o.EmitterClickMode.emitter)return;let i;if(r&&(0,n.isArray)(r.value)){const e=0;if(r.value.length>e&&r.random.enable){i=[];const e=[];for(let t=0;t<r.random.count;t++){const o=(0,n.arrayRandomIndex)(r.value);e.includes(o)&&e.length<r.value.length?t--:(e.push(o),i.push((0,n.itemFromArray)(r.value,o)))}}else i=r.value}else i=r?.value;const a=i??t,s=this.container.interactivity.mouse.clickPosition;(0,n.executeOnSingleOrMultiple)(a,(async e=>{await this.addEmitter(e,s)}))}async init(){if(this.emitters=this.container.actualOptions.emitters,this.interactivityEmitters=this.container.actualOptions.interactivity.modes.emitters,this.emitters)if((0,n.isArray)(this.emitters))for(const e of this.emitters)await this.addEmitter(e);else await this.addEmitter(this.emitters)}pause(){for(const e of this.array)e.pause()}play(){for(const e of this.array)e.play()}removeEmitter(e){const t=this.array.indexOf(e);t>=0&&this.array.splice(t,1)}resize(){for(const e of this.array)e.resize()}stop(){this.array=[]}update(e){for(const t of this.array)t.update(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterInstance:()=>s});var n=r(693),i=r(921),o=r(926);function a(e,t){e.color?e.color.value=t:e.color={value:t}}class s{constructor(e,t,r,o,a){this.emitters=t,this.container=r,this._destroy=()=>{this._mutationObserver?.disconnect(),this._mutationObserver=void 0,this._resizeObserver?.disconnect(),this._resizeObserver=void 0,this.emitters.removeEmitter(this),this._engine.dispatchEvent("emitterDestroyed",{container:this.container,data:{emitter:this}})},this._prepareToDie=()=>{if(this._paused)return;const e=void 0!==this.options.life?.duration?(0,n.getRangeValue)(this.options.life.duration):void 0;this.container.retina.reduceFactor&&(this._lifeCount>0||this._immortal)&&void 0!==e&&e>0&&(this._duration=e*n.millisecondsToSeconds)},this._setColorAnimation=(e,t,r,i=1)=>{const o=this.container;if(!e.enable)return t;const a=(0,n.randomInRange)(e.offset),s=(0,n.getRangeValue)(this.options.rate.delay)*n.millisecondsToSeconds/o.retina.reduceFactor;return(t+(0,n.getRangeValue)(e.speed??0)*o.fpsLimit/s+a*i)%r},this._engine=e,this._currentDuration=0,this._currentEmitDelay=0,this._currentSpawnDelay=0,this._initialPosition=a,o instanceof i.Emitter?this.options=o:(this.options=new i.Emitter,this.options.load(o)),this._spawnDelay=(0,n.getRangeValue)(this.options.life.delay??0)*n.millisecondsToSeconds/this.container.retina.reduceFactor,this.position=this._initialPosition??this._calcPosition(),this.name=this.options.name,this.fill=this.options.fill,this._firstSpawn=!this.options.life.wait,this._startParticlesAdded=!1;let s=(0,n.deepExtend)({},this.options.particles);if(s??={},s.move??={},s.move.direction??=this.options.direction,this.options.spawnColor&&(this.spawnColor=(0,n.rangeColorToHsl)(this._engine,this.options.spawnColor)),this._paused=!this.options.autoPlay,this._particlesOptions=s,this._size=this._calcSize(),this.size=(0,n.getSize)(this._size,this.container.canvas.size),this._lifeCount=this.options.life.count??-1,this._immortal=this._lifeCount<=0,this.options.domId){const e=document.getElementById(this.options.domId);e&&(this._mutationObserver=new MutationObserver((()=>{this.resize()})),this._resizeObserver=new ResizeObserver((()=>{this.resize()})),this._mutationObserver.observe(e,{attributes:!0,attributeFilter:["style","width","height"]}),this._resizeObserver.observe(e))}const c=this.options.shape,u=this._engine.emitterShapeManager?.getShapeGenerator(c.type);u&&(this._shape=u.generate(this.position,this.size,this.fill,c.options)),this._engine.dispatchEvent("emitterCreated",{container:r,data:{emitter:this}}),this.play()}externalPause(){this._paused=!0,this.pause()}externalPlay(){this._paused=!1,this.play()}async init(){await(this._shape?.init())}pause(){this._paused||delete this._emitDelay}play(){if(!this._paused&&this.container.retina.reduceFactor&&(this._lifeCount>0||this._immortal||!this.options.life.count)&&(this._firstSpawn||this._currentSpawnDelay>=(this._spawnDelay??0))){if(void 0===this._emitDelay){const e=(0,n.getRangeValue)(this.options.rate.delay);this._emitDelay=e*n.millisecondsToSeconds/this.container.retina.reduceFactor}(this._lifeCount>0||this._immortal)&&this._prepareToDie()}}resize(){const e=this._initialPosition;this.position=e&&(0,n.isPointInside)(e,this.container.canvas.size,n.Vector.origin)?e:this._calcPosition(),this._size=this._calcSize(),this.size=(0,n.getSize)(this._size,this.container.canvas.size),this._shape?.resize(this.position,this.size)}update(e){this._paused||(this._firstSpawn&&(this._firstSpawn=!1,this._currentSpawnDelay=this._spawnDelay??0,this._currentEmitDelay=this._emitDelay??0),this._startParticlesAdded||(this._startParticlesAdded=!0,this._emitParticles(this.options.startCount)),void 0!==this._duration&&(this._currentDuration+=e.value,this._currentDuration>=this._duration&&(this.pause(),void 0!==this._spawnDelay&&delete this._spawnDelay,this._immortal||this._lifeCount--,this._lifeCount>0||this._immortal?(this.position=this._calcPosition(),this._shape?.resize(this.position,this.size),this._spawnDelay=(0,n.getRangeValue)(this.options.life.delay??0)*n.millisecondsToSeconds/this.container.retina.reduceFactor):this._destroy(),this._currentDuration-=this._duration,delete this._duration)),void 0!==this._spawnDelay&&(this._currentSpawnDelay+=e.value,this._currentSpawnDelay>=this._spawnDelay&&(this._engine.dispatchEvent("emitterPlay",{container:this.container}),this.play(),this._currentSpawnDelay-=this._currentSpawnDelay,delete this._spawnDelay)),void 0!==this._emitDelay&&(this._currentEmitDelay+=e.value,this._currentEmitDelay>=this._emitDelay&&(this._emit(),this._currentEmitDelay-=this._emitDelay)))}_calcPosition(){if(this.options.domId){const e=document.getElementById(this.options.domId);if(e){const t=e.getBoundingClientRect(),r=this.container.retina.pixelRatio;return{x:(t.x+.5*t.width)*r,y:(t.y+.5*t.height)*r}}}return(0,n.calcPositionOrRandomFromSizeRanged)({size:this.container.canvas.size,position:this.options.position})}_calcSize(){const e=this.container;if(this.options.domId){const t=document.getElementById(this.options.domId);if(t){const r=t.getBoundingClientRect();return{width:r.width*e.retina.pixelRatio,height:r.height*e.retina.pixelRatio,mode:n.PixelMode.precise}}}return this.options.size??(()=>{const e=new o.EmitterSize;return e.load({height:0,mode:n.PixelMode.percent,width:0}),e})()}_emit(){if(this._paused)return;const e=(0,n.getRangeValue)(this.options.rate.quantity);this._emitParticles(e)}_emitParticles(e){const t=(0,n.itemFromSingleOrMultiple)(this._particlesOptions);for(let r=0;r<e;r++){const e=(0,n.deepExtend)({},t);if(this.spawnColor){const t=this.options.spawnColor?.animation;if(t){const e={h:360,s:100,l:100},r=3.6;this.spawnColor.h=this._setColorAnimation(t.h,this.spawnColor.h,e.h,r),this.spawnColor.s=this._setColorAnimation(t.s,this.spawnColor.s,e.s),this.spawnColor.l=this._setColorAnimation(t.l,this.spawnColor.l,e.l)}a(e,this.spawnColor)}const r=this.options.shape;let i=this.position;if(this._shape){const t=this._shape.randomPosition();if(t){i=t.position;const n=r.replace;n.color&&t.color&&a(e,t.color),n.opacity&&(e.opacity?e.opacity.value=t.opacity:e.opacity={value:t.opacity})}else i=null}i&&this.container.particles.addParticle(i,e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ShapeManager:()=>i});const n=new Map;class i{constructor(e){this._engine=e}addShapeGenerator(e,t){this.getShapeGenerator(e)||n.set(e,t)}getShapeGenerator(e){return n.get(e)}getSupportedShapeGenerators(){return n.keys()}}},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterShapeBase:()=>n});class n{constructor(e,t,r,n){this.position=e,this.size=t,this.fill=r,this.options=n}resize(e,t){this.position=e,this.size=t}}},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadLifeUpdater:()=>i});var n=r(938);async function i(e,t=!0){e.checkVersion("3.8.1"),await e.addParticleUpdater("life",(async e=>Promise.resolve(new n.LifeUpdater(e))),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LifeUpdater:()=>a});var n=r(693),i=r(939),o=r(942);class a{constructor(e){this.container=e}init(e){const t=this.container,r=e.options.life;r&&(e.life={delay:t.retina.reduceFactor?(0,n.getRangeValue)(r.delay.value)*(r.delay.sync?1:(0,n.getRandom)())/t.retina.reduceFactor*n.millisecondsToSeconds:0,delayTime:0,duration:t.retina.reduceFactor?(0,n.getRangeValue)(r.duration.value)*(r.duration.sync?1:(0,n.getRandom)())/t.retina.reduceFactor*n.millisecondsToSeconds:0,time:0,count:r.count},e.life.duration<=0&&(e.life.duration=-1),e.life.count<=0&&(e.life.count=-1),e.life&&(e.spawning=e.life.delay>0))}isEnabled(e){return!e.destroyed}loadOptions(e,...t){e.life||(e.life=new i.Life);for(const r of t)e.life.load(r?.life)}update(e,t){this.isEnabled(e)&&e.life&&(0,o.updateLife)(e,t,this.container.canvas.size)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Life:()=>a});var n=r(693),i=r(940),o=r(941);class a{constructor(){this.count=0,this.delay=new i.LifeDelay,this.duration=new o.LifeDuration}load(e){(0,n.isNull)(e)||(void 0!==e.count&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LifeDelay:()=>i});var n=r(693);class i extends n.ValueWithRandom{constructor(){super(),this.sync=!1}load(e){(0,n.isNull)(e)||(super.load(e),void 0!==e.sync&&(this.sync=e.sync))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LifeDuration:()=>i});var n=r(693);class i extends n.ValueWithRandom{constructor(){super(),this.sync=!1}load(e){(0,n.isNull)(e)||(super.load(e),void 0!==e.sync&&(this.sync=e.sync))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{updateLife:()=>c});var n=r(693);const i=0,o=-1,a=0,s=0;function c(e,t,r){if(!e.life)return;const c=e.life;let u=!1;if(e.spawning){if(c.delayTime+=t.value,!(c.delayTime>=e.life.delay))return;u=!0,e.spawning=!1,c.delayTime=i,c.time=i}if(c.duration===o)return;if(e.spawning)return;if(u?c.time=i:c.time+=t.value,c.time<c.duration)return;if(c.time=i,e.life.count>a&&e.life.count--,e.life.count===a)return void e.destroy();const l=(0,n.setRangeValue)(s,r.width),p=(0,n.setRangeValue)(s,r.width);e.position.x=(0,n.randomInRange)(l),e.position.y=(0,n.randomInRange)(p),e.spawning=!0,c.delayTime=i,c.time=i,e.reset();const f=e.options.life;f&&(c.delay=(0,n.getRangeValue)(f.delay.value)*n.millisecondsToSeconds,c.duration=(0,n.getRangeValue)(f.duration.value)*n.millisecondsToSeconds)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadMotionPlugin:()=>i});var n=r(944);async function i(e,t=!0){e.checkVersion("3.8.1"),await e.addPlugin(new n.MotionPlugin(e),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MotionPlugin:()=>o});var n=r(945),i=r(947);class o{constructor(e){this.id="motion",this._engine=e}getPlugin(e){return Promise.resolve(new i.MotionInstance(e,this._engine))}loadOptions(e,t){if(!this.needsPlugin())return;let r=e.motion;r?.load||(e.motion=r=new n.Motion),r.load(t?.motion)}needsPlugin(){return!0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Motion:()=>o});var n=r(693),i=r(946);class o{constructor(){this.disable=!1,this.reduce=new i.MotionReduce}load(e){(0,n.isNull)(e)||(void 0!==e.disable&&(this.disable=e.disable),this.reduce.load(e.reduce))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MotionReduce:()=>i});var n=r(693);class i{constructor(){this.factor=4,this.value=!0}load(e){(0,n.isNull)(e)||(void 0!==e.factor&&(this.factor=e.factor),void 0!==e.value&&(this.value=e.value))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MotionInstance:()=>i});var n=r(693);class i{constructor(e,t){this._handleMotionChange=e=>{const t=this._container,r=t.actualOptions.motion;r&&(e.matches?r.disable?t.retina.reduceFactor=0:t.retina.reduceFactor=r.reduce.value?1/r.reduce.factor:1:t.retina.reduceFactor=1)},this._container=e,this._engine=t}async init(){const e=this._container,t=e.actualOptions.motion;if(!t||!t.disable&&!t.reduce.value)return void(e.retina.reduceFactor=1);const r=(0,n.safeMatchMedia)("(prefers-reduced-motion: reduce)");if(!r)return void(e.retina.reduceFactor=1);this._handleMotionChange(r);const i=()=>{(async()=>{this._handleMotionChange(r);try{await e.refresh()}catch{}})()};void 0!==r.addEventListener?r.addEventListener("change",i):void 0!==r.addListener&&r.addListener(i),await Promise.resolve()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadRollUpdater:()=>i});var n=r(949);async function i(e,t=!0){e.checkVersion("3.8.1"),await e.addParticleUpdater("roll",(()=>Promise.resolve(new n.RollUpdater(e))),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RollUpdater:()=>o});var n=r(950),i=r(952);class o{constructor(e){this._engine=e}getTransformValues(e){const t=e.roll?.enable&&e.roll,r=t&&t.horizontal,n=t&&t.vertical;return{a:r?Math.cos(t.angle):void 0,d:n?Math.sin(t.angle):void 0}}init(e){(0,n.initParticle)(this._engine,e)}isEnabled(e){const t=e.options.roll;return!e.destroyed&&!e.spawning&&!!t?.enable}loadOptions(e,...t){e.roll||(e.roll=new i.Roll);for(const r of t)e.roll.load(r?.roll)}update(e,t){this.isEnabled(e)&&(0,n.updateRoll)(e,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initParticle:()=>s,updateRoll:()=>c});var n=r(693),i=r(951);const o=2*Math.PI,a=360;function s(e,t){const r=t.options.roll;if(r?.enable)if(t.roll={enable:r.enable,horizontal:r.mode===i.RollMode.horizontal||r.mode===i.RollMode.both,vertical:r.mode===i.RollMode.vertical||r.mode===i.RollMode.both,angle:(0,n.getRandom)()*o,speed:(0,n.getRangeValue)(r.speed)/a},r.backColor)t.backColor=(0,n.rangeColorToHsl)(e,r.backColor);else if(r.darken.enable&&r.enlighten.enable){const e=(0,n.getRandom)()>=n.half?n.AlterType.darken:n.AlterType.enlighten;t.roll.alter={type:e,value:(0,n.getRangeValue)(e===n.AlterType.darken?r.darken.value:r.enlighten.value)}}else r.darken.enable?t.roll.alter={type:n.AlterType.darken,value:(0,n.getRangeValue)(r.darken.value)}:r.enlighten.enable&&(t.roll.alter={type:n.AlterType.enlighten,value:(0,n.getRangeValue)(r.enlighten.value)});else t.roll={enable:!1,horizontal:!1,vertical:!1,angle:0,speed:0}}function c(e,t){const r=e.options.roll,n=e.roll;if(!n||!r?.enable)return;const i=n.speed*t.factor,a=o;n.angle+=i,n.angle>a&&(n.angle-=a)}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{RollMode:()=>n}),function(e){e.both="both",e.horizontal="horizontal",e.vertical="vertical"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Roll:()=>a});var n=r(693),i=r(953),o=r(951);class a{constructor(){this.darken=new i.RollLight,this.enable=!1,this.enlighten=new i.RollLight,this.mode=o.RollMode.vertical,this.speed=25}load(e){(0,n.isNull)(e)||(void 0!==e.backColor&&(this.backColor=n.OptionsColor.create(this.backColor,e.backColor)),this.darken.load(e.darken),void 0!==e.enable&&(this.enable=e.enable),this.enlighten.load(e.enlighten),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.speed&&(this.speed=(0,n.setRangeValue)(e.speed)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RollLight:()=>i});var n=r(693);class i{constructor(){this.enable=!1,this.value=0}load(e){(0,n.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.value&&(this.value=(0,n.setRangeValue)(e.value)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadRotateUpdater:()=>i});var n=r(955);async function i(e,t=!0){e.checkVersion("3.8.1"),await e.addParticleUpdater("rotate",(e=>Promise.resolve(new n.RotateUpdater(e))),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RotateUpdater:()=>a});var n=r(693),i=r(956);const o=2*Math.PI;class a{constructor(e){this.container=e}init(e){const t=e.options.rotate;if(!t)return;e.rotate={enable:t.animation.enable,value:(0,n.degToRad)((0,n.getRangeValue)(t.value)),min:0,max:o},e.pathRotation=t.path;let r=t.direction;if(r===n.RotateDirection.random){r=Math.floor(2*(0,n.getRandom)())>0?n.RotateDirection.counterClockwise:n.RotateDirection.clockwise}switch(r){case n.RotateDirection.counterClockwise:case"counterClockwise":e.rotate.status=n.AnimationStatus.decreasing;break;case n.RotateDirection.clockwise:e.rotate.status=n.AnimationStatus.increasing}const i=t.animation;i.enable&&(e.rotate.decay=1-(0,n.getRangeValue)(i.decay),e.rotate.velocity=(0,n.getRangeValue)(i.speed)/360*this.container.retina.reduceFactor,i.sync||(e.rotate.velocity*=(0,n.getRandom)())),e.rotation=e.rotate.value}isEnabled(e){const t=e.options.rotate;return!!t&&(!e.destroyed&&!e.spawning&&(!!t.value||t.animation.enable||t.path))}loadOptions(e,...t){e.rotate||(e.rotate=new i.Rotate);for(const r of t)e.rotate.load(r?.rotate)}update(e,t){this.isEnabled(e)&&(e.isRotating=!!e.rotate,e.rotate&&((0,n.updateAnimation)(e,e.rotate,!1,n.DestroyType.none,t),e.rotation=e.rotate.value))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Rotate:()=>o});var n=r(693),i=r(957);class o extends n.ValueWithRandom{constructor(){super(),this.animation=new i.RotateAnimation,this.direction=n.RotateDirection.clockwise,this.path=!1,this.value=0}load(e){(0,n.isNull)(e)||(super.load(e),void 0!==e.direction&&(this.direction=e.direction),this.animation.load(e.animation),void 0!==e.path&&(this.path=e.path))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RotateAnimation:()=>i});var n=r(693);class i{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(e){(0,n.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,n.setRangeValue)(e.speed)),void 0!==e.decay&&(this.decay=(0,n.setRangeValue)(e.decay)),void 0!==e.sync&&(this.sync=e.sync))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadSquareShape:()=>i});var n=r(959);async function i(e,t=!0){e.checkVersion("3.8.1"),await e.addShape(new n.SquareDrawer,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SquareDrawer:()=>i});var n=r(960);class i{constructor(){this.validTypes=["edge","square"]}draw(e){(0,n.drawSquare)(e)}getSidesCount(){return 4}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{drawSquare:()=>o});const n=Math.sqrt(2),i=2;function o(e){const{context:t,radius:r}=e,o=r/n,a=o*i;t.rect(-o,-o,a,a)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadTiltUpdater:()=>i});var n=r(962);async function i(e,t=!0){e.checkVersion("3.8.1"),await e.addParticleUpdater("tilt",(e=>Promise.resolve(new n.TiltUpdater(e))),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TiltUpdater:()=>s});var n=r(693),i=r(963),o=r(964);const a=2*Math.PI;class s{constructor(e){this.container=e}getTransformValues(e){const t=e.tilt?.enable&&e.tilt;return{b:t?Math.cos(t.value)*t.cosDirection:void 0,c:t?Math.sin(t.value)*t.sinDirection:void 0}}init(e){const t=e.options.tilt;if(!t)return;e.tilt={enable:t.enable,value:(0,n.degToRad)((0,n.getRangeValue)(t.value)),sinDirection:(0,n.getRandom)()>=n.half?1:-1,cosDirection:(0,n.getRandom)()>=n.half?1:-1,min:0,max:a};let r=t.direction;if(r===o.TiltDirection.random){r=Math.floor(2*(0,n.getRandom)())>0?o.TiltDirection.counterClockwise:o.TiltDirection.clockwise}switch(r){case o.TiltDirection.counterClockwise:case"counterClockwise":e.tilt.status=n.AnimationStatus.decreasing;break;case o.TiltDirection.clockwise:e.tilt.status=n.AnimationStatus.increasing}const i=e.options.tilt?.animation;i?.enable&&(e.tilt.decay=1-(0,n.getRangeValue)(i.decay),e.tilt.velocity=(0,n.getRangeValue)(i.speed)/360*this.container.retina.reduceFactor,i.sync||(e.tilt.velocity*=(0,n.getRandom)()))}isEnabled(e){const t=e.options.tilt?.animation;return!e.destroyed&&!e.spawning&&!!t?.enable}loadOptions(e,...t){e.tilt||(e.tilt=new i.Tilt);for(const r of t)e.tilt.load(r?.tilt)}async update(e,t){this.isEnabled(e)&&e.tilt&&((0,n.updateAnimation)(e,e.tilt,!1,n.DestroyType.none,t),await Promise.resolve())}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Tilt:()=>a});var n=r(693),i=r(964),o=r(965);class a extends n.ValueWithRandom{constructor(){super(),this.animation=new o.TiltAnimation,this.direction=i.TiltDirection.clockwise,this.enable=!1,this.value=0}load(e){super.load(e),(0,n.isNull)(e)||(this.animation.load(e.animation),void 0!==e.direction&&(this.direction=e.direction),void 0!==e.enable&&(this.enable=e.enable))}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{TiltDirection:()=>n}),function(e){e.clockwise="clockwise",e.counterClockwise="counter-clockwise",e.random="random"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TiltAnimation:()=>i});var n=r(693);class i{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(e){(0,n.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,n.setRangeValue)(e.speed)),void 0!==e.decay&&(this.decay=(0,n.setRangeValue)(e.decay)),void 0!==e.sync&&(this.sync=e.sync))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadWobbleUpdater:()=>i});var n=r(967);async function i(e,t=!0){e.checkVersion("3.8.1"),await e.addParticleUpdater("wobble",(e=>Promise.resolve(new n.WobbleUpdater(e))),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WobbleUpdater:()=>s});var n=r(693),i=r(968),o=r(970);const a=2*Math.PI;class s{constructor(e){this.container=e}init(e){const t=e.options.wobble;e.wobble=t?.enable?{angle:(0,n.getRandom)()*a,angleSpeed:(0,n.getRangeValue)(t.speed.angle)/360,moveSpeed:(0,n.getRangeValue)(t.speed.move)/10}:{angle:0,angleSpeed:0,moveSpeed:0},e.retina.wobbleDistance=(0,n.getRangeValue)(t?.distance??0)*this.container.retina.pixelRatio}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.options.wobble?.enable}loadOptions(e,...t){e.wobble||(e.wobble=new i.Wobble);for(const r of t)e.wobble.load(r?.wobble)}update(e,t){this.isEnabled(e)&&(0,o.updateWobble)(e,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Wobble:()=>o});var n=r(693),i=r(969);class o{constructor(){this.distance=5,this.enable=!1,this.speed=new i.WobbleSpeed}load(e){if(!(0,n.isNull)(e)&&(void 0!==e.distance&&(this.distance=(0,n.setRangeValue)(e.distance)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed))if((0,n.isNumber)(e.speed))this.speed.load({angle:e.speed});else{const t=e.speed;void 0!==t.min?this.speed.load({angle:t}):this.speed.load(e.speed)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WobbleSpeed:()=>i});var n=r(693);class i{constructor(){this.angle=50,this.move=10}load(e){(0,n.isNull)(e)||(void 0!==e.angle&&(this.angle=(0,n.setRangeValue)(e.angle)),void 0!==e.move&&(this.move=(0,n.setRangeValue)(e.move)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{updateWobble:()=>s});var n=r(693);const i=0,o=2*Math.PI,a=60;function s(e,t){const{wobble:r}=e.options,{wobble:s}=e;if(!r?.enable||!s)return;const c=s.angleSpeed*t.factor,u=s.moveSpeed*t.factor*((e.retina.wobbleDistance??i)*t.factor)/(n.millisecondsToSeconds/a),l=o,{position:p}=e;s.angle+=c,s.angle>l&&(s.angle-=l),p.x+=u*Math.cos(s.angle),p.y+=u*Math.abs(Math.sin(s.angle))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{options:()=>n});const n={fullScreen:{enable:!0,zIndex:100},fpsLimit:120,particles:{number:{value:0},color:{value:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"]},shape:{type:["square","circle"]},opacity:{value:{min:0,max:1},animation:{enable:!0,speed:.5,startValue:"max",destroy:"min"}},size:{value:5},links:{enable:!1},life:{duration:{sync:!0,value:20/6},count:1},move:{angle:{value:45,offset:0},drift:0,enable:!0,gravity:{enable:!0,acceleration:9.81},speed:45,decay:.1,direction:-90,random:!0,straight:!1,outModes:{default:"none",bottom:"destroy"}},rotate:{value:{min:0,max:360},direction:"random",animation:{enable:!0,speed:60}},tilt:{direction:"random",enable:!0,value:{min:0,max:360},animation:{enable:!0,speed:60}},roll:{darken:{enable:!0,value:25},enable:!0,speed:{min:15,max:25}},wobble:{distance:30,enable:!0,speed:{min:-15,max:15}}},detectRetina:!0,motion:{disable:!0},emitters:{name:"confetti",startCount:50,position:{x:50,y:50},size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1}}}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(973)),i=m(r(1009)),o=m(r(1011)),a=m(r(1018)),s=m(r(1022)),c=m(r(1023)),u=m(r(1027)),l=m(r(1060)),p=m(r(285)),f=m(r(596)),h=m(r(1068)),d=m(r(1069));function m(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(){return(0,s.default)(this,t),(0,u.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,l.default)(t,e),(0,c.default)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.options,r=e.eventListeners,n=t.loop,i=t.autoplay,a=t.animationData,s=t.path,c=t.renderer,u=void 0===c?"svg":c,l=t.rendererSettings,p=t.assetsPath;this.options={container:this.el,path:s,renderer:u,loop:!1!==n,autoplay:!1!==i,animationData:a,rendererSettings:l,assetsPath:p},this.options=(0,o.default)({},this.options,t),this.anim=h.default.loadAnimation(this.options),this.setSpeed(),this.setDirection(),this.animApi=d.default.createAnimationApi(this.anim),this.registerEvents(r),this.setAnimationControl(),this.props.isStopped?this.stops():this.props.segments?this.playSegments(!0):this.play()}},{key:"componentWillUpdate",value:function(e){this.options.animationData!==e.options.animationData&&(this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options=(0,o.default)({},this.options,e.options),this.anim=h.default.loadAnimation(this.options),this.animApi=d.default.createAnimationApi(this.anim),this.registerEvents(e.eventListeners))}},{key:"componentDidUpdate",value:function(e){if(void 0!==this.props.options.loop&&(this.anim.loop=this.props.options.loop),this.props.isStopped)this.stop();else if(this.props.segments){if((0,i.default)(this.props.segments)===(0,i.default)(e.segments))return;this.playSegments(this.props.forceSegments)}else this.play();this.setAnimationControl(),this.pause(),this.setSpeed(),this.setDirection()}},{key:"componentWillUnmount",value:function(){this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options.animationData=null,this.anim=null,this.animApi=null}},{key:"setSpeed",value:function(){this.anim.setSpeed(this.props.speed)}},{key:"setDirection",value:function(){this.anim.setDirection(this.props.direction)}},{key:"setAnimationControl",value:function(){var e=this,t=this.props.animationControl;t&&(0,n.default)(t).forEach((function(r){var n=e.animApi.getKeyPath(r),i=t[r];e.animApi.addValueCallback(n,(function(){return i}))}))}},{key:"play",value:function(){this.anim.play()}},{key:"playSegments",value:function(e){this.anim.playSegments(this.props.segments,e)}},{key:"stop",value:function(){this.anim.stop()}},{key:"pause",value:function(){(this.props.isPaused&&!this.anim.isPaused||!this.props.isPaused&&this.anim.isPaused)&&this.anim.pause()}},{key:"destroy",value:function(){this.anim.destroy()}},{key:"registerEvents",value:function(e){var t=this;e.forEach((function(e){t.anim.addEventListener(e.eventName,e.callback)}))}},{key:"deRegisterEvents",value:function(e){var t=this;e.forEach((function(e){t.anim.removeEventListener(e.eventName,e.callback)}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.width,n=t.height,i=t.ariaRole,a=t.ariaLabel,s=t.title,c=t.tabIndex,u=function(e){return"number"==typeof e?e+"px":e||"100%"},l=(0,o.default)({width:u(r),height:u(n),overflow:"hidden",margin:"0 auto",outline:"none"},this.props.style);return p.default.createElement("div",{ref:function(t){e.el=t},style:l,title:s,role:i,"aria-label":a,tabIndex:c})}}]),t}(p.default.Component);t.default=y,y.propTypes={eventListeners:f.default.arrayOf(f.default.object),options:f.default.object.isRequired,height:f.default.oneOfType([f.default.string,f.default.number]),width:f.default.oneOfType([f.default.string,f.default.number]),isStopped:f.default.bool,isPaused:f.default.bool,speed:f.default.number,segments:f.default.arrayOf(f.default.number),forceSegments:f.default.bool,direction:f.default.number,ariaRole:f.default.string,ariaLabel:f.default.string,title:f.default.string,style:f.default.string,tabIndex:f.default.oneOfType([f.default.number,f.default.string])},y.defaultProps={eventListeners:[],isStopped:!1,isPaused:!1,speed:1,ariaRole:"button",ariaLabel:"animation",title:"",tabIndex:0}},(e,t,r)=>{e.exports={default:r(974),__esModule:!0}},(e,t,r)=>{r(975),e.exports=r(990).Object.keys},(e,t,r)=>{var n=r(976),i=r(978);r(995)("keys",(function(){return function(e){return i(n(e))}}))},(e,t,r)=>{var n=r(977);e.exports=function(e){return Object(n(e))}},e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},(e,t,r)=>{var n=r(979),i=r(994);e.exports=Object.keys||function(e){return n(e,i)}},(e,t,r)=>{var n=r(980),i=r(981),o=r(984)(!1),a=r(988)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),c=0,u=[];for(r in s)r!=a&&n(s,r)&&u.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~o(u,r)||u.push(r));return u}},e=>{var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},(e,t,r)=>{var n=r(982),i=r(977);e.exports=function(e){return n(i(e))}},(e,t,r)=>{var n=r(983);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},(e,t,r)=>{var n=r(981),i=r(985),o=r(987);e.exports=function(e){return function(t,r,a){var s,c=n(t),u=i(c.length),l=o(a,u);if(e&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}}},(e,t,r)=>{var n=r(986),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},(e,t,r)=>{var n=r(986),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=n(e))<0?i(e+t,0):o(e,t)}},(e,t,r)=>{var n=r(989)("keys"),i=r(993);e.exports=function(e){return n[e]||(n[e]=i(e))}},(e,t,r)=>{var n=r(990),i=r(991),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(992)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},e=>{e.exports=!0},e=>{var t=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+r).toString(36))}},e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},(e,t,r)=>{var n=r(996),i=r(990),o=r(1005);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o((function(){r(1)})),"Object",a)}},(e,t,r)=>{var n=r(991),i=r(990),o=r(997),a=r(999),s=r(980),c="prototype",u=function(e,t,r){var l,p,f,h=e&u.F,d=e&u.G,m=e&u.S,y=e&u.P,g=e&u.B,v=e&u.W,b=d?i:i[t]||(i[t]={}),S=b[c],_=d?n:m?n[t]:(n[t]||{})[c];for(l in d&&(r=t),r)(p=!h&&_&&void 0!==_[l])&&s(b,l)||(f=p?_[l]:r[l],b[l]=d&&"function"!=typeof _[l]?r[l]:g&&p?o(f,n):v&&_[l]==f?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t[c]=e[c],t}(f):y&&"function"==typeof f?o(Function.call,f):f,y&&((b.virtual||(b.virtual={}))[l]=f,e&u.R&&S&&!S[l]&&a(S,l,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},(e,t,r)=>{var n=r(998);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},(e,t,r)=>{var n=r(1e3),i=r(1008);e.exports=r(1004)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},(e,t,r)=>{var n=r(1001),i=r(1003),o=r(1007),a=Object.defineProperty;t.f=r(1004)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},(e,t,r)=>{var n=r(1002);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},(e,t,r)=>{e.exports=!r(1004)&&!r(1005)((function(){return 7!=Object.defineProperty(r(1006)("div"),"a",{get:function(){return 7}}).a}))},(e,t,r)=>{e.exports=!r(1005)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,r)=>{var n=r(1002),i=r(991).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},(e,t,r)=>{var n=r(1002);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,r)=>{e.exports={default:r(1010),__esModule:!0}},(e,t,r)=>{var n=r(990),i=n.JSON||(n.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},(e,t,r)=>{"use strict";t.__esModule=!0;var n,i=r(1012),o=(n=i)&&n.__esModule?n:{default:n};t.default=o.default||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,t,r)=>{e.exports={default:r(1013),__esModule:!0}},(e,t,r)=>{r(1014),e.exports=r(990).Object.assign},(e,t,r)=>{var n=r(996);n(n.S+n.F,"Object",{assign:r(1015)})},(e,t,r)=>{"use strict";var n=r(1004),i=r(978),o=r(1016),a=r(1017),s=r(976),c=r(982),u=Object.assign;e.exports=!u||r(1005)((function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=u({},e)[r]||Object.keys(u({},t)).join("")!=n}))?function(e,t){for(var r=s(e),u=arguments.length,l=1,p=o.f,f=a.f;u>l;)for(var h,d=c(arguments[l++]),m=p?i(d).concat(p(d)):i(d),y=m.length,g=0;y>g;)h=m[g++],n&&!f.call(d,h)||(r[h]=d[h]);return r}:u},(e,t)=>{t.f=Object.getOwnPropertySymbols},(e,t)=>{t.f={}.propertyIsEnumerable},(e,t,r)=>{e.exports={default:r(1019),__esModule:!0}},(e,t,r)=>{r(1020),e.exports=r(990).Object.getPrototypeOf},(e,t,r)=>{var n=r(976),i=r(1021);r(995)("getPrototypeOf",(function(){return function(e){return i(n(e))}}))},(e,t,r)=>{var n=r(980),i=r(976),o=r(988)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},(e,t,r)=>{"use strict";t.__esModule=!0;var n,i=r(1024),o=(n=i)&&n.__esModule?n:{default:n};t.default=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),(0,o.default)(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()},(e,t,r)=>{e.exports={default:r(1025),__esModule:!0}},(e,t,r)=>{r(1026);var n=r(990).Object;e.exports=function(e,t,r){return n.defineProperty(e,t,r)}},(e,t,r)=>{var n=r(996);n(n.S+n.F*!r(1004),"Object",{defineProperty:r(1e3).f})},(e,t,r)=>{"use strict";t.__esModule=!0;var n,i=r(1028),o=(n=i)&&n.__esModule?n:{default:n};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},(e,t,r)=>{"use strict";t.__esModule=!0;var n=a(r(1029)),i=a(r(1047)),o="function"==typeof i.default&&"symbol"==typeof n.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===o(n.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":o(e)}},(e,t,r)=>{e.exports={default:r(1030),__esModule:!0}},(e,t,r)=>{r(1031),r(1042),e.exports=r(1046).f("iterator")},(e,t,r)=>{"use strict";var n=r(1032)(!0);r(1033)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})}))},(e,t,r)=>{var n=r(986),i=r(977);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),c=n(r),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},(e,t,r)=>{"use strict";var n=r(992),i=r(996),o=r(1034),a=r(999),s=r(1035),c=r(1036),u=r(1040),l=r(1021),p=r(1041)("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",d="values",m=function(){return this};e.exports=function(e,t,r,y,g,v,b){c(r,t,y);var S,_,E,w=function(e){if(!f&&e in P)return P[e];switch(e){case h:case d:return function(){return new r(this,e)}}return function(){return new r(this,e)}},x=t+" Iterator",O=g==d,T=!1,P=e.prototype,C=P[p]||P["@@iterator"]||g&&P[g],A=C||w(g),k=g?O?w("entries"):A:void 0,R="Array"==t&&P.entries||C;if(R&&(E=l(R.call(new e)))!==Object.prototype&&E.next&&(u(E,x,!0),n||"function"==typeof E[p]||a(E,p,m)),O&&C&&C.name!==d&&(T=!0,A=function(){return C.call(this)}),n&&!b||!f&&!T&&P[p]||a(P,p,A),s[t]=A,s[x]=m,g)if(S={values:O?A:w(d),keys:v?A:w(h),entries:k},b)for(_ in S)_ in P||o(P,_,S[_]);else i(i.P+i.F*(f||T),t,S);return S}},(e,t,r)=>{e.exports=r(999)},e=>{e.exports={}},(e,t,r)=>{"use strict";var n=r(1037),i=r(1008),o=r(1040),a={};r(999)(a,r(1041)("iterator"),(function(){return this})),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},(e,t,r)=>{var n=r(1001),i=r(1038),o=r(994),a=r(988)("IE_PROTO"),s=function(){},c="prototype",u=function(){var e,t=r(1006)("iframe"),n=o.length;for(t.style.display="none",r(1039).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u[c][o[n]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(s[c]=n(e),r=new s,s[c]=null,r[a]=e):r=u(),void 0===t?r:i(r,t)}},(e,t,r)=>{var n=r(1e3),i=r(1001),o=r(978);e.exports=r(1004)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,c=0;s>c;)n.f(e,r=a[c++],t[r]);return e}},(e,t,r)=>{var n=r(991).document;e.exports=n&&n.documentElement},(e,t,r)=>{var n=r(1e3).f,i=r(980),o=r(1041)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},(e,t,r)=>{var n=r(989)("wks"),i=r(993),o=r(991).Symbol,a="function"==typeof o;(e.exports=function(e){return n[e]||(n[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=n},(e,t,r)=>{r(1043);for(var n=r(991),i=r(999),o=r(1035),a=r(1041)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],l=n[u],p=l&&l.prototype;p&&!p[a]&&i(p,a,u),o[u]=o.Array}},(e,t,r)=>{"use strict";var n=r(1044),i=r(1045),o=r(1035),a=r(981);e.exports=r(1033)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},e=>{e.exports=function(){}},e=>{e.exports=function(e,t){return{value:t,done:!!e}}},(e,t,r)=>{t.f=r(1041)},(e,t,r)=>{e.exports={default:r(1048),__esModule:!0}},(e,t,r)=>{r(1049),r(1057),r(1058),r(1059),e.exports=r(990).Symbol},(e,t,r)=>{"use strict";var n=r(991),i=r(980),o=r(1004),a=r(996),s=r(1034),c=r(1050).KEY,u=r(1005),l=r(989),p=r(1040),f=r(993),h=r(1041),d=r(1046),m=r(1051),y=r(1052),g=r(1053),v=r(1001),b=r(1002),S=r(976),_=r(981),E=r(1007),w=r(1008),x=r(1037),O=r(1054),T=r(1056),P=r(1016),C=r(1e3),A=r(978),k=T.f,R=C.f,I=O.f,D=n.Symbol,M=n.JSON,N=M&&M.stringify,F="prototype",L=h("_hidden"),j=h("toPrimitive"),B={}.propertyIsEnumerable,U=l("symbol-registry"),V=l("symbols"),z=l("op-symbols"),H=Object[F],q="function"==typeof D&&!!P.f,G=n.QObject,W=!G||!G[F]||!G[F].findChild,K=o&&u((function(){return 7!=x(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=k(H,t);n&&delete H[t],R(e,t,r),n&&e!==H&&R(H,t,n)}:R,$=function(e){var t=V[e]=x(D[F]);return t._k=e,t},Y=q&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},X=function(e,t,r){return e===H&&X(z,t,r),v(e),t=E(t,!0),v(r),i(V,t)?(r.enumerable?(i(e,L)&&e[L][t]&&(e[L][t]=!1),r=x(r,{enumerable:w(0,!1)})):(i(e,L)||R(e,L,w(1,{})),e[L][t]=!0),K(e,t,r)):R(e,t,r)},Q=function(e,t){v(e);for(var r,n=y(t=_(t)),i=0,o=n.length;o>i;)X(e,r=n[i++],t[r]);return e},J=function(e){var t=B.call(this,e=E(e,!0));return!(this===H&&i(V,e)&&!i(z,e))&&(!(t||!i(this,e)||!i(V,e)||i(this,L)&&this[L][e])||t)},Z=function(e,t){if(e=_(e),t=E(t,!0),e!==H||!i(V,t)||i(z,t)){var r=k(e,t);return!r||!i(V,t)||i(e,L)&&e[L][t]||(r.enumerable=!0),r}},ee=function(e){for(var t,r=I(_(e)),n=[],o=0;r.length>o;)i(V,t=r[o++])||t==L||t==c||n.push(t);return n},te=function(e){for(var t,r=e===H,n=I(r?z:_(e)),o=[],a=0;n.length>a;)!i(V,t=n[a++])||r&&!i(H,t)||o.push(V[t]);return o};q||(s((D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(r){this===H&&t.call(z,r),i(this,L)&&i(this[L],e)&&(this[L][e]=!1),K(this,e,w(1,r))};return o&&W&&K(H,e,{configurable:!0,set:t}),$(e)})[F],"toString",(function(){return this._k})),T.f=Z,C.f=X,r(1055).f=O.f=ee,r(1017).f=J,P.f=te,o&&!r(992)&&s(H,"propertyIsEnumerable",J,!0),d.f=function(e){return $(h(e))}),a(a.G+a.W+a.F*!q,{Symbol:D});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;re.length>ne;)h(re[ne++]);for(var ie=A(h.store),oe=0;ie.length>oe;)m(ie[oe++]);a(a.S+a.F*!q,"Symbol",{for:function(e){return i(U,e+="")?U[e]:U[e]=D(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in U)if(U[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!q,"Object",{create:function(e,t){return void 0===t?x(e):Q(x(e),t)},defineProperty:X,defineProperties:Q,getOwnPropertyDescriptor:Z,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=u((function(){P.f(1)}));a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return P.f(S(e))}}),M&&a(a.S+a.F*(!q||u((function(){var e=D();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))}))),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(b(t)||void 0!==e)&&!Y(e))return g(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!Y(t))return t}),n[1]=t,N.apply(M,n)}}),D[F][j]||r(999)(D[F],j,D[F].valueOf),p(D,"Symbol"),p(Math,"Math",!0),p(n.JSON,"JSON",!0)},(e,t,r)=>{var n=r(993)("meta"),i=r(1002),o=r(980),a=r(1e3).f,s=0,c=Object.isExtensible||function(){return!0},u=!r(1005)((function(){return c(Object.preventExtensions({}))})),l=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},p=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[n].w},onFreeze:function(e){return u&&p.NEED&&c(e)&&!o(e,n)&&l(e),e}}},(e,t,r)=>{var n=r(991),i=r(990),o=r(992),a=r(1046),s=r(1e3).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},(e,t,r)=>{var n=r(978),i=r(1016),o=r(1017);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var a,s=r(e),c=o.f,u=0;s.length>u;)c.call(e,a=s[u++])&&t.push(a);return t}},(e,t,r)=>{var n=r(983);e.exports=Array.isArray||function(e){return"Array"==n(e)}},(e,t,r)=>{var n=r(981),i=r(1055).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(n(e))}},(e,t,r)=>{var n=r(979),i=r(994).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},(e,t,r)=>{var n=r(1017),i=r(1008),o=r(981),a=r(1007),s=r(980),c=r(1003),u=Object.getOwnPropertyDescriptor;t.f=r(1004)?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},()=>{},(e,t,r)=>{r(1051)("asyncIterator")},(e,t,r)=>{r(1051)("observable")},(e,t,r)=>{"use strict";t.__esModule=!0;var n=a(r(1061)),i=a(r(1065)),o=a(r(1028));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,o.default)(t)));e.prototype=(0,i.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(n.default?(0,n.default)(e,t):e.__proto__=t)}},(e,t,r)=>{e.exports={default:r(1062),__esModule:!0}},(e,t,r)=>{r(1063),e.exports=r(990).Object.setPrototypeOf},(e,t,r)=>{var n=r(996);n(n.S,"Object",{setPrototypeOf:r(1064).set})},(e,t,r)=>{var n=r(1002),i=r(1001),o=function(e,t){if(i(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=r(997)(Function.call,r(1056).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return o(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:o}},(e,t,r)=>{e.exports={default:r(1066),__esModule:!0}},(e,t,r)=>{r(1067);var n=r(990).Object;e.exports=function(e,t){return n.create(e,t)}},(e,t,r)=>{var n=r(996);n(n.S,"Object",{create:r(1037)})},function(module,exports,__webpack_require__){var factory;"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,n,i=e.length;for(r=0;r<i;r+=1)for(var o in n=e[r].prototype)Object.prototype.hasOwnProperty.call(n,o)&&(t.prototype[o]=n[o])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var r,n=0,i=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(n=0;n<t;n+=1)i.push(r);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,r){return"float32"===t?new Float32Array(r):"int16"===t?new Int16Array(r):"uint8c"===t?new Uint8ClampedArray(r):e(t,r)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="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},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,r=createSizedArray(e.length),n=e.length;for(t=0;t<n;t+=1)r[t]=Math.abs(e[t]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,n){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,n){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=n<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var n,i,o,a,s,c,u,l;switch(c=r*(1-t),u=r*(1-(s=6*e-(a=Math.floor(6*e)))*t),l=r*(1-(1-s)*t),a%6){case 0:n=r,i=l,o=c;break;case 1:n=u,i=r,o=c;break;case 2:n=c,i=r,o=l;break;case 3:n=c,i=u,o=r;break;case 4:n=l,i=c,o=r;break;case 5:n=r,i=c,o=u}return[n,i,o]}function RGBtoHSV(e,t,r){var n,i=Math.max(e,t,r),o=Math.min(e,t,r),a=i-o,s=0===i?0:a/i,c=i/255;switch(i){case o:n=0;break;case e:n=t-r+a*(t<r?6:0),n/=6*a;break;case t:n=r-e+2*a,n/=6*a;break;case r:n=e-t+4*a,n/=6*a}return[n,s,c]}function addSaturationToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e,t,r=[];for(e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(e,t,n){return e<0&&(e=0),t<0&&(t=0),n<0&&(n=0),"#"+r[e]+r[t]+r[n]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="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},_typeof$5(e)}var dataManager=function(){var e,t,r=1,n=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},o={postMessage:function(e){i.onmessage({data:e})}};function a(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),n=URL.createObjectURL(r);return new Worker(n)}return e=t,i}((function(e){if(o.dataManager||(o.dataManager=function(){function e(i,o){var a,s,c,u,l,f,h=i.length;for(s=0;s<h;s+=1)if("ks"in(a=i[s])&&!a.completed){if(a.completed=!0,a.hasMask){var d=a.masksProperties;for(u=d.length,c=0;c<u;c+=1)if(d[c].pt.k.i)n(d[c].pt.k);else for(f=d[c].pt.k.length,l=0;l<f;l+=1)d[c].pt.k[l].s&&n(d[c].pt.k[l].s[0]),d[c].pt.k[l].e&&n(d[c].pt.k[l].e[0])}0===a.ty?(a.layers=t(a.refId,o),e(a.layers,o)):4===a.ty?r(a.shapes):5===a.ty&&p(a)}}function t(e,t){var r=function(e,t){for(var r=0,n=t.length;r<n;){if(t[r].id===e)return t[r];r+=1}return null}(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(e){var t,i,o;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)n(e[t].ks.k);else for(o=e[t].ks.k.length,i=0;i<o;i+=1)e[t].ks.k[i].s&&n(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&n(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&r(e[t].it)}function n(e){var t,r=e.i.length;for(t=0;t<r;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function i(e,t){var r=t?t.split("."):[100,100,100];return e[0]>r[0]||!(r[0]>e[0])&&(e[1]>r[1]||!(r[1]>e[1])&&(e[2]>r[2]||!(r[2]>e[2])&&null))}var o,a=function(){var e=[4,4,14];function t(e){var t,r,n,i=e.length;for(t=0;t<i;t+=1)5===e[t].ty&&(n=void 0,n=(r=e[t]).t.d,r.t.d={k:[{s:n,t:0}]})}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var n,o=r.assets.length;for(n=0;n<o;n+=1)r.assets[n].layers&&t(r.assets[n].layers)}}}(),s=(o=[4,7,99],function(e){if(e.chars&&!i(o,e.v)){var t,n=e.chars.length;for(t=0;t<n;t+=1){var a=e.chars[t];a.data&&a.data.shapes&&(r(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),c=function(){var e=[5,7,15];function t(e){var t,r,n=e.length;for(t=0;t<n;t+=1)5===e[t].ty&&(r=void 0,"number"==typeof(r=e[t].t.p).a&&(r.a={a:0,k:r.a}),"number"==typeof r.p&&(r.p={a:0,k:r.p}),"number"==typeof r.r&&(r.r={a:0,k:r.r}))}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var n,o=r.assets.length;for(n=0;n<o;n+=1)r.assets[n].layers&&t(r.assets[n].layers)}}}(),u=function(){var e=[4,1,9];function t(e){var r,n,i,o=e.length;for(r=0;r<o;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(i=e[r].c.k.length,n=0;n<i;n+=1)e[r].c.k[n].s&&(e[r].c.k[n].s[0]/=255,e[r].c.k[n].s[1]/=255,e[r].c.k[n].s[2]/=255,e[r].c.k[n].s[3]/=255),e[r].c.k[n].e&&(e[r].c.k[n].e[0]/=255,e[r].c.k[n].e[1]/=255,e[r].c.k[n].e[2]/=255,e[r].c.k[n].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}function r(e){var r,n=e.length;for(r=0;r<n;r+=1)4===e[r].ty&&t(e[r].shapes)}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,o=t.assets.length;for(n=0;n<o;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}(),l=function(){var e=[4,4,18];function t(e){var r,n,i;for(r=e.length-1;r>=0;r-=1)if("sh"===e[r].ty)if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(i=e[r].ks.k.length,n=0;n<i;n+=1)e[r].ks.k[n].s&&(e[r].ks.k[n].s[0].c=e[r].closed),e[r].ks.k[n].e&&(e[r].ks.k[n].e[0].c=e[r].closed);else"gr"===e[r].ty&&t(e[r].it)}function r(e){var r,n,i,o,a,s,c=e.length;for(n=0;n<c;n+=1){if((r=e[n]).hasMask){var u=r.masksProperties;for(o=u.length,i=0;i<o;i+=1)if(u[i].pt.k.i)u[i].pt.k.c=u[i].cl;else for(s=u[i].pt.k.length,a=0;a<s;a+=1)u[i].pt.k[a].s&&(u[i].pt.k[a].s[0].c=u[i].cl),u[i].pt.k[a].e&&(u[i].pt.k[a].e[0].c=u[i].cl)}4===r.ty&&t(r.shapes)}}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,o=t.assets.length;for(n=0;n<o;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}();function p(e){0===e.t.a.length&&e.t.p}var f={completeData:function(r){r.__complete||(u(r),a(r),s(r),c(r),l(r),e(r.layers,r.assets),function(r,n){if(r){var i=0,o=r.length;for(i=0;i<o;i+=1)1===r[i].t&&(r[i].data.layers=t(r[i].data.refId,n),e(r[i].data.layers,n))}}(r.chars,r.assets),r.__complete=!0)}};return f.checkColors=u,f.checkChars=s,f.checkPathProperties=c,f.checkShapes=l,f.completeLayers=e,f}()),o.assetLoader||(o.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,r,n,i){var o,a=new XMLHttpRequest;try{a.responseType="json"}catch(e){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)o=e(a),n(o);else try{o=e(a),n(o)}catch(e){i&&i(e)}};try{a.open(["G","E","T"].join(""),t,!0)}catch(e){a.open(["G","E","T"].join(""),r+"/"+t,!0)}a.send()}}}()),"loadAnimation"===e.data.type)o.assetLoader.load(e.data.path,e.data.fullPath,(function(t){o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){o.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&o.assetLoader.load(e.data.path,e.data.fullPath,(function(t){o.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){o.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,r=t.id,i=n[r];n[r]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function s(e,t){var i="processId_"+(r+=1);return n[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,r,n){a();var i=s(r,n);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(e,r,n){a();var i=s(r,n);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,r,n){a();var i=s(r,n);t.postMessage({type:"complete",animation:e,id:i})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(e,t,r){var n="";if(e.e)n=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),n=t+i}else n=r,n+=e.u?e.u:"",n+=e.p;return n}function i(e){var t=0,r=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(r)),t+=1}.bind(this),50)}function o(e){var t={assetData:e},r=n(e,this.assetsPath,this.path);return dataManager.loadData(r,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function a(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(e,t){var r;this.imagesLoadedCb=t;var n=e.length;for(r=0;r<n;r+=1)e[r].layers||(e[r].t&&"seq"!==e[r].t?3===e[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[r]))):(this.totalImages+=1,this.images.push(this._createImageData(e[r]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,r=this.images.length;t<r;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var r=n(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),i.src=r;var o={img:i,assetData:t};return o},createImageData:function(t){var r=n(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var o={img:i,assetData:t};return o},imageLoaded:t,footageLoaded:r,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],n=0;n<r.length;n+=1)r[n](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var r=0,n=this._cbs[e].length;r<n;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,n-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,r=e.split("\r\n"),n={},i=0,o=0;o<r.length;o+=1)2===(t=r[o].split(":")).length&&(n[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return n}return function(t){for(var r=[],n=0;n<t.length;n+=1){var i=t[n],o={time:i.tm,duration:i.dr};try{o.payload=JSON.parse(t[n].cm)}catch(r){try{o.payload=e(t[n].cm)}catch(e){o.payload={name:t[n].cm}}}r.push(o)}return r}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,r=this.compositions.length;t<r;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="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},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},n=e.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var i=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";"false"===i?r.loop=!1:"true"===i?r.loop=!0:""!==i&&(r.loop=parseInt(i,10));var o=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;r.autoplay="false"!==o,r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,r,n=this.animationData.layers,i=n.length,o=e.layers,a=o.length;for(r=0;r<a;r+=1)for(t=0;t<i;){if(n[t].id===o[r].id){n[t]=o[r];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r="number"==typeof e?e:void 0,n="number"==typeof t?t:void 0;this.renderer.updateContainerSize(r,n)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if((t=this.markers[r]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(n,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var r,n=e.length;for(r=0;r<n;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{this.renderer.getElementByPath(e).updateDocumentData(t,r)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],r=0,n=0,i=0,o=!0,a=!1;function s(e){for(var r=0,i=e.target;r<n;)t[r].animation===i&&(t.splice(r,1),r-=1,n-=1,i.isPaused||l()),r+=1}function c(e,r){if(!e)return null;for(var i=0;i<n;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var o=new AnimationItem;return p(o,e),o.setData(e,r),o}function u(){i+=1,d()}function l(){i-=1}function p(e,r){e.addEventListener("destroy",s),e.addEventListener("_active",u),e.addEventListener("_idle",l),t.push({elem:r,animation:e}),n+=1}function f(e){var s,c=e-r;for(s=0;s<n;s+=1)t[s].animation.advanceTime(c);r=e,i&&!a?window.requestAnimationFrame(f):o=!0}function h(e){r=e,window.requestAnimationFrame(f)}function d(){!a&&i&&o&&(window.requestAnimationFrame(h),o=!1)}return e.registerAnimation=c,e.loadAnimation=function(e){var t=new AnimationItem;return p(t,null),t.setParams(e),t},e.setSpeed=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setSpeed(e,r)},e.setDirection=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setDirection(e,r)},e.play=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.play(e)},e.pause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.pause(e)},e.stop=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.stop(e)},e.togglePause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.togglePause(e)},e.searchAnimations=function(e,t,r){var n,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=i.length;for(n=0;n<o;n+=1)r&&i[n].setAttribute("data-bm-type",r),c(i[n],e);if(t&&0===o){r||(r="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",r),a.appendChild(s),c(s,e)}},e.resize=function(){var e;for(e=0;e<n;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,r,i){var o;for(o=0;o<n;o+=1)t[o].animation.goToAndStop(e,r,i)},e.destroy=function(e){var r;for(r=n-1;r>=0;r-=1)t[r].animation.destroy(e)},e.freeze=function(){a=!0},e.unfreeze=function(){a=!1,d()},e.setVolume=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setVolume(e,r)},e.mute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.mute(e)},e.unmute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,r=t.length,n=[];for(e=0;e<r;e+=1)n.push(t[e].animation);return n},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,r,n,i,o){var a=o||("bez_"+e+"_"+r+"_"+n+"_"+i).replace(/\./g,"p");if(t[a])return t[a];var s=new l([e,r,n,i]);return t[a]=s,s}},t={},r=11,n=1/(r-1),i="function"==typeof Float32Array;function o(e,t){return 1-3*t+3*e}function a(e,t){return 3*t-6*e}function s(e){return 3*e}function c(e,t,r){return((o(t,r)*e+a(t,r))*e+s(t))*e}function u(e,t,r){return 3*o(t,r)*e*e+2*a(t,r)*e+s(t)}function l(e){this._p=e,this._mSampleValues=i?new Float32Array(r):new Array(r),this._precomputed=!1,this.get=this.get.bind(this)}return l.prototype={get:function(e){var t=this._p[0],r=this._p[1],n=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===r&&n===i?e:0===e?0:1===e?1:c(this._getTForX(e),r,i)},_precompute:function(){var e=this._p[0],t=this._p[1],r=this._p[2],n=this._p[3];this._precomputed=!0,e===t&&r===n||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],i=0;i<r;++i)this._mSampleValues[i]=c(i*n,e,t)},_getTForX:function(e){for(var t=this._p[0],i=this._p[2],o=this._mSampleValues,a=0,s=1,l=r-1;s!==l&&o[s]<=e;++s)a+=n;var p=a+(e-o[--s])/(o[s+1]-o[s])*n,f=u(p,t,i);return f>=.001?function(e,t,r,n){for(var i=0;i<4;++i){var o=u(t,r,n);if(0===o)return t;t-=(c(t,r,n)-e)/o}return t}(e,p,t,i):0===f?p:function(e,t,r,n,i){var o,a,s=0;do{(o=c(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(e,a,a+n,t,i)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var n=0,i=e,o=createSizedArray(i);return{newElement:function(){return n?o[n-=1]:t()},release:function(e){n===i&&(o=pooling.double(o),i*=2),r&&r(e),o[n]=e,n+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,r=e.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,r,n,i,o){var a=e*n+t*i+r*o-i*n-o*e-r*t;return a>-.001&&a<.001}var r=function(e,t,r,n){var i,o,a,s,c,u,l=getDefaultCurveSegments(),p=0,f=[],h=[],d=bezierLengthPool.newElement();for(a=r.length,i=0;i<l;i+=1){for(c=i/(l-1),u=0,o=0;o<a;o+=1)s=bmPow(1-c,3)*e[o]+3*bmPow(1-c,2)*c*r[o]+3*(1-c)*bmPow(c,2)*n[o]+bmPow(c,3)*t[o],f[o]=s,null!==h[o]&&(u+=bmPow(f[o]-h[o],2)),h[o]=f[o];u&&(p+=u=bmSqrt(u)),d.percents[i]=c,d.lengths[i]=p}return d.addedLength=p,d};function n(e){this.segmentLength=0,this.points=new Array(e)}function i(e,t){this.partialLength=e,this.point=t}var o,a=(o={},function(e,r,a,s){var c=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!o[c]){var u,l,p,f,h,d,m,y=getDefaultCurveSegments(),g=0,v=null;2===e.length&&(e[0]!==r[0]||e[1]!==r[1])&&t(e[0],e[1],r[0],r[1],e[0]+a[0],e[1]+a[1])&&t(e[0],e[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(y=2);var b=new n(y);for(p=a.length,u=0;u<y;u+=1){for(m=createSizedArray(p),h=u/(y-1),d=0,l=0;l<p;l+=1)f=bmPow(1-h,3)*e[l]+3*bmPow(1-h,2)*h*(e[l]+a[l])+3*(1-h)*bmPow(h,2)*(r[l]+s[l])+bmPow(h,3)*r[l],m[l]=f,null!==v&&(d+=bmPow(m[l]-v[l],2));g+=d=bmSqrt(d),b.points[u]=new i(d,m),v=m}b.segmentLength=g,o[c]=b}return o[c]});function s(e,t){var r=t.percents,n=t.lengths,i=r.length,o=bmFloor((i-1)*e),a=e*t.addedLength,s=0;if(o===i-1||0===o||a===n[o])return r[o];for(var c=n[o]>a?-1:1,u=!0;u;)if(n[o]<=a&&n[o+1]>a?(s=(a-n[o])/(n[o+1]-n[o]),u=!1):o+=c,o<0||o>=i-1){if(o===i-1)return r[o];u=!1}return r[o]+(r[o+1]-r[o])*s}var c=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,n=segmentsLengthPool.newElement(),i=e.c,o=e.v,a=e.o,s=e.i,c=e._length,u=n.lengths,l=0;for(t=0;t<c-1;t+=1)u[t]=r(o[t],o[t+1],a[t],s[t+1]),l+=u[t].addedLength;return i&&c&&(u[t]=r(o[t],o[0],a[t],s[0]),l+=u[t].addedLength),n.totalLength=l,n},getNewSegment:function(t,r,n,i,o,a,u){o<0?o=0:o>1&&(o=1);var l,p=s(o,u),f=s(a=a>1?1:a,u),h=t.length,d=1-p,m=1-f,y=d*d*d,g=p*d*d*3,v=p*p*d*3,b=p*p*p,S=d*d*m,_=p*d*m+d*p*m+d*d*f,E=p*p*m+d*p*f+p*d*f,w=p*p*f,x=d*m*m,O=p*m*m+d*f*m+d*m*f,T=p*f*m+d*f*f+p*m*f,P=p*f*f,C=m*m*m,A=f*m*m+m*f*m+m*m*f,k=f*f*m+m*f*f+f*m*f,R=f*f*f;for(l=0;l<h;l+=1)c[4*l]=e.round(1e3*(y*t[l]+g*n[l]+v*i[l]+b*r[l]))/1e3,c[4*l+1]=e.round(1e3*(S*t[l]+_*n[l]+E*i[l]+w*r[l]))/1e3,c[4*l+2]=e.round(1e3*(x*t[l]+O*n[l]+T*i[l]+P*r[l]))/1e3,c[4*l+3]=e.round(1e3*(C*t[l]+A*n[l]+k*i[l]+R*r[l]))/1e3;return c},getPointInSegment:function(t,r,n,i,o,a){var c=s(o,a),u=1-c;return[e.round(1e3*(u*u*u*t[0]+(c*u*u+u*c*u+u*u*c)*n[0]+(c*c*u+u*c*c+c*u*c)*i[0]+c*c*c*r[0]))/1e3,e.round(1e3*(u*u*u*t[1]+(c*u*u+u*c*u+u*u*c)*n[1]+(c*c*u+u*c*c+c*u*c)*i[1]+c*c*c*r[1]))/1e3]},buildBezierData:a,pointOnLine2D:t,pointOnLine3D:function(r,n,i,o,a,s,c,u,l){if(0===i&&0===s&&0===l)return t(r,n,o,a,c,u);var p,f=e.sqrt(e.pow(o-r,2)+e.pow(a-n,2)+e.pow(s-i,2)),h=e.sqrt(e.pow(c-r,2)+e.pow(u-n,2)+e.pow(l-i,2)),d=e.sqrt(e.pow(c-o,2)+e.pow(u-a,2)+e.pow(l-s,2));return(p=f>h?f>d?f-h-d:d-h-f:d>h?d-h-f:h-f-d)>-1e-4&&p<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r,n=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var i,o,a,s,c,u,l,p,f,h=t.lastIndex,d=h,m=this.keyframes.length-1,y=!0;y;){if(i=this.keyframes[d],o=this.keyframes[d+1],d===m-1&&e>=o.t-n){i.h&&(i=o),h=0;break}if(o.t-n>e){h=d;break}d<m-1?d+=1:(h=0,y=!1)}a=this.keyframesMetadata[d]||{};var g,v=o.t-n,b=i.t-n;if(i.to){a.bezierData||(a.bezierData=bez.buildBezierData(i.s,o.s||i.e,i.to,i.ti));var S=a.bezierData;if(e>=v||e<b){var _=e>=v?S.points.length-1:0;for(c=S.points[_].point.length,s=0;s<c;s+=1)r[s]=S.points[_].point[s]}else{a.__fnct?f=a.__fnct:(f=BezierFactory.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,a.__fnct=f),u=f((e-b)/(v-b));var E,w=S.segmentLength*u,x=t.lastFrame<e&&t._lastKeyframeIndex===d?t._lastAddedLength:0;for(p=t.lastFrame<e&&t._lastKeyframeIndex===d?t._lastPoint:0,y=!0,l=S.points.length;y;){if(x+=S.points[p].partialLength,0===w||0===u||p===S.points.length-1){for(c=S.points[p].point.length,s=0;s<c;s+=1)r[s]=S.points[p].point[s];break}if(w>=x&&w<x+S.points[p+1].partialLength){for(E=(w-x)/S.points[p+1].partialLength,c=S.points[p].point.length,s=0;s<c;s+=1)r[s]=S.points[p].point[s]+(S.points[p+1].point[s]-S.points[p].point[s])*E;break}p<l-1?p+=1:y=!1}t._lastPoint=p,t._lastAddedLength=x-S.points[p].partialLength,t._lastKeyframeIndex=d}}else{var O,T,P,C,A;if(m=i.s.length,g=o.s||i.e,this.sh&&1!==i.h)e>=v?(r[0]=g[0],r[1]=g[1],r[2]=g[2]):e<=b?(r[0]=i.s[0],r[1]=i.s[1],r[2]=i.s[2]):quaternionToEuler(r,slerp(createQuaternion(i.s),createQuaternion(g),(e-b)/(v-b)));else for(d=0;d<m;d+=1)1!==i.h&&(e>=v?u=1:e<b?u=0:(i.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[d]?f=a.__fnct[d]:(O=void 0===i.o.x[d]?i.o.x[0]:i.o.x[d],T=void 0===i.o.y[d]?i.o.y[0]:i.o.y[d],P=void 0===i.i.x[d]?i.i.x[0]:i.i.x[d],C=void 0===i.i.y[d]?i.i.y[0]:i.i.y[d],f=BezierFactory.getBezierEasing(O,T,P,C).get,a.__fnct[d]=f)):a.__fnct?f=a.__fnct:(O=i.o.x,T=i.o.y,P=i.i.x,C=i.i.y,f=BezierFactory.getBezierEasing(O,T,P,C).get,i.keyframeMetadata=f),u=f((e-b)/(v-b)))),g=o.s||i.e,A=1===i.h?i.s[d]:i.s[d]+(g[d]-i.s[d])*u,"multidimensional"===this.propType?r[d]=A:r=A}return t.lastIndex=h,r}function slerp(e,t,r){var n,i,o,a,s,c=[],u=e[0],l=e[1],p=e[2],f=e[3],h=t[0],d=t[1],m=t[2],y=t[3];return(i=u*h+l*d+p*m+f*y)<0&&(i=-i,h=-h,d=-d,m=-m,y=-y),1-i>1e-6?(n=Math.acos(i),o=Math.sin(n),a=Math.sin((1-r)*n)/o,s=Math.sin(r*n)/o):(a=1-r,s=r),c[0]=a*u+s*h,c[1]=a*l+s*d,c[2]=a*p+s*m,c[3]=a*f+s*y,c}function quaternionToEuler(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=Math.atan2(2*n*o-2*r*i,1-2*n*n-2*i*i),s=Math.asin(2*r*n+2*i*o),c=Math.atan2(2*r*o-2*n*i,1-2*r*r-2*i*i);e[0]=a/degToRads,e[1]=s/degToRads,e[2]=c/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,n=e[2]*degToRads,i=Math.cos(t/2),o=Math.cos(r/2),a=Math.cos(n/2),s=Math.sin(t/2),c=Math.sin(r/2),u=Math.sin(n/2);return[s*c*a+i*o*u,s*o*a+i*c*u,i*c*a-s*o*u,i*o*a-s*c*u]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,n=this.v.length;r<n;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,n){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,n){var i;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o=t.k.length;for(this.v=createTypedArray("float32",o),this.pv=createTypedArray("float32",o),this.vel=createTypedArray("float32",o),i=0;i<o;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,n){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,n){var i;this.propType="multidimensional";var o,a,s,c,u=t.k.length;for(i=0;i<u-1;i+=1)t.k[i].to&&t.k[i].s&&t.k[i+1]&&t.k[i+1].s&&(o=t.k[i].s,a=t.k[i+1].s,s=t.k[i].to,c=t.k[i].ti,(2===o.length&&(o[0]!==a[0]||o[1]!==a[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],o[0]+s[0],o[1]+s[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],a[0]+c[0],a[1]+c[1])||3===o.length&&(o[0]!==a[0]||o[1]!==a[1]||o[2]!==a[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],o[0]+s[0],o[1]+s[1],o[2]+s[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],a[0]+c[0],a[1]+c[1],a[2]+c[2]))&&(t.k[i].to=null,t.k[i].ti=null),o[0]===a[0]&&o[1]===a[1]&&0===s[0]&&0===s[1]&&0===c[0]&&0===c[1]&&(2===o.length||o[2]===a[2]&&0===s[2]&&0===c[2])&&(t.k[i].to=null,t.k[i].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var l=t.k[0].s.length;for(this.v=createTypedArray("float32",l),this.pv=createTypedArray("float32",l),i=0;i<l;i+=1)this.v[i]=initFrame,this.pv[i]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",l)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,r,n,i){var o;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])o=new MultiDimensionalProperty(e,t,n,i);else switch(r){case 0:o=new KeyframedValueProperty(e,t,n,i);break;case 1:o=new KeyframedMultidimensionalProperty(e,t,n,i)}else o=new ValueProperty(e,t,n,i);return o.effectsSequence.length&&i.addDynamicProperty(o),o}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,n,i){var o;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[n]||o[n]&&!i)&&(o[n]=pointPool.newElement()),o[n][0]=e,o[n][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,n,i,o,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(r,n,"o",a,s),this.setXYAt(i,o,"i",a,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,n=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),i=1);var o,a=this._length-1,s=this._length;for(o=i;o<s;o+=1)e.setTripleAt(t[a][0],t[a][1],n[a][0],n[a][1],r[a][0],r[a][1],o,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,r=e._length;for(t=0;t<r;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,r=factory.newElement(),n=void 0===e._length?e.v.length:e._length;for(r.setLength(n),r.c=e.c,t=0;t<n;t+=1)r.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,r=e._length;for(t=0;t<r;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,r){var n,i,o,a,s,c,u,l,p,f=r.lastIndex,h=this.keyframes;if(e<h[0].t-this.offsetTime)n=h[0].s[0],o=!0,f=0;else if(e>=h[h.length-1].t-this.offsetTime)n=h[h.length-1].s?h[h.length-1].s[0]:h[h.length-2].e[0],o=!0;else{for(var d,m,y,g=f,v=h.length-1,b=!0;b&&(d=h[g],!((m=h[g+1]).t-this.offsetTime>e));)g<v-1?g+=1:b=!1;if(y=this.keyframesMetadata[g]||{},f=g,!(o=1===d.h)){if(e>=m.t-this.offsetTime)l=1;else if(e<d.t-this.offsetTime)l=0;else{var S;y.__fnct?S=y.__fnct:(S=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y).get,y.__fnct=S),l=S((e-(d.t-this.offsetTime))/(m.t-this.offsetTime-(d.t-this.offsetTime)))}i=m.s?m.s[0]:d.e[0]}n=d.s[0]}for(c=t._length,u=n.i[0].length,r.lastIndex=f,a=0;a<c;a+=1)for(s=0;s<u;s+=1)p=o?n.i[a][s]:n.i[a][s]+(i.i[a][s]-n.i[a][s])*l,t.i[a][s]=p,p=o?n.o[a][s]:n.o[a][s]+(i.o[a][s]-n.o[a][s])*l,t.o[a][s]=p,p=o?n.v[a][s]:n.v[a][s]+(i.v[a][s]-n.v[a][s])*l,t.v[a][s]=p}function r(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<r&&t<r||i>n&&t>n)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function n(){this.paths=this.localShapeCollection}function i(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var r,n=e._length;for(r=0;r<n;r+=1)if(e.v[r][0]!==t.v[r][0]||e.v[r][1]!==t.v[r][1]||e.o[r][0]!==t.o[r][0]||e.o[r][1]!==t.o[r][1]||e.i[r][0]!==t.i[r][0]||e.i[r][1]!==t.i[r][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(e,t,r){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===r?t.pt.k:t.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function c(t,i,o){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===o?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=n,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=o,a.prototype.setVValue=i,a.prototype.addEffect=s,c.prototype.getValue=o,c.prototype.interpolateShape=t,c.prototype.setVValue=i,c.prototype.addEffect=s;var u=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],r=this.p.v[1],n=this.s.v[0]/2,i=this.s.v[1]/2,o=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=r-i,a.v[1][0]=o?t+n:t-n,a.v[1][1]=r,a.v[2][0]=t,a.v[2][1]=r+i,a.v[3][0]=o?t-n:t+n,a.v[3][1]=r,a.i[0][0]=o?t-n*e:t+n*e,a.i[0][1]=r-i,a.i[1][0]=o?t+n:t-n,a.i[1][1]=r-i*e,a.i[2][0]=o?t+n*e:t-n*e,a.i[2][1]=r+i,a.i[3][0]=o?t-n:t+n,a.i[3][1]=r+i*e,a.o[0][0]=o?t+n*e:t-n*e,a.o[0][1]=r-i,a.o[1][0]=o?t+n:t-n,a.o[1][1]=r+i*e,a.o[2][0]=o?t-n*e:t+n*e,a.o[2][1]=r+i,a.o[3][0]=o?t-n:t+n,a.o[3][1]=r-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),l=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,r,n,i=2*Math.floor(this.pt.v),o=2*Math.PI/i,a=!0,s=this.or.v,c=this.ir.v,u=this.os.v,l=this.is.v,p=2*Math.PI*s/(2*i),f=2*Math.PI*c/(2*i),h=-Math.PI/2;h+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){r=a?u:l,n=a?p:f;var m=(t=a?s:c)*Math.cos(h),y=t*Math.sin(h),g=0===m&&0===y?0:y/Math.sqrt(m*m+y*y),v=0===m&&0===y?0:-m/Math.sqrt(m*m+y*y);m+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(m,y,m-g*n*r*d,y-v*n*r*d,m+g*n*r*d,y+v*n*r*d,e,!0),a=!a,h+=o*d}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),r=2*Math.PI/t,n=this.or.v,i=this.os.v,o=2*Math.PI*n/(4*t),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var c=n*Math.cos(a),u=n*Math.sin(a),l=0===c&&0===u?0:u/Math.sqrt(c*c+u*u),p=0===c&&0===u?0:-c/Math.sqrt(c*c+u*u);c+=+this.p.v[0],u+=+this.p.v[1],this.v.setTripleAt(c,u,c-l*o*i*s,u-p*o*i*s,c+l*o*i*s,u+p*o*i*s,e,!0),a+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),p=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],r=this.s.v[0]/2,n=this.s.v[1]/2,i=bmMin(r,n,this.r.v),o=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+r,t-n+i,e+r,t-n+i,e+r,t-n+o,0,!0),this.v.setTripleAt(e+r,t+n-i,e+r,t+n-o,e+r,t+n-i,1,!0),0!==i?(this.v.setTripleAt(e+r-i,t+n,e+r-i,t+n,e+r-o,t+n,2,!0),this.v.setTripleAt(e-r+i,t+n,e-r+o,t+n,e-r+i,t+n,3,!0),this.v.setTripleAt(e-r,t+n-i,e-r,t+n-i,e-r,t+n-o,4,!0),this.v.setTripleAt(e-r,t-n+i,e-r,t-n+o,e-r,t-n+i,5,!0),this.v.setTripleAt(e-r+i,t-n,e-r+i,t-n,e-r+o,t-n,6,!0),this.v.setTripleAt(e+r-i,t-n,e+r-o,t-n,e+r-i,t-n,7,!0)):(this.v.setTripleAt(e-r,t+n,e-r+o,t+n,e-r,t+n,2),this.v.setTripleAt(e-r,t-n,e-r,t-n+o,e-r,t-n,3))):(this.v.setTripleAt(e+r,t-n+i,e+r,t-n+o,e+r,t-n+i,0,!0),0!==i?(this.v.setTripleAt(e+r-i,t-n,e+r-i,t-n,e+r-o,t-n,1,!0),this.v.setTripleAt(e-r+i,t-n,e-r+o,t-n,e-r+i,t-n,2,!0),this.v.setTripleAt(e-r,t-n+i,e-r,t-n+i,e-r,t-n+o,3,!0),this.v.setTripleAt(e-r,t+n-i,e-r,t+n-o,e-r,t+n-i,4,!0),this.v.setTripleAt(e-r+i,t+n,e-r+i,t+n,e-r+o,t+n,5,!0),this.v.setTripleAt(e+r-i,t+n,e+r-o,t+n,e+r-i,t+n,6,!0),this.v.setTripleAt(e+r,t+n-i,e+r,t+n-i,e+r,t+n-o,7,!0)):(this.v.setTripleAt(e-r,t-n,e-r+o,t-n,e-r,t-n,1,!0),this.v.setTripleAt(e-r,t+n,e-r,t+n-o,e-r,t+n,2,!0),this.v.setTripleAt(e+r,t+n,e+r-o,t+n,e+r,t+n,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],e),e}(),f={getShapeProp:function(e,t,r){var n;return 3===r||4===r?n=(3===r?t.pt:t.ks).k.length?new c(e,t,r):new a(e,t,r):5===r?n=new p(e,t):6===r?n=new u(e,t):7===r&&(n=new l(e,t)),n.k&&e.addDynamicProperty(n),n},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return c}};return f}(),Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,n=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function a(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1)}function s(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1)}function c(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function u(e,t){return this._t(1,t,e,1,0,0)}function l(e,t){return this.shear(r(e),r(t))}function p(n,i){var o=e(i),a=t(i);return this._t(o,a,0,0,-a,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(n),1,0,0,0,0,1,0,0,0,0,1)._t(o,-a,0,0,a,o,0,0,0,0,1,0,0,0,0,1)}function f(e,t,r){return r||0===r||(r=1),1===e&&1===t&&1===r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function h(e,t,r,n,i,o,a,s,c,u,l,p,f,h,d,m){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=n,this.props[4]=i,this.props[5]=o,this.props[6]=a,this.props[7]=s,this.props[8]=c,this.props[9]=u,this.props[10]=l,this.props[11]=p,this.props[12]=f,this.props[13]=h,this.props[14]=d,this.props[15]=m,this}function d(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function m(e,t,r,n,i,o,a,s,c,u,l,p,f,h,d,m){var y=this.props;if(1===e&&0===t&&0===r&&0===n&&0===i&&1===o&&0===a&&0===s&&0===c&&0===u&&1===l&&0===p)return y[12]=y[12]*e+y[15]*f,y[13]=y[13]*o+y[15]*h,y[14]=y[14]*l+y[15]*d,y[15]*=m,this._identityCalculated=!1,this;var g=y[0],v=y[1],b=y[2],S=y[3],_=y[4],E=y[5],w=y[6],x=y[7],O=y[8],T=y[9],P=y[10],C=y[11],A=y[12],k=y[13],R=y[14],I=y[15];return y[0]=g*e+v*i+b*c+S*f,y[1]=g*t+v*o+b*u+S*h,y[2]=g*r+v*a+b*l+S*d,y[3]=g*n+v*s+b*p+S*m,y[4]=_*e+E*i+w*c+x*f,y[5]=_*t+E*o+w*u+x*h,y[6]=_*r+E*a+w*l+x*d,y[7]=_*n+E*s+w*p+x*m,y[8]=O*e+T*i+P*c+C*f,y[9]=O*t+T*o+P*u+C*h,y[10]=O*r+T*a+P*l+C*d,y[11]=O*n+T*s+P*p+C*m,y[12]=A*e+k*i+R*c+I*f,y[13]=A*t+k*o+R*u+I*h,y[14]=A*r+k*a+R*l+I*d,y[15]=A*n+k*s+R*p+I*m,this._identityCalculated=!1,this}function y(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function g(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function S(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function _(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function E(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function w(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function x(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function O(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,r=-this.props[1]/e,n=-this.props[4]/e,i=this.props[0]/e,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=r,s.props[4]=n,s.props[5]=i,s.props[12]=o,s.props[13]=a,s}function T(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function P(e){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n[t]=T(e[t]);return n}function C(e,t,r){var n=createTypedArray("float32",6);if(this.isIdentity())n[0]=e[0],n[1]=e[1],n[2]=t[0],n[3]=t[1],n[4]=r[0],n[5]=r[1];else{var i=this.props[0],o=this.props[1],a=this.props[4],s=this.props[5],c=this.props[12],u=this.props[13];n[0]=e[0]*i+e[1]*a+c,n[1]=e[0]*o+e[1]*s+u,n[2]=t[0]*i+t[1]*a+c,n[3]=t[0]*o+t[1]*s+u,n[4]=r[0]*i+r[1]*a+c,n[5]=r[0]*o+r[1]*s+u}return n}function A(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function k(e,t){if(this.isIdentity())return e+","+t;var r=this.props;return Math.round(100*(e*r[0]+t*r[4]+r[12]))/100+","+Math.round(100*(e*r[1]+t*r[5]+r[13]))/100}function R(){for(var e=0,t=this.props,r="matrix3d(";e<16;)r+=n(1e4*t[e])/1e4,r+=15===e?")":",",e+=1;return r}function I(e){return e<1e-6&&e>0||e>-1e-6&&e<0?n(1e4*e)/1e4:e}function D(){var e=this.props;return"matrix("+I(e[0])+","+I(e[1])+","+I(e[4])+","+I(e[5])+","+I(e[12])+","+I(e[13])+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=a,this.rotateY=s,this.rotateZ=c,this.skew=l,this.skewFromAxis=p,this.shear=u,this.scale=f,this.setTransform=h,this.translate=d,this.transform=m,this.multiply=y,this.applyToPoint=_,this.applyToX=E,this.applyToY=w,this.applyToZ=x,this.applyToPointArray=A,this.applyToTriplePoints=C,this.applyToPointStringified=k,this.toCSS=R,this.to2dCSS=D,this.clone=b,this.cloneFromProps=S,this.equals=v,this.inversePoints=P,this.inversePoint=T,this.getInverseMatrix=O,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="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},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var n=t[r].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,r){t[e]||(t[e]=r)},e.getModifier=function(e,r,n){return new t[e](r,n)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,n,i){var o=[];t<=1?o.push({s:e,e:t}):e>=1?o.push({s:e-1,e:t-1}):(o.push({s:e,e:1}),o.push({s:0,e:t-1}));var a,s,c=[],u=o.length;for(a=0;a<u;a+=1){var l,p;(s=o[a]).e*i<n||s.s*i>n+r||(l=s.s*i<=n?0:(s.s*i-n)/r,p=s.e*i>=n+r?1:(s.e*i-n)/r,c.push([l,p]))}return c.length||c.push([0,0]),c},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r,n,i;if(this._mdf||e){var o=this.o.v%360/360;if(o<0&&(o+=1),(t=this.s.v>1?1+o:this.s.v<0?0+o:this.s.v+o)>(r=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var a=t;t=r,r=a}t=1e-4*Math.round(1e4*t),r=1e-4*Math.round(1e4*r),this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var s,c,u,l,p,f=this.shapes.length,h=0;if(r===t)for(i=0;i<f;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===r&&0===t||0===r&&1===t){if(this._mdf)for(i=0;i<f;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var d,m,y=[];for(i=0;i<f;i+=1)if((d=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(c=(n=d.shape.paths)._length,p=0,!d.shape._mdf&&d.pathsData.length)p=d.totalShapeLength;else{for(u=this.releasePathsData(d.pathsData),s=0;s<c;s+=1)l=bez.getSegmentsLength(n.shapes[s]),u.push(l),p+=l.totalLength;d.totalShapeLength=p,d.pathsData=u}h+=p,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var g,v=t,b=r,S=0;for(i=f-1;i>=0;i-=1)if((d=this.shapes[i]).shape._mdf){for((m=d.localShapeCollection).releaseShapes(),2===this.m&&f>1?(g=this.calculateShapeEdges(t,r,d.totalShapeLength,S,h),S+=d.totalShapeLength):g=[[v,b]],c=g.length,s=0;s<c;s+=1){v=g[s][0],b=g[s][1],y.length=0,b<=1?y.push({s:d.totalShapeLength*v,e:d.totalShapeLength*b}):v>=1?y.push({s:d.totalShapeLength*(v-1),e:d.totalShapeLength*(b-1)}):(y.push({s:d.totalShapeLength*v,e:d.totalShapeLength}),y.push({s:0,e:d.totalShapeLength*(b-1)}));var _=this.addShapes(d,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var E=_.pop();this.addPaths(_,m),_=this.addShapes(d,y[1],E)}else this.addPaths(_,m),_=this.addShapes(d,y[1]);this.addPaths(_,m)}}d.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,n,i,o,a){i.setXYAt(t[0],t[1],"o",o),i.setXYAt(r[0],r[1],"i",o+1),a&&i.setXYAt(e[0],e[1],"v",o),i.setXYAt(n[0],n[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,n){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),n&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var n,i,o,a,s,c,u,l,p=e.pathsData,f=e.shape.paths.shapes,h=e.shape.paths._length,d=0,m=[],y=!0;for(r?(s=r._length,l=r._length):(r=shapePool.newElement(),s=0,l=0),m.push(r),n=0;n<h;n+=1){for(c=p[n].lengths,r.c=f[n].c,o=f[n].c?c.length:c.length+1,i=1;i<o;i+=1)if(d+(a=c[i-1]).addedLength<t.s)d+=a.addedLength,r.c=!1;else{if(d>t.e){r.c=!1;break}t.s<=d&&t.e>=d+a.addedLength?(this.addSegment(f[n].v[i-1],f[n].o[i-1],f[n].i[i],f[n].v[i],r,s,y),y=!1):(u=bez.getNewSegment(f[n].v[i-1],f[n].v[i],f[n].o[i-1],f[n].i[i],(t.s-d)/a.addedLength,(t.e-d)/a.addedLength,c[i-1]),this.addSegmentFromArray(u,r,s,y),y=!1,r.c=!1),d+=a.addedLength,s+=1}if(f[n].c&&c.length){if(a=c[i-1],d<=t.e){var g=c[i-1].addedLength;t.s<=d&&t.e>=d+g?(this.addSegment(f[n].v[i-1],f[n].o[i-1],f[n].i[0],f[n].v[0],r,s,y),y=!1):(u=bez.getNewSegment(f[n].v[i-1],f[n].v[0],f[n].o[i-1],f[n].i[0],(t.s-d)/g,(t.e-d)/g,c[i-1]),this.addSegmentFromArray(u,r,s,y),y=!1,r.c=!1)}else r.c=!1;d+=a.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[l][0],r.v[l][1],"i",l),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),d>t.e)break;n<h-1&&(r=shapePool.newElement(),y=!0,m.push(r),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,n=[0,0],i=e._length,o=0;for(o=0;o<i;o+=1)n[0]+=e.v[o][0],n[1]+=e.v[o][1];n[0]/=i,n[1]/=i;var a,s,c,u,l,p,f=shapePool.newElement();for(f.c=e.c,o=0;o<i;o+=1)a=e.v[o][0]+(n[0]-e.v[o][0])*r,s=e.v[o][1]+(n[1]-e.v[o][1])*r,c=e.o[o][0]+(n[0]-e.o[o][0])*-r,u=e.o[o][1]+(n[1]-e.o[o][1])*-r,l=e.i[o][0]+(n[0]-e.i[o][0])*-r,p=e.i[o][1]+(n[1]-e.i[o][1])*-r,f.setTripleAt(a,s,c,u,l,p,o);return f},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,c=this.amount.v;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,r){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var n,i=t.or.k.length;for(n=0;n<i;n+=1)t.or.k[n].to=null,t.or.k[n].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var n,i;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(n=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],i=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(n[0]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),i[0]=o.getValueAtTime(o.keyframes[0].t/r,0),i[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(n[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),n[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),i[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(n=[o.pv,a.pv],i[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime),i[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else n=i=e;this.v.rotate(-Math.atan2(n[1]-i[1],n[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,r,n){return new t(e,r,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(0===e)return[];var n=t*t-4*e*r;if(n<0)return[];var i=-t/(2*e);if(0===n)return[i];var o=Math.sqrt(n)/(2*e);return[i-o,i+o]}function polynomialCoefficients(e,t,r,n){return[3*t-e-3*r+n,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,n,i){i&&pointEqual(e,t)&&(t=lerpPoint(e,n,1/3)),i&&pointEqual(r,n)&&(r=lerpPoint(e,n,2/3));var o=polynomialCoefficients(e[0],t[0],r[0],n[0]),a=polynomialCoefficients(e[1],t[1],r[1],n[1]);this.a=[o[0],a[0]],this.b=[o[1],a[1]],this.c=[o[2],a[2]],this.d=[o[3],a[3]],this.points=[e,t,r,n]}function extrema(e,t){var r=e.points[0][t],n=e.points[e.points.length-1][t];if(r>n){var i=n;n=r,r=i}for(var o=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<o.length;a+=1)if(o[a]>0&&o[a]<1){var s=e.point(o[a])[t];s<r?r=s:s>n&&(n=s)}return{min:r,max:n}}function intersectData(e,t,r){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,r,n,i,o){if(boxIntersect(e,t))if(r>=o||e.width<=n&&e.height<=n&&t.width<=n&&t.height<=n)i.push([e.t,t.t]);else{var a=splitData(e),s=splitData(t);intersectsImpl(a[0],s[0],r+1,n,i,o),intersectsImpl(a[0],s[1],r+1,n,i,o),intersectsImpl(a[1],s[0],r+1,n,i,o),intersectsImpl(a[1],s[1],r+1,n,i,o)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,n){var i=[e[0],e[1],1],o=[t[0],t[1],1],a=[r[0],r[1],1],s=[n[0],n[1],1],c=crossProduct(crossProduct(i,o),crossProduct(a,s));return floatZero(c[2])?null:[c[0]/c[2],c[1]/c[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,r,n,i,o,a){var s=r-Math.PI/2,c=r+Math.PI/2,u=t[0]+Math.cos(r)*n*i,l=t[1]-Math.sin(r)*n*i;e.setTripleAt(u,l,u+Math.cos(s)*o,l-Math.sin(s)*o,u+Math.cos(c)*a,l-Math.sin(c)*a,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],n=.5*-Math.PI;return[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]]}function getProjectingAngle(e,t){var r=0===t?e.length()-1:t-1,n=(t+1)%e.length(),i=getPerpendicularVector(e.v[r],e.v[n]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(e,t,r,n,i,o,a){var s=getProjectingAngle(t,r),c=t.v[r%t._length],u=t.v[0===r?t._length-1:r-1],l=t.v[(r+1)%t._length],p=2===o?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0,f=2===o?Math.sqrt(Math.pow(c[0]-l[0],2)+Math.pow(c[1]-l[1],2)):0;setPoint(e,t.v[r%t._length],s,a,n,f/(2*(i+1)),p/(2*(i+1)),o)}function zigZagSegment(e,t,r,n,i,o){for(var a=0;a<n;a+=1){var s=(a+1)/(n+1),c=2===i?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,u=t.normalAngle(s);setPoint(e,t.point(s),u,o,r,c/(2*(n+1)),c/(2*(n+1)),i),o=-o}return o}function linearOffset(e,t,r){var n=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,n,r),polarOffset(t,n,r)]}function offsetSegment(e,t){var r,n,i,o,a,s,c;r=(c=linearOffset(e.points[0],e.points[1],t))[0],n=c[1],i=(c=linearOffset(e.points[1],e.points[2],t))[0],o=c[1],a=(c=linearOffset(e.points[2],e.points[3],t))[0],s=c[1];var u=lineIntersection(r,n,i,o);null===u&&(u=n);var l=lineIntersection(a,s,i,o);return null===l&&(l=a),new PolynomialBezier(r,u,l,s)}function joinLines(e,t,r,n,i){var o=t.points[3],a=r.points[0];if(3===n)return o;if(pointEqual(o,a))return o;if(2===n){var s=-t.tangentAngle(1),c=-r.tangentAngle(0)+Math.PI,u=lineIntersection(o,polarOffset(o,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),l=u?pointDistance(u,o):pointDistance(o,a)/2,p=polarOffset(o,s,2*l*roundCorner);return e.setXYAt(p[0],p[1],"o",e.length()-1),p=polarOffset(a,c,2*l*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],p[0],p[1],e.length()),a}var f=lineIntersection(pointEqual(o,t.points[2])?t.points[0]:t.points[2],o,a,pointEqual(a,r.points[1])?r.points[3]:r.points[1]);return f&&pointDistance(f,o)<i?(e.setTripleAt(f[0],f[1],f[0],f[1],f[0],f[1],e.length()),f):o}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),n=t.slice(),i=getIntersection(e[e.length-1],t[0]);return i&&(r[e.length-1]=e[e.length-1].split(i[0])[0],n[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=getIntersection(e[0],t[t.length-1]))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[r,n]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r,n,i,o,a=e.inflectionPoints();if(0===a.length)return[offsetSegment(e,t)];if(1===a.length||floatEqual(a[1],1))return r=(i=e.split(a[0]))[0],n=i[1],[offsetSegment(r,t),offsetSegment(n,t)];r=(i=e.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return o=(i=i[1].split(s))[0],n=i[1],[offsetSegment(r,t),offsetSegment(o,t),offsetSegment(n,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",n="normal",i=t.length,o=0;o<i;o+=1)switch(t[o].toLowerCase()){case"italic":n="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:n,weight:e.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,n,i,o){var a=o?-1:1,s=n.s.v[0]+(1-n.s.v[0])*(1-i),c=n.s.v[1]+(1-n.s.v[1])*(1-i);e.translate(n.p.v[0]*a*i,n.p.v[1]*a*i,n.p.v[2]),t.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),t.rotate(-n.r.v*a*i),t.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(o?1/s:s,o?1/c:c),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,n){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]._render=t,"gr"===e[r].ty&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,n,i,o,a=!1;if(this._mdf||e){var s,c=Math.ceil(this.c.v);if(this._groups.length<c){for(;this._groups.length<c;){var u={it:this.cloneElements(this._elements),ty:"gr"};u.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,u),this._groups.splice(0,0,u),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(o=0,n=0;n<=this._groups.length-1;n+=1){if(s=o<c,this._groups[n]._render=s,this.changeGroupRender(this._groups[n].it,s),!s){var l=this.elemsData[n].it,p=l[l.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}o+=1}this._currentCopies=c;var f=this.o.v,h=f%1,d=f>0?Math.floor(f):Math.ceil(f),m=this.pMatrix.props,y=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,S=0;if(f>0){for(;S<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),S+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),S+=h)}else if(f<0){for(;S>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),S-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),S-=h)}for(n=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,o=this._currentCopies;o;){if(b=(r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==S){for((0!==n&&1===i||n!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<b;v+=1)r[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)r[v]=this.matrix.props[v];S+=1,o-=1,n+=i}}else for(o=this._currentCopies,n=0,i=1;o;)r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,o-=1,n+=i;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r,n=shapePool.newElement();n.c=e.c;var i,o,a,s,c,u,l,p,f,h,d,m,y=e._length,g=0;for(r=0;r<y;r+=1)i=e.v[r],a=e.o[r],o=e.i[r],i[0]===a[0]&&i[1]===a[1]&&i[0]===o[0]&&i[1]===o[1]?0!==r&&r!==y-1||e.c?(s=0===r?e.v[y-1]:e.v[r-1],u=(c=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(c/2,t)/c:0,l=d=i[0]+(s[0]-i[0])*u,p=m=i[1]-(i[1]-s[1])*u,f=l-(l-i[0])*roundCorner,h=p-(p-i[1])*roundCorner,n.setTripleAt(l,p,f,h,d,m,g),g+=1,s=r===y-1?e.v[0]:e.v[r+1],u=(c=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(c/2,t)/c:0,l=f=i[0]+(s[0]-i[0])*u,p=h=i[1]+(s[1]-i[1])*u,d=l-(l-i[0])*roundCorner,m=p-(p-i[1])*roundCorner,n.setTripleAt(l,p,f,h,d,m,g),g+=1):(n.setTripleAt(i[0],i[1],a[0],a[1],o[0],o[1],g),g+=1):(n.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],g),g+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,c=this.rd.v;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var n=Math.sqrt(r);return floatZero(n)?n>0&&n<1?[t]:[]:[t-n,t+n].filter((function(e){return e>0&&e<1}))},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),n=lerpPoint(this.points[2],this.points[3],e),i=lerpPoint(t,r,e),o=lerpPoint(r,n,e),a=lerpPoint(i,o,e);return[new PolynomialBezier(this.points[0],t,i,a,!0),new PolynomialBezier(a,o,n,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,r){void 0===t&&(t=2),void 0===r&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,n,r),n},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,r,n){var i=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(i-=1),0===i)return o;var a=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,t,r,n,a);for(var c=0;c<i;c+=1)a=zigZagSegment(o,s,t,r,n,-a),s=c!==i-1||e.c?PolynomialBezier.shapeSegment(e,(c+1)%i):null,zigZagCorner(o,e,c+1,t,r,n,a);return o},ZigZagModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,c=this.amplitude.v,u=Math.max(0,Math.round(this.frequency.v)),l=this.pointsType.v;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],c,u,l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,r,n){var i=shapePool.newElement();i.c=e.c;var o,a,s,c=e.length();e.c||(c-=1);var u=[];for(o=0;o<c;o+=1)s=PolynomialBezier.shapeSegment(e,o),u.push(offsetSegmentSplit(s,t));if(!e.c)for(o=c-1;o>=0;o-=1)s=PolynomialBezier.shapeSegmentInverted(e,o),u.push(offsetSegmentSplit(s,t));u=pruneIntersections(u);var l=null,p=null;for(o=0;o<u.length;o+=1){var f=u[o];for(p&&(l=joinLines(i,p,f[0],r,n)),p=f[f.length-1],a=0;a<f.length;a+=1)s=f[a],l&&pointEqual(s.points[0],l)?i.setXYAt(s.points[1][0],s.points[1][1],"o",i.length()-1):i.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],i.length()),i.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],i.length()),l=s.points[3]}return u.length&&joinLines(i,p,u[0][0],r,n),i},OffsetPathModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,c=this.amount.v,u=this.miterLimit.v,l=this.lineJoin;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],c,l,u));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function i(e,t){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=t;var n=createTag("span");n.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(n),document.body.appendChild(r);var i=n.offsetWidth;return n.style.fontFamily=function(e){var t,r=e.split(","),n=r.length,i=[];for(t=0;t<n;t+=1)"sans-serif"!==r[t]&&"monospace"!==r[t]&&i.push(r[t]);return i.join(",")}(e)+", "+t,{node:n,w:i,parent:r}}function o(e,t){var r,n=document.body&&t?"svg":"canvas",i=getFontProperties(e);if("svg"===n){var o=createNS("text");o.style.fontSize="100px",o.setAttribute("font-family",e.fFamily),o.setAttribute("font-style",i.style),o.setAttribute("font-weight",i.weight),o.textContent="1",e.fClass?(o.style.fontFamily="inherit",o.setAttribute("class",e.fClass)):o.style.fontFamily=e.fFamily,t.appendChild(o),r=o}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=i.style+" "+i.weight+" 100px "+e.fFamily,r=a}return{measureText:function(e){return"svg"===n?(r.textContent=e,r.getComputedTextLength()):r.measureText(e).width}}}function a(e){var t=0,r=e.charCodeAt(0);if(r>=55296&&r<=56319){var n=e.charCodeAt(1);n>=56320&&n<=57343&&(t=1024*(r-55296)+n-56320+65536)}return t}function s(e){var t=a(e);return t>=127462&&t<=127487}var c=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};c.isModifier=function(e,t){var r=e.toString(16)+t.toString(16);return-1!==n.indexOf(r)},c.isZeroWidthJoiner=function(e){return 8205===e},c.isFlagEmoji=function(e){return s(e.substr(0,2))&&s(e.substr(2,2))},c.isRegionalCode=s,c.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},c.isRegionalFlag=function(e,t){var n=a(e.substr(t,2));if(n!==r)return!1;var i=0;for(t+=2;i<5;){if((n=a(e.substr(t,2)))<917601||n>917626)return!1;i+=1,t+=2}return 917631===a(e.substr(t,2))},c.isVariationSelector=function(e){return 65039===e},c.BLACK_FLAG_CODE_POINT=r;var u={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var r,n,i=e.length,o=this.chars.length;for(t=0;t<i;t+=1){for(r=0,n=!1;r<o;)this.chars[r].style===e[t].style&&this.chars[r].fFamily===e[t].fFamily&&this.chars[r].ch===e[t].ch&&(n=!0),r+=1;n||(this.chars.push(e[t]),o+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=o(e),e.cache={}})),void(this.fonts=e.list);var r,n=e.list,a=n.length,s=a;for(r=0;r<a;r+=1){var c,u,l=!0;if(n[r].loaded=!1,n[r].monoCase=i(n[r].fFamily,"monospace"),n[r].sansCase=i(n[r].fFamily,"sans-serif"),n[r].fPath){if("p"===n[r].fOrigin||3===n[r].origin){if((c=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[r].fFamily+'"], style[f-origin="3"][f-family="'+n[r].fFamily+'"]')).length>0&&(l=!1),l){var p=createTag("style");p.setAttribute("f-forigin",n[r].fOrigin),p.setAttribute("f-origin",n[r].origin),p.setAttribute("f-family",n[r].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+n[r].fFamily+"; font-style: normal; src: url('"+n[r].fPath+"');}",t.appendChild(p)}}else if("g"===n[r].fOrigin||1===n[r].origin){for(c=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),u=0;u<c.length;u+=1)-1!==c[u].href.indexOf(n[r].fPath)&&(l=!1);if(l){var f=createTag("link");f.setAttribute("f-forigin",n[r].fOrigin),f.setAttribute("f-origin",n[r].origin),f.type="text/css",f.rel="stylesheet",f.href=n[r].fPath,document.body.appendChild(f)}}else if("t"===n[r].fOrigin||2===n[r].origin){for(c=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),u=0;u<c.length;u+=1)n[r].fPath===c[u].src&&(l=!1);if(l){var h=createTag("link");h.setAttribute("f-forigin",n[r].fOrigin),h.setAttribute("f-origin",n[r].origin),h.setAttribute("rel","stylesheet"),h.setAttribute("href",n[r].fPath),t.appendChild(h)}}}else n[r].loaded=!0,s-=1;n[r].helper=o(n[r],t),n[r].cache={},this.fonts.push(n[r])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,r,n){for(var i=0,o=this.chars.length;i<o;){if(this.chars[i].ch===t&&this.chars[i].style===r&&this.chars[i].fFamily===n)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,r,n)),e},getFontByName:function(e){for(var t=0,r=this.fonts.length;t<r;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,r){var n=this.getFontByName(t),i=e;if(!n.cache[i]){var o=n.helper;if(" "===e){var a=o.measureText("|"+e+"|"),s=o.measureText("||");n.cache[i]=(a-s)/100}else n.cache[i]=o.measureText(e)/100}return n.cache[i]*r},checkLoadedFonts:function(){var e,t,r,n=this.fonts.length,i=n;for(e=0;e<n;e+=1)this.fonts[e].loaded?i-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,t.offsetWidth!==r?(i-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,t.offsetWidth!==r&&(i-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return c.prototype=u,c}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r,n=e.ef||[];this.effectElements=[];var i,o=n.length;for(r=0;r<o;r+=1)i=new GroupEffect(n[r],t),this.effectElements.push(i)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var r;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var n,i=this.data.ef.length,o=this.data.ef;for(r=0;r<i;r+=1){switch(n=null,o[r].ty){case 0:n=new SliderEffect(o[r],t,this);break;case 1:n=new AngleEffect(o[r],t,this);break;case 2:n=new ColorEffect(o[r],t,this);break;case 3:n=new PointEffect(o[r],t,this);break;case 4:case 7:n=new CheckboxEffect(o[r],t,this);break;case 10:n=new LayerIndexEffect(o[r],t,this);break;case 11:n=new MaskIndexEffect(o[r],t,this);break;case 5:n=new EffectsManager(o[r],t,this);break;default:n=new NoValueEffect(o[r],t,this)}n&&this.effectElements.push(n)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),r=e("effects"),n=e("shape"),i=e("text"),o=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=o(this):4===this.data.ty?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,r){this.globalData=t,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var r,n=this.dynamicProperties.length;for(r=0;r<n;r+=1)(t||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,n=this.layers.length;for(this.completeLayers=!0,t=n-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var r,n=e.length,i=this.layers.length;for(t=0;t<n;t+=1)for(r=0;r<i;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var n=this.elements,i=this.layers,o=0,a=i.length;o<a;)i[o].ind==t&&(n[o]&&!0!==n[o]?(r.push(n[o]),n[o].setAsParent(),void 0!==i[o].parent?this.buildElementParenting(e,i[o].parent,r):e.setHierarchy(r)):(this.buildItem(o),this.addPendingElement(e))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var n=this.createComp(e[t]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if("number"==typeof r)t=this.elements[r];else{var n,i=this.elements.length;for(n=0;n<i;n+=1)if(this.elements[n].data.nm===r){t=this.elements[n];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n,i,o=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var s,c,u,l,p,f,h=this.masksProperties,d=0,m=[],y=createElementID(),g="clipPath",v="clip-path";for(n=0;n<a;n+=1)if(("a"!==h[n].mode&&"n"!==h[n].mode||h[n].inv||100!==h[n].o.k||h[n].o.x)&&(g="mask",v="mask"),"s"!==h[n].mode&&"i"!==h[n].mode||0!==d?u=null:((u=createNS("rect")).setAttribute("fill","#ffffff"),u.setAttribute("width",this.element.comp.data.w||0),u.setAttribute("height",this.element.comp.data.h||0),m.push(u)),i=createNS("path"),"n"===h[n].mode)this.viewData[n]={op:PropertyFactory.getProp(this.element,h[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[n],3),elem:i,lastPath:""},o.appendChild(i);else{var b;if(d+=1,i.setAttribute("fill","s"===h[n].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==h[n].x.k?(g="mask",v="mask",f=PropertyFactory.getProp(this.element,h[n].x,0,null,this.element),b=createElementID(),(l=createNS("filter")).setAttribute("id",b),(p=createNS("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),l.appendChild(p),o.appendChild(l),i.setAttribute("stroke","s"===h[n].mode?"#000000":"#ffffff")):(p=null,f=null),this.storedData[n]={elem:i,x:f,expan:p,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===h[n].mode){c=m.length;var S=createNS("g");for(s=0;s<c;s+=1)S.appendChild(m[s]);var _=createNS("mask");_.setAttribute("mask-type","alpha"),_.setAttribute("id",y+"_"+d),_.appendChild(i),o.appendChild(_),S.setAttribute("mask","url("+getLocationHref()+"#"+y+"_"+d+")"),m.length=0,m.push(S)}else m.push(i);h[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,h[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[n],3),invRect:u},this.viewData[n].prop.k||this.drawPath(h[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(g),a=m.length,n=0;n<a;n+=1)this.maskElement.appendChild(m[n]);d>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+y+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<n;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),r=0;r<n;r+=1)t.multiply(this.hierarchy[r].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),e=1;e<t;e+=1){var n=this.localTransforms[e].matrix;r.multiply(n)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var i=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)i*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=i}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,r=e.length;for(t=0;t<r;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,n=!0,i=this.comp;n;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):n=!1;var o,a=t.length;for(r=0;r<a;r+=1)o=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-o[0],e[1]-o[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,r=this.element.finalTransform.mat,n=this.masksProperties.length;for(t=0;t<n;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,r){var n,i,o=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,n=1;n<i;n+=1)o+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[n][0]+","+t.i[n][1]+" "+t.v[n][0]+","+t.v[n][1];if(t.c&&i>1&&(o+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==o){var a="";r.elem&&(t.c&&(a=e.inv?this.solidPath+o:o),r.elem.setAttribute("d",a)),r.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var r=createNS("filter");return r.setAttribute("id",e),!0!==t&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r,n="SourceGraphic",i=e.data.ef?e.data.ef.length:0,o=createElementID(),a=filtersFactory.createFilter(o,!0),s=0;for(this.filters=[],t=0;t<i;t+=1){r=null;var c=e.data.ef[t].ty;registeredEffects$1[c]&&(r=new(0,registeredEffects$1[c].effect)(a,e.effectsManager.effectElements[t],e,idPrefix+s,n),n=idPrefix+s,registeredEffects$1[c].countsAsEffect&&(s+=1)),r&&this.filters.push(r)}s&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var r=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=createElementID();if(r.setAttribute("id",i),r.appendChild(n),this.globalData.defs.appendChild(r),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),o.appendChild(this.layerElement),this.transformedElement=o,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,r,n,i,o=this.layerId+"_"+e;if(1===e||3===e){var a=createNS("mask");a.setAttribute("id",o),a.setAttribute("mask-type",3===e?"luminance":"alpha"),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(n),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==e||(a.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(n),a.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",o),s.setAttribute("mask-type","alpha");var c=createNS("g");s.appendChild(c),t=createElementID(),r=filtersFactory.createFilter(t);var u=createNS("feComponentTransfer");u.setAttribute("in","SourceGraphic"),r.appendChild(u);var l=createNS("feFuncA");l.setAttribute("type","table"),l.setAttribute("tableValues","1.0 0.0"),u.appendChild(l),this.globalData.defs.appendChild(r);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),c.appendChild(p),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(n),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),c.appendChild(p),i.appendChild(this.layerElement),c.appendChild(i)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=o}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,r=this.shapeModifiers.length;for(t=0;t<r;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,n=t.length;r<n;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,n=r.length;n;)if(r[n-=1].elem===e)return void(r[n].pos=t);r.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var n=0,i=e.length;n<i;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,r,n){var i;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var o,a=t.length||0;for(i=0;i<a;i+=1)o=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=o.k||this.k,this.dataProps[i]={n:t[i].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var n=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<r;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,n=this.o.length/2;r<n;){if(Math.abs(e[4*r]-e[4*t+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r,n,i=4*this.data.p;for(t=0;t<i;t+=1)r=t%4==0?100:255,n=Math.round(this.prop.v[t]*r),this.c[t]!==n&&(this.c[t]=n,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)r=t%2==0?100:1,n=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==n&&(this.o[t-4*this.data.p]=n,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),n=createNS(1===t.t?"linearGradient":"radialGradient");n.setAttribute("id",r),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var i,o,a,s=[];for(a=4*t.g.p,o=0;o<a;o+=4)i=createNS("stop"),n.appendChild(i),s.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=n,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,n,i,o=createNS("mask"),a=createNS("path");o.appendChild(a);var s=createElementID(),c=createElementID();o.setAttribute("id",c);var u=createNS(1===e.t?"linearGradient":"radialGradient");u.setAttribute("id",s),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var l=this.stops;for(n=4*e.g.p;n<i;n+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(r),l.push(r);a.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=u,this.ms=o,this.ost=l,this.maskId=c,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,n){if(0===t)return"";var i,o=e.o,a=e.i,s=e.v,c=" M"+n.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<t;i+=1)c+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(a[i][0],a[i][1])+" "+n.applyToPointStringified(s[i][0],s[i][1]);return r&&t&&(c+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(a[0][0],a[0][1])+" "+n.applyToPointStringified(s[0][0],s[0][1]),c+="z"),c},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function r(e,t,r){(r||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(r||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function n(){}function i(r,n,i){var o,a,s,c,u,l,p,f,h,d,m=n.styles.length,y=n.lvl;for(l=0;l<m;l+=1){if(c=n.sh._mdf||i,n.styles[l].lvl<y){for(f=t.reset(),h=y-n.styles[l].lvl,d=n.transformers.length-1;!c&&h>0;)c=n.transformers[d].mProps._mdf||c,h-=1,d-=1;if(c)for(h=y-n.styles[l].lvl,d=n.transformers.length-1;h>0;)f.multiply(n.transformers[d].mProps.v),h-=1,d-=1}else f=e;if(a=(p=n.sh.paths)._length,c){for(s="",o=0;o<a;o+=1)(u=p.shapes[o])&&u._length&&(s+=buildShapeString(u,u._length,u.c,f));n.caches[l]=s}else s=n.caches[l];n.styles[l].d+=!0===r.hd?"":s,n.styles[l]._mdf=c||n.styles[l]._mdf}}function o(e,t,r){var n=t.style;(t.c._mdf||r)&&n.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("fill-opacity",t.o.v)}function a(e,t,r){s(e,t,r),c(0,t,r)}function s(e,t,r){var n,i,o,a,s,c=t.gf,u=t.g._hasOpacity,l=t.s.v,p=t.e.v;if(t.o._mdf||r){var f="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(f,t.o.v)}if(t.s._mdf||r){var h=1===e.t?"x1":"cx",d="x1"===h?"y1":"cy";c.setAttribute(h,l[0]),c.setAttribute(d,l[1]),u&&!t.g._collapsable&&(t.of.setAttribute(h,l[0]),t.of.setAttribute(d,l[1]))}if(t.g._cmdf||r){n=t.cst;var m=t.g.c;for(o=n.length,i=0;i<o;i+=1)(a=n[i]).setAttribute("offset",m[4*i]+"%"),a.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(u&&(t.g._omdf||r)){var y=t.g.o;for(o=(n=t.g._collapsable?t.cst:t.ost).length,i=0;i<o;i+=1)a=n[i],t.g._collapsable||a.setAttribute("offset",y[2*i]+"%"),a.setAttribute("stop-opacity",y[2*i+1])}if(1===e.t)(t.e._mdf||r)&&(c.setAttribute("x2",p[0]),c.setAttribute("y2",p[1]),u&&!t.g._collapsable&&(t.of.setAttribute("x2",p[0]),t.of.setAttribute("y2",p[1])));else if((t.s._mdf||t.e._mdf||r)&&(s=Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)),c.setAttribute("r",s),u&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.e._mdf||t.h._mdf||t.a._mdf||r){s||(s=Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)));var g=Math.atan2(p[1]-l[1],p[0]-l[0]),v=t.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=s*v,S=Math.cos(g+t.a.v)*b+l[0],_=Math.sin(g+t.a.v)*b+l[1];c.setAttribute("fx",S),c.setAttribute("fy",_),u&&!t.g._collapsable&&(t.of.setAttribute("fx",S),t.of.setAttribute("fy",_))}}function c(e,t,r){var n=t.style,i=t.d;i&&(i._mdf||r)&&i.dashStr&&(n.pElem.setAttribute("stroke-dasharray",i.dashStr),n.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||r)&&n.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(n.pElem.setAttribute("stroke-width",t.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return o;case"gf":return s;case"gs":return a;case"st":return c;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r;case"no":return n;default:return null}}}}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}function LetterProps(e,t,r,n,i,o){this.o=e,this.sw=t,this.sc=r,this.fc=n,this.m=i,this.p=o,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!n,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,r,n,i=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(r=0;r<o;r+=1){for(n=this.stylesList[r],s=!1,a.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(n)&&(a.push(t),s=t._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,n=new SVGStyleData(e,t),i=n.pElem;return"st"===e.ty?r=new SVGStrokeStyleData(this,e,n):"fl"===e.ty?r=new SVGFillStyleData(this,e,n):"gf"===e.ty||"gs"===e.ty?(r=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,n),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),i.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===e.ty&&(r=new SVGNoStyleData(this,e,n)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(n),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),n=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var n=4;"rc"===e.ty?n=5:"el"===e.ty?n=6:"sr"===e.ty&&(n=7);var i=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,n,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,n=this.animatedContents.length;r<n;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,r=e.styles,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||r.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,n,i,o,a){var s,c,u,l,p,f,h=[].concat(o),d=e.length-1,m=[],y=[];for(s=d;s>=0;s-=1){if((f=this.searchProcessedElement(e[s]))?t[s]=r[f-1]:e[s]._render=a,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)f?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==n&&n.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(f)for(u=t[s].it.length,c=0;c<u;c+=1)t[s].prevViewData[c]=t[s].it[c];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,i+1,h,a),e[s]._render&&t[s].gr.parentNode!==n&&n.appendChild(t[s].gr)}else"tr"===e[s].ty?(f||(t[s]=this.createTransformElement(e[s],n)),l=t[s].transform,h.push(l)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(f||(t[s]=this.createShapeElement(e[s],h,i)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(f?(p=t[s]).closed=!1:((p=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=p,this.shapeModifiers.push(p)),y.push(p)):"rp"===e[s].ty&&(f?(p=t[s]).closed=!0:(p=ShapeModifiers.getModifier(e[s].ty),t[s]=p,p.init(this,e,s,t),this.shapeModifiers.push(p),a=!1),y.push(p));this.addProcessedElement(e[s],s+1)}for(d=m.length,s=0;s<d;s+=1)m[s].closed=!0;for(d=y.length,s=0;s<d;s+=1)y[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,r=this.animatedContents.length;for(e=0;e<r;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,r,n,i,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,a=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,a=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var n;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(n=0;n<i;n+=1)o=r!==this.keysIndex?this.effectsSequence[n](o,o.t):this.effectsSequence[n](this.currentData,o.t);t!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,n=e.length;r<=n-1&&!(r===n-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,r,n=[],i=0,o=e.length,a=!1,s=!1,c="";i<o;)a=s,s=!1,t=e.charCodeAt(i),c=e.charAt(i),FontManager.isCombinedCharacter(t)?a=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,i)?c=e.substr(i,14):(r=e.charCodeAt(i+1))>=56320&&r<=57343&&(FontManager.isModifier(t,r)?(c=e.substr(i,2),a=!0):c=FontManager.isFlagEmoji(e.substr(i,4))?e.substr(i,4):e.substr(i,2)):t>56319?(r=e.charCodeAt(i+1),FontManager.isVariationSelector(t)&&(a=!0)):FontManager.isZeroWidthJoiner(t)&&(a=!0,s=!0),a?(n[n.length-1]+=c,a=!1):n.push(c),i+=c.length;return n},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,n,i,o,a,s,c=this.elem.globalData.fontManager,u=this.data,l=[],p=0,f=u.m.g,h=0,d=0,m=0,y=[],g=0,v=0,b=c.getFontByName(e.f),S=0,_=getFontProperties(b);e.fWeight=_.weight,e.fStyle=_.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var E,w=e.tr/1e3*e.finalSize;if(e.sz)for(var x,O,T=!0,P=e.sz[0],C=e.sz[1];T;){x=0,g=0,r=(O=this.buildFinalText(e.t)).length,w=e.tr/1e3*e.finalSize;var A=-1;for(t=0;t<r;t+=1)E=O[t].charCodeAt(0),n=!1," "===O[t]?A=t:13!==E&&3!==E||(g=0,n=!0,x+=e.finalLineHeight||1.2*e.finalSize),c.chars?(s=c.getCharData(O[t],b.fStyle,b.fFamily),S=n?0:s.w*e.finalSize/100):S=c.measureText(O[t],e.f,e.finalSize),g+S>P&&" "!==O[t]?(-1===A?r+=1:t=A,x+=e.finalLineHeight||1.2*e.finalSize,O.splice(t,A===t?1:0,"\r"),A=-1,g=0):(g+=S,g+=w);x+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&C<x?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=O,r=e.finalText.length,T=!1)}g=-w,S=0;var k,R=0;for(t=0;t<r;t+=1)if(n=!1,13===(E=(k=e.finalText[t]).charCodeAt(0))||3===E?(R=0,y.push(g),v=g>v?g:v,g=-2*w,i="",n=!0,m+=1):i=k,c.chars?(s=c.getCharData(k,b.fStyle,c.getFontByName(e.f).fFamily),S=n?0:s.w*e.finalSize/100):S=c.measureText(i,e.f,e.finalSize)," "===k?R+=S+w:(g+=S+w+R,R=0),l.push({l:S,an:S,add:h,n,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==f){if(h+=S,""===i||" "===i||t===r-1){for(""!==i&&" "!==i||(h-=S);d<=t;)l[d].an=h,l[d].ind=p,l[d].extra=S,d+=1;p+=1,h=0}}else if(3==f){if(h+=S,""===i||t===r-1){for(""===i&&(h-=S);d<=t;)l[d].an=h,l[d].ind=p,l[d].extra=S,d+=1;h=0,p+=1}}else l[p].ind=p,l[p].extra=0,p+=1;if(e.l=l,v=g>v?g:v,y.push(g),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=v,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=y;var I,D,M,N,F=u.a;a=F.length;var L=[];for(o=0;o<a;o+=1){for((I=F[o]).a.sc&&(e.strokeColorAnim=!0),I.a.sw&&(e.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(e.fillColorAnim=!0),N=0,M=I.s.b,t=0;t<r;t+=1)(D=l[t]).anIndexes[o]=N,(1==M&&""!==D.val||2==M&&""!==D.val&&" "!==D.val||3==M&&(D.n||" "==D.val||t==r-1)||4==M&&(D.n||t==r-1))&&(1===I.s.rn&&L.push(N),N+=1);u.a[o].s.totalChars=N;var j,B=-1;if(1===I.s.rn)for(t=0;t<r;t+=1)B!=(D=l[t]).anIndexes[o]&&(B=D.anIndexes[o],j=L.splice(Math.floor(Math.random()*L.length),1)[0]),D.anIndexes[o]=j}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,r=Math.floor;function n(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,o=0,a=1,s=1;this.ne.v>0?i=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var c=BezierFactory.getBezierEasing(i,o,a,s).get,u=0,l=this.finalS,p=this.finalE,f=this.data.sh;if(2===f)u=c(u=p===l?n>=p?1:0:e(0,t(.5/(p-l)+(n-l)/(p-l),1)));else if(3===f)u=c(u=p===l?n>=p?0:1:1-e(0,t(.5/(p-l)+(n-l)/(p-l),1)));else if(4===f)p===l?u=0:(u=e(0,t(.5/(p-l)+(n-l)/(p-l),1)))<.5?u*=2:u=1-2*(u-.5),u=c(u);else if(5===f){if(p===l)u=0;else{var h=p-l,d=-h/2+(n=t(e(0,n+.5-l),p-l)),m=h/2;u=Math.sqrt(1-d*d/(m*m))}u=c(u)}else 6===f?(p===l?u=0:(n=t(e(0,n+.5-l),p-l),u=(1+Math.cos(Math.PI+2*Math.PI*n/(p-l)))/2),u=c(u)):(n>=r(l)&&(u=e(0,t(n-l<0?t(p,1)-(l-n):p-n,1))),u=c(u));if(100!==this.sm.v){var y=.01*this.sm.v;0===y&&(y=1e-8);var g=.5-.5*y;u<g?u=0:(u=(u-g)/y)>1&&(u=1)}return u*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/t,n=this.s.v/t+r,i=this.e.v/t+r;if(n>i){var o=n;n=i,i=o}this.finalS=n,this.finalE=i}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(e,t,r){return new n(e,t,r)}}}();function TextAnimatorDataProperty(e,t,r){var n={propType:!1},i=PropertyFactory.getProp,o=t.a;this.a={r:o.r?i(e,o.r,0,degToRads,r):n,rx:o.rx?i(e,o.rx,0,degToRads,r):n,ry:o.ry?i(e,o.ry,0,degToRads,r):n,sk:o.sk?i(e,o.sk,0,degToRads,r):n,sa:o.sa?i(e,o.sa,0,degToRads,r):n,s:o.s?i(e,o.s,1,.01,r):n,a:o.a?i(e,o.a,1,0,r):n,o:o.o?i(e,o.o,0,.01,r):n,p:o.p?i(e,o.p,1,0,r):n,sw:o.sw?i(e,o.sw,0,0,r):n,sc:o.sc?i(e,o.sc,1,0,r):n,fc:o.fc?i(e,o.fc,1,0,r):n,fh:o.fh?i(e,o.fh,0,0,r):n,fs:o.fs?i(e,o.fs,0,.01,r):n,fb:o.fb?i(e,o.fb,0,.01,r):n,t:o.t?i(e,o.t,0,0,r):n},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,n=PropertyFactory.getProp;for(e=0;e<r;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,n,i,o,a,s,c,u,l,p,f,h,d,m,y,g,v,b,S,_=this._moreOptions.alignment.v,E=this._animatorsData,w=this._textData,x=this.mHelper,O=this._renderType,T=this.renderedLetters.length,P=e.l;if(this._hasMaskedPath){if(S=this._pathData.m,!this._pathData.n||this._pathData._mdf){var C,A=S.v;for(this._pathData.r.v&&(A=A.reverse()),a={tLength:0,segments:[]},o=A._length-1,g=0,i=0;i<o;i+=1)C=bez.buildBezierData(A.v[i],A.v[i+1],[A.o[i][0]-A.v[i][0],A.o[i][1]-A.v[i][1]],[A.i[i+1][0]-A.v[i+1][0],A.i[i+1][1]-A.v[i+1][1]]),a.tLength+=C.segmentLength,a.segments.push(C),g+=C.segmentLength;i=o,S.v.c&&(C=bez.buildBezierData(A.v[i],A.v[0],[A.o[i][0]-A.v[i][0],A.o[i][1]-A.v[i][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),a.tLength+=C.segmentLength,a.segments.push(C),g+=C.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,f=0,p=1,u=0,l=!0,m=a.segments,s<0&&S.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),p=(d=m[f=m.length-1].points).length-1;s<0;)s+=d[p].partialLength,(p-=1)<0&&(p=(d=m[f-=1].points).length-1);h=(d=m[f].points)[p-1],y=(c=d[p]).partialLength}o=P.length,r=0,n=0;var k,R,I,D,M,N=1.2*e.finalSize*.714,F=!0;I=E.length;var L,j,B,U,V,z,H,q,G,W,K,$,Y=-1,X=s,Q=f,J=p,Z=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ne=0,ie=2===e.j?-.5:-1,oe=0,ae=!0;for(i=0;i<o;i+=1)if(P[i].n){for(re&&(re+=ne);oe<i;)P[oe].animatorJustifyOffset=re,oe+=1;re=0,ae=!0}else{for(R=0;R<I;R+=1)(k=E[R].a).t.propType&&(ae&&2===e.j&&(ne+=k.t.v*ie),(M=E[R].s.getMult(P[i].anIndexes[R],w.a[R].s.totalChars)).length?re+=k.t.v*M[0]*ie:re+=k.t.v*M*ie);ae=!1}for(re&&(re+=ne);oe<i;)P[oe].animatorJustifyOffset=re,oe+=1}for(i=0;i<o;i+=1){if(x.reset(),U=1,P[i].n)r=0,n+=e.yOffset,n+=F?1:0,s=X,F=!1,this._hasMaskedPath&&(p=J,h=(d=m[f=Q].points)[p-1],y=(c=d[p]).partialLength,u=0),ee="",K="",G="",$="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Z!==P[i].line){switch(e.j){case 1:s+=g-e.lineWidths[P[i].line];break;case 2:s+=(g-e.lineWidths[P[i].line])/2}Z=P[i].line}Y!==P[i].ind&&(P[Y]&&(s+=P[Y].extra),s+=P[i].an/2,Y=P[i].ind),s+=_[0]*P[i].an*.005;var se=0;for(R=0;R<I;R+=1)(k=E[R].a).p.propType&&((M=E[R].s.getMult(P[i].anIndexes[R],w.a[R].s.totalChars)).length?se+=k.p.v[0]*M[0]:se+=k.p.v[0]*M),k.a.propType&&((M=E[R].s.getMult(P[i].anIndexes[R],w.a[R].s.totalChars)).length?se+=k.a.v[0]*M[0]:se+=k.a.v[0]*M);for(l=!0,this._pathData.a.v&&(s=.5*P[0].an+(g-this._pathData.f.v-.5*P[0].an-.5*P[P.length-1].an)*Y/(o-1),s+=this._pathData.f.v);l;)u+y>=s+se||!d?(v=(s+se-u)/c.partialLength,j=h.point[0]+(c.point[0]-h.point[0])*v,B=h.point[1]+(c.point[1]-h.point[1])*v,x.translate(-_[0]*P[i].an*.005,-_[1]*N*.01),l=!1):d&&(u+=c.partialLength,(p+=1)>=d.length&&(p=0,m[f+=1]?d=m[f].points:S.v.c?(p=0,d=m[f=0].points):(u-=c.partialLength,d=null)),d&&(h=c,y=(c=d[p]).partialLength));L=P[i].an/2-P[i].add,x.translate(-L,0,0)}else L=P[i].an/2-P[i].add,x.translate(-L,0,0),x.translate(-_[0]*P[i].an*.005,-_[1]*N*.01,0);for(R=0;R<I;R+=1)(k=E[R].a).t.propType&&(M=E[R].s.getMult(P[i].anIndexes[R],w.a[R].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?M.length?s+=k.t.v*M[0]:s+=k.t.v*M:M.length?r+=k.t.v*M[0]:r+=k.t.v*M));for(e.strokeWidthAnim&&(z=e.sw||0),e.strokeColorAnim&&(V=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(H=[e.fc[0],e.fc[1],e.fc[2]]),R=0;R<I;R+=1)(k=E[R].a).a.propType&&((M=E[R].s.getMult(P[i].anIndexes[R],w.a[R].s.totalChars)).length?x.translate(-k.a.v[0]*M[0],-k.a.v[1]*M[1],k.a.v[2]*M[2]):x.translate(-k.a.v[0]*M,-k.a.v[1]*M,k.a.v[2]*M));for(R=0;R<I;R+=1)(k=E[R].a).s.propType&&((M=E[R].s.getMult(P[i].anIndexes[R],w.a[R].s.totalChars)).length?x.scale(1+(k.s.v[0]-1)*M[0],1+(k.s.v[1]-1)*M[1],1):x.scale(1+(k.s.v[0]-1)*M,1+(k.s.v[1]-1)*M,1));for(R=0;R<I;R+=1){if(k=E[R].a,M=E[R].s.getMult(P[i].anIndexes[R],w.a[R].s.totalChars),k.sk.propType&&(M.length?x.skewFromAxis(-k.sk.v*M[0],k.sa.v*M[1]):x.skewFromAxis(-k.sk.v*M,k.sa.v*M)),k.r.propType&&(M.length?x.rotateZ(-k.r.v*M[2]):x.rotateZ(-k.r.v*M)),k.ry.propType&&(M.length?x.rotateY(k.ry.v*M[1]):x.rotateY(k.ry.v*M)),k.rx.propType&&(M.length?x.rotateX(k.rx.v*M[0]):x.rotateX(k.rx.v*M)),k.o.propType&&(M.length?U+=(k.o.v*M[0]-U)*M[0]:U+=(k.o.v*M-U)*M),e.strokeWidthAnim&&k.sw.propType&&(M.length?z+=k.sw.v*M[0]:z+=k.sw.v*M),e.strokeColorAnim&&k.sc.propType)for(q=0;q<3;q+=1)M.length?V[q]+=(k.sc.v[q]-V[q])*M[0]:V[q]+=(k.sc.v[q]-V[q])*M;if(e.fillColorAnim&&e.fc){if(k.fc.propType)for(q=0;q<3;q+=1)M.length?H[q]+=(k.fc.v[q]-H[q])*M[0]:H[q]+=(k.fc.v[q]-H[q])*M;k.fh.propType&&(H=M.length?addHueToRGB(H,k.fh.v*M[0]):addHueToRGB(H,k.fh.v*M)),k.fs.propType&&(H=M.length?addSaturationToRGB(H,k.fs.v*M[0]):addSaturationToRGB(H,k.fs.v*M)),k.fb.propType&&(H=M.length?addBrightnessToRGB(H,k.fb.v*M[0]):addBrightnessToRGB(H,k.fb.v*M))}}for(R=0;R<I;R+=1)(k=E[R].a).p.propType&&(M=E[R].s.getMult(P[i].anIndexes[R],w.a[R].s.totalChars),this._hasMaskedPath?M.length?x.translate(0,k.p.v[1]*M[0],-k.p.v[2]*M[1]):x.translate(0,k.p.v[1]*M,-k.p.v[2]*M):M.length?x.translate(k.p.v[0]*M[0],k.p.v[1]*M[1],-k.p.v[2]*M[2]):x.translate(k.p.v[0]*M,k.p.v[1]*M,-k.p.v[2]*M));if(e.strokeWidthAnim&&(G=z<0?0:z),e.strokeColorAnim&&(W="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[2])+")"),e.fillColorAnim&&e.fc&&(K="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(x.translate(0,-e.ls),x.translate(0,_[1]*N*.01+n,0),this._pathData.p.v){b=(c.point[1]-h.point[1])/(c.point[0]-h.point[0]);var ce=180*Math.atan(b)/Math.PI;c.point[0]<h.point[0]&&(ce+=180),x.rotate(-ce*Math.PI/180)}x.translate(j,B,0),s-=_[0]*P[i].an*.005,P[i+1]&&Y!==P[i+1].ind&&(s+=P[i].an/2,s+=.001*e.tr*e.finalSize)}else{switch(x.translate(r,n,0),e.ps&&x.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:x.translate(P[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[P[i].line]),0,0);break;case 2:x.translate(P[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[P[i].line])/2,0,0)}x.translate(0,-e.ls),x.translate(L,0,0),x.translate(_[0]*P[i].an*.005,_[1]*N*.01,0),r+=P[i].l+.001*e.tr*e.finalSize}"html"===O?ee=x.toCSS():"svg"===O?ee=x.to2dCSS():te=[x.props[0],x.props[1],x.props[2],x.props[3],x.props[4],x.props[5],x.props[6],x.props[7],x.props[8],x.props[9],x.props[10],x.props[11],x.props[12],x.props[13],x.props[14],x.props[15]],$=U}T<=i?(D=new LetterProps($,G,W,K,ee,te),this.renderedLetters.push(D),T+=1,this.lettersChangedFlag=!0):(D=this.renderedLetters[i],this.lettersChangedFlag=D.update($,G,W,K,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,n,i=t.length,o="";for(r=0;r<i;r+=1)"sh"===t[r].ty&&(n=t[r].ks.k,o+=buildShapeString(n,n.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,n,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0)}t.translate(n,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}function ISolidElement(e,t,r){this.initElement(e,t,r)}function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var n=createNS("title"),i=createElementID();n.setAttribute("id",i),n.textContent=t.title,this.svgElement.appendChild(n),r+=i}if(t&&t.description){var o=createNS("desc"),a=createElementID();o.setAttribute("id",a),o.textContent=t.description,this.svgElement.appendChild(o),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var s=createNS("defs");this.svgElement.appendChild(s);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,n=[],i="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(n.push(i),i=""):i+=e[t],t+=1;return n.push(i),n},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var n=r.it[r.it.length-1];n.s&&(n.s.k[0]=t,n.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var n=this.globalData.fontManager.getFontByName(r.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var i=r.fWeight,o=r.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",r.t);var a,s=r.l||[],c=!!this.globalData.fontManager.chars;t=s.length;var u=this.mHelper,l=this.data.singleShape,p=0,f=0,h=!0,d=.001*r.tr*r.finalSize;if(!l||c||r.sz){var m,y=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!c||!l||0===e){if(a=y>e?this.textSpans[e].span:createNS(c?"g":"text"),y<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,c){var g=createNS("g");a.appendChild(g),this.textSpans[e].childSpan=g}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(u.reset(),l&&(s[e].n&&(p=-d,f+=r.yOffset,f+=h?1:0,h=!1),this.applyTextPropertiesToMatrix(r,u,s[e].line,p,f),p+=s[e].l||0,p+=d),c){var v;if(1===(m=this.globalData.fontManager.getCharData(r.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)v=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,r.finalSize)),v=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var S=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(S.layerElement),S.destroy()}this.textSpans[e].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[e].childSpan.appendChild(v.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else l&&a.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),a.textContent=s[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}l&&a&&a.setAttribute("d","")}else{var _=this.textContainer,E="start";switch(r.j){case 1:E="end";break;case 2:E="middle";break;default:E="start"}_.setAttribute("text-anchor",E),_.setAttribute("letter-spacing",d);var w=this.buildTextContents(r.finalText);for(t=w.length,f=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||createNS("tspan")).textContent=w[e],a.setAttribute("x",0),a.setAttribute("y",f),a.style.display="inherit",_.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,f+=r.finalLineHeight;this.layerElement.appendChild(_)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var r,n,i,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=a.length,e=0;e<t;e+=1)a[e].n||(r=o[e],n=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),r._mdf.m&&n.setAttribute("transform",r.m),r._mdf.o&&n.setAttribute("opacity",r.o),r._mdf.sw&&n.setAttribute("stroke-width",r.sw),r._mdf.sc&&n.setAttribute("stroke",r.sc),r._mdf.fc&&n.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var i=createElementID();r.setAttribute("id",i),r.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===n)return;if(this.elements[n]&&!0!==this.elements[n]){var i=t[n].getMatte(this.layers[e].tt);r.setMatte(i)}else this.buildItem(n),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var n="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[n].getMatte(this.layers[t].tt);e.setMatte(i);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var n,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,n="_";for(t=0;t<r;t+=1)n+=e[t].transform.key+"_";var i=this.sequences[n];return i||(i={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var r=0,n=e.transforms.length,i=t;r<n&&!t;){if(e.transforms[r].transform.mProps._mdf){i=!0;break}r+=1}if(i)for(e.finalTransform.reset(),r=n-1;r>=0;r-=1)e.finalTransform.multiply(e.transforms[r].transform.mProps.v);e._mdf=i},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t<r;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,r=null,n=null;function i(){var i,o,a;t||(i=createNS("svg"),o=createNS("filter"),a=createNS("feColorMatrix"),o.setAttribute("id",e),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),o.appendChild(a),i.appendChild(o),i.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(i.style.display="none"),n=i,document.body.appendChild(n),t=createTag("canvas"),(r=t.getContext("2d")).filter="url(#"+e+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:i,get:function(n){return t||i(),t.width=n.width,t.height=n.height,r.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(e){var t,r,n=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<n;t+=1){r=null;var i=e.data.ef[t].ty;registeredEffects[i]&&(r=new(0,registeredEffects[i].effect)(e.effectsManager.effectElements[t],e)),r&&this.filters.push(r)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n=this.masksProperties.length,i=!1;for(r=0;r<n;r+=1)"n"!==this.masksProperties[r].mode&&(i=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,n,i=this.element.finalTransform.mat,o=this.element.canvasContext,a=this.masksProperties.length;for(o.beginPath(),e=0;e<a;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(o.moveTo(0,0),o.lineTo(this.element.globalData.compSize.w,0),o.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),o.lineTo(0,this.element.globalData.compSize.h),o.lineTo(0,0)),n=this.viewData[e].v,t=i.applyToPointArray(n.v[0][0],n.v[0][1],0),o.moveTo(t[0],t[1]);var c=n._length;for(s=1;s<c;s+=1)r=i.applyToTriplePoints(n.o[s-1],n.i[s],n.v[s]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=i.applyToTriplePoints(n.o[s-1],n.i[0],n.v[0]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),o.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,r,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,o=4;"rc"===t.ty?o=5:"el"===t.ty?o=6:"sr"===t.ty&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,o,e);var a,s=r.length;for(i=0;i<s;i+=1)r[i].closed||(a={transforms:n.addTransformSequence(r[i].transforms),trNodes:[]},this.styledShapes.push(a),r[i].elements.push(a))}function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}function CVSolidElement(e,t,r){this.initElement(e,t,r)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,r){this.initElement(e,t,r)}function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,e.pe,0,0,this),e.ks.p.s?(this.px=n(this,e.ks.p.x,1,0,this),this.py=n(this,e.ks.p.y,1,0,this),this.pz=n(this,e.ks.p.z,1,0,this)):this.p=n(this,e.ks.p,1,0,this),e.ks.a&&(this.a=n(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,o=e.ks.or.k.length;for(i=0;i<o;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=n(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,e.ks.rx,0,degToRads,this),this.ry=n(this,e.ks.ry,0,degToRads,this),this.rz=n(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},n={};if("fl"===e.ty||"st"===e.ty?(n.c=PropertyFactory.getProp(this,e.c,1,255,this),n.c.k||(r.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(n.s=PropertyFactory.getProp(this,e.s,1,null,this),n.e=PropertyFactory.getProp(this,e.e,1,null,this),n.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,e.g,this)),n.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],1==e.lj&&(r.ml=e.ml),n.w=PropertyFactory.getProp(this,e.w,0,null,this),n.w.k||(r.wi=n.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);n.d=i,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,n,i){var o,a,s,c,u,l,p=e.length-1,f=[],h=[],d=[].concat(i);for(o=p;o>=0;o-=1){if((c=this.searchProcessedElement(e[o]))?t[o]=r[c-1]:e[o]._shouldRender=n,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty)c?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],d),f.push(t[o].style);else if("gr"===e[o].ty){if(c)for(s=t[o].it.length,a=0;a<s;a+=1)t[o].prevViewData[a]=t[o].it[a];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,n,d)}else"tr"===e[o].ty?(c||(l=this.createTransformElement(e[o]),t[o]=l),d.push(t[o]),this.addTransformToStyleList(t[o])):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?c||(t[o]=this.createShapeElement(e[o])):"tm"===e[o].ty||"rd"===e[o].ty||"pb"===e[o].ty||"zz"===e[o].ty||"op"===e[o].ty?(c?(u=t[o]).closed=!1:((u=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=u,this.shapeModifiers.push(u)),h.push(u)):"rp"===e[o].ty&&(c?(u=t[o]).closed=!0:(u=ShapeModifiers.getModifier(e[o].ty),t[o]=u,u.init(this,e,o,t),this.shapeModifiers.push(u),n=!1),h.push(u));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),p=h.length,o=0;o<p;o+=1)h[o].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,r,n,i,o,a,s,c,u=this.stylesList.length,l=this.globalData.renderer,p=this.globalData.canvasContext;for(e=0;e<u;e+=1)if(("st"!==(s=(c=this.stylesList[e]).type)&&"gs"!==s||0!==c.wi)&&c.data._shouldRender&&0!==c.coOp&&0!==this.globalData.currentGlobalAlpha){for(l.save(),o=c.elements,"st"===s||"gs"===s?(l.ctxStrokeStyle("st"===s?c.co:c.grd),l.ctxLineWidth(c.wi),l.ctxLineCap(c.lc),l.ctxLineJoin(c.lj),l.ctxMiterLimit(c.ml||0)):l.ctxFillStyle("fl"===s?c.co:c.grd),l.ctxOpacity(c.coOp),"st"!==s&&"gs"!==s&&p.beginPath(),l.ctxTransform(c.preTransforms.finalTransform.props),r=o.length,t=0;t<r;t+=1){for("st"!==s&&"gs"!==s||(p.beginPath(),c.da&&(p.setLineDash(c.da),p.lineDashOffset=c.do)),i=(a=o[t].trNodes).length,n=0;n<i;n+=1)"m"===a[n].t?p.moveTo(a[n].p[0],a[n].p[1]):"c"===a[n].t?p.bezierCurveTo(a[n].pts[0],a[n].pts[1],a[n].pts[2],a[n].pts[3],a[n].pts[4],a[n].pts[5]):p.closePath();"st"!==s&&"gs"!==s||(l.ctxStroke(),c.da&&p.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(c.r),l.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,n){var i,o;for(o=e,i=t.length-1;i>=0;i-=1)"tr"===t[i].ty?(o=r[i].transform,this.renderShapeTransform(e,o)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],r[i]):"fl"===t[i].ty?this.renderFill(t[i],r[i],o):"st"===t[i].ty?this.renderStroke(t[i],r[i],o):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],r[i],o):"gr"===t[i].ty?this.renderShape(o,t[i].it,r[i].it):t[i].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,n,i,o=e.trNodes,a=t.paths,s=a._length;o.length=0;var c=e.transforms.finalTransform;for(i=0;i<s;i+=1){var u=a.shapes[i];if(u&&u.v){for(n=u._length,r=1;r<n;r+=1)1===r&&o.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),o.push({t:"c",pts:c.applyToTriplePoints(u.o[r-1],u.i[r],u.v[r])});1===n&&o.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&n&&(o.push({t:"c",pts:c.applyToTriplePoints(u.o[r-1],u.i[0],u.v[0])}),o.push({t:"z"}))}}e.trNodes=o}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var r,n=t.styledShapes.length;for(r=0;r<n;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var n=t.style;(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var n,i=t.style;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var o,a=this.globalData.canvasContext,s=t.s.v,c=t.e.v;if(1===e.t)n=a.createLinearGradient(s[0],s[1],c[0],c[1]);else{var u=Math.sqrt(Math.pow(s[0]-c[0],2)+Math.pow(s[1]-c[1],2)),l=Math.atan2(c[1]-s[1],c[0]-s[0]),p=t.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var f=u*p,h=Math.cos(l+t.a.v)*f+s[0],d=Math.sin(l+t.a.v)*f+s[1];n=a.createRadialGradient(h,d,0,s[0],s[1],u)}var m=e.g.p,y=t.g.c,g=1;for(o=0;o<m;o+=1)t.g._hasOpacity&&t.g._collapsable&&(g=t.g.o[2*o+1]),n.addColorStop(y[4*o]/100,"rgba("+y[4*o+1]+","+y[4*o+2]+","+y[4*o+3]+","+g+")");i.grd=n}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var n=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(n.da=i.dashArray,n.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(n.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var n,i,o,a,s,c,u,l,p,f,h,d,m=this.globalData.fontManager.getFontByName(e.f),y=e.l,g=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,i=e.finalText.length;var v=this.data.singleShape,b=.001*e.tr*e.finalSize,S=0,_=0,E=!0,w=0;for(n=0;n<i;n+=1){a=(o=this.globalData.fontManager.getCharData(e.finalText[n],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&o.data||{},g.reset(),v&&y[n].n&&(S=-b,_+=e.yOffset,_+=E?1:0,E=!1),p=(u=a.shapes?a.shapes[0].it:[]).length,g.scale(e.finalSize/100,e.finalSize/100),v&&this.applyTextPropertiesToMatrix(e,g,y[n].line,S,_),h=createSizedArray(p-1);var x=0;for(l=0;l<p;l+=1)if("sh"===u[l].ty){for(c=u[l].ks.k.i.length,f=u[l].ks.k,d=[],s=1;s<c;s+=1)1===s&&d.push(g.applyToX(f.v[0][0],f.v[0][1],0),g.applyToY(f.v[0][0],f.v[0][1],0)),d.push(g.applyToX(f.o[s-1][0],f.o[s-1][1],0),g.applyToY(f.o[s-1][0],f.o[s-1][1],0),g.applyToX(f.i[s][0],f.i[s][1],0),g.applyToY(f.i[s][0],f.i[s][1],0),g.applyToX(f.v[s][0],f.v[s][1],0),g.applyToY(f.v[s][0],f.v[s][1],0));d.push(g.applyToX(f.o[s-1][0],f.o[s-1][1],0),g.applyToY(f.o[s-1][0],f.o[s-1][1],0),g.applyToX(f.i[0][0],f.i[0][1],0),g.applyToY(f.i[0][0],f.i[0][1],0),g.applyToX(f.v[0][0],f.v[0][1],0),g.applyToY(f.v[0][0],f.v[0][1],0)),h[x]=d,x+=1}v&&(S+=y[n].l,S+=b),this.textSpans[w]?this.textSpans[w].elem=h:this.textSpans[w]={elem:h},w+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,n,i,o;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,s=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;t=c.length;var u,l,p=null,f=null,h=null,d=this.globalData.renderer;for(e=0;e<t;e+=1)if(!c[e].n){if((a=s[e])&&(d.save(),d.ctxTransform(a.p),d.ctxOpacity(a.o)),this.fill){for(a&&a.fc?p!==a.fc&&(d.ctxFillStyle(a.fc),p=a.fc):p!==this.values.fill&&(p=this.values.fill,d.ctxFillStyle(this.values.fill)),n=(u=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(l=u[r]).length,this.globalData.canvasContext.moveTo(l[0],l[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(l[i],l[i+1],l[i+2],l[i+3],l[i+4],l[i+5]);this.globalData.canvasContext.closePath(),d.ctxFill()}if(this.stroke){for(a&&a.sw?h!==a.sw&&(h=a.sw,d.ctxLineWidth(a.sw)):h!==this.values.sWidth&&(h=this.values.sWidth,d.ctxLineWidth(this.values.sWidth)),a&&a.sc?f!==a.sc&&(f=a.sc,d.ctxStrokeStyle(a.sc)):f!==this.values.stroke&&(f=this.values.stroke,d.ctxStrokeStyle(this.values.stroke)),n=(u=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(l=u[r]).length,this.globalData.canvasContext.moveTo(l[0],l[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(l[i],l[i+1],l[i+2],l[i+3],l[i+4],l[i+5]);this.globalData.canvasContext.closePath(),d.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,n=e.getContext("2d"),i=this.img.width,o=this.img.height,a=i/o,s=this.assetData.w/this.assetData.h,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===c||a<s&&"xMidYMid slice"!==c?t=(r=o)*s:r=(t=i)/s,n.drawImage(this.img,(i-t)/2,(o-r)/2,t,r,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,n){this.canvasContext.fillRect(e,t,r,n)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var r,n,i,o;if(this.reset(),e?(r=e,n=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),s=a[1]||"meet",c=a[0]||"xMidYMid",u=c.substr(0,4),l=c.substr(4);i=r/n,(o=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===s||o<i&&"slice"===s?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===u&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===u&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===l&&(o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var r;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,r=this.stack[this.cArrPos],n=r.transform,i=this.cTr.props;for(t=0;t<16;t+=1)i[t]=n[t];if(e){this.nativeContext.restore();var o=this.stack[this.cArrPos+1];this.appliedFillStyle=o.fillStyle,this.appliedStrokeStyle=o.strokeStyle,this.appliedLineWidth=o.lineWidth,this.appliedLineCap=o.lineCap,this.appliedLineJoin=o.lineJoin,this.appliedMiterLimit=o.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(e||-1!==r.opacity&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r,n=this.stack[this.cArrPos];for(r=0;r<16;r+=1)n.transform[r]=t[r];this.cArrPos+=1;var i=this.stack[this.cArrPos];i.opacity=n.opacity,i.fillStyle=n.fillStyle,i.strokeStyle=n.strokeStyle,i.lineWidth=n.lineWidth,i.lineCap=n.lineCap,i.lineJoin=n.lineJoin,i.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,n)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,n,i,o,a,s=e.sh.v,c=e.transformers,u=s._length;if(!(u<=1)){for(r=0;r<u-1;r+=1)n=this.getTransformedPoint(c,s.v[r]),i=this.getTransformedPoint(c,s.o[r]),o=this.getTransformedPoint(c,s.i[r+1]),a=this.getTransformedPoint(c,s.v[r+1]),this.checkBounds(n,i,o,a,t);s.c&&(n=this.getTransformedPoint(c,s.v[r]),i=this.getTransformedPoint(c,s.o[r]),o=this.getTransformedPoint(c,s.i[0]),a=this.getTransformedPoint(c,s.v[0]),this.checkBounds(n,i,o,a,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,n,i){this.getBoundsOfCurve(e,t,r,n);var o=this.shapeBoundingBox;i.x=bmMin(o.left,i.x),i.xMax=bmMax(o.right,i.xMax),i.y=bmMin(o.top,i.y),i.yMax=bmMax(o.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,r,n){for(var i,o,a,s,c,u,l,p=[[e[0],n[0]],[e[1],n[1]]],f=0;f<2;++f)o=6*e[f]-12*t[f]+6*r[f],i=-3*e[f]+9*t[f]-9*r[f]+3*n[f],a=3*t[f]-3*e[f],o|=0,a|=0,0==(i|=0)&&0===o||(0===i?(s=-a/o)>0&&s<1&&p[f].push(this.calculateF(s,e,t,r,n,f)):(c=o*o-4*a*i)>=0&&((u=(-o+bmSqrt(c))/(2*i))>0&&u<1&&p[f].push(this.calculateF(u,e,t,r,n,f)),(l=(-o-bmSqrt(c))/(2*i))>0&&l<1&&p[f].push(this.calculateF(l,e,t,r,n,f))));this.shapeBoundingBox.left=bmMin.apply(null,p[0]),this.shapeBoundingBox.top=bmMin.apply(null,p[1]),this.shapeBoundingBox.right=bmMax.apply(null,p[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,p[1])},HShapeElement.prototype.calculateF=function(e,t,r,n,i,o){return bmPow(1-e,3)*t[o]+3*bmPow(1-e,2)*e*r[o]+3*(1-e)*bmPow(e,2)*n[o]+bmPow(e,3)*i[o]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var n=0;n<e.keyframes.length;n+=1){var i=e.keyframes[n].s;i>r&&(r=i)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=i,n.webkitTransform=i}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var n,i,o=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",o.fClass)this.innerElem.className=o.fClass;else{t.fontFamily=o.fFamily;var a=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=a}var c,u,l,p=e.l;i=p.length;var f,h=this.mHelper,d="",m=0;for(n=0;n<i;n+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?c=this.textPaths[m]:((c=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),c.setAttribute("stroke-linejoin",lineJoinEnum[2]),c.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?l=(u=this.textSpans[m]).children[0]:((u=createTag("div")).style.lineHeight=0,(l=createNS("svg")).appendChild(c),styleDiv(u)))):this.isMasked?c=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(u=this.textSpans[m],c=this.textPaths[m]):(styleDiv(u=createTag("span")),styleDiv(c=createTag("span")),u.appendChild(c)),this.globalData.fontManager.chars){var y,g=this.globalData.fontManager.getCharData(e.finalText[n],o.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(y=g?g.data:null,h.reset(),y&&y.shapes&&y.shapes.length&&(f=y.shapes[0].it,h.scale(e.finalSize/100,e.finalSize/100),d=this.createPathShape(h,f),c.setAttribute("d",d)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(u),y&&y.shapes){document.body.appendChild(l);var v=l.getBBox();l.setAttribute("width",v.width+2),l.setAttribute("height",v.height+2),l.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=l.style,S="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=S,b.webkitTransform=S,p[n].yOffset=v.y-1}else l.setAttribute("width",1),l.setAttribute("height",1);u.appendChild(l)}}else if(c.textContent=p[n].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(u);var _=c.style,E="translate3d(0,"+-e.finalSize/1.2+"px,0)";_.transform=E,_.webkitTransform=E}this.isMasked?this.textSpans[m]=c:this.textSpans[m]=u,this.textSpans[m].style.display="block",this.textPaths[m]=c,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,n,i,o,a,s=0,c=this.textAnimator.renderedLetters,u=this.textProperty.currentData.l;for(n=u.length,r=0;r<n;r+=1)u[r].n?s+=1:(o=this.textSpans[r],a=this.textPaths[r],i=c[s],s+=1,i._mdf.m&&(this.isMasked?o.setAttribute("transform",i.m):(o.style.webkitTransform=i.m,o.style.transform=i.m)),o.style.opacity=i.o,i.sw&&i._mdf.sw&&a.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&a.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(a.setAttribute("fill",i.fc),a.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var l=this.innerElem.getBBox();if(this.currentBBox.w!==l.width&&(this.currentBBox.w=l.width,this.svgElement.setAttribute("width",l.width)),this.currentBBox.h!==l.height&&(this.currentBBox.h=l.height,this.svgElement.setAttribute("height",l.height)),this.currentBBox.w!==l.width+2||this.currentBBox.h!==l.height+2||this.currentBBox.x!==l.x-1||this.currentBBox.y!==l.y-1){this.currentBBox.w=l.width+2,this.currentBBox.h=l.height+2,this.currentBBox.x=l.x-1,this.currentBBox.y=l.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=p,e.webkitTransform=p}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,r,n,i=this.comp.threeDElements.length;for(e=0;e<i;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){r=t.perspectiveElem.style,n=t.container.style;var o=this.pe.v+"px",a="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=o,r.webkitPerspective=o,n.transformOrigin=a,n.mozTransformOrigin=a,n.webkitTransformOrigin=a,r.transform=s,r.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,r=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)r=this.hierarchy[e].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var n=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),a=[i[0]/o,i[1]/o,i[2]/o],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),c=Math.atan2(a[1],s),u=Math.atan2(a[0],-a[2]);this.mat.rotateY(u).rotateX(-c)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var l=!this._prevMat.equals(this.mat);if((l||this.pe._mdf)&&this.comp.threeDElements){var p,f,h;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(p=this.comp.threeDElements[e]).type){if(l){var d=this.mat.toCSS();(h=p.container.style).transform=d,h.webkitTransform=d}this.pe._mdf&&((f=p.perspectiveElem.style).perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var n=this.layers[t];if(n.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var i,o,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a],i=(this.layers[a].ddd?this.getThreeDContainerByPos(a):o.getBaseElement())||i),a+=1;i?n.ddd&&this.supports3d||this.layerElement.insertBefore(r,i):n.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r,n,i=createTag("div");styleDiv(i);var o=createTag("div");if(styleDiv(o),"3d"===t){(r=i.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var a="50% 50%";r.webkitTransformOrigin=a,r.mozTransformOrigin=a,r.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(n=o.style).transform=s,n.webkitTransform=s}i.appendChild(o);var c={container:o,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,n="";for(e=0;e<r;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==n&&(n="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==n&&(n="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(r=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,n=this.threeDElements.length;r<n;){if(t<=this.threeDElements[r].endPos){for(var i,o=this.threeDElements[r].startPos;o<t;)this.elements[o]&&this.elements[o].getBaseElement&&(i=this.elements[o].getBaseElement()),o+=1;i?this.threeDElements[r].container.insertBefore(e,i):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,n=t.style;n.width=e.w+"px",n.height=e.h+"px",this.resizerElem=t,styleDiv(t),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),n.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var o=createNS("defs");i.appendChild(o),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=o,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,n,i=this.animationItem.wrapper.offsetWidth,o=this.animationItem.wrapper.offsetHeight,a=i/o;this.globalData.compSize.w/this.globalData.compSize.h>a?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,r=0,n=(o-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=o/this.globalData.compSize.h,t=o/this.globalData.compSize.h,r=(i-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,n=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+n+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,n=this.threeDElements.length;for(e=0;e<n;e+=1){var i=this.threeDElements[e].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,n=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t],n,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r,n=0;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var r=0,n=e.layers.length;r<n;){if(e.layers[r].nm===t||e.layers[r].ind===t)return e.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="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},_typeof$2(e)}function seedRandom(e,t){var r=this,n=256,i="random",o=t.pow(n,6),a=t.pow(2,52),s=2*a,c=255;function u(e){var t,r=e.length,i=this,o=0,a=i.i=i.j=0,s=i.S=[];for(r||(e=[r++]);o<n;)s[o]=o++;for(o=0;o<n;o++)s[o]=s[a=c&a+e[o%r]+(t=s[o])],s[a]=t;i.g=function(e){for(var t,r=0,o=i.i,a=i.j,s=i.S;e--;)t=s[o=c&o+1],r=r*n+s[c&(s[o]=s[a=c&a+t])+(s[a]=t)];return i.i=o,i.j=a,r}}function l(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function p(e,t){var r,n=[],i=_typeof$2(e);if(t&&"object"==i)for(r in e)try{n.push(p(e[r],t-1))}catch(e){}return n.length?n:"string"==i?e:e+"\0"}function f(e,t){for(var r,n=e+"",i=0;i<n.length;)t[c&i]=c&(r^=19*t[c&i])+n.charCodeAt(i++);return h(t)}function h(e){return String.fromCharCode.apply(0,e)}t["seed"+i]=function(c,d,m){var y=[],g=f(p((d=!0===d?{entropy:!0}:d||{}).entropy?[c,h(e)]:null===c?function(){try{var t=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(t),h(t)}catch(t){var i=r.navigator,o=i&&i.plugins;return[+new Date,r,o,r.screen,h(e)]}}():c,3),y),v=new u(y),b=function(){for(var e=v.g(6),t=o,r=0;e<a;)e=(e+r)*n,t*=n,r=v.g(1);for(;e>=s;)e/=2,t/=2,r>>>=1;return(e+r)/t};return b.int32=function(){return 0|v.g(4)},b.quick=function(){return v.g(4)/4294967296},b.double=b,f(h(v.S),e),(d.pass||m||function(e,r,n,o){return o&&(o.S&&l(o,v),e.state=function(){return l(v,{})}),n?(t[i]=e,r):e})(b,g,"global"in d?d.global:this==t,d.state)},f(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="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},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var r,n=e.length,i=[];for(r=0;r<n;r+=1)i[r]=-e[r];return i}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t)||"string"===r||"string"===n)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,a=t.length,s=[];i<o||i<a;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]+t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t))return"string"===r&&(e=parseInt(e,10)),"string"===n&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,a=t.length,s=[];i<o||i<a;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]-t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}function mul(e,t){var r,n,i,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e[n]*t;return r}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e*t[n];return r}return 0}function div(e,t){var r,n,i,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e[n]/t;return r}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e/t[n];return r}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var n=r;r=t,t=n}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var r;t||(t=helperLengthArray);var n=Math.min(e.length,t.length),i=0;for(r=0;r<n;r+=1)i+=Math.pow(t[r]-e[r],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,r,n=e[0],i=e[1],o=e[2],a=Math.max(n,i,o),s=Math.min(n,i,o),c=(a+s)/2;if(a===s)t=0,r=0;else{var u=a-s;switch(r=c>.5?u/(2-a-s):u/(a+s),a){case n:t=(i-o)/u+(i<o?6:0);break;case i:t=(o-n)/u+2;break;case o:t=(n-i)/u+4}t/=6}return[t,r,c,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,n,i=e[0],o=e[1],a=e[2];if(0===o)t=a,n=a,r=a;else{var s=a<.5?a*(1+o):a+o-a*o,c=2*a-s;t=hue2rgb(c,s,i+1/3),r=hue2rgb(c,s,i),n=hue2rgb(c,s,i-1/3)}return[t,r,n,e[3]]}function linear(e,t,r,n,i){if(void 0!==n&&void 0!==i||(n=t,i=r,t=0,r=1),r<t){var o=r;r=t,t=o}if(e<=t)return n;if(e>=r)return i;var a,s=r===t?0:(e-t)/(r-t);if(!n.length)return n+(i-n)*s;var c=n.length,u=createTypedArray("float32",c);for(a=0;a<c;a+=1)u[a]=n[a]+(i[a]-n[a])*s;return u}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var r,n=t.length;e||(e=createTypedArray("float32",n));var i=createTypedArray("float32",n),o=BMMath.random();for(r=0;r<n;r+=1)i[r]=e[r]+o*(t[r]-e[r]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,n){var i,o=e.length,a=shapePool.newElement();a.setPathData(!!n,o);var s,c,u=[0,0];for(i=0;i<o;i+=1)s=t&&t[i]?t[i]:u,c=r&&r[i]?r[i]:u,a.setTripleAt(e[i][0],e[i][1],c[0]+e[i][0],c[1]+e[i][1],s[0]+e[i][0],s[1]+e[i][1],i,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var r,n,i=this.pv.length?this.pv.length:1,o=createTypedArray("float32",i),a=Math.floor(5*time);for(r=0,n=0;r<a;){for(n=0;n<i;n+=1)o[n]+=-t+2*t*BMMath.random();r+=1}var s=5*time,c=s-Math.floor(s),u=createTypedArray("float32",i);if(i>1){for(n=0;n<i;n+=1)u[n]=this.pv[n]+o[n]+(-t+2*t*BMMath.random())*c;return u}return this.pv+o[0]+(-t+2*t*BMMath.random())*c}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,n,0]}function easeOut(e,t,r,n,i){return applyEase(easeOutBez,e,t,r,n,i)}function easeIn(e,t,r,n,i){return applyEase(easeInBez,e,t,r,n,i)}function ease(e,t,r,n,i){return applyEase(easeInOutBez,e,t,r,n,i)}function applyEase(e,t,r,n,i,o){void 0===i?(i=r,o=n):t=(t-r)/(n-r),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(i)){var s,c=i.length,u=createTypedArray("float32",c);for(s=0;s<c;s+=1)u[s]=(o[s]-i[s])*a+i[s];return u}return(o-i)*a+i}function nearestKey(e){var t,r,n,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,n=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){r=t+1,n=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,n=data.k[t+1].t):(r=t+1,n=data.k[t].t);break}}-1===r&&(r=t+1,n=data.k[t].t)}else r=0,n=0;var o={};return o.index=r,o.time=n/elem.comp.globalData.frameRate,o}function key(e){var t,r,n;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(n=i.length,r=0;r<n;r+=1)t[r]=i[r],t.value[r]=i[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,r=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=r.length;for(e=0;e<t;e+=1)r[e].release();r.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===r.indexOf(e)&&r.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var r,n=createSizedArray(t.viewData.length),i=t.viewData.length;for(r=0;r<i;r+=1)n[r]=new e(t.viewData[r],t.masksProperties[r]);return function(e){for(r=0;r<i;){if(t.masksProperties[r].nm===e)return n[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(e,t,r){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(n){if(!e.numKeys)return 0;var i="";i="s"in t.keyframes[n-1]?t.keyframes[n-1].s:"e"in t.keyframes[n-2]?t.keyframes[n-2].e:t.keyframes[n-2].s;var o="unidimensional"===r?new Number(i):Object.assign({},i);return o.time=t.keyframes[n-1].t/t.elem.comp.globalData.frameRate,o.value="unidimensional"===r?i[0]:i,o},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function n(){return e}return function(i){return i?"unidimensional"===i.propType?function(t){t&&"pv"in t||(t=e);var n=1/t.mult,i=t.pv*n,o=new Number(i);return o.value=i,r(o,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*n,o.value!==i&&((o=new Number(i)).value=i,r(o,t,"unidimensional")),o}}(i):function(e){e&&"pv"in e||(e=t);var n=1/e.mult,i=e.data&&e.data.l||e.pv.length,o=createTypedArray("float32",i),a=createTypedArray("float32",i);return o.value=a,r(o,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)a[t]=e.v[t]*n,o[t]=a[t];return o}}(i):n}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var r,n,i,o;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?o=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),n=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?o():[r(),n(),i?i():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,e)}function r(e,t){var r=this.getMatrix(t);return this.applyPoint(r,e)}function n(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,e)}function i(e,t){var r=this.getMatrix(t);return this.invertPoint(r,e)}function o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function c(){return[1,1,1,1]}return function(u){var l;function p(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return p.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return l;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return p.effect;case"ADBE Text Properties":return p.textInterface;default:return null}}p.getMatrix=e,p.invertPoint=a,p.applyPoint=o,p.toWorld=r,p.toWorldVec=t,p.fromWorld=i,p.fromWorldVec=n,p.toComp=r,p.fromComp=s,p.sampleImage=c,p.sourceRectAtTime=u.sourceRectAtTime.bind(u),p._elem=u;var f=getDescriptor(l=TransformExpressionInterface(u.finalTransform.mProp),"anchorPoint");return Object.defineProperties(p,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(l,"rotation"),scale:getDescriptor(l,"scale"),position:getDescriptor(l,"position"),opacity:getDescriptor(l,"opacity"),anchorPoint:f,anchor_point:f,transform:{get:function(){return l}},active:{get:function(){return u.isInRange}}}),p.startTime=u.data.st,p.index=u.data.ind,p.source=u.data.refId,p.height=0===u.data.ty?u.data.h:100,p.width=0===u.data.ty?u.data.w:100,p.inPoint=u.data.ip/u.comp.globalData.frameRate,p.outPoint=u.data.op/u.comp.globalData.frameRate,p._name=u.data.nm,p.registerMaskInterface=function(e){p.mask=new MaskManagerInterface(e,u)},p.registerEffectsInterface=function(e){p.effect=e},p}}(),propertyGroupFactory=function(e,t){return function(r){return(r=void 0===r?1:r)<=0?e:t(r-1)}},PropertyInterface=function(e,t){var r={_name:e};return function(e){return(e=void 0===e?1:e)<=0?r:t(e-1)}},EffectsExpressionInterface=function(){function e(r,n,i,o){function a(e){for(var t=r.ef,n=0,i=t.length;n<i;){if(e===t[n].nm||e===t[n].mn||e===t[n].ix)return 5===t[n].ty?u[n]:u[n]();n+=1}throw new Error}var s,c=propertyGroupFactory(a,i),u=[],l=r.ef.length;for(s=0;s<l;s+=1)5===r.ef[s].ty?u.push(e(r.ef[s],n.effectElements[s],n.effectElements[s].propertyGroup,o)):u.push(t(n.effectElements[s],r.ef[s].ty,o,c));return"ADBE Color Control"===r.mn&&Object.defineProperty(a,"color",{get:function(){return u[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:c}}),a.enabled=0!==r.en,a.active=a.enabled,a}function t(e,t,r,n){var i=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",n)),function(){return 10===t?r.comp.compInterface(e.p.v):i()}}return{createEffectsInterface:function(t,r){if(t.effectsManager){var n,i=[],o=t.data.ef,a=t.effectsManager.effectElements.length;for(n=0;n<a;n+=1)i.push(e(o[n],t.effectsManager.effectElements[n],r,t));var s=t.data.ef||[],c=function(e){for(n=0,a=s.length;n<a;){if(e===s[n].nm||e===s[n].mn||e===s[n].ix)return i[n];n+=1}return null};return Object.defineProperty(c,"numProperties",{get:function(){return s.length}}),c}return null}}}(),ShapePathInterface=function(e,t,r){var n=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var o=propertyGroupFactory(i,r);return n.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(i,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),i},ShapeExpressionInterface=function(){function e(e,a,f){var h,d=[],m=e?e.length:0;for(h=0;h<m;h+=1)"gr"===e[h].ty?d.push(t(e[h],a[h],f)):"fl"===e[h].ty?d.push(r(e[h],a[h],f)):"st"===e[h].ty?d.push(i(e[h],a[h],f)):"tm"===e[h].ty?d.push(o(e[h],a[h],f)):"tr"===e[h].ty||("el"===e[h].ty?d.push(s(e[h],a[h],f)):"sr"===e[h].ty?d.push(c(e[h],a[h],f)):"sh"===e[h].ty?d.push(ShapePathInterface(e[h],a[h],f)):"rc"===e[h].ty?d.push(u(e[h],a[h],f)):"rd"===e[h].ty?d.push(l(e[h],a[h],f)):"rp"===e[h].ty?d.push(p(e[h],a[h],f)):"gf"===e[h].ty?d.push(n(e[h],a[h],f)):d.push((e[h],a[h],function(){return null})));return d}function t(t,r,n){var i=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,n);var o=function(t,r,n){var i,o=function(e){for(var t=0,r=i.length;t<r;){if(i[t]._name===e||i[t].mn===e||i[t].propertyIndex===e||i[t].ix===e||i[t].ind===e)return i[t];t+=1}return"number"==typeof e?i[e-1]:null};o.propertyGroup=propertyGroupFactory(o,n),i=e(t.it,r.it,o.propertyGroup),o.numProperties=i.length;var s=a(t.it[t.it.length-1],r.it[r.it.length-1],o.propertyGroup);return o.transform=s,o.propertyIndex=t.cix,o._name=t.nm,o}(t,r,i.propertyGroup),s=a(t.it[t.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=o,i.transform=s,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function r(e,t,r){function n(e){return"Color"===e||"color"===e?n.color:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function n(e,t,r){function n(e){return"Start Point"===e||"start point"===e?n.startPoint:"End Point"===e||"end point"===e?n.endPoint:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",r)),t.e.setGroupProperty(PropertyInterface("End Point",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function i(e,t,r){var n,i=propertyGroupFactory(u,r),o=propertyGroupFactory(c,i);function a(r){Object.defineProperty(c,e.d[r].nm,{get:ExpressionPropertyInterface(t.d.dataProps[r].p)})}var s=e.d?e.d.length:0,c={};for(n=0;n<s;n+=1)a(n),t.d.dataProps[n].p.setGroupProperty(o);function u(e){return"Color"===e||"color"===e?u.color:"Opacity"===e||"opacity"===e?u.opacity:"Stroke Width"===e||"stroke width"===e?u.strokeWidth:null}return Object.defineProperties(u,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return c}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),t.w.setGroupProperty(PropertyInterface("Stroke Width",i)),u}function o(e,t,r){function n(t){return t===e.e.ix||"End"===t||"end"===t?n.end:t===e.s.ix?n.start:t===e.o.ix?n.offset:null}var i=propertyGroupFactory(n,r);return n.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),n.propertyIndex=e.ix,n.propertyGroup=r,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),n.mn=e.mn,n}function a(e,t,r){function n(t){return e.a.ix===t||"Anchor Point"===t?n.anchorPoint:e.o.ix===t||"Opacity"===t?n.opacity:e.p.ix===t||"Position"===t?n.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?n.rotation:e.s.ix===t||"Scale"===t?n.scale:e.sk&&e.sk.ix===t||"Skew"===t?n.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?n.skewAxis:null}var i=propertyGroupFactory(n,r);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(n,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),n.ty="tr",n.mn=e.mn,n.propertyGroup=r,n}function s(e,t,r){function n(t){return e.p.ix===t?n.position:e.s.ix===t?n.size:null}var i=propertyGroupFactory(n,r);n.propertyIndex=e.ix;var o="tm"===t.sh.ty?t.sh.prop:t.sh;return o.s.setGroupProperty(PropertyInterface("Size",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(n,{size:{get:ExpressionPropertyInterface(o.s)},position:{get:ExpressionPropertyInterface(o.p)},_name:{value:e.nm}}),n.mn=e.mn,n}function c(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.rotation:e.pt.ix===t?n.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?n.outerRadius:e.os.ix===t?n.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?n.innerRoundness:null:n.innerRadius}var i=propertyGroupFactory(n,r),o="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,o.or.setGroupProperty(PropertyInterface("Outer Radius",i)),o.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),o.pt.setGroupProperty(PropertyInterface("Points",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(o.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),o.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},rotation:{get:ExpressionPropertyInterface(o.r)},points:{get:ExpressionPropertyInterface(o.pt)},outerRadius:{get:ExpressionPropertyInterface(o.or)},outerRoundness:{get:ExpressionPropertyInterface(o.os)},innerRadius:{get:ExpressionPropertyInterface(o.ir)},innerRoundness:{get:ExpressionPropertyInterface(o.is)},_name:{value:e.nm}}),n.mn=e.mn,n}function u(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?n.size:null}var i=propertyGroupFactory(n,r),o="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,o.p.setGroupProperty(PropertyInterface("Position",i)),o.s.setGroupProperty(PropertyInterface("Size",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},roundness:{get:ExpressionPropertyInterface(o.r)},size:{get:ExpressionPropertyInterface(o.s)},_name:{value:e.nm}}),n.mn=e.mn,n}function l(e,t,r){function n(t){return e.r.ix===t||"Round Corners 1"===t?n.radius:null}var i=propertyGroupFactory(n,r),o=t;return n.propertyIndex=e.ix,o.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(o.rd)},_name:{value:e.nm}}),n.mn=e.mn,n}function p(e,t,r){function n(t){return e.c.ix===t||"Copies"===t?n.copies:e.o.ix===t||"Offset"===t?n.offset:null}var i=propertyGroupFactory(n,r),o=t;return n.propertyIndex=e.ix,o.c.setGroupProperty(PropertyInterface("Copies",i)),o.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(n,{copies:{get:ExpressionPropertyInterface(o.c)},offset:{get:ExpressionPropertyInterface(o.o)},_name:{value:e.nm}}),n.mn=e.mn,n}return function(t,r,n){var i;function o(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?n:i[e-1];for(var t=0,r=i.length;t<r;){if(i[t]._name===e)return i[t];t+=1}return null}return o.propertyGroup=propertyGroupFactory(o,(function(){return n})),i=e(t,r,o.propertyGroup),o.numProperties=i.length,o._name="Contents",o}}(),TextExpressionInterface=function(e){var t;function r(e){return"ADBE Text Document"===e?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var r=e.textProperty.currentData.t;return t&&r===t.value||((t=new String(r)).value=r||new String(r),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r};function _typeof(e){return _typeof="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},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",r=e.getFootageData();function n(e){if(r[e])return t=e,"object"===_typeof(r=r[e])?n:r;var i=e.indexOf(t);if(-1!==i){var o=parseInt(e.substr(i+t.length),10);return"object"===_typeof(r=r[o])?n:r}return""}return function(){return t="",r=e.getFootageData(),n}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,r){t.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(e,t,r).bind(r)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),r=this.getValueAtTime(e+-.01),n=0;if(t.length){var i;for(i=0;i<t.length;i+=1)n+=Math.pow(r[i]-t[i],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,r,n=-.001,i=this.getValueAtTime(e),o=this.getValueAtTime(e+n);if(i.length)for(t=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)t[r]=(o[r]-i[r])/n;else t=(o-i)/n;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,r){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var n,i,o,a,s,c=this.comp.renderedFrame,u=this.keyframes,l=u[u.length-1].t;if(c<=l)return this.pv;if(r?i=l-(n=t?Math.abs(l-this.elem.comp.globalData.frameRate*t):Math.max(0,l-this.elem.data.ip)):((!t||t>u.length-1)&&(t=u.length-1),n=l-(i=u[u.length-1-t].t)),"pingpong"===e){if(Math.floor((c-i)/n)%2!=0)return this.getValueAtTime((n-(c-i)%n+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(i/this.comp.globalData.frameRate,0),f=this.getValueAtTime(l/this.comp.globalData.frameRate,0),h=this.getValueAtTime(((c-i)%n+i)/this.comp.globalData.frameRate,0),d=Math.floor((c-i)/n);if(this.pv.length){for(a=(s=new Array(p.length)).length,o=0;o<a;o+=1)s[o]=(f[o]-p[o])*d+h[o];return s}return(f-p)*d+h}if("continue"===e){var m=this.getValueAtTime(l/this.comp.globalData.frameRate,0),y=this.getValueAtTime((l-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-y[o])*((c-l)/this.comp.globalData.frameRate)/5e-4;return s}return m+(c-l)/.001*(m-y)}}return this.getValueAtTime(((c-i)%n+i)/this.comp.globalData.frameRate,0)}function t(e,t,r){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var n,i,o,a,s,c=this.comp.renderedFrame,u=this.keyframes,l=u[0].t;if(c>=l)return this.pv;if(r?i=l+(n=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-l)):((!t||t>u.length-1)&&(t=u.length-1),n=(i=u[t].t)-l),"pingpong"===e){if(Math.floor((l-c)/n)%2==0)return this.getValueAtTime(((l-c)%n+l)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(l/this.comp.globalData.frameRate,0),f=this.getValueAtTime(i/this.comp.globalData.frameRate,0),h=this.getValueAtTime((n-(l-c)%n+l)/this.comp.globalData.frameRate,0),d=Math.floor((l-c)/n)+1;if(this.pv.length){for(a=(s=new Array(p.length)).length,o=0;o<a;o+=1)s[o]=h[o]-(f[o]-p[o])*d;return s}return h-(f-p)*d}if("continue"===e){var m=this.getValueAtTime(l/this.comp.globalData.frameRate,0),y=this.getValueAtTime((l+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-y[o])*(l-c)/.001;return s}return m+(m-y)*(l-c)/.001}}return this.getValueAtTime((n-((l-c)%n+l))/this.comp.globalData.frameRate,0)}function r(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var r,n,i=this.comp.renderedFrame/this.comp.globalData.frameRate,o=i-e,a=t>1?(i+e-o)/(t-1):1,s=0,c=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(n=this.getValueAtTime(o+s*a),this.pv.length)for(c=0;c<this.pv.length;c+=1)r[c]+=n[c];else r+=n;s+=1}if(this.pv.length)for(c=0;c<this.pv.length;c+=1)r[c]/=t;else r/=t;return r}function n(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(e);t.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var n=this.s.getValueAtTime(e);t.scale(n[0]*this.s.mult,n[1]*this.s.mult,n[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),o=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,o*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(e);t.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),c=this.ry.getValueAtTime(e),u=this.rx.getValueAtTime(e),l=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(c*this.ry.mult).rotateX(u*this.rx.mult).rotateZ(-l[2]*this.or.mult).rotateY(l[1]*this.or.mult).rotateX(l[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var p=this.px.getValueAtTime(e),f=this.py.getValueAtTime(e);if(this.data.p.z){var h=this.pz.getValueAtTime(e);t.translate(p*this.px.mult,f*this.py.mult,-h*this.pz.mult)}else t.translate(p*this.px.mult,f*this.py.mult,0)}else{var d=this.p.getValueAtTime(e);t.translate(d[0]*this.p.mult,d[1]*this.p.mult,-d[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,r){var a=o(e,t,r);return a.dynamicProperties.length?a.getValueAtTime=n.bind(a):a.getValueAtTime=i.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(n,i,o,s,c){var u=a(n,i,o,s,c);u.kf?u.getValueAtTime=expressionHelpers.getValueAtTime.bind(u):u.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(u),u.setGroupProperty=expressionHelpers.setGroupProperty,u.loopOut=e,u.loopIn=t,u.smooth=r,u.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(u),u.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(u),u.numKeys=1===i.a?i.k.length:0,u.propertyIndex=i.ix;var l=0;return 0!==o&&(l=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),u._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:l},expressionHelpers.searchExpressions(n,i,u),u.k&&c.addDynamicProperty(u),u};var s=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function u(){}u.prototype={vertices:function(e,t){this.k&&this.getValue();var r,n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0));var i=n._length,o=n[e],a=n.v,s=createSizedArray(i);for(r=0;r<i;r+=1)s[r]="i"===e||"o"===e?[o[r][0]-a[r][0],o[r][1]-a[r][1]]:[o[r][0],o[r][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var n,i=this._segmentsLength,o=i.lengths,a=i.totalLength*e,s=0,c=o.length,u=0;s<c;){if(u+o[s].addedLength>a){var l=s,p=r.c&&s===c-1?0:s+1,f=(a-u)/o[s].addedLength;n=bez.getPointInSegment(r.v[l],r.v[p],r.o[l],r.i[p],f,o[s]);break}u+=o[s].addedLength,s+=1}return n||(n=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),n},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var n=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),o=i[0]-n[0],a=i[1]-n[1],s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===r?[o/s,a/s]:[-a/s,o/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([u],s),extendPrototype([u],c),c.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},c.prototype.initiateExpression=ExpressionManager.initiateExpression;var l=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,n,i){var o=l(e,t,r,n,i);return o.propertyIndex=t.ix,o.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,o):4===r&&expressionHelpers.searchExpressions(e,t.ks,o),o.k&&e.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var n={};return this.copyData(n,e),n.t=r.toString(),n.__complete=!1,n}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,n,i=createNS("feMerge");for(i.setAttribute("result",e),n=0;n<t.length;n+=1)(r=createNS("feMergeNode")).setAttribute("in",t[n]),i.appendChild(r),i.appendChild(r);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,n,i){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",n+"_tint_1"),e.appendChild(o),(o=createNS("feColorMatrix")).setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",n+"_tint_2"),e.appendChild(o),this.matrixFilter=o;var a=this.createMergeNode(n,[i,n+"_tint_1",n+"_tint_2"]);e.appendChild(a)}function SVGFillFilter(e,t,r,n){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",n),e.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}function SVGTritoneFilter(e,t,r,n){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(i);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),this.matrixFilter=o;var a=createNS("feFuncR");a.setAttribute("type","table"),o.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),o.appendChild(s),this.feFuncG=s;var c=createNS("feFuncB");c.setAttribute("type","table"),o.appendChild(c),this.feFuncB=c,e.appendChild(o)}function SVGProLevelsFilter(e,t,r,n){this.filterManager=t;var i=this.filterManager.effectElements,o=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(o)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((o=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),e.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}function SVGDropShadowEffect(e,t,r,n,i){var o=t.container.globalData.renderConfig.filterSize,a=t.data.fs||o;e.setAttribute("x",a.x||o.x),e.setAttribute("y",a.y||o.y),e.setAttribute("width",a.width||o.width),e.setAttribute("height",a.height||o.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",n+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",n+"_drop_shadow_1"),c.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=c,e.appendChild(c);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=u,e.appendChild(u);var l=createNS("feComposite");l.setAttribute("in",n+"_drop_shadow_3"),l.setAttribute("in2",n+"_drop_shadow_2"),l.setAttribute("operator","in"),l.setAttribute("result",n+"_drop_shadow_4"),e.appendChild(l);var p=this.createMergeNode(n,[n+"_drop_shadow_4",i]);e.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,r,n,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(n=this.elem.maskManager.masksProperties.length,r=0):n=1+(r=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);r<n;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(3===this.filterManager.effectElements[10].p.v){var o=createNS("mask"),a=createElementID();o.setAttribute("id",a),o.setAttribute("mask-type","alpha"),o.appendChild(t),this.elem.globalData.defs.appendChild(o);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+a+")");i[0];)s.appendChild(i[0]);this.elem.layerElement.appendChild(s),this.masker=o,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var r,n,i=this.paths.length;for(t=0;t<i;t+=1)if(-1!==this.paths[t].m&&(r=this.elem.maskManager.viewData[this.paths[t].m],n=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&n.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var o;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),c=n.getTotalLength();o="0 0 0 "+c*a+" ";var u,l=c*(s-a),p=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,f=Math.floor(l/p);for(u=0;u<f;u+=1)o+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+10*c+" 0 0"}else o="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",o)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var h=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*h[0])+","+bmFloor(255*h[1])+","+bmFloor(255*h[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,i=n[0]+" "+r[0]+" "+t[0],o=n[1]+" "+r[1]+" "+t[1],a=n[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,n,i){for(var o,a,s=0,c=Math.min(e,t),u=Math.max(e,t),l=Array.call(null,{length:256}),p=0,f=i-n,h=t-e;s<=256;)a=(o=s/256)<=c?h<0?i:n:o>=u?h<0?n:i:n+f*Math.pow((o-e)/h,1/r),l[p]=a,p+=1,s+=256/255;return l.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(n),o=r*Math.sin(n);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(e,t,r,n){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",n),e.appendChild(i),this.feGaussianBlur=i}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var n,i=r.children,o=0,a=i.length;o<a&&i[o]!==e.layerElement;)o+=1;o<=a-2&&(n=i[o+1]);var s=createNS("use");s.setAttribute("href","#"+t),n?r.insertBefore(s,n):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),n=createNS("mask");n.setAttribute("id",t.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(n);var o=createNS("symbol");o.setAttribute("id",r),this.replaceInParent(t,r),o.appendChild(t.layerElement),i.appendChild(o);var a=createNS("use");a.setAttribute("href","#"+r),n.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,n=t.length;r<n;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=3==r?0:t,i=2==r?0:t;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+i);var o=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,n=t[1].p.v,i=1===t[2].p.v,o=t[3].p.v,a=i?o:t[4].p.v,s=t[5].p.v,c=t[6].p.v,u=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*a,.01*o,1),this.matrix.rotate(-u*degToRads),this.matrix.skewFromAxis(-s*degToRads,(c+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())},e=>{e.exports=function(){function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[a]={exports:{}};t[a][0].call(u.exports,(function(e){return i(t[a][1][e]||e)}),u,u.exports,e,t,r,n)}return r[a].exports}for(var o=void 0,a=0;a<n.length;a++)i(n[a]);return i}return e}()({1:[function(e,t,r){"use strict";var n=e("../renderer/Renderer"),i=e("../helpers/layerAPIBuilder");function o(e){var t={animation:e,elements:e.renderer.elements.map((function(t){return i(t,e)})),boundingRect:null,scaleData:null};function r(){return e.currentFrame}function o(){return e.currentFrame/e.frameRate}function a(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e.getPropertyAtIndex(r).setValue(t)}function s(e,t){var r,n=e.length,i=[];for(r=0;r<n;r+=1)i.push(e.getPropertyAtIndex(r).toKeypathLayerPoint(t));return 1===i.length?i[0]:i}function c(e,t){var r,n=e.length,i=[];for(r=0;r<n;r+=1)i.push(e.getPropertyAtIndex(r).fromKeypathLayerPoint(t));return 1===i.length?i[0]:i}function u(t){var r,n,i,o=e.animationData.w,a=e.animationData.h,s=o/a,c=t.width,u=t.height,l=c/u,p=e.renderer.renderConfig.preserveAspectRatio.split(" ");return r="meet"===p[1]?l>s?u/a:c/o:l>s?c/o:u/a,n=p[0].substr(0,4),{scaleYOffset:"YMin"===(i=p[0].substr(4))?0:"YMid"===i?(u-a*r)/2:u-a*r,scaleXOffset:"xMin"===n?0:"xMid"===n?(c-o*r)/2:c-o*r,scale:r}}function l(r){r=e.wrapper,t.boundingRect=r.getBoundingClientRect(),t.scaleData=u(t.boundingRect)}function p(r){if(!e.wrapper||!e.wrapper.getBoundingClientRect)return r;t.boundingRect||l();var n=t.boundingRect,i=[r[0]-n.left,r[1]-n.top],o=t.scaleData;return i[0]=(i[0]-o.scaleXOffset)/o.scale,i[1]=(i[1]-o.scaleYOffset)/o.scale,i}function f(r){if(!e.wrapper||!e.wrapper.getBoundingClientRect)return r;t.boundingRect||l();var n,i=t.boundingRect,o=t.scaleData;return n=[(n=[r[0]*o.scale+o.scaleXOffset,r[1]*o.scale+o.scaleYOffset])[0]+i.left,n[1]+i.top]}function h(){return t.scaleData}var d={recalculateSize:l,getScaleData:h,toContainerPoint:p,fromContainerPoint:f,getCurrentFrame:r,getCurrentTime:o,addValueCallback:a,toKeypathLayerPoint:s,fromKeypathLayerPoint:c};return Object.assign({},n(t),d)}t.exports=o},{"../helpers/layerAPIBuilder":6,"../renderer/Renderer":42}],2:[function(e,t,r){"use strict";t.exports=","},{}],3:[function(e,t,r){"use strict";t.exports={0:0,1:1,2:2,3:3,4:4,5:5,13:13,comp:0,composition:0,solid:1,image:2,null:3,shape:4,text:5,camera:13}},{}],4:[function(e,t,r){"use strict";t.exports={LAYER_TRANSFORM:"transform"}},{}],5:[function(e,t,r){"use strict";var n=e("../enums/key_path_separator"),i=e("./stringSanitizer");t.exports=function(e){var t=e.split(n),r=t.shift();return{selector:i(r),propertyPath:t.join(n)}}},{"../enums/key_path_separator":2,"./stringSanitizer":7}],6:[function(e,t,r){"use strict";var n=e("../layer/text/TextElement"),i=e("../layer/shape/Shape"),o=e("../layer/null_element/NullElement"),a=e("../layer/solid/SolidElement"),s=e("../layer/image/ImageElement"),c=e("../layer/camera/Camera"),u=e("../layer/LayerBase");t.exports=function(t,r){var l=t.data.ty,p=e("../layer/composition/Composition");switch(l){case 0:return p(t,r);case 1:return a(t,r);case 2:return s(t,r);case 3:return o(t,r);case 4:return i(t,r,t.data.shapes,t.itemsData);case 5:return n(t,r);case 13:return c(t,r);default:return u(t,r)}}},{"../layer/LayerBase":13,"../layer/camera/Camera":15,"../layer/composition/Composition":16,"../layer/image/ImageElement":20,"../layer/null_element/NullElement":21,"../layer/shape/Shape":22,"../layer/solid/SolidElement":35,"../layer/text/TextElement":38}],7:[function(e,t,r){"use strict";function n(e){return e.trim()}t.exports=n},{}],8:[function(e,t,r){"use strict";var n=e("./typedArrays"),i=function(){var e=Math.cos,t=Math.sin,r=Math.tan,i=Math.round;function o(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function s(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1)}function c(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1)}function u(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function l(e,t){return this._t(1,t,e,1,0,0)}function p(e,t){return this.shear(r(e),r(t))}function f(n,i){var o=e(i),a=t(i);return this._t(o,a,0,0,-a,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(n),1,0,0,0,0,1,0,0,0,0,1)._t(o,-a,0,0,a,o,0,0,0,0,1,0,0,0,0,1)}function h(e,t,r){return r=isNaN(r)?1:r,1==e&&1==t&&1==r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function d(e,t,r,n,i,o,a,s,c,u,l,p,f,h,d,m){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=n,this.props[4]=i,this.props[5]=o,this.props[6]=a,this.props[7]=s,this.props[8]=c,this.props[9]=u,this.props[10]=l,this.props[11]=p,this.props[12]=f,this.props[13]=h,this.props[14]=d,this.props[15]=m,this}function m(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function y(e,t,r,n,i,o,a,s,c,u,l,p,f,h,d,m){var y=this.props;if(1===e&&0===t&&0===r&&0===n&&0===i&&1===o&&0===a&&0===s&&0===c&&0===u&&1===l&&0===p)return y[12]=y[12]*e+y[15]*f,y[13]=y[13]*o+y[15]*h,y[14]=y[14]*l+y[15]*d,y[15]=y[15]*m,this._identityCalculated=!1,this;var g=y[0],v=y[1],b=y[2],S=y[3],_=y[4],E=y[5],w=y[6],x=y[7],O=y[8],T=y[9],P=y[10],C=y[11],A=y[12],k=y[13],R=y[14],I=y[15];return y[0]=g*e+v*i+b*c+S*f,y[1]=g*t+v*o+b*u+S*h,y[2]=g*r+v*a+b*l+S*d,y[3]=g*n+v*s+b*p+S*m,y[4]=_*e+E*i+w*c+x*f,y[5]=_*t+E*o+w*u+x*h,y[6]=_*r+E*a+w*l+x*d,y[7]=_*n+E*s+w*p+x*m,y[8]=O*e+T*i+P*c+C*f,y[9]=O*t+T*o+P*u+C*h,y[10]=O*r+T*a+P*l+C*d,y[11]=O*n+T*s+P*p+C*m,y[12]=A*e+k*i+R*c+I*f,y[13]=A*t+k*o+R*u+I*h,y[14]=A*r+k*a+R*l+I*d,y[15]=A*n+k*s+R*p+I*m,this._identityCalculated=!1,this}function g(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t]}function S(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function _(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function E(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function w(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function x(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function O(e){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],r=this.props[5]/t,n=-this.props[1]/t,i=-this.props[4]/t,o=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,s=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t;return[e[0]*r+e[1]*i+a,e[0]*n+e[1]*o+s,0]}function T(e){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n[t]=O(e[t]);return n}function P(e,t,r){var i=n("float32",6);if(this.isIdentity())i[0]=e[0],i[1]=e[1],i[2]=t[0],i[3]=t[1],i[4]=r[0],i[5]=r[1];else{var o=this.props[0],a=this.props[1],s=this.props[4],c=this.props[5],u=this.props[12],l=this.props[13];i[0]=e[0]*o+e[1]*s+u,i[1]=e[0]*a+e[1]*c+l,i[2]=t[0]*o+t[1]*s+u,i[3]=t[0]*a+t[1]*c+l,i[4]=r[0]*o+r[1]*s+u,i[5]=r[0]*a+r[1]*c+l}return i}function C(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function A(e,t){return this.isIdentity()?e+","+t:e*this.props[0]+t*this.props[4]+this.props[12]+","+(e*this.props[1]+t*this.props[5]+this.props[13])}function k(){for(var e=0,t=this.props,r="matrix3d(",n=1e4;e<16;)r+=i(t[e]*n)/n,r+=15===e?")":",",e+=1;return r}function R(){var e=1e4,t=this.props;return"matrix("+i(t[0]*e)/e+","+i(t[1]*e)/e+","+i(t[4]*e)/e+","+i(t[5]*e)/e+","+i(t[12]*e)/e+","+i(t[13]*e)/e+")"}function I(){this.reset=o,this.rotate=a,this.rotateX=s,this.rotateY=c,this.rotateZ=u,this.skew=p,this.skewFromAxis=f,this.shear=l,this.scale=h,this.setTransform=d,this.translate=m,this.transform=y,this.applyToPoint=_,this.applyToX=E,this.applyToY=w,this.applyToZ=x,this.applyToPointArray=C,this.applyToTriplePoints=P,this.applyToPointStringified=A,this.toCSS=k,this.to2dCSS=R,this.clone=b,this.cloneFromProps=S,this.equals=v,this.inversePoints=T,this.inversePoint=O,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=n("float32",16),this.reset()}return function(){return new I}}(); /*! Transformation Matrix v2.0 (c) Epistemex 2014-2015 www.epistemex.com By Ken Fyrstenberg Contributions by leeoniya. License: MIT, header required. */t.exports=i},{"./typedArrays":9}],9:[function(e,t,r){"use strict";var n=function(){function e(e,t){var r,n=0,i=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(n=0;n<t;n+=1)i.push(r);return i}function t(e,t){return"float32"===e?new Float32Array(t):"int16"===e?new Int16Array(t):"uint8c"===e?new Uint8ClampedArray(t):void 0}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?t:e}();t.exports=n},{}],10:[function(e,t,r){"use strict";var n=e("./animation/AnimationItem");function i(e){return Object.assign({},n(e))}t.exports={createAnimationApi:i}},{"./animation/AnimationItem":1}],11:[function(e,t,r){"use strict";var n=e("../helpers/keyPathBuilder"),i=e("../enums/layer_types");function o(e,t){function r(){return e.length}function a(e,t){return e.filter((function(e){return e.getTargetLayer().data.ty===i[t]}))}function s(e,t){return e.filter((function(e){return e.getTargetLayer().data.nm===t}))}function c(e,t){return e.filter((function(e){return!!e.hasProperty(t)&&e.getProperty(t)}))}function u(t){return o(a(e,t),"layer")}function l(t){return o(s(e,t),"layer")}function p(t){return o(e.filter((function(e){return e.hasProperty(t)})).map((function(e){return e.getProperty(t)})),"property")}function f(t){return o(c(e,t).map((function(e){return e.getProperty(t)})),"property")}function h(e){var r,i,o,a=n(e),s=a.selector;return"renderer"===t||"layer"===t?(r=l(s),i=u(s),o=0===r.length&&0===i.length?f(s):r.concat(i),a.propertyPath?o.getKeyPath(a.propertyPath):o):"property"===t?(o=p(s),a.propertyPath?o.getKeyPath(a.propertyPath):o):void 0}function d(r){var n=r.getElements();return o(e.concat(n),t)}function m(){return e}function y(t){return e[t]}var g={getKeyPath:h,concat:d,getElements:m,getPropertyAtIndex:y};return Object.defineProperty(g,"length",{get:r}),g}t.exports=o},{"../enums/layer_types":3,"../helpers/keyPathBuilder":5}],12:[function(e,t,r){"use strict";function n(e){function t(t,r){for(var n=e.properties||[],i=0,o=n.length;i<o;){if(n[i].name===t)return n[i].value;i+=1}return null}function r(e){return!!t(e)}function n(e){return t(e)}function i(t){return e.parent.fromKeypathLayerPoint(t)}function o(t){return e.parent.toKeypathLayerPoint(t)}return{hasProperty:r,getProperty:n,fromKeypathLayerPoint:i,toKeypathLayerPoint:o}}e("../enums/key_path_separator"),e("../enums/property_names"),t.exports=n},{"../enums/key_path_separator":2,"../enums/property_names":4}],13:[function(e,t,r){"use strict";var n=e("../key_path/KeyPathNode"),i=e("./transform/Transform"),o=e("./effects/Effects"),a=e("../helpers/transformationMatrix");function s(e){var t=i(e.element.finalTransform.mProp,e),r=o(e.element.effectsManager.effectElements||[],e);function s(){e.properties.push({name:"transform",value:t},{name:"Transform",value:t},{name:"Effects",value:r},{name:"effects",value:r})}function c(t){var r=e.element;e.parent.toKeypathLayerPoint&&(t=e.parent.toKeypathLayerPoint(t));var n=a();if(e.getProperty("Transform").getTargetTransform().applyToMatrix(n),r.hierarchy&&r.hierarchy.length){var i,o=r.hierarchy.length;for(i=0;i<o;i+=1)r.hierarchy[i].finalTransform.mProp.applyToMatrix(n)}return n.inversePoint(t)}function u(t){var r=e.element,n=a();if(e.getProperty("Transform").getTargetTransform().applyToMatrix(n),r.hierarchy&&r.hierarchy.length){var i,o=r.hierarchy.length;for(i=0;i<o;i+=1)r.hierarchy[i].finalTransform.mProp.applyToMatrix(n)}return t=n.applyToPointArray(t[0],t[1],t[2]||0),e.parent.fromKeypathLayerPoint?e.parent.fromKeypathLayerPoint(t):t}function l(){return e.element}var p={getTargetLayer:l,toKeypathLayerPoint:c,fromKeypathLayerPoint:u};return s(),Object.assign(e,n(e),p)}t.exports=s},{"../helpers/transformationMatrix":8,"../key_path/KeyPathNode":12,"./effects/Effects":19,"./transform/Transform":39}],14:[function(e,t,r){"use strict";var n=e("../enums/layer_types"),i=e("../helpers/layerAPIBuilder");function o(e){function t(){return e.length}function r(e,t){return e.filter((function(e){return e.data.ty===n[t]}))}function a(e,t){return e.filter((function(e){return e.data.nm===t}))}function s(){return o(e)}function c(t){return o(r(e,t))}function u(t){return o(a(e,t))}function l(t){return t>=e.length?[]:i(e[parseInt(t)])}function p(t,r){t.reduce((function(t,r){var n=r;return t[r]=function(){var t=arguments;return e.map((function(e){var r=i(e);return r[n]?r[n].apply(null,t):null}))},t}),d)}function f(){return e}function h(t){return e.concat(t.getTargetElements())}var d={getLayers:s,getLayersByType:c,getLayersByName:u,layer:l,concat:h,getTargetElements:f};return p(["setTranslate","getType","getDuration"]),p(["setText","getText","setDocumentData","canResizeFont","setMinimumFontSize"]),Object.defineProperty(d,"length",{get:t}),d}t.exports=o},{"../enums/layer_types":3,"../helpers/layerAPIBuilder":6}],15:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={},o={element:e,parent:t,properties:a()};function a(){return[{name:"Point of Interest",value:i(e.a,t)},{name:"Zoom",value:i(e.pe,t)},{name:"Position",value:i(e.p,t)},{name:"X Rotation",value:i(e.rx,t)},{name:"Y Rotation",value:i(e.ry,t)},{name:"Z Rotation",value:i(e.rz,t)},{name:"Orientation",value:i(e.or,t)}]}function s(){return o.element}var c={getTargetLayer:s};return Object.assign(r,n(o),c)}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],16:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathList"),i=e("../LayerBase"),o=e("../../helpers/layerAPIBuilder"),a=(e("../../property/Property"),e("./TimeRemap"));function s(e,t){var r={},s={element:e,parent:t,properties:u()};function c(t,r){var n=null,i={name:t.nm};function a(){return n||(n=o(e.elements[r],s)),n}return Object.defineProperty(i,"value",{get:a}),i}function u(){var t=e.layers.map(c);return[{name:"Time Remap",value:a(e.tm)}].concat(t)}var l={};return Object.assign(r,i(s),n(s.elements,"layer"),l)}t.exports=s},{"../../helpers/layerAPIBuilder":6,"../../key_path/KeyPathList":11,"../../property/Property":40,"../LayerBase":13,"./TimeRemap":17}],17:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/ValueProperty");function o(e,t){var r,o={property:e,parent:t},a=!1,s=0,c=0,u=0,l=0,p=!0,f=1,h=!1,d=!1,m=[],y={time:-1};function g(e,t,r){h=!1,r&&(S(),l=e),d&&console.log(e,t),u=Date.now(),s=e,c=t,E()}function v(){var e=m.shift();g(e[0],e[1])}function b(e,t){m.push([e,t])}function S(){m.length=0}function _(e){if(s===c)l=s;else if(!h){var t=Date.now(),r=f*(t-u)/1e3;u=t,s<c?(l+=r)>c&&(m.length?v():p?l%=c-s:l=c):(l-=r)<c&&(m.length?v():l=p?s-(c-l):c),d&&console.log(l)}return R.onEnterFrame&&y.time!==l&&(y.time=l,R.onEnterFrame(y)),l}function E(){a||(a=!0,r=R.setValue(_,d))}function w(e,t){h=!1,t&&S(),E(),c=e}function x(){return a?l:e.v/e.mult}function O(e){p=e}function T(e){f=e}function P(e){d=e}function C(){h=!0}function A(){r&&(r(),o.property=null,o.parent=null)}var k={playSegment:g,playTo:w,queueSegment:b,clearQueue:S,setLoop:O,setSpeed:T,pause:C,setDebugging:P,getCurrentTime:x,onEnterFrame:null,destroy:A},R={};return Object.assign(R,k,i(o),n(o))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/ValueProperty":41}],18:[function(e,t,r){"use strict";var n=e("../../property/Property");function i(e,t){return n(e.p,t)}t.exports=i},{"../../property/Property":40}],19:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:s()};function a(e,r){return{name:e.data?e.data.nm:r.toString(),value:e.data?o(e.effectElements,t):i(e.p,t)}}function s(){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n.push(a(e[t],t));return n}var c={};return Object.assign(c,n(r))}e("./EffectElement"),t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40,"./EffectElement":18}],20:[function(e,t,r){"use strict";var n=e("../LayerBase");function i(e){var t={element:e,parent,properties:r()};function r(){return[]}var i={};return Object.assign({},n(t),i)}t.exports=i},{"../LayerBase":13}],21:[function(e,t,r){"use strict";var n=e("../LayerBase");function i(e,t){var r={},i={element:e,parent:t,properties:o()};function o(){return[]}var a={};return Object.assign(r,n(i),a)}t.exports=i},{"../LayerBase":13}],22:[function(e,t,r){"use strict";var n=e("../LayerBase"),i=e("./ShapeContents");function o(e,t){var r={properties:[],parent:t,element:e},o=i(e.data.shapes,e.itemsData,r);function a(){r.properties.push({name:"Contents",value:o})}var s={};return a(),Object.assign(r,n(r),s)}t.exports=o},{"../LayerBase":13,"./ShapeContents":23}],23:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=(e("../../property/Property"),e("./ShapeRectangle")),o=e("./ShapeFill"),a=e("./ShapeStroke"),s=e("./ShapeEllipse"),c=e("./ShapeGradientFill"),u=e("./ShapeGradientStroke"),l=e("./ShapeTrimPaths"),p=e("./ShapeRepeater"),f=e("./ShapePolystar"),h=e("./ShapeRoundCorners"),d=e("./ShapePath"),m=e("../transform/Transform"),y=e("../../helpers/transformationMatrix");function g(e,t,r){var v={properties:_(),parent:r},b=[];function S(r,n){var y={name:r.nm};return Object.defineProperty(y,"value",{get:function(){return b[n]?b[n]:("gr"===r.ty?y=g(e[n].it,t[n].it,v):"rc"===r.ty?y=i(t[n],v):"el"===r.ty?y=s(t[n],v):"fl"===r.ty?y=o(t[n],v):"st"===r.ty?y=a(t[n],v):"gf"===r.ty?y=c(t[n],v):"gs"===r.ty?y=u(t[n],v):"tm"===r.ty?y=l(t[n],v):"rp"===r.ty?y=p(t[n],v):"sr"===r.ty?y=f(t[n],v):"rd"===r.ty?y=h(t[n],v):"sh"===r.ty?y=d(t[n],v):"tr"===r.ty?y=m(t[n].transform.mProps,v):console.log(r.ty),b[n]=y,y);var y}}),y}function _(){return e.map((function(e,t){return S(e,t)}))}function E(e){if(v.hasProperty("Transform")){var t=y();v.getProperty("Transform").getTargetTransform().applyToMatrix(t),e=t.applyToPointArray(e[0],e[1],e[2]||0)}return v.parent.fromKeypathLayerPoint(e)}function w(e){if(e=v.parent.toKeypathLayerPoint(e),v.hasProperty("Transform")){var t=y();v.getProperty("Transform").getTargetTransform().applyToMatrix(t),e=t.inversePoint(e)}return e}var x={fromKeypathLayerPoint:E,toKeypathLayerPoint:w};return Object.assign(v,n(v),x)}t.exports=g},{"../../helpers/transformationMatrix":8,"../../key_path/KeyPathNode":12,"../../property/Property":40,"../transform/Transform":39,"./ShapeEllipse":24,"./ShapeFill":25,"./ShapeGradientFill":26,"./ShapeGradientStroke":27,"./ShapePath":28,"./ShapePolystar":29,"./ShapeRectangle":30,"./ShapeRepeater":31,"./ShapeRoundCorners":32,"./ShapeStroke":33,"./ShapeTrimPaths":34}],24:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Size",value:i(e.sh.s,t)},{name:"Position",value:i(e.sh.p,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],25:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Color",value:i(e.c,t)},{name:"Opacity",value:{setValue:i(e.o,t)}}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],26:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Start Point",value:i(e.s,t)},{name:"End Point",value:i(e.s,t)},{name:"Opacity",value:i(e.o,t)},{name:"Highlight Length",value:i(e.h,t)},{name:"Highlight Angle",value:i(e.a,t)},{name:"Colors",value:i(e.g.prop,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],27:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Start Point",value:i(e.s,t)},{name:"End Point",value:i(e.e,t)},{name:"Opacity",value:i(e.o,t)},{name:"Highlight Length",value:i(e.h,t)},{name:"Highlight Angle",value:i(e.a,t)},{name:"Colors",value:i(e.g.prop,t)},{name:"Stroke Width",value:i(e.w,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],28:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"path",value:i(e.sh,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],29:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Points",value:i(e.sh.pt,t)},{name:"Position",value:i(e.sh.p,t)},{name:"Rotation",value:i(e.sh.r,t)},{name:"Inner Radius",value:i(e.sh.ir,t)},{name:"Outer Radius",value:i(e.sh.or,t)},{name:"Inner Roundness",value:i(e.sh.is,t)},{name:"Outer Roundness",value:i(e.sh.os,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],30:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Size",value:i(e.sh.s,t)},{name:"Position",value:i(e.sh.p,t)},{name:"Roundness",value:i(e.sh.r,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],31:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property"),o=e("../transform/Transform");function a(e,t){var r={parent:t,properties:a()};function a(){return[{name:"Copies",value:i(e.c,t)},{name:"Offset",value:i(e.o,t)},{name:"Transform",value:o(e.tr,t)}]}var s={};return Object.assign(s,n(r))}t.exports=a},{"../../key_path/KeyPathNode":12,"../../property/Property":40,"../transform/Transform":39}],32:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Radius",value:i(e.rd,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],33:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Color",value:i(e.c,t)},{name:"Stroke Width",value:i(e.w,t)},{name:"Opacity",value:i(e.o,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],34:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Start",value:i(e.s,t)},{name:"End",value:i(e.e,t)},{name:"Offset",value:i(e.o,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],35:[function(e,t,r){"use strict";var n=e("../LayerBase");function i(e,t){var r={element:e,parent:t,properties:i()};function i(){return[]}var o={};return Object.assign({},n(r),o)}t.exports=i},{"../LayerBase":13}],36:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=(e("../../property/Property"),e("./TextAnimator"));function o(e,t){var r={},o={element:e,parent:t,properties:c()};function a(t){var r,n=function(n){var i=t(e.textProperty.currentData);return r!==i?(r=i,Object.assign({},n,i,{__complete:!1})):n};e.textProperty.addEffect(n)}function s(){var t,r,n=[],o=e.textAnimator._animatorsData,a=o.length;for(t=0;t<a;t+=1)r=i(o[t]),n.push({name:e.textAnimator._textData.a[t].nm||"Animator "+(t+1),value:r});return n}function c(){return[{name:"Source",value:{setValue:a}}].concat(s())}var u={};return Object.assign(r,u,n(o))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40,"./TextAnimator":37}],37:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e){var t={},r={properties:O()};function o(t){i(e.a.a).setValue(t)}function a(t){i(e.a.fb).setValue(t)}function s(t){i(e.a.fc).setValue(t)}function c(t){i(e.a.fh).setValue(t)}function u(t){i(e.a.fs).setValue(t)}function l(t){i(e.a.fo).setValue(t)}function p(t){i(e.a.o).setValue(t)}function f(t){i(e.a.p).setValue(t)}function h(t){i(e.a.rx).setValue(t)}function d(t){i(e.a.ry).setValue(t)}function m(t){i(e.a.s).setValue(t)}function y(t){i(e.a.sa).setValue(t)}function g(t){i(e.a.sc).setValue(t)}function v(t){i(e.a.sk).setValue(t)}function b(t){i(e.a.so).setValue(t)}function S(t){i(e.a.sw).setValue(t)}function _(t){i(e.a.sb).setValue(t)}function E(t){i(e.a.sh).setValue(t)}function w(t){i(e.a.ss).setValue(t)}function x(t){i(e.a.t).setValue(t)}function O(){return[{name:"Anchor Point",value:{setValue:o}},{name:"Fill Brightness",value:{setValue:a}},{name:"Fill Color",value:{setValue:s}},{name:"Fill Hue",value:{setValue:c}},{name:"Fill Saturation",value:{setValue:u}},{name:"Fill Opacity",value:{setValue:l}},{name:"Opacity",value:{setValue:p}},{name:"Position",value:{setValue:f}},{name:"Rotation X",value:{setValue:h}},{name:"Rotation Y",value:{setValue:d}},{name:"Scale",value:{setValue:m}},{name:"Skew Axis",value:{setValue:y}},{name:"Stroke Color",value:{setValue:g}},{name:"Skew",value:{setValue:v}},{name:"Stroke Width",value:{setValue:S}},{name:"Tracking Amount",value:{setValue:x}},{name:"Stroke Opacity",value:{setValue:b}},{name:"Stroke Brightness",value:{setValue:_}},{name:"Stroke Saturation",value:{setValue:w}},{name:"Stroke Hue",value:{setValue:E}}]}var T={};return Object.assign(t,T,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],38:[function(e,t,r){"use strict";var n=e("../LayerBase"),i=e("./Text");function o(e){var t={},r=i(e),o={element:e,properties:a()};function a(){return[{name:"text",value:r},{name:"Text",value:r}]}function s(){return e.textProperty.currentData.t}function c(e,t){u({t:e},t)}function u(t,r){return e.updateDocumentData(t,r)}function l(t){return e.canResizeFont(t)}function p(t){return e.setMinimumFontSize(t)}var f={getText:s,setText:c,canResizeFont:l,setDocumentData:u,setMinimumFontSize:p};return Object.assign(t,n(o),f)}t.exports=o},{"../LayerBase":13,"./Text":36}],39:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={properties:o()};function o(){return[{name:"Anchor Point",value:i(e.a,t)},{name:"Point of Interest",value:i(e.a,t)},{name:"Position",value:i(e.p,t)},{name:"Scale",value:i(e.s,t)},{name:"Rotation",value:i(e.r,t)},{name:"X Position",value:i(e.px,t)},{name:"Y Position",value:i(e.py,t)},{name:"Z Position",value:i(e.pz,t)},{name:"X Rotation",value:i(e.rx,t)},{name:"Y Rotation",value:i(e.ry,t)},{name:"Z Rotation",value:i(e.rz,t)},{name:"Opacity",value:i(e.o,t)}]}function a(){return e}var s={getTargetTransform:a};return Object.assign(s,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],40:[function(e,t,r){"use strict";var n=e("../key_path/KeyPathNode"),i=e("./ValueProperty");function o(e,t){var r={property:e,parent:t};function o(){r.property=null,r.parent=null}var a={destroy:o};return Object.assign({},a,i(r),n(r))}t.exports=o},{"../key_path/KeyPathNode":12,"./ValueProperty":41}],41:[function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(e){function t(t){var r=e.property;if(r&&r.addEffect)return"function"==typeof t?r.addEffect(t):"multidimensional"===r.propType&&"object"===(void 0===t?"undefined":n(t))&&2===t.length||"unidimensional"===r.propType&&"number"==typeof t?r.addEffect((function(){return t})):void 0}function r(){return e.property.v}return{setValue:t,getValue:r}}t.exports=i},{}],42:[function(e,t,r){"use strict";var n=e("../layer/LayerList"),i=e("../key_path/KeyPathList");function o(e){function t(){return e.animation.animType}return e._type="renderer",Object.assign({getRendererType:t},n(e.elements),i(e.elements,"renderer"))}t.exports=o},{"../key_path/KeyPathList":11,"../layer/LayerList":14}]},{},[10])(10)},,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{ENTERED:()=>f,ENTERING:()=>p,EXITED:()=>l,EXITING:()=>h,UNMOUNTED:()=>u,default:()=>y});var n=r(1080),i=r(1081),o=r(285),a=r(1083),s=r(1084),c=r(1085),u="unmounted",l="exited",p="entering",f="entered",h="exiting",d=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=p):i=f: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!==p&&r!==f&&(t=p):r!==p&&r!==f||(t=h)}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===p){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:f},(function(){t.props.onEntered(s)})):(this.props.onEnter(s,c),this.safeSetState({status:p},(function(){t.props.onEntering(s,c),t.onTransitionEnd(l,(function(){t.safeSetState({status:f},(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:h},(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(){}d.contextType=s.default,d.propTypes={},d.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},d.UNMOUNTED=u,d.EXITED=l,d.ENTERING=p,d.ENTERED=f,d.EXITING=h;const y=d},(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(-1!==t.indexOf(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(1082);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(285).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,{default:()=>w,disableExperimentalFragmentVariables:()=>y,disableFragmentWarnings:()=>d,enableExperimentalFragmentVariables:()=>m,gql:()=>f,resetCaches:()=>h});var n=r(103),i=r(1121),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 p(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 f(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach((function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]})),p(n)}function h(){o.clear(),a.clear()}function d(){s=!1}function m(){c=!0}function y(){c=!1}var g,v=f,b=h,S=d,_=m,E=y;(g=f||(f={})).gql=v,g.resetCaches=b,g.disableFragmentWarnings=S,g.enableExperimentalFragmentVariables=_,g.disableExperimentalFragmentVariables=E,f.default=f;const w=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Parser:()=>d,parse:()=>l,parseConstValue:()=>f,parseType:()=>h,parseValue:()=>p});var n=r(1122),i=r(429),o=r(1128),a=r(430),s=r(1129),c=r(1131),u=r(1130);function l(e,t){const r=new d(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}function p(e,t){const r=new d(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseValueLiteral(!1);return r.expectToken(u.TokenKind.EOF),n}function f(e,t){const r=new d(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseConstValueLiteral();return r.expectToken(u.TokenKind.EOF),n}function h(e,t){const r=new d(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseTypeReference();return r.expectToken(u.TokenKind.EOF),n}class d{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}get tokenCount(){return this._tokenCounter}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 ${y(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(t.kind!==u.TokenKind.EOF&&(++this._tokenCounter,void 0!==e&&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 y(e.kind)+(null!=t?` "${t}"`:"")}function y(e){return(0,s.isPunctuatorTokenKind)(e)?`"${e}"`:e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{syntaxError:()=>i});var n=r(1123);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(1124),i=r(1125),o=r(1127);class a extends Error{constructor(e,...t){var r,o,c;const{nodes:u,source:l,positions:p,path:f,originalError:h,extensions:d}=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!=f?f:void 0,this.originalError=null!=h?h: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!=p?p:null==m?void 0:m.map((e=>e.start)),this.locations=p&&l?p.map((e=>(0,i.getLocation)(l,e))):null==m?void 0:m.map((e=>(0,i.getLocation)(e.source,e.start)));const y=(0,n.isObjectLike)(null==h?void 0:h.extensions)?null==h?void 0:h.extensions:void 0;this.extensions=null!==(c=null!=d?d:y)&&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!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.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(1126);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(1125);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`,p=n.split(/\r\n|[\n\r]/g),f=p[i];if(f.length>120){const e=Math.floor(u/80),t=u%80,r=[];for(let e=0;e<f.length;e+=80)r.push(f.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+" |",p[i-1]],[`${s} |`,f],["|","^".padStart(u)],[`${s+1} |`,p[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(1122),i=r(429),o=r(453),a=r(454),s=r(1130);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=y(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 p(e,t){return f(e.charCodeAt(t))&&h(e.charCodeAt(t+1))}function f(e){return e>=55296&&e<=56319}function h(e){return e>=56320&&e<=57343}function d(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 y(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 g(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):S(e,o)}if((0,a.isDigit)(t)||45===t)return v(e,o,t);if((0,a.isNameStart)(t))return P(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)||p(r,o)?`Unexpected character: ${d(e,o)}.`:`Invalid character: ${d(e,o)}.`)}return m(e,s.TokenKind.EOF,i,i)}function g(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(!p(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: ${d(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: ${d(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: ${d(e,t)}.`);const i=e.source.body;let o=t+1;for(;(0,a.isDigit)(i.charCodeAt(o));)++o;return o}function S(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(!p(r,o))throw(0,n.syntaxError)(e.source,o,`Invalid character within String: ${d(e,o)}.`);o+=2}}else{c+=r.slice(a,o);const t=117===r.charCodeAt(o+1)?123===r.charCodeAt(o+2)?_(e,o):E(e,o):O(e,o);c+=t.value,o+=t.size,a=o}}throw(0,n.syntaxError)(e.source,o,"Unterminated string.")}function _(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|x(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(f(i)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){const e=w(r,t+8);if(h(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 x(e.charCodeAt(t))<<12|x(e.charCodeAt(t+1))<<8|x(e.charCodeAt(t+2))<<4|x(e.charCodeAt(t+3))}function x(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function O(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,f="";const h=[];for(;c<i;){const i=r.charCodeAt(c);if(34===i&&34===r.charCodeAt(c+1)&&34===r.charCodeAt(c+2)){f+=r.slice(u,c),h.push(f);const n=m(e,s.TokenKind.BLOCK_STRING,t,c+3,(0,o.dedentBlockStringLines)(h).join("\n"));return e.line+=h.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(!p(r,c))throw(0,n.syntaxError)(e.source,c,`Invalid character within String: ${d(e,c)}.`);c+=2}else f+=r.slice(u,c),h.push(f),13===i&&10===r.charCodeAt(c+1)?c+=2:++c,f="",u=c,a=c;else f+=r.slice(u,c),u=c+1,c+=4}throw(0,n.syntaxError)(e.source,c,"Unterminated string.")}function P(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(427),i=r(428),o=r(1132);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(428);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,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloProvider:()=>s});var n=r(103),i=r(349),o=r(347),a=r(589),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,55),o.createElement(s.Provider,{value:u},r)}},,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyDefaultOptions:()=>P,forceLoad:()=>R,getDefaultIntegrations:()=>T,init:()=>A,onLoad:()=>I,showReportDialog:()=>k});var n=r(1351),i=r(1352),o=r(1353),a=r(300),s=r(303),c=r(1331),u=r(317),l=r(1315),p=r(1354),f=r(290),h=r(289),d=r(1311),m=r(1307),y=r(1323),g=r(1309),v=r(1324),b=r(1336),S=r(1337),_=r(1338),E=r(1341),w=r(1342),x=r(1344),O=r(1345);function T(e){return[(0,n.inboundFiltersIntegration)(),(0,i.functionToStringIntegration)(),(0,b.browserApiErrorsIntegration)(),(0,v.breadcrumbsIntegration)(),(0,_.globalHandlersIntegration)(),(0,w.linkedErrorsIntegration)(),(0,o.dedupeIntegration)(),(0,E.httpContextIntegration)(),(0,S.browserSessionIntegration)()]}function P(e={}){return{...{defaultIntegrations:T(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:g.WINDOW.SENTRY_RELEASE?.id,sendClientReports:!0},...C(e)}}function C(e){const t={};for(const r of Object.getOwnPropertyNames(e)){const n=r;void 0!==e[n]&&(t[n]=e[n])}return t}function A(e={}){const t=P(e);if(!t.skipBrowserExtensionCheck&&function(){const e=void 0!==g.WINDOW.window&&g.WINDOW;if(!e)return!1;const t=e[e.chrome?"chrome":"browser"],r=t?.runtime?.id,n=(0,a.getLocationHref)()||"",i=!!r&&g.WINDOW===g.WINDOW.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((e=>n.startsWith(`${e}//`))),o=void 0!==e.nw;return!!r&&!i&&!o}())return void(y.DEBUG_BUILD&&(0,s.consoleSandbox)((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")})));y.DEBUG_BUILD&&!(0,c.supportsFetch)()&&s.logger.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.");const r={...t,stackParser:(0,u.stackParserFromStackParserOptions)(t.stackParser||x.defaultStackParser),integrations:(0,l.getIntegrationsToSetup)(t),transport:t.transport||O.makeFetchTransport};return(0,p.initAndBind)(m.BrowserClient,r)}function k(e={}){if(!g.WINDOW.document)return void(y.DEBUG_BUILD&&s.logger.error("Global document not defined in showReportDialog call"));const t=(0,f.getCurrentScope)(),r=t.getClient(),n=r?.getDsn();if(!n)return void(y.DEBUG_BUILD&&s.logger.error("DSN not configured for showReportDialog call"));if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const t=(0,h.lastEventId)();t&&(e.eventId=t)}const i=g.WINDOW.document.createElement("script");i.async=!0,i.crossOrigin="anonymous",i.src=(0,d.getReportDialogEndpoint)(n,e),e.onLoad&&(i.onload=e.onLoad);const{onClose:o}=e;if(o){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{o()}finally{g.WINDOW.removeEventListener("message",e)}};g.WINDOW.addEventListener("message",e)}const a=g.WINDOW.document.head||g.WINDOW.document.body;a?a.appendChild(i):y.DEBUG_BUILD&&s.logger.error("Not injecting report dialog. No injection point found in HTML")}function R(){}function I(e){e()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BrowserClient:()=>u});var n=r(1310),i=r(1320),o=r(1321),a=r(1322),s=r(1308),c=r(1309);class u extends n.Client{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e},r=c.WINDOW.SENTRY_SDK_SOURCE||(0,i.getSDKSource)();(0,o.applySdkMetadata)(t,"browser",["browser"],r),super(t),t.sendClientReports&&c.WINDOW.document&&c.WINDOW.document.addEventListener("visibilitychange",(()=>{"hidden"===c.WINDOW.document.visibilityState&&this._flushOutcomes()})),this._options.sendDefaultPii&&(this.on("postprocessEvent",a.addAutoIpAddressToUser),this.on("beforeSendSession",a.addAutoIpAddressToSession))}eventFromException(e,t){return(0,s.eventFromException)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return(0,s.eventFromMessage)(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{eventFromException:()=>g,eventFromMessage:()=>v,eventFromUnknownInput:()=>b,exceptionFromError:()=>u,extractMessage:()=>y,extractType:()=>m});var n=r(290),i=r(316),o=r(301),a=r(306),s=r(314),c=r(299);function u(e,t){const r=f(e,t),n={type:m(t),value:y(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?.getOptions().normalizeDepth,l=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];if(r instanceof Error)return r}return}(t),p={__serialized__:(0,i.normalizeToSize)(t,c)};if(l)return{exception:{values:[u(e,l)]},extra:p};const h={exception:{values:[{type:(0,o.isEvent)(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:_(t,{isUnhandledRejection:a})}]},extra:p};if(r){const t=f(e,r);t.length&&(h.exception.values[0].stacktrace={frames:t})}return h}function p(e,t){return{exception:{values:[u(e,t)]}}}function f(e,t){const r=t.stacktrace||t.stack||"",n=function(e){if(e&&h.test(e.message))return 1;return 0}(t),i=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(r,n,i)}catch(e){}return[]}const h=/Minified React error #\d+;/i;function d(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function m(e){const t=e?.name;if(!t&&d(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function y(e){const t=e?.message;return d(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function g(e,t,r,n){const i=b(e,t,r?.syntheticException||void 0,n);return(0,a.addExceptionMechanism)(i),i.level="error",r?.event_id&&(i.event_id=r.event_id),(0,s.resolvedSyncPromise)(i)}function v(e,t,r="info",n,i){const o=S(e,t,n?.syntheticException||void 0,i);return o.level=r,n?.event_id&&(o.event_id=n.event_id),(0,s.resolvedSyncPromise)(o)}function b(e,t,r,n,i){let s;if((0,o.isErrorEvent)(t)&&t.error){return p(e,t.error)}if((0,o.isDOMError)(t)||(0,o.isDOMException)(t)){const i=t;if("stack"in t)s=p(e,t);else{const t=i.name||((0,o.isDOMError)(i)?"DOMError":"DOMException"),c=i.message?`${t}: ${i.message}`:t;s=S(e,c,r,n),(0,a.addExceptionTypeValue)(s,c)}return"code"in i&&(s.tags={...s.tags,"DOMException.code":`${i.code}`}),s}if((0,o.isError)(t))return p(e,t);if((0,o.isPlainObject)(t)||(0,o.isEvent)(t)){return s=l(e,t,r,i),(0,a.addExceptionMechanism)(s,{synthetic:!0}),s}return s=S(e,t,r,n),(0,a.addExceptionTypeValue)(s,`${t}`,void 0),(0,a.addExceptionMechanism)(s,{synthetic:!0}),s}function S(e,t,r,n){const i={};if(n&&r){const n=f(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,a.addExceptionMechanism)(i,{synthetic:!0})}if((0,o.isParameterizedString)(t)){const{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}function _(e,{isUnhandledRejection:t}){const r=(0,c.extractExceptionKeysForMessage)(e),n=t?"promise rejection":"exception";if((0,o.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,o.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:()=>c,ignoreNextOnError:()=>p,shouldIgnoreOnError:()=>l,wrap:()=>f});var n=r(294),i=r(299),o=r(290),a=r(306),s=r(289);const c=n.GLOBAL_OBJ;let u=0;function l(){return u>0}function p(){u++,setTimeout((()=>{u--}))}function f(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if((0,i.getOriginalFunction)(e))return e}catch(t){return e}const r=function(...r){try{const n=r.map((e=>f(e,t)));return e.apply(this,n)}catch(e){throw p(),(0,o.withScope)((n=>{n.addEventProcessor((e=>(t.mechanism&&((0,a.addExceptionTypeValue)(e,void 0,void 0),(0,a.addExceptionMechanism)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),(0,s.captureException)(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,i.markFunctionWrapped)(r,e),(0,i.addNonEnumerableProperty)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseClient:()=>C,Client:()=>P});var n=r(1311),i=r(312),o=r(290),a=r(310),s=r(1313),c=r(1315),u=r(298),l=r(319),p=r(1316),f=r(1312),h=r(1314),d=r(1317),m=r(301),y=r(303),g=r(306),v=r(314),b=r(1318),S=r(308),_=r(327),E=r(311),w=r(323),x=r(1319);const O="Not capturing exception because it's already been captured.",T="Discarded session because of missing or non-string release";class P{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,f.makeDsn)(e.dsn):a.DEBUG_BUILD&&y.logger.warn("No DSN provided, client will not send events."),this._dsn){const t=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,r){const n=(0,g.uuid4)();if((0,g.checkOrSetAlreadyCaught)(e))return a.DEBUG_BUILD&&y.logger.log(O),n;const i={event_id:n,...t};return this._process(this.eventFromException(e,i).then((e=>this._captureEvent(e,i,r)))),i.event_id}captureMessage(e,t,r,n){const i={event_id:(0,g.uuid4)(),...r},o=(0,m.isParameterizedString)(e)?e:String(e),a=(0,m.isPrimitive)(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(a.then((e=>this._captureEvent(e,i,n)))),i.event_id}captureEvent(e,t,r){const n=(0,g.uuid4)();if(t?.originalException&&(0,g.checkOrSetAlreadyCaught)(t.originalException))return a.DEBUG_BUILD&&y.logger.log(O),n;const i={event_id:n,...t},o=e.sdkProcessingMetadata||{},s=o.capturedSpanScope,c=o.capturedSpanIsolationScope;return this._process(this._captureEvent(e,i,s||r,c)),i.event_id}captureSession(e){this.sendSession(e),(0,u.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.emit("flush"),this._isClientDoneProcessing(e).then((r=>t.flush(e).then((e=>r&&e))))):(0,v.resolvedSyncPromise)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some((({name:e})=>e.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];(0,c.setupIntegration)(this,e,this._integrations),t||(0,c.afterSetupIntegrations)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=(0,s.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])r=(0,h.addItemToEnvelope)(r,(0,h.createAttachmentEnvelopeItem)(e));const n=this.sendEnvelope(r);n&&n.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const{release:t,environment:r=i.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){const n=e.attrs||{};if(!n.release&&!t)return void(a.DEBUG_BUILD&&y.logger.warn(T));n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t)return void(a.DEBUG_BUILD&&y.logger.warn(T));e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);const n=(0,s.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){const n=`${e}:${t}`;a.DEBUG_BUILD&&y.logger.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){const r=this._hooks[e]=this._hooks[e]||[];return r.push(t),()=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)}}emit(e,...t){const r=this._hooks[e];r&&r.forEach((e=>e(...t)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(a.DEBUG_BUILD&&y.logger.error("Error while sending envelope:",e),e))):(a.DEBUG_BUILD&&y.logger.error("Transport disabled"),(0,v.resolvedSyncPromise)({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=(0,c.setupIntegrations)(this,e),(0,c.afterSetupIntegrations)(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1;const i=t.exception?.values;if(i){n=!0;for(const e of i){const t=e.mechanism;if(!1===t?.handled){r=!0;break}}}const o="ok"===e.status;(o&&0===e.errors||o&&r)&&((0,u.updateSession)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new v.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){const i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,E.prepareEvent)(i,e,t,r,this,n).then((e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:(0,o.getTraceContextFromScope)(r),...e.contexts};const n=(0,l.getDynamicSamplingContextFromScope)(this,r);return e.sdkProcessingMetadata={dynamicSamplingContext:n,...e.sdkProcessingMetadata},e}))}_captureEvent(e,t={},r=(0,o.getCurrentScope)(),n=(0,o.getIsolationScope)()){return a.DEBUG_BUILD&&A(e)&&y.logger.log(`Captured error event \`${(0,b.getPossibleEventMessages)(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then((e=>e.event_id),(e=>{a.DEBUG_BUILD&&(e instanceof d.SentryError&&"log"===e.logLevel?y.logger.log(e.message):y.logger.warn(e))}))}_processEvent(e,t,r,n){const i=this.getOptions(),{sampleRate:o}=i,a=k(e),s=A(e),c=e.type||"error",u=`before send for type \`${c}\``,l=void 0===o?void 0:(0,_.parseSampleRate)(o);if(s&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),(0,v.rejectedSyncPromise)(new d.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const p="replay_event"===c?"replay":c;return this._prepareEvent(e,t,r,n).then((e=>{if(null===e)throw this.recordDroppedEvent("event_processor",p),new d.SentryError("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return e;const r=function(e,t,r,n){const{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:a}=t;let s=r;if(A(s)&&i)return i(s,n);if(k(s)){if(a){const e=a((0,x.convertTransactionEventToSpanJson)(s));if(e?s=(0,S.merge)(r,(0,x.convertSpanJsonToTransactionEvent)(e)):(0,w.showSpanDropWarning)(),s.spans){const e=[];for(const t of s.spans){const r=a(t);r?e.push(r):((0,w.showSpanDropWarning)(),e.push(t))}s.spans=e}}if(o){if(s.spans){const e=s.spans.length;s.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(s,n)}}return s}(0,i,e,t);return function(e,t){const r=`${t} must return \`null\` or a valid event.`;if((0,m.isThenable)(e))return e.then((e=>{if(!(0,m.isPlainObject)(e)&&null!==e)throw new d.SentryError(r);return e}),(e=>{throw new d.SentryError(`${t} rejected with ${e}`)}));if(!(0,m.isPlainObject)(e)&&null!==e)throw new d.SentryError(r);return e}(r,u)})).then((i=>{if(null===i){if(this.recordDroppedEvent("before_send",p),a){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new d.SentryError(`${u} returned \`null\`, will not send event.`,"log")}const o=r.getSession()||n.getSession();if(s&&o&&this._updateSessionFromEvent(o,i),a){const e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const c=i.transaction_info;if(a&&c&&i.transaction!==e.transaction){const e="custom";i.transaction_info={...c,source:e}}return this.sendEvent(i,t),i})).then(null,(e=>{if(e instanceof d.SentryError)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new d.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)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((([e,t])=>{const[r,n]=e.split(":");return{reason:r,category:n,quantity:t}}))}_flushOutcomes(){a.DEBUG_BUILD&&y.logger.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(a.DEBUG_BUILD&&y.logger.log("No outcomes to send"));if(!this._dsn)return void(a.DEBUG_BUILD&&y.logger.log("No dsn provided, will not send outcomes"));a.DEBUG_BUILD&&y.logger.log("Sending outcomes:",e);const t=(0,p.createClientReportEnvelope)(e,this._options.tunnel&&(0,f.dsnToString)(this._dsn));this.sendEnvelope(t)}}const C=P;function A(e){return void 0===e.type}function k(e){return"transaction"===e.type}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEnvelopeEndpointWithUrlEncodedAuth:()=>a,getReportDialogEndpoint:()=>s});var n=r(1312);const i="7";function o(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function a(e,t,r){return t||`${function(e){return`${o(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const r={sentry_version:i};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}(e,r)}`}function s(e,t){const r=(0,n.makeDsn)(e);if(!r)return"";const i=`${o(r)}embed/error-page/`;let a=`dsn=${(0,n.dsnToString)(r)}`;for(const e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(a+=`&name=${encodeURIComponent(e.name)}`),e.email&&(a+=`&email=${encodeURIComponent(e.email)}`)}else a+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${i}?${a}`}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dsnFromString:()=>s,dsnToString:()=>a,makeDsn:()=>u});var n=r(302),i=r(303);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 p="",f=l;const h=f.split("/");if(h.length>1&&(p=h.slice(0,-1).join("/"),f=h.pop()),f){const e=f.match(/^\d+/);e&&(f=e[0])}return c({host:s,pass:a,path:p,projectId:f,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,{createEventEnvelope:()=>c,createSessionEnvelope:()=>s,createSpanEnvelope:()=>u});var n=r(319),i=r(1312),o=r(1314),a=r(323);function s(e,t,r,n){const a=(0,o.getSdkMetadataForEnvelopeHeader)(r),s={sent_at:(new Date).toISOString(),...a&&{sdk:a},...!!n&&t&&{dsn:(0,i.dsnToString)(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,o.createEnvelope)(s,[c])}function c(e,t,r,n){const i=(0,o.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?.sdk);const s=(0,o.createEventEnvelopeHeaders)(e,i,n,t);delete e.sdkProcessingMetadata;const c=[{type:a},e];return(0,o.createEnvelope)(s,[c])}function u(e,t){const r=(0,n.getDynamicSamplingContextFromSpan)(e[0]),s=t?.getDsn(),c=t?.getOptions().tunnel,u={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(r)&&{trace:r},...!!c&&s&&{dsn:(0,i.dsnToString)(s)}},l=t?.getOptions().beforeSendSpan,p=l?e=>{const t=(0,a.spanToJSON)(e),r=l(t);return r||((0,a.showSpanDropWarning)(),t)}:a.spanToJSON,f=[];for(const t of e){const e=p(t);e&&f.push((0,o.createSpanEnvelopeItem)(e))}return(0,o.createEnvelope)(u,f)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addItemToEnvelope:()=>u,createAttachmentEnvelopeItem:()=>y,createEnvelope:()=>c,createEventEnvelopeHeaders:()=>S,createSpanEnvelopeItem:()=>m,envelopeContainsItemType:()=>p,envelopeItemTypeToDataCategory:()=>v,forEachEnvelopeItem:()=>l,getSdkMetadataForEnvelopeHeader:()=>b,parseEnvelope:()=>d,serializeEnvelope:()=>h});var n=r(292),i=r(1312),o=r(316),a=r(299),s=r(294);function c(e,t=[]){return[e,t]}function u(e,t){const[r,n]=e;return[r,[...n,t]]}function l(e,t){const r=e[1];for(const e of r){if(t(e,e[0].type))return!0}return!1}function p(e,t){return l(e,((e,r)=>t.includes(r)))}function f(e){const t=(0,n.getSentryCarrier)(s.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function h(e){const[t,r]=e;let n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[f(n),e]:n.push("string"==typeof e?f(e):e)}for(const e of r){const[t,r]=e;if(i(`\n${JSON.stringify(t)}\n`),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch(t){e=JSON.stringify((0,o.normalize)(r))}i(e)}}return"string"==typeof n?n: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}(n)}function d(e){let t="string"==typeof e?f(e):e;function r(e){const r=t.subarray(0,e);return t=t.subarray(e+1),r}function i(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse(function(e){const t=(0,n.getSentryCarrier)(s.GLOBAL_OBJ);return t.decodePolyfill?t.decodePolyfill(e):(new TextDecoder).decode(e)}(r(e)))}const o=i(),a=[];for(;t.length;){const e=i(),t="number"==typeof e.length?e.length:void 0;a.push([e,t?r(t):i()])}return[o,a]}function m(e){return[{type:"span"},e]}function y(e){const t="string"==typeof e.data?f(e.data):e.data;return[(0,a.dropUndefinedKeys)({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const g={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",otel_log:"log_item"};function v(e){return g[e]}function b(e){if(!e?.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function S(e,t,r,n){const o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:(0,i.dsnToString)(n)},...o&&{trace:(0,a.dropUndefinedKeys)({...o})}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addIntegration:()=>p,afterSetupIntegrations:()=>u,defineIntegration:()=>f,getIntegrationsToSetup:()=>s,installedIntegrations:()=>a,setupIntegration:()=>l,setupIntegrations:()=>c});var n=r(290),i=r(310),o=r(303);const a=[];function s(e){const t=e.defaultIntegrations||[],r=e.integrations;let n;if(t.forEach((e=>{e.isDefaultInstance=!0})),Array.isArray(r))n=[...t,...r];else if("function"==typeof r){const e=r(t);n=Array.isArray(e)?e:[e]}else n=t;return function(e){const t={};return e.forEach((e=>{const{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)})),Object.values(t)}(n)}function c(e,t){const r={};return t.forEach((t=>{t&&l(e,t,r)})),r}function u(e,t){for(const r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function l(e,t,r){if(r[t.name])i.DEBUG_BUILD&&o.logger.log(`Integration skipped because it was already installed: ${t.name}`);else{if(r[t.name]=t,-1===a.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),a.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,n)=>r(t,n,e)))}if("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)}i.DEBUG_BUILD&&o.logger.log(`Integration installed: ${t.name}`)}}function p(e){const t=(0,n.getClient)();t?t.addIntegration(e):i.DEBUG_BUILD&&o.logger.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}function f(e){return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createClientReportEnvelope:()=>o});var n=r(1314),i=r(305);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,{SentryError:()=>n});class n extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}},(e,t,r)=>{"use strict";function n(e){const t=[];e.message&&t.push(e.message);try{const r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch(e){}return t}r.r(t),r.d(t,{getPossibleEventMessages:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{convertSpanJsonToTransactionEvent:()=>a,convertTransactionEventToSpanJson:()=>o});var n=r(320),i=r(299);function o(e){const{trace_id:t,parent_span_id:r,span_id:o,status:a,origin:s,data:c,op:u}=e.contexts?.trace??{};return(0,i.dropUndefinedKeys)({data:c??{},description:e.transaction,op:u,parent_span_id:r,span_id:o??"",start_timestamp:e.start_timestamp??0,status:a,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:c?.[n.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:c?.[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0})}function a(e){const t={type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[n.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements};return(0,i.dropUndefinedKeys)(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(293);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";function n(e){void 0===e.user?.ip_address&&(e.user={...e.user,ip_address:"{{auto}}"})}function i(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}r.r(t),r.d(t,{addAutoIpAddressToSession:()=>i,addAutoIpAddressToUser:()=>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,{breadcrumbsIntegration:()=>_});var n=r(1327),i=r(1329),o=r(1332),a=r(1325),s=r(1330),c=r(1315),u=r(290),l=r(470),p=r(306),f=r(303),h=r(300),d=r(1333),m=r(304),y=r(1334),g=r(1335),v=r(1323),b=r(1309);const S=1024,_=(0,c.defineIntegration)(((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&(0,a.addConsoleInstrumentationHandler)(function(e){return function(t){if((0,u.getClient)()!==e)return;const r={category:"console",data:{arguments:t.args,logger:"console"},level:(0,d.severityLevelFromString)(t.level),message:(0,m.safeJoin)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${(0,m.safeJoin)(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}(0,l.addBreadcrumb)(r,{input:t.args,level:t.level})}}(e)),t.dom&&(0,n.addClickKeypressInstrumentationHandler)(function(e,t){return function(r){if((0,u.getClient)()!==e)return;let n,i,o="object"==typeof t?t.serializeAttribute:void 0,a="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>S&&(v.DEBUG_BUILD&&f.logger.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=S),"string"==typeof o&&(o=[o]);try{const e=r.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;n=(0,h.htmlTreeAsString)(t,{keyAttrs:o,maxStringLength:a}),i=(0,h.getComponentName)(t)}catch(e){n="<unknown>"}if(0===n.length)return;const s={category:`ui.${r.name}`,message:n};i&&(s.data={"ui.component_name":i}),(0,l.addBreadcrumb)(s,{event:r.event,name:r.name,global:r.global})}}(e,t.dom)),t.xhr&&(0,i.addXhrInstrumentationHandler)(function(e){return function(t){if((0,u.getClient)()!==e)return;const{startTimestamp:r,endTimestamp:n}=t,o=t.xhr[i.SENTRY_XHR_DATA_KEY];if(!r||!n||!o)return;const{method:a,url:s,status_code:c,body:p}=o,f={method:a,url:s,status_code:c},h={xhr:t.xhr,input:p,startTimestamp:r,endTimestamp:n},d={category:"xhr",data:f,type:"http",level:(0,y.getBreadcrumbLogLevelFromHttpStatusCode)(c)};e.emit("beforeOutgoingRequestBreadcrumb",d,h),(0,l.addBreadcrumb)(d,h)}}(e)),t.fetch&&(0,s.addFetchInstrumentationHandler)(function(e){return function(t){if((0,u.getClient)()!==e)return;const{startTimestamp:r,endTimestamp:n}=t;if(n&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.fetchData.method,t.fetchData.url,t.error){const i=t.fetchData,o={data:t.error,input:t.args,startTimestamp:r,endTimestamp:n},a={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,o),(0,l.addBreadcrumb)(a,o)}else{const i=t.response,o={...t.fetchData,status_code:i?.status};t.fetchData.request_body_size,t.fetchData.response_body_size;const a={input:t.args,response:i,startTimestamp:r,endTimestamp:n},s={category:"fetch",data:o,type:"http",level:(0,y.getBreadcrumbLogLevelFromHttpStatusCode)(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",s,a),(0,l.addBreadcrumb)(s,a)}}}(e)),t.history&&(0,o.addHistoryInstrumentationHandler)(function(e){return function(t){if((0,u.getClient)()!==e)return;let r=t.from,n=t.to;const i=(0,g.parseUrl)(b.WINDOW.location.href);let o=r?(0,g.parseUrl)(r):void 0;const a=(0,g.parseUrl)(n);o?.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),(0,l.addBreadcrumb)({category:"navigation",data:{from:r,to:n}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){(0,u.getClient)()===e&&(0,l.addBreadcrumb)({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,p.getEventDescription)(t)},{event:t})}}(e))}}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addConsoleInstrumentationHandler:()=>s});var n=r(303),i=r(299),o=r(294),a=r(1326);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?.apply(o.GLOBAL_OBJ.console,t)}}))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addHandler:()=>c,maybeInstrument:()=>l,resetInstrumentationHandlers:()=>u,triggerHandlers:()=>p});var n=r(302),i=r(303),o=r(317);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){if(!s[e]){s[e]=!0;try{t()}catch(t){n.DEBUG_BUILD&&i.logger.error(`Error while instrumenting ${e}`,t)}}}function p(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:()=>f});var n=r(1326),i=r(299),o=r(306),a=r(1328);const s=1e3;let c,u,l;function p(e){(0,n.addHandler)("dom",e),(0,n.maybeInstrument)("dom",f)}function f(){if(!a.WINDOW.document)return;const e=n.triggerHandlers.bind(null,"dom"),t=h(e,!0);a.WINDOW.document.addEventListener("click",t,!1),a.WINDOW.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const r=a.WINDOW,n=r[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&((0,i.fill)(n,"addEventListener",(function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{const n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=n[r]=n[r]||{refCount:0};if(!o.handler){const n=h(e);o.handler=n,t.call(this,r,n,i)}o.refCount++}catch(e){}return t.call(this,r,n,i)}})),(0,i.fill)(n,"removeEventListener",(function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{const r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__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 n=function(e){try{return e.target}catch(e){return null}}(r);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(r.type,n))return;(0,i.addNonEnumerableProperty)(r,"_sentryCaptured",!0),n&&!n._sentryId&&(0,i.addNonEnumerableProperty)(n,"_sentryId",(0,o.uuid4)());const p="keypress"===r.type?"input":r.type;if(!function(e){if(e.type!==u)return!1;try{if(!e.target||e.target._sentryId!==l)return!1}catch(e){}return!0}(r)){e({event:r,name:p,global:t}),u=r.type,l=n?n._sentryId:void 0}clearTimeout(c),c=a.WINDOW.setTimeout((()=>{l=void 0,u=void 0}),s)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WINDOW:()=>n});const n=r(294).GLOBAL_OBJ},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SENTRY_XHR_DATA_KEY:()=>s,addXhrInstrumentationHandler:()=>c,instrumentXHR:()=>u});var n=r(1326),i=r(305),o=r(301),a=r(1328);const s="__sentry_xhr_v3__";function c(e){(0,n.addHandler)("xhr",e),(0,n.maybeInstrument)("xhr",u)}function u(){if(!a.WINDOW.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){const a=new Error,c=1e3*(0,i.timestampInSeconds)(),u=(0,o.isString)(r[0])?r[0].toUpperCase():void 0,l=function(e){if((0,o.isString)(e))return e;try{return e.toString()}catch{}return}(r[1]);if(!u||!l)return e.apply(t,r);t[s]={method:u,url:l,request_headers:{}},"POST"===u&&l.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const p=()=>{const e=t[s];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}const r={endTimestamp:1e3*(0,i.timestampInSeconds)(),startTimestamp:c,xhr:t,virtualError:a};(0,n.triggerHandlers)("xhr",r)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(p(),e.apply(t,r))}):t.addEventListener("readystatechange",p),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){const[n,i]=r,a=t[s];return a&&(0,o.isString)(n)&&(0,o.isString)(i)&&(a.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){const o=t[s];if(!o)return e.apply(t,r);void 0!==r[0]&&(o.body=r[0]);const a={startTimestamp:1e3*(0,i.timestampInSeconds)(),xhr:t};return(0,n.triggerHandlers)("xhr",a),e.apply(t,r)}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addFetchEndInstrumentationHandler:()=>l,addFetchInstrumentationHandler:()=>u,parseFetchArgs:()=>m});var n=r(301),i=r(299),o=r(1331),a=r(305),s=r(294),c=r(1326);function u(e,t){const r="fetch";(0,c.addHandler)(r,e),(0,c.maybeInstrument)(r,(()=>p(void 0,t)))}function l(e){const t="fetch-body-resolved";(0,c.addHandler)(t,e),(0,c.maybeInstrument)(t,(()=>p(f)))}function p(e,t=!1){t&&!(0,o.supportsNativeFetch)()||(0,i.fill)(s.GLOBAL_OBJ,"fetch",(function(t){return function(...r){const o=new Error,{method:u,url:l}=m(r),p={args:r,fetchData:{method:u,url:l},startTimestamp:1e3*(0,a.timestampInSeconds)(),virtualError:o};return e||(0,c.triggerHandlers)("fetch",{...p}),t.apply(s.GLOBAL_OBJ,r).then((async t=>(e?e(t):(0,c.triggerHandlers)("fetch",{...p,endTimestamp:1e3*(0,a.timestampInSeconds)(),response:t}),t)),(e=>{throw(0,c.triggerHandlers)("fetch",{...p,endTimestamp:1e3*(0,a.timestampInSeconds)(),error:e}),(0,n.isError)(e)&&void 0===e.stack&&(e.stack=o.stack,(0,i.addNonEnumerableProperty)(e,"framesToPop",1)),e}))}}))}function f(e){let t;try{t=e.clone()}catch{return}!async function(e,t){if(e?.body){const r=e.body,n=r.getReader(),i=setTimeout((()=>{r.cancel().then(null,(()=>{}))}),9e4);let o=!0;for(;o;){let e;try{e=setTimeout((()=>{r.cancel().then(null,(()=>{}))}),5e3);const{done:i}=await n.read();clearTimeout(e),i&&(t(),o=!1)}catch(e){o=!1}finally{clearTimeout(e)}}clearTimeout(i),n.releaseLock(),r.cancel().then(null,(()=>{}))}}(t,(()=>{(0,c.triggerHandlers)("fetch-body-resolved",{endTimestamp:1e3*(0,a.timestampInSeconds)(),response:e})}))}function h(e,t){return!!e&&"object"==typeof e&&!!e[t]}function d(e){return"string"==typeof e?e:e?h(e,"url")?e.url:e.toString?e.toString():"":""}function m(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,r]=e;return{url:d(t),method:h(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:d(t),method:h(t,"method")?String(t.method).toUpperCase():"GET"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isNativeFunction:()=>p,supportsDOMError:()=>s,supportsDOMException:()=>c,supportsErrorEvent:()=>a,supportsFetch:()=>l,supportsHistory:()=>u,supportsNativeFetch:()=>f,supportsReferrerPolicy:()=>d,supportsReportingObserver:()=>h});var n=r(302),i=r(303);const o=r(294).GLOBAL_OBJ;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(){return"history"in o&&!!o.history}function l(){if(!("fetch"in o))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function p(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function f(){if("string"==typeof EdgeRuntime)return!0;if(!l())return!1;if(p(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?.fetch&&(e=p(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 h(){return"ReportingObserver"in o}function d(){if(!l())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addHistoryInstrumentationHandler:()=>c,instrumentHistory:()=>u});var n=r(1326),i=r(1331),o=r(299),a=r(1328);let s;function c(e){const t="history";(0,n.addHandler)(t,e),(0,n.maybeInstrument)(t,u)}function u(){function e(e){return function(...t){const r=t.length>2?t[2]:void 0;if(r){const i=s,o=String(r);if(s=o,i===o)return e.apply(this,t);const a={from:i,to:o};(0,n.triggerHandlers)("history",a)}return e.apply(this,t)}}a.WINDOW.addEventListener("popstate",(()=>{const e=a.WINDOW.location.href,t=s;if(s=e,t===e)return;const r={from:t,to:e};(0,n.triggerHandlers)("history",r)})),(0,i.supportsHistory)()&&((0,o.fill)(a.WINDOW.history,"pushState",e),(0,o.fill)(a.WINDOW.history,"replaceState",e))}},(e,t,r)=>{"use strict";function n(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}r.r(t),r.d(t,{severityLevelFromString:()=>n})},(e,t,r)=>{"use strict";function n(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}r.r(t),r.d(t,{getBreadcrumbLogLevelFromHttpStatusCode:()=>n})},(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){const{protocol:t,host:r,path:n}=e;return`${t?`${t}://`:""}${r?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${n}`}r.r(t),r.d(t,{getSanitizedUrlString:()=>o,parseUrl:()=>n,stripUrlQueryAndFragment:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserApiErrorsIntegration:()=>c});var n=r(299),i=r(1315),o=r(317),a=r(1309);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=(0,i.defineIntegration)(((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,n.fill)(a.WINDOW,"setTimeout",u),t.setInterval&&(0,n.fill)(a.WINDOW,"setInterval",u),t.requestAnimationFrame&&(0,n.fill)(a.WINDOW,"requestAnimationFrame",l),t.XMLHttpRequest&&"XMLHttpRequest"in a.WINDOW&&(0,n.fill)(XMLHttpRequest.prototype,"send",p);const e=t.eventTarget;if(e){(Array.isArray(e)?e:s).forEach(f)}}}}));function u(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 l(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 p(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in r&&"function"==typeof r[e]&&(0,n.fill)(r,e,(function(t){const r={mechanism:{data:{function:e,handler:(0,o.getFunctionName)(t)},handled:!1,type:"instrument"}},i=(0,n.getOriginalFunction)(t);return i&&(r.mechanism.data.handler=(0,o.getFunctionName)(i)),(0,a.wrap)(t,r)}))})),e.apply(this,t)}}function f(e){const t=a.WINDOW,r=t[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,n.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{}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,n.fill)(r,"removeEventListener",(function(e){return function(t,r,n){try{const i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch(e){}return e.call(this,t,r,n)}})))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserSessionIntegration:()=>u});var n=r(1332),i=r(1315),o=r(303),a=r(289),s=r(1323),c=r(1309);const u=(0,i.defineIntegration)((()=>({name:"BrowserSession",setupOnce(){void 0!==c.WINDOW.document?((0,a.startSession)({ignoreDuration:!0}),(0,a.captureSession)(),(0,n.addHistoryInstrumentationHandler)((({from:e,to:t})=>{void 0!==e&&e!==t&&((0,a.startSession)({ignoreDuration:!0}),(0,a.captureSession)())}))):s.DEBUG_BUILD&&o.logger.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}})))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{globalHandlersIntegration:()=>m});var n=r(1315),i=r(1339),o=r(290),a=r(289),s=r(1340),c=r(301),u=r(300),l=r(317),p=r(303),f=r(1323),h=r(1308),d=r(1309);const m=(0,n.defineIntegration)(((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){(0,i.addGlobalErrorInstrumentationHandler)((t=>{const{stackParser:r,attachStacktrace:n}=g();if((0,o.getClient)()!==e||(0,d.shouldIgnoreOnError)())return;const{msg:i,url:s,line:p,column:f,error:m}=t,y=function(e,t,r,n){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},p=s.frames=s.frames||[],f=n,h=r,d=(0,c.isString)(t)&&t.length>0?t:(0,u.getLocationHref)();0===p.length&&p.push({colno:f,filename:d,function:l.UNKNOWN_FUNCTION,in_app:!0,lineno:h});return e}((0,h.eventFromUnknownInput)(r,m||i,void 0,n,!1),s,p,f);y.level="error",(0,a.captureEvent)(y,{originalException:m,mechanism:{handled:!1,type:"onerror"}})}))}(e),y("onerror")),t.onunhandledrejection&&(!function(e){(0,s.addGlobalUnhandledRejectionInstrumentationHandler)((t=>{const{stackParser:r,attachStacktrace:n}=g();if((0,o.getClient)()!==e||(0,d.shouldIgnoreOnError)())return;const i=function(e){if((0,c.isPrimitive)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(t),s=(0,c.isPrimitive)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:(0,h.eventFromUnknownInput)(r,i,void 0,n,!0);s.level="error",(0,a.captureEvent)(s,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),y("onunhandledrejection"))}}}));function y(e){f.DEBUG_BUILD&&p.logger.log(`Global Handler attached: ${e}`)}function g(){const e=(0,o.getClient)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addGlobalErrorInstrumentationHandler:()=>a});var n=r(294),i=r(1326);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.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(294),i=r(1326);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.apply(this,arguments)},n.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{httpContextIntegration:()=>a});var n=r(1315),i=r(300),o=r(1309);const a=(0,n.defineIntegration)((()=>({name:"HttpContext",preprocessEvent(e){if(!o.WINDOW.navigator&&!o.WINDOW.location&&!o.WINDOW.document)return;const t=e.request?.url||(0,i.getLocationHref)(),{referrer:r}=o.WINDOW.document||{},{userAgent:n}=o.WINDOW.navigator||{},a={...e.request?.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},s={...e.request,...t&&{url:t},headers:a};e.request=s}})))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{linkedErrorsIntegration:()=>a});var n=r(1343),i=r(1315),o=r(1308);const a=(0,i.defineIntegration)(((e={})=>{const t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,i,a){const s=a.getOptions();(0,n.applyAggregateErrorsToEvent)(o.exceptionFromError,s.stackParser,s.maxValueLength,r,t,e,i)}}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyAggregateErrorsToEvent:()=>o});var n=r(301),i=r(304);function o(e,t,r=250,o,s,c,u){if(!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 p,f;l&&(c.exception.values=(p=a(e,t,s,u.originalException,o,c.exception.values,l,0),f=r,p.map((e=>(e.value&&(e.value=(0,i.truncate)(e.value,f)),e)))))}function a(e,t,r,i,o,u,l,p){if(u.length>=r+1)return u;let f=[...u];if((0,n.isInstanceOf)(i[o],Error)){s(l,p);const n=e(t,i[o]),u=f.length;c(n,o,u,p),f=a(e,t,r,i[o],o,[n,...f],n,u)}return Array.isArray(i.errors)&&i.errors.forEach(((i,u)=>{if((0,n.isInstanceOf)(i,Error)){s(l,p);const n=e(t,i),h=f.length;c(n,`errors[${u}]`,h,p),f=a(e,t,r,i,o,[n,...f],n,h)}})),f}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,{chromeStackLineParser:()=>c,defaultStackLineParsers:()=>v,defaultStackParser:()=>b,geckoStackLineParser:()=>p,opera10StackLineParser:()=>m,opera11StackLineParser:()=>g,winjsStackLineParser:()=>h});var n=r(317);function i(e,t,r,i){const o={filename:e,function:"<anonymous>"===t?n.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==r&&(o.lineno=r),void 0!==i&&(o.colno=i),o}const o=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,a=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,c=[30,e=>{const t=o.exec(e);if(t){const[,e,r,o]=t;return i(e,n.UNKNOWN_FUNCTION,+r,+o)}const r=a.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){const e=s.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}const[e,t]=S(r[1]||n.UNKNOWN_FUNCTION,r[2]);return i(t,e,r[3]?+r[3]:void 0,r[4]?+r[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,p=[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]||n.UNKNOWN_FUNCTION;return[r,e]=S(r,e),i(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],f=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,h=[40,e=>{const t=f.exec(e);return t?i(t[2],t[1]||n.UNKNOWN_FUNCTION,+t[3],t[4]?+t[4]:void 0):void 0}],d=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,m=[10,e=>{const t=d.exec(e);return t?i(t[2],t[3]||n.UNKNOWN_FUNCTION,+t[1]):void 0}],y=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,g=[20,e=>{const t=y.exec(e);return t?i(t[5],t[3]||t[4]||n.UNKNOWN_FUNCTION,+t[1],+t[2]):void 0}],v=[c,p],b=(0,n.createStackParser)(...v),S=(e,t)=>{const r=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return r||i?[-1!==e.indexOf("@")?e.split("@")[0]:n.UNKNOWN_FUNCTION,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(1346),i=r(314),o=r(1348);function a(e,t=(0,n.getNativeImplementation)("fetch")){let r=0,a=0;return(0,o.createTransport)(e,(function(o){const s=o.body.length;r+=s,a++;const c={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&a<15,...e.fetchOptions};if(!t)return(0,n.clearCachedImplementation)("fetch"),(0,i.rejectedSyncPromise)("No fetch implementation available");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,n.clearCachedImplementation)("fetch"),r-=s,a--,(0,i.rejectedSyncPromise)(e)}}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{clearCachedImplementation:()=>u,fetch:()=>l,getNativeImplementation:()=>c,setTimeout:()=>p});var n=r(1331),i=r(303),o=r(1347),a=r(1328);const s={};function c(e){const t=s[e];if(t)return t;let r=a.WINDOW[e];if((0,n.isNativeFunction)(r))return s[e]=r.bind(a.WINDOW);const c=a.WINDOW.document;if(c&&"function"==typeof c.createElement)try{const t=c.createElement("iframe");t.hidden=!0,c.head.appendChild(t);const n=t.contentWindow;n?.[e]&&(r=n[e]),c.head.removeChild(t)}catch(t){o.DEBUG_BUILD&&i.logger.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?s[e]=r.bind(a.WINDOW):r}function u(e){s[e]=void 0}function l(...e){return c("fetch")(...e)}function p(...e){return c("setTimeout")(...e)}},(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,{DEFAULT_TRANSPORT_BUFFER_SIZE:()=>l,createTransport:()=>p});var n=r(310),i=r(1314),o=r(1317),a=r(303),s=r(1349),c=r(1350),u=r(314);const l=64;function p(e,t,r=(0,s.makePromiseBuffer)(e.bufferSize||l)){let p={};return{send:function(s){const l=[];if((0,i.forEachEnvelopeItem)(s,((t,r)=>{const n=(0,i.envelopeItemTypeToDataCategory)(r);(0,c.isRateLimited)(p,n)?e.recordDroppedEvent("ratelimit_backoff",n):l.push(t)})),0===l.length)return(0,u.resolvedSyncPromise)({});const f=(0,i.createEnvelope)(s[0],l),h=t=>{(0,i.forEachEnvelopeItem)(f,((r,n)=>{e.recordDroppedEvent(t,(0,i.envelopeItemTypeToDataCategory)(n))}))};return r.add((()=>t({body:(0,i.serializeEnvelope)(f)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&n.DEBUG_BUILD&&a.logger.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),p=(0,c.updateRateLimits)(p,e),e)),(e=>{throw h("network_error"),e})))).then((e=>e),(e=>{if(e instanceof o.SentryError)return n.DEBUG_BUILD&&a.logger.error("Skipped sending event because buffer is full."),h("queue_overflow"),(0,u.resolvedSyncPromise)({});throw e}))},flush:e=>r.drain(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{makePromiseBuffer:()=>o});var n=r(1317),i=r(314);function o(e){const t=[];function r(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 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?.["x-sentry-rate-limits"],s=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,{eventFiltersIntegration:()=>l,inboundFiltersIntegration:()=>p});var n=r(310),i=r(1315),o=r(303),a=r(306),s=r(304),c=r(1318);const u=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],l=(0,i.defineIntegration)(((e={})=>({name:"EventFilters",processEvent(t,r,i){const l=i.getOptions(),p=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:u],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],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 n.DEBUG_BUILD&&o.logger.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,a.getEventDescription)(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return(0,c.getPossibleEventMessages)(e).some((e=>(0,s.stringMatchesSomePattern)(e,t)))}(e,t.ignoreErrors))return n.DEBUG_BUILD&&o.logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,a.getEventDescription)(e)}`),!0;if(function(e){if(e.type)return!1;if(!e.exception?.values?.length)return!1;return!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))}(e))return n.DEBUG_BUILD&&o.logger.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,a.getEventDescription)(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const r=e.transaction;return!!r&&(0,s.stringMatchesSomePattern)(r,t)}(e,t.ignoreTransactions))return n.DEBUG_BUILD&&o.logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,a.getEventDescription)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const r=f(e);return!!r&&(0,s.stringMatchesSomePattern)(r,t)}(e,t.denyUrls))return n.DEBUG_BUILD&&o.logger.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,a.getEventDescription)(e)}.\nUrl: ${f(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const r=f(e);return!r||(0,s.stringMatchesSomePattern)(r,t)}(e,t.allowUrls))return n.DEBUG_BUILD&&o.logger.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,a.getEventDescription)(e)}.\nUrl: ${f(e)}`),!0;return!1}(t,p)?null:t}}))),p=(0,i.defineIntegration)(((e={})=>({...l(e),name:"InboundFilters"})));function f(e){try{const t=[...e.exception?.values??[]].reverse().find((e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length)),r=t?.stacktrace?.frames;return r?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}(r):null}catch(t){return n.DEBUG_BUILD&&o.logger.error(`Cannot extract url for event ${(0,a.getEventDescription)(e)}`),null}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{functionToStringIntegration:()=>c});var n=r(290),i=r(1315),o=r(299);let a;const s=new WeakMap,c=(0,i.defineIntegration)((()=>({name:"FunctionToString",setupOnce(){a=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,o.getOriginalFunction)(this),r=s.has((0,n.getClient)())&&void 0!==t?t:this;return a.apply(r,e)}}catch{}},setup(e){s.set(e,!0)}})))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_shouldDropEvent:()=>c,dedupeIntegration:()=>s});var n=r(1315),i=r(310),o=r(303),a=r(317);const s=(0,n.defineIntegration)((()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(c(t,e))return i.DEBUG_BUILD&&o.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}}));function c(e,t){return!!t&&(!!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)||!!function(e,t){const r=p(t),n=p(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))}function u(e,t){let r=(0,a.getFramesFromEvent)(e),n=(0,a.getFramesFromEvent)(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 p(e){return e.exception?.values&&e.exception.values[0]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initAndBind:()=>a,setCurrentClient:()=>s});var n=r(290),i=r(310),o=r(303);function a(e,t){!0===t.debug&&(i.DEBUG_BUILD?o.logger.enable():(0,o.consoleSandbox)((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));(0,n.getCurrentScope)().update(t.initialScope);const r=new e(t);return s(r),r.init(),r}function s(e){(0,n.getCurrentScope)().setClient(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getReplay:()=>jn,replayIntegration:()=>Nn});var n=r(294),i=r(316),o=r(299),a=r(300),s=r(305),c=r(470),u=r(303),l=r(1333),p=r(289),f=r(306),h=r(290),d=r(323),m=r(319),y=r(1376),g=r(304),v=r(1314),b=r(311),S=r(314),_=r(1350),E=r(320),w=r(1378),x=r(327),O=r(1346),T=r(1356),P=r(1377),C=r(1329),A=r(1327),k=r(1332);const R=n.GLOBAL_OBJ,I="sentryReplaySession",D="Unable to send Replay",M=15e4,N=5e3,F=2e7,L=36e5;var j=Object.defineProperty,B=(e,t,r)=>((e,t,r)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),U=(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",e))(U||{});function V(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function z(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function H(e){try{const r=e.rules||e.cssRules;return r?((t=Array.from(r,q).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function q(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=H(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)){let t=e.cssText;const r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;r<e.style.length;r++){const n=e.style,i=n[r],o=n.getPropertyPriority(i);t+=`${i}:${n.getPropertyValue(i)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(t)),r||n)return t}return t||e.cssText}class G{constructor(){B(this,"idNodeMap",new Map),B(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-1}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 W({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 K({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function $(e){return e.toLowerCase()}function Y(e){return e.toUpperCase()}const X="__rrweb_original__";function Q(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?$(t):null}function J(e,t,r){return"INPUT"!==t||"radio"!==r&&"checkbox"!==r?e.value:e.getAttribute("value")||""}function Z(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}const n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}const ee={};function te(e){const t=ee[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 ee[e]=n.bind(window)}function re(...e){return te("setTimeout")(...e)}function ne(...e){return te("clearTimeout")(...e)}function ie(e){try{return e.contentDocument}catch(e){}}let oe=1;const ae=new RegExp("[^a-z0-9-_:]");function se(){return oe++}let ce,ue;const le=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,pe=/^(?:[a-z+]+:)?\/\//i,fe=/^www\..*/i,he=/^(data:)([^,]*),(.*)/i;function de(e,t){return(e||"").replace(le,((e,r,n,i,o,a)=>{const s=n||o||a,c=r||i||"";if(!s)return e;if(pe.test(s)||fe.test(s))return`url(${c}${s}${c})`;if(he.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 me=/^[^ \t\n\r\u000c]+/,ye=/^[, \t\n\r\u000c]+/;const ge=new WeakMap;function ve(e,t){return t&&""!==t.trim()?Se(e,t):t}function be(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Se(e,t){let r=ge.get(e);if(r||(r=e.createElement("a"),ge.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function _e(e,t,r,n,i,o){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?ve(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(ye),!(r>=t.length);){let o=n(me);if(","===o.slice(-1))o=ve(e,o.substring(0,o.length-1)),i.push(o);else{let n="";o=ve(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?de(n,Se(e)):"object"===t&&"data"===r?ve(e,n):"function"==typeof o?o(r,n,i):n:ve(e,n):n}function Ee(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function we(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}function xe(e,t,r=1/0,n=0){return e?e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:xe(e.parentNode,t,r,n+1):-1}function Oe(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{return!1}}}function Te(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=xe(a,Oe(n,i)),c<0)return!0;s=xe(a,Oe(t,r),c>=0?c:1/0)}else{if(s=xe(a,Oe(t,r)),s<0)return!1;c=xe(a,Oe(n,i),s>=0?s:1/0)}return s>=0?!(c>=0)||s<=c:!(c>=0)&&!!o}catch(e){}return!!o}function Pe(e,t){const{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:d={},maskTextFn:m,maskInputFn:y,dataURLOptions:g={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:S,newlyAddedElement:_=!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:U.Document,childNodes:[],compatMode:e.compatMode}:{type:U.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:U.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:p,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:d=!1,rootId:m,maskTextClass:y,unmaskTextClass:g,maskTextSelector:v,unmaskTextSelector:b}=t,S=we(e,n,i,o),_=function(e){if(e instanceof HTMLFormElement)return"form";const t=$(e.tagName);return ae.test(t)?"div":t}(e);let E={};const w=e.attributes.length;for(let t=0;t<w;t++){const n=e.attributes[t];n.name&&!Ee(_,n.name,n.value)&&(E[n.name]=_e(r,_,$(n.name),n.value,e,c))}if("link"===_&&a){const t=Array.from(r.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=H(t)),n&&(E.rel=null,E.href=null,E.crossorigin=null,E._cssText=de(n,t.href))}if("style"===_&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=H(e.sheet);t&&(E._cssText=de(t,Se(r)))}if("input"===_||"textarea"===_||"select"===_||"option"===_){const t=e,r=Q(t),n=J(t,Y(_),r),i=t.checked;if("submit"!==r&&"button"!==r&&n){const e=Te(t,y,v,g,b,W({type:r,tagName:Y(_),maskInputOptions:s}));E.value=K({isMasked:e,element:t,value:n,maskInputFn:u})}i&&(E.checked=i)}"option"===_&&(e.selected&&!s.select?E.selected=!0:delete E.selected);if("canvas"===_&&f)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=X in i?i[X]: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)||(E.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(l.type,l.quality)&&(E.rr_dataURL=t)}if("img"===_&&p){ce||(ce=r.createElement("canvas"),ue=ce.getContext("2d"));const t=e,n=t.currentSrc||t.getAttribute("src")||"<unknown-src>",i=t.crossOrigin,o=()=>{t.removeEventListener("load",o);try{ce.width=t.naturalWidth,ce.height=t.naturalHeight,ue.drawImage(t,0,0),E.rr_dataURL=ce.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o));console.warn(`Cannot inline img src=${n}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(i?E.crossOrigin=i:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}"audio"!==_&&"video"!==_||(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime);d||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop));if(S){const{width:t,height:r}=e.getBoundingClientRect();E={class:E.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==_||h(E.src)||(S||ie(e)||(E.rr_src=E.src),delete E.src);let x;try{customElements.get(_)&&(x=!0)}catch(e){}return{type:U.Element,tagName:_,attributes:E,childNodes:[],isSVG:be(e)||void 0,needBlock:S,rootId:m,isCustom:x}}(e,{doc:r,blockClass:i,blockSelector:o,unblockSelector:a,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:d,maskInputFn:y,dataURLOptions:g,inlineImages:v,recordCanvas:b,keepIframeSrcFn:S,newlyAddedElement:_,rootId:E,maskAllText:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:f});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,p=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const h="STYLE"===p||void 0,d="SCRIPT"===p||void 0,m="TEXTAREA"===p||void 0;if(h&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=H(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=de(f,Se(t.doc))}d&&(f="SCRIPT_PLACEHOLDER");const y=Te(e,n,o,i,a,r);h||d||m||!f||!y||(f=s?s(f,e.parentElement):f.replace(/[\S]/g,"*"));m&&f&&(c.textarea||y)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*"));if("OPTION"===p&&f){f=K({isMasked:Te(e,n,o,i,a,W({type:null,tagName:p,maskInputOptions:c})),element:e,value:f,maskInputFn:u})}return{type:U.Text,textContent:f||"",isStyle:h,rootId:l}}(e,{doc:r,maskAllText:s,maskTextClass:u,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:d,maskInputFn:y,rootId:E});case e.CDATA_SECTION_NODE:return{type:U.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:U.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}function Ce(e){return null==e?"":e.toLowerCase()}function Ae(e,t){const{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:p,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:d={},maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b={},inlineImages:S=!1,recordCanvas:_=!1,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:x=5e3,onStylesheetLoad:O,stylesheetLoadTimeout:T=5e3,keepIframeSrcFn:P=()=>!1,newlyAddedElement:C=!1}=t;let{preserveWhiteSpace:A=!0}=t;const k=Pe(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:d,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,dataURLOptions:b,inlineImages:S,recordCanvas:_,keepIframeSrcFn:P,newlyAddedElement:C});if(!k)return console.warn(e,"not serialized"),null;let R;R=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===U.Comment)return!0;if(e.type===U.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Z(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Ce(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Ce(e.attributes.name)||"icon"===Ce(e.attributes.rel)||"apple-touch-icon"===Ce(e.attributes.rel)||"shortcut icon"===Ce(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Ce(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ce(e.attributes.property).match(/^(og|twitter|fb):/)||Ce(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Ce(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Ce(e.attributes.name)||"googlebot"===Ce(e.attributes.name)||"bingbot"===Ce(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Ce(e.attributes.name)||"generator"===Ce(e.attributes.name)||"framework"===Ce(e.attributes.name)||"publisher"===Ce(e.attributes.name)||"progid"===Ce(e.attributes.name)||Ce(e.attributes.property).match(/^article:/)||Ce(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Ce(e.attributes.name)||"yandex-verification"===Ce(e.attributes.name)||"csrf-token"===Ce(e.attributes.name)||"p:domain_verify"===Ce(e.attributes.name)||"verify-v1"===Ce(e.attributes.name)||"verification"===Ce(e.attributes.name)||"shopify-checkout-api-token"===Ce(e.attributes.name)))return!0}}return!1}(k,v)&&(A||k.type!==U.Text||k.isStyle||k.textContent.replace(/^\s+|\s+$/gm,"").length)?se():-2;const I=Object.assign(k,{id:R});if(n.add(e,I),-2===R)return null;E&&E(e);let D=!f;if(I.type===U.Element){D=D&&!I.needBlock,delete I.needBlock;const t=e.shadowRoot;t&&z(t)&&(I.isShadowHost=!0)}if((I.type===U.Document||I.type===U.Element)&&D){v.headWhitespace&&I.type===U.Element&&"head"===I.tagName&&(A=!1);const t={doc:r,mirror:n,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:p,skipChild:f,inlineStylesheet:h,maskInputOptions:d,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:S,recordCanvas:_,preserveWhiteSpace:A,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:O,stylesheetLoadTimeout:T,keepIframeSrcFn:P};for(const r of Array.from(e.childNodes)){const e=Ae(r,t);e&&I.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=Ae(r,t);n&&(z(e.shadowRoot)&&(n.isShadow=!0),I.childNodes.push(n))}}return e.parentNode&&V(e.parentNode)&&z(e.parentNode)&&(I.isShadow=!0),I.type!==U.Element||"iframe"!==I.tagName||we(e,i,o,a)||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=re((()=>{o||(t(),o=!0)}),r);return void e.addEventListener("load",(()=>{ne(n),o=!0,t()}))}const a="about:blank";if(n.location.href!==a||e.src===a||""===e.src)return re(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=ie(e);if(t&&w){const r=Ae(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:d,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:S,recordCanvas:_,preserveWhiteSpace:A,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:O,stylesheetLoadTimeout:T,keepIframeSrcFn:P});r&&w(e,r)}}),x),I.type===U.Element&&"link"===I.tagName&&"string"==typeof I.attributes.rel&&("stylesheet"===I.attributes.rel||"preload"===I.attributes.rel&&"string"==typeof I.attributes.href&&"css"===Z(I.attributes.href))&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){return}if(n)return;const o=re((()=>{i||(t(),i=!0)}),r);e.addEventListener("load",(()=>{ne(o),i=!0,t()}))}(e,(()=>{if(O){const t=Ae(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:d,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:S,recordCanvas:_,preserveWhiteSpace:A,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:O,stylesheetLoadTimeout:T,keepIframeSrcFn:P});t&&O(e,t)}}),T),I}function ke(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const Re="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 Ie={map:{},getId:()=>(console.error(Re),-1),getNode:()=>(console.error(Re),null),removeNodeFromMap(){console.error(Re)},has:()=>(console.error(Re),!1),reset(){console.error(Re)}};function De(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){Ze("clearTimeout")(...e)}(n),n=null),i=a,e.apply(c,o)):n||!1===r.trailing||(n=et((()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(c,o)}),s))}}function Me(e,t,r,n,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set(e){et((()=>{r.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>Me(e,t,o||{},!0)}function Ne(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{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Ie=new Proxy(Ie,{get:(e,t,r)=>("map"===t&&console.error(Re),Reflect.get(e,t,r))}));let Fe=Date.now;function Le(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function je(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Be(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ue(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function Ve(e,t,r,n,i){if(!e)return!1;const o=Ue(e);if(!o)return!1;const a=Oe(t,r);if(!i){const e=n&&o.matches(n);return a(o)&&!e}const s=xe(o,a);let c=-1;return!(s<0)&&(n&&(c=xe(o,Oe(null,n))),s>-1&&c<0||s<c)}function ze(e,t){return-2===t.getId(e)}function He(e,t){if(V(e))return!1;const r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||He(e.parentNode,t))}function qe(e){return Boolean(e.changedTouches)}function Ge(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function We(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Ke(e){return Boolean(e?.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(Fe=()=>(new Date).getTime());class $e{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return 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 Ye(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Xe(e){const t=e.ownerDocument;if(!t)return!1;const r=function(e){let t,r=e;for(;t=Ye(r);)r=t;return r}(e);return t.contains(r)}function Qe(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Xe(e))}const Je={};function Ze(e){const t=Je[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 Je[e]=n.bind(window)}function et(...e){return Ze("setTimeout")(...e)}var tt=(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))(tt||{}),rt=(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))(rt||{}),nt=(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))(nt||{}),it=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(it||{}),ot=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(ot||{});function at(e){try{return e.contentDocument}catch(e){}}function st(e){return"__ln"in e}class ct{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=t?.next||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&st(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&&st(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 ut=(e,t)=>`${e}@${t}`;class lt{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 ct,n=e=>{let t=e,r=-2;for(;-2===r;)t=t&&t.nextSibling,r=t&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!Qe(i))return;const o=V(i.parentNode)?this.mirror.getId(Ye(i)):this.mirror.getId(i.parentNode),a=n(i);if(-1===o||-1===a)return r.addNode(i);const s=Ae(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=>{Ge(e,this.mirror)&&!Ve(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),We(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Ke(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{Ve(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),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)ft(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e);for(const e of this.addedSet)ht(this.droppedSet,e)||ft(this.removes,e,this.mirror)?ht(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(!ze(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;Ve(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Te(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Ue(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=Q(t),i=t.tagName;n=J(t,i,r);const o=W({maskInputOptions:this.maskInputOptions,tagName:i,type:r});n=K({isMasked:Te(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:n,maskInputFn:this.maskInputFn})}if(Ve(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(at(t))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"),!Ee(t.tagName,r)&&(i.attributes[r]=_e(this.doc,$(t.tagName),$(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(Ve(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=V(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Ve(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ze(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(pt(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||He(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[ut(r,n)]?pt(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!(!V(e.target)||!z(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(ze(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[ut(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Ve(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Ke(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 pt(e,t){e.delete(t),t.childNodes.forEach((t=>pt(e,t)))}function ft(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){const t=r.getId(n);if(e.some((e=>e.id===t)))return!0;n=n.parentNode}return!1}(e,t,r)}function ht(e,t){return 0!==e.size&&dt(e,t)}function dt(e,t){const{parentNode:r}=t;return!!r&&(!!e.has(r)||dt(e,r))}let mt;const yt=e=>{if(!mt)return e;return(...t)=>{try{return e(...t)}catch(e){if(mt&&!0===mt(e))return()=>{};throw e}}},gt=[];function vt(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{}return e&&e.target}function bt(e,t){const r=new lt;gt.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver;const i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(n=window[i]);const o=new n(yt((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 St({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(nt).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((a=>{let s=$(a);const l=(t=>a=>{const s=vt(a);if(Ve(s,n,i,o,!0))return;let c=null,l=t;if("pointerType"in a){switch(a.pointerType){case"mouse":c=it.Mouse;break;case"touch":c=it.Touch;break;case"pen":c=it.Pen}c===it.Touch?nt[t]===nt.MouseDown?l="TouchStart":nt[t]===nt.MouseUp&&(l="TouchEnd"):it.Pen}else qe(a)&&(c=it.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===it.Touch||l.startsWith("Mouse")&&c===it.Mouse)&&(c=null)):nt[t]===nt.Click&&(c=u,u=null);const p=qe(a)?a.changedTouches[0]:a;if(!p)return;const f=r.getId(s),{clientX:h,clientY:d}=p;yt(e)({type:nt[l],id:f,x:h,y:d,...null!==c&&{pointerType:c}})})(a);if(window.PointerEvent)switch(nt[a]){case nt.MouseDown:case nt.MouseUp:s=s.replace("mouse","pointer");break;case nt.TouchStart:case nt.TouchEnd:return}c.push(ke(s,l,t))})),yt((()=>{c.forEach((e=>e()))}))}function _t({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:a}){return ke("scroll",yt(De(yt((a=>{const s=vt(a);if(!s||Ve(s,n,i,o,!0))return;const c=r.getId(s);if(s===t&&t.defaultView){const r=Le(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 Et=["INPUT","TEXTAREA","SELECT"],wt=new WeakMap;function xt({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,ignoreClass:a,ignoreSelector:s,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:p,maskTextClass:f,unmaskTextClass:h,maskTextSelector:d,unmaskTextSelector:m}){function y(e){let r=vt(e);const l=e.isTrusted,y=r&&Y(r.tagName);if("OPTION"===y&&(r=r.parentElement),!r||!y||Et.indexOf(y)<0||Ve(r,n,i,o,!0))return;const v=r;if(v.classList.contains(a)||s&&v.matches(s))return;const b=Q(r);let S=J(v,y,b),_=!1;const E=W({maskInputOptions:c,tagName:y,type:b}),w=Te(r,f,d,h,m,E);"radio"!==b&&"checkbox"!==b||(_=r.checked),S=K({isMasked:w,element:r,value:S,maskInputFn:u}),g(r,p?{text:S,isChecked:_,userTriggered:l}:{text:S,isChecked:_});const x=r.name;"radio"===b&&x&&_&&t.querySelectorAll(`input[type="radio"][name="${x}"]`).forEach((e=>{if(e!==r){const t=K({isMasked:w,element:e,value:J(e,y,b),maskInputFn:u});g(e,p?{text:t,isChecked:!_,userTriggered:!1}:{text:t,isChecked:!_})}}))}function g(t,n){const i=wt.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){wt.set(t,n);const i=r.getId(t);yt(e)({...n,id:i})}}const v=("last"===l.input?["change"]:["input","change"]).map((e=>ke(e,yt(y),t))),b=t.defaultView;if(!b)return()=>{v.forEach((e=>e()))};const S=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),_=[[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 S&&S.set&&v.push(..._.map((e=>Me(e[0],e[1],{set(){yt(y)({target:this,isTrusted:!1})}},!1,b)))),yt((()=>{v.forEach((e=>e()))}))}function Ot(e){return function(e,t){if(At("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||At("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||At("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||At("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 Tt(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function Pt({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);const i="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,o=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&i&&o?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return o.get?.call(this)},set(e){const r=o.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),yt((()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function Ct(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};let n;e.recordDOM&&(n=bt(e,e.doc));const 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=De(yt((t=>{const r=Date.now()-a;e(s.map((e=>(e.timeOffset-=r,e))),t),s=[],a=null})),o),u=yt(De(yt((e=>{const t=vt(e),{clientX:r,clientY:i}=qe(e)?e.changedTouches[0]:e;a||(a=Fe()),s.push({x:r,y:i,id:n.getId(t),timeOffset:Fe()-a}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?rt.Drag:e instanceof MouseEvent?rt.MouseMove:rt.TouchMove)})),i,{trailing:!1})),l=[ke("mousemove",u,r),ke("touchmove",u,r),ke("drag",u,r)];return yt((()=>{l.forEach((e=>e()))}))}(e),o=St(e),a=_t(e),s=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return ke("resize",yt(De(yt((()=>{const t=je(),i=Be();r===t&&n===i||(e({width:Number(i),height:Number(t)}),r=t,n=i)})),200)),t)}(e,{win:r}),c=xt(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:o,doc:a}){const s=yt((a=>De(yt((o=>{const s=vt(o);if(!s||Ve(s,t,r,n,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:p}=s;e({type:a,id:i.getId(s),currentTime:c,volume:u,muted:l,playbackRate:p})})),o.media||500))),c=[ke("play",s(ot.Play),a),ke("pause",s(ot.Pause),a),ke("seeked",s(ot.Seeked),a),ke("volumechange",s(ot.VolumeChange),a),ke("ratechange",s(ot.RateChange),a)];return yt((()=>{c.forEach((e=>e()))}))}(e);let l=()=>{},p=()=>{},f=()=>{},h=()=>{};e.recordDOM&&(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:yt(((n,i,o)=>{const[a,s]=o,{id:c,styleId:u}=Tt(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:yt(((n,i,o)=>{const[a]=o,{id:s,styleId:c}=Tt(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:yt(((n,i,o)=>{const[a]=o,{id:s,styleId:c}=Tt(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:yt(((n,i,o)=>{const[a]=o,{id:s,styleId:c}=Tt(i,t,r.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replaceSync:a}),n.apply(i,o)}))}));const c={};kt("CSSGroupingRule")?c.CSSGroupingRule=n.CSSGroupingRule:(kt("CSSMediaRule")&&(c.CSSMediaRule=n.CSSMediaRule),kt("CSSConditionRule")&&(c.CSSConditionRule=n.CSSConditionRule),kt("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:yt(((n,i,o)=>{const[a,s]=o,{id:c,styleId:u}=Tt(i.parentStyleSheet,t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:a,index:[...Ot(i),s||0]}]}),n.apply(i,o)}))}),i.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:yt(((n,i,o)=>{const[a]=o,{id:s,styleId:c}=Tt(i.parentStyleSheet,t,r.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:[...Ot(i),a]}]}),n.apply(i,o)}))})})),yt((()=>{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}),p=Pt(e,e.doc),f=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:yt(((i,a,s)=>{const[c,u,l]=s;if(r.has(c))return o.apply(a,[c,u,l]);const{id:p,styleId:f}=Tt(a.parentRule?.parentStyleSheet,t,n.styleMirror);return(p&&-1!==p||f&&-1!==f)&&e({id:p,styleId:f,set:{property:c,value:u,priority:l},index:Ot(a.parentRule)}),i.apply(a,s)}))});const a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:yt(((i,o,s)=>{const[c]=s;if(r.has(c))return a.apply(o,[c]);const{id:u,styleId:l}=Tt(o.parentRule?.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,remove:{property:c},index:Ot(o.parentRule)}),i.apply(o,s)}))}),yt((()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=a}))}(e,{win:r}),e.collectFonts&&(h=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=Ne(t.fonts,"add",(function(t){return function(r){return et(yt((()=>{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),yt((()=>{n.forEach((e=>e()))}))}(e)));const d=function(e){const{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,selectionCb:a}=e;let s=!0;const c=yt((()=>{const e=t.getSelection();if(!e||s&&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:p}=a;Ve(s,n,i,o,!0)||Ve(l,n,i,o,!0)||c.push({start:r.getId(s),startOffset:u,end:r.getId(l),endOffset:p})}a({ranges:c})}));return c(),ke("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const r=e.defaultView;return r&&r.customElements?Ne(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),y=[];for(const t of e.plugins)y.push(t.observer(t.callback,r,t.options));return yt((()=>{gt.forEach((e=>e.reset())),n?.disconnect(),i(),o(),a(),s(),c(),u(),l(),p(),f(),h(),d(),m(),y.forEach((e=>e()))}))}function At(e){return void 0!==window[e]}function kt(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Rt{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}}class It{constructor(){this.crossOriginIframeMirror=new Rt(se),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Dt{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Rt(se),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Rt(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}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);const r=at(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}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 tt.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:tt.IncrementalSnapshot,data:{source:rt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case tt.Meta:case tt.Load:case tt.DomContentLoaded:return!1;case tt.Plugin:return t;case tt.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case tt.IncrementalSnapshot:switch(t.data.source){case rt.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 rt.Drag:case rt.TouchMove:case rt.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case rt.ViewportResize:return!1;case rt.MediaInteraction:case rt.MouseInteraction:case rt.Scroll:case rt.CanvasMutation:case rt.Input:return this.replaceIds(t.data,e,["id"]),t;case rt.StyleSheetRule:case rt.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case rt.Font:return t;case rt.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case rt.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach((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===U.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Mt{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Nt{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(!z(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const r=bt({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>r.disconnect())),this.restoreHandlers.push(_t({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),et((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Pt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=at(e),r=function(e){try{return e.contentWindow}catch(e){}}(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Ne(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,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var Ft="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Lt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),jt=0;jt<64;jt++)Lt[Ft.charCodeAt(jt)]=jt;class Bt{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Ut{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new $e,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:q(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 Vt{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,function(...e){Ze("requestAnimationFrame")(...e)}((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let zt,Ht;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const qt=new G;function Gt(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:a=null,ignoreClass:s="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:p=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:d=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,maxCanvasSize:_=null,packFn:E,sampling:w={},dataURLOptions:x={},mousemoveWait:O,recordDOM:T=!0,recordCanvas:P=!1,recordCrossOriginIframes:C=!1,recordAfter:A=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:k=!1,collectFonts:R=!1,inlineImages:I=!1,plugins:D,keepIframeSrcFn:M=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:F,onMutation:L,getCanvasManager:j}=e;mt=F;const B=!C||window.parent===window;let U=!1;if(!B)try{window.parent.document&&(U=!1)}catch(e){U=!0}if(B&&!t)throw new Error("emit function is required");if(!B&&!U)return()=>{};void 0!==O&&void 0===w.mousemove&&(w.mousemove=O),qt.reset();const V=!0===m?{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===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g}:g||{};let H;!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 q=0;const W=e=>{for(const t of D||[])t.eventProcessor&&(e=t.eventProcessor(e));return E&&!U&&(e=E(e)),e};zt=(e,i)=>{const o=e;if(o.timestamp=Fe(),!gt[0]?.isFrozen()||o.type===tt.FullSnapshot||o.type===tt.IncrementalSnapshot&&o.data.source===rt.Mutation||gt.forEach((e=>e.unfreeze())),B)t?.(W(o),i);else if(U){const e={type:"rrweb",event:W(o),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,"*")}if(o.type===tt.FullSnapshot)H=o,q=0;else if(o.type===tt.IncrementalSnapshot){if(o.data.source===rt.Mutation&&o.data.isAttachIframe)return;q++;const e=n&&q>=n,t=r&&H&&o.timestamp-H.timestamp>r;(e||t)&&te(!0)}};const K=e=>{zt({type:tt.IncrementalSnapshot,data:{source:rt.Mutation,...e}})},$=e=>zt({type:tt.IncrementalSnapshot,data:{source:rt.Scroll,...e}}),Y=e=>zt({type:tt.IncrementalSnapshot,data:{source:rt.CanvasMutation,...e}}),X=new Ut({mutationCb:K,adoptedStyleSheetCb:e=>zt({type:tt.IncrementalSnapshot,data:{source:rt.AdoptedStyleSheet,...e}})}),Q="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new It:new Dt({mirror:qt,mutationCb:K,stylesheetManager:X,recordCrossOriginIframes:C,wrappedEmit:zt});for(const e of D||[])e.getMirror&&e.getMirror({nodeMirror:qt,crossOriginIframeMirror:Q.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q.crossOriginIframeStyleMirror});const J=new Vt,Z=function(e,t){try{return e?e(t):new Bt}catch{return console.warn("Unable to initialize CanvasManager"),new Bt}}(j,{mirror:qt,win:window,mutationCb:e=>zt({type:tt.IncrementalSnapshot,data:{source:rt.CanvasMutation,...e}}),recordCanvas:P,blockClass:i,blockSelector:o,unblockSelector:a,maxCanvasSize:_,sampling:w.canvas,dataURLOptions:x,errorHandler:F}),ee="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Mt:new Nt({mutationCb:K,scrollCb:$,bypassOptions:{onMutation:L,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:u,maskTextClass:l,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:d,maskInputOptions:V,dataURLOptions:x,maskAttributeFn:v,maskTextFn:S,maskInputFn:b,recordCanvas:P,inlineImages:I,sampling:w,slimDOMOptions:z,iframeManager:Q,stylesheetManager:X,canvasManager:Z,keepIframeSrcFn:M,processedNodeManager:J},mirror:qt}),te=(e=!1)=>{if(!T)return;zt({type:tt.Meta,data:{href:window.location.href,width:Be(),height:je()}},e),X.reset(),ee.init(),gt.forEach((e=>e.lock()));const t=function(e,t){const{mirror:r=new G,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:p=!0,inlineImages:f=!1,recordCanvas:h=!1,maskAllInputs:d=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:S,onSerialize:_,onIframeLoad:E,iframeLoadTimeout:w,onStylesheetLoad:x,stylesheetLoadTimeout:O,keepIframeSrcFn:T=()=>!1}=t;return Ae(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:s,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:p,maskInputOptions:!0===d?{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===d?{}:d,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,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:f,recordCanvas:h,preserveWhiteSpace:S,onSerialize:_,onIframeLoad:E,iframeLoadTimeout:w,onStylesheetLoad:x,stylesheetLoadTimeout:O,keepIframeSrcFn:T,newlyAddedElement:!1})}(document,{mirror:qt,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:u,maskTextClass:l,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:d,maskAllInputs:V,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,slimDOM:z,dataURLOptions:x,recordCanvas:P,inlineImages:I,onSerialize:e=>{Ge(e,qt)&&Q.addIframe(e),We(e,qt)&&X.trackLinkElement(e),Ke(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Q.attachIframe(e,t),e.contentWindow&&Z.addWindow(e.contentWindow),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{X.attachLinkElement(e,t)},keepIframeSrcFn:M});if(!t)return console.warn("Failed to snapshot the document");zt({type:tt.FullSnapshot,data:{node:t,initialOffset:Le(window)}}),gt.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&X.adoptStyleSheets(document.adoptedStyleSheets,qt.getId(document))};Ht=te;try{const e=[],t=e=>yt(Ct)({onMutation:L,mutationCb:K,mousemoveCb:(e,t)=>zt({type:tt.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>zt({type:tt.IncrementalSnapshot,data:{source:rt.MouseInteraction,...e}}),scrollCb:$,viewportResizeCb:e=>zt({type:tt.IncrementalSnapshot,data:{source:rt.ViewportResize,...e}}),inputCb:e=>zt({type:tt.IncrementalSnapshot,data:{source:rt.Input,...e}}),mediaInteractionCb:e=>zt({type:tt.IncrementalSnapshot,data:{source:rt.MediaInteraction,...e}}),styleSheetRuleCb:e=>zt({type:tt.IncrementalSnapshot,data:{source:rt.StyleSheetRule,...e}}),styleDeclarationCb:e=>zt({type:tt.IncrementalSnapshot,data:{source:rt.StyleDeclaration,...e}}),canvasMutationCb:Y,fontCb:e=>zt({type:tt.IncrementalSnapshot,data:{source:rt.Font,...e}}),selectionCb:e=>{zt({type:tt.IncrementalSnapshot,data:{source:rt.Selection,...e}})},customElementCb:e=>{zt({type:tt.IncrementalSnapshot,data:{source:rt.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:V,inlineStylesheet:d,sampling:w,recordDOM:T,recordCanvas:P,inlineImages:I,userTriggeredOnInput:k,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,keepIframeSrcFn:M,blockSelector:o,unblockSelector:a,slimDOMOptions:z,dataURLOptions:x,mirror:qt,iframeManager:Q,stylesheetManager:X,shadowDomManager:ee,processedNodeManager:J,canvasManager:Z,ignoreCSSAttributes:N,plugins:D?.filter((e=>e.observer))?.map((e=>({observer:e.observer,options:e.options,callback:t=>zt({type:tt.Plugin,data:{plugin:e.name,payload:t}})})))||[]},{});Q.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(ke("DOMContentLoaded",(()=>{zt({type:tt.DomContentLoaded,data:{}}),"DOMContentLoaded"===A&&r()}))),e.push(ke("load",(()=>{zt({type:tt.Load,data:{}}),"load"===A&&r()}),window))),()=>{e.forEach((e=>e())),J.destroy(),Ht=void 0,mt=void 0}}catch(e){console.warn(e)}}var Wt,Kt;Gt.mirror=qt,Gt.takeFullSnapshot=function(e){if(!Ht)throw new Error("please take full snapshot after start recording");Ht(e)},(Kt=Wt||(Wt={}))[Kt.NotStarted=0]="NotStarted",Kt[Kt.Running=1]="Running",Kt[Kt.Stopped=2]="Stopped";function $t(e){return e>9999999999?e:1e3*e}function Yt(e){return e>9999999999?e/1e3:e}function Xt(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:tt.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,i.normalize)(t,10,1e3)}}),"console"===t.category))))}function Qt(e){return e.closest("button,a")||e}function Jt(e){const t=Zt(e);return t&&t instanceof Element?Qt(t):t}function Zt(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let er;function tr(e){return er||(er=[],(0,o.fill)(R,"open",(function(e){return function(...t){if(er)try{er.forEach((e=>e()))}catch(e){}return e.apply(R,t)}}))),er.push(e),()=>{const t=er?er.indexOf(e):-1;t>-1&&er.splice(t,1)}}const rr=new Set([rt.Mutation,rt.StyleSheetRule,rt.StyleDeclaration,rt.AdoptedStyleSheet,rt.CanvasMutation,rt.Selection,rt.MediaInteraction]);class nr{constructor(e,t,r=Xt){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const e=tr((()=>{this._lastMutation=or()}));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(!ir.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:Yt(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=Yt(e)}registerScroll(e=Date.now()){this._lastScroll=Yt(e)}registerClick(e){const t=Qt(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=or();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._scrollTimeout,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:R.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:R.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,O.setTimeout)((()=>this._checkClicks()),1e3)}}const ir=["A","BUTTON","INPUT"];function or(){return Date.now()/1e3}function ar(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:r}=t.data;if(rr.has(r)&&e.registerMutation(t.timestamp),r===rt.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===rt.MouseInteraction}(t)){const{type:r,id:n}=t.data,i=Gt.mirror.getNode(n);i instanceof HTMLElement&&r===nt.Click&&e.registerClick(i)}}catch{}}function sr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var cr=(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",e))(cr||{});const ur=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function lr(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const r in e)if(ur.has(r)){let n=r;"data-testid"!==r&&"data-test-id"!==r||(n="testId"),t[n]=e[r]}return t}const pr=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?Jt(e.event):Zt(e.event),r=(0,a.htmlTreeAsString)(n,{maxStringLength:200})||"<unknown>"}catch(e){r="<unknown>"}return{target:n,message:r}}(e);return sr({category:`ui.${e.name}`,...fr(t,r)})}(t);if(!r)return;const n="click"===t.name,i=n?t.event:void 0;var o,s,c;!(n&&e.clickDetector&&i&&i.target)||i.altKey||i.metaKey||i.ctrlKey||i.shiftKey||(o=e.clickDetector,s=r,c=Jt(t.event),o.handleClick(s,c)),Xt(e,r)};function fr(e,t){const r=Gt.mirror.getId(e),n=r&&Gt.mirror.getNode(r),i=n&&Gt.mirror.getMeta(n),o=i&&function(e){return e.type===cr.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===cr.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:lr(o.attributes)}}:{}}}function hr(e,t){if(!e.isEnabled())return;e.updateUserActivity();const r=function(e){const{metaKey:t,shiftKey:r,ctrlKey:n,altKey:i,key:o,target:s}=e;if(!s||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(s)||!o)return null;const c=t||n||i,u=1===o.length;if(!c&&u)return null;const l=(0,a.htmlTreeAsString)(s,{maxStringLength:200})||"<unknown>",p=fr(s,l);return sr({category:"ui.keyDown",message:l,data:{...p.data,metaKey:t,shiftKey:r,ctrlKey:n,altKey:i,key:o}})}(t);r&&Xt(e,r)}const dr={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:gr(o),end:gr(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=gr(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:p,redirectCount:f,startTime:h,transferSize:d,type:m}=e;if(0===i)return null;return{type:`${t}.${m}`,start:gr(h),end:gr(o),name:r,data:{size:d,decodedBodySize:n,encodedBodySize:a,duration:i,domInteractive:u,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:p,domComplete:o,redirectCount:f}}}};function mr(e,t){return({metric:r})=>{t.replayPerformanceEntries.push(e(r))}}function yr(e){const t=dr[e.entryType];return t?t(e):null}function gr(e){return(((0,s.browserPerformanceTimeOrigin)()||R.performance.timeOrigin)+e)/1e3}function vr(e){const t=e.entries[e.entries.length-1];return wr(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function br(e){return void 0!==e.sources}function Sr(e){const t=[],r=[];for(const n of e.entries)if(br(n)){const e=[];for(const t of n.sources)if(t.node){r.push(t.node);const n=Gt.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return wr(e,"cumulative-layout-shift",r,t)}function _r(e){const t=e.entries[e.entries.length-1];return wr(e,"first-input-delay",t?.target?[t.target]:void 0)}function Er(e){const t=e.entries[e.entries.length-1];return wr(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function wr(e,t,r,n){const i=e.value,o=e.rating,a=gr(i);return{type:"web-vital",name:t,start:a,end:a,data:{value:i,size:i,rating:o,nodeIds:r?r.map((e=>Gt.mirror.getId(e))):void 0,attributions:n}}}const xr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;const Or=["info","warn","error","log"],Tr="[Replay] ";function Pr(e,t="info"){(0,c.addBreadcrumb)({category:"console",data:{logger:"replay"},level:t,message:`${Tr}${e}`},{level:t})}const Cr=function(){let e=!1,t=!1;const r={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return xr?(Or.forEach((e=>{r[e]=(...r)=>{u.logger[e](Tr,...r),t&&Pr(r.join(""),(0,l.severityLevelFromString)(e))}})),r.exception=(n,...i)=>{i.length&&r.error&&r.error(...i),u.logger.error(Tr,n),e?(0,p.captureException)(n):t&&Pr(n,"error")},r.infoTick=(...e)=>{u.logger.info(Tr,...e),t&&setTimeout((()=>Pr(e[0])),0)}):Or.forEach((e=>{r[e]=()=>{}})),r}();class Ar extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class kr{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!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>F)throw new Ar;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?$t(e):null}}class Rr{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(){xr&&Cr.info("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 xr&&Cr.error("Error in compression worker: ",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 Ir{constructor(e){this._worker=new Rr(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=$t(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const r=JSON.stringify(e);return this._totalSize+=r.length,this._totalSize>F?Promise.reject(new Ar):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{xr&&Cr.exception(e,'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 Dr{constructor(e){this._fallback=new kr,this._compression=new Ir(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}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}set waitForCheckout(e){this._used.waitForCheckout=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(xr&&Cr.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){xr&&Cr.exception(e,"Failed to add events when switching buffers.")}}}function Mr({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(['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]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(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,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(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},_=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},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=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:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort((function(t,n){return p[n.s]-p[t.s]||t.f-n.f}));s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(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,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}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 s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),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=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+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(U,C,0),R=U;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[s[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=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(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;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=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;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}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];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}}},O=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[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=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),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(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[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-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=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&&j(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)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=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(O(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 s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),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(s),32768),this.s.z=n.length-s+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.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(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=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){G.prototype.flush.call(this)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),s=i.length;return q(i,n),j(i,s-8,r.d()),j(i,s-4,e),i}(P(t))}const R=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(const r of t)n+=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 H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[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});']);return URL.createObjectURL(e)}();return""}();if(!t)return;xr&&Cr.info("Using compression worker"+(e?` from ${e}`:""));const r=new Worker(t);return new Dr(r)}catch(e){xr&&Cr.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return xr&&Cr.info("Using simple buffer"),new kr}function Nr(){try{return"sessionStorage"in R&&!!R.sessionStorage}catch{return!1}}function Fr(e){!function(){if(!Nr())return;try{R.sessionStorage.removeItem(I)}catch{}}(),e.session=void 0}function Lr(e){return void 0!==e&&Math.random()<e}function jr(e){const t=Date.now();return{id:e.id||(0,f.uuid4)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Br(e){if(Nr())try{R.sessionStorage.setItem(I,JSON.stringify(e))}catch{}}function Ur({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){const i=function(e,t){return Lr(e)?"session":!!t&&"buffer"}(e,t),o=jr({sampled:i,previousSessionId:n});return r&&Br(o),o}function Vr(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function zr(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return Vr(e.started,t,n)||Vr(e.lastActivity,r,n)}function Hr(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!zr(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function qr({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){const i=n.stickySession&&function(){if(!Nr())return null;try{const e=R.sessionStorage.getItem(I);if(!e)return null;const t=JSON.parse(e);return xr&&Cr.infoTick("Loading existing session"),jr(t)}catch{return null}}();return i?Hr(i,{sessionIdleExpire:e,maxReplayDuration:t})?(xr&&Cr.infoTick("Session in sessionStorage is expired, creating new one..."),Ur(n,{previousSessionId:i.id})):i:(xr&&Cr.infoTick("Creating new session"),Ur(n,{previousSessionId:r}))}function Gr(e,t,r){return!!Kr(e,t)&&(Wr(e,t,r),!0)}async function Wr(e,t,r){const{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;const i="buffer"===e.recordingMode;try{r&&i&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);const o=function(e,t){try{if("function"==typeof t&&function(e){return e.type===tt.Custom}(e))return t(e)}catch(e){return xr&&Cr.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!o)return;return await n.addEvent(o)}catch(t){const r=t&&t instanceof Ar,o=r?"addEventSizeExceeded":"addEvent";if(r&&i)return n.clear(),n.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:o});const a=(0,h.getClient)();a&&a.recordDroppedEvent("internal_sdk_error","replay")}}function Kr(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const r=$t(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(xr&&Cr.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1))}function $r(e){return!e.type}function Yr(e){return"transaction"===e.type}function Xr(e){return"feedback"===e.type}function Qr(e){return(t,r)=>{if(!e.isEnabled()||!$r(t)&&!Yr(t))return;const n=r?.statusCode;!n||n<200||n>=300||(Yr(t)?function(e,t){const r=e.getContext();t.contexts?.trace?.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)}(e,t):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;(0,O.setTimeout)((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}(e,t))}}function Jr(e){return t=>{e.isEnabled()&&$r(t)&&function(e,t){const r=t.exception?.values?.[0]?.value;if("string"!=typeof r)return;if(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i)){Xt(e,sr({category:"replay.hydrate-error",data:{url:(0,a.getLocationHref)()}}))}}(e,t)}}function Zr(e){const t=(0,h.getClient)();t&&t.on("beforeAddBreadcrumb",(t=>function(e,t){if(!e.isEnabled()||!en(t))return;const r=function(e){if(!en(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){const t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return sr(e);let r=!1;const n=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>N?(r=!0,`${e.slice(0,N)}…`):e;if("object"==typeof e)try{const t=(0,i.normalize)(e,7);return JSON.stringify(t).length>N?(r=!0,`${JSON.stringify(t,null,2).slice(0,N)}…`):t}catch{}return e}));return sr({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return sr(e)}(t);r&&Xt(e,r)}(e,t)))}function en(e){return!!e.category}function tn(){const e=(0,h.getCurrentScope)().getPropagationContext().dsc;e&&delete e.replay_id;const t=(0,d.getActiveSpan)();if(t){delete(0,m.getDynamicSamplingContextFromSpan)(t).replay_id}}function rn(e){return Object.assign(((t,r)=>{if(!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!$r(t)&&!Yr(t)&&!Xr(t))return t;if(!e.checkAndHandleExpiredSession())return tn(),t;if(Xr(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:tt.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?.__rrweb__)}(t,r)&&!e.getOptions()._experiments.captureExceptions)return xr&&Cr.log("Ignoring error from rrweb internals",t),null;const n=function(e,t){return"buffer"===e.recordingMode&&t.message!==D&&!(!t.exception||t.type)&&Lr(e.getOptions().errorSampleRate)}(e,t);return(n||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t}),{id:"Replay"})}function nn(e,t){return t.map((({type:t,start:r,end:n,name:i,data:o})=>{const a=e.throttledAddEvent({type:tt.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 on(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((()=>(nn(e,[r]),!1))))}}function an(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!xr||!e.getOptions()._experiments.traceInternals)&&(0,y.isSentryRequestUrl)(t,(0,h.getClient)())}(e,t.name)||e.addUpdate((()=>(nn(e,[t]),!0))))}function sn(e){if(!e)return;const t=new TextEncoder;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=(0,P.serializeFormData)(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function cn(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function un(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 ln(e,t){if(!t)return null;const{startTimestamp:r,endTimestamp:n,url:i,method:a,statusCode:s,request:c,response:u}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:(0,o.dropUndefinedKeys)({method:a,statusCode:s,request:c,response:u})}}function pn(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function fn(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>M,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,M);return r?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=i,o?.length&&(n._meta={warnings:o}),n}function hn(e,t){return Object.entries(e).reduce(((r,[n,i])=>{const o=n.toLowerCase();return t.includes(o)&&e[n]&&(r[o]=i),r}),{})}function dn(e,t){const r=function(e,t=R.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(R.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,g.stringMatchesSomePattern)(r,t)}async function mn(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,p=dn(a,r.networkDetailAllowUrls)&&!dn(a,r.networkDetailDenyUrls),f=p?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){const i=r?function(e,t){if(1===e.length&&"string"!=typeof e[0])return gn(e[0],t);if(2===e.length)return gn(e[1],t);return{}}(r,t):{};if(!e)return fn(i,n,void 0);const o=(0,P.getFetchRequestArgBody)(r),[a,s]=(0,P.getBodyString)(o,Cr),c=fn(i,n,a);if(s)return un(c,s);return c}(r,t.input,u):pn(u),h=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,i){if(!e&&void 0!==i)return pn(i);const o=n?yn(n.headers,r):{};if(!n||!t&&void 0!==i)return fn(o,i,void 0);const[a,s]=await async function(e){const t=function(e){try{return e.clone()}catch(e){xr&&Cr.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,r)=>{const n=(0,O.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 e instanceof Error&&e.message.indexOf("Timeout")>-1?(xr&&Cr.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(xr&&Cr.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(n),c=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:i}){try{const o=e?.length&&void 0===r?sn(e):r;return n?fn(i,o,t?e:void 0):pn(o)}catch(e){return xr&&Cr.exception(e,"Failed to serialize response body"),fn(i,r,void 0)}}(a,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:o});if(s)return un(c,s);return c}(p,r,t.response,l);return{startTimestamp:i,endTimestamp:o,url:a,method:s,statusCode:c,request:f,response:h}}(e,t,r),i=ln("resource.fetch",n);an(r.replay,i)}catch(e){xr&&Cr.exception(e,"Failed to capture fetch breadcrumb")}}function yn(e,t){const r={};return t.forEach((t=>{e.get(t)&&(r[t]=e.get(t))})),r}function gn(e,t){if(!e)return{};const r=e.headers;return r?r instanceof Headers?yn(r,t):Array.isArray(r)?{}:hn(r,t):{}}async function vn(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:p,response_body_size:f}=e.data;if(!c)return null;if(!s||!dn(c,r.networkDetailAllowUrls)||dn(c,r.networkDetailDenyUrls)){return{startTimestamp:i,endTimestamp:o,url:c,method:u,statusCode:l,request:pn(p),response:pn(f)}}const h=s[C.SENTRY_XHR_DATA_KEY],d=h?hn(h.request_headers,r.networkRequestHeaders):{},m=hn(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e}),{})}(s),r.networkResponseHeaders),[y,g]=r.networkCaptureBodies?(0,P.getBodyString)(a,Cr):[void 0],[v,b]=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 xr&&Cr.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return xr&&Cr.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return xr&&Cr.warn("Failed to get xhr response body",...t),[void 0]}(s):[void 0],S=fn(d,p,y),_=fn(m,f,v);return{startTimestamp:i,endTimestamp:o,url:c,method:u,statusCode:l,request:g?un(S,g):S,response:b?un(_,b):_}}(e,t,r),i=ln("resource.xhr",n);an(r.replay,i)}catch(e){xr&&Cr.exception(e,"Failed to capture xhr breadcrumb")}}function bn(e,t){const{xhr:r,input:n}=t;if(!r)return;const i=sn(n),o=r.getResponseHeader("content-length")?cn(r.getResponseHeader("content-length")):function(e,t){try{return sn("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}(r.response,r.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}function Sn(e){const t=(0,h.getClient)();try{const{networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a}=e.getOptions(),s={replay:e,networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a};t&&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?.xhr}(r)&&(bn(t,r),vn(t,r,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e?.response}(r)&&(!function(e,t){const{input:r,response:n}=t,i=sn(r?(0,P.getFetchRequestArgBody)(r):void 0),o=n?cn(n.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,r),mn(t,r,e))}catch(e){xr&&Cr.exception(e,"Error when enriching network breadcrumb")}}(s,e,t)))}catch{}}function _n(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}}}}const En=n.GLOBAL_OBJ.navigator;function wn(e){let t=!1;return(r,n)=>{if(!e.checkAndHandleExpiredSession())return void(xr&&Cr.warn("Received replay event after session expired."));const i=n||!t;t=!0,e.clickDetector&&ar(e.clickDetector,r),e.addUpdate((()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!Gr(e,r,i))return!0;if(!i)return!1;const t=e.session;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;Gr(e,function(e){const t=e.getOptions();return{type:tt.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),"buffer"===e.recordingMode&&t&&e.eventBuffer){const r=e.eventBuffer.getEarliestTimestamp();r&&(xr&&Cr.info(`Updating session start time to earliest event in buffer to ${new Date(r)}`),t.started=r,e.getOptions().stickySession&&Br(t))}return t?.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}async function xn({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:i,session:o}){const a=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:s,errorIds:c,traceIds:u,initialTimestamp:l}=n,p=(0,h.getClient)(),f=(0,h.getCurrentScope)(),d=p?.getTransport(),m=p?.getDsn();if(!(p&&d&&m&&o.sampled))return(0,S.resolvedSyncPromise)({});const y={type:"replay_event",replay_start_timestamp:l/1e3,timestamp:i/1e3,error_ids:c,trace_ids:u,urls:s,replay_id:t,segment_id:r,replay_type:o.sampled},g=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("preprocessEvent",n,i);const o=await(0,b.prepareEvent)(e.getOptions(),n,i,t,e,(0,h.getIsolationScope)());if(!o)return null;e.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript";const a=e.getSdkMetadata(),{name:s,version:c}=a?.sdk||{};return o.sdk={...o.sdk,name:s||"sentry.javascript.unknown",version:c||"0.0.0"},o}({scope:f,client:p,replayId:t,event:y});if(!g)return p.recordDroppedEvent("event_processor","replay"),xr&&Cr.info("An event processor returned `null`, will not send event."),(0,S.resolvedSyncPromise)({});delete g.sdkProcessingMetadata;const E=function(e,t,r,n){return(0,v.createEnvelope)((0,v.createEventEnvelopeHeaders)(e,(0,v.getSdkMetadataForEnvelopeHeader)(e),n,r),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,a,m,p.getOptions().tunnel);let w;try{w=await d.send(E)}catch(e){const t=new Error(D);try{t.cause=e}catch{}throw t}if("number"==typeof w.statusCode&&(w.statusCode<200||w.statusCode>=300))throw new On(w.statusCode);const x=(0,_.updateRateLimits)({},w);if((0,_.isRateLimited)(x,"replay"))throw new Tn(x);return w}class On extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Tn extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function Pn(e,t={count:0,interval:5e3}){const{recordingData:r,onError:n}=e;if(r.length)try{return await xn(e),!0}catch(r){if(r instanceof On||r instanceof Tn)throw r;if((0,p.setContext)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){const e=new Error(`${D} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise(((r,n)=>{(0,O.setTimeout)((async()=>{try{await Pn(e,t),r(!0)}catch(e){n(e)}}),t.interval)}))}}const Cn="__THROTTLED";function An(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":Cn}i=!1;const s=n.get(a)||0;return n.set(a,s+1),e(...o)}}class kn{constructor({options:e,recordingOptions:t}){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._requiresManualStart=!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?.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=(0,O.setTimeout)(s,t),a&&void 0===o&&(o=(0,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=An(((e,t)=>function(e,t,r){return Kr(e,t)?Wr(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;if(i&&(this.clickDetector=new nr(this,i)),xr){const t=e._experiments;Cr.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===R.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const e=sr({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{const e=sr({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{hr(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){xr&&Cr.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;this._requiresManualStart=n,n||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",xr&&Cr.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):xr&&Cr.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(xr&&Cr.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(xr&&Cr.info("Buffering is in progress, call `flush()` to save the replay"));xr&&Cr.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=qr({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(xr&&Cr.info("Buffering is in progress, call `flush()` to save the replay"));xr&&Cr.infoTick("Starting replay in buffer mode");const e=qr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Gt({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:wn(this),.../iPhone|iPad|iPod/i.test(En?.userAgent??"")||/Macintosh/i.test(En?.userAgent??"")&&En?.maxTouchPoints&&En?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...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{xr&&Cr.info("Stopping Replay"+(t?` triggered by ${t}`:"")),tn(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,Fr(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),xr&&Cr.info("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),xr&&Cr.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();xr&&Cr.info("Converting buffer to session"),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?.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Vr(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${R.location.pathname}${R.location.hash}${R.location.search}`,t=`${R.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===Cn){const e=sr({category:"replay.throttled"});this.addUpdate((()=>!Gr(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return r}getCurrentRoute(){const e=this.lastActiveSpan||(0,d.getActiveSpan)(),t=e&&(0,d.getRootSpan)(e),r=(t&&(0,d.spanToJSON)(t).data||{})[E.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&r&&["route","custom"].includes(r))return(0,d.spanToJSON)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Mr({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,r=qr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,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!Hr(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{R.document.addEventListener("visibilitychange",this._handleVisibilityChange),R.addEventListener("blur",this._handleWindowBlur),R.addEventListener("focus",this._handleWindowFocus),R.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e,{autoFlushOnFeedback:t}){const r=(0,h.getClient)();(0,A.addClickKeypressInstrumentationHandler)(pr(e)),(0,k.addHistoryInstrumentationHandler)(on(e)),Zr(e),Sn(e);const n=rn(e);(0,p.addEventProcessor)(n),r&&(r.on("beforeSendEvent",Jr(e)),r.on("afterSendEvent",Qr(e)),r.on("createDsc",(t=>{const r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)})),r.on("spanStart",(t=>{e.lastActiveSpan=t})),r.on("spanEnd",(t=>{e.lastActiveSpan=t})),r.on("beforeSendFeedback",(async(r,n)=>{const i=e.getSessionId();n?.includeReplay&&e.isEnabled()&&i&&r.contexts?.feedback&&("api"===r.contexts.feedback.source&&t&&await e.flush(),r.contexts.feedback.replay_id=i)})),t&&r.on("openFeedbackWidget",(async()=>{await e.flush()})))}(this,{autoFlushOnFeedback:this._options._experiments.autoFlushOnFeedback}),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(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,T.addPerformanceInstrumentationHandler)(e,r))})),n.push((0,T.addLcpInstrumentationHandler)(mr(vr,e)),(0,T.addClsInstrumentationHandler)(mr(Sr,e)),(0,T.addFidInstrumentationHandler)(mr(_r,e)),(0,T.addInpInstrumentationHandler)(mr(Er,e))),()=>{n.forEach((e=>e()))}}(this)}_removeListeners(){try{R.document.removeEventListener("visibilitychange",this._handleVisibilityChange),R.removeEventListener("blur",this._handleWindowBlur),R.removeEventListener("focus",this._handleWindowFocus),R.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;zr(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):xr&&Cr.info("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:tt.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(yr).filter(Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter((e=>e.start>=t))}return Promise.all(nn(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)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?.hasEvents&&(await async function(e){try{return Promise.all(nn(e,[_n(R.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 Pn({replayId:e,recordingData:i,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=(0,h.getClient)();if(t){const r=e instanceof Tn?"ratelimit_backoff":"send_error";t.recordDroppedEvent(r,"replay")}}}else xr&&Cr.error("No session or eventBuffer found to flush.")}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(xr&&Cr.error("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 xr&&Cr.info(`Session duration (${Math.floor(r/1e3)}s) is too ${n?"short":"long"}, not sending replay.`),void(n&&this._debouncedFlush());const o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&xr&&Cr.info("Flushing initial segment without checkout.");const a=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,a&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Br(this.session)}_onMutationHandler(e){const t=e.length,r=this._options.mutationLimit,n=r&&t>r;if(t>this._options.mutationBreadcrumbLimit||n){const e=sr({category:"replay.mutations",data:{count:t,limit:n}});this._createCustomBreadcrumb(e)}return!n||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function Rn(e,t){return[...e,...t].join(",")}const In='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Dn=["content-length","content-type","accept"];let Mn=!1;const Nn=e=>new Fn(e);class Fn{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:s={},maskAllText:c=!0,maskAllInputs:u=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:p=750,mutationLimit:f=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:d=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:S=[],maskAttributes:_=["title","placeholder"],unmask:E=[],block:x=[],unblock:O=[],ignore:T=[],maskFn:P,beforeAddRecordingEvent:C,beforeErrorSampling:A,onError:k}={}){this.name="Replay";const R=function({mask:e,unmask:t,block:r,unblock:n,ignore:i}){return{maskTextSelector:Rn(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Rn(t,[]),blockSelector:Rn(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:Rn(n,[]),ignoreSelector:Rn(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:S,unmask:E,block:x,unblock:O,ignore:T});if(this._recordingOptions={maskAllInputs:u,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:P,maskInputFn:P,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:_,maskAllText:c,privacyOptions:R,key:e,value:t,el:r}),...R,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}},recordCrossOriginIframes:Boolean(s.recordCrossOriginIframes)},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,15e3),maxReplayDuration:Math.min(n,L),stickySession:i,useCompression:o,workerUrl:a,blockAllMedia:l,maskAllInputs:u,maskAllText:c,mutationBreadcrumbLimit:p,mutationLimit:f,slowClickTimeout:h,slowClickIgnoreSelectors:d,networkDetailAllowUrls:m,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:Ln(v),networkResponseHeaders:Ln(b),beforeAddRecordingEvent:C,beforeErrorSampling:A,onError:k,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${In}`:In),this._isInitialized&&(0,w.isBrowser)())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Mn}set _isInitialized(e){Mn=e}afterAllSetup(e){(0,w.isBrowser)()&&!this._replay&&(this._setup(e),this._initialize(e))}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):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const r=t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...(0,o.dropUndefinedKeys)(e)},i=(0,x.parseSampleRate)(r.replaysSessionSampleRate),a=(0,x.parseSampleRate)(r.replaysOnErrorSampleRate);null==i&&null==a&&(0,u.consoleSandbox)((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));null!=i&&(n.sessionSampleRate=i);null!=a&&(n.errorSampleRate=a);return n}(this._initialOptions,e);this._replay=new kn({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function Ln(e){return[...Dn,...e.map((e=>e.toLowerCase()))]}function jn(){const e=(0,h.getClient)();return e?.getIntegrationByName("Replay")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addClsInstrumentationHandler:()=>b,addFidInstrumentationHandler:()=>_,addInpInstrumentationHandler:()=>w,addLcpInstrumentationHandler:()=>S,addPerformanceInstrumentationHandler:()=>x,addTtfbInstrumentationHandler:()=>E,isPerformanceEventTiming:()=>M});var n=r(303),i=r(317),o=r(1347),a=r(1357),s=r(1369),c=r(1370),u=r(1374),l=r(1363),p=r(1375);const f={},h={};let d,m,y,g,v;function b(e,t=!1){return R("cls",e,T,d,t)}function S(e,t=!1){return R("lcp",e,C,y,t)}function _(e){return R("fid",e,P,m)}function E(e){return R("ttfb",e,A,g)}function w(e){return R("inp",e,k,v)}function x(e,t){return I(e,t),h[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);(0,l.observe)(e,(t=>{O(e,{entries:t})}),t)}(e),h[e]=!0),D(e,t)}function O(e,t){const r=f[e];if(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=>{O("cls",{metric:e}),d=e}),{reportAllChanges:!0})}function P(){return(0,s.onFID)((e=>{O("fid",{metric:e}),m=e}))}function C(){return(0,u.onLCP)((e=>{O("lcp",{metric:e}),y=e}),{reportAllChanges:!0})}function A(){return(0,p.onTTFB)((e=>{O("ttfb",{metric:e}),g=e}))}function k(){return(0,c.onINP)((e=>{O("inp",{metric:e}),v=e}))}function R(e,t,r,n,i=!1){let o;return I(e,t),h[e]||(o=r(),h[e]=!0),n&&t({metric:n}),D(e,t,i?o:void 0)}function I(e,t){f[e]=f[e]||[],f[e].push(t)}function D(e,t,r){return()=>{r&&r();const n=f[e];if(!n)return;const i=n.indexOf(t);-1!==i&&n.splice(i,1)}}function M(e){return"duration"in e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CLSThresholds:()=>u,onCLS:()=>l});var n=r(1358),i=r(1359),o=r(1363),a=r(1364),s=r(1365),c=r(1366);const u=[.1,.25],l=(e,t={})=>{(0,c.onFCP)((0,s.runOnce)((()=>{const r=(0,i.initMetric)("CLS",0);let s,c=0,l=[];const p=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=l[0],r=l[l.length-1];c&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(c+=e.value,l.push(e)):(c=e.value,l=[e])}})),c>r.value&&(r.value=c,r.entries=l,s())},f=(0,o.observe)("layout-shift",p);f&&(s=(0,n.bindReporter)(e,r,u,t.reportAllChanges),(0,a.onHidden)((()=>{p(f.takeRecords()),s(!0)})),setTimeout(s,0))})))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindReporter:()=>n});const n=(e,t,r,n)=>{let i,o;return a=>{t.value>=0&&(a||n)&&(o=t.value-(i||0),(o||void 0===i)&&(i=t.value,t.delta=o,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,r),e(t)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initMetric:()=>s});var n=r(1328),i=r(1360),o=r(1361),a=r(1362);const s=(e,t)=>{const r=(0,a.getNavigationEntry)();let s="navigate";r&&(n.WINDOW.document?.prerendering||(0,o.getActivationStart)()>0?s="prerender":n.WINDOW.document?.wasDiscarded?s="restore":r.type&&(s=r.type.replace(/_/g,"-")));return{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=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getActivationStart:()=>i});var n=r(1362);const i=()=>{const e=(0,n.getNavigationEntry)();return e?.activationStart||0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getNavigationEntry:()=>i});var n=r(1328);const i=(e=!0)=>{const t=n.WINDOW.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t}},(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=>{Promise.resolve().then((()=>{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(1328);const i=e=>{const t=t=>{"pagehide"!==t.type&&"hidden"!==n.WINDOW.document?.visibilityState||e(t)};n.WINDOW.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{runOnce:()=>n});const n=e=>{let t=!1;return()=>{t||(e(),t=!0)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FCPThresholds:()=>u,onFCP:()=>l});var n=r(1358),i=r(1361),o=r(1367),a=r(1359),s=r(1363),c=r(1368);const u=[1800,3e3],l=(e,t={})=>{(0,c.whenActivated)((()=>{const r=(0,o.getVisibilityWatcher)(),c=(0,a.initMetric)("FCP");let l;const p=(0,s.observe)("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(p.disconnect(),e.startTime<r.firstHiddenTime&&(c.value=Math.max(e.startTime-(0,i.getActivationStart)(),0),c.entries.push(e),l(!0)))}))}));p&&(l=(0,n.bindReporter)(e,c,u,t.reportAllChanges))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getVisibilityWatcher:()=>s});var n=r(1328);let i=-1;const o=e=>{"hidden"===n.WINDOW.document.visibilityState&&i>-1&&(i="visibilitychange"===e.type?e.timeStamp:0,a())},a=()=>{removeEventListener("visibilitychange",o,!0),removeEventListener("prerenderingchange",o,!0)},s=()=>(n.WINDOW.document&&i<0&&(i="hidden"!==n.WINDOW.document.visibilityState||n.WINDOW.document.prerendering?1/0:0,addEventListener("visibilitychange",o,!0),addEventListener("prerenderingchange",o,!0)),{get firstHiddenTime(){return i}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{whenActivated:()=>i});var n=r(1328);const i=e=>{n.WINDOW.document?.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FIDThresholds:()=>l,onFID:()=>p});var n=r(1358),i=r(1367),o=r(1359),a=r(1363),s=r(1364),c=r(1365),u=r(1368);const l=[100,300],p=(e,t={})=>{(0,u.whenActivated)((()=>{const r=(0,i.getVisibilityWatcher)(),u=(0,o.initMetric)("FID");let p;const f=e=>{e.startTime<r.firstHiddenTime&&(u.value=e.processingStart-e.startTime,u.entries.push(e),p(!0))},h=e=>{e.forEach(f)},d=(0,a.observe)("first-input",h);p=(0,n.bindReporter)(e,u,l,t.reportAllChanges),d&&(0,s.onHidden)((0,c.runOnce)((()=>{h(d.takeRecords()),d.disconnect()})))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{INPThresholds:()=>f,onINP:()=>h});var n=r(1328),i=r(1358),o=r(1359),a=r(1371),s=r(1363),c=r(1364),u=r(1372),l=r(1368),p=r(1373);const f=[200,500],h=(e,t={})=>{"PerformanceEventTiming"in n.WINDOW&&"interactionId"in PerformanceEventTiming.prototype&&(0,l.whenActivated)((()=>{(0,u.initInteractionCountPolyfill)();const r=(0,o.initMetric)("INP");let n;const l=e=>{(0,p.whenIdle)((()=>{e.forEach(a.processInteractionEntry);const t=(0,a.estimateP98LongestInteraction)();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())}))},h=(0,s.observe)("event",l,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:a.DEFAULT_DURATION_THRESHOLD});n=(0,i.bindReporter)(e,r,f,t.reportAllChanges),h&&(h.observe({type:"first-input",buffered:!0}),(0,c.onHidden)((()=>{l(h.takeRecords()),n(!0)})))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_DURATION_THRESHOLD:()=>a,entryPreProcessingCallbacks:()=>c,estimateP98LongestInteraction:()=>s,longestInteractionList:()=>i,longestInteractionMap:()=>o,processInteractionEntry:()=>u});var n=r(1372);const i=[],o=new Map,a=40;const s=()=>{const e=Math.min(i.length-1,Math.floor(((0,n.getInteractionCount)()-0)/50));return i[e]},c=[],u=e=>{if(c.forEach((t=>t(e))),!e.interactionId&&"first-input"!==e.entryType)return;const t=i[i.length-1],r=o.get(e.interactionId);if(r||i.length<10||t&&e.duration>t.latency){if(r)e.duration>r.latency?(r.entries=[e],r.latency=e.duration):e.duration===r.latency&&e.startTime===r.entries[0]?.startTime&&r.entries.push(e);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};o.set(t.id,t),i.push(t)}i.sort(((e,t)=>t.latency-e.latency)),i.length>10&&i.splice(10).forEach((e=>o.delete(e.id)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getInteractionCount:()=>u,initInteractionCountPolyfill:()=>l});var n=r(1363);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,{whenIdle:()=>a});var n=r(1328),i=r(1364),o=r(1365);const a=e=>{const t=n.WINDOW.requestIdleCallback||n.WINDOW.setTimeout;let r=-1;return e=(0,o.runOnce)(e),"hidden"===n.WINDOW.document?.visibilityState?e():(r=t(e),(0,i.onHidden)(e)),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LCPThresholds:()=>h,onLCP:()=>m});var n=r(1328),i=r(1358),o=r(1361),a=r(1367),s=r(1359),c=r(1363),u=r(1364),l=r(1365),p=r(1368),f=r(1373);const h=[2500,4e3],d={},m=(e,t={})=>{(0,p.whenActivated)((()=>{const r=(0,a.getVisibilityWatcher)(),p=(0,s.initMetric)("LCP");let m;const y=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach((e=>{e.startTime<r.firstHiddenTime&&(p.value=Math.max(e.startTime-(0,o.getActivationStart)(),0),p.entries=[e],m())}))},g=(0,c.observe)("largest-contentful-paint",y);if(g){m=(0,i.bindReporter)(e,p,h,t.reportAllChanges);const r=(0,l.runOnce)((()=>{d[p.id]||(y(g.takeRecords()),g.disconnect(),d[p.id]=!0,m(!0))}));["keydown","click"].forEach((e=>{n.WINDOW.document&&addEventListener(e,(()=>(0,f.whenIdle)(r)),{once:!0,capture:!0})})),(0,u.onHidden)(r)}}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TTFBThresholds:()=>u,onTTFB:()=>p});var n=r(1328),i=r(1358),o=r(1361),a=r(1362),s=r(1359),c=r(1368);const u=[800,1800],l=e=>{n.WINDOW.document?.prerendering?(0,c.whenActivated)((()=>l(e))):"complete"!==n.WINDOW.document?.readyState?addEventListener("load",(()=>l(e)),!0):setTimeout(e,0)},p=(e,t={})=>{const r=(0,s.initMetric)("TTFB"),n=(0,i.bindReporter)(e,r,u,t.reportAllChanges);l((()=>{const e=(0,a.getNavigationEntry)();e&&(r.value=Math.max(e.responseStart-(0,o.getActivationStart)(),0),r.entries=[e],n(!0))}))}},(e,t,r)=>{"use strict";function n(e,t){const r=t?.getDsn(),n=t?.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,r)||function(e,t){if(!t)return!1;return i(e)===i(t)}(e,n)}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,{getBodyString:()=>a,getFetchRequestArgBody:()=>s,serializeFormData:()=>o});var n=r(303),i=r(1347);function o(e){return new URLSearchParams(e).toString()}function a(e,t=n.logger){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[o(e)];if(!e)return[void 0]}catch(r){return i.DEBUG_BUILD&&t.error(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return i.DEBUG_BUILD&&t.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function s(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isBrowser:()=>o});var n=r(1379),i=r(294);function o(){return"undefined"!=typeof window&&(!(0,n.isNodeEnv)()||function(){const e=i.GLOBAL_OBJ.process;return"renderer"===e?.type}())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isNodeEnv:()=>i,loadModule:()=>a});var n=r(1320);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(e,t=module){let r;try{r=o(t,e)}catch(e){}if(!r)try{const{cwd:n}=o(t,"process");r=o(t,`${n()}/node_modules/${e}`)}catch(e){}return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BROWSER_TRACING_INTEGRATION_ID:()=>w,browserTracingIntegration:()=>O,getMetaContent:()=>C,startBrowserTracingNavigationSpan:()=>P,startBrowserTracingPageLoadSpan:()=>T});var n=r(1395),i=r(1397),o=r(1332),a=r(1393),s=r(1394),c=r(294),u=r(320),l=r(290),p=r(323),f=r(319),h=r(300),d=r(303),m=r(307),y=r(326),g=r(305),v=r(299),b=r(1323),S=r(1309),_=r(1381),E=r(1382);const w="BrowserTracing",x={...a.TRACING_DEFAULTS,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...E.defaultRequestInstrumentationOptions},O=(e={})=>{const t=S.WINDOW.document;(0,s.registerSpanErrorInstrumentation)();const{enableInp:r,enableLongTask:v,enableLongAnimationFrame:O,_experiments:{enableInteractions:A,enableStandaloneClsSpans:I},beforeStartSpan:D,idleTimeout:M,finalTimeout:N,childSpanTimeout:F,markBackgroundSpan:L,traceFetch:j,traceXHR:B,trackFetchStreamPerformance:U,shouldCreateSpanForRequest:V,enableHTTPTimings:z,instrumentPageLoad:H,instrumentNavigation:q}={...x,...e},G=(0,n.startTrackingWebVitals)({recordClsStandaloneSpans:I||!1});r&&(0,i.startTrackingINP)(),O&&c.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?(0,n.startTrackingLongAnimationFrames)():v&&(0,n.startTrackingLongTasks)(),A&&(0,n.startTrackingInteractions)();const W={name:void 0,source:void 0};function K(e,r){const i="pageload"===r.op,o=D?D(r):r,s=o.attributes||{};r.name!==o.name&&(s[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",o.attributes=s),W.name=o.name,W.source=s[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];const c=(0,a.startIdleSpan)(o,{idleTimeout:M,finalTimeout:N,childSpanTimeout:F,disableAutoFinish:i,beforeSpanEnd:t=>{G(),(0,n.addPerformanceEntries)(t,{recordClsOnPageloadSpan:!I}),R(e,void 0);const r=(0,l.getCurrentScope)(),i=r.getPropagationContext();r.setPropagationContext({...i,traceId:c.spanContext().traceId,sampled:(0,p.spanIsSampled)(c),dsc:(0,f.getDynamicSamplingContextFromSpan)(t)})}});function h(){t&&["interactive","complete"].includes(t.readyState)&&e.emit("idleSpanEnableAutoFinish",c)}R(e,c),i&&t&&(t.addEventListener("readystatechange",(()=>{h()})),h())}return{name:w,afterAllSetup(e){let t=(0,h.getLocationHref)();function n(){const t=k(e);t&&!(0,p.spanToJSON)(t).timestamp&&(b.DEBUG_BUILD&&d.logger.log(`[Tracing] Finishing current active span with op: ${(0,p.spanToJSON)(t).op}`),t.end())}if(e.on("startNavigationSpan",(t=>{(0,l.getClient)()===e&&(n(),(0,l.getIsolationScope)().setPropagationContext({traceId:(0,m.generateTraceId)(),sampleRand:Math.random()}),(0,l.getCurrentScope)().setPropagationContext({traceId:(0,m.generateTraceId)(),sampleRand:Math.random()}),K(e,{op:"navigation",...t}))})),e.on("startPageLoadSpan",((t,r={})=>{if((0,l.getClient)()!==e)return;n();const i=r.sentryTrace||C("sentry-trace"),o=r.baggage||C("baggage"),a=(0,y.propagationContextFromHeaders)(i,o);(0,l.getCurrentScope)().setPropagationContext(a),K(e,{op:"pageload",...t})})),S.WINDOW.location){if(H){const t=(0,g.browserPerformanceTimeOrigin)();T(e,{name:S.WINDOW.location.pathname,startTime:t?t/1e3:void 0,attributes:{[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}q&&(0,o.addHistoryInstrumentationHandler)((({to:r,from:n})=>{void 0!==n||-1===t?.indexOf(r)?n!==r&&(t=void 0,P(e,{name:S.WINDOW.location.pathname,attributes:{[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}})):t=void 0}))}L&&(0,_.registerBackgroundTabDetection)(),A&&function(e,t,r,n,i){const o=S.WINDOW.document;let s;const c=()=>{const o="ui.action.click",c=k(e);if(c){const e=(0,p.spanToJSON)(c).op;if(["navigation","pageload"].includes(e))return void(b.DEBUG_BUILD&&d.logger.warn(`[Tracing] Did not create ${o} span because a pageload or navigation span is in progress.`))}s&&(s.setAttribute(u.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),s.end(),s=void 0),i.name?s=(0,a.startIdleSpan)({name:i.name,op:o,attributes:{[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:i.source||"url"}},{idleTimeout:t,finalTimeout:r,childSpanTimeout:n}):b.DEBUG_BUILD&&d.logger.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`)};o&&addEventListener("click",c,{once:!1,capture:!0})}(e,M,N,F,W),r&&(0,i.registerInpInteractionListener)(),(0,E.instrumentOutgoingRequests)(e,{traceFetch:j,traceXHR:B,trackFetchStreamPerformance:U,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:V,enableHTTPTimings:z})}}};function T(e,t,r){return e.emit("startPageLoadSpan",t,r),(0,l.getCurrentScope)().setTransactionName(t.name),k(e)}function P(e,t){return e.emit("startNavigationSpan",t),(0,l.getCurrentScope)().setTransactionName(t.name),k(e)}function C(e){const t=S.WINDOW.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}const A="_sentry_idleSpan";function k(e){return e[A]}function R(e,t){(0,v.addNonEnumerableProperty)(e,A,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{registerBackgroundTabDetection:()=>c});var n=r(323),i=r(303),o=r(324),a=r(1323),s=r(1309);function c(){s.WINDOW.document?s.WINDOW.document.addEventListener("visibilitychange",(()=>{const e=(0,n.getActiveSpan)();if(!e)return;const t=(0,n.getRootSpan)(e);if(s.WINDOW.document.hidden&&t){const e="cancelled",{op:r,status:s}=(0,n.spanToJSON)(t);a.DEBUG_BUILD&&i.logger.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:o.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})):a.DEBUG_BUILD&&i.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,{defaultRequestInstrumentationOptions:()=>w,instrumentOutgoingRequests:()=>x,shouldAttachHeaders:()=>P,xhrCallback:()=>C});var n=r(1329),i=r(1356),o=r(1392),a=r(1330),s=r(1383),c=r(1335),u=r(323),l=r(305),p=r(300),f=r(304),h=r(322),d=r(324),m=r(1385),y=r(320),g=r(1384),v=r(290),b=r(1391),S=r(1309);const _=new WeakMap,E=new Map,w={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function x(e,t){const{traceFetch:r,traceXHR:i,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:u,enableHTTPTimings:l,tracePropagationTargets:p}={traceFetch:w.traceFetch,traceXHR:w.traceXHR,trackFetchStreamPerformance:w.trackFetchStreamPerformance,...t},f="function"==typeof u?u:e=>!0,h=e=>P(e,p),d={};r&&(e.addEventProcessor((e=>("transaction"===e.type&&e.spans&&e.spans.forEach((e=>{if("http.client"===e.op){const t=E.get(e.span_id);t&&(e.timestamp=t/1e3,E.delete(e.span_id))}})),e))),o&&(0,a.addFetchEndInstrumentationHandler)((e=>{if(e.response){const t=_.get(e.response);t&&e.endTimestamp&&E.set(t,e.endTimestamp)}})),(0,a.addFetchInstrumentationHandler)((e=>{const t=(0,s.instrumentFetchRequest)(e,f,h,d);if(e.response&&e.fetchData.__span&&_.set(e.response,e.fetchData.__span),t){const r=A(e.fetchData.url),n=r?(0,c.parseUrl)(r).host:void 0;t.setAttributes({"http.url":r,"server.address":n})}l&&t&&O(t)}))),i&&(0,n.addXhrInstrumentationHandler)((e=>{const t=C(e,f,h,d);l&&t&&O(t)}))}function O(e){const{url:t}=(0,u.spanToJSON)(e).data;if(!t||"string"!=typeof t)return;const r=(0,i.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}=(0,o.extractNetworkProtocol)(e.nextHopProtocol),n=[];if(n.push(["network.protocol.version",r],["network.protocol.name",t]),!(0,l.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 T(e=0){return(((0,l.browserPerformanceTimeOrigin)()||performance.timeOrigin)+e)/1e3}function P(e,t){const r=(0,p.getLocationHref)();if(r){let n,i;try{n=new URL(e,r),i=new URL(r).origin}catch(e){return!1}const o=n.origin===i;return t?(0,f.stringMatchesSomePattern)(n.toString(),t)||o&&(0,f.stringMatchesSomePattern)(n.pathname,t):o}{const r=!!e.match(/^\/(?!\/)/);return t?(0,f.stringMatchesSomePattern)(e,t):r}}function C(e,t,r,i){const o=e.xhr,a=o?.[n.SENTRY_XHR_DATA_KEY];if(!o||o.__sentry_own_request__||!a)return;const{url:s,method:l}=a,p=(0,h.hasSpansEnabled)()&&t(s);if(e.endTimestamp&&p){const e=o.__sentry_xhr_span_id__;if(!e)return;const t=i[e];return void(t&&void 0!==a.status_code&&((0,d.setHttpStatus)(t,a.status_code),t.end(),delete i[e]))}const f=A(s),S=f?(0,c.parseUrl)(f):(0,c.parseUrl)(s),_=(0,c.stripUrlQueryAndFragment)(s),E=!!(0,u.getActiveSpan)(),w=p&&E?(0,m.startInactiveSpan)({name:`${l} ${_}`,attributes:{url:s,type:"xhr","http.method":l,"http.url":f,"server.address":S?.host,[y.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[y.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...S?.search&&{"http.query":S?.search},...S?.hash&&{"http.fragment":S?.hash}}}):new g.SentryNonRecordingSpan;o.__sentry_xhr_span_id__=w.spanContext().spanId,i[o.__sentry_xhr_span_id__]=w,r(s)&&function(e,t){const{"sentry-trace":r,baggage:n}=(0,b.getTraceData)({span:t});r&&function(e,t,r){try{e.setRequestHeader("sentry-trace",t),r&&e.setRequestHeader("baggage",r)}catch(e){}}(e,r,n)}(o,(0,h.hasSpansEnabled)()&&E?w:void 0);const x=(0,v.getClient)();return x&&x.emit("beforeOutgoingRequestSpan",w,e),w}function A(e){try{return new URL(e,S.WINDOW.location.origin).href}catch{return}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentFetchRequest:()=>d});var n=r(290),i=r(320),o=r(301),a=r(322),s=r(323),c=r(321),u=r(1384),l=r(324),p=r(1385),f=r(1335),h=r(1391);function d(e,t,r,c,d="auto.http.browser"){if(!e.fetchData)return;const{method:y,url:g}=e.fetchData,v=(0,a.hasSpansEnabled)()&&t(g);if(e.endTimestamp&&v){const t=e.fetchData.__span;if(!t)return;const r=c[t];return void(r&&(!function(e,t){if(t.response){(0,l.setHttpStatus)(e,t.response.status);const r=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({code:l.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(r,e),delete c[t]))}const b=function(e){try{return new URL(e).href}catch{return}}(g),S=b?(0,f.parseUrl)(b):(0,f.parseUrl)(g),_=!!(0,s.getActiveSpan)(),E=v&&_?(0,p.startInactiveSpan)({name:`${y} ${(0,f.stripUrlQueryAndFragment)(g)}`,attributes:{url:g,type:"fetch","http.method":y,"http.url":b,"server.address":S?.host,[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:d,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...S?.search&&{"http.query":S?.search},...S?.hash&&{"http.fragment":S?.hash}}}):new u.SentryNonRecordingSpan;if(e.fetchData.__span=E.spanContext().spanId,c[E.spanContext().spanId]=E,r(e.fetchData.url)){const t=e.args[0],r=e.args[1]||{},n=function(e,t,r){const n=(0,h.getTraceData)({span:r}),i=n["sentry-trace"],a=n.baggage;if(!i)return;const s=t.headers||(function(e){return"undefined"!=typeof Request&&(0,o.isInstanceOf)(e,Request)}(e)?e.headers:void 0);if(s){if(function(e){return"undefined"!=typeof Headers&&(0,o.isInstanceOf)(e,Headers)}(s)){const e=new Headers(s);if(e.set("sentry-trace",i),a){const t=e.get("baggage");if(t){const r=m(t);e.set("baggage",r?`${r},${a}`:a)}else e.set("baggage",a)}return e}if(Array.isArray(s)){const e=[...s.filter((e=>!(Array.isArray(e)&&"sentry-trace"===e[0]))).map((e=>{if(Array.isArray(e)&&"baggage"===e[0]&&"string"==typeof e[1]){const[t,r,...n]=e;return[t,m(r),...n]}return e})),["sentry-trace",i]];return a&&e.push(["baggage",a]),e}{const e="baggage"in s?s.baggage:void 0;let t=[];return Array.isArray(e)?t=e.map((e=>"string"==typeof e?m(e):e)).filter((e=>""===e)):e&&t.push(m(e)),a&&t.push(a),{...s,"sentry-trace":i,baggage:t.length>0?t.join(","):void 0}}}return{...n}}(t,r,(0,a.hasSpansEnabled)()&&_?E:void 0);n&&(e.args[1]=r,r.headers=n)}const w=(0,n.getClient)();if(w){const t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};w.emit("beforeOutgoingRequestSpan",E,t)}return E}function m(e){return e.split(",").filter((e=>!e.split("=")[0].startsWith(c.SENTRY_BAGGAGE_KEY_PREFIX))).join(",")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentryNonRecordingSpan:()=>o});var n=r(307),i=r(323);class o{constructor(e={}){this._traceId=e.traceId||(0,n.generateTraceId)(),this._spanId=e.spanId||(0,n.generateSpanId)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:i.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{continueTrace:()=>P,startInactiveSpan:()=>T,startNewTrace:()=>k,startSpan:()=>x,startSpanManual:()=>O,suppressTracing:()=>A,withActiveSpan:()=>C});var n=r(292),i=r(290),o=r(291),a=r(310),s=r(320),c=r(303),u=r(307),l=r(326),p=r(1386),f=r(322),h=r(327),d=r(309),m=r(323),y=r(319),g=r(1387),v=r(1388),b=r(1384),S=r(1389),_=r(324),E=r(325);const w="__SENTRY_SUPPRESS_TRACING__";function x(e,t){const r=D();if(r.startSpan)return r.startSpan(e,t);const n=I(e),{forceTransaction:o,parentSpan:a,scope:s}=e,c=s?.clone();return(0,i.withScope)(c,(()=>F(a)((()=>{const r=(0,i.getCurrentScope)(),a=N(r),s=e.onlyIfParent&&!a?new b.SentryNonRecordingSpan:R({parentSpan:a,spanArguments:n,forceTransaction:o,scope:r});return(0,d._setSpanForScope)(r,s),(0,p.handleCallbackErrors)((()=>t(s)),(()=>{const{status:e}=(0,m.spanToJSON)(s);!s.isRecording()||e&&"ok"!==e||s.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"})}),(()=>{s.end()}))}))))}function O(e,t){const r=D();if(r.startSpanManual)return r.startSpanManual(e,t);const n=I(e),{forceTransaction:o,parentSpan:a,scope:s}=e,c=s?.clone();return(0,i.withScope)(c,(()=>F(a)((()=>{const r=(0,i.getCurrentScope)(),a=N(r),s=e.onlyIfParent&&!a?new b.SentryNonRecordingSpan:R({parentSpan:a,spanArguments:n,forceTransaction:o,scope:r});return(0,d._setSpanForScope)(r,s),(0,p.handleCallbackErrors)((()=>t(s,(()=>s.end()))),(()=>{const{status:e}=(0,m.spanToJSON)(s);!s.isRecording()||e&&"ok"!==e||s.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"})}))}))))}function T(e){const t=D();if(t.startInactiveSpan)return t.startInactiveSpan(e);const r=I(e),{forceTransaction:n,parentSpan:o}=e;return(e.scope?t=>(0,i.withScope)(e.scope,t):void 0!==o?e=>C(o,e):e=>e())((()=>{const t=(0,i.getCurrentScope)(),o=N(t);return e.onlyIfParent&&!o?new b.SentryNonRecordingSpan:R({parentSpan:o,spanArguments:r,forceTransaction:n,scope:t})}))}const P=(e,t)=>{const r=(0,n.getMainCarrier)(),a=(0,o.getAsyncContextStrategy)(r);if(a.continueTrace)return a.continueTrace(e,t);const{sentryTrace:s,baggage:c}=e;return(0,i.withScope)((e=>{const r=(0,l.propagationContextFromHeaders)(s,c);return e.setPropagationContext(r),t()}))};function C(e,t){const r=D();return r.withActiveSpan?r.withActiveSpan(e,t):(0,i.withScope)((r=>((0,d._setSpanForScope)(r,e||void 0),t(r))))}function A(e){const t=D();return t.suppressTracing?t.suppressTracing(e):(0,i.withScope)((t=>(t.setSDKProcessingMetadata({[w]:!0}),e())))}function k(e){return(0,i.withScope)((t=>(t.setPropagationContext({traceId:(0,u.generateTraceId)(),sampleRand:Math.random()}),a.DEBUG_BUILD&&c.logger.info(`Starting a new trace with id ${t.getPropagationContext().traceId}`),C(null,e))))}function R({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){if(!(0,f.hasSpansEnabled)()){const n=new b.SentryNonRecordingSpan;if(r||!e){const e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,y.getDynamicSamplingContextFromSpan)(n)};(0,y.freezeDscOnSpan)(n,e)}return n}const o=(0,i.getIsolationScope)();let a;if(e&&!r)a=function(e,t,r){const{spanId:n,traceId:o}=e.spanContext(),a=!t.getScopeData().sdkProcessingMetadata[w]&&(0,m.spanIsSampled)(e),s=a?new S.SentrySpan({...r,parentSpanId:n,traceId:o,sampled:a}):new b.SentryNonRecordingSpan({traceId:o});(0,m.addChildSpanToSpan)(e,s);const c=(0,i.getClient)();c&&(c.emit("spanStart",s),r.endTimestamp&&c.emit("spanEnd",s));return s}(e,n,t),(0,m.addChildSpanToSpan)(e,a);else if(e){const r=(0,y.getDynamicSamplingContextFromSpan)(e),{traceId:i,spanId:o}=e.spanContext(),s=(0,m.spanIsSampled)(e);a=M({traceId:i,parentSpanId:o,...t},n,s),(0,y.freezeDscOnSpan)(a,r)}else{const{traceId:e,dsc:r,parentSpanId:i,sampled:s}={...o.getPropagationContext(),...n.getPropagationContext()};a=M({traceId:e,parentSpanId:i,...t},n,s),r&&(0,y.freezeDscOnSpan)(a,r)}return(0,g.logSpanStart)(a),(0,E.setCapturedScopesOnSpan)(a,n,o),a}function I(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...t};return r.startTimestamp=(0,m.spanTimeInputToSeconds)(e.startTime),delete r.startTime,r}return t}function D(){const e=(0,n.getMainCarrier)();return(0,o.getAsyncContextStrategy)(e)}function M(e,t,r){const n=(0,i.getClient)(),o=n?.getOptions()||{},{name:u="",attributes:l}=e,p=t.getPropagationContext(),[f,d,m]=t.getScopeData().sdkProcessingMetadata[w]?[!1]:(0,v.sampleSpan)(o,{name:u,parentSampled:r,attributes:l,parentSampleRate:(0,h.parseSampleRate)(p.dsc?.sample_rate)},p.sampleRand),y=new S.SentrySpan({...e,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[s.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==d&&m?d:void 0,...e.attributes},sampled:f});return!f&&n&&(a.DEBUG_BUILD&&c.logger.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),n.recordDroppedEvent("sample_rate","transaction")),n&&n.emit("spanStart",y),y}function N(e){const t=(0,d._getSpanForScope)(e);if(!t)return;const r=(0,i.getClient)();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,m.getRootSpan)(t):t}function F(e){return void 0!==e?t=>C(e,t):e=>e()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{handleCallbackErrors:()=>i});var n=r(301);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,{logSpanEnd:()=>s,logSpanStart:()=>a});var n=r(310),i=r(303),o=r(323);function a(e){if(!n.DEBUG_BUILD)return;const{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:a}=(0,o.spanToJSON)(e),{spanId:s}=e.spanContext(),c=(0,o.spanIsSampled)(e),u=(0,o.getRootSpan)(e),l=u===e,p=`[Tracing] Starting ${c?"sampled":"unsampled"} ${l?"root ":""}span`,f=[`op: ${r}`,`name: ${t}`,`ID: ${s}`];if(a&&f.push(`parent ID: ${a}`),!l){const{op:e,description:t}=(0,o.spanToJSON)(u);f.push(`root ID: ${u.spanContext().spanId}`),e&&f.push(`root op: ${e}`),t&&f.push(`root description: ${t}`)}i.logger.log(`${p}\n ${f.join("\n ")}`)}function s(e){if(!n.DEBUG_BUILD)return;const{description:t="< unknown name >",op:r="< unknown op >"}=(0,o.spanToJSON)(e),{spanId:a}=e.spanContext(),s=`[Tracing] Finishing "${r}" ${(0,o.getRootSpan)(e)===e?"root ":""}span "${t}" with ID ${a}`;i.logger.log(s)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{sampleSpan:()=>s});var n=r(310),i=r(303),o=r(322),a=r(327);function s(e,t,r){if(!(0,o.hasSpansEnabled)(e))return[!1];let s,c;"function"==typeof e.tracesSampler?(c=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),s=!0):void 0!==t.parentSampled?c=t.parentSampled:void 0!==e.tracesSampleRate&&(c=e.tracesSampleRate,s=!0);const u=(0,a.parseSampleRate)(c);if(void 0===u)return n.DEBUG_BUILD&&i.logger.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(c)} of type ${JSON.stringify(typeof c)}.`),[!1];if(!u)return n.DEBUG_BUILD&&i.logger.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,u,s];const l=r<u;return l||n.DEBUG_BUILD&&i.logger.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(c)})`),[l,u,s]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentrySpan:()=>y});var n=r(290),i=r(310),o=r(1313),a=r(320),s=r(303),c=r(299),u=r(307),l=r(305),p=r(323),f=r(319),h=r(1387),d=r(1390),m=r(325);class y{constructor(e={}){this._traceId=e.traceId||(0,u.generateTraceId)(),this._spanId=e.spanId||(0,u.generateSpanId)(),this._startTime=e.startTimestamp||(0,l.timestampInSeconds)(),this._links=e.links,this._attributes={},this.setAttributes({[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[a.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?p.TRACE_FLAG_SAMPLED:p.TRACE_FLAG_NONE}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}updateStartTime(e){this._startTime=(0,p.spanTimeInputToSeconds)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(e){this._endTime||(this._endTime=(0,p.spanTimeInputToSeconds)(e),(0,h.logSpanEnd)(this),this._onSpanEnded())}getSpanJSON(){return(0,c.dropUndefinedKeys)({data:this._attributes,description:this._name,op:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,p.getStatusMessage)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[a.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[a.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:(0,d.timedEventsToMeasurements)(this._events),is_segment:this._isStandaloneSpan&&(0,p.getRootSpan)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,p.getRootSpan)(this).spanContext().spanId:void 0,links:(0,p.convertSpanLinksForEnvelope)(this._links)})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){i.DEBUG_BUILD&&s.logger.log("[Tracing] Adding an event to span:",e);const n=g(t)?t:r||(0,l.timestampInSeconds)(),o=g(t)?{}:t||{},a={name:e,time:(0,p.spanTimeInputToSeconds)(n),attributes:o};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=(0,n.getClient)();e&&e.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===(0,p.getRootSpan)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=(0,n.getClient)();if(!t)return;const r=e[1];if(!r||0===r.length)return void t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}((0,o.createSpanEnvelope)([this],e)):(i.DEBUG_BUILD&&s.logger.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));const t=this._convertSpanToTransaction();if(t){((0,m.getCapturedScopesOnSpan)(this).scope||(0,n.getCurrentScope)()).captureEvent(t)}}_convertSpanToTransaction(){if(!v((0,p.spanToJSON)(this)))return;this._name||(i.DEBUG_BUILD&&s.logger.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=(0,m.getCapturedScopesOnSpan)(this);if(!0!==this._sampled)return;const r=(0,p.getSpanDescendants)(this).filter((e=>e!==this&&!function(e){return e instanceof y&&e.isStandaloneSpan()}(e))).map((e=>(0,p.spanToJSON)(e))).filter(v),n=this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],r.forEach((e=>{delete e.data[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]}));const o={contexts:{trace:(0,p.spanToTransactionTraceContext)(this)},spans:r.length>1e3?r.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...(0,c.dropUndefinedKeys)({dynamicSamplingContext:(0,f.getDynamicSamplingContextFromSpan)(this)})},...n&&{transaction_info:{source:n}}},u=(0,d.timedEventsToMeasurements)(this._events);return u&&Object.keys(u).length&&(i.DEBUG_BUILD&&s.logger.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),o.measurements=u),o}}function g(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function v(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{setMeasurement:()=>s,timedEventsToMeasurements:()=>c});var n=r(310),i=r(320),o=r(303),a=r(323);function s(e,t,r,s=(0,a.getActiveSpan)()){const c=s&&(0,a.getRootSpan)(s);c&&(n.DEBUG_BUILD&&o.logger.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),c.addEvent(e,{[i.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[i.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:r}))}function c(e){if(!e||0===e.length)return;const t={};return e.forEach((e=>{const r=e.attributes||{},n=r[i.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],o=r[i.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof n&&"number"==typeof o&&(t[e.name]={value:o,unit:n})})),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getTraceData:()=>f});var n=r(291),i=r(292),o=r(290),a=r(289),s=r(303),c=r(323),u=r(319),l=r(326),p=r(321);function f(e={}){const t=(0,o.getClient)();if(!(0,a.isEnabled)()||!t)return{};const r=(0,i.getMainCarrier)(),f=(0,n.getAsyncContextStrategy)(r);if(f.getTraceData)return f.getTraceData(e);const h=(0,o.getCurrentScope)(),d=e.span||(0,c.getActiveSpan)(),m=d?(0,c.spanToTraceHeader)(d):function(e){const{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,l.generateSentryTraceHeader)(t,n,r)}(h),y=d?(0,u.getDynamicSamplingContextFromSpan)(d):(0,u.getDynamicSamplingContextFromScope)(t,h),g=(0,p.dynamicSamplingContextToSentryBaggageHeader)(y);return l.TRACEPARENT_REGEXP.test(m)?{"sentry-trace":m,baggage:g}:(s.logger.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{extractNetworkProtocol:()=>f,getBrowserPerformanceAPI:()=>l,isMeasurementValue:()=>s,msToSec:()=>p,startAndEndSpan:()=>c,startStandaloneWebVitalSpan:()=>u});var n=r(323),i=r(1385),o=r(290),a=r(1328);function s(e){return"number"==typeof e&&isFinite(e)}function c(e,t,r,{...o}){const a=(0,n.spanToJSON)(e).start_timestamp;return a&&a>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),(0,i.withActiveSpan)(e,(()=>{const e=(0,i.startInactiveSpan)({startTime:t,...o});return e&&e.end(r),e}))}function u(e){const t=(0,o.getClient)();if(!t)return;const{name:r,transaction:n,attributes:s,startTime:c}=e,{release:u,environment:l,sendDefaultPii:p}=t.getOptions(),f=t.getIntegrationByName("Replay"),h=f?.getReplayId(),d=(0,o.getCurrentScope)(),m=d.getUser(),y=void 0!==m?m.email||m.id||m.ip_address:void 0;let g;try{g=d.getScopeData().contexts.profile.profile_id}catch{}const v={release:u,environment:l,user:y||void 0,profile_id:g||void 0,replay_id:h||void 0,transaction:n,"user_agent.original":a.WINDOW.navigator?.userAgent,"client.address":p?"{{auto}}":void 0,...s};return(0,i.startInactiveSpan)({name:r,attributes:v,startTime:c,experimental:{standalone:!0}})}function l(){return a.WINDOW.addEventListener&&a.WINDOW.performance}function p(e){return e/1e3}function f(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}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACING_DEFAULTS:()=>m,startIdleSpan:()=>S});var n=r(290),i=r(310),o=r(320),a=r(303),s=r(305),c=r(322),u=r(309),l=r(323),p=r(319),f=r(1384),h=r(324),d=r(1385);const m={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},y="heartbeatFailed",g="idleTimeout",v="finalTimeout",b="externalFinish";function S(e,t={}){const r=new Map;let S,_=!1,E=b,w=!t.disableAutoFinish;const x=[],{idleTimeout:O=m.idleTimeout,finalTimeout:T=m.finalTimeout,childSpanTimeout:P=m.childSpanTimeout,beforeSpanEnd:C}=t,A=(0,n.getClient)();if(!A||!(0,c.hasSpansEnabled)()){const e=new f.SentryNonRecordingSpan,t={sample_rate:"0",sampled:"false",...(0,p.getDynamicSamplingContextFromSpan)(e)};return(0,p.freezeDscOnSpan)(e,t),e}const k=(0,n.getCurrentScope)(),R=(0,l.getActiveSpan)(),I=function(e){const t=(0,d.startInactiveSpan)(e);return(0,u._setSpanForScope)((0,n.getCurrentScope)(),t),i.DEBUG_BUILD&&a.logger.log("[Tracing] Started span is an idle span"),t}(e);function D(){S&&(clearTimeout(S),S=void 0)}function M(e){D(),S=setTimeout((()=>{!_&&0===r.size&&w&&(E=g,I.end(e))}),O)}function N(e){S=setTimeout((()=>{!_&&w&&(E=y,I.end(e))}),P)}function F(e){_=!0,r.clear(),x.forEach((e=>e())),(0,u._setSpanForScope)(k,R);const t=(0,l.spanToJSON)(I),{start_timestamp:n}=t;if(!n)return;t.data[o.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||I.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,E),a.logger.log(`[Tracing] Idle span "${t.op}" finished`);const s=(0,l.getSpanDescendants)(I).filter((e=>e!==I));let c=0;s.forEach((t=>{t.isRecording()&&(t.setStatus({code:h.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),i.DEBUG_BUILD&&a.logger.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const r=(0,l.spanToJSON)(t),{timestamp:n=0,start_timestamp:o=0}=r,s=o<=e,u=n-o<=(T+O)/1e3;if(i.DEBUG_BUILD){const e=JSON.stringify(t,void 0,2);s?u||a.logger.log("[Tracing] Discarding span since it finished after idle span final timeout",e):a.logger.log("[Tracing] Discarding span since it happened after idle span was finished",e)}u&&s||((0,l.removeChildSpanFromSpan)(I,t),c++)})),c>0&&I.setAttribute("sentry.idle_span_discarded_spans",c)}return I.end=new Proxy(I.end,{apply(e,t,r){if(C&&C(I),t instanceof f.SentryNonRecordingSpan)return;const[n,...i]=r,o=n||(0,s.timestampInSeconds)(),a=(0,l.spanTimeInputToSeconds)(o),c=(0,l.getSpanDescendants)(I).filter((e=>e!==I));if(!c.length)return F(a),Reflect.apply(e,t,[a,...i]);const u=c.map((e=>(0,l.spanToJSON)(e).timestamp)).filter((e=>!!e)),p=u.length?Math.max(...u):void 0,h=(0,l.spanToJSON)(I).start_timestamp,d=Math.min(h?h+T/1e3:1/0,Math.max(h||-1/0,Math.min(a,p||1/0)));return F(d),Reflect.apply(e,t,[d,...i])}}),x.push(A.on("spanStart",(e=>{if(_||e===I||(0,l.spanToJSON)(e).timestamp)return;var t;(0,l.getSpanDescendants)(I).includes(e)&&(t=e.spanContext().spanId,D(),r.set(t,!0),N((0,s.timestampInSeconds)()+P/1e3))}))),x.push(A.on("spanEnd",(e=>{var t;_||(t=e.spanContext().spanId,r.has(t)&&r.delete(t),0===r.size&&M((0,s.timestampInSeconds)()+O/1e3))}))),x.push(A.on("idleSpanEnableAutoFinish",(e=>{e===I&&(w=!0,M(),r.size&&N())}))),t.disableAutoFinish||M(),setTimeout((()=>{_||(I.setStatus({code:h.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),E=v,I.end())}),T),I}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{registerSpanErrorInstrumentation:()=>l});var n=r(310),i=r(1339),o=r(1340),a=r(303),s=r(323),c=r(324);let u=!1;function l(){u||(u=!0,(0,i.addGlobalErrorInstrumentationHandler)(p),(0,o.addGlobalUnhandledRejectionInstrumentationHandler)(p))}function p(){const e=(0,s.getActiveSpan)(),t=e&&(0,s.getRootSpan)(e);if(t){const e="internal_error";n.DEBUG_BUILD&&a.logger.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:c.SPAN_STATUS_ERROR,message:e})}}p.tag="sentry_tracingErrorCallback"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_addMeasureSpans:()=>T,_addResourceSpans:()=>C,addPerformanceEntries:()=>O,startTrackingInteractions:()=>x,startTrackingLongAnimationFrames:()=>w,startTrackingLongTasks:()=>E,startTrackingWebVitals:()=>_});var n=r(305),i=r(323),o=r(320),a=r(300),s=r(1390),c=r(1335),u=r(1328),l=r(1396),p=r(1356),f=r(1392),h=r(1361),d=r(1362),m=r(1367);const y=2147483647;let g,v,b=0,S={};function _({recordClsStandaloneSpans:e}){const t=(0,f.getBrowserPerformanceAPI)();if(t&&(0,n.browserPerformanceTimeOrigin)()){t.mark&&u.WINDOW.performance.mark("sentry-tracing-init");const r=(0,p.addFidInstrumentationHandler)((({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const r=(0,f.msToSec)((0,n.browserPerformanceTimeOrigin)()),i=(0,f.msToSec)(t.startTime);S.fid={value:e.value,unit:"millisecond"},S["mark.fid"]={value:r+i,unit:"second"}})),i=(0,p.addLcpInstrumentationHandler)((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(S.lcp={value:e.value,unit:"millisecond"},g=t)}),!0),o=(0,p.addTtfbInstrumentationHandler)((({metric:e})=>{e.entries[e.entries.length-1]&&(S.ttfb={value:e.value,unit:"millisecond"})})),a=e?(0,l.trackClsAsStandaloneSpan)():(0,p.addClsInstrumentationHandler)((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(S.cls={value:e.value,unit:""},v=t)}),!0);return()=>{r(),i(),o(),a?.()}}return()=>{}}function E(){(0,p.addPerformanceInstrumentationHandler)("longtask",(({entries:e})=>{const t=(0,i.getActiveSpan)();if(!t)return;const{op:r,start_timestamp:a}=(0,i.spanToJSON)(t);for(const i of e){const e=(0,f.msToSec)((0,n.browserPerformanceTimeOrigin)()+i.startTime),s=(0,f.msToSec)(i.duration);"navigation"===r&&a&&e<a||(0,f.startAndEndSpan)(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}}))}function w(){new PerformanceObserver((e=>{const t=(0,i.getActiveSpan)();if(t)for(const r of e.getEntries()){if(!r.scripts[0])continue;const e=(0,f.msToSec)((0,n.browserPerformanceTimeOrigin)()+r.startTime),{start_timestamp:a,op:s}=(0,i.spanToJSON)(t);if("navigation"===s&&a&&e<a)continue;const c=(0,f.msToSec)(r.duration),u={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},l=r.scripts[0],{invoker:p,invokerType:h,sourceURL:d,sourceFunctionName:m,sourceCharPosition:y}=l;u["browser.script.invoker"]=p,u["browser.script.invoker_type"]=h,d&&(u["code.filepath"]=d),m&&(u["code.function"]=m),-1!==y&&(u["browser.script.source_char_position"]=y),(0,f.startAndEndSpan)(t,e,e+c,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:u})}})).observe({type:"long-animation-frame",buffered:!0})}function x(){(0,p.addPerformanceInstrumentationHandler)("event",(({entries:e})=>{const t=(0,i.getActiveSpan)();if(t)for(const r of e)if("click"===r.name){const e=(0,f.msToSec)((0,n.browserPerformanceTimeOrigin)()+r.startTime),i=(0,f.msToSec)(r.duration),s={name:(0,a.htmlTreeAsString)(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},c=(0,a.getComponentName)(r.target);c&&(s.attributes["ui.component_name"]=c),(0,f.startAndEndSpan)(t,e,e+i,s)}}))}function O(e,t){const r=(0,f.getBrowserPerformanceAPI)(),c=(0,n.browserPerformanceTimeOrigin)();if(!r?.getEntries||!c)return;const l=(0,f.msToSec)(c),p=r.getEntries(),{op:y,start_timestamp:_}=(0,i.spanToJSON)(e);if(p.slice(b).forEach((t=>{const r=(0,f.msToSec)(t.startTime),n=(0,f.msToSec)(Math.max(0,t.duration));if(!("navigation"===y&&_&&l+r<_))switch(t.entryType){case"navigation":!function(e,t,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((n=>{P(e,t,n,r)})),P(e,t,"secureConnection",r,"TLS/SSL"),P(e,t,"fetch",r,"cache"),P(e,t,"domainLookup",r,"DNS"),function(e,t,r){const n=r+(0,f.msToSec)(t.requestStart),i=r+(0,f.msToSec)(t.responseEnd),a=r+(0,f.msToSec)(t.responseStart);t.responseEnd&&((0,f.startAndEndSpan)(e,n,i,{op:"browser.request",name:t.name,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),(0,f.startAndEndSpan)(e,a,i,{op:"browser.response",name:t.name,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}))}(e,t,r)}(e,t,l);break;case"mark":case"paint":case"measure":{T(e,t,r,n,l);const i=(0,m.getVisibilityWatcher)(),o=t.startTime<i.firstHiddenTime;"first-paint"===t.name&&o&&(S.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&o&&(S.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":C(e,t,t.name,r,n,l)}})),b=Math.max(p.length-1,0),function(e){const t=u.WINDOW.navigator;if(!t)return;const r=t.connection;r&&(r.effectiveType&&e.setAttribute("effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute("connectionType",r.type),(0,f.isMeasurementValue)(r.rtt)&&(S["connection.rtt"]={value:r.rtt,unit:"millisecond"}));(0,f.isMeasurementValue)(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`);(0,f.isMeasurementValue)(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===y){!function(e){const t=(0,d.getNavigationEntry)(!1);if(!t)return;const{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(S);const r=S["mark.fid"];r&&S.fid&&((0,f.startAndEndSpan)(e,r.value,r.value+(0,f.msToSec)(S.fid.value),{name:"first input delay",op:"ui.action",attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),delete S["mark.fid"]),"fcp"in S&&t.recordClsOnPageloadSpan||delete S.cls,Object.entries(S).forEach((([e,t])=>{(0,s.setMeasurement)(e,t.value,t.unit)})),e.setAttribute("performance.timeOrigin",l),e.setAttribute("performance.activationStart",(0,h.getActivationStart)()),function(e){g&&(g.element&&e.setAttribute("lcp.element",(0,a.htmlTreeAsString)(g.element)),g.id&&e.setAttribute("lcp.id",g.id),g.url&&e.setAttribute("lcp.url",g.url.trim().slice(0,200)),null!=g.loadTime&&e.setAttribute("lcp.loadTime",g.loadTime),null!=g.renderTime&&e.setAttribute("lcp.renderTime",g.renderTime),e.setAttribute("lcp.size",g.size));v?.sources&&v.sources.forEach(((t,r)=>e.setAttribute(`cls.source.${r+1}`,(0,a.htmlTreeAsString)(t.node))))}(e)}g=void 0,v=void 0,S={}}function T(e,t,r,n,i){const a=(0,d.getNavigationEntry)(!1),s=(0,f.msToSec)(a?a.requestStart:0),c=i+Math.max(r,s),u=i+r,l=u+n,p={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};c!==u&&(p["sentry.browser.measure_happened_before_request"]=!0,p["sentry.browser.measure_start_time"]=c),c<=l&&(0,f.startAndEndSpan)(e,c,l,{name:t.name,op:t.entryType,attributes:p})}function P(e,t,r,n,i=r){const a=function(e){if("secureConnection"===e)return"connectEnd";if("fetch"===e)return"domainLookupStart";return`${e}End`}(r),s=t[a],c=t[`${r}Start`];c&&s&&(0,f.startAndEndSpan)(e,n+(0,f.msToSec)(c),n+(0,f.msToSec)(s),{op:`browser.${i}`,name:t.name,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}function C(e,t,r,n,i,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const s=(0,c.parseUrl)(r),l={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};A(l,t,"transferSize","http.response_transfer_size"),A(l,t,"encodedBodySize","http.response_content_length"),A(l,t,"decodedBodySize","http.decoded_response_content_length");const p=t.deliveryType;null!=p&&(l["http.response_delivery_type"]=p);const h=t.renderBlockingStatus;h&&(l["resource.render_blocking_status"]=h),s.protocol&&(l["url.scheme"]=s.protocol.split(":").pop()),s.host&&(l["server.address"]=s.host),l["url.same_origin"]=r.includes(u.WINDOW.location.origin);const{name:d,version:m}=(0,f.extractNetworkProtocol)(t.nextHopProtocol);l["network.protocol.name"]=d,l["network.protocol.version"]=m;const y=a+n,g=y+i;(0,f.startAndEndSpan)(e,y,g,{name:r.replace(u.WINDOW.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:l})}function A(e,t,r,n){const i=t[r];null!=i&&i<y&&(e[n]=i)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{trackClsAsStandaloneSpan:()=>d});var n=r(290),i=r(323),o=r(303),a=r(305),s=r(300),c=r(299),u=r(320),l=r(1347),p=r(1356),f=r(1392),h=r(1364);function d(){let e,t,r=0;if(!function(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}())return;let d=!1;function m(){d||(d=!0,t&&function(e,t,r){l.DEBUG_BUILD&&o.logger.log(`Sending CLS span (${e})`);const i=(0,f.msToSec)(((0,a.browserPerformanceTimeOrigin)()||0)+(t?.startTime||0)),p=(0,n.getCurrentScope)().getScopeData().transactionName,h=t?(0,s.htmlTreeAsString)(t.sources[0]?.node):"Layout shift",d=(0,c.dropUndefinedKeys)({[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[u.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[u.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:t?.duration||0,"sentry.pageload.span_id":r}),m=(0,f.startStandaloneWebVitalSpan)({name:h,transaction:p,attributes:d,startTime:i});m&&(m.addEvent("cls",{[u.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[u.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),m.end(i))}(r,e,t),y())}const y=(0,p.addClsInstrumentationHandler)((({metric:t})=>{const n=t.entries[t.entries.length-1];n&&(r=t.value,e=n)}),!0);(0,h.onHidden)((()=>{m()})),setTimeout((()=>{const e=(0,n.getClient)();if(!e)return;const r=e.on("startNavigationSpan",(()=>{m(),r?.()})),o=(0,i.getActiveSpan)();if(o){const e=(0,i.getRootSpan)(o);"pageload"===(0,i.spanToJSON)(e).op&&(t=e.spanContext().spanId)}}),0)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{registerInpInteractionListener:()=>m,startTrackingINP:()=>h});var n=r(305),i=r(323),o=r(290),a=r(300),s=r(299),c=r(320),u=r(1356),l=r(1392);const p=[],f=new Map;function h(){if((0,l.getBrowserPerformanceAPI)()&&(0,n.browserPerformanceTimeOrigin)()){const e=(0,u.addInpInstrumentationHandler)((({metric:e})=>{if(null==e.value)return;const t=e.entries.find((t=>t.duration===e.value&&d[t.name]));if(!t)return;const{interactionId:r}=t,u=d[t.name],p=(0,l.msToSec)((0,n.browserPerformanceTimeOrigin)()+t.startTime),h=(0,l.msToSec)(e.value),m=(0,i.getActiveSpan)(),y=m?(0,i.getRootSpan)(m):void 0,g=(null!=r?f.get(r):void 0)||y,v=g?(0,i.spanToJSON)(g).description:(0,o.getCurrentScope)().getScopeData().transactionName,b=(0,a.htmlTreeAsString)(t.target),S=(0,s.dropUndefinedKeys)({[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[c.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${u}`,[c.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:t.duration}),_=(0,l.startStandaloneWebVitalSpan)({name:b,transaction:v,attributes:S,startTime:p});_&&(_.addEvent("inp",{[c.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[c.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),_.end(p+h))}));return()=>{e()}}return()=>{}}const d={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 m(){const e=({entries:e})=>{const t=(0,i.getActiveSpan)(),r=t&&(0,i.getRootSpan)(t);e.forEach((e=>{if(!(0,u.isPerformanceEventTiming)(e)||!r)return;const t=e.interactionId;if(null!=t&&!f.has(t)){if(p.length>10){const e=p.shift();f.delete(e)}p.push(t),f.set(t,r)}}))};(0,u.addPerformanceInstrumentationHandler)("event",e),(0,u.addPerformanceInstrumentationHandler)("first-input",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(347),o=r(503),a=r(586),s=r(629),c=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function u(e,t){var r,u=i.useRef(void 0),l=i.useRef(void 0),p=i.useRef(void 0),f=(0,o.mergeOptions)(t,u.current||{}),h=null!==(r=null==f?void 0:f.query)&&void 0!==r?r:e;l.current=t,p.current=h;var d=(0,n.__assign)((0,n.__assign)({},f),{skip:!u.current}),m=(0,a.useQueryInternals)(h,d),y=m.obsQueryFields,g=m.result,v=m.client,b=m.resultData,S=m.observable,_=m.onQueryExecuted,E=S.options.initialFetchPolicy||(0,a.getDefaultFetchPolicy)(d.defaultOptions,v.defaultOptions),w=i.useReducer((function(e){return e+1}),0)[1],x=i.useMemo((function(){for(var e={},t=function(t){var r=y[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,y]),O=!!u.current,T=i.useMemo((function(){return(0,n.__assign)((0,n.__assign)((0,n.__assign)({},g),x),{called:O})}),[g,x,O]),P=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:p.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)(t.maskResult(i),e.previousData,t,r))}})}))}(b,S,v,h,(0,n.__assign)((0,n.__assign)({},t),{skip:!1}),_).then((function(e){return Object.assign(e,x)}));return r.catch((function(){})),r}),[v,h,x,E,S,b,_]),C=i.useRef(P);(0,s.useIsomorphicLayoutEffect)((function(){C.current=P}));var A=i.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return C.current.apply(C,e)}),[]);return[A,T]}},,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{const n=r(1447),i=r(1448),o=r(1471),a=r(1473);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(1449),i=r(1450),o=r(1451),a=r(1452),s=r(1453),c=r(1454),u=r(1455),l=r(1456),p=r(1457),f=r(1460),h=r(1464),d=r(1461),m=r(1465);function y(e,t,r){const n=e.size,i=h.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 g(e,t,r){const i=new o;r.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),d.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,f=Math.floor(i/s),h=Math.floor(a/s),d=h+1,m=f-h,y=new p(m);let g=0;const v=new Array(s),b=new Array(s);let S=0;const _=new Uint8Array(e.buffer);for(let e=0;e<s;e++){const t=e<u?h:d;v[e]=_.slice(g,g+t),b[e]=y.encode(v[e]),g+=t,S=Math.max(S,t)}const E=new Uint8Array(i);let w,x,O=0;for(w=0;w<S;w++)for(x=0;x<s;x++)w<v[x].length&&(E[O++]=v[x][w]);for(w=0;w<m;w++)for(x=0;x<s;x++)E[O++]=b[x][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=f.getBestVersionForData(t,r)}o=m.fromString(e,n||40)}}const l=f.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 p=g(t,r,o),h=n.getSymbolSize(t),d=new a(h);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))}}(d,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)}}(d),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)}}(d,t),y(d,r,0),t>=7&&function(e,t){const r=e.size,n=f.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)}(d,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}}}(d,p),isNaN(i)&&(i=u.getBestMask(d,y.bind(null,d,r))),u.applyMask(i,d),y(d,r,i),{modules:d,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=f.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(1449).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(1449).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(1450),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(1458);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(1459);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(1449),i=r(1456),o=r(1450),a=r(1461),s=r(1462),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(1462),i=r(1463);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(1449),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(1461),i=r(1466),o=r(1467),a=r(1468),s=r(1469),c=r(1463),u=r(1449),l=r(1470);function p(e){return unescape(encodeURIComponent(e)).length}function f(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 h(e){const t=f(c.NUMERIC,n.NUMERIC,e),r=f(c.ALPHANUMERIC,n.ALPHANUMERIC,e);let i,o;u.isKanjiModeEnabled()?(i=f(c.BYTE,n.BYTE,e),o=f(c.KANJI,n.KANJI,e)):(i=f(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 d(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:p(i.data)}]);break;case n.BYTE:t.push([{data:i.data,mode:n.BYTE,length:p(i.data)}])}}return t}(h(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]=d(r[a].lastCount+u.length,u.mode)-d(r[a].lastCount,u.mode),r[a].lastCount+=u.length):(r[a]&&(r[a].lastCount=u.length),i[a][l]=d(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(h(e,u.isKanjiModeEnabled()))}},(e,t,r)=>{const n=r(1461);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(1461),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(1461);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(1461),i=r(1449);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,p,f,h=t.PriorityQueue.make();for(h.push(r,0);!h.empty();)for(c in s=(a=h.pop()).value,u=a.cost,l=e[s]||{})l.hasOwnProperty(c)&&(p=u+l[c],f=o[c],(void 0===o[c]||f>p)&&(o[c]=p,h.push(c,p),i[c]=s));if(void 0!==n&&void 0===o[n]){var d=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(d)}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(1472);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),p=n.color.light;if(t>=c&&r>=c&&t<s-c&&r<s-c){p=u[o[Math.floor((t-c)/a)*i+Math.floor((r-c)/a)]?1:0]}e[l++]=p.r,e[l++]=p.g,e[l++]=p.b,e[l]=p.a}}},(e,t,r)=>{const n=r(1472);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"/>':"",p="<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)+'"/>',f='viewBox="0 0 '+u+" "+u+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+f+' shape-rendering="crispEdges">'+l+p+"</svg>\n";return"function"==typeof r&&r(null,h),h}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{var n=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,c="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,u="object"==typeof self&&self&&self.Object===Object&&self,l=c||u||Function("return this")(),p=Object.prototype.toString,f=Math.max,h=Math.min,d=function(){return l.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==p.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var r=o.test(e);return r||a.test(e)?s(e.slice(2),r?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,r){var n,i,o,a,s,c,u=0,l=!1,p=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var r=n,o=i;return n=i=void 0,u=t,a=e.apply(o,r)}function b(e){var r=e-c;return void 0===c||r>=t||r<0||p&&e-u>=o}function S(){var e=d();if(b(e))return _(e);s=setTimeout(S,function(e){var r=t-(e-c);return p?h(r,o-(e-u)):r}(e))}function _(e){return s=void 0,g&&n?v(e):(n=i=void 0,a)}function E(){var e=d(),r=b(e);if(n=arguments,i=this,c=e,r){if(void 0===s)return function(e){return u=e,s=setTimeout(S,t),l?v(e):a}(c);if(p)return s=setTimeout(S,t),v(c)}return void 0===s&&(s=setTimeout(S,t)),a}return t=y(t)||0,m(r)&&(l=!!r.leading,o=(p="maxWait"in r)?f(y(r.maxWait)||0,t):o,g="trailing"in r?!!r.trailing:g),E.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=c=i=s=void 0},E.flush=function(){return void 0===s?a:_(d())},E}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(1080),i=r(1851),o=r(1852),a=r(1081),s=r(285),c=r(1084),u=r(1853),l=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},p=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);p.propTypes={},p.defaultProps={component:"div",childFactory:function(e){return e}};const f=p},(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(285);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,p=t[i],f=(0,n.isValidElement)(p)&&!p.props.in;!l||u&&!f?l||!u||f?l&&u&&(0,n.isValidElement)(p)&&(c[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:p.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:()=>h});var n=r(1851),i=r(1080),o=r(1081),a=r(1855),s=r(1857),c=r(285),u=r(1079),l=r(1085),p=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,s.default)(e,t)}))},f=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&&p(e,n),i&&p(e,i),o&&p(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);f.defaultProps={classNames:""},f.propTypes={};const h=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1856);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)=>{"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:()=>q.default,ContinuousSizeLegend:()=>G.default,ContourSeries:()=>u.default,Crosshair:()=>l.default,CustomSVGSeries:()=>p.default,DecorativeAxis:()=>f.default,DiscreteColorLegend:()=>W.default,FlexibleHeightXYPlot:()=>te.FlexibleHeightXYPlot,FlexibleWidthXYPlot:()=>te.FlexibleWidthXYPlot,FlexibleXYPlot:()=>te.FlexibleXYPlot,GradientDefs:()=>h.default,GridLines:()=>d.default,HeatmapSeries:()=>m.default,HexbinSeries:()=>y.default,Highlight:()=>g.default,Hint:()=>v.default,HorizontalBarSeries:()=>b.default,HorizontalBarSeriesCanvas:()=>S.default,HorizontalGridLines:()=>_.default,HorizontalRectSeries:()=>E.default,HorizontalRectSeriesCanvas:()=>w.default,LabelSeries:()=>x.default,LineMarkSeries:()=>O.default,LineMarkSeriesCanvas:()=>T.default,LineSeries:()=>P.default,LineSeriesCanvas:()=>C.default,MarkSeries:()=>A.default,MarkSeriesCanvas:()=>k.default,ParallelCoordinates:()=>$.default,PolygonSeries:()=>R.default,RadarChart:()=>Y.default,RadialChart:()=>X.default,RectSeries:()=>j.default,RectSeriesCanvas:()=>B.default,Sankey:()=>Q.default,ScaleUtils:()=>ne.default,SearchableDiscreteColorLegend:()=>K.default,Sunburst:()=>J.default,Treemap:()=>Z.default,VerticalBarSeries:()=>I.default,VerticalBarSeriesCanvas:()=>D.default,VerticalGridLines:()=>M.default,VerticalRectSeries:()=>N.default,VerticalRectSeriesCanvas:()=>F.default,Voronoi:()=>L.default,WhiskerSeries:()=>U.default,XAxis:()=>z.default,XYPlot:()=>V.default,YAxis:()=>H.default,makeHeightFlexible:()=>te.makeHeightFlexible,makeVisFlexible:()=>te.makeVisFlexible,makeWidthFlexible:()=>te.makeWidthFlexible});var n=r(1927),i=r(2028),o=r(2037),a=r(2094),s=r(2095),c=r(2096),u=r(2098),l=r(2124),p=r(2125),f=r(2126),h=r(2128),d=r(2129),m=r(2130),y=r(2131),g=r(2134),v=r(2135),b=r(2136),S=r(2138),_=r(2140),E=r(2141),w=r(2143),x=r(2145),O=r(2146),T=r(2149),P=r(2147),C=r(2151),A=r(2148),k=r(2150),R=r(2152),I=r(2153),D=r(2154),M=r(2155),N=r(2156),F=r(2157),L=r(2158),j=r(2142),B=r(2144),U=r(2159),V=r(2160),z=r(2180),H=r(2185),q=r(2186),G=r(2187),W=r(2188),K=r(2190),$=r(2191),Y=r(2192),X=r(2193),Q=r(2194),J=r(2210),Z=r(2229),ee=r(2246),te=r(2247),re=r(2097),ne=r(1968)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(596),i=r.n(n),o=r(1928),a=r(285),s=r(1938),c=r(1968);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 p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(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=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 h(e)}(this,r)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(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 y(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){g(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 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 v=y(y(y(y(y(y({},(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&&p(e,t)}(a,e);var t,r,n,i=f(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 g(h(e=i.call.apply(i,[this].concat(r))),"_seriesClickHandler",(function(t){var r=e.props.onSeriesClick;r&&r({event:t})})),g(h(e),"_seriesMouseOutHandler",(function(t){var r=e.props.onSeriesMouseOut;r&&r({event:t})})),g(h(e),"_seriesMouseOverHandler",(function(t){var r=e.props.onSeriesMouseOver;r&&r({event:t})})),g(h(e),"_seriesRightClickHandler",(function(t){var r=e.props.onSeriesRightClick;r&&r({event:t})})),g(h(e),"_valueClickHandler",(function(t,r){var n=e.props,i=n.onValueClick,o=n.onSeriesClick;i&&i(t,{event:r}),o&&o({event:r})})),g(h(e),"_valueMouseOutHandler",(function(t,r){var n=e.props,i=n.onValueMouseOut,o=n.onSeriesMouseOut;i&&i(t,{event:r}),o&&o({event:r})})),g(h(e),"_valueMouseOverHandler",(function(t,r){var n=e.props,i=n.onValueMouseOver,o=n.onSeriesMouseOver;i&&i(t,{event:r}),o&&o({event:r})})),g(h(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 S=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{voronoi:()=>n.default});var n=r(1929)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(1930),i=r(1931),o=r(1932);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:()=>f,epsilon2:()=>h});var n,i,o,a,s=r(1933),c=r(1935),u=r(1937),l=r(1936),p=r(1934),f=1e-6,h=1e-12;function d(e,t){return t[1]-e[1]||t[0]-e[0]}function m(e,t){var r,f,h,m=e.sort(d).pop();for(a=[],i=new Array(e.length),n=new p.default,o=new p.default;;)if(h=u.firstCircle,m&&(!h||m[1]<h.y||m[1]===h.y&&m[0]<h.x))m[0]===r&&m[1]===f||((0,s.addBeach)(m),r=m[0],f=m[1]),m=e.pop();else{if(!h)break;(0,s.removeBeach)(h.arc)}if((0,c.sortCellHalfedges)(),t){var y=+t[0][0],g=+t[0][1],v=+t[1][0],b=+t[1][1];(0,l.clipEdges)(y,g,v,b),(0,c.clipCells)(y,g,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,p=-1,f=t[i[o-1]],h=f.left===l?f.right:f.left;++p<o;)a=h,h=(f=t[i[p]]).left===l?f.right:f.left,a&&h&&n<a.index&&n<h.index&&(c=a,u=h,((s=l)[0]-u[0])*(c[1]-s[1])-(s[0]-c[0])*(u[1]-s[1])<0)&&e.push([l.data,a.data,h.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],p=c*c+u*u;p<l&&(l=p,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:()=>h,removeBeach:()=>f});var n=r(1934),i=r(1935),o=r(1937),a=r(1936),s=r(1932),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 p(e){(0,o.detachCircle)(e),s.beaches.remove(e),c.push(e),(0,n.RedBlackNode)(e)}function f(e){var t=e.circle,r=t.x,n=t.cy,i=[r,n],c=e.P,u=e.N,l=[e];p(e);for(var f=c;f.circle&&Math.abs(r-f.circle.x)<s.epsilon&&Math.abs(n-f.circle.cy)<s.epsilon;)c=f.P,l.unshift(f),p(f),f=c;l.unshift(f),(0,o.detachCircle)(f);for(var h=u;h.circle&&Math.abs(r-h.circle.x)<s.epsilon&&Math.abs(n-h.circle.cy)<s.epsilon;)u=h.N,l.push(h),p(h),h=u;l.push(h),(0,o.detachCircle)(h);var d,m=l.length;for(d=1;d<m;++d)h=l[d],f=l[d-1],(0,a.setEdgeEnd)(h.edge,f.site,h.site,i);f=l[0],(h=l[m-1]).edge=(0,a.createEdge)(f.site,h.site,null,i),(0,o.attachCircle)(f),(0,o.attachCircle)(h)}function h(e){for(var t,r,n,c,u=e[0],p=e[1],f=s.beaches._;f;)if((n=d(f,p)-u)>s.epsilon)f=f.L;else{if(!((c=u-m(f,p))>s.epsilon)){n>-s.epsilon?(t=f.P,r=f):c>-s.epsilon?(t=f,r=f.N):t=r=f;break}if(!f.R){t=f;break}f=f.R}(0,i.createCell)(e);var h=l(e);if(s.beaches.insert(t,h),t||r){if(t===r)return(0,o.detachCircle)(t),r=l(t.site),s.beaches.insert(h,r),h.edge=r.edge=(0,a.createEdge)(t.site,h.site),(0,o.attachCircle)(t),void(0,o.attachCircle)(r);if(r){(0,o.detachCircle)(t),(0,o.detachCircle)(r);var y=t.site,g=y[0],v=y[1],b=e[0]-g,S=e[1]-v,_=r.site,E=_[0]-g,w=_[1]-v,x=2*(b*w-S*E),O=b*b+S*S,T=E*E+w*w,P=[(w*O-S*T)/x+g,(b*T-E*O)/x+v];(0,a.setEdgeEnd)(r.edge,y,_,P),h.edge=(0,a.createEdge)(y,e,null,P),r.edge=(0,a.createEdge)(e,_,null,P),(0,o.attachCircle)(t),(0,o.attachCircle)(r)}else h.edge=(0,a.createEdge)(t.site,h.site)}}function d(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,p=1/o-1/u,f=l/u;return p?(-f+Math.sqrt(f*f-2*p*(l*l/(-2*u)-c+u/2+i-o/2)))/p+n:(n+s)/2}function m(e,t){var r=e.N;if(r)return d(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(1936),i=r(1932);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,p,f,h,d,m,y,g,v,b,S=i.cells.length,_=!0;for(a=0;a<S;++a)if(u=i.cells[a]){for(l=u.site,p=(f=u.halfedges).length;p--;)i.edges[f[p]]||f.splice(p,1);for(p=0,h=f.length;p<h;)v=(g=c(u,i.edges[f[p]]))[0],b=g[1],m=(d=s(u,i.edges[f[++p%h]]))[0],y=d[1],(Math.abs(v-m)>i.epsilon||Math.abs(b-y)>i.epsilon)&&(f.splice(p,0,i.edges.push((0,n.createBorderEdge)(l,g,Math.abs(v-e)<i.epsilon&&o-b>i.epsilon?[e,Math.abs(m-e)<i.epsilon?y:o]:Math.abs(b-o)<i.epsilon&&r-v>i.epsilon?[Math.abs(y-o)<i.epsilon?m:r,o]:Math.abs(v-r)<i.epsilon&&b-t>i.epsilon?[r,Math.abs(m-r)<i.epsilon?y:t]:Math.abs(b-t)<i.epsilon&&v-e>i.epsilon?[Math.abs(y-t)<i.epsilon?m:e,t]:null))-1),++h);h&&(_=!1)}if(_){var E,w,x,O=1/0;for(a=0,_=null;a<S;++a)(u=i.cells[a])&&(x=(E=(l=u.site)[0]-e)*E+(w=l[1]-t)*w)<O&&(O=x,_=u);if(_){var T=[e,t],P=[e,o],C=[r,o],A=[r,t];_.halfedges.push(i.edges.push((0,n.createBorderEdge)(l=_.site,T,P))-1,i.edges.push((0,n.createBorderEdge)(l,P,C))-1,i.edges.push((0,n.createBorderEdge)(l,C,A))-1,i.edges.push((0,n.createBorderEdge)(l,A,T))-1)}}for(a=0;a<S;++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(1932);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,p=1,f=s[0]-c,h=s[1]-u;if(o=t-c,f||!(o>0)){if(o/=f,f<0){if(o<l)return;o<p&&(p=o)}else if(f>0){if(o>p)return;o>l&&(l=o)}if(o=n-c,f||!(o<0)){if(o/=f,f<0){if(o>p)return;o>l&&(l=o)}else if(f>0){if(o<l)return;o<p&&(p=o)}if(o=r-u,h||!(o>0)){if(o/=h,h<0){if(o<l)return;o<p&&(p=o)}else if(h>0){if(o>p)return;o>l&&(l=o)}if(o=i-u,h||!(o<0)){if(o/=h,h<0){if(o>p)return;o>l&&(l=o)}else if(h>0){if(o<l)return;o<p&&(p=o)}return!(l>0||p<1)||(l>0&&(e[0]=[c+l*f,u+l*h]),p<1&&(e[1]=[c+p*f,u+p*h]),!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,p=u[0],f=u[1],h=l[0],d=l[1],m=(p+h)/2,y=(f+d)/2;if(d===f){if(m<t||m>=n)return;if(p>h){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=y-(a=(p-h)/(d-f))*m,a<-1||a>1)if(p>h){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(f<d){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(1934),o=r(1932),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],p=c[1],f=i[0]-l,h=i[1]-p,d=u[0]-l,m=u[1]-p,y=2*(f*m-h*d);if(!(y>=-o.epsilon2)){var g=f*f+h*h,v=d*d+m*m,b=(m*g-h*v)/y,S=(f*v-d*g)/y,_=a.pop()||new s;_.arc=e,_.site=c,_.x=b+l,_.y=(_.cy=S+p)+Math.sqrt(b*b+S*S),e.circle=_;for(var E=null,w=o.circles._;w;)if(_.y<w.y||_.y===w.y&&_.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,_),E||(n=_)}}}}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:()=>x,default:()=>w,extractAnimatedPropValues:()=>_});var n=r(285),i=r(596),o=r.n(i),a=r(1954),s=r(1939);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 p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(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=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return h(e)}(this,r)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(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 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 g(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){v(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 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]),S={animatedProps:o().arrayOf(o().string).isRequired,animation:b,onStart:o().func,onEnd:o().func};function _(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&&p(e,t)}(c,e);var t,r,i,o=f(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(h(t=o.call(this,e)),"_motionEndHandler",(function(){t.props.onEnd&&t.props.onEnd()})),v(h(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 g(g({},e),{},{parent:r.parent,children:r.children})}))),n.default.cloneElement(a,g(g(g({},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)(_(e),t?_(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 g(g({},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=S,E.displayName="Animation";const w=E;var x=b},(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var i=r(1940);t.Motion=n(i);var o=r(1948);t.StaggeredMotion=n(o);var a=r(1949);t.TransitionMotion=n(a);var s=r(1951);t.spring=n(s);var c=r(1952);t.presets=n(c);var u=r(1942);t.stripStyle=n(u);var l=r(1953);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(1941)),s=o(r(1942)),c=o(r(1943)),u=o(r(1944)),l=o(r(1945)),p=o(r(1947)),f=o(r(285)),h=o(r(596)),d=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(p.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*d&&(i.accumulatedTime=0),0===i.accumulatedTime)return i.animationID=null,void i.startAnimationIfNecessary();var o=(i.accumulatedTime-Math.floor(i.accumulatedTime/d)*d)/d,a=Math.floor(i.accumulatedTime/d),s={},l={},f={},h={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var y=t[m];if("number"==typeof y)f[m]=y,h[m]=0,s[m]=y,l[m]=0;else{for(var g=i.state.lastIdealStyle[m],v=i.state.lastIdealVelocity[m],b=0;b<a;b++){var S=c.default(d/1e3,g,v,y.val,y.stiffness,y.damping,y.precision);g=S[0],v=S[1]}var _=c.default(d/1e3,g,v,y.val,y.stiffness,y.damping,y.precision),E=_[0],w=_[1];f[m]=g+(E-g)*o,h[m]=v+(w-v)*o,s[m]=g,l[m]=v}}i.animationID=null,i.accumulatedTime-=a*d,i.setState({currentStyle:f,currentVelocity:h,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:h.default.objectOf(h.default.number),style:h.default.objectOf(h.default.oneOfType([h.default.number,h.default.object])).isRequired,children:h.default.func.isRequired,onRest:h.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&&f.default.Children.only(e)},t}(f.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(1946),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,p=0,f=[],h=1e3/60;s=function(e){if(0===f.length){var t=n(),r=Math.max(0,h-(t-l));l=r+t,setTimeout((function(){var e=f.slice(0);f.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 f.push({handle:++p,callback:e,cancelled:!1}),p},c=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[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(1941)),s=o(r(1942)),c=o(r(1943)),u=o(r(1944)),l=o(r(1945)),p=o(r(1947)),f=o(r(285)),h=o(r(596)),d=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],p=!1;for(var f in l)if(Object.prototype.hasOwnProperty.call(l,f)){var h=l[f];"number"==typeof h&&(p||(p=!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][f]=h,o[u][f]=0,a[u][f]=h,s[u][f]=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(!p.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*d&&(i.accumulatedTime=0),0===i.accumulatedTime)return i.animationID=null,void i.startAnimationIfNecessary();for(var o=(i.accumulatedTime-Math.floor(i.accumulatedTime/d)*d)/d,a=Math.floor(i.accumulatedTime/d),s=[],l=[],f=[],h=[],m=0;m<t.length;m++){var y=t[m],g={},v={},b={},S={};for(var _ in y)if(Object.prototype.hasOwnProperty.call(y,_)){var E=y[_];if("number"==typeof E)g[_]=E,v[_]=0,b[_]=E,S[_]=0;else{for(var w=i.state.lastIdealStyles[m][_],x=i.state.lastIdealVelocities[m][_],O=0;O<a;O++){var T=c.default(d/1e3,w,x,E.val,E.stiffness,E.damping,E.precision);w=T[0],x=T[1]}var P=c.default(d/1e3,w,x,E.val,E.stiffness,E.damping,E.precision),C=P[0],A=P[1];g[_]=w+(C-w)*o,v[_]=x+(A-x)*o,b[_]=w,S[_]=x}}f[m]=g,h[m]=v,s[m]=b,l[m]=S}i.animationID=null,i.accumulatedTime-=a*d,i.setState({currentStyles:f,currentVelocities:h,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:h.default.arrayOf(h.default.objectOf(h.default.number)),styles:h.default.func.isRequired,children:h.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&&f.default.Children.only(e)},t}(f.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(1941)),s=o(r(1942)),c=o(r(1943)),u=o(r(1950)),l=o(r(1944)),p=o(r(1945)),f=o(r(1947)),h=o(r(285)),d=o(r(596)),m=1e3/60;function y(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 g(e,t,r,n,i,o,s,c,l){for(var p=u.default(n,i,(function(e,n){var i=t(n);return null==i||f.default(o[e],i,s[e])?(r({key:n.key,data:n.data}),null):{key:n.key,data:n.data,style:i}})),h=[],d=[],m=[],y=[],g=0;g<p.length;g++){for(var v=p[g],b=null,S=0;S<n.length;S++)if(n[S].key===v.key){b=S;break}if(null==b){var _=e(v);h[g]=_,m[g]=_;var E=a.default(v.style);d[g]=E,y[g]=E}else h[g]=o[b],m[g]=c[b],d[g]=s[b],y[g]=l[b]}return[p,h,d,m,y]}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=g(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,p=!1;for(var f in l)if(Object.prototype.hasOwnProperty.call(l,f)){var h=l[f];"number"==typeof h&&(p||(p=!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][f]=h,a[u][f]=0,s[u][f]=h,c[u][f]=0,r[u].style[f]=h)}}i.setState({currentStyles:o,currentVelocities:a,mergedPropsStyles:r,lastIdealStyles:s,lastIdealVelocities:c})},this.startAnimationIfNecessary=function(){i.unmounting||(i.animationID=p.default((function(e){if(!i.unmounting){var t=i.props.styles,r="function"==typeof t?t(y(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(!f.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=g(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),p=u[0],h=u[1],d=u[2],v=u[3],b=u[4],S=0;S<p.length;S++){var _=p[S].style,E={},w={},x={},O={};for(var T in _)if(Object.prototype.hasOwnProperty.call(_,T)){var P=_[T];if("number"==typeof P)E[T]=P,w[T]=0,x[T]=P,O[T]=0;else{for(var C=v[S][T],A=b[S][T],k=0;k<s;k++){var R=c.default(m/1e3,C,A,P.val,P.stiffness,P.damping,P.precision);C=R[0],A=R[1]}var I=c.default(m/1e3,C,A,P.val,P.stiffness,P.damping,P.precision),D=I[0],M=I[1];E[T]=C+(D-C)*a,w[T]=A+(M-A)*a,x[T]=C,O[T]=A}}v[S]=x,b[S]=O,h[S]=E,d[S]=w}i.animationID=null,i.accumulatedTime-=s*m,i.setState({currentStyles:h,currentVelocities:d,lastIdealStyles:v,lastIdealVelocities:b,mergedPropsStyles:p}),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.shape({key:d.default.string.isRequired,data:d.default.any,style:d.default.objectOf(d.default.number).isRequired})),styles:d.default.oneOfType([d.default.func,d.default.arrayOf(d.default.shape({key:d.default.string.isRequired,data:d.default.any,style:d.default.objectOf(d.default.oneOfType([d.default.number,d.default.object])).isRequired}))]).isRequired,children:d.default.func.isRequired,willEnter:d.default.func,willLeave:d.default.func,didLeave:d.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)})),p=null==t?c.map((function(e){return a.default(e.style)})):t.map((function(e){return a.default(e.style)})),f=g(n,i,o,u,c,l,p,l,p),h=f[0];return{currentStyles:f[1],currentVelocities:f[2],lastIdealStyles:f[3],lastIdealVelocities:f[4],mergedPropsStyles:h}},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(y(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&&(p.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=y(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&h.default.Children.only(t)},t}(h.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(1952),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:()=>f});var n=r(1960),i=r(1955),o=r(1962),a=r(1964),s=r(1965),c=r(1966),u=r(1967),l=r(1959),p=r(1963);function f(e,t){var r,f=typeof t;return null==t||"boolean"===f?(0,l.default)(t):("number"===f?s.default:"string"===f?(r=(0,n.default)(t))?(t=r,i.default):u.default:t instanceof n.default?i.default:t instanceof Date?a.default:(0,p.isNumberArray)(t)?p.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(1960),i=r(1956),o=r(1957),a=r(1958);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(1956);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(1959);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:()=>O,brighter:()=>a,darker:()=>o,default:()=>S,hsl:()=>D,hslConvert:()=>I,rgb:()=>x,rgbConvert:()=>w});var n=r(1961);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})$/,p=new RegExp(`^rgb\\(${s},${s},${s}\\)$`),f=new RegExp(`^rgb\\(${u},${u},${u}\\)$`),h=new RegExp(`^rgba\\(${s},${s},${s},${c}\\)$`),d=new RegExp(`^rgba\\(${u},${u},${u},${c}\\)$`),m=new RegExp(`^hsl\\(${c},${u},${u}\\)$`),y=new RegExp(`^hsla\\(${c},${u},${u},${c}\\)$`),g={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 S(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=l.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?_(t):3===r?new O(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=p.exec(e))?new O(t[1],t[2],t[3],1):(t=f.exec(e))?new O(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?E(t[1],t[2],t[3],t[4]):(t=d.exec(e))?E(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?R(t[1],t[2]/100,t[3]/100,1):(t=y.exec(e))?R(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?_(g[e]):"transparent"===e?new O(NaN,NaN,NaN,0):null}function _(e){return new O(e>>16&255,e>>8&255,255&e,1)}function E(e,t,r,n){return n<=0&&(e=t=r=NaN),new O(e,t,r,n)}function w(e){return e instanceof i||(e=S(e)),e?new O((e=e.rgb()).r,e.g,e.b,e.opacity):new O}function x(e,t,r,n){return 1===arguments.length?w(e):new O(e,t,r,null==n?1:n)}function O(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function T(){return`#${k(this.r)}${k(this.g)}${k(this.b)}`}function P(){const e=C(this.opacity);return`${1===e?"rgb(":"rgba("}${A(this.r)}, ${A(this.g)}, ${A(this.b)}${1===e?")":`, ${e})`}`}function C(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function A(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function k(e){return((e=A(e))<16?"0":"")+e.toString(16)}function R(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new M(e,t,r,n)}function I(e){if(e instanceof M)return new M(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=S(e)),!e)return new M;if(e instanceof M)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 M(s,c,u,e.opacity)}function D(e,t,r,n){return 1===arguments.length?I(e):new M(e,t,r,null==n?1:n)}function M(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function N(e){return(e=(e||0)%360)<0?e+360:e}function F(e){return Math.max(0,Math.min(1,e||0))}function L(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,S,{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 I(this).formatHsl()},formatRgb:b,toString:b}),(0,n.default)(O,x,(0,n.extend)(i,{brighter(e){return e=null==e?a:Math.pow(a,e),new O(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?o:Math.pow(o,e),new O(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new O(A(this.r),A(this.g),A(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`#${k(this.r)}${k(this.g)}${k(this.b)}${k(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:P,toString:P})),(0,n.default)(M,D,(0,n.extend)(i,{brighter(e){return e=null==e?a:Math.pow(a,e),new M(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?o:Math.pow(o,e),new M(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 O(L(e>=240?e-240:e+120,i,n),L(e,i,n),L(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new M(N(this.h),F(this.s),F(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("}${N(this.h)}, ${100*F(this.s)}%, ${100*F(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(1954),i=r(1963);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(1954);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(1965),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=[],p=[];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,p.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?p[0]?function(e){return function(t){return e(t)+""}}(p[0].x):function(e){return function(){return e}}(t):(t=p.length,function(e){for(var r,n=0;n<t;++n)l[(r=p[n]).i]=r.x(e);return l.join("")})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_adjustCategoricalScale:()=>j,_getScaleDistanceAndAdjustedDomain:()=>L,_getSmallestDistanceIndex:()=>D,default:()=>ee,extractScalePropsFromProps:()=>K,getAttr0Functor:()=>q,getAttributeFunctor:()=>H,getAttributeScale:()=>U,getAttributeValue:()=>G,getDomainByAccessor:()=>N,getFontColorFromBackground:()=>X,getMissingScaleProps:()=>$,getOptionalScaleProps:()=>Z,getScaleFnFromScaleObject:()=>M,getScaleObjectFromProps:()=>B,getScalePropTypesByAttribute:()=>W,getXYPlotValues:()=>Q,literalScale:()=>Y});var n,i=r(1978),o=r(2006),a=r(2007),s=r(2010),c=r(2012),u=r(2026),l=r(2027),p=r(1969),f=r(1960),h=r(596),d=r.n(h),m=r(1976),y=r(1977);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){w(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 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)||_(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 S(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)||_(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 _(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 x="linear",O="ordinal",T="category",P="literal",C="log",A="time",k=(w(n={},x,i.default),w(n,O,o.point),w(n,T,a.default),w(n,P,Y),w(n,C,s.default),w(n,A,c.default),w(n,"time-utc",u.default),n),R=["color","fill","opacity","stroke"];function I(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}function D(e,t){var r=M(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 M(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===P)return Y(n[0]);var o=k[t]().domain(i).range(n);return t===O&&(o.padding(.5),function(e){e.invert||(e.invert=function(t){var r=S(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 N(e,t,r,n){var i=e.reduce((function(e,n){var i=t(n),o=r(n);return z(i)&&e.push(i),z(o)&&e.push(o),e}),[]);return i.length?n!==O&&n!==T?(0,l.default)(i):(0,p.set)(i).values():[]}function F(e,t,r,n,i){return r===P?{type:P,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 L(e,t){var r=t.domain,n=t.type,i=t.accessor,o=t.accessor0,a=function(e,t,r,n){return n===A&&1===t.length?[r(e[0])].concat(b(t)):t}(e,(0,y.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,M(v(v({},t),{},{domain:c})));return{domain0:c[0],domainN:c[c.length-1],distance:u}}function j(e){var t=M(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 B(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?x:u,p=e["".concat(t,"NoFallBack")],f=e["get".concat(I(t))],h=void 0===f?function(e){return e[t]}:f,d=e["get".concat(I(t),"0")],m=void 0===d?function(e){return e["".concat(t,"0")]}:d,g=e["".concat(t,"Domain")];return p||void 0===n?(void 0!==c&&(g=(0,y.addValueToArray)(g,c)),o&&g&&g.length?{domain:(r={domain:g,range:o,type:l,distance:s,attr:t,baseValue:c,accessor:h,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}:F(t,i,e["".concat(t,"Type")],h,m)):F(t,n,e["".concat(t,"Type")],h,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===O||n===T?j(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=L(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 M(B(e,t))}function V(e,t){return t(e.data?e.data:e)}function z(e){return void 0!==e}function H(e,t){var r=B(e,t);if(r){var n=M(r);return function(e){return n(V(e,r.accessor))}}return null}function q(e,t){var r=B(e,t);if(r){var n=r.domain,i=r.baseValue,o=void 0===i?n[0]:i,a=M(r);return function(e){var t=V(e,r.accessor0);return a(z(t)?t:o)}}return null}function G(e,t){var r=B(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 W(e){var t;return w(t={},"_".concat(e,"Value"),d().any),w(t,"".concat(e,"Domain"),d().array),w(t,"get".concat(I(e)),d().func),w(t,"get".concat(I(e),"0"),d().func),w(t,"".concat(e,"Range"),d().array),w(t,"".concat(e,"Type"),d().oneOf(Object.keys(k))),w(t,"".concat(e,"Distance"),d().number),w(t,"".concat(e,"BaseValue"),d().any),t}function K(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(I(e)));return t||r||i}))&&(r[n]=e[n])})),r}function $(e,t,r){var n={};return r.forEach((function(r){e["get".concat(I(r))]||(n["get".concat(I(r))]=function(e){return e[r]}),e["get".concat(I(r),"0")]||(n["get".concat(I(r),"0")]=function(e){return e["".concat(r,"0")]}),e["".concat(r,"Domain")]||(n["".concat(r,"Domain")]=N(t,e["get".concat(I(r))]||n["get".concat(I(r))],e["get".concat(I(r),"0")]||n["get".concat(I(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=S(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 X(e){return e?(0,f.hsl)(e).l>.57?"#222":"#fff":null}function Q(e,t){var r=R.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,k[o]().domain(n).range(i))):t}),{});return t.map((function(e){return R.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:K,getAttributeScale:U,getAttributeFunctor:H,getAttr0Functor:q,getAttributeValue:G,getDomainByAccessor:N,getFontColorFromBackground:X,getMissingScaleProps:$,getOptionalScaleProps:Z,getScaleObjectFromProps:B,getScalePropTypesByAttribute:W,getXYPlotValues:Q,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(1970),i=r(1972),o=r(1971),a=r(1973),s=r(1974),c=r(1975)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1971);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,p,f=-1,h=r.length,d=i[o++],m=(0,n.default)(),y=a();++f<h;)(p=m.get(c=d(u=r[f])+""))?p.push(u):m.set(c,[u]);return m.each((function(e,t){s(y,t,l(e,o,a,s))})),y}function p(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:p(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 p(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(1971);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:()=>f,isReactDOMSupported:()=>p,warnOnce:()=>y,warning:()=>m});var i,o,a=r(285).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,p=function(){return l},f=function(e){return p()?e:e&&e.getDOMNode()},h={},d={test:!0,production:!0};function m(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.g.process&&d.production||t&&h[e]||(console.warn(e),h[e]=!0)}function y(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(1990),i=r(1979),o=r(1988),a=r(1989);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],p=10;for(l<u&&(o=u,u=l,l=o,o=s,s=c,c=o);p-- >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:()=>d,default:()=>y,identity:()=>l,transformer:()=>m});var n=r(1982),i=r(1954),o=r(1965),a=r(1987),s=r(1980),c=r(1981),u=[0,1];function l(e){return e}function p(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:(0,s.default)(isNaN(t)?NaN:.5)}function f(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=p(i,n),o=r(a,o)):(n=p(n,i),o=r(o,a)),function(e){return o(n(e))}}function h(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]=p(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 d(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,p,d=u,m=u,y=i.default,g=l;function v(){var e,t,r,i=Math.min(d.length,m.length);return g!==l&&(e=d[0],t=d[i-1],e>t&&(r=e,e=t,t=r),g=function(r){return Math.max(e,Math.min(t,r))}),n=i>2?h:f,s=p=null,b}function b(t){return null==t||isNaN(t=+t)?r:(s||(s=n(d.map(e),m,y)))(e(g(t)))}return b.invert=function(r){return g(t((p||(p=n(m,d.map(e),o.default)))(r)))},b.domain=function(e){return arguments.length?(d=Array.from(e,c.default),v()):d.slice()},b.range=function(e){return arguments.length?(m=Array.from(e),v()):m.slice()},b.rangeRound=function(e){return m=Array.from(e),y=a.default,v()},b.clamp=function(e){return arguments.length?(g=!!e||l,v()):g!==l},b.interpolate=function(e){return arguments.length?(y=e,v()):y},b.unknown=function(e){return arguments.length?(r=e,b):r},function(r,n){return e=r,t=n,v()}}function y(){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(1983),i=r(1984),o=r(1986);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(1983),i=r(1985);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(1990),i=r(1991),o=r(1992),a=r(1995),s=r(2004),c=r(2005);function u(e,t,r,u){var l,p=(0,n.tickStep)(e,t,r);switch((u=(0,i.default)(null==u?",f":u)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=u.precision||isNaN(l=(0,o.default)(p,f))||(u.precision=l),(0,a.formatPrefix)(u,f);case"":case"e":case"g":case"p":case"r":null!=u.precision||isNaN(l=(0,s.default)(p,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)(p))||(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 p,f,h;return c<0?(h=Math.pow(10,-c)/l,p=Math.round(e*h),f=Math.round(t*h),p/h<e&&++p,f/h>t&&--f,h=-h):(h=Math.pow(10,c)*l,p=Math.round(e/h),f=Math.round(t/h),p*h<e&&++p,f*h>t&&--f),f<p&&.5<=r&&r<2?a(e,t,2*r):[p,f,h]}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(1993);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(1994);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(1996);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:()=>h});var n=r(1993),i=r(1997),o=r(1998),a=r(1991),s=r(1999),c=r(2e3),u=r(2001),l=r(2003),p=Array.prototype.map,f=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function h(e){var t=void 0===e.grouping||void 0===e.thousands?l.default:(0,i.default)(p.call(e.grouping,Number),e.thousands+""),r=void 0===e.currency?"":e.currency[0]+"",h=void 0===e.currency?"":e.currency[1]+"",d=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?l.default:(0,o.default)(p.call(e.numerals,String)),y=void 0===e.percent?"%":e.percent+"",g=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,p=e.zero,b=e.width,S=e.comma,_=e.precision,E=e.trim,w=e.type;"n"===w?(S=!0,w="g"):c.default[w]||(void 0===_&&(_=12),E=!0,w="g"),(p||"0"===n&&"="===i)&&(p=!0,n="0",i="=");var x="$"===l?r:"#"===l&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",O="$"===l?h:/[%p]/.test(w)?y:"",T=c.default[w],P=/[defgprs%]/.test(w);function C(e){var r,a,c,l=x,h=O;if("c"===w)h=T(e)+h,e="";else{var y=(e=+e)<0||1/e<0;if(e=isNaN(e)?v:T(Math.abs(e),_),E&&(e=(0,s.default)(e)),y&&0==+e&&"+"!==o&&(y=!1),l=(y?"("===o?o:g:"-"===o||"("===o?"":o)+l,h=("s"===w?f[8+u.prefixExponent/3]:"")+h+(y&&"("===o?")":""),P)for(r=-1,a=e.length;++r<a;)if(48>(c=e.charCodeAt(r))||c>57){h=(46===c?d+e.slice(r+1):e.slice(r))+h,e=e.slice(0,r);break}}S&&!p&&(e=t(e,1/0));var C=l.length+e.length+h.length,A=C<b?new Array(b-C+1).join(n):"";switch(S&&p&&(e=t(A+e,A.length?b-h.length:1/0),A=""),i){case"<":e=l+e+h+A;break;case"=":e=l+A+e+h;break;case"^":e=A.slice(0,C=A.length>>1)+l+e+h+A.slice(C);break;default:e=A+l+e+h}return m(e)}return _=void 0===_?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),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=f[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(1994),i=r(2001),o=r(2002);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(1994);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(1994);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(1993);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(1993);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(2009),i=r(1988),o=r(2007);function a(){var e,t,r=(0,o.default)().unknown(void 0),s=r.domain,c=r.range,u=0,l=1,p=!1,f=0,h=0,d=.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-f+2*h),p&&(e=Math.floor(e)),o+=(a-o-e*(r-f))*d,t=e*(1-f),p&&(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,p=!0,m()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(p=!!e,m()):p},r.padding=function(e){return arguments.length?(f=Math.min(1,h=+e),m()):f},r.paddingInner=function(e){return arguments.length?(f=Math.min(1,e),m()):f},r.paddingOuter=function(e){return arguments.length?(h=+e,m()):h},r.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),m()):d},r.copy=function(){return a(s(),[u,l]).round(p).paddingInner(f).paddingOuter(h).align(d)},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(2008),i=r(1988);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:()=>y,loggish:()=>m});var n=r(1990),i=r(1991),o=r(1995),a=r(2011),s=r(1979),c=r(1988);function u(e){return Math.log(e)}function l(e){return Math.exp(e)}function p(e){return-Math.log(-e)}function f(e){return-Math.exp(-e)}function h(e){return isFinite(e)?+("1e"+e):e<0?0:e}function d(e){return(t,r)=>-e(-t,r)}function m(e){const t=e(u,l),r=t.domain;let s,c,m=10;function y(){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?h:e===Math.E?Math.exp:t=>Math.pow(e,t)}(m),r()[0]<0?(s=d(s),c=d(c),e(p,f)):e(u,l),t}return t.base=function(e){return arguments.length?(m=+e,y()):m},t.domain=function(e){return arguments.length?(r(e),y()):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,p=s(i),f=s(o);const h=null==e?10:+e;let d=[];if(!(m%1)&&f-p<h){if(p=Math.floor(p),f=Math.ceil(f),i>0){for(;p<=f;++p)for(u=1;u<m;++u)if(l=p<0?u/c(-p):u*c(p),!(l<i)){if(l>o)break;d.push(l)}}else for(;p<=f;++p)for(u=m-1;u>=1;--u)if(l=p>0?u/c(-p):u*c(p),!(l<i)){if(l>o)break;d.push(l)}2*d.length<h&&(d=(0,n.default)(i,o,h))}else d=(0,n.default)(p,f,Math.min(f-p,h)).map(c);return a?d.reverse():d},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 y(){const e=m((0,s.transformer)()).domain([1,10]);return e.copy=()=>(0,s.copy)(e,y()).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:()=>g,default:()=>v});var n=r(2013),i=r(2023),o=r(2022),a=r(2021),s=r(2020),c=r(2019),u=r(2018),l=r(2017),p=r(2024),f=r(1979),h=r(1988),d=r(2011);function m(e){return new Date(e)}function y(e){return e instanceof Date?+e:+new Date(+e)}function g(e,t,r,n,i,o,a,s,c,u){var l=(0,f.default)(),p=l.invert,h=l.domain,v=u(".%L"),b=u(":%S"),S=u("%I:%M"),_=u("%I %p"),E=u("%a %d"),w=u("%b %d"),x=u("%B"),O=u("%Y");function T(e){return(c(e)<e?v:s(e)<e?b:a(e)<e?S:o(e)<e?_:n(e)<e?i(e)<e?E:w:r(e)<e?x:O)(e)}return l.invert=function(e){return new Date(p(e))},l.domain=function(e){return arguments.length?h(Array.from(e,y)):h().map(m)},l.ticks=function(t){var r=h();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=h();return e&&"function"==typeof e.range||(e=t(r[0],r[r.length-1],null==e?10:e)),e?h((0,d.default)(r,e)):l},l.copy=function(){return(0,f.copy)(l,g(e,t,r,n,i,o,a,s,c,u))},l}function v(){return h.initRange.apply(g(n.timeTicks,n.timeTickInterval,i.timeYear,o.timeMonth,a.timeSunday,s.timeDay,c.timeHour,u.timeMinute,l.second,p.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:()=>g,utcTickInterval:()=>y,utcTicks:()=>m});var n=r(1984),i=r(1990),o=r(2014),a=r(2015),s=r(2017),c=r(2018),u=r(2019),l=r(2020),p=r(2021),f=r(2022),h=r(2023);function d(e,t,r,c,u,l){const p=[[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 f(t,r,s){const c=Math.abs(r-t)/s,u=(0,n.default)((([,,e])=>e)).right(p,c);if(u===p.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,f]=p[c/p[u-1][2]<p[u][2]/c?u-1:u];return l.every(f)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const i=r&&"function"==typeof r.range?r:f(e,t,r),o=i?i.range(e,+t+1):[];return n?o.reverse():o},f]}const[m,y]=d(h.utcYear,f.utcMonth,p.utcSunday,l.unixDay,u.utcHour,c.utcMinute),[g,v]=d(h.timeYear,f.timeMonth,p.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(2016);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(2016),i=r(2014);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(2016),i=r(2014);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(2016),i=r(2014);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(2016),i=r(2014);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:()=>p,timeFridays:()=>v,timeMonday:()=>s,timeMondays:()=>d,timeSaturday:()=>f,timeSaturdays:()=>b,timeSunday:()=>a,timeSundays:()=>h,timeThursday:()=>l,timeThursdays:()=>g,timeTuesday:()=>c,timeTuesdays:()=>m,timeWednesday:()=>u,timeWednesdays:()=>y,utcFriday:()=>T,utcFridays:()=>D,utcMonday:()=>E,utcMondays:()=>A,utcSaturday:()=>P,utcSaturdays:()=>M,utcSunday:()=>_,utcSundays:()=>C,utcThursday:()=>O,utcThursdays:()=>I,utcTuesday:()=>w,utcTuesdays:()=>k,utcWednesday:()=>x,utcWednesdays:()=>R});var n=r(2016),i=r(2014);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),p=o(5),f=o(6),h=a.range,d=s.range,m=c.range,y=u.range,g=l.range,v=p.range,b=f.range;function S(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=S(1),w=S(2),x=S(3),O=S(4),T=S(5),P=S(6),C=_.range,A=E.range,k=w.range,R=x.range,I=O.range,D=T.range,M=P.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeMonth:()=>i,timeMonths:()=>o,utcMonth:()=>a,utcMonths:()=>s});var n=r(2016);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(2016);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(2025);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(2021),i=r(2020),o=r(2023);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,p=e.days,f=e.shortDays,h=e.months,d=e.shortMonths,m=y(u),Y=g(u),me=y(p),Pe=g(p),Ce=y(f),Ae=g(f),ke=y(h),Re=g(h),Ie=y(d),De=g(d),Me={a:function(e){return f[e.getDay()]},A:function(e){return p[e.getDay()]},b:function(e){return d[e.getMonth()]},B:function(e){return h[e.getMonth()]},c:null,d:j,e:j,f:H,g:ee,G:re,H:B,I:U,j:V,L:z,m:q,M:G,p:function(e){return u[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Oe,s:Te,S:W,u:K,U:$,V:X,w:Q,W:J,x:null,X:null,y:Z,Y:te,Z:ne,"%":xe},Ne={a:function(e){return f[e.getUTCDay()]},A:function(e){return p[e.getUTCDay()]},b:function(e){return d[e.getUTCMonth()]},B:function(e){return h[e.getUTCMonth()]},c:null,d:ie,e:ie,f:ue,g:Se,G:Ee,H:oe,I:ae,j:se,L:ce,m:le,M:pe,p:function(e){return u[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Oe,s:Te,S:fe,u:he,U:de,V:ye,w:ge,W:ve,x:null,X:null,y:be,Y:_e,Z:we,"%":xe},Fe={a:function(e,t,r){var n=Ce.exec(t.slice(r));return n?(e.w=Ae.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=Pe.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=Ie.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=ke.exec(t.slice(r));return n?(e.m=Re.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return Be(e,t,r,n)},d:C,e:C,f:M,g:x,G:w,H:k,I:k,j:A,L:D,m:P,M:R,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:F,s:L,S:I,u:b,U:S,V:_,w:v,W:E,x:function(e,t,n){return Be(e,r,t,n)},X:function(e,t,r){return Be(e,o,t,r)},y:x,Y:w,Z:O,"%":N};function Le(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 je(e,t){return function(r){var o,u,l=c(1900,void 0,1);if(Be(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 Be(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=Fe[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 Me.x=Le(r,Me),Me.X=Le(o,Me),Me.c=Le(t,Me),Ne.x=Le(r,Ne),Ne.X=Le(o,Ne),Ne.c=Le(t,Ne),{format:function(e){var t=Le(e+="",Me);return t.toString=function(){return e},t},parse:function(e){var t=je(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Le(e+="",Ne);return t.toString=function(){return e},t},utcParse:function(e){var t=je(e+="",!0);return t.toString=function(){return e},t}}}var l={"-":"",_:" ",0:"0"},p=/^\s*\d+/,f=/^%/,h=/[\\^$*+?|[\]().{}]/g;function d(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(h,"\\$&")}function y(e){return new RegExp("^(?:"+e.map(m).join("|")+")","i")}function g(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function v(e,t,r){var n=p.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function b(e,t,r){var n=p.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function S(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function _(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function E(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function w(e,t,r){var n=p.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function x(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function O(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=p.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function P(e,t,r){var n=p.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=p.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function A(e,t,r){var n=p.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function k(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function R(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function I(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function D(e,t,r){var n=p.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function M(e,t,r){var n=p.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function N(e,t,r){var n=f.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function F(e,t,r){var n=p.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function L(e,t,r){var n=p.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function j(e,t){return d(e.getDate(),t,2)}function B(e,t){return d(e.getHours(),t,2)}function U(e,t){return d(e.getHours()%12||12,t,2)}function V(e,t){return d(1+i.timeDay.count((0,o.timeYear)(e),e),t,3)}function z(e,t){return d(e.getMilliseconds(),t,3)}function H(e,t){return z(e,t)+"000"}function q(e,t){return d(e.getMonth()+1,t,2)}function G(e,t){return d(e.getMinutes(),t,2)}function W(e,t){return d(e.getSeconds(),t,2)}function K(e){var t=e.getDay();return 0===t?7:t}function $(e,t){return d(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 X(e,t){return e=Y(e),d(n.timeThursday.count((0,o.timeYear)(e),e)+(4===(0,o.timeYear)(e).getDay()),t,2)}function Q(e){return e.getDay()}function J(e,t){return d(n.timeMonday.count((0,o.timeYear)(e)-1,e),t,2)}function Z(e,t){return d(e.getFullYear()%100,t,2)}function ee(e,t){return d((e=Y(e)).getFullYear()%100,t,2)}function te(e,t){return d(e.getFullYear()%1e4,t,4)}function re(e,t){var r=e.getDay();return d((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,"+"))+d(t/60|0,"0",2)+d(t%60,"0",2)}function ie(e,t){return d(e.getUTCDate(),t,2)}function oe(e,t){return d(e.getUTCHours(),t,2)}function ae(e,t){return d(e.getUTCHours()%12||12,t,2)}function se(e,t){return d(1+i.utcDay.count((0,o.utcYear)(e),e),t,3)}function ce(e,t){return d(e.getUTCMilliseconds(),t,3)}function ue(e,t){return ce(e,t)+"000"}function le(e,t){return d(e.getUTCMonth()+1,t,2)}function pe(e,t){return d(e.getUTCMinutes(),t,2)}function fe(e,t){return d(e.getUTCSeconds(),t,2)}function he(e){var t=e.getUTCDay();return 0===t?7:t}function de(e,t){return d(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 ye(e,t){return e=me(e),d(n.utcThursday.count((0,o.utcYear)(e),e)+(4===(0,o.utcYear)(e).getUTCDay()),t,2)}function ge(e){return e.getUTCDay()}function ve(e,t){return d(n.utcMonday.count((0,o.utcYear)(e)-1,e),t,2)}function be(e,t){return d(e.getUTCFullYear()%100,t,2)}function Se(e,t){return d((e=me(e)).getUTCFullYear()%100,t,2)}function _e(e,t){return d(e.getUTCFullYear()%1e4,t,4)}function Ee(e,t){var r=e.getUTCDay();return d((e=r>=4||0===r?(0,n.utcThursday)(e):n.utcThursday.ceil(e)).getUTCFullYear()%1e4,t,4)}function we(){return"+0000"}function xe(){return"%"}function Oe(e){return+e}function Te(e){return Math.floor(+e/1e3)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(2013),i=r(2023),o=r(2022),a=r(2021),s=r(2020),c=r(2019),u=r(2018),l=r(2017),p=r(2024),f=r(2012),h=r(1988);function d(){return h.initRange.apply((0,f.calendar)(n.utcTicks,n.utcTickInterval,i.utcYear,o.utcMonth,a.utcSunday,s.utcDay,c.utcHour,u.utcMinute,l.second,p.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(285),i=r(596),o=r.n(i),a=r(1938),s=r(2032),c=r(2029),u=r(1927),l=r(1968),p=r(2031);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 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 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 m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(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=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 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){S(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 S(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-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 x(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 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&&m(e,t)}(u,e);var t,r,i,o=y(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,f=t.center,d=t.data,m=t.disableSeries,y=t.hideSeries,g=t.marginLeft,v=t.marginTop,S=t.padAngle,E=t.style;if(!d)return null;if(i){var w=d.map((function(e){return b({},e)}));return n.default.createElement("g",{className:"rv-xy-plot__series--arc__animation-wrapper"},n.default.createElement(a.default,h({},this.props,{animatedProps:c.ANIMATED_SERIES_PROPS,data:w}),n.default.createElement(u,h({},this.props,{animation:null,disableSeries:!0,data:w}))),n.default.createElement(u,h({},this.props,{animation:null,hideSeries:!0,style:{stroke:"red"}})))}var O=this.state.scaleProps,T=O.radiusDomain,P=(0,l.getAttributeFunctor)(O,"radius"),C=(0,l.getAttr0Functor)(O,"radius"),A=(0,l.getAttributeFunctor)(O,"angle"),k=(0,l.getAttr0Functor)(O,"angle"),R=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),I=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),D=this._getAttributeFunctor("opacity"),M=this._getAttributeFunctor("x"),N=this._getAttributeFunctor("y");return n.default.createElement("g",{className:(0,p.getCombinedClassName)(_,o),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,opacity:y?0:1,pointerEvents:m?"none":"all",transform:"translate(".concat(g+M(f),",").concat(v+N(f),")")},d.map((function(t,i){var o={innerRadius:T[1]===T[0]?0:C(t),outerRadius:P(t),startAngle:k(t)||0,endAngle:A(t)},a=(0,s.default)().padAngle(S),c=t.style||{},u=t.className||"";return n.default.createElement("path",{key:"path-".concat(i),style:b(b({opacity:D&&D(t),stroke:I&&I(t),fill:R&&R(t)},E),c),onClick:function(r){return e._valueClickHandler(x(t),r)},onContextMenu:function(r){return e._valueRightClickHandler(x(t),r)},onMouseOver:function(r){return e._valueMouseOverHandler(x(t),r)},onMouseOut:function(r){return e._valueMouseOutHandler(x(t),r)},className:"".concat(_,"-path ").concat(r," ").concat(u),d:a(o)})})))}}])&&d(t.prototype,r),i&&d(t,i),u}(u.default);O.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])}),O.defaultProps=w,O.displayName="ArcSeries";const T=O},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ANIMATED_SERIES_PROPS:()=>d,getRadialDomain:()=>h,getSeriesChildren:()=>l,getSeriesPropsFromChildren:()=>f,getStackParams:()=>m,getStackedData:()=>p,isSeriesChild:()=>u});var n=r(285),i=r(1927),o=r(2030);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 p(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,p=void 0===l?"default":l,f=a.stack,h=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||!h||!h.length||r&&!f)return e.push(h),e;var d="".concat(t,"0"),m="y"===t?"x":"y";return e.push(h.map((function(e){var r,i;n[p]||(n[p]={}),n[p][o]||(n[p][o]={});var a,u=n[p][o][e[m]];if(!u)return n[p][o][e[m]]=(c(a={},d,e[d]),c(a,t,e[t]),a),s({},e);var l=s(s({},e),{},(c(r={},d,u[t]),c(r,t,u[t]+e[t]-(e[d]||0)),r));return n[p][o][e[m]]=(c(i={},d,l[d]),c(i,t,l[t]),i),l}))),e}),[])}function f(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 h(e){return e.reduce((function(e,t){return Math.max(t.radius,e)}),0)}var d=["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:()=>p,DEFAULT_OPACITY:()=>u,DEFAULT_SIZE:()=>l,DEFAULT_TICK_SIZE:()=>f,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,p=n[0],f=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:()=>f});var n=r(2033),i=r(2034),o=r(2035);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 p(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),p=l*u,f=-l*c,h=e+p,d=t+f,m=r+p,y=n+f,g=(h+m)/2,v=(d+y)/2,b=m-h,S=y-d,_=b*b+S*S,E=o-a,w=h*y-m*d,x=(S<0?-1:1)*(0,i.sqrt)((0,i.max)(0,E*E*_-w*w)),O=(w*S-b*x)/_,T=(-w*b-S*x)/_,P=(w*S+b*x)/_,C=(-w*b+S*x)/_,A=O-g,k=T-v,R=P-g,I=C-v;return A*A+k*k>R*R+I*I&&(O=P,T=C),{cx:O,cy:T,x01:-p,y01:-f,x11:O*(o/E-1),y11:T*(o/E-1)}}function f(){var e=a,t=s,r=(0,n.default)(0),f=null,h=c,d=u,m=l,y=null,g=(0,o.withPath)(v);function v(){var n,o,a=+e.apply(this,arguments),s=+t.apply(this,arguments),c=h.apply(this,arguments)-i.halfPi,u=d.apply(this,arguments)-i.halfPi,l=(0,i.abs)(u-c),v=u>c;if(y||(y=n=g()),s<a&&(o=s,s=a,a=o),s>i.epsilon)if(l>i.tau-i.epsilon)y.moveTo(s*(0,i.cos)(c),s*(0,i.sin)(c)),y.arc(0,0,s,c,u,!v),a>i.epsilon&&(y.moveTo(a*(0,i.cos)(u),a*(0,i.sin)(u)),y.arc(0,0,a,u,c,v));else{var b,S,_=c,E=u,w=c,x=u,O=l,T=l,P=m.apply(this,arguments)/2,C=P>i.epsilon&&(f?+f.apply(this,arguments):(0,i.sqrt)(a*a+s*s)),A=(0,i.min)((0,i.abs)(s-a)/2,+r.apply(this,arguments)),k=A,R=A;if(C>i.epsilon){var I=(0,i.asin)(C/a*(0,i.sin)(P)),D=(0,i.asin)(C/s*(0,i.sin)(P));(O-=2*I)>i.epsilon?(w+=I*=v?1:-1,x-=I):(O=0,w=x=(c+u)/2),(T-=2*D)>i.epsilon?(_+=D*=v?1:-1,E-=D):(T=0,_=E=(c+u)/2)}var M=s*(0,i.cos)(_),N=s*(0,i.sin)(_),F=a*(0,i.cos)(x),L=a*(0,i.sin)(x);if(A>i.epsilon){var j,B=s*(0,i.cos)(E),U=s*(0,i.sin)(E),V=a*(0,i.cos)(w),z=a*(0,i.sin)(w);if(l<i.pi)if(j=function(e,t,r,n,o,a,s,c){var u=r-e,l=n-t,p=s-o,f=c-a,h=f*u-p*l;if(!(h*h<i.epsilon))return[e+(h=(p*(t-a)-f*(e-o))/h)*u,t+h*l]}(M,N,V,z,B,U,F,L)){var H=M-j[0],q=N-j[1],G=B-j[0],W=U-j[1],K=1/(0,i.sin)((0,i.acos)((H*G+q*W)/((0,i.sqrt)(H*H+q*q)*(0,i.sqrt)(G*G+W*W)))/2),$=(0,i.sqrt)(j[0]*j[0]+j[1]*j[1]);k=(0,i.min)(A,(a-$)/(K-1)),R=(0,i.min)(A,(s-$)/(K+1))}else k=R=0}T>i.epsilon?R>i.epsilon?(b=p(V,z,M,N,s,R,v),S=p(B,U,F,L,s,R,v),y.moveTo(b.cx+b.x01,b.cy+b.y01),R<A?y.arc(b.cx,b.cy,R,(0,i.atan2)(b.y01,b.x01),(0,i.atan2)(S.y01,S.x01),!v):(y.arc(b.cx,b.cy,R,(0,i.atan2)(b.y01,b.x01),(0,i.atan2)(b.y11,b.x11),!v),y.arc(0,0,s,(0,i.atan2)(b.cy+b.y11,b.cx+b.x11),(0,i.atan2)(S.cy+S.y11,S.cx+S.x11),!v),y.arc(S.cx,S.cy,R,(0,i.atan2)(S.y11,S.x11),(0,i.atan2)(S.y01,S.x01),!v))):(y.moveTo(M,N),y.arc(0,0,s,_,E,!v)):y.moveTo(M,N),a>i.epsilon&&O>i.epsilon?k>i.epsilon?(b=p(F,L,B,U,a,-k,v),S=p(M,N,V,z,a,-k,v),y.lineTo(b.cx+b.x01,b.cy+b.y01),k<A?y.arc(b.cx,b.cy,k,(0,i.atan2)(b.y01,b.x01),(0,i.atan2)(S.y01,S.x01),!v):(y.arc(b.cx,b.cy,k,(0,i.atan2)(b.y01,b.x01),(0,i.atan2)(b.y11,b.x11),!v),y.arc(0,0,a,(0,i.atan2)(b.cy+b.y11,b.cx+b.x11),(0,i.atan2)(S.cy+S.y11,S.cx+S.x11),v),y.arc(S.cx,S.cy,k,(0,i.atan2)(S.y11,S.x11),(0,i.atan2)(S.y01,S.x01),!v))):y.arc(0,0,a,x,w,v):y.lineTo(F,L)}else y.moveTo(0,0);if(y.closePath(),n)return y=null,n+""||null}return v.centroid=function(){var r=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,n=(+h.apply(this,arguments)+ +d.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?(f=null==e?null:"function"==typeof e?e:(0,n.default)(+e),v):f},v.startAngle=function(e){return arguments.length?(h="function"==typeof e?e:(0,n.default)(+e),v):h},v.endAngle=function(e){return arguments.length?(d="function"==typeof e?e:(0,n.default)(+e),v):d},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?(y=null==e?null:e,v):y},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:()=>d,asin:()=>m,atan2:()=>i,cos:()=>o,epsilon:()=>l,halfPi:()=>f,max:()=>a,min:()=>s,pi:()=>p,sin:()=>c,sqrt:()=>u,tau:()=>h});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,p=Math.PI,f=p/2,h=2*p;function d(e){return e>1?0:e<-1?p:Math.acos(e)}function m(e){return e>=1?f:e<=-1?-f:Math.asin(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{withPath:()=>i});var n=r(2036);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,p=s-e,f=c-t,h=p*p+f*f;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(h>o)if(Math.abs(f*u-l*p)>o&&a){let d=r-s,m=i-c,y=u*u+l*l,g=d*d+m*m,v=Math.sqrt(y),b=Math.sqrt(h),S=a*Math.tan((n-Math.acos((y+h-g)/(2*v*b)))/2),_=S/b,E=S/v;Math.abs(_-1)>o&&this._append`L${e+_*p},${t+_*f}`,this._append`A${a},${a},0,0,${+(f*d>p*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),p=r*Math.sin(s),f=e+l,h=t+p,d=1^u,m=u?s-c:c-s;null===this._x1?this._append`M${f},${h}`:(Math.abs(this._x1-f)>o||Math.abs(this._y1-h)>o)&&this._append`L${f},${h}`,r&&(m<0&&(m=m%i+i),m>a?this._append`A${r},${r},0,1,${d},${e-l},${t-p}A${r},${r},0,1,${d},${this._x1=f},${this._y1=h}`:m>o&&this._append`A${r},${r},0,${+(m>=n)},${d},${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:()=>x});var n=r(285),i=r(596),o=r.n(i),a=r(2039),s=r(2038),c=r(1938),u=r(2030),l=r(2029),p=r(1976),f=r(2031),h=r(1927);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 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 y(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){g(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 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 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 S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(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=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"===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 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&&S(e,t)}(h,e);var t,r,i,o=_(h);function h(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),o.apply(this,arguments)}return t=h,(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,d=e.style;if(this.props.nullAccessor&&(0,p.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(h,v({},this.props,{animation:null})));var m=this._getAttributeFunctor("x"),g=this._getAttributeFunctor("y"),b=this._getAttr0Functor("y"),S=this._getAttributeValue("stroke")||this._getAttributeValue("color"),_=this._getAttributeValue("fill")||this._getAttributeValue("color"),E=this._getAttributeValue("opacity"),w=Number.isFinite(E)?E:u.DEFAULT_OPACITY,x=this.props.nullAccessor||this.props.getNull,O=this._renderArea(o,m,b,g,i,x);return n.default.createElement("path",{d:O,className:(0,f.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:y({opacity:w,stroke:S,fill:_},d)})}}])&&b(t.prototype,r),i&&b(t,i),h}(h.default);w.displayName="AreaSeries",w.propTypes=y(y({},h.default.propTypes),{},{getNull:o().func}),w.defaultProps=y(y({},h.default.defaultProps),{},{getNull:function(){return!0}});const x=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{arc:()=>n.default,area:()=>i.default,areaRadial:()=>s.default,curveBasis:()=>P.default,curveBasisClosed:()=>O.default,curveBasisOpen:()=>T.default,curveBumpX:()=>C.bumpX,curveBumpY:()=>C.bumpY,curveBundle:()=>A.default,curveCardinal:()=>I.default,curveCardinalClosed:()=>k.default,curveCardinalOpen:()=>R.default,curveCatmullRom:()=>N.default,curveCatmullRomClosed:()=>D.default,curveCatmullRomOpen:()=>M.default,curveLinear:()=>L.default,curveLinearClosed:()=>F.default,curveMonotoneX:()=>j.monotoneX,curveMonotoneY:()=>j.monotoneY,curveNatural:()=>B.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:()=>V.default,stackOffsetDiverging:()=>H.default,stackOffsetExpand:()=>z.default,stackOffsetNone:()=>q.default,stackOffsetSilhouette:()=>G.default,stackOffsetWiggle:()=>W.default,stackOrderAppearance:()=>K.default,stackOrderAscending:()=>$.default,stackOrderDescending:()=>Y.default,stackOrderInsideOut:()=>X.default,stackOrderNone:()=>Q.default,stackOrderReverse:()=>J.default,symbol:()=>p.default,symbolAsterisk:()=>f.default,symbolCircle:()=>h.default,symbolCross:()=>d.default,symbolDiamond:()=>m.default,symbolDiamond2:()=>y.default,symbolPlus:()=>g.default,symbolSquare:()=>v.default,symbolSquare2:()=>b.default,symbolStar:()=>S.default,symbolTimes:()=>x.default,symbolTriangle:()=>_.default,symbolTriangle2:()=>E.default,symbolWye:()=>w.default,symbolX:()=>x.default,symbols:()=>p.symbolsFill,symbolsFill:()=>p.symbolsFill,symbolsStroke:()=>p.symbolsStroke});var n=r(2032),i=r(2039),o=r(2042),a=r(2044),s=r(2047),c=r(2049),u=r(2050),l=r(2051),p=r(2053),f=r(2054),h=r(2055),d=r(2056),m=r(2057),y=r(2058),g=r(2059),v=r(2060),b=r(2061),S=r(2062),_=r(2063),E=r(2064),w=r(2065),x=r(2066),O=r(2067),T=r(2070),P=r(2069),C=r(2052),A=r(2071),k=r(2072),R=r(2074),I=r(2073),D=r(2075),M=r(2077),N=r(2076),F=r(2078),L=r(2041),j=r(2079),B=r(2080),U=r(2081),V=r(2082),z=r(2085),H=r(2086),q=r(2083),G=r(2087),W=r(2088),K=r(2089),$=r(2090),Y=r(2091),X=r(2092),Q=r(2084),J=r(2093)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(2040),i=r(2033),o=r(2041),a=r(2042),s=r(2035),c=r(2043);function u(e,t,r){var u=null,l=(0,i.default)(!0),p=null,f=o.default,h=null,d=(0,s.withPath)(m);function m(i){var o,a,s,c,m,y=(i=(0,n.default)(i)).length,g=!1,v=new Array(y),b=new Array(y);for(null==p&&(h=f(m=d())),o=0;o<=y;++o){if(!(o<y&&l(c=i[o],o,i))===g)if(g=!g)a=o,h.areaStart(),h.lineStart();else{for(h.lineEnd(),h.lineStart(),s=o-1;s>=a;--s)h.point(v[s],b[s]);h.lineEnd(),h.areaEnd()}g&&(v[o]=+e(c,o,i),b[o]=+t(c,o,i),h.point(u?+u(c,o,i):v[o],r?+r(c,o,i):b[o]))}if(m)return h=null,m+""||null}function y(){return(0,a.default)().defined(l).curve(f).context(p)}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 y().x(e).y(t)},m.lineY1=function(){return y().x(e).y(r)},m.lineX1=function(){return y().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?(f=e,null!=p&&(h=f(p)),m):f},m.context=function(e){return arguments.length?(null==e?p=h=null:h=f(p=e),m):p},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(2040),i=r(2033),o=r(2041),a=r(2035),s=r(2043);function c(e,t){var r=(0,i.default)(!0),c=null,u=o.default,l=null,p=(0,a.withPath)(f);function f(i){var o,a,s,f=(i=(0,n.default)(i)).length,h=!1;for(null==c&&(l=u(s=p())),o=0;o<=f;++o)!(o<f&&r(a=i[o],o,i))===h&&((h=!h)?l.lineStart():l.lineEnd()),h&&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),f.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(+t),f):e},f.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.default)(+e),f):t},f.defined=function(e){return arguments.length?(r="function"==typeof e?e:(0,i.default)(!!e),f):r},f.curve=function(e){return arguments.length?(u=e,null!=c&&(l=u(c)),f):u},f.context=function(e){return arguments.length?(null==e?c=l=null:l=u(c=e),f):c},f}},(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(2040),i=r(2033),o=r(2045),a=r(2046),s=r(2034);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 p(i){var o,a,p,f,h,d=(i=(0,n.default)(i)).length,m=0,y=new Array(d),g=new Array(d),v=+c.apply(this,arguments),b=Math.min(s.tau,Math.max(-s.tau,u.apply(this,arguments)-v)),S=Math.min(Math.abs(b)/d,l.apply(this,arguments)),_=S*(b<0?-1:1);for(o=0;o<d;++o)(h=g[y[o]=o]=+e(i[o],o,i))>0&&(m+=h);for(null!=t?y.sort((function(e,r){return t(g[e],g[r])})):null!=r&&y.sort((function(e,t){return r(i[e],i[t])})),o=0,p=m?(b-d*_)/m:0;o<d;++o,v=f)a=y[o],f=v+((h=g[a])>0?h*p:0)+_,g[a]={data:i[a],index:o,value:h,startAngle:v,endAngle:f,padAngle:S};return g}return p.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(+t),p):e},p.sortValues=function(e){return arguments.length?(t=e,r=null,p):t},p.sort=function(e){return arguments.length?(r=e,t=null,p):r},p.startAngle=function(e){return arguments.length?(c="function"==typeof e?e:(0,i.default)(+e),p):c},p.endAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.default)(+e),p):u},p.padAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,i.default)(+e),p):l},p}},(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(2048),i=r(2039),o=r(2049);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(2041).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(2048),i=r(2042);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:()=>p,linkRadial:()=>h,linkVertical:()=>f});var n=r(2040),i=r(2033),o=r(2052),a=r(2035),s=r(2043);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,p=null,f=null,h=(0,a.withPath)(d);function d(){let i;const a=n.slice.call(arguments),s=t.apply(this,a),c=r.apply(this,a);if(null==p&&(f=e(i=h())),f.lineStart(),a[0]=s,f.point(+o.apply(this,a),+l.apply(this,a)),a[0]=c,f.point(+o.apply(this,a),+l.apply(this,a)),f.lineEnd(),i)return f=null,i+""||null}return d.source=function(e){return arguments.length?(t=e,d):t},d.target=function(e){return arguments.length?(r=e,d):r},d.x=function(e){return arguments.length?(o="function"==typeof e?e:(0,i.default)(+e),d):o},d.y=function(e){return arguments.length?(l="function"==typeof e?e:(0,i.default)(+e),d):l},d.context=function(t){return arguments.length?(null==t?p=f=null:f=e(p=t),d):p},d}function p(){return l(o.bumpX)}function f(){return l(o.bumpY)}function h(){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(2050);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:()=>S,symbolsFill:()=>v,symbolsStroke:()=>b});var n=r(2033),i=r(2035),o=r(2054),a=r(2055),s=r(2056),c=r(2057),u=r(2058),l=r(2059),p=r(2060),f=r(2061),h=r(2062),d=r(2063),m=r(2064),y=r(2065),g=r(2066);const v=[a.default,s.default,c.default,p.default,h.default,d.default,y.default],b=[a.default,l.default,g.default,m.default,o.default,f.default,u.default];function S(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(2034);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(2034);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(2034);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(2034);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(2034);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(2034);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(2034);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(2034);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(2034);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(2034);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(2034);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(2034);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,p=r*a+r,f=-l,h=p;e.moveTo(c,u),e.lineTo(l,p),e.lineTo(f,h),e.lineTo(i*c-o*u,o*c+i*u),e.lineTo(i*l-o*p,o*l+i*p),e.lineTo(i*f-o*h,o*f+i*h),e.lineTo(i*c+o*u,i*u-o*c),e.lineTo(i*l+o*p,i*p-o*l),e.lineTo(i*f+o*h,i*h-o*f),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2034);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(2068),i=r(2069);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(2069);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(2069);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(2068),i=r(2073);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(2073);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(2072),i=r(2068),o=r(2076);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(2034),i=r(2073);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,p=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/p,s=(s*l+e._y1*e._l23_2a-r*e._l12_2a)/p}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(2074),i=r(2076);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(2068);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 p(e){return new c(e)}r.r(t),r.d(t,{monotoneX:()=>l,monotoneY:()=>p}),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(2040),i=r(2033),o=r(2083),a=r(2084);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,p=-1;for(const e of i)for(o=0,++p;o<l;++o)(s[o][p]=[0,+u(e,s[o].key,p,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(2083);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(2083);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(2083);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 p=e[t[c]],f=p[s][1]||0,h=(f-(p[s-1][1]||0))/2,d=0;d<c;++d){var m=e[t[d]];h+=(m[s][1]||0)-(m[s-1][1]||0)}u+=f,l+=h*f}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(2084);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(2084);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(2090);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(2089),i=r(2090);function o(e){var t,r,o=e.length,a=e.map(i.sum),s=(0,n.default)(e),c=0,u=0,l=[],p=[];for(t=0;t<o;++t)r=s[t],c<u?(c+=a[r],l.push(r)):(u+=a[r],p.push(r));return p.reverse().concat(l)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2084);function i(e){return(0,n.default)(e).reverse()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(285),i=r(596),o=r.n(i),a=r(2031);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},p="rv-xy-plot__borders-bottom",f="rv-xy-plot__borders",h="rv-xy-plot__borders-left",d="rv-xy-plot__borders-right",m="rv-xy-plot__borders-top";function y(e){var t=e.marginTop,r=e.marginBottom,i=e.marginLeft,o=e.marginRight,s=e.innerWidth,u=e.innerHeight,l=e.style,y=e.className,g=u+t+r,v=s+i+o;return n.default.createElement("g",{className:(0,a.getCombinedClassName)(f,y)},n.default.createElement("rect",{className:(0,a.getCombinedClassName)(p,"".concat(y,"-bottom")),style:c(c({},l.all),l.bottom),x:0,y:g-r,width:v,height:r}),n.default.createElement("rect",{className:(0,a.getCombinedClassName)(h,"".concat(y,"-left")),style:c(c({},l.all),l.left),x:0,y:0,width:i,height:g}),n.default.createElement("rect",{className:(0,a.getCombinedClassName)(d,"".concat(y,"-right")),style:c(c({},l.all),l.right),x:v-o,y:0,width:o,height:g}),n.default.createElement("rect",{className:(0,a.getCombinedClassName)(m,"".concat(y,"-top")),style:c(c({},l.all),l.top),x:0,y:0,width:v,height:t}))}y.displayName="Borders",y.defaultProps={className:"",style:{all:{},bottom:{},left:{},right:{},top:{}}},y.propTypes=l,y.requiresSVG=!0;const g=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(285),i=r(596),o=r.n(i),a=r(2031);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=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"===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 p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var f=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,p=e.style,f=e.text,h=(r+(l?o+s:0))*e.xPercent+(l?0:o),d=(t+(l?c+i:0))*e.yPercent+(l?c:0);return n.default.createElement("g",{transform:"translate(".concat(h,", ").concat(d,")"),className:(0,a.getCombinedClassName)("rv-xy-plot__axis__title",u)},n.default.createElement("text",p,f))}}])&&c(t.prototype,r),i&&c(t,i),s}(n.default.PureComponent);f.displayName="ChartLabel",f.propTypes={className:o().string,includeMargin:o().bool,style:o().object,text:o().string.isRequired,xPercent:o().number.isRequired,yPercent:o().number.isRequired},f.defaultProps={className:"",includeMargin:!0,text:"",xPercent:0,yPercent:0,style:{}};const h=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(285),i=r(596),o=r.n(i),a=r(1968),s=r(1938),c=r(2097);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 p(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){f(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 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 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 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 m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(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=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 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=y(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,h({},this.props,{animatedProps:v}),n.default.createElement(u,h({},this.props,{animation:null})));var o=p(p({},this._getDefaultProps()),this.props),l=o.tickTotal,f=o.tickValues,d=o.marginLeft,m=o.marginTop,y=o.rRange,g=o.style,b=(0,a.getAttributeScale)(o,"x"),S=(0,a.getAttributeScale)(o,"y"),_=(0,c.getTickValues)(b,l,f);return n.default.createElement("g",{transform:"translate(".concat(b(r)+d,",").concat(S(i)+m,")"),className:"rv-xy-plot__circular-grid-lines"},_.reduce((function(e,t,r){var i=b(t);return y&&(i<y[0]||i>y[1])?e:e.concat([n.default.createElement("circle",h({cx:0,cy:0,r:i},{key:r,className:"rv-xy-plot__circular-grid-lines__line",style:g}))])}),[]))}}])&&d(t.prototype,r),i&&d(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 S=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DIRECTION:()=>a,ORIENTATION:()=>o,default:()=>f,generateFit:()=>u,generatePoints:()=>l,getAxisAngle:()=>p,getTickValues:()=>c,getTicksTotalFromSize:()=>s});var n=r(2009),i=r(1978),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,p=s.slope,f=s.offset,h=(l-c)/o,d=(0,i.default)().domain([c,l]).range(a),m=t.x===r.x;return{slope:m?1/0:p,points:(0,n.default)(c,l+h,h).map((function(e){return m?{y:e,x:p*e+f,text:d(e)}:{x:e,y:p*e+f,text:d(e)}})).slice(0,o+1)}}function p(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 f={DIRECTION:a,ORIENTATION:o,getTicksTotalFromSize:s,getTickValues:c}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(285),i=r(596),o=r.n(i),a=r(2099),s=r(2112),c=r(1978),u=r(1927),l=r(1938),p=r(2029),f=r(2031),h=r(2030);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 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 y(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){g(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 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 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 S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(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=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"===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 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&&S(e,t)}(u,e);var t,r,i,o=_(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,d=e.data,m=e.innerHeight,g=e.innerWidth,b=e.marginLeft,S=e.marginTop,_=e.style;if(!d||!g||!m)return null;if(t)return n.default.createElement(l.default,v({},this.props,{animatedProps:p.ANIMATED_SERIES_PROPS}),n.default.createElement(u,v({},this.props,{animation:null})));var E=this._getAttributeFunctor("x"),w=this._getAttributeFunctor("y"),x=(0,a.default)().x((function(e){return E(e)})).y((function(e){return w(e)})).size([g,m]).bandwidth(r)(d),O=(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})}(x),P=T.min,C=T.max,A=(0,c.default)().domain([P,C]).range(o||h.CONTINUOUS_COLOR_RANGE);return n.default.createElement("g",{className:(0,f.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--contour",i),transform:"translate(".concat(b,",").concat(S,")")},x.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:O(e),style:y({fill:A(e.value)},_)})})))}}])&&b(t.prototype,r),i&&b(t,i),u}(u.default);w.propTypes=y(y({},u.default.propTypes),{},{animation:o().bool,bandwidth:o().number,className:o().string,marginLeft:o().number,marginTop:o().number,style:o().object}),w.defaultProps=y(y({},u.default.defaultProps),{},{bandwidth:40,style:{}});const x=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(2110),i=r(1990),o=r(2111),a=r(2100),s=r(2101),c=r(2102);function u(e){return e[0]}function l(e){return e[1]}function p(){return 1}function f(){var e=u,t=l,r=p,f=960,h=500,d=20,m=2,y=3*d,g=f+2*y>>m,v=h+2*y>>m,b=(0,s.default)(20);function S(i){var o=new Float32Array(g*v),a=Math.pow(2,-m),s=-1;for(const n of i){var c=(e(n,++s,i)+y)*a,u=(t(n,s,i)+y)*a,l=+r(n,s,i);if(l&&c>=0&&c<g&&u>=0&&u<v){var p=Math.floor(c),f=Math.floor(u),h=c-p-.5,b=u-f-.5;o[p+f*g]+=(1-h)*(1-b)*l,o[p+1+f*g]+=h*(1-b)*l,o[p+1+(f+1)*g]+=h*b*l,o[p+(f+1)*g]+=(1-h)*b*l}}return(0,n.blur2)({data:o,width:g,height:v},d*a),o}function _(e){var t=S(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([g,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(x)}function x(e){e.forEach(O)}function O(e){e[0]=e[0]*Math.pow(2,m)-y,e[1]=e[1]*Math.pow(2,m)-y}function T(){return g=f+2*(y=3*d)>>m,v=h+2*y>>m,_}return _.contours=function(e){var t=S(e),r=(0,c.default)().size([g,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},_.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,s.default)(+t),_):e},_.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,s.default)(+e),_):t},_.weight=function(e){return arguments.length?(r="function"==typeof e?e:(0,s.default)(+e),_):r},_.size=function(e){if(!arguments.length)return[f,h];var t=+e[0],r=+e[1];if(!(t>=0&&r>=0))throw new Error("invalid size");return f=t,h=r,T()},_.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()},_.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),_):b},_.bandwidth=function(e){if(!arguments.length)return Math.sqrt(d*(d+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return d=(Math.sqrt(4*e*e+1)-1)/2,T()},_}},(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:()=>d});var n=r(2107),i=r(2027),o=r(1990),a=r(2109),s=r(2100),c=r(2103),u=r(2104),l=r(2101),p=r(2105),f=r(2106),h=[[],[[[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 d(){var e=1,t=1,r=n.default,d=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=>S(e,t)))}function S(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,p=new Array,f=new Array;o=a=-1,c=y(r[0],n),h[c<<1].forEach(d);for(;++o<e-1;)s=c,c=y(r[o+1],n),h[s|c<<1].forEach(d);h[c|0].forEach(d);for(;++a<t-1;){for(o=-1,c=y(r[a*e+e],n),u=y(r[a*e],n),h[c<<1|u<<2].forEach(d);++o<e-1;)s=c,c=y(r[a*e+e+o+1],n),l=u,u=y(r[a*e+o+1],n),h[s|c<<1|u<<2|l<<3].forEach(d);h[c|u<<3].forEach(d)}o=-1,u=r[a*e]>=n,h[u<<2].forEach(d);for(;++o<e-1;)l=u,u=y(r[a*e+o+1],n),h[u<<2|l<<3].forEach(d);function d(e){var t,r,n=[e[0][0]+o,e[0][1]+a],s=[e[1][0]+o,e[1][1]+a],c=_(n),u=_(s);(t=f[c])?(r=p[u])?(delete f[t.end],delete p[r.start],t===r?(t.ring.push(s),i(t.ring)):p[t.start]=f[r.end]={start:t.start,end:r.end,ring:t.ring.concat(r.ring)}):(delete f[t.end],t.ring.push(s),f[t.end=u]=t):(t=p[u])?(r=f[c])?(delete p[t.start],delete f[r.end],t===r?(t.ring.push(s),i(t.ring)):p[r.start]=f[t.end]={start:r.start,end:t.end,ring:r.ring.concat(t.ring)}):(delete p[t.start],t.ring.unshift(n),p[t.start=c]=t):p[c]=f[u]={start:c,end:u,ring:[n,s]}}h[u<<3].forEach(d)}(r,i,(function(e){d(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,p.default)((t=o[r])[0],e))return void t.push(e)})),{type:"MultiPolygon",value:n,coordinates:o}}function _(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=g(n[c*e+s]);o>0&&o<e&&s===o&&(r[0]=v(o,g(n[c*e+s-1]),u,i)),a>0&&a<t&&c===a&&(r[1]=v(a,g(n[(c-1)*e+s]),u,i))}))}return b.contour=S,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?(d=e?E:f.default,b):d===E},b}function m(e){return isFinite(e)?e:NaN}function y(e,t){return null!=e&&+e>=t}function g(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],p=u[1],f=e[c],h=f[0],d=f[1];if(o(u,f,t))return 0;p>n!=d>n&&r<(h-l)*(n-p)/(d-p)+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(2108);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(1990);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),p=i.slice();return u&&l?(s(u,p,i,o,a),s(u,i,p,o,a),s(u,p,i,o,a),c(l,i,p,o,a),c(l,p,i,o,a),c(l,i,p,o,a)):u?(s(u,i,p,o,a),s(u,p,i,o,a),s(u,i,p,o,a)):l&&(c(l,i,p,o,a),c(l,p,i,o,a),c(l,i,p,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,p=a;t<=p;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:()=>p});var n=r(2113),i=r(2114),o=r(2115),a=r(2119),s=r(2120),c=r(2121),u=r(2122),l=r(2123);function p(e,t){let r,p,f=3,h=4.5;function d(e){return e&&("function"==typeof h&&p.pointRadius(+h.apply(this,arguments)),(0,i.default)(e,r(p))),p.result()}return d.area=function(e){return(0,i.default)(e,r(o.default)),o.default.result()},d.measure=function(e){return(0,i.default)(e,r(u.default)),u.default.result()},d.bounds=function(e){return(0,i.default)(e,r(a.default)),a.default.result()},d.centroid=function(e){return(0,i.default)(e,r(s.default)),s.default.result()},d.projection=function(t){return arguments.length?(r=null==t?(e=null,n.default):(e=t).stream,d):e},d.context=function(e){return arguments.length?(p=null==e?(t=null,new l.default(f)):new c.default(t=e),"function"!=typeof h&&p.pointRadius(h),d):t},d.pointRadius=function(e){return arguments.length?(h="function"==typeof e?e:(p.pointRadius(+e),+e),d):h},d.digits=function(e){if(!arguments.length)return f;if(null==e)f=null;else{const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);f=t}return null===t&&(p=new l.default(f)),d},d.projection(e).digits(f).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:()=>g});var n,i,o,a,s=r(2118),c=r(2116),u=r(2117),l=new s.Adder,p=new s.Adder,f={point:u.default,lineStart:u.default,lineEnd:u.default,polygonStart:function(){f.lineStart=h,f.lineEnd=y},polygonEnd:function(){f.lineStart=f.lineEnd=f.point=u.default,l.add((0,c.abs)(p)),p=new s.Adder},result:function(){var e=l/2;return l=new s.Adder,e}};function h(){f.point=d}function d(e,t){f.point=m,n=o=e,i=a=t}function m(e,t){p.add(a*e-o*t),o=e,a=t}function y(){m(n,i)}const g=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{abs:()=>p,acos:()=>O,asin:()=>T,atan:()=>f,atan2:()=>h,ceil:()=>m,cos:()=>d,degrees:()=>u,epsilon:()=>n,epsilon2:()=>i,exp:()=>y,floor:()=>g,halfPi:()=>a,haversin:()=>P,hypot:()=>v,log:()=>b,pi:()=>o,pow:()=>S,quarterPi:()=>s,radians:()=>l,sign:()=>E,sin:()=>_,sqrt:()=>w,tan:()=>x,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,p=Math.abs,f=Math.atan,h=Math.atan2,d=Math.cos,m=Math.ceil,y=Math.exp,g=Math.floor,v=Math.hypot,b=Math.log,S=Math.pow,_=Math.sin,E=Math.sign||function(e){return e>0?1:e<0?-1:0},w=Math.sqrt,x=Math.tan;function O(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 P(e){return(e=_(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(2117),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:()=>P});var n,i,o,a,s=r(2116),c=0,u=0,l=0,p=0,f=0,h=0,d=0,m=0,y=0,g={point:v,lineStart:b,lineEnd:E,polygonStart:function(){g.lineStart=w,g.lineEnd=x},polygonEnd:function(){g.point=v,g.lineStart=b,g.lineEnd=E},result:function(){var e=y?[d/y,m/y]:h?[p/h,f/h]:l?[c/l,u/l]:[NaN,NaN];return c=u=l=p=f=h=d=m=y=0,e}};function v(e,t){c+=e,u+=t,++l}function b(){g.point=S}function S(e,t){g.point=_,v(o=e,a=t)}function _(e,t){var r=e-o,n=t-a,i=(0,s.sqrt)(r*r+n*n);p+=i*(o+e)/2,f+=i*(a+t)/2,h+=i,v(o=e,a=t)}function E(){g.point=v}function w(){g.point=O}function x(){T(n,i)}function O(e,t){g.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);p+=i*(o+e)/2,f+=i*(a+t)/2,h+=i,d+=(i=a*e-o*t)*(o+e),m+=i*(a+t),y+=3*i,v(o=e,a=t)}const P=g},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2116),i=r(2117);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(2118),u=r(2116),l=r(2117),p=new c.Adder,f={point:l.default,lineStart:function(){f.point=h},lineEnd:function(){n&&d(i,o),f.point=l.default},polygonStart:function(){n=!0},polygonEnd:function(){n=null},result:function(){var e=+p;return p=new c.Adder,e}};function h(e,t){f.point=d,i=a=e,o=s=t}function d(e,t){a-=e,s-=t,p.add((0,u.sqrt)(a*a+s*s)),a=e,s=t}const m=f},(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:()=>_});var n=r(285),i=r(596),o=r.n(i),a=r(1977),s=r(1968),c=r(2031);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 p(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){f(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 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 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 d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(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=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)}function g(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 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&&d(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:g,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,f=e.style,h=b(i);if(!h)return null;var d=(0,s.getAttributeFunctor)(this.props,"x")(h),m=this.props.orientation,y=a+d,g=o,v="rv-crosshair__inner rv-crosshair__inner--".concat(void 0===m?d>u/2?"left":"right":m);return n.default.createElement("div",{className:(0,c.getCombinedClassName)("rv-crosshair",r),style:{left:"".concat(y,"px"),top:"".concat(g,"px")}},n.default.createElement("div",{className:"rv-crosshair__line",style:p({height:"".concat(l,"px")},f.line)}),n.default.createElement("div",{className:v},t||n.default.createElement("div",{className:"rv-crosshair__inner__content",style:f.box},n.default.createElement("div",null,this._renderCrosshairTitle(),this._renderCrosshairItems()))))}}])&&h(t.prototype,r),i&&h(t,i),u}(n.PureComponent);S.displayName="Crosshair";const _=S},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(285),i=r(596),o=r.n(i),a=r(1927),s=r(1938),c=r(2029),u=r(2031);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 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 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 h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(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=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 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 g(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){v(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 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 S(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 S(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 S(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 S(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 _={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]:_;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&&h(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,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.className,o=t.customComponent,l=t.data,f=t.innerHeight,h=t.innerWidth,d=t.marginLeft,m=t.marginTop,y=t.style,v=t.size;if(!l||!h||!f)return null;if(r)return n.default.createElement(s.default,p({},this.props,{animatedProps:c.ANIMATED_SERIES_PROPS}),n.default.createElement(a,p({},this.props,{animation:!1})));var b=this._getAttributeFunctor("x"),S=this._getAttributeFunctor("y"),_=l.map((function(t,r){var i={x:b(t),y:S(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=g(g({},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:S},style:y,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(d,",").concat(m,")")},_)}}])&&f(t.prototype,r),i&&f(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=g(g({},a.default.defaultProps),{},{animation:!1,customComponent:"circle",style:{},size:2});const x=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var n=r(285),i=r(1995),o=r(596),a=r.n(o),s=r(1927),c=r(2127),u=r(1938),l=r(2031);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 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 h(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 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 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 g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(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"===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 b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var S=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickSize","tickTotal","tickSizeInner","tickSizeOuter"],_=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=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,p=e.axisEnd,f=e.axisDomain,d=e.numberOfTicks,y=e.tickValue,g=e.tickSize,v=e.style;if(t)return n.default.createElement(u.default,m({},this.props,{animatedProps:S}),n.default.createElement(a,m({},this.props,{animation:null})));var b=this._getAttributeFunctor("x"),_=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({},h({x1:b({x:s.x}),x2:b({x:p.x}),y1:_({y:s.y}),y2:_({y:p.y})},v.line),{className:"rv-xy-plot__axis__line"})),n.default.createElement("g",{className:"rv-xy-manipulable-axis__ticks"},(0,c.default)({axisDomain:f,axisEnd:{x:b(p),y:_(p)},axisStart:{x:b(s),y:_(s)},numberOfTicks:d,tickValue:y,tickSize:g,style:v})))}}])&&y(t.prototype,r),i&&y(t,i),a}(s.default),E=(0,i.format)(".2r");_.defaultProps={className:"",numberOfTicks:10,tickValue:function(e){return E(e)},tickSize:5,style:{line:{strokeWidth:1},ticks:{strokeWidth:2},text:{}}},_.propTypes=h(h({},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})}),_.displayName="DecorativeAxis";const w=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(285),i=r(2097);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,p=e.style,f=(0,i.generatePoints)({axisStart:a,axisEnd:c,numberOfTicks:r,axisDomain:t}).points,h=(0,i.getAxisAngle)(a,c)+Math.PI/2;return f.map((function(e,t){var r=s({x1:0,y1:0,x2:l*Math.cos(h),y2:l*Math.sin(h)},p.ticks),i=s({x:l*Math.cos(h),y:l*Math.sin(h),textAnchor:"start"},p.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(285),i=r(596),o=r.n(i),a=r(2031);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:()=>O});var n=r(285),i=r(596),o=r.n(i),a=r(1968),s=r(2031),c=r(1938),u=r(2097);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 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 f(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 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 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 y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(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"===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,S=u.DIRECTION.HORIZONTAL,_={direction:o().oneOf([b,S]),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"],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&&y(e,t)}(l,e);var t,r,i,o=g(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,d({},this.props,{animatedProps:w}),n.default.createElement(l,d({},this.props,{animation:null})));var i=f(f({},this._getDefaultProps()),this.props),o=i.attr,p=i.direction,m=i.width,y=i.height,g=i.style,v=i.tickTotal,S=i.tickValues,_=i.top,E=i.left,x=p===b,O=x?"y":"x",T=x?"x":"y",P=x?y:m,C=(0,a.getAttributeScale)(i,o),A=(0,u.getTickValues)(C,v,S);return n.default.createElement("g",{transform:"translate(".concat(E,",").concat(_,")"),className:(0,s.getCombinedClassName)("rv-xy-plot__grid-lines",r)},A.map((function(e,t){var r,i=C(e),o=(h(r={},"".concat(T,"1"),i),h(r,"".concat(T,"2"),i),h(r,"".concat(O,"1"),0),h(r,"".concat(O,"2"),P),r);return n.default.createElement("line",d({},o,{key:t,className:"rv-xy-plot__grid-lines__line",style:g}))})))}}])&&m(t.prototype,r),i&&m(t,i),l}(n.PureComponent);x.displayName="GridLines",x.defaultProps=E,x.propTypes=_,x.requiresSVG=!0;const O=x},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(285),i=r(1938),o=r(2029),a=r(2031),s=r(1927);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){p(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 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 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 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 d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(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=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var g=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)}(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,p=t.marginLeft,h=t.marginTop,d=t.style;if(!c)return null;if(r)return n.default.createElement(i.default,f({},this.props,{animatedProps:o.ANIMATED_SERIES_PROPS}),n.default.createElement(u,f({},this.props,{animation:null})));var m=l({rectStyle:{}},d).rectStyle,y=this._getAttributeFunctor("x"),g=this._getAttributeFunctor("y"),v=this._getAttributeFunctor("opacity"),b=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),S=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),_=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(p,",").concat(h,")")},c.map((function(t,r){var i=l(l({style:l({stroke:S&&S(t),fill:b&&b(t),opacity:v&&v(t)},d)},m),{},{x:y(t)-_/2,y:g(t)-E/2,width:_,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",f({key:r},i))})))}}])&&h(t.prototype,r),s&&h(t,s),u}(s.default);g.propTypes=l({},s.default.propTypes),g.displayName="HeatmapSeries";const v=g},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O});var n=r(285),i=r(596),o=r.n(i),a=r(1938),s=r(2132),c=r(1978),u=r(2029),l=r(2031),p=r(2030),f=r(1927);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 d(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){m(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 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 y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.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 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);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"===y(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)}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 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&&b(e,t)}(p,e);var t,r,i,o=S(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),o.apply(this,arguments)}return t=p,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.className,o=t.colorRange,f=t.data,h=t.innerHeight,d=t.innerWidth,m=t.marginLeft,y=t.marginTop,v=t.radius,b=t.sizeHexagonsWithCount,S=t.style,_=t.xOffset,w=t.yOffset;if(!f)return null;if(r)return n.default.createElement(a.default,g({},this.props,{animatedProps:u.ANIMATED_SERIES_PROPS}),n.default.createElement(p,g({},this.props,{animation:null})));var x=this._getAttributeFunctor("x"),O=this._getAttributeFunctor("y"),T=(0,s.hexbin)().x((function(e){return x(e)+_})).y((function(e){return O(e)+w})).radius(v).size([d,h]),P=T.hexagon(),C=T(f),A=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),k=(0,c.default)().domain(A).range(o),R=(0,c.default)().domain(A).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(y,")")},C.map((function(t,r){var i={style:S,d:b?T.hexagon(R(t.length)):P,fill:k(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",g({key:String(r)},i))})))}}])&&v(t.prototype,r),i&&v(t,i),p}(f.default);x.propTypes=d(d({},f.default.propTypes),{},{radius:o().number}),x.defaultProps={radius:20,colorRange:p.CONTINUOUS_COLOR_RANGE,xOffset:0,yOffset:0},x.displayName="HexbinSeries";const O=x},(e,t,r)=>{"use strict";r.r(t),r.d(t,{hexbin:()=>n.default});var n=r(2133)},(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,p=o,f=a;function h(e){var n,i={},o=[],a=e.length;for(n=0;n<a;++n)if(!isNaN(c=+p.call(null,s=e[n],n,e))&&!isNaN(u=+f.call(null,s,n,e))){var s,c,u,l=Math.round(u/=r),h=Math.round(c=c/t-(1&l)/2),d=u-l;if(3*Math.abs(d)>1){var m=c-h,y=h+(c<h?-1:1)/2,g=l+(u<l?-1:1),v=c-y,b=u-g;m*m+d*d>v*v+b*b&&(h=y+(1&l?1:-1)/2,l=g)}var S=h+"-"+l,_=i[S];_?_.push(s):(o.push(_=i[S]=[s]),_.x=(h+(1&l)/2)*t,_.y=l*r)}return o}function d(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 h.hexagon=function(t){return"m"+d(null==t?e:+t).join("l")+"z"},h.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 p=o*t+(1&i)*t/2;p<u+t/2;p+=t)n.push([p,a]);return n},h.mesh=function(){var t=d(e).slice(0,4).join("l");return h.centers().map((function(e){return"M"+e+"m"+t})).join("")},h.x=function(e){return arguments.length?(p=e,h):p},h.y=function(e){return arguments.length?(f=e,h):f},h.radius=function(i){return arguments.length?(t=2*(e=+i)*Math.sin(n),r=1.5*e,h):e},h.size=function(e){return arguments.length?(s=c=0,u=+e[0],l=+e[1],h):[u-s,l-c]},h.extent=function(e){return arguments.length?(s=+e[0][0],c=+e[0][1],u=+e[1][0],l=+e[1][1],h):[[s,c],[u,l]]},h.radius(1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(285),i=r(596),o=r.n(i),a=r(1927),s=r(1968),c=r(2031);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){g(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 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 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 h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(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=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 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 y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(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 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&&h(e,t)}(a,e);var t,r,i,o=d(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 g(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,p=o.innerHeight,f=o.marginLeft,h=o.marginRight,d=o.marginBottom,m=o.marginTop,y=c||l+f+h,g=u||p+m+d;return{bottom:s?Math.max(i,t):g,right:a?Math.max(n,e):y,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,p=s.bottom,f=a&&(e<c||e>u),h=a&&(t<l||t>p);return n&&i?f||h:n?f:!i||h}},{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})},p=this._clickedOutsideDrag(c,u);if(o&&!a||!o||p)return l(!1,p),void(n&&n(e));o&&a&&(l(!0,p),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 p=this._getDrawArea(u,l);this.setState({brushArea:p}),r&&r(this._convertAreaToCoordinates(p))}if(i&&s){var f=this._getDragArea(u,l);this.setState({brushArea:f}),n&&n(this._convertAreaToCoordinates(f))}}},{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,p=t.innerWidth,f=t.innerHeight,h=t.marginLeft,d=t.marginRight,m=t.marginTop,y=t.marginBottom,g=t.opacity,v=this.state.brushArea,b=v.left,S=v.right,_=v.top,E=v.bottom,w=0;u&&(w=(0,s.getAttributeScale)(this.props,"x")(u));var x=0;l&&(x=(0,s.getAttributeScale)(this.props,"y")(l));var O=a||h+d+p,T=o||m+y+f;return n.default.createElement("g",{transform:"translate(".concat(w,", ").concat(x,")"),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(O,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:g,fill:r,x:b,y:_,width:Math.min(Math.max(0,S-b),O),height:Math.min(Math.max(0,E-_),T)}))}}])&&f(t.prototype,r),i&&f(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 S=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(285),i=r(596),o=r.n(i),a=r(1977),s=r(1968),c=r(2031);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 p(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){f(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 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 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 d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(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=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 g={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 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&&d(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:g.AUTO,vertical:g.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([g.AUTO,g.LEFT,g.RIGHT,g.LEFT_EDGE,g.RIGHT_EDGE]),vertical:o().oneOf([g.AUTO,g.BOTTOM,g.TOP,g.BOTTOM_EDGE,g.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===g.AUTO&&(u.horizontal=e>n/2?g.LEFT:g.RIGHT),c===g.AUTO&&(u.vertical=t>i/2?g.TOP:g.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 p(p({},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 g.LEFT_EDGE:return this._getCSSLeft(null);case g.RIGHT_EDGE:return this._getCSSRight(null);case g.LEFT:return this._getCSSRight(t);default:return this._getCSSLeft(t)}}},{key:"_getYCSS",value:function(e,t){switch(e){case g.TOP_EDGE:return this._getCSSTop(null);case g.BOTTOM_EDGE:return this._getCSSBottom(null);case g.BOTTOM:return this._getCSSTop(t);default:return this._getCSSBottom(t)}}},{key:"_mapOrientationToAlign",value:function(e){switch(e){case v.BOTTOM_LEFT:return{horizontal:g.LEFT,vertical:g.BOTTOM};case v.BOTTOM_RIGHT:return{horizontal:g.RIGHT,vertical:g.BOTTOM};case v.TOP_LEFT:return{horizontal:g.LEFT,vertical:g.TOP};case v.TOP_RIGHT:return{horizontal:g.RIGHT,vertical:g.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:p(p(p({},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))}))))}}])&&h(t.prototype,r),i&&h(t,i),u}(n.PureComponent);S.displayName="Hint",S.ORIENTATION=v,S.ALIGN=g;const _=S},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(285),i=r(1927),o=r(2137);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=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"===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 p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var f=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)}(p,e);var t,r,i,a=l(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),a.apply(this,arguments)}return t=p,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),p}(i.default);f.displayName="HorizontalBarSeries";const h=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(285),i=r(596),o=r.n(i),a=r(1938),s=r(2029),c=r(2031),u=r(1927);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 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 f(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 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 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 y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(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"===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&&y(e,t)}(p,e);var t,r,i,l=g(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),l.apply(this,arguments)}return t=p,i=[{key:"propTypes",get:function(){return f(f({},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,y=t.marginTop,g=t.style,v=t.valuePosAttr,b=t.valueSizeAttr,S=t.barWidth;if(!o)return null;if(r)return n.default.createElement(a.default,d({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(p,d({},this.props,{animation:null})));var _=(0,s.getStackParams)(this.props),E=_.sameTypeTotal,w=_.sameTypeIndex,x=this._getScaleDistance(u),O=this._getAttributeFunctor(u),T=this._getAttributeFunctor(v),P=this._getAttr0Functor(v),C=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),A=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),k=this._getAttributeFunctor("opacity"),R=x/2*S;return n.default.createElement("g",{className:(0,c.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--bar",i),transform:"translate(".concat(m,",").concat(y,")")},o.map((function(t,r){var i,o=2*R,a=O(t),s=o/E-(E-1)/E,c=a-R+s*w+w,p=(h(i={style:f({opacity:k&&k(t),stroke:A&&A(t),fill:C&&C(t)},g)},u,c),h(i,l,s),h(i,v,Math.min(P(t),T(t))),h(i,b,Math.abs(-P(t)+T(t))),h(i,"onClick",(function(r){return e._valueClickHandler(t,r)})),h(i,"onContextMenu",(function(r){return e._valueRightClickHandler(t,r)})),h(i,"onMouseOver",(function(r){return e._valueMouseOverHandler(t,r)})),h(i,"onMouseOut",(function(r){return e._valueMouseOutHandler(t,r)})),i);return n.default.createElement("rect",d({key:"".concat(r)},p))})))}}])&&m(t.prototype,r),i&&m(t,i),p}(u.default);b.displayName="BarSeries";const S=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(1927),i=r(2139);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 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=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"===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 f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(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&&l(e,t)}(a,e);var t,r,n,o=p(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);h.displayName="HorizontalBarSeriesCanvas",h.propTypes=s({},n.default.propTypes);const d=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r(596),i=r.n(n),o=r(1960),a=r(2030),s=r(1968),c=r(2029),u=r(1927);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 p(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){f(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 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 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 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 m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(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=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"===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 g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(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=y(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,p=e.marginBottom;if(r&&0!==r.length){var f=function(e,t){var r=(0,s.getScaleObjectFromProps)(e,t);return r?r.distance:0}(e,n),h=(0,s.getAttributeFunctor)(e,n),d=(0,s.getAttributeFunctor)(e,u),m=(0,s.getAttr0Functor)(e,u),y=(0,s.getAttributeFunctor)(e,"fill")||(0,s.getAttributeFunctor)(e,"color"),g=(0,s.getAttributeFunctor)(e,"stroke")||(0,s.getAttributeFunctor)(e,"color"),v=(0,s.getAttributeFunctor)(e,"opacity"),b=f/2*.85,S=2*b,_=(0,c.getStackParams)(e),E=_.sameTypeTotal,w=_.sameTypeIndex;r.forEach((function(e){var r=h(e)-b,n=S/E-(E-1)/E,s=(0,o.rgb)(y(e)),c=(0,o.rgb)(g(e)),f=v(e)||a.DEFAULT_OPACITY,_=r+n*w+w,x=Math.min(m(e),d(e)),O="x"===u?x:_,T="y"===u?x:_,P=Math.abs(-m(e)+d(e)),C="height"===i?n:P,A="width"===i?n:P;t.beginPath(),t.rect(O+p,T+l,A,C),t.fillStyle="rgba(".concat(s.r,", ").concat(s.g,", ").concat(s.b,", ").concat(f,")"),t.fill(),t.strokeStyle="rgba(".concat(c.r,", ").concat(c.g,", ").concat(c.b,", ").concat(f,")"),t.stroke()}))}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&d(t.prototype,r),n&&d(t,n),u}(u.default);v.displayName="BarSeriesCanvas",v.defaultProps=p(p({},u.default.defaultProps),{},{linePosAttr:i().string.isRequired,valuePosAttr:i().string.isRequired,lineSizeAttr:i().string.isRequired,valueSizeAttr:i().string.isRequired}),v.propTypes=p({},u.default.propTypes);const b=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(285),i=r(596),o=r.n(i),a=r(2097),s=r(2129);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 p=a.DIRECTION.HORIZONTAL,f=u(u({},s.default.propTypes),{},{direction:o().oneOf([p])}),h={direction:p,attr:"y"};function d(e){return n.default.createElement(s.default,e)}d.displayName="HorizontalGridLines",d.propTypes=f,d.defaultProps=h,d.requiresSVG=!0;const m=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(285),i=r(1927),o=r(2142);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=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"===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 p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var f=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)}(p,e);var t,r,i,a=l(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),a.apply(this,arguments)}return t=p,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),p}(i.default);f.displayName="HorizontalRectSeries";const h=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(285),i=r(596),o=r.n(i),a=r(1938),s=r(2029),c=r(2031),u=r(1927);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 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 f(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 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 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 y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(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"===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&&y(e,t)}(p,e);var t,r,i,l=g(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),l.apply(this,arguments)}return t=p,i=[{key:"propTypes",get:function(){return f(f({},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,y=t.marginTop,g=t.style,v=t.valuePosAttr,b=t.valueSizeAttr;if(!o)return null;if(r)return n.default.createElement(a.default,d({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(p,d({},this.props,{animation:null})));var S=this._getAttributeFunctor(u),_=this._getAttr0Functor(u),E=this._getAttributeFunctor(v),w=this._getAttr0Functor(v),x=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),O=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(y,")")},o.map((function(t,r){var i,o=(h(i={style:f({opacity:T&&T(t),stroke:O&&O(t),fill:x&&x(t)},g)},u,_(t)),h(i,l,Math.abs(S(t)-_(t))),h(i,v,Math.min(w(t),E(t))),h(i,b,Math.abs(-w(t)+E(t))),h(i,"onClick",(function(r){return e._valueClickHandler(t,r)})),h(i,"onContextMenu",(function(r){return e._valueRightClickHandler(t,r)})),h(i,"onMouseOver",(function(r){return e._valueMouseOverHandler(t,r)})),h(i,"onMouseOut",(function(r){return e._valueMouseOutHandler(t,r)})),i);return n.default.createElement("rect",d({key:String(r)},o))})))}}])&&m(t.prototype,r),i&&m(t,i),p}(u.default);b.displayName="RectSeries";const S=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(1927),i=r(2144);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 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=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"===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 f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(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&&l(e,t)}(a,e);var t,r,n,o=p(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);h.displayName="HorizontalRectSeriesCanvas",h.propTypes=s({},n.default.propTypes);const d=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(596),i=r.n(n),o=r(1960),a=r(2030),s=r(1968),c=r(1927);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){p(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 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 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 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 d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(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=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"===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 y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var g=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)}(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 p=(0,s.getAttributeFunctor)(e,n),f=(0,s.getAttr0Functor)(e,n),h=(0,s.getAttributeFunctor)(e,l),d=(0,s.getAttr0Functor)(e,l),m=(0,s.getAttributeFunctor)(e,"fill")||(0,s.getAttributeFunctor)(e,"color"),y=(0,s.getAttributeFunctor)(e,"stroke")||(0,s.getAttributeFunctor)(e,"color"),g=(0,s.getAttributeFunctor)(e,"opacity");r.forEach((function(e){var r=(0,o.rgb)(m(e)),n=(0,o.rgb)(y(e)),s=g(e)||a.DEFAULT_OPACITY,v=f(e),b=Math.min(d(e),h(e)),S="x"===l?b:v,_="y"===l?b:v,E=Math.abs(p(e)-f(e)),w=Math.abs(-d(e)+h(e)),x="height"===i?E:w,O="width"===i?E:w;t.beginPath(),t.rect(S+c,_+u,O,x),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}}])&&h(t.prototype,r),n&&h(t,n),c}(c.default);g.displayName="RectSeriesCanvas",g.defaultProps=l(l({},c.default.defaultProps),{},{linePosAttr:i().string.isRequired,valuePosAttr:i().string.isRequired,lineSizeAttr:i().string.isRequired,valueSizeAttr:i().string.isRequired}),g.propTypes=l({},c.default.propTypes);const v=g},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E});var n=r(285),i=r(596),o=r.n(i),a=r(1927),s=r(1938),c=r(2029),u=r(2031);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 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 f(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 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 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 y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(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"===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")},S=function(e,t){return e||(t?"text-before-edge":"text-after-edge")},_=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=g(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,p=t._data,h=t.getLabel,m=t.marginLeft,y=t.marginTop,g=t.rotation,v=t.style,_=t.xRange,E=t.yRange,w=t.labelAnchorX,x=t.labelAnchorY;if(!l)return null;if(r)return n.default.createElement(s.default,d({},this.props,{animatedProps:c.ANIMATED_SERIES_PROPS}),n.default.createElement(a,d({},this.props,{animation:null,_data:l})));var O=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(y,")"),style:v},l.reduce((function(t,r,o){var a=r.style,s=r.xOffset,c=r.yOffset;if(!h(r))return t;var u=O(r),l=T(r),m=u<(_[1]-_[0])/2,y=l<Math.abs(E[1]-E[0])/2,v=u+(i&&m?-1:1)*(s||0),P=l+(i&&y?-1:1)*(c||0),C=0===r.rotation||r.rotation?r.rotation:g,A=f({dominantBaseline:S(x,y),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:P,transform:"rotate(".concat(C,",").concat(v,",").concat(P,")")},a),k=h(p?p[o]:r);return t.concat([n.default.createElement("text",d({key:String(o)},A),k)])}),[]))}}])&&m(t.prototype,r),i&&m(t,i),a}(a.default);_.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},_.defaultProps=f(f({},a.default.defaultProps),{},{animation:!1,rotation:0,getLabel:function(e){return e.label}}),_.displayName="LabelSeries";const E=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(285),i=r(596),o=r.n(i),a=r(1927),s=r(2147),c=r(2148);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 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 f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(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=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 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 y(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){g(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 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 v=y(y({},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&&f(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,i=[{key:"defaultProps",get:function(){return y(y({},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:y(y({},i),t)})),n.default.createElement(c.default,l({},this.props,{style:y(y({},i),r)})))}}])&&p(t.prototype,r),i&&p(t,i),a}(a.default);b.displayName="LineMarkSeries",b.propTypes=v;const S=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O});var n=r(285),i=r(596),o=r.n(i),a=r(2042),s=r(2038),c=r(1938),u=r(2030),l=r(2029),p=r(1976),f=r(2031),h=r(1927);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 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 y(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){g(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 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 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 S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(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=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"===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 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},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&&S(e,t)}(h,e);var t,r,i,o=_(h);function h(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),o.apply(this,arguments)}return t=h,(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,p.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(h,v({},this.props,{animation:null})));var o=this.props,a=o.curve,s=o.marginLeft,d=o.marginTop,m=o.strokeDasharray,g=o.strokeStyle,b=o.strokeWidth,S=o.style,_=this._getAttributeFunctor("x"),E=this._getAttributeFunctor("y"),x=this._getAttributeValue("stroke")||this._getAttributeValue("color"),O=this._getAttributeValue("opacity"),T=Number.isFinite(O)?O:u.DEFAULT_OPACITY,P=this.props.nullAccessor||this.props.getNull,C=this._renderLine(i,_,E,a,P);return n.default.createElement("path",{d:C,className:(0,f.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--line",r),transform:"translate(".concat(s,",").concat(d,")"),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,style:y({opacity:T,strokeDasharray:w[g]||m,strokeWidth:b,stroke:x},S)})}}])&&b(t.prototype,r),i&&b(t,i),h}(h.default);x.displayName="LineSeries",x.propTypes=y(y({},h.default.propTypes),{},{strokeStyle:o().oneOf(Object.keys(w)),curve:o().oneOfType([o().string,o().func]),getNull:o().func}),x.defaultProps=y(y({},h.default.defaultProps),{},{strokeStyle:"solid",style:{},opacity:1,curve:null,className:"",getNull:function(){return!0}});const O=x},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E});var n=r(285),i=r(596),o=r.n(i),a=r(1938),s=r(2029),c=r(1976),u=r(2031),l=r(2030),p=r(1927);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 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 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 m(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){y(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 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 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 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=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"===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 S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(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&&v(e,t)}(p,e);var t,r,i,o=b(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),o.apply(this,arguments)}return t=p,(r=[{key:"_renderCircle",value:function(e,t,r,i,o){var a=this,s=o.fill,c=o.opacity,u=o.size,p=o.stroke,f=o.x,h=o.y,d={r:u?u(e):l.DEFAULT_SIZE,cx:f(e),cy:h(e),style:m({opacity:c?c(e):l.DEFAULT_OPACITY,stroke:p&&p(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",d)}},{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.className,o=t.data,l=t.marginLeft,f=t.marginTop,d=t.strokeWidth,m=t.style;this.props.nullAccessor&&(0,c.warning)("nullAccessor has been renamed to getNull",!0);var y=this.props.nullAccessor||this.props.getNull;if(!o)return null;if(r)return n.default.createElement(a.default,h({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(p,h({},this.props,{animation:null})));var g={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(f,")")},o.map((function(t,r){return y(t)&&e._renderCircle(t,r,d,m,g)})))}}])&&g(t.prototype,r),i&&g(t,i),p}(p.default);_.displayName="MarkSeries",_.propTypes=m(m({},p.default.propTypes),{},{getNull:o().func,strokeWidth:o().number}),_.defaultProps={getNull:function(){return!0}};const E=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(1927),i=r(2150),o=r(2151);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 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=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"===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 f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(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&&l(e,t)}(s,e);var t,r,n,a=p(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);h.displayName="LineMarkSeriesCanvas",h.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 d=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(1960),i=r(2030),o=r(1968),a=r(1927);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 p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(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=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)}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&&p(e,t)}(c,e);var t,r,a,s=f(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},p=(0,o.getAttributeFunctor)(e,"fill")||(0,o.getAttributeFunctor)(e,"color"),f=(0,o.getAttributeFunctor)(e,"stroke")||(0,o.getAttributeFunctor)(e,"color"),h=(0,o.getAttributeFunctor)(e,"opacity");r.forEach((function(e){var r=(0,n.rgb)(p(e)),o=(0,n.rgb)(f(e)),d=h(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(d,")"),t.fill(),t.strokeStyle="rgba(".concat(o.r,", ").concat(o.g,", ").concat(o.b,", ").concat(d,")"),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);d.displayName="MarkSeriesCanvas",d.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=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(596),i=r.n(n),o=r(1960),a=r(2042),s=r(2038),c=r(285),u=r(2030),l=r(1968),p=r(1927);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 h(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 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 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 g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(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 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)}(p,e);var t,r,n,i=v(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),i.apply(this,arguments)}return t=p,n=[{key:"renderLayer",value:function(e,t){var r=e.curve,n=e.data,i=e.marginLeft,c=e.marginTop,p=e.strokeWidth,f=e.strokeDasharray;if(n&&0!==n.length){var h=(0,l.getAttributeFunctor)(e,"x"),d=(0,l.getAttributeFunctor)(e,"y"),m=(0,l.getAttributeValue)(e,"stroke")||(0,l.getAttributeValue)(e,"color"),y=(0,o.rgb)(m),g=(0,l.getAttributeValue)(e,"opacity"),v=Number.isFinite(g)?g:u.DEFAULT_OPACITY,b=a.default().x((function(e){return h(e)+i})).y((function(e){return d(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(y.r,", ").concat(y.g,", ").concat(y.b,", ").concat(v,")"),t.lineWidth=p,f&&t.setLineDash(f),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)}}])&&y(t.prototype,r),n&&y(t,n),p}(p.default);S.displayName="LineSeriesCanvas",S.defaultProps=h(h({},p.default.defaultProps),{},{strokeWidth:2}),S.propTypes=h(h({},p.default.propTypes),{},{strokeWidth:i().number});const _=S},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(285),i=r(1938),o=r(2029),a=r(2031),s=r(1927);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 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 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 h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(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=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 y=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")},g=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)}(g,e);var t,r,c,m=d(g);function g(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),m.apply(this,arguments)}return t=g,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,f=t.marginTop,h=t.style;if(!u)return null;if(r)return n.default.createElement(i.default,p({},this.props,{animatedProps:o.ANIMATED_SERIES_PROPS}),n.default.createElement(g,p({},this.props,{animation:null})));var d=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:h,d:y(u,d,m),transform:"translate(".concat(l,",").concat(f,")")})}}])&&f(t.prototype,r),c&&f(t,c),g}(s.default);g.displayName="PolygonSeries";const v=g},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(285),i=r(1927),o=r(2137);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=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"===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 p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var f=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)}(p,e);var t,r,i,a=l(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),a.apply(this,arguments)}return t=p,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),p}(i.default);f.displayName="VerticalBarSeries";const h=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(1927),i=r(2139);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 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=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"===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 f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(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&&l(e,t)}(a,e);var t,r,n,o=p(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);h.displayName="HorizontalBarSeriesCanvas",h.propTypes=s({},n.default.propTypes);const d=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(285),i=r(596),o=r.n(i),a=r(2129);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(2097).DIRECTION.VERTICAL,p=c(c({},a.default.propTypes),{},{direction:o().oneOf([l])}),f={direction:l,attr:"x"};function h(e){return n.default.createElement(a.default,e)}h.displayName="VerticalGridLines",h.propTypes=p,h.defaultProps=f,h.requiresSVG=!0;const d=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(285),i=r(1927),o=r(2142);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=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"===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 p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var f=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)}(p,e);var t,r,i,a=l(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),a.apply(this,arguments)}return t=p,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),p}(i.default);f.displayName="VerticalRectSeries";const h=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(1927),i=r(2144);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 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=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"===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 f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(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&&l(e,t)}(a,e);var t,r,n,o=p(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);h.displayName="HorizontalRectSeriesCanvas",h.propTypes=s({},n.default.propTypes);const d=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(285),i=r(596),o=r.n(i),a=r(1928),s=r(1968),c=r(2031);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){p(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 p(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=function(e){return e};function h(e){var t,r,i,o,u,p=e.className,f=e.extent,h=e.nodes,d=e.onBlur,m=e.onClick,y=e.onMouseUp,g=e.onMouseDown,v=e.onHover,b=e.polygonStyle,S=e.style,_=e.x,E=e.y,w=(0,a.voronoi)().x(_||(0,s.getAttributeFunctor)(e,"x")).y(E||(0,s.getAttributeFunctor)(e,"y")).extent(f||(r=(t=e).innerWidth,i=t.innerHeight,o=t.marginLeft,u=t.marginTop,[[o,u],[r+o,i+u]])).polygons(h),x=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)(p,"rv-voronoi"),style:S,onTouchEnd:x(y),onTouchStart:x(g),onTouchMove:x(v),onTouchCancel:x(d)},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 y(e.data)},onMouseDown:function(){return g(e.data)},onMouseOver:function(){return v(e.data)},onMouseOut:function(){return d(e.data)},fill:"none",style:l(l({pointerEvents:"all"},b),e.data&&e.data.style),key:t})})))}h.requiresSVG=!0,h.displayName="Voronoi",h.defaultProps={className:"",onBlur:f,onClick:f,onHover:f,onMouseDown:f,onMouseUp:f},h.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 d=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(285),i=r(596),o=r.n(i),a=r(1938),s=r(2029),c=r(2031),u=r(2030),l=r(1927);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 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 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 d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(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=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 g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){b(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 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 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&&d(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,p=e.marginLeft,h=e.marginTop,d=e.strokeWidth,m=e.style;if(!o)return null;if(t)return n.default.createElement(a.default,f({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(l,f({},this.props,{animation:null})));var y={crossBarWidth:i,opacityFunctor:this._getAttributeFunctor("opacity"),sizeFunctor:this._getAttributeFunctor("size"),strokeFunctor:this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),strokeWidth:d,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(p,",").concat(h,")")},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,p=e.valueClickHandler,f=e.valueMouseOutHandler,h=e.valueMouseOverHandler,d=e.valueRightClickHandler,m=e.xFunctor,y=e.yFunctor,g=a?a(t):0,b=m(t),S=y(t),_=m({x:t.x+t.xVariance/2}),E=m({x:t.x-t.xVariance/2}),w=y({y:t.y+t.yVariance/2}),x=y({y:t.y-t.yVariance/2}),O=_&&b+g<_,T=w&&S-g>w;if(!O&&!T)return null;var P=v({opacity:o?o(t):u.DEFAULT_OPACITY,stroke:s&&s(t),strokeWidth:c||1},l),C=i/2,A={x1:b+g,y1:S,x2:_,y2:S,style:P},k={x1:b-g,y1:S,x2:E,y2:S,style:P},R={x1:_,y1:S-C,x2:_,y2:S+C,style:P},I={x1:E,y1:S-C,x2:E,y2:S+C,style:P},D={x1:b,y1:S-g,x2:b,y2:w,style:P},M={x1:b,y1:S+g,x2:b,y2:x,style:P},N={x1:b-C,y1:w,x2:b+C,y2:w,style:P},F={x1:b-C,y1:x,x2:b+C,y2:x,style:P};return n.default.createElement("g",{className:"mark-whiskers",key:r,onClick:function(e){return p(t,e)},onContextMenu:function(e){return d(t,e)},onMouseOver:function(e){return h(t,e)},onMouseOut:function(e){return f(t,e)}},O?n.default.createElement("g",{className:"x-whiskers"},n.default.createElement("line",A),n.default.createElement("line",k),n.default.createElement("line",R),n.default.createElement("line",I)):null,T?n.default.createElement("g",{className:"y-whiskers"},n.default.createElement("line",D),n.default.createElement("line",M),n.default.createElement("line",N),n.default.createElement("line",F)):null)}}(y)))}}])&&h(t.prototype,r),i&&h(t,i),l}(l.default);S.displayName="WhiskerSeries",S.propTypes=v(v({},l.default.propTypes),{},{strokeWidth:o().number}),S.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:()=>k});var n=r(285),i=r(596),o=r.n(i),a=r(2161),s=r.n(a),c=r(2031),u=r(1968),l=r(2029),p=r(2178),f=r(1938),h=r(2030),d=r(2179);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 y(e){return function(e){if(Array.isArray(e))return g(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 g(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 g(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 g(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 S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(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=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 x(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?x(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(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 P=["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 O(O({},e),{},{parent:null})})):e}))}var A=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&&S(e,t)}(r,e);var t=_(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:f.AnimationPropType,className:o().string,dontCheckIfEmpty:o().bool,height:o().number.isRequired,margin:p.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(P),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=O(O({},e),{},{_allData:r?C(e._allData):e._allData}),i=O(O({},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,p.getInnerDimensions)(this.props,p.DEFAULT_MARGINS),c=n.default.Children.toArray(this.props.children),f=(0,l.getSeriesPropsFromChildren)(c),h=(0,u.getXYPlotValues)(t,c);return c.map((function(t,i){var c=null;if(f[i]){var u=f[i].seriesIndex;c={data:a[u]}}return n.default.cloneElement(t,O(O(O(O(O(O(O({},s),{},{animation:r},c&&t.type.prototype&&t.type.prototype.render?{ref:function(t){return e["series".concat(f[i].seriesIndex)]=t}}:{}),f[i]),o),t.props),h[i]),c))}))}},{key:"_getDefaultScaleProps",value:function(e){var t=(0,p.getInnerDimensions)(e,p.DEFAULT_MARGINS),r=t.innerWidth,n=t.innerHeight,i=["color","fill","stroke"].reduce((function(t,r){var n="category"===e["".concat(r,"Type")]?h.EXTENDED_DISCRETE_COLOR_RANGE:h.CONTINUOUS_COLOR_RANGE;return O(O({},t),{},T({},"".concat(r,"Range"),n))}),{});return O(O({xRange:[0,r],yRange:[n,0]},i),{},{opacityType:h.OPACITY_TYPE,sizeRange:h.SIZE_RANGE})}},{key:"_getScaleMixins",value:function(e,t){var r,n=e.filter((function(e){return e})),i=(r=[]).concat.apply(r,y(n)),o=this._getDefaultScaleProps(t),a=(0,u.getOptionalScaleProps)(t),s=(0,u.extractScalePropsFromProps)(t,P),c=(0,u.getMissingScaleProps)(O(O(O({},o),a),s),i,P),p=(0,l.getSeriesChildren)(t.children),f={},h=new Set,d=new Set;return p.forEach((function(r,n){r&&e[n]&&P.forEach((function(e){var i=r.type.getParentConfig(e,r.props),o=i.isDomainAdjustmentNeeded,a=i.zeroBaseValue;if(o&&(h.add(e),d.add(n)),a){var s=t["".concat(e,"Domain")];f["".concat(e,"BaseValue")]=s?s[0]:0}}))})),O(O(O(O(O({},o),f),s),c),{},{_allData:e,_adjustBy:Array.from(h),_adjustWhat:Array.from(d),_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(d.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:O({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);A.displayName="XYPlot";const k=A},(e,t,r)=>{var n=r(2162),i=r(161),o=r(2165),a=r(2170),s=r(2171),c=r(2177),u=Date.prototype.getTime;function l(e,t,r){var h=r||{};return!!(h.strict?o(e,t):e===t)||(!e||!t||"object"!=typeof e&&"object"!=typeof t?h.strict?o(e,t):e==t:function(e,t,r){var o,h;if(typeof e!=typeof t)return!1;if(p(e)||p(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e)!==i(t))return!1;var d=a(e),m=a(t);if(d!==m)return!1;if(d||m)return e.source===t.source&&s(e)===s(t);if(c(e)&&c(t))return u.call(e)===u.call(t);var y=f(e),g=f(t);if(y!==g)return!1;if(y||g){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[h=v[o]],t[h],r))return!1;return!0}(e,t,h))}function p(e){return null==e}function f(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(2163),o=Object.keys,a=o?function(e){return o(e)}:r(2164),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(2163),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},f={$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},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(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),f=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var d=u&&r;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)f.push(String(m));if(n&&e.length>0)for(var y=0;y<e.length;++y)f.push(String(y));else for(var g in e)d&&"prototype"===g||!i.call(e,g)||f.push(String(g));if(c)for(var v=function(e){if("undefined"==typeof window||!h)return p(e);try{return p(e)}catch(e){return!1}}(e),b=0;b<l.length;++b)v&&"constructor"===l[b]||!i.call(e,l[b])||f.push(l[b]);return f}}e.exports=n},(e,t,r)=>{"use strict";var n=r(2166),i=r(179),o=r(2167),a=r(2168),s=r(2169),c=i(a(),Object);n(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},(e,t,r)=>{"use strict";var n=r(2162),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=r(184),c=r(193)(),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(2167);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},(e,t,r)=>{"use strict";var n=r(2168),i=r(2166);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"),p=Object.getOwnPropertyDescriptor;e.exports=c?function(e){if(!e||"object"!=typeof e)return!1;var t=p(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(2166),i=r(179),o=r(2172),a=r(2175),s=r(2176),c=i(a());n(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},(e,t,r)=>{"use strict";var n=r(2173),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(184),i=r(193)(),o=r(2174).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(2172),i=r(2166).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(2166).supportsDescriptors,i=r(2175),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:()=>p,MarginPropType:()=>l,getInnerDimensions:()=>c,getRadialLayoutMargin:()=>u});var n=r(596),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,p=o.right,f=void 0===p?0:p,h=o.bottom,d=void 0===h?0:h;return{marginLeft:c,marginTop:l,marginRight:f,marginBottom:d,innerHeight:i-d-l,innerWidth:n-c-f}}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]),p={left:40,right:10,top:10,bottom:40}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r(285),i=r(596),o=r.n(i),a=r(1954),s=r(1938),c=r(2029);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 p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(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=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 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 m(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){y(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 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 g(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/30):r:function(){return{}};t.renderLayer(m(m({},n),o),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&&p(e,t)}(u,e);var t,r,i,o=f(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,p=t.marginRight,f=t.marginTop;if(r){var h,d,y=n.find((function(e){return e.props.animation})),v=i+f+u,b=o+l+p,S=(h=t.children,d=e?e.children:[],h.map((function(e,t){var r=d[t]?d[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}})));y?function(e,t,r,n){var i=0,o=setInterval((function(){e?(g(e,t,r,n,i),i>30&&clearInterval(o),i+=1):clearInterval(o)}),1)}(r,v,b,S):g(r,v,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,p=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:p*u,style:{height:"".concat(l,"px"),width:"".concat(p,"px")},ref:function(t){return e.canvas=t}}),this.props.children)}}])&&l(t.prototype,r),i&&l(t,i),u}(n.Component);v.displayName="CanvasWrapper",v.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=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(285),i=r(596),o=r.n(i),a=r(2097),s=r(2181);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 p=a.ORIENTATION.TOP,f=a.ORIENTATION.BOTTOM,h=u(u({},s.default.propTypes),{},{orientation:o().oneOf([p,f])}),d={orientation:f,attr:"x",attrAxis:"y"};function m(e){return n.default.createElement(s.default,e)}m.displayName="XAxis",m.propTypes=h,m.defaultProps=d,m.requiresSVG=!0;const y=m},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>k});var n=r(285),i=r(596),o=r.n(i),a=r(1938),s=r(2097),c=r(1968),u=r(2031),l=r(2182),p=r(2183),f=r(2184);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 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 m(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){y(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 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 g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.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 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);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"===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){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var E=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickSize","tickTotal","tickSizeInner","tickSizeOuter"],w=s.ORIENTATION.LEFT,x=s.ORIENTATION.RIGHT,O=s.ORIENTATION.TOP,T=s.ORIENTATION.BOTTOM,P={orientation:o().oneOf([w,x,O,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},A=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)}(h,e);var t,r,i,o=S(h);function h(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),o.apply(this,arguments)}return t=h,(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===O?{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,g({},this.props,{animatedProps:t}),n.default.createElement(h,g({},this.props,{animation:null})))}var r=m(m({},this._getDefaultAxisProps()),this.props),i=r.attrAxis,o=r.className,s=r.height,d=r.hideLine,y=r.hideTicks,v=r.left,b=r.marginTop,S=r.on0,_=r.orientation,O=r.position,T=r.style,P=r.title,C=r.top,A=r.width,k=[w,x].indexOf(_)>-1,R=k?"rv-xy-plot__axis--vertical":"rv-xy-plot__axis--horizontal",I=v,D=C;if(S){var M=(0,c.getAttributeScale)(r,i);k?I=M(0):D=b+M(0)}return n.default.createElement("g",{transform:"translate(".concat(I,",").concat(D,")"),className:(0,u.getCombinedClassName)("rv-xy-plot__axis",R,o),style:T},!d&&n.default.createElement(l.default,{height:s,width:A,orientation:_,style:m(m({},T),T.line)}),!y&&n.default.createElement(p.default,g({},r,{style:m(m({},T),T.ticks)})),P?n.default.createElement(f.default,{position:O,title:P,height:s,width:A,style:m(m({},T),T.title),orientation:_}):null)}}])&&v(t.prototype,r),i&&v(t,i),h}(n.PureComponent);A.displayName="Axis",A.propTypes=P,A.defaultProps=C,A.requiresSVG=!0;const k=A},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(285),i=r(596),o=r.n(i),a=r(2097);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,p=a.ORIENTATION.BOTTOM,f={height:o().number.isRequired,style:o().object,orientation:o().oneOf([c,u,l,p]).isRequired,width:o().number.isRequired};function h(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}))}h.defaultProps={style:{}},h.displayName="AxisLine",h.propTypes=f;const d=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var n=r(285),i=r(596),o=r.n(i),a=r(2097),s=r(1968);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 p(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){f(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 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 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 d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(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=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var g=a.ORIENTATION.LEFT,v=a.ORIENTATION.RIGHT,b=a.ORIENTATION.TOP,S=a.ORIENTATION.BOTTOM,_={height:o().number.isRequired,orientation:o().oneOf([g,v,b,S]).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&&d(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===g||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===g||r===S&&n?"end":r===v||r===b&&n?"start":"middle";var u=this._isAxisVertical(),l=(this._areTicksWrapped()?-1:1)*(a+c),p=(u?"translate(".concat(l,", 0)"):"translate(0, ".concat(l,")"))+(n?" rotate(".concat(n,")"):"");return{textAnchor:e,dy:r===b||n?"0":r===S?"0.72em":"0.32em",transform:p}}},{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 f(e={},"".concat(c,"1"),0),f(e,"".concat(c,"2"),0),f(e,"".concat(u,"1"),-l*a),f(e,"".concat(u,"2"),l*i),e}},{key:"_isAxisVertical",value:function(){var e=this.props.orientation;return e===g||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,f=e.tickTotal,h=e.tickValues,d=r===g?i:0,m=r===b?o:0,y=(0,s.getAttributeScale)(this.props,t),v=(0,a.getTickValues)(y,f,h),S=function(e,t,r){return r||(e.tickFormat?e.tickFormat(t):function(e){return e})}(y,f,l),_=this._getTickContainerPropsGetterFn(),E=this._getTickLineProps(),w=this._getTickLabelProps(),x=v.map((function(e,t){var r=y(e),o=S(e,t,y,f),a=n.default.isValidElement(o)&&!["tspan","textPath"].includes(o.type),s=o&&"string"!=typeof o.type;return n.default.createElement("g",u({key:t},_(r,0),{className:"rv-xy-plot__axis__tick",style:c}),n.default.createElement("line",u({},E,{className:"rv-xy-plot__axis__tick__line",style:p(p({},c),c.line)})),a?n.default.cloneElement(o,s?p(p({},w),{},{containerWidth:i,tickCount:v.length}):void 0):n.default.createElement("text",u({},w,{className:"rv-xy-plot__axis__tick__text",style:p(p({},c),c.text)}),o))}));return n.default.createElement("g",{transform:"translate(".concat(d,", ").concat(m,")"),className:"rv-xy-plot__axis__ticks"},x)}}])&&h(t.prototype,r),i&&h(t,i),c}(n.default.Component);E.defaultProps={style:{}},E.displayName="AxisTicks",E.propTypes=_,E.requiresSVG=!0;const w=E},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(285),i=r(596),o=r.n(i),a=r(2097);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,p=a.ORIENTATION.LEFT,f=a.ORIENTATION.RIGHT,h=a.ORIENTATION.TOP,d=a.ORIENTATION.BOTTOM,m={width:o().number.isRequired,height:o().number.isRequired,orientation:o().oneOf([p,f,h,d]).isRequired,style:o().object,title:o().string.isRequired};function y(e){var t=e.orientation,r=e.position,i=e.width,o=e.height,a=e.style,s=e.title,m=t===h?o:0,y="translate(".concat(t===p?i:0,", ").concat(m,")"),g=function(e,t){var r;return u(r={},p,{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,f,{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,h,{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,d,{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=g.x,b=g.y,S=g.rotation,_=g.textAnchor,E="translate(".concat(v,", ").concat(b,") rotate(").concat(S,")");return n.default.createElement("g",{transform:y,className:"rv-xy-plot__axis__title"},n.default.createElement("g",{style:c({textAnchor:_},a),transform:E},n.default.createElement("text",{style:a},s)))}y.displayName="AxisTitle",y.propTypes=m,y.defaultProps={position:"end"};const g=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(285),i=r(596),o=r.n(i),a=r(2097),s=r(2181);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 p=a.ORIENTATION.LEFT,f=a.ORIENTATION.RIGHT,h=u(u({},s.default.propTypes),{},{orientation:o().oneOf([p,f])}),d={orientation:p,attr:"y",attrAxis:"x"};function m(e){return n.default.createElement(s.default,e)}m.displayName="YAxis",m.propTypes=h,m.defaultProps=d,m.requiresSVG=!0;const y=m},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(285),i=r(596),o=r.n(i),a=r(2030),s=r(2031),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,p=e.className,f=[t];return r&&f.push(r),f.push(i),n.default.createElement("div",{className:(0,s.getCombinedClassName)("rv-continuous-color-legend",p),style:{width:l,height:u}},n.default.createElement("div",{className:"rv-gradient",style:{background:"linear-gradient(to right, ".concat(f.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 p=l},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(285),i=r(596),o=r.n(i),a=r(2031),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,p=[],f=(o-i)/(s-1),h=0;h<s;h++){var d=f*h+i;p.push(n.default.createElement("div",{key:h,className:"rv-bubble",style:{width:d,height:d,borderRadius:d/2}})),p.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}},p,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:()=>h});var n=r(285),i=r(596),o=r.n(i),a=r(2189),s=r(2030),c=r(2031);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){p(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 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 f(e){var t=e.className,r=e.colors,i=e.height,o=e.items,s=e.onItemClick,u=e.onItemMouseEnter,p=e.onItemMouseLeave,f=e.orientation,h=e.style,d=e.width;return n.default.createElement("div",{className:(0,c.getCombinedClassName)("rv-discrete-color-legend",f,t),style:l({width:d,height:i},h)},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:f,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 p(e,t,r)}:null})})))}f.displayName="DiscreteColorLegendItem",f.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"])},f.defaultProps={className:"",colors:s.DISCRETE_COLOR_RANGE,orientation:"vertical"};const h=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(285),i=r(596),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,p=e.onMouseEnter,f=e.onMouseLeave,h=e.title,d="rv-discrete-color-legend-item ".concat(l);a&&(d+=" disabled"),c&&(d+=" clickable");var m=u[i]||r;return n.default.createElement("div",{className:d,onClick:c,onMouseEnter:p,onMouseLeave:f},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"},h))}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 p=l},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(285),i=r(596),o=r.n(i),a=r(2188),s=r(2031);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 p=u(u({},a.default.propTypes),{},{searchText:o().string,onSearchChange:o().func,searchPlaceholder:o().string,searchFn:o().func}),f={className:"",searchText:"",searchFn:function(e,t){return e.filter((function(e){return-1!==String(e.title||e).toLowerCase().indexOf(t)}))}};function h(e){var t=e.className,r=e.colors,i=e.height,o=e.items,c=e.onItemClick,u=e.onItemMouseEnter,l=e.onItemMouseLeave,p=e.onSearchChange,f=e.orientation,h=e.searchFn,d=e.searchPlaceholder,m=e.searchText,y=e.width,g=p?function(e){var t=e.target.value;return p(t)}:null,v=h(o,m);return n.default.createElement("div",{className:(0,s.getCombinedClassName)("rv-search-wrapper",t),style:{width:y,height:i}},n.default.createElement("form",{className:"rv-search-wrapper__form"},n.default.createElement("input",{type:"search",placeholder:d,className:"rv-search-wrapper__form__input",value:m,onChange:g})),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:f})))}h.propTypes=p,h.defaultProps=f,h.displayName="SearchableDiscreteColorLegend";const d=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>R});var n=r(285),i=r(596),o=r.n(i),a=r(1978),s=r(1995),c=r(1938),u=r(2160),l=r(2030),p=r(2178),f=r(2031),h=r(2147),d=r(2146),m=r(2145),y=r(2126),g=r(2134);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 S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(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=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 x(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?x(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(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 P="rv-parallel-coordinates-chart",C=(0,s.format)(".2r");function A(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 k=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&&S(e,t)}(s,e);var t,r,i,o=_(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,S=r.height,_=r.hideInnerMostValues,E=r.margin,w=r.onMouseLeave,x=r.onMouseEnter,C=r.showMarks,k=r.style,R=r.tickFormat,I=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(y.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:_,style:k,tickFormat:R}),M=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,p=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}})),f="".concat(P,"-line"),m="".concat(f," ").concat(P,"-line-unselected"),y={animation:t,className:s?f:m,key:"".concat(a,"-polygon"),data:p,color:e.color||i[a%i.length],style:O(O({},c.lines),e.style||{})};return s||(y.style=O(O({},y.style),c.deselectedLineStyle)),u?n.default.createElement(d.default,y):n.default.createElement(h.default,y)}))}({animation:i,brushFilters:t,colorRange:l,domains:b,data:v,showMarks:C,style:k}),N=n.default.createElement(m.default,{animation:!0,key:s,className:"".concat(P,"-label"),data:A({domains:b,style:k.labels})}),F=(0,p.getInnerDimensions)(this.props,p.DEFAULT_MARGINS),L=F.marginLeft,j=F.marginRight;return n.default.createElement(u.default,{height:S,width:I,margin:E,dontCheckIfEmpty:!0,className:(0,f.getCombinedClassName)(s,P),onMouseLeave:w,onMouseEnter:x,xType:"ordinal",yDomain:[0,1]},c,D.concat(M).concat(N),o&&b.map((function(r){var i=function(n){e.setState({brushFilters:O(O({},t),{},T({},r.name,n?{min:n.bottom,max:n.top}:null))})};return n.default.createElement(g.default,{key:r.name,drag:!0,highlightX:r.name,onBrushEnd:i,onDragEnd:i,highlightWidth:(I-L-j)/b.length,enableX:!1})})))}}])&&b(t.prototype,r),i&&b(t,i),s}(n.Component);k.displayName="ParallelCoordinates",k.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:p.MarginPropType,style:o().shape({axes:o().object,labels:o().object,lines:o().object}),showMarks:o().bool,tickFormat:o().func,width:o().number.isRequired},k.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 R=k},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O});var n=r(285),i=r(596),o=r.n(i),a=r(1978),s=r(1995),c=r(1938),u=r(2160),l=r(2030),p=r(2178),f=r(2031),h=r(2148),d=r(2152),m=r(2145),y=r(2126);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){b(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 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 S="rv-radar-chart",_=(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 x(e){var t=e.animation,r=e.className,i=e.children,o=e.colorRange,s=e.data,c=e.domains,l=e.height,p=e.hideInnerMostValues,g=e.margin,b=e.onMouseLeave,_=e.onMouseEnter,x=e.startingAngle,O=e.style,T=e.tickFormat,P=e.width,C=e.renderAxesOverPolygons,A=e.onValueMouseOver,k=e.onValueMouseOut,R=e.onSeriesMouseOver,I=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(y.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:p,startingAngle:x,style:O,tickFormat:T}),M=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,p=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(p[n](a),0);return{x:u*Math.cos(s),y:u*Math.sin(s),name:e.name}}));return n.default.createElement(d.default,{animation:t,className:"".concat(S,"-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:x,style:O,onSeriesMouseOver:R,onSeriesMouseOut:I}),N=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(h.default,{animation:t,className:"".concat(S,"-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:x,style:O,onValueMouseOver:A,onValueMouseOut:k}),F=n.default.createElement(m.default,{animation:t,key:r,className:"".concat(S,"-label"),data:w({domains:c,style:O.labels,startingAngle:x})});return n.default.createElement(u.default,{height:l,width:P,margin:g,dontCheckIfEmpty:!0,className:(0,f.getCombinedClassName)(r,S),onMouseLeave:b,onMouseEnter:_,xDomain:[-1,1],yDomain:[-1,1]},i,!C&&D.concat(M).concat(F).concat(N),C&&M.concat(F).concat(D).concat(N))}x.displayName="RadarChart",x.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:p.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},x.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:_,renderAxesOverPolygons:!1};const O=x},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(285),i=r(596),o=r.n(i),a=r(2044),s=r(1938),c=r(2028),u=r(2145),l=r(2160),p=r(2030),f=r(2178),h=r(2029),d=r(2031);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 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 g(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){v(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 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){var t=e.animation,r=e.className,i=e.children,o=e.colorType,s=e.data,p=e.getAngle,y=e.getLabel,v=e.getSubLabel,b=e.height,S=e.hideRootNode,_=e.innerRadius,E=e.labelsAboveChildren,w=e.labelsRadiusMultiplier,x=e.labelsStyle,O=e.margin,T=e.onMouseLeave,P=e.onMouseEnter,C=e.radius,A=e.showLabels,k=e.style,R=e.width,I=function(e){var t=e.data,r=e.getAngle;return(0,a.default)().sort(null).value(r)(t).reverse().map((function(e,t){return g(g({},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:b,hideRootNode:S,width:R,getAngle:p}),D=(0,h.getRadialDomain)(I),M=g(g({colorType:o},e),{},{animation:t,radiusDomain:[0,D],data:I,radiusNoFallBack:!0,style:k,arcClassName:"rv-radial-chart__series--pie__slice"});C&&(M.radiusDomain=[0,1],M.radiusRange=[_||0,C],M.radiusType="linear");var N=C||function(e,t){return Math.min(e,t)/2-15}(R,b),F=(0,f.getRadialLayoutMargin)(R,b,N),L=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)}),[])}(I,{getLabel:y,getSubLabel:v},w);return n.default.createElement(l.default,{height:b,width:R,margin:g(g({},F),O),className:(0,d.getCombinedClassName)(r,"rv-radial-chart"),onMouseLeave:T,onMouseEnter:P,xDomain:[-D,D],yDomain:[-D,D]},n.default.createElement(c.default,m({},M,{getAngle:function(e){return e.angle}})),A&&!E&&n.default.createElement(u.default,{data:L,style:x}),i,A&&E&&n.default.createElement(u.default,{data:L,style:x}))}b.displayName="RadialChart",b.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:f.MarginPropType,onValueClick:o().func,onValueMouseOver:o().func,onValueMouseOut:o().func,showLabels:o().bool,style:o().object,subLabel:o().func,width:o().number.isRequired},b.defaultProps={className:"",colorType:"category",colorRange:p.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=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O});var n=r(285),i=r(596),o=r.n(i),a=r(2195),s=r(2160),c=r(2178),u=r(2031),l=r(2156),p=r(2145),f=r(2158),h=r(2030),d=r(2209);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 y(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){g(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 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 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 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 _=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 x(e){var t=e.align,r=e.animation,i=e.children,o=e.className,m=e.hasVoronoi,g=e.height,b=e.hideLabels,_=e.labelRotation,x=e.layout,O=e.links,T=e.linkOpacity,P=e.margin,C=e.nodePadding,A=e.nodes,k=e.nodeWidth,R=e.onValueClick,I=e.onValueMouseOver,D=e.onValueMouseOut,M=e.onLinkClick,N=e.onLinkMouseOver,F=e.onLinkMouseOut,L=e.style,j=e.width;if(0===A.length)return n.default.createElement(s.default,S({},e,{yType:"literal",className:(0,u.getCombinedClassName)("rv-sankey",o)}));var B=v(new Array(A.length)).map((function(e,t){return y({},A[t])})),U=v(new Array(O.length)).map((function(e,t){return y({},O[t])})),V=(0,c.getInnerDimensions)({margin:P,height:g,width:j},w),z=V.marginLeft,H=V.marginTop,q=V.marginRight,G=V.marginBottom,W=(0,a.sankey)().extent([[z,H],[j-q,g-G-H]]).nodeWidth(k).nodePadding(C).nodes(B).links(U).nodeAlign(E[t]).iterations(x);W(B);var K=W.nodeWidth(),$=(0,a.sankeyLinkHorizontal)();return n.default.createElement(s.default,S({},e,{yType:"literal",className:(0,u.getCombinedClassName)("rv-sankey",o)}),U.map((function(e,t){return n.default.createElement(d.default,{style:L.links,data:$(e),opacity:e.opacity||T,color:e.color,onLinkClick:M,onLinkMouseOver:N,onLinkMouseOut:F,strokeWidth:Math.max(e.width,1),node:e,nWidth:K,key:"link-".concat(t)})})),n.default.createElement(l.default,{animation:r,className:(0,u.getCombinedClassName)(o,"rv-sankey__node"),data:B.map((function(e){return y(y({},e),{},{y:e.y1-H,y0:e.y0-H,x:e.x1,x0:e.x0,color:e.color||h.DISCRETE_COLOR_RANGE[0],sourceLinks:null,targetLinks:null})})),style:L.rects,onValueClick:R,onValueMouseOver:I,onValueMouseOut:D,colorType:"literal"}),!b&&n.default.createElement(p.default,{animation:r,className:o,rotation:_,labelAnchorY:"text-before-edge",data:B.map((function(e,t){return y({x:e.x0+(e.x0<j/2?K+10:-10),y:(e.y0+e.y1)/2-H,label:e.name,style:y({textAnchor:e.x0<j/2?"start":"end",dy:"-.5em"},L.labels)},A[t])}))}),m&&n.default.createElement(f.default,{className:"rv-sankey__voronoi",extent:[[-z,-H],[j+q,g+G]],nodes:B,onClick:R,onHover:I,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)}x.defaultProps={align:"justify",className:"",hasVoronoi:!1,hideLabels:!1,labelRotation:0,layout:50,margin:w,nodePadding:10,nodeWidth:10,onValueMouseOver:_,onValueClick:_,onValueMouseOut:_,onLinkClick:_,onLinkMouseOver:_,onLinkMouseOut:_,style:{links:{},rects:{},labels:{}}},x.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 O=x},(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(2196),i=r(2197),o=r(2202)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(2200),i=r(2201),o=r(2198),a=r(2197),s=r(2199);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 p(e){return e.value}function f(e){return e.index}function h(e){return e.nodes}function d(e){return e.links}function m(e,t){const r=e.get(t);if(!r)throw new Error("missing: "+t);return r}function y({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 g(){let e,t,r,g=0,v=0,b=1,S=1,_=24,E=8,w=f,x=a.justify,O=h,T=d,P=6;function C(){const a={nodes:O.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,p),(0,n.default)(t.targetLinks,p)):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-g-_)/(r-1),o=new Array(r);for(const t of e){const e=Math.max(0,Math.min(r-1,Math.floor(x.call(null,t,r))));t.layer=e,t.x0=g+e*n,t.x1=t.x0+_,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,(S-v)/((0,i.default)(a,(e=>e.length))-1)),function(t){const r=(0,o.default)(t,(t=>(S-v-(t.length-1)*e)/(0,n.default)(t,p)));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=(S-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)}N(n)}}(a);for(let e=0;e<P;++e){const t=Math.pow(.99,e),r=Math.max(1-t,(e+1)/P);k(a,t,r),A(a,t,r)}}(a),y(a),a}function A(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+=F(r,e)*o,n+=o}if(!(n>0))continue;let i=(t/n-e.y0)*r;e.y0+=i,e.y1+=i,M(e)}void 0===t&&o.sort(l),R(o,n)}}function k(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+=L(e,r)*o,n+=o}if(!(n>0))continue;let i=(t/n-e.y0)*r;e.y0+=i,e.y1+=i,M(e)}void 0===t&&o.sort(l),R(o,n)}}function R(t,r){const n=t.length>>1,i=t[n];D(t,i.y0-e,n-1,r),I(t,i.y1+e,n+1,r),D(t,S,t.length-1,r),I(t,v,0,r)}function I(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 M({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 N(e){if(void 0===r)for(const{sourceLinks:t,targetLinks:r}of e)t.sort(u),r.sort(c)}function F(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 L(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 y(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?(x="function"==typeof e?e:(0,s.default)(e),C):x},C.nodeSort=function(e){return arguments.length?(t=e,C):t},C.nodeWidth=function(e){return arguments.length?(_=+e,C):_},C.nodePadding=function(t){return arguments.length?(E=e=+t,C):E},C.nodes=function(e){return arguments.length?(O="function"==typeof e?e:(0,s.default)(e),C):O},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?(g=v=0,b=+e[0],S=+e[1],C):[b-g,S-v]},C.extent=function(e){return arguments.length?(g=+e[0][0],b=+e[1][0],v=+e[0][1],S=+e[1][1],C):[[g,v],[b,S]]},C.iterations=function(e){return arguments.length?(P=+e,C):P},C}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{center:()=>c,justify:()=>s,left:()=>o,right:()=>a});var n=r(2198);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(2203);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:()=>d,linkRadial:()=>y,linkVertical:()=>m});var n=r(2208),i=r(2204),o=r(2205),a=r(2206),s=r(2207);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,p=null;function f(){var o,a=i.slice.call(arguments),c=t.apply(this,a),u=r.apply(this,a);if(p||(p=o=(0,n.default)()),e(p,+s.apply(this,(a[0]=c,a)),+l.apply(this,a),+s.apply(this,(a[0]=u,a)),+l.apply(this,a)),o)return p=null,o+""||null}return f.source=function(e){return arguments.length?(t=e,f):t},f.target=function(e){return arguments.length?(r=e,f):r},f.x=function(e){return arguments.length?(s="function"==typeof e?e:(0,o.default)(+e),f):s},f.y=function(e){return arguments.length?(l="function"==typeof e?e:(0,o.default)(+e),f):l},f.context=function(e){return arguments.length?(p=null==e?null:e,f):p},f}function p(e,t,r,n,i){e.moveTo(t,r),e.bezierCurveTo(t=(t+n)/2,r,t,i,n,i)}function f(e,t,r,n,i){e.moveTo(t,r),e.bezierCurveTo(t,r=(r+i)/2,n,r,n,i)}function h(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 d(){return l(p)}function m(){return l(f)}function y(){var e=l(h);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,p=s-e,f=c-t,h=p*p+f*f;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>o)if(Math.abs(f*u-l*p)>o&&a){var d=r-s,m=i-c,y=u*u+l*l,g=d*d+m*m,v=Math.sqrt(y),b=Math.sqrt(h),S=a*Math.tan((n-Math.acos((y+h-g)/(2*v*b)))/2),_=S/b,E=S/v;Math.abs(_-1)>o&&(this._+="L"+(e+_*p)+","+(t+_*f)),this._+="A"+a+","+a+",0,0,"+ +(f*d>p*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),p=r*Math.sin(s),f=e+l,h=t+p,d=1^u,m=u?s-c:c-s;if(r<0)throw new Error("negative radius: "+r);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>o||Math.abs(this._y1-h)>o)&&(this._+="L"+f+","+h),r&&(m<0&&(m=m%i+i),m>a?this._+="A"+r+","+r+",0,1,"+d+","+(e-l)+","+(t-p)+"A"+r+","+r+",0,1,"+d+","+(this._x1=f)+","+(this._y1=h):m>o&&(this._+="A"+r+","+r+",0,"+ +(m>=n)+","+d+","+(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(285),i=r(2030),o=r(1938),a=r(2029);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,p=e.color,f=e.strokeWidth,h=e.style,d=e.onLinkClick,m=e.onLinkMouseOver,y=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},h,{className:"rv-sankey__link",opacity:Number.isFinite(l)?l:.7,stroke:p||c,onClick:function(e){return d(i,e)},onMouseOver:function(e){return m(i,e)},onMouseOut:function(e){return y(i,e)},strokeWidth:f,fill:"none"}))}u.displayName="SankeyLink",u.requiresSVG=!0;const l=u},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(285),i=r(596),o=r.n(i),a=r(2211),s=r(2214),c=r(1978),u=r(2228),l=r(1938),p=r(2145),f=r(2028),h=r(2160),d=r(2029),m=r(2178),y=r(2031);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){b(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 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 S="rv-sunburst",_=["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,g=e.data,b=e.height,w=e.hideRootNode,x=e.getLabel,O=e.width,T=e.getSize,P=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)(),p=(0,s.default)(t).sum(o),f=Math.min(i,r)/2-10,h=(0,c.default)().range([0,2*Math.PI]),d=(0,u.sqrt)().range([0,f]);return l(p).descendants().reduce((function(e,t,r){return n&&0===r?e:e.concat([v({angle0:Math.max(0,Math.min(2*Math.PI,h(t.x0))),angle:Math.max(0,Math.min(2*Math.PI,h(t.x1))),radius0:Math.max(0,d(t.y0)),radius:Math.max(0,d(t.y1)),depth:t.depth,parent:t.parent},t.data)])}),[])}({data:g,height:b,hideRootNode:w,width:O,getSize:T}),A=(0,d.getRadialDomain)(C),k=(0,m.getRadialLayoutMargin)(O,b,A),R=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:x,getRadius0:function(e){return e.radius0}});return n.default.createElement(h.default,{height:b,hasTreeStructure:!0,width:O,className:(0,y.getCombinedClassName)(S,o),margin:k,xDomain:[-A,A],yDomain:[-A,A]},n.default.createElement(f.default,v(v({colorType:P},e),{},{animation:i,radiusDomain:[0,A],data:i?C.map((function(e,t){return v(v({},e),{},{parent:null,children:null,index:t})})):C,_data:i?C:null,arcClassName:"".concat(S,"__series--radial__arc")},_.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}),{}))),R.length>0&&n.default.createElement(p.default,{data:R,getLabel:x}),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 x=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2212),i=r(2213);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:()=>_,computeHeight:()=>S,default:()=>y});var n=r(2215),i=r(2216),o=r(2217),a=r(2218),s=r(2219),c=r(2220),u=r(2221),l=r(2222),p=r(2223),f=r(2224),h=r(2225),d=r(2226),m=r(2227);function y(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=v)):void 0===t&&(t=g);for(var r,n,i,o,a,s=new _(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 _(i[o])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(S)}function g(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 S(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function _(e){this.data=e,this.depth=this.height=0,this.parent=null}_.prototype=y.prototype={constructor:_,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:p.default,descendants:f.default,leaves:h.default,links:d.default,copy:function(){return y(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:()=>p});var n=r(1978),i=r(1979),o=r(1988);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 p(){return l.apply(null,arguments).exponent(.5)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>k});var n=r(285),i=r(596),o=r.n(i),a=r(2233),s=r(2235),c=r(2234),u=r(2213),l=r(2236),p=r(2237),f=r(2211),h=r(2214),d=r(2238),m=r(2245),y=r(2030),g=r(1938),v=r(1968),b=r(2178),S=r(2230),_=r(2232);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 x(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){O(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 O(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:p.default},P=function(e){return e},C=["opacity","color"];function A(e){var t=function(e){var t=e.data.children||[],r=x(x(x({},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,f.default)().size("partition-pivot"===o?[n,t]:[t,n]).padding(a)((0,h.default)(i).sum(c).sort((function(e,t){return s(e,t,c)}))).descendants();return"partition-pivot"===o?u.map((function(e){return x(x({},e),{},{x0:e.y0,x1:e.y1,y0:e.x0,y1:e.x1})})):u}if("circlePack"===o)return(0,d.default)().size([t,n]).padding(a)((0,h.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,h.default)(i).sum(c).sort((function(e,t){return s(e,t,c)}))).descendants()}(),a="SVG"===i?_.default:S.default;return n.default.createElement(a,E({},e,{nodes:o,scales:t}))}A.displayName="Treemap",A.propTypes={animation:g.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},A.defaultProps={className:"",colorRange:y.CONTINUOUS_COLOR_RANGE,_colorValue:y.DEFAULT_COLOR,data:{children:[]},hideRootNode:!1,margin:{left:40,right:10,top:10,bottom:40},mode:"squarify",onLeafClick:P,onLeafMouseOver:P,onLeafMouseOut:P,opacityType:y.OPACITY_TYPE,_opacityValue:y.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 k=A},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(285),i=r(2231),o=r(2031);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,p=e.mode,f=e.nodes,h=e.width,d=e.scales,m=e.style,y="circlePack"===p;return n.default.createElement("div",{className:(0,o.getCombinedClassName)("rv-treemap",y&&"rv-treemap-circle-paked",r),style:{height:s,width:h}},f.map((function(r,o){if(u&&!o)return null;var s=c(c({animation:t,node:r,getLabel:l},e),{},{x0:y?r.x:r.x0,x1:y?r.x:r.x1,y0:y?r.y:r.y0,y1:y?r.y:r.y1,r:y?r.r:1,scales:d,style:m});return n.default.createElement(i.default,a({},s,{key:"leaf-".concat(o)}))})))}l.displayName="TreemapDOM";const p=l},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(285),i=r(596),o=r.n(i),a=r(1938),s=r(1968);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 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)}var f=["colorRange","colorDomain","color","opacityRange","opacityDomain","opacity","x0","x1","y0","y1","r"];function h(e){var t=e.animation,r=e.getLabel,i=e.mode,o=e.node,c=e.onLeafClick,l=e.onLeafMouseOver,d=e.onLeafMouseOut,m=e.r,y=e.scales,g=e.x0,v=e.x1,b=e.y0,S=e.y1,_=e.style;if(t)return n.default.createElement(a.default,p({},e,{animatedProps:f}),n.default.createElement(h,p({},e,{animation:null})));var E="circlePack"===i,w=y.color(o),x=y.opacity(o),O=(0,s.getFontColorFromBackground)(w),T=r(o.data),P=u(u({top:E?b-m:b,left:E?g-m:g,width:E?2*m:v-g,height:E?2*m:S-b,background:w,opacity:x,color:O},_),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 d(o,e)},onClick:function(e){return c(o,e)},style:P},n.default.createElement("div",{className:"rv-treemap__leaf__content"},T))}h.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 d=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r(285),i=r(2160),o=r(2152),a=r(2148),s=r(2145),c=r(2031);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 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 f(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 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 m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(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=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 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)}(h,e);var t,r,u,p=y(h);function h(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),p.apply(this,arguments)}return t=h,(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,p=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}),f=p.rows,h=p.minY,d=p.maxY,m=p.minX,y=p.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:f,colorType:"literal",getColor:function(e){return e.color},sizeType:"literal",getSize:function(e){return e.size},style:l}),minY:h,maxY:d,minX:m,maxX:y}}},{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,p=u.color;return i.reduce((function(e,i,u){if(!u&&r)return e;var h=i.x0,d=i.x1,m=i.y1,y=i.y0,g=h,v=y,b=m-y,S=d-h;e.maxY=Math.max(v+b,e.maxY),e.minY=Math.min(v,e.minY),e.maxX=Math.max(g+S,e.maxX),e.minX=Math.min(g,e.minX);var _=[{x:g,y:v},{x:g,y:v+b},{x:g+S,y:v+b},{x:g+S,y:v}];return e.updatedNodes=e.updatedNodes.concat([n.default.createElement(o.default,{animation:t,className:"rv-treemap__leaf",key:u,color:p(i),type:"literal",onSeriesMouseEnter:a,onSeriesMouseLeave:s,onSeriesClick:c,data:_,style:f(f({},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,p="circlePack"===o,h=p?this.getCircularNodes():this.getNonCircularNodes(),d=h.minY,m=h.maxY,y=h.minX,g=h.maxX,v=h.updatedNodes,b=a.reduce((function(e,t){return t.data.title?e.concat(f(f({},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",p&&"rv-treemap-circle-paked",t),width:u,height:r,yDomain:[m,d],xDomain:[y,g],colorType:"literal",hasTreeStructure:!0},this.props),v,n.default.createElement(s.default,{data:b}))}}])&&d(t.prototype,r),u&&d(t,u),h}(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(2213),i=r(2234),o=(1+Math.sqrt(5))/2;function a(e,t,r,o,a,s){for(var c,u,l,p,f,h,d,m,y,g,v,b=[],S=t.children,_=0,E=0,w=S.length,x=t.value;_<w;){l=a-r,p=s-o;do{f=S[E++].value}while(!f&&E<w);for(h=d=f,v=f*f*(g=Math.max(p/l,l/p)/(x*e)),y=Math.max(d/v,v/h);E<w;++E){if(f+=u=S[E].value,u<h&&(h=u),u>d&&(d=u),v=f*f*g,(m=Math.max(d/v,v/h))>y){f-=u;break}y=m}b.push(c={value:f,dice:l<p,children:S.slice(_,E)}),c.dice?(0,n.default)(c,r,o,a,x?o+=p*f/x:s):(0,i.default)(c,r,o,x?r+=l*f/x:a,s),x-=f,_=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(2213),i=r(2234),o=r(2233);const a=function e(t){function r(e,r,a,s,c){if((u=e._squarify)&&u.ratio===t)for(var u,l,p,f,h,d=-1,m=u.length,y=e.value;++d<m;){for(p=(l=u[d]).children,f=l.value=0,h=p.length;f<h;++f)l.value+=p[f].value;l.dice?(0,n.default)(l,r,a,s,y?a+=(c-a)*l.value/y:c):(0,i.default)(l,r,a,y?r+=(s-r)*l.value/y:s,c),y-=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(2213),i=r(2234);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 p=u[t],f=n/2+p,h=t+1,d=r-1;for(;h<d;){var m=h+d>>>1;u[m]<f?h=m+1:d=m}f-u[h-1]<u[h]-f&&t+1<h&&--h;var y=u[h]-p,g=n-y;if(a-i>c-o){var v=n?(i*g+a*y)/n:a;e(t,h,y,i,o,v,c),e(h,r,g,v,o,a,c)}else{var b=n?(o*g+c*y)/n:c;e(t,h,y,i,o,a,b),e(h,r,g,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(2239),i=r(2240),o=r(2241),a=r(2242);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(p(1)):n.eachBefore(u(s)).eachAfter(l(i.constantZero,1,c)).eachAfter(l(a,n.r/Math.min(t,r),c)).eachBefore(p(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 p(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:()=>p,packSiblingsRandom:()=>l});var n=r(2243),i=r(2241),o=r(2244);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(!(p=(e=(0,n.default)(e)).length))return 0;var r,i,l,p,f,h,d,m,y,g,v;if((r=e[0]).x=0,r.y=0,!(p>1))return r.r;if(i=e[1],r.x=-i.r,i.x=r.r,i.y=0,!(p>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(d=3;d<p;++d){a(r._,i._,l=e[d]),l=new u(l),m=i.next,y=r.previous,g=i._.r,v=r._.r;do{if(g<=v){if(s(m._,l._)){i=m,r.next=i,i.previous=r,--d;continue e}g+=m._.r,m=m.next}else{if(s(y._,l._)){(r=y).next=i,i.previous=r,--d;continue e}v+=y._.r,y=y.previous}}while(m!==y.next);for(l.previous=r,l.next=i,r.next=i.previous=i=l,f=c(r);(l=l.next)!==i;)(h=c(l))<f&&(r=l,f=h);i=r.next}for(r=[i._],l=i;(l=l.next)!==i;)r.push(l._);for(l=(0,o.packEncloseRandom)(r,t),d=0;d<p;++d)(r=e[d]).x-=l.x,r.y-=l.y;return l.r}function p(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(2243),i=r(2241);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=p(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(f(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(f(e[r],e[n]),t)&&c(f(e[r],t),e[n])&&c(f(e[n],t),e[r])&&l(h(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 p(e){switch(e.length){case 1:return{x:(t=e[0]).x,y:t.y,r:t.r};case 2:return f(e[0],e[1]);case 3:return h(e[0],e[1],e[2])}var t}function f(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,p=Math.sqrt(c*c+u*u);return{x:(r+o+c/p*l)/2,y:(n+a+u/p*l)/2,r:(p+i+s)/2}}function h(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,p=r.r,f=n-a,h=n-u,d=i-s,m=i-l,y=c-o,g=p-o,v=n*n+i*i-o*o,b=v-a*a-s*s+c*c,S=v-u*u-l*l+p*p,_=h*d-f*m,E=(d*S-m*b)/(2*_)-n,w=(m*y-d*g)/_,x=(h*b-f*S)/(2*_)-i,O=(f*g-h*y)/_,T=w*w+O*O-1,P=2*(o+E*w+x*O),C=E*E+x*x-o*o,A=-(Math.abs(T)>1e-6?(P+Math.sqrt(P*P-4*T*C))/(2*T):C/P);return{x:n+E+w*A,y:i+x+O*A,r:A}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(2212),i=r(2233),o=r(2239),a=r(2240);function s(){var e=i.default,t=!1,r=1,s=1,c=[0],u=a.constantZero,l=a.constantZero,p=a.constantZero,f=a.constantZero,h=a.constantZero;function d(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+=h(t)-r,i+=l(t)-r,(o-=p(t)-r)<n&&(n=o=(n+o)/2),(a-=f(t)-r)<i&&(i=a=(i+a)/2),e(t,n,i,o,a))}return d.round=function(e){return arguments.length?(t=!!e,d):t},d.size=function(e){return arguments.length?(r=+e[0],s=+e[1],d):[r,s]},d.tile=function(t){return arguments.length?(e=(0,o.required)(t),d):e},d.padding=function(e){return arguments.length?d.paddingInner(e).paddingOuter(e):d.paddingInner()},d.paddingInner=function(e){return arguments.length?(u="function"==typeof e?e:(0,a.default)(+e),d):u},d.paddingOuter=function(e){return arguments.length?d.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):d.paddingTop()},d.paddingTop=function(e){return arguments.length?(l="function"==typeof e?e:(0,a.default)(+e),d):l},d.paddingRight=function(e){return arguments.length?(p="function"==typeof e?e:(0,a.default)(+e),d):p},d.paddingBottom=function(e){return arguments.length?(f="function"==typeof e?e:(0,a.default)(+e),d):f},d.paddingLeft=function(e){return arguments.length?(h="function"==typeof e?e:(0,a.default)(+e),d):h},d}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(285);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:()=>I,FlexibleWidthXYPlot:()=>R,FlexibleXYPlot:()=>D,makeHeightFlexible:()=>C,makeVisFlexible:()=>A,makeWidthFlexible:()=>k});var n=r(285),i=r(2248),o=r.n(i),a=r(2160),s=r(1976);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 p(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 f(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 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 d(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),e}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(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"===c(t)||"function"==typeof t))return t;return g(e)}(this,r)}}function g(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 S="container",_=[],E=100,w=null;function x(){o().clearTimeout(w),w=o().setTimeout(O,E)}function O(){_.forEach((function(e){return e()}))}function T(e){return _.push(e),1===_.length&&o().addEventListener("resize",x),function(){!function(e){var t=_.indexOf(e);t>-1&&_.splice(t,1)}(e),0===_.length&&(o().clearTimeout(w),o().removeEventListener("resize",x))}}function P(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=y(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(g(t=o.call(this,e)),"_onResize",(function(){var e=(0,s.getDOMNode)(t[S]),r=e.offsetHeight,n=e.offsetWidth,i=t.state.height===r?{}:{height:r},o=t.state.width===n?{}:{width:n};t.setState(p(p({},i),o))})),t.state={height:0,width:0},t}return d(a,null,[{key:"propTypes",get:function(){var t=e.propTypes;t.height,t.width;return f(t,["height","width"])}}]),d(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=p(p({},this.props),{},{animation:0===a&&0===s?null:this.props.animation}),l=p(p({},r?{height:a}:{}),t?{width:s}:{});return n.default.createElement("div",{ref:function(e){return i[S]=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 P(e,!1,!0)}function A(e){return P(e,!0,!0)}function k(e){return P(e,!0,!1)}var R=k(a.default),I=C(a.default),D=A(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(2525);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:()=>Dn,Draggable:()=>Jn,Droppable:()=>xi,resetServerContext:()=>In,useKeyboardSensor:()=>sn,useMouseSensor:()=>rn,useTouchSensor:()=>pn});var n=r(285),i=r(2867),o=r(2869),a=r(2905),s=r(2906),c=r(2908),u=r(2909),l=r(1851);function p(e,t){}p.bind(null,"warn"),p.bind(null,"error");function f(){}function h(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 d=!0,m="Invariant failed";class y extends Error{}function g(e,t){if(!e)throw new y(d?m:`${m}: ${t||""}`)}y.prototype.toString=function(){return this.message};class v extends n.default.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=f,this.onWindowError=e=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort();e.error instanceof y&&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=h(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof y))throw e;this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const b=e=>e+1,S=(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 `},_=(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 S(e.source,t);const r=e.combine;return r?_(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 ${S(e.source,t)}\n `:r?`\n You have dropped the item.\n ${_(e.draggableId,e.source,r)}\n `:`\n The item has been dropped while not over a drop area.\n ${E(e.source)}\n `}};var x=w;const O={x:0,y:0},T=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),P=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),C=(e,t)=>e.x===t.x&&e.y===t.y,A=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),k=(e,t,r=0)=>"x"===e?{x:t,y:r}:{x:r,y:t},R=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),I=(e,t)=>Math.min(...t.map((t=>R(e,t)))),D=e=>t=>({x:e(t.x),y:e(t.y)});const M=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),N=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}],F=(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 L=({page:e,withPlaceholder:t,axis:r,frame:n})=>{const i=((e,t)=>t?M(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:F(o,n)}},j=(e,t)=>{e.frame||g(!1);const r=e.frame,n=P(t,r.scroll.initial),i=A(n),o={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:i},max:r.scroll.max}},a=L({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return{...e,frame:o,subject:a}};const B=(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)),{}))),V=(0,c.default)((e=>Object.values(e))),z=(0,c.default)((e=>Object.values(e)));var H=(0,c.default)(((e,t)=>{const r=z(t).filter((t=>e===t.descriptor.droppableId)).sort(((e,t)=>e.descriptor.index-t.descriptor.index));return r}));function q(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 W=(0,c.default)(((e,t)=>t.filter((t=>t.descriptor.id!==e.descriptor.id)))),K=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const $={point:O,value:0},Y={invisible:{},visible:{},all:[]};var X={displaced:Y,displacedBy:$,at:null},Q=(e,t)=>r=>e<=r&&r<=t,J=e=>{const t=Q(e.top,e.bottom),r=Q(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=Q(e.top,e.bottom),r=Q(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:O;return M(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:Z});function ie({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);var l;if(!(l={target:c,destination:t,viewport:n,withDroppableDisplacement:!0},re({...l,isVisibleThroughFrameFn:J})))return e.invisible[a.descriptor.id]=!0,e;const p=((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})(u,o,i),f={draggableId:u,shouldAnimate:p};return e.visible[u]=f,e}),{all:[],visible:{},invisible:{}})}function oe({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 ae({draggable:e,insideDestination:t,destination:r,viewport:n,displacedBy:i,last:o,index:a,forceShouldAnimate:s}){const c=K(e,r);if(null==a)return oe({insideDestination:t,inHomeList:c,displacedBy:i,destination:r});const u=t.find((e=>e.descriptor.index===a));if(!u)return oe({insideDestination:t,inHomeList:c,displacedBy:i,destination:r});const l=W(e,t),p=t.indexOf(u);return{displaced:ie({afterDragging:l.slice(p),destination:r,displacedBy:i,last:o,viewport:n.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function se(e,t){return Boolean(t.effected[e])}var ce=({isMovingForward:e,isInHomeList:t,draggable:r,draggables:n,destination:i,insideDestination:o,previousImpact:a,viewport:s,afterCritical:c})=>{const u=a.at;if(u||g(!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:ae({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 se(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:ae({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:l})},ue=({afterCritical:e,impact:t,draggables:r})=>{const n=G(t);n||g(!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 se(r,t)?i?O:A(n.point):i?n.point:O})({displaced:t.displaced,afterCritical:e,combineWith:i,displacedBy:t.displacedBy});return T(o,a)};const le=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,pe=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,fe=({axis:e,moveRelativeTo:t,isMoving:r})=>k(e.line,t.marginBox[e.end]+le(e,r),pe(e,t.marginBox,r)),he=({axis:e,moveRelativeTo:t,isMoving:r})=>k(e.line,t.marginBox[e.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(e,r),pe(e,t.marginBox,r));var de=({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:i})=>{const o=H(n.descriptor.id,r),a=t.page,c=n.axis;if(!o.length)return(({axis:e,moveInto:t,isMoving:r})=>k(e.line,t.contentBox[e.start]+le(e,r),pe(e,t.contentBox,r)))({axis:c,moveInto:n.page,isMoving:a});const{displaced:u,displacedBy:l}=e,p=u.all[0];if(p){const e=r[p];if(se(p,i))return he({axis:c,moveRelativeTo:e.page,isMoving:a});const t=(0,s.offset)(e.page,l.point);return he({axis:c,moveRelativeTo:t,isMoving:a})}const f=o[o.length-1];if(f.descriptor.id===t.descriptor.id)return a.borderBox.center;if(se(f.descriptor.id,i)){const e=(0,s.offset)(f.page,A(i.displacedBy.point));return fe({axis:c,moveRelativeTo:e,isMoving:a})}return fe({axis:c,moveRelativeTo:f.page,isMoving:a})},me=(e,t)=>{const r=e.frame;return r?T(t,r.scroll.diff.displacement):t};var ye=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?de({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:i}):ue({impact:e,draggables:n,afterCritical:i}):o})(e),r=e.droppable;return r?me(r,t):t},ge=(e,t)=>{const r=P(t,e.scroll.initial),n=A(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 ve(e,t){return e.map((e=>t[e]))}var be=({pageBorderBoxCenter:e,draggable:t,viewport:r})=>{const n=((e,t)=>T(e.scroll.diff.displacement,t))(r,e),i=P(n,t.page.borderBox.center);return T(t.client.borderBox.center,i)},Se=({draggable:e,destination:t,newPageBorderBoxCenter:r,viewport:n,withDroppableDisplacement:i,onlyOnMainAxis:o=!1})=>{const a=P(r,e.page.borderBox.center),s={target:M(e.page.borderBox,a),destination:t,withDroppableDisplacement:i,viewport:n};return o?(e=>{return re({...e,isVisibleThroughFrameFn:(t=e.destination.axis,e=>{const r=Q(e.top,e.bottom),n=Q(e.left,e.right);return e=>t===ee?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)})});var t})(s):ne(s)},_e=({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=H(r.descriptor.id,n),l=K(t,r),p=(({isMovingForward:e,draggable:t,destination:r,insideDestination:n,previousImpact:i})=>{if(!r.isCombineEnabled)return null;if(!q(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=W(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&&g(!1);const l=u-1;return l<0?null:o(c[l].descriptor.id)})({isMovingForward:e,draggable:t,destination:r,insideDestination:u,previousImpact:i})||ce({isMovingForward:e,isInHomeList:l,draggable:t,draggables:n,destination:r,insideDestination:u,previousImpact:i,viewport:o,afterCritical:c});if(!p)return null;const f=ye({impact:p,draggable:t,droppable:r,draggables:n,afterCritical:c});if(Se({draggable:t,destination:r,newPageBorderBoxCenter:f,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})){return{clientSelection:be({pageBorderBoxCenter:f,draggable:t,viewport:o}),impact:p,scrollJumpRequest:null}}const h=P(f,a),d=(({impact:e,viewport:t,destination:r,draggables:n,maxScrollChange:i})=>{const o=ge(t,T(t.scroll.current,i)),a=r.frame?j(r,T(r.frame.scroll.current,i)):r,s=e.displaced,c=ie({afterDragging:ve(s.all,n),destination:r,displacedBy:e.displacedBy,viewport:o.frame,last:s,forceShouldAnimate:!1}),u=ie({afterDragging:ve(s.all,n),destination:a,displacedBy:e.displacedBy,viewport:t.frame,last:s,forceShouldAnimate:!1}),l={},p={},f=[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,f);t?p[e]=t:l[e]=!0})),{...e,displaced:{all:s.all,invisible:l,visible:p}}})({impact:p,viewport:o,destination:r,draggables:n,maxScrollChange:h});return{clientSelection:s,impact:d,scrollJumpRequest:h}};const Ee=e=>{const t=e.subject.active;return t||g(!1),t};const we=(e,t)=>{const r=e.page.borderBox.center;return se(e.descriptor.id,t)?P(r,t.displacedBy.point):r},xe=(e,t)=>{const r=e.page.borderBox;return se(e.descriptor.id,t)?M(r,A(t.displacedBy.point)):r};var Oe=(0,c.default)((function(e,t){const r=t[e.line];return{value:r,point:k(e.line,r)}}));const Te=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),Pe=(e,t,r)=>{const n=e.frame;K(t,e)&&g(!1),e.subject.withPlaceholder&&g(!1);const i=Oe(e.axis,t.displaceBy).point,o=((e,t,r)=>{const n=e.axis;if("virtual"===e.descriptor.mode)return k(n.line,t[n.line]);const i=e.subject.page.contentBox[n.size],o=H(e.descriptor.id,r).reduce(((e,t)=>e+t.client.marginBox[n.size]),0)+t[n.line]-i;return o<=0?null:k(n.line,o)})(e,i,r),a={placeholderSize:i,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){const t=L({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=Te(n,s),u=L({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:c});return{...e,subject:u,frame:c}};var Ce=({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=Q(o[a.start],o[a.end]),c=V(n).filter((e=>e!==r)).filter((e=>e.isEnabled)).filter((e=>Boolean(e.subject.active))).filter((e=>J(i.frame)(Ee(e)))).filter((t=>{const r=Ee(t);return e?o[a.crossAxisEnd]<r[a.crossAxisEnd]:r[a.crossAxisStart]<o[a.crossAxisStart]})).filter((e=>{const t=Ee(e),r=Q(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=Ee(t)[a.crossAxisStart],i=Ee(r)[a.crossAxisStart];return e?n-i:i-n})).filter(((e,t,r)=>Ee(e)[a.crossAxisStart]===Ee(r[0])[a.crossAxisStart]));if(!c.length)return null;if(1===c.length)return c[0];const u=c.filter((e=>Q(Ee(e)[a.start],Ee(e)[a.end])(t[a.line])));return 1===u.length?u[0]:u.length>1?u.sort(((e,t)=>Ee(e)[a.start]-Ee(t)[a.start]))[0]:c.sort(((e,r)=>{const n=I(t,N(Ee(e))),i=I(t,N(Ee(r)));return n!==i?n-i:Ee(e)[a.start]-Ee(r)[a.start]}))[0]})({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:o,viewport:a});if(!c)return null;const u=H(c.descriptor.id,i),l=(({pageBorderBoxCenter:e,viewport:t,destination:r,insideDestination:n,afterCritical:i})=>{const o=n.filter((e=>ne({target:xe(e,i),destination:r,viewport:t.frame,withDroppableDisplacement:!0}))).sort(((t,n)=>{const o=R(e,me(r,we(t,i))),a=R(e,me(r,we(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}),p=(({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:$,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},t=ye({impact:e,draggable:n,droppable:o,draggables:i,afterCritical:s}),c=K(n,o)?o:Pe(o,n,i);return Se({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=Oe(o.axis,n.displaceBy);return ae({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(!p)return null;const f=ye({impact:p,draggable:r,droppable:c,draggables:i,afterCritical:s});return{clientSelection:be({pageBorderBoxCenter:f,draggable:r,viewport:a}),impact:p,scrollJumpRequest:null}},Ae=e=>{const t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null};var ke=({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:p,droppables:f}=e.dimensions;return s?_e({isMovingForward:c,previousPageBorderBoxCenter:l,draggable:u,destination:o,draggables:p,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):Ce({isMovingForward:c,previousPageBorderBoxCenter:l,draggable:u,isOver:o,draggables:p,droppables:f,viewport:e.viewport,afterCritical:e.afterCritical})};function Re(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Ie(e){const t=Q(e.top,e.bottom),r=Q(e.left,e.right);return function(e){return t(e.y)&&r(e.x)}}function De({pageBorderBox:e,draggable:t,droppables:r}){const n=V(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(Ie(r)(e.center))return!0;const o=t.axis,a=r.center[o.crossAxisLine],s=e[o.crossAxisStart],c=e[o.crossAxisEnd],u=Q(r[o.crossAxisStart],r[o.crossAxisEnd]),l=u(s),p=u(c);return!l&&!p||(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=k(t.axis.line,e.center[r.line],t.page.borderBox.center[r.crossAxisLine]);return{id:t.descriptor.id,distance:R(n,i)}})).sort(((e,t)=>t.distance-e.distance));return i[0]?i[0].id:null}({pageBorderBox:e,draggable:t,candidates:n}):null}const Me=(e,t)=>(0,s.getRect)(M(e,t));function Ne({displaced:e,id:t}){return Boolean(e.visible[t]||e.invisible[t])}var Fe=({pageOffset:e,draggable:t,draggables:r,droppables:n,previousImpact:i,viewport:o,afterCritical:a})=>{const s=Me(t.page.borderBox,e),c=De({pageBorderBox:s,draggable:t,droppables:n});if(!c)return X;const u=n[c],l=H(u.descriptor.id,r),p=((e,t)=>{const r=e.frame;return r?Me(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=Oe(n.axis,e.displaceBy),c=s.value,u=t[a.start],l=t[a.end],p=W(e,i).find((e=>{const t=e.descriptor.id,n=e.page.borderBox,i=n[a.size]/4,s=se(t,o),p=Ne({displaced:r.displaced,id:t});return s?p?l>n[a.start]+i&&l<n[a.end]-i:u>n[a.start]-c+i&&u<n[a.end]-c-i:p?l>n[a.start]+c+i&&l<n[a.end]+c-i:u>n[a.start]+i&&u<n[a.end]-i}));return p?{displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:n.descriptor.id}}}:null})({pageBorderBoxWithDroppableScroll:p,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=Oe(r.axis,t.displaceBy),u=c.value,l=e[s.start],p=e[s.end],f=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:W(t,n).find((e=>{const t=e.descriptor.id,r=e.page.borderBox.center[s.line],n=se(t,a),o=Ne({displaced:i,id:t});return n?o?p<=r:l<r-u:o?p<=r+u:l<r}))||null,inHomeList:K(t,r)});return ae({draggable:t,insideDestination:n,destination:r,viewport:o,last:i,displacedBy:c,index:f})})({pageBorderBoxWithDroppableScroll:p,draggable:t,destination:u,insideDestination:l,last:i.displaced,viewport:o,afterCritical:a})},Le=(e,t)=>({...e,[t.descriptor.id]:t});const je=({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||g(!1);const r=e.frame;if(!r){const t=L({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}const n=t.oldFrameMaxScroll;n||g(!1);const i=Te(r,n),o=L({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return{...e,subject:o,frame:i}})(o);return Le(r,a)};var Be=({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=P(c,e.initial.client.selection),l={offset:u,selection:c,borderBoxCenter:T(e.initial.client.borderBoxCenter,u)},p={selection:T(l.selection,a.scroll.current),borderBoxCenter:T(l.borderBoxCenter,a.scroll.current),offset:T(l.offset,a.scroll.diff.value)},f={client:l,page:p};if("COLLECTING"===e.phase)return{...e,dimensions:s,viewport:a,current:f};const h=s.draggables[e.critical.draggable.id],d=i||Fe({pageOffset:p.offset,draggable:h,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=je({previousImpact:n,impact:i,droppables:r}),a=Ae(i);if(!a)return o;const s=r[a];if(K(e,s))return o;if(s.subject.withPlaceholder)return o;const c=Pe(s,e,t);return Le(o,c)})({draggable:h,impact:d,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:f,dimensions:{draggables:s.draggables,droppables:m},impact:d,viewport:a,scrollJumpRequest:o||null,forceShouldAnimate:!o&&null}};var Ue=({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=ie({afterDragging:a,destination:n,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:i,last:o});return{...e,displaced:s}},Ve=({impact:e,draggable:t,droppable:r,draggables:n,viewport:i,afterCritical:o})=>{const a=ye({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:o});return be({pageBorderBoxCenter:a,draggable:t,viewport:i})},ze=({state:e,dimensions:t,viewport:r})=>{"SNAP"!==e.movementMode&&g(!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||g(!1);const l=s[u],p=Ue({impact:n,viewport:i,destination:l,draggables:a}),f=Ve({impact:p,draggable:c,droppable:l,draggables:a,viewport:i,afterCritical:e.afterCritical});return Be({impact:p,clientSelection:f,state:e,dimensions:o,viewport:i})},He=({draggable:e,home:t,draggables:r,viewport:n})=>{const i=Oe(t.axis,e.displaceBy),o=H(t.descriptor.id,r),a=o.indexOf(e);-1===a&&g(!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:ie({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 qe=e=>{0},Ge=e=>{0};var We=({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||g(!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 Ke=e=>"SNAP"===e.movementMode,$e=(e,t,r)=>{const n=((e,t)=>({draggables:e.draggables,droppables:Le(e.droppables,t)}))(e.dimensions,t);return!Ke(e)||r?Be({state:e,dimensions:n}):ze({state:e,dimensions:n})};function Ye(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}const Xe={phase:"IDLE",completed:null,shouldFlush:!1};var Qe=(e=Xe,t)=>{if("FLUSH"===t.type)return{...Xe,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&g(!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:O},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)}},p=V(o.droppables).every((e=>!e.isFixedOnPage)),{impact:f,afterCritical:h}=He({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:p,impact:f,afterCritical:h,onLiftImpact:f,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&g(!1);return{...e,phase:"COLLECTING"}}if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&g(!1),(({state:e,published:t})=>{qe();const r=t.modified.map((t=>{const r=e.dimensions.droppables[t.droppableId];return j(r,t.scroll)})),n={...e.dimensions.droppables,...B(r)},i=U(We({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:p,afterCritical:f}=He({draggable:u,home:l,draggables:o,viewport:e.viewport}),h=c&&c.isCombineEnabled?e.impact:p,d=Fe({pageOffset:e.current.page.offset,draggable:a.draggables[e.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:h,viewport:e.viewport,afterCritical:f});Ge();const m={...e,phase:"DRAGGING",impact:d,onLiftImpact:p,dimensions:a,afterCritical:f,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;Re(e)||g(!1);const{client:r}=t.payload;return C(r,e.current.client.selection)?e:Be({state:e,clientSelection:r,impact:Ke(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Ye(e);if("COLLECTING"===e.phase)return Ye(e);Re(e)||g(!1);const{id:r,newScroll:n}=t.payload,i=e.dimensions.droppables[r];if(!i)return e;const o=j(i,n);return $e(e,o,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Re(e)||g(!1);const{id:r,isEnabled:n}=t.payload,i=e.dimensions.droppables[r];i||g(!1),i.isEnabled===n&&g(!1);const o={...i,isEnabled:n};return $e(e,o,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Re(e)||g(!1);const{id:r,isCombineEnabled:n}=t.payload,i=e.dimensions.droppables[r];i||g(!1),i.isCombineEnabled===n&&g(!1);const o={...i,isCombineEnabled:n};return $e(e,o,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Re(e)||g(!1),e.isWindowScrollAllowed||g(!1);const r=t.payload.newScroll;if(C(e.viewport.scroll.current,r))return Ye(e);const n=ge(e.viewport,r);return Ke(e)?ze({state:e,viewport:n}):Be({state:e,viewport:n})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Re(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&&g(!1);const r=ke({state:e,type:t.type});return r?Be({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&&g(!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&&g(!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 Je=e=>({type:"LIFT",payload:e}),Ze=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),et=()=>({type:"COLLECTION_STARTING",payload:null}),tt=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),rt=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),nt=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),it=e=>({type:"MOVE",payload:e}),ot=()=>({type:"MOVE_UP",payload:null}),at=()=>({type:"MOVE_DOWN",payload:null}),st=()=>({type:"MOVE_RIGHT",payload:null}),ct=()=>({type:"MOVE_LEFT",payload:null}),ut=()=>({type:"FLUSH",payload:null}),lt=e=>({type:"DROP_COMPLETE",payload:e}),pt=e=>({type:"DROP",payload:e}),ft=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});const ht="cubic-bezier(.2,1,.1,1)",dt={drop:0,combining:.7},mt={drop:.75},yt={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},gt=`${yt.outOfTheWay}s ${"cubic-bezier(0.2, 0, 0, 1)"}`,vt={fluid:`opacity ${gt}`,snap:`transform ${gt}, opacity ${gt}`,drop:e=>{const t=`${e}s ${ht}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${gt}`,placeholder:`height ${gt}, width ${gt}, margin ${gt}`},bt=e=>C(e,O)?void 0:`translate(${e.x}px, ${e.y}px)`,St=bt,_t=(e,t)=>{const r=bt(e);if(r)return t?`${r} scale(${mt.drop})`:r},{minDropTime:Et,maxDropTime:wt}=yt,xt=wt-Et;var Ot=({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&&g(!1),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&g(!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:Ue({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}),p=l?q(u):null,f=l?G(u):null,h={index:a.draggable.index,droppableId:a.droppable.id},d={draggableId:c.descriptor.id,type:c.descriptor.type,source:h,reason:o,mode:i.movementMode,destination:p,combine:f},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=Ve({impact:e,draggable:t,draggables:o,afterCritical:i,droppable:c||u,viewport:n});return P(l,t.client.borderBox.center)})({impact:u,draggable:c,dimensions:s,viewport:i.viewport,afterCritical:i.afterCritical}),y={critical:i.critical,afterCritical:i.afterCritical,result:d,impact:u};if(!(!C(i.current.client.offset,m)||Boolean(d.combine)))return void t(lt({completed:y}));const v=(({current:e,destination:t,reason:r})=>{const n=R(e,t);if(n<=0)return Et;if(n>=1500)return wt;const i=Et+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:y}))},Tt=()=>({x:window.pageXOffset,y:window.pageYOffset});function Pt({onWindowScroll:e}){const t=(0,u.default)((function(){e(Tt())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}(t);let n=f;function i(){return n!==f}return{start:function(){i()&&g(!1),n=h(window,[r])},stop:function(){i()||g(!1),t.cancel(),n(),n=f},isActive:i}}var Ct=e=>{const t=Pt({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)}},At=()=>{const e=[];return{add:t=>{const r=setTimeout((()=>(t=>{const r=e.findIndex((e=>e.timerId===t));-1===r&&g(!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 kt=(e,t)=>{qe(),t(),Ge()},Rt=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function It(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 Dt=(e,t)=>{const r=((e,t)=>{const r=At();let n=null;const i=r=>{n||g(!1),n=null,kt(0,(()=>It(e().onDragEnd,r,t,x.onDragEnd)))};return{beforeCapture:(t,r)=>{n&&g(!1),kt(0,(()=>{const n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})}))},beforeStart:(t,r)=>{n&&g(!1),kt(0,(()=>{const n=e().onBeforeDragStart;n&&n(Rt(t,r))}))},start:(i,o)=>{n&&g(!1);const a=Rt(i,o);n={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},r.add((()=>{kt(0,(()=>It(e().onDragStart,a,t,x.onDragStart)))}))},update:(i,o)=>{const a=q(o),s=G(o);n||g(!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=(p=a,!(null==(l=n.lastLocation)&&null==p||null!=l&&null!=p&&l.droppableId===p.droppableId&&l.index===p.index));var l,p;u&&(n.lastLocation=a);const f=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId)(n.lastCombine,s);if(f&&(n.lastCombine=s),!c&&!u&&!f)return;const h={...Rt(i,n.mode),combine:s,destination:a};r.add((()=>{kt(0,(()=>It(e().onDragUpdate,h,t,x.onDragUpdate)))}))},flush:()=>{n||g(!1),r.flush()},drop:i,abort:()=>{if(!n)return;const e={...Rt(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&&g(!1),e.dispatch(lt({completed:n.completed}))};var Nt=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=h(window,[o])}))}};var Ft=e=>t=>r=>{if(t(r),"PUBLISH_WHILE_DRAGGING"!==r.type)return;const n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(pt({reason:n.reason})))};const Lt=i.compose;var jt=({dimensionMarshal:e,focusMarshal:t,styleMarshal:r,getResponders:n,announce:o,autoScroller:a})=>{return(0,i.createStore)(Qe,Lt((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(lt({completed:c.completed})),"IDLE"!==t().phase&&g(!1),r(ut()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:o,movementMode:s}});const u={draggableId:o,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},{critical:l,dimensions:p,viewport:f}=e.startPublishing(u);r({type:"INITIAL_PUBLISH",payload:{critical:l,dimensions:p,clientSelection:a,movementMode:s,viewport:f}})})(e),Ot,Mt,Nt,Ft,(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&&g(!1),void e.start(i)}r(n),e.scroll(t.getState())})(a),Ct,(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),Dt(n,o))));var s};var Bt=({scrollHeight:e,scrollWidth:t,height:r,width:n})=>{const i=P({x:t,y:e},{x:n,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Ut=()=>{const e=document.documentElement;return e||g(!1),e},Vt=()=>{const e=Ut();return Bt({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},zt=({critical:e,scrollOptions:t,registry:r})=>{qe();const n=(()=>{const e=Tt(),t=Vt(),r=e.y,n=e.x,i=Ut(),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:O,displacement:O}}}})(),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:B(a)};Ge();return{dimensions:u,critical:e,viewport:n}};function Ht(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 qt=(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,qe();const{additions:i,removals:o,modified:a}=r,s=Object.keys(i).map((t=>e.draggable.getById(t).getDimension(O))).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:{}},Ge(),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||g(!1);const i=r.critical.draggable;"ADDITION"===t.type&&Ht(e,i,t.value)&&n.add(t.value),"REMOVAL"===t.type&&Ht(e,i,t.value)&&n.remove(t.value)},o={updateDroppableIsEnabled:(n,i)=>{e.droppable.exists(n)||g(!1),r&&t.updateDroppableIsEnabled({id:n,isEnabled:i})},updateDroppableIsCombineEnabled:(n,i)=>{r&&(e.droppable.exists(n)||g(!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)||g(!1),t.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:t=>{r&&g(!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},Gt=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason),Wt=e=>{window.scrollBy(e.x,e.y)};const Kt=(0,c.default)((e=>V(e).filter((e=>!!e.isEnabled&&!!e.frame))));var $t=({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||g(!1),Ie(t.frame.pageMarginBox)(e))))||null;return r})(e,r);return n};const Yt={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},Qt=({distanceToEdge:e,thresholds:t,dragStartTime:r,shouldUseTimeDampening:n,getAutoScrollerOptions:i})=>{const o=((e,t,r=()=>Yt)=>{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},Jt=({container:e,distanceToEdges:t,dragStartTime:r,axis:n,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const a=((e,t,r=()=>Yt)=>{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]?Qt({distanceToEdge:t[n.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o}):-1*Qt({distanceToEdge:t[n.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o})};const Zt=D((e=>0===e?0:e));var er=({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=Jt({container:t,distanceToEdges:a,dragStartTime:e,axis:ee,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),c=Jt({container:t,distanceToEdges:a,dragStartTime:e,axis:te,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),u=Zt({x:c,y:s});if(C(u,O))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,O)?null:l:null};const tr=D((e=>0===e?0:e>0?1:-1)),rr=(()=>{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,O)?null:o}})(),nr=({max:e,current:t,change:r})=>{const n={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},i=tr(r),o=rr({max:n,current:t,change:i});return!o||(0!==i.x&&0===o.x||0!==i.y&&0===o.y)},ir=(e,t)=>nr({current:e.scroll.current,max:e.scroll.max,change:t}),or=(e,t)=>{const r=e.frame;return!!r&&nr({current:r.scroll.current,max:r.scroll.max,change:t})};var ar=({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=er({dragStartTime:n,container:e.frame,subject:t,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return a&&ir(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=$t({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=er({dragStartTime:n,container:a.pageMarginBox,subject:t,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return s&&or(e,s)?s:null})({dragStartTime:t,droppable:c,subject:s,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});u&&i(c.descriptor.id,u)},sr=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:r=()=>Yt})=>{const n=(0,u.default)(e),i=(0,u.default)(t);let o=null;const a=e=>{o||g(!1);const{shouldUseTimeDampening:t,dragStartTime:a}=o;ar({state:e,scrollWindow:n,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:t,getAutoScrollerOptions:r})};return{start:e=>{qe(),o&&g(!1);const t=Date.now();let n=!1;const i=()=>{n=!0};ar({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:i,scrollDroppable:i,getAutoScrollerOptions:r}),o={dragStartTime:t,shouldUseTimeDampening:n},Ge(),n&&a(e)},stop:()=>{o&&(n.cancel(),i.cancel(),o=null)},scroll:a}},cr=({move:e,scrollDroppable:t,scrollWindow:r})=>{const n=(e,r)=>{if(!or(e,r))return r;const n=((e,t)=>{const r=e.frame;return r&&or(e,t)?rr({current:r.scroll.current,max:r.scroll.max,change:t}):null})(e,r);if(!n)return t(e.descriptor.id,r),null;const i=P(r,n);t(e.descriptor.id,i);return P(r,i)},i=(e,t,n)=>{if(!e)return n;if(!ir(t,n))return n;const i=((e,t)=>{if(!ir(e,t))return null;const r=e.scroll.max,n=e.scroll.current;return rr({current:n,max:r,change:t})})(t,n);if(!i)return r(n),null;const o=P(n,i);r(o);return P(n,o)};return t=>{const r=t.scrollJumpRequest;if(!r)return;const o=Ae(t.impact);o||g(!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)}},ur=({scrollDroppable:e,scrollWindow:t,move:r,getAutoScrollerOptions:n})=>{const i=sr({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:n}),o=cr({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 lr="data-rfd",pr=(()=>{const e=`${lr}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),fr=(()=>{const e=`${lr}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),hr=(()=>{const e=`${lr}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),dr={contextId:`${lr}-scroll-container-context-id`},mr=(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: ${vt.outOfTheWay};\n `;return{selector:t(fr.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:mr(i,"always"),resting:mr(i,"resting"),dragging:mr(i,"dragging"),dropAnimating:mr(i,"dropAnimating"),userCancel:mr(i,"userCancel")}};var gr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;const vr=()=>{const e=document.querySelector("head");return e||g(!1),e},br=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 _r=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function Er(e){return e instanceof _r(e).HTMLElement}function wr(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&&Er(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||g(!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||g(!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 Or=n.default.createContext(null),Tr=()=>{const e=document.body;return e||g(!1),e};var Pr={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 Cr=e=>`rfd-announcement-${e}`;let Ar=0;const kr={separator:"::"};var Rr="useId"in n.default?function(e,t=kr){const r=n.default.useId();return(0,a.useMemo)((()=>`${e}${t.separator}${r}`),[t.separator,e,r])}:function(e,t=kr){return(0,a.useMemo)((()=>`${e}${t.separator}${Ar++}`),[t.separator,e])};var Ir=n.default.createContext(null);function Dr(e){0}function Mr(e,t){Dr()}function Nr(e){const t=(0,n.useRef)(e);return(0,n.useEffect)((()=>{t.current=e})),t}function Fr(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}const Lr=9,jr=13,Br=27,Ur=32,Vr=33,zr=34,Hr=35,qr=36,Gr=37,Wr=38,Kr=39,$r=40,Yr={[jr]:!0,[Lr]:!0};var Xr=e=>{Yr[e.keyCode]&&e.preventDefault()};var Qr=(()=>{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 Jr=0,Zr=5;const en={type:"IDLE"};function tn({cancel:e,completed:t,getPhase:r,setPhase:n}){return[{eventName:"mousemove",fn:e=>{const{button:t,clientX:i,clientY:o}=e;if(t!==Jr)return;const a={x:i,y:o},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&g(!1);const c=s.point;if(u=c,l=a,!(Math.abs(l.x-u.x)>=Zr||Math.abs(l.y-u.y)>=Zr))return;var u,l;e.preventDefault();const p=s.actions.fluidLift(a);n({type:"DRAGGING",actions:p})}},{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===Br?(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&&g(!1),n.actions.shouldRespectForcePress()?e():t.preventDefault()}},{eventName:Qr,fn:e}]}function rn(e){const t=(0,n.useRef)(en),r=(0,n.useRef)(f),i=(0,a.useMemo)((()=>({eventName:"mousedown",fn:function(t){if(t.defaultPrevented)return;if(t.button!==Jr)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(),p(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=h(window,[o,i],{passive:!1,capture:!0})}),[o,i]),c=(0,a.useCallback)((()=>{"IDLE"!==t.current.type&&(t.current=en,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=tn({cancel:u,completed:c,getPhase:()=>t.current,setPhase:e=>{t.current=e}});r.current=h(window,e,{capture:!0,passive:!1})}),[u,c]),p=(0,a.useCallback)((function(e,r){"IDLE"!==t.current.type&&g(!1),t.current={type:"PENDING",point:r,actions:e},l()}),[l]);gr((function(){return s(),function(){r.current()}}),[s])}function nn(){}const on={[zr]:!0,[Vr]:!0,[qr]:!0,[Hr]:!0};function an(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:n=>n.keyCode===Br?(n.preventDefault(),void r()):n.keyCode===Ur?(n.preventDefault(),t(),void e.drop()):n.keyCode===$r?(n.preventDefault(),void e.moveDown()):n.keyCode===Wr?(n.preventDefault(),void e.moveUp()):n.keyCode===Kr?(n.preventDefault(),void e.moveRight()):n.keyCode===Gr?(n.preventDefault(),void e.moveLeft()):void(on[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:Qr,fn:r}]}function sn(e){const t=(0,n.useRef)(nn),r=(0,a.useMemo)((()=>({eventName:"keydown",fn:function(r){if(r.defaultPrevented)return;if(r.keyCode!==Ur)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||g(!1),a=!1,t.current(),i()}t.current(),t.current=h(window,an(s,c),{capture:!0,passive:!1})}})),[e]),i=(0,a.useCallback)((function(){t.current=h(window,[r],{passive:!1,capture:!0})}),[r]);gr((function(){return i(),function(){t.current()}}),[i])}const cn={type:"IDLE"},un=120,ln=.15;function pn(e){const t=(0,n.useRef)(cn),r=(0,n.useRef)(f),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=h(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(cn),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]),p=(0,a.useCallback)((function(){const e={capture:!0,passive:!1},t={cancel:l,completed:u,getPhase:i},n=h(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&&g(!1);const i=t.touches[0];if(!i)return;if(!(i.force>=ln))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:Qr,fn:e}]}(t),e),o=h(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===Br&&r.preventDefault(),e()):e()}},{eventName:Qr,fn:e}]}(t),e);r.current=function(){n(),o()}}),[l,i,u]),d=(0,a.useCallback)((function(){const e=i();"PENDING"!==e.type&&g(!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&&g(!1);const r=setTimeout(d,un);o({type:"PENDING",point:t,actions:e,longPressTimerId:r}),p()}),[p,i,o,d]);gr((function(){return c(),function(){r.current();const e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(cn))}}),[i,c,o]),gr((function(){return h(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])}),[])}const fn=["input","button","textarea","select","option","optgroup","video","audio"];function hn(e,t){if(null==t)return!1;if(fn.includes(t.tagName.toLowerCase()))return!0;const r=t.getAttribute("contenteditable");return"true"===r||""===r||t!==e&&hn(e,t.parentElement)}function dn(e,t){const r=t.target;return!!Er(r)&&hn(e,r)}var mn=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 gn(e,t){return null==e?null:e[yn](t)?e:gn(e.parentElement,t)}function vn(e,t){return e.closest?e.closest(t):gn(e,t)}function bn(e,t){const r=t.target;if(!((n=r)instanceof _r(n).Element))return null;var n;const i=function(e){return`[${pr.contextId}="${e}"]`}(e),o=vn(r,i);return o&&Er(o)?o:null}function Sn(e){e.preventDefault()}function _n({expected:e,phase:t,isLockActive:r,shouldWarn:n}){return!!r()&&e===t}function En({lockAPI:e,store:t,registry:r,draggableId:n}){if(e.isClaimed())return!1;const i=r.draggable.findById(n);return!!i&&(!!i.options.isEnabled&&!!Gt(t.getState(),n))}function wn({lockAPI:e,contextId:t,store:r,registry:n,draggableId:i,forceSensorStop:o,sourceEvent:a}){if(!En({lockAPI:e,store:r,registry:n,draggableId:i}))return null;const s=n.draggable.getById(i),c=function(e,t){const r=`[${fr.contextId}="${e}"]`,n=Sr(document,r).find((e=>e.getAttribute(fr.id)===t));return n&&Er(n)?n:null}(t,s.descriptor.id);if(!c)return null;if(a&&!s.options.canDragInteractiveElements&&dn(c,a))return null;const l=e.claim(o||f);let p="PRE_DRAG";function d(){return s.options.shouldRespectForcePress}function m(){return e.isActive(l)}const y=function(e,t){_n({expected:e,phase:p,isLockActive:m,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function v(t){function n(){e.release(),p="COMPLETED"}function i(e,i={shouldBlockNextClick:!1}){if(t.cleanup(),i.shouldBlockNextClick){const e=h(window,[{eventName:"click",fn:Sn,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}n(),r.dispatch(pt({reason:e}))}return"PRE_DRAG"!==p&&(n(),g(!1)),r.dispatch(Je(t.liftActionArgs)),p="DRAGGING",{isActive:()=>_n({expected:"DRAGGING",phase:p,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:d,drop:e=>i("DROP",e),cancel:e=>i("CANCEL",e),...t.actions}}return{isActive:()=>_n({expected:"PRE_DRAG",phase:p,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:d,fluidLift:function(e){const t=(0,u.default)((e=>{y((()=>it({client:e})))}));return{...v({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}},snapLift:function(){const e={moveUp:()=>y(ot),moveRight:()=>y(st),moveDown:()=>y(at),moveLeft:()=>y(ct)};return v({liftActionArgs:{id:i,clientSelection:mn(c),movementMode:"SNAP"},cleanup:f,actions:e})},abort:function(){_n({expected:"PRE_DRAG",phase:p,isLockActive:m,shouldWarn:!0})&&e.release()}}}const xn=[rn,sn,pn];function On({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||g(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&g(!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){Fr(e)&&!Fr(t)&&c.tryAbandon()}),[c]);gr((function(){let e=t.getState();return t.subscribe((()=>{const r=t.getState();u(e,r),e=r}))}),[c,t,u]),gr((()=>c.tryAbandon),[c.tryAbandon]);const l=(0,a.useCallback)((e=>En({lockAPI:c,registry:r,store:t,draggableId:e})),[c,r,t]),p=(0,a.useCallback)(((n,i,o)=>wn({lockAPI:c,registry:r,contextId:e,store:t,draggableId:n,forceSensorStop:i||null,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})),[e,c,r,t]),f=(0,a.useCallback)((t=>function(e,t){const r=bn(e,t);return r?r.getAttribute(pr.draggableId):null}(e,t)),[e]),h=(0,a.useCallback)((e=>{const t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),d=(0,a.useCallback)((function(){c.isClaimed()&&(c.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch(ut()))}),[c,t]),m=(0,a.useCallback)((()=>c.isClaimed()),[c]),y=(0,a.useMemo)((()=>({canGetLock:l,tryGetLock:p,findClosestDraggableId:f,findOptionsForDraggable:h,tryReleaseLock:d,isLockClaimed:m})),[l,p,f,h,d,m]);Dr();for(let e=0;e<s.length;e++)s[e](y)}const Tn=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}),Pn=e=>({...Yt,...e.autoScrollerOptions,durationDampening:{...Yt.durationDampening,...e.autoScrollerOptions}});function Cn(e){return e.current||g(!1),e.current}function An(e){const{contextId:t,setCallbacks:r,sensors:s,nonce:u,dragHandleUsageInstructions:p}=e,f=(0,n.useRef)(null);Mr();const h=Nr(e),d=(0,a.useCallback)((()=>Tn(h.current)),[h]),m=(0,a.useCallback)((()=>Pn(h.current)),[h]),y=function(e){const t=(0,a.useMemo)((()=>Cr(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,Pr),Tr().appendChild(e),function(){setTimeout((function(){const t=Tr();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=Rr("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",Tr().appendChild(e),function(){const t=Tr();t.contains(e)&&t.removeChild(e)}}),[i,t]),i}({contextId:t,text:p}),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||g(!1),t.textContent=e})),[]),u=(0,a.useCallback)((e=>{const t=i.current;t||g(!1),t.textContent=e}),[]);gr((()=>{(i.current||o.current)&&g(!1);const n=br(t),a=br(t);return i.current=n,o.current=a,n.setAttribute(`${lr}-always`,e),a.setAttribute(`${lr}-dynamic`,e),vr().appendChild(n),vr().appendChild(a),u(r.always),s(r.resting),()=>{const e=e=>{const t=e.current;t||g(!1),vr().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]),p=(0,a.useCallback)((e=>{s("DROP"!==e?r.userCancel:r.dropAnimating)}),[s,r.dropAnimating,r.userCancel]),f=(0,a.useCallback)((()=>{o.current&&s(r.resting)}),[s,r.resting]);return(0,a.useMemo)((()=>({dragging:l,dropping:p,resting:f})),[l,p,f])}(t,u),S=(0,a.useCallback)((e=>{Cn(f).dispatch(e)}),[]),_=(0,a.useMemo)((()=>(0,i.bindActionCreators)({publishWhileDragging:Ze,updateDroppableScroll:tt,updateDroppableIsEnabled:rt,updateDroppableIsCombineEnabled:nt,collectionStarting:et},S)),[S]),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)((()=>qt(E,_)),[E,_]),x=(0,a.useMemo)((()=>ur({scrollWindow:Wt,scrollDroppable:w.scrollDroppable,getAutoScrollerOptions:m,...(0,i.bindActionCreators)({move:it},S)})),[w.scrollDroppable,S,m]),O=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=wr(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]),p=(0,a.useCallback)((function(e){r.current=null;const t=document.activeElement;t&&t.getAttribute(pr.draggableId)===e&&(r.current=e)}),[]);return gr((()=>(o.current=!0,function(){o.current=!1;const e=i.current;e&&cancelAnimationFrame(e)})),[]),(0,a.useMemo)((()=>({register:s,tryRecordFocus:p,tryRestoreFocusRecorded:l,tryShiftRecord:u})),[s,p,l,u])}(t),T=(0,a.useMemo)((()=>jt({announce:y,autoScroller:x,dimensionMarshal:w,focusMarshal:O,getResponders:d,styleMarshal:b})),[y,x,w,O,d,b]);f.current=T;const P=(0,a.useCallback)((()=>{const e=Cn(f);"IDLE"!==e.getState().phase&&e.dispatch(ut())}),[]),C=(0,a.useCallback)((()=>{const e=Cn(f).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging}),[]);r((0,a.useMemo)((()=>({isDragging:C,tryAbort:P})),[C,P]));const A=(0,a.useCallback)((e=>Gt(Cn(f).getState(),e)),[]),k=(0,a.useCallback)((()=>Re(Cn(f).getState())),[]),R=(0,a.useMemo)((()=>({marshal:w,focus:O,contextId:t,canLift:A,isMovementAllowed:k,dragHandleUsageInstructionsId:v,registry:E})),[t,w,v,O,A,k,E]);return On({contextId:t,store:T,registry:E,customSensors:s||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)((()=>P),[P]),n.default.createElement(Ir.Provider,{value:R},n.default.createElement(o.Provider,{context:Or,store:T},e.children))}let kn=0;var Rn="useId"in n.default?function(){return n.default.useId()}:function(){return(0,a.useMemo)((()=>""+kn++),[])};function In(){"useId"in n.default||(kn=0,Ar=0)}function Dn(e){const t=Rn(),r=e.dragHandleUsageInstructions||x.dragHandleUsageInstructions;return n.default.createElement(v,null,(i=>n.default.createElement(An,{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=5e3,Nn=4500,Fn=(e,t)=>t?vt.drop(t.duration):e?vt.snap:vt.fluid,Ln=(e,t)=>{if(e)return t?dt.drop:dt.combining};function jn(e){return"DRAGGING"===e.type?function(e){const t=e.dimension.client,{offset:r,combineWith:n,dropping:i}=e,o=Boolean(n),a=(e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode)(e),s=Boolean(i),c=s?_t(r,o):St(r);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Fn(a,i),transform:c,opacity:Ln(o,s),zIndex:s?Nn:Mn,pointerEvents:"none"}}(e):{transform:St((t=e).offset),transition:t.shouldAnimateDisplacement?void 0:"none"};var t}function Bn(e){const t=Rr("draggable"),{descriptor:r,registry:i,getDraggableRef:o,canDragInteractiveElements:c,shouldRespectForcePress:u,isEnabled:l}=e,p=(0,a.useMemo)((()=>({canDragInteractiveElements:c,shouldRespectForcePress:u,isEnabled:l})),[c,l,u]),f=(0,a.useCallback)((e=>{const t=o();return t||g(!1),function(e,t,r=O){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]),h=(0,a.useMemo)((()=>({uniqueId:t,descriptor:r,options:p,getDimension:f})),[r,f,p,t]),d=(0,n.useRef)(h),m=(0,n.useRef)(!0);gr((()=>(i.draggable.register(d.current),()=>i.draggable.unregister(d.current))),[i.draggable]),gr((()=>{if(m.current)return void(m.current=!1);const e=d.current;d.current=h,i.draggable.update(h,e)}),[h,i.draggable])}var Un=n.default.createContext(null);function Vn(e){const t=(0,n.useContext)(e);return t||g(!1),t}function zn(e){e.preventDefault()}var Hn=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}=Vn(Ir),{type:u,droppableId:l}=Vn(Un),p=(0,a.useMemo)((()=>({id:e.draggableId,index:e.index,type:u,droppableId:l})),[e.draggableId,e.index,u,l]),{children:f,draggableId:h,isEnabled:d,shouldRespectForcePress:m,canDragInteractiveElements:y,isClone:g,mapped:v,dropAnimationFinished:b}=e;if(Mr(),Dr(),!g){Bn((0,a.useMemo)((()=>({descriptor:p,registry:c,getDraggableRef:i,canDragInteractiveElements:y,shouldRespectForcePress:m,isEnabled:d})),[p,c,i,y,m,d]))}const S=(0,a.useMemo)((()=>d?{tabIndex:0,role:"button","aria-describedby":s,"data-rfd-drag-handle-draggable-id":h,"data-rfd-drag-handle-context-id":o,draggable:!1,onDragStart:zn}:null),[o,s,h,d]),_=(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=jn(v),t="DRAGGING"===v.type&&v.dropping?_:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":o,"data-rfd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:S}}),[o,S,h,v,_,r]),w=(0,a.useMemo)((()=>({draggableId:p.id,type:p.type,source:{index:p.index,droppableId:p.droppableId}})),[p.droppableId,p.id,p.index,p.type]);return n.default.createElement(n.default.Fragment,null,f(E,v.snapshot,w))},qn=(e,t)=>e===t,Gn=e=>{const{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};function Wn(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:O,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Wn(null)}};const $n={dropAnimationFinished:ft},Yn=(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(Fr(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=Gn(a),u=(e=>e.combine?e.combine.draggableId:null)(a),l={duration:n.dropDuration,curve:ht,moveTo:n.newHomeClientOffset,opacity:u?dt.drop:null,scale:u?mt.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)(Wn),r=(0,c.default)(((e,r=null,n)=>({mapped:{type:"SECONDARY",offset:e,combineTargetFor:r,shouldAnimateDisplacement:n,snapshot:t(r)}}))),n=e=>e?r(O,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=A(a.displacedBy.point),s=e(i.x,i.y);return r(s,l,!0)}if(c)return n(l);const p=o.displacedBy.point,f=e(p.x,p.y);return r(f,l,s.shouldAnimate)};return(e,t)=>{if(Fr(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}),$n,null,{context:Or,areStatePropsEqual:qn})(Hn);var Xn=Yn;function Qn(e){return Vn(Un).isUsingCloneFor!==e.draggableId||e.isClone?n.default.createElement(Xn,e):null}function Jn(e){const t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,r=Boolean(e.disableInteractiveElementBlocking),i=Boolean(e.shouldRespectForcePress);return n.default.createElement(Qn,(0,l.default)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:i}))}const Zn=e=>t=>e===t,ei=Zn("scroll"),ti=Zn("auto"),ri=(Zn("visible"),(e,t)=>t(e.overflowX)||t(e.overflowY)),ni=e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return ri(r,ei)||ri(r,ti)},ii=e=>null==e||e===document.body||e===document.documentElement?null:ni(e)?e:ii(e.parentElement);var oi=e=>({x:e.scrollLeft,y:e.scrollTop});const ai=e=>{if(!e)return!1;return"fixed"===window.getComputedStyle(e).position||ai(e.parentElement)};var si=({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),p=(0,s.withScroll)(l,n),f=(()=>{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:oi(u),scrollSize:t,shouldClipSubject:c}})(),h=(({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=Bt({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:O,displacement:O}}}})(),u="vertical"===i?ee:te;return{descriptor:e,isCombineEnabled:r,isFixedOnPage:n,axis:u,isEnabled:t,client:o,page:a,frame:c,subject:L({page:a,withPlaceholder:null,axis:u,frame:c})}})({descriptor:t,isEnabled:!o,isCombineEnabled:a,isFixedOnPage:r.isFixedOnPage,direction:i,client:l,page:p,closest:f});return h};const ci={passive:!1},ui={passive:!0};var li=e=>e.shouldPublishImmediately?ci:ui;const pi=e=>e&&e.env.closestScrollable||null;function fi(e){const t=(0,n.useRef)(null),r=Vn(Ir),i=Rr("droppable"),{registry:o,marshal:s}=r,l=Nr(e),p=(0,a.useMemo)((()=>({id:e.droppableId,type:e.type,mode:e.mode})),[e.droppableId,e.mode,e.type]),f=(0,n.useRef)(p),h=(0,a.useMemo)((()=>(0,c.default)(((e,r)=>{t.current||g(!1);const n={x:e,y:r};s.updateDroppableScroll(p.id,n)}))),[p.id,s]),d=(0,a.useCallback)((()=>{const e=t.current;return e&&e.env.closestScrollable?oi(e.env.closestScrollable):O}),[]),m=(0,a.useCallback)((()=>{const e=d();h(e.x,e.y)}),[d,h]),y=(0,a.useMemo)((()=>(0,u.default)(m)),[m]),v=(0,a.useCallback)((()=>{const e=t.current,r=pi(e);e&&r||g(!1);e.scrollOptions.shouldPublishImmediately?m():y()}),[y,m]),b=(0,a.useCallback)(((e,n)=>{t.current&&g(!1);const i=l.current,o=i.getDroppableRef();o||g(!1);const a=(e=>({closestScrollable:ii(e),isFixedOnPage:ai(e)}))(o),s={ref:o,descriptor:p,env:a,scrollOptions:n};t.current=s;const c=si({ref:o,descriptor:p,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),u=a.closestScrollable;return u&&(u.setAttribute(dr.contextId,r.contextId),u.addEventListener("scroll",v,li(s.scrollOptions))),c}),[r.contextId,p,v,l]),S=(0,a.useCallback)((()=>{const e=t.current,r=pi(e);return e&&r||g(!1),oi(r)}),[]),_=(0,a.useCallback)((()=>{const e=t.current;e||g(!1);const r=pi(e);t.current=null,r&&(y.cancel(),r.removeAttribute(dr.contextId),r.removeEventListener("scroll",v,li(e.scrollOptions)))}),[v,y]),E=(0,a.useCallback)((e=>{const r=t.current;r||g(!1);const n=pi(r);n||g(!1),n.scrollTop+=e.y,n.scrollLeft+=e.x}),[]),w=(0,a.useMemo)((()=>({getDimensionAndWatchScroll:b,getScrollWhileDragging:S,dragStopped:_,scroll:E})),[_,b,S,E]),x=(0,a.useMemo)((()=>({uniqueId:i,descriptor:p,callbacks:w})),[w,p,i]);gr((()=>(f.current=x.descriptor,o.droppable.register(x),()=>{t.current&&_(),o.droppable.unregister(x)})),[w,p,_,x,s,o.droppable]),gr((()=>{t.current&&s.updateDroppableIsEnabled(f.current.id,!e.isDropDisabled)}),[e.isDropDisabled,s]),gr((()=>{t.current&&s.updateDroppableIsCombineEnabled(f.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,s])}function hi(){}const di={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},mi=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>{const n=(({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>e||"close"===r?di:{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?vt.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 p=(0,a.useCallback)((e=>{"height"===e.propertyName&&(o(),"close"===i&&s())}),[i,s,o]),f=mi({isAnimatingOpenOnMount:u,animate:e.animate,placeholder:e.placeholder});return n.default.createElement(e.placeholder.tagName,{style:f,"data-rfd-placeholder-context-id":c,onTransitionEnd:p,ref:e.innerRef})}));class gi 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 vi=e=>{const t=(0,n.useContext)(Ir);t||g(!1);const{contextId:r,isMovementAllowed:i}=t,o=(0,n.useRef)(null),s=(0,n.useRef)(null),{children:c,droppableId:u,type:l,mode:p,direction:f,ignoreContainerClipping:h,isDropDisabled:d,isCombineEnabled:m,snapshot:y,useClone:v,updateViewportMaxScroll:b,getContainerForClone:S}=e,_=(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 x=(0,a.useCallback)((()=>{i()&&b({maxScroll:Vt()})}),[i,b]);fi({droppableId:u,type:l,mode:p,direction:f,isDropDisabled:d,isCombineEnabled:m,ignoreContainerClipping:h,getDroppableRef:_});const O=(0,a.useMemo)((()=>n.default.createElement(gi,{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:x})))),[r,x,e.placeholder,e.shouldAnimatePlaceholder,w]),T=(0,a.useMemo)((()=>({innerRef:E,placeholder:O,droppableProps:{"data-rfd-droppable-id":u,"data-rfd-droppable-context-id":r}})),[r,u,O,E]),P=v?v.dragging.draggableId:null,C=(0,a.useMemo)((()=>({droppableId:u,type:l,isUsingCloneFor:P})),[u,P,l]);return n.default.createElement(Un.Provider,{value:C},c(T,y),function(){if(!v)return null;const{dragging:e,render:t}=v,r=n.default.createElement(Qn,{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,S())}())};const bi={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||g(!1),document.body}},Si=e=>{let t,r={...e};for(t in bi)void 0===e[t]&&(r={...r,[t]:bi[t]});return r},_i=(e,t)=>e===t.droppable.type,Ei=(e,t)=>t.draggables[e.draggable.id],wi={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(Fr(r)){const e=r.critical;if(!_i(s,e))return t;const i=Ei(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(!_i(s,e.critical))return t;const i=Ei(e.critical,r.dimensions);return n(a,c,Gn(e.result)===a,Ae(e.impact)===a,i,u)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){const n=r.completed;if(!_i(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}}),wi,((e,t,r)=>({...Si(r),...e,...t})),{context:Or,areStatePropsEqual:qn})(vi)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{__DO_NOT_USE__ActionTypes:()=>s,applyMiddleware:()=>m,bindActionCreators:()=>h,combineReducers:()=>p,compose:()=>d,createStore:()=>u,legacy_createStore:()=>l});var n=r(2868);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,p=[],f=p,h=!1;function d(){f===p&&(f=p.slice())}function m(){if(h)throw new Error(i(3));return l}function y(e){if("function"!=typeof e)throw new Error(i(4));if(h)throw new Error(i(5));var t=!0;return d(),f.push(e),function(){if(t){if(h)throw new Error(i(6));t=!1,d();var r=f.indexOf(e);f.splice(r,1),p=null}}}function g(e){if(!c(e))throw new Error(i(7));if(void 0===e.type)throw new Error(i(8));if(h)throw new Error(i(9));try{h=!0,l=a(l,e)}finally{h=!1}for(var t=p=f,r=0;r<t.length;r++){(0,t[r])()}return e}return g({type:s.INIT}),(n={dispatch:g,subscribe:y,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(i(10));a=e,g({type:s.REPLACE})}})[o]=function(){var e,t=y;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 p(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],p=e[u],f=l(p,t);if(void 0===f){t&&t.type;throw new Error(i(14))}o[u]=f,n=n||f!==p}return(n=n||c.length!==Object.keys(e).length)?o:e}}function f(e,t){return function(){return t(e.apply(this,arguments))}}function h(e,t){if("function"==typeof e)return f(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]=f(o,t))}return r}function d(){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=d.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(2870),i=r(2872),o=r(2874),a=r(2875),s=r(2876),c=r(2880),u=r(2900);(0,s.initializeUseSelector)(i.useSyncExternalStoreWithSelector),(0,c.initializeConnect)(n.useSyncExternalStore),(0,a.setBatch)(o.unstable_batchedUpdates)},(e,t,r)=>{"use strict";e.exports=r(2871)},(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(285);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(2873)},(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(285),i=r(2870);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 p=s(null);if(null===p.current){var f={hasValue:!1,value:null};p.current=f}else f=p.current;p=u((function(){function e(e){if(!c){if(c=!0,a=e,e=n(e),void 0!==i&&f.hasValue){var t=f.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 h=a(e,p[0],p[1]);return c((function(){f.hasValue=!0,f.value=h}),[h]),l(h),h}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{unstable_batchedUpdates:()=>n.unstable_batchedUpdates});var n=r(285)},(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(285),i=r(2877),o=r(2878);let a=r(2879).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:p,stabilityCheck:f,noopCheck:h}=t(),d=((0,n.useRef)(!0),(0,n.useCallback)({[e.name]:t=>e(t)}[e.name],[e,f,o])),m=a(l.addNestedSub,u.getState,p||u.getState,d,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(285),i=r(2878);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(285);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:()=>x,initializeConnect:()=>S});var n=r(1851),i=r(1080),o=r(2881),a=r.n(o),s=r(285),c=r(2884),u=r(2886),l=r(2889),p=r(2895),f=r(2896),h=r(2897),d=r(2898),m=r(2899),y=(r(2888),r(2878)),g=r(2879);const v=["reactReduxForwardedRef"];let b=g.notInitialized;const S=e=>{b=e},_=[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 x=function(e,t,r,{pure:o,areStatesEqual:g=w,areOwnPropsEqual:S=m.default,areStatePropsEqual:x=m.default,areMergedPropsEqual:O=m.default,forwardRef:T=!1,context:P=y.ReactReduxContext}={}){const C=P,A=(0,p.mapStateToPropsFactory)(e),k=(0,l.mapDispatchToPropsFactory)(t),R=(0,f.mergePropsFactory)(r),I=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",r=`Connect(${t})`,o={shouldHandleStateChanges:I,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:A,initMapDispatchToProps:k,initMergeProps:R,areStatesEqual:g,areStatePropsEqual:x,areOwnPropsEqual:S,areMergedPropsEqual:O};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]),p=s.useMemo((()=>r&&r.Consumer&&(0,c.isContextConsumer)(s.createElement(r.Consumer,null))?r:C),[r,C]),f=s.useContext(p),m=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),y=Boolean(f)&&Boolean(f.store);const g=m?t.store:f.store,S=y?f.getServerState:g.getState,w=s.useMemo((()=>(0,u.default)(g.dispatch,o)),[g]),[x,O]=s.useMemo((()=>{if(!I)return _;const e=(0,h.createSubscription)(g,m?void 0:f.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[g,m,f]),T=s.useMemo((()=>m?f:(0,n.default)({},f,{subscription:x})),[m,f,x]),P=s.useRef(),A=s.useRef(l),k=s.useRef(),R=s.useRef(!1),D=(s.useRef(!1),s.useRef(!1)),M=s.useRef();(0,d.useIsomorphicLayoutEffect)((()=>(D.current=!0,()=>{D.current=!1})),[]);const N=s.useMemo((()=>()=>k.current&&l===A.current?k.current:w(g.getState(),l)),[g,l]),F=s.useMemo((()=>e=>x?function(e,t,r,n,i,o,a,s,c,u,l){if(!e)return()=>{};let p=!1,f=null;const h=()=>{if(p||!s.current)return;const e=t.getState();let r,h;try{r=n(e,i.current)}catch(e){h=e,f=e}h||(f=null),r===o.current?a.current||u():(o.current=r,c.current=r,a.current=!0,l())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(p=!0,r.tryUnsubscribe(),r.onStateChange=null,f)throw f}}(I,g,x,w,A,P,R,D,k,O,e):()=>{}),[x]);var L,j,B;let U;L=E,j=[A,P,R,l,k,O],(0,d.useIsomorphicLayoutEffect)((()=>L(...j)),B);try{U=b(F,N,S?()=>w(S(),l):N)}catch(e){throw M.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${M.current.stack}\n\n`),e}(0,d.useIsomorphicLayoutEffect)((()=>{M.current=void 0,k.current=void 0,P.current=U}));const V=s.useMemo((()=>s.createElement(e,(0,n.default)({},U,{ref:a}))),[a,e,U]);return s.useMemo((()=>I?s.createElement(p.Provider,{value:T},V):V),[p,V,T])}const p=s.memo(l);if(p.WrappedComponent=e,p.displayName=l.displayName=r,T){const t=s.forwardRef((function(e,t){return s.createElement(p,(0,n.default)({},e,{reactReduxForwardedRef:t}))}));return t.displayName=r,t.WrappedComponent=e,a()(t,e)}return a()(p,e)}}},(e,t,r)=>{"use strict";var n=r(2882),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,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(d){var i=h(r);i&&i!==d&&e(t,i,n)}var a=l(r);p&&(a=a.concat(p(r)));for(var s=c(t),m=c(r),y=0;y<a.length;++y){var g=a[y];if(!(o[g]||n&&n[g]||m&&m[g]||s&&s[g])){var v=f(r,g);try{u(t,g,v)}catch(e){}}}}return t}},(e,t,r)=>{"use strict";e.exports=r(2883)},(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,p=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,S=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case p:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case y:case m:case c:return e;default:return t}}case i:return t}}}function E(e){return _(e)===p}t.AsyncMode=l,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=y,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||_(e)===l},t.isConcurrentMode=E,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===y},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===s||e===a||e===h||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===S||e.$$typeof===g)},t.typeOf=_},(e,t,r)=>{"use strict";e.exports=r(2885)},(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"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");function g(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 f:case h:return e;default:switch(e=e&&e.$$typeof){case l:case u:case p:case m:case d: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=p,t.Fragment=o,t.Lazy=m,t.Memo=d,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.SuspenseList=h,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return g(e)===u},t.isContextProvider=function(e){return g(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return g(e)===p},t.isFragment=function(e){return g(e)===o},t.isLazy=function(e){return g(e)===m},t.isMemo=function(e){return g(e)===d},t.isPortal=function(e){return g(e)===i},t.isProfiler=function(e){return g(e)===s},t.isStrictMode=function(e){return g(e)===a},t.isSuspense=function(e){return g(e)===f},t.isSuspenseList=function(e){return g(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===f||e===h||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===d||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p||e.$$typeof===r||void 0!==e.getModuleId)},t.typeOf=g},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a,pureFinalPropsSelectorFactory:()=>o});var n=r(1080);r(2887);const i=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function o(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s,c,u,l,p,f=!1;function h(f,h){const d=!o(h,c),m=!i(f,s,h,c);return s=f,c=h,d&&m?(u=e(s,c),t.dependsOnOwnProps&&(l=t(n,c)),p=r(u,l,c),p):d?(e.dependsOnOwnProps&&(u=e(s,c)),t.dependsOnOwnProps&&(l=t(n,c)),p=r(u,l,c),p):m?function(){const t=e(s,c),n=!a(t,u);return u=t,n&&(p=r(u,l,c)),p}():p}return function(i,o){return f?h(i,o):(s=i,c=o,u=e(s,c),l=t(n,c),p=r(u,l,c),f=!0,p)}}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(2888);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(2890),i=r(2891),o=r(2894);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(2892);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(2893),i=r(2888);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(2891),i=r(2894);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(1851),i=(r(2892),r(2894));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(2875);const i={notify(){},get:()=>[]};function o(e,t){let r,o=i,a=0,s=!1;function c(){p.onStateChange&&p.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 p={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 p}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{canUseDOM:()=>i,useIsomorphicLayoutEffect:()=>o});var n=r(285);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(2901),i=r(2880),o=r(2878),a=r(2902),s=r(2876),c=r(2903),u=r(2899);r(2904)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(285),i=r(2878),o=r(2897),a=r(2898);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]),p=n.useMemo((()=>e.getState()),[e]);(0,a.useIsomorphicLayoutEffect)((()=>{const{subscription:t}=l;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),p!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[l,p]);const f=t||i.ReactReduxContext;return n.createElement(f.Provider,{value:l},r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createDispatchHook:()=>o,useDispatch:()=>a});var n=r(2878),i=r(2903);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(2878),i=r(2877);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(285);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:()=>f,createBox:()=>c,expand:()=>o,getBox:()=>h,getRect:()=>i,offset:()=>l,shrink:()=>a,withScroll:()=>p});var n=r(2907),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,p=void 0===l?s:l,f=i(o(t,n)),h=i(a(t,u)),d=i(a(h,p));return{marginBox:f,borderBox:i(t),paddingBox:h,contentBox:d,margin:n,border:u,padding:p}},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})},p=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),l(e,t)},f=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})},h=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return f(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