PageSourceSearch

https://bibliotheksleitertag.de/cp/javascript/vendors.js?1790731296

js bibliotheksleitertag.de collected 2026-10-07 07:56:45 UTC 2,486,033 bytes, 51 lines download raw bytes

vendor: 15,434 bytes, line 1
1(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["vendors"],[,,,,,,,(e,t,r)=>{"use strict";var n=r(8),i=r(64).includes,o=r(12),a=r(73),s=o(function(){return!Array(1).includes()}),c=o(function(){return[,1].includes(void 0,1)});n({target:"Array",proto:!0,forced:s||c},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},(e,t,r)=>{"use strict";var n=r(9),i=r(10).f,o=r(48),a=r(52),s=r(42),c=r(60),l=r(72);e.exports=function(e,t){var r,u,d,p,f,h=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[h]||s(h,{}):n[h]&&n[h].prototype)for(u in t){if(p=t[u],d=e.dontCallGetSet?(f=i(r,u))&&f.value:r[u],!l(m?u:h+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),a(r,u,p,e)}}},function(e){"use strict";var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof globalThis&&globalThis)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},(e,t,r)=>{"use strict";var n=r(11),i=r(13),o=r(15),a=r(16),s=r(17),c=r(23),l=r(43),u=r(46),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=c(t),u)try{return d(e,t)}catch(e){}if(l(e,t))return a(!i(o.f,e,t),e[t])}},(e,t,r)=>{"use strict";var n=r(12);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(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(12);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},(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=>{"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(18),i=r(21);e.exports=function(e){return n(i(e))}},(e,t,r)=>{"use strict";var n=r(19),i=r(12),o=r(20),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(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(19),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},(e,t,r)=>{"use strict";var n=r(22),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(24),i=r(27);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},(e,t,r)=>{"use strict";var n=r(13),i=r(25),o=r(27),a=r(34),s=r(37),c=r(38),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,c=a(e,u);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!i(r)||o(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},(e,t,r)=>{"use strict";var n=r(26);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},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(28),i=r(26),o=r(29),a=r(30),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(9),i=r(26);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(19);e.exports=n({}.isPrototypeOf)},(e,t,r)=>{"use strict";var n=r(31);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(e,t,r)=>{"use strict";var n=r(32),i=r(12),o=r(9).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(9),a=r(33),s=o.process,c=o.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(i=(n=u.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(9).navigator,i=n&&n.userAgent;e.exports=i?String(i):""},(e,t,r)=>{"use strict";var n=r(35),i=r(22);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},(e,t,r)=>{"use strict";var n=r(26),i=r(36),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(13),i=r(26),o=r(25),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(9),i=r(39),o=r(43),a=r(45),s=r(31),c=r(30),l=n.Symbol,u=i("wks"),d=c?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return o(u,e)||(u[e]=s&&o(l,e)?l[e]:d("Symbol."+e)),u[e]}},(e,t,r)=>{"use strict";var n=r(40);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},(e,t,r)=>{"use strict";var n=r(41),i=r(9),o=r(42),a="__core-js_shared__",s=e.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},e=>{"use strict";e.exports=!1},(e,t,r)=>{"use strict";var n=r(9),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=r(19),i=r(44),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},(e,t,r)=>{"use strict";var n=r(21),i=Object;e.exports=function(e){return i(n(e))}},(e,t,r)=>{"use strict";var n=r(19),i=0,o=Math.random(),a=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},(e,t,r)=>{"use strict";var n=r(11),i=r(12),o=r(47);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(9),i=r(25),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(11),i=r(49),o=r(16);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(11),i=r(46),o=r(50),a=r(51),s=r(23),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",f="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&&f in r&&!r[f]){var n=u(e,t);n&&n[f]&&(e[t]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:d in r?r[d]:n[d],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(a(e),t=s(t),a(r),i)try{return l(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(11),i=r(12);e.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},(e,t,r)=>{"use strict";var n=r(25),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(26),i=r(49),o=r(53),a=r(42);e.exports=function(e,t,r,s){s||(s={});var c=s.enumerable,l=void 0!==s.name?s.name:t;if(n(r)&&o(r,l,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(19),i=r(12),o=r(26),a=r(43),s=r(11),c=r(54).CONFIGURABLE,l=r(55),u=r(56),d=u.enforce,p=u.get,f=String,h=Object.defineProperty,m=n("".slice),g=n("".replace),y=n([].join),v=s&&!i(function(){return 8!==h(function(){},"length",{value:8}).length}),b=String(String).split("String"),_=e.exports=function(e,t,r){"Symbol("===m(f(t),0,7)&&(t="["+g(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return a(n,"source")||(n.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return o(this)&&p(this).source||l(this)},"toString")},(e,t,r)=>{"use strict";var n=r(11),i=r(43),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,l=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},(e,t,r)=>{"use strict";var n=r(19),i=r(26),o=r(40),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,i,o,a=r(57),s=r(9),c=r(25),l=r(48),u=r(43),d=r(40),p=r(58),f=r(59),h="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||d.state){var y=d.state||(d.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new m(h);return t.facade=e,y.set(e,t),t},i=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var v=p("state");f[v]=!0,n=function(e,t){if(u(e,v))throw new m(h);return t.facade=e,l(e,v,t),t},i=function(e){return u(e,v)?e[v]:{}},o=function(e){return u(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(9),i=r(26),o=n.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},(e,t,r)=>{"use strict";var n=r(39),i=r(45),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(43),i=r(61),o=r(10),a=r(49);e.exports=function(e,t,r){for(var s=i(t),c=a.f,l=o.f,u=0;u<s.length;u++){var d=s[u];n(e,d)||r&&n(r,d)||c(e,d,l(t,d))}}},(e,t,r)=>{"use strict";var n=r(28),i=r(19),o=r(62),a=r(71),s=r(51),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(63),i=r(70).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},(e,t,r)=>{"use strict";var n=r(19),i=r(43),o=r(17),a=r(64).indexOf,s=r(59),c=n([].push);e.exports=function(e,t){var r,n=o(e),l=0,u=[];for(r in n)!i(s,r)&&i(n,r)&&c(u,r);for(;t.length>l;)i(n,r=t[l++])&&(~a(u,r)||c(u,r));return u}},(e,t,r)=>{"use strict";var n=r(17),i=r(65),o=r(68),a=function(e){return function(t,r,a){var s=n(t),c=o(s);if(0===c)return!e&&-1;var l,u=i(a,c);if(e&&r!=r){for(;c>u;)if((l=s[u++])!=l)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},(e,t,r)=>{"use strict";var n=r(66),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(67);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(69);e.exports=function(e){return n(e.length)}},(e,t,r)=>{"use strict";var n=r(66),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(12),i=r(26),o=/#|\.prototype\./,a=function(e,t){var r=c[s(e)];return r===u||r!==l&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},(e,t,r)=>{"use strict";var n=r(38),i=r(74),o=r(49).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},(e,t,r)=>{"use strict";var n,i=r(51),o=r(75),a=r(70),s=r(59),c=r(77),l=r(47),u=r(58),d="prototype",p="script",f=u("IE_PROTO"),h=function(){},m=function(e){return"<"+p+">"+e+"</"+p+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&n?g(n):(t=l("iframe"),r="java"+p+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(n);for(var i=a.length;i--;)delete y[d][a[i]];return y()};s[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h[d]=i(e),r=new h,h[d]=null,r[f]=e):r=y(),void 0===t?r:o.f(r,t)}},(e,t,r)=>{"use strict";var n=r(11),i=r(50),o=r(49),a=r(51),s=r(17),c=r(76);t.f=n&&!i?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),i=c(t),l=i.length,u=0;l>u;)o.f(e,r=i[u++],n[r]);return e}},(e,t,r)=>{"use strict";var n=r(63),i=r(70);e.exports=Object.keys||function(e){return n(e,i)}},(e,t,r)=>{"use strict";var n=r(28);e.exports=n("document","documentElement")},(e,t,r)=>{"use strict";var n=r(11),i=r(79),o=r(80),a=r(81);n&&!o.correct&&(i(RegExp.prototype,"flags",{configurable:!0,get:a}),o.correct=!0)},(e,t,r)=>{"use strict";var n=r(53),i=r(49);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(9),i=r(12),o=n.RegExp,a=!i(function(){var e=!0;try{o(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",i=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(a.hasIndices="d"),a)i(s,a[s]);return Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(t)!==n||r!==n});e.exports={correct:a}},(e,t,r)=>{"use strict";var n=r(51);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(83),r(93)},(e,t,r)=>{"use strict";var n=r(8),i=r(9),o=r(84).clear;n({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},(e,t,r)=>{"use strict";var n,i,o,a,s=r(9),c=r(85),l=r(86),u=r(26),d=r(43),p=r(12),f=r(77),h=r(88),m=r(47),g=r(89),y=r(90),v=r(91),b=s.setImmediate,_=s.clearImmediate,S=s.process,E=s.Dispatch,w=s.Function,T=s.MessageChannel,x=s.String,O=0,A={},R="onreadystatechange";p(function(){n=s.location});var P=function(e){if(d(A,e)){var t=A[e];delete A[e],t()}},I=function(e){return function(){P(e)}},C=function(e){P(e.data)},k=function(e){s.postMessage(x(e),n.protocol+"//"+n.host)};b&&_||(b=function(e){g(arguments.length,1);
1var t=u(e)?e:w(e),r=h(arguments,1);return A[++O]=function(){c(t,void 0,r)},i(O),O},_=function(e){delete A[e]},v?i=function(e){S.nextTick(I(e))}:E&&E.now?i=function(e){E.now(I(e))}:T&&!y?(a=(o=new T).port2,o.port1.onmessage=C,i=l(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!p(k)?(i=k,s.addEventListener("message",C,!1)):i=R in m("script")?function(e){f.appendChild(m("script"))[R]=function(){f.removeChild(this),P(e)}}:function(e){setTimeout(I(e),0)}),e.exports={set:b,clear:_}},(e,t,r)=>{"use strict";var n=r(14),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},(e,t,r)=>{"use strict";var n=r(87),i=r(35),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(20),i=r(19);e.exports=function(e){if("Function"===n(e))return i(e)}},(e,t,r)=>{"use strict";var n=r(19);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(33);e.exports=/ipad|iphone|ipod/i.test(n)&&/applewebkit/i.test(n)},(e,t,r)=>{"use strict";var n=r(92);e.exports="NODE"===n},(e,t,r)=>{"use strict";var n=r(9),i=r(33),o=r(20),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(8),i=r(9),o=r(84).set,a=r(94),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(9),o=r(85),a=r(26),s=r(92),c=r(33),l=r(88),u=r(89),d=i.Function,p=/MSIE .\./.test(c)||"BUN"===s&&((n=i.Bun.version.split(".")).length<3||"0"===n[0]&&(n[1]<3||"3"===n[1]&&"0"===n[2]));e.exports=function(e,t){var r=t?2:1;return p?function(n,i){var s=u(arguments.length,1)>r,c=a(n)?n:d(n),p=s?l(arguments,r):[],f=s?function(){o(c,this,p)}:c;return t?e(f,i):e(f)}:e}},,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(100);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(101),i=r(102);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(101);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:()=>o,FormatError:()=>a,IntlMessageFormat:()=>m,InvalidValueError:()=>s,InvalidValueTypeError:()=>c,MissingValueError:()=>l,PART_TYPE:()=>u,default:()=>g,formatToParts:()=>p,isFormatXMLElementFn:()=>d});var n=r(108),i=r(109);let o=function(e){return e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API",e}({});var a=class extends Error{constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},s=class extends a{constructor(e,t,r,n){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(r).join('", "')}"`,"INVALID_VALUE",n)}},c=class extends a{constructor(e,t,r){super(`Value for "${e}" must be of type ${t}`,"INVALID_VALUE",r)}}
1,l=class extends a{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,"MISSING_VALUE",t)}};let u=function(e){return e[e.literal=0]="literal",e[e.object=1]="object",e}({});function d(e){return"function"==typeof e}function p(e,t,r,n,o,u,f){if(1===e.length&&(0,i.isLiteralElement)(e[0]))return[{type:0,value:e[0].value}];const h=[];for(const m of e){if((0,i.isLiteralElement)(m)){h.push({type:0,value:m.value});continue}if((0,i.isPoundElement)(m)){"number"==typeof u&&h.push({type:0,value:r.getNumberFormat(t).format(u)});continue}const{value:e}=m;if(!o||!(e in o))throw new l(e,f);let g=o[e];if((0,i.isArgumentElement)(m))g&&"string"!=typeof g&&"number"!=typeof g&&"bigint"!=typeof g||(g="string"==typeof g||"number"==typeof g||"bigint"==typeof g?String(g):""),h.push({type:"string"==typeof g?0:1,value:g});else{if((0,i.isDateElement)(m)){const e="string"==typeof m.style?n.date[m.style]:(0,i.isDateTimeSkeleton)(m.style)?m.style.parsedOptions:void 0;h.push({type:0,value:r.getDateTimeFormat(t,e).format(g)});continue}if((0,i.isTimeElement)(m)){const e="string"==typeof m.style?n.time[m.style]:(0,i.isDateTimeSkeleton)(m.style)?m.style.parsedOptions:n.time.medium;h.push({type:0,value:r.getDateTimeFormat(t,e).format(g)});continue}if((0,i.isNumberElement)(m)){const e="string"==typeof m.style?n.number[m.style]:(0,i.isNumberSkeleton)(m.style)?m.style.parsedOptions:void 0;if(e&&e.scale){const t=e.scale||1;if("bigint"==typeof g){if(!Number.isInteger(t))throw new TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);g*=BigInt(t)}else g*=t}h.push({type:0,value:r.getNumberFormat(t,e).format(g)});continue}if((0,i.isTagElement)(m)){const{children:e,value:i}=m,a=o[i];if(!d(a))throw new c(i,"function",f);let s=a(p(e,t,r,n,o,u).map(e=>e.value));Array.isArray(s)||(s=[s]),h.push(...s.map(e=>({type:"string"==typeof e?0:1,value:e})))}if((0,i.isSelectElement)(m)){const e=g,i=(Object.prototype.hasOwnProperty.call(m.options,e)?m.options[e]:void 0)||m.options.other;if(!i)throw new s(m.value,g,Object.keys(m.options),f);h.push(...p(i.value,t,r,n,o));continue}if((0,i.isPluralElement)(m)){const e=`=${g}`;let i=Object.prototype.hasOwnProperty.call(m.options,e)?m.options[e]:void 0;if(!i){if(!Intl.PluralRules)throw new a('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",f);const e="bigint"==typeof g?Number(g):g,n=r.getPluralRules(t,{type:m.pluralType}).select(e-(m.offset||0));i=(Object.prototype.hasOwnProperty.call(m.options,n)?m.options[n]:void 0)||m.options.other}if(!i)throw new s(m.value,g,Object.keys(m.options),f);const c="bigint"==typeof g?Number(g):g;h.push(...p(i.value,t,r,n,o,c-(m.offset||0)));continue}}}return(m=h).length<2?m:m.reduce((e,t)=>{const r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e},[]);var m}function f(e,t){return t?Object.keys(e).reduce((r,n)=>{var i,o;return r[n]=(i=e[n],(o=t[n])?{...i,...o,...Object.keys(i).reduce((e,t)=>(e[t]={...i[t],...o[t]},e),{})}:i),r},{...e}):e}function h(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}var m=class e{constructor(t,r=e.defaultLocale,i,o){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{const t=this.formatToParts(e);if(1===t.length)return t[0].value;const r=t.reduce((e,t)=>(e.length&&0===t.type&&"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=e=>p(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.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`");const{...r}=o||{};this.ast=e.__parse(t,{...r,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=f(e.formats,i),this.formatters=o&&o.formatters||function(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:(0,n.memoize)((...e)=>new Intl.NumberFormat(...e),{cache:h(e.number),strategy:n.strategies.variadic}),getDateTimeFormat:(0,n.memoize)((...e)=>new Intl.DateTimeFormat(...e),{cache:h(e.dateTime),strategy:n.strategies.variadic}),getPluralRules:(0,n.memoize)((...e)=>new Intl.PluralRules(...e),{cache:h(e.pluralRules),strategy:n.strategies.variadic})}}(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(void 0===Intl.Locale)return;const t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}}static{this.__parse=i.parse}static{this.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"}}}}},g=m},(e,t,r)=>{"use strict";function n(e,t){const r=t&&t.cache?t.cache:u,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){const i=null==(o=n)||"number"==typeof o||"boolean"==typeof o?n:r(n);var o;let a=t.get(i);return void 0===a&&(a=e.call(this,n),t.set(i,a)),a}function o(e,t,r){const n=Array.prototype.slice.call(arguments,3),i=r(n);let 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)}
1function 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:()=>d});const c=function(){return JSON.stringify(arguments)};var l=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};const u={create:function(){return new l}},d={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,{SKELETON_TYPE:()=>a,TYPE:()=>o,_Parser:()=>H,createLiteralElement:()=>v,createNumberElement:()=>b,isArgumentElement:()=>c,isDateElement:()=>u,isDateTimeSkeleton:()=>y,isLiteralElement:()=>s,isNumberElement:()=>l,isNumberSkeleton:()=>g,isPluralElement:()=>f,isPoundElement:()=>h,isSelectElement:()=>p,isStructurallySame:()=>B,isTagElement:()=>m,isTimeElement:()=>d,parse:()=>U});var n=r(110);let i=function(e){return 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",e}({}),o=function(e){return 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",e}({}),a=function(e){return e[e.number=0]="number",e[e.dateTime=1]="dateTime",e}({});function s(e){return 0===e.type}function c(e){return 1===e.type}function l(e){return 2===e.type}function u(e){return 3===e.type}function d(e){return 4===e.type}function p(e){return 5===e.type}function f(e){return 6===e.type}function h(e){return 7===e.type}function m(e){return 8===e.type}function g(e){return!(!e||"object"!=typeof e||0!==e.type)}function y(e){return!(!e||"object"!=typeof e||1!==e.type)}function v(e){return{type:0,value:e}}function b(e,t){return{type:2,value:e,style:t}}const _=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,S={"001":["H","h"],419:["h","H","hB","hb"],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","H","hB","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","H","hB","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"],GS:["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
1:["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","H","hB","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"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["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"],"ku-SY":["H","hB"],"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"]};function E(e){let 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")}const r=e.language;let n;return"root"!==r&&(n=e.maximize().region),(S[n||""]||S[r||""]||S[`${r}-001`]||S["001"])[0]}const w=new RegExp(`^${_.source}*`),T=new RegExp(`${_.source}*$`);function x(e,t){return{start:e,end:t}}const O=!!Object.fromEntries,A=!!String.prototype.trimStart,R=!!String.prototype.trimEnd,P=O?Object.fromEntries:function(e){const t={};for(const[r,n]of e)t[r]=n;return t},I=A?function(e){return e.trimStart()}:function(e){return e.replace(w,"")},C=R?function(e){return e.trimEnd()}:function(e){return e.replace(T,"")},k=new RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");var M=class{constructor(e,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}parse(){if(0!==this.offset())throw Error("parser can only be used once");if(this.message.length>0){const e=this.message.charCodeAt(0);if(35!==e&&39!==e&&60!==e&&123!==e&&125!==e){const e=function(e){if(0===e.length)return null;let t=1,r=1;for(let n=0;n<e.length;){const i=e.charCodeAt(n);switch(i){case 35:case 39:case 60:case 123:case 125:return null}if(10===i)t++,r=1,n++;else if(r++,i>=55296&&i<=56319&&n+1<e.length){const t=e.charCodeAt(n+1);n+=t>=56320&&t<=57343?2:1}else n++}return{offset:e.length,line:t,column:r}}(this.message);if(e){const t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:x(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,"",!1)}parseMessage(e,t,r){let n=[];for(;!this.isEOF();){const i=this.char();if(123===i){const t=this.parseArgument(e,r);if(t.err)return t;n.push(t.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(26,x(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&D(this.peek()||0)){const r=this.parseTag(e,t);if(r.err)return r;n.push(r.val)}else{const r=this.parseLiteral(e,t);if(r.err)return r;n.push(r.val)}}else{const e=this.clonePosition();this.bump(),n.push({type:7,location:x(e,this.clonePosition())})}}}return{val:n,err:null}}parseTag(e,t){const r=this.clonePosition();this.bump();const n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:0,value:`<${n}/>`,location:x(r,this.clonePosition())},err:null};if(this.bumpIf(">")){const i=this.parseMessage(e+1,t,!0);if(i.err)return i;const o=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!D(this.char()))return this.error(23,x(a,this.clonePosition()));const e=this.clonePosition();return n!==this.parseTagName()?this.error(26,x(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:8,value:n,children:o,location:x(r,this.clonePosition())},err:null}:this.error(23,x(a,this.clonePosition())))}return this.error(27,x(r,this.clonePosition()))}return this.error(23,x(r,this.clonePosition()))}parseTagName(){const e=this.offset();for(this.bump();!this.isEOF()&&N(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){const r=this.clonePosition();let n="";for(;;){const r=this.tryParseQuote(t);if(r){n+=r;
1continue}const i=this.tryParseUnquoted(e,t);if(i){n+=i;continue}const o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}return{val:{type:0,value:n,location:x(r,this.clonePosition())},err:null}}tryParseLeftAngleBracket(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(D(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e}tryParseQuote(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();const t=[this.char()];for(this.bump();!this.isEOF();){const e=this.char();if(39===e){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;const r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){const r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,x(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(2,x(r,this.clonePosition()));let n=this.parseIdentifierIfPossible().value;if(!n)return this.error(3,x(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,x(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:n,location:x(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,x(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(3,x(r,this.clonePosition()))}}parseIdentifierIfPossible(){const e=this.clonePosition(),t=this.offset(),r=(n=this.message,i=t,k.lastIndex=i,k.exec(n)[1]??"");var n,i;const o=t+r.length;return this.bumpTo(o),{value:r,location:x(e,this.clonePosition())}}parseArgumentOptions(e,t,r,i){let o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(4,x(o,s));case"number":case"date":case"time":{this.bumpSpace();let e=null;if(this.bumpIf(",")){this.bumpSpace();const t=this.clonePosition(),r=this.parseSimpleArgStyleIfPossible();if(r.err)return r;const n=C(r.val);if(0===n.length)return this.error(6,x(this.clonePosition(),this.clonePosition()));e={style:n,styleLocation:x(t,this.clonePosition())}}const t=this.tryParseArgumentClose(i);if(t.err)return t;const o=x(i,this.clonePosition());if(e&&e.style.startsWith("::")){let t=I(e.style.slice(2));if("number"===a){const n=this.parseNumberSkeletonFromString(t,e.styleLocation);return n.err?n:{val:{type:2,value:r,location:o,style:n.val},err:null}}{if(0===t.length)return this.error(10,o);let i=t;this.locale&&(i=function(e,t){let r="";for(let n=0;n<e.length;n++){const i=e.charAt(n);if("j"===i){let o=0;for(;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;let a=1+(1&o),s=o<2?1:3+(o>>1),c="a",l=E(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)r+=c;for(;a-- >0;)r=l+r}else r+="J"===i?"H":i}return r}(t,this.locale));return{val:{type:"date"===a?3:4,value:r,location:o,style:{type:1,pattern:i,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?(0,n.parseDateTimeSkeleton)(i):{}}},err:null}}}return{val:{type:"number"===a?2:"date"===a?3:4,value:r,location:o,style:e?.style??null},err:null}}case"plural":case"selectordinal":case"select":{const n=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(12,x(n,{...n}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),s=0;if("select"!==a&&"offset"===o.value){if(!this.bumpIf(":"))return this.error(13,x(this.clonePosition(),this.clonePosition()));this.bumpSpace();const e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),s=e.val}const c=this.tryParsePluralOrSelectOptions(e,a,t,o);if(c.err)return c;const l=this.tryParseArgumentClose(i);if(l.err)return l;const u=x(i,this.clonePosition());return"select"===a?{val:{type:5,value:r,options:P(c.val),location:u},err:null}:{val:{type:6,value:r,options:P(c.val),offset:s,pluralType:"plural"===a?"cardinal":"ordinal",location:u},err:null}}default:return this.error(5,x(o,s))}}tryParseArgumentClose(e){return this.isEOF()||125!==this.char()?this.error(1,x(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0;const t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil("'"))return this.error(11,x(e,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}}parseNumberSkeletonFromString(e,t){let r=[];try{r=(0,n.parseNumberSkeletonFromString)(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?(0,n.parseNumberSkeleton)(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,n){let i=!1;const o=[],a=new Set;let{value:s,location:c}=n;for(;;){if(0===s.length){const e=this.clonePosition();if("select"===t||!this.bumpIf("="))break;{const t=this.tryParseDecimalInteger(16,19);if(t.err)return t;c=x(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}}if(a.has(s))return this.error("select"===t?21:20,c);"other"===s&&(i=!0),this.bumpSpace();const n=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?17:18,x(this.clonePosition(),this.clonePosition()));const l=this.parseMessage(e+1,t,r);if(l.err)return l;const u=this.tryParseArgumentClose(n);if(u.err)return u;o.push([s,{value:l.val,location:x(n,this.clonePosition())}]),a.add(s),this.bumpSpace(),({value:s,location:c}=this.parseIdentifierIfPossible())}return 0===o.length?this.error("select"===t?15:16,x(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,x(this.clonePosition(),this.clonePosition())):{val:o,err:null}}tryParseDecimalInteger(e,t){let r=1;const n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);let i=!1,o=0;for(;!this.isEOF();){const e=this.char();if(!(e>=48&&e<=57))break;i=!0,o=10*o+(e-48),this.bump()}const a=x(n,this.clonePosition());return i?(o*=r,Number.isSafeInteger(o)?{val:o,err:null}:this.error(t,a)):this.error(e,a)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){const e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");const t=this.message.codePointAt(e);if(void 0===t)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;const e=this.char();
110===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){const t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){const t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&L(this.char());)this.bump()}peek(){if(this.isEOF())return null;const e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function D(e){return e>=97&&e<=122||e>=65&&e<=90}function N(e){return 45===e||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}function L(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function F(e,t=new Map){e.forEach(e=>{if(c(e)||u(e)||d(e)||l(e))if(t.has(e.value)){const r=t.get(e.value);if(r!==e.type&&6!==r&&5!==r)throw new Error(`Variable ${e.value} has conflicting types`)}else t.set(e.value,e.type);(f(e)||p(e))&&(t.set(e.value,e.type),Object.keys(e.options).forEach(r=>{F(e.options[r].value,t)})),m(e)&&(t.set(e.value,e.type),F(e.children,t))})}function B(e,t){const r=new Map,n=new Map;return F(e,r),F(t,n),r.size!==n.size?{success:!1,error:new Error(`Different number of variables: [${Array.from(r.keys()).join(", ")}] vs [${Array.from(n.keys()).join(", ")}]`)}:Array.from(r.entries()).reduce((e,[t,r])=>{if(!e.success)return e;const i=n.get(t);return null==i?{success:!1,error:new Error(`Missing variable ${t} in message`)}:i!==r?{success:!1,error:new Error(`Variable ${t} has conflicting types: ${o[r]} vs ${o[i]}`)}:e},{success:!0})}function j(e){e.forEach(e=>{if(delete e.location,p(e)||f(e))for(const t in e.options)delete e.options[t].location,j(e.options[t].value);else l(e)&&g(e.style)||(u(e)||d(e))&&y(e.style)?delete e.style.location:m(e)&&j(e.children)})}function U(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};const r=new M(e,t).parse();if(r.err){const e=SyntaxError(i[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return t?.captureLocation||j(r.val),r.val}const H=M},(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseDateTimeSkeleton:()=>i,parseNumberSkeleton:()=>g,parseNumberSkeletonFromString:()=>a});const 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){const t={};return e.replace(n,e=>{const 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}const o=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function a(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");const t=e.split(o).filter(e=>e.length>0),r=[];for(const e of t){let t=e.split("/");if(0===t.length)throw new Error("Invalid number skeleton");const[n,...i]=t;for(const e of i)if(0===e.length)throw new Error("Invalid number skeleton");r.push({stem:n,options:i})}return r}function s(e){return e.replace(/^(.*?)-/,"")}const c=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,l=/^(@+)?(\+|#+)?[rs]?$/g,u=/(\*)(0+)|(#+)(0+)|(0+)/g,d=/^(0+)$/;function p(e){const t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(l,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function f(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function h(e){let 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){const r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!d.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function m(e){const t=f(e);return t||{}}function g(e){let t={};for(const r of e){switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.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=s(r.options[0]);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;
1case"scientific":t={...t,notation:"scientific",...r.options.reduce((e,t)=>({...e,...m(t)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((e,t)=>({...e,...m(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(r.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(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(u,function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(d.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(c.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(c,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),""});const e=r.options[0];"w"===e?t={...t,trailingZeroDisplay:"stripIfInteger"}:e&&(t={...t,...p(e)});continue}if(l.test(r.stem)){t={...t,...p(r.stem)};continue}const e=f(r.stem);e&&(t={...t,...e});const n=h(r.stem);n&&(t={...t,...n})}return t}},,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{Firehose:()=>v});var n=r(114),i=r(115),o=r(179),a=r(180),s=r(181),c=r(182),l=r(183),u=r(184),d=r(185),p=r(186),f=r(187),h=r(188),m=r(189),g=r(190);const y={CreateDeliveryStreamCommand:i.CreateDeliveryStreamCommand,DeleteDeliveryStreamCommand:o.DeleteDeliveryStreamCommand,DescribeDeliveryStreamCommand:a.DescribeDeliveryStreamCommand,ListDeliveryStreamsCommand:s.ListDeliveryStreamsCommand,ListTagsForDeliveryStreamCommand:c.ListTagsForDeliveryStreamCommand,PutRecordCommand:u.PutRecordCommand,PutRecordBatchCommand:l.PutRecordBatchCommand,StartDeliveryStreamEncryptionCommand:d.StartDeliveryStreamEncryptionCommand,StopDeliveryStreamEncryptionCommand:p.StopDeliveryStreamEncryptionCommand,TagDeliveryStreamCommand:f.TagDeliveryStreamCommand,UntagDeliveryStreamCommand:h.UntagDeliveryStreamCommand,UpdateDestinationCommand:m.UpdateDestinationCommand};class v extends g.FirehoseClient{}(0,n.createAggregatedClient)(y,v)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createAggregatedClient:()=>n});const n=(e,t,r)=>{for(const[r,n]of Object.entries(e)){const e=async function(e,t,r){const i=new n(e);if("function"==typeof t)this.send(i,t);else{if("function"!=typeof r)return this.send(i,t);if("object"!=typeof t)throw new Error("Expected http options but got "+typeof t);this.send(i,t||{},r)}},i=(r[0].toLowerCase()+r.slice(1)).replace(/Command$/,"");t.prototype[i]=e}const{paginators:n={},waiters:i={}}=r??{};for(const[e,r]of Object.entries(n))void 0===t.prototype[e]&&(t.prototype[e]=function(e={},t,...n){return r({...t,client:this},e,...n)});for(const[e,r]of Object.entries(i))void 0===t.prototype[e]&&(t.prototype[e]=async function(e={},t,...n){let i=t;return"number"==typeof t&&(i={maxWaitTime:t}),r({...i,client:this},e,...n)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{$Command:()=>n.Command,CreateDeliveryStreamCommand:()=>s});var n=r(116),i=r(123),o=r(173),a=r(174);class s extends(n.Command.classBuilder().ep(o.commonParams).m(function(e,t,r,n){return[(0,i.getEndpointPlugin)(r,e.getEndpointParameterInstru
1ctions())]}).s("Firehose_20150804","CreateDeliveryStream",{}).n("FirehoseClient","CreateDeliveryStreamCommand").sc(a.CreateDeliveryStream$).build()){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Command:()=>a});var n=r(117),i=r(118),o=r(119);class a{middlewareStack=(0,i.constructStack)();schema;static classBuilder(){return new s}resolveMiddlewareWithContext(e,t,r,{middlewareFn:i,clientName:o,commandName:a,inputFilterSensitiveLog:s,outputFilterSensitiveLog:c,smithyContext:l,additionalContext:u,CommandCtor:d}){for(const n of i.bind(this)(d,e,t,r))this.middlewareStack.use(n);const p=e.concat(this.middlewareStack),{logger:f}=t,h={logger:f,clientName:o,commandName:a,inputFilterSensitiveLog:s,outputFilterSensitiveLog:c,[n.SMITHY_CONTEXT_KEY]:{commandInstance:this,...l},...u},{requestHandler:m}=t;let g=r??{};return l.eventStream&&(g={isEventStream:!0,...g}),p.resolve(e=>m.handle(e.request,g),h)}}class s{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){const e=this;let t;return t=class extends a{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(r,n,i){const a=e._operationSchema,s=a?.[4]??a?.input,c=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(r,n,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?o.schemaLogFilter.bind(null,s):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?o.schemaLogFilter.bind(null,c):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SMITHY_CONTEXT_KEY:()=>n});const n="__smithy_context"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{constructStack:()=>o});const n=(e,t)=>{const r=[];if(e&&r.push(e),t)for(const e of t)r.push(e);return r},i=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,o=()=>{let e=[],t=[],r=!1;const c=new Set,l=r=>(e.forEach(e=>{r.add(e.middleware,{...e})}),t.forEach(e=>{r.addRelativeTo(e.middleware,{...e})}),r.identifyOnResolve?.(p.identifyOnResolve()),r),u=e=>{const t=[];return e.before.forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...u(e))}),t.push(e),e.after.reverse().forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...u(e))}),t},d=(r=!1)=>{const o=[],c=[],l={};e.forEach(e=>{const t={...e,before:[],after:[]};for(const e of n(t.name,t.aliases))l[e]=t;o.push(t)}),t.forEach(e=>{const t={...e,before:[],after:[]};for(const e of n(t.name,t.aliases))l[e]=t;c.push(t)}),c.forEach(e=>{if(e.toMiddleware){const t=l[e.toMiddleware];if(void 0===t){if(r)return;throw new Error(`${e.toMiddleware} is not found when adding ${i(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}});var d;return(d=o,d.sort((e,t)=>a[t.step]-a[e.step]||s[t.priority||"normal"]-s[e.priority||"normal"])).map(u).reduce((e,t)=>(e.push(...t),e),[])},p={add:(t,r={})=>{const{name:o,override:a,aliases:s}=r,l={step:"initialize",priority:"normal",middleware:t,...r},u=n(o,s);if(u.length>0){if(u.some(e=>c.has(e))){if(!a)throw new Error(`Duplicate middleware name '${i(o,s)}'`);for(const t of u){const r=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(-1===r)continue;const n=e[r];if(n.step!==l.step||l.priority!==n.priority)throw new Error(`"${i(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${i(o,s)}" middleware with ${l.priority} priority in ${l.step} step.`);e.splice(r,1)}}for(const e of u)c.add(e)}e.push(l)},addRelativeTo:(e,r)=>{const{name:o,override:a,aliases:s}=r,l={middleware:e,...r},u=n(o,s);if(u.length>0){if(u.some(e=>c.has(e))){if(!a)throw new Error(`Duplicate middleware name '${i(o,s)}'`);for(const e of u){const r=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(-1===r)continue;const n=t[r];
vendor: 6,021 bytes, line 1
1if(n.toMiddleware!==l.toMiddleware||n.relation!==l.relation)throw new Error(`"${i(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${i(o,s)}" middleware ${l.relation} "${l.toMiddleware}" middleware.`);t.splice(r,1)}}for(const e of u)c.add(e)}t.push(l)},clone:()=>l(o()),use:e=>{e.applyToStack(p)},remove:r=>"string"==typeof r?(r=>{let i=!1;const o=e=>{const t=n(e.name,e.aliases);if(t.includes(r)){i=!0;for(const e of t)c.delete(e);return!1}return!0};return e=e.filter(o),t=t.filter(o),i})(r):(r=>{let i=!1;const o=e=>{if(e.middleware===r){i=!0;for(const t of n(e.name,e.aliases))c.delete(t);return!1}return!0};return e=e.filter(o),t=t.filter(o),i})(r),removeByTag:r=>{let i=!1;const o=e=>{const{tags:t,name:o,aliases:a}=e;if(t&&t.includes(r)){const e=n(o,a);for(const t of e)c.delete(t);return i=!0,!1}return!0};return e=e.filter(o),t=t.filter(o),i},concat:e=>{const t=l(o());return t.use(e),t.identifyOnResolve(r||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:l,identify:()=>d(!0).map(e=>{const t=e.step??e.relation+" "+e.toMiddleware;return i(e.name,e.aliases)+" - "+t}),identifyOnResolve:e=>("boolean"==typeof e&&(r=e),r),resolve:(e,t)=>{for(const r of d().map(e=>e.middleware).reverse())e=r(e,t);return r&&console.log(p.identify()),e}};return p},a={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},s={high:3,normal:2,low:1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{schemaLogFilter:()=>o});var n=r(120);const i="***SensitiveInformation***";function o(e,t){if(null==t)return t;const r=n.NormalizedSchema.of(e);if(r.getMergedTraits().sensitive)return i;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return i}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return i}else if(r.isStructSchema()&&"object"==typeof t){const e=t,n={};for(const[t,i]of r.structIterator())null!=e[t]&&(n[t]=o(i,e[t]));return n}return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{NormalizedSchema:()=>l,isStaticSchema:()=>p,simpleSchemaCacheN:()=>s,simpleSchemaCacheS:()=>c});var n=r(121),i=r(122);const o=Symbol.for("@smithy/nor-struct-it"),a=Symbol.for("@smithy/ns"),s=[],c={};class l{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=l.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e,this.memberName=t;const r=[];let o=e,a=e;for(this._isMemberSchema=!1;d(o);)r.push(o[1]),o=o[0],a=(0,n.deref)(o),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){const t=r[e];Object.assign(this.memberTraits,(0,i.translateTraits)(t))}}else this.memberTraits=0;if(a instanceof l){const e=this.memberTraits;return Object.assign(this,a),this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,void(this.memberName=t??a.memberName)}if(this.schema=(0,n.deref)(a),p(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(a),this.traits=0),this._isMemberSchema&&!t)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&"object"==typeof e&&null!==e){return e.symbol===this.symbol}return t}static of(e){const t="function"==typeof e||"object"==typeof e&&null!==e;if("number"==typeof e){if(s[e])return s[e]}else if("string"==typeof e){if(c[e])return c[e]}else if(t&&e[a])return e[a];const r=(0,n.deref)(e);if(r instanceof l)return r;if(d(r)){const[t,n]=r;if(t instanceof l)return Object.assign(t.getMergedTraits(),(0,i.translateTraits)(n)),t;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}const o=new l(r);return t?e[a]=o:"string"==typeof r?c[r]=o:"number"==typeof r?s[r]=o:o}getSchema(){const e=this.schema;return Array.isArray(e)&&0===e[0]?e[4]:e}getName(e=!1){const{name:t}=this;return!e&&t&&t.includes("#")?t.split("#")[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return"number"==typeof e?e>=64&&e<128:1===e[0]}isMapSchema(){const e=this.getSchema();return"number"==typeof e?e>=128&&e<=255:2===e[0]}isStructSchema(){const e=this.getSchema();if("object"!=typeof e)return!1;const t=e[0];return 3===t||-3===t||4===t}isUnionSchema(){const e=this.getSchema();return"object"==typeof e&&4===e[0]}isBlobSchema(){const e=this.getSchema();return 21===e||42===e}isTimestampSchema(){const e=this.getSchema();return"number"==typeof e&&e>=4&&e<=7}isUnitSchema(){return"unit"===this.getSchema()}isDocumentSchema(){return 15===this.getSchema()}isStringSchema(){return 0===this.getSchema()}isBooleanSchema(){return 2===this.getSchema()}isNumericSchema(){return 1===this.getSchema()}isBigIntegerSchema(){return 17===this.getSchema()}isBigDecimalSchema(){return 19===this.getSchema()}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||42===this.getSchema()}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return(0,i.translateTraits)(this.memberTraits)}getOwnTraits(){return(0,i.translateTraits)(this.traits)}getKeySchema(){const[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const r=this.getSchema();return u([e?15:r[4]??0,0],"key")}getValueSchema(){const e=this.getSchema(),[t,r,n]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i="number"==typeof e?63&e:e&&"object"==typeof e&&(r||n)?e[3+e[0]]:t?15:void 0;if(null!=i)return u([i,0],r?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){const t=this.getSchema();
1if(this.isStructSchema()&&t[4].includes(e)){const r=t[4].indexOf(e),n=t[5][r];return u(d(n)?n:[n,0],e)}if(this.isDocumentSchema())return u([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[t,r]of this.structIterator())e[t]=r}catch(e){}return e}getEventStreamMember(){if(this.isStructSchema())for(const[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e;return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const e=this.getSchema(),t=e[4].length;let r=e[o];if(r&&t===r.length)yield*r;else{r=Array(t);for(let n=0;n<t;++n){const t=e[4][n],i=u([e[5][n],0],t);yield r[n]=[t,i]}e[o]=r}}}function u(e,t){if(e instanceof l)return Object.assign(e,{memberName:t,_isMemberSchema:!0});return new l(e,t)}const d=e=>Array.isArray(e)&&2===e.length,p=e=>Array.isArray(e)&&e.length>=5},(e,t,r)=>{"use strict";r.r(t),r.d(t,{deref:()=>n});const n=e=>"function"==typeof e?e():e},(e,t,r)=>{"use strict";r.r(t),r.d(t,{traitsCache:()=>n,translateTraits:()=>i});const n=[];function i(e){if("object"==typeof e)return e;if(n[e|=0])return n[e];const t={};let r=0;for(const n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])1==(e>>r++&1)&&(t[n]=1);return n[e]=t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BinaryDecisionDiagram:()=>l.BinaryDecisionDiagram,EndpointCache:()=>u.EndpointCache,EndpointError:()=>g.EndpointError,customEndpointFunctions:()=>h.customEndpointFunctions,decideEndpoint:()=>d.decideEndpoint,endpointMiddleware:()=>_,endpointMiddlewareOptions:()=>a.endpointMiddlewareOptions,getEndpointFromInstructions:()=>v,getEndpointPlugin:()=>S,isIpAddress:()=>p.isIpAddress,isValidHostLabel:()=>f.isValidHostLabel,middlewareEndpointToEndpointV1:()=>c.toEndpointV1,resolveEndpoint:()=>m.resolveEndpoint,resolveEndpointConfig:()=>b,resolveEndpointRequiredConfig:()=>y.resolveEndpointRequiredConfig,resolveParams:()=>i.resolveParams,toEndpointV1:()=>c.toEndpointV1});var n=r(124),i=r(125),o=r(131),a=r(133),s=r(134),c=r(128),l=r(136),u=r(137),d=r(138),p=r(156),f=r(151),h=r(144),m=r(166),g=r(171),y=r(172);const v=(0,i.bindGetEndpointFromInstructions)(n.getEndpointFromConfig),b=(0,s.bindResolveEndpointConfig)(n.getEndpointFromConfig),_=(0,o.bindEndpointMiddleware)(n.getEndpointFromConfig),S=(0,a.bindGetEndpointPlugin)(n.getEndpointFromConfig)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEndpointFromConfig:()=>n});const n=async e=>{}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindGetEndpointFromInstructions:()=>a,resolveParams:()=>s});var n=r(126),i=r(127),o=r(128);function a(e){return async(t,r,n,i)=>{if(!n.isCustomEndpoint){let t;t=n.serviceConfiguredEndpoint?await n.serviceConfiguredEndpoint():await e(n.serviceId),t&&(n.endpoint=()=>Promise.resolve((0,o.toEndpointV1)(t)),n.isCustomEndpoint=!0)}const a=await s(t,r,n);if("function"!=typeof n.endpointProvider)throw new Error("config.endpointProvider is not set.");const c=n.endpointProvider(a,i);if(n.isCustomEndpoint&&n.endpoint){const e=await n.endpoint();if(e?.headers){c.headers??={};for(const[t,r]of Object.entries(e.headers))c.headers[t]=Array.isArray(r)?r:[r]}}return c}}const s=async(e,t,r)=>{const o={},a=t?.getEndpointParameterInstructions?.()||{};for(const[t,n]of Object.entries(a))switch(n.type){case"staticContextParams":o[t]=n.value;break;case"contextParams":o[t]=e[n.name];break;case"clientContextParams":case"builtInParams":o[t]=await(0,i.createConfigValueProvider)(n.name,t,r,"builtInParams"!==n.type)();break;case"operationContextParams":o[t]=n.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(n))}return 0===Object.keys(a).length&&Object.assign(o,r),"s3"===String(r.serviceId).toLowerCase()&&await(0,n.resolveParamsForS3)(o),o}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DOT_PATTERN:()=>s,S3_HOSTNAME_PATTERN:()=>c,isArnBucketName:()=>u,isDnsCompatibleBucketName:()=>l,resolveParamsForS3:()=>n});const n=async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),u(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!l(t)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP
1=!0),e},i=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,o=/(\d+\.){3}\d+/,a=/\.\./,s=/\./,c=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./,l=e=>i.test(e)&&!o.test(e)&&!a.test(e),u=e=>{const[t,r,n,,,i]=e.split(":"),o="arn"===t&&e.split(":").length>=6,a=Boolean(o&&r&&n&&i);if(o&&!a)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return a}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createConfigValueProvider:()=>n});const n=(e,t,r,n=!1)=>{const i=async()=>{let i;if(n){const n=r.clientContextParams,o=n?.[e];i=o??r[e]??r[t]}else i=r[e]??r[t];return"function"==typeof i?i():i};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.credentialScope??e?.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.accountId??e?.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{if(!1===r.isCustomEndpoint)return;const e=await i();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:i}=e;return`${t}//${r}${n?":"+n:""}${i}`}}return e}:i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{toEndpointV1:()=>i});var n=r(129);const i=e=>{if("object"==typeof e){if("url"in e){const t=(0,n.parseUrl)(e.url);if(e.headers){t.headers={};for(const r in e.headers)t.headers[r.toLowerCase()]=e.headers[r].join(", ")}return t}return e}return(0,n.parseUrl)(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseUrl:()=>i});var n=r(130);const i=e=>{if("string"==typeof e)return i(new URL(e));const{hostname:t,pathname:r,port:o,protocol:a,search:s}=e;let c;return s&&(c=(0,n.parseQueryString)(s)),{hostname:t,port:o?parseInt(o):void 0,protocol:a,path:r,query:c}}},(e,t,r)=>{"use strict";function n(e){const t={};if(e=e.replace(/^\?/,""))for(const r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}r.r(t),r.d(t,{parseQueryString:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindEndpointMiddleware:()=>o});var n=r(132),i=r(125);function o(e){const t=(0,i.bindGetEndpointFromInstructions)(e);return({config:e,instructions:r})=>(i,o)=>async a=>{e.isCustomEndpoint&&function(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}(o,"ENDPOINT_OVERRIDE","N");const s=await t(a.input,{getEndpointParameterInstructions:()=>r},{...e},o);o.endpointV2=s,o.authSchemes=s.properties?.authSchemes;const c=o.authSchemes?.[0];if(c){o.signing_region=c.signingRegion,o.signing_service=c.signingName;const e=(0,n.getSmithyContext)(o),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:c.signingRegion,signingRegion:c.signingRegion,signing_service:c.signingName,signingName:c.signingName,signingRegionSet:c.signingRegionSet},c.properties))}return i({...a})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getSmithyContext:()=>i});var n=r(117);const i=e=>e[n.SMITHY_CONTEXT_KEY]||(e[n.SMITHY_CONTEXT_KEY]={})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindGetEndpointPlugin:()=>o,endpointMiddlewareOptions:()=>i});var n=r(131);const i={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"};function o(e){const t=(0,n.bindEndpointMiddleware)(e);return(e,r)=>({applyToStack:n=>{n.addRelativeTo(t({config:e,instructions:r}),i)}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindResolveEndpointConfig:()=>o});var n=r(135),i=r(128);function o(e){return t=>{const r=t.tls??!0,{endpoint:o,useDualstackEndpoint:a,useFipsEndpoint:s}=t,c=null!=o?async()=>(0,i.toEndpointV1)(await(0,n.normalizeProvider)(o)()):void 0,l=!!o,u=Object.assign(t,{endpoint:c,tls:r,isCustomEndpoint:l,useDualstackEndpoint:(0,n.normalizeProvider)(a??!1),useFipsEndpoint:(0,n.normalizeProvider)(s??!1)});let d;return u.serviceConfiguredEndpoint=async()=>(t.serviceId&&!d&&(d=e(t.serviceId)),d),u}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{normalizeProvider:()=>n});const n=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BinaryDecisionDiagram:()=>n});
1class n{nodes;root;conditions;results;constructor(e,t,r,n){this.nodes=e,this.root=t,this.conditions=r,this.results=n}static from(e,t,r,i){return new n(e,t,r,i)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EndpointCache:()=>n});class n{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){const r=this.hash(e);if(!1===r)return t();if(!this.data.has(r)){if(this.data.size>this.capacity+10){const e=this.data.keys();let t=0;for(;;){const{value:r,done:n}=e.next();if(this.data.delete(r),n||++t>10)break}}this.data.set(r,t())}return this.data.get(r)}size(){return this.data.size}hash(e){let t="";const{parameters:r}=this;if(0===r.length)return!1;for(const n of r){const r=String(e[n]??"");if(r.includes("|;"))return!1;t+=r+"|;"}return t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{decideEndpoint:()=>u});var n=r(139),i=r(140),o=r(143),a=r(163),s=r(164),c=r(165);const l=1e8,u=(e,t)=>{const{nodes:r,root:u,results:d,conditions:p}=e;let f=u;const h={},m={referenceRecord:h,endpointParams:t.endpointParams,logger:t.logger};for(;1!==f&&-1!==f&&f<l;){const e=3*(Math.abs(f)-1),[t,n,o]=[r[e],r[e+1],r[e+2]],[a,s,c]=p[t],l=(0,i.evaluateCondition)({fn:a,assign:c,argv:s},m);if(l.toAssign){const{name:e,value:t}=l.toAssign;h[e]=t}f=f>=0===l.result?n:o}if(f>=l){const e=d[f-l];if(-1===e[0]){const[,t]=e;throw new n.EndpointError((0,o.evaluateExpression)(t,"Error",m))}const[t,r,i]=e;return{url:(0,c.getEndpointUrl)(t,m),properties:(0,s.getEndpointProperties)(r,m),headers:(0,a.getEndpointHeaders)(i??{},m)}}throw new n.EndpointError("No matching endpoint.")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EndpointError:()=>n});class n extends Error{constructor(e){super(e),this.name="EndpointError"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{evaluateCondition:()=>s});var n=r(141),i=r(142),o=r(139),a=r(143);const s=(e,t)=>{const{assign:r}=e;if(r&&r in t.referenceRecord)throw new o.EndpointError(`'${r}' is already defined in Reference Record.`);const s=(0,a.callFunction)(e,t);t.logger?.debug?.(`${n.debugId} evaluateCondition: ${(0,i.toDebugString)(e)} = ${(0,i.toDebugString)(s)}`);const c=""===s||!!s;return null!=r?{result:c,toAssign:{name:r,value:s}}:{result:c}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{debugId:()=>n});const n="endpoints"},(e,t,r)=>{"use strict";function n(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${n(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(n).join(", ")})`:JSON.stringify(e,null,2)}r.r(t),r.d(t,{toDebugString:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{callFunction:()=>l,evaluateExpression:()=>c,group:()=>u});var n=r(139),i=r(144),o=r(145),a=r(161),s=r(162);const c=(e,t,r)=>{if("string"==typeof e)return(0,a.evaluateTemplate)(e,r);if(e.fn)return u.callFunction(e,r);if(e.ref)return(0,s.getReferenceValue)(e,r);throw new n.EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)},l=({fn:e,argv:t},r)=>{const n=Array(t.length);for(let e=0;e<n.length;++e){const i=t[e];n[e]="boolean"==typeof i||"number"==typeof i?i:u.evaluateExpression(i,"arg",r)}const a=e.indexOf(".");if(-1!==a){const t=i.customEndpointFunctions[e.slice(0,a)],r=t?.[e.slice(a+1)];if("function"==typeof r)return r(...n)}const s=o.endpointFunctions[e];if("function"==typeof s)return s(...n);throw new Error(`function ${e} not loaded in endpointFunctions.`)},u={evaluateExpression:c,callFunction:l}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{customEndpointFunctions:()=>n});const n={}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{endpointFunctions:()=>m});var n=r(146),i=r(147),o=r(148),a=r(150),s=r(151),c=r(152),l=r(153),u=r(154),d=r(157),p=r(158),f=r(159),h=r(160);const m={booleanEquals:n.booleanEquals,coalesce:i.coalesce,getAttr:o.getAttr,isSet:a.isSet,isValidHostLabel:s.isValidHostLabel,ite:c.ite,not:l.not,parseURL:u.parseURL,split:d.split,stringEquals:p.stringEquals,substring:f.substring,uriEncode:h.uriEncode}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{booleanEquals:()=>n});const n=(e,t)=>e===t},(e,t,r)=>{"use strict";function n(...e){for(const t of e)if(null!=t)return t}r.r(t),r.d(t,{coalesce:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAttr:()=>o});var n=r(139),i=r(149);const o=(e,t)=>(0,i.getAttrPathList)(t).reduce((r,i)=>{if("object"!=typeof r)throw new n.EndpointError(`Index '${i}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(r)){const e=parseInt(i);return r[e<0?r.length+e:e]}return r[i]},e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAttrPathList:()=>i});var n=r(139);const i=e=>{const t=e.split("."),r=[];for(const i of t){const t=i.indexOf("[");if(-1!==t){if(i.indexOf("]")!==i.length-1)throw new n.EndpointError(`Path: '${e}' does not end with ']'`);const o=i.slice(t+1,-1);if(Number.isNaN(parseInt(o)))throw new n.EndpointError(`Invalid array index: '${o}' in path: '${e}'`);0!==t&&r.push(i.slice(0,t)),r.push(o)}else r.push(i)}return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isSet:()=>n});const n=e=>null!=e},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isValidHostLabel:()=>i});const n=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),i=(e,t=!1)=>
1{if(!t)return n.test(e);const r=e.split(".");for(const e of r)if(!i(e))return!1;return!0}},(e,t,r)=>{"use strict";function n(e,t,r){return e?t:r}r.r(t),r.d(t,{ite:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{not:()=>n});const n=e=>!e},(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseURL:()=>a});var n=r(155),i=r(156);const o={[n.EndpointURLScheme.HTTP]:80,[n.EndpointURLScheme.HTTPS]:443},a=e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){const{hostname:t,port:r,protocol:n="",path:i="",query:o={}}=e,a=new URL(`${n}//${t}${r?`:${r}`:""}${i}`);return a.search=Object.entries(o).map(([e,t])=>`${e}=${t}`).join("&"),a}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const r=t.href,{host:a,hostname:s,pathname:c,protocol:l,search:u}=t;if(u)return null;const d=l.slice(0,-1);if(!Object.values(n.EndpointURLScheme).includes(d))return null;const p=(0,i.isIpAddress)(s);return{scheme:d,authority:`${a}${r.includes(`${a}:${o[d]}`)||"string"==typeof e&&e.includes(`${a}:${o[d]}`)?`:${o[d]}`:""}`,path:c,normalizedPath:c.endsWith("/")?c:`${c}/`,isIp:p}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{EndpointURLScheme:()=>n}),function(e){e.HTTP="http",e.HTTPS="https"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isIpAddress:()=>i});const n=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),i=e=>n.test(e)||e.startsWith("[")&&e.endsWith("]")},(e,t,r)=>{"use strict";function n(e,t,r){if(1===r)return[e];if(""===e)return[""];const n=e.split(t);return 0===r?n:n.slice(0,r-1).concat(n.slice(1).join(t))}r.r(t),r.d(t,{split:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{stringEquals:()=>n});const n=(e,t)=>e===t},(e,t,r)=>{"use strict";r.r(t),r.d(t,{substring:()=>n});const n=(e,t,r,n)=>null==e||t>=r||e.length<r||/[^\u0000-\u007f]/.test(e)?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{uriEncode:()=>n});const n=e=>encodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{evaluateTemplate:()=>i});var n=r(148);const i=(e,t)=>{const r=[],{referenceRecord:i,endpointParams:o}=t;let a=0;for(;a<e.length;){const t=e.indexOf("{",a);if(-1===t){r.push(e.slice(a));break}r.push(e.slice(a,t));const s=e.indexOf("}",t);if(-1===s){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[s+1]&&(r.push(e.slice(t+1,s)),a=s+2);const c=e.substring(t+1,s);if(c.includes("#")){const[e,t]=c.split("#");r.push((0,n.getAttr)(i[e]??o[e],t))}else r.push(i[c]??o[c]);a=s+1}return r.join("")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getReferenceValue:()=>n});const n=({ref:e},t)=>t.referenceRecord[e]??t.endpointParams[e]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEndpointHeaders:()=>o});var n=r(139),i=r(143);const o=(e,t)=>Object.entries(e??{}).reduce((e,[r,o])=>(e[r]=o.map(e=>{const o=(0,i.evaluateExpression)(e,"Header value entry",t);if("string"!=typeof o)throw new n.EndpointError(`Header '${r}' value '${o}' is not a string`);return o}),e),{})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEndpointProperties:()=>o,getEndpointProperty:()=>a,group:()=>s});var n=r(139),i=r(161);const o=(e,t)=>Object.entries(e).reduce((e,[r,n])=>(e[r]=s.getEndpointProperty(n,t),e),{}),a=(e,t)=>{if(Array.isArray(e))return e.map(e=>a(e,t));switch(typeof e){case"string":return(0,i.evaluateTemplate)(e,t);case"object":if(null===e)throw new n.EndpointError(`Unexpected endpoint property: ${e}`);return s.getEndpointProperties(e,t);case"boolean":return e;default:throw new n.EndpointError("Unexpected endpoint property type: "+typeof e)}},s={getEndpointProperty:a,getEndpointProperties:o}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEndpointUrl:()=>o});var n=r(139),i=r(143);const o=(e,t)=>{const r=(0,i.evaluateExpression)(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(e){throw console.error(`Failed to construct URL with ${r}`,e),e}throw new n.EndpointError("Endpoint URL must be a string, got "+typeof r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resolveEndpoint:()=>s});var n=r(141),i=r(142),o=r(139),a=r(167);const s=(e,t)=>{const{endpointParams:r,logger:s}
1=t,{parameters:c,rules:l}=e;t.logger?.debug?.(`${n.debugId} Initial EndpointParams: ${(0,i.toDebugString)(r)}`);for(const e in c){const t=c[e],n=r[e];if(null!=n||null==t.default){if(t.required&&null==n)throw new o.EndpointError(`Missing required parameter: '${e}'`)}else r[e]=t.default}const u=(0,a.evaluateRules)(l,{endpointParams:r,logger:s,referenceRecord:{}});return t.logger?.debug?.(`${n.debugId} Resolved endpoint: ${(0,i.toDebugString)(u)}`),u}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{evaluateRules:()=>s,evaluateTreeRule:()=>c,group:()=>l});var n=r(139),i=r(168),o=r(169),a=r(170);const s=(e,t)=>{for(const r of e)if("endpoint"===r.type){const e=(0,o.evaluateEndpointRule)(r,t);if(e)return e}else if("error"===r.type)(0,a.evaluateErrorRule)(r,t);else{if("tree"!==r.type)throw new n.EndpointError(`Unknown endpoint rule: ${r}`);{const e=l.evaluateTreeRule(r,t);if(e)return e}}throw new n.EndpointError("Rules evaluation failed")},c=(e,t)=>{const{conditions:r,rules:n}=e,{result:o,referenceRecord:a}=(0,i.evaluateConditions)(r,t);if(!o)return;const s=a?{...t,referenceRecord:{...t.referenceRecord,...a}}:t;return l.evaluateRules(n,s)},l={evaluateRules:s,evaluateTreeRule:c}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{evaluateConditions:()=>a});var n=r(141),i=r(142),o=r(140);const a=(e=[],t)=>{const r={},a={...t,referenceRecord:{...t.referenceRecord}};let s=!1;for(const c of e){const{result:e,toAssign:l}=(0,o.evaluateCondition)(c,a);if(!e)return{result:e};l&&(s=!0,r[l.name]=l.value,a.referenceRecord[l.name]=l.value,t.logger?.debug?.(`${n.debugId} assign: ${l.name} := ${(0,i.toDebugString)(l.value)}`))}return s?{result:!0,referenceRecord:r}:{result:!0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{evaluateEndpointRule:()=>l});var n=r(141),i=r(142),o=r(168),a=r(163),s=r(164),c=r(165);const l=(e,t)=>{const{conditions:r,endpoint:l}=e,{result:u,referenceRecord:d}=(0,o.evaluateConditions)(r,t);if(!u)return;const p=d?{...t,referenceRecord:{...t.referenceRecord,...d}}:t,{url:f,properties:h,headers:m}=l;t.logger?.debug?.(`${n.debugId} Resolving endpoint from template: ${(0,i.toDebugString)(l)}`);const g={url:(0,c.getEndpointUrl)(f,p)};return null!=m&&(g.headers=(0,a.getEndpointHeaders)(m,p)),null!=h&&(g.properties=(0,s.getEndpointProperties)(h,p)),g}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{evaluateErrorRule:()=>a});var n=r(139),i=r(168),o=r(143);const a=(e,t)=>{const{conditions:r,error:a}=e,{result:s,referenceRecord:c}=(0,i.evaluateConditions)(r,t);if(!s)return;const l=c?{...t,referenceRecord:{...t.referenceRecord,...c}}:t;throw new n.EndpointError((0,o.evaluateExpression)(a,"Error",l))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EndpointError:()=>n.EndpointError});var n=r(139)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resolveEndpointRequiredConfig:()=>n});const n=e=>{const{endpoint:t}=e;return void 0===t&&(e.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}),e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{commonParams:()=>i,resolveClientEndpointParameters:()=>n});const n=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"firehose"}),i={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AmazonOpenSearchServerlessBufferingHints$:()=>Mr,AmazonOpenSearchServerlessDestinationConfiguration$:()=>Dr,AmazonOpenSearchServerlessDestinationDescription$:()=>Nr,AmazonOpenSearchServerlessDestinationUpdate$:()=>Lr,AmazonOpenSearchServerlessRetryOptions$:()=>Fr,AmazonopensearchserviceBufferingHints$:()=>Br,AmazonopensearchserviceDestinationConfiguration$:()=>jr,AmazonopensearchserviceDestinationDescription$:()=>Ur,AmazonopensearchserviceDestinationUpdate$:()=>Hr,AmazonopensearchserviceRetryOptions$:()=>zr,AuthenticationConfiguration$:()=>Vr,BufferingHints$:()=>Gr,CatalogConfiguration$:()=>$r,CloudWatchLoggingOptions$:()=>qr,ConcurrentModificationException$:()=>sr,CopyCommand$:()=>Wr,CreateDeliveryStream$:()=>uo,CreateDeliveryStreamInput$:()=>Kr,CreateDeliveryStreamOutput$:()=>Yr,DataFormatConversionConfiguration$:()=>on,DatabaseColumnList$:()=>Jr,DatabaseList$:()=>Qr,DatabaseSnapshotInfo$:()=>Xr,DatabaseSourceAuthenticationConfiguration$:()=>Zr,DatabaseSourceConfiguration$:()=>en,DatabaseSourceDescription$:()=>tn,DatabaseSourceVPCConfiguration$:()=>rn,DatabaseTableList$:()=>nn,DeleteDeliveryStream$:()=>po,DeleteDeliveryStreamInput$:()=>an,DeleteDeliveryStreamOutput$:()=>sn,DeliveryStreamDescription$:()=>cn,DeliveryStreamEncryptionConfiguration$:()=>ln,DeliveryStreamEncryptionConfigurationInput$:()=>un,DescribeDeliveryStream$:()=>fo,DescribeDeliveryStreamInput$:()=>dn,DescribeDeliveryStreamOutput$:()=>pn,Deserializer$:()=>fn,DestinationDescription$:()=>hn,DestinationTableConfiguration$:()=>mn,DirectPutSourceConfiguration$:()=>gn,DirectPutSourceDescription$:()=>yn,DocumentIdOptions$:()=>vn,DynamicPartitioningConfiguration$:()=>bn,ElasticsearchBufferingHints$:()=>_n,ElasticsearchDestinationConfiguration$:()=>Sn,ElasticsearchDestinationDescription$:()=>En,ElasticsearchDestinationUpdate$:()=>wn,ElasticsearchRetryOptions$:()=>Tn,EncryptionConfiguration$:()=>xn,ExtendedS3DestinationConfiguration$:()=>On,ExtendedS3DestinationDescription$:()=>An,ExtendedS3DestinationUpdate$:()=>Rn,FailureDescription$:()=>Pn,FirehoseServiceException$:()=>or,HiveJsonSerDe$:()=>In,HttpEndpointBufferingHints$:()=>Cn,HttpEndpointCommonAttribute$:()=>kn,HttpEndpointConfiguration$:()=>Mn,HttpEndpointDescription$:()=>Dn,HttpEndpointDestinationConfiguration$:()=>Nn,HttpEndpointDestinationDescription$:()=>Ln,HttpEndpointDestinationUpdate$:()=>Fn,HttpEndpointRequestConfiguration$:()=>Bn,HttpEndpointRetryOptions$:()=>jn,IcebergDestinationConfiguration$:()=>Un,IcebergDestinationDescription$:()=>Hn,IcebergDestinationUpdate$:()=>zn,InputFormatConfiguration$:()=>Vn,InvalidArgumentException$:()=>cr,InvalidKMSResourceException$:()=>lr,InvalidSourceException$:()=>ur,KMSEncryptionConfig$:()=>qn,KinesisStreamSourceConfiguration$:()=>Gn,KinesisStreamSourceDescription$:()=>$n,LimitExceededException$:()=>dr,ListDeliveryStreams$:()=>ho,ListDeliveryStreamsInput$:()=>Wn,ListDeliveryStreamsOutput$:()=>Kn,ListTagsForDeliveryStream$:()=>mo,ListTagsForDeliveryStreamInput$:()=>Yn,ListTagsForDeliveryStreamOutput$:()=>Jn,MSKSourceConfiguration$:()=>Qn,MSKSourceDescription$:()=>Xn,OpenXJsonSerDe$:()=>Zn,OrcSerDe$:()=>ei,OutputFormatConfiguration$:()=>ti,ParquetSerDe$:()=>ri,PartitionField$:()=>ni,PartitionSpec$:()=>ii,ProcessingConfiguration$:()=>oi,Processor$:()=>ai,ProcessorParameter$:()=>si,PutRecord$:()=>go,PutRecordBatch$:()=>yo,PutRecordBatchInput$:()=>ci,PutRecordBatchOutput$:()=>li,PutRecordBatchResponseEntry$:()=>ui,PutRecordInput$:()=>di,PutRecordOutput$:()=>pi,RedshiftDestinationConfiguration$:()=>hi,RedshiftDestinationDescription$:()=>mi,RedshiftDestinationUpdate$:()=>gi,RedshiftRetryOptions$:()=>yi,ResourceInUseException$:()=>pr,ResourceNotFoundException$:()=>fr,RetryOptions$:()=>vi,S3DestinationConfiguration$:()=>bi,S3DestinationDescription$:()=>_i,S3DestinationUpdate$:()=>Si,SchemaConfiguration$:()=>Ei,SchemaEvolutionConfiguration$:()=>wi,SecretsManagerConfiguration$:()=>Ti,Serializer$:()=>xi,ServiceUnavailableException$:()=>hr,SnowflakeBufferingHints$:()=>Oi,SnowflakeDestinationConfiguration$:()=>Ai,SnowflakeDestinationDescription$:()=>Ri,SnowflakeDestinationUpdate$:()=>Pi,SnowflakeRetryOptions$:()=>Ii,SnowflakeRoleConfiguration$:()=>Ci,SnowflakeVpcConfiguration$:()=>ki,SourceDescription$:()=>Mi,SplunkBufferingHints$:()=>Di,SplunkDestinationConfiguration$:()=>Ni,SplunkDestinationDescription$:()=>Li,SplunkDestinationUpdate$:()=>Fi,SplunkRetryOptions$:()=>Bi,StartDeliveryStreamEncryption$:()=>vo,StartDeliveryStreamEncryptionInput$:()=>ji,StartDeliveryStreamEncryptionOutput$:()=>Ui,StopDeliveryStreamEncryption$:()=>bo,StopDeliveryStreamEncryptionInput$:()=>Hi,StopDeliveryStreamEncryptionOutput$:()=>zi,TableCreationConfiguration$:()=>Vi,Tag$:()=>Gi,TagDeliveryStream$:()=>_o,TagDeliveryStreamInput$:()=>$i,TagDeliveryStreamOutput$:()=>qi,UntagDeliveryStream$:()=>So,UntagDeliveryStreamInput$:()=>Wi,UntagDeliveryStreamOutput$:()=>Ki,UpdateDestination$:()=>Eo,UpdateDestinationInput$:()=>Yi,UpdateDestinationOutput$:()=>Ji,VpcConfiguration$:()=>Qi,VpcConfigurationDescription$:()=>Xi,_Record$:()=>fi,errorTypeRegistries:()=>mr});var n=r(175),i=r(176),o=r(177);const a="AuthenticationConfiguration",s="AmazonopensearchserviceDestinationConfiguration",c="AmazonopensearchserviceDestinationDescription",l="AmazonopensearchserviceDestinationUpdate",u="AppendOnl
1y",d="AmazonOpenSearchServerlessDestinationConfiguration",p="AmazonOpenSearchServerlessDestinationDescription",f="AmazonOpenSearchServerlessDestinationUpdate",h="AccountUrl",m="BucketARN",g="BufferingHints",y="BlockSizeBytes",v="CatalogConfiguration",b="ContentColumnName",_="CopyCommand",S="CollectionEndpoint",E="ClusterEndpoint",w="CompressionFormat",T="ClusterJDBCURL",x="CustomTimeZone",O="CloudWatchLoggingOptions",A="Columns",R="Compression",P="Databases",I="DomainARN",C="DataFormatConversionConfiguration",k="DestinationId",M="DocumentIdOptions",D="DurationInSeconds",N="DataLoadingOption",L="DynamicPartitioningConfiguration",F="DirectPutSourceConfiguration",B="DirectPutSourceDescription",j="DatabaseSourceAuthenticationConfiguration",U="DeliveryStreamARN",H="DatabaseSourceConfiguration",z="DatabaseSourceDescription",V="DeliveryStreamDescription",G="DeliveryStreamEncryptionConfiguration",$="DeliveryStreamEncryptionConfigurationInput",q="DeliveryStreamName",W="DeliveryStreamType",K="DeliveryStartTimestamp",Y="DatabaseSourceVPCConfiguration",J="DestinationTableConfigurationList",Q="Database",X="Deserializer",Z="Enabled",ee="EncryptionConfiguration",te="EndpointConfiguration",re="ElasticsearchDestinationConfiguration",ne="ElasticsearchDestinationDescription",ie="ElasticsearchDestinationUpdate",oe="ErrorOutputPrefix",ae="ExtendedS3DestinationConfiguration",se="ExtendedS3DestinationDescription",ce="ExtendedS3DestinationUpdate",le="Endpoint",ue="Encrypted",de="Exclude",pe="FailureDescription",fe="FileExtension",he="HECAcknowledgmentTimeoutInSeconds",me="HECEndpoint",ge="HECEndpointType",ye="HECToken",ve="HttpEndpointDestinationConfiguration",be="HttpEndpointDestinationDescription",_e="HttpEndpointDestinationUpdate",Se="HiveJsonSerDe",Ee="Include",we="IcebergDestinationConfiguration",Te="IcebergDestinationDescription",xe="IcebergDestinationUpdate",Oe="InputFormatConfiguration",Ae="IntervalInSeconds",Re="IndexName",Pe="IndexRotationPeriod",Ie="KeyARN",Ce="KMSEncryptionConfig",ke="KeyPassphrase",Me="KinesisStreamARN",De="KinesisStreamSourceConfiguration",Ne="KinesisStreamSourceDescription",Le="KeyType",Fe="Limit",Be="MetaDataColumnName",je="MSKClusterARN",Ue="MSKSourceConfiguration",He="MSKSourceDescription",ze="Name",Ve="OutputFormatConfiguration",Ge="OrcSerDe",$e="OpenXJsonSerDe",qe="Password",We="ProcessingConfiguration",Ke="PrivateKey",Ye="PartitionSpec",Je="ParquetSerDe",Qe="Port",Xe="Prefix",Ze="RoleARN",et="RequestConfiguration",tt="RedshiftDestinationConfiguration",rt="RedshiftDestinationDescription",nt="RedshiftDestinationUpdate",it="ReadFromTimestamp",ot="RecordId",at="RetryOptions",st="Record",ct="Status",lt="S3BackupConfiguration",ut="S3BackupDescription",dt="S3BackupMode",pt="S3BackupUpdate",ft="S3Configuration",ht="SchemaConfiguration",mt="S3DestinationConfiguration",gt="SnowflakeDestinationConfiguration",yt="SplunkDestinationConfiguration",vt="S3DestinationDescription",bt="SnowflakeDestinationDescription",_t="SplunkDestinationDescription",St="S3DestinationUpdate",Et="SnowflakeDestinationUpdate",wt="SplunkDestinationUpdate",Tt="SchemaEvolutionConfiguration",xt="SecurityGroupIds",Ot="SizeInMBs",At="SubnetIds",Rt="SurrogateKeys",Pt="SecretsManagerConfiguration",It="SnowflakeRole",Ct="SnowflakeRoleConfiguration",kt="SSLMode",Mt="S3Update",Dt="SnowflakeVpcConfiguration",Nt="SnapshotWatermarkTable",Lt="Schema",Ft="Serializer",Bt="Tags",jt="TableCreationConfiguration",Ut="ThroughputHintInMBs",Ht="TypeName",zt="TopicName",Vt="Table",Gt="Tables",$t="Type",qt="Username",Wt="User",Kt="VpcConfiguration",Yt="VpcConfigurationDescription",Jt="VersionId",Qt="client",Xt="code",Zt="error",er="httpError",tr="message",rr="smithy.ts.sdk.synthetic.com.amazonaws.firehose",nr="com.amazonaws.firehose",ir=n.TypeRegistry.for(rr);var or=[-3,rr,"FirehoseServiceException",0,[],[]];ir.registerError(or,o.FirehoseServiceException);const ar=n.TypeRegistry.for(nr);var sr=[-3,nr,"ConcurrentModificationException",{[Zt]:Qt},[tr],[0]];ar.registerError(sr,i.ConcurrentModificationException);var cr=[-3,nr,"InvalidArgumentException",{[Zt]:Qt},[tr],[0]];ar.registerError(cr,i.InvalidArgumentException);var lr=[-3,nr,"InvalidKMSResourceException",{[Zt]:Qt},[Xt,tr],[0,0]];ar.registerError(lr,i.InvalidKMSResourceException);var ur=[-3,nr,"InvalidSourceException",{[Zt]:Qt},[Xt,tr],[0,0]];ar.registerError(ur,i.InvalidSourceException);
1var dr=[-3,nr,"LimitExceededException",{[Zt]:Qt},[tr],[0]];ar.registerError(dr,i.LimitExceededException);var pr=[-3,nr,"ResourceInUseException",{[Zt]:Qt},[tr],[0]];ar.registerError(pr,i.ResourceInUseException);var fr=[-3,nr,"ResourceNotFoundException",{[Zt]:Qt},[tr],[0]];ar.registerError(fr,i.ResourceNotFoundException);var hr=[-3,nr,"ServiceUnavailableException",{[Zt]:"server",[er]:503},[tr],[0]];ar.registerError(hr,i.ServiceUnavailableException);const mr=[ir,ar];var gr=[0,nr,"HttpEndpointAccessKey",8,0],yr=[0,nr,"HttpEndpointAttributeName",8,0],vr=[0,nr,"HttpEndpointAttributeValue",8,0],br=[0,nr,"HttpEndpointUrl",8,0],_r=[0,nr,qe,8,0],Sr=[0,nr,"SnowflakeAccountUrl",8,0],Er=[0,nr,"SnowflakeContentColumnName",8,0],wr=[0,nr,"SnowflakeDatabase",8,0],Tr=[0,nr,"SnowflakeKeyPassphrase",8,0],xr=[0,nr,"SnowflakeMetaDataColumnName",8,0],Or=[0,nr,"SnowflakePrivateKey",8,0],Ar=[0,nr,"SnowflakePrivateLinkVpceId",8,0],Rr=[0,nr,It,8,0],Pr=[0,nr,"SnowflakeSchema",8,0],Ir=[0,nr,"SnowflakeTable",8,0],Cr=[0,nr,"SnowflakeUser",8,0],kr=[0,nr,qt,8,0],Mr=[3,nr,"AmazonOpenSearchServerlessBufferingHints",0,[Ae,Ot],[1,1]],Dr=[3,nr,d,0,[Ze,Re,ft,S,g,at,dt,We,O,Kt],[0,0,()=>bi,0,()=>Mr,()=>Fr,0,()=>oi,()=>qr,()=>Qi],3],Nr=[3,nr,p,0,[Ze,S,Re,g,at,dt,vt,We,O,Yt],[0,0,0,()=>Mr,()=>Fr,0,()=>_i,()=>oi,()=>qr,()=>Xi]],Lr=[3,nr,f,0,[Ze,S,Re,g,at,Mt,We,O],[0,0,0,()=>Mr,()=>Fr,()=>Si,()=>oi,()=>qr]],Fr=[3,nr,"AmazonOpenSearchServerlessRetryOptions",0,[D],[1]],Br=[3,nr,"AmazonopensearchserviceBufferingHints",0,[Ae,Ot],[1,1]],jr=[3,nr,s,0,[Ze,Re,ft,I,E,Ht,Pe,g,at,dt,We,O,Kt,M],[0,0,()=>bi,0,0,0,0,()=>Br,()=>zr,0,()=>oi,()=>qr,()=>Qi,()=>vn],3],Ur=[3,nr,c,0,[Ze,I,E,Re,Ht,Pe,g,at,dt,vt,We,O,Yt,M],[0,0,0,0,0,0,()=>Br,()=>zr,0,()=>_i,()=>oi,()=>qr,()=>Xi,()=>vn]],Hr=[3,nr,l,0,[Ze,I,E,Re,Ht,Pe,g,at,Mt,We,O,M],[0,0,0,0,0,0,()=>Br,()=>zr,()=>Si,()=>oi,()=>qr,()=>vn]],zr=[3,nr,"AmazonopensearchserviceRetryOptions",0,[D],[1]],Vr=[3,nr,a,0,[Ze,"Connectivity"],[0,0],2],Gr=[3,nr,g,0,[Ot,Ae],[1,1]],$r=[3,nr,v,0,["CatalogARN","WarehouseLocation"],[0,0]],qr=[3,nr,O,0,[Z,"LogGroupName","LogStreamName"],[2,0,0]],Wr=[3,nr,_,0,["DataTableName","DataTableColumns","CopyOptions"],[0,0,0],1],Kr=[3,nr,"CreateDeliveryStreamInput",0,[q,W,F,De,$,mt,ae,tt,re,s,yt,ve,Bt,d,Ue,gt,we,H],[0,0,()=>gn,()=>Gn,()=>un,()=>bi,()=>On,[()=>hi,0],()=>Sn,()=>jr,()=>Ni,[()=>Nn,0],()=>lo,()=>Dr,()=>Qn,[()=>Ai,0],()=>Un,()=>en],1],Yr=[3,nr,"CreateDeliveryStreamOutput",0,[U],[0]],Jr=[3,nr,"DatabaseColumnList",0,[Ee,de],[64,64]],Qr=[3,nr,"DatabaseList",0,[Ee,de],[64,64]],Xr=[3,nr,"DatabaseSnapshotInfo",0,["Id",Vt,"RequestTimestamp","RequestedBy",ct,pe],[0,0,4,0,0,()=>Pn],5],Zr=[3,nr,j,0,[Pt],[()=>Ti],1],en=[3,nr,H,0,[$t,le,Qe,P,Gt,Nt,j,Y,kt,A,Rt],[0,0,1,()=>Qr,()=>nn,0,()=>Zr,()=>rn,0,()=>Jr,64],8],tn=[3,nr,z,0,[$t,le,Qe,kt,P,Gt,A,Rt,Nt,"SnapshotInfo",j,Y],[0,0,1,0,()=>Qr,()=>nn,()=>Jr,64,0,()=>Zi,()=>Zr,()=>rn]],rn=[3,nr,Y,0,["VpcEndpointServiceName"],[0],1],nn=[3,nr,"DatabaseTableList",0,[Ee,de],[64,64]],on=[3,nr,C,0,[ht,Oe,Ve,Z],[()=>Ei,()=>Vn,()=>ti,2]],an=[3,nr,"DeleteDeliveryStreamInput",0,[q,"AllowForceDelete"],[0,2],1],sn=[3,nr,"DeleteDeliveryStreamOutput",0,[],[]],cn=[3,nr,V,0,[q,U,"DeliveryStreamStatus",W,Jt,"Destinations","HasMoreDestinations",pe,G,"CreateTimestamp","LastUpdateTimestamp","Source"],[0,0,0,0,0,[()=>eo,0],2,()=>Pn,()=>ln,4,4,()=>Mi],7],ln=[3,nr,G,0,[Ie,Le,ct,pe],[0,0,0,()=>Pn]],un=[3,nr,$,0,[Le,Ie],[0,0],1],dn=[3,nr,"DescribeDeliveryStreamInput",0,[q,Fe,"ExclusiveStartDestinationId"],[0,1,0],1],pn=[3,nr,"DescribeDeliveryStreamOutput",0,[V],[[()=>cn,0]],1],fn=[3,nr,X,0,[$e,Se],[()=>Zn,()=>In]],hn=[3,nr,"DestinationDescription",0,[k,vt,se,rt,ne,c,_t,be,bt,p,Te],[0,()=>_i,()=>An,[()=>mi,0],()=>En,()=>Ur,()=>Li,[()=>Ln,0],[()=>Ri,0],()=>Nr,()=>Hn],1],mn=[3,nr,"DestinationTableConfiguration",0,["DestinationTableName","DestinationDatabaseName","UniqueKeys",Ye,"S3ErrorOutputPrefix"],[0,0,64,()=>ii,0],2],gn=[3,nr,F,0,[Ut],[1],1],yn=[3,nr,B,0,[Ut],[1]],vn=[3,nr,M,0,["DefaultDocumentIdFormat"],[0],1],bn=[3,nr,L,0,[at,Z],[()=>vi,2]],_n=[3,nr,"ElasticsearchBufferingHints",0,[Ae,Ot],[1,1]],Sn=[3,nr,re,0,[Ze,Re,ft,I,E,Ht,Pe,g,at,dt,We,O,Kt,M],[0,0,()=>bi,0,0,0,0,()=>_n,()=>Tn,0,()=>oi,()=>qr,()=>Qi,()=>vn],3],En=[3,nr,ne,0,[Ze,I,E,Re,Ht,Pe,g,at,dt,vt,We,O,Yt,M],[0,0,0,0,0,0,()=>_n,()=>Tn,0,()=>_i,()=>oi,()=>qr,()=>Xi,()=>vn]],wn=[3,nr,ie,0,[Ze,I,E,Re,Ht,Pe,g,at,Mt,We,O,M],[0,0,0,0,0,0,()=>_n,()=>Tn,()=>Si,()=>oi,()=>qr,()=>vn]],Tn=[3,nr,"ElasticsearchRetryOptions",0,[D],[1]],xn=[3,nr,ee,0,["NoEncryptionConfig",Ce],[0,()=>qn]],On=[3,nr,ae,0,[Ze,m,Xe,oe,g,w,ee,O,We,dt,lt,C,L,fe,x],[0,0,0,0,()=>Gr,0,()=>xn,()=>qr,()=>oi,0,()=>bi,()=>on,()=>bn,0,0],2],An=[3,nr,se,0,[Ze,m,g,w,ee,Xe,oe,O,We,dt,ut,C,L,fe,x],[0,0,()=>Gr,0,()=>xn,0,0,()=>qr,()=>oi,0,()=>_i,()=>on,()=>bn,0,0],5],Rn=[3,nr,ce,0,[Ze,m,Xe,oe,g,w,ee,O,We,dt,pt,C,L,fe,x],[0,0,0,0,()=>Gr,0,()=>xn,()=>qr,()=>oi,0,()=>Si,()=>on,()=>bn,0,0]],Pn=[3,nr,pe,0,[$t,"Details"],[0,0],2],In=[3,nr,Se,0,["TimestampFormats"],[64]],
1Cn=[3,nr,"HttpEndpointBufferingHints",0,[Ot,Ae],[1,1]],kn=[3,nr,"HttpEndpointCommonAttribute",0,["AttributeName","AttributeValue"],[[()=>yr,0],[()=>vr,0]],2],Mn=[3,nr,"HttpEndpointConfiguration",0,["Url",ze,"AccessKey"],[[()=>br,0],0,[()=>gr,0]],1],Dn=[3,nr,"HttpEndpointDescription",0,["Url",ze],[[()=>br,0],0]],Nn=[3,nr,ve,0,[te,ft,g,O,et,We,Ze,at,dt,Pt],[[()=>Mn,0],()=>bi,()=>Cn,()=>qr,[()=>Bn,0],()=>oi,0,()=>jn,0,()=>Ti],2],Ln=[3,nr,be,0,[te,g,O,et,We,Ze,at,dt,vt,Pt],[[()=>Dn,0],()=>Cn,()=>qr,[()=>Bn,0],()=>oi,0,()=>jn,0,()=>_i,()=>Ti]],Fn=[3,nr,_e,0,[te,g,O,et,We,Ze,at,dt,Mt,Pt],[[()=>Mn,0],()=>Cn,()=>qr,[()=>Bn,0],()=>oi,0,()=>jn,0,()=>Si,()=>Ti]],Bn=[3,nr,"HttpEndpointRequestConfiguration",0,["ContentEncoding","CommonAttributes"],[0,[()=>ro,0]]],jn=[3,nr,"HttpEndpointRetryOptions",0,[D],[1]],Un=[3,nr,we,0,[Ze,v,ft,J,Tt,jt,g,O,We,dt,at,u],[0,()=>$r,()=>bi,()=>to,()=>wi,()=>Vi,()=>Gr,()=>qr,()=>oi,0,()=>vi,2],3],Hn=[3,nr,Te,0,[J,Tt,jt,g,O,We,dt,at,Ze,u,v,vt],[()=>to,()=>wi,()=>Vi,()=>Gr,()=>qr,()=>oi,0,()=>vi,0,2,()=>$r,()=>_i]],zn=[3,nr,xe,0,[J,Tt,jt,g,O,We,dt,at,Ze,u,v,ft],[()=>to,()=>wi,()=>Vi,()=>Gr,()=>qr,()=>oi,0,()=>vi,0,2,()=>$r,()=>bi]],Vn=[3,nr,Oe,0,[X],[()=>fn]],Gn=[3,nr,De,0,[Me,Ze],[0,0],2],$n=[3,nr,Ne,0,[Me,Ze,K],[0,0,4]],qn=[3,nr,Ce,0,["AWSKMSKeyARN"],[0],1],Wn=[3,nr,"ListDeliveryStreamsInput",0,[Fe,W,"ExclusiveStartDeliveryStreamName"],[1,0,0]],Kn=[3,nr,"ListDeliveryStreamsOutput",0,["DeliveryStreamNames","HasMoreDeliveryStreams"],[64,2],2],Yn=[3,nr,"ListTagsForDeliveryStreamInput",0,[q,"ExclusiveStartTagKey",Fe],[0,0,1],1],Jn=[3,nr,"ListTagsForDeliveryStreamOutput",0,[Bt,"HasMoreTags"],[()=>no,2],2],Qn=[3,nr,Ue,0,[je,zt,a,it],[0,0,()=>Vr,4],3],Xn=[3,nr,He,0,[je,zt,a,K,it],[0,0,()=>Vr,4,4]],Zn=[3,nr,$e,0,["ConvertDotsInJsonKeysToUnderscores","CaseInsensitive","ColumnToJsonKeyMappings"],[2,2,128]],ei=[3,nr,Ge,0,["StripeSizeBytes",y,"RowIndexStride","EnablePadding","PaddingTolerance",R,"BloomFilterColumns","BloomFilterFalsePositiveProbability","DictionaryKeyThreshold","FormatVersion"],[1,1,1,2,1,0,64,1,1,0]],ti=[3,nr,Ve,0,[Ft],[()=>xi]],ri=[3,nr,Je,0,[y,"PageSizeBytes",R,"EnableDictionaryCompression","MaxPaddingBytes","WriterVersion"],[1,1,0,2,1,0]],ni=[3,nr,"PartitionField",0,["SourceName"],[0],1],ii=[3,nr,Ye,0,["Identity"],[()=>io]],oi=[3,nr,We,0,[Z,"Processors"],[2,()=>oo]],ai=[3,nr,"Processor",0,[$t,"Parameters"],[0,()=>ao],1],si=[3,nr,"ProcessorParameter",0,["ParameterName","ParameterValue"],[0,0],2],ci=[3,nr,"PutRecordBatchInput",0,[q,"Records"],[0,()=>so],2],li=[3,nr,"PutRecordBatchOutput",0,["FailedPutCount","RequestResponses",ue],[1,()=>co,2],2],ui=[3,nr,"PutRecordBatchResponseEntry",0,[ot,"ErrorCode","ErrorMessage"],[0,0,0]],di=[3,nr,"PutRecordInput",0,[q,st],[0,()=>fi],2],pi=[3,nr,"PutRecordOutput",0,[ot,ue],[0,2],1],fi=[3,nr,st,0,["Data"],[21],1],hi=[3,nr,tt,0,[Ze,T,_,ft,qt,qe,at,We,dt,lt,O,Pt],[0,0,()=>Wr,()=>bi,[()=>kr,0],[()=>_r,0],()=>yi,()=>oi,0,()=>bi,()=>qr,()=>Ti],4],mi=[3,nr,rt,0,[Ze,T,_,vt,qt,at,We,dt,ut,O,Pt],[0,0,()=>Wr,()=>_i,[()=>kr,0],()=>yi,()=>oi,0,()=>_i,()=>qr,()=>Ti],4],gi=[3,nr,nt,0,[Ze,T,_,qt,qe,at,Mt,We,dt,pt,O,Pt],[0,0,()=>Wr,[()=>kr,0],[()=>_r,0],()=>yi,()=>Si,()=>oi,0,()=>Si,()=>qr,()=>Ti]],yi=[3,nr,"RedshiftRetryOptions",0,[D],[1]],vi=[3,nr,at,0,[D],[1]],bi=[3,nr,mt,0,[Ze,m,Xe,oe,g,w,ee,O],[0,0,0,0,()=>Gr,0,()=>xn,()=>qr],2],_i=[3,nr,vt,0,[Ze,m,g,w,ee,Xe,oe,O],[0,0,()=>Gr,0,()=>xn,0,0,()=>qr],5],Si=[3,nr,St,0,[Ze,m,Xe,oe,g,w,ee,O],[0,0,0,0,()=>Gr,0,()=>xn,()=>qr]],Ei=[3,nr,ht,0,[Ze,"CatalogId","DatabaseName","TableName","Region",Jt],[0,0,0,0,0,0]],wi=[3,nr,Tt,0,[Z],[2],1],Ti=[3,nr,Pt,0,[Z,"SecretARN",Ze],[2,0,0],1],xi=[3,nr,Ft,0,[Je,Ge],[()=>ri,()=>ei]],Oi=[3,nr,"SnowflakeBufferingHints",0,[Ot,Ae],[1,1]],Ai=[3,nr,gt,0,[h,Q,Lt,Vt,Ze,ft,Ke,ke,Wt,Ct,N,Be,b,Dt,O,We,at,dt,Pt,g],[[()=>Sr,0],[()=>wr,0],[()=>Pr,0],[()=>Ir,0],0,()=>bi,[()=>Or,0],[()=>Tr,0],[()=>Cr,0],[()=>Ci,0],0,[()=>xr,0],[()=>Er,0],[()=>ki,0],()=>qr,()=>oi,()=>Ii,0,()=>Ti,()=>Oi],6],Ri=[3,nr,bt,0,[h,Wt,Q,Lt,Vt,Ct,N,Be,b,Dt,O,We,Ze,at,dt,vt,Pt,g],[[()=>Sr,0],[()=>Cr,0],[()=>wr,0],[()=>Pr,0],[()=>Ir,0],[()=>Ci,0],0,[()=>xr,0],[()=>Er,0],[()=>ki,0],()=>qr,()=>oi,0,()=>Ii,0,()=>_i,()=>Ti,()=>Oi]],Pi=[3,nr,Et,0,[h,Ke,ke,Wt,Q,Lt,Vt,Ct,N,Be,b,O,We,Ze,at,dt,Mt,Pt,g],[[()=>Sr,0],[()=>Or,0],[()=>Tr,0],[()=>Cr,0],[()=>wr,0],[()=>Pr,0],[()=>Ir,0],[()=>Ci,0],0,[()=>xr,0],[()=>Er,0],()=>qr,()=>oi,0,()=>Ii,0,()=>Si,()=>Ti,()=>Oi]],Ii=[3,nr,"SnowflakeRetryOptions",0,[D],[1]],Ci=[3,nr,Ct,0,[Z,It],[2,[()=>Rr,0]]],ki=[3,nr,Dt,0,["PrivateLinkVpceId"],[[()=>Ar,0]],1],Mi=[3,nr,"SourceDescription",0,[B,Ne,He,z],[()=>yn,()=>$n,()=>Xn,()=>tn]],Di=[3,nr,"SplunkBufferingHints",0,[Ae,Ot],[1,1]],Ni=[3,nr,yt,0,[me,ge,ft,ye,he,at,dt,We,O,g,Pt],[0,0,()=>bi,0,1,()=>Bi,0,()=>oi,()=>qr,()=>Di,()=>Ti],3],Li=[3,nr,_t,0,[me,ge,ye,he,at,dt,vt,We,O,g,Pt],[0,0,0,1,()=>Bi,0,()=>_i,()=>oi,()=>qr,()=>Di,()=>Ti]],Fi=[3,nr,wt,0,[me,ge,ye,he,at,dt,Mt,We,O,g,Pt],[0,0,0,1,()=>Bi,0,()=>Si,()=>oi,()=>qr,()=>Di,()=>Ti]],Bi=[3,nr,"SplunkRetryOptions",0,[D],[1]],ji=[3,nr,"StartDeliveryStreamEncryptionInput",0,[q,$],[0,()=>un],1],Ui=[3,nr,"StartDeliveryStreamEncryptionOutput",0,[],[]],Hi=[3,nr,"StopDeliveryStreamEncryptionInput",0,[q],[0],1],zi=[3,nr,"StopDeliveryStreamEncryptionOutput",0,[],[]],Vi=[3,nr,jt,0,[Z],[2],1],Gi=[3,nr,"Tag",0,["Key","Value"],[0,0],1],$i=[3,nr,"TagDeliveryStreamInput",0,[q,Bt],[0,()=>lo],2],qi=[3,nr,"TagDeliveryStreamOutput",0,[],[]],Wi=[3,nr,"UntagDeliveryStreamInput",0,[q,"TagKeys"],[0,64],2],Ki=[3,nr,"UntagDeliveryStreamOutput",0,[],[]],Yi=[3,nr,"UpdateDestinationInput",0,[q,"CurrentDeliveryStreamVersionId",k,St,ce,nt,ie,l,wt,_e,f,Et,xe],[0,0,0,()=>Si,()=>Rn,[()=>gi,0],()=>wn,()=>Hr,()=>Fi,[()=>Fn,0],()=>Lr,[()=>Pi,0],()=>zn],3],Ji=[3,nr,"UpdateDestinationOutput",0,[],[]],Qi=[3,nr,Kt,0,[At,Ze,xt],[64,0,64],3],Xi=[3,nr,Yt,0,[At,Ze,xt,"VpcId"],[64,0,64,0],4],Zi=[1,nr,"DatabaseSnapshotInfoList",0,()=>Xr],eo=[1,nr,"DestinationDescriptionList",0,[()=>hn,0]],to=[1,nr,J,0,()=>mn],ro=[1,nr,"HttpEndpointCommonAttributesList",0,[()=>kn,0]],no=[1,nr,"ListTagsForDeliveryStreamOutputTagList",0,()=>Gi],io=[1,nr,"PartitionFields",0,()=>ni],oo=[1,nr,"ProcessorList",0,()=>ai],ao=[1,nr,"ProcessorParameterList",0,()=>
1si],so=[1,nr,"PutRecordBatchRequestEntryList",0,()=>fi],co=[1,nr,"PutRecordBatchResponseEntryList",0,()=>ui],lo=[1,nr,"TagDeliveryStreamInputTagList",0,()=>Gi],uo=[9,nr,"CreateDeliveryStream",0,()=>Kr,()=>Yr],po=[9,nr,"DeleteDeliveryStream",0,()=>an,()=>sn],fo=[9,nr,"DescribeDeliveryStream",0,()=>dn,()=>pn],ho=[9,nr,"ListDeliveryStreams",0,()=>Wn,()=>Kn],mo=[9,nr,"ListTagsForDeliveryStream",0,()=>Yn,()=>Jn],go=[9,nr,"PutRecord",0,()=>di,()=>pi],yo=[9,nr,"PutRecordBatch",0,()=>ci,()=>li],vo=[9,nr,"StartDeliveryStreamEncryption",0,()=>ji,()=>Ui],bo=[9,nr,"StopDeliveryStreamEncryption",0,()=>Hi,()=>zi],_o=[9,nr,"TagDeliveryStream",0,()=>$i,()=>qi],So=[9,nr,"UntagDeliveryStream",0,()=>Wi,()=>Ki],Eo=[9,nr,"UpdateDestination",0,()=>Yi,()=>Ji]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TypeRegistry:()=>n});class n{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,r=new Map){this.namespace=e,this.schemas=t,this.exceptions=r}static for(e){return n.registries.has(e)||n.registries.set(e,new n(e)),n.registries.get(e)}copyFrom(e){const{schemas:t,exceptions:r}=this;for(const[r,n]of e.schemas)t.has(r)||t.set(r,n);for(const[t,n]of e.exceptions)r.has(t)||r.set(t,n)}register(e,t){const r=this.normalizeShapeId(e);for(const e of[this,n.for(r.split("#")[0])])e.schemas.set(r,t)}getSchema(e){const t=this.normalizeShapeId(e);if(!this.schemas.has(t)){if(!e.includes("#")){const t="#"+e,r=[];for(const[e,n]of this.schemas.entries())e.endsWith(t)&&r.push(n);if(1===r.length)return r[0]}throw new Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(e,t){const r=e,i=r[1];for(const e of[this,n.for(i)])e.schemas.set(i+"#"+r[2],r),e.exceptions.set(r,t)}getErrorCtor(e){const t=e;if(this.exceptions.has(t))return this.exceptions.get(t);return n.for(t[1]).exceptions.get(t)}getBaseException(){for(const e of this.exceptions.keys())if(Array.isArray(e)){const[,t,r]=e,n=t+"#"+r;if(n.startsWith("smithy.ts.sdk.synthetic.")&&n.endsWith("ServiceException"))return e}}find(e){for(const t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ConcurrentModificationException:()=>i,InvalidArgumentException:()=>o,InvalidKMSResourceException:()=>a,InvalidSourceException:()=>u,LimitExceededException:()=>s,ResourceInUseException:()=>c,ResourceNotFoundException:()=>l,ServiceUnavailableException:()=>d});var n=r(177);class i extends n.FirehoseServiceException{name="ConcurrentModificationException";$fault="client";constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),Object.setPrototypeOf(this,i.prototype)}}class o extends n.FirehoseServiceException{name="InvalidArgumentException";$fault="client";constructor(e){super({name:"InvalidArgumentException",$fault:"client",...e}),Object.setPrototypeOf(this,o.prototype)}}class a extends n.FirehoseServiceException{name="InvalidKMSResourceException";$fault="client";code;constructor(e){super({name:"InvalidKMSResourceException",$fault:"client",...e}),Object.setPrototypeOf(this,a.prototype),this.code=e.code}}class s extends n.FirehoseServiceException{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,s.prototype)}}class c extends n.FirehoseServiceException{name="ResourceInUseException";$fault="client";constructor(e){super({name:"ResourceInUseException",$fault:"client",...e}),Object.setPrototypeOf(this,c.prototype)}}class l extends n.FirehoseServiceException{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,l.prototype)}}class u extends n.FirehoseServiceException{name="InvalidSourceException";$fault="client";code;constructor(e){super({name:"InvalidSourceException",$fault:"client",...e}),Object.setPrototypeOf(this,u.prototype),this.code=e.code}}class d extends n.FirehoseServiceException{name="ServiceUnavailableException";$fault="server";constructor(e){super({name:"ServiceUnavailableException",$fault:"server",...e}),Object.setPrototypeOf(this,d.prototype)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FirehoseServiceException:()=>i,__ServiceException:()=>n.ServiceException});var n=r(178);class i extends n.ServiceException{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ServiceException:()=>n,decorateServiceException:()=>i});
1class n extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;const t=e;return n.prototype.isPrototypeOf(t)||Boolean(t.$fault)&&Boolean(t.$metadata)&&("client"===t.$fault||"server"===t.$fault)}static[Symbol.hasInstance](e){if(!e)return!1;const t=e;return this===n?n.isInstance(e):!!n.isInstance(e)&&(t.name&&this.name?this.prototype.isPrototypeOf(e)||t.name===this.name:this.prototype.isPrototypeOf(e))}}const i=(e,t={})=>{Object.entries(t).filter(([,e])=>void 0!==e).forEach(([t,r])=>{null!=e[t]&&""!==e[t]||(e[t]=r)});const r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{$Command:()=>n.Command,DeleteDeliveryStreamCommand:()=>s});var n=r(116),i=r(123),o=r(173),a=r(174);class s extends(n.Command.classBuilder().ep(o.commonParams).m(function(e,t,r,n){return[(0,i.getEndpointPlugin)(r,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","DeleteDeliveryStream",{}).n("FirehoseClient","DeleteDeliveryStreamCommand").sc(a.DeleteDeliveryStream$).build()){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{$Command:()=>n.Command,DescribeDeliveryStreamCommand:()=>s});var n=r(116),i=r(123),o=r(173),a=r(174);class s extends(n.Command.classBuilder().ep(o.commonParams).m(function(e,t,r,n){return[(0,i.getEndpointPlugin)(r,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","DescribeDeliveryStream",{}).n("FirehoseClient","DescribeDeliveryStreamCommand").sc(a.DescribeDeliveryStream$).build()){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{$Command:()=>n.Command,ListDeliveryStreamsCommand:()=>s});var n=r(116),i=r(123),o=r(173),a=r(174);class s extends(n.Command.classBuilder().ep(o.commonParams).m(function(e,t,r,n){return[(0,i.getEndpointPlugin)(r,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","ListDeliveryStreams",{}).n("FirehoseClient","ListDeliveryStreamsCommand").sc(a.ListDeliveryStreams$).build()){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{$Command:()=>n.Command,ListTagsForDeliveryStreamCommand:()=>s});var n=r(116),i=r(123),o=r(173),a=r(174);class s extends(n.Command.classBuilder().ep(o.commonParams).m(function(e,t,r,n){return[(0,i.getEndpointPlugin)(r,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","ListTagsForDeliveryStream",{}).n("FirehoseClient","ListTagsForDeliveryStreamCommand").sc(a.ListTagsForDeliveryStream$).build()){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{$Command:()=>n.Command,PutRecordBatchCommand:()=>s});var n=r(116),i=r(123),o=r(173),a=r(174);class s extends(n.Command.classBuilder().ep(o.commonParams).m(function(e,t,r,n){return[(0,i.getEndpointPlugin)(r,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","PutRecordBatch",{}).n("FirehoseClient","PutRecordBatchCommand").sc(a.PutRecordBatch$).build()){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{$Command:()=>n.Command,PutRecordCommand:()=>s});var n=r(116),i=r(123),o=r(173),a=r(174);class s extends(n.Command.classBuilder().ep(o.commonParams).m(function(e,t,r,n){return[(0,i.getEndpointPlugin)(r,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","PutRecord",{}).n("FirehoseClient","PutRecordCommand").sc(a.PutRecord$).build()){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{$Command:()=>n.Command,StartDeliveryStreamEncryptionCommand:()=>s});var n=r(116),i=r(123),o=r(173),a=r(174);class s extends(n.Command.classBuilder().ep(o.commonParams).m(function(e,t,r,n){return[(0,i.getEndpointPlugin)(r,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","StartDeliveryStreamEncryption",{}).n("FirehoseClient","StartDeliveryStreamEncryptionCommand").sc(a.StartDeliveryStreamEncryption$).build()){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{$Command:()=>n.Command,StopDeliveryStreamEncryptionCommand:()=>s});var n=r(116),i=r(123),o=r(173),a=r(174);class s extends(n.Command.classBuilder().ep(o.commonParams).m(function(e,t,r,n){return[(0,i.getEndpointPlugin)(r,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","StopDeliveryStreamEncryption",{}).n("FirehoseClient","StopDeliveryStreamEncryptionCommand").sc(a.StopDeliveryStreamEncryption$).build()){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{$Command:()=>n.Command,TagDeliveryStreamCommand:()=>s});
1var n=r(116),i=r(123),o=r(173),a=r(174);class s extends(n.Command.classBuilder().ep(o.commonParams).m(function(e,t,r,n){return[(0,i.getEndpointPlugin)(r,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","TagDeliveryStream",{}).n("FirehoseClient","TagDeliveryStreamCommand").sc(a.TagDeliveryStream$).build()){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{$Command:()=>n.Command,UntagDeliveryStreamCommand:()=>s});var n=r(116),i=r(123),o=r(173),a=r(174);class s extends(n.Command.classBuilder().ep(o.commonParams).m(function(e,t,r,n){return[(0,i.getEndpointPlugin)(r,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","UntagDeliveryStream",{}).n("FirehoseClient","UntagDeliveryStreamCommand").sc(a.UntagDeliveryStream$).build()){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{$Command:()=>n.Command,UpdateDestinationCommand:()=>s});var n=r(116),i=r(123),o=r(173),a=r(174);class s extends(n.Command.classBuilder().ep(o.commonParams).m(function(e,t,r,n){return[(0,i.getEndpointPlugin)(r,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","UpdateDestination",{}).n("FirehoseClient","UpdateDestinationCommand").sc(a.UpdateDestination$).build()){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FirehoseClient:()=>E,__Client:()=>d.Client});var n=r(191),i=r(193),o=r(194),a=r(195),s=r(197),c=r(206),l=r(207),u=r(210),d=r(212),p=r(213),f=r(123),h=r(217),m=r(218),g=r(273),y=r(275),v=r(279),b=r(173),_=r(296),S=r(376);class E extends d.Client{config;constructor(...[e]){const t=(0,_.getRuntimeConfig)(e||{});super(t),this.initConfig=t;const r=(0,b.resolveClientEndpointParameters)(t),d=(0,a.resolveUserAgentConfig)(r),E=(0,g.resolveRetryConfig)(d),w=(0,p.resolveRegionConfig)(E),T=(0,n.resolveHostHeaderConfig)(w),x=(0,f.resolveEndpointConfig)(T),O=(0,v.resolveHttpAuthSchemeConfig)(x),A=(0,S.resolveRuntimeExtensions)(O,e?.extensions||[]);this.config=A,this.middlewareStack.use((0,y.getSchemaSerdePlugin)(this.config)),this.middlewareStack.use((0,s.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,m.getRetryPlugin)(this.config)),this.middlewareStack.use((0,h.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,n.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,i.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,o.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,l.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:v.defaultFirehoseHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new c.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use((0,u.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getHostHeaderPlugin:()=>s,hostHeaderMiddleware:()=>o,hostHeaderMiddlewareOptions:()=>a,resolveHostHeaderConfig:()=>i});var n=r(192);function i(e){return e}const o=e=>t=>async r=>{if(!n.HttpRequest.isInstance(r.request))return t(r);const{request:i}=r,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!i.headers[":authority"])delete i.headers.host,i.headers[":authority"]=i.hostname+(i.port?":"+i.port:"");else if(!i.headers.host){let e=i.hostname;null!=i.port&&(e+=`:${i.port}`),i.headers.host=e}return t(r)},a={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},s=e=>({applyToStack:t=>{t.add(o(e),a)}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HttpRequest:()=>n});class n{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){const t=new n({...e,headers:{...e.headers}});var r;return t.query&&(t.query=(r=t.query,Object.keys(r).reduce((e,t)=>{const n=r[t];return{...e,[t]:Array.isArray(n)?[...n]:n}},{}))),t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){return n.clone(this)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getLoggerPlugin:()=>o,loggerMiddleware:()=>n,loggerMiddlewareOptions:()=>i});const n=()=>(e,t)=>async r=>{try{const n=await e(r),{clientName:i,commandName:o,logger:a,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=s,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:p,...f}=n.output;
1return a?.info?.({clientName:i,commandName:o,input:u(r.input),output:d(f),metadata:p}),n}catch(e){const{clientName:n,commandName:i,logger:o,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:s}=a,c=s??t.inputFilterSensitiveLog;throw o?.error?.({clientName:n,commandName:i,input:c(r.input),error:e,metadata:e.$metadata}),e}},i={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},o=e=>({applyToStack:e=>{e.add(n(),i)}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getRecursionDetectionPlugin:()=>n});const n=e=>({applyToStack:e=>{}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_UA_APP_ID:()=>i,resolveUserAgentConfig:()=>o});var n=r(196);const i=void 0;function o(e){const t=(0,n.normalizeProvider)(e.userAgentAppId??i),{customUserAgent:r}=e;return Object.assign(e,{customUserAgent:"string"==typeof r?[[r]]:r,userAgentAppId:async()=>{const r=await t();if(!function(e){return void 0===e||"string"==typeof e&&e.length<=50}(r)){const t="NoOpLogger"!==e.logger?.constructor?.name&&e.logger?e.logger:console;"string"!=typeof r?t?.warn("userAgentAppId must be a string or undefined."):r.length>50&&t?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return r}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{normalizeProvider:()=>n});const n=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getUserAgentMiddlewareOptions:()=>u,getUserAgentPlugin:()=>d,userAgentMiddleware:()=>c});var n=r(192),i=r(198),o=r(200),a=r(204),s=r(205);const c=e=>(t,r)=>async c=>{const{request:u}=c;if(!n.HttpRequest.isInstance(u))return t(c);const{headers:d}=u,p=r?.userAgent?.map(l)||[],f=(await e.defaultUserAgentProvider()).map(l);await(0,o.checkFeatures)(r,e,c);const h=r;f.push(`m/${(0,s.encodeFeatures)(Object.assign({},r.__smithy_context?.features,h.__aws_sdk_context?.features))}`);const m=e?.customUserAgent?.map(l)||[],g=await e.userAgentAppId();g&&f.push(l(["app",`${g}`]));const y=(0,i.getUserAgentPrefix)(),v=(y?[y]:[]).concat([...f,...p,...m]).join(a.SPACE),b=[...f.filter(e=>e.startsWith("aws-sdk-")),...m].join(a.SPACE);return"browser"!==e.runtime?(b&&(d[a.X_AMZ_USER_AGENT]=d[a.X_AMZ_USER_AGENT]?`${d[a.USER_AGENT]} ${b}`:b),d[a.USER_AGENT]=v):d[a.X_AMZ_USER_AGENT]=v,t({...c,request:u})},l=e=>{const t=e[0].split(a.UA_NAME_SEPARATOR).map(e=>e.replace(a.UA_NAME_ESCAPE_REGEX,a.UA_ESCAPE_CHAR)).join(a.UA_NAME_SEPARATOR),r=e[1]?.replace(a.UA_VALUE_ESCAPE_REGEX,a.UA_ESCAPE_CHAR),n=t.indexOf(a.UA_NAME_SEPARATOR),i=t.substring(0,n);let o=t.substring(n+1);return"api"===i&&(o=o.toLowerCase()),[i,o,r].filter(e=>e&&e.length>0).reduce((e,t,r)=>{switch(r){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},"")},u={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},d=e=>({applyToStack:t=>{t.add(c(e),u)}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getUserAgentPrefix:()=>l,partition:()=>a,setPartitionInfo:()=>s,useDefaultPartitionInfo:()=>c});var n=r(199);let i=n.partitionsInfo,o="";const a=e=>{const{partitions:t}=i;for(const r of t){const{regions:t,outputs:n}=r;for(const[r,i]of Object.entries(t))if(r===e)return{...n,...i}}for(const r of t){const{regionRegex:t,outputs:n}=r;if(new RegExp(t).test(e))return{...n}}const r=t.find(e=>"aws"===e.id);if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},s=(e,t="")=>{i=e,o=t},c=()=>{s(n.partitionsInfo,"")},l=()=>o},(e,t,r)=>{"use strict";r.r(t),r.d(t,{partitionsInfo:()=>n});const n={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supp
1ortsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{checkFeatures:()=>a});var n=r(201),i=r(202);const o=/\d{12}\.ddb/;async function a(e,t,r){const a=r.request;if("rpc-v2-cbor"===a?.headers?.["smithy-protocol"]&&(0,i.setFeature)(e,"PROTOCOL_RPC_V2_CBOR","M"),"function"==typeof t.retryStrategy){const r=await t.retryStrategy();if("string"==typeof r.mode)switch(r.mode){case n.RETRY_MODES.ADAPTIVE:(0,i.setFeature)(e,"RETRY_MODE_ADAPTIVE","F");break;case n.RETRY_MODES.STANDARD:(0,i.setFeature)(e,"RETRY_MODE_STANDARD","E")}}if("function"==typeof t.accountIdEndpointMode){const r=e.endpointV2;switch(String(r?.url?.hostname).match(o)&&(0,i.setFeature)(e,"ACCOUNT_ID_ENDPOINT","O"),await(t.accountIdEndpointMode?.())){case"disabled":(0,i.setFeature)(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":(0,i.setFeature)(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":(0,i.setFeature)(e,"ACCOUNT_ID_MODE_REQUIRED","R")}}const s=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source){const t=s;t.accountId&&(0,i.setFeature)(e,"RESOLVED_ACCOUNT_ID","T");for(const[r,n]of Object.entries(t.$source??{}))(0,i.setFeature)(e,r,n)}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{DEFAULT_MAX_ATTEMPTS:()=>i,DEFAULT_RETRY_MODE:()=>o,RETRY_MODES:()=>n}),function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(n||(n={}));const i=3,o=n.STANDARD},(e,t,r)=>{"use strict";r.r(t),r.d(t,{setFeature:()=>i});var n=r(203);function i(e,t,r){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=r}n.Retry.v2026||="object"==typeof process&&"true"===process.env?.AWS_NEW_RETRIES_202
16},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Retry:()=>n});class n{static v2026="undefined"!=typeof process&&"true"===process.env?.SMITHY_NEW_RETRIES_2026;static delay(){return n.v2026?50:100}static throttlingDelay(){return n.v2026?1e3:500}static cost(){return n.v2026?14:5}static throttlingCost(){return n.v2026?5:10}static modifiedCostType(){return n.v2026?"THROTTLING":"TRANSIENT"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SPACE:()=>o,UA_ESCAPE_CHAR:()=>l,UA_NAME_ESCAPE_REGEX:()=>s,UA_NAME_SEPARATOR:()=>a,UA_VALUE_ESCAPE_REGEX:()=>c,USER_AGENT:()=>n,X_AMZ_USER_AGENT:()=>i});const n="user-agent",i="x-amz-user-agent",o=" ",a="/",s=/[^!$%&'*+\-.^_`|~\w]/g,c=/[^!$%&'*+\-.^_`|~\w#]/g,l="-"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{encodeFeatures:()=>i});const n=1024;function i(e){let t="";for(const r in e){const i=e[r];if(!(t.length+i.length+1<=n))break;t.length?t+=","+i:t+=i}return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DefaultIdentityProviderConfig:()=>n});class n{authSchemes=new Map;constructor(e){for(const t in e){const r=e[t];void 0!==r&&this.authSchemes.set(t,r)}}getIdentityProvider(e){return this.authSchemes.get(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getHttpAuthSchemeEndpointRuleSetPlugin:()=>o,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>i});var n=r(208);const i={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},o=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:o=>{o.addRelativeTo((0,n.httpAuthSchemeMiddleware)(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r}),i)}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{httpAuthSchemeMiddleware:()=>o});var n=r(132),i=r(209);const o=(e,t)=>(r,o)=>async a=>{const s=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,o,a.input)),c=e.authSchemePreference?await e.authSchemePreference():[],l=(0,i.resolveAuthOptions)(s,c),u=function(e){const t=new Map;for(const r of e)t.set(r.schemeId,r);return t}(e.httpAuthSchemes),d=(0,n.getSmithyContext)(o),p=[];for(const r of l){const n=u.get(r.schemeId);if(!n){p.push(`HttpAuthScheme \`${r.schemeId}\` was not enabled for this service.`);continue}const i=n.identityProvider(await t.identityProviderConfigProvider(e));if(!i){p.push(`HttpAuthScheme \`${r.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:a={},signingProperties:s={}}=r.propertiesExtractor?.(e,o)||{};r.identityProperties=Object.assign(r.identityProperties||{},a),r.signingProperties=Object.assign(r.signingProperties||{},s),d.selectedHttpAuthScheme={httpAuthOption:r,identity:await i(r.identityProperties),signer:n.signer};break}if(!d.selectedHttpAuthScheme)throw new Error(p.join("\n"));return r(a)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resolveAuthOptions:()=>n});const n=(e,t)=>{if(!t||0===t.length)return e;const r=[];for(const n of t)for(const t of e){t.schemeId.split("#")[1]===n&&r.push(t)}for(const t of e)r.find(({schemeId:e})=>e===t.schemeId)||r.push(t);return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getHttpSigningPlugin:()=>o,httpSigningMiddlewareOptions:()=>i});var n=r(211);const i={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},o=e=>({applyToStack:t=>{t.addRelativeTo((0,n.httpSigningMiddleware)(e),i)}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{httpSigningMiddleware:()=>s});var n=r(192),i=r(132);const o=e=>e=>{throw e},a=(e,t)=>{},s=e=>(e,t)=>async r=>{if(!n.HttpRequest.isInstance(r.request))return e(r);const s=(0,i.getSmithyContext)(t).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:c={}},identity:l,signer:u}=s,d=await e({...r,request:await u.sign(r.request,l,c)}).catch((u.errorHandler||o)(c));return(u.successHandler||a)(d.response,c),d}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Client:()=>i});var n=r(118);class i{config;middlewareStack=(0,n.constructStack)();initConfig;handlers;constructor(e){this.config=e;const{protocol:t,protocolSettings:r}=e;r&&"function"==typeof t&&(e.protocol=new t(r))}send(e,t,r){const n="function"!=typeof t?t:void 0,i="function"==typeof t?t:r;let o;if(void 0===n&&!0===this.config.cacheMiddleware){this.handlers||(this.handlers=new WeakMap);const t=this.handlers;t.has(e.constructor)?o=t.get(e.constructor):(o=e.resolveMiddleware(this.middlewareStack,this.config,n),t.set(e.constructor,o))}else delete this.handlers,o=e.resolveMiddleware(this.middlewareStack,this.config,n);if(!i)return o(e).then(e=>e.output);o(e).then(e=>i(null,e.output),e=>i(e)).catch(()=>{})}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resolveRegionConfig:()=>a});var n=r(214),i=r(215),o=r(216);const a=e=>{const{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{const e="function"==typeof t?await t():t,r=(0,i.getRealRegion)(e);
1return(0,n.checkRegion)(r),r},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!(0,o.isFipsRegion)(e)||("function"!=typeof r?Promise.resolve(!!r):r())}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{checkRegion:()=>o});var n=r(151);const i=new Set,o=(e,t=n.isValidHostLabel)=>{if(i.has(e)||t(e))i.add(e);else{if("*"!==e)throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`);console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.')}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getRealRegion:()=>i});var n=r(216);const i=e=>(0,n.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isFipsRegion:()=>n});const n=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips"))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{contentLengthMiddleware:()=>o,contentLengthMiddlewareOptions:()=>a,getContentLengthPlugin:()=>s});var n=r(192);const i="content-length";function o(e){return t=>async r=>{const o=r.request;if(n.HttpRequest.isInstance(o)){const{body:t,headers:r}=o;if(t&&-1===Object.keys(r).map(e=>e.toLowerCase()).indexOf(i))try{const r=e(t);o.headers={...o.headers,[i]:String(r)}}catch(e){}}return t({...r,request:o})}}const a={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},s=e=>({applyToStack:t=>{t.add(o(e.bodyLengthChecker),a)}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AdaptiveRetryStrategy:()=>a.AdaptiveRetryStrategy,CONFIG_MAX_ATTEMPTS:()=>E,CONFIG_RETRY_MODE:()=>x,ConfiguredRetryStrategy:()=>s.ConfiguredRetryStrategy,DEFAULT_MAX_ATTEMPTS:()=>u.DEFAULT_MAX_ATTEMPTS,DEFAULT_RETRY_DELAY_BASE:()=>d.DEFAULT_RETRY_DELAY_BASE,DEFAULT_RETRY_MODE:()=>u.DEFAULT_RETRY_MODE,DefaultRateLimiter:()=>c.DefaultRateLimiter,DeprecatedAdaptiveRetryStrategy:()=>f.AdaptiveRetryStrategy,DeprecatedStandardRetryStrategy:()=>h.StandardRetryStrategy,ENV_MAX_ATTEMPTS:()=>S,ENV_RETRY_MODE:()=>T,INITIAL_RETRY_TOKENS:()=>d.INITIAL_RETRY_TOKENS,INVOCATION_ID_HEADER:()=>d.INVOCATION_ID_HEADER,MAXIMUM_RETRY_DELAY:()=>d.MAXIMUM_RETRY_DELAY,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>w,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>O,NO_RETRY_INCREMENT:()=>d.NO_RETRY_INCREMENT,REQUEST_HEADER:()=>d.REQUEST_HEADER,RETRY_COST:()=>d.RETRY_COST,RETRY_MODES:()=>u.RETRY_MODES,Retry:()=>p.Retry,StandardRetryStrategy:()=>l.StandardRetryStrategy,THROTTLING_RETRY_DELAY_BASE:()=>d.THROTTLING_RETRY_DELAY_BASE,TIMEOUT_RETRY_COST:()=>d.TIMEOUT_RETRY_COST,defaultDelayDecider:()=>m.defaultDelayDecider,defaultRetryDecider:()=>g.defaultRetryDecider,getOmitRetryHeadersPlugin:()=>v.getOmitRetryHeadersPlugin,getRetryAfterHint:()=>b.getRetryAfterHint,getRetryPlugin:()=>R,isBrowserNetworkError:()=>o.isBrowserNetworkError,isClockSkewCorrectedError:()=>o.isClockSkewCorrectedError,isClockSkewError:()=>o.isClockSkewError,isNodeJsHttp2TransientError:()=>o.isNodeJsHttp2TransientError,isRetryableByTrait:()=>o.isRetryableByTrait,isServerError:()=>o.isServerError,isThrottlingError:()=>o.isThrottlingError,isTransientError:()=>o.isTransientError,omitRetryHeadersMiddleware:()=>v.omitRetryHeadersMiddleware,omitRetryHeadersMiddlewareOptions:()=>v.omitRetryHeadersMiddlewareOptions,resolveRetryConfig:()=>y.resolveRetryConfig,retryMiddleware:()=>A,retryMiddlewareOptions:()=>i.retryMiddlewareOptions});var n=r(219),i=r(220),o=r(257),a=r(262),s=r(267),c=r(263),l=r(264),u=r(201),d=r(259),p=r(203),f=r(268),h=r(269),m=r(271),g=r(272),y=r(273),v=r(274),b=r(260);const _=Symbol.for("node-only"),S=_,E=_,w=_,T=_,x=_,O=_,A=(0,i.bindRetryMiddleware)(n.isStreamingPayload),R=(0,i.bindGetRetryPlugin)(n.isStreamingPayload)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isStreamingPayload:()=>n});const n=e=>e?.body instanceof ReadableStream},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindGetRetryPlugin:()=>g,bindRetryMiddleware:()=>u,retryMiddlewareOptions:()=>m});var n=r(221),i=r(192),o=r(222),a=r(257),s=r(259),c=r(260),l=r(261);function u(e){return t=>(r,a)=>async c=>{let u=await t.retryStrategy();const h=await t.maxAttempts();if(!p(u))return u?.mode&&(a.userAgent=[...a.userAgent||[],["cfg/retry-mode",u.mode]]),u.retry(r,c);{let p=await u.acquireInitialRetryToken((a.partition_id??"")+(a.__retryLongPoll?":longpoll":"")),m=new Error,g=0,y=0;const{request:v}=c,b=i.HttpRequest.isInstance(v);for(b&&(v.headers[s.INVOCATION_ID_HEADER]=(0,o.v4)());;)try{b&&(v.headers[s.REQUEST_HEADER]=`attempt=${g+1}; max=${h}`);const{response:e,output:t}=await r(c);return u.recordSuccess(p),t.$metadata.attempts=g+1,t.$metadata.totalRetryDelay=y,{response:e,output:t}}catch(r){const i=f(r,t.logger);if(m=(0,l.asSdkError)(r),b&&e(v))throw(a.logger instanceof n.NoOpLogger?console:a.logger)?.warn("An error was encountered in a non-retryable streaming request."),m;
1try{p=await u.refreshRetryTokenForRetry(p,i)}catch(e){throw m.$metadata||(m.$metadata={}),m.$metadata.attempts=g+1,m.$metadata.totalRetryDelay=y,m}g=p.getRetryCount();const o=p.getRetryDelay();y+=(p?.$retryLog?.acquisitionDelay??0)+o,o>0&&await d(o)}}}}const d=e=>new Promise(t=>setTimeout(t,e)),p=e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess,f=(e,t)=>{const r={error:e,errorType:h(e)},n=(0,c.parseRetryAfterHeader)(e.$response,t);return n&&(r.retryAfterHint=n),r},h=e=>(0,a.isThrottlingError)(e)?"THROTTLING":(0,a.isTransientError)(e)?"TRANSIENT":(0,a.isServerError)(e)?"SERVER_ERROR":"CLIENT_ERROR",m={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function g(e){const t=u(e);return e=>({applyToStack:r=>{r.add(t(e),m)}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{NoOpLogger:()=>n});class n{trace(){}debug(){}info(){}warn(){}error(){}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ChecksumStream:()=>x.ChecksumStream,Hash:()=>L,LazyJsonString:()=>d.LazyJsonString,NumericValue:()=>y.NumericValue,Uint8ArrayBlobAdapter:()=>F,_parseEpochTimestamp:()=>h._parseEpochTimestamp,_parseRfc3339DateTimeWithOffset:()=>h._parseRfc3339DateTimeWithOffset,_parseRfc7231DateTime:()=>h._parseRfc7231DateTime,calculateBodyLength:()=>b.calculateBodyLength,copyDocumentWithTransform:()=>l.copyDocumentWithTransform,createBufferedReadable:()=>A.createBufferedReadable,createChecksumStream:()=>O.createChecksumStream,dateToUtcString:()=>u.dateToUtcString,deserializerMiddleware:()=>E.deserializerMiddleware,deserializerMiddlewareOption:()=>w.deserializerMiddlewareOption,expectBoolean:()=>p.expectBoolean,expectByte:()=>p.expectByte,expectFloat32:()=>p.expectFloat32,expectInt:()=>p.expectInt,expectInt32:()=>p.expectInt32,expectLong:()=>p.expectLong,expectNonNull:()=>p.expectNonNull,expectNumber:()=>p.expectNumber,expectObject:()=>p.expectObject,expectShort:()=>p.expectShort,expectString:()=>p.expectString,expectUnion:()=>p.expectUnion,fromArrayBuffer:()=>D,fromBase64:()=>n.fromBase64,fromHex:()=>v.fromHex,fromString:()=>N,fromUtf8:()=>a.fromUtf8,generateIdempotencyToken:()=>j,getAwsChunkedEncodingStream:()=>R.getAwsChunkedEncodingStream,getSerdePlugin:()=>w.getSerdePlugin,handleFloat:()=>p.handleFloat,headStream:()=>P.headStream,isArrayBuffer:()=>S.isArrayBuffer,isBlob:()=>k.isBlob,isReadableStream:()=>k.isReadableStream,limitedParseDouble:()=>p.limitedParseDouble,limitedParseFloat:()=>p.limitedParseFloat,limitedParseFloat32:()=>p.limitedParseFloat32,logger:()=>p.logger,nv:()=>y.nv,parseBoolean:()=>p.parseBoolean,parseEpochTimestamp:()=>u.parseEpochTimestamp,parseRfc3339DateTime:()=>u.parseRfc3339DateTime,parseRfc3339DateTimeWithOffset:()=>u.parseRfc3339DateTimeWithOffset,parseRfc7231DateTime:()=>u.parseRfc7231DateTime,quoteHeader:()=>f.quoteHeader,sdkStreamMixin:()=>I.sdkStreamMixin,serializerMiddleware:()=>T.serializerMiddleware,serializerMiddlewareOption:()=>w.serializerMiddlewareOption,splitEvery:()=>m.splitEvery,splitHeader:()=>g.splitHeader,splitStream:()=>C.splitStream,strictParseByte:()=>p.strictParseByte,strictParseDouble:()=>p.strictParseDouble,strictParseFloat:()=>p.strictParseFloat,strictParseFloat32:()=>p.strictParseFloat32,strictParseInt:()=>p.strictParseInt,strictParseInt32:()=>p.strictParseInt32,strictParseLong:()=>p.strictParseLong,strictParseShort:()=>p.strictParseShort,toBase64:()=>i.toBase64,toHex:()=>v.toHex,toUint8Array:()=>_.toUint8Array,toUtf8:()=>s.toUtf8,v4:()=>B});var n=r(223),i=r(225),o=r(227),a=r(226),s=r(228),c=r(229),l=r(230),u=r(231),d=r(233),p=r(232),f=r(234),h=r(235),m=r(236),g=r(237),y=r(238),v=r(239),b=r(240),_=r(241),S=r(242),E=r(243),w=r(245),T=r(246),x=r(247),O=r(248),A=r(250),R=r(252),P=r(253),I=r(254),C=r(256),k=r(249);const M=Symbol.for("node-only"),D=M,N=M,L=M;class F extends((0,o.bindUint8ArrayBlobAdapter)(s.toUtf8,a.fromUtf8,i.toBase64,n.fromBase64)){}const B=(0,c.bindV4)(e=>crypto.getRandomValues(e)),j=B},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromBase64:()=>i});var n=r(224);const i=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;const r=new ArrayBuffer(t),i=new DataView(r);for(let t=0;t<e.length;t+=4){let r=0,o=0;for(let i=t,a=t+3;i<=a;
1i++)if("="!==e[i]){if(!(e[i]in n.alphabetByEncoding))throw new TypeError(`Invalid character ${e[i]} in base64 string.`);r|=n.alphabetByEncoding[e[i]]<<(a-i)*n.bitsPerLetter,o+=n.bitsPerLetter}else r>>=n.bitsPerLetter;const a=t/4*3;r>>=o%n.bitsPerByte;const s=Math.floor(o/n.bitsPerByte);for(let e=0;e<s;e++){const t=(s-e-1)*n.bitsPerByte;i.setUint8(a+e,(r&255<<t)>>t)}}return new Uint8Array(r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{alphabetByEncoding:()=>i,alphabetByValue:()=>o,bitsPerByte:()=>s,bitsPerLetter:()=>a,maxLetterValue:()=>c});const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=Object.entries(n).reduce((e,[t,r])=>(e[r]=Number(t),e),{}),o=n.split(""),a=6,s=8,c=63},(e,t,r)=>{"use strict";r.r(t),r.d(t,{toBase64:()=>o});var n=r(226),i=r(224);function o(e){let t;t="string"==typeof e?(0,n.fromUtf8)(e):e;const r="object"==typeof t&&"number"==typeof t.length,o="object"==typeof t&&"number"==typeof t.byteOffset&&"number"==typeof t.byteLength;if(!r&&!o)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let a="";for(let e=0;e<t.length;e+=3){let r=0,n=0;for(let o=e,a=Math.min(e+3,t.length);o<a;o++)r|=t[o]<<(a-o-1)*i.bitsPerByte,n+=i.bitsPerByte;const o=Math.ceil(n/i.bitsPerLetter);r<<=o*i.bitsPerLetter-n;for(let e=1;e<=o;e++){const t=(o-e)*i.bitsPerLetter;a+=i.alphabetByValue[(r&i.maxLetterValue<<t)>>t]}
1a+="==".slice(0,4-o)}return a}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromUtf8:()=>n});const n=e=>(new TextEncoder).encode(e)},(e,t,r)=>{"use strict";function n(e,t,r,n){return class i extends Uint8Array{static fromString(e,r="utf-8"){if("string"==typeof e)return"base64"===r?i.mutate(n(e)):i.mutate(t(e));throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,i.prototype),e}transformToString(t="utf-8"){return"base64"===t?r(this):e(this)}}}r.r(t),r.d(t,{bindUint8ArrayBlobAdapter:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{toUtf8:()=>n});const n=e=>{if("string"==typeof e)return e;if("object"!=typeof e||"number"!=typeof e.byteOffset||"number"!=typeof e.byteLength)throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindV4:()=>i});const n=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function i(e){return"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?()=>crypto.randomUUID():()=>{const t=new Uint8Array(16);return e(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128,n[t[0]]+n[t[1]]+n[t[2]]+n[t[3]]+"-"+n[t[4]]+n[t[5]]+"-"+n[t[6]]+n[t[7]]+"-"+n[t[8]]+n[t[9]]+"-"+n[t[10]]+n[t[11]]+n[t[12]]+n[t[13]]+n[t[14]]+n[t[15]]}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{copyDocumentWithTransform:()=>n});const n=(e,t,r=e=>e)=>e},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dateToUtcString:()=>a,parseEpochTimestamp:()=>m,parseRfc3339DateTime:()=>c,parseRfc3339DateTimeWithOffset:()=>u,parseRfc7231DateTime:()=>h});var n=r(232);const i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function a(e){const t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),a=e.getUTCDate(),s=e.getUTCHours(),c=e.getUTCMinutes(),l=e.getUTCSeconds(),u=a<10?`0${a}`:`${a}`,d=s<10?`0${s}`:`${s}`,p=c<10?`0${c}`:`${c}`,f=l<10?`0${l}`:`${l}`;return`${i[n]}, ${u} ${o[r]} ${t} ${d}:${p}:${f} GMT`}const s=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),c=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=s.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,i,o,a,c,l,u,d]=t,p=(0,n.strictParseShort)(O(i)),f=w(o,"month",1,12),h=w(a,"day",1,31);return g(p,f,h,{hours:c,minutes:l,seconds:u,fractionalMilliseconds:d})},l=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),u=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=l.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,i,o,a,s,c,u,d,p]=t,f=(0,n.strictParseShort)(O(i)),h=w(o,"month",1,12),m=w(a,"day",1,31),y=g(f,h,m,{hours:s,minutes:c,seconds:u,fractionalMilliseconds:d});return"Z"!=p.toUpperCase()&&y.setTime(y.getTime()-x(p)),y},d=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),p=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),f=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),h=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=d.exec(e);if(t){const[e,r,i,o,a,s,c,l]=t;return g((0,n.strictParseShort)(O(o)),b(i),w(r,"day",1,31),{hours:a,minutes:s,seconds:c,fractionalMilliseconds:l})}if(t=p.exec(e),t){const[e,r,n,i,o,a,s,c]=t;return v(g(y(i),b(n),w(r,"day",1,31),{hours:o,minutes:a,seconds:s,fractionalMilliseconds:c}))}if(t=f.exec(e),t){const[e,r,i,o,a,s,c,l]=t;return g((0,n.strictParseShort)(O(l)),b(r),w(i.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:s,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")},m=e=>{if(null==e)return;let t;if("number"==typeof e)t=e;else if("string"==typeof e)t=(0,n.strictParseDouble)(e);else{if("object"!=typeof e||1!==e.tag)throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");t=e.value}if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(1e3*t))},g=(e,t,r,n)=>{const i=t-1;return S(e,i,r),new Date(Date.UTC(e,i,r,w(n.hours,"hour",0,23),w(n.minutes,"minute",0,59),w(n.seconds,"seconds",0,60),T(n.fractionalMilliseconds)))},y=e=>{const t=(new Date).getUTCFullYear(),r=100*Math.floor(t/100)+(0,n.strictParseShort)(O(e));return r<t?r+100:r},v=e=>e.getTime()-(new Date).getTime()>15768e8?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,b=e=>{const t=o.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},_=[31,28,31,30,31,30,31,31,30,31,30,31],S=(e,t,r)=>{let n=_[t];if(1===t&&E(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${o[t]} in ${e}: ${r}`)},E=e=>e%4==0&&(e%100!=0||e%400==0),w=(e,t,r,i)=>{const o=(0,n.strictParseByte)(O(e));if(o<r||o>i)throw new TypeError(`${t} must be between ${r} and ${i}, inclusive`);return o},T=e=>null==e?0:1e3*(0,n.strictParseFloat32)("0."+e),x=e=>{const t=e[0];let r=1;if("+"==t)r=1;else{if("-"!=t)throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);r=-1}return r*(60*Number(e.substring(1,3))+Number(e.substring(4,6)))*60*1e3},O=e=>{let t=0;for(;t<e.length-1&&"0"===e.charAt(t);)t++;return 0===t?e:e.slice(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{expectBoolean:()=>i,expectByte:()=>p,expectFloat32:()=>s,expectInt:()=>l,expectInt32:()=>u,expectLong:()=>c,expectNonNull:()=>m,expectNumber:()=>o,expectObject:()=>g,expectShort:()=>d,expectString:()=>y,expectUnion:()=>v,handleFloat:()=>x,limitedParseDouble:()=>T,limitedParseFloat:()=>O,limitedParseFloat32:()=>A,logger:()=>N,parseBoolean:()=>n,strictParseByte:()=>M,strictParseDouble:()=>b,strictParseFloat:()=>_,strictParseFloat32:()=>S,strictParseInt:()=>I,strictParseInt32:()=>C,strictParseLong:()=>P,strictParseShort:()=>k});const n=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}},i=e=>{if(null!=e){if("number"==typeof e){if(0!==e&&1!==e||N.warn(D(`Expected boolean, got ${typeof e}: ${e}`)),0===e)return!1;if(1===e)return!0}if("string"==typeof e){const t=e.toLowerCase();if("false"!==t&&"true"!==t||N.warn(D(`Expected boolean, got ${typeof e}: ${e}`)),"false"===t)return!1;if("true"===t)return!0}if("boolean"==typeof e)return e;throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)}},o=e=>{if(null!=e){if("string"==typeof e){const t=parseFloat(e);
1if(!Number.isNaN(t))return String(t)!==String(e)&&N.warn(D(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},a=Math.ceil(2**127*(2-2**-23)),s=e=>{const t=o(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>a)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},c=e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},l=c,u=e=>f(e,32),d=e=>f(e,16),p=e=>f(e,8),f=(e,t)=>{const r=c(e);if(void 0!==r&&h(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},h=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},m=(e,t)=>{if(null==e){if(t)throw new TypeError(`Expected a non-null value for ${t}`);throw new TypeError("Expected a non-null value")}return e},g=e=>{if(null==e)return;if("object"==typeof e&&!Array.isArray(e))return e;const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)},y=e=>{if(null!=e){if("string"==typeof e)return e;if(["boolean","number","bigint"].includes(typeof e))return N.warn(D(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},v=e=>{if(null==e)return;const t=g(e),r=[];for(const e in t)null!=t[e]&&r.push(e);if(0===r.length)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return t},b=e=>o("string"==typeof e?w(e):e),_=b,S=e=>s("string"==typeof e?w(e):e),E=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,w=e=>{const t=e.match(E);if(null===t||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},T=e=>"string"==typeof e?R(e):o(e),x=T,O=T,A=e=>"string"==typeof e?R(e):s(e),R=e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},P=e=>c("string"==typeof e?w(e):e),I=P,C=e=>u("string"==typeof e?w(e):e),k=e=>d("string"==typeof e?w(e):e),M=e=>p("string"==typeof e?w(e):e),D=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join("\n"),N={warn:console.warn}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LazyJsonString:()=>n});const n=function(e){return Object.assign(new String(e),{deserializeJSON:()=>JSON.parse(String(e)),toString:()=>String(e),toJSON:()=>String(e)})};n.from=e=>e&&"object"==typeof e&&(e instanceof n||"deserializeJSON"in e)?e:"string"==typeof e||Object.getPrototypeOf(e)===String.prototype?n(String(e)):n(JSON.stringify(e)),n.fromObject=n.from},(e,t,r)=>{"use strict";function n(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}r.r(t),r.d(t,{quoteHeader:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_parseEpochTimestamp:()=>f,_parseRfc3339DateTimeWithOffset:()=>h,_parseRfc7231DateTime:()=>m});const n="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",i="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",o="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",a="(\\d?\\d)",s="(\\d{4})",c=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),l=new RegExp(`^${n}, ${a} ${i} ${s} ${o} GMT$`),u=new RegExp(`^${n}, ${a}-${i}-(\\d\\d) ${o} GMT$`),d=new RegExp(`^${n} ${i} ( [1-9]|\\d\\d) ${o} ${s}$`),p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],f=e=>{if(null==e)return;let t=NaN;if("number"==typeof e)t=e;else if("string"==typeof e){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else"object"==typeof e&&1===e.tag&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(1e3*t))},h=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC3339 timestamps must be strings");const t=c.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);const[,r,n,i,o,a,s,,l,u]=t;g(n,1,12),g(i,1,31),g(o,0,23),g(a,0,59),g(s,0,60);const d=new Date(Date.UTC(Number(r),Number(n)-1,Number(i),Number(o),Number(a),Number(s),Number(l)?Math.round(1e3*parseFloat(`0.${l}`)):0));if(d.setUTCFullYear(Number(r)),"Z"!=u.toUpperCase()){const[,e,t,r]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],n="-"===e?1:-1;d.setTime(d.getTime()+n*(60*Number(t)*60*1e3+60*Number(r)*1e3))}return d},m=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC7231 timestamps must be strings.");let t,r,n,i,o,a,s,c;if((c=l.exec(e))?[,t,r,n,i,o,a,s]=c:(c=u.exec(e))?([,t,r,n,i,o,a,s]=c,n=(Number(n)+1900).toString()):(c=d.exec(e))&&([,r,t,i,o,a,s,n]=c),n&&a){const e=Date.UTC(Number(n),p.indexOf(r),Number(t),Number(i),Number(o),Number(a),s?Math.round(1e3*parseFloat(`0.${s}`)):0);g(t,1,31),g(i,0,23),g(o,0,59),g(a,0,60);const c=new Date(e);return c.setUTCFullYear(Number(n)),c}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function g(e,t,r){const n=Number(e);if(n<t||n>r)throw new Error(`Value ${n} out of range [${t}, ${r}]`)}},(e,t,r)=>{"use strict";function n(e,t,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");const n=e.split(t);if(1===r)return n;const i=[];let o="";for(let e=0;e<n.length;e++)""===o?o=n[e]:o+=t+n[e],(e+1)%r===0&&(i.push(o),o="");return""!==o&&i.push(o),i}r.r(t),r.d(t,{splitEvery:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{splitHeader:()=>n});const n=e=>{const t=e.length,r=[];let n,i=!1,o=0;for(let a=0;a<t;
1++a){const t=e[a];switch(t){case'"':"\\"!==n&&(i=!i);break;case",":i||(r.push(e.slice(o,a)),o=a+1)}n=t}return r.push(e.slice(o)),r.map(e=>{const t=(e=e.trim()).length;return t<2?e:('"'===e[0]&&'"'===e[t-1]&&(e=e.slice(1,t-1)),e.replace(/\\"/g,'"'))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{NumericValue:()=>i,nv:()=>o});const n=/^-?\d*(\.\d+)?$/;class i{string;type;constructor(e,t){if(this.string=e,this.type=t,!n.test(e))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||"object"!=typeof e)return!1;const t=e;return i.prototype.isPrototypeOf(e)||"bigDecimal"===t.type&&n.test(t.string)}}function o(e){return new i(String(e),"bigDecimal")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromHex:()=>o,toHex:()=>a});const n={},i={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),n[e]=t,i[t]=e}function o(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(!(n in i))throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`);t[r/2]=i[n]}return t}function a(e){let t="";for(let r=0;r<e.byteLength;r++)t+=n[e[r]];return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{calculateBodyLength:()=>i});const n="function"==typeof TextEncoder?new TextEncoder:null,i=e=>{if("string"==typeof e){if(n)return n.encode(e).byteLength;let t=e.length;for(let r=t-1;r>=0;r--){const n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--}return t}if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;throw new Error(`Body Length computation failed for ${e}`)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{toUint8Array:()=>i});var n=r(226);const i=e=>"string"==typeof e?(0,n.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isArrayBuffer:()=>n});const n=e=>"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{deserializerMiddleware:()=>i});var n=r(244);const i=(e,t)=>(r,i)=>async a=>{const{response:s}=await r(a);try{return{response:s,output:await t(s,e)}}catch(e){if(Object.defineProperty(e,"$response",{value:s,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in e)){const t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{e.message+="\n  "+t}catch(e){i.logger&&"NoOpLogger"!==i.logger?.constructor?.name?i.logger?.warn?.(t):console.warn(t)}void 0!==e.$responseBodyText&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(n.HttpResponse.isInstance(s)){const{headers:t={}}=s,r=Object.entries(t);e.$metadata={httpStatusCode:s.statusCode,requestId:o(/^x-[\w-]+-request-?id$/,r),extendedRequestId:o(/^x-[\w-]+-id-2$/,r),cfId:o(/^x-[\w-]+-cf-id$/,r)}}}catch(e){}}throw e}},o=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HttpResponse:()=>n});class n{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{deserializerMiddlewareOption:()=>o,getSerdePlugin:()=>s,serializerMiddlewareOption:()=>a});var n=r(243),i=r(246);const o={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},a={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function s(e,t,r){return{applyToStack:s=>{s.add((0,n.deserializerMiddleware)(e,r),o),s.add((0,i.serializerMiddleware)(e,t),a)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{serializerMiddleware:()=>i});var n=r(128);const i=(e,t)=>(r,i)=>async o=>{const a=e,s=i.endpointV2?async()=>(0,n.toEndpointV1)(i.endpointV2):a.endpoint;if(!s)throw new Error("No valid endpoint provider available.");const c=await t(o.input,{...e,endpoint:s});return r({...o,request:c})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ChecksumStream:()=>i});const n="function"==typeof ReadableStream?ReadableStream:function(){};class i extends n{}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createChecksumStream:()=>a});var n=r(225),i=r(249),o=r(247);const a=({expectedChecksum:e,checksum:t,source:r,checksumSourceLocation:a,base64Encoder:s})=>{if(!(0,i.isReadableStream)(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);const c=s??n.toBase64;if("function"!=typeof TransformStream)throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");const l=new TransformStream({start(){},async transform(e,r){t.update(e),r.enqueue(e)},async flush(r){const n=await t.digest(),i=c(n);if(e!==i){const t=new Error(`Checksum mismatch: expected "${e}" but received "${i}" in response header "${a}".`);r.error(t)}else r.terminate()}});r.pipeThrough(l);const u=l.readable;return Object.setPrototypeOf(u,o.ChecksumStream.prototype),u}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isBlob:()=>i,isReadableStream:()=>n});const n=e=>"function"==typeof ReadableStream&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),i=e=>"function"==typeof Blob&&(e?.constructor?.name===Blob.name||e instanceof Blob)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createBufferedReadable:()=>o,createBufferedReadableStream:()=>i,flush:()=>s,merge:()=>a,modeOf:()=>l,sizeOf:()=>c});var n=r(251);function i(e,t,r){const i=e.getReader();let o=!1,u=0;const d=["",new n.ByteArrayCollector(e=>new Uint8Array(e))];let p=-1;const f=async e=>{const{value:n,done:h}=await i.read(),m=n;if(h){if(-1!==p){const t=s(d,p);c(t)>0&&e.enqueue(t)}e.close()}else{const n=l(m,!1);if(p!==n&&(p>
1=0&&e.enqueue(s(d,p)),p=n),-1===p)return void e.enqueue(m);const i=c(m);u+=i;const h=c(d[p]);if(i>=t&&0===h)e.enqueue(m);else{const n=a(d,p,m);!o&&u>2*t&&(o=!0,r?.warn(`@smithy/util-stream - stream chunk size ${i} is below threshold of ${t}, automatically buffering.`)),n>=t?e.enqueue(s(d,p)):await f(e)}}};return new ReadableStream({pull:f})}const o=i;function a(e,t,r){switch(t){case 0:return e[0]+=r,c(e[0]);case 1:case 2:return e[t].push(r),c(e[t])}}function s(e,t){switch(t){case 0:const r=e[0];return e[0]="",r;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function c(e){return e?.byteLength??e?.length??0}function l(e,t=!0){return t&&"undefined"!=typeof Buffer&&e instanceof Buffer?2:e instanceof Uint8Array?1:"string"==typeof e?0:-1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ByteArrayCollector:()=>n});class n{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(1===this.byteArrays.length){const e=this.byteArrays[0];return this.reset(),e}const e=this.allocByteArray(this.byteLength);let t=0;for(let r=0;r<this.byteArrays.length;++r){const n=this.byteArrays[r];e.set(n,t),t+=n.byteLength}return this.reset(),e}reset(){this.byteArrays=[],this.byteLength=0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAwsChunkedEncodingStream:()=>n});const n=(e,t)=>{const{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:i,checksumLocationName:o,streamHasher:a}=t,s=void 0!==r&&void 0!==n&&void 0!==i&&void 0!==o&&void 0!==a,c=s?a(i,e):void 0,l=e.getReader();return new ReadableStream({async pull(e){const{value:t,done:i}=await l.read();if(i){if(e.enqueue("0\r\n"),s){const t=r(await c);e.enqueue(`${o}:${t}\r\n`),e.enqueue("\r\n")}e.close()}else e.enqueue(`${(n(t)||0).toString(16)}\r\n${t}\r\n`)}})}},(e,t,r)=>{"use strict";async function n(e,t){let r=0;const n=[],i=e.getReader();let o=!1;for(;!o;){const{done:e,value:a}=await i.read();if(a&&(n.push(a),r+=a?.byteLength??0),r>=t)break;o=e}i.releaseLock();const a=new Uint8Array(Math.min(t,r));let s=0;for(const e of n){if(e.byteLength>a.byteLength-s){a.set(e.subarray(0,a.byteLength-s),s);break}a.set(e,s),s+=e.length}return a}r.r(t),r.d(t,{headStream:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{sdkStreamMixin:()=>l});var n=r(225),i=r(239),o=r(228),a=r(255),s=r(249);const c="The stream has already been transformed.",l=e=>{if(!u(e)&&!(0,s.isReadableStream)(e)){throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${e?.__proto__?.constructor?.name||e}`)}let t=!1;const r=async()=>{if(t)throw new Error(c);return t=!0,await(0,a.streamCollector)(e)};return Object.assign(e,{transformToByteArray:r,transformToString:async e=>{const t=await r();if("base64"===e)return(0,n.toBase64)(t);if("hex"===e)return(0,i.toHex)(t);if(void 0===e||"utf8"===e||"utf-8"===e)return(0,o.toUtf8)(t);if("function"==typeof TextDecoder)return new TextDecoder(e).decode(t);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(c);if(t=!0,u(e))return(e=>{if("function"!=typeof e.stream)throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return e.stream()})(e);if((0,s.isReadableStream)(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},u=e=>"function"==typeof Blob&&e instanceof Blob},(e,t,r)=>{"use strict";r.r(t),r.d(t,{streamCollector:()=>i});var n=r(223);const i=async e=>"function"==typeof Blob&&e instanceof Blob||"Blob"===e.constructor?.name?void 0!==Blob.prototype.arrayBuffer?new Uint8Array(await e.arrayBuffer()):async function(e){const t=await function(e){return new Promise((t,r)=>{const n=new FileReader;n.onloadend=()=>{if(2!==n.readyState)return r(new Error("Reader aborted too early"));const e=n.result??"",i=e.indexOf(","),o=i>-1?i+1:e.length;t(e.substring(o))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)})}(e),r=(0,n.fromBase64)(t);return new Uint8Array(r)}(e):async function(e){const t=[],r=e.getReader();let n=!1,i=0;for(;!n;){const{done:e,value:o}=await r.read();o&&(t.push(o),i+=o.length),n=e}const o=new Uint8Array(i);let a=0;for(const e of t)o.set(e,a),a+=e.length;return o}(e)},(e,t,r)=>{"use strict";async function n(e){"function"==typeof e.stream&&(e=e.stream());return e.tee()}r.r(t),r.d(t,{splitStream:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isBrowserNetworkError:()=>s,isClockSkewCorrectedError:()=>a,isClockSkewError:()=>o,isNodeJsHttp2TransientError:()=>d,isRetryableByTrait:()=>i,isServerError:()=>u,isThrottlingError:()=>c,isTransientError:()=>l});var n=r(258);const i=e=>void 0!==e?.$retryable,o=e=>n.CLOCK_SKEW_ERROR_CODES.includes(e.name),a=e=>e.$metadata?.clockSkewCorrected,s=e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return!!(e&&e instanceof TypeError)&&t.has(e.message)},c=e=>
1429===e.$metadata?.httpStatusCode||n.THROTTLING_ERROR_CODES.includes(e.name)||1==e.$retryable?.throttling,l=(e,t=0)=>i(e)||a(e)||"InvalidSignatureException"===e.name&&e.message?.includes("Signature expired")||n.TRANSIENT_ERROR_CODES.includes(e.name)||n.NODEJS_TIMEOUT_ERROR_CODES.includes(e?.code||"")||n.NODEJS_NETWORK_ERROR_CODES.includes(e?.code||"")||n.TRANSIENT_ERROR_STATUS_CODES.includes(e.$metadata?.httpStatusCode||0)||s(e)||d(e)||void 0!==e.cause&&t<=10&&l(e.cause,t+1),u=e=>{if(void 0!==e.$metadata?.httpStatusCode){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!l(e)}return!1};function d(e){return"ERR_HTTP2_STREAM_ERROR"===e.code&&e.message.includes("NGHTTP2_REFUSED_STREAM")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CLOCK_SKEW_ERROR_CODES:()=>n,NODEJS_NETWORK_ERROR_CODES:()=>c,NODEJS_TIMEOUT_ERROR_CODES:()=>s,THROTTLING_ERROR_CODES:()=>i,TRANSIENT_ERROR_CODES:()=>o,TRANSIENT_ERROR_STATUS_CODES:()=>a});const n=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],i=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],o=["TimeoutError","RequestTimeout","RequestTimeoutException"],a=[500,502,503,504],s=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],c=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_RETRY_DELAY_BASE:()=>n,INITIAL_RETRY_TOKENS:()=>a,INVOCATION_ID_HEADER:()=>u,MAXIMUM_RETRY_DELAY:()=>i,NO_RETRY_INCREMENT:()=>l,REQUEST_HEADER:()=>d,RETRY_COST:()=>s,THROTTLING_RETRY_DELAY_BASE:()=>o,TIMEOUT_RETRY_COST:()=>c});const n=100,i=2e4,o=500,a=500,s=5,c=10,l=1,u="amz-sdk-invocation-id",d="amz-sdk-request"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getRetryAfterHint:()=>a,parseRetryAfterHeader:()=>o});var n=r(244),i=r(231);function o(e,t){if(n.HttpResponse.isInstance(e))for(const r of Object.keys(e.headers)){const n=r.toLowerCase();if("retry-after"===n){const n=e.headers[r];let o=NaN;if(n.endsWith("GMT"))try{o=((0,i.parseRfc7231DateTime)(n).getTime()-Date.now())/1e3}catch(e){t?.trace?.("Failed to parse retry-after header"),t?.trace?.(e)}else n.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?o=Number(n.match(/ GMT, ([\d.]+)$/)?.[1]):n.match(/^((\d+)|(\d+\.\d+))$/)?o=Number(n):Date.parse(n)>=Date.now()&&(o=(Date.parse(n)-Date.now())/1e3);if(isNaN(o))return;return new Date(Date.now()+1e3*o)}if("x-amz-retry-after"===n){const n=e.headers[r],i=Number(n);return isNaN(i)?void t?.trace?.(`Failed to parse x-amz-retry-after=${n}`):new Date(Date.now()+i)}}}function a(e,t){return o(e,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{asSdkError:()=>n});const n=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):"string"==typeof e?new Error(e):new Error(`AWS SDK error wrapper for ${e}`)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AdaptiveRetryStrategy:()=>a});var n=r(263),i=r(264),o=r(201);class a{mode=o.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){const{rateLimiter:r}=t??{};this.rateLimiter=r??new n.DefaultRateLimiter,this.standardRetryStrategy=t?new i.StandardRetryStrategy({maxAttempts:"number"==typeof e?e:3,...t}):new i.StandardRetryStrategy(e)}async acquireInitialRetryToken(e){const t=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),t}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);const r=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);return await this.rateLimiter.getSendToken(),r}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DefaultRateLimiter:()=>i});var n=r(257);class i{static setTimeoutFn=(e,t)=>setTimeout(e,t);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let t;this.updateMeasuredRate();const r=e;
1if("THROTTLING"===r?.errorType||(0,n.isThrottlingError)(r?.error??e)){const e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());const i=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(i)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(e){if(this.enabled){for(this.refillTokenBucket();e>this.availableTokens;){const t=(e-this.availableTokens)/this.fillRate*1e3;await new Promise(e=>i.setTimeoutFn(e,t)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp)return void(this.lastTimestamp=e);const t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}
1cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount++,t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{StandardRetryStrategy:()=>d});var n=r(265),i=r(266),o=r(201),a=r(259),s=r(203);const c=1,l=2,u=3;class d{mode=o.RETRY_MODES.STANDARD;retryBackoffStrategy;capacity=a.INITIAL_RETRY_TOKENS;maxAttemptsProvider;baseDelay;constructor(e){"number"==typeof e?this.maxAttemptsProvider=async()=>e:"function"==typeof e?this.maxAttemptsProvider=e:e&&"object"==typeof e&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>o.DEFAULT_MAX_ATTEMPTS,this.baseDelay??=s.Retry.delay(),this.retryBackoffStrategy??=new n.DefaultRetryBackoffStrategy}async acquireInitialRetryToken(e){return new i.DefaultRetryToken(s.Retry.delay(),0,void 0,s.Retry.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,t){const r=await this.getMaxAttempts(),n=this.retryCode(e,t,r),o=0===n,a=e.isLongPoll?.();if(o||a){const r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?s.Retry.throttlingDelay():this.baseDelay);const c=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount());let l=c;if(t.retryAfterHint instanceof Date&&(l=Math.max(c,Math.min(t.retryAfterHint.getTime()-Date.now(),c+5e3))),o){const t=this.getCapacityCost(r);this.capacity-=t;const n=new i.DefaultRetryToken(0,e.getRetryCount()+1,t,e.isLongPoll?.()??!1);return await new Promise(e=>setTimeout(e,l)),n.$retryLog.acquisitionDelay=l,n}{const e=s.Retry.v2026&&n===u&&a?l:0;e>0&&await new Promise(t=>setTimeout(t,e))}}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.min(a.INITIAL_RETRY_TOKENS,this.capacity+(e.getRetryCost()??a.NO_RETRY_INCREMENT))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn(`Max attempts provider could not resolve. Using default of ${o.DEFAULT_MAX_ATTEMPTS}`),o.DEFAULT_MAX_ATTEMPTS}}retryCode(e,t,r){const n=e.getRetryCount()+1,i=this.isRetryableError(t.errorType)?0:c,o=n<r?0:l,a=this.capacity>=this.getCapacityCost(t.errorType)?0:u;return i||o||a}getCapacityCost(e){return e===s.Retry.modifiedCostType()?s.Retry.throttlingCost():s.Retry.cost()}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DefaultRetryBackoffStrategy:()=>o});var n=r(259),i=r(203);class o{x=i.Retry.delay();computeNextBackoffDelay(e){const t=Math.random()*Math.min(this.x*2**e,n.MAXIMUM_RETRY_DELAY);return Math.floor(t)}setDelayBase(e){this.x=e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DefaultRetryToken:()=>i});var n=r(259);class i{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,t,r,n){this.delay=e,this.count=t,this.cost=r,this.longPoll=n}getRetryCount(){return this.count}getRetryDelay(){return Math.min(n.MAXIMUM_RETRY_DELAY,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ConfiguredRetryStrategy:()=>o});var n=r(264),i=r(203);class o extends n.StandardRetryStrategy{computeNextBackoffDelay;constructor(e,t=i.Retry.delay()){super("function"==typeof e?e:async()=>e),this.computeNextBackoffDelay="number"==typeof t?()=>t:t,this.retryBackoffStrategy.computeNextBackoffDelay=e=>{const t=e+1;return this.computeNextBackoffDelay(t)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AdaptiveRetryStrategy:()=>a});var n=r(263),i=r(201),o=r(269);class a extends o.StandardRetryStrategy{rateLimiter;constructor(e,t){const{rateLimiter:r,...o}=t??{};super(e,o),this.rateLimiter=r??new n.DefaultRateLimiter,this.mode=i.RETRY_MODES.ADAPTIVE}async retry(e,t){return super.retry(e,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:e=>{this.rateLimiter.updateClientSendingRate(e)}})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{StandardRetryStrategy:()=>f});
1var n=r(192),i=r(244),o=r(222),a=r(257),s=r(201),c=r(259),l=r(261),u=r(270),d=r(271),p=r(272);class f{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=s.RETRY_MODES.STANDARD;constructor(e,t){this.maxAttemptsProvider=e,this.retryDecider=t?.retryDecider??p.defaultRetryDecider,this.delayDecider=t?.delayDecider??d.defaultDelayDecider,this.retryQuota=t?.retryQuota??(0,u.getDefaultRetryQuota)(c.INITIAL_RETRY_TOKENS)}shouldRetry(e,t,r){return t<r&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch(t){e=s.DEFAULT_MAX_ATTEMPTS}return e}async retry(e,t,r){let i,s=0,u=0;const d=await this.getMaxAttempts(),{request:p}=t;for(n.HttpRequest.isInstance(p)&&(p.headers[c.INVOCATION_ID_HEADER]=(0,o.v4)());;)try{n.HttpRequest.isInstance(p)&&(p.headers[c.REQUEST_HEADER]=`attempt=${s+1}; max=${d}`),r?.beforeRequest&&await r.beforeRequest();const{response:o,output:a}=await e(t);return r?.afterRequest&&r.afterRequest(o),this.retryQuota.releaseRetryTokens(i),a.$metadata.attempts=s+1,a.$metadata.totalRetryDelay=u,{response:o,output:a}}catch(e){const t=(0,l.asSdkError)(e);if(s++,this.shouldRetry(t,s,d)){i=this.retryQuota.retrieveRetryTokens(t);const e=this.delayDecider((0,a.isThrottlingError)(t)?c.THROTTLING_RETRY_DELAY_BASE:c.DEFAULT_RETRY_DELAY_BASE,s),r=h(t.$response),n=Math.max(r||0,e);u+=n,await new Promise(e=>setTimeout(e,n));continue}throw t.$metadata||(t.$metadata={}),t.$metadata.attempts=s,t.$metadata.totalRetryDelay=u,t}}}const h=e=>{if(!i.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find(e=>"retry-after"===e.toLowerCase());if(!t)return;const r=e.headers[t],n=Number(r);if(!Number.isNaN(n))return Math.min(1e3*n,2e4);const o=new Date(r);return Math.min(o.getTime()-Date.now(),2e4)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDefaultRetryQuota:()=>i});var n=r(259);const i=(e,t)=>{const r=e,i=t?.noRetryIncrement??n.NO_RETRY_INCREMENT,o=t?.retryCost??n.RETRY_COST,a=t?.timeoutRetryCost??n.TIMEOUT_RETRY_COST;let s=e;const c=e=>"TimeoutError"===e.name?a:o,l=e=>c(e)<=s;return Object.freeze({hasRetryTokens:l,retrieveRetryTokens:e=>{if(!l(e))throw new Error("No retry token available");const t=c(e);return s-=t,t},releaseRetryTokens:e=>{s+=e??i,s=Math.min(s,r)}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultDelayDecider:()=>i});var n=r(259);const i=(e,t)=>Math.floor(Math.min(n.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultRetryDecider:()=>i});var n=r(257);const i=e=>!!e&&((0,n.isRetryableByTrait)(e)||(0,n.isClockSkewError)(e)||(0,n.isThrottlingError)(e)||(0,n.isTransientError)(e))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONFIG_MAX_ATTEMPTS:()=>l,CONFIG_RETRY_MODE:()=>f,ENV_MAX_ATTEMPTS:()=>c,ENV_RETRY_MODE:()=>p,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>u,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>h,resolveRetryConfig:()=>d});var n=r(135),i=r(262),o=r(264),a=r(201),s=r(203);const c="AWS_MAX_ATTEMPTS",l="max_attempts",u={environmentVariableSelector:e=>{const t=e[c];if(!t)return;const r=parseInt(t);if(Number.isNaN(r))throw new Error(`Environment variable ${c} mast be a number, got "${t}"`);return r},configFileSelector:e=>{const t=e[l];if(!t)return;const r=parseInt(t);if(Number.isNaN(r))throw new Error(`Shared config file entry ${l} mast be a number, got "${t}"`);return r},default:a.DEFAULT_MAX_ATTEMPTS},d=(e,t)=>{const{retryStrategy:r,retryMode:c}=e,{defaultMaxAttempts:l=a.DEFAULT_MAX_ATTEMPTS,defaultBaseDelay:u=s.Retry.delay()}=t??{},d=(0,n.normalizeProvider)(e.maxAttempts??l);let p=r?Promise.resolve(r):void 0;return Object.assign(e,{maxAttempts:d,retryStrategy:()=>p??=(async()=>{const e=await d();return await(0,n.normalizeProvider)(c)()===a.RETRY_MODES.ADAPTIVE?new i.AdaptiveRetryStrategy(d,{maxAttempts:e,baseDelay:u}):new o.StandardRetryStrategy({maxAttempts:e,baseDelay:u})})()})},p="AWS_RETRY_MODE",f="retry_mode",h={environmentVariableSelector:e=>e[p],configFileSelector:e=>e[f],default:a.DEFAULT_RETRY_MODE}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getOmitRetryHeadersPlugin:()=>s,omitRetryHeadersMiddleware:()=>o,omitRetryHeadersMiddlewareOptions:()=>a});var n=r(192),i=r(259);const o=()=>e=>async t=>{const{request:r}=t;
1return n.HttpRequest.isInstance(r)&&(delete r.headers[i.INVOCATION_ID_HEADER],delete r.headers[i.REQUEST_HEADER]),e(t)},a={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},s=e=>({applyToStack:e=>{e.addRelativeTo(o(),a)}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{deserializerMiddlewareOption:()=>o,getSchemaSerdePlugin:()=>s,serializerMiddlewareOption:()=>a});var n=r(276),i=r(278);const o={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},a={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function s(e){return{applyToStack:t=>{t.add((0,i.schemaSerializationMiddleware)(e),a),t.add((0,n.schemaDeserializationMiddleware)(e),o),e.protocol.setSerdeContext(e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{schemaDeserializationMiddleware:()=>a});var n=r(132),i=r(244),o=r(277);const a=e=>(t,r)=>async a=>{const{response:c}=await t(a),{operationSchema:l}=(0,n.getSmithyContext)(r),[,u,d,p,f,h]=l??[];try{return{response:c,output:await e.protocol.deserializeResponse((0,o.operation)(u,d,p,f,h),{...e,...r},c)}}catch(e){if(Object.defineProperty(e,"$response",{value:c,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in e)){const t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{e.message+="\n  "+t}catch(e){r.logger&&"NoOpLogger"!==r.logger?.constructor?.name?r.logger?.warn?.(t):console.warn(t)}void 0!==e.$responseBodyText&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(i.HttpResponse.isInstance(c)){const{headers:t={},statusCode:r}=c,n=Object.entries(t);e.$metadata={httpStatusCode:r,requestId:s(/^x-[\w-]+-request-?id$/,n),extendedRequestId:s(/^x-[\w-]+-id-2$/,n),cfId:s(/^x-[\w-]+-cf-id$/,n)}}}catch(e){}}throw e}},s=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{operation:()=>n});const n=(e,t,r,n,i)=>({name:t,namespace:e,traits:r,input:n,output:i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{schemaSerializationMiddleware:()=>a});var n=r(132),i=r(128),o=r(277);const a=e=>(t,r)=>async a=>{const{operationSchema:s}=(0,n.getSmithyContext)(r),[,c,l,u,d,p]=s??[],f=r.endpointV2?async()=>(0,i.toEndpointV1)(r.endpointV2):e.endpoint,h=await e.protocol.serializeRequest((0,o.operation)(c,l,u,d,p),a.input,{...e,...r,endpoint:f});return t({...a,request:h})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultFirehoseHttpAuthSchemeParametersProvider:()=>a,defaultFirehoseHttpAuthSchemeProvider:()=>s,resolveHttpAuthSchemeConfig:()=>c});var n=r(280),i=r(132),o=r(135);const a=async(e,t,r)=>({operation:(0,i.getSmithyContext)(t).operation,region:await(0,o.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const s=e=>{const t=[];return e.operation,t.push(function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"firehose",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}(e)),t},c=e=>{const t=(0,n.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,o.normalizeProvider)(e.authSchemePreference??[])})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resolveAWSSDKSigV4Config:()=>c,resolveAwsSdkSigV4Config:()=>s});var n=r(281),i=r(282),o=r(196),a=r(283);const s=e=>{let t,r=e.credentials,s=!!e.credentials;Object.defineProperty(e,"credentials",{set(a){a&&a!==r&&a!==t&&(s=!0),r=a;const c=function(e,{credentials:t,credentialDefaultProvider:r}){let n;n=t?t?.memoized?t:(0,i.memoizeIdentityProvider)(t,i.isIdentityExpired,i.doesIdentityRequireRefresh):r?(0,o.normalizeProvider)(r(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")};return n.memoized=!0,n}(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),l=function(e,t){if(t.configBound)return t;const r=async r=>t({...r,callerClientConfig:e});return r.memoized=t.memoized,r.configBound=!0,r}(e,c);if(s&&!l.attributed){const e="object"==typeof r&&null!==r;t=async t=>{const r=await l(t);return!e||r.$source&&0!==Object.keys(r.$source).length?r:(0,n.setCredentialFeature)(r,"CREDENTIALS_CODE","e")},t.memoized=l.memoized,t.configBound=l.configBound,t.attributed=!0}
1else t=l},get:()=>t,enumerable:!0,configurable:!0}),e.credentials=r;const{signingEscapePath:c=!0,systemClockOffset:l=e.systemClockOffset||0,sha256:u}=e;let d;d=e.signer?(0,o.normalizeProvider)(e.signer):e.regionInfoProvider?()=>(0,o.normalizeProvider)(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,r])=>{const{signingRegion:n,signingService:i}=t;e.signingRegion=e.signingRegion||n||r,e.signingName=e.signingName||i||e.serviceId;const o={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:u,uriEscapePath:c};return new(e.signerConstructor||a.SignatureV4)(o)}):async t=>{const r=(t=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,o.normalizeProvider)(e.region)(),properties:{}},t)).signingRegion,n=t.signingName;e.signingRegion=e.signingRegion||r,e.signingName=e.signingName||n||e.serviceId;const i={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:u,uriEscapePath:c};return new(e.signerConstructor||a.SignatureV4)(i)};return Object.assign(e,{systemClockOffset:l,signingEscapePath:c,signer:d})},c=s},(e,t,r)=>{"use strict";function n(e,t,r){return e.$source||(e.$source={}),e.$source[t]=r,e}r.r(t),r.d(t,{setCredentialFeature:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EXPIRATION_MS:()=>i,createIsIdentityExpiredFunction:()=>n,doesIdentityRequireRefresh:()=>a,isIdentityExpired:()=>o,memoizeIdentityProvider:()=>s});const n=e=>function(t){return a(t)&&t.expiration.getTime()-Date.now()<e},i=3e5,o=n(i),a=e=>void 0!==e.expiration,s=(e,t,r)=>{if(void 0===e)return;const n="function"!=typeof e?async()=>Promise.resolve(e):e;let i,o,a,s=!1;const c=async e=>{o||(o=n(e));try{i=await o,a=!0,s=!1}finally{o=void 0}return i};return void 0===t?async e=>(a&&!e?.forceRefresh||(i=await c(e)),i):async e=>(a&&!e?.forceRefresh||(i=await c(e)),s?i:r(i)?t(i)?(await c(e),i):i:(s=!0,i))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SignatureV4:()=>h});var n=r(239),i=r(241),o=r(284),a=r(285),s=r(288),c=r(290),l=r(291),u=r(292),d=r(293),p=r(294),f=r(295);class h extends a.SignatureV4Base{headerFormatter=new o.HeaderFormatter;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:i,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:i,uriEscapePath:o})}async presign(e,t={}
1){const{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:i,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:d,signingRegion:h,signingService:m}=t,g=await this.credentialProvider();this.validateResolvedCredentials(g);const y=h??await this.regionProvider(),{longDate:v,shortDate:b}=this.formatDate(r);if(n>s.MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const _=(0,c.createScope)(b,y,m??this.service),S=(0,p.moveHeadersToQuery)((0,f.prepareRequest)(e),{unhoistableHeaders:o,hoistableHeaders:d});g.sessionToken&&(S.query[s.TOKEN_QUERY_PARAM]=g.sessionToken),S.query[s.ALGORITHM_QUERY_PARAM]=s.ALGORITHM_IDENTIFIER,S.query[s.CREDENTIAL_QUERY_PARAM]=`${g.accessKeyId}/${_}`,S.query[s.AMZ_DATE_QUERY_PARAM]=v,S.query[s.EXPIRES_QUERY_PARAM]=n.toString(10);const E=(0,l.getCanonicalHeaders)(S,i,a);return S.query[s.SIGNED_HEADERS_QUERY_PARAM]=this.getCanonicalHeaderList(E),S.query[s.SIGNATURE_QUERY_PARAM]=await this.getSignature(v,_,this.getSigningKey(g,y,b,m),this.createCanonicalRequest(S,E,await(0,u.getPayloadHash)(e,this.sha256))),S}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:i,signingRegion:o,signingService:a,eventStreamCredentials:l}){const d=o??await this.regionProvider(),{shortDate:p,longDate:f}=this.formatDate(r),h=(0,c.createScope)(p,d,a??this.service),m=await(0,u.getPayloadHash)({headers:{},body:t},this.sha256),g=new this.sha256;g.update(e);const y=(0,n.toHex)(await g.digest()),v=[s.EVENT_ALGORITHM_IDENTIFIER,f,h,i,y,m].join("\n");return this.signString(v,{signingDate:r,signingRegion:d,signingService:a,eventStreamCredentials:l})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:i}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:o,eventStreamCredentials:a}={}){const s=a??await this.credentialProvider();this.validateResolvedCredentials(s);const c=r??await this.regionProvider(),{shortDate:l}
1=this.formatDate(t),u=new this.sha256(await this.getSigningKey(s,c,l,o));return u.update((0,i.toUint8Array)(e)),(0,n.toHex)(await u.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:i,signingService:o}={}){const a=await this.credentialProvider();this.validateResolvedCredentials(a);const p=i??await this.regionProvider(),h=(0,f.prepareRequest)(e),{longDate:m,shortDate:g}=this.formatDate(t),y=(0,c.createScope)(g,p,o??this.service);h.headers[s.AMZ_DATE_HEADER]=m,a.sessionToken&&(h.headers[s.TOKEN_HEADER]=a.sessionToken);const v=await(0,u.getPayloadHash)(h,this.sha256);!(0,d.hasHeader)(s.SHA256_HEADER,h.headers)&&this.applyChecksum&&(h.headers[s.SHA256_HEADER]=v);const b=(0,l.getCanonicalHeaders)(h,n,r),_=await this.getSignature(m,y,this.getSigningKey(a,p,g,o),this.createCanonicalRequest(h,b,v));return h.headers[s.AUTH_HEADER]=`${s.ALGORITHM_IDENTIFIER} Credential=${a.accessKeyId}/${y}, SignedHeaders=${this.getCanonicalHeaderList(b)}, Signature=${_}`,h}async getSignature(e,t,r,o){const a=await this.createStringToSign(e,t,o,s.ALGORITHM_IDENTIFIER),c=new this.sha256(await r);return c.update((0,i.toUint8Array)(a)),(0,n.toHex)(await c.digest())}getSigningKey(e,t,r,n){return(0,c.getSigningKey)(this.sha256,e,r,t,n||this.service)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HeaderFormatter:()=>a,Int64:()=>c});var n,i=r(226),o=r(239);class a{format(e){const t=[];for(const r of Object.keys(e)){const n=(0,i.fromUtf8)(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const a=new DataView(new ArrayBuffer(3+e.value.byteLength));a.setUint8(0,6),a.setUint16(1,e.value.byteLength,!1);const l=new Uint8Array(a.buffer);return l.set(e.value,3),l;case"string":const u=(0,i.fromUtf8)(e.value),d=new DataView(new ArrayBuffer(3+u.byteLength));d.setUint8(0,7),d.setUint16(1,u.byteLength,!1);const p=new Uint8Array(d.buffer);return p.set(u,3),p;case"timestamp":const f=new Uint8Array(9);return f[0]=8,f.set(c.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!s.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const h=new Uint8Array(17);return h[0]=9,h.set((0,o.fromHex)(e.value.replace(/\-/g,"")),1),h}}}!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(n||(n={}));const s=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class c{bytes;constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&l(t),new c(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&l(e),parseInt((0,o.toHex)(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function l(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SignatureV4Base:()=>l});var n=r(135),i=r(286),o=r(239),a=r(241),s=r(287),c=r(289);class l{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:i,sha256:o,uriEscapePath:a=!0}){this.service=i,this.sha256=o,this.uriEscapePath=a,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=(0,n.normalizeProvider)(r),this.credentialProvider=(0,n.normalizeProvider)(t)}
1createCanonicalRequest(e,t,r){const n=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(0,s.getCanonicalQuery)(e)}\n${n.map(e=>`${e}:${t[e]}`).join("\n")}\n\n${n.join(";")}\n${r}`}async createStringToSign(e,t,r,n){const i=new this.sha256;i.update((0,a.toUint8Array)(r));const s=await i.digest();return`${n}\n${e}\n${t}\n${(0,o.toHex)(s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const r of e.split("/"))0!==r?.length&&"."!==r&&(".."===r?t.pop():t.push(r));const r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return(0,i.escapeUri)(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}formatDate(e){const t=(0,c.iso8601)(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{escapeUri:()=>n});const n=e=>encodeURIComponent(e).replace(/[!'()*]/g,i),i=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getCanonicalQuery:()=>o});var n=r(286),i=r(288);const o=({query:e={}})=>{const t=[],r={};for(const o of Object.keys(e)){if(o.toLowerCase()===i.SIGNATURE_HEADER)continue;const a=(0,n.escapeUri)(o);t.push(a);const s=e[o];"string"==typeof s?r[a]=`${a}=${(0,n.escapeUri)(s)}`:Array.isArray(s)&&(r[a]=s.slice(0).reduce((e,t)=>e.concat([`${a}=${(0,n.escapeUri)(t)}`]),[]).sort().join("&"))}return t.sort().map(e=>r[e]).filter(e=>e).join("&")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ALGORITHM_IDENTIFIER:()=>w,ALGORITHM_IDENTIFIER_V4A:()=>T,ALGORITHM_QUERY_PARAM:()=>n,ALWAYS_UNSIGNABLE_HEADERS:()=>b,AMZ_DATE_HEADER:()=>p,AMZ_DATE_QUERY_PARAM:()=>o,AUTH_HEADER:()=>d,CREDENTIAL_QUERY_PARAM:()=>i,DATE_HEADER:()=>f,EVENT_ALGORITHM_IDENTIFIER:()=>x,EXPIRES_QUERY_PARAM:()=>s,GENERATED_HEADERS:()=>h,HOST_HEADER:()=>v,KEY_TYPE_IDENTIFIER:()=>R,MAX_CACHE_SIZE:()=>A,MAX_PRESIGNED_TTL:()=>P,PROXY_HEADER_PATTERN:()=>_,REGION_SET_PARAM:()=>u,SEC_HEADER_PATTERN:()=>S,SHA256_HEADER:()=>g,SIGNATURE_HEADER:()=>m,SIGNATURE_QUERY_PARAM:()=>c,SIGNED_HEADERS_QUERY_PARAM:()=>a,TOKEN_HEADER:()=>y,TOKEN_QUERY_PARAM:()=>l,UNSIGNABLE_PATTERNS:()=>E,UNSIGNED_PAYLOAD:()=>O});const n="X-Amz-Algorithm",i="X-Amz-Credential",o="X-Amz-Date",a="X-Amz-SignedHeaders",s="X-Amz-Expires",c="X-Amz-Signature",l="X-Amz-Security-Token",u="X-Amz-Region-Set",d="authorization",p=o.toLowerCase(),f="date",h=[d,p,f],m=c.toLowerCase(),g="x-amz-content-sha256",y=l.toLowerCase(),v="host",b={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},_=/^proxy-/,S=/^sec-/,E=[/^proxy-/i,/^sec-/i],w="AWS4-HMAC-SHA256",T="AWS4-ECDSA-P256-SHA256",x="AWS4-HMAC-SHA256-PAYLOAD",O="UNSIGNED-PAYLOAD",A=50,R="aws4_request",P=604800},(e,t,r)=>{"use strict";r.r(t),r.d(t,{iso8601:()=>n,toDate:()=>i});const n=e=>i(e).toISOString().replace(/\.\d{3}Z$/,"Z"),i=e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e},(e,t,r)=>{"use strict";r.r(t),r.d(t,{clearCredentialCache:()=>u,createScope:()=>c,getSigningKey:()=>l});var n=r(239),i=r(241),o=r(288);const a={},s=[],c=(e,t,r)=>`${e}/${t}/${r}/${o.KEY_TYPE_IDENTIFIER}`,l=async(e,t,r,i,c)=>{const l=await d(e,t.secretAccessKey,t.accessKeyId),u=`${r}:${i}:${c}:${(0,n.toHex)(l)}:${t.sessionToken}`;if(u in a)return a[u];for(s.push(u);s.length>o.MAX_CACHE_SIZE;)delete a[s.shift()];let p=`AWS4${t.secretAccessKey}`;for(const t of[r,i,c,o.KEY_TYPE_IDENTIFIER])p=await d(e,p,t);return a[u]=p},u=()=>{s.length=0,Object.keys(a).forEach(e=>{delete a[e]})},d=(e,t,r)=>{const n=new e(t);return n.update((0,i.toUint8Array)(r)),n.digest()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getCanonicalHeaders:()=>i});var n=r(288);const i=({headers:e},t,r)=>{const i={};for(const o of Object.keys(e).sort()){if(null==e[o])continue;const a=o.toLowerCase();(a in n.ALWAYS_UNSIGNABLE_HEADERS||t?.has(a)||n.PROXY_HEADER_PATTERN.test(a)||n.SEC_HEADER_PATTERN.test(a))&&(!r||r&&!r.has(a))||(i[a]=e[o].trim().replace(/\s+/g," "))}return i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getPayloadHash:()=>s});var n=r(239),i=r(241),o=r(242),a=r(288);const s=async({headers:e,body:t},r)=>{for(const t of Object.keys(e))if(t.toLowerCase()===a.SHA256_HEADER)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(0,o.isArrayBuffer)(t)){const e=new r;return e.update((0,i.toUint8Array)(t)),(0,n.toHex)(await e.digest())}return a.UNSIGNED_PAYLOAD}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{deleteHeader:()=>o,getHeaderValue:()=>i,hasHeader:()=>n});const n=(e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},i=(e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return t[r]},o=(e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))e===r.toLowerCase()&&delete t[r]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{moveHeadersToQuery:()=>i});var n=r(192);const i=(e,t={})=>{const{headers:r,query:i={}}=n.HttpRequest.clone(e);for(const e of Object.keys(r)){const n=e.toLowerCase();("x-amz-"===n.slice(0,6)&&!t.unhoistableHeaders?.has(n)||t.hoistableHeaders?.has(n))&&(i[e]=r[e],delete r[e])}return{...e,headers:r,query:i}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{prepareRequest:()=>o});var n=r(192),i=r(288);const o=e=>{e=n.HttpRequest.clone(e);for(const t of Object.keys(e.headers))i.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getRuntimeConfig:()=>m});
1var n=r(297),i=r(298),o=r(319),a=r(321),s=r(322),c=r(323),l=r(341),u=r(201),d=r(240),p=r(343),f=r(347),h=r(348);const m=e=>{const t=(0,l.resolveDefaultsModeConfig)(e),r=()=>t().then(s.loadConfigsForDefaultMode),m=(0,h.getRuntimeConfig)(e);return{...m,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??d.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,o.createDefaultUserAgentProvider)({serviceId:m.serviceId,clientVersion:n.version}),maxAttempts:e?.maxAttempts??u.DEFAULT_MAX_ATTEMPTS,region:e?.region??(0,a.invalidProvider)("Region is missing"),requestHandler:p.FetchHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||u.DEFAULT_RETRY_MODE),sha256:e?.sha256??i.Sha256,streamCollector:e?.streamCollector??f.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(c.DEFAULT_USE_DUALSTACK_ENDPOINT)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(c.DEFAULT_USE_FIPS_ENDPOINT))}}},e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-firehose","description":"AWS SDK for JavaScript Firehose Client for Node.js, Browser and React Native","version":"3.1068.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo firehose","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.20","@aws-sdk/credential-provider-node":"^3.972.55","@aws-sdk/types":"^3.973.12","@smithy/core":"^3.24.6","@smithy/fetch-http-handler":"^5.4.6","@smithy/node-http-handler":"^4.7.6","@smithy/types":"^4.14.3","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/sdk-for-javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-firehose","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-firehose"}}')},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Sha256:()=>n.Sha256,WebCryptoSha256:()=>i.Sha256});var n=r(299),i=r(300)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Sha256:()=>c});var n=r(300),i=r(312),o=r(317),a=r(311),s=r(301),c=function(){function e(e){(0,o.supportsWebCrypto)((0,a.locateWindow)())?this.hash=new n.Sha256(e):this.hash=new i.Sha256(e)}return e.prototype.update=function(e,t){this.hash.update((0,s.convertToBuffer)(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Sha256:()=>a});var n=r(301),i=r(310),o=r(311),a=function(){function e(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return e.prototype.update=function(e){if(!(0,n.isEmptyData)(e)){var t=(0,n.convertToBuffer)(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return(0,o.locateWindow)().crypto.subtle.sign(i.SHA_256_HMAC_ALGO,t,e.toHash).then(function(e){return new Uint8Array(e)})}):(0,n.isEmptyData)(this.toHash)?Promise.resolve(i.EMPTY_DATA_SHA_256):Promise.resolve().then(function(){return(0,o.locateWindow)().crypto.subtle.digest(i.SHA_256_HASH,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array(0),this.secret&&void 0!==this.secret&&(this.key=new Promise(function(t,r){(0,o.locateWindow)().crypto.subtle.importKey("raw",(0,n.convertToBuffer)(e.secret),i.SHA_256_HMAC_ALGO,!1,["sign"]).then(t,r)}
1),this.key.catch(function(){}))},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{convertToBuffer:()=>n.convertToBuffer,isEmptyData:()=>i.isEmptyData,numToUint8:()=>o.numToUint8,uint32ArrayFrom:()=>a.uint32ArrayFrom});var n=r(302),i=r(307),o=r(308),a=r(309)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{convertToBuffer:()=>o});var n=r(303),i="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:n.fromUtf8;function o(e){return e instanceof Uint8Array?e:"string"==typeof e?i(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromUtf8:()=>n.fromUtf8,toUint8Array:()=>i.toUint8Array,toUtf8:()=>o.toUtf8});var n=r(304),i=r(305),o=r(306)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromUtf8:()=>n});const n=e=>(new TextEncoder).encode(e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{toUint8Array:()=>i});var n=r(304);const i=e=>"string"==typeof e?(0,n.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{toUtf8:()=>n});const n=e=>{if("string"==typeof e)return e;if("object"!=typeof e||"number"!=typeof e.byteOffset||"number"!=typeof e.byteLength)throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)}},(e,t,r)=>{"use strict";function n(e){return"string"==typeof e?0===e.length:0===e.byteLength}r.r(t),r.d(t,{isEmptyData:()=>n})},(e,t,r)=>{"use strict";function n(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}r.r(t),r.d(t,{numToUint8:()=>n})},(e,t,r)=>{"use strict";function n(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}r.r(t),r.d(t,{uint32ArrayFrom:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EMPTY_DATA_SHA_256:()=>o,SHA_256_HASH:()=>n,SHA_256_HMAC_ALGO:()=>i});var n={name:"SHA-256"},i={name:"HMAC",hash:n},o=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])},(e,t,r)=>{"use strict";r.r(t),r.d(t,{locateWindow:()=>i});const n={};function i(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Sha256:()=>n.Sha256});var n=r(313)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Sha256:()=>s});var n=r(314),i=r(315),o=r(316),a=r(301),s=function(){function e(e){this.secret=e,this.hash=new o.RawSha256,this.reset()}return e.prototype.update=function(e){if(!(0,a.isEmptyData)(e)&&!this.error)try{this.hash.update((0,a.convertToBuffer)(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return(0,n.__awaiter)(this,void 0,void 0,function(){return(0,n.__generator)(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new o.RawSha256,this.secret){this.outer=new o.RawSha256;var e=function(e){var t=(0,a.convertToBuffer)(e);if(t.byteLength>i.BLOCK_SIZE){var r=new o.RawSha256;r.update(t),t=r.digest()}var n=new Uint8Array(i.BLOCK_SIZE);return n.set(t),n}(this.secret),t=new Uint8Array(i.BLOCK_SIZE);t.set(e);for(var r=0;r<i.BLOCK_SIZE;r++)e[r]^=54,t[r]^=92;this.hash.update(e),this.outer.update(t);for(r=0;r<e.byteLength;r++)e[r]=0}},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>N,__assign:()=>o,__asyncDelegator:()=>x,__asyncGenerator:()=>T,__asyncValues:()=>O,__await:()=>w,__awaiter:()=>h,__classPrivateFieldGet:()=>k,__classPrivateFieldIn:()=>D,__classPrivateFieldSet:()=>M,__createBinding:()=>g,__decorate:()=>s,__disposeResources:()=>F,__esDecorate:()=>l,__exportStar:()=>y,__extends:()=>i,__generator:()=>m,__importDefault:()=>C,__importStar:()=>
vendor: 10,494 bytes, line 1
1I,__makeTemplateObject:()=>A,__metadata:()=>f,__param:()=>c,__propKey:()=>d,__read:()=>b,__rest:()=>a,__rewriteRelativeImportExtension:()=>B,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>_,__spreadArray:()=>E,__spreadArrays:()=>S,__values:()=>v,default:()=>j});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function c(e,t){return function(r,n){t(r,n,e)}}function l(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,l="getter"===c?"get":"setter"===c?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),p=!1,f=r.length-1;f>=0;f--){var h={};for(var m in n)h[m]="access"===m?{}:n[m];for(var m in n.access)h.access[m]=n.access[m];h.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var g=(0,r[f])("accessor"===c?{get:d.get,set:d.set}:d[l],h);if("accessor"===c){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=a(g.get))&&(d.get=s),(s=a(g.set))&&(d.set=s),(s=a(g.init))&&i.unshift(s)}else(s=a(g))&&("field"===c?i.unshift(s):d[l]=s)}u&&Object.defineProperty(u,n.name,d),p=!0}function u(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 d(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function m(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var g=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function y(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||g(t,e,r)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function S(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function E(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function w(e){return this instanceof w?(this.v=e,this):new w(e)}function T(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,l)}}),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,l):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function x(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:w(e[n](t)),done:!1}:i?i(t):t}:i}}function O(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 A(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var R=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},P=function(e){return P=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},P(e)};function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=P(e),n=0;n<r.length;n++)"default"!==r[n]&&g(t,e,r[n]);return R(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function k(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 M(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function D(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function N(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var L="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 L(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}()}function B(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,i,o){return r?t?".jsx":".js":!n||i&&o?n+i+"."+o.toLowerCase()+"js":e}):e}const j={__extends:i,__assign:o,__rest:a,__decorate:s,__param:c,__esDecorate:l,__runInitializers:u,__propKey:d,__setFunctionName:p,__metadata:f,__awaiter:h,__generator:m,__createBinding:g,__exportStar:y,__values:v,__read:b,__spread:_,__spreadArrays:S,__spreadArray:E,__await:w,__asyncGenerator:T,__asyncDelegator:x,__asyncValues:O,__makeTemplateOb
1ject:A,__importStar:I,__importDefault:C,__classPrivateFieldGet:k,__classPrivateFieldSet:M,__classPrivateFieldIn:D,__addDisposableResource:N,__disposeResources:F,__rewriteRelativeImportExtension:B}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BLOCK_SIZE:()=>n,DIGEST_LENGTH:()=>i,INIT:()=>a,KEY:()=>o,MAX_HASHABLE_LENGTH:()=>s});var n=64,i=32,o=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]),a=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],s=Math.pow(2,53)-1},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RawSha256:()=>i});var n=r(315),i=function(){function e(){this.state=Int32Array.from(n.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>n.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===n.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%n.BLOCK_SIZE>=n.BLOCK_SIZE-8){for(var i=this.bufferLength;i<n.BLOCK_SIZE;i++)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(i=this.bufferLength;i<n.BLOCK_SIZE-8;i++)t.setUint8(i,0);t.setUint32(n.BLOCK_SIZE-8,Math.floor(e/4294967296),!0),t.setUint32(n.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!0}var o=new Uint8Array(n.DIGEST_LENGTH);for(i=0;i<8;i++)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=0;d<n.BLOCK_SIZE;d++){if(d<16)this.temp[d]=(255&e[4*d])<<24|(255&e[4*d+1])<<16|(255&e[4*d+2])<<8|255&e[4*d+3];else{var p=this.temp[d-2],f=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,h=((p=this.temp[d-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3;this.temp[d]=(f+this.temp[d-7]|0)+(h+this.temp[d-16]|0)}var m=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&l)|0)+(u+(n.KEY[d]+this.temp[d]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&o^i&o)|0;u=l,l=c,c=s,s=a+m|0,a=o,o=i,i=r,r=m+g|0}t[0]+=r,t[1]+=i,t[2]+=o,t[3]+=a,t[4]+=s,t[5]+=c,t[6]+=l,t[7]+=u},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{supportsSecureRandom:()=>n.supportsSecureRandom,supportsSubtleCrypto:()=>n.supportsSubtleCrypto,supportsWebCrypto:()=>n.supportsWebCrypto,supportsZeroByteGCM:()=>n.supportsZeroByteGCM});var n=r(318)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{supportsSecureRandom:()=>a,supportsSubtleCrypto:()=>s,supportsWebCrypto:()=>o,supportsZeroByteGCM:()=>c});var n=r(314),i=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function o(e){return!(!a(e)||"object"!=typeof e.crypto.subtle)&&s(e.crypto.subtle)}function a(e){return"object"==typeof e&&"object"==typeof e.crypto&&"function"==typeof e.crypto.getRandomValues}function s(e){return e&&i.every(function(t){return"function"==typeof e[t]})}function c(e){return(0,n.__awaiter)(this,void 0,void 0,function(){var t;return(0,n.__generator)(this,function(r){switch(r.label){case 0:if(!s(e))return[2,!1];r.label=1;case 1:return r.trys.push([1,4,,5]),[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return t=r.sent(),[4,e.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new Uint8Array(0))];case 3:return[2,16===r.sent().byteLength];case 4:return r.sent(),[2,!1];case 5:return[2]}})})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createDefaultUserAgentProvider:()=>i,createUserAgentStringParsingProvider:()=>n.createUserAgentStringParsingProvider,defaultUserAgent:()=>a,fallback:()=>o});var n=r(320);const i=({serviceId:e,clientVersion:t})=>async r=>{const n="undefined"!=typeof window?window.navigator:void 0,i=n?.userAgent??"",a=n?.userAgentData?.platform??o.os(i)??"other",s=n?.userAgentData?.brands??[],c=s[s.length-1],l=c?.brand??o.browser(i)??"unknown",u=[["aws-sdk-js",t],["ua","2.1"],[`os/${a}`,void 0],["lang/js"],["md/browser",`${l}_${c?.version??"unknown"}`]];e&&u.push([`api/${e}`,t]);const d=await(r?.userAgentAppId?.());return d&&u.push([`app/${d}`]),u},o={os:e=>/iPhone|iPad|iPod/.test(e)?"iOS":/Macintosh|Mac OS X/.test(e)?"macOS":/Windows NT/.test(e)?"Windows":/Android/.test(e)?"Android":/Linux/.test(e)?"Linux":void 0,browser:e=>/EdgiOS|EdgA|Edg\//.test(e)?"Microsoft Edge":/Firefox\//.test(e)?"Firefox":/Chrome\//.test(e)?"Chrome":/Safari\//.test(e)?"Safari":void 0},a=i},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createUserAgentStringParsingProvider:()=>n});const n=({serviceId:e,clientVersion:t})=>async n=>{const i=await r.e("vendors").then(r.t.bind(r,1506,23)),o=i.parse??i.default.parse??(()=>""),a="undefined"!=typeof window&&window?.navigator?.userAgent?o(window.navigator.userAgent):void 0,s=[["aws-sdk-js",t],["ua","2.1"],[`os/${a?.os?.name||"other"}`,a?.os?.version],["lang/js"],["md/browser",`${a?.browser?.name??"unknown"}_${a?.browser?.version??"unknown"}`]];e&&s.push([`api/${e}`,t]);const c=await(n?.userAgentAppId?.());return c&&s.push([`app/${c}`]),s}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{invalidProvider:()=>n});const n=e=>()=>Promise.reject(e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadConfigsForDefaultMode:()=>n});const n=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONFIG_PREFIX_SEPARATOR:()=>T,CONFIG_USE_DUALSTACK_ENDPOINT:()=>M,CONFIG_USE_FIPS_ENDPOINT:()=>B,CredentialsProviderError:()=>i.CredentialsProviderError,DEFAULT_PROFILE:()=>_,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>D,DEFAULT_USE_FIPS_ENDPOINT:()=>j,ENV_PROFILE:()=>b,ENV_USE_DUALSTACK_ENDPOINT:()=>k,ENV_USE_FIPS_ENDPOINT:()=>F,NODE_REGION_CONFIG_FILE_OPTIONS:()=>$,NODE_REGION_CONFIG_OPTIONS:()=>G,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>N,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>U,ProviderError:()=>n.ProviderError,REGION_ENV_NAME:()=>z,REGION_INI_NAME:()=>V,SelectorType:()=>d.SelectorType,TokenProviderError:()=>o.TokenProviderError,booleanSelector:()=>l.booleanSelector,chain:()=>a.chain,externalDataInterceptor:()=>R,fromStatic:()=>C,fromValue:()=>s.fromValue,getHomeDir:()=>v,getProfileName:()=>S,getRegionInfo:()=>m.getRegionInfo,getSSOTokenFilepath:()=>
1E,getSSOTokenFromFile:()=>w,loadConfig:()=>I,loadSharedConfigFiles:()=>x,loadSsoSessionData:()=>O,memoize:()=>c.memoize,nodeDualstackConfigSelectors:()=>L,nodeFipsConfigSelectors:()=>H,numberSelector:()=>u.numberSelector,parseKnownFiles:()=>A,readFile:()=>P,resolveCustomEndpointsConfig:()=>p.resolveCustomEndpointsConfig,resolveDefaultsModeConfig:()=>g.resolveDefaultsModeConfig,resolveEndpointsConfig:()=>f.resolveEndpointsConfig,resolveRegionConfig:()=>h.resolveRegionConfig});var n=r(324),i=r(325),o=r(326),a=r(327),s=r(328),c=r(329),l=r(330),u=r(331),d=r(332),p=r(333),f=r(334),h=r(213),m=r(336),g=r(341);const y=Symbol.for("node-only"),v=y,b=y,_="default",S=y,E=y,w=y,T=y,x=y,O=y,A=y,R=y,P=y,I=y,C=y,k=y,M=y,D=!1,N=y,L=y,F=y,B=y,j=!1,U=y,H=y,z=y,V=y,G=y,$=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProviderError:()=>n});class n extends Error{name="ProviderError";tryNextLink;constructor(e,t=!0){let r,i=!0;"boolean"==typeof t?(r=void 0,i=t):null!=t&&"object"==typeof t&&(r=t.logger,i=t.tryNextLink??!0),super(e),this.tryNextLink=i,Object.setPrototypeOf(this,n.prototype),r?.debug?.(`@smithy/property-provider ${i?"->":"(!)"} ${e}`)}static from(e,t=!0){return Object.assign(new this(e.message,t),e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CredentialsProviderError:()=>i});var n=r(324);class i extends n.ProviderError{name="CredentialsProviderError";constructor(e,t=!0){super(e,t),Object.setPrototypeOf(this,i.prototype)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TokenProviderError:()=>i});var n=r(324);class i extends n.ProviderError{name="TokenProviderError";constructor(e,t=!0){super(e,t),Object.setPrototypeOf(this,i.prototype)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{chain:()=>i});var n=r(324);const i=(...e)=>async()=>{if(0===e.length)throw new n.ProviderError("No providers in chain");let t;for(const r of e)try{return await r()}catch(e){if(t=e,e?.tryNextLink)continue;throw e}throw t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromValue:()=>n});const n=e=>()=>Promise.resolve(e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{memoize:()=>n});const n=(e,t,r)=>{let n,i,o,a=!1;const s=async()=>{i||(i=e());try{n=await i,o=!0,a=!1}finally{i=void 0}return n};return void 0===t?async e=>(o&&!e?.forceRefresh||(n=await s()),n):async e=>(o&&!e?.forceRefresh||(n=await s()),a?n:r&&!r(n)?(a=!0,n):t(n)?(await s(),n):n)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{booleanSelector:()=>n});const n=(e,t,r)=>{if(t in e){if("true"===e[t])return!0;if("false"===e[t])return!1;throw new Error(`Cannot load ${r} "${t}". Expected "true" or "false", got ${e[t]}.`)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{numberSelector:()=>n});const n=(e,t,r)=>{if(!(t in e))return;const n=parseInt(e[t],10);if(Number.isNaN(n))throw new TypeError(`Cannot load ${r} '${t}'. Expected number, got '${e[t]}'.`);return n}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{SelectorType:()=>n}),function(e){e.ENV="env",e.CONFIG="shared config entry"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resolveCustomEndpointsConfig:()=>i});var n=r(135);const i=e=>{const{tls:t,endpoint:r,urlParser:i,useDualstackEndpoint:o}=e;return Object.assign(e,{tls:t??!0,endpoint:(0,n.normalizeProvider)("string"==typeof r?i(r):r),isCu
1stomEndpoint:!0,useDualstackEndpoint:(0,n.normalizeProvider)(o??!1)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resolveEndpointsConfig:()=>o});var n=r(135),i=r(335);const o=e=>{const t=(0,n.normalizeProvider)(e.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:o,urlParser:a,tls:s}=e;return Object.assign(e,{tls:s??!0,endpoint:r?(0,n.normalizeProvider)("string"==typeof r?a(r):r):()=>(0,i.getEndpointFromRegion)({...e,useDualstackEndpoint:t,useFipsEndpoint:o}),isCustomEndpoint:!!r,useDualstackEndpoint:t})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEndpointFromRegion:()=>n});const n=async e=>{const{tls:t=!0}=e,r=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");const n=await e.useDualstackEndpoint(),i=await e.useFipsEndpoint(),{hostname:o}=await e.regionInfoProvider(r,{useDualstackEndpoint:n,useFipsEndpoint:i})??{};if(!o)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${t?"https:":"http:"}//${o}`)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getRegionInfo:()=>s});var n=r(337),i=r(338),o=r(339),a=r(340);const s=(e,{useFipsEndpoint:t=!1,useDualstackEndpoint:r=!1,signingService:s,regionHash:c,partitionHash:l})=>{const u=(0,o.getResolvedPartition)(e,{partitionHash:l}),d=e in c?e:l[u]?.endpoint??e,p={useFipsEndpoint:t,useDualstackEndpoint:r},f=(0,n.getHostnameFromVariants)(c[d]?.variants,p),h=(0,n.getHostnameFromVariants)(l[u]?.variants,p),m=(0,i.getResolvedHostname)(d,{regionHostname:f,partitionHostname:h});if(void 0===m)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:d,useFipsEndpoint:t,useDualstackEndpoint:r}}`);const g=(0,a.getResolvedSigningRegion)(m,{signingRegion:c[d]?.signingRegion,regionRegex:l[u].regionRegex,useFipsEndpoint:t});return{partition:u,signingService:s,hostname:m,...g&&{signingRegion:g},...c[d]?.signingService&&{signingService:c[d].signingService}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getHostnameFromVariants:()=>n});const n=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:r})=>e.find(({tags:e})=>t===e.includes("fips")&&r===e.includes("dualstack"))?.hostname},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getResolvedHostname:()=>n});const n=(e,{regionHostname:t,partitionHostname:r})=>t||(r?r.replace("{region}",e):void 0)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getResolvedPartition:()=>n});const n=(e,{partitionHash:t})=>Object.keys(t||{}).find(r=>t[r].regions.includes(e))??"aws"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getResolvedSigningRegion:()=>n});const n=(e,{signingRegion:t,regionRegex:r,useFipsEndpoint:n})=>{if(t)return t;if(n){const t=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),n=e.match(t);if(n)return n[0].slice(1,-1)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resolveDefaultsModeConfig:()=>o});var n=r(329),i=r(342);const o=({defaultsMode:e}={})=>(0,n.memoize)(async()=>{const t="function"==typeof e?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(a()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${i.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${t}`)}}),a=()=>{const e=window?.navigator;if(e?.connection){const{effectiveType:t,rtt:r,downlink:n}=e?.connection;if("string"==typeof t&&"4g"!==t||Number(r)>100||Number(n)<10)return!0}return e?.userAgentData?.mobile||"number"==typeof e?.maxTouchPoints&&e?.maxTouchPoints>1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AWS_DEFAULT_REGION_ENV:()=>o,AWS_EXECUTION_ENV:()=>n,AWS_REGION_ENV:()=>i,DEFAULTS_MODE_OPTIONS:()=>s,ENV_IMDS_DISABLED:()=>a,IMDS_REGION_PATH:()=>c});const n="AWS_EXECUTION_ENV",i="AWS_REGION",o="AWS_DEFAULT_REGION",a="AWS_EC2_METADATA_DISABLED",s=["in-region","cross-region","mobile","standard","legacy"],c="/latest/meta-data/placement/region"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FetchHttpHandler:()=>c,keepAliveSupport:()=>s});var n=r(244),i=r(344),o=r(345),a=r(346);const s={supported:void 0};class c{config;configProvider;static create(e){return"function"==typeof e?.handle?e:new c(e)}constructor(e){"function"==typeof e?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),void 0===s.supported&&(s.supported=Boolean("undefined"!=typeof Request&&"keepalive"in(0,o.createRequest)("https://[::1]")))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:r}={}){this.config||(this.config=await this.configProvider);const c=r??this.config.requestTimeout,u=!0===this.config.keepAlive,d=this.config.credentials;if(t?.aborted){const e=l(t);return Promise.reject(e)}let p=e.path;const f=(0,i.buildQueryString)(e.query||{});f&&(p+=`?${f}`),e.fragment&&(p+=`#${e.fragment}`);let h="";if(null!=e.username||null!=e.password){h=`${e.username??""}:${e.password??""}@`}const{port:m,method:g}=e,y=`${e.protocol}//${h}${e.hostname}${m?`:${m}`:""}${p}`,v="GET"===g||"HEAD"===g?void 0:e.body,b={body:v,headers:new Headers(e.headers),method:g,credentials:d};this.config?.cache&&(b.cache=this.config.cache),v&&(b.duplex="half"),"undefined"!=typeof AbortController&&(b.signal=t),s.supported&&(b.keepalive=u),"function"==typeof this.config.requestInit&&Object.assign(b,this.config.requestInit(e));let _=()=>{};const S=(0,o.createRequest)(y,b),E=[fetch(S).then(e=>
1{const t=e.headers,r={};for(const e of t.entries())r[e[0]]=e[1];return null!=e.body?{response:new n.HttpResponse({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}:e.blob().then(t=>({response:new n.HttpResponse({headers:r,reason:e.statusText,statusCode:e.status,body:t})}))}),(0,a.requestTimeout)(c)];return t&&E.push(new Promise((e,r)=>{const n=()=>{const e=l(t);r(e)};if("function"==typeof t.addEventListener){const e=t;e.addEventListener("abort",n,{once:!0}),_=()=>e.removeEventListener("abort",n)}else t.onabort=n})),Promise.race(E).finally(_)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[e]=t,r))}httpHandlerConfigs(){return this.config??{}}}function l(e){const t=e&&"object"==typeof e&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){const e=new Error("Request aborted");return e.name="AbortError",e.cause=t,e}const e=new Error(String(t));return e.name="AbortError",e}const r=new Error("Request aborted");return r.name="AbortError",r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{buildQueryString:()=>i});var n=r(286);function i(e){const t=[];for(let r of Object.keys(e).sort()){const i=e[r];if(r=(0,n.escapeUri)(r),Array.isArray(i))for(let e=0,o=i.length;e<o;e++)t.push(`${r}=${(0,n.escapeUri)(i[e])}`);else{let e=r;(i||"string"==typeof i)&&(e+=`=${(0,n.escapeUri)(i)}
1`),t.push(e)}}return t.join("&")}},(e,t,r)=>{"use strict";function n(e,t){return new Request(e,t)}r.r(t),r.d(t,{createRequest:()=>n})},(e,t,r)=>{"use strict";function n(e=0){return new Promise((t,r)=>{e&&setTimeout(()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",r(t)},e)})}r.r(t),r.d(t,{requestTimeout:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{streamCollector:()=>i});var n=r(223);const i=async e=>"function"==typeof Blob&&e instanceof Blob||"Blob"===e.constructor?.name?void 0!==Blob.prototype.arrayBuffer?new Uint8Array(await e.arrayBuffer()):async function(e){const t=await function(e){return new Promise((t,r)=>{const n=new FileReader;n.onloadend=()=>{if(2!==n.readyState)return r(new Error("Reader aborted too early"));const e=n.result??"",i=e.indexOf(","),o=i>-1?i+1:e.length;t(e.substring(o))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)})}(e),r=(0,n.fromBase64)(t);return new Uint8Array(r)}(e):async function(e){const t=[],r=e.getReader();let n=!1,i=0;for(;!n;){const{done:e,value:o}=await r.read();o&&(t.push(o),i+=o.length),n=e}const o=new Uint8Array(i);let a=0;for(const e of t)o.set(e,a),a+=e.length;return o}(e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getRuntimeConfig:()=>h});var n=r(349),i=r(354),o=r(221),a=r(129),s=r(223),c=r(225),l=r(226),u=r(228),d=r(279),p=r(371),f=r(174);const h=e=>({apiVersion:"2015-08-04",base64Decoder:e?.base64Decoder??s.fromBase64,base64Encoder:e?.base64Encoder??c.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??p.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??d.defaultFirehoseHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new n.AwsSdkSigV4Signer}],logger:e?.logger??new o.NoOpLogger,protocol:e?.protocol??i.AwsJson1_1Protocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.firehose",errorTypeRegistries:f.errorTypeRegistries,xmlNamespace:"http://firehose.amazonaws.com/doc/2015-08-04",version:"2015-08-04",serviceTarget:"Firehose_20150804"},serviceId:e?.serviceId??"Firehose",urlParser:e?.urlParser??a.parseUrl,utf8Decoder:e?.utf8Decoder??l.fromUtf8,utf8Encoder:e?.utf8Encoder??u.toUtf8})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AWSSDKSigV4Signer:()=>u,AwsSdkSigV4Signer:()=>l,validateSigningProperties:()=>c});var n=r(192),i=r(350),o=r(351),a=r(352);const s=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},c=async e=>
1{const t=s("context",e.context),r=s("config",e.config),n=t.endpointV2?.properties?.authSchemes?.[0],i=s("signer",r.signer),o=await i(n),a=e?.signingRegion,c=e?.signingRegionSet,l=e?.signingName;return{config:r,signer:o,signingRegion:a,signingRegionSet:c,signingName:l}};class l{async sign(e,t,r){if(!n.HttpRequest.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const i=await c(r),{config:a,signer:s}=i;let{signingRegion:l,signingName:u}=i;const d=r.context;if(d?.authSchemes?.length){const[e,t]=d.authSchemes;"sigv4a"===e?.name&&"sigv4"===t?.name&&(l=t?.signingRegion??l,u=t?.signingName??u)}r._preRequestSystemClockOffset=a.systemClockOffset;return await s.sign(e,{signingDate:(0,o.getSkewCorrectedDate)(a.systemClockOffset),signingRegion:l,signingService:u})}errorHandler(e){return t=>{const r=t,n=r.ServerTime??(0,i.getDateHeader)(r.$response);if(n){const t=s("config",e.config),i=e._preRequestSystemClockOffset,o=(0,a.getUpdatedSystemClockOffset)(n,t.systemClockOffset);(o!==t.systemClockOffset||void 0!==i&&i!==o)&&r.$metadata&&(t.systemClockOffset=o,r.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){const r=(0,i.getDateHeader)(e);if(r){const e=s("config",t.config);e.systemClockOffset=(0,a.getUpdatedSystemClockOffset)(r,e.systemClockOffset)}}}const u=l},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDateHeader:()=>i});var n=r(244);const i=e=>n.HttpResponse.isInstance(e)?e.headers?.date??e.headers?.Date:void 0},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getSkewCorrectedDate:()=>n});const n=e=>new Date(Date.now()+e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getUpdatedSystemClockOffset:()=>i});var n=r(353);const i=(e,t)=>{const r=Date.parse(e);return(0,n.isClockSkewed)(r,t)?r-Date.now():t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isClockSkewed:()=>i});var n=r(351);const i=(e,t)=>Math.abs((0,n.getSkewCorrectedDate)(t).getTime()-e)>=3e5},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AwsJson1_1Protocol:()=>i});var n=r(355);class i extends n.AwsJsonRpcProtocol{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:r,awsQueryCompatible:n,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:r,awsQueryCompatible:n,jsonCodec:i})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AwsJsonRpcProtocol:()=>l});var n=r(356),i=r(121),o=r(120),a=r(360),s=r(361),c=r(367);class l extends n.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:r,awsQueryCompatible:n,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t}
1),this.serviceTarget=r,this.codec=i??new s.JsonCodec({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!n,this.mixin=new a.ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,r){const n=await super.serializeRequest(e,t,r);return n.path.endsWith("/")||(n.path+="/"),n.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,n.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(n.headers["x-amzn-query-mode"]="true"),"unit"!==(0,i.deref)(e.input)&&n.body||(n.body="{}"),n}getPayloadCodec(){return this.codec}async handleError(e,t,r,n,i){const{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(n,r);const s=(0,c.loadJsonRpcErrorCode)(r,n,a)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,s,this.options.defaultNamespace);const{errorSchema:l,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(s,this.options.defaultNamespace,r,n,i,a?this.mixin.findQueryCompatibleError:void 0),d=o.NormalizedSchema.of(l),p=n.message??n.Message??"UnknownError",f=new(this.compositeErrorRegistry.getErrorCtor(l)??Error)({}),h={},m=this.codec.createDeserializer();for(const[e,t]of d.structIterator())null!=n[e]&&(h[e]=m.readObject(t,n[e]));throw a&&this.mixin.queryCompatOutput(n,h),this.mixin.decorateServiceException(Object.assign(f,u,{$fault:d.getMergedTraits().error,message:p},h),n)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RpcProtocol:()=>s});var n=r(120),i=r(192),o=r(357),a=r(359);class s extends o.HttpProtocol{async serializeRequest(e,t,r){const o=this.serializer,a={},s={},c=await r.endpoint(),l=n.NormalizedSchema.of(e?.input),u=l.getSchema();let d;const p=t&&"object"==typeof t?t:{},f=new i.HttpRequest({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:a,headers:s,body:void 0});if(c&&(this.updateServiceEndpoint(f,c),this.setHostPrefix(f,e,p)),p){const e=l.getEventStreamMember();if(e){if(p[e]){const t={};for(const[r,n]of l.structIterator())r!==e&&p[r]&&(o.write(n,p[r]),t[r]=o.flush());d=await this.serializeEventStream({eventStream:p[e],requestSchema:l,initialRequest:t})}}else o.write(u,p),d=o.flush()}return f.headers=Object.assign(f.headers,s),f.query=a,f.body=d,f.method="POST",f}async deserializeResponse(e,t,r){const i=this.deserializer,o=n.NormalizedSchema.of(e.output),s={};if(r.statusCode>=300){const n=await(0,a.collectBody)(r.body,t);throw n.byteLength>0&&Object.assign(s,await i.read(15,n)),await this.handleError(e,t,r,s,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const e in r.headers){const t=r.headers[e];delete r.headers[e],r.headers[e.toLowerCase()]=t}const c=o.getEventStreamMember();if(c)s[c]=await this.deserializeEventStream({response:r,responseSchema:o,initialResponseContainer:s});else{const e=await(0,a.collectBody)(r.body,t);e.byteLength>0&&Object.assign(s,await i.read(o,e))}return s.$metadata=this.deserializeMetadata(r),s}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HttpProtocol:()=>l});var n=r(120),i=r(122),o=r(175),a=r(192),s=r(244),c=r(358);class l extends c.SerdeContext{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=o.TypeRegistry.for(e.defaultNamespace);for(const t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return a.HttpRequest}getResponseType(){return s.HttpResponse}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if("url"in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||(e.query={});for(const[r,n]of t.url.searchParams.entries())e.query[r]=n;if(t.headers)for(const r in t.headers)e.headers[r]=t.headers[r].join(", ");return e}if(e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},t.headers)for(const r in t.headers)e.headers[r]=t.headers[r];return e}setHostPrefix(e,t,r){if(this.serdeContext?.disableHostPrefix)return;const o=n.NormalizedSchema.of(t.input),a=(0,i.translateTraits)(t.traits??{});if(a.endpoint){let t=a.endpoint?.[0];if("string"==typeof t){for(const[e,n]of o.structIterator()){if(!n.getMergedTraits().hostLabel)continue;const i=r[e];if("string"!=typeof i)throw new Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,i)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:r}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:r})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r})}async loadEventStreamCapability(){const{EventStreamSerde:e,eventStreamSerdeProvider:t}=await r.e("vendors").then(r.bind(r,1507));return new e({marshaller:this.resolveEventStreamMarshaller(t),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}resolveEventStreamMarshaller(e){const t=this.serdeContext;return t.eventStreamMarshaller?t.eventStreamMarshaller:e(this.serdeContext)}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,r,n,i){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SerdeContext:()=>n});
1class n{serdeContext;setSerdeContext(e){this.serdeContext=e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{collectBody:()=>i});var n=r(222);const i=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return n.Uint8ArrayBlobAdapter.mutate(e);if(!e)return n.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const r=t.streamCollector(e);return n.Uint8ArrayBlobAdapter.mutate(await r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProtocolLib:()=>a});var n=r(178),i=r(120),o=r(175);class a{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){const r=t.getMemberSchemas(),n=Object.values(r).find(e=>!!e.getMergedTraits().httpPayload);if(n){const t=n.getMergedTraits().mediaType;return t||(n.isStringSchema()?"text/plain":n.isBlobSchema()?"application/octet-stream":e)}if(!t.isUnitSchema()){if(Object.values(r).find(e=>{const{httpQuery:t,httpQueryParams:r,httpHeader:n,httpLabel:i,httpPrefixHeaders:o}=e.getMergedTraits();return!t&&!r&&!n&&!i&&void 0===o}))return e}}async getErrorSchemaOrThrowBaseException(e,t,r,n,i,o){let a=e;e.includes("#")&&([,a]=e.split("#"));const s={$metadata:i,$fault:r.statusCode<500?"client":"server"};if(!this.errorRegistry)throw new Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:o?.(this.errorRegistry,a)??this.errorRegistry.getSchema(e),errorMetadata:s}}catch(e){n.message=n.message??n.Message??"UnknownError";const t=this.errorRegistry,r=t.getBaseException();if(r){const e=t.getErrorCtor(r)??Error;throw this.decorateServiceException(Object.assign(new e({name:a}),s),n)}const i=n,o=i?.message??i?.Message??i?.Error?.Message??i?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(o),{name:a},s),n)}}compose(e,t,r){let n=r;t.includes("#")&&([n]=t.split("#"));const i=o.TypeRegistry.for(n),a=o.TypeRegistry.for("smithy.ts.sdk.synthetic."+r);e.copyFrom(i),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){const r=e.Message??t.Message,i=(0,n.decorateServiceException)(e,t);r&&(i.message=r);const o=i.Error??{};o.Type=i.Error?.Type,o.Code=i.Error?.Code,o.Message=i.Error?.message??i.Error?.Message??r,i.Error=o;const a=i.$metadata.requestId;return a&&(i.RequestId=a),i}return(0,n.decorateServiceException)(e,t)}setQueryCompatError(e,t){const r=t.headers?.["x-amzn-query-error"];if(void 0!==e&&null!=r){const[t,n]=r.split(";"),i=Object.keys(e),o={Code:t,Type:n};e.Code=t,e.Type=n;for(let t=0;t<i.length;t++){const r=i[t];o["message"===r?"Message":r]=e[r]}delete o.__type,e.Error=o}}queryCompatOutput(e,t){e.Error&&(t.Error=e.Error),e.Type&&(t.Type=e.Type),e.Code&&(t.Code=e.Code)}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(r){return e.find(e=>i.NormalizedSchema.of(e).getMergedTraits().awsQueryError?.[0]===t)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{JsonCodec:()=>a});var n=r(362),i=r(363),o=r(369);class a extends n.SerdeContextConfig{settings;constructor(e){super(),this.settings=e}createSerializer(){const e=new o.JsonShapeSerializer(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){const e=new i.JsonShapeDeserializer(this.settings);return e.setSerdeContext(this.serdeContext),e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SerdeContextConfig:()=>n});class n{serdeContext;setSerdeContext(e){this.serdeContext=e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{JsonShapeDeserializer:()=>f});var n=r(364),i=r(120),o=r(231),a=r(233),s=r(238),c=r(223),l=r(362),u=r(365),d=r(366),p=r(367);class f extends l.SerdeContextConfig{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,"string"==typeof t?JSON.parse(t,d.jsonReviver):await(0,p.parseJsonBody)(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){const r=null!==t&&"object"==typeof t,l=i.NormalizedSchema.of(e);if(r){if(l.isStructSchema()){const e=t,r=l.isUnionSchema(),n={};let i;const{jsonName:o}=this.settings;let a;o&&(i={}),r&&(a=new u.UnionSerde(e,n));for(const[t,s]of l.structIterator()){let c=t;o&&(c=s.getMergedTraits().jsonName??c,i[c]=t),r&&a.mark(c),null!=e[c]&&(n[t]=this._read(s,e[c]))}if(r)a.writeUnknown();else if("string"==typeof e.__type)for(const t in e){const r=e[t],a=o?i[t]??t:t;a in n||(n[a]=r)}return n}if(Array.isArray(t)&&l.isListSchema()){const e=l.getValueSchema(),r=[];for(const n of t)r.push(this._read(e,n));return r}if(l.isMapSchema()){const e=l.getValueSchema(),r={};for(const n in t)r[n]=this._read(e,t[n]);return r}}if(l.isBlobSchema()&&"string"==typeof t)return(0,c.fromBase64)(t);const d=l.getMergedTraits().mediaType;if(l.isStringSchema()&&"string"==typeof t&&d){return"application/json"===d||d.endsWith("+json")?a.LazyJsonString.from(t):t}if(l.isTimestampSchema()&&null!=t){switch((0,n.determineTimestampFormat)(l,this.settings)){case 5:return(0,o.parseRfc3339DateTimeWithOffset)(t);case 6:return(0,o.parseRfc7231DateTime)(t);case 7:return(0,o.parseEpochTimestamp)(t);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",t),new Date(t)}}
1if(l.isBigIntegerSchema()&&("number"==typeof t||"string"==typeof t))return BigInt(t);if(l.isBigDecimalSchema()&&null!=t){if(t instanceof s.NumericValue)return t;const e=t;return"bigDecimal"===e.type&&"string"in e?new s.NumericValue(e.string,e.type):new s.NumericValue(String(t),"bigDecimal")}if(l.isNumericSchema()&&"string"==typeof t){switch(t){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return t}if(l.isDocumentSchema()){if(r){const e=Array.isArray(t)?[]:{};for(const r in t){const n=t[r];n instanceof s.NumericValue?e[r]=n:e[r]=this._read(l,n)}return e}return structuredClone(t)}return t}}},(e,t,r)=>{"use strict";function n(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(5===e.getSchema()||6===e.getSchema()||7===e.getSchema()))return e.getSchema();const{httpLabel:r,httpPrefixHeaders:n,httpHeader:i,httpQuery:o}=e.getMergedTraits();return(t.httpBindings?"string"==typeof n||Boolean(i)?6:Boolean(o)||Boolean(r)?5:void 0:void 0)??t.timestampFormat.default}r.r(t),r.d(t,{determineTimestampFormat:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{UnionSerde:()=>n});class n{from;to;keys;constructor(e,t){this.from=e,this.to=t;const r=Object.keys(this.from),n=new Set(r);n.delete("__type"),this.keys=n}mark(e){this.keys.delete(e)}hasUnknown(){return 1===this.keys.size&&0===Object.keys(this.to).length}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{jsonReviver:()=>i});var n=r(238);function i(e,t,r){if(r?.source){const e=r.source;if("number"==typeof t&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||e!==String(t))){return e.includes(".")?new n.NumericValue(e,"bigDecimal"):BigInt(e)}}return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadJsonRpcErrorCode:()=>l,loadRestJsonErrorCode:()=>c,parseJsonBody:()=>i,parseJsonErrorBody:()=>o});var n=r(368);const i=(e,t)=>(0,n.collectBodyString)(e,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw"SyntaxError"===t?.name&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}}),o=async(e,t)=>{const r=await i(e,t);return r.message=r.message??r.Message,r},a=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),s=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},c=(e,t)=>u(e,t,["header","code","type"]),l=(e,t,r=!1)=>u(e,t,r?["code","header","type"]:["type","code","header"]),u=({headers:e},t,r)=>{for(;r.length>0;){switch(r.shift()){case"header":const r=a(e??{},"x-amzn-errortype");if(void 0!==r)return s(e[r]);break;case"code":const n=a(t??{},"code");if(n&&void 0!==t[n])return s(t[n]);break;case"type":if(void 0!==t?.__type)return s(t.__type)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{collectBodyString:()=>o});var n=r(359),i=r(228);const o=(e,t)=>(0,n.collectBody)(e,t).then(e=>(t?.utf8Encoder??i.toUtf8)(e))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{JsonShapeSerializer:()=>p});var n=r(364),i=r(120),o=r(222),a=r(225),s=r(231),c=r(233),l=r(238),u=r(362),d=r(370);class p extends u.SerdeContextConfig{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=i.NormalizedSchema.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){const{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if
1(!t)return JSON.stringify(this.buffer);const e=new d.JsonReplacer;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){this.write(e,t),"object"==typeof this.buffer&&(this.buffer.__type=i.NormalizedSchema.of(e).getName(!0))}_write(e,t,r){const u=null!==t&&"object"==typeof t,d=i.NormalizedSchema.of(e);if(u){if(d.isStructSchema()){const e=t,r={},{jsonName:n}=this.settings;let i;n&&(i={});let o=0;for(const[t,a]of d.structIterator()){const s=this._write(a,e[t],d);if(void 0!==s){let e=t;n&&(e=a.getMergedTraits().jsonName??t,i[t]=e),r[e]=s,o++}}if(d.isUnionSchema()&&0===o){const{$unknown:t}=e;if(Array.isArray(t)){const[e,n]=t;r[e]=this._write(15,n)}}else if("string"==typeof e.__type)for(const t in e){const o=e[t],a=n?i[t]??t:t;a in r||(r[a]=this._write(15,o))}return r}if(Array.isArray(t)&&d.isListSchema()){const e=d.getValueSchema(),r=[],n=!!d.getMergedTraits().sparse;for(const i of t)(n||null!=i)&&r.push(this._write(e,i));return r}if(d.isMapSchema()){const e=d.getValueSchema(),r={},n=!!d.getMergedTraits().sparse;for(const i in t){const o=t[i];(n||null!=o)&&(r[i]=this._write(e,o))}return r}if(t instanceof Uint8Array&&(d.isBlobSchema()||d.isDocumentSchema()))return d===this.rootSchema?t:(this.serdeContext?.base64Encoder??a.toBase64)(t);if(t instanceof Date&&(d.isTimestampSchema()||d.isDocumentSchema())){switch((0,n.determineTimestampFormat)(d,this.settings)){case 5:return t.toISOString().replace(".000Z","Z");case 6:return(0,s.dateToUtcString)(t);case 7:return t.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",t),t.getTime()/1e3}}t instanceof l.NumericValue&&(this.useReplacer=!0)}
1if(null!==t||!r?.isStructSchema()){if(d.isStringSchema()){if(void 0===t&&d.isIdempotencyToken())return(0,o.generateIdempotencyToken)();const e=d.getMergedTraits().mediaType;if(null!=t&&e){if("application/json"===e||e.endsWith("+json"))return c.LazyJsonString.from(t)}return t}if("number"==typeof t&&d.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if("string"==typeof t&&d.isBlobSchema())return d===this.rootSchema?t:(this.serdeContext?.base64Encoder??a.toBase64)(t);if("bigint"==typeof t&&(this.useReplacer=!0),d.isDocumentSchema()){if(u){const e=Array.isArray(t)?[]:{};for(const r in t){const n=t[r];n instanceof l.NumericValue?(this.useReplacer=!0,e[r]=n):e[r]=this._write(d,n)}return e}return structuredClone(t)}return t}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{JsonReplacer:()=>o});var n=r(238);const i=String.fromCharCode(925);class o{values=new Map;counter=0;stage=0;createReplacer(){if(1===this.stage)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(2===this.stage)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,t)=>{if(t instanceof n.NumericValue){const e=i+"nv"+this.counter+++"_"+t.string;return this.values.set(`"${e}"`,t.string),e}if("bigint"==typeof t){const e=t.toString(),r=i+"b"+this.counter+++"_"+e;return this.values.set(`"${r}"`,e),r}return t}}replaceInJson(e){if(0===this.stage)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(2===this.stage)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,0===this.counter)return e;for(const[t,r]of this.values)e=e.replace(t,r);return e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultEndpointResolver:()=>l});var n=r(372),i=r(137),o=r(138),a=r(144),s=r(375);const c=new i.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),l=(e,t={})=>c.get(e,()=>(0,o.decideEndpoint)(s.bdd,{endpointParams:e,logger:t.logger}));a.customEndpointFunctions.aws=n.awsEndpointFunctions},(e,t,r)=>{"use strict";r.r(t),r.d(t,{awsEndpointFunctions:()=>s});var n=r(144),i=r(373),o=r(374),a=r(198);const s={isVirtualHostableS3Bucket:i.isVirtualHostableS3Bucket,parseArn:o.parseArn,partition:a.partition};n.customEndpointFunctions.aws=s},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isVirtualHostableS3Bucket:()=>o});var n=r(151),i=r(156);const o=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!o(t))return!1;return!0}return!!(0,n.isValidHostLabel)(e)&&(!(e.length<3||e.length>63)&&(e===e.toLowerCase()&&!(0,i.isIpAddress)(e)))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseArn:()=>n});const n=e=>{const t=e.split(":");if(t.length<6)return null;const[r,n,i,o,a,...s]=t;if("arn"!==r||""===n||""===i||""===s.join(":"))return null;return{partition:n,service:i,region:o,accountId:a,resourceId:s.map(e=>e.split("/")).flat()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bdd:()=>v});var n=r(136);const i="ref",o=-1,a=!0,s="isSet",c="PartitionResult",l="booleanEquals",u="getAttr",d={[i]:"Endpoint"},p={[i]:c},f={},h=[{[i]:"Region"}],m={conditions:[[s,[d]],[s,h],["aws.partition",h,c],[l,[{[i]:"UseFIPS"},a]],[l,[{[i]:"UseDualStack"},a]],[l,[{fn:u,argv:[p,"supportsDualStack"]},a]],[l,[{fn:u,argv:[p,"supportsFIPS"]},a]]],results:[[o],[o,"Invalid Configuration: FIPS and custom endpoint are not supported"],[o,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[d,f],["https://firehose-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",f],[o,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://firehose-fips.{Region}.{PartitionResult#dnsSuffix}",f],[o,"FIPS is enabled but this partition does not support FIPS"],["https://firehose.{Region}.{PartitionResult#dualStackDnsSuffix}",f],[o,"DualStack is enabled but this partition does not support DualStack"],["https://firehose.{Region}.{PartitionResult#dnsSuffix}",f],[o,"Invalid Configuration: Missing Region"]]},g=1e8,y=new Int32Array([-1,1,-1,0,12,3,1,4,g+11,2,5,g+11,3,8,6,4,7,g+10,5,g+8,g+9,4,10,9,6,g+6,g+7,5,11,g+5,6,g+4,g+5,3,g+1,13,4,g+2,g+3]),v=n.BinaryDecisionDiagram.from(y,2,m.conditions,m.results)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resolveRuntimeExtensions:()=>s});var n=r(377),i=r(378),o=r(382),a=r(383);const s=(e,t)=>{const r=Object.assign((0,n.getAwsRegionExtensionConfiguration)(e),(0,i.getDefaultExtensionConfiguration)(e),(0,o.getHttpHandlerExtensionConfiguration)(e),(0,a.getHttpAuthExtensionConfiguration)(e));
1return t.forEach(e=>e.configure(r)),Object.assign(e,(0,n.resolveAwsRegionExtensionConfiguration)(r),(0,i.resolveDefaultRuntimeConfig)(r),(0,o.resolveHttpHandlerRuntimeConfig)(r),(0,a.resolveHttpAuthRuntimeConfig)(r))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAwsRegionExtensionConfiguration:()=>n,resolveAwsRegionExtensionConfiguration:()=>i});const n=e=>({setRegion(t){e.region=t},region:()=>e.region}),i=e=>({region:e.region()})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDefaultClientConfiguration:()=>a,getDefaultExtensionConfiguration:()=>o,resolveDefaultRuntimeConfig:()=>s});var n=r(379),i=r(381);const o=e=>Object.assign((0,n.getChecksumConfiguration)(e),(0,i.getRetryConfiguration)(e)),a=o,s=e=>Object.assign((0,n.resolveChecksumRuntimeConfig)(e),(0,i.resolveRetryRuntimeConfig)(e))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AlgorithmId:()=>n.AlgorithmId,getChecksumConfiguration:()=>o,resolveChecksumRuntimeConfig:()=>a});var n=r(380);const i=Object.values(n.AlgorithmId),o=e=>{const t=[];for(const r in n.AlgorithmId){const i=n.AlgorithmId[r];void 0!==e[i]&&t.push({algorithmId:()=>i,checksumConstructor:()=>e[i]})}for(const[r,n]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>r,checksumConstructor:()=>n});return{addChecksumAlgorithm(r){e.checksumAlgorithms=e.checksumAlgorithms??{};const n=r.algorithmId(),o=r.checksumConstructor();i.includes(n)?e.checksumAlgorithms[n.toUpperCase()]=o:e.checksumAlgorithms[n]=o,t.push(r)},checksumAlgorithms:()=>t}},a=e=>{const t={};return e.checksumAlgorithms().forEach(e=>{const r=e.algorithmId();i.includes(r)&&(t[r]=e.checksumConstructor())}),t}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{AlgorithmId:()=>n,getChecksumConfiguration:()=>i,resolveChecksumRuntimeConfig:()=>o}),function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"}(n||(n={}));const i=e=>{const t=[];return void 0!==e.sha256&&t.push({algorithmId:()=>n.SHA256,checksumConstructor:()=>e.sha256}),null!=e.md5&&t.push({algorithmId:()=>n.MD5,checksumConstructor:()=>e.md5}),{addChecksumAlgorithm(e){t.push(e)},checksumAlgorithms:()=>t}},o=e=>{const t={};return e.checksumAlgorithms().forEach(e=>{t[e.algorithmId()]=e.checksumConstructor()}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getRetryConfiguration:()=>n,resolveRetryRuntimeConfig:()=>i});const n=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy:()=>e.retryStrategy}),i=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getHttpHandlerExtensionConfiguration:()=>n,resolveHttpHandlerRuntimeConfig:()=>i});const n=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler:()=>e.httpHandler,updateHttpClientConfig(t,r){e.httpHandler?.updateHttpClientConfig(t,r)},httpHandlerConfigs:()=>e.httpHandler.httpHandlerConfigs()}),i=e=>({httpHandler:e.httpHandler()})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getHttpAuthExtensionConfiguration:()=>n,resolveHttpAuthRuntimeConfig:()=>i});const n=e=>{const t=e.httpAuthSchemes;let r=e.httpAuthSchemeProvider,n=e.credentials;return{setHttpAuthScheme(e){const r=t.findIndex(t=>t.schemeId===e.schemeId);-1===r?t.push(e):t.splice(r,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){r=e},httpAuthSchemeProvider:()=>r,setCredentials(e){n=e},credentials:()=>n}},i=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()})},(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,c.default)(t,d)).validate_length&&e.length>t.max_allowed_length)return!1;if(!t.allow_fragments&&(0,o.default)(e,"#"))return!1;if(!t.allow_query_components&&((0,o.default)(e,"?")||(0,o.default)(e,"&")))return!1;var r,l,f,h,m,g,y,v;y=e.split("#"),e=y.shift(),y=e.split("?");var b=(e=y.shift()).match(/^([a-z][a-z0-9+\-.]*):/i),_=!1,S=function(n){return _=!0,r=n.toLowerCase(),(!t.require_valid_protocol||-1!==t.protocols.indexOf(r))&&e.substring(b[0].length)};if(b){var E=b[1],w=e.substring(b[0].length);if("//"===w.slice(0,2)){if(!1===(e=S(E)))return!1}else{var T=w.indexOf("/"),x=-1===T?w:w.substring(0,T),O=x.indexOf("@");if(-1!==O){var A=x.substring(0,O),R=/^[a-zA-Z0-9\-_.%:]*$/.test(A),P=/%[0-9a-fA-F]{2}/.test(A);if(R&&!P){if(t.require_protocol)return!1}else if(!1===(e=S(E)))return!1}
vendor: 4,129 bytes, line 1
1else{if(/^[0-9]/.test(w)){if(t.require_protocol)return!1}else if(!1===(e=S(E)))return!1}}}else if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!_&&!t.allow_protocol_relative_urls)return!1;e=e.slice(2)}if(""===e)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((l=y.shift()).indexOf(":")>=0&&l.split(":").length>2)return!1;var I=l.split(":"),C=(N=2,function(e){if(Array.isArray(e))return e}(D=I)||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,l=!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){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(D,N)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(D,N)||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.")}()),k=C[0],M=C[1];if(""===k&&""===M)return!1}var D,N;h=y.join("@"),g=null,v=null;var L=h.match(p);L?(f="",v=L[1],g=L[2]||null):(f=(y=h.split(":")).shift(),y.length&&(g=y.join(":")));if(null!==g&&g.length>0){if(m=parseInt(g,10),!/^[0-9]+$/.test(g)||m<=0||m>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return(0,i.default)(f,t.host_whitelist);if(""===f&&!t.require_host)return!0;if(!((0,s.default)(f)||(0,a.default)(f,t)||v&&(0,s.default)(v,6)))return!1;if(f=f||v,t.host_blacklist&&(0,i.default)(f,t.host_blacklist))return!1;return!0};var n=l(r(385)),i=l(r(386)),o=l(r(387)),a=l(r(388)),s=l(r(390)),c=l(r(389));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var d={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,max_allowed_length:2084},p=/^\[([^\]]+)\](?::([0-9]+))?$/;e.exports=t.default,e.exports.default=t.default},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null==e)throw new TypeError("Expected a string but received a ".concat(e));if("String"!==e.constructor.name)throw new TypeError("Expected a string but received a ".concat(e.constructor.name))},e.exports=t.default,e.exports.default=t.default},(e,t)=>{"use strict";function r(e){return"[object RegExp]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if(e===i||r(i)&&i.test(e))return!0}return!1},e.exports=t.default,e.exports.default=t.default},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e,t){return-1!==e.indexOf(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(385)),i=o(r(389));
1function 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";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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;"object"===r(e)&&null!==e||(e={});for(var n in t)void 0===e[n]&&(e[n]=t[n]);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]:{};(0,i.default)(t);var n=("object"===o(r)?r.version:arguments[1])||"";if(!n)return e(t,{version:4})||e(t,{version:6});if("4"===n.toString())return c.test(t);if("6"===n.toString())return u.test(t);return!1};var n,i=(n=r(385))&&n.__esModule?n:{default:n};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)}var a="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",s="(".concat(a,"[.]){3}").concat(a),c=new RegExp("^".concat(s,"$")),l="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(l,":){7}(?:").concat(l,"|:)|")+"(?:".concat(l,":){6}(?:").concat(s,"|:").concat(l,"|:)|")+"(?:".concat(l,":){5}(?::").concat(s,"|(:").concat(l,"){1,2}|:)|")+"(?:".concat(l,":){4}(?:(:").concat(l,"){0,1}:").concat(s,"|(:").concat(l,"){1,3}|:)|")+"(?:".concat(l,":){3}(?:(:").concat(l,"){0,2}:").concat(s,"|(:").concat(l,"){1,4}|:)|")+"(?:".concat(l,":){2}(?:(:").concat(l,"){0,3}:").concat(s,"|(:").concat(l,"){1,5}|:)|")+"(?:".concat(l,":){1}(?:(:").concat(l,"){0,4}:").concat(s,"|(:").concat(l,"){1,6}|:)|")+"(?::((?::".concat(l,"){0,5}:").concat(s,"|(?::").concat(l,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");e.exports=t.default,e.exports.default=t.default},,,,,,,,,(e,t,r)=>{"use strict";var n=r(396);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addEventProcessor:()=>C,captureCheckIn:()=>x,captureEvent:()=>g,captureException:()=>h,captureMessage:()=>m,captureSession:()=>N,close:()=>R,endSession:()=>M,flush:()=>A,isEnabled:()=>I,isInitialized:()=>P,lastEventId:()=>T,setContext:()=>y,setConversationId:()=>w,setExtra:()=>b,setExtras:()=>v,setTag:()=>S,setTags:()=>_,setUser:()=>E,startSession:()=>k,withMonitor:()=>O});var n=r(401),i=r(409),o=r(410),a=r(426),s=r(413),c=r(414),l=r(411),u=r(450),d=r(454),p=r(420),f=r(405);function h(e,t){return(0,n.getCurrentScope)().captureException(e,(0,u.parseEventHintOrCaptureContext)(t))}function m(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 g(e,t){return(0,n.getCurrentScope)().captureEvent(e,t)}function y(e,t){(0,n.getIsolationScope)().setContext(e,t)}function v(e){(0,n.getIsolationScope)().setExtras(e)}function b(e,t){(0,n.getIsolationScope)().setExtra(e,t)}function _(e){(0,n.getIsolationScope)().setTags(e)}function S(e,t){(0,n.getIsolationScope)().setTag(e,t)}function E(e){(0,n.getIsolationScope)().setUser(e)}function w(e){(0,n.getIsolationScope)().setConversationId(e)}function T(){return(0,n.getIsolationScope)().lastEventId()}function x(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.debug.warn("Cannot capture check-in. Client does not support sending check-ins.")}else i.DEBUG_BUILD&&s.debug.warn("Cannot capture check-in. No client defined.");return(0,l.uuid4)()}function O(e,t,r){function i(){const n=x({monitorSlug:e,status:"in_progress"},r),i=(0,p.timestampInSeconds)();function o(t){x({monitorSlug:e,status:t,checkInId:n,duration:(0,p.timestampInSeconds)()-i})}let a;try{a=t()}catch(e){throw o("error"),e}return(0,c.isThenable)(a)?a.then(e=>(o("ok"),e),e=>{throw o("error"),e}):(o("ok"),a)}return(0,n.withIsolationScope)(()=>r?.isolateTrace?(0,a.startNewTrace)(i):i())}async function A(e){const t=(0,n.getClient)();return t?t.flush(e):(i.DEBUG_BUILD&&s.debug.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function R(e){const t=(0,n.getClient)();return t?t.close(e):(i.DEBUG_BUILD&&s.debug.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function P(){return!!(0,n.getClient)()}function I(){const e=(0,n.getClient)();return!1!==e?.getOptions().enabled&&!!e?.getTransport()}function C(e){(0,n.getIsolationScope)().addEventProcessor(e)}function k(e){const t=(0,n.getIsolationScope)(),{user:r}=(0,d.getCombinedScopeData)(t,(0,n.getCurrentScope)()),{userAgent:i}=f.GLOBAL_OBJ.navigator||{},a=(0,o.makeSession)({user:r,...i&&{userAgent:i},...e}),s=t.getSession();return"ok"===s?.status&&(0,o.updateSession)(s,{status:"exited"}),M(),t.setSession(a),a}function M(){const e=(0,n.getIsolationScope)(),t=(0,n.getCurrentScope)().getSession()||e.getSession();t&&(0,o.closeSession)(t),D(),e.setSession()}function D(){const e=(0,n.getIsolationScope)(),t=(0,n.getClient)(),r=e.getSession();r&&t&&t.captureSession(r)}function N(e=!1){e?M():D()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getClient:()=>g,getCurrentScope:()=>d,getExternalPropagationContext:()=>l,getGlobalScope:()=>f,getIsolationScope:()=>p,getTraceContextFromScope:()=>y,hasExternalPropagationContext:()=>u,registerExternalPropagationContext:()=>c,withIsolationScope:()=>m,withScope:()=>h});var n=r(402),i=r(403),o=r(408),a=r(422);let s;function c(e){s=e}function l(){return s?.()}function u(){return void 0!==s}function d(){const e=(0,i.getMainCarrier)();return(0,n.getAsyncContextStrategy)(e).getCurrentScope()}function p(){const e=(0,i.getMainCarrier)();return(0,n.getAsyncContextStrategy)(e).getIsolationScope()}function f(){return(0,i.getGlobalSingleton)("globalScope",()=>new o.Scope)}function h(...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 m(...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 g(){return d().getClient()}function y(e){const t=l();if(t)return{trace_id:t.traceId,span_id:t.spanId};const r=e.getPropagationContext(),{traceId:n,parentSpanId:i,propagationSpanId:o}=r,s={trace_id:n,span_id:o||(0,a.generateSpanId)()};return i&&(s.parent_span_id=i),s}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAsyncContextStrategy:()=>a,setAsyncContextStrategy:()=>o});var n=r(403),i=r(406);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(404),i=r(405);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="10.57.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:()=>c,getStackAsyncContextStrategy:()=>f});var n=r(407),i=r(408),o=r(425),a=r(414),s=r(403);class c{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,a.isThenable)(r)?(0,o.chainAndCopyPromiseLike)(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}
vendor: 6,398 bytes, line 1
1getClient(){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 l(){const e=(0,s.getMainCarrier)(),t=(0,s.getSentryCarrier)(e);return t.stack=t.stack||new c((0,n.getDefaultCurrentScope)(),(0,n.getDefaultIsolationScope)())}function u(e){return l().withScope(e)}function d(e,t){const r=l();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function p(e){return l().withScope(()=>e(l().getIsolationScope()))}function f(){return{withIsolationScope:p,withScope:u,withSetScope:d,withSetIsolationScope:(e,t)=>p(t),getCurrentScope:()=>l().getScope(),getIsolationScope:()=>l().getIsolationScope()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDefaultCurrentScope:()=>o,getDefaultIsolationScope:()=>a});var n=r(403),i=r(408);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:()=>h});var n=r(409),i=r(410),o=r(413),a=r(414),s=r(421),c=r(411),l=r(422),u=r(415),d=r(423),p=r(416),f=r(420);class h{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,l.generateTraceId)(),sampleRand:(0,u.safeMathRandom)()}}clone(){const e=new h;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},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,e._conversationId=this._conversationId,(0,d._setSpanForScope)(e,(0,d._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,i.updateSession)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],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 h?t.getScopeData():(0,a.isPlainObject)(t)?e:void 0,{tags:n,attributes:i,extra:o,user:s,contexts:c,level:l,fingerprint:u=[],propagationContext:d,conversationId:p}=r||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...c},s&&Object.keys(s).length&&(this._user=s),l&&(this._level=l),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),p&&(this._conversationId=p),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,(0,d._setSpanForScope)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,l.generateTraceId)(),sampleRand:(0,u.safeMathRandom)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const r="number"==typeof t?t:100;if(r<=0)return this;const n={timestamp:(0,f.dateTimestampInSeconds)(),...e,message:e.message?(0,p.truncate)(e.message,2048):e.message};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,attributes:this._attributes,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,d._getSpanForScope)(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,s.merge)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}
1captureException(e,t){const r=t?.event_id||(0,c.uuid4)();if(!this._client)return n.DEBUG_BUILD&&o.debug.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:r},this),r}captureMessage(e,t,r){const i=r?.event_id||(0,c.uuid4)();if(!this._client)return n.DEBUG_BUILD&&o.debug.warn("No client configured on scope - will not capture message!"),i;const a=r?.syntheticException??new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...r,event_id:i},this),i}captureEvent(e,t){const r=e.event_id||t?.event_id||(0,c.uuid4)();return this._client?(this._client.captureEvent(e,{...t,event_id:r},this),r):(n.DEBUG_BUILD&&o.debug.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,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{closeSession:()=>s,makeSession:()=>o,updateSession:()=>a});var n=r(411),i=r(420);function o(e){const t=(0,i.timestampInSeconds)(),r={sid:(0,n.uuid4)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return{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&&a(r,e),r}function a(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,n.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 s(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),a(e,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addContextToFrame:()=>g,addExceptionMechanism:()=>p,addExceptionTypeValue:()=>d,checkOrSetAlreadyCaught:()=>y,getEventDescription:()=>u,isAlreadyCaptured:()=>v,parseSemver:()=>m,uuid4:()=>c});var n=r(412),i=r(415),o=r(416),a=r(405);let s;function c(e=function(){const e=a.GLOBAL_OBJ;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return(0,i.withRandomSafeContext)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return s||(s="10000000100040008000100000000000"),s.replace(/[018]/g,e=>(e^(16*(0,i.safeMathRandom)()&15)>>e/4).toString(16))}function l(e){return e.exception?.values?.[0]}function u(e){const{message:t,event_id:r}=e;if(t)return t;const n=l(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function d(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 p(e,t){const r=l(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 f=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function h(e){return parseInt(e||"",10)}function m(e){const t=e.match(f)||[],r=h(t[1]),n=h(t[2]),i=h(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 g(e,t,r=5){if(void 0===t.lineno)return;const n=e.length,i=Math.max(Math.min(n-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-r),i).map(e=>(0,o.snipLine)(e,0));const a=Math.min(n-1,i);t.context_line=(0,o.snipLine)(e[a],t.colno||0),t.post_context=e.slice(Math.min(i+1,n),i+1+r).map(e=>(0,o.snipLine)(e,0))}function y(e){if(v(e))return!0;try{(0,n.addNonEnumerableProperty)(e,"__sentry_captured__",!0)}catch{}return!1}function v(e){try{return e.__sentry_captured__}catch{}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addNonEnumerableProperty:()=>s,convertToPlainObject:()=>d,dropUndefinedKeys:()=>h,extractExceptionKeysForMessage:()=>f,fill:()=>a,getOriginalFunction:()=>u,markFunctionWrapped:()=>c,objectify:()=>g,wrapMethod:()=>l});var n=r(409),i=r(413),o=r(414);function a(e,t,r){if(!(t in e))return;const o=e[t];if("function"!=typeof o)return;const a=r(o);"function"==typeof a&&c(a,o);try{e[t]=a}catch{n.DEBUG_BUILD&&i.debug.log(`Failed to replace method "${t}" in object`,e)}}function s(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{n.DEBUG_BUILD&&i.debug.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function c(e,t){try{const r=t.prototype||{};e.prototype=t.prototype=r,s(e,"__sentry_original__",t)}catch{}}function l(e,t,r,n=!0){const i=e[t];if("function"!=typeof i)throw new Error(`Cannot wrap method: ${t} is not a function`);if(u(i))throw new Error(`Attempting to wrap method ${t} multiple times`);c(r,i),Object.defineProperty(e,t,{writable:!0,configurable:!0,enumerable:n,value:r})}function u(e){return e.__sentry_original__}function d(e){if((0,o.isError)(e))return{message:e.message,name:e.name,stack:e.stack,...p(e)};if((0,o.isEvent)(e)){const{type:t,target:r,currentTarget:n,detail:i}=e;return{type:t,target:r,currentTarget:n,...i?{detail:i}:{},...p(e)}}return e}function p(e){return"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e)):{}}function f(e){const t=Object.keys(d(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}function h(e){return m(e,new Map)}function m(e,t){if(null===e||"object"!=typeof e)return e;const r=t.get(e);if(void 0!==r)return r;if(Array.isArray(e)){const r=[];
1return t.set(e,r),e.forEach(e=>{r.push(m(e,t))}),r}if(function(e){const t=e.constructor;return t===Object||void 0===t}(e)){const r={};t.set(e,r);return Object.keys(e).forEach(n=>{const i=e[n];void 0!==i&&(r[n]=m(i,t))}),r}return e}function g(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,{CONSOLE_LEVELS:()=>a,consoleSandbox:()=>c,debug:()=>p,originalConsoleMethods:()=>s});var n=r(403),i=r(409),o=r(405);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]})}}function l(){return d().enabled}function u(e,...t){i.DEBUG_BUILD&&l()&&c(()=>{o.GLOBAL_OBJ.console[e](`Sentry Logger [${e}]:`,...t)})}function d(){return i.DEBUG_BUILD?(0,n.getGlobalSingleton)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const p={enable:function(){d().enabled=!0},disable:function(){d().enabled=!1},isEnabled:l,log:function(...e){u("log",...e)},warn:function(...e){u("warn",...e)},error:function(...e){u("error",...e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isDOMError:()=>s,isDOMException:()=>c,isElement:()=>h,isError:()=>i,isErrorEvent:()=>a,isEvent:()=>f,isInstanceOf:()=>v,isParameterizedString:()=>u,isPlainObject:()=>p,isPrimitive:()=>d,isRegExp:()=>m,isRequest:()=>_,isString:()=>l,isSyntheticEvent:()=>y,isThenable:()=>g,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 l(e){return o(e,"String")}function u(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||u(e)||"object"!=typeof e&&"function"!=typeof e}function p(e){return o(e,"Object")}function f(e){return"undefined"!=typeof Event&&v(e,Event)}function h(e){return"undefined"!=typeof Element&&v(e,Element)}function m(e){return o(e,"RegExp")}function g(e){return Boolean(e?.then&&"function"==typeof e.then)}
1function y(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch{return!1}}function b(e){return!("object"!=typeof e||null===e||!(e.__isVue||e._isVue||e.__v_isVNode))}function _(e){return"undefined"!=typeof Request&&v(e,Request)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{safeDateNow:()=>s,safeMathRandom:()=>a,withRandomSafeContext:()=>o});var n=r(405);let i;function o(e){if(void 0!==i)return i?i(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=n.GLOBAL_OBJ;return t in r&&"function"==typeof r[t]?(i=r[t],i(e)):(i=null,e())}function a(){return o(()=>Math.random())}function s(){return o(()=>Date.now())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isMatchingPattern:()=>c,safeJoin:()=>s,snipLine:()=>a,stringMatchesSomePattern:()=>l,truncate:()=>o});var n=r(414),i=r(417);function o(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function a(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 s(e,t){if(!Array.isArray(e))return"";const r=[];for(let t=0;t<e.length;t++){const o=e[t];(0,n.isPrimitive)(o)?r.push(String(o)):o instanceof Error?r.push(o.message?`${o.name}: ${o.message}`:o.name):r.push((0,i.stringifyValue)(void 0,o))}return r.join(t)}function c(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"==typeof t&&t(e))}function l(e,t=[],r=!1){for(const n of t)if(c(e,n,r))return!0;return!1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{normalize:()=>c,normalizeToSize:()=>l,normalizeUrlToBase:()=>p,setNormalizeStringifier:()=>s,stringifyValue:()=>d});var n=r(418),i=r(412),o=r(419);let a;function s(e){a=e}function c(e,t=100,r=1/0){try{return u("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function l(e,t=3,r=102400){const n=c(e,t);return i=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>r?l(e,t-1,r):n;var i}function u(e,t,r=1/0,o=1/0,a=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[s,c]=a;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const l=d(e,t);if(!l.startsWith("[object "))return l;if((0,n.hasSkipNormalizationHint)(t))return t;const p=(0,n.getNormalizationDepthOverrideHint)(t),f=void 0!==p?p:r;if(0===f)return l.replace("object ","");if(s(t))return"[Circular ~]";const h=t;if(h&&"function"==typeof h.toJSON)try{return u("",h.toJSON(),f-1,o,a)}catch{}const m=Array.isArray(t)?[]:{};let g=0;const y=(0,i.convertToPlainObject)(t);for(const e in y){if(!Object.prototype.hasOwnProperty.call(y,e))continue;if(g>=o){m[e]="[MaxProperties ~]";break}const t=y[e];m[e]=u(e,t,f-1,o,a),g++}return c(t),m}function d(e,t){try{if(a){const e=a(t);if(e)return e}if("undefined"!=typeof globalThis&&t===globalThis)return"[Global]";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 e=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return`[object ${e}]`}catch(e){return`**non-serializable** (${e})`}}function p(e,t){const r=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let n=e;try{n=decodeURI(e)}catch{}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,{getNormalizationDepthOverrideHint:()=>l,hasSkipNormalizationHint:()=>c,setNormalizationDepthOverrideHint:()=>s,setSkipNormalizationHint:()=>a});var n=r(412);const i=Symbol.for("sentry.skipNormalization"),o=Symbol.for("sentry.overrideNormalizationDepth");function a(e){(0,n.addNonEnumerableProperty)(e,i,!0)}function s(e,t){(0,n.addNonEnumerableProperty)(e,o,t)}function c(e){return Boolean(e[i])}function l(e){const t=e[o];return"number"==typeof t?t:void 0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{UNKNOWN_FUNCTION:()=>i,createStackParser:()=>s,getFramesFromEvent:()=>f,getFunctionName:()=>p,normalizeStackTracePath:()=>h,stackParserFromStackParserOptions:()=>c,stripSentryFramesAndReverse:()=>l});const n=50,i="?",o=/\(error: (.*)\)/,a=/captureMessage|captureException/;function s(...e){const t=e.sort((e,t)=>
1e[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++){let r=s[e];r.length>1024&&(r=r.slice(0,1024));const c=o.test(r)?r.replace(o,"$1"):r;if(!c.includes("Error: ")){for(const e of t){const t=e(c);if(t){a.push(t);break}}if(a.length>=n+i)break}}return l(a.slice(i))}}function c(e){return Array.isArray(e)?s(...e):e}function l(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(u(t).function||"")&&t.pop(),t.reverse(),a.test(u(t).function||"")&&(t.pop(),a.test(u(t).function||"")&&t.pop()),t.slice(0,n).map(e=>({...e,filename:e.filename||u(t).filename,function:e.function||i}))}function u(e){return e[e.length-1]||{}}const d="<anonymous>";function p(e){try{return e&&"function"==typeof e&&e.name||d}catch{return d}}function f(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{return}}}function h(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserPerformanceTimeOrigin:()=>u,dateTimestampInSeconds:()=>a,timestampInSeconds:()=>c});var n=r(415),i=r(405);const o=1e3;function a(){return(0,n.safeDateNow)()/o}let s;function c(){return(s??(s=function(){const{performance:e}=i.GLOBAL_OBJ;if(!e?.now||!e.timeOrigin)return a;const t=e.timeOrigin;return()=>(t+(0,n.withRandomSafeContext)(()=>e.now()))/o}()))()}let l=null;function u(){return null===l&&(l=function(){const{performance:e}=i.GLOBAL_OBJ;if(!e?.now)return;const t=3e5,r=(0,n.withRandomSafeContext)(()=>e.now()),o=(0,n.safeDateNow)(),a=e.timeOrigin;if("number"==typeof a&&Math.abs(a+r-o)<t)return a;const s=e.timing?.navigationStart;if("number"==typeof s&&Math.abs(s+r-o)<t)return s;return o-r}()),l}},(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,{generateSpanId:()=>o,generateTraceId:()=>i});var n=r(411);function i(){return(0,n.uuid4)()}function o(){return(0,n.uuid4)().substring(16)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_getSpanForScope:()=>s,_setSpanForScope:()=>a});var n=r(412),i=r(424);const o="_sentrySpan";function a(e,t){t?(0,n.addNonEnumerableProperty)(e,o,(0,i.makeWeakRef)(t)):delete e[o]}function s(e){return(0,i.derefWeakRef)(e[o])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{derefWeakRef:()=>o,makeWeakRef:()=>i});var n=r(405);function i(e){try{const t=n.GLOBAL_OBJ.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}function o(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{chainAndCopyPromiseLike:()=>o});const n=e=>e instanceof Promise&&!e[i],i=Symbol("chained PromiseLike"),o=(e,t,r)=>{const i=e.then(e=>(t(e),e),e=>{throw r(e),e});return n(i)&&n(e)?i:a(e,i)},a=(e,t)=>{if(!t)return e;let r=!1;for(const n in e){if(n in t)continue;r=!0;const i=e[n];"function"==typeof i?Object.defineProperty(t,n,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[n]=i}return r&&Object.assign(t,{[i]:!0}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SUPPRESS_TRACING_KEY:()=>A,continueTrace:()=>C,startInactiveSpan:()=>I,startNewTrace:()=>D,startSpan:()=>R,startSpanManual:()=>P,suppressTracing:()=>M,withActiveSpan:()=>k});var n=r(402),i=r(403),o=r(401),a=r(409),s=r(427),c=r(428),l=r(413),u=r(429),d=r(430),p=r(431),f=r(432),h=r(433),m=r(422),g=r(415),y=r(423),v=r(434),b=r(438),_=r(440),S=r(442),E=r(443),w=r(444),T=r(445),x=r(436),O=r(437);const A="__SENTRY_SUPPRESS_TRACING__";function R(e,t){const r=F();if(r.startSpan)return r.startSpan(e,t);const n=L(e),{forceTransaction:i,parentSpan:a,scope:s}=e,c=s?.clone();return(0,o.withScope)(c,()=>U(a)(()=>{const r=(0,o.getCurrentScope)(),s=j(r,a),c=(0,o.getClient)(),l=e.onlyIfParent&&!s,d=l?new w.SentryNonRecordingSpan:N({parentSpan:s,spanArguments:n,forceTransaction:i,scope:r});return l&&c?.recordDroppedEvent("no_parent_span","span"),H(d)&&s||(0,y._setSpanForScope)(r,d),(0,u.handleCallbackErrors)(()=>t(d),()=>{const{status:e}=(0,v.spanToJSON)(d);!d.isRecording()||e&&"ok"!==e||d.setStatus({code:x.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{d.end()})}))}function P(e,t){const r=F();if(r.startSpanManual)return r.startSpanManual(e,t);const n=L(e),{forceTransaction:i,parentSpan:a,scope:s}=e,c=s?.clone();return(0,o.withScope)(c,()=>U(a)(()=>{const r=(0,o.getCurrentScope)(),s=j(r,a),c=e.onlyIfParent&&!s,l=c?new w.SentryNonRecordingSpan:N({parentSpan:s,spanArguments:n,forceTransaction:i,scope:r});return c&&(0,o.getClient)()?.recordDroppedEvent("no_parent_span","span"),H(l)&&s||(0,y._setSpanForScope)(r,l),(0,u.handleCallbackErrors)(()=>t(l,()=>l.end()),()=>{const{status:e}=(0,v.spanToJSON)(l);!l.isRecording()||e&&"ok"!==e||l.setStatus({code:x.SPAN_STATUS_ERROR,message:"internal_error"})})}))}function I(e){const t=F();if(t.startInactiveSpan)return t.startInactiveSpan(e);const r=L(e),{forceTransaction:n,parentSpan:i}=e;return(e.scope?t=>(0,o.withScope)(e.scope,t):void 0!==i?e=>k(i,e):e=>e())(()=>{const t=(0,o.getCurrentScope)(),a=j(t,i),s=(0,o.getClient)();return e.onlyIfParent&&!a?(s?.recordDroppedEvent("no_parent_span","span"),new w.SentryNonRecordingSpan):N({parentSpan:a,spanArguments:r,forceTransaction:n,scope:t})})}const C=(e,t)=>{const r=(0,i.getMainCarrier)(),a=(0,n.getAsyncContextStrategy)(r);if(a.continueTrace)return a.continueTrace(e,t);const{sentryTrace:s,baggage:l}=e,u=(0,o.getClient)(),d=(0,c.baggageHeaderToDynamicSamplingContext)(l);return u&&!(0,b.shouldContinueTrace)(u,d?.org_id)?D(t):(0,o.withScope)(e=>{const r=(0,b.propagationContextFromHeaders)(s,l);return e.setPropagationContext(r),(0,y._setSpanForScope)(e,void 0),t()})};function k(e,t){const r=F();return r.withActiveSpan?r.withActiveSpan(e,t):(0,o.withScope)(r=>((0,y._setSpanForScope)(r,e||void 0),t(r)))}function M(e){const t=F();return t.suppressTracing?t.suppressTracing(e):(0,o.withScope)(t=>{t.setSDKProcessingMetadata({[A]:!0});const r=e();return t.setSDKProcessingMetadata({[A]:void 0}),r})}function D(e){const t=F();return t.startNewTrace?t.startNewTrace(e):(0,o.withScope)(t=>(t.setPropagationContext({traceId:(0,m.generateTraceId)(),sampleRand:(0,g.safeMathRandom)()}
1),a.DEBUG_BUILD&&l.debug.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),k(null,e)))}function N({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){if(!(0,d.hasSpansEnabled)()){const n=new w.SentryNonRecordingSpan;if(r||!e){const e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,_.getDynamicSamplingContextFromSpan)(n)};(0,_.freezeDscOnSpan)(n,e)}return n}const i=(0,o.getClient)();if(function(e,t){const r=e?.getOptions().ignoreSpans;if(!e||!(0,f.hasSpanStreamingEnabled)(e)||!r?.length)return!1;return(0,p.shouldIgnoreSpan)({description:t.name||"",op:t.attributes?.[s.SEMANTIC_ATTRIBUTE_SENTRY_OP]||t.op,attributes:t.attributes},r)}(i,t))return z(n)||i?.recordDroppedEvent("ignored","span"),new w.SentryNonRecordingSpan({dropReason:"ignored",traceId:e?.spanContext().traceId??n.getPropagationContext().traceId});const a=(0,o.getIsolationScope)();let c;if(e&&!r)c=function(e,t,r){const{spanId:n,traceId:i}=e.spanContext(),a=z(t),s=!a&&(0,v.spanIsSampled)(e),c=s?new T.SentrySpan({...r,parentSpanId:n,traceId:i,sampled:s}):new w.SentryNonRecordingSpan({traceId:i});(0,v.addChildSpanToSpan)(e,c);const l=(0,o.getClient)();if(!l)return c;(0,f.hasSpanStreamingEnabled)(l)&&c instanceof w.SentryNonRecordingSpan&&(e instanceof w.SentryNonRecordingSpan&&e.dropReason?(c.dropReason=e.dropReason,l.recordDroppedEvent(e.dropReason,"span")):a||(c.dropReason="sample_rate",l.recordDroppedEvent("sample_rate","span")));l.emit("spanStart",c),r.endTimestamp&&(l.emit("spanEnd",c),l.emit("afterSpanEnd",c));return c}(e,n,t),(0,v.addChildSpanToSpan)(e,c);else if(e){const r=(0,_.getDynamicSamplingContextFromSpan)(e),{traceId:i,spanId:o}=e.spanContext(),a=(0,v.spanIsSampled)(e);c=B({traceId:i,parentSpanId:o,...t},n,a),(0,_.freezeDscOnSpan)(c,r)}else{const{traceId:e,dsc:r,parentSpanId:i,sampled:o}={...a.getPropagationContext(),...n.getPropagationContext()};c=B({traceId:e,parentSpanId:i,...t},n,o),r&&(0,_.freezeDscOnSpan)(c,r)}return(0,S.logSpanStart)(c),(0,O.setCapturedScopesOnSpan)(c,n,a),c}function L(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...t};return r.startTimestamp=(0,v.spanTimeInputToSeconds)(e.startTime),delete r.startTime,r}return t}function F(){const e=(0,i.getMainCarrier)();return(0,n.getAsyncContextStrategy)(e)}function B(e,t,r){const n=(0,o.getClient)(),i=n?.getOptions()||{},{name:c=""}=e,u={spanAttributes:{...e.attributes},spanName:c,parentSampled:r};n?.emit("beforeSampling",u,{decision:!1});const d=u.parentSampled??r,p=u.spanAttributes,m=t.getPropagationContext(),g=z(t),[y,v,b]=g?[!1]:(0,E.sampleSpan)(i,{name:c,parentSampled:d,attributes:p,parentSampleRate:(0,h.parseSampleRate)(m.dsc?.sample_rate)},m.sampleRand),_=new T.SentrySpan({...e,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[s.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==v&&b?v:void 0,...p},sampled:y});return y||!n||g||(a.DEBUG_BUILD&&l.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),n.recordDroppedEvent("sample_rate",(0,f.hasSpanStreamingEnabled)(n)?"span":"transaction")),n&&n.emit("spanStart",_),_}function j(e,t){if(t)return t;if(null===t)return;const r=(0,y._getSpanForScope)(e);if(!r)return;const n=(0,o.getClient)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,v.getRootSpan)(r):r}function U(e){return void 0!==e?t=>k(e,t):e=>e()}function H(e){return e instanceof w.SentryNonRecordingSpan&&"ignored"===e.dropReason}function z(e){return!0===e.getScopeData().sdkProcessingMetadata[A]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{GEN_AI_CONVERSATION_ID_ATTRIBUTE:()=>C,SEMANTIC_ATTRIBUTE_CACHE_HIT:()=>x,SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE:()=>A,SEMANTIC_ATTRIBUTE_CACHE_KEY:()=>O,SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME:()=>T,SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD:()=>R,SEMANTIC_ATTRIBUTE_PROFILE_ID:()=>w,SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME:()=>E,SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT:()=>p,SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON:()=>c,SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT:()=>l,SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE:()=>u,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>a,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>s,SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE:()=>o,SEMANTIC_ATTRIBUTE_SENTRY_RELEASE:()=>d,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>i,SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS:()=>y,SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME:()=>m,SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION:()=>g,SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID:()=>h,SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME:()=>f,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>n,SEMANTIC_ATTRIBUTE_URL_FULL:()=>P,SEMANTIC_ATTRIBUTE_USER_EMAIL:()=>b,SEMANTIC_ATTRIBUTE_USER_ID:()=>v,SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS:()=>_,SEMANTIC_ATTRIBUTE_USER_USERNAME:()=>S,SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE:()=>I});const n="sentry.source",i="sentry.sample_rate",o="sentry.previous_trace_sample_rate",a="sentry.op",s="sentry.origin",c="sentry.idle_span_finish_reason",l="sentry.measurement_unit",u="sentry.measurement_value",d="sentry.release",p="sentry.environment",f="sentry.segment.name",h="sentry.segment.id",m="sentry.sdk.name",g="sentry.sdk.version",y="sentry.sdk.integrations",v="user.id",b="user.email",_="user.ip_address",S="user.name",E="sentry.custom_span_name",w="sentry.profile_id",T="sentry.exclusive_time",x="cache.hit",O="cache.key",A="cache.item_size",R="http.request.method",P="url.full",I="sentry.link.type",C="gen_ai.conversation.id"},(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:()=>l,dynamicSamplingContextToSentryBaggageHeader:()=>u,mergeBaggageHeaders:()=>h,objectToBaggageHeader:()=>f,parseBaggageHeader:()=>d});var n=r(409),i=r(413),o=r(414);const a="sentry-",s=/^sentry-/,c=8192;function l(e){const t=d(e);if(!t)return;const r=Object.entries(t).reduce((e,[t,r])=>
1{if(t.startsWith(a)){e[t.slice(a.length)]=r}return e},{});return Object.keys(r).length>0?r:void 0}function u(e){if(!e)return;return f(Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${a}${t}`]=r),e),{}))}function d(e){if(e&&((0,o.isString)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{const r=p(t);return Object.entries(r).forEach(([t,r])=>{e[t]=r}),e},{}):p(e)}function p(e){return e.split(",").map(e=>{const t=e.indexOf("=");if(-1===t)return[];return[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}function f(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,r],o)=>{const a=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,s=0===o?a:`${e},${a}`;return s.length>c?(n.DEBUG_BUILD&&i.debug.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):s},"")}function h(e,t){if(!e)return t;const r=d(e),n=d(t);if(!n)return e;const i={};let o=!1;const s={},c={};for(const[e,t]of Object.entries(n))e.startsWith(a)?(s[e]=t,o=!0):c[e]=t;if(r)for(const[e,t]of Object.entries(r))o&&e.startsWith(a)||(i[e]=t);o&&Object.assign(i,s);for(const[e,t]of Object.entries(c))i[e]??(i[e]=t);return f(i)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{handleCallbackErrors:()=>o});var n=r(425),i=r(414);function o(e,t,r=()=>{},o=()=>{}){let a;try{a=e()}catch(e){throw t(e),r(),e}return function(e,t,r,o){if((0,i.isThenable)(e))return(0,n.chainAndCopyPromiseLike)(e,e=>{r(),o(e)},e=>{t(e),r()});return r(),o(e),e}(a,t,r,o)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{hasSpansEnabled:()=>i});var n=r(401);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)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{reparentChildSpans:()=>l,shouldIgnoreSpan:()=>s});var n=r(409),i=r(413),o=r(416);function a(e){i.debug.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function s(e,t){if(!t?.length)return!1;for(const r of t){if(u(r)){if(e.description&&(0,o.isMatchingPattern)(e.description,r))return n.DEBUG_BUILD&&a(e),!0;continue}const t=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!t)continue;const i=!r.name||e.description&&(0,o.isMatchingPattern)(e.description,r.name),s=!r.op||e.op&&(0,o.isMatchingPattern)(e.op,r.op),l=!r.attributes||Object.entries(r.attributes).every(([t,r])=>c(e.attributes?.[t],r));if(i&&s&&l)return n.DEBUG_BUILD&&a(e),!0}return!1}function c(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?(0,o.isMatchingPattern)(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,r)=>e===t[r]):e===t}function l(e,t){const r=t.parent_span_id,n=t.span_id;if(r)for(const t of e)t.parent_span_id===n&&(t.parent_span_id=r)}function u(e){return"string"==typeof e||e instanceof RegExp}},(e,t,r)=>{"use strict";function n(e){return"stream"===e.getOptions().traceLifecycle}r.r(t),r.d(t,{hasSpanStreamingEnabled:()=>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,{INTERNAL_getSegmentSpan:()=>z,TRACE_FLAG_NONE:()=>g,TRACE_FLAG_SAMPLED:()=>y,addChildSpanToSpan:()=>B,convertSpanLinksForEnvelope:()=>w,getActiveSpan:()=>V,getRootSpan:()=>H,getSimpleStatusMessage:()=>N,getSpanDescendants:()=>U,getStatusMessage:()=>D,getStreamedSpanLinks:()=>T,removeChildSpanFromSpan:()=>j,showSpanDropWarning:()=>G,spanIsSampled:()=>M,spanTimeInputToSeconds:()=>x,spanToJSON:()=>A,spanToStreamedSpanJSON:()=>R,spanToTraceContext:()=>_,spanToTraceHeader:()=>S,spanToTraceparentHeader:()=>E,spanToTransactionTraceContext:()=>b,streamedSpanJsonToSerializedSpan:()=>I,updateSpanName:()=>$});var n=r(402),i=r(435),o=r(403),a=r(401),s=r(427),c=r(436),l=r(437),u=r(412),d=r(422),p=r(420),f=r(438),h=r(413),m=r(423);const g=0,y=1;let v=!1;function b(e){const{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:o,status:a,origin:s,links:c}=A(e);return{parent_span_id:o,span_id:t,trace_id:r,data:n,op:i,status:a,origin:s,links:c}}function _(e){const{spanId:t,traceId:r,isRemote:n}=e.spanContext(),i=n?t:A(e).parent_span_id,o=(0,l.getCapturedScopesOnSpan)(e).scope;return{parent_span_id:i,span_id:n?o?.getPropagationContext().propagationSpanId||(0,d.generateSpanId)():t,trace_id:r}}function S(e){const{traceId:t,spanId:r}=e.spanContext(),n=M(e);return(0,f.generateSentryTraceHeader)(t,r,n)}function E(e){const{traceId:t,spanId:r}=e.spanContext(),n=M(e);return(0,f.generateTraceparentHeader)(t,r,n)}function w(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 T(e){return e?.length?e.map(({context:{spanId:e,traceId:t,traceFlags:r},attributes:n}
1)=>({span_id:e,trace_id:t,sampled:r===y,attributes:n})):void 0}function x(e){return"number"==typeof e?O(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?O(e.getTime()):(0,p.timestampInSeconds)()}function O(e){return e>9999999999?e/1e3:e}function A(e){if(k(e))return e.getSpanJSON();const{spanId:t,traceId:r}=e.spanContext();if(C(e)){const{attributes:n,startTime:i,name:o,endTime:a,status:c,links:l}=e;return{span_id:t,trace_id:r,data:n,description:o,parent_span_id:P(e),start_timestamp:x(i),timestamp:x(a)||void 0,status:D(c),op:n[s.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:n[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:w(l)}}return{span_id:t,trace_id:r,start_timestamp:0,data:{}}}function R(e){if(k(e))return e.getStreamedSpanJSON();const{spanId:t,traceId:r}=e.spanContext();if(C(e)){const{attributes:n,startTime:i,name:o,endTime:a,status:s,links:c}=e;return{name:o,span_id:t,trace_id:r,parent_span_id:P(e),start_timestamp:x(i),end_timestamp:x(a),is_segment:e===z(e),status:N(s),attributes:n,links:T(c)}}return{span_id:t,trace_id:r,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===z(e)}}function P(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function I(e){return{...e,attributes:(0,i.serializeAttributes)(e.attributes),links:e.links?.map(e=>({...e,attributes:(0,i.serializeAttributes)(e.attributes)}))}}function C(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function k(e){return"function"==typeof e.getSpanJSON}function M(e){const{traceFlags:t}=e.spanContext();return t===y}function D(e){if(e&&e.code!==c.SPAN_STATUS_UNSET)return e.code===c.SPAN_STATUS_OK?"ok":e.message||"internal_error"}function N(e){return e&&e.code!==c.SPAN_STATUS_OK&&e.code!==c.SPAN_STATUS_UNSET&&"cancelled"!==e.message?"error":"ok"}const L="_sentryChildSpans",F="_sentryRootSpan";function B(e,t){const r=e[F]||e;(0,u.addNonEnumerableProperty)(t,F,r),e[L]?e[L].add(t):(0,u.addNonEnumerableProperty)(e,L,new Set([t]))}function j(e,t){e[L]&&e[L].delete(t)}function U(e){const t=new Set;return function e(r){if(!t.has(r)&&M(r)){t.add(r);const n=r[L]?Array.from(r[L]):[];for(const t of n)e(t)}}(e),Array.from(t)}const H=z;function z(e){return e[F]||e}function V(){const e=(0,o.getMainCarrier)(),t=(0,n.getAsyncContextStrategy)(e);return t.getActiveSpan?t.getActiveSpan():(0,m._getSpanForScope)((0,a.getCurrentScope)())}function G(){v||((0,h.consoleSandbox)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),v=!0)}function $(e,t){e.updateName(t),e.setAttributes({[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[s.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]:t})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{attributeValueToTypedAttributeValue:()=>o,estimateTypedAttributesSizeInBytes:()=>s,isAttributeObject:()=>i,serializeAttributes:()=>a});var n=r(414);function i(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")}function o(e,t){const{value:r,unit:n}=i(e)?e:{value:e,unit:void 0},o=function(e){if(Array.isArray(e))return{value:e,type:"array"};const t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(r),a=n&&"string"==typeof n?{unit:n}:{};if(o)return{...o,...a};if(!t||"skip-undefined"===t&&void 0===r)return;let s="";try{s=JSON.stringify(r)??""}catch{}return{value:s,type:"string",...a}}function a(e,t=!1){const r={};for(const[n,i]of Object.entries(e??{})){const e=o(i,t);e&&(r[n]=e)}return r}function s(e){if(!e)return 0;let t=0;for(const[r,i]of Object.entries(e)){t+=2*r.length,t+=2*i.type.length,t+=2*(i.unit?.length??0);const e=i.value;Array.isArray(e)?t+=c(e[0])*e.length:(0,n.isPrimitive)(e)?t+=c(e):t+=100}return t}function c(e){return"string"==typeof e?2*e.length:"boolean"==typeof e?4:"number"==typeof e?8:0}},(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:"internal_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:()=>c,setCapturedScopesOnSpan:()=>s});var n=r(412),i=r(424);const o="_sentryScope",a="_sentryIsolationScope";function s(e,t,r){e&&((0,n.addNonEnumerableProperty)(e,a,(0,i.makeWeakRef)(r)),(0,n.addNonEnumerableProperty)(e,o,t))}function c(e){const t=e;return{scope:t[o],isolationScope:(0,i.derefWeakRef)(t[a])}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACEPARENT_REGEXP:()=>l,extractTraceparentData:()=>u,generateSentryTraceHeader:()=>p,generateTraceparentHeader:()=>f,propagationContextFromHeaders:()=>d,shouldContinueTrace:()=>h});var n=r(413),i=r(428),o=r(439),a=r(433),s=r(422),c=r(415);const l=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function u(e){if(!e)return;const t=e.match(l);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 d(e,t){const r=u(e),n=(0,i.baggageHeaderToDynamicSamplingContext)(t);if(!r?.traceId)return{traceId:(0,s.generateTraceId)(),sampleRand:(0,c.safeMathRandom)()};const o=function(e,t){const r=(0,a.parseSampleRate)(t?.sample_rand);if(void 0!==r)return r;const n=(0,a.parseSampleRate)(t?.sample_rate);return n&&void 0!==e?.parentSampled?e.parentSampled?(0,c.safeMathRandom)()*n:n+(0,c.safeMathRandom)()*(1-n):(0,c.safeMathRandom)()}(r,n);n&&(n.sample_rand=o.toString());const{traceId:l,parentSpanId:d,parentSampled:p}=r;return{traceId:l,parentSpanId:d,sampled:p,dsc:n||{},sampleRand:o}}function p(e=(0,s.generateTraceId)(),t=(0,s.generateSpanId)(),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function f(e=(0,s.generateTraceId)(),t=(0,s.generateSpanId)(),r){return`00-${e}-${t}-${r?"01":"00"}`}function h(e,t){const r=(0,o.extractOrgIdFromClient)(e);if(t&&r&&t!==r)return n.debug.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${r})`),!1;return!(e.getOptions().strictTraceContinuation||!1)||!(t&&!r||!t&&r)||(n.debug.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${r})`),!1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dsnFromString:()=>c,dsnToString:()=>s,extractOrgIdFromClient:()=>d,extractOrgIdFromDsnHost:()=>u,makeDsn:()=>p});var n=r(409),i=r(413);const o=/^o(\d+)\./,a=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function s(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 c(e){const t=a.exec(e);if(!t)return void(0,i.consoleSandbox)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[r,n,o="",s="",c="",u=""]=t.slice(1);let d="",p=u;const f=p.split("/");if(f.length>1&&(d=f.slice(0,-1).join("/"),p=f.pop()),p){const e=p.match(/^\d+/);e&&(p=e[0])}return l({host:s,pass:o,path:d,projectId:p,port:c,protocol:r,publicKey:n})}function l(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=e.match(o);return t?.[1]}function d(e){const t=e.getOptions(),{host:r}=e.getDsn()||{};let n;return t.orgId?n=String(t.orgId):r&&(n=u(r)),n}function p(e){const t="string"==typeof e?c(e):l(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.debug.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(r.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(o)?t&&isNaN(parseInt(t,10))&&(i.debug.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(i.debug.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),1):(i.debug.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(t))return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{freezeDscOnSpan:()=>f,getDynamicSamplingContextFromClient:()=>h,getDynamicSamplingContextFromScope:()=>m,getDynamicSamplingContextFromSpan:()=>g,spanToBaggageHeader:()=>y});var n=r(441),i=r(401),o=r(427),a=r(428),s=r(439),c=r(430),l=r(412),u=r(434),d=r(437);const p="_frozenDsc";function f(e,t){const r=e;(0,l.addNonEnumerableProperty)(r,p,t)}function h(e,t){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},o={environment:r.environment||n.DEFAULT_ENVIRONMENT,release:r.release,public_key:i,trace_id:e,org_id:(0,s.extractOrgIdFromClient)(t)};return t.emit("createDsc",o),o}function m(e,t){const r=t.getPropagationContext();return r.dsc||h(r.traceId,e)}function g(e){const t=(0,i.getClient)();if(!t)return{};const r=(0,u.getRootSpan)(e),n=(0,u.spanToJSON)(r),s=n.data,l=r.spanContext().traceState,f=l?.get("sentry.sample_rate")??s[o.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??s[o.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];function m(e){return"number"!=typeof f&&"string"!=typeof f||(e.sample_rate=`${f}`),e}const g=r[p];if(g)return m(g);const y=l?.get("sentry.dsc"),v=y&&(0,a.baggageHeaderToDynamicSamplingContext)(y);if(v)return m(v);const b=h(e.spanContext().traceId,t),_=s[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]??s["sentry.span.source"],S=n.description;return"url"!==_&&S&&(b.transaction=S),(0,c.hasSpansEnabled)()&&(b.sampled=String((0,u.spanIsSampled)(r)),b.sample_rand=l?.get("sentry.sample_rand")??(0,d.getCapturedScopesOnSpan)(r).scope?.getPropagationContext().sampleRand.toString()),m(b),t.emit("createDsc",b,r),b}function y(e){const t=g(e);return(0,a.dynamicSamplingContextToSentryBaggageHeader)(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_ENVIRONMENT:()=>n,DEV_ENVIRONMENT:()=>i});const n="production",i="development"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{logSpanEnd:()=>s,logSpanStart:()=>a});var n=r(409),i=r(413),o=r(434);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),l=(0,o.getRootSpan)(e),u=l===e,d=`[Tracing] Starting ${c?"sampled":"unsampled"} ${u?"root ":""}span`,p=[`op: ${r}`,`name: ${t}`,`ID: ${s}`];if(a&&p.push(`parent ID: ${a}`),!u){const{op:e,description:t}=(0,o.spanToJSON)(l);p.push(`root ID: ${l.spanContext().spanId}`),e&&p.push(`root op: ${e}`),t&&p.push(`root description: ${t}`)}i.debug.log(`${d}\n  ${p.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.debug.log(s)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{sampleSpan:()=>s});var n=r(409),i=r(413),o=r(430),a=r(433);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 l=(0,a.parseSampleRate)(c);if(void 0===l)return n.DEBUG_BUILD&&i.debug.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(!l)return n.DEBUG_BUILD&&i.debug.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,l,s];const u=r<l;return u||n.DEBUG_BUILD&&i.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(c)})`),[u,l,s]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentryNonRecordingSpan:()=>o});var n=r(422),i=r(434);class o{constructor(e={}){this._traceId=e.traceId||(0,n.generateTraceId)(),this._spanId=e.spanId||(0,n.generateSpanId)(),this.dropReason=e.dropReason}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}
1addEvent(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,{SentrySpan:()=>g});var n=r(401),i=r(409),o=r(446),a=r(427),s=r(413),c=r(422),l=r(434),u=r(420),d=r(440),p=r(442),f=r(449),h=r(432),m=r(437);class g{constructor(e={}){this._traceId=e.traceId||(0,c.generateTraceId)(),this._spanId=e.spanId||(0,c.generateSpanId)(),this._startTime=e.startTimestamp||(0,u.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?l.TRACE_FLAG_SAMPLED:l.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,l.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,l.spanTimeInputToSeconds)(e),(0,p.logSpanEnd)(this),this._onSpanEnded())}getSpanJSON(){return{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,l.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,f.timedEventsToMeasurements)(this._events),is_segment:this._isStandaloneSpan&&(0,l.getRootSpan)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,l.getRootSpan)(this).spanContext().spanId:void 0,links:(0,l.convertSpanLinksForEnvelope)(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===(0,l.getRootSpan)(this),status:(0,l.getSimpleStatusMessage)(this._status),attributes:this._attributes,links:(0,l.getStreamedSpanLinks)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){i.DEBUG_BUILD&&s.debug.log("[Tracing] Adding an event to span:",e);const n=y(t)?t:r||(0,u.timestampInSeconds)(),o=y(t)?{}:t||{},a={name:e,time:(0,l.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),this._isStandaloneSpan||e.emit("afterSpanEnd",this));if(!(this._isStandaloneSpan||this===(0,l.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.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));if(e&&(0,h.hasSpanStreamingEnabled)(e))return void e.emit("afterSegmentSpanEnd",this);const t=this._convertSpanToTransaction();if(t){((0,m.getCapturedScopesOnSpan)(this).scope||(0,n.getCurrentScope)()).captureEvent(t)}}_convertSpanToTransaction(){if(!v((0,l.spanToJSON)(this)))return;this._name||(i.DEBUG_BUILD&&s.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=(0,m.getCapturedScopesOnSpan)(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const n=(0,l.getSpanDescendants)(this).filter(e=>e!==this&&!function(e){return e instanceof g&&e.isStandaloneSpan()}(e)).map(e=>(0,l.spanToJSON)(e)).filter(v),o=this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];let c=!1;
1n.forEach(e=>{delete e.data[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],e.op?.startsWith("gen_ai.")&&(c=!0)});const u={contexts:{trace:(0,l.spanToTransactionTraceContext)(this)},spans:n.length>1e3?n.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,d.getDynamicSamplingContextFromSpan)(this),hasGenAiSpans:c},request:r,...o&&{transaction_info:{source:o}}},p=(0,f.timedEventsToMeasurements)(this._events);return p&&Object.keys(p).length&&(i.DEBUG_BUILD&&s.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(p,void 0,2)),u.measurements=p),u}}function y(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,{_enhanceEventWithSdkInfo:()=>u,createEventEnvelope:()=>p,createSessionEnvelope:()=>d,createSpanEnvelope:()=>f});var n=r(440),i=r(447),o=r(439),a=r(448),s=r(415),c=r(431),l=r(434);function u(e,t){if(!t)return e;const r=e.sdk||{};return e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function d(e,t,r,n){const i=(0,a.getSdkMetadataForEnvelopeHeader)(r),c={sent_at:new Date((0,s.safeDateNow)()).toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:(0,o.dsnToString)(t)}},l="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,a.createEnvelope)(c,[l])}function p(e,t,r,n){const i=(0,a.getSdkMetadataForEnvelopeHeader)(r),o=e.type&&"replay_event"!==e.type?e.type:"event";u(e,r?.sdk);const s=(0,a.createEventEnvelopeHeaders)(e,i,n,t);delete e.sdkProcessingMetadata;const c=[{type:o},e];return(0,a.createEnvelope)(s,[c])}function f(e,t){const r=(0,n.getDynamicSamplingContextFromSpan)(e[0]),u=t?.getDsn(),d=t?.getOptions().tunnel,p={sent_at:new Date((0,s.safeDateNow)()).toISOString(),...(f=r,!!f.trace_id&&!!f.public_key&&{trace:r}),...!!d&&u&&{dsn:(0,o.dsnToString)(u)}};var f;const{beforeSendSpan:h,ignoreSpans:m}=t?.getOptions()||{},g=m?.length?e.filter(e=>{const t=(0,l.spanToJSON)(e);return!(0,c.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},m)}):e,y=e.length-g.length;y&&t?.recordDroppedEvent("before_send","span",y);const v=h?e=>{const t=(0,l.spanToJSON)(e),r=(0,i.isStreamedBeforeSendSpanCallback)(h)?t:h(t);return r||((0,l.showSpanDropWarning)(),t)}:l.spanToJSON,b=[];for(const e of g){const t=v(e);t&&b.push((0,a.createSpanEnvelopeItem)(t))}return(0,a.createEnvelope)(p,b)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isStreamedBeforeSendSpanCallback:()=>o,withStreamedSpan:()=>i});var n=r(412);function i(e){return(0,n.addNonEnumerableProperty)(e,"_streamed",!0),e}function o(e){return!!e&&"function"==typeof e&&"_streamed"in e&&!!e._streamed}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addItemToEnvelope:()=>l,createAttachmentEnvelopeItem:()=>g,createEnvelope:()=>c,createEventEnvelopeHeaders:()=>_,createSpanEnvelopeItem:()=>m,envelopeContainsItemType:()=>d,envelopeItemTypeToDataCategory:()=>v,forEachEnvelopeItem:()=>u,getSdkMetadataForEnvelopeHeader:()=>b,parseEnvelope:()=>h,serializeEnvelope:()=>f});var n=r(403),i=r(439),o=r(417),a=r(415),s=r(405);function c(e,t=[]){return[e,t]}function l(e,t){const[r,n]=e;return[r,[...n,t]]}function u(e,t){const r=e[1];for(const e of r){if(t(e,e[0].type))return!0}return!1}function d(e,t){return u(e,(e,r)=>t.includes(r))}function p(e){const t=(0,n.getSentryCarrier)(s.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function f(e){const[t,r]=e;let n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[p(n),e]:n.push("string"==typeof e?p(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{e=JSON.stringify((0,o.normalize)(r))}i(e)}}return"string"==typeof n?n:function(e){const t=e.reduce((e,t)=>
1e+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 h(e){let t="string"==typeof e?p(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 g(e){const t="string"==typeof e.data?p(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const y={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function v(e){return function(e){return e in y}(e)?y[e]:e}function b(e){if(!e?.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function _(e,t,r,n){const o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date((0,a.safeDateNow)()).toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:(0,i.dsnToString)(n)},...o&&{trace:o}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{setMeasurement:()=>s,timedEventsToMeasurements:()=>c});var n=r(409),i=r(427),o=r(413),a=r(434);function s(e,t,r,s=(0,a.getActiveSpan)()){const c=s&&(0,a.getRootSpan)(s);c&&(n.DEBUG_BUILD&&o.debug.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,{applyClientOptions:()=>h,applyDebugIds:()=>m,applyDebugMeta:()=>g,parseEventHintOrCaptureContext:()=>y,prepareEvent:()=>f});var n=r(441),i=r(451),o=r(408),a=r(453),s=r(411),c=r(417),l=r(454),u=r(416),d=r(452),p=r(420);function f(e,t,r,n,a,u){const{normalizeDepth:f=3,normalizeMaxBreadth:y=1e3}=e,v={...t,event_id:t.event_id||r.event_id||(0,s.uuid4)(),timestamp:t.timestamp||(0,p.dateTimestampInSeconds)()},b=r.integrations||e.integrations.map(e=>e.name);h(v,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(v,b),a&&a.emit("applyFrameMetadata",t),void 0===t.type&&m(v,e.stackParser);const _=function(e,t){if(!t)return e;const r=e?e.clone():new o.Scope;return r.update(t),r}(n,r.captureContext);r.mechanism&&(0,s.addExceptionMechanism)(v,r.mechanism);const S=a?a.getEventProcessors():[],E=(0,l.getCombinedScopeData)(u,_),w=[...r.attachments||[],...E.attachments];w.length&&(r.attachments=w),(0,l.applyScopeDataToEvent)(v,E);const T=[...S,...E.eventProcessors];return(r.data&&!0===r.data.__sentry__?(0,d.resolvedSyncPromise)(v):(0,i.notifyEventProcessors)(T,v,r)).then(e=>(e&&g(e),"number"==typeof f&&f>0?function(e,t,r){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,c.normalize)(e.data,t,r)}}))},...e.user&&{user:(0,c.normalize)(e.user,t,r)},...e.contexts&&{contexts:(0,c.normalize)(e.contexts,t,r)},...e.extra&&{extra:(0,c.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,c.normalize)(e.contexts.trace.data,t,r)));e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,c.normalize)(e.data,t,r)}})));e.contexts?.flags&&n.contexts&&(n.contexts.flags=(0,c.normalize)(e.contexts.flags,3,r));return n}(e,f,y):e))}function h(e,t){const{environment:r,release:i,dist:o,maxValueLength:a}=t;e.environment=e.environment||r||n.DEFAULT_ENVIRONMENT,!e.release&&i&&(e.release=i),!e.dist&&o&&(e.dist=o);const s=e.request;s?.url&&a&&(s.url=(0,u.truncate)(s.url,a)),a&&e.exception?.values?.forEach(e
1=>{e.value&&(e.value=(0,u.truncate)(e.value,a))})}function m(e,t){const r=(0,a.getFilenameToDebugIdMap)(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=r[e.filename])})})}function g(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 y(e){if(e)return function(e){return e instanceof o.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,{notifyEventProcessors:()=>s});var n=r(409),i=r(413),o=r(414),a=r(452);function s(e,t,r,n=0){try{const i=c(t,r,e,n);return(0,o.isThenable)(i)?i:(0,a.resolvedSyncPromise)(i)}catch(e){return(0,a.rejectedSyncPromise)(e)}}function c(e,t,r,a){const s=r[a];if(!e||!s)return e;const l=s({...e},t);return n.DEBUG_BUILD&&null===l&&i.debug.log(`Event processor "${s.id||"?"}" dropped event`),(0,o.isThenable)(l)?l.then(e=>c(e,t,r,a+1)):c(l,t,r,a+1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SyncPromise:()=>a,rejectedSyncPromise:()=>o,resolvedSyncPromise:()=>i});var n=r(414);function i(e){return new a(t=>{t(e)})}function o(e){return new a((t,r)=>{r(e)})}class a{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new a((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 a((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(0===this._state)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){const t=(e,t)=>{0===this._state&&((0,n.isThenable)(t)?t.then(r,i):(this._state=e,this._value=t,this._executeHandlers()))},r=e=>{t(1,e)},i=e=>{t(2,e)};try{e(r,i)}catch(e){i(e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDebugImagesForResources:()=>u,getFilenameToDebugIdMap:()=>l});var n=r(419),i=r(405);let o,a,s,c;function l(e){const t=i.GLOBAL_OBJ._sentryDebugIds,r=i.GLOBAL_OBJ._debugIds;if(!t&&!r)return{};const n=t?Object.keys(t):[],l=r?Object.keys(r):[];if(c&&n.length===a&&l.length===s)return c;a=n.length,s=l.length,c={},o||(o={});const u=(t,r)=>{for(const n of t){const t=r[n],i=o?.[n];if(i&&c&&t)c[i[0]]=t,o&&(o[n]=[i[0],t]);else if(t){const r=e(n);for(let e=r.length-1;e>=0;e--){const i=r[e],a=i?.filename;if(a&&c&&o){c[a]=t,o[n]=[a,t];break}}}}};return t&&u(n,t),r&&u(l,r),c}function u(e,t){const r=l(e);if(!r)return[];const i=[];for(const e of t){const t=(0,n.normalizeStackTracePath)(e);t&&r[t]&&i.push({type:"sourcemap",code_file:e,debug_id:r[t]})}return i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyScopeDataToEvent:()=>s,getCombinedScopeData:()=>u,mergeAndOverwriteScopeData:()=>l,mergeScopeData:()=>c});var n=r(401),i=r(440),o=r(421),a=r(434);function s(e,t){const{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:s}=t;!function(e,t){const{extra:r,tags:n,user:i,contexts:o,level:a,transactionName:s}=t;Object.keys(r).length&&(e.extra={...r,...e.extra});Object.keys(n).length&&(e.tags={...n,...e.tags});Object.keys(i).length&&(e.user={...i,...e.user});Object.keys(o).length&&(e.contexts={...o,...e.contexts});a&&(e.level=a);s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),n&&function(e,t){e.contexts={trace:(0,a.spanToTraceContext)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,i.getDynamicSamplingContextFromSpan)(t),...e.sdkProcessingMetadata};const r=(0,a.getRootSpan)(t),n=(0,a.spanToJSON)(r).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,n),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,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}
1(e,s)}function c(e,t){const{extra:r,tags:n,attributes:i,user:a,contexts:s,level:c,sdkProcessingMetadata:u,breadcrumbs:d,fingerprint:p,eventProcessors:f,attachments:h,propagationContext:m,transactionName:g,span:y}=t;l(e,"extra",r),l(e,"tags",n),l(e,"attributes",i),l(e,"user",a),l(e,"contexts",s),e.sdkProcessingMetadata=(0,o.merge)(e.sdkProcessingMetadata,u,2),c&&(e.level=c),g&&(e.transactionName=g),y&&(e.span=y),d.length&&(e.breadcrumbs=[...e.breadcrumbs,...d]),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,...m}}function l(e,t,r){e[t]=(0,o.merge)(e[t],r,1)}function u(e,t){const r=(0,n.getGlobalScope)().getScopeData();return e&&c(r,e.getScopeData()),t&&c(r,t.getScopeData()),r}},,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{useReactiveVar:()=>o});var n=r(464),i=r(465);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(396))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{useSyncExternalStore:()=>a});r(466);var i=r(464),o=r(474),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,l=a[1];return o.canUseLayoutEffect?i.useLayoutEffect(function(){Object.assign(c,{value:n,getSnapshot:t}),s(c)&&l({inst:c})},[e,n,t]):Object.assign(c,{value:n,getSnapshot:t}),i.useEffect(function(){return s(c)&&l({inst:c}),e(function(){s(c)&&l({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(467),i=r(471),o=r(470),a=!1},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloErrorMessageHandler:()=>u,InvariantError:()=>n.InvariantError,invariant:()=>c,newInvariantError:()=>l});var n=r(468),i=r(469),o=r(470),a=r(472);function s(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if("number"==typeof t){var i=t;(t=p(i))||(t=f(i,r),r=[])}e.apply(void 0,[t].concat(r))}}var c=Object.assign(function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];e||(0,n.invariant)(e,p(t,r)||f(t,r))},{debug:s(n.invariant.debug),log:s(n.invariant.log),warn:s(n.invariant.warn),error:s(n.invariant.error)});function l(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new n.InvariantError(p(e,t)||f(e,t))}var u=Symbol.for("ApolloErrorMessageHandler_"+i.version);function d(e){if("string"==typeof e)return e;try{return(0,a.stringifyForDisplay)(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function p(e,t){if(void 0===t&&(t=[]),e)return o.default[u]&&o.default[u](e,t.map(d))}function f(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(d)})))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InvariantError:()=>s,default:()=>f,invariant:()=>c,setVerbosity:()=>p});var n=r(314),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 l=["debug","log","warn","error","silent"],u=l.indexOf("log");function d(e){return function(){if(l.indexOf(e)>=u)return(console[e]||console.log).apply(console,arguments)}}function p(e){var t=l[u];return u=Math.max(0,l.indexOf(e)),t}!function(e){e.debug=d("debug"),e.log=d("log"),e.warn=d("warn"),e.error=d("error")}(c||(c={}));const f=c},(e,t,r)=>{"use strict";r.r(t),r.d(t,{version:()=>n});var n="3.14.1"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(471);const i=(0,n.maybe)(function(){return globalThis})||(0,n.maybe)(function(){return window}
1)||(0,n.maybe)(function(){return self})||(0,n.maybe)(function(){return globalThis})||(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(473);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:()=>l,canUseLayoutEffect:()=>d,canUseSymbol:()=>s,canUseWeakMap:()=>o,canUseWeakSet:()=>a});var n=r(466),i="ReactNative"==(0,n.maybe)(function(){return navigator.product}),o="function"==typeof WeakMap&&!(i&&!globalThis.HermesInternal),a="function"==typeof WeakSet,s="function"==typeof Symbol&&"function"==typeof Symbol.for,c=s&&Symbol.asyncIterator,l="function"==typeof(0,n.maybe)(function(){return window.document.createElement}),u=(0,n.maybe)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,d=(l||i)&&!u},(e,t,r)=>{"use strict";r.r(t),r.d(t,{cacheSlot:()=>i,forgetCache:()=>s,makeVar:()=>l,recallCache:()=>c});var n=r(476),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 l(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 l=i.getValue();l&&(o(l),a(l).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:()=>l,dep:()=>s.dep,noContext:()=>a.noContext,nonReactive:()=>a.nonReactive,setTimeout:()=>a.setTimeout,wrap:()=>d});var n=r(477),i=r(478),o=r(479),a=r(480),s=r(484);let c;function l(...e){return(c||(c=new n.Trie("function"==typeof WeakMap))).lookupArray(e)}const u=new Set;function d(e,{max:t=Math.pow(2,16),keyArgs:r,makeCacheKey:n=l,normalizeResult:s,subscribe:c,cache:d=i.StrongCache}=Object.create(null)){const p="function"==typeof d?new d(t,e=>e.dispose()):d,f=function(){const t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let i=p.get(t);i||(p.set(t,i=new o.Entry(e)),i.normalizeResult=s,i.subscribe=c,i.forget=()=>p.delete(t));const l=i.recompute(Array.prototype.slice.call(arguments));return p.set(t,i),u.add(p),a.parentEntrySlot.hasValue()||(u.forEach(e=>e.clean()),u.clear()),l};function h(e){const t=e&&p.get(e);t&&t.setDirty()}function m(e){const t=e&&p.get(e);if(t)return t.peek()}function g(e){return!!e&&p.delete(e)}return Object.defineProperty(f,"size",{get:()=>p.size,configurable:!1,enumerable:!1}),Object.freeze(f.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:s,subscribe:c,cache:p}),f.dirtyKey=h,f.dirty=function(){h(n.apply(null,arguments))},f.peekKey=m,f.peek=function(){return m(n.apply(null,arguments))},f.forgetKey=g,f.forget=function(){return g(n.apply(null,arguments))},f.makeCacheKey=n,f.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(f)}},(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";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,{Entry:()=>u});var n=r(480),i=r(483);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 l(e){return e.slice(0)}class u{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,++u.count}peek(){if(1===this.value.length&&!f(this))return d(this),this.value[0]}recompute(e){return a(!this.recomputing,"already recomputing"),d(this),f(this)?function(e,t){_(e),n.parentEntrySlot.withValue(e,p,[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,f(e))return;m(e)}(e);return c(e.value)}(this,e):c(this.value)}setDirty(){this.dirty||(this.dirty=!0,h(this),(0,i.maybeUnsubscribe)(this))}dispose(){this.setDirty(),_(this),g(this,(e,t)=>{e.setDirty(),S(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=o.pop()||new Set),this.deps.add(e)}
1forgetDeps(){this.deps&&((0,i.arrayFromSet)(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),o.push(this.deps),this.deps=null)}}function d(e){const t=n.parentEntrySlot.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),f(e)?y(t,e):v(t,e),t}function p(e,t){e.recomputing=!0;const{normalizeResult:r}=e;let n;r&&1===e.value.length&&(n=l(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),r&&n&&!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 f(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function h(e){g(e,y)}function m(e){g(e,v)}function g(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 y(e,t){a(e.childValues.has(t)),a(f(t));const r=!f(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=o.pop()||new Set;e.dirtyChildren.add(t),r&&h(e)}function v(e,t){a(e.childValues.has(t)),a(!f(t));const r=e.childValues.get(t);0===r.length?e.childValues.set(t,l(t.value)):s(r,t.value)||e.setDirty(),b(e,t),f(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 _(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{S(e,r)}),e.forgetDeps(),a(null===e.dirtyChildren)}function S(e,t){t.parents.delete(e),e.childValues.delete(t),b(e,t)}u.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(481);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:()=>l});var n=r(482);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 l;(l=o.value)&&"function"==typeof l.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 l(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:()=>l});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(()=>globalThis)||Object.create(null),l=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(480),i=r(483);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";
1(0,i.arrayFromSet)(n).forEach(e=>e[a]()),t.delete(e),(0,i.maybeUnsubscribe)(n)}},a}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(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:()=>T});var s=function(){return"function"==typeof Symbol},c=function(e){return s()&&Boolean(Symbol[e])},l=function(e){return c(e)?Symbol[e]:"@@"+e};s()&&!c("observable")&&(Symbol.observable=Symbol("observable"));var u=l("iterator"),d=l("observable"),p=l("species");function f(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function h(e){var t=e.constructor;return void 0!==t&&null===(t=t[p])&&(t=void 0),void 0!==t?t:T}function m(e){return e instanceof T}function g(e){g.log?g.log(e):setTimeout(function(){throw e})}function y(e){Promise.resolve().then(function(){try{e()}catch(e){g(e)}})}function v(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=f(t,"unsubscribe");r&&r.call(t)}}catch(e){g(e)}}function b(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function _(e,t,r){e._state="running";var n=e._observer;try{var i=f(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(b(e),!i)throw r;i.call(n,r);break;case"complete":b(e),i&&i.call(n)}}catch(e){g(e)}"closed"===e._state?v(e):"running"===e._state&&(e._state="ready")}function S(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void y(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(_(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)})):void _(e,t,r);e._queue.push({type:t,value:r})}}var E=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new w(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(b(this),v(this))},a(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),w=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){S(this._subscription,"next",e)},t.error=function(e){S(this._subscription,"error",e)},t.complete=function(){S(this._subscription,"complete")},a(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),T=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new E(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),r()}})},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(h(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(h(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=h(this),n=arguments.length>1,i=!1,o=arguments[1];return new r(function(r){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||n)try{o=e(o,t)}catch(e){return r.error(e)}else o=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(o),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(this);return new i(function(t){var n,o=0;return function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]
1))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=h(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[d]=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=f(t,d);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=f(t,u)))return new r(function(e){y(function(){if(!e.closed){for(var r,o=n(i.call(t));!(r=o()).done;){var a=r.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){y(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){y(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},a(e,null,[{key:p,get:function(){return this}}]),e}();s()&&Object.defineProperty(T,Symbol("extensions"),{value:{symbol:d,hostReportError:g},configurable:!0})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloClient:()=>p,mergeOptions:()=>d.mergeOptions});var n=r(314),i=r(466),o=r(545),a=r(546),s=r(469),c=r(563),l=r(589),u=r(610),d=r(612),p=function(){function e(e){var t,r,o,d=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i.newInvariantError)(16);var p=e.uri,f=e.credentials,h=e.headers,m=e.cache,g=e.documentTransform,y=e.ssrMode,v=void 0!==y&&y,b=e.ssrForceFetchDelay,_=void 0===b?0:b,S=e.connectToDevTools,E=e.queryDeduplication,w=void 0===E||E,T=e.defaultOptions,x=e.defaultContext,O=e.assumeImmutableResults,A=void 0===O?m.assumeImmutableResults:O,R=e.resolvers,P=e.typeDefs,I=e.fragmentMatcher,C=e.clientAwareness,k=e.name,M=e.version,D=e.devtools,N=e.dataMasking;var L=e.link;L||(L=p?new c.HttpLink({uri:p,credentials:f,headers:h}):a.ApolloLink.empty()),this.link=L,this.cache=m,this.disableNetworkFetches=v||_>0,this.queryDeduplication=w,this.defaultOptions=T||Object.create(null),this.typeDefs=P,this.devtoolsConfig=(0,n.__assign)((0,n.__assign)({},D),{enabled:null!==(t=null==D?void 0:D.enabled)&&void 0!==t?t:S}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1),_&&setTimeout(function(){return d.disableNetworkFetches=!1},_),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 u.LocalState({cache:m,client:this,resolvers:R,fragmentMatcher:I}),this.queryManager=new l.QueryManager({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:x,documentTransform:g,queryDeduplication:w,ssrMode:v,dataMasking:!!N,clientAwareness:{name:null!==(r=null==C?void 0:C.name)&&void 0!==r?r:k,version:null!==(o=null==C?void 0:C.version)&&void 0!==o?o:M},localState:this.localState,assumeImmutableResults:A,onBroadcast:this.devtoolsConfig.enabled?function(){d.devToolsHookCb&&d.devToolsHookCb({action:{},state:{queries:d.queryManager.getQueryStore(),mutations:d.queryManager.mutationStore||{}},dataWithOptimisticResults:d.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(e){this.disableNetworkFetches=e}
1,enumerable:!1,configurable:!0}),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,d.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,d.mergeOptions)(this.defaultOptions.query,e)),(0,i.invariant)("cache-and-network"!==e.fetchPolicy,18),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,d.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,o.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}
1,enumerable:!1,configurable:!0}),e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{execute:()=>n});var n=r(546).ApolloLink.execute},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloLink:()=>d});var n=r(466),i=r(543),o=r(547),a=r(548),s=r(549);function c(e,t){return t?t(e):i.Observable.of()}function l(e){return"function"==typeof e?new d(e):e}function u(e){return e.request.length<=1}var d=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(l).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var o,a=l(r),s=l(n||new e(c));return o=u(a)&&u(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,a.createOperation)(t.context,(0,s.transformOperation)((0,o.validateOperation)(t))))||i.Observable.of()},e.concat=function(t,r){var n=l(t);if(u(n))return n;var o,a=l(r);return o=u(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)(48)},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";r.r(t),r.d(t,{validateOperation:()=>i});var n=r(466);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)(58,o)}return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createOperation:()=>i});var n=r(314);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(550);function i(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,n.getOperationName)(t.query)||void 0:""),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{checkDocument:()=>o,getDefaultValues:()=>p,getFragmentDefinition:()=>u,getFragmentDefinitions:()=>c,getMainDefinition:()=>d,getOperationDefinition:()=>a,getOperationName:()=>s,getQueryDefinition:()=>l});var n=r(466),i=r(551);function o(e){(0,n.invariant)(e&&"Document"===e.kind,115);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,n.newInvariantError)(116,e.kind);return e});return(0,n.invariant)(t.length<=1,117,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 l(e){var t=a(e);return(0,n.invariant)(t&&"query"===t.operation,118),t}function u(e){(0,n.invariant)("Document"===e.kind,119),(0,n.invariant)(e.definitions.length<=1,120);var t=e.definitions[0];return(0,n.invariant)("FragmentDefinition"===t.kind,121),t}function d(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)(122)}function p(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&(0,i.valueToObjectRepresentation)(t,e.variable.name,e.defaultValue)}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{argumentsObjectFromField:()=>m,getStoreKeyName:()=>h,getTypenameFromResult:()=>y,isDocumentNode:()=>l,isField:()=>v,isInlineFragment:()=>b,isReference:()=>c,makeReference:()=>s,resultKeyNameFromField:()=>g,storeKeyNameFromField:()=>d,valueToObjectRepresentation:()=>u});var n=r(466),i=r(552),o=r(553),a=r(559);function s(e){return{__ref:String(e)}}function c(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function l(e){return(0,i.isNonNullObject)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}
1function u(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 u(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 u(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)(123,t.value,r.kind);e[t.value]=null}}function d(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 u(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 u(n,r,i,t)})),h(e.name.value,n,r)}var p=["connection","include","skip","client","rest","export","nonreactive"],f=a.canonicalStringify,h=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(f(i),")")}return r.connection.key}var o=e;if(t){var a=f(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===p.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(f(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=f;return f=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 u(r,n,i,t)}),r}return null}function g(e){return e.alias?e.alias.value:e.name.value}function y(e,t,r){for(var n,i=0,a=t.selections;i<a.length;i++){if(v(l=a[i])){if("__typename"===l.name.value)return e[g(l)]}else n?n.push(l):n=[l]}if("string"==typeof e.__typename)return e.__typename;if(n)for(var s=0,c=n;s<c.length;s++){var l=c[s],u=y(e,(0,o.getFragmentFromSelection)(l,r).selectionSet,r);if("string"==typeof u)return u}}function v(e){return"Field"===e.kind}function b(e){return"InlineFragment"===e.kind}},(e,t,r)=>{"use strict";function n(e){return null!==e&&"object"==typeof e}function i(e){return null!==e&&"object"==typeof e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}r.r(t),r.d(t,{isNonNullObject:()=>n,isPlainObject:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createFragmentMap:()=>s,getFragmentFromSelection:()=>c,getFragmentQueryDocument:()=>a,isFullyUnmaskedOperation:()=>l});var n=r(314),i=r(466),o=r(554);function a(e,t){var r=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,i.newInvariantError)(112,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&o.push(e)}),void 0===r&&((0,i.invariant)(1===o.length,113,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,114,r),n||null;default:return null}}function l(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:()=>u,getVisitFn:()=>d,visit:()=>c,visitInParallel:()=>l});var n=r(555),i=r(556),o=r(557),a=r(558);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,u(t,e));let l,d,p,f=Array.isArray(e),h=[e],m=-1,g=[],y=e;const v=[],b=[];do{m++;const e=m===h.length,a=e&&0!==g.length;if(e){if(d=0===b.length?void 0:v[v.length-1],y=p,p=b.pop(),a)if(f){y=y.slice();let e=0;for(const[t,r]of g){const n=t-e;null===r?(y.splice(n,1),e++):y[n]=r}}else{y={...y};for(const[e,t]of g)y[e]=t}
1m=l.index,h=l.keys,g=l.edits,f=l.inArray,l=l.prev}else if(p){if(d=f?m:h[m],y=p[d],null==y)continue;v.push(d)}let u;if(!Array.isArray(y)){var _,S;(0,o.isNode)(y)||(0,n.devAssert)(!1,`Invalid AST Node: ${(0,i.inspect)(y)}.`);const r=e?null===(_=c.get(y.kind))||void 0===_?void 0:_.leave:null===(S=c.get(y.kind))||void 0===S?void 0:S.enter;if(u=null==r?void 0:r.call(t,y,d,p,v,b),u===s)break;if(!1===u){if(!e){v.pop();continue}}else if(void 0!==u&&(g.push([d,u]),!e)){if(!(0,o.isNode)(u)){v.pop();continue}y=u}}var E;if(void 0===u&&a&&g.push([d,y]),e)v.pop();else l={inArray:f,index:m,keys:h,edits:g,prev:l},f=Array.isArray(y),h=f?y:null!==(E=r[y.kind])&&void 0!==E?E:[],m=-1,g=[],p&&b.push(p),p=y}while(void 0!==l);return 0!==g.length?g[g.length-1][1]:e}function l(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}=u(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 u(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 d(e,t,r){const{enter:n,leave:i}=u(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:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
1Value:[],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","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},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.DIRECTIVE_EXTENSION="DirectiveExtension",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",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{canonicalStringify:()=>a});var n,i=r(560),o=r(562),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 l=Object.create(r);return a.forEach(function(e){l[e]=t[e]}),l}}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(478),i=r(561),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 i.WeakCache(e,t);return r.set=function(e,t){var r=i.WeakCache.prototype.set.call(this,e,t);return a(this),r},r},c=function(e,t){var r=new n.StrongCache(e,t);return r.set=function(e,t){var r=n.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}}
1,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(314),i=r(466),o=Symbol.for("apollo.cacheSize"),a=(0,n.__assign)({},i.global[o])},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HttpLink:()=>a});var n=r(314),i=r(546),o=r(564),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});
1var n=r(314),i=r(466),o=r(546),a=r(543),s=r(565),c=r(566),l=r(567),u=r(568),d=r(579),p=r(585),f=r(586),h=r(587),m=r(550),g=r(588),y=(0,i.maybe)(function(){return fetch}),v=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,v=e.fetch,b=e.print,_=void 0===b?d.defaultPrinter:b,S=e.includeExtensions,E=e.preserveHeaderCase,w=e.useGETForQueries,T=e.includeUnusedVariables,x=void 0!==T&&T,O=(0,n.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);var A={http:{includeExtensions:S,preserveHeaderCase:E},options:O.fetchOptions,credentials:O.credentials,headers:O.headers};return new o.ApolloLink(function(e){var t=(0,l.selectURI)(e,r),o=e.getContext(),b={};if(o.clientAwareness){var S=o.clientAwareness,E=S.name,T=S.version;E&&(b["apollographql-client-name"]=E),T&&(b["apollographql-client-version"]=T)}var O=(0,n.__assign)((0,n.__assign)({},b),o.headers),R={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:O};if((0,s.hasDirectives)(["client"],e.query)){0;var P=(0,g.removeClientSetsFromDocument)(e.query);if(!P)return(0,f.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=P}var I,C=(0,d.selectHttpOptionsAndBodyInternal)(e,_,d.fallbackHttpConfig,A,R),k=C.options,M=C.body;M.variables&&!x&&(M.variables=(0,h.filterOperationVariables)(M.variables,e.query)),k.signal||"undefined"==typeof AbortController||(I=new AbortController,k.signal=I.signal);var D,N="OperationDefinition"===(D=(0,m.getMainDefinition)(e.query)).kind&&"subscription"===D.operation,L=(0,s.hasDirectives)(["defer"],e.query);if(w&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(k.method="GET"),L||N){k.headers=k.headers||{};var F="multipart/mixed;";N?F+="boundary=graphql;subscriptionSpec=1.0,application/json":L&&(F+="deferSpec=20220824,application/json"),k.headers.accept=F}if("GET"===k.method){var B=(0,p.rewriteURIForGET)(t,M),j=B.newURI,U=B.parseError;if(U)return(0,f.fromError)(U);t=j}else try{k.body=(0,c.serializeFetchParameter)(M,"Payload")}catch(U){return(0,f.fromError)(U)}return new a.Observable(function(r){var n=v||(0,i.maybe)(function(){return fetch})||y,o=r.next.bind(r);return n(t,k).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,u.readMultipartBody)(t,o):(0,u.parseAndCheckHttpResponse)(e)(t).then(o)}).then(function(){I=void 0,r.complete()}).catch(function(e){I=void 0,(0,u.handleError)(e,r)}),function(){I&&I.abort()}})})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDirectiveNames:()=>a,getFragmentMaskMode:()=>p,getInclusionDirectives:()=>d,hasAllDirectives:()=>c,hasAnyDirectives:()=>s,hasClientExports:()=>u,hasDirectives:()=>l,shouldInclude:()=>o});var n=r(466),i=r(554);function o(e,t){var r=e.directives;return!r||!r.length||d(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,105,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 l(e,t,!1)},c=function(e,t){return l(e,t,!0)};function l(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 u(e){return e&&l(["client","export"],e,!0)}function d(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,106,o);var a=i[0];(0,n.invariant)(a.name&&"if"===a.name.value,107,o);var s=a.value;(0,n.invariant)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),108,o),t.push({directive:e,ifArgument:a})}}),t}function p(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,{serializeFetchParameter:()=>i});var n=r(466),i=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var i=(0,n.newInvariantError)(54,t,e.message);throw i.parseError=e,i}return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{selectURI:()=>n});var n=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{handleError:()=>p,parseAndCheckHttpResponse:()=>f,parseHeaders:()=>u,parseJsonBody:()=>d,readMultipartBody:()=>l});var n=r(314),i=r(569),o=r(574),a=r(575),s=r(576),c=Object.prototype.hasOwnProperty;function l(e,t){return(0,n.__awaiter)(this,void 0,void 0,function(){var r,o,c,l,p,f,h,m,g,y,v,b,_,S,E,w,T,x,O,A,R,P,I,C;return(0,n.__generator)(this,function(k){switch(k.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===(C=e.headers)||void 0===C?void 0:C.get("content-type"),c="boundary=",l=(null==o?void 0:o.includes(c))?null==o?void 0:o.substring((null==o?void 0:o.indexOf(c))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",p="\r\n--".concat(l),f="",h=(0,i.responseIterator)(e),m=!0,k.label=1;case 1:return m?[4,h.next()]:[3,3];case 2:for(g=k.sent(),y=g.value,v=g.done,b="string"==typeof y?y:r.decode(y),_=f.length-p.length+1,m=!v,S=(f+=b).indexOf(p,_);S>-1;){if(E=void 0,P=[f.slice(0,S),f.slice(S+p.length)],f=P[1],w=(E=P[0]).indexOf("\r\n\r\n"),T=u(E.slice(0,w)),(x=T["content-type"])&&-1===x.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");
1if(O=E.slice(w))if(A=d(e,O),Object.keys(A).length>1||"data"in A||"incremental"in A||"errors"in A||"payload"in A)if((0,s.isApolloPayloadResult)(A)){if(R={},"payload"in A){if(1===Object.keys(A).length&&null===A.payload)return[2];R=(0,n.__assign)({},A.payload)}"errors"in A&&(R=(0,n.__assign)((0,n.__assign)({},R),{extensions:(0,n.__assign)((0,n.__assign)({},"extensions"in R?R.extensions:null),(I={},I[a.PROTOCOL_ERRORS_SYMBOL]=A.errors,I))})),t(R)}else t(A);else if(1===Object.keys(A).length&&"hasNext"in A&&!A.hasNext)return[2];S=f.indexOf(p)}return[3,1];case 3:return[2]}})})}function u(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 d(e,t){if(e.status>=300){(0,o.throwServerError)(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function p(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function f(e){return function(t){return t.text().then(function(e){return d(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(474),i=r(570),o=r(571),a=r(572),s=r(573);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(474);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 l(){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",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",s),e.on("error",c),e.on("end",l),e.on("finish",l),e.on("close",l);var u={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&&(u[Symbol.asyncIterator]=function(){return this}),u}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(474);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(474);function i(e){var t={next:function(){return e.read()}};return n.canUseAsyncIteratorSymbol&&(t[Symbol.asyncIterator]=function(){return this}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{throwServerError:()=>n});var n=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloError:()=>c,PROTOCOL_ERRORS_SYMBOL:()=>o,graphQLResultHasProtocolErrors:()=>a,isApolloError:()=>s});var n=r(314),i=(r(466),r(552)),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,l=r.clientErrors,u=r.networkError,d=r.errorMessage,p=r.extraInfo,f=e.call(this,d)||this;return f.name="ApolloError",f.graphQLErrors=s||[],f.protocolErrors=c||[],f.clientErrors=l||[],f.networkError=u||null,f.message=d||(o=f,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")),f.extraInfo=p,f.cause=(0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)([u],s||[],!0),c||[],!0),l||[],!0).find(function(e){return!!e})||null,f.__proto__=t.prototype,f}return(0,n.__extends)(t,e),t}(Error)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isApolloPayloadResult:()=>l,isExecutionPatchIncrementalResult:()=>a,isExecutionPatchInitialResult:()=>s,isExecutionPatchResult:()=>c,mergeIncrementalData:()=>u});var n=r(552),i=r(577),o=r(578);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 l(e){return(0,n.isNonNullObject)(e)&&"payload"in e}function u(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}
1r=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:()=>l,mergeDeep:()=>a,mergeDeepArray:()=>s});var n=r(314),i=r(552),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 l,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])},l=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,{defaultPrinter:()=>a,fallbackHttpConfig:()=>o,selectHttpOptionsAndBody:()=>s,selectHttpOptionsAndBodyInternal:()=>c});var n=r(314),i=r(580),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={};
1return 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,l=e.extensions,u=e.variables,d=e.query,p={operationName:c,variables:u};return s.includeExtensions&&(p.extensions=l),s.includeQuery&&(p.query=t(d,i.print)),{options:a,body:p}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{print:()=>s});var n,i=r(581),o=r(560),a=r(562),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(582),i=r(584),o=r(554);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=p(e.variableDefinitions)?u("(\n",c(e.variableDefinitions,"\n"),"\n)"):u("(",c(e.variableDefinitions,", "),")"),r=u("",e.description,"\n")+c([e.operation,c([e.name,t]),c(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:i})=>u("",i,"\n")+e+": "+t+u(" = ",r)+u(" ",c(n," "))},SelectionSet:{leave:({selections:e})=>l(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const o=u("",e,": ")+t;let a=o+u("(",c(r,", "),")");return a.length>80&&(a=o+u("(\n",d(c(r,"\n")),"\n)")),c([a,c(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+u(" ",c(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>c(["...",u("on ",e),c(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:o})=>u("",o,"\n")+`fragment ${e}${u("(",c(r,", "),")")} `+`on ${t} ${u("",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+u("(",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})=>u("",e,"\n")+c(["schema",c(t," "),l(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>u("",e,"\n")+c(["scalar",t,c(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>u("",e,"\n")+c(["type",t,u("implements ",c(r," & ")),c(n," "),l(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>u("",e,"\n")+t+(p(r)?u("(\n",d(c(r,"\n")),"\n)"):u("(",c(r,", "),")"))+": "+n+u(" ",c(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>u("",e,"\n")+c([t+": "+r,u("= ",n),c(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>u("",e,"\n")+c(["interface",t,u("implements ",c(r," & ")),c(n," "),l(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>u("",e,"\n")+c(["union",t,c(r," "),u("= ",c(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>u("",e,"\n")+c(["enum",t,c(r," "),l(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>u("",e,"\n")+c([t,c(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>u("",e,"\n")+c(["input",t,c(r," "),l(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,directives:n,repeatable:i,locations:o})=>u("",e,"\n")+"directive @"+t+(p(r)?u("(\n",d(c(r,"\n")),"\n)"):u("(",c(r,", "),")"))+u(" ",c(n," "))+(i?" repeatable":"")+" on "+c(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>c(["extend schema",c(e," "),l(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,u("implements ",c(t," & ")),c(r," "),l(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>c(["extend interface",e,u("implements ",c(t," & ")),c(r," "),l(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>c(["extend union",e,c(t," "),u("= ",c(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>c(["extend enum",e,c(t," "),l(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>c(["extend input",e,c(t," "),l(r)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>c(["extend directive @"+e,c(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>c([e,u(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>c([e,u(".",t),u("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>c(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>c(["@",e,u("(",t,":)")])}};function c(e,t=""){var r;return null!==(r=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==r?r:""}function l(e){return u("{\n",d(c(e,"\n")),"\n}")}function u(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function d(e){return u("  ",e.replace(/\n/g,"\n  "))}function p(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dedentBlockStringLines:()=>i,isPrintableAsBlockString:()=>a,printBlockString:()=>s});var n=r(583);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 
16: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,l=e.endsWith("\\"),u=c||l,d=!(null!=t&&t.minimize)&&(!o||e.length>70||u||a||s);let p="";const f=o&&(0,n.isWhiteSpace)(e.charCodeAt(0));return(d&&!f||a)&&(p+="\n"),p+=r,(d||u)&&(p+="\n"),'"""'+p+'"""'}},(e,t,r)=>{"use strict";function n(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}r.r(t),r.d(t,{isDigit:()=>i,isLetter:()=>o,isNameContinue:()=>s,isNameStart:()=>a,isWhiteSpace:()=>n})},(e,t,r)=>{"use strict";function n(e){return`"${e.replace(i,o)}"`}r.r(t),r.d(t,{printString:()=>n});const i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return a[e.charCodeAt(0)]}const a=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{rewriteURIForGET:()=>i});var n=r(566);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,l=e.indexOf("#");-1!==l&&(s=e.substr(l),c=e.substr(0,l));var u=-1===c.indexOf("?")?"?":"&";return{newURI:c+u+r.join("&")+s}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromError:()=>i});var n=r(543);function i(e){return new n.Observable(function(t){t.error(e)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{filterOperationVariables:()=>o});var n=r(314),i=r(554);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,{addNonReactiveToNamedFragments:()=>w,addTypenameToDocument:()=>g,buildQueryFromSelectionSet:()=>S,removeArgumentsFromDocument:()=>b,removeClientSetsFromDocument:()=>E,removeConnectionDirectiveFromDocument:()=>v,removeDirectivesFromDocument:()=>m,removeFragmentSpreadFromDocument:()=>_});var n=r(314),i=(r(466),r(558)),o=r(554),a=r(550),s=r(551),c=r(553),l=r(577),u={kind:i.Kind.FIELD,name:{kind:i.Kind.NAME,value:"__typename"}};function d(e,t){return!e||e.selectionSet.selections.every(function(e){return e.kind===i.Kind.FRAGMENT_SPREAD&&d(t[e.name.value],t)})}function p(e){return d((0,a.getOperationDefinition)(e)||(0,a.getFragmentDefinition)(e),(0,c.createFragmentMap)((0,a.getFragmentDefinitions)(e)))?null:e}function f(e){var t=new Map,r=new Map;return e.forEach(function(e){e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))}),function(e){var n=t.get(e.name.value);return!n&&r.size&&r.forEach(function(t,r){r(e)&&(n=t)}),n}}function h(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function m(e,t){(0,a.checkDocument)(t);for(var r=h(""),s=h(""),c=function(e){for(var t=0,n=void 0;t<e.length&&(n=e[t]);++t)if(!(0,l.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},u=0,d=t.definitions.length-1;d>=0;--d)t.definitions[d].kind===i.Kind.OPERATION_DEFINITION&&++u;var m=f(e),g=function(e){return(0,l.isNonEmptyArray)(e)&&e.map(m).some(function(e){return e&&e.remove})},y=new Map,v=!1,b={enter:function(e){if(g(e.directives))return v=!0,null}},_=(0,o.visit)(t,{Field:b,InlineFragment:b,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=c(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(g(e.directives))return v=!0,null;var o=c(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){y.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===y.get(JSON.stringify(n))?e:u>0&&e.selectionSet.selections.every(function(e){return e.kind===i.Kind.FIELD&&"__typename"===e.name.value})?(s(e.name.value).removed=!0,v=!0,null):void 0}},Directive:{leave:function(e){if(m(e))return v=!0,null}}});if(!v)return t;var S=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){S(s(t)).transitiveVars.forEac
1h(function(t){e.transitiveVars.add(t)})})),e},E=new Set;_.definitions.forEach(function(e){e.kind===i.Kind.OPERATION_DEFINITION?S(r(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){E.add(e)}):e.kind!==i.Kind.FRAGMENT_DEFINITION||0!==u||s(e.name.value).removed||E.add(e.name.value)}),E.forEach(function(e){S(s(e)).fragmentSpreads.forEach(function(e){E.add(e)})});var w={enter:function(e){if(t=e.name.value,!E.has(t)||s(t).removed)return null;var t}};return p((0,o.visit)(_,{FragmentSpread:w,FragmentDefinition:w,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=S(r(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,n.__assign)((0,n.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}var g=Object.assign(function(e){return(0,o.visit)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==i.Kind.OPERATION_DEFINITION){var o=e.selections;if(o)if(!o.some(function(e){return(0,s.isField)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var a=r;if(!((0,s.isField)(a)&&a.directives&&a.directives.some(function(e){return"export"===e.name.value})))return(0,n.__assign)((0,n.__assign)({},e),{selections:(0,n.__spreadArray)((0,n.__spreadArray)([],o,!0),[u],!1)})}}}}})},{added:function(e){return e===u}}),y={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some(function(e){return"key"===e.name.value})),t}};function v(e){return m([y],(0,a.checkDocument)(e))}function b(e,t){var r=function(e){return function(t){return e.some(function(e){return t.value&&t.value.kind===i.Kind.VARIABLE&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})}}(e);return p((0,o.visit)(t,{OperationDefinition:{enter:function(t){return(0,n.__assign)((0,n.__assign)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter(function(t){return!e.some(function(e){return e.name===t.variable.name.value})}):[]})}},Field:{enter:function(t){if(e.some(function(e){return e.remove})){var n=0;if(t.arguments&&t.arguments.forEach(function(e){r(e)&&(n+=1)}),1===n)return null}}},Argument:{enter:function(e){if(r(e))return null}}}))}function _(e,t){function r(t){if(e.some(function(e){return e.name===t.name.value}))return null}return p((0,o.visit)(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}function S(e){return"query"===(0,a.getMainDefinition)(e).operation?e:(0,o.visit)(e,{OperationDefinition:{enter:function(e){return(0,n.__assign)((0,n.__assign)({},e),{operation:"query"})}}})}function E(e){return(0,a.checkDocument)(e),m([{test:function(e){return"client"===e.name.value},remove:!0}],e)}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],!1)})}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{QueryManager:()=>M});var n=r(314),i=r(466),o=(r(590),r(545)),a=r(565),s=r(588),c=r(576),l=r(559),u=r(543),d=r(591),p=r(550),f=r(551),h=r(592),m=r(593),g=r(577),y=r(552),v=r(596),b=r(473),_=r(575),S=r(597),E=r(598),w=r(604),T=r(580),x=r(477),O=r(560),A=r(562),R=r(605),P=r(609),I=r(603),C=Object.prototype.hasOwnProperty,k=Object.create(null),M=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new O.AutoCleanedWeakCache(A.cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new x.Trie(!1),this.noCacheWarningsByQueryId=new Set;var r=new d.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)(35))},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,l,u=e.mutation,d=e.variables,p=e.optimisticResponse,f=e.updateQueries,m=e.refetchQueries,g=void 0===m?[]:m,y=e.awaitRefetchQueries,b=void 0!==y&&y,S=e.update,E=e.onQueryUpdated,w=e.fetchPolicy,T=void 0===w?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.fetchPolicy)||"network-only":w,x=e.errorPolicy,O=void 0===x?(null===(l=this.defaultOptions.mutate)||void 0===l?void 0:l.errorPolicy)||"none":x,A=e.keepRootFields,R=e.context;return(0,n.__generator)(this,function(e){switch(e.label){case 0:return(0,i.invariant)(u,36),(0,i.invariant)("network-only"===T||"no-cache"===T,37),t=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),r=this.getDocumentInfo(u).hasClientExports,d=this.getVariables(u,d),r?[4,this.localState.addExportedVariables(u,d,R)]:[3,2];case 1:d=e.sent(),e.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[t]={mutation:u,variables:d,loading:!0,error:null}),a=p&&this.markMutationOptimistic(p,{mutationId:t,document:u,variables:d,fetchPolicy:T,errorPolicy:O,context:R,updateQueries:f,update:S,keepRootFields:A}),this.broadcastQueries(),s=this,[2,new Promise(function(e,r){return(0,h.asyncMap)(s.getObservableFromLink(u,(0,n.__assign)((0,n.__assign)({},R),{optimisticResponse:a?p:void 0}),d,{},!1),function(e){if((0,v.graphQLResultHasError)(e)&&"none"===O)throw new _.ApolloError({graphQLErrors:(0,v.getGraphQLErrorsFromResult)(e)});o&&(o.loading=!1,o.error=null);var r=(0,n.__assign)({},e);return"function"==typeof g&&(g=g(r)),"ignore"===O&&(0,v.graphQLResultHasError)(r)&&delete r.errors,s.markMutationResult({mutationId:t,result:r,document:u,variables:d,fetchPolicy:T,errorPolicy:O,context:R,update:S,updateQueries:f,awaitRefetchQueries:b,refetchQueries:g,removeOptimistic:a?t:void 0,onQueryUpdated:E,keepRootFields:A})}).subscribe({next:function(r){s.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,n.__assign)((0,n.__assign)({},r),{data:s.maskOperation({document:u,data:r.data,fetchPolicy:T,id:t})}))},error:function(e){o&&(o.loading=!1,o.error=e),a&&s.cache.removeOptimistic(t),s.broadcastQueries(),r(e instanceof _.ApolloError?e:new _.ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&(0,w.shouldWriteResult)(i,e.errorPolicy)){if((0,c.isExecutionPatchIncrementalResult)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,c.isExecutionPatchIncrementalResult)(i)&&(0,g.isNonEmptyArray)(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),l=void 0;s.result&&(l=(0,c.mergeIncrementalData)(s.result,i)),void 0!==l&&(i.data=l,o.push({result:l,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(e,n){var a=e.observableQuery,s=a&&a.queryName;if(s&&C.call(u,s)){var c=u[s],l=r.queries.get(n),d=l.document,f=l.variables,h=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),m=h.result;if(h.complete&&m){var g=c(m,{mutationResult:i,queryName:d&&(0,p.getOperationName)(d)||void 0,queryVariables:f});g&&o.push({result:g,dataId:"ROOT_QUERY",query:d,variables:f})}}})}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var d=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var s=e.update,l=!(0,c.isExecutionPatchResult)(i)||(0,c.isExecutionPatchIncrementalResult)(i)&&!i.hasNext;if(s){if(!a){var u=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&("incremental"in(i=(0,n.__assign)((0,n.__assign)({},i),{data:u.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}l&&s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||!l||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 d.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(d).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:k}):e;return i!==k&&(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(this.getOrCreateQuery(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,a.hasClientExports)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,a.hasDirectives)(["nonreactive"],e),nonReactiveQuery:(0,s.addNonReactiveToNamedFragments)(e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,s.removeDirectivesFromDocument)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,p.getDefaultValues)((0,p.getOperationDefinition)(e)),asQuery:(0,n.__assign)((0,n.__assign)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.__assign)((0,n.__assign)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.__assign)((0,n.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,n.__assign)((0,n.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new w.QueryInfo(this),i=new S.ObservableQuery({queryManager:this,queryInfo:r,options:e});return i.lastQuery=t,S.ObservableQuery.inactiveOnCreation.getValue()||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,38),(0,i.invariant)("Document"===e.query.kind,39),(0,i.invariant)(!e.returnPartialData,40),(0,i.invariant)(!e.pollInterval,41);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)(42)),this.queries.forEac
1h(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,f.isDocumentNode)(e)){var r=(0,T.print)(t.transform(e));o.set(r,(0,p.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,T.print)(o)))&&(r.set(n,i),s&&a.set(s,!0),o&&a.set((0,T.print)(o),!0))}}),s.size&&s.forEach(function(e){var o=(0,b.makeUniqueId)("legacyOneTimeQuery"),a=t.getOrCreateQuery(o).init({document:e.query,variables:e.variables}),s=new S.ObservableQuery({queryManager:t,queryInfo:a,options:(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"network-only"})});(0,i.invariant)(s.queryId===o),a.setObservableQuery(s),r.set(o,s)}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;(0,I.muteDeprecations)("resetLastResults",function(){return n.resetLastResults()}),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),(t.queries.get(i)||n.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},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,l=e.extensions,d=void 0===l?{}:l;r=this.transform(r),n=this.getVariables(r,n);var p=function(e){return t.getObservableFromLink(r,c,e,d).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,v.graphQLResultHasError)(n),s=(0,_.graphQLResultHasProtocolErrors)(n);if(o||s){var c={};if(o&&(c.graphQLErrors=n.errors),s&&(c.protocolErrors=n.extensions[_.PROTOCOL_ERRORS_SYMBOL]),"none"===a||s)throw new _.ApolloError(c)}return"ignore"===a&&delete n.errors,n})};if(this.getDocumentInfo(r).hasClientExports){var f=this.localState.addExportedVariables(r,n,c).then(p);return new u.Observable(function(e){var t=null;return f.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){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null===(t=this.queries.get(e))||void 0===t||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null===(t=e.observableQuery)||void 0===t?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i,a){var s,c,d=this;void 0===a&&(a=null!==(s=null==t?void 0:t.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var f=this.getDocumentInfo(e),g=f.serverQuery,y=f.clientQuery;if(g){var v=this.inFlightLinkObservables,b=this.link,_={query:g,variables:r,operationName:(0,p.getOperationName)(g)||void 0,context:this.prepareContext((0,n.__assign)((0,n.__assign)({},t),{forceFetch:!a})),extensions:i};if(t=_.context,a){var S=(0,T.print)(g),E=(0,l.canonicalStringify)(r),w=v.lookup(S,E);if(!(c=w.observable)){var x=new m.Concast([(0,o.execute)(b,_)]);c=w.observable=x,x.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?x.beforeNext(e):v.remove(S,E)})}}else c=new m.Concast([(0,o.execute)(b,_)])}else c=new m.Concast([u.Observable.of({data:{}})]),t=this.prepareContext(t);return y&&(c=(0,h.asyncMap)(c,function(e){return d.localState.runResolvers({document:y,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,h.asyncMap)(this.getObservableFromLink(i,r.context,r.variables),function(o){var a=(0,v.getGraphQLErrorsFromResult)(o),s=a.length>0,c=r.errorPolicy;if(n>
1=e.lastRequestId){if(s&&"none"===c)throw e.markError(new _.ApolloError({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var l={data:o.data,loading:!1,networkStatus:E.NetworkStatus.ready};return s&&"none"===c&&(l.data=void 0),s&&"ignore"!==c&&(l.errors=a,l.networkStatus=E.NetworkStatus.error),l},function(t){var r=(0,_.isApolloError)(t)?t:new _.ApolloError({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i=this;void 0===r&&(r=E.NetworkStatus.loading),void 0===n&&(n=t.query);var o,a,s=this.getVariables(n,t.variables),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,u=void 0===l?c&&c.fetchPolicy||"cache-first":l,d=t.errorPolicy,p=void 0===d?c&&c.errorPolicy||"none":d,f=t.returnPartialData,h=void 0!==f&&f,g=t.notifyOnNetworkStatusChange,y=void 0!==g&&g,v=t.context,b=void 0===v?{}:v,_=Object.assign({},t,{query:n,variables:s,fetchPolicy:u,errorPolicy:p,returnPartialData:h,notifyOnNetworkStatusChange:y,context:b}),S=function(n){_.variables=n;var o=i.fetchQueryByPolicy(e,_,r);return"standby"!==_.fetchPolicy&&o.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),o},w=function(){return i.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){w(),setTimeout(function(){return o.cancel(e)})}),this.getDocumentInfo(_.query).hasClientExports)o=new m.Concast(this.localState.addExportedVariables(_.query,_.variables,_.context).then(S).then(function(e){return e.sources})),a=!0;else{var T=S(_.variables);a=T.fromLink,o=new m.Concast(T.sources)}return o.promise.then(w,w),{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,b.makeUniqueId)("refetchQueries"):void 0:a,c=e.onQueryUpdated,l=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){l.set(r,{oq:e,lastDiff:(t.queries.get(r)||e.queryInfo).getDiff()})});var u=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){l.delete(n.queryId);var i=c(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&u.set(n,i),i}null!==c&&l.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),l.size&&l.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;c&&(a||(a=(0,I.muteDeprecations)("canonizeResults",function(){return t.cache.diff(i.queryInfo.getDiffOptions())})),n=c(i,a,o)),c&&!0!==n||(n=i.refetch()),!1!==n&&u.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),u},e.prototype.maskOperation=function(e){var t=e.document,r=e.data;return this.dataMasking?(0,P.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,R.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,l=t.errorPolicy,d=t.returnPartialData,p=t.context,f=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:o,variables:a,networkStatus:r});var m=function(){return e.getDiff()},g=function(t,r){void 0===r&&(r=e.networkStatus||E.NetworkStatus.loading);var s=t.result;var c=function(e){return u.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"===l&&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,v=function(){return i.getResultsFromLink(e,y,{query:o,variables:a,context:p,fetchPolicy:s,errorPolicy:l})},b=f&&"number"==typeof h&&h!==r&&(0,E.isNetworkRequestInFlight)(r);switch(s){default:case"cache-first":return(_=m()).complete?{fromLink:!1,sources:[g(_,e.markReady())]}:d||b?{fromLink:!0,sources:[g(_),v()]}:{fromLink:!0,sources:[v()]};case"cache-and-network":var _;return(_=m()).complete||d||b?{fromLink:!0,sources:[g(_),v()]}:{fromLink:!0,sources:[v()]};case"cache-only":return{fromLink:!1,sources:[g(m(),e.markReady())]};case"network-only":return b?{fromLink:!0,sources:[g(m()),v()]}:{fromLink:!0,sources:[v()]};case"no-cache":return b?{fromLink:!0,sources:[g(e.getDiff()),v()]}:{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=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 l(e,t)}finally{a.clear()}}const c=s;function l(e,t){if(e===t)return!0;const r=n.call(e);
1if(r!==n.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(f(e,t))return!0;const r=u(e),n=u(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(!l(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(f(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&&!l(o,t.get(r)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let r=e.byteLength;if(r===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const r=o.call(e);return r===o.call(t)&&!function(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(r,p)}}return!1}function u(e){return Object.keys(e).filter(d,e)}function d(e){return void 0!==this[e]}const p="{ [native code] }";function f(e,t){let r=a.get(e);if(r){if(r.has(t))return!0}else a.set(e,r=new Set);return r.add(t),!1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DocumentTransform:()=>d});var n=r(477),i=r(474),o=r(550),a=r(466),s=r(561),c=r(476),l=r(562);function u(e){return e}var d=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(u,{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),104),r.lookupArray(n)},max:l.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(543);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(314),i=r(543),o=r(594),a=r(595);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";function n(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}
1),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(543),i=r(474);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,{getGraphQLErrorsFromResult:()=>a,graphQLResultHasError:()=>o});var n=r(577),i=r(576);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,{ObservableQuery:()=>b,logMissingFieldErrors:()=>S});var n=r(314),i=r(466),o=r(590),a=r(598),s=r(543),c=r(550),l=r(599),u=r(600),d=r(594),p=r(595),f=r(601),h=r(575),m=r(602),g=r(476),y=r(603),v=Object.assign,b=(Object.hasOwnProperty,function(e){function t(r){var i=r.queryManager,o=r.queryInfo,a=r.options,s=this,l=t.inactiveOnCreation.getValue();(s=e.call(this,function(e){s._getOrCreateQuery();try{var t=e._subscription._observer;t&&!t.error&&(t.error=_)}catch(e){}var r=!s.observers.size;s.observers.add(e);var n=s.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(s.maskResult(n.result)),r&&s.reobserve().catch(function(){}),function(){s.observers.delete(e)&&!s.observers.size&&s.tearDownQuery()}})||this).observers=new Set,s.subscriptions=new Set,s.dirty=!1,s._getOrCreateQuery=function(){return l&&(i.queries.set(s.queryId,o),l=!1),s.queryManager.getOrCreateQuery(s.queryId)},s.queryInfo=o,s.queryManager=i,s.waitForOwnResult=E(a.fetchPolicy),s.isTornDown=!1,s.subscribeToMore=s.subscribeToMore.bind(s),s.maskResult=s.maskResult.bind(s);var u=i.defaultOptions.watchQuery,d=(void 0===u?{}:u).fetchPolicy,p=void 0===d?"cache-first":d,f=a.fetchPolicy,h=void 0===f?p:f,m=a.initialFetchPolicy,g=void 0===m?"standby"===h?p:h:m;s.options=(0,n.__assign)((0,n.__assign)({},a),{initialFetchPolicy:g,fetchPolicy:h}),s.queryId=o.queryId||i.generateQueryId();var y=(0,c.getOperationDefinition)(s.query);return s.queryName=y&&y.name&&y.name.value,s}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){var t=this;void 0===e&&(e=!0);var r=(0,y.muteDeprecations)("getLastResult",function(){return t.getLastResult(!0)}),i=this.queryInfo.networkStatus||r&&r.networkStatus||a.NetworkStatus.ready,s=(0,n.__assign)((0,n.__assign)({},r),{loading:(0,a.isNetworkRequestInFlight)(i),networkStatus:i}),c=this.options.fetchPolicy,l=void 0===c?"cache-first":c;if(E(l)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(s.data=u.result),(0,o.equal)(s.data,{})&&(s.data=void 0),u.complete?(delete s.partial,!u.complete||s.networkStatus!==a.NetworkStatus.loading||"cache-first"!==l&&"cache-only"!==l||(s.networkStatus=a.NetworkStatus.ready,s.loading=!1)):s.partial=!0,s.networkStatus===a.NetworkStatus.ready&&(s.error||s.errors)&&(s.networkStatus=a.NetworkStatus.error)}return e&&this.updateLastResult(s),s},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="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 l=new Set,u=null==e?void 0:e.updateQuery,d="no-cache"!==this.options.fetchPolicy;return d||(0,i.invariant)(u,29),this.queryManager.fetchQuery(o,r,a.NetworkStatus.fetchMore).then(function(i){if(t.queryManager.removeQuery(o),s.networkStatus===a.NetworkStatus.fetchMore&&(s.networkStatus=c),d)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){l.add(e.query)}});else{var p=t.getLast("result"),f=u(p.data,{fetchMoreResult:i.data,variables:r.variables});t.reportResult((0,n.__assign)((0,n.__assign)({}
1,p),{networkStatus:c,loading:(0,a.isNetworkRequestInFlight)(c),data:f}),t.variables)}return t.maskResult(i)}).finally(function(){d&&!l.has(t.query)&&t.reobserveCacheFirst()})},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,f.compact)(this.options,e||{});v(this.options,t)},t.prototype.setVariables=function(e){var t=this;return(0,o.equal)(this.variables,e)?this.observers.size?(0,y.muteDeprecations)("observableQuery.result",function(){return t.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){var n=this._getOrCreateQuery();return n.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(n,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,32),(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){var r=this;void 0===t&&(t=this.variables);var i=(0,y.muteDeprecations)("getLastError",function(){return r.getLastError()});return i&&this.last&&!(0,o.equal)(t,this.last.variables)&&(i=void 0),this.last=(0,n.__assign)({result:this.queryManager.assumeImmutableResults?e:(0,u.cloneDeep)(e),variables:t},i?{error:i}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var i=t===a.NetworkStatus.refetch||t===a.NetworkStatus.fetchMore||t===a.NetworkStatus.poll,s=this.options.variables,c=this.options.fetchPolicy,l=(0,f.compact)(this.options,e||{}),u=i?l:v(this.options,l),d=this.transformDocument(u.query);this.lastQuery=d,i||(this.updatePolling(),!e||!e.variables||(0,o.equal)(e.variables,s)||"standby"===u.fetchPolicy||u.fetchPolicy!==c&&"function"!=typeof u.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",u),void 0===t&&(t=a.NetworkStatus.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=E(u.fetchPolicy));var p=function(){r.concast===y&&(r.waitForOwnResult=!1)},m=u.variables&&(0,n.__assign)({},u.variables),g=this.fetch(u,t,d),y=g.concast,b=g.fromLink,_={next:function(e){(0,o.equal)(r.variables,m)&&(p(),r.reportResult(e,m))},error:function(e){(0,o.equal)(r.variables,m)&&((0,h.isApolloError)(e)||(e=new h.ApolloError({networkError:e})),p(),r.reportError(e,m))}};return i||!b&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=y,this.observer=_),y.addObserver(_),y},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=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=this.last;(0,y.muteDeprecations)("resetLastResults",function(){return e.resetLastResults()});var i=this.subscribe.apply(this,t);return this.last=n,i},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this,n=(0,y.muteDeprecations)("getLastError",function(){return r.getLastError()}),i=this.isDifferentFromLastResult(e,t);(n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(n||i)&&(0,d.iterateObserversSafely)(this.observers,"next",this.maskResult(e))},t.prototype.reportError=function(e,t){var r=this,i=(0,n.__assign)((0,n.__assign)({},(0,y.muteDeprecations)("getLastResult",function(){return r.getLastResult()})),{error:e,errors:e.graphQLErrors,networkStatus:a.NetworkStatus.error,loading:!1});
1this.updateLastResult(i,t),(0,d.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.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var e=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},t.prototype.notify=function(){(this.cancelNotifyTimeout(),this.dirty)&&("cache-only"!=this.options.fetchPolicy&&"cache-and-network"!=this.options.fetchPolicy&&(0,a.isNetworkRequestInFlight)(this.queryInfo.networkStatus)||(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()));this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,r=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,n){return this.nextFetchPolicy=r,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(e,n):t}}):this.reobserve()},t.inactiveOnCreation=new g.Slot,t}(s.Observable));function _(e){}function S(e){0}function E(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,p.fixObservableSubclass)(b)},(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";function n(e){return e.catch(function(){}),e}r.r(t),r.d(t,{preventUnhandledRejection:()=>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(){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,{equalByQuery:()=>l});var n=r(314),i=r(590),o=r(565),a=r(553),s=r(550),c=r(551);function l(e,t,r,o){var c=t.data,l=(0,n.__rest)(t,["data"]),d=r.data,p=(0,n.__rest)(r,["data"]);return(0,i.default)(l,p)&&u((0,s.getMainDefinition)(e).selectionSet,c,d,{fragmentMap:(0,a.createFragmentMap)((0,s.getFragmentDefinitions)(e)),variables:o})}function u(e,t,r,n){if(t===r)return!0;var s=new Set;return e.selections.every(function(e){if(s.has(e))return!0;if(s.add(e),!(0,o.shouldInclude)(e,n.variables))return!0;if(d(e))return!0;if((0,c.isField)(e)){var l=(0,c.resultKeyNameFromField)(e),p=t&&t[l],f=r&&r[l],h=e.selectionSet;if(!h)return(0,i.default)(p,f);var m=Array.isArray(p),g=Array.isArray(f);if(m!==g)return!1;if(m&&g){var y=p.length;if(f.length!==y)return!1;for(var v=0;v<y;++v)if(!u(h,p[v],f[v],n))return!1;return!0}return u(h,p,f,n)}var b=(0,a.getFragmentFromSelection)(e,n.fragmentMap);return b?!!d(b)||u(b.selectionSet,t,r,n):void 0})}function d(e){return!!e.directives&&e.directives.some(p)}function p(e){return"nonreactive"===e.name.value}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{muteDeprecations:()=>d,warnDeprecated:()=>f,warnRemovedOption:()=>p});var n,i=r(314),o=r(476),a=r(466),s=Symbol.for("apollo.deprecations"),c=Symbol.for("apollo.deprecations.slot"),l=a.global,u=null!==(n=l[c])&&void 0!==n?n:l[c]=new o.Slot;function d(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return u.withValue.apply(u,(0,i.__spreadArray)([Array.isArray(e)?e:[e]],t,!1))}function p(e,t,r,n){void 0===n&&(n="Please remove this option."),f(t,function(){})}function f(e,t){(function(e){return l[s]||(u.getValue()||[]).includes(e)})(e)||t()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{QueryInfo:()=>h,shouldWriteResult:()=>m});var n=r(314),i=r(590),o=r(578),a=r(576),s=r(577),c=r(596),l=r(474),u=r(598),d=r(603),p=new(l.canUseWeakMap?WeakMap:Map);function f(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return p.set(e,(p.get(e)+1)%1e15),r.apply(this,arguments)})}var h=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=e.cache;p.has(r)||(p.set(r,0),f(r,"evict"),f(r,"modify"),f(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||u.NetworkStatus.loading;return this.variables&&this.networkStatus!==u.NetworkStatus.loading&&!(0,i.equal)(this.variables,e.variables)&&(t=u.NetworkStatus.setVariables),(0,i.equal)(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),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.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this,t=this.getDiffOptions();if(this.lastDiff&&(0,i.equal)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=(0,d.muteDeprecations)("canonizeResults",function(){return e.cache.diff(t)});return this.updateLastDiff(n,t),n},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&&(0,d.muteDeprecations)("getLastError",function(){var e;return null===(e=r.observableQuery)||void 0===e?void 0:e.getLastError()})||(this.updateLastDiff(e),(0,i.equal)(n&&n.result,e&&e.result)||null===(t=this.observableQuery)||void 0===t||t.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null===(e=this.observableQuery)||void 0===e||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null===(e=this.cancelWatch)||void 0===e||e.call(this),this.cancelWatch=void 0},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)}});
1this.lastWatch&&(0,i.equal)(o,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=o))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===p.get(this.cache)&&(0,i.equal)(t,r.variables)&&(0,i.equal)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var c,l=this,u=new o.DeepMerger,f=(0,s.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];if(null===(c=this.observableQuery)||void 0===c||c.resetNotifications(),"incremental"in e&&(0,s.isNonEmptyArray)(e.incremental)){var h=(0,a.mergeIncrementalData)(this.getDiff().result,e);e.data=h}else if("hasNext"in e&&e.hasNext){var g=this.getDiff();e.data=u.merge(g.result,e.data)}this.graphQLErrors=f,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(m(e,r.errorPolicy)?this.cache.performTransaction(function(o){if(l.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),l.lastWrite={result:e,variables:r.variables,dmCount:p.get(l.cache)};else if(l.lastDiff&&l.lastDiff.diff.complete)return void(e.data=l.lastDiff.diff.result);var a=l.getDiffOptions(r.variables),s=(0,d.muteDeprecations)("canonizeResults",function(){return o.diff(a)});!l.stopped&&(0,i.equal)(l.variables,r.variables)&&l.updateWatch(r.variables),l.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=u.NetworkStatus.ready},e.prototype.markError=function(e){var t;return this.networkStatus=u.NetworkStatus.error,this.lastWrite=void 0,null===(t=this.observableQuery)||void 0===t||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function m(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!(0,c.graphQLResultHasError)(e);return!n&&r&&e.data&&(n=!0),n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{maskFragment:()=>u});var n=r(558),i=r(606),o=r(466),a=r(590),s=r(607),c=r(553),l=r(550);function u(e,t,r,u){if(!r.fragmentMatches)return e;var d=t.definitions.filter(function(e){return e.kind===n.Kind.FRAGMENT_DEFINITION});void 0===u&&((0,o.invariant)(1===d.length,61,d.length),u=d[0].name.value);var p=d.find(function(e){return e.name.value===u});return(0,o.invariant)(!!p,62,u),null==e||(0,a.default)(e,{})?e:(0,s.maskDefinition)(e,p.selectionSet,{operationType:"fragment",operationName:p.name.value,fragmentMap:(0,c.createFragmentMap)((0,l.getFragmentDefinitions)(t)),cache:r,mutableTargets:new i.MapImpl,knownChanged:new i.SetImpl})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MapImpl:()=>o,SetImpl:()=>a,disableWarningsSlot:()=>s,warnOnImproperCacheImplementation:()=>l});var n=r(476),i=(r(466),r(474)),o=i.canUseWeakMap?WeakMap:Map,a=i.canUseWeakSet?WeakSet:Set,s=new n.Slot,c=!1;function l(){c||(c=!0)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{maskDefinition:()=>l});var n=r(558),i=r(565),o=r(551),a=r(608),s=r(606),c=r(466);function l(e,t,r){return s.disableWarningsSlot.withValue(!0,function(){var n=u(e,t,r,!1);return Object.isFrozen(e)&&(0,a.maybeDeepFreeze)(n),n})}function u(e,t,r,a,s){var l=r.knownChanged,d=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 p=0,f=Array.from(e.entries());p<f.length;p++){var h=f[p],m=h[0],g=h[1];if(null!==g){var y=u(g,t,r,a,void 0);l.has(y)&&l.add(d),d[m]=y}else d[m]=null}return l.has(d)?d:e}for(var v=0,b=t.selections;v<b.length;v++){var _=b[v],S=void 0;if(a&&l.add(d),_.kind===n.Kind.FIELD){var E=(0,o.resultKeyNameFromField)(_),w=_.selectionSet;if(void 0===(S=d[E]||e[E]))continue;if(w&&null!==S){y=u(e[E],w,r,a,void 0);l.has(y)&&(S=y)}d[E]=S}if(_.kind!==n.Kind.INLINE_FRAGMENT||_.typeCondition&&!r.cache.fragmentMatches(_,e.__typename)||(S=u(e,_.selectionSet,r,a,s)),_.kind===n.Kind.FRAGMENT_SPREAD){var T=_.name.value,x=r.fragmentMap[T]||(r.fragmentMap[T]=r.cache.lookupFragment(T));(0,c.invariant)(x,59,T);var O=(0,i.getFragmentMaskMode)(_);"mask"!==O&&(S=u(e,x.selectionSet,r,"migrate"===O,s))}l.has(S)&&l.add(d)}return"__typename"in e&&!("__typename"in d)&&(d.__typename=e.__typename),Object.keys(d).length!==Object.keys(e).length&&l.add(d),l.has(d)?d:e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{deepFreeze:()=>i,maybeDeepFreeze:()=>o});var n=r(552);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,{maskOperation:()=>c});var n=r(466),i=r(553),o=r(550),a=r(607),s=r(606);function c(e,t,r){var c;if(!r.fragmentMatches)return e;var l=(0,o.getOperationDefinition)(t);return(0,n.invariant)(l,63),null==e?e:(0,a.maskDefinition)(e,l.selectionSet,{operationType:l.operation,operationName:null===(c=l.name)||void 0===c?void 0:c.value,fragmentMap:(0,i.createFragmentMap)((0,o.getFragmentDefinitions)(t)),cache:r,mutableTargets:new s.Map
1Impl,knownChanged:new s.SetImpl})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LocalState:()=>h});var n=r(314),i=r(466),o=r(554),a=r(611),s=r(565),c=r(553),l=r(550),u=r(551),d=r(588),p=r(578),f=r(475),h=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,p.mergeDeep)(t.resolvers,e)}):this.resolvers=(0,p.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,s.hasDirectives)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,d.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,d.buildQueryFromSelectionSet)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,n.__awaiter)(this,arguments,void 0,function(e,t,r,i,o,a){var s,u,d,p,f,h,m,g,y,v;return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,n.__generator)(this,function(b){return s=(0,l.getMainDefinition)(e),u=(0,l.getFragmentDefinitions)(e),d=(0,c.createFragmentMap)(u),p=this.collectSelectionsToResolve(s,d),f=s.operation,h=f?f.charAt(0).toUpperCase()+f.slice(1):"Query",g=(m=this).cache,y=m.client,v={fragmentMap:d,context:(0,n.__assign)((0,n.__assign)({},r),{cache:g,client:y}),variables:i,fragmentMatcher:o,defaultOperationType:h,exportedVariables:{},selectionsToResolve:p,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,false,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,o){return(0,n.__awaiter)(this,void 0,void 0,function(){var a,c,l,d,f,h=this;return(0,n.__generator)(this,function(m){return a=o.fragmentMap,c=o.context,l=o.variables,d=[r],f=function(e){return(0,n.__awaiter)(h,void 0,void 0,function(){var p,f;return(0,n.__generator)(this,function(n){return(t||o.selectionsToResolve.has(e))&&(0,s.shouldInclude)(e,l)?(0,u.isField)(e)?[2,this.resolveField(e,t,r,o).then(function(t){var r;void 0!==t&&d.push(((r={})[(0,u.resultKeyNameFromField)(e)]=t,r))})]:((0,u.isInlineFragment)(e)?p=e:(p=a[e.name.value],(0,i.invariant)(p,21,e.name.value)),p&&p.typeCondition&&(f=p.typeCondition.name.value,o.fragmentMatcher(r,f,c))?[2,this.resolveSelectionSet(p.selectionSet,t,r,o).then(function(e){d.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(f)).then(function(){return(0,p.mergeDeepArray)(d)})]})})},e.prototype.resolveField=function(e,t,r,i){return(0,n.__awaiter)(this,void 0,void 0,function(){var o,a,s,c,l,d,p,h,m,g=this;return(0,n.__generator)(this,function(n){return r?(o=i.variables,a=e.name.value,s=(0,u.resultKeyNameFromField)(e),c=a!==s,l=r[s]||r[a],d=Promise.resolve(l),i.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(p=r.__typename||i.defaultOperationType,(h=this.resolvers&&this.resolvers[p])&&
1(m=h[c?a:s])&&(d=Promise.resolve(f.cacheSlot.withValue(this.cache,m,[r,(0,u.argumentsObjectFromField)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,d.then(function(r){var n,o;if(void 0===r&&(r=l),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=r)})}),!e.selectionSet)return r;if(null==r)return r;var a=null!==(o=null===(n=e.directives)||void 0===n?void 0:n.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(r)?g.resolveSubSelectedArray(e,t||a,r,i):e.selectionSet?g.resolveSelectionSet(e.selectionSet,t||a,r,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(s){if(!n.has(s)){var c=new Set;n.set(s,c),(0,o.visit)(s,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach(function(e){r(e)&&(0,a.isSelectionNode)(e)&&c.add(e)})},FragmentSpread:function(n,o,s,l,u){var d=t[n.name.value];(0,i.invariant)(d,22,n.name.value);var p=e(d);p.size>0&&(u.forEach(function(e){r(e)&&(0,a.isSelectionNode)(e)&&c.add(e)}),c.add(n),p.forEach(function(e){c.add(e)}))}})}return n.get(s)}(e)},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isConstValueNode:()=>c,isDefinitionNode:()=>i,isExecutableDefinitionNode:()=>o,isSchemaCoordinateNode:()=>h,isSelectionNode:()=>a,isTypeDefinitionNode:()=>d,isTypeExtensionNode:()=>f,isTypeNode:()=>l,isTypeSystemDefinitionNode:()=>u,isTypeSystemExtensionNode:()=>p,isValueNode:()=>s});var n=r(558);function i(e){return o(e)||u(e)||p(e)}function o(e){return e.kind===n.Kind.OPERATION_DEFINITION||e.kind===n.Kind.FRAGMENT_DEFINITION}function a(e){return e.kind===n.Kind.FIELD||e.kind===n.Kind.FRAGMENT_SPREAD||e.kind===n.Kind.INLINE_FRAGMENT}function s(e){return e.kind===n.Kind.VARIABLE||e.kind===n.Kind.INT||e.kind===n.Kind.FLOAT||e.kind===n.Kind.STRING||e.kind===n.Kind.BOOLEAN||e.kind===n.Kind.NULL||e.kind===n.Kind.ENUM||e.kind===n.Kind.LIST||e.kind===n.Kind.OBJECT}function c(e){return s(e)&&(e.kind===n.Kind.LIST?e.values.some(c):e.kind===n.Kind.OBJECT?e.fields.some(e=>c(e.value)):e.kind!==n.Kind.VARIABLE)}function l(e){return e.kind===n.Kind.NAMED_TYPE||e.kind===n.Kind.LIST_TYPE||e.kind===n.Kind.NON_NULL_TYPE}function u(e){return e.kind===n.Kind.SCHEMA_DEFINITION||d(e)||e.kind===n.Kind.DIRECTIVE_DEFINITION}function d(e){return e.kind===n.Kind.SCALAR_TYPE_DEFINITION||e.kind===n.Kind.OBJECT_TYPE_DEFINITION||e.kind===n.Kind.INTERFACE_TYPE_DEFINITION||e.kind===n.Kind.UNION_TYPE_DEFINITION||e.kind===n.Kind.ENUM_TYPE_DEFINITION||e.kind===n.Kind.INPUT_OBJECT_TYPE_DEFINITION}function p(e){return e.kind===n.Kind.SCHEMA_EXTENSION||e.kind===n.Kind.DIRECTIVE_EXTENSION||f(e)}function f(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}function h(e){return e.kind===n.Kind.TYPE_COORDINATE||e.kind===n.Kind.MEMBER_COORDINATE||e.kind===n.Kind.ARGUMENT_COORDINATE||e.kind===n.Kind.DIRECTIVE_COORDINATE||e.kind===n.Kind.DIRECTIVE_ARGUMENT_COORDINATE}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{mergeOptions:()=>o});var n=r(314),i=r(601);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,{from:()=>n});var n=r(546).ApolloLink.from},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TypeOrFieldNameRegExp:()=>v,defaultDataIdFromObject:()=>f,extractFragmentContext:()=>w,fieldNameFromStoreName:()=>b,getTypenameFromStoreObject:()=>y,hasOwn:()=>d,isArray:()=>c.isArray,isNullish:()=>p,makeProcessedFieldsMerger:()=>E,normalizeConfig:()=>m,selectionSetMatchesResult:()=>_,shouldCanonizeResults:()=>g,storeValueIsStoreObject:()=>S});var n=r(565),i=r(553),o=r(550),a=r(551),s=r(578),c=r(577),l=r(552),u=r(601),d=Object.prototype.hasOwnProperty;function p(e){return null==e}function f(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=p(n)?p(i)?void 0:{_id:i}:{id:n}),p(n)&&!p(i)&&(n=i),!p(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var h={dataIdFromObject:f,addTypename:!0,resultCaching:!0,canonizeResults:!1};function m(e){return(0,u.compact)(h,e)}function g(e){var t=e.canonizeResults;return void 0===t?h.canonizeResults:t}function y(e,t){return(0,a.isReference)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var v=/^[_a-z][_0-9a-z]*/i;function b(e){var t=e.match(v);return t?t[0]:e}function _(e,t,r){return!!(0,l.isNonNullObject)(t)&&((0,c.isArray)(t)?t.every(function(t){return _(e,t,r)}):e.selections.every(function(e){if((0,a.isField)(e)&&(0,n.shouldInclude)(e,r)){var i=(0,a.resultKeyNameFromField)(e);return d.call(t,i)&&(!e.selectionSet||_(e.selectionSet,t[i],r))}return!0}))}function S(e){return(0,l.isNonNullObject)(e)&&!(0,a.isReference)(e)&&!(0,c.isArray)(e)}function E(){return new s.DeepMerger}function w(e,t){var r=(0,i.createFragmentMap)((0,o.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,{InMemoryCache:()=>S});var n=r(314),i=(r(466),r(476)),o=r(590),a=r(616),s=r(617),c=r(562),l=r(591),u=r(580),d=r(551),p=r(588),f=r(559),h=r(618),m=r(621),g=r(619),y=r(475),v=r(622),b=r(614),_=r(603),S=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new l.DocumentTransform(p.addTypenameToDocument),r.assumeImmutableResults=!0,r.makeVar=y.makeVar,r.txCount=0,r.config=(0,b.normalizeConfig)(t),r.addTypename=!!r.config.addTypename,r.policies=new v.Policies({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,n.__extends)(t,e),t.prototype.init=function(){var e=this.data=new g.EntityStore.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.addTypenameTransform.resetCache(),null==n||n.resetCaches(),this.storeWriter=new m.StoreWriter(this,this.storeReader=new h.StoreReader({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,b.shouldCanonizeResults)(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,i.wrap)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||c.cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if((0,g.supportsResultCaching)(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,f.canonicalStringify)({optimistic:n,id:i,variables:o}))}}}
vendor: 4,065 bytes, line 1
1),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(e){if(e instanceof s.MissingFieldError)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(b.hasOwn.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,y.recallCache)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,y.forgetCache)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){f.canonicalStringify.reset(),u.print.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,d.isReference)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){}},t.prototype.evict=function(e){if(!e.id){if(b.hasOwn.call(e,"id"))return!1;e=(0,n.__assign)((0,n.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),f.canonicalStringify.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,y.forgetCache)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,i=e.update,o=e.optimistic,a=void 0===o||o,s=e.removeOptimistic,c=e.onWatchUpdated,l=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}},u=new Set;return c&&!this.txCount&&this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,l):!1===a?l(this.data):l(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),c&&u.size?(this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e,t){var r=c.call(this,e,t);return!1!==r&&u.delete(e),r}})),u.size&&u.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;
1this.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=this,n=e.lastDiff,i=(0,_.muteDeprecations)("canonizeResults",function(){return r.diff(e)});t&&(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,i,n))||n&&(0,o.equal)(n.result,i.result)||e.callback(e.lastDiff=i,n)},t}(a.ApolloCache)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloCache:()=>f});var n=r(314),i=r(476),o=r(543),a=r(562),s=r(553),c=r(578),l=r(561),u=r(602),d=(r(466),r(605)),p=r(603),f=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,i.wrap)(s.getFragmentQueryDocument,{max:a.cacheSizes["cache.fragmentQueryDocuments"]||1e3,cache:l.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){var r=this;return void 0===t&&(t=!!e.optimistic),(0,p.muteDeprecations)("canonizeResults",function(){return r.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,a=e.fragmentName,s=e.from,l=e.optimistic,p=void 0===l||l,f=(0,n.__rest)(e,["fragment","fragmentName","from","optimistic"]),h=this.getFragmentDoc(i,a),m=void 0===s||"string"==typeof s?s:this.identify(s),g=!!e[Symbol.for("apollo.dataMasking")],y=(0,n.__assign)((0,n.__assign)({},f),{returnPartialData:!0,id:m,query:h,optimistic:p});return new o.Observable(function(o){return r.watch((0,n.__assign)((0,n.__assign)({},y),{immediate:!0,callback:function(s){var l=g?(0,d.maskFragment)(s.result,i,r,a):s.result;if(!t||!(0,u.equalByQuery)(h,{data:t.result},{data:l},e.variables)){var p={data:l,complete:!!s.complete};s.missing&&(p.missing=(0,c.mergeDeepArray)(s.missing.map(function(e){return e.missing}))),t=(0,n.__assign)((0,n.__assign)({},s),{result:l}),o.next(p)}}}))})},e.prototype.readFragment=function(e,t){var r=this;return void 0===t&&(t=!!e.optimistic),(0,p.muteDeprecations)("canonizeResults",function(){return r.read((0,n.__assign)((0,n.__assign)({},e),{query:r.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=(0,p.muteDeprecations)("canonizeResults",function(){return 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=(0,p.muteDeprecations)("canonizeResults",function(){return 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(314),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:()=>T});var n=r(314),i=r(466),o=r(558),a=r(476),s=r(562),c=r(565),l=r(553),u=r(550),d=r(551),p=r(588),f=r(578),h=r(608),m=(r(552),r(474)),g=r(601),y=r(559),v=r(619),b=r(614),_=r(577),S=r(617),E=r(620);function w(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var T=function(){function e(e){var t=this;this.knownResults=new(m.canUseWeakMap?WeakMap:Map),this.config=(0,g.compact)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,b.shouldCanonizeResults)(e)}
1),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||s.cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:w,makeCacheKey:function(e,t,r,n){if((0,v.supportsResultCaching)(r.store))return r.store.makeCacheKey(e,(0,d.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||s.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,l=e.canonizeResults,p=void 0===l?this.config.canonizeResults:l,f=this.config.cache.policies;a=(0,n.__assign)((0,n.__assign)({},(0,u.getDefaultValues)((0,u.getQueryDefinition)(r))),a);var h,m=(0,d.makeReference)(o),g=this.executeSelectionSet({selectionSet:(0,u.getMainDefinition)(r).selectionSet,objectOrReference:m,enclosingRef:m,context:(0,n.__assign)({store:t,query:r,policies:f,variables:a,varString:(0,y.canonicalStringify)(a),canonizeResults:p},(0,b.extractFragmentContext)(r,this.config.fragments))});if(g.missing&&(h=[new S.MissingFieldError(x(g.missing),g.missing,r,a)],!c))throw h[0];return{result:g.result,complete:!h,missing:h}},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,d.isReference)(n)&&!s.policies.rootTypenamesById[n.__ref]&&!s.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var u,m=s.variables,g=s.policies,y=s.store.getFieldValue(n,"__typename"),v=[],b=new f.DeepMerger;function S(e,t){var r;return e.missing&&(u=b.merge(u,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof y&&!g.rootIdsByTypename[y]&&v.push({__typename:y});var E=new Set(r.selections);E.forEach(function(e){var r,f;if((0,c.shouldInclude)(e,m))if((0,d.isField)(e)){var h=g.readField({fieldName:e.name.value,field:e,variables:s.variables,from:n},s),w=(0,d.resultKeyNameFromField)(e);void 0===h?p.addTypenameToDocument.added(e)||(u=b.merge(u,((r={})[w]="Can't find field '".concat(e.name.value,"' on ").concat((0,d.isReference)(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):(0,_.isArray)(h)?h.length>0&&(h=S(t.executeSubSelectedArray({field:e,array:h,enclosingRef:a,context:s}),w)):e.selectionSet?null!=h&&(h=S(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:h,enclosingRef:(0,d.isReference)(h)?h:a,context:s}),w)):s.canonizeResults&&(h=t.canon.pass(h)),void 0!==h&&v.push(((f={})[w]=h,f))}else{var T=(0,l.getFragmentFromSelection)(e,s.lookupFragment);if(!T&&e.kind===o.Kind.FRAGMENT_SPREAD)throw(0,i.newInvariantError)(10,e.name.value);T&&g.fragmentMatches(T,y)&&T.selectionSet.selections.forEach(E.add,E)}});var w={result:(0,f.mergeDeepArray)(v),missing:u},T=s.canonizeResults?this.canon.admit(w):(0,h.maybeDeepFreeze)(w);return T.result&&this.knownResults.set(T.result,r),T},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new f.DeepMerger;function c(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,_.isArray)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:a}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,d.isReference)(e)?e:o,context:a}),t):e}),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function x(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EntityStore:()=>y,maybeDependOnExistenceOfEntity:()=>_,supportsResultCaching:()=>T});var n=r(314),i=r(466),o=r(476),a=r(590),s=r(477),c=r(551),l=r(578),u=r(608),d=r(552),p=r(474),f=r(614),h=Object.create(null),m=function(){return h},g=Object.create(null),y=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,u.maybeDeepFreeze)((0,c.isReference)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,c.isReference)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,c.makeReference)(e);if((0,c.isReference)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,c.makeReference)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,n.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),f.hasOwn.call(this.data,e)){var r=this.data[e];if(r&&f.hasOwn.call(r,t))return r[t]}return"__typename"===t&&f.hasOwn.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof S?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),f.hasOwn.call(this.data,e)?this.data[e]:this instanceof S?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,c.isReference)(e)&&(e=e.__ref),(0,c.isReference)(t)&&(t=t.__ref);
1var 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 u=Object.create(null);o||(u.__exists=1),Object.keys(a).forEach(function(e){if(!o||o[e]!==s[e]){u[e]=1;var t=(0,f.fieldNameFromStoreName)(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||n instanceof S||delete s[e]}}),!u.__typename||o&&o.__typename||this.policies.rootTypenamesById[r]!==s.__typename||delete u.__typename,Object.keys(u).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,i=this.lookup(e);if(i){var o=Object.create(null),a=!1,s=!0,l={DELETE:h,INVALIDATE:g,isReference:c.isReference,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,c.makeReference)(e)}:t,{store:r})}};if(Object.keys(i).forEach(function(c){var d=(0,f.fieldNameFromStoreName)(c),p=i[c];if(void 0!==p){var y="function"==typeof t?t:t[c]||t[d];if(y){var v=y===m?h:y((0,u.maybeDeepFreeze)(p),(0,n.__assign)((0,n.__assign)({},l),{fieldName:d,storeFieldName:c,storage:r.getStorage(e,c)}));if(v===g)r.group.dirty(e,c);else if(v===h&&(v=void 0),v!==p)o[c]=v,a=!0,p=v}void 0!==p&&(s=!1)}}),a)return this.merge(e,o),s&&(this instanceof S?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=m,n):m)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(f.hasOwn.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof S&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){f.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&&f.hasOwn.call(e,r)||t.delete(r)}),e){var r=e.__META,i=(0,n.__rest)(e,["__META"]);
1Object.keys(i).forEach(function(e){t.merge(e,i[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof S?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){f.hasOwn.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof S;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!f.hasOwn.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,c.isReference)(e)&&(t[e.__ref]=!0),(0,d.isNonNullObject)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,d.isNonNullObject)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),v=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,o.dep)():null,this.keyMaker=new s.Trie(p.canUseWeakMap)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(b(e,t));var r=(0,f.fieldNameFromStoreName)(t);r!==t&&this.d(b(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(b(e,t),"__exists"===t?"forget":"setDirty")},e}();function b(e,t){return t+"#"+e}function _(e,t){T(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,o=t.seed,a=e.call(this,r,new v(i))||this;return a.stump=new E(a),a.storageTrie=new s.Trie(p.canUseWeakMap),o&&a.replace(o),a}return(0,n.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(y||(y={}));var S=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,n.__extends)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,a.equal)(n[r],i[r])||t.group.dirty(e,r)}
1):(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 f.hasOwn.call(this.data,t)?(0,n.__assign)((0,n.__assign)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(y),E=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new v(t.group.caching,t.group))||this}return(0,n.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(S);function w(e,t,r){var n=e[r],i=t[r];return(0,a.equal)(n,i)?n:i}function T(e){return!!(e instanceof y&&e.group.caching)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ObjectCanon:()=>c});var n=r(314),i=r(477),o=r(552),a=r(474),s=r(577);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,l=a.length;if(s.sorted.forEach(function(r){a.push(t.admit(e[r]))}),!(c=this.pool.lookupArray(a)).object){var u=c.object=Object.create(i);this.known.add(u),s.sorted.forEach(function(e,t){u[e]=a[l+t]})}return c.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{StoreWriter:()=>g});var n=r(314),i=r(466),o=(r(590),r(477)),a=r(558),s=r(565),c=r(553),l=r(550),u=r(551),d=r(577),p=r(559),f=r(614),h=r(622);function m(e,t,r){var i="".concat(t).concat(r),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===r?e:(0,n.__assign)((0,n.__assign)({},e),{clientOnly:t,deferred:r})),o}var g=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,o=t.query,a=t.result,s=t.dataId,c=t.variables,d=t.overwrite,h=(0,l.getOperationDefinition)(o),m=(0,f.makeProcessedFieldsMerger)();c=(0,n.__assign)((0,n.__assign)({},(0,l.getDefaultValues)(h)),c);var g=(0,n.__assign)((0,n.__assign)({store:e,written:Object.create(null),merge:function(e,t){return m.merge(e,t)},variables:c,varString:(0,p.canonicalStringify)(c)},(0,f.extractFragmentContext)(o,this.fragments)),{overwrite:!!d,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),y=this.processSelectionSet({result:a||Object.create(null),dataId:s,selectionSet:h.selectionSet,mergeTree:{map:new Map},context:g});if(!(0,u.isReference)(y))throw(0,i.newInvariantError)(12,a);return g.incomingById.forEach(function(t,n){var i=t.storeObject,o=t.mergeTree,a=(t.fieldNodeSet,(0,u.makeReference)(n));if(o&&o.map.size){var s=r.applyMerges(o,a,i,g);if((0,u.isReference)(s))return;i=s}e.merge(n,i)}),e.retain(y.__ref),y},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,i=e.result,o=e.selectionSet,a=e.context,s=e.mergeTree,c=this.cache.policies,l=Object.create(null),d=r&&c.rootTypenamesById[r]||(0,u.getTypenameFromResult)(i,o,a.fragmentMap)||r&&a.store.get(r,"__typename");"string"==typeof d&&(l.__typename=d);var p=function(){var e=(0,h.normalizeReadFieldOptions)(arguments,l,a.variables);if((0,u.isReference)(e.from)){var t=a.incomingById.get(e.from.__ref);
1if(t){var r=c.readField((0,n.__assign)((0,n.__assign)({},e),{from:t.storeObject}),a);if(void 0!==r)return r}}return c.readField(e,a)},g=new Set;this.flattenFields(o,i,a,d).forEach(function(e,r){var n,o=(0,u.resultKeyNameFromField)(r),a=i[o];if(g.add(r),void 0!==a){var h=c.getStoreFieldName({typename:d,fieldName:r.name.value,field:r,variables:e.variables}),y=v(s,h),b=t.processFieldValue(a,r,r.selectionSet?m(e,!1,!1):e,y),_=void 0;r.selectionSet&&((0,u.isReference)(b)||(0,f.storeValueIsStoreObject)(b))&&(_=p("__typename",b));var E=c.getMergeFunction(d,r.name.value,_);E?y.info={field:r,typename:d,merge:E}:S(s,h),l=e.merge(l,((n={})[h]=b,n))}else 0});try{var y=c.identify(i,{typename:d,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:l,readField:p}),E=y[0],w=y[1];r=r||E,w&&(l=a.merge(l,w))}catch(e){if(!r)throw e}if("string"==typeof r){var T=(0,u.makeReference)(r),x=a.written[r]||(a.written[r]=[]);if(x.indexOf(o)>=0)return T;if(x.push(o),this.reader&&this.reader.isFresh(i,T,o,a))return T;var O=a.incomingById.get(r);return O?(O.storeObject=a.merge(O.storeObject,l),O.mergeTree=b(O.mergeTree,s),g.forEach(function(e){return O.fieldNodeSet.add(e)})):a.incomingById.set(r,{storeObject:l,mergeTree:_(s)?void 0:s,fieldNodeSet:g}),T}return l},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,d.isArray)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,v(n,o));return S(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,u.getTypenameFromResult)(t,e,r.fragmentMap));var l=new Map,p=this.cache.policies,f=new o.Trie(!1);return function e(o,h){var g=f.lookup(o,h.clientOnly,h.deferred);g.visited||(g.visited=!0,o.selections.forEach(function(o){if((0,s.shouldInclude)(o,r.variables)){var f=h.clientOnly,g=h.deferred;if(f&&g||!(0,d.isNonEmptyArray)(o.directives)||o.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(f=!0),"defer"===t){var n=(0,u.argumentsObjectFromField)(e,r.variables);n&&!1===n.if||(g=!0)}}),(0,u.isField)(o)){var y=l.get(o);y&&(f=f&&y.clientOnly,g=g&&y.deferred),l.set(o,m(r,f,g))}else{var v=(0,c.getFragmentFromSelection)(o,r.lookupFragment);if(!v&&o.kind===a.Kind.FRAGMENT_SPREAD)throw(0,i.newInvariantError)(14,o.name.value);v&&p.fragmentMatches(v,n,t,r.variables)&&e(v.selectionSet,m(r,f,g))}}}))}(e,r),l},e.prototype.applyMerges=function(e,t,r,o,a){var s,c=this;if(e.map.size&&!(0,u.isReference)(r)){var l,p=(0,d.isArray)(r)||!(0,u.isReference)(t)&&!(0,f.storeValueIsStoreObject)(t)?void 0:t,h=r;p&&!a&&(a=[(0,u.isReference)(p)?p.__ref:p]);var m=function(e,t){return(0,d.isArray)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=m(p,t),n=m(h,t);if(void 0!==n){a&&a.push(t);var s=c.applyMerges(e,r,n,o,a);s!==n&&(l=l||new Map).set(t,s),a&&(0,i.invariant)(a.pop()===t)}}),l&&(r=(0,d.isArray)(h)?h.slice(0):(0,n.__assign)({},h),l.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,o,a&&(s=o.store).getStorage.apply(s,a)):r},e}(),y=[];function v(e,t){var r=e.map;return r.has(t)||r.set(t,y.pop()||{map:new Map}),r.get(t)}function b(e,t){if(e===t||!t||_(t))return e;if(!e||_(e))return t;var r=e.info&&t.info?(0,n.__assign)((0,n.__assign)({},e.info),t.info):e.info||t.info,i=e.map.size&&t.map.size,o={info:r,map:i?new Map:e.map.size?e.map:t.map};if(i){var a=new Set(t.map.keys());e.map.forEach(function(e,r){o.map.set(r,b(e,t.map.get(r))),a.delete(r)}),a.forEach(function(r){o.map.set(r,b(t.map.get(r),e.map.get(r)))})}return o}function _(e){return!e||!(e.info||e.map.size)}function S(e,t){var r=e.map,n=r.get(t);n&&_(n)&&(y.push(n),r.delete(t))}new Set},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Policies:()=>y,normalizeReadFieldOptions:()=>b});var n=r(314),i=r(466),o=r(551),a=r(552),s=r(614),c=r(577),l=r(475),u=r(623),d=r(606);function p(e){return void 0!==e.args?e.args:e.field?(0,o.argumentsObjectFromField)(e.field,e.variables):null}var f=function(){},h=function(e,t){return t.fieldName},m=function(e,t,r){return(0,r.mergeObjects)(e,t)},g=function(e,t){return t},y=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,n.__assign)({dataIdFromObject: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,l=(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})}}),p=o&&this.getTypePolicy(o),f=p&&p.keyFn||this.config.dataIdFromObject;return d.disableWarningsSlot.withValue(!0,function(){for(;f;){var t=f((0,n.__assign)((0,n.__assign)({},e),s),l);if(!(0,c.isArray)(t)){a=t;break}f=(0,u.keyFieldsFnFromSpecifier)(t)}}),a=a?String(a):void 0,l.keyObject?[a,l.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,l=(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(l):t.toBeAdded[r]=[l]})},e.prototype.updateTypePolicy=function(e,t,r){var n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?m:!1===t?g:e.merge}a(n,t.merge),n.keyFn=!1===i?f:(0,c.isArray)(i)?(0,u.keyFieldsFnFromSpecifier)(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEac
1h(function(t){var n=r[t];n&&(null==n?void 0:n.typename)===e||(n=r[t]={typename:e});var i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,l=i.read,d=i.merge;n.keyFn=!1===s?h:(0,c.isArray)(s)?(0,u.keyArgsFnFromSpecifier)(s):"function"==typeof s?s:n.keyFn,"function"==typeof l&&(n.read=l),a(n,d)}n.read&&n.merge&&(n.keyFn=n.keyFn||h)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,i.invariant)(!n||n===e,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,t.typePolicies[e].fields)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t){if(e)return this.getTypePolicy(e).fields[t]},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],l=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&c.indexOf(t)<0&&c.push(t)},u=!(!r||!this.fuzzySubtypes.size),d=0;d<c.length;++d){var p=c[d];if(p.has(o))return a.has(o)||a.add(o),!0;p.forEach(l),u&&d===c.length-1&&(0,s.selectionSetMatchesResult)(e.selectionSet,r,n)&&(u=!1,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&l(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t);return!(!r||!r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n),a=i&&i.keyFn;if(a&&r)for(var l={typename:r,fieldName:n,field:e.field||null,variables:e.variables},d=p(e);a;){var f=a(d,l);if(!(0,c.isArray)(f)){t=f||n;break}a=(0,u.keyArgsFnFromSpecifier)(f)}return void 0===t&&(t=e.field?(0,o.storeKeyNameFromField)(e.field,e.variables):(0,o.getStoreKeyName)(n,p(e))),!1===t?n:n===(0,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),u=this.getFieldPolicy(e.typename,a),d=u&&u.read;if(d){var p=v(this,r,e,t,t.store.getStorage((0,o.isReference)(r)?r.__ref:r,i));return l.cacheSlot.withValue(this.cache,d,[c,p])}return c}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===m?_(n.store)(e,t):s===g?t:(n.overwrite&&(e=void 0),s(e,t,v(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function v(e,t,r,n,i){var a=e.getStoreFieldName(r),c=(0,s.fieldNameFromStoreName)(a),l=r.variables||n.variables,u=n.store,d=u.toReference,f=u.canRead;return{args:p(r),field:r.field||null,fieldName:c,storeFieldName:a,variables:l,isReference:o.isReference,toReference:d,storage:i,cache:e.cache,canRead:f,readField:function(){return e.readField(b(arguments,t,l),n)},mergeObjects:_(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 _(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 l=e.getFieldValue(t,"__typename"),u=e.getFieldValue(r,"__typename");if(l&&u&&l!==u)return r;
1if((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:()=>f,extractKeyPath:()=>g,getSpecifierPaths:()=>h,keyArgsFnFromSpecifier:()=>p,keyFieldsFnFromSpecifier:()=>d});var n=r(466),i=r(551),o=r(578),a=r(577),s=r(552),c=r(614),l=Object.create(null);function u(e){var t=JSON.stringify(e);return l[t]||(l[t]=Object.create(null))}function d(e){var t=u(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var i=function(e,t){return r.readField(t,e)},o=r.keyObject=f(e,function(e){var o=g(r.storeObject,e,i);return void 0===o&&t!==r.storeObject&&c.hasOwn.call(t,e[0])&&(o=g(t,e,m)),(0,n.invariant)(void 0!==o,5,e.join("."),t),o});return"".concat(r.typename,":").concat(JSON.stringify(o))})}function p(e){var t=u(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,o=r.variables,s=r.fieldName,l=f(e,function(e){var r=e[0],s=r.charAt(0);if("@"!==s)if("$"!==s){if(t)return g(t,e)}else{var l=r.slice(1);if(o&&c.hasOwn.call(o,l)){var u=e.slice(0);return u[0]=l,g(o,u)}}else if(n&&(0,a.isNonEmptyArray)(n.directives)){var d=r.slice(1),p=n.directives.find(function(e){return e.name.value===d}),f=p&&(0,i.argumentsObjectFromField)(p,o);return f&&g(f,e.slice(1))}}),u=JSON.stringify(l);return(t||"{}"!==u)&&(s+=":"+u),s})}function f(e,t){var r=new o.DeepMerger;return h(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function h(e){var t=u(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach(function(t,i){(0,a.isArray)(t)?(h(t).forEach(function(e){return r.push(n.concat(e))}),n.length=0):(n.push(t),(0,a.isArray)(e[i+1])||(r.push(n.slice(0)),n.length=0))})}return t.paths}function m(e,t){return e[t]}function g(e,t,r){return r=r||m,y(t.reduce(function e(t,n){return(0,a.isArray)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function y(e){return(0,s.isNonNullObject)(e)?(0,a.isArray)(e)?e.map(y):f(Object.keys(e).sort(),function(t){return g(e,t)}):e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BatchHttpLink:()=>y});var n=r(314),i=r(546),o=r(466),a=r(543),s=r(565),c=r(588),l=r(586),u=r(568),d=r(566),p=r(579),f=r(567),h=r(625),m=r(587),g=(0,o.maybe)(function(){return fetch}),y=function(e){function t(t){var r=e.call(this)||this,i=t||{},y=i.uri,v=void 0===y?"/graphql":y,b=i.fetch,_=i.print,S=void 0===_?p.defaultPrinter:_,E=i.includeExtensions,w=i.preserveHeaderCase,T=i.batchInterval,x=i.batchDebounce,O=i.batchMax,A=i.batchKey,R=i.includeUnusedVariables,P=void 0!==R&&R,I=(0,n.__rest)(i,["uri","fetch","print","includeExtensions","preserveHeaderCase","batchInterval","batchDebounce","batchMax","batchKey","includeUnusedVariables"]);var C={http:{includeExtensions:E,preserveHeaderCase:w},options:I.fetchOptions,credentials:I.credentials,headers:I.headers};r.batchDebounce=x,r.batchInterval=T||10,r.batchMax=O||10;return A=A||function(e){var t=e.getContext(),r={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:t.headers};return(0,f.selectURI)(e,v)+JSON.stringify(r)},r.batcher=new h.BatchLink({batchDebounce:r.batchDebounce,batchInterval:r.batchInterval,batchMax:r.batchMax,batchKey:A,batchHandler:function(e){var t=(0,f.selectURI)(e[0],v),r=e[0].getContext(),i={};if(r.clientAwareness){var h=r.clientAwareness,y=h.name,_=h.version;y&&(i["apollographql-client-name"]=y),_&&(i["apollographql-client-version"]=_)}var E={http:r.http,options:r.fetchOptions,credentials:r.credentials,headers:(0,n.__assign)((0,n.__assign)({},i),r.headers)};var w=e.map(function(e){var t=e.query;return(0,s.hasDirectives)(["client"],t)?(0,c.removeClientSetsFromDocument)(t):t});if(w.some(function(e){return!e}))return(0,l.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 T,x=e.map(function(e,t){var r=(0,p.selectHttpOptionsAndBodyInternal)((0,n.__assign)((0,n.__assign)({},e),{query:w[t]}),S,p.fallbackHttpConfig,C,E);return r.body.variables&&!P&&(r.body.variables=(0,m.filterOperationVariables)(r.body.variables,e.query)),r}),O=x.map(function(e){return e.body}),A=x[0].options;
1if("GET"===A.method)return(0,l.fromError)(new Error("apollo-link-batch-http does not support GET requests"));try{A.body=(0,d.serializeFetchParameter)(O,"Payload")}catch(e){return(0,l.fromError)(e)}return A.signal||"undefined"==typeof AbortController||(T=new AbortController,A.signal=T.signal),new a.Observable(function(r){return(b||(0,o.maybe)(function(){return fetch})||g)(t,A).then(function(t){return e.forEach(function(e){return e.setContext({response:t})}),t}).then((0,u.parseAndCheckHttpResponse)(e)).then(function(e){return T=void 0,r.next(e),r.complete(),e}).catch(function(e){T=void 0,e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e)}),function(){T&&T.abort()}})}}),r}return(0,n.__extends)(t,e),t.prototype.request=function(e){return this.batcher.request(e)},t}(i.ApolloLink)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BatchLink:()=>a,OperationBatcher:()=>o.OperationBatcher});var n=r(314),i=r(546),o=r(626),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,l=void 0===c?0:c,u=n.batchHandler,d=void 0===u?function(){return null}:u,p=n.batchKey,f=void 0===p?function(){return""}:p;return r.batcher=new o.OperationBatcher({batchDebounce:i,batchInterval:s,batchMax:l,batchHandler:d,batchKey:f}),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(314),i=r(543),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 l=this.batchHandler(r,n)||i.Observable.of(),u=function(e){s.forEach(function(t){t&&t.forEach(function(t){return t(e)})})};return t.subscription=l.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,u(t)}e.forEach(function(e,t){a[t]&&a[t].forEach(function(t){return t(e)})})},error:u,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,{ErrorLink:()=>c,onError:()=>s});var n=r(314),i=r(575),o=r(543),a=r(546);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,{default:()=>h});var n=r(546),i=r(629),o=r(568),a=r(585),s=r(579),c=r(567),l=r(566),u=r(543),d=r(630),p=r(632),f=r(633);function h({uri:e="/graphql",useGETForQueries:t,isExtractableFile:r=f.default,FormData:h,formDataAppendFile:m=p.default,print:g=s.defaultPrinter,fetch:y,fetchOptions:v,credentials:b,headers:_,includeExtensions:S}={}){const E={http:{includeExtensions:S},options:v,credentials:b,headers:_};return new n.ApolloLink(n=>{const p=n.getContext(),{clientAwareness:{name:f,version:v}={},headers:b}=p,_={http:p.http,options:p.fetchOptions,credentials:p.credentials,headers:{...f&&{"apollographql-client-name":f},...v&&{"apollographql-client-version":v},...b}},{options:S,body:w}=(0,s.selectHttpOptionsAndBodyInternal)(n,g,s.fallbackHttpConfig,E,_),{clone:T,files:x}=(0,d.default)(w,r,"");let O=(0,c.selectURI)(n,e);if(x.size){S.headers&&delete S.headers["content-type"];const e=new(h||FormData);e.append("operations",(0,l.serializeFetchParameter)(T,"Payload"));const t={};let r=0;
1x.forEach(e=>{t[++r]=e}),e.append("map",JSON.stringify(t)),r=0,x.forEach((t,n)=>{m(e,String(++r),n)}),S.body=e}else if(t&&!n.query.definitions.some(e=>"OperationDefinition"===e.kind&&"mutation"===e.operation)&&(S.method="GET"),"GET"===S.method){const{newURI:e,parseError:t}=(0,a.rewriteURIForGET)(O,w);if(t)return new u.Observable(e=>{e.error(t)});O=e}else S.body=(0,l.serializeFetchParameter)(T,"Payload");const{controller:A}=(0,i.createSignalIfSupported)();"boolean"!=typeof A&&(S.signal&&(S.signal.aborted?A.abort():S.signal.addEventListener("abort",()=>{A.abort()},{once:!0})),S.signal=A.signal);const R=y||fetch;return new u.Observable(e=>{let t;return R(O,S).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 A&&A.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,{default:()=>i});var n=r(631);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,l=(0,n.default)(r);if(c||l){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:()=>l});var n=r(575),i=r(546),o=r(543),a=r(635),s=r(639),c=r(641);class l extends i.ApolloLink{options;constructor(e={}){super(),this.options=(0,s.withDefaults)(e)}request(e,t){const{options:r}=this;if(!(r.shouldHandleOperation?.(e)??1))return t(e);r.setTransaction&&(0,c.setTransaction)(e),r.setFingerprint&&(0,c.setFingerprint)(e);const{attachBreadcrumbs:i}=r;if(!i)return t(e);const s=(0,a.makeBreadcrumb)(e,r);return new o.Observable(o=>{const a=t(e).subscribe({next:e=>{s.level=function(e){return e.errors&&e.errors.length>0?"error":"info"}(e),i.includeFetchResult&&(s.data.fetchResult=e),i.includeError&&e.errors&&e.errors.length>0&&(s.data.error=new n.ApolloError({graphQLErrors:e.errors})),o.next(e)},complete:()=>{(0,c.attachBreadcrumbToSentry)(e,s,r),o.complete()},error:t=>{let n;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;n=o,i.includeFetchResult&&(s.data.fetchResult=e)}else n=t;i.includeError&&(s.data.error=n),(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(636),i=r.n(n),o=r(581),a=r(638);function s(e,t){const r=t.attachBreadcrumbs,n=(0,a.extractDefinition)(e),s={},c=t.uri;c&&(s.url=c);const l=n.name?.value;l&&(s.operationName=l),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 u=r.includeContext;return u&&(s.context=function(e,t){const r={};return t.forEach(t=>{r[t]=i().get(e,t)}),r}(e.getContext(),u)),{type:"http",category:`graphql.${n.operation}`,data:s}}},(e,t,r)=>{"use strict";const n=r(637),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(640),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 l=c;e.exports=l},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_FINGERPRINT:()=>
1c,attachBreadcrumbToSentry:()=>u,setFingerprint:()=>l,setTransaction:()=>s});var n=r(401),i=r(642),o=r(638),a=r(643);function s(e){const t=(0,o.extractDefinition)(e).name;t&&(0,n.getCurrentScope)().setTransactionName(t.value)}const c="{{ default }}";function l(e){const t=(0,o.extractDefinition)(e).name;t&&(0,n.getCurrentScope)().setFingerprint([c,t.value])}function u(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";r.r(t),r.d(t,{addBreadcrumb:()=>s});var n=r(401),i=r(413),o=r(420);const a=100;function s(e,t){const r=(0,n.getClient)(),s=(0,n.getIsolationScope)();if(!r)return;const{beforeBreadcrumb:c=null,maxBreadcrumbs:l=a}=r.getOptions();if(l<=0)return;const u={timestamp:(0,o.dateTimestampInSeconds)(),...e},d=c?(0,i.consoleSandbox)(()=>c(u,t)):u;null!==d&&(r.emit&&r.emit("beforeAddBreadcrumb",d,t),s.addBreadcrumb(d,l))}},(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,{decode:()=>v,default:()=>E,encode:()=>b,toASCII:()=>S,toUnicode:()=>_,ucs2decode:()=>f,ucs2encode:()=>h});const n=2147483647,i=36,o=/^xn--/,a=/[^\0-\x7F]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},l=Math.floor,u=String.fromCharCode;function d(e){throw new RangeError(c[e])}function p(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const i=function(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}((e=e.replace(s,".")).split("."),t).join(".");return n+i}function f(e){const t=[];let r=0;const n=e.length;for(;r<n;){const i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){const n=e.charCodeAt(r++);56320==(64512&n)?t.push(((1023&i)<<10)+(1023&n)+65536):(t.push(i),r--)}else t.push(i)}return t}const h=e=>String.fromCodePoint(...e),m=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:i},g=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},y=function(e,t,r){let n=0;for(e=r?l(e/700):e>>1,e+=l(e/t);e>455;n+=i)e=l(e/35);return l(n+36*e/(e+38))},v=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&&d("not-basic"),t.push(e.charCodeAt(r));for(let u=c>0?c+1:0;u<r;){const c=o;for(let t=1,a=i;;a+=i){u>=r&&d("invalid-input");const c=m(e.charCodeAt(u++));c>=i&&d("invalid-input"),c>l((n-o)/t)&&d("overflow"),o+=c*t;const p=a<=s?1:a>=s+26?26:a-s;if(c<p)break;const f=i-p;t>l(n/f)&&d("overflow"),t*=f}const p=t.length+1;s=y(o-c,p,0==c),l(o/p)>n-a&&d("overflow"),a+=l(o/p),o%=p,t.splice(o++,0,a)}return String.fromCodePoint(...t)},b=function(e){const t=[],r=(e=f(e)).length;let o=128,a=0,s=72;for(const r of e)r<128&&t.push(u(r));const c=t.length;let p=c;for(c&&t.push("-");p<r;){let r=n;for(const t of e)t>=o&&t<r&&(r=t);const f=p+1;r-o>l((n-a)/f)&&d("overflow"),a+=(r-o)*f,o=r;for(const r of e)if(r<o&&++a>n&&d("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(u(g(n+o%a,0))),e=l(o/a)}t.push(u(g(e,0))),s=y(a,f,p===c),a=0,++p}++a,++o}return t.join("")},_=function(e){return p(e,function(e){return o.test(e)?v(e.slice(4).toLowerCase()):e})},S=function(e){return p(e,function(e){return a.test(e)?"xn--"+b(e):e})},E={version:"2.3.1",ucs2:{decode:f,encode:h},decode:v,encode:b,toASCII:S,toUnicode:_}},,(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w,disableExperimentalFragmentVariables:()=>g,disableFragmentWarnings:()=>h,enableExperimentalFragmentVariables:()=>m,gql:()=>p,resetCaches:()=>f});var n=r(314),i=r(701),o=new Map,a=new Map,s=!0,c=!1;function l(e){return e.replace(/[\s,]+/g," ").trim()}function u(e){var t=new Set,r=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=l((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 d(e){var t=l(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}(u(r)))}return o.get(t)}function p(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]}),d(n)}function f(){o.clear(),a.clear()}function h(){s=!1}function m(){c=!0}function g(){c=!1}var y,v=p,b=f,_=h,S=m,E=g;(y=p||(p={})).gql=v,y.resetCaches=b,y.disableFragmentWarnings=_,y.enableExperimentalFragmentVariables=S,y.disableExperimentalFragmentVariables=E,p.default=p;const w=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Parser:()=>g,parse:()=>d,parseConstValue:()=>f,parseSchemaCoordinate:()=>m,parseType:()=>h,parseValue:()=>p});var n=r(702),i=r(557),o=r(708),a=r(558),s=r(709),c=r(711),l=r(712),u=r(710);function d(e,t){const r=new g(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}function p(e,t){const r=new g(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 g(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 g(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseTypeReference();return r.expectToken(u.TokenKind.EOF),n}function m(e){const t=(0,l.isSource)(e)?e:new l.Source(e),r=new c.SchemaCoordinateLexer(t),n=new g(e,{lexer:r});n.expectToken(u.TokenKind.SOF);const i=n.parseSchemaCoordinate();return n.expectToken(u.TokenKind.EOF),i}class g{constructor(e,t={}){const{lexer:r,...n}=t;if(r)this._lexer=r;else{const t=(0,l.isSource)(e)?e:new l.Source(e);this._lexer=new s.Lexer(t)}this._options=n,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(e&&t.kind===u.TokenKind.BRACE_L)throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");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()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions supp
1ort descriptions.");if("extend"===t.value)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,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),r=this.parseOperationType();let n;return this.peek(u.TokenKind.NAME)&&(n=this.parseName()),this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:r,description:t,name:n,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,description:this.parseDescription(),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,t=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,description:t,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,description:t,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,`${y(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();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension()}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})}parseDirectiveDefinitionExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(u.TokenKind.AT);const t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.DIRECTIVE_EXTENSION,name:t,directives:r})}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._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:a.Kind.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,directives:i,repeatable:o,locations:s})}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)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(u.TokenKind.AT),r=this.parseName();let n,i;return!t&&this.expectOptionalToken(u.TokenKind.DOT)&&(n=this.parseName()),(t||n)&&this.expectOptionalToken(u.TokenKind.PAREN_L)&&(i=this.parseName(),this.expectToken(u.TokenKind.COLON),this.expectToken(u.TokenKind.PAREN_R)),t?i?this.node(e,{kind:a.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:i}):this.node(e,{kind:a.Kind.DIRECTIVE_COORDINATE,name:r}):n?i?this.node(e,{kind:a.Kind.ARGUMENT_COORDINATE,name:r,fieldName:n,argumentName:i}):this.node(e,{kind:a.Kind.MEMBER_COORDINATE,name:r,memberName:n}):this.node(e,{kind:a.Kind.TYPE_COORDINATE,name:r})}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 ${v(e)}, found ${y(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 ${y(t)}.`
1);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 ${y(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 y(e){const t=e.value;return v(e.kind)+(null!=t?` "${t}"`:"")}function v(e){return(0,s.isPunctuatorTokenKind)(e)?`"${e}"`:e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{syntaxError:()=>i});var n=r(703);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:()=>l,printError:()=>c});var n=r(704),i=r(705),o=r(707);class a extends Error{constructor(e,...t){var r,o,c;const{nodes:l,source:u,positions:d,path:p,originalError:f,extensions:h}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=p?p:void 0,this.originalError=null!=f?f:void 0,this.nodes=s(Array.isArray(l)?l:l?[l]: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!=u?u:null==m||null===(o=m[0])||void 0===o?void 0:o.source,this.positions=null!=d?d:null==m?void 0:m.map(e=>e.start),this.locations=d&&u?d.map(e=>(0,i.getLocation)(u,e)):null==m?void 0:m.map(e=>(0,i.getLocation)(e.source,e.start));const g=(0,n.isObjectLike)(null==f?void 0:f.extensions)?null==f?void 0:f.extensions:void 0;this.extensions=null!==(c=null!=h?h:g)&&void 0!==c?c:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.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 l(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(706);const i=/\r\n|[\n\r]/g;function o(e,t){let r=0,o=1;
1for(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(705);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,l=t.column+c,u=`${e.name}:${s}:${l}\n`,d=n.split(/\r\n|[\n\r]/g),p=d[i];if(p.length>120){const e=Math.floor(l/80),t=l%80,r=[];for(let e=0;e<p.length;e+=80)r.push(p.slice(e,e+80));return u+a([[`${s} |`,r[0]],...r.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",r[e+1]]])}return u+a([[s-1+" |",d[i-1]],[`${s} |`,p],["|","^".padStart(l)],[`${s+1} |`,d[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",e.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Lexer:()=>c,createToken:()=>m,isPunctuatorTokenKind:()=>l,printCodePointAt:()=>h,readName:()=>A});var n=r(702),i=r(557),o=r(582),a=r(583),s=r(710);class c{constructor(e){const t=new i.Token(s.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.TokenKind.EOF)do{if(e.next)e=e.next;else{const t=g(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===s.TokenKind.COMMENT);return e}}function l(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.DOT||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 u(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function d(e,t){return p(e.charCodeAt(t))&&f(e.charCodeAt(t+1))}function p(e){return e>=55296&&e<=56319}function f(e){return e>=56320&&e<=57343}function h(e,t){const r=e.source.body.codePointAt(t);if(void 0===r)return s.TokenKind.EOF;
vendor: 5,567 bytes, line 1
1if(r>=32&&r<=126){const e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,r,n,o){const a=e.line,s=1+r-e.lineStart;return new i.Token(t,r,n,a,s,o)}function g(e,t){const r=e.source.body,i=r.length;let o=t;for(;o<i;){const t=r.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return y(e,o);case 33:return m(e,s.TokenKind.BANG,o,o+1);case 36:return m(e,s.TokenKind.DOLLAR,o,o+1);case 38:return m(e,s.TokenKind.AMP,o,o+1);case 40:return m(e,s.TokenKind.PAREN_L,o,o+1);case 41:return m(e,s.TokenKind.PAREN_R,o,o+1);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return m(e,s.TokenKind.SPREAD,o,o+3);break;case 58:return m(e,s.TokenKind.COLON,o,o+1);case 61:return m(e,s.TokenKind.EQUALS,o,o+1);case 64:return m(e,s.TokenKind.AT,o,o+1);case 91:return m(e,s.TokenKind.BRACKET_L,o,o+1);case 93:return m(e,s.TokenKind.BRACKET_R,o,o+1);case 123:return m(e,s.TokenKind.BRACE_L,o,o+1);case 124:return m(e,s.TokenKind.PIPE,o,o+1);case 125:return m(e,s.TokenKind.BRACE_R,o,o+1);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?O(e,o):_(e,o)}if((0,a.isDigit)(t)||45===t)return v(e,o,t);if((0,a.isNameStart)(t))return A(e,o);throw(0,n.syntaxError)(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":u(t)||d(r,o)?`Unexpected character: ${h(e,o)}.`:`Invalid character: ${h(e,o)}.`)}return m(e,s.TokenKind.EOF,i,i)}function y(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){const e=r.charCodeAt(i);if(10===e||13===e)break;if(u(e))++i;else{if(!d(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,l=!1;if(45===c&&(c=i.charCodeAt(++o)),48===c){if(c=i.charCodeAt(++o),(0,a.isDigit)(c))throw(0,n.syntaxError)(e.source,o,`Invalid number, unexpected digit after 0: ${h(e,o)}.`)}else o=b(e,o,c),c=i.charCodeAt(o);if(46===c&&(l=!0,c=i.charCodeAt(++o),o=b(e,o,c),c=i.charCodeAt(o)),69!==c&&101!==c||(l=!0,c=i.charCodeAt(++o),43!==c&&45!==c||(c=i.charCodeAt(++o)),o=b(e,o,c),c=i.charCodeAt(o)),46===c||(0,a.isNameStart)(c))throw(0,n.syntaxError)(e.source,o,`Invalid number, expected digit but got: ${h(e,o)}.`);return m(e,l?s.TokenKind.FLOAT:s.TokenKind.INT,t,o,i.slice(t,o))}function b(e,t,r){if(!(0,a.isDigit)(r))throw(0,n.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${h(e,t)}.`);const i=e.source.body;let o=t+1;for(;(0,a.isDigit)(i.charCodeAt(o));)++o;return o}function _(e,t){const r=e.source.body,i=r.length;let o=t+1,a=o,c="";for(;o<i;){const i=r.charCodeAt(o);if(34===i)return c+=r.slice(a,o),m(e,s.TokenKind.STRING,t,o+1,c);if(92===i){c+=r.slice(a,o);const t=117===r.charCodeAt(o+1)?123===r.charCodeAt(o+2)?S(e,o):E(e,o):x(e,o);c+=t.value,o+=t.size,a=o;continue}if(10===i||13===i)break;if(u(i))++o;else{if(!d(r,o))throw(0,n.syntaxError)(e.source,o,`Invalid character within String: ${h(e,o)}.`);o+=2}}throw(0,n.syntaxError)(e.source,o,"Unterminated string.")}function S(e,t){const r=e.source.body;let i=0,o=3;for(;o<12;){const e=r.charCodeAt(t+o++);if(125===e){if(o<5||!u(i))break;return{value:String.fromCodePoint(i),size:o}}if(i=i<<4|T(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(u(i))return{value:String.fromCodePoint(i),size:6};if(p(i)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){const e=w(r,t+8);if(f(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 T(e.charCodeAt(t))<<12|T(e.charCodeAt(t+1))<<8|T(e.charCodeAt(t+2))<<4|T(e.charCodeAt(t+3))}function T(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function x(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,n.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function O(e,t){const r=e.source.body,i=r.length;let a=e.lineStart,c=t+3,l=c,p="";const f=[];for(;c<i;){const i=r.charCodeAt(c);if(34===i&&34===r.charCodeAt(c+1)&&34===r.charCodeAt(c+2)){p+=r.slice(l,c),f.push(p);const n=m(e,s.TokenKind.BLOCK_STRING,t,c+3,(0,o.dedentBlockStringLines)(f).join("\n"));return e.line+=f.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(u(i))++c;else{if(!d(r,c))throw(0,n.syntaxError)(e.source,c,`Invalid character within String: ${h(e,c)}.`);c+=2}else p+=r.slice(l,c),f.push(p),13===i&&10===r.charCodeAt(c+1)?c+=2:++c,p="",l=c,a=c;else p+=r.slice(l,c),l=c+1,c+=4}throw(0,n.syntaxError)(e.source,c,"Unterminated string.")}function A(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.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}
1",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,{SchemaCoordinateLexer:()=>c});var n=r(702),i=r(557),o=r(583),a=r(709),s=r(710);class c{line=1;lineStart=0;constructor(e){const t=new i.Token(s.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t}get[Symbol.toStringTag](){return"SchemaCoordinateLexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.TokenKind.EOF){const t=function(e,t){const r=e.source.body,i=r.length,c=t;if(c<i){const t=r.charCodeAt(c);switch(t){case 46:return(0,a.createToken)(e,s.TokenKind.DOT,c,c+1);case 40:return(0,a.createToken)(e,s.TokenKind.PAREN_L,c,c+1);case 41:return(0,a.createToken)(e,s.TokenKind.PAREN_R,c,c+1);case 58:return(0,a.createToken)(e,s.TokenKind.COLON,c,c+1);case 64:return(0,a.createToken)(e,s.TokenKind.AT,c,c+1)}if((0,o.isNameStart)(t))return(0,a.readName)(e,c);throw(0,n.syntaxError)(e.source,c,`Invalid character: ${(0,a.printCodePointAt)(e,c)}.`)}return(0,a.createToken)(e,s.TokenKind.EOF,i,i)}(this,e.end);e.next=t,t.prev=e,e=t}return e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Source:()=>a,isSource:()=>s});var n=r(555),i=r(556),o=r(713);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(556);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,{Action:()=>f,Await:()=>Ln,AwaitContextProvider:()=>vr,BrowserRouter:()=>aa,CRITICAL_CSS_DATA_ATTRIBUTE:()=>Ho,DataRouterContext:()=>dr,DataRouterStateContext:()=>pr,ENABLE_DEV_WARNINGS:()=>wr,ErrorResponseImpl:()=>_e,FetchersContext:()=>gr,Form:()=>da,FrameworkContext:()=>Fo,HashRouter:()=>sa,HistoryRouter:()=>ca,IDLE_BLOCKER:()=>We,IDLE_FETCHER:()=>qe,IDLE_NAVIGATION:()=>$e,Link:()=>la,Links:()=>zo,LocationContext:()=>_r,MemoryRouter:()=>In,Meta:()=>Wo,NO_BODY_STATUS_CODES:()=>Wi,NavLink:()=>ua,Navigate:()=>Cn,NavigationContext:()=>br,Outlet:()=>kn,PROTOCOL_RELATIVE_URL_REGEX:()=>u,PrefetchPageLinks:()=>Vo,RSCRouterContext:()=>fr,RemixErrorBoundary:()=>Xo,Route:()=>Mn,RouteContext:()=>Sr,Router:()=>Dn,RouterContextProvider:()=>R,RouterProvider:()=>On,Routes:()=>Nn,SINGLE_FETCH_REDIRECT_STATUS:()=>qi,Scripts:()=>Jo,ScrollRestoration:()=>pa,SingleFetchRedirectSymbol:()=>Gi,StaticRouter:()=>Ca,StaticRouterProvider:()=>ka,StreamTransfer:()=>Ki,URL_LIMIT:()=>Ao,ViewTransitionContext:()=>mr,WithComponentProps:()=>Vn,WithErrorBoundaryProps:()=>Yn,WithHydrateFallbackProps:()=>qn,convertRoutesToDataRoutes:()=>k,createBrowserHistory:()=>y,createBrowserRouter:()=>ra,createClientRoutes:()=>_o,createClientRoutesWithHMRRevalidationOptOut:()=>yo,createContext:()=>A,createHashHistory:()=>v,createHashRouter:()=>na,createMemoryHistory:()=>g,createMemoryRouter:()=>Tn,createPath:()=>w,createRequestInit:()=>Bi,createRouter:()=>Xe,createRoutesFromChildren:()=>jn,createRoutesFromElements:()=>Un,createSearchParams:()=>ei,createServerRoutes:()=>go,createStaticHandler:()=>Ze,createStaticHandler2:()=>Na,createStaticRouter:()=>La,data:()=>me,decodeRedirectErrorDigest:()=>Ar,decodeRouteErrorResponseDigest:()=>Rr,decodeViaTurboStream:()=>eo,encode:()=>Fi,escapeHtml:()=>Hi,generatePath:()=>Y,getManifestPath:()=>ko,getPatchRoutesOnNavigationFunction:()=>Io,getPathsWithAncestors:()=>Ro,getSingleFetchDataStrategyImpl:()=>Ji,getStaticContextFromError:()=>et,getTurboStreamSingleFetchDataStrategy:()=>Yi,hasInvalidProtocol:()=>It,hydrationRouteProperties:()=>wn,instrumentHandler:()=>Ae,invariant:()=>b,isDataWithResponseInit:()=>Xt,isMutationMethod:()=>nr,isRedirectResponse:()=>tr,isRedirectStatusCode:()=>er,isResponse:()=>Zt,isRouteErrorResponse:()=>Se,mapRouteProperties:()=>En,matchPath:()=>J,matchRoutes:()=>D,matchRoutesImpl:()=>N,noActionDefinedError:()=>bo,parsePath:()=>T,redirect:()=>ge,redirectDocument:()=>ye,renderMatches:()=>Hn,replace:()=>ve,resolvePath:()=>re,setIsHydrated:()=>Yo,shouldHydrateRouteLoader:()=>wo,singleFetchUrl:()=>Xi,stripBasename:()=>ee,stripIndexParam:()=>Qi,useActionData:()=>sn,useAsyncError:()=>un,useAsyncValue:()=>ln,useBeforeUnload:()=>Ra,useBlocker:()=>pn,useFetcher:()=>Ea,useFetchers:()=>wa,useFogOFWarDiscovery:()=>Co,useFormAction:()=>Sa,useHref:()=>Pr,useInRouterContext:()=>Ir,useLinkClickHandler:()=>ga,useLoaderData:()=>on,useLocation:()=>Cr,useMatch:()=>Mr,useMatches:()=>nn,useNavigate:()=>Lr,useNavigation:()=>tn,useNavigationType:()=>kr,useOutlet:()=>jr,useOutletContext:()=>Br,useParams:()=>Ur,usePrompt:()=>Pa,useResolvedPath:()=>Hr,useRevalidator:()=>rn,useRoute:()=>mn,useRouteError:()=>cn,useRouteLoaderData:()=>an,useRouterState:()=>yn,useRoutes:()=>zr,useScrollRestoration:()=>Aa,useSearchParams:()=>ya,useSubmit:()=>_a,useViewTransitionState:()=>Ia,warnOnce:()=>bn,withComponentProps:()=>Gn,withErrorBoundaryProps:()=>Jn,withHydrateFallbackProps:()=>Wn});var n=r(396),i=e=>{throw TypeError(e)},o=(e,t,r)=>t.has(e)||i("Cannot "+r),a=(e,t,r)=>(o(e,t,"read from private field"),r?r.call(e):t.get(e)),s=(e,t,r)=>t.has(e)?i("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),c=(e,t,r,n)=>(o(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),l=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,u=/^[\\/]{2}/;
2/**
3 * react-router v7.18.1
4 *
5 * Copyright (c) Remix Software Inc.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE.md file in the root directory of this source tree.
9 *
10 * @license MIT
11 */function d(e,t){return t+e.replace(/\\/g,"/")}var p,f=(e=>(e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE",e))(f||{}),h="popstate";function m(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function g(e={}){let t,{initialEntries:r=["/"],initialIndex:n,v5Compat:i=!1}=e;t=r.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0,"string"==typeof e?void 0:e.mask));let o=c(n??t.length-1),a="POP",s=null;function c(e){return Math.min(Math.max(e,0),t.length-1)}function l(){return t[o]}function u(e,r=null,n,i){let o=E(t?l().pathname:"/",e,r,n,i);return _("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function d(e){return"string"==typeof e?e:w(e)}return{get index(){return o},get action(){return a},get location(){return l()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?T(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){a="PUSH";let n=m(e)?e:u(e,r);o+=1,t.splice(o,t.length,n),i&&s&&s({action:a,location:n,delta:1})},replace(e,r){a="REPLACE";let n=m(e)?e:u(e,r);t[o]=n,i&&s&&s({action:a,location:n,delta:0})},go(e){a="POP";let r=c(o+e),n=t[r];o=r,s&&s({action:a,location:n,delta:e})},listen:e=>(s=e,()=>{s=null})}}function y(e={}){return x(function(e,t){let r=t.state?.masked,{pathname:n,search:i,hash:o}=r||e.location;return E("",{pathname:n,search:i,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default",r?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)},function(e,t){return"string"==typeof t?t:w(t)},null,e)}function v(e={}){return x(function(e,t){let{pathname:r="/",search:n="",hash:i=""}=T(e.location.hash.substring(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),E("",{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:w(t))},function(e,t){_("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function b(e,t){if(!1===e||null==e)throw new Error(t)}function _(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function S(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function E(e,t,r=null,n,i){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?T(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10),mask:i}}function w({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"
11===r.charAt(0)?r:"#"+r),e}function T(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function x(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s="POP",c=null,l=u();function u(){return(a.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-l;l=e,c&&c({action:s,location:f.location,delta:t})}function p(e){return O(i,e)}null==l&&(l=0,a.replaceState({...a.state,idx:l},""));let f={get action(){return s},get location(){return e(i,a)},listen(e){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(h,d),c=e,()=>{i.removeEventListener(h,d),c=null}},createHref:e=>t(i,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let n=m(e)?e:E(f.location,e,t);r&&r(n,e),l=u()+1;let d=S(n,l),p=f.createHref(n.mask||n);try{a.pushState(d,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;i.location.assign(p)}o&&c&&c({action:s,location:f.location,delta:1})},replace:function(e,t){s="REPLACE";let n=m(e)?e:E(f.location,e,t);r&&r(n,e),l=u();let i=S(n,l),d=f.createHref(n.mask||n);a.replaceState(i,"",d),o&&c&&c({action:s,location:f.location,delta:0})},go:e=>a.go(e)};return f}function O(e,t,r=!1){let n="http://localhost";e&&(n="null"!==e.location.origin?e.location.origin:e.location.href),b(n,"No window.location.(origin|href) available to create URL");let i="string"==typeof t?t:w(t);return i=i.replace(/ $/,"%20"),!r&&u.test(i)&&(i=n+i),new URL(i,n)}function A(e){return{defaultValue:e}}var R=class{constructor(e){if(s(this,p,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if(a(this,p).has(e))return a(this,p).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){a(this,p).set(e,t)}};p=new WeakMap;var P=new Set(["lazy","caseSensitive","path","id","index","children"]);var I=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function C(e){return I.has(e)}function k(e,t,r=[],n={},i=!1){return e.map((e,o)=>{let a=[...r,String(o)],s="string"==typeof e.id?e.id:a.join("-");if(b(!0!==e.index||!e.children,"Cannot specify children on an index route"),b(i||!n[s],`Found a route id collision on i
11d "${s}".  Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let r={...e,id:s};return n[s]=M(r,t(r)),r}{let r={...e,id:s,children:void 0};return n[s]=M(r,t(r)),e.children&&(r.children=k(e.children,t,a,n,i)),r}})}function M(e,t){return Object.assign(e,{...t,..."object"==typeof t.lazy&&null!=t.lazy?{lazy:{...e.lazy,...t.lazy}}:{}})}function D(e,t,r="/"){return N(e,t,r,!1)}function N(e,t,r,n,i){let o=ee(("string"==typeof t?T(t):t).pathname||"/",r);if(null==o)return null;let a=i??F(e),s=null,c=Z(o);for(let e=0;null==s&&e<a.length;++e)s=K(a[e],c,n);return s}function L(e,t){let{route:r,pathname:n,params:i}=e;return{id:r.id,pathname:n,params:i,data:t[r.id],loaderData:t[r.id],handle:r.handle}}function F(e){let t=B(e);return 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)))}(t),t}function B(e,t=[],r=[],n="",i=!1){let o=(e,o,a=i,s)=>{let c={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(n)&&a)return;b(c.relativePath.startsWith(n),`Absolute route path "${c.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(n.length)}let l=le([n,c.relativePath]),u=r.concat(c);e.children&&e.children.length>0&&(b(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),B(e.children,t,u,l,a)),(null!=e.path||e.index)&&t.push({path:l,score:W(l,e.index),routesMeta:u.map((e,t)=>{let[r,n]=X(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:r,compiledParams:n}})})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of j(e.path))o(e,t,!0,r);else o(e,t)}),t}function j(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=j(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)}var U=/^:[\w-]+$/,H=3,z=2,V=1,G=10,$=-2,q=e=>"*"===e;function W(e,t){let r=e.split("/"),n=r.length;return r.some(q)&&(n+=$),t&&(n+=z),r.filter(e=>!q(e)).reduce((e,t)=>e+(U.test(t)?H:""===t?V:G),n)}function K(e,t,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,l="/"===o?t:t.slice(o.length)||"/",u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Q(u,l,s.matcher,s.compiledParams):J(u,l),p=s.route;if(!d&&c&&r&&!n[n.length-1].route.index&&(d=J({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;
11Object.assign(i,d.params),a.push({params:i,pathname:le([o,d.pathname]),pathnameBase:de(le([o,d.pathnameBase])),route:p}),"/"!==d.pathnameBase&&(o=le([o,d.pathnameBase]))}return a}function Y(e,t={}){let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(_(!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,n]=o;let a=t[e];return b("?"===r||null!=a,`Missing ":${e}" param`),encodeURIComponent(i(a))+n}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function J(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=X(e.path,e.caseSensitive,e.end);return Q(e,t,r,n)}function Q(e,t,r,n){let i=t.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=s[n]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const i=s[n];return e[t]=r&&!i?void 0:(i||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:a,pattern:e}}function X(e,t=!1,r=!0){_("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r,i,o)=>{if(n.push({paramName:t,isOptional:null!=r}),r){let t=o.charAt(i+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function Z(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return _(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ee(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}var te=e=>l.test(e);function re(e,t="/"){let r,{pathname:n,search:i="",hash:o=""}="string"==typeof e?T(e):e;return n?(n=ce(n),r=n.startsWith("/")?ne(n.substring(1),"/"):ne(n,t)):r=t,{pathname:r,search:pe(i),hash:fe(o)}}function ne(e,t){let r=ue(t).split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function ie(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 oe(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function ae(e){let t=oe(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function se(e,t,r,n=!1){let i;"string"==typeof e?i=T(e):(i={...e},b(!i.pathname||!i.pathname.includes("?"),ie("?","pathname","search",i)),b(!i.pathname||!i.pathname.includes("#"),ie("#","pathname","hash",i)),b(!i.search||!i.search.includes("#"),ie("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=re(i,o),l=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&r.endsWith("/");return c.pathname.endsWith("/")||!l&&!u||(c.pathname+="/"),c}var ce=e=>e.replace(/[\\/]{2,}/g,"/"),le=e=>ce(e.join("/")),ue=e=>e.replace(/\/+$/,""),de=e=>ue(e).replace(/^\/*/,"/"),pe=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",fe=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",he=class{constructor(e,t){this.type="DataWithResponseInit",this.data=e,this.init=t||null}};function me(e,t){return new he(e,"number"==typeof t?{status:t}:t)}var ge=(e,t=302)=>{let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,{...r,headers:n})},ye=(e,t)=>{let r=ge(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},ve=(e,t)=>
11{let r=ge(e,t);return r.headers.set("X-Remix-Replace","true"),r},be=["EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],_e=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Se(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function Ee(e){let t=e.map(e=>e.route.path).filter(Boolean);return le(t)||"/"}var we="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Te(e,t){let r=e;if("string"!=typeof r||!l.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,i=!1;if(we)try{let e=new URL(window.location.href),n=u.test(r)?new URL(d(r,e.protocol)):new URL(r),o=ee(n.pathname,t);n.origin===e.origin&&null!=o?r=o+n.search+n.hash:i=!0}catch(e){_(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:i,to:r}}var xe=Symbol("Uninstrumented");function Oe(e,t){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(r);for(let n of t)e[n]&&r[n].push(e[n])}}));let n={};if("function"==typeof t.lazy&&r.lazy.length>0){let e=Re(r.lazy,t.lazy,()=>{});e&&(n.lazy=e)}if("object"==typeof t.lazy){let e=t.lazy;["middleware","loader","action"].forEach(t=>{let i=e[t],o=r[`lazy.${t}`];if("function"==typeof i&&o.length>0){let e=Re(o,i,()=>{});e&&(n.lazy=Object.assign(n.lazy||{},{[t]:e}))}})}return["loader","action"].forEach(e=>{let i=t[e];if("function"==typeof i&&r[e].length>0){let t=i[xe]??i,o=Re(r[e],t,(...e)=>Ie(e[0]));o&&("loader"===e&&!0===t.hydrate&&(o.hydrate=!0),o[xe]=t,n[e]=o)}}),t.middleware&&t.middleware.length>0&&r.middleware.length>0&&(n.middleware=t.middleware.map(e=>{let t=e[xe]??e,n=Re(r.middleware,t,(...e)=>Ie(e[0]));return n?(n[xe]=t,n):e})),n}function Ae(e,t){let r={request:[]};t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let n of t)e[n]&&r[n].push(e[n])}}));let n=e;return r.request.length>0&&(n=Re(r.request,e,(...e)=>{let[t,r]=e;return{request:ke(t),context:null!=r?Me(r):r}})),n}function Re(e,t,r){return 0===e.length?null:async(...n)=>{let i=await Pe(e,r(...n),()=>t(...n),e.length-1);if("error"===i.type)throw i.value;return i.value}}async function Pe(e,t,r,n){let i,o=e[n];if(o){let a,s=async()=>(a?console.error("You cannot call instrumented handlers more than once"):a=Pe(e,t,r,n-1),i=await a,b(i,"Expected a result"),"error"===i.type&&i.value instanceof Error?{status:"error",error:i.value}:{status:"success",error:void 0});try{await o(s,t)}catch(e){console.error("An instrumentation function threw an error:",e)}a||await s(),await a}else try{let e=await r();i={type:"success",value:e}}catch(e){i={type:"error",value:e}}return i||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function Ie(e){let{request:t,context:r,params:n,pattern:i}=e;return{request:ke(t),params:{...n},pattern:i,context:Me(r)}}function Ce(e,t){return{currentUrl:w(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function ke(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function Me(e){if(function(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t||Object.getOwnPropertyNames(t).sort().join("\0")===De}(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var De=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ne,Le,Fe,Be,je=["POST","PUT","PATCH","DELETE"],Ue=new Set(je),He=["GET",...je],ze=new Set(He),Ve=new Set([301,302,303,307,308]),Ge=new Set([307,308]),$e={state:"idle",location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},qe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},We={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Ke=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),Ye="remix-router-transitions",Je=Symbol("ResetLoaderData"),Qe=class{constructor(e){s(this,Ne),s(this,Le),s(this,Fe),s(this,Be),c(this,Ne,e),c(this,Le,F(e))}get stableRoutes(){return a(this,Ne)}get activeRoutes(){return a(this,Fe)??a(this,Ne)}get branches(){return a(this,Be)??a(this,Le)}get hasHMRRoutes(){return null!=a(this,Fe)}setRoutes(e){c(this,Ne,e),c(this,Le,F(e))}setHmrRoutes(e){c(this,Fe,e),c(this,Be,F(e))}commitHmrRoutes(){a(this,Fe)&&(c(this,Ne,a(this,Fe)),c(this,Le,a(this,Be)),c(this,Fe,void 0),c(this,Be,void 0))}};function Xe(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;b(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let n=e.hydrationRouteProperties||[],i=e.mapRouteProperties||Ke,o=i;if(e.instrumentations){let t=e.instrumentations;o=e=>({...i(e),...Oe(t.map(e=>
11e.route).filter(Boolean),e)})}let a={},s=new Qe(k(e.routes,o,void 0,a)),c=e.basename||"/";c.startsWith("/")||(c=`/${c}`);let l,u,d,p=e.dataStrategy||yt,f={...e.future},h=null,m=new Set,g=null,y=null,v=null,S=null,x=null!=e.hydrationData,A=N(s.activeRoutes,e.history.location,c,!1,s.branches),P=!1,I=null;if(null!=A||e.patchRoutesOnNavigation){if(A&&!e.hydrationData){Pe(A,s.activeRoutes,e.history.location.pathname).active&&(A=null)}if(A)if(A.some(e=>e.route.lazy))l=!1,u=!l;else if(A.some(e=>at(e.route))){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null,n=A;if(r){let e=A.findIndex(e=>void 0!==r[e.route.id]);n=n.slice(0,e+1)}u=!1,l=!0,n.forEach(e=>{let n=st(e.route,t,r);u=u||n.renderFallback,l=l&&!n.shouldLoad})}else l=!0,u=!l;else{l=!1,u=!l,A=[];let t=Pe(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(P=!0,A=t.matches)}}else{let t=zt(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=Ht(s.activeRoutes);l=!0,u=!l,A=r,I={[n.id]:t}}let C,M,D={historyAction:e.history.action,location:e.history.location,matches:A,initialized:l,renderFallback:u,navigation:$e,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},F="POP",B=null,j=!1,U=!1,H=new Map,z=null,V=!1,G=!1,$=new Set,q=new Map,W=0,K=-1,Y=new Map,J=new Set,Q=new Map,X=new Map,Z=new Set,re=new Map,ne=null;function ie(e,t={}){e.matches&&(e.matches=e.matches.map(e=>{let t=a[e.route.id],r=e.route;return r.element!==t.element||r.errorElement!==t.errorElement||r.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e})),D={...D,...e};let r=[],n=[];D.fetchers.forEach((e,t)=>{"idle"===e.state&&(Z.has(t)?r.push(t):n.push(t))}),Z.forEach(e=>{D.fetchers.has(e)||q.has(e)||r.push(e)}),0===m.size&&(g={newErrors:e.errors??null}),[...m].forEach(n=>n(D,{deletedFetchers:r,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),r.forEach(e=>he(D.fetchers,e)),n.forEach(e=>D.fetchers.delete(e))}function oe(t,r,{flushSync:n}={}){let i,o=null!=D.actionData&&null!=D.navigation.formMethod&&nr(D.navigation.formMethod)&&"loading"===D.navigation.state&&!0!==t.state?._isRedirect;i=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:o?D.actionData:null;let a=r.loaderData?Bt(D.loaderData,r.loaderData,r.matches||[],r.errors):D.loaderData,c=D.blockers;c.size>0&&(c=new Map(c),c.forEach((e,t)=>c.set(t,We)));let l,u=!V&&Ae(t,r.matches||D.matches),d=!0===j||null!=D.navigation.formMethod&&nr(D.navigation.formMethod)&&!0!==t.state?._isRedirect;if(s.commitHmrRoutes(),V||"POP"===F||("PUSH"===F?e.history.push(t,t.state):"REPLACE"===F&&e.history.replace(t,t.state)),"POP"===F){let e=H.get(D.location.pathname);e&&e.has(t.pathname)?l={currentLocation:D.location,nextLocation:t}:H.has(t.pathname)&&(l={currentLocation:t,nextLocation:D.location})}else if(U){let e=H.get(D.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),H.set(D.location.pathname,e)),l={currentLocation:D.location,nextLocation:t}}ie({...r,actionData:i,loaderData:a,historyAction:F,location:t,initialized:!0,renderFallback:!1,navigation:$e,revalidation:"idle",restoreScrollPosition:u,preventScrollReset:d,blockers:c},{viewTransitionOpts:l,flushSync:!0===n}),F="POP",j=!1,U=!1,V=!1,G=!1,B?.resolve(),B=null,ne?.resolve(),ne=null}async function ae(t,r,i){C&&C.abort(),C=null,F=t,V=!0===(i&&i.startUninterruptedRevalidation),function(e,t){if(y&&S){let r=Te(e,t);y[r]=S()}}(D.location,D.matches),j=!0===(i&&i.preventScrollReset),U=!0===(i&&i.enableViewTransition);let l=s.activeRoutes,u=i?.initialHydration&&D.matches&&D.matches.length>0&&!P?D.matches:N(l,r,c,!1,s.branches),d=!0===(i&&i.flushSync);if(u&&D.initialized&&!G&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(D.location,r)&&!(i&&i.submission&&nr(i.submission.formMethod)))return void oe(r,{matches:u},{flushSync:d});let p=Pe(u,l,r.pathname);if(p.active&&p.matches&&(u=p.matches),!u){let{error:e,notFoundMatches:t,route:n}=we(r.pathname);return void oe(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:d})}let f=i&&i.overrideNavigation?{...i.overrideNavigation,matches:u,historyAction:t}:void 0;C=new AbortController;let h,m=kt(e.history,r,C.signal,i&&i.submission),g=e.getContext?await e.getContext():new R;if(i&&i.pendingError)h=[Ut(u).route.id,{type:"error",error:i.pendingError}];else if(i&&i.submission&&nr(i.submission.formMethod)){let l=await async function(t,r,i,l,u,d,p,f,h={}){de();let m,g=function(e,t,r,n){let i={state:"submitting",location:e,matches:t,historyAction:r,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text};return i}(r,l,u,i);if(ie({navigation:g},{flushSync:!0===h.flushSync}),p){let e=await Ie(l,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:r}=Ht(s.activeRoutes);
11return{matches:t,pendingActionResult:[r.id,{type:"error",error:e.error}]}}let t=Ut(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:"error",error:e.error}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:n}=we(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:"error",error:t}]}}l=e.matches}let y=or(l,r);if(y.route.action||y.route.lazy){let e=Tt(o,a,t,r,l,y,f?[]:n,d),i=await le(t,r,e,d,null);if(m=i[y.route.id],!m)for(let e of l)if(i[e.route.id]){m=i[e.route.id];break}if(t.signal.aborted)return{shortCircuited:!0}}else m={type:"error",error:zt(405,{method:t.method,pathname:r.pathname,routeId:y.route.id})};if(Qt(m)){let r;if(h&&null!=h.replace)r=h.replace;else{r=Ct(m.response.headers.get("Location"),new URL(t.url),c,e.history)===D.location.pathname+D.location.search}return await ce(t,m,!0,{submission:i,replace:r}),{shortCircuited:!0}}if(Jt(m)){let e=Ut(l,y.route.id);return!0!==(h&&h.replace)&&(F="PUSH"),{matches:l,pendingActionResult:[e.route.id,m,y.route.id]}}return{matches:l,pendingActionResult:[y.route.id,m]}}(m,r,i.submission,u,t,g,p.active,i&&!0===i.initialHydration,{replace:i.replace,flushSync:d});if(l.shortCircuited)return;if(l.pendingActionResult){let[e,t]=l.pendingActionResult;if(Jt(t)&&Se(t.error)&&404===t.error.status)return C=null,void oe(r,{matches:l.matches,loaderData:{},errors:{[e]:t.error}})}u=l.matches||u,h=l.pendingActionResult,f=sr(r,u,t,i.submission),d=!1,p.active=!1,m=kt(e.history,m.url,m.signal)}let{shortCircuited:v,matches:b,loaderData:_,errors:E,workingFetchers:w}=await async function(t,r,i,l,u,d,p,f,h,m,g,y,v,b){let _=p||sr(r,i,l,f),S=f||h||ar(_),E=!V&&!g;if(d){if(E){let e=se(v);ie({navigation:_,...void 0!==e?{actionData:e}:{}},{flushSync:y})}let e=await Ie(i,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:r}=Ht(s.activeRoutes);return{matches:t,loaderData:{},errors:{[r.id]:e.error}}}let t=Ut(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:n}=we(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}i=e.matches}let w=s.activeRoutes,{dsMatches:T,revalidatingFetchers:x}
11=ot(t,u,o,a,e.history,D,i,S,r,g?[]:n,!0===g,G,$,Z,Q,J,w,c,null!=e.patchRoutesOnNavigation,s.branches,v,b);if(K=++W,!e.dataStrategy&&!T.some(e=>e.shouldLoad)&&!T.some(e=>e.route.middleware&&e.route.middleware.length>0)&&0===x.length){let e=new Map(D.fetchers),t=ye(e);return oe(r,{matches:i,loaderData:{},errors:v&&Jt(v[1])?{[v[0]]:v[1].error}:null,...jt(v),...t?{fetchers:e}:{}},{flushSync:y}),{shortCircuited:!0}}if(E){let e={};if(!d){e.navigation=_;let t=se(v);void 0!==t&&(e.actionData=t)}x.length>0&&(e.fetchers=function(e){let t=new Map(D.fetchers);return e.forEach(e=>{let r=t.get(e.key),n=cr(void 0,r?r.data:void 0);t.set(e.key,n)}),t}(x)),ie(e,{flushSync:y})}x.forEach(e=>{me(e.key),e.controller&&q.set(e.key,e.controller)});let O=()=>x.forEach(e=>me(e.key));C&&C.signal.addEventListener("abort",O);let{loaderResults:A,fetcherResults:R}=await ue(T,x,t,r,u);if(t.signal.aborted)return{shortCircuited:!0};C&&C.signal.removeEventListener("abort",O);x.forEach(e=>q.delete(e.key));let P=Vt(A);if(P)return await ce(t,P.result,!0,{replace:m}),{shortCircuited:!0};if(P=Vt(R),P)return J.add(P.key),await ce(t,P.result,!0,{replace:m}),{shortCircuited:!0};let I=new Map(D.fetchers),{loaderData:k,errors:M}=Ft(D,i,A,v,x,R,I);g&&D.errors&&(M={...D.errors,...M});let N=ye(I),L=ve(K,I),F=N||L||x.length>0;return{matches:i,loaderData:k,errors:M,...F?{workingFetchers:I}:{}}}(m,r,u,t,g,p.active,f,i&&i.submission,i&&i.fetcherSubmission,i&&i.replace,i&&!0===i.initialHydration,d,h,i&&i.callSiteDefaultShouldRevalidate);v||(C=null,oe(r,{matches:b||u,...jt(h),loaderData:_,errors:E,...w?{fetchers:w}:{}}))}function se(e){return e&&!Jt(e[1])?{[e[0]]:e[1].data}:D.actionData?0===Object.keys(D.actionData).length?null:D.actionData:void 0}async function ce(n,i,o,{submission:a,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){o||(B?.resolve(),B=null),i.response.headers.has("X-Remix-Revalidate")&&(G=!0);let d=i.response.headers.get("Location");b(d,"Expected a Location header on the redirect Response"),d=Ct(d,new URL(n.url),c,e.history);let p=E(D.location,d,{_isRedirect:!0});if(r){let e=!1;if(i.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(te(d)){const r=O(t,d,!0);e=r.origin!==t.location.origin||null==ee(r.pathname,c)}if(e)return void(u?t.location.replace(d):t.location.assign(d))}C=null;let f=!0===u||i.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:h,formAction:m,formEncType:g}=D.navigation;!a&&!s&&h&&m&&g&&(a=ar(D.navigation));let y=a||s;if(Ge.has(i.response.status)&&y&&nr(y.formMethod))await ae(f,p,{submission:{...y,formAction:d},preventScrollReset:l||j,enableViewTransition:o?U:void 0});else{let e=sr(p,[],f,a);await ae(f,p,{overrideNavigation:e,fetcherSubmission:s,preventScrollReset:l||j,enableViewTransition:o?U:void 0})}}async function le(e,t,r,n,i){let o,a={};try{o=await xt(p,e,t,r,i,n,!1)}catch(e){return r.filter(e=>e.shouldLoad).forEach(t=>{a[t.route.id]={type:"error",error:e}}),a}if(e.signal.aborted)return a;if(!nr(e.method))for(let e of r){if("error"===o[e.route.id]?.type)break;o.hasOwnProperty(e.route.id)||D.loaderData.hasOwnProperty(e.route.id)||D.errors&&D.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(o[e.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,n]of Object.entries(o))if(Yt(n)){let i=n.result;a[t]={type:"redirect",response:Rt(i,e,t,r,c)}}else a[t]=await At(n);return a}async function ue(e,t,r,n,i){let o=le(r,n,e,i,null),a=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await le(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:zt(404,{pathname:e.path})}})}));return{loaderResults:await o,fetcherResults:(await a).reduce((e,t)=>Object.assign(e,t),{})}}function de(){G=!0,Q.forEach((e,t)=>{q.has(t)&&$.add(t),me(t)})}function pe(e,t,r={}){let n=new Map(D.fetchers);n.set(e,t),ie({fetchers:n},{flushSync:!0===(r&&r.flushSync)})}function fe(e,t,r,n={}){let i=Ut(D.matches,t),o=new Map(D.fetchers);he(o,e),ie({errors:{[i.route.id]:r},fetchers:o},{flushSync:!0===(n&&n.flushSync)})}function he(e,t){let r=D.fetchers.get(t);!q.has(t)||r&&"loading"===r.state&&Y.has(t)||me(t),Q.delete(t),Y.delete(t),J.delete(t),Z.delete(t),$.delete(t),e.delete(t)}function me(e,t){let r=q.get(e);r&&(r.abort(t),q.delete(e))}function ge(e,t){for(let r of e){let e=t.get(r);b(e,`Expected fetcher: ${r}`);let n=lr(e.data);t.set(r,n)}}function ye(e){let t=[],r=!1;for(let n of J){let i=e.get(n);b(i,`Expected fetcher: ${n}`),"loading"===i.state&&(J.delete(n),t.push(n),r=!0)}return ge(t,e),r}function ve(e,t){let r=[];for(let[n,i]of Y)if(i<e){let e=t.get(n);b(e,`Expected fetcher: ${n}`),"loading"===e.state&&(me(n),Y.delete(n),r.push(n))}return ge(r,t),r.length>0}function be(e){D.blockers.delete(e),re.delete(e)}function _e(e,t){let r=D.blockers.get(e)||We;b("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,`Invalid blocker state transition: ${r.state} -> ${t.state}`);let n=new Map(D.blockers);n.set(e,t),ie({blockers:n})}function Ee({currentLocation:e,nextLocation:t,historyAction:r}){if(0===re.size)return;re.size>1&&_(!1,"A router only supports one blocker at a time");let n=Array.from(re.entries()),[i,o]=n[n.length-1],a=D.blockers.get(i);return a&&"proceeding"===a.state?void 0:o({currentLocation:e,nextLocation:t,historyAction:r})?i:void 0}function we(e){let t=zt(404,{pathname:e}),r=s.activeRoutes,{matches:n,route:i}=Ht(r);return{notFoundMatches:n,route:i,error:t}}function Te(e,t){if(v){return v(e,t.map(e=>L(e,D.loaderData)))||e.key}return e.key}function Ae(e,t){if(y){let r=Te(e,t),n=y[r];if("number"==typeof n)return n}return null}function Pe(t,r,n){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t){return{active:!0,matches:N(r,n,c,!0,e)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:N(r,n,c,!0,e)}}}return{active:!1,matches:null}}async function Ie(t,r,n,i){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let l=t;for(;;){let t=a;try{await e.patchRoutesOnNavigation({signal:n,path:r,matches:l,fetcherKey:i,patch:(e,r)=>{n.aborted||lt(e,r,s,t,o,!1)}})}catch(e){return{type:"error",error:e,partialMatches:l}}if(n.aborted)return{type:"aborted"};let u=s.branches,d=N(s.activeRoutes,r,c,!1,u),p=null;if(d){if(0===Object.keys(d[0].params).length)return{type:"success",matches:d};if(p=N(s.activeRoutes,r,c,!0,u),!(p&&l.length<p.length&&ke(l,p.slice(0,l.length))))return{type:"success",matches:d}}if(p||(p=N(s.activeRoutes,r,c,!0,u)),!p||ke(l,p))return{type:"success",matches:null};l=p}}function ke(e,t){return e.length===t.length&&e.every((e,r)=>e.route.id===t[r].route.id)}return d={get basename(){return c},get future(){return f},get state(){return D},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return a},get window(){return t},initialize:function(){if(h=e.history.listen(({action:t,location:r,delta:n})=>{if(M)return M(),void(M=void 0);_(0===re.size||null!=n,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=Ee({currentLocation:D.location,nextLocation:r,historyAction:t});if(i&&null!=n){let t=new Promise(e=>{M=e});return e.history.go(-1*n),_e(i,{state:"blocked",location:r,proceed(){_e(i,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(n))},reset(){let e=new Map(D.blockers);e.set(i,We),ie({blockers:e})}}),B?.resolve(),void(B=null)}return ae(t,r)}),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,H);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){_(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,H);t.addEventListener("pagehide",e),z=()=>t.removeEventListener("pagehide",e)}return D.initialized||ae("POP",D.location,{initialHydration:!0}),d},subscribe:function(e){if(m.add(e),g){let{newErrors:t}=g;g=null,e(D,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>m.delete(e)},enableScrollRestoration:function(e,t,r){if(y=e,S=t,v=r||null,!x&&D.navigation===$e){x=!0;let e=Ae(D.location,D.matches);null!=e&&ie({restoreScrollPosition:e})}return()=>{y=null,S=null,v=null}},navigate:async function t(r,n){if(B?.resolve(),B=null,"number"==typeof r){B||(B=ur());let t=B.promise;return e.history.go(r),t}let i,o=nt(D.location,D.matches,c,r,n?.fromRouteId,n?.relative),{path:a,submission:s,error:l}=it(!1,o,n);if(n?.mask){i={pathname:"",search:"",hash:"",..."string"==typeof n.mask?T(n.mask):{...D.location.mask,...n.mask}}}let u=D.location,d=E(u,a,n&&n.state,void 0,i);d={...d,...e.history.encodeLocation(d)};let p=n&&null!=n.replace?n.replace:void 0,f="PUSH";!0===p?f="REPLACE":!1===p||null!=s&&nr(s.formMethod)&&s.formAction===D.location.pathname+D.location.search&&(f="REPLACE");let h=n&&"preventScrollReset"in n?!0===n.preventScrollReset:void 0,m=!0===(n&&n.flushSync),g=Ee({currentLocation:u,nextLocation:d,historyAction:f});g?_e(g,{state:"blocked",location:d,proceed(){_e(g,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(r,n)},reset(){let e=new Map(D.blockers);e.set(g,We),ie({blockers:e})}}):await ae(f,d,{submission:s,pendingError:l,preventScrollReset:h,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:m,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate})},fetch:async function(t,r,i,l){me(t);let u=!0===(l&&l.flushSync),d=s.activeRoutes,p=nt(D.location,D.matches,c,i,r,l?.relative),f=N(d,p,c,!1,s.branches),h=Pe(f,d,p);if(h.active&&h.matches&&(f=h.matches),!f)return void fe(t,r,zt(404,{pathname:p}),{flushSync:u});let{path:m,submission:g,error:y}=it(!0,p,l);if(y)return void fe(t,r,y,{flushSync:u});let v=e.getContext?await e.getContext():new R,_=!0===(l&&l.preventScrollReset);g&&nr(g.formMethod)?await async function(t,r,i,l,u,d,p,f,h,m){de(),Q.delete(t);let g=D.fetchers.get(t);pe(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}(h,g),{flushSync:p});let y=new AbortController,v=kt(e.history,i,y.signal,h);if(d){let e=await Ie(l,new URL(v.url).pathname,v.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void fe(t,r,e.error,{flushSync:p});if(!e.matches)return void fe(t,r,zt(404,{pathname:i}),{flushSync:p});l=e.matches}let _=or(l,i);if(!_.route.action&&!_.route.lazy){let e=zt(405,{method:h.formMethod,pathname:i,routeId:r});return void fe(t,r,e,{flushSync:p})}q.set(t,y);let S=W,E=Tt(o,a,v,i,l,_,n,u),w=await le(v,i,E,u,t),T=w[_.route.id];if(!T)for(let e of E)if(w[e.route.id]){T=w[e.route.id];break}if(v.signal.aborted)return void(q.get(t)===y&&q.delete(t));if(Z.has(t)){if(Qt(T)||Jt(T))return void pe(t,lr(void 0))}else{if(Qt(T))return q.delete(t),K>S?void pe(t,lr(void 0)):(J.add(t),pe(t,cr(h)),ce(v,T,!1,{fetcherSubmission:h,preventScrollReset:f}));if(Jt(T))return void fe(t,r,T.error)}let x=D.navigation.location||D.location,O=kt(e.history,x,y.signal),A=s.activeRoutes,R="idle"!==D.navigation.state?N(A,D.navigation.location,c,!1,s.branches):D.matches;b(R,"Didn't find any matches after fetcher action");let P=++W;Y.set(t,P);let{dsMatches:I,revalidatingFetchers:k}=ot(O,u,o,a,e.history,D,R,h,x,n,!1,G,$,Z,Q,J,A,c,null!=e.patchRoutesOnNavigation,s.branches,[_.route.id,T],m),M=cr(h,T.data),L=new Map(D.fetchers);L.set(t,M),k.filter(e=>
11e.key!==t).forEach(e=>{let t=e.key,r=L.get(t),n=cr(void 0,r?r.data:void 0);L.set(t,n),me(t),e.controller&&q.set(t,e.controller)}),ie({fetchers:L});let B=()=>k.forEach(e=>me(e.key));y.signal.addEventListener("abort",B);let{loaderResults:j,fetcherResults:U}=await ue(I,k,O,x,u);if(y.signal.aborted)return;y.signal.removeEventListener("abort",B),Y.delete(t),q.delete(t),k.forEach(e=>q.delete(e.key));let H=D.fetchers.has(t),z=e=>{if(!H)return e;let r=new Map(e.fetchers);return r.set(t,lr(T.data)),{...e,fetchers:r}},V=Vt(j);if(V)return D=z(D),ce(O,V.result,!1,{preventScrollReset:f});if(V=Vt(U),V)return J.add(V.key),D=z(D),ce(O,V.result,!1,{preventScrollReset:f});let X=new Map(D.fetchers);H&&X.set(t,lr(T.data));let{loaderData:ee,errors:te}=Ft(D,R,j,void 0,k,U,X);ve(P,X),"loading"===D.navigation.state&&P>K?(b(F,"Expected pending action"),C&&C.abort(),oe(D.navigation.location,{matches:R,loaderData:ee,errors:te,fetchers:X})):(ie({errors:te,loaderData:Bt(D.loaderData,ee,R,te),fetchers:X}),G=!1)}(t,r,m,f,v,h.active,u,_,g,l&&l.defaultShouldRevalidate):(Q.set(t,{routeId:r,path:m}),await async function(t,r,i,s,c,l,u,d,p){let f=D.fetchers.get(t);pe(t,cr(p,f?f.data:void 0),{flushSync:u});let h=new AbortController,m=kt(e.history,i,h.signal);if(l){let e=await Ie(s,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void fe(t,r,e.error,{flushSync:u});if(!e.matches)return void fe(t,r,zt(404,{pathname:i}),{flushSync:u});s=e.matches}let g=or(s,i);q.set(t,h);let y=W,v=Tt(o,a,m,i,s,g,n,c),b=await le(m,i,v,c,t),_=b[g.route.id];if(!_)for(let e of s)if(b[e.route.id]){_=b[e.route.id];break}q.get(t)===h&&q.delete(t);if(m.signal.aborted)return;if(Z.has(t))return void pe(t,lr(void 0));if(Qt(_))return K>y?void pe(t,lr(void 0)):(J.add(t),void await ce(m,_,!1,{preventScrollReset:d}));if(Jt(_))return void fe(t,r,_.error);pe(t,lr(_.data))}(t,r,m,f,v,h.active,u,_,g))},revalidate:function(){ne||(ne=ur()),de(),ie({revalidation:"loading"});let e=ne.promise;return"submitting"===D.navigation.state?e:"idle"===D.navigation.state?(ae(D.historyAction,D.location,{startUninterruptedRevalidation:!0}),e):(ae(F||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation,enableViewTransition:!0===U}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:function(e){return X.set(e,(X.get(e)||0)+1),Z.has(e)&&Z.delete(e),D.fetchers.get(e)||qe},resetFetcher:function(e,t){me(e,t?.reason),pe(e,lr(null))},deleteFetcher:function(e){let t=(X.get(e)||0)-1;t<=0?(X.delete(e),Z.add(e)):X.set(e,t),ie({fetchers:new Map(D.fetchers)})},dispose:function(){h&&h(),z&&z(),m.clear(),C&&C.abort(),D.fetchers.forEach((e,t)=>he(D.fetchers,t)),D.blockers.forEach((e,t)=>be(t))},getBlocker:function(e,t){let r=D.blockers.get(e)||We;return re.get(e)!==t&&re.set(e,t),r},deleteBlocker:be,patchRoutes:function(e,t,r=!1){lt(e,t,s,a,o,r),s.hasHMRRoutes||ie({})},_internalFetchControllers:q,_internalSetRoutes:function(e){a={},s.setHmrRoutes(k(e,o,void 0,a))},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){ie(e)}},e.instrumentations&&(d=function(e,t){let r={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let n of t)e[n]&&r[n].push(e[n])}})),r.navigate.length>0){let t=e.navigate[xe]??e.navigate,n=Re(r.navigate,t,(...t)=>{let[r,n]=t;return{to:"number"==typeof r||"string"==typeof r?r:r?w(r):".",...Ce(e,n??{})}});n&&(n[xe]=t,e.navigate=n)}if(r.fetch.length>0){let t=e.fetch[xe]??e.fetch,n=Re(r.fetch,t,(...t)=>{let[r,,n,i]=t;return{href:n??".",fetcherKey:r,...Ce(e,i??{})}});n&&(n[xe]=t,e.fetch=n)}return e}(d,e.instrumentations.map(e=>e.router).filter(Boolean))),d}function Ze(e,t){b(e.length>0,"You must provide a non-empty routes array to createStaticHandler");let r={},n=(t?t.basename:null)||"/",i=t?.mapRouteProperties||Ke,o=i;if(t?.instrumentations){let e=t.instrumentations;o=t=>({...i(t),...Oe(e.map(e=>e.route).filter(Boolean),t)})}let a=k(e,o,void 0,r),s=F(a);async function c(e,t,n,i,a,s,c,d,p){b(e.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(nr(e.method)){let f=await async function(e,t,n,i,a,s,c,d,p,f){let h;if(i.route.action||i.route.lazy){let c=Tt(o,r,e,t,n,i,[],a);h=(await u(e,t,c,d,a,s))[i.route.id],e.signal.aborted&&tt(e,d)}else{let t=zt(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:i.route.id});if(d)throw t;h={type:"error",error:t}}if(Qt(h))throw new Response(null,{status:h.response.status,headers:{Location:h.response.headers.get("Location")}});if(d){if(Jt(h))throw h.error;return{matches:[i],loaderData:{},actionData:{[i.route.id]:h.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{}}}if(f){if(Jt(h)){let e=c?i:Ut(n,i.route.id);return{statusCode:Se(h.error)?h.error.status:null!=h.statusCode?h.statusCode:500,actionData:null,actionHeaders:{...h.headers?{[i.route.id]:h.headers}:{}},matches:n,loaderData:{},errors:{[e.route.id]:h.error},loaderHeaders:{}}}return{actionData:{[i.route.id]:h.data},actionHeaders:h.headers?{[i.route.id]:h.headers}:{},matches:n,loaderData:{},errors:null,statusCode:h.statusCode||200,loaderHeaders:{}}}
11let m=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal});if(Jt(h)){let e=c?i:Ut(n,i.route.id);return{...await l(m,t,n,a,s,c,null,p,[e.route.id,h]),statusCode:Se(h.error)?h.error.status:null!=h.statusCode?h.statusCode:500,actionData:null,actionHeaders:{...h.headers?{[i.route.id]:h.headers}:{}}}}let g=await l(m,t,n,a,s,c,null,p);return{...g,actionData:{[i.route.id]:h.data},...h.statusCode?{statusCode:h.statusCode}:{},actionHeaders:h.headers?{[i.route.id]:h.headers}:{}}}(e,t,n,c||or(n,t),i,a,s,null!=c,d,p);return f}let f=await l(e,t,n,i,a,s,c,d);return Zt(f)?f:{...f,actionData:null,actionHeaders:{}}}catch(e){if(Kt(e)&&Zt(e.result)){if("error"===e.type)throw e.result;return e.result}if(tr(e))return e;throw e}}async function l(e,t,n,i,a,s,c,l,d){let p,f=null!=c;if(f&&!c?.route.loader&&!c?.route.lazy)throw zt(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:c?.route.id});if(c)p=Tt(o,r,e,t,n,c,[],i);else{let a=d&&Jt(d[1])?n.findIndex(e=>e.route.id===d[0])-1:void 0,s=Ee(n);p=n.map((n,c)=>wt(o,r,e,t,s,n,[],i,!(null!=a&&c>a)&&(null!=(n.route.loader||n.route.lazy)&&(!l||l(n)))))}if(!a&&!p.some(e=>e.shouldLoad))return{matches:n,loaderData:{},errors:d&&Jt(d[1])?{[d[0]]:d[1].error}:null,statusCode:200,loaderHeaders:{}};let h=await u(e,t,p,f,i,a);return e.signal.aborted&&tt(e,f),{...Lt(n,h,d,!0,s),matches:n}}async function u(e,t,r,i,o,a){let s=await xt(a||gt,e,t,r,null,o,!0),c={};return await Promise.all(r.map(async t=>{if(!(t.route.id in s))return;let o=s[t.route.id];if(Yt(o)){throw Rt(o.result,e,t.route.id,r,n)}if(i){if(Zt(o.result))throw o;if(Xt(o.result))throw $t(o.result)}c[t.route.id]=await At(o)})),c}return{dataRoutes:a,_internalRouteBranches:s,query:async function(e,{requestContext:t,filterMatchesToLoad:i,skipLoaderErrorBubbling:l,skipRevalidation:u,dataStrategy:d,generateMiddlewareResponse:p,normalizePath:f}={}){let h=f||rt,m=e.method,g=E("",h(e),null,"default"),y=N(a,g,n,!1,s);if(t=null!=t?t:new R,!rr(m)&&"HEAD"!==m){let e=zt(405,{method:m}),{matches:t,route:r}=Ht(a),i={basename:n,location:g,matches:t,loaderData:{},actionData:null,errors:{[r.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return p?p(()=>Promise.resolve(i)):i}if(!y){let e=zt(404,{pathname:g.pathname}),{matches:t,route:r}=Ht(a),i={basename:n,location:g,matches:t,loaderData:{},actionData:null,errors:{[r.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return p?p(()=>Promise.resolve(i)):i}if(p){b(t instanceof R,"When using middleware in `staticHandler.query()`, any provided `requestContext` must be an instance of `RouterContextProvider`");try{let s;await mt(y,r,o);let f=await vt({request:e,url:Mt(e,g),pattern:Ee(y),matches:y,params:y[0].params,context:t},async()=>await p(async(e,r={})=>{let o=await c(e,g,y,t,d||null,!0===l,null,"filterMatchesToLoad"in r?r.filterMatchesToLoad??null:i??null,!0===u);return Zt(o)?o:(s={location:g,basename:n,...o},s)}),async(e,t)=>{if(tr(e))return e;if(Zt(e))try{e=new _e(e.status,e.statusText,await Ot(e))}catch(t){e=t}if(Xt(e)&&(e=qt(e)),s){t in s.loaderData&&(s.loaderData[t]=void 0);let r=et(a,s,e,l?t:Ut(y,t).route.id);return p(()=>Promise.resolve(r))}{let r=l?t:Ut(y,y.find(e=>e.route.id===t||e.route.loader)?.route.id||t).route.id,i={matches:y,location:g,basename:n,loaderData:{},actionData:null,errors:{[r]:e},statusCode:Se(e)?e.status:500,actionHeaders:{},loaderHeaders:{}};return p(()=>Promise.resolve(i))}});return b(Zt(f),"Expected a response in query()"),f}catch(e){if(Zt(e))return e;throw e}}let v=await c(e,g,y,t,d||null,!0===l,null,i||null,!0===u);return Zt(v)?v:{location:g,basename:n,...v}},queryRoute:async function(e,{routeId:t,requestContext:i,dataStrategy:l,generateMiddlewareResponse:u,normalizePath:d}={}){let p=d||rt,f=e.method,h=E("",p(e),null,"default"),m=N(a,h,n,!1,s);if(i=null!=i?i:new R,!rr(f)&&"HEAD"!==f&&"OPTIONS"!==f)throw zt(405,{method:f});if(!m)throw zt(404,{pathname:h.pathname});let g=t?m.find(e=>e.route.id===t):or(m,h);if(t&&!g)throw zt(403,{pathname:h.pathname,routeId:t});if(!g)throw zt(404,{pathname:h.pathname});if(u){return b(i instanceof R,"When using middleware in `staticHandler.queryRoute()`, any provided `requestContext` must be an instance of `RouterContextProvider`"),await mt(m,r,o),await vt({request:e,url:Mt(e,h),pattern:Ee(m),matches:m,params:m[0].params,context:i},async()=>await u(async e=>{let t=y(await c(e,h,m,i,l||null,!1,g,null,!1));return Zt(t)?t:"string"==typeof t?new Response(t):Response.json(t)}),e=>{if(Xt(e))return Promise.resolve($t(e));if(Zt(e))return Promise.resolve(e);throw e})}return y(await c(e,h,m,i,l||null,!1,g,null,!1));function y(e){if(Zt(e))return e;let t=e.errors?Object.values(e.errors)[0]:void 0;if(void 0!==t)throw t;return e.actionData?Object.values(e.actionData)[0]:e.loaderData?Object.values(e.loaderData)[0]:void 0}}}}function et(e,t,r,n){let i=n||t._deepestRenderedBoundaryId||e[0].id;return{...t,statusCode:Se(r)?r.status:500,errors:{[i]:r}}}function tt(e,t){if(void 0!==e.signal.reason)throw e.signal.reason;throw new Error(`${t?"queryRoute":"query"}() call aborted without an \`AbortSignal.reason\`: ${e.method} ${e.url}`)}function rt(e){let t=new URL(e.url);return{pathname:t.pathname,search:t.search,hash:t.hash}}function nt(e,t,r,n,i,o){let a,s;if(i){a=[];for(let e of t)if(a.push(e),e.route.id===i){s=e;break}}else a=t,s=t[t.length-1];let c=se(n||".",ae(a),ee(e.pathname,r)||e.pathname,"path"===o);if(null==n&&(c.search=e.search,c.hash=e.hash),(null==n||""===n||"."===n)&&s){let e=ir(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?`?${r}`:""}}return"/"!==r&&(c.pathname=function({basename:e,pathname:t}){return"/"===t?e:le([e,t])}({basename:r,pathname:c.pathname})),w(c)}function it(e,t,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:t};if(r.formMethod&&!rr(r.formMethod))return{path:t,error:zt(405,{method:r.formMethod})};let n,i,o=()=>({path:t,error:zt(400,{type:"invalid-body"})}),a=(r.formMethod||"get").toUpperCase(),s=Gt(t);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!nr(a))return o();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,[t,r])=>`${e}${t}=${r}\n`,""):String(r.body);return{path:t,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!nr(a))return o();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return o()}}}if(b("function"==typeof FormData,"FormData is not available in this environment"),r.formData)n=Dt(r.formData),i=r.formData;else if(r.body instanceof FormData)n=Dt(r.body),i=r.body;else if(r.body instanceof URLSearchParams)n=r.body,i=Nt(n);else if(null==r.body)n=new URLSearchParams,i=new FormData;else try{n=new URLSearchParams(r.body),i=Nt(n)}catch(e){return o()}let c={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(nr(c.formMethod))return{path:t,submission:c};let l=T(t);return e&&l.search&&ir(l.search)&&n.append("index",""),l.search=`?${n}`,{path:w(l),submission:c}}function ot(e,t,r,n,i,o,a,s,c,l,u,d,p,f,h,m,g,y,v,b,_,S){let E,w=_?Jt(_[1])?_[1].error:_[1].data:void 0,T=i.createURL(o.location),x=i.createURL(c);if(u&&o.errors){let e=Object.keys(o.errors)[0];E=a.findIndex(t=>t.route.id===e)}else if(_&&Jt(_[1])){let e=_[0];E=a.findIndex(t=>t.route.id===e)-1}let O=_?_[1].statusCode:void 0,A=O&&O>
11=400,R={currentUrl:T,currentParams:o.matches[0]?.params||{},nextUrl:x,nextParams:a[0].params,...s,actionResult:w,actionStatus:O},P=Ee(a),I=a.map((i,a)=>{let{route:s}=i,p=null;if(null!=E&&a>E)p=!1;else if(s.lazy)p=!0;else if(at(s))if(u){let{shouldLoad:e}=st(s,o.loaderData,o.errors);p=e}else(function(e,t,r){let n=!t||r.route.id!==t.route.id,i=!e.hasOwnProperty(r.route.id);return n||i})(o.loaderData,o.matches[a],i)&&(p=!0);else p=!1;if(null!==p)return wt(r,n,e,c,P,i,l,t,p);let f=!1;"boolean"==typeof S?f=S:A?f=!1:(d||T.pathname+T.search===x.pathname+x.search||T.search!==x.search||function(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}(o.matches[a],i))&&(f=!0);let h={...R,defaultShouldRevalidate:f},m=ct(i,h);return wt(r,n,e,c,P,i,l,t,m,h,S)}),C=[];return h.forEach((e,s)=>{if(u||!a.some(t=>t.route.id===e.routeId)||f.has(s))return;let c=o.fetchers.get(s),h=c&&"idle"!==c.state&&void 0===c.data,_=N(g,e.path,y??"/",!1,b);if(!_){if(v&&h)return;return void C.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(m.has(s))return;let E=or(_,e.path),w=new AbortController,T=kt(i,e.path,w.signal),x=null;if(p.has(s))p.delete(s),x=Tt(r,n,T,e.path,_,E,l,t);else if(h)d&&(x=Tt(r,n,T,e.path,_,E,l,t));else{let i;i="boolean"==typeof S?S:!A&&d;let o={...R,defaultShouldRevalidate:i};ct(E,o)&&(x=Tt(r,n,T,e.path,_,E,l,t,o))}x&&C.push({key:s,routeId:e.routeId,path:e.path,matches:x,match:E,request:T,controller:w})}),{dsMatches:I,revalidatingFetchers:C}}function at(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function st(e,t,r){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!at(e))return{shouldLoad:!1,renderFallback:!1};let n=null!=t&&e.id in t,i=null!=r&&void 0!==r[e.id];if(!n&&i)return{shouldLoad:!1,renderFallback:!1};if("function"==typeof e.loader&&!0===e.loader.hydrate)return{shouldLoad:!0,renderFallback:!n};let o=!n&&!i;return{shouldLoad:o,renderFallback:o}}function ct(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function lt(e,t,r,n,i,o){let a;if(e){let t=n[e];b(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),a=t.children}else a=r.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=a.find(t=>ut(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=k(s,i,[e||"_","patch",String(a?.length||"0")],n);a.push(...t)}if(o&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:r}=c[e],n=t,[o]=k([r],i,[],{},!0);Object.assign(n,{element:o.element?o.element:n.element,errorElement:o.errorElement?o.errorElement:n.errorElement,hydrateFallbackElement:o.hydrateFallbackElement?o.hydrateFallbackElement:n.hydrateFallbackElement})}r.hasHMRRoutes||r.setRoutes([...r.activeRoutes])}function ut(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||(e.children?.every((e,r)=>t.children?.some(t=>ut(e,t)))??!1))}Ne=new WeakMap,Le=new WeakMap,Fe=new WeakMap,Be=new WeakMap;var dt=new WeakMap,pt=({key:e,route:t,manifest:r,mapRouteProperties:n})=>{let i=r[t.id];if(b(i,"No route found in manifest"),!i.lazy||"object"!=typeof i.lazy)return;let o=i.lazy[e];if(!o)return;let a=dt.get(i);a||(a={},dt.set(i,a));let s=a[e];if(s)return s;let c=(async()=>{let t=function(e){return P.has(e)}(e),r=void 0!==i[e]&&"hasErrorBoundary"!==e;if(t)_(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),a[e]=Promise.resolve();else if(r)_(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await o();null!=t&&(Object.assign(i,{[e]:t}),Object.assign(i,n(i)))}"object"==typeof i.lazy&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>void 0===e)&&(i.lazy=void 0))})();return a[e]=c,c},ft=new WeakMap;function ht(e){return void 0!==e}function mt(e,t,r){let n=e.map(({route:e})=>{if("object"==typeof e.lazy&&e.lazy.middleware)return pt({key:"middleware",route:e,manifest:t,mapRouteProperties:r})}).filter(ht);return n.length>0?Promise.all(n):void 0}async function gt(e){let t=e.matches.filter(e=>e.shouldLoad),r={};return(await Promise.all(t.map(e=>
11e.resolve()))).forEach((e,n)=>{r[t[n].route.id]=e}),r}async function yt(e){return e.matches.some(e=>e.route.middleware)?bt(e,()=>gt(e)):gt(e)}function vt(e,t,r){return _t(e,t,function(e){return Xt(e)?$t(e):e},Zt,r)}function bt(e,t){return _t(e,t,e=>{if(tr(e))throw e;return e},Wt,function(t,r,n){if(n)return Promise.resolve(Object.assign(n.value,{[r]:{type:"error",result:t}}));{let{matches:n}=e,i=Math.min(Math.max(n.findIndex(e=>e.route.id===r),0),Math.max(n.findIndex(e=>e.shouldCallHandler()),0)),o=Ut(n,n[i].route.id).route.id;return Promise.resolve({[o]:{type:"error",result:t}})}})}async function _t(e,t,r,n,i){let{matches:o,...a}=e,s=o.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]);return await St(a,s,t,r,n,i)}async function St(e,t,r,n,i,o,a=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??new Error(`Request aborted: ${s.method} ${s.url}`);let c=t[a];if(!c){return await r()}let l,[u,d]=c,p=async()=>{if(l)throw new Error("You may only call `next()` once per middleware");try{let s=await St(e,t,r,n,i,o,a+1);return l={value:s},l.value}catch(e){return l={value:await o(e,u,l)},l.value}};try{let t=await d(e,p),r=null!=t?n(t):void 0;return i(r)?r:l?r??l.value:(l={value:await p()},l.value)}catch(e){return await o(e,u,l)}}function Et(e,t,r,n,i){let o=pt({key:"middleware",route:n.route,manifest:t,mapRouteProperties:e}),a=function(e,t,r,n,i){let o=r[e.id];if(b(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=ft.get(o);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let r=(async()=>{b("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),r={};for(let e in t){let n=t[e];if(void 0===n)continue;let i=C(e),a=void 0!==o[e]&&"hasErrorBoundary"!==e;i?_(!i,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):a?_(!a,`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.`):r[e]=n}Object.assign(o,r),Object.assign(o,{...n(o),lazy:void 0})})();return ft.set(o,r),r.catch(()=>{}),{lazyRoutePromise:r,lazyHandlerPromise:r}}let a,s=Object.keys(e.lazy),c=[];for(let o of s){if(i&&i.includes(o))continue;let s=pt({key:o,route:e,manifest:r,mapRouteProperties:n});s&&(c.push(s),o===t&&(a=s))}let l=c.length>0?Promise.all(c).then(()=>{}):void 0;return l?.catch(()=>{}),a?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:a}}(n.route,nr(r.method)?"action":"loader",t,e,i);return{middleware:o,route:a.lazyRoutePromise,handler:a.lazyHandlerPromise}}function wt(e,t,r,n,i,o,a,s,c,l=null,u){let d=!1,p=Et(e,t,r,o,a);return{...o,_lazyPromises:p,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler:e=>(d=!0,l?ct(o,"boolean"==typeof u?{...l,defaultShouldRevalidate:u}:"boolean"==typeof e?{...l,defaultShouldRevalidate:e}:l):c),resolve(e){let{lazy:t,loader:a,middleware:l}=o.route,u=d||c||e&&!nr(r.method)&&(t||a),f=l&&l.length>0&&!a&&!t;return!u||!nr(r.method)&&f?Promise.resolve({type:"data",result:void 0}):async function({request:e,path:t,pattern:r,match:n,lazyHandlerPromise:i,lazyRoutePromise:o,handlerOverride:a,scopedContext:s}){let c,l,u=nr(e.method),d=u?"action":"loader",p=i=>{let o,c=new Promise((e,t)=>o=t);l=()=>o(),e.signal.addEventListener("abort",l);let u=o=>"function"!=typeof i?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${n.route.id}]`)):i({request:e,url:Mt(e,t),pattern:r,params:n.params,context:s},...void 0!==o?[o]:[]),p=(async()=>{try{return{type:"data",result:await(a?a(e=>u(e)):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([p,c])};try{let t=u?n.route.action:n.route.loader;if(i||o)if(t){let e,[r]=await Promise.all([p(t).catch(t=>{e=t}),i,o]);if(void 0!==e)throw e;c=r}else{await i;let t=u?n.route.action:n.route.loader;if(!t){if("action"===d){let t=new URL(e.url),r=t.pathname+t.search;throw zt(405,{method:e.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}[c]=await Promise.all([p(t),o])}else{if(!t){let t=new URL(e.url);throw zt(404,{pathname:t.pathname+t.search})}c=await p(t)}}catch(e){return{type:"error",result:e}}finally{l&&e.signal.removeEventListener("abort",l)}return c}({request:r,path:n,pattern:i,match:o,lazyHandlerPromise:p?.handler,lazyRoutePromise:p?.route,handlerOverride:e,scopedContext:s})}}}function Tt(e,t,r,n,i,o,a,s,c=null){return i.map(l=>l.route.id!==o.route.id?{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Et(e,t,r,l,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:wt(e,t,r,n,Ee(i),l,a,s,!0,c))}async function xt(e,t,r,n,i,o,a){n.some(e=>e._lazyPromises?.middleware)&&await Promise.all(n.map(e=>e._lazyPromises?.middleware));let s={request:t,url:Mt(t,r),pattern:Ee(n),params:n[0].params,context:o,matches:n},c=a?()=>{throw new Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response.  You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return bt(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(n.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch(e){}return l}async function Ot(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}async function At(e){let{result:t,type:r}=e;if(Zt(t)){let e;try{e=await Ot(t)}catch(e){return{type:"error",error:e}}return"error"===r?{type:"error",error:new _e(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===r?Xt(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:qt(t),statusCode:Se(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Se(t)?t.status:void 0}:Xt(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Rt(e,t,r,n,i){let o=e.headers.get("Location");if(b(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!te(o)){let a=n.slice(0,n.findIndex(e=>e.route.id===r)+1);o=nt(new URL(t.url),a,i,o),e.headers.set("Location",o)}return e}var Pt=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function It(e){try{return Pt.includes(new URL(e).protocol)}catch{return!1}}function Ct(e,t,r,n){if(te(e)){let n=e,i=u.test(n)?new URL(d(n,t.protocol)):new URL(n);if(It(i.toString()))throw new Error("Invalid redirect location");let o=null!=ee(i.pathname,r);
11if(i.origin===t.origin&&o)return ce(i.pathname)+i.search+i.hash}try{if(It(n.createURL(e).toString()))throw new Error("Invalid redirect location")}catch(e){}return e}function kt(e,t,r,n){let i=e.createURL(Gt(t)).toString(),o={signal:r};if(n&&nr(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=Dt(n.formData):o.body=n.formData}return new Request(i,o)}function Mt(e,t){let r=new URL(e.url),n="string"==typeof t?T(t):t;if(r.pathname=n.pathname||"/",n.search){let e=new URLSearchParams(n.search),t=e.getAll("index");e.delete("index");for(let r of t.filter(Boolean))e.append("index",r);r.search=e.size?`?${e.toString()}`:""}else r.search="";return r.hash=n.hash||"",r}function Dt(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function Nt(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Lt(e,t,r,n=!1,i=!1){let o,a={},s=null,c=!1,l={},u=r&&Jt(r[1])?r[1].error:void 0;return e.forEach(r=>{if(!(r.route.id in t))return;let d=r.route.id,p=t[d];if(b(!Qt(p),"Cannot handle redirect results in processLoaderData"),Jt(p)){let t=p.error;if(void 0!==u&&(t=u,u=void 0),s=s||{},i)s[d]=t;else{let r=Ut(e,d);null==s[r.route.id]&&(s[r.route.id]=t)}n||(a[d]=Je),c||(c=!0,o=Se(p.error)?p.error.status:500),p.headers&&(l[d]=p.headers)}else a[d]=p.data,p.statusCode&&200!==p.statusCode&&!c&&(o=p.statusCode),p.headers&&(l[d]=p.headers)}),void 0!==u&&r&&(s={[r[0]]:u},r[2]&&(a[r[2]]=void 0)),{loaderData:a,errors:s,statusCode:o||200,loaderHeaders:l}}function Ft(e,t,r,n,i,o,a){let{loaderData:s,errors:c}=Lt(t,r,n);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:r,match:n,controller:i}=t;if(i&&i.signal.aborted)return;let s=o[r];if(b(s,"Did not find corresponding fetcher result"),Jt(s)){let t=Ut(e.matches,n?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),a.delete(r)}else if(Qt(s))b(!1,"Unhandled fetcher revalidation redirect");else{let e=lr(s.data);a.set(r,e)}}),{loaderData:s,errors:c}}function Bt(e,t,r,n){let i=Object.entries(t).filter(([,e])=>e!==Je).reduce((e,[t,r])=>(e[t]=r,e),{});for(let o of r){let r=o.route.id;if(!t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&o.route.loader&&(i[r]=e[r]),n&&n.hasOwnProperty(r))break}return i}function jt(e){return e?Jt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ut(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 Ht(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 zt(e,{pathname:t,routeId:r,method:n,type:i,message:o}={}){let a="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(a="Bad Request",n&&t&&r?s=`You made a ${n} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:"invalid-body"===i&&(s="Unable to encode submission body")):403===e?(a="Forbidden",s=`Route "${r}" does not match URL "${t}"`):404===e?(a="Not Found",s=`No route matches URL "${t}"`):405===e&&(a="Method Not Allowed",n&&t&&r?s=`You made a ${n.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:n&&(s=`Invalid request method "${n.toUpperCase()}"`)),new _e(e||500,a,new Error(s),!0)}function Vt(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(Qt(n))return{key:r,result:n}}}function Gt(e){return w({..."string"==typeof e?T(e):e,hash:""})}function $t(e){return Response.json(e.data,e.init??void 0)}function qt(e){return new _e(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function Wt(e){return null!=e&&"object"==typeof e&&Object.entries(e).every(([e,t])=>"string"==typeof e&&Kt(t))}function Kt(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function Yt(e){return Zt(e.result)&&Ve.has(e.result.status)}function Jt(e){return"error"===e.type}function Qt(e){return"redirect"===(e&&e.type)}function Xt(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Zt(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function er(e){return Ve.has(e)}function tr(e){return Zt(e)&&er(e.status)&&e.headers.has("Location")}function rr(e){return ze.has(e.toUpperCase())}function nr(e){return Ue.has(e.toUpperCase())}function ir(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function or(e,t){let r="string"==typeof t?T(t).search:t.search;if(e[e.length-1].route.index&&ir(r||""))return e[e.length-1];let n=oe(e);return n[n.length-1]}function ar(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 sr(e,t,r,n){if(n){return{state:"loading",location:e,matches:t,historyAction:r,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}return{state:"loading",location:e,matches:t,historyAction:r,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function cr(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 lr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function ur(){let e,t,r=new Promise((n,i)=>{e=async e=>{n(e);try{await r}catch(e){}},t=async e=>{i(e);try{await r}catch(e){}}});return{promise:r,resolve:e,reject:t}}var dr=n.createContext(null);dr.displayName="DataRouter";var pr=n.createContext(null);pr.displayName="DataRouterState";var fr=n.createContext(!1);function hr(){return n.useContext(fr)}var mr=n.createContext({isTransitioning:!1});mr.displayName="ViewTransition";var gr=n.createContext(new Map);gr.displayName="Fetchers";var yr=n.createContext(null);yr.displayName="Await";var vr=e=>n.createElement(yr.Provider,e),br=n.createContext(null);
11br.displayName="Navigation";var _r=n.createContext(null);_r.displayName="Location";var Sr=n.createContext({outlet:null,matches:[],isDataRoute:!1});Sr.displayName="Route";var Er=n.createContext(null);Er.displayName="RouteError";var wr=!0,Tr="REACT_ROUTER_ERROR",xr="REDIRECT",Or="ROUTE_ERROR_RESPONSE";function Ar(e){if(e.startsWith(`${Tr}:${xr}:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}function Rr(e){if(e.startsWith(`${Tr}:${Or}:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new _e(t.status,t.statusText,t.data)}catch{}}function Pr(e,{relative:t}={}){b(Ir(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=n.useContext(br),{hash:o,pathname:a,search:s}=Hr(e,{relative:t}),c=a;return"/"!==r&&(c="/"===a?r:le([r,a])),i.createHref({pathname:c,search:s,hash:o})}function Ir(){return null!=n.useContext(_r)}function Cr(){return b(Ir(),"useLocation() may be used only in the context of a <Router> component."),n.useContext(_r).location}function kr(){return n.useContext(_r).navigationType}function Mr(e){b(Ir(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=Cr();return n.useMemo(()=>J(e,Z(t)),[t,e])}var Dr="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nr(e){n.useContext(br).static||n.useLayoutEffect(e)}function Lr(){let{isDataRoute:e}=n.useContext(Sr);return e?function(){let{router:e}=Xr("useNavigate"),t=en("useNavigate"),r=n.useRef(!1);return Nr(()=>{r.current=!0}),n.useCallback(async(n,i={})=>{_(r.current,Dr),r.current&&("number"==typeof n?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...i}))},[e,t])}():function(){b(Ir(),"useNavigate() may be used only in the context of a <Router> component.");let e=n.useContext(dr),{basename:t,navigator:r}=n.useContext(br),{matches:i}=n.useContext(Sr),{pathname:o}=Cr(),a=JSON.stringify(ae(i)),s=n.useRef(!1);return Nr(()=>{s.current=!0}),n.useCallback((n,i={})=>{if(_(s.current,Dr),!s.current)return;if("number"==typeof n)return void r.go(n);let c=se(n,JSON.parse(a),o,"path"===i.relative);null==e&&"/"!==t&&(c.pathname="/"===c.pathname?t:le([t,c.pathname])),(i.replace?r.replace:r.push)(c,i.state,i)},[t,r,a,o,e])}()}var Fr=n.createContext(null);function Br(){return n.useContext(Fr)}function jr(e){let t=n.useContext(Sr).outlet;return n.useMemo(()=>t&&n.createElement(Fr.Provider,{value:e},t),[t,e])}function Ur(){let{matches:e}=n.useContext(Sr),t=e[e.length-1];return t?.params??{}}function Hr(e,{relative:t}={}){let{matches:r}=n.useContext(Sr),{pathname:i}=Cr(),o=JSON.stringify(ae(r));return n.useMemo(()=>se(e,JSON.parse(o),i,"path"===t),[e,o,i,t])}function zr(e,t){return Vr(e,t)}function Vr(e,t,r){b(Ir(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=n.useContext(br),{matches:o}=n.useContext(Sr),a=o[o.length-1],s=a?a.params:{},c=a?a.pathname:"/",l=a?a.pathnameBase:"/",u=a&&a.route;if(wr){let e=u&&u.path||"";hn(c,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let d,p=Cr();if(t){let e="string"==typeof t?T(t):t;b("/"===l||e.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=p;let f=d.pathname||"/",h=f;if("/"!==l){let e=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let m=r&&r.state.matches.length?r.state.matches.map(e=>Object.assign(e,{route:r.manifest[e.route.id]||e.route})):D(e,{pathname:h});wr&&(_(u||null!=m,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),_(null==m||void 0!==m[m.length-1].route.element||void 0!==m[m.length-1].route.Component||void 0!==m[m.length-1].route.lazy,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let g=Jr(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:le([l,i.encodeLocation?i.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:le([l,i.encodeLocation?i.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,r);return t&&g?n.createElement(_r.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...d},navigationType:"POP"}},g):g}function Gr(){let e=cn(),t=Se(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i},a={padding:"2px 4px",backgroundColor:i},s=null;return wr&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=n.createElement(n.Fragment,null,n.createElement("p",null,"💿 Hey developer 👋"),n.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",n.createElement("code",{style:a},"ErrorBoundary")," or"," ",n.createElement("code",{style:a},"errorElement")," prop on your route."))),n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application 
11Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),r?n.createElement("pre",{style:o},r):null,s)}var $r=n.createElement(Gr,null),qr=class 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){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=Rr(e.digest);t&&(e=t)}let t=void 0!==e?n.createElement(Sr.Provider,{value:this.props.routeContext},n.createElement(Er.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?n.createElement(Kr,{error:e},t):t}};qr.contextType=fr;var Wr=new WeakMap;function Kr({children:e,error:t}){let{basename:r}=n.useContext(br);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=Ar(t.digest);if(e){let i=Wr.get(t);if(i)throw i;let o=Te(e.location,r),a=o.absoluteURL||o.to;if(It(a))throw new Error("Invalid redirect location");if(we&&!Wr.get(t)){if(!o.isExternal&&!e.reloadDocument){const r=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw Wr.set(t,r),r}window.location.href=a}return n.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a}`})}}return e}function Yr({routeContext:e,match:t,children:r}){let i=n.useContext(dr);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),n.createElement(Sr.Provider,{value:e},r)}function Jr(e,t=[],r){let i=r?.state;if(null==e){if(!i)return null;if(i.errors)e=i.matches;else{if(0!==t.length||i.initialized||!(i.matches.length>0))return null;e=i.matches}}let o=e,a=i?.errors;if(null!=a){let e=o.findIndex(e=>e.route.id&&void 0!==a?.[e.route.id]);b(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let s=!1,c=-1;if(r&&i){s=i.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:n}=i,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){r.isStatic&&(s=!0),o=c>=0?o.slice(0,c+1):[o[0]];break}}}}let l=r?.onError,u=i&&l?(e,t)=>{l(e,{location:i.location,params:i.matches?.[0]?.params??{},pattern:Ee(i.matches),errorInfo:t})}:void 0;return o.reduceRight((e,r,l)=>{let d,p=!1,f=null,h=null;i&&(d=a&&r.route.id?a[r.route.id]:void 0,f=r.route.errorElement||$r,s&&(c<0&&0===l?(hn("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,h=null):c===l&&(p=!0,h=r.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,l+1)),g=()=>{let t;return t=d?f:p?h:r.route.Component?n.createElement(r.route.Component,null):r.route.element?r.route.element:e,n.createElement(Yr,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=i},children:t})};return i&&(r.route.ErrorBoundary||r.route.errorElement||0===l)?n.createElement(qr,{location:i.location,revalidation:i.revalidation,component:f,error:d,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):g()},null)}function Qr(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Xr(e){let t=n.useContext(dr);return b(t,Qr(e)),t}function Zr(e){let t=n.useContext(pr);return b(t,Qr(e)),t}function en(e){let t=function(e){let t=n.useContext(Sr);return b(t,Qr(e)),t}(e),r=t.matches[t.matches.length-1];return b(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function tn(){let e=Zr("useNavigation");return n.useMemo(()=>{let{matches:t,historyAction:r,...n}=e.navigation;return n},[e.navigation])}function rn(){let e=Xr("useRevalidator"),t=Zr("useRevalidator"),r=n.useCallback(async()=>{await e.router.revalidate()},[e.router]);return n.useMemo(()=>({revalidate:r,state:t.revalidation}),[r,t.revalidation])}function nn(){let{matches:e,loaderData:t}=Zr("useMatches");return n.useMemo(()=>e.map(e=>L(e,t)),[e,t])}function on(){let e=Zr("useLoaderData"),t=en("useLoaderData");return e.loaderData[t]}function an(e){return Zr("useRouteLoaderData").loaderData[e]}function sn(){let e=Zr("useActionData"),t=en("useLoaderData");return e.actionData?e.actionData[t]:void 0}function cn(){let e=n.useContext(Er),t=Zr("useRouteError"),r=en("useRouteError");return void 0!==e?e:t.errors?.[r]}function ln(){let e=n.useContext(yr);return e?._data}function un(){let e=n.useContext(yr);return e?._error}var dn=0;function pn(e){let{router:t,basename:r}=Xr("useBlocker"),i=Zr("useBlocker"),[o,a]=n.useState(""),s=n.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:i,historyAction:o}=t;return e({currentLocation:{...n,pathname:ee(n.pathname,r)||n.pathname},nextLocation:{...i,pathname:ee(i.pathname,r)||i.pathname},historyAction:o})},[r,e]);return n.useEffect(()=>{let e=String(++dn);return a(e),()=>t.deleteBlocker(e)},[t]),n.useEffect(()=>{""!==o&&t.getBlocker(o,s)},[t,o,s]),o&&i.blockers.has(o)?i.blockers.get(o):We}var fn={};function hn(e,t,r){t||fn[e]||(fn[e]=!0,_(!1,r))}function mn(...e){const t=en("useRoute"),r=e[0]??t,n=Zr("useRoute"),i=n.matches.find(({route:e})=>e.id===r);if(void 0!==i)return{handle:i.route.handle,loaderData:n.loaderData[r],actionData:n.actionData?.[r]}}function gn(e){return{id:e.route.id,pathname:e.pathname,params:e.params,handle:e.route.handle}}function yn(){let{location:e,historyAction:t,matches:r,navigation:i}=Zr("unstable_useRouterState"),o=n.useMemo(()=>({type:t,location:e,searchParams:new URLSearchParams(e.search),params:r[r.length-1]?.params??{},matches:r.map(e=>gn(e))}),[e,r,t]),a=n.useMemo(()=>
11{if("idle"===i.state)return null;let e={type:i.historyAction,location:i.location,searchParams:new URLSearchParams(i.location.search),params:i.matches[i.matches.length-1]?.params??{},matches:i.matches.map(e=>gn(e))};return"loading"===i.state?{...e,state:"loading",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{...e,state:"submitting",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}},[i]);return n.useMemo(()=>({active:o,pending:a}),[o,a])}var vn={};function bn(e,t){e||vn[t]||(vn[t]=!0,console.warn(t))}var _n=n.useOptimistic,Sn=()=>{};function En(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(wr&&e.element&&_(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:n.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(wr&&e.hydrateFallbackElement&&_(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:n.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(wr&&e.errorElement&&_(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:n.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var wn=["HydrateFallback","hydrateFallbackElement"];function Tn(e,t){return Xe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:g({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:wn,mapRouteProperties:En,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,instrumentations:t?.instrumentations}).initialize()}var xn=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}};function On({router:e,flushSync:t,onError:r,useTransitions:i}){let o=hr();i=o||i;let[a,s]=n.useState(e.state),[c,l]=(u=a,_n?_n(u):[u,Sn]);var u;let[d,p]=n.useState(),[f,h]=n.useState({isTransitioning:!1}),[m,g]=n.useState(),[y,v]=n.useState(),[b,_]=n.useState(),S=n.useRef(new Map),E=n.useCallback((o,{deletedFetchers:a,newErrors:c,flushSync:u,viewTransitionOpts:d})=>{c&&r&&Object.values(c).forEach(e=>r(e,{location:o.location,params:o.matches[0]?.params??{},pattern:Ee(o.matches)})),o.fetchers.forEach((e,t)=>{void 0!==e.data&&S.current.set(t,e.data)}),a.forEach(e=>S.current.delete(e)),bn(!1===u||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let f=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(bn(null==d||f,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),d&&f){if(t&&u){t(()=>{y&&(m?.resolve(),y.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:d.currentLocation,nextLocation:d.nextLocation})});let r=e.window.document.startViewTransition(()=>{t(()=>s(o))});return r.finished.finally(()=>{t(()=>{g(void 0),v(void 0),p(void 0),h({isTransitioning:!1})})}),void t(()=>v(r))}y?(m?.resolve(),y.skipTransition(),_({state:o,currentLocation:d.currentLocation,nextLocation:d.nextLocation})):(p(o),h({isTransitioning:!0,flushSync:!1,currentLocation:d.currentLocation,nextLocation:d.nextLocation}))}else t&&u?t(()=>s(o)):!1===i?s(o):n.startTransition(()=>{!0===i&&l(e=>An(e,o)),s(o)})},[e.window,t,y,m,i,l,r]);n.useLayoutEffect(()=>e.subscribe(E),[e,E]),n.useEffect(()=>{f.isTransitioning&&!f.flushSync&&g(new xn)},[f]),n.useEffect(()=>{if(m&&d&&e.window){let t=d,r=m.promise,o=e.window.document.startViewTransition(async()=>{!1===i?s(t):n.startTransition(()=>{!0===i&&l(e=>An(e,t)),s(t)}),await r});o.finished.finally(()=>{g(void 0),v(void 0),p(void 0),h({isTransitioning:!1})}),v(o)}},[d,m,e.window,i,l]),n.useEffect(()=>{m&&d&&c.location.key===d.location.key&&m.resolve()},[m,y,c.location,d]),n.useEffect(()=>{!f.isTransitioning&&b&&(p(b.state),h({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),_(void 0))},[f.isTransitioning,b]);let w=n.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,r,n)=>e.navigate(t,{state:r,preventScrollReset:n?.preventScrollReset}),replace:(t,r,n)=>e.navigate(t,{replace:!0,state:r,preventScrollReset:n?.preventScrollReset})}),[e]),T=e.basename||"/",x=n.useMemo(()=>({router:e,navigator:w,static:!1,basename:T,onError:r}),[e,w,T,r]);return n.createElement(n.Fragment,null,n.createElement(dr.Provider,{value:x},n.createElement(pr.Provider,{value:c},n.createElement(gr.Provider,{value:S.current},n.createElement(mr.Provider,{value:f}
11,n.createElement(Dn,{basename:T,location:c.location,navigationType:c.historyAction,navigator:w,useTransitions:i},n.createElement(Rn,{routes:e.routes,manifest:e.manifest,future:e.future,state:c,isStatic:!1,onError:r})))))),null)}function An(e,t){return{...e,navigation:"idle"!==t.navigation.state?t.navigation:e.navigation,revalidation:"idle"!==t.revalidation?t.revalidation:e.revalidation,actionData:"submitting"!==t.navigation.state?t.actionData:e.actionData,fetchers:t.fetchers}}var Rn=n.memo(Pn);function Pn({routes:e,manifest:t,future:r,state:n,isStatic:i,onError:o}){return Vr(e,void 0,{manifest:t,state:n,isStatic:i,onError:o,future:r})}function In({basename:e,children:t,initialEntries:r,initialIndex:i,useTransitions:o}){let a=n.useRef();null==a.current&&(a.current=g({initialEntries:r,initialIndex:i,v5Compat:!0}));let s=a.current,[c,l]=n.useState({action:s.action,location:s.location}),u=n.useCallback(e=>{!1===o?l(e):n.startTransition(()=>l(e))},[o]);return n.useLayoutEffect(()=>s.listen(u),[s,u]),n.createElement(Dn,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:s,useTransitions:o})}function Cn({to:e,replace:t,state:r,relative:i}){b(Ir(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=n.useContext(br);_(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=n.useContext(Sr),{pathname:s}=Cr(),c=Lr(),l=se(e,ae(a),s,"path"===i),u=JSON.stringify(l);return n.useEffect(()=>{c(JSON.parse(u),{replace:t,state:r,relative:i})},[c,u,i,t,r]),null}function kn(e){return jr(e.context)}function Mn(e){b(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Dn({basename:e="/",children:t=null,location:r,navigationType:i="POP",navigator:o,static:a=!1,useTransitions:s}){b(!Ir(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),l=n.useMemo(()=>({basename:c,navigator:o,static:a,useTransitions:s,future:{}}),[c,o,a,s]);"string"==typeof r&&(r=T(r));let{pathname:u="/",search:d="",hash:p="",state:f=null,key:h="default",mask:m}=r,g=n.useMemo(()=>{let e=ee(u,c);return null==e?null:{location:{pathname:e,search:d,hash:p,state:f,key:h,mask:m},navigationType:i}},[c,u,d,p,f,h,i,m]);return _(null!=g,`<Router basename="${c}"> is not able to match the URL "${u}${d}${p}" because it does not start with the basename, so the <Router> won't render anything.`),null==g?null:n.createElement(br.Provider,{value:l},n.createElement(_r.Provider,{children:t,value:g}))}function Nn({children:e,location:t}){return zr(jn(e),t)}function Ln({children:e,errorElement:t,resolve:r}){let i=n.useContext(dr),o=n.useContext(pr),a=n.useCallback((e,t)=>{i&&i.onError&&o&&i.onError(e,{location:o.location,params:o.matches[0]?.params||{},pattern:Ee(o.matches),errorInfo:t})},[i,o]);return n.createElement(Fn,{resolve:r,errorElement:t,onError:a},n.createElement(Bn,null,e))}var Fn=class extends n.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,i=null,o=0;if(r instanceof Promise)if(this.state.error){o=2;let e=this.state.error;i=Promise.reject().catch(()=>{}),Object.defineProperty(i,"_tracked",{get:()=>!0}),Object.defineProperty(i,"_error",{get:()=>e})}else r._tracked?(i=r,o="_error"in i?2:"_data"in i?1:0):(o=0,Object.defineProperty(r,"_tracked",{get:()=>!0}),i=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>{this.props.onError?.(e),Object.defineProperty(r,"_error",{get:()=>e})}));else o=1,i=Promise.resolve(),Object.defineProperty(i,"_tracked",{get:()=>!0}),Object.defineProperty(i,"_data",{get:()=>r});if(2===o&&!t)throw i._error;if(2===o)return n.createElement(yr.Provider,{value:i,children:t});if(1===o)return n.createElement(yr.Provider,{value:i,children:e});throw i}};function Bn({children:e}){let t=ln(),r="function"==typeof e?e(t):e;return n.createElement(n.Fragment,null,r)}function jn(e,t=[]){let r=[];
11return n.Children.forEach(e,(e,i)=>{if(!n.isValidElement(e))return;let o=[...t,i];if(e.type===n.Fragment)return void r.push.apply(r,jn(e.props.children,o));b(e.type===Mn,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),b(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=jn(e.props.children,o)),r.push(a)}),r}var Un=jn;function Hn(e){return Jr(e)}function zn(){return{params:Ur(),loaderData:on(),actionData:sn(),matches:nn()}}function Vn({children:e}){const t=zn();return n.cloneElement(e,t)}function Gn(e){return function(){const t=zn();return n.createElement(e,t)}}function $n(){return{params:Ur(),loaderData:on(),actionData:sn()}}function qn({children:e}){const t=$n();return n.cloneElement(e,t)}function Wn(e){return function(){const t=$n();return n.createElement(e,t)}}function Kn(){return{params:Ur(),loaderData:on(),actionData:sn(),error:cn()}}function Yn({children:e}){const t=Kn();return n.cloneElement(e,t)}function Jn(e){return function(){const t=Kn();return n.createElement(e,t)}}var Qn="get",Xn="application/x-www-form-urlencoded";function Zn(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function ei(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}var ti=null;var ri=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ni(e){return null==e||ri.has(e)?e:(_(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xn}"`),null)}function ii(e,t){let r,n,i,o,a;if(Zn(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");n=a?ee(a,t):null,r=e.getAttribute("method")||Qn,i=ni(e.getAttribute("enctype"))||Xn,o=new FormData(e)}else if(function(e){return Zn(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Zn(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(n=s?ee(s,t):null,r=e.getAttribute("formmethod")||a.getAttribute("method")||Qn,i=ni(e.getAttribute("formenctype"))||ni(a.getAttribute("enctype"))||Xn,o=new FormData(a,e),!function(){if(null===ti)try{new FormData(document.createElement("form"),0),ti=!1}catch(e){ti=!0}return ti}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,n)}}else{if(Zn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Qn,n=null,i=Xn,a=e}var s;return o&&"text/plain"===i&&(a=o,o=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:o,body:a}}var oi=-1,ai=-2,si=-3,ci=-4,li=-5,ui=-6,di=-7,pi="B",fi="D",hi="E",mi="M",gi="N",yi="P",vi="R",bi="S",_i="Y",Si="U",Ei="Z",wi=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};var Ti=1,xi=()=>Date.now(),Oi=()=>new Promise(e=>setTimeout(e,0));async function Ai(e){const{indices:t}=this,r=t.get(e);if(r)return[r];if(void 0===e)return di;if(null===e)return li;if(Number.isNaN(e))return ai;if(e===Number.POSITIVE_INFINITY)return ui;if(e===Number.NEGATIVE_INFINITY)return si;if(0===e&&1/e<0)return ci;const n=this.index++;t.set(e,n);const i=[[e,n]];return await Ri.call(this,i),n}async function Ri(e){const{deferred:t,indices:r,plugins:n,postPlugins:i}=this,o=this.stringified;let a=xi();const s=t=>{const n=r.get(t);if(n)return[n];if(void 0===t)return di;if(null===t)return li;if(Number.isNaN(t))return ai;if(t===Number.POSITIVE_INFINITY)return ui;if(t===Number.NEGATIVE_INFINITY)return si;if(0===t&&1/t<0)return ci;const i=this.index++;return r.set(t,i),e.push([t,i]),i};let c=0;for(;e.length>0;){const r=xi();++c%6e3==0&&r-a>=Ti&&(await Oi(),a=xi());const[l,u]=e.pop(),d=e=>Object.keys(e).map(t=>`"_${s(t)}":${s(e[t])}`).join(",");let p=null;switch(typeof l){case"boolean":case"number":case"string":o[u]=JSON.stringify(l);break;case"bigint":o[u]=`["${pi}","${l}"]`;break;
11case"symbol":{const e=Symbol.keyFor(l);e?o[u]=`["${_i}",${JSON.stringify(e)}]`:p=new Error("Cannot encode symbol unless created with Symbol.for()");break}case"object":{if(!l){o[u]=`${li}`;break}const e=Array.isArray(l);let r=!1;if(!e&&n)for(const e of n){const t=e(l);if(Array.isArray(t)){r=!0;const[e,...n]=t;o[u]=`[${JSON.stringify(e)}`,n.length>0&&(o[u]+=`,${n.map(e=>s(e)).join(",")}`),o[u]+="]";break}}if(!r){let r=e?"[":"{";if(e){for(let e=0;e<l.length;e++)r+=(e?",":"")+(e in l?s(l[e]):oi);o[u]=`${r}]`}else if(l instanceof Date){const e=l.getTime();o[u]=`["${fi}",${Number.isNaN(e)?JSON.stringify("invalid"):e}]`}else l instanceof URL?o[u]=`["${Si}",${JSON.stringify(l.href)}]`:l instanceof RegExp?o[u]=`["${vi}",${JSON.stringify(l.source)},${JSON.stringify(l.flags)}]`:l instanceof Set?l.size>0?o[u]=`["${bi}",${[...l].map(e=>s(e)).join(",")}]`:o[u]=`["${bi}"]`:l instanceof Map?l.size>0?o[u]=`["${mi}",${[...l].flatMap(([e,t])=>[s(e),s(t)]).join(",")}]`:o[u]=`["${mi}"]`:l instanceof Promise?(o[u]=`["${yi}",${u}]`,t[u]=l):l instanceof Error?(o[u]=`["${hi}",${JSON.stringify(l.message)}`,"Error"!==l.name&&(o[u]+=`,${JSON.stringify(l.name)}`),o[u]+="]"):null===Object.getPrototypeOf(l)?o[u]=`["${gi}",{${d(l)}}]`:Ii(l)?o[u]=`{${d(l)}}`:p=new Error("Cannot encode object with prototype")}break}default:{let e=!1;if(!Array.isArray(l)&&n)for(const t of n){const r=t(l);
11if(Array.isArray(r)){e=!0;const[t,...n]=r;o[u]=`[${JSON.stringify(t)}`,n.length>0&&(o[u]+=`,${n.map(e=>s(e)).join(",")}`),o[u]+="]";break}}e||(p=new Error("Cannot encode function or unexpected type"))}}if(p){let e=!1;if(i)for(const t of i){const r=t(l);if(Array.isArray(r)){e=!0;const[t,...n]=r;o[u]=`[${JSON.stringify(t)}`,n.length>0&&(o[u]+=`,${n.map(e=>s(e)).join(",")}`),o[u]+="]";break}}if(!e)throw p}}}var Pi=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ii(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t||Object.getOwnPropertyNames(t).sort().join("\0")===Pi}var Ci="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:void 0;function ki(e){const{hydrated:t,values:r}=this;if("number"==typeof e)return Mi.call(this,e);if(!Array.isArray(e)||!e.length)throw new SyntaxError;const n=r.length;for(const t of e)r.push(t);return t.length=r.length,Mi.call(this,n)}function Mi(e){const{hydrated:t,values:r,deferred:n,plugins:i}=this;let o;const a=[[e,e=>{o=e}]];let s=[];for(;a.length>0;){const[e,o]=a.pop();switch(e){case di:o(void 0);continue;case li:o(null);continue;case ai:o(NaN);continue;case ui:o(1/0);continue;case si:o(-1/0);continue;case ci:o(-0);continue}if(t[e]){o(t[e]);continue}const c=r[e];if(c&&"object"==typeof c){if(!Array.isArray(c)){const r={};t[e]=r;for(const e of Object.keys(c).reverse()){const t=[];a.push([c[e],e=>{t[1]=e}]),a.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{r[t[0]]=t[1]})}o(r);continue}if("string"!=typeof c[0]){const r=[];t[e]=r;for(let e=0;e<c.length;e++){const t=c[e];t!==oi&&a.push([t,t=>{r[e]=t}])}o(r);continue}{const[r,l,u]=c;switch(r){case fi:o(t[e]=new Date(l));continue;case Si:o(t[e]=new URL(l));continue;case pi:o(t[e]=BigInt(l));continue;case vi:o(t[e]=new RegExp(l,u));continue;case _i:o(t[e]=Symbol.for(l));continue;case bi:const r=new Set;t[e]=r;for(let e=c.length-1;e>0;e--)a.push([c[e],e=>{r.add(e)}]);o(r);continue;case mi:const d=new Map;t[e]=d;for(let e=c.length-2;e>0;e-=2){const t=[];a.push([c[e+1],e=>{t[1]=e}]),a.push([c[e],e=>{t[0]=e}]),s.push(()=>{d.set(t[0],t[1])})}o(d);continue;case gi:const p=Object.create(null);t[e]=p;for(const e of Object.keys(l).reverse()){const t=[];a.push([l[e],e=>{t[1]=e}]),a.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{p[t[0]]=t[1]})}o(p);continue;case yi:if(t[l])o(t[e]=t[l]);else{const r=new wi;n[l]=r,o(t[e]=r.promise)}continue;case hi:const[,f,h]=c;let m=h&&Ci&&be.includes(h)&&h in Ci&&"function"==typeof Ci[h]?new Ci[h](f):new Error(f);t[e]=m,o(m);continue;case Ei:o(t[e]=t[l]);continue;default:if(Array.isArray(i)){const r=[],n=c.slice(1);for(let e=0;e<n.length;e++){const t=n[e];a.push([t,t=>{r[e]=t}])}s.push(()=>{for(const n of i){const i=n(c[0],...r);if(i)return void o(t[e]=i.value)}throw new SyntaxError});continue}throw new SyntaxError}}}else t[e]=c,o(c)}for(;s.length>0;)s.pop()();return o}async function Di(e,t){const{plugins:r}=t??{},n=new wi,i=e.pipeThrough(function(){const e=new TextDecoder;let t="";return new TransformStream({transform(r,n){const i=e.decode(r,{stream:!0}),o=(t+i).split("\n");t=o.pop()||"";for(const e of o)n.enqueue(e)},flush(e){t&&e.enqueue(t)}})}()).getReader(),o={values:[],hydrated:[],deferred:{},plugins:r},a=await Ni.call(o,i);let s=n.promise;return a.done?n.resolve():s=Li.call(o,i).then(n.resolve).catch(e=>{for(const t of Object.values(o.deferred))t.reject(e);n.reject(e)}),{done:s.then(()=>i.closed),value:a.value}}async function Ni(e){const t=await e.read();if(!t.value)throw new SyntaxError;let r;try{r=JSON.parse(t.value)}catch(e){throw new SyntaxError}return{done:t.done,value:ki.call(this,r)}}async function Li(e){let t=await e.read();for(;!t.done;){if(!t.value)continue;const r=t.value;switch(r[0]){case yi:{const e=r.indexOf(":"),t=Number(r.slice(1,e)),n=this.deferred[t];if(!n)throw new Error(`Deferred ID ${t} not found in stream`);const i=r.slice(e+1);let o;try{o=JSON.parse(i)}catch(e){throw new SyntaxError}const a=ki.call(this,o);n.resolve(a);break}case hi:{const e=r.indexOf(":"),t=Number(r.slice(1,e)),n=this.deferred[t];if(!n)throw new Error(`Deferred ID ${t} not found in stream`);const i=r.slice(e+1);let o;try{o=JSON.parse(i)}catch(e){throw new SyntaxError}const a=ki.call(this,o);n.reject(a);break}default:throw new SyntaxError}t=await e.read()}}function Fi(e,t){const{onComplete:r,plugins:n,postPlugins:i,signal:o}=t??{},a={deferred:{},index:0,indices:new Map,stringified:[],plugins:n,postPlugins:i,signal:o},s=new TextEncoder;let c=0;return new ReadableStream({async start(t){const n=await Ai.call(a,e);if(Array.isArray(n))throw new Error("This should never happen");n<0?t.enqueue(s.encode(`${n}\n`)):(t.enqueue(s.encode(`[${a.stringified.join(",")}]\n`)),c=a.stringified.length-1);const i=new WeakSet;let l=Promise.resolve();if(Object.keys(a.deferred).length){let e;const r=new Promise((t,r)=>{if(e=t,o){const e=()=>r(o.reason||new Error("Signal was aborted."));o.aborted?e():o.addEventListener("abort",t=>{e()})}});for(;Object.keys(a.deferred).length>0;){for(const[e,n]of Object.entries(a.deferred))i.has(n)||i.add(a.deferred[Number(e)]=Promise.race([r,n]).then(r=>(l=l.then(async()=>{const n=await Ai.call(a,r);if(Array.isArray(n))t.enqueue(s.encode(`${yi}${e}:[["${Ei}",${n[0]}]]\n`)),a.index++,c++;else if(n<0)t.enqueue(s.encode(`${yi}${e}:${n}\n`));else{const r=a.stringified.slice(c+1).join(",");t.enqueue(s.encode(`${yi}${e}:[${r}]\n`)),c=a.stringified.length-1}}),l),r=>(l=l.then(async()=>{r&&"object"==typeof r&&r instanceof Error||(r=new Error("An unknown error occurred"));const n=await Ai.call(a,r);if(Array.isArray(n))t.enqueue(s.encode(`${hi}${e}:[["${Ei}",${n[0]}]]\n`)),a.index++,c++;else if(n<0)t.enqueue(s.encode(`${hi}${e}:${n}\n`));else{const r=a.stringified.slice(c+1).join(",");t.enqueue(s.encode(`${hi}${e}:[${r}]\n`)),c=a.stringified.length-1}}),l)).finally(()=>{delete a.deferred[Number(e)]}));await Promise.race(Object.values(a.deferred))}e()}await Promise.all(Object.values(a.deferred)),await l,t.close(),r?.()}})}async function Bi(e){let t={signal:e.signal};if("GET"!==e.method){t.method=e.method;let r=e.headers.get("Content-Type");r&&/\bapplication\/json\b/.test(r)?(t.headers={"Content-Type":r},t.body=JSON.stringify(await e.json())):r&&/\btext\/plain\b/.test(r)?(t.headers={"Content-Type":r},t.body=await e.text()):r&&/\bapplication\/x-www-form-urlencoded\b/.test(r)?t.body=new URLSearchParams(await e.text()):t.body=await e.formData()}return t}var ji={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Ui=/[&><\u2028\u2029]/g;function Hi(e){return e.replace(Ui,e=>ji[e])}function zi(e,t){if(!1===e||null==e)throw new Error(t)}
11var Vi,Gi=Symbol("SingleFetchRedirect"),$i=class extends Error{},qi=202,Wi=new Set([100,101,204,205]);function Ki({context:e,identifier:t,reader:r,textDecoder:i,nonce:o}){if(!e.renderMeta||!e.renderMeta.didRenderScripts)return null;e.renderMeta.streamCache||(e.renderMeta.streamCache={});let{streamCache:a}=e.renderMeta,s=a[t];if(s||(s=a[t]=r.read().then(e=>{a[t].result={done:e.done,value:i.decode(e.value,{stream:!0})}}).catch(e=>{a[t].error=e})),s.error)throw s.error;if(void 0===s.result)throw s;let{done:c,value:l}=s.result,u=l?n.createElement("script",{nonce:o,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.enqueue(${Hi(JSON.stringify(l))});`}}):null;return c?n.createElement(n.Fragment,null,u,n.createElement("script",{nonce:o,dangerouslySetInnerHTML:{__html:"window.__reactRouterContext.streamController.close();"}})):n.createElement(n.Fragment,null,u,n.createElement(n.Suspense,null,n.createElement(Ki,{context:e,identifier:t+1,reader:r,textDecoder:i,nonce:o})))}function Yi(e,t,r,n,i,o){let a=Ji(e,e=>{let r=t.routes[e.route.id];return zi(r,"Route not found in manifest"),{hasLoader:r.hasLoader,hasClientLoader:r.hasClientLoader}},Zi,n,i,o);return async e=>e.runClientMiddleware(a)}function Ji(e,t,r,n,i,o,a=()=>!0){return async s=>{let{request:c,matches:l,fetcherKey:u}=s,d=e();if("GET"!==c.method)return async function(e,t,r,n){let i=e.matches.find(e=>e.shouldCallHandler());zi(i,"No action match found");let o,a=await i.resolve(async a=>await a(async()=>{let{data:a,status:s}=await t(e,r,n,[i.route.id]);return o=s,to(a,i.route.id)}));if(Zt(a.result)||Se(a.result)||Xt(a.result))return{[i.route.id]:a};return{[i.route.id]:{type:a.type,result:me(a.result,o)}}}(s,r,i,o);let p=l.some(e=>{let{hasLoader:r,hasClientLoader:n}=t(e);return e.shouldCallHandler()&&r&&!n});return n||p?u?async function(e,t,r,n){let i=e.matches.find(e=>e.shouldCallHandler());zi(i,"No fetcher match found");let o=i.route.id,a=await i.resolve(async i=>i(async()=>{let{data:i}=await t(e,r,n,[o]);return to(i,o)}));return{[i.route.id]:a}}(s,r,i,o):async function(e,t,r,n,i,o,a,s=()=>!0){let c=new Set,l=!1,u=e.matches.map(()=>ro()),d=ro(),p={},f=Promise.all(e.matches.map(async(t,i)=>t.resolve(async f=>{u[i].resolve();let h=t.route.id,{hasLoader:m,hasClientLoader:g}=r(t),y=!t.shouldRevalidateArgs||null==t.shouldRevalidateArgs.actionStatus||t.shouldRevalidateArgs.actionStatus<400;if(t.shouldCallHandler(y))if(s(t)&&g){m&&(l=!0);try{let t=await f(async()=>{let{data:t}=await n(e,o,a,[h]);return to(t,h)});p[h]={type:"data",result:t}}catch(e){p[h]={type:"error",result:e}}}else{m&&c.add(h);try{let e=await f(async()=>to(await d.promise,h));p[h]={type:"data",result:e}}catch(e){p[h]={type:"error",result:e}}}else l||(l=null!=t.shouldRevalidateArgs&&m)})));await Promise.all(u.map(e=>e.promise));let h=!t.state.initialized&&"idle"===t.state.navigation.state;if(!h&&0!==c.size||window.__reactRouterHdrActive){let t=i&&l&&c.size>0?[...c.keys()]:void 0;try{let r=await n(e,o,a,t);d.resolve(r.data)}catch(e){d.reject(e)}}else d.resolve({routes:{}});return await f,await async function(e,t,r,n){try{let i,o=await e;if("routes"in o)for(let e of t)if(e.route.id in o.routes){let t=o.routes[e.route.id];if("error"in t){i=t.error,null==n[e.route.id]?.result&&(n[e.route.id]={type:"error",result:i});break}}void 0!==i&&Array.from(r.values()).forEach(e=>{n[e].result instanceof $i&&(n[e].result=i)})}catch(e){}}(d.promise,e.matches,c,p),p}(s,d,t,r,n,i,o,a):async function(e,t,r,n,i){let o=e.matches.filter(e=>e.shouldCallHandler()),a={};return await Promise.all(o.map(o=>o.resolve(async s=>{try{let{hasClientLoader:c}=t(o),l=o.route.id,u=c?await s(async()=>{let{data:t}=await r(e,n,i,[l]);return to(t,l)}):await s();a[o.route.id]={type:"data",result:u}}catch(e){a[o.route.id]={type:"error",result:e}}}))),a}(s,t,r,i,o)}}function Qi(e){let t=e.searchParams.getAll("index");e.searchParams.delete("index");let r=[];for(let e of t)e&&r.push(e);for(let t of r)e.searchParams.append("index",t);return e}function Xi(e,t,r,n){let i="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return r?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${n}`:i.pathname=`${i.pathname}.${n}`:"/"===i.pathname?i.pathname=`_root.${n}`:t&&"/"===ee(i.pathname,t)?i.pathname=`${ue(t)}
11/_root.${n}`:i.pathname=`${ue(i.pathname)}.${n}`,i}async function Zi(e,t,r,n){let{request:i}=e,o=Xi(i.url,t,r,"data");"GET"===i.method&&(o=Qi(o),n&&o.searchParams.set("_routes",n.join(",")));let a=await fetch(o,await Bi(i));if(a.status>=400&&!a.headers.has("X-Remix-Response"))throw new _e(a.status,a.statusText,await a.text());if(204===a.status&&a.headers.has("X-Remix-Redirect"))return{status:qi,data:{redirect:{redirect:a.headers.get("X-Remix-Redirect"),status:Number(a.headers.get("X-Remix-Status")||"302"),revalidate:"true"===a.headers.get("X-Remix-Revalidate"),reload:"true"===a.headers.get("X-Remix-Reload-Document"),replace:"true"===a.headers.get("X-Remix-Replace")}}};if(Wi.has(a.status)){let e={};return n&&"GET"!==i.method&&(e[n[0]]={data:void 0}),{status:a.status,data:{routes:e}}}zi(a.body,"No response body to decode");try{let e,t=await eo(a.body,window);if("GET"===i.method){let r=t.value;e=Gi in r?{redirect:r[Gi]}:{routes:r}}else{let r=t.value,i=n?.[0];zi(i,"No routeId found for single fetch call decoding"),e="redirect"in r?{redirect:r}:{routes:{[i]:r}}}return{status:a.status,data:e}}catch(e){throw new Error("Unable to decode turbo-stream response")}}function eo(e,t){return Di(e,{plugins:[(e,...r)=>{if("SanitizedError"===e){let[e,n,i]=r,o=Error;e&&be.includes(e)&&e in t&&"function"==typeof t[e]&&(o=t[e]);let a=new o(n);return a.stack=i,{value:a}}if("ErrorResponse"===e){let[e,t,n]=r;return{value:new _e(t,n,e)}}return"SingleFetchRedirect"===e?{value:{[Gi]:r[0]}}:"SingleFetchClassInstance"===e?{value:r[0]}:"SingleFetchFallback"===e?{value:void 0}:void 0}]})}function to(e,t){if("redirect"in e){let{redirect:t,revalidate:r,reload:n,replace:i,status:o}=e.redirect;throw ge(t,{status:o,headers:{...r?{"X-Remix-Revalidate":"yes"}:null,...n?{"X-Remix-Reload-Document":"yes"}:null,...i?{"X-Remix-Replace":"yes"}:null}})}let r=e.routes[t];if(null==r)throw new $i(`No result found for routeId "${t}"`);if("error"in r)throw r.error;if("data"in r)return r.data;throw new Error(`Invalid response found for routeId "${t}"`)}function ro(){let e,t,r=new Promise((n,i)=>{e=async e=>{n(e);try{await r}catch(e){}},t=async e=>{i(e);try{await r}catch(e){}}});return{promise:r,resolve:e,reject:t}}async function no(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function io(e){return e.css?e.css.map(e=>({rel:"stylesheet",href:e})):[]}async function oo(e,t){if(!e.css&&!t.links||!function(){if(void 0!==Vi)return Vi;let e=document.createElement("link");return Vi=e.relList.supports("preload"),e=null,Vi}())return;let r=[];if(e.css&&r.push(...io(e)),t.links&&r.push(...t.links()),0===r.length)return;let n=[];for(let e of r)so(e)||"stylesheet"!==e.rel||n.push({...e,rel:"preload",as:"style"});await Promise.all(n.map(ao))}async function ao(e){return new Promise(t=>{if(e.media&&!window.matchMedia(e.media).matches||document.querySelector(`link[rel="stylesheet"][href="${e.href}"]`))return t();let r=document.createElement("link");function n(){document.head.contains(r)&&document.head.removeChild(r)}Object.assign(r,e),r.onload=()=>{n(),t()},r.onerror=()=>{n(),t()},document.head.appendChild(r)})}function so(e){return null!=e&&"string"==typeof e.page}function co(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function lo(e,t,r,n,i,o){let a=(e,t)=>!r[t]||e.route.id!==r[t].route.id,s=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>a(e,t)||s(e,t)):"data"===o?t.filter((t,o)=>{let c=n.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(a(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function uo(e,t,{includeHydrateFallback:r}={}){return n=e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let i=[n.module];return n.clientActionModule&&(i=i.concat(n.clientActionModule)),n.clientLoaderModule&&(i=i.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(i=i.concat(n.hydrateFallbackModule)),n.imports&&(i=i.concat(n.imports)),i}).flat(1),[...new Set(n)];var n}function po(e,t){let r=new Set,n=new Set(t);return e.reduce((e,i)=>{if(t&&!so(i)&&"script"===i.as&&i.href&&n.has(i.href))return e;let o=JSON.stringify(function(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}(i));
11return r.has(o)||(r.add(o),e.push({key:o,link:i})),e},[])}function fo(){let{nonce:e}=Bo();return n.createElement(ea,{title:"Loading...",renderScripts:!0},wr?n.createElement("script",{nonce:e,dangerouslySetInnerHTML:{__html:'\n              console.log(\n                "💿 Hey developer 👋. You can provide a way better UX than this " +\n                "when your app is loading JS modules and/or running `clientLoader` " +\n                "functions. Check out https://reactrouter.com/start/framework/route-module#hydratefallback " +\n                "for more information."\n              );\n            '}}):null)}function ho(e){let t={};return Object.values(e).forEach(e=>{if(e){let r=e.parentId||"";t[r]||(t[r]=[]),t[r].push(e)}}),t}function mo(e,t,r){let i=Eo(t),o=!t.HydrateFallback||r&&"root"!==e.id?"root"===e.id?fo:void 0:t.HydrateFallback,a=t.ErrorBoundary?t.ErrorBoundary:"root"===e.id?()=>n.createElement(Zo,{error:cn()}):void 0;return"root"===e.id&&t.Layout?{...i?{element:n.createElement(t.Layout,null,n.createElement(i,null))}:{Component:i},...a?{errorElement:n.createElement(t.Layout,null,n.createElement(a,null))}:{ErrorBoundary:a},...o?{hydrateFallbackElement:n.createElement(t.Layout,null,n.createElement(o,null))}:{HydrateFallback:o}}:{Component:i,ErrorBoundary:a,HydrateFallback:o}}function go(e,t,r,n,i="",o=ho(e),a=Promise.resolve({Component:()=>null})){return(o[i]||[]).map(i=>{let s=t[i.id];zi(s,"No `routeModule` available to create server routes");let c={...mo(i,s,n),caseSensitive:i.caseSensitive,id:i.id,index:i.index,path:i.path,handle:s.handle,lazy:n?()=>a:void 0,loader:i.hasLoader||i.hasClientLoader?()=>null:void 0},l=go(e,t,r,n,i.id,o,a);return l.length>0&&(c.children=l),c})}function yo(e,t,r,n,i,o){return _o(t,r,n,i,o,"",ho(t),e)}function vo(e,t){if("loader"===e&&!t.hasLoader||"action"===e&&!t.hasAction){let r=`You are trying to call ${"action"===e?"serverAction()":"serverLoader()"} on a route that does not have a server ${e} (routeId: "${t.id}")`;throw console.error(r),new _e(400,"Bad Request",new Error(r),!0)}}function bo(e,t){let r="clientAction"===e?"a":"an",n=`Route "${t}" does not have ${r} ${e}, but you are trying to submit to it. To fix this, please add ${r} \`${e}\` function to the route`;throw console.error(n),new _e(405,"Method Not Allowed",new Error(n),!0)}function _o(e,t,r,n,i,o="",a=ho(e),s){return(a[o]||[]).map(o=>{let c=t[o.id];function l(e){return zi("function"==typeof e,"No single fetch function available for route handler"),e()}function u(e){return o.hasLoader?l(e):Promise.resolve(null)}function d(e){if(!o.hasAction)throw bo("action",o.id);return l(e)}function p(e){import(e)}function f(e){e.clientActionModule&&p(e.clientActionModule),e.clientLoaderModule&&p(e.clientLoaderModule)}async function h(e){let r=t[o.id],n=r?oo(o,r):Promise.resolve();try{return e()}finally{await n}}let m={id:o.id,index:o.index,path:o.path};if(c){Object.assign(m,{...m,...mo(o,c,i),middleware:c.clientMiddleware,handle:c.handle,shouldRevalidate:So(m.path,c,o,n,s)});let y=r&&r.loaderData&&o.id in r.loaderData,v=y?r?.loaderData?.[o.id]:void 0,b=r&&r.errors&&o.id in r.errors,_=b?r?.errors?.[o.id]:void 0,S=null==s&&(!0===c.clientLoader?.hydrate||!o.hasLoader);m.loader=async({request:e,params:t,context:r,pattern:n,url:i},a)=>{let s=S;return S=!1,await h(async()=>(zi(c,"No `routeModule` available for critical-route loader"),c.clientLoader?c.clientLoader({request:e,params:t,context:r,pattern:n,url:i,async serverLoader(){if
11(vo("loader",o),s){if(y)return v;if(b)throw _}return u(a)}}):u(a)))},m.loader.hydrate=wo(o.id,c.clientLoader,o.hasLoader,i),m.action=({request:e,params:t,context:r,pattern:n,url:a},s)=>h(async()=>{if(zi(c,"No `routeModule` available for critical-route action"),!c.clientAction){if(i)throw bo("clientAction",o.id);return d(s)}return c.clientAction({request:e,params:t,context:r,pattern:n,url:a,serverAction:async()=>(vo("action",o),d(s))})})}else{let E;async function w(){return E||(E=(async()=>{(o.clientLoaderModule||o.clientActionModule)&&await new Promise(e=>setTimeout(e,0));let e=async function(e,t){let r=no(e,t),n=async function(e){if(!e.css)return;let t=io(e);await Promise.all(t.map(ao))}(e),i=await r;return await Promise.all([n,oo(e,i)]),{Component:Eo(i),ErrorBoundary:i.ErrorBoundary,clientMiddleware:i.clientMiddleware,clientAction:i.clientAction,clientLoader:i.clientLoader,handle:i.handle,links:i.links,meta:i.meta,shouldRevalidate:i.shouldRevalidate}}(o,t);return f(o),await e})()),await E}o.hasClientLoader||(m.loader=(e,t)=>h(()=>u(t))),o.hasClientAction||(m.action=(e,t)=>h(()=>{if(i)throw bo("clientAction",o.id);return d(t)})),m.lazy={loader:o.hasClientLoader?async()=>{let{clientLoader:e}=o.clientLoaderModule?await import(o.clientLoaderModule):await w();return zi(e,"No `clientLoader` export found"),(t,r)=>e({...t,serverLoader:async()=>(vo("loader",o),u(r))})}:void 0,action:o.hasClientAction?async()=>{let e=o.clientActionModule?import(o.clientActionModule):w();f(o);let{clientAction:t}=await e;return zi(t,"No `clientAction` export found"),(e,r)=>t({...e,serverAction:async()=>(vo("action",o),d(r))})}:void 0,middleware:o.hasClientMiddleware?async()=>{let{clientMiddleware:e}=o.clientMiddlewareModule?await import(o.clientMiddlewareModule):await w();return zi(e,"No `clientMiddleware` export found"),e}:void 0,shouldRevalidate:async()=>{let e=await w();return So(m.path,e,o,n,s)},handle:async()=>(await w()).handle,Component:async()=>(await w()).Component,ErrorBoundary:o.hasErrorBoundary?async()=>(await w()).ErrorBoundary:void 0}}let g=_o(e,t,r,n,i,o.id,a,s);return g.length>0&&(m.children=g),m})}function So(e,t,r,n,i){if(i)return function(e,t,r){let n=!1;return i=>n?t?t(i):i.defaultShouldRevalidate:(n=!0,r.has(e))}(r.id,t.shouldRevalidate,i);if(!n&&r.hasLoader&&!r.hasClientLoader){let r=e?X(e)[1].map(e=>e.paramName):[];const n=e=>r.some(t=>e.currentParams[t]!==e.nextParams[t]);if(t.shouldRevalidate){let e=t.shouldRevalidate;return t=>e({...t,defaultShouldRevalidate:n(t)})}return e=>n(e)}return t.shouldRevalidate}function Eo(e){if(null==e.default)return;return"object"==typeof e.default&&0===Object.keys(e.default).length?void 0:e.default}function wo(e,t,r,n){return n&&"root"!==e||null!=t&&(!0===t.hydrate||!0!==r)}var To=new Set,xo=1e3,Oo=new Set,Ao=7680;function Ro(e){let t=new Set;return e.forEach(e=>{e.startsWith("/")||(e=`/${e}`);for(let r=1;r<e.length;r++)"/"===e[r]&&t.add(e.slice(0,r));t.add(e)}),Array.from(t)}function Po(e,t){return"lazy"===e.mode&&!0===t}function Io(e,t,r,n,i,o,a){if(Po(i,n))return async({path:s,patch:c,signal:l,fetcherKey:u})=>{if(Oo.has(s))return;let{state:d}=e();await Do([s],u?window.location.href:w(d.navigation.location||d.location),t,r,n,o,a,i.manifestPath,c,l)}}function Co(e,t,r,i,o,a){n.useEffect(()=>{if(!Po(o,i)||!0===window.navigator?.connection?.saveData)return;function n(e){let t="FORM"===e.tagName?e.getAttribute("action"):e.getAttribute("href");if(!t)return;let r="A"===e.tagName?e.pathname:new URL(t,window.location.origin).pathname;Oo.has(r)||To.add(r)}async function s(){document.querySelectorAll("a[data-discover], form[data-discover]").forEach(n);let s=Array.from(To.keys()).filter(e=>!Oo.has(e)||(To.delete(e),!1));if(0!==s.length)try{await Do(s,null,t,r,i,a,e.basename,o.manifestPath,e.patchRoutes)}catch(e){console.error("Failed to fetch manifest patches",e)}}let c=function(e,t){let r;return(...n)=>{window.clearTimeout(r),r=window.setTimeout(()=>e(...n),t)}}(s,100);s();let l=new MutationObserver(()=>c());return l.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-discover","href","action"]}),()=>l.disconnect()},[i,a,t,r,e,o])}function ko(e,t){let r=e||"/__manifest";return null==t?r:le([t,r])}var Mo="react-router-manifest-version";async function Do(e,t,r,n,i,o,a,s,c,l){e=Ro(e);const u=new URLSearchParams;u.set("paths",e.sort().join(",")),u.set("version",r.version);let d,p=new URL(ko(s,a),window.location.origin);if(p.search=u.toString(),p.toString().length>Ao)return void To.clear();try{let e=await fetch(p,{signal:l});if(!e.ok)throw new Error(`${e.status} ${e.statusText}`);if(204===e.status&&e.headers.has("X-Remix-Reload-Document")){if(!t)return void console.warn("Detected a manifest version mismatch during eager route discovery. The next navigation/fetch to an undiscovered route will result in a 
11new document navigation to sync up with the latest manifest.");try{if(sessionStorage.getItem(Mo)===r.version)return void console.error("Unable to discover routes due to manifest version mismatch.");sessionStorage.setItem(Mo,r.version)}catch{}window.location.href=t,console.warn("Detected manifest version mismatch, reloading..."),await new Promise(()=>{})}else if(e.status>=400)throw new Error(await e.text());try{sessionStorage.removeItem(Mo)}catch{}d=await e.json()}catch(e){if(l?.aborted)return;throw e}let f=new Set(Object.keys(r.routes)),h=Object.values(d).reduce((e,t)=>(t&&!f.has(t.id)&&(e[t.id]=t),e),{});Object.assign(r.routes,h),e.forEach(e=>function(e,t){if(t.size>=xo){let e=t.values().next().value;t.delete(e)}t.add(e)}(e,Oo));let m=new Set;Object.values(h).forEach(e=>{!e||e.parentId&&h[e.parentId]||m.add(e.parentId)}),m.forEach(e=>c(e||null,_o(h,n,null,i,o,e)))}function No(){let e=n.useContext(dr);return zi(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Lo(){let e=n.useContext(pr);return zi(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Fo=n.createContext(void 0);function Bo(){let e=n.useContext(Fo);return zi(e,"You must render this element inside a <HydratedRouter> element"),e}function jo(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Uo(e,t,r){if(r&&!Ko)return[e[0]];if(t){let r=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,r+1)}return e}Fo.displayName="FrameworkContext";var Ho="data-react-router-critical-css";function zo({nonce:e,crossOrigin:t}){let{isSpaMode:r,manifest:i,routeModules:o,criticalCss:a,nonce:s}=Bo(),{errors:c,matches:l}=Lo(),u=Uo(l,c,r),d=n.useMemo(()=>function(e,t,r){return po(e.map(e=>{let n=t[e.route.id],i=r.routes[e.route.id];return[i&&i.css?i.css.map(e=>({rel:"stylesheet",href:e})):[],n?.links?.()||[]]}).flat(2),uo(e,r))}(u,o,i),[u,o,i]);return null==e&&s&&(e=s),n.createElement(n.Fragment,null,"string"==typeof a?n.createElement("style",{[Ho]:"",nonce:e,dangerouslySetInnerHTML:{__html:a}}):null,"object"==typeof a?n.createElement("link",{[Ho]:"",rel:"stylesheet",href:a.href,nonce:e,crossOrigin:t}):null,d.map(({key:r,link:i})=>so(i)?n.createElement(Vo,{key:r,nonce:e,...i,crossOrigin:i.crossOrigin??t}):n.createElement("link",{key:r,nonce:e,...i,crossOrigin:i.crossOrigin??t})))}function Vo({page:e,...t}){let r=hr(),{nonce:i}=Bo(),{router:o}=No(),a=n.useMemo(()=>D(o.routes,e,o.basename),[o.routes,e,o.basename]);return a?(null==t.nonce&&i&&(t={...t,nonce:i}),r?n.createElement($o,{page:e,matches:a,...t}):n.createElement(qo,{page:e,matches:a,...t})):null}function Go(e){let{manifest:t,routeModules:r}=Bo(),[i,o]=n.useState([]);return n.useEffect(()=>{let n=!1;return async function(e,t,r){return po((await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await no(n,r);return e.links?e.links():[]}return[]}))).flat(1).filter(co).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,r).then(e=>{n||o(e)}),()=>{n=!0}},[e,t,r]),i}function $o({page:e,matches:t,...r}){let i=Cr(),{future:o}=Bo(),{basename:a}=No(),s=n.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let r=Xi(e,a,o.v8_trailingSlashAwareDataRequests,"rsc"),n=!1,s=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?n=!0:s.push(e.route.id);return n&&s.length>0&&r.searchParams.set("_routes",s.join(",")),[r.pathname+r.search]},[a,o.v8_trailingSlashAwareDataRequests,e,i,t]);return n.createElement(n.Fragment,null,s.map(e=>n.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})))}function qo({page:e,matches:t,...r}){let i=Cr(),{future:o,manifest:a,routeModules:s}=Bo(),{basename:c}=No(),{loaderData:l,matches:u}=Lo(),d=n.useMemo(()=>lo(e,t,u,a,i,"data"),[e,t,u,a,i]),p=n.useMemo(()=>lo(e,t,u,a,i,"assets"),[e,t,u,a,i]),f=n.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let r=new Set,n=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!d.some(t=>t.route.id===e.route.id)&&e.route.id in l&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?n=!0:r.add(e.route.id))}),0===r.size)return[];let u=Xi(e,c,o.v8_trailingSlashAwareDataRequests,"data");return n&&r.size>0&&u.searchParams.set("_routes",t.filter(e=>r.has(e.route.id)).map(e=>e.route.id).join(",")),[u.pathname+u.search]},[c,o.v8_trailingSlashAwareDataRequests,l,i,a,d,t,e,s]),h=n.useMemo(()=>uo(p,a),[p,a]),m=Go(p);return n.createElement(n.Fragment,null,f.map(e=>n.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),h.map(e=>n.createElement("link",{key:e,rel:"modulepreload",href:e,...r})),m.map(({key:e,link:t})=>n.createElement("link",{key:e,nonce:r.nonce,...t,crossOrigin:t.crossOrigin??r.crossOrigin})))}
11function Wo(){let{isSpaMode:e,routeModules:t}=Bo(),{errors:r,matches:i,loaderData:o}=Lo(),a=Cr(),s=Uo(i,r,e),c=null;r&&(c=r[s[s.length-1].route.id]);let l=[],u=null,d=[];for(let e=0;e<s.length;e++){let r=s[e],n=r.route.id,i=o[n],p=r.params,f=t[n],h=[],m={id:n,data:i,loaderData:i,meta:[],params:r.params,pathname:r.pathname,handle:r.route.handle,error:c};if(d[e]=m,f?.meta?h="function"==typeof f.meta?f.meta({data:i,loaderData:i,params:p,location:a,matches:d,error:c}):Array.isArray(f.meta)?[...f.meta]:f.meta:u&&(h=[...u]),h=h||[],!Array.isArray(h))throw new Error("The route at "+r.route.path+" returns an invalid value. All route meta functions must return an array of meta objects.\n\nTo reference the meta function API, see https://reactrouter.com/start/framework/route-module#meta");m.meta=h,d[e]=m,l=[...h],u=l}return n.createElement(n.Fragment,null,l.flat().map(e=>{if(!e)return null;if("tagName"in e){let{tagName:t,...r}=e;if(!function(e){return"string"==typeof e&&/^(meta|link)$/.test(e)}(t))return console.warn(`A meta object uses an invalid tagName: ${t}. Expected either 'link' or 'meta'`),null;let i=t;return n.createElement(i,{key:JSON.stringify(r),...r})}if("title"in e)return n.createElement("title",{key:"title"},String(e.title));if("charset"in e&&(e.charSet??(e.charSet=e.charset),delete e.charset),"charSet"in e&&null!=e.charSet)return"string"==typeof e.charSet?n.createElement("meta",{key:"charSet",charSet:e.charSet}):null;if("script:ld+json"in e)try{let t=JSON.stringify(e["script:ld+json"]);return n.createElement("script",{key:`script:ld+json:${t}`,type:"application/ld+json",dangerouslySetInnerHTML:{__html:Hi(t)}})}catch(e){return null}return n.createElement("meta",{key:JSON.stringify(e),...e})}))}var Ko=!1;function Yo(){Ko=!0}function Jo(e){let{manifest:t,serverHandoffString:r,isSpaMode:i,renderMeta:o,routeDiscovery:a,ssr:s,nonce:c}=Bo(),{router:l,static:u,staticContext:d}=No(),{matches:p}=Lo(),f=hr(),h=Po(a,s);null==e.nonce&&c&&(e={...e,nonce:c}),o&&(o.didRenderScripts=!0);let m=Uo(p,null,i);n.useEffect(()=>{Yo()},[]);let g=n.useMemo(()=>{if(f)return null;let i=d?`window.__reactRouterContext = ${r};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=u?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${h?"":`import ${JSON.stringify(t.url)}`};\n${m.map((e,r)=>{let n=`route${r}`,i=t.routes[e.route.id];zi(i,`Route ${e.route.id} not found in manifest`);let{clientActionModule:o,clientLoaderModule:a,clientMiddlewareModule:s,hydrateFallbackModule:c,module:l}=i,u=[...o?[{module:o,varName:`${n}_clientAction`}]:[],...a?[{module:a,varName:`${n}_clientLoader`}]:[],...s?[{module:s,varName:`${n}_clientMiddleware`}]:[],...c?[{module:c,varName:`${n}_HydrateFallback`}]:[],{module:l,varName:`${n}_main`}];return 1===u.length?`import * as ${n} from ${JSON.stringify(l)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${n} = {${u.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n  ${h?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},r){let n=new Set(r.state.matches.map(e=>e.route.id)),i=r.state.location.pathname.split("/").filter(Boolean),o=["/"];for(i.pop();i.length>0;)o.push(`/${i.join("/")}`),i.pop();o.forEach(e=>{let t=N(r.routes,e,r.basename||"/",!1,r.branches);t&&t.forEach(e=>n.add(e.route.id))});let a=[...n].reduce((e,r)=>Object.assign(e,{[r]:t.routes[r]}),{});return{...t,routes:a,sri:!!e||void 0}}(t,l),null,2)};`:""}\n  window.__reactRouterRouteModules = {${m.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return n.createElement(n.Fragment,null,n.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:void 0}),n.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))},[]),y=Ko||f?[]:[...new Set(t.entry.imports.concat(uo(m,t,{includeHydrateFallback:!0})))],v="object"==typeof t.sri?t.sri:{};return bn(!f,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Ko||f?null:n.createElement(n.Fragment,null,"object"==typeof t.sri?n.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:v})}}):null,h?null:n.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:v[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),n.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:v[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),y.map(t=>n.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:v[t],nonce:e.nonce,suppressHydrationWarning:!0})),g)}function Qo(...e){return t=>
11{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}var Xo=class extends n.Component{constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error||null,location:e.location}:{error:e.error||t.error,location:t.location}}render(){return this.state.error?n.createElement(Zo,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}};function Zo({error:e,isOutsideRemixApp:t}){let{nonce:r}=Bo();console.error(e);let i,o=n.createElement("script",{nonce:r,dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n        );\n      '}});if(Se(e))return n.createElement(ea,{title:"Unhandled Thrown Response!"},n.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),wr?o:null);if(e instanceof Error)i=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);i=new Error(t)}return n.createElement(ea,{title:"Application Error!",isOutsideRemixApp:t},n.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),n.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},i.stack),o)}function ea({title:e,renderScripts:t,isOutsideRemixApp:r,children:i}){let{routeModules:o}=Bo();return o.root?.Layout&&!r?i:n.createElement("html",{lang:"en"},n.createElement("head",null,n.createElement("meta",{charSet:"utf-8"}),n.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),n.createElement("title",null,e)),n.createElement("body",null,n.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},i,t?n.createElement(Jo,null):null)))}var ta="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{ta&&(window.__reactRouterVersion="7.18.1")}catch(e){}function ra(e,t){return Xe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:y({window:t?.window}),hydrationData:t?.hydrationData||ia(),routes:e,mapRouteProperties:En,hydrationRouteProperties:wn,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function na(e,t){return Xe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:v({window:t?.window}),hydrationData:t?.hydrationData||ia(),routes:e,mapRouteProperties:En,hydrationRouteProperties:wn,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function ia(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:oa(e.errors)}),e}function oa(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 _e(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if("string"==typeof n.__subType&&be.includes(n.__subType)){let t=window[n.__subType];if("function"==typeof t)try{let i=new t(n.message);i.stack="",r[e]=i}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}function aa({basename:e,children:t,useTransitions:r,window:i}){let o=n.useRef();null==o.current&&(o.current=y({window:i,v5Compat:!0}));let a=o.current,[s,c]=n.useState({action:a.action,location:a.location}),l=n.useCallback(e=>{!1===r?c(e):n.startTransition(()=>c(e))},[r]);return n.useLayoutEffect(()=>a.listen(l),[a,l]),n.createElement(Dn,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a,useTransitions:r})}function sa({basename:e,children:t,useTransitions:r,window:i}){let o=n.useRef();null==o.current&&(o.current=v({window:i,v5Compat:!0}));let a=o.current,[s,c]=n.useState({action:a.action,location:a.location}),l=n.useCallback(e=>{!1===r?c(e):n.startTransition(()=>c(e))},[r]);return n.useLayoutEffect(()=>
11a.listen(l),[a,l]),n.createElement(Dn,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a,useTransitions:r})}function ca({basename:e,children:t,history:r,useTransitions:i}){let[o,a]=n.useState({action:r.action,location:r.location}),s=n.useCallback(e=>{!1===i?a(e):n.startTransition(()=>a(e))},[i]);return n.useLayoutEffect(()=>r.listen(s),[r,s]),n.createElement(Dn,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:r,useTransitions:i})}ca.displayName="unstable_HistoryRouter";var la=n.forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:i,reloadDocument:o,replace:a,mask:s,state:c,target:u,to:d,preventScrollReset:p,viewTransition:f,defaultShouldRevalidate:h,...m},g){let{basename:y,navigator:v,useTransitions:b}=n.useContext(br),_="string"==typeof d&&l.test(d),S=Te(d,y),E=Pr(d=S.to,{relative:i}),w=Cr(),T=null;if(s){let e=se(s,[],w.mask?w.mask.pathname:"/",!0);"/"!==y&&(e.pathname="/"===e.pathname?y:le([y,e.pathname])),T=v.createHref(e)}let[x,O,A]=function(e,t){let r=n.useContext(Fo),[i,o]=n.useState(!1),[a,s]=n.useState(!1),{onFocus:c,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:p}=t,f=n.useRef(null);n.useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),n.useEffect(()=>{if(i){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[i]);let h=()=>{o(!0)},m=()=>{o(!1),s(!1)};return r?"intent"!==e?[a,f,{}]:[a,f,{onFocus:jo(c,h),onBlur:jo(l,m),onMouseEnter:jo(u,h),onMouseLeave:jo(d,m),onTouchStart:jo(p,h)}]:[!1,f,{}]}(r,m),R=ga(d,{replace:a,mask:s,state:c,target:u,preventScrollReset:p,relative:i,viewTransition:f,defaultShouldRevalidate:h,useTransitions:b});let P=!(S.isExternal||o),I=n.createElement("a",{...m,...A,href:(P?T:void 0)||S.absoluteURL||E,onClick:P?function(t){e&&e(t),t.defaultPrevented||R(t)}:e,ref:Qo(g,O),target:u,"data-discover":_||"render"!==t?void 0:"true"});return x&&!_?n.createElement(n.Fragment,null,I,n.createElement(Vo,{page:E})):I});la.displayName="Link";var ua=n.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:i=!1,style:o,to:a,viewTransition:s,children:c,...l},u){let d=Hr(a,{relative:l.relative}),p=Cr(),f=n.useContext(pr),{navigator:h,basename:m}=n.useContext(br),g=null!=f&&Ia(d)&&!0===s,y=h.encodeLocation?h.encodeLocation(d).pathname:d.pathname,v=p.pathname,b=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),b=b?b.toLowerCase():null,y=y.toLowerCase()),b&&m&&(b=ee(b,m)||b);const _="/"!==y&&y.endsWith("/")?y.length-1:y.length;let S,E=v===y||!i&&v.startsWith(y)&&"/"===v.charAt(_),w=null!=b&&(b===y||!i&&b.startsWith(y)&&"/"===b.charAt(y.length)),T={isActive:E,isPending:w,isTransitioning:g},x=E?e:void 0;S="function"==typeof r?r(T):[r,E?"active":null,w?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let O="function"==typeof o?o(T):o;return n.createElement(la,{...l,"aria-current":x,className:S,ref:u,style:O,to:a,viewTransition:s},"function"==typeof c?c(T):c)});ua.displayName="NavLink";var da=n.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:i,replace:o,state:a,method:s=Qn,action:c,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:f,defaultShouldRevalidate:h,...m},g)=>{let{useTransitions:y}=n.useContext(br),v=_a(),b=Sa(c,{relative:d}),_="get"===s.toLowerCase()?"get":"post",S="string"==typeof c&&l.test(c);return n.createElement("form",{ref:g,method:_,action:b,onSubmit:i?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let i=e.nativeEvent.submitter,c=i?.getAttribute("formmethod")||s,l=()=>v(i||e.currentTarget,{fetcherKey:t,method:c,navigate:r,replace:o,state:a,relative:d,preventScrollReset:p,viewTransition:f,defaultShouldRevalidate:h});y&&!1!==r?n.startTransition(()=>l()):l()},...m,"data-discover":S||"render"!==e?void 0:"true"})});function pa({getKey:e,storageKey:t,...r}){let i=n.useContext(Fo),{basename:o}=n.useContext(br),a=Cr(),s=nn();Aa({getKey:e,storageKey:t});let c=n.useMemo(()=>
11{if(!i||!e)return null;let t=Oa(a,s,o,e);return t!==a.key?t:null},[]);if(!i||i.isSpaMode)return null;let l=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},"")}try{let r=JSON.parse(sessionStorage.getItem(e)||"{}")[t||window.history.state.key];"number"==typeof r&&window.scrollTo(0,r)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return null==r.nonce&&i?.nonce&&(r.nonce=i.nonce),n.createElement("script",{...r,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${l})(${Hi(JSON.stringify(t||Ta))}, ${Hi(JSON.stringify(c))})`}})}function fa(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ha(e){let t=n.useContext(dr);return b(t,fa(e)),t}function ma(e){let t=n.useContext(pr);return b(t,fa(e)),t}function ga(e,{target:t,replace:r,mask:i,state:o,preventScrollReset:a,relative:s,viewTransition:c,defaultShouldRevalidate:l,useTransitions:u}={}){let d=Lr(),p=Cr(),f=Hr(e,{relative:s});return n.useCallback(h=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(h,t)){h.preventDefault();let t=void 0!==r?r:w(p)===w(f),m=()=>d(e,{replace:t,mask:i,state:o,preventScrollReset:a,relative:s,viewTransition:c,defaultShouldRevalidate:l});u?n.startTransition(()=>m()):m()}},[p,d,f,r,i,o,t,e,a,s,c,l,u])}function ya(e){_("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=n.useRef(ei(e)),r=n.useRef(!1),i=Cr(),o=n.useMemo(()=>function(e,t){let r=ei(e);return t&&t.forEach((e,n)=>{r.has(n)||t.getAll(n).forEach(e=>{r.append(n,e)})}),r}(i.search,r.current?null:t.current),[i.search]),a=Lr(),s=n.useCallback((e,t)=>{const n=ei("function"==typeof e?e(new URLSearchParams(o)):e);r.current=!0,a("?"+n,t)},[a,o]);return[o,s]}da.displayName="Form",pa.displayName="ScrollRestoration";var va=0,ba=()=>`__${String(++va)}__`;function _a(){let{router:e}=ha("useSubmit"),{basename:t}=n.useContext(br),r=en("useRouteId"),i=e.fetch,o=e.navigate;return n.useCallback(async(e,n={})=>{let{action:a,method:s,encType:c,formData:l,body:u}=ii(e,t);if(!1===n.navigate){let e=n.fetcherKey||ba();await i(e,r,n.action||a,{defaultShouldRevalidate:n.defaultShouldRevalidate,preventScrollReset:n.preventScrollReset,formData:l,body:u,formMethod:n.method||s,formEncType:n.encType||c,flushSync:n.flushSync})}else await o(n.action||a,{defaultShouldRevalidate:n.defaultShouldRevalidate,preventScrollReset:n.preventScrollReset,formData:l,body:u,formMethod:n.method||s,formEncType:n.encType||c,replace:n.replace,state:n.state,fromRouteId:r,flushSync:n.flushSync,viewTransition:n.viewTransition})},[i,o,t,r])}function Sa(e,{relative:t}={}){let{basename:r}=n.useContext(br),i=n.useContext(Sr);b(i,"useFormAction must be used inside a RouteContext");let[o]=i.matches.slice(-1),a={...Hr(e||".",{relative:t})},s=Cr();if(null==e){a.search=s.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();a.search=r?`?${r}`:""}}return e&&"."!==e||!o.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),"/"!==r&&(a.pathname="/"===a.pathname?r:le([r,a.pathname])),w(a)}
11function Ea({key:e}={}){let{router:t}=ha("useFetcher"),r=ma("useFetcher"),i=n.useContext(gr),o=n.useContext(Sr),a=o.matches[o.matches.length-1]?.route.id;b(i,"useFetcher must be used inside a FetchersContext"),b(o,"useFetcher must be used inside a RouteContext"),b(null!=a,'useFetcher can only be used on routes that contain a unique "id"');let s=n.useId(),[c,l]=n.useState(e||s);e&&e!==c&&l(e);let{deleteFetcher:u,getFetcher:d,resetFetcher:p,fetch:f}=t;n.useEffect(()=>(d(c),()=>u(c)),[u,d,c]);let h=n.useCallback(async(e,t)=>{b(a,"No routeId available for fetcher.load()"),await f(c,a,e,t)},[c,a,f]),m=_a(),g=n.useCallback(async(e,t)=>{await m(e,{...t,navigate:!1,fetcherKey:c})},[c,m]),y=n.useCallback(e=>p(c,e),[p,c]),v=n.useMemo(()=>{let e=n.forwardRef((e,t)=>n.createElement(da,{...e,navigate:!1,fetcherKey:c,ref:t}));return e.displayName="fetcher.Form",e},[c]),_=r.fetchers.get(c)||qe,S=i.get(c);return n.useMemo(()=>({Form:v,submit:g,load:h,reset:y,..._,data:S}),[v,g,h,y,_,S])}function wa(){let e=ma("useFetchers");return n.useMemo(()=>Array.from(e.fetchers.entries()).map(([e,t])=>({...t,key:e})),[e.fetchers])}var Ta="react-router-scroll-positions",xa={};function Oa(e,t,r,n){let i=null;return n&&(i=n("/"!==r?{...e,pathname:ee(e.pathname,r)||e.pathname}:e,t)),null==i&&(i=e.key),i}function Aa({getKey:e,storageKey:t}={}){let{router:r}=ha("useScrollRestoration"),{restoreScrollPosition:i,preventScrollReset:o}=ma("useScrollRestoration"),{basename:a}=n.useContext(br),s=Cr(),c=nn(),l=tn();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"===l.state){let t=Oa(s,c,a,e);xa[t]=window.scrollY}try{sessionStorage.setItem(t||Ta,JSON.stringify(xa))}catch(e){_(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration="auto"},[l.state,e,a,s,c,t])),"undefined"!=typeof document&&(n.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Ta);e&&(xa=JSON.parse(e))}catch(e){}},[t]),n.useLayoutEffect(()=>{let t=r?.enableScrollRestoration(xa,()=>window.scrollY,e?(t,r)=>Oa(t,r,a,e):void 0);return()=>t&&t()},[r,a,e]),n.useLayoutEffect(()=>{if(!1!==i)if("number"!=typeof i){try{if(s.hash){let e=document.getElementById(decodeURIComponent(s.hash.slice(1)));if(e)return void e.scrollIntoView()}}catch{_(!1,`"${s.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}!0!==o&&window.scrollTo(0,0)}else window.scrollTo(0,i)},[s,i,o]))}function Ra(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 Pa({when:e,message:t}){let r=pn(e);n.useEffect(()=>{if("blocked"===r.state){window.confirm(t)?setTimeout(r.proceed,0):r.reset()}},[r,t]),n.useEffect(()=>{"blocked"!==r.state||e||r.reset()},[r,e])}function Ia(e,{relative:t}={}){let r=n.useContext(mr);b(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=ha("useViewTransitionState"),o=Hr(e,{relative:t});if(!r.isTransitioning)return!1;let a=ee(r.currentLocation.pathname,i)||r.currentLocation.pathname,s=ee(r.nextLocation.pathname,i)||r.nextLocation.pathname;return null!=J(o.pathname,s)||null!=J(o.pathname,a)}function Ca({basename:e,children:t,location:r="/"}){"string"==typeof r&&(r=T(r));let i={pathname:r.pathname||"/",search:r.search||"",hash:r.hash||"",state:null!=r.state?r.state:null,key:r.key||"default",mask:void 0},o=Da();return n.createElement(Dn,{basename:e,children:t,location:i,navigationType:"POP",navigator:o,static:!0,useTransitions:!1})}function ka({context:e,router:t,hydrate:r=!0,nonce:i}){b(t&&e,"You must provide `router` and `context` to <StaticRouterProvider>");let o={router:t,navigator:Da(),static:!0,staticContext:e,basename:e.basename||"/"},a=new Map,s="";if(!1!==r){let t={loaderData:e.loaderData,actionData:e.actionData,errors:Ma(e.errors)};s=`window.__staticRouterHydrationData = JSON.parse(${Hi(JSON.stringify(JSON.stringify(t)))});`}let{state:c}=o.router;return n.createElement(n.Fragment,null,n.createElement(dr.Provider,{value:o},n.createElement(pr.Provider,{value:c},n.createElement(gr.Provider,{value:a},n.createElement(mr.Provider,{value:{isTransitioning:!1}}
11,n.createElement(Dn,{basename:o.basename,location:c.location,navigationType:c.historyAction,navigator:o.navigator,static:o.static,useTransitions:!1},n.createElement(Pn,{manifest:t.manifest,routes:t.routes,future:t.future,state:c,isStatic:!0})))))),s?n.createElement("script",{suppressHydrationWarning:!0,nonce:i,dangerouslySetInnerHTML:{__html:s}}):null)}function Ma(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)Se(n)?r[e]={...n,__type:"RouteErrorResponse"}:n instanceof Error?r[e]={message:n.message,__type:"Error",..."Error"!==n.name?{__subType:n.name}:{}}:r[e]=n;return r}function Da(){return{createHref:Fa,encodeLocation:Ba,push(e){throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`)},replace(e){throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`)},go(e){throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`)},back(){throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.")},forward(){throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.")}}}function Na(e,t){return Ze(e,{...t,mapRouteProperties:En})}function La(e,t,r={}){let n={},i=k(e,En,void 0,n),o=t.matches.map(e=>{let t=n[e.route.id]||e.route;return{...e,route:t}}),a=e=>`You cannot use router.${e}() on the server because it is a stateless environment`;return{get basename(){return t.basename},get future(){return{v8_middleware:!1,v8_passThroughRequests:!1,v8_trailingSlashAwareDataRequests:!1,...r?.future}},get state(){return{historyAction:"POP",location:t.location,matches:o,loaderData:t.loaderData,actionData:t.actionData,errors:t.errors,initialized:!0,renderFallback:!1,navigation:$e,restoreScrollPosition:null,preventScrollReset:!1,revalidation:"idle",fetchers:new Map,blockers:new Map}},get routes(){return i},get branches(){return r.branches},get manifest(){return n},get window(){},initialize(){throw a("initialize")},subscribe(){throw a("subscribe")},enableScrollRestoration(){throw a("enableScrollRestoration")},navigate(){throw a("navigate")},fetch(){throw a("fetch")},revalidate(){throw a("revalidate")},createHref:Fa,encodeLocation:Ba,getFetcher:()=>qe,deleteFetcher(){throw a("deleteFetcher")},resetFetcher(){throw a("resetFetcher")},dispose(){throw a("dispose")},getBlocker:()=>We,deleteBlocker(){throw a("deleteBlocker")},patchRoutes(){throw a("patchRoutes")},_internalFetchControllers:new Map,_internalSetRoutes(){throw a("_internalSetRoutes")},_internalSetStateDoNotUseOrYouWillBreakYourApp(){throw a("_internalSetStateDoNotUseOrYouWillBreakYourApp")}}}function Fa(e){return"string"==typeof e?e:w(e)}function Ba(e){let t="string"==typeof e?e:w(e);t=t.replace(/ $/,"%20");let r=l.test(t)?new URL(t):new URL(t,"http://localhost");return{pathname:r.pathname,search:r.search,hash:r.hash}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HydratedRouter:()=>u,RouterProvider:()=>a,unstable_RSCHydratedRouter:()=>m,unstable_createCallServer:()=>p,unstable_getRSCStream:()=>A});var n=r(717),i=r(715),o=r(396);function a(e){return o.createElement(i.RouterProvider,{flushSync:o.flushSync,...e})}var s=null,c=null;function l({getContext:e,instrumentations:t}){if(function(){if(!s&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(!0===window.__reactRouterManifest.sri){const e=document.querySelector("script[rr-importmap]");if(e?.textContent)try{window.__reactRouterManifest.sri=JSON.parse(e.textContent).integrity}catch(e){console.error("Failed to parse import map",e)}}s={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}(),!s)throw new Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<
11RouterProvider>`");let r=s;if(!s.stateDecodingPromise){let e=s.context.stream;(0,i.invariant)(e,"No stream found for single fetch decoding"),s.context.stream=void 0,s.stateDecodingPromise=(0,i.decodeViaTurboStream)(e,window).then(e=>{s.context.state=e.value,r.stateDecodingPromise.value=!0}).catch(e=>{r.stateDecodingPromise.error=e})}if(s.stateDecodingPromise.error)throw s.stateDecodingPromise.error;if(!s.stateDecodingPromise.value)throw s.stateDecodingPromise;let o,a=(0,i.createClientRoutes)(s.manifest.routes,s.routeModules,s.context.state,s.context.ssr,s.context.isSpaMode);if(s.context.isSpaMode){let{loaderData:e}=s.context.state;s.manifest.routes.root?.hasLoader&&e&&"root"in e&&(o={loaderData:{root:e.root}})}else o=(0,n.getHydrationData)({state:s.context.state,routes:a,getRouteInfo:e=>({clientLoader:s.routeModules[e]?.clientLoader,hasLoader:!0===s.manifest.routes[e]?.hasLoader,hasHydrateFallback:null!=s.routeModules[e]?.HydrateFallback}),location:window.location,basename:window.__reactRouterContext?.basename,isSpaMode:s.context.isSpaMode});window.history.state&&window.history.state.masked&&window.history.replaceState({...window.history.state,masked:void 0},"");let c=(0,i.createRouter)({routes:a,history:(0,i.createBrowserHistory)(),basename:s.context.basename,getContext:e,hydrationData:o,hydrationRouteProperties:i.hydrationRouteProperties,instrumentations:t,mapRouteProperties:i.mapRouteProperties,future:{v8_passThroughRequests:s.context.future.v8_passThroughRequests},dataStrategy:(0,i.getTurboStreamSingleFetchDataStrategy)(()=>c,s.manifest,s.routeModules,s.context.ssr,s.context.basename,s.context.future.v8_trailingSlashAwareDataRequests),patchRoutesOnNavigation:(0,i.getPatchRoutesOnNavigationFunction)(()=>c,s.manifest,s.routeModules,s.context.ssr,s.context.routeDiscovery,s.context.isSpaMode,s.context.basename)});return s.router=c,c.state.initialized&&(s.routerInitialized=!0,c.initialize()),c.createRoutesForHMR=i.createClientRoutesWithHMRRevalidationOptOut,window.__reactRouterDataRouter=c,c}function u(e){c||(c=l({getContext:e.getContext,instrumentations:e.instrumentations}));let[t,r]=o.useState(void 0);o.useEffect(()=>{0},[]),o.useEffect(()=>{0},[t]);let[n,u]=o.useState(c.state.location);return o.useLayoutEffect(()=>{s&&s.router&&!s.routerInitialized&&(s.routerInitialized=!0,s.router.initialize())},[]),o.useLayoutEffect(()=>{if(s&&s.router)return s.router.subscribe(e=>{e.location!==n&&u(e.location)})},[n]),(0,i.invariant)(s,"ssrInfo unavailable for HydratedRouter"),(0,i.useFogOFWarDiscovery)(c,s.manifest,s.routeModules,s.context.ssr,s.context.routeDiscovery,s.context.isSpaMode),o.createElement(o.Fragment,null,o.createElement(i.FrameworkContext.Provider,{value:{manifest:s.manifest,routeModules:s.routeModules,future:s.context.future,criticalCss:t,ssr:s.context.ssr,isSpaMode:s.context.isSpaMode,routeDiscovery:s.context.routeDiscovery}},o.createElement(i.RemixErrorBoundary,{location:n},o.createElement(a,{router:c,useTransitions:e.useTransitions,onError:e.onError}))),o.createElement(o.Fragment,null))}var d="/__manifest";function p({createFromReadableStream:e,createTemporaryReferenceSet:t,encodeReply:r,fetch:n=fetch}){const a=window;return async(s,c)=>{let l=a.__routerActionID=(a.__routerActionID??(a.__routerActionID=0))+1;const u=t(),d=n(new Request(location.href,{body:await r(c,{temporaryReferences:u}),method:"POST",headers:{Accept:"text/x-component","rsc-action-id":s}})).then(t=>{if(!t.body)throw new Error("No response body");return e(t.body,{temporaryReferences:u})});return o.startTransition(()=>Promise.resolve(d).then(async e=>{if("redirect"===e.type){let t=T(e.location);if(e.reload||w(t)){if((0,i.hasInvalidProtocol)(t))throw new Error("Invalid redirect location");return void(window.location.href=t)}return void o.startTransition(()=>{a.__reactRouterDataRouter.navigate(t,{replace:e.replace})})}if("action"!==e.type)throw new Error("Unexpected payload type");const t=await e.rerender;if(t&&0<l&&a.__routerActionID<=l){if("redirect"===t.type){let e=T(t.location);if(t.reload||w(e)){if((0,i.hasInvalidProtocol)(e))throw new Error("Invalid redirect location");return void(window.location.href=e)}return void o.startTransition(()=>{a.__reactRouterDataRouter.navigate(e,{replace:t.replace})})}o.startTransition(()=>{let e;for(const r of t.matches)a.__reactRouterDataRouter.patchRoutes(e?.id??null,[g(r)],!0),e=r;window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp({loaderData:Object.assign({},a.__reactRouterDataRouter.state.loaderData,t.loaderData),errors:t.errors?Object.assign({},a.__reactRouterDataRouter.state.errors,t.errors):null})})}}).catch(()=>{})),d.then(e=>{if("action"!==e.type&&"redirect"!==e.type)throw new Error("Unexpected payload type");return e.actionResult})}}var f=(0,i.createContext)();function h(e,t,r,n,a){let s=(0,i.getSingleFetchDataStrategyImpl)(e,e=>{let t=e;return{hasLoader:t.route.hasLoader,hasClientLoader:t.route.hasClientLoader,hasComponent:t.route.hasComponent,hasAction:t.route.hasAction,hasClientAction:t.route.hasClientAction}},function(e,t){return async(r,n,o,a)=>{let{request:s,context:c}=r,l=(0,i.singleFetchUrl)(s.url,n,o,"rsc");"GET"===s.method&&(l=(0,i.stripIndexParam)(l),a&&l.searchParams.set("_routes",a.join(",")));
11let u=await t(new Request(l,await(0,i.createRequestInit)(s)));if(u.status>=400&&!u.headers.has("X-Remix-Response"))throw new i.ErrorResponseImpl(u.status,u.statusText,await u.text());(0,i.invariant)(u.body,"No response body to decode");try{const t=await e(u.body,{temporaryReferences:void 0});if("redirect"===t.type)return{status:u.status,data:{redirect:{redirect:t.location,reload:t.reload,replace:t.replace,revalidate:!1,status:t.status}}};if("render"!==t.type)throw new Error("Unexpected payload type");c.get(f).push(...t.matches);let r={routes:{}};const n=(0,i.isMutationMethod)(s.method)?"actionData":"loaderData";for(let[e,i]of Object.entries(t[n]||{}))r.routes[e]={data:i};if(t.errors)for(let[e,n]of Object.entries(t.errors))r.routes[e]={error:n};return{status:u.status,data:r}}catch(e){throw new Error("Unable to decode RSC response",{cause:e})}}}(n,a),t,r,!0,e=>{let t=e;return t.route.hasComponent&&!t.route.element});return async e=>e.runClientMiddleware(async()=>{let t=e.context;t.set(f,[]);let r=await s(e);const n=new Map;for(const e of t.get(f))n.has(e.id)||n.set(e.id,[]),n.get(e.id).push(e);return o.startTransition(()=>{for(const t of e.matches){const e=n.get(t.route.id);if(e)for(const t of e)window.__reactRouterDataRouter.patchRoutes(t.parentId??null,[g(t)],!0)}}),r})}function m({createFromReadableStream:e,fetch:t=fetch,payload:r,getContext:a}){if("render"!==r.type)throw new Error("Invalid payload type");let{routeDiscovery:s}=r,{router:c,routeModules:l}=o.useMemo(()=>function({fetchImplementation:e,createFromReadableStream:t,getContext:r,payload:a}){const s=window;if(s.__reactRouterDataRouter&&s.__reactRouterRouteModules)return{router:s.__reactRouterDataRouter,routeModules:s.__reactRouterRouteModules};if("render"!==a.type)throw new Error("Invalid payload type");s.__reactRouterRouteModules=s.__reactRouterRouteModules??{},(0,n.populateRSCRouteModules)(s.__reactRouterRouteModules,a.matches);let c,l,u=a.matches.reduceRight((e,t)=>{const r=g(t,a);return e.length>0?r.children=e:r.index||(r.children=[]),[r]},[]);return s.__reactRouterDataRouter=(0,i.createRouter)({routes:u,getContext:r,basename:a.basename,history:(0,i.createBrowserHistory)(),hydrationData:(0,n.getHydrationData)({state:{loaderData:a.loaderData,actionData:a.actionData,errors:a.errors},routes:u,getRouteInfo:e=>{let t=a.matches.find(t=>t.id===e);return(0,i.invariant)(t,"Route not found in payload"),{clientLoader:t.clientLoader,hasLoader:t.hasLoader,hasHydrateFallback:null!=t.hydrateFallbackElement}},location:a.location,basename:a.basename,isSpaMode:!1}),async patchRoutesOnNavigation({path:r,signal:n}){if("initial"===a.routeDiscovery.mode)return c||(c=(async()=>{if(!a.patches)return;let e=await a.patches;o.startTransition(()=>{e.forEach(e=>{window.__reactRouterDataRouter.patchRoutes(e.parentId??null,[g(e)])})})})()),void await c;S.has(r)||await E([r],t,e,n)},dataStrategy:h(()=>s.__reactRouterDataRouter,!0,a.basename,t,e)}),s.__reactRouterDataRouter.state.initialized?(s.__routerInitialized=!0,s.__reactRouterDataRouter.initialize()):s.__routerInitialized=!1,s.__reactRouterDataRouter.subscribe(({loaderData:e,actionData:t})=>{l!==e&&(s.__routerActionID=(s.__routerActionID??(s.__routerActionID=0))+1)}),s.__reactRouterDataRouter._updateRoutesForHMR=e=>{const t=window.__reactRouterDataRouter.routes,r=[];r.push(...function t(r,n){return r.map(r=>{const i=e.get(r.id);if(i){const{routeModule:e,hasAction:o,hasComponent:a,hasErrorBoundary:s,hasLoader:c}=i,l=g({clientAction:e.clientAction,clientLoader:e.clientLoader,element:r.element,errorElement:r.errorElement,handle:r.handle,hasAction:o,hasComponent:a,hasErrorBoundary:s,hasLoader:c,hydrateFallbackElement:r.hydrateFallbackElement,id:r.id,index:r.index,links:e.links,meta:e.meta,parentId:n,path:r.path,shouldRevalidate:e.shouldRevalidate});return r.children&&(l.children=t(r.children,r.id)),l}const o={...r};return r.children&&(o.children=t(r.children,r.id)),o})}(t,void 0)),window.__reactRouterDataRouter._internalSetRoutes(r)},{router:s.__reactRouterDataRouter,routeModules:s.__reactRouterRouteModules}}({payload:r,fetchImplementation:t,getContext:a,createFromReadableStream:e}),[e,r,t,a]);o.useEffect(()=>{(0,i.setIsHydrated)()},[]),o.useLayoutEffect(()=>{const e=window;e.__routerInitialized||(e.__routerInitialized=!0,e.__reactRouterDataRouter.initialize())},[]);let[{routes:u,state:p},f]=o.useState(()=>({routes:x(c.routes),state:c.state}));o.useLayoutEffect(()=>c.subscribe(e=>{O(c.routes,u)&&o.startTransition(()=>{f({routes:x(c.routes),state:e})})}),[c.subscribe,u,c]);const m=o.useMemo(()=>({...c,state:p,routes:u}),[c,u,p]);o.useEffect(()=>{if("initial"===s.mode||!0===window.navigator?.connection?.saveData)return;function r(e){let t="FORM"===e.tagName?e.getAttribute("action"):e.getAttribute("href");if(!t)return;let r="A"===e.tagName?e.pathname:new URL(t,window.location.origin).pathname;S.has(r)||b.add(r)}async function n(){document.querySelectorAll("a[data-discover], form[data-discover]").forEach(r);let n=Array.from(b.keys()).filter(e=>!S.has(e)||(b.delete(e),!1));if(0!==n.length)try{await E(n,e,t)}catch(e){console.error("Failed to fetch manifest patches",e)}}let i=function(e,t){let r;return(...n)=>{window.clearTimeout(r),r=window.setTimeout(()=>e(...n),t)}}(n,100);n(),new MutationObserver(()=>i()).observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-discover","href","action"]})},[s,e,t]);const y={future:{v8_middleware:!1,v8_trailingSlashAwareDataRequests:!0,v8_passThroughRequests:!0},isSpaMode:!1,ssr:!0,criticalCss:"",manifest:{routes:{},version:"1",url:"",entry:{module:"",imports:[]}},routeDiscovery:"initial"===r.routeDiscovery.mode?{mode:"initial",manifestPath:d}:{mode:"lazy",manifestPath:r.routeDiscovery.manifestPath||d},routeModules:l};return o.createElement(i.RSCRouterContext.Provider,{value:!0},o.createElement(n.RSCRouterGlobalErrorBoundary,{location:p.location},o.createElement(i.FrameworkContext.Provider,{value:y},o.createElement(i.RouterProvider,{router:m,flushSync:o.flushSync}))))}function g(e,t){let r=t&&e.id in t.loaderData,o=t?.loaderData[e.id],a=t?.errors&&e.id in t.errors,s=t?.errors?.[e.i
11d],c=!0===e.clientLoader?.hydrate||!e.hasLoader||e.hasComponent&&!e.element;(0,i.invariant)(window.__reactRouterRouteModules),(0,n.populateRSCRouteModules)(window.__reactRouterRouteModules,e);let l={id:e.id,element:e.element,errorElement:e.errorElement,handle:e.handle,hasErrorBoundary:e.hasErrorBoundary,hydrateFallbackElement:e.hydrateFallbackElement,index:e.index,loader:e.clientLoader?async(t,n)=>{let i=c;return c=!1,await e.clientLoader({...t,serverLoader:()=>{if(v("loader",e.id,e.hasLoader),i){if(r)return o;if(a)throw s}return y(n)}})}:(e,t)=>y(t),action:e.clientAction?(t,r)=>e.clientAction({...t,serverAction:async()=>(v("action",e.id,e.hasLoader),await y(r))}):e.hasAction?(e,t)=>y(t):()=>{throw(0,i.noActionDefinedError)("action",e.id)},path:e.path,shouldRevalidate:e.shouldRevalidate,hasLoader:!0,hasClientLoader:null!=e.clientLoader,hasAction:e.hasAction,hasClientAction:null!=e.clientAction};return"function"==typeof l.loader&&(l.loader.hydrate=(0,i.shouldHydrateRouteLoader)(e.id,e.clientLoader,e.hasLoader,!1)),l}function y(e){return(0,i.invariant)("function"==typeof e,"Invalid singleFetch parameter"),e()}function v(e,t,r){if(!r){let r=`You are trying to call ${"action"===e?"serverAction()":"serverLoader()"} on a route that does not have a server ${e} (routeId: "${t}")`;throw console.error(r),new i.ErrorResponseImpl(400,"Bad Request",new Error(r),!0)}}var b=new Set,_=1e3,S=new Set;async function E(e,t,r,n){let a=function(e){if(0===e.length)return null;if(1===e.length)return new URL(`${e[0]}.manifest`,window.location.origin);let t=(window.__reactRouterDataRouter.basename??"").replace(/^\/|\/$/g,""),r=new URL(`${t}/.manifest`,window.location.origin);return r.searchParams.set("paths",e.sort().join(",")),r}(e=(0,i.getPathsWithAncestors)(e));if(null==a)return;if(a.toString().length>i.URL_LIMIT)return void b.clear();let s=await r(new Request(a,{signal:n}));if(!s.body||s.status<200||s.status>=300)throw new Error("Unable to fetch new route matches from the server");let c=await t(s.body,{temporaryReferences:void 0});if("manifest"!==c.type)throw new Error("Failed to patch routes");e.forEach(e=>function(e,t){if(t.size>=_){let e=t.values().next().value;"string"==typeof e&&t.delete(e)}t.add(e)}(e,S));let l=await c.patches;o.startTransition(()=>{l.forEach(e=>{window.__reactRouterDataRouter.patchRoutes(e.parentId??null,[g(e)])})})}function w(e){return new URL(e,window.location.href).origin!==window.location.origin}function T(e){if(i.PROTOCOL_RELATIVE_URL_REGEX.test(e)){let t=(0,i.resolvePath)(e);return t.pathname+t.search+t.hash}return e}function x(e){if(e)return e.map(e=>({...e,children:x(e.children)}))}function O(e,t){return e.length!==t.length||e.some((e,r)=>e.element!==t[r].element||(e.errorElement!==t[r].errorElement||(e.hydrateFallbackElement!==t[r].hydrateFallbackElement||(e.hasErrorBoundary!==t[r].hasErrorBoundary||(e.hasLoader!==t[r].hasLoader||(e.hasClientLoader!==t[r].hasClientLoader||(e.hasAction!==t[r].hasAction||(e.hasClientAction!==t[r].hasClientAction||O(e.children||[],t[r].children||[])))))))))}function A(){let e=new TextEncoder,t=null,r=new ReadableStream({start(r){if("undefined"==typeof window)return;let n=t=>{"string"==typeof t?r.enqueue(e.encode(t)):r.enqueue(t)};window.__FLIGHT_DATA||(window.__FLIGHT_DATA=[]),window.__FLIGHT_DATA.forEach(n),window.__FLIGHT_DATA.push=e=>(n(e),0),t=r}});return"undefined"!=typeof document&&"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{t?.close()}):t?.close(),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RSCDefaultRootErrorBoundary:()=>se,RSCRouterGlobalErrorBoundary:()=>ie,RSCStaticRouter:()=>he,ServerMode:()=>v,ServerRouter:()=>s,createCookie:()=>f,createCookieSessionStorage:()=>Q,createMemorySessionStorage:()=>X,createRequestHandler:()=>G,createRoutesStub:()=>c,createSession:()=>W,createSessionStorage:()=>Y,getHydrationData:()=>me,href:()=>Z,isCookie:()=>h,isSession:()=>K,populateRSCRouteModules:()=>le,routeRSCServerRequest:()=>fe,setDevServerHooks:()=>R});var n=r(715),i=r(396),o=r(718),a=r(719);
12/**
13 * react-router v7.18.1
14 *
15 * Copyright (c) Remix Software Inc.
16 *
17 * This source code is licensed under the MIT license found in the
18 * LICENSE.md file in the root directory of this source tree.
19 *
20 * @license MIT
21 */
22function s({context:e,url:t,nonce:r}){"string"==typeof t&&(t=new URL(t));let{manifest:o,routeModules:a,criticalCss:s,serverHandoffString:c}=e,l=(0,n.createServerRoutes)(o.routes,a,e.future,e.isSpaMode);e.staticHandlerContext.loaderData={...e.staticHandlerContext.loaderData};for(let t of e.staticHandlerContext.matches){let r=t.route.id,i=a[r],o=e.manifest.routes[r];i&&o&&(0,n.shouldHydrateRouteLoader)(r,i.clientLoader,o.hasLoader,e.isSpaMode)&&(i.HydrateFallback||!o.hasLoader)&&delete e.staticHandlerContext.loaderData[r]}let u=(0,n.createStaticRouter)(l,e.staticHandlerContext,{branches:e.branches});return i.createElement(i.Fragment,null,i.createElement(n.FrameworkContext.Provider,{value:{manifest:o,routeModules:a,criticalCss:s,serverHandoffString:c,future:e.future,ssr:e.ssr,isSpaMode:e.isSpaMode,routeDiscovery:e.routeDiscovery,nonce:r,serializeError:e.serializeError,renderMeta:e.renderMeta}},i.createElement(n.RemixErrorBoundary,{location:u.state.location},i.createElement(n.StaticRouterProvider,{router:u,context:e.staticHandlerContext,hydrate:!1}))),e.serverHandoffStream?i.createElement(i.Suspense,null,i.createElement(n.StreamTransfer,{context:e,identifier:0,reader:e.serverHandoffStream.getReader(),textDecoder:new TextDecoder,nonce:r})):null)}function c(e,t){return function({initialEntries:r,initialIndex:o,hydrationData:a,future:s}){let c=i.useRef(),u=i.useRef();if(null==c.current){u.current={future:{v8_passThroughRequests:!0===s?.v8_passThroughRequests,v8_middleware:!0===s?.v8_middleware,v8_trailingSlashAwareDataRequests:!0===s?.v8_trailingSlashAwareDataRequests},manifest:{routes:{},entry:{imports:[],module:""},url:"",version:""},routeModules:{},ssr:!1,isSpaMode:!1,routeDiscovery:{mode:"lazy",manifestPath:"/__manifest"}};let i=l((0,n.convertRoutesToDataRoutes)(e,e=>e),void 0!==t?t:s?.v8_middleware?new n.RouterContextProvider:{},u.current.manifest,u.current.routeModules);c.current=(0,n.createMemoryRouter)(i,{initialEntries:r,initialIndex:o,hydrationData:a})}return i.createElement(n.FrameworkContext.Provider,{value:u.current},i.createElement(n.RouterProvider,{router:c.current}))}}function l(e,t,r,i,o){return e.map(e=>{if(!e.id)throw new Error("Expected a route.id in react-router processRoutes() function");let a={id:e.id,path:e.path,index:e.index,Component:e.Component?(0,n.withComponentProps)(e.Component):void 0,HydrateFallback:e.HydrateFallback?(0,n.withHydrateFallbackProps)(e.HydrateFallback):void 0,ErrorBoundary:e.ErrorBoundary?(0,n.withErrorBoundaryProps)(e.ErrorBoundary):void 0,action:e.action?r=>e.action({...r,context:t}):void 0,loader:e.loader?r=>e.loader({...r,context:t}):void 0,middleware:e.middleware?e.middleware.map(e=>(...r)=>e({...r[0],context:t},r[1])):void 0,handle:e.handle,shouldRevalidate:e.shouldRevalidate},s={id:e.id,path:e.path,index:e.index,parentId:o,hasAction:null!=e.action,hasLoader:null!=e.loader,hasClientAction:!1,hasClientLoader:!1,hasClientMiddleware:!1,hasErrorBoundary:null!=e.ErrorBoundary,module:"build/stub-path-to-module.js",clientActionModule:void 0,clientLoaderModule:void 0,clientMiddlewareModule:void 0,hydrateFallbackModule:void 0};return r.routes[a.id]=s,i[e.id]={default:a.Component||n.Outlet,ErrorBoundary:a.ErrorBoundary||void 0,handle:e.handle,links:e.links,meta:e.meta,shouldRevalidate:e.shouldRevalidate},e.children&&(a.children=l(e.children,t,r,i,a.id)),a})}var u=new TextEncoder,d=async(e,t)=>{let r=e.lastIndexOf("."),n=e.slice(0,r),i=e.slice(r+1),o=u.encode(n),a=await p(t,["verify"]);try{let e=function(e){let t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(atob(i));return!!await crypto.subtle.verify("HMAC",a,e,o)&&n}catch(e){return!1}},p=async(e,t)=>crypto.subtle.importKey("raw",u.encode(e),{name:"HMAC",hash:"SHA-256"},!1,t);var f=(e,t={})=>{let{secrets:r=[],...i}={path:"/",sameSite:"lax",...t};return function(e,t){(0,n.warnOnce)(!t,`The "${e}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`)}(e,i.expires),{get name(){return e},get isSigned(){return r.length>0},get expires(){return void 0!==i.maxAge?new Date(Date.now()+1e3*i.maxAge):i.expires},async parse(t,n){if(!t)return null;let a=(0,o.parse)(t,{...i,...n});if(e in a){let t=a[e];if("string"==typeof t&&""!==t){let e=await async function(e,t){if(t.length>0){for(let r of t){let t=await d(e,r);if(!1!==t)return m(t)}return null}return m(e)}(t,r);return e}return""}return null}
22,serialize:async(t,n)=>(0,o.serialize)(e,""===t?"":await async function(e,t){let r=function(e){return btoa(function(e){let t,r,n=e.toString(),i="",o=0;for(;o<n.length;){if(t=n.charAt(o++),"%"===t)if("u"===n.charAt(o)){if(r=n.slice(o+1,o+5),/^[\da-f]{4}$/i.exec(r)){i+=String.fromCharCode(parseInt(r,16)),o+=5;continue}}else if(r=n.slice(o,o+2),/^[\da-f]{2}$/i.exec(r)){i+=String.fromCharCode(parseInt(r,16)),o+=2;continue}i+=t}return i}(encodeURIComponent(JSON.stringify(e))))}(e);t.length>0&&(r=await(async(e,t)=>{let r=u.encode(e),n=await p(t,["sign"]),i=await crypto.subtle.sign("HMAC",n,r);return e+"."+btoa(String.fromCharCode(...new Uint8Array(i))).replace(/=+$/,"")})(r,t[0]));return r}(t,r),{...i,...n})}},h=e=>null!=e&&"string"==typeof e.name&&"boolean"==typeof e.isSigned&&"function"==typeof e.parse&&"function"==typeof e.serialize;function m(e){try{return JSON.parse(decodeURIComponent(function(e){let t,r,n=e.toString(),i="",o=0;for(;o<n.length;)t=n.charAt(o++),/[\w*+\-./@]/.exec(t)?i+=t:(r=t.charCodeAt(0),i+=r<256?"%"+g(r,2):"%u"+g(r,4).toUpperCase());return i}(atob(e))))}catch(e){return{}}}function g(e,t){let r=e.toString(16);for(;r.length<t;)r="0"+r;return r}function y(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return n&&(t[r]=n.module),t},{})}var v=(e=>(e.Development="development",e.Production="production",e.Test="test",e))(v||{});function b(e,t){if(e instanceof Error&&"development"!==t){let e=new Error("Unexpected Server Error");return e.stack=void 0,e}return e}function _(e,t){return Object.entries(e).reduce((e,[r,n])=>Object.assign(e,{[r]:b(n,t)}),{})}
22function S(e,t){let r=b(e,t);return{message:r.message,stack:r.stack}}function E(e,t){if(!1===e||null==e)throw console.error("The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose"),new Error(t)}function w(e,t,r,i,o){let a=(0,n.matchRoutesImpl)(t,i,o??"/",!1,r);return a?a.map(t=>{let r=e[t.route.id];return E(r,`Route with id "${t.route.id}" not found in manifest.`),{params:t.params,pathname:t.pathname,route:r}}):null}async function T(e,t,r){let i=await e({request:r.v8_passThroughRequests?t.request:O(x(t.request)),url:t.url,params:t.params,context:t.context,pattern:t.pattern});if((0,n.isDataWithResponseInit)(i)&&i.init&&i.init.status&&(0,n.isRedirectStatusCode)(i.init.status))throw new Response(null,i.init);return i}function x(e){let t=new URL(e.url),r=t.searchParams.getAll("index");t.searchParams.delete("index");let n=[];for(let e of r)e&&n.push(e);for(let e of n)t.searchParams.append("index",e);let i={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return i.body&&(i.duplex="half"),new Request(t.href,i)}function O(e){let t=new URL(e.url);t.searchParams.delete("_routes");let r={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return r.body&&(r.duplex="half"),new Request(t.href,r)}var A="__reactRouterDevServerHooks";function R(e){globalThis[A]=e}function P(){return globalThis[A]}function I(e,t){if("undefined"!=typeof process)try{if(process.env.hasOwnProperty("IS_RR_BUILD_REQUEST")&&"yes"===process.env.IS_RR_BUILD_REQUEST)return e.headers.get(t)}catch(e){}return null}function C(e,t,r="",i=function(e){let t={};return Object.values(e).forEach(e=>{if(e){let r=e.parentId||"";t[r]||(t[r]=[]),t[r].push(e)}}),t}(e)){return(i[r]||[]).map(r=>{let o={hasErrorBoundary:"root"===r.id||null!=r.module.ErrorBoundary,id:r.id,path:r.path,middleware:r.module.middleware,loader:r.module.loader?async e=>{let i=I(e.request,"X-React-Router-Prerender-Data");if(null!=i){let e=i?decodeURI(i):i;E(e,"Missing prerendered data for route");let t=(new TextEncoder).encode(e),o=new ReadableStream({start(e){e.enqueue(t),e.close()}}),a=(await(0,n.decodeViaTurboStream)(o,globalThis)).value;if(a&&n.SingleFetchRedirectSymbol in a){let e=a[n.SingleFetchRedirectSymbol],t={status:e.status};throw e.reload?(0,n.redirectDocument)(e.redirect,t):e.replace?(0,n.replace)(e.redirect,t):(0,n.redirect)(e.redirect,t)}{E(a&&r.id in a,"Unable to decode prerendered data");let e=a[r.id];return E("data"in e,"Unable to process prerendered data"),e.data}}return await T(r.module.loader,e,t)}:void 0,action:r.module.action?e=>T(r.module.action,e,t):void 0,handle:r.module.handle};return r.index?{index:!0,...o}:{caseSensitive:r.caseSensitive,children:C(e,t,r.id,i),...o}})}function k(e){return(0,n.escapeHtml)(JSON.stringify(e))}function M(e,t){return function(e,t,r){let n,i=e.errors?e.matches.findIndex(t=>e.errors[t.route.id]):-1,o=i>=0?e.matches.slice(0,i+1):e.matches;if(i>=0){let{actionHeaders:t,actionData:r,loaderHeaders:o,loaderData:a}=e;e.matches.slice(i).some(e=>{let i=e.route.id;return!t[i]||r&&r.hasOwnProperty(i)?o[i]&&!a.hasOwnProperty(i)&&(n=o[i]):n=t[i],null!=n})}const a=new Headers(r);return o.reduce((r,i,a)=>{let{id:s}=i.route,c=e.loaderHeaders[s]||new Headers,l=e.actionHeaders[s]||new Headers,u=null!=n&&a===o.length-1,d=u&&n!==c&&n!==l,p=t(i);if(null==p){let e=new Headers(r);return d&&D(n,e),D(l,e),D(c,e),e}let f=new Headers("function"==typeof p?p({loaderHeaders:c,parentHeaders:r,actionHeaders:l,errorHeaders:u?n:void 0}):p);return d&&D(n,f),D(l,f),D(c,f),D(r,f),f},new Headers(a))}(e,e=>{let r=t.routes[e.route.id];return E(r,`Route with id "${e.route.id}" not found in build`),r.module.headers})}function D(e,t){let r=e.get("Set-Cookie");if(r){let e=(0,a.splitCookiesString)(r),n=new Set(t.getSetCookie());e.forEach(e=>{n.has(e)||t.append("Set-Cookie",e)})}}function N(e,t){let r=e.headers.get("origin"),n=null;try{n="string"==typeof r&&"null"!==r?new URL(r).host:r}catch{throw new Error("`origin` header is not a valid URL. Aborting the action.")}let i=new URL(e.url).host;if(n&&n!==i&&!function(e,t=[]){return t.some(t=>t&&(t===e||function(e,t){const r=e.split("."),n=t.split(".");if(n.length<1)return!1;if(r.length<n.length)return!1;for(;n.length;){const e=n.pop(),t=r.pop();switch(e){case"":return!1;case"*":if(t)continue;return!1;case"**":return!(n.length>0)&&void 0!==t;default:if(t!==e)return!1}}return 0===r.length}(e,t)))}(n,t))throw new Error("The `request.url` host does not match `origin` header from a forwarded action request. Aborting the action.")}function L(e,t,r){t=t||"/";let i=new URL(e.url),o=i.pathname;r?.v8_trailingSlashAwareDataRequests?o=o.endsWith("/_.data")?o.replace(/_\.data$/,""):o.replace(/\.data$/,""):("/_root.data"===(0,n.stripBasename)(o,t)?o=t:o.endsWith(".data")&&(o=o.replace(/\.data$/,"")),"/"!==(0,n.stripBasename)(o,t)&&o.endsWith("/")&&(o=o.slice(0,-1)));let a=new URLSearchParams(i.search);a.delete("_routes");let s=a.toString();return s&&(s=`?${s}`),{pathname:o,search:s,hash:""}}var F=new Set([...n.NO_BODY_STATUS_CODES,304]);async function B(e,t,r,i,o,a,s){try{try{N(i,Array.isArray(e.allowedActionOrigins)?e.allowedActionOrigins:[])}catch(e){return l(new Error("Bad Request"),400)}
22let t=e.future.v8_passThroughRequests?i:new Request(o,{method:i.method,body:i.body,headers:i.headers,signal:i.signal,...i.body?{duplex:"half"}:void 0}),n=await r.query(t,{requestContext:a,skipLoaderErrorBubbling:!0,skipRevalidation:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return c(await e(t))}catch(e){return l(e)}}:void 0,normalizePath:t=>L(t,e.basename,e.future)});return c(n)}catch(e){return l(e)}function c(r){return(0,n.isResponse)(r)?r:function(r){let o,a=M(r,e);if((0,n.isRedirectStatusCode)(r.statusCode)&&a.has("Location"))return new Response(null,{status:r.statusCode,headers:a});r.errors&&(Object.values(r.errors).forEach(e=>{(0,n.isRouteErrorResponse)(e)&&!e.error||s(e)}),r.errors=_(r.errors,t));o=r.errors?{error:Object.values(r.errors)[0]}:{data:Object.values(r.actionData||{})[0]};return U(i,e,t,{result:o,headers:a,status:r.statusCode})}(r)}function l(r,n=500){return s(r),U(i,e,t,{result:{error:r},headers:new Headers,status:n})}}async function j(e,t,r,i,o,a,s){let c=new URL(i.url).searchParams.get("_routes"),l=c?new Set(c.split(",")):null;try{let t=e.future.v8_passThroughRequests?i:new Request(o,{headers:i.headers,signal:i.signal}),n=await r.query(t,{requestContext:a,filterMatchesToLoad:e=>!l||l.has(e.route.id),skipLoaderErrorBubbling:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return u(await e(t))}catch(e){return d(e)}}:void 0,normalizePath:t=>L(t,e.basename,e.future)});return u(n)}catch(e){return d(e)}function u(r){return(0,n.isResponse)(r)?r:function(r){let o=M(r,e);if((0,n.isRedirectStatusCode)(r.statusCode)&&o.has("Location"))return new Response(null,{status:r.statusCode,headers:o});r.errors&&(Object.values(r.errors).forEach(e=>{(0,n.isRouteErrorResponse)(e)&&!e.error||s(e)}),r.errors=_(r.errors,t));let a={},c=new Set(r.matches.filter(e=>l?l.has(e.route.id):null!=e.route.loader).map(e=>e.route.id));if(r.errors)for(let[e,t]of Object.entries(r.errors))a[e]={error:t};for(let[e,t]of Object.entries(r.loaderData))!(e in a)&&c.has(e)&&(a[e]={data:t});return U(i,e,t,{result:a,headers:o,status:r.statusCode})}(r)}function d(r){return s(r),U(i,e,t,{result:{error:r},headers:new Headers,status:500})}}function U(e,t,r,{result:n,headers:i,status:o}){let a=new Headers(i);return a.set("X-Remix-Response","yes"),F.has(o)?new Response(null,{status:o,headers:a}):(a.set("Content-Type","text/x-script"),a.delete("Content-Length"),new Response(z(n,e.signal,t.entry.module.streamTimeout,r),{status:o||200,headers:a}))}function H(e,t,r,i){let o=function(e,t,r){let i=t.get("Location");r&&(i=(0,n.stripBasename)(i,r)||i);return{redirect:i,status:e,revalidate:t.has("X-Remix-Revalidate")||t.has("Set-Cookie"),reload:t.has("X-Remix-Reload-Document"),replace:t.has("X-Remix-Replace")}}(e.status,e.headers,r.basename),a=new Headers(e.headers);return a.delete("Location"),a.set("Content-Type","text/x-script"),U(t,r,i,{result:"GET"===t.method?{[n.SingleFetchRedirectSymbol]:o}:o,headers:a,status:n.SINGLE_FETCH_REDIRECT_STATUS})}function z(e,t,r,i){let o=new AbortController,a=setTimeout(()=>{o.abort(new Error("Server Timeout")),c()},"number"==typeof r?r:4950),s=()=>{o.abort(t.reason),c()};t.addEventListener("abort",s);let c=()=>{clearTimeout(a),t.removeEventListener("abort",s)};return(0,n.encode)(e,{signal:o.signal,onComplete:c,plugins:[e=>{if(e instanceof Error){let{name:t,message:r,stack:n}="production"===i?b(e,i):e;return["SanitizedError",t,r,n]}if(e instanceof n.ErrorResponseImpl){let{data:t,status:r,statusText:n}=e;return["ErrorResponse",t,r,n]}if(e&&"object"==typeof e&&n.SingleFetchRedirectSymbol in e)return["SingleFetchRedirect",e[n.SingleFetchRedirectSymbol]]}],postPlugins:[e=>{if(e&&"object"==typeof e)return["SingleFetchClassInstance",Object.fromEntries(Object.entries(e))]},()=>["SingleFetchFallback"]]})}function V(e,t){let r=C(e.routes,e.future),i="development"===(o=t)||"production"===o||"test"===o?t:"production";var o;let a=(0,n.createStaticHandler)(r,{basename:e.basename,instrumentations:e.entry.module.instrumentations,future:e.future}),s=e.entry.module.handleError||((e,{request:t})=>{"test"===i||t.signal.aborted||console.error((0,n.isRouteErrorResponse)(e)&&e.error?e.error:e)}),c=async(r,o)=>{let c,l={},u=e=>{"development"===t&&P()?.processRequestError?.(e),s(e,{context:c,params:l,request:r})};if(e.future.v8_middleware){if(o&&!(o instanceof n.RouterContextProvider)){let e=new Error("Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function.");return u(e),$(e,i)}c=o||new n.RouterContextProvider}else c=o||{};let d=new URL(r.url),p=L(r,e.basename,e.future).pathname,f="yes"===I(r,"X-React-Router-SPA-Mode");if(!e.ssr){let t=decodeURI(p);if(e.basename&&"/"!==e.basename){let i=(0,n.stripBasename)(t,e.basename);if(null==i)return s(new n.ErrorResponseImpl(404,"Not Found",`Refusing to prerender the \`${t}
22\` path because it does not start with the basename \`${e.basename}\``),{context:c,params:l,request:r}),new Response("Not Found",{status:404,statusText:"Not Found"});t=i}if(0===e.prerender.length)f=!0;else if(!e.prerender.includes(t.replace(/\/$/,""))&&!e.prerender.includes(t.replace(/[^/]$/,"/"))){if(d.pathname.endsWith(".data"))return s(new n.ErrorResponseImpl(404,"Not Found",`Refusing to SSR the path \`${t}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`),{context:c,params:l,request:r}),new Response("Not Found",{status:404,statusText:"Not Found"});f=!0}}let h=(0,n.getManifestPath)(e.routeDiscovery.manifestPath,e.basename);if("lazy"===e.routeDiscovery.mode&&d.pathname===h)try{let t=await async function(e,t,r,i){if(i.toString().length>n.URL_LIMIT)return new Response(null,{statusText:"Bad Request",status:400});if(e.assets.version!==i.searchParams.get("version"))return new Response(null,{status:204,headers:{"X-Remix-Reload-Document":"true"}});let o={};if(i.searchParams.has("paths")){let n=i.searchParams.get("paths")||"",a=new Set(n.split(",").filter(Boolean));for(let n of a){n.startsWith("/")||(n=`/${n}`);let i=w(e.routes,t,r,n,e.basename);if(i)for(let t of i){let r=t.route.id,n=e.assets.routes[r];n&&(o[r]=n)}}return Response.json(o,{headers:{"Cache-Control":"public, max-age=31536000, immutable"}})}return new Response("Invalid Request",{status:400})}(e,a.dataRoutes,a._internalRouteBranches,d);return t}catch(e){return u(e),new Response("Unknown Server Error",{status:500})}let m,g=w(e.routes,a.dataRoutes,a._internalRouteBranches,p,e.basename);if(g&&g.length>0&&Object.assign(l,g[0].params),d.pathname.endsWith(".data"))m=await async function(e,t,r,i,o,a,s){let c=new URL(i.url);c.pathname=o;let l=(0,n.isMutationMethod)(i.method)?await B(t,e,r,i,c,a,s):await j(t,e,r,i,c,a,s);return l}(i,e,a,r,p,c,u),(0,n.isRedirectResponse)(m)&&(m=H(m,r,e,i)),e.entry.module.handleDataRequest&&(m=await e.entry.module.handleDataRequest(m,{context:c,params:g?g[0].params:{},request:r}),(0,n.isRedirectResponse)(m)&&(m=H(m,r,e,i)));else if(!f&&g&&null==g[g.length-1].route.module.default&&null==g[g.length-1].route.module.ErrorBoundary)m=await async function(e,t,r,i,o,a,s){try{let e=await r.queryRoute(o,{routeId:i,requestContext:a,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{return c(await e(o))}catch(e){return l(e)}}:void 0,normalizePath:e=>L(e,t.basename,t.future)});return c(e)}catch(e){return l(e)}function c(e){return(0,n.isResponse)(e)?e:"string"==typeof e?new Response(e):Response.json(e)}function l(t){if((0,n.isResponse)(t))return t;if((0,n.isRouteErrorResponse)(t))return s(t),function(e,t){return Response.json(S(e.error||new Error("Unexpected Server Error"),t),{status:e.status,statusText:e.statusText})}(t,e);if(t instanceof Error&&"Expected a response from queryRoute"===t.message){let t=new Error("Expected a Response to be returned from resource route handler");return s(t),$(t,e)}return s(t),$(t,e)}}(i,e,a,g.slice(-1)[0].route.id,r,c,u);else{let o,{pathname:s}=d;e.unstable_getCriticalCss?o=await e.unstable_getCriticalCss({pathname:s}):"development"===t&&P()?.getCriticalCss&&(o=await(P()?.getCriticalCss?.(s))),m=await async function(e,t,r,i,o,a,s,c){try{if((0,n.isMutationMethod)(i.method))try{N(i,Array.isArray(t.allowedActionOrigins)?t.allowedActionOrigins:[])}catch(e){return a(e),new Response("Bad Request",{status:400})}let e=await r.query(i,{requestContext:o,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{let t=await e(i);return(0,n.isResponse)(t)||(t=await l(t,s)),t}catch(e){return a(e),new Response(null,{status:500})}}:void 0,normalizePath:e=>L(e,t.basename,t.future)});return(0,n.isResponse)(e)||(e=await l(e,s)),e}catch(e){return a(e),new Response(null,{status:500})}async function l(s,l){let u=M(s,t);if(F.has(s.statusCode))return new Response(null,{status:s.statusCode,headers:u});s.errors&&(Object.values(s.errors).forEach(e=>{(0,n.isRouteErrorResponse)(e)&&!e.error||a(e)}),s.errors=_(s.errors,e));let d={loaderData:s.loaderData,actionData:s.actionData,errors:s.errors},p={basename:t.basename,future:t.future,routeDiscovery:t.routeDiscovery,ssr:t.
22ssr,isSpaMode:l},f={manifest:t.assets,branches:r._internalRouteBranches,routeModules:y(t.routes),staticHandlerContext:s,criticalCss:c,serverHandoffString:k({...p,criticalCss:c}),serverHandoffStream:z(d,i.signal,t.entry.module.streamTimeout,e),renderMeta:{},future:t.future,ssr:t.ssr,routeDiscovery:t.routeDiscovery,isSpaMode:l,serializeError:t=>S(t,e)},h=t.entry.module.default;try{return await h(i,s.statusCode,u,f,o)}catch(c){a(c);let l=c;if((0,n.isResponse)(c))try{let e=await function(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}(c);l=new n.ErrorResponseImpl(c.status,c.statusText,e)}catch(e){}(s=(0,n.getStaticContextFromError)(r.dataRoutes,s,l)).errors&&(s.errors=_(s.errors,e));let d={loaderData:s.loaderData,actionData:s.actionData,errors:s.errors};f={...f,staticHandlerContext:s,serverHandoffString:k(p),serverHandoffStream:z(d,i.signal,t.entry.module.streamTimeout,e),renderMeta:{}};try{return await h(i,s.statusCode,u,f,o)}catch(t){return a(t),$(t,e)}}}}(i,e,a,r,c,u,f,o)}return"HEAD"===r.method?new Response(null,{headers:m.headers,status:m.status,statusText:m.statusText}):m};return e.entry.module.instrumentations&&(c=(0,n.instrumentHandler)(c,e.entry.module.instrumentations.map(e=>e.handler).filter(Boolean))),{serverMode:i,staticHandler:a,errorHandler:s,requestHandler:c}}var G=(e,t)=>{let r,n,i,o,a;return async function(s,c){if(r="function"==typeof e?await e():e,"function"==typeof e){let e=V(r,t);n=e.serverMode,i=e.staticHandler,o=e.errorHandler,a=e.requestHandler}else if(!(n&&i&&o&&a)){let e=V(r,t);n=e.serverMode,i=e.staticHandler,o=e.errorHandler,a=e.requestHandler}return a(s,c)}};function $(e,t){let r="Unexpected Server Error";return"production"!==t&&(r+=`\n\n${String(e)}`),new Response(r,{status:500,headers:{"Content-Type":"text/plain"}})}function q(e){return`__flash_${e}__`}var W=(e={},t="")=>{let r=new Map(Object.entries(e));return{get id(){return t},get data(){return Object.fromEntries(r)},has:e=>r.has(e)||r.has(q(e)),get(e){if(r.has(e))return r.get(e);let t=q(e);if(r.has(t)){let e=r.get(t);return r.delete(t),e}},set(e,t){r.set(e,t)},flash(e,t){r.set(q(e),t)},unset(e){r.delete(e)}}},K=e=>null!=e&&"string"==typeof e.id&&void 0!==e.data&&"function"==typeof e.has&&"function"==typeof e.get&&"function"==typeof e.set&&"function"==typeof e.flash&&"function"==typeof e.unset;function Y({cookie:e,createData:t,readData:r,updateData:n,deleteData:i}){let o=h(e)?e:f(e?.name||"__session",e);return J(o),{async getSession(e,t){let n=e&&await o.parse(e,t),i=n&&await r(n);return W(i||{},n||"")},async commitSession(e,r){let{id:i,data:a}=e,s=null!=r?.maxAge?new Date(Date.now()+1e3*r.maxAge):null!=r?.expires?r.expires:o.expires;return i?await n(i,a,s):i=await t(a,s),o.serialize(i,r)},destroySession:async(e,t)=>(await i(e.id),o.serialize("",{...t,maxAge:void 0,expires:new Date(0)}))}}function J(e){(0,n.warnOnce)(e.isSigned,`The "${e.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.`)}function Q({cookie:e}={}){let t=h(e)?e:f(e?.name||"__session",e);return J(t),{getSession:async(e,r)=>W(e&&await t.parse(e,r)||{}),async commitSession(e,r){let n=await t.serialize(e.data,r);if(n.length>4096)throw new Error("Cookie length will exceed browser maximum. Length: "+n.length);return n},destroySession:async(e,r)=>t.serialize("",{...r,maxAge:void 0,expires:new Date(0)})}}function X({cookie:e}={}){let t=new Map;return Y({cookie:e,async createData(e,r){let n=Math.random().toString(36).substring(2,10);return t.set(n,{data:e,expires:r}),n},async readData(e){if(t.has(e)){let{data:r,expires:n}=t.get(e);if(!n||n>new Date)return r;n&&t.delete(e)}return null},async updateData(e,r,n){t.set(e,{data:r,expires:n})},async deleteData(e){t.delete(e)}})}function Z(e,...t){let r=t[0],n=function(e){let t=e.length-1,r=e[t];if("*"!==r&&"/"!==r)return e;for(t--;t>=0&&"/"===e[t];t--);return e.slice(0,t+1)}(e).replace(/\/:([\w-]+)(\?)?/g,(t,n,i)=>{const o=void 0===i,a=r?.[n];if(o&&void 0===a)throw new Error(`Path '${e}' requires param '${n}' but it was not provided`);return void 0===a?"":"/"+a});if(e.endsWith("*")){const e=r?.["*"];void 0!==e&&(n+="/"+e)}return n||"/"}var ee=new TextEncoder,te="</body></html>";function re(e){let t,r=new TextDecoder,n=new Promise(e=>t=e),i=!1,o=[],a=null;function s(e){for(let t of o){let n=r.decode(t,{stream:!0});n.endsWith(te)&&(n=n.slice(0,-te.length)),e.enqueue(ee.encode(n))}o.length=0,a=null}return new TransformStream({transform(r,n){o.push(r),a||(a=setTimeout(async()=>{s(n),i||(i=!0,async function(e,t){let r=new TextDecoder("utf-8",{fatal:!0});const n=e.getReader();try{let e;for(;(e=await n.read())&&!e.done;){const n=e.value;try{ne(JSON.stringify(r.decode(n,{stream:!0})),t)}catch(e){ne(`Uint8Array.from(atob(${JSON.stringify(btoa(String.fromCodePoint(...n)))}), m => m.codePointAt(0))`,t)}}}finally{n.releaseLock()}let i=r.decode();i.length&&ne(JSON.stringify(i),t)}(e,n).catch(e=>n.error(e)).then(t))},0))},async flush(e){await n,a&&(clearTimeout(a),s(e)),e.enqueue(ee.encode("<
22/body></html>"))}})}function ne(e,t){var r;t.enqueue(ee.encode(`<script>${r=`(self.__FLIGHT_DATA||=[]).push(${e})`,r.replace(/<!--/g,"<\\!--").replace(/<\/(script)/gi,"</\\$1")}<\/script>`))}var ie=class extends i.default.Component{constructor(e){super(e),this.state={error:null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:null,location:e.location}:{error:t.error,location:t.location}}render(){return this.state.error?i.default.createElement(ae,{error:this.state.error,renderAppShell:!0}):this.props.children}};function oe({renderAppShell:e,title:t,children:r}){return e?i.default.createElement("html",{lang:"en"},i.default.createElement("head",null,i.default.createElement("meta",{charSet:"utf-8"}),i.default.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),i.default.createElement("title",null,t)),i.default.createElement("body",null,i.default.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r))):r}function ae({error:e,renderAppShell:t}){console.error(e);let r,o=i.default.createElement("script",{dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n        );\n      '}});if((0,n.isRouteErrorResponse)(e))return i.default.createElement(oe,{renderAppShell:t,title:"Unhandled Thrown Response!"},i.default.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),n.ENABLE_DEV_WARNINGS?o:null);if(e instanceof Error)r=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);r=new Error(t)}return i.default.createElement(oe,{renderAppShell:t,title:"Application Error!"},i.default.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),i.default.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),o)}function se({hasRootLayout:e}){let t=(0,n.useRouteError)();if(void 0===e)throw new Error("Missing 'hasRootLayout' prop");return i.default.createElement(ae,{renderAppShell:!e,error:t})}function ce(e){const t={};for(const r of e.matches)le(t,r);return t}function le(e,t){t=Array.isArray(t)?t:[t];for(const r of t)e[r.id]={links:r.links,meta:r.meta,default:ue}}var ue=()=>null,de="/__manifest",pe=i.use;async function fe({request:e,serverResponse:t,createFromReadableStream:r,renderHTML:i,hydrate:o=!0}){const a=new URL(e.url),s=function(e){return e.pathname.endsWith(".rsc")}(a),c=s||function(e){return e.pathname.endsWith(".manifest")}(a)||e.headers.has("rsc-action-id");if(c||"true"===t.headers.get("React-Router-Resource"))return t;if(!t.body)throw new Error("Missing body in server response");const l=t.clone();let u=null;o&&(u=t.clone());const d=t.body;let p,f=[];const h=()=>p?new ReadableStream({start(e){p.forEach(t=>e.enqueue(t)),f.push(e)}}):(p=[],d.pipeThrough(new TransformStream({transform(e,t){p.push(e),t.enqueue(e),f.forEach(t=>t.enqueue(e))},flush(){f.forEach(e=>e.close()),f=[]}})));let m=null;const g=()=>{const e=Promise.resolve(r(h()));return Object.defineProperties(e,{_deepestRenderedBoundaryId:{get:()=>m,set(e){m=e}},formState:{get:()=>e.then(e=>"render"===e.type?e.formState:void 0)}})};let y,v;try{if(!l.body)throw new Error("Failed to clone server response");const e=await r(l.body);if(t.status===n.SINGLE_FETCH_REDIRECT_STATUS&&"redirect"===e.type){if((0,n.hasInvalidProtocol)(e.location))throw new Error("Invalid redirect location");const r=new Headers(t.headers);return r.delete("Content-Encoding"),r.delete("Content-Length"),r.delete("Content-Type"),r.delete("X-Remix-Response"),r.set("Location",e.location),new Response(u?.body||"",{headers:r,status:e.status,statusText:t.statusText})}let a=new Headers,s=t.status,c=t.statusText,d=await i(g,{onError(e){if("object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){if(y=(0,n.decodeRedirectErrorDigest)(e.digest),y)return e.digest;let t=(0,n.decodeRouteErrorResponseDigest)(e.digest);if(t)return v=t,s=t.status,c=t.statusText,e.digest}},onHeaders(e){for(const[t,r]of e)a.append(t,r)}});const p=new Headers(a);for(const[e,r]of t.headers)p.append(e,r);if(p.set("Content-Type","text/html; charset=utf-8"),y){if((0,n.hasInvalidProtocol)(y.location))throw new Error("Invalid redirect location");return p.set("Location",y.location),new Response(d,{status:y.status,headers:p})}const f=new TransformStream({flush(e){if(y){if((0,n.hasInvalidProtocol)(y.location))return;e.enqueue((new TextEncoder).encode(`<meta http-equiv="refresh" content="0;url=${(0,n.escapeHtml)(y.location)}"/>`))}}});if(!o)return new Response(d.pipeThrough(f),{status:s,statusText:c,headers:p});if(!u?.body)throw new Error("Failed to clone server response");const h=d.pipeThrough(re(u.body)).pipeThrough(f);return new Response(h,{status:s,statusText:c,headers:p})}catch(e){if(e instanceof Response)return e;if(y){if((0,n.hasInvalidProtocol)(y.location))throw new Error("Invalid redirect location");return new Response(`Redirect: ${y.location}`,{status:y.status,headers:{Location:y.location}})}try{let a,s=v??e,[c,l]=(0,n.isRouteErrorResponse)(s)?[s.status,s.statusText]:[500,""],d=new Headers;const p=await i(()=>{const e=Promise.resolve(r(h())).then(e=>Object.assign(e,{status:c,errors:m?{[m]:s}:{}}));return Object.defineProperties(e,{_deepestRenderedBoundaryId:{get:()=>m,set(e){m=e}},formState:{get:()=>e.then(e=>"render"===e.type?e.formState:void 0)}})},{onError(e){if("object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){if(a=(0,n.decodeRedirectErrorDigest)(e.digest),a)return e.digest;let t=(0,n.decodeRouteErrorResponseDigest)(e.digest);if(t)return c=t.status,l=t.statusText,e.digest}},onHeaders(e){for(const[t,r]of e)d.append(t,r)}}),f=new Headers(d);for(const[e,r]of t.headers)f.append(e,r);if(f.set("Content-Type","text/html; charset=utf-8"),a){if((0,n.hasInvalidProtocol)(a.location))throw new Error("Invalid redirect location");return f.set("Location",a.location),new Response(p,{status:a.status,headers:f})}const g=new TransformStream({flush(e){if(a){if((0,n.hasInvalidProtocol)(a.location))return;e.enqueue((new TextEncoder).encode(`<meta http-equiv="refresh" content="0;url=${(0,n.escapeHtml)(a.location)}"/>`))}}});if(!o)return new Response(p.pipeThrough(g),{status:c,statusText:l,headers:f});if(!u?.body)throw new Error("Failed to clone server response");const y=p.pipeThrough(re(u.body)).pipeThrough(g);return new Response(y,{status:c,statusText:l,headers:f})}catch(e){}throw e}}function he({getPayload:e}){const t=e(),r=function(e){if(pe)return pe(e);throw new Error("React Router v7 requires React 19+ for RSC features.")}(t);if("redirect"===r.type){if((0,n.hasInvalidProtocol)(r.location))throw new Error("Invalid redirect location");throw new Response(null,{status:r.status,headers:{Location:r.location}})}if("render"!==r.type)return null;let o={...r.loaderData};for(const e of r.matches)!(0,n.shouldHydrateRouteLoader)(e.id,e.clientLoader,e.hasLoader,!1)||
22!e.hydrateFallbackElement&&e.hasLoader||delete o[e.id];const a={get _deepestRenderedBoundaryId(){return t._deepestRenderedBoundaryId??null},set _deepestRenderedBoundaryId(e){t._deepestRenderedBoundaryId=e},actionData:r.actionData,actionHeaders:{},basename:r.basename,errors:r.errors,loaderData:o,loaderHeaders:{},location:r.location,statusCode:200,matches:r.matches.map(e=>({params:e.params,pathname:e.pathname,pathnameBase:e.pathnameBase,route:{id:e.id,action:e.hasAction||!!e.clientAction,handle:e.handle,hasErrorBoundary:e.hasErrorBoundary,loader:e.hasLoader||!!e.clientLoader,index:e.index,path:e.path,shouldRevalidate:e.shouldRevalidate}}))},s=(0,n.createStaticRouter)(r.matches.reduceRight((e,t)=>{const r={id:t.id,action:t.hasAction||!!t.clientAction,element:t.element,errorElement:t.errorElement,handle:t.handle,hasErrorBoundary:!!t.errorElement,hydrateFallbackElement:t.hydrateFallbackElement,index:t.index,loader:t.hasLoader||!!t.clientLoader,path:t.path,shouldRevalidate:t.shouldRevalidate};return e.length>0&&(r.children=e),[r]},[]),a),c={future:{v8_middleware:!1,v8_trailingSlashAwareDataRequests:!0,v8_passThroughRequests:!0},isSpaMode:!1,ssr:!0,criticalCss:"",manifest:{routes:{},version:"1",url:"",entry:{module:"",imports:[]}},routeDiscovery:"initial"===r.routeDiscovery.mode?{mode:"initial",manifestPath:de}:{mode:"lazy",manifestPath:r.routeDiscovery.manifestPath||de},routeModules:ce(r)};return i.createElement(n.RSCRouterContext.Provider,{value:!0},i.createElement(ie,{location:r.location},i.createElement(n.FrameworkContext.Provider,{value:c},i.createElement(n.StaticRouterProvider,{context:a,router:s,hydrate:!1,nonce:r.nonce}))))}function me({state:e,routes:t,getRouteInfo:r,location:i,basename:o,isSpaMode:a}){let s={...e,loaderData:{...e.loaderData}},c=(0,n.matchRoutes)(t,i,o);if(c)for(let e of c){let t=e.route.id,i=r(t);!(0,n.shouldHydrateRouteLoader)(t,i.clientLoader,i.hasLoader,a)||!i.hasHydrateFallback&&i.hasLoader?i.hasLoader||(s.loaderData[t]=null):delete s.loaderData[t]}return s}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseCookie=l,t.parse=l,t.stringifyCookie=function(e,t){const i=t?.encode||encodeURIComponent,o=[];for(const t of Object.keys(e)){const a=e[t];if(void 0===a)continue;if(!r.test(t))throw new TypeError(`cookie name is invalid: ${t}`);const s=i(a);if(!n.test(s))throw new TypeError(`cookie val is invalid: ${a}`);o.push(`${t}=${s}`)}return o.join("; ")},t.stringifySetCookie=u,t.serialize=u,t.parseSetCookie=function(e,t){const r=t?.decode||h,n=e.length,i=d(e,0,n),o=p(e,0,i),s=-1===o?{name:"",value:r(f(e,0,i))}:{name:f(e,0,o),value:r(f(e,o+1,i))};let c=i+1;for(;c<n;){const t=d(e,c,n),r=p(e,c,t),i=f(e,c,-1===r?t:r),o=-1===r?void 0:f(e,r+1,t);switch(i.toLowerCase()){case"httponly":s.httpOnly=!0;break;case"secure":s.secure=!0;break;case"partitioned":s.partitioned=!0;break;case"domain":s.domain=o;break;case"path":s.path=o;break;case"max-age":o&&a.test(o)&&(s.maxAge=Number(o));break;case"expires":if(!o)break;const e=new Date(o);Number.isFinite(e.valueOf())&&(s.expires=e);break;case"priority":if(!o)break;const t=o.toLowerCase();"low"!==t&&"medium"!==t&&"high"!==t||(s.priority=t);break;case"samesite":if(!o)break;const r=o.toLowerCase();"lax"!==r&&"strict"!==r&&"none"!==r||(s.sameSite=r)}c=t+1}return s},t.stringifySetCookie=u,t.serialize=u;const r=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,a=/^-?\d+$/,s=Object.prototype.toString,c=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function l(e,t){const r=new c,n=e.length;if(n<2)return r;const i=t?.decode||h;let o=0;do{const t=p(e,o,n);if(-1===t)break;const a=d(e,o,n);if(t>a){o=e.lastIndexOf(";",t-1)+1;continue}const s=f(e,o,t);void 0===r[s]&&(r[s]=i(f(e,t+1,a))),o=a+1}while(o<n);return r}function u(e,t,a){const c="object"==typeof e?e:{...a,name:e,value:String(t)},l="object"==typeof t?t:a,u=l?.encode||encodeURIComponent;
vendor: 1,061 bytes, line 22
22if(!r.test(c.name))throw new TypeError(`argument name is invalid: ${c.name}`);const d=c.value?u(c.value):"";if(!n.test(d))throw new TypeError(`argument val is invalid: ${c.value}`);let p=c.name+"="+d;if(void 0!==c.maxAge){if(!Number.isInteger(c.maxAge))throw new TypeError(`option maxAge is invalid: ${c.maxAge}`);p+="; Max-Age="+c.maxAge}if(c.domain){if(!i.test(c.domain))throw new TypeError(`option domain is invalid: ${c.domain}`);p+="; Domain="+c.domain}if(c.path){if(!o.test(c.path))throw new TypeError(`option path is invalid: ${c.path}`);p+="; Path="+c.path}if(c.expires){if(f=c.expires,"[object Date]"!==s.call(f)||!Number.isFinite(c.expires.valueOf()))throw new TypeError(`option expires is invalid: ${c.expires}`);p+="; Expires="+c.expires.toUTCString()}var f;if(c.httpOnly&&(p+="; HttpOnly"),c.secure&&(p+="; Secure"),c.partitioned&&(p+="; Partitioned"),c.priority){switch("string"==typeof c.priority?c.priority.toLowerCase():void 0){case"low":p+="; Priority=Low";break;case"medium":p+="; Priority=Medium";break;case"high":p+="; Priority=High";break;
22default:throw new TypeError(`option priority is invalid: ${c.priority}`)}}if(c.sameSite){switch("string"==typeof c.sameSite?c.sameSite.toLowerCase():c.sameSite){case!0:case"strict":p+="; SameSite=Strict";break;case"lax":p+="; SameSite=Lax";break;case"none":p+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${c.sameSite}`)}}return p}function d(e,t,r){const n=e.indexOf(";",t);return-1===n?r:n}function p(e,t,r){const n=e.indexOf("=",t);return n<r?n:-1}function f(e,t,r){let n=t,i=r;do{const t=e.charCodeAt(n);if(32!==t&&9!==t)break}while(++n<i);for(;i>n;){const t=e.charCodeAt(i-1);if(32!==t&&9!==t)break;i--}return e.slice(n,i)}function h(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}},e=>{"use strict";var t={decodeValues:!0,map:!1,silent:!1};function r(e){return"string"!=typeof e||e in{}}function n(){return Object.create(null)}function i(e){return"string"==typeof e&&!!e.trim()}function o(e,o){var a=e.split(";").filter(i),s=function(e){var t="",r="",n=e.split("=");n.length>1?(t=n.shift(),r=n.join("=")):r=e;return{name:t,value:r}}(a.shift()),c=s.name,l=s.value;if(o=o?Object.assign({},t,o):t,r(c))return null;try{l=o.decodeValues?decodeURIComponent(l):l}catch(e){console.error("set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.",e)}var u=n();return u.name=c,u.value=l,a.forEach(function(e){var t=e.split("="),n=t.shift().trimLeft().toLowerCase();if(!r(n)){var i=t.join("=");if("expires"===n)u.expires=new Date(i);else if("max-age"===n){var o=parseInt(i,10);Number.isNaN(o)||(u.maxAge=o)}else"secure"===n?u.secure=!0:"httponly"===n?u.httpOnly=!0:"samesite"===n?u.sameSite=i:"partitioned"===n?u.partitioned=!0:n&&(u[n]=i)}}),u}function a(e,a){if(a=a?Object.assign({},t,a):t,!e)return a.map?n():[];if(e.headers)if("function"==typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var s=e.headers[Object.keys(e.headers).find(function(e){return"set-cookie"===e.toLowerCase()})];s||!e.headers.cookie||a.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=s}if(Array.isArray(e)||(e=[e]),a.map){var c=n();return e.filter(i).reduce(function(e,t){var n=o(t,a);return n&&!r(n.name)&&(e[n.name]=n),e},c)}return e.filter(i).map(function(e){return o(e,a)}).filter(Boolean)}e.exports=a,e.exports.parse=a,e.exports.parseString=o,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,r,n,i,o,a=[],s=0;function c(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}function l(){return"="!==(r=e.charAt(s))&&";"!==r&&","!==r}for(;s<e.length;){for(t=s,o=!1;c();)if(","===(r=e.charAt(s))){for(n=s,s+=1,c(),i=s;s<e.length&&l();)s+=1;s<e.length&&"="===e.charAt(s)?(o=!0,s=i,a.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!o||s>=e.length)&&a.push(e.substring(t,e.length))}return a}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloProvider:()=>s});var n=r(314),i=r(466),o=r(464),a=r(721),s=function(e){var t=e.client,r=e.children,s=(0,a.getApolloContext)(),c=o.useContext(s),l=o.useMemo(function(){return(0,n.__assign)((0,n.__assign)({},c),{client:t||c.client})},[c,t]);return(0,i.invariant)(l.client,71),o.createElement(s.Provider,{value:l},r)}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{getApolloContext:()=>c,resetApolloContext:()=>l});var i=r(464),o=r(474),a=r(466),s=o.canUseSymbol?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function c(){(0,a.invariant)("createContext"in(n||(n=r.t(i,2))),69);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 l=function(){return c()}},,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{createMakeWatchQueryOptions:()=>x,getDefaultFetchPolicy:()=>P,getObsQueryOptions:()=>O,toApolloError:()=>I,toQueryResult:()=>C,useQuery:()=>E,useQueryInternals:()=>T});var n=r(314),i=(r(466),r(464)),o=r(465),a=r(590),s=r(612),c=r(721),l=r(575),u=r(597),d=r(598),p=r(740),f=r(741),h=r(608),m=r(577),g=r(601),y=r(742),v=r(603),b=Object.prototype.hasOwnProperty;function _(){}var S=Symbol();function E(e,t){return void 0===t&&(t=Object.create(null)),(0,y.wrapHook)("useQuery",w,(0,f.useApolloClient)(t&&t.client))(e,t)}function w(e,t){var r=T(e,t),o=r.result,a=r.obsQueryFields;return i.useMemo(function(){return(0,n.__assign)((0,n.__assign)({},o),a)},[o,a])}function T(e,t){var r=(0,f.useApolloClient)(t.client),s=i.useContext((0,c.getApolloContext)()).renderPromises,l=!!s,h=r.disableNetworkFetches,m=!1!==t.ssr&&!t.skip,g=t.partialRefetch,y=x(r,e,t,l),E=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())||u.ObservableQuery.inactiveOnCreation.withValue(!o,function(){return(0,v.muteDeprecations)(["canonizeResults","partialRefetch"],function(){return e.watchQuery(O(void 0,e,r,a()))})}),resultData:{previousData:null===(i=null==n?void 0:n.resultData.current)||void 0===i?void 0:i.data}}}var c=i.useState(s),l=c[0],d=c[1];function f(e){var t,r;Object.assign(l.observable,((t={})[S]=e,t));var i=l.resultData;d((0,n.__assign)((0,n.__assign)({},l),{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!==l.client||t!==l.query){var h=s(l);return d(h),[h,f]}return[l,f]}(r,e,t,s,y),w=E[0],T=w.observable,P=w.resultData,I=E[1],D=y(T);!function(e,t,r,n,i){var o;t[S]&&!(0,a.equal)(t[S],i)&&(t.reobserve(O(t,r,n,i)),e.previousData=(null===(o=e.current)||void 0===o?void 0:o.data)||e.previousData,e.current=void 0);t[S]=i}(P,T,r,t,D);var N=i.useMemo(function(){return function(e){return{refetch:e.refetch.bind(e),reobserve:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];
22return e.reobserve.apply(e,t)},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)}}(T)},[T]);!function(e,t,r){t&&r&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}(T,s,m);var L=function(e,t,r,n,s,c,l,u,p){var f=i.useRef(p);i.useEffect(function(){f.current=p});var h=!u&&!c||!1!==n.ssr||n.skip?n.skip||"standby"===s.fetchPolicy?M:void 0:k,m=e.previousData,g=i.useMemo(function(){return h&&C(h,m,t,r)},[r,t,h,m]);return(0,o.useSyncExternalStore)(i.useCallback(function(n){if(u)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)||A(o,e,t,r,l,n,f.current)},o=function(c){if(s.current.unsubscribe(),s.current=t.resubscribeAfterError(i,o),!b.call(c,"graphQLErrors"))throw c;var u=e.current;(!u||u&&u.loading||!(0,a.equal)(c,u.error))&&A({data:u&&u.data,error:c,loading:!1,networkStatus:d.NetworkStatus.error},e,t,r,l,n,f.current)},s={current:t.subscribe(i,o)};return function(){setTimeout(function(){return s.current.unsubscribe()})}},[c,u,t,e,l,r]),function(){return g||R(e,t,f.current,l,r)},function(){return g||R(e,t,f.current,l,r)})}(P,T,r,t,D,h,g,l,{onCompleted:t.onCompleted||_,onError:t.onError||_});return{result:L,obsQueryFields:N,observable:T,resultData:P,client:r,onQueryExecuted:I}}function x(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 O(e,t,r,n){var i=[],o=t.defaultOptions.watchQuery;return o&&i.push(o),r.defaultOptions&&i.push(r.defaultOptions),i.push((0,g.compact)(e&&e.options,n)),i.reduce(s.mergeOptions)}function A(e,t,r,i,o,a,s){var c=t.current;c&&c.data&&(t.previousData=c.data),!e.error&&(0,m.isNonEmptyArray)(e.errors)&&(e.error=new l.ApolloError({graphQLErrors:e.errors})),t.current=C(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:d.NetworkStatus.refetch});return e}(e,r,o),t.previousData,r,i),a(),function(e,t,r){if(!e.loading){var n=I(e);Promise.resolve().then(function(){n?r.onError(n):e.data&&t!==e.networkStatus&&e.networkStatus===d.NetworkStatus.ready&&r.onCompleted(e.data)}).catch(function(e){})}}(e,null==c?void 0:c.networkStatus,s)}function R(e,t,r,n,i){return e.current||A(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 I(e){return(0,m.isNonEmptyArray)(e.errors)?new l.ApolloError({graphQLErrors:e.errors}):e.error}function C(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!==M,previousData:t})}var k=(0,h.maybeDeepFreeze)({loading:!0,data:void 0,error:void 0,networkStatus:d.NetworkStatus.loading}),M=(0,h.maybeDeepFreeze)({loading:!1,data:void 0,error:void 0,networkStatus:d.NetworkStatus.ready})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DocumentType:()=>n,operationName:()=>l,parser:()=>u,verifyDocumentType:()=>d});var n,i,o=r(466),a=r(560),s=r(562),c=r(603);function l(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){(0,c.warnDeprecated)("parser",function(){}),i||(i=new a.AutoCleanedWeakCache(s.cacheSizes.parser||1e3));var t,r,l=i.get(e);if(l)return l;(0,o.invariant)(!!e&&!!e.kind,94,e);for(var u=[],d=[],p=[],f=[],h=0,m=e.definitions;h<m.length;h++){var g=m[h];if("FragmentDefinition"!==g.kind){if("OperationDefinition"===g.kind)switch(g.operation){case"query":d.push(g);break;case"mutation":p.push(g);break;case"subscription":f.push(g)}}else u.push(g)}(0,o.invariant)(!u.length||d.length||p.length||f.length,95),(0,o.invariant)(d.length+p.length+f.length<=1,96,e,d.length,f.length,p.length),r=d.length?n.Query:n.Mutation,d.length||p.length||(r=n.Subscription);var y=d.length?d:p.length?p:f;(0,o.invariant)(1===y.length,97,e,y.length);var v=y[0];t=v.variableDefinitions||[];var b={name:v.name&&"Name"===v.name.kind?v.name.value:"data",type:r,variables:t};return i.set(e,b),b}function d(e,t){var r=(0,c.muteDeprecations)("parser",u,[e]),n=l(t),i=l(r.type);(0,o.invariant)(r.type===t,98,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});
22var n=r(466),i=r(464),o=r(721);function a(e){var t=i.useContext((0,o.getApolloContext)()),r=e||t.client;return(0,n.invariant)(!!r,78),r}},(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(396),i="undefined"==typeof window?{show:function(){},hide:function(){},config:function(){}}:r(784),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;
23/*! topbar 0.1.4, 2020-04-27
24 *  http://buunguyen.github.io/topbar
25 *  Copyright (c) 2019 Buu Nguyen
26 *  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,l,u,d={autoRun:!0,barThickness:3,barColors:{0:"rgba(26,  188, 156, .9)",".25":"rgba(52,  152, 219, .9)",".50":"rgba(241, 196, 15,  .9)",".75":"rgba(230, 126, 34,  .9)","1.0":"rgba(211, 84,  0,   .9)"},shadowBlur:10,shadowColor:"rgba(0,   0,   0,   .6)",className:null},p=function(){a.width=i.innerWidth,a.height=5*d.barThickness;var e=a.getContext("2d");e.shadowBlur=d.shadowBlur,e.shadowColor=d.shadowColor;var t=e.createLinearGradient(0,0,a.width,0);for(var r in d.barColors)t.addColorStop(r,d.barColors[r]);e.lineWidth=d.barThickness,e.beginPath(),e.moveTo(0,d.barThickness/2),e.lineTo(Math.ceil(l*a.width),d.barThickness/2),e.strokeStyle=t,e.
26stroke()},f={config:function(e){for(var t in e)d.hasOwnProperty(t)&&(d[t]=e[t])},show:function(){var e,t,r,n;u||(u=!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",d.className&&a.classList.add(d.className),o.body.appendChild(a),t="resize",r=p,(e=i).addEventListener?e.addEventListener(t,r,!1):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r),a.style.opacity=1,a.style.display="block",f.progress(0),d.autoRun&&function e(){s=i.requestAnimationFrame(e),f.progress("+"+.05*Math.pow(1-Math.sqrt(l),2))}())},progress:function(e){return void 0===e||("string"==typeof e&&(e=(e.indexOf("+")>=0||e.indexOf("-")>=0?l:0)+parseFloat(e)),l=e>1?1:e,p()),l},hide:function(){u&&(u=!1,null!=s&&(i.cancelAnimationFrame(s),s=null),function e(){if(f.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=f:void 0===(n=function(){return f}.call(t,r,t,e))||(e.exports=n)}).call(this,window,document)},,,(e,t,r)=>{e.exports=r(788)()},(e,t,r)=>{"use strict";var n=r(789);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}
26;return r.PropTypes=r,r}},e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,,,,,,,,,,,(e,t)=>{var r;
27/*!
28	Copyright (c) 2018 Jed Watson.
29	Licensed under the MIT License (MIT), see
30	http://jedwatson.github.io/classnames
31*/!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:()=>d});var n=r(314),i=r(464),o=r(612),a=r(590),s=r(740),c=r(575),l=r(741),u=r(811);function d(e,t){var r=(0,l.useApolloClient)(null==t?void 0:t.client);(0,s.verifyDocumentType)(e,s.DocumentType.Mutation);var d=i.useState({called:!1,loading:!1,client:r}),p=d[0],f=d[1],h=i.useRef({result:p,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});(0,u.useIsomorphicLayoutEffect)(function(){Object.assign(h.current,{client:r,options:t,mutation:e})});var m=i.useCallback(function(e){void 0===e&&(e={});var t=h.current,r=t.options,i=t.mutation,s=(0,n.__assign)((0,n.__assign)({},r),{mutation:i}),l=e.client||h.current.client;h.current.result.loading||s.ignoreResults||!h.current.isMounted||f(h.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:l});var u=++h.current.mutationId,d=(0,o.mergeOptions)(s,e);return l.mutate(d).then(function(t){var r,n,i=t.data,o=t.errors,s=o&&o.length>0?new c.ApolloError({graphQLErrors:o}):void 0,p=e.onError||(null===(r=h.current.options)||void 0===r?void 0:r.onError);if(s&&p&&p(s,d),u===h.current.mutationId&&!d.ignoreResults){var m={called:!0,loading:!1,data:i,error:s,client:l};h.current.isMounted&&!(0,a.equal)(h.current.result,m)&&f(h.current.result=m)}var g=e.onCompleted||(null===(n=h.current.options)||void 0===n?void 0:n.onCompleted);return s||null==g||g(t.data,d),t},function(t){var r;if(u===h.current.mutationId&&h.current.isMounted){var n={loading:!1,error:t,data:void 0,called:!0,client:l};(0,a.equal)(h.current.result,n)||f(h.current.result=n)}var i=e.onError||(null===(r=h.current.options)||void 0===r?void 0:r.onError);if(i)return i(t,d),{data:void 0,errors:t};throw t})},[]),g=i.useCallback(function(){if(h.current.isMounted){var e={called:!1,loading:!1,client:h.current.client};Object.assign(h.current,{mutationId:0,result:e}),f(e)}},[]);return i.useEffect(function(){var e=h.current;return e.isMounted=!0,function(){e.isMounted=!1}},[]),[m,(0,n.__assign)({reset:g},p)]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useIsomorphicLayoutEffect:()=>i});var n=r(464),i=r(474).canUseDOM?n.useLayoutEffect:n.useEffect},,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{Comment:()=>n.Comment,Element:()=>n.Element,ProcessingInstruction:()=>n.ProcessingInstruction,Text:()=>n.Text,attributesToProps:()=>n.attributesToProps,default:()=>i,domToReact:()=>n.domToReact,htmlToDOM:()=>n.htmlToDOM});var n=r(836);const i=n.default||n},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){var r;if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];const n=Object.assign(Object.assign({},null!==(r=null==t?void 0:t.htmlparser2)&&void 0!==r?r:c),{trustedTypePolicy:null==t?void 0:t.trustedTypePolicy});return(0,a.default)((0,i.default)(e,n),t)};const i=n(r(837));t.htmlToDOM=i.default;const o=n(r(844));t.attributesToProps=o.default;const a=n(r(851));t.domToReact=a.default;var s=r(852);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return s.Text}});const c={lowerCaseAttributeNames:!1}},(e,t,r)=>{Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=r(838),i=r(843),o=/<(![a-zA-Z\s]+)>/;t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];const r=o.exec(e),a=r?r[1]:void 0;return n.formatDOM(i.default(e,t?.trustedTypePolicy),null,a)}},(e,t,r)=>{const n=r(839);let i=r(840);const o=new RegExp("\r","g"),a=`__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_${Date.now().toString()}__`,s=new RegExp(a,"g");function c(e){const t={};let r=0;const n=e.length;for(;r<n;r++){const n=e[r];t[n.name]=n.value}return t}function l(e){const t=function(e){return n.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase());return t||e}function u(e){return e.replace(s,"\r")}t.escapeSpecialCharacters=function(e){return e.replace(o,a)},t.formatDOM=function e(t,r=null,n){const o=[];let a,s=0;const d=t.length;for(;s<d;s++){const n=t[s];switch(n.nodeType){case 1:{const t=l(n.nodeName);a=new i.Element(t,c(n.attributes)),a.children=e("template"===t?n.content.childNodes:n.childNodes,a);break}case 3:a=new i.Text(u(n.nodeValue??""));break;case 8:a=new i.Comment(n.nodeValue??"");break;default:continue}const d=o[s-1]??null;d&&(d.next=a),a.parent=r,a.prev=d,a.next=null,o.push(a)}return n&&(a=new i.ProcessingInstruction(n.substring(0,n.indexOf(" ")).toLowerCase(),n),a.next=o[0]??null,a.parent=r,o.unshift(a),o[1]&&(o[1].prev=o[0])),o},t.hasOpenTag=function(e,t){const r="<"+t,n=e.toLowerCase().indexOf(r);if(-1===n)return!1;const i=e[n+r.length];return">"===i||" "===i||"\t"===i||"\n"===i||"\r"===i||"/"===i}},(e,t)=>{const r=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"].reduce((e,t)=>
31(e[t.toLowerCase()]=t,e),{});t.CASE_SENSITIVE_TAG_NAMES_MAP=r},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CDATA:()=>i.CDATA,Comment:()=>i.Comment,DataNode:()=>i.DataNode,Document:()=>i.Document,DomHandler:()=>a,Element:()=>i.Element,Node:()=>i.Node,NodeWithChildren:()=>i.NodeWithChildren,ProcessingInstruction:()=>i.ProcessingInstruction,Text:()=>i.Text,cloneNode:()=>i.cloneNode,default:()=>s,hasChildren:()=>i.hasChildren,isCDATA:()=>i.isCDATA,isComment:()=>i.isComment,isDirective:()=>i.isDirective,isDocument:()=>i.isDocument,isTag:()=>i.isTag,isText:()=>i.isText});var n=r(841),i=r(842);const o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class a{dom=[];root=new i.Document(this.dom);callback;options;elementCB;done=!1;tagStack=[this.root];lastNode=null;parser=null;constructor(e,t,r){"function"==typeof t&&(r=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=e??null,this.options=t??o,this.elementCB=r??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;const e=this.tagStack.pop();this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){const r=this.options.xmlMode?n.ElementType.Tag:void 0,o=new i.Element(e,t,void 0,r);this.addNode(o),this.tagStack.push(o)}ontext(e){const{lastNode:t}=this;if(t&&t.type===n.ElementType.Text)t.data+=e,this.options.withEndIndices&&this.parser&&(t.endIndex=this.parser.endIndex);else{const t=new i.Text(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment)return void(this.lastNode.data+=e);const t=new i.Comment(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new i.Text(""),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const r=new i.ProcessingInstruction(e,t);this.addNode(r)}handleCallback(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e}addNode(e){const t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&this.parser&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null}}const s=a},(e,t,r)=>{"use strict";var n;function i(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style}r.r(t),r.d(t,{CDATA:()=>p,Comment:()=>c,Directive:()=>s,Doctype:()=>f,ElementType:()=>n,Root:()=>o,Script:()=>l,Style:()=>u,Tag:()=>d,Text:()=>a,isTag:()=>i}),function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n||(n={}));const o=n.Root,a=n.Text,s=n.Directive,c=n.Comment,l=n.Script,u=n.Style,d=n.Tag,p=n.CDATA,f=n.Doctype},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CDATA:()=>u,Comment:()=>s,DataNode:()=>o,Document:()=>d,Element:()=>p,Node:()=>i,NodeWithChildren:()=>l,ProcessingInstruction:()=>c,Text:()=>a,cloneNode:()=>_,hasChildren:()=>b,isCDATA:()=>h,isComment:()=>g,isDirective:()=>y,isDocument:()=>v,isTag:()=>f,isText:()=>m});var n=r(841);class i{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return _(this,e)}}class o extends i{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class a extends o{type=n.ElementType.Text;get nodeType(){return 3}}class s extends o{type=n.ElementType.Comment;get nodeType(){return 8}}class c extends o{type=n.ElementType.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"}class l extends i{children;constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class u extends l{type=n.ElementType.CDATA;get nodeType(){return 4}}class d extends l{type=n.ElementType.Root;get nodeType(){return 9}}class p extends l{name;attribs;type;constructor(e,t,r=[],i=("script"===e?n.ElementType.Script:"style"===e?n.ElementType.Style:n.ElementType.Tag)){super(r),this.name=e,this.attribs=t,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this["x-attribsNamespace"]?.[e],prefix:this["x-attribsPrefix"]?.[e]}))}namespace;"x-attribsNamespace";"x-attribsPrefix"}function f(e){return(0,n.isTag)(e)}function h(e){return e.type===n.ElementType.CDATA}function m(e){return e.type===n.ElementType.Text}function g(e){return e.type===n.ElementType.Comment}function y(e){return e.type===n.ElementType.Directive}function v(e){return e.type===n.ElementType.Root}function b(e){return Object.hasOwn(e,"children")}function _(e,t=!1){let r;if(m(e))r=new a(e.data);else if(g(e))r=new s(e.data);else if(f(e)){const n=t?S(e.children):[],i=new p(e.name,{...e.attribs},n);for(const e of n)e.parent=i;null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),r=i}else if(h(e)){const n=t?S(e.children):[],i=new u(n);for(const e of n)e.parent=i;r=i}else if(v(e)){const n=t?S(e.children):[],i=new d(n);for(const e of n)e.parent=i;e["x-mode"]&&(i["x-mode"]=e["x-mode"]),r=i}else{if(!y(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new c(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),r=t}}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function S(e){const t=e.map(e=>_(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}},(e,t,r)=>{const n=r(838),i="html",o="head",a="body",s=/<([a-zA-Z]+[0-9]?)/;function c(e,t){return t?t.createHTML(e):e}let l=(e,t,r)=>{throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=(e,t,r)=>{throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};const d="object"==typeof window&&window.DOMParser;if("function"==typeof d){const e=new d,t="text/html";u=(r,n,i)=>(n&&(r=`<${n}>${r}</${n}>`),e.parseFromString(r,t)),l=u}if("object"==typeof document&&document.implementation){const e=document.implementation.createHTMLDocument();l=function(t,r,n){if(r){const i=e.documentElement.querySelector(r);return i&&(i.innerHTML=c(t,n)),e}return e.documentElement.innerHTML=c(t,n),e}}const p="object"==typeof document&&document.createElement("template");let f;p&&p.content&&(f=(e,t)=>
31(p.innerHTML=c(e,t),p.content.childNodes));const h=()=>document.createDocumentFragment().childNodes;t.default=function(e,t){e=n.escapeSpecialCharacters(e);const r=s.exec(e)?.[1]?.toLowerCase();switch(r){case i:{const t=u(e);if(!n.hasOpenTag(e,o)){const e=t.querySelector(o);e?.parentNode?.removeChild(e)}if(!n.hasOpenTag(e,a)){const e=t.querySelector(a);e?.parentNode?.removeChild(e)}return t.querySelectorAll(i)}case o:case a:{const i=l(e,void 0,t).querySelectorAll(r);return n.hasOpenTag(e,a)&&n.hasOpenTag(e,o)?i[0].parentNode?.childNodes??h():i}default:return f?f(e,t):l(e,a,t).querySelector(a)?.childNodes??h()}}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e={},t){const r={},l=Boolean(e.type&&s[e.type]);for(const s in e){const u=e[s];if((0,n.isCustomAttribute)(s)){r[s]=u;continue}const d=s.toLowerCase();let p=c(d);if(p){const e=(0,n.getPropertyInfo)(p);switch(o.includes(p)&&a.includes(t)&&!l&&(p=c("default"+d)),r[p]=u,null==e?void 0:e.type){case n.BOOLEAN:r[p]=!0;break;case n.OVERLOADED_BOOLEAN:""===u&&(r[p]=!0)}continue}i.PRESERVE_CUSTOM_ATTRIBUTES&&(r[s]=u)}return(0,i.setStyleProp)(e.style,r),r};const n=r(845),i=r(847),o=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function c(e){return n.possibleStandardNames[e]}},(e,t,r)=>{"use strict";function n(e,t,r,n,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}const i={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{i[e]=new n(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{i[e]=new n(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{i[e]=new n(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{i[e]=new n(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{i[e]=new n(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{i[e]=new n(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{i[e]=new n(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{i[e]=new n(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{i[e]=new n(e,5,!1,e.toLowerCase(),null,!1,!1)});const o=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(o,a);i[t]=new n(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e
31=>{const t=e.replace(o,a);i[t]=new n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(o,a);i[t]=new n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{i[e]=new n(e,1,!1,e.toLowerCase(),null,!1,!1)});i.xlinkHref=new n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{i[e]=new n(e,1,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:s,SAME:c,possibleStandardNames:l}=r(846),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(l).reduce((e,t)=>{const r=l[t];return r===c?e[t]=t:r===s?e[t.toLowerCase()]=t:e[t]=r,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return i.hasOwnProperty(e)?i[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},(e,t)=>{t.SAME=0;t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode
31-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){if(!e.includes("-"))return Boolean(t&&"string"==typeof t.is);if(a.has(e))return!1;return!0},t.setStyleProp=function(e,t){if("string"!=typeof e)return;if(!e.trim())return void(t.style={});try{t.style=(0,o.default)(e,s)}catch(e){t.style={}}};const i=r(396),o=n(r(848)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);const s={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(i.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);t.canTextBeChildOfNode=e=>!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name);t.returnFirstArg=e=>e},(e,t,r)=>{var n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty;let l=r(849);var u,d,p;p=null!=(u=l)?n(s(u)):{},l=((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var s,l=a(t),u=0,d=l.length;u<d;u++)s=l[u],c.call(e,s)||s===r||i(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(n=o(t,s))||n.enumerable});return e})(!d&&u&&u.__esModule?p:i(p,"default",{value:u,enumerable:!0}),u);const f=/^--[a-zA-Z0-9_-]+$/,h=/-([a-z])/g,m=/^[^-]+$/,g=/^-(webkit|moz|ms|o|khtml)-/,y=/^-(ms)-/,v=(e,t)=>t.toUpperCase(),b=(e,t)=>`${t}-`,_=(e,t={})=>(e=>!e||m.test(e)||f.test(e))(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(y,b):e.replace(g,b)).replace(h,v));e.exports=function(e,t){const r={};return e&&"string"==typeof e?((0,l.default)(e,(e,n)=>{e&&n&&(r[_(e,t)]=n)}),r):r}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let r=null;if(!e||"string"!=typeof e)return r;const n=(0,i.default)(e),o="function"==typeof t;return n.forEach(e=>{if("declaration"!==e.type)return;const{property:n,value:i}=e;o?t(n,i,e):i&&(r=r||{},r[n]=i)}),r};const i=n(r(850))},e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g,l="";function u(e){return e?e.replace(c,l):l}e.exports=function(e,c){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];c=c||{};var d=1,p=1;function f(e){var t=e.match(r);t&&(d+=t.length);var n=e.lastIndexOf("\n");p=~n?e.length-n:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),v(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=c.source}function g(t){var r=new Error(c.source+":"+d+":"+p+": "+t);
31if(r.reason=t,r.filename=c.source,r.line=d,r.column=p,r.source=e,!c.silent)throw r}function y(t){var r=t.exec(e);if(r){var n=r[0];return f(n),e=e.slice(n.length),r}}function v(){y(n)}function b(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;l!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,l===e.charAt(r-1))return g("End of comment missing");var n=e.slice(2,r-2);return p+=2,f(n),e=e.slice(r),p+=2,t({type:"comment",comment:n})}}function S(){var e=h(),r=y(i);if(r){if(_(),!y(o))return g("property missing ':'");var n=y(a),c=e({type:"declaration",property:u(r[0].replace(t,l)),value:n?u(n[0].replace(t,l)):l});return y(s),c}}return m.prototype.content=e,v(),function(){var e,t=[];for(b(t);e=S();)!1!==e&&(t.push(e),b(t));return t}()}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r={}){var n,i,o,d,p;const f=[],h="function"==typeof r.replace,m=null!==(n=r.transform)&&void 0!==n?n:s.returnFirstArg,{cloneElement:g,createElement:y,isValidElement:v}=null!==(i=r.library)&&void 0!==i?i:c,b=t.length;l(t);for(let n=0;n<b;n++){const i=t[n];if(h){let e=null===(o=r.replace)||void 0===o?void 0:o.call(r,i,n);if(v(e)){b>1&&(e=g(e,{key:null!==(d=e.key)&&void 0!==d?d:n})),f.push(m(e,i,n));continue}}if("text"===i.type){const e=!i.data.trim().length;if(e&&i.parent&&!(0,s.canTextBeChildOfNode)(i.parent))continue;if(r.trim&&e)continue;f.push(m(i.data,i,n));continue}const c=i;let l,_={};switch(u(c)?((0,s.setStyleProp)(c.attribs.style,c.attribs),_=c.attribs):c.attribs&&(_=(0,a.default)(c.attribs,c.name)),i.type){case"script":case"style":i.children[0]&&(_.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?_.defaultValue=i.children[0].data:(null===(p=i.children)||void 0===p?void 0:p.length)&&(l=e(i.children,r));break;default:continue}b>1&&(_.key=n),f.push(m(y(i.name,_,l),i,n))}return 1===f.length?f[0]:f};const i=r(852),o=r(396),a=n(r(844)),s=r(847),c={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function l(e){for(const t of e)"tag"!==t.type&&"script"!==t.type&&"style"!==t.type||(Object.setPrototypeOf(t,i.Element.prototype),l(t.children))}function u(e){return s.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,s.isCustomComponent)(e.name,e.attribs)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CDATA:()=>i.CDATA,Comment:()=>i.Comment,DataNode:()=>i.DataNode,Document:()=>i.Document,DomHandler:()=>a,Element:()=>i.Element,Node:()=>i.Node,NodeWithChildren:()=>i.NodeWithChildren,ProcessingInstruction:()=>i.ProcessingInstruction,Text:()=>i.Text,cloneNode:()=>i.cloneNode,default:()=>s,hasChildren:()=>i.hasChildren,isCDATA:()=>i.isCDATA,isComment:()=>i.isComment,isDirective:()=>i.isDirective,isDocument:()=>i.isDocument,isTag:()=>i.isTag,isText:()=>i.isText});var n=r(853),i=r(854);const o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class a{dom=[];root=new i.Document(this.dom);callback;options;elementCB;done=!1;tagStack=[this.root];lastNode=null;parser=null;constructor(e,t,r){"function"==typeof t&&(r=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=e??null,this.options=t??o,this.elementCB=r??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;const e=this.tagStack.pop();this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){const r=this.options.xmlMode?n.ElementType.Tag:void 0,o=new i.Element(e,t,void 0,r);this.addNode(o),this.tagStack.push(o)}ontext(e){const{lastNode:t}=this;if(t&&t.type===n.ElementType.Text)t.data+=e,this.options.withEndIndices&&this.parser&&(t.endIndex=this.parser.endIndex);else{const t=new i.Text(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment)return void(this.lastNode.data+=e);const t=new i.Comment(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new i.Text(""),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e}
31oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const r=new i.ProcessingInstruction(e,t);this.addNode(r)}handleCallback(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e}addNode(e){const t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&this.parser&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null}}const s=a},(e,t,r)=>{"use strict";var n;function i(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style}r.r(t),r.d(t,{CDATA:()=>p,Comment:()=>c,Directive:()=>s,Doctype:()=>f,ElementType:()=>n,Root:()=>o,Script:()=>l,Style:()=>u,Tag:()=>d,Text:()=>a,isTag:()=>i}),function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n||(n={}));const o=n.Root,a=n.Text,s=n.Directive,c=n.Comment,l=n.Script,u=n.Style,d=n.Tag,p=n.CDATA,f=n.Doctype},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CDATA:()=>u,Comment:()=>s,DataNode:()=>o,Document:()=>d,Element:()=>p,Node:()=>i,NodeWithChildren:()=>l,ProcessingInstruction:()=>c,Text:()=>a,cloneNode:()=>_,hasChildren:()=>b,isCDATA:()=>h,isComment:()=>g,isDirective:()=>y,isDocument:()=>v,isTag:()=>f,isText:()=>m});var n=r(853);class i{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return _(this,e)}}class o extends i{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class a extends o{type=n.ElementType.Text;get nodeType(){return 3}}class s extends o{type=n.ElementType.Comment;get nodeType(){return 8}}class c extends o{type=n.ElementType.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"}class l extends i{children;constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class u extends l{type=n.ElementType.CDATA;get nodeType(){return 4}}class d extends l{type=n.ElementType.Root;get nodeType(){return 9}}class p extends l{name;attribs;type;constructor(e,t,r=[],i=("script"===e?n.ElementType.Script:"style"===e?n.ElementType.Style:n.ElementType.Tag)){super(r),this.name=e,this.attribs=t,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this["x-attribsNamespace"]?.[e],prefix:this["x-attribsPrefix"]?.[e]}))}namespace;"x-attribsNamespace";"x-attribsPrefix"}function f(e){return(0,n.isTag)(e)}function h(e){return e.type===n.ElementType.CDATA}function m(e){return e.type===n.ElementType.Text}function g(e){return e.type===n.ElementType.Comment}function y(e){return e.type===n.ElementType.Directive}function v(e){return e.type===n.ElementType.Root}function b(e){return Object.hasOwn(e,"children")}function _(e,t=!1){let r;if(m(e))r=new a(e.data);else if(g(e))r=new s(e.data);else if(f(e)){const n=t?S(e.children):[],i=new p(e.name,{...e.attribs},n);for(const e of n)e.parent=i;null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),r=i}else if(h(e)){const n=t?S(e.children):[],i=new u(n);for(const e of n)e.parent=i;r=i}else if(v(e)){const n=t?S(e.children):[],i=new d(n);for(const e of n)e.parent=i;e["x-mode"]&&(i["x-mode"]=e["x-mode"]),r=i}else{if(!y(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new c(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),r=t}}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function S(e){const t=e.map(e=>_(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}},,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{useLazyQuery:()=>u});
31var n=r(314),i=r(464),o=r(612),a=r(739),s=r(811),c=(r(467),r(862)),l=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function u(e,t){var r,u=i.useRef(void 0),d=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;d.current=t,p.current=h;var m=(0,n.__assign)((0,n.__assign)({},f),{skip:!u.current}),g=(0,a.useQueryInternals)(h,m),y=g.obsQueryFields,v=g.result,b=g.client,_=g.resultData,S=g.observable,E=g.onQueryExecuted,w=S.options.initialFetchPolicy||(0,a.getDefaultFetchPolicy)(m.defaultOptions,b.defaultOptions),T=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),T()),r.apply(this,arguments)}},r=0,n=l;r<n.length;r++){t(n[r])}return e},[T,y]),O=!!u.current,A=i.useMemo(function(){return(0,n.__assign)((0,n.__assign)((0,n.__assign)({},v),x),{called:O})},[v,x,O]),R=(0,c.useRenderGuard)(),P=(i.useRef(new Set),i.useCallback(function(e){u.current=e?(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:e.fetchPolicy||w}):{fetchPolicy:w};var t=(0,o.mergeOptions)(d.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),l=t.reobserveAsConcast((0,a.getObsQueryOptions)(t,r,i,c));return o(c),new Promise(function(n){var i;l.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))}})})}(_,S,b,h,(0,n.__assign)((0,n.__assign)({},t),{skip:!1}),E).then(function(e){return Object.assign(e,x)});return r.catch(function(){}),r},[R,b,h,x,w,S,_,E])),I=i.useRef(P);(0,s.useIsomorphicLayoutEffect)(function(){I.current=P});var C=i.useCallback(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return I.current.apply(I,e)},[]);return[C,A]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useRenderGuard:()=>a});var n,i=r(464);function o(){}function a(){return n||(n=i.createContext(null)),i.useCallback(function(){var e=console.error;try{return console.error=o,i.useContext(n),!0}catch(e){return!1}finally{console.error=e}},[])}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{Particles:()=>i.default,ParticlesProvider:()=>n.ParticlesProvider,default:()=>o,useParticlesProvider:()=>n.useParticlesProvider});var n=r(913),i=r(975),o=i.default},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesProvider:()=>l,useParticlesProvider:()=>u});var n,i,o=r(396),a=r(914),s=!1,c=(0,o.createContext)({loaded:!1}),l=({children:e,init:t})=>{let[r,l]=(0,o.useState)(s);(0,o.useEffect)(()=>{let e=!1;if(!s){if(n){if(i&&i!==t)throw Error("ParticlesProvider init callback must be stable across the app lifecycle.")}else i=t,n=(async()=>{await t(a.tsParticles),s=!0})().catch(e=>{throw n=void 0,i=void 0,e});return n.then(()=>{e||l(!0)}).catch(()=>{e||l(!1)}),()=>{e=!0}}},[t]);let u=(0,o.useMemo)(()=>({loaded:r}),[r]);return(0,o.jsx)(c.Provider,{value:u,children:r?e:null})};function u(){return(0,o.useContext)(c)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AlterType:()=>i.AlterType,AnimatableColor:()=>i.AnimatableColor,AnimationMode:()=>i.AnimationMode,AnimationOptions:()=>i.AnimationOptions,AnimationStatus:()=>i.AnimationStatus,AnimationValueWithRandom:()=>i.AnimationValueWithRandom,Background:()=>i.Background,BaseRange:()=>i.BaseRange,Circle:()=>i.Circle,ColorAnimation:()=>i.ColorAnimation,DestroyType:()=>i.DestroyType,EasingType:()=>i.EasingType,EventType:()=>i.EventType,Fill:()=>i.Fill,FullScreen:()=>i.FullScreen,GradientType:()=>i.GradientType,HslAnimation:()=>i.HslAnimation,LimitMode:()=>i.LimitMode,Move:()=>i.Move,MoveAngle:()=>i.MoveAngle,MoveCenter:()=>i.MoveCenter,MoveDirection:()=>i.MoveDirection,MoveGravity:()=>i.MoveGravity,MovePath:()=>i.MovePath,Options:()=>i.Options,OptionsColor:()=>i.OptionsColor,OutMode:()=>i.OutMode,OutModeDirection:()=>i.OutModeDirection,OutModes:()=>i.OutModes,Paint:()=>i.Paint,ParticleOutType:()=>i.ParticleOutType,ParticlesBounce:()=>i.ParticlesBounce,ParticlesBounceFactor:()=>i.ParticlesBounceFactor,ParticlesDensity:()=>i.ParticlesDensity,ParticlesNumber:()=>i.ParticlesNumber,ParticlesNumberLimit:()=>i.ParticlesNumberLimit,ParticlesOptions:()=>i.ParticlesOptions,PixelMode:()=>i.PixelMode,RangedAnimationOptions:()=>i.RangedAnimationOptions,RangedAnimationValueWithRandom:()=>i.RangedAnimationValueWithRandom,Rectangle:()=>i.Rectangle,ResizeEvent:()=>i.ResizeEvent,RotateDirection:()=>i.RotateDirection,Shape:()=>i.Shape,Spin:()=>i.Spin,StartValueType:()=>i.StartValueType,Stroke:()=>i.Stroke,ValueWithRandom:()=>i.ValueWithRandom,Vector:()=>
31i.Vector,Vector3d:()=>i.Vector3d,ZIndex:()=>i.ZIndex,alterHsl:()=>i.alterHsl,animate:()=>i.animate,areBoundsInside:()=>i.areBoundsInside,arrayRandomIndex:()=>i.arrayRandomIndex,calcExactPositionOrRandomFromSize:()=>i.calcExactPositionOrRandomFromSize,calcExactPositionOrRandomFromSizeRanged:()=>i.calcExactPositionOrRandomFromSizeRanged,calcPositionFromSize:()=>i.calcPositionFromSize,calcPositionOrRandomFromSize:()=>i.calcPositionOrRandomFromSize,calcPositionOrRandomFromSizeRanged:()=>i.calcPositionOrRandomFromSizeRanged,calculateBounds:()=>i.calculateBounds,cancelAnimation:()=>i.cancelAnimation,canvasFirstIndex:()=>i.canvasFirstIndex,canvasTag:()=>i.canvasTag,checkDistance:()=>i.checkDistance,circleBounce:()=>i.circleBounce,circleBounceDataFromParticle:()=>i.circleBounceDataFromParticle,clamp:()=>i.clamp,clear:()=>i.clear,cloneStyle:()=>i.cloneStyle,collisionVelocity:()=>i.collisionVelocity,colorMix:()=>i.colorMix,colorToHsl:()=>i.colorToHsl,colorToRgb:()=>i.colorToRgb,countOffset:()=>i.countOffset,decayOffset:()=>i.decayOffset,deepExtend:()=>i.deepExtend,defaultAlpha:()=>i.defaultAlpha,defaultAngle:()=>i.defaultAngle,defaultCompositeValue:()=>i.defaultCompositeValue,defaultDensityFactor:()=>i.defaultDensityFactor,defaultFps:()=>i.defaultFps,defaultFpsLimit:()=>i.defaultFpsLimit,defaultLoops:()=>i.defaultLoops,defaultOpacity:()=>i.defaultOpacity,defaultRatio:()=>i.defaultRatio,defaultReduceFactor:()=>i.defaultReduceFactor,defaultRemoveQuantity:()=>i.defaultRemoveQuantity,defaultRetryCount:()=>i.defaultRetryCount,defaultRgbMin:()=>i.defaultRgbMin,defaultTime:()=>i.defaultTime,defaultTransform:()=>i.defaultTransform,defaultTransformValue:()=>i.defaultTransformValue,defaultVelocity:()=>i.defaultVelocity,defaultZoom:()=>i.defaultZoom,degToRad:()=>i.degToRad,deleteCount:()=>i.deleteCount,double:()=>i.double,doublePI:()=>i.doublePI,drawAfterEffect:()=>i.drawAfterEffect,drawBeforeEffect:()=>i.drawBeforeEffect,drawParticle:()=>i.drawParticle,drawParticlePlugin:()=>i.drawParticlePlugin,drawShape:()=>i.drawShape,drawShapeAfterDraw:()=>i.drawShapeAfterDraw,drawShapeBeforeDraw:()=>i.drawShapeBeforeDraw,empty:()=>i.empty,executeOnSingleOrMultiple:()=>i.executeOnSingleOrMultiple,findItemFromSingleOrMultiple:()=>i.findItemFromSingleOrMultiple,generatedAttribute:()=>i.generatedAttribute,generatedFalse:()=>i.generatedFalse,generatedTrue:()=>i.generatedTrue,getDistance:()=>i.getDistance,getDistanceSq:()=>i.getDistanceSq,getDistances:()=>i.getDistances,getFullScreenStyle:()=>i.getFullScreenStyle,getHslAnimationFromHsl:()=>i.getHslAnimationFromHsl,getHslFromAnimation:()=>i.getHslFromAnimation,getItemMapFromInitializer:()=>i.getItemMapFromInitializer,getItemsFromInitializer:()=>i.getItemsFromInitializer,getLinkColor:()=>i.getLinkColor,getLinkRandomColor:()=>i.getLinkRandomColor,getLogger:()=>i.getLogger,getParticleBaseVelocity:()=>i.getParticleBaseVelocity,getParticleDirectionAngle:()=>i.getParticleDirectionAngle,getPosition:()=>i.getPosition,getRandom:()=>i.getRandom,getRandomInRange:()=>i.getRandomInRange,getRandomRgbColor:()=>i.getRandomRgbColor,getRangeMax:()=>i.getRangeMax,getRangeMin:()=>i.getRangeMin,getRangeValue:()=>i.getRangeValue,getSize:()=>i.getSize,getStyleFromHsl:()=>i.getStyleFromHsl,getStyleFromRgb:()=>i.getStyleFromRgb,hMax:()=>i.hMax,hMin:()=>i.hMin,hPhase:()=>i.hPhase,half:()=>i.half,hasMatchMedia:()=>i.hasMatchMedia,hslToRgb:()=>i.hslToRgb,hslaToRgba:()=>i.hslaToRgba,identity:()=>i.identity,initParticleNumericAnimationValue:()=>i.initParticleNumericAnimationValue,inverseFactorNumerator:()=>i.inverseFactorNumerator,isArray:()=>i.isArray,isBoolean:()=>i.isBoolean,isFunction:()=>i.isFunction,isInArray:()=>i.isInArray,isNull:()=>i.isNull,isNumber:()=>i.isNumber,isObject:()=>i.isObject,isPointInside:()=>i.isPointInside,isString:()=>i.isString,itemFromArray:()=>i.itemFromArray,itemFromSingleOrMultiple:()=>i.itemFromSingleOrMultiple,lFactor:()=>i.lFactor,lMax:()=>i.lMax,lMin:()=>i.lMin,lengthOffset:()=>i.lengthOffset,loadMinIndex:()=>i.loadMinIndex,loadOptions:()=>i.loadOptions,loadParticlesOptions:()=>i.loadParticlesOptions,loadRandomFactor:()=>i.loadRandomFactor,manageListener:()=>i.manageListener,memoize:()=>i.memoize,midColorValue:()=>i.midColorValue,millisecondsToSeconds:()=>i.millisecondsToSeconds,minCount:()=>i.minCount,minFpsLimit:()=>i.minFpsLimit,minIndex:()=>i.minIndex,minLimit:()=>i.minLimit,minStrokeWidth:()=>i.minStrokeWidth,minVelocity:()=>i.minVelocity,minZ:()=>i.minZ,minimumSize:()=>i.minimumSize,mix:()=>i.mix,none:()=>i.none,one:()=>i.one,originPoint:()=>i.originPoint,paintBase:()=>i.paintBase,paintImage:()=>i.paintImage,parseAlpha:()=>i.parseAlpha,percentDenominator:()=>i.percentDenominator,phaseNumerator:()=>i.phaseNumerator,quarter:()=>i.quarter,randomColorValue:()=>i.randomColorValue,randomInRangeValue:()=>i.randomInRangeValue,rangeColorToHsl:()=>i.rangeColorToHsl,rangeColorToRgb:()=>i.rangeColorToRgb,removeDeleteCount:()=>i.removeDeleteCount,removeMinIndex:()=>i.removeMinIndex,resizeEvent:()=>i.resizeEvent,rgbMax:()=>
31i.rgbMax,rgbToHsl:()=>i.rgbToHsl,sMax:()=>i.sMax,sMin:()=>i.sMin,sNormalizedOffset:()=>i.sNormalizedOffset,safeDocument:()=>i.safeDocument,safeIntersectionObserver:()=>i.safeIntersectionObserver,safeMatchMedia:()=>i.safeMatchMedia,safeMutationObserver:()=>i.safeMutationObserver,setAnimationFunctions:()=>i.setAnimationFunctions,setLogger:()=>i.setLogger,setRandom:()=>i.setRandom,setRangeValue:()=>i.setRangeValue,sextuple:()=>i.sextuple,spatialHashGridCellSize:()=>i.spatialHashGridCellSize,squareExp:()=>i.squareExp,stringToAlpha:()=>i.stringToAlpha,stringToRgb:()=>i.stringToRgb,threeQuarter:()=>i.threeQuarter,triple:()=>i.triple,tryCountIncrement:()=>i.tryCountIncrement,tsParticles:()=>o,updateAnimation:()=>i.updateAnimation,updateColor:()=>i.updateColor,updateColorValue:()=>i.updateColorValue,visibilityChangeEvent:()=>i.visibilityChangeEvent,zIndexFactorOffset:()=>i.zIndexFactorOffset});var n=r(915),i=r(933);const o=(0,n.initEngine)()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initEngine:()=>i});var n=r(916);function i(){return new n.Engine}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Engine:()=>u});var n=r(917),i=r(918),o=r(929),a=r(930),s=r(932),c=r(919);const l="100%";class u{pluginManager=new a.PluginManager(this);#e=[];#t=new o.EventDispatcher;#r=!1;get items(){return this.#e}get version(){return"4.1.3"}addEventListener(e,t){this.#t.addEventListener(e,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}`)}dispatchEvent(e,t){this.#t.dispatchEvent(e,t)}
31async init(){this.#r||(await this.pluginManager.init(),this.#r=!0)}item(e){const t=this.items,r=t[e];if(!r?.destroyed)return r;t.splice(e,n.removeDeleteCount)}async load(e){let t;await this.init(),"undefined"!=typeof HTMLElement&&e.element instanceof HTMLElement&&(t=e.element);const{Container:o}=await r.e("vendors").then(r.bind(r,2791)),a=e.id??t?.id??`tsparticles${Math.floor((0,c.getRandom)()*n.loadRandomFactor).toString()}`,{index:u,url:d}=e,p=d?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,s.getLogger)().error(`${r.status.toString()} while retrieving config file`),e.fallback)}({fallback:e.options,url:d,index:u}):e.options,f=(0,i.itemFromSingleOrMultiple)(p,u),{items:h}=this,m=h.findIndex(e=>e.id.description===a),g=new o({dispatchCallback:(e,t)=>{this.dispatchEvent(e,t)},id:a,onDestroy:e=>{if(!e)return;const t=this.items,r=t.indexOf(g);r>=n.removeMinIndex&&t.splice(r,n.removeDeleteCount)},pluginManager:this.pluginManager,sourceOptions:f});if(m>=n.loadMinIndex){const e=this.item(m),t=e?n.one:n.none;e&&!e.destroyed&&e.destroy(!1),h.splice(m,t,g)}else h.push(g);const y="undefined"!=typeof OffscreenCanvas&&e.element instanceof OffscreenCanvas?e.element:(e=>{const t=(0,i.safeDocument)();let r;if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===n.canvasTag)r=e,r.dataset[n.generatedAttribute]??=n.generatedFalse,r.dataset[n.generatedAttribute]===n.generatedTrue&&(r.style.width||=l,r.style.height||=l,r.style.pointerEvents="none",r.style.setProperty("pointer-events","none"));else{const i=e.getElementsByTagName(n.canvasTag).item(n.canvasFirstIndex);i?(r=i,r.dataset[n.generatedAttribute]=n.generatedFalse):(r=t.createElement(n.canvasTag),r.dataset[n.generatedAttribute]=n.generatedTrue,e.appendChild(r)),r.style.width||=l,r.style.height||=l,r.style.pointerEvents="none",r.style.setProperty("pointer-events","none")}return r})(((e,t)=>{const r=(0,i.safeDocument)();let o=t??r.getElementById(e);return o||(o=r.createElement("canvas"),o.id=e,o.dataset[n.generatedAttribute]=n.generatedTrue,r.body.append(o),o)})(a,t));return g.canvas.loadCanvas(y),await g.start(),g}async refresh(e=!0){e&&await Promise.all(this.items.map(e=>e.refresh()))}removeEventListener(e,t){this.#t.removeEventListener(e,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{canvasFirstIndex:()=>W,canvasTag:()=>_,countOffset:()=>re,decayOffset:()=>X,defaultAlpha:()=>y,defaultAngle:()=>ce,defaultCompositeValue:()=>i,defaultDensityFactor:()=>ae,defaultFps:()=>g,defaultFpsLimit:()=>$,defaultLoops:()=>be,defaultOpacity:()=>z,defaultRatio:()=>x,defaultReduceFactor:()=>O,defaultRemoveQuantity:()=>T,defaultRetryCount:()=>S,defaultRgbMin:()=>ye,defaultTime:()=>_e,defaultTransform:()=>d,defaultTransformValue:()=>j,defaultVelocity:()=>ve,defaultZoom:()=>Se,deleteCount:()=>se,double:()=>h,doublePI:()=>m,empty:()=>N,generatedAttribute:()=>n,generatedFalse:()=>b,generatedTrue:()=>v,hMax:()=>P,hMin:()=>k,hPhase:()=>D,half:()=>c,identity:()=>le,inverseFactorNumerator:()=>A,lFactor:()=>de,lMax:()=>C,lMin:()=>pe,lengthOffset:()=>oe,loadMinIndex:()=>Y,loadRandomFactor:()=>K,midColorValue:()=>f,millisecondsToSeconds:()=>l,minCount:()=>ne,minFpsLimit:()=>q,minIndex:()=>ie,minLimit:()=>te,minStrokeWidth:()=>ue,minVelocity:()=>B,minZ:()=>ee,minimumSize:()=>U,none:()=>Q,one:()=>J,originPoint:()=>u,percentDenominator:()=>s,phaseNumerator:()=>ge,quarter:()=>L,randomColorValue:()=>p,removeDeleteCount:()=>V,removeMinIndex:()=>G,resizeEvent:()=>o,rgbMax:()=>R,sMax:()=>I,sMin:()=>M,sNormalizedOffset:()=>me,sextuple:()=>he,spatialHashGridCellSize:()=>w,squareExp:()=>E,threeQuarter:()=>F,triple:()=>fe,tryCountIncrement:()=>Z,visibilityChangeEvent:()=>a,zIndexFactorOffset:()=>H});const n="generated",i="source-over",o="resize",a="visibilitychange",s=100,c=.5,l=1e3,u={x:0,y:0,z:0},d={a:1,b:0,c:0,d:1},p="random",f="mid",h=2,m=Math.PI*h,g=60,y=1,v="true",b="false",_="canvas",S=0,E=2,w=100,T=1,x=1,O=1,A=1,R=255,P=360,I=100,C=100,k=0,M=0,D=60,N=0,L=.25,F=c+L,B=0,j=1,U=0,H=1,z=1,V=1,G=0,$=120,q=0,W=0,K=1e4,Y=0,J=1,Q=0,X=1,Z=1,ee=0,te=0,re=1,ne=0,ie=0,oe=1,ae=1,se=1,ce=0,le=1,ue=0,de=1,pe=0,fe=3,he=6,me=1,ge=1,ye=0,ve=0,be=0,_e=0,Se=1},(e,t,r)=>{"use strict";r.r(t),r.d(t,{areBoundsInside:()=>x,arrayRandomIndex:()=>E,calculateBounds:()=>O,circleBounce:()=>P,circleBounceDataFromParticle:()=>R,cloneStyle:()=>B,deepExtend:()=>A,executeOnSingleOrMultiple:()=>I,findItemFromSingleOrMultiple:()=>k,getFullScreenStyle:()=>j,getItemMapFromInitializer:()=>z,getItemsFromInitializer:()=>H,getPosition:()=>N,getSize:()=>L,hasMatchMedia:()=>g,initParticleNumericAnimationValue:()=>M,isInArray:()=>S,isPointInside:()=>T,itemFromArray:()=>w,itemFromSingleOrMultiple:()=>C,manageListener:()=>U,memoize:()=>m,safeDocument:()=>y,safeIntersectionObserver:()=>b,safeMatchMedia:()=>v,safeMutationObserver:()=>_,updateAnimation:()=>F});var n=r(919),i=r(917),o=r(922),a=r(923),s=r(924),c=r(925),l=r(926),u=r(927),d=r(928),p=r(921);const f=0,h=0;function m(e,t){const r=new Map,n=t?.maxSize,i=t?.ttlMs,o=t?.keyFn,a=(e,t=new WeakSet)=>{if(null===e)return"null";const r=typeof e;if("undefined"===r)return"undefined";if("number"===r||"boolean"===r||"string"===r)return JSON.stringify(e);if("function"===r)try{return e.toString()}catch{return'"[Function]"'}if("symbol"===r)try{return e.toString()}catch{return'"[Symbol]"'}if(Array.isArray(e))return`[${e.map(e=>a(e,t)).join(",")}]`;if(t.has(e))return'"[Circular]"';t.add(e);return`{${Object.keys(e).sort().map(r=>`${JSON.stringify(r)}:${a(e[r],t)}`).join(",")}}`},s=e=>o?o(e):(e=>a(e))(e);return(...t)=>{const o=s(t),a=Date.now(),c=r.get(o);if(void 0!==c){if(!(i&&a-c.ts>i))return r.delete(o),r.set(o,{value:c.value,ts:c.ts}),c.value;r.delete(o)}const l=e(...t);return r.set(o,{value:l,ts:a}),(()=>{if("number"==typeof n&&n>=h)for(;r.size>n;){const e=r.keys().next().value;if(void 0===e)break;r.delete(e)}})(),l}}function g(){return"undefined"!=typeof matchMedia}function y(){return globalThis.document}function v(e){if(g())return matchMedia(e)}function b(e){if("undefined"!=typeof IntersectionObserver)return new IntersectionObserver(e)}function _(e){if("undefined"!=typeof MutationObserver)return new MutationObserver(e)}function S(e,t){return e===t||(0,o.isArray)(t)&&t.includes(e)}function E(e){return Math.floor((0,n.getRandom)()*e.length)}function w(e,t,r=!0){return e[void 0!==t&&r?t%e.length:E(e)]}function T(e,t,r,n,i){return x(O(e,n??f),t,r,i)}function x(e,t,r,n){let i=!0;return n&&n!==l.OutModeDirection.bottom||(i=e.top<t.height+r.x),!i||n&&n!==l.OutModeDirection.left||(i=e.right>
31r.x),!i||n&&n!==l.OutModeDirection.right||(i=e.left<t.width+r.y),!i||n&&n!==l.OutModeDirection.top||(i=e.bottom>r.y),i}function O(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((0,o.isNull)(r))continue;if(!(0,o.isObject)(r)){e=r;continue}Array.isArray(r)?Array.isArray(e)||(e=[]):(0,o.isObject)(e)&&!Array.isArray(e)||(e={});const t=Object.keys(r),n=new Set(["__proto__","constructor","prototype"]);if(!t.some(e=>{const t=r[e];return(0,o.isObject)(t)||Array.isArray(t)})){const i=r,o=e;for(const e of t)if(!n.has(e)&&e in i){const t=i[e];void 0!==t&&(o[e]=t)}continue}for(const i of t){if(n.has(i))continue;const t=e,o=r[i];t[i]=Array.isArray(o)?o.map(e=>A(void 0,e)):A(t[i],o)}}return e}function R(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:p.Vector.create((0,n.getRangeValue)(e.options.bounce.horizontal.value),(0,n.getRangeValue)(e.options.bounce.vertical.value))}}function P(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 l=-Math.atan2(c,s),u=e.mass,d=t.mass,p=e.velocity.rotate(l),f=t.velocity.rotate(l),h=(0,n.collisionVelocity)(p,f,u,d),m=(0,n.collisionVelocity)(f,p,u,d),g=h.rotate(-l),y=m.rotate(-l);e.velocity.x=g.x*e.factor.x,e.velocity.y=g.y*e.factor.y,t.velocity.x=y.x*t.factor.x,t.velocity.y=y.y*t.factor.y}function I(e,t){return(0,o.isArray)(e)?e.map((e,r)=>t(e,r)):t(e,0)}function C(e,t,r){return(0,o.isArray)(e)?w(e,t,r):e}function k(e,t){if((0,o.isArray)(e))return e.find((e,r)=>t(e,r));return t(e,0)?e:void 0}function M(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 d.StartValueType.min:c.value=c.min,e&&(c.status=s.AnimationStatus.increasing);break;case d.StartValueType.max:c.value=c.max,e&&(c.status=s.AnimationStatus.decreasing);break;case d.StartValueType.random:default:c.value=(0,n.randomInRangeValue)(c),e&&(c.status=(0,n.getRandom)()>=i.half?s.AnimationStatus.increasing:s.AnimationStatus.decreasing)}}return c.initialValue=c.value,c}function D(e,t){if(!(e.mode===u.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 N(e,t){return D(e,t)}function L(e,t){return D(e,t)}function F(e,t,r,i,o){if(e.destroyed||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;const a=(t.velocity??0)*o.factor,l=t.min,u=t.max,d=t.decay??1;if(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+=a;break;case s.AnimationStatus.decreasing:t.value-=a}
31switch(t.velocity&&1!==d&&(t.velocity*=d),t.status){case s.AnimationStatus.increasing:t.value>=u&&(r?t.status=s.AnimationStatus.decreasing:t.value-=u,t.loops??=0,t.loops++);break;case s.AnimationStatus.decreasing:t.value<=l&&(r?t.status=s.AnimationStatus.increasing:t.value+=u,t.loops??=0,t.loops++)}!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,l,u),e.destroyed||(t.value=(0,n.clamp)(t.value,l,u))}}function B(e){const t=y().createElement("div").style;for(const r in e){const n=e[r];if(!(r in e)||(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 j=m(function(e){const t=y().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","pointer-events":"none"};for(const e in r){const n=r[e];void 0!==n&&t.setProperty(e,n)}return t});function U(e,t,r,n,i){if(n){let n={passive:!0};(0,o.isBoolean)(i)?n.capture=i:void 0!==i&&(n=i),e.addEventListener(t,r,n)}else{const n=i;e.removeEventListener(t,r,n)}}async function H(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}async function z(e,t,r,n=!1){let i=t.get(e);if(!i||n){const n=await Promise.all([...r.entries()].map(([t,r])=>r(e).then(e=>[t,e])));i=new Map(n),t.set(e,i)}return i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{animate:()=>h,calcExactPositionOrRandomFromSize:()=>D,calcExactPositionOrRandomFromSizeRanged:()=>N,calcPositionFromSize:()=>C,calcPositionOrRandomFromSize:()=>k,calcPositionOrRandomFromSizeRanged:()=>M,cancelAnimation:()=>m,checkDistance:()=>O,clamp:()=>g,collisionVelocity:()=>I,degToRad:()=>A,getDistance:()=>x,getDistanceSq:()=>T,getDistances:()=>w,getParticleBaseVelocity:()=>P,getParticleDirectionAngle:()=>R,getRandom:()=>d,getRandomInRange:()=>p,getRangeMax:()=>S,getRangeMin:()=>_,getRangeValue:()=>b,mix:()=>y,parseAlpha:()=>L,randomInRangeValue:()=>v,setAnimationFunctions:()=>f,setRandom:()=>u,setRangeValue:()=>E});var n=r(920),i=r(917),o=r(921),a=r(922);const s=Math.PI/180;let c=Math.random;const l={nextFrame:e=>requestAnimationFrame(e),cancel:e=>{cancelAnimationFrame(e)}};function u(e=Math.random){c=e}function d(){return g(c(),0,1-Number.EPSILON)}function p(e,t){return d()*(t-e)+e}function f(e,t){l.nextFrame=e,l.cancel=t}function h(e){return l.nextFrame(e)}function m(e){l.cancel(e)}function g(e,t,r){return Math.min(Math.max(e,t),r)}function y(e,t,r,n){return Math.floor((e*r+t*n)/(r+n))}function v(e){const t=S(e);let r=_(e);return t===r&&(r=0),p(r,t)}function b(e){return(0,a.isNumber)(e)?e:v(e)}function _(e){return(0,a.isNumber)(e)?e:e.min}function S(e){return(0,a.isNumber)(e)?e:e.max}function E(e,t){if(e===t||void 0===t&&(0,a.isNumber)(e))return e;const r=_(e),n=S(e);return void 0!==t?{min:Math.min(r,t),max:Math.max(n,t)}:E(r,n)}function w(e,t){const r=e.x-t.x,n=e.y-t.y;return{dx:r,dy:n,distance:Math.hypot(r,n)}}function T(e,t){const r=e.x-t.x,n=e.y-t.y;return r*r+n*n}function x(e,t){return Math.sqrt(T(e,t))}function O(e,t,r){return T(e,t)<=r*r}function A(e){return e*s}function R(e,t,r){if((0,a.isNumber)(e))return A(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 d()*i.doublePI}}function P(e){const t=o.Vector.origin;return t.length=1,t.angle=e,t}function I(e,t,r,n){return o.Vector.create(e.x*(r-n)/(r+n)+t.x*i.double*n/(r+n),e.y)}function C(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 k(e){return{x:(e.position?.x??d()*i.percentDenominator)*e.size.width/i.percentDenominator,y:(e.position?.y??d()*i.percentDenominator)*e.size.height/i.percentDenominator}}function M(e){const t={x:void 0!==e.position?.x?b(e.position.x):void 0,y:void 0!==e.position?.y?b(e.position.y):void 0};return k({size:e.size,position:t})}function D(e){const{position:t,size:r}=e;
31return{x:t?.x??d()*r.width,y:t?.y??d()*r.height}}function N(e){const t={x:void 0!==e.position?.x?b(e.position.x):void 0,y:void 0!==e.position?.y?b(e.position.y):void 0};return D({size:e.size,position:t})}function L(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(917);function i(e){return"z"in e?e.z:n.originPoint.z}class o{x;y;z;constructor(e=n.originPoint.x,t=n.originPoint.y,r=n.originPoint.z){this.x=e,this.y=t,this.z=r}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.#n(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this.#n(this.angle,e)}static clone(e){return o.create(e.x,e.y,i(e))}static create(e,t,r){return"number"==typeof e?new o(e,t??n.originPoint.y,r??n.originPoint.z):new o(e.x,e.y,i(e))}add(e){return o.create(this.x+e.x,this.y+e.y,this.z+i(e))}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=i(e)}copy(){return o.clone(this)}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,this.z=i(e)}sub(e){return o.create(this.x-e.x,this.y-e.y,this.z-i(e))}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=i(e)}#n(e,t){this.x=Math.cos(e)*t,this.y=Math.sin(e)*t}}class a extends o{constructor(e=n.originPoint.x,t=n.originPoint.y){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"number"==typeof e?new a(e,t??n.originPoint.y):new a(e.x,e.y)}}},(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 l(e){return null==e}r.r(t),r.d(t,{isArray:()=>c,isBoolean:()=>n,isFunction:()=>a,isNull:()=>l,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,{EventDispatcher:()=>i});var n=r(917);class i{#i;constructor(){this.#i=new Map}addEventListener(e,t){this.removeEventListener(e,t);let r=this.#i.get(e);r||(r=[],this.#i.set(e,r)),r.push(t)}dispatchEvent(e,t){const r=this.#i.get(e);r?.forEach(e=>{e(t)})}hasEventListener(e){return!!this.#i.get(e)}removeAllEventListeners(e){e?this.#i.delete(e):this.#i=new Map}removeEventListener(e,t){const r=this.#i.get(e);if(!r)return;const i=r.length,o=r.indexOf(t);o<n.minIndex||(i===n.deleteCount?this.#i.delete(e):r.splice(o,n.deleteCount))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{PluginManager:()=>o});var n=r(918),i=r(931);class o{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;
vendor: 1,511 bytes, line 31
31initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;#o=new Set;#a=new Map;#s;#c=new Set;#r=!1;#l=!1;#u=new Set;constructor(e){this.#s=e}get configs(){const e={};for(const[t,r]of this.#a)e[t]=r;return e}addColorManager(e,t){this.colorManagers.set(e,t)}addConfig(e){const t=e.key??e.name??"default";this.#a.set(t,e),this.#s.dispatchEvent(i.EventType.configAdded,{data:{name:t,config:e}})}addEasing(e,t){this.easingFunctions.get(e)||this.easingFunctions.set(e,t)}addEffect(e,t){this.initializers.effects.set(e,t)}addPalette(e,t){this.palettes.set(e,t)}addParticleUpdater(e,t){this.initializers.updaters.set(e,t)}addPlugin(e){this.getPlugin(e.id)||this.plugins.push(e)}addPreset(e,t,r=!1){!r&&this.getPreset(e)||this.presets.set(e,t)}addShape(e,t){for(const r of e)this.initializers.shapes.set(r,t)}clearPlugins(e){this.effectDrawers.delete(e),this.shapeDrawers.delete(e),this.updaters.delete(e)}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawers(e,t=!1){return(0,n.getItemMapFromInitializer)(e,this.effectDrawers,this.initializers.effects,t)}getPalette(e){return this.palettes.get(e)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}async getShapeDrawers(e,t=!1){return(0,n.getItemMapFromInitializer)(e,this.shapeDrawers,this.initializers.shapes,t)}async getUpdaters(e,t=!1){return(0,n.getItemsFromInitializer)(e,this.updaters,this.initializers.updaters,t)}
vendor: 8,256 bytes, line 31
31async init(){if(!this.#r&&!this.#l){this.#l=!0,this.#c=new Set,this.#o=new Set(this.#u);try{for(const e of this.#o)await this.#d(e,this.#c,this.#o)}finally{this.#u.clear(),this.#l=!1,this.#r=!0}}}loadParticlesOptions(e,t,...r){const n=this.updaters.get(e);n&&n.forEach(e=>e.loadOptions?.(t,...r))}async register(...e){if(this.#r)throw new Error("Register plugins can only be done before calling tsParticles.load()");for(const t of e)this.#l?await this.#d(t,this.#c,this.#o):this.#u.add(t)}async#d(e,t,r){t.has(e)||(t.add(e),r.add(e),await e(this.#s))}}},(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,{getLogger:()=>a,setLogger:()=>o});const n=e=>(...t)=>{e(...t)},i={debug:n(console.debug),error:(e,...t)=>{console.error(`tsParticles - Error - ${e}`,...t)},info:n(console.info),log:n(console.log),trace:n(console.trace),verbose:n(console.log),warning:n(console.warn)};function o(e){e.debug&&(i.debug=n(e.debug)),e.error&&(i.error=n(e.error)),e.info&&(i.info=n(e.info)),e.log&&(i.log=n(e.log)),e.trace&&(i.trace=n(e.trace)),e.verbose&&(i.verbose=n(e.verbose)),e.warning&&(i.warning=n(e.warning))}function a(){return i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AlterType:()=>f.AlterType,AnimatableColor:()=>S.AnimatableColor,AnimationMode:()=>l.AnimationMode,AnimationOptions:()=>E.AnimationOptions,AnimationStatus:()=>_.AnimationStatus,AnimationValueWithRandom:()=>K.AnimationValueWithRandom,Background:()=>w.Background,BaseRange:()=>i.BaseRange,Circle:()=>i.Circle,ColorAnimation:()=>T.ColorAnimation,DestroyType:()=>h.DestroyType,EasingType:()=>v.EasingType,EventType:()=>b.EventType,Fill:()=>k.Fill,FullScreen:()=>x.FullScreen,GradientType:()=>m.GradientType,HslAnimation:()=>O.HslAnimation,LimitMode:()=>u.LimitMode,Move:()=>N.Move,MoveAngle:()=>L.MoveAngle,MoveCenter:()=>F.MoveCenter,MoveDirection:()=>a.MoveDirection,MoveGravity:()=>B.MoveGravity,MovePath:()=>U.MovePath,Options:()=>A.Options,OptionsColor:()=>R.OptionsColor,OutMode:()=>d.OutMode,OutModeDirection:()=>c.OutModeDirection,OutModes:()=>j.OutModes,Paint:()=>M.Paint,ParticleOutType:()=>g.ParticleOutType,ParticlesBounce:()=>P.ParticlesBounce,ParticlesBounceFactor:()=>I.ParticlesBounceFactor,ParticlesDensity:()=>G.ParticlesDensity,ParticlesNumber:()=>z.ParticlesNumber,ParticlesNumberLimit:()=>V.ParticlesNumberLimit,ParticlesOptions:()=>C.ParticlesOptions,PixelMode:()=>p.PixelMode,RangedAnimationOptions:()=>E.RangedAnimationOptions,RangedAnimationValueWithRandom:()=>K.RangedAnimationValueWithRandom,Rectangle:()=>i.Rectangle,ResizeEvent:()=>W.ResizeEvent,RotateDirection:()=>s.RotateDirection,Shape:()=>$.Shape,Spin:()=>H.Spin,StartValueType:()=>y.StartValueType,Stroke:()=>D.Stroke,ValueWithRandom:()=>K.ValueWithRandom,Vector:()=>o.Vector,Vector3d:()=>o.Vector3d,ZIndex:()=>q.ZIndex,alterHsl:()=>J.alterHsl,animate:()=>X.animate,areBoundsInside:()=>ee.areBoundsInside,arrayRandomIndex:()=>ee.arrayRandomIndex,calcExactPositionOrRandomFromSize:()=>X.calcExactPositionOrRandomFromSize,calcExactPositionOrRandomFromSizeRanged:()=>X.calcExactPositionOrRandomFromSizeRanged,calcPositionFromSize:()=>X.calcPositionFromSize,calcPositionOrRandomFromSize:()=>X.calcPositionOrRandomFromSize,calcPositionOrRandomFromSizeRanged:()=>X.calcPositionOrRandomFromSizeRanged,calculateBounds:()=>ee.calculateBounds,cancelAnimation:()=>X.cancelAnimation,canvasFirstIndex:()=>n.canvasFirstIndex,canvasTag:()=>n.canvasTag,checkDistance:()=>X.checkDistance,circleBounce:()=>ee.circleBounce,circleBounceDataFromParticle:()=>ee.circleBounceDataFromParticle,clamp:()=>X.clamp,clear:()=>Y.clear,cloneStyle:()=>ee.cloneStyle,collisionVelocity:()=>X.collisionVelocity,colorMix:()=>J.colorMix,colorToHsl:()=>J.colorToHsl,colorToRgb:()=>J.colorToRgb,countOffset:()=>n.countOffset,decayOffset:()=>n.decayOffset,deepExtend:()=>ee.deepExtend,defaultAlpha:()=>n.defaultAlpha,defaultAngle:()=>n.defaultAngle,defaultCompositeValue:()=>n.defaultCompositeValue,defaultDensityFactor:()=>n.defaultDensityFactor,defaultFps:()=>n.defaultFps,defaultFpsLimit:()=>n.defaultFpsLimit,defaultLoops:()=>n.defaultLoops,defaultOpacity:()=>n.defaultOpacity,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,defaultZoom:()=>n.defaultZoom,degToRad:()=>X.degToRad,deleteCount:()=>n.deleteCount,double:()=>n.double,doublePI:()=>n.doublePI,drawAfterEffect:()=>Y.drawAfterEffect,drawBeforeEffect:()=>Y.drawBeforeEffect,drawParticle:()=>Y.drawParticle,drawParticlePlugin:()=>Y.drawParticlePlugin,drawShape:()=>Y.drawShape,drawShapeAfterDraw:()=>Y.drawShapeAfterDraw,drawShapeBeforeDraw:()=>Y.drawShapeBeforeDraw,empty:()=>n.empty,executeOnSingleOrMultiple:()=>ee.executeOnSingleOrMultiple,findItemFromSingleOrMultiple:()=>ee.findItemFromSingleOrMultiple,generatedAttribute:()=>n.generatedAttribute,generatedFalse:()=>n.generatedFalse,generatedTrue:()=>n.generatedTrue,getDistance:()=>X.getDistance,getDistanceSq:()=>X.getDistanceSq,getDistances:()=>X.getDistances,getFullScreenStyle:()=>ee.getFullScreenStyle,getHslAnimationFromHsl:()=>J.getHslAnimationFromHsl,getHslFromAnimation:()=>J.getHslFromAnimation,getItemMapFromInitializer:()=>ee.getItemMapFromInitializer,getItemsFromInitializer:()=>ee.getItemsFromInitializer,getLinkColor:()=>J.getLinkColor,getLinkRandomColor:()=>J.getLinkRandomColor,getLogger:()=>Q.getLogger,getParticleBaseVelocity:()=>X.getParticleBaseVelocity,getParticleDirectionAngle:()=>X.getParticleDirectionAngle,getPosition:()=>ee.getPosition,getRandom:()=>X.getRandom,getRandomInRange:()=>X.getRandomInRange,getRandomRgbColor:()=>J.getRandomRgbColor,getRangeMax:()=>X.getRangeMax,getRangeMin:()=>X.getRangeMin,getRangeValue:()=>X.getRangeValue,getSize:()=>ee.getSize,getStyleFromHsl:()=>J.getStyleFromHsl,getStyleFromRgb:()=>J.getStyleFromRgb,hMax:()=>n.hMax,hMin:()=>n.hMin,hPhase:()=>n.hPhase,half:()=>n.half,hasMatchMedia:()=>ee.hasMatchMedia,hslToRgb:()=>J.hslToRgb,hslaToRgba:()=>J.hslaToRgba,identity:()=>n.identity,initParticleNumericAnimationValue:()=>ee.initParticleNumericAnimationValue,inverseFactorNumerator:()=>n.inverseFactorNumerator,isArray:()=>te.isArray,isBoolean:()=>te.isBoolean,isFunction:()=>te.isFunction,isInArray:()=>ee.isInArray,isNull:()=>te.isNull,isNumber:()=>te.isNumber,isObject:()=>te.isObject,isPointInside:()=>ee.isPointInside,isString:()=>te.isString,itemFromArray:()=>ee.itemFromArray,itemFromSingleOrMultiple:()=>ee.itemFromSingleOrMultiple,lFactor:()=>n.lFactor,lMax:()=>n.lMax,lMin:()=>n.lMin,lengthOffset:()=>n.lengthOffset,loadMinIndex:()=>n.loadMinIndex,loadOptions:()=>Z.loadOptions,loadParticlesOptions:()=>Z.loadParticlesOptions,loadRandomFactor:()=>n.loadRandomFactor,manageListener:()=>ee.manageListener,memoize:()=>ee.memoize,midColorValue:()=>n.midColorValue,millisecondsToSeconds:()=>n.millisecondsToSeconds,minCount:()=>n.minCount,minFpsLimit:()=>n.minFpsLimit,minIndex:()=>n.minIndex,minLimit:()=>n.minLimit,minStrokeWidth:()=>n.minStrokeWidth,minVelocity:()=>n.minVelocity,minZ:()=>n.minZ,minimumSize:()=>n.minimumSize,mix:()=>X.mix,none:()=>n.none,one:()=>n.one,originPoint:()=>n.originPoint,paintBase:()=>Y.paintBase,paintImage:()=>Y.paintImage,parseAlpha:()=>X.parseAlpha,percentDenominator:()=>n.percentDenominator,phaseNumerator:()=>n.phaseNumerator,quarter:()=>n.quarter,randomColorValue:()=>n.randomColorValue,randomInRangeValue:()=>X.randomInRangeValue,rangeColorToHsl:()=>J.rangeColorToHsl,rangeColorToRgb:()=>J.rangeColorToRgb,removeDeleteCount:()=>n.removeDeleteCount,removeMinIndex:()=>n.removeMinIndex,resizeEvent:()=>n.resizeEvent,rgbMax:()=>
31n.rgbMax,rgbToHsl:()=>J.rgbToHsl,sMax:()=>n.sMax,sMin:()=>n.sMin,sNormalizedOffset:()=>n.sNormalizedOffset,safeDocument:()=>ee.safeDocument,safeIntersectionObserver:()=>ee.safeIntersectionObserver,safeMatchMedia:()=>ee.safeMatchMedia,safeMutationObserver:()=>ee.safeMutationObserver,setAnimationFunctions:()=>X.setAnimationFunctions,setLogger:()=>Q.setLogger,setRandom:()=>X.setRandom,setRangeValue:()=>X.setRangeValue,sextuple:()=>n.sextuple,spatialHashGridCellSize:()=>n.spatialHashGridCellSize,squareExp:()=>n.squareExp,stringToAlpha:()=>J.stringToAlpha,stringToRgb:()=>J.stringToRgb,threeQuarter:()=>n.threeQuarter,triple:()=>n.triple,tryCountIncrement:()=>n.tryCountIncrement,updateAnimation:()=>ee.updateAnimation,updateColor:()=>J.updateColor,updateColorValue:()=>J.updateColorValue,visibilityChangeEvent:()=>n.visibilityChangeEvent,zIndexFactorOffset:()=>n.zIndexFactorOffset});var n=r(917),i=r(934),o=r(921),a=r(920),s=r(936),c=r(926),l=r(923),u=r(937),d=r(938),p=r(927),f=r(939),h=r(925),m=r(940),g=r(941),y=r(928),v=r(942),b=r(931),_=r(924),S=r(943),E=r(946),w=r(948),T=r(945),x=r(949),O=r(944),A=r(950),R=r(947),P=r(966),I=r(967),C=r(953),k=r(955),M=r(964),D=r(965),N=r(956),L=r(957),F=r(958),B=r(959),j=r(962),U=r(960),H=r(963),z=r(968),V=r(970),G=r(969),$=r(971),q=r(972),W=r(951),K=r(961),Y=r(973),J=r(974),Q=r(932),X=r(919),Z=r(952),ee=r(918),te=r(922)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseRange:()=>a,Circle:()=>s,Rectangle:()=>c});var n=r(935),i=r(919),o=r(917);class a{position;type;constructor(e,t,r){this.position={x:e,y:t},this.type=r}_resetPosition(e,t){this.position.x=e,this.position.y=t}}class s extends a{radius;constructor(e,t,r){super(e,t,n.RangeType.circle),this.radius=r}contains(e){return(0,i.checkDistance)(e,this.position,this.radius)}intersects(e){const t=this.position,r=e.position,i=this.radius,a=Math.abs(r.x-t.x),l=Math.abs(r.y-t.y);if(e instanceof s||e.type===n.RangeType.circle){return i+e.radius>Math.hypot(a,l)}if(e instanceof c||e.type===n.RangeType.rectangle){const t=e,{width:r,height:n}=t.size;return Math.pow(a-r,o.squareExp)+Math.pow(l-n,o.squareExp)<=i**o.squareExp||a<=i+r&&l<=i+n||a<=r||l<=n}return!1}reset(e,t,r){return this._resetPosition(e,t),this.radius=r,this}}class c extends a{size;
31constructor(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);if(!(e instanceof c))return!1;const t=this.size.width,r=this.size.height,n=this.position,i=e.position,o=e.size,a=o.width,l=o.height;return i.x<n.x+t&&i.x+a>n.x&&i.y<n.y+r&&i.y+l>n.y}reset(e,t,r,n){return this._resetPosition(e,t),this.size.width=r,this.size.height=n,this}}},(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";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,{LimitMode:()=>n}),function(e){e.delete="delete",e.wait="wait"}(n||(n={}))},(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";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";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,{ParticleOutType:()=>n}),function(e){e.normal="normal",e.inside="inside",e.outside="outside"}(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.easeInBounce="ease-in-bounce",e.easeInCirc="ease-in-circ",e.easeInCubic="ease-in-cubic",e.easeInElastic="ease-in-elastic",e.easeInExpo="ease-in-expo",e.easeInGaussian="ease-in-gaussian",e.easeInLinear="ease-in-linear",e.easeInQuad="ease-in-quad",e.easeInQuart="ease-in-quart",e.easeInQuint="ease-in-quint",e.easeInSigmoid="ease-in-sigmoid",e.easeInSine="ease-in-sine",e.easeInSmoothstep="ease-in-smoothstep",e.easeOutBack="ease-out-back",e.easeOutBounce="ease-out-bounce",e.easeOutCirc="ease-out-circ",e.easeOutCubic="ease-out-cubic",e.easeOutElastic="ease-out-elastic",e.easeOutExpo="ease-out-expo",e.easeOutGaussian="ease-out-gaussian",e.easeOutLinear="ease-out-linear",e.easeOutQuad="ease-out-quad",e.easeOutQuart="ease-out-quart",e.easeOutQuint="ease-out-quint",e.easeOutSigmoid="ease-out-sigmoid",e.easeOutSine="ease-out-sine",e.easeOutSmoothstep="ease-
31out-smoothstep",e.easeInOutBack="ease-in-out-back",e.easeInOutBounce="ease-in-out-bounce",e.easeInOutCirc="ease-in-out-circ",e.easeInOutCubic="ease-in-out-cubic",e.easeInOutElastic="ease-in-out-elastic",e.easeInOutExpo="ease-in-out-expo",e.easeInOutGaussian="ease-in-out-gaussian",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.easeInOutSigmoid="ease-in-out-sigmoid",e.easeInOutSine="ease-in-out-sine",e.easeInOutSmoothstep="ease-in-out-smoothstep"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AnimatableColor:()=>a});var n=r(922),i=r(944),o=r(947);class a extends o.OptionsColor{animation;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.load(e.animation):this.animation.h.load(t))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HslAnimation:()=>a});var n=r(917),i=r(945),o=r(922);class a{h=new i.ColorAnimation(n.hMin,n.hMax);l=new i.ColorAnimation(n.lMin,n.lMax);s=new i.ColorAnimation(n.sMin,n.sMax);load(e){(0,o.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(946),i=r(922),o=r(919);class a extends n.AnimationOptions{max;min;offset;constructor(e,t){super(),this.min=e,this.max=t,this.offset=0,this.sync=!0}load(e){super.load(e),(0,i.isNull)(e)||(void 0!==e.max&&(this.max=e.max),void 0!==e.min&&(this.min=e.min),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(923),i=r(928),o=r(922),a=r(919);class s{count;decay;delay;enable;speed;sync;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{mode;startValue;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,{OptionsColor:()=>i});var n=r(922);class i{value;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,{Background:()=>o});var n=r(947),i=r(922);class o{color;image;opacity;position;repeat;size;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,{FullScreen:()=>i});var n=r(922);class i{enable;zIndex;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,{Options:()=>u});var n=r(918),i=r(922),o=r(948),a=r(949),s=r(951),c=r(952),l=r(919);class u{autoPlay;background;clear;defaultThemes;delay;detectRetina;duration;fpsLimit;fullScreen;hdr;key;name;palette;particles;pauseOnBlur;pauseOnOutsideViewport;preset;resize;smooth;style;zLayers;#p;#f;constructor(e,t){this.#f=e,this.#p=t,this.autoPlay=!0,this.background=new o.Backgroun
31d,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new a.FullScreen,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.particles=(0,c.loadParticlesOptions)(this.#f,this.#p),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.resize=new s.ResizeEvent,this.smooth=!1,this.style={},this.zLayers=100}load(e){if((0,i.isNull)(e))return;void 0!==e.preset&&(this.preset=e.preset,(0,n.executeOnSingleOrMultiple)(this.preset,e=>{this.#h(e)})),void 0!==e.palette&&(this.palette=e.palette,this.#m(this.palette)),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,l.setRangeValue)(e.delay));const t=e.detectRetina;void 0!==t&&(this.detectRetina=t),void 0!==e.duration&&(this.duration=(0,l.setRangeValue)(e.duration));const r=e.fpsLimit;void 0!==r&&(this.fpsLimit=r),void 0!==e.hdr&&(this.hdr=e.hdr),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.particles.load(e.particles),this.resize.load(e.resize),this.style=(0,n.deepExtend)(this.style,e.style),void 0!==e.smooth&&(this.smooth=e.smooth),this.#f.plugins.forEach(t=>{t.loadOptions(this.#p,this,e)})}#m=e=>{const t=this.#f.getPalette(e);t&&this.load({background:{color:t.background},blend:{enable:!0,mode:t.blendMode},particles:{palette:e}})};#h=e=>{this.load(this.#f.getPreset(e))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ResizeEvent:()=>i});var n=r(922);class i{delay;enable;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,{loadOptions:()=>i,loadParticlesOptions:()=>o});var n=r(953);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:()=>h});var n=r(918),i=r(922),o=r(943),a=r(954),s=r(955),c=r(956),l=r(964),u=r(966),d=r(968),p=r(971),f=r(972);class h{bounce;effect;groups;move;number;paint;palette;reduceDuplicates;shape;zIndex;#p;#f;constructor(e,t){this.#f=e,this.#p=t,this.bounce=new u.ParticlesBounce,this.effect=new a.Effect,this.groups={},this.move=new c.Move,this.number=new d.ParticlesNumber,this.paint=new l.Paint,this.paint.color=new o.AnimatableColor,this.paint.color.value="#fff",this.paint.fill=new s.Fill,this.paint.fill.enable=!0,this.reduceDuplicates=!1,this.shape=new p.Shape,this.zIndex=new f.ZIndex}load(e){if((0,i.isNull)(e))return;if(e.palette&&(this.palette=e.palette,this.#m(this.palette)),void 0!==e.groups)for(const t of Object.keys(e.groups)){if(!(t in e.groups))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.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number);const t=e.paint;if(t&&((0,i.isArray)(t)?this.paint=(0,n.executeOnSingleOrMultiple)(t,e=>{const t=new l.Paint;return t.load(e),t}):(0,i.isArray)(this.paint)?(this.paint=new l.Paint,this.paint.load(t)):this.paint.load(t)),this.shape.load(e.shape),this.zIndex.load(e.zIndex),this.#p){for(const t of this.#f.plugins)t.loadParticlesOptions&&t.loadParticlesOptions(this.#p,this,e);const t=this.#f.updaters.get(this.#p);if(t)for(const r of t)r.loadOptions&&r.loadOptions(this,e)}}#m=e=>{const t=this.#f.getPalette(e);if(!t)return;const r=t.colors,n=((0,i.isArray)(r)?r:[r]).flatMap(e=>{const t=e.fill,r=e.stroke,n=t?{color:{value:t.value},enable:t.enable,opacity:t.opacity}:void 0;return r?[{fill:n,stroke:{color:{value:r.value},opacity:r.opacity,width:r.width||0}}]:[{fill:n}]}),o=n.length>1?n:n[0]??{};this.load({paint:o,blend:{enable:!0,mode:t.blendMode}})}}},(e,t,r)=>{"use strict";
31r.r(t),r.d(t,{Effect:()=>o});var n=r(918),i=r(922);class o{close;options;type;constructor(){this.close=!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.type&&(this.type=e.type)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Fill:()=>a});var n=r(943),i=r(922),o=r(919);class a{color;enable;opacity;constructor(){this.enable=!0,this.opacity=1}load(e){(0,i.isNull)(e)||(void 0!==e.color&&(this.color=n.AnimatableColor.create(this.color,e.color)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.opacity&&(this.opacity=(0,o.setRangeValue)(e.opacity)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Move:()=>p});var n=r(920),i=r(922),o=r(957),a=r(958),s=r(959),c=r(960),l=r(962),u=r(963),d=r(919);class p{angle;center;decay;direction;distance;drift;enable;gravity;outModes;path;random;size;speed;spin;straight;vibrate;warp;constructor(){this.angle=new o.MoveAngle,this.center=new a.MoveCenter,this.decay=0,this.distance={},this.direction=n.MoveDirection.none,this.drift=0,this.enable=!1,this.gravity=new s.MoveGravity,this.path=new c.MovePath,this.outModes=new l.OutModes,this.random=!1,this.size=!1,this.speed=2,this.spin=new u.Spin,this.straight=!1,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.center.load(e.center),void 0!==e.decay&&(this.decay=(0,d.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,d.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,d.setRangeValue)(e.speed)),this.spin.load(e.spin),void 0!==e.straight&&(this.straight=e.straight),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(922),i=r(919);class o{offset;value;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,{MoveCenter:()=>o});var n=r(927),i=r(922);class o{mode;radius;x;y;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(922),i=r(919);class o{acceleration;enable;inverse;maxSpeed;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(961),i=r(918),o=r(922);class a{clamp;delay;enable;generator;options;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,{AnimationValueWithRandom:()=>s,RangedAnimationValueWithRandom:()=>c,ValueWithRandom:()=>a});var n=r(946),i=r(922),o=r(919);class a{value;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{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{animation;constructor(){super(),this.animation=new n.RangedAnimationOptions}load(e){super.load(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OutModes:()=>o});var n=r(938),i=r(922);class o{bottom;default;left;right;top;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";r.r(t),r.d(t,{Spin:()=>a});var n=r(918),i=r(922),o=r(919);class a{acceleration;enable;position;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,{Paint:()=>s});var n=r(943),i=r(955),o=r(965),a=r(922);class s{color;fill;stroke;load(e){(0,a.isNull)(e)||(void 0!==e.color&&(this.color=n.AnimatableColor.create(this.color,e.color)),void 0!==e.fill&&(this.fill??=new i.Fill,this.fill.load(e.fill)),void 0!==e.stroke&&(this.stroke??=new o.Stroke,this.stroke.load(e.stroke)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Stroke:()=>a});var n=r(943),i=r(922),o=r(919);class a{color;opacity;width;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,{ParticlesBounce:()=>o});var n=r(967),i=r(922);class o{horizontal;vertical;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(961);class i extends n.ValueWithRandom{constructor(){super(),this.value=1}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesNumber:()=>a});var n=r(969),i=r(970),o=r(922);class a{density;limit;value;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(922);class i{enable;height;width;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(937),i=r(922);class o{mode;value;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";r.r(t),r.d(t,{Shape:()=>o});var n=r(918),i=r(922);class o{close;options;type;constructor(){this.close=!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))}
31void 0!==e.close&&(this.close=e.close),void 0!==e.type&&(this.type=e.type)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ZIndex:()=>o});var n=r(961),i=r(922);class o extends n.ValueWithRandom{opacityRate;sizeRate;velocityRate;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,{clear:()=>a,drawAfterEffect:()=>c,drawBeforeEffect:()=>l,drawParticle:()=>s,drawParticlePlugin:()=>f,drawShape:()=>u,drawShapeAfterDraw:()=>d,drawShapeBeforeDraw:()=>p,paintBase:()=>i,paintImage:()=>o});var n=r(917);function i(e,t,r){e.fillStyle=r??"rgba(0,0,0,0)",e.fillRect(n.originPoint.x,n.originPoint.y,t.width,t.height)}function o(e,t,r,i){if(!r)return;const o=e.globalAlpha;e.globalAlpha=i,e.drawImage(r,n.originPoint.x,n.originPoint.y,t.width,t.height),e.globalAlpha=o}function a(e,t){e.clearRect(n.originPoint.x,n.originPoint.y,t.width,t.height)}function s(e){const{container:t,context:r,particle:i,delta:o,colorStyles:a,radius:s,opacity:f,transform:h}=e,{effectDrawers:m,shapeDrawers:g}=t,y=i.getPosition(),v=i.getTransformData(h),b=n.defaultZoom,_={x:y.x,y:y.y};r.setTransform(v.a,v.b,v.c,v.d,y.x,y.y),a.fill&&(r.fillStyle=a.fill);const S=!!i.fillEnabled,E=i.strokeWidth??n.minStrokeWidth;r.lineWidth=E,a.stroke&&(r.strokeStyle=a.stroke);const w={context:r,particle:i,radius:s,drawRadius:s*b,opacity:f,delta:o,pixelRatio:t.retina.pixelRatio,fill:S,stroke:E>n.minStrokeWidth,transformData:v,position:{...y},drawPosition:_,drawScale:b};for(const e of t.plugins)e.drawParticleTransform?.(w);const T=i.effect?m.get(i.effect):void 0,x=i.shape?g.get(i.shape):void 0;l(T,w),p(x,w),u(x,w),d(x,w),c(T,w),r.resetTransform()}function c(e,t){if(!e?.drawAfter)return;const{particle:r}=t;r.effect&&e.drawAfter(t)}function l(e,t){if(!e?.drawBefore)return;const{particle:r}=t;r.effect&&e.drawBefore(t)}function u(e,t){if(!e)return;const{context:r,fill:n,particle:i,stroke:o}=t;i.shape&&(r.beginPath(),e.draw(t),i.shapeClose&&r.closePath(),n&&r.fill(),o&&r.stroke())}function d(e,t){if(!e?.afterDraw)return;const{particle:r}=t;r.shape&&e.afterDraw(t)}function p(e,t){if(!e?.beforeDraw)return;const{particle:r}=t;r.shape&&e.beforeDraw(t)}function f(e,t,r,n){t.drawParticle&&t.drawParticle(e,r,n)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{alterHsl:()=>F,colorMix:()=>P,colorToHsl:()=>v,colorToRgb:()=>y,getHslAnimationFromHsl:()=>M,getHslFromAnimation:()=>k,getLinkColor:()=>I,getLinkRandomColor:()=>C,getRandomRgbColor:()=>x,getStyleFromHsl:()=>R,getStyleFromRgb:()=>O,hslToRgb:()=>w,hslaToRgba:()=>T,rangeColorToHsl:()=>b,rangeColorToRgb:()=>g,rgbToHsl:()=>_,stringToAlpha:()=>S,stringToRgb:()=>E,updateColor:()=>L,updateColorValue:()=>N});var n=r(919),i=r(917),o=r(922),a=r(939),s=r(924),c=r(918);const l=new Map,u=1e3,d=0,p=2,f=2;function h(e,t){let r=l.get(e);if(!r){if(r=t(),l.size>=u){[...l.keys()].slice(d,u*i.half).forEach(e=>l.delete(e))}l.set(e,r)}return r}function m(e,t){if(t)for(const r of e.colorManagers.values())if(r.accepts(t))return r.parseString(t)}function g(e,t,r,n=!0){if(!t)return;const i=(0,o.isString)(t)?{value:t}:t;if((0,o.isString)(i.value))return y(e,i.value,r,n);if((0,o.isArray)(i.value)){const t=(0,c.itemFromArray)(i.value,r,n);if(!t)return;return g(e,{value:t})}for(const t of e.colorManagers.values()){const e=t.handleRangeColor(i);if(e)return e}}function y(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?x():E(e,a.value);if((0,o.isArray)(a.value)){const t=(0,c.itemFromArray)(a.value,r,n);if(!t)return;return y(e,{value:t})}for(const t of e.colorManagers.values()){const e=t.handleColor(a);if(e)return e}}function v(e,t,r,n=!0){const i=y(e,t,r,n);return i?_(i):void 0}function b(e,t,r,n=!0){const i=g(e,t,r,n);return i?_(i):void 0}function _(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):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 S(e,t){return m(e,t)?.a}function E(e,t){return m(e,t)}function w(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;
31if(r===i.sMin){const e=Math.round(s*i.rgbMax);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},l=s<i.half?s*(i.sNormalizedOffset+a):s+a-s*a,u=i.double*s-l,d=i.phaseNumerator/i.triple,p=Math.min(i.rgbMax,i.rgbMax*c(u,l,o+d)),f=Math.min(i.rgbMax,i.rgbMax*c(u,l,o)),h=Math.min(i.rgbMax,i.rgbMax*c(u,l,o-d));return{r:Math.round(p),g:Math.round(f),b:Math.round(h)}}function T(e){const t=w(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function x(e){const t=e??i.defaultRgbMin,r=i.rgbMax+i.identity,o=()=>Math.floor((0,n.getRandomInRange)(t,r));return{b:o(),g:o(),r:o()}}function O(e,t,r){const n=r??i.defaultOpacity;return h(`rgb-${e.r.toFixed(p)}-${e.g.toFixed(p)}-${e.b.toFixed(p)}-${t?"hdr":"sdr"}-${n.toString()}`,()=>t?A(e,r):function(e,t){return`rgba(${e.r.toString()}, ${e.g.toString()}, ${e.b.toString()}, ${(t??i.defaultOpacity).toString()})`}(e,r))}function A(e,t){return`color(display-p3 ${(e.r/i.rgbMax).toString()} ${(e.g/i.rgbMax).toString()} ${(e.b/i.rgbMax).toString()} / ${(t??i.defaultOpacity).toString()})`}function R(e,t,r){const n=r??i.defaultOpacity;return h(`hsl-${e.h.toFixed(f)}-${e.s.toFixed(f)}-${e.l.toFixed(f)}-${t?"hdr":"sdr"}-${n.toString()}`,()=>t?function(e,t){return A(w(e),t)}(e,r):function(e,t){return`hsla(${e.h.toString()}, ${e.s.toString()}%, ${e.l.toString()}%, ${(t??i.defaultOpacity).toString()})`}(e,r))}function P(e,t,r,i){let o=e,a=t;return"r"in o||(o=w(e)),"r"in a||(a=w(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 I(e,t,r){if(r===i.randomColorValue)return x();if(r!==i.midColorValue)return r;{const r=e.getFillColor()??e.getStrokeColor(),n=t?.getFillColor()??t?.getStrokeColor();if(r&&n&&t)return P(r,n,e.getRadius(),t.getRadius());{const e=r??n;if(e)return w(e)}}}function C(e,t,r,n){const a=(0,o.isString)(t)?t:t.value;return a===i.randomColorValue?n?g(e,{value:a}):r?i.randomColorValue:i.midColorValue:a===i.midColorValue?i.midColorValue:g(e,{value:a})}function k(e){return void 0===e?void 0:{h:e.h.value,s:e.s.value,l:e.l.value}}function M(e,t,r){const n={h:{enable:!1,value:e.h,min:i.hMin,max:i.hMax},s:{enable:!1,value:e.s,min:i.sMin,max:i.sMax},l:{enable:!1,value:e.l,min:i.lMin,max:i.lMax}};return t&&(D(n.h,t.h,r),D(n.s,t.s,r),D(n.l,t.l,r)),n}function D(e,t,r){e.enable=t.enable,e.min=t.min,e.max=t.max,e.enable?(e.velocity=(0,n.getRangeValue)(t.speed)/i.percentDenominator*r,e.decay=i.decayOffset-(0,n.getRangeValue)(t.decay),e.status=s.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 N(e,t,r){if(!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;if(e.time??=0,(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=r.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0))return;const i=e.offset?(0,n.randomInRangeValue)(e.offset):0,o=(e.velocity??0)*r.factor+3.6*i,a=e.decay??1,c=e.max,l=e.min;t&&e.status!==s.AnimationStatus.increasing?(e.value-=o,e.value<l&&(e.loops??=0,e.loops++,e.status=s.AnimationStatus.increasing)):(e.value+=o,e.value>c&&(e.loops??=0,e.loops++,t?e.status=s.AnimationStatus.decreasing:e.value-=c)),e.velocity&&1!==a&&(e.velocity*=a),e.value=(0,n.clamp)(e.value,l,c)}function L(e,t){if(!e)return;const{h:r,s:n,l:i}=e;N(r,!1,t),N(n,!0,t),N(i,!0,t)}function F(e,t,r){return{h:e.h,s:e.s,l:e.l+(t===a.AlterType.darken?-i.lFactor:i.lFactor)*r}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(913),i=r(396),o=r(914),a=e=>{let{className:t,id:r,options:a,particlesLoaded:s,style:c,url:l}=e,{loaded:u}=(0,n.useParticlesProvider)(),d=(0,i.useRef)(void 0);return(0,i.useEffect)(()=>{if(!u)return;let e=r??"tsparticles";return o.tsParticles.load({id:e,url:l,options:a}).then(t=>{if(!t?.destroyed){if(!document.getElementById(e))return void t?.destroy();d.current=t,s?.(t)}}),()=>{d.current?.destroy(),d.current=void 0}},[r,u,a,s,l]),(0,i.jsx)("div",{id:r??"tsparticles",className:t,style:c}
31)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadConfettiPreset:()=>m});var n=r(977),i=r(1009),o=r(1011),a=r(1024),s=r(1030),c=r(1034),l=r(1040),u=r(1044),d=r(1047),p=r(1052),f=r(1057);const h="confetti";async function m(e){await e.pluginManager.register(async e=>{await Promise.all([(0,n.loadBasic)(e),(0,i.loadConfettiPalette)(e),(0,o.loadEmittersPluginSimple)(e),(0,u.loadSquareShape)(e),(0,s.loadMotionPlugin)(e),(0,p.loadWobbleUpdater)(e),(0,c.loadRollUpdater)(e),(0,l.loadRotateUpdater)(e),(0,d.loadTiltUpdater)(e),(0,a.loadLifeUpdater)(e)]),e.pluginManager.addPreset(h,f.options,!1)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadBasic:()=>f});var n=r(978),i=r(981),o=r(984),a=r(986),s=r(988),c=r(990),l=r(994),u=r(1001),d=r(1003),p=r(1005);async function f(e){e.checkVersion("4.1.3"),await e.pluginManager.register(async e=>{await Promise.all([(0,n.loadBlendPlugin)(e),(0,o.loadHexColorPlugin)(e),(0,a.loadHslColorPlugin)(e),(0,d.loadRgbColorPlugin)(e),(0,s.loadMovePlugin)(e),(0,i.loadCircleShape)(e),(0,u.loadPaintUpdater)(e),(0,c.loadOpacityUpdater)(e),(0,l.loadOutModesUpdater)(e),(0,p.loadSizeUpdater)(e)])})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadBlendPlugin:()=>i});var n=r(979);async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addPlugin(new n.BlendPlugin)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BlendPlugin:()=>i});var n=r(980);class i{id="blend";async getPlugin(e){const{BlendPluginInstance:t}=await r.e("vendors").then(r.bind(r,2799));return new t(e)}loadOptions(e,t,r){if(!this.needsPlugin(t)&&!this.needsPlugin(r))return;let i=t.blend;i?.load||(t.blend=i=new n.Blend),i.load(r?.blend)}loadParticlesOptions(e,t,r){t.blend??=new n.Blend,t.blend.load(r?.blend)}needsPlugin(e){return!!e?.blend?.enable||!!e?.particles?.blend?.enable}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Blend:()=>i});var n=r(914);class i{enable;mode;constructor(){this.mode="destination-out",this.enable=!1}load(e){(0,n.isNull)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.enable&&(this.enable=e.enable))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadCircleShape:()=>i});var n=r(982);async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addShape(["circle"],()=>Promise.resolve(new n.CircleDrawer))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CircleDrawer:()=>o});var n=r(914),i=r(983);class o{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:()=>o});var n=r(914);const i=0;function o(e){const{context:t,particle:r,radius:o}=e;r.circleRange??={min:i,max:n.doublePI};const a=r.circleRange;t.arc(n.originPoint.x,n.originPoint.y,o,a.min,a.max,!1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadHexColorPlugin:()=>i});var n=r(985);async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addColorManager("hex",new n.HexColorManager)})}},(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{accepts(e){return e.startsWith("#")}handleColor(e){return this.#g(e.value)}handleRangeColor(e){return this.#g(e.value)}parseString(e){return this.#g(e)}#g(e){if("string"!=typeof e||!this.accepts(e))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:r[n.a]?Number.parseInt(r[n.a],16)/255:1,b:Number.parseInt(r[n.b]??"0",16),g:Number.parseInt(r[n.g]??"0",16),r:Number.parseInt(r[n.r]??"0",16)}:void 0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadHslColorPlugin:()=>i});var n=r(987);async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addColorManager("hsl",new n.HslColorManager)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HslColorManager:()=>a});var n,i=r(914);!function(e){e[e.h=1]="h",e[e.s=2]="s",e[e.l=3]="l",e[e.a=5]="a"}(n||(n={}));const o=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class a{accepts(e){return e.startsWith("hsl")}handleColor(e){const t=e.value.hsl??e.value;if("h"in t&&"s"in t&&"l"in t)return(0,i.hslToRgb)(t)}handleRangeColor(e){const t=e.value.hsl??e.value;if("h"in t&&"s"in t&&"l"in t)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(!this.accepts(e))return;const t=o.exec(e);return t?(0,i.hslaToRgba)({a:t.length>4?(0,i.parseAlpha)(t[n.a]):1,h:Number.parseInt(t[n.h]??"0",10),l:Number.parseInt(t[n.l]??"0",10),s:Number.parseInt(t[n.s]??"0",10)}):void 0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ensureBaseMoverLoaded:()=>a,loadMovePlugin:()=>o});var n=r(914),i=r(989);async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{const t=e.pluginManager;
31t.initializers.pathGenerators??=new Map,t.pathGenerators??=new Map,t.addPathGenerator=(e,r)=>{t.initializers.pathGenerators??=new Map,t.initializers.pathGenerators.set(e,r)},t.getPathGenerators=async(e,r=!1)=>(t.initializers.pathGenerators??=new Map,t.pathGenerators??=new Map,(0,n.getItemMapFromInitializer)(e,t.pathGenerators,t.initializers.pathGenerators,r)),e.pluginManager.addPlugin(new i.MovePlugin(e.pluginManager))})}function a(e){if(!e.pluginManager.addPathGenerator)throw new Error("tsParticles Base Mover is not loaded")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MovePlugin:()=>n});class n{id="move";#f;constructor(e){this.#f=e}async getPlugin(e){const{MovePluginInstance:t}=await r.e("vendors").then(r.bind(r,2800));return new t(this.#f,e)}loadOptions(){}needsPlugin(){return!0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadOpacityUpdater:()=>i});var n=r(991);async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("opacity",e=>Promise.resolve(new n.OpacityUpdater(e)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OpacityUpdater:()=>o});var n=r(914),i=r(992);class o{#p;constructor(e){this.#p=e}init(e){const t=e.options.opacity;if(!t)return;e.opacity=(0,n.initParticleNumericAnimationValue)(t,1);const r=t.animation;r.enable&&(e.opacity.velocity=(0,n.getRangeValue)(r.speed)/n.percentDenominator*this.#p.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))}loadOptions(e,...t){e.opacity??=new i.Opacity;for(const r of t)e.opacity.load(r?.opacity)}reset(e){e.opacity&&(e.opacity.time=0,e.opacity.loops=0)}update(e,t){this.isEnabled(e)&&e.opacity&&e.options.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,{Opacity:()=>o});var n=r(914),i=r(993);class o extends n.RangedAnimationValueWithRandom{animation;constructor(){super(),this.animation=new i.OpacityAnimation,this.value=1}load(e){if((0,n.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:()=>i});var n=r(914);class i extends n.RangedAnimationOptions{destroy;constructor(){super(),this.destroy=n.DestroyType.none,this.speed=2}load(e){super.load(e),(0,n.isNull)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadOutModesUpdater:()=>i});var n=r(995);async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("outModes",e=>Promise.resolve(new n.OutOfCanvasUpdater(e)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OutOfCanvasUpdater:()=>c});var n=r(914),i=r(996),o=r(998),a=r(999),s=r(1e3);class c{updaters;#p;constructor(e){this.#p=e,this.updaters=new Map}init(e){this.#y(e,n.OutMode.bounce,e=>new i.BounceOutMode(e)),this.#y(e,n.OutMode.out,e=>new s.OutOutMode(e)),this.#y(e,n.OutMode.destroy,e=>new o.DestroyOutMode(e)),this.#y(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;e.justWarped=!1,this.#v(e,t,r.bottom??r.default,n.OutModeDirection.bottom),this.#v(e,t,r.left??r.default,n.OutModeDirection.left),this.#v(e,t,r.right??r.default,n.OutModeDirection.right),this.#v(e,t,r.top??r.default,n.OutModeDirection.top)}#y=(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.#p))};#v=(e,t,r,n)=>{for(const i of this.updaters.values())i.update(e,n,t,r)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BounceOutMode:()=>o});var n=r(914),i=r(997);class o{modes;#p;#b;constructor(e){this.#p=e,this.modes=[n.OutMode.bounce,n.OutMode.split],this.#b=e.plugins.filter(e=>void 0!==e.particleBounce)}update(e,t,r,o){if(!this.modes.includes(o))return;const a=this.#p;let s=!1;for(const n of this.#b)if(s=n.particleBounce?.(e,r,t)??!1,s)break;if(s)return;const c=e.getPosition(),l=e.offset,u=e.getRadius(),d=(0,n.calculateBounds)(c,u),p=a.canvas.size,f=!e.isInsideCanvasForOutMode(o,t);(0,i.bounceHorizontal)({particle:e,outMode:o,direction:t,bounds:d,canvasSize:p,offset:l,outOfCanvas:f,size:u}),(0,i.bounceVertical)({particle:e,outMode:o,direction:t,bounds:d,canvasSize:p,offset:l,outOfCanvas:f,size:u})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bounceHorizontal:()=>a,bounceVertical:()=>s});var n=r(914);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.r
vendor: 4,550 bytes, line 31
31ight)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.outOfCanvas&&(e.direction===n.OutModeDirection.right&&t>i||e.direction===n.OutModeDirection.left&&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.outOfCanvas&&e.direction===n.OutModeDirection.right?e.particle.position.x=e.canvasSize.width-a:e.outOfCanvas&&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.outOfCanvas&&(e.direction===n.OutModeDirection.bottom&&t>i||e.direction===n.OutModeDirection.top&&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.outOfCanvas&&e.direction===n.OutModeDirection.bottom?e.particle.position.y=e.canvasSize.height-a:e.outOfCanvas&&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(914);class i{modes;constructor(e){this.modes=[n.OutMode.destroy]}update(e,t,r,i){if(this.modes.includes(i)){switch(e.outType){case n.ParticleOutType.normal:case n.ParticleOutType.outside:if(e.isInsideCanvasForOutMode(i,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}}e.destroy(!0)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{NoneOutMode:()=>i});var n=r(914);class i{modes;#p;constructor(e){this.#p=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.#p,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)&&e.destroy()}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.originPoint,c,t)||e.destroy()}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OutOutMode:()=>o});var n=r(914);const i=n.Vector.origin;class o{modes;#p;constructor(e){this.#p=e,this.modes=[n.OutMode.out]}update(e,t,r,o){if(!this.modes.includes(o))return;const a=this.#p;switch(e.outType){case n.ParticleOutType.inside:{const{x:t,y:r}=e.velocity;i.setTo(n.originPoint),i.length=e.moveCenter.radius,i.angle=e.velocity.angle+Math.PI,i.addTo(e.moveCenter);const{dx:o,dy:s}=(0,n.getDistances)(e.position,i);if(t<=0&&o>=0||r<=0&&s>=0||t>=0&&o<=0||r>=0&&s<=0)return;e.position.x=Math.floor((0,n.randomInRangeValue)({min:0,max:a.canvas.size.width})),e.position.y=Math.floor((0,n.randomInRangeValue)({min:0,max:a.canvas.size.height}));const{dx:c,dy:l}=(0,n.getDistances)(e.position,e.moveCenter);e.direction=Math.atan2(-l,-c),e.velocity.angle=e.direction,e.justWarped=!0;break}default:if(e.isInsideCanvasForOutMode(o,t))return;switch(e.outType){case n.ParticleOutType.outside:{e.position.x=Math.floor((0,n.randomInRangeValue)({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.x,e.position.y=Math.floor((0,n.randomInRangeValue)({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),e.justWarped=!0;break}case n.ParticleOutType.normal:{const r=e.options.move.warp,i=a.canvas.size,o={bottom:i.height+e.getRadius()+e.offset.y,left
31:-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=o.left,e.initialPosition.x=e.position.x,r||(e.position.y=(0,n.getRandom)()*i.height,e.initialPosition.y=e.position.y),e.justWarped=!0):t===n.OutModeDirection.left&&c.right<-e.offset.x&&(e.position.x=o.right,e.initialPosition.x=e.position.x,r||(e.position.y=(0,n.getRandom)()*i.height,e.initialPosition.y=e.position.y),e.justWarped=!0),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=o.top,e.initialPosition.y=e.position.y,e.justWarped=!0):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=o.bottom,e.initialPosition.y=e.position.y,e.justWarped=!0);break}}}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadPaintUpdater:()=>i});var n=r(1002);async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("paint",t=>Promise.resolve(new n.PaintUpdater(e.pluginManager,t)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{PaintUpdater:()=>i});var n=r(914);class i{#p;#f;constructor(e,t){this.#p=t,this.#f=e}init(e){const t=this.#p,r=e.options,i=(0,n.itemFromSingleOrMultiple)(r.paint,e.id,r.reduceDuplicates),o=i?.color,a=o??void 0,s=i?.fill,c=i?.stroke;if(s){const r=n.AnimatableColor.create(void 0===a?void 0:n.AnimatableColor.create(void 0,a),s.color);e.fillEnabled=s.enable,e.fillOpacity=(0,n.getRangeValue)(s.opacity),e.fillAnimation=r.animation;const i=(0,n.rangeColorToHsl)(this.#f,r);i&&(e.fillColor=(0,n.getHslAnimationFromHsl)(i,e.fillAnimation,t.retina.reduceFactor))}else e.fillEnabled=!1,e.fillAnimation=void 0,e.fillColor=void 0,e.fillOpacity=1;if(c){const r=n.AnimatableColor.create(void 0===a?void 0:n.AnimatableColor.create(void 0,a),c.color);e.strokeWidth=(0,n.getRangeValue)(c.width)*t.retina.pixelRatio,e.strokeOpacity=(0,n.getRangeValue)(c.opacity??1),e.strokeAnimation=r.animation;const i=(0,n.rangeColorToHsl)(this.#f,r)??e.getFillColor();i&&(e.strokeColor=(0,n.getHslAnimationFromHsl)(i,e.strokeAnimation,t.retina.reduceFactor))}else e.strokeAnimation=void 0,e.strokeColor=void 0,e.strokeOpacity=1,e.strokeWidth=0}isEnabled(e){const{fillAnimation:t,fillColor:r,strokeAnimation:n,strokeColor:i}=e,o=!!t&&(void 0!==r?.h.value&&r.h.enable||void 0!==r?.s.value&&r.s.enable||void 0!==r?.l.value&&r.l.enable),a=!!n&&(void 0!==i?.h.value&&i.h.enable||void 0!==i?.s.value&&i.s.enable||void 0!==i?.l.value&&i.l.enable);return!e.destroyed&&!e.spawning&&(o||a)}update(e,t){this.isEnabled(e)&&((0,n.updateColor)(e.fillColor,t),(0,n.updateColor)(e.strokeColor,t))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadRgbColorPlugin:()=>i});var n=r(1004);async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addColorManager("rgb",new n.RgbColorManager)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RgbColorManager:()=>a});var n,i=r(914);!function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=5]="a"}(n||(n={}));const o=/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;class a{accepts(e){return e.startsWith("rgb")}handleColor(e){const t=e.value.rgb??e.value;if("r"in t&&"g"in t&&"b"in t)return t}handleRangeColor(e){const t=e.value.rgb??e.value;if("r"in t&&"g"in t&&"b"in t)return{r:(0,i.getRangeValue)(t.r),g:(0,i.getRangeValue)(t.g),b:(0,i.getRangeValue)(t.b)}}parseString(e){if(!this.accepts(e))return;const t=o.exec(e);return t?{a:t.length>4?(0,i.parseAlpha)(t[n.a]):1,b:parseInt(t[n.b]??"0",10),g:parseInt(t[n.g]??"0",10),r:parseInt(t[n.r]??"0",10)}:void 0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadSizeUpdater:()=>i});var n=r(1006);async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("size",e=>Promise.resolve(new n.SizeUpdater(e)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SizeUpdater:()=>o});var n=r(914),i=r(1007);class o{#p;constructor(e){this.#p=e}init(e){const t=this.#p,r=e.options.size;if(!r)return;const i=r.animation;i.enable&&(e.size.velocity=e.retina.sizeAnimationSpeed/n.percentDenominator*t.retina.reduceFactor,i.sync||(e.size.velocity
31*=(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))}loadOptions(e,...t){e.size??=new i.Size;for(const r of t)e.size.load(r?.size)}preInit(e){const t=this.#p.retina.pixelRatio,r=e.options.size;r&&(e.size=(0,n.initParticleNumericAnimationValue)(r,t),e.retina.sizeAnimationSpeed=(0,n.getRangeValue)(r.animation.speed)*t)}reset(e){e.size.time=0,e.size.loops=0}update(e,t){this.isEnabled(e)&&e.options.size&&(0,n.updateAnimation)(e,e.size,!0,e.options.size.animation.destroy,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Size:()=>o});var n=r(914),i=r(1008);class o extends n.RangedAnimationValueWithRandom{animation;constructor(){super(),this.animation=new i.SizeAnimation,this.value=3}load(e){if(super.load(e),(0,n.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:()=>i});var n=r(914);class i extends n.RangedAnimationOptions{destroy;constructor(){super(),this.destroy=n.DestroyType.none,this.speed=5}load(e){super.load(e),(0,n.isNull)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadConfettiPalette:()=>o});var n=r(1010);const i="confetti";async function o(e){await e.pluginManager.register(e=>{e.pluginManager.addPalette(i,n.options)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{options:()=>n});const n={name:"Confetti",background:"#1a1a2e",blendMode:"source-over",colors:{fill:{enable:!0,value:["#FF0044","#FF4400","#FFCC00","#00CC44","#00AAFF","#AA00FF","#FF00AA","#00FFCC","#FF6600","#FFFFFF"]}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterClickMode:()=>s.EmitterClickMode,EmitterShapeBase:()=>a.EmitterShapeBase,loadEmittersPluginSimple:()=>c});var n=r(1012),i=r(1020),o=r(1021),a=r(1022),s=r(1023);async function c(e){e.checkVersion("4.1.3"),await e.pluginManager.register(async e=>{const t=await(0,o.getEmittersInstancesManager)(e);await(0,i.addEmittersShapesManager)(e),e.pluginManager.addPlugin(new n.EmittersPlugin(t))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmittersPlugin:()=>o});var n=r(914),i=r(1013);class o{id="emitters";#_;constructor(e){this.#_=e}async getPlugin(e){const{EmittersPluginInstance:t}=await r.e("vendors").then(r.bind(r,2802));return new t(this.#_,e)}loadOptions(e,t,r){(this.needsPlugin(t)||this.needsPlugin(r))&&r?.emitters&&(t.emitters=(0,n.executeOnSingleOrMultiple)(r.emitters,e=>{const t=new i.Emitter;return t.load(e),t}))}needsPlugin(e){if(!e)return!1;const t=e.emitters;return(0,n.isArray)(t)&&!!t.length||void 0!==t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Emitter:()=>l});var n=r(914),i=r(1014),o=r(1015),a=r(1016),s=r(1018),c=r(1019);class l{autoPlay;direction;domId;fill;life;name;particles;position;rate;shape;size;spawn;spawnFillColor;spawnStrokeColor;startCount;constructor(){this.autoPlay=!0,this.fill=!0,this.life=new i.EmitterLife,this.rate=new o.EmitterRate,this.shape=new a.EmitterShape,this.spawn=new c.EmitterSpawn,this.startCount=0}load(e){(0,n.isNull)(e)||(void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.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),this.spawn.load(e.spawn),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.spawnFillColor&&(this.spawnFillColor??=new n.AnimatableColor,this.spawnFillColor.load(e.spawnFillColor)),void 0!==e.spawnStrokeColor&&(this.spawnStrokeColor??=new n.AnimatableColor,this.spawnStrokeColor.load(e.spawnStrokeColor)),void 0!==e.startCount&&(this.startCount=e.startCount))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterLife:()=>i});var n=r(914);class i{count;delay;duration;wait;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(914);class i{delay;quantity;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(914),i=r(1017);class o{options;replace;type;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??{}
31)),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(914);class i{color;opacity;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(914);class i{height;mode;width;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";r.r(t),r.d(t,{EmitterSpawn:()=>i});var n=r(914);class i{fill;stroke;load(e){(0,n.isNull)(e)||(e.fill&&(this.fill??=new n.Fill,this.fill.load(e.fill)),e.stroke&&(this.stroke??=new n.Stroke,this.stroke.load(e.stroke)))}}},(e,t,r)=>{"use strict";async function n(e){const{ShapeManager:t}=await r.e("vendors").then(r.bind(r,2803)),n=e.pluginManager;n.emitterShapeManager??=new t,n.addEmitterShapeGenerator??=(e,t)=>{n.emitterShapeManager?.addShapeGenerator(e,t)}}r.r(t),r.d(t,{addEmittersShapesManager:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEmittersInstancesManager:()=>i});const n=new WeakMap;function i(e){const t=e.pluginManager;let i=n.get(t);return i||(i=r.e("vendors").then(r.bind(r,2804)).then(({EmittersInstancesManager:e})=>new e(t)).catch(e=>{throw n.delete(t),e}),n.set(t,i)),i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterShapeBase:()=>n});class n{fill;options;position;size;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";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,{loadLifeUpdater:()=>i});var n=r(1025);async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("life",e=>Promise.resolve(new n.LifeUpdater(e)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LifeUpdater:()=>a});var n=r(914),i=r(1026),o=r(1029);class a{#p;constructor(e){this.#p=e}init(e){const t=this.#p,r=e.options.life;if(!r)return;const i=r.delay.sync?1:(0,n.getRandom)(),o=r.duration.sync?1:(0,n.getRandom)();e.life={delay:t.retina.reduceFactor?(0,n.getRangeValue)(r.delay.value)*i/t.retina.reduceFactor*n.millisecondsToSeconds:0,delayTime:0,duration:t.retina.reduceFactor?(0,n.getRangeValue)(r.duration.value)*o/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.spawning=e.life.delay>0}isEnabled(e){return!e.destroyed}loadOptions(e,...t){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.#p.canvas.size)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Life:()=>a});var n=r(914),i=r(1027),o=r(1028);class a{count;delay;duration;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(914);class i extends n.ValueWithRandom{sync;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(914);class i extends n.ValueWithRandom{sync;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(914);const i=0,o=-1,a=0,s=0;function c(e,t,r){if(!e.life)return;const c=e.life;let l=!1;if(e.spawning){if(c.delayTime+=t.value,!(c.delayTime>=e.life.delay))return;l=!0,e.spawning=!1,c.delayTime=i,c.time=i}if(c.duration===o)return;if(l?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 u=(0,n.setRangeValue)(s,r.width),d=(0,n.setRangeValue)(s,r.width);e.position.x=(0,n.randomInRangeValue)(u),e.position.y=(0,n.randomInRangeValue)(d),e.spawning=!0,c.delayTime=i,c.time=i,e.reset();const p=e.options.life;p&&(c.delay=(0,n.getRangeValue)(p.delay.value)*n.millisecondsToSeconds,c.duration=(0,n.getRangeValue)(p.duration.value)*n.millisecondsToSeconds)}},(e,t,r)=>{"use strict";
31r.r(t),r.d(t,{loadMotionPlugin:()=>i});var n=r(1031);async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addPlugin(new n.MotionPlugin)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MotionPlugin:()=>i});var n=r(1032);class i{id="motion";async getPlugin(e){const{MotionPluginInstance:t}=await r.e("vendors").then(r.bind(r,2805));return new t(e)}loadOptions(e,t,r){if(!this.needsPlugin())return;let i=t.motion;i?.load||(t.motion=i=new n.Motion),i.load(r?.motion)}needsPlugin(){return!0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Motion:()=>o});var n=r(914),i=r(1033);class o{disable;reduce;constructor(){this.disable=!0,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(914);class i{factor;value;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,{loadRollUpdater:()=>i});var n=r(1035);async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("roll",()=>Promise.resolve(new n.RollUpdater(e.pluginManager)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RollUpdater:()=>o});var n=r(1036),i=r(1038);class o{#f;constructor(e){this.#f=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.#f,e)}isEnabled(e){const t=e.options.roll;return!e.destroyed&&!e.spawning&&!!t?.enable}loadOptions(e,...t){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:()=>a,updateRoll:()=>s});var n=r(914),i=r(1037);const o=360;function a(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)()*n.doublePI,speed:(0,n.getRangeValue)(r.speed)/o},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 s(e,t){const r=e.options.roll,i=e.roll;if(!i||!r?.enable)return;const o=i.speed*t.factor,a=n.doublePI;i.angle+=o,i.angle>a&&(i.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(914),i=r(1039),o=r(1037);class a{backColor;darken;enable;enlighten;mode;speed;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(914);class i{enable;value;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(1041);async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("rotate",e=>Promise.resolve(new n.RotateUpdater(e)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RotateUpdater:()=>o});var n=r(914),i=r(1042);class o{#p;constructor(e){this.#p=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:n.doublePI},e.pathRotation=t.path;let r=t.direction;if(r===n.RotateDirection.random){r=Math.floor((0,n.getRandom)()*n.double)>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=n.identity-(0,n.getRangeValue)(i.decay),e.rotate.velocity=(0,n.getRangeValue)(i.speed)/360*this.#p.retina.reduceFactor,i.sync||(e.rotate.velocity
31*=(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??=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(914),i=r(1043);class o extends n.ValueWithRandom{animation;direction;path;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(914);class i{decay;enable;speed;sync;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(1045);async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addShape(["edge","square"],()=>Promise.resolve(new n.SquareDrawer))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SquareDrawer:()=>i});var n=r(1046);class i{draw(e){(0,n.drawSquare)(e)}getSidesCount(){return 4}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{drawSquare:()=>i});var n=r(914);function i(e){const{context:t,radius:r}=e,i=r*Math.SQRT1_2,o=i*n.double;t.rect(-i,-i,o,o)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadTiltUpdater:()=>i});var n=r(1048);async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("tilt",e=>Promise.resolve(new n.TiltUpdater(e)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TiltUpdater:()=>a});var n=r(914),i=r(1049),o=r(1050);class a{#p;constructor(e){this.#p=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?n.identity:-n.identity,cosDirection:(0,n.getRandom)()>=n.half?n.identity:-n.identity,min:0,max:n.doublePI};let r=t.direction;if(r===o.TiltDirection.random){r=Math.floor((0,n.getRandom)()*n.double)>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=n.identity-(0,n.getRangeValue)(i.decay),e.tilt.velocity=(0,n.getRangeValue)(i.speed)/360*this.#p.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??=new i.Tilt;for(const r of t)e.tilt.load(r?.tilt)}update(e,t){this.isEnabled(e)&&e.tilt&&(0,n.updateAnimation)(e,e.tilt,!1,n.DestroyType.none,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Tilt:()=>a});var n=r(914),i=r(1050),o=r(1051);class a extends n.ValueWithRandom{animation;direction;enable;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(914);class i{decay;enable;speed;sync;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(1053);async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("wobble",e=>Promise.resolve(new n.WobbleUpdater(e)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WobbleUpdater:()=>a});
31var n=r(914),i=r(1054),o=r(1056);class a{#p;constructor(e){this.#p=e}init(e){const t=e.options.wobble;e.wobble=t?.enable?{angle:(0,n.getRandom)()*n.doublePI,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.#p.retina.pixelRatio}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.options.wobble?.enable}loadOptions(e,...t){e.wobble??=new i.Wobble;for(const r of t)e.wobble.load(r?.wobble)}update(e,t){this.isEnabled(e)&&(0,o.updateWobble)(this.#p,e,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Wobble:()=>o});var n=r(914),i=r(1055);class o{distance;enable;speed;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;"min"in t?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(914);class i{angle;move;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:()=>a});var n=r(914);const i=0,o=60;function a(e,t,r){const{wobble:a}=t.options,{wobble:s}=t;if(!a?.enable||!s)return;const c=e.retina.reduceFactor,l=s.angleSpeed*r.factor*c,u=s.moveSpeed*r.factor*c*(t.retina.wobbleDistance??i)/(n.millisecondsToSeconds/o),d=n.doublePI,{position:p}=t;s.angle+=l,s.angle>d&&(s.angle-=d),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={palette:"confetti",background:{color:{value:""}},fullScreen:{enable:!0,zIndex:100},particles:{number:{value:0},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:10/3},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:"destroy",top:"none"}},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}}
31,roll:{darken:{enable:!0,value:25},enable:!0,speed:{min:15,max:25}},wobble:{distance:30,enable:!0,speed:{min:-15,max:15}}},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(1059)),i=m(r(1095)),o=m(r(1097)),a=m(r(1104)),s=m(r(1108)),c=m(r(1109)),l=m(r(1113)),u=m(r(1146)),d=m(r(396)),p=m(r(787)),f=m(r(1154)),h=m(r(1155));function m(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(){return(0,s.default)(this,t),(0,l.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,u.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,l=void 0===c?"svg":c,u=t.rendererSettings,d=t.assetsPath;this.options={container:this.el,path:s,renderer:l,loop:!1!==n,autoplay:!1!==i,animationData:a,rendererSettings:u,assetsPath:d},this.options=(0,o.default)({},this.options,t),this.anim=f.default.loadAnimation(this.options),this.setSpeed(),this.setDirection(),this.animApi=h.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=f.default.loadAnimation(this.options),this.animApi=h.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,l=function(e){return"number"==typeof e?e+"px":e||"100%"},u=(0,o.default)({width:l(r),height:l(n),overflow:"hidden",margin:"0 auto",outline:"none"},this.props.style);return d.default.createElement("div",{ref:function(t){e.el=t},style:u,title:s,role:i,"aria-label":a,tabIndex:c})}}]),t}(d.default.Component);t.default=g,g.propTypes={eventListeners:p.default.arrayOf(p.default.object),options:p.default.object.isRequired,height:p.default.oneOfType([p.default.string,p.default.number]),width:p.default.oneOfType([p.default.string,p.default.number]),isStopped:p.default.bool,isPaused:p.default.bool,speed:p.default.number,segments:p.default.arrayOf(p.default.number),forceSegments:p.default.bool,direction:p.default.number,ariaRole:p.default.string,ariaLabel:p.default.string,title:p.default.string,style:p.default.string,tabIndex:p.default.oneOfType([p.default.number,p.default.string])},g.defaultProps={eventListeners:[],isStopped:!1,isPaused:!1,speed:1,ariaRole:"button",ariaLabel:"animation",title:"",tabIndex:0}},(e,t,r)=>{e.exports={default:r(1060),__esModule:!0}},(e,t,r)=>{r(1061),e.exports=r(1076).Object.keys},(e,t,r)=>{var n=r(1062),i=r(1064);r(1081)("keys",function(){return function(e){return i(n(e))}})},(e,t,r)=>{var n=r(1063);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(1065),i=r(1080);e.exports=Object.keys||function(e){return n(e,i)}},(e,t,r)=>{var n=r(1066),i=r(1067),o=r(1070)(!1),a=r(1074)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),c=0,l=[];for(r in s)r!=a&&n(s,r)&&l.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~o(l,r)||l.push(r));return l}},e=>{var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},(e,t,r)=>{var n=r(1068),i=r(1063);e.exports=function(e){return n(i(e))}},(e,t,r)=>{var n=r(1069);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(1067),i=r(1071),o=r(1073);e.exports=function(e){return function(t,r,a){var s,c=n(t),l=i(c.length),u=o(a,l);if(e&&r!=r){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}}},(e,t,r)=>{var n=r(1072),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(1072),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(1075)("keys"),i=r(1079);e.exports=function(e){return n[e]||(n[e]=i(e))}},(e,t,r)=>{var n=r(1076),i=r(1077),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(1078)?"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,toLocaleStr
31ing,toString,valueOf".split(",")},(e,t,r)=>{var n=r(1082),i=r(1076),o=r(1091);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(1077),i=r(1076),o=r(1083),a=r(1085),s=r(1066),c="prototype",l=function(e,t,r){var u,d,p,f=e&l.F,h=e&l.G,m=e&l.S,g=e&l.P,y=e&l.B,v=e&l.W,b=h?i:i[t]||(i[t]={}),_=b[c],S=h?n:m?n[t]:(n[t]||{})[c];for(u in h&&(r=t),r)(d=!f&&S&&void 0!==S[u])&&s(b,u)||(p=d?S[u]:r[u],b[u]=h&&"function"!=typeof S[u]?r[u]:y&&d?o(p,n):v&&S[u]==p?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}(p):g&&"function"==typeof p?o(Function.call,p):p,g&&((b.virtual||(b.virtual={}))[u]=p,e&l.R&&_&&!_[u]&&a(_,u,p)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},(e,t,r)=>{var n=r(1084);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(1086),i=r(1094);e.exports=r(1090)?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(1087),i=r(1089),o=r(1093),a=Object.defineProperty;t.f=r(1090)?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(1088);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(1090)&&!r(1091)(function(){return 7!=Object.defineProperty(r(1092)("div"),"a",{get:function(){return 7}}).a})},(e,t,r)=>{e.exports=!r(1091)(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(1088),i=r(1077).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},(e,t,r)=>{var n=r(1088);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(1096),__esModule:!0}},(e,t,r)=>{var n=r(1076),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(1098),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(1099),__esModule:!0}},(e,t,r)=>{r(1100),e.exports=r(1076).Object.assign},(e,t,r)=>{var n=r(1082);n(n.S+n.F,"Object",{assign:r(1101)})},(e,t,r)=>{"use strict";var n=r(1090),i=r(1064),o=r(1102),a=r(1103),s=r(1062),c=r(1068),l=Object.assign;e.exports=!l||r(1091)(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=l({},e)[r]||Object.keys(l({},t)).join("")!=n})?function(e,t){for(var r=s(e),l=arguments.length,u=1,d=o.f,p=a.f;l>u;)for(var f,h=c(arguments[u++]),m=d?i(h).concat(d(h)):i(h),g=m.length,y=0;g>y;)f=m[y++],n&&!p.call(h,f)||(r[f]=h[f]);return r}:l},(e,t)=>{t.f=Object.getOwnPropertySymbols},(e,t)=>{t.f={}.propertyIsEnumerable},(e,t,r)=>{e.exports={default:r(1105),__esModule:!0}},(e,t,r)=>{r(1106),e.exports=r(1076).Object.getPrototypeOf},(e,t,r)=>{var n=r(1062),i=r(1107);r(1081)("getPrototypeOf",function(){return function(e){return i(n(e))}})},(e,t,r)=>
vendor: 4,542 bytes, line 31
31{var n=r(1066),i=r(1062),o=r(1074)("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(1110),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(1111),__esModule:!0}},(e,t,r)=>{r(1112);var n=r(1076).Object;e.exports=function(e,t,r){return n.defineProperty(e,t,r)}},(e,t,r)=>{var n=r(1082);n(n.S+n.F*!r(1090),"Object",{defineProperty:r(1086).f})},(e,t,r)=>{"use strict";t.__esModule=!0;var n,i=r(1114),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(1115)),i=a(r(1133)),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(1116),__esModule:!0}},(e,t,r)=>{r(1117),r(1128),e.exports=r(1132).f("iterator")},(e,t,r)=>{"use strict";var n=r(1118)(!0);r(1119)(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(1072),i=r(1063);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),c=n(r),l=s.length;return c<0||c>=l?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===l||(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(1078),i=r(1082),o=r(1120),a=r(1085),s=r(1121),c=r(1122),l=r(1126),u=r(1107),d=r(1127)("iterator"),p=!([].keys&&"next"in[].keys()),f="keys",h="values",m=function(){return this};e.exports=function(e,t,r,g,y,v,b){c(r,t,g);var _,S,E,w=function(e){if(!p&&e in A)return A[e];switch(e){case f:case h:return function(){return new r(this,e)}}return function(){return new r(this,e)}},T=t+" Iterator",x=y==h,O=!1,A=e.prototype,R=A[d]||A["@@iterator"]||y&&A[y],P=R||w(y),I=y?x?w("entries"):P:void 0,C="Array"==t&&A.entries||R;if(C&&(E=u(C.call(new e)))!==Object.prototype&&E.next&&(l(E,T,!0),n||"function"==typeof E[d]||a(E,d,m)),x&&R&&R.name!==h&&(O=!0,P=function(){return R.call(this)}),n&&!b||!p&&!O&&A[d]||a(A,d,P),s[t]=P,s[T]=m,y)if(_={values:x?P:w(h),keys:v?P:w(f),entries:I},b)for(S in _)S in A||o(A,S,_[S]);else i(i.P+i.F*(p||O),t,_);return _}},(e,t,r)=>{e.exports=r(1085)},e=>{e.exports={}},(e,t,r)=>{"use strict";var n=r(1123),i=r(1094),o=r(1126),a={};r(1085)(a,r(1127)("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(1087),i=r(1124),o=r(1080),a=r(1074)("IE_PROTO"),s=function(){},c="prototype",l=function(){var e,t=r(1092)("iframe"),n=o.length;for(t.style.display="none",r(1125).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;n--;)delete l[c][o[n]];return l()};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=l(),void 0===t?r:i(r,t)}},(e,t,r)=>{var n=r(1086),i=r(1087),o=r(1064);e.exports=r(1090)?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(1077).document;e.exports=n&&n.documentElement},(e,t,r)=>{var n=r(1086).f,i=r(1066),o=r(1127)("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(1075)("wks"),i=r(1079),o=r(1077).Symbol,a="function"==typeof o;
vendor: 4,965 bytes, line 31
31(e.exports=function(e){return n[e]||(n[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=n},(e,t,r)=>{r(1129);for(var n=r(1077),i=r(1085),o=r(1121),a=r(1127)("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 l=s[c],u=n[l],d=u&&u.prototype;d&&!d[a]&&i(d,a,l),o[l]=o.Array}},(e,t,r)=>{"use strict";var n=r(1130),i=r(1131),o=r(1121),a=r(1067);e.exports=r(1119)(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(1127)},(e,t,r)=>{e.exports={default:r(1134),__esModule:!0}},(e,t,r)=>{r(1135),r(1143),r(1144),r(1145),e.exports=r(1076).Symbol},(e,t,r)=>{"use strict";var n=r(1077),i=r(1066),o=r(1090),a=r(1082),s=r(1120),c=r(1136).KEY,l=r(1091),u=r(1075),d=r(1126),p=r(1079),f=r(1127),h=r(1132),m=r(1137),g=r(1138),y=r(1139),v=r(1087),b=r(1088),_=r(1062),S=r(1067),E=r(1093),w=r(1094),T=r(1123),x=r(1140),O=r(1142),A=r(1102),R=r(1086),P=r(1064),I=O.f,C=R.f,k=x.f,M=n.Symbol,D=n.JSON,N=D&&D.stringify,L="prototype",F=f("_hidden"),B=f("toPrimitive"),j={}.propertyIsEnumerable,U=u("symbol-registry"),H=u("symbols"),z=u("op-symbols"),V=Object[L],G="function"==typeof M&&!!A.f,$=n.QObject,q=!$||!$[L]||!$[L].findChild,W=o&&l(function(){return 7!=T(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=I(V,t);n&&delete V[t],C(e,t,r),n&&e!==V&&C(V,t,n)}:C,K=function(e){var t=H[e]=T(M[L]);return t._k=e,t},Y=G&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},J=function(e,t,r){return e===V&&J(z,t,r),v(e),t=E(t,!0),v(r),i(H,t)?(r.enumerable?(i(e,F)&&e[F][t]&&(e[F][t]=!1),r=T(r,{enumerable:w(0,!1)})):(i(e,F)||C(e,F,w(1,{})),e[F][t]=!0),W(e,t,r)):C(e,t,r)},Q=function(e,t){v(e);for(var r,n=g(t=S(t)),i=0,o=n.length;o>i;)J(e,r=n[i++],t[r]);return e},X=function(e){var t=j.call(this,e=E(e,!0));return!(this===V&&i(H,e)&&!i(z,e))&&(!(t||!i(this,e)||!i(H,e)||i(this,F)&&this[F][e])||t)},Z=function(e,t){if(e=S(e),t=E(t,!0),e!==V||!i(H,t)||i(z,t)){var r=I(e,t);return!r||!i(H,t)||i(e,F)&&e[F][t]||(r.enumerable=!0),r}},ee=function(e){for(var t,r=k(S(e)),n=[],o=0;r.length>o;)i(H,t=r[o++])||t==F||t==c||n.push(t);return n},te=function(e){for(var t,r=e===V,n=k(r?z:S(e)),o=[],a=0;n.length>a;)!i(H,t=n[a++])||r&&!i(V,t)||o.push(H[t]);return o};G||(s((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(r){this===V&&t.call(z,r),i(this,F)&&i(this[F],e)&&(this[F][e]=!1),W(this,e,w(1,r))};return o&&q&&W(V,e,{configurable:!0,set:t}),K(e)})[L],"toString",function(){return this._k}),O.f=Z,R.f=J,r(1141).f=x.f=ee,r(1103).f=X,A.f=te,o&&!r(1078)&&s(V,"propertyIsEnumerable",X,!0),h.f=function(e){return K(f(e))}),a(a.G+a.W+a.F*!G,{Symbol:M});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;re.length>ne;)f(re[ne++]);for(var ie=P(f.store),oe=0;ie.length>oe;)m(ie[oe++]);a(a.S+a.F*!G,"Symbol",{for:function(e){return i(U,e+="")?U[e]:U[e]=M(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(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!G,"Object",{create:function(e,t){return void 0===t?T(e):Q(T(e),t)},defineProperty:J,defineProperties:Q,getOwnPropertyDescriptor:Z,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=l(function(){A.f(1)});a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return A.f(_(e))}}),D&&a(a.S+a.F*(!G||l(function(){var e=M();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 y(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!Y(t))return t}),n[1]=t,N.apply(D,n)}}),M[L][B]||r(1085)(M[L],B,M[L].valueOf),d(M,"Symbol"),d(Math,"Math",!0),d(n.JSON,"JSON",!0)},(e,t,r)=>{var n=r(1079)("meta"),i=r(1088),o=r(1066),a=r(1086).f,s=0,c=Object.isExtensible||function(){return!0},l=!r(1091)(function(){return c(Object.preventExtensions({}))}),u=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;
vendor: 9,691 bytes, line 31
31if(!o(e,n)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[n].w},onFreeze:function(e){return l&&d.NEED&&c(e)&&!o(e,n)&&u(e),e}}},(e,t,r)=>{var n=r(1077),i=r(1076),o=r(1078),a=r(1132),s=r(1086).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(1064),i=r(1102),o=r(1103);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var a,s=r(e),c=o.f,l=0;s.length>l;)c.call(e,a=s[l++])&&t.push(a);return t}},(e,t,r)=>{var n=r(1069);e.exports=Array.isArray||function(e){return"Array"==n(e)}},(e,t,r)=>{var n=r(1067),i=r(1141).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(1065),i=r(1080).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},(e,t,r)=>{var n=r(1103),i=r(1094),o=r(1067),a=r(1093),s=r(1066),c=r(1089),l=Object.getOwnPropertyDescriptor;t.f=r(1090)?l:function(e,t){if(e=o(e),t=a(t,!0),c)try{return l(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},()=>{},(e,t,r)=>{r(1137)("asyncIterator")},(e,t,r)=>{r(1137)("observable")},(e,t,r)=>{"use strict";t.__esModule=!0;var n=a(r(1147)),i=a(r(1151)),o=a(r(1114));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(1148),__esModule:!0}},(e,t,r)=>{r(1149),e.exports=r(1076).Object.setPrototypeOf},(e,t,r)=>{var n=r(1082);n(n.S,"Object",{setPrototypeOf:r(1150).set})},(e,t,r)=>{var n=r(1088),i=r(1087),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(1083)(Function.call,r(1142).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(1152),__esModule:!0}},(e,t,r)=>{r(1153);var n=r(1076).Object;e.exports=function(e,t){return n.create(e,t)}},(e,t,r)=>{var n=r(1082);n(n.S,"Object",{create:r(1123)})},function(module,exports,__webpack_require__){var factory;"undefined"!=typeof document&&"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,l,u;switch(c=r*(1-t),l=r*(1-(s=6*e-(a=Math.floor(6*e)))*t),u=r*(1-(1-s)*t),a%6){case 0:n=r,i=u,o=c;break;case 1:n=l,i=r,o=c;break;case 2:n=c,i=r,o=u;break;case 3:n=c,i=l,o=r;break;case 4:n=u,i=c,o=r;break;case 5:n=r,i=c,o=l}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;
31 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,l,u,p,f=i.length;for(s=0;s<f;s+=1)if("ks"in(a=i[s])&&!a.completed){if(a.completed=!0,a.hasMask){var h=a.masksProperties;for(l=h.length,c=0;c<l;c+=1)if(h[c].pt.k.i)n(h[c].pt.k);else for(p=h[c].pt.k.length,u=0;u<p;u+=1)h[c].pt.k[u].s&&n(h[c].pt.k[u].s[0]),h[c].pt.k[u].e&&n(h[c].pt.k[u].e[0])}0===a.ty?(a.layers=t(a.refId,o),e(a.layers,o)):4===a.ty?r(a.shapes):5===a.ty&&d(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=e.t.d;e.t.d={k:[{s:t,t:0}]}}function r(e){var r,n=e.length;for(r=0;r<n;r+=1)5===e[r].ty&&t(e[r])}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)}}}(),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=e.t.p;"number"==typeof t.a&&(t.a={a:0,k:t.a}),"number"==typeof t.p&&(t.p={a:0,k:t.p}),"number"==typeof t.r&&(t.r={a:0,k:t.r})}function r(e){var r,n=e.length;for(r=0;r<n;r+=1)5===e[r].ty&&t(e[r])}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,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)}}}(),u=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 l=r.masksProperties;for(o=l.length,i=0;i<o;i+=1)if(l[i].pt.k.i)l[i].pt.k.c=l[i].cl;else for(s=l[i].pt.k.length,a=0;a<s;a+=1)l[i].pt.k[a].s&&(l[i].pt.k[a].s[0].c=l[i].cl),l[i].pt.k[a].e&&(l[i].pt.k[a].e[0].c=l[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 d(e){0===e.t.a.length&&e.t.p}var p={completeData:function(r){r.__complete||(l(r),a(r),s(r),c(r),u(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 p.checkColors=l,p.checkChars=s,p.checkPathProperties=c,p.checkShapes=u,p.completeLayers=e,p}()),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})}
vendor: 22,576 bytes, line 31
31,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||u()),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 d(o,e),o.setData(e,r),o}function l(){i+=1,h()}function u(){i-=1}function d(e,r){e.addEventListener("destroy",s),e.addEventListener("_active",l),e.addEventListener("_idle",u),t.push({elem:r,animation:e}),n+=1}function p(e){var s,c=e-r;for(s=0;s<n;s+=1)t[s].animation.advanceTime(c);r=e,i&&!a?window.requestAnimationFrame(p):o=!0}function f(e){r=e,window.requestAnimationFrame(p)}function h(){!a&&i&&o&&(window.requestAnimationFrame(f),o=!1)}return e.registerAnimation=c,e.loadAnimation=function(e){var t=new AnimationItem;return d(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;
vendor: 1,928 bytes, line 31
31for(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,h()},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 u([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 l(e,t,r){return 3*o(t,r)*e*e+2*a(t,r)*e+s(t)}function u(e){this._p=e,this._mSampleValues=i?new Float32Array(r):new Array(r),this._precomputed=!1,this.get=this.get.bind(this)}return u.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,u=r-1;s!==u&&o[s]<=e;++s)a+=n;var d=a+(e-o[--s])/(o[s+1]-o[s])*n,p=l(d,t,i);return p>=.001?function(e,t,r,n){for(var i=0;i<4;++i){var o=l(t,r,n);if(0===o)return t;t-=(c(t,r,n)-e)/o}return t}(e,d,t,i):0===p?d:function(e,t,r,n,i){var o,a,s=0;
vendor: 2,692 bytes, line 31
31do{(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,l,u=getDefaultCurveSegments(),d=0,p=[],f=[],h=bezierLengthPool.newElement();for(a=r.length,i=0;i<u;i+=1){for(c=i/(u-1),l=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],p[o]=s,null!==f[o]&&(l+=bmPow(p[o]-f[o],2)),f[o]=p[o];l&&(d+=l=bmSqrt(l)),h.percents[i]=c,h.lengths[i]=d}return h.addedLength=d,h};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 l,u,d,p,f,h,m,g=getDefaultCurveSegments(),y=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])&&(g=2);var b=new n(g);for(d=a.length,l=0;l<g;l+=1){for(m=createSizedArray(d),f=l/(g-1),h=0,u=0;u<d;u+=1)p=bmPow(1-f,3)*e[u]+3*bmPow(1-f,2)*f*(e[u]+a[u])+3*(1-f)*bmPow(f,2)*(r[u]+s[u])+bmPow(f,3)*r[u],m[u]=p,null!==v&&(h+=bmPow(m[u]-v[u],2));y+=h=bmSqrt(h),b.points[l]=new i(h,m),v=m}b.segmentLength=y,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,l=!0;l;)if(n[o]<=a&&n[o+1]>a?(s=(a-n[o])/(n[o+1]-n[o]),l=!1):o+=c,o<0||o>=i-1){if(o===i-1)return r[o];l=!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,l=n.lengths,u=0;for(t=0;t<c-1;t+=1)l[t]=r(o[t],o[t+1],a[t],s[t+1]),u+=l[t].addedLength;return i&&c&&(l[t]=r(o[t],o[0],a[t],s[0]),u+=l[t].addedLength),n.totalLength=u,n},getNewSegment:function(t,r,n,i,o,a,l){o<0?o=0:o>1&&(o=1);var u,d=s(o,l),p=s(a=a>
vendor: 3,557 bytes, line 31
311?1:a,l),f=t.length,h=1-d,m=1-p,g=h*h*h,y=d*h*h*3,v=d*d*h*3,b=d*d*d,_=h*h*m,S=d*h*m+h*d*m+h*h*p,E=d*d*m+h*d*p+d*h*p,w=d*d*p,T=h*m*m,x=d*m*m+h*p*m+h*m*p,O=d*p*m+h*p*p+d*m*p,A=d*p*p,R=m*m*m,P=p*m*m+m*p*m+m*m*p,I=p*p*m+m*p*p+p*m*p,C=p*p*p;for(u=0;u<f;u+=1)c[4*u]=e.round(1e3*(g*t[u]+y*n[u]+v*i[u]+b*r[u]))/1e3,c[4*u+1]=e.round(1e3*(_*t[u]+S*n[u]+E*i[u]+w*r[u]))/1e3,c[4*u+2]=e.round(1e3*(T*t[u]+x*n[u]+O*i[u]+A*r[u]))/1e3,c[4*u+3]=e.round(1e3*(R*t[u]+P*n[u]+I*i[u]+C*r[u]))/1e3;return c},getPointInSegment:function(t,r,n,i,o,a){var c=s(o,a),l=1-c;return[e.round(1e3*(l*l*l*t[0]+(c*l*l+l*c*l+l*l*c)*n[0]+(c*c*l+l*c*c+c*l*c)*i[0]+c*c*c*r[0]))/1e3,e.round(1e3*(l*l*l*t[1]+(c*l*l+l*c*l+l*l*c)*n[1]+(c*c*l+l*c*c+c*l*c)*i[1]+c*c*c*r[1]))/1e3]},buildBezierData:a,pointOnLine2D:t,pointOnLine3D:function(r,n,i,o,a,s,c,l,u){if(0===i&&0===s&&0===u)return t(r,n,o,a,c,l);var d,p=e.sqrt(e.pow(o-r,2)+e.pow(a-n,2)+e.pow(s-i,2)),f=e.sqrt(e.pow(c-r,2)+e.pow(l-n,2)+e.pow(u-i,2)),h=e.sqrt(e.pow(c-o,2)+e.pow(l-a,2)+e.pow(u-s,2));return(d=p>f?p>h?p-f-h:h-f-p:h>f?h-f-p:f-p-h)>-1e-4&&d<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,l,u,d,p,f=t.lastIndex,h=f,m=this.keyframes.length-1,g=!0;g;){if(i=this.keyframes[h],o=this.keyframes[h+1],h===m-1&&e>=o.t-n){i.h&&(i=o),f=0;break}if(o.t-n>e){f=h;break}h<m-1?h+=1:(f=0,g=!1)}a=this.keyframesMetadata[h]||{};var y,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 _=a.bezierData;if(e>=v||e<b){var S=e>=v?_.points.length-1:0;for(c=_.points[S].point.length,s=0;s<c;s+=1)r[s]=_.points[S].point[s]}else{a.__fnct?p=a.__fnct:(p=BezierFactory.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,a.__fnct=p),l=p((e-b)/(v-b));var E,w=_.segmentLength*l,T=t.lastFrame<e&&t._lastKeyframeIndex===h?t._lastAddedLength:0;for(d=t.lastFrame<e&&t._lastKeyframeIndex===h?t._lastPoint:0,g=!0,u=_.points.length;g;){if(T+=_.points[d].partialLength,0===w||0===l||d===_.points.length-1){for(c=_.points[d].point.length,s=0;s<c;s+=1)r[s]=_.points[d].point[s];break}if(w>=T&&w<T+_.points[d+1].partialLength){for(E=(w-T)/_.points[d+1].partialLength,c=_.points[d].point.length,s=0;s<c;s+=1)r[s]=_.points[d].point[s]+(_.points[d+1].point[s]-_.points[d].point[s])*E;break}d<u-1?d+=1:g=!1}t._lastPoint=d,t._lastAddedLength=T-_.points[d].partialLength,t._lastKeyframeIndex=h}}else{var x,O,A,R,P;if(m=i.s.length,y=o.s||i.e,this.sh&&1!==i.h)e>=v?(r[0]=y[0],r[1]=y[1],r[2]=y[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(y),(e-b)/(v-b)));else for(h=0;h<m;h+=1)1!==i.h&&(e>=v?l=1:e<b?l=0:(i.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[h]?p=a.__fnct[h]:(x=void 0===i.o.x[h]?i.o.x[0]:i.o.x[h],O=void 0===i.o.y[h]?i.o.y[0]:i.o.y[h],A=void 0===i.i.x[h]?i.i.x[0]:i.i.x[h],R=void 0===i.i.y[h]?i.i.y[0]:i.i.y[h],p=BezierFactory.getBezierEasing(x,O,A,R).get,a.__fnct[h]=p)):a.__fnct?p=a.__fnct:(x=i.o.x,O=i.o.y,A=i.i.x,R=i.i.y,p=BezierFactory.getBezierEasing(x,O,A,R).get,i.keyframeMetadata=p),l=p((e-b)/(v-b)))),y=o.s||i.e,P=1===i.h?i.s[h]:i.s[h]+(y[h]-i.s[h])*l,"multidimensional"===this.propType?r[h]=P:r=P}return t.lastIndex=f,r}function slerp(e,t,r){var n,i,o,a,s,c=[],l=e[0],u=e[1],d=e[2],p=e[3],f=t[0],h=t[1],m=t[2],g=t[3];return(i=l*f+u*h+d*m+p*g)<0&&(i=-i,f=-f,h=-h,m=-m,g=-g),1-i>1e-6?(n=Math.acos(i),o=Math.sin(n),a=Math.sin((1-r)*n)/o,s=Math.sin(r*n)/
vendor: 13,723 bytes, line 31
31o):(a=1-r,s=r),c[0]=a*l+s*f,c[1]=a*u+s*h,c[2]=a*d+s*m,c[3]=a*p+s*g,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),l=Math.sin(n/2);return[s*c*a+i*o*l,s*o*a+i*c*l,i*c*a-s*o*l,i*o*a-s*c*l]}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,l=t.k.length;for(i=0;i<l-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 u=t.k[0].s.length;for(this.v=createTypedArray("float32",u),this.pv=createTypedArray("float32",u),i=0;i<u;i+=1)this.v[i]=initFrame,this.pv[i]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},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,l,u,d,p=r.lastIndex,f=this.keyframes;if(e<f[0].t-this.offsetTime)n=f[0].s[0],o=!0,p=0;else if(e>=f[f.length-1].t-this.offsetTime)n=f[f.length-1].s?f[f.length-1].s[0]:f[f.length-2].e[0],o=!0;else{for(var h,m,g,y=p,v=f.length-1,b=!0;b&&(h=f[y],!((m=f[y+1]).t-this.offsetTime>e));)y<v-1?y+=1:b=!1;if(g=this.keyframesMetadata[y]||{},p=y,!(o=1===h.h)){if(e>=m.t-this.offsetTime)u=1;else if(e<h.t-this.offsetTime)u=0;else{var _;g.__fnct?_=g.__fnct:(_=BezierFactory.getBezierEasing(h.o.x,h.o.y,h.i.x,h.i.y).get,g.__fnct=_),u=_((e-(h.t-this.offsetTime))/(m.t-this.offsetTime-(h.t-this.offsetTime)))}i=m.s?m.s[0]:h.e[0]}n=h.s[0]}for(c=t._length,l=n.i[0].length,r.lastIndex=p,a=0;a<c;a+=1)for(s=0;s<l;s+=1)d=o?n.i[a][s]:n.i[a][s]+(i.i[a][s]-n.i[a][s])*u,t.i[a][s]=d,d=o?n.o[a][s]:n.o[a][s]+(i.o[a][s]-n.o[a][s])*u,t.o[a][s]=d,d=o?n.v[a][s]:n.v[a][s]+(i.v[a][s]-n.v[a][s])*u,t.v[a][s]=d}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 l=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}(),u=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=Pro
vendor: 6,797 bytes, line 31
31pertyFactory.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,l=this.os.v,u=this.is.v,d=2*Math.PI*s/(2*i),p=2*Math.PI*c/(2*i),f=-Math.PI/2;f+=this.r.v;var h=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){r=a?l:u,n=a?d:p;var m=(t=a?s:c)*Math.cos(f),g=t*Math.sin(f),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*n*r*h,g-v*n*r*h,m+y*n*r*h,g+v*n*r*h,e,!0),a=!a,f+=o*h}},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),l=n*Math.sin(a),u=0===c&&0===l?0:l/Math.sqrt(c*c+l*l),d=0===c&&0===l?0:-c/Math.sqrt(c*c+l*l);c+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(c,l,c-u*o*i*s,l-d*o*i*s,c+u*o*i*s,l+d*o*i*s,e,!0),a+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),d=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}(),p={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 d(e,t):6===r?n=new l(e,t):7===r&&(n=new u(e,t)),n.k&&e.addDynamicProperty(n),n},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return c}};return p}(),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 l(e,t){return this._t(1,t,e,1,0,0)}function u(e,t){return this.shear(r(e),r(t))}function d(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 p(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 f(e,t,r,n,i,o,a,s,c,l,u,d,p,f,h,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]=l,this.props[10]=u,this.props[11]=d,this.props[12]=p,this.props[13]=f,this.props[14]=h,this.props[15]=m,this}function h(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,l,u,d,p,f,h,m){var g=this.props;if(1===e&&0===t&&0===r&&0===n&&0===i&&1===o&&0===a&&0===s&&0===c&&0===l&&1===u&&0===d)return g[12]=g[12]*e+g[15]*p,g[13]=g[13]*o+g[15]*f,g[14]=g[14]*u+g[15]*h,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],_=g[3],S=g[4],E=g[5],w=g[6],T=g[7],x=g[8],O=g[9],A=g[10],R=g[11],P=g[12],I=g[13],C=g[14],k=g[15];return g[0]=y*e+v*i+b*c+_*p,g[1]=y*t+v*o+b*l+_*f,g[2]=y*r+v*a+b*u+_*h,g[3]=y*n+v*s+b*d+_*m,g[4]=S*e+E*i+w*c+T*p,g[5]=S*t+E*o+w*l+T*f,g[6]=S*r+E*a+w*u+T*h,g[7]=S*n+E*s+w*d+T*m,g[8]=x*e+O*i+A*c+R*p,g[9]=x*t+O*o+A*l+R*f,g[10]=x*r+O*a+A*u+R*h,g[11]=x*n+O*s+A*d+R*m,g[12]=P*e+I*i+C*c+k*p,g[13]=P*t+I*o+C*l+k*f,g[14]=P*r+I*a+C*u+k*h,g[15]=P*n+I*s+C*d+k*m,this._identityCalculated=!1,this}function g(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 y(){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]||
vendor: 7,541 bytes, line 31
310!==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 _(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function S(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 T(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function x(){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 O(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function A(e){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n[t]=O(e[t]);return n}function R(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],l=this.props[13];n[0]=e[0]*i+e[1]*a+c,n[1]=e[0]*o+e[1]*s+l,n[2]=t[0]*i+t[1]*a+c,n[3]=t[0]*o+t[1]*s+l,n[4]=r[0]*i+r[1]*a+c,n[5]=r[0]*o+r[1]*s+l}return n}function P(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 I(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 C(){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 k(e){return e<1e-6&&e>0||e>-1e-6&&e<0?n(1e4*e)/1e4:e}function M(){var e=this.props;return"matrix("+k(e[0])+","+k(e[1])+","+k(e[4])+","+k(e[5])+","+k(e[12])+","+k(e[13])+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=a,this.rotateY=s,this.rotateZ=c,this.skew=u,this.skewFromAxis=d,this.shear=l,this.scale=p,this.setTransform=f,this.translate=h,this.transform=m,this.multiply=g,this.applyToPoint=S,this.applyToX=E,this.applyToY=w,this.applyToZ=T,this.applyToPointArray=P,this.applyToTriplePoints=R,this.applyToPointStringified=I,this.toCSS=C,this.to2dCSS=M,this.clone=b,this.cloneFromProps=_,this.equals=v,this.inversePoints=A,this.inversePoint=O,this.getInverseMatrix=x,this._t=this.transform,this.isIdentity=y,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.13.0";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=Pro
vendor: 4,861 bytes, line 31
31pertyFactory.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=[],l=o.length;for(a=0;a<l;a+=1){var u,d;(s=o[a]).e*i<n||s.s*i>n+r||(u=s.s*i<=n?0:(s.s*i-n)/r,d=s.e*i>=n+r?1:(s.e*i-n)/r,c.push([u,d]))}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,l,u,d,p=this.shapes.length,f=0;if(r===t)for(i=0;i<p;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<p;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var h,m,g=[];for(i=0;i<p;i+=1)if((h=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(c=(n=h.shape.paths)._length,d=0,!h.shape._mdf&&h.pathsData.length)d=h.totalShapeLength;else{for(l=this.releasePathsData(h.pathsData),s=0;s<c;s+=1)u=bez.getSegmentsLength(n.shapes[s]),l.push(u),d+=u.totalLength;h.totalShapeLength=d,h.pathsData=l}f+=d,h.shape._mdf=!0}else h.shape.paths=h.localShapeCollection;var y,v=t,b=r,_=0;for(i=p-1;i>=0;i-=1)if((h=this.shapes[i]).shape._mdf){for((m=h.localShapeCollection).releaseShapes(),2===this.m&&p>1?(y=this.calculateShapeEdges(t,r,h.totalShapeLength,_,f),_+=h.totalShapeLength):y=[[v,b]],c=y.length,s=0;s<c;s+=1){v=y[s][0],b=y[s][1],g.length=0,b<=1?g.push({s:h.totalShapeLength*v,e:h.totalShapeLength*b}):v>=1?g.push({s:h.totalShapeLength*(v-1),e:h.totalShapeLength*(b-1)}):(g.push({s:h.totalShapeLength*v,e:h.totalShapeLength}),g.push({s:0,e:h.totalShapeLength*(b-1)}));var S=this.addShapes(h,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(h.shape.paths.shapes[h.shape.paths._length-1].c){var E=S.pop();this.addPaths(S,m),S=this.addShapes(h,g[1],E)}else this.addPaths(S,m),S=this.addShapes(h,g[1]);this.addPaths(S,m)}}h.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,l,u,d=e.pathsData,p=e.shape.paths.shapes,f=e.shape.paths._length,h=0,m=[],g=!0;for(r?(s=r._length,u=r._length):(r=shapePool.newElement(),s=0,u=0),m.push(r),n=0;n<f;n+=1){for(c=d[n].lengths,r.c=p[n].c,o=p[n].c?c.length:c.length+1,i=1;i<o;i+=1)if(h+(a=c[i-1]).addedLength<t.s)h+=a.addedLength,r.c=!1;else{if(h>t.e){r.c=!1;break}t.s<=h&&t.e>=h+a.addedLength?(this.addSegment(p[n].v[i-1],p[n].o[i-1],p[n].i[i],p[n].v[i],r,s,g),g=!1):(l=bez.getNewSegment(p[n].v[i-1],p[n].v[i],p[n].o[i-1],p[n].i[i],(t.s-h)/a.addedLength,(t.e-h)/a.addedLength,c[i-1]),this.addSegmentFromArray(l,r,s,g),g=!1,r.c=!1),h+=a.addedLength,s+=1}if(p[n].c&&c.length){if(a=c[i-1],h<=t.e){var y=c[i-1].addedLength;t.s<=h&&t.e>=h+y?(this.addSegment(p[n].v[i-1],p[n].o[i-1],p[n].i[0],p[n].v[0],r,s,g),g=!1):(l=bez.getNewSegment(p[n].v[i-1],p[n].v[0],p[n].o[i-1],p[n].i[0],(t.s-h)/y,(t.e-h)/y,c[i-1]),this.addSegmentFromArray(l,r,s,g),g=!1,r.c=!1)}else r.c=!1;h+=a.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[u][0],r.v[u][1],"i",u),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),h>t.e)break;n<f-1&&(r=shapePool.newElement(),g=!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,l,u,d,p=shapePool.newElement();for(p.c=e.c,o=0;o<i;
vendor: 45,472 bytes, line 31
31o+=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,l=e.o[o][1]+(n[1]-e.o[o][1])*-r,u=e.i[o][0]+(n[0]-e.i[o][0])*-r,d=e.i[o][1]+(n[1]-e.i[o][1])*-r,p.setTripleAt(a,s,c,l,u,d,o);return p},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,l=t[0]+Math.cos(r)*n*i,u=t[1]-Math.sin(r)*n*i;e.setTripleAt(l,u,l+Math.cos(s)*o,u-Math.sin(s)*o,l+Math.cos(c)*a,u-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],l=t.v[0===r?t._length-1:r-1],u=t.v[(r+1)%t._length],d=2===o?Math.sqrt(Math.pow(c[0]-l[0],2)+Math.pow(c[1]-l[1],2)):0,p=2===o?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0;setPoint(e,t.v[r%t._length],s,a,n,p/(2*(i+1)),d/(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,l=t.normalAngle(s);setPoint(e,t.point(s),l,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 l=lineIntersection(r,n,i,o);null===l&&(l=n);var u=lineIntersection(a,s,i,o);return null===u&&(u=a),new PolynomialBezier(r,l,u,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,l=lineIntersection(o,polarOffset(o,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),u=l?pointDistance(l,o):pointDistance(o,a)/2,d=polarOffset(o,s,2*u*roundCorner);return e.setXYAt(d[0],d[1],"o",e.length()-1),d=polarOffset(a,c,2*u*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],d[0],d[1],e.length()),a}var p=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 p&&pointDistance(p,o)<i?(e.setTripleAt(p[0],p[1],p[0],p[1],p[0],p[1],e.length()),p):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 l={it:this.cloneElements(this._elements),ty:"gr"};l.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,l),this._groups.splice(0,0,l),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 u=this.elemsData[n].it,d=u[u.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}o+=1}this._currentCopies=c;var p=this.o.v,f=p%1,h=p>0?Math.floor(p):Math.ceil(p),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,_=0;if(p>0){for(;_<h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,f,!1),_+=f)}else if(p<0){for(;_>h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),_-=f)}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!==_){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(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(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(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];_+=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,l,u,d,p,f,h,m,g=e._length,y=0;for(r=0;r<g;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!==g-1||e.c?(s=0===r?e.v[g-1]:e.v[r-1],l=(c=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(c/2,t)/c:0,u=h=i[0]+(s[0]-i[0])*l,d=m=i[1]-(i[1]-s[1])*l,p=u-(u-i[0])*roundCorner,f=d-(d-i[1])*roundCorner,n.setTripleAt(u,d,p,f,h,m,y),y+=1,s=r===g-1?e.v[0]:e.v[r+1],l=(c=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(c/2,t)/c:0,u=p=i[0]+(s[0]-i[0])*l,d=f=i[1]+(s[1]-i[1])*l,h=u-(u-i[0])*roundCorner,m=d-(d-i[1])*roundCorner,n.setTripleAt(u,d,p,f,h,m,y),y+=1):(n.setTripleAt(i[0],i[1],a[0],a[1],o[0],o[1],y),y+=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],y),y+=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,l=Math.max(0,Math.round(this.frequency.v)),u=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,l,u));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 l=[];for(o=0;o<c;o+=1)s=PolynomialBezier.shapeSegment(e,o),l.push(offsetSegmentSplit(s,t));if(!e.c)for(o=c-1;o>=0;o-=1)s=PolynomialBezier.shapeSegmentInverted(e,o),l.push(offsetSegmentSplit(s,t));l=pruneIntersections(l);var u=null,d=null;for(o=0;o<l.length;o+=1){var p=l[o];for(d&&(u=joinLines(i,d,p[0],r,n)),d=p[p.length-1],a=0;a<p.length;a+=1)s=p[a],u&&pointEqual(s.points[0],u)?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()),u=s.points[3]}return l.length&&joinLines(i,d,l[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,l=this.miterLimit.v,u=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,u,l));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 l={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,l,u=!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&&(u=!1),u){var d=createTag("style");d.setAttribute("f-forigin",n[r].fOrigin),d.setAttribute("f-origin",n[r].origin),d.setAttribute("f-family",n[r].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+n[r].fFamily+"; font-style: normal; src: url('"+n[r].fPath+"');}",t.appendChild(d)}}else if("g"===n[r].fOrigin||1===n[r].origin){for(c=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;l<c.length;l+=1)-1!==c[l].href.indexOf(n[r].fPath)&&(u=!1);if(u){var p=createTag("link");p.setAttribute("f-forigin",n[r].fOrigin),p.setAttribute("f-origin",n[r].origin),p.type="text/css",p.rel="stylesheet",p.href=n[r].fPath,document.body.appendChild(p)}}else if("t"===n[r].fOrigin||2===n[r].origin){for(c=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),l=0;l<c.length;l+=1)n[r].fPath===c[l].src&&(u=!1);if(u){var f=createTag("link");f.setAttribute("f-forigin",n[r].fOrigin),f.setAttribute("f-origin",n[r].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",n[r].fPath),t.appendChild(f)}}}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=l,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,l,u,d,p,f=this.masksProperties,h=0,m=[],g=createElementID(),y="clipPath",v="clip-path";for(n=0;n<a;n+=1)if(("a"!==f[n].mode&&"n"!==f[n].mode||f[n].inv||100!==f[n].o.k||f[n].o.x)&&(y="mask",v="mask"),"s"!==f[n].mode&&"i"!==f[n].mode||0!==h?l=null:((l=createNS("rect")).setAttribute("fill","#ffffff"),l.setAttribute("width",this.element.comp.data.w||0),l.setAttribute("height",this.element.comp.data.h||0),m.push(l)),i=createNS("path"),"n"===f[n].mode)this.viewData[n]={op:PropertyFactory.getProp(this.element,f[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[n],3),elem:i,lastPath:""},o.appendChild(i);else{var b;if(h+=1,i.setAttribute("fill","s"===f[n].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==f[n].x.k?(y="mask",v="mask",p=PropertyFactory.getProp(this.element,f[n].x,0,null,this.element),b=createElementID(),(u=createNS("filter")).setAttribute("id",b),(d=createNS("feMorphology")).setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),u.appendChild(d),o.appendChild(u),i.setAttribute("stroke","s"===f[n].mode?"#000000":"#ffffff")):(d=null,p=null),this.storedData[n]={elem:i,x:p,expan:d,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===f[n].mode){c=m.length;var _=createNS("g");for(s=0;s<c;s+=1)_.appendChild(m[s]);var S=createNS("mask");S.setAttribute("mask-type","alpha"),S.setAttribute("id",g+"_"+h),S.appendChild(i),o.appendChild(S),_.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+h+")"),m.length=0,m.push(_)}else m.push(i);f[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,f[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[n],3),invRect:l},this.viewData[n].prop.k||this.drawPath(f[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(y),a=m.length,n=0;n<a;n+=1)this.maskElement.appendChild(m[n]);h>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+g+")"),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.localTransforms&&!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}}}
vendor: 8,296 bytes, line 31
31,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 l=createNS("feComponentTransfer");l.setAttribute("in","SourceGraphic"),r.appendChild(l);var u=createNS("feFuncA");u.setAttribute("type","table"),u.setAttribute("tableValues","1.0 0.0"),l.appendChild(u),this.globalData.defs.appendChild(r);var d=createNS("rect");d.setAttribute("width",this.comp.data.w),d.setAttribute("height",this.comp.data.h),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("fill","#ffffff"),d.setAttribute("op
31acity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),c.appendChild(d),(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(d),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;
vendor: 3,770 bytes, line 31
31){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 l=createNS(1===e.t?"linearGradient":"radialGradient");l.setAttribute("id",s),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var u=this.stops;for(n=4*e.g.p;n<i;n+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),l.appendChild(r),u.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=l,this.ms=o,this.ost=u,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,l,u,d,p,f,h,m=n.styles.length,g=n.lvl;for(u=0;
vendor: 5,828 bytes, line 31
31u<m;u+=1){if(c=n.sh._mdf||i,n.styles[u].lvl<g){for(p=t.reset(),f=g-n.styles[u].lvl,h=n.transformers.length-1;!c&&f>0;)c=n.transformers[h].mProps._mdf||c,f-=1,h-=1;if(c)for(f=g-n.styles[u].lvl,h=n.transformers.length-1;f>0;)p.multiply(n.transformers[h].mProps.v),f-=1,h-=1}else p=e;if(a=(d=n.sh.paths)._length,c){for(s="",o=0;o<a;o+=1)(l=d.shapes[o])&&l._length&&(s+=buildShapeString(l,l._length,l.c,p));n.caches[u]=s}else s=n.caches[u];n.styles[u].d+=!0===r.hd?"":s,n.styles[u]._mdf=c||n.styles[u]._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,l=t.g._hasOpacity,u=t.s.v,d=t.e.v;if(t.o._mdf||r){var p="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(p,t.o.v)}if(t.s._mdf||r){var f=1===e.t?"x1":"cx",h="x1"===f?"y1":"cy";c.setAttribute(f,u[0]),c.setAttribute(h,u[1]),l&&!t.g._collapsable&&(t.of.setAttribute(f,u[0]),t.of.setAttribute(h,u[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(l&&(t.g._omdf||r)){var g=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",g[2*i]+"%"),a.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||r)&&(c.setAttribute("x2",d[0]),c.setAttribute("y2",d[1]),l&&!t.g._collapsable&&(t.of.setAttribute("x2",d[0]),t.of.setAttribute("y2",d[1])));else if((t.s._mdf||t.e._mdf||r)&&(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)),c.setAttribute("r",s),l&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.s._mdf||t.e._mdf||t.h._mdf||t.a._mdf||r){s||(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)));var y=Math.atan2(d[1]-u[1],d[0]-u[0]),v=t.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=s*v,_=Math.cos(y+t.a.v)*b+u[0],S=Math.sin(y+t.a.v)*b+u[1];c.setAttribute("fx",_),c.setAttribute("fy",S),l&&!t.g._collapsable&&(t.of.setAttribute("fx",_),t.of.setAttribute("fy",S))}}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"]=getBlendM
vendor: 38,726 bytes, line 31
31ode(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)-1!==r.indexOf(this.stylesList[t])||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,l,u,d,p,f=[].concat(o),h=e.length-1,m=[],g=[];for(s=h;s>=0;s-=1){if((p=this.searchProcessedElement(e[s]))?t[s]=r[p-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)p?t[s].style.closed=e[s].hd: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(p)for(l=t[s].it.length,c=0;c<l;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,f,a),e[s]._render&&t[s].gr.parentNode!==n&&n.appendChild(t[s].gr)}else"tr"===e[s].ty?(p||(t[s]=this.createTransformElement(e[s],n)),u=t[s].transform,f.push(u)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(p||(t[s]=this.createShapeElement(e[s],f,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?(p?(d=t[s]).closed=!1:((d=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===e[s].ty&&(p?(d=t[s]).closed=!0:(d=ShapeModifiers.getModifier(e[s].ty),t[s]=d,d.init(this,e,s,t),this.shapeModifiers.push(d),a=!1),g.push(d));this.addProcessedElement(e[s],s+1)}for(h=m.length,s=0;s<h;s+=1)m[s].closed=!0;for(h=g.length,s=0;s<h;s+=1)g[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,l=this.data,u=[],d=0,p=l.m.g,f=0,h=0,m=0,g=[],y=0,v=0,b=c.getFontByName(e.f),_=0,S=getFontProperties(b);e.fWeight=S.weight,e.fStyle=S.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 T,x,O=!0,A=e.sz[0],R=e.sz[1];O;){T=0,y=0,r=(x=this.buildFinalText(e.t)).length,w=e.tr/1e3*e.finalSize;var P=-1;for(t=0;t<r;t+=1)E=x[t].charCodeAt(0),n=!1," "===x[t]?P=t:13!==E&&3!==E||(y=0,n=!0,T+=e.finalLineHeight||1.2*e.finalSize),c.chars?(s=c.getCharData(x[t],b.fStyle,b.fFamily),_=n?0:s.w*e.finalSize/100):_=c.measureText(x[t],e.f,e.finalSize),y+_>A&&" "!==x[t]?(-1===P?r+=1:t=P,T+=e.finalLineHeight||1.2*e.finalSize,x.splice(t,P===t?1:0,"\r"),P=-1,y=0):(y+=_,y+=w);T+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&R<T?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=x,r=e.finalText.length,O=!1)}y=-w,_=0;var I,C=0;for(t=0;t<r;t+=1)if(n=!1,13===(E=(I=e.finalText[t]).charCodeAt(0))||3===E?(C=0,g.push(y),v=y>v?y:v,y=-2*w,i="",n=!0,m+=1):i=I,c.chars?(s=c.getCharData(I,b.fStyle,c.getFontByName(e.f).fFamily),_=n?0:s.w*e.finalSize/100):_=c.measureText(i,e.f,e.finalSize)," "===I?C+=_+w:(y+=_+w+C,C=0),u.push({l:_,an:_,add:f,n,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==p){if(f+=_,""===i||" "===i||t===r-1){for(""!==i&&" "!==i||(f-=_);h<=t;)u[h].an=f,u[h].ind=d,u[h].extra=_,h+=1;d+=1,f=0}}else if(3==p){if(f+=_,""===i||t===r-1){for(""===i&&(f-=_);h<=t;)u[h].an=f,u[h].ind=d,u[h].extra=_,h+=1;f=0,d+=1}}else u[d].ind=d,u[d].extra=0,d+=1;if(e.l=u,v=y>v?y:v,g.push(y),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=g;var k,M,D,N,L=l.a;a=L.length;var F=[];for(o=0;o<a;o+=1){for((k=L[o]).a.sc&&(e.strokeColorAnim=!0),k.a.sw&&(e.strokeWidthAnim=!0),(k.a.fc||k.a.fh||k.a.fs||k.a.fb)&&(e.fillColorAnim=!0),N=0,D=k.s.b,t=0;t<r;t+=1)(M=u[t]).anIndexes[o]=N,(1==D&&""!==M.val||2==D&&""!==M.val&&" "!==M.val||3==D&&(M.n||" "==M.val||t==r-1)||4==D&&(M.n||t==r-1))&&(1===k.s.rn&&F.push(N),N+=1);l.a[o].s.totalChars=N;var B,j=-1;if(1===k.s.rn)for(t=0;t<r;t+=1)j!=(M=u[t]).anIndexes[o]&&(j=M.anIndexes[o],B=F.splice(Math.floor(Math.random()*F.length),1)[0]),M.anIndexes[o]=B}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,l=0,u=this.finalS,d=this.finalE,p=this.data.sh;if(2===p)l=c(l=d===u?n>=d?1:0:e(0,t(.5/(d-u)+(n-u)/(d-u),1)));else if(3===p)l=c(l=d===u?n>=d?0:1:1-e(0,t(.5/(d-u)+(n-u)/(d-u),1)));else if(4===p)d===u?l=0:(l=e(0,t(.5/(d-u)+(n-u)/(d-u),1)))<.5?l*=2:l=1-2*(l-.5),l=c(l);else if(5===p){if(d===u)l=0;else{var f=d-u,h=-f/2+(n=t(e(0,n+.5-u),d-u)),m=f/2;l=Math.sqrt(1-h*h/(m*m))}l=c(l)}else 6===p?(d===u?l=0:(n=t(e(0,n+.5-u),d-u),l=(1+Math.cos(Math.PI+2*Math.PI*n/(d-u)))/2),l=c(l)):(n>=r(u)&&(l=e(0,t(n-u<0?t(d,1)-(u-n):d-n,1))),l=c(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;l<y?l=0:(l=(l-y)/g)>1&&(l=1)}return l*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,l,u,d,p,f,h,m,g,y,v,b,_,S=this._moreOptions.alignment.v,E=this._animatorsData,w=this._textData,T=this.mHelper,x=this._renderType,O=this.renderedLetters.length,A=e.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var R,P=_.v;for(this._pathData.r.v&&(P=P.reverse()),a={tLength:0,segments:[]},o=P._length-1,y=0,i=0;i<o;i+=1)R=bez.buildBezierData(P.v[i],P.v[i+1],[P.o[i][0]-P.v[i][0],P.o[i][1]-P.v[i][1]],[P.i[i+1][0]-P.v[i+1][0],P.i[i+1][1]-P.v[i+1][1]]),a.tLength+=R.segmentLength,a.segments.push(R),y+=R.segmentLength;i=o,_.v.c&&(R=bez.buildBezierData(P.v[i],P.v[0],[P.o[i][0]-P.v[i][0],P.o[i][1]-P.v[i][1]],[P.i[0][0]-P.v[0][0],P.i[0][1]-P.v[0][1]]),a.tLength+=R.segmentLength,a.segments.push(R),y+=R.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,p=0,d=1,l=0,u=!0,m=a.segments,s<0&&_.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),d=(h=m[p=m.length-1].points).length-1;s<0;)s+=h[d].partialLength,(d-=1)<0&&(d=(h=m[p-=1].points).length-1);f=(h=m[p].points)[d-1],g=(c=h[d]).partialLength}o=A.length,r=0,n=0;var I,C,k,M,D,N=1.2*e.finalSize*.714,L=!0;k=E.length;var F,B,j,U,H,z,V,G,$,q,W,K,Y=-1,J=s,Q=p,X=d,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(A[i].n){for(re&&(re+=ne);oe<i;)A[oe].animatorJustifyOffset=re,oe+=1;re=0,ae=!0}else{for(C=0;C<k;C+=1)(I=E[C].a).t.propType&&(ae&&2===e.j&&(ne+=I.t.v*ie),(D=E[C].s.getMult(A[i].anIndexes[C],w.a[C].s.totalChars)).length?re+=I.t.v*D[0]*ie:re+=I.t.v*D*ie);ae=!1}for(re&&(re+=ne);oe<i;)A[oe].animatorJustifyOffset=re,oe+=1}for(i=0;i<o;i+=1){if(T.reset(),U=1,A[i].n)r=0,n+=e.yOffset,n+=L?1:0,s=J,L=!1,this._hasMaskedPath&&(d=X,f=(h=m[p=Q].points)[d-1],g=(c=h[d]).partialLength,l=0),ee="",W="",$="",K="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Z!==A[i].line){switch(e.j){case 1:s+=y-e.lineWidths[A[i].line];break;case 2:s+=(y-e.lineWidths[A[i].line])/2}Z=A[i].line}Y!==A[i].ind&&(A[Y]&&(s+=A[Y].extra),s+=A[i].an/2,Y=A[i].ind),s+=S[0]*A[i].an*.005;var se=0;for(C=0;C<k;C+=1)(I=E[C].a).p.propType&&((D=E[C].s.getMult(A[i].anIndexes[C],w.a[C].s.totalChars)).length?se+=I.p.v[0]*D[0]:se+=I.p.v[0]*D),I.a.propType&&((D=E[C].s.getMult(A[i].anIndexes[C],w.a[C].s.totalChars)).length?se+=I.a.v[0]*D[0]:se+=I.a.v[0]*D);for(u=!0,this._pathData.a.v&&(s=.5*A[0].an+(y-this._pathData.f.v-.5*A[0].an-.5*A[A.length-1].an)*Y/(o-1),s+=this._pathData.f.v);u;)l+g>=s+se||!h?(v=(s+se-l)/c.partialLength,B=f.point[0]+(c.point[0]-f.point[0])*v,j=f.point[1]+(c.point[1]-f.point[1])*v,T.translate(-S[0]*A[i].an*.005,-S[1]*N*.01),u=!1):h&&(l+=c.partialLength,(d+=1)>=h.length&&(d=0,m[p+=1]?h=m[p].points:_.v.c?(d=0,h=m[p=0].points):(l-=c.partialLength,h=null)),h&&(f=c,g=(c=h[d]).partialLength));F=A[i].an/2-A[i].add,T.translate(-F,0,0)}else F=A[i].an/2-A[i].add,T.translate(-F,0,0),T.translate(-S[0]*A[i].an*.005,-S[1]*N*.01,0);for(C=0;C<k;C+=1)(I=E[C].a).t.propType&&(D=E[C].s.getMult(A[i].anIndexes[C],w.a[C].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?D.length?s+=I.t.v*D[0]:s+=I.t.v*D:D.length?r+=I.t.v*D[0]:r+=I.t.v*D));for(e.strokeWidthAnim&&(z=e.sw||0),e.strokeColorAnim&&(H=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(V=[e.fc[0],e.fc[1],e.fc[2]]),C=0;C<k;C+=1)(I=E[C].a).a.propType&&((D=E[C].s.getMult(A[i].anIndexes[C],w.a[C].s.totalChars)).length?T.translate(-I.a.v[0]*D[0],-I.a.v[1]*D[1],I.a.v[2]*D[2]):T.translate(-I.a.v[0]*D,-I.a.v[1]*D,I.a.v[2]*D));for(C=0;C<k;C+=1)(I=E[C].a).s.propType&&((D=E[C].s.getMult(A[i].anIndexes[C],w.a[C].s.totalChars)).length?T.scale(1+(I.s.v[0]-1)*D[0],1+(I.s.v[1]-1)*D[1],1):T.scale(1+(I.s.v[0]-1)*D,1+(I.s.v[1]-1)*D,1));for(C=0;C<k;C+=1){if(I=E[C].a,D=E[C].s.getMult(A[i].anIndexes[C],w.a[C].s.totalChars),I.sk.propType&&(D.length?T.skewFromAxis(-I.sk.v*D[0],I.sa.v*D[1]):T.skewFromAxis(-I.sk.v*D,I.sa.v*D)),I.r.propType&&(D.length?T.rotateZ(-I.r.v*D[2]):T.rotateZ(-I.r.v*D)),I.ry.propType&&(D.length?T.rotateY(I.ry.v*D[1]):T.rotateY(I.ry.v*D)),I.rx.propType&&(D.length?T.rotateX(I.rx.v*D[0]):T.rotateX(I.rx.v*D)),I.o.propType&&(D.length?U+=(I.o.v*D[0]-U)*D[0]:U+=(I.o.v*D-U)*D),e.strokeWidthAnim&&I.sw.propType&&(D.length?z+=I.sw.v*D[0]:z+=I.sw.v*D),e.strokeColorAnim&&I.sc.propType)for(G=0;G<3;G+=1)D.length?H[G]+=(I.sc.v[G]-H[G])*D[0]:H[G]+=(I.sc.v[G]-H[G])*D;if(e.fillColorAnim&&e.fc){if(I.fc.propType)for(G=0;G<3;G+=1)D.length?V[G]+=(I.fc.v[G]-V[G])*D[0]:V[G]+=(I.fc.v[G]-V[G])*D;I.fh.propType&&(V=D.length?addHueToRGB(V,I.fh.v*D[0]):addHueToRGB(V,I.fh.v*D)),I.fs.propType&&(V=D.length?addSaturationToRGB(V,I.fs.v*D[0]):addSaturationToRGB(V,I.fs.v*D)),I.fb.propType&&(V=D.length?addBrightnessToRGB(V,I.fb.v*D[0]):addBrightnessToRGB(V,I.fb.v*D))}}for(C=0;C<k;C+=1)(I=E[C].a).p.propType&&(D=E[C].s.getMult(A[i].anIndexes[C],w.a[C].s.totalChars),this._hasMaskedPath?D.length?T.translate(0,I.p.v[1]*D[0],-I.p.v[2]*D[1]):T.translate(0,I.p.v[1]*D,-I.p.v[2]*D):D.length?T.translate(I.p.v[0]*D[0],I.p.v[1]*D[1],-I.p.v[2]*D[2]):T.translate(I.p.v[0]*D,I.p.v[1]*D,-I.p.v[2]*D));if(e.strokeWidthAnim&&($=z<0?0:z),e.strokeColorAnim&&(q="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),e.fillColorAnim&&e.fc&&(W="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[2])+")"),this._hasMaskedPath){if(T.translate(0,-e.ls),T.translate(0,S[1]*N*.01+n,0),this._pathData.p.v){b=(c.point[1]-f.point[1])/(c.point[0]-f.point[0]);var ce=180*Math.atan(b)/Math.PI;c.point[0]<f.point[0]&&(ce+=180),T.rotate(-ce*Math.PI/180)}T.translate(B,j,0),s-=S[0]*A[i].an*.005,A[i+1]&&Y!==A[i+1].ind&&(s+=A[i].an/2,s+=.001*e.tr*e.finalSize)}else{switch(T.translate(r,n,0),e.ps&&T.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:T.translate(A[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[A[i].line]),0,0);break;case 2:T.translate(A[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[A[i].line])/2,0,0)}T.translate(0,-e.ls),T.translate(F,0,0),T.translate(S[0]*A[i].an*.005,S[1]*N*.01,0),r+=A[i].l+.001*e.tr*e.finalSize}"html"===x?ee=T.toCSS():"svg"===x?ee=T.to2dCSS():te=[T.props[0],T.props[1],T.props[2],T.props[3],T.props[4],T.props[5],T.props[6],T.props[7],T.props[8],T.props[9],T.props[10],T.props[11],T.props[12],T.props[13],T.props[14],T.props[15]],K=U}O<=i?(M=new LetterProps(K,$,q,W,ee,te),this.renderedLetters.push(M),O+=1,this.lettersChangedFlag=!0):(M=this.renderedLetters[i],this.lettersChangedFlag=M.update(K,$,q,W,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 l=this.mHelper,u=this.data.singleShape,d=0,p=0,f=!0,h=.001*r.tr*r.finalSize;if(!u||c||r.sz){var m,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!c||!u||0===e){if(a=g>e?this.textSpans[e].span:createNS(c?"g":"text"),g<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,c){var y=createNS("g");a.appendChild(y),this.textSpans[e].childSpan=y}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(l.reset(),u&&(s[e].n&&(d=-h,p+=r.yOffset,p+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(r,l,s[e].line,d,p),d+=s[e].l||0,d+=h),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 _=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(_.layerElement),_.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 u&&a.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),a.textContent=s[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&a&&a.setAttribute("d","")}else{var S=this.textContainer,E="start";switch(r.j){case 1:E="end";break;case 2:E="middle";break;default:E="start"}S.setAttribute("text-anchor",E),S.setAttribute("letter-spacing",h);var w=this.buildTextContents(r.finalText);for(t=w.length,p=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",p),a.style.display="inherit",S.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,p+=r.finalLineHeight;this.layerElement.appendChild(S)}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
31(#"+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}
vendor: 27,180 bytes, line 31
31this._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,l,u,d=e.length-1,p=[],f=[],h=[].concat(i);for(o=d;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],h),p.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,h)}else"tr"===e[o].ty?(c||(u=this.createTransformElement(e[o]),t[o]=u),h.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?(l=t[o]).closed=!1:((l=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=l,this.shapeModifiers.push(l)),f.push(l)):"rp"===e[o].ty&&(c?(l=t[o]).closed=!0:(l=ShapeModifiers.getModifier(e[o].ty),t[o]=l,l.init(this,e,o,t),this.shapeModifiers.push(l),n=!1),f.push(l));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(p),d=f.length,o=0;o<d;o+=1)f[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,l=this.stylesList.length,u=this.globalData.renderer,d=this.globalData.canvasContext;for(e=0;e<l;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(u.save(),o=c.elements,"st"===s||"gs"===s?(u.ctxStrokeStyle("st"===s?c.co:c.grd),u.ctxLineWidth(c.wi),u.ctxLineCap(c.lc),u.ctxLineJoin(c.lj),u.ctxMiterLimit(c.ml||0)):u.ctxFillStyle("fl"===s?c.co:c.grd),u.ctxOpacity(c.coOp),"st"!==s&&"gs"!==s&&d.beginPath(),u.ctxTransform(c.preTransforms.finalTransform.props),r=o.length,t=0;t<r;t+=1){for("st"!==s&&"gs"!==s||(d.beginPath(),c.da&&(d.setLineDash(c.da),d.lineDashOffset=c.do)),i=(a=o[t].trNodes).length,n=0;n<i;n+=1)"m"===a[n].t?d.moveTo(a[n].p[0],a[n].p[1]):"c"===a[n].t?d.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]):d.closePath();"st"!==s&&"gs"!==s||(u.ctxStroke(),c.da&&d.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(c.r),u.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 l=a.shapes[i];if(l&&l.v){for(n=l._length,r=1;r<n;r+=1)1===r&&o.push({t:"m",p:c.applyToPointArray(l.v[0][0],l.v[0][1],0)}),o.push({t:"c",pts:c.applyToTriplePoints(l.o[r-1],l.i[r],l.v[r])});1===n&&o.push({t:"m",p:c.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&n&&(o.push({t:"c",pts:c.applyToTriplePoints(l.o[r-1],l.i[0],l.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 l=Math.sqrt(Math.pow(s[0]-c[0],2)+Math.pow(s[1]-c[1],2)),u=Math.atan2(c[1]-s[1],c[0]-s[0]),d=t.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var p=l*d,f=Math.cos(u+t.a.v)*p+s[0],h=Math.sin(u+t.a.v)*p+s[1];n=a.createRadialGradient(f,h,0,s[0],s[1],l)}var m=e.g.p,g=t.g.c,y=1;for(o=0;o<m;o+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[2*o+1]),n.addColorStop(g[4*o]/100,"rgba("+g[4*o+1]+","+g[4*o+2]+","+g[4*o+3]+","+y+")");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,l,u,d,p,f,h,m=this.globalData.fontManager.getFontByName(e.f),g=e.l,y=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,_=0,S=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||{},y.reset(),v&&g[n].n&&(_=-b,S+=e.yOffset,S+=E?1:0,E=!1),d=(l=a.shapes?a.shapes[0].it:[]).length,y.scale(e.finalSize/100,e.finalSize/100),v&&this.applyTextPropertiesToMatrix(e,y,g[n].line,_,S),f=createSizedArray(d-1);var T=0;for(u=0;u<d;u+=1)if("sh"===l[u].ty){for(c=l[u].ks.k.i.length,p=l[u].ks.k,h=[],s=1;s<c;s+=1)1===s&&h.push(y.applyToX(p.v[0][0],p.v[0][1],0),y.applyToY(p.v[0][0],p.v[0][1],0)),h.push(y.applyToX(p.o[s-1][0],p.o[s-1][1],0),y.applyToY(p.o[s-1][0],p.o[s-1][1],0),y.applyToX(p.i[s][0],p.i[s][1],0),y.applyToY(p.i[s][0],p.i[s][1],0),y.applyToX(p.v[s][0],p.v[s][1],0),y.applyToY(p.v[s][0],p.v[s][1],0));h.push(y.applyToX(p.o[s-1][0],p.o[s-1][1],0),y.applyToY(p.o[s-1][0],p.o[s-1][1],0),y.applyToX(p.i[0][0],p.i[0][1],0),y.applyToY(p.i[0][0],p.i[0][1],0),y.applyToX(p.v[0][0],p.v[0][1],0),y.applyToY(p.v[0][0],p.v[0][1],0)),f[T]=h,T+=1}v&&(_+=g[n].l,_+=b),this.textSpans[w]?this.textSpans[w].elem=f:this.textSpans[w]={elem:f},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 l,u,d=null,p=null,f=null,h=this.globalData.renderer;for(e=0;e<t;e+=1)if(!c[e].n){if((a=s[e])&&(h.save(),h.ctxTransform(a.p),h.ctxOpacity(a.o)),this.fill){for(a&&a.fc?d!==a.fc&&(h.ctxFillStyle(a.fc),d=a.fc):d!==this.values.fill&&(d=this.values.fill,h.ctxFillStyle(this.values.fill)),n=(l=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(u=l[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(u[i],u[i+1],u[i+2],u[i+3],u[i+4],u[i+5]);this.globalData.canvasContext.closePath(),h.ctxFill()}if(this.stroke){for(a&&a.sw?f!==a.sw&&(f=a.sw,h.ctxLineWidth(a.sw)):f!==this.values.sWidth&&(f=this.values.sWidth,h.ctxLineWidth(this.values.sWidth)),a&&a.sc?p!==a.sc&&(p=a.sc,h.ctxStrokeStyle(a.sc)):p!==this.values.stroke&&(p=this.values.stroke,h.ctxStrokeStyle(this.values.stroke)),n=(l=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(u=l[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(u[i],u[i+1],u[i+2],u[i+3],u[i+4],u[i+5]);this.globalData.canvasContext.closePath(),h.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",l=c.substr(0,4),u=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"===l&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===l&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===u&&(
vendor: 6,502 bytes, line 31
31o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===u&&(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.appliedLineWi
vendor: 5,753 bytes, line 31
31dth!==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,l=s._length;if(!(l<=1)){for(r=0;r<l-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,l,u,d=[[e[0],n[0]],[e[1],n[1]]],p=0;p<2;++p)o=6*e[p]-12*t[p]+6*r[p],i=-3*e[p]+9*t[p]-9*r[p]+3*n[p],a=3*t[p]-3*e[p],o|
vendor: 11,242 bytes, line 31
31=0,a|=0,0==(i|=0)&&0===o||(0===i?(s=-a/o)>0&&s<1&&d[p].push(this.calculateF(s,e,t,r,n,p)):(c=o*o-4*a*i)>=0&&((l=(-o+bmSqrt(c))/(2*i))>0&&l<1&&d[p].push(this.calculateF(l,e,t,r,n,p)),(u=(-o-bmSqrt(c))/(2*i))>0&&u<1&&d[p].push(this.calculateF(u,e,t,r,n,p))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[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,l,u,d=e.l;i=d.length;var p,f=this.mHelper,h="",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]?u=(l=this.textSpans[m]).children[0]:((l=createTag("div")).style.lineHeight=0,(u=createNS("svg")).appendChild(c),styleDiv(l)))):this.isMasked?c=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(l=this.textSpans[m],c=this.textPaths[m]):(styleDiv(l=createTag("span")),styleDiv(c=createTag("span")),l.appendChild(c)),this.globalData.fontManager.chars){var g,y=this.globalData.fontManager.getCharData(e.finalText[n],o.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=y?y.data:null,f.reset(),g&&g.shapes&&g.shapes.length&&(p=g.shapes[0].it,f.scale(e.finalSize/100,e.finalSize/100),h=this.createPathShape(f,p),c.setAttribute("d",h)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(l),g&&g.shapes){document.body.appendChild(u);var v=u.getBBox();u.setAttribute("width",v.width+2),u.setAttribute("height",v.height+2),u.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=u.style,_="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=_,b.webkitTransform=_,d[n].yOffset=v.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);l.appendChild(u)}}else if(c.textContent=d[n].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(l);var S=c.style,E="translate3d(0,"+-e.finalSize/1.2+"px,0)";S.transform=E,S.webkitTransform=E}this.isMasked?this.textSpans[m]=c:this.textSpans[m]=l,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,l=this.textProperty.currentData.l;for(n=l.length,r=0;r<n;r+=1)l[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 u=this.innerElem.getBBox();if(this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height)),this.currentBBox.w!==u.width+2||this.currentBBox.h!==u.height+2||this.currentBBox.x!==u.x-1||this.currentBBox.y!==u.y-1){this.currentBBox.w=u.width+2,this.currentBBox.h=u.height+2,this.currentBBox.x=u.x-1,this.currentBBox.y=u.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=d,e.webkitTransform=d}}}},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),l=Math.atan2(a[0],-a[2]);this.mat.rotateY(l).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 u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var d,p,f;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(d=this.comp.threeDElements[e]).type){if(u){var h=this.mat.toCSS();(f=d.container.style).transform=h,f.webkitTransform=h}this.pe._mdf&&((p=d.perspectiveElem.style).perspective=this.pe.v+"px",p.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];
vendor: 9,184 bytes, line 31
31if(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 l(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 u(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function d(e,t){var r,n=[],i=_typeof$2(e);if(t&&"object"==i)for(r in e)try{n.push(d(e[r],t-1))}catch(e){}return n.length?n:"string"==i?e:e+"\0"}function p(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 f(t)}function f(e){return String.fromCharCode.apply(0,e)}t["seed"+i]=function(c,h,m){var g=[],y=p(d((h=!0===h?{entropy:!0}:h||{}).entropy?[c,f(e)]:null===c?function(){try{var t=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(t),f(t)}catch(t){var i=r.navigator,o=i&&i.plugins;return[+new Date,r,o,r.screen,f(e)]}}():c,3),g),v=new l(g),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,p(f(v.S),e),(h.pass||m||function(e,r,n,o){return o&&(o.S&&u(o,v),e.state=function(){return u(v,{})}),n?(t[i]=e,r):e})(b,y,"global"in h?h.global:this==t,h.state)},p(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={};
vendor: 4,565 bytes, line 31
31function 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 l=a-s;switch(r=c>.5?l/(2-a-s):l/(a+s),a){case n:t=(i-o)/l+(i<o?6:0);break;case i:t=(o-n)/l+2;break;case o:t=(n-i)/l+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,l=createTypedArray("float32",c);for(a=0;a<c;a+=1)l[a]=n[a]+(i[a]-n[a])*s;return l}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,l=[0,0];for(i=0;i<o;
vendor: 5,916 bytes, line 31
31i+=1)s=t&&t[i]?t[i]:l,c=r&&r[i]?r[i]:l,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._name=elem.data.nm,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),l=createTypedArray("float32",i);if(i>1){for(n=0;n<i;n+=1)l[n]=this.pv[n]+o[n]+(-t+2*t*BMMath.random())*c;return l}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,l=createTypedArray("float32",c);for(s=0;s<c;s+=1)l[s]=(o[s]-i[s])*a+i[s];return l}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,numKe
vendor: 7,906 bytes, line 31
31ys,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,o[0]=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(l){var u;function d(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return d.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return d.effect;case"ADBE Text Properties":return d.textInterface;default:return null}}d.getMatrix=e,d.invertPoint=a,d.applyPoint=o,d.toWorld=r,d.toWorldVec=t,d.fromWorld=i,d.fromWorldVec=n,d.toComp=r,d.fromComp=s,d.sampleImage=c,d.sourceRectAtTime=l.sourceRectAtTime.bind(l),d._elem=l;var p=getDescriptor(u=TransformExpressionInterface(l.finalTransform.mProp),"anchorPoint");return Object.defineProperties(d,{hasParent:{get:function(){return l.hierarchy.length}},parent:{get:function(){return l.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:p,anchor_point:p,transform:{get:function(){return u}},active:{get:function(){return l.isInRange}}}),d.startTime=l.data.st,d.index=l.data.ind,d.source=l.data.refId,d.height=0===l.data.ty?l.data.h:100,d.width=0===l.data.ty?l.data.w:100,d.inPoint=l.data.ip/l.comp.globalData.frameRate,d.outPoint=l.data.op/l.comp.globalData.frameRate,d._name=l.data.nm,d.registerMaskInterface=function(e){d.mask=new MaskManagerInterface(e,l)},d.registerEffectsInterface=function(e){d.effect=e},d}}(),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)}}
vendor: 23,031 bytes, line 31
31,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?l[n]:l[n]();n+=1}throw new Error}var s,c=propertyGroupFactory(a,i),l=[],u=r.ef.length;for(s=0;s<u;s+=1)5===r.ef[s].ty?l.push(e(r.ef[s],n.effectElements[s],n.effectElements[s].propertyGroup,o)):l.push(t(n.effectElements[s],r.ef[s].ty,o,c));return"ADBE Color Control"===r.mn&&Object.defineProperty(a,"color",{get:function(){return l[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,s,f){var h,m=[],g=e?e.length:0;for(h=0;h<g;h+=1)"gr"===e[h].ty?m.push(t(e[h],s[h],f)):"fl"===e[h].ty?m.push(r(e[h],s[h],f)):"st"===e[h].ty?m.push(o(e[h],s[h],f)):"tm"===e[h].ty?m.push(a(e[h],s[h],f)):"tr"===e[h].ty||("el"===e[h].ty?m.push(c(e[h],s[h],f)):"sr"===e[h].ty?m.push(l(e[h],s[h],f)):"sh"===e[h].ty?m.push(ShapePathInterface(e[h],s[h],f)):"rc"===e[h].ty?m.push(u(e[h],s[h],f)):"rd"===e[h].ty?m.push(d(e[h],s[h],f)):"rp"===e[h].ty?m.push(p(e[h],s[h],f)):"gf"===e[h].ty?m.push(n(e[h],s[h],f)):m.push(i(e[h],s[h])));return m}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 a=s(t.it[t.it.length-1],r.it[r.it.length-1],o.propertyGroup);return o.transform=a,o.propertyIndex=t.cix,o._name=t.nm,o}(t,r,i.propertyGroup),a=s(t.it[t.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=o,i.transform=a,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(){return function(){return null}}function o(e,t,r){var n,i=propertyGroupFactory(l,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 l(e){return"Color"===e||"color"===e?l.color:"Opacity"===e||"opacity"===e?l.opacity:"Stroke Width"===e||"stroke width"===e?l.strokeWidth:null}return Object.defineProperties(l,{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)),l}function a(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 s(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 c(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 l(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 d(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,l=this.keyframes,u=l[l.length-1].t;if(c<=u)return this.pv;if(r?i=u-(n=t?Math.abs(u-this.elem.comp.globalData.frameRate*t):Math.max(0,u-this.elem.data.ip)):((!t||t>l.length-1)&&(t=l.length-1),n=u-(i=l[l.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 d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),p=this.getValueAtTime(u/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((c-i)%n+i)/this.comp.globalData.frameRate,0),h=Math.floor((c-i)/n);if(this.pv.length){for(a=(s=new Array(d.length)).length,o=0;o<a;o+=1)s[o]=(p[o]-d[o])*h+f[o];return s}return(p-d)*h+f}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u-.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]-g[o])*((c-u)/this.comp.globalData.frameRate)/5e-4;return s}return m+(c-u)/.001*(m-g)}}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,l=this.keyframes,u=l[0].t;if(c>=u)return this.pv;if(r?i=u+(n=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-u)):((!t||t>l.length-1)&&(t=l.length-1),n=(i=l[t].t)-u),"pingpong"===e){if(Math.floor((u-c)/n)%2==0)return this.getValueAtTime(((u-c)%n+u)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(i/this.comp.globalData.frameRate,0),f=this.getValueAtTime((n-(u-c)%n+u)/this.comp.globalData.frameRate,0),h=Math.floor((u-c)/n)+1;if(this.pv.length){for(a=(s=new Array(d.length)).length,o=0;o<a;o+=1)s[o]=f[o]-(p[o]-d[o])*h;return s}return f-(p-d)*h}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u+.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]-g[o])*(u-c)/.001;return s}return m+(m-g)*(u-c)/.001}}return this.getValueAtTime((n-((u-c)%n+u))/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),l=this.rx.getValueAtTime(e),u=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(c*this.ry.mult).rotateX(l*this.rx.mult).rotateZ(-u[2]*this.or.mult).rotateY(u[1]*this.or.mult).rotateX(u[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var d=this.px.getValueAtTime(e),p=this.py.getValueAtTime(e);if(this.data.p.z){var f=this.pz.getValueAtTime(e);t.translate(d*this.px.mult,p*this.py.mult,-f*this.pz.mult)}else t.translate(d*this.px.mult,p*this.py.mult,0)}else{var h=this.p.getValueAtTime(e);t.translate(h[0]*this.p.mult,h[1]*this.p.mult,-h[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 l=a(n,i,o,s,c);l.kf?l.getValueAtTime=expressionHelpers.getValueAtTime.bind(l):l.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(l),l.setGroupProperty=expressionHelpers.setGroupProperty,l.loopOut=e,l.loopIn=t,l.smooth=r,l.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(l),l.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(l),l.numKeys=1===i.a?i.k.length:0,l.propertyIndex=i.ix;var u=0;return 0!==o&&(u=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),l._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(n,i,l),l.k&&c.addDynamicProperty(l),l};var s=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function l(){}l.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,l=0;s<c;){if(l+o[s].addedLength>a){var u=s,d=r.c&&s===c-1?0:s+1,p=(a-l)/o[s].addedLength;n=bez.getPointInSegment(r.v[u],r.v[d],r.o[u],r.i[d],p,o[s]);break}l+=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([l],s),extendPrototype([l],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 u=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,n,i){var o=u(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.a
vendor: 5,131 bytes, line 31
31ppendChild(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 l=createNS("feFlood");l.setAttribute("flood-color","#00ff00"),l.setAttribute("flood-opacity","1"),l.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=l,e.appendChild(l);var u=createNS("feComposite");u.setAttribute("in",n+"_drop_shadow_3"),u.setAttribute("in2",n+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",n+"_drop_shadow_4"),e.appendChild(u);var d=this.createMergeNode(n,[n+"_drop_shadow_4",i]);e.appendChild(d)}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;
vendor: 4,562 bytes, line 31
31t+=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 l,u=c*(s-a),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(u/d);for(l=0;l<p;l+=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 f=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*f[0])+","+bmFloor(255*f[1])+","+bmFloor(255*f[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),l=Math.max(e,t),u=Array.call(null,{length:256}),d=0,p=i-n,f=t-e;s<=256;)a=(o=s/256)<=c?f<0?i:n:o>=l?f<0?n:i:n+p*Math.pow((o-e)/f,1/r),u[d]=a,d+=1,s+=256/255;return u.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,
vendor: 5,524 bytes, line 31
31n=(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,l=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(-l*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 l=r[a]={exports:{}};t[a][0].call(l.exports,function(e){return i(t[a][1][e]||e)},l,l.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 l(t){var r,n,i,o=e.animationData.w,a=e.animationData.h,s=o/a,c=t.width,l=t.height,u=c/l,d=e.renderer.renderConfig.preserveAspectRatio.split(" ");return r="meet"===d[1]?u>s?l/a:c/o:u>
31s?c/o:l/a,n=d[0].substr(0,4),{scaleYOffset:"YMin"===(i=d[0].substr(4))?0:"YMid"===i?(l-a*r)/2:l-a*r,scaleXOffset:"xMin"===n?0:"xMid"===n?(c-o*r)/2:c-o*r,scale:r}}function u(r){r=e.wrapper,t.boundingRect=r.getBoundingClientRect(),t.scaleData=l(t.boundingRect)}function d(r){if(!e.wrapper||!e.wrapper.getBoundingClientRect)return r;t.boundingRect||u();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 p(r){if(!e.wrapper||!e.wrapper.getBoundingClientRect)return r;t.boundingRect||u();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 f(){return t.scaleData}var h={recalculateSize:u,getScaleData:f,toContainerPoint:d,fromContainerPoint:p,getCurrentFrame:r,getCurrentTime:o,addValueCallback:a,toKeypathLayerPoint:s,fromKeypathLayerPoint:c};return Object.assign({},n(t),h)}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"),l=e("../layer/LayerBase");t.exports=function(t,r){var u=t.data.ty,d=e("../layer/composition/Composition");switch(u){case 0:return d(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 l(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 l(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 d(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=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 h(e,t,r,n,i,o,a,s,c,l,u,d,p,f,h,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]=l,this.props[10]=u,this.props[11]=d,this.props[12]=p,this.props[13]=f,this.props[14]=h,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 g(e,t,r,n,i,o,a,s,c,l,u,d,p,f,h,m){var g=this.props;if(1===e&&0===t&&0===r&&0===n&&0===i&&1===o&&0===a&&0===s&&0===c&&0===l&&1===u&&0===d)return g[12]=g[12]*e+g[15]*p,g[13]=g[13]*o+g[15]*f,g[14]=g[14]*u+g[15]*h,g[15]=g[15]*m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],_=g[3],S=g[4],E=g[5],w=g[6],T=g[7],x=g[8],O=g[9],A=g[10],R=g[11],P=g[12],I=g[13],C=g[14],k=g[15];return g[0]=y*e+v*i+b*c+_*p,g[1]=y*t+v*o+b*l+_*f,g[2]=y*r+v*a+b*u+_*h,g[3]=y*n+v*s+b*d+_*m,g[4]=S*e+E*i+w*c+T*p,g[5]=S*t+E*o+w*l+T*f,g[6]=S*r+E*a+w*u+T*h,g[7]=S*n+E*s+w*d+T*m,g[8]=x*e+O*i+A*c+R*p,g[9]=x*t+O*o+A*l+R*f,g[10]=x*r+O*a+A*u+R*h,g[11]=x*n+O*s+A*d+R*m,g[12]=P*e+I*i+C*c+k*p,g[13]=P*t+I*o+C*l+k*f,g[14]=P*r+I*a+C*u+k*h,g[15]=P*n+I*s+C*d+k*m,this._identityCalculated=!1,this}function y(){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]||
310!==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 _(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function S(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 T(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function x(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 O(e){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n[t]=x(e[t]);return n}function A(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],l=this.props[12],u=this.props[13];i[0]=e[0]*o+e[1]*s+l,i[1]=e[0]*a+e[1]*c+u,i[2]=t[0]*o+t[1]*s+l,i[3]=t[0]*a+t[1]*c+u,i[4]=r[0]*o+r[1]*s+l,i[5]=r[0]*a+r[1]*c+u}return i}function R(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 P(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 I(){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 C(){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 k(){this.reset=o,this.rotate=a,this.rotateX=s,this.rotateY=c,this.rotateZ=l,this.skew=d,this.skewFromAxis=p,this.shear=u,this.scale=f,this.setTransform=h,this.translate=m,this.transform=g,this.applyToPoint=S,this.applyToX=E,this.applyToY=w,this.applyToZ=T,this.applyToPointArray=R,this.applyToTriplePoints=A,this.applyToPointStringified=P,this.toCSS=I,this.to2dCSS=C,this.clone=b,this.cloneFromProps=_,this.equals=v,this.inversePoints=O,this.inversePoint=x,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=n("float32",16),this.reset()}return function(){return new k}}();
32/*!
33 Transformation Matrix v2.0
34 (c) Epistemex 2014-2015
35 www.epistemex.com
36 By Ken Fyrstenberg
37 Contributions by leeoniya.
38 License: MIT, header required.
39 */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 l(t){return o(a(e,t),"layer")}function u(t){return o(s(e,t),"layer")}function d(t){return o(e.filter(function(e){return e.hasProperty(t)}).map(function(e){return e.getProperty(t)}),"property")}function p(t){return o(c(e,t).map(function(e){return e.getProperty(t)}),"property")}function f(e){var r,i,o,a=n(e),s=a.selector;return"renderer"===t||"layer"===t?(r=u(s),i=l(s),o=0===r.length&&0===i.length?p(s):r.concat(i),a.propertyPath?o.getKeyPath(a.propertyPath):o):"property"===t?(o=d(s),a.propertyPath?o.getKeyPath(a.propertyPath):o):void 0}function h(r){var n=r.getElements();return o(e.concat(n),t)}function m(){return e}function g(t){return e[t]}var y={getKeyPath:f,concat:h,getElements:m,getPropertyAtIndex:g};return Object.defineProperty(y,"length",{get:r}),y}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.exp
39orts=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 l(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 u(){return e.element}var d={getTargetLayer:u,toKeypathLayerPoint:c,fromKeypathLayerPoint:l};return s(),Object.assign(e,n(e),d)}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 l(t){return o(a(e,t))}function u(t){return t>=e.length?[]:i(e[parseInt(t)])}function d(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},h)}function p(){return e}function f(t){return e.concat(t.getTargetElements())}var h={getLayers:s,getLayersByType:c,getLayersByName:l,layer:u,concat:f,getTargetElements:p};return d(["setTranslate","getType","getDuration"]),d(["setText","getText","setDocumentData","canResizeFont","setMinimumFontSize"]),Object.defineProperty(h,"length",{get:t}),h}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:l()};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 l(){var t=e.layers.map(c);return[{name:"Time Remap",value:a(e.tm)}].concat(t)}var u={};return Object.assign(r,i(s),n(s.elements,"layer"),u)}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,l=0,u=0,d=!0,p=1,f=!1,h=!1,m=[],g={time:-1};function y(e,t,r){f=!1,r&&(_(),u=e),h&&console.log(e,t),l=Date.now(),s=e,c=t,E()}function v(){var e=m.shift();y(e[0],e[1])}function b(e,t){m.push([e,t])}function _(){m.length=0}function S(e){if(s===c)u=s;else if(!f){var t=Date.now(),r=p*(t-l)/1e3;l=t,s<c?(u+=r)>c&&(m.length?v():d?u%=c-s:u=c):(u-=r)<c&&(m.length?v():u=d?s-(c-u):c),h&&console.log(u)}
39return C.onEnterFrame&&g.time!==u&&(g.time=u,C.onEnterFrame(g)),u}function E(){a||(a=!0,r=C.setValue(S,h))}function w(e,t){f=!1,t&&_(),E(),c=e}function T(){return a?u:e.v/e.mult}function x(e){d=e}function O(e){p=e}function A(e){h=e}function R(){f=!0}function P(){r&&(r(),o.property=null,o.parent=null)}var I={playSegment:y,playTo:w,queueSegment:b,clearQueue:_,setLoop:x,setSpeed:O,pause:R,setDebugging:A,getCurrentTime:T,onEnterFrame:null,destroy:P},C={};return Object.assign(C,I,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"),l=e("./ShapeGradientStroke"),u=e("./ShapeTrimPaths"),d=e("./ShapeRepeater"),p=e("./ShapePolystar"),f=e("./ShapeRoundCorners"),h=e("./ShapePath"),m=e("../transform/Transform"),g=e("../../helpers/transformationMatrix");function y(e,t,r){var v={properties:S(),parent:r},b=[];function _(r,n){var g={name:r.nm};return Object.defineProperty(g,"value",{get:function(){return b[n]?b[n]:("gr"===r.ty?g=y(e[n].it,t[n].it,v):"rc"===r.ty?g=i(t[n],v):"el"===r.ty?g=s(t[n],v):"fl"===r.ty?g=o(t[n],v):"st"===r.ty?g=a(t[n],v):"gf"===r.ty?g=c(t[n],v):"gs"===r.ty?g=l(t[n],v):"tm"===r.ty?g=u(t[n],v):"rp"===r.ty?g=d(t[n],v):"sr"===r.ty?g=p(t[n],v):"rd"===r.ty?g=f(t[n],v):"sh"===r.ty?g=h(t[n],v):"tr"===r.ty?g=m(t[n].transform.mProps,v):console.log(r.ty),b[n]=g,g);var g}}),g}function S(){return e.map(function(e,t){return _(e,t)})}function E(e){if(v.hasProperty("Transform")){var t=g();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=g();v.getProperty("Transform").getTargetTransform().applyToMatrix(t),e=t.inversePoint(e)}return e}var T={fromKeypathLayerPoint:E,toKeypathLayerPoint:w};return Object.assign(v,n(v),T)}t.exports=y},{"../../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)}
39,{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)}
39function 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 l={};return Object.assign(r,l,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:x()};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 l(t){i(e.a.fs).setValue(t)}function u(t){i(e.a.fo).setValue(t)}function d(t){i(e.a.o).setValue(t)}function p(t){i(e.a.p).setValue(t)}function f(t){i(e.a.rx).setValue(t)}function h(t){i(e.a.ry).setValue(t)}function m(t){i(e.a.s).setValue(t)}function g(t){i(e.a.sa).setValue(t)}function y(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 _(t){i(e.a.sw).setValue(t)}function S(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 T(t){i(e.a.t).setValue(t)}function x(){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:l}},{name:"Fill Opacity",value:{setValue:u}},{name:"Opacity",value:{setValue:d}},{name:"Position",value:{setValue:p}},{name:"Rotation X",value:{setValue:f}},{name:"Rotation Y",value:{setValue:h}},{name:"Scale",value:{setValue:m}},{name:"Skew Axis",value:{setValue:g}},{name:"Stroke Color",value:{setValue:y}},{name:"Skew",value:{setValue:v}},{name:"Stroke Width",value:{setValue:_}},{name:"Tracking Amount",value:{setValue:T}},{name:"Stroke Opacity",value:{setValue:b}},{name:"Stroke Brightness",value:{setValue:S}},{name:"Stroke Saturation",value:{setValue:w}},{name:"Stroke Hue",value:{setValue:E}}]}var O={};return Object.assign(t,O,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){l({t:e},t)}function l(t,r){return e.updateDocumentData(t,r)}function u(t){return e.canResizeFont(t)}function d(t){return e.setMinimumFontSize(t)}var p={getText:s,setText:c,canResizeFont:u,setDocumentData:l,setMinimumFontSize:d};return Object.assign(t,n(o),p)}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:()=>p,ENTERING:()=>d,EXITED:()=>u,EXITING:()=>f,UNMOUNTED:()=>l,default:()=>g});var n=r(1160),i=r(1161),o=r(396),a=r(1163),s=r(1164),c=r(1165),l="unmounted",u="exited",d="entering",p="entered",f="exiting",h=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var i,o=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?o?(i=u,n.appearStatus=d):i=p:i=t.unmountOnExit||t.mountOnEnter?l:u,n.state={status:i},n.nextCallback=null,n}(0,i.default)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:u}: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!==d&&r!==p&&(t=d):r!==d&&r!==p||(t=f)}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,a
vendor: 3,340 bytes, line 39
39ppear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===d){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===u&&this.setState({status:l})},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],l=this.getTimeouts(),u=n?l.appear:l.enter;!e&&!r||a.default.disabled?this.safeSetState({status:p},function(){t.props.onEntered(s)}):(this.props.onEnter(s,c),this.safeSetState({status:d},function(){t.props.onEntering(s,c),t.onTransitionEnd(u,function(){t.safeSetState({status:p},function(){t.props.onEntered(s,c)})})}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:o.default.findDOMNode(this);t&&!a.default.disabled?(this.props.onExit(n),this.safeSetState({status:f},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:u},function(){e.props.onExited(n)})})})):this.safeSetState({status:u},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===l)return null;var t=this.props,r=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,n.default)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.default.createElement(s.default.Provider,{value:null},"function"==typeof r?r(e,i):o.default.cloneElement(o.default.Children.only(r),i))},t}(o.default.Component);function m(){}h.contextType=s.default,h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},h.UNMOUNTED=l,h.EXITED=u,h.ENTERING=d,h.ENTERED=p,h.EXITING=f;const g=h},(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-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(1162);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.default)(e,t)}},(e,t,r)=>{"use strict";
39function 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(396).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,{forceLoad:()=>x,getDefaultIntegrations:()=>w,init:()=>T,onLoad:()=>O});var n=r(1388),i=r(1389),o=r(1390),a=r(1391),s=r(1393),c=r(1394),l=r(417),u=r(419),d=r(1395),p=r(1425),f=r(1439),h=r(1440),m=r(1441),g=r(1444),y=r(1447),v=r(1448),b=r(1450),_=r(1451),S=r(1454),E=r(1456);function w(e){return[(0,a.inboundFiltersIntegration)(),(0,o.functionToStringIntegration)(),(0,c.conversationIdIntegration)(),(0,f.browserApiErrorsIntegration)(),(0,p.breadcrumbsIntegration)(),(0,g.globalHandlersIntegration)(),(0,v.linkedErrorsIntegration)(),(0,s.dedupeIntegration)(),(0,y.httpContextIntegration)(),(0,m.cultureContextIntegration)(),(0,h.browserSessionIntegration)()]}function T(e={}){const t=!e.skipBrowserExtensionCheck&&(0,E.checkAndWarnIfIsEmbeddedBrowserExtension)();let r=null==e.defaultIntegrations?w():e.defaultIntegrations;const o={...e,enabled:!t&&e.enabled,stackParser:(0,u.stackParserFromStackParserOptions)(e.stackParser||b.defaultStackParser),integrations:(0,i.getIntegrationsToSetup)({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||_.makeFetchTransport};return(0,l.setNormalizeStringifier)(S.normalizeStringifyValue),(0,n.initAndBind)(d.BrowserClient,o)}function x(){}function O(e){e()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initAndBind:()=>a,setCurrentClient:()=>s});var n=r(401),i=r(409),o=r(413);function a(e,t){!0===t.debug&&(i.DEBUG_BUILD?o.debug.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,{addIntegration:()=>d,afterSetupIntegrations:()=>l,defineIntegration:()=>p,getIntegrationsToSetup:()=>s,installedIntegrations:()=>a,setupIntegration:()=>u,setupIntegrations:()=>c});var n=r(401),i=r(409),o=r(413);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?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&u(e,t,r)}),r}function l(e,t){for(const r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function u(e,t,r){if(r[t.name])i.DEBUG_BUILD&&o.debug.log(`Integration skipped because it was already installed: ${t.name}`);else{if(r[t.name]=t,a.includes(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)}["processSpan","processSegmentSpan"].forEach(r=>{const n=t[r];"function"==typeof n&&e.on(r,r=>n.call(t,r,e))}),i.DEBUG_BUILD&&o.debug.log(`Integration installed: ${t.name}`)}}function d(e){const t=(0,n.getClient)();t?t.addIntegration(e):i.DEBUG_BUILD&&o.debug.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}function p(e){return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{functionToStringIntegration:()=>c});var n=r(401),i=r(1389),o=r(412);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,{eventFiltersIntegration:()=>u,inboundFiltersIntegration:()=>d});var n=r(409),i=r(1389),o=r(413),a=r(1392),s=r(411),c=r(416);const l=[/^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/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],u=(0,i.defineIntegration)((e={})=>{let t;return{name:"EventFilters",setup(r){const n=r.getOptions();t=p(e,n)},processEvent(r,i,l){if(!t){const r=l.getOptions();t=p(e,r)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;const r=e.transaction;return!!r&&(0,c.stringMatchesSomePattern)(r,t)}(e,t.ignoreTransactions))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,s.getEventDescription)(e)}`),!0}else{if(function(e,t){if(!t?.length)return!1;return(0,a.getPossibleEventMessages)(e).some(e=>
39(0,c.stringMatchesSomePattern)(e,t))}(e,t.ignoreErrors))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,s.getEventDescription)(e)}`),!0;if(function(e){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.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,s.getEventDescription)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const r=f(e);return!!r&&(0,c.stringMatchesSomePattern)(r,t)}(e,t.denyUrls))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,s.getEventDescription)(e)}.\nUrl: ${f(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const r=f(e);return!r||(0,c.stringMatchesSomePattern)(r,t)}(e,t.allowUrls))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,s.getEventDescription)(e)}.\nUrl: ${f(e)}`),!0}return!1}(r,t)?null:r}}}),d=(0,i.defineIntegration)((e={})=>({...u(e),name:"InboundFilters"}));function p(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:l],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}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{return n.DEBUG_BUILD&&o.debug.error(`Cannot extract url for event ${(0,s.getEventDescription)(e)}`),null}}},(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{}return t}r.r(t),r.d(t,{getPossibleEventMessages:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_shouldDropEvent:()=>c,dedupeIntegration:()=>s});var n=r(409),i=r(1389),o=r(413),a=r(419);const s=(0,i.defineIntegration)(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(c(t,e))return n.DEBUG_BUILD&&o.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}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(!u(e,t))return!1;if(!l(e,t))return!1;return!0}(e,t)||!!function(e,t){const r=d(t),n=d(e);if(!r||!n)return!1;if(r.type!==n.type||r.value!==n.value)return!1;if(!u(e,t))return!1;if(!l(e,t))return!1;return!0}(e,t))}function l(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 u(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{return!1}}function d(e){return e.exception?.values?.[0]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{conversationIdIntegration:()=>s});var n=r(401),i=r(1389),o=r(427),a=r(434);const s=(0,i.defineIntegration)(()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{const t=(0,n.getCurrentScope)().getScopeData(),r=(0,n.getIsolationScope)().getScopeData(),i=t.conversationId||r.conversationId;if(i){const{op:t,data:r,description:n}=(0,a.spanToJSON)(e);if(!t?.startsWith("gen_ai.")&&!r["ai.operationId"]&&!n?.startsWith("ai."))return;e.setAttribute(o.GEN_AI_CONVERSATION_ID_ATTRIBUTE,i)}})}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BrowserClient:()=>d,applyDefaultOptions:()=>p});var n=r(1396),i=r(1419),o=r(1420),a=r(1398),s=r(1406),c=r(1405),l=r(1421),u=r(1423);class d extends n.Client{constructor(e){const t=p(e),r=u.WINDOW.SENTRY_SDK_SOURCE||(0,c.getSDKSource)();(0,o.applySdkMetadata)(t,"browser",["browser"],r),super(t);const{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:l,enableLogs:d,_experiments:f,enableMetrics:h}=this._options,m=h??f?.enableMetrics??!0;u.WINDOW.document&&(l||d||m)&&u.WINDOW.document.addEventListener("visibilitychange",()=>{"hidden"===u.WINDOW.document.visibilityState&&(l&&this._flushOutcomes(),d&&(0,a._INTERNAL_flushLogsBuffer)(this),m&&(0,s._INTERNAL_flushMetricsBuffer)(this))}),n&&this.on("beforeSendSession",i.addAutoIpAddressToSession)}eventFromException(e,t){return(0,l.eventFromException)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return(0,l.eventFromMessage)(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}function p(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:u.WINDOW.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Client:()=>V});var n=r(1397),i=r(441),o=r(401),a=r(409),s=r(446),c=r(1389),l=r(1398),u=r(1406),d=r(410),p=r(440),f=r(447),h=r(1408),m=r(1410),g=r(1414),y=r(413),v=r(439),b=r(448),_=r(1392),S=r(414),E=r(421),w=r(411),T=r(433),x=r(450),O=r(1411),A=r(415),R=r(431),P=r(434),I=r(452),C=r(1412),k=r(1415),M=r(1416);const D="Not capturing exception because it's already been captured.",N="Discarded session because of missing or non-string release",L=Symbol.for("SentryInternalError"),F=Symbol.for("SentryDoNotSendEventError");function B(e){return{message:e,[L]:!0}}function j(e){return{message:e,[F]:!0}}function U(e){return!!e&&"object"==typeof e&&L in e}function H(e){return!!e&&"object"==typeof e&&F in e}function z(e,t,r,n,i){let o,a=0,s=!1;e.on(r,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if(a+=n(t),a>=8e5)i(e);else if(!s){const t=e.getOptions()._flushInterval??5e3;t>0&&(s=!0,o=(0,C.safeUnref)(setTimeout(()=>{i(e)},t)))}}),e.on("flush",()=>{i(e)})}class V{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=(0,O.makePromiseBuffer)(e.transportOptions?.bufferSize??m.DEFAULT_TRANSPORT_BUFFER_SIZE),this._dataCollection=(0,M.resolveDataCollectionOptions)(e),e.dsn?this._dsn=(0,v.makeDsn)(e.dsn):a.DEBUG_BUILD&&y.debug.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})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&z(this,"afterCaptureLog","flushLogs",K,l._INTERNAL_flushLogsBuffer);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&z(this,"afterCaptureMetric","flushMetrics",W,u._INT
39ERNAL_flushMetricsBuffer)}captureException(e,t,r){const n=(0,w.uuid4)();if((0,w.checkOrSetAlreadyCaught)(e))return a.DEBUG_BUILD&&y.debug.log(D),n;const i={event_id:n,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r)).then(e=>e),"error"),i.event_id}captureMessage(e,t,r,n){const i={event_id:(0,w.uuid4)(),...r},o=(0,S.isParameterizedString)(e)?e:String(e),a=(0,S.isPrimitive)(e),s=a?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,n)),a?"unknown":"error"),i.event_id}captureEvent(e,t,r){const n=(0,w.uuid4)();if(t?.originalException&&(0,w.checkOrSetAlreadyCaught)(t.originalException))return a.DEBUG_BUILD&&y.debug.log(D),n;const i={event_id:n,...t},o=e.sdkProcessingMetadata||{},s=o.capturedSpanScope,c=o.capturedSpanIsolationScope,l=G(e.type);return this._process(()=>this._captureEvent(e,i,s||r,c),l),i.event_id}captureSession(e){this.sendSession(e),(0,d.updateSession)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;if(this.emit("flush"),!t)return!0;const r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){(0,l._INTERNAL_flushLogsBuffer)(this);const t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}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]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){const t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),(0,c.setupIntegration)(this,e,this._integrations),t||(0,c.afterSetupIntegrations)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);const r=(0,h.extractGenAiSpansFromEvent)(e,this);let n=(0,s.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=(0,b.addItemToEnvelope)(n,(0,b.createAttachmentEnvelopeItem)(e));r&&(n=(0,b.addItemToEnvelope)(n,r)),this.sendEnvelope(n).then(t=>this.emit("afterSendEvent",e,t))}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.debug.warn(N));n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t)return void(a.DEBUG_BUILD&&y.debug.warn(N));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.debug.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]||new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){const r=this._hooks[e];r&&r.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return a.DEBUG_BUILD&&y.debug.error("Error while sending envelope:",e),{}}return a.DEBUG_BUILD&&y.debug.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_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,r=!1;for(const e of i)if(!1===e.mechanism?.handled){r=!0;break}}const o="ok"===e.status;(o&&0===e.errors||o&&r)&&((0,d.updateSession)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){const i=this.getOptions(),a=this.getIntegrationNames();
39return!t.integrations&&a.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,x.prepareEvent)(i,e,t,r,this,n).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,o.getTraceContextFromScope)(r)},...e.contexts};const n=(0,p.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&&$(e)&&y.debug.log(`Captured error event \`${(0,_.getPossibleEventMessages)(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{a.DEBUG_BUILD&&(H(e)?y.debug.log(e.message):U(e)?y.debug.warn(e.message):y.debug.warn(e))})}_processEvent(e,t,r,n){const i=this.getOptions(),{sampleRate:o}=i,a=q(e),s=$(e),c=`before send for type \`${e.type||"error"}\``,l=void 0===o?void 0:(0,T.parseSampleRate)(o);if(s&&"number"==typeof l&&(0,A.safeMathRandom)()>l)return this.recordDroppedEvent("sample_rate","error"),(0,I.rejectedSyncPromise)(j(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const u=G(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",u),j("An event processor returned `null`, will not send event.");if(!0===t.data?.__sentry__)return e;const r=function(e,t,r,n){const{beforeSend:i,beforeSendTransaction:o,ignoreSpans:a}=t,s=!(0,f.isStreamedBeforeSendSpanCallback)(t.beforeSendSpan)&&t.beforeSendSpan;let c=r;if($(c)&&i)return i(c,n);if(q(c)){if(s||a){const t=(0,k.convertTransactionEventToSpanJson)(c);if(a?.length&&(0,R.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},a))return null;if(s){const e=s(t);e?c=(0,E.merge)(r,(0,k.convertSpanJsonToTransactionEvent)(e)):(0,P.showSpanDropWarning)()}if(c.spans){const t=[],r=c.spans;for(const e of r)if(a?.length&&(0,R.shouldIgnoreSpan)({description:e.description,op:e.op,attributes:e.data},a))(0,R.reparentChildSpans)(r,e);else if(s){const r=s(e);r?t.push(r):((0,P.showSpanDropWarning)(),t.push(e))}else t.push(e);const n=c.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),c.spans=t}}if(o){if(c.spans){const e=c.spans.length;c.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(c,n)}}return c}(this,i,e,t);return function(e,t){const r=`${t} must return \`null\` or a valid event.`;if((0,S.isThenable)(e))return e.then(e=>{if(!(0,S.isPlainObject)(e)&&null!==e)throw B(r);return e},e=>{throw B(`${t} rejected with ${e}`)});if(!(0,S.isPlainObject)(e)&&null!==e)throw B(r);return e}(r,c)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",u),a){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw j(`${c} returned \`null\`, will not send event.`)}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 l=i.transaction_info;if(a&&l&&i.transaction!==e.transaction){const e="custom";i.transaction_info={...l,source:e}}return this.sendEvent(i,t),i}).then(null,e=>{if(H(e)||U(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),B(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===O.SENTRY_BUFFER_FULL_ERROR&&this.recordDroppedEvent("queue_overflow",t),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.debug.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(a.DEBUG_BUILD&&y.debug.log("No outcomes to send"));if(!this._dsn)return void(a.DEBUG_BUILD&&y.debug.log("No dsn provided, will not send outcomes"));a.DEBUG_BUILD&&y.debug.log("Sending outcomes:",e);const t=(0,g.createClientReportEnvelope)(e,this._options.tunnel&&(0,v.dsnToString)(this._dsn));this.sendEnvelope(t)}}function G(e){return"replay_event"===e?"replay":e||"error"}function $(e){return void 0===e.type}function q(e){return"transaction"===e.type}function W(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+Y(e.attributes)}function K(e){let t=0;return e.message&&(t+=2*e.message.length),t+Y(e.attributes)}function Y(e){if(!e)return 0;let t=0;
39return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*J(e[0]):(0,S.isPrimitive)(e)?t+=J(e):t+=100}),t}function J(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SENTRY_API_VERSION:()=>i,getEnvelopeEndpointWithUrlEncodedAuth:()=>a,getReportDialogEndpoint:()=>s});var n=r(439);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,{_INTERNAL_captureLog:()=>b,_INTERNAL_captureSerializedLog:()=>v,_INTERNAL_flushLogsBuffer:()=>_,_INTERNAL_getLogBuffer:()=>S,_removeLoneSurrogates:()=>T});var n=r(435),i=r(403),o=r(401),a=r(409),s=r(413),c=r(414),l=r(454),u=r(423),d=r(420),p=r(1399),f=r(1400),h=r(1401),m=r(1402);const g=100;function y(e,t,r,n=!0){!r||e[t]&&!n||(e[t]=r)}function v(e,t){const r=E(),n=S(e);void 0===n?r.set(e,[t]):n.length>=g?(_(e,n),r.set(e,[t])):r.set(e,[...n,t])}function b(e,t=(0,o.getCurrentScope)(),r=v){const i=t?.getClient()??(0,o.getClient)();if(!i)return void(a.DEBUG_BUILD&&s.debug.warn("No client available to capture log."));const{release:m,environment:g,enableLogs:b=!1,beforeSendLog:_}=i.getOptions();if(!b)return void(a.DEBUG_BUILD&&s.debug.warn("logging option not enabled, log will not be captured."));const[,S]=(0,f._getTraceInfoFromScope)(i,t),E={...e.attributes},{user:{id:x,email:O,username:A},attributes:R={}}=(0,l.getCombinedScopeData)((0,o.getIsolationScope)(),t);y(E,"user.id",x,!1),y(E,"user.email",O,!1),y(E,"user.name",A,!1),y(E,"sentry.release",m),y(E,"sentry.environment",g);const{name:P,version:I}=i.getSdkMetadata()?.sdk??{};y(E,"sentry.sdk.name",P),y(E,"sentry.sdk.version",I);const C=i.getIntegrationByName("Replay"),k=C?.getReplayId(!0);y(E,"sentry.replay_id",k),k&&"buffer"===C?.getRecordingMode()&&y(E,"sentry._internal.replay_is_buffering",!0);const M=e.message;if((0,c.isParameterizedString)(M)){const{__sentry_template_string__:e,__sentry_template_values__:t=[]}=M;t?.length&&(E["sentry.message.template"]=e),t.forEach((e,t)=>{E[`sentry.message.parameter.${t}`]=e})}const D=(0,u._getSpanForScope)(t);y(E,"sentry.trace.parent_span_id",D?.spanContext().spanId);const N={...e,attributes:E};i.emit("beforeCaptureLog",N);const L=_?(0,s.consoleSandbox)(()=>_(N)):N;if(!L)return i.recordDroppedEvent("before_send","log_item",1),void(a.DEBUG_BUILD&&s.debug.warn("beforeSendLog returned null, log will not be captured."));const{level:F,message:B,attributes:j={},severityNumber:U}=L,H=(0,d.timestampInSeconds)(),z=(0,p.getSequenceAttribute)(H);r(i,{timestamp:H,level:F,body:T(String(B)),trace_id:S?.trace_id,severity_number:U??h.SEVERITY_TEXT_TO_SEVERITY_NUMBER[F],attributes:w({...(0,n.serializeAttributes)(R),...(0,n.serializeAttributes)(j,!0),[z.key]:z.value})}),i.emit("afterCaptureLog",L)}function _(e,t){const r=t??S(e)??[];if(0===r.length)return;const n=e.getOptions(),i=(0,m.createLogEnvelope)(r,n._metadata,n.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);E().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function S(e){return E().get(e)}function E(){return(0,i.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}function w(e){const t={};for(const[r,n]of Object.entries(e)){const e=T(r);"string"===n.type?t[e]={...n,value:T(n.value)}:t[e]=n}return t}function T(e){const t=Object(e),r=t.isWellFormed,n=t.toWellFormed;return"function"==typeof r&&"function"==typeof n?r.call(e)?e:n.call(e):e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getSequenceAttribute:()=>a});const n="sentry.timestamp.sequence";let i,o=0;function a(e){const t=Math.floor(1e3*e);void 0!==i&&t!==i&&(o=0);const r=o;return o++,i=t,{key:n,value:{value:r,type:"integer"}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_getTraceInfoFromScope:()=>a});var n=r(401),i=r(440),o=r(434);function a(e,t){return t?(0,n.withScope)(t,()=>{const r=(0,o.getActiveSpan)(),a=r?(0,o.spanToTraceContext)(r):(0,n.getTraceContextFromScope)(t);return[r?(0,i.getDynamicSamplingContextFromSpan)(r):(0,i.getDynamicSamplingContextFromScope)(e,t),a]}):[void 0,void 0]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SEVERITY_TEXT_TO_SEVERITY_NUMBER:()=>n});const n={trace:1,debug:5,info:9,warn:13,error:17,fatal:21}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createLogContainerEnvelopeItem:()=>a,createLogEnvelope:()=>s});var n=r(439),i=r(448),o=r(1403);function a(e,t){const r=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:e}]}function s(e,t,r,o,s){const c={};return t?.sdk&&(c.sdk={name:t.sdk.name,version:t.sdk.version}),r&&o&&(c.dsn=(0,n.dsnToString)(o)),(0,i.createEnvelope)(c,[a(e,s)])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isBrowser:()=>o});var n=r(1404),i=r(405);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(1405);
39function 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{}if(!r)try{const{cwd:n}=o(t,"process");r=o(t,`${n()}/node_modules/${e}`)}catch{}return r}},(e,t,r)=>{"use strict";function n(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){
40/*! __SENTRY_SDK_SOURCE__ */
41return"npm"}r.r(t),r.d(t,{getSDKSource:()=>i,isBrowserBundle:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_INTERNAL_captureMetric:()=>y,_INTERNAL_captureSerializedMetric:()=>g,_INTERNAL_flushMetricsBuffer:()=>v,_INTERNAL_getMetricBuffer:()=>b});var n=r(435),i=r(403),o=r(401),a=r(409),s=r(413),c=r(454),l=r(423),u=r(420),d=r(1399),p=r(1400),f=r(1407);const h=1e3;function m(e,t,r,n=!0){!r||!n&&t in e||(e[t]=r)}function g(e,t){const r=_(),n=b(e);void 0===n?r.set(e,[t]):n.length>=h?(v(e,n),r.set(e,[t])):r.set(e,[...n,t])}function y(e,t){const r=t?.scope??(0,o.getCurrentScope)(),i=t?.captureSerializedMetric??g,f=r?.getClient()??(0,o.getClient)();if(!f)return void(a.DEBUG_BUILD&&s.debug.warn("No client available to capture metric."));const{_experiments:h,enableMetrics:y,beforeSendMetric:v}=f.getOptions();if(!(y??h?.enableMetrics??!0))return void(a.DEBUG_BUILD&&s.debug.warn("metrics option not enabled, metric will not be captured."));const{user:b,attributes:_}=(0,c.getCombinedScopeData)((0,o.getIsolationScope)(),r),S=function(e,t,r){const{release:n,environment:i}=t.getOptions(),o={...e.attributes};m(o,"user.id",r.id,!1),m(o,"user.email",r.email,!1),m(o,"user.name",r.username,!1),m(o,"sentry.release",n),m(o,"sentry.environment",i);const{name:a,version:s}=t.getSdkMetadata()?.sdk??{};m(o,"sentry.sdk.name",a),m(o,"sentry.sdk.version",s);const c=t.getIntegrationByName("Replay"),l=c?.getReplayId(!0);return m(o,"sentry.replay_id",l),l&&"buffer"===c?.getRecordingMode()&&m(o,"sentry._internal.replay_is_buffering",!0),{...e,attributes:o}}(e,f,b);f.emit("processMetric",S);const E=v||h?.beforeSendMetric,w=E?E(S):S;if(!w)return void(a.DEBUG_BUILD&&s.debug.log("`beforeSendMetric` returned `null`, will not send metric."));const T=function(e,t,r,i){const[,o]=(0,p._getTraceInfoFromScope)(t,r),a=(0,l._getSpanForScope)(r),s=a?a.spanContext().traceId:o?.trace_id,c=a?a.spanContext().spanId:void 0,f=(0,u.timestampInSeconds)(),h=(0,d.getSequenceAttribute)(f);return{timestamp:f,trace_id:s??"",span_id:c,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...(0,n.serializeAttributes)(i),...(0,n.serializeAttributes)(e.attributes,"skip-undefined"),[h.key]:h.value}}}(w,f,r,_);a.DEBUG_BUILD&&s.debug.log("[Metric]",T),i(f,T),f.emit("afterCaptureMetric",w)}function v(e,t){const r=t??b(e)??[];if(0===r.length)return;const n=e.getOptions(),i=(0,f.createMetricEnvelope)(r,n._metadata,n.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);_().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}function b(e){return _().get(e)}function _(){return(0,i.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createMetricContainerEnvelopeItem:()=>a,createMetricEnvelope:()=>s});var n=r(439),i=r(448),o=r(1403);function a(e,t){const r=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:e}]}function s(e,t,r,o,s){const c={};return t?.sdk&&(c.sdk={name:t.sdk.name,version:t.sdk.version}),r&&o&&(c.dsn=(0,n.dsnToString)(o)),(0,i.createEnvelope)(c,[a(e,s)])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{extractGenAiSpansFromEvent:()=>a});var n=r(1403),i=r(432),o=r(1409);function a(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!t.getOptions().streamGenAiSpans||(0,i.hasSpanStreamingEnabled)(t))return;const r=[],a=[];for(const t of e.spans)t.op?.startsWith("gen_ai.")?r.push((0,o.spanJsonToSerializedStreamedSpan)(t)):a.push(t);if(0===r.length)return;e.spans=a;const s=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:r.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,n.isBrowser)()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:r}]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{spanJsonToSerializedStreamedSpan:()=>i});var n=r(434);function i(e){const t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:e.status&&"ok"!==e.status&&"cancelled"!==e.status?"error":"ok",is_segment:!1,attributes:{...e.data},links:e.links};return(0,n.streamedSpanJsonToSerializedSpan)(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_TRANSPORT_BUFFER_SIZE:()=>c,createTransport:()=>l});
41var n=r(409),i=r(413),o=r(448),a=r(1411),s=r(1413);const c=64;function l(e,t,r=(0,a.makePromiseBuffer)(e.bufferSize||c)){let l={};return{send:function(c){const u=[];if((0,o.forEachEnvelopeItem)(c,(t,r)=>{const n=(0,o.envelopeItemTypeToDataCategory)(r);(0,s.isRateLimited)(l,n)?e.recordDroppedEvent("ratelimit_backoff",n):u.push(t)}),0===u.length)return Promise.resolve({});const d=(0,o.createEnvelope)(c[0],u),p=t=>{(0,o.envelopeContainsItemType)(d,["client_report"])?n.DEBUG_BUILD&&i.debug.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`):(0,o.forEachEnvelopeItem)(d,(r,n)=>{e.recordDroppedEvent(t,(0,o.envelopeItemTypeToDataCategory)(n))})};return r.add(()=>t({body:(0,o.serializeEnvelope)(d)}).then(e=>413===e.statusCode?(n.DEBUG_BUILD&&i.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),p("send_error"),e):(n.DEBUG_BUILD&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&i.debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),l=(0,s.updateRateLimits)(l,e),e),e=>{throw p("network_error"),n.DEBUG_BUILD&&i.debug.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===a.SENTRY_BUFFER_FULL_ERROR)return n.DEBUG_BUILD&&i.debug.error("Skipped sending event because buffer is full."),p("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SENTRY_BUFFER_FULL_ERROR:()=>o,makePromiseBuffer:()=>a});var n=r(452),i=r(1412);const o=Symbol.for("SentryBufferFullError");function a(e=100){const t=new Set;function r(e){t.delete(e)}return{get $(){return Array.from(t)},add:function(i){if(!(t.size<e))return(0,n.rejectedSyncPromise)(o);const a=i();return t.add(a),a.then(()=>r(a),()=>r(a)),a},drain:function(e){if(!t.size)return(0,n.resolvedSyncPromise)(!0);const r=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return r;const o=[r,new Promise(t=>(0,i.safeUnref)(setTimeout(()=>t(!1),e)))];return Promise.race(o)}}}},(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}r.r(t),r.d(t,{safeUnref:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_RETRY_AFTER:()=>i,disabledUntil:()=>a,isRateLimited:()=>s,parseRetryAfterHeader:()=>o,updateRateLimits:()=>c});var n=r(415);const i=6e4;function o(e,t=(0,n.safeDateNow)()){const r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;const o=Date.parse(`${e}`);return isNaN(o)?i:o-t}function a(e,t){return e[t]||e.all||0}function s(e,t,r=(0,n.safeDateNow)()){return a(e,t)>r}function c(e,{statusCode:t,headers:r},i=(0,n.safeDateNow)()){const a={...e},s=r?.["x-sentry-rate-limits"],c=r?.["retry-after"];if(s)for(const e of s.trim().split(",")){const[t,r,,,n]=e.split(":",5),o=parseInt(t,10),s=1e3*(isNaN(o)?60:o);if(r)for(const e of r.split(";"))"metric_bucket"===e&&n&&!n.split(";").includes("custom")||(a[e]=i+s);else a.all=i+s}else c?a.all=i+o(c,i):429===t&&(a.all=i+6e4);return a}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createClientReportEnvelope:()=>o});var n=r(448),i=r(420);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,{convertSpanJsonToTransactionEvent:()=>o,convertTransactionEventToSpanJson:()=>i});var n=r(427);function i(e){const{trace_id:t,parent_span_id:r,span_id:i,status:o,origin:a,data:s,op:c}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:c,parent_span_id:r,span_id:i??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:s?.[n.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:s?.[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}function o(e){return{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}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resolveDataCollectionOptions:()=>o});var n=r(1417);const i={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0}
41,stackFrameVariables:!0,frameContextLines:5};function o(e){const t=null!=e.dataCollection?i:(0,n.defaultPiiToCollectionOptions)(e.sendDefaultPii),r=e.dataCollection??{};return{userInfo:r.userInfo??t.userInfo,cookies:r.cookies??t.cookies,httpHeaders:{request:r.httpHeaders?.request??t.httpHeaders.request,response:r.httpHeaders?.response??t.httpHeaders.response},httpBodies:r.httpBodies??t.httpBodies,queryParams:r.queryParams??t.queryParams,genAI:{inputs:r.genAI?.inputs??t.genAI.inputs,outputs:r.genAI?.outputs??t.genAI.outputs},stackFrameVariables:r.stackFrameVariables??t.stackFrameVariables,frameContextLines:r.frameContextLines??t.frameContextLines}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultPiiToCollectionOptions:()=>i});var n=r(1418);function i(e){return!0===e?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:n.PII_HEADER_SNIPPETS},httpHeaders:{request:{deny:n.PII_HEADER_SNIPPETS},response:{deny:n.PII_HEADER_SNIPPETS}},httpBodies:[],queryParams:{deny:n.PII_HEADER_SNIPPETS},genAI:{inputs:!1,outputs:!1},stackFrameVariables:!0,frameContextLines:7}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FILTERED_VALUE:()=>n,PII_HEADER_SNIPPETS:()=>i,SENSITIVE_COOKIE_NAME_SNIPPETS:()=>a,SENSITIVE_KEY_SNIPPETS:()=>o});const n="[Filtered]",i=["forwarded","-ip","remote-","via","-user"],o=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"],a=[".sid","sessid","remember","oidc","pkce","nonce","__secure-","__host-","awsalb","awselb","akamai","__stripe","cognito","firebase","supabase","sb-","mfa","2fa"]},(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,{applySdkMetadata:()=>i});var n=r(404);function i(e,t,r=[t],i="npm"){const o=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};o.name||(o.name=`sentry.javascript.${t}`,o.packages=r.map(e=>({name:`${i}:@sentry/${e}`,version:n.SDK_VERSION})),o.version=n.SDK_VERSION)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{eventFromException:()=>v,eventFromMessage:()=>b,eventFromUnknownInput:()=>_,exceptionFromError:()=>u,extractMessage:()=>y,extractType:()=>g});var n=r(401),i=r(414),o=r(411),a=r(417),s=r(412),c=r(452),l=r(1422);function u(e,t){const r=f(e,t),n={type:g(t),value:y(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function d(e,t,r,o){const s=(0,n.getClient)(),c=s?.getOptions().normalizeDepth,l=(d=t,Object.values(d).find(e=>e instanceof Error));var d;const p={__serialized__:(0,a.normalizeToSize)(t,c)};if(l)return{exception:{values:[u(e,l)]},extra:p};const h={exception:{values:[{type:(0,i.isEvent)(t)?t.constructor.name:o?"UnhandledRejection":"Error",value:E(t,{isUnhandledRejection:o})}]},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{}return[]}const h=/Minified React error #\d+;/i;function m(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function g(e){const t=e?.name;if(!t&&m(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 m(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?(0,l._enhanceErrorWithSentryInfo)(t.error):(0,l._enhanceErrorWithSentryInfo)(e):"No error message"}function v(e,t,r,n){const i=_(e,t,r?.syntheticException||void 0,n);return(0,o.addExceptionMechanism)(i),i.level="error",r?.event_id&&(i.event_id=r.event_id),(0,c.resolvedSyncPromise)(i)}function b(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,c.resolvedSyncPromise)(o)}function _(e,t,r,n,a){let s;if((0,i.isErrorEvent)(t)&&t.error){return p(e,t.error)}if((0,i.isDOMError)(t)||(0,i.isDOMException)(t)){const a=t;if("stack"in t){s=p(e,t);const i=s.exception?.values?.[0];if(n&&r&&i&&!i.stacktrace){const t=f(e,r);t.length&&(i.stacktrace={frames:t},(0,o.addExceptionMechanism)(s,{synthetic:!0}))}}else{const t=a.name||((0,i.isDOMError)(a)?"DOMError":"DOMException"),c=a.message?`${t}: ${a.message}`:t;s=S(e,c,r,n),(0,o.addExceptionTypeValue)(s,c)}return"code"in a&&(s.tags={...s.tags,"DOMException.code":`${a.code}`}),s}if((0,i.isError)(t))return p(e,t);if((0,i.isPlainObject)(t)||(0,i.isEvent)(t)){return s=d(e,t,r,a),(0,o.addExceptionMechanism)(s,{synthetic:!0}),s}return s=S(e,t,r,n),(0,o.addExceptionTypeValue)(s,`${t}`,void 0),(0,o.addExceptionMechanism)(s,{synthetic:!0}),s}function S(e,t,r,n){const a={};if(n&&r){const n=f(e,r);n.length&&(a.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,o.addExceptionMechanism)(a,{synthetic:!0})}
41if((0,i.isParameterizedString)(t)){const{__sentry_template_string__:e,__sentry_template_values__:r}=t;return a.logentry={message:e,params:r},a}return a.message=t,a}function E(e,{isUnhandledRejection:t}){const r=(0,s.extractExceptionKeysForMessage)(e),n=t?"promise rejection":"exception";if((0,i.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,i.isEvent)(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e)}\` (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,{_enhanceErrorWithSentryInfo:()=>c,eventFromMessage:()=>f,eventFromUnknownInput:()=>p,exceptionFromError:()=>l,parseStackFrames:()=>s});var n=r(414),i=r(411),o=r(417),a=r(412);function s(e,t){return e(t.stack||"",1)}function c(e){return function(e){return(0,n.isError)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__}(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function l(e,t){const r={type:t.name||t.constructor.name,value:c(t)},n=s(e,t);return n.length&&(r.stacktrace={frames:n}),r}function u(e){if("name"in e&&"string"==typeof e.name){let t=`'${e.name}' captured as exception`;return"message"in e&&"string"==typeof e.message&&(t+=` with message '${e.message}'`),t}if("message"in e&&"string"==typeof e.message)return e.message;const t=(0,a.extractExceptionKeysForMessage)(e);if((0,n.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as exception with message \`${e.message}\``;const r=function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`${r&&"Object"!==r?`'${r}'`:"Object"} captured as exception with keys: ${t}`}function d(e,t,r,i){if((0,n.isError)(r))return[r,void 0];if(t.synthetic=!0,(0,n.isPlainObject)(r)){const t=e?.getOptions().normalizeDepth,n={__serialized__:(0,o.normalizeToSize)(r,t)},a=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];if(r instanceof Error)return r}}(r);if(a)return[a,n];const s=u(r),c=i?.syntheticException||new Error(s);return c.message=s,[c,n]}const a=i?.syntheticException||new Error(r);return a.message=`${r}`,[a,void 0]}function p(e,t,r,n){const o=n?.data&&n.data.mechanism||{handled:!0,type:"generic"},[a,s]=d(e,o,r,n),c={exception:{values:[l(t,a)]}};return s&&(c.extra=s),(0,i.addExceptionTypeValue)(c,void 0,void 0),(0,i.addExceptionMechanism)(c,o),{...c,event_id:n?.event_id}}function f(e,t,r="info",o,a){const c={event_id:o?.event_id,level:r};if(a&&o?.syntheticException){const r=s(e,o.syntheticException);r.length&&(c.exception={values:[{value:t,stacktrace:{frames:r}}]},(0,i.addExceptionMechanism)(c,{synthetic:!0}))}if((0,n.isParameterizedString)(t)){const{__sentry_template_string__:e,__sentry_template_values__:r}=t;return c.logentry={message:e,params:r},c}return c.message=t,c}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WINDOW:()=>l,getHttpRequestData:()=>h,ignoreNextOnError:()=>p,shouldIgnoreOnError:()=>d,wrap:()=>f});var n=r(400),i=r(401),o=r(405),a=r(411),s=r(412),c=r(1424);const l=o.GLOBAL_OBJ;let u=0;function d(){return u>0}function p(){u++,setTimeout(()=>{u--})}function f(e,t={}){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if((0,s.getOriginalFunction)(e))return e}catch{return e}const r=function(...r){o.GLOBAL_OBJ._sentryWrappedDepth=(o.GLOBAL_OBJ._sentryWrappedDepth||0)+1;try{const n=r.map(e=>f(e,t));return e.apply(this,n)}catch(e){throw p(),(0,i.withScope)(i=>{i.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,n.captureException)(e)}),e}finally{o.GLOBAL_OBJ._sentryWrappedDepth=(o.GLOBAL_OBJ._sentryWrappedDepth||0)-1}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,s.markFunctionWrapped)(r,e),(0,s.addNonEnumerableProperty)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function h(){const e=(0,c.getLocationHref)(),{referrer:t}=l.document||{},{userAgent:r}=l.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getComponentName:()=>l,getLocationHref:()=>c,htmlTreeAsString:()=>a});var n=r(414);const i=r(405).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 l=" > ",u=l.length;let d;const p=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||o;for(;r&&a++<n&&(d=s(r,p),!("html"===d||a>1&&c+i.length*u+d.length>=f));)i.push(d),c+=d.length,r=r.parentNode;return i.reverse().join(l)}catch{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;
41if(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}`)}}for(const e of["aria-label","type","name","title","alt"]){const t=r.getAttribute(e);t&&o.push(`[${e}="${t}"]`)}return o.join("")}function c(){try{return i.document.location.href}catch{return""}}function l(e,t=5){if(!i.HTMLElement)return null;let r=e;for(let e=0;e<t;e++){if(!r)return null;if(r instanceof HTMLElement){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}r=r.parentNode}return null}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{breadcrumbsIntegration:()=>E});var n=r(401),i=r(1389),o=r(642),a=r(1426),s=r(1427),c=r(1429),l=r(413),u=r(411),d=r(1431),p=r(416),f=r(1432),h=r(1424),m=r(1433),g=r(1435),y=r(1436),v=r(1437),b=r(1438),_=r(1423);const S=1024,E=(0,i.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,s.addConsoleInstrumentationHandler)(function(e){return function(t){if((0,n.getClient)()!==e)return;const r={category:"console",data:{arguments:t.args,logger:"console"},level:(0,d.severityLevelFromString)(t.level),message:(0,p.safeJoin)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${(0,p.safeJoin)(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}(0,o.addBreadcrumb)(r,{input:t.args,level:t.level})}}(e)),t.dom&&(0,m.addClickKeypressInstrumentationHandler)(function(e,t){return function(r){if((0,n.getClient)()!==e)return;let i,a,s="object"==typeof t?t.serializeAttribute:void 0,c="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;c&&c>S&&(b.DEBUG_BUILD&&l.debug.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${c} was configured. Sentry will use 1024 instead.`),c=S),"string"==typeof s&&(s=[s]);try{const e=r.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;i=(0,v.htmlTreeAsString)(t,{keyAttrs:s,maxStringLength:c}),a=(0,h.getComponentName)(t)}catch{i="<unknown>"}if(0===i.length)return;const u={category:`ui.${r.name}`,message:i};a&&(u.data={"ui.component_name":a}),(0,o.addBreadcrumb)(u,{event:r.event,name:r.name,global:r.global})}}(e,t.dom)),t.xhr&&(0,y.addXhrInstrumentationHandler)(function(e){return function(t){if((0,n.getClient)()!==e)return;const{startTimestamp:r,endTimestamp:i}=t,s=t.xhr[y.SENTRY_XHR_DATA_KEY];if(!r||!i||!s)return;const{method:c,url:l,status_code:u,body:d}=s,p={method:c,url:l,status_code:u},f={xhr:t.xhr,input:d,startTimestamp:r,endTimestamp:i},h={category:"xhr",data:p,type:"http",level:(0,a.getBreadcrumbLogLevelFromHttpStatusCode)(u)};e.emit("beforeOutgoingRequestBreadcrumb",h,f),(0,o.addBreadcrumb)(h,f)}}(e)),t.fetch&&(0,c.addFetchInstrumentationHandler)(function(e){return function(t){if((0,n.getClient)()!==e)return;const{startTimestamp:r,endTimestamp:i}=t;if(i&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const n={data:t.error,input:t.args,startTimestamp:r,endTimestamp:i},a={category:"fetch",data:t.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,n),(0,o.addBreadcrumb)(a,n)}else{const n=t.response,s={...t.fetchData,status_code:n?.status},c={input:t.args,response:n,startTimestamp:r,endTimestamp:i},l={category:"fetch",data:s,type:"http",level:(0,a.getBreadcrumbLogLevelFromHttpStatusCode)(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",l,c),(0,o.addBreadcrumb)(l,c)}}}(e)),t.history&&(0,g.addHistoryInstrumentationHandler)(function(e){return function(t){if((0,n.getClient)()!==e)return;let r=t.from,i=t.to;const a=(0,f.parseUrl)(_.WINDOW.location.href);let s=r?(0,f.parseUrl)(r):void 0;const c=(0,f.parseUrl)(i);s?.path||(s=a),a.protocol===c.protocol&&a.host===c.host&&(i=c.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),(0,o.addBreadcrumb)({category:"navigation",data:{from:r,to:i}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){(0,n.getClient)()===e&&(0,o.addBreadcrumb)({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,u.getEventDescription)(t)},{event:t})}}(e))}}})},(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";r.r(t),r.d(t,{addConsoleInstrumentationFilter:()=>d,addConsoleInstrumentationHandler:()=>u});
41var n=r(409),i=r(413),o=r(412),a=r(416),s=r(405),c=r(1428);const l=new Set([]);function u(e){const t="console",r=(0,c.addHandler)(t,e);return(0,c.maybeInstrument)(t,p),r}function d(e){for(const t of e)l.add(t);return()=>{for(const t of e)l.delete(t)}}function p(){"console"in s.GLOBAL_OBJ&&i.CONSOLE_LEVELS.forEach(function(e){e in s.GLOBAL_OBJ.console&&(0,o.fill)(s.GLOBAL_OBJ.console,e,function(t){return i.originalConsoleMethods[e]=t,function(...t){const r=t[0],o=i.originalConsoleMethods[e],u=l.size&&"string"==typeof r&&(0,a.stringMatchesSomePattern)(r,l);u||(0,c.triggerHandlers)("console",{args:t,level:e}),(!u||n.DEBUG_BUILD&&i.debug.isEnabled())&&o?.apply(s.GLOBAL_OBJ.console,t)}})})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addHandler:()=>c,maybeInstrument:()=>u,resetInstrumentationHandlers:()=>l,triggerHandlers:()=>d});var n=r(409),i=r(413),o=r(419);const a={},s={};function c(e,t){return a[e]=a[e]||[],a[e].push(t),()=>{const r=a[e];if(r){const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}}function l(){Object.keys(a).forEach(e=>{a[e]=void 0})}function u(e,t){if(!s[e]){s[e]=!0;try{t()}catch(t){n.DEBUG_BUILD&&i.debug.error(`Error while instrumenting ${e}`,t)}}}function d(e,t){const r=e&&a[e];if(r)for(const a of r)try{a(t)}catch(t){n.DEBUG_BUILD&&i.debug.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,{addFetchEndInstrumentationHandler:()=>d,addFetchInstrumentationHandler:()=>u,parseFetchArgs:()=>g});var n=r(401),i=r(414),o=r(412),a=r(1430),s=r(420),c=r(405),l=r(1428);function u(e,t){const r="fetch",n=(0,l.addHandler)(r,e);return(0,l.maybeInstrument)(r,()=>p(void 0,t)),n}function d(e){const t="fetch-body-resolved",r=(0,l.addHandler)(t,e);return(0,l.maybeInstrument)(t,()=>p(f)),r}function p(e,t=!1){t&&!(0,a.supportsNativeFetch)()||(0,o.fill)(c.GLOBAL_OBJ,"fetch",function(t){return function(...r){const a=new Error,{method:u,url:d}=g(r),p={args:r,fetchData:{method:u,url:d},startTimestamp:1e3*(0,s.timestampInSeconds)(),virtualError:a,headers:y(r)};return e||(0,l.triggerHandlers)("fetch",{...p}),t.apply(c.GLOBAL_OBJ,r).then(async t=>(e?e(t):(0,l.triggerHandlers)("fetch",{...p,endTimestamp:1e3*(0,s.timestampInSeconds)(),response:t}),t),e=>{(0,l.triggerHandlers)("fetch",{...p,endTimestamp:1e3*(0,s.timestampInSeconds)(),error:e}),(0,i.isError)(e)&&void 0===e.stack&&(e.stack=a.stack,(0,o.addNonEnumerableProperty)(e,"framesToPop",1));const t=(0,n.getClient)(),r=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==r&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{const t=new URL(p.fetchData.url).host;"always"===r?e.message=`${e.message} (${t})`:(0,o.addNonEnumerableProperty)(e,"__sentry_fetch_url_host__",t)}catch{}throw 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{o=!1}finally{clearTimeout(e)}}clearTimeout(i),n.releaseLock(),r.cancel().then(null,()=>{})}}(t,()=>{(0,l.triggerHandlers)("fetch-body-resolved",{endTimestamp:1e3*(0,s.timestampInSeconds)(),response:e})})}function h(e,t){return!!e&&"object"==typeof e&&!!e[t]}function m(e){return"string"==typeof e?e:e?h(e,"url")?e.url:e.toString?e.toString():"":""}function g(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,r]=e;return{url:m(t),method:h(r,"method")?String(r.method).toUpperCase():(0,i.isRequest)(t)&&h(t,"method")?String(t.method).toUpperCase():"GET"}}const t=e[0];return{url:m(t),method:h(t,"method")?String(t.method).toUpperCase():"GET"}}function y(e){const[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if((0,i.isRequest)(t))return new Headers(t.headers)}catch{}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isNativeFunction:()=>p,supportsDOMError:()=>s,supportsDOMException:()=>c,supportsErrorEvent:()=>a,supportsFetch:()=>u,supportsHistory:()=>l,supportsNativeFetch:()=>f,supportsReferrerPolicy:()=>m,supportsReportingObserver:()=>h});var n=r(409),i=r(413);const o=r(405).GLOBAL_OBJ;function a(){try{return new ErrorEvent(""),!0}catch{return!1}}function s(){try{return new DOMError(""),!0}catch{return!1}}function c(){try{return new DOMException(""),!0}catch{return!1}}function l(){return"history"in o&&!!o.history}const u=d;function d(){if(!("fetch"in o))return!1;
41try{return new Headers,new Request("data:,"),new Response,!0}catch{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(!d())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.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function h(){return"ReportingObserver"in o}function m(){if(!d())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}},(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";r.r(t),r.d(t,{getHttpSpanDetailsFromUrlObject:()=>l,getSanitizedUrlString:()=>p,getSanitizedUrlStringFromUrlObject:()=>s,isURLObjectRelative:()=>o,parseStringToURLObject:()=>a,parseUrl:()=>u,stripDataUrlContent:()=>f,stripUrlQueryAndFragment:()=>d});var n=r(427);const i="thismessage:/";function o(e){return"isRelative"in e}function a(e,t){const r=e.indexOf("://")<=0&&0!==e.indexOf("//"),n=t??(r?i:void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;const t=new URL(e,n);return r?{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function s(e){if(o(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function c(e,t,r,n){return`${r?.method?.toUpperCase()??"GET"} ${n||(e?"client"===t?s(e):e.pathname:"/")}`}function l(e,t,r,i,a){const s={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:r,[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"};return a&&(s["server"===t?"http.route":"url.template"]=a,s[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route"),i?.method&&(s[n.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]=i.method.toUpperCase()),e&&(e.search&&(s["url.query"]=e.search),e.hash&&(s["url.fragment"]=e.hash),e.pathname&&(s["url.path"]=e.pathname,"/"===e.pathname&&(s[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route")),o(e)||(s[n.SEMANTIC_ATTRIBUTE_URL_FULL]=e.href,e.port&&(s["url.port"]=e.port),e.protocol&&(s["url.scheme"]=e.protocol),e.hostname&&(s["server"===t?"server.address":"url.domain"]=e.hostname))),[c(e,t,i,a),s]}function u(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 d(e){return e.split(/[?#]/,1)[0]}function p(e){const{protocol:t,host:r,path:n}=e;return`${t?`${t}://`:""}${r?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${n}`}function f(e,t=!0){if(e.startsWith("data:")){const r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",i=e.includes(";base64,"),o=e.indexOf(",");let a="";if(t&&-1!==o){const t=e.slice(o+1);a=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${n}${i?",base64":""}${a?`,${a}`:""}`}return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addClickKeypressInstrumentationHandler:()=>d,instrumentDOM:()=>p});var n=r(1428),i=r(411),o=r(412),a=r(1434);const s=1e3;let c,l,u;function d(e){(0,n.addHandler)("dom",e),(0,n.maybeInstrument)("dom",p)}function p(){if(!a.WINDOW.document)return;const e=n.triggerHandlers.bind(null,"dom"),t=f(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,o.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=f(e);o.handler=n,t.call(this,r,n,i)}o.refCount++}catch{}return t.call(this,r,n,i)}}),(0,o.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{}return e.call(this,t,r,n)}}))})}function f(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;const n=function(e){try{return e.target}catch{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,o.addNonEnumerableProperty)(r,"_sentryCaptured",!0),n&&!n._sentryId&&(0,o.addNonEnumerableProperty)(n,"_sentryId",(0,i.uuid4)());const d="keypress"===r.type?"input":r.type;if(!function(e){if(e.type!==l)return!1;try{if(!e.target||e.target._sentryId!==u)return!1}catch{}return!0}(r)){e({event:r,name:d,global:t}),l=r.type,u=n?n._sentryId:void 0}clearTimeout(c),c=a.WINDOW.setTimeout(()=>{u=void 0,l=void 0},s)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WINDOW:()=>n});const n=r(405).GLOBAL_OBJ},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addHistoryInstrumentationHandler:()=>c,instrumentHistory:()=>l});var n=r(1428),i=r(412),o=r(1430),a=r(1434);let s;function c(e){const t="history";(0,n.addHandler)(t,e),(0,n.maybeInstrument)(t,l)}function l(){function e(e){return function(...t){const r=t.length>2?t[2]:void 0;if(r){const i=s,o=function(e){try{return new URL(e,a.WINDOW.location.origin).toString()}catch{return e}}(String(r));if(s=o,i===o)return e.apply(this,t);const c={from:i,to:o};(0,n.triggerHandlers)("history",c)}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,o.supportsHistory)()&&((0,i.fill)(a.WINDOW.history,"pushState",e),(0,i.fill)(a.WINDOW.history,"replaceState",e))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SENTRY_XHR_DATA_KEY:()=>s,addXhrInstrumentationHandler:()=>c,instrumentXHR:()=>l});
41var n=r(1428),i=r(414),o=r(420),a=r(1434);const s="__sentry_xhr_v3__";function c(e){(0,n.addHandler)("xhr",e),(0,n.maybeInstrument)("xhr",l)}function l(){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,o.timestampInSeconds)(),l=(0,i.isString)(r[0])?r[0].toUpperCase():void 0,u=function(e){if((0,i.isString)(e))return e;try{return e.toString()}catch{}return}(r[1]);if(!l||!u)return e.apply(t,r);t[s]={method:l,url:u,request_headers:{}},"POST"===l&&u.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const d=()=>{const e=t[s];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}const r={endTimestamp:1e3*(0,o.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)=>(d(),e.apply(t,r))}):t.addEventListener("readystatechange",d),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){const[n,o]=r,a=t[s];return a&&(0,i.isString)(n)&&(0,i.isString)(o)&&(a.request_headers[n.toLowerCase()]=o),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){const i=t[s];if(!i)return e.apply(t,r);void 0!==r[0]&&(i.body=r[0]);const a={startTimestamp:1e3*(0,o.timestampInSeconds)(),xhr:t};return(0,n.triggerHandlers)("xhr",a),e.apply(t,r)}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{htmlTreeAsString:()=>o});var n=r(414);const i=80;function o(e,t={}){if(!e)return"<unknown>";try{let r=e;const n=5,o=[];let s=0,c=0;const l=" > ",u=l.length;let d;const p=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||i;for(;r&&s++<n&&(d=a(r,p),!("html"===d||s>1&&c+o.length*u+d.length>=f));)o.push(d),c+=d.length,r=r.parentNode;return o.reverse().join(l)}catch{return"<unknown>"}}function a(e,t){const r=e,i=[];if(!r?.tagName)return"";if("undefined"!=typeof HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}i.push(r.tagName.toLowerCase());const o=t?.length?t.filter(e=>r.getAttribute(e)).map(e=>[e,r.getAttribute(e)]):null;if(o?.length)o.forEach(e=>{i.push(`[${e[0]}="${e[1]}"]`)});else{r.id&&i.push(`#${r.id}`);const e=r.className;if(e&&(0,n.isString)(e)){const t=e.split(/\s+/);for(const e of t)i.push(`.${e}`)}}for(const e of["aria-label","type","name","title","alt"]){const t=r.getAttribute(e);t&&i.push(`[${e}="${t}"]`)}return i.join("")}},(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,{browserApiErrorsIntegration:()=>c});var n=r(1389),i=r(412),o=r(419),a=r(1423);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".split(","),c=(0,n.defineIntegration)((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,i.fill)(a.WINDOW,"setTimeout",l),t.setInterval&&(0,i.fill)(a.WINDOW,"setInterval",l),t.requestAnimationFrame&&(0,i.fill)(a.WINDOW,"requestAnimationFrame",u),t.XMLHttpRequest&&"XMLHttpRequest"in a.WINDOW&&(0,i.fill)(XMLHttpRequest.prototype,"send",d);const e=t.eventTarget;if(e){(Array.isArray(e)?e:s).forEach(e=>function(e,t){const r=a.WINDOW,n=r[e]?.prototype;if(!n?.hasOwnProperty?.("addEventListener"))return;(0,i.fill)(n,"addEventListener",function(r){return function(n,i,s){try{"function"==typeof i.handleEvent&&(i.handleEvent=(0,a.wrap)(i.handleEvent,{mechanism:{data:{handler:(0,o.getFunctionName)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&function(e,t,r){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,r)}(this,n,i),r.apply(this,[n,(0,a.wrap)(i,{mechanism:{data:{handler:(0,o.getFunctionName)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),s])}}),(0,i.fill)(n,"removeEventListener",function(e){return function(t,r,n){try{const i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch{}return e.call(this,t,r,n)}})}(e,t))}}}});function l(e){return function(...t){const r=t[0];return t[0]=(0,a.wrap)(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,o.getFunctionName)(e)}`}}),e.apply(this,t)}}function u(e){return function(t){return e.apply(this,[(0,a.wrap)(t,{mechanism:{data:{handler:(0,o.getFunctionName)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function d(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e
41=>{e in r&&"function"==typeof r[e]&&(0,i.fill)(r,e,function(t){const r={mechanism:{data:{handler:(0,o.getFunctionName)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=(0,i.getOriginalFunction)(t);return n&&(r.mechanism.data.handler=(0,o.getFunctionName)(n)),(0,a.wrap)(t,r)})}),e.apply(this,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserSessionIntegration:()=>u});var n=r(400),i=r(401),o=r(1389),a=r(413),s=r(1435),c=r(1438),l=r(1423);const u=(0,o.defineIntegration)((e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===l.WINDOW.document)return void(c.DEBUG_BUILD&&a.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));(0,n.startSession)({ignoreDuration:!0}),(0,n.captureSession)();const e=(0,i.getIsolationScope)();let r=e.getUser();e.addScopeListener(e=>{const t=e.getUser();r?.id===t?.id&&r?.ip_address===t?.ip_address||((0,n.captureSession)(),r=t)}),"route"===t&&(0,s.addHistoryInstrumentationHandler)(({from:e,to:t})=>{e!==t&&((0,n.startSession)({ignoreDuration:!0}),(0,n.captureSession)())})}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{cultureContextIntegration:()=>a});var n=r(1442),i=r(1389),o=r(1423);const a=(0,i.defineIntegration)(()=>({name:"CultureContext",preprocessEvent(e){const t=s();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){const t=s();t&&(0,n.safeSetSpanJSONAttributes)(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}}));function s(){try{const e=o.WINDOW.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyBeforeSendSpanCallback:()=>p,captureSpan:()=>u,inferSpanDataFromOtelAttributes:()=>m,safeSetSpanJSONAttributes:()=>d});var n=r(427),i=r(454),o=r(1432),a=r(434),s=r(437),c=r(447),l=r(1443);function u(e,t){const r=(0,a.spanToStreamedSpanJSON)(e),o=(0,a.INTERNAL_getSegmentSpan)(e),u=(0,a.spanToStreamedSpanJSON)(o),{isolationScope:f,scope:h}=(0,s.getCapturedScopesOnSpan)(e),g=(0,i.getCombinedScopeData)(f,h);!function(e,t,r,i){const o=r.getSdkMetadata(),{release:a,environment:s}=r.getOptions();d(e,{[n.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE]:a,[n.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]:s,[n.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME]:t.name,[n.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID]:t.span_id,[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME]:o?.sdk?.name,[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION]:o?.sdk?.version,[n.SEMANTIC_ATTRIBUTE_USER_ID]:i.user?.id,[n.SEMANTIC_ATTRIBUTE_USER_EMAIL]:i.user?.email,[n.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:i.user?.ip_address,[n.SEMANTIC_ATTRIBUTE_USER_USERNAME]:i.user?.username,...i.attributes})}(r,u,t,g);m(r,e.kind),r.is_segment&&(!function(e,t){const r=(0,l.scopeContextsToSpanAttributes)(t.contexts);d(e,r)}(r,g),function(e,t){const r=t.getIntegrationNames();if(!r.length)return;d(e,{[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]:r})}(r,t),t.emit("processSegmentSpan",r)),t.emit("processSpan",r);const{beforeSendSpan:y}=t.getOptions(),v=y&&(0,c.isStreamedBeforeSendSpanCallback)(y)?p(r,y):r,b=v.attributes?.[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return b&&d(v,{"sentry.span.source":b}),{...(0,a.streamedSpanJsonToSerializedSpan)(v),_segmentSpan:o}}function d(e,t){const r=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in r||(r[e]=t)})}function p(e,t){const r=t(e);return r||((0,a.showSpanDropWarning)(),e)}const f=1,h=2;function m(e,t){const r=e.attributes;if(!r)return;const i=r["http.request.method"]||r["http.method"];if(i)return void function(e,t,r,i){const a=["http"];r===h?a.push("client"):r===f&&a.push("server");t["sentry.http.prefetch"]&&a.push("prefetch");d(e,{[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:a.join(".")});const s=t[n.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];if("string"==typeof s)return void(e.name=s);if("custom"===t[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE])return;const c=t["http.route"];if("string"==typeof c)e.name=`${i} ${c}`,d(e,{[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route"});else{if(r===h||r===f){const n=function(e,t){const r=e["http.url"]||e["url.full"],n=e["http.target"],i="string"==typeof r?(0,o.parseUrl)(r):void 0,a=i?(0,o.getSanitizedUrlString)(i):void 0;if(t===f&&"string"==typeof n)return(0,o.stripUrlQueryAndFragment)(n);if(a)return a;
41if("string"==typeof n)return(0,o.stripUrlQueryAndFragment)(n);return}(t,r);n&&(e.name=`${i} ${n}`)}d(e,{[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"})}}(e,r,t,i);const a=r["db.system.name"]||r["db.system"],s="string"==typeof r[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]&&`${r[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]}`.startsWith("cache.");if(a&&!s)return void function(e,t){d(e,{[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"});const r=t[n.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];if("string"==typeof r)return void(e.name=r);if("custom"===t[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE])return;const i=t["db.statement"];i&&(e.name=`${i}`,d(e,{[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"task"}))}(e,r);if(r["rpc.service"])return void d(e,{[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"rpc"});if(r["messaging.system"])return void d(e,{[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"message"});const c=r["faas.trigger"];c&&d(e,{[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${c}`})}},(e,t,r)=>{"use strict";function n(e){const t={},{response:r,profile:n,cloud_resource:i,culture:o,state:a}=e;if(r&&(null!=r.status_code&&(t["http.response.status_code"]=r.status_code),null!=r.body_size&&(t["http.response.body.size"]=r.body_size)),n&&(n.profile_id&&(t["sentry.profile_id"]=n.profile_id),n.profiler_id&&(t["sentry.profiler_id"]=n.profiler_id)),i)for(const[e,r]of Object.entries(i))null!=r&&(t[e]=r);o&&(o.locale&&(t["culture.locale"]=o.locale),o.timezone&&(t["culture.timezone"]=o.timezone)),a?.state&&"string"==typeof a.state.type&&(t["state.type"]=a.state.type);const s=e.angular;if(s){const e=s.version;"string"!=typeof e&&"number"!=typeof e||(t["angular.version"]=e)}const c=e.react;if(c){const e=c.version;"string"!=typeof e&&"number"!=typeof e||(t["react.version"]=e)}return t}r.r(t),r.d(t,{scopeContextsToSpanAttributes:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_eventFromRejectionWithPrimitive:()=>v,_getUnhandledRejectionError:()=>y,globalHandlersIntegration:()=>g});var n=r(400),i=r(401),o=r(1389),a=r(1445),s=r(1446),c=r(414),l=r(413),u=r(419),d=r(1432),p=r(1424),f=r(1438),h=r(1421),m=r(1423);const g=(0,o.defineIntegration)((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){(0,a.addGlobalErrorInstrumentationHandler)(t=>{const{stackParser:r,attachStacktrace:o}=_();if((0,i.getClient)()!==e||(0,m.shouldIgnoreOnError)())return;const{msg:a,url:s,line:c,column:l,error:d}=t,f=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||{},c=s.frames=s.frames||[];0===c.length&&c.push({colno:n,lineno:r,filename:S(t)??(0,p.getLocationHref)(),function:u.UNKNOWN_FUNCTION,in_app:!0});return e}((0,h.eventFromUnknownInput)(r,d||a,void 0,o,!1),s,c,l);f.level="error",(0,n.captureEvent)(f,{originalException:d,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(e),b("onerror")),t.onunhandledrejection&&(!function(e){(0,s.addGlobalUnhandledRejectionInstrumentationHandler)(t=>{const{stackParser:r,attachStacktrace:o}=_();if((0,i.getClient)()!==e||(0,m.shouldIgnoreOnError)())return;const a=y(t),s=(0,c.isPrimitive)(a)?v(a):(0,h.eventFromUnknownInput)(r,a,void 0,o,!0);s.level="error",(0,n.captureEvent)(s,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(e),b("onunhandledrejection"))}}});function y(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}function v(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function b(e){f.DEBUG_BUILD&&l.debug.log(`Global Handler attached: ${e}`)}function _(){const e=(0,i.getClient)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function S(e){if((0,c.isString)(e)&&0!==e.length)return e.startsWith("data:")?`<${(0,d.stripDataUrlContent)(e,!1)}>`:e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addGlobalErrorInstrumentationHandler:()=>a});var n=r(405),i=r(1428);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(405),i=r(1428);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(1442),i=r(1389),o=r(1423);const a=(0,i.defineIntegration)(()=>({name:"HttpContext",preprocessEvent(e){if(!o.WINDOW.navigator&&!o.WINDOW.location&&!o.WINDOW.document)return;const t=(0,o.getHttpRequestData)(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}},processSegmentSpan(e){if(!o.WINDOW.navigator&&!o.WINDOW.location&&!o.WINDOW.document)return;const t=(0,o.getHttpRequestData)();(0,n.safeSetSpanJSONAttributes)(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers["User-Agent"],"http.request.header.referer":t.headers.Referer})}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{linkedErrorsIntegration:()=>a});var n=r(1389),i=r(1449),o=r(1421);const a=(0,n.defineIntegration)((e={})=>{const t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,a){const s=a.getOptions();(0,i.applyAggregateErrorsToEvent)(o.exceptionFromError,s.stackParser,r,t,e,n)}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyAggregateErrorsToEvent:()=>i});var n=r(414);
41function i(e,t,r,i,a,s){if(!a.exception?.values||!s||!(0,n.isInstanceOf)(s.originalException,Error))return;const c=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;c&&(a.exception.values=o(e,t,i,s.originalException,r,a.exception.values,c,0))}function o(e,t,r,i,l,u,d,p){if(u.length>=r+1)return u;let f=[...u];if((0,n.isInstanceOf)(i[l],Error)){s(d,p,i);const n=e(t,i[l]),a=f.length;c(n,l,a,p),f=o(e,t,r,i[l],l,[n,...f],n,a)}return a(i)&&i.errors.forEach((a,u)=>{if((0,n.isInstanceOf)(a,Error)){s(d,p,i);const n=e(t,a),h=f.length;c(n,`errors[${u}]`,h,p),f=o(e,t,r,a,l,[n,...f],n,h)}}),f}function a(e){return Array.isArray(e.errors)}function s(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...a(r)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function c(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{chromeStackLineParser:()=>l,defaultStackLineParsers:()=>b,defaultStackParser:()=>_,geckoStackLineParser:()=>p,opera10StackLineParser:()=>g,opera11StackLineParser:()=>v,winjsStackLineParser:()=>h});var n=r(419);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=/at (.+?) ?\(data:(.+?),/,l=[30,e=>{const t=e.match(c);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const r=o.exec(e);if(r){const[,e,t,o]=r;return i(e,n.UNKNOWN_FUNCTION,+t,+o)}const l=a.exec(e);if(l){if(0===l[2]?.indexOf("eval")){const e=s.exec(l[2]);e&&(l[2]=e[1],l[3]=e[2],l[4]=e[3])}const[e,t]=S(l[1]||n.UNKNOWN_FUNCTION,l[2]);return i(t,e,l[3]?+l[3]:void 0,l[4]?+l[4]:void 0)}}],u=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,d=/(\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=d.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}],m=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,g=[10,e=>{const t=m.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,v=[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}],b=[l,p],_=(0,n.createStackParser)(...b),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:()=>s});var n=r(1410),i=r(1411),o=r(1452);const a=40;function s(e,t=(0,o.getNativeImplementation)("fetch")){let r=0,s=0;return(0,n.createTransport)(e,async function(n){const i=n.body.length;r+=i,s++;const a={body:n.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&s<15,...e.fetchOptions};try{const r=await t(e.url,a);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(e){throw(0,o.clearCachedImplementation)("fetch"),e}finally{r-=i,s--}},(0,i.makePromiseBuffer)(e.bufferSize||a))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{clearCachedImplementation:()=>l,fetch:()=>u,getNativeImplementation:()=>c,setTimeout:()=>d});var n=r(413),i=r(1430),o=r(1453),a=r(1434);const s={};function c(e){const t=s[e];if(t)return t;let r=a.WINDOW[e];if((0,i.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&&n.debug.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?s[e]=r.bind(a.WINDOW):r}function l(e){s[e]=void 0}function u(...e){return c("fetch")(...e)}function d(...e){return c("setTimeout")(...e)}
41},(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,{normalizeStringifyValue:()=>a});var n=r(1437),i=r(1455);const o=/^HTML(\w*)Element$/;function a(e){if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if((0,i.isElement)(e)){const t=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(e);if(o.test(t))return`[HTMLElement: ${(0,n.htmlTreeAsString)(e)}]`}}},(e,t,r)=>{"use strict";function n(e){if("undefined"==typeof Element)return!1;try{return e instanceof Element}catch{return!1}}r.r(t),r.d(t,{isElement:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{checkAndWarnIfIsEmbeddedBrowserExtension:()=>s});var n=r(413),i=r(1424),o=r(1438),a=r(1423);function s(){return!!function(){if(void 0===a.WINDOW.window)return!1;const e=a.WINDOW;if(e.nw)return!1;const t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;const r=(0,i.getLocationHref)();return!(a.WINDOW===a.WINDOW.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(r))}()&&(o.DEBUG_BUILD&&(0,n.consoleSandbox)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BROWSER_TRACING_INTEGRATION_ID:()=>P,browserTracingIntegration:()=>M,getMetaContent:()=>L,getServerTiming:()=>F,isBotUserAgent:()=>C,startBrowserTracingNavigationSpan:()=>N,startBrowserTracingPageLoadSpan:()=>D});var n=r(1458),i=r(1459),o=r(426),a=r(440),s=r(427),c=r(401),l=r(430),u=r(434),d=r(432),p=r(405),f=r(413),h=r(412),m=r(420),g=r(438),y=r(1432),v=r(422),b=r(1424),_=r(1460),S=r(1435),E=r(1438),w=r(1423),T=r(1488),x=r(1489),O=r(1492),A=r(1493),R=r(1494);const P="BrowserTracing",I=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function C(){const e=w.WINDOW.navigator;return!!e?.userAgent&&I.test(e.userAgent)}const k={...i.TRACING_DEFAULTS,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...R.defaultRequestInstrumentationOptions},M=(e={})=>{"enableElementTiming"in e&&(0,f.consoleSandbox)(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const t={name:void 0,source:void 0},r=w.WINDOW.document,{enableInp:h,enableLongTask:I,enableLongAnimationFrame:M,_experiments:{enableInteractions:B,enableStandaloneClsSpans:z,enableStandaloneLcpSpans:V},beforeStartSpan:G,idleTimeout:$,finalTimeout:q,childSpanTimeout:W,markBackgroundSpan:K,traceFetch:Y,traceXHR:J,trackFetchStreamPerformance:Q,shouldCreateSpanForRequest:X,enableHTTPTimings:Z,ignoreResourceSpans:ee,ignorePerformanceApiSpans:te,instrumentPageLoad:re,instrumentNavigation:ne,detectRedirects:ie,linkPreviousTrace:oe,consistentTraceSampling:ae,enableReportPageLoaded:se,onRequestSpanStart:ce,onRequestSpanEnd:le}={...k,...e},ue=C();let de,pe;function fe(e,n,l=!0){const p="pageload"===n.op,f=n.name,h=G?G(n):n,g=h.attributes||{};if(f!==h.name&&(g[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",h.attributes=g),!l){const e=(0,m.dateTimestampInSeconds)();return void(0,o.startInactiveSpan)({...h,startTime:e}).end(e)}t.name=h.name,t.source=g[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];const y=(0,i.startIdleSpan)(h,{idleTimeout:$,finalTimeout:q,childSpanTimeout:W,disableAutoFinish:p,beforeSpanEnd:t=>{(0,_.addPerformanceEntries)(t,{ignoreResourceSpans:ee,ignorePerformanceApiSpans:te,spanStreamingEnabled:(0,d.hasSpanStreamingEnabled)(e)}),U(e,void 0);const r=(0,c.getCurrentScope)(),n=r.getPropagationContext();r.setPropagationContext({...n,traceId:y.spanContext().traceId,sampled:(0,u.spanIsSampled)(y),dsc:(0,a.getDynamicSamplingContextFromSpan)(t)}),p&&(pe=void 0)},trimIdleSpanEndTimestamp:!se});function v(){r&&["interactive","complete"].includes(r.readyState)&&e.emit("idleSpanEnableAutoFinish",y)}p&&se&&(pe=y),U(e,y),p&&!se&&r&&(r.addEventListener("readystatechange",()=>{v()}),v())}return{name:P,setup(e){if(ue)E.DEBUG_BUILD&&f.debug.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");else{if((0,n.registerSpanErrorInstrumentation)(),M&&p.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?(0,_.startTrackingLongAnimationFrames)():I&&(0,_.startTrackingLongTasks)(),B&&(0,_.startTrackingInteractions)(),ie&&r){const e=()=>{de=(0,m.timestampInSeconds)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}e.on("startNavigationSpan",(r,n)=>{if((0,c.getClient)()!==e)return;if(n?.isRedirect)return E.DEBUG_BUILD&&f.debug.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),void fe(e,{op:"navigation.redirect",...r},!1);de=void 0,t(),(0,c.getIsolationScope)().setPropagationContext({traceId:(0,v.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,l.hasSpansEnabled)()?void 0:(0,v.generateSpanId)()});const i=(0,c.getCurrentScope)();i.setPropagationContext({traceId:(0,v.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,l.hasSpansEnabled)()?void 0:(0,v.generateSpanId)()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),fe(e,{op:"navigation",...r,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(r,n={})=>
41{if((0,c.getClient)()!==e)return;t();const i=n.sentryTrace||L("sentry-trace")||F("sentry-trace"),o=n.baggage||L("baggage")||F("baggage"),a=(0,g.propagationContextFromHeaders)(i,o),s=(0,c.getCurrentScope)();s.setPropagationContext(a),(0,l.hasSpansEnabled)()||(s.getPropagationContext().propagationSpanId=(0,v.generateSpanId)()),s.setSDKProcessingMetadata({normalizedRequest:(0,w.getHttpRequestData)()}),fe(e,{op:"pageload",...r})}),e.on("endPageloadSpan",()=>{se&&pe&&(pe.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"reportPageLoaded"),pe.end())})}function t(){const t=j(e);t&&!(0,u.spanToJSON)(t).timestamp&&(E.DEBUG_BUILD&&f.debug.log(`[Tracing] Finishing current active span with op: ${(0,u.spanToJSON)(t).op}`),t.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"cancelled"),t.end())}},afterAllSetup(e){if(ue)return;e.addIntegration&&!e.getIntegrationByName?.(x.WEB_VITALS_INTEGRATION_NAME)&&e.addIntegration((0,x.webVitalsIntegration)({ignore:h?[]:["inp"],_experiments:{enableStandaloneClsSpans:z,enableStandaloneLcpSpans:V}}));let r=(0,b.getLocationHref)();if("off"!==oe&&(0,A.linkTraces)(e,{linkPreviousTrace:oe,consistentTraceSampling:ae}),w.WINDOW.location){if(re){const t=(0,m.browserPerformanceTimeOrigin)();D(e,{name:w.WINDOW.location.pathname,startTime:t?t/1e3:void 0,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}ne&&(0,S.addHistoryInstrumentationHandler)(({to:t,from:n})=>{if(void 0===n&&-1!==r?.indexOf(t))return void(r=void 0);r=void 0;const i=(0,y.parseStringToURLObject)(t),o=j(e),a=o&&ie&&function(e,t){const r=(0,u.spanToJSON)(e),n=(0,m.dateTimestampInSeconds)(),i=r.start_timestamp;if(n-i>H)return!1;if(t&&n-t<=H)return!1;return!0}(o,de);N(e,{name:i?.pathname||w.WINDOW.location.pathname,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}},{url:t,isRedirect:a})})}K&&(0,O.registerBackgroundTabDetection)(),B&&function(e,t,r,n,o){const a=w.WINDOW.document;let c;const l=()=>{const a="ui.action.click",l=j(e);if(l){const e=(0,u.spanToJSON)(l).op;if(["navigation","pageload"].includes(e))return void(E.DEBUG_BUILD&&f.debug.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`))}c&&(c.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),c.end(),c=void 0),o.name?c=(0,i.startIdleSpan)({name:o.name,op:a,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o.source||"url"}},{idleTimeout:t,finalTimeout:r,childSpanTimeout:n}):E.DEBUG_BUILD&&f.debug.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`)};a&&addEventListener("click",l,{capture:!0})}(e,$,q,W,t),(0,R.instrumentOutgoingRequests)(e,{traceFetch:Y,traceXHR:J,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:X,enableHTTPTimings:Z,onRequestSpanStart:ce,onRequestSpanEnd:le}),Q&&e.addIntegration((0,T.fetchStreamPerformanceIntegration)())}}};function D(e,t,r){e.emit("startPageLoadSpan",t,r),(0,c.getCurrentScope)().setTransactionName(t.name);const n=j(e);return n&&e.emit("afterStartPageLoadSpan",n),n}function N(e,t,r){const{url:n,isRedirect:i}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const o=(0,c.getCurrentScope)();return o.setTransactionName(t.name),n&&!i&&o.setSDKProcessingMetadata({normalizedRequest:{...(0,w.getHttpRequestData)(),url:n}}),j(e)}function L(e){const t=w.WINDOW.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}function F(e){const t=w.WINDOW.performance?.getEntriesByType?.("navigation")[0],r=t?.serverTiming?.find(t=>t.name===e);return r?.description}const B="_sentry_idleSpan";function j(e){return e[B]}function U(e,t){(0,h.addNonEnumerableProperty)(e,B,t)}const H=1.5},(e,t,r)=>{"use strict";r.r(t),r.d(t,{registerSpanErrorInstrumentation:()=>u});var n=r(409),i=r(1445),o=r(1446),a=r(413),s=r(434),c=r(436);let l=!1;function u(){function e(){const e=(0,s.getActiveSpan)(),t=e&&(0,s.getRootSpan)(e);if(t){const e="internal_error";n.DEBUG_BUILD&&a.debug.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:c.SPAN_STATUS_ERROR,message:e})}}l||(l=!0,(0,i.addGlobalErrorInstrumentationHandler)(e),(0,o.addGlobalUnhandledRejectionInstrumentationHandler)(e))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACING_DEFAULTS:()=>y,startIdleSpan:()=>E});var n=r(401),i=r(409),o=r(427),a=r(413),s=r(430),c=r(431),l=r(423),u=r(434),d=r(420),p=r(440),f=r(444),h=r(445),m=r(436),g=r(426);const y={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},v="heartbeatFailed",b="idleTimeout",_="finalTimeout",S="externalFinish";function E(e,t={}){const r=new Map;let E,w=!1,T=S,x=!t.disableAutoFinish;const O=[],{idleTimeout:A=y.idleTimeout,finalTimeout:R=y.finalTimeout,childSpanTimeout:P=y.childSpanTimeout,beforeSpanEnd:I,trimIdleSpanEndTimestamp:C=!0}=t,k=(0,n.getClient)();if(!k||!(0,s.hasSpansEnabled)()){const e=new f.SentryNonRecordingSpan,t={sample_rate:"0",sampled:"false",...(0,p.getDynamicSamplingContextFromSpan)(e)};return(0,p.freezeDscOnSpan)(e,t),e}const M=(0,n.getCurrentScope)(),D=(0,u.getActiveSpan)(),N=function(e){const t=(0,g.startInactiveSpan)(e);return(0,l._setSpanForScope)((0,n.getCurrentScope)(),t),i.DEBUG_BUILD&&a.debug.log("[Tracing] Started span is an i
41dle span"),t}(e);function L(){E&&(clearTimeout(E),E=void 0)}function F(e){L(),E=setTimeout(()=>{!w&&0===r.size&&x&&(T=b,N.end(e))},A)}function B(e){E=setTimeout(()=>{!w&&x&&(T=v,N.end(e))},P)}function j(e){w=!0,r.clear(),O.forEach(e=>e()),(0,l._setSpanForScope)(M,D);const t=(0,u.spanToJSON)(N),{start_timestamp:n}=t;if(!n)return;t.data[o.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||N.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,T);const s=t.status;s&&"unknown"!==s||N.setStatus({code:m.SPAN_STATUS_OK}),a.debug.log(`[Tracing] Idle span "${t.op}" finished`);const c=(0,u.getSpanDescendants)(N).filter(e=>e!==N);let d=0;c.forEach(t=>{t.isRecording()&&(t.setStatus({code:m.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),i.DEBUG_BUILD&&a.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const r=(0,u.spanToJSON)(t),{timestamp:n=0,start_timestamp:o=0}=r,s=o<=e,c=n-o<=(R+A)/1e3;if(i.DEBUG_BUILD){const e=JSON.stringify(t,void 0,2);s?c||a.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",e):a.debug.log("[Tracing] Discarding span since it happened after idle span was finished",e)}c&&s||((0,u.removeChildSpanFromSpan)(N,t),d++)}),d>0&&N.setAttribute("sentry.idle_span_discarded_spans",d)}return N.end=new Proxy(N.end,{apply(e,t,r){if(I&&I(N),t instanceof f.SentryNonRecordingSpan)return;const[n,...i]=r,o=n||(0,d.timestampInSeconds)(),a=(0,u.spanTimeInputToSeconds)(o),s=(0,u.getSpanDescendants)(N).filter(e=>e!==N),l=(0,u.spanToJSON)(N);if(!s.length||!C)return j(a),Reflect.apply(e,t,[a,...i]);const p=k.getOptions().ignoreSpans,h=s?.reduce((e,t)=>{const r=(0,u.spanToJSON)(t);return r.timestamp?p&&(0,c.shouldIgnoreSpan)({description:r.description,op:r.op,attributes:r.data},p)?e:e?Math.max(e,r.timestamp):r.timestamp:e},void 0),m=l.start_timestamp,g=Math.min(m?m+R/1e3:1/0,Math.max(m||-1/0,Math.min(a,h||1/0)));return j(g),Reflect.apply(e,t,[g,...i])}}),O.push(k.on("spanStart",e=>{if(w||e===N||(0,u.spanToJSON)(e).timestamp||e instanceof h.SentrySpan&&e.isStandaloneSpan())return;var t;(0,u.getSpanDescendants)(N).includes(e)&&(t=e.spanContext().spanId,L(),r.set(t,!0),B((0,d.timestampInSeconds)()+P/1e3))})),O.push(k.on("spanEnd",e=>{var t;w||(t=e.spanContext().spanId,r.has(t)&&r.delete(t),0===r.size&&F((0,d.timestampInSeconds)()+A/1e3))})),O.push(k.on("idleSpanEnableAutoFinish",e=>{e===N&&(x=!0,F(),r.size&&B())})),t.disableAutoFinish||F(),setTimeout(()=>{w||(N.setStatus({code:m.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),T=_,N.end())},R),N}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_addMeasureSpans:()=>N,_addNavigationSpans:()=>L,_addResourceSpans:()=>B,_setResourceRequestAttributes:()=>j,addPerformanceEntries:()=>k,addWebVitalsToSpan:()=>M,startTrackingInteractions:()=>C,startTrackingLongAnimationFrames:()=>I,startTrackingLongTasks:()=>P,startTrackingWebVitals:()=>R});var n=r(449),i=r(427),o=r(434),a=r(414),s=r(413),c=r(416),l=r(420),u=r(1432),d=r(1424),p=r(1437),f=r(1434),h=r(1461),m=r(1462),g=r(1486),y=r(1487),v=r(1484),b=r(1466),_=r(1467),S=r(1465),E=r(1453);const w=2147483647;let T,x,O=0,A={};function R({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){const n=(0,v.getBrowserPerformanceAPI)();if(n&&(0,l.browserPerformanceTimeOrigin)()){n.mark&&f.WINDOW.performance.mark("sentry-tracing-init");const i=t?(0,g.trackLcpAsStandaloneSpan)(r):!1===t?(0,m.addLcpInstrumentationHandler)(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(0,g.isValidLcpMetric)(e.value)&&(A.lcp={value:e.value,unit:"millisecond"},T=t)},!0):void 0,o=e?(0,h.trackClsAsStandaloneSpan)(r):!1===e?(0,m.addClsInstrumentationHandler)(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(A.cls={value:e.value,unit:""},x=t)},!0):void 0,a=(0,m.addTtfbInstrumentationHandler)(({metric:e})=>{e.entries[e.entries.length-1]&&(A.ttfb={value:e.value,unit:"millisecond"})}),s=(0,m.addPerformanceInstrumentationHandler)("paint",({entries:e})=>{const t=(0,S.getVisibilityWatcher)();for(const r of e){const e=r.startTime<t.firstHiddenTime;"first-paint"===r.name&&e&&(A.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&e&&(A.fcp={value:r.startTime,unit:"millisecond"})}});return()=>{a(),s(),i?.(),o?.()}}return()=>{}}function P(){(0,m.addPerformanceInstrumentationHandler)("longtask",({entries:e})=>{const t=(0,o.getActiveSpan)();if(!t)return;const{op:r,start_timestamp:n}=(0,o.spanToJSON)(t);for(const o of e){const e=(0,v.msToSec)((0,l.browserPerformanceTimeOrigin)()+o.startTime),a=(0,v.msToSec)(o.duration);
41"navigation"===r&&n&&e<n||(0,v.startAndEndSpan)(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}})}function I(){new PerformanceObserver(e=>{const t=(0,o.getActiveSpan)();if(t)for(const r of e.getEntries()){if(!r.scripts[0])continue;const e=(0,v.msToSec)((0,l.browserPerformanceTimeOrigin)()+r.startTime),{start_timestamp:n,op:a}=(0,o.spanToJSON)(t);if("navigation"===a&&n&&e<n)continue;const s=(0,v.msToSec)(r.duration),c={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:d,invokerType:p,sourceURL:f,sourceFunctionName:h,sourceCharPosition:m}=u;c["browser.script.invoker"]=d,c["browser.script.invoker_type"]=p,f&&(c["code.filepath"]=f),h&&(c["code.function"]=h),-1!==m&&(c["browser.script.source_char_position"]=m),(0,v.startAndEndSpan)(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function C(){(0,m.addPerformanceInstrumentationHandler)("event",({entries:e})=>{const t=(0,o.getActiveSpan)();
41if(t)for(const r of e)if("click"===r.name){const e=(0,v.msToSec)((0,l.browserPerformanceTimeOrigin)()+r.startTime),n=(0,v.msToSec)(r.duration),o={name:(0,p.htmlTreeAsString)(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},a=(0,d.getComponentName)(r.target);a&&(o.attributes["ui.component_name"]=a),(0,v.startAndEndSpan)(t,e,e+n,o)}})}function k(e,t){const r=(0,v.getBrowserPerformanceAPI)(),i=(0,l.browserPerformanceTimeOrigin)();if(!r?.getEntries||!i)return;const{spanStreamingEnabled:a,ignorePerformanceApiSpans:s,ignoreResourceSpans:c}=t,u=(0,v.msToSec)(i),d=r.getEntries(),{op:p,start_timestamp:h}=(0,o.spanToJSON)(e);d.slice(O).forEach(t=>{const r=(0,v.msToSec)(t.startTime),n=(0,v.msToSec)(Math.max(0,t.duration));if(!("navigation"===p&&h&&u+r<h))switch(t.entryType){case"navigation":L(e,t,u);break;case"mark":case"paint":case"measure":N(e,t,r,n,u,s);break;case"resource":B(e,t,t.name,r,n,u,c)}}),O=Math.max(d.length-1,0),function(e,t){const r=f.WINDOW.navigator;if(!r)return;const i=r.connection;i&&(i.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",i.effectiveType),i.type&&e.setAttribute(t?"network.connection.type":"connectionType",i.type),(0,v.isMeasurementValue)(i.rtt)&&(t?e.setAttribute("network.connection.rtt",i.rtt):"pageload"===(0,o.spanToJSON)(e).op&&(0,n.setMeasurement)("connection.rtt",i.rtt,"millisecond")));(0,v.isMeasurementValue)(r.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",r.deviceMemory):e.setAttribute("deviceMemory",`${r.deviceMemory} GB`));(0,v.isMeasurementValue)(r.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",r.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(r.hardwareConcurrency)))}(e,a)}function M(e,t){const r=(0,l.browserPerformanceTimeOrigin)();if(!(0,v.getBrowserPerformanceAPI)()?.getEntries||!r)return void D();const{spanStreamingEnabled:i,recordClsOnPageloadSpan:a,recordLcpOnPageloadSpan:c}=t,u=(0,v.msToSec)(r);if("pageload"===(0,o.spanToJSON)(e).op){if(function(e){const t=(0,_.getNavigationEntry)(!1);if(!t)return;const{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(A),i){const t=(t,r,n)=>{const i=n??`browser.web_vital.${t}.value`;e.setAttribute(i,r),E.DEBUG_BUILD&&s.debug.log("Setting web vital attribute",{[i]:r},"on pageload span")};["ttfb","fp","fcp"].forEach(e=>{A[e]&&t(e,A[e].value)}),A["ttfb.requestTime"]&&t("ttfb.requestTime",A["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else a||delete A.cls,c||delete A.lcp,Object.entries(A).forEach(([t,r])=>{(0,n.setMeasurement)(t,r.value,r.unit,e)}),function(e,t){T&&t.recordLcpOnPageloadSpan&&(T.element&&e.setAttribute("lcp.element",(0,p.htmlTreeAsString)(T.element)),T.id&&e.setAttribute("lcp.id",T.id),T.url&&e.setAttribute("lcp.url",T.url.trim().slice(0,200)),null!=T.loadTime&&e.setAttribute("lcp.loadTime",T.loadTime),null!=T.renderTime&&e.setAttribute("lcp.renderTime",T.renderTime),e.setAttribute("lcp.size",T.size));x?.sources&&t.recordClsOnPageloadSpan&&x.sources.forEach((t,r)=>e.setAttribute(`cls.source.${r+1}`,(0,p.htmlTreeAsString)(t.node)))}(e,t);e.setAttribute(i?"browser.performance.time_origin":"performance.timeOrigin",u),e.setAttribute(i?"browser.performance.navigation.activation_start":"performance.activationStart",(0,b.getActivationStart)())}D()}function D(){T=void 0,x=void 0,A={}}function N(e,t,r,n,o,s){if(function(e){if("measure"===e?.entryType)try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t))return;if(["mark","measure"].includes(t.entryType)&&(0,c.stringMatchesSomePattern)(t.name,s))return;const l=(0,_.getNavigationEntry)(!1),u=(0,v.msToSec)(l?l.requestStart:0),d=o+Math.max(r,u),p=o+r,f=p+n,h={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};d!==p&&(h["sentry.browser.measure_happened_before_request"]=!0,h["sentry.browser.measure_start_time"]=d),function(e,t){try{const r=t.detail;if(!r)return;if("object"==typeof r){for(const[t,n]of Object.entries(r))if(n&&(0,a.isPrimitive)(n))e[`sentry.browser.measure.detail.${t}`]=n;else if(void 0!==n)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(n)}catch{}return}if((0,a.isPrimitive)(r))return void(e["sentry.browser.measure.detail"]=r);try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}(h,t),d<=f&&(0,v.startAndEndSpan)(e,d,f,{name:t.name,op:t.entryType,attributes:h})}function L(e,t,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{F(e,t,n,r)}),F(e,t,"secureConnection",r,"TLS/SSL"),F(e,t,"fetch",r,"cache"),F(e,t,"domainLookup",r,"DNS"),function(e,t,r){const n=r+(0,v.msToSec)(t.requestStart),o=r+(0,v.msToSec)(t.responseEnd),a=r+(0,v.msToSec)(t.responseStart);t.responseEnd&&((0,v.startAndEndSpan)(e,n,o,{op:"browser.request",name:t.name,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),(0,v.startAndEndSpan)(e,a,o,{op:"browser.response",name:t.name,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}))}(e,t,r)}function F(e,t,r,n,o=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,v.startAndEndSpan)(e,n+(0,v.msToSec)(c),n+(0,v.msToSec)(s),{op:`browser.${o}`,name:t.name,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}
41function B(e,t,r,n,o,a,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const c=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(c))return;const l={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"},d=(0,u.parseUrl)(r);d.protocol&&(l["url.scheme"]=d.protocol.split(":").pop()),d.host&&(l["server.address"]=d.host),l["url.same_origin"]=r.includes(f.WINDOW.location.origin),j(t,l,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const p={...l,...(0,y.resourceTimingToSpanAttributes)(t)},h=a+n,m=h+o;(0,v.startAndEndSpan)(e,h,m,{name:r.replace(f.WINDOW.location.origin,""),op:c,attributes:p})}function j(e,t,r){r.forEach(([r,n])=>{const i=e[r];null!=i&&("number"==typeof i&&i<w||"string"==typeof i)&&(t[n]=i)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_sendStandaloneClsSpan:()=>p,trackClsAsStandaloneSpan:()=>d});var n=r(427),i=r(401),o=r(413),a=r(420),s=r(1453),c=r(1437),l=r(1462),u=r(1484);function d(e){let t,r=0;if(!(0,u.supportsWebVital)("layout-shift"))return;const n=(0,l.addClsInstrumentationHandler)(({metric:e})=>{const n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);(0,u.listenForWebVitalReportEvents)(e,(e,i)=>{p(r,t,i,e),n()})}function p(e,t,r,l){s.DEBUG_BUILD&&o.debug.log(`Sending CLS span (${e})`);const d=t?(0,u.msToSec)(((0,a.browserPerformanceTimeOrigin)()||0)+t.startTime):(0,a.timestampInSeconds)(),p=(0,i.getCurrentScope)().getScopeData().transactionName,f=t?(0,c.htmlTreeAsString)(t.sources[0]?.node):"Layout shift",h={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":r,"sentry.report_event":l};t?.sources&&t.sources.forEach((e,t)=>{h[`cls.source.${t+1}`]=(0,c.htmlTreeAsString)(e.node)});const m=(0,u.startStandaloneWebVitalSpan)({name:f,transaction:p,attributes:h,startTime:d});m&&(m.addEvent("cls",{[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),m.end(d))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addClsInstrumentationHandler:()=>y,addInpInstrumentationHandler:()=>_,addLcpInstrumentationHandler:()=>v,addPerformanceInstrumentationHandler:()=>S,addTtfbInstrumentationHandler:()=>b,isPerformanceEventTiming:()=>I});var n=r(413),i=r(419),o=r(1453),a=r(1463),s=r(1477),c=r(1481),l=r(1473),u=r(1483);const d={},p={};let f,h,m,g;function y(e,t=!1){return A("cls",e,w,f,t)}function v(e,t=!1){return A("lcp",e,T,h,t)}function b(e){return A("ttfb",e,x,m)}function _(e){return A("inp",e,O,g)}function S(e,t){return R(e,t),p[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);(0,l.observe)(e,t=>{E(e,{entries:t})},t)}(e),p[e]=!0),P(e,t)}function E(e,t){const r=d[e];if(r?.length)for(const a of r)try{a(t)}catch(t){o.DEBUG_BUILD&&n.debug.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,i.getFunctionName)(a)}\nError:`,t)}}function w(){return(0,a.onCLS)(e=>{E("cls",{metric:e}),f=e},{reportAllChanges:!0})}function T(){return(0,c.onLCP)(e=>{E("lcp",{metric:e}),h=e},{reportAllChanges:!0})}function x(){return(0,u.onTTFB)(e=>{E("ttfb",{metric:e}),m=e})}function O(){return(0,s.onINP)(e=>{E("inp",{metric:e}),g=e})}function A(e,t,r,n,i=!1){let o;return R(e,t),p[e]||(o=r(),p[e]=!0),n&&t({metric:n}),P(e,t,i?o:void 0)}function R(e,t){d[e]=d[e]||[],d[e].push(t)}function P(e,t,r){return()=>{r&&r();const n=d[e];if(!n)return;const i=n.indexOf(t);-1!==i&&n.splice(i,1)}}function I(e){return"duration"in e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CLSThresholds:()=>p,onCLS:()=>f});var n=r(1434),i=r(1464),o=r(1465),a=r(1469),s=r(1471),c=r(1472),l=r(1473),u=r(1474),d=r(1475);const p=[.1,.25],f=(e,t={})=>{(0,d.onFCP)((0,u.runOnce)(()=>{const r=(0,a.initMetric)("CLS",0);let u;const d=(0,o.getVisibilityWatcher)(),f=(0,s.initUnique)(t,c.LayoutShiftManager),h=e=>{for(const t of e)f._processEntry(t);f._sessionValue>r.value&&(r.value=f._sessionValue,r.entries=f._sessionEntries,u(
41))},m=(0,l.observe)("layout-shift",h);m&&(u=(0,i.bindReporter)(e,r,p,t.reportAllChanges),d.onHidden(()=>{h(m.takeRecords()),u(!0)}),n.WINDOW?.setTimeout?.(u))}))}},(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,{getVisibilityWatcher:()=>l});var n=r(1434),i=r(1466),o=r(1468);let a=-1;const s=new Set,c=e=>{if(function(e){return"pagehide"===e.type||"hidden"===n.WINDOW.document?.visibilityState}(e)&&a>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(const e of s)e();isFinite(a)||(a="visibilitychange"===e.type?e.timeStamp:0,(0,o.removePageListener)("prerenderingchange",c,!0))}},l=()=>{if(n.WINDOW.document&&a<0){const e=(0,i.getActivationStart)(),t=n.WINDOW.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime;a=t??("hidden"!==n.WINDOW.document?.visibilityState||n.WINDOW.document?.prerendering?1/0:0),(0,o.addPageListener)("visibilitychange",c,!0),(0,o.addPageListener)("pagehide",c,!0),(0,o.addPageListener)("prerenderingchange",c,!0)}return{get firstHiddenTime(){return a},onHidden(e){s.add(e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getActivationStart:()=>i});var n=r(1467);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(1434);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,{addPageListener:()=>i,removePageListener:()=>o});var n=r(1434);function i(e,t,r){n.WINDOW.document&&n.WINDOW.addEventListener(e,t,r)}function o(e,t,r){n.WINDOW.document&&n.WINDOW.removeEventListener(e,t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initMetric:()=>s});var n=r(1434),i=r(1470),o=r(1466),a=r(1467);const s=(e,t=-1)=>{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: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=()=>`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initUnique:()=>i});const n=new WeakMap;function i(e,t){try{return n.get(e)||n.set(e,new t),n.get(e)}catch(e){return new t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LayoutShiftManager:()=>n});class n{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;const t=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}},(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({type:e,buffered:!0,...r}),n}}catch{}}},(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:()=>l,onFCP:()=>u});var n=r(1464),i=r(1466),o=r(1465),a=r(1469),s=r(1473),c=r(1476);const l=[1800,3e3],u=(e,t={})=>{(0,c.whenActivated)(()=>{const r=(0,o.getVisibilityWatcher)(),c=(0,a.initMetric)("FCP");let u;const d=(0,s.observe)("paint",e=>{for(const t of e)"first-contentful-paint"===t.name&&(d.disconnect(),t.startTime<r.firstHiddenTime&&(c.value=Math.max(t.startTime-(0,i.getActivationStart)(),0),c.entries.push(t),u(!0)))});d&&(u=(0,n.bindReporter)(e,c,l,t.reportAllChanges))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{whenActivated:()=>i});var n=r(1434);const i=e=>{n.WINDOW.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{INPThresholds:()=>p,onINP:()=>f});var n=r(1464),i=r(1465),o=r(1469),a=r(1471),s=r(1478),c=r(1473),l=r(1479),u=r(1476),d=r(1480);const p=[200,500],f=(e,t={})=>
41{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const r=(0,i.getVisibilityWatcher)();(0,u.whenActivated)(()=>{(0,l.initInteractionCountPolyfill)();const i=(0,o.initMetric)("INP");let u;const f=(0,a.initUnique)(t,s.InteractionManager),h=e=>{(0,d.whenIdleOrHidden)(()=>{for(const t of e)f._processEntry(t);const t=f._estimateP98LongestInteraction();t&&t._latency!==i.value&&(i.value=t._latency,i.entries=t.entries,u())})},m=(0,c.observe)("event",h,{durationThreshold:t.durationThreshold??40});u=(0,n.bindReporter)(e,i,p,t.reportAllChanges),m&&(m.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{h(m.takeRecords()),u(!0)}))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InteractionManager:()=>o});var n=r(1479);let i=0;class o{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){i=(0,n.getInteractionCount)(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor(((0,n.getInteractionCount)()-i)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||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):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10){const e=this._longestInteractionList.splice(10);for(const t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(r)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getInteractionCount:()=>l,initInteractionCountPolyfill:()=>u});var n=r(1473);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 l=()=>c?i:performance.interactionCount||0,u=()=>{"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,{whenIdleOrHidden:()=>a});var n=r(1434),i=r(1468),o=r(1474);const a=e=>{const t=n.WINDOW.requestIdleCallback||n.WINDOW.setTimeout;"hidden"===n.WINDOW.document?.visibilityState?e():(e=(0,o.runOnce)(e),(0,i.addPageListener)("visibilitychange",e,{once:!0,capture:!0}),(0,i.addPageListener)("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),(0,i.removePageListener)("visibilitychange",e,{capture:!0}),(0,i.removePageListener)("pagehide",e,{capture:!0})}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LCPThresholds:()=>h,onLCP:()=>m});var n=r(1464),i=r(1466),o=r(1465),a=r(1468),s=r(1469),c=r(1471),l=r(1482),u=r(1473),d=r(1474),p=r(1476),f=r(1480);const h=[2500,4e3],m=(e,t={})=>{(0,p.whenActivated)(()=>{const r=(0,o.getVisibilityWatcher)(),p=(0,s.initMetric)("LCP");let m;const g=(0,c.initUnique)(t,l.LCPEntryManager),y=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)g._processEntry(t),t.startTime<r.firstHiddenTime&&(p.value=Math.max(t.startTime-(0,i.getActivationStart)(),0),p.entries=[t],m())},v=(0,u.observe)("largest-contentful-paint",y);if(v){m=(0,n.bindReporter)(e,p,h,t.reportAllChanges);const r=(0,d.runOnce)(()=>{y(v.takeRecords()),v.disconnect(),m(!0)}),i=e=>{e.isTrusted&&((0,f.whenIdleOrHidden)(r),(0,a.removePageListener)(e.type,i,{capture:!0}))};for(const e of["keydown","click","visibilitychange"])(0,a.addPageListener)(e,i,{capture:!0})}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LCPEntryManager:()=>n});class n{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TTFBThresholds:()=>l,onTTFB:()=>d});var n=r(1434),i=r(1464),o=r(1466),a=r(1467),s=r(1469),c=r(1476);const l=[800,1800],u=e=>{n.WINDOW.document?.prerendering?(0,c.whenActivated)(()=>u(e)):"complete"!==n.WINDOW.document?.readyState?addEventListener("load",()=>u(e),!0):setTimeout(e)},d=(e,t={})=>{const r=(0,s.initMetric)("TTFB"),n=(0,i.bindReporter)(e,r,l,t.reportAllChanges);u(()=>{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";r.r(t),r.d(t,{extractNetworkProtocol:()=>f,getBrowserPerformanceAPI:()=>d,isMeasurementValue:()=>c,listenForWebVitalReportEvents:()=>m,msToSec:()=>p,startAndEndSpan:()=>l,startStandaloneWebVitalSpan:()=>u,supportsWebVital:()=>h});var n=r(426),i=r(401),o=r(434),a=r(1434),s=r(1485);function c(e){return"number"==typeof e&&isFinite(e)}function l(e,t,r,{...i}){const a=(0,o.spanToJSON)(e).start_timestamp;return a&&a>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),(0,n.withActiveSpan)(e,()=>{const e=(0,n.startInactiveSpan)({startTime:t,...i});return e&&e.end(r),e})}function u(e){const t=(0,i.getClient)();if(!t)return;const{name:r,transaction:o,attributes:s,startTime:c}=e,{release:l,environment:u}=t.getOptions(),{userInfo:d}=t.getDataCollectionOptions(),p=t.getIntegrationByName("Replay"),f=p?.getReplayId(),h=(0,i.getCurrentScope)(),m=h.getUser(),g=void 0!==m?m.email||m.id||m.ip_address:void 0;let y;try{y=h.getScopeData().contexts.profile.profile_id}catch{}const v={release:l,environment:u,user:g||void 0,profile_id:y||void 0,replay_id:f||void 0,transaction:o,"user_agent.original":a.WINDOW.navigator?.userAgent,"client.address":d?"{{auto}}":void 0,...s};return(0,n.startInactiveSpan)({name:r,attributes:v,startTime:c,experimental:{standalone:!0}})}function d(){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}
41return n===e&&(t=n),{name:t,version:r}}function h(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function m(e,t){let r,n=!1;function i(e){!n&&r&&t(e,r.spanContext().spanId,r),n=!0}(0,s.onHidden)(()=>{i("pagehide")});const o=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),o(),a())}),a=e.on("afterStartPageLoadSpan",e=>{r=e,a()})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onHidden:()=>o});var n=r(1434),i=r(1468);const o=e=>{const t=t=>{"pagehide"!==t.type&&"hidden"!==n.WINDOW.document?.visibilityState||e(t)};(0,i.addPageListener)("visibilitychange",t,{capture:!0,once:!0}),(0,i.addPageListener)("pagehide",t,{capture:!0,once:!0})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MAX_PLAUSIBLE_LCP_DURATION:()=>d,_sendStandaloneLcpSpan:()=>h,isValidLcpMetric:()=>p,trackLcpAsStandaloneSpan:()=>f});var n=r(427),i=r(401),o=r(413),a=r(420),s=r(1453),c=r(1437),l=r(1462),u=r(1484);const d=6e4;function p(e){return null!=e&&e>0&&e<=d}function f(e){let t,r=0;if(!(0,u.supportsWebVital)("largest-contentful-paint"))return;const n=(0,l.addLcpInstrumentationHandler)(({metric:e})=>{const n=e.entries[e.entries.length-1];n&&p(e.value)&&(r=e.value,t=n)},!0);(0,u.listenForWebVitalReportEvents)(e,(e,i)=>{h(r,t,i,e),n()})}function h(e,t,r,l){if(!p(e))return;s.DEBUG_BUILD&&o.debug.log(`Sending LCP span (${e})`);const d=(0,u.msToSec)(((0,a.browserPerformanceTimeOrigin)()||0)+(t?.startTime||0)),f=(0,i.getCurrentScope)().getScopeData().transactionName,h=t?(0,c.htmlTreeAsString)(t.element):"Largest contentful paint",m={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.lcp",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.lcp",[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":r,"sentry.report_event":l};t&&(t.element&&(m["lcp.element"]=(0,c.htmlTreeAsString)(t.element)),t.id&&(m["lcp.id"]=t.id),t.url&&(m["lcp.url"]=t.url),null!=t.loadTime&&(m["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(m["lcp.renderTime"]=t.renderTime),null!=t.size&&(m["lcp.size"]=t.size));const g=(0,u.startStandaloneWebVitalSpan)({name:h,transaction:f,attributes:m,startTime:d});g&&(g.addEvent("lcp",{[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),g.end(d))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resourceTimingToSpanAttributes:()=>a});var n=r(420),i=r(1484);function o(e){return e?(((0,n.browserPerformanceTimeOrigin)()||performance.timeOrigin)+e)/1e3:e}function a(e){const t={};if(null!=e.nextHopProtocol){const{name:r,version:n}=(0,i.extractNetworkProtocol)(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return(0,n.browserPerformanceTimeOrigin)()||(0,i.getBrowserPerformanceAPI)()?.timeOrigin?(r={...t,"http.request.redirect_start":o(e.redirectStart),"http.request.redirect_end":o(e.redirectEnd),"http.request.worker_start":o(e.workerStart),"http.request.fetch_start":o(e.fetchStart),"http.request.domain_lookup_start":o(e.domainLookupStart),"http.request.domain_lookup_end":o(e.domainLookupEnd),"http.request.connect_start":o(e.connectStart),"http.request.secure_connection_start":o(e.secureConnectionStart),"http.request.connection_end":o(e.connectEnd),"http.request.request_start":o(e.requestStart),"http.request.response_start":o(e.responseStart),"http.request.response_end":o(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0},Object.fromEntries(Object.entries(r).filter(([,e])=>null!=e))):t;var r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fetchStreamPerformanceIntegration:()=>d});var n=r(426),i=r(427),o=r(1389),a=r(1429),s=r(1432);const c=new WeakMap,l=new WeakMap,u=["text/event-stream","application/x-ndjson","application/stream+json"],d=(0,o.defineIntegration)(()=>({name:"FetchStreamPerformance",setup(){(0,a.addFetchEndInstrumentationHandler)(e=>{if(e.response){const t=c.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);const r=l.get(e.response);r&&clearTimeout(r)}}}),(0,a.addFetchInstrumentationHandler)(e=>{if(e.endTimestamp&&e.response){const t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!u.some(e=>
41t.startsWith(e)))return;const r=e.fetchData?.url||"",o=e.fetchData?.method||"GET",a=(0,s.parseStringToURLObject)(r),d=r.startsWith("data:")?(0,s.stripDataUrlContent)(r):a?(0,s.getSanitizedUrlStringFromUrlObject)(a):r,p=(0,n.startInactiveSpan)({name:`${o} ${d}`,startTime:e.endTimestamp,attributes:{url:(0,s.stripDataUrlContent)(r),"http.method":o,type:"fetch",[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client.stream",[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.stream"}});c.set(e.response,p);const f=setTimeout(()=>{p.isRecording()&&p.end()},9e4);l.set(e.response,f)}})}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WEB_VITALS_INTEGRATION_NAME:()=>c,webVitalsIntegration:()=>l});var n=r(1389),i=r(432),o=r(1460),a=r(1490),s=r(1491);const c="WebVitals",l=(0,n.defineIntegration)((e={})=>{const t=new Set(e.ignore??[]);return{name:c,setup(r){const n=(0,i.hasSpanStreamingEnabled)(r),{enableStandaloneClsSpans:c,enableStandaloneLcpSpans:l}=e._experiments??{},u=n||t.has("cls")?void 0:c||!1,d=n||t.has("lcp")?void 0:l||!1,p=(0,o.startTrackingWebVitals)({recordClsStandaloneSpans:u,recordLcpStandaloneSpans:d,client:r}),f=new WeakSet;r.on("afterStartPageLoadSpan",e=>{f.add(e)}),r.on("spanEnd",e=>{f.delete(e)&&(p(),(0,o.addWebVitalsToSpan)(e,{recordClsOnPageloadSpan:!1===u,recordLcpOnPageloadSpan:!1===d,spanStreamingEnabled:n}))}),n?(t.has("lcp")||(0,a.trackLcpAsSpan)(r),t.has("cls")||(0,a.trackClsAsSpan)(r),t.has("inp")||(0,a.trackInpAsSpan)()):t.has("inp")||(0,s.startTrackingINP)()},afterAllSetup(){t.has("inp")||(0,s.registerInpInteractionListener)()}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_emitWebVitalSpan:()=>g,_sendClsSpan:()=>_,_sendInpSpan:()=>E,_sendLcpSpan:()=>v,trackClsAsSpan:()=>b,trackInpAsSpan:()=>S,trackLcpAsSpan:()=>y});var n=r(426),i=r(427),o=r(401),a=r(434),s=r(413),c=r(420),l=r(1453),u=r(1437),d=r(1434),p=r(1491),f=r(1462),h=r(1486),m=r(1484);function g(e){const{name:t,op:r,origin:s,metricName:c,value:l,attributes:u,parentSpan:p,reportEvent:f,startTime:h,endTime:m}=e,g=(0,o.getCurrentScope)().getScopeData().transactionName,y={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:s,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:r,[i.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,[`browser.web_vital.${c}.value`]:l,"sentry.transaction":g,"user_agent.original":d.WINDOW.navigator?.userAgent,...u};p&&"pageload"===(0,a.spanToStreamedSpanJSON)(p).attributes?.[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]&&(y["sentry.pageload.span_id"]=p.spanContext().spanId),f&&(y[`browser.web_vital.${c}.report_event`]=f);const v=(0,n.startInactiveSpan)({name:t,attributes:y,startTime:h,parentSpan:p});v&&v.end(m??h)}function y(e){let t,r=0;if(!(0,m.supportsWebVital)("largest-contentful-paint"))return;const n=(0,f.addLcpInstrumentationHandler)(({metric:e})=>{const n=e.entries[e.entries.length-1];n&&(0,h.isValidLcpMetric)(e.value)&&(r=e.value,t=n)},!0);(0,m.listenForWebVitalReportEvents)(e,(e,i,o)=>{v(r,t,o,e),n()})}function v(e,t,r,n){if(!(0,h.isValidLcpMetric)(e))return;l.DEBUG_BUILD&&s.debug.log(`Sending LCP span (${e})`);const i=(0,c.browserPerformanceTimeOrigin)()||0,o=(0,m.msToSec)(i),a=(0,m.msToSec)(i+(t?.startTime||0)),d=t?(0,u.htmlTreeAsString)(t.element):"Largest contentful paint",p={};t?.element&&(p["browser.web_vital.lcp.element"]=(0,u.htmlTreeAsString)(t.element)),t?.id&&(p["browser.web_vital.lcp.id"]=t.id),t?.url&&(p["browser.web_vital.lcp.url"]=t.url),null!=t?.loadTime&&(p["browser.web_vital.lcp.load_time"]=t.loadTime),null!=t?.renderTime&&(p["browser.web_vital.lcp.render_time"]=t.renderTime),null!=t?.size&&(p["browser.web_vital.lcp.size"]=t.size),g({name:d,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:p,parentSpan:r,reportEvent:n,startTime:o,endTime:a})}function b(e){let t,r=0;if(!(0,m.supportsWebVital)("layout-shift"))return;const n=(0,f.addClsInstrumentationHandler)(({metric:e})=>{const n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);(0,m.listenForWebVitalReportEvents)(e,(e,i,o)=>{_(r,t,o,e),n()})}function _(e,t,r,n){l.DEBUG_BUILD&&s.debug.log(`Sending CLS span (${e})`);const i=t?(0,m.msToSec)(((0,c.browserPerformanceTimeOrigin)()||0)+t.startTime):(0,c.timestampInSeconds)(),o=t?(0,u.htmlTreeAsString)(t.sources[0]?.node):"Layout shift",a={};
41t?.sources&&t.sources.forEach((e,t)=>{a[`browser.web_vital.cls.source.${t+1}`]=(0,u.htmlTreeAsString)(e.node)}),g({name:o,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:a,parentSpan:r,reportEvent:n,startTime:i})}function S(){if(!(0,m.getBrowserPerformanceAPI)()||!(0,c.browserPerformanceTimeOrigin)())return;(0,f.addInpInstrumentationHandler)(({metric:e})=>{if(null==e.value)return;if((0,m.msToSec)(e.value)>p.MAX_PLAUSIBLE_INP_DURATION)return;const t=e.entries.find(t=>t.duration===e.value&&p.INP_ENTRY_MAP[t.name]);t&&E(e.value,t)})}function E(e,t){l.DEBUG_BUILD&&s.debug.log(`Sending INP span (${e})`);const r=(0,m.msToSec)((0,c.browserPerformanceTimeOrigin)()+t.startTime),n=(0,m.msToSec)(e),d=p.INP_ENTRY_MAP[t.name],f=(0,p.getCachedInteractionContext)(t.interactionId),h=(0,a.getActiveSpan)(),y=h?(0,a.getRootSpan)(h):void 0,v=f?.span||y,b=v?(0,a.spanToStreamedSpanJSON)(v).name:(0,o.getCurrentScope)().getScopeData().transactionName;g({name:f?.elementName||(0,u.htmlTreeAsString)(t.target),op:`ui.interaction.${d}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[i.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:t.duration,"sentry.transaction":b},startTime:r,endTime:r+n,parentSpan:v})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{INP_ENTRY_MAP:()=>y,MAX_PLAUSIBLE_INP_DURATION:()=>m,_onInp:()=>b,_trackINP:()=>v,getCachedInteractionContext:()=>_,registerInpInteractionListener:()=>S,startTrackingINP:()=>g});var n=r(427),i=r(401),o=r(434),a=r(1403),s=r(420),c=r(1437),l=r(1434),u=r(1462),d=r(1484);const p=[],f=new Map,h=new Map,m=60;function g(){if((0,d.getBrowserPerformanceAPI)()&&(0,s.browserPerformanceTimeOrigin)()){const e=v();return()=>{e()}}return()=>{}}const y={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 v(){return(0,u.addInpInstrumentationHandler)(b)}const b=({metric:e})=>{if(null==e.value)return;const t=(0,d.msToSec)(e.value);if(t>m)return;const r=e.entries.find(t=>t.duration===e.value&&y[t.name]);if(!r)return;const{interactionId:a}=r,l=y[r.name],u=(0,d.msToSec)((0,s.browserPerformanceTimeOrigin)()+r.startTime),p=(0,o.getActiveSpan)(),h=p?(0,o.getRootSpan)(p):void 0,g=null!=a?f.get(a):void 0,v=g?.span||h,b=v?(0,o.spanToJSON)(v).description:(0,i.getCurrentScope)().getScopeData().transactionName,_=g?.elementName||(0,c.htmlTreeAsString)(r.target),S={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${l}`,[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:r.duration},E=(0,d.startStandaloneWebVitalSpan)({name:_,transaction:b,attributes:S,startTime:u});E&&(E.addEvent("inp",{[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),E.end(u+t))};function _(e){return null!=e?f.get(e):void 0}function S(){const e=Object.keys(y);function t(e){const t=e.target;if(!t)return;const r=(0,c.htmlTreeAsString)(t),n=Math.round(e.timeStamp);if(h.set(n,r),h.size>50){const e=h.keys().next().value;void 0!==e&&h.delete(e)}}(0,a.isBrowser)()&&e.forEach(e=>{l.WINDOW.addEventListener(e,t,{capture:!0,passive:!0})});const r=({entries:e})=>{const t=(0,o.getActiveSpan)(),r=t&&(0,o.getRootSpan)(t);e.forEach(e=>{if(!(0,u.isPerformanceEventTiming)(e))return;const t=e.interactionId;if(null==t)return;if(f.has(t))return;const n=e.target?(0,c.htmlTreeAsString)(e.target):function(e){const t=Math.round(e.startTime);let r=h.get(t);if(!r)for(let e=-5;e<=5;e++){const n=h.get(t+e);if(n){r=n;break}}return r||"<unknown>"}(e);if(p.length>10){const e=p.shift();f.delete(e)}p.push(t),f.set(t,{span:r,elementName:n})})};(0,u.addPerformanceInstrumentationHandler)("event",r),(0,u.addPerformanceInstrumentationHandler)("first-input",r)}},(e,t,r)=>{"use strict";
41r.r(t),r.d(t,{registerBackgroundTabDetection:()=>c});var n=r(436),i=r(434),o=r(413),a=r(1438),s=r(1423);function c(){s.WINDOW.document?s.WINDOW.document.addEventListener("visibilitychange",()=>{const e=(0,i.getActiveSpan)();if(!e)return;const t=(0,i.getRootSpan)(e);if(s.WINDOW.document.hidden&&t){const e="cancelled",{op:r,status:s}=(0,i.spanToJSON)(t);a.DEBUG_BUILD&&o.debug.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:n.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):a.DEBUG_BUILD&&o.debug.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,{PREVIOUS_TRACE_KEY:()=>u,PREVIOUS_TRACE_MAX_DURATION:()=>l,PREVIOUS_TRACE_TMP_SPAN_ATTRIBUTE:()=>d,addPreviousTraceSpanLink:()=>f,getPreviousTraceFromSessionStorage:()=>m,linkTraces:()=>p,spanContextSampled:()=>g,storePreviousTraceInSessionStorage:()=>h});var n=r(427),i=r(401),o=r(434),a=r(413),s=r(1438),c=r(1423);const l=3600,u="sentry_previous_trace",d="sentry.previous_trace";function p(e,{linkPreviousTrace:t,consistentTraceSampling:r}){const a="session-storage"===t;let s=a?m():void 0;e.on("spanStart",e=>{if((0,o.getRootSpan)(e)!==e)return;const t=(0,i.getCurrentScope)().getPropagationContext();s=f(s,e,t),a&&h(s)});let c=!0;r&&e.on("beforeSampling",e=>{if(!s)return;const t=(0,i.getCurrentScope)(),r=t.getPropagationContext();c&&r.parentSpanId?c=!1:(t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(s.sampleRate),sampled:String(g(s.spanContext))},sampleRand:s.sampleRand}),e.parentSampled=g(s.spanContext),e.parentSampleRate=s.sampleRate,e.spanAttributes={...e.spanAttributes,[n.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]:s.sampleRate})})}function f(e,t,r){const i=(0,o.spanToJSON)(t);const c={spanContext:t.spanContext(),startTimestamp:i.start_timestamp,sampleRate:function(){try{const e=Number(i.data?.[n.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??r.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return c;const u=e.spanContext;return u.traceId===i.trace_id?e:(Date.now()/1e3-e.startTimestamp<=l&&(s.DEBUG_BUILD&&a.debug.log(`Adding previous_trace \`${JSON.stringify(u)}\` link to span \`${JSON.stringify({op:i.op,...t.spanContext()})}\``),t.addLink({context:u,attributes:{[n.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]:"previous_trace"}}),t.setAttribute(d,`${u.traceId}-${u.spanId}-${g(u)?1:0}`)),c)}function h(e){try{c.WINDOW.sessionStorage.setItem(u,JSON.stringify(e))}catch(e){s.DEBUG_BUILD&&a.debug.warn("Could not store previous trace in sessionStorage",e)}}function m(){try{const e=c.WINDOW.sessionStorage?.getItem(u);return JSON.parse(e)}catch{return}}function g(e){return 1===e.traceFlags}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultRequestInstrumentationOptions:()=>w,instrumentOutgoingRequests:()=>T,shouldAttachHeaders:()=>A});var n=r(444),i=r(436),o=r(426),a=r(427),s=r(401),c=r(430),l=r(434),u=r(1495),d=r(1496),p=r(432),f=r(1429),h=r(416),m=r(420),g=r(1432),y=r(1424),v=r(1462),b=r(1436),_=r(1497),S=r(1487),E=r(1498);const w={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function T(e,t){const{traceFetch:r,traceXHR:h,shouldCreateSpanForRequest:m,enableHTTPTimings:y,tracePropagationTargets:v,onRequestSpanStart:S,onRequestSpanEnd:T}={...w,...t},x="function"==typeof m?m:e=>!0,R=e=>A(e,v),P={},I=e.getOptions().propagateTraceparent;r&&(0,f.addFetchInstrumentationHandler)(t=>{const r=(0,d.instrumentFetchRequest)(t,x,R,P,{propagateTraceparent:I,onRequestSpanEnd:T});if(r){const n=(0,E.getFullURL)(t.fetchData.url),i=n?(0,g.parseUrl)(n).host:void 0;r.setAttributes({"http.url":n?(0,g.stripDataUrlContent)(n):void 0,"server.address":i}),y&&O(r,e),S?.(r,{headers:t.headers})}}),h&&(0,b.addXhrInstrumentationHandler)(t=>{const r=function(e,t,r,d,f,h){const m=e.xhr,y=m?.[b.SENTRY_XHR_DATA_KEY];if(!m||m.__sentry_own_request__||!y)return;const{url:v,method:S}=y,w=(0,c.hasSpansEnabled)()&&t(v);if(e.endTimestamp){const t=m.__sentry_xhr_span_id__;if(!t)return;const r=d[t];return void(r&&(w&&void 0!==y.status_code&&((0,i.setHttpStatus)(r,y.status_code),r.end(),h?.(r,{headers:(0,E.createHeadersSafely)((0,_.parseXhrResponseHeaders)(m)),error:e.error})),delete d[t]))}const T=(0,E.getFullURL)(v),x=T?(0,g.parseUrl)(T):(0,g.parseUrl)(v),O=(0,g.stripDataUrlContent)((0,g.stripUrlQueryAndFragment)(v)),A=(0,s.getClient)(),R=!!(0,l.getActiveSpan)()||!!A&&(0,p.hasSpanStreamingEnabled)(A),P=w&&R?(0,o.startInactiveSpan)({name:`${S} ${O}`,attributes:{url:(0,g.stripDataUrlContent)(v),type:"xhr","http.method":S,"http.url":T?(0,g.stripDataUrlContent)(T):void 0,"server.address":x?.host,[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[a.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...x?.search&&{"http.query":x?.search},...x?.hash&&{"http.fragment":x?.hash}}}):new n.SentryNonRecordingSpan;w&&!R&&A?.recordDroppedEvent("no_parent_span","span");m.__sentry_xhr_span_id__=P.spanContext().spanId,d[m.__sentry_xhr_span_id__]=P,r(v)&&function(e,t,r){const{"sentry-trace":n,baggage:i,traceparent:o}=(0,u.getTraceData)({span:t,propagateTraceparent:r});n&&function(e,t,r,n){const i=e.__sentry_xhr_v3__?.request_headers;if(i?.["sentry-trace"]||!e.setRequestHeader)return;try{if(e.setRequestHeader("sentry-trace",t),n&&!i?.traceparent&&e.setRequestHeader("traceparent",n),r){const t=i?.baggage;t&&(0,E.baggageHeaderHasSentryValues)(t)||e.setRequestHeader("baggage",r)}}catch{}}(e,n,i,o)}(m,(0,c.hasSpansEnabled)()&&R?P:void 0,f);A&&A.emit("beforeOutgoingRequestSpan",P,e);return P}(t,x,R,P,I,T);r&&(y&&O(r,e),S?.(r,{headers:(0,E.createHeadersSafely)(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}const x=300;function O(e,t){const{url:r}=(0,l.spanToJSON)(e).data;if(!r||"string"!=typeof r)return;let n=()=>{setTimeout(i)};if((0,p.hasSpanStreamingEnabled)(t)){const t=e.end.bind(e);e.end=e=>{const r=e??(0,m.timestampInSeconds)();let o=!1;const a=()=>{o||(o=!0,setTimeout(i),t(r),clearTimeout(s))};n=a;const s=setTimeout(a,x)}}const i=(0,v.addPerformanceInstrumentationHandler)("resource",({entries:t})=>{t.forEach(t=>{(0,E.isPerformanceResourceTiming)(t)&&t.name.endsWith(r)&&(e.setAttributes((0,S.resourceTimingToSpanAttributes)(t)),n())})})}function A(e,t){const r=(0,y.getLocationHref)();if(r){let n,i;try{n=new URL(e,r),i=new URL(r).origin}catch{return!1}const o=n.origin===i;return t?(0,h.stringMatchesSomePattern)(n.toString(),t)||o&&(0,h.stringMatchesSomePattern)(n.pathname,t):o}{const r=!!e.match(/^\/(?!\/)/);return t?(0,h.stringMatchesSomePattern)(e,t):r}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getTraceData:()=>p});var n=r(402),i=r(403),o=r(401),a=r(400),s=r(413),c=r(434),l=r(440),u=r(428),d=r(438);function p(e={}){const t=e.client||(0,o.getClient)();if(!(0,a.isEnabled)()||!t)return{};const r=(0,i.getMainCarrier)(),p=(0,n.getAsyncContextStrategy)(r);if(p.getTraceData)return p.getTraceData(e);const f=e.scope||(0,o.getCurrentScope)(),h=e.span||(0,c.getActiveSpan)();if(!h&&(0,o.hasExternalPropagationContext)())return{};const m=h?(0,c.spanToTraceHeader)(h):function(e){const{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,d.generateSentryTraceHeader)(t,n,r)}(f),g=h?(0,l.getDynamicSamplingContextFromSpan)(h):(0,l.getDynamicSamplingContextFromScope)(t,f),y=(0,u.dynamicSamplingContextToSentryBaggageHeader)(g);if(!d.TRACEPARENT_REGEXP.test(m))return s.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const v={"sentry-trace":m,baggage:y};return e.propagateTraceparent&&(v.traceparent=h?(0,c.spanToTraceparentHeader)(h):function(e){const{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,d.generateTraceparentHeader)(t,n,r)}(f)),v}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_INTERNAL_getTracingHeadersForFetchRequest:()=>y,_callOnRequestSpanEnd:()=>g,instrumentFetchRequest:()=>m});var n=r(401),i=r(427),o=r(434),a=r(436),s=r(414),c=r(430),l=r(428),u=r(444),d=r(432),p=r(426),f=r(1432),h=r(1495);function m(e,t,r,i,s){if(!e.fetchData)return;const{method:l,url:h}=e.fetchData,m=(0,c.hasSpansEnabled)()&&t(h);if(e.endTimestamp){const t=e.fetchData.__span;if(!t)return;const r=i[t];return void(r&&(m&&(!function(e,t){if(t.response){(0,a.setHttpStatus)(e,t.response.status);const r=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:a.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(r,e),g(r,e,s)),delete i[t]))}const{spanOrigin:v="auto.http.browser",propagateTraceparent:_=!1}="object"==typeof s?s:{spanOrigin:s},S=(0,n.getClient)(),E=!!(0,o.getActiveSpan)()||!!S&&(0,d.hasSpanStreamingEnabled)(S),w=m&&E?(0,p.startInactiveSpan)(function(e,t,r){if(e.startsWith("data:")){return{name:`${t} ${(0,f.stripDataUrlContent)(e)}`,attributes:b(e,void 0,t,r)}}const n=(0,f.parseStringToURLObject)(e),i=n?(0,f.getSanitizedUrlStringFromUrlObject)(n):e;return{name:`${t} ${i}`,attributes:b(e,n,t,r)}}(h,l,v)):new u.SentryNonRecordingSpan;if(m&&!E&&S?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=w.spanContext().spanId,i[w.spanContext().spanId]=w,r(e.fetchData.url)){const t=e.args[0],r={...e.args[1]||{}},n=y(t,r,(0,c.hasSpansEnabled)()&&E?w:void 0,_);
41n&&(e.args[1]=r,r.headers=n)}if(S){const t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};S.emit("beforeOutgoingRequestSpan",w,t)}return w}function g(e,t,r){const n="object"==typeof r&&null!==r?r.onRequestSpanEnd:void 0;n?.(e,{headers:t.response?.headers,error:t.error})}function y(e,t,r,n){const i=(0,h.getTraceData)({span:r,propagateTraceparent:n}),o=i["sentry-trace"],a=i.baggage,c=i.traceparent;if(!o)return;const l=t.headers||((0,s.isRequest)(e)?e.headers:void 0);if(l){if(u=l,"undefined"!=typeof Headers&&(0,s.isInstanceOf)(u,Headers)){const e=new Headers(l);if(e.get("sentry-trace")||e.set("sentry-trace",o),n&&c&&!e.get("traceparent")&&e.set("traceparent",c),a){const t=e.get("baggage");t?v(t)||e.set("baggage",`${t},${a}`):e.set("baggage",a)}return e}if(function(e){if(!Array.isArray(e))return!1;return e.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])}(l)){const e=[...l];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",o]),n&&c&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",c]);const t=l.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&v(e[1]));return a&&!t&&e.push(["baggage",a]),e}{const e="sentry-trace"in l?l["sentry-trace"]:void 0,t="traceparent"in l?l.traceparent:void 0,r="baggage"in l?l.baggage:void 0,i=r?Array.isArray(r)?[...r]:[r]:[],s=r&&(Array.isArray(r)?r.find(e=>v(e)):v(r));a&&!s&&i.push(a);const u=Object.assign({},l,{"sentry-trace":e??o,baggage:i.length>0?i.join(","):void 0});return n&&c&&!t&&(u.traceparent=c),u}}return{...i};var u}function v(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(l.SENTRY_BAGGAGE_KEY_PREFIX))}function b(e,t,r,n){const o={url:(0,f.stripDataUrlContent)(e),type:"fetch","http.method":r,[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:n,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return t&&((0,f.isURLObjectRelative)(t)||(o["http.url"]=(0,f.stripDataUrlContent)(t.href),o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ORIGINAL_REQ_BODY:()=>o,getBodyString:()=>s,getFetchRequestArgBody:()=>c,parseXhrResponseHeaders:()=>l,serializeFormData:()=>a});var n=r(413),i=r(1453);const o=Symbol.for("sentry__originalRequestBody");function a(e){return new URLSearchParams(e).toString()}function s(e,t=n.debug){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[a(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.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function c(e=[]){if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const t=e[0][o];return void 0!==t?t:void 0}}function l(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return i.DEBUG_BUILD&&n.debug.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{const[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{baggageHeaderHasSentryValues:()=>i,createHeadersSafely:()=>s,getFullURL:()=>o,isPerformanceResourceTiming:()=>a});var n=r(1423);function i(e){return e.split(",").some(e=>e.trim().startsWith("sentry-"))}function o(e){try{return new URL(e,n.WINDOW.location.origin).href}catch{return}}function a(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}function s(e){try{return new Headers(e)}catch{return}}},(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)}}},,,,,,,function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
vendor: 14,253 bytes, line 41
41),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});t.push(0);var r=t[0],n=t[1];if(10===r)switch(n){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(r){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(r),a=Math.max(i,o),s=0,c=e.map([t,r],function(t){var r=a-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});for(n&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===s)return 0;a-=1}else if(c[0][a]<c[1][a])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var i=e[r];if(t(i,r))return i}},e.assign=function(e){for(var t,r,n=e,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var s=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach(function(t){n[t]=e[t]})};for(t=0,r=o.length;t<r;t+=1)s();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},t.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},t.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},t.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},t.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(91))&&n.__esModule?n:{default:n},o=r(18);function a(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)}}var s=function(){function e(){}var t,r,n;return e.getParser=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=null),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t,r)},e.parse=function(e,t){return void 0===t&&(t=null),new i.default(e,t).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],(r=null)&&a(t.prototype,r),n&&a(t,n),e}();t.default=s,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=c(r(92)),i=c(r(93)),o=c(r(94)),a=c(r(95)),s=c(r(17));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=null),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e;var n=!1;"boolean"==typeof t?(n=t,this._hints=r):this._hints=null!=t&&"object"==typeof t?t:null,this.parsedResult={},!0!==n&&this.parse()}var t=e.prototype;return t.getHints=function(){return this._hints},t.hasBrand=function(e){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var t=e.toLowerCase();return this._hints.brands.some(function(e){return e.brand&&e.brand.toLowerCase()===t})},t.getBrandVersion=function(e){if(this._hints&&Array.isArray(this._hints.brands)){var t=e.toLowerCase(),r=this._hints.brands.find(function(e){return e.brand&&e.brand.toLowerCase()===t});return r?r.version:void 0}},t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(n.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA(),this)),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(i.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(o.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,i={},o=0;if(Object.keys(e).forEach(function(t){var a=e[t];"string"==typeof a?(i[t]=a,o+=1):"object"==typeof a&&(r[t]=a,n+=1)}),n>0){var a=Object.keys(r),c=s.default.find(a,function(e){return t.isOS(e)});if(c){var l=this.satisfies(r[c]);if(void 0!==l)return l}var u=s.default.find(a,function(e){return t.isPlatform(e)});if(u){var d=this.satisfies(r[u]);if(void 0!==d)return d}}if(o>0){var p=Object.keys(i),f=s.default.find(p,function(e){return t.isBrowser(e,!0)});if(void 0!==f)return this.compareVersion(i[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(s.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=l,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/gptbot/i],describe:function(e){var t={name:"GPTBot"},r=i.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chatgpt-user/i],describe:function(e){var t={name:"ChatGPT-User"},r=i.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/oai-searchbot/i],describe:function(e){var t={name:"OAI-SearchBot"},r=i.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(e){var t={name:"ClaudeBot"}
vendor: 10,950 bytes, line 41
41,r=i.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(e){var t={name:"Omgilibot"},r=i.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/diffbot/i],describe:function(e){var t={name:"Diffbot"},r=i.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/perplexitybot/i],describe:function(e){var t={name:"PerplexityBot"},r=i.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/perplexity-user/i],describe:function(e){var t={name:"Perplexity-User"},r=i.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/youbot/i],describe:function(e){var t={name:"YouBot"},r=i.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/meta-webindexer/i],describe:function(e){var t={name:"Meta-WebIndexer"},r=i.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/meta-externalads/i],describe:function(e){var t={name:"Meta-ExternalAds"},r=i.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/meta-externalagent/i],describe:function(e){var t={name:"Meta-ExternalAgent"},r=i.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/meta-externalfetcher/i],describe:function(e){var t={name:"Meta-ExternalFetcher"},r=i.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/linespider/i],describe:function(e){var t={name:"Linespider"},r=i.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/amazonbot/i],describe:function(e){var t={name:"AmazonBot"},r=i.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/bingbot/i],describe:function(e){var t={name:"BingCrawler"},r=i.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/baiduspider/i],describe:function(e){var t={name:"BaiduSpider"},r=i.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/duckduckbot/i],describe:function(e){var t={name:"DuckDuckBot"},r=i.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ia_archiver/i],describe:function(e){var t={name:"InternetArchiveCrawler"},r=i.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(e){var t={name:"SlackBot"},r=i.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/PaleMoon/i],describe:function(e){var t={name:"Pale Moon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/librewolf/i],describe:function(e){var t={name:"LibreWolf"},r=i.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(e){var t={name:"Sogou Browser"},r=i.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,e),n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e),o=i.default.getFirstMatch(/se ([\d.]+)x/i,e),a=r||n||o;return a&&(t.version=a),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return!!e.hasBrand("DuckDuckGo")||e.test(/\sDdg\/[\d.]+$/i)}
vendor: 4,159 bytes, line 41
41,describe:function(e,t){var r={name:"DuckDuckGo"};if(t){var n=t.getBrandVersion("DuckDuckGo");if(n)return r.version=n,r}var o=i.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,e);return o&&(r.version=o),r}},{test:function(e){return e.hasBrand("Brave")},describe:function(e,t){var r={name:"Brave"};if(t){var n=t.getBrandVersion("Brave");if(n)return r.version=n,r}return r}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:o.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:[/OpenHarmony/i],describe:function(e){var t=i.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.HarmonyOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:o.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:o.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);
vendor: 6,944 bytes, line 41
41return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:o.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(e){var t=i.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,e),r={type:o.PLATFORMS_MAP.mobile,vendor:"Nokia"};return t&&(r.model=t),r}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=a,e.exports=t.default}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EventStreamCodec:()=>n.EventStreamCodec,EventStreamMarshaller:()=>u.EventStreamMarshaller,EventStreamSerde:()=>g.EventStreamSerde,HeaderMarshaller:()=>i.HeaderMarshaller,Int64:()=>
41o.Int64,MessageDecoderStream:()=>a.MessageDecoderStream,MessageEncoderStream:()=>s.MessageEncoderStream,SmithyMessageDecoderStream:()=>c.SmithyMessageDecoderStream,SmithyMessageEncoderStream:()=>l.SmithyMessageEncoderStream,UniversalEventStreamMarshaller:()=>p.EventStreamMarshaller,eventStreamSerdeProvider:()=>u.eventStreamSerdeProvider,getChunkedStream:()=>f.getChunkedStream,getMessageUnmarshaller:()=>h.getMessageUnmarshaller,getUnmarshalledStream:()=>h.getUnmarshalledStream,iterableToReadableStream:()=>d.iterableToReadableStream,readableStreamToIterable:()=>d.readableStreamToIterable,resolveEventStreamSerdeConfig:()=>m.resolveEventStreamSerdeConfig,universalEventStreamSerdeProvider:()=>p.eventStreamSerdeProvider});var n=r(1508),i=r(1511),o=r(1512),a=r(1514),s=r(1515),c=r(1516),l=r(1517),u=r(1518),d=r(1522),p=r(1519),f=r(1520),h=r(1521),m=r(1523),g=r(1524)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EventStreamCodec:()=>a});var n=r(1509),i=r(1511),o=r(1513);class a{headerMarshaller;messageBuffer;isEndOfStream;constructor(e,t){this.headerMarshaller=new i.HeaderMarshaller(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){const e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage:()=>e,isEndOfStream:()=>t}}getAvailableMessages(){const e=this.messageBuffer;this.messageBuffer=[];const t=this.isEndOfStream;return{getMessages:()=>e,isEndOfStream:()=>t}}encode({headers:e,body:t}){const r=this.headerMarshaller.format(e),i=r.byteLength+t.byteLength+16,o=new Uint8Array(i),a=new DataView(o.buffer,o.byteOffset,o.byteLength),s=new n.Crc32;return a.setUint32(0,i,!1),a.setUint32(4,r.byteLength,!1),a.setUint32(8,s.update(o.subarray(0,8)).digest(),!1),o.set(r,12),o.set(t,r.byteLength+12),a.setUint32(i-4,s.update(o.subarray(8,i-4)).digest(),!1),o}decode(e){const{headers:t,body:r}=(0,o.splitMessage)(e);return{headers:this.headerMarshaller.parse(t),body:r}}formatHeaders(e){return this.headerMarshaller.format(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AwsCrc32:()=>o.AwsCrc32,Crc32:()=>s,crc32:()=>a});var n=r(314),i=r(301),o=r(1510);function a(e){return(new s).update(e).digest()}var s=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var i=(0,n.__values)(e),o=i.next();!o.done;o=i.next()){var a=o.value;this.checksum=this.checksum>>>8^c[255&(this.checksum^a)]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}(),c=(0,i.uint32ArrayFrom)([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])},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AwsCrc32:()=>a});var n=r(314),i=r(301),o=r(1509),a=function(){function e(){this.crc32=new o.Crc32}return e.prototype.update=function(e){(0,i.isEmptyData)(e)||this.crc32.update((0,i.convertToBuffer)(e))},e.prototype.digest=function(){return(0,n.__awaiter)(this,void 0,void 0,function(){return(0,n.__generator)(this,function(e){return[2,(0,i.numToUint8)(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new o.Crc32},e}()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HeaderMarshaller:()=>a});var n,i=r(239),o=r(1512);class a{toUtf8;fromUtf8;constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const r of Object.keys(e)){const n=this.fromUtf8(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}
41const r=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const a=new DataView(new ArrayBuffer(3+e.value.byteLength));a.setUint8(0,6),a.setUint16(1,e.value.byteLength,!1);const s=new Uint8Array(a.buffer);return s.set(e.value,3),s;case"string":const c=this.fromUtf8(e.value),l=new DataView(new ArrayBuffer(3+c.byteLength));l.setUint8(0,7),l.setUint16(1,c.byteLength,!1);const u=new Uint8Array(l.buffer);return u.set(c,3),u;case"timestamp":const d=new Uint8Array(9);return d[0]=8,d.set(o.Int64.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!g.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const p=new Uint8Array(17);return p[0]=9,p.set((0,i.fromHex)(e.value.replace(/\-/g,"")),1),p}}parse(e){const t={};let r=0;for(;r<e.byteLength;){const n=e.getUint8(r++),a=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[a]={type:s,value:!0};break;case 1:t[a]={type:s,value:!1};break;case 2:t[a]={type:c,value:e.getInt8(r++)};break;case 3:t[a]={type:l,value:e.getInt16(r,!1)},r+=2;break;case 4:t[a]={type:u,value:e.getInt32(r,!1)},r+=4;break;case 5:t[a]={type:d,value:new o.Int64(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:const n=e.getUint16(r,!1);r+=2,t[a]={type:p,value:new Uint8Array(e.buffer,e.byteOffset+r,n)},r+=n;break;case 7:const g=e.getUint16(r,!1);r+=2,t[a]={type:f,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,g))},r+=g;break;case 8:t[a]={type:h,value:new Date(new o.Int64(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:const y=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[a]={type:m,value:`${(0,i.toHex)(y.subarray(0,4))}-${(0,i.toHex)(y.subarray(4,6))}-${(0,i.toHex)(y.subarray(6,8))}-${(0,i.toHex)(y.subarray(8,10))}-${(0,i.toHex)(y.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}}!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(n||(n={}));const s="boolean",c="byte",l="short",u="integer",d="long",p="binary",f="string",h="timestamp",m="uuid",g=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Int64:()=>i});var n=r(239);class i{bytes;constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&o(t),new i(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&o(e),parseInt((0,n.toHex)(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function o(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{splitMessage:()=>c});var n=r(1509);const i=4,o=2*i,a=4,s=o+2*a;function c({byteLength:e,byteOffset:t,buffer:r}){if(e<s)throw new Error("Provided message too short to accommodate event stream message overhead");const c=new DataView(r,t,e),l=c.getUint32(0,!1);if(e!==l)throw new Error("Reported message length does not match received message length");const u=c.getUint32(i,!1),d=c.getUint32(o,!1),p=c.getUint32(e-a,!1),f=(new n.Crc32).update(new Uint8Array(r,t,o));if(d!==f.digest())throw new Error(`The prelude checksum specified in the message (${d}) does not match the calculated CRC32 checksum (${f.digest()})`);
41if(f.update(new Uint8Array(r,t+o,e-(o+a))),p!==f.digest())throw new Error(`The message checksum (${f.digest()}) did not match the expected value of ${p}`);return{headers:new DataView(r,t+o+a,u),body:new Uint8Array(r,t+o+a+u,l-u-(o+a+a))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MessageDecoderStream:()=>n});class n{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.decoder.decode(e);yield t}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MessageEncoderStream:()=>n});class n{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=this.options.encoder.encode(e);yield t}this.options.includeEndFrame&&(yield new Uint8Array(0))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SmithyMessageDecoderStream:()=>n});class n{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=await this.options.deserializer(e);void 0!==t&&(yield t)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SmithyMessageEncoderStream:()=>n});class n{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.serializer(e);yield t}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EventStreamMarshaller:()=>o,eventStreamSerdeProvider:()=>s});var n=r(1519),i=r(1522);class o{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new n.EventStreamMarshaller({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){const r=a(e)?(0,i.readableStreamToIterable)(e):e;return this.universalMarshaller.deserialize(r,t)}serialize(e,t){const r=this.universalMarshaller.serialize(e,t);return"function"==typeof ReadableStream?(0,i.iterableToReadableStream)(r):r}}const a=e=>"function"==typeof ReadableStream&&e instanceof ReadableStream,s=e=>new o(e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EventStreamMarshaller:()=>u,eventStreamSerdeProvider:()=>d});var n=r(1508),i=r(1514),o=r(1515),a=r(1516),s=r(1517),c=r(1520),l=r(1521);class u{eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:t}){this.eventStreamCodec=new n.EventStreamCodec(e,t),this.utfEncoder=e}deserialize(e,t){const r=(0,c.getChunkedStream)(e);return new a.SmithyMessageDecoderStream({messageStream:new i.MessageDecoderStream({inputStream:r,decoder:this.eventStreamCodec}),deserializer:(0,l.getMessageUnmarshaller)(t,this.utfEncoder)})}serialize(e,t){return new o.MessageEncoderStream({messageStream:new s.SmithyMessageEncoderStream({inputStream:e,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}}const d=e=>new u(e)},(e,t,r)=>{"use strict";function n(e){let t=0,r=0,n=null,i=null;const o=e=>{if("number"!=typeof e)throw new Error("Attempted to allocate an event message where size was not a number: "+e);t=e,r=4,n=new Uint8Array(e);new DataView(n.buffer).setUint32(0,e,!1)};return{[Symbol.asyncIterator]:async function*(){const a=e[Symbol.asyncIterator]();for(;;){const{value:e,done:s}=await a.next();if(s){if(!t)return;if(t!==r)throw new Error("Truncated event message received.");return void(yield n)}const c=e.length;let l=0;for(;l<c;){if(!n){const t=c-l;i||(i=new Uint8Array(4));const n=Math.min(4-r,t);if(i.set(e.slice(l,l+n),r),r+=n,l+=n,r<4)break;o(new DataView(i.buffer).getUint32(0,!1)),i=null}const a=Math.min(t-r,c-l);n.set(e.slice(l,l+a),r),r+=a,l+=a,t&&t===r&&(yield n,n=null,t=0,r=0)}}}}}r.r(t),r.d(t,{getChunkedStream:()=>n})},(e,t,r)=>{"use strict";function n(e,t){const r=i(t.deserializer,t.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(const n of e){const e=t.eventStreamCodec.decode(n),i=await r(e);void 0!==i&&(yield i)}}}}function i(e,t){return async function(r){const{value:n}=r.headers[":message-type"];if("error"===n){const e=new Error(r.headers[":error-message"].value||"UnknownError");throw e.name=r.headers[":error-code"].value,e}if("exception"===n){const n=r.headers[":exception-type"].value,i={[n]:r},o=await e(i);if(o.$unknown){const e=new Error(t(r.body));throw e.name=n,e}throw o[n]}if("event"===n){const t={[r.headers[":event-type"].value]:r},n=await e(t);if(n.$unknown)return;return n}throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}r.r(t),r.d(t,{getMessageUnmarshaller:()=>i,getUnmarshalledStream:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{iterableToReadableStream:()=>i,readableStreamToIterable:()=>n});const n=e=>({[Symbol.asyncIterator]:async function*(){const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}}),i=e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){const{done:r,value:n}=await t.next();if(r)return e.close();e.enqueue(n)}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resolveEventStreamSerdeConfig:()=>n});const n=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EventStreamSerde:()=>o});var n=r(226),i=r(228);class o{marshaller;
41serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:t,deserializer:r,serdeContext:n,defaultContentType:i}){this.marshaller=e,this.serializer=t,this.deserializer=r,this.serdeContext=n,this.defaultContentType=i}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:r}){const n=this.marshaller,i=t.getEventStreamMember(),o=t.getMemberSchema(i),a=this.serializer,s=this.defaultContentType,c=Symbol("initialRequestMarker"),l={async*[Symbol.asyncIterator](){if(r){const e={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:s}};a.write(t,r);const n=a.flush();yield{[c]:!0,headers:e,body:n}}for await(const t of e)yield t}};return n.serialize(l,e=>{if(e[c])return{headers:e.headers,body:e.body};let t="";for(const r in e)if("__type"!==r){t=r;break}const{additionalHeaders:r,body:n,eventType:i,explicitPayloadContentType:a}=this.writeEventBody(t,o,e);return{headers:{":event-type":{type:"string",value:i},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:a??s},...r},body:n}})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r}){const n=this.marshaller,o=t.getEventStreamMember(),a=t.getMemberSchema(o).getMemberSchemas(),s=Symbol("initialResponseMarker"),c=n.deserialize(e.body,async e=>{let r="";for(const t in e)if("__type"!==t){r=t;break}const n=e[r].body;if("initial-response"===r){const e=await this.deserializer.read(t,n);return delete e[o],{[s]:!0,...e}}if(r in a){const t=a[r];if(t.isStructSchema()){const o={};let a=!1;for(const[s,c]of t.structIterator()){const{eventHeader:t,eventPayload:l}=c.getMergedTraits();if(a=a||Boolean(t||l),l)c.isBlobSchema()?o[s]=n:c.isStringSchema()?o[s]=(this.serdeContext?.utf8Encoder??i.toUtf8)(n):c.isStructSchema()&&(o[s]=await this.deserializer.read(c,n));else if(t){const t=e[r].headers[s]?.value;null!=t&&(c.isNumericSchema()?o[s]=t&&"object"==typeof t&&"bytes"in t?BigInt(t.toString()):Number(t):o[s]=t)}}if(a)return{[r]:o};if(0===n.byteLength)return{[r]:{}}}return{[r]:await this.deserializer.read(t,n)}}return{$unknown:e}}),l=c[Symbol.asyncIterator](),u=await l.next();if(u.done)return c;if(u.value?.[s]){if(!t)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(const e in u.value)r[e]=u.value[e]}return{async*[Symbol.asyncIterator](){for(u?.value?.[s]||(yield u.value);;){const{done:e,value:t}=await l.next();if(e)break;yield t}}}}writeEventBody(e,t,r){const i=this.serializer;let o,a=e,s=null;const c={};if(t.getSchema()[4].includes(e)){const n=t.getMemberSchema(e);if(n.isStructSchema()){for(const[t,i]of n.structIterator()){const{eventHeader:n,eventPayload:o}=i.getMergedTraits();if(o)s=t;else if(n){const n=r[e][t];let o="binary";i.isNumericSchema()?o=(-2)**31<=n&&n<=2**31-1?"integer":"long":i.isTimestampSchema()?o="timestamp":i.isStringSchema()?o="string":i.isBooleanSchema()&&(o="boolean"),null!=n&&(c[t]={type:o,value:n},delete r[e][t])}}if(null!==s){const t=n.getMemberSchema(s);t.isBlobSchema()?o="application/octet-stream":t.isStringSchema()&&(o="text/plain"),i.write(t,r[e][s])}else i.write(n,r[e])}else{if(!n.isUnitSchema())throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.");i.write(n,{})}}else{const[t,n]=r[e];a=t,i.write(15,n)}const l=i.flush()??new Uint8Array;return{body:"string"==typeof l?(this.serdeContext?.utf8Decoder??n.fromUtf8)(l):l,eventType:a,explicitPayloadContentType:o,additionalHeaders:c}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{const n=r(1575),i=r(1576),o=r(1599),a=r(1601);function s(e,t,r,o,a){const s=[].slice.call(arguments,1),c=s.length,l="function"==typeof s[c-1];if(!l&&!n())throw new Error("Callback required as last argument");if(!l){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));
vendor: 8,809 bytes, line 41
41try{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(1577),i=r(1578),o=r(1579),a=r(1580),s=r(1581),c=r(1582),l=r(1583),u=r(1584),d=r(1585),p=r(1588),f=r(1592),h=r(1589),m=r(1593);function g(e,t,r){const n=e.size,i=f.getEncodedBits(t,r);let o,a;for(o=0;o<15;o++)a=1==(i>>o&1),o<6?e.set(o,8,a,!0):o<8?e.set(o+1,8,a,!0):e.set(n-15+o,8,a,!0),o<8?e.set(8,n-o-1,a,!0):o<9?e.set(8,15-o-1+1,a,!0):e.set(8,15-o-1,a,!0);e.set(n-8,8,1,!0)}function y(e,t,r){const i=new o;r.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(i)});const a=8*(n.getSymbolTotalCodewords(e)-u.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=u.getTotalCodewordsCount(t,r),a=i-o,s=u.getBlocksCount(t,r),c=i%s,l=s-c,p=Math.floor(i/s),f=Math.floor(a/s),h=f+1,m=p-f,g=new d(m);let y=0;const v=new Array(s),b=new Array(s);let _=0;const S=new Uint8Array(e.buffer);for(let e=0;e<s;e++){const t=e<l?f:h;v[e]=S.slice(y,y+t),b[e]=g.encode(v[e]),y+=t,_=Math.max(_,t)}const E=new Uint8Array(i);let w,T,x=0;for(w=0;w<_;w++)for(T=0;T<s;T++)w<v[T].length&&(E[x++]=v[T][w]);for(w=0;w<m;w++)for(T=0;T<s;T++)E[x++]=b[T][w];return E}(i,e,t)}function v(e,t,r,i){let o;if(Array.isArray(e))o=m.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let n=t;if(!n){const t=m.rawSplit(e);n=p.getBestVersionForData(t,r)}o=m.fromString(e,n||40)}}const u=p.getBestVersionForData(o,r);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<u)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+u+".\n")}else t=u;const d=y(t,r,o),f=n.getSymbolSize(t),h=new a(f);return function(e,t){const r=e.size,n=c.getPositions(t);for(let t=0;t<n.length;t++){const i=n[t][0],o=n[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||r<=i+t))for(let n=-1;n<=7;n++)o+n<=-1||r<=o+n||(t>=0&&t<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===t||6===t)||t>=2&&t<=4&&n>=2&&n<=4?e.set(i+t,o+n,!0,!0):e.set(i+t,o+n,!1,!0))}}(h,t),function(e){const t=e.size;for(let r=8;r<t-8;r++){const t=r%2==0;e.set(r,6,t,!0),e.set(6,r,t,!0)}}(h),function(e,t){const r=s.getPositions(t);for(let t=0;t<r.length;t++){const n=r[t][0],i=r[t][1];for(let t=-2;t<=2;t++)for(let r=-2;r<=2;r++)-2===t||2===t||-2===r||2===r||0===t&&0===r?e.set(n+t,i+r,!0,!0):e.set(n+t,i+r,!1,!0)}}(h,t),g(h,r,0),t>=7&&function(e,t){const r=e.size,n=p.getEncodedBits(t);let i,o,a;for(let t=0;t<18;t++)i=Math.floor(t/3),o=t%3+r-8-3,a=1==(n>>t&1),e.set(i,o,a,!0),e.set(o,i,a,!0)}(h,t),function(e,t){const r=e.size;let n=-1,i=r-1,o=7,a=0;for(let s=r-1;s>0;s-=2)for(6===s&&s--;;){for(let r=0;r<2;r++)if(!e.isReserved(i,s-r)){let n=!1;a<t.length&&(n=1==(t[a]>>>o&1)),e.set(i,s-r,n),o--,-1===o&&(a++,o=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}(h,d),isNaN(i)&&(i=l.getBestMask(h,g.bind(null,h,r))),l.applyMask(i,h),g(h,r,i),{modules:h,version:t,errorCorrectionLevel:r,maskPattern:i,segments:o}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let r,o,a=i.M;return void 0!==t&&(a=i.from(t.errorCorrectionLevel,i.M),r=p.from(t.version),o=l.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(1577).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(1577).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 l=0;l<t;l++){let t=e.get(c,l);t===a?i++:(i>=5&&(n+=r+(i-5)),a=t,i=1),t=e.get(l,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(1578),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,
vendor: 10,667 bytes, line 41
41192,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(1586);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(1587);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(1577),i=r(1584),o=r(1578),a=r(1589),s=r(1590),c=n.getBCHDigit(7973);function l(e,t){return a.getCharCountIndicator(e,t)+4}function u(e,t){let r=0;return e.forEach(function(e){const n=l(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-l(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(u(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(1590),i=r(1591);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(1577),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(1589),i=r(1594),o=r(1595),a=r(1596),s=r(1597),c=r(1591),l=r(1577),u=r(1598);function d(e){return unescape(encodeURIComponent(e)).length}function p(e,t,r){const n=[];let i;for(;null!==(i=e.exec(r));)n.push({data:i[0],index:i.index,mode:t,length:i[0].length});return n}function f(e){const t=p(c.NUMERIC,n.NUMERIC,e),r=p(c.ALPHANUMERIC,n.ALPHANUMERIC,e);let i,o;l.isKanjiModeEnabled()?(i=p(c.BYTE,n.BYTE,e),o=p(c.KANJI,n.KANJI,e)):(i=p(c.BYTE_KANJI,n.BYTE,e),o=[]);return t.concat(r,i,o).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function h(e,t){switch(t){case n.NUMERIC:return i.getBitsLength(e);case n.ALPHANUMERIC:return o.getBitsLength(e);case n.KANJI:return s.getBitsLength(e);case n.BYTE:return a.getBitsLength(e)}}function m(e,t){let r;const c=n.getBestModeForData(e);if(r=n.from(t,c),r!==n.BYTE&&r.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+n.toString(r)+".\n Suggested mode is: "+n.toString(c));switch(r!==n.KANJI||l.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:d(i.data)}]);break;case n.BYTE:t.push([{data:i.data,mode:n.BYTE,length:d(i.data)}])}}return t}(f(e,l.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 l=s[e],u=""+a+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<o.length;e++){const a=o[e];r[a]&&r[a].node.mode===l.mode?(i[a][u]=h(r[a].lastCount+l.length,l.mode)-h(r[a].lastCount,l.mode),r[a].lastCount+=l.length):(r[a]&&(r[a].lastCount=l.length),i[a][u]=h(l.length,l.mode)+4+n.getCharCountIndicator(l.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=u.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(f(e,l.isKanjiModeEnabled()))}},(e,t,r)=>{const n=r(1589);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(1589),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(1589);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(1589),i=r(1577);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,l,u,d,p,f=t.PriorityQueue.make();for(f.push(r,0);!f.empty();)for(c in s=(a=f.pop()).value,l=a.cost,u=e[s]||{})u.hasOwnProperty(c)&&(d=l+u[c],p=o[c],(void 0===o[c]||p>
vendor: 5,330 bytes, line 41
41d)&&(o[c]=d,f.push(c,d),i[c]=s));if(void 0!==n&&void 0===o[n]){var h=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(h)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t;n;)r.push(n),e[n],n=e[n];return r.reverse(),r},find_path:function(e,r,n){var i=t.single_source_shortest_paths(e,r,n);return t.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var r,n=t.PriorityQueue,i={};for(r in e=e||{},n)n.hasOwnProperty(r)&&(i[r]=n[r]);return i.queue=[],i.sorter=e.sorter||n.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},(e,t,r)=>{const n=r(1600);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,l=[n.color.light,n.color.dark];for(let t=0;t<s;t++)for(let r=0;r<s;r++){let u=4*(t*s+r),d=n.color.light;if(t>=c&&r>=c&&t<s-c&&r<s-c){d=l[o[Math.floor((t-c)/a)*i+Math.floor((r-c)/a)]?1:0]}e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},(e,t,r)=>{const n=r(1600);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,l=s+2*a.margin,u=a.color.light.a?"<path "+i(a.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",d="<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 l=Math.floor(c%t),u=Math.floor(c/t);l||a||(a=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(n+=a?o("M",l+r,.5+u+r):o("m",i,0),i=0,a=!1),l+1<t&&e[c+1]||(n+=o("h",s),s=0)):i++}return n}(c,s,a.margin)+'"/>',p='viewBox="0 0 '+l+" "+l+'"',f='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+p+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof r&&r(null,f),f}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,e=>{var t=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,i=/^0o[0-7]+$/i,o=parseInt,a="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,s="object"==typeof self&&self&&self.Object===Object&&self,c=a||s||Function("return this")(),l=Object.prototype.toString,u=Math.max,d=Math.min,p=function(){return c.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(e))return NaN;if(f(e)){var a="function"==typeof e.valueOf?e.valueOf():e;e=f(a)?a+"":a}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(t,"");var s=n.test(e);return s||i.test(e)?o(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,r){var n,i,o,a,s,c,l=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var r=n,o=i;return n=i=void 0,l=t,a=e.apply(o,r)}function b(e){var r=e-c;return void 0===c||r>=t||r<0||g&&e-l>=o}function _(){var e=p();if(b(e))return S(e);s=setTimeout(_,function(e){var r=t-(e-c);return g?d(r,o-(e-l)):r}(e))}function S(e){return s=void 0,y&&n?v(e):(n=i=void 0,a)}function E(){var e=p(),r=b(e);
vendor: 3,872 bytes, line 41
41if(n=arguments,i=this,c=e,r){if(void 0===s)return function(e){return l=e,s=setTimeout(_,t),m?v(e):a}(c);if(g)return s=setTimeout(_,t),v(c)}return void 0===s&&(s=setTimeout(_,t)),a}return t=h(t)||0,f(r)&&(m=!!r.leading,o=(g="maxWait"in r)?u(h(r.maxWait)||0,t):o,y="trailing"in r?!!r.trailing:y),E.cancel=function(){void 0!==s&&clearTimeout(s),l=0,n=c=i=s=void 0},E.flush=function(){return void 0===s?a:S(p())},E}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(1994),i=r(1160),o=r(1161),a=r(1995),s=r(1997),c=r(396),l=r(1159),u=r(1165),d=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,s.default)(e,t)})},p=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,r){var n=t.resolveArguments(e,r),i=n[0],o=n[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.resolveArguments(e,r),i=n[0],o=n[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.resolveArguments(e,r),i=n[0],o=n[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"appear"),t.removeClasses(r,"enter"),t.addClass(r,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.resolveArguments(e)[0];t.addClass(r,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"exit"),t.addClass(r,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,r){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,r]},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,i=n?""+(n&&r?r+"-":"")+e:r[e];return{baseClassName:i,activeClassName:n?i+"-active":r[e+"Active"],doneClassName:n?i+"-done":r[e+"Done"]}},t}(0,o.default)(t,e);var r=t.prototype;return r.addClass=function(e,t,r){var n=this.getClassNames(t)[r+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===r&&i&&(n+=" "+i),"active"===r&&e&&(0,u.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&&d(e,n),i&&d(e,i),o&&d(e,o)},r.render=function(){var e=this.props,t=(e.classNames,(0,i.default)(e,["classNames"]));return c.default.createElement(l.default,(0,n.default)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(c.default.Component);p.defaultProps={classNames:""},p.propTypes={};const 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";r.r(t),r.d(t,{default:()=>i});var n=r(1996);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";
vendor: 5,565 bytes, line 41
41function 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,{default:()=>p});var n=r(1160),i=r(1994),o=r(1999),a=r(1161),s=r(396),c=r(1164),l=r(2e3),u=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},d=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,l.getInitialChildMapping)(e,n):(0,l.getNextChildMapping)(e,r,n),firstRender:!1}},r.handleExited=function(e,t){var r=(0,l.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=u(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);d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};const p=d},(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(396);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 l=i[c][n];s[i[c][n]]=r(l)}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 l=i in t,u=i in s,d=t[i],p=(0,n.isValidElement)(d)&&!d.props.in;!u||l&&!p?u||!l||p?u&&l&&(0,n.isValidElement)(d)&&(c[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:d.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,{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:()=>G.default,ContinuousSizeLegend:()=>$.default,ContourSeries:()=>l.default,Crosshair:()=>u.default,CustomSVGSeries:()=>d.default,DecorativeAxis:()=>p.default,DiscreteColorLegend:()=>q.default,FlexibleHeightXYPlot:()=>te.FlexibleHeightXYPlot,FlexibleWidthXYPlot:()=>te.FlexibleWidthXYPlot,FlexibleXYPlot:()=>te.FlexibleXYPlot,GradientDefs:()=>f.default,GridLines:()=>h.default,HeatmapSeries:()=>m.default,HexbinSeries:()=>g.default,Highlight:()=>y.default,Hint:()=>v.default,HorizontalBarSeries:()=>b.default,HorizontalBarSeriesCanvas:()=>_.default,HorizontalGridLines:()=>S.default,HorizontalRectSeries:()=>E.default,HorizontalRectSeriesCanvas:()=>w.default,LabelSeries:()=>T.default,LineMarkSeries:()=>x.default,LineMarkSeriesCanvas:()=>O.default,LineSeries:()=>A.default,LineSeriesCanvas:()=>R.default,MarkSeries:()=>P.default,MarkSeriesCanvas:()=>I.default,ParallelCoordinates:()=>K.default,PolygonSeries:()=>C.default,RadarChart:()=>Y.default,RadialChart:()=>J.default,RectSeries:()=>B.default,RectSeriesCanvas:()=>j.default,Sankey:()=>Q.default,ScaleUtils:()=>ne.default,SearchableDiscreteColorLegend:()=>W.default,Sunburst:()=>X.default,Treemap:()=>Z.default,VerticalBarSeries:()=>k.default,VerticalBarSeriesCanvas:()=>M.default,VerticalGridLines:()=>D.default,VerticalRectSeries:()=>N.default,VerticalRectSeriesCanvas:()=>L.default,Voronoi:()=>F.default,WhiskerSeries:()=>U.default,XAxis:()=>z.default,XYPlot:()=>H.default,YAxis:()=>V.default,makeHeightFlexible:()=>te.makeHeightFlexible,makeVisFlexible:()=>te.makeVisFlexible,makeWidthFlexible:()=>te.makeWidthFlexible});var n=r(2057),i=r(2158),o=r(2167),a=r(2224),s=r(2225),c=r(2226),l=r(2228),u=r(2254),d=r(2255),p=r(2256),f=r(2258),h=r(2259),m=r(2260),g=r(2261),y=r(2264),v=r(2265),b=r(2266),_=r(2268),S=r(2270),E=r(2271),w=r(2273),T=r(2275),x=r(2276),O=r(2279),A=r(2277),R=r(2281),P=r(2278),I=r(2280),
41C=r(2282),k=r(2283),M=r(2284),D=r(2285),N=r(2286),L=r(2287),F=r(2288),B=r(2272),j=r(2274),U=r(2289),H=r(2290),z=r(2352),V=r(2357),G=r(2358),$=r(2359),q=r(2360),W=r(2362),K=r(2363),Y=r(2364),J=r(2365),Q=r(2366),X=r(2382),Z=r(2401),ee=r(2418),te=r(2419),re=r(2227),ne=r(2098)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(787),i=r.n(n),o=r(2058),a=r(396),s=r(2068),c=r(2098);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 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 d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return f(e)}(this,r)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=g(g(g(g(g(g({},(0,c.getScalePropTypesByAttribute)("x")),(0,c.getScalePropTypesByAttribute)("y")),(0,c.getScalePropTypesByAttribute)("size")),(0,c.getScalePropTypesByAttribute)("opacity")),(0,c.getScalePropTypesByAttribute)("color")),{},{width:i().number,height:i().number,data:i().arrayOf(i().oneOfType([i().object,i().array])),onValueMouseOver:i().func,onValueMouseOut:i().func,onValueClick:i().func,onValueRightClick:i().func,onSeriesMouseOver:i().func,onSeriesMouseOut:i().func,onSeriesClick:i().func,onSeriesRightClick:i().func,onNearestX:i().func,onNearestXY:i().func,style:i().object,animation:s.AnimationPropType,stack:i().bool}),b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(a,e);var t,r,n,i=p(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(f(e=i.call.apply(i,[this].concat(r))),"_seriesClickHandler",function(t){var r=e.props.onSeriesClick;r&&r({event:t})}),y(f(e),"_seriesMouseOutHandler",function(t){var r=e.props.onSeriesMouseOut;r&&r({event:t})}),y(f(e),"_seriesMouseOverHandler",function(t){var r=e.props.onSeriesMouseOver;r&&r({event:t})}),y(f(e),"_seriesRightClickHandler",function(t){var r=e.props.onSeriesRightClick;r&&r({event:t})}),y(f(e),"_valueClickHandler",function(t,r){var n=e.props,i=n.onValueClick,o=n.onSeriesClick;i&&i(t,{event:r}),o&&o({event:r})}),y(f(e),"_valueMouseOutHandler",function(t,r){var n=e.props,i=n.onValueMouseOut,o=n.onSeriesMouseOut;i&&i(t,{event:r}),o&&o({event:r})}),y(f(e),"_valueMouseOverHandler",function(t,r){var n=e.props,i=n.onValueMouseOver,o=n.onSeriesM
41ouseOver;i&&i(t,{event:r}),o&&o({event:r})}),y(f(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(),l=a.clientX,u=a.clientY;return"touchmove"===a.type&&(l=a.touches[0].pageX,u=a.touches[0].pageY),{x:l-c.left-s.clientLeft-o,y:u-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),l=c.data;l&&r(l,{innerX:c[0],innerY:c[1],index:c.index,event:e.nativeEvent})}}])&&u(t.prototype,r),n&&u(t,n),a}(a.PureComponent);b.displayName="AbstractSeries",b.propTypes=v,b.defaultProps={className:"",stack:!1,style:{}};const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{voronoi:()=>n.default});var n=r(2059)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a}),r.dn(a);var n=r(2060),i=r(2061),o=r(2062);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}),r.dn(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:()=>g,edges:()=>a,epsilon:()=>p,epsilon2:()=>f});var n,i,o,a,s=r(2063),c=r(2065),l=r(2067),u=r(2066),d=r(2064),p=1e-6,f=1e-12;function h(e,t,r){return(e[0]-r[0])*(t[1]-e[1])-(e[0]-t[0])*(r[1]-e[1])}function m(e,t){return t[1]-e[1]||t[0]-e[0]}function g(e,t){var r,p,f,h=e.sort(m).pop();for(a=[],i=new Array(e.length),n=new d.default,o=new d.default;;)if(f=l.firstCircle,h&&(!f||h[1]<f.y||h[1]===f.y&&h[0]<f.x))h[0]===r&&h[1]===p||((0,s.addBeach)(h),r=h[0],p=h[1]),h=e.pop();else{if(!f)break;(0,s.removeBeach)(f.arc)}if((0,c.sortCellHalfedges)(),t){var g=+t[0][0],y=+t[0][1],v=+t[1][0],b=+t[1][1];(0,u.clipEdges)(g,y,v,b),(0,c.clipCells)(g,y,v,b)}this.edges=a,this.cells=i,n=o=a=i=null}g.prototype={constructor:g,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;
vendor: 4,554 bytes, line 41
41return this.cells.forEach(function(r,n){if(o=(i=r.halfedges).length)for(var i,o,a,s=r.site,c=-1,l=t[i[o-1]],u=l.left===s?l.right:l.left;++c<o;)a=u,u=(l=t[i[c]]).left===s?l.right:l.left,a&&u&&n<a.index&&n<u.index&&h(s,a,u)<0&&e.push([s.data,a.data,u.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],l=t-i.site[1],u=c*c+l*l;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],l=t-s[1],d=c*c+l*l;d<u&&(u=d,a=s.index)}})}while(null!==a);return o._found=n,null==r||u<=r*r?i.site:null}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addBeach:()=>f,removeBeach:()=>p});var n=r(2064),i=r(2065),o=r(2067),a=r(2066),s=r(2062),c=[];function l(){(0,n.RedBlackNode)(this),this.edge=this.site=this.circle=null}function u(e){var t=c.pop()||new l;return t.site=e,t}function d(e){(0,o.detachCircle)(e),s.beaches.remove(e),c.push(e),(0,n.RedBlackNode)(e)}function p(e){var t=e.circle,r=t.x,n=t.cy,i=[r,n],c=e.P,l=e.N,u=[e];d(e);for(var p=c;p.circle&&Math.abs(r-p.circle.x)<s.epsilon&&Math.abs(n-p.circle.cy)<s.epsilon;)c=p.P,u.unshift(p),d(p),p=c;u.unshift(p),(0,o.detachCircle)(p);for(var f=l;f.circle&&Math.abs(r-f.circle.x)<s.epsilon&&Math.abs(n-f.circle.cy)<s.epsilon;)l=f.N,u.push(f),d(f),f=l;u.push(f),(0,o.detachCircle)(f);var h,m=u.length;for(h=1;h<m;++h)f=u[h],p=u[h-1],(0,a.setEdgeEnd)(f.edge,p.site,f.site,i);p=u[0],(f=u[m-1]).edge=(0,a.createEdge)(p.site,f.site,null,i),(0,o.attachCircle)(p),(0,o.attachCircle)(f)}function f(e){for(var t,r,n,c,l=e[0],d=e[1],p=s.beaches._;p;)if((n=h(p,d)-l)>s.epsilon)p=p.L;else{if(!((c=l-m(p,d))>s.epsilon)){n>-s.epsilon?(t=p.P,r=p):c>-s.epsilon?(t=p,r=p.N):t=r=p;break}if(!p.R){t=p;break}p=p.R}(0,i.createCell)(e);var f=u(e);if(s.beaches.insert(t,f),t||r){if(t===r)return(0,o.detachCircle)(t),r=u(t.site),s.beaches.insert(f,r),f.edge=r.edge=(0,a.createEdge)(t.site,f.site),(0,o.attachCircle)(t),void(0,o.attachCircle)(r);if(r){(0,o.detachCircle)(t),(0,o.detachCircle)(r);var g=t.site,y=g[0],v=g[1],b=e[0]-y,_=e[1]-v,S=r.site,E=S[0]-y,w=S[1]-v,T=2*(b*w-_*E),x=b*b+_*_,O=E*E+w*w,A=[(w*x-_*O)/T+y,(b*O-E*x)/T+v];(0,a.setEdgeEnd)(r.edge,g,S,A),f.edge=(0,a.createEdge)(g,e,null,A),r.edge=(0,a.createEdge)(e,S,null,A),(0,o.attachCircle)(t),(0,o.attachCircle)(r)}else f.edge=(0,a.createEdge)(t.site,f.site)}}function h(e,t){var r=e.site,n=r[0],i=r[1],o=i-t;if(!o)return n;var a=e.P;if(!a)return-1/0;var s=(r=a.site)[0],c=r[1],l=c-t;if(!l)return s;var u=s-n,d=1/o-1/l,p=u/l;return d?(-p+Math.sqrt(p*p-2*d*(u*u/(-2*l)-c+l/2+i-o/2)))/d+n:(n+s)/2}function m(e,t){var r=e.N;if(r)return h(r,t);var n=e.site;return n[1]===t?n[0]:1/0}},(e,t,r)=>{"use strict";function n(){this._=null}function i(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function o(e,t){var r=t,n=t.R,i=r.U;i?i.L===r?i.L=n:i.R=n:e._=n,n.U=i,r.U=n,r.R=n.L,r.R&&(r.R.U=r),n.L=r}function a(e,t){var r=t,n=t.L,i=r.U;i?i.L===r?i.L=n:i.R=n:e._=n,n.U=i,r.U=n,r.L=n.R,r.L&&(r.L.U=r),n.R=r}function s(e){for(;e.L;)e=e.L;return e}r.r(t),r.d(t,{RedBlackNode:()=>i,default:()=>c}),n.prototype={constructor:n,insert:function(e,t){var r,n,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;r=e}else this._?(e=s(this._),t.P=null,t.N=e,e.P=e.L=t,r=e):(t.P=t.N=null,this._=t,r=null);for(t.L=t.R=null,t.U=r,t.C=!0,e=t;r&&r.C;)r===(n=r.U).L?(i=n.R)&&i.C?(r.C=i.C=!1,n.C=!0,e=n):(e===r.R&&(o(this,r),r=(e=r).U),r.C=!1,n.C=!0,a(this,n)):(i=n.L)&&i.C?(r.C=i.C=!1,n.C=!0,e=n):(e===r.L&&(a(this,r),r=(e=r).U),r.C=!1,n.C=!0,o(this,n)),r=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,r,n,i=e.U,c=e.L,l=e.R;if(r=c?l?s(l):c:l,i?i.L===e?i.L=r:i.R=r:this._=r,c&&l?(n=r.C,r.C=e.C,r.L=c,c.U=r,r!==l?(i=r.U,r.U=e.U,e=r.R,i.L=e,r.R=l,l.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:()=>u,createCell:()=>
vendor: 4,214 bytes, line 41
41o,sortCellHalfedges:()=>l});var n=r(2066),i=r(2062);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 l(){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),l=new Array(n);for(r=0;r<n;++r)c[r]=r,l[r]=a(e,i.edges[t[r]]);for(c.sort(function(e,t){return l[t]-l[e]}),r=0;r<n;++r)l[r]=t[c[r]];for(r=0;r<n;++r)t[r]=l[r]}}function u(e,t,r,o){var a,l,u,d,p,f,h,m,g,y,v,b,_=i.cells.length,S=!0;for(a=0;a<_;++a)if(l=i.cells[a]){for(u=l.site,d=(p=l.halfedges).length;d--;)i.edges[p[d]]||p.splice(d,1);for(d=0,f=p.length;d<f;)v=(y=c(l,i.edges[p[d]]))[0],b=y[1],m=(h=s(l,i.edges[p[++d%f]]))[0],g=h[1],(Math.abs(v-m)>i.epsilon||Math.abs(b-g)>i.epsilon)&&(p.splice(d,0,i.edges.push((0,n.createBorderEdge)(u,y,Math.abs(v-e)<i.epsilon&&o-b>i.epsilon?[e,Math.abs(m-e)<i.epsilon?g:o]:Math.abs(b-o)<i.epsilon&&r-v>i.epsilon?[Math.abs(g-o)<i.epsilon?m:r,o]:Math.abs(v-r)<i.epsilon&&b-t>i.epsilon?[r,Math.abs(m-r)<i.epsilon?g:t]:Math.abs(b-t)<i.epsilon&&v-e>i.epsilon?[Math.abs(g-t)<i.epsilon?m:e,t]:null))-1),++f);f&&(S=!1)}if(S){var E,w,T,x=1/0;for(a=0,S=null;a<_;++a)(l=i.cells[a])&&(T=(E=(u=l.site)[0]-e)*E+(w=u[1]-t)*w)<x&&(x=T,S=l);if(S){var O=[e,t],A=[e,o],R=[r,o],P=[r,t];S.halfedges.push(i.edges.push((0,n.createBorderEdge)(u=S.site,O,A))-1,i.edges.push((0,n.createBorderEdge)(u,A,R))-1,i.edges.push((0,n.createBorderEdge)(u,R,P))-1,i.edges.push((0,n.createBorderEdge)(u,P,O))-1)}}for(a=0;a<_;++a)(l=i.cells[a])&&(l.halfedges.length||delete i.cells[a])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{clipEdges:()=>l,createBorderEdge:()=>o,createEdge:()=>i,setEdgeEnd:()=>a});var n=r(2062);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],l=a[1],u=0,d=1,p=s[0]-c,f=s[1]-l;if(o=t-c,p||!(o>0)){if(o/=p,p<0){if(o<u)return;o<d&&(d=o)}else if(p>0){if(o>d)return;o>u&&(u=o)}if(o=n-c,p||!(o<0)){if(o/=p,p<0){if(o>d)return;o>u&&(u=o)}else if(p>0){if(o<u)return;o<d&&(d=o)}if(o=r-l,f||!(o>0)){if(o/=f,f<0){if(o<u)return;o<d&&(d=o)}else if(f>0){if(o>d)return;o>u&&(u=o)}if(o=i-l,f||!(o<0)){if(o/=f,f<0){if(o>d)return;o>u&&(u=o)}else if(f>0){if(o<u)return;o<d&&(d=o)}return!(u>0||d<1)||(u>0&&(e[0]=[c+u*p,l+u*f]),d<1&&(e[1]=[c+d*p,l+d*f]),!0)}}}}}function c(e,t,r,n,i){var o=e[1];if(o)return!0;var a,s,c=e[0],l=e.left,u=e.right,d=l[0],p=l[1],f=u[0],h=u[1],m=(d+f)/2,g=(p+h)/2;if(h===p){if(m<t||m>=n)return;if(d>f){if(c){if(c[1]>=i)return}else c=[m,r];o=[m,i]}else{if(c){if(c[1]<r)return}else c=[m,i];o=[m,r]}}else if(s=g-(a=(d-f)/(h-p))*m,a<-1||a>1)if(d>f){if(c){if(c[1]>=i)return}else c=[(r-s)/a,r];o=[(i-s)/a,i]}else{if(c){if(c[1]<r)return}else c=[(i-s)/a,i];o=[(r-s)/a,r]}else if(p<h){if(c){if(c[0]>=n)return}else c=[t,a*t+s];o=[n,a*n+s]}else{if(c){if(c[0]<t)return}else c=[n,a*n+s];o=[t,a*t+s]}return e[0]=c,e[1]=o,!0}function l(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:()=>l,firstCircle:()=>n});var n,i=r(2064),o=r(2062),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,l=r.site;if(i!==l){var u=c[0],d=c[1],p=i[0]-u,f=i[1]-d,h=l[0]-u,m=l[1]-d,g=2*(p*m-f*h);if(!(g>=-o.epsilon2)){var y=p*p+f*f,v=h*h+m*m,b=(m*y-f*v)/g,_=(p*v-h*y)/g,S=a.pop()||new s;S.arc=e,S.site=c,S.x=b+u,S.y=(S.cy=_+d)+Math.sqrt(b*b+_*_),e.circle=S;for(var E=null,w=o.circles._;w;)if(S.y<w.y||S.y===w.y&&S.x<=w.x){if(!w.L){E=w.P;break}w=w.L}else{if(!w.R){E=w;break}w=w.R}o.circles.insert(E,S),E||(n=S)}}}}
41function l(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:()=>T,default:()=>w,extractAnimatedPropValues:()=>S});var n=r(396),i=r(787),o=r.n(i),a=r(2069),s=r(2083);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function 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 d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return f(e)}(this,r)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=o().oneOfType([o().string,o().shape({stiffness:o().number,nonAnimatedProps:o().arrayOf(o().string),damping:o().number}),o().bool]),_={animatedProps:o().arrayOf(o().string).isRequired,animation:b,onStart:o().func,onEnd:o().func};function S(e){var t=e.animatedProps,r=m(e,["animatedProps"]);return t.reduce(function(e,t){return Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]),e},{})}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(c,e);var t,r,i,o=p(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),v(f(t=o.call(this,e)),"_motionEndHandler",function(){t.props.onEnd&&t.props.onEnd()}),v(f(t),"_renderChildren",function(e){var r=e.i,i=t.props.children,o=t._interpolator,a=n.default.Children.only(i),s=o?o(r):o,c=s&&s.data||null;return c&&a.props._data&&(c=c.map(function(e,t){var r=a.props._data[t];return y(y({},e),{},{parent:r.parent,children:r.children})})),n.default.cloneElement(a,y(y(y({},a.props),s),{},{data:c||a.props.data||null,_animation:Math.random()}))}),t._updateInterpolator(e),t}return t=c,r=[{key:"UNSAFE_componentWillUpdate",value:function(e){this._updateInterpolator(this.props,e),e.onStart&&e.onStart()}},{key:"_updateInterpolator",value:function(e,t){this._interpolator=(0,a.default)(S(e),t?S(t):null)}},{key:"render",value:function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.presets.noWobble;if("string"==typeof e)return s.presets[e]||s.presets.noWobble;var t=e.damping,r=e.stiffness;return y(y({},e),{},{damping:t||s.presets.noWobble.damping,stiffness:r||s.presets.noWobble.stiffness})}(this.props.animation),t={i:(0,s.spring)(1,e)},r=Math.random();return n.default.createElement(s.Motion,l({defaultStyle:{i:0},style:t,key:r},{onRest:this._motionEndHandler}),this._renderChildren)}}],r&&u(t.prototype,r),i&&u(t,i),c}(n.PureComponent);E.propTypes=_,E.displayName="Animation";const w=E;var T=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p}),r.dn(p);
vendor: 7,962 bytes, line 41
41var n=r(2070),i=r(2072),o=r(2077),a=r(2079),s=r(2080),c=r(2081),l=r(2082),u=r(2076),d=r(2078);function p(e,t){var r,p=typeof t;return null==t||"boolean"===p?(0,u.default)(t):("number"===p?s.default:"string"===p?(r=(0,n.default)(t))?(t=r,i.default):l.default:t instanceof n.default?i.default:t instanceof Date?a.default:(0,d.isNumberArray)(t)?d.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,{Color:()=>i,Rgb:()=>x,brighter:()=>a,darker:()=>o,default:()=>_,hsl:()=>M,hslConvert:()=>k,rgb:()=>T,rgbConvert:()=>w});var n=r(2071);function i(){}var o=.7,a=1/o,s="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3,8})$/,d=new RegExp(`^rgb\\(${s},${s},${s}\\)$`),p=new RegExp(`^rgb\\(${l},${l},${l}\\)$`),f=new RegExp(`^rgba\\(${s},${s},${s},${c}\\)$`),h=new RegExp(`^rgba\\(${l},${l},${l},${c}\\)$`),m=new RegExp(`^hsl\\(${c},${l},${l}\\)$`),g=new RegExp(`^hsla\\(${c},${l},${l},${c}\\)$`),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function v(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function _(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=u.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?S(t):3===r?new x(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?E(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?E(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new x(t[1],t[2],t[3],1):(t=p.exec(e))?new x(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=f.exec(e))?E(t[1],t[2],t[3],t[4]):(t=h.exec(e))?E(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?C(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?C(t[1],t[2]/100,t[3]/100,t[4]):y.hasOwnProperty(e)?S(y[e]):"transparent"===e?new x(NaN,NaN,NaN,0):null}function S(e){return new x(e>>16&255,e>>8&255,255&e,1)}function E(e,t,r,n){return n<=0&&(e=t=r=NaN),new x(e,t,r,n)}function w(e){return e instanceof i||(e=_(e)),e?new x((e=e.rgb()).r,e.g,e.b,e.opacity):new x}function T(e,t,r,n){return 1===arguments.length?w(e):new x(e,t,r,n??1)}function x(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function O(){return`#${I(this.r)}${I(this.g)}${I(this.b)}`}function A(){const e=R(this.opacity);return`${1===e?"rgb(":"rgba("}${P(this.r)}, ${P(this.g)}, ${P(this.b)}${1===e?")":`, ${e})`}`}function R(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function P(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function I(e){return((e=P(e))<16?"0":"")+e.toString(16)}function C(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new D(e,t,r,n)}function k(e){if(e instanceof D)return new D(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=_(e)),!e)return new D;if(e instanceof D)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,l=(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/=l<.5?a+o:2-a-o,s*=60):c=l>0&&l<1?0:s,new D(s,c,l,e.opacity)}function M(e,t,r,n){return 1===arguments.length?k(e):new D(e,t,r,n??1)}function D(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 L(e){return Math.max(0,Math.min(1,e||0))}function F(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}(0,n.default)(i,_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return k(this).formatHsl()},formatRgb:b,toString:b}),(0,n.default)(x,T,(0,n.extend)(i,{brighter(e){return e=null==e?a:Math.pow(a,e),new x(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?o:Math.pow(o,e),new x(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new x(P(this.r),P(this.g),P(this.b),R(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:O,formatHex:O,formatHex8:function(){return`#${I(this.r)}${I(this.g)}${I(this.b)}${I(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:A,toString:A})),(0,n.default)(D,M,(0,n.extend)(i,{brighter(e){return e=null==e?a:Math.pow(a,e),new D(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?o:Math.pow(o,e),new D(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new x(F(e>=240?e-240:e+120,i,n),F(e,i,n),F(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new D(N(this.h),L(this.s),L(this.l),R(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=R(this.opacity);return`${1===e?"hsl(":"hsla("}${N(this.h)}, ${100*L(this.s)}%, ${100*L(this.l)}%${1===e?")":`, ${e})`}`}}))},(e,t,r)=>{"use strict";function n(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function i(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}r.r(t),r.d(t,{default:()=>n,extend:()=>i}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,rgbBasis:()=>l,rgbBasisClosed:()=>u});
vendor: 4,194 bytes, line 41
41var n=r(2070),i=r(2073),o=r(2074),a=r(2075);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 l=c(i.default),u=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}),r.dn(i)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2073);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(2076);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;r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o,genericArray:()=>a}),r.dn(o);var n=r(2069),i=r(2078);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}),r.dn(n)},(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}),r.dn(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}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2069);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}),r.dn(a);var n=r(2080),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,l=-1,u=[],d=[];for(e+="",t+="";(r=i.exec(e))&&(a=o.exec(t));)(s=a.index)>c&&(s=t.slice(c,s),u[l]?u[l]+=s:u[++l]=s),(r=r[0])===(a=a[0])?u[l]?u[l]+=a:u[++l]=a:(u[++l]=null,d.push({i:l,x:(0,n.default)(r,a)})),c=o.lastIndex;return c<t.length&&(s=t.slice(c),u[l]?u[l]+=s:u[++l]=s),u.length<2?d[0]?function(e){return function(t){return e(t)+""}}(d[0].x):function(e){return function(){return e}}(t):(t=d.length,function(e){for(var r,n=0;n<t;++n)u[(r=d[n]).i]=r.x(e);return u.join("")})}},(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var i=r(2084);t.Motion=n(i);var o=r(2092);t.StaggeredMotion=n(o);var a=r(2093);t.TransitionMotion=n(a);var s=r(2095);t.spring=n(s);var c=r(2096);t.presets=n(c);var l=r(2086);t.stripStyle=n(l);var u=r(2097);t.reorderKeys=n(u)},(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];
vendor: 19,867 bytes, line 41
41for(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(2085)),s=o(r(2086)),c=o(r(2087)),l=o(r(2088)),u=o(r(2089)),d=o(r(2091)),p=o(r(396)),f=o(r(787)),h=1e3/60,m=function(e){function t(r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.wasAnimating=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyle=null,this.clearUnreadPropStyle=function(e){var t=!1,r=i.state,o=r.currentStyle,a=r.currentVelocity,s=r.lastIdealStyle,c=r.lastIdealVelocity;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var u=e[l];"number"==typeof u&&(t||(t=!0,o=n({},o),a=n({},a),s=n({},s),c=n({},c)),o[l]=u,a[l]=0,s[l]=u,c[l]=0)}t&&i.setState({currentStyle:o,currentVelocity:a,lastIdealStyle:s,lastIdealVelocity:c})},this.startAnimationIfNecessary=function(){i.animationID=u.default(function(e){var t=i.props.style;if(d.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||l.default(),n=r-i.prevTime;if(i.prevTime=r,i.accumulatedTime=i.accumulatedTime+n,i.accumulatedTime>10*h&&(i.accumulatedTime=0),0===i.accumulatedTime)return i.animationID=null,void i.startAnimationIfNecessary();var o=(i.accumulatedTime-Math.floor(i.accumulatedTime/h)*h)/h,a=Math.floor(i.accumulatedTime/h),s={},u={},p={},f={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var g=t[m];if("number"==typeof g)p[m]=g,f[m]=0,s[m]=g,u[m]=0;else{for(var y=i.state.lastIdealStyle[m],v=i.state.lastIdealVelocity[m],b=0;b<a;b++){var _=c.default(h/1e3,y,v,g.val,g.stiffness,g.damping,g.precision);y=_[0],v=_[1]}var S=c.default(h/1e3,y,v,g.val,g.stiffness,g.damping,g.precision),E=S[0],w=S[1];p[m]=y+(E-y)*o,f[m]=v+(w-v)*o,s[m]=y,u[m]=v}}i.animationID=null,i.accumulatedTime-=a*h,i.setState({currentStyle:p,currentVelocity:f,lastIdealStyle:s,lastIdealVelocity:u}),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:f.default.objectOf(f.default.number),style:f.default.objectOf(f.default.oneOfType([f.default.number,f.default.object])).isRequired,children:f.default.func.isRequired,onRest:f.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=l.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyle&&this.clearUnreadPropStyle(this.unreadPropStyle),this.unreadPropStyle=e.style,null==this.animationID&&(this.prevTime=l.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(u.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyle);return e&&p.default.Children.only(e)},t}(p.default.Component);t.default=m,e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=0);return t},e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]="number"==typeof e[r]?e[r]:e[r].val);return t},e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,n,i,o,a,s){var c=n+(-o*(t-i)+-a*n)*e,l=t+c*e;if(Math.abs(c)<s&&Math.abs(l-i)<s)return r[0]=i,r[1]=0,r;return r[0]=l,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(2090),i="undefined"==typeof window?globalThis:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],c=i["cancel"+a]||i["cancelRequest"+a],l=0;!s&&l<o.length;l++)s=i[o[l]+"Request"+a],c=i[o[l]+"Cancel"+a]||i[o[l]+"CancelRequest"+a];if(!s||!c){var u=0,d=0,p=[],f=1e3/60;s=function(e){if(0===p.length){var t=n(),r=Math.max(0,f-(t-u));u=r+t,setTimeout(function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(u)}catch(e){setTimeout(function(){throw e},0)}},Math.round(r))}return p.push({handle:++d,callback:e,cancelled:!1}),d},c=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){c.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=c}},function(e){(function(){var t,r,n,i,o,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},r=process.hrtime,i=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})(),a=1e9*process.uptime(),o=i-a):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(0!==r[n])return!1;var i="number"==typeof t[n]?t[n]:t[n].val;if(e[n]!==i)return!1}return!0},e.exports=t.default},(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function o(e){return e&&e.__esModule?e:{default:e}}var a=o(r(2085)),s=o(r(2086)),c=o(r(2087)),l=o(r(2088)),u=o(r(2089)),d=o(r(2091)),p=o(r(396)),f=o(r(787)),h=1e3/60;var m=function(e){function t(r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=i.state,r=t.currentStyles,o=t.currentVelocities,a=t.lastIdealStyles,s=t.lastIdealVelocities,c=!1,l=0;l<e.length;l++){var u=e[l],d=!1;for(var p in u)if(Object.prototype.hasOwnProperty.call(u,p)){var f=u[p];"number"==typeof f&&(d||(d=!0,c=!0,r[l]=n({},r[l]),o[l]=n({},o[l]),a[l]=n({},a[l]),s[l]=n({},s[l])),r[l][p]=f,o[l][p]=0,a[l][p]=f,s[l][p]=0)}}c&&i.setState({currentStyles:r,currentVelocities:o,lastIdealStyles:a,lastIdealVelocities:s})},this.startAnimationIfNecessary=function(){i.animationID=u.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(!d.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||l.default(),n=r-i.prevTime;if(i.prevTime=r,i.accumulatedTime=i.accumulatedTime+n,i.accumulatedTime>10*h&&(i.accumulatedTime=0),0===i.accumulatedTime)return i.animationID=null,void i.startAnimationIfNecessary();for(var o=(i.accumulatedTime-Math.floor(i.accumulatedTime/h)*h)/h,a=Math.floor(i.accumulatedTime/h),s=[],u=[],p=[],f=[],m=0;m<t.length;m++){var g=t[m],y={},v={},b={},_={};for(var S in g)if(Object.prototype.hasOwnProperty.call(g,S)){var E=g[S];if("number"==typeof E)y[S]=E,v[S]=0,b[S]=E,_[S]=0;else{for(var w=i.state.lastIdealStyles[m][S],T=i.state.lastIdealVelocities[m][S],x=0;x<a;x++){var O=c.default(h/1e3,w,T,E.val,E.stiffness,E.damping,E.precision);w=O[0],T=O[1]}var A=c.default(h/1e3,w,T,E.val,E.stiffness,E.damping,E.precision),R=A[0],P=A[1];y[S]=w+(R-w)*o,v[S]=T+(P-T)*o,b[S]=w,_[S]=T}}p[m]=y,f[m]=v,s[m]=b,u[m]=_}i.animationID=null,i.accumulatedTime-=a*h,i.setState({currentStyles:p,currentVelocities:f,lastIdealStyles:s,lastIdealVelocities:u}),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:f.default.arrayOf(f.default.objectOf(f.default.number)),styles:f.default.func.isRequired,children:f.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=l.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=l.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(u.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyles);return e&&p.default.Children.only(e)},t}(p.default.Component);t.default=m,e.exports=t.default},(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function o(e){return e&&e.__esModule?e:{default:e}}var a=o(r(2085)),s=o(r(2086)),c=o(r(2087)),l=o(r(2094)),u=o(r(2088)),d=o(r(2089)),p=o(r(2091)),f=o(r(396)),h=o(r(787)),m=1e3/60;function g(e,t,r){var n=t;return null==n?e.map(function(e,t){return{key:e.key,data:e.data,style:r[t]}}):e.map(function(e,t){for(var i=0;i<n.length;i++)if(n[i].key===e.key)return{key:n[i].key,data:n[i].data,style:r[t]};return{key:e.key,data:e.data,style:r[t]}})}function y(e,t,r,n,i,o,s,c,u){for(var d=l.default(n,i,function(e,n){var i=t(n);return null==i||p.default(o[e],i,s[e])?(r({key:n.key,data:n.data}),null):{key:n.key,data:n.data,style:i}}),f=[],h=[],m=[],g=[],y=0;y<d.length;y++){for(var v=d[y],b=null,_=0;_<n.length;_++)if(n[_].key===v.key){b=_;break}if(null==b){var S=e(v);f[y]=S,m[y]=S;var E=a.default(v.style);h[y]=E,g[y]=E}else f[y]=o[b],m[y]=c[b],h[y]=s[b],g[y]=u[b]}return[d,f,h,m,g]}var v=function(e){function t(r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.unmounting=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=y(i.props.willEnter,i.props.willLeave,i.props.didLeave,i.state.mergedPropsStyles,e,i.state.currentStyles,i.state.currentVelocities,i.state.lastIdealStyles,i.state.lastIdealVelocities),r=t[0],o=t[1],a=t[2],s=t[3],c=t[4],l=0;l<e.length;l++){var u=e[l].style,d=!1;for(var p in u)if(Object.prototype.hasOwnProperty.call(u,p)){var f=u[p];"number"==typeof f&&(d||(d=!0,o[l]=n({},o[l]),a[l]=n({},a[l]),s[l]=n({},s[l]),c[l]=n({},c[l]),r[l]={key:r[l].key,data:r[l].data,style:n({},r[l].style)}),o[l][p]=f,a[l][p]=0,s[l][p]=f,c[l][p]=0,r[l].style[p]=f)}}i.setState({currentStyles:o,currentVelocities:a,mergedPropsStyles:r,lastIdealStyles:s,lastIdealVelocities:c})},this.startAnimationIfNecessary=function(){i.unmounting||(i.animationID=d.default(function(e){if(!i.unmounting){var t=i.props.styles,r="function"==typeof t?t(g(i.state.mergedPropsStyles,i.unreadPropStyles,i.state.lastIdealStyles)):t;if(function(e,t,r,n){if(n.length!==t.length)return!1;for(var i=0;i<n.length;i++)if(n[i].key!==t[i].key)return!1;for(i=0;i<n.length;i++)if(!p.default(e[i],t[i].style,r[i]))return!1;return!0}(i.state.currentStyles,r,i.state.currentVelocities,i.state.mergedPropsStyles))return i.animationID=null,void(i.accumulatedTime=0);var n=e||u.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),l=y(i.props.willEnter,i.props.willLeave,i.props.didLeave,i.state.mergedPropsStyles,r,i.state.currentStyles,i.state.currentVelocities,i.state.lastIdealStyles,i.state.lastIdealVelocities),d=l[0],f=l[1],h=l[2],v=l[3],b=l[4],_=0;_<d.length;_++){var S=d[_].style,E={},w={},T={},x={};for(var O in S)if(Object.prototype.hasOwnProperty.call(S,O)){var A=S[O];if("number"==typeof A)E[O]=A,w[O]=0,T[O]=A,x[O]=0;else{for(var R=v[_][O],P=b[_][O],I=0;I<s;I++){var C=c.default(m/1e3,R,P,A.val,A.stiffness,A.damping,A.precision);R=C[0],P=C[1]}var k=c.default(m/1e3,R,P,A.val,A.stiffness,A.damping,A.precision),M=k[0],D=k[1];E[O]=R+(M-R)*a,w[O]=P+(D-P)*a,T[O]=R,x[O]=P}}v[_]=T,b[_]=x,f[_]=E,h[_]=w}i.animationID=null,i.accumulatedTime-=s*m,i.setState({currentStyles:f,currentVelocities:h,lastIdealStyles:v,lastIdealVelocities:b,mergedPropsStyles:d}),i.unreadPropStyles=null,i.startAnimationIfNecessary()}}))},this.state=this.defaultState()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"propTypes",value:{defaultStyles:h.default.arrayOf(h.default.shape({key:h.default.string.isRequired,data:h.default.any,style:h.default.objectOf(h.default.number).isRequired})),styles:h.default.oneOfType([h.default.func,h.default.arrayOf(h.default.shape({key:h.default.string.isRequired,data:h.default.any,style:h.default.objectOf(h.default.oneOfType([h.default.number,h.default.object])).isRequired}))]).isRequired,children:h.default.func.isRequired,willEnter:h.default.func,willLeave:h.default.func,didLeave:h.default.func},enumerable:!0},{key:"defaultProps",value:{willEnter:function(e){return s.default(e.style)},willLeave:function(){return null},didLeave:function(){}},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,r=e.styles,n=e.willEnter,i=e.willLeave,o=e.didLeave,c="function"==typeof r?r(t):r,l=void 0;l=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 u=null==t?c.map(function(e){return s.default(e.style)}):t.map(function(e){return s.default(e.style)}),d=null==t?c.map(function(e){return a.default(e.style)}):t.map(function(e){return a.default(e.style)}),p=y(n,i,o,l,c,u,d,u,d),f=p[0];return{currentStyles:p[1],currentVelocities:p[2],lastIdealStyles:p[3],lastIdealVelocities:p[4],mergedPropsStyles:f}},t.prototype.componentDidMount=function(){this.prevTime=u.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles);var t=e.styles;this.unreadPropStyles="function"==typeof t?t(g(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles)):t,null==this.animationID&&(this.prevTime=u.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){this.unmounting=!0,null!=this.animationID&&(d.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=g(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&f.default.Children.only(t)},t}(f.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 l=0;l<t.length;l++){var u=t[l].key;if(Object.prototype.hasOwnProperty.call(n,u)){if(i<o[u]&&c>n[u])return-1;if(i>o[u]&&c<n[u])return 1}}return 1}for(l=0;l<t.length;l++){u=t[l].key;if(Object.prototype.hasOwnProperty.call(n,u)){if(a<o[u]&&s>n[u])return 1;if(a>o[u]&&s<n[u])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(2096),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,{_adjustCategoricalScale:()=>B,_getScaleDistanceAndAdjustedDomain:()=>F,_getSmallestDistanceIndex:()=>M,default:()=>ee,extractScalePropsFromProps:()=>W,getAttr0Functor:()=>G,getAttributeFunctor:()=>V,getAttributeScale:()=>U,getAttributeValue:()=>$,getDomainByAccessor:()=>N,getFontColorFromBackground:()=>J,getMissingScaleProps:()=>K,getOptionalScaleProps:()=>Z,getScaleFnFromScaleObject:()=>D,getScaleObjectFromProps:()=>j,getScalePropTypesByAttribute:()=>q,getXYPlotValues:()=>Q,literalScale:()=>Y});var n,i=r(2099),o=r(2104),a=r(2131),s=r(2102),c=r(2133),l=r(2147),u=r(2148),d=r(2149),p=r(2070),f=r(787),h=r.n(f),m=r(2156),g=r(2157);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){w(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEac
41h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function b(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||S(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||S(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){if(e){if("string"==typeof e)return E(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T="linear",x="ordinal",O="category",A="literal",R="log",P="time",I=(w(n={},T,o.default),w(n,x,i.point),w(n,O,s.default),w(n,A,Y),w(n,R,a.default),w(n,P,c.default),w(n,"time-utc",l.default),n),C=["color","fill","opacity","stroke"];function k(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}function M(e,t){var r=D(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 D(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===A)return Y(n[0]);var o=I[t]().domain(i).range(n);return t===x&&(o.padding(.5),function(e){e.invert||(e.invert=function(t){var r=_(e.range(),2),n=r[0],i=r[1],o=Math.min(n,i),a=Math.max(n,i);if(t<o+e.padding()*e.step())return e.domain()[0];if(t>a-e.padding()*e.step())return e.domain()[e.domain().length-1];var s=Math.floor((t-o-e.padding()*e.step())/e.step());return e.domain()[s]})}(o)),o}function 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!==x&&n!==O?(0,u.default)(i):(0,d.set)(i).values():[]}function L(e,t,r,n,i){return r===A?{type:A,domain:[],range:[t],distance:0,attr:e,baseValue:void 0,isValue:!0,accessor:n,accessor0:i}:void 0===t?null:{type:O,range:[t],domain:[],distance:0,attr:e,baseValue:void 0,isValue:!0,accessor:n,accessor0:i}}function F(e,t){var r=t.domain,n=t.type,i=t.accessor,o=t.accessor0,a=function(e,t,r,n){return n===P&&1===t.length?[r(e[0])].concat(b(t)):t}(e,(0,g.getUniquePropertyValues)(e,i),o,n),s=M(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===R&&r[0]<=0&&(c[0]=Math.min(r[1]/10,1));var l=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,D(v(v({},t),{},{domain:c})));return{domain0:c[0],domainN:c[c.length-1],distance:l}}function B(e){var t=D(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 j(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")],l=e["".concat(t,"Type")],u=void 0===l?T:l,d=e["".concat(t,"NoFallBack")],p=e["get".concat(k(t))],f=void 0===p?function(e){return e[t]}:p,h=e["get".concat(k(t),"0")],m=void 0===h?function(e){return e["".concat(t,"0")]}:h,y=e["".concat(t,"Domain")];return d||void 0===n?(void 0!==c&&(y=(0,g.addValueToArray)(y,c)),o&&y&&y.length?{domain:(r={domain:y,range:o,type:u,distance:s,attr:t,baseValue:c,accessor:f,accessor0:m}).domain,range:r.range,type:r.type,distance:r.distance,attr:r.attr,baseValue:r.baseValue,isValue:!1,accessor:r.accessor,accessor0:r.accessor0}:L(t,i,e["".concat(t,"Type")],f,m)):L(t,n,e["".concat(t,"Type")],f,m)}(e,t);if(!r)return null;if(!function(e,t){var r=t.attr,n=e._adjustBy,i=void 0===n?[]:n,o=e._adjustWhat;return(void 0===o?[]:o).length&&i.length&&-1!==i.indexOf(r)}(e,r))return r;var n=r.type;return n===x||n===O?B(r):function(e,t){var r=e._allData,n=e._adjustWhat,i=void 0===n?[]:n,o=t.domain.length,a=t.domain,s=a[0],c=a[o-1],l=t.distance;return r.forEach(function(e,r){if(-1!==i.indexOf(r)&&e&&e.length){var n=F(e,t),o=n.domain0,a=n.domainN,u=n.distance;s=Math.min(s,o),c=Math.max(c,a),l=Math.max(l,u)}}),t.domain=[s].concat(b(a.slice(1,-1)),[c]),t.distance=l,t}(e,r)}function U(e,t){return D(j(e,t))}function H(e,t){return t(e.data?e.data:e)}function z(e){return void 0!==e}function V(e,t){var r=j(e,t);if(r){var n=D(r);return function(e){return n(H(e,r.accessor))}}return null}function G(e,t){var r=j(e,t);if(r){var n=r.domain,i=r.baseValue,o=void 0===i?n[0]:i,a=D(r);return function(e){var t=H(e,r.accessor0);return a(z(t)?t:o)}}return null}function $(e,t){var r=j(e,t);
41return 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 q(e){var t;return w(t={},"_".concat(e,"Value"),h().any),w(t,"".concat(e,"Domain"),h().array),w(t,"get".concat(k(e)),h().func),w(t,"get".concat(k(e),"0"),h().func),w(t,"".concat(e,"Range"),h().array),w(t,"".concat(e,"Type"),h().oneOf(Object.keys(I))),w(t,"".concat(e,"Distance"),h().number),w(t,"".concat(e,"BaseValue"),h().any),t}function W(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(k(e)));return t||r||i})&&(r[n]=e[n])}),r}function K(e,t,r){var n={};return r.forEach(function(r){e["get".concat(k(r))]||(n["get".concat(k(r))]=function(e){return e[r]}),e["get".concat(k(r),"0")]||(n["get".concat(k(r),"0")]=function(e){return e["".concat(r,"0")]}),e["".concat(r,"Domain")]||(n["".concat(r,"Domain")]=N(t,e["get".concat(k(r))]||n["get".concat(k(r))],e["get".concat(k(r),"0")]||n["get".concat(k(r),"0")],e["".concat(r,"Type")]),e["".concat(r,"Padding")]&&(n["".concat(r,"Domain")]=function(e,t){if(!e)return e;if(isNaN(parseFloat(e[0]))||isNaN(parseFloat(e[1])))return e;var r=_(e,2),n=r[0],i=r[1],o=.01*t*(i-n);return[n-o,i+o]}(n["".concat(r,"Domain")],e["".concat(r,"Padding")])))}),n}function Y(e){function t(t){return void 0===t?e:t}function r(){return t}return t.domain=r,t.range=r,t.unknown=r,t.copy=r,t}function J(e){return e?(0,p.hsl)(e).l>.57?"#222":"#fff":null}function Q(e,t){var r=C.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,I[o]().domain(n).range(i))):t},{});return t.map(function(e){return C.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 X=["Padding"].map(function(e){return new RegExp("".concat(e,"$"),"i")});function Z(e){return Object.keys(e).reduce(function(t,r){return X.every(function(e){return!r.match(e)})||(t[r]=e[r]),t},{})}const ee={extractScalePropsFromProps:W,getAttributeScale:U,getAttributeFunctor:V,getAttr0Functor:G,getAttributeValue:$,getDomainByAccessor:N,getFontColorFromBackground:J,getMissingScaleProps:K,getOptionalScaleProps:Z,getScaleObjectFromProps:j,getScalePropTypesByAttribute:q,getXYPlotValues:Q,literalScale:Y}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a,point:()=>c});var n=r(2100),i=r(2101),o=r(2102);function a(){var e,t,r=(0,o.default)().unknown(void 0),s=r.domain,c=r.range,l=0,u=1,d=!1,p=0,f=0,h=.5;function m(){var r=s().length,i=u<l,o=i?u:l,a=i?l:u;e=(a-o)/Math.max(1,r-p+2*f),d&&(e=Math.floor(e)),o+=(a-o-e*(r-p))*h,t=e*(1-p),d&&(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?([l,u]=e,l=+l,u=+u,m()):[l,u]},r.rangeRound=function(e){return[l,u]=e,l=+l,u=+u,d=!0,m()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(d=!!e,m()):d},r.padding=function(e){return arguments.length?(p=Math.min(1,f=+e),m()):p},r.paddingInner=function(e){return arguments.length?(p=Math.min(1,e),m()):p},r.paddingOuter=function(e){return arguments.length?(f=+e,m()):f},r.align=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),m()):h},r.copy=function(){return a(s(),[l,u]).round(d).paddingInner(p).paddingOuter(f).align(h)},i.initRange.apply(m(),arguments)}function s(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return s(t())},e}function c(){return s(a.apply(null,arguments).paddingInner(1))}},(e,t,r)=>{"use strict";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";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:()=>a,implicit:()=>
vendor: 5,138 bytes, line 41
41o});var n=r(2103),i=r(2101);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";r.r(t),r.d(t,{default:()=>c,linearish:()=>s});var n=r(2105),i=r(2106),o=r(2101),a=r(2115);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],e??10)},e.tickFormat=function(e,r){var n=t();return(0,a.default)(n[0],n[n.length-1],e??10,r)},e.nice=function(r){null==r&&(r=10);var i,o,a=t(),s=0,c=a.length-1,l=a[s],u=a[c],d=10;for(u<l&&(o=l,l=u,u=o,o=s,s=c,c=o);d-- >0;){if((o=(0,n.tickIncrement)(l,u,r))===i)return a[s]=l,a[c]=u,t(a);if(o>0)l=Math.floor(l/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,u=Math.floor(u*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,{default:()=>s,tickIncrement:()=>c,tickStep:()=>l});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)),l=s/Math.pow(10,c),u=l>=n?10:l>=i?5:l>=o?2:1;let d,p,f;return c<0?(f=Math.pow(10,-c)/u,d=Math.round(e*f),p=Math.round(t*f),d/f<e&&++d,p/f>t&&--p,f=-f):(f=Math.pow(10,c)*u,d=Math.round(e/f),p=Math.round(t/f),d*f<e&&++d,p*f>t&&--p),p<d&&.5<=r&&r<2?a(e,t,2*r):[d,p,f]}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,l=new Array(c);if(n)if(s<0)for(let e=0;e<c;++e)l[e]=(o-e)/-s;else for(let e=0;e<c;++e)l[e]=(o-e)*s;else if(s<0)for(let e=0;e<c;++e)l[e]=(i+e)/-s;else for(let e=0;e<c;++e)l[e]=(i+e)*s;return l}function c(e,t,r){return a(e=+e,t=+t,r=+r)[2]}function l(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,{copy:()=>h,default:()=>g,identity:()=>u,transformer:()=>m});var n=r(2107),i=r(2069),o=r(2080),a=r(2112),s=r(2113),c=r(2114),l=[0,1];function u(e){return e}function d(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:(0,s.default)(isNaN(t)?NaN:.5)}function p(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=d(i,n),o=r(a,o)):(n=d(n,i),o=r(o,a)),function(e){return o(n(e))}}function f(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]=d(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(t){var r=(0,n.default)(e,t,1,i)-1;return a[r](o[r](t))}}function h(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function m(){var e,t,r,n,s,d,h=l,m=l,g=i.default,y=u;function v(){var e,t,r,i=Math.min(h.length,m.length);return y!==u&&(e=h[0],t=h[i-1],e>t&&(r=e,e=t,t=r),y=function(r){return Math.max(e,Math.min(t,r))}),n=i>2?f:p,s=d=null,b}function b(t){return null==t||isNaN(t=+t)?r:(s||(s=n(h.map(e),m,g)))(e(y(t)))}return b.invert=function(r){return y(t((d||(d=n(m,h.map(e),o.default)))(r)))},b.domain=function(e){return arguments.length?(h=Array.from(e,c.default),v()):h.slice()},b.range=function(e){return arguments.length?(m=Array.from(e),v()):m.slice()},b.rangeRound=function(e){return m=Array.from(e),g=a.default,v()},b.clamp=function(e){return arguments.length?(y=!!e||u,v()):y!==u},b.interpolate=function(e){return arguments.length?(g=e,v()):g},b.unknown=function(e){return arguments.length?(r=e,b):r},function(r,n){return e=r,t=n,v()}}function g(){return m()(u,u)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bisectCenter:()=>l,bisectLeft:()=>c,bisectRight:()=>s,default:()=>u});var n=r(2108),i=r(2109),o=r(2111);const a=(0,i.default)(n.default),s=a.right,c=a.left,l=(0,i.default)(o.default).
41center,u=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(2108),i=r(2110);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}),r.dn(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){return+e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(2105),i=r(2116),o=r(2122),a=r(2128),s=r(2129),c=r(2130);function l(e,t,r,l){var u,d=(0,n.tickStep)(e,t,r);switch((l=(0,o.default)(l??",f")).type){case"s":var p=Math.max(Math.abs(e),Math.abs(t));return null!=l.precision||isNaN(u=(0,s.default)(d,p))||(l.precision=u),(0,i.formatPrefix)(l,p);case"":case"e":case"g":case"p":case"r":null!=l.precision||isNaN(u=(0,c.default)(d,Math.max(Math.abs(e),Math.abs(t))))||(l.precision=u-("e"===l.type));break;case"f":case"%":null!=l.precision||isNaN(u=(0,a.default)(d))||(l.precision=u-2*("%"===l.type))}return(0,i.format)(l)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,format:()=>i,formatPrefix:()=>o});var n,i,o,a=r(2117);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:()=>f}),r.dn(f);var n=r(2118),i=r(2120),o=r(2121),a=r(2122),s=r(2123),c=r(2124),l=r(2125),u=r(2127),d=Array.prototype.map,p=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function f(e){var t=void 0===e.grouping||void 0===e.thousands?u.default:(0,i.default)(d.call(e.grouping,Number),e.thousands+""),r=void 0===e.currency?"":e.currency[0]+"",f=void 0===e.currency?"":e.currency[1]+"",h=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?u.default:(0,o.default)(d.call(e.numerals,String)),g=void 0===e.percent?"%":e.percent+"",y=void 0===e.minus?"−":e.minus+"",v=void 0===e.nan?"NaN":e.nan+"";function b(e,n){var i=(e=(0,a.default)(e)).fill,o=e.align,u=e.sign,d=e.symbol,b=e.zero,_=e.width,S=e.comma,E=e.precision,w=e.trim,T=e.type;"n"===T?(S=!0,T="g"):c.default[T]||(void 0===E&&(E=12),w=!0,T="g"),(b||"0"===i&&"="===o)&&(b=!0,i="0",o="=");var x=(n&&void 0!==n.prefix?n.prefix:"")+("$"===d?r:"#"===d&&/[boxX]/.test(T)?"0"+T.toLowerCase():""),O=("$"===d?f:/[%p]/.test(T)?g:"")+(n&&void 0!==n.suffix?n.suffix:""),A=c.default[T],R=/[defgprs%]/.test(T);function P(e){var r,n,a,c=x,d=O;if("c"===T)d=A(e)+d,e="";else{var f=(e=+e)<0||1/e<0;
vendor: 6,972 bytes, line 41
41if(e=isNaN(e)?v:A(Math.abs(e),E),w&&(e=(0,s.default)(e)),f&&0===+e&&"+"!==u&&(f=!1),c=(f?"("===u?u:y:"-"===u||"("===u?"":u)+c,d=("s"!==T||isNaN(e)||void 0===l.prefixExponent?"":p[8+l.prefixExponent/3])+d+(f&&"("===u?")":""),R)for(r=-1,n=e.length;++r<n;)if(48>(a=e.charCodeAt(r))||a>57){d=(46===a?h+e.slice(r+1):e.slice(r))+d,e=e.slice(0,r);break}}S&&!b&&(e=t(e,1/0));var g=c.length+e.length+d.length,P=g<_?new Array(_-g+1).join(i):"";switch(S&&b&&(e=t(P+e,P.length?_-d.length:1/0),P=""),o){case"<":e=c+e+d+P;break;case"=":e=c+P+e+d;break;case"^":e=P.slice(0,g=P.length>>1)+c+e+d+P.slice(g);break;default:e=P+c+e+d}return m(e)}return E=void 0===E?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E)),P.toString=function(){return e+""},P}return{format:b,formatPrefix:function(e,t){var r=3*Math.max(-8,Math.min(8,Math.floor((0,n.default)(t)/3))),i=Math.pow(10,-r),o=b(((e=(0,a.default)(e)).type="f",e),{suffix:p[8+r/3]});return function(e){return o(i*e)}}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2119);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(!isFinite(e)||0===e)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),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}),r.dn(n)},(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}),r.dn(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}),r.dn(n)},(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";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}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(2119),i=r(2125),o=r(2126);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}),r.dn(o);var n,i=r(2119);function o(e,t){var r=(0,i.formatDecimalParts)(e,t);if(!r)return n=void 0,e.toPrecision(t);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}),r.dn(i);var n=r(2119);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}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2118);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:()=>i}),r.dn(i);var n=r(2118);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}),r.dn(i);var n=r(2118);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:()=>g,loggish:()=>m});var n=r(2105),i=r(2116),o=r(2122),a=r(2132),s=r(2106),c=r(2101);function l(e){return Math.log(e)}function u(e){return Math.exp(e)}function d(e){return-Math.log(-e)}function p(e){return-Math.exp(-e)}function f(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return(t,r)=>-e(-t,r)}function m(e){const t=e(l,u),r=t.domain;let s,c,m=10;function g(){return s=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(m),c=function(e){return 10===e?f:e===Math.E?Math.exp:t=>Math.pow(e,t)}(m),r()[0]<0?(s=h(s),c=h(c),e(d,p)):e(l,u),t}return t.base=function(e){return arguments.length?(m=+e,g()):m},t.domain=function(e){return arguments.length?(r(e),g()):r()},t.ticks=e=>{const t=r();let i=t[0],o=t[t.length-1];const a=o<i;a&&([i,o]=[o,i]);let l,u,d=s(i),p=s(o);const f=null==e?10:+e;let h=[];if(!(m%1)&&p-d<f){if(d=Math.floor(d),p=Math.ceil(p),i>0){for(;d<=p;++d)for(l=1;l<m;++l)if(u=d<0?l/c(-d):l*c(d),!(u<i)){if(u>o)break;h.push(u)}}else for(;d<=p;++d)for(l=m-1;l>=1;--l)if(u=d>0?l/c(-d):l*c(d),!(u<i)){if(u>o)break;h.push(u)}2*h.length<f&&(h=(0,n.default)(i,o,f))}else h=(0,n.default)(d,p,Math.min(p-d,f)).map(c);return a?h.reverse():h},t.tickFormat=(e,r)=>{if(null==e&&(e=10),null==r&&(r=10===m?"s":","),"function"!=typeof r&&(m%1||null!=(r=(0,o.default)(r)).precision||(r.trim=!0),r=(0,i.format)(r)),e===1/0)return r;const n=Math.max(1,m*e/t.ticks().length);return e=>{let t=e/c(Math.round(s(e)));return t*m<m-.5&&(t*=m),t<=n?r(e):""}},t.nice=()=>r((0,a.default)(r(),{floor:e=>c(Math.floor(s(e))),ceil:e=>c(Math.ceil(s(e)))})),t}function g(){const e=m((0,s.transformer)()).domain([1,10]);return e.copy=()=>(0,s.copy)(e,g()).base(e.base()),c.initRange.apply(e,arguments),e}},(e,t,r)=>{"use strict";function n(e,t){var r,n=0,i=(e=e.slice()).length-1,o=e[n],a=e[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),e[n]=t.floor(o),e[i]=t.ceil(a),e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";
vendor: 5,103 bytes, line 41
41r.r(t),r.d(t,{calendar:()=>y,default:()=>v});var n=r(2134),i=r(2137),o=r(2138),a=r(2139),s=r(2140),c=r(2141),l=r(2142),u=r(2143),d=r(2145),p=r(2106),f=r(2101),h=r(2132);function m(e){return new Date(e)}function g(e){return e instanceof Date?+e:+new Date(+e)}function y(e,t,r,n,i,o,a,s,c,l){var u=(0,p.default)(),d=u.invert,f=u.domain,v=l(".%L"),b=l(":%S"),_=l("%I:%M"),S=l("%I %p"),E=l("%a %d"),w=l("%b %d"),T=l("%B"),x=l("%Y");function O(e){return(c(e)<e?v:s(e)<e?b:a(e)<e?_:o(e)<e?S:n(e)<e?i(e)<e?E:w:r(e)<e?T:x)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,g)):f().map(m)},u.ticks=function(t){var r=f();return e(r[0],r[r.length-1],t??10)},u.tickFormat=function(e,t){return null==t?O:l(t)},u.nice=function(e){var r=f();return e&&"function"==typeof e.range||(e=t(r[0],r[r.length-1],e??10)),e?f((0,h.default)(r,e)):u},u.copy=function(){return(0,p.copy)(u,y(e,t,r,n,i,o,a,s,c,l))},u}function v(){return f.initRange.apply(y(u.timeTicks,u.timeTickInterval,l.timeYear,c.timeMonth,s.timeSunday,a.timeDay,o.timeHour,i.timeMinute,n.second,d.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{second:()=>o,seconds:()=>a});var n=r(2135),i=r(2136);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,{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,{durationDay:()=>a,durationHour:()=>o,durationMinute:()=>i,durationMonth:()=>c,durationSecond:()=>n,durationWeek:()=>s,durationYear:()=>l});const n=1e3,i=60*n,o=60*i,a=24*o,s=7*a,c=30*a,l=365*a},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeMinute:()=>o,timeMinutes:()=>a,utcMinute:()=>s,utcMinutes:()=>c});var n=r(2135),i=r(2136);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(2135),i=r(2136);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:()=>l,unixDays:()=>u,utcDay:()=>s,utcDays:()=>c});var n=r(2135),i=r(2136);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,l=(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)),u=l.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeFriday:()=>d,timeFridays:()=>v,timeMonday:()=>s,timeMondays:()=>h,timeSaturday:()=>p,timeSaturdays:()=>b,timeSunday:()=>a,timeSundays:()=>f,timeThursday:()=>u,timeThursdays:()=>y,timeTuesday:()=>c,timeTuesdays:()=>m,timeWednesday:()=>l,timeWednesdays:()=>g,utcFriday:()=>O,utcFridays:()=>M,utcMonday:()=>E,utcMondays:()=>P,utcSaturday:()=>A,utcSaturdays:()=>D,utcSunday:()=>S,utcSundays:()=>R,utcThursday:()=>x,utcThursdays:()=>k,utcTuesday:()=>w,utcTuesdays:()=>I,utcWednesday:()=>T,utcWednesdays:()=>C});var n=r(2135),i=r(2136);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),l=o(3),u=o(4),d=o(5),p=o(6),f=a.range,h=s.range,m=c.range,g=l.range,y=u.range,v=d.range,b
41=p.range;function _(e){return(0,n.timeInterval)(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/i.durationWeek)}const S=_(0),E=_(1),w=_(2),T=_(3),x=_(4),O=_(5),A=_(6),R=S.range,P=E.range,I=w.range,C=T.range,k=x.range,M=O.range,D=A.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeMonth:()=>i,timeMonths:()=>o,utcMonth:()=>a,utcMonths:()=>s});var n=r(2135);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(2135);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,{timeTickInterval:()=>v,timeTicks:()=>y,utcTickInterval:()=>g,utcTicks:()=>m});var n=r(2109),i=r(2105),o=r(2136),a=r(2144),s=r(2134),c=r(2137),l=r(2138),u=r(2139),d=r(2140),p=r(2141),f=r(2142);function h(e,t,r,c,l,u){const d=[[s.second,1,o.durationSecond],[s.second,5,5*o.durationSecond],[s.second,15,15*o.durationSecond],[s.second,30,30*o.durationSecond],[u,1,o.durationMinute],[u,5,5*o.durationMinute],[u,15,15*o.durationMinute],[u,30,30*o.durationMinute],[l,1,o.durationHour],[l,3,3*o.durationHour],[l,6,6*o.durationHour],[l,12,12*o.durationHour],[c,1,o.durationDay],[c,2,2*o.durationDay],[r,1,o.durationWeek],[t,1,o.durationMonth],[t,3,3*o.durationMonth],[e,1,o.durationYear]];function p(t,r,s){const c=Math.abs(r-t)/s,l=(0,n.default)(([,,e])=>e).right(d,c);if(l===d.length)return e.every((0,i.tickStep)(t/o.durationYear,r/o.durationYear,s));if(0===l)return a.millisecond.every(Math.max((0,i.tickStep)(t,r,s),1));const[u,p]=d[c/d[l-1][2]<d[l][2]/c?l-1:l];return u.every(p)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const i=r&&"function"==typeof r.range?r:p(e,t,r),o=i?i.range(e,+t+1):[];return n?o.reverse():o},p]}const[m,g]=h(f.utcYear,p.utcMonth,d.utcSunday,u.unixDay,l.utcHour,c.utcMinute),[y,v]=h(f.timeYear,p.timeMonth,d.timeSunday,u.timeDay,l.timeHour,c.timeMinute)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{millisecond:()=>i,milliseconds:()=>o});var n=r(2135);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,{default:()=>l,timeFormat:()=>i,timeParse:()=>o,utcFormat:()=>a,utcParse:()=>s});var n,i,o,a,s,c=r(2146);function l(e){return n=(0,c.default)(e),i=n.format,o=n.parse,a=n.utcFormat,s=n.utcParse,n}l({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:()=>l});var n=r(2139),i=r(2140),o=r(2142);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 l(e){var t=e.dateTime,r=e.date,o=e.time,l=e.periods,d=e.days,p=e.shortDays,f=e.months,h=e.shortMonths,m=g(l),Y=y(l),me=g(d),Ae=y(d),Re=g(p),Pe=y(p),Ie=g(f),Ce=y(f),ke=g(h),Me=y(h
vendor: 8,203 bytes, line 41
41),De={a:function(e){return p[e.getDay()]},A:function(e){return d[e.getDay()]},b:function(e){return h[e.getMonth()]},B:function(e){return f[e.getMonth()]},c:null,d:B,e:B,f:V,g:ee,G:re,H:j,I:U,j:H,L:z,m:G,M:$,p:function(e){return l[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:xe,s:Oe,S:q,u:W,U:K,V:J,w:Q,W:X,x:null,X:null,y:Z,Y:te,Z:ne,"%":Te},Ne={a:function(e){return p[e.getUTCDay()]},A:function(e){return d[e.getUTCDay()]},b:function(e){return h[e.getUTCMonth()]},B:function(e){return f[e.getUTCMonth()]},c:null,d:ie,e:ie,f:le,g:_e,G:Ee,H:oe,I:ae,j:se,L:ce,m:ue,M:de,p:function(e){return l[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:xe,s:Oe,S:pe,u:fe,U:he,V:ge,w:ye,W:ve,x:null,X:null,y:be,Y:Se,Z:we,"%":Te},Le={a:function(e,t,r){var n=Re.exec(t.slice(r));return n?(e.w=Pe.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=Ae.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=Me.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=Ce.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return je(e,t,r,n)},d:R,e:R,f:D,g:T,G:w,H:I,I,j:P,L:M,m:A,M:C,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:O,Q:L,s:F,S:k,u:b,U:_,V:S,w:v,W:E,x:function(e,t,n){return je(e,r,t,n)},X:function(e,t,r){return je(e,o,t,r)},y:T,Y:w,Z:x,"%":N};function Fe(e,t){return function(r){var n,i,o,a=[],s=-1,c=0,l=e.length;for(r instanceof Date||(r=new Date(+r));++s<l;)37===e.charCodeAt(s)&&(a.push(e.slice(c,s)),null!=(i=u[n=e.charAt(++s)])?n=e.charAt(++s):i="e"===n?" ":"0",(o=t[n])&&(n=o(r,i)),a.push(n),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function Be(e,t){return function(r){var o,l,u=c(1900,void 0,1);if(je(u,e,r+="",0)!=r.length)return null;if("Q"in u)return new Date(u.Q);if("s"in u)return new Date(1e3*u.s+("L"in u?u.L:0));if(t&&!("Z"in u)&&(u.Z=0),"p"in u&&(u.H=u.H%12+12*u.p),void 0===u.m&&(u.m="q"in u?u.q:0),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(l=(o=s(c(u.y,0,1))).getUTCDay(),o=l>4||0===l?i.utcMonday.ceil(o):(0,i.utcMonday)(o),o=n.utcDay.offset(o,7*(u.V-1)),u.y=o.getUTCFullYear(),u.m=o.getUTCMonth(),u.d=o.getUTCDate()+(u.w+6)%7):(l=(o=a(c(u.y,0,1))).getDay(),o=l>4||0===l?i.timeMonday.ceil(o):(0,i.timeMonday)(o),o=n.timeDay.offset(o,7*(u.V-1)),u.y=o.getFullYear(),u.m=o.getMonth(),u.d=o.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),l="Z"in u?s(c(u.y,0,1)).getUTCDay():a(c(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(l+5)%7:u.w+7*u.U-(l+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,s(u)):a(u)}}function je(e,t,r,n){for(var i,o,a=0,s=t.length,c=r.length;a<s;){if(n>=c)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=Le[i in u?t.charAt(a++):i])||(n=o(e,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return De.x=Fe(r,De),De.X=Fe(o,De),De.c=Fe(t,De),Ne.x=Fe(r,Ne),Ne.X=Fe(o,Ne),Ne.c=Fe(t,Ne),{format:function(e){var t=Fe(e+="",De);return t.toString=function(){return e},t},parse:function(e){var t=Be(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Fe(e+="",Ne);return t.toString=function(){return e},t},utcParse:function(e){var t=Be(e+="",!0);return t.toString=function(){return e},t}}}var u={"-":"",_:" ",0:"0"},d=/^\s*\d+/,p=/^%/,f=/[\\^$*+?|[\]().{}]/g;function h(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(t)+i:i)}function m(e){return e.replace(f,"\\$&")}function g(e){return new RegExp("^(?:"+e.map(m).join("|")+")","i")}function y(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function v(e,t,r){var n=d.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function b(e,t,r){var n=d.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function _(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function S(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function E(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function w(e,t,r){var n=d.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function T(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function x(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function O(e,t,r){var n=d.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function A(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function R(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function P(e,t,r){var n=d.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function I(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function C(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function k(e,t,r){var n=d.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function M(e,t,r){var n=d.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function D(e,t,r){var n=d.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=p.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function L(e,t,r){var n=d.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function F(e,t,r){var n=d.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function B(e,t){return h(e.getDate(),t,2)}function j(e,t){return h(e.getHours(),t,2)}function U(e,t){return h(e.getHours()%12||12,t,2)}function H(e,t){return h(1+n.timeDay.count((0,o.timeYear)(e),e),t,3)}function z(e,t){return h(e.getMilliseconds(),t,3)}function V(e,t){return z(e,t)+"000"}function G(e,t){return h(e.getMonth()+1,t,2)}function $(e,t){return h(e.getMinutes(),t,2)}function q(e,t){return h(e.getSeconds(),t,2)}function W(e){var t=e.getDay();return 0===t?7:t}function K(e,t){return h(i.timeSunday.count((0,o.timeYear)(e)-1,e),t,2)}function Y(e){var t=e.getDay();return t>=4||0===t?(0,i.timeThursday)(e):i.timeThursday.ceil(e)}function J(e,t){return e=Y(e),h(i.timeThursday.count((0,o.timeYear)(e),e)+(4===(0,o.timeYear)(e).getDay()),t,2)}function Q(e){return e.getDay()}function X(e,t){return h(i.timeMonday.count((0,o.timeYear)(e)-1,e),t,2)}function Z(e,t){return h(e.getFullYear()%100,t,2)}function ee(e,t){return h((e=Y(e)).getFullYear()%100,t,2)}function te(e,t){return h(e.getFullYear()%1e4,t,4)}function re(e,t){var r=e.getDay();return h((e=r>=4||0===r?(0,i.timeThursday)(e):i.timeThursday.ceil(e)).getFullYear()%1e4,t,4)}function ne(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+h(t/60|0,"0",2)+h(t%60,"0",2)}function ie(e,t){return h(e.getUTCDate(),t,2)}function oe(e,t){return h(e.getUTCHours(),t,2)}function ae(e,t){return h(e.getUTCHours()%12||12,t,2)}function se(e,t){return h(1+n.utcDay.count((0,o.utcYear)(e),e),t,3)}function ce(e,t){return h(e.getUTCMilliseconds(),t,3)}function le(e,t){return ce(e,t)+"000"}function ue(e,t){return h(e.getUTCMonth()+1,t,2)}function de(e,t){return h(e.getUTCMinutes(),t,2)}function pe(e,t){return h(e.getUTCSeconds(),t,2)}function fe(e){var t=e.getUTCDay();return 0===t?7:t}function he(e,t){return h(i.utcSunday.count((0,o.utcYear)(e)-1,e),t,2)}function me(e){var t=e.getUTCDay();return t>=4||0===t?(0,i.utcThursday)(e):i.utcThursday.ceil(e)}function ge(e,t){return e=me(e),h(i.utcThursday.count((0,o.utcYear)(e),e)+(4===(0,o.utcYear)(e).getUTCDay()),t,2)}function ye(e){return e.getUTCDay()}function ve(e,t){return h(i.utcMonday.count((0,o.utcYear)(e)-1,e),t,2)}function be(e,t){return h(e.getUTCFullYear()%100,t,2)}function _e(e,t){return h((e=me(e)).getUTCFullYear()%100,t,2)}function Se(e,t){return h(e.getUTCFullYear()%1e4,t,4)}function Ee(e,t){var r=e.getUTCDay();return h((e=r>=4||0===r?(0,i.utcThursday)(e):i.utcThursday.ceil(e)).getUTCFullYear()%1e4,t,4)}function we(){return"+0000"}function Te(){return"%"}function xe(e){return+e}function Oe(e){return Math.floor(+e/1e3)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(2134),i=r(2137),o=r(2138),a=r(2139),s=r(2140),c=r(2141),l=r(2
41142),u=r(2143),d=r(2145),p=r(2133),f=r(2101);function h(){return f.initRange.apply((0,p.calendar)(u.utcTicks,u.utcTickInterval,l.utcYear,c.utcMonth,s.utcSunday,a.utcDay,o.utcHour,i.utcMinute,n.second,d.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,{entries:()=>c.default,keys:()=>a.default,map:()=>o.default,nest:()=>n.default,set:()=>i.default,values:()=>s.default});var n=r(2150),i=r(2152),o=r(2151),a=r(2153),s=r(2154),c=r(2155)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2151);function i(){var e,t,r,i=[],l=[];function u(r,o,a,s){if(o>=i.length)return null!=e&&r.sort(e),null!=t?t(r):r;for(var c,l,d,p=-1,f=r.length,h=i[o++],m=(0,n.default)(),g=a();++p<f;)(d=m.get(c=h(l=r[p])+""))?d.push(l):m.set(c,[l]);return m.each(function(e,t){s(g,t,u(e,o,a,s))}),g}function d(e,r){if(++r>i.length)return e;var n,o=l[r-1];return null!=t&&r>=i.length?n=e.entries():(n=[],e.each(function(e,t){n.push({key:t,values:d(e,r)})})),null!=o?n.sort(function(e,t){return o(e.key,t.key)}):n}return r={object:function(e){return u(e,0,o,a)},map:function(e){return u(e,0,s,c)},entries:function(e){return d(u(e,0,s,c),0)},key:function(e){return i.push(e),r},sortKeys:function(e){return l[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(2151);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}),r.dn(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}),r.dn(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}),r.dn(n)},(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.r(t),r.d(t,{getDOMNode:()=>p,isReactDOMSupported:()=>d,warnOnce:()=>g,warning:()=>m});var i,o,a=r(396).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}}
41(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],l=s[1],u=Number(l)>13||Number(c)>13,d=function(){return u},p=function(e){return d()?e:e&&e.getDOMNode()},f={},h={test:!0,production:!0};function m(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];globalThis.process&&h.production||t&&f[e]||(console.warn(e),f[e]=!0)}function g(e){m(e,!0)}},(e,t,r)=>{"use strict";function n(e,t){var r=new Set(e.map(t));return Array.from(r)}function i(e,t){var r=[].concat(e);return r[0]>t&&(r[0]=t),r[r.length-1]<t&&(r[r.length-1]=t),r}function o(e){return"[object Date]"===Object.prototype.toString.call(e)?e.toDateString():e}r.r(t),r.d(t,{addValueToArray:()=>i,getUniquePropertyValues:()=>n,transformValueToString:()=>o})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O});var n=r(396),i=r(787),o=r.n(i),a=r(2068),s=r(2159),c=r(2164),l=r(2057),u=r(2098),d=r(2166);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 m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach(function(t){_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var S="rv-xy-plot__series rv-xy-plot__series--arc",E=["radius","angle"],w=b(b({},l.default.defaultProps),{},{center:{x:0,y:0},arcClassName:"",className:"",style:{},padAngle:0});function T(e){var t=e.radius,r=e.angle,n=e.angle0,i=-1*r+Math.PI/2,o=-1*n+Math.PI/2;return b(b({},e),{},{x:t*Math.cos(i),y:t*Math.sin(i),angle:i,angle0:o})}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(l,e);var t,r,i,o=g(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var r=(t=o.call(this,e))._getAllScaleProps(e);return t.state={scaleProps:r},t}return t=l,(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,u.extractScaleProps
41FromProps)(e,E),n=(0,u.getMissingScaleProps)(b(b({},t),r),e.data,E);return b(b(b({},t),r),n)}},{key:"_getDefaultScaleProps",value:function(e){var t=e.innerWidth,r=e.innerHeight,n=Math.min(t/2,r/2);return{radiusRange:[0,n],_radiusValue:n,angleType:"literal"}}},{key:"render",value:function(){var e=this,t=this.props,r=t.arcClassName,i=t.animation,o=t.className,p=t.center,h=t.data,m=t.disableSeries,g=t.hideSeries,y=t.marginLeft,v=t.marginTop,_=t.padAngle,E=t.style;if(!h)return null;if(i){var w=h.map(function(e){return b({},e)});return n.default.createElement("g",{className:"rv-xy-plot__series--arc__animation-wrapper"},n.default.createElement(a.default,f({},this.props,{animatedProps:c.ANIMATED_SERIES_PROPS,data:w}),n.default.createElement(l,f({},this.props,{animation:null,disableSeries:!0,data:w}))),n.default.createElement(l,f({},this.props,{animation:null,hideSeries:!0,style:{stroke:"red"}})))}var x=this.state.scaleProps,O=x.radiusDomain,A=(0,u.getAttributeFunctor)(x,"radius"),R=(0,u.getAttr0Functor)(x,"radius"),P=(0,u.getAttributeFunctor)(x,"angle"),I=(0,u.getAttr0Functor)(x,"angle"),C=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),k=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),M=this._getAttributeFunctor("opacity"),D=this._getAttributeFunctor("x"),N=this._getAttributeFunctor("y");return n.default.createElement("g",{className:(0,d.getCombinedClassName)(S,o),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,opacity:g?0:1,pointerEvents:m?"none":"all",transform:"translate(".concat(y+D(p),",").concat(v+N(p),")")},h.map(function(t,i){var o={innerRadius:O[1]===O[0]?0:R(t),outerRadius:A(t),startAngle:I(t)||0,endAngle:P(t)},a=(0,s.default)().padAngle(_),c=t.style||{},l=t.className||"";return n.default.createElement("path",{key:"path-".concat(i),style:b(b({opacity:M&&M(t),stroke:k&&k(t),fill:C&&C(t)},E),c),onClick:function(r){return e._valueClickHandler(T(t),r)},onContextMenu:function(r){return e._valueRightClickHandler(T(t),r)},onMouseOver:function(r){return e._valueMouseOverHandler(T(t),r)},onMouseOut:function(r){return e._valueMouseOutHandler(T(t),r)},className:"".concat(S,"-path ").concat(r," ").concat(l),d:a(o)})}))}}])&&h(t.prototype,r),i&&h(t,i),l}(l.default);x.propTypes=b(b(b(b({},l.default.propTypes),(0,u.getScalePropTypesByAttribute)("radius")),(0,u.getScalePropTypesByAttribute)("angle")),{},{center:o().shape({x:o().number,y:o().number}),arcClassName:o().string,padAngle:o().oneOfType([o().func,o().number])}),x.defaultProps=w,x.displayName="ArcSeries";const O=x},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p}),r.dn(p);var n=r(2160),i=r(2161),o=r(2162);function a(e){return e.innerRadius}function s(e){return e.outerRadius}function c(e){return e.startAngle}function l(e){return e.endAngle}function u(e){return e&&e.padAngle}function d(e,t,r,n,o,a,s){var c=e-r,l=t-n,u=(s?a:-a)/(0,i.sqrt)(c*c+l*l),d=u*l,p=-u*c,f=e+d,h=t+p,m=r+d,g=n+p,y=(f+m)/2,v=(h+g)/2,b=m-f,_=g-h,S=b*b+_*_,E=o-a,w=f*g-m*h,T=(_<0?-1:1)*(0,i.sqrt)((0,i.max)(0,E*E*S-w*w)),x=(w*_-b*T)/S,O=(-w*b-_*T)/S,A=(w*_+b*T)/S,R=(-w*b+_*T)/S,P=x-y,I=O-v,C=A-y,k=R-v;return P*P+I*I>C*C+k*k&&(x=A,O=R),{cx:x,cy:O,x01:-d,y01:-p,x11:x*(o/E-1),y11:O*(o/E-1)}}function p(){var e=a,t=s,r=(0,n.default)(0),p=null,f=c,h=l,m=u,g=null,y=(0,o.withPath)(v);function v(){var n,o,a=+e.apply(this,arguments),s=+t.apply(this,arguments),c=f.apply(this,arguments)-i.halfPi,l=h.apply(this,arguments)-i.halfPi,u=(0,i.abs)(l-c),v=l>c;if(g||(g=n=y()),s<a&&(o=s,s=a,a=o),s>i.epsilon)if(u>i.tau-i.epsilon)g.moveTo(s*(0,i.cos)(c),s*(0,i.sin)(c)),g.arc(0,0,s,c,l,!v),a>i.epsilon&&(g.moveTo(a*(0,i.cos)(l),a*(0,i.sin)(l)),g.arc(0,0,a,l,c,v));else{var b,_,S=c,E=l,w=c,T=l,x=u,O=u,A=m.apply(this,arguments)/2,R=A>i.epsilon&&(p?+p.apply(this,arguments):(0,i.sqrt)(a*a+s*s)),P=(0,i.min)((0,i.abs)(s-a)/2,+r.apply(this,arguments)),I=P,C=P;if(R>i.epsilon){var k=(0,i.asin)(R/a*(0,i.sin)(A)),M=(0,i.asin)(R/s*(0,i.sin)(A));(x-=2*k)>i.epsilon?(w+=k*=v?1:-1,T-=k):(x=0,w=T=(c+l)/2),(O-=2*M)>i.epsilon?(S+=M*=v?1:-1,E-=M):(O=0,S=E=(c+l)/2)}var D=s*(0,i.cos)(S),N=s*(0,i.sin)(S),L=a*(0,i.cos)(T),F=a*(0,i.sin)(T);if(P>i.epsilon){var B,j=s*(0,i.cos)(E),U=s*(0,i.sin)(E),H=a*(0,i.cos)(w),z=a*(0,i.sin)(w);if(u<i.pi)if(B=function(e,t,r,n,o,a,s,c){var l=r-e,u=n-t,d=s-o,p=c-a,f=p*l-d*u;if(!(f*f<i.epsilon))return[e+(f=(d*(t-a)-p*(e-o))/f)*l,t+f*u]}(D,N,H,z,j,U,L,F)){var V=D-B[0],G=N-B[1],$=j-B[0],q=U-B[1],W=1/(0,i.sin)((0,i.acos)((V*$+G*q)/((0,i.sqrt)(V*V+G*G)*(0,i.sqrt)($*$+q*q)))/2),K=(0,i.sqrt)(B[0]*B[0]+B[1]*B[1]);I=(0,i.min)(P,(a-K)/(W-1)),C=(0,i.min)(P,(s-K)/(W+1))}else I=C=0}O>i.epsilon?C>i.epsilon?(b=d(H,z,D,N,s,C,v),_=d(j,U,L,F,s,C,v),g.moveTo(b.cx+b.x01,b.cy+b.y01),C<P?g.arc(b.cx,b.cy,C,(0,i.atan2)(b.y01,b.x01),(0,i.atan2)(_.y01,_.x01),!v):(g.arc(b.cx,b.cy,C,(0,i.atan2)(b.y01,b.x01),(0,i.atan2)(b.y11,b.x11),!v),g.arc(0,0,s,(0,i.atan2)(b.cy+b.y11,b.cx+b.x11),(0,i.atan2)(_.cy+_.y11,_.cx+_.x11),!v),g.arc(_.cx,_.cy,C,(0,i.atan2)(_.y11,_.x11),(0,i.atan2)(_.y01,_.x01),!v))):(g.moveTo(D,N),g.arc(0,0,s,S,E,!v)):g.moveTo(D,N),a>i.epsilon&&x>i.epsilon?I>
vendor: 4,955 bytes, line 41
41i.epsilon?(b=d(L,F,j,U,a,-I,v),_=d(D,N,H,z,a,-I,v),g.lineTo(b.cx+b.x01,b.cy+b.y01),I<P?g.arc(b.cx,b.cy,I,(0,i.atan2)(b.y01,b.x01),(0,i.atan2)(_.y01,_.x01),!v):(g.arc(b.cx,b.cy,I,(0,i.atan2)(b.y01,b.x01),(0,i.atan2)(b.y11,b.x11),!v),g.arc(0,0,a,(0,i.atan2)(b.cy+b.y11,b.cx+b.x11),(0,i.atan2)(_.cy+_.y11,_.cx+_.x11),v),g.arc(_.cx,_.cy,I,(0,i.atan2)(_.y11,_.x11),(0,i.atan2)(_.y01,_.x01),!v))):g.arc(0,0,a,T,w,v):g.lineTo(L,F)}else g.moveTo(0,0);if(g.closePath(),n)return g=null,n+""||null}return v.centroid=function(){var r=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,n=(+f.apply(this,arguments)+ +h.apply(this,arguments))/2-i.pi/2;return[(0,i.cos)(n)*r,(0,i.sin)(n)*r]},v.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.default)(+t),v):e},v.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),v):t},v.cornerRadius=function(e){return arguments.length?(r="function"==typeof e?e:(0,n.default)(+e),v):r},v.padRadius=function(e){return arguments.length?(p=null==e?null:"function"==typeof e?e:(0,n.default)(+e),v):p},v.startAngle=function(e){return arguments.length?(f="function"==typeof e?e:(0,n.default)(+e),v):f},v.endAngle=function(e){return arguments.length?(h="function"==typeof e?e:(0,n.default)(+e),v):h},v.padAngle=function(e){return arguments.length?(m="function"==typeof e?e:(0,n.default)(+e),v):m},v.context=function(e){return arguments.length?(g=e??null,v):g},v}},(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{abs:()=>n,acos:()=>h,asin:()=>m,atan2:()=>i,cos:()=>o,epsilon:()=>u,halfPi:()=>p,max:()=>a,min:()=>s,pi:()=>d,sin:()=>c,sqrt:()=>l,tau:()=>f});const n=Math.abs,i=Math.atan2,o=Math.cos,a=Math.max,s=Math.min,c=Math.sin,l=Math.sqrt,u=1e-12,d=Math.PI,p=d/2,f=2*d;function h(e){return e>1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?p:e<=-1?-p:Math.asin(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{withPath:()=>i});var n=r(2163);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:()=>l,pathRound:()=>u});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,l=r-e,u=i-t,d=s-e,p=c-t,f=d*d+p*p;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>o)if(Math.abs(p*l-u*d)>o&&a){let h=r-s,m=i-c,g=l*l+u*u,y=h*h+m*m,v=Math.sqrt(g),b=Math.sqrt(f),_=a*Math.tan((n-Math.acos((g+f-y)/(2*v*b)))/2),S=_/b,E=_/v;Math.abs(S-1)>o&&this._append`L${e+S*d},${t+S*p}`,this._append`A${a},${a},0,0,${+(p*h>d*m)},${this._x1=e+E*l},${this._y1=t+E*u}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,r,s,c,l){if(e=+e,t=+t,l=!!l,(r=+r)<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(s),d=r*Math.sin(s),p=e+u,f=t+d,h=1^l,m=l?s-c:c-s;null===this._x1?this._append`M${p},${f}`:(Math.abs(this._x1-p)>o||Math.abs(this._y1-f)>o)&&this._append`L${p},${f}`,r&&(m<0&&(m=m%i+i),m>a?this._append`A${r},${r},0,1,${h},${e-u},${t-d}A${r},${r},0,1,${h},${this._x1=p},${this._y1=f}`:m>o&&this._append`A${r},${r},0,${+(m>=n)},${h},${this._x1=e+r*Math.cos(c)},${this._y1=t+r*Math.sin(c)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function l(){return new c}function u(e=3){return new c(+e)}l.prototype=c.prototype},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ANIMATED_SERIES_PROPS:()=>h,getRadialDomain:()=>f,getSeriesChildren:()=>u,getSeriesPropsFromChildren:()=>p,getStackParams:()=>m,getStackedData:()=>d,isSeriesChild:()=>l});var n=r(396),i=r(2057),o=r(2165);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]:{};
41t%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 l(e){return e.type.prototype instanceof i.default}function u(e){return n.default.Children.toArray(e).filter(function(e){return e&&l(e)})}function d(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,l=a.data,u=a.cluster,d=void 0===u?"default":u,p=a.stack,f=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}(l);if(!t||!f||!f.length||r&&!p)return e.push(f),e;var h="".concat(t,"0"),m="y"===t?"x":"y";return e.push(f.map(function(e){var r,i;n[d]||(n[d]={}),n[d][o]||(n[d][o]={});var a,l=n[d][o][e[m]];if(!l)return n[d][o][e[m]]=(c(a={},h,e[h]),c(a,t,e[t]),a),s({},e);var u=s(s({},e),{},(c(r={},h,l[t]),c(r,t,l[t]+e[t]-(e[h]||0)),r));return n[d][o][e[m]]=(c(i={},h,u[h]),c(i,t,u[t]),i),u})),e},[])}function p(e){var t=[],r=function(e){var t={};return e.filter(l).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(l(e)){var c=r[e.type.displayName],u=o.DISCRETE_COLOR_RANGE[n%o.DISCRETE_COLOR_RANGE.length];a=s(s({},c),{},{seriesIndex:n,_colorValue:u,_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 f(e){return e.reduce(function(e,t){return Math.max(t.radius,e)},0)}var h=["xRange","xDomain","x","yRange","yDomain","y","colorRange","colorDomain","color","opacityRange","opacityDomain","opacity","strokeRange","strokeDomain","stroke","fillRange","fillDomain","fill","width","height","marginLeft","marginTop","marginRight","marginBottom","data","angleDomain","angleRange","angle","radiusDomain","radiusRange","radius","innerRadiusDomain","innerRadiusRange","innerRadius"];function m(e){var t=e._stackBy,r=e.valuePosAttr,n=e.cluster,i=e.sameTypeTotal,o=void 0===i?1:i,a=e.sameTypeIndex,s=void 0===a?0:a;return t!==r||n||(o=1,s=0),{sameTypeTotal:o,sameTypeIndex:s}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONTINUOUS_COLOR_RANGE:()=>o,DEFAULT_COLOR:()=>d,DEFAULT_OPACITY:()=>l,DEFAULT_SIZE:()=>u,DEFAULT_TICK_SIZE:()=>p,DISCRETE_COLOR_RANGE:()=>n,EXTENDED_DISCRETE_COLOR_RANGE:()=>i,OPACITY_RANGE:()=>s,OPACITY_TYPE:()=>c,SIZE_RANGE:()=>a});var n=["#12939A","#79C7E3","#1A3177","#FF9833","#EF5D28"],i=["#19CDD7","#DDB27C","#88572C","#FF991F","#F15C17","#223F9A","#DA70BF","#125C77","#4DC19C","#776E57","#12939A","#17B8BE","#F6D18A","#B7885E","#FFCB99","#F89570","#829AE3","#E79FD5","#1E96BE","#89DAC1","#B3AD9E"],o=["#EF5D28","#FF9833"],a=[1,10],s=[.1,1],c="literal",l=1,u=5,d=n[0],p=7},(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(function(e){return e&&"string"==typeof e}).join(" ")}r.r(t),r.d(t,{getCombinedClassName:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>T});var n=r(396),i=r(787),o=r.n(i),a=r(2168),s=r(2169),c=r(2068),l=r(2165),u=r(2164),d=r(2156),p=r(2166),f=r(2057);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var i=E(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(f,e);var t,r,i,o=S(f);function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),o.apply(this,arguments)}return t=f,(r=[{key:"_renderArea",value:function(e,t,r,n,i,o){var c=s.default();return null!==i&&("string"==typeof i&&a[i]?c=c.curve(a[i]):"function"==typeof i&&(c=c.curve(i))),(c=(c=c.defined(o)).x(t).y0(r).y1(n))(e)}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,i=e.curve,o=e.data,a=e.marginLeft,s=e.marginTop,h=e.style;if(this.props.nullAccessor&&(0,d.warning)("nullAccessor has been renamed to getNull",!0),!o)return null;if(t)return n.default.createElement(c.default,v({},this.props,{animatedProps:u.ANIMATED_SERIES_PROPS}),n.default.createElement(f,v({},this.props,{animation:null})));var m=this._getAttributeFunctor("x"),y=this._getAttributeFunctor("y"),b=this._getAttr0Functor("y"),_=this._getAttributeValue("stroke")||this._getAttributeValue("color"),S=this._getAttributeValue("fill")||this._getAttributeValue("color"),E=this._getAttributeValue("opacity"),w=Number.isFinite(E)?E:l.DEFAULT_OPACITY,T=this.props.nullAccessor||this.props.getNull,x=this._renderArea(o,m,b,y,i,T);return n.default.createElement("path",{d:x,className:(0,p.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--line",r),transform:"translate(".concat(a,",").concat(s,")"),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,style:g({opacity:w,stroke:_,fill:S},h)})}}])&&b(t.prototype,r),i&&b(t,i),f}(f.default);w.displayName="AreaSeries",w.propTypes=g(g({},f.default.propTypes),{},{getNull:o().func}),w.defaultProps=g(g({},f.default.defaultProps),{},{getNull:function(){return!0}});const T=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{arc:()=>n.default,area:()=>i.default,areaRadial:()=>s.default,curveBasis:()=>A.default,curveBasisClosed:()=>x.default,curveBasisOpen:()=>O.default,curveBumpX:()=>R.bumpX,curveBumpY:()=>R.bumpY,curveBundle:()=>P.default,curveCardinal:()=>k.default,curveCardinalClosed:()=>I.default,curveCardinalOpen:()=>C.default,curveCatmullRom:()=>N.default,curveCatmullRomClosed:()=>M.default,curveCatmullRomOpen:()=>D.default,curveLinear:()=>F.default,curveLinearClosed:()=>L.default,curveMonotoneX:()=>B.monotoneX,curveMonotoneY:()=>B.monotoneY,curveNatural:()=>j.default,curveStep:()=>U.default,curveStepAfter:()=>U.stepAfter,curveStepBefore:()=>U.stepBefore,line:()=>o.default,lineRadial:()=>c.default,link:()=>u.link,linkHorizontal:()=>u.linkHorizontal,linkRadial:()=>u.linkRadial,linkVertical:()=>u.linkVertical,pie:()=>a.default,pointRadial:()=>l.default,radialArea:()=>s.default,radialLine:()=>c.default,stack:()=>H.default,stackOffsetDiverging:()=>V.default,stackOffsetExpand:()=>z.default,stackOffsetNone:()=>G.default,stackOffsetSilhouette:()=>$.default,stackOffsetWiggle:()=>q.default,stackOrderAppearance:()=>W.default,stackOrderAscending:()=>K.default,stackOrderDescending:()=>Y.default,stackOrderInsideOut:()=>J.default,stackOrderNone:()=>Q.default,stackOrderReverse:()=>
41X.default,symbol:()=>d.default,symbolAsterisk:()=>p.default,symbolCircle:()=>f.default,symbolCross:()=>h.default,symbolDiamond:()=>m.default,symbolDiamond2:()=>g.default,symbolPlus:()=>y.default,symbolSquare:()=>v.default,symbolSquare2:()=>b.default,symbolStar:()=>_.default,symbolTimes:()=>T.default,symbolTriangle:()=>S.default,symbolTriangle2:()=>E.default,symbolWye:()=>w.default,symbolX:()=>T.default,symbols:()=>d.symbolsFill,symbolsFill:()=>d.symbolsFill,symbolsStroke:()=>d.symbolsStroke});var n=r(2159),i=r(2169),o=r(2172),a=r(2174),s=r(2177),c=r(2179),l=r(2180),u=r(2181),d=r(2183),p=r(2184),f=r(2185),h=r(2186),m=r(2187),g=r(2188),y=r(2189),v=r(2190),b=r(2191),_=r(2192),S=r(2193),E=r(2194),w=r(2195),T=r(2196),x=r(2197),O=r(2200),A=r(2199),R=r(2182),P=r(2201),I=r(2202),C=r(2204),k=r(2203),M=r(2205),D=r(2207),N=r(2206),L=r(2208),F=r(2171),B=r(2209),j=r(2210),U=r(2211),H=r(2212),z=r(2215),V=r(2216),G=r(2213),$=r(2217),q=r(2218),W=r(2219),K=r(2220),Y=r(2221),J=r(2222),Q=r(2214),X=r(2223)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l}),r.dn(l);var n=r(2170),i=r(2160),o=r(2171),a=r(2172),s=r(2162),c=r(2173);function l(e,t,r){var l=null,u=(0,i.default)(!0),d=null,p=o.default,f=null,h=(0,s.withPath)(m);function m(i){var o,a,s,c,m,g=(i=(0,n.default)(i)).length,y=!1,v=new Array(g),b=new Array(g);for(null==d&&(f=p(m=h())),o=0;o<=g;++o){if(!(o<g&&u(c=i[o],o,i))===y)if(y=!y)a=o,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),s=o-1;s>=a;--s)f.point(v[s],b[s]);f.lineEnd(),f.areaEnd()}y&&(v[o]=+e(c,o,i),b[o]=+t(c,o,i),f.point(l?+l(c,o,i):v[o],r?+r(c,o,i):b[o]))}if(m)return f=null,m+""||null}function g(){return(0,a.default)().defined(u).curve(p).context(d)}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),l=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?(l=null==e?null:"function"==typeof e?e:(0,i.default)(+e),m):l},m.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.default)(+e),r=null,m):t},m.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.default)(+e),m):t},m.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,i.default)(+e),m):r},m.lineX0=m.lineY0=function(){return g().x(e).y(t)},m.lineY1=function(){return g().x(e).y(r)},m.lineX1=function(){return g().x(l).y(t)},m.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.default)(!!e),m):u},m.curve=function(e){return arguments.length?(p=e,null!=d&&(f=p(d)),m):p},m.context=function(e){return arguments.length?(null==e?d=f=null:f=p(d=e),m):d},m}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i,slice:()=>n}),r.dn(i);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}),r.dn(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}),r.dn(c);var n=r(2170),i=r(2160),o=r(2171),a=r(2162),s=r(2173);function c(e,t){var r=(0,i.default)(!0),c=null,l=o.default,u=null,d=(0,a.withPath)(p);function p(i){var o,a,s,p=(i=(0,n.default)(i)).length,f=!1;for(null==c&&(u=l(s=d())),o=0;o<=p;++o)!(o<p&&r(a=i[o],o,i))===f&&((f=!f)?u.lineStart():u.lineEnd()),f&&u.point(+e(a,o,i),+t(a,o,i));if(s)return u=null,s+""||null}return e="function"==typeof e?e:void 0===e?s.x:(0,i.default)(e),t="function"==typeof t?t:void 0===t?s.y:(0,i.default)(t),p.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(+t),p):e},p.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.default)(+e),p):t},p.defined=function(e){return arguments.length?(r="function"==typeof e?e:(0,i.default)(!!e),p):r},p.curve=function(e){return arguments.length?(l=e,null!=c&&(u=l(c)),p):l},p.context=function(e){return arguments.length?(null==e?c=u=null:u=l(c=e),p):c},p}},(e,t,r)=>{"use strict";function n(e){return e[0]}function i(e){return e[1]}r.r(t),r.d(t,{x:()=>n,y:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c}),r.dn(c);var n=r(2170),i=r(2160),o=r(2175),a=r(2176),s=r(2161);function c(){var e=a.default,t=o.default,r=null,c=(0,i.default)(0),l=(0,i.default)(s.tau),u=(0,i.default)(0);function d(i){var o,a,d,p,f,h=(i=(0,n.default)(i)).length,m=0,g=new Array(h),y=new Array(h),v=+c.apply(this,arguments),b=Math.min(s.tau,Math.max(-s.tau,l.apply(this,arguments)-v)),_=Math.min(Math.abs(b)/h,u.apply(this,arguments)),S=_*(b<0?-1:1);for(o=0;o<h;++o)(f=y[g[o]=o]=+e(i[o],o,i))>0&&(m+=f);for(null!=t?g.sort(function(e,r){return t(y[e],y[r])}):null!=r&&g.sort(function(e,t){return r(i[e],i[t])}),o=0,d=m?(b-h*S)/m:0;o<h;
41++o,v=p)a=g[o],p=v+((f=y[a])>0?f*d:0)+S,y[a]={data:i[a],index:o,value:f,startAngle:v,endAngle:p,padAngle:_};return y}return d.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(+t),d):e},d.sortValues=function(e){return arguments.length?(t=e,r=null,d):t},d.sort=function(e){return arguments.length?(r=e,t=null,d):r},d.startAngle=function(e){return arguments.length?(c="function"==typeof e?e:(0,i.default)(+e),d):c},d.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,i.default)(+e),d):l},d.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.default)(+e),d):u},d}},(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}),r.dn(n)},(e,t,r)=>{"use strict";function n(e){return e}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a}),r.dn(a);var n=r(2178),i=r(2169),o=r(2179);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(2171).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}),r.dn(a);var n=r(2178),i=r(2172);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}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{link:()=>u,linkHorizontal:()=>d,linkRadial:()=>f,linkVertical:()=>p});var n=r(2170),i=r(2160),o=r(2182),a=r(2162),s=r(2173);function c(e){return e.source}function l(e){return e.target}function u(e){let t=c,r=l,o=s.x,u=s.y,d=null,p=null,f=(0,a.withPath)(h);function h(){let i;const a=n.slice.call(arguments),s=t.apply(this,a),c=r.apply(this,a);if(null==d&&(p=e(i=f())),p.lineStart(),a[0]=s,p.point(+o.apply(this,a),+u.apply(this,a)),a[0]=c,p.point(+o.apply(this,a),+u.apply(this,a)),p.lineEnd(),i)return p=null,i+""||null}return h.source=function(e){return arguments.length?(t=e,h):t},h.target=function(e){return arguments.length?(r=e,h):r},h.x=function(e){return arguments.length?(o="function"==typeof e?e:(0,i.default)(+e),h):o},h.y=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.default)(+e),h):u},h.context=function(t){return arguments.length?(null==t?d=p=null:p=e(d=t),h):d},h}function d(){return u(o.bumpX)}function p(){return u(o.bumpY)}function f(){const e=u(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(2180);class i{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}class o{constructor(e){this._context=e}lineStart(){this._point=0}lineEnd(){}point(e,t){if(e=+e,t=+t,0===this._point)this._point=1;else{const r=(0,n.default)(this._x0,this._y0),i=(0,n.default)(this._x0,this._y0=(this._y0+t)/2),o=(0,n.default)(e,this._y0),a=(0,n.default)(e,t);this._context.moveTo(...r),this._context.bezierCurveTo(...i,...o,...a)}this._x0=e,this._y0=t}}function a(e){return new i(e,!0)}function s(e){return new i(e,!1)}function c(e){return new o(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_,symbolsFill:()=>v,symbolsStroke:()=>b});var n=r(2160),i=r(2162),o=r(2184),a=r(2185),s=r(2186),c=r(2187),l=r(2188),u=r(2189),d=r(2190),p=r(2191),f=r(2192),h=r(2193),m=r(2
vendor: 22,777 bytes, line 41
41194),g=r(2195),y=r(2196);const v=[a.default,s.default,c.default,d.default,f.default,h.default,g.default],b=[a.default,u.default,y.default,m.default,o.default,p.default,l.default];function _(e,t){let r=null,o=(0,i.withPath)(s);function s(){let n;if(r||(r=n=o()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),n)return r=null,n+""||null}return e="function"==typeof e?e:(0,n.default)(e||a.default),t="function"==typeof t?t:(0,n.default)(void 0===t?64:+t),s.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.default)(t),s):e},s.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),s):t},s.context=function(e){return arguments.length?(r=e??null,s):r},s}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2161);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(2161);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(2161);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(2161);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(2161);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(2161);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(2161);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(2161);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(2161);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(2161);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(2161);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(2161);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,l=r*a,u=c,d=r*a+r,p=-u,f=d;e.moveTo(c,l),e.lineTo(u,d),e.lineTo(p,f),e.lineTo(i*c-o*l,o*c+i*l),e.lineTo(i*u-o*d,o*u+i*d),e.lineTo(i*p-o*f,o*p+i*f),e.lineTo(i*c+o*l,i*l-o*c),e.lineTo(i*u+o*d,i*d-o*u),e.lineTo(i*p+o*f,i*f-o*p),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2161);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}),r.dn(a);var n=r(2198),i=r(2199);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}),r.dn(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}),r.dn(o),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}),r.dn(o);var n=r(2199);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(2199);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(2198),i=r(2203);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(2203);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(2202),i=r(2198),o=r(2206);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(2161),i=r(2203);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,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*c-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*c-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>n.epsilon){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/d,s=(s*u+e._y1*e._l23_2a-r*e._l12_2a)/d}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(2204),i=r(2206);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}),r.dn(o);var n=r(2198);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 l(e)}function l(e){this._context=e}function u(e){return new s(e)}function d(e){return new c(e)}r.r(t),r.d(t,{monotoneX:()=>u,monotoneY:()=>d}),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)},l.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}),r.dn(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}),r.dn(i),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:()=>l}),r.dn(l);var n=r(2170),i=r(2160),o=r(2213),a=r(2214);function s(e,t){return e[t]}function c(e){const t=[];return t.key=e,t}function l(){var e=(0,i.default)([]),t=a.default,r=o.default,l=s;function u(i){var o,a,s=Array.from(e.apply(this,arguments),c),u=s.length,d=-1;for(const e of i)for(o=0,++d;o<u;++o)(s[o][d]=[0,+l(e,s[o].key,d,i)]).data=e;for(o=0,a=(0,n.default)(t(s));o<u;++o)s[a[o]].index=o;return r(s,a),s}return u.keys=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(Array.from(t)),u):e},u.value=function(e){return arguments.length?(l="function"==typeof e?e:(0,i.default)(+e),u):l},u.order=function(e){return arguments.length?(t=null==e?a.default:"function"==typeof e?e:(0,i.default)(Array.from(e)),u):t},u.offset=function(e){return arguments.length?(r=e??o.default,u):r},u}},(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}),r.dn(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}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2213);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,l=e[t[0]].length;c<l;++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}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2213);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}),r.dn(i);var n=r(2213);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,l=0,u=0;c<o;++c){for(var d=e[t[c]],p=d[s][1]||0,f=(p-(d[s-1][1]||0))/2,h=0;h<c;++h){var m=e[t[h]];f+=(m[s][1]||0)-(m[s-1][1]||0)}l+=p,u+=f*p}r[s-1][1]+=r[s-1][0]=a,l&&(a-=u/l)}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}),r.dn(i);var n=r(2214);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}),r.dn(i);var n=r(2214);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}),r.dn(i);var n=r(2220);function i(e){return(0,n.default)(e).reverse()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o}),r.dn(o);var n=r(2219),i=r(2220);function o(e){var t,r,o=e.length,a=e.map(i.sum),s=(0,n.default)(e),c=0,l=0,u=[],d=[];for(t=0;t<o;++t)r=s[t],c<l?(c+=a[r],u.push(r)):(l+=a[r],d.push(r));return d.reverse().concat(u)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2214);function i(e){return(0,n.default)(e).reverse()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(396),i=r(787),o=r.n(i),a=r(2166);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]:{};
41t%2?s(Object(r),!0).forEach(function(t){l(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 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 u={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},d="rv-xy-plot__borders-bottom",p="rv-xy-plot__borders",f="rv-xy-plot__borders-left",h="rv-xy-plot__borders-right",m="rv-xy-plot__borders-top";function g(e){var t=e.marginTop,r=e.marginBottom,i=e.marginLeft,o=e.marginRight,s=e.innerWidth,l=e.innerHeight,u=e.style,g=e.className,y=l+t+r,v=s+i+o;return n.default.createElement("g",{className:(0,a.getCombinedClassName)(p,g)},n.default.createElement("rect",{className:(0,a.getCombinedClassName)(d,"".concat(g,"-bottom")),style:c(c({},u.all),u.bottom),x:0,y:y-r,width:v,height:r}),n.default.createElement("rect",{className:(0,a.getCombinedClassName)(f,"".concat(g,"-left")),style:c(c({},u.all),u.left),x:0,y:0,width:i,height:y}),n.default.createElement("rect",{className:(0,a.getCombinedClassName)(h,"".concat(g,"-right")),style:c(c({},u.all),u.right),x:v-o,y:0,width:o,height:y}),n.default.createElement("rect",{className:(0,a.getCombinedClassName)(m,"".concat(g,"-top")),style:c(c({},u.all),u.top),x:0,y:0,width:v,height:t}))}g.displayName="Borders",g.defaultProps={className:"",style:{all:{},bottom:{},left:{},right:{},top:{}}},g.propTypes=u,g.requiresSVG=!0;const y=g},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(396),i=r(787),o=r.n(i),a=r(2166);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 l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(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"===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 d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(s,e);var t,r,i,o=u(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,l=e.className,u=e.includeMargin,d=e.style,p=e.text,f=(r+(u?o+s:0))*e.xPercent+(u?0:o),h=(t+(u?c+i:0))*e.yPercent+(u?c:0);return n.default.createElement("g",{transform:"translate(".concat(f,", ").concat(h,")"),className:(0,a.getCombinedClassName)("rv-xy-plot__axis__title",l)},n.default.createElement("text",d,p))}}])&&c(t.prototype,r),i&&c(t,i),s}(n.default.PureComponent);p.displayName="ChartLabel",p.propTypes={className:o().string,includeMargin:o().bool,style:o().object,text:o().string.isRequired,xPercent:o().number.isRequired,yPercent:o().number.isRequired},p.defaultProps={className:"",includeMargin:!0,text:"",xPercent:0,yPercent:0,style:{}};const f=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(396),i=r(787),o=r.n(i),a=r(2098),s=r(2068),c=r(2227);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 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 d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%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 m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===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 y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var v=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickTotal"],b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(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;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,f({},this.props,{animatedProps:v}),n.default.createElement(l,f({},this.props,{animation:null})));var o=d(d({},this._getDefaultProps()),this.props),u=o.tickTotal,p=o.tickValues,h=o.marginLeft,m=o.marginTop,g=o.rRange,y=o.style,b=(0,a.getAttributeScale)(o,"x"),_=(0,a.getAttributeScale)(o,"y"),S=(0,c.getTickValues)(b,u,p);return n.default.createElement("g",{transform:"translate(".concat(b(r)+h,",").concat(_(i)+m,")"),className:"rv-xy-plot__circular-grid-lines"},S.reduce(function(e,t,r){var i=b(t);return g&&(i<g[0]||i>g[1])?e:e.concat([n.default.createElement("circle",f({cx:0,cy:0,r:i},{key:r,className:"rv-xy-plot__circular-grid-lines__line",style:y}))])},[]))}}])&&h(t.prototype,r),i&&h(t,i),l}(n.PureComponent);b.displayName="CircularGridLines",b.propTypes={centerX:o().number,centerY:o().number,width:o().number,height:o().number,top:o().number,left:o().number,rRange:o().arrayOf(o().number),style:o().object,tickValues:o().arrayOf(o().number),tickTotal:o().number,animation:s.AnimationPropType,marginTop:o().number,marginBottom:o().number,marginLeft:o().number,marginRight:o().number,innerWidth:o().number,innerHeight:o().number},b.defaultProps={centerX:0,centerY:0},b.requiresSVG=!0;const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DIRECTION:()=>a,ORIENTATION:()=>o,default:()=>p,generateFit:()=>l,generatePoints:()=>u,getAxisAngle:()=>d,getTickValues:()=>c,getTicksTotalFromSize:()=>s});var n=r(2100),i=r(2104),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 l(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 u(e){var t=e.axisStart,r=e.axisEnd,o=e.numberOfTicks,a=e.axisDomain,s=l(t,r),c=s.left,u=s.right,d=s.slope,p=s.offset,f=(u-c)/o,h=(0,i.default)().domain([c,u]).range(a),m=t.x===r.x;return{slope:m?1/0:d,points:(0,n.default)(c,u+f,f).map(function(e){return m?{y:e,x:d*e+p,text:h(e)}:{x:e,y:d*e+p,text:h(e)}}).slice(0,o+1)}}function d(e,t){return e.x===t.x?t.y>e.y?Math.PI/2:3*Math.PI/2:Math.atan((t.y-e.y)/(t.x-e.x))}const p={DIRECTION:a,ORIENTATION:o,getTicksTotalFromSize:s,getTickValues:c}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>T});var n=r(396),i=r(787),o=r.n(i),a=r(2229),s=r(2242),c=r(2104),l=r(2057),u=r(2068),d=r(2164),p=r(2166),f=r(2165);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var i=E(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(l,e);var t,r,i,o=S(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.bandwidth,i=e.className,o=e.colorRange,h=e.data,m=e.innerHeight,y=e.innerWidth,b=e.marginLeft,_=e.marginTop,S=e.style;if(!h||!y||!m)return null;if(t)return n.default.createElement(u.default,v({},this.props,{animatedProps:d.ANIMATED_SERIES_PROPS}),n.default.createElement(l,v({},this.props,{animation:null})));var E=this._getAttributeFunctor("x"),w=this._getAttributeFunctor("y"),T=(0,a.default)().x(function(e){return E(e)}).y(function(e){return w(e)}).size([y,m]).bandwidth(r)(h),x=(0,s.default)(),O=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})}(T),A=O.min,R=O.max,P=(0,c.default)().domain([A,R]).range(o||f.CONTINUOUS_COLOR_RANGE);return n.default.createElement("g",{className:(0,p.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--contour",i),transform:"translate(".concat(b,",").concat(_,")")},T.map(function(e,t){return n.default.createElement("path",{className:"rv-xy-plot__series--contour-line",key:"rv-xy-plot__series--contour-line-".concat(t),d:x(e),style:g({fill:P(e.value)},S)})}))}}])&&b(t.prototype,r),i&&b(t,i),l}(l.default);w.propTypes=g(g({},l.default.propTypes),{},{animation:o().bool,bandwidth:o().number,className:o().string,marginLeft:o().number,marginTop:o().number,style:o().object}),w.defaultProps=g(g({},l.default.defaultProps),{},{bandwidth:40,style:{}});const T=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p}),r.dn(p);var n=r(2230),i=r(2231),o=r(2105),a=r(2232),s=r(2233),c=r(2234);function l(e){return e[0]}function u(e){return e[1]}function d(){return 1}function p(){var e=l,t=u,r=d,p=960,f=500,h=20,m=2,g=3*h,y=p+2*g>>m,v=f+2*g>>m,b=(0,s.default)(20);function _(i){var o=new Float32Array(y*v),a=Math.pow(2,-m),s=-1;for(const n of i){var c=(e(n,++s,i)+g)*a,l=(t(n,s,i)+g)*a,u=+r(n,s,i);if(u&&c>=0&&c<y&&l>=0&&l<v){var d=Math.floor(c),p=Math.floor(l),f=c-d-.5,b=l-p-.5;o[d+p*y]+=(1-f)*(1-b)*u,o[d+1+p*y]+=f*(1-b)*u,o[d+1+(p+1)*y]+=f*b*u,o[d+(p+1)*y]+=(1-f)*b*u}}return(0,n.blur2)({data:o,width:y,height:v},h*a),o}function S(e){var t=_(e),r=b(t),n=Math.pow(2,2*m);return Array.isArray(r)||(r=(0,o.default)(Number.MIN_VALUE,(0,i.default)(t)/n,r)),(0,c.default)().size([y,v]).thresholds(r.map(e=>e*n))(t).map((e,t)=>(e.value=+r[t],E(e)))}
vendor: 2,022 bytes, line 41
41function E(e){return e.coordinates.forEach(w),e}function w(e){e.forEach(T)}function T(e){e.forEach(x)}function x(e){e[0]=e[0]*Math.pow(2,m)-g,e[1]=e[1]*Math.pow(2,m)-g}function O(){return y=p+2*(g=3*h)>>m,v=f+2*g>>m,S}return S.contours=function(e){var t=_(e),r=(0,c.default)().size([y,v]),n=Math.pow(2,2*m),o=e=>{e=+e;var i=E(r.contour(t,e*n));return i.value=e,i};return Object.defineProperty(o,"max",{get:()=>(0,i.default)(t)/n}),o},S.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,s.default)(+t),S):e},S.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,s.default)(+e),S):t},S.weight=function(e){return arguments.length?(r="function"==typeof e?e:(0,s.default)(+e),S):r},S.size=function(e){if(!arguments.length)return[p,f];var t=+e[0],r=+e[1];if(!(t>=0&&r>=0))throw new Error("invalid size");return p=t,f=r,O()},S.cellSize=function(e){if(!arguments.length)return 1<<m;if(!((e=+e)>=1))throw new Error("invalid cell size");return m=Math.floor(Math.log(e)/Math.LN2),O()},S.thresholds=function(e){return arguments.length?(b="function"==typeof e?e:Array.isArray(e)?(0,s.default)(a.slice.call(e)):(0,s.default)(e),S):b},S.bandwidth=function(e){if(!arguments.length)return Math.sqrt(h*(h+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return h=(Math.sqrt(4*e*e+1)-1)/2,O()},S}},(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=l(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(l),o=a(function(e){const t=l(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");
vendor: 5,193 bytes, line 41
41if(!((a=Math.floor(void 0!==a?a:i.length/o))>=0))throw new RangeError("invalid height");if(!o||!a||!r&&!n)return t;const l=r&&e(r),u=n&&e(n),d=i.slice();return l&&u?(s(l,d,i,o,a),s(l,i,d,o,a),s(l,d,i,o,a),c(u,i,d,o,a),c(u,d,i,o,a),c(u,i,d,o,a)):l?(s(l,i,d,o,a),s(l,d,i,o,a),s(l,i,d,o,a)):u&&(c(u,i,d,o,a),c(u,d,i,o,a),c(u,i,d,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 l(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,l=o;e<=l;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 l=s*t,u=l+s;for(let e=o,t=o+l;e<t;e+=s)c+=i[Math.min(a,e)];for(let t=o,d=a;t<=d;t+=s)c+=i[Math.min(a,t+l)],e[t]=(c+r*(i[Math.max(o,t-u)]+i[Math.min(a,t+u)]))/n,c-=i[Math.max(o,t-l)]}}},(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,{slice:()=>n});var n=Array.prototype.slice},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=e=>()=>e;r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h}),r.dn(h);var n=r(2148),i=r(2235),o=r(2237),a=r(2105),s=r(2232),c=r(2238),l=r(2239),u=r(2233),d=r(2240),p=r(2241),f=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function h(){var e=1,t=1,r=i.default,h=E;function b(e){var t=r(e);if(Array.isArray(t))t=t.slice().sort(c.default);else{const r=(0,n.default)(e,m);for(t=(0,a.default)(...(0,o.default)(r[0],r[1],t),t);t[t.length-1]>=r[1];)t.pop();for(;t[1]<r[0];)t.shift()}return t.map(t=>_(e,t))}function _(r,n){const i=null==n?NaN:+n;if(isNaN(i))throw new Error(`invalid value: ${n}`);var o=[],a=[];return function(r,n,i){var o,a,s,c,l,u,d=new Array,p=new Array;o=a=-1,c=g(r[0],n),f[c<<1].forEach(h);for(;++o<e-1;)s=c,c=g(r[o+1],n),f[s|c<<1].forEach(h);f[c|0].forEach(h);for(;++a<t-1;){for(o=-1,c=g(r[a*e+e],n),l=g(r[a*e],n),f[c<<1|l<<2].forEach(h);++o<e-1;)s=c,c=g(r[a*e+e+o+1],n),u=l,l=g(r[a*e+o+1],n),f[s|c<<1|l<<2|u<<3].forEach(h);f[c|l<<3].forEach(h)}o=-1,l=r[a*e]>=n,f[l<<2].forEach(h);for(;++o<e-1;)u=l,l=g(r[a*e+o+1],n),f[l<<2|u<<3].forEach(h);function h(e){var t,r,n=[e[0][0]+o,e[0][1]+a],s=[e[1][0]+o,e[1][1]+a],c=S(n),l=S(s);(t=p[c])?(r=d[l])?(delete p[t.end],delete d[r.start],t===r?(t.ring.push(s),i(t.ring)):d[t.start]=p[r.end]={start:t.start,end:r.end,ring:t.ring.concat(r.ring)}):(delete p[t.end],t.ring.push(s),p[t.end=l]=t):(t=d[l])?(r=p[c])?(delete d[t.start],delete p[r.end],t===r?(t.ring.push(s),i(t.ring)):d[r.start]=p[t.end]={start:r.start,end:t.end,ring:r.ring.concat(t.ring)}):(delete d[t.start],t.ring.unshift(n),d[t.start=c]=t):d[c]=p[l]={start:c,end:l,ring:[n,s]}}f[l<<3].forEach(h)}(r,i,function(e){h(e,r,i),(0,l.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,d.default)((t=o[r])[0],e))return void t.push(e)}),{type:"MultiPolygon",value:n,coordinates:o}}function S(t){return 2*t[0]+t[1]*(e+1)*4}function E(r,n,i){r.forEach(function(r){var o=r[0],a=r[1],s=0|o,c=0|a,l=y(n[c*e+s]);o>0&&o<e&&s===o&&(r[0]=v(o,y(n[c*e+s-1]),l,i)),a>0&&a<t&&c===a&&(r[1]=v(a,y(n[(c-1)*e+s]),l,i))})}return b.contour=_,b.size=function(r){if(!arguments.length)return[e,t];var n=Math.floor(r[0]),i=Math.floor(r[1]);if(!(n>=0&&i>=0))throw new Error("invalid size");return e=n,t=i,b},b.thresholds=function(e){return arguments.length?(r="function"==typeof e?e:Array.isArray(e)?(0,u.default)(s.slice.call(e)):(0,u.default)(e),b):r},b.smooth=function(e){return arguments.length?(h=e?E:p.default,b):h===E},b}function m(e){return isFinite(e)?e:NaN}function g(e,t){return null!=e&&+e>=t}function y(e){return null==e||isNaN(e=+e)?-1/0:e}function v(e,t,r,n){const i=n-t,o=r-t,a=isFinite(i)||isFinite(o)?i/o:Math.sign(i)/Math.sign(o);return isNaN(a)?e:e+a-.5}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2236);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(2105);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){return e-t}r.r(t),r.d(t,{default:()=>n}),r.dn(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;
vendor: 4,540 bytes, line 41
41)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}),r.dn(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 l=e[a],u=l[0],d=l[1],p=e[c],f=p[0],h=p[1];if(o(l,p,t))return 0;d>n!=h>n&&r<(f-u)*(n-d)/(h-d)+u&&(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}),r.dn(n)},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d}),r.dn(d);var n=r(2243),i=r(2244),o=r(2245),a=r(2249),s=r(2250),c=r(2251),l=r(2252),u=r(2253);function d(e,t){let r,d,p=3,f=4.5;function h(e){return e&&("function"==typeof f&&d.pointRadius(+f.apply(this,arguments)),(0,i.default)(e,r(d))),d.result()}return h.area=function(e){return(0,i.default)(e,r(o.default)),o.default.result()},h.measure=function(e){return(0,i.default)(e,r(l.default)),l.default.result()},h.bounds=function(e){return(0,i.default)(e,r(a.default)),a.default.result()},h.centroid=function(e){return(0,i.default)(e,r(s.default)),s.default.result()},h.projection=function(t){return arguments.length?(r=null==t?(e=null,n.default):(e=t).stream,h):e},h.context=function(e){return arguments.length?(d=null==e?(t=null,new u.default(p)):new c.default(t=e),"function"!=typeof f&&d.pointRadius(f),h):t},h.pointRadius=function(e){return arguments.length?(f="function"==typeof e?e:(d.pointRadius(+e),+e),h):f},h.digits=function(e){if(!arguments.length)return p;if(null==e)p=null;else{const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);p=t}return null===t&&(d=new u.default(p)),h},h.projection(e).digits(p).context(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=e=>e;r.dn(n)},(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}),r.dn(c);var i={Feature:function(e,t){n(e.geometry,t)},FeatureCollection:function(e,t){for(var r=e.features,i=-1,o=r.length;++i<o;)n(r[i].geometry,t)}},o={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var r=e.coordinates,n=-1,i=r.length;++n<i;)e=r[n],t.point(e[0],e[1],e[2])},LineString:function(e,t){a(e.coordinates,t,0)},MultiLineString:function(e,t){for(var r=e.coordinates,n=-1,i=r.length;++n<i;)a(r[n],t,0)},Polygon:function(e,t){s(e.coordinates,t)},MultiPolygon:function(e,t){for(var r=e.coordinates,n=-1,i=r.length;++n<i;)s(r[n],t)},GeometryCollection:function(e,t){for(var r=e.geometries,i=-1,o=r.length;++i<o;)n(r[i],t)}};function a(e,t,r){var n,i=-1,o=e.length-r;for(t.lineStart();++i<o;)n=e[i],t.point(n[0],n[1],n[2]);t.lineEnd()}function s(e,t){var r=-1,n=e.length;for(t.polygonStart();++r<n;)a(e[r],t,1);t.polygonEnd()}function c(e,t){e&&i.hasOwnProperty(e.type)?i[e.type](e,t):n(e,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n,i,o,a,s=r(2246),c=r(2247),l=r(2248),u=new s.Adder,d=new s.Adder,p={point:l.default,lineStart:l.default,lineEnd:l.default,polygonStart:function(){p.lineStart=f,p.lineEnd=g},polygonEnd:function(){p.lineStart=p.lineEnd=p.point=l.default,u.add((0,c.abs)(d)),d=new s.Adder},result:function(){var e=u/2;return u=new s.Adder,e}};function f(){p.point=h}function h(e,t){p.point=m,n=o=e,i=a=t}function m(e,t){d.add(a*e-o*t),o=e,a=t}function g(){m(n,i)}const y=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{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,{abs:()=>d,acos:()=>x,asin:()=>O,atan:()=>p,atan2:()=>f,ceil:()=>m,cos:()=>h,degrees:()=>l,epsilon:()=>n,epsilon2:()=>i,exp:()=>g,floor:()=>y,halfPi:()=>a,haversin:()=>
vendor: 4,473 bytes, line 41
41A,hypot:()=>v,log:()=>b,pi:()=>o,pow:()=>_,quarterPi:()=>s,radians:()=>u,sign:()=>E,sin:()=>S,sqrt:()=>w,tan:()=>T,tau:()=>c});var n=1e-6,i=1e-12,o=Math.PI,a=o/2,s=o/4,c=2*o,l=180/o,u=o/180,d=Math.abs,p=Math.atan,f=Math.atan2,h=Math.cos,m=Math.ceil,g=Math.exp,y=Math.floor,v=Math.hypot,b=Math.log,_=Math.pow,S=Math.sin,E=Math.sign||function(e){return e>0?1:e<0?-1:0},w=Math.sqrt,T=Math.tan;function x(e){return e>1?0:e<-1?o:Math.acos(e)}function O(e){return e>1?a:e<-1?-a:Math.asin(e)}function A(e){return(e=S(e/2))*e}},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(2248),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:()=>A});var n,i,o,a,s=r(2247),c=0,l=0,u=0,d=0,p=0,f=0,h=0,m=0,g=0,y={point:v,lineStart:b,lineEnd:E,polygonStart:function(){y.lineStart=w,y.lineEnd=T},polygonEnd:function(){y.point=v,y.lineStart=b,y.lineEnd=E},result:function(){var e=g?[h/g,m/g]:f?[d/f,p/f]:u?[c/u,l/u]:[NaN,NaN];return c=l=u=d=p=f=h=m=g=0,e}};function v(e,t){c+=e,l+=t,++u}function b(){y.point=_}function _(e,t){y.point=S,v(o=e,a=t)}function S(e,t){var r=e-o,n=t-a,i=(0,s.sqrt)(r*r+n*n);d+=i*(o+e)/2,p+=i*(a+t)/2,f+=i,v(o=e,a=t)}function E(){y.point=v}function w(){y.point=x}function T(){O(n,i)}function x(e,t){y.point=O,v(n=o=e,i=a=t)}function O(e,t){var r=e-o,n=t-a,i=(0,s.sqrt)(r*r+n*n);d+=i*(o+e)/2,p+=i*(a+t)/2,f+=i,h+=(i=a*e-o*t)*(o+e),m+=i*(a+t),g+=3*i,v(o=e,a=t)}const A=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2247),i=r(2248);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(2246),l=r(2247),u=r(2248),d=new c.Adder,p={point:u.default,lineStart:function(){p.point=f},lineEnd:function(){n&&h(i,o),p.point=u.default},polygonStart:function(){n=!0},polygonEnd:function(){n=null},result:function(){var e=+d;return d=new c.Adder,e}};function f(e,t){p.point=h,i=a=e,o=s=t}function h(e,t){a-=e,s-=t,d.add((0,l.sqrt)(a*a+s*s)),a=e,s=t}const m=p},(e,t,r)=>{"use strict";let n,i,o,a;r.r(t),r.d(t,{default:()=>s});class s{constructor(e){this._append=null==e?c:function(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return c;if(t!==n){const e=10**t;n=t,i=function(t){let r=1;this._+=t[0];for(const n=t.length;r<n;++r)this._+=Math.round(arguments[r]*e)/e+t[r]}}return i}(e),this._radius=4.5,this._=""}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(e,t){switch(this._point){case 0:this._append`M${e},${t}`,this._point=1;break;case 1:this._append`L${e},${t}`;break;default:if(this._append`M${e},${t}`,this._radius!==o||this._append!==i){const e=this._radius,t=this._;this._="",this._append`m0,${e}a${e},${e} 0 1,1 0,${-2*e}a${e},${e} 0 1,1 0,${2*e}z`,o=e,i=this._append,a=this._,this._=t}this._+=a}}result(){const e=this._;return this._="",e.length?e:null}}function c(e){let t=1;this._+=e[0];for(const r=e.length;t<r;++t)this._+=arguments[t]+e[t]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(396),i=r(787),o=r.n(i),a=r(2157),s=r(2098),c=r(2166);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 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 d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%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,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===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 g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e){var t=b(e);if(t)return{title:"x",value:(0,a.transformValueToString)(t.x)}}function v(e){return e.map(function(e,t){if(e)return{value:e.y,title:t}})}function b(e){return(e||[]).find(function(e){return Boolean(e)})}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(l,e);var t,r,i,a=m(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.apply(this,arguments)}return t=l,i=[{key:"defaultProps",get:function(){return{titleFormat:y,itemsFormat:v,style:{line:{},title:{},box:{}}}}},{key:"propTypes",get:function(){return{className:o().string,values:o().arrayOf(o().oneOfType([o().number,o().string,o().object,o().bool])),series:o().object,innerWidth:o().number,innerHeight:o().number,marginLeft:o().number,marginTop:o().number,orientation:o().oneOf(["left","right"]),itemsFormat:o().func,titleFormat:o().func,style:o().shape({line:o().object,title:o().object,box:o().object})}}}],(r=[{key:"_renderCrosshairItems",value:function(){var e=this.props,t=e.values,r=(0,e.itemsFormat)(t);return r?r.filter(function(e){return e}).map(function(e,t){return n.default.createElement("div",{className:"rv-crosshair__item",key:"item".concat(t)},n.default.createElement("span",{className:"rv-crosshair__item__title"},e.title),": ",n.default.createElement("span",{className:"rv-crosshair__item__value"},e.value))}):null}},{key:"_renderCrosshairTitle",value:function(){var e=this.props,t=e.values,r=e.titleFormat,i=e.style,o=r(t);return o?n.default.createElement("div",{className:"rv-crosshair__title",key:"title",style:i.title},n.default.createElement("span",{className:"rv-crosshair__title__title"},o.title),": ",n.default.createElement("span",{className:"rv-crosshair__title__value"},o.value)):null}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.className,i=e.values,o=e.marginTop,a=e.marginLeft,l=e.innerWidth,u=e.innerHeight,p=e.style,f=b(i);if(!f)return null;var h=(0,s.getAttributeFunctor)(this.props,"x")(f),m=this.props.orientation,g=a+h,y=o,v="rv-crosshair__inner rv-crosshair__inner--".concat(void 0===m?h>l/2?"left":"right":m);return n.default.createElement("div",{className:(0,c.getCombinedClassName)("rv-crosshair",r),style:{left:"".concat(g,"px"),top:"".concat(y,"px")}},n.default.createElement("div",{className:"rv-crosshair__line",style:d({height:"".concat(u,"px")},p.line)}),n.default.createElement("div",{className:v},t||n.default.createElement("div",{className:"rv-crosshair__inner__content",style:p.box},n.default.createElement("div",null,this._renderCrosshairTitle(),this._renderCrosshairItems())
41)))}}])&&f(t.prototype,r),i&&f(t,i),l}(n.PureComponent);_.displayName="Crosshair";const S=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>T});var n=r(396),i=r(787),o=r.n(i),a=r(2057),s=r(2068),c=r(2164),l=r(2166);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 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 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=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var S={stroke:"blue",fill:"blue"};function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;switch(e){case"diamond":return n.default.createElement("polygon",{style:r,points:"0 0 ".concat(t/2," ").concat(t/2," 0 ").concat(t," ").concat(-t/2," ").concat(t/2," 0 0")});case"star":var i=b(new Array(5)).map(function(e,r){var n=r/5*Math.PI*2,i=n+Math.PI/10,o=n-Math.PI/10,a=t/2.61;return"\n        ".concat(Math.cos(o)*t," ").concat(Math.sin(o)*t,"\n        ").concat(Math.cos(i)*a," ").concat(Math.sin(i)*a,"\n      ")}).join(" ");return n.default.createElement("polygon",{points:i,x:"0",y:"0",height:t,width:t,style:r});case"square":return n.default.createElement("rect",{x:"".concat(-t/2),y:"".concat(-t/2),height:t,width:t,style:r});default:return n.default.createElement("circle",{cx:"0",cy:"0",r:t/2,style:r})}}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&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,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.className,o=t.customComponent,u=t.data,p=t.innerHe
41ight,f=t.innerWidth,h=t.marginLeft,m=t.marginTop,g=t.style,v=t.size;if(!u||!f||!p)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:!1})));var b=this._getAttributeFunctor("x"),_=this._getAttributeFunctor("y"),S=u.map(function(t,r){var i={x:b(t),y:_(t)},a=function(e){var t=e.customComponent,r=e.defaultType,n=e.positionInPixels,i=e.positionFunctions,o=e.style,a=e.propsSize,s=t.size,c=y(y({},o),t.style||{}),l=t.customComponent;return l||"string"!=typeof r?l?"string"==typeof l?E(l||r,s,c):l(t,n,c,i):r(t,n,c,i):E(r,s||a,c)}({customComponent:t,positionInPixels:i,defaultType:o,positionFunctions:{x:b,y:_},style:g,propsSize:v});return n.default.createElement("g",{className:"rv-xy-plot__series--custom-svg",key:"rv-xy-plot__series--custom-svg-".concat(r),transform:"translate(".concat(i.x,",").concat(i.y,")"),onMouseEnter:function(r){return e._valueMouseOverHandler(t,r)},onMouseLeave:function(r){return e._valueMouseOutHandler(t,r)}},a)});return n.default.createElement("g",{className:(0,l.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--custom-svg-wrapper",i),transform:"translate(".concat(h,",").concat(m,")")},S)}}])&&p(t.prototype,r),i&&p(t,i),a}(a.default);w.propTypes={animation:o().bool,className:o().string,customComponent:o().oneOfType([o().string,o().func]),data:o().arrayOf(o().shape({x:o().oneOfType([o().string,o().number]).isRequired,y:o().oneOfType([o().string,o().number]).isRequired})).isRequired,marginLeft:o().number,marginTop:o().number,style:o().object,size:o().number,onValueMouseOver:o().func,onValueMouseOut:o().func},w.defaultProps=y(y({},a.default.defaultProps),{},{animation:!1,customComponent:"circle",style:{},size:2});const T=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var n=r(396),i=r(2116),o=r(787),a=r.n(o),s=r(2057),c=r(2257),l=r(2068),u=r(2166);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 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 m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(this,arguments)}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===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 b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var _=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickSize","t
41ickTotal","tickSizeInner","tickSizeOuter"],S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(a,e);var t,r,i,o=v(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,i=e.marginLeft,o=e.marginTop,s=e.axisStart,d=e.axisEnd,p=e.axisDomain,h=e.numberOfTicks,g=e.tickValue,y=e.tickSize,v=e.style;if(t)return n.default.createElement(l.default,m({},this.props,{animatedProps:_}),n.default.createElement(a,m({},this.props,{animation:null})));var b=this._getAttributeFunctor("x"),S=this._getAttributeFunctor("y");return n.default.createElement("g",{className:(0,u.getCombinedClassName)("rv-xy-manipulable-axis rv-xy-plot__axis",r),transform:"translate(".concat(i,",").concat(o,")")},n.default.createElement("line",m({},f({x1:b({x:s.x}),x2:b({x:d.x}),y1:S({y:s.y}),y2:S({y:d.y})},v.line),{className:"rv-xy-plot__axis__line"})),n.default.createElement("g",{className:"rv-xy-manipulable-axis__ticks"},(0,c.default)({axisDomain:p,axisEnd:{x:b(d),y:S(d)},axisStart:{x:b(s),y:S(s)},numberOfTicks:h,tickValue:g,tickSize:y,style:v})))}}])&&g(t.prototype,r),i&&g(t,i),a}(s.default),E=(0,i.format)(".2r");S.defaultProps={className:"",numberOfTicks:10,tickValue:function(e){return E(e)},tickSize:5,style:{line:{strokeWidth:1},ticks:{strokeWidth:2},text:{}}},S.propTypes=f(f({},s.default.propTypes),{},{axisDomain:a().arrayOf(a().number).isRequired,axisEnd:a().shape({x:a().oneOfType([a().number,a().string]),y:a().oneOfType([a().number,a().string])}).isRequired,axisStart:a().shape({x:a().oneOfType([a().number,a().string]),y:a().oneOfType([a().number,a().string])}).isRequired,className:a().string,numberOfTicks:a().number,tickValue:a().func,tickSize:a().number,style:a().shape({line:a().object,ticks:a().object,text:a().object})}),S.displayName="DecorativeAxis";const w=S},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(396),i=r(2227);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 l(e){var t=e.axisDomain,r=e.numberOfTicks,a=e.axisStart,c=e.axisEnd,l=e.tickValue,u=e.tickSize,d=e.style,p=(0,i.generatePoints)({axisStart:a,axisEnd:c,numberOfTicks:r,axisDomain:t}).points,f=(0,i.getAxisAngle)(a,c)+Math.PI/2;return p.map(function(e,t){var r=s({x1:0,y1:0,x2:u*Math.cos(f),y2:u*Math.sin(f)},d.ticks),i=s({x:u*Math.cos(f),y:u*Math.sin(f),textAnchor:"start"},d.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"}),l(e.text)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(396),i=r(787),o=r.n(i),a=r(2166);function s(e){var t=e.className;return n.default.createElement("defs",{className:(0,a.getCombinedClassName)("rv-gradient-defs",t)},e.children)}s.displayName="GradientDefs",s.requiresSVG=!0,s.propTypes={className:o().string},s.defaultProps={className:""};const c=s},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(396),i=r(787),o=r.n(i),a=r(2098),s=r(2166),c=r(2068),l=r(2227);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 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 p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%2?d(Object(r),!0).forEach(function(t){f(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 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 m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===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 v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=l.DIRECTION.VERTICAL,_=l.DIRECTION.HORIZONTAL,S={direction:o().oneOf([b,_]),attr:o().string.isRequired,width:o().number,height:o().number,top:o().number,left:o().number,style:o().object,tickValues:o().arrayOf(o().oneOfType([o().number,o().string])),tickTotal:o().number,animation:c.AnimationPropType,marginTop:o().number,marginBottom:o().number,marginLeft:o().number,marginRight:o().number,innerWidth:o().number,innerHeight:o().number},E={direction:b},w=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickTotal"],T=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)}(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,i=e.marginLeft,o=e.direction;return{left:i,top:n,width:t,height:r,tickTotal:(0,l.getTicksTotalFromSize)(o===b?t:r)}}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className;if(t)return n.default.createElement(c.default,h({},this.props,{animatedProps:w}),n.default.createElement(u,h({},this.props,{animation:null})));var i=p(p({},this._getDefaultProps()),this.props),o=i.attr,d=i.direction,m=i.width,g=i.height,y=i.style,v=i.tickTotal,_=i.tickValues,S=i.top,E=i.left,T=d===b,x=T?"y":"x",O=T?"x":"y",A=T?g:m,R=(0,a.getAttributeScale)(i,o),P=(0,l.getTickValues)(R,v,_);return n.default.createElement("g",{transform:"translate(".concat(E,",").concat(S,")"),className:(0,s.getCombinedClassName)("rv-xy-plot__grid-lines",r)},P.map(function(e,t){var r,i=R(e),o=(f(r={},"".concat(O,"1"),i),f(r,"".concat(O,"2"),i),f(r,"".concat(x,"1"),0),f(r,"".concat(x,"2"),A),r);return n.default.createElement("line",h({},o,{key:t,className:"rv-xy-plot__grid-lines__line",style:y}))}))}}])&&m(t.prototype,r),i&&m(t,i),u}(n.PureComponent);T.displayName="GridLines",T.defaultProps=E,T.propTypes=S,T.requiresSVG=!0;const x=T},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(396),i=r(2068),o=r(2164),a=r(2166),s=r(2057);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%2?l(Object(r),!0).forEach(function(t){d(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 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 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 m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(l,e);var t,r,s,c=m(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c.apply(this,arguments)}return t=l,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,d=t.marginLeft,f=t.marginTop,h=t.style;if(!c)return null;if(r)return n.default.createElement(i.default,p({},this.props,{animatedProps:o.ANIMATED_SERIES_PROPS}),n.default.createElement(l,p({},this.props,{animation:null})));var m=u({rectStyle:{}},h).rectStyle,g=this._getAttributeFunctor("x"),y=this._getAttributeFunctor("y"),v=this._getAttributeFunctor("opacity"),b=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),_=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),S=this._getScaleDistance("x"),E=this._getScaleDistance("y");return n.default.createElement("g",{className:(0,a.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--heatmap",s),transform:"translate(".concat(d,",").concat(f,")")},c.map(function(t,r){var i=u(u({style:u({stroke:_&&_(t),fill:b&&b(t),opacity:v&&v(t)},h)},m),{},{x:g(t)-S/2,y:y(t)-E/2,width:S,height:E,onClick:function(r){return e._valueClickHandler(t,r)},onContextMenu:function(r){return e._valueRightClickHandler(t,r)},onMouseOver:function(r){return e._valueMouseOverHandler(t,r)},onMouseOut:function(r){return e._valueMouseOutHandler(t,r)}});return n.default.createElement("rect",p({key:r},i))}))}}])&&f(t.prototype,r),s&&f(t,s),l}(s.default);y.propTypes=u({},s.default.propTypes),y.displayName="HeatmapSeries";const v=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(396),i=r(787),o=r.n(i),a=r(2068),s=r(2262),c=r(2104),l=r(2164),u=r(2166),d=r(2165),p=r(2057);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){m(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEac
41h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var i=S(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function E(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(d,e);var t,r,i,o=_(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),o.apply(this,arguments)}return t=d,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.className,o=t.colorRange,p=t.data,f=t.innerHeight,h=t.innerWidth,m=t.marginLeft,g=t.marginTop,v=t.radius,b=t.sizeHexagonsWithCount,_=t.style,S=t.xOffset,w=t.yOffset;if(!p)return null;if(r)return n.default.createElement(a.default,y({},this.props,{animatedProps:l.ANIMATED_SERIES_PROPS}),n.default.createElement(d,y({},this.props,{animation:null})));var T=this._getAttributeFunctor("x"),x=this._getAttributeFunctor("y"),O=(0,s.hexbin)().x(function(e){return T(e)+S}).y(function(e){return x(e)+w}).radius(v).size([h,f]),A=O.hexagon(),R=O(p),P=function(e,t){var r=e.countDomain;return r||[0,Math.max.apply(Math,E(t.map(function(e){return e.length})))]}(this.props,R),I=(0,c.default)().domain(P).range(o),C=(0,c.default)().domain(P).range([0,v]);return n.default.createElement("g",{className:(0,u.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--hexbin",i),transform:"translate(".concat(m,",").concat(g,")")},R.map(function(t,r){var i={style:_,d:b?O.hexagon(C(t.length)):A,fill:I(t.length),transform:"translate(".concat(t.x,", ").concat(t.y,")"),onClick:function(r){return e._valueClickHandler(t,r)},onContextMenu:function(r){return e._valueRightClickHandler(t,r)},onMouseOver:function(r){return e._valueMouseOverHandler(t,r)},onMouseOut:function(r){return e._valueMouseOutHandler(t,r)}};return n.default.createElement("path",y({key:String(r)},i))}))}}])&&v(t.prototype,r),i&&v(t,i),d}(p.default);T.propTypes=h(h({}
41,p.default.propTypes),{},{radius:o().number}),T.defaultProps={radius:20,colorRange:d.CONTINUOUS_COLOR_RANGE,xOffset:0,yOffset:0},T.displayName="HexbinSeries";const x=T},(e,t,r)=>{"use strict";r.r(t),r.d(t,{hexbin:()=>n.default});var n=r(2263)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s}),r.dn(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,l=1,u=1,d=o,p=a;function f(e){var n,i={},o=[],a=e.length;for(n=0;n<a;++n)if(!isNaN(c=+d.call(null,s=e[n],n,e))&&!isNaN(l=+p.call(null,s,n,e))){var s,c,l,u=Math.round(l/=r),f=Math.round(c=c/t-(1&u)/2),h=l-u;if(3*Math.abs(h)>1){var m=c-f,g=f+(c<f?-1:1)/2,y=u+(l<u?-1:1),v=c-g,b=l-y;m*m+h*h>v*v+b*b&&(f=g+(1&u?1:-1)/2,u=y)}var _=f+"-"+u,S=i[_];S?S.push(s):(o.push(S=i[_]=[s]),S.x=(f+(1&u)/2)*t,S.y=u*r)}return o}function h(e){var t=0,r=0;return i.map(function(n){var i=Math.sin(n)*e,o=-Math.cos(n)*e,a=i-t,s=o-r;return t=i,r=o,[a,s]})}return f.hexagon=function(t){return"m"+h(null==t?e:+t).join("l")+"z"},f.centers=function(){for(var n=[],i=Math.round(c/r),o=Math.round(s/t),a=i*r;a<u+e;a+=r,++i)for(var d=o*t+(1&i)*t/2;d<l+t/2;d+=t)n.push([d,a]);return n},f.mesh=function(){var t=h(e).slice(0,4).join("l");return f.centers().map(function(e){return"M"+e+"m"+t}).join("")},f.x=function(e){return arguments.length?(d=e,f):d},f.y=function(e){return arguments.length?(p=e,f):p},f.radius=function(i){return arguments.length?(t=2*(e=+i)*Math.sin(n),r=1.5*e,f):e},f.size=function(e){return arguments.length?(s=c=0,l=+e[0],u=+e[1],f):[l-s,u-c]},f.extent=function(e){return arguments.length?(s=+e[0][0],c=+e[0][1],l=+e[1][0],u=+e[1][1],f):[[s,c],[l,u]]},f.radius(1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(396),i=r(787),o=r.n(i),a=r(2057),s=r(2098),c=r(2166);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 u(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){y(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 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 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=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"===d(t)||"function"==typeof t))return t;return m(e)}(this,r)}}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){return{xLoc:"touchstart"===e.type?e.pageX:e.offsetX,yLoc:"touchstart"===e.type?e.pageY:e.offsetY}}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(a,e);var t,r,i,o=h(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(m(e=o.call.apply(o,[this].concat(r))),"state",{dragging:!1,brushArea:{top:0,right:0,bottom:0,left:0},brushing:!1,startLocX:0,startLocY:0,dragArea:null}),e}return t=a,(r=[{key:"_getDrawArea",value:function(e,t){var r=this.state,n=r.startLocX,i=r.startLocY,o=this.props,a=o.enableX,s=o.enableY,c=o.highlightWidth,l=o.highlightHeight,u=o.innerWidth,d=o.innerHeight,p=o.marginLeft,f=o.marginRight,h=o.marginBottom,m=o.marginTop,g=c||u+p+f,y=l||d+m+h;return{bottom:s?Math.max(i,t):y,right:a?Math.max(n,e):g,left:a?Math.min(e,n):0,top:s?Math.min(t,i):0}}},{key:"_getDragArea",value:function(e,t){var r=this.props,n=r.enableX,i=r.enableY,o=this.state,a=o.startLocX,s=o.startLocY,c=o.dragArea;return{bottom:c.bottom+(i?t-s:0),left:c.left+(n?e-a:0),right:c.right+(n?e-a:0),top:c.top+(i?t-s:0)}}},{key:"_clickedOutsideDrag",value:function(e,t){var r=this.props,n=r.enableX,i=r.enableY,o=this.state,a=o.dragArea,s=o.brushArea,c=s.left,l=s.right,u=s.top,d=s.bottom,p=a&&(e<c||e>l),f=a&&(t<u||t>d);return n&&i?p||f:n?p:!i||f}},{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,l=s.yLoc,u=function(e,r){var n={bottom:l,left:c,right:c,top:l};t.setState({dragging:e,brushArea:a&&!r?a:n,brushing:!e,startLocX:c,startLocY:l})},d=this._clickedOutsideDrag(c,l);if(o&&!a||!o||d)return u(!1,d),void(n&&n(e));o&&a&&(u(!0,d),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,l=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&&!l&&n}),t&&o&&o(l?null:this._convertAreaToCoordinates(n)),s&&a&&a(l?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),l=c.xLoc,u=c.yLoc;
41if(a){var d=this._getDrawArea(l,u);this.setState({brushArea:d}),r&&r(this._convertAreaToCoordinates(d))}if(i&&s){var p=this._getDragArea(l,u);this.setState({brushArea:p}),n&&n(this._convertAreaToCoordinates(p))}}},{key:"render",value:function(){var e=this,t=this.props,r=t.color,i=t.className,o=t.highlightHeight,a=t.highlightWidth,l=t.highlightX,u=t.highlightY,d=t.innerWidth,p=t.innerHeight,f=t.marginLeft,h=t.marginRight,m=t.marginTop,g=t.marginBottom,y=t.opacity,v=this.state.brushArea,b=v.left,_=v.right,S=v.top,E=v.bottom,w=0;l&&(w=(0,s.getAttributeScale)(this.props,"x")(l));var T=0;u&&(T=(0,s.getAttributeScale)(this.props,"y")(u));var x=a||f+h+d,O=o||m+g+p;return n.default.createElement("g",{transform:"translate(".concat(w,", ").concat(T,")"),className:(0,c.getCombinedClassName)(i,"rv-highlight-container")},n.default.createElement("rect",{className:"rv-mouse-target",fill:"black",opacity:"0",x:"0",y:"0",width:Math.max(x,0),height:Math.max(O,0),onMouseDown:function(t){return e.startBrushing(t)},onMouseMove:function(t){return e.onBrush(t)},onMouseUp:function(t){return e.stopBrushing(t)},onMouseLeave:function(t){return e.stopBrushing(t)},onTouchEnd:function(t){t.preventDefault(),e.stopBrushing(t)},onTouchCancel:function(t){t.preventDefault(),e.stopBrushing(t)},onContextMenu:function(e){return e.preventDefault()},onContextMenuCapture:function(e){return e.preventDefault()}}),n.default.createElement("rect",{className:"rv-highlight",pointerEvents:"none",opacity:y,fill:r,x:b,y:S,width:Math.min(Math.max(0,_-b),x),height:Math.min(Math.max(0,E-S),O)}))}}])&&p(t.prototype,r),i&&p(t,i),a}(a.default);b.displayName="HighlightOverlay",b.defaultProps={color:"rgb(77, 182, 172)",className:"",enableX:!0,enableY:!0,opacity:.3},b.propTypes=u(u({},a.default.propTypes),{},{enableX:o().bool,enableY:o().bool,highlightHeight:o().number,highlightWidth:o().number,highlightX:o().oneOfType([o().string,o().number]),highlightY:o().oneOfType([o().string,o().number]),onBrushStart:o().func,onDragStart:o().func,onBrush:o().func,onDrag:o().func,onBrushEnd:o().func,onDragEnd:o().func});const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(396),i=r(787),o=r.n(i),a=r(2157),s=r(2098),c=r(2166);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 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 d(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,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===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 g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y={AUTO:"auto",LEFT:"left",RIGHT:"right",LEFT_EDGE:"leftEdge",RIGHT_EDGE:"rightEdge",BOTTOM:"bottom",TOP:"top",BOTTOM_EDGE:"bottomEdge",TOP_EDGE:"topEdge"},v={BOTTOM_LEFT:"bottomleft",BOTTOM_RIGHT:"bottomright",TOP_LEFT:"topleft",TOP_RIGHT:"topright"};function b(e){return Object.keys(e).map(function(t){return{title:t,value:(0,a.transformValueToString)(e[t])}})}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(l,e);var t,r,i,a=m(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.apply(this,arguments)}return t=l,i=[{key:"defaultProps",get:function(){return{format:b,align:{horizontal:y.AUTO,vertical:y.AUTO},style:{}}}},{key:"propTypes",get:function(){return{marginTop:o().number,marginLeft:o().number,innerWidth:o().number,innerHe
41ight:o().number,scales:o().object,value:o().object,format:o().func,style:o().object,className:o().string,align:o().shape({horizontal:o().oneOf([y.AUTO,y.LEFT,y.RIGHT,y.LEFT_EDGE,y.RIGHT_EDGE]),vertical:o().oneOf([y.AUTO,y.BOTTOM,y.TOP,y.BOTTOM_EDGE,y.TOP_EDGE])}),getAlignStyle:o().func,orientation:o().oneOf([v.BOTTOM_LEFT,v.BOTTOM_RIGHT,v.TOP_LEFT,v.TOP_RIGHT])}}}],(r=[{key:"_getAlign",value:function(e,t){var r=this.props,n=r.innerWidth,i=r.innerHeight,o=r.orientation,a=r.align,s=a.horizontal,c=a.vertical,l=o?this._mapOrientationToAlign(o):{horizontal:s,vertical:c};return s===y.AUTO&&(l.horizontal=e>n/2?y.LEFT:y.RIGHT),c===y.AUTO&&(l.vertical=t>i/2?y.TOP:y.BOTTOM),l}},{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 d(d({},this._getXCSS(e.horizontal,t)),this._getYCSS(e.vertical,r))}},{key:"_getCSSBottom",value:function(e){if(null==e)return{bottom:0};var t=this.props,r=t.innerHeight;return{bottom:t.marginBottom+r-e}}},{key:"_getCSSLeft",value:function(e){return null==e?{left:0}:{left:this.props.marginLeft+e}}},{key:"_getCSSRight",value:function(e){if(null==e)return{right:0};var t=this.props,r=t.innerWidth;return{right:t.marginRight+r-e}}},{key:"_getCSSTop",value:function(e){return null==e?{top:0}:{top:this.props.marginTop+e}}},{key:"_getPositionInfo",value:function(){var e=this.props,t=e.value,r=e.getAlignStyle,n=(0,s.getAttributeFunctor)(this.props,"x")(t),i=(0,s.getAttributeFunctor)(this.props,"y")(t),o=this._getAlign(n,i);return{position:r?r(o,n,i):this._getAlignStyle(o,n,i),positionClassName:this._getAlignClassNames(o)}}},{key:"_getXCSS",value:function(e,t){switch(e){case y.LEFT_EDGE:return this._getCSSLeft(null);case y.RIGHT_EDGE:return this._getCSSRight(null);case y.LEFT:return this._getCSSRight(t);default:return this._getCSSLeft(t)}}},{key:"_getYCSS",value:function(e,t){switch(e){case y.TOP_EDGE:return this._getCSSTop(null);case y.BOTTOM_EDGE:return this._getCSSBottom(null);case y.BOTTOM:return this._getCSSTop(t);default:return this._getCSSBottom(t)}}},{key:"_mapOrientationToAlign",value:function(e){switch(e){case v.BOTTOM_LEFT:return{horizontal:y.LEFT,vertical:y.BOTTOM};case v.BOTTOM_RIGHT:return{horizontal:y.RIGHT,vertical:y.BOTTOM};case v.TOP_LEFT:return{horizontal:y.LEFT,vertical:y.TOP};case v.TOP_RIGHT:return{horizontal:y.RIGHT,vertical:y.TOP}}}},{key:"render",value:function(){var e=this.props,t=e.value,r=e.format,i=e.children,o=e.style,a=e.className,s=this._getPositionInfo(),l=s.position,u=s.positionClassName;return n.default.createElement("div",{className:(0,c.getCombinedClassName)("rv-hint",u,a),style:d(d(d({},o),l),{},{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))})))}}])&&f(t.prototype,r),i&&f(t,i),l}(n.PureComponent);_.displayName="Hint",_.ORIENTATION=v,_.ALIGN=y;const S=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(396),i=r(2057),o=r(2267);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 l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(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"===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)}}
41function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(d,e);var t,r,i,a=u(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),a.apply(this,arguments)}return t=d,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),d}(i.default);p.displayName="HorizontalBarSeries";const f=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(396),i=r(787),o=r.n(i),a=r(2068),s=r(2164),c=r(2166),l=r(2057);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 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 p(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){f(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 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 m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===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 v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(d,e);var t,r,i,u=y(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),u.apply(this,arguments)}return t=d,i=[{key:"propTypes",get:function(){return p(p({},l.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,l=t.linePosAttr,u=t.lineSizeAttr,m=t.marginLeft,g=t.marginTop,y=t.style,v=t.valuePosAttr,b=t.valueSizeAttr,_=t.barWidth;if(!o)return null;if(r)return n.default.createElement(a.default,h({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(d,h({},this.props,{animation:null})));var S=(0,s.getStackParams)(this.props),E=S.sameTypeTotal,w=S.sameTypeIndex,T=this._getScaleDistance(l),x=this._getAttributeFunctor(l),O=this._getAttributeFunctor(v),A=this._getAttr0Functor(v),R=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),P=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),I=this._getAttributeFunctor("op
41acity"),C=T/2*_;return n.default.createElement("g",{className:(0,c.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--bar",i),transform:"translate(".concat(m,",").concat(g,")")},o.map(function(t,r){var i,o=2*C,a=x(t),s=o/E-(E-1)/E,c=a-C+s*w+w,d=(f(i={style:p({opacity:I&&I(t),stroke:P&&P(t),fill:R&&R(t)},y)},l,c),f(i,u,s),f(i,v,Math.min(A(t),O(t))),f(i,b,Math.abs(-A(t)+O(t))),f(i,"onClick",function(r){return e._valueClickHandler(t,r)}),f(i,"onContextMenu",function(r){return e._valueRightClickHandler(t,r)}),f(i,"onMouseOver",function(r){return e._valueMouseOverHandler(t,r)}),f(i,"onMouseOut",function(r){return e._valueMouseOutHandler(t,r)}),i);return n.default.createElement("rect",h({key:"".concat(r)},d))}))}}])&&m(t.prototype,r),i&&m(t,i),d}(l.default);b.displayName="BarSeries";const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(2057),i=r(2269);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 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 u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(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=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var 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)}(a,e);var t,r,n,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,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}}])&&l(t.prototype,r),n&&l(t,n),a}(n.default);f.displayName="HorizontalBarSeriesCanvas",f.propTypes=s({},n.default.propTypes);const h=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r(787),i=r.n(n),o=r(2070),a=r(2165),s=r(2098),c=r(2164),l=r(2057);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 d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%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 m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===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 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)}(l,e);var t,r,n,i=g(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.apply(this,arguments)}return t=l,n=[{key:"renderLayer",value:function(e,t){var r=e.data,n=e.linePosAttr,i=e.lineSizeAttr,l=e.valuePosAttr,u=e.marginTop,d=e.marginBottom;if(r&&0!==r.length){var p=function(e,t){var r=(0,s.getScaleObjectFromProps)(e,t);return r?r.distance:0}(e,n),f=(0,s.getAttributeFunctor)(e,n),h=(0,s.getAttributeFunctor)(e,l),m=(0,s.getAttr0Functor)(e,l),g=(0,s.getAttributeFunctor)(e,"fill")||(0,s.getAttributeFunctor)(e,"color"),y=(0,s.getAttributeFunctor)(e,"stroke")||(0,s.getAttributeFunctor)(e,"color"),v=(0,s.getAttributeFunctor)(e,"opacity"),b=p/2*.85,_=2*b,S=(0,c.getStackParams)(e),E=S.sameTypeTotal,w=S.sameTypeIndex;r.forEach(function(e){var r=f(e)-b,n=_/E-(E-1)/E,s=(0,o.rgb)(g(e)),c=(0,o.rgb)(y(e)),p=v(e)||a.DEFAULT_OPACITY,S=r+n*w+w,T=Math.min(m(e),h(e)),x="x"===l?T:S,O="y"===l?T:S,A=Math.abs(-m(e)+h(e)),R="height"===i?n:A,P="width"===i?n:A;t.beginPath(),t.rect(x+d,O+u,P,R),t.fillStyle="rgba(".concat(s.r,", ").concat(s.g,", ").concat(s.b,", ").concat(p,")"),t.fill(),t.strokeStyle="rgba(".concat(c.r,", ").concat(c.g,", ").concat(c.b,", ").concat(p,")"),t.stroke()})}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&h(t.prototype,r),n&&h(t,n),l}(l.default);v.displayName="BarSeriesCanvas",v.defaultProps=d(d({},l.default.defaultProps),{},{linePosAttr:i().string.isRequired,valuePosAttr:i().string.isRequired,lineSizeAttr:i().string.isRequired,valueSizeAttr:i().string.isRequired}),v.propTypes=d({},l.default.propTypes);const b=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(396),i=r(787),o=r.n(i),a=r(2227),s=r(2259);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEac
41h(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 d=a.DIRECTION.HORIZONTAL,p=l(l({},s.default.propTypes),{},{direction:o().oneOf([d])}),f={direction:d,attr:"y"};function h(e){return n.default.createElement(s.default,e)}h.displayName="HorizontalGridLines",h.propTypes=p,h.defaultProps=f,h.requiresSVG=!0;const m=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(396),i=r(2057),o=r(2272);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 l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(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"===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 d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(d,e);var t,r,i,a=u(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),a.apply(this,arguments)}return t=d,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),d}(i.default);p.displayName="HorizontalRectSeries";const f=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(396),i=r(787),o=r.n(i),a=r(2068),s=r(2164),c=r(2166),l=r(2057);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 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 p(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){f(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 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 m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===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 v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(d,e);var t,r,i,u=y(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),u.apply(this,arguments)}return t=d,i=[{key:"propTypes",get:function(){return p(p({}
41,l.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,l=t.linePosAttr,u=t.lineSizeAttr,m=t.marginLeft,g=t.marginTop,y=t.style,v=t.valuePosAttr,b=t.valueSizeAttr;if(!o)return null;if(r)return n.default.createElement(a.default,h({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(d,h({},this.props,{animation:null})));var _=this._getAttributeFunctor(l),S=this._getAttr0Functor(l),E=this._getAttributeFunctor(v),w=this._getAttr0Functor(v),T=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),x=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),O=this._getAttributeFunctor("opacity");return n.default.createElement("g",{className:(0,c.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--rect",i),transform:"translate(".concat(m,",").concat(g,")")},o.map(function(t,r){var i,o=(f(i={style:p({opacity:O&&O(t),stroke:x&&x(t),fill:T&&T(t)},y)},l,S(t)),f(i,u,Math.abs(_(t)-S(t))),f(i,v,Math.min(w(t),E(t))),f(i,b,Math.abs(-w(t)+E(t))),f(i,"onClick",function(r){return e._valueClickHandler(t,r)}),f(i,"onContextMenu",function(r){return e._valueRightClickHandler(t,r)}),f(i,"onMouseOver",function(r){return e._valueMouseOverHandler(t,r)}),f(i,"onMouseOut",function(r){return e._valueMouseOutHandler(t,r)}),i);return n.default.createElement("rect",h({key:String(r)},o))}))}}])&&m(t.prototype,r),i&&m(t,i),d}(l.default);b.displayName="RectSeries";const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(2057),i=r(2274);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 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 u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(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=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var 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)}(a,e);var t,r,n,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,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}}])&&l(t.prototype,r),n&&l(t,n),a}(n.default);f.displayName="HorizontalRectSeriesCanvas",f.propTypes=s({}
41,n.default.propTypes);const h=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(787),i=r.n(n),o=r(2070),a=r(2165),s=r(2098),c=r(2057);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 u(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){d(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 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 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 m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,r,n,i=m(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.apply(this,arguments)}return t=c,n=[{key:"renderLayer",value:function(e,t){var r=e.data,n=e.linePosAttr,i=e.lineSizeAttr,c=e.marginLeft,l=e.marginTop,u=e.valuePosAttr;if(r&&0!==r.length){var d=(0,s.getAttributeFunctor)(e,n),p=(0,s.getAttr0Functor)(e,n),f=(0,s.getAttributeFunctor)(e,u),h=(0,s.getAttr0Functor)(e,u),m=(0,s.getAttributeFunctor)(e,"fill")||(0,s.getAttributeFunctor)(e,"color"),g=(0,s.getAttributeFunctor)(e,"stroke")||(0,s.getAttributeFunctor)(e,"color"),y=(0,s.getAttributeFunctor)(e,"opacity");r.forEach(function(e){var r=(0,o.rgb)(m(e)),n=(0,o.rgb)(g(e)),s=y(e)||a.DEFAULT_OPACITY,v=p(e),b=Math.min(h(e),f(e)),_="x"===u?b:v,S="y"===u?b:v,E=Math.abs(d(e)-p(e)),w=Math.abs(-h(e)+f(e)),T="height"===i?E:w,x="width"===i?E:w;t.beginPath(),t.rect(_+c,S+l,x,T),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}}])&&f(t.prototype,r),n&&f(t,n),c}(c.default);y.displayName="RectSeriesCanvas",y.defaultProps=u(u({},c.default.defaultProps),{},{linePosAttr:i().string.isRequired,valuePosAttr:i().string.isRequired,lineSizeAttr:i().string.isRequired,valueSizeAttr:i().string.isRequired}),y.propTypes=u({},c.default.propTypes);const v=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E});var n=r(396),i=r(787),o=r.n(i),a=r(2057),s=r(2068),c=r(2164),l=r(2166);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 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 p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%2?d(Object(r),!0).forEach(function(t){f(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 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 m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===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 v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=function(e,t){return e||(t?"start":"end")},_=function(e,t){return e||(t?"text-before-edge":"text-after-edge")},S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(a,e);var t,r,i,o=y(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.allowOffsetToBeReversed,o=t.className,u=t.data,d=t._data,f=t.getLabel,m=t.marginLeft,g=t.marginTop,y=t.rotation,v=t.style,S=t.xRange,E=t.yRange,w=t.labelAnchorX,T=t.labelAnchorY;if(!u)return null;if(r)return n.default.createElement(s.default,h({},this.props,{animatedProps:c.ANIMATED_SERIES_PROPS}),n.default.createElement(a,h({},this.props,{animation:null,_data:u})));var x=this._getAttributeFunctor("x"),O=this._getAttributeFunctor("y");return n.default.createElement("g",{className:(0,l.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--label",o),transform:"translate(".concat(m,",").concat(g,")"),style:v},u.reduce(function(t,r,o){var a=r.style,s=r.xOffset,c=r.yOffset;if(!f(r))return t;var l=x(r),u=O(r),m=l<(S[1]-S[0])/2,g=u<Math.abs(E[1]-E[0])/2,v=l+(i&&m?-1:1)*(s||0),A=u+(i&&g?-1:1)*(c||0),R=0===r.rotation||r.rotation?r.rotation:y,P=p({dominantBaseline:_(T,g),className:"rv-xy-plot__series--label-text",onClick:function(t){return e._valueClickHandler(r,t)},onContextMenu:function(t){return e._valueRightClickHandler(r,t)},onMouseOver:function(t){return e._valueMouseOverHandler(r,t)},onMouseOut:function(t){return e._valueMouseOutHandler(r,t)},textAnchor:b(w,m),x:v,y:A,transform:"rotate(".concat(R,",").concat(v,",").concat(A,")")},a),I=f(d?d[o]:r);return t.concat([n.default.createElement("text",h({key:String(o)},P),I)])},[]))}}])&&m(t.prototype,r),i&&m(t,i),a}(a.default);S.propTypes={animation:o().bool,allowOffsetToBeReversed:o().bool,className:o().string,data:o().arrayOf(o().shape({x:o().oneOfType([o().number,o().string]),y:o().oneOfType([o().number,o().string]),angle:o().number,radius:o().number,label:o().string,xOffset:o().number,yOffset:o().number,style:o().object})).isRequired,marginLeft:o().number,marginTop:o().number,rotation:o().number,style:o().object,xRange:o().arrayOf(o().number),yRange:o().arrayOf(o().number),labelAnchorX:o().string,labelAnchorY:o().string},S.defaultProps=p(p({},a.default.defaultProps),{},{animation:!1,rotation:0,getLabel:function(e){return e.label}}),S.displayName="LabelSeries";const E=S},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(396),i=r(787),o=r.n(i),a=r(2057),s=r(2277),c=r(2278);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 u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
41for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.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 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"===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 h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=g(g({},s.default.propTypes),{},{lineStyle:o().object,markStyle:o().object}),b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(a,e);var t,r,i,o=f(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,i=[{key:"defaultProps",get:function(){return g(g({},s.default.defaultProps),{},{lineStyle:{},markStyle:{}})}}],(r=[{key:"render",value:function(){var e=this.props,t=e.lineStyle,r=e.markStyle,i=e.style;return n.default.createElement("g",{className:"rv-xy-plot__series rv-xy-plot__series--linemark"},n.default.createElement(s.default,u({},this.props,{style:g(g({},i),t)})),n.default.createElement(c.default,u({},this.props,{style:g(g({},i),r)})))}}])&&d(t.prototype,r),i&&d(t,i),a}(a.default);b.displayName="LineMarkSeries",b.propTypes=v;const _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(396),i=r(787),o=r.n(i),a=r(2168),s=r(2172),c=r(2068),l=r(2165),u=r(2164),d=r(2156),p=r(2166),f=r(2057);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var i=E(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}
41function 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},T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(f,e);var t,r,i,o=S(f);function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),o.apply(this,arguments)}return t=f,(r=[{key:"_renderLine",value:function(e,t,r,n,i){var o=s.default();return null!==n&&("string"==typeof n&&a[n]?o=o.curve(a[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,d.warning)("nullAccessor has been renamed to getNull",!0),!i)return null;if(t)return n.default.createElement(c.default,v({},this.props,{animatedProps:u.ANIMATED_SERIES_PROPS}),n.default.createElement(f,v({},this.props,{animation:null})));var o=this.props,a=o.curve,s=o.marginLeft,h=o.marginTop,m=o.strokeDasharray,y=o.strokeStyle,b=o.strokeWidth,_=o.style,S=this._getAttributeFunctor("x"),E=this._getAttributeFunctor("y"),T=this._getAttributeValue("stroke")||this._getAttributeValue("color"),x=this._getAttributeValue("opacity"),O=Number.isFinite(x)?x:l.DEFAULT_OPACITY,A=this.props.nullAccessor||this.props.getNull,R=this._renderLine(i,S,E,a,A);return n.default.createElement("path",{d:R,className:(0,p.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--line",r),transform:"translate(".concat(s,",").concat(h,")"),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,style:g({opacity:O,strokeDasharray:w[y]||m,strokeWidth:b,stroke:T},_)})}}])&&b(t.prototype,r),i&&b(t,i),f}(f.default);T.displayName="LineSeries",T.propTypes=g(g({},f.default.propTypes),{},{strokeStyle:o().oneOf(Object.keys(w)),curve:o().oneOfType([o().string,o().func]),getNull:o().func}),T.defaultProps=g(g({},f.default.defaultProps),{},{strokeStyle:"solid",style:{},opacity:1,curve:null,className:"",getNull:function(){return!0}});const x=T},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E});var n=r(396),i=r(787),o=r.n(i),a=r(2068),s=r(2164),c=r(2156),l=r(2166),u=r(2165),d=r(2057);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){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var i=_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(d,e);var t,r,i,o=b(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),o.apply(this,arguments)}return t=d,(r=[{key:"_renderCircle",value:function(e,t,r,i,o){var a=this,s=o.fill,c=o.opacity,l=o.size,d=o.stroke,p=o.x,f=o.y,h={r:l?l(e):u.DEFAULT_SIZE,cx:p(e),cy:f(e),style:m({opacity:c?c(e):u.DEFAULT_OPACITY,stroke:d&&d(e),fill:s&&s(e),strokeWidth:r||1},i),key:t,onClick:function(t){return a._valueClickHandler(e,t)},onContextMenu:function(t){return a._valueRightClickHandler(e,t)},onMouseOver:function(t){return a._valueMouseOverHandler(e,t)},onMouseOut:function(t){return a._valueMouseOutHandler(e,t)}};return n.default.createElement("circle",h)}},{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.className,o=t.data,u=t.marginLeft,p=t.marginTop,h=t.strokeWidth,m=t.style;this.props.nullAccessor&&(0,c.warning)("nullAccessor has been renamed to getNull",!0);var g=this.props.nullAccessor||this.props.getNull;if(!o)return null;if(r)return n.default.createElement(a.default,f({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(d,f({},this.props,{animation:null})));var y={fill:this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),opacity:this._getAttributeFunctor("op
41acity"),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,l.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--mark",i),transform:"translate(".concat(u,",").concat(p,")")},o.map(function(t,r){return g(t)&&e._renderCircle(t,r,h,m,y)}))}}])&&y(t.prototype,r),i&&y(t,i),d}(d.default);S.displayName="MarkSeries",S.propTypes=m(m({},d.default.propTypes),{},{getNull:o().func,strokeWidth:o().number}),S.defaultProps={getNull:function(){return!0}};const E=S},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(2057),i=r(2280),o=r(2281);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 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 u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(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=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var 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,n,a=d(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}}])&&l(t.prototype,r),n&&l(t,n),s}(n.default);f.displayName="LineMarkSeriesCanvas",f.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},n.default.propTypes);const h=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(2070),i=r(2165),o=r(2098),a=r(2057);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 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 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)}}
41function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(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"===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 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&&d(e,t)}(c,e);var t,r,a,s=p(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.apply(this,arguments)}return t=c,a=[{key:"renderLayer",value:function(e,t){var r=e.data,a=e.marginLeft,s=e.marginTop,c=(0,o.getAttributeFunctor)(e,"x"),l=(0,o.getAttributeFunctor)(e,"y"),u=(0,o.getAttributeFunctor)(e,"size")||function(){return i.DEFAULT_SIZE},d=(0,o.getAttributeFunctor)(e,"fill")||(0,o.getAttributeFunctor)(e,"color"),p=(0,o.getAttributeFunctor)(e,"stroke")||(0,o.getAttributeFunctor)(e,"color"),f=(0,o.getAttributeFunctor)(e,"opacity");r.forEach(function(e){var r=(0,n.rgb)(d(e)),o=(0,n.rgb)(p(e)),h=f(e)||i.DEFAULT_OPACITY;t.beginPath(),t.arc(c(e)+a,l(e)+s,u(e),0,2*Math.PI),t.fillStyle="rgba(".concat(r.r,", ").concat(r.g,", ").concat(r.b,", ").concat(h,")"),t.fill(),t.strokeStyle="rgba(".concat(o.r,", ").concat(o.g,", ").concat(o.b,", ").concat(h,")"),t.stroke()})}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&u(t.prototype,r),a&&u(t,a),c}(a.default);h.displayName="MarkSeriesCanvas",h.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},a.default.propTypes);const m=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(787),i=r.n(n),o=r(2070),a=r(2168),s=r(2172),c=r(396),l=r(2165),u=r(2098),d=r(2057);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 m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(d,e);var t,r,n,i=v(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),i.apply(this,arguments)}return t=d,n=[{key:"renderLayer",value:function(e,t){var r=e.curve,
41n=e.data,i=e.marginLeft,c=e.marginTop,d=e.strokeWidth,p=e.strokeDasharray;if(n&&0!==n.length){var f=(0,u.getAttributeFunctor)(e,"x"),h=(0,u.getAttributeFunctor)(e,"y"),m=(0,u.getAttributeValue)(e,"stroke")||(0,u.getAttributeValue)(e,"color"),g=(0,o.rgb)(m),y=(0,u.getAttributeValue)(e,"opacity"),v=Number.isFinite(y)?y:l.DEFAULT_OPACITY,b=s.default().x(function(e){return f(e)+i}).y(function(e){return h(e)+c});"string"==typeof r&&a[r]?b=b.curve(a[r]):"function"==typeof r&&(b=b.curve(r)),t.beginPath(),t.strokeStyle="rgba(".concat(g.r,", ").concat(g.g,", ").concat(g.b,", ").concat(v,")"),t.lineWidth=d,p&&t.setLineDash(p),b.context(t)(n),t.stroke(),t.closePath(),t.lineWidth=1,t.setLineDash([])}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return c.default.createElement("div",null)}}])&&g(t.prototype,r),n&&g(t,n),d}(d.default);_.displayName="LineSeriesCanvas",_.defaultProps=f(f({},d.default.defaultProps),{},{strokeWidth:2}),_.propTypes=f(f({},d.default.propTypes),{},{strokeWidth:i().number});const S=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(396),i=r(2068),o=r(2164),a=r(2166),s=r(2057);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function 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 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 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=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var g=function(e,t,r){return"".concat(e.reduce(function(e,n,i){return"".concat(e," ").concat(i?"L":"M").concat(t(n)," ").concat(r(n))},"")," Z")},y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(y,e);var t,r,c,m=h(y);function y(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),m.apply(this,arguments)}return t=y,c=[{key:"propTypes",get:function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){u(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}({},s.default.propTypes)}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,s=t.color,c=t.className,l=t.data,u=t.marginLeft,p=t.marginTop,f=t.style;if(!l)return null;if(r)return n.default.createElement(i.default,d({},this.props,{animatedProps:o.ANIMATED_SERIES_PROPS}),n.default.createElement(y,d({},this.props,{animation:null})));var h=this._getAttributeFunctor("x"),m=this._getAttributeFunctor("y");return n.default.createElement("path",{className:(0,a.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--polygon",c),onMouseOver:function(t){return e._seriesMouseOverHandler(l,t)},onMouseOut:function(t){return e._seriesMouseOutHandler(l,t)},onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,fill:s||"#12939A",style:f,d:g(l,h,m),transform:"translate(".concat(u,",").concat(p,")")})}}])&&p(t.prototype,r),c&&p(t,c),y}(s.default);y.displayName="PolygonSeries";const v=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(396),i=r(2057),o=r(2267);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];
41for(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 l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(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"===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 d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(d,e);var t,r,i,a=u(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),a.apply(this,arguments)}return t=d,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),d}(i.default);p.displayName="VerticalBarSeries";const f=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(2057),i=r(2269);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 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 u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(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=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var 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)}(a,e);var t,r,n,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,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}}])&&l(t.prototype,r),n&&l(t,n),a}(n.default);f.displayName="HorizontalBarSeriesCanvas",f.propTypes=s({}
41,n.default.propTypes);const h=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(396),i=r(787),o=r.n(i),a=r(2259);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){l(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 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 u=r(2227).DIRECTION.VERTICAL,d=c(c({},a.default.propTypes),{},{direction:o().oneOf([u])}),p={direction:u,attr:"x"};function f(e){return n.default.createElement(a.default,e)}f.displayName="VerticalGridLines",f.propTypes=d,f.defaultProps=p,f.requiresSVG=!0;const h=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(396),i=r(2057),o=r(2272);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 l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(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"===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 d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(d,e);var t,r,i,a=u(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),a.apply(this,arguments)}return t=d,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),d}(i.default);p.displayName="VerticalRectSeries";const f=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(2057),i=r(2274);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)).forEac
41h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,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 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=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var 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)}(a,e);var t,r,n,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,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}}])&&l(t.prototype,r),n&&l(t,n),a}(n.default);f.displayName="HorizontalRectSeriesCanvas",f.propTypes=s({},n.default.propTypes);const h=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(396),i=r(787),o=r.n(i),a=r(2058),s=r(2098),c=r(2166);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 u(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){d(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 d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=function(e){return e};function f(e){var t,r,i,o,l,d=e.className,p=e.extent,f=e.nodes,h=e.onBlur,m=e.onClick,g=e.onMouseUp,y=e.onMouseDown,v=e.onHover,b=e.polygonStyle,_=e.style,S=e.x,E=e.y,w=(0,a.voronoi)().x(S||(0,s.getAttributeFunctor)(e,"x")).y(E||(0,s.getAttributeFunctor)(e,"y")).extent(p||(r=(t=e).innerWidth,i=t.innerHeight,o=t.marginLeft,l=t.marginTop,[[o,l],[r+o,i+l]])).polygons(f),T=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)(d,"rv-voronoi"),style:_,onTouchEnd:T(g),onTouchStart:T(y),onTouchMove:T(v),onTouchCancel:T(h)},w.map(function(e,t){return n.default.createElement("path",{className:"rv-voronoi__cell ".concat(e.data&&e.data.className||""),d:"M".concat(e.join("L"),"Z"),onClick:function(){return m(e.data)},onMouseUp:function(){return g(e.data)},onMouseDown:function(){return y(e.data)},onMouseOver:function(){return v(e.data)},onMouseOut:function(){return h(e.data)},fill:"none",style:u(u({pointerEvents:"all"},b),e.data&&e.data.style),key:t})}))}
41f.requiresSVG=!0,f.displayName="Voronoi",f.defaultProps={className:"",onBlur:p,onClick:p,onHover:p,onMouseDown:p,onMouseUp:p},f.propTypes={className:o().string,extent:o().arrayOf(o().arrayOf(o().number)),nodes:o().arrayOf(o().object).isRequired,onBlur:o().func,onClick:o().func,onHover:o().func,onMouseDown:o().func,onMouseUp:o().func,x:o().func,y:o().func};const h=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(396),i=r(787),o=r.n(i),a=r(2068),s=r(2164),c=r(2166),l=r(2165),u=r(2057);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 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 m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===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 g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,r,i,o=m(u);function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),o.apply(this,arguments)}return t=u,(r=[{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,i=e.crossBarWidth,o=e.data,d=e.marginLeft,f=e.marginTop,h=e.strokeWidth,m=e.style;if(!o)return null;if(t)return n.default.createElement(a.default,p({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(u,p({},this.props,{animation:null})));var g={crossBarWidth:i,opacityFunctor:this._getAttributeFunctor("opacity"),sizeFunctor:this._getAttributeFunctor("size"),strokeFunctor:this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),strokeWidth:h,style:m,xFunctor:this._getAttributeFunctor("x"),yFunctor:this._getAttributeFunctor("y"),valueClickHandler:this._valueClickHandler,valueRightClickHandler:this._valueRightClickHandler,valueMouseOverHandler:this._valueMouseOverHandler,valueMouseOutHandler:this._valueMouseOutHandler};return n.default.createElement("g",{className:(0,c.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--whisker",r),transform:"translate(".concat(d,",").concat(f,")")},o.map(function(e){return function(t,r){var i=e.crossBarWidth,o=e.opacityFunctor,a=e.sizeFunctor,s=e.strokeFunctor,c=e.strokeWidth,u=e.style,d=e.valueClickHandler,p=e.valueMouseOutHandler,f=e.valueMouseOverHandler,h=e.valueRightClickHandler,m=e.xFunctor,g=e.yFunctor,y=a?a(t):0,b=m(t),_=g(t),S=m({x:t.x+t.xVariance/2}),E=m({x:t.x-t.xVariance/2}),w=g({y:t.y+t.yVariance/2}),T=g({y:t.y-t.yVariance/2}),x=S&&b+y<S,O=w&&_-y>w;if(!x&&!O)return null;var A=v({opacity:o?o(t):l.DEFAULT_OPACITY,stroke:s&&s(t),strokeWidth:c||1},u),R=i/2,P={x1:b+y,y1:_,x2:S,y2:_,style:A},I={x1:b-y,y1:_,x2:E,y2:_,style:A},C={x1:S,y1:_-R,x2:S,y2:_+R,style:A},k={x1:E,y1:_-R,x2:E,y2:_+R,style:A},M={x1:b,y1:_-y,x2:b,y2:w,style:A},D={x1:b,y1:_+y,x2:b,y2:T,style:A},N={x1:b-R,y1:w,x2:b+R,y2:w,style:A},L={x1:b-R,y1:T,x2:b+R,y2:T,style:A};return n.default.createElement("g",{className:"mark-whiskers",key:r,onClick:function(e){return d(t,e)},onContextMenu:function(e){return h(t,e)},onMouseOver:function(e){return f(t,e)},onMouseOut:function(e){return p(t,e)}},x?n.default.createElement("g",{className:"x-whiskers"},n.default.createElement("line",P),n.default.createElement("line",I),n.default.createElement("line",C),n.default.createElement("line",k)):null,O?n.default.createElement("g",{className:"y-whiskers"},n.default.createElement("line",M),n.default.createElement("line",D),n.default.createElement("line",N),n.default.createElement("line",L)):null)}}(g)))}}])&&f(t.prototype,r),i&&f(t,i),u}(u.default);_.displayName="WhiskerSeries",_.propTypes=v(v({}
41,u.default.propTypes),{},{strokeWidth:o().number}),_.defaultProps=v(v({},u.default.defaultProps),{},{crossBarWidth:6,size:0,strokeWidth:1});const S=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>I});var n=r(396),i=r(787),o=r.n(i),a=r(2291),s=r.n(a),c=r(2166),l=r(2098),u=r(2164),d=r(2350),p=r(2068),f=r(2165),h=r(2351);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),e}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var i=w(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;return E(e)}(this,r)}}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function T(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?T(Object(r),!0).forEach(function(t){O(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(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 A=["x","y","radius","angle","color","fill","stroke","opacity","size"];function R(e){return e.map(function(e){return Array.isArray(e)?e.map(function(e){return x(x({},e),{},{parent:null})}):e})}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(r,e);var t=S(r);function r(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),O(E(n=t.call(this,e)),"_clickHandler",function(e){var t=n.props.onClick;t&&t(e)}),O(E(n),"_doubleClickHandler",function(e){var t=n.props.onDoubleClick;t&&t(e)}),O(E(n),"_mouseDownHandler",function(e){var t=n.props,r=t.onMouseDown,i=t.children;r&&r(e),(0,u.getSeriesChildren)(i).forEach(function(t,r){var i=n["series".concat(r)];i&&i.onParentMouseDown&&i.onParentMouseDown(e)})}),O(E(n),"_mouseEnterHandler",function(e){var t=n.props,r=t.onMouseEnter,i=t.children;
41r&&r(e),(0,u.getSeriesChildren)(i).forEach(function(t,r){var i=n["series".concat(r)];i&&i.onParentMouseEnter&&i.onParentMouseEnter(e)})}),O(E(n),"_mouseLeaveHandler",function(e){var t=n.props,r=t.onMouseLeave,i=t.children;r&&r(e),(0,u.getSeriesChildren)(i).forEach(function(t,r){var i=n["series".concat(r)];i&&i.onParentMouseLeave&&i.onParentMouseLeave(e)})}),O(E(n),"_mouseMoveHandler",function(e){var t=n.props,r=t.onMouseMove,i=t.children;r&&r(e),(0,u.getSeriesChildren)(i).forEach(function(t,r){var i=n["series".concat(r)];i&&i.onParentMouseMove&&i.onParentMouseMove(e)})}),O(E(n),"_mouseUpHandler",function(e){var t=n.props,r=t.onMouseUp,i=t.children;r&&r(e),(0,u.getSeriesChildren)(i).forEach(function(t,r){var i=n["series".concat(r)];i&&i.onParentMouseUp&&i.onParentMouseUp(e)})}),O(E(n),"_touchCancelHandler",function(e){var t=n.props.onTouchCancel;t&&t(e)}),O(E(n),"_touchEndHandler",function(e){var t=n.props.onTouchEnd;t&&t(e)}),O(E(n),"_touchMoveHandler",function(e){var t=n.props,r=t.onTouchMove,i=t.children;r&&r(e),(0,u.getSeriesChildren)(i).forEach(function(t,r){var i=n["series".concat(r)];i&&i.onParentTouchMove&&i.onParentTouchMove(e)})}),O(E(n),"_touchStartHandler",function(e){var t=n.props,r=t.onTouchStart,i=t.children;r&&r(e),(0,u.getSeriesChildren)(i).forEach(function(t,r){var i=n["series".concat(r)];i&&i.onParentTouchStart&&i.onParentTouchStart(e)})});var i=e.stackBy,o=(0,u.getSeriesChildren)(e.children),a=(0,u.getStackedData)(o,i);return n.state={scaleMixins:n._getScaleMixins(a,e),data:a},n}return b(r,null,[{key:"defaultProps",get:function(){return{className:""}}},{key:"propTypes",get:function(){return{animation:p.AnimationPropType,className:o().string,dontCheckIfEmpty:o().bool,height:o().number.isRequired,margin:d.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(A),style:o().object,width:o().number.isRequired}}}]),b(r,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=(0,u.getSeriesChildren)(e.children),r=(0,u.getStackedData)(t,e.stackBy),n=this.state.scaleMixins,i=this._getScaleMixins(r,e);(function(e,t,r){var n=x(x({},e),{},{_allData:r?R(e._allData):e._allData}),i=x(x({},t),{},{_allData:r?R(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,d.getInnerDimensions)(this.props,d.DEFAULT_MARGINS),c=n.default.Children.toArray(this.props.children),p=(0,u.getSeriesPropsFromChildren)(c),f=(0,l.getXYPlotValues)(t,c);return c.map(function(t,i){var c=null;if(p[i]){var l=p[i].seriesIndex;c={data:a[l]}}return n.default.cloneElement(t,x(x(x(x(x(x(x({},s),{},{animation:r},c&&t.type.prototype&&t.type.prototype.render?{ref:function(t){return e["series".concat(p[i].seriesIndex)]=t}}:{}),p[i]),o),t.props),f[i]),c))})}},{key:"_getDefaultScaleProps",value:function(e){var t=(0,d.getInnerDimensions)(e,d.DEFAULT_MARGINS),r=t.innerWidth,n=t.innerHeight,i=["color","fill","stroke"].reduce(function(t,r){var n="category"===e["".concat(r,"Type")]?f.EXTENDED_DISCRETE_COLOR_RANGE:f.CONTINUOUS_COLOR_RANGE;return x(x({},t),{},O({},"".concat(r,"Range"),n))},{});return x(x({xRange:[0,r],yRange:[n,0]},i),{},{opacityType:f.OPACITY_TYPE,sizeRange:f.SIZE_RANGE})}}
41,{key:"_getScaleMixins",value:function(e,t){var r,n=e.filter(function(e){return e}),i=(r=[]).concat.apply(r,g(n)),o=this._getDefaultScaleProps(t),a=(0,l.getOptionalScaleProps)(t),s=(0,l.extractScalePropsFromProps)(t,A),c=(0,l.getMissingScaleProps)(x(x(x({},o),a),s),i,A),d=(0,u.getSeriesChildren)(t.children),p={},f=new Set,h=new Set;return d.forEach(function(r,n){r&&e[n]&&A.forEach(function(e){var i=r.type.getParentConfig(e,r.props),o=i.isDomainAdjustmentNeeded,a=i.zeroBaseValue;if(o&&(f.add(e),h.add(n)),a){var s=t["".concat(e,"Domain")];p["".concat(e,"BaseValue")]=s?s[0]:0}})}),x(x(x(x(x({},o),p),s),c),{},{_allData:e,_adjustBy:Array.from(f),_adjustWhat:Array.from(h),_stackBy:t.stackBy})}},{key:"_isPlotEmpty",value:function(){var e=this.state.data;return!e||!e.length||!e.some(function(e){return e&&e.some(function(e){return e})})}},{key:"renderCanvasComponents",value:function(e){var t=e.filter(function(e){return e&&!e.type.requiresSVG&&e.type.isCanvas});if(0===t.length)return null;var r=t[0].props,i=r.marginLeft,o=r.marginTop,a=r.marginBottom,s=r.marginRight,c=r.innerHeight,l=r.innerWidth;return n.default.createElement(h.default,{innerHeight:c,innerWidth:l,marginLeft:i,marginTop:o,marginBottom:a,marginRight:s},t)}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.dontCheckIfEmpty,i=e.style,o=e.width,a=e.height,s=e.onWheel;if(!r&&this._isPlotEmpty())return n.default.createElement("div",{className:(0,c.getCombinedClassName)("rv-xy-plot",t),style:x({width:"".concat(o,"px"),height:"".concat(a,"px")},this.props.style)});var l=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},l.filter(function(e){return e&&e.type.requiresSVG})),this.renderCanvasComponents(l),l.filter(function(e){return e&&!e.type.requiresSVG&&!e.type.isCanvas}))}}]),r}(n.default.Component);P.displayName="XYPlot";const I=P},(e,t,r)=>{var n=r(2292),i=r(2295),o=r(2332),a=r(2342),s=r(2343),c=r(2349),l=Date.prototype.getTime;function u(e,t,r){var f=r||{};return!!(f.strict?o(e,t):e===t)||(!e||!t||"object"!=typeof e&&"object"!=typeof t?f.strict?o(e,t):e==t:function(e,t,r){var o,f;if(typeof e!=typeof t)return!1;if(d(e)||d(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e)!==i(t))return!1;var h=a(e),m=a(t);if(h!==m)return!1;if(h||m)return e.source===t.source&&s(e)===s(t);if(c(e)&&c(t))return l.call(e)===l.call(t);var g=p(e),y=p(t);if(g!==y)return!1;if(g||y){if(e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}if(typeof e!=typeof t)return!1;try{var v=n(e),b=n(t)}catch(e){return!1}if(v.length!==b.length)return!1;for(v.sort(),b.sort(),o=v.length-1;o>=0;o--)if(v[o]!=b[o])return!1;for(o=v.length-1;o>=0;o--)if(!u(e[f=v[o]],t[f],r))return!1;return!0}(e,t,f))}function d(e){return null==e}function p(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}e.exports=u},(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(2293),o=Object.keys,a=o?function(e){return o(e)}:r(2294),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(2293),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),l=s.call(function(){}
vendor: 4,914 bytes, line 41
41,"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),p=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var h=l&&r;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)p.push(String(m));if(n&&e.length>0)for(var g=0;g<e.length;++g)p.push(String(g));else for(var y in e)h&&"prototype"===y||!i.call(e,y)||p.push(String(y));if(c)for(var v=function(e){if("undefined"==typeof window||!f)return d(e);try{return d(e)}catch(e){return!1}}(e),b=0;b<u.length;++b)v&&"constructor"===u[b]||!i.call(e,u[b])||p.push(u[b]);return p}}e.exports=n},(e,t,r)=>{"use strict";var n=r(2296)(),i=r(2298)("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&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in 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(2297);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(var n 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 i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},(e,t,r)=>{"use strict";var n=r(2299),i=r(2324),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(2300),o=r(2301),a=r(2302),s=r(2303),c=r(2304),l=r(2305),u=r(2306),d=r(2307),p=r(2308),f=r(2309),h=r(2310),m=r(2311),g=r(2312),y=r(2313),v=r(2314),b=Function,_=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=r(2316),E=r(2318),w=function(){throw new u},T=S?function(){try{return w}catch(e){try{return S(arguments,"callee").get}catch(e){return w}}}():w,x=r(2319)(),O=r(2320),A=r(2322),R=r(2321),P=r(2329),I=r(2327),C={},k="undefined"!=typeof Uint8Array&&O?O(Uint8Array):n,M={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":x&&O?O([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":C,"%AsyncGenerator%":C,"%AsyncGeneratorFunction%":C,"%AsyncIteratorPrototype%":C,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":C,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
41IteratorPrototype%":x&&O?O(O([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&x&&O?O((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&x&&O?O((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":x&&O?O(""[Symbol.iterator]()):n,"%Symbol%":x?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":T,"%TypedArray%":k,"%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%":d,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":P,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":A,"%Math.abs%":p,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":v,"%Reflect.getPrototypeOf%":R};if(O)try{null.error}catch(e){var D=O(O(e));M["%Error.prototype%"]=D}var N=function e(t){var r;if("%AsyncFunction%"===t)r=_("async function () {}");else if("%GeneratorFunction%"===t)r=_("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=_("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&O&&(r=O(i.prototype))}return M[t]=r,r},L={__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"]},F=r(2325),B=r(2331),j=F.call(I,Array.prototype.concat),U=F.call(P,Array.prototype.splice),H=F.call(I,String.prototype.replace),z=F.call(I,String.prototype.slice),V=F.call(I,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$=/\\(\\)?/g,q=function(e,t){var r,n=e;if(B(L,n)&&(n="%"+(r=L[n])[0]+"%"),B(M,n)){var i=M[n];if(i===C&&(i=N(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 l("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===V(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=z(e,0,1),r=z(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return H(e,G,function(e,t,r,i){n[n.length]=r?H(i,$,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",i=q("%"+n+"%",t),o=i.name,a=i.value,s=!1,c=i.alias;c&&(n=c[0],U(r,j([0,1],c)));for(var d=1,p=!0;d<r.length;d+=1){var f=r[d],h=z(f,0,1),m=z(f,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new l("property names with quotes must have matching quotes");if("constructor"!==f&&p||(s=!0),B(M,o="%"+(n+="."+f)+"%"))a=M[o];
vendor: 4,129 bytes, line 41
41else if(null!=a){if(!(f in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(S&&d+1>=r.length){var g=S(a,f);a=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[f]}else p=B(a,f),a=a[f];p&&!s&&(M[o]=a)}}return a}},e=>{"use strict";e.exports=Object},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=>{"use strict";e.exports=Math.abs},e=>{"use strict";e.exports=Math.floor},e=>{"use strict";e.exports=Math.max},e=>{"use strict";e.exports=Math.min},e=>{"use strict";e.exports=Math.pow},e=>{"use strict";e.exports=Math.round},(e,t,r)=>{"use strict";var n=r(2315);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},(e,t,r)=>{"use strict";var n=r(2317);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(2297);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},(e,t,r)=>{"use strict";var n=r(2321),i=r(2322),o=r(2323);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},(e,t,r)=>{"use strict";var n=r(2300);e.exports=n.getPrototypeOf||null},(e,t,r)=>{"use strict";var n,i=r(2324),o=r(2316);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},(e,t,r)=>{"use strict";var n=r(2325),i=r(2306),o=r(2327),a=r(2328);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,o,e)}},(e,t,r)=>{"use strict";var n=r(2326);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=[],l=0;l<s;l++)c[l]="$"+l;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 u=function(){};u.prototype=i.prototype,o.prototype=new u,u.prototype=null}return o}},e=>{"use strict";e.exports=Function.prototype.call},(e,t,r)=>{"use strict";var n=r(2325),i=r(2329),o=r(2327),a=r(2330);e.exports=a||n.call(o,i)},e=>{"use strict";e.exports=Function.prototype.apply},e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(2325);e.exports=o.call(n,i)},(e,t,r)=>{"use strict";var n=r(2333),i=r(2336),o=r(2339),a=r(2340),s=r(2341),c=i(a(),Object);n(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},(e,t,r)=>{"use strict";var n=r(2292),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=r(2334),c=r(2335)(),l=function(e,t,r,n){if(t in e)if(!0===n){
vendor: 6,344 bytes, line 41
41if(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)},u=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)l(e,o[s],t[o[s]],r[o[s]])};u.supportsDescriptors=!!c,e.exports=u},(e,t,r)=>{"use strict";var n=r(2318),i=r(2305),o=r(2306),a=r(2316);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,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(n)n(e,t,{configurable:null===l&&d?d.configurable:!l,enumerable:null===s&&d?d.enumerable:!s,value:r,writable:null===c&&d?d.writable:!c});else{if(!u&&(s||c||l))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(2318),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(2337),i=r(2318),o=r(2324),a=r(2338);e.exports=function(e){var t=o(arguments),r=1+e.length-(arguments.length-1);return n(t,r>0?r:0,!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},(e,t,r)=>{"use strict";var n=r(2299),i=r(2334),o=r(2335)(),a=r(2316),s=r(2306),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,l=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(l=!1)}return(n||l||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},(e,t,r)=>{"use strict";var n=r(2325),i=r(2329),o=r(2328);e.exports=function(){return o(n,i,arguments)}},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(2339);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},(e,t,r)=>{"use strict";var n=r(2340),i=r(2333);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=r(2298),o=r(2296)(),a=r(2331),s=r(2316);if(o){var c=i("RegExp.prototype.exec"),l={},u=function(){throw l},d={toString:u,valueOf:u};"symbol"==typeof Symbol.toPrimitive&&(d[Symbol.toPrimitive]=u),n=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{c(e,d)}catch(e){return e===l}}}else{var p=i("Object.prototype.toString");n=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===p(e)}}e.exports=n},(e,t,r)=>{"use strict";var n=r(2333),i=r(2336),o=r(2344),a=r(2347),s=r(2348),c=i(a());n(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},(e,t,r)=>{"use strict";var n=r(2345),i=r(2306),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(2334),i=r(2335)(),o=r(2346).functionsHaveConfigurableNames(),a=r(2306);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(2344),i=r(2333).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&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var t="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(r,"sticky",{get:function(){t+="y"}}),e.get.call(r),"dy"===t)return e.get}}return n}},(e,t,r)=>{"use strict";var n=r(2333).supportsDescriptors,i=r(2347),o=r(2316),a=Object.defineProperty,s=r(2301),c=r(2320),l=/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(l),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=r(2298),i=n("Date.prototype.getDay"),o=n("Object.prototype.toString"),a=r(2296)();e.exports=function(e){return"object"==typeof e&&null!==e&&(a?function(e){try{return i(e),!0}catch(e){return!1}}(e):"[object Date]"===o(e))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_MARGINS:()=>d,MarginPropType:()=>u,getInnerDimensions:()=>c,getRadialLayoutMargin:()=>l});var n=r(787),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]:{};
41t%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,l=o.top,u=void 0===l?0:l,d=o.right,p=void 0===d?0:d,f=o.bottom,h=void 0===f?0:f;return{marginLeft:c,marginTop:u,marginRight:p,marginBottom:h,innerHeight:i-h-u,innerWidth:n-c-p}}function l(e,t,r){var n=e/2-r,i=t/2-r;return{bottom:i,left:n,right:n,top:i}}var u=i().oneOfType([i().shape({left:i().number,top:i().number,right:i().number,bottom:i().number}),i().number]),d={left:40,right:10,top:10,bottom:40}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r(396),i=r(787),o=r.n(i),a=r(2069),s=r(2068),c=r(2164);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 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 d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(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"===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 f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(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&&d(e,t)}(l,e);var t,r,i,o=p(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,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,l=t.marginBottom,u=t.marginLeft,d=t.marginRight,p=t.marginTop;if(r){var f,h,g=n.find(function(e){return e.props.animation}),v=i+p+l,b=o+u+d,_=(f=t.children,h=e?e.children:[],f.map(function(e,t){var r=h[t]?h[t].props:{},n=e.props,i=(0,s.extractAnimatedPropValues)(m(m({},r),{},{animatedProps:c.ANIMATED_SERIES_PROPS})),o=n?(0,s.extractAnimatedPropValues)(m(m({},n),{},{animatedProps:c.ANIMATED_SERIES_PROPS})):null,l=(0,a.default)(i,o);return{renderLayer:e.type.renderLayer,newProps:e.props,animation:e.props.animation,interpolator:l}}));g?function(e,t,r,n){var i=0,o=setInterval(function(){e?(y(e,t,r,n,i),i>30&&clearInterval(o),i+=1):clearInterval(o)},1)}(r,v,b,_):y(r,v,b,_)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.innerHe
41ight,i=t.innerWidth,o=t.marginBottom,a=t.marginLeft,s=t.marginRight,c=t.marginTop,l=t.pixelRatio,u=r+c+o,d=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:u*l,width:d*l,style:{height:"".concat(u,"px"),width:"".concat(d,"px")},ref:function(t){return e.canvas=t}}),this.props.children)}}])&&u(t.prototype,r),i&&u(t,i),l}(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:()=>g});var n=r(396),i=r(787),o=r.n(i),a=r(2227),s=r(2353);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){u(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 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 d=a.ORIENTATION.TOP,p=a.ORIENTATION.BOTTOM,f=l(l({},s.default.propTypes),{},{orientation:o().oneOf([d,p])}),h={orientation:p,attr:"x",attrAxis:"y"};function m(e){return n.default.createElement(s.default,e)}m.displayName="XAxis",m.propTypes=f,m.defaultProps=h,m.requiresSVG=!0;const g=m},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>I});var n=r(396),i=r(787),o=r.n(i),a=r(2068),s=r(2227),c=r(2098),l=r(2166),u=r(2354),d=r(2355),p=r(2356);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){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var i=S(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===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 E=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickSize","t
41ickTotal","tickSizeInner","tickSizeOuter"],w=s.ORIENTATION.LEFT,T=s.ORIENTATION.RIGHT,x=s.ORIENTATION.TOP,O=s.ORIENTATION.BOTTOM,A={orientation:o().oneOf([w,T,x,O]),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},R={className:"",on0:!1,style:{},tickSize:6,tickPadding:8,orientation:O},P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(f,e);var t,r,i,o=_(f);function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),o.apply(this,arguments)}return t=f,(r=[{key:"_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===O?{tickTotal:(0,s.getTicksTotalFromSize)(t),top:r+n,left:o,width:t,height:i}:c===x?{tickTotal:(0,s.getTicksTotalFromSize)(t),top:0,left:o,width:t,height:n}:c===w?{tickTotal:(0,s.getTicksTotalFromSize)(r),top:n,left:0,width:o,height:r}:{tickTotal:(0,s.getTicksTotalFromSize)(r),top:n,left:o+t,width:a,height:r}}},{key:"render",value:function(){var e=this.props.animation;if(e){var t=e.nonAnimatedProps?E.filter(function(t){return e.nonAnimatedProps.indexOf(t)<0}):E;return n.default.createElement(a.default,y({},this.props,{animatedProps:t}),n.default.createElement(f,y({},this.props,{animation:null})))}var r=m(m({},this._getDefaultAxisProps()),this.props),i=r.attrAxis,o=r.className,s=r.height,h=r.hideLine,g=r.hideTicks,v=r.left,b=r.marginTop,_=r.on0,S=r.orientation,x=r.position,O=r.style,A=r.title,R=r.top,P=r.width,I=[w,T].indexOf(S)>-1,C=I?"rv-xy-plot__axis--vertical":"rv-xy-plot__axis--horizontal",k=v,M=R;if(_){var D=(0,c.getAttributeScale)(r,i);I?k=D(0):M=b+D(0)}return n.default.createElement("g",{transform:"translate(".concat(k,",").concat(M,")"),className:(0,l.getCombinedClassName)("rv-xy-plot__axis",C,o),style:O},!h&&n.default.createElement(u.default,{height:s,width:P,orientation:S,style:m(m({},O),O.line)}),!g&&n.default.createElement(d.default,y({},r,{style:m(m({},O),O.ticks)})),A?n.default.createElement(p.default,{position:x,title:A,height:s,width:P,style:m(m({},O),O.title),orientation:S}):null)}}])&&v(t.prototype,r),i&&v(t,i),f}(n.PureComponent);P.displayName="Axis",P.propTypes=A,P.defaultProps=R,P.requiresSVG=!0;const I=P},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(396),i=r(787),o=r.n(i),a=r(2227);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,l=a.ORIENTATION.RIGHT,u=a.ORIENTATION.TOP,d=a.ORIENTATION.BOTTOM,p={height:o().number.isRequired,style:o().object,orientation:o().oneOf([c,l,u,d]).isRequired,width:o().number.isRequired};function f(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===l?{x1:0,x2:0,y1:0,y2:o}:r===u?{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}))}f.defaultProps={style:{}},f.displayName="AxisLine",f.propTypes=p;const h=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var n=r(396),i=r(787),o=r.n(i),a=r(2227),s=r(2098);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
41for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}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 d(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,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y=a.ORIENTATION.LEFT,v=a.ORIENTATION.RIGHT,b=a.ORIENTATION.TOP,_=a.ORIENTATION.BOTTOM,S={height:o().number.isRequired,orientation:o().oneOf([y,v,b,_]).isRequired,style:o().object,width:o().number.isRequired};var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,r,i,o=m(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),o.apply(this,arguments)}return t=c,(r=[{key:"_areTicksWrapped",value:function(){var e=this.props.orientation;return e===y||e===b}},{key:"_getTickContainerPropsGetterFn",value:function(){return this._isAxisVertical()?function(e){return{transform:"translate(0, ".concat(e,")")}}:function(e){return{transform:"translate(".concat(e,", 0)")}}}},{key:"_getTickLabelProps",value:function(){var e,t=this.props,r=t.orientation,n=t.tickLabelAngle,i=t.tickSize,o=t.tickSizeOuter,a=void 0===o?i:o,s=t.tickPadding,c=void 0===s?i:s;e=r===y||r===_&&n?"end":r===v||r===b&&n?"start":"middle";var l=this._isAxisVertical(),u=(this._areTicksWrapped()?-1:1)*(a+c),d=(l?"translate(".concat(u,", 0)"):"translate(0, ".concat(u,")"))+(n?" rotate(".concat(n,")"):"");return{textAnchor:e,dy:r===b||n?"0":r===_?"0.72em":"0.32em",transform:d}}},{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",l=s?"x":"y",u=this._areTicksWrapped()?-1:1;return p(e={},"".concat(c,"1"),0),p(e,"".concat(c,"2"),0),p(e,"".concat(l,"1"),-u*a),p(e,"".concat(l,"2"),u*i),e}},{key:"_isAxisVertical",value:function(){var e=this.props.orientation;return e===y||e===v}},{key:"render",value:function(){var e=this.props,t=e.attr,r=e.orientation,i=e.width,o=e.height,c=e.style,u=e.tickFormat,p=e.tickTotal,f=e.tickValues,h=r===y?i:0,m=r===b?o:0,g=(0,s.getAttributeScale)(this.props,t),v=(0,a.getTickValues)(g,p,f),_=function(e,t,r){return r||(e.tickFormat?e.tickFormat(t):function(e){return e})}(g,p,u),S=this._getTickContainerPropsGetterFn(),E=this._getTickLineProps(),w=this._getTickLabelProps(),T=v.map(function(e,t){var r=g(e),o=_(e,t,g,p),a=n.default.isValidElement(o)&&!["tspan","textPath"].includes(o.type),s=o&&"string"!=typeof o.type;return n.default.createElement("g",l({key:t},S(r,0),{className:"rv-xy-plot__axis__tick",style:c}
41),n.default.createElement("line",l({},E,{className:"rv-xy-plot__axis__tick__line",style:d(d({},c),c.line)})),a?n.default.cloneElement(o,s?d(d({},w),{},{containerWidth:i,tickCount:v.length}):void 0):n.default.createElement("text",l({},w,{className:"rv-xy-plot__axis__tick__text",style:d(d({},c),c.text)}),o))});return n.default.createElement("g",{transform:"translate(".concat(h,", ").concat(m,")"),className:"rv-xy-plot__axis__ticks"},T)}}])&&f(t.prototype,r),i&&f(t,i),c}(n.default.Component);E.defaultProps={style:{}},E.displayName="AxisTicks",E.propTypes=S,E.requiresSVG=!0;const w=E},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(396),i=r(787),o=r.n(i),a=r(2227);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){l(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 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 u=16,d=a.ORIENTATION.LEFT,p=a.ORIENTATION.RIGHT,f=a.ORIENTATION.TOP,h=a.ORIENTATION.BOTTOM,m={width:o().number.isRequired,height:o().number.isRequired,orientation:o().oneOf([d,p,f,h]).isRequired,style:o().object,title:o().string.isRequired};function g(e){var t=e.orientation,r=e.position,i=e.width,o=e.height,a=e.style,s=e.title,m=t===f?o:0,g="translate(".concat(t===d?i:0,", ").concat(m,")"),y=function(e,t){var r;return l(r={},d,{end:{x:u,y:6,rotation:-90,textAnchor:"end"},middle:{x:u,y:t/2-6,rotation:-90,textAnchor:"middle"},start:{x:u,y:t-6,rotation:-90,textAnchor:"start"}}),l(r,p,{end:{x:-8,y:6,rotation:-90,textAnchor:"end"},middle:{x:-8,y:t/2-6,rotation:-90,textAnchor:"middle"},start:{x:-8,y:t-6,rotation:-90,textAnchor:"start"}}),l(r,f,{start:{x:6,y:u,rotation:0,textAnchor:"start"},middle:{x:e/2-6,y:u,rotation:0,textAnchor:"middle"},end:{x:e-6,y:u,rotation:0,textAnchor:"end"}}),l(r,h,{start:{x:6,y:-6,rotation:0,textAnchor:"start"},middle:{x:e/2-6,y:-6,rotation:0,textAnchor:"middle"},end:{x:e-6,y:-6,rotation:0,textAnchor:"end"}}),r}(i,o)[t][r],v=y.x,b=y.y,_=y.rotation,S=y.textAnchor,E="translate(".concat(v,", ").concat(b,") rotate(").concat(_,")");return n.default.createElement("g",{transform:g,className:"rv-xy-plot__axis__title"},n.default.createElement("g",{style:c({textAnchor:S},a),transform:E},n.default.createElement("text",{style:a},s)))}g.displayName="AxisTitle",g.propTypes=m,g.defaultProps={position:"end"};const y=g},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(396),i=r(787),o=r.n(i),a=r(2227),s=r(2353);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){u(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 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 d=a.ORIENTATION.LEFT,p=a.ORIENTATION.RIGHT,f=l(l({},s.default.propTypes),{},{orientation:o().oneOf([d,p])}),h={orientation:d,attr:"y",attrAxis:"x"};function m(e){return n.default.createElement(s.default,e)}m.displayName="YAxis",m.propTypes=f,m.defaultProps=h,m.requiresSVG=!0;const g=m},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(396),i=r(787),o=r.n(i),a=r(2165),s=r(2166),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,
41startTitle:o().oneOfType([o().number,o().string]).isRequired,width:o().number},l={className:"",startColor:a.CONTINUOUS_COLOR_RANGE[0],endColor:a.CONTINUOUS_COLOR_RANGE[1]};function u(e){var t=e.startColor,r=e.midColor,i=e.endColor,o=e.startTitle,a=e.midTitle,c=e.endTitle,l=e.height,u=e.width,d=e.className,p=[t];return r&&p.push(r),p.push(i),n.default.createElement("div",{className:(0,s.getCombinedClassName)("rv-continuous-color-legend",d),style:{width:u,height:l}},n.default.createElement("div",{className:"rv-gradient",style:{background:"linear-gradient(to right, ".concat(p.join(","),")")}}),n.default.createElement("div",{className:"rv-legend-titles"},n.default.createElement("span",{className:"rv-legend-titles__left"},o),n.default.createElement("span",{className:"rv-legend-titles__right"},c),a?n.default.createElement("span",{className:"rv-legend-titles__center"},a):null))}u.displayName="ContinuousColorLegend",u.propTypes=c,u.defaultProps=l;const d=u},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(396),i=r(787),o=r.n(i),a=r(2166),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,l=e.width,u=e.className,d=[],p=(o-i)/(s-1),f=0;f<s;f++){var h=p*f+i;d.push(n.default.createElement("div",{key:f,className:"rv-bubble",style:{width:h,height:h,borderRadius:h/2}})),d.push(" ")}return n.default.createElement("div",{className:(0,a.getCombinedClassName)("rv-continuous-size-legend",u),style:{width:l,height:c}},n.default.createElement("div",{className:"rv-bubbles",style:{height:o}},d,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 l=c},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(396),i=r(787),o=r.n(i),a=r(2361),s=r(2165),c=r(2166);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 u(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){d(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 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 p(e){var t=e.className,r=e.colors,i=e.height,o=e.items,s=e.onItemClick,l=e.onItemMouseEnter,d=e.onItemMouseLeave,p=e.orientation,f=e.style,h=e.width;return n.default.createElement("div",{className:(0,c.getCombinedClassName)("rv-discrete-color-legend",p,t),style:u({width:h,height:i},f)},o.map(function(e,t){return n.default.createElement(a.default,{title:e.title?e.title:e,color:e.color?e.color:r[t%r.length],strokeDasharray:e.strokeDasharray,strokeStyle:e.strokeStyle,strokeWidth:e.strokeWidth,disabled:Boolean(e.disabled),orientation:p,key:t,onClick:s?function(r){return s(e,t,r)}:null,onMouseEnter:l?function(r){return l(e,t,r)}:null,onMouseLeave:l?function(r){return d(e,t,r)}:null})}))}p.displayName="DiscreteColorLegendItem",p.propTypes={className:o().string,items:o().arrayOf(o().oneOfType([o().shape({title:o().oneOfType([o().string,o().element]).isRequired,color:o().string,disabled:o().bool}),o().string.isRequired,o().element])).isRequired,onItemClick:o().func,onItemMouseEnter:o().func,onItemMouseLeave:o().func,height:o().number,width:o().number,orientation:o().oneOf(["vertical","horizontal"])},p.defaultProps={className:"",colors:s.DISCRETE_COLOR_RANGE,orientation:"vertical"};const f=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(396),i=r(787),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]:{};
41t%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 l={dashed:"6, 2",solid:null};function u(e){var t=e.color,r=e.strokeDasharray,i=e.strokeStyle,o=e.strokeWidth,a=e.disabled,c=e.onClick,u=e.orientation,d=e.onMouseEnter,p=e.onMouseLeave,f=e.title,h="rv-discrete-color-legend-item ".concat(u);a&&(h+=" disabled"),c&&(h+=" clickable");var m=l[i]||r;return n.default.createElement("div",{className:h,onClick:c,onMouseEnter:d,onMouseLeave:p},n.default.createElement("svg",{className:"rv-discrete-color-legend-item__color",height:2,width:14},n.default.createElement("path",{className:"rv-discrete-color-legend-item__color__path",d:"M 0, 1 L 14, 1",style:s(s(s({},o?{strokeWidth:o}:{}),m?{strokeDasharray:m}:{}),{},{stroke:a?null:t})})),n.default.createElement("span",{className:"rv-discrete-color-legend-item__title"},f))}u.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(l))},u.defaultProps={disabled:!1,strokeStyle:"solid"},u.displayName="DiscreteColorLegendItem";const d=u},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(396),i=r(787),o=r.n(i),a=r(2360),s=r(2166);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){u(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 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 d=l(l({},a.default.propTypes),{},{searchText:o().string,onSearchChange:o().func,searchPlaceholder:o().string,searchFn:o().func}),p={className:"",searchText:"",searchFn:function(e,t){return e.filter(function(e){return-1!==String(e.title||e).toLowerCase().indexOf(t)})}};function f(e){var t=e.className,r=e.colors,i=e.height,o=e.items,c=e.onItemClick,l=e.onItemMouseEnter,u=e.onItemMouseLeave,d=e.onSearchChange,p=e.orientation,f=e.searchFn,h=e.searchPlaceholder,m=e.searchText,g=e.width,y=d?function(e){var t=e.target.value;return d(t)}:null,v=f(o,m);return n.default.createElement("div",{className:(0,s.getCombinedClassName)("rv-search-wrapper",t),style:{width:g,height:i}},n.default.createElement("form",{className:"rv-search-wrapper__form"},n.default.createElement("input",{type:"search",placeholder:h,className:"rv-search-wrapper__form__input",value:m,onChange:y})),n.default.createElement("div",{className:"rv-search-wrapper__contents"},n.default.createElement(a.default,{colors:r,items:v,onItemClick:c,onItemMouseEnter:l,onItemMouseLeave:u,orientation:p})))}f.propTypes=d,f.defaultProps=p,f.displayName="SearchableDiscreteColorLegend";const h=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>C});var n=r(396),i=r(787),o=r.n(i),a=r(2104),s=r(2116),c=r(2068),l=r(2290),u=r(2165),d=r(2350),p=r(2166),f=r(2277),h=r(2276),m=r(2275),g=r(2256),y=r(2264);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var i=w(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;return E(e)}(this,r)}}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
41function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function T(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?T(Object(r),!0).forEach(function(t){O(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(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 A="rv-parallel-coordinates-chart",R=(0,s.format)(".2r");function P(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 I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(s,e);var t,r,i,o=S(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return O(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,u=r.colorRange,v=r.data,b=r.domains,_=r.height,S=r.hideInnerMostValues,E=r.margin,w=r.onMouseLeave,T=r.onMouseEnter,R=r.showMarks,I=r.style,C=r.tickFormat,k=r.width,M=function(e){var t=e.animation,r=e.domains,i=e.style,o=e.tickFormat;return r.map(function(e,r){var a=e.domain;return n.default.createElement(g.default,{animation:t,key:"".concat(r,"-axis"),axisStart:{x:e.name,y:0},axisEnd:{x:e.name,y:1},axisDomain:a,numberOfTicks:5,tickValue:function(t){return e.tickFormat?e.tickFormat(t):o(t)},style:i.axes})})}({domains:b,animation:i,hideInnerMostValues:S,style:I,tickFormat:C}),D=function(e){var t=e.animation,r=e.brushFilters,i=e.colorRange,o=e.domains,s=e.data,c=e.style,l=e.showMarks,u=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,d=o.map(function(t){var n=t.getValue,i=t.name,o=u[i](n?n(e):e[i]),a=r[i];return a&&(o<a.min||o>a.max)&&(s=!1),{x:i,y:o}}),p="".concat(A,"-line"),m="".concat(p," ").concat(A,"-line-unselected"),g={animation:t,className:s?p:m,key:"".concat(a,"-polygon"),data:d,color:e.color||i[a%i.length],style:x(x({},c.lines),e.style||{})};return s||(g.style=x(x({},g.style),c.deselectedLineStyle)),l?n.default.createElement(h.default,g):n.default.createElement(f.default,g)})}({animation:i,brushFilters:t,colorRange:u,domains:b,data:v,showMarks:R,style:I}),N=n.default.createElement(m.default,{animation:!0,key:s,className:"".concat(A,"-label"),data:P({domains:b,style:I.labels})}),L=(0,d.getInnerDimensions)(this.props,d.DEFAULT_MARGINS),F=L.marginLeft,B=L.marginRight;return n.default.createElement(l.default,{height:_,width:k,margin:E,dontCheckIfEmpty:!0,className:(0,p.getCombinedClassName)(s,A),onMouseLeave:w,onMouseEnter:T,xType:"ordinal",yDomain:[0,1]},c,M.concat(D).concat(N),o&&b.map(function(r){var i=function(n){e.setState({brushFilters:x(x({},t),{},O({},r.name,n?{min:n.bottom,max:n.top}:null))})};return n.default.createElement(y.default,{key:r.name,drag:!0,highlightX:r.name,onBrushEnd:i,onDragEnd:i,highlightWidth:(k-F-B)/b.length,enableX:!1})}))}}])&&b(t.prototype,r),i&&b(t,i),s}(n.Component);I.displayName="ParallelCoordinates",I.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:d.MarginPropType,style:o().shape({axes:o().object,labels:o().object,lines:o().object}),showMarks:o().bool,tickFormat:o().func,width:o().number.isRequired},I.defaultProps={className:"",colorType:"category",colorRange:u.DISCRETE_COLOR_RANGE,style:{axes:{line:{},ticks:{},text:{}},labels:{fontSize:10,textAnchor:"middle"},lines:{strokeWidth:1,strokeOpacity:1},deselectedLineStyle:{strokeOpacity:.1}},tickFormat:R};const C=I},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(396),i=r(787),o=r.n(i),a=r(2104),s=r(2116),c=r(2068),l=r(2290),u=r(2165),d=r(2350),p=r(2166),f=r(2278),h=r(2282),m=r(2275),g=r(2256);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%2?y(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _="rv-radar-chart",S=(0,s.format)(".2r");function E(e){var t=1e-12;return Math.abs(e)<=t?e=0:e>0?Math.abs(e-.5)<=t&&(e=.5):e<0&&Math.abs(e+.5)<=t&&(e=-.5),e}function w(e){var t=e.domains,r=e.startingAngle,n=e.style;return t.map(function(e,i){var o=e.name,a=i/t.length*Math.PI*2+r;return{x:1.2*Math.cos(a),y:1.2*Math.sin(a),label:o,style:n}})}function T(e){var t=e.animation,r=e.className,i=e.children,o=e.colorRange,s=e.data,c=e.domains,u=e.height,d=e.hideInnerMostValues,y=e.margin,b=e.onMouseLeave,S=e.onMouseEnter,T=e.startingAngle,x=e.style,O=e.tickFormat,A=e.width,R=e.renderAxesOverPolygons,P=e.onValueMouseOver,I=e.onValueMouseOut,C=e.onSeriesM
41ouseOver,k=e.onSeriesMouseOut,M=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 l=c/r.length*Math.PI*2+i,u=e.domain;return n.default.createElement(g.default,{animation:t,key:"".concat(c,"-axis"),axisStart:{x:0,y:0},axisEnd:{x:E(Math.cos(l)),y:E(Math.sin(l))},axisDomain:u,numberOfTicks:5,tickValue:function(t){return s&&t===u[0]?"":e.tickFormat?e.tickFormat(t):a(t)},style:o.axes})})}({domains:c,animation:t,hideInnerMostValues:d,startingAngle:T,style:x,tickFormat:O}),D=function(e){var t=e.animation,r=e.colorRange,i=e.domains,o=e.data,s=e.style,c=e.startingAngle,l=e.onSeriesMouseOver,u=e.onSeriesMouseOut,d=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,l=Math.max(d[n](a),0);return{x:l*Math.cos(s),y:l*Math.sin(s),name:e.name}});return n.default.createElement(h.default,{animation:t,className:"".concat(_,"-polygon"),key:"".concat(o,"-polygon"),data:a,style:v({stroke:e.color||e.stroke||r[o%r.length],fill:e.color||e.fill||r[o%r.length]},s.polygons),onSeriesMouseOver:l,onSeriesMouseOut:u})})}({animation:t,colorRange:o,domains:c,data:s,startingAngle:T,style:x,onSeriesMouseOver:C,onSeriesMouseOut:k}),N=function(e){var t=e.animation,r=e.domains,i=e.data,o=e.startingAngle,s=e.style,c=e.onValueMouseOver,l=e.onValueMouseOut;if(c){var u=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,l=Math.max(u[i](s),0);return{x:l*Math.cos(c),y:l*Math.sin(c),domain:i,value:s,dataName:e.name}});return n.default.createElement(f.default,{animation:t,className:"".concat(_,"-polygonPoint"),key:"".concat(i,"-polygonPoint"),data:a,size:10,style:v(v({},s.polygons),{},{fill:"transparent",stroke:"transparent"}),onValueMouseOver:c,onValueMouseOut:l})})}}({animation:t,colorRange:o,domains:c,data:s,startingAngle:T,style:x,onValueMouseOver:P,onValueMouseOut:I}),L=n.default.createElement(m.default,{animation:t,key:r,className:"".concat(_,"-label"),data:w({domains:c,style:x.labels,startingAngle:T})});return n.default.createElement(l.default,{height:u,width:A,margin:y,dontCheckIfEmpty:!0,className:(0,p.getCombinedClassName)(r,_),onMouseLeave:b,onMouseEnter:S,xDomain:[-1,1],yDomain:[-1,1]},i,!R&&M.concat(D).concat(L).concat(N),R&&D.concat(L).concat(M).concat(N))}T.displayName="RadarChart",T.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:d.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},T.defaultProps={className:"",colorType:"category",colorRange:u.DISCRETE_COLOR_RANGE,hideInnerMostValues:!0,startingAngle:Math.PI/2,style:{axes:{line:{},ticks:{},text:{}},labels:{fontSize:10,textAnchor:"middle"},polygons:{strokeWidth:.5,strokeOpacity:1,fillOpacity:.1}},tickFormat:S,renderAxesOverPolygons:!1};const x=T},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(396),i=r(787),o=r.n(i),a=r(2174),s=r(2068),c=r(2158),l=r(2275),u=r(2290),d=r(2165),p=r(2350),f=r(2164),h=r(2166);function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(this,arguments)}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%2?g(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){var t=e.animation,r=e.className,i=e.children,o=e.colorType,s=e.data,d=e.getAngle,g=e.getLabel,v=e.getSubLabel,b=e.height,_=e.hideRootNode,S=e.innerRadius,E=e.labelsAboveChildren,w=e.labelsRadiusMultiplier,T=e.labelsStyle,x=e.margin,O=e.onMouseLeave,A=e.onMouseEnter,R=e.radius,P=e.showLabels,I=e.style,C=e.width,k=function(e){var t=e.data,r=e.getAngle;return(0,a.default)().sort(null).value(r)(t).reverse().map(function(e,t){return y(y({},e.data),{},{angle0:e.startAngle,angle:e.endAngle,radius0:e.data.innerRadius||0,radius:e.data.radius||1,color:e.data.color||t})})}({data:s,height:b,hideRootNode:_,width:C,getAngle:d}),M=(0,f.getRadialDomain)(k),D=y(y({colorType:o},e),{},{animation:t,radiusDomain:[0,M],data:k,radiusNoFallBack:!0,style:I,arcClassName:"rv-radial-chart__series--pie__slice"});R&&(D.radiusDomain=[0,1],D.radiusRange=[S||0,R],D.radiusType="linear");var N=R||function(e,t){return Math.min(e,t)/2-15}(C,b),L=(0,p.getRadialLayoutMargin)(C,b,N),F=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,l=[];return n(t)&&l.push({angle:c,radius:s*r,label:n(t)}),i(t)&&l.push({angle:c,radius:s*r,label:i(t),style:{fontSize:10},yOffset:12}),e.concat(l)},[])}(k,{getLabel:g,getSubLabel:v},w);return n.default.createElement(u.default,{height:b,width:C,margin:y(y({},L),x),className:(0,h.getCombinedClassName)(r,"rv-radial-chart"),onMouseLeave:O,onMouseEnter:A,xDomain:[-M,M],yDomain:[-M,M]},n.default.createElement(c.default,m({},D,{getAngle:function(e){return e.angle}})),P&&!E&&n.default.createElement(l.default,{data:F,style:T}),i,P&&E&&n.default.createElement(l.default,{data:F,style:T}))}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:p.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:d.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 _=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(396),i=r(787),o=r.n(i),a=r(2367),s=r(2290),c=r(2350),l=r(2166),u=r(2286),d=r(2275),p=r(2288),f=r(2165),h=r(2381);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _(){return _=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
41for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_.apply(this,arguments)}var S=function(e){return e},E={justify:a.sankeyJustify,center:a.sankeyCenter,left:a.sankeyLeft,right:a.sankeyRight},w={top:20,left:20,right:20,bottom:20};function T(e){var t=e.align,r=e.animation,i=e.children,o=e.className,m=e.hasVoronoi,y=e.height,b=e.hideLabels,S=e.labelRotation,T=e.layout,x=e.links,O=e.linkOpacity,A=e.margin,R=e.nodePadding,P=e.nodes,I=e.nodeWidth,C=e.onValueClick,k=e.onValueMouseOver,M=e.onValueMouseOut,D=e.onLinkClick,N=e.onLinkMouseOver,L=e.onLinkMouseOut,F=e.style,B=e.width;if(0===P.length)return n.default.createElement(s.default,_({},e,{yType:"literal",className:(0,l.getCombinedClassName)("rv-sankey",o)}));var j=v(new Array(P.length)).map(function(e,t){return g({},P[t])}),U=v(new Array(x.length)).map(function(e,t){return g({},x[t])}),H=(0,c.getInnerDimensions)({margin:A,height:y,width:B},w),z=H.marginLeft,V=H.marginTop,G=H.marginRight,$=H.marginBottom,q=(0,a.sankey)().extent([[z,V],[B-G,y-$-V]]).nodeWidth(I).nodePadding(R).nodes(j).links(U).nodeAlign(E[t]).iterations(T);q(j);var W=q.nodeWidth(),K=(0,a.sankeyLinkHorizontal)();return n.default.createElement(s.default,_({},e,{yType:"literal",className:(0,l.getCombinedClassName)("rv-sankey",o)}),U.map(function(e,t){return n.default.createElement(h.default,{style:F.links,data:K(e),opacity:e.opacity||O,color:e.color,onLinkClick:D,onLinkMouseOver:N,onLinkMouseOut:L,strokeWidth:Math.max(e.width,1),node:e,nWidth:W,key:"link-".concat(t)})}),n.default.createElement(u.default,{animation:r,className:(0,l.getCombinedClassName)(o,"rv-sankey__node"),data:j.map(function(e){return g(g({},e),{},{y:e.y1-V,y0:e.y0-V,x:e.x1,x0:e.x0,color:e.color||f.DISCRETE_COLOR_RANGE[0],sourceLinks:null,targetLinks:null})}),style:F.rects,onValueClick:C,onValueMouseOver:k,onValueMouseOut:M,colorType:"literal"}),!b&&n.default.createElement(d.default,{animation:r,className:o,rotation:S,labelAnchorY:"text-before-edge",data:j.map(function(e,t){return g({x:e.x0+(e.x0<B/2?W+10:-10),y:(e.y0+e.y1)/2-V,label:e.name,style:g({textAnchor:e.x0<B/2?"start":"end",dy:"-.5em"},F.labels)},P[t])})}),m&&n.default.createElement(p.default,{className:"rv-sankey__voronoi",extent:[[-z,-V],[B+G,y+$]],nodes:j,onClick:C,onHover:k,onBlur:M,x:function(e){return e.x0+(e.x1-e.x0)/2},y:function(e){return e.y0+(e.y1-e.y0)/2}}),i)}T.defaultProps={align:"justify",className:"",hasVoronoi:!1,hideLabels:!1,labelRotation:0,layout:50,margin:w,nodePadding:10,nodeWidth:10,onValueMouseOver:S,onValueClick:S,onValueMouseOut:S,onLinkClick:S,onLinkMouseOver:S,onLinkMouseOut:S,style:{links:{},rects:{},labels:{}}},T.propTypes={align:o().oneOf(["justify","left","right","center"]),className:o().string,hasVoronoi:o().bool,height:o().number.isRequired,hideLabels:o().bool,labelRotation:o().number,layout:o().number,links:o().arrayOf(o().shape({source:o().oneOfType([o().number,o().object]).isRequired,target:o().oneOfType([o().number,o().object]).isRequired})).isRequired,margin:c.MarginPropType,nodePadding:o().number,nodes:o().arrayOf(o().object).isRequired,nodeWidth:o().number,onValueMouseOver:o().func,onValueClick:o().func,onValueMouseOut:o().func,onLinkClick:o().func,onLinkMouseOver:o().func,onLinkMouseOut:o().func,style:o().shape({links:o().object,rects:o().object,labels:o().object}),width:o().number.isRequired};const x=T},(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(2368),i=r(2372),o=r(2374)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(2369),i=r(2370),o=r(2371),a=r(2372),s=r(2373);function c(e,t){return u(e.source,t.source)||e.index-t.index}function l(e,t){return u(e.target,t.target)||e.index-t.index}function u(e,t){return e.y0-t.y0}function d(e){return e.value}function p(e){return e.index}function f(e){return e.nodes}function h(e){return e.links}function m(e,t){const r=e.get(t);if(!r)throw new Error("missing: "+t);return r}function g({nodes:e}){for(const t of e){let e=t.y0,r=e;for(const r of t.sourceLinks)r.y0=e+r.width/2,e+=r.width;for(const e of t.targetLinks)e.y1=r+e.width/2,r+=e.width}}function y(){let e,t,r,y=0,v=0,b=1,_=1,S=24,E=8,w=p,T=a.justify,x=f,O=h,A=6;function R(){const a={nodes:x.apply(null,arguments),links:O.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,o.default)(t.sourceLinks,d),(0,o.default)(t.targetLinks,d)):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,n.default)(e,e=>e.depth)+1,i=(b-y-S)/(r-1),o=new Array(r);for(const t of e){const e=Math.max(0,Math.min(r-1,Math.floor(T.call(null,t,r))));t.layer=e,t.x0=y+e*i,t.x1=t.x0+S,o[e]?o[e].push(t):o[e]=[t]}if(t)for(const e of o)e.sort(t);return o}(r);e=Math.min(E,(_-v)/((0,n.default)(a,e=>e.length)-1)),function(t){const r=(0,i.default)(t,t=>(_-v-(t.length-1)*e)/(0,o.default)(t,d));for(const n of t){let t=v;for(const i of n){i.y0=t,i.y1=t+i.value*r,t=i.y1+e;for(const e of i.sourceLinks)e.width=e.value*r}t=(_-t+e)/(n.length+1);for(let e=0;e<n.length;++e){const r=n[e];r.y0+=t*(e+1),r.y1+=t*(e+1)}N(n)}}(a);for(let e=0;e<A;++e){const t=Math.pow(.99,e),r=Math.max(1-t,(e+1)/A);I(a,t,r),P(a,t,r)}}(a),g(a),a}function P(e,r,n){for(let i=1,o=e.length;i<o;++i){const o=e[i];for(const e of o){let t=0,n=0;for(const{source:r,value:i}of e.targetLinks){let o=i*(e.layer-r.layer);t+=L(r,e)*o,n+=o}if(!(n>0))continue;let i=(t/n-e.y0)*r;e.y0+=i,e.y1+=i,D(e)}void 0===t&&o.sort(u),C(o,n)}}function I(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+=F(e,r)*o,n+=o}if(!(n>0))continue;let i=(t/n-e.y0)*r;e.y0+=i,e.y1+=i,D(e)}void 0===t&&o.sort(u),C(o,n)}}function C(t,r){const n=t.length>>1,i=t[n];M(t,i.y0-e,n-1,r),k(t,i.y1+e,n+1,r),M(t,_,t.length-1,r),k(t,v,0,r)}function k(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 M(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 D({sourceLinks:e,targetLinks:t}){if(void 0===r){for(const{source:{sourceLinks:e}}of t)e.sort(l);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(l),r.sort(c)}function L(t,r){let n=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:i,width:o}of t.sourceLinks){if(i===r)break;n+=o+e}for(const{source:e,width:i}of r.targetLinks){if(e===t)break;n-=i}return n}function F(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 R.update=function(e){return g(e),e},R.nodeId=function(e){return arguments.length?(w="function"==typeof e?e:(0,s.default)(e),R):w},R.nodeAlign=function(e){return arguments.length?(T="function"==typeof e?e:(0,s.default)(e),R):T},R.nodeSort=function(e){return arguments.length?(t=e,R):t},R.nodeWidth=function(e){return arguments.length?(S=+e,R):S},R.nodePadding=function(t){return arguments.length?(E=e=+t,R):E},R.nodes=function(e){return arguments.length?(x="function"==typeof e?e:(0,s.default)(e),R):x},R.links=function(e){return arguments.length?(O="function"==typeof e?e:(0,s.default)(e),R):O},R.linkSort=function(e){return arguments.length?(r=e,R):r},R.size=function(e){return arguments.length?(y=v=0,b=+e[0],_=+e[1],R):[b-y,_-v]},R.extent=function(e){return arguments.length?(y=+e[0][0],b=+e[1][0],v=+e[0][1],_=+e[1][1],R):[[y,v],[b,_]]},R.iterations=function(e){return arguments.length?(A=+e,R):A},R}},(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,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,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";r.r(t),r.d(t,{center:()=>c,justify:()=>s,left:()=>o,right:()=>a});var n=r(2370);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}
41function 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){return function(){return e}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a}),r.dn(a);var n=r(2375);function i(e){return[e.source.x1,e.y0]}function o(e){return[e.target.x0,e.y1]}function a(){return(0,n.linkHorizontal)().source(i).target(o)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{linkHorizontal:()=>h,linkRadial:()=>g,linkVertical:()=>m});var n=r(2376),i=r(2377),o=r(2378),a=r(2379),s=r(2380);function c(e){return e.source}function l(e){return e.target}function u(e){var t=c,r=l,s=a.x,u=a.y,d=null;function p(){var o,a=i.slice.call(arguments),c=t.apply(this,a),l=r.apply(this,a);if(d||(d=o=(0,n.default)()),e(d,+s.apply(this,(a[0]=c,a)),+u.apply(this,a),+s.apply(this,(a[0]=l,a)),+u.apply(this,a)),o)return d=null,o+""||null}return p.source=function(e){return arguments.length?(t=e,p):t},p.target=function(e){return arguments.length?(r=e,p):r},p.x=function(e){return arguments.length?(s="function"==typeof e?e:(0,o.default)(+e),p):s},p.y=function(e){return arguments.length?(u="function"==typeof e?e:(0,o.default)(+e),p):u},p.context=function(e){return arguments.length?(d=e??null,p):d},p}function d(e,t,r,n,i){e.moveTo(t,r),e.bezierCurveTo(t=(t+n)/2,r,t,i,n,i)}function p(e,t,r,n,i){e.moveTo(t,r),e.bezierCurveTo(t,r=(r+i)/2,n,r,n,i)}function f(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),l=(0,s.default)(n,i);
vendor: 4,138 bytes, line 41
41e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],c[0],c[1],l[0],l[1])}function h(){return u(d)}function m(){return u(p)}function g(){var e=u(f);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,{default:()=>l});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,l=r-e,u=i-t,d=s-e,p=c-t,f=d*d+p*p;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>o)if(Math.abs(p*l-u*d)>o&&a){var h=r-s,m=i-c,g=l*l+u*u,y=h*h+m*m,v=Math.sqrt(g),b=Math.sqrt(f),_=a*Math.tan((n-Math.acos((g+f-y)/(2*v*b)))/2),S=_/b,E=_/v;Math.abs(S-1)>o&&(this._+="L"+(e+S*d)+","+(t+S*p)),this._+="A"+a+","+a+",0,0,"+ +(p*h>d*m)+","+(this._x1=e+E*l)+","+(this._y1=t+E*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,r,s,c,l){e=+e,t=+t,l=!!l;var u=(r=+r)*Math.cos(s),d=r*Math.sin(s),p=e+u,f=t+d,h=1^l,m=l?s-c:c-s;if(r<0)throw new Error("negative radius: "+r);null===this._x1?this._+="M"+p+","+f:(Math.abs(this._x1-p)>o||Math.abs(this._y1-f)>o)&&(this._+="L"+p+","+f),r&&(m<0&&(m=m%i+i),m>a?this._+="A"+r+","+r+",0,1,"+h+","+(e-u)+","+(t-d)+"A"+r+","+r+",0,1,"+h+","+(this._x1=p)+","+(this._y1=f):m>o&&(this._+="A"+r+","+r+",0,"+ +(m>=n)+","+h+","+(this._x1=e+r*Math.cos(c))+","+(this._y1=t+r*Math.sin(c))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}};const l=c},(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}),r.dn(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}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(396),i=r(2165),o=r(2068),a=r(2164);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 l(e){var t=e.animation,r=e.data,i=e.node,u=e.opacity,d=e.color,p=e.strokeWidth,f=e.style,h=e.onLinkClick,m=e.onLinkMouseOver,g=e.onLinkMouseOut;return t?n.default.createElement(o.default,s({},e,{animatedProps:a.ANIMATED_SERIES_PROPS}),n.default.createElement(l,s({},e,{animation:null}))):n.default.createElement("path",s({d:r},f,{className:"rv-sankey__link",opacity:Number.isFinite(u)?u:.7,stroke:d||c,onClick:function(e){return h(i,e)},onMouseOver:function(e){return m(i,e)},onMouseOut:function(e){return g(i,e)},strokeWidth:p,fill:"none"}))}l.displayName="SankeyLink",l.requiresSVG=!0;const u=l},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>T});var n=r(396),i=r(787),o=r.n(i),a=r(2383),s=r(2397),c=r(2104),l=r(2400),u=r(2068),d=r(2275),p=r(2158),f=r(2290),h=r(2164),m=r(2350),g=r(2166);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEac
41h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _="rv-sunburst",S=["onValueMouseOver","onValueMouseOut","onValueClick","onValueRightClick","onSeriesMouseOver","onSeriesMouseOut","onSeriesClick","onSeriesRightClick"];var E=function(){};function w(e){var t=e.getAngle,r=e.getAngle0,i=e.animation,o=e.className,u=e.children,y=e.data,b=e.height,w=e.hideRootNode,T=e.getLabel,x=e.width,O=e.getSize,A=e.colorType,R=function(e){var t=e.data,r=e.height,n=e.hideRootNode,i=e.width,o=e.getSize,u=(0,s.default)(),d=(0,a.default)(t).sum(o),p=Math.min(i,r)/2-10,f=(0,c.default)().range([0,2*Math.PI]),h=(0,l.sqrt)().range([0,p]);return u(d).descendants().reduce(function(e,t,r){return n&&0===r?e:e.concat([v({angle0:Math.max(0,Math.min(2*Math.PI,f(t.x0))),angle:Math.max(0,Math.min(2*Math.PI,f(t.x1))),radius0:Math.max(0,h(t.y0)),radius:Math.max(0,h(t.y1)),depth:t.depth,parent:t.parent},t.data)])},[])}({data:y,height:b,hideRootNode:w,width:x,getSize:O}),P=(0,h.getRadialDomain)(R),I=(0,m.getRadialLayoutMargin)(x,b,P),C=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})})}(R,{getAngle:t,getAngle0:r,getLabel:T,getRadius0:function(e){return e.radius0}});return n.default.createElement(f.default,{height:b,hasTreeStructure:!0,width:x,className:(0,g.getCombinedClassName)(_,o),margin:I,xDomain:[-P,P],yDomain:[-P,P]},n.default.createElement(p.default,v(v({colorType:A},e),{},{animation:i,radiusDomain:[0,P],data:i?R.map(function(e,t){return v(v({},e),{},{parent:null,children:null,index:t})}):R,_data:i?R:null,arcClassName:"".concat(_,"__series--radial__arc")},S.reduce(function(t,r){var n,o=e[r];return t[r]=i?(n=o,function(e,t){return n?n(R[e.index],t):E}):o,t},{}))),C.length>0&&n.default.createElement(d.default,{data:C,getLabel:T}),u)}w.displayName="Sunburst",w.propTypes={animation:u.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 T=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Node:()=>S,computeHeight:()=>_,default:()=>g});var n=r(2384),i=r(2385),o=r(2386),a=r(2387),s=r(2388),c=r(2389),l=r(2390),u=r(2391),d=r(2392),p=r(2393),f=r(2394),h=r(2395),m=r(2396);function g(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=v)):void 0===t&&(t=y);for(var r,n,i,o,a,s=new S(e),c=[s];r=c.pop();)if((i=t(r.data))&&(a=(i=Array.from(i)).length))for(r.children=i,o=a-1;o>=0;--o)c.push(n=i[o]=new S(i[o])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(_)}function y(e){return e.children}function v(e){return Array.isArray(e)?e[1]:null}function b(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function _(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function S(e){this.data=e,this.depth=this.height=0,this.parent=null}S.prototype=g.prototype={constructor:S,count:n.default,each:i.default,eachAfter:a.default,eachBefore:o.default,find:s.default,sum:c.default,sort:l.default,path:u.default,ancestors:d.default,descendants:p.default,leaves:f.default,links:h.default,copy:function(){return g(this).eachBefore(b)},[Symbol.iterator]:m.default}},(e,t,r)=>{"use strict";function n(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function i(){return this.eachAfter(n)}r.r(t),r.d(t,{default:()=>i}),r.dn(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}),r.dn(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}),r.dn(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}),r.dn(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}),r.dn(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}),r.dn(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}),r.dn(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}),r.dn(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}),r.dn(n)},(e,t,r)=>{"use strict";function n(){return Array.from(this)}r.r(t),r.d(t,{default:()=>n}),r.dn(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}),r.dn(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}),r.dn(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}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o}),r.dn(o);var n=r(2398),i=r(2399);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}),r.dn(n)},(e,t,r)=>{"use strict";function n(e,t,r,n,i){for(var o,a=e.children,s=-1,c=a.length,l=e.value&&(n-t)/e.value;++s<c;)(o=a[s]).y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*l}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u,powish:()=>l,sqrt:()=>d});var n=r(2104),i=r(2106),o=r(2101);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 l(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 u(){var e=l((0,i.transformer)());return e.copy=function(){return(0,i.copy)(e,u()).exponent(e.exponent())},o.initRange.apply(e,arguments),e}function d(){return u.apply(null,arguments).exponent(.5)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>I});var n=r(396),i=r(787),o=r.n(i),a=r(2383),s=r(2402),c=r(2397),l=r(2409),u=r(2412),d=r(2399),p=r(2411),f=r(2413),h=r(2410),m=r(2414),g=r(2165),y=r(2068),v=r(2098),b=r(2350),_=r(2415),S=r(2417);function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
41for(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 T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(t){x(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O={squarify:h.default,resquarify:m.default,slice:p.default,dice:d.default,slicedice:f.default,binary:u.default},A=function(e){return e},R=["opacity","color"];function P(e){var t=function(e){var t=e.data.children||[],r=T(T(T({},e),(0,v.getMissingScaleProps)(e,t,R)),{},{_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,u=e.padding,d=e.sortFunction,p=e.getSize;if(!i)return[];if("partition"===o||"partition-pivot"===o){var f=(0,c.default)().size("partition-pivot"===o?[n,t]:[t,n]).padding(u)((0,a.default)(i).sum(p).sort(function(e,t){return d(e,t,p)})).descendants();return"partition-pivot"===o?f.map(function(e){return T(T({},e),{},{x0:e.y0,x1:e.y1,y0:e.x0,y1:e.x1})}):f}if("circlePack"===o)return(0,s.default)().size([t,n]).padding(u)((0,a.default)(i).sum(p).sort(function(e,t){return d(e,t,p)})).descendants();var h=O[o];return(0,l.default)(h).tile(h).size([t,n]).padding(u)((0,a.default)(i).sum(p).sort(function(e,t){return d(e,t,p)})).descendants()}(),u="SVG"===i?S.default:_.default;return n.default.createElement(u,E({},e,{nodes:o,scales:t}))}P.displayName="Treemap",P.propTypes={animation:y.AnimationPropType,className:o().string,data:o().object.isRequired,height:o().number.isRequired,hideRootNode:o().bool,margin:b.MarginPropType,mode:o().oneOf(Object.keys(O).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},P.defaultProps={className:"",colorRange:g.CONTINUOUS_COLOR_RANGE,_colorValue:g.DEFAULT_COLOR,data:{children:[]},hideRootNode:!1,margin:{left:40,right:10,top:10,bottom:40},mode:"squarify",onLeafClick:A,onLeafMouseOver:A,onLeafMouseOut:A,opacityType:g.OPACITY_TYPE,_opacityValue:g.DEFAULT_OPACITY,padding:1,sortFunction:function(e,t,r){return r?r(e)-r(t):0},getSize:function(e){return e.size},getColor:function(e){return e.color},getLabel:function(e){return e.title}};const I=P},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c}),r.dn(c);var n=r(2403),i=r(2404),o=r(2405),a=r(2406);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(l(e)).eachAfter(u(a,.5,c)).eachBefore(d(1)):n.eachBefore(l(s)).eachAfter(u(i.constantZero,1,c)).eachAfter(u(a,n.r/Math.min(t,r),c)).eachBefore(d(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 l(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function u(e,t,r){return function(n){if(i=n.children){var i,o,s,c=i.length,l=e(n)*t||0;if(l)for(o=0;o<c;++o)i[o].r+=l;if(s=(0,a.packSiblingsRandom)(i,r),l)for(o=0;o<c;++o)i[o].r-=l;n.r=s+l}}}function d(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}),r.dn(i)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a}),r.dn(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:()=>d,packSiblingsRandom:()=>u}),r.dn(d);var n=r(2407),i=r(2405),o=r(2408);function a(e,t,r){var n,i,o,a,s=e.x-t.x,c=e.y-t.y,l=s*s+c*c;l?(i=t.r+r.r,i*=i,a=e.r+r.r,i>(a*=a)?(n=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-n*n)),r.x=e.x-n*s-o*c,r.y=e.y-n*c+o*s):(n=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-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 l(e){this._=e,this.next=null,this.previous=null}function u(e,t){if(!(d=(e=(0,n.default)(e)).length))return 0;var r,i,u,d,p,f,h,m,g,y,v;if((r=e[0]).x=0,r.y=0,!(d>1))return r.r;if(i=e[1],r.x=-i.r,i.x=r.r,i.y=0,!(d>2))return r.r+i.r;a(i,r,u=e[2]),r=new l(r),i=new l(i),u=new l(u),r.next=u.previous=i,i.next=r.previous=u,u.next=i.previous=r;e:for(h=3;h<d;++h){a(r._,i._,u=e[h]),u=new l(u),m=i.next,g=r.previous,y=i._.r,v=r._.r;do{if(y<=v){if(s(m._,u._)){i=m,r.next=i,i.previous=r,--h;continue e}y+=m._.r,m=m.next}else{if(s(g._,u._)){(r=g).next=i,i.previous=r,--h;continue e}v+=g._.r,g=g.previous}}while(m!==g.next);for(u.previous=r,u.next=i,r.next=i.previous=i=u,p=c(r);(u=u.next)!==i;)(f=c(u))<p&&(r=u,p=f);
vendor: 4,705 bytes, line 41
41i=r.next}for(r=[i._],u=i;(u=u.next)!==i;)r.push(u._);for(u=(0,o.packEncloseRandom)(r,t),h=0;h<d;++h)(r=e[h]).x-=u.x,r.y-=u.y;return u.r}function d(e){return u(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}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o,packEncloseRandom:()=>a}),r.dn(o);var n=r(2407),i=r(2405);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&&l(i,r)?++o:(i=d(c=s(c,r)),o=0);return i}function s(e,t){var r,n;if(u(t,e))return[t];for(r=0;r<e.length;++r)if(c(t,e[r])&&u(p(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(c(p(e[r],e[n]),t)&&c(p(e[r],t),e[n])&&c(p(e[n],t),e[r])&&u(f(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 l(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 u(e,t){for(var r=0;r<t.length;++r)if(!l(e,t[r]))return!1;return!0}function d(e){switch(e.length){case 1:return{x:(t=e[0]).x,y:t.y,r:t.r};case 2:return p(e[0],e[1]);case 3:return f(e[0],e[1],e[2])}var t}function p(e,t){var r=e.x,n=e.y,i=e.r,o=t.x,a=t.y,s=t.r,c=o-r,l=a-n,u=s-i,d=Math.sqrt(c*c+l*l);return{x:(r+o+c/d*u)/2,y:(n+a+l/d*u)/2,r:(d+i+s)/2}}function f(e,t,r){var n=e.x,i=e.y,o=e.r,a=t.x,s=t.y,c=t.r,l=r.x,u=r.y,d=r.r,p=n-a,f=n-l,h=i-s,m=i-u,g=c-o,y=d-o,v=n*n+i*i-o*o,b=v-a*a-s*s+c*c,_=v-l*l-u*u+d*d,S=f*h-p*m,E=(h*_-m*b)/(2*S)-n,w=(m*g-h*y)/S,T=(f*b-p*_)/(2*S)-i,x=(p*y-f*g)/S,O=w*w+x*x-1,A=2*(o+E*w+T*x),R=E*E+T*T-o*o,P=-(Math.abs(O)>1e-6?(A+Math.sqrt(A*A-4*O*R))/(2*O):R/A);return{x:n+E+w*P,y:i+T+x*P,r:P}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s}),r.dn(s);var n=r(2398),i=r(2410),o=r(2403),a=r(2404);function s(){var e=i.default,t=!1,r=1,s=1,c=[0],l=a.constantZero,u=a.constantZero,d=a.constantZero,p=a.constantZero,f=a.constantZero;function h(e){return e.x0=e.y0=0,e.x1=r,e.y1=s,e.eachBefore(m),c=[0],t&&e.eachBefore(n.default),e}function m(t){var r=c[t.depth],n=t.x0+r,i=t.y0+r,o=t.x1-r,a=t.y1-r;o<n&&(n=o=(n+o)/2),a<i&&(i=a=(i+a)/2),t.x0=n,t.y0=i,t.x1=o,t.y1=a,t.children&&(r=c[t.depth+1]=l(t)/2,n+=f(t)-r,i+=u(t)-r,(o-=d(t)-r)<n&&(n=o=(n+o)/2),(a-=p(t)-r)<i&&(i=a=(i+a)/2),e(t,n,i,o,a))}return h.round=function(e){return arguments.length?(t=!!e,h):t},h.size=function(e){return arguments.length?(r=+e[0],s=+e[1],h):[r,s]},h.tile=function(t){return arguments.length?(e=(0,o.required)(t),h):e},h.padding=function(e){return arguments.length?h.paddingInner(e).paddingOuter(e):h.paddingInner()},h.paddingInner=function(e){return arguments.length?(l="function"==typeof e?e:(0,a.default)(+e),h):l},h.paddingOuter=function(e){return arguments.length?h.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):h.paddingTop()},h.paddingTop=function(e){return arguments.length?(u="function"==typeof e?e:(0,a.default)(+e),h):u},h.paddingRight=function(e){return arguments.length?(d="function"==typeof e?e:(0,a.default)(+e),h):d},h.paddingBottom=function(e){return arguments.length?(p="function"==typeof e?e:(0,a.default)(+e),h):p},h.paddingLeft=function(e){return arguments.length?(f="function"==typeof e?e:(0,a.default)(+e),h):f},h}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,phi:()=>o,squarifyRatio:()=>a});var n=r(2399),i=r(2411),o=(1+Math.sqrt(5))/2;function a(e,t,r,o,a,s){for(var c,l,u,d,p,f,h,m,g,y,v,b=[],_=t.children,S=0,E=0,w=_.length,T=t.value;S<w;){u=a-r,d=s-o;do{p=_[E++].value}while(!p&&E<w);for(f=h=p,v=p*p*(y=Math.max(d/u,u/d)/(T*e)),g=Math.max(h/v,v/f);E<w;++E){if(p+=l=_[E].value,l<f&&(f=l),l>h&&(h=l),v=p*p*y,(m=Math.max(h/v,v/f))>g){p-=l;break}g=m}b.push(c={value:p,dice:u<d,children:_.slice(S,E)}),c.dice?(0,n.default)(c,r,o,a,T?o+=d*p/T:s):(0,i.default)(c,r,o,T?r+=u*p/T:a,s),T-=p,S=E}return b}const s=function e(t){function r(e,r,n,i,o){a(t,e,r,n,i,o)}return r.ratio=function(t){return e((t=+t)>1?t:1)},r}(o)},(e,t,r)=>{"use strict";function n(e,t,r,n,i){for(var o,a=e.children,s=-1,c=a.length,l=e.value&&(i-r)/e.value;++s<c;)(o=a[s]).x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*l}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e,t,r,n,i){var o,a,s=e.children,c=s.length,l=new Array(c+1);for(l[0]=a=o=0;o<c;++o)l[o+1]=a+=s[o].value;!function e(t,r,n,i,o,a,c){if(t>=r-1){var u=s[t];return u.x0=i,u.y0=o,u.x1=a,void(u.y1=c)}var d=l[t],p=n/2+d,f=t+1,h=r-1;for(;f<h;){var m=f+h>>>1;l[m]<p?f=m+1:h=m}p-l[f-1]<l[f]-p&&t+1<f&&--f;var g=l[f]-d,y=n-g;if(a-i>c-o){var v=n?(i*y+a*g)/n:a;
41e(t,f,g,i,o,v,c),e(f,r,y,v,o,a,c)}else{var b=n?(o*y+c*g)/n:c;e(t,f,g,i,o,a,b),e(f,r,y,i,b,a,c)}}(0,c,e.value,t,r,n,i)}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o}),r.dn(o);var n=r(2399),i=r(2411);function o(e,t,r,o,a){(1&e.depth?i.default:n.default)(e,t,r,o,a)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(2399),i=r(2411),o=r(2410);const a=function e(t){function r(e,r,a,s,c){if((l=e._squarify)&&l.ratio===t)for(var l,u,d,p,f,h=-1,m=l.length,g=e.value;++h<m;){for(d=(u=l[h]).children,p=u.value=0,f=d.length;p<f;++p)u.value+=d[p].value;u.dice?(0,n.default)(u,r,a,s,g?a+=(c-a)*u.value/g:c):(0,i.default)(u,r,a,g?r+=(s-r)*u.value/g:s,c),g-=u.value}else e._squarify=l=(0,o.squarifyRatio)(t,e,r,a,s,c),l.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:()=>d});var n=r(396),i=r(2416),o=r(2166);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){l(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 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 u(e){var t=e.animation,r=e.className,s=e.height,l=e.hideRootNode,u=e.getLabel,d=e.mode,p=e.nodes,f=e.width,h=e.scales,m=e.style,g="circlePack"===d;return n.default.createElement("div",{className:(0,o.getCombinedClassName)("rv-treemap",g&&"rv-treemap-circle-paked",r),style:{height:s,width:f}},p.map(function(r,o){if(l&&!o)return null;var s=c(c({animation:t,node:r,getLabel:u},e),{},{x0:g?r.x:r.x0,x1:g?r.x:r.x1,y0:g?r.y:r.y0,y1:g?r.y:r.y1,r:g?r.r:1,scales:h,style:m});return n.default.createElement(i.default,a({},s,{key:"leaf-".concat(o)}))}))}u.displayName="TreemapDOM";const d=u},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(396),i=r(787),o=r.n(i),a=r(2068),s=r(2098);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){u(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 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 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)}var p=["colorRange","colorDomain","color","opacityRange","opacityDomain","opacity","x0","x1","y0","y1","r"];function f(e){var t=e.animation,r=e.getLabel,i=e.mode,o=e.node,c=e.onLeafClick,u=e.onLeafMouseOver,h=e.onLeafMouseOut,m=e.r,g=e.scales,y=e.x0,v=e.x1,b=e.y0,_=e.y1,S=e.style;if(t)return n.default.createElement(a.default,d({},e,{animatedProps:p}),n.default.createElement(f,d({},e,{animation:null})));var E="circlePack"===i,w=g.color(o),T=g.opacity(o),x=(0,s.getFontColorFromBackground)(w),O=r(o.data),A=l(l({top:E?b-m:b,left:E?y-m:y,width:E?2*m:v-y,height:E?2*m:_-b,background:w,opacity:T,color:x},S),o.data.style);return n.default.createElement("div",{className:"rv-treemap__leaf ".concat(E?"rv-treemap__leaf--circle":""),onMouseEnter:function(e){return u(o,e)},onMouseLeave:function(e){return h(o,e)},onClick:function(e){return c(o,e)},style:A},n.default.createElement("div",{className:"rv-treemap__leaf__content"},O))}f.propTypes={animation:a.AnimationPropType,height:o().number.isRequired,mode:o().string,node:o().object.isRequired,onLeafClick:o().func,onLeafMouseOver:o().func,onLeafMouseOut:o().func,scales:o().object.isRequired,width:o().number.isRequired,r:o().number.isRequired,x0:o().number.isRequired,x1:o().number.isRequired,y0:o().number.isRequired,y1:o().number.isRequired};const h=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r(396),i=r(2290),o=r(2282),a=r(2278),s=r(2275),c=r(2166);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 u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
41for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.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 p(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){f(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 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 m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===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 y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(f,e);var t,r,l,d=g(f);function f(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),d.apply(this,arguments)}return t=f,(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,l=e.scales,u=e.style,d=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:l.color(t)}])}},{rows:[],maxY:-1/0,minY:1/0,maxX:-1/0,minX:1/0}),p=d.rows,f=d.minY,h=d.maxY,m=d.minX,g=d.maxX;return{updatedNodes:n.default.createElement(a.default,{animation:t,className:"rv-treemap__leaf rv-treemap__leaf--circle",onSeriesMouseEnter:o,onSeriesMouseLeave:s,onSeriesClick:c,data:p,colorType:"literal",getColor:function(e){return e.color},sizeType:"literal",getSize:function(e){return e.size},style:u}),minY:f,maxY:h,minX:m,maxX:g}}},{key:"getNonCircularNodes",value:function(){var e=this.props,t=e.animation,r=e.hideRootNode,i=e.nodes,a=e.onLeafMouseOver,s=e.onLeafMouseOut,c=e.onLeafClick,l=e.scales,u=e.style,d=l.color;return i.reduce(function(e,i,l){if(!l&&r)return e;var f=i.x0,h=i.x1,m=i.y1,g=i.y0,y=f,v=g,b=m-g,_=h-f;e.maxY=Math.max(v+b,e.maxY),e.minY=Math.min(v,e.minY),e.maxX=Math.max(y+_,e.maxX),e.minX=Math.min(y,e.minX);var S=[{x:y,y:v},{x:y,y:v+b},{x:y+_,y:v+b},{x:y+_,y:v}];return e.updatedNodes=e.updatedNodes.concat([n.default.createElement(o.default,{animation:t,className:"rv-treemap__leaf",key:l,color:d(i),type:"literal",onSeriesMouseEnter:a,onSeriesMouseLeave:s,onSeriesClick:c,data:S,style:p(p({},u),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,l=e.width,d="circlePack"===o,f=d?this.getCircularNodes():this.getNonCircularNodes(),h=f.minY,m=f.maxY,g=f.minX,y=f.maxX,v=f.updatedNodes,b=a.reduce(function(e,t){return t.data.title?e.concat(p(p({},t.data),{},{x:t.x0||t.x,y:t.y0||t.y,label:"".concat(t.data.title)})):e},[]);
41return n.default.createElement(i.default,u({className:(0,c.getCombinedClassName)("rv-treemap",d&&"rv-treemap-circle-paked",t),width:l,height:r,yDomain:[m,h],xDomain:[g,y],colorType:"literal",hasTreeStructure:!0},this.props),v,n.default.createElement(s.default,{data:b}))}}])&&h(t.prototype,r),l&&h(t,l),f}(n.default.Component);v.displayName="TreemapSVG";const b=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(396);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:()=>k,FlexibleWidthXYPlot:()=>C,FlexibleXYPlot:()=>M,makeHeightFlexible:()=>R,makeVisFlexible:()=>P,makeWidthFlexible:()=>I});var n=r(396),i=r(2420),o=r.n(i),a=r(2290),s=r(2156);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function 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 d(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){b(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){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 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,r){return t&&f(e.prototype,t),r&&f(e,r),e}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return y(e)}(this,r)}}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _="container",S=[],E=100,w=null;function T(){o().clearTimeout(w),w=o().setTimeout(x,E)}function x(){S.forEach(function(e){return e()})}function O(e){return S.push(e),1===S.length&&o().addEventListener("resize",T),function(){!function(e){var t=S.indexOf(e);t>-1&&S.splice(t,1)}(e),0===S.length&&(o().clearTimeout(w),o().removeEventListener("resize",T))}}function A(e,t,r){var i,o=(i=function(i){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(a,i);var o=g(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),b(y(t=o.call(this,e)),"_onResize",function(){var e=(0,s.getDOMNode)(t[_]),r=e.offsetHeight,n=e.offsetWidth,i=t.state.height===r?{}:{height:r},o=t.state.width===n?{}:{width:n};t.setState(d(d({},i),o))}),t.state={height:0,width:0},t}
41return h(a,null,[{key:"propTypes",get:function(){var t=e.propTypes;t.height,t.width;return p(t,["height","width"])}}]),h(a,[{key:"componentDidMount",value:function(){this._onResize(),this.cancelSubscription=O(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=d(d({},this.props),{},{animation:0===a&&0===s?null:this.props.animation}),u=d(d({},r?{height:a}:{}),t?{width:s}:{});return n.default.createElement("div",{ref:function(e){return i[_]=e},style:{width:"100%",height:"100%"}},n.default.createElement(e,l({},u,c)))}}]),a}(n.default.Component),i);return o.displayName="Flexible".concat(function(e){return e.displayName||e.name||"Component"}(e)),o}function R(e){return A(e,!1,!0)}function P(e){return A(e,!0,!0)}function I(e){return A(e,!0,!1)}var C=I(a.default),k=R(a.default),M=P(a.default)},e=>{var t;t="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e.exports=t},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{compareVersions:()=>i});var n=r(2702);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);
41if(!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,{Container:()=>m});var n=r(919),i=r(917),o=r(2792),a=r(2794),s=r(931),c=r(950),l=r(2795),u=r(2798),d=r(932),p=r(952);function f(e){return!e.destroyed}function h(e,t,...r){const n=new c.Options(e,t);return(0,p.loadOptions)(n,...r),n}class m{actualOptions;canvas;destroyed;effectDrawers;fpsLimit;hdr;id;pageHidden;particleCreatedPlugins;particleDestroyedPlugins;particlePositionPlugins;particleUpdaters;particles;plugins;retina;shapeDrawers;started;zLayers;#S;#E;#w={value:0,factor:0};#T;#x;#O;#A;#R;#P;#I;#C;#k;#M;#D;#f;#N;#L;constructor(e){const{dispatchCallback:t,pluginManager:r,id:n,onDestroy:i,sourceOptions:c}=e;this.#f=r,this.#T=t,this.#k=i,this.id=Symbol(n),this.fpsLimit=120,this.hdr=!1,this.#N=!1,this.#S=0,this.#O=0,this.#C=0,this.#R=!0,this.started=!1,this.destroyed=!1,this.#D=!0,this.#I=0,this.zLayers=100,this.pageHidden=!1,this.#L=c,this.#P=c,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.retina=new u.Retina(this),this.canvas=new o.CanvasManager(this.#f,this),this.particles=new l.ParticlesManager(this.#f,this),this.plugins=[],this.particleDestroyedPlugins=[],this.particleCreatedPlugins=[],this.particlePositionPlugins=[],this.#M=h(this.#f,this),this.actualOptions=h(this.#f,this),this.#A=new a.EventListeners(this),this.dispatchEvent(s.EventType.containerBuilt)}get animationStatus(){return!this.#D&&!this.pageHidden&&f(this)}get options(){return this.#M}get sourceOptions(){return this.#L}addLifeTime(e){this.#C+=e}alive(){return!this.#O||this.#C<=this.#O}destroy(e=!0){if(f(this)){this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,e]of this.effectDrawers)e.destroy?.(this);for(const[,e]of this.shapeDrawers)e.destroy?.(this);for(const e of this.plugins)e.destroy?.();this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.plugins.length=0,this.#f.clearPlugins(this),this.destroyed=!0,this.#k(e),this.dispatchEvent(s.EventType.containerDestroyed)}}dispatchEvent(e,t){this.#T(e,{container:this,data:t})}draw(e){if(!f(this))return;let t=e;this.#x=(0,n.animate)(e=>{t&&(this.#I=void 0,t=!1),this.#F(e)})}async export(e,t={}){for(const r of this.plugins){if(!r.export)continue;const n=await r.export(e,t);if(n.supported)return n.blob}(0,d.getLogger)().error(`Export plugin with type ${e} not found`)}
vendor: 4,810 bytes, line 41
41async init(){if(!f(this))return;const e=new Map;for(const t of this.#f.plugins){const r=await t.getPlugin(this);r.preInit&&await r.preInit(),e.set(t,r)}await this.initDrawersAndUpdaters(),this.#M=h(this.#f,this,this.#P,this.sourceOptions),this.actualOptions=h(this.#f,this,this.#M),this.plugins.length=0,this.particleDestroyedPlugins.length=0,this.particleCreatedPlugins.length=0,this.particlePositionPlugins.length=0;for(const[t,r]of e)t.needsPlugin(this.actualOptions)&&(this.plugins.push(r),r.particleCreated&&this.particleCreatedPlugins.push(r),r.particleDestroyed&&this.particleDestroyedPlugins.push(r),r.particlePosition&&this.particlePositionPlugins.push(r));this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{delay:t,duration:r,fpsLimit:o,hdr:a,smooth:c,zLayers:l}=this.actualOptions;this.hdr=a,this.zLayers=l,this.#O=(0,n.getRangeValue)(r)*i.millisecondsToSeconds,this.#S=(0,n.getRangeValue)(t)*i.millisecondsToSeconds,this.#C=0,this.fpsLimit=o>i.minFpsLimit?o:i.defaultFpsLimit,this.#N=c;for(const e of this.plugins)await(e.init?.());await this.particles.init(),this.dispatchEvent(s.EventType.containerInit),this.particles.setDensity();for(const e of this.plugins)e.particlesSetup?.();this.dispatchEvent(s.EventType.particlesSetup)}async initDrawersAndUpdaters(){const e=this.#f;this.effectDrawers=await e.getEffectDrawers(this,!0),this.shapeDrawers=await e.getShapeDrawers(this,!0),this.particleUpdaters=await e.getUpdaters(this,!0)}pause(){if(f(this)&&(void 0!==this.#x&&((0,n.cancelAnimation)(this.#x),this.#x=void 0),!this.#D)){for(const e of this.plugins)e.pause?.();this.pageHidden||(this.#D=!0),this.dispatchEvent(s.EventType.containerPaused)}}play(e){if(!f(this))return;const t=this.#D||e;if(!this.#R||this.actualOptions.autoPlay){if(this.#D&&(this.#D=!1),t)for(const e of this.plugins)e.play&&e.play();this.dispatchEvent(s.EventType.containerPlay),this.draw(t??!1)}else this.#R=!1}async refresh(){if(f(this))return this.stop(),this.start()}async reset(e){if(f(this))return this.#P=e,this.#L=e,this.#M=h(this.#f,this,this.#P,this.sourceOptions),this.actualOptions=h(this.#f,this,this.#M),this.refresh()}async start(){f(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(e=>{const t=async()=>{this.#A.addListeners();for(const e of this.plugins)await(e.start?.());this.dispatchEvent(s.EventType.containerStarted),this.play(),e()};this.#E=setTimeout(()=>{t()},this.#S)}))}stop(){if(f(this)&&this.started){this.#E&&(clearTimeout(this.#E),this.#E=void 0),this.#R=!0,this.started=!1,this.#A.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop();for(const e of this.plugins)e.stop?.();this.particleCreatedPlugins.length=0,this.particleDestroyedPlugins.length=0,this.particlePositionPlugins.length=0,this.#L=this.#M,this.dispatchEvent(s.EventType.containerStopped)}}updateActualOptions(){let e=!1;for(const t of this.plugins)t.updateActualOptions&&(e=t.updateActualOptions()||e);return e}#F=e=>{try{if(!this.#N&&void 0!==this.#I&&e<this.#I+i.millisecondsToSeconds/this.fpsLimit)return void this.draw(!1);if(this.#I??=e,function(e,t,r=i.defaultFps,n=!1){e.value=t,e.factor=n?i.defaultFps/r:i.defaultFps*t/i.millisecondsToSeconds}(this.#w,e-this.#I,this.fpsLimit,this.#N),this.addLifeTime(this.#w.value),this.#I=e,this.#w.value>i.millisecondsToSeconds)return void this.draw(!1);if(this.canvas.render.drawParticles(this.#w),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(e){(0,d.getLogger)().error("error in animation loop",e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CanvasManager:()=>l});var n=r(918),i=r(917),o=r(974),a=r(2793);const s=new WeakMap;function c(e,t,r=!1){if(!t)return;const n=e.style,i=new Set;for(let e=0;e<n.length;e++){const t=n.item(e);t&&i.add(t)}for(let e=0;e<t.length;e++){const r=t.item(e);r&&i.add(r)}for(const e of i){const i=t.getPropertyValue(e);i?n.setProperty(e,i,r?"important":""):n.removeProperty(e)}}class l{domElement;render;renderCanvas;size;zoom=i.defaultZoom;#p;#B;#j;#U;#f;#H;#z;#V;#G;constructor(e,t){this.#f=e,this.#p=t,this.render=new a.RenderManager(e,t,this),this.#V={height:0,width:0};const r=t.retina.pixelRatio,n=this.#V;this.size={height:n.height*r,width:n.width*r},this.#B=!1,this.#z=[],this.#H="none"}get#$(){return this.#p.actualOptions.fullScreen.enable}destroy(){if(this.stop(),this.#B){const e=this.domElement;e?.remove(),this.domElement=void 0,this.renderCanvas=void 0}else this.#q();this.render.destroy(),this.#z=[]}getZoomCenter(){const e=this.#p.retina.pixelRatio,{width:t,height:r}=this.size;return this.#G?this.#G:{x:t*i.half/e,y:r*i.half/e}}init(){this.#W(e=>{e.disconnect()}),this.#j=(0,n.safeMutationObserver)(e=>{for(const t of e)"attributes"===t.type&&"style"===t.attributeName&&this.#K()}
41),this.resize(),this.#Y(),this.initBackground(),this.#W(e=>{const t=this.domElement;t&&t instanceof Node&&e.observe(t,{attributes:!0})}),this.initPlugins(),this.render.init()}initBackground(){const e=this.#p,t=e.actualOptions.background,r=this.domElement;if(!r)return;const n=r.style,i=(0,o.rangeColorToRgb)(this.#f,t.color);n.backgroundColor=i?(0,o.getStyleFromRgb)(i,e.hdr,t.opacity):"",n.backgroundImage=t.image||"",n.backgroundPosition=t.position||"",n.backgroundRepeat=t.repeat||"",n.backgroundSize=t.size||""}initPlugins(){this.#z=[];for(const e of this.#p.plugins)e.resize&&this.#z.push(e)}loadCanvas(e){this.#B&&this.domElement&&this.domElement.remove();const t=this.#p,r=(e=>"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement)(e)?e:void 0;this.domElement=r,this.#B=!!r&&"true"===r.dataset[i.generatedAttribute],this.renderCanvas=r?(e=>{const t=s.get(e);if(t)return t;if("function"!=typeof e.transferControlToOffscreen)throw new TypeError("OffscreenCanvas is required but not supported by this browser");try{const t=e.transferControlToOffscreen();return s.set(e,t),t}catch{throw new TypeError("OffscreenCanvas transfer failed")}})(r):e;const o=this.domElement;o&&(o.ariaHidden="true",this.#U=(0,n.cloneStyle)(o.style));const a=this.#V,c=this.renderCanvas;o?(a.height=o.offsetHeight,a.width=o.offsetWidth):(a.height=c.height,a.width=c.width);const l=this.#p.retina.pixelRatio,u=this.size;c.height=u.height=a.height*l,c.width=u.width=a.width*l;const d=(0,n.safeMatchMedia)("(color-gamut: p3)");this.render.setContextSettings({alpha:!0,colorSpace:d?.matches&&t.hdr?"display-p3":"srgb",desynchronized:!0,willReadFrequently:!1}),this.render.setContext(c.getContext("2d",this.render.settings)),this.#W(e=>{e.disconnect()}
vendor: 1,327 bytes, line 41
41),t.retina.init(),this.initBackground(),this.#W(e=>{const t=this.domElement;t&&t instanceof Node&&e.observe(t,{attributes:!0})})}resize(){const e=this.domElement;if(!e)return!1;const t=this.#p,r=this.renderCanvas;if(void 0===r)return!1;const n=t.canvas.#V,i={width:e.offsetWidth,height:e.offsetHeight},o=t.retina.pixelRatio,a={width:i.width*o,height:i.height*o};if(i.height===n.height&&i.width===n.width&&a.height===r.height&&a.width===r.width)return!1;const s={...n};n.height=i.height,n.width=i.width;const c=this.size;return r.width=c.width=a.width,r.height=c.height=a.height,this.#p.started&&t.particles.setResizeFactor({width:n.width/s.width,height:n.height/s.height}),!0}setPointerEvents(e){this.domElement&&(this.#H=e,this.#K())}setZoom(e,t){this.zoom=e,this.#G=t}stop(){this.#W(e=>{e.disconnect()}),this.#j=void 0,this.render.stop()}async windowResize(){if(!this.domElement||!this.resize())return;const e=this.#p,t=e.updateActualOptions();e.particles.setDensity(),this.#J(),t&&await e.refresh()}#J=()=>{for(const e of this.#z)e.resize?.()};#Y=()=>{const e=this.domElement,t=this.#p.actualOptions;if(e){this.#$?this.#Q():this.#q();for(const r in t.style){if(!r||!(r in t.style))continue;const n=t.style[r];n&&e.style.setProperty(r,n,"important")}}};#K=()=>{const e=this.domElement;if(!e)return;this.#W(e=>{e.disconnect()}
41),this.#Y(),this.initBackground();const t=this.#H;e.style.pointerEvents=t,e.style.setProperty("pointer-events",t),this.#W(t=>{e instanceof Node&&t.observe(e,{attributes:!0})})};#q=()=>{const e=this.domElement,t=this.#U;e&&t&&c(e,t,!0)};#W=e=>{this.#j&&e(this.#j)};#Q=()=>{const e=this.domElement;e&&c(e,(0,n.getFullScreenStyle)(this.#p.actualOptions.fullScreen.zIndex),!0)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RenderManager:()=>s});var n=r(973),i=r(917),o=r(974);function a(e,t,r){const n=t[r];void 0!==n&&(e[r]=(e[r]??i.defaultTransformValue)*n)}class s{#X;#Z;#ee;#te;#re;#p;#ne;#ie;#oe;#ae;#se;#ce;#le;#ue;#f;#de;#pe;#fe={};#he=[void 0,void 0];#me={};constructor(e,t,r){this.#f=e,this.#p=t,this.#Z=r,this.#ne=null,this.#pe=[],this.#de=[],this.#re=[],this.#X=[],this.#ee=[],this.#te=[],this.#oe=[],this.#ae=[],this.#se=[],this.#ce=[],this.#ue=[],this.#le=[]}get settings(){return this.#ie}canvasClear(){this.#p.actualOptions.clear&&this.draw(e=>{(0,n.clear)(e,this.#Z.size)})}clear(){let e=!1;for(const t of this.#X)if(e=t.canvasClear?.()??!1,e)break;e||this.canvasClear()}destroy(){this.stop(),this.#pe=[],this.#de=[],this.#re=[],this.#X=[],this.#ee=[],this.#te=[],this.#oe=[],this.#ae=[],this.#se=[],this.#ce=[],this.#ue=[],this.#le=[]}draw(e){const t=this.#ne;if(t)return e(t)}drawParticle(e,t){if(e.spawning||e.destroyed)return;const r=e.getRadius();if(r<=i.minimumSize)return;const a=e.getFillColor(),s=e.getStrokeColor();let[c,l]=this.#ge(e);if(c??=a,l??=s,!c&&!l)return;const u=this.#p,d=e.options.zIndex,p=i.zIndexFactorOffset-e.zIndexFactor,{fillOpacity:f,opacity:h,strokeOpacity:m}=e.getOpacity(),g=this.#me,y=this.#fe,v=c?(0,o.getStyleFromHsl)(c,u.hdr,f*h):void 0,b=l?(0,o.getStyleFromHsl)(l,u.hdr,m*h):v;g.a=g.b=g.c=g.d=void 0,y.fill=v,y.stroke=b,this.draw(i=>{for(const r of this.#se)r.drawParticleSetup?.(i,e,t);this.#ye(i,e,r,h,y,g),(0,n.drawParticle)({container:u,context:i,particle:e,delta:t,colorStyles:y,radius:r*p**d.sizeRate,opacity:h,transform:g}),this.#ve(e);for(const r of this.#ae)r.drawParticleCleanup?.(i,e,t)})}drawParticlePlugins(e,t){this.draw(r=>{for(const i of this.#oe)(0,n.drawParticlePlugin)(r,i,e,t)})}drawParticles(e){const{particles:t}=this.#p;this.clear(),t.update(e),this.draw(r=>{for(const t of this.#ue)t.drawSettingsSetup?.(r,e);for(const t of this.#ce)t.draw?.(r,e);t.drawParticles(e);for(const t of this.#te)t.clearDraw?.(r,e);for(const t of this.#le)t.drawSettingsCleanup?.(r,e)})}init(){this.initUpdaters(),this.initPlugins(),this.paint()}initPlugins(){this.#re=[],this.#X=[],this.#ee=[],this.#te=[],this.#oe=[],this.#se=[],this.#ae=[],this.#ce=[],this.#ue=[],this.#le=[];for(const e of this.#p.plugins)(e.particleFillColor??e.particleStrokeColor)&&this.#re.push(e),e.canvasClear&&this.#X.push(e),e.canvasPaint&&this.#ee.push(e),e.drawParticle&&this.#oe.push(e),e.drawParticleSetup&&this.#se.push(e),e.drawParticleCleanup&&this.#ae.push(e),e.draw&&this.#ce.push(e),e.drawSettingsSetup&&this.#ue.push(e),e.drawSettingsCleanup&&this.#le.push(e),e.clearDraw&&this.#te.push(e)}initUpdaters(){this.#pe=[],this.#de=[];for(const e of this.#p.particleUpdaters)e.afterDraw&&this.#de.push(e),(e.getColorStyles??e.getTransformValues??e.beforeDraw)&&this.#pe.push(e)}paint(){let e=!1;for(const t of this.#ee)if(e=t.canvasPaint?.()??!1,e)break;e||this.paintBase()}paintBase(e){this.draw(t=>{(0,n.paintBase)(t,this.#Z.size,e)})}paintImage(e,t){this.draw(r=>{(0,n.paintImage)(r,this.#Z.size,e,t)})}setContext(e){this.#ne=e,this.#ne&&(this.#ne.globalCompositeOperation=i.defaultCompositeValue)}setContextSettings(e){this.#ie=e}stop(){this.draw(e=>{(0,n.clear)(e,this.#Z.size)})}#ve=e=>{for(const t of this.#de)t.afterDraw?.(e)};#ye=(e,t,r,n,i,o)=>{for(const s of this.#pe){if(s.getColorStyles){const{fill:o,stroke:a}=s.getColorStyles(t,e,r,n);o&&(i.fill=o),a&&(i.stroke=a)}if(s.getTransformValues){const e=s.getTransformValues(t);for(const t in e)a(o,e,t)}s.beforeDraw?.(t)}};#ge=e=>{let t,r;for(const n of this.#re)if(!t&&n.particleFillColor&&(t=(0,o.rangeColorToHsl)(this.#f,n.particleFillColor(e))),!r&&n.particleStrokeColor&&(r=(0,o.rangeColorToHsl)(this.#f,n.particleStrokeColor(e))),t&&r)break;return this.#he[0]=t,this.#he[1]=r,this.#he}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EventListeners:()=>o});var n=r(918),i=r(917);class o{#p;#be;#_e;#Se;constructor(e){this.#p=e,this.#be={visibilityChange:()=>
vendor: 2,625 bytes, line 41
41{this.#Ee()},resize:()=>{this.#we()}}}addListeners(){this.#Te(!0)}removeListeners(){this.#Te(!1)}#Ee=()=>{const e=this.#p;e.actualOptions.pauseOnBlur&&((0,n.safeDocument)().hidden?(e.pageHidden=!0,e.pause()):(e.pageHidden=!1,e.animationStatus?e.play(!0):e.draw(!0)))};#we=()=>{this.#Se&&(clearTimeout(this.#Se),this.#Se=void 0);const e=async()=>{const e=this.#p.canvas;await e.windowResize()};this.#Se=setTimeout(()=>{e()},this.#p.actualOptions.resize.delay*i.millisecondsToSeconds)};#Te=e=>{const t=this.#be;this.#xe(e),(0,n.manageListener)(document,i.visibilityChangeEvent,t.visibilityChange,e,!1)};#xe=e=>{const t=this.#be,r=this.#p;if(!r.actualOptions.resize.enable)return;if("undefined"==typeof ResizeObserver)return void(0,n.manageListener)(globalThis,i.resizeEvent,t.resize,e);const o=r.canvas.domElement;this.#_e&&!e?(o&&this.#_e.unobserve(o),this.#_e.disconnect(),this.#_e=void 0):!this.#_e&&e&&o&&(this.#_e=new ResizeObserver(e=>{e.find(e=>e.target===o)&&this.#we()}),this.#_e.observe(o))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesManager:()=>u});var n=r(917),i=r(931),o=r(937),a=r(2796),s=r(2797),c=r(932),l=r(952);class u{checkParticlePositionPlugins;grid;#Oe;#p;#Ae;#Re;#Pe;#Ie;#Ce;#ke;#f;#Me;#De;#Ne;#Le;#Fe;#Be;constructor(e,t){this.#f=e,this.#p=t,this.#Pe=0,this.#Oe=[],this.#Me=[],this.#Re=0,this.#Ae=new Map,this.#Ie=new Map,this.#Be=this.#je(this.#p.zLayers),this.grid=new s.SpatialHashGrid(n.spatialHashGridCellSize),this.checkParticlePositionPlugins=[],this.#Ce=[],this.#ke=[],this.#Ne=[],this.#De=[],this.#Fe=[]}get count(){return this.#Oe.length}addParticle(e,t,r,s){const l=this.#p.actualOptions.particles.number.limit.mode,u=void 0===r?this.#Re:this.#Ae.get(r)??this.#Re,d=this.count;if(u>n.minLimit)switch(l){case o.LimitMode.delete:{const e=d+n.countOffset-u;e>n.minCount&&this.removeQuantity(e);break}case o.LimitMode.wait:if(d>=u)return}try{const n=this.#Me.pop()??new a.Particle(this.#f,this.#p);n.init(this.#Pe,e,t,r);let o=!0;return s&&(o=s(n)),o?(this.#Oe.push(n),this.#Ue(n),this.#Pe++,this.#p.dispatchEvent(i.EventType.particleAdded,{particle:n}),n):void this.#Me.push(n)}catch(e){(0,c.getLogger)().warning(`error adding particle: ${e}`)}}clear(){this.#Oe=[],this.#Ie.clear(),this.#He(this.#p.zLayers)}destroy(){this.#Oe=[],this.#Me.length=0,this.#Ie.clear(),this.#Be=[],this.checkParticlePositionPlugins=[],this.#Ce=[],this.#ke=[],this.#Ne=[],this.#De=[],this.#Fe=[]}drawParticles(e){for(let t=this.#Be.length-n.one;t>=n.minIndex;t--){const r=this.#Be[t];if(r)for(const t of r)t.draw(e)}}filter(e){return this.#Oe.filter(e)}find(e){return this.#Oe.find(e)}get(e){return this.#Oe[e]}
41async init(){const e=this.#p,t=e.actualOptions;this.checkParticlePositionPlugins=[],this.#Fe=[],this.#ke=[],this.#Ne=[],this.#Ce=[],this.#De=[],this.#Ie.clear(),this.#He(e.zLayers),this.grid=new s.SpatialHashGrid(n.spatialHashGridCellSize*e.retina.pixelRatio);for(const t of e.plugins)t.redrawInit&&await t.redrawInit(),t.checkParticlePosition&&this.checkParticlePositionPlugins.push(t),t.update&&this.#Fe.push(t),t.particleUpdate&&this.#ke.push(t),t.postUpdate&&this.#Ne.push(t),t.particleReset&&this.#Ce.push(t),t.postParticleUpdate&&this.#De.push(t);await this.#p.initDrawersAndUpdaters();for(const t of this.#p.effectDrawers.values())await(t.init?.(e));for(const t of this.#p.shapeDrawers.values())await(t.init?.(e));let r=!1;for(const t of e.plugins)if(r=t.particlesInitialization?.()??r,r)break;if(!r){const e=t.particles,r=e.groups;for(const t in r){const n=r[t];if(n)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()}}push(e,t,r,n){for(let i=0;i<e;i++)this.addParticle(t,r,n)}async redraw(){this.clear(),await this.init(),this.#p.canvas.render.drawParticles({value:0,factor:0})}remove(e,t,r){this.removeAt(this.#Oe.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.#ze(n,r,i)&&(n--,o++)}removeQuantity(e,t){this.removeAt(n.minIndex,e,t)}setDensity(){const e=this.#p.actualOptions,t=e.particles.groups;let r=0;for(const e of this.#p.plugins)e.particlesDensityCount&&(r+=e.particlesDensityCount());for(const e in t){const n=t[e];if(!n)continue;const i=(0,l.loadParticlesOptions)(this.#f,this.#p,n);this.#Ve(i,r,e)}this.#Ve(e.particles,r)}setResizeFactor(e){this.#Le=e}update(e){this.grid.clear();for(const t of this.#Fe)t.update?.(e);const t=this.#Ge(e);for(const t of this.#Ne)t.postUpdate?.(e);if(this.#$e(e,t),t.size)for(const e of t)this.remove(e);this.#Le=void 0}#qe=(...e)=>{this.#Me.push(...e)};#Ve=(e,t,r,i)=>{const o=e.number;if(!o.density.enable)return void(void 0===r?this.#Re=o.limit.value:(i?.number.limit.value??o.limit.value)&&this.#Ae.set(r,i?.number.limit.value??o.limit.value));const a=this.#We(o.density),s=o.value,c=o.limit.value>n.minLimit?o.limit.value:s,l=Math.min(s,c)*a+t,u=Math.min(this.count,this.filter(e=>e.group===r).length);void 0===r?this.#Re=o.limit.value*a:this.#Ae.set(r,o.limit.value*a),u<l?this.push(Math.abs(l-u),void 0,e,r):u>l&&this.removeQuantity(u-l,r)};#je=e=>{const t=Math.max(Math.floor(e),n.one);return Array.from({length:t},()=>[])};#Ke=e=>{const t=this.#Be.length-n.one;return t<=n.minIndex?n.minIndex:Math.min(Math.max(Math.floor(e),n.minIndex),t)};#Ye=(e,t)=>{let r=n.minIndex,i=e.length;for(;r<i;){const o=Math.floor((r+i)/n.double),a=e[o];a?a.id<t?r=o+n.one:i=o:i=o}return r};#We=e=>{const t=this.#p;if(!e.enable)return n.defaultDensityFactor;const r=t.canvas.size,i=t.retina.pixelRatio;return r.width&&r.height?r.width*r.height/(e.height*e.width*i**n.squareExp):n.defaultDensityFactor};#Ue=e=>{const t=this.#Ke(e.position.z),r=this.#Be[t];r&&(r.splice(this.#Ye(r,e.id),n.empty,e),this.#Ie.set(e.id,t))};#ze=(e,t,r)=>{const o=this.#Oe[e];return!!o&&(o.group===t&&(this.#Oe.splice(e,n.deleteCount),this.#Je(o),o.destroy(r),this.#p.dispatchEvent(i.EventType.particleRemoved,{particle:o}),this.#qe(o),!0))};#Je=e=>{const t=this.#Ie.get(e.id)??this.#Ke(e.position.z),r=this.#Be[t];if(!r)return void this.#Ie.delete(e.id);const i=this.#Ye(r,e.id);r[i]?.id===e.id?(r.splice(i,n.deleteCount),this.#Ie.delete(e.id)):this.#Ie.delete(e.id)};#He=e=>{const t=Math.max(Math.floor(e),n.one);if(this.#Be.length===t)for(const e of this.#Be)e.length=n.minIndex;else this.#Be=this.#je(t)};#Qe=e=>{const t=this.#Ke(e.position.z),r=this.#Ie.get(e.id);if(void 0===r)return void this.#Ue(e);if(r===t)return;const i=this.#Be[r];if(i){const t=this.#Ye(i,e.id);i[t]?.id===e.id&&i.splice(t,n.deleteCount)}const o=this.#Be[t];o?(o.splice(this.#Ye(o,e.id),n.empty,e),this.#Ie.set(e.id,t)):this.#Ie.set(e.id,t)};#Ge=e=>{const t=new Set,r=this.#Le;for(const n of this.#Oe){r&&!n.ignoresResizeRatio&&(n.position.x*=r.width,n.position.y*=r.height,n.initialPosition.x*=r.width,n.initialPosition.y*=r.height),n.ignoresResizeRatio=!1;for(const e of this.#Ce)e.particleReset?.(n);for(const t of this.#ke){if(n.destroyed)break;t.particleUpdate?.(n,e)}n.destroyed?t.add(n):this.grid.insert(n)}return t};#$e=(e,t)=>
41{for(const r of this.#Oe)if(r.destroyed)t.add(r);else{for(const t of this.#p.particleUpdaters)t.update(r,e);if(!r.spawning)for(const t of this.#De)t.postParticleUpdate?.(r,e);this.#Qe(r)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Particle:()=>m});var n=r(921),i=r(974),o=r(919),a=r(918),s=r(917),c=r(931),l=r(920),u=r(938),d=r(926),p=r(941),f=r(952);function h(e){if(!(0,a.isInArray)(e.outMode,e.checkModes))return;const t=e.radius*s.double;e.coord>e.maxCoord-t?e.setCb(-e.radius):e.coord<t&&e.setCb(e.radius)}class m{backColor;bubble;destroyed;direction;effect;effectClose;effectData;fillColor;fillEnabled;fillOpacity;group;id;ignoresResizeRatio;initialPosition;initialVelocity;isRotating;justWarped;lastPathTime;misplaced;moveCenter;offset;opacity;options;outType;pathRotation;position;randomIndexData;retina;roll;rotation;shape;shapeClose;shapeData;sides;size;slow;spawning;strokeColor;strokeOpacity;strokeWidth;unbreakable;velocity;zIndexFactor;#Xe={fillOpacity:s.defaultOpacity,opacity:s.defaultOpacity,strokeOpacity:s.defaultOpacity};#Ze=n.Vector3d.origin;#et={sin:0,cos:0};#tt={a:1,b:0,c:0,d:1};#p;#f;constructor(e,t){this.#f=e,this.#p=t}destroy(e){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const t=this.#p,r=this.shape?t.shapeDrawers.get(this.shape):void 0;r?.particleDestroy?.(this);for(const r of t.particleDestroyedPlugins)r.particleDestroyed?.(this,e);for(const r of t.particleUpdaters)r.particleDestroyed?.(this,e);this.#p.dispatchEvent(c.EventType.particleDestroyed,{particle:this})}draw(e){const t=this.#p.canvas.render;t.drawParticlePlugins(this,e),t.drawParticle(this,e)}getAngle(){return this.rotation+(this.pathRotation?this.velocity.angle:s.defaultAngle)}getFillColor(){return this.#rt(this.bubble.color??(0,i.getHslFromAnimation)(this.fillColor))}getMass(){return this.getRadius()**s.squareExp*Math.PI*s.half}getOpacity(){const e=this.options.zIndex,t=(s.zIndexFactorOffset-this.zIndexFactor)**e.opacityRate,r=this.bubble.opacity??(0,o.getRangeValue)(this.opacity?.value??s.defaultOpacity),n=this.fillOpacity??s.defaultOpacity,i=this.strokeOpacity??s.defaultOpacity;return this.#Xe.fillOpacity=r*n*t,this.#Xe.opacity=r*t,this.#Xe.strokeOpacity=r*i*t,this.#Xe}getPosition(){return this.#Ze.x=this.position.x+this.offset.x,this.#Ze.y=this.position.y+this.offset.y,this.#Ze.z=this.position.z,this.#Ze}getRadius(){return this.bubble.radius??this.size.value}getRotateData(){const e=this.getAngle();return this.#et.sin=Math.sin(e),this.#et.cos=Math.cos(e),this.#et}getStrokeColor(){return this.#rt(this.bubble.color??(0,i.getHslFromAnimation)(this.strokeColor))}getTransformData(e){const t=this.getRotateData(),r=this.isRotating;return this.#tt.a=t.cos*(e.a??s.defaultTransform.a),this.#tt.b=r?t.sin*(e.b??s.identity):e.b??s.defaultTransform.b,this.#tt.c=r?-t.sin*(e.c??s.identity):e.c??s.defaultTransform.c,this.#tt.d=t.cos*(e.d??s.defaultTransform.d),this.#tt}init(e,t,r,n){const i=this.#p;this.id=e,this.group=n,this.justWarped=!1,this.effectClose=!0,this.shapeClose=!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:{},maxSpeed:0,moveDrift:0,moveSpeed:0,sizeAnimationSpeed:0},this.size={value:1,max:1,min:1,enable:!1},this.outType=p.ParticleOutType.normal,this.ignoresResizeRatio=!0;const c=i.actualOptions,l=(0,f.loadParticlesOptions)(this.#f,i,c.particles),u=l.reduceDuplicates,d=l.effect.type,h=l.shape.type;this.effect=(0,a.itemFromSingleOrMultiple)(d,this.id,u),this.shape=(0,a.itemFromSingleOrMultiple)(h,this.id,u);const m=l.effect,g=l.shape;if(r){if(r.effect){const e=r.effect.type;if(e&&e!==this.effect){const t=(0,a.itemFromSingleOrMultiple)(e,this.id,u);t&&(this.effect=t)}m.load(r.effect)}if(r.shape){const e=r.shape.type;if(e&&e!==this.shape){const t=(0,a.itemFromSingleOrMultiple)(e,this.id,u);t&&(this.shape=t)}g.load(r.shape)}}if(this.effect===s.randomColorValue){const e=[...this.#p.effectDrawers.keys()];this.effect=e[Math.floor((0,o.getRandom)()*e.length)]}if(this.shape===s.randomColorValue){const e=[...this.#p.shapeDrawers.keys()];this.shape=e[Math.floor((0,o.getRandom)()*e.length)]}this.effectData=this.effect?function(e,t,r,n){const i=t.options[e];return(0,a.deepExtend)({close:t.close},(0,a.itemFromSingleOrMultiple)(i,r,n))}(this.effect,m,this.id,u):void 0,this.shapeData=this.shape?function(e,t,r,n){const i=t.options[e];return(0,a.deepExtend)({close:t.close},(0,a.itemFromSingleOrMultiple)(i,r,n))}(this.shape,g,this.id,u):void 0,l.load(r);const y=this.effectData,v=this.shapeData;y&&l.load(y.particles),v&&l.load(v.particles),this.effectClose=y?.close??l.effect.close,this.shapeClose=v?.close??l.shape.close,this.options=l,i.retina.initParticle(this);for(const e of i.particleUpdaters)e.preInit?.(this);let b,_;this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this.#nt(t),this.initialVelocity=this.#it(),this.velocity=this.initialVelocity.copy(),this.zIndexFactor=this.position.z/i.zL
41ayers,this.sides=24,this.effect&&(b=i.effectDrawers.get(this.effect)),b?.loadEffect&&b.loadEffect(this),this.shape&&(_=i.shapeDrawers.get(this.shape)),_?.loadShape&&_.loadShape(this);const S=_?.getSidesCount;S&&(this.sides=S(this)),this.spawning=!1;for(const e of i.particleUpdaters)e.init(this);b?.particleInit?.(i,this),_?.particleInit?.(i,this);for(const e of i.particleCreatedPlugins)e.particleCreated?.(this)}isInsideCanvas(e){return this.#ot({direction:e}).inside}isInsideCanvasForOutMode(e,t){return this.#ot({direction:t,outMode:e}).inside}isShowingBack(){if(!this.roll)return!1;const e=this.roll.angle;if(this.roll.horizontal&&this.roll.vertical){const t=e%s.doublePI,r=t<s.defaultAngle?t+s.doublePI:t;return r>=Math.PI*s.half&&r<Math.PI*s.triple*s.half}if(this.roll.horizontal){const t=(e+Math.PI*s.half)%(Math.PI*s.double),r=t<s.defaultAngle?t+Math.PI*s.double:t;return r>=Math.PI&&r<Math.PI*s.double}if(this.roll.vertical){const t=e%(Math.PI*s.double),r=t<s.defaultAngle?t+Math.PI*s.double:t;return r>=Math.PI&&r<Math.PI*s.double}return!1}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const e of this.#p.particleUpdaters)e.reset?.(this)}#at=(e,t)=>{let r=s.defaultRetryCount,i=e?n.Vector3d.create(e.x,e.y,t):void 0;const a=this.#p,c=a.particlePositionPlugins,l=this.options.move.outModes,u=this.getRadius(),d=a.canvas.size,p=new AbortController,{signal:f}=p;for(;!f.aborted;){for(const e of c){const r=e.particlePosition?.(i,this);if(r)return n.Vector3d.create(r.x,r.y,t)}const e=(0,o.calcExactPositionOrRandomFromSize)({size:d,position:i}),p=n.Vector3d.create(e.x,e.y,t);this.#st(p,u,l.left??l.default),this.#st(p,u,l.right??l.default),this.#ct(p,u,l.top??l.default),this.#ct(p,u,l.bottom??l.default);let f=!0;for(const e of a.particles.checkParticlePositionPlugins)if(f=e.checkParticlePosition?.(this,p,r)??!0,!f)break;
41if(f)return p;r+=s.tryCountIncrement,i=void 0}return i};#it=()=>{const e=this.options.move,t=(0,o.getParticleBaseVelocity)(this.direction).copy();if(e.direction===l.MoveDirection.inside||e.direction===l.MoveDirection.outside)return t;const r=(0,o.degToRad)((0,o.getRangeValue)(e.angle.value)),n=(0,o.degToRad)((0,o.getRangeValue)(e.angle.offset)),i={left:n-r*s.half,right:n+r*s.half};return e.straight||(t.angle+=(0,o.randomInRangeValue)((0,o.setRangeValue)(i.left,i.right))),e.random&&"number"==typeof e.speed&&(t.length*=(0,o.getRandom)()),t};#st=(e,t,r)=>{h({outMode:r,checkModes:[u.OutMode.bounce],coord:e.x,maxCoord:this.#p.canvas.size.width,setCb:t=>e.x+=t,radius:t})};#ct=(e,t,r)=>{h({outMode:r,checkModes:[u.OutMode.bounce],coord:e.y,maxCoord:this.#p.canvas.size.height,setCb:t=>e.y+=t,radius:t})};#lt=(e,t)=>{const r=this.getRadius(),n=this.#p.canvas.size,i=this.position,o=t===u.OutMode.bounce;return e===d.OutModeDirection.bottom?{inside:o?i.y+r<n.height:i.y-r<n.height,reason:"default"}:e===d.OutModeDirection.left?{inside:o?i.x-r>s.defaultAngle:i.x+r>s.defaultAngle,reason:"default"}:e===d.OutModeDirection.right?{inside:o?i.x+r<n.width:i.x-r<n.width,reason:"default"}:e===d.OutModeDirection.top?{inside:o?i.y-r>s.defaultAngle:i.y+r>s.defaultAngle,reason:"default"}:{inside:i.x>=-r&&i.y>=-r&&i.y<=n.height+r&&i.x<=n.width+r,reason:"default"}};#ut=(e,t)=>({canvasSize:this.#p.canvas.size,direction:e,outMode:t,particle:this,radius:this.getRadius()});#ot=e=>{const t=this.#lt(e.direction,e.outMode),r=this.#p,n=this.shape?r.shapeDrawers.get(this.shape):void 0,i=this.effect?r.effectDrawers.get(this.effect):void 0,o=n?.isInsideCanvas,a=i?.isInsideCanvas;if(!o&&!a)return t;const c=this.#ut(e.direction,e.outMode),l=o?this.#dt(o(c),"shape"):void 0,u=a?this.#dt(a(c),"effect"):void 0;if(l&&u){const e=Math.max(l.margin??s.defaultAngle,u.margin??s.defaultAngle);return{inside:l.inside&&u.inside,margin:e>s.defaultAngle?e:void 0,reason:"combined"}}return l??u??t};#rt=e=>e&&this.roll&&(this.backColor||this.roll.alter)&&this.isShowingBack()?this.backColor?this.backColor:this.roll.alter?(0,i.alterHsl)(e,this.roll.alter.type,this.roll.alter.value):e:e;#nt=e=>{const t=this.#p,r=Math.floor((0,o.getRangeValue)(this.options.zIndex.value)),i=this.#at(e,(0,o.clamp)(r,s.minZ,t.zLayers));if(!i)throw new Error("a valid position cannot be found for particle");this.position=i,this.initialPosition=this.position.copy();const c=t.canvas.size;switch(this.moveCenter={...(0,a.getPosition)(this.options.move.center,c),radius:this.options.move.center.radius,mode:this.options.move.center.mode},this.direction=(0,o.getParticleDirectionAngle)(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case l.MoveDirection.inside:this.outType=p.ParticleOutType.inside;break;case l.MoveDirection.outside:this.outType=p.ParticleOutType.outside}
vendor: 1,293 bytes, line 41
41this.offset=n.Vector.origin};#dt=(e,t)=>"boolean"==typeof e?{inside:e,reason:t}:{inside:e.inside,margin:e.margin,reason:e.reason??t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SpatialHashGrid:()=>i});var n=r(934);class i{#pt;#ft=new Map;#ht=[];#mt;#gt;#yt=[];#vt;constructor(e){this.#pt=e,this.#mt=0,this.#vt=0}clear(){this.#ft.clear();const e=this.#gt;e&&(this.#pt=e),this.#gt=void 0}insert(e){const{x:t,y:r}=e.getPosition(),n=this.#bt(t,r);this.#ft.has(n)||this.#ft.set(n,[]),this.#ft.get(n)?.push(e)}query(e,t,r=[]){const n=this.#_t(e);if(!n)return r;const i=Math.floor(n.minX/this.#pt),o=Math.floor(n.maxX/this.#pt),a=Math.floor(n.minY/this.#pt),s=Math.floor(n.maxY/this.#pt);for(let n=i;n<=o;n++)for(let i=a;i<=s;i++){const o=`${n}_${i}`,a=this.#ft.get(o);if(a)for(const n of a)t&&!t(n)||e.contains(n.getPosition())&&r.push(n)}return r}queryCircle(e,t,r,n=[]){const i=this.#St(e.x,e.y,t),o=this.query(i,r,n);return this.#Et(),o}queryRectangle(e,t,r,n=[]){const i=this.#wt(e.x,e.y,t.width,t.height),o=this.query(i,r,n);return this.#Et(),o}setCellSize(e){this.#gt=e}#St(e,t,r){return(this.#ht[this.#mt++]??=new n.Circle(e,t,r)).reset(e,t,r)}#wt(e,t,r,i){return(this.#yt[this.#vt++]??=new n.Rectangle(e,t,r,i)).reset(e,t,r,i)}#bt(e,t){return`${Math.floor(e/this.#pt)}_${Math.floor(t/this.#pt)}`}
41#_t(e){if(e instanceof n.Circle){const t=e.radius,{x:r,y:n}=e.position;return{minX:r-t,maxX:r+t,minY:n-t,maxY:n+t}}if(e instanceof n.Rectangle){const{x:t,y:r}=e.position,{width:n,height:i}=e.size;return{minX:t,maxX:t+n,minY:r,maxY:r+i}}return null}#Et(){this.#mt=0,this.#vt=0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Retina:()=>o});var n=r(917),i=r(919);class o{pixelRatio;reduceFactor;#p;constructor(e){this.#p=e,this.pixelRatio=n.defaultRatio,this.reduceFactor=n.defaultReduceFactor}init(){const e=this.#p,t=e.actualOptions;this.pixelRatio=t.detectRetina?devicePixelRatio:n.defaultRatio,this.reduceFactor=n.defaultReduceFactor;const r=this.pixelRatio,i=e.canvas,o=i.domElement;o&&(i.size.width=o.offsetWidth*r,i.size.height=o.offsetHeight*r)}initParticle(e){const t=e.options,r=this.pixelRatio,n=t.move,o=n.distance,a=e.retina;a.maxSpeed=(0,i.getRangeValue)(n.gravity.maxSpeed)*r,a.moveDrift=(0,i.getRangeValue)(n.drift)*r,a.moveSpeed=(0,i.getRangeValue)(n.speed)*r;const s=a.maxDistance;s.horizontal=void 0===o.horizontal?void 0:o.horizontal*r,s.vertical=void 0===o.vertical?void 0:o.vertical*r}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BlendPluginInstance:()=>i});var n=r(914);class i{#p;#Tt;constructor(e){this.#p=e}drawParticleCleanup(e,t){t.options.blend?.enable&&(e.globalCompositeOperation=t.originalBlendMode??n.defaultCompositeValue,t.originalBlendMode=void 0)}drawParticleSetup(e,t){t.options.blend?.enable&&(t.originalBlendMode=e.globalCompositeOperation,e.globalCompositeOperation=t.options.blend.mode)}drawSettingsCleanup(e){this.#Tt&&(e.globalCompositeOperation=this.#Tt)}drawSettingsSetup(e){const t=e.globalCompositeOperation,r=this.#p.actualOptions.blend;this.#Tt=t,e.globalCompositeOperation=r?.enable?r.mode:t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MovePluginInstance:()=>o});var n=r(914),i=r(2801);class o{availablePathGenerators;pathGenerators;#p;#f;constructor(e,t){this.#f=e,this.#p=t,this.availablePathGenerators=new Map,this.pathGenerators=new Map}destroy(){this.availablePathGenerators=new Map,this.pathGenerators=new Map}isEnabled(e){return!e.destroyed&&e.options.move.enable}particleCreated(e){const t=e.options.move,r=t.gravity,o=t.path;if(e.moveDecay=n.decayOffset-(0,n.getRangeValue)(t.decay),e.pathDelay=(0,n.getRangeValue)(o.delay.value)*n.millisecondsToSeconds,o.generator){let t=this.pathGenerators.get(o.generator);t||(t=this.availablePathGenerators.get(o.generator),t&&(this.pathGenerators.set(o.generator,t),t.init())),e.pathGenerator=t}e.gravity={enable:r.enable,acceleration:(0,n.getRangeValue)(r.acceleration),inverse:r.inverse},(0,i.initSpin)(this.#p,e)}particleDestroyed(e){const t=e.pathGenerator;t?.reset(e)}particleUpdate(e,t){const r=e.options.move;if(!r.enable)return;const o=this.#p,a=(0,i.getProximitySpeedFactor)(e),s=o.retina.reduceFactor,c=e.retina.moveSpeed,l=e.retina.moveDrift,u=e.size.max,d=c*(r.size?e.getRadius()/u:1)*a*(t.factor||1)*n.half,p=e.retina.maxSpeed;r.spin.enable?(0,i.spin)(o,e,d,s):(0,i.move)(e,r,d,p,l,s,t),(0,i.applyDistance)(e)}preInit(){return this.#xt()}redrawInit(){return this.#xt()}update(){for(const e of this.pathGenerators.values())e.update()}async#xt(){const e=await(this.#f.getPathGenerators?.(this.#p,!0));if(e){this.availablePathGenerators=e,this.pathGenerators=new Map;for(const e of this.pathGenerators.values())e.init()}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyDistance:()=>d,applyPath:()=>h,getProximitySpeedFactor:()=>m,initSpin:()=>g,move:()=>p,spin:()=>f});var n=r(914);const i=0,o=1,a=60,s=0,c=.01,l=0,u=1;function d(e){const t=e.initialPosition,{dx:r,dy:o}=(0,n.getDistances)(t,e.position),a=Math.abs(r),s=Math.abs(o),{maxDistance:c}=e.retina,l=c.horizontal,u=c.vertical;if(!l&&!u)return;if(!((l&&a>=l)??!1)&&!((u&&s>=u)??!1)||e.misplaced){if((!l||a<l)&&(!u||s<u)&&e.misplaced)e.misplaced=!1;else if(e.misplaced){const r=e.position,o=e.velocity;l&&(r.x<t.x&&o.x<i||r.x>t.x&&o.x>i)&&(o.x*=-(0,n.getRandom)()),u&&(r.y<t.y&&o.y<i||r.y>t.y&&o.y>i)&&(o.y*=-(0,n.getRandom)())}}else e.misplaced=!!l&&a>l||!!u&&s>u,l&&(e.velocity.x=e.velocity.y*n.half-e.velocity.x),u&&(e.velocity.y=e.velocity.x*n.half-e.velocity.y)}function p(e,t,r,n,s,c,l){h(e,l);const d=e.gravity,p=d?.enable&&d.inverse?-o:o;s&&r&&(e.velocity.x+=s*l.factor/(a*r)),d?.enable&&r&&(e.velocity.y+=p*(d.acceleration*l.factor)/(a*r));const f=e.moveDecay;e.velocity.multTo(f??u);const m=e.velocity.mult(r);d?.enable&&n>i&&(!d.inverse&&m.y>=i&&m.y>=n||d.inverse&&m.y<=i&&m.y<=-n)&&(m.y=p*n,r&&(e.velocity.y=m.y/r));const g=e.options.zIndex,y=(o-e.zIndexFactor)**g.velocityRate;m.multTo(y),m.multTo(c);const{position:v}=e;v.addTo(m),t.vibrate&&(v.x+=Math.sin(v.x*Math.cos(v.y))*c,v.y+=Math.cos(v.y*Math.sin(v.x))*c)}
41function f(e,t,r,i){if(!t.spin)return;const a=t.spin.direction===n.RotateDirection.clockwise,l={x:a?Math.cos:Math.sin,y:a?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*l.x(t.spin.angle)*i,t.position.y=t.spin.center.y+t.spin.radius*l.y(t.spin.angle)*i,t.spin.radius+=t.spin.acceleration*i;const u=Math.max(e.canvas.size.width,e.canvas.size.height),d=u*n.half;t.spin.radius>d?(t.spin.radius=d,t.spin.acceleration*=-o):t.spin.radius<s&&(t.spin.radius=s,t.spin.acceleration*=-o),t.spin.angle+=r*c*(o-t.spin.radius/u)}function h(e,t){const r=e.options.move.path;if(!r.enable)return;const i=e.pathDelay??l;if(e.lastPathTime<=i)return void(e.lastPathTime+=t.value);const a=e.pathGenerator?.generate(e,t);a&&e.velocity.addTo(a),r.clamp&&(e.velocity.x=(0,n.clamp)(e.velocity.x,-o,o),e.velocity.y=(0,n.clamp)(e.velocity.y,-o,o)),e.lastPathTime-=i}function m(e){return e.slow.inRange?e.slow.factor:o}function g(e,t){const r=t.options.move.spin;if(!r.enable)return;const o=r.position??{x:50,y:50},a={x:.01*o.x*e.canvas.size.width,y:.01*o.y*e.canvas.size.height},s=t.getPosition(),c=(0,n.getDistance)(s,a),l=(0,n.getRangeValue)(r.acceleration);t.retina.spinAcceleration=l*e.retina.pixelRatio,t.spin={center:a,direction:t.velocity.x>=i?n.RotateDirection.clockwise:n.RotateDirection.counterClockwise,angle:(0,n.getRandom)()*n.doublePI,radius:c,acceleration:t.retina.spinAcceleration}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmittersPluginInstance:()=>i});var n=r(914);class i{#p;#_;constructor(e,t){this.#_=e,this.#p=t,this.#_.initContainer(t)}
41async init(){const e=this.#p.actualOptions.emitters;if((0,n.isArray)(e))for(const t of e)await this.#_.addEmitter(this.#p,t);else await this.#_.addEmitter(this.#p,e)}pause(){for(const e of this.#_.getArray(this.#p))e.pause()}play(){for(const e of this.#_.getArray(this.#p))e.play()}resize(){for(const e of this.#_.getArray(this.#p))e.resize()}stop(){this.#_.clear(this.#p)}update(e){this.#_.getArray(this.#p).forEach(t=>{t.update(e)})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ShapeManager:()=>i});const n=new Map;class i{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),r.d(t,{EmittersInstancesManager:()=>o});var n=r(914),i=r(1013);class o{#Ot;#f;constructor(e){this.#Ot=new Map,this.#f=e}async addEmitter(e,t,n){const o=new i.Emitter;o.load(t);const{EmitterInstance:a}=await r.e("vendors").then(r.bind(r,3329)),s=new a(this.#f,e,t=>{this.removeEmitter(e,t)},o,n);return await s.init(),this.getArray(e).push(s),s}clear(e){this.initContainer(e),this.#Ot.set(e,[])}getArray(e){this.initContainer(e);let t=this.#Ot.get(e);return t||(t=[],this.#Ot.set(e,t)),t}initContainer(e){this.#Ot.has(e)||(this.#Ot.set(e,[]),e.getEmitter=t=>{const r=this.getArray(e);return void 0===t||(0,n.isNumber)(t)?r[t??0]:r.find(e=>e.name===t)},e.addEmitter=async(t,r)=>this.addEmitter(e,t,r),e.removeEmitter=t=>{const r=e.getEmitter?.(t);r&&this.removeEmitter(e,r)},e.playEmitter=t=>{const r=e.getEmitter?.(t);r&&r.externalPlay()},e.pauseEmitter=t=>{const r=e.getEmitter?.(t);r&&r.externalPause()})}removeEmitter(e,t){const r=this.getArray(e).indexOf(t);r>=0&&this.getArray(e).splice(r,1)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MotionPluginInstance:()=>i});var n=r(914);class i{#p;constructor(e){this.#p=e}async init(){const e=this.#p,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.#At(r);r.addEventListener("change",()=>{(async()=>{this.#At(r);try{await e.refresh()}catch{}})()}),await Promise.resolve()}#At=e=>{const t=this.#p,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)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{DragDropContext:()=>Mn,Draggable:()=>Jn,Droppable:()=>_i,useKeyboardSensor:()=>un,useMouseSensor:()=>an,useTouchSensor:()=>hn});var n=r(396),i=r(3080),o=r(3081),a=r(3084),s=r(3086),c=r(1994);function l(e,t){}l.bind(null,"warn"),l.bind(null,"error");function u(){}function d(e,t,r){const n=t.map(t=>{const n=function(e,t){return{...e,...t}}(r,t.options);return e.addEventListener(t.eventName,t.fn,n),function(){e.removeEventListener(t.eventName,t.fn,n)}});return function(){n.forEach(e=>{e()})}}const p=!0,f="Invariant failed";
41class h extends Error{}function m(e,t){throw new h(p?f:`${f}: ${t||""}`)}h.prototype.toString=function(){return this.message};class g extends n.default.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=u,this.onWindowError=e=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort();e.error instanceof h&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=d(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof h))throw e;this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const y=e=>e+1,v=(e,t)=>{const r=e.droppableId===t.droppableId,n=y(e.index),i=y(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  `},b=(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=>`\n  The item has returned to its starting position\n  of ${y(e.index)}\n`,S={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 ${y(e.source.index)}\n`,onDragUpdate:e=>{const t=e.destination;if(t)return v(e.source,t);const r=e.combine;return r?b(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.source)}\n    `;const t=e.destination,r=e.combine;return t?`\n      You have dropped the item.\n      ${v(e.source,t)}\n    `:r?`\n      You have dropped the item.\n      ${b(e.draggableId,e.source,r)}\n    `:`\n    The item has been dropped while not over a drop area.\n    ${_(e.source)}\n  `}};function E(e,t){return e===t||!(!Number.isNaN(e)||!Number.isNaN(t))}function w(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!E(e[r],t[r]))return!1;return!0}function T(e,t){const r=(0,n.useState)(()=>({inputs:t,result:e()}))[0],i=(0,n.useRef)(!0),o=(0,n.useRef)(r),a=i.current||Boolean(t&&o.current.inputs&&w(t,o.current.inputs))?o.current:{inputs:t,result:e()};return(0,n.useEffect)(()=>{i.current=!1,o.current=a},[a]),a.result}function x(e,t){return T(()=>e,t)}const O={x:0,y:0},A=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),R=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),P=(e,t)=>e.x===t.x&&e.y===t.y,I=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),C=(e,t,r=0)=>"x"===e?{x:t,y:r}:{x:r,y:t},k=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),M=(e,t)=>Math.min(...t.map(t=>k(e,t))),D=e=>t=>({x:e(t.x),y:e(t.y)});const N=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),L=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,a.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,a.getRect)(e);var B=({page:e,withPlaceholder:t,axis:r,frame:n})=>{const i=((e,t)=>t?N(e,t.scroll.diff.displacement):e)(e.marginBox,n),o=((e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e)(i,r,t);return{page:e,withPlaceholder:t,active:F(o,n)}},j=(e,t)=>{e.frame||m();const r=e.frame,n=R(t,r.scroll.initial),i=I(n),o={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:i},max:r.scroll.max}},a=B({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return{...e,frame:o,subject:a}};function U(e,t=w){let r=null;function n(...n){if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;const i=e.apply(this,n);return r={lastResult:i,lastArgs:n,lastThis:this},i}return n.clear=function(){r=null},n}const H=U(e=>e.reduce((e,t)=>
41(e[t.descriptor.id]=t,e),{})),z=U(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),V=U(e=>Object.values(e)),G=U(e=>Object.values(e));var $=U((e,t)=>{const r=G(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 W(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var K=U((e,t)=>t.filter(t=>t.descriptor.id!==e.descriptor.id)),Y=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const J={point:O,value:0},Q={invisible:{},visible:{},all:[]},X={displaced:Q,displacedBy:J,at:null};var Z=(e,t)=>r=>e<=r&&r<=t,ee=e=>{const t=Z(e.top,e.bottom),r=Z(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}},te=e=>{const t=Z(e.top,e.bottom),r=Z(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)};const re={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ne={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};const ie=({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 N(e,r)})(e,t):e;return((e,t,r)=>!!t.subject.active&&r(t.subject.active)(e))(o,t,i)&&((e,t,r)=>r(t)(e))(o,r,i)},oe=e=>ie({...e,isVisibleThroughFrameFn:te});function ae({afterDragging:e,destination:t,displacedBy:r,viewport:n,forceShouldAnimate:i,last:o}){return e.reduce(function(e,s){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,a.getRect)((0,a.expand)(r,n))}(s,r),l=s.descriptor.id;e.all.push(l);var u;if(!(u={target:c,destination:t,viewport:n,withDroppableDisplacement:!0},ie({...u,isVisibleThroughFrameFn:ee})))return e.invisible[s.descriptor.id]=!0,e;const d=((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})(l,o,i),p={draggableId:l,shouldAnimate:d};return e.visible[l]=p,e},{all:[],visible:{},invisible:{}})}function se({insideDestination:e,inHomeList:t,displacedBy:r,destination:n}){const i=function(e,t){if(!e.length)return 0;const r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(e,{inHomeList:t});return{displaced:Q,displacedBy:r,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:i}}}}function ce({draggable:e,insideDestination:t,destination:r,viewport:n,displacedBy:i,last:o,index:a,forceShouldAnimate:s}){const c=Y(e,r);if(null==a)return se({insideDestination:t,inHomeList:c,displacedBy:i,destination:r});const l=t.find(e=>e.descriptor.index===a);if(!l)return se({insideDestination:t,inHomeList:c,displacedBy:i,destination:r});const u=K(e,t),d=t.indexOf(l);return{displaced:ae({afterDragging:u.slice(d),destination:r,displacedBy:i,last:o,viewport:n.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function le(e,t){return Boolean(t.effected[e])}var ue=({isMovingForward:e,isInHomeList:t,draggable:r,draggables:n,destination:i,insideDestination:o,previousImpact:a,viewport:s,afterCritical:c})=>{const l=a.at;if(l||m(),"REORDER"===l.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:l.destination,insideDestination:o});return null==n?null:ce({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:n})}const u=(({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 le(o,i)?e?a:a-1:e?a+1:a})({isMovingForward:e,destination:i,displaced:a.displaced,draggables:n,combine:l.combine,afterCritical:c});return null==u?null:ce({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:u})},de=({afterCritical:e,impact:t,draggables:r})=>{const n=W(t);n||m();
41const 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 le(r,t)?i?O:I(n.point):i?n.point:O})({displaced:t.displaced,afterCritical:e,combineWith:i,displacedBy:t.displacedBy});return A(o,a)};const pe=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,fe=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,he=({axis:e,moveRelativeTo:t,isMoving:r})=>C(e.line,t.marginBox[e.end]+pe(e,r),fe(e,t.marginBox,r)),me=({axis:e,moveRelativeTo:t,isMoving:r})=>C(e.line,t.marginBox[e.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(e,r),fe(e,t.marginBox,r));var ge=({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:i})=>{const o=$(n.descriptor.id,r),s=t.page,c=n.axis;if(!o.length)return(({axis:e,moveInto:t,isMoving:r})=>C(e.line,t.contentBox[e.start]+pe(e,r),fe(e,t.contentBox,r)))({axis:c,moveInto:n.page,isMoving:s});const{displaced:l,displacedBy:u}=e,d=l.all[0];if(d){const e=r[d];if(le(d,i))return me({axis:c,moveRelativeTo:e.page,isMoving:s});const t=(0,a.offset)(e.page,u.point);return me({axis:c,moveRelativeTo:t,isMoving:s})}const p=o[o.length-1];if(p.descriptor.id===t.descriptor.id)return s.borderBox.center;if(le(p.descriptor.id,i)){const e=(0,a.offset)(p.page,I(i.displacedBy.point));return he({axis:c,moveRelativeTo:e,isMoving:s})}return he({axis:c,moveRelativeTo:p.page,isMoving:s})},ye=(e,t)=>{const r=e.frame;return r?A(t,r.scroll.diff.displacement):t};var ve=e=>{const t=(({impact:e,draggable:t,droppable:r,draggables:n,afterCritical:i})=>{const o=t.page.borderBox.center,a=e.at;return r&&a?"REORDER"===a.type?ge({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:i}):de({impact:e,draggables:n,afterCritical:i}):o})(e),r=e.droppable;return r?ye(r,t):t},be=(e,t)=>{const r=R(t,e.scroll.initial),n=I(r);return{frame:(0,a.getRect)({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function _e(e,t){return e.map(e=>t[e])}var Se=({pageBorderBoxCenter:e,draggable:t,viewport:r})=>{const n=((e,t)=>A(e.scroll.diff.displacement,t))(r,e),i=R(n,t.page.borderBox.center);return A(t.client.borderBox.center,i)},Ee=({draggable:e,destination:t,newPageBorderBoxCenter:r,viewport:n,withDroppableDisplacement:i,onlyOnMainAxis:o=!1})=>{const a=R(r,e.page.borderBox.center),s={target:N(e.page.borderBox,a),destination:t,withDroppableDisplacement:i,viewport:n};return o?(e=>{return ie({...e,isVisibleThroughFrameFn:(t=e.destination.axis,e=>{const r=Z(e.top,e.bottom),n=Z(e.left,e.right);return e=>t===re?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)})});var t})(s):oe(s)},we=({isMovingForward:e,draggable:t,destination:r,draggables:n,previousImpact:i,viewport:o,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:c})=>{if(!r.isEnabled)return null;const l=$(r.descriptor.id,n),u=Y(t,r),d=(({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=K(t,n);if(!s)return c.length?o(c[c.length-1].descriptor.id):null;const l=c.findIndex(e=>e.descriptor.id===s);-1===l&&m();const u=l-1;return u<0?null:o(c[u].descriptor.id)})({isMovingForward:e,draggable:t,destination:r,insideDestination:l,previousImpact:i})||ue({isMovingForward:e,isInHomeList:u,draggable:t,draggables:n,destination:r,insideDestination:l,previousImpact:i,viewport:o,afterCritical:c});if(!d)return null;const p=ve({impact:d,draggable:t,droppable:r,draggables:n,afterCritical:c});if(Ee({draggable:t,destination:r,newPageBorderBoxCenter:p,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})){return{clientSelection:Se({pageBorderBoxCenter:p,draggable:t,viewport:o}),impact:d,scrollJumpRequest:null}}const f=R(p,a),h=(({impact:e,viewport:t,destination:r,draggables:n,maxScrollChange:i})=>{const o=be(t,A(t.scroll.current,i)),a=r.frame?j(r,A(r.frame.scroll.current,i)):r,s=e.displaced,c=ae({afterDragging:_e(s.all,n),destination:r,displacedBy:e.displacedBy,viewport:o.frame,last:s,forceShouldAnimate:!1}),l=ae({afterDragging:_e(s.all,n),destination:a,displacedBy:e.displacedBy,viewport:t.frame,last:s,forceShouldAnimate:!1}),u={},d={},p=[s,c,l];
41return s.all.forEach(e=>{const t=function(e,t){for(let r=0;r<t.length;r++){const n=t[r].visible[e];if(n)return n}return null}(e,p);t?d[e]=t:u[e]=!0}),{...e,displaced:{all:s.all,invisible:u,visible:d}}})({impact:d,viewport:o,destination:r,draggables:n,maxScrollChange:f});return{clientSelection:s,impact:h,scrollJumpRequest:f}};const Te=e=>{const t=e.subject.active;return t||m(),t};const xe=(e,t)=>{const r=e.page.borderBox.center;return le(e.descriptor.id,t)?R(r,t.displacedBy.point):r},Oe=(e,t)=>{const r=e.page.borderBox;return le(e.descriptor.id,t)?N(r,I(t.displacedBy.point)):r};var Ae=U(function(e,t){const r=t[e.line];return{value:r,point:C(e.line,r)}});const Re=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),Pe=(e,t,r)=>{const n=e.frame;Y(t,e)&&m(),e.subject.withPlaceholder&&m();const i=Ae(e.axis,t.displaceBy).point,o=((e,t,r)=>{const n=e.axis;if("virtual"===e.descriptor.mode)return C(n.line,t[n.line]);const i=e.subject.page.contentBox[n.size],o=$(e.descriptor.id,r).reduce((e,t)=>e+t.client.marginBox[n.size],0)+t[n.line]-i;return o<=0?null:C(n.line,o)})(e,i,r),a={placeholderSize:i,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){const t=B({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:t}}const s=o?A(n.scroll.max,o):n.scroll.max,c=Re(n,s),l=B({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:c});return{...e,subject:l,frame:c}};var Ie=({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=Z(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=>ee(i.frame)(Te(e))).filter(t=>{const r=Te(t);return e?o[a.crossAxisEnd]<r[a.crossAxisEnd]:r[a.crossAxisStart]<o[a.crossAxisStart]}).filter(e=>{const t=Te(e),r=Z(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=Te(t)[a.crossAxisStart],i=Te(r)[a.crossAxisStart];return e?n-i:i-n}).filter((e,t,r)=>Te(e)[a.crossAxisStart]===Te(r[0])[a.crossAxisStart]);if(!c.length)return null;if(1===c.length)return c[0];const l=c.filter(e=>Z(Te(e)[a.start],Te(e)[a.end])(t[a.line]));return 1===l.length?l[0]:l.length>1?l.sort((e,t)=>Te(e)[a.start]-Te(t)[a.start])[0]:c.sort((e,r)=>{const n=M(t,L(Te(e))),i=M(t,L(Te(r)));return n!==i?n-i:Te(e)[a.start]-Te(r)[a.start]})[0]})({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:o,viewport:a});if(!c)return null;const l=$(c.descriptor.id,i),u=(({pageBorderBoxCenter:e,viewport:t,destination:r,insideDestination:n,afterCritical:i})=>{const o=n.filter(e=>oe({target:Oe(e,i),destination:r,viewport:t.frame,withDroppableDisplacement:!0})).sort((t,n)=>{const o=k(e,ye(r,xe(t,i))),a=k(e,ye(r,xe(n,i)));return o<a?-1:a<o?1:t.descriptor.index-n.descriptor.index});return o[0]||null})({pageBorderBoxCenter:t,viewport:a,destination:c,insideDestination:l,afterCritical:s}),d=(({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:Q,displacedBy:J,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},t=ve({impact:e,draggable:n,droppable:o,draggables:i,afterCritical:s}),c=Y(n,o)?o:Pe(o,n,i);return Ee({draggable:n,destination:c,newPageBorderBoxCenter:t,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}const c=Boolean(e[o.axis.line]<=t.page.borderBox.center[o.axis.line]),l=(()=>{const e=t.descriptor.index;return t.descriptor.id===n.descriptor.id||c?e:e+1})(),u=Ae(o.axis,n.displaceBy);return ce({draggable:n,insideDestination:r,destination:o,viewport:a,displacedBy:u,last:Q,index:l})})({previousPageBorderBoxCenter:t,destination:c,draggable:r,draggables:i,moveRelativeTo:u,insideDestination:l,viewport:a,afterCritical:s});if(!d)return null;const p=ve({impact:d,draggable:r,droppable:c,draggables:i,afterCritical:s});return{clientSelection:Se({pageBorderBoxCenter:p,draggable:r,viewport:
41a}),impact:d,scrollJumpRequest:null}},Ce=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=Ce(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,l=e.dimensions.draggables[e.critical.draggable.id],u=e.current.page.borderBoxCenter,{draggables:d,droppables:p}=e.dimensions;return s?we({isMovingForward:c,previousPageBorderBoxCenter:u,draggable:l,destination:o,draggables:d,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):Ie({isMovingForward:c,previousPageBorderBoxCenter:u,draggable:l,isOver:o,draggables:d,droppables:p,viewport:e.viewport,afterCritical:e.afterCritical})};function Me(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function De(e){const t=Z(e.top,e.bottom),r=Z(e.left,e.right);return function(e){return t(e.y)&&r(e.x)}}function Ne({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(De(r)(e.center))return!0;const o=t.axis,a=r.center[o.crossAxisLine],s=e[o.crossAxisStart],c=e[o.crossAxisEnd],l=Z(r[o.crossAxisStart],r[o.crossAxisEnd]),u=l(s),d=l(c);return!u&&!d||(u?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=C(t.axis.line,e.center[r.line],t.page.borderBox.center[r.crossAxisLine]);return{id:t.descriptor.id,distance:k(n,i)}}).sort((e,t)=>t.distance-e.distance);return i[0]?i[0].id:null}({pageBorderBox:e,draggable:t,candidates:n}):null}const Le=(e,t)=>(0,a.getRect)(N(e,t));function Fe({displaced:e,id:t}){return Boolean(e.visible[t]||e.invisible[t])}var Be=({pageOffset:e,draggable:t,draggables:r,droppables:n,previousImpact:i,viewport:o,afterCritical:a})=>{const s=Le(t.page.borderBox,e),c=Ne({pageBorderBox:s,draggable:t,droppables:n});if(!c)return X;const l=n[c],u=$(l.descriptor.id,r),d=((e,t)=>{const r=e.frame;return r?Le(t,r.scroll.diff.value):t})(l,s);return(({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:r,destination:n,insideDestination:i,afterCritical:o})=>{if(!n.isCombineEnabled)return null;const a=n.axis,s=Ae(n.axis,e.displaceBy),c=s.value,l=t[a.start],u=t[a.end],d=K(e,i).find(e=>{const t=e.descriptor.id,n=e.page.borderBox,i=n[a.size]/4,s=le(t,o),d=Fe({displaced:r.displaced,id:t});return s?d?u>n[a.start]+i&&u<n[a.end]-i:l>n[a.start]-c+i&&l<n[a.end]-c-i:d?u>n[a.start]+c+i&&u<n[a.end]+c-i:l>n[a.start]+i&&l<n[a.end]-i});return d?{displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:n.descriptor.id}}}:null})({pageBorderBoxWithDroppableScroll:d,draggable:t,previousImpact:i,destination:l,insideDestination:u,afterCritical:a})||(({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:r,insideDestination:n,last:i,viewport:o,afterCritical:a})=>{const s=r.axis,c=Ae(r.axis,t.displaceBy),l=c.value,u=e[s.start],d=e[s.end],p=function({draggable:e,closest:t,inHomeList:r}){return t?r&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:K(t,n).find(e=>{const t=e.descriptor.id,r=e.page.borderBox.center[s.line],n=le(t,a),o=Fe({displaced:i,id:t});return n?o?d<=r:u<r-l:o?d<=r+l:u<r})||null,inHomeList:Y(t,r)});return ce({draggable:t,insideDestination:n,destination:r,viewport:o,last:i,displacedBy:c,index:p})})({pageBorderBoxWithDroppableScroll:d,draggable:t,destination:l,insideDestination:u,last:i.displaced,viewport:o,afterCritical:a})},je=(e,t)=>({...e,[t.descriptor.id]:t});const Ue=({previousImpact:e,impact:t,droppables:r})=>{const n=Ce(e),i=Ce(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;
41t||m();const r=e.frame;if(!r){const t=B({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}const n=t.oldFrameMaxScroll;n||m();const i=Re(r,n),o=B({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return{...e,subject:o,frame:i}})(o);return je(r,a)};var He=({state:e,clientSelection:t,dimensions:r,viewport:n,impact:i,scrollJumpRequest:o})=>{const a=n||e.viewport,s=r||e.dimensions,c=t||e.current.client.selection,l=R(c,e.initial.client.selection),u={offset:l,selection:c,borderBoxCenter:A(e.initial.client.borderBoxCenter,l)},d={selection:A(u.selection,a.scroll.current),borderBoxCenter:A(u.borderBoxCenter,a.scroll.current),offset:A(u.offset,a.scroll.diff.value)},p={client:u,page:d};if("COLLECTING"===e.phase)return{...e,dimensions:s,viewport:a,current:p};const f=s.draggables[e.critical.draggable.id],h=i||Be({pageOffset:d.offset,draggable:f,draggables:s.draggables,droppables:s.droppables,previousImpact:e.impact,viewport:a,afterCritical:e.afterCritical}),m=(({draggable:e,draggables:t,droppables:r,previousImpact:n,impact:i})=>{const o=Ue({previousImpact:n,impact:i,droppables:r}),a=Ce(i);if(!a)return o;const s=r[a];if(Y(e,s))return o;if(s.subject.withPlaceholder)return o;const c=Pe(s,e,t);return je(o,c)})({draggable:f,impact:h,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:p,dimensions:{draggables:s.draggables,droppables:m},impact:h,viewport:a,scrollJumpRequest:o||null,forceShouldAnimate:!o&&null}};var ze=({impact:e,viewport:t,draggables:r,destination:n,forceShouldAnimate:i})=>{const o=e.displaced,a=function(e,t){return e.map(e=>t[e])}(o.all,r),s=ae({afterDragging:a,destination:n,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:i,last:o});return{...e,displaced:s}},Ve=({impact:e,draggable:t,droppable:r,draggables:n,viewport:i,afterCritical:o})=>{const a=ve({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:o});return Se({pageBorderBoxCenter:a,draggable:t,viewport:i})},Ge=({state:e,dimensions:t,viewport:r})=>{"SNAP"!==e.movementMode&&m();const n=e.impact,i=r||e.viewport,o=t||e.dimensions,{draggables:a,droppables:s}=o,c=a[e.critical.draggable.id],l=Ce(n);l||m();const u=s[l],d=ze({impact:n,viewport:i,destination:u,draggables:a}),p=Ve({impact:d,draggable:c,droppable:u,draggables:a,viewport:i,afterCritical:e.afterCritical});return He({impact:d,clientSelection:p,state:e,dimensions:o,viewport:i})},$e=({draggable:e,home:t,draggables:r,viewport:n})=>{const i=Ae(t.axis,e.displaceBy),o=$(t.descriptor.id,r),a=o.indexOf(e);-1===a&&m();const s=o.slice(a+1),c=s.reduce((e,t)=>(e[t.descriptor.id]=!0,e),{}),l={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:i,effected:c};var u;return{impact:{displaced:ae({afterDragging:s,destination:t,displacedBy:i,last:null,viewport:n.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(u=e.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:l}};const qe=e=>{0},We=e=>{0};var Ke=({additions:e,updatedDroppables:t,viewport:r})=>{const n=r.scroll.diff.value;return e.map(e=>{const i=e.descriptor.droppableId,o=(e=>{const t=e.frame;return t||m(),t})(t[i]),s=o.scroll.diff.value,c=(({draggable:e,offset:t,initialWindowScroll:r})=>{const n=(0,a.offset)(e.client,t),i=(0,a.withScroll)(n,r);return{...e,placeholder:{...e.placeholder,client:n},client:n,page:i}})({draggable:e,offset:A(n,s),initialWindowScroll:r.scroll.initial});return c})};const Ye=e=>"SNAP"===e.movementMode,Je=(e,t,r)=>{const n=((e,t)=>({draggables:e.draggables,droppables:je(e.droppables,t)}))(e.dimensions,t);return!Ye(e)||r?He({state:e,dimensions:n}):Ge({state:e,dimensions:n})};function Qe(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}const Xe={phase:"IDLE",completed:null,shouldFlush:!1};var Ze=(e=Xe,t)=>{if("FLUSH"===t.type)return{...Xe,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&m();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],l={selection:n,borderBoxCenter:s.client.borderBox.center,offset:O},u={client:l,page:{selection:A(l.selection,i.scroll.initial),borderBoxCenter:A(l.selection,i.scroll.initial),offset:A(l.selection,i.scroll.diff.value)}},d=V(o.droppables).every(e=>!e.isFixedOnPage),{impact:p,afterCritical:f}=$e({draggable:s,home:c,draggables:o.draggables,viewport:i});
41return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:o,initial:u,current:u,isWindowScrollAllowed:d,impact:p,afterCritical:f,onLiftImpact:p,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&m();return{...e,phase:"COLLECTING"}}if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&m(),(({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,...H(r)},i=z(Ke({additions:t.additions,updatedDroppables:n,viewport:e.viewport})),o={...e.dimensions.draggables,...i};t.removals.forEach(e=>{delete o[e]});const a={droppables:n,draggables:o},s=Ce(e.impact),c=s?a.droppables[s]:null,l=a.draggables[e.critical.draggable.id],u=a.droppables[e.critical.droppable.id],{impact:d,afterCritical:p}=$e({draggable:l,home:u,draggables:o,viewport:e.viewport}),f=c&&c.isCombine
41Enabled?e.impact:d,h=Be({pageOffset:e.current.page.offset,draggable:a.draggables[e.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:f,viewport:e.viewport,afterCritical:p});We();const m={...e,phase:"DRAGGING",impact:h,onLiftImpact:d,dimensions:a,afterCritical:p,forceShouldAnimate:!1};return"COLLECTING"===e.phase?m:{...m,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}})({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Me(e)||m();const{client:r}=t.payload;return P(r,e.current.client.selection)?e:He({state:e,clientSelection:r,impact:Ye(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Qe(e);if("COLLECTING"===e.phase)return Qe(e);Me(e)||m();const{id:r,newScroll:n}=t.payload,i=e.dimensions.droppables[r];if(!i)return e;const o=j(i,n);return Je(e,o,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Me(e)||m();const{id:r,isEnabled:n}=t.payload,i=e.dimensions.droppables[r];i||m(),i.isEnabled===n&&m();const o={...i,isEnabled:n};return Je(e,o,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Me(e)||m();const{id:r,isCombineEnabled:n}=t.payload,i=e.dimensions.droppables[r];i||m(),i.isCombineEnabled===n&&m();const o={...i,isCombineEnabled:n};return Je(e,o,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Me(e)||m(),e.isWindowScrollAllowed||m();const r=t.payload.newScroll;if(P(e.viewport.scroll.current,r))return Qe(e);const n=be(e.viewport,r);return Ye(e)?Ge({state:e,viewport:n}):He({state:e,viewport:n})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Me(e))return e;const r=t.payload.maxScroll;if(P(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&&m();const r=ke({state:e,type:t.type});return r?He({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){const r=t.payload.reason;"COLLECTING"!==e.phase&&m();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&&m();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};function et(e,t){return e instanceof Object&&"type"in e&&e.type===t}const tt=e=>({type:"LIFT",payload:e}),rt=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),nt=()=>({type:"COLLECTION_STARTING",payload:null}),it=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),ot=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),at=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),st=e=>({type:"MOVE",payload:e}),ct=()=>({type:"MOVE_UP",payload:null}),lt=()=>({type:"MOVE_DOWN",payload:null}),ut=()=>({type:"MOVE_RIGHT",payload:null}),dt=()=>({type:"MOVE_LEFT",payload:null}),pt=()=>({type:"FLUSH",payload:null}),ft=e=>({type:"DROP_COMPLETE",payload:e}),ht=e=>({type:"DROP",payload:e}),mt=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});const gt="cubic-bezier(.2,1,.1,1)",yt={drop:0,combining:.7},vt={drop:.75},bt={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},_t=`${bt.outOfTheWay}s ${"cubic-bezier(0.2, 0, 0, 1)"}`,St={fluid:`opacity ${_t}`,snap:`transform ${_t}, opacity ${_t}`,drop:e=>{const t=`${e}s ${gt}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${_t}`,placeholder:`height ${_t}, width ${_t}, margin ${_t}`},Et=e=>P(e,O)?void 0:`translate(${e.x}px, ${e.y}px)`,wt=Et,Tt=(e,t)=>{const r=Et(e);if(r)return t?`${r} scale(${vt.drop})`:r},{minDropTime:xt,maxDropTime:Ot}=bt,At=Ot-xt;const Rt=({getState:e,dispatch:t})=>r=>n=>{if(!et(n,"DROP"))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&&m(),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&m();const a=i.critical,s=i.dimensions,c=s.draggables[i.critical.draggable.id],{impact:l,didDropInsideDroppable:u}=(({draggables:e,reason:t,lastImpact:r,home:n,viewport:i,onLiftImpact:o})=>{if(!r.at||"DROP"!==t)return{impact:ze({draggables:e,impact:o,destination:n,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1};return"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:Q},didDropInsideDroppable:!0}})({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.
41id],viewport:i.viewport,draggables:i.dimensions.draggables}),d=u?q(l):null,p=u?W(l):null,f={index:a.draggable.index,droppableId:a.droppable.id},h={draggableId:c.descriptor.id,type:c.descriptor.type,source:f,reason:o,mode:i.movementMode,destination:d,combine:p},g=(({impact:e,draggable:t,dimensions:r,viewport:n,afterCritical:i})=>{const{draggables:o,droppables:a}=r,s=Ce(e),c=s?a[s]:null,l=a[t.descriptor.droppableId],u=Ve({impact:e,draggable:t,draggables:o,afterCritical:i,droppable:c||l,viewport:n});return R(u,t.client.borderBox.center)})({impact:l,draggable:c,dimensions:s,viewport:i.viewport,afterCritical:i.afterCritical}),y={critical:i.critical,afterCritical:i.afterCritical,result:h,impact:l};if(!(!P(i.current.client.offset,g)||Boolean(h.combine)))return void t(ft({completed:y}));const v=(({current:e,destination:t,reason:r})=>{const n=k(e,t);if(n<=0)return xt;if(n>=1500)return Ot;const i=xt+At*(n/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))})({current:i.current.client.offset,destination:g,reason:o});t((e=>({type:"DROP_ANIMATE",payload:e}))({newHomeClientOffset:g,dropDuration:v,completed:y}))};var Pt=()=>({x:window.pageXOffset,y:window.pageYOffset});function It({onWindowScroll:e}){const t=(0,s.default)(function(){e(Pt())}),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}(t);let n=u;function i(){return n!==u}return{start:function(){i()&&m(),n=d(window,[r])},stop:function(){i()||m(),t.cancel(),n(),n=u},isActive:i}}const Ct=e=>{const t=It({onWindowScroll:t=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return e=>r=>{!t.isActive()&&et(r,"INITIAL_PUBLISH")&&t.start(),t.isActive()&&(e=>et(e,"DROP_COMPLETE")||et(e,"DROP_ANIMATE")||et(e,"FLUSH"))(r)&&t.stop(),e(r)}};var kt=()=>{const e=[];return{add:t=>{const r=setTimeout(()=>(t=>{const r=e.findIndex(e=>e.timerId===t);-1===r&&m();const[n]=e.splice(r,1);n.callback()})(r)),n={timerId:r,callback:t};e.push(n)},flush:()=>
41{if(!e.length)return;const t=[...e];e.length=0,t.forEach(e=>{clearTimeout(e.timerId),e.callback()})}}};const Mt=(e,t)=>{qe(),t(),We()},Dt=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Nt(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 Lt=(e,t)=>{const r=((e,t)=>{const r=kt();let n=null;const i=r=>{n||m(),n=null,Mt(0,()=>Nt(e().onDragEnd,r,t,S.onDragEnd))};return{beforeCapture:(t,r)=>{n&&m(),Mt(0,()=>{const n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})})},beforeStart:(t,r)=>{n&&m(),Mt(0,()=>{const n=e().onBeforeDragStart;n&&n(Dt(t,r))})},start:(i,o)=>{n&&m();const a=Dt(i,o);n={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},r.add(()=>{Mt(0,()=>Nt(e().onDragStart,a,t,S.onDragStart))})},update:(i,o)=>{const a=q(o),s=W(o);n||m();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 l=(d=a,!(null==(u=n.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));var u,d;l&&(n.lastLocation=a);const p=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId)(n.lastCombine,s);if(p&&(n.lastCombine=s),!c&&!l&&!p)return;const f={...Dt(i,n.mode),combine:s,destination:a};r.add(()=>{Mt(0,()=>Nt(e().onDragUpdate,f,t,S.onDragUpdate))})},flush:()=>{n||m(),r.flush()},drop:i,abort:()=>{if(!n)return;const e={...Dt(n.lastCritical,n.mode),combine:null,destination:null,reason:"CANCEL"};i(e)}}})(e,t);return e=>t=>n=>{if(et(n,"BEFORE_INITIAL_CAPTURE"))return void r.beforeCapture(n.payload.draggableId,n.payload.movementMode);if(et(n,"INITIAL_PUBLISH")){const e=n.payload.critical;return r.beforeStart(e,n.payload.movementMode),t(n),void r.start(e,n.payload.movementMode)}if(et(n,"DROP_COMPLETE")){const e=n.payload.completed.result;return r.flush(),t(n),void r.drop(e)}if(t(n),et(n,"FLUSH"))return void r.abort();const i=e.getState();"DRAGGING"===i.phase&&r.update(i.critical,i.impact)}};const Ft=e=>t=>r=>{if(!et(r,"DROP_ANIMATION_FINISHED"))return void t(r);const n=e.getState();"DROP_ANIMATING"!==n.phase&&m(),e.dispatch(ft({completed:n.completed}))},Bt=e=>{let t=null,r=null;return n=>i=>{if((et(i,"FLUSH")||et(i,"DROP_COMPLETE")||et(i,"DROP_ANIMATION_FINISHED"))&&(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),n(i),!et(i,"DROP_ANIMATE"))return;const o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};r=requestAnimationFrame(()=>{r=null,t=d(window,[o])})}};var jt=e=>t=>r=>n=>
41{if((e=>et(e,"DROP_COMPLETE")||et(e,"DROP_ANIMATE")||et(e,"FLUSH"))(n))return e.stop(),void r(n);if(et(n,"INITIAL_PUBLISH")){r(n);const i=t.getState();return"DRAGGING"!==i.phase&&m(),void e.start(i)}r(n),e.scroll(t.getState())};const Ut=e=>t=>r=>{if(t(r),!et(r,"PUBLISH_WHILE_DRAGGING"))return;const n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(ht({reason:n.reason})))},Ht=i.compose;var zt=({dimensionMarshal:e,focusMarshal:t,styleMarshal:r,getResponders:n,announce:o,autoScroller:a})=>{return(0,i.createStore)(Ze,Ht((0,i.applyMiddleware)((s=r,()=>e=>t=>{et(t,"INITIAL_PUBLISH")&&s.dragging(),et(t,"DROP_ANIMATE")&&s.dropping(t.payload.completed.result.reason),(et(t,"FLUSH")||et(t,"DROP_COMPLETE"))&&s.resting(),e(t)}),(e=>()=>t=>r=>{(et(r,"DROP_COMPLETE")||et(r,"FLUSH")||et(r,"DROP_ANIMATE"))&&e.stopPublishing(),t(r)})(e),(e=>({getState:t,dispatch:r})=>n=>i=>{if(!et(i,"LIFT"))return void n(i);const{id:o,clientSelection:a,movementMode:s}=i.payload,c=t();"DROP_ANIMATING"===c.phase&&r(ft({completed:c.completed})),"IDLE"!==t().phase&&m(),r(pt()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:o,movementMode:s}});const l={draggableId:o,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},{critical:u,dimensions:d,viewport:p}=e.startPublishing(l);r({type:"INITIAL_PUBLISH",payload:{critical:u,dimensions:d,clientSelection:a,movementMode:s,viewport:p}})})(e),Rt,Ft,Bt,Ut,jt(a),Ct,(e=>{let t=!1;return()=>r=>n=>{if(et(n,"INITIAL_PUBLISH"))return t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),void e.tryRestoreFocusRecorded();if(r(n),t){if(et(n,"FLUSH"))return t=!1,void e.tryRestoreFocusRecorded();if(et(n,"DROP_COMPLETE")){t=!1;const r=n.payload.completed.result;r.combine&&e.tryShiftRecord(r.draggableId,r.combine.draggableId),e.tryRestoreFocusRecorded()}}}})(t),Lt(n,o))));var s};var Vt=({scrollHeight:e,scrollWidth:t,height:r,width:n})=>{const i=R({x:t,y:e},{x:n,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Gt=()=>{const e=document.documentElement;return e||m(),e},$t=()=>{const e=Gt();return Vt({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},qt=({critical:e,scrollOptions:t,registry:r})=>{qe();const n=(()=>{const e=Pt(),t=$t(),r=e.y,n=e.x,i=Gt(),o=n+i.clientWidth,s=r+i.clientHeight;return{frame:(0,a.getRect)({top:r,left:n,right:o,bottom:s}),scroll:{initial:e,current:e,max:t,diff:{value:O,displacement:O}}}})(),i=n.scroll.current,o=e.droppable,s=r.droppable.getAllByType(o.type).map(e=>e.callbacks.getDimensionAndWatchScroll(i,t)),c=r.draggable.getAllByType(e.draggable.type).map(e=>e.getDimension(i)),l={draggables:z(c),droppables:H(s)};We();return{dimensions:l,critical:e,viewport:n}};function Wt(e,t,r){if(r.descriptor.id===t.id)return!1;if(r.descriptor.type!==t.type)return!1;return"virtual"===e.droppable.getById(r.descriptor.droppableId).descriptor.mode}var Kt=(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()})),l={additions:s,removals:Object.keys(o),modified:c};r={additions:{},removals:{},modified:{}},We(),t.publish(l)}))};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||m();const i=r.critical.draggable;"ADDITION"===t.type&&Wt(e,i,t.value)&&n.add(t.value),"REMOVAL"===t.type&&Wt(e,i,t.value)&&n.remove(t.value)},o={updateDroppableIsEnabled:(n,i)=>{e.droppable.exists(n)||m(),r&&t.updateDroppableIsEnabled({id:n,isEnabled:i})}
41,updateDroppableIsCombineEnabled:(n,i)=>{r&&(e.droppable.exists(n)||m(),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)||m(),t.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:t=>{r&&m();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},qt({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},Yt=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason),Jt=e=>{window.scrollBy(e.x,e.y)};const Qt=U(e=>V(e).filter(e=>!!e.isEnabled&&!!e.frame));var Xt=({center:e,destination:t,droppables:r})=>{if(t){const e=r[t];return e.frame?e:null}const n=((e,t)=>{const r=Qt(t).find(t=>(t.frame||m(),De(t.frame.pageMarginBox)(e)))||null;return r})(e,r);return n};const Zt={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var er=({startOfRange:e,endOfRange:t,current:r})=>{const n=t-e;if(0===n)return 0;return(r-e)/n},tr=({distanceToEdge:e,thresholds:t,dragStartTime:r,shouldUseTimeDampening:n,getAutoScrollerOptions:i})=>{const o=((e,t,r=()=>Zt)=>{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-er({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 l=er({startOfRange:i,endOfRange:s,current:c}),u=e*n.ease(l);return Math.ceil(u)})(o,r,i),1):o},rr=({container:e,distanceToEdges:t,dragStartTime:r,axis:n,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const a=((e,t,r=()=>Zt)=>{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]?tr({distanceToEdge:t[n.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o}):-1*tr({distanceToEdge:t[n.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o})};const nr=D(e=>0===e?0:e);var ir=({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=rr({container:t,distanceToEdges:a,dragStartTime:e,axis:re,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),c=rr({container:t,distanceToEdges:a,dragStartTime:e,axis:ne,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),l=nr({x:c,y:s});if(P(l,O))return null;const u=(({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:l});return u?P(u,O)?null:u:null};const or=D(e=>0===e?0:e>0?1:-1),ar=(()=>{const e=(e,t)=>e<0?e:e>t?e-t:0;return({current:t,max:r,change:n})=>{const i=A(t,n),o={x:e(i.x,r.x),y:e(i.y,r.y)};return P(o,O)?null:o}})(),sr=({max:e,current:t,change:r})=>{const n={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},i=or(r),o=ar({max:n,current:t,change:i});return!o||(0!==i.x&&0===o.x||0!==i.y&&0===o.y)},cr=(e,t)=>sr({current:e.scroll.current,max:e.scroll.max,change:t}),lr=(e,t)=>{const r=e.frame;return!!r&&sr({current:r.scroll.current,max:r.scroll.max,change:t})};var ur=({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=ir({dragStartTime:n,container:e.frame,subject:t,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return a&&cr(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=Xt({center:a,destination:Ce(e.impact),droppables:e.dimensions.droppables});if(!c)return;const l=(({droppable:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const a=e.frame;if(!a)return null;const s=ir({dragStartTime:n,container:a.pageMarginBox,subject:t,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return s&&lr(e,s)?s:null})({dragStartTime:t,droppable:c,subject:s,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});l&&i(c.descriptor.id,l)},dr=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:r=()=>Zt})=>{const n=(0,s.default)(e),i=(0,s.default)(t);let o=null;const a=e=>{o||m();const{shouldUseTimeDampening:t,dragStartTime:a}=o;ur({state:e,scrollWindow:n,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:t,getAutoScrollerOptions:r})};return{start:e=>{qe(),o&&m();const t=Date.now();let n=!1;const i=()=>{n=!0};ur({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:i,scrollDroppable:i,getAutoScrollerOptions:r}),o={dragStartTime:t,shouldUseTimeDampening:n},We(),n&&a(e)},stop:()=>{o&&(n.cancel(),i.cancel(),o=null)},scroll:a}},pr=({move:e,scrollDroppable:t,scrollWindow:r})=>{const n=(e,r)=>{if(!lr(e,r))return r;const n=((e,t)=>{const r=e.frame;return r&&lr(e,t)?ar({current:r.scroll.current,max:r.scroll.max,change:t}):null})(e,r);if(!n)return t(e.descriptor.id,r),null;const i=R(r,n);t(e.descriptor.id,i);return R(r,i)},i=(e,t,n)=>{if(!e)return n;if(!cr(t,n))return n;const i=((e,t)=>{if(!cr(e,t))return null;const r=e.scroll.max,n=e.scroll.current;return ar({current:n,max:r,change:t})})(t,n);if(!i)return r(n),null;const o=R(n,i);r(o);return R(n,o)};return t=>{const r=t.scrollJumpRequest;if(!r)return;const o=Ce(t.impact);o||m();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=A(t.current.client.selection,r);e({client:n})})(t,c)}},fr=({scrollDroppable:e,scrollWindow:t,move:r,getAutoScrollerOptions:n})=>{const i=dr({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:n}),o=pr({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 hr="data-rfd",mr=(()=>{const e=`${hr}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),gr=(()=>{const e=`${hr}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),yr=(()=>{const e=`${hr}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),vr={contextId:`${hr}-scroll-container-context-id`},br=(e,t)=>e.map(e=>{const r=e.styles[t];return r?`${e.selector} { ${r} }`:""}).join(" ");var _r=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(mr.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: ${St.outOfTheWay};\n    `;return{selector:t(gr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),n,{selector:t(yr.contextId),styles:{always:"overflow-anchor: n
41one;"}},{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:br(i,"always"),resting:br(i,"resting"),dragging:br(i,"dragging"),dropAnimating:br(i,"dropAnimating"),userCancel:br(i,"userCancel")}};const Sr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,Er=()=>{const e=document.querySelector("head");return e||m(),e},wr=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Tr(e,t){return Array.from(e.querySelectorAll(t))}var xr=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function Or(e){return e instanceof xr(e).HTMLElement}function Ar(e,t){const r=`[${mr.contextId}="${e}"]`,n=Tr(document,r);if(!n.length)return null;const i=n.find(e=>e.getAttribute(mr.draggableId)===t);return i&&Or(i)?i:null}function Rr(){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||m(),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||m(),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 Pr=n.default.createContext(null),Ir=()=>{const e=document.body;return e||m(),e};const Cr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},kr=e=>`rfd-announcement-${e}`;const Mr={separator:"::"};function Dr(e,t=Mr){const r=n.default.useId();return T(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}var Nr=n.default.createContext(null);function Lr(e){0}function Fr(e,t){Lr()}function Br(e){const t=(0,n.useRef)(e);return(0,n.useEffect)(()=>{t.current=e}),t}function jr(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}const Ur=9,Hr=13,zr=27,Vr=32,Gr=33,$r=34,qr=35,Wr=36,Kr=37,Yr=38,Jr=39,Qr=40,Xr={[Hr]:!0,[Ur]:!0};var Zr=e=>{Xr[e.keyCode]&&e.preventDefault()};const en=(()=>{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})(),tn=0,rn=5;const nn={type:"IDLE"};function on({cancel:e,completed:t,getPhase:r,setPhase:n}){return[{eventName:"mousemove",fn:e=>{const{button:t,clientX:i,clientY:o}=e;if(t!==tn)return;const a={x:i,y:o},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&m();const c=s.point;if(l=c,u=a,!(Math.abs(u.x-l.x)>=rn||Math.abs(u.y-l.y)>=rn))return;var l,u;e.preventDefault();const d=s.actions.fluidLift(a);n({type:"DRAGGING",actions:d})}},{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===zr?(t.preventDefault(),void e()):void Zr(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&&m(),n.actions.shouldRespectForcePress()?e():t.preventDefault()}},{eventName:en,fn:e}]}function an(e){const t=(0,n.useRef)(nn),r=(0,n.useRef)(u),i=T(()=>({eventName:"mousedown",fn:function(t){if(t.defaultPrevented)return;if(t.button!==tn)return;if(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)return;const n=e.findClosestDraggableId(t);if(!n)return;const i=e.tryGetLock(n,s,{sourceEvent:t});if(!i)return;t.preventDefault();const o={x:t.clientX,y:t.clientY};r.current(),p(i,o)}}),[e]),o=T(()=>({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]),a=x(function(){r.current=d(window,[o,i],{passive:!1,capture:!0})},[o,i]),s=x(()=>{"IDLE"!==t.current.type&&(t.current=nn,r.current(),a())},[a]),c=x(()=>{const e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[s]),l=x(function(){const e=on({cancel:c,completed:s,getPhase:()=>t.current,setPhase:e=>{t.current=e}});r.current=d(window,e,{capture:!0,passive:!1})},[c,s]),p=x(function(e,r){"IDLE"!==t.current.type&&m(),t.current={type:"PENDING",point:r,actions:e},l()},[l]);Sr(function(){return a(),function(){r.current()}},[a])}function sn(){}const cn={[$r]:!0,[Gr]:!0,[Wr]:!0,[qr]:!0};function ln(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:n=>n.keyCode===zr?(n.preventDefault(),void r()):n.keyCode===Vr?(n.preventDefault(),t(),void e.drop()):n.keyCode===Qr?(n.preventDefault(),void e.moveDown()):n.keyCode===Yr?(n.preventDefault(),void e.moveUp()):n.keyCode===Jr?(n.preventDefault(),void e.moveRight()):n.keyCode===Kr?(n.preventDefault(),void e.moveLeft()):void(cn[n.keyCode]?n.preventDefault():Zr(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:en,fn:r}]}function un(e){const t=(0,n.useRef)(sn),r=T(()=>({eventName:"keydown",fn:function(r){if(r.defaultPrevented)return;if(r.keyCode!==Vr)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||m(),a=!1,t.current(),i()}t.current(),t.current=d(window,ln(s,c),{capture:!0,passive:!1})}}),[e]),i=x(function(){t.current=d(window,[r],{passive:!1,capture:!0})},[r]);Sr(function(){return i(),function(){t.current()}},[i])}const dn={type:"IDLE"},pn=120,fn=.15;function hn(e){const t=(0,n.useRef)(dn),r=(0,n.useRef)(u),i=x(function(){return t.current},[]),o=x(function(e){t.current=e},[]),a=T(()=>({eventName:"touchstart",fn:function(t){if(t.defaultPrevented)return;const n=e.findClosestDraggableId(t);if(!n)return;const i=e.tryGetLock(n,c,{sourceEvent:t});if(!i)return;const o=t.touches[0],{clientX:a,clientY:s}=o,l={x:a,y:s};r.current(),h(i,l)}}),[e]),s=x(function(){r.current=d(window,[a],{capture:!0,passive:!1})},[a]),c=x(()=>{const e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(dn),r.current(),s())},[s,o]),l=x(()=>{const e=t.current;c(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[c]),p=x(function(){const e={capture:!0,passive:!1},t={cancel:l,completed:c,getPhase:i},n=d(window,function({cancel:e,completed:t,getPhase:r}){return[{eventName:"touchmove",options:{capture:!1},fn:t=>{const n=r();if("DRAGGING"!==n.type)return void e();n.hasMoved=!0;const{clientX:i,clientY:o}=t.touches[0],a={x:i,y:o};t.preventDefault(),n.actions.move(a)}},{eventName:"touchend",fn:n=>{const i=r();"DRAGGING"===i.type?(n.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"touchcancel",fn:t=>{"DRAGGING"===r().type?(t.preventDefault(),e()):e()}},{eventName:"touchforcechange",fn:t=>{const n=r();"IDLE"===n.type&&m();const i=t.touches[0];if(!i)return;if(!(i.force>=fn))return;const o=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return o?n.hasMoved?void t.preventDefault():void e():void t.preventDefault();o&&e()}},{eventName:en,fn:e}]}(t),e),o=d(window,function({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:r=>{"DRAGGING"===t().type?(r.keyCode===zr&&r.preventDefault(),e()):e()}},{eventName:en,fn:e}]}(t),e);r.current=function(){n(),o()}},[l,i,c]),f=x(function(){const e=i();"PENDING"!==e.type&&m();const t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})},[i,o]),h=x(function(e,t){"IDLE"!==i().type&&m();const r=setTimeout(f,pn);o({type:"PENDING",point:t,actions:e,longPressTimerId:r}),p()},[p,i,o,f]);Sr(function(){return s(),function(){r.current();const e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(dn))}}
41,[i,s,o]),Sr(function(){return d(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const mn=["input","button","textarea","select","option","optgroup","video","audio"];function gn(e,t){if(null==t)return!1;if(mn.includes(t.tagName.toLowerCase()))return!0;const r=t.getAttribute("contenteditable");return"true"===r||""===r||t!==e&&gn(e,t.parentElement)}function yn(e,t){const r=t.target;return!!Or(r)&&gn(e,r)}var vn=e=>(0,a.getRect)(e.getBoundingClientRect()).center;const bn=(()=>{const e="matches";if("undefined"==typeof document)return e;return[e,"msMatchesSelector","webkitMatchesSelector"].find(e=>e in Element.prototype)||e})();function _n(e,t){return null==e?null:e[bn](t)?e:_n(e.parentElement,t)}function Sn(e,t){return e.closest?e.closest(t):_n(e,t)}function En(e,t){const r=t.target;if(!((n=r)instanceof xr(n).Element))return null;var n;const i=function(e){return`[${mr.contextId}="${e}"]`}(e),o=Sn(r,i);return o&&Or(o)?o:null}function wn(e){e.preventDefault()}function Tn({expected:e,phase:t,isLockActive:r,shouldWarn:n}){return!!r()&&e===t}function xn({lockAPI:e,store:t,registry:r,draggableId:n}){if(e.isClaimed())return!1;const i=r.draggable.findById(n);return!!i&&(!!i.options.isEnabled&&!!Yt(t.getState(),n))}function On({lockAPI:e,contextId:t,store:r,registry:n,draggableId:i,forceSensorStop:o,sourceEvent:a}){if(!xn({lockAPI:e,store:r,registry:n,draggableId:i}))return null;const c=n.draggable.getById(i),l=function(e,t){const r=`[${gr.contextId}="${e}"]`,n=Tr(document,r).find(e=>e.getAttribute(gr.id)===t);return n&&Or(n)?n:null}(t,c.descriptor.id);if(!l)return null;if(a&&!c.options.canDragInteractiveElements&&yn(l,a))return null;const p=e.claim(o||u);let f="PRE_DRAG";function h(){return c.options.shouldRespectForcePress}function g(){return e.isActive(p)}const y=function(e,t){Tn({expected:e,phase:f,isLockActive:g,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function v(t){function n(){e.release(),f="COMPLETED"}function i(e,i={shouldBlockNextClick:!1}){if(t.cleanup(),i.shouldBlockNextClick){const e=d(window,[{eventName:"click",fn:wn,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}n(),r.dispatch(ht({reason:e}))}return"PRE_DRAG"!==f&&(n(),m()),r.dispatch(tt(t.liftActionArgs)),f="DRAGGING",{isActive:()=>Tn({expected:"DRAGGING",phase:f,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:h,drop:e=>i("DROP",e),cancel:e=>i("CANCEL",e),...t.actions}}return{isActive:()=>Tn({expected:"PRE_DRAG",phase:f,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:h,fluidLift:function(e){const t=(0,s.default)(e=>{y(()=>st({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(ct),moveRight:()=>y(ut),moveDown:()=>y(lt),moveLeft:()=>y(dt)};return v({liftActionArgs:{id:i,clientSelection:vn(l),movementMode:"SNAP"},cleanup:u,actions:e})},abort:function(){Tn({expected:"PRE_DRAG",phase:f,isLockActive:g,shouldWarn:!0})&&e.release()}}}const An=[an,un,hn];function Rn({contextId:e,store:t,registry:r,customSensors:i,enableDefaultSensors:o}){const a=[...o?An:[],...i||[]],s=(0,n.useState)(()=>function(){let e=null;function t(){e||m(),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&m();const r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}())[0],c=x(function(e,t){jr(e)&&!jr(t)&&s.tryAbandon()},[s]);Sr(function(){let e=t.getState();return t.subscribe(()=>{const r=t.getState();c(e,r),e=r})},[s,t,c]),Sr(()=>s.tryAbandon,[s.tryAbandon]);const l=x(e=>xn({lockAPI:s,registry:r,store:t,draggableId:e}),[s,r,t]),u=x((n,i,o)=>On({lockAPI:s,registry:r,contextId:e,store:t,draggableId:n,forceSensorStop:i||null,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null}),[e,s,r,t]),d=x(t=>function(e,t){const r=En(e,t);return r?r.getAttribute(mr.draggableId):null}(e,t),[e]),p=x(e=>{const t=r.draggable.findById(e);return t?t.options:null},[r.draggable]),f=x(function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch(pt()))},[s,t]),h=x(()=>s.isClaimed(),[s]),g=T(()=>({canGetLock:l,tryGetLock:u,findClosestDraggableId:d,findOptionsForDraggable:p,tryReleaseLock:f,isLockClaimed:h}),[l,u,d,p,f,h]);Lr();for(let e=0;e<a.length;e++)a[e](g)}const Pn=e=>({onBeforeCapture:t=>{(0,n.flushSync)(()=>{e.onBeforeCapture&&e.onBeforeCapture(t)})},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),In=e=>({...Zt,...e.autoScrollerOptions,durationDampening:{...Zt.durationDampening,...e.autoScrollerOptions}});function Cn(e){return e.current||m(),e.current}function kn(e){const{contextId:t,setCallbacks:r,sensors:a,nonce:s,dragHandleUsageInstructions:l}=e,u=(0,n.useRef)(null);Fr();const d=Br(e),p=x(()=>Pn(d.current),[d]),f=x(()=>In(d.current),[d]),h=function(e){const t=T(()=>kr(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,c.default)(e.style,Cr),Ir().appendChild(e),function(){setTimeout(function(){const t=Ir();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)})}},[t]),x(e=>{const t=r.current;t&&(t.textContent=e)},[])}(t),g=function({contextId:e,text:t}){const r=Dr("hidden-text",{separator:"-"}),i=T(()=>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",Ir().appendChild(e),function(){const t=Ir();t.contains(e)&&t.removeChild(e)}},[i,t]),i}({contextId:t,text:l}),y=function(e,t){const r=T(()=>_r(e),[e]),i=(0,n.useRef)(null),o=(0,n.useRef)(null),a=x(U(e=>{const t=o.current;t||m(),t.textContent=e}),[]),s=x(e=>{const t=i.current;t||m(),t.textContent=e},[]);Sr(()=>{(i.current||o.current)&&m();
41const n=wr(t),c=wr(t);return i.current=n,o.current=c,n.setAttribute(`${hr}-always`,e),c.setAttribute(`${hr}-dynamic`,e),Er().appendChild(n),Er().appendChild(c),s(r.always),a(r.resting),()=>{const e=e=>{const t=e.current;t||m(),Er().removeChild(t),e.current=null};e(i),e(o)}},[t,s,a,r.always,r.resting,e]);const c=x(()=>a(r.dragging),[a,r.dragging]),l=x(e=>{a("DROP"!==e?r.userCancel:r.dropAnimating)},[a,r.dropAnimating,r.userCancel]),u=x(()=>{o.current&&a(r.resting)},[a,r.resting]);return T(()=>({dragging:c,dropping:l,resting:u}),[c,l,u])}(t,s),v=x(e=>{Cn(u).dispatch(e)},[]),b=T(()=>(0,i.bindActionCreators)({publishWhileDragging:rt,updateDroppableScroll:it,updateDroppableIsEnabled:ot,updateDroppableIsCombineEnabled:at,collectionStarting:nt},v),[v]),_=function(){const e=T(Rr,[]);return(0,n.useEffect)(()=>function(){e.clean()},[e]),e}(),S=T(()=>Kt(_,b),[_,b]),E=T(()=>fr({scrollWindow:Jt,scrollDroppable:S.scrollDroppable,getAutoScrollerOptions:f,...(0,i.bindActionCreators)({move:st},v)}),[S.scrollDroppable,v,f]),w=function(e){const t=(0,n.useRef)({}),r=(0,n.useRef)(null),i=(0,n.useRef)(null),o=(0,n.useRef)(!1),a=x(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]}},[]),s=x(function(t){const r=Ar(e,t);r&&r!==document.activeElement&&r.focus()},[e]),c=x(function(e,t){r.current===e&&(r.current=t)},[]),l=x(function(){i.current||o.current&&(i.current=requestAnimationFrame(()=>{i.current=null;const e=r.current;e&&s(e)}))},[s]),u=x(function(e){r.current=null;const t=document.activeElement;t&&t.getAttribute(mr.draggableId)===e&&(r.current=e)},[]);return Sr(()=>(o.current=!0,function(){o.current=!1;const e=i.current;e&&cancelAnimationFrame(e)}),[]),T(()=>({register:a,tryRecordFocus:u,tryRestoreFocusRecorded:l,tryShiftRecord:c}),[a,u,l,c])}(t),O=T(()=>zt({announce:h,autoScroller:E,dimensionMarshal:S,focusMarshal:w,getResponders:p,styleMarshal:y}),[h,E,S,w,p,y]);u.current=O;const A=x(()=>{const e=Cn(u);"IDLE"!==e.getState().phase&&e.dispatch(pt())},[]),R=x(()=>{const e=Cn(u).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging},[]);r(T(()=>({isDragging:R,tryAbort:A}),[R,A]));const P=x(e=>Yt(Cn(u).getState(),e),[]),I=x(()=>Me(Cn(u).getState()),[]),C=T(()=>({marshal:S,focus:w,contextId:t,canLift:P,isMovementAllowed:I,dragHandleUsageInstructionsId:g,registry:_}),[t,S,g,w,P,I,_]);return Rn({contextId:t,store:O,registry:_,customSensors:a||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)(()=>A,[A]),n.default.createElement(Nr.Provider,{value:C},n.default.createElement(o.Provider,{context:Pr,store:O},e.children))}function Mn(e){const t=n.default.useId(),r=e.dragHandleUsageInstructions||S.dragHandleUsageInstructions;return n.default.createElement(g,null,i=>n.default.createElement(kn,{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 Dn=5e3,Nn=4500,Ln=(e,t)=>t?St.drop(t.duration):e?St.snap:St.fluid,Fn=(e,t)=>{if(e)return t?yt.drop:yt.combining};function Bn(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?Tt(r,o):wt(r);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Ln(a,i),transform:c,opacity:Fn(o,s),zIndex:s?Nn:Dn,pointerEvents:"none"}}(e):{transform:wt((t=e).offset),transition:t.shouldAnimateDisplacement?void 0:"none"};var t}function jn(e){const t=Dr("draggable"),{descriptor:r,registry:i,getDraggableRef:o,canDragInteractiveElements:s,shouldRespectForcePress:c,isEnabled:l}=e,u=T(()=>({canDragInteractiveElements:s,shouldRespectForcePress:c,isEnabled:l}),[s,l,c]),d=x(e=>{const t=o();return t||m(),function(e,t,r=O){const n=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=(0,a.calculateBox)(i,n),s=(0,a.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:s}}(r,t,e)},[r,o]),p=T(()=>({uniqueId:t,descriptor:r,options:u,getDimension:d}),[r,d,u,t]),f=(0,n.useRef)(p),h=(0,n.useRef)(!0);Sr(()=>(i.draggable.register(f.current),()=>i.draggable.unregister(f.current)),[i.draggable]),Sr(()=>{if(h.current)return void(h.current=!1);const e=f.current;f.current=p,i.draggable.update(p,e)},[p,i.draggable])}var Un=n.default.createContext(null);function Hn(e){const t=(0,n.useContext)(e);return t||m(),t}function zn(e){e.preventDefault()}var Vn=(e,t)=>e===t,Gn=e=>{const{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};function $n(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,comb
41ineWith:null}}const qn={mapped:{type:"SECONDARY",offset:O,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:$n(null)}};const Wn={dropAnimationFinished:mt},Kn=(0,o.connect)(()=>{const e=function(){const e=U((e,t)=>({x:e,y:t})),t=U((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=U((e,r,n,i,o=null,a=null,s=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:r,offset:e,dimension:n,forceShouldAnimate:s,snapshot:t(r,i,o,a,null)}}));return(n,i)=>{if(jr(n)){if(n.critical.draggable.id!==i.draggableId)return null;const t=n.current.client.offset,a=n.dimensions.draggables[i.draggableId],s=Ce(n.impact),c=(o=n.impact).at&&"COMBINE"===o.at.type?o.at.combine.draggableId:null,l=n.forceShouldAnimate;return r(e(t.x,t.y),n.movementMode,a,i.isClone,s,c,l)}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),l=(e=>e.combine?e.combine.draggableId:null)(a),u={duration:n.dropDuration,curve:gt,moveTo:n.newHomeClientOffset,opacity:l?yt.drop:null,scale:l?vt.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:o,dropping:u,draggingOver:c,combineWith:l,mode:s,forceShouldAnimate:null,snapshot:t(s,r,c,l,u)}}}return null}}(),t=function(){const e=U((e,t)=>({x:e,y:t})),t=U($n),r=U((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]),l=W(o),u=l&&l.draggableId===t?i:null;if(!s){if(!c)return n(u);if(o.displaced.invisible[t])return null;const i=I(a.displacedBy.point),s=e(i.x,i.y);return r(s,u,!0)}if(c)return n(u);const d=o.displacedBy.point,p=e(d.x,d.y);return r(p,u,s.shouldAnimate)};return(e,t)=>{if(jr(e))return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){const r=e.completed;return r.result.draggableId===t.draggableId?null:i(t.draggableId,r.result.draggableId,r.impact,r.afterCritical)}return null}}();return(r,n)=>e(r,n)||t(r,n)||qn},Wn,null,{context:Pr,areStatePropsEqual:Vn})(e=>{const t=(0,n.useRef)(null),r=x((e=null)=>{t.current=e},[]),i=x(()=>t.current,[]),{contextId:o,dragHandleUsageInstructionsId:a,registry:s}=Hn(Nr),{type:c,droppableId:l}=Hn(Un),u=T(()=>({id:e.draggableId,index:e.index,type:c,droppableId:l}),[e.draggableId,e.index,c,l]),{children:d,draggableId:p,isEnabled:f,shouldRespectForcePress:h,canDragInteractiveElements:m,isClone:g,mapped:y,dropAnimationFinished:v}=e;if(Fr(),Lr(),!g){jn(T(()=>({descriptor:u,registry:s,getDraggableRef:i,canDragInteractiveElements:m,shouldRespectForcePress:h,isEnabled:f}),[u,s,i,m,h,f]))}const b=T(()=>f?{tabIndex:0,role:"button","aria-describedby":a,"data-rfd-drag-handle-draggable-id":p,"data-rfd-drag-handle-context-id":o,draggable:!1,onDragStart:zn}:null,[o,a,p,f]),_=x(e=>{"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&(0,n.flushSync)(v)},[v,y]),S=T(()=>{const e=Bn(y),t="DRAGGING"===y.type&&y.dropping?_:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":o,"data-rfd-draggable-id":p,style:e,onTransitionEnd:t},dragHandleProps:b}},[o,b,p,y,_,r]),E=T(()=>({draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}),[u.droppableId,u.id,u.index,u.type]);return n.default.createElement(n.default.Fragment,null,d(S,y.snapshot,E))});function Yn(e){return Hn(Un).isUsingCloneFor!==e.draggableId||e.isClone?n.default.createElement(Kn,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(Yn,(0,c.default)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:i}))}const Qn=e=>t=>e===t,Xn=Qn("scroll"),Zn=Qn("auto"),ei=(Qn("visible"),(e,t)=>t(e.overflowX)||t(e.overflowY)),ti=e=>null==e||e===document.body||e===document.documentElement?null:(e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return ei(r,Xn)||ei(r,Zn)})(e)?e:ti(e.parentElement);var ri=e=>({x:e.scrollLeft,y:e.scrollTop});const ni=e=>{if(!e)return!1;return"fixed"===window.getComputedStyle(e).position||ni(e.parentElement)};var ii=({ref:e,descriptor:t,env:r,windowScroll:n,direction:i,isDropDisabled:o,isCombine
41Enabled:s,shouldClipSubject:c})=>{const l=r.closestScrollable,u=((e,t)=>{const r=(0,a.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,s={top:n,right:i+t.scrollWidth,bottom:o,left:i},c=(0,a.expand)(s,r.border);return(0,a.createBox)({borderBox:c,margin:r.margin,border:r.border,padding:r.padding})})(e,l),d=(0,a.withScroll)(u,n),p=(()=>{if(!l)return null;const e=(0,a.getBox)(l),t={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:e,page:(0,a.withScroll)(e,n),scroll:ri(l),scrollSize:t,shouldClipSubject:c}})(),f=(({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=Vt({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}}}})(),l="vertical"===i?re:ne;return{descriptor:e,isCombineEnabled:r,isFixedOnPage:n,axis:l,isEnabled:t,client:o,page:a,frame:c,subject:B({page:a,withPlaceholder:null,axis:l,frame:c})}}
41)({descriptor:t,isEnabled:!o,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:i,client:u,page:d,closest:p});return f};const oi={passive:!1},ai={passive:!0};var si=e=>e.shouldPublishImmediately?oi:ai;const ci=e=>e&&e.env.closestScrollable||null;function li(e){const t=(0,n.useRef)(null),r=Hn(Nr),i=Dr("droppable"),{registry:o,marshal:a}=r,c=Br(e),l=T(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),u=(0,n.useRef)(l),d=T(()=>U((e,r)=>{t.current||m();const n={x:e,y:r};a.updateDroppableScroll(l.id,n)}),[l.id,a]),p=x(()=>{const e=t.current;return e&&e.env.closestScrollable?ri(e.env.closestScrollable):O},[]),f=x(()=>{const e=p();d(e.x,e.y)},[p,d]),h=T(()=>(0,s.default)(f),[f]),g=x(()=>{const e=t.current,r=ci(e);e&&r||m();e.scrollOptions.shouldPublishImmediately?f():h()},[h,f]),y=x((e,n)=>{t.current&&m();const i=c.current,o=i.getDroppableRef();o||m();const a=(e=>({closestScrollable:ti(e),isFixedOnPage:ni(e)}))(o),s={ref:o,descriptor:l,env:a,scrollOptions:n};t.current=s;const u=ii({ref:o,descriptor:l,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(vr.contextId,r.contextId),d.addEventListener("scroll",g,si(s.scrollOptions))),u},[r.contextId,l,g,c]),v=x(()=>{const e=t.current,r=ci(e);return e&&r||m(),ri(r)},[]),b=x(()=>{const e=t.current;e||m();const r=ci(e);t.current=null,r&&(h.cancel(),r.removeAttribute(vr.contextId),r.removeEventListener("scroll",g,si(e.scrollOptions)))},[g,h]),_=x(e=>{const r=t.current;r||m();const n=ci(r);n||m(),n.scrollTop+=e.y,n.scrollLeft+=e.x},[]),S=T(()=>({getDimensionAndWatchScroll:y,getScrollWhileDragging:v,dragStopped:b,scroll:_}),[b,y,v,_]),E=T(()=>({uniqueId:i,descriptor:l,callbacks:S}),[S,l,i]);Sr(()=>(u.current=E.descriptor,o.droppable.register(E),()=>{t.current&&b(),o.droppable.unregister(E)}),[S,l,b,E,a,o.droppable]),Sr(()=>{t.current&&a.updateDroppableIsEnabled(u.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),Sr(()=>{t.current&&a.updateDroppableIsCombineEnabled(u.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function ui(){}const di={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},pi=({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?St.placeholder:null}};var fi=n.default.memo(e=>{const t=(0,n.useRef)(null),r=x(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:i,onTransitionEnd:o,onClose:a,contextId:s}
41=e,[c,l]=(0,n.useState)("open"===e.animate);(0,n.useEffect)(()=>c?"open"!==i?(r(),l(!1),ui):t.current?ui:(t.current=setTimeout(()=>{t.current=null,l(!1)}),r):ui,[i,c,r]);const u=x(e=>{"height"===e.propertyName&&(o(),"close"===i&&a())},[i,a,o]),d=pi({isAnimatingOpenOnMount:c,animate:e.animate,placeholder:e.placeholder});return n.default.createElement(e.placeholder.tagName,{style:d,"data-rfd-placeholder-context-id":s,onTransitionEnd:u,ref:e.innerRef})});class hi 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)}}const mi={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||m(),document.body}},gi=e=>{let t,r={...e};for(t in mi)void 0===e[t]&&(r={...r,[t]:mi[t]});return r},yi=(e,t)=>e===t.droppable.type,vi=(e,t)=>t.draggables[e.draggable.id],bi={updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},_i=(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=U(e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}})),n=U((n,i,o,a,s,c)=>{const l=s.descriptor.id;if(s.descriptor.droppableId===n){const e=c?{render:c,dragging:r(s.descriptor)}:null,t={isDraggingOver:o,draggingOverWith:o?l:null,draggingFromThisWith:l,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:t,useClone:e}}if(!i)return t;if(!a)return e;const u={isDraggingOver:o,draggingOverWith:l,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:u,useClone:null}});return(r,i)=>{const o=gi(i),a=o.droppableId,s=o.type,c=!o.isDropDisabled,l=o.renderClone;if(jr(r)){const e=r.critical;if(!yi(s,e))return t;const i=vi(e,r.dimensions),o=Ce(r.impact)===a;return n(a,c,o,o,i,l)}if("DROP_ANIMATING"===r.phase){const e=r.completed;if(!yi(s,e.critical))return t;const i=vi(e.critical,r.dimensions);return n(a,c,Gn(e.result)===a,Ce(e.impact)===a,i,l)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){const n=r.completed;if(!yi(s,n.critical))return t;const i=Ce(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}},bi,(e,t,r)=>({...gi(r),...e,...t}),{context:Pr,areStatePropsEqual:Vn})(e=>{const t=(0,n.useContext)(Nr);t||m();const{contextId:r,isMovementAllowed:i}=t,o=(0,n.useRef)(null),a=(0,n.useRef)(null),{children:s,droppableId:c,type:l,mode:u,direction:d,ignoreContainerClipping:p,isDropDisabled:f,isCombineEnabled:h,snapshot:g,useClone:y,updateViewportMaxScroll:v,getContainerForClone:b}=e,_=x(()=>o.current,[]),S=x((e=null)=>{o.current=e},[]),E=(x(()=>a.current,[]),x((e=null)=>{a.current=e},[]));Fr();const w=x(()=>{i()&&v({maxScroll:$t()})},[i,v]);li({droppableId:c,type:l,mode:u,direction:d,isDropDisabled:f,isCombineEnabled:h,ignoreContainerClipping:p,getDroppableRef:_});const O=T(()=>n.default.createElement(hi,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:e,data:t,animate:i})=>n.default.createElement(fi,{placeholder:t,onClose:e,innerRef:E,animate:i,contextId:r,onTransitionEnd:w})),[r,w,e.placeholder,e.shouldAnimatePlaceholder,E]),A=T(()=>({innerRef:S,placeholder:O,droppableProps:{"data-rfd-droppable-id":c,"data-rfd-droppable-context-id":r}}),[r,c,O,S]),R=y?y.dragging.draggableId:null,P=T(()=>({droppableId:c,type:l,isUsingCloneFor:R}),[c,R,l]);return n.default.createElement(Un.Provider,{value:P},s(A,g),function(){if(!y)return null;const{dragging:e,render:t}=y,r=n.default.createElement(Yn,{draggableId:e.draggableId,index:e.s
41ource.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(r,n)=>t(r,n,e));return n.default.createPortal(r,b())}())})},(e,t,r)=>{"use strict";function n(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. `}r.r(t),r.d(t,{__DO_NOT_USE__ActionTypes:()=>a,applyMiddleware:()=>h,bindActionCreators:()=>p,combineReducers:()=>u,compose:()=>f,createStore:()=>c,isAction:()=>m,isPlainObject:()=>s,legacy_createStore:()=>l});var i=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),o=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${o()}`,REPLACE:`@@redux/REPLACE${o()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${o()}`};function s(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function c(e,t,r){if("function"!=typeof e)throw new Error(n(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(n(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(n(1));return r(c)(e,t)}let o=e,l=t,u=new Map,d=u,p=0,f=!1;function h(){d===u&&(d=new Map,u.forEach((e,t)=>{d.set(t,e)}))}function m(){if(f)throw new Error(n(3));return l}function g(e){if("function"!=typeof e)throw new Error(n(4));if(f)throw new Error(n(5));let t=!0;h();const r=p++;return d.set(r,e),function(){if(t){if(f)throw new Error(n(6));t=!1,h(),d.delete(r),u=null}}}function y(e){if(!s(e))throw new Error(n(7));if(void 0===e.type)throw new Error(n(8));if("string"!=typeof e.type)throw new Error(n(17));if(f)throw new Error(n(9));try{f=!0,l=o(l,e)}finally{f=!1}return(u=d).forEach(e=>{e()}),e}y({type:a.INIT});return{dispatch:y,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(n(10));o=e,y({type:a.REPLACE})},[i]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(n(11));function r(){const e=t;e.next&&e.next(m())}r();return{unsubscribe:e(r)}},[i](){return this}}}}}function l(e,t,r){return c(e,t,r)}function u(e){const t=Object.keys(e),r={};for(let n=0;n<t.length;n++){const i=t[n];0,"function"==typeof e[i]&&(r[i]=e[i])}const i=Object.keys(r);let o;try{!function(e){Object.keys(e).forEach(t=>{const r=e[t];if(void 0===r(void 0,{type:a.INIT}))throw new Error(n(12));if(void 0===r(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(n(13))})}(r)}catch(e){o=e}return function(e={},t){if(o)throw o;let a=!1;const s={};for(let o=0;o<i.length;o++){const c=i[o],l=r[c],u=e[c],d=l(u,t);if(void 0===d){t&&t.type;throw new Error(n(14))}s[c]=d,a=a||d!==u}return a=a||i.length!==Object.keys(e).length,a?s:e}}function d(e,t){return function(...r){return t(e.apply(this,r))}}function p(e,t){if("function"==typeof e)return d(e,t);if("object"!=typeof e||null===e)throw new Error(n(16));const r={};for(const n in e){const i=e[n];"function"==typeof i&&(r[n]=d(i,t))}return r}function f(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function h(...e){return t=>(r,i)=>{const o=t(r,i);let a=()=>{throw new Error(n(15))};const s={getState:o.getState,dispatch:(e,...t)=>a(e,...t)},c=e.map(e=>e(s));return a=f(...c)(o.dispatch),{...o,dispatch:a}}}function m(e){return s(e)&&"type"in e&&"string"==typeof e.type}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Provider:()=>ne,ReactReduxContext:()=>J,batch:()=>fe,connect:()=>te,createDispatchHook:()=>ce,createSelectorHook:()=>de,createStoreHook:()=>ae,legacy_connect:()=>re,shallowEqual:()=>D,useDispatch:()=>le,useSelector:()=>pe,useStore:()=>se});var n=r(396),i=r(3082),o=n.version.startsWith("19"),a=Symbol.for(o?"react.transitional.element":"react.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=f,b=g;function _(e){if("object"==typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case a:switch(e=e.type){case c:case u:case l:case h:case m:return e;default:switch(e=e&&e.$$typeof){case p:case f:case y:case g:case d:return e;default:return t}}case s:return t}}}function S(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s,c,l,u,d,p=!1;function f(p,f){const h=!o(f,c),m=!i(p,s,f,c);
vendor: 4,480 bytes, line 41
41return s=p,c=f,h&&m?(l=e(s,c),t.dependsOnOwnProps&&(u=t(n,c)),d=r(l,u,c),d):h?(e.dependsOnOwnProps&&(l=e(s,c)),t.dependsOnOwnProps&&(u=t(n,c)),d=r(l,u,c),d):m?function(){const t=e(s,c),n=!a(t,l);return l=t,n&&(d=r(l,u,c)),d}():d}return function(i,o){return p?f(i,o):(s=i,c=o,l=e(s,c),u=t(n,c),d=r(l,u,c),p=!0,d)}}function E(e){return function(t){const r=e(t);function n(){return r}return n.dependsOnOwnProps=!1,n}}function w(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function T(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=w(e);let i=n(t,r);return"function"==typeof i&&(n.mapToProps=i,n.dependsOnOwnProps=w(i),i=n(t,r)),i},n}}function x(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function O(e,t,r){return{...r,...e,...t}}function A(e){e()}var R={notify(){},get:()=>[]};function P(e,t){let r,n=R,i=0,o=!1;function a(){l.onStateChange&&l.onStateChange()}function s(){i++,r||(r=t?t.addNestedSub(a):e.subscribe(a),n=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){A(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let r=e;for(;r;)t.push(r),r=r.next;return t},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){n&&null!==e&&(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function c(){i--,r&&0===i&&(r(),r=void 0,n.clear(),n=R)}const l={addNestedSub:function(e){s();const t=n.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),c())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,c())},getListeners:()=>n};return l}var I=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),C=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),k=(()=>I||C?n.useLayoutEffect:n.useEffect)();function M(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function D(e,t){if(M(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!M(e[r[n]],t[r[n]]))return!1;return!0}var N={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},L={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},F={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},B={[v]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[b]:F};function j(e){return _(e)===g?F:B[e.$$typeof]||N}var U=Object.defineProperty,H=Object.getOwnPropertyNames,z=Object.getOwnPropertySymbols,V=Object.getOwnPropertyDescriptor,G=Object.getPrototypeOf,$=Object.prototype;function q(e,t){if("string"!=typeof t){if($){const r=G(t);r&&r!==$&&q(e,r)}let r=H(t);z&&(r=r.concat(z(t)));const n=j(e),i=j(t);for(let o=0;o<r.length;++o){const a=r[o];if(!(L[a]||i&&i[a]||n&&n[a])){const r=V(t,a);try{U(e,a,r)}catch(e){}}}}return e}var W=Symbol.for("react-redux-context"),K="undefined"!=typeof globalThis?globalThis:{};function Y(){if(!n.createContext)return{};const e=K[W]??=new Map;let t=e.get(n.createContext);return t||(t=n.createContext(null),e.set(n.createContext,t)),t}var J=Y(),Q=[null,null];function X(e,t,r,n,i,o){e.current=n,r.current=!1,i.current&&(i.current=null,o())}function Z(e,t){return e===t}function ee(e,t,r,{pure:i,areStatesEqual:o=Z,areOwnPropsEqual:a=D,areStatePropsEqual:s=D,areMergedPropsEqual:c=D,forwardRef:l=!1,context:u=J}={}){const d=u,p=function(e){return e?"function"==typeof e?T(e):x(e,"mapStateToProps"):E(()=>({}))}(e),f=function(e){return e&&"object"==typeof e?E(t=>function(e,t){const r={};for(const n in e){const i=e[n];"function"==typeof i&&(r[n]=(...e)=>t(i(...e)))}return r}(e,t)):e?"function"==typeof e?T(e):x(e,"mapDispatchToProps"):E(e=>({dispatch:e}))}(t),h=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:r,areMergedPropsEqual:n}){let i,o=!1;return function(t,r,a){const s=e(t,r,a);
41return o?n(s,i)||(i=s):(o=!0,i=s),i}}}(e):x(e,"mergeProps"):()=>O}(r),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",r=`Connect(${t})`,i={shouldHandleStateChanges:m,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:f,initMergeProps:h,areStatesEqual:o,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:c};function u(t){const[r,o,a]=n.useMemo(()=>{const{reactReduxForwardedRef:e,...r}=t;return[t.context,e,r]},[t]),s=n.useMemo(()=>d,[r,d]),c=n.useContext(s),l=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(c)&&Boolean(c.store);const p=l?t.store:c.store,f=u?c.getServerState:p.getState,h=n.useMemo(()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){return S(t(e,i),r(e,i),n(e,i),e,i)}(p.dispatch,i),[p]),[g,y]=n.useMemo(()=>{if(!m)return Q;const e=P(p,l?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[p,l,c]),v=n.useMemo(()=>l?c:{...c,subscription:g},[l,c,g]),b=n.useRef(void 0),_=n.useRef(a),E=n.useRef(void 0),w=n.useRef(!1),T=n.useRef(!1),x=n.useRef(void 0);k(()=>(T.current=!0,()=>{T.current=!1}),[]);const O=n.useMemo(()=>()=>E.current&&a===_.current?E.current:h(p.getState(),a),[p,a]),A=n.useMemo(()=>e=>g?function(e,t,r,n,i,o,a,s,c,l,u){if(!e)return()=>{};let d=!1,p=null;const f=()=>{if(d||!s.current)return;const e=t.getState();let r,f;try{r=n(e,i.current)}catch(e){f=e,p=e}f||(p=null),r===o.current?a.current||l():(o.current=r,c.current=r,a.current=!0,u())};return r.onStateChange=f,r.trySubscribe(),f(),()=>{if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,p)throw p}}(m,p,g,h,_,b,w,T,E,y,e):()=>{},[g]);var R,I,C;let M;R=X,I=[_,b,w,a,E,y],k(()=>R(...I),C);try{M=n.useSyncExternalStore(A,O,f?()=>h(f(),a):O)}catch(e){throw x.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${x.current.stack}\n\n`),e}k(()=>{x.current=void 0,E.current=void 0,b.current=M});const D=n.useMemo(()=>n.createElement(e,{...M,ref:o}),[o,e,M]);return n.useMemo(()=>m?n.createElement(s.Provider,{value:v},D):D,[s,D,v])}const g=n.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=r,l){const t=n.forwardRef(function(e,t){return n.createElement(g,{...e,reactReduxForwardedRef:t})});return t.displayName=r,t.WrappedComponent=e,q(t,e)}return q(g,e)}}var te=ee,re=ee;var ne=function(e){const{children:t,context:r,serverState:i,store:o}=e,a=n.useMemo(()=>{const e=P(o);return{store:o,subscription:e,getServerState:i?()=>i:void 0}},[o,i]),s=n.useMemo(()=>o.getState(),[o]);k(()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,s]);const c=r||J;return n.createElement(c.Provider,{value:a},t)};function ie(e=J){return function(){return n.useContext(e)}}var oe=ie();function ae(e=J){const t=e===J?oe:ie(e),r=()=>{const{store:e}=t();return e};return Object.assign(r,{withTypes:()=>r}),r}var se=ae();function ce(e=J){const t=e===J?se:ae(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var le=ce(),ue=(e,t)=>e===t;function de(e=J){const t=e===J?oe:ie(e),r=(e,r={})=>{const{equalityFn:o=ue}="function"==typeof r?{equalityFn:r}:r;const a=t(),{store:s,subscription:c,getServerState:l}=a,u=(n.useRef(!0),n.useCallback({[e.name]:t=>e(t)}[e.name],[e])),d=(0,i.useSyncExternalStoreWithSelector)(c.addNestedSub,s.getState,l||s.getState,u,o);return n.useDebugValue(d),d};return Object.assign(r,{withTypes:()=>r}),r}var pe=de(),fe=A},(e,t,r)=>{"use strict";e.exports=r(3083)},(e,t,r)=>{"use strict";
42/**
43 * @license React
44 * use-sync-external-store-with-selector.production.js
45 *
46 * Copyright (c) Meta Platforms, Inc. and affiliates.
47 *
48 * This source code is licensed under the MIT license found in the
49 * LICENSE file in the root directory of this source tree.
50 */var n=r(396);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.useSyncExternalStore,a=n.useRef,s=n.useEffect,c=n.useMemo,l=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,u){var d=a(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c(function(){function e(e){if(!s){if(s=!0,o=e,e=n(e),void 0!==u&&p.hasValue){var t=p.value;if(u(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var r=n(e);return void 0!==u&&u(t,r)?(o=e,t):(o=e,a=r)}var o,a,s=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,r,n,u]);var f=o(e,d[0],d[1]);return s(function(){p.hasValue=!0,p.value=f},[f]),l(f),f}},(e,t,r)=>{"use strict";
50r.r(t),r.d(t,{calculateBox:()=>p,createBox:()=>c,expand:()=>o,getBox:()=>f,getRect:()=>i,offset:()=>u,shrink:()=>a,withScroll:()=>d});var n=r(3085),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,l=void 0===c?s:c,u=e.padding,d=void 0===u?s:u,p=i(o(t,n)),f=i(a(t,l)),h=i(a(f,d));return{marginBox:p,borderBox:i(t),paddingBox:f,contentBox:h,margin:n,border:l,padding:d}},l=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},u=function(e,t){var r,n,i=e.borderBox,o=e.border,a=e.margin,s=e.padding,l=(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:l,border:o,margin:a,padding:s})},d=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),u(e,t)},p=function(e,t){var r={top:l(t.marginTop),right:l(t.marginRight),bottom:l(t.marginBottom),left:l(t.marginLeft)},n={top:l(t.paddingTop),right:l(t.paddingRight),bottom:l(t.paddingBottom),left:l(t.paddingLeft)},i={top:l(t.borderTopWidth),right:l(t.borderRightWidth),bottom:l(t.borderBottomWidth),left:l(t.borderLeftWidth)};return c({borderBox:e,margin:r,padding:n,border:i})},f=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return p(t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=!0,i="Invariant failed";function o(e,t){if(!e){if(n)throw new Error(i);var r="function"==typeof t?t():t,o=r?"".concat(i,": ").concat(r):i;throw new Error(o)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>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}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{BrowserClient:()=>W.BrowserClient,MULTIPLEXED_TRANSPORT_EXTRA_KEY:()=>g.MULTIPLEXED_TRANSPORT_EXTRA_KEY,OpenFeatureIntegrationHook:()=>Ie.OpenFeatureIntegrationHook,SDK_VERSION:()=>G.SDK_VERSION,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>u.SEMANTIC_ATTRIBUTE_SENTRY_OP,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>u.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,Scope:()=>f.Scope,WINDOW:()=>q.WINDOW,addBreadcrumb:()=>E.addBreadcrumb,addEventProcessor:()=>d.addEventProcessor,addIntegration:()=>y.addIntegration,breadcrumbsIntegration:()=>te.breadcrumbsIntegration,browserApiErrorsIntegration:()=>oe.browserApiErrorsIntegration,browserProfilingIntegration:()=>Oe.browserProfilingIntegration,browserSessionIntegration:()=>ae.browserSessionIntegration,browserTracingIntegration:()=>ye.browserTracingIntegration,buildLaunchDarklyFlagUsedHandler:()=>Pe.buildLaunchDarklyFlagUsedHandler,captureConsoleIntegration:()=>O.captureConsoleIntegration,captureEvent:()=>d.captureEvent,captureException:()=>d.captureException,captureFeedback:()=>D.captureFeedback,captureMessage:()=>d.captureMessage,captureSession:()=>d.captureSession,chromeStackLineParser:()=>J.chromeStackLineParser,close:()=>d.close,consoleLoggingIntegration:()=>L.consoleLoggingIntegration,contextLinesIntegration:()=>ue.contextLinesIntegration,continueTrace:()=>s.continueTrace,createConsolaReporter:()=>B.createConsolaReporter,createLangChainCallbackHandler:()=>z.createLangChainCallbackHandler,createTransport:()=>m.createTransport,createUserFeedbackEnvelope:()=>X.createUserFeedbackEnvelope,cultureContextIntegration:()=>Re.cultureContextIntegration,dedupeIntegration:()=>A.dedupeIntegration,defaultRequestInstrumentationOptions:()=>ge.defaultRequestInstrumentationOptions,defaultStackLineParsers:()=>J.defaultStackLineParsers,defaultStackParser:()=>J.defaultStackParser,diagnoseSdkConnectivity:()=>De.diagnoseSdkConnectivity,elementTimingIntegration:()=>ve.elementTimingIntegration,endSession:()=>d.endSession,eventFiltersIntegration:()=>T.eventFiltersIntegration,eventFromException:()=>Q.eventFromException,eventFromMessage:()=>Q.eventFromMessage,exceptionFromError:()=>Q.exceptionFromError,extraErrorDataIntegration:()=>R.extraErrorDataIntegration,featureFlagsIntegration:()=>M.featureFlagsIntegration,feedbackAsyncIntegration:()=>n.feedbackAsyncIntegration,feedbackIntegration:()=>i.feedbackSyncIntegration,feedbackSyncIntegration:()=>i.feedbackSyncIntegration,fetchStreamPerformanceIntegration:()=>we.fetchStreamPerformanceIntegration,flush:()=>d.flush,forceLoad:()=>Z.forceLoad,functionToStringIntegration:()=>w.functionToStringIntegration,geckoStackLineParser:()=>J.geckoStackLineParser,getActiveSpan:()=>_.getActiveSpan,getClient:()=>p.getClient,getCurrentScope:()=>p.getCurrentScope,getDefaultIntegrations:()=>Z.getDefaultIntegrations,getFeedback:()=>me.getFeedback,getGlobalScope:()=>p.getGlobalScope,getIsolationScope:()=>p.getIsolationScope,getReplay:()=>fe.getReplay,getRootSpan:()=>_.getRootSpan,getSpanDescendants:()=>_.getSpanDescendants,getSpanStatusFromHttpCode:()=>a.getSpanStatusFromHttpCode,getTraceData:()=>S.getTraceData,globalHandlersIntegration:()=>re.globalHandlersIntegration,graphqlClientIntegration:()=>de.graphqlClientIntegration,growthbookIntegration:()=>ke.growthbookIntegration,httpClientIntegration:()=>le.httpClientIntegration,httpContextIntegration:()=>ne.httpContextIntegration,inboundFiltersIntegration:()=>T.inboundFiltersIntegration,init:()=>Z.init,instrumentAnthropicAiClient:()=>U.instrumentAnthropicAiClient,instrumentCreateReactAgent:()=>V.instrumentCreateReactAgent,instrumentGoogleGenAIClient:()=>H.instrumentGoogleGenAIClient,instrumentLangChainEmbeddings:()=>$.instrumentLangChainEmbeddings,instrumentLangGraph:()=>V.instrumentLangGraph,instrumentOpenAiClient:()=>j.instrumentOpenAiClient,instrumentOutgoingRequests:()=>ge.instrumentOutgoingRequests,instrumentSupabaseClient:()=>I.instrumentSupabaseClient,isBotUserAgent:()=>ye.isBotUserAgent,isEnabled:()=>d.isEnabled,isInitialized:()=>d.isInitialized,lastEventId:()=>d.lastEventId,launchDarklyIntegration:()=>Pe.launchDarklyIntegration,lazyLoadIntegration:()=>se.lazyLoadIntegration,linkedErrorsIntegration:()=>ie.linkedErrorsIntegration,logger:()=>N,makeBrowserOfflineTransport:()=>xe.makeBrowserOfflineTransport,makeFetchTransport:()=>K.makeFetchTransport,makeMultiplexedTransport:()=>g.makeMultiplexedTransport,metrics:()=>F,moduleMetadataIntegration:()=>x.moduleMetadataIntegration,normalizeStringifyValue:()=>be.normalizeStringifyValue,onLoad:()=>Z.onLoad,openFeatureIntegration:()=>Ie.openFeatureIntegration,opera10StackLineParser:()=>J.opera10StackLineParser,opera11StackLineParser:()=>J.opera11StackLineParser,parameterize:()=>b.parameterize,registerSpanErrorInstrumentation:()=>o.registerSpanErrorInstrumentation,registerWebWorker:()=>Ne.registerWebWorker,replayCanvasIntegration:()=>he.replayCanvasIntegration,replayIntegration:()=>fe.replayIntegration,reportPageLoaded:()=>_e.reportPageLoaded,reportingObserverIntegration:()=>ce.reportingObserverIntegration,rewriteFramesIntegration:()=>P.rewriteFramesIntegration,sendFeedback:()=>me.sendFeedback,setActiveSpanInBrowser:()=>Se.setActiveSpanInBrowser,setContext:()=>d.setContext,setConversationId:()=>d.setConversationId,setCurrentClient:()=>h.setCurrentClient,setExtra:()=>d.setExtra,setExtras:()=>d.setExtras,setHttpStatus:()=>a.setHttpStatus,setMeasurement:()=>l.setMeasurement,setTag:()=>d.setTag,setTags:()=>d.setTags,setUser:()=>d.setUser,showReportDialog:()=>ee.showReportDialog,spanStreamingIntegration:()=>Ee.spanStreamingIntegration,spanToBaggageHeader:()=>c.spanToBaggageHeader,spanToJSON:()=>_.spanToJSON,spanToTraceHeader:()=>_.spanToTraceHeader,spotlightBrowserIntegration:()=>Ae.spotlightBrowserIntegration,startBrowserTracingNavigationSpan:()=>ye.startBrowserTracingNavigationSpan,startBrowserTracingPageLoadSpan:()=>ye.startBrowserTracingPageLoadSpan,startInactiveSpan:()=>s.startInactiveSpan,startNewTrace:()=>s.startNewTrace,startSession:()=>d.startSession,startSpan:()=>s.startSpan,startSpanManual:()=>s.startSpanManual,statsigIntegration:()=>Me.statsigIntegration,supabaseIntegration:()=>I.supabaseIntegration,suppressTracing:()=>s.suppressTracing,thirdPartyErrorFilterIntegration:()=>k.thirdPartyErrorFilterIntegration,uiProfiler:()=>Y.uiProfiler,unleashIntegration:()=>Ce.unleashIntegration,updateSpanName:()=>_.updateSpanName,viewHierarchyIntegration:()=>pe.viewHierarchyIntegration,webVitalsIntegration:()=>Te.webVitalsIntegration,webWorkerIntegration:()=>Ne.webWorkerIntegration,winjsStackLineParser:()=>J.winjsStackLineParser,withActiveSpan:()=>s.withActiveSpan,withIsolationScope:()=>p.withIsolationScope,withScope:()=>p.withScope,withStreamedSpan:()=>v.withStreamedSpan,zodErrorsIntegration:()=>C.zodErrorsIntegration});var n=r(3240),i=r(3244),o=r(1458),a=r(436),s=r(426),c=r(440),l=r(449),u=r(427),d=r(400),p=r(401),f=r(408),h=r(1388),m=r(1410),g=r(3245),y=r(1389),v=r(447),b=r(3246),_=r(434),S=r(1495),E=r(642),w=r(1390),T=r(1391),x=r(3247),O=r(3249),A=r(1393),R=r(3250),P=r(3251),I=r(3253),C=r(3254),k=r(3255),M=r(3256),D=r(3242),N=r(3258),L=r(3259),F=r(3261),B=r(3262),j=r(3263),U=r(3271),H=r(3275),z=r(3279),V=r(3282),G=r(404),$=r(3285),q=r(1423),W=r(1395),K=r(1451),Y=r(3286),J=r(1450),Q=r(1421),X=r(3287),Z=r(1387),ee=r(3288),te=r(1425),re=r(1444),ne=r(1447),ie=r(1448),oe=r(1439),ae=r(1440),se=r(3243),ce=r(3289),le=r(3290),ue=r(3295),de=r(3296),pe=r(3297),fe=r(3298),he=r(3300),me=r(3241),ge=r(1494),ye=r(1457),ve=r(3301),be=r(1454),_e=r(3302),Se=r(3303),Ee=r(3304),we=r(1488),Te=r(1489),xe=r(3308),Oe=r(3310),Ae=r(3314),Re=r(1441),Pe=r(3315),Ie=r(3316),Ce=r(3317),ke=r(3318),Me=r(3320),De=r(3321),Ne=r(3322)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{feedbackAsyncIntegration:()=>o});var n=r(3241),i=r(3243);const o=(0,n.buildFeedbackIntegration)({lazyLoadIntegration:i.lazyLoadIntegration})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{buildFeedbackIntegration:()=>k,feedbackModalIntegration:()=>Je,feedbackScreenshotIntegration:()=>nt,getFeedback:()=>M,sendFeedback:()=>E});var n=r(401),i=r(1389),o=r(3242),a=r(405),s=r(1403),c=r(413),l=r(1424);const u=a.GLOBAL_OBJ,d=u.document,p=u.navigator,f="Report a Bug",h="Unable to submit feedback with empty message",m="No client setup, cannot send feedback.",g="Unable to determine if Feedback was correctly sent.",y="Unable to send feedback. This could be because this domain is not in your list of allowed domains.",v="Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.",b={ERROR_EMPTY_MESSAGE:h,ERROR_NO_CLIENT:m,ERROR_TIMEOUT:g,ERROR_FORBIDDEN:y,ERROR_GENERIC:v};function _(e,t){return t?.[e]??b[e]}function S(e,t){return new Error(_(e,t))}const E=(e,t={includeReplay:!0})=>{const r=t.errorMessages;if(!e.message)throw S("ERROR_EMPTY_MESSAGE",r);const i=(0,n.getClient)();if(!i)throw S("ERROR_NO_CLIENT",r);e.tags&&Object.keys(e.tags).length&&(0,n.getCurrentScope)().setTags(e.tags);const a=(0,o.captureFeedback)({source:"api",url:(0,l.getLocationHref)(),...e},t);return new Promise((e,t)=>
50{const n=setTimeout(()=>{o(),t(_("ERROR_TIMEOUT",r))},3e4),o=i.on("afterSendEvent",(i,s)=>{if(i.event_id===a)return clearTimeout(n),o(),s?.statusCode&&s.statusCode>=200&&s.statusCode<300?e(a):t(_(403===s?.statusCode?"ERROR_FORBIDDEN":"ERROR_GENERIC",r))})})},w="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function T(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(r,n)=>{t.onSubmitSuccess?.(r,n),e.onSubmitSuccess?.(r,n)},onSubmitError:r=>{t.onSubmitError?.(r),e.onSubmitError?.(r)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function x(e,t){return Object.entries(t).forEach(([t,r])=>{e.setAttributeNS(null,t,r)}),e}function O({triggerLabel:e,triggerAriaLabel:t,shadow:r,styleNonce:n}){const i=d.createElement("button");if(i.type="button",i.className="widget__actor",i.ariaHidden="false",i.ariaLabel=t||e||f,i.appendChild(function(){const e=e=>u.document.createElementNS("http://www.w3.org/2000/svg",e),t=x(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),r=x(e("g"),{clipPath:"url(#clip0_57_80)"}),n=x(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(r).appendChild(n);const i=e("defs"),o=x(e("clipPath"),{id:"clip0_57_80"}),a=x(e("rect"),{width:"20",height:"20",fill:"white"});return o.appendChild(a),i.appendChild(o),t.appendChild(i).appendChild(o).appendChild(a),t}()),e){const t=d.createElement("span");t.appendChild(d.createTextNode(e)),i.appendChild(t)}const o=function(e){const t=d.createElement("style");return t.textContent='\n.widget__actor {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: var(--page-margin);\n  inset: var(--actor-inset);\n\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  padding: 16px;\n\n  font-family: inherit;\n  font-size: var(--font-size);\n  font-weight: 600;\n  line-height: 1.14em;\n  text-decoration: none;\n\n  background: var(--actor-background, var(--background));\n  border-radius: var(--actor-border-radius, 1.7em/50%);\n  border: var(--actor-border, var(--border));
50\n  box-shadow: var(--actor-box-shadow, var(--box-shadow));\n  color: var(--actor-color, var(--foreground));\n  fill: var(--actor-color, var(--foreground));\n  cursor: pointer;\n  opacity: 1;\n  transition: transform 0.2s ease-in-out;\n  transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n  transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n  background: var(--actor-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n  width: 1.14em;\n  height: 1.14em;\n}\n\n@media (max-width: 600px) {\n  .widget__actor span {\n    display: none;\n  }\n}\n',e&&t.setAttribute("nonce",e),t}(n);return{el:i,appendToDom(){r.appendChild(o),r.appendChild(i)},removeFromDom(){i.remove(),o.remove()},show(){i.ariaHidden="false"},hide(){i.ariaHidden="true"}}}const A="rgba(88, 74, 192, 1)",R={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:A,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},P={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:A,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function I(e){return`\n  --foreground: ${e.foreground};\n  --background: ${e.background};\n  --accent-foreground: ${e.accentForeground};\n  --accent-background: ${e.accentBackground};\n  --success-color: ${e.successColor};\n  --error-color: ${e.errorColor};\n  --border: ${e.border};\n  --box-shadow: ${e.boxShadow};\n  --outline: ${e.outline};\n  --interactive-filter: ${e.interactiveFilter};\n  `}function C({colorScheme:e,themeDark:t,themeLight:r,styleNonce:n}){const i=d.createElement("style");return i.textContent=`\n:host {\n  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n  --font-size: 14px;\n  --z-index: 100000;\n\n  --page-margin: 16px;\n  --inset: auto 0 0 auto;\n  --actor-inset: var(--inset);\n\n  font-family: var(--font-family);\n  font-size: var(--font-size);\n\n  ${"system"!==e?`color-scheme: only ${e};`:""}\n\n  ${I("dark"===e?{...P,...t}:{...R,...r})}\n}\n\n${"system"===e?`\n@media (prefers-color-scheme: dark) {\n  :host {\n    color-scheme: only dark;\n\n    ${I({...P,...t})}\n  }\n}`:""}\n`,n&&i.setAttribute("nonce",n),i}const k=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:r})=>({id:n="sentry-feedback",autoInject:o=!0,showBranding:a=!0,isEmailRequired:l=!1,isNameRequired:u=!1,showEmail:b=!0,showName:_=!0,enableScreenshot:S=!0,useSentryUser:x={email:"email",name:"username"},tags:A,styleNonce:R,scriptNonce:P,colorScheme:I="system",themeLight:k={},themeDark:M={},addScreenshotButtonLabel:D="Add a screenshot",cancelButtonLabel:N="Cancel",confirmButtonLabel:L="Confirm",emailLabel:F="Email",emailPlaceholder:B="[email protected]",formTitle:j="Report a Bug",isRequiredLabel:U="(required)",messageLabel:H="Description",messagePlaceholder:z="What's the bug? What did you expect?",nameLabel:V="Name",namePlaceholder:G="Your Name",removeScreenshotButtonLabel:$="Remove screenshot",submitButtonLabel:q="Send Bug Report",successMessageText:W="Thank you for your report!",triggerLabel:K=f,triggerAriaLabel:Y="",highlightToolText:J="Highlight",hideToolText:Q="Hide",removeHighlightText:X="Remove",errorEmptyMessageText:Z=h,errorNoClientText:ee=m,errorTimeoutText:te=g,errorForbiddenText:re=y,errorGenericText:ne=v,onFormOpen:ie,onFormClose:oe,onSubmitSuccess:ae,onSubmitError:se,onFormSubmitted:ce}={})=>{const le={id:n,autoInject:o,showBranding:a,isEmailRequired:l,isNameRequired:u,showEmail:b,showName:_,enableScreenshot:S,useSentryUser:x,tags:A,styleNonce:R,scriptNonce:P,colorScheme:I,themeDark:M,themeLight:k,triggerLabel:K,triggerAriaLabel:Y,cancelButtonLabel:N,submitButtonLabel:q,confirmButtonLabel:L,formTitle:j,emailLabel:F,emailPlaceholder:B,messageLabel:H,messagePlaceholder:z,nameLabel:V,namePlaceholder:G,successMessageText:W,isRequiredLabel:U,addScreenshotButtonLabel:D,removeScreenshotButtonLabel:$,highlightToolText:J,hideToolText:Q,removeHighlightText:X,errorEmptyMessageText:Z,errorNoClientText:ee,errorTimeoutText:te,errorForbiddenText:re,errorGenericText:ne,onFormClose:oe,onFormOpen:ie,onSubmitError:se,onSubmitSuccess:ae,onFormSubmitted:ce};let ue=null,de=null,pe=[];const fe=e=>{if(!ue){const t=d.createElement("div");t.id=String(e.id),d.body.appendChild(t),ue=t.attachShadow({mode:"open"}),de=C(e),ue.appendChild(de)}return ue},he=async n=>{const o=n.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(p.userAgent)||/Macintosh/i.test(p.userAgent)&&p.maxTouchPoints&&p.maxTouchPoints>1||!isSecureContext);let a,s;try{a=(t?t():await e("feedbackModalIntegration",P))(),(0,i.addIntegration)(a)}catch{throw w&&c.debug.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const t=o?r?r():await e("feedbackScreenshotIntegration",P):void 0;t&&(s=t(),(0,i.addIntegration)(s))}catch{w&&c.debug.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const l={ERROR_EMPTY_MESSAGE:n.errorEmptyMessageText,ERROR_NO_CLIENT:n.errorNoClientText,E
vendor: 5,755 bytes, line 50
50RROR_TIMEOUT:n.errorTimeoutText,ERROR_FORBIDDEN:n.errorForbiddenText,ERROR_GENERIC:n.errorGenericText},u=a.createDialog({options:{...n,onFormClose:()=>{u?.close(),n.onFormClose?.()},onFormSubmitted:()=>{u?.close(),n.onFormSubmitted?.()}},screenshotIntegration:s,sendFeedback:(e,t)=>E(e,{includeReplay:!0,...t,errorMessages:l}),shadow:fe(n)});return u},me=(e,t={})=>{const r=T(le,t),n="string"==typeof e?d.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!n)throw w&&c.debug.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let i=null;const o=async()=>{i||(i=await he({...r,onFormSubmitted:()=>{i?.removeFromDom(),r.onFormSubmitted?.()}})),i.appendToDom(),i.open()};n.addEventListener("click",o);const a=()=>{pe=pe.filter(e=>e!==a),i?.removeFromDom(),i=null,n.removeEventListener("click",o)};return pe.push(a),a},ge=(e={})=>{const t=T(le,e),r=fe(t),n=O({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:r,styleNonce:R});return me(n.el,{...t,onFormOpen(){n.hide()},onFormClose(){n.show()},onFormSubmitted(){n.show()}}),n};return{name:"Feedback",setupOnce(){(0,s.isBrowser)()&&le.autoInject&&("loading"===d.readyState?d.addEventListener("DOMContentLoaded",()=>ge().appendToDom()):ge().appendToDom())},attachTo:me,createWidget(e={}){const t=ge(T(le,e));return t.appendToDom(),t},createForm:async(e={})=>he(T(le,e)),setTheme(e){if(le.colorScheme=e,ue){const e=C(le);de?ue.replaceChild(e,de):ue.prepend(e),de=e}},remove(){ue&&(ue.parentElement?.remove(),ue=null,de=null),pe.forEach(e=>e()),pe=[]}}};function M(){const e=(0,n.getClient)();return e?.getIntegrationByName("Feedback")}var D,N,L,F,B,j,U,H={},z=[],V=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,G=Array.isArray;function $(e,t){for(var r in t)e[r]=t[r];return e}function q(e){var t=e.parentNode;t&&t.removeChild(e)}function W(e,t,r){var n,i,o,a={};for(o in t)"key"==o?n=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?D.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return K(e,a,n,i,null)}function K(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++L,__i:-1,__u:0};return null==i&&null!=N.vnode&&N.vnode(o),o}function Y(e){return e.children}function J(e,t){this.props=e,this.context=t}function Q(e,t){if(null==t)return e.__?Q(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?Q(e):null}function X(e,t,r){var n,i=e.__v,o=i.__e,a=e.__P;if(a)return(n=$({},i)).__v=i.__v+1,N.vnode&&N.vnode(n),le(a,n,i,e.__n,void 0!==a.ownerSVGElement,32&i.__u?[o]:null,t,o??Q(i),!!(32&i.__u),r),n.__.__k[n.__i]=n,n.__d=void 0,n.__e!=o&&Z(n),n}function Z(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return Z(e)}}function ee(e){(!e.__d&&(e.__d=!0)&&F.push(e)&&!te.__r++||B!==N.debounceRendering)&&((B=N.debounceRendering)||j)(te)}function te(){var e,t,r,n=[],i=[];for(F.sort(U);e=F.shift();)e.__d&&(r=F.length,t=X(e,n,i)||t,0===r||F.length>r?(ue(n,t,i),i.length=n.length=0,t=void 0,F.sort(U)):t&&N.__c&&N.__c(t,z));t&&ue(n,t,i),te.__r=0}function re(e,t,r,n,i,o,a,s,c,l,u){var d,p,f,h,m,g=n&&n.__k||z,y=t.length;for(r.__d=c,function(e,t,r){var n,i,o,a,s,c=t.length,l=r.length,u=l,d=0;for(e.__k=[],n=0;n<c;n++)null!=(i=e.__k[n]=null==(i=t[n])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?K(null,i,null,null,i):G(i)?K(Y,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?K(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,s=ie(i,r,a=n+d,u),i.__i=s,o=null,-1!==s&&(u--,(o=r[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>c-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==n+d&&(i.__u|=65536))):(o=r[n])&&null==o.key&&o.__e&&(o.__e==e.__d&&(e.__d=Q(o)),fe(o,o,!1),r[n]=null,u--);if(u)for(n=0;n<l;n++)null!=(o=r[n])&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=Q(o)),fe(o,o))}(r,t,g),c=r.__d,d=0;d<y;d++)null!=(f=r.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?H:g[f.__i]||H,f.__i=d,le(e,f,p,i,o,a,s,c,l,u),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&pe(p.ref,null,f),u.push(f.ref,f.__c||h,f)),null==m&&null!=h&&(m=h),65536&f.__u||p.__k===f.__k?c=ne(f,c,e):"function"==typeof f.type&&void 0!==f.__d?c=f.__d:h&&(c=h.nextSibling),f.__d=void 0,f.__u&=-196609);r.__d=c,r.__e=m}function ne(e,t,r){var n,i;if("function"==typeof e.type){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=ne(n[i],t,r));return t}e.__e!=t&&(r.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function ie(e,t,r,n){var i=e.key,o=e.type,a=r-1,s=r+1,c=t[r];if(null===c||c&&i==c.key&&o===c.type)return r;if(n>(null==c||131072&c.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((c=t[a])&&!(131072&c.__u)&&i==c.key&&o===c.type)return a;a--}if(s<t.length){if((c=t[s])&&!(131072&c.__u)&&i==c.key&&o===c.type)return s;s++}}return-1}function oe(e,t,r){"-"===t[0]?e.setProperty(t,r??""):e[t]=null==r?"":"number"!=typeof r||V.test(t)?r:r+"px"}function ae(e,t,r,n,i){var o;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||oe(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||oe(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}
vendor: 5,495 bytes, line 50
50),e.l[t+o]=r,r?n?r.u=n.u:(r.u=Date.now(),e.addEventListener(t,o?ce:se,o)):e.removeEventListener(t,o?ce:se,o);else{if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=r??"";break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,r))}}function se(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(N.event?N.event(e):e)}}function ce(e){if(this.l)return this.l[e.type+!0](N.event?N.event(e):e)}function le(e,t,r,n,i,o,a,s,c,l){var u,d,p,f,h,m,g,y,v,b,_,S,E,w,T,x=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(c=!!(32&r.__u),o=[s=t.__e=r.__e]),(u=N.__b)&&u(t);e:if("function"==typeof x)try{if(y=t.props,v=(u=x.contextType)&&n[u.__c],b=u?v?v.props.value:u.__:n,r.__c?g=(d=t.__c=r.__c).__=d.__E:("prototype"in x&&x.prototype.render?t.__c=d=new x(y,b):(t.__c=d=new J(y,b),d.constructor=x,d.render=he),v&&v.sub(d),d.props=y,d.state||(d.state={}),d.context=b,d.__n=n,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=x.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=$({},d.__s)),$(d.__s,x.getDerivedStateFromProps(y,d.__s))),f=d.props,h=d.state,d.__v=t,p)null==x.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==x.getDerivedStateFromProps&&y!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,b)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(e){e&&(e.__=t)}),_=0;_<d._sb.length;_++)d.__h.push(d._sb[_]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,b),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(f,h,m)})}if(d.context=b,d.props=y,d.__P=e,d.__e=!1,S=N.__r,E=0,"prototype"in x&&x.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(t),u=d.render(d.props,d.state,d.context),w=0;w<d._sb.length;w++)d.__h.push(d._sb[w]);d._sb=[]}else do{d.__d=!1,S&&S(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++E<25);d.state=d.__s,null!=d.getChildContext&&(n=$($({},n),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(f,h)),re(e,G(T=null!=u&&u.type===Y&&null==u.key?u.props.children:u)?T:[T],t,r,n,i,o,a,s,c,l),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,c||null!=o?(t.__e=s,t.__u|=c?160:32,o[o.indexOf(s)]=null):(t.__e=r.__e,t.__k=r.__k),N.__e(e,t,r)}else null==o&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=de(r.__e,t,r,n,i,o,a,c,l);(u=N.diffed)&&u(t)}function ue(e,t,r){for(var n=0;n<r.length;n++)pe(r[n],r[++n],r[++n]);N.__c&&N.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){N.__e(e,t.__v)}})}function de(e,t,r,n,i,o,a,s,c){var l,u,d,p,f,h,m,g=r.props,y=t.props,v=t.type;if("svg"===v&&(i=!0),null!=o)for(l=0;l<o.length;l++)if((f=o[l])&&"setAttribute"in f==!!v&&(v?f.localName===v:3===f.nodeType)){e=f,o[l]=null;break}if(null==e){if(null===v)return document.createTextNode(y);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),o=null,s=!1}if(null===v)g===y||s&&e.data===y||(e.data=y);else{if(o=o&&D.call(e.childNodes),g=r.props||H,!s&&null!=o)for(g={},l=0;l<e.attributes.length;l++)g[(f=e.attributes[l]).name]=f.value;for(l in g)f=g[l],"children"==l||("dangerouslySetInnerHTML"==l?d=f:"key"===l||l in y||ae(e,l,null,f,i));for(l in y)f=y[l],"children"==l?p=f:"dangerouslySetInnerHTML"==l?u=f:"value"==l?h=f:"checked"==l?m=f:"key"===l||s&&"function"!=typeof f||g[l]===f||ae(e,l,f,g[l],i);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),re(e,G(p)?p:[p],t,r,n,i&&"foreignObject"!==v,o,a,o?o[0]:r.__k&&Q(r,0),s,c),null!=o)for(l=o.length;l--;)null!=o[l]&&q(o[l]);s||(l="value",void 0!==h&&(h!==e[l]||"progress"===v&&!h||"option"===v&&h!==g[l])&&ae(e,l,h,g[l],!1),l="checked",void 0!==m&&m!==e[l]&&ae(e,l,m,g[l],!1))}return e}function pe(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){N.__e(e,r)}}function fe(e,t,r){var n,i;if(N.unmount&&N.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||pe(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){N.__e(e,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&fe(n[i],t,r||"function"!=typeof e.type);r||null==e.__e||q(e.__e),e.__=e.__e=e.__d=void 0}function he(e,t,r){return this.constructor(e,r)}D=z.slice,N={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},L=0,J.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=$({},this.state),"function"==typeof e&&(e=e($({},r),this.props)),e&&$(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),ee(this))},J.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ee(this))},J.prototype.render=Y,F=[],j="function"==typeof Promise?Promise.prototype.then.bind(Prom
vendor: 5,218 bytes, line 50
50ise.resolve()):setTimeout,U=function(e,t){return e.__v.__b-t.__v.__b},te.__r=0;var me,ge,ye,ve,be=0,_e=[],Se=[],Ee=N,we=Ee.__b,Te=Ee.__r,xe=Ee.diffed,Oe=Ee.__c,Ae=Ee.unmount,Re=Ee.__;function Pe(e,t){Ee.__h&&Ee.__h(ge,e,be||t),be=0;var r=ge.__H||(ge.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Se}),r.__[e]}function Ie(e){return be=1,Ce(He,e)}function Ce(e,t,r){var n=Pe(me++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):He(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=ge,!ge.u)){var i=function(e,t,r){if(!n.__c.__H)return!0;var i=n.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!o||o.call(this,e,t,r);var a=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),!(!a&&n.__c.props===e)&&(!o||o.call(this,e,t,r))};ge.u=!0;var o=ge.shouldComponentUpdate,a=ge.componentWillUpdate;ge.componentWillUpdate=function(e,t,r){if(this.__e){var n=o;o=void 0,i(e,t,r),o=n}a&&a.call(this,e,t,r)},ge.shouldComponentUpdate=i}return n.__N||n.__}function ke(e,t){var r=Pe(me++,4);!Ee.__s&&Ue(r.__H,t)&&(r.__=e,r.i=t,ge.__h.push(r))}function Me(e,t){var r=Pe(me++,7);return Ue(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function De(e,t){return be=8,Me(function(){return e},t)}function Ne(){for(var e;e=_e.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(je),e.__H.__h=[]}catch(t){e.__H.__h=[],Ee.__e(t,e.__v)}}Ee.__b=function(e){ge=null,we&&we(e)},Ee.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Re&&Re(e,t)},Ee.__r=function(e){Te&&Te(e),me=0;var t=(ge=e.__c).__H;t&&(ye===ge?(t.__h=[],ge.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=Se,e.__N=e.i=void 0})):(t.__h.forEach(Be),t.__h.forEach(je),t.__h=[],me=0)),ye=ge},Ee.diffed=function(e){xe&&xe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==_e.push(t)&&ve===Ee.requestAnimationFrame||((ve=Ee.requestAnimationFrame)||Fe)(Ne)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==Se&&(e.__=e.__V),e.i=void 0,e.__V=Se})),ye=ge=null},Ee.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Be),e.__h=e.__h.filter(function(e){return!e.__||je(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],Ee.__e(r,e.__v)}}),Oe&&Oe(e,t)},Ee.unmount=function(e){Ae&&Ae(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(e){try{Be(e)}catch(e){t=e}}),r.__H=void 0,t&&Ee.__e(t,r.__v))};var Le="function"==typeof requestAnimationFrame;function Fe(e){var t,r=function(){clearTimeout(n),Le&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Le&&(t=requestAnimationFrame(r))}function Be(e){var t=ge,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),ge=t}function je(e){var t=ge;e.__c=e.__(),ge=t}function Ue(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function He(e,t){return"function"==typeof t?t(e):t}const ze=Object.defineProperty({__proto__:null,useCallback:De,useContext:function(e){var t=ge.context[e.__c],r=Pe(me++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(ge)),t.props.value):e.__},useDebugValue:function(e,t){Ee.useDebugValue&&Ee.useDebugValue(t?t(e):e)},useEffect:function(e,t){var r=Pe(me++,3);!Ee.__s&&Ue(r.__H,t)&&(r.__=e,r.i=t,ge.__H.__h.push(r))},useErrorBoundary:function(e){var t=Pe(me++,10),r=Ie();return t.__=e,ge.componentDidCatch||(ge.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId:function(){var e=Pe(me++,11);if(!e.__){for(var t=ge.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__},useImperativeHandle:function(e,t,r){be=6,ke(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==r?r:r.concat(e))},useLayoutEffect:ke,useMemo:Me,useReducer:Ce,useRef:function(e){return be=5,Me(function(){return{current:e}},[])},useState:Ie},Symbol.toStringTag,{value:"Module"});function Ve(){const e=e=>d.createElementNS("http://www.w3.org/2000/svg",e),t=x(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),r=x(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(r),t}function Ge({options:e}){const t=Me(()=>({__html:Ve().outerHTML}),[]);return W("h2",{class:"dialog__header"},W("span",{class:"dialog__title"},e.formTitle),e.showBranding?W("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function $e(e,t){const r=e.get(t);return"string"==typeof r?r.trim():""}function qe({options:e,defaultEmail:t,defaultName:r,onFormClose:n,onSubmit:i,onSubmitSuccess:o,onSubmitError:a,showEmail
50:s,showName:l,screenshotInput:u}){const{tags:d,addScreenshotButtonLabel:p,removeScreenshotButtonLabel:f,cancelButtonLabel:h,emailLabel:m,emailPlaceholder:g,isEmailRequired:y,isNameRequired:v,messageLabel:b,messagePlaceholder:_,nameLabel:S,namePlaceholder:E,submitButtonLabel:T,isRequiredLabel:x}=e,[O,A]=Ie(!1),[R,P]=Ie(null),[I,C]=Ie(!1),k=u?.input,[M,D]=Ie(null),N=De(e=>{D(e),C(!1)},[]),L=De(e=>{const t=function(e,t){const r=[];return t.isNameRequired&&!e.name&&r.push(t.nameLabel),t.isEmailRequired&&!e.email&&r.push(t.emailLabel),e.message||r.push(t.messageLabel),r}(e,{emailLabel:m,isEmailRequired:y,isNameRequired:v,messageLabel:b,nameLabel:S});return t.length>0?P(`Please enter in the following required fields: ${t.join(", ")}`):P(null),0===t.length},[m,y,v,b,S]),F=De(async e=>{A(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;const t=new FormData(e.target),r=await(u&&I?u.value():void 0),n={name:$e(t,"name"),email:$e(t,"email"),message:$e(t,"message"),attachments:r?[r]:void 0};if(!L(n))return;try{const e=await i({name:n.name,email:n.email,message:n.message,source:"widget",tags:d},{attachments:n.attachments});o(n,e)}catch(e){w&&c.debug.error(e);const t=e instanceof Error?e:new Error(String(e));P(t.message),a(t)}}finally{A(!1)}},[u&&I,o,a]);return W("form",{class:"form",onSubmit:F},k&&I?W(k,{onError:N}):null,W("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:O},W("div",{class:"form__top"},R?W("div",{class:"form__error-container"},R):null,l?W("label",{for:"name",class:"form__label"},W(We,{label:S,isRequiredLabel:x,isRequired:v}),W("input",{class:"form__input",defaultValue:r,id:"name",name:"name",placeholder:E,required:v,type:"text"})):W("input",{"aria-hidden":!0,value:r,name:"name",type:"hidden"}),s?W("label",{for:"email",class:"form__label"},W(We,{label:m,isRequiredLabel:x,isRequired:y}),W("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:g,required:y,type:"email"})):W("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),W("label",{for:"message",class:"form__label"},W(We,{label:b,isRequiredLabel:x,isRequired:!0}),W("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:_,required:!0,rows:5})),k?W("label",{for:"screenshot",class:"form__label"},W("button",{class:"btn btn--default",disabled:O,type:"button",onClick:()=>{D(null),C(e=>!e)}},I?f:p),M?W("div",{class:"form__error-container"},M.message):null):null),W("div",{class:"btn-group"},W("button",{class:"btn btn--primary",disabled:O,type:"submit"},T),W("button",{class:"btn btn--default",disabled:O,type:"button",onClick:n},h))))}function We({label:e,isRequired:t,isRequiredLabel:r}){return W("span",{class:"form__label__text"},e,t&&W("span",{class:"form__label__text--required"},r))}function Ke(){const e=e=>u.document.createElementNS("http://www.w3.org/2000/svg",e),t=x(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),r=x(e("g"),{clipPath:"url(#clip0_57_156)"}),n=x(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),i=x(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 
5010.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(r).append(i,n);const o=e("defs"),a=x(e("clipPath"),{id:"clip0_57_156"}),s=x(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return a.appendChild(s),o.appendChild(a),t.appendChild(o).appendChild(a).appendChild(s),t}function Ye({open:e,onFormSubmitted:t,...r}){const n=r.options,i=Me(()=>({__html:Ke().outerHTML}),[]),[o,a]=Ie(null),s=De(()=>{o&&(clearTimeout(o),a(null)),t()},[o]),c=De((e,n)=>{r.onSubmitSuccess(e,n),a(setTimeout(()=>{t(),a(null)},5e3))},[t]);return W(Y,null,o?W("div",{class:"success__position",onClick:s},W("div",{class:"success__content"},n.successMessageText,W("span",{class:"success__icon",dangerouslySetInnerHTML:i}))):W("dialog",{class:"dialog",onClick:n.onFormClose,open:e},W("div",{class:"dialog__position"},W("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},W(Ge,{options:n}),W(qe,{...r,onSubmitSuccess:c})))))}const Je=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:r,shadow:i})=>{const o=i,a=e.useSentryUser,s=function(){const e=(0,n.getCurrentScope)().getUser(),t=(0,n.getIsolationScope)().getUser(),r=(0,n.getGlobalScope)().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:r}(),c=d.createElement("div"),l=function(e){const t=d.createElement("style");return t.textContent="\n:host {\n  --dialog-inset: var(--inset);\n}\n\n\n.dialog {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: 0;\n  inset: 0;\n\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 0;\n  height: 100vh;\n  width: 100vw;\n\n  color: var(--dialog-color, var(--foreground));\n  fill: var(--dialog-color, var(--foreground));\n  line-height: 1.75em;\n\n  background-color: rgba(0, 0, 0, 0.05);\n  border: none;\n  inset: 0;\n  opacity: 1;\n  transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n  position: fixed;\n  z-index: var(--z-index);\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  display: flex;\n  max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n  .dialog__position {\n    inset: var(--page-margin);\n    padding: 0;\n  }\n}\n\n.dialog__position:has(.editor) {\n  inset: var(--page-margin);\n  padding: 0;\n}\n\n.dialog:not([open]) {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n  transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n  padding: var(--dialog-padding, 24px);\n  max-width: 100%;\n  width: 100%;\n  max-height: 100%;\n  overflow: auto;\n\n  background: var(--dialog-background, var(--background));\n  border-radius: var(--dialog-border-radius, 20px);\n  border: var(--dialog-border, var(--border));
50\n  box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n  transform: translate(0, 0) scale(1);\n  transition: transform 0.2s ease-in-out;\n}\n\n\n\n.dialog__header {\n  display: flex;\n  gap: 4px;\n  justify-content: space-between;\n  font-weight: var(--dialog-header-weight, 600);\n  margin: 0;\n}\n.dialog__title {\n  align-self: center;\n  width: var(--form-width, 272px);\n}\n\n@media (max-width: 600px) {\n  .dialog__title {\n    width: auto;\n  }\n}\n\n.dialog__position:has(.editor) .dialog__title {\n  width: auto;\n}\n\n\n.brand-link {\n  display: inline-flex;\n}\n.brand-link:focus-visible {\n  outline: var(--outline);\n}\n\n\n.form {\n  display: flex;\n  overflow: auto;\n  flex-direction: row;\n  gap: 16px;\n  flex: 1 0;\n}\n\n.form fieldset {\n  border: none;\n  margin: 0;\n  padding: 0;\n}\n\n.form__right {\n  flex: 0 0 auto;\n  display: flex;\n  overflow: auto;\n  flex-direction: column;\n  justify-content: space-between;\n  gap: 20px;\n  width: var(--form-width, 100%);\n}\n\n.dialog__position:has(.editor) .form__right {\n  width: var(--form-width, 272px);\n}\n\n.form__top {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n\n.form__error-container {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n.form__label {\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  margin: 0px;\n}\n\n.form__label__text {\n  display: flex;\n  gap: 4px;\n  align-items: center;\n}\n\n.form__label__text--required {\n  font-size: 0.85em;\n}\n\n.form__input {\n  font-family: inherit;\n  line-height: inherit;\n  background: transparent;\n  box-sizing: border-box;\n  border: var(--input-border, var(--border));\n  border-radius: var(--input-border-radius, 6px);\n  color: var(--input-color, inherit);\n  fill: var(--input-color, inherit);\n  font-size: var(--input-font-size, inherit);\n  font-weight: var(--input-font-weight, 500);\n  padding: 6px 12px;\n}\n\n.form__input::placeholder {\n  opacity: 0.65;\n  color: var(--input-placeholder-color, inherit);\n  filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n  outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n  font-family: inherit;\n  resize: vertical;\n}\n\n.error {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n\n.btn-group {\n  display: grid;\n  gap: 8px;\n}\n\n.btn {\n  line-height: inherit;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  cursor: pointer;\n  font-family: inherit;\n  font-size: var(--button-font-size, inherit);\n  font-weight: var(--button-font-weight, 600);\n  padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n  opacity: 0.6;\n  pointer-events: none;\n}\n\n.btn--primary {\n  color: var(--button-primary-color, var(--accent-foreground));\n  fill: var(--button-primary-color, var(--accent-foreground));\n  background: var(--button-primary-background, var(--accent-background));\n  border: var(--button-primary-border, var(--border));\n  border-radius: var(--button-primary-border-radius, 6px);\n  font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n  color: var(--button-primary-hover-color, var(--accent-foreground));\n  fill: var(--button-primary-hover-color, var(--accent-foreground));\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n  outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-background, var(--background));\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n  outline: var(--button-focus-outline, var(--outline));\n}\n\n\n.success__position {\n  position: fixed;\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  z-index: var(--z-index);\n}\n.success__content {\n  background: var(--success-background, var(--background));\n  border: var(--success-border, var(--border));\n  border-radius: var(--success-border-radius, 1.7em/50%);
50\n  box-shadow: var(--success-box-shadow, var(--box-shadow));\n  font-weight: var(--success-font-weight, 600);\n  color: var(--success-color);\n  fill: var(--success-color);\n  padding: 12px 24px;\n  line-height: 1.75em;\n\n  display: grid;\n  align-items: center;\n  grid-auto-flow: column;\n  gap: 6px;\n  cursor: default;\n}\n\n.success__icon {\n  display: flex;\n}\n\n",e&&t.setAttribute("nonce",e),t}(e.styleNonce);let u="";const p={get el(){return c},appendToDom(){o.contains(l)||o.contains(c)||(o.appendChild(l),o.appendChild(c))},removeFromDom(){c.remove(),l.remove(),d.body.style.overflow=u},open(){h(!0),e.onFormOpen?.(),(0,n.getClient)()?.emit("openFeedbackWidget"),u=d.body.style.overflow,d.body.style.overflow="hidden"},close(){h(!1),d.body.style.overflow=u}},f=t?.createInput({h:W,hooks:ze,dialog:p,options:e}),h=t=>{!function(e,t){var r,n,i;N.__&&N.__(e,t),r=t.__k,n=[],i=[],le(t,e=t.__k=W(Y,null,[e]),r||H,H,void 0!==t.ownerSVGElement,r?null:t.firstChild?D.call(t.childNodes):null,n,r?r.__e:t.firstChild,!1,i),e.__d=void 0,ue(n,e,i)}(W(Ye,{options:e,screenshotInput:f,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(a&&s?.[a.name]||""),defaultEmail:String(a&&s?.[a.email]||""),onFormClose:()=>{h(!1),e.onFormClose?.()},onSubmit:r,onSubmitSuccess:(t,r)=>{h(!1),e.onSubmitSuccess?.(t,r)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),c)};return p}});function Qe(e){const t=d.createElement("style"),r="#1A141F",n="#302735";return t.textContent=`\n.editor {\n  display: flex;\n  flex-grow: 1;\n  flex-direction: column;\n}\n\n.editor__image-container {\n  justify-items: center;\n  padding: 15px;\n  position: relative;\n  height: 100%;\n  border-radius: var(--menu-border-radius, 6px);\n\n  background-color: ${r};\n  background-image: repeating-linear-gradient(\n      -145deg,\n      transparent,\n      transparent 8px,\n      ${r} 8px,\n      ${r} 11px\n    ),\n    repeating-linear-gradient(\n      -45deg,\n      transparent,\n      transparent 15px,\n      ${n} 15px,\n      ${n} 16px\n    );\n}\n\n.editor__canvas-container {\n  width: 100%;\n  height: 100%;\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.editor__canvas-container > * {\n  object-fit: contain;\n  position: absolute;\n}\n\n.editor__tool-container {\n  padding-top: 8px;\n  display: flex;\n  justify-content: center;\n}\n\n.editor__tool-bar {\n  display: flex;\n  gap: 8px;\n}\n\n.editor__tool {\n  display: flex;\n  padding: 8px 12px;\n  justify-content: center;\n  align-items: center;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  background: var(--button-background, var(--background));\n  color: var(--button-color, var(--foreground));\n}\n\n.editor__tool--active {\n  background: var(--button-primary-background, var(--accent-background));\n  color: var(--button-primary-color, var(--accent-foreground));\n}\n\n.editor__rect {\n  position: absolute;\n  z-index: 2;\n}\n\n.editor__rect button {\n  opacity: 0;\n  position: absolute;\n  top: -12px;\n  right: -12px;\n  cursor: pointer;\n  padding: 0;\n  z-index: 3;\n  border: none;\n  background: none;\n}\n\n.editor__rect:hover button {\n  opacity: 1;\n}\n`,e&&t.setAttribute("nonce",e),t}function Xe({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:r,onAfterScreenshot:n,onError:i}){const o=function(){const[t,r]=e.useState(u.devicePixelRatio??1);return e.useEffect(()=>{const e=()=>{r(u.devicePixelRatio)},t=matchMedia(`(resolution: ${u.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();const e=await p.mediaDevices.getDisplayMedia({video:{width:u.innerWidth*o,height:u.innerHeight*o},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),i=d.createElement("video");await new Promise((t,n)=>{i.srcObject=e,i.onloadedmetadata=()=>{r(i,o),e.getTracks().forEach(e=>e.stop()),t()},i.play().catch(n)}),n()})().catch(i)},[])}}function Ze(e,t,r){if(!e)return;const n=e.getContext("2d",t);n&&r(e,n)}function et(e,t){Ze(e,{alpha:!0},(e,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function tt(e,t,r){Ze(e,{alpha:!0},(e,n)=>{r.length&&(n.fillStyle="rgba(0, 0, 0, 0.25)",n.fillRect(0,0,e.width,e.height)),r.forEach(e
50=>{!function(e,t,r){switch(e.type){case"highlight":t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=r,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break;case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h)}}(e,n,t)})})}function rt({h:e,hooks:t,outputBuffer:r,dialog:n,options:i}){const o=Xe({hooks:t}),a=function({h:e}){return function({action:t,setAction:r,options:n}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:"editor__tool "+("highlight"===t?"editor__tool--active":""),onClick:()=>{r("highlight"===t?"":"highlight")}},n.highlightToolText),e("button",{type:"button",class:"editor__tool "+("hide"===t?"editor__tool--active":""),onClick:()=>{r("hide"===t?"":"hide")}},n.hideToolText)))}}({h:e}),s=function({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}({h:e}),c={__html:Qe(i.styleNonce).innerText},l=n.el.style,p=({screenshot:n})=>{const[o,l]=t.useState("highlight"),[p,f]=t.useState([]),h=t.useRef(null),m=t.useRef(null),g=t.useRef(null),y=t.useRef(null),[v,b]=t.useState(1),_=t.useMemo(()=>{const e=d.getElementById(i.id);if(!e)return"white";const t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[i.id]);t.useLayoutEffect(()=>{const e=()=>{const t=h.current;t&&(Ze(n.canvas,{alpha:!1},e=>{const r=Math.min(t.clientWidth/e.width,t.clientHeight/e.height);b(r)}),0!==t.clientHeight&&0!==t.clientWidth||setTimeout(e,0))};return e(),u.addEventListener("resize",e),()=>{u.removeEventListener("resize",e)}},[n]);const S=t.useCallback((e,t)=>{Ze(e,{alpha:!0},(e,r)=>{r.scale(t,t),e.width=n.canvas.width,e.height=n.canvas.height})},[n]);t.useEffect(()=>{S(m.current,n.dpi),et(m.current,n.canvas)},[n]),t.useEffect(()=>{S(g.current,n.dpi),Ze(g.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),tt(g.current,_,p)},[p,_]),t.useEffect(()=>{S(r,n.dpi),et(r,n.canvas),Ze(d.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(n.dpi,n.dpi),e.width=n.canvas.width,e.height=n.canvas.height,tt(e,_,p),et(r,e)})},[p,n,_]);const E=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),f(t=>{const r=[...t];return r.splice(e,1),r})},[]),w={width:n.canvas.width*v+"px",height:n.canvas.height*v+"px"},T=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:i.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:h},e("canvas",{ref:m,id:"background",style:w}),e("canvas",{ref:g,id:"foreground",style:w}),e("div",{ref:y,onMouseDown:e=>{if(!o||!y.current)return;const t=y.current.getBoundingClientRect(),r={type:o,x:e.offsetX/v,y:e.offsetY/v},n=(e,r)=>{const n=(r.clientX-t.x)/v,i=(r.clientY-t.y)/v;return{type:e.type,x:Math.min(e.x,n),y:Math.min(e.y,i),w:Math.abs(n-e.x),h:Math.abs(i-e.y)}},i=e=>{Ze(g.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),tt(g.current,_,[...p,n(r,e)])},a=e=>{const t=n(r,e);t.w*v>=1&&t.h*v>=1&&f(e=>[...e,t]),d.removeEventListener("mousemove",i),d.removeEventListener("mouseup",a)};d.addEventListener("mousemove",i),d.addEventListener("mouseup",a)},style:w},p.map((t,r)=>e("div",{key:r,class:"editor__rect",style:{top:t.y*v+"px",left:t.x*v+"px",width:t.w*v+"px",height:t.h*v+"px"}},e("button",{"aria-label":i.removeHighlightText,onClick:E(r),onMouseDown:T,onMouseUp:T,type:"button"},e(s,null))))))),e(a,{options:i,action:o,setAction:l}))};return function({onError:n}){const[i,a]=t.useState();return o({onBeforeScreenshot:t.useCallback(()=>{l.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{Ze(d.createElement("canvas"),{alpha:!1},(r,n)=>{n.scale(t,t),r.width=e.videoWidth,r.height=e.videoHeight,n.drawImage(e,0,0,r.width,r.height),a({canvas:r,dpi:t})}),r.width=e.videoWidth,r.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{l.display="block"},[]),onError:t.useCallback(e=>{l.display="block",n(e)},[])}),i?e(p,{screenshot:i}):e("div",null)}}const nt=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:r,options:n})=>{const i=d.createElement("canvas");return{input:rt({h:e,hooks:t,outputBuffer:i,dialog:r,options:n}),value:async()=>{const e=await new Promise(e=>
50{i.toBlob(e,"image/png")});if(e){return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{captureFeedback:()=>i});var n=r(401);function i(e,t={},r=(0,n.getCurrentScope)()){const{message:i,name:o,email:a,url:s,source:c,associatedEventId:l,tags:u}=e,d={contexts:{feedback:{contact_email:a,name:o,message:i,url:s,source:c,associated_event_id:l}},type:"feedback",level:"info",tags:u},p=r?.getClient()||(0,n.getClient)();p&&p.emit("beforeSendFeedback",d,t);return r.captureEvent(d,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{lazyLoadIntegration:()=>l});var n=r(401),i=r(404),o=r(1423);const a=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],s={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"};const c=o.WINDOW;async function l(e,t){const r=a.includes(e)?function(e){return s[e]||e.replace("Integration","").toLowerCase()}(e):void 0,l=c.Sentry=c.Sentry||{};if(!r)throw new Error(`Cannot lazy load integration: ${e}`);const u=l[e];if("function"==typeof u&&!("_isShim"in u))return u;const d=function(e){const t=(0,n.getClient)(),r=t?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${i.SDK_VERSION}/${e}.min.js`,r).toString()}(r),p=o.WINDOW.document.createElement("script");p.src=d,p.crossOrigin="anonymous",p.referrerPolicy="strict-origin",t&&p.setAttribute("nonce",t);const f=new Promise((e,t)=>{p.addEventListener("load",()=>e()),p.addEventListener("error",t)}),h=o.WINDOW.document.currentScript,m=o.WINDOW.document.body||o.WINDOW.document.head||h?.parentElement;if(!m)throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);m.appendChild(p);try{await f}catch{throw new Error(`Error when loading integration: ${e}`)}const g=l[e];if("function"!=typeof g)throw new Error(`Could not load integration: ${e}`);return g}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{feedbackSyncIntegration:()=>i});var n=r(3241);const i=(0,n.buildFeedbackIntegration)({getModalIntegration:()=>n.feedbackModalIntegration,getScreenshotIntegration:()=>n.feedbackScreenshotIntegration})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MULTIPLEXED_TRANSPORT_EXTRA_KEY:()=>a,eventFromEnvelope:()=>s,makeMultiplexedTransport:()=>c});var n=r(1397),i=r(439),o=r(448);const a="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function s(e,t){let r;return(0,o.forEachEnvelopeItem)(e,(e,n)=>(t.includes(n)&&(r=Array.isArray(e)?e[1]:void 0),!!r)),r}function c(e,t){return r=>{const c=e(r),l=new Map,u=t||(e=>{const t=e.getEvent();return t?.extra?.[a]&&Array.isArray(t.extra[a])?t.extra[a]:[]});function d(t,o){const a=o?`${t}:${o}`:t;let c=l.get(a);if(!c){const u=(0,i.dsnFromString)(t);if(!u)return;const d=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(u,r.tunnel);c=o?function(e,t){return r=>{const n=e(r);return{...n,send:async e=>{const r=s(e,["event","transaction","profile","replay_event"]);return r&&(r.release=t),n.send(e)}}}}(e,o)({...r,url:d}):e({...r,url:d}),l.set(a,c)}return[t,c]}return{send:async function(e){const t=u({envelope:e,getEvent:function(t){return s(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?d(e,void 0):d(e.dsn,e.release)).filter(e=>!!e),r=t.length?t:[["",c]];return(await Promise.all(r.map(([t,r])=>r.send(function(e,t){return(0,o.createEnvelope)(t?{...e[0],dsn:t}:e[0],e[1])}(e,t)))))[0]},flush:async function(e){const t=[...l.values(),c];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}},(e,t,r)=>{"use strict";function n(e,...t){const r=new String(String.raw(e,...t));
50return r.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),r.__sentry_template_values__=t,r}r.r(t),r.d(t,{fmt:()=>i,parameterize:()=>n});const i=n},(e,t,r)=>{"use strict";r.r(t),r.d(t,{moduleMetadataIntegration:()=>a});var n=r(1389),i=r(3248),o=r(448);const a=(0,n.defineIntegration)(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{(0,o.forEachEnvelopeItem)(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&((0,i.stripMetadataFromStackFrames)(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const r=e.getOptions().stackParser;(0,i.addMetadataToStackFrames)(r,t)})}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addMetadataToStackFrames:()=>c,getFilenameToMetadataMap:()=>a,getMetadataForUrl:()=>s,stripMetadataFromStackFrames:()=>l});var n=r(405);const i=new Map,o=new Set;function a(e){if(!n.GLOBAL_OBJ._sentryModuleMetadata)return{};const t={};for(const r of Object.keys(n.GLOBAL_OBJ._sentryModuleMetadata)){const i=n.GLOBAL_OBJ._sentryModuleMetadata[r],o=e(r);for(const e of o.reverse())if(e.filename){t[e.filename]=i;break}}return t}function s(e,t){return function(e){if(n.GLOBAL_OBJ._sentryModuleMetadata)for(const t of Object.keys(n.GLOBAL_OBJ._sentryModuleMetadata)){const r=n.GLOBAL_OBJ._sentryModuleMetadata[t];if(o.has(t))continue;o.add(t);const a=e(t);for(const e of a.reverse())if(e.filename){i.set(e.filename,r);break}}}(e),i.get(t)}function c(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;const r=s(e,t.filename);r&&(t.module_metadata=r)})})}function l(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{captureConsoleIntegration:()=>p});var n=r(401),i=r(400),o=r(1427),a=r(1389),s=r(413),c=r(411),l=r(1431),u=r(416),d=r(405);const p=(0,a.defineIntegration)((e={})=>{const t=e.levels||s.CONSOLE_LEVELS,r=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in d.GLOBAL_OBJ&&(0,o.addConsoleInstrumentationHandler)(({args:o,level:a})=>{(0,n.getClient)()===e&&t.includes(a)&&function(e,t,r){const o=(0,l.severityLevelFromString)(t),a=new Error,s={level:(0,l.severityLevelFromString)(t),extra:{arguments:e}};(0,n.withScope)(n=>{if(n.addEventProcessor(e=>(e.logger="console",(0,c.addExceptionMechanism)(e,{handled:r,type:"auto.core.capture_console"}),e)),"assert"===t){if(!e[0]){const t=`Assertion failed: ${(0,u.safeJoin)(e.slice(1)," ")||"console.assert"}`;n.setExtra("arguments",e.slice(1)),n.captureMessage(t,o,{captureContext:s,syntheticException:a})}return}const l=e.find(e=>e instanceof Error);if(l)return void(0,i.captureException)(l,s);const d=(0,u.safeJoin)(e," ");n.captureMessage(d,o,{captureContext:s,syntheticException:a})})}(o,a,r)})}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{extraErrorDataIntegration:()=>u});var n=r(409),i=r(1389),o=r(413),a=r(414),s=r(417),c=r(418),l=r(416);const u=(0,i.defineIntegration)((e={})=>{const{depth:t=3,captureErrorCause:r=!0}=e;return{name:"ExtraErrorData",processEvent(e,n,i){const{maxValueLength:o}=i.getOptions();return function(e,t={},r,n,i){if(!t.originalException||!(0,a.isError)(t.originalException))return e;const o=t.originalException.name||t.originalException.constructor.name,l=d(t.originalException,n,i);if(l){const t={...e.contexts},n=(0,s.normalize)(l,r);return(0,a.isPlainObject)(n)&&((0,c.setSkipNormalizationHint)(n),t[o]=n),{...e,contexts:t}}return e}(e,n,t,r,o)}}});function d(e,t,r){try{const n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],i={};for(const t of Object.keys(e)){if(-1!==n.indexOf(t))continue;const o=e[t];i[t]=(0,a.isError)(o)||"string"==typeof o?r?(0,l.truncate)(`${o}`,r):`${o}`:o}if(t&&void 0!==e.cause)if((0,a.isError)(e.cause)){const t=e.cause.name||e.cause.constructor.name;i.cause={[t]:d(e.cause,!1,r)}}else i.cause=e.cause;if("function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const r=t[e];i[e]=(0,a.isError)(r)?r.toString():r}}return i}catch(e){n.DEBUG_BUILD&&o.debug.error("Unable to extract extra data from the Error object:",e)}return null}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{generateIteratee:()=>s,rewriteFramesIntegration:()=>a});
50var n=r(1389),i=r(3252),o=r(405);const a=(0,n.defineIntegration)((e={})=>{const t=e.root,r=e.prefix||"app:///",n="window"in o.GLOBAL_OBJ&&!!o.GLOBAL_OBJ.window,i=e.iteratee||s({isBrowser:n,root:t,prefix:r});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{return{...e,...e.stacktrace&&{stacktrace:(t=e.stacktrace,{...t,frames:t?.frames?.map(e=>i(e))})}};var t})}}}catch{return e}}(t)),t}}});function s({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;const o=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),a=/^\//.test(n.filename);if(e){if(t){const e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(o||a){const e=o?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,a=t?(0,i.relative)(t,e):(0,i.basename)(e);n.filename=`${r}${a}`}return n}}},(e,t,r)=>{"use strict";function n(e,t){let r=0;for(let t=e.length-1;t>=0;t--){const n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}r.r(t),r.d(t,{basename:()=>f,dirname:()=>p,isAbsolute:()=>u,join:()=>d,normalizePath:()=>l,relative:()=>c,resolve:()=>a});const i=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function o(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,r=i.exec(t);return r?r.slice(1):[]}function a(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){const i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=n(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function s(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}function c(e,t){e=a(e).slice(1),t=a(t).slice(1);const r=s(e.split("/")),n=s(t.split("/")),i=Math.min(r.length,n.length);let o=i;for(let e=0;e<i;e++)if(r[e]!==n[e]){o=e;break}let c=[];for(let e=o;e<r.length;e++)c.push("..");return c=c.concat(n.slice(o)),c.join("/")}function l(e){const t=u(e),r="/"===e.slice(-1);let i=n(e.split("/").filter(e=>!!e),!t).join("/");return i||t||(i="."),i&&r&&(i+="/"),(t?"/":"")+i}function u(e){return"/"===e.charAt(0)}function d(...e){return l(e.join("/"))}function p(e){const t=o(e),r=t[0]||"";let n=t[1];return r||n?(n&&(n=n.slice(0,n.length-1)),r+n):"."}function f(e,t){let r=o(e)[2]||"";return t&&r.slice(-1*t.length)===t&&(r=r.slice(0,r.length-t.length)),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DB_OPERATIONS_TO_INSTRUMENT:()=>y,FILTER_MAPPINGS:()=>g,extractOperation:()=>S,instrumentSupabaseClient:()=>O,supabaseIntegration:()=>A,translateFiltersIntoMethods:()=>E});var n=r(642),i=r(401),o=r(409),a=r(400),s=r(1389),c=r(427),l=r(413),u=r(411),d=r(414),p=r(436),f=r(426);const h=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],m=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],g={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},y=["select","insert","upsert","update","delete"];function v(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function b(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function _(e,t){return Object.keys(t).length>0?t:Array.isArray(e)&&e.length>0?e:void 0}function S(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function E(e,t){if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;const[r,...n]=t.split(".");let i;return i=r?.startsWith("fts")?"textSearch":r?.startsWith("plfts")?"textSearch[plain]":r?.startsWith("phfts")?"textSearch[phrase]":r?.startsWith("wfts")?"textSearch[websearch]":r&&g[r]||"filter",`${i}(${e}, ${n.join(".")})`}function w(e,t=!1){return new Proxy(e,{apply:(r,n,i)=>(0,f.startSpan)({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[c.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(r,n,i).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:p.SPAN_STATUS_ERROR}),(0,a.captureException)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:p.SPAN_STATUS_OK}),e.end(),t)).catch(t=>{throw e.setStatus({code:p.SPAN_STATUS_ERROR}),e.end(),(0,a.captureException)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...i))})}function T(e,t){b(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(e,r,n){const i=Reflect.apply(e,r,n);return function(e,t){for(const r of y)b(e.prototype[r])||(e.prototype[r]=new Proxy(e.prototype[r],{apply(e,n,i){const a=Reflect.apply(e,n,i),s=a.constructor;return o.DEBUG_BUILD&&l.debug.log(`Instrumenting ${r} operation's PostgRESTFilterBuilder`),x(s,t),a}}),v(e.prototype[r]))}(i.constructor,t),i}}),v(e.prototype.from))}function x(e,t){b(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,r,o){const s=y,l=r,h=S(l.method,l.headers);if(!s.includes(h))return Reflect.apply(e,r,o);if(!l?.url?.pathname||"string"!=typeof l.url.pathname)return Reflect.apply(e,r,o);const m=l.url.pathname.split("/"),g=m.length>0?m[m.length-1]:"",v=[];
50for(const[e,t]of l.url.searchParams.entries())v.push(E(e,t));const b=Object.create(null);if((0,d.isPlainObject)(l.body))for(const[e,t]of Object.entries(l.body))b[e]=t;const w=(0,i.getClient)(),T=t.sendOperationData??!0===w?.getDataCollectionOptions().userInfo,x=_(l.body,b),O="select"===h?"":`${h}${A=l.body,R=b,void 0!==_(A,R)?"(...) ":""}`;var A,R;const P=T?v.join(" "):v.length>0?"[redacted]":"",I=[O.trimEnd(),P].filter(Boolean).join(" "),C=I?`${I} from(${g})`:`from(${g})`,k={"db.table":g,"db.schema":l.schema,"db.url":l.url.origin,"db.sdk":l.headers["X-Client-Info"],"db.system":"postgresql","db.operation":h,[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[c.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"};return v.length&&T&&(k["db.query"]=v),void 0!==x&&T&&(k["db.body"]=x),(0,f.startSpan)({name:C,attributes:k},t=>Reflect.apply(e,r,[]).then(e=>{if(t&&(e&&"object"==typeof e&&"status"in e&&(0,p.setHttpStatus)(t,e.status||500),t.end()),e?.error){const t=new Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);const r={};v.length&&T&&(r.query=v),void 0!==x&&T&&(r.body=x),(0,a.captureException)(t,e=>(e.addEventProcessor(e=>((0,u.addExceptionMechanism)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",r),e))}const r={type:"supabase",category:`db.${h}`,message:C},i={};return v.length&&T&&(i.query=v),void 0!==x&&T&&(i.body=x),Object.keys(i).length&&(r.data=i),(0,n.addBreadcrumb)(r),e},e=>{throw t&&((0,p.setHttpStatus)(t,500),t.end()),e}).then(...o))}}),v(e.prototype.then))}const O=(e,t={})=>{if(!e)return void(o.DEBUG_BUILD&&l.debug.warn("Supabase integration was not installed because no Supabase client was provided."));T(e.constructor===Function?e:e.constructor,t),function(e){const t=e.auth;if(t&&!b(e.auth)){for(const r of h){const n=t[r];n&&"function"==typeof e.auth[r]&&(e.auth[r]=w(n))}for(const r of m){const n=t.admin[r];n&&"function"==typeof e.auth.admin[r]&&(e.auth.admin[r]=w(n,!0))}v(e.auth)}}(e)},A=(0,s.defineIntegration)(e=>((e,t)=>({setupOnce(){O(e,t)},name:"Supabase"}))(e.supabaseClient,{sendOperationData:e.sendOperationData}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyZodErrorsToEvent:()=>l,flattenIssue:()=>a,flattenIssuePath:()=>s,formatIssueMessage:()=>c,zodErrorsIntegration:()=>u});var n=r(1389),i=r(414),o=r(416);function a(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function s(e){return e.map(e=>"number"==typeof e?"<array>":e).join(".")}function c(e){const t=new Set;for(const r of e.issues){const e=s(r.path);e.length>0&&t.add(e)}const r=Array.from(t);if(0===r.length){let t="variable";if(e.issues.length>0){const r=e.issues[0];void 0!==r&&"expected"in r&&"string"==typeof r.expected&&(t=r.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,o.truncate)(r.join(", "),100)}`}function l(e,t=!1,r,n){if(!(r.exception?.values&&n.originalException&&(o=n.originalException,(0,i.isError)(o)&&"ZodError"===o.name&&Array.isArray(o.issues))&&0!==n.originalException.issues.length))return r;var o;try{const i=(t?n.originalException.issues:n.originalException.issues.slice(0,e)).map(a);return t&&(Array.isArray(n.attachments)||(n.attachments=[]),n.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:i})})),{...r,exception:{...r.exception,values:[{...r.exception.values[0],value:c(n.originalException)},...r.exception.values.slice(1)]},extra:{...r.extra,"zoderror.issues":i.slice(0,e)}}}catch(e){return{...r,extra:{...r.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:"unknown"}}}}}const u=(0,n.defineIntegration)((e={})=>{const t=e.limit??10;return{name:"ZodErrors",processEvent:(r,n)=>l(t,e.saveZodIssuesAsAttachment,r,n)}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{thirdPartyErrorFilterIntegration:()=>c});
50var n=r(1389),i=r(3248),o=r(448),a=r(419),s=r(405);const c=(0,n.defineIntegration)(e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{(0,o.forEachEnvelopeItem)(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&((0,i.stripMetadataFromStackFrames)(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const r=e.getOptions().stackParser;(0,i.addMetadataToStackFrames)(r,t)})},preprocessEvent(t){e.ignoreSentryInternalFrames&&(s.GLOBAL_OBJ._sentryWrappedDepth??0)>0&&(t.sdkProcessingMetadata={...t.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(t){const r=!!e.ignoreSentryInternalFrames&&(!0===t.sdkProcessingMetadata?.insideSentryWrapped&&1===t.exception?.values?.length),n=function(e,t,r){const n=(0,a.getFramesFromEvent)(e);if(!n)return;return n.filter((e,n)=>!!e.filename&&((null!=e.lineno||null!=e.colno||null!=e.instruction_addr)&&(!t||!function(e,t,r){if(0!==t)return!1;if(r&&function(e){return!e.context_line&&!e.pre_context&&!!e.function&&e.function.length<=2}(e))return!0;if("sentryWrapped"===e.function)return!0;if(!e.context_line||!e.filename)return!1;if(!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(d))return!1;if(e.pre_context){const t=e.pre_context.length;for(let r=0;r<t;r++)if(e.pre_context[r]?.includes(u))return!0}return!1}(e,n,!!r)))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(l)).map(e=>e.slice(l.length)):[])}(t,e.ignoreSentryInternalFrames,r);if(n){if(n["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}}return t}}));const l="_sentryBundlerPluginAppKey:",u="Attempt to invoke user-land function",d="fn.apply(this, wrappedArguments)"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{featureFlagsIntegration:()=>o});var n=r(1389),i=r(3257);const o=(0,n.defineIntegration)(()=>({name:"FeatureFlags",processEvent:(e,t,r)=>(0,i._INTERNAL_copyFlagsFromScopeToEvent)(e),addFeatureFlag(e,t){(0,i._INTERNAL_insertFlagToScope)(e,t),(0,i._INTERNAL_addFeatureFlagToActiveSpan)(e,t)}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_INTERNAL_FLAG_BUFFER_SIZE:()=>s,_INTERNAL_MAX_FLAGS_PER_SPAN:()=>c,_INTERNAL_addFeatureFlagToActiveSpan:()=>f,_INTERNAL_copyFlagsFromScopeToEvent:()=>u,_INTERNAL_insertFlagToScope:()=>d,_INTERNAL_insertToFlagBuffer:()=>p});var n=r(401),i=r(409),o=r(413),a=r(434);const s=100,c=10,l="flag.evaluation.";function u(e){if(e.type)return e;const t=(0,n.getCurrentScope)().getScopeData().contexts.flags,r=t?t.values:[];return r.length?(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...r]},e):e}function d(e,t,r=s){const i=(0,n.getCurrentScope)().getScopeData().contexts;i.flags||(i.flags={values:[]});p(i.flags.values,e,t,r)}function p(e,t,r,n){if("boolean"!=typeof r)return;if(e.length>n)return void(i.DEBUG_BUILD&&o.debug.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${n}`));const a=e.findIndex(e=>e.flag===t);-1!==a&&e.splice(a,1),e.length===n&&e.shift(),e.push({flag:t,result:r})}function f(e,t,r=c){if("boolean"!=typeof t)return;const n=(0,a.getActiveSpan)();if(!n)return;const i=(0,a.spanToJSON)(n).data;if(`${l}${e}`in i)return void n.setAttribute(`${l}${e}`,t);Object.keys(i).filter(e=>e.startsWith(l)).length<r&&n.setAttribute(`${l}${e}`,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{debug:()=>s,error:()=>u,fatal:()=>d,fmt:()=>i.fmt,info:()=>c,trace:()=>a,warn:()=>l});var n=r(1398),i=r(3246);function o(e,t,r,i,o){(0,n._INTERNAL_captureLog)({level:e,message:t,attributes:r,severityNumber:o},i)}function a(e,t,{scope:r}={}){o("trace",e,t,r)}function s(e,t,{scope:r}={}){o("debug",e,t,r)}function c(e,t,{scope:r}={}){o("info",e,t,r)}function l(e,t,{scope:r}={}){o("warn",e,t,r)}function u(e,t,{scope:r}={}){o("error",e,t,r)}function d(e,t,{scope:r}={}){o("fatal",e,t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{consoleLoggingIntegration:()=>p});var n=r(401),i=r(409),o=r(1427),a=r(1389),s=r(427),c=r(413),l=r(1398),u=r(3260);const d={[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.log.console"},p=(0,a.defineIntegration)((e={})=>{const t=e.levels||c.CONSOLE_LEVELS;return{name:"ConsoleLogs",setup(e){const{enableLogs:r,normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e.getOptions();if(!r)return void(i.DEBUG_BUILD&&c.debug.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled"));const p=(0,o.addConsoleInstrumentationHandler)(({args:r,level:i})=>{if((0,n.getClient)()!==e||!t.includes(i))return;const o=r[0],c=r.slice(1);if("assert"===i){if(!o){const e=c.length>0?`Assertion failed: ${(0,u.formatConsoleArgs)(c,a,s)}`:"Assertion failed";(0,l._INTERNAL_captureLog)({level:"error",message:e,attributes:d})}return}const p="log"===i,f=r.length>1&&"string"==typeof r[0]&&!(0,u.hasConsoleSubstitutions)(r[0]),h={...d,...f?(0,u.createConsoleTemplateAttributes)(o,c):{}};(0,l._INTERNAL_captureLog)({level:p?"info":i,message:(0,u.formatConsoleArgs)(r,a,s),severityNumber:p?10:void 0,attributes:h})});e.registerCleanup(p)}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createConsoleTemplateAttributes:()=>l,formatConsoleArgs:()=>a,hasConsoleSubstitutions:()=>c,safeJoinConsoleArgs:()=>s});var n=r(414),i=r(417),o=r(405);function a(e,t,r){return"util"in o.GLOBAL_OBJ&&"function"==typeof o.GLOBAL_OBJ.util.format?o.GLOBAL_OBJ.util.format(...e):s(e,t,r)}function s(e,t,r){return e.map(e=>(0,n.isPrimitive)(e)?String(e):JSON.stringify((0,i.normalize)(e,t,r))).join(" ")}function c(e){return/%[sdifocO]/.test(e)}function l(e,t){const r={},n=new Array(t.length).fill("{}").join(" ");return r["sentry.message.template"]=`${e} ${n}`,t.forEach((e,t)=>{r[`sentry.message.parameter.${t}`]=e}),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{count:()=>o,distribution:()=>s,gauge:()=>a});var n=r(1406);function i(e,t,r,i){(0,n._INTERNAL_captureMetric)({type:e,name:t,value:r,unit:i?.unit,attributes:i?.attributes},{scope:i?.scope})}function o(e,t=1,r){i("counter",e,t,r)}function a(e,t,r){i("gauge",e,t,r)}function s(e,t,r){i("distribution",e,t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createConsolaReporter:()=>l});var n=r(401),i=r(1398),o=r(3260),a=r(414),s=r(417);const c=["trace","debug","info","warn","error","fatal"];function l(e={}){const t=new Set(e.levels??c),r=e.client;return{log(e){const{type:c,level:l,message:p,args:f,tag:h,date:m,...g}=e,y=r||(0,n.getClient)();if(!y)return;const v=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){const t=u[e];if(t)return t}if("number"==typeof t){const e=d[t];if(e)return e}return"info"}(c,l);if(!t.has(v))return;const{normalizeDepth:b=3,normalizeMaxBreadth:_=1e3}=y.getOptions(),S={};for(const[e,t]of Object.entries(g))S[e]=(0,s.normalize)(t,b,_);S["sentry.origin"]="auto.log.consola",h&&(S["consola.tag"]=h),c&&(S["consola.type"]=c),null!=l&&"number"==typeof l&&(S["consola.level"]=l);const E=function(e,t,r){const{message:n,attributes:i,messageTemplate:a,messageParameters:c}=e,l={};
50if(a&&c){const e=(0,o.createConsoleTemplateAttributes)(a,c);for(const[n,i]of Object.entries(e))l[n]=n.startsWith("sentry.message.parameter.")?(0,s.normalize)(i,t,r):i}else c&&c.length>0&&c.forEach((e,n)=>{l[`sentry.message.parameter.${n}`]=(0,s.normalize)(e,t,r)});return{message:n,attributes:{...(0,s.normalize)(i,t,r),...l}}}(function(e,t,r){if(!e?.length)return{message:""};const n=(0,o.formatConsoleArgs)(e,t,r),i=e[0];if((0,a.isPlainObject)(i)){const t="string"==typeof e[1]?2:1;return{message:n,attributes:i,messageParameters:e.slice(t)}}{const t=e.slice(1),r=t.length>0&&"string"==typeof i&&!(0,o.hasConsoleSubstitutions)(i);return{message:n,messageTemplate:r?i:void 0,messageParameters:r?t:void 0}}}(f,b,_),b,_);E?.attributes&&Object.assign(S,E.attributes),(0,i._INTERNAL_captureLog)({level:v,message:E?.message||p||f&&(0,o.formatConsoleArgs)(f,b,_)||"",attributes:S})}}}const u={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},d={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentOpenAiClient:()=>y});var n=r(409),i=r(400),o=r(427),a=r(413),s=r(436),c=r(426),l=r(3264),u=r(3265),d=r(3268),p=r(3269),f=r(3270);function h(e,t){const r={[l.GEN_AI_SYSTEM_ATTRIBUTE]:"openai",[l.GEN_AI_OPERATION_NAME_ATTRIBUTE]:t,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const t=e[0],i=function(e){const t=[...Array.isArray(e.tools)?e.tools:[],...e.web_search_options&&"object"==typeof e.web_search_options?[{type:"web_search_options",...e.web_search_options}]:[]];if(0!==t.length)try{return JSON.stringify(t)}catch(e){return void(n.DEBUG_BUILD&&a.debug.error("Failed to serialize OpenAI tools:",e))}}(t);i&&(r[l.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=i),Object.assign(r,(0,f.extractRequestParameters)(t))}else r[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="unknown";return r}function m(e,t,r,n){if("embeddings"===r&&"input"in t){const r=t.input;if(null==r)return;if("string"==typeof r&&0===r.length)return;if(Array.isArray(r)&&0===r.length)return;return void e.setAttribute(l.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof r?r:JSON.stringify(r))}const i="input"in t?t.input:"messages"in t?t.messages:void 0;if(!i)return;if(Array.isArray(i)&&0===i.length)return;const{systemInstructions:o,filteredMessages:a}=(0,u.extractSystemInstructions)(i);o&&e.setAttribute(l.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,o),e.setAttribute(l.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,n?(0,u.getTruncatedJsonString)(a):(0,u.getJsonString)(a)),Array.isArray(a)?e.setAttribute(l.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,a.length):e.setAttribute(l.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,1)}function g(e,t="",r){return new Proxy(e,{get(e,n){const o=e[n],a=(0,u.buildMethodPath)(t,String(n)),y=d.OPENAI_METHOD_REGISTRY[a];return"function"==typeof o&&y?function(e,t,r,n,o){return function(...a){const d=r.operation||"unknown",g=h(a,d),y=g[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown",v=a[0],b=v&&"object"==typeof v&&!0===v.stream,_={name:`${d} ${y}`,op:`gen_ai.${d}`,attributes:g};if(b){let r;const l=(0,c.startSpanManual)(_,c=>(r=e.apply(n,a),o.recordInputs&&v&&m(c,v,d,(0,u.shouldEnableTruncation)(o.enableTruncation)),(async()=>{try{const e=await r;return(0,p.instrumentStream)(e,c,o.recordOutputs??!1)}catch(e){throw c.setStatus({code:s.SPAN_STATUS_ERROR,message:"internal_error"}),(0,i.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:t}}}),c.end(),e}})()));return(0,u.wrapPromiseWithMethods)(r,l,"auto.ai.openai")}let S;const E=(0,c.startSpan)(_,r=>(S=e.apply(n,a),o.recordInputs&&v&&m(r,v,d,(0,u.shouldEnableTruncation)(o.enableTruncation)),S.then(e=>((0,f.addResponseAttributes)(r,e,o.recordOutputs),e),e=>{throw(0,i.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:t}}}),e})));return(0,u.wrapPromiseWithMethods)(S,E,"auto.ai.openai")}}(o,a,y,e,r):"function"==typeof o?o.bind(e):o&&"object"==typeof o?g(o,a,r):o}})}function y(e,t){return g(e,"",(0,u.resolveAIRecordingOptions)(t))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{GEN_AI_AGENT_NAME_ATTRIBUTE:()=>C,GEN_AI_CONVERSATION_ID_ATTRIBUTE:()=>M,GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE:()=>j,GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE:()=>U,GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE:()=>H,GEN_AI_INPUT_MESSAGES_ATTRIBUTE:()=>T,GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE:()=>w,GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE:()=>B,GEN_AI_OPERATION_NAME_ATTRIBUTE:()=>E,GEN_AI_OUTPUT_MESSAGES_ATTRIBUTE:()=>x,GEN_AI_PIPELINE_NAME_ATTRIBUTE:()=>k,GEN_AI_PROMPT_ATTRIBUTE:()=>n,GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE:()=>R,GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE:()=>h,GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE:()=>
50f,GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE:()=>l,GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE:()=>c,GEN_AI_REQUEST_MODEL_ATTRIBUTE:()=>o,GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE:()=>u,GEN_AI_REQUEST_STREAM_ATTRIBUTE:()=>a,GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE:()=>s,GEN_AI_REQUEST_TOP_K_ATTRIBUTE:()=>p,GEN_AI_REQUEST_TOP_P_ATTRIBUTE:()=>d,GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE:()=>m,GEN_AI_RESPONSE_ID_ATTRIBUTE:()=>y,GEN_AI_RESPONSE_MODEL_ATTRIBUTE:()=>g,GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE:()=>v,GEN_AI_RESPONSE_STREAMING_ATTRIBUTE:()=>P,GEN_AI_RESPONSE_TEXT_ATTRIBUTE:()=>A,GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE:()=>I,GEN_AI_SYSTEM_ATTRIBUTE:()=>i,GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE:()=>O,GEN_AI_TOOL_CALL_ID_ATTRIBUTE:()=>V,GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE:()=>W,GEN_AI_TOOL_INPUT_ATTRIBUTE:()=>$,GEN_AI_TOOL_NAME_ATTRIBUTE:()=>z,GEN_AI_TOOL_OUTPUT_ATTRIBUTE:()=>q,GEN_AI_TOOL_TYPE_ATTRIBUTE:()=>G,GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE:()=>D,GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE:()=>N,GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE:()=>b,GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE:()=>F,GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE:()=>L,GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE:()=>_,GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE:()=>S});const n="gen_ai.prompt",i="gen_ai.system",o="gen_ai.request.model",a="gen_ai.request.stream",s="gen_ai.request.temperature",c="gen_ai.request.max_tokens",l="gen_ai.request.frequency_penalty",u="gen_ai.request.presence_penalty",d="gen_ai.request.top_p",p="gen_ai.request.top_k",f="gen_ai.request.encoding_format",h="gen_ai.request.dimensions",m="gen_ai.response.finish_reasons",g="gen_ai.response.model",y="gen_ai.response.id",v="gen_ai.response.stop_reason",b="gen_ai.usage.input_tokens",_="gen_ai.usage.output_tokens",S="gen_ai.usage.total_tokens",E="gen_ai.operation.name",w="sentry.sdk_meta.gen_ai.input.messages.original_length",T="gen_ai.input.messages",x="gen_ai.output.messages",O="gen_ai.system_instructions",A="gen_ai.response.text",R="gen_ai.request.available_tools",P="gen_ai.response.streaming",I="gen_ai.response.tool_calls",C="gen_ai.agent.name",k="gen_ai.pipeline.name",M="gen_ai.conversation.id",D="gen_ai.usage.cache_creation_input_tokens",N="gen_ai.usage.cache_read_input_tokens",L="gen_ai.usage.input_tokens.cache_write",F="gen_ai.usage.input_tokens.cached",B="gen_ai.invoke_agent",j="gen_ai.embeddings.input",U="gen_ai.embeddings",H="gen_ai.execute_tool",z="gen_ai.tool.name",V="gen_ai.tool.call.id",G="gen_ai.tool.type",$="gen_ai.tool.input",q="gen_ai.tool.output",W="gen_ai.tool.description"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{buildMethodPath:()=>d,endStreamSpan:()=>f,extractSystemInstructions:()=>g,getJsonString:()=>h,getTruncatedJsonString:()=>m,resolveAIRecordingOptions:()=>l,setTokenUsageAttributes:()=>p,shouldEnableTruncation:()=>u,wrapPromiseWithMethods:()=>y});var n=r(400),i=r(401),o=r(432),a=r(414),s=r(3264),c=r(3266);function l(e){const t=(0,i.getClient)()?.getDataCollectionOptions().genAI;return{...e,recordInputs:e?.recordInputs??t?.inputs??!1,recordOutputs:e?.recordOutputs??t?.outputs??!1}}function u(e){const t=(0,i.getClient)();return e??!(t&&(0,o.hasSpanStreamingEnabled)(t))}function d(e,t){return e?`${e}.${t}`:t}function p(e,t,r,n,i){if(void 0!==t&&e.setAttributes({[s.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:t}),void 0!==r&&e.setAttributes({[s.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:r}),void 0!==t||void 0!==r||void 0!==n||void 0!==i){const o=(t??0)+(r??0)+(n??0)+(i??0);e.setAttributes({[s.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:o})}}function f(e,t,r){if(!e.isRecording())return;const n={[s.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0};t.responseId&&(n[s.GEN_AI_RESPONSE_ID_ATTRIBUTE]=t.responseId),t.responseModel&&(n[s.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=t.responseModel),void 0!==t.promptTokens&&(n[s.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=t.promptTokens),void 0!==t.completionTokens&&(n[s.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=t.completionTokens),void 0!==t.totalTokens?n[s.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=t.totalTokens:void 0===t.promptTokens&&void 0===t.completionTokens&&void 0===t.cacheCreationInputTokens&&void 0===t.cacheReadInputTokens||(n[s.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=(t.promptTokens??0)+(t.completionTokens??0)+(t.cacheCreationInputTokens??0)+(t.cacheReadInputTokens??0)),t.finishReasons.length&&(n[s.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(t.finishReasons)),r&&t.responseTexts.length&&(n[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=t.responseTexts.join("")),r&&t.toolCalls.length&&(n[s.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(t.toolCalls)),e.setAttributes(n),e.end()}function h(e){return"string"==typeof e?e:JSON.stringify(e)}function m(e){if("string"==typeof e)return(0,c.truncateGenAiStringInput)(e);if(Array.isArray(e)){const t=(0,c.truncateGenAiMessages)(e);return JSON.stringify(t)}return JSON.stringify(e)}function g(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};const t=e.findIndex(e=>e&&"object"==typeof e&&"role"in e&&"system"===e.role);if(-1===t)return{systemInstructions:void 0,filteredMessages:e};const r=e[t],n="string"==typeof r.content?r.content:void 0!==r.content?JSON.stringify(r.content):void 0;if(!n)return{systemInstructions:void 0,filteredMessages:e};return{systemInstructions:JSON.stringify([{type:"text",content:n}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}}function y(e,t,r){return(0,a.isThenable)(e)?new Proxy(e,{get(e,i){const o=i in Promise.prototype||i===Symbol.toStringTag?t:e,a=Reflect.get(o,i);return"withResponse"===i&&"function"==typeof a?function(){return async function(e,t,r){const i=e.catch(e=>{throw(0,n.captureException)(e,{mechanism:{handled:!1,type:r}}),e}),o=await t,a=await i;return a&&"object"==typeof a&&"data"in a?{...a,data:o}:o}(a.call(e),t,r)}:"function"==typeof a?a.bind(o):a}}):t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_GEN_AI_MESSAGES_BYTE_LIMIT:()=>i,truncateGenAiMessages:()=>g,truncateGenAiStringInput:()=>y});var n=r(3267);const i=2e4,o=e=>(new TextEncoder).encode(e).length,a=e=>o(JSON.stringify(e));function s(e,t){if(o(e)<=t)return e;let r=0,n=e.length,i="";for(;r<=n;){const a=Math.floor((r+n)/2),s=e.slice(0,a);o(s)<=t?(i=s,r=a+1):n=a-1}return i}function c(e){return"string"==typeof e?e:"text"in e&&"string"==typeof e.text?e.text:""}function l(e,t){return"string"==typeof e?t:{...e,text:t}}function u(e){return null!==e&&"object"==typeof e&&"content"in e&&Array.isArray(e.content)}function d(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function p(e,t){const{key:r,items:n}=function(e){return"parts"in e&&Array.isArray(e.parts)?{key:"parts",items:e.parts}
50:"content"in e&&Array.isArray(e.content)?{key:"content",items:e.content}:{key:null,items:[]}}(e);if(null===r||0===n.length)return[];const i=n.map(e=>l(e,""));let u=t-a({...e,[r]:i});if(u<=0)return[];const d=[];for(const e of n){const t=c(e),r=o(t);if(!(r<=u)){if(0===d.length){const r=s(t,u);r&&d.push(l(e,r));break}break}d.push(e),u-=r}return d.length<=0?[]:[{...e,[r]:d}]}function f(e,t){if(!e)return[];if("string"==typeof e){const r=s(e,t);return r?[r]:[]}return"object"!=typeof e?[]:function(e){return null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content}(e)?function(e,t){const r={...e,content:""},n=t-a(r);if(n<=0)return[];const i=s(e.content,n);return[{...e,content:i}]}(e,t):u(e)||d(e)?p(e,t):[]}function h(e){return e.map(e=>{let t;return e&&"object"==typeof e&&(u(e)?t={...e,content:h(e.content)}:"content"in e&&(0,n.isContentMedia)(e.content)&&(t={...e,content:(0,n.stripInlineMediaFromSingleMessage)(e.content)}),d(e)&&(t={...t??e,parts:h(e.parts)}),(0,n.isContentMedia)(t)?t=(0,n.stripInlineMediaFromSingleMessage)(t):(0,n.isContentMedia)(e)&&(t=(0,n.stripInlineMediaFromSingleMessage)(e))),t??e})}function m(e,t){if(!Array.isArray(e)||0===e.length)return e;const r=t-2,n=h([e[e.length-1]]),i=n[0];return a(i)<=r?n:f(i,r)}function g(e){return m(e,i)}function y(e){return s(e,i)}},(e,t,r)=>{"use strict";function n(e){return!(!e||"object"!=typeof e)&&(function(e){return"type"in e&&"string"==typeof e.type&&"source"in e&&n(e.source)}(e)||o(e)||function(e){return"image_url"in e&&("string"==typeof e.image_url?e.image_url.startsWith("data:"):i(e))}(e)||a(e)||s(e)||function(e){return"media_type"in e&&"string"==typeof e.media_type&&"data"in e}(e)||function(e){return"type"in e&&"file"===e.type&&"mediaType"in e&&"string"==typeof e.mediaType&&"data"in e&&"string"==typeof e.data&&!e.data.startsWith("http://")&&!e.data.startsWith("https://")}(e)||function(e){return"type"in e&&"image"===e.type&&"image"in e&&"string"==typeof e.image&&!e.image.startsWith("http://")&&!e.image.startsWith("https://")}(e)||function(e){return"type"in e&&("blob"===e.type||"base64"===e.type)}(e)||function(e){return"b64_json"in e}(e)||function(e){return"type"in e&&"result"in e&&"image_generation"===e.type}(e)||function(e){return"uri"in e&&"string"==typeof e.uri&&e.uri.startsWith("data:")}(e))}function i(e){return"image_url"in e&&!!e.image_url&&"object"==typeof e.image_url&&"url"in e.image_url&&"string"==typeof e.image_url.url&&e.image_url.url.startsWith("data:")}function o(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function a(e){return"type"in e&&"input_audio"===e.type&&"input_audio"in e&&!!e.input_audio&&"object"==typeof e.input_audio&&"data"in e.input_audio&&"string"==typeof e.input_audio.data}function s(e){return"type"in e&&"file"===e.type&&"file"in e&&!!e.file&&"object"==typeof e.file&&"file_data"in e.file&&"string"==typeof e.file.file_data}r.r(t),r.d(t,{isContentMedia:()=>n,stripInlineMediaFromSingleMessage:()=>u});const c="[Blob substitute]",l=["image_url","data","content","b64_json","result","uri","image"];function u(e){const t={...e};n(t.source)&&(t.source=u(t.source)),o(e)&&(t.inlineData={...e.inlineData,data:c}),i(e)&&(t.image_url={...e.image_url,url:c}),a(e)&&(t.input_audio={...e.input_audio,data:c}),s(e)&&(t.file={...e.file,file_data:c});for(const e of l)"string"==typeof t[e]&&(t[e]=c);return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OPENAI_INTEGRATION_NAME:()=>n,OPENAI_METHOD_REGISTRY:()=>i,RESPONSES_TOOL_CALL_EVENT_TYPES:()=>o,RESPONSE_EVENT_TYPES:()=>a});const n="OpenAI",i={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},o=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],a=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...o]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentStream:()=>d});var n=r(400),i=r(436),o=r(3265),a=r(3268),s=r(3270);function c(e,t){for(const r of e){const e=r.index;if(void 0!==e&&r.function)if(e in t.chatCompletionToolCalls){const n=t.chatCompletionToolCalls[e];r.function.arguments&&n?.function&&(n.function.arguments+=r.function.arguments)}else t.chatCompletionToolCalls[e]={...r,function:{name:r.function.name,arguments:r.function.arguments||""}}}}function l(e,t,r){t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens);for(const n of e.choices??[])r&&(n.delta?.content&&t.responseTexts.push(n.delta.content),n.delta?.tool_calls&&c(n.delta.tool_calls,t)),n.finish_reason&&t.finishReasons.push(n.finish_reason)}function u(e,t,r,o){if(!e||"object"!=typeof e)return void t.eventTypes.push("unknown:non-object");
50if(e instanceof Error)return o.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),void(0,n.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});if(!("type"in e))return;const s=e;if(a.RESPONSE_EVENT_TYPES.includes(s.type)){if(r&&("response.output_item.done"===s.type&&"item"in s&&t.responsesApiToolCalls.push(s.item),"response.output_text.delta"===s.type&&"delta"in s&&s.delta))t.responseTexts.push(s.delta);else if("response"in s){const{response:e}=s;t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,e.usage&&(t.promptTokens=e.usage.input_tokens,t.completionTokens=e.usage.output_tokens,t.totalTokens=e.usage.total_tokens),e.status&&t.finishReasons.push(e.status),r&&e.output_text&&t.responseTexts.push(e.output_text)}}else t.eventTypes.push(s.type)}async function*d(e,t,r){const n={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const i of e)(0,s.isChatCompletionChunk)(i)?l(i,n,r):(0,s.isResponsesApiStreamEvent)(i)&&u(i,n,r,t),yield i}finally{const e=[...Object.values(n.chatCompletionToolCalls),...n.responsesApiToolCalls];(0,o.endStreamSpan)(t,{...n,toolCalls:e},r)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addResponseAttributes:()=>a,extractRequestParameters:()=>s,isChatCompletionChunk:()=>o,isResponsesApiStreamEvent:()=>i});var n=r(3264);function i(e){return null!==e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.startsWith("response.")}function o(e){return null!==e&&"object"==typeof e&&"object"in e&&"chat.completion.chunk"===e.object}function a(e,t,r){if(!t||"object"!=typeof t)return;const i=t,o={};if("string"==typeof i.id&&(o[n.GEN_AI_RESPONSE_ID_ATTRIBUTE]=i.id),"string"==typeof i.model&&(o[n.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=i.model),"conversation"===i.object&&"string"==typeof i.id&&(o[n.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=i.id),i.usage&&"object"==typeof i.usage){const e=i.usage,t=e.prompt_tokens??e.input_tokens;"number"==typeof t&&(o[n.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=t);const r=e.completion_tokens??e.output_tokens;"number"==typeof r&&(o[n.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=r),"number"==typeof e.total_tokens&&(o[n.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=e.total_tokens)}if(Array.isArray(i.choices)){const e=i.choices,t=e.map(e=>e.finish_reason).filter(e=>"string"==typeof e);if(t.length>0&&(o[n.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(t)),r){const t=e.map(e=>{const t=e.message;return t?.content||""});o[n.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=JSON.stringify(t);const r=e.map(e=>{const t=e.message;return t?.tool_calls}).filter(e=>Array.isArray(e)&&e.length>0).flat();r.length>0&&(o[n.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(r))}}if("string"==typeof i.status&&(o[n.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]||(o[n.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify([i.status]))),r&&("string"!=typeof i.output_text||o[n.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]||(o[n.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=i.output_text),Array.isArray(i.output)&&i.output.length>0&&!o[n.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE])){const e=i.output.filter(e=>"function_call"===e?.type);e.length>0&&(o[n.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(e))}e.setAttributes(o)}function s(e){const t={[n.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:e.model??"unknown"};"temperature"in e&&(t[n.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=e.temperature),"top_p"in e&&(t[n.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=e.top_p),"frequency_penalty"in e&&(t[n.GEN_AI_REQUEST_FREQUENCY_PENA
50LTY_ATTRIBUTE]=e.frequency_penalty),"presence_penalty"in e&&(t[n.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=e.presence_penalty),"stream"in e&&(t[n.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=e.stream),"encoding_format"in e&&(t[n.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=e.encoding_format),"dimensions"in e&&(t[n.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=e.dimensions);const r=function(e){return"conversation"in e&&"string"==typeof e.conversation?e.conversation:"previous_response_id"in e&&"string"==typeof e.previous_response_id?e.previous_response_id:void 0}(e);return r&&(t[n.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=r),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentAnthropicAiClient:()=>y});var n=r(400),i=r(427),o=r(436),a=r(426),s=r(3264),c=r(3265),l=r(3272),u=r(3273),d=r(3274);function p(e,t,r){const n=(0,d.messagesFromParams)(t);(0,d.setMessagesAttribute)(e,n,r),"prompt"in t&&e.setAttributes({[s.GEN_AI_PROMPT_ATTRIBUTE]:JSON.stringify(t.prompt)})}function f(e,t,r){t&&"object"==typeof t&&("type"in t&&"error"===t.type?(0,d.handleResponseError)(e,t):(r&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:t.content.map(e=>e.text).filter(e=>!!e).join("")});const r=[];for(const e of t.content)"tool_use"!==e.type&&"server_tool_use"!==e.type||r.push(e);r.length>0&&e.setAttributes({[s.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(r)})}"completion"in t&&e.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:t.completion}),"input_tokens"in t&&e.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:JSON.stringify(t.input_tokens)})}(e,t),function(e,t){"id"in t&&"model"in t&&(e.setAttributes({[s.GEN_AI_RESPONSE_ID_ATTRIBUTE]:t.id,[s.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:t.model}),"usage"in t&&t.usage&&(0,c.setTokenUsageAttributes)(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}(e,t)))}function h(e,t,r){throw(0,n.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:r}}}),t.isRecording()&&(t.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),t.end()),e}function m(e,t,r,o,l){return new Proxy(e,{apply(d,m,g){const y=r.operation||"unknown",v=function(e,t,r){const n={[s.GEN_AI_SYSTEM_ATTRIBUTE]:"anthropic",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:r,[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const t=e[0];t.tools&&Array.isArray(t.tools)&&(n[s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(t.tools)),n[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=t.model??"unknown","temperature"in t&&(n[s.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=t.temperature),"top_p"in t&&(n[s.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=t.top_p),"stream"in t&&(n[s.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=t.stream),"top_k"in t&&(n[s.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=t.top_k),"frequency_penalty"in t&&(n[s.GEN_AI_REQUEST_FREQUENCY_PENA
50LTY_ATTRIBUTE]=t.frequency_penalty),"max_tokens"in t&&(n[s.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=t.max_tokens)}else n[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="models.retrieve"===t||"models.get"===t?e[0]:"unknown";return n}(g,t,y),b=v[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown",_="object"==typeof g[0]?g[0]:void 0,S=Boolean(_?.stream),E=!0===r.streaming;if(S||E)return function(e,t,r,n,i,o,l,d,f,m,g){const y={name:`${o} ${i[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown"}`,op:`gen_ai.${o}`,attributes:i};if(m&&!g){let t;const i=(0,a.startSpanManual)(y,i=>(t=e.apply(r,n),f.recordInputs&&d&&p(i,d,(0,c.shouldEnableTruncation)(f.enableTruncation)),(async()=>{try{const e=await t;return(0,u.instrumentAsyncIterableStream)(e,i,f.recordOutputs??!1)}catch(e){return h(e,i,l)}})()));return(0,c.wrapPromiseWithMethods)(t,i,"auto.ai.anthropic")}return(0,a.startSpanManual)(y,e=>{try{f.recordInputs&&d&&p(e,d,(0,c.shouldEnableTruncation)(f.enableTruncation));const i=t.apply(r,n);return(0,u.instrumentMessageStream)(i,e,f.recordOutputs??!1)}catch(t){return h(t,e,l)}})}(e,d,o,g,v,y,t,_,l,S,E);let w;const T=(0,a.startSpan)({name:`${y} ${b}`,op:`gen_ai.${y}`,attributes:v},e=>(w=d.apply(o,g),l.recordInputs&&_&&p(e,_,(0,c.shouldEnableTruncation)(l.enableTruncation)),w.then(t=>(f(e,t,l.recordOutputs),t),e=>{throw(0,n.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:t}}}),e})));return(0,c.wrapPromiseWithMethods)(w,T,"auto.ai.anthropic")}})}function g(e,t="",r){return new Proxy(e,{get(e,n){const i=e[n],o=(0,c.buildMethodPath)(t,String(n)),a=l.ANTHROPIC_METHOD_REGISTRY[o];return"function"==typeof i&&a?m(i,o,a,e,r):"function"==typeof i?i.bind(e):i&&"object"==typeof i?g(i,o,r):i}})}function y(e,t){return g(e,"",(0,c.resolveAIRecordingOptions)(t))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ANTHROPIC_AI_INTEGRATION_NAME:()=>n,ANTHROPIC_METHOD_REGISTRY:()=>i});const n="Anthropic_AI",i={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentAsyncIterableStream:()=>c,instrumentMessageStream:()=>l});var n=r(400),i=r(436),o=r(3265),a=r(3274);function s(e,t,r,o){if(!e||"object"!=typeof e)return;const s=function(e,t){return"type"in e&&"string"==typeof e.type&&"error"===e.type&&(t.setStatus({code:i.SPAN_STATUS_ERROR,message:(0,a.mapAnthropicErrorToStatusMessage)(e.error?.type)}),(0,n.captureException)(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0)}(e,o);s||(function(e,t){if("message_delta"===e.type&&e.usage&&"output_tokens"in e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.message){const r=e.message;r.id&&(t.responseId=r.id),r.model&&(t.responseModel=r.model),r.stop_reason&&t.finishReasons.push(r.stop_reason),r.usage&&("number"==typeof r.usage.input_tokens&&(t.promptTokens=r.usage.input_tokens),"number"==typeof r.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=r.usage.cache_creation_input_tokens),"number"==typeof r.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=r.usage.cache_read_input_tokens))}}(e,t),function(e,t){"content_block_start"===e.type&&"number"==typeof e.index&&e.content_block&&("tool_use"!==e.content_block.type&&"server_tool_use"!==e.content_block.type||(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]}))}(e,t),function(e,t,r){if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){const r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}r&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}}(e,t,r),function(e,t){if("content_block_stop"!==e.type||"number"!=typeof e.index)return;const r=t.activeToolBlocks[e.index];if(!r)return;const n=r.inputJsonParts.join("");let i;try{i=n?JSON.parse(n):{}}catch{i={__unparsed:n}}t.toolCalls.push({type:"tool_use",id:r.id,name:r.name,input:i}),delete t.activeToolBlocks[e.index]}(e,t))}async function*c(e,t,r){const n={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const i of e)s(i,n,r,t),yield i}finally{(0,o.endStreamSpan)(t,n,r)}}function l(e,t,r){const a={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",e=>{s(e,a,r,t)}),e.on("message",()=>{(0,o.endStreamSpan)(t,a,r)}),e.on("error",e=>{(0,n.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),t.end())}),e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{handleResponseError:()=>u,mapAnthropicErrorToStatusMessage:()=>l,messagesFromParams:()=>d,setMessagesAttribute:()=>s});var n=r(400),i=r(436),o=r(3264),a=r(3265);function s(e,t,r){if(Array.isArray(t)&&0===t.length)return;const{systemInstructions:n,filteredMessages:i}=(0,a.extractSystemInstructions)(t);n&&e.setAttributes({[o.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE]:n});const s=Array.isArray(i)?i.length:1;
50e.setAttributes({[o.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:r?(0,a.getTruncatedJsonString)(i):(0,a.getJsonString)(i),[o.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:s})}const c={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function l(e){return e&&c[e]||"internal_error"}function u(e,t){t.error&&(e.setStatus({code:i.SPAN_STATUS_ERROR,message:l(t.error.type)}),(0,n.captureException)(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function d(e){const{system:t,messages:r,input:n}=e,i="string"==typeof t?[{role:"system",content:e.system}]:[],o=Array.isArray(n)?n:null!=n?[n]:void 0,a=Array.isArray(r)?r:null!=r?[r]:[];return[...i,...o??a]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{extractModel:()=>f,instrumentGoogleGenAIClient:()=>v});var n=r(400),i=r(427),o=r(436),a=r(426),s=r(429),c=r(3264),l=r(3265),u=r(3276),d=r(3277),p=r(3278);function f(e,t){if("model"in e&&"string"==typeof e.model)return e.model;if(t&&"object"==typeof t){const e=t;if("model"in e&&"string"==typeof e.model)return e.model;if("modelVersion"in e&&"string"==typeof e.modelVersion)return e.modelVersion}return"unknown"}function h(e,t,r){const n={[c.GEN_AI_SYSTEM_ATTRIBUTE]:u.GOOGLE_GENAI_SYSTEM_NAME,[c.GEN_AI_OPERATION_NAME_ATTRIBUTE]:e,[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.google_genai"};if(t){if(n[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=f(t,r),"config"in t&&"object"==typeof t.config&&t.config){const e=t.config;if(Object.assign(n,function(e){const t={};return"temperature"in e&&"number"==typeof e.temperature&&(t[c.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=e.temperature),"topP"in e&&"number"==typeof e.topP&&(t[c.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=e.topP),"topK"in e&&"number"==typeof e.topK&&(t[c.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=e.topK),"maxOutputTokens"in e&&"number"==typeof e.maxOutputTokens&&(t[c.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=e.maxOutputTokens),"frequencyPenalty"in e&&"number"==typeof e.frequencyPenalty&&(t[c.GEN_AI_REQUEST_FREQUENCY_PENA
50LTY_ATTRIBUTE]=e.frequencyPenalty),"presencePenalty"in e&&"number"==typeof e.presencePenalty&&(t[c.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=e.presencePenalty),t}(e)),"tools"in e&&Array.isArray(e.tools)){const t=e.tools.flatMap(e=>e.functionDeclarations);n[c.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(t)}}}else n[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=f({},r);return n}function m(e,t,r,n){if(r){const r=t.contents;return void(null!=r&&e.setAttribute(c.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof r?r:JSON.stringify(r)))}const i=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&i.push(...(0,p.contentUnionToMessages)(t.config.systemInstruction,"system")),"history"in t&&i.push(...(0,p.contentUnionToMessages)(t.history,"user")),"contents"in t&&i.push(...(0,p.contentUnionToMessages)(t.contents,"user")),"message"in t&&i.push(...(0,p.contentUnionToMessages)(t.message,"user")),Array.isArray(i)&&i.length){const{systemInstructions:t,filteredMessages:r}=(0,l.extractSystemInstructions)(i);t&&e.setAttribute(c.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,t);const o=Array.isArray(r)?r.length:0;e.setAttributes({[c.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:o,[c.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:n?(0,l.getTruncatedJsonString)(r):(0,l.getJsonString)(r)})}}function g(e,t,r,i,u){const p="embeddings"===r.operation;return new Proxy(e,{apply(e,f,g){const y=r.operation||"unknown",v=g[0],b=h(y,v,i),_=b[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown";return r.streaming?(0,a.startSpanManual)({name:`${y} ${_}`,op:`gen_ai.${y}`,attributes:b},async r=>{try{u.recordInputs&&v&&m(r,v,p,(0,l.shouldEnableTruncation)(u.enableTruncation));const t=await e.apply(i,g);return(0,d.instrumentStream)(t,r,Boolean(u.recordOutputs))}catch(e){throw r.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),r.end(),e}}):(0,a.startSpan)({name:`${y} ${_}`,op:`gen_ai.${y}`,attributes:b},r=>(u.recordInputs&&v&&m(r,v,p,(0,l.shouldEnableTruncation)(u.enableTruncation)),(0,s.handleCallbackErrors)(()=>e.apply(i,g),e=>{(0,n.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},e=>{p||function(e,t,r){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(c.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){const r=t.usageMetadata;"number"==typeof r.promptTokenCount&&e.setAttributes({[c.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:r.promptTokenCount}),"number"==typeof r.candidatesTokenCount&&e.setAttributes({[c.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:r.candidatesTokenCount}),"number"==typeof r.totalTokenCount&&e.setAttributes({[c.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:r.totalTokenCount})}if(r&&Array.isArray(t.candidates)&&t.candidates.length>0){const r=t.candidates.map(e=>e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map(e=>"string"==typeof e.text?e.text:"").filter(e=>e.length>0).join(""):"").filter(e=>e.length>0);r.length>0&&e.setAttributes({[c.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:r.join("")})}if(r&&t.functionCalls){const r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[c.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(r)})}}}(r,e,u.recordOutputs)})))}})}function y(e,t="",r){return new Proxy(e,{get:(e,n,i)=>{const o=Reflect.get(e,n,i),a=(0,l.buildMethodPath)(t,String(n)),s=u.GOOGLE_GENAI_METHOD_REGISTRY[a];if("function"==typeof o&&s){const t=s.operation?g(o,a,s,e,r):o.bind(e);return s.proxyResultPath?function(...e){const n=t(...e);return n&&"object"==typeof n?y(n,s.proxyResultPath,r):n}:t}return"function"==typeof o?o.bind(e):o&&"object"==typeof o?y(o,a,r):o}})}function v(e,t){return y(e,"",(0,l.resolveAIRecordingOptions)(t))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{GOOGLE_GENAI_INTEGRATION_NAME:()=>n,GOOGLE_GENAI_METHOD_REGISTRY:()=>i,GOOGLE_GENAI_SYSTEM_NAME:()=>o});const n="Google_GenAI",i={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}},o="google_genai"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentStream:()=>s});var n=r(400),i=r(436),o=r(3265);function a(e,t,r,o){e&&!function(e,t){const r=e?.promptFeedback;if(r?.blockReason){const e=r.blockReasonMessage??r.blockReason;return t.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,o)&&(function(e,t){"string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion);const r=e.usageMetadata;r&&("number"==typeof r.promptTokenCount&&(t.promptTokens=r.promptTokenCount),"number"==typeof r.candidatesTokenCount&&(t.completionTokens=r.candidatesTokenCount),"number"==typeof r.totalTokenCount&&(t.totalTokens=r.totalTokenCount))}(e,t),function(e,t,r){Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(const n of e.candidates??[]){n?.finishReason&&!t.finishReasons.includes(n.finishReason)&&t.finishReasons.push(n.finishReason);for(const e of n?.content?.parts??[])r&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}}(e,t,r))}async function*s(e,t,r){const n={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const i of e)a(i,n,r,t),yield i}finally{(0,o.endStreamSpan)(t,n,r)}}},(e,t,r)=>{"use strict";function n(e,t="user"){return"string"==typeof e?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>n(e,t)):"object"==typeof e&&e?"role"in e&&"string"==typeof e.role?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]:[]}r.r(t),r.d(t,{contentUnionToMessages:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createLangChainCallbackHandler:()=>d});var n=r(400),i=r(427),o=r(436),a=r(426),s=r(3264),c=r(3265),l=r(3280),u=r(3281);function d(e={}){const{recordInputs:t,recordOutputs:r}=(0,c.resolveAIRecordingOptions)(e),d=(0,c.shouldEnableTruncation)(e.enableTruncation),p=new Map,f=e=>{const t=p.get(e);t?.isRecording()&&(t.end(),p.delete(e))}
50,h={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(e,r,n,o,c,l,f,h){const m=(0,u.getInvocationParams)(l),g=(0,u.extractLLMRequestAttributes)(e,r,t,d,m,f),y=g[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE],v=g[s.GEN_AI_OPERATION_NAME_ATTRIBUTE];(0,a.startSpanManual)({name:`${v} ${y}`,op:"gen_ai.chat",attributes:{...(0,u.getAgentNameFromMetadata)(f),...g,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(p.set(n,e),e))},handleChatModelStart(e,r,n,o,c,l,f,h){const m=(0,u.getInvocationParams)(l),g=(0,u.extractChatModelRequestAttributes)(e,r,t,d,m,f),y=(0,u.extractToolDefinitions)(c);y&&(g[s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=y);const v=g[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE],b=g[s.GEN_AI_OPERATION_NAME_ATTRIBUTE];(0,a.startSpanManual)({name:`${b} ${v}`,op:"gen_ai.chat",attributes:{...(0,u.getAgentNameFromMetadata)(f),...g,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(p.set(n,e),e))},handleLLMEnd(e,t,n,i,o){const a=p.get(t);if(a?.isRecording()){const n=(0,u.extractLlmResponseAttributes)(e,r);n&&a.setAttributes(n),f(t)}},handleLLMError(e,t){const r=p.get(t);r?.isRecording()&&(r.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),f(t)),(0,n.captureException)(e,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.llm_error_handler`}})},handleChainStart(e,r,n,o,s,c,l,u){if(c?.__sentry_langgraph__)return;const d=u||e.name||"unknown_chain",f={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.langchain","langchain.chain.name":d};t&&(f["langchain.chain.inputs"]=JSON.stringify(r)),(0,a.startSpanManual)({name:`chain ${d}`,op:"gen_ai.invoke_agent",attributes:{...f,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent"}},e=>(p.set(n,e),e))},handleChainEnd(e,t){const n=p.get(t);n?.isRecording()&&(r&&n.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),f(t))},handleChainError(e,t){const r=p.get(t);r?.isRecording()&&(r.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),f(t)),(0,n.captureException)(e,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.chain_error_handler`}})},handleToolStart(e,r,n,o,c,d,f){if(d?.__sentry_langgraph__)return;const h=f||e.name||"unknown_tool",m={...(0,u.getAgentNameFromMetadata)(d),[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGCHAIN_ORIGIN,[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[s.GEN_AI_TOOL_NAME_ATTRIBUTE]:h};t&&(m[s.GEN_AI_TOOL_INPUT_ATTRIBUTE]=r),(0,a.startSpanManual)({name:`execute_tool ${h}`,op:"gen_ai.execute_tool",attributes:{...m,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.execute_tool"}},e=>(p.set(n,e),e))},handleToolEnd(e,t){const n=p.get(t);if(n?.isRecording()){if(r){const t=e&&"object"==typeof e&&"content"in e?e.content:e;n.setAttributes({[s.GEN_AI_TOOL_OUTPUT_ATTRIBUTE]:"string"==typeof t?t:JSON.stringify(t)})}f(t)}},handleToolError(e,t){const r=p.get(t);r?.isRecording()&&(r.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),f(t)),(0,n.captureException)(e,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.tool_error_handler`}})},copy:()=>h,toJSON:()=>({lc:1,type:"not_implemented",id:h.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:h.lc_id})};return h}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LANGCHAIN_INTEGRATION_NAME:()=>n,LANGCHAIN_ORIGIN:()=>i,ROLE_MAP:()=>o});const n="LangChain",i="auto.ai.langchain",o={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_INTERNAL_mergeLangChainCallbackHandler:()=>x,extractChatModelRequestAttributes:()=>b,extractLLMRequestAttributes:()=>v,extractLlmResponseAttributes:()=>_,extractToolDefinitions:()=>E,getAgentNameFromMetadata:()=>S,getInvocationParams:()=>h,normalizeLangChainMessages:()=>m});var n=r(427),i=r(3264),o=r(3267),a=r(3265),s=r(3280);const c=(e,t,r)=>{null!=r&&(e[t]=r)},l=(e,t,r)=>{const n=Number(r);Number.isNaN(n)||(e[t]=n)};function u(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function d(e){if(Array.isArray(e))try{const t=e.map(e=>e&&"object"==typeof e&&(0,o.isContentMedia)(e)?(0,o.stripInlineMediaFromSingleMessage)(e):e);return JSON.stringify(t)}catch{return String(e)}return u(e)}function p(e){const t=e.toLowerCase();return s.ROLE_MAP[t]??t}function f(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function h(e){if(e&&!Array.isArray(e))return e.invocation_params}function m(e){return e.map(e=>{const t=e._getType;if("function"==typeof t){return{role:p(t.call(e)),content:d(e.content)}}if(1===e.lc&&e.kwargs){const t=e.id,r=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:p("string"==typeof r?f(r):"user"),content:d(e.kwargs?.content)}}if(e.type){return{role:p(String(e.type).toLowerCase()),content:d(e.content)}}if(e.role)return{role:p(String(e.role)),content:d(e.content)};const r=e.constructor?.name;return r&&"Object"!==r?{role:p(f(r)),content:d(e.content)}:{role:"user",content:d(e.content)}})}function g(e,t,r){const n={},o="kwargs"in e?e.kwargs:void 0,a=t?.temperature??r?.ls_temperature??o?.temperature;l(n,i.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE,a);const s=t?.max_tokens??r?.ls_max_tokens??o?.max_tokens;l(n,i.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE,s);const u=t?.top_p??o?.top_p;l(n,i.GEN_AI_REQUEST_TOP_P_ATTRIBUTE,u);const d=t?.frequency_penalty;
50l(n,i.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE,d);const p=t?.presence_penalty;return l(n,i.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE,p),t&&"stream"in t&&c(n,i.GEN_AI_REQUEST_STREAM_ATTRIBUTE,Boolean(t.stream)),n}function y(e,t,r,o,a){return{[i.GEN_AI_SYSTEM_ATTRIBUTE]:u(e??"langchain"),[i.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"chat",[i.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:u(t),[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:s.LANGCHAIN_ORIGIN,...g(r,o,a)}}function v(e,t,r,n,o,s){const l=s?.ls_provider,u=y(l,o?.model??s?.ls_model_name??"unknown",e,o,s);if(r&&Array.isArray(t)&&t.length>0){c(u,i.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,t.length);const e=t.map(e=>({role:"user",content:e}));c(u,i.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,n?(0,a.getTruncatedJsonString)(e):(0,a.getJsonString)(e))}return u}function b(e,t,r,n,o,s){const l=y(s?.ls_provider??e.id?.[2],o?.model??s?.ls_model_name??"unknown",e,o,s);if(r&&Array.isArray(t)&&t.length>0){const e=m(t.flat()),{systemInstructions:r,filteredMessages:o}=(0,a.extractSystemInstructions)(e);r&&c(l,i.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,r);const s=Array.isArray(o)?o.length:0;c(l,i.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,s),c(l,i.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,n?(0,a.getTruncatedJsonString)(o):(0,a.getJsonString)(o))}return l}function _(e,t){if(!e)return;const r={};if(Array.isArray(e.generations)){const n=e.generations.flat().map(e=>e.generationInfo?.finish_reason?e.generationInfo.finish_reason:e.generation_info?.finish_reason?e.generation_info.finish_reason:null).filter(e=>"string"==typeof e);if(n.length>0&&c(r,i.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,u(n)),function(e,t){const r=[],n=e.flat();for(const e of n){const t=e.message,n=t?.tool_calls;if(Array.isArray(n)&&n.length>0)r.push(...n);else{const t=e.message?.content;if(Array.isArray(t))for(const e of t){const t=e;"tool_use"===t.type&&r.push(t)}}}r.length>0&&c(t,i.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,u(r))}(e.generations,r),t){const t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&c(r,i.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,u(t))}}!function(e,t){if(!e)return;const r=e.tokenUsage,n=e.usage;if(r)l(t,i.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,r.promptTokens),l(t,i.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,r.completionTokens),l(t,i.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,r.totalTokens);else if(n){l(t,i.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,n.input_tokens),l(t,i.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,n.output_tokens);const e=Number(n.input_tokens),r=Number(n.output_tokens),o=(Number.isNaN(e)?0:e)+(Number.isNaN(r)?0:r);o>0&&l(t,i.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,o),void 0!==n.cache_creation_input_tokens&&l(t,i.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE,n.cache_creation_input_tokens),void 0!==n.cache_read_input_tokens&&l(t,i.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE,n.cache_read_input_tokens)}}(e.llmOutput,r);const n=e.llmOutput,o=e.generations?.[0]?.[0],a=o?.message,s=n?.model_name??n?.model??a?.response_metadata?.model_name;s&&c(r,i.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,s);const d=n?.id??a?.id;d&&c(r,i.GEN_AI_RESPONSE_ID_ATTRIBUTE,d);const p=n?.stop_reason??a?.response_metadata?.finish_reason;return p&&c(r,i.GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE,u(p)),r}function S(e){const t={},r=e?.lc_agent_name;return"string"==typeof r&&(t[i.GEN_AI_AGENT_NAME_ATTRIBUTE]=r),t}function E(e){const t=e?.invocation_params?.tools??e?.options?.tools;if(!Array.isArray(t)||0===t.length)return;const r=t.map(e=>{const t=e.function;return{type:"function",name:e.name??t?.name??"",description:e.description??t?.description}});return JSON.stringify(r)}function w(e){return"object"==typeof e&&"SentryCallbackHandler"===e?.name}function T(e){return e.some(w)}function x(e,t){if(!e)return[t];if(function(e){if(!e||"object"!=typeof e)return!1;const t=e;return"function"==typeof t.addHandler&&"function"==typeof t.copy}(e)){if(T(e.handlers??[]))return e;const r=e.copy();return r.addHandler(t,!0),r}const r=Array.isArray(e)?e:[e];return T(r)?e:[...r,t]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentCreateReactAgent:()=>y,instrumentLangGraph:()=>v,instrumentStateGraphCompile:()=>m});var n=r(400),i=r(427),o=r(436),a=r(426),s=r(3264),c=r(3265),l=r(3279),u=r(3281),d=r(3283),p=r(3284);let f=!1;const h="__sentry_patched__";function m(e,t){if(Object.prototype.hasOwnProperty.call(e,h))return e;const r=(0,l.createLangChainCallbackHandler)(t),c=new Proxy(e,{apply:(e,c,l)=>f?Reflect.apply(e,c,l):(0,a.startSpan)({op:"gen_ai.create_agent",name:"create_agent",attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:d.LANGGRAPH_ORIGIN,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.create_agent",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"create_agent"}},i=>{try{const n=Reflect.apply(e,c,l),o=l.length>0?l[0]:{};o?.name&&"string"==typeof o.name&&(i.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,o.name),i.updateName(`create_agent ${o.name}`));const a=n.invoke;return a&&"function"==typeof a&&(n.invoke=g(a.bind(n),n,o,t,void 0,r)),n}catch(e){throw i.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})});return Object.defineProperty(c,h,{value:!0,enumerable:!1}),c}function g(e,t,r,l,f,h){return new Proxy(e,{apply(e,m,g){const y=f?.modelName??f?.model;return(0,a.startSpan)({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:d.LANGGRAPH_ORIGIN,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:s.GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE,[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"invoke_agent"}},async i=>{try{const n=r?.name;n&&"string"==typeof n&&(i.setAttribute(s.GEN_AI_PIPELINE_NAME_ATTRIBUTE,n),i.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,n),i.updateName(`invoke_agent ${n}`)),y&&i.setAttribute(s.GEN_AI_REQUEST_MODEL_ATTRIBUTE,y);const o=g.length>1?g[1]:void 0,a=o?.configurable,d=a?.thread_id;if(d&&"string"==typeof d&&i.setAttribute(s.GEN_AI_CONVERSATION_ID_ATTRIBUTE,d),h){const e=g[1]??{};g[1]=e;const t=e.metadata??{};e.metadata={...t,__sentry_langgraph__:!0,..."string"==typeof n?{lc_agent_name:n}:{}},e.callbacks=(0,u._INTERNAL_mergeLangChainCallbackHandler)(e.callbacks,h)}const f=(0,p.extractToolsFromCompiledGraph)(t);f&&i.setAttribute(s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE,JSON.stringify(f));const v=l.recordInputs,b=l.recordOutputs,_=g.length>0?g[0]?.messages??[]:[];if(_&&v){const e=(0,u.normalizeLangChainMessages)(_),{systemInstructions:t,filteredMessages:r}=(0,c.extractSystemInstructions)(e);t&&i.setAttribute(s.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,t);const n=(0,c.shouldEnableTruncation)(l.enableTruncation),o=Array.isArray(r)?r.length:0;i.setAttributes({[s.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:n?(0,c.getTruncatedJsonString)(r):(0,c.getJsonString)(r),[s.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:o})}const S=await Reflect.apply(e,m,g);return b&&(0,p.setResponseAttributes)(i,_??null,S),S}catch(e){throw i.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}})}function y(e,t){if(Object.prototype.hasOwnProperty.call(e,h))return e;const r=(0,c.resolveAIRecordingOptions)(t),n=(0,l.createLangChainCallbackHandler)(r),i=new Proxy(e,{apply(e,t,i){const o=(0,p.extractLLMFromParams)(i),a=(0,p.extractAgentNameFromParams)(i),s=i[0];let c;s&&Array.isArray(s.tools)&&s.tools.length>0&&(0,p.wrapToolsWithSpans)(s.tools,r,a??void 0),f=!0;try{c=Reflect.apply(e,t,i)}finally{f=!1}const l=c.invoke;if(l&&"function"==typeof l){const e={};a&&(e.name=a),c.invoke=g(l.bind(c),c,e,r,o,n)}return c}});return Object.defineProperty(i,h,{value:!0,enumerable:!1}),i}function v(e,t){return e.compile=m(e.compile,(0,c.resolveAIRecordingOptions)(t)),e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LANGGRAPH_INTEGRATION_NAME:()=>
50n,LANGGRAPH_ORIGIN:()=>i});const n="LangGraph",i="auto.ai.langgraph"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{extractAgentNameFromParams:()=>d,extractLLMFromParams:()=>u,extractModelMetadata:()=>m,extractTokenUsageFromMessage:()=>h,extractToolCalls:()=>f,extractToolsFromCompiledGraph:()=>g,setResponseAttributes:()=>y,wrapToolsWithSpans:()=>p});var n=r(400),i=r(427),o=r(436),a=r(426),s=r(3264),c=r(3281),l=r(3283);function u(e){const t=e[0];if("object"!=typeof t||!t||!("llm"in t)||!t.llm||"object"!=typeof t.llm)return null;const r=t.llm;return"string"!=typeof r.modelName&&"string"!=typeof r.model?null:r}function d(e){const t=e[0];return"object"==typeof t&&t&&"name"in t&&"string"==typeof t.name?t.name:null}function p(e,t,r){const c="__sentry_tool_wrapped__";for(const u of e){if(!u||"object"!=typeof u)continue;const e=u,d=e.invoke;if("function"!=typeof d||Object.prototype.hasOwnProperty.call(e,c))continue;const p="string"==typeof e.name?e.name:"unknown_tool",f="string"==typeof e.description?e.description:void 0,h=new Proxy(d,{apply(e,c,u){const d={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGGRAPH_ORIGIN,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:s.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[s.GEN_AI_TOOL_NAME_ATTRIBUTE]:p,[s.GEN_AI_TOOL_TYPE_ATTRIBUTE]:"function"},h=u[1],m=h?.metadata?.lc_agent_name??r;"string"==typeof m&&(d[s.GEN_AI_AGENT_NAME_ATTRIBUTE]=m),f&&(d[s.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=f);const g=u[0];if("object"==typeof g&&g&&("id"in g&&"string"==typeof g.id&&(d[s.GEN_AI_TOOL_CALL_ID_ATTRIBUTE]=g.id),t.recordInputs)){const e="args"in g&&"object"==typeof g.args?g.args:g;try{d[s.GEN_AI_TOOL_INPUT_ATTRIBUTE]=JSON.stringify(e)}catch{}}return(0,a.startSpan)({op:s.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,name:`execute_tool ${p}`,attributes:d},async r=>{try{const n=await Reflect.apply(e,c,u);if(t.recordOutputs)try{const e=n&&"object"==typeof n&&"content"in n?n.content:n;r.setAttribute(s.GEN_AI_TOOL_OUTPUT_ATTRIBUTE,"string"==typeof e?e:JSON.stringify(e))}catch{}return n}catch(e){throw r.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}});e.invoke=h,Object.defineProperty(e,c,{value:!0,enumerable:!1})}return e}function f(e){if(!e||0===e.length)return null;const t=[];for(const r of e)if(r&&"object"==typeof r){const e=r.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}function h(e){const t=e;let r=0,n=0,i=0;if(t.usage_metadata&&"object"==typeof t.usage_metadata){const e=t.usage_metadata;return"number"==typeof e.input_tokens&&(r=e.input_tokens),"number"==typeof e.output_tokens&&(n=e.output_tokens),"number"==typeof e.total_tokens&&(i=e.total_tokens),{inputTokens:r,outputTokens:n,totalTokens:i}}if(t.response_metadata&&"object"==typeof t.response_metadata){const e=t.response_metadata;if(e.tokenUsage&&"object"==typeof e.tokenUsage){const t=e.tokenUsage;"number"==typeof t.promptTokens&&(r=t.promptTokens),"number"==typeof t.completionTokens&&(n=t.completionTokens),"number"==typeof t.totalTokens&&(i=t.totalTokens)}}return{inputTokens:r,outputTokens:n,totalTokens:i}}function m(e,t){const r=t;if(r.response_metadata&&"object"==typeof r.response_metadata){const t=r.response_metadata;t.model_name&&"string"==typeof t.model_name&&e.setAttribute(s.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,t.model_name),t.finish_reason&&"string"==typeof t.finish_reason&&e.setAttribute(s.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,[t.finish_reason])}}function g(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;const t=e.builder?.nodes?.tools?.runnable?.tools;return t&&Array.isArray(t)&&0!==t.length?t.map(e=>({name:e.lc_kwargs?.name,description:e.lc_kwargs?.description,schema:e.lc_kwargs?.schema})):null}function y(e,t,r){const n=r,i=n?.messages;if(!i||!Array.isArray(i))return;const o=t?.length??0,a=i.length>o?i.slice(o):[];if(0===a.length)return;const l=f(a);l&&e.setAttribute(s.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,JSON.stringify(l));const u=(0,c.normalizeLangChainMessages)(a);e.setAttribute(s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,JSON.stringify(u));let d=0,p=0,g=0;for(const t of a){const r=h(t);d+=r.inputTokens,p+=r.outputTokens,g+=r.totalTokens,m(e,t)}d>0&&e.setAttribute(s.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,d),p>0&&e.setAttribute(s.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,p),g>0&&e.setAttribute(s.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,g)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentEmbeddingMethod:()=>l,instrumentLangChainEmbeddings:()=>u});var n=r(400),i=r(427),o=r(426),a=r(3264),s=r(3265),c=r(3280);function l(e,t={}){const{recordInputs:r}=(0,s.resolveAIRecordingOptions)(t);return new Proxy(e,{apply(e,t,s){const l=function(e){const t=e??{},r={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c.LANGCHAIN_ORIGIN,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:a.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,[a.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"embeddings",[a.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:t.model??"unknown"};return r[a.GEN_AI_SYSTEM_ATTRIBUTE]=function(e){const t=e.constructor?.name??"";return t.includes("OpenAI")?"openai":t.includes("Google")?"google_genai":t.includes("Mistral")?"mistralai":t.includes("Vertex")?"google_vertexai":t.includes("Bedrock")?"aws_bedrock":t.includes("Ollama")?"ollama":t.includes("Cloudflare")?"cloudflare":t.includes("Cohere")?"cohere":"langchain"}(t),"dimensions"in t&&(r[a.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=t.dimensions),"encodingFormat"in t&&(r[a.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=t.encodingFormat),r}(t),u=l[a.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown";if(r){const e=s[0];null!=e&&(l[a.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE]="string"==typeof e?e:JSON.stringify(e))}return(0,o.startSpan)({name:`embeddings ${u}`,op:a.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,attributes:l},()=>Reflect.apply(e,t,s).then(void 0,e=>{throw(0,n.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.langchain"}}),e}))}})}function u(e,t){const r=e;
50return"function"==typeof r.embedQuery&&(r.embedQuery=l(r.embedQuery,t)),"function"==typeof r.embedDocuments&&(r.embedDocuments=l(r.embedDocuments,t)),e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{uiProfiler:()=>a});var n=r(401),i=r(413),o=r(1438);const a={startProfiler:function(){const e=(0,n.getClient)();if(!e)return void(o.DEBUG_BUILD&&i.debug.warn("No Sentry client available, profiling is not started"));e.getIntegrationByName("BrowserProfiling")?e.emit("startUIProfiler"):o.DEBUG_BUILD&&i.debug.warn("BrowserProfiling integration is not available")},stopProfiler:function(){const e=(0,n.getClient)();if(!e)return void(o.DEBUG_BUILD&&i.debug.warn("No Sentry client available, profiling is not started"));e.getIntegrationByName("BrowserProfiling")?e.emit("stopUIProfiler"):o.DEBUG_BUILD&&i.debug.warn("ProfilingIntegration is not available")}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createUserFeedbackEnvelope:()=>o});var n=r(439),i=r(448);function o(e,{metadata:t,tunnel:r,dsn:o}){const a={event_id:e.event_id,sent_at:(new Date).toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!o&&{dsn:(0,n.dsnToString)(o)}},s=function(e){return[{type:"user_report"},e]}(e);return(0,i.createEnvelope)(a,[s])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{showReportDialog:()=>l});var n=r(400),i=r(401),o=r(1397),a=r(413),s=r(1438),c=r(1423);function l(e={}){const t=c.WINDOW.document,r=t?.head||t?.body;if(!r)return void(s.DEBUG_BUILD&&a.debug.error("[showReportDialog] Global document not defined"));const l=(0,i.getCurrentScope)(),u=(0,i.getClient)(),d=u?.getDsn();if(!d)return void(s.DEBUG_BUILD&&a.debug.error("[showReportDialog] DSN not configured"));const p={...e,user:{...l.getUser(),...e.user},eventId:e.eventId||(0,n.lastEventId)()},f=c.WINDOW.document.createElement("script");f.async=!0,f.crossOrigin="anonymous",f.src=(0,o.getReportDialogEndpoint)(d,p);const{onLoad:h,onClose:m}=p;if(h&&(f.onload=h),m){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{m()}finally{c.WINDOW.removeEventListener("message",e)}};c.WINDOW.addEventListener("message",e)}r.appendChild(f)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{reportingObserverIntegration:()=>u});var n=r(400),i=r(401),o=r(1389),a=r(405),s=r(1430);const c=a.GLOBAL_OBJ,l=new WeakMap,u=(0,o.defineIntegration)((e={})=>{const t=e.types||["crash","deprecation","intervention"];function r(e){if(l.has((0,i.getClient)()))for(const t of e)(0,i.withScope)(e=>{e.setExtra("url",t.url);const r=`ReportingObserver [${t.type}]`;let i="No details available";if(t.body){const r={};for(const e in t.body)r[e]=t.body[e];if(e.setExtra("body",r),"crash"===t.type){const e=t.body;i=[e.crashId||"",e.reason||""].join(" ").trim()||i}else{i=t.body.message||i}}(0,n.captureMessage)(`${r}: ${i}`)})}return{name:"ReportingObserver",setupOnce(){if(!(0,s.supportsReportingObserver)())return;new c.ReportingObserver(r,{buffered:!0,types:t}).observe()},setup(e){l.set(e,!0)}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{httpClientIntegration:()=>g});var n=r(400),i=r(401),o=r(1389),a=r(3291),s=r(3292),c=r(3294),l=r(405),u=r(1429),d=r(413),p=r(411),f=r(1430),h=r(1436),m=r(1438);const g=(0,o.defineIntegration)((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){if(!(0,f.supportsNativeFetch)())return;(0,u.addFetchInstrumentationHandler)(r=>{if((0,i.getClient)()!==e)return;const{response:o,args:c,error:l,virtualError:u}=r,[d,p]=c;o&&function(e,t,r,i,o){if(b(e,r.status,r.url)){const e=function(e,t){if(!t&&e instanceof Request)return e;if(e instanceof Request&&e.bodyUsed)return e;return new Request(e,t)}(t,i);let c,l,u,d;const p=S();if(!1!==p.requestHeaders&&(c=(0,a.filterKeyValueData)(v(e.headers),p.requestHeaders)),!1!==p.responseHeaders&&(l=(0,a.filterKeyValueData)(v(r.headers),p.responseHeaders)),!1!==p.cookies){const t=e.headers.get("Cookie")||void 0;if(t){const e=(0,s.filterCookies)(t,p.cookies);"object"==typeof e&&(u=e)}const n=r.headers.get("Set-Cookie")||void 0;if(n){const e=(0,s.filterCookies)(n,p.cookies);"object"==typeof e&&(d=e)}}const f=_({url:e.url,method:e.method,status:r.status,requestHeaders:c,responseHeaders:l,requestCookies:u,responseCookies:d,error:o,type:"fetch"});(0,n.captureEvent)(f)}}(t,d,o,p,l||u)},!1)}(e,t),function(e,t){if(!("XMLHttpRequest"in l.GLOBAL_OBJ))return;(0,h.addXhrInstrumentationHandler)(r=>{if((0,i.getClient)()!==e)return;const{error:o,virtualError:c}=r,l=r.xhr,u=l[h.SENTRY_XHR_DATA_KEY];if(!u)return;const{method:p,request_headers:f}=u;try{!function(e,t,r,i,o){if(b(e,t.status,t.responseURL)){let e,c,l;const u=S();if(!1!==u.cookies)try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;if(e){const t=(0,s.filterCookies)(e,u.cookies);"object"==typeof t&&(c=t)}}catch{}if(!1!==u.responseHeaders)try{l=(0,a.filterKeyValueData)(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce((e,t)=>
50{const[r,n]=t.split(": ");return r&&n&&(e[r]=n),e},{})}(t),u.responseHeaders)}catch{}!1!==u.requestHeaders&&(e=(0,a.filterKeyValueData)(i,u.requestHeaders));const d=_({url:t.responseURL,method:r,status:t.status,requestHeaders:e,responseHeaders:l,responseCookies:c,error:o,type:"xhr"});(0,n.captureEvent)(d)}}(t,l,p,f,o||c)}catch(e){m.DEBUG_BUILD&&d.debug.warn("Error while extracting response event form XHR response",e)}})}(e,t)}}});function y(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function v(e){const t={};return e.forEach((e,r)=>{t[r]=e}),t}function b(e,t,r){return function(e,t){return e.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])}(e.failedRequestStatusCodes,t)&&(n=e.failedRequestTargets,o=r,n.some(e=>"string"==typeof e?o.includes(e):e.test(o)))&&!(0,c.isSentryRequestUrl)(r,(0,i.getClient)());var n,o}function _(e){const t=(0,i.getClient)(),r=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,n=r&&t?t.getOptions().stackParser(r,0,1):void 0,o=`HTTP Client Error with status code: ${e.status}`,a={message:o,exception:{values:[{type:"Error",value:o,stacktrace:n?{frames:n}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:y(e.responseHeaders)}}};return(0,p.addExceptionMechanism)(a,{type:`auto.http.client.${e.type}`,handled:!1}),a}function S(){const e=(0,i.getClient)();if(!e)return{cookies:!1,requestHeaders:!1,responseHeaders:!1};const t=e.getOptions();if(null==t.dataCollection){const e=Boolean(t.sendDefaultPii);return{cookies:e,requestHeaders:e,responseHeaders:e}}const{cookies:r,httpHeaders:n}=e.getDataCollectionOptions();return{cookies:r,requestHeaders:n.request,responseHeaders:n.response}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{filterKeyValueData:()=>o});var n=r(1418);function i(e,t){return t.some(t=>e.includes(t))}function o(e,t,r){if(!1===t)return{};const o=null!=r?[...n.SENSITIVE_KEY_SNIPPETS,...r]:n.SENSITIVE_KEY_SNIPPETS,a={};if(!0===t){for(const t of Object.keys(e))a[t]=i(t.toLowerCase(),o)?n.FILTERED_VALUE:e[t];return a}if("deny"in t){const r=t.deny.map(e=>e.toLowerCase());for(const t of Object.keys(e)){const s=t.toLowerCase(),c=i(s,o)||r.some(e=>s.includes(e));a[t]=c?n.FILTERED_VALUE:e[t]}return a}const s=t.allow.map(e=>e.toLowerCase());for(const t of Object.keys(e)){const r=t.toLowerCase();if(i(r,o))a[t]=n.FILTERED_VALUE;else{const i=s.some(e=>r.includes(e));a[t]=i?e[t]:n.FILTERED_VALUE}}return a}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{filterCookies:()=>a});var n=r(3293),i=r(1418),o=r(3291);function a(e,t){if(!1===t)return{};try{const r=(0,n.parseCookie)(e);return 0===Object.keys(r).length?{}:(0,o.filterKeyValueData)(r,t,i.SENSITIVE_COOKIE_NAME_SNIPPETS)}catch{return i.FILTERED_VALUE}}},(e,t,r)=>{"use strict";function n(e){const t={};let r=0;for(;r<e.length;){const n=e.indexOf("=",r);
50if(-1===n)break;let i=e.indexOf(";",r);if(-1===i)i=e.length;else if(i<n){r=e.lastIndexOf(";",n-1)+1;continue}const o=e.slice(r,n).trim();if(void 0===t[o]){let r=e.slice(n+1,i).trim();34===r.charCodeAt(0)&&(r=r.slice(1,-1));try{t[o]=-1!==r.indexOf("%")?decodeURIComponent(r):r}catch{t[o]=r}}r=i+1}return t}r.r(t),r.d(t,{parseCookie:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isSentryRequestUrl:()=>i});var n=r(1432);function i(e,t){const r=t?.getDsn(),i=t?.getOptions().tunnel;return function(e,t){const r=(0,n.parseStringToURLObject)(e);if(!r||(0,n.isURLObjectRelative)(r))return!1;if(!t)return!1;return i=r.hostname,o=t.host,(i===o||o.length>0&&i.endsWith(`.${o}`))&&/(^|&|\?)sentry_key=/.test(r.search);var i,o}(e,r)||function(e,t){if(!t)return!1;return o(e)===o(t)}(e,i)}function o(e){return"/"===e[e.length-1]?e.slice(0,-1):e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applySourceContextToFrame:()=>l,contextLinesIntegration:()=>c});var n=r(1389),i=r(405),o=r(411),a=r(1432);const s=i.GLOBAL_OBJ,c=(0,n.defineIntegration)((e={})=>({name:"ContextLines",processEvent:(t,r,n)=>function(e,t){const r=s.document,n=s.location&&(0,a.stripUrlQueryAndFragment)(s.location.href);if(!r||!n)return e;const i=e.exception?.values;if(!i?.length)return e;const o=r.documentElement.innerHTML;if(!o)return e;const c=["<!DOCTYPE html>","<html>",...o.split("\n"),"</html>"];return i.forEach(e=>{const r=e.stacktrace;r?.frames&&(r.frames=r.frames.map(e=>l(e,c,n,t)))}),e}(t,e.frameContextLines??n?.getDataCollectionOptions().frameContextLines??7)}));function l(e,t,r,n){return e.filename===r&&e.lineno&&t.length?((0,o.addContextToFrame)(t,e,n),e):e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_getGraphQLOperation:()=>u,getGraphQLRequestPayload:()=>g,getRequestPayloadXhrOrFetch:()=>d,graphqlClientIntegration:()=>y,parseGraphQLQuery:()=>p});var n=r(427),i=r(1389),o=r(434),a=r(414),s=r(416),c=r(1436),l=r(1497);function u(e){if(m(e))return`persisted ${e.operationName}`;if(h(e)){const{query:t,operationName:r}=e,{operationName:n=r,operationType:i}=p(t);return n?`${i} ${n}`:`${i}`}return"unknown"}function d(e){let t;if("xhr"in e){const r=e.xhr[c.SENTRY_XHR_DATA_KEY];t=r&&(0,l.getBodyString)(r.body)[0]}else{const r=(0,l.getFetchRequestArgBody)(e.input);t=(0,l.getBodyString)(r)[0]}return t}function p(e){const t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};const r=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return r?{operationType:r[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function f(e){return"object"==typeof e&&null!==e}function h(e){return f(e)&&"string"==typeof e.query}function m(e){return f(e)&&"string"==typeof e.operationName&&f(e.extensions)&&f(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function g(e){try{const t=JSON.parse(e);return h(t)||m(t)?t:void 0}catch{return}}const y=(0,i.defineIntegration)(e=>({name:"GraphQLClient",setup(t){!function(e,t){e.on("beforeOutgoingRequestSpan",(e,r)=>{const i=(0,o.spanToJSON)(e).data||{};if(!("http.client"===i[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]))return;const c=i[n.SEMANTIC_ATTRIBUTE_URL_FULL]||i["http.url"]||i.url,l=i[n.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]||i["http.method"];if(!(0,a.isString)(c)||!(0,a.isString)(l))return;const{endpoints:p}=t,f=(0,s.stringMatchesSomePattern)(c,p),y=d(r);if(f&&y){const t=g(y);if(t){const r=u(t);e.updateName(`${l} ${c} (${r})`),h(t)&&e.setAttribute("graphql.document",t.query),m(t)&&(e.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),e.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}})}(t,e),function(e,t){e.on("beforeOutgoingRequestBreadcrumb",(e,r)=>{const{category:n,type:i,data:o}=e;if("http"===i&&("fetch"===n||"xhr"===n)){const e=o?.url,{endpoints:n}=t,i=(0,s.stringMatchesSomePattern)(e,n),a=d(r);if(i&&o&&a){const e=g(a);if(!o.graphql&&e){const t=u(e);o["graphql.operation"]=t,h(e)&&(o["graphql.document"]=e.query),m(e)&&(o["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,o["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}(t,e)}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{viewHierarchyIntegration:()=>a});var n=r(1389),i=r(1424),o=r(1423);const a=(0,n.defineIntegration)((e={})=>{const t=["script"];function r(n,o,a=0){if(!n)return;const s="shadowRoot"in n&&n.shadowRoot?n.shadowRoot.children:n.children;for(const n of s){if(!(n instanceof HTMLElement))continue;const s=(0,i.getComponentName)(n,1)||void 0,c=n.tagName.toLowerCase();if(t.includes(c))continue;const l=e.onElement?.({element:n,componentName:s,tagName:c,depth:a})||{};if("skip"===l)continue;if("children"===l){r(n,o,a+1);continue}const{x:u,y:d,width:p,height:f}=n.getBoundingClientRect(),h={identifier:n.id||void 0,type:s||c,visible:!0,alpha:1,height:f,width:p,x:u,y:d,...l},m=[];h.children=m,r(n,h.children,a+1),o.push(h)}}return{name:"ViewHierarchy",processEvent:(t,n)=>{if(void 0!==t.type||!1===e.shouldAttach?.(t,n))return t;const i={rendering_system:"DOM",positioning:"absolute",windows:[]};r(e.rootElement?.()||o.WINDOW.document.body,i.windows);const a={filename:"view-hierarchy.json",attachmentType:"event.view_hierarchy",contentType:"application/json",data:JSON.stringify(i)};return n.attachments=n.attachments||[],n.attachments.push(a),t}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getReplay:()=>$n,replayIntegration:()=>zn});var n=r(440),i=r(1442),o=r(427),a=r(400),s=r(401),c=r(450),l=r(3294),u=r(434),d=r(433),p=r(3299),f=r(642),h=r(405),m=r(1403),g=r(413),y=r(411),v=r(417),b=r(412),_=r(1431),S=r(416),E=r(420),w=r(448),T=r(1413),x=r(1424),O=r(1462),A=r(1433),R=r(1435),P=r(1452),I=r(1436),C=r(1497),k=r(1437);const M=h.GLOBAL_OBJ,D="sentryReplaySession",N="Unable to send Replay",L=15e4,F=5e3,B=2e7,j=36e5;var U=Object.defineProperty,H=(e,t,r)=>((e,t,r)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),z=(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))(z||{});function V(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function G(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function $(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=$(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 W{constructor(){H(this,"idNodeMap",new Map),H(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);
50this.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 K({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 Y({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function J(e){return e.toLowerCase()}function Q(e){return e.toUpperCase()}const X="__rrweb_original__";function Z(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?J(t):null}function ee(e,t,r){return"INPUT"!==t||"radio"!==r&&"checkbox"!==r?e.value:e.getAttribute("value")||""}function te(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 re={};function ne(e){const t=re[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 re[e]=n.bind(window)}function ie(...e){return ne("setTimeout")(...e)}function oe(...e){return ne("clearTimeout")(...e)}function ae(e){try{return e.contentDocument}catch{}}let se=1;const ce=new RegExp("[^a-z0-9-_:]");function le(){return se++}let ue,de;const pe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,fe=/^(?:[a-z+]+:)?\/\//i,he=/^www\..*/i,me=/^(data:)([^,]*),(.*)/i;function ge(e,t){return(e||"").replace(pe,(e,r,n,i,o,a)=>{const s=n||o||a,c=r||i||"";if(!s)return e;if(fe.test(s)||he.test(s))return`url(${c}${s}${c})`;if(me.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 l=t.split("/"),u=s.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`})}const ye=/^[^ \t\n\r\u000c]+/,ve=/^[, \t\n\r\u000c]+/;const be=new WeakMap;function _e(e,t){return t&&""!==t.trim()?Ee(e,t):t}function Se(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Ee(e,t){let r=be.get(e);if(r||(r=e.createElement("a"),be.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function we(e,t,r,n,i,o,a){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0]))return _e(e,n);if("xlink:href"===r&&"#"!==n[0])return _e(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return _e(e,n);if("srcset"===r)return 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(ve),!(r>=t.length);){let o=n(ye);if(","===o.slice(-1))o=_e(e,o.substring(0,o.length-1)),i.push(o);else{let n="";o=_e(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);if("style"===r){let t=ge(n,Ee(e));return a&&a.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{const r=e.split(";"),n=[];for(let e of r){if(e=e.trim(),!e)continue;const r=e.indexOf(":");if(-1===r){n.push(e);continue}const i=e.slice(0,r).trim();t.has(i)||n.push(e)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,a)),t}return"object"===t&&"data"===r?_e(e,n):"function"==typeof o?o(r,n,i):n}function Te(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}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 Ae(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 Re(e,t){const{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={}
50,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:S=!1,ignoreCSSAttributes:E}=t,w=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:z.Document,childNodes:[],compatMode:e.compatMode}:{type:z.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:z.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){const{doc:r,blockClass:n,blockSelector:i,unblockSelector:o,inlineStylesheet:a,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:h=!1,rootId:m,maskTextClass:g,unmaskTextClass:y,maskTextSelector:v,unmaskTextSelector:b,ignoreCSSAttributes:_}=t,S=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,n,i,o),E=function(e){if(e instanceof HTMLFormElement)return"form";const t=J(e.tagName);return ce.test(t)?"div":t}(e);let w={};const T=e.attributes.length;for(let t=0;t<T;t++){const n=e.attributes[t];n.name&&!Te(E,n.name,n.value)&&(w[n.name]=we(r,E,J(n.name),n.value,e,c,_))}if("link"===E&&a){const t=Array.from(r.styleSheets).find(t=>t.href===e.href);let n=null;t&&(n=$(t)),n&&(w.rel=null,w.href=null,w.crossorigin=null,w._cssText=ge(n,t.href))}if("style"===E&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=$(e.sheet);t&&(w._cssText=ge(t,Ee(r)))}if("input"===E||"textarea"===E||"select"===E||"option"===E){const t=e,r=Z(t),n=ee(t,Q(E),r),i=t.checked;if("submit"!==r&&"button"!==r&&n){const e=Ae(t,g,v,y,b,K({type:r,tagName:Q(E),maskInputOptions:s}));w.value=Y({isMasked:e,element:t,value:n,maskInputFn:l})}i&&(w.checked=i)}"option"===E&&(e.selected&&!s.select?w.selected=!0:delete w.selected);if("canvas"===E&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){const i=t.getImageData,o=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)||(w.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(u.type,u.quality)&&(w.rr_dataURL=t)}if("img"===E&&d){ue||(ue=r.createElement("canvas"),de=ue.getContext("2d"));const t=e,n=t.currentSrc||t.getAttribute("src")||"<unknown-src>",i=t.crossOrigin,o=()=>{t.removeEventListener("load",o);try{ue.width=t.naturalWidth,ue.height=t.naturalHeight,de.drawImage(t,0,0),w.rr_dataURL=ue.toDataURL(u.type,u.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?w.crossOrigin=i:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}"audio"!==E&&"video"!==E||(w.rr_mediaState=e.paused?"paused":"played",w.rr_mediaCurrentTime=e.currentTime);h||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop));if(S){const{width:t,height:r}=e.getBoundingClientRect();w={class:w.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==E||f(w.src)||(S||ae(e)||(w.rr_src=w.src),delete w.src);let x;try{customElements.get(E)&&(x=!0)}catch(e){}return{type:z.Element,tagName:E,attributes:w,childNodes:[],isSVG:Se(e)||void 0,needBlock:S,rootId:m,isCustom:x}}(e,{doc:r,blockClass:i,blockSelector:o,unblockSelector:a,inlineStylesheet:f,maskAttributeFn:c,maskInputOptions:h,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:S,rootId:w,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,ignoreCSSAttributes:E});case e.TEXT_NODE:return function(e,t){const{maskAllText:r,maskTextClass:n,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:a,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=$(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=ge(p,Ee(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");const g=Ae(e,n,o,i,a,r);f||h||m||!p||!g||(p=s?s(p,e.parentElement):p.replace(/[\S]/g,"*"));m&&p&&(c.textarea||g)&&(p=l?l(p,e.parentNode):p.replace(/[\S]/g,"*"));if("OPTION"===d&&p){p=Y({isMasked:Ae(e,n,o,i,a,K({type:null,tagName:d,maskInputOptions:c})),element:e,value:p,maskInputFn:l})}return{type:z.Text,textContent:p||"",isStyle:f,rootId:u}}(e,{doc:r,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:w});case e.CDATA_SECTION_NODE:return{type:z.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:z.Comment,textContent:e.textContent||"",rootId:w};default:return!1}}function Pe(e){return null==e?"":e.toLowerCase()}function Ie(e,t){const{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:p=!1,inl
50ineStylesheet:f=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:S=!1,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:T=5e3,onBlockedImageLoad:x,onStylesheetLoad:O,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:P=!1,ignoreCSSAttributes:I}=t;let{preserveWhiteSpace:C=!0}=t;const k=Re(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:b,inlineImages:_,recordCanvas:S,keepIframeSrcFn:R,newlyAddedElement:P,ignoreCSSAttributes:I});if(!k)return console.warn(e,"not serialized"),null;let M;M=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===z.Comment)return!0;if(e.type===z.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"===te(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Pe(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Pe(e.attributes.name)||"icon"===Pe(e.attributes.rel)||"apple-touch-icon"===Pe(e.attributes.rel)||"shortcut icon"===Pe(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Pe(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Pe(e.attributes.property).match(/^(og|twitter|fb):/)||Pe(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Pe(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Pe(e.attributes.name)||"googlebot"===Pe(e.attributes.name)||"bingbot"===Pe(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Pe(e.attributes.name)||"generator"===Pe(e.attributes.name)||"framework"===Pe(e.attributes.name)||"publisher"===Pe(e.attributes.name)||"progid"===Pe(e.attributes.name)||Pe(e.attributes.property).match(/^article:/)||Pe(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Pe(e.attributes.name)||"yandex-verification"===Pe(e.attributes.name)||"csrf-token"===Pe(e.attributes.name)||"p:domain_verify"===Pe(e.attributes.name)||"verify-v1"===Pe(e.attributes.name)||"verification"===Pe(e.attributes.name)||"shopify-checkout-api-token"===Pe(e.attributes.name)))return!0}}return!1}(k,v)&&(C||k.type!==z.Text||k.isStyle||k.textContent.trim().length)?le():-2;const D=Object.assign(k,{id:M});if(n.add(e,D),-2===M)return null;E&&E(e);let N=!p;if(D.type===z.Element){N=N&&!D.needBlock;const t=e.shadowRoot;t&&G(t)&&(D.isShadowHost=!0)}if((D.type===z.Document||D.type===z.Element)&&N){v.headWhitespace&&D.type===z.Element&&"head"===D.tagName&&(C=!1);const t={doc:r,mirror:n,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:p,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:C,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:T,onBlockedImageLoad:x,onStylesheetLoad:O,stylesheetLoadTimeout:A,keepIframeSrcFn:R,ignoreCSSAttributes:I},P=e.childNodes?Array.from(e.childNodes):[];for(const e of P){const r=Ie(e,t);r&&D.childNodes.push(r)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const r of Array.from(e.shadowRoot.childNodes)){const n=Ie(r,t);n&&(G(e.shadowRoot)&&(n.isShadow=!0),D.childNodes.push(n))}}if(e.parentNode&&V(e.parentNode)&&G(e.parentNode)&&(D.isShadow=!0),D.type!==z.Element||"iframe"!==D.tagName||D.needBlock||function(e,t,r){const n=function(e){try{return e.contentWindow}catch{}}(e);if(!n)return;let i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"!==i){const n=ie(()=>{o||(t(),o=!0)},r);return void e.addEventListener("load",()=>{oe(n),o=!0,t()})}const a="about:blank";if(n.location.href!==a||e.src===a||""===e.src)return ie(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{const t=ae(e);if(t&&w){const r=Ie(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:C,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:T,onStylesheetLoad:O,stylesheetLoadTimeout:A,keepIframeSrcFn:R,ignoreCSSAttributes:I});r&&w(e,r)}},T),D.type===z.Element&&"img"===D.tagName&&!e.complete&&D.needBlock){const t=e,r=()=>{if(t.isConnected&&!t.complete&&x)try{const e=t.getBoundingClientRect();e.width>0&&e.height>0&&x(t,D,e)}catch(e){}t.removeEventListener("load",r)};t.isConnected&&t.addEventListener("load",r)}return D.type===z.Element&&"link"===D.tagName&&"string"==typeof D.attributes.rel&&("stylesheet"===D.attributes.rel||"preload"===D.attributes.rel&&"string"==typeof D.attributes.href&&"css"===te(D.attributes.href))&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){n=null}if(n)return;const o=ie(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{oe(o),i=!0,t()})}(e,()=>{if(O){const t=Ie(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:C,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:T,onStylesheetLoad:O,stylesheetLoadTimeout:A,keepIframeSrcFn:R,ignoreCSSAttributes:I});t&&O(e,t)}},A),D.type===z.Element&&delete D.needBlock,D}function Ce(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const ke="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 Me={map:{},getId:()=>(console.error(ke),-1),getNode:()=>(console.error(ke),null),removeNodeFromMap(){console.error(ke)},has:()=>(console.error(ke),!1),reset(){console.error(ke)}};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){et("clearTimeout")(...e)}
50(n),n=null),i=a,e.apply(c,o)):n||!1===r.trailing||(n=tt(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(c,o)},s))}}function Ne(e,t,r,n,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set(e){tt(()=>{r.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>Ne(e,t,o||{},!0)}function Le(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&&(Me=new Proxy(Me,{get:(e,t,r)=>("map"===t&&console.error(ke),Reflect.get(e,t,r))}));let Fe=Date.now;function Be(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 Ue(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function He(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function ze(e,t,r,n,i){if(!e)return!1;const o=He(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 Ve(e,t){return-2===t.getId(e)}function Ge(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||Ge(e.parentNode,t))}function $e(e){return Boolean(e.changedTouches)}function qe(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 Ye{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 Je(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Qe(e){const t=e.ownerDocument;if(!t)return!1;const r=function(e){let t,r=e;for(;t=Je(r);)r=t;return r}(e);return t.contains(r)}function Xe(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Qe(e))}const Ze={};function et(e){const t=Ze[e];if(t)return t;const r=window.document;let n=window[e];if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return Ze[e]=n.bind(window)}function tt(...e){return et("setTimeout")(...e)}var rt=(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))(rt||{}),nt=(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))(nt||{}),it=(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))(it||{}),ot=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ot||{}),at=(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))(at||{});let st;function ct(e){st=e}function lt(){st=void 0}const ut=e=>{if(!st)return e;return(...t)=>{try{return e(...t)}catch(e){if(st&&!0===st(e))return()=>{};throw e}}};for(var dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
50+/",pt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ft=0;ft<64;ft++)pt[dt.charCodeAt(ft)]=ft;class ht{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}function mt(e){try{return e.contentDocument}catch(e){}}function gt(e){try{return e.contentWindow}catch(e){}}class yt{constructor(e){this.doc=e,this.unattachedDoc=null}parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if("undefined"==typeof CSSStyleSheet||"function"!=typeof CSSStyleSheet.prototype.replaceSync)return null;try{const t=new CSSStyleSheet;t.replaceSync(`x { ${e} }`);const r=t.cssRules[0];return r&&r.type===CSSRule.STYLE_RULE?r.style:null}catch{return null}}parseWithDetachedElement(e){const t=this.getUnattachedDoc().createElement("span");return t.setAttribute("style",e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}}function vt(e){return"__ln"in e}class bt{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&&vt(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&&vt(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 _t=(e,t)=>`${e}@${t}`;class St{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 bt,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||!Xe(i))return;const o=V(i.parentNode)?this.mirror.getId(Je(i)):this.mirror.getId(i.parentNode),a=n(i);if(-1===o||-1===a)return r.addNode(i);const s=Ie(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=>{qe(e,this.mirror)&&!ze(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)=>{if(ze(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);const r=gt(e);r&&this.canvasManager.addWindow(r),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});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)wt(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e);for(const e of this.addedSet)Tt(this.droppedSet,e)||wt(this.removes,e,this.mirror)?Tt(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);
50if(-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(!Ve(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;ze(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Ae(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,He(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=Z(t),i=t.tagName;n=ee(t,i,r);const o=K({maskInputOptions:this.maskInputOptions,tagName:i,type:r});n=Y({isMasked:Ae(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:n,maskInputFn:this.maskInputFn})}if(ze(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(mt(t))return;r="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
50,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"),!Te(t.tagName,r)&&(i.attributes[r]=we(this.doc,J(t.tagName),J(r),n,t,this.maskAttributeFn),"style"===r)){const r=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(const e of Array.from(t.style)){const n=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);n!==(r?.getPropertyValue(e)||"")||o!==(r?.getPropertyPriority(e)||"")?i.styleDiff[e]=""===o?n:[n,o]:i._unchangedStyles[e]=[n,o]}if(r)for(const e of Array.from(r))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(ze(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);ze(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ve(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Et(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||Ge(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[_t(r,n)]?Et(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!(!V(e.target)||!G(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(Ve(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[_t(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ze(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&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","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]}),this.styleDeclarationParser=new yt(this.doc)}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 Et(e,t){e.delete(t),t.childNodes?.forEach(t=>Et(e,t))}function wt(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 Tt(e,t){return 0!==e.size&&xt(e,t)}function xt(e,t){const{parentNode:r}=t;return!!r&&(!!e.has(r)||xt(e,r))}const Ot=[];function At(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 Rt(e,t){const r=new St;Ot.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(ut(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Pt({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 l=null;return Object.keys(it).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEac
vendor: 8,753 bytes, line 50
50h(a=>{let s=J(a);const u=(t=>a=>{const s=At(a);if(ze(s,n,i,o,!0))return;let c=null,u=t;if("pointerType"in a){switch(a.pointerType){case"mouse":c=ot.Mouse;break;case"touch":c=ot.Touch;break;case"pen":c=ot.Pen}c===ot.Touch?it[t]===it.MouseDown?u="TouchStart":it[t]===it.MouseUp&&(u="TouchEnd"):ot.Pen}else $e(a)&&(c=ot.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===ot.Touch||u.startsWith("Mouse")&&c===ot.Mouse)&&(c=null)):it[t]===it.Click&&(c=l,l=null);const d=$e(a)?a.changedTouches[0]:a;if(!d)return;const p=r.getId(s),{clientX:f,clientY:h}=d;ut(e)({type:it[u],id:p,x:f,y:h,...null!==c&&{pointerType:c}})})(a);if(window.PointerEvent)switch(it[a]){case it.MouseDown:case it.MouseUp:s=s.replace("mouse","pointer");break;case it.TouchStart:case it.TouchEnd:return}c.push(Ce(s,u,t))}),ut(()=>{c.forEach(e=>e())})}function It({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:a}){return Ce("scroll",ut(De(ut(a=>{const s=At(a);if(!s||ze(s,n,i,o,!0))return;const c=r.getId(s);if(s===t&&t.defaultView){const r=Be(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 Ct=["INPUT","TEXTAREA","SELECT"],kt=new WeakMap;function Mt({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,ignoreClass:a,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let r=At(e);const u=e.isTrusted,g=r&&Q(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||Ct.indexOf(g)<0||ze(r,n,i,o,!0))return;const v=r;if(v.classList.contains(a)||s&&v.matches(s))return;const b=Z(r);let _=ee(v,g,b),S=!1;const E=K({maskInputOptions:c,tagName:g,type:b}),w=Ae(r,p,h,f,m,E);"radio"!==b&&"checkbox"!==b||(S=r.checked),_=Y({isMasked:w,element:r,value:_,maskInputFn:l}),y(r,d?{text:_,isChecked:S,userTriggered:u}:{text:_,isChecked:S});const T=r.name;"radio"===b&&T&&S&&t.querySelectorAll(`input[type="radio"][name="${T}"]`).forEach(e=>{if(e!==r){const t=Y({isMasked:w,element:e,value:ee(e,g,b),maskInputFn:l});y(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function y(t,n){const i=kt.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){kt.set(t,n);const i=r.getId(t);ut(e)({...n,id:i})}}const v=("last"===u.input?["change"]:["input","change"]).map(e=>Ce(e,ut(g),t)),b=t.defaultView;if(!b)return()=>{v.forEach(e=>e())};const _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),S=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&v.push(...S.map(e=>Ne(e[0],e[1],{set(){ut(g)({target:this,isTrusted:!1})}},!1,b))),ut(()=>{v.forEach(e=>e())})}function Dt(e){return function(e,t){if(Bt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Bt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Bt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Bt("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 Nt(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function Lt({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}}),ut(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function Ft(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};let n;e.recordDOM&&(n=Rt(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(ut(t=>{const r=Date.now()-a;e(s.map(e=>(e.timeOffset-=r,e)),t),s=[],a=null}),o),l=ut(De(ut(e=>{const t=At(e),{clientX:r,clientY:i}=$e(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?nt.Drag:e instanceof MouseEvent?nt.MouseMove:nt.TouchMove)}),i,{trailing:!1})),u=[Ce("mousemove",l,r),Ce("touchmove",l,r),Ce("drag",l,r)];return ut(()=>{u.forEach(e=>e())})}(e),o=Pt(e),a=It(e),s=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return Ce("resize",ut(De(ut(()=>{const t=je(),i=Ue();r===t&&n===i||(e({width:Number(i),height:Number(t)}),r=t,n=i)}),200)),t)}(e,{win:r}),c=Mt(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:o,doc:a}){const s=ut(a=>De(ut(o=>{const s=At(o);if(!s||ze(s,t,r,n,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:d}=s;e({type:a,id:i.getId(s),currentTime:c,volume:l,muted:u,playbackRate:d})}),o.media||500)),c=[Ce("play",s(at.Play),a),Ce("pause",s(at.Pause),a),Ce("seeked",s(at.Seeked),a),Ce("volumechange",s(at.VolumeChange),a),Ce("ratechange",s(at.RateChange),a)];return ut(()=>{c.forEach(e=>e())})}(e);let u=()=>{},d=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const i=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:ut((n,i,o)=>{const[a,s]=o,{id:c,styleId:l}=Nt(i,t,r.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:a,index:s}]}),n.apply(i,o)})});const o=n.CSSStyleSheet.prototype.deleteRule;let a,s;n.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:ut((n,i,o)=>{const[a]=o,{id:s,styleId:c}=Nt(i,t,r.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:a}]}),n.apply(i,o)})}),n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:ut((n,i,o)=>{const[a]=o,{id:s,styleId:c}=Nt(i,t,r.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replace:a}),n.apply(i,o)})})),n.CSSStyleSheet.prototype.replaceSync&&(s=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:ut((n,i,o)=>{const[a]=o,{id:s,styleId:c}=Nt(i,t,r.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replaceSync:a}),n.apply(i,o)})}));const c={};jt("CSSGroupingRule")?c.CSSGroupingRule=n.CSSGroupingRule:(jt("CSSMediaRule")&&(c.CSSMediaRule=n.CSSMediaRule),jt("CSSConditionRule")&&(c.CSSConditionRule=n.CSSConditionRule),jt("CSSSupportsRule")&&(c.CSSSupportsRule=n.CSSSupportsRule));const l={};return Object.entries(c).forEach(([n,i])=>{l[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(l[n].insertRule,{apply:ut((n,i,o)=>{const[a,s]=o,{id:c,styleId:l}=Nt(i.parentStyleSheet,t,r.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:a,index:[...Dt(i),s||0]}]}),n.apply(i,o)})}),i.prototype.deleteRule=new Proxy(l[n].deleteRule,{apply:ut((n,i,o)=>{const[a]=o,{id:s,styleId:c}=Nt(i.parentStyleSheet,t,r.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:[...Dt(i),a]}]}),n.apply(i,o)})})}),ut(()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=o,a&&(n.CSSStyleSheet.prototype.replace=a),s&&(n.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}(e,{win:r}),d=Lt(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){const o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:ut((i,a,s)=>{const[c,l,u]=s;if(r.has(c))return o.apply(a,[c,l,u]);const{id:d,styleId:p}=Nt(a.parentRule?.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:c,value:l,priority:u},index:Dt(a.parentRule)}),i.apply(a,s)})});const a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:ut((i,o,s)=>{const[c]=s;
vendor: 5,493 bytes, line 50
50if(r.has(c))return a.apply(o,[c]);const{id:l,styleId:u}=Nt(o.parentRule?.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,remove:{property:c},index:Dt(o.parentRule)}),i.apply(o,s)})}),ut(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:r}),e.collectFonts&&(f=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=Le(t.fonts,"add",function(t){return function(r){return tt(ut(()=>{const t=i.get(r);t&&(e(t),i.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=o}),n.push(a),ut(()=>{n.forEach(e=>e())})}(e)));const h=function(e){const{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,selectionCb:a}=e;let s=!0;const c=ut(()=>{const e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const a=e.getRangeAt(t),{startContainer:s,startOffset:l,endContainer:u,endOffset:d}=a;ze(s,n,i,o,!0)||ze(u,n,i,o,!0)||c.push({start:r.getId(s),startOffset:l,end:r.getId(u),endOffset:d})}a({ranges:c})});return c(),Ce("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const r=e.defaultView;return r&&r.customElements?Le(r.customElements,"define",function(e){return function(r,n,i){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,i])}}):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,r,t.options));return ut(()=>{Ot.forEach(e=>e.reset()),n?.disconnect(),i(),o(),a(),s(),c(),l(),u(),d(),p(),f(),h(),m(),g.forEach(e=>e())})}function Bt(e){return void 0!==window[e]}function jt(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Ut{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 Ht{constructor(){this.crossOriginIframeMirror=new Ut(le),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class zt{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ut(le),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ut(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);const t=gt(e);t&&this.crossOriginIframeMap.set(t,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&&gt(e)?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);const r=mt(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 rt.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:rt.IncrementalSnapshot,data:{source:nt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case rt.Meta:case rt.Load:case rt.DomContentLoaded:return!1;case rt.Plugin:return t;case rt.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case rt.IncrementalSnapshot:switch(t.data.source){case nt.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)}
vendor: 4,108 bytes, line 50
50),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 nt.Drag:case nt.TouchMove:case nt.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case nt.ViewportResize:return!1;case nt.MediaInteraction:case nt.MouseInteraction:case nt.Scroll:case nt.CanvasMutation:case nt.Input:return this.replaceIds(t.data,e,["id"]),t;case nt.StyleSheetRule:case nt.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case nt.Font:return t;case nt.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case nt.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===z.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class Vt{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Gt{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(!G(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const r=Rt({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(It({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),tt(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Lt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){const t=mt(e),r=gt(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Le(e.prototype,"attachShadow",function(e){return function(n){const i=e.call(this,n);return this.shadowRoot&&Xe(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()}}class $t{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Ye,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 qt{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){et("requestAnimationFrame")(...e)}
50(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Wt,Kt;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 Yt=new W;function Jt(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:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:f=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,maxCanvasSize:S=null,packFn:E,sampling:w={},dataURLOptions:T={},mousemoveWait:x,recordDOM:O=!0,recordCanvas:A=!1,recordCrossOriginIframes:R=!1,recordAfter:P=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:I=!1,collectFonts:C=!1,inlineImages:k=!1,plugins:M,keepIframeSrcFn:D=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:L,onMutation:F,getCanvasManager:B}=e;ct(L);const j=!R||window.parent===window;let U=!1;if(!j)try{window.parent.document&&(U=!1)}catch(e){U=!0}if(j&&!t)throw new Error("emit function is required");if(!j&&!U)return()=>{};void 0!==x&&void 0===w.mousemove&&(w.mousemove=x),Yt.reset();const H=!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!==g?g:{},z=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let V;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let G=0;const $=e=>{for(const t of M||[])t.eventProcessor&&(e=t.eventProcessor(e));return E&&!U&&(e=E(e)),e};Wt=(e,i)=>{const o=e;if(o.timestamp=Fe(),!Ot[0]?.isFrozen()||o.type===rt.FullSnapshot||o.type===rt.IncrementalSnapshot&&o.data.source===nt.Mutation||Ot.forEach(e=>e.unfreeze()),j)t?.($(o),i);else if(U){const e={type:"rrweb",event:$(o),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,"*")}if(o.type===rt.FullSnapshot)V=o,G=0;else if(o.type===rt.IncrementalSnapshot){if(o.data.source===nt.Mutation&&o.data.isAttachIframe)return;G++;const e=n&&G>=n,t=r&&V&&o.timestamp-V.timestamp>r;(e||t)&&te(!0)}};const q=e=>{Wt({type:rt.IncrementalSnapshot,data:{source:nt.Mutation,...e}})},K=e=>Wt({type:rt.IncrementalSnapshot,data:{source:nt.Scroll,...e}}),Y=e=>Wt({type:rt.IncrementalSnapshot,data:{source:nt.CanvasMutation,...e}}),J=new $t({mutationCb:q,adoptedStyleSheetCb:e=>Wt({type:rt.IncrementalSnapshot,data:{source:nt.AdoptedStyleSheet,...e}})}),Q="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Ht:new zt({mirror:Yt,mutationCb:q,stylesheetManager:J,recordCrossOriginIframes:R,wrappedEmit:Wt});for(const e of M||[])e.getMirror&&e.getMirror({nodeMirror:Yt,crossOriginIframeMirror:Q.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q.crossOriginIframeStyleMirror});const X=new qt,Z=function(e,t){try{return e?e(t):new ht}catch{return console.warn("Unable to initialize CanvasManager"),new ht}}(B,{mirror:Yt,win:window,mutationCb:e=>Wt({type:rt.IncrementalSnapshot,data:{source:nt.CanvasMutation,...e}}),recordCanvas:A,blockClass:i,blockSelector:o,unblockSelector:a,maxCanvasSize:S,sampling:w.canvas,dataURLOptions:T,errorHandler:L}),ee="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Vt:new Gt({mutationCb:q,scrollCb:K,bypassOptions:{onMutation:F,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:H,dataURLOptions:T,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,recordCanvas:A,inlineImages:k,sampling:w,slimDOMOptions:z,iframeManager:Q,stylesheetManager:J,canvasManager:Z,keepIframeSrcFn:D,processedNodeManager:X,ignoreCSSAttributes:N},mirror:Yt}),te=(e=!1)=>
50{if(!O)return;Wt({type:rt.Meta,data:{href:window.location.href,width:Ue(),height:je()}},e),J.reset(),ee.init(),Ot.forEach(e=>e.lock());const t=function(e,t){const{mirror:r=new W,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:a=!1,maskTextClass:s="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:w,onBlockedImageLoad:T,onStylesheetLoad:x,stylesheetLoadTimeout:O,keepIframeSrcFn:A=()=>!1,ignoreCSSAttributes:R=new Set([])}=t||{};return Ie(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:p,recordCanvas:f,preserveWhiteSpace:_,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:w,onBlockedImageLoad:T,onStylesheetLoad:x,stylesheetLoadTimeout:O,keepIframeSrcFn:A,newlyAddedElement:!1,ignoreCSSAttributes:R})}(document,{mirror:Yt,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskAllInputs:H,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,slimDOM:z,dataURLOptions:T,recordCanvas:A,inlineImages:k,onSerialize:e=>{qe(e,Yt)&&Q.addIframe(e),We(e,Yt)&&J.trackLinkElement(e),Ke(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Q.attachIframe(e,t);const r=gt(e);r&&Z.addWindow(r),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{J.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{q({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:D,ignoreCSSAttributes:N});if(!t)return console.warn("Failed to snapshot the document");Wt({type:rt.FullSnapshot,data:{node:t,initialOffset:Be(window)}}),Ot.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,Yt.getId(document))};Kt=te;try{const e=[],t=e=>ut(Ft)({onMutation:F,mutationCb:q,mousemoveCb:(e,t)=>Wt({type:rt.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Wt({type:rt.IncrementalSnapshot,data:{source:nt.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>Wt({type:rt.IncrementalSnapshot,data:{source:nt.ViewportResize,...e}}),inputCb:e=>Wt({type:rt.IncrementalSnapshot,data:{source:nt.Input,...e}}),mediaInteractionCb:e=>Wt({type:rt.IncrementalSnapshot,data:{source:nt.MediaInteraction,...e}}),styleSheetRuleCb:e=>Wt({type:rt.IncrementalSnapshot,data:{source:nt.StyleSheetRule,...e}}),styleDeclarationCb:e=>Wt({type:rt.IncrementalSnapshot,data:{source:nt.StyleDeclaration,...e}}),canvasMutationCb:Y,fontCb:e=>Wt({type:rt.IncrementalSnapshot,data:{source:nt.Font,...e}}),selectionCb:e=>{Wt({type:rt.IncrementalSnapshot,data:{source:nt.Selection,...e}})},customElementCb:e=>{Wt({type:rt.IncrementalSnapshot,data:{source:nt.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:H,inlineStylesheet:h,sampling:w,recordDOM:O,recordCanvas:A,inlineImages:k,userTriggeredOnInput:I,collectFonts:C,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,keepIframeSrcFn:D,blockSelector:o,unblockSelector:a,slimDOMOptions:z,dataURLOptions:T,mirror:Yt,iframeManager:Q,stylesheetManager:J,shadowDomManager:ee,processedNodeManager:X,canvasManager:Z,ignoreCSSAttributes:N,plugins:M?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>Wt({type:rt.Plugin,data:{plugin:e.name,payload:t}}
50)}))||[]},{});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(Ce("DOMContentLoaded",()=>{Wt({type:rt.DomContentLoaded,data:{}}),"DOMContentLoaded"===P&&r()})),e.push(Ce("load",()=>{Wt({type:rt.Load,data:{}}),"load"===P&&r()},window))),()=>{e.forEach(e=>e()),X.destroy(),Kt=void 0,lt()}}catch(e){console.warn(e)}}var Qt,Xt;Jt.mirror=Yt,Jt.takeFullSnapshot=function(e){if(!Kt)throw new Error("please take full snapshot after start recording");Kt(e)},(Xt=Qt||(Qt={}))[Xt.NotStarted=0]="NotStarted",Xt[Xt.Running=1]="Running",Xt[Xt.Stopped=2]="Stopped";function Zt(e){return e>9999999999?e:1e3*e}function er(e){return e>9999999999?e/1e3:e}function tr(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:rt.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,v.normalize)(t,10,1e3)}}),"console"===t.category)))}function rr(e){return e.closest("button,a")||e}function nr(e){const t=ir(e);return t&&t instanceof Element?rr(t):t}function ir(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let or;function ar(e){return or||(or=[],(0,b.fill)(M,"open",function(e){return function(...t){if(or)try{or.forEach(e=>e())}catch{}return e.apply(M,t)}})),or.push(e),()=>{const t=or?or.indexOf(e):-1;t>-1&&or.splice(t,1)}}const sr=new Set([nt.Mutation,nt.StyleSheetRule,nt.StyleDeclaration,nt.AdoptedStyleSheet,nt.CanvasMutation,nt.Selection,nt.MediaInteraction]);class cr{constructor(e,t,r=tr){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=ar(()=>{this._lastMutation=ur()});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(!lr.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:er(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=er(e)}registerScroll(e=Date.now()){this._lastScroll=er(e)}registerClick(e){const t=rr(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=ur();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:M.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:o||1}};return void this._addBreadcrumbEvent(t,i)}if(o>1){const e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:M.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,P.setTimeout)(()=>this._checkClicks(),1e3)}}const lr=["A","BUTTON","INPUT"];function ur(){return Date.now()/1e3}function dr(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:r}=t.data;if(sr.has(r)&&e.registerMutation(t.timestamp),r===nt.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===nt.MouseInteraction}(t)){const{type:r,id:n}=t.data,i=Jt.mirror.getNode(n);i instanceof HTMLElement&&r===it.Click&&e.registerClick(i)}}catch{}}function pr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var fr=(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))(fr||{});
50const hr=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function mr(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(hr.has(r)){let n=r;"data-testid"!==r&&"data-test-id"!==r||(n="testId"),t[n]=e[r]}return t}const gr=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?nr(e.event):ir(e.event),r=(0,k.htmlTreeAsString)(n,{maxStringLength:200})||"<unknown>"}catch{r="<unknown>"}return{target:n,message:r}}(e);return pr({category:`ui.${e.name}`,...yr(t,r)})}(t);if(!r)return;const n="click"===t.name,i=n?t.event:void 0;var o,a,s;!(n&&e.clickDetector&&i?.target)||i.altKey||i.metaKey||i.ctrlKey||i.shiftKey||(o=e.clickDetector,a=r,s=nr(t.event),o.handleClick(a,s)),tr(e,r)};function yr(e,t){const r=Jt.mirror.getId(e),n=r&&Jt.mirror.getNode(r),i=n&&Jt.mirror.getMeta(n),o=i&&function(e){return e.type===fr.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===fr.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:mr(o.attributes)}}:{}}}function vr(e,t){if(!e.isEnabled())return;e.updateUserActivity();const r=function(e){const{metaKey:t,shiftKey:r,ctrlKey:n,altKey:i,key:o,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!o)return null;const s=t||n||i,c=1===o.length;if(!s&&c)return null;const l=(0,k.htmlTreeAsString)(a,{maxStringLength:200})||"<unknown>",u=yr(a,l);return pr({category:"ui.keyDown",message:l,data:{...u.data,metaKey:t,shiftKey:r,ctrlKey:n,altKey:i,key:o}})}(t);r&&tr(e,r)}const br={resource:function(e){const{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:o,decodedBodySize:a,encodedBodySize:s,responseStatus:c,transferSize:l}=e;if(["fetch","xmlhttprequest"].includes(r))return null;return{type:`${t}.${r}`,start:Er(o),end:Er(i),name:n,data:{size:l,statusCode:c,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){const{duration:t,entryType:r,name:n,startTime:i}=e,o=Er(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:l,loadEventStart:u,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:m}=e;if(0===i)return null;return{type:`${t}.${m}`,start:Er(f),end:Er(o),name:r,data:{size:h,decodedBodySize:n,encodedBodySize:a,duration:i,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:o,redirectCount:p}}}};function _r(e,t){return({metric:r})=>{t.replayPerformanceEntries.push(e(r))}}function Sr(e){const t=br[e.entryType];return t?t(e):null}function Er(e){return(((0,E.browserPerformanceTimeOrigin)()||M.performance.timeOrigin)+e)/1e3}function wr(e){const t=e.entries[e.entries.length-1];return Ar(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function Tr(e){return void 0!==e.sources}function xr(e){const t=[],r=[];for(const n of e.entries)if(Tr(n)){const e=[];for(const t of n.sources)if(t.node){r.push(t.node);const n=Jt.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return Ar(e,"cumulative-layout-shift",r,t)}function Or(e){const t=e.entries[e.entries.length-1];return Ar(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function Ar(e,t,r,n){const i=e.value,o=e.rating,a=Er(i);return{type:"web-vital",name:t,start:a,end:a,data:{value:i,size:i,rating:o,nodeIds:r?r.map(e=>Jt.mirror.getId(e)):void 0,attributions:n}}}const Rr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;const Pr=["log","warn","error"],Ir="[Replay] ";function Cr(e,t="info"){(0,f.addBreadcrumb)({category:"console",data:{logger:"replay"},level:t,message:`${Ir}${e}`},{level:t})}const kr=function(){let e=!1,t=!1;const r={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};
50return Rr?(Pr.forEach(e=>{r[e]=(...r)=>{g.debug[e](Ir,...r),t&&Cr(r.join(""),(0,_.severityLevelFromString)(e))}}),r.exception=(n,...i)=>{i.length&&r.error&&r.error(...i),g.debug.error(Ir,n),e?(0,a.captureException)(n,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Cr(n,"error")},r.infoTick=(...e)=>{g.debug.log(Ir,...e),t&&setTimeout(()=>Cr(e[0]),0)}):Pr.forEach(e=>{r[e]=()=>{}}),r}();class Mr extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Dr{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>B)throw new Mr;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(){let e=null;for(const{timestamp:t}of this.events)(null===e||t<e)&&(e=t);return null===e?e:Zt(e)}}class Nr{constructor(e){this._onMessage=({data:e})=>{const t=e;if("number"!=typeof t.id)return;const r=this._pending.get(t.id);if(r&&r.method===t.method){if(this._pending.delete(t.id),!t.success)return Rr&&kr.error("Error in compression worker: ",t.response),void r.reject(new Error("Error in compression worker"));r.resolve(t.response)}},this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():(Rr&&kr.warn("Received worker message with unsuccessful status",r),t(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",e=>{Rr&&kr.warn("Failed to load Replay compression worker",e),t(new Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})})),this._ensureReadyPromise}destroy(){Rr&&kr.log("Destroying compression worker"),this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(e=>e.reject(new Error("Worker destroyed"))),this._pending.clear(),this._worker.terminate()}postMessage(e,t){const r=this._getAndIncrementId();return new Promise((n,i)=>{this._pending.set(r,{method:e,resolve:n,reject:i});try{this._worker.postMessage({id:r,method:e,arg:t})}catch(e){this._pending.delete(r),i(e)}})}_getAndIncrementId(){return this._id++}}class Lr{constructor(e){this._worker=new Nr(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=Zt(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const r=JSON.stringify(e);return this._totalSize+=r.length,this._totalSize>B?Promise.reject(new Mr):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{Rr&&kr.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 Fr{constructor(e){this._fallback=new Dr,this._compression=new Lr(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)}
50async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(Rr&&kr.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){Rr&&kr.exception(e,"Failed to add events when switching buffers.")}}}function Br({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob(['
vendor: 10,329 bytes, line 50
50var 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,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}}},L=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)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var 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}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.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)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(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 B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
50']);return URL.createObjectURL(e)}();return""}();if(!t)return;Rr&&kr.log("Using compression worker"+(e?` from ${e}`:""));const r=new Worker(t);return new Fr(r)}catch(e){Rr&&kr.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return Rr&&kr.log("Using simple buffer"),new Dr}function jr(){try{return"sessionStorage"in M&&!!M.sessionStorage}catch{return!1}}function Ur(e){!function(){if(!jr())return;try{M.sessionStorage.removeItem(D)}catch{}}(),e.session=void 0}function Hr(e){return void 0!==e&&Math.random()<e}function zr(e){if(jr())try{M.sessionStorage.setItem(D,JSON.stringify(e))}catch{}}function Vr(e){const t=Date.now();return{id:e.id||(0,y.uuid4)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function Gr({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){const i=function(e,t){return Hr(e)?"session":!!t&&"buffer"}(e,t),o=Vr({sampled:i,previousSessionId:n});return r&&zr(o),o}function $r(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function qr(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!function(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return $r(e.started,t,n)||$r(e.lastActivity,r,n)}(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function Wr({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){const i=n.stickySession&&function(){if(!jr())return null;try{const e=M.sessionStorage.getItem(D);if(!e)return null;const t=JSON.parse(e);return Rr&&kr.infoTick("Loading existing session"),Vr(t)}catch{return null}}();return i?qr(i,{sessionIdleExpire:e,maxReplayDuration:t})?(Rr&&kr.infoTick("Session in sessionStorage is expired, creating new one..."),Gr(n,{previousSessionId:i.id})):i:(Rr&&kr.infoTick("Creating new session"),Gr(n,{previousSessionId:r}))}function Kr(e,t,r){return!!Jr(e,t)&&(Yr(e,t,r),!0)}async function Yr(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===rt.Custom}(e))return t(e)}catch(e){return Rr&&kr.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 Mr,o=r?"eventBufferOverflow":"eventBufferError",a=(0,s.getClient)();if(a){const e=r?"buffer_overflow":"internal_sdk_error";a.recordDroppedEvent(e,"replay")}if(r&&i)return n.clear(),n.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:o})}}function Jr(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const r=Zt(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Rr&&kr.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1))}function Qr(e){return!e.type}function Xr(e){return"transaction"===e.type}function Zr(e){return"feedback"===e.type}function en(e){return(t,r)=>{if(!e.isEnabled()||!Qr(t)&&!Xr(t))return;const n=r.statusCode;!n||n<200||n>=300||(Xr(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?.replayId)return;const{beforeErrorSampling:n}=e.getOptions();if("function"==typeof n&&!n(t))return;(0,P.setTimeout)(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t))}}function tn(e){return t=>{e.isEnabled()&&Qr(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)){tr(e,pr({category:"replay.hydrate-error",data:{url:(0,x.getLocationHref)()}}))}}(e,t)}}function rn(e){const t=(0,s.getClient)();t&&t.on("beforeAddBreadcrumb",t=>function(e,t){if(!e.isEnabled()||!nn(t))return;const r=function(e){if(!nn(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 pr(e);let r=!1;const n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>F?(r=!0,`${e.slice(0,F)}…`):e;if("object"==typeof e)try{const t=(0,v.normalize)(e,7);return JSON.stringify(t).length>F?(r=!0,`${JSON.stringify(t,null,2).slice(0,F)}…`):t}catch{}return e});return pr({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return pr(e)}(t);r&&tr(e,r)}(e,t))}function nn(e){return!!e.category}function on(){const e=(0,s.getCurrentScope)().getPropagationContext().dsc;e&&delete e.replay_id;const t=(0,u.getActiveSpan)();if(t){delete(0,n.getDynamicSamplingContextFromSpan)(t).replay_id}}function an(e){const t=(0,s.getCurrentScope)().getPropagationContext().dsc;t&&(t.replay_id=e);const r=(0,u.getActiveSpan)();if(r){(0,n.getDynamicSamplingContextFromSpan)(r).replay_id=e}}function sn(e){return Object.assign((t,r)=>{if(e.session&&qr(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire}
50)&&on(),!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Qr(t)&&!Xr(t)&&!Zr(t))return t;if(!e.checkAndHandleExpiredSession())return on(),t;if(Zr(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:rt.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?.values?.length||!t.originalException?.__rrweb__)}(t,r)&&!e.getOptions()._experiments.captureExceptions)return Rr&&kr.log("Ignoring error from rrweb internals",t),null;const n=function(e,t){return"buffer"===e.recordingMode&&t.message!==N&&!(!t.exception||t.type)&&Hr(e.getOptions().errorSampleRate)}(e,t);if((n||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&"buffer"===e.recordingMode&&"buffer"===e.session?.sampled){const t=e.session;t.dirty=!0,e.getOptions().stickySession&&zr(t)}return t},{id:"Replay"})}function cn(e,t){return t.map(({type:t,start:r,end:n,name:i,data:o})=>{const a=e.throttledAddEvent({type:rt.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 ln(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(()=>(cn(e,[r]),!1)))}}function un(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Rr||!e.getOptions()._experiments.traceInternals)&&(0,l.isSentryRequestUrl)(t,(0,s.getClient)())}(e,t.name)||e.addUpdate(()=>(cn(e,[t]),!0)))}function dn(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,C.serializeFormData)(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function pn(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function fn(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 hn(e,t){if(!t)return null;const{startTimestamp:r,endTimestamp:n,url:i,method:o,statusCode:a,request:s,response:c}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:{method:o,statusCode:a,request:s,response:c}}}function mn(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function gn(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>L,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,L);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 yn(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 vn(e,t){const r=function(e,t=M.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(M.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,S.stringMatchesSomePattern)(r,t)}async function bn(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:l,response_body_size:u}=e.data,d=vn(a,r.networkDetailAllowUrls)&&!vn(a,r.networkDetailDenyUrls),p=d?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){const i=r?function(e,t){if(1===e.length&&"string"!=typeof e[0])return Sn(e[0],t);
50if(2===e.length)return Sn(e[1],t);return{}}(r,t):{};if(!e)return gn(i,n,void 0);const o=(0,C.getFetchRequestArgBody)(r),[a,s]=(0,C.getBodyString)(o,kr),c=gn(i,n,a);if(s)return fn(c,s);return c}(r,t.input,l):mn(l),f=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,i){if(!e&&void 0!==i)return mn(i);const o=n?_n(n.headers,r):{};if(!n||!t&&void 0!==i)return gn(o,i,void 0);const[a,s]=await async function(e){const t=function(e){try{return e.clone()}catch(e){Rr&&kr.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,P.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?(Rr&&kr.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Rr&&kr.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?dn(e):r;return n?gn(i,o,t?e:void 0):mn(o)}catch(e){return Rr&&kr.exception(e,"Failed to serialize response body"),gn(i,r,void 0)}}(a,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:o});if(s)return fn(c,s);return c}(d,r,t.response,u);return{startTimestamp:i,endTimestamp:o,url:a,method:s,statusCode:c,request:p,response:f}}(e,t,r),i=hn("resource.fetch",n);un(r.replay,i)}catch(e){Rr&&kr.exception(e,"Failed to capture fetch breadcrumb")}}function _n(e,t){const r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function Sn(e,t){if(!e)return{};const r=e.headers;return r?r instanceof Headers?_n(r,t):Array.isArray(r)?{}:yn(r,t):{}}async function En(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:l,status_code:u=0,request_body_size:d,response_body_size:p}=e.data;if(!c)return null;if(!s||!vn(c,r.networkDetailAllowUrls)||vn(c,r.networkDetailDenyUrls)){return{startTimestamp:i,endTimestamp:o,url:c,method:l,statusCode:u,request:mn(d),response:mn(p)}}const f=s[I.SENTRY_XHR_DATA_KEY],h=f?yn(f.request_headers,r.networkRequestHeaders):{},m=yn((0,C.parseXhrResponseHeaders)(s),r.networkResponseHeaders),[g,y]=r.networkCaptureBodies?(0,C.getBodyString)(a,kr):[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 Rr&&kr.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Rr&&kr.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return Rr&&kr.warn("Failed to get xhr response body",...t),[void 0]}(s):[void 0],_=gn(h,d,g),S=gn(m,p,v);return{startTimestamp:i,endTimestamp:o,url:c,method:l,statusCode:u,request:y?fn(_,y):_,response:b?fn(S,b):S}}(e,t,r),i=hn("resource.xhr",n);un(r.replay,i)}catch(e){Rr&&kr.exception(e,"Failed to capture xhr breadcrumb")}}function wn(e,t){const{xhr:r,input:n}=t;if(!r)return;const i=dn(n),o=r.getResponseHeader("content-length")?pn(r.getResponseHeader("content-length")):function(e,t){try{return dn("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 Tn(e){const t=(0,s.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)&&(wn(t,r),En(t,r,e)),function(e){return"fetch"===e.category}(t)&&function(e){return void 0!==e?.input}(r)&&(!function(e,t){const{input:r,response:n}=t,i=dn(r?(0,C.getFetchRequestArgBody)(r):void 0),o=n?pn(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),bn(t,r,e))}
50catch(e){Rr&&kr.exception(e,"Error when enriching network breadcrumb")}}(s,e,t))}catch{}}function xn(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 On=h.GLOBAL_OBJ.navigator;function An(e){let t=!1;return(r,n)=>{if(!e.checkAndHandleExpiredSession())return void(Rr&&kr.warn("Received replay event after session expired."));const i=n||!t;t=!0,function(e){const t=e.data;if(!(e.type===rt.IncrementalSnapshot&&t&&"object"==typeof t&&"source"in t&&t.source===nt.Mutation&&"attributes"in t&&Array.isArray(t.attributes)))return;for(const e of t.attributes){const t=Jt.mirror.getNode(e.id),r=t&&Jt.mirror.getMeta(t);if(r?.type===fr.Element)for(const[t,n]of Object.entries(e.attributes))null===n?delete r.attributes[t]:r.attributes[t]=n}}(r),e.clickDetector&&dr(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!Kr(e,r,i))return!0;if(!i)return!1;const t=e.session;if(function(e,t){if(!t||0!==e.session?.segmentId)return;Kr(e,function(e){const t=e.getOptions();return{type:rt.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&&!t.dirty){const r=e.eventBuffer.getEarliestTimestamp();r&&(Rr&&kr.log(`Updating session start time to earliest event in buffer to ${new Date(r)}`),t.started=r,e.getOptions().stickySession&&zr(t))}return t?.previousSessionId||"session"===e.recordingMode&&e.flush(),!0})}}async function Rn({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:l,errorIds:u,traceIds:d,initialTimestamp:p}=n,f=(0,s.getClient)(),h=(0,s.getCurrentScope)(),m=f?.getTransport(),g=f?.getDsn();if(!(f&&m&&g&&o.sampled))return Promise.resolve({});const y={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:i/1e3,error_ids:u,trace_ids:d,urls:l,replay_id:t,segment_id:r,replay_type:o.sampled},v=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,c.prepareEvent)(e.getOptions(),n,i,t,e,(0,s.getIsolationScope)());if(!o)return null;e.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript";const a=e.getSdkMetadata(),{name:l,version:u,settings:d}=a?.sdk||{};return o.sdk={...o.sdk,name:l||"sentry.javascript.unknown",version:u||"0.0.0",settings:d},o}({scope:h,client:f,replayId:t,event:y});if(!v)return f.recordDroppedEvent("event_processor","replay"),Rr&&kr.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete v.sdkProcessingMetadata;const b=function(e,t,r,n){return(0,w.createEnvelope)((0,w.createEventEnvelopeHeaders)(e,(0,w.getSdkMetadataForEnvelopeHeader)(e),n,r),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(v,a,g,f.getOptions().tunnel);let _;try{_=await m.send(b)}catch(e){const t=new Error(N);try{t.cause=e}catch{}throw t}const S=(0,T.updateRateLimits)({},_);if((0,T.isRateLimited)(S,"replay"))throw new In(S);if("number"==typeof _.statusCode&&(_.statusCode<200||_.statusCode>=300))throw new Pn(_.statusCode);return _}
50class Pn extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class In extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class Cn extends Error{constructor(){super("Session is too long, not sending replay")}}async function kn(e,t={count:0,interval:5e3}){const{recordingData:r,onError:n}=e;if(r.length)try{return await Rn(e),!0}catch(r){if(r instanceof Pn||r instanceof In)throw r;if((0,a.setContext)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){const e=new Error(`${N} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{(0,P.setTimeout)(async()=>{try{await kn(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}const Mn="__THROTTLED";function Dn(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":Mn}i=!1;const s=n.get(a)||0;return n.set(a,s+1),e(...o)}}class Nn{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){return(0,p.debounce)(e,t,{...r,setTimeoutImpl:P.setTimeout})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Dn((e,t)=>function(e,t,r){return Jr(e,t)?Yr(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 cr(this,i)),Rr){const t=e._experiments;kr.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===M.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const e=pr({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{const e=pr({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{vr(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){Rr&&kr.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",Rr&&kr.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):Rr&&kr.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(Rr&&kr.log("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(Rr&&kr.log("Buffering is in progress, call `flush()` to save the replay"));Rr&&kr.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Wr({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(Rr&&kr.log("Buffering is in progress, call `flush()` to save the replay"));Rr&&kr.infoTick("Starting replay in buffer mode");const e=Wr({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=Jt({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:An(this),.../iPhone|iPad|iPod/i.test(On?.userAgent??"")||/Macintosh/i.test(On?.userAgent??"")&&On?.maxTouchPoints&&On?.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)return;this._isEnabled=!1,this.recordingMode="buffer";const r=t??"manual";(0,s.getClient)()?.emit("replayEnd",{sessionId:this.session?.id,reason:r});try{Rr&&kr.log(`Stopping Replay triggered by ${r}`),on(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,Ur(this)}catch(e){this.handleException(e)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Rr&&kr.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Rr&&kr.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Rr&&kr.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession(),an(this.session.id)),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!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(e){if(!e||!1!==this.session?.sampled)return this.session?.id}
50checkAndHandleExpiredSession(){if(!this._lastActivity||!$r(this._lastActivity,this.timeouts.sessionIdlePause)||"session"!==this.session?.sampled)return!!this._checkSession();this.pause()}setInitialState(){const e=`${M.location.pathname}${M.location.hash}${M.location.search}`,t=`${M.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===Mn){const e=pr({category:"replay.throttled"});this.addUpdate(()=>!Kr(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){const e=this.lastActiveSpan||(0,u.getActiveSpan)(),t=e&&(0,u.getRootSpan)(e),r=(t&&(0,u.spanToJSON)(t).data||{})[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&r&&["route","custom"].includes(r))return(0,u.spanToJSON)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Br({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&(0,s.getClient)()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),"session"===this.recordingMode&&this.session&&an(this.session.id)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,r=Wr({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!qr(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(e.id))}_addListeners(){try{M.document.addEventListener("visibilitychange",this._handleVisibilityChange),M.addEventListener("blur",this._handleWindowBlur),M.addEventListener("focus",this._handleWindowFocus),M.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=(0,s.getClient)();(0,A.addClickKeypressInstrumentationHandler)(gr(e)),(0,R.addHistoryInstrumentationHandler)(ln(e)),rn(e),Tn(e);const r=sn(e);(0,a.addEventProcessor)(r),t&&(t.on("beforeSendEvent",tn(e)),t.on("afterSendEvent",en(e)),t.on("createDsc",t=>{const r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",async(t,r)=>{const n=e.getSessionId();r?.includeReplay&&e.isEnabled()&&n&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=n)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),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,O.addPerformanceInstrumentationHandler)(e,r))}),n.push((0,O.addLcpInstrumentationHandler)(_r(wr,e)),(0,O.addClsInstrumentationHandler)(_r(xr,e)),(0,O.addInpInstrumentationHandler)(_r(Or,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{M.document.removeEventListener("visibilitychange",this._handleVisibilityChange),M.removeEventListener("blur",this._handleWindowBlur),M.removeEventListener("focus",this._handleWindowFocus),M.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}
50_doChangeToBackgroundTasks(e){if(!this.session)return;qr(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})?on():(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Rr&&kr.log("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:rt.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(Sr).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(cn(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(cn(e,[xn(M.performance.memory)]))}catch{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 Cn;const r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await kn({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:"sendError"});const t=(0,s.getClient)();if(t){let r;r=e instanceof In?"ratelimit_backoff":e instanceof Cn?"invalid":"send_error",t.recordDroppedEvent(r,"replay")}}}else Rr&&kr.error("No session or eventBuffer found to flush.")}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Rr&&kr.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 Rr&&kr.log(`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&&Rr&&kr.log("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&&zr(this.session)}_onMutationHandler(e){const{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{const r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),n=t.join(",");return r?.matches(n)}))return!1;const r=e.length,n=this._options.mutationLimit,i=n&&r>n;if(r>this._options.mutationBreadcrumbLimit||i){const e=pr({category:"replay.mutations",data:{count:r,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function Ln(e,t){return[...e,...t].join(",")}const Fn='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Bn=["content-length","content-type","accept"],jn=Symbol.for("sentry__originalRequestBody");let Un=!1,Hn=!1;const zn=e=>
50new Vn(e);class Vn{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:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:y=[],networkCaptureBodies:v=!0,networkRequestHeaders:b=[],networkResponseHeaders:_=[],mask:S=[],maskAttributes:E=["title","placeholder","aria-label"],unmask:w=[],block:T=[],unblock:x=[],ignore:O=[],maskFn:A,beforeAddRecordingEvent:R,beforeErrorSampling:P,onError:I,attachRawBodyFromRequest:C=!1}={}){this.name="Replay";const k=function({mask:e,unmask:t,block:r,unblock:n,ignore:i}){return{maskTextSelector:Ln(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Ln(t,[]),blockSelector:Ln(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:Ln(n,[]),ignoreSelector:Ln(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:S,unmask:w,block:T,unblock:x,ignore:O});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:A,maskInputFn:A,maskAttributeFn:(e,t,r)=>function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:o}){if(i.unmaskTextSelector&&e.matches(i.unmaskTextSelector))return o;const a=r.includes(t),s=n&&"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"");return a||s?o.replace(/[\S]/g,"*"):o}({maskAttributes:E,maskAllText:c,privacyOptions:k,key:e,value:t,el:r}),...k,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:Boolean(s.recordCrossOriginIframes)},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,5e4),maxReplayDuration:Math.min(n,j),stickySession:i,useCompression:o,workerUrl:a,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:g,networkDetailDenyUrls:y,networkCaptureBodies:v,networkRequestHeaders:Gn(b),networkResponseHeaders:Gn(_),beforeAddRecordingEvent:R,beforeErrorSampling:P,onError:I,attachRawBodyFromRequest:C,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Fn}`:Fn,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&(0,m.isBrowser)())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Un}set _isInitialized(e){Un=e}afterAllSetup(e){(0,m.isBrowser)()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("undefined"==typeof Request||Hn)return;const e=Request;try{const t=function(t,r){const n=new e(t,r);return null!=r?.body&&(n[jn]=r.body),n};t.prototype=e.prototype,h.GLOBAL_OBJ.Request=t,Hn=!0}catch{}}(),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,reason:"manual"}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}processSpan(e){const t=this.getReplayId(!0);t&&((0,i.safeSetSpanJSONAttributes)(e,{"sentry.replay_id":t}),"buffer"===this.getRecordingMode()&&(0,i.safeSetSpanJSONAttributes)(e,{"sentry._internal.replay_is_buffering":!0}))}_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,...e},i=(0,d.parseSampleRate)(r.replaysSessionSampleRate),o=(0,d.parseSampleRate)(r.replaysOnErrorSampleRate);null==i&&null==o&&(0,g.consoleSandbox)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")});null!=i&&(n.sessionSampleRate=i);null!=o&&(n.errorSampleRate=o);return n}(this._initialOptions,e);this._replay=new Nn({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function Gn(e){return[...Bn,...e.map(e=>e.toLowerCase())]}function $n(){const e=(0,s.getClient)();return e?.getIntegrationByName("Replay")}},(e,t,r)=>{"use strict";function n(e,t,r){let n,i,o;const a=r?.maxWait?Math.max(r.maxWait,t):0,s=r?.setTimeoutImpl||setTimeout;function c(){return l(),n=e(),n}function l(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function u(){return i&&clearTimeout(i),i=s(c,t),a&&void 0===o&&(o=s(c,a)),n}return u.cancel=l,u.flush=function(){return void 0!==i||void 0!==o?c():n},u}r.r(t),r.d(t,{debounce:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{replayCanvasIntegration:()=>L});var n=r(1389),i=Object.defineProperty,o=(e,t,r)=>((e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);class a{constructor(){o(this,"idNodeMap",new Map),o(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);
50this.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 s(e,t,r=1/0,n=0){return e?e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:s(e.parentNode,t,r,n+1):-1}function c(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}}}const l="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 u={map:{},getId:()=>(console.error(l),-1),getNode:()=>(console.error(l),null),removeNodeFromMap(){console.error(l)},has:()=>(console.error(l),!1),reset(){console.error(l)}};function d(e,t,r,n,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set(e){y(()=>{r.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>d(e,t,o||{},!0)}function p(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()=>{}}}function f(e,t,r,n,i){if(!e)return!1;const o=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!o)return!1;const a=c(t,r);if(!i){const e=n&&o.matches(n);return a(o)&&!e}const l=s(o,a);let u=-1;return!(l<0)&&(n&&(u=s(o,c(null,n))),l>-1&&u<0||l<u)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(u=new Proxy(u,{get:(e,t,r)=>("map"===t&&console.error(l),Reflect.get(e,t,r))})),Date.now().toString();const h={};function m(e){const t=h[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 h[e]=n.bind(window)}function g(...e){return m("requestAnimationFrame")(...e)}function y(...e){return m("setTimeout")(...e)}var v=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(v||{});let b;const _=e=>{if(!b)return e;return(...t)=>{try{return e(...t)}catch(e){if(b&&!0===b(e))return()=>{};throw e}}};for(var S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E="undefined"==typeof Uint8Array?[]:new Uint8Array(256),w=0;w<64;w++)E[S.charCodeAt(w)]=w;const T=new Map;const x=(e,t,r)=>{if(!e||!R(e,t)&&"object"!=typeof e)return;const n=function(e,t){let r=T.get(e);return r||(r=new Map,T.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name);let i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i};function O(e,t,r){if(e instanceof Array)return e.map(e=>O(e,t,r));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){const t=e.constructor.name,r=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=S[r[t]>>2],i+=S[(3&r[t])<<4|r[t+1]>>4],i+=S[(15&r[t+1])<<2|r[t+2]>>6],i+=S[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e);return{rr_type:t,base64:r}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[O(e.buffer,t,r),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:r}=e;return{rr_type:t,src:r}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[O(e.data,t,r),e.width,e.height]}}if(R(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:x(e,t,r)}}return e}const A=(e,t,r)=>e.map(e=>O(e,t,r)),R=(e,t)=>{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]);return Boolean(r.find(r=>e instanceof t[r]))};function P(e,t,r,n,i){const o=[];try{const a=p(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o,...a){if(!f(this,t,r,n,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(o);if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e))if(a[0]&&"object"==typeof a[0]){const e=a[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o,...a])}});o.push(a)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>
50{o.forEach(e=>e())}}function I(e,t,r,n,i,o,a,s){const c=[],l=Object.getOwnPropertyNames(e);for(const a of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if("function"!=typeof e[a])continue;const l=p(e,a,function(e){return function(...c){const l=e.apply(this,c);if(x(l,s,this),"tagName"in this.canvas&&!f(this.canvas,n,i,o,!0)){const e=A(c,s,this),n={type:t,property:a,args:e};r(this.canvas,n)}return l}});c.push(l)}catch{const n=d(e,a,{set(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});c.push(n)}return c}class C{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{enableManualSnapshot:t,sampling:r="all",win:n,recordCanvas:i,errorHandler:o}=e;e.sampling=r,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,o&&(b=o),(i&&"number"==typeof r||t)&&(this.worker=this.initFPSWorker()),this.addWindow(n),t||_(()=>{i&&"all"===r&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),i&&"number"==typeof r&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){const{sampling:t="all",blockClass:r,blockSelector:n,unblockSelector:i,recordCanvas:o,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(e)){if(a)return this.windowsSet.add(e),void this.windows.push(new WeakRef(e));_(()=>{if(o&&"all"===t&&this.initCanvasMutationObserver(e,r,n,i),o&&"number"==typeof t){const t=P(e,r,n,i,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){t?.skipRequestAnimationFrame?this.takeSnapshot(performance.now(),!0,e):g(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){const e=new Worker(function(){const e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());return e.onmessage=e=>{const t=e.data,{id:r}=t;if(this.snapshotInProgressMap.set(r,!1),!("base64"in t))return;const{base64:n,type:i,width:o,height:a}=t;this.mutationCb({id:r,type:v["2D"],commands:[{property:"clearRect",args:[0,0,o,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0,o,a]}]})},e}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;const t=r=>{this.takeSnapshot(r,!1),e=g(t)};e=g(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,r,n){const i=P(e,t,r,n,!1),o=function(e,t,r,n,i){const o=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const s of a)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue;const a=p(t.CanvasRenderingContext2D.prototype,s,function(o){return function(...a){return f(this.canvas,r,n,i,!0)||y(()=>{const r=A(a,t,this);e(this.canvas,{type:v["2D"],property:s,args:r})},0),o.apply(this,a)}});o.push(a)}catch{const r=d(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:v["2D"],property:s,args:[t],setter:!0})}});o.push(r)}return()=>
50{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n),a=function(e,t,r,n,i){const o=[];return o.push(...I(t.WebGLRenderingContext.prototype,v.WebGL,e,r,n,i,0,t)),void 0!==t.WebGL2RenderingContext&&o.push(...I(t.WebGL2RenderingContext.prototype,v.WebGL2,e,r,n,i,0,t)),()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n,this.mirror);this.restoreHandlers.push(()=>{i(),o(),a()})}getCanvasElements(e,t,r){const n=[],i=i=>{i.querySelectorAll("canvas").forEach(i=>{f(i,e,t,r,!0)||n.push(i)})};for(const e of this.windows){const t=e.deref();let r;try{r=t&&t.document}catch{}r&&i(r)}for(const e of this.shadowDoms){const t=e.deref();t&&i(t)}return n}takeSnapshot(e,t,r){const{sampling:n,blockClass:i,blockSelector:o,unblockSelector:a,dataURLOptions:s,maxCanvasSize:c}=this.options,l=1e3/("all"===n?2:n||2);if(this.lastSnapshotTime&&e-this.lastSnapshotTime<l)return!1;this.lastSnapshotTime=e;return(r?[r]:this.getCanvasElements(i,o,a)).forEach(e=>{const r=this.mirror.getId(e);if(this.mirror.hasNode(e)&&e.width&&e.height&&!this.snapshotInProgressMap.get(r)){if(this.snapshotInProgressMap.set(r,!0),!t&&["webgl","webgl2"].includes(e.__context)){const t=e.getContext(e.__context);!1===t?.getContextAttributes()?.preserveDrawingBuffer&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:r,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:c},[t])}).catch(e=>{_(()=>{throw this.snapshotInProgressMap.delete(r),e})()})}}),!0}startPendingCanvasMutationFlusher(){g(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,g(e)};g(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),g(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;const n=r.map(e=>{const{type:t,...r}=e;return r}),{type:i}=r[0];this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}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)}var k,M;new a,(M=k||(k={}))[M.NotStarted=0]="NotStarted",M[M.Running=1]="Running",M[M.Stopped=2]="Stopped";const D={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},N=1280,L=(0,n.defineIntegration)((e={})=>{const[t,r]=e.maxCanvasSize||[],n={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,N):N,r?Math.min(r,N):N]};let i,o;const a=new Promise(e=>o=e);return{name:"ReplayCanvas",getOptions(){const{quality:e,enableManualSnapshot:t,maxCanvasSize:r}=n;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{const n=new C({...e,enableManualSnapshot:t,maxCanvasSize:r,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return i=n,o(n),n},...D[e]||D.medium}},async snapshot(e,t){(i||await a).snapshot(e,t)}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{elementTimingIntegration:()=>c,startTrackingElementTiming:()=>l});var n=r(1389),i=r(3261),o=r(420),a=r(1462),s=r(1484);const c=(0,n.defineIntegration)(()=>({name:"ElementTiming",setup(){(0,s.getBrowserPerformanceAPI)()&&(0,o.browserPerformanceTimeOrigin)()&&(0,a.addPerformanceInstrumentationHandler)("element",({entries:e})=>{for(const t of e){const e=t;if(!e.identifier)continue;const r=e.identifier,n=e.name,o=e.renderTime,a=e.loadTime,s={"sentry.origin":"auto.ui.browser.element_timing","ui.element.identifier":r};n&&(s["ui.element.paint_type"]=n),e.id&&(s["ui.element.id"]=e.id),e.element&&(s["ui.element.type"]=e.element.tagName.toLowerCase()),e.url&&(s["ui.element.url"]=e.url),e.naturalWidth&&(s["ui.element.width"]=e.naturalWidth),e.naturalHeight&&(s["ui.element.height"]=e.naturalHeight),o>0&&i.distribution("ui.element.render_time",o,{unit:"millisecond",attributes:s}),a>0&&i.distribution("ui.element.load_time",a,{unit:"millisecond",attributes:s})}})}}));function l(){return()=>{}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{reportPageLoaded:()=>i});var n=r(401);function i(e=(0,n.getClient)()){e?.emit("endPageloadSpan")}},(e,t,r)=>{"use strict";
50r.r(t),r.d(t,{setActiveSpanInBrowser:()=>a});var n=r(401),i=r(434),o=r(423);function a(e){const t=(0,i.getActiveSpan)();if(t===e)return;const r=(0,n.getCurrentScope)();e.end=new Proxy(e.end,{apply:(e,n,i)=>((0,o._setSpanForScope)(r,t),Reflect.apply(e,n,i))}),(0,o._setSpanForScope)(r,e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{spanStreamingIntegration:()=>d});var n=r(1442),i=r(1389),o=r(447),a=r(434),s=r(3305),c=r(432),l=r(413),u=r(1438);const d=(0,i.defineIntegration)(()=>({name:"SpanStreaming",beforeSetup(e){const t=e.getOptions();t.traceLifecycle||(u.DEBUG_BUILD&&l.debug.log('[SpanStreaming] setting `traceLifecycle` to "stream"'),t.traceLifecycle="stream")},setup(e){const t="SpanStreaming integration requires",r="Falling back to static trace lifecycle.",i=e.getOptions();if(!(0,c.hasSpanStreamingEnabled)(e))return i.traceLifecycle="static",void(u.DEBUG_BUILD&&l.debug.warn(`${t} \`traceLifecycle\` to be set to "stream"! ${r}`));const d=i.beforeSendSpan;if(d&&!(0,o.isStreamedBeforeSendSpanCallback)(d))return i.traceLifecycle="static",void(u.DEBUG_BUILD&&l.debug.warn(`${t} a beforeSendSpan callback using \`withStreamedSpan\`! ${r}`));const p=new s.SpanBuffer(e);e.on("afterSpanEnd",t=>{(0,a.spanIsSampled)(t)&&p.add((0,n.captureSpan)(t,e))}),e.on("afterSegmentSpanEnd",e=>{const t=e.spanContext().traceId;setTimeout(()=>{p.flush(t)},500)})}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SpanBuffer:()=>l});var n=r(409),i=r(413),o=r(1412),a=r(440),s=r(3306),c=r(3307);class l{constructor(e,t){this._traceBuckets=new Map,this._client=e;const{maxSpanLimit:r,flushInterval:n,maxTraceWeightInBytes:i}=t??{};this._maxSpanLimit=r&&r>0&&r<=1e3?r:1e3,this._flushInterval=n&&n>0?n:5e3,this._maxTraceWeight=i&&i>0?i:5e6,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(e=>{clearTimeout(e.timeout)}),this._traceBuckets.clear()})}add(e){const t=e.trace_id;let r=this._traceBuckets.get(t);r||(r={spans:new Set,size:0,timeout:(0,o.safeUnref)(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,r)),r.spans.add(e),r.size+=(0,c.estimateSerializedSpanSizeInBytes)(e),(r.spans.size>=this._maxSpanLimit||r.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&(n.DEBUG_BUILD&&i.debug.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((e,t)=>{this.flush(t)}))}flush(e){const t=this._traceBuckets.get(e);if(!t)return;if(!t.spans.size)return void this._removeTrace(e);const r=Array.from(t.spans),o=r[0]?._segmentSpan;if(!o)return n.DEBUG_BUILD&&i.debug.warn("No segment span reference found on span JSON, cannot compute DSC"),void this._removeTrace(e);const c=(0,a.getDynamicSamplingContextFromSpan)(o),l=r.map(e=>{const{_segmentSpan:t,...r}=e;return r}),u=(0,s.createStreamedSpanEnvelope)(l,c,this._client);n.DEBUG_BUILD&&i.debug.log(`Sending span envelope for trace ${e} with ${l.length} spans`),this._client.sendEnvelope(u).then(null,e=>{n.DEBUG_BUILD&&i.debug.error("Error while sending streamed span envelope:",e)}),this._removeTrace(e)}_removeTrace(e){const t=this._traceBuckets.get(e);t&&clearTimeout(t.timeout),this._traceBuckets.delete(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createStreamedSpanEnvelope:()=>s});var n=r(439),i=r(448),o=r(1403),a=r(415);function s(e,t,r){const s=r.getOptions(),l=r.getDsn(),u=s.tunnel,d=(0,i.getSdkMetadataForEnvelopeHeader)(s._metadata),p={sent_at:new Date((0,a.safeDateNow)()).toISOString(),...c(t)&&{trace:t},...d&&{sdk:d},...!!u&&l&&{dsn:(0,n.dsnToString)(l)}},f=r.getDataCollectionOptions().userInfo?"auto":"never",h=[{type:"span",item_count:e.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:f,infer_user_agent:f}},items:e}];return(0,i.createEnvelope)(p,[h])}function c(e){return!!e.trace_id&&!!e.public_key}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{estimateSerializedSpanSizeInBytes:()=>i});var n=r(435);function i(e){let t=156;if(t+=2*e.name.length,t+=(0,n.estimateTypedAttributesSizeInBytes)(e.attributes),e.links&&e.links.length>0){const r=e.links[0],i=r?.attributes;t+=(100+(i?(0,n.estimateTypedAttributesSizeInBytes)(i):0))*e.links.length}return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createStore:()=>c,makeBrowserOfflineTransport:()=>h,push:()=>u,shift:()=>p,unshift:()=>d});
50var n=r(3309),i=r(448),o=r(1423),a=r(1451);function s(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function c(e,t){const r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);const n=s(r);return e=>n.then(r=>e(r.transaction(t,"readwrite").objectStore(t)))}function l(e){return s(e.getAllKeys())}function u(e,t,r){return e(e=>l(e).then(n=>{if(!(n.length>=r))return e.put(t,Math.max(...n,0)+1),s(e.transaction)}))}function d(e,t,r){return e(e=>l(e).then(n=>{if(!(n.length>=r))return e.put(t,Math.min(...n,0)-1),s(e.transaction)}))}function p(e){return e(e=>l(e).then(t=>{const r=t[0];if(null!=r)return s(e.get(r)).then(t=>(e.delete(r),s(e.transaction).then(()=>t)))}))}function f(e){let t;function r(){return null==t&&(t=c(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{const n=(0,i.serializeEnvelope)(t);await u(r(),n,e.maxQueueSize||30)}catch{}},unshift:async t=>{try{const n=(0,i.serializeEnvelope)(t);await d(r(),n,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const e=await p(r());if(e)return(0,i.parseEnvelope)(e)}catch{}}}}function h(e=a.makeFetchTransport){return function(e){return t=>{const r=e({...t,createStore:f});return o.WINDOW.addEventListener("online",async e=>{await r.flush()}),r}}((0,n.makeOfflineTransport)(e))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MIN_DELAY:()=>l,START_DELAY:()=>u,makeOfflineTransport:()=>p});var n=r(409),i=r(413),o=r(448),a=r(415),s=r(1413),c=r(1412);const l=100,u=5e3,d=36e5;function p(e){function t(...e){n.DEBUG_BUILD&&i.debug.log("[Offline]:",...e)}return r=>{const n=e(r);if(!r.createStore)throw new Error("No `createStore` function was provided");const i=r.createStore(r);let p,f=u;function h(e){p&&clearTimeout(p),p=(0,c.safeUnref)(setTimeout(async()=>{p=void 0;const e=await i.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=new Date((0,a.safeDateNow)()).toISOString(),g(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))}function m(){p||(h(f),f=Math.min(2*f,d))}async function g(e,a=!1){if(!a&&(0,o.envelopeContainsItemType)(e,["replay_event","replay_recording"]))return await i.push(e),h(l),{};
50try{if(r.shouldSend&&!1===await r.shouldSend(e))throw new Error("Envelope not sent because `shouldSend` callback returned false");const t=await n.send(e);let i=l;if(t)if(t.headers?.["retry-after"])i=(0,s.parseRetryAfterHeader)(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])i=6e4;else if((t.statusCode||0)>=400)return t;return h(i),f=u,t}catch(n){if(await(c=e,d=n,p=f,!(0,o.envelopeContainsItemType)(c,["client_report"])&&(!r.shouldStore||r.shouldStore(c,d,p))))return a?await i.unshift(e):await i.push(e),m(),t("Error sending. Event queued.",n),{};throw n}var c,d,p}return r.flushAtStartup&&m(),{send:g,flush:e=>(void 0===e&&(f=u,h(l)),n.flush(e))}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserProfilingIntegration:()=>p});var n=r(1389),i=r(430),o=r(434),a=r(413),s=r(1438),c=r(1423),l=r(3311),u=r(3313),d=r(3312);const p=(0,n.defineIntegration)(()=>({name:"BrowserProfiling",setup(e){const t=e.getOptions(),r=new u.UIProfiler;if((0,d.hasLegacyProfiling)(t)||t.profileLifecycle||(t.profileLifecycle="manual"),(0,d.hasLegacyProfiling)(t)&&!t.profilesSampleRate)return void(s.DEBUG_BUILD&&a.debug.log("[Profiling] Profiling disabled, no profiling options found."));const n=(0,o.getActiveSpan)(),p=n&&(0,o.getRootSpan)(n);if((0,d.hasLegacyProfiling)(t)&&void 0!==t.profileSessionSampleRate&&s.DEBUG_BUILD&&a.debug.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),(0,d.hasLegacyProfiling)(t))p&&(0,d.isAutomatedPageLoadSpan)(p)&&(0,d.shouldProfileSpanLegacy)(p)&&(0,l.startProfileForSpan)(p),e.on("spanStart",e=>{const t=(0,o.getRootSpan)(e);e===t?(0,d.shouldProfileSpanLegacy)(e)&&(0,l.startProfileForSpan)(e):d.PROFILED_ROOT_SPANS.has(t)&&(0,d.setThreadAttributes)(e)}),e.on("beforeEnvelope",e=>{if(!(0,d.getActiveProfilesCount)())return;const t=(0,d.findProfiledTransactionsFromEnvelope)(e);if(!t.length)return;const r=[];for(const e of t){const t=e?.contexts,n=t?.profile?.profile_id,i=t?.profile?.start_timestamp;if("string"!=typeof n){s.DEBUG_BUILD&&a.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!n){s.DEBUG_BUILD&&a.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;const o=(0,d.takeProfileFromGlobalCache)(n);if(!o){s.DEBUG_BUILD&&a.debug.log(`[Profiling] Could not retrieve profile for span: ${n}`);continue}const c=(0,d.createProfilingEvent)(n,i,o,e);c&&r.push(c)}(0,d.addProfilesToEnvelope)(e,r)});else{const n=t.profileLifecycle;if(e.on("startUIProfiler",()=>r.start()),e.on("stopUIProfiler",()=>r.stop()),"manual"===n)r.initialize(e);else if("trace"===n){if(!(0,i.hasSpansEnabled)(t))return void(s.DEBUG_BUILD&&a.debug.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing."));r.initialize(e),p&&r.notifyRootSpanActive(p),c.WINDOW.setTimeout(()=>{const e=(0,o.getActiveSpan)(),t=e&&(0,o.getRootSpan)(e);t&&r.notifyRootSpanActive(t)},0)}}}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{startProfileForSpan:()=>d});var n=r(401),i=r(434),o=r(413),a=r(411),s=r(420),c=r(1438),l=r(1423),u=r(3312);function d(e){let t;(0,u.isAutomatedPageLoadSpan)(e)&&(t=1e3*(0,s.timestampInSeconds)());const r=(0,u.startJSSelfProfile)();if(!r)return;c.DEBUG_BUILD&&o.debug.log(`[Profiling] started profiling span: ${(0,i.spanToJSON)(e).description}`);const d=(0,a.uuid4)();let p=null;async function f(){if(e&&r){if(!p)return r.stop().then(t=>{h&&(l.WINDOW.clearTimeout(h),h=void 0),c.DEBUG_BUILD&&o.debug.log(`[Profiling] stopped profiling of span: ${(0,i.spanToJSON)(e).description}`),t?(p=t,(0,u.addProfileToGlobalCache)(d,t)):c.DEBUG_BUILD&&o.debug.log(`[Profiling] profiler returned null profile for: ${(0,i.spanToJSON)(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")}).catch(e=>{c.DEBUG_BUILD&&o.debug.log("[Profiling] error while stopping profiler:",e)});c.DEBUG_BUILD&&o.debug.log("[Profiling] profile for:",(0,i.spanToJSON)(e).description,"already exists, returning early")}}(0,n.getCurrentScope)().setContext("profile",{profile_id:d,start_timestamp:t}),u.PROFILED_ROOT_SPANS.add(e),(0,u.setThreadAttributes)(e);let h=l.WINDOW.setTimeout(()=>{c.DEBUG_BUILD&&o.debug.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,i.spanToJSON)(e).description),f()},u.MAX_PROFILE_DURATION_MS);const m=e.end.bind(e);e.end=function(){return e?(f().then(()=>{m()},()=>{m()}),e):m()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MAX_PROFILE_DURATION_MS:()=>B,PROFILED_ROOT_SPANS:()=>K,PROFILER_THREAD_ID_STRING:()=>g,PROFILER_THREAD_NAME:()=>y,addProfileToGlobalCache:()=>W,addProfilesToEnvelope:()=>M,applyDebugMetadata:()=>N,convertJSSelfProfileToSampledFormat:()=>k,createProfileChunkPayload:()=>P,createProfilePayload:()=>R,createProfilingEvent:()=>V,enrichWithThreadInformation:()=>A,findProfiledTransactionsFromEnvelope:()=>D,getActiveProfilesCount:()=>$,hasLegacyProfiling:()=>z,isAutomatedPageLoadSpan:()=>C,isValidSampleRate:()=>L,setThreadAttributes:()=>Y,shouldProfileSession:()=>H,shouldProfileSpanLegacy:()=>U,startJSSelfProfile:()=>j,takeProfileFromGlobalCache:()=>q,validateProfileChunk:()=>I});var n=r(401),i=r(434),o=r(441),a=r(405),s=r(413),c=r(411),l=r(420),u=r(448),d=r(453),p=r(1438),f=r(1423);const h=1e6,m="window"in a.GLOBAL_OBJ&&a.GLOBAL_OBJ.window===a.GLOBAL_OBJ&&"undefined"==typeof importScripts,g=String(0),y=m?"main":"worker",v=f.WINDOW.navigator;let b="",_="",S="",E=v?.userAgent||"",w="";const T=v?.language||v?.languages?.[0]||"";const x=v?.userAgentData;var O;function A(e){return function(e){return!("thread_metadata"in e)}(e)?k(e):e}function R(e,t,r,n){if("transaction"!==n.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==r)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${r} instead.`);const i=function(e){const t=e.contexts?.trace?.trace_id;return"string"==typeof t&&32!==t.length&&p.DEBUG_BUILD&&s.debug.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t?"":t}(n),a=A(r),u=t||("number"==typeof n.start_timestamp?1e3*n.start_timestamp:1e3*(0,l.timestampInSeconds)()),d="number"==typeof n.timestamp?1e3*n.timestamp:1e3*(0,l.timestampInSeconds)();return{event_id:e,timestamp:new Date(u).toISOString(),platform:"javascript",version:"1",release:n.release||"",environment:n.environment||o.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:f.WINDOW.navigator.userAgent},os:{name:b,version:_,build_number:E},device:{locale:T,model:w,manufacturer:E,architecture:S,is_emulator:!1},debug_meta:{images:N(r.resources)},profile:a,transactions:[{name:n.transaction||"",id:n.event_id||
50(0,c.uuid4)(),trace_id:i,active_thread_id:g,relative_start_ns:"0",relative_end_ns:(1e6*(d-u)).toFixed(0)}]}}function P(e,t,r){if(null==e)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);const n=function(e){const t=[];for(let r=0;r<e.frames.length;r++){const n=e.frames[r];n&&(t[r]={function:n.name,abs_path:"number"==typeof n.resourceId?e.resources[n.resourceId]:void 0,lineno:n.line,colno:n.column})}const r=[];for(let t=0;t<e.stacks.length;t++){const n=e.stacks[t];if(!n)continue;const i=[];let o=n;for(;o;)i.push(o.frameId),o=void 0===o.parentId?void 0:e.stacks[o.parentId];r[t]=i}const n=(0,l.browserPerformanceTimeOrigin)(),i="number"==typeof performance.timeOrigin?performance.timeOrigin:n||0,o=i-(n||i),a=[];for(let t=0;t<e.samples.length;t++){const r=e.samples[t];if(!r)continue;const n=(i+(r.timestamp-o))/1e3;a[t]={stack_id:r.stackId??0,thread_id:g,timestamp:n}}return{frames:t,stacks:r,samples:a,thread_metadata:{[g]:{name:y}}}}(e),i=t.getOptions(),o=t.getSdkMetadata?.()?.sdk;return{chunk_id:(0,c.uuid4)(),client_sdk:{name:o?.name??"sentry.javascript.browser",version:o?.version??"0.0.0"},profiler_id:r||(0,c.uuid4)(),platform:"javascript",version:"2",release:i.release??"",environment:i.environment??"production",debug_meta:{images:N(e.resources)},profile:n}}function I(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};const t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};const r=e.profile;return r?Array.isArray(r.frames)&&r.frames.length?Array.isArray(r.stacks)&&r.stacks.length?Array.isArray(r.samples)&&r.samples.length?{valid:!0}:{reason:"profile has no samples"}:{reason:"profile has no stacks"}:{reason:"profile has no frames"}:{reason:"missing profile data"}}catch(e){return{reason:`unknown validation error: ${e}`}}}function C(e){return"pageload"===(0,i.spanToJSON)(e).op}function k(e){let t,r=0;const n={samples:[],stacks:[],frames:[],thread_metadata:{[g]:{name:y}}},i=e.samples[0];if(!i)return n;const o=i.timestamp,a=(0,l.browserPerformanceTimeOrigin)(),s="number"==typeof performance.timeOrigin?performance.timeOrigin:a||0,c=s-(a||s);return e.samples.forEach((i,a)=>{if(void 0===i.stackId)return void 0===t&&(t=r,n.stacks[t]=[],r++),void(n.samples[a]={elapsed_since_start_ns:((i.timestamp+c-o)*h).toFixed(0),stack_id:t,thread_id:g});let s=e.stacks[i.stackId];const l=[];for(;s;){l.push(s.frameId);const t=e.frames[s.frameId];t&&void 0===n.frames[s.frameId]&&(n.frames[s.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),s=void 0===s.parentId?void 0:e.stacks[s.parentId]}const u={elapsed_since_start_ns:((i.timestamp+c-o)*h).toFixed(0),stack_id:r,thread_id:g};n.stacks[r]=l,n.samples[a]=u,r++}),n}function M(e,t){if(!t.length)return e;for(const r of t)e[1].push([{type:"profile"},r]);return e}function D(e){const t=[];return(0,u.forEachEnvelopeItem)(e,(e,r)=>{if("transaction"===r)for(let r=1;r<e.length;r++){const n=e[r];n?.contexts?.profile?.profile_id&&t.push(e[r])}}),t}function N(e){const t=(0,n.getClient)(),r=t?.getOptions(),i=r?.stackParser;return i?(0,d.getDebugImagesForResources)(i,e):[]}function L(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(p.DEBUG_BUILD&&s.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!0===e||!1===e||(!(e<0||e>1)||(p.DEBUG_BUILD&&s.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1))}"object"==typeof(O=x)&&null!==O&&"getHighEntropyValues"in O&&x.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(b=e.platform||"",S=e.architecture||"",w=e.model||"",_=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];E=`${t.brand} ${t.version}`}}).catch(e=>{});let F=!1;const B=3e4;function j(){const e=f.WINDOW.Profiler;if("function"!=typeof e)return void(p.DEBUG_BUILD&&s.debug.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."));const t=Math.floor(B/10);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){p.DEBUG_BUILD&&(s.debug.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),s.debug.log("[Profiling] Disabling profiling for current user session.")),F=!0}}function U(e){if(F)return p.DEBUG_BUILD&&s.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return p.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because root span was not sampled."),!1;const t=(0,n.getClient)(),r=t?.getOptions();if(!r)return p.DEBUG_BUILD&&s.debug.log("[Profiling] Profiling disabled, no options foun
50d."),!1;const i=r.profilesSampleRate;if(!L(i))return p.DEBUG_BUILD&&s.debug.warn("[Profiling] Discarding profile because of invalid sample rate."),!1;if(!i)return p.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1;return!!(!0===i||Math.random()<i)||(p.DEBUG_BUILD&&s.debug.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(i)})`),!1)}function H(e){if(F)return p.DEBUG_BUILD&&s.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if("trace"!==e.profileLifecycle&&"manual"!==e.profileLifecycle)return p.DEBUG_BUILD&&s.debug.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;const t=e.profileSessionSampleRate;return L(t)?t?Math.random()<=t:(p.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(p.DEBUG_BUILD&&s.debug.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}function z(e){return void 0!==e.profilesSampleRate}function V(e,t,r,n){return function(e){return e.samples.length<2?(p.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!e.frames.length||(p.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because it contains no frames"),!1)}(r)?R(e,t,r,n):null}const G=new Map;function $(){return G.size}function q(e){const t=G.get(e);return t&&G.delete(e),t}function W(e,t){if(G.set(e,t),G.size>30){const e=G.keys().next().value;void 0!==e&&G.delete(e)}}const K=new WeakSet;function Y(e){e.setAttribute("thread.id",g),e.setAttribute("thread.name",y)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{UIProfiler:()=>d});var n=r(401),i=r(434),o=r(439),a=r(413),s=r(411),c=r(448),l=r(1438),u=r(3312);class d{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){const t=e.getOptions().profileLifecycle,r=(0,u.shouldProfileSession)(e.getOptions());l.DEBUG_BUILD&&a.debug.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),r||l.DEBUG_BUILD&&a.debug.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=(0,s.uuid4)(),this._client=e,this._sessionSampled=r,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e),e.on("spanStart",e=>{this._isRunning&&(0,u.setThreadAttributes)(e)})}start(){"trace"!==this._lifecycleMode?this._isRunning?l.DEBUG_BUILD&&a.debug.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op."):this._sessionSampled?this._beginProfiling():l.DEBUG_BUILD&&a.debug.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op."):l.DEBUG_BUILD&&a.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.')}stop(){"trace"!==this._lifecycleMode?this._isRunning?this._endProfiling():l.DEBUG_BUILD&&a.debug.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op."):l.DEBUG_BUILD&&a.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.')}notifyRootSpanActive(e){if("trace"!==this._lifecycleMode||!this._sessionSampled)return;const t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);const r=this._activeRootSpanIds.size;1===r&&(l.DEBUG_BUILD&&a.debug.log("[Profiling] Detected already active root span during setup. Active root spans now:",r),this._beginProfiling()),this._isRunning&&(0,u.setThreadAttributes)(e)}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,l.DEBUG_BUILD&&a.debug.log("[Profiling] Started profiling with profiler ID:",this._profilerId),(0,n.getGlobalScope)().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler)return l.DEBUG_BUILD&&a.debug.log("[Profiling] Failed to start JS Profiler; stopping."),void this._resetProfilerInfo();this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{l.DEBUG_BUILD&&a.debug.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),"manual"===this._lifecycleMode&&(0,n.getGlobalScope)().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled)return void(l.DEBUG_BUILD&&a.debug.log("[Profiling] Span not profiled because of negative sampling decision for user session."));if(e!==(0,i.getRootSpan)(e))return;if(!e.isRecording())return void(l.DEBUG_BUILD&&a.debug.log("[Profiling] Discarding profile because root span was not sampled."));const t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);const r=this._activeRootSpanIds.size;1===r&&(l.DEBUG_BUILD&&a.debug.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${r}).`),this._beginProfiling())}),e.on("spanEnd",e=>{if(!this._sessionSampled)return;const t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);const r=this._activeRootSpanIds.size;l.DEBUG_BUILD&&a.debug.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${r}).`),0===r&&(this._collectCurrentChunk().catch(e=>{l.DEBUG_BUILD&&a.debug.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,(0,n.getGlobalScope)().setContext("profile",{})}
50_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);const t=setTimeout(()=>this._onRootSpanTimeout(e),3e5);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(!1===this._profiler?.stopped)return;const e=(0,u.startJSSelfProfile)();e?this._profiler=e:l.DEBUG_BUILD&&a.debug.log("[Profiling] Failed to start JS Profiler.")}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{l.DEBUG_BUILD&&a.debug.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",e)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler)return void this._resetProfilerInfo();this._startPeriodicChunking()}},6e4))}_onRootSpanTimeout(e){this._rootSpanTimeouts.has(e)&&(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&(l.DEBUG_BUILD&&a.debug.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),0===this._activeRootSpanIds.size&&this._endProfiling()))}async _collectCurrentChunk(){const e=this._profiler;if(this._profiler=void 0,e)try{const t=await e.stop(),r=(0,u.createProfileChunkPayload)(t,this._client,this._profilerId),n=(0,u.validateProfileChunk)(r);if("reason"in n)return void(l.DEBUG_BUILD&&a.debug.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",n.reason));this._sendProfileChunk(r),l.DEBUG_BUILD&&a.debug.log("[Profiling] Collected browser profile chunk.")}catch(e){l.DEBUG_BUILD&&a.debug.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){const t=this._client,r=(0,c.getSdkMetadataForEnvelopeHeader)(t.getSdkMetadata?.()),n=t.getDsn(),i=t.getOptions().tunnel,u=(0,c.createEnvelope)({event_id:(0,s.uuid4)(),sent_at:(new Date).toISOString(),...r&&{sdk:r},...!!i&&n&&{dsn:(0,o.dsnToString)(n)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(u).then(null,e=>{l.DEBUG_BUILD&&a.debug.error("Error while sending profile chunk envelope:",e)})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{INTEGRATION_NAME:()=>c,SPOTLIGHT_IGNORE_SPANS:()=>l,spotlightBrowserIntegration:()=>u});var n=r(1389),i=r(413),o=r(448),a=r(1452),s=r(1438);const c="SpotlightBrowser",l=[{op:"ui.interaction.click",name:"#sentry-spotlight"}];const u=(0,n.defineIntegration)((e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:c,setup:()=>{s.DEBUG_BUILD&&i.debug.log("Using Sidecar URL",t)},beforeSetup(e){const t=e.getOptions();t.ignoreSpans=[...t.ignoreSpans||[],...l]},afterAllSetup:e=>{!function(e,t){const r=(0,a.getNativeImplementation)("fetch");let n=0;e.on("beforeEnvelope",e=>{n>3?i.debug.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",n):r(t,{method:"POST",body:(0,o.seri
50alizeEnvelope)(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(n=0)},e=>{n++,i.debug.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}(e,t)}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{buildLaunchDarklyFlagUsedHandler:()=>a,launchDarklyIntegration:()=>o});var n=r(1389),i=r(3257);const o=(0,n.defineIntegration)(()=>({name:"LaunchDarkly",processEvent:(e,t,r)=>(0,i._INTERNAL_copyFlagsFromScopeToEvent)(e)}));function a(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,r)=>{(0,i._INTERNAL_insertFlagToScope)(e,t.value),(0,i._INTERNAL_addFeatureFlagToActiveSpan)(e,t.value)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OpenFeatureIntegrationHook:()=>a,openFeatureIntegration:()=>o});var n=r(1389),i=r(3257);const o=(0,n.defineIntegration)(()=>({name:"OpenFeature",processEvent:(e,t,r)=>(0,i._INTERNAL_copyFlagsFromScopeToEvent)(e)}));class a{after(e,t){(0,i._INTERNAL_insertFlagToScope)(t.flagKey,t.value),(0,i._INTERNAL_addFeatureFlagToActiveSpan)(t.flagKey,t.value)}error(e,t,r){(0,i._INTERNAL_insertFlagToScope)(e.flagKey,e.defaultValue),(0,i._INTERNAL_addFeatureFlagToActiveSpan)(e.flagKey,e.defaultValue)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{unleashIntegration:()=>c});var n=r(1389),i=r(3257),o=r(413),a=r(412),s=r(1438);const c=(0,n.defineIntegration)(({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;(0,a.fill)(t,"isEnabled",l)},processEvent:(e,t,r)=>(0,i._INTERNAL_copyFlagsFromScopeToEvent)(e)}));function l(e){return function(...t){const r=t[0],n=e.apply(this,t);return"string"==typeof r&&"boolean"==typeof n?((0,i._INTERNAL_insertFlagToScope)(r,n),(0,i._INTERNAL_addFeatureFlagToActiveSpan)(r,n)):s.DEBUG_BUILD&&o.debug.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${r} (${typeof r}), result: ${n} (${typeof n})`),n}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{growthbookIntegration:()=>i});var n=r(3319);const i=({growthbookClass:e})=>(0,n.growthbookIntegration)({growthbookClass:e})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{growthbookIntegration:()=>a});var n=r(1389),i=r(3257),o=r(412);const a=(0,n.defineIntegration)(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){const t=e.prototype;"function"==typeof t.isOn&&(0,o.fill)(t,"isOn",s),"function"==typeof t.getFeatureValue&&(0,o.fill)(t,"getFeatureValue",s)},processEvent:(e,t,r)=>(0,i._INTERNAL_copyFlagsFromScopeToEvent)(e)}));function s(e){return function(...t){const r=t[0],n=e.apply(this,t);return"string"==typeof r&&"boolean"==typeof n&&((0,i._INTERNAL_insertFlagToScope)(r,n),(0,i._INTERNAL_addFeatureFlagToActiveSpan)(r,n)),n}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{statsigIntegration:()=>o});var n=r(1389),i=r(3257);const o=(0,n.defineIntegration)(({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{(0,i._INTERNAL_insertFlagToScope)(e.gate.name,e.gate.value),(0,i._INTERNAL_addFeatureFlagToActiveSpan)(e.gate.name,e.gate.value)})},processEvent:(e,t,r)=>(0,i._INTERNAL_copyFlagsFromScopeToEvent)(e)}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{diagnoseSdkConnectivity:()=>o});var n=r(426),i=r(401);async function o(){const e=(0,i.getClient)();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";const t=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await(0,n.suppressTracing)(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{INTEGRATION_NAME:()=>p,registerWebWorker:()=>m,webWorkerIntegration:()=>f});var n=r(400),i=r(401),o=r(1389),a=r(414),s=r(413),c=r(1438),l=r(1421),u=r(1423),d=r(1444);const p="WebWorker",f=(0,o.defineIntegration)(({worker:e})=>({name:p,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>h(e))},addWorker:e=>h(e)}));function h(e){e.addEventListener("message",e=>{if(function(e){if(!(0,a.isPlainObject)(e)||!0!==e._sentryMessage)return!1;const t="_sentryDebugIds"in e,r="_sentryModuleMetadata"in e,n="_sentryWorkerError"in e,i="_sentryWasmImages"in e;if(!(t||r||n||i))return!1;if(t&&!(0,a.isPlainObject)(e._sentryDebugIds)&&void 0!==e._sentryDebugIds)return!1;if(r&&!(0,a.isPlainObject)(e._sentryModuleMetadata)&&void 0!==e._sentryModuleMetadata)return!1;if(n&&!(0,a.isPlainObject)(e._sentryWorkerError))return!1;if(i&&(!Array.isArray(e._sentryWasmImages)||!e._sentryWasmImages.every(e=>(0,a.isPlainObject)(e)&&"string"==typeof e.code_file)))return!1;return!0}
50(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(c.DEBUG_BUILD&&s.debug.log("Sentry debugId web worker message received",e.data),u.WINDOW._sentryDebugIds={...e.data._sentryDebugIds,...u.WINDOW._sentryDebugIds}),e.data._sentryModuleMetadata&&(c.DEBUG_BUILD&&s.debug.log("Sentry module metadata web worker message received",e.data),u.WINDOW._sentryModuleMetadata={...e.data._sentryModuleMetadata,...u.WINDOW._sentryModuleMetadata}),e.data._sentryWasmImages){c.DEBUG_BUILD&&s.debug.log("Sentry WASM images web worker message received",e.data);const t=u.WINDOW._sentryWasmImages||[],r=e.data._sentryWasmImages.filter(e=>(0,a.isPlainObject)(e)&&"string"==typeof e.code_file&&!t.some(t=>t.code_file===e.code_file));u.WINDOW._sentryWasmImages=[...t,...r]}e.data._sentryWorkerError&&(c.DEBUG_BUILD&&s.debug.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){const t=(0,i.getClient)();if(!t)return;const r=t.getOptions().stackParser,o=t.getOptions().attachStacktrace,u=e.reason,p=(0,a.isPrimitive)(u)?(0,d._eventFromRejectionWithPrimitive)(u):(0,l.eventFromUnknownInput)(r,u,void 0,o,!0);p.level="error",e.filename&&(p.contexts={...p.contexts,worker:{filename:e.filename}});(0,n.captureEvent)(p,{originalException:u,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),c.DEBUG_BUILD&&s.debug.log("Captured worker unhandled rejection",u)}(e.data._sentryWorkerError))}})}function m({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{const r={reason:(0,d._getUnhandledRejectionError)(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:r}),c.DEBUG_BUILD&&s.debug.log("[Sentry Worker] Forwarding unhandled rejection to parent",r)}),c.DEBUG_BUILD&&s.debug.log("[Sentry Worker] Registered worker with unhandled rejection handling")}},,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterInstance:()=>c});var n=r(914),i=r(1013),o=r(1018);function a(e,t,r,i){(e.paint??=new n.Paint).fill={color:n.AnimatableColor.create(void 0,{value:t}),enable:i,opacity:r}}function s(e,t,r,i){(e.paint??=new n.Paint).stroke={color:n.AnimatableColor.create(void 0,{value:t}),opacity:r,width:i}}class c{fill;name;options;position;size;spawnFillColor;spawnFillEnabled;spawnFillOpacity;spawnStrokeColor;spawnStrokeOpacity;spawnStrokeWidth;#p;#Rt;#Pt;#It;#O;#Ct;#kt;#Mt;#Dt;#Nt;#j;#Lt;#D;#f;#Ft;#_e;#Bt;#jt;#Ut;#Ht;constructor(e,t,r,o,a){this.#f=e,this.#p=t,this.#Ft=r,this.#Rt=0,this.#Pt=0,this.#It=0,this.#Dt=a,o instanceof i.Emitter?this.options=o:(this.options=new i.Emitter,this.options.load(o)),this.#Ut=t.retina.reduceFactor?(0,n.getRangeValue)(this.options.life.delay??0)*n.millisecondsToSeconds/t.retina.reduceFactor:1/0,this.position=this.#Dt??this.#at(),this.name=this.options.name,this.fill=this.options.fill,this.#kt=!this.options.life.wait,this.#Ht=!1;const s=(0,n.deepExtend)({},this.options.particles);if(s.move??={},s.move.direction??=this.options.direction,this.options.spawn.fill?.color&&(this.spawnFillColor=(0,n.rangeColorToHsl)(this.#f,this.options.spawn.fill.color)),this.options.spawn.stroke?.color&&(this.spawnStrokeColor=(0,n.rangeColorToHsl)(this.#f,this.options.spawn.stroke.color)),this.#D=!this.options.autoPlay,this.#Lt=s,this.#jt=this.#zt(),this.size=(0,n.getSize)(this.#jt,this.#p.canvas.size),this.#Nt=this.options.life.count??-1,this.#Mt=this.#Nt<=0,this.options.domId){const e=(0,n.safeDocument)().getElementById(this.options.domId);e&&(this.#j=new MutationObserver(()=>{this.resize()}),this.#_e=new ResizeObserver(()=>{this.resize()}),this.#j.observe(e,{attributes:!0,attributeFilter:["style","width","height"]}),this.#_e.observe(e))}const c=this.options.shape,l=this.#f.emitterShapeManager?.getShapeGenerator(c.type);l&&(this.#Bt=l.generate(this.#p,this.position,this.size,this.fill,c.options)),this.#p.dispatchEvent("emitterCreated",{emitter:this}),this.play()}externalPause(){this.#D=!0,this.pause()}externalPlay(){this.#D=!1,this.play()}
vendor: 4,587 bytes, lines 50-51
50async init(){await(this.#Bt?.init())}pause(){this.#D||(this.#Ct=void 0)}play(){if(this.#D)return;if(!(this.#Nt>0||this.#Mt)&&this.options.life.count||!(this.#kt||this.#It>=(this.#Ut??0)))return;const e=this.#p;if(void 0===this.#Ct){const t=(0,n.getRangeValue)(this.options.rate.delay);this.#Ct=e.retina.reduceFactor?t*n.millisecondsToSeconds/e.retina.reduceFactor:1/0}(this.#Nt>0||this.#Mt)&&this.#Vt()}resize(){const e=this.#Dt,t=this.#p;this.position=e&&(0,n.isPointInside)(e,t.canvas.size,n.Vector.origin)?e:this.#at(),this.#jt=this.#zt(),this.size=(0,n.getSize)(this.#jt,t.canvas.size),this.#Bt?.resize(this.position,this.size)}update(e){if(this.#D)return;const t=this.#p;this.#kt&&(this.#kt=!1,this.#It=this.#Ut??0,this.#Pt=this.#Ct??0),this.#Ht||(this.#Ht=!0,this.#Gt(this.options.startCount)),void 0!==this.#O&&(this.#Rt+=e.value,this.#Rt>=this.#O&&(this.pause(),void 0!==this.#Ut&&(this.#Ut=void 0),this.#Mt||this.#Nt--,this.#Nt>0||this.#Mt?(this.position=this.#at(),this.#Bt?.resize(this.position,this.size),this.#Ut=t.retina.reduceFactor?(0,n.getRangeValue)(this.options.life.delay??0)*n.millisecondsToSeconds/t.retina.reduceFactor:1/0):this.#$t(),this.#Rt-=this.#O,this.#O=void 0)),void 0!==this.#Ut&&(this.#It+=e.value,this.#It>=this.#Ut&&(this.#p.dispatchEvent("emitterPlay"),this.play(),this.#It-=this.#Ut,this.#Ut=void 0)),void 0!==this.#Ct&&(this.#Pt+=e.value,this.#Pt>=this.#Ct&&(this.#qt(),this.#Pt-=this.#Ct))}#at(){const e=this.#p;if(this.options.domId){const t=(0,n.safeDocument)().getElementById(this.options.domId);if(t){const r=t.getBoundingClientRect(),i=e.retina.pixelRatio;return{x:(r.x+r.width*n.half)*i,y:(r.y+r.height*n.half)*i}}}return(0,n.calcPositionOrRandomFromSizeRanged)({size:e.canvas.size,position:this.options.position})}#zt(){const e=this.#p;if(this.options.domId){const t=(0,n.safeDocument)().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})()}#$t=()=>{this.#j?.disconnect(),this.#j=void 0,this.#_e?.disconnect(),this.#_e=void 0,this.#Ft(this),this.#p.dispatchEvent("emitterDestroyed",{emitter:this})};#qt(){if(this.#D)return;const e=(0,n.getRangeValue)(this.options.rate.quantity);this.#Gt(e)}#Gt(e){const t=(0,n.itemFromSingleOrMultiple)(this.#Lt)??{},r=this.options.spawn.fill?.color?.animation,i=this.options.spawn.fill?.enable??!!this.options.spawn.fill?.color,o=void 0===this.options.spawn.fill?.opacity?n.defaultOpacity:(0,n.getRangeValue)(this.options.spawn.fill.opacity),c=this.options.spawn.stroke?.color?.animation,l=void 0===this.options.spawn.stroke?.opacity?n.defaultOpacity:(0,n.getRangeValue)(this.options.spawn.stroke.opacity),u=void 0===this.options.spawn.stroke?.width?1:(0,n.getRangeValue)(this.options.spawn.stroke.width),d=this.#p.retina.reduceFactor,p=!!r,f=!!c,h=!!this.#Bt,m=p||f,g=m||h,y=m?{h:n.hMax,s:n.sMax,l:n.lMax}:null,v=this.options.shape;for(let p=0;p<e*d;p++){const e=g?(0,n.deepExtend)({},t):t;this.spawnFillOpacity=o,this.spawnFillEnabled=i,this.spawnStrokeOpacity=l,this.spawnStrokeWidth=u,this.spawnFillColor&&(r&&y&&(this.spawnFillColor.h=this.#Wt(r.h,this.spawnFillColor.h,y.h,3.6),this.spawnFillColor.s=this.#Wt(r.s,this.spawnFillColor.s,y.s),this.spawnFillColor.l=this.#Wt(r.l,this.spawnFillColor.l,y.l)),a(e,this.spawnFillColor,this.spawnFillOpacity,this.spawnFillEnabled)),this.spawnStrokeColor&&(c&&y&&(this.spawnStrokeColor.h=this.#Wt(c.h,this.spawnStrokeColor.h,y.h,3.6),this.spawnStrokeColor.s=this.#Wt(c.s,this.spawnStrokeColor.s,y.s),this.spawnStrokeColor.l=this.#Wt(c.l,this.spawnStrokeColor.l,y.l)),s(e,this.spawnStrokeColor,this.spawnStrokeOpacity,this.spawnStrokeWidth));let d=this.position;if(this.#Bt){const t=this.#Bt.randomPosition();if(t){d=t.position;const r=v.replace;r.color&&t.color&&a(e,t.color,r.opacity?t.opacity??n.defaultOpacity:n.defaultOpacity,!0)}else d=null}d&&this.#p.particles.addParticle(d,e)}}#Vt=()=>{if(this.#D)return;const e=void 0!==this.options.life.duration?(0,n.getRangeValue)(this.options.life.duration):void 0;(this.#Nt>0||this.#Mt)&&void 0!==e&&e>0&&(this.#O=e*n.millisecondsToSeconds)};#Wt=(e,t,r,i=1)=>{const o=this.#p;if(!e.enable)return t;const a=(0,n.randomInRangeValue)(e.offset),s=(0,n.getRangeValue)(this.options.rate.delay),c=o.retina.reduceFactor?s*n.millisecondsToSeconds/o.retina.reduceFactor:1/0;return(t+(0,n.getRangeValue)(e.speed)*o.fpsLimit/c+a*i)%r}}}]]);
51//# sourceMappingURL=vendors.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.