@allurereport/web-components 3.4.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7,11 +7,11 @@ import{options as e,Component as t,createElement as n,Fragment as r,toChildArray
7
7
  * @namespace
8
8
  * @public
9
9
  */e.exports&&(e.exports=t),void 0!==Rd&&(Rd.Prism=t)}(ep)),ep.exports),np=Pd(tp);Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var i=t[n];if("code"===i.type){var o=i.content[1],a=i.content[3];if(o&&a&&"code-language"===o.type&&"code-block"===a.type&&"string"==typeof o.content){var l=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(l=(/[a-z][\w-]*/i.exec(l)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(i.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,i=t.classes.length;r<i;r++){var o=t.classes[r],c=/language-(.+)/.exec(o);if(c){n=c[1];break}}var u=e.languages[n];if(u)t.content=e.highlight(function(e){var t=e.replace(a,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n);var r=l[t];return r||e})),t}(t.content),u,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism);var rp;rp||(rp=1,function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism)),Prism.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/},Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json;var ip;ip||(ip=1,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism));var op;op||(op=1,function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",l="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=s(o),u=RegExp(s(i+" "+o+" "+a+" "+l)),d=s(o+" "+a+" "+l),f=s(i+" "+o+" "+l),h=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),p=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,h]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,v]),b=/\[\s*(?:,\s*)*\]/.source,y=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,b]),_=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,p,b]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[_]),x=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,m,b]),k={keyword:u,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,M=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[M]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,x]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,v]),lookbehind:!0,inside:k},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:k},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:k},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,f,g]),inside:k}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:k},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,m]),inside:k,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:k,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,h]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(h),alias:"class-name",inside:k}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,v,g,x,u.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,p]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(x),greedy:!0,inside:k},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var A=S+"|"+C,T=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[A]),L=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[T]),2),E=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,O=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,L]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[E,O]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[E]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[L]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var R=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[T]),2),z=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,R]),D=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[A]),2),N=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[D,R]);function I(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,R]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[z]),lookbehind:!0,greedy:!0,inside:I(z,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[N]),lookbehind:!0,greedy:!0,inside:I(N,D)}],char:{pattern:RegExp(C),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(Prism);var ap;ap||(ap=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python);var lp;lp||(lp=1,function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism)),function(e){var t=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;e.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+t+")(?:"+t+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(t),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}}(Prism),Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,o){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(i,(function(e){if("function"==typeof o&&!o(e))return e;for(var i,l=a.length;-1!==n.code.indexOf(i=t(r,l));)++l;return a[l]=e,i})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var i=0,o=Object.keys(n.tokenStack);!function a(l){for(var s=0;s<l.length&&!(i>=o.length);s++){var c=l[s];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=o[i],d=n.tokenStack[u],f="string"==typeof c?c:c.content,h=t(r,u),p=f.indexOf(h);if(p>-1){++i;var g=f.substring(0,p),v=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),m=f.substring(p+h.length),b=[];g&&b.push.apply(b,a([g])),b.push(v),m&&b.push.apply(b,a([m])),"string"==typeof c?l.splice.apply(l,[s,1].concat(b)):c.content=b}}else c.content&&a(c.content)}return l}(n.tokens)}}}})}(Prism);var sp;sp||(sp=1,function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:o};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism));var cp;cp||(cp=1,function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document){var e="line-numbers",t=/\n(?!$)/g,n=Prism.plugins.lineNumbers={getLine:function(t,n){if("PRE"===t.tagName&&t.classList.contains(e)){var r=t.querySelector(".line-numbers-rows");if(r){var i=parseInt(t.getAttribute("data-start"),10)||1,o=i+(r.children.length-1);n<i&&(n=i),n>o&&(n=o);var a=n-i;return r.children[a]}}},resize:function(e){i([e])},assumeViewportIndependence:!0},r=void 0;window.addEventListener("resize",(function(){n.assumeViewportIndependence&&r===window.innerWidth||(r=window.innerWidth,i(Array.prototype.slice.call(document.querySelectorAll("pre."+e))))})),Prism.hooks.add("complete",(function(n){if(n.code){var r=n.element,o=r.parentNode;if(o&&/pre/i.test(o.nodeName)&&!r.querySelector(".line-numbers-rows")&&Prism.util.isActive(r,e)){r.classList.remove(e),o.classList.add(e);var a,l=n.code.match(t),s=l?l.length+1:1,c=new Array(s+1).join("<span></span>");(a=document.createElement("span")).setAttribute("aria-hidden","true"),a.className="line-numbers-rows",a.innerHTML=c,o.hasAttribute("data-start")&&(o.style.counterReset="linenumber "+(parseInt(o.getAttribute("data-start"),10)-1)),n.element.appendChild(a),i([o]),Prism.hooks.run("line-numbers",n)}}})),Prism.hooks.add("line-numbers",(function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}))}function i(e){if(e=e.filter((function(e){var t,n=(t=e,t?window.getComputedStyle?getComputedStyle(t):t.currentStyle||null:null)["white-space"];return"pre-wrap"===n||"pre-line"===n})),0!=e.length){var n=e.map((function(e){var n=e.querySelector("code"),r=e.querySelector(".line-numbers-rows");if(n&&r){var i=e.querySelector(".line-numbers-sizer"),o=n.textContent.split(t);i||((i=document.createElement("span")).className="line-numbers-sizer",n.appendChild(i)),i.innerHTML="0",i.style.display="block";var a=i.getBoundingClientRect().height;return i.innerHTML="",{element:e,lines:o,lineHeights:[],oneLinerHeight:a,sizer:i}}})).filter(Boolean);n.forEach((function(e){var t=e.sizer,n=e.lines,r=e.lineHeights,i=e.oneLinerHeight;r[n.length-1]=void 0,n.forEach((function(e,n){if(e&&e.length>1){var o=t.appendChild(document.createElement("span"));o.style.display="block",o.textContent=e}else r[n]=i}))})),n.forEach((function(e){for(var t=e.sizer,n=e.lineHeights,r=0,i=0;i<n.length;i++)void 0===n[i]&&(n[i]=t.children[r++].getBoundingClientRect().height)})),n.forEach((function(e){var t=e.sizer,n=e.element.querySelector(".line-numbers-rows");t.style.display="none",t.innerHTML="",e.lineHeights.forEach((function(e,t){n.children[t].style.height=e+"px"}))}))}}}()),function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document){var e=[],t={},n=function(){};Prism.plugins.toolbar={};var r=Prism.plugins.toolbar.registerButton=function(n,r){var i;i="function"==typeof r?r:function(e){var t;return"function"==typeof r.onClick?((t=document.createElement("button")).type="button",t.addEventListener("click",(function(){r.onClick.call(this,e)}))):"string"==typeof r.url?(t=document.createElement("a")).href=r.url:t=document.createElement("span"),r.className&&t.classList.add(r.className),t.textContent=r.text,t},n in t?console.warn('There is a button with the key "'+n+'" registered already.'):e.push(t[n]=i)},i=Prism.plugins.toolbar.hook=function(r){var i=r.element.parentNode;if(i&&/pre/i.test(i.nodeName)&&!i.parentNode.classList.contains("code-toolbar")){var o=document.createElement("div");o.classList.add("code-toolbar"),i.parentNode.insertBefore(o,i),o.appendChild(i);var a=document.createElement("div");a.classList.add("toolbar");var l=e,s=function(e){for(;e;){var t=e.getAttribute("data-toolbar-order");if(null!=t)return(t=t.trim()).length?t.split(/\s*,\s*/g):[];e=e.parentElement}}(r.element);s&&(l=s.map((function(e){return t[e]||n}))),l.forEach((function(e){var t=e(r);if(t){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(t),a.appendChild(n)}})),o.appendChild(a)}};r("label",(function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-label")){var n,r,i=t.getAttribute("data-label");try{r=document.querySelector("template#"+i)}catch(e){}return r?n=r.content:(t.hasAttribute("data-url")?(n=document.createElement("a")).href=t.getAttribute("data-url"):n=document.createElement("span"),n.textContent=i),n}})),Prism.hooks.add("complete",i)}}();var up;up||(up=1,function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document)if(Prism.plugins.toolbar){var e={none:"Plain text",plain:"Plain text",plaintext:"Plain text",text:"Plain text",txt:"Plain text",html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",ssml:"SSML",rss:"RSS",css:"CSS",clike:"C-like",js:"JavaScript",abap:"ABAP",abnf:"ABNF",al:"AL",antlr4:"ANTLR4",g4:"ANTLR4",apacheconf:"Apache Configuration",apl:"APL",aql:"AQL",ino:"Arduino",arff:"ARFF",armasm:"ARM Assembly","arm-asm":"ARM Assembly",art:"Arturo",asciidoc:"AsciiDoc",adoc:"AsciiDoc",aspnet:"ASP.NET (C#)",asm6502:"6502 Assembly",asmatmel:"Atmel AVR Assembly",autohotkey:"AutoHotkey",autoit:"AutoIt",avisynth:"AviSynth",avs:"AviSynth","avro-idl":"Avro IDL",avdl:"Avro IDL",awk:"AWK",gawk:"GAWK",sh:"Shell",basic:"BASIC",bbcode:"BBcode",bbj:"BBj",bnf:"BNF",rbnf:"RBNF",bqn:"BQN",bsl:"BSL (1C:Enterprise)",oscript:"OneScript",csharp:"C#",cs:"C#",dotnet:"C#",cpp:"C++",cfscript:"CFScript",cfc:"CFScript",cil:"CIL",cilkc:"Cilk/C","cilk-c":"Cilk/C",cilkcpp:"Cilk/C++","cilk-cpp":"Cilk/C++",cilk:"Cilk/C++",cmake:"CMake",cobol:"COBOL",coffee:"CoffeeScript",conc:"Concurnas",csp:"Content-Security-Policy","css-extras":"CSS Extras",csv:"CSV",cue:"CUE",dataweave:"DataWeave",dax:"DAX",django:"Django/Jinja2",jinja2:"Django/Jinja2","dns-zone-file":"DNS zone file","dns-zone":"DNS zone file",dockerfile:"Docker",dot:"DOT (Graphviz)",gv:"DOT (Graphviz)",ebnf:"EBNF",editorconfig:"EditorConfig",ejs:"EJS",etlua:"Embedded Lua templating",erb:"ERB","excel-formula":"Excel Formula",xlsx:"Excel Formula",xls:"Excel Formula",fsharp:"F#","firestore-security-rules":"Firestore security rules",ftl:"FreeMarker Template Language",gml:"GameMaker Language",gamemakerlanguage:"GameMaker Language",gap:"GAP (CAS)",gcode:"G-code",gdscript:"GDScript",gedcom:"GEDCOM",gettext:"gettext",po:"gettext",glsl:"GLSL",gn:"GN",gni:"GN","linker-script":"GNU Linker Script",ld:"GNU Linker Script","go-module":"Go module","go-mod":"Go module",graphql:"GraphQL",hbs:"Handlebars",hs:"Haskell",hcl:"HCL",hlsl:"HLSL",http:"HTTP",hpkp:"HTTP Public-Key-Pins",hsts:"HTTP Strict-Transport-Security",ichigojam:"IchigoJam","icu-message-format":"ICU Message Format",idr:"Idris",ignore:".ignore",gitignore:".gitignore",hgignore:".hgignore",npmignore:".npmignore",inform7:"Inform 7",javadoc:"JavaDoc",javadoclike:"JavaDoc-like",javastacktrace:"Java stack trace",jq:"JQ",jsdoc:"JSDoc","js-extras":"JS Extras",json:"JSON",webmanifest:"Web App Manifest",json5:"JSON5",jsonp:"JSONP",jsstacktrace:"JS stack trace","js-templates":"JS Templates",keepalived:"Keepalived Configure",kts:"Kotlin Script",kt:"Kotlin",kumir:"KuMir (КуМир)",kum:"KuMir (КуМир)",latex:"LaTeX",tex:"TeX",context:"ConTeXt",lilypond:"LilyPond",ly:"LilyPond",emacs:"Lisp",elisp:"Lisp","emacs-lisp":"Lisp",llvm:"LLVM IR",log:"Log file",lolcode:"LOLCODE",magma:"Magma (CAS)",md:"Markdown","markup-templating":"Markup templating",matlab:"MATLAB",maxscript:"MAXScript",mel:"MEL",metafont:"METAFONT",mongodb:"MongoDB",moon:"MoonScript",n1ql:"N1QL",n4js:"N4JS",n4jsd:"N4JS","nand2tetris-hdl":"Nand To Tetris HDL",naniscript:"Naninovel Script",nani:"Naninovel Script",nasm:"NASM",neon:"NEON",nginx:"nginx",nsis:"NSIS",objectivec:"Objective-C",objc:"Objective-C",ocaml:"OCaml",opencl:"OpenCL",openqasm:"OpenQasm",qasm:"OpenQasm",parigp:"PARI/GP",objectpascal:"Object Pascal",psl:"PATROL Scripting Language",pcaxis:"PC-Axis",px:"PC-Axis",peoplecode:"PeopleCode",pcode:"PeopleCode",php:"PHP",phpdoc:"PHPDoc","php-extras":"PHP Extras","plant-uml":"PlantUML",plantuml:"PlantUML",plsql:"PL/SQL",powerquery:"PowerQuery",pq:"PowerQuery",mscript:"PowerQuery",powershell:"PowerShell",promql:"PromQL",properties:".properties",protobuf:"Protocol Buffers",purebasic:"PureBasic",pbfasm:"PureBasic",purs:"PureScript",py:"Python",qsharp:"Q#",qs:"Q#",q:"Q (kdb+ database)",qml:"QML",rkt:"Racket",cshtml:"Razor C#",razor:"Razor C#",jsx:"React JSX",tsx:"React TSX",renpy:"Ren'py",rpy:"Ren'py",res:"ReScript",rest:"reST (reStructuredText)",robotframework:"Robot Framework",robot:"Robot Framework",rb:"Ruby",sas:"SAS",sass:"Sass (Sass)",scss:"Sass (SCSS)","shell-session":"Shell session","sh-session":"Shell session",shellsession:"Shell session",sml:"SML",smlnj:"SML/NJ",solidity:"Solidity (Ethereum)",sol:"Solidity (Ethereum)","solution-file":"Solution file",sln:"Solution file",soy:"Soy (Closure Template)",sparql:"SPARQL",rq:"SPARQL","splunk-spl":"Splunk SPL",sqf:"SQF: Status Quo Function (Arma 3)",sql:"SQL",stata:"Stata Ado",iecst:"Structured Text (IEC 61131-3)",supercollider:"SuperCollider",sclang:"SuperCollider",systemd:"Systemd configuration file","t4-templating":"T4 templating","t4-cs":"T4 Text Templates (C#)",t4:"T4 Text Templates (C#)","t4-vb":"T4 Text Templates (VB)",tap:"TAP",tt2:"Template Toolkit 2",toml:"TOML",trickle:"trickle",troy:"troy",trig:"TriG",ts:"TypeScript",tsconfig:"TSConfig",uscript:"UnrealScript",uc:"UnrealScript",uorazor:"UO Razor Script",uri:"URI",url:"URL",vbnet:"VB.Net",vhdl:"VHDL",vim:"vim","visual-basic":"Visual Basic",vba:"VBA",vb:"Visual Basic",wasm:"WebAssembly","web-idl":"Web IDL",webidl:"Web IDL",wgsl:"WGSL",wiki:"Wiki markup",wolfram:"Wolfram language",nb:"Mathematica Notebook",wl:"Wolfram language",xeoracube:"XeoraCube","xml-doc":"XML doc (.net)",xojo:"Xojo (REALbasic)",xquery:"XQuery",yaml:"YAML",yml:"YAML",yang:"YANG"};Prism.plugins.toolbar.registerButton("show-language",(function(t){var n=t.element.parentNode;if(n&&/pre/i.test(n.nodeName)){var r=n.getAttribute("data-language")||e[t.language]||function(e){return e?(e.substring(0,1).toUpperCase()+e.substring(1)).replace(/s(?=cript)/,"S"):e}(t.language);if(r){var i=document.createElement("span");return i.textContent=r,i}}}))}else console.warn("Show Languages plugin loaded before Toolbar plugin.")}());const dp={js:"javascript",mjs:"javascript",cjs:"javascript",ts:"typescript",mts:"typescript",cts:"typescript",tsx:"typescript",jsx:"javascript",json:"json",html:"markup",htm:"markup",xml:"markup",css:"css",csv:"csv",md:"markdown"},fp={"text/javascript":"javascript","application/javascript":"javascript","text/x-javascript":"javascript","application/x-javascript":"javascript","text/ecmascript":"javascript","application/ecmascript":"javascript","text/typescript":"typescript","application/typescript":"typescript","text/x-typescript":"typescript","application/x-typescript":"typescript","application/json":"json","text/json":"json","text/html":"markup","application/xml":"markup","text/xml":"markup","text/css":"css","text/csv":"csv","text/markdown":"markdown"},hp=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"),pp=e=>{if(!e)return;const t=/\.([a-z0-9]+)$/i.exec(e);if(!t)return;const n=t[1].toLowerCase();return dp[n]??n},gp=e=>{const{attachment:t,item:n,highlight:r=!0}=e;if(!t||!("text"in t))return null;const i=n?.link?.ext?.replace(".","").toLowerCase(),o=n?.link?.contentType?.toLowerCase(),a=(pp(n?.link?.name)??pp(n?.link?.originalFileName))||i&&(dp[i]??i)||o&&fp[o]||"plaintext",l=t.text??"";if((e=>"string"==typeof e&&new RegExp(ef).test(e))(l)&&l.length>0&&r){const e=((e,t)=>new Qd({escapeXML:!0,...t}).toHtml(e))
10
- /*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */(l,{fg:"var(--on-text-primary)",bg:"none",colors:{0:"none",1:"none",2:"var(--on-support-sirius)",3:"var(--on-support-atlas)",4:"var(--bg-support-skat)",5:"var(--on-support-betelgeuse)"}});return ln("pre",{"data-testid":"code-attachment-content",className:r?`language-${a} line-numbers`:"attachment-code-plain",dangerouslySetInnerHTML:{__html:e}},n?.link?.id)}if(!r)return ln("pre",{"data-testid":"code-attachment-content",className:"attachment-code-plain",children:ln("code",{children:l})},n?.link?.id);const s=((e,t)=>{const n=np.languages[t];if(!n)return hp(e);try{return np.highlight(e,n,t)}catch{return hp(e)}})(l,a);return ln("pre",{"data-testid":"code-attachment-content",className:`language-${a} line-numbers`,children:ln("code",{className:`language-${a}`,dangerouslySetInnerHTML:{__html:s}})},n?.link?.id)};var vp="styles_test-result-attachment-image__sJpWk",mp="styles_test-result-attachment-error__od2Zn",bp="styles_wrong-attachment-sign__j-rkc",yp="styles_test-result-spinner__B3aF3",_p="styles_html-attachment-preview__0-kmL",wp="styles_test-result-attachment-video__251vv",xp="styles_imageDiffWrapper__5nf3F";const kp=e=>{const{attachment:t,item:n}=e,[r,i]=c(!0);return u((()=>{if(t&&"img"in t&&t.img){const e=new Image;e.onload=()=>i(!0),e.onerror=()=>i(!1),e.src=t.img}}),[t]),ln("div",t&&"img"in t&&r?{"data-testid":"image-attachment-content",className:vp,children:ln("img",{src:t.img,alt:n.link.originalFileName})}:{className:mp,children:"something went wrong"})};var Cp="styles_list__pI3IS",Sp="styles_tab__nrjgs";const Mp=l(null),Ap=e=>{const{children:t,initialTab:n}=e,r=v(n),i=d((e=>{r.value=e}),[r]);return ln(Mp.Provider,{value:{currentTab:r,setCurrentTab:i},children:t})},Tp=e=>ln(Ap,{...e}),Lp=e=>ln("div",{className:Cp,children:e.children}),Ep=e=>{const{currentTab:t,setCurrentTab:n}=(()=>{const e=f(Mp);if(!e)throw new Error("NavTabs components must be used within a NavTabs component");return e})(),r=g((()=>t.value===e.tabId)),{tabId:i,children:o,onClick:a,testId:l,isCurrentTab:s=r.value}=e;return ln("button",{className:Sp,onClick:()=>{if(!s)return a?a():void n(i)},"data-testid":l||`tab-${i}`,"aria-current":s||void 0,children:ln(dn,{type:"paragraph",size:"m",bold:s,children:o})})};var Op,Rp={exports:{}},Pp=Rp.exports;var zp=(Op||(Op=1,function(e,t){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",a=32,l=128,s=256,c=1/0,u=9007199254740991,d=NaN,f=4294967295,h=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",s]],p="[object Arguments]",g="[object Array]",v="[object Boolean]",m="[object Date]",b="[object Error]",y="[object Function]",_="[object GeneratorFunction]",w="[object Map]",x="[object Number]",k="[object Object]",C="[object Promise]",S="[object RegExp]",M="[object Set]",A="[object String]",T="[object Symbol]",L="[object WeakMap]",E="[object ArrayBuffer]",O="[object DataView]",R="[object Float32Array]",P="[object Float64Array]",z="[object Int8Array]",D="[object Int16Array]",N="[object Int32Array]",I="[object Uint8Array]",B="[object Uint8ClampedArray]",F="[object Uint16Array]",j="[object Uint32Array]",W=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,q=RegExp(V.source),Y=RegExp($.source),G=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ee=/[\\^$.*+?()[\]{}|]/g,te=RegExp(ee.source),ne=/^\s+/,re=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,se=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,pe=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,ye=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\ufe0e\\ufe0f",Me="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="['’]",Te="["+_e+"]",Le="["+Me+"]",Ee="["+we+"]",Oe="\\d+",Re="["+xe+"]",Pe="["+ke+"]",ze="[^"+_e+Me+Oe+xe+ke+Ce+"]",De="\\ud83c[\\udffb-\\udfff]",Ne="[^"+_e+"]",Ie="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Ce+"]",je="\\u200d",We="(?:"+Pe+"|"+ze+")",He="(?:"+Fe+"|"+ze+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Ee+"|"+De+")?",qe="["+Se+"]?",Ye=qe+$e+"(?:"+je+"(?:"+[Ne,Ie,Be].join("|")+")"+qe+$e+")*",Ge="(?:"+[Re,Ie,Be].join("|")+")"+Ye,Xe="(?:"+[Ne+Ee+"?",Ee,Ie,Be,Te].join("|")+")",Ze=RegExp(Ae,"g"),Ke=RegExp(Ee,"g"),Je=RegExp(De+"(?="+De+")|"+Xe+Ye,"g"),Qe=RegExp([Fe+"?"+Pe+"+"+Ue+"(?="+[Le,Fe,"$"].join("|")+")",He+"+"+Ve+"(?="+[Le,Fe+We,"$"].join("|")+")",Fe+"?"+We+"+"+Ue,Fe+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,Ge].join("|"),"g"),et=RegExp("["+je+_e+we+Se+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[R]=it[P]=it[z]=it[D]=it[N]=it[I]=it[B]=it[F]=it[j]=!0,it[p]=it[g]=it[E]=it[v]=it[O]=it[m]=it[b]=it[y]=it[w]=it[x]=it[k]=it[S]=it[M]=it[A]=it[L]=!1;var ot={};ot[p]=ot[g]=ot[E]=ot[O]=ot[v]=ot[m]=ot[R]=ot[P]=ot[z]=ot[D]=ot[N]=ot[w]=ot[x]=ot[k]=ot[S]=ot[M]=ot[A]=ot[T]=ot[I]=ot[B]=ot[F]=ot[j]=!0,ot[b]=ot[y]=ot[L]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,st=parseInt,ct="object"==typeof Rd&&Rd&&Rd.Object===Object&&Rd,ut="object"==typeof self&&self&&self.Object===Object&&self,dt=ct||ut||Function("return this")(),ft=t&&!t.nodeType&&t,ht=ft&&e&&!e.nodeType&&e,pt=ht&&ht.exports===ft,gt=pt&&ct.process,vt=function(){try{var e=ht&&ht.require&&ht.require("util").types;return e||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),mt=vt&&vt.isArrayBuffer,bt=vt&&vt.isDate,yt=vt&&vt.isMap,_t=vt&&vt.isRegExp,wt=vt&&vt.isSet,xt=vt&&vt.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function St(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Mt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Lt(e,t){return!(null==e||!e.length)&&Ft(e,t,0)>-1}function Et(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Rt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Pt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function zt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Nt=Ut("length");function It(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Bt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Ft(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Bt(e,Wt,n)}function jt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Wt(e){return e!=e}function Ht(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:d}function Ut(e){return function(t){return null==t?n:t[e]}}function Vt(e){return function(t){return null==e?n:e[t]}}function $t(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function qt(e,t){for(var r,i=-1,o=e.length;++i<o;){var a=t(e[i]);a!==n&&(r=r===n?a:r+a)}return r}function Yt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Gt(e){return e?e.slice(0,fn(e)+1).replace(ne,""):e}function Xt(e){return function(t){return e(t)}}function Zt(e,t){return Ot(t,(function(t){return e[t]}))}function Kt(e,t){return e.has(t)}function Jt(e,t){for(var n=-1,r=e.length;++n<r&&Ft(t,e[n],0)>-1;);return n}function Qt(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}var en=Vt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),tn=Vt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function an(e,t){return function(n){return e(t(n))}}function ln(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var l=e[n];l!==t&&l!==o||(e[n]=o,a[i++]=n)}return a}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function un(e){return rn(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t;return t}(e):Nt(e)}function dn(e){return rn(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function fn(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var hn=Vt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),pn=function e(t){var re,_e=(t=null==t?dt:pn.defaults(dt.Object(),t,pn.pick(dt,nt))).Array,we=t.Date,xe=t.Error,ke=t.Function,Ce=t.Math,Se=t.Object,Me=t.RegExp,Ae=t.String,Te=t.TypeError,Le=_e.prototype,Ee=ke.prototype,Oe=Se.prototype,Re=t["__core-js_shared__"],Pe=Ee.toString,ze=Oe.hasOwnProperty,De=0,Ne=(re=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+re:"",Ie=Oe.toString,Be=Pe.call(Se),Fe=dt._,je=Me("^"+Pe.call(ze).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=pt?t.Buffer:n,He=t.Symbol,Ue=t.Uint8Array,Ve=We?We.allocUnsafe:n,$e=an(Se.getPrototypeOf,Se),qe=Se.create,Ye=Oe.propertyIsEnumerable,Ge=Le.splice,Xe=He?He.isConcatSpreadable:n,Je=He?He.iterator:n,et=He?He.toStringTag:n,at=function(){try{var e=uo(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),ct=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ut=we&&we.now!==dt.Date.now&&we.now,ft=t.setTimeout!==dt.setTimeout&&t.setTimeout,ht=Ce.ceil,gt=Ce.floor,vt=Se.getOwnPropertySymbols,Nt=We?We.isBuffer:n,Vt=t.isFinite,gn=Le.join,vn=an(Se.keys,Se),mn=Ce.max,bn=Ce.min,yn=we.now,_n=t.parseInt,wn=Ce.random,xn=Le.reverse,kn=uo(t,"DataView"),Cn=uo(t,"Map"),Sn=uo(t,"Promise"),Mn=uo(t,"Set"),An=uo(t,"WeakMap"),Tn=uo(Se,"create"),Ln=An&&new An,En={},On=Io(kn),Rn=Io(Cn),Pn=Io(Sn),zn=Io(Mn),Dn=Io(An),Nn=He?He.prototype:n,In=Nn?Nn.valueOf:n,Bn=Nn?Nn.toString:n;function Fn(e){if(el(e)&&!Ua(e)&&!(e instanceof Un)){if(e instanceof Hn)return e;if(ze.call(e,"__wrapped__"))return Bo(e)}return new Hn(e)}var jn=function(){function e(){}return function(t){if(!Qa(t))return{};if(qe)return qe(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Wn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new $n(e);this.size=t.size}function Xn(e,t){var n=Ua(e),r=!n&&Ha(e),i=!n&&!r&&Ya(e),o=!n&&!r&&!i&&sl(e),a=n||r||i||o,l=a?Yt(e.length,Ae):[],s=l.length;for(var c in e)!t&&!ze.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||bo(c,s))||l.push(c);return l}function Zn(e){var t=e.length;return t?e[Yr(0,t-1)]:n}function Kn(e,t){return zo(Ti(e),ar(t,0,e.length))}function Jn(e){return zo(Ti(e))}function Qn(e,t,r){(r!==n&&!Fa(e[t],r)||r===n&&!(t in e))&&ir(e,t,r)}function er(e,t,r){var i=e[t];ze.call(e,t)&&Fa(i,r)&&(r!==n||t in e)||ir(e,t,r)}function tr(e,t){for(var n=e.length;n--;)if(Fa(e[n][0],t))return n;return-1}function nr(e,t,n,r){return dr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function rr(e,t){return e&&Li(t,El(t),e)}function ir(e,t,n){"__proto__"==t&&at?at(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var r=-1,i=t.length,o=_e(i),a=null==e;++r<i;)o[r]=a?n:Sl(e,t[r]);return o}function ar(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function lr(e,t,r,i,o,a){var l,s=1&t,c=2&t,u=4&t;if(r&&(l=o?r(e,i,o,a):r(e)),l!==n)return l;if(!Qa(e))return e;var d=Ua(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ze.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Ti(e,l)}else{var f=po(e),h=f==y||f==_;if(Ya(e))return xi(e,s);if(f==k||f==p||h&&!o){if(l=c||h?{}:vo(e),!s)return c?function(e,t){return Li(e,ho(e),t)}(e,function(e,t){return e&&Li(t,Ol(t),e)}(l,e)):function(e,t){return Li(e,fo(e),t)}(e,rr(l,e))}else{if(!ot[f])return o?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case E:return ki(e);case v:case m:return new r(+e);case O:return function(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case P:case z:case D:case N:case I:case B:case F:case j:return Ci(e,n);case w:return new r;case x:case A:return new r(e);case S:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case M:return new r;case T:return function(e){return In?Se(In.call(e)):{}}(e)}}(e,f,s)}}a||(a=new Gn);var g=a.get(e);if(g)return g;a.set(e,l),ol(e)?e.forEach((function(n){l.add(lr(n,t,r,n,e,a))})):tl(e)&&e.forEach((function(n,i){l.set(i,lr(n,t,r,i,e,a))}));var b=d?n:(u?c?ro:no:c?Ol:El)(e);return St(b||e,(function(n,i){b&&(n=e[i=n]),er(l,i,lr(n,t,r,i,e,a))})),l}function sr(e,t,r){var i=r.length;if(null==e)return!i;for(e=Se(e);i--;){var o=r[i],a=t[o],l=e[o];if(l===n&&!(o in e)||!a(l))return!1}return!0}function cr(e,t,i){if("function"!=typeof e)throw new Te(r);return Eo((function(){e.apply(n,i)}),t)}function ur(e,t,n,r){var i=-1,o=Lt,a=!0,l=e.length,s=[],c=t.length;if(!l)return s;n&&(t=Ot(t,Xt(n))),r?(o=Et,a=!1):t.length>=200&&(o=Kt,a=!1,t=new Yn(t));e:for(;++i<l;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;s.push(u)}else o(t,d,r)||s.push(u)}return s}Fn.templateSettings={escape:G,evaluate:X,interpolate:Z,variable:"",imports:{_:Fn}},Fn.prototype=Wn.prototype,Fn.prototype.constructor=Fn,Hn.prototype=jn(Wn.prototype),Hn.prototype.constructor=Hn,Un.prototype=jn(Wn.prototype),Un.prototype.constructor=Un,Vn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(Tn){var r=t[e];return r===i?n:r}return ze.call(t,e)?t[e]:n},Vn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==n:ze.call(t,e)},Vn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Tn&&t===n?i:t,this},$n.prototype.clear=function(){this.__data__=[],this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},$n.prototype.get=function(e){var t=this.__data__,r=tr(t,e);return r<0?n:t[r][1]},$n.prototype.has=function(e){return tr(this.__data__,e)>-1},$n.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(Cn||$n),string:new Vn}},qn.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return so(this,e).get(e)},qn.prototype.has=function(e){return so(this,e).has(e)},qn.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,i),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new $n,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $n){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var dr=Ri(yr),fr=Ri(_r,!0);function hr(e,t){var n=!0;return dr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function pr(e,t,r){for(var i=-1,o=e.length;++i<o;){var a=e[i],l=t(a);if(null!=l&&(s===n?l==l&&!ll(l):r(l,s)))var s=l,c=a}return c}function gr(e,t){var n=[];return dr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function vr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=mo),i||(i=[]);++o<a;){var l=e[o];t>0&&n(l)?t>1?vr(l,t-1,n,r,i):Rt(i,l):r||(i[i.length]=l)}return i}var mr=Pi(),br=Pi(!0);function yr(e,t){return e&&mr(e,t,El)}function _r(e,t){return e&&br(e,t,El)}function wr(e,t){return Tt(t,(function(t){return Za(e[t])}))}function xr(e,t){for(var r=0,i=(t=bi(t,e)).length;null!=e&&r<i;)e=e[No(t[r++])];return r&&r==i?e:n}function kr(e,t,n){var r=t(e);return Ua(e)?r:Rt(r,n(e))}function Cr(e){return null==e?e===n?"[object Undefined]":"[object Null]":et&&et in Se(e)?function(e){var t=ze.call(e,et),r=e[et];try{e[et]=n;var i=!0}catch(e){}var o=Ie.call(e);return i&&(t?e[et]=r:delete e[et]),o}(e):function(e){return Ie.call(e)}(e)}function Sr(e,t){return e>t}function Mr(e,t){return null!=e&&ze.call(e,t)}function Ar(e,t){return null!=e&&t in Se(e)}function Tr(e,t,r){for(var i=r?Et:Lt,o=e[0].length,a=e.length,l=a,s=_e(a),c=1/0,u=[];l--;){var d=e[l];l&&t&&(d=Ot(d,Xt(t))),c=bn(d.length,c),s[l]=!r&&(t||o>=120&&d.length>=120)?new Yn(l&&d):n}d=e[0];var f=-1,h=s[0];e:for(;++f<o&&u.length<c;){var p=d[f],g=t?t(p):p;if(p=r||0!==p?p:0,!(h?Kt(h,g):i(u,g,r))){for(l=a;--l;){var v=s[l];if(!(v?Kt(v,g):i(e[l],g,r)))continue e}h&&h.push(g),u.push(p)}}return u}function Lr(e,t,r){var i=null==(e=Ao(e,t=bi(t,e)))?e:e[No(Xo(t))];return null==i?n:kt(i,e,r)}function Er(e){return el(e)&&Cr(e)==p}function Or(e,t,r,i,o){return e===t||(null==e||null==t||!el(e)&&!el(t)?e!=e&&t!=t:function(e,t,r,i,o,a){var l=Ua(e),s=Ua(t),c=l?g:po(e),u=s?g:po(t),d=(c=c==p?k:c)==k,f=(u=u==p?k:u)==k,h=c==u;if(h&&Ya(e)){if(!Ya(t))return!1;l=!0,d=!1}if(h&&!d)return a||(a=new Gn),l||sl(e)?eo(e,t,r,i,o,a):function(e,t,n,r,i,o,a){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!o(new Ue(e),new Ue(t)));case v:case m:case x:return Fa(+e,+t);case b:return e.name==t.name&&e.message==t.message;case S:case A:return e==t+"";case w:var l=on;case M:var s=1&r;if(l||(l=sn),e.size!=t.size&&!s)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=eo(l(e),l(t),r,i,o,a);return a.delete(e),u;case T:if(In)return In.call(e)==In.call(t)}return!1}(e,t,c,r,i,o,a);if(!(1&r)){var y=d&&ze.call(e,"__wrapped__"),_=f&&ze.call(t,"__wrapped__");if(y||_){var C=y?e.value():e,L=_?t.value():t;return a||(a=new Gn),o(C,L,r,i,a)}}return!!h&&(a||(a=new Gn),function(e,t,r,i,o,a){var l=1&r,s=no(e),c=s.length,u=no(t),d=u.length;if(c!=d&&!l)return!1;for(var f=c;f--;){var h=s[f];if(!(l?h in t:ze.call(t,h)))return!1}var p=a.get(e),g=a.get(t);if(p&&g)return p==t&&g==e;var v=!0;a.set(e,t),a.set(t,e);for(var m=l;++f<c;){var b=e[h=s[f]],y=t[h];if(i)var _=l?i(y,b,h,t,e,a):i(b,y,h,e,t,a);if(!(_===n?b===y||o(b,y,r,i,a):_)){v=!1;break}m||(m="constructor"==h)}if(v&&!m){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(v=!1)}return a.delete(e),a.delete(t),v}(e,t,r,i,o,a))}(e,t,r,i,Or,o))}function Rr(e,t,r,i){var o=r.length,a=o,l=!i;if(null==e)return!a;for(e=Se(e);o--;){var s=r[o];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var c=(s=r[o])[0],u=e[c],d=s[1];if(l&&s[2]){if(u===n&&!(c in e))return!1}else{var f=new Gn;if(i)var h=i(u,d,c,e,t,f);if(!(h===n?Or(d,u,3,i,f):h))return!1}}return!0}function Pr(e){return!(!Qa(e)||(t=e,Ne&&Ne in t))&&(Za(e)?je:pe).test(Io(e));var t}function zr(e){return"function"==typeof e?e:null==e?ns:"object"==typeof e?Ua(e)?jr(e[0],e[1]):Fr(e):ds(e)}function Dr(e){if(!ko(e))return vn(e);var t=[];for(var n in Se(e))ze.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Nr(e){if(!Qa(e))return function(e){var t=[];if(null!=e)for(var n in Se(e))t.push(n);return t}(e);var t=ko(e),n=[];for(var r in e)("constructor"!=r||!t&&ze.call(e,r))&&n.push(r);return n}function Ir(e,t){return e<t}function Br(e,t){var n=-1,r=$a(e)?_e(e.length):[];return dr(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function Fr(e){var t=co(e);return 1==t.length&&t[0][2]?So(t[0][0],t[0][1]):function(n){return n===e||Rr(n,e,t)}}function jr(e,t){return _o(e)&&Co(t)?So(No(e),t):function(r){var i=Sl(r,e);return i===n&&i===t?Ml(r,e):Or(t,i,3)}}function Wr(e,t,r,i,o){e!==t&&mr(t,(function(a,l){if(o||(o=new Gn),Qa(a))!function(e,t,r,i,o,a,l){var s=To(e,r),c=To(t,r),u=l.get(c);if(u)Qn(e,r,u);else{var d=a?a(s,c,r+"",e,t,l):n,f=d===n;if(f){var h=Ua(c),p=!h&&Ya(c),g=!h&&!p&&sl(c);d=c,h||p||g?Ua(s)?d=s:qa(s)?d=Ti(s):p?(f=!1,d=xi(c,!0)):g?(f=!1,d=Ci(c,!0)):d=[]:rl(c)||Ha(c)?(d=s,Ha(s)?d=vl(s):Qa(s)&&!Za(s)||(d=vo(c))):f=!1}f&&(l.set(c,d),o(d,c,i,a,l),l.delete(c)),Qn(e,r,d)}}(e,t,l,r,Wr,i,o);else{var s=i?i(To(e,l),a,l+"",e,t,o):n;s===n&&(s=a),Qn(e,l,s)}}),Ol)}function Hr(e,t){var r=e.length;if(r)return bo(t+=t<0?r:0,r)?e[t]:n}function Ur(e,t,n){t=t.length?Ot(t,(function(e){return Ua(e)?function(t){return xr(t,1===e.length?e[0]:e)}:e})):[ns];var r=-1;t=Ot(t,Xt(lo()));var i=Br(e,(function(e,n,i){var o=Ot(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,l=n.length;++r<a;){var s=Si(i[r],o[r]);if(s)return r>=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Vr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],l=xr(e,a);n(l,a)&&Jr(o,bi(a,e),l)}return o}function $r(e,t,n,r){var i=r?jt:Ft,o=-1,a=t.length,l=e;for(e===t&&(t=Ti(t)),n&&(l=Ot(e,Xt(n)));++o<a;)for(var s=0,c=t[o],u=n?n(c):c;(s=i(l,u,s,r))>-1;)l!==e&&Ge.call(l,s,1),Ge.call(e,s,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;bo(i)?Ge.call(e,i,1):ui(e,i)}}return e}function Yr(e,t){return e+gt(wn()*(t-e+1))}function Gr(e,t){var n="";if(!e||t<1||t>u)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Oo(Mo(e,t,ns),e+"")}function Zr(e){return Zn(Fl(e))}function Kr(e,t){var n=Fl(e);return zo(n,ar(t,0,n.length))}function Jr(e,t,r,i){if(!Qa(e))return e;for(var o=-1,a=(t=bi(t,e)).length,l=a-1,s=e;null!=s&&++o<a;){var c=No(t[o]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=l){var d=s[c];(u=i?i(d,c,s):n)===n&&(u=Qa(d)?d:bo(t[o+1])?[]:{})}er(s,c,u),s=s[c]}return e}var Qr=Ln?function(e,t){return Ln.set(e,t),e}:ns,ei=at?function(e,t){return at(e,"toString",{configurable:!0,enumerable:!1,value:Ql(t),writable:!0})}:ns;function ti(e){return zo(Fl(e))}function ni(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=_e(i);++r<i;)o[r]=e[r+t];return o}function ri(e,t){var n;return dr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ii(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!ll(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return oi(e,t,ns,n)}function oi(e,t,r,i){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=r(t))!=t,s=null===t,c=ll(t),u=t===n;o<a;){var d=gt((o+a)/2),f=r(e[d]),h=f!==n,p=null===f,g=f==f,v=ll(f);if(l)var m=i||g;else m=u?g&&(i||h):s?g&&h&&(i||!p):c?g&&h&&!p&&(i||!v):!p&&!v&&(i?f<=t:f<t);m?o=d+1:a=d}return bn(a,4294967294)}function ai(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!Fa(l,s)){var s=l;o[i++]=0===a?0:a}}return o}function li(e){return"number"==typeof e?e:ll(e)?d:+e}function si(e){if("string"==typeof e)return e;if(Ua(e))return Ot(e,si)+"";if(ll(e))return Bn?Bn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ci(e,t,n){var r=-1,i=Lt,o=e.length,a=!0,l=[],s=l;if(n)a=!1,i=Et;else if(o>=200){var c=t?null:Gi(e);if(c)return sn(c);a=!1,i=Kt,s=new Yn}else s=t?[]:l;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),l.push(u)}else i(s,d,n)||(s!==l&&s.push(d),l.push(u))}return l}function ui(e,t){var n=-1,r=(t=bi(t,e)).length;if(!r)return!0;for(var i=null==e||"object"!=typeof e&&"function"!=typeof e;++n<r;){var o=t[n];if("string"==typeof o){if("__proto__"===o&&!ze.call(e,"__proto__"))return!1;if("constructor"===o&&n+1<r&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(i&&0===n)continue;return!1}}}var a=Ao(e,t);return null==a||delete a[No(Xo(t))]}function di(e,t,n,r){return Jr(e,t,n(xr(e,t)),r)}function fi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ni(e,r?0:o,r?o+1:i):ni(e,r?o+1:0,r?i:o)}function hi(e,t){var n=e;return n instanceof Un&&(n=n.value()),Pt(t,(function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))}),n)}function pi(e,t,n){var r=e.length;if(r<2)return r?ci(e[0]):[];for(var i=-1,o=_e(r);++i<r;)for(var a=e[i],l=-1;++l<r;)l!=i&&(o[i]=ur(o[i]||a,e[l],t,n));return ci(vr(o,1),t,n)}function gi(e,t,r){for(var i=-1,o=e.length,a=t.length,l={};++i<o;){var s=i<a?t[i]:n;r(l,e[i],s)}return l}function vi(e){return qa(e)?e:[]}function mi(e){return"function"==typeof e?e:ns}function bi(e,t){return Ua(e)?e:_o(e,t)?[e]:Do(ml(e))}var yi=Xr;function _i(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:ni(e,t,r)}var wi=ct||function(e){return dt.clearTimeout(e)};function xi(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function ki(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Ci(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Si(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,a=ll(e),l=t!==n,s=null===t,c=t==t,u=ll(t);if(!s&&!u&&!a&&e>t||a&&l&&c&&!s&&!u||i&&l&&c||!r&&c||!o)return 1;if(!i&&!a&&!u&&e<t||u&&r&&o&&!i&&!a||s&&r&&o||!l&&o||!c)return-1}return 0}function Mi(e,t,n,r){for(var i=-1,o=e.length,a=n.length,l=-1,s=t.length,c=mn(o-a,0),u=_e(s+c),d=!r;++l<s;)u[l]=t[l];for(;++i<a;)(d||i<o)&&(u[n[i]]=e[i]);for(;c--;)u[l++]=e[i++];return u}function Ai(e,t,n,r){for(var i=-1,o=e.length,a=-1,l=n.length,s=-1,c=t.length,u=mn(o-l,0),d=_e(u+c),f=!r;++i<u;)d[i]=e[i];for(var h=i;++s<c;)d[h+s]=t[s];for(;++a<l;)(f||i<o)&&(d[h+n[a]]=e[i++]);return d}function Ti(e,t){var n=-1,r=e.length;for(t||(t=_e(r));++n<r;)t[n]=e[n];return t}function Li(e,t,r,i){var o=!r;r||(r={});for(var a=-1,l=t.length;++a<l;){var s=t[a],c=i?i(r[s],e[s],s,r,e):n;c===n&&(c=e[s]),o?ir(r,s,c):er(r,s,c)}return r}function Ei(e,t){return function(n,r){var i=Ua(n)?Ct:nr,o=t?t():{};return i(n,e,lo(r,2),o)}}function Oi(e){return Xr((function(t,r){var i=-1,o=r.length,a=o>1?r[o-1]:n,l=o>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(o--,a):n,l&&yo(r[0],r[1],l)&&(a=o<3?n:a,o=1),t=Se(t);++i<o;){var s=r[i];s&&e(t,s,i,a)}return t}))}function Ri(e,t){return function(n,r){if(null==n)return n;if(!$a(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Se(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Pi(e){return function(t,n,r){for(var i=-1,o=Se(t),a=r(t),l=a.length;l--;){var s=a[e?l:++i];if(!1===n(o[s],s,o))break}return t}}function zi(e){return function(t){var r=rn(t=ml(t))?dn(t):n,i=r?r[0]:t.charAt(0),o=r?_i(r,1).join(""):t.slice(1);return i[e]()+o}}function Di(e){return function(t){return Pt(Zl(Hl(t).replace(Ze,"")),e,"")}}function Ni(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=jn(e.prototype),r=e.apply(n,t);return Qa(r)?r:n}}function Ii(e){return function(t,r,i){var o=Se(t);if(!$a(t)){var a=lo(r,3);t=El(t),r=function(e){return a(o[e],e,o)}}var l=e(t,r,i);return l>-1?o[a?t[l]:l]:n}}function Bi(e){return to((function(t){var i=t.length,o=i,a=Hn.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if("function"!=typeof l)throw new Te(r);if(a&&!s&&"wrapper"==oo(l))var s=new Hn([],!0)}for(o=s?o:i;++o<i;){var c=oo(l=t[o]),u="wrapper"==c?io(l):n;s=u&&wo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[oo(u[0])].apply(s,u[3]):1==l.length&&wo(l)?s[c]():s.thru(l)}return function(){var e=arguments,n=e[0];if(s&&1==e.length&&Ua(n))return s.plant(n).value();for(var r=0,o=i?t[r].apply(this,e):n;++r<i;)o=t[r].call(this,o);return o}}))}function Fi(e,t,r,i,o,a,s,c,u,d){var f=t&l,h=1&t,p=2&t,g=24&t,v=512&t,m=p?n:Ni(e);return function l(){for(var b=arguments.length,y=_e(b),_=b;_--;)y[_]=arguments[_];if(g)var w=ao(l),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,w);if(i&&(y=Mi(y,i,o,g)),a&&(y=Ai(y,a,s,g)),b-=x,g&&b<d){var k=ln(y,w);return qi(e,t,Fi,l.placeholder,r,y,k,c,u,d-b)}var C=h?r:this,S=p?C[e]:e;return b=y.length,c?y=function(e,t){for(var r=e.length,i=bn(t.length,r),o=Ti(e);i--;){var a=t[i];e[i]=bo(a,r)?o[a]:n}return e}(y,c):v&&b>1&&y.reverse(),f&&u<b&&(y.length=u),this&&this!==dt&&this instanceof l&&(S=m||Ni(S)),S.apply(C,y)}}function ji(e,t){return function(n,r){return function(e,t,n,r){return yr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Wi(e,t){return function(r,i){var o;if(r===n&&i===n)return t;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=si(r),i=si(i)):(r=li(r),i=li(i)),o=e(r,i)}return o}}function Hi(e){return to((function(t){return t=Ot(t,Xt(lo())),Xr((function(n){var r=this;return e(t,(function(e){return kt(e,r,n)}))}))}))}function Ui(e,t){var r=(t=t===n?" ":si(t)).length;if(r<2)return r?Gr(t,e):t;var i=Gr(t,ht(e/un(t)));return rn(t)?_i(dn(i),0,e).join(""):i.slice(0,e)}function Vi(e){return function(t,r,i){return i&&"number"!=typeof i&&yo(t,r,i)&&(r=i=n),t=fl(t),r===n?(r=t,t=0):r=fl(r),function(e,t,n,r){for(var i=-1,o=mn(ht((t-e)/(n||1)),0),a=_e(o);o--;)a[r?o:++i]=e,e+=n;return a}(t,r,i=i===n?t<r?1:-1:fl(i),e)}}function $i(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gl(t),n=gl(n)),e(t,n)}}function qi(e,t,r,i,o,l,s,c,u,d){var f=8&t;t|=f?a:64,4&(t&=~(f?64:a))||(t&=-4);var h=[e,t,o,f?l:n,f?s:n,f?n:l,f?n:s,c,u,d],p=r.apply(n,h);return wo(e)&&Lo(p,h),p.placeholder=i,Ro(p,e,t)}function Yi(e){var t=Ce[e];return function(e,n){if(e=gl(e),(n=null==n?0:bn(hl(n),292))&&Vt(e)){var r=(ml(e)+"e").split("e");return+((r=(ml(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Gi=Mn&&1/sn(new Mn([,-0]))[1]==c?function(e){return new Mn(e)}:ls;function Xi(e){return function(t){var n=po(t);return n==w?on(t):n==M?cn(t):function(e,t){return Ot(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Zi(e,t,i,c,u,d,f,h){var p=2&t;if(!p&&"function"!=typeof e)throw new Te(r);var g=c?c.length:0;if(g||(t&=-97,c=u=n),f=f===n?f:mn(hl(f),0),h=h===n?h:hl(h),g-=u?u.length:0,64&t){var v=c,m=u;c=u=n}var b=p?n:io(e),y=[e,t,i,c,u,v,m,d,f,h];if(b&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,c=r==l&&8==n||r==l&&n==s&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!c)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var d=e[3];e[3]=d?Mi(d,u,t[4]):u,e[4]=d?ln(e[3],o):t[4]}(u=t[5])&&(d=e[5],e[5]=d?Ai(d,u,t[6]):u,e[6]=d?ln(e[5],o):t[6]),(u=t[7])&&(e[7]=u),r&l&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(y,b),e=y[0],t=y[1],i=y[2],c=y[3],u=y[4],!(h=y[9]=y[9]===n?p?0:e.length:mn(y[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?function(e,t,r){var i=Ni(e);return function o(){for(var a=arguments.length,l=_e(a),s=a,c=ao(o);s--;)l[s]=arguments[s];var u=a<3&&l[0]!==c&&l[a-1]!==c?[]:ln(l,c);return(a-=u.length)<r?qi(e,t,Fi,o.placeholder,n,l,u,n,n,r-a):kt(this&&this!==dt&&this instanceof o?i:e,this,l)}}(e,t,h):t!=a&&33!=t||u.length?Fi.apply(n,y):function(e,t,n,r){var i=1&t,o=Ni(e);return function t(){for(var a=-1,l=arguments.length,s=-1,c=r.length,u=_e(c+l),d=this&&this!==dt&&this instanceof t?o:e;++s<c;)u[s]=r[s];for(;l--;)u[s++]=arguments[++a];return kt(d,i?n:this,u)}}(e,t,i,c);else var _=function(e,t,n){var r=1&t,i=Ni(e);return function t(){return(this&&this!==dt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,i);return Ro((b?Qr:Lo)(_,y),e,t)}function Ki(e,t,r,i){return e===n||Fa(e,Oe[r])&&!ze.call(i,r)?t:e}function Ji(e,t,r,i,o,a){return Qa(e)&&Qa(t)&&(a.set(t,e),Wr(e,t,n,Ji,a),a.delete(t)),e}function Qi(e){return rl(e)?n:e}function eo(e,t,r,i,o,a){var l=1&r,s=e.length,c=t.length;if(s!=c&&!(l&&c>s))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,p=2&r?new Yn:n;for(a.set(e,t),a.set(t,e);++f<s;){var g=e[f],v=t[f];if(i)var m=l?i(v,g,f,t,e,a):i(g,v,f,e,t,a);if(m!==n){if(m)continue;h=!1;break}if(p){if(!Dt(t,(function(e,t){if(!Kt(p,t)&&(g===e||o(g,e,r,i,a)))return p.push(t)}))){h=!1;break}}else if(g!==v&&!o(g,v,r,i,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function to(e){return Oo(Mo(e,n,Vo),e+"")}function no(e){return kr(e,El,fo)}function ro(e){return kr(e,Ol,ho)}var io=Ln?function(e){return Ln.get(e)}:ls;function oo(e){for(var t=e.name+"",n=En[t],r=ze.call(En,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function ao(e){return(ze.call(Fn,"placeholder")?Fn:e).placeholder}function lo(){var e=Fn.iteratee||rs;return e=e===rs?zr:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function co(e){for(var t=El(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Co(i)]}return t}function uo(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Pr(r)?r:n}var fo=vt?function(e){return null==e?[]:(e=Se(e),Tt(vt(e),(function(t){return Ye.call(e,t)})))}:ps,ho=vt?function(e){for(var t=[];e;)Rt(t,fo(e)),e=$e(e);return t}:ps,po=Cr;function go(e,t,n){for(var r=-1,i=(t=bi(t,e)).length,o=!1;++r<i;){var a=No(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ja(i)&&bo(a,i)&&(Ua(e)||Ha(e))}function vo(e){return"function"!=typeof e.constructor||ko(e)?{}:jn($e(e))}function mo(e){return Ua(e)||Ha(e)||!!(Xe&&e&&e[Xe])}function bo(e,t){var n=typeof e;return!!(t=null==t?u:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function yo(e,t,n){if(!Qa(n))return!1;var r=typeof t;return!!("number"==r?$a(n)&&bo(t,n.length):"string"==r&&t in n)&&Fa(n[t],e)}function _o(e,t){if(Ua(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ll(e))||J.test(e)||!K.test(e)||null!=t&&e in Se(t)}function wo(e){var t=oo(e),n=Fn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var r=io(n);return!!r&&e===r[0]}(kn&&po(new kn(new ArrayBuffer(1)))!=O||Cn&&po(new Cn)!=w||Sn&&po(Sn.resolve())!=C||Mn&&po(new Mn)!=M||An&&po(new An)!=L)&&(po=function(e){var t=Cr(e),r=t==k?e.constructor:n,i=r?Io(r):"";if(i)switch(i){case On:return O;case Rn:return w;case Pn:return C;case zn:return M;case Dn:return L}return t});var xo=Re?Za:gs;function ko(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function Co(e){return e==e&&!Qa(e)}function So(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in Se(r))}}function Mo(e,t,r){return t=mn(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=mn(n.length-t,0),a=_e(o);++i<o;)a[i]=n[t+i];i=-1;for(var l=_e(t+1);++i<t;)l[i]=n[i];return l[t]=r(a),kt(e,this,l)}}function Ao(e,t){return t.length<2?e:xr(e,ni(t,0,-1))}function To(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Lo=Po(Qr),Eo=ft||function(e,t){return dt.setTimeout(e,t)},Oo=Po(ei);function Ro(e,t,n){var r=t+"";return Oo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return St(h,(function(n){var r="_."+n[0];t&n[1]&&!Lt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(ae):[]}(r),n)))}function Po(e){var t=0,r=0;return function(){var i=yn(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function zo(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r<t;){var a=Yr(r,o),l=e[a];e[a]=e[r],e[r]=l}return e.length=t,e}var Do=function(e){var t=Pa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Q,(function(e,n,r,i){t.push(r?i.replace(ce,"$1"):n||e)})),t}));function No(e){if("string"==typeof e||ll(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Io(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bo(e){if(e instanceof Un)return e.clone();var t=new Hn(e.__wrapped__,e.__chain__);return t.__actions__=Ti(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fo=Xr((function(e,t){return qa(e)?ur(e,vr(t,1,qa,!0)):[]})),jo=Xr((function(e,t){var r=Xo(t);return qa(r)&&(r=n),qa(e)?ur(e,vr(t,1,qa,!0),lo(r,2)):[]})),Wo=Xr((function(e,t){var r=Xo(t);return qa(r)&&(r=n),qa(e)?ur(e,vr(t,1,qa,!0),n,r):[]}));function Ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hl(n);return i<0&&(i=mn(r+i,0)),Bt(e,lo(t,3),i)}function Uo(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return r!==n&&(o=hl(r),o=r<0?mn(i+o,0):bn(o,i-1)),Bt(e,lo(t,3),o,!0)}function Vo(e){return null!=e&&e.length?vr(e,1):[]}function $o(e){return e&&e.length?e[0]:n}var qo=Xr((function(e){var t=Ot(e,vi);return t.length&&t[0]===e[0]?Tr(t):[]})),Yo=Xr((function(e){var t=Xo(e),r=Ot(e,vi);return t===Xo(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Tr(r,lo(t,2)):[]})),Go=Xr((function(e){var t=Xo(e),r=Ot(e,vi);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Tr(r,n,t):[]}));function Xo(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Zo=Xr(Ko);function Ko(e,t){return e&&e.length&&t&&t.length?$r(e,t):e}var Jo=to((function(e,t){var n=null==e?0:e.length,r=or(e,t);return qr(e,Ot(t,(function(e){return bo(e,n)?+e:e})).sort(Si)),r}));function Qo(e){return null==e?e:xn.call(e)}var ea=Xr((function(e){return ci(vr(e,1,qa,!0))})),ta=Xr((function(e){var t=Xo(e);return qa(t)&&(t=n),ci(vr(e,1,qa,!0),lo(t,2))})),na=Xr((function(e){var t=Xo(e);return t="function"==typeof t?t:n,ci(vr(e,1,qa,!0),n,t)}));function ra(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,(function(e){if(qa(e))return t=mn(e.length,t),!0})),Yt(t,(function(t){return Ot(e,Ut(t))}))}function ia(e,t){if(!e||!e.length)return[];var r=ra(e);return null==t?r:Ot(r,(function(e){return kt(t,n,e)}))}var oa=Xr((function(e,t){return qa(e)?ur(e,t):[]})),aa=Xr((function(e){return pi(Tt(e,qa))})),la=Xr((function(e){var t=Xo(e);return qa(t)&&(t=n),pi(Tt(e,qa),lo(t,2))})),sa=Xr((function(e){var t=Xo(e);return t="function"==typeof t?t:n,pi(Tt(e,qa),n,t)})),ca=Xr(ra),ua=Xr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ia(e,r)}));function da(e){var t=Fn(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var ha=to((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Un&&bo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:fa,args:[o],thisArg:n}),new Hn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)})),pa=Ei((function(e,t,n){ze.call(e,n)?++e[n]:ir(e,n,1)})),ga=Ii(Ho),va=Ii(Uo);function ma(e,t){return(Ua(e)?St:dr)(e,lo(t,3))}function ba(e,t){return(Ua(e)?Mt:fr)(e,lo(t,3))}var ya=Ei((function(e,t,n){ze.call(e,n)?e[n].push(t):ir(e,n,[t])})),_a=Xr((function(e,t,n){var r=-1,i="function"==typeof t,o=$a(e)?_e(e.length):[];return dr(e,(function(e){o[++r]=i?kt(t,e,n):Lr(e,t,n)})),o})),wa=Ei((function(e,t,n){ir(e,n,t)}));function xa(e,t){return(Ua(e)?Ot:Br)(e,lo(t,3))}var ka=Ei((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ca=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yo(e,t[0],t[1])?t=[]:n>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,vr(t,1),[])})),Sa=ut||function(){return dt.Date.now()};function Ma(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Zi(e,l,n,n,n,n,t)}function Aa(e,t){var i;if("function"!=typeof t)throw new Te(r);return e=hl(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Ta=Xr((function(e,t,n){var r=1;if(n.length){var i=ln(n,ao(Ta));r|=a}return Zi(e,r,t,n,i)})),La=Xr((function(e,t,n){var r=3;if(n.length){var i=ln(n,ao(La));r|=a}return Zi(t,r,e,n,i)}));function Ea(e,t,i){var o,a,l,s,c,u,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new Te(r);function g(t){var r=o,i=a;return o=a=n,d=t,s=e.apply(i,r)}function v(e){var r=e-u;return u===n||r>=t||r<0||h&&e-d>=l}function m(){var e=Sa();if(v(e))return b(e);c=Eo(m,function(e){var n=t-(e-u);return h?bn(n,l-(e-d)):n}(e))}function b(e){return c=n,p&&o?g(e):(o=a=n,s)}function y(){var e=Sa(),r=v(e);if(o=arguments,a=this,u=e,r){if(c===n)return function(e){return d=e,c=Eo(m,t),f?g(e):s}(u);if(h)return wi(c),c=Eo(m,t),g(u)}return c===n&&(c=Eo(m,t)),s}return t=gl(t)||0,Qa(i)&&(f=!!i.leading,l=(h="maxWait"in i)?mn(gl(i.maxWait)||0,t):l,p="trailing"in i?!!i.trailing:p),y.cancel=function(){c!==n&&wi(c),d=0,o=u=a=c=n},y.flush=function(){return c===n?s:b(Sa())},y}var Oa=Xr((function(e,t){return cr(e,1,t)})),Ra=Xr((function(e,t,n){return cr(e,gl(t)||0,n)}));function Pa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Pa.Cache||qn),n}function za(e){if("function"!=typeof e)throw new Te(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Pa.Cache=qn;var Da=yi((function(e,t){var n=(t=1==t.length&&Ua(t[0])?Ot(t[0],Xt(lo())):Ot(vr(t,1),Xt(lo()))).length;return Xr((function(r){for(var i=-1,o=bn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return kt(e,this,r)}))})),Na=Xr((function(e,t){var r=ln(t,ao(Na));return Zi(e,a,n,t,r)})),Ia=Xr((function(e,t){var r=ln(t,ao(Ia));return Zi(e,64,n,t,r)})),Ba=to((function(e,t){return Zi(e,s,n,n,n,t)}));function Fa(e,t){return e===t||e!=e&&t!=t}var ja=$i(Sr),Wa=$i((function(e,t){return e>=t})),Ha=Er(function(){return arguments}())?Er:function(e){return el(e)&&ze.call(e,"callee")&&!Ye.call(e,"callee")},Ua=_e.isArray,Va=mt?Xt(mt):function(e){return el(e)&&Cr(e)==E};function $a(e){return null!=e&&Ja(e.length)&&!Za(e)}function qa(e){return el(e)&&$a(e)}var Ya=Nt||gs,Ga=bt?Xt(bt):function(e){return el(e)&&Cr(e)==m};function Xa(e){if(!el(e))return!1;var t=Cr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rl(e)}function Za(e){if(!Qa(e))return!1;var t=Cr(e);return t==y||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ka(e){return"number"==typeof e&&e==hl(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function Qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function el(e){return null!=e&&"object"==typeof e}var tl=yt?Xt(yt):function(e){return el(e)&&po(e)==w};function nl(e){return"number"==typeof e||el(e)&&Cr(e)==x}function rl(e){if(!el(e)||Cr(e)!=k)return!1;var t=$e(e);if(null===t)return!0;var n=ze.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Be}var il=_t?Xt(_t):function(e){return el(e)&&Cr(e)==S},ol=wt?Xt(wt):function(e){return el(e)&&po(e)==M};function al(e){return"string"==typeof e||!Ua(e)&&el(e)&&Cr(e)==A}function ll(e){return"symbol"==typeof e||el(e)&&Cr(e)==T}var sl=xt?Xt(xt):function(e){return el(e)&&Ja(e.length)&&!!it[Cr(e)]},cl=$i(Ir),ul=$i((function(e,t){return e<=t}));function dl(e){if(!e)return[];if($a(e))return al(e)?dn(e):Ti(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=po(e);return(t==w?on:t==M?sn:Fl)(e)}function fl(e){return e?(e=gl(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hl(e){var t=fl(e),n=t%1;return t==t?n?t-n:t:0}function pl(e){return e?ar(hl(e),0,f):0}function gl(e){if("number"==typeof e)return e;if(ll(e))return d;if(Qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gt(e);var n=he.test(e);return n||ge.test(e)?st(e.slice(2),n?2:8):fe.test(e)?d:+e}function vl(e){return Li(e,Ol(e))}function ml(e){return null==e?"":si(e)}var bl=Oi((function(e,t){if(ko(t)||$a(t))Li(t,El(t),e);else for(var n in t)ze.call(t,n)&&er(e,n,t[n])})),yl=Oi((function(e,t){Li(t,Ol(t),e)})),_l=Oi((function(e,t,n,r){Li(t,Ol(t),e,r)})),wl=Oi((function(e,t,n,r){Li(t,El(t),e,r)})),xl=to(or),kl=Xr((function(e,t){e=Se(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&yo(t[0],t[1],o)&&(i=1);++r<i;)for(var a=t[r],l=Ol(a),s=-1,c=l.length;++s<c;){var u=l[s],d=e[u];(d===n||Fa(d,Oe[u])&&!ze.call(e,u))&&(e[u]=a[u])}return e})),Cl=Xr((function(e){return e.push(n,Ji),kt(Pl,n,e)}));function Sl(e,t,r){var i=null==e?n:xr(e,t);return i===n?r:i}function Ml(e,t){return null!=e&&go(e,t,Ar)}var Al=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ie.call(t)),e[t]=n}),Ql(ns)),Tl=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ie.call(t)),ze.call(e,t)?e[t].push(n):e[t]=[n]}),lo),Ll=Xr(Lr);function El(e){return $a(e)?Xn(e):Dr(e)}function Ol(e){return $a(e)?Xn(e,!0):Nr(e)}var Rl=Oi((function(e,t,n){Wr(e,t,n)})),Pl=Oi((function(e,t,n,r){Wr(e,t,n,r)})),zl=to((function(e,t){var n={};if(null==e)return n;var r=!1;t=Ot(t,(function(t){return t=bi(t,e),r||(r=t.length>1),t})),Li(e,ro(e),n),r&&(n=lr(n,7,Qi));for(var i=t.length;i--;)ui(n,t[i]);return n})),Dl=to((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return Ml(e,n)}))}(e,t)}));function Nl(e,t){if(null==e)return{};var n=Ot(ro(e),(function(e){return[e]}));return t=lo(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Il=Xi(El),Bl=Xi(Ol);function Fl(e){return null==e?[]:Zt(e,El(e))}var jl=Di((function(e,t,n){return t=t.toLowerCase(),e+(n?Wl(t):t)}));function Wl(e){return Xl(ml(e).toLowerCase())}function Hl(e){return(e=ml(e))&&e.replace(me,en).replace(Ke,"")}var Ul=Di((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Vl=Di((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),$l=zi("toLowerCase"),ql=Di((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Yl=Di((function(e,t,n){return e+(n?" ":"")+Xl(t)})),Gl=Di((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xl=zi("toUpperCase");function Zl(e,t,r){return e=ml(e),(t=r?n:t)===n?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Kl=Xr((function(e,t){try{return kt(e,n,t)}catch(e){return Xa(e)?e:new xe(e)}})),Jl=to((function(e,t){return St(t,(function(t){t=No(t),ir(e,t,Ta(e[t],e))})),e}));function Ql(e){return function(){return e}}var es=Bi(),ts=Bi(!0);function ns(e){return e}function rs(e){return zr("function"==typeof e?e:lr(e,1))}var is=Xr((function(e,t){return function(n){return Lr(n,e,t)}})),os=Xr((function(e,t){return function(n){return Lr(e,n,t)}}));function as(e,t,n){var r=El(t),i=wr(t,r);null!=n||Qa(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=wr(t,El(t)));var o=!(Qa(n)&&"chain"in n&&!n.chain),a=Za(e);return St(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ti(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})})),e}function ls(){}var ss=Hi(Ot),cs=Hi(At),us=Hi(Dt);function ds(e){return _o(e)?Ut(No(e)):function(e){return function(t){return xr(t,e)}}(e)}var fs=Vi(),hs=Vi(!0);function ps(){return[]}function gs(){return!1}var vs,ms=Wi((function(e,t){return e+t}),0),bs=Yi("ceil"),ys=Wi((function(e,t){return e/t}),1),_s=Yi("floor"),ws=Wi((function(e,t){return e*t}),1),xs=Yi("round"),ks=Wi((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Te(r);return e=hl(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Ma,Fn.assign=bl,Fn.assignIn=yl,Fn.assignInWith=_l,Fn.assignWith=wl,Fn.at=xl,Fn.before=Aa,Fn.bind=Ta,Fn.bindAll=Jl,Fn.bindKey=La,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ua(e)?e:[e]},Fn.chain=da,Fn.chunk=function(e,t,r){t=(r?yo(e,t,r):t===n)?1:mn(hl(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,l=_e(ht(i/t));o<i;)l[a++]=ni(e,o,o+=t);return l},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=_e(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Rt(Ua(n)?Ti(n):[n],vr(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=lo();return e=t?Ot(e,(function(e){if("function"!=typeof e[1])throw new Te(r);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var i=e[r];if(kt(i[0],this,n))return kt(i[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=El(e);return function(n){return sr(n,e,t)}}(lr(e,1))},Fn.constant=Ql,Fn.countBy=pa,Fn.create=function(e,t){var n=jn(e);return null==t?n:rr(n,t)},Fn.curry=function e(t,r,i){var o=Zi(t,8,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},Fn.curryRight=function e(t,r,i){var o=Zi(t,16,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},Fn.debounce=Ea,Fn.defaults=kl,Fn.defaultsDeep=Cl,Fn.defer=Oa,Fn.delay=Ra,Fn.difference=Fo,Fn.differenceBy=jo,Fn.differenceWith=Wo,Fn.drop=function(e,t,r){var i=null==e?0:e.length;return i?ni(e,(t=r||t===n?1:hl(t))<0?0:t,i):[]},Fn.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?ni(e,0,(t=i-(t=r||t===n?1:hl(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?fi(e,lo(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?fi(e,lo(t,3),!0):[]},Fn.fill=function(e,t,r,i){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&yo(e,t,r)&&(r=0,i=o),function(e,t,r,i){var o=e.length;for((r=hl(r))<0&&(r=-r>o?0:o+r),(i=i===n||i>o?o:hl(i))<0&&(i+=o),i=r>i?0:pl(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},Fn.filter=function(e,t){return(Ua(e)?Tt:gr)(e,lo(t,3))},Fn.flatMap=function(e,t){return vr(xa(e,t),1)},Fn.flatMapDeep=function(e,t){return vr(xa(e,t),c)},Fn.flatMapDepth=function(e,t,r){return r=r===n?1:hl(r),vr(xa(e,t),r)},Fn.flatten=Vo,Fn.flattenDeep=function(e){return null!=e&&e.length?vr(e,c):[]},Fn.flattenDepth=function(e,t){return null!=e&&e.length?vr(e,t=t===n?1:hl(t)):[]},Fn.flip=function(e){return Zi(e,512)},Fn.flow=es,Fn.flowRight=ts,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Fn.functions=function(e){return null==e?[]:wr(e,El(e))},Fn.functionsIn=function(e){return null==e?[]:wr(e,Ol(e))},Fn.groupBy=ya,Fn.initial=function(e){return null!=e&&e.length?ni(e,0,-1):[]},Fn.intersection=qo,Fn.intersectionBy=Yo,Fn.intersectionWith=Go,Fn.invert=Al,Fn.invertBy=Tl,Fn.invokeMap=_a,Fn.iteratee=rs,Fn.keyBy=wa,Fn.keys=El,Fn.keysIn=Ol,Fn.map=xa,Fn.mapKeys=function(e,t){var n={};return t=lo(t,3),yr(e,(function(e,r,i){ir(n,t(e,r,i),e)})),n},Fn.mapValues=function(e,t){var n={};return t=lo(t,3),yr(e,(function(e,r,i){ir(n,r,t(e,r,i))})),n},Fn.matches=function(e){return Fr(lr(e,1))},Fn.matchesProperty=function(e,t){return jr(e,lr(t,1))},Fn.memoize=Pa,Fn.merge=Rl,Fn.mergeWith=Pl,Fn.method=is,Fn.methodOf=os,Fn.mixin=as,Fn.negate=za,Fn.nthArg=function(e){return e=hl(e),Xr((function(t){return Hr(t,e)}))},Fn.omit=zl,Fn.omitBy=function(e,t){return Nl(e,za(lo(t)))},Fn.once=function(e){return Aa(2,e)},Fn.orderBy=function(e,t,r,i){return null==e?[]:(Ua(t)||(t=null==t?[]:[t]),Ua(r=i?n:r)||(r=null==r?[]:[r]),Ur(e,t,r))},Fn.over=ss,Fn.overArgs=Da,Fn.overEvery=cs,Fn.overSome=us,Fn.partial=Na,Fn.partialRight=Ia,Fn.partition=ka,Fn.pick=Dl,Fn.pickBy=Nl,Fn.property=ds,Fn.propertyOf=function(e){return function(t){return null==e?n:xr(e,t)}},Fn.pull=Zo,Fn.pullAll=Ko,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,lo(n,2)):e},Fn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?$r(e,t,n,r):e},Fn.pullAt=Jo,Fn.range=fs,Fn.rangeRight=hs,Fn.rearg=Ba,Fn.reject=function(e,t){return(Ua(e)?Tt:gr)(e,za(lo(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=lo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return qr(e,i),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Te(r);return Xr(e,t=t===n?t:hl(t))},Fn.reverse=Qo,Fn.sampleSize=function(e,t,r){return t=(r?yo(e,t,r):t===n)?1:hl(t),(Ua(e)?Kn:Kr)(e,t)},Fn.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Fn.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Jr(e,t,r,i)},Fn.shuffle=function(e){return(Ua(e)?Jn:ti)(e)},Fn.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&yo(e,t,r)?(t=0,r=i):(t=null==t?0:hl(t),r=r===n?i:hl(r)),ni(e,t,r)):[]},Fn.sortBy=Ca,Fn.sortedUniq=function(e){return e&&e.length?ai(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?ai(e,lo(t,2)):[]},Fn.split=function(e,t,r){return r&&"number"!=typeof r&&yo(e,t,r)&&(t=r=n),(r=r===n?f:r>>>0)?(e=ml(e))&&("string"==typeof t||null!=t&&!il(t))&&!(t=si(t))&&rn(e)?_i(dn(e),0,r):e.split(t,r):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Te(r);return t=null==t?0:mn(hl(t),0),Xr((function(n){var r=n[t],i=_i(n,0,t);return r&&Rt(i,r),kt(e,this,i)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?ni(e,1,t):[]},Fn.take=function(e,t,r){return e&&e.length?ni(e,0,(t=r||t===n?1:hl(t))<0?0:t):[]},Fn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?ni(e,(t=i-(t=r||t===n?1:hl(t)))<0?0:t,i):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?fi(e,lo(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?fi(e,lo(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new Te(r);return Qa(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Ea(e,t,{leading:i,maxWait:t,trailing:o})},Fn.thru=fa,Fn.toArray=dl,Fn.toPairs=Il,Fn.toPairsIn=Bl,Fn.toPath=function(e){return Ua(e)?Ot(e,No):ll(e)?[e]:Ti(Do(ml(e)))},Fn.toPlainObject=vl,Fn.transform=function(e,t,n){var r=Ua(e),i=r||Ya(e)||sl(e);if(t=lo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Qa(e)&&Za(o)?jn($e(e)):{}}return(i?St:yr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Fn.unary=function(e){return Ma(e,1)},Fn.union=ea,Fn.unionBy=ta,Fn.unionWith=na,Fn.uniq=function(e){return e&&e.length?ci(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?ci(e,lo(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?ci(e,n,t):[]},Fn.unset=function(e,t){return null==e||ui(e,t)},Fn.unzip=ra,Fn.unzipWith=ia,Fn.update=function(e,t,n){return null==e?e:di(e,t,mi(n))},Fn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:di(e,t,mi(r),i)},Fn.values=Fl,Fn.valuesIn=function(e){return null==e?[]:Zt(e,Ol(e))},Fn.without=oa,Fn.words=Zl,Fn.wrap=function(e,t){return Na(mi(t),e)},Fn.xor=aa,Fn.xorBy=la,Fn.xorWith=sa,Fn.zip=ca,Fn.zipObject=function(e,t){return gi(e||[],t||[],er)},Fn.zipObjectDeep=function(e,t){return gi(e||[],t||[],Jr)},Fn.zipWith=ua,Fn.entries=Il,Fn.entriesIn=Bl,Fn.extend=yl,Fn.extendWith=_l,as(Fn,Fn),Fn.add=ms,Fn.attempt=Kl,Fn.camelCase=jl,Fn.capitalize=Wl,Fn.ceil=bs,Fn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=gl(r))==r?r:0),t!==n&&(t=(t=gl(t))==t?t:0),ar(gl(e),t,r)},Fn.clone=function(e){return lr(e,4)},Fn.cloneDeep=function(e){return lr(e,5)},Fn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:n)},Fn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:n)},Fn.conformsTo=function(e,t){return null==t||sr(e,t,El(t))},Fn.deburr=Hl,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=ys,Fn.endsWith=function(e,t,r){e=ml(e),t=si(t);var i=e.length,o=r=r===n?i:ar(hl(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},Fn.eq=Fa,Fn.escape=function(e){return(e=ml(e))&&Y.test(e)?e.replace($,tn):e},Fn.escapeRegExp=function(e){return(e=ml(e))&&te.test(e)?e.replace(ee,"\\$&"):e},Fn.every=function(e,t,r){var i=Ua(e)?At:hr;return r&&yo(e,t,r)&&(t=n),i(e,lo(t,3))},Fn.find=ga,Fn.findIndex=Ho,Fn.findKey=function(e,t){return It(e,lo(t,3),yr)},Fn.findLast=va,Fn.findLastIndex=Uo,Fn.findLastKey=function(e,t){return It(e,lo(t,3),_r)},Fn.floor=_s,Fn.forEach=ma,Fn.forEachRight=ba,Fn.forIn=function(e,t){return null==e?e:mr(e,lo(t,3),Ol)},Fn.forInRight=function(e,t){return null==e?e:br(e,lo(t,3),Ol)},Fn.forOwn=function(e,t){return e&&yr(e,lo(t,3))},Fn.forOwnRight=function(e,t){return e&&_r(e,lo(t,3))},Fn.get=Sl,Fn.gt=ja,Fn.gte=Wa,Fn.has=function(e,t){return null!=e&&go(e,t,Mr)},Fn.hasIn=Ml,Fn.head=$o,Fn.identity=ns,Fn.includes=function(e,t,n,r){e=$a(e)?e:Fl(e),n=n&&!r?hl(n):0;var i=e.length;return n<0&&(n=mn(i+n,0)),al(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ft(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hl(n);return i<0&&(i=mn(r+i,0)),Ft(e,t,i)},Fn.inRange=function(e,t,r){return t=fl(t),r===n?(r=t,t=0):r=fl(r),function(e,t,n){return e>=bn(t,n)&&e<mn(t,n)}(e=gl(e),t,r)},Fn.invoke=Ll,Fn.isArguments=Ha,Fn.isArray=Ua,Fn.isArrayBuffer=Va,Fn.isArrayLike=$a,Fn.isArrayLikeObject=qa,Fn.isBoolean=function(e){return!0===e||!1===e||el(e)&&Cr(e)==v},Fn.isBuffer=Ya,Fn.isDate=Ga,Fn.isElement=function(e){return el(e)&&1===e.nodeType&&!rl(e)},Fn.isEmpty=function(e){if(null==e)return!0;if($a(e)&&(Ua(e)||"string"==typeof e||"function"==typeof e.splice||Ya(e)||sl(e)||Ha(e)))return!e.length;var t=po(e);if(t==w||t==M)return!e.size;if(ko(e))return!Dr(e).length;for(var n in e)if(ze.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Or(e,t)},Fn.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?Or(e,t,n,r):!!i},Fn.isError=Xa,Fn.isFinite=function(e){return"number"==typeof e&&Vt(e)},Fn.isFunction=Za,Fn.isInteger=Ka,Fn.isLength=Ja,Fn.isMap=tl,Fn.isMatch=function(e,t){return e===t||Rr(e,t,co(t))},Fn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Rr(e,t,co(t),r)},Fn.isNaN=function(e){return nl(e)&&e!=+e},Fn.isNative=function(e){if(xo(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=nl,Fn.isObject=Qa,Fn.isObjectLike=el,Fn.isPlainObject=rl,Fn.isRegExp=il,Fn.isSafeInteger=function(e){return Ka(e)&&e>=-9007199254740991&&e<=u},Fn.isSet=ol,Fn.isString=al,Fn.isSymbol=ll,Fn.isTypedArray=sl,Fn.isUndefined=function(e){return e===n},Fn.isWeakMap=function(e){return el(e)&&po(e)==L},Fn.isWeakSet=function(e){return el(e)&&"[object WeakSet]"==Cr(e)},Fn.join=function(e,t){return null==e?"":gn.call(e,t)},Fn.kebabCase=Ul,Fn.last=Xo,Fn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=hl(r))<0?mn(i+o,0):bn(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Bt(e,Wt,o,!0)},Fn.lowerCase=Vl,Fn.lowerFirst=$l,Fn.lt=cl,Fn.lte=ul,Fn.max=function(e){return e&&e.length?pr(e,ns,Sr):n},Fn.maxBy=function(e,t){return e&&e.length?pr(e,lo(t,2),Sr):n},Fn.mean=function(e){return Ht(e,ns)},Fn.meanBy=function(e,t){return Ht(e,lo(t,2))},Fn.min=function(e){return e&&e.length?pr(e,ns,Ir):n},Fn.minBy=function(e,t){return e&&e.length?pr(e,lo(t,2),Ir):n},Fn.stubArray=ps,Fn.stubFalse=gs,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=ws,Fn.nth=function(e,t){return e&&e.length?Hr(e,hl(t)):n},Fn.noConflict=function(){return dt._===this&&(dt._=Fe),this},Fn.noop=ls,Fn.now=Sa,Fn.pad=function(e,t,n){e=ml(e);var r=(t=hl(t))?un(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ui(gt(i),n)+e+Ui(ht(i),n)},Fn.padEnd=function(e,t,n){e=ml(e);var r=(t=hl(t))?un(e):0;return t&&r<t?e+Ui(t-r,n):e},Fn.padStart=function(e,t,n){e=ml(e);var r=(t=hl(t))?un(e):0;return t&&r<t?Ui(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(ml(e).replace(ne,""),t||0)},Fn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&yo(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=fl(e),t===n?(t=e,e=0):t=fl(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var o=wn();return bn(e+o*(t-e+lt("1e-"+((o+"").length-1))),t)}return Yr(e,t)},Fn.reduce=function(e,t,n){var r=Ua(e)?Pt:$t,i=arguments.length<3;return r(e,lo(t,4),n,i,dr)},Fn.reduceRight=function(e,t,n){var r=Ua(e)?zt:$t,i=arguments.length<3;return r(e,lo(t,4),n,i,fr)},Fn.repeat=function(e,t,r){return t=(r?yo(e,t,r):t===n)?1:hl(t),Gr(ml(e),t)},Fn.replace=function(){var e=arguments,t=ml(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,r){var i=-1,o=(t=bi(t,e)).length;for(o||(o=1,e=n);++i<o;){var a=null==e?n:e[No(t[i])];a===n&&(i=o,a=r),e=Za(a)?a.call(e):a}return e},Fn.round=xs,Fn.runInContext=e,Fn.sample=function(e){return(Ua(e)?Zn:Zr)(e)},Fn.size=function(e){if(null==e)return 0;if($a(e))return al(e)?un(e):e.length;var t=po(e);return t==w||t==M?e.size:Dr(e).length},Fn.snakeCase=ql,Fn.some=function(e,t,r){var i=Ua(e)?Dt:ri;return r&&yo(e,t,r)&&(t=n),i(e,lo(t,3))},Fn.sortedIndex=function(e,t){return ii(e,t)},Fn.sortedIndexBy=function(e,t,n){return oi(e,t,lo(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ii(e,t);if(r<n&&Fa(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return ii(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return oi(e,t,lo(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ii(e,t,!0)-1;if(Fa(e[n],t))return n}return-1},Fn.startCase=Yl,Fn.startsWith=function(e,t,n){return e=ml(e),n=null==n?0:ar(hl(n),0,e.length),t=si(t),e.slice(n,n+t.length)==t},Fn.subtract=ks,Fn.sum=function(e){return e&&e.length?qt(e,ns):0},Fn.sumBy=function(e,t){return e&&e.length?qt(e,lo(t,2)):0},Fn.template=function(e,t,r){var i=Fn.templateSettings;r&&yo(e,t,r)&&(t=n),e=ml(e),t=_l({},t,i,Ki);var o,a,l=_l({},t.imports,i.imports,Ki),s=El(l),c=Zt(l,s),u=0,d=t.interpolate||be,f="__p += '",h=Me((t.escape||be).source+"|"+d.source+"|"+(d===Z?ue:be).source+"|"+(t.evaluate||be).source+"|$","g"),p="//# sourceURL="+(ze.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(h,(function(t,n,r,i,l,s){return r||(r=i),f+=e.slice(u,s).replace(ye,nn),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),l&&(a=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=s+t.length,t})),f+="';\n";var g=ze.call(t,"variable")&&t.variable;if(g){if(se.test(g))throw new xe("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(W,""):f).replace(H,"$1").replace(U,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Kl((function(){return ke(s,p+"return "+f).apply(n,c)}));if(v.source=f,Xa(v))throw v;return v},Fn.times=function(e,t){if((e=hl(e))<1||e>u)return[];var n=f,r=bn(e,f);t=lo(t),e-=f;for(var i=Yt(r,t);++n<e;)t(n);return i},Fn.toFinite=fl,Fn.toInteger=hl,Fn.toLength=pl,Fn.toLower=function(e){return ml(e).toLowerCase()},Fn.toNumber=gl,Fn.toSafeInteger=function(e){return e?ar(hl(e),-9007199254740991,u):0===e?e:0},Fn.toString=ml,Fn.toUpper=function(e){return ml(e).toUpperCase()},Fn.trim=function(e,t,r){if((e=ml(e))&&(r||t===n))return Gt(e);if(!e||!(t=si(t)))return e;var i=dn(e),o=dn(t);return _i(i,Jt(i,o),Qt(i,o)+1).join("")},Fn.trimEnd=function(e,t,r){if((e=ml(e))&&(r||t===n))return e.slice(0,fn(e)+1);if(!e||!(t=si(t)))return e;var i=dn(e);return _i(i,0,Qt(i,dn(t))+1).join("")},Fn.trimStart=function(e,t,r){if((e=ml(e))&&(r||t===n))return e.replace(ne,"");if(!e||!(t=si(t)))return e;var i=dn(e);return _i(i,Jt(i,dn(t))).join("")},Fn.truncate=function(e,t){var r=30,i="...";if(Qa(t)){var o="separator"in t?t.separator:o;r="length"in t?hl(t.length):r,i="omission"in t?si(t.omission):i}var a=(e=ml(e)).length;if(rn(e)){var l=dn(e);a=l.length}if(r>=a)return e;var s=r-un(i);if(s<1)return i;var c=l?_i(l,0,s).join(""):e.slice(0,s);if(o===n)return c+i;if(l&&(s+=c.length-s),il(o)){if(e.slice(s).search(o)){var u,d=c;for(o.global||(o=Me(o.source,ml(de.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var f=u.index;c=c.slice(0,f===n?s:f)}}else if(e.indexOf(si(o),s)!=s){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+i},Fn.unescape=function(e){return(e=ml(e))&&q.test(e)?e.replace(V,hn):e},Fn.uniqueId=function(e){var t=++De;return ml(e)+t},Fn.upperCase=Gl,Fn.upperFirst=Xl,Fn.each=ma,Fn.eachRight=ba,Fn.first=$o,as(Fn,(vs={},yr(Fn,(function(e,t){ze.call(Fn.prototype,t)||(vs[t]=e)})),vs),{chain:!1}),Fn.VERSION="4.17.23",St(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),St(["drop","take"],(function(e,t){Un.prototype[e]=function(r){r=r===n?1:mn(hl(r),0);var i=this.__filtered__&&!t?new Un(this):this.clone();return i.__filtered__?i.__takeCount__=bn(r,i.__takeCount__):i.__views__.push({size:bn(r,f),type:e+(i.__dir__<0?"Right":"")}),i},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),St(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:lo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),St(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),St(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(ns)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Lr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(za(lo(e)))},Un.prototype.slice=function(e,t){e=hl(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Un(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=hl(t))<0?r.dropRight(-t):r.take(t-e)),r)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(f)},yr(Un.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Fn[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(Fn.prototype[t]=function(){var t=this.__wrapped__,l=i?[1]:arguments,s=t instanceof Un,c=l[0],u=s||Ua(t),d=function(e){var t=o.apply(Fn,Rt([e],l));return i&&f?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(s=u=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,g=s&&!h;if(!a&&u){t=g?t:new Un(this);var v=e.apply(t,l);return v.__actions__.push({func:fa,args:[d],thisArg:n}),new Hn(v,f)}return p&&g?e.apply(this,l):(v=this.thru(d),p?i?v.value()[0]:v.value():v)})})),St(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Le[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ua(i)?i:[],e)}return this[n]((function(n){return t.apply(Ua(n)?n:[],e)}))}})),yr(Un.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";ze.call(En,r)||(En[r]=[]),En[r].push({name:t,func:n})}})),En[Fi(n,2).name]=[{name:"wrapper",func:n}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Ti(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ti(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ti(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ua(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=mn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,l=o.end,s=l-a,c=r?l:a-1,u=this.__iteratees__,d=u.length,f=0,h=bn(s,this.__takeCount__);if(!n||!r&&i==s&&h==s)return hi(e,this.__actions__);var p=[];e:for(;s--&&f<h;){for(var g=-1,v=e[c+=t];++g<d;){var m=u[g],b=m.iteratee,y=m.type,_=b(v);if(2==y)v=_;else if(!_){if(1==y)continue e;break e}}p[f++]=v}return p},Fn.prototype.at=ha,Fn.prototype.chain=function(){return da(this)},Fn.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===n&&(this.__values__=dl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,r=this;r instanceof Wn;){var i=Bo(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:fa,args:[Qo],thisArg:n}),new Hn(t,this.__chain__)}return this.thru(Qo)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,Je&&(Fn.prototype[Je]=function(){return this}),Fn}();ht?((ht.exports=pn)._=pn,ft._=pn):dt._=pn}).call(Pp)}(Rp,Rp.exports)),Rp.exports);const Dp=e=>{const{debounceTimeout:t=0,children:n}=e,r=s(null),i=v(r.current?.clientWidth??0),o=v(r.current?.clientHeight??0),a=s(!0);return u((()=>()=>{a.current=!1}),[]),u((()=>{if(!r.current)return;const e=zp.debounce((e=>{a.current&&m((()=>{const t=Math.floor(e.clientWidth),n=Math.floor(e.clientHeight);t!==i.peek()&&(i.value=t),n!==o.peek()&&(o.value=n)}))}),t);e(r.current);const n=new ResizeObserver((t=>{for(const n of t)e(n.target)}));n.observe(r.current);const l=()=>{r.current&&e(r.current)};return window.addEventListener("resize",l),()=>{n.disconnect(),window.removeEventListener("resize",l)}}),[t,i,o]),ln("div",{ref:r,style:{width:"100%"},children:n(i.value,o.value)})};var Np="styles_selector__znOxx",Ip="styles_wrapper__lYgmR",Bp="styles_view__RIAGy",Fp="styles_image__tDz1w",jp="styles_imageCard__q1Tt-",Wp="styles_imageLabel__-Bqlj",Hp="styles_overlayContainer__nBpEU",Up="styles_overlayHandle__SYBWC";const Vp=l({width:0,height:0}),$p=e=>ln(Dp,{children:(t,n)=>ln(Vp.Provider,{value:{width:t,height:n},children:ln("div",{className:Ip,children:e.children})})}),qp=async e=>{if(!e)return null;const t=new Image,n=new Promise((e=>{t.onload=e,t.onerror=e}));return t.src=e,await n,t},Yp=e=>{const t=f(Vp),n=v(!0),r=v(null),i=v(null),o=v(null),a=v(t);u((()=>{a.value=t}),[t,a]);const l=g((()=>{let t=(e=>{const t=[];return e.actual&&t.push("actual"),e.expected&&t.push("expected"),e.diff&&t.push("diff"),e.actual&&e.expected&&t.push("overlay"),e.actual&&e.expected&&t.push("side-by-side"),t})(e);return null===r.value&&(t=t.filter((e=>"expected"!==e&&"overlay"!==e&&"side-by-side"!==e))),null===i.value&&(t=t.filter((e=>"actual"!==e&&"overlay"!==e&&"side-by-side"!==e))),null===o.value&&(t=t.filter((e=>"diff"!==e))),t})),s=v(l.value[0]);b((()=>{!1===n.value&&(s.value=l.value[0])}));const c=g((()=>0===l.value.length||(!(!e.actual||null!==i.value)||(!(!e.expected||null!==r.value)||!(!e.diff||null!==o.value))))),d=g((()=>{const e="undefined"==typeof window?1:window.devicePixelRatio;return{expected:{width:(r.value?.naturalWidth??0)/e,height:(r.value?.naturalHeight??0)/e},actual:{width:(i.value?.naturalWidth??0)/e,height:(i.value?.naturalHeight??0)/e},diff:{width:(o.value?.naturalWidth??0)/e,height:(o.value?.naturalHeight??0)/e}}}));return u((()=>{const t=new AbortController;return n.value=!0,Promise.all([qp(e.expected),qp(e.actual),qp(e.diff)]).then((([e,a,l])=>{t.signal.aborted||m((()=>{r.value=e,i.value=a,o.value=l,n.value=!1}))})),()=>{t.abort()}}),[e,n,r,i,o]),{data:e,diffModes:l,isLoading:n,failedToLoad:c,containerDimensions:a,imageDimensions:d,images:{expected:r,actual:i,diff:o},diffMode:s}},Gp=l(null),Xp=()=>{const e=f(Gp);if(!e)throw new Error("ImageDiffContext must be used within a ImageDiffContextProvider");return e},Zp=e=>{const{children:t,diff:n}=e,r=Yp(n);return ln(Gp.Provider,{value:r,children:t})},Kp=l((()=>{})),Jp=()=>{},Qp=e=>{const{children:t,i18n:n}=e;return ln(Kp.Provider,{value:n??Jp,children:t})},eg=()=>f(Kp),tg={diff:"Diff",actual:"Actual",expected:"Expected","side-by-side":"Side by side",overlay:"Overlay"},ng=()=>{const{diffModes:e,diffMode:t}=Xp(),n=eg();return ln("div",{className:Np,children:ln(Tp,{children:ln(Lp,{children:ln(y,{each:e,children:e=>ln(Ep,{tabId:e,isCurrentTab:t.value===e,onClick:()=>t.value=e,children:n?.(`mode.${e}`)??tg[e]},e)})})})})};var rg={tag:"styles_tag__1nIw-",neutral:"styles_neutral__-92BW",secondary:"styles_secondary__hAj22",successful:"styles_successful__72b7G",failed:"styles_failed__XLSBR",warning:"styles_warning__fx-w0","neutral-light":"styles_neutral-light__JtTuD","successful-light":"styles_successful-light__WpXqF","failed-light":"styles_failed-light__TrGuK","warning-light":"styles_warning-light__GFi3S"};const ig=({className:e,skin:t,children:n,"data-testid":r})=>ln(dn,{className:j(rg.tag,e,t&&rg[t]),bold:!0,size:"s",type:"ui","data-testid":r,children:n}),og=e=>{const{className:t,...n}=e;return ln("img",{className:j(t,Fp),...n,draggable:!1})},ag=e=>{const{diff:t,actual:n,expected:r,containerSize:i}=e;return Math.min(...[t,n,r,i].filter((e=>e>0)))},lg=e=>{const{options:t,current:n,onChange:r}=e,i=eg();return ln(Di,{size:"s",menuTrigger:({isOpened:e,onClick:t})=>ln(bn,{style:"ghost",size:"s",text:i(`image.${n}`)??zp.capitalize(n),isExpanded:e,onClick:t}),children:ln(Di.Section,{children:t.filter((e=>e!==n)).map((e=>ln(Di.Item,{onClick:()=>r(e),children:i(`image.${e}`)??zp.capitalize(e)},e)))})})},sg=e=>{const{sizes:t,children:n}=e;return ln("div",{className:Wp,children:[n,ln(ig,{skin:"secondary",children:`${t.width} × ${t.height}`})]})},cg=()=>{const{images:e,imageDimensions:t,containerDimensions:n}=Xp(),r=g((()=>ag({diff:t.value.diff.width,actual:t.value.actual.width,expected:t.value.expected.width,containerSize:n.value.width})));return ln("div",{className:Bp,children:ln("div",{className:jp,children:[ln(sg,{sizes:{height:e.diff.value?.naturalHeight??0,width:e.diff.value?.naturalWidth??0}}),ln(og,{src:e.diff.value?.src,width:r.value})]})})},ug=()=>{const{images:e,imageDimensions:t,containerDimensions:n}=Xp(),r=g((()=>ag({diff:t.value.diff.width,actual:t.value.actual.width,expected:t.value.expected.width,containerSize:n.value.width})));return ln("div",{className:Bp,children:ln("div",{className:jp,children:[ln(sg,{sizes:{height:e.actual.value?.naturalHeight??0,width:e.actual.value?.naturalWidth??0}}),ln(og,{src:e.actual.value?.src,width:r.value})]})})},dg=()=>{const{images:e,imageDimensions:t,containerDimensions:n}=Xp(),r=g((()=>ag({diff:t.value.diff.width,actual:t.value.actual.width,expected:t.value.expected.width,containerSize:n.value.width})));return ln("div",{className:Bp,children:ln("div",{className:jp,children:[ln(sg,{sizes:{height:e.expected.value?.naturalHeight??0,width:e.expected.value?.naturalWidth??0}}),ln(og,{src:e.expected.value?.src,width:r.value})]})})},fg=()=>{const{images:e,imageDimensions:t,containerDimensions:n}=Xp(),r=e.expected.value,i=e.actual.value,o=g((()=>ag({diff:t.value.diff.width,actual:t.value.actual.width,expected:t.value.expected.width,containerSize:n.value.width}))),a=v(o.value/2),l=s(null),c=v(!1),u=g((()=>{const e=a.value;return e<0?0:e>o.value?o.value-3:a.value})),d=e=>{const t=l.current?.getBoundingClientRect();t&&(a.value=e-t.left)},f=()=>{c.value=!1},h=g((()=>{const e=o.value/t.value.actual.width,n=o.value/t.value.expected.width;return Math.max(t.value.actual.height*e,t.value.expected.height*n)}));return ln("div",{className:Bp,children:[ln(sg,{sizes:{width:r?.naturalWidth??0,height:r?.naturalHeight??0}}),ln("div",{ref:l,className:Hp,style:{width:o.value,height:h.value},children:[ln("div",{className:jp,children:ln(og,{src:r?.src,width:o.value})}),ln("div",{className:jp,style:{maxWidth:u.value},children:ln(og,{src:i?.src,width:o.value})}),ln("div",{className:Up,style:{transform:`translateX(${u.value}px)`,height:h.value},onPointerDown:e=>{e.preventDefault(),c.value=!0,e.currentTarget.setPointerCapture(e.pointerId),d(e.clientX)},onPointerMove:e=>{c.value&&d(e.clientX)},onPointerUp:f,onPointerCancel:f,onLostPointerCapture:f,"data-dragging":c.value||void 0})]})]})},hg=()=>{const{images:e,imageDimensions:t,containerDimensions:n}=Xp(),r=v("actual"),i=v("expected"),o=g((()=>["actual","expected","diff"])),a=g((()=>["actual","expected","diff"])),l=g((()=>"diff"===r.value?[{width:e.diff.value?.naturalWidth??0,height:e.diff.value?.naturalHeight??0},e.diff.value?.src]:"actual"===r.value?[{width:e.actual.value?.naturalWidth??0,height:e.actual.value?.naturalHeight??0},e.actual.value?.src]:[{width:e.expected.value?.naturalWidth??0,height:e.expected.value?.naturalHeight??0},e.expected.value?.src])),s=g((()=>"diff"===i.value?[{width:e.diff.value?.naturalWidth??0,height:e.diff.value?.naturalHeight??0},e.diff.value?.src]:"actual"===i.value?[{width:e.actual.value?.naturalWidth??0,height:e.actual.value?.naturalHeight??0},e.actual.value?.src]:[{width:e.expected.value?.naturalWidth??0,height:e.expected.value?.naturalHeight??0},e.expected.value?.src])),c=g((()=>ag({diff:t.value.diff.width,actual:t.value.actual.width,expected:t.value.expected.width,containerSize:n.value.width}))),u=g((()=>2*c.value+24>n.value.width?n.value.width/2-24:c.value)),d=u.value>320,[f,h]=l.value,[p,m]=s.value;return ln("div",{className:Bp,"data-row":d||void 0,children:[ln("div",{className:jp,children:[ln(sg,{sizes:f,children:ln(lg,{options:o.value,current:r.value,onChange:e=>{r.value=e}})}),ln(og,{src:h,width:d?u.value:n.value.width})]}),ln("div",{className:jp,children:[ln(sg,{sizes:p,children:ln(lg,{options:a.value,current:i.value,onChange:e=>{i.value=e}})}),ln(og,{src:m,width:d?u.value:n.value.width})]})]})},pg=()=>{const{diffMode:e}=Xp();switch(e.value){case"diff":return ln(cg,{});case"actual":return ln(ug,{});case"expected":return ln(dg,{});case"side-by-side":return ln(hg,{});case"overlay":return ln(fg,{})}},gg=()=>{const e=eg(),{isLoading:t,failedToLoad:n}=Xp();return t.value?ln(un,{size:"m"}):n.value?ln(Jh,{title:e("empty.failed-to-load")??"Failed to load",icon:sn.lineImagesImage}):ln(r,{children:[ln(ng,{}),ln(pg,{})]})},vg=e=>{const{i18n:t,diff:n}=e;return ln(Qp,{i18n:t,children:ln($p,{children:ln(Zp,{diff:n,children:ln(gg,{})})})})},mg=({attachment:e,item:t})=>e&&"src"in e?ln("video",{"data-testid":"video-attachment-content",class:wp,controls:!0,loop:!0,muted:!0,children:ln("source",{src:e.src,type:t.link.contentType})}):ln(un,{}),bg="<style data-allure-preview-theme>:root,html,body{background:#1c1c1e !important;color:#e5e5e7 !important;}body *{border-color:rgba(255,255,255,0.12) !important;}</style>",yg=({attachment:e})=>{const[t,n]=c(""),r=e.text??"",i=r.length>0?((e,t)=>ah.sanitize(e,t))(r):"";return u((()=>{if(i){let e=i;(()=>{const e="undefined"!=typeof document?document.documentElement.getAttribute("data-theme"):null;return"dark"===e||"light"!==e&&"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").matches})()&&(e=/<head(\s[^>]*)?>/i.test(i)?i.replace(/<head(\s[^>]*)?>/i,(e=>e+bg)):/<body(\s[^>]*)?>/i.test(i)?i.replace(/<body(\s[^>]*)?>/i,(e=>e+bg)):bg+i);const t=new Blob([e],{type:"text/html"}),r=URL.createObjectURL(t);return n(r),()=>{URL.revokeObjectURL(r)}}}),[i]),i?ln("div",{className:_p,children:ln("iframe",{src:t,width:"100%",height:"100%",frameBorder:"0",sandbox:"allow-same-origin"})}):null},_g={image:kp,svg:kp,json:gp,code:gp,uri:gp,css:gp,table:gp,html:gp,text:gp,video:mg,"image-diff":e=>{const{attachment:t,i18n:n}=e;return t&&"diff"in t?ln("div",{className:xp,children:ln(vg,{diff:t.diff,i18n:n})}):ln(un,{})},archive:null},wg={html:yg},xg=e=>{const{item:t,previewable:n,highlightCode:r=!0,i18n:i}=e,{link:{contentType:o,id:a,ext:l}}=t,s=v(null),c=v(!0),f=v(!1),h=ro(o),p=d((async()=>{c.value=!0,f.value=!1;try{const e=await(async(e,t,n)=>{if(!e&&!t)return null;const r=await Zi({id:e,ext:t,contentType:n}),i=ro(n);if(!r.ok)throw new Error("Failed to fetch");switch(i){case"svg":case"image":{const t=await r.blob();return{img:URL.createObjectURL(t),id:e}}case"uri":case"code":case"html":case"table":case"text":return{text:await r.text()};case"video":{const t=await r.blob();return{src:URL.createObjectURL(t),id:e,contentType:n}}case"image-diff":return{diff:await r.json()};default:return null}})(a,l,o);m((()=>{c.value=!1,s.value=e}))}catch(e){m((()=>{c.value=!1,f.value=!0}))}}),[a,l,o,c,s,f]);if(u((()=>{h&&p()}),[h,p]),!h)return null;if(c.value)return ln("div",{className:yp,children:ln(un,{})});if(f.value)return ln(Jh,{description:"Failed to load attachment",size:"xs",children:ln(mn,{style:"flat",icon:sn.lineArrowsRefreshCcw1,onClick:p})});const g=wg[h],b=i?.["image-diff"===h?"imageDiff":h];if(n&&g)return ln(g,{attachment:s.value,item:t,i18n:b});const y=_g[h];if(!y)return null;const _=y===gp;return ln(y,{attachment:s.value,item:t,i18n:b,..._?{highlight:r}:{}})},kg=({children:e})=>ln("div",{className:bp,children:e}),Cg=({code:e,children:t,className:n})=>(u((()=>{np.highlightAll()}),[]),ln("pre",{className:j("language-text line-numbers language-diff",n),children:[e&&ln("code",{children:e}),t]}));var Sg="styles_modal-overlay__xdM2o",Mg="styles_modal-content__2yYdb",Ag="styles_modal-wrapper__KacuO",Tg="styles_modal-wrapper-fullscreen__11W3U",Lg="styles_modal-data-component__3HBgz",Eg="styles_modal-buttons__OBqaM",Og="styles_syntax-highlight-off__q6J31",Rg="styles_modal-data__tEK64",Pg="styles_modal-header__IcCg9",zg="styles_modal-thumb__O5sLe",Dg="styles_active__YdnV4",Ng="styles_modal-gallery__w0J0I";const Ig=({changeThumb:e,children:t,isActiveThumb:n})=>ln("div",{className:j(zg,{[Dg]:n}),onClick:()=>()=>e?.(),children:t}),Bg=({attachments:e=[]})=>{const t=e?.filter((({link:{contentType:e}})=>{const t=ro(e);return!["archive",null].includes(t)}));return ln("div",{className:Ng,children:t?.map((e=>ln(Ig,{item:e,children:ln(xg,{item:e})},e?.link?.id)))})},Fg=({data:e,isModalOpen:t,preview:n,component:r,attachments:i,closeModal:o,translations:a,title:l})=>{const{tooltipPreview:s,tooltipSyntaxHighlight:d,tooltipDownload:f,openInNewTabButton:p}=a,{link:g}=e||{},[v,m]=c(!1),[b,y]=c(!!n),[_,w]=c(!0),x=g?.contentType?.startsWith("image"),k=(e=>!!e&&Ji.includes(e))(g?.contentType),C=!(x||g?.contentType?.startsWith("video")||k&&b),S=(e=>{if(!e)return!1;const t=e.contentType?.toLowerCase();let n;for(const t of[e.ext,e.name,e.originalFileName]){if(!t)continue;const e=(no(t)??t.replace(/^\./,"")).toLowerCase(),r=e.includes(".")?e.split(".").pop():e;if(r){n=r;break}}return(!t||!eo.has(t))&&(!(!t||!to.has(t))||!!n&&Qi.has(n))})({contentType:g?.contentType,ext:g?.ext,name:g?.name,originalFileName:g?.originalFileName}),M=g?.id&&g?.ext&&g?.contentType,A=g?.name||g?.id&&g?.ext&&`${g.id}${g.ext}`||"",T=l||A;u((()=>{t&&(y(!!n),w(!0))}),[t,n]);const L=h((()=>r&&Ri(r,{data:e,isFullScreen:v,previewable:b,highlightCode:_})),[r,e,v,b,_]);u((()=>(document.body.style.overflow=t?"hidden":"",()=>{document.body.style.overflow=""})),[t]);const E=async e=>{e.stopPropagation();const{id:t,ext:n,contentType:r}=g||{};t&&n&&r&&await(async(e,t,n)=>{if(!e&&!t)return;const r=`${e}${t}`,i=await Ki(e,t,n),o=URL.createObjectURL(i),a=document.createElement("a");a.href=o,a.download=r,a.click(),URL.revokeObjectURL(o)})(t,n,r)};return t?ln("div",{className:Sg,onClick:o,children:ln("div",{className:j(Mg),onClick:e=>e.stopPropagation(),children:[ln("div",{className:j(Ag,{[Tg]:v}),children:[ln("div",{className:Pg,children:[ln(hn,{size:"s",children:T}),ln("div",{className:Eg,children:[x&&ln(vn,{style:"outline",onClick:async()=>{const{id:e,ext:t,contentType:n}=g||{};await(async(e,t,n)=>{if(!e&&!t)return;const r=await Ki(e,t,n),i=URL.createObjectURL(r);globalThis.open(i,"_blank")})(e,t,n)},icon:sn.lineGeneralLinkExternal,text:p}),k&&ln($r,{tooltipText:s,children:ln(mn,{style:"outline",size:"m",iconSize:"s",icon:b?sn.viewOff:sn.view,onClick:()=>y(!b)})}),C&&S&&ln($r,{tooltipText:d??"Syntax highlighting",children:ln(mn,{className:j(!_&&Og),style:"outline",size:"m",iconSize:"s",icon:sn.lineDevCodeSquare,onClick:()=>w(!_)})}),M&&ln($r,{tooltipText:f,children:ln(mn,{style:"outline",size:"m",iconSize:"s",icon:sn.lineGeneralDownloadCloud,onClick:e=>E(e)})}),ln(mn,{iconSize:"m",style:"ghost",onClick:()=>m(!v),icon:v?sn.lineLayoutsMinimize2:sn.lineLayoutsMaximize2}),ln(mn,{iconSize:"m",style:"ghost",onClick:o,icon:sn.lineGeneralXClose})]})]}),ln("div",{className:Rg,children:ln("div",{className:Lg,children:L},e?.link?.id)})]}),i?.length&&ln(Bg,{attachments:i})]})}):null};var jg={tree:"styles_tree__fG6jK","tree-list":"styles_tree-list__3q7eT","tree-section":"styles_tree-section__iV9nA","tree-section-title":"styles_tree-section-title__3v2nF","tree-count":"styles_tree-count__RjQCr","tree-item":"styles_tree-item__-43NH","item-title":"styles_item-title__ip78x","test-count":"styles_test-count__ynxa4","tree-content":"styles_tree-content__RqVeR",root:"styles_root__gLSTv","tree-item-icon":"styles_tree-item-icon__pSBl5","status-passed":"styles_status-passed__kTMq4","status-failed":"styles_status-failed__2uYs3","status-broken":"styles_status-broken__34I8R","status-skipped":"styles_status-skipped__MEGGW","status-unknown":"styles_status-unknown__p2KHg","tree-status-bar":"styles_tree-status-bar__LJ7Y1","tree-status-bar-item":"styles_tree-status-bar-item__Yofv2",passed:"styles_passed__SeJia",failed:"styles_failed__-3jyb",broken:"styles_broken__g7-KJ",skipped:"styles_skipped__RfV4j",unknown:"styles_unknown__hkDQ1","tree-empty-results":"styles_tree-empty-results__4EWH4","tree-empty-results-title":"styles_tree-empty-results-title__hGsAb","tree-empty-results-clear-button":"styles_tree-empty-results-clear-button__9nCUy",order:"styles_order__-yTyr","tree-item-marked":"styles_tree-item-marked__TW7os"};const{solidAlertCircle:Wg,solidCheckCircle:Hg,solidHelpCircle:Ug,solidMinusCircle:Vg,solidXCircle:$g}=sn,qg={failed:$g,broken:Wg,passed:Hg,skipped:Vg,unknown:Ug},Yg=({status:e="unknown",className:t,classNameIcon:n})=>{const r=j(jg[`status-${e}`],n);return ln("div",{"data-testid":`tree-leaf-status-${e}`,className:j(jg["tree-item-icon"],t),children:ln(cn,{className:r,id:qg[e]})})};var Gg={"tree-item-retries":"styles_tree-item-retries__dhixw"};const Xg=({retriesCount:e=0})=>e>0?ln("div",{"data-testid":"tree-leaf-retries",className:Gg["tree-item-retries"],children:[ln(cn,{className:Gg["tree-leaf-retries-icon"],id:sn.lineArrowsRefreshCcw1}),ln(dn,{type:"ui",size:"m",children:e})]}):null,Zg=e=>{switch(e){case"new":return sn.lineAlertsNew;case"fixed":return sn.lineAlertsFixed;case"regressed":return sn.lineAlertsRegressed;case"malfunctioned":return sn.lineAlertsMalfunctioned;default:return sn.lineAlertsAlertCircle}};var Kg={"item-info":"styles_item-info__ELNw-","item-info-time":"styles_item-info-time__fWpPK"};const Jg=({duration:e,retriesCount:t,flaky:n,transition:r,tooltips:i})=>{const o=qi(e);return ln("div",{className:Kg["item-info"],children:[n&&ln($r,{"data-testid":"tree-leaf-flaky-tooltip",tooltipText:i?.flaky,children:ln(cn,{"data-testid":"tree-leaf-flaky",id:sn.lineIconBomb2})}),Boolean(t)&&ln($r,{"data-testid":"tree-leaf-retries-tooltip",tooltipText:i?.retries,children:ln(Xg,{retriesCount:t})}),r&&ln($r,{"data-testid":"tree-leaf-transition-tooltip",tooltipText:i?.transition,children:ln(cn,{"data-testid":`tree-leaf-transition-${r}`,id:Zg(r),className:Kg["item-info-transition"]})}),ln(dn,{"data-testid":"tree-leaf-duration",type:"ui",size:"m",className:Kg["item-info-time"],children:o})]})},Qg=({name:e,groupOrder:t,status:n,duration:r,retriesCount:i,flaky:o,transition:a,transitionTooltip:l,id:s,marked:c,navigateTo:u,tooltips:d,...f})=>ln("div",{...f,className:j(jg["tree-item"],c?jg["tree-item-marked"]:""),onClick:()=>u(s),id:s,children:[ln(Yg,{status:n}),ln(fn,{"data-testid":"tree-leaf-order",size:"s",className:jg.order,children:t}),ln(dn,{"data-testid":"tree-leaf-title",className:jg["item-title"],children:e}),ln(Jg,{"data-testid":"tree-leaf-info",duration:r,flaky:o,retriesCount:i,transition:a,transitionTooltip:l,tooltips:d})]}),ev=({title:e,icon:t,isOpened:n,toggleTree:r,children:i,...o})=>ln("div",{"data-testid":"tree-section",...o,className:jg["tree-section"],onClick:r,children:[ln(Bi,{"data-testid":"tree-arrow",isOpened:n}),t&&ln(cn,{id:t,size:"xs"}),ln(dn,{"data-testid":"tree-section-title",size:"m",bold:!0,className:jg["tree-section-title"],children:e}),i]}),tv=({statistic:e,statusFilter:t,reportStatistic:n,maxWidth:r=140,minWidth:i=46,offset:o=10})=>{const a=Math.floor(((e,t)=>{const n=Math.log(o);return(Math.log(e+o)-n)/(Math.log(t+o)-n)})(e?.total??0,n?.total??0)*(r-i)+i);return e?ln("div",{className:jg["tree-status-bar"],style:{width:`${a}px`},children:Fi.map((t=>({status:t,value:e[t]}))).filter((({status:e,value:n})=>void 0!==n&&("total"===t||t===e&&n>0))).map((({status:e,value:t})=>ln("div",{className:j(jg["tree-status-bar-item"],jg[e]),style:{flexGrow:t},children:t},e)))}):null},nv=({categoryTitle:e,isOpened:t,toggleTree:n,statistic:r,reportStatistic:i,statusFilter:o,...a})=>ln(ev,{...a,title:e,isOpened:t,toggleTree:n,children:ln(tv,{reportStatistic:i,statusFilter:o,statistic:r})}),rv=({tree:e,statusFilter:t,root:n,name:r,statistic:i,reportStatistic:o,collapsedTrees:a,toggleTree:l,routeId:s,navigateTo:u})=>{const d=a.has(e.nodeId),f=void 0===i||!!i?.failed||!!i?.broken,[h,p]=c((()=>n||(d?!f:f)));if(!e?.trees?.length&&!e?.leaves?.length)return null;const g=h&&ln("div",{"data-testid":"tree-content",className:j({[jg["tree-content"]]:!0,[jg.root]:n}),children:[e?.trees?.map?.((e=>ln(rv,{name:e.name,tree:e,statistic:e.statistic,reportStatistic:o,statusFilter:t,collapsedTrees:a,toggleTree:l,routeId:s,navigateTo:u},e.nodeId))),e?.leaves?.map?.((e=>ln(Qg,{"data-testid":"tree-leaf",id:e.nodeId,name:e.name,status:e.status,groupOrder:e.groupOrder,duration:e.duration,retriesCount:e.retriesCount,transition:e.transition,transitionTooltip:e.transitionTooltip,tooltips:e.tooltips,flaky:e.flaky,marked:e.nodeId===s,navigateTo:u},e.nodeId)))]});return ln("div",{className:jg.tree,children:[r&&ln(nv,{statusFilter:t,categoryTitle:r,isOpened:h,toggleTree:()=>{p(!h),l(e.nodeId)},statistic:i,reportStatistic:o}),g]})};var iv={counter:"styles_counter__chRZ-","status-passed":"styles_status-passed__fOOfy","status-failed":"styles_status-failed__CIBqD","status-broken":"styles_status-broken__caix7","status-skipped":"styles_status-skipped__FrjS4","status-unknown":"styles_status-unknown__wxCbv","size-s":"styles_size-s__MzJcz","size-m":"styles_size-m__zaoMz","size-l":"styles_size-l__foUrC"};const ov=e=>{const{count:t,size:n="s",truncateCount:r=!1,status:i}=e,o=r&&t>99?"99+":t;return ln(dn,{tag:"small",size:"l"===n?"m":"s",type:"ui",bold:!0,className:j(iv.counter,iv[`size-${n}`],i&&iv[`status-${i}`]),"data-testid":"counter",children:o})};var av="styles_toggle__aBRpI";const lv=e=>{const{value:t,label:n,onChange:r,focusable:i=!0,size:o="m",...a}=e;return ln("input",{...a,tabIndex:i?0:-1,className:av,role:"switch",type:"checkbox",checked:t,"aria-label":n,onClick:e=>{const t=!e.target.checked;r(t)},"data-size":o})};var sv="styles_link__BC-2O";const cv=e=>{const{children:t,onClick:n,href:r}=e;return ln(void 0===r?"button":"a",{href:r,onClick:n,className:sv,children:t})};var uv="styles_label__PPstE";const dv=({children:e})=>ln("div",{className:uv,children:ln(dn,{size:"s",bold:!0,type:"ui",children:e})});var fv={"status-label":"styles_status-label__jKe50","status-label-text":"styles_status-label-text__dne2b","status-label-icon":"styles_status-label-icon__XfIPQ","status-passed":"styles_status-passed__nQRTG","status-failed":"styles_status-failed__Bd1ie","status-broken":"styles_status-broken__6NgUj","status-skipped":"styles_status-skipped__S6xGN","status-unknown":"styles_status-unknown__x-nw8"};const hv=({status:e,children:t,className:n,...r})=>ln("div",{...r,className:j(fv["status-label"],fv[`status-${e}`],n),children:[ln(Yg,{status:e,className:fv["status-label-icon"],classNameIcon:fv["status-label-icon"]}),ln(dn,{type:"ui",size:"s",className:fv["status-label-text"],children:t})]});var pv="styles_logo__jHlBl",gv="styles_text__BcILe";const vv=e=>{const{className:t}=e;return ln(dn,{type:"paragraph",size:"m",bold:!0,className:j(gv,t),children:[ln(cn,{id:sn.reportLogo,size:"m",inline:!0,className:pv}),ln("span",{children:"Allure Report"})]})};var mv="styles_report-logo__OOEnL";const bv=e=>{const{className:t,logo:n}=e;return ln("div",{className:j(mv,t),children:n?ln("img",{src:n,alt:"report logo"}):ln(cn,{id:sn.reportLogo,inline:!0})})};var yv="styles_widget__JLpmE",_v="styles_header__yKZiz",wv="styles_content__zvonT";const xv=({children:e,title:t,centerContent:n,dropShadow:r=!0})=>ln("div",{className:yv,"data-drop-shadow":r||void 0,children:[t&&ln("div",{className:_v,children:ln(hn,{size:"s",children:t})}),ln("div",{className:wv,"data-center-content":n,children:e})]});
10
+ /*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */(l,{fg:"var(--on-text-primary)",bg:"none",colors:{0:"none",1:"none",2:"var(--on-support-sirius)",3:"var(--on-support-atlas)",4:"var(--bg-support-skat)",5:"var(--on-support-betelgeuse)"}});return ln("pre",{"data-testid":"code-attachment-content",className:r?`language-${a} line-numbers`:"attachment-code-plain",dangerouslySetInnerHTML:{__html:e}},n?.link?.id)}if(!r)return ln("pre",{"data-testid":"code-attachment-content",className:"attachment-code-plain",children:ln("code",{children:l})},n?.link?.id);const s=((e,t)=>{const n=np.languages[t];if(!n)return hp(e);try{return np.highlight(e,n,t)}catch{return hp(e)}})(l,a);return ln("pre",{"data-testid":"code-attachment-content",className:`language-${a} line-numbers`,children:ln("code",{className:`language-${a}`,dangerouslySetInnerHTML:{__html:s}})},n?.link?.id)};var vp="styles_test-result-attachment-image__sJpWk",mp="styles_test-result-attachment-error__od2Zn",bp="styles_wrong-attachment-sign__j-rkc",yp="styles_test-result-spinner__B3aF3",_p="styles_html-attachment-preview__0-kmL",wp="styles_test-result-attachment-video__251vv",xp="styles_imageDiffWrapper__5nf3F";const kp=e=>{const{attachment:t,item:n}=e,[r,i]=c(!0);return u((()=>{if(t&&"img"in t&&t.img){const e=new Image;e.onload=()=>i(!0),e.onerror=()=>i(!1),e.src=t.img}}),[t]),ln("div",t&&"img"in t&&r?{"data-testid":"image-attachment-content",className:vp,children:ln("img",{src:t.img,alt:n.link.originalFileName})}:{className:mp,children:"something went wrong"})};var Cp="styles_list__pI3IS",Sp="styles_tab__nrjgs";const Mp=l(null),Ap=e=>{const{children:t,initialTab:n}=e,r=v(n),i=d((e=>{r.value=e}),[r]);return ln(Mp.Provider,{value:{currentTab:r,setCurrentTab:i},children:t})},Tp=e=>ln(Ap,{...e}),Lp=e=>ln("div",{className:Cp,children:e.children}),Ep=e=>{const{currentTab:t,setCurrentTab:n}=(()=>{const e=f(Mp);if(!e)throw new Error("NavTabs components must be used within a NavTabs component");return e})(),r=g((()=>t.value===e.tabId)),{tabId:i,children:o,onClick:a,testId:l,isCurrentTab:s=r.value}=e;return ln("button",{className:Sp,onClick:()=>{if(!s)return a?a():void n(i)},"data-testid":l||`tab-${i}`,"aria-current":s||void 0,children:ln(dn,{type:"paragraph",size:"m",bold:s,children:o})})};var Op,Rp={exports:{}},Pp=Rp.exports;var zp=(Op||(Op=1,function(e,t){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",a=32,l=128,s=256,c=1/0,u=9007199254740991,d=NaN,f=4294967295,h=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",s]],p="[object Arguments]",g="[object Array]",v="[object Boolean]",m="[object Date]",b="[object Error]",y="[object Function]",_="[object GeneratorFunction]",w="[object Map]",x="[object Number]",k="[object Object]",C="[object Promise]",S="[object RegExp]",M="[object Set]",A="[object String]",T="[object Symbol]",L="[object WeakMap]",E="[object ArrayBuffer]",O="[object DataView]",R="[object Float32Array]",P="[object Float64Array]",z="[object Int8Array]",D="[object Int16Array]",N="[object Int32Array]",I="[object Uint8Array]",B="[object Uint8ClampedArray]",F="[object Uint16Array]",j="[object Uint32Array]",W=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,q=RegExp(V.source),Y=RegExp($.source),G=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ee=/[\\^$.*+?()[\]{}|]/g,te=RegExp(ee.source),ne=/^\s+/,re=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,se=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,pe=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,ye=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\ufe0e\\ufe0f",Me="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="['’]",Te="["+_e+"]",Le="["+Me+"]",Ee="["+we+"]",Oe="\\d+",Re="["+xe+"]",Pe="["+ke+"]",ze="[^"+_e+Me+Oe+xe+ke+Ce+"]",De="\\ud83c[\\udffb-\\udfff]",Ne="[^"+_e+"]",Ie="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Ce+"]",je="\\u200d",We="(?:"+Pe+"|"+ze+")",He="(?:"+Fe+"|"+ze+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Ee+"|"+De+")?",qe="["+Se+"]?",Ye=qe+$e+"(?:"+je+"(?:"+[Ne,Ie,Be].join("|")+")"+qe+$e+")*",Ge="(?:"+[Re,Ie,Be].join("|")+")"+Ye,Xe="(?:"+[Ne+Ee+"?",Ee,Ie,Be,Te].join("|")+")",Ze=RegExp(Ae,"g"),Ke=RegExp(Ee,"g"),Je=RegExp(De+"(?="+De+")|"+Xe+Ye,"g"),Qe=RegExp([Fe+"?"+Pe+"+"+Ue+"(?="+[Le,Fe,"$"].join("|")+")",He+"+"+Ve+"(?="+[Le,Fe+We,"$"].join("|")+")",Fe+"?"+We+"+"+Ue,Fe+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,Ge].join("|"),"g"),et=RegExp("["+je+_e+we+Se+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[R]=it[P]=it[z]=it[D]=it[N]=it[I]=it[B]=it[F]=it[j]=!0,it[p]=it[g]=it[E]=it[v]=it[O]=it[m]=it[b]=it[y]=it[w]=it[x]=it[k]=it[S]=it[M]=it[A]=it[L]=!1;var ot={};ot[p]=ot[g]=ot[E]=ot[O]=ot[v]=ot[m]=ot[R]=ot[P]=ot[z]=ot[D]=ot[N]=ot[w]=ot[x]=ot[k]=ot[S]=ot[M]=ot[A]=ot[T]=ot[I]=ot[B]=ot[F]=ot[j]=!0,ot[b]=ot[y]=ot[L]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,st=parseInt,ct="object"==typeof Rd&&Rd&&Rd.Object===Object&&Rd,ut="object"==typeof self&&self&&self.Object===Object&&self,dt=ct||ut||Function("return this")(),ft=t&&!t.nodeType&&t,ht=ft&&e&&!e.nodeType&&e,pt=ht&&ht.exports===ft,gt=pt&&ct.process,vt=function(){try{var e=ht&&ht.require&&ht.require("util").types;return e||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),mt=vt&&vt.isArrayBuffer,bt=vt&&vt.isDate,yt=vt&&vt.isMap,_t=vt&&vt.isRegExp,wt=vt&&vt.isSet,xt=vt&&vt.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function St(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Mt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Lt(e,t){return!(null==e||!e.length)&&Ft(e,t,0)>-1}function Et(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Rt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Pt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function zt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Nt=Ut("length");function It(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Bt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Ft(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Bt(e,Wt,n)}function jt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Wt(e){return e!=e}function Ht(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:d}function Ut(e){return function(t){return null==t?n:t[e]}}function Vt(e){return function(t){return null==e?n:e[t]}}function $t(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function qt(e,t){for(var r,i=-1,o=e.length;++i<o;){var a=t(e[i]);a!==n&&(r=r===n?a:r+a)}return r}function Yt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Gt(e){return e?e.slice(0,fn(e)+1).replace(ne,""):e}function Xt(e){return function(t){return e(t)}}function Zt(e,t){return Ot(t,(function(t){return e[t]}))}function Kt(e,t){return e.has(t)}function Jt(e,t){for(var n=-1,r=e.length;++n<r&&Ft(t,e[n],0)>-1;);return n}function Qt(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}var en=Vt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),tn=Vt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function an(e,t){return function(n){return e(t(n))}}function ln(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var l=e[n];l!==t&&l!==o||(e[n]=o,a[i++]=n)}return a}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function un(e){return rn(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t;return t}(e):Nt(e)}function dn(e){return rn(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function fn(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var hn=Vt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),pn=function e(t){var re,_e=(t=null==t?dt:pn.defaults(dt.Object(),t,pn.pick(dt,nt))).Array,we=t.Date,xe=t.Error,ke=t.Function,Ce=t.Math,Se=t.Object,Me=t.RegExp,Ae=t.String,Te=t.TypeError,Le=_e.prototype,Ee=ke.prototype,Oe=Se.prototype,Re=t["__core-js_shared__"],Pe=Ee.toString,ze=Oe.hasOwnProperty,De=0,Ne=(re=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+re:"",Ie=Oe.toString,Be=Pe.call(Se),Fe=dt._,je=Me("^"+Pe.call(ze).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=pt?t.Buffer:n,He=t.Symbol,Ue=t.Uint8Array,Ve=We?We.allocUnsafe:n,$e=an(Se.getPrototypeOf,Se),qe=Se.create,Ye=Oe.propertyIsEnumerable,Ge=Le.splice,Xe=He?He.isConcatSpreadable:n,Je=He?He.iterator:n,et=He?He.toStringTag:n,at=function(){try{var e=uo(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),ct=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ut=we&&we.now!==dt.Date.now&&we.now,ft=t.setTimeout!==dt.setTimeout&&t.setTimeout,ht=Ce.ceil,gt=Ce.floor,vt=Se.getOwnPropertySymbols,Nt=We?We.isBuffer:n,Vt=t.isFinite,gn=Le.join,vn=an(Se.keys,Se),mn=Ce.max,bn=Ce.min,yn=we.now,_n=t.parseInt,wn=Ce.random,xn=Le.reverse,kn=uo(t,"DataView"),Cn=uo(t,"Map"),Sn=uo(t,"Promise"),Mn=uo(t,"Set"),An=uo(t,"WeakMap"),Tn=uo(Se,"create"),Ln=An&&new An,En={},On=Io(kn),Rn=Io(Cn),Pn=Io(Sn),zn=Io(Mn),Dn=Io(An),Nn=He?He.prototype:n,In=Nn?Nn.valueOf:n,Bn=Nn?Nn.toString:n;function Fn(e){if(el(e)&&!Ua(e)&&!(e instanceof Un)){if(e instanceof Hn)return e;if(ze.call(e,"__wrapped__"))return Bo(e)}return new Hn(e)}var jn=function(){function e(){}return function(t){if(!Qa(t))return{};if(qe)return qe(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Wn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new $n(e);this.size=t.size}function Xn(e,t){var n=Ua(e),r=!n&&Ha(e),i=!n&&!r&&Ya(e),o=!n&&!r&&!i&&sl(e),a=n||r||i||o,l=a?Yt(e.length,Ae):[],s=l.length;for(var c in e)!t&&!ze.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||bo(c,s))||l.push(c);return l}function Zn(e){var t=e.length;return t?e[Yr(0,t-1)]:n}function Kn(e,t){return zo(Ti(e),ar(t,0,e.length))}function Jn(e){return zo(Ti(e))}function Qn(e,t,r){(r!==n&&!Fa(e[t],r)||r===n&&!(t in e))&&ir(e,t,r)}function er(e,t,r){var i=e[t];ze.call(e,t)&&Fa(i,r)&&(r!==n||t in e)||ir(e,t,r)}function tr(e,t){for(var n=e.length;n--;)if(Fa(e[n][0],t))return n;return-1}function nr(e,t,n,r){return dr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function rr(e,t){return e&&Li(t,El(t),e)}function ir(e,t,n){"__proto__"==t&&at?at(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var r=-1,i=t.length,o=_e(i),a=null==e;++r<i;)o[r]=a?n:Sl(e,t[r]);return o}function ar(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function lr(e,t,r,i,o,a){var l,s=1&t,c=2&t,u=4&t;if(r&&(l=o?r(e,i,o,a):r(e)),l!==n)return l;if(!Qa(e))return e;var d=Ua(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ze.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Ti(e,l)}else{var f=po(e),h=f==y||f==_;if(Ya(e))return xi(e,s);if(f==k||f==p||h&&!o){if(l=c||h?{}:vo(e),!s)return c?function(e,t){return Li(e,ho(e),t)}(e,function(e,t){return e&&Li(t,Ol(t),e)}(l,e)):function(e,t){return Li(e,fo(e),t)}(e,rr(l,e))}else{if(!ot[f])return o?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case E:return ki(e);case v:case m:return new r(+e);case O:return function(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case P:case z:case D:case N:case I:case B:case F:case j:return Ci(e,n);case w:return new r;case x:case A:return new r(e);case S:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case M:return new r;case T:return function(e){return In?Se(In.call(e)):{}}(e)}}(e,f,s)}}a||(a=new Gn);var g=a.get(e);if(g)return g;a.set(e,l),ol(e)?e.forEach((function(n){l.add(lr(n,t,r,n,e,a))})):tl(e)&&e.forEach((function(n,i){l.set(i,lr(n,t,r,i,e,a))}));var b=d?n:(u?c?ro:no:c?Ol:El)(e);return St(b||e,(function(n,i){b&&(n=e[i=n]),er(l,i,lr(n,t,r,i,e,a))})),l}function sr(e,t,r){var i=r.length;if(null==e)return!i;for(e=Se(e);i--;){var o=r[i],a=t[o],l=e[o];if(l===n&&!(o in e)||!a(l))return!1}return!0}function cr(e,t,i){if("function"!=typeof e)throw new Te(r);return Eo((function(){e.apply(n,i)}),t)}function ur(e,t,n,r){var i=-1,o=Lt,a=!0,l=e.length,s=[],c=t.length;if(!l)return s;n&&(t=Ot(t,Xt(n))),r?(o=Et,a=!1):t.length>=200&&(o=Kt,a=!1,t=new Yn(t));e:for(;++i<l;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;s.push(u)}else o(t,d,r)||s.push(u)}return s}Fn.templateSettings={escape:G,evaluate:X,interpolate:Z,variable:"",imports:{_:Fn}},Fn.prototype=Wn.prototype,Fn.prototype.constructor=Fn,Hn.prototype=jn(Wn.prototype),Hn.prototype.constructor=Hn,Un.prototype=jn(Wn.prototype),Un.prototype.constructor=Un,Vn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(Tn){var r=t[e];return r===i?n:r}return ze.call(t,e)?t[e]:n},Vn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==n:ze.call(t,e)},Vn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Tn&&t===n?i:t,this},$n.prototype.clear=function(){this.__data__=[],this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},$n.prototype.get=function(e){var t=this.__data__,r=tr(t,e);return r<0?n:t[r][1]},$n.prototype.has=function(e){return tr(this.__data__,e)>-1},$n.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(Cn||$n),string:new Vn}},qn.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return so(this,e).get(e)},qn.prototype.has=function(e){return so(this,e).has(e)},qn.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,i),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new $n,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $n){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var dr=Ri(yr),fr=Ri(_r,!0);function hr(e,t){var n=!0;return dr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function pr(e,t,r){for(var i=-1,o=e.length;++i<o;){var a=e[i],l=t(a);if(null!=l&&(s===n?l==l&&!ll(l):r(l,s)))var s=l,c=a}return c}function gr(e,t){var n=[];return dr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function vr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=mo),i||(i=[]);++o<a;){var l=e[o];t>0&&n(l)?t>1?vr(l,t-1,n,r,i):Rt(i,l):r||(i[i.length]=l)}return i}var mr=Pi(),br=Pi(!0);function yr(e,t){return e&&mr(e,t,El)}function _r(e,t){return e&&br(e,t,El)}function wr(e,t){return Tt(t,(function(t){return Za(e[t])}))}function xr(e,t){for(var r=0,i=(t=bi(t,e)).length;null!=e&&r<i;)e=e[No(t[r++])];return r&&r==i?e:n}function kr(e,t,n){var r=t(e);return Ua(e)?r:Rt(r,n(e))}function Cr(e){return null==e?e===n?"[object Undefined]":"[object Null]":et&&et in Se(e)?function(e){var t=ze.call(e,et),r=e[et];try{e[et]=n;var i=!0}catch(e){}var o=Ie.call(e);return i&&(t?e[et]=r:delete e[et]),o}(e):function(e){return Ie.call(e)}(e)}function Sr(e,t){return e>t}function Mr(e,t){return null!=e&&ze.call(e,t)}function Ar(e,t){return null!=e&&t in Se(e)}function Tr(e,t,r){for(var i=r?Et:Lt,o=e[0].length,a=e.length,l=a,s=_e(a),c=1/0,u=[];l--;){var d=e[l];l&&t&&(d=Ot(d,Xt(t))),c=bn(d.length,c),s[l]=!r&&(t||o>=120&&d.length>=120)?new Yn(l&&d):n}d=e[0];var f=-1,h=s[0];e:for(;++f<o&&u.length<c;){var p=d[f],g=t?t(p):p;if(p=r||0!==p?p:0,!(h?Kt(h,g):i(u,g,r))){for(l=a;--l;){var v=s[l];if(!(v?Kt(v,g):i(e[l],g,r)))continue e}h&&h.push(g),u.push(p)}}return u}function Lr(e,t,r){var i=null==(e=Ao(e,t=bi(t,e)))?e:e[No(Xo(t))];return null==i?n:kt(i,e,r)}function Er(e){return el(e)&&Cr(e)==p}function Or(e,t,r,i,o){return e===t||(null==e||null==t||!el(e)&&!el(t)?e!=e&&t!=t:function(e,t,r,i,o,a){var l=Ua(e),s=Ua(t),c=l?g:po(e),u=s?g:po(t),d=(c=c==p?k:c)==k,f=(u=u==p?k:u)==k,h=c==u;if(h&&Ya(e)){if(!Ya(t))return!1;l=!0,d=!1}if(h&&!d)return a||(a=new Gn),l||sl(e)?eo(e,t,r,i,o,a):function(e,t,n,r,i,o,a){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!o(new Ue(e),new Ue(t)));case v:case m:case x:return Fa(+e,+t);case b:return e.name==t.name&&e.message==t.message;case S:case A:return e==t+"";case w:var l=on;case M:var s=1&r;if(l||(l=sn),e.size!=t.size&&!s)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=eo(l(e),l(t),r,i,o,a);return a.delete(e),u;case T:if(In)return In.call(e)==In.call(t)}return!1}(e,t,c,r,i,o,a);if(!(1&r)){var y=d&&ze.call(e,"__wrapped__"),_=f&&ze.call(t,"__wrapped__");if(y||_){var C=y?e.value():e,L=_?t.value():t;return a||(a=new Gn),o(C,L,r,i,a)}}return!!h&&(a||(a=new Gn),function(e,t,r,i,o,a){var l=1&r,s=no(e),c=s.length,u=no(t),d=u.length;if(c!=d&&!l)return!1;for(var f=c;f--;){var h=s[f];if(!(l?h in t:ze.call(t,h)))return!1}var p=a.get(e),g=a.get(t);if(p&&g)return p==t&&g==e;var v=!0;a.set(e,t),a.set(t,e);for(var m=l;++f<c;){var b=e[h=s[f]],y=t[h];if(i)var _=l?i(y,b,h,t,e,a):i(b,y,h,e,t,a);if(!(_===n?b===y||o(b,y,r,i,a):_)){v=!1;break}m||(m="constructor"==h)}if(v&&!m){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(v=!1)}return a.delete(e),a.delete(t),v}(e,t,r,i,o,a))}(e,t,r,i,Or,o))}function Rr(e,t,r,i){var o=r.length,a=o,l=!i;if(null==e)return!a;for(e=Se(e);o--;){var s=r[o];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var c=(s=r[o])[0],u=e[c],d=s[1];if(l&&s[2]){if(u===n&&!(c in e))return!1}else{var f=new Gn;if(i)var h=i(u,d,c,e,t,f);if(!(h===n?Or(d,u,3,i,f):h))return!1}}return!0}function Pr(e){return!(!Qa(e)||(t=e,Ne&&Ne in t))&&(Za(e)?je:pe).test(Io(e));var t}function zr(e){return"function"==typeof e?e:null==e?ns:"object"==typeof e?Ua(e)?jr(e[0],e[1]):Fr(e):ds(e)}function Dr(e){if(!ko(e))return vn(e);var t=[];for(var n in Se(e))ze.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Nr(e){if(!Qa(e))return function(e){var t=[];if(null!=e)for(var n in Se(e))t.push(n);return t}(e);var t=ko(e),n=[];for(var r in e)("constructor"!=r||!t&&ze.call(e,r))&&n.push(r);return n}function Ir(e,t){return e<t}function Br(e,t){var n=-1,r=$a(e)?_e(e.length):[];return dr(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function Fr(e){var t=co(e);return 1==t.length&&t[0][2]?So(t[0][0],t[0][1]):function(n){return n===e||Rr(n,e,t)}}function jr(e,t){return _o(e)&&Co(t)?So(No(e),t):function(r){var i=Sl(r,e);return i===n&&i===t?Ml(r,e):Or(t,i,3)}}function Wr(e,t,r,i,o){e!==t&&mr(t,(function(a,l){if(o||(o=new Gn),Qa(a))!function(e,t,r,i,o,a,l){var s=To(e,r),c=To(t,r),u=l.get(c);if(u)Qn(e,r,u);else{var d=a?a(s,c,r+"",e,t,l):n,f=d===n;if(f){var h=Ua(c),p=!h&&Ya(c),g=!h&&!p&&sl(c);d=c,h||p||g?Ua(s)?d=s:qa(s)?d=Ti(s):p?(f=!1,d=xi(c,!0)):g?(f=!1,d=Ci(c,!0)):d=[]:rl(c)||Ha(c)?(d=s,Ha(s)?d=vl(s):Qa(s)&&!Za(s)||(d=vo(c))):f=!1}f&&(l.set(c,d),o(d,c,i,a,l),l.delete(c)),Qn(e,r,d)}}(e,t,l,r,Wr,i,o);else{var s=i?i(To(e,l),a,l+"",e,t,o):n;s===n&&(s=a),Qn(e,l,s)}}),Ol)}function Hr(e,t){var r=e.length;if(r)return bo(t+=t<0?r:0,r)?e[t]:n}function Ur(e,t,n){t=t.length?Ot(t,(function(e){return Ua(e)?function(t){return xr(t,1===e.length?e[0]:e)}:e})):[ns];var r=-1;t=Ot(t,Xt(lo()));var i=Br(e,(function(e,n,i){var o=Ot(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,l=n.length;++r<a;){var s=Si(i[r],o[r]);if(s)return r>=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Vr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],l=xr(e,a);n(l,a)&&Jr(o,bi(a,e),l)}return o}function $r(e,t,n,r){var i=r?jt:Ft,o=-1,a=t.length,l=e;for(e===t&&(t=Ti(t)),n&&(l=Ot(e,Xt(n)));++o<a;)for(var s=0,c=t[o],u=n?n(c):c;(s=i(l,u,s,r))>-1;)l!==e&&Ge.call(l,s,1),Ge.call(e,s,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;bo(i)?Ge.call(e,i,1):ui(e,i)}}return e}function Yr(e,t){return e+gt(wn()*(t-e+1))}function Gr(e,t){var n="";if(!e||t<1||t>u)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Oo(Mo(e,t,ns),e+"")}function Zr(e){return Zn(Fl(e))}function Kr(e,t){var n=Fl(e);return zo(n,ar(t,0,n.length))}function Jr(e,t,r,i){if(!Qa(e))return e;for(var o=-1,a=(t=bi(t,e)).length,l=a-1,s=e;null!=s&&++o<a;){var c=No(t[o]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=l){var d=s[c];(u=i?i(d,c,s):n)===n&&(u=Qa(d)?d:bo(t[o+1])?[]:{})}er(s,c,u),s=s[c]}return e}var Qr=Ln?function(e,t){return Ln.set(e,t),e}:ns,ei=at?function(e,t){return at(e,"toString",{configurable:!0,enumerable:!1,value:Ql(t),writable:!0})}:ns;function ti(e){return zo(Fl(e))}function ni(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=_e(i);++r<i;)o[r]=e[r+t];return o}function ri(e,t){var n;return dr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ii(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!ll(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return oi(e,t,ns,n)}function oi(e,t,r,i){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=r(t))!=t,s=null===t,c=ll(t),u=t===n;o<a;){var d=gt((o+a)/2),f=r(e[d]),h=f!==n,p=null===f,g=f==f,v=ll(f);if(l)var m=i||g;else m=u?g&&(i||h):s?g&&h&&(i||!p):c?g&&h&&!p&&(i||!v):!p&&!v&&(i?f<=t:f<t);m?o=d+1:a=d}return bn(a,4294967294)}function ai(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!Fa(l,s)){var s=l;o[i++]=0===a?0:a}}return o}function li(e){return"number"==typeof e?e:ll(e)?d:+e}function si(e){if("string"==typeof e)return e;if(Ua(e))return Ot(e,si)+"";if(ll(e))return Bn?Bn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ci(e,t,n){var r=-1,i=Lt,o=e.length,a=!0,l=[],s=l;if(n)a=!1,i=Et;else if(o>=200){var c=t?null:Gi(e);if(c)return sn(c);a=!1,i=Kt,s=new Yn}else s=t?[]:l;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),l.push(u)}else i(s,d,n)||(s!==l&&s.push(d),l.push(u))}return l}function ui(e,t){var n=-1,r=(t=bi(t,e)).length;if(!r)return!0;for(;++n<r;){var i=No(t[n]);if("__proto__"===i&&!ze.call(e,"__proto__"))return!1;if(("constructor"===i||"prototype"===i)&&n<r-1)return!1}var o=Ao(e,t);return null==o||delete o[No(Xo(t))]}function di(e,t,n,r){return Jr(e,t,n(xr(e,t)),r)}function fi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ni(e,r?0:o,r?o+1:i):ni(e,r?o+1:0,r?i:o)}function hi(e,t){var n=e;return n instanceof Un&&(n=n.value()),Pt(t,(function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))}),n)}function pi(e,t,n){var r=e.length;if(r<2)return r?ci(e[0]):[];for(var i=-1,o=_e(r);++i<r;)for(var a=e[i],l=-1;++l<r;)l!=i&&(o[i]=ur(o[i]||a,e[l],t,n));return ci(vr(o,1),t,n)}function gi(e,t,r){for(var i=-1,o=e.length,a=t.length,l={};++i<o;){var s=i<a?t[i]:n;r(l,e[i],s)}return l}function vi(e){return qa(e)?e:[]}function mi(e){return"function"==typeof e?e:ns}function bi(e,t){return Ua(e)?e:_o(e,t)?[e]:Do(ml(e))}var yi=Xr;function _i(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:ni(e,t,r)}var wi=ct||function(e){return dt.clearTimeout(e)};function xi(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function ki(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Ci(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Si(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,a=ll(e),l=t!==n,s=null===t,c=t==t,u=ll(t);if(!s&&!u&&!a&&e>t||a&&l&&c&&!s&&!u||i&&l&&c||!r&&c||!o)return 1;if(!i&&!a&&!u&&e<t||u&&r&&o&&!i&&!a||s&&r&&o||!l&&o||!c)return-1}return 0}function Mi(e,t,n,r){for(var i=-1,o=e.length,a=n.length,l=-1,s=t.length,c=mn(o-a,0),u=_e(s+c),d=!r;++l<s;)u[l]=t[l];for(;++i<a;)(d||i<o)&&(u[n[i]]=e[i]);for(;c--;)u[l++]=e[i++];return u}function Ai(e,t,n,r){for(var i=-1,o=e.length,a=-1,l=n.length,s=-1,c=t.length,u=mn(o-l,0),d=_e(u+c),f=!r;++i<u;)d[i]=e[i];for(var h=i;++s<c;)d[h+s]=t[s];for(;++a<l;)(f||i<o)&&(d[h+n[a]]=e[i++]);return d}function Ti(e,t){var n=-1,r=e.length;for(t||(t=_e(r));++n<r;)t[n]=e[n];return t}function Li(e,t,r,i){var o=!r;r||(r={});for(var a=-1,l=t.length;++a<l;){var s=t[a],c=i?i(r[s],e[s],s,r,e):n;c===n&&(c=e[s]),o?ir(r,s,c):er(r,s,c)}return r}function Ei(e,t){return function(n,r){var i=Ua(n)?Ct:nr,o=t?t():{};return i(n,e,lo(r,2),o)}}function Oi(e){return Xr((function(t,r){var i=-1,o=r.length,a=o>1?r[o-1]:n,l=o>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(o--,a):n,l&&yo(r[0],r[1],l)&&(a=o<3?n:a,o=1),t=Se(t);++i<o;){var s=r[i];s&&e(t,s,i,a)}return t}))}function Ri(e,t){return function(n,r){if(null==n)return n;if(!$a(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Se(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Pi(e){return function(t,n,r){for(var i=-1,o=Se(t),a=r(t),l=a.length;l--;){var s=a[e?l:++i];if(!1===n(o[s],s,o))break}return t}}function zi(e){return function(t){var r=rn(t=ml(t))?dn(t):n,i=r?r[0]:t.charAt(0),o=r?_i(r,1).join(""):t.slice(1);return i[e]()+o}}function Di(e){return function(t){return Pt(Zl(Hl(t).replace(Ze,"")),e,"")}}function Ni(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=jn(e.prototype),r=e.apply(n,t);return Qa(r)?r:n}}function Ii(e){return function(t,r,i){var o=Se(t);if(!$a(t)){var a=lo(r,3);t=El(t),r=function(e){return a(o[e],e,o)}}var l=e(t,r,i);return l>-1?o[a?t[l]:l]:n}}function Bi(e){return to((function(t){var i=t.length,o=i,a=Hn.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if("function"!=typeof l)throw new Te(r);if(a&&!s&&"wrapper"==oo(l))var s=new Hn([],!0)}for(o=s?o:i;++o<i;){var c=oo(l=t[o]),u="wrapper"==c?io(l):n;s=u&&wo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[oo(u[0])].apply(s,u[3]):1==l.length&&wo(l)?s[c]():s.thru(l)}return function(){var e=arguments,n=e[0];if(s&&1==e.length&&Ua(n))return s.plant(n).value();for(var r=0,o=i?t[r].apply(this,e):n;++r<i;)o=t[r].call(this,o);return o}}))}function Fi(e,t,r,i,o,a,s,c,u,d){var f=t&l,h=1&t,p=2&t,g=24&t,v=512&t,m=p?n:Ni(e);return function l(){for(var b=arguments.length,y=_e(b),_=b;_--;)y[_]=arguments[_];if(g)var w=ao(l),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,w);if(i&&(y=Mi(y,i,o,g)),a&&(y=Ai(y,a,s,g)),b-=x,g&&b<d){var k=ln(y,w);return qi(e,t,Fi,l.placeholder,r,y,k,c,u,d-b)}var C=h?r:this,S=p?C[e]:e;return b=y.length,c?y=function(e,t){for(var r=e.length,i=bn(t.length,r),o=Ti(e);i--;){var a=t[i];e[i]=bo(a,r)?o[a]:n}return e}(y,c):v&&b>1&&y.reverse(),f&&u<b&&(y.length=u),this&&this!==dt&&this instanceof l&&(S=m||Ni(S)),S.apply(C,y)}}function ji(e,t){return function(n,r){return function(e,t,n,r){return yr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Wi(e,t){return function(r,i){var o;if(r===n&&i===n)return t;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=si(r),i=si(i)):(r=li(r),i=li(i)),o=e(r,i)}return o}}function Hi(e){return to((function(t){return t=Ot(t,Xt(lo())),Xr((function(n){var r=this;return e(t,(function(e){return kt(e,r,n)}))}))}))}function Ui(e,t){var r=(t=t===n?" ":si(t)).length;if(r<2)return r?Gr(t,e):t;var i=Gr(t,ht(e/un(t)));return rn(t)?_i(dn(i),0,e).join(""):i.slice(0,e)}function Vi(e){return function(t,r,i){return i&&"number"!=typeof i&&yo(t,r,i)&&(r=i=n),t=fl(t),r===n?(r=t,t=0):r=fl(r),function(e,t,n,r){for(var i=-1,o=mn(ht((t-e)/(n||1)),0),a=_e(o);o--;)a[r?o:++i]=e,e+=n;return a}(t,r,i=i===n?t<r?1:-1:fl(i),e)}}function $i(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gl(t),n=gl(n)),e(t,n)}}function qi(e,t,r,i,o,l,s,c,u,d){var f=8&t;t|=f?a:64,4&(t&=~(f?64:a))||(t&=-4);var h=[e,t,o,f?l:n,f?s:n,f?n:l,f?n:s,c,u,d],p=r.apply(n,h);return wo(e)&&Lo(p,h),p.placeholder=i,Ro(p,e,t)}function Yi(e){var t=Ce[e];return function(e,n){if(e=gl(e),(n=null==n?0:bn(hl(n),292))&&Vt(e)){var r=(ml(e)+"e").split("e");return+((r=(ml(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Gi=Mn&&1/sn(new Mn([,-0]))[1]==c?function(e){return new Mn(e)}:ls;function Xi(e){return function(t){var n=po(t);return n==w?on(t):n==M?cn(t):function(e,t){return Ot(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Zi(e,t,i,c,u,d,f,h){var p=2&t;if(!p&&"function"!=typeof e)throw new Te(r);var g=c?c.length:0;if(g||(t&=-97,c=u=n),f=f===n?f:mn(hl(f),0),h=h===n?h:hl(h),g-=u?u.length:0,64&t){var v=c,m=u;c=u=n}var b=p?n:io(e),y=[e,t,i,c,u,v,m,d,f,h];if(b&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,c=r==l&&8==n||r==l&&n==s&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!c)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var d=e[3];e[3]=d?Mi(d,u,t[4]):u,e[4]=d?ln(e[3],o):t[4]}(u=t[5])&&(d=e[5],e[5]=d?Ai(d,u,t[6]):u,e[6]=d?ln(e[5],o):t[6]),(u=t[7])&&(e[7]=u),r&l&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(y,b),e=y[0],t=y[1],i=y[2],c=y[3],u=y[4],!(h=y[9]=y[9]===n?p?0:e.length:mn(y[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?function(e,t,r){var i=Ni(e);return function o(){for(var a=arguments.length,l=_e(a),s=a,c=ao(o);s--;)l[s]=arguments[s];var u=a<3&&l[0]!==c&&l[a-1]!==c?[]:ln(l,c);return(a-=u.length)<r?qi(e,t,Fi,o.placeholder,n,l,u,n,n,r-a):kt(this&&this!==dt&&this instanceof o?i:e,this,l)}}(e,t,h):t!=a&&33!=t||u.length?Fi.apply(n,y):function(e,t,n,r){var i=1&t,o=Ni(e);return function t(){for(var a=-1,l=arguments.length,s=-1,c=r.length,u=_e(c+l),d=this&&this!==dt&&this instanceof t?o:e;++s<c;)u[s]=r[s];for(;l--;)u[s++]=arguments[++a];return kt(d,i?n:this,u)}}(e,t,i,c);else var _=function(e,t,n){var r=1&t,i=Ni(e);return function t(){return(this&&this!==dt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,i);return Ro((b?Qr:Lo)(_,y),e,t)}function Ki(e,t,r,i){return e===n||Fa(e,Oe[r])&&!ze.call(i,r)?t:e}function Ji(e,t,r,i,o,a){return Qa(e)&&Qa(t)&&(a.set(t,e),Wr(e,t,n,Ji,a),a.delete(t)),e}function Qi(e){return rl(e)?n:e}function eo(e,t,r,i,o,a){var l=1&r,s=e.length,c=t.length;if(s!=c&&!(l&&c>s))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,p=2&r?new Yn:n;for(a.set(e,t),a.set(t,e);++f<s;){var g=e[f],v=t[f];if(i)var m=l?i(v,g,f,t,e,a):i(g,v,f,e,t,a);if(m!==n){if(m)continue;h=!1;break}if(p){if(!Dt(t,(function(e,t){if(!Kt(p,t)&&(g===e||o(g,e,r,i,a)))return p.push(t)}))){h=!1;break}}else if(g!==v&&!o(g,v,r,i,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function to(e){return Oo(Mo(e,n,Vo),e+"")}function no(e){return kr(e,El,fo)}function ro(e){return kr(e,Ol,ho)}var io=Ln?function(e){return Ln.get(e)}:ls;function oo(e){for(var t=e.name+"",n=En[t],r=ze.call(En,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function ao(e){return(ze.call(Fn,"placeholder")?Fn:e).placeholder}function lo(){var e=Fn.iteratee||rs;return e=e===rs?zr:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function co(e){for(var t=El(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Co(i)]}return t}function uo(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Pr(r)?r:n}var fo=vt?function(e){return null==e?[]:(e=Se(e),Tt(vt(e),(function(t){return Ye.call(e,t)})))}:ps,ho=vt?function(e){for(var t=[];e;)Rt(t,fo(e)),e=$e(e);return t}:ps,po=Cr;function go(e,t,n){for(var r=-1,i=(t=bi(t,e)).length,o=!1;++r<i;){var a=No(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ja(i)&&bo(a,i)&&(Ua(e)||Ha(e))}function vo(e){return"function"!=typeof e.constructor||ko(e)?{}:jn($e(e))}function mo(e){return Ua(e)||Ha(e)||!!(Xe&&e&&e[Xe])}function bo(e,t){var n=typeof e;return!!(t=null==t?u:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function yo(e,t,n){if(!Qa(n))return!1;var r=typeof t;return!!("number"==r?$a(n)&&bo(t,n.length):"string"==r&&t in n)&&Fa(n[t],e)}function _o(e,t){if(Ua(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ll(e))||J.test(e)||!K.test(e)||null!=t&&e in Se(t)}function wo(e){var t=oo(e),n=Fn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var r=io(n);return!!r&&e===r[0]}(kn&&po(new kn(new ArrayBuffer(1)))!=O||Cn&&po(new Cn)!=w||Sn&&po(Sn.resolve())!=C||Mn&&po(new Mn)!=M||An&&po(new An)!=L)&&(po=function(e){var t=Cr(e),r=t==k?e.constructor:n,i=r?Io(r):"";if(i)switch(i){case On:return O;case Rn:return w;case Pn:return C;case zn:return M;case Dn:return L}return t});var xo=Re?Za:gs;function ko(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function Co(e){return e==e&&!Qa(e)}function So(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in Se(r))}}function Mo(e,t,r){return t=mn(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=mn(n.length-t,0),a=_e(o);++i<o;)a[i]=n[t+i];i=-1;for(var l=_e(t+1);++i<t;)l[i]=n[i];return l[t]=r(a),kt(e,this,l)}}function Ao(e,t){return t.length<2?e:xr(e,ni(t,0,-1))}function To(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Lo=Po(Qr),Eo=ft||function(e,t){return dt.setTimeout(e,t)},Oo=Po(ei);function Ro(e,t,n){var r=t+"";return Oo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return St(h,(function(n){var r="_."+n[0];t&n[1]&&!Lt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(ae):[]}(r),n)))}function Po(e){var t=0,r=0;return function(){var i=yn(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function zo(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r<t;){var a=Yr(r,o),l=e[a];e[a]=e[r],e[r]=l}return e.length=t,e}var Do=function(e){var t=Pa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Q,(function(e,n,r,i){t.push(r?i.replace(ce,"$1"):n||e)})),t}));function No(e){if("string"==typeof e||ll(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Io(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bo(e){if(e instanceof Un)return e.clone();var t=new Hn(e.__wrapped__,e.__chain__);return t.__actions__=Ti(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fo=Xr((function(e,t){return qa(e)?ur(e,vr(t,1,qa,!0)):[]})),jo=Xr((function(e,t){var r=Xo(t);return qa(r)&&(r=n),qa(e)?ur(e,vr(t,1,qa,!0),lo(r,2)):[]})),Wo=Xr((function(e,t){var r=Xo(t);return qa(r)&&(r=n),qa(e)?ur(e,vr(t,1,qa,!0),n,r):[]}));function Ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hl(n);return i<0&&(i=mn(r+i,0)),Bt(e,lo(t,3),i)}function Uo(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return r!==n&&(o=hl(r),o=r<0?mn(i+o,0):bn(o,i-1)),Bt(e,lo(t,3),o,!0)}function Vo(e){return null!=e&&e.length?vr(e,1):[]}function $o(e){return e&&e.length?e[0]:n}var qo=Xr((function(e){var t=Ot(e,vi);return t.length&&t[0]===e[0]?Tr(t):[]})),Yo=Xr((function(e){var t=Xo(e),r=Ot(e,vi);return t===Xo(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Tr(r,lo(t,2)):[]})),Go=Xr((function(e){var t=Xo(e),r=Ot(e,vi);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Tr(r,n,t):[]}));function Xo(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Zo=Xr(Ko);function Ko(e,t){return e&&e.length&&t&&t.length?$r(e,t):e}var Jo=to((function(e,t){var n=null==e?0:e.length,r=or(e,t);return qr(e,Ot(t,(function(e){return bo(e,n)?+e:e})).sort(Si)),r}));function Qo(e){return null==e?e:xn.call(e)}var ea=Xr((function(e){return ci(vr(e,1,qa,!0))})),ta=Xr((function(e){var t=Xo(e);return qa(t)&&(t=n),ci(vr(e,1,qa,!0),lo(t,2))})),na=Xr((function(e){var t=Xo(e);return t="function"==typeof t?t:n,ci(vr(e,1,qa,!0),n,t)}));function ra(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,(function(e){if(qa(e))return t=mn(e.length,t),!0})),Yt(t,(function(t){return Ot(e,Ut(t))}))}function ia(e,t){if(!e||!e.length)return[];var r=ra(e);return null==t?r:Ot(r,(function(e){return kt(t,n,e)}))}var oa=Xr((function(e,t){return qa(e)?ur(e,t):[]})),aa=Xr((function(e){return pi(Tt(e,qa))})),la=Xr((function(e){var t=Xo(e);return qa(t)&&(t=n),pi(Tt(e,qa),lo(t,2))})),sa=Xr((function(e){var t=Xo(e);return t="function"==typeof t?t:n,pi(Tt(e,qa),n,t)})),ca=Xr(ra),ua=Xr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ia(e,r)}));function da(e){var t=Fn(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var ha=to((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Un&&bo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:fa,args:[o],thisArg:n}),new Hn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)})),pa=Ei((function(e,t,n){ze.call(e,n)?++e[n]:ir(e,n,1)})),ga=Ii(Ho),va=Ii(Uo);function ma(e,t){return(Ua(e)?St:dr)(e,lo(t,3))}function ba(e,t){return(Ua(e)?Mt:fr)(e,lo(t,3))}var ya=Ei((function(e,t,n){ze.call(e,n)?e[n].push(t):ir(e,n,[t])})),_a=Xr((function(e,t,n){var r=-1,i="function"==typeof t,o=$a(e)?_e(e.length):[];return dr(e,(function(e){o[++r]=i?kt(t,e,n):Lr(e,t,n)})),o})),wa=Ei((function(e,t,n){ir(e,n,t)}));function xa(e,t){return(Ua(e)?Ot:Br)(e,lo(t,3))}var ka=Ei((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ca=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yo(e,t[0],t[1])?t=[]:n>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,vr(t,1),[])})),Sa=ut||function(){return dt.Date.now()};function Ma(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Zi(e,l,n,n,n,n,t)}function Aa(e,t){var i;if("function"!=typeof t)throw new Te(r);return e=hl(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Ta=Xr((function(e,t,n){var r=1;if(n.length){var i=ln(n,ao(Ta));r|=a}return Zi(e,r,t,n,i)})),La=Xr((function(e,t,n){var r=3;if(n.length){var i=ln(n,ao(La));r|=a}return Zi(t,r,e,n,i)}));function Ea(e,t,i){var o,a,l,s,c,u,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new Te(r);function g(t){var r=o,i=a;return o=a=n,d=t,s=e.apply(i,r)}function v(e){var r=e-u;return u===n||r>=t||r<0||h&&e-d>=l}function m(){var e=Sa();if(v(e))return b(e);c=Eo(m,function(e){var n=t-(e-u);return h?bn(n,l-(e-d)):n}(e))}function b(e){return c=n,p&&o?g(e):(o=a=n,s)}function y(){var e=Sa(),r=v(e);if(o=arguments,a=this,u=e,r){if(c===n)return function(e){return d=e,c=Eo(m,t),f?g(e):s}(u);if(h)return wi(c),c=Eo(m,t),g(u)}return c===n&&(c=Eo(m,t)),s}return t=gl(t)||0,Qa(i)&&(f=!!i.leading,l=(h="maxWait"in i)?mn(gl(i.maxWait)||0,t):l,p="trailing"in i?!!i.trailing:p),y.cancel=function(){c!==n&&wi(c),d=0,o=u=a=c=n},y.flush=function(){return c===n?s:b(Sa())},y}var Oa=Xr((function(e,t){return cr(e,1,t)})),Ra=Xr((function(e,t,n){return cr(e,gl(t)||0,n)}));function Pa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Pa.Cache||qn),n}function za(e){if("function"!=typeof e)throw new Te(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Pa.Cache=qn;var Da=yi((function(e,t){var n=(t=1==t.length&&Ua(t[0])?Ot(t[0],Xt(lo())):Ot(vr(t,1),Xt(lo()))).length;return Xr((function(r){for(var i=-1,o=bn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return kt(e,this,r)}))})),Na=Xr((function(e,t){var r=ln(t,ao(Na));return Zi(e,a,n,t,r)})),Ia=Xr((function(e,t){var r=ln(t,ao(Ia));return Zi(e,64,n,t,r)})),Ba=to((function(e,t){return Zi(e,s,n,n,n,t)}));function Fa(e,t){return e===t||e!=e&&t!=t}var ja=$i(Sr),Wa=$i((function(e,t){return e>=t})),Ha=Er(function(){return arguments}())?Er:function(e){return el(e)&&ze.call(e,"callee")&&!Ye.call(e,"callee")},Ua=_e.isArray,Va=mt?Xt(mt):function(e){return el(e)&&Cr(e)==E};function $a(e){return null!=e&&Ja(e.length)&&!Za(e)}function qa(e){return el(e)&&$a(e)}var Ya=Nt||gs,Ga=bt?Xt(bt):function(e){return el(e)&&Cr(e)==m};function Xa(e){if(!el(e))return!1;var t=Cr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rl(e)}function Za(e){if(!Qa(e))return!1;var t=Cr(e);return t==y||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ka(e){return"number"==typeof e&&e==hl(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function Qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function el(e){return null!=e&&"object"==typeof e}var tl=yt?Xt(yt):function(e){return el(e)&&po(e)==w};function nl(e){return"number"==typeof e||el(e)&&Cr(e)==x}function rl(e){if(!el(e)||Cr(e)!=k)return!1;var t=$e(e);if(null===t)return!0;var n=ze.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Be}var il=_t?Xt(_t):function(e){return el(e)&&Cr(e)==S},ol=wt?Xt(wt):function(e){return el(e)&&po(e)==M};function al(e){return"string"==typeof e||!Ua(e)&&el(e)&&Cr(e)==A}function ll(e){return"symbol"==typeof e||el(e)&&Cr(e)==T}var sl=xt?Xt(xt):function(e){return el(e)&&Ja(e.length)&&!!it[Cr(e)]},cl=$i(Ir),ul=$i((function(e,t){return e<=t}));function dl(e){if(!e)return[];if($a(e))return al(e)?dn(e):Ti(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=po(e);return(t==w?on:t==M?sn:Fl)(e)}function fl(e){return e?(e=gl(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hl(e){var t=fl(e),n=t%1;return t==t?n?t-n:t:0}function pl(e){return e?ar(hl(e),0,f):0}function gl(e){if("number"==typeof e)return e;if(ll(e))return d;if(Qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gt(e);var n=he.test(e);return n||ge.test(e)?st(e.slice(2),n?2:8):fe.test(e)?d:+e}function vl(e){return Li(e,Ol(e))}function ml(e){return null==e?"":si(e)}var bl=Oi((function(e,t){if(ko(t)||$a(t))Li(t,El(t),e);else for(var n in t)ze.call(t,n)&&er(e,n,t[n])})),yl=Oi((function(e,t){Li(t,Ol(t),e)})),_l=Oi((function(e,t,n,r){Li(t,Ol(t),e,r)})),wl=Oi((function(e,t,n,r){Li(t,El(t),e,r)})),xl=to(or),kl=Xr((function(e,t){e=Se(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&yo(t[0],t[1],o)&&(i=1);++r<i;)for(var a=t[r],l=Ol(a),s=-1,c=l.length;++s<c;){var u=l[s],d=e[u];(d===n||Fa(d,Oe[u])&&!ze.call(e,u))&&(e[u]=a[u])}return e})),Cl=Xr((function(e){return e.push(n,Ji),kt(Pl,n,e)}));function Sl(e,t,r){var i=null==e?n:xr(e,t);return i===n?r:i}function Ml(e,t){return null!=e&&go(e,t,Ar)}var Al=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ie.call(t)),e[t]=n}),Ql(ns)),Tl=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ie.call(t)),ze.call(e,t)?e[t].push(n):e[t]=[n]}),lo),Ll=Xr(Lr);function El(e){return $a(e)?Xn(e):Dr(e)}function Ol(e){return $a(e)?Xn(e,!0):Nr(e)}var Rl=Oi((function(e,t,n){Wr(e,t,n)})),Pl=Oi((function(e,t,n,r){Wr(e,t,n,r)})),zl=to((function(e,t){var n={};if(null==e)return n;var r=!1;t=Ot(t,(function(t){return t=bi(t,e),r||(r=t.length>1),t})),Li(e,ro(e),n),r&&(n=lr(n,7,Qi));for(var i=t.length;i--;)ui(n,t[i]);return n})),Dl=to((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return Ml(e,n)}))}(e,t)}));function Nl(e,t){if(null==e)return{};var n=Ot(ro(e),(function(e){return[e]}));return t=lo(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Il=Xi(El),Bl=Xi(Ol);function Fl(e){return null==e?[]:Zt(e,El(e))}var jl=Di((function(e,t,n){return t=t.toLowerCase(),e+(n?Wl(t):t)}));function Wl(e){return Xl(ml(e).toLowerCase())}function Hl(e){return(e=ml(e))&&e.replace(me,en).replace(Ke,"")}var Ul=Di((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Vl=Di((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),$l=zi("toLowerCase"),ql=Di((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Yl=Di((function(e,t,n){return e+(n?" ":"")+Xl(t)})),Gl=Di((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xl=zi("toUpperCase");function Zl(e,t,r){return e=ml(e),(t=r?n:t)===n?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Kl=Xr((function(e,t){try{return kt(e,n,t)}catch(e){return Xa(e)?e:new xe(e)}})),Jl=to((function(e,t){return St(t,(function(t){t=No(t),ir(e,t,Ta(e[t],e))})),e}));function Ql(e){return function(){return e}}var es=Bi(),ts=Bi(!0);function ns(e){return e}function rs(e){return zr("function"==typeof e?e:lr(e,1))}var is=Xr((function(e,t){return function(n){return Lr(n,e,t)}})),os=Xr((function(e,t){return function(n){return Lr(e,n,t)}}));function as(e,t,n){var r=El(t),i=wr(t,r);null!=n||Qa(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=wr(t,El(t)));var o=!(Qa(n)&&"chain"in n&&!n.chain),a=Za(e);return St(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ti(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})})),e}function ls(){}var ss=Hi(Ot),cs=Hi(At),us=Hi(Dt);function ds(e){return _o(e)?Ut(No(e)):function(e){return function(t){return xr(t,e)}}(e)}var fs=Vi(),hs=Vi(!0);function ps(){return[]}function gs(){return!1}var vs,ms=Wi((function(e,t){return e+t}),0),bs=Yi("ceil"),ys=Wi((function(e,t){return e/t}),1),_s=Yi("floor"),ws=Wi((function(e,t){return e*t}),1),xs=Yi("round"),ks=Wi((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Te(r);return e=hl(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Ma,Fn.assign=bl,Fn.assignIn=yl,Fn.assignInWith=_l,Fn.assignWith=wl,Fn.at=xl,Fn.before=Aa,Fn.bind=Ta,Fn.bindAll=Jl,Fn.bindKey=La,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ua(e)?e:[e]},Fn.chain=da,Fn.chunk=function(e,t,r){t=(r?yo(e,t,r):t===n)?1:mn(hl(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,l=_e(ht(i/t));o<i;)l[a++]=ni(e,o,o+=t);return l},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=_e(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Rt(Ua(n)?Ti(n):[n],vr(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=lo();return e=t?Ot(e,(function(e){if("function"!=typeof e[1])throw new Te(r);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var i=e[r];if(kt(i[0],this,n))return kt(i[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=El(e);return function(n){return sr(n,e,t)}}(lr(e,1))},Fn.constant=Ql,Fn.countBy=pa,Fn.create=function(e,t){var n=jn(e);return null==t?n:rr(n,t)},Fn.curry=function e(t,r,i){var o=Zi(t,8,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},Fn.curryRight=function e(t,r,i){var o=Zi(t,16,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},Fn.debounce=Ea,Fn.defaults=kl,Fn.defaultsDeep=Cl,Fn.defer=Oa,Fn.delay=Ra,Fn.difference=Fo,Fn.differenceBy=jo,Fn.differenceWith=Wo,Fn.drop=function(e,t,r){var i=null==e?0:e.length;return i?ni(e,(t=r||t===n?1:hl(t))<0?0:t,i):[]},Fn.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?ni(e,0,(t=i-(t=r||t===n?1:hl(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?fi(e,lo(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?fi(e,lo(t,3),!0):[]},Fn.fill=function(e,t,r,i){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&yo(e,t,r)&&(r=0,i=o),function(e,t,r,i){var o=e.length;for((r=hl(r))<0&&(r=-r>o?0:o+r),(i=i===n||i>o?o:hl(i))<0&&(i+=o),i=r>i?0:pl(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},Fn.filter=function(e,t){return(Ua(e)?Tt:gr)(e,lo(t,3))},Fn.flatMap=function(e,t){return vr(xa(e,t),1)},Fn.flatMapDeep=function(e,t){return vr(xa(e,t),c)},Fn.flatMapDepth=function(e,t,r){return r=r===n?1:hl(r),vr(xa(e,t),r)},Fn.flatten=Vo,Fn.flattenDeep=function(e){return null!=e&&e.length?vr(e,c):[]},Fn.flattenDepth=function(e,t){return null!=e&&e.length?vr(e,t=t===n?1:hl(t)):[]},Fn.flip=function(e){return Zi(e,512)},Fn.flow=es,Fn.flowRight=ts,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];ir(r,i[0],i[1])}return r},Fn.functions=function(e){return null==e?[]:wr(e,El(e))},Fn.functionsIn=function(e){return null==e?[]:wr(e,Ol(e))},Fn.groupBy=ya,Fn.initial=function(e){return null!=e&&e.length?ni(e,0,-1):[]},Fn.intersection=qo,Fn.intersectionBy=Yo,Fn.intersectionWith=Go,Fn.invert=Al,Fn.invertBy=Tl,Fn.invokeMap=_a,Fn.iteratee=rs,Fn.keyBy=wa,Fn.keys=El,Fn.keysIn=Ol,Fn.map=xa,Fn.mapKeys=function(e,t){var n={};return t=lo(t,3),yr(e,(function(e,r,i){ir(n,t(e,r,i),e)})),n},Fn.mapValues=function(e,t){var n={};return t=lo(t,3),yr(e,(function(e,r,i){ir(n,r,t(e,r,i))})),n},Fn.matches=function(e){return Fr(lr(e,1))},Fn.matchesProperty=function(e,t){return jr(e,lr(t,1))},Fn.memoize=Pa,Fn.merge=Rl,Fn.mergeWith=Pl,Fn.method=is,Fn.methodOf=os,Fn.mixin=as,Fn.negate=za,Fn.nthArg=function(e){return e=hl(e),Xr((function(t){return Hr(t,e)}))},Fn.omit=zl,Fn.omitBy=function(e,t){return Nl(e,za(lo(t)))},Fn.once=function(e){return Aa(2,e)},Fn.orderBy=function(e,t,r,i){return null==e?[]:(Ua(t)||(t=null==t?[]:[t]),Ua(r=i?n:r)||(r=null==r?[]:[r]),Ur(e,t,r))},Fn.over=ss,Fn.overArgs=Da,Fn.overEvery=cs,Fn.overSome=us,Fn.partial=Na,Fn.partialRight=Ia,Fn.partition=ka,Fn.pick=Dl,Fn.pickBy=Nl,Fn.property=ds,Fn.propertyOf=function(e){return function(t){return null==e?n:xr(e,t)}},Fn.pull=Zo,Fn.pullAll=Ko,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,lo(n,2)):e},Fn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?$r(e,t,n,r):e},Fn.pullAt=Jo,Fn.range=fs,Fn.rangeRight=hs,Fn.rearg=Ba,Fn.reject=function(e,t){return(Ua(e)?Tt:gr)(e,za(lo(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=lo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return qr(e,i),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Te(r);return Xr(e,t=t===n?t:hl(t))},Fn.reverse=Qo,Fn.sampleSize=function(e,t,r){return t=(r?yo(e,t,r):t===n)?1:hl(t),(Ua(e)?Kn:Kr)(e,t)},Fn.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Fn.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Jr(e,t,r,i)},Fn.shuffle=function(e){return(Ua(e)?Jn:ti)(e)},Fn.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&yo(e,t,r)?(t=0,r=i):(t=null==t?0:hl(t),r=r===n?i:hl(r)),ni(e,t,r)):[]},Fn.sortBy=Ca,Fn.sortedUniq=function(e){return e&&e.length?ai(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?ai(e,lo(t,2)):[]},Fn.split=function(e,t,r){return r&&"number"!=typeof r&&yo(e,t,r)&&(t=r=n),(r=r===n?f:r>>>0)?(e=ml(e))&&("string"==typeof t||null!=t&&!il(t))&&!(t=si(t))&&rn(e)?_i(dn(e),0,r):e.split(t,r):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Te(r);return t=null==t?0:mn(hl(t),0),Xr((function(n){var r=n[t],i=_i(n,0,t);return r&&Rt(i,r),kt(e,this,i)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?ni(e,1,t):[]},Fn.take=function(e,t,r){return e&&e.length?ni(e,0,(t=r||t===n?1:hl(t))<0?0:t):[]},Fn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?ni(e,(t=i-(t=r||t===n?1:hl(t)))<0?0:t,i):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?fi(e,lo(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?fi(e,lo(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new Te(r);return Qa(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Ea(e,t,{leading:i,maxWait:t,trailing:o})},Fn.thru=fa,Fn.toArray=dl,Fn.toPairs=Il,Fn.toPairsIn=Bl,Fn.toPath=function(e){return Ua(e)?Ot(e,No):ll(e)?[e]:Ti(Do(ml(e)))},Fn.toPlainObject=vl,Fn.transform=function(e,t,n){var r=Ua(e),i=r||Ya(e)||sl(e);if(t=lo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Qa(e)&&Za(o)?jn($e(e)):{}}return(i?St:yr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Fn.unary=function(e){return Ma(e,1)},Fn.union=ea,Fn.unionBy=ta,Fn.unionWith=na,Fn.uniq=function(e){return e&&e.length?ci(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?ci(e,lo(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?ci(e,n,t):[]},Fn.unset=function(e,t){return null==e||ui(e,t)},Fn.unzip=ra,Fn.unzipWith=ia,Fn.update=function(e,t,n){return null==e?e:di(e,t,mi(n))},Fn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:di(e,t,mi(r),i)},Fn.values=Fl,Fn.valuesIn=function(e){return null==e?[]:Zt(e,Ol(e))},Fn.without=oa,Fn.words=Zl,Fn.wrap=function(e,t){return Na(mi(t),e)},Fn.xor=aa,Fn.xorBy=la,Fn.xorWith=sa,Fn.zip=ca,Fn.zipObject=function(e,t){return gi(e||[],t||[],er)},Fn.zipObjectDeep=function(e,t){return gi(e||[],t||[],Jr)},Fn.zipWith=ua,Fn.entries=Il,Fn.entriesIn=Bl,Fn.extend=yl,Fn.extendWith=_l,as(Fn,Fn),Fn.add=ms,Fn.attempt=Kl,Fn.camelCase=jl,Fn.capitalize=Wl,Fn.ceil=bs,Fn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=gl(r))==r?r:0),t!==n&&(t=(t=gl(t))==t?t:0),ar(gl(e),t,r)},Fn.clone=function(e){return lr(e,4)},Fn.cloneDeep=function(e){return lr(e,5)},Fn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:n)},Fn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:n)},Fn.conformsTo=function(e,t){return null==t||sr(e,t,El(t))},Fn.deburr=Hl,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=ys,Fn.endsWith=function(e,t,r){e=ml(e),t=si(t);var i=e.length,o=r=r===n?i:ar(hl(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},Fn.eq=Fa,Fn.escape=function(e){return(e=ml(e))&&Y.test(e)?e.replace($,tn):e},Fn.escapeRegExp=function(e){return(e=ml(e))&&te.test(e)?e.replace(ee,"\\$&"):e},Fn.every=function(e,t,r){var i=Ua(e)?At:hr;return r&&yo(e,t,r)&&(t=n),i(e,lo(t,3))},Fn.find=ga,Fn.findIndex=Ho,Fn.findKey=function(e,t){return It(e,lo(t,3),yr)},Fn.findLast=va,Fn.findLastIndex=Uo,Fn.findLastKey=function(e,t){return It(e,lo(t,3),_r)},Fn.floor=_s,Fn.forEach=ma,Fn.forEachRight=ba,Fn.forIn=function(e,t){return null==e?e:mr(e,lo(t,3),Ol)},Fn.forInRight=function(e,t){return null==e?e:br(e,lo(t,3),Ol)},Fn.forOwn=function(e,t){return e&&yr(e,lo(t,3))},Fn.forOwnRight=function(e,t){return e&&_r(e,lo(t,3))},Fn.get=Sl,Fn.gt=ja,Fn.gte=Wa,Fn.has=function(e,t){return null!=e&&go(e,t,Mr)},Fn.hasIn=Ml,Fn.head=$o,Fn.identity=ns,Fn.includes=function(e,t,n,r){e=$a(e)?e:Fl(e),n=n&&!r?hl(n):0;var i=e.length;return n<0&&(n=mn(i+n,0)),al(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ft(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hl(n);return i<0&&(i=mn(r+i,0)),Ft(e,t,i)},Fn.inRange=function(e,t,r){return t=fl(t),r===n?(r=t,t=0):r=fl(r),function(e,t,n){return e>=bn(t,n)&&e<mn(t,n)}(e=gl(e),t,r)},Fn.invoke=Ll,Fn.isArguments=Ha,Fn.isArray=Ua,Fn.isArrayBuffer=Va,Fn.isArrayLike=$a,Fn.isArrayLikeObject=qa,Fn.isBoolean=function(e){return!0===e||!1===e||el(e)&&Cr(e)==v},Fn.isBuffer=Ya,Fn.isDate=Ga,Fn.isElement=function(e){return el(e)&&1===e.nodeType&&!rl(e)},Fn.isEmpty=function(e){if(null==e)return!0;if($a(e)&&(Ua(e)||"string"==typeof e||"function"==typeof e.splice||Ya(e)||sl(e)||Ha(e)))return!e.length;var t=po(e);if(t==w||t==M)return!e.size;if(ko(e))return!Dr(e).length;for(var n in e)if(ze.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Or(e,t)},Fn.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?Or(e,t,n,r):!!i},Fn.isError=Xa,Fn.isFinite=function(e){return"number"==typeof e&&Vt(e)},Fn.isFunction=Za,Fn.isInteger=Ka,Fn.isLength=Ja,Fn.isMap=tl,Fn.isMatch=function(e,t){return e===t||Rr(e,t,co(t))},Fn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Rr(e,t,co(t),r)},Fn.isNaN=function(e){return nl(e)&&e!=+e},Fn.isNative=function(e){if(xo(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=nl,Fn.isObject=Qa,Fn.isObjectLike=el,Fn.isPlainObject=rl,Fn.isRegExp=il,Fn.isSafeInteger=function(e){return Ka(e)&&e>=-9007199254740991&&e<=u},Fn.isSet=ol,Fn.isString=al,Fn.isSymbol=ll,Fn.isTypedArray=sl,Fn.isUndefined=function(e){return e===n},Fn.isWeakMap=function(e){return el(e)&&po(e)==L},Fn.isWeakSet=function(e){return el(e)&&"[object WeakSet]"==Cr(e)},Fn.join=function(e,t){return null==e?"":gn.call(e,t)},Fn.kebabCase=Ul,Fn.last=Xo,Fn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=hl(r))<0?mn(i+o,0):bn(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Bt(e,Wt,o,!0)},Fn.lowerCase=Vl,Fn.lowerFirst=$l,Fn.lt=cl,Fn.lte=ul,Fn.max=function(e){return e&&e.length?pr(e,ns,Sr):n},Fn.maxBy=function(e,t){return e&&e.length?pr(e,lo(t,2),Sr):n},Fn.mean=function(e){return Ht(e,ns)},Fn.meanBy=function(e,t){return Ht(e,lo(t,2))},Fn.min=function(e){return e&&e.length?pr(e,ns,Ir):n},Fn.minBy=function(e,t){return e&&e.length?pr(e,lo(t,2),Ir):n},Fn.stubArray=ps,Fn.stubFalse=gs,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=ws,Fn.nth=function(e,t){return e&&e.length?Hr(e,hl(t)):n},Fn.noConflict=function(){return dt._===this&&(dt._=Fe),this},Fn.noop=ls,Fn.now=Sa,Fn.pad=function(e,t,n){e=ml(e);var r=(t=hl(t))?un(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ui(gt(i),n)+e+Ui(ht(i),n)},Fn.padEnd=function(e,t,n){e=ml(e);var r=(t=hl(t))?un(e):0;return t&&r<t?e+Ui(t-r,n):e},Fn.padStart=function(e,t,n){e=ml(e);var r=(t=hl(t))?un(e):0;return t&&r<t?Ui(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(ml(e).replace(ne,""),t||0)},Fn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&yo(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=fl(e),t===n?(t=e,e=0):t=fl(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var o=wn();return bn(e+o*(t-e+lt("1e-"+((o+"").length-1))),t)}return Yr(e,t)},Fn.reduce=function(e,t,n){var r=Ua(e)?Pt:$t,i=arguments.length<3;return r(e,lo(t,4),n,i,dr)},Fn.reduceRight=function(e,t,n){var r=Ua(e)?zt:$t,i=arguments.length<3;return r(e,lo(t,4),n,i,fr)},Fn.repeat=function(e,t,r){return t=(r?yo(e,t,r):t===n)?1:hl(t),Gr(ml(e),t)},Fn.replace=function(){var e=arguments,t=ml(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,r){var i=-1,o=(t=bi(t,e)).length;for(o||(o=1,e=n);++i<o;){var a=null==e?n:e[No(t[i])];a===n&&(i=o,a=r),e=Za(a)?a.call(e):a}return e},Fn.round=xs,Fn.runInContext=e,Fn.sample=function(e){return(Ua(e)?Zn:Zr)(e)},Fn.size=function(e){if(null==e)return 0;if($a(e))return al(e)?un(e):e.length;var t=po(e);return t==w||t==M?e.size:Dr(e).length},Fn.snakeCase=ql,Fn.some=function(e,t,r){var i=Ua(e)?Dt:ri;return r&&yo(e,t,r)&&(t=n),i(e,lo(t,3))},Fn.sortedIndex=function(e,t){return ii(e,t)},Fn.sortedIndexBy=function(e,t,n){return oi(e,t,lo(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ii(e,t);if(r<n&&Fa(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return ii(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return oi(e,t,lo(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ii(e,t,!0)-1;if(Fa(e[n],t))return n}return-1},Fn.startCase=Yl,Fn.startsWith=function(e,t,n){return e=ml(e),n=null==n?0:ar(hl(n),0,e.length),t=si(t),e.slice(n,n+t.length)==t},Fn.subtract=ks,Fn.sum=function(e){return e&&e.length?qt(e,ns):0},Fn.sumBy=function(e,t){return e&&e.length?qt(e,lo(t,2)):0},Fn.template=function(e,t,r){var i=Fn.templateSettings;r&&yo(e,t,r)&&(t=n),e=ml(e),t=wl({},t,i,Ki);var o=wl({},t.imports,i.imports,Ki),a=El(o),l=Zt(o,a);St(a,(function(e){if(se.test(e))throw new xe("Invalid `imports` option passed into `_.template`")}));var s,c,u=0,d=t.interpolate||be,f="__p += '",h=Me((t.escape||be).source+"|"+d.source+"|"+(d===Z?ue:be).source+"|"+(t.evaluate||be).source+"|$","g"),p="//# sourceURL="+(ze.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(h,(function(t,n,r,i,o,a){return r||(r=i),f+=e.slice(u,a).replace(ye,nn),n&&(s=!0,f+="' +\n__e("+n+") +\n'"),o&&(c=!0,f+="';\n"+o+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=a+t.length,t})),f+="';\n";var g=ze.call(t,"variable")&&t.variable;if(g){if(se.test(g))throw new xe("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(c?f.replace(W,""):f).replace(H,"$1").replace(U,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Kl((function(){return ke(a,p+"return "+f).apply(n,l)}));if(v.source=f,Xa(v))throw v;return v},Fn.times=function(e,t){if((e=hl(e))<1||e>u)return[];var n=f,r=bn(e,f);t=lo(t),e-=f;for(var i=Yt(r,t);++n<e;)t(n);return i},Fn.toFinite=fl,Fn.toInteger=hl,Fn.toLength=pl,Fn.toLower=function(e){return ml(e).toLowerCase()},Fn.toNumber=gl,Fn.toSafeInteger=function(e){return e?ar(hl(e),-9007199254740991,u):0===e?e:0},Fn.toString=ml,Fn.toUpper=function(e){return ml(e).toUpperCase()},Fn.trim=function(e,t,r){if((e=ml(e))&&(r||t===n))return Gt(e);if(!e||!(t=si(t)))return e;var i=dn(e),o=dn(t);return _i(i,Jt(i,o),Qt(i,o)+1).join("")},Fn.trimEnd=function(e,t,r){if((e=ml(e))&&(r||t===n))return e.slice(0,fn(e)+1);if(!e||!(t=si(t)))return e;var i=dn(e);return _i(i,0,Qt(i,dn(t))+1).join("")},Fn.trimStart=function(e,t,r){if((e=ml(e))&&(r||t===n))return e.replace(ne,"");if(!e||!(t=si(t)))return e;var i=dn(e);return _i(i,Jt(i,dn(t))).join("")},Fn.truncate=function(e,t){var r=30,i="...";if(Qa(t)){var o="separator"in t?t.separator:o;r="length"in t?hl(t.length):r,i="omission"in t?si(t.omission):i}var a=(e=ml(e)).length;if(rn(e)){var l=dn(e);a=l.length}if(r>=a)return e;var s=r-un(i);if(s<1)return i;var c=l?_i(l,0,s).join(""):e.slice(0,s);if(o===n)return c+i;if(l&&(s+=c.length-s),il(o)){if(e.slice(s).search(o)){var u,d=c;for(o.global||(o=Me(o.source,ml(de.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var f=u.index;c=c.slice(0,f===n?s:f)}}else if(e.indexOf(si(o),s)!=s){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+i},Fn.unescape=function(e){return(e=ml(e))&&q.test(e)?e.replace(V,hn):e},Fn.uniqueId=function(e){var t=++De;return ml(e)+t},Fn.upperCase=Gl,Fn.upperFirst=Xl,Fn.each=ma,Fn.eachRight=ba,Fn.first=$o,as(Fn,(vs={},yr(Fn,(function(e,t){ze.call(Fn.prototype,t)||(vs[t]=e)})),vs),{chain:!1}),Fn.VERSION="4.18.1",St(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),St(["drop","take"],(function(e,t){Un.prototype[e]=function(r){r=r===n?1:mn(hl(r),0);var i=this.__filtered__&&!t?new Un(this):this.clone();return i.__filtered__?i.__takeCount__=bn(r,i.__takeCount__):i.__views__.push({size:bn(r,f),type:e+(i.__dir__<0?"Right":"")}),i},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),St(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:lo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),St(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),St(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(ns)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Lr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(za(lo(e)))},Un.prototype.slice=function(e,t){e=hl(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Un(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=hl(t))<0?r.dropRight(-t):r.take(t-e)),r)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(f)},yr(Un.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Fn[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(Fn.prototype[t]=function(){var t=this.__wrapped__,l=i?[1]:arguments,s=t instanceof Un,c=l[0],u=s||Ua(t),d=function(e){var t=o.apply(Fn,Rt([e],l));return i&&f?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(s=u=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,g=s&&!h;if(!a&&u){t=g?t:new Un(this);var v=e.apply(t,l);return v.__actions__.push({func:fa,args:[d],thisArg:n}),new Hn(v,f)}return p&&g?e.apply(this,l):(v=this.thru(d),p?i?v.value()[0]:v.value():v)})})),St(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Le[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ua(i)?i:[],e)}return this[n]((function(n){return t.apply(Ua(n)?n:[],e)}))}})),yr(Un.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";ze.call(En,r)||(En[r]=[]),En[r].push({name:t,func:n})}})),En[Fi(n,2).name]=[{name:"wrapper",func:n}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Ti(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ti(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ti(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ua(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=mn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,l=o.end,s=l-a,c=r?l:a-1,u=this.__iteratees__,d=u.length,f=0,h=bn(s,this.__takeCount__);if(!n||!r&&i==s&&h==s)return hi(e,this.__actions__);var p=[];e:for(;s--&&f<h;){for(var g=-1,v=e[c+=t];++g<d;){var m=u[g],b=m.iteratee,y=m.type,_=b(v);if(2==y)v=_;else if(!_){if(1==y)continue e;break e}}p[f++]=v}return p},Fn.prototype.at=ha,Fn.prototype.chain=function(){return da(this)},Fn.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===n&&(this.__values__=dl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,r=this;r instanceof Wn;){var i=Bo(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:fa,args:[Qo],thisArg:n}),new Hn(t,this.__chain__)}return this.thru(Qo)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,Je&&(Fn.prototype[Je]=function(){return this}),Fn}();ht?((ht.exports=pn)._=pn,ft._=pn):dt._=pn}).call(Pp)}(Rp,Rp.exports)),Rp.exports);const Dp=e=>{const{debounceTimeout:t=0,children:n}=e,r=s(null),i=v(r.current?.clientWidth??0),o=v(r.current?.clientHeight??0),a=s(!0);return u((()=>()=>{a.current=!1}),[]),u((()=>{if(!r.current)return;const e=zp.debounce((e=>{a.current&&m((()=>{const t=Math.floor(e.clientWidth),n=Math.floor(e.clientHeight);t!==i.peek()&&(i.value=t),n!==o.peek()&&(o.value=n)}))}),t);e(r.current);const n=new ResizeObserver((t=>{for(const n of t)e(n.target)}));n.observe(r.current);const l=()=>{r.current&&e(r.current)};return window.addEventListener("resize",l),()=>{n.disconnect(),window.removeEventListener("resize",l)}}),[t,i,o]),ln("div",{ref:r,style:{width:"100%"},children:n(i.value,o.value)})};var Np="styles_selector__znOxx",Ip="styles_wrapper__lYgmR",Bp="styles_view__RIAGy",Fp="styles_image__tDz1w",jp="styles_imageCard__q1Tt-",Wp="styles_imageLabel__-Bqlj",Hp="styles_overlayContainer__nBpEU",Up="styles_overlayHandle__SYBWC";const Vp=l({width:0,height:0}),$p=e=>ln(Dp,{children:(t,n)=>ln(Vp.Provider,{value:{width:t,height:n},children:ln("div",{className:Ip,children:e.children})})}),qp=async e=>{if(!e)return null;const t=new Image,n=new Promise((e=>{t.onload=e,t.onerror=e}));return t.src=e,await n,t},Yp=e=>{const t=f(Vp),n=v(!0),r=v(null),i=v(null),o=v(null),a=v(t);u((()=>{a.value=t}),[t,a]);const l=g((()=>{let t=(e=>{const t=[];return e.actual&&t.push("actual"),e.expected&&t.push("expected"),e.diff&&t.push("diff"),e.actual&&e.expected&&t.push("overlay"),e.actual&&e.expected&&t.push("side-by-side"),t})(e);return null===r.value&&(t=t.filter((e=>"expected"!==e&&"overlay"!==e&&"side-by-side"!==e))),null===i.value&&(t=t.filter((e=>"actual"!==e&&"overlay"!==e&&"side-by-side"!==e))),null===o.value&&(t=t.filter((e=>"diff"!==e))),t})),s=v(l.value[0]);b((()=>{!1===n.value&&(s.value=l.value[0])}));const c=g((()=>0===l.value.length||(!(!e.actual||null!==i.value)||(!(!e.expected||null!==r.value)||!(!e.diff||null!==o.value))))),d=g((()=>{const e="undefined"==typeof window?1:window.devicePixelRatio;return{expected:{width:(r.value?.naturalWidth??0)/e,height:(r.value?.naturalHeight??0)/e},actual:{width:(i.value?.naturalWidth??0)/e,height:(i.value?.naturalHeight??0)/e},diff:{width:(o.value?.naturalWidth??0)/e,height:(o.value?.naturalHeight??0)/e}}}));return u((()=>{const t=new AbortController;return n.value=!0,Promise.all([qp(e.expected),qp(e.actual),qp(e.diff)]).then((([e,a,l])=>{t.signal.aborted||m((()=>{r.value=e,i.value=a,o.value=l,n.value=!1}))})),()=>{t.abort()}}),[e,n,r,i,o]),{data:e,diffModes:l,isLoading:n,failedToLoad:c,containerDimensions:a,imageDimensions:d,images:{expected:r,actual:i,diff:o},diffMode:s}},Gp=l(null),Xp=()=>{const e=f(Gp);if(!e)throw new Error("ImageDiffContext must be used within a ImageDiffContextProvider");return e},Zp=e=>{const{children:t,diff:n}=e,r=Yp(n);return ln(Gp.Provider,{value:r,children:t})},Kp=l((()=>{})),Jp=()=>{},Qp=e=>{const{children:t,i18n:n}=e;return ln(Kp.Provider,{value:n??Jp,children:t})},eg=()=>f(Kp),tg={diff:"Diff",actual:"Actual",expected:"Expected","side-by-side":"Side by side",overlay:"Overlay"},ng=()=>{const{diffModes:e,diffMode:t}=Xp(),n=eg();return ln("div",{className:Np,children:ln(Tp,{children:ln(Lp,{children:ln(y,{each:e,children:e=>ln(Ep,{tabId:e,isCurrentTab:t.value===e,onClick:()=>t.value=e,children:n?.(`mode.${e}`)??tg[e]},e)})})})})};var rg={tag:"styles_tag__1nIw-",neutral:"styles_neutral__-92BW",secondary:"styles_secondary__hAj22",successful:"styles_successful__72b7G",failed:"styles_failed__XLSBR",warning:"styles_warning__fx-w0","neutral-light":"styles_neutral-light__JtTuD","successful-light":"styles_successful-light__WpXqF","failed-light":"styles_failed-light__TrGuK","warning-light":"styles_warning-light__GFi3S"};const ig=({className:e,skin:t,children:n,"data-testid":r})=>ln(dn,{className:j(rg.tag,e,t&&rg[t]),bold:!0,size:"s",type:"ui","data-testid":r,children:n}),og=e=>{const{className:t,...n}=e;return ln("img",{className:j(t,Fp),...n,draggable:!1})},ag=e=>{const{diff:t,actual:n,expected:r,containerSize:i}=e;return Math.min(...[t,n,r,i].filter((e=>e>0)))},lg=e=>{const{options:t,current:n,onChange:r}=e,i=eg();return ln(Di,{size:"s",menuTrigger:({isOpened:e,onClick:t})=>ln(bn,{style:"ghost",size:"s",text:i(`image.${n}`)??zp.capitalize(n),isExpanded:e,onClick:t}),children:ln(Di.Section,{children:t.filter((e=>e!==n)).map((e=>ln(Di.Item,{onClick:()=>r(e),children:i(`image.${e}`)??zp.capitalize(e)},e)))})})},sg=e=>{const{sizes:t,children:n}=e;return ln("div",{className:Wp,children:[n,ln(ig,{skin:"secondary",children:`${t.width} × ${t.height}`})]})},cg=()=>{const{images:e,imageDimensions:t,containerDimensions:n}=Xp(),r=g((()=>ag({diff:t.value.diff.width,actual:t.value.actual.width,expected:t.value.expected.width,containerSize:n.value.width})));return ln("div",{className:Bp,children:ln("div",{className:jp,children:[ln(sg,{sizes:{height:e.diff.value?.naturalHeight??0,width:e.diff.value?.naturalWidth??0}}),ln(og,{src:e.diff.value?.src,width:r.value})]})})},ug=()=>{const{images:e,imageDimensions:t,containerDimensions:n}=Xp(),r=g((()=>ag({diff:t.value.diff.width,actual:t.value.actual.width,expected:t.value.expected.width,containerSize:n.value.width})));return ln("div",{className:Bp,children:ln("div",{className:jp,children:[ln(sg,{sizes:{height:e.actual.value?.naturalHeight??0,width:e.actual.value?.naturalWidth??0}}),ln(og,{src:e.actual.value?.src,width:r.value})]})})},dg=()=>{const{images:e,imageDimensions:t,containerDimensions:n}=Xp(),r=g((()=>ag({diff:t.value.diff.width,actual:t.value.actual.width,expected:t.value.expected.width,containerSize:n.value.width})));return ln("div",{className:Bp,children:ln("div",{className:jp,children:[ln(sg,{sizes:{height:e.expected.value?.naturalHeight??0,width:e.expected.value?.naturalWidth??0}}),ln(og,{src:e.expected.value?.src,width:r.value})]})})},fg=()=>{const{images:e,imageDimensions:t,containerDimensions:n}=Xp(),r=e.expected.value,i=e.actual.value,o=g((()=>ag({diff:t.value.diff.width,actual:t.value.actual.width,expected:t.value.expected.width,containerSize:n.value.width}))),a=v(o.value/2),l=s(null),c=v(!1),u=g((()=>{const e=a.value;return e<0?0:e>o.value?o.value-3:a.value})),d=e=>{const t=l.current?.getBoundingClientRect();t&&(a.value=e-t.left)},f=()=>{c.value=!1},h=g((()=>{const e=o.value/t.value.actual.width,n=o.value/t.value.expected.width;return Math.max(t.value.actual.height*e,t.value.expected.height*n)}));return ln("div",{className:Bp,children:[ln(sg,{sizes:{width:r?.naturalWidth??0,height:r?.naturalHeight??0}}),ln("div",{ref:l,className:Hp,style:{width:o.value,height:h.value},children:[ln("div",{className:jp,children:ln(og,{src:r?.src,width:o.value})}),ln("div",{className:jp,style:{maxWidth:u.value},children:ln(og,{src:i?.src,width:o.value})}),ln("div",{className:Up,style:{transform:`translateX(${u.value}px)`,height:h.value},onPointerDown:e=>{e.preventDefault(),c.value=!0,e.currentTarget.setPointerCapture(e.pointerId),d(e.clientX)},onPointerMove:e=>{c.value&&d(e.clientX)},onPointerUp:f,onPointerCancel:f,onLostPointerCapture:f,"data-dragging":c.value||void 0})]})]})},hg=()=>{const{images:e,imageDimensions:t,containerDimensions:n}=Xp(),r=v("actual"),i=v("expected"),o=g((()=>["actual","expected","diff"])),a=g((()=>["actual","expected","diff"])),l=g((()=>"diff"===r.value?[{width:e.diff.value?.naturalWidth??0,height:e.diff.value?.naturalHeight??0},e.diff.value?.src]:"actual"===r.value?[{width:e.actual.value?.naturalWidth??0,height:e.actual.value?.naturalHeight??0},e.actual.value?.src]:[{width:e.expected.value?.naturalWidth??0,height:e.expected.value?.naturalHeight??0},e.expected.value?.src])),s=g((()=>"diff"===i.value?[{width:e.diff.value?.naturalWidth??0,height:e.diff.value?.naturalHeight??0},e.diff.value?.src]:"actual"===i.value?[{width:e.actual.value?.naturalWidth??0,height:e.actual.value?.naturalHeight??0},e.actual.value?.src]:[{width:e.expected.value?.naturalWidth??0,height:e.expected.value?.naturalHeight??0},e.expected.value?.src])),c=g((()=>ag({diff:t.value.diff.width,actual:t.value.actual.width,expected:t.value.expected.width,containerSize:n.value.width}))),u=g((()=>2*c.value+24>n.value.width?n.value.width/2-24:c.value)),d=u.value>320,[f,h]=l.value,[p,m]=s.value;return ln("div",{className:Bp,"data-row":d||void 0,children:[ln("div",{className:jp,children:[ln(sg,{sizes:f,children:ln(lg,{options:o.value,current:r.value,onChange:e=>{r.value=e}})}),ln(og,{src:h,width:d?u.value:n.value.width})]}),ln("div",{className:jp,children:[ln(sg,{sizes:p,children:ln(lg,{options:a.value,current:i.value,onChange:e=>{i.value=e}})}),ln(og,{src:m,width:d?u.value:n.value.width})]})]})},pg=()=>{const{diffMode:e}=Xp();switch(e.value){case"diff":return ln(cg,{});case"actual":return ln(ug,{});case"expected":return ln(dg,{});case"side-by-side":return ln(hg,{});case"overlay":return ln(fg,{})}},gg=()=>{const e=eg(),{isLoading:t,failedToLoad:n}=Xp();return t.value?ln(un,{size:"m"}):n.value?ln(Jh,{title:e("empty.failed-to-load")??"Failed to load",icon:sn.lineImagesImage}):ln(r,{children:[ln(ng,{}),ln(pg,{})]})},vg=e=>{const{i18n:t,diff:n}=e;return ln(Qp,{i18n:t,children:ln($p,{children:ln(Zp,{diff:n,children:ln(gg,{})})})})},mg=({attachment:e,item:t})=>e&&"src"in e?ln("video",{"data-testid":"video-attachment-content",class:wp,controls:!0,loop:!0,muted:!0,children:ln("source",{src:e.src,type:t.link.contentType})}):ln(un,{}),bg="<style data-allure-preview-theme>:root,html,body{background:#1c1c1e !important;color:#e5e5e7 !important;}body *{border-color:rgba(255,255,255,0.12) !important;}</style>",yg=({attachment:e})=>{const[t,n]=c(""),r=e.text??"",i=r.length>0?((e,t)=>ah.sanitize(e,t))(r):"";return u((()=>{if(i){let e=i;(()=>{const e="undefined"!=typeof document?document.documentElement.getAttribute("data-theme"):null;return"dark"===e||"light"!==e&&"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").matches})()&&(e=/<head(\s[^>]*)?>/i.test(i)?i.replace(/<head(\s[^>]*)?>/i,(e=>e+bg)):/<body(\s[^>]*)?>/i.test(i)?i.replace(/<body(\s[^>]*)?>/i,(e=>e+bg)):bg+i);const t=new Blob([e],{type:"text/html"}),r=URL.createObjectURL(t);return n(r),()=>{URL.revokeObjectURL(r)}}}),[i]),i?ln("div",{className:_p,children:ln("iframe",{src:t,width:"100%",height:"100%",frameBorder:"0",sandbox:"allow-same-origin"})}):null},_g={image:kp,svg:kp,json:gp,code:gp,uri:gp,css:gp,table:gp,html:gp,text:gp,video:mg,"image-diff":e=>{const{attachment:t,i18n:n}=e;return t&&"diff"in t?ln("div",{className:xp,children:ln(vg,{diff:t.diff,i18n:n})}):ln(un,{})},archive:null},wg={html:yg},xg=e=>{const{item:t,previewable:n,highlightCode:r=!0,i18n:i}=e,{link:{contentType:o,id:a,ext:l}}=t,s=v(null),c=v(!0),f=v(!1),h=ro(o),p=d((async()=>{c.value=!0,f.value=!1;try{const e=await(async(e,t,n)=>{if(!e&&!t)return null;const r=await Zi({id:e,ext:t,contentType:n}),i=ro(n);if(!r.ok)throw new Error("Failed to fetch");switch(i){case"svg":case"image":{const t=await r.blob();return{img:URL.createObjectURL(t),id:e}}case"uri":case"code":case"html":case"table":case"text":return{text:await r.text()};case"video":{const t=await r.blob();return{src:URL.createObjectURL(t),id:e,contentType:n}}case"image-diff":return{diff:await r.json()};default:return null}})(a,l,o);m((()=>{c.value=!1,s.value=e}))}catch(e){m((()=>{c.value=!1,f.value=!0}))}}),[a,l,o,c,s,f]);if(u((()=>{h&&p()}),[h,p]),!h)return null;if(c.value)return ln("div",{className:yp,children:ln(un,{})});if(f.value)return ln(Jh,{description:"Failed to load attachment",size:"xs",children:ln(mn,{style:"flat",icon:sn.lineArrowsRefreshCcw1,onClick:p})});const g=wg[h],b=i?.["image-diff"===h?"imageDiff":h];if(n&&g)return ln(g,{attachment:s.value,item:t,i18n:b});const y=_g[h];if(!y)return null;const _=y===gp;return ln(y,{attachment:s.value,item:t,i18n:b,..._?{highlight:r}:{}})},kg=({children:e})=>ln("div",{className:bp,children:e}),Cg=({code:e,children:t,className:n})=>(u((()=>{np.highlightAll()}),[]),ln("pre",{className:j("language-text line-numbers language-diff",n),children:[e&&ln("code",{children:e}),t]}));var Sg="styles_modal-overlay__xdM2o",Mg="styles_modal-content__2yYdb",Ag="styles_modal-wrapper__KacuO",Tg="styles_modal-wrapper-fullscreen__11W3U",Lg="styles_modal-data-component__3HBgz",Eg="styles_modal-buttons__OBqaM",Og="styles_syntax-highlight-off__q6J31",Rg="styles_modal-data__tEK64",Pg="styles_modal-header__IcCg9",zg="styles_modal-thumb__O5sLe",Dg="styles_active__YdnV4",Ng="styles_modal-gallery__w0J0I";const Ig=({changeThumb:e,children:t,isActiveThumb:n})=>ln("div",{className:j(zg,{[Dg]:n}),onClick:()=>()=>e?.(),children:t}),Bg=({attachments:e=[]})=>{const t=e?.filter((({link:{contentType:e}})=>{const t=ro(e);return!["archive",null].includes(t)}));return ln("div",{className:Ng,children:t?.map((e=>ln(Ig,{item:e,children:ln(xg,{item:e})},e?.link?.id)))})},Fg=({data:e,isModalOpen:t,preview:n,component:r,attachments:i,closeModal:o,translations:a,title:l})=>{const{tooltipPreview:s,tooltipSyntaxHighlight:d,tooltipDownload:f,openInNewTabButton:p}=a,{link:g}=e||{},[v,m]=c(!1),[b,y]=c(!!n),[_,w]=c(!0),x=g?.contentType?.startsWith("image"),k=(e=>!!e&&Ji.includes(e))(g?.contentType),C=!(x||g?.contentType?.startsWith("video")||k&&b),S=(e=>{if(!e)return!1;const t=e.contentType?.toLowerCase();let n;for(const t of[e.ext,e.name,e.originalFileName]){if(!t)continue;const e=(no(t)??t.replace(/^\./,"")).toLowerCase(),r=e.includes(".")?e.split(".").pop():e;if(r){n=r;break}}return(!t||!eo.has(t))&&(!(!t||!to.has(t))||!!n&&Qi.has(n))})({contentType:g?.contentType,ext:g?.ext,name:g?.name,originalFileName:g?.originalFileName}),M=g?.id&&g?.ext&&g?.contentType,A=g?.name||g?.id&&g?.ext&&`${g.id}${g.ext}`||"",T=l||A;u((()=>{t&&(y(!!n),w(!0))}),[t,n]);const L=h((()=>r&&Ri(r,{data:e,isFullScreen:v,previewable:b,highlightCode:_})),[r,e,v,b,_]);u((()=>(document.body.style.overflow=t?"hidden":"",()=>{document.body.style.overflow=""})),[t]);const E=async e=>{e.stopPropagation();const{id:t,ext:n,contentType:r}=g||{};t&&n&&r&&await(async(e,t,n)=>{if(!e&&!t)return;const r=`${e}${t}`,i=await Ki(e,t,n),o=URL.createObjectURL(i),a=document.createElement("a");a.href=o,a.download=r,a.click(),URL.revokeObjectURL(o)})(t,n,r)};return t?ln("div",{className:Sg,onClick:o,children:ln("div",{className:j(Mg),onClick:e=>e.stopPropagation(),children:[ln("div",{className:j(Ag,{[Tg]:v}),children:[ln("div",{className:Pg,children:[ln(hn,{size:"s",children:T}),ln("div",{className:Eg,children:[x&&ln(vn,{style:"outline",onClick:async()=>{const{id:e,ext:t,contentType:n}=g||{};await(async(e,t,n)=>{if(!e&&!t)return;const r=await Ki(e,t,n),i=URL.createObjectURL(r);globalThis.open(i,"_blank")})(e,t,n)},icon:sn.lineGeneralLinkExternal,text:p}),k&&ln($r,{tooltipText:s,children:ln(mn,{style:"outline",size:"m",iconSize:"s",icon:b?sn.viewOff:sn.view,onClick:()=>y(!b)})}),C&&S&&ln($r,{tooltipText:d??"Syntax highlighting",children:ln(mn,{className:j(!_&&Og),style:"outline",size:"m",iconSize:"s",icon:sn.lineDevCodeSquare,onClick:()=>w(!_)})}),M&&ln($r,{tooltipText:f,children:ln(mn,{style:"outline",size:"m",iconSize:"s",icon:sn.lineGeneralDownloadCloud,onClick:e=>E(e)})}),ln(mn,{iconSize:"m",style:"ghost",onClick:()=>m(!v),icon:v?sn.lineLayoutsMinimize2:sn.lineLayoutsMaximize2}),ln(mn,{iconSize:"m",style:"ghost",onClick:o,icon:sn.lineGeneralXClose})]})]}),ln("div",{className:Rg,children:ln("div",{className:Lg,children:L},e?.link?.id)})]}),i?.length&&ln(Bg,{attachments:i})]})}):null};var jg={tree:"styles_tree__fG6jK","tree-list":"styles_tree-list__3q7eT","tree-section":"styles_tree-section__iV9nA","tree-section-title":"styles_tree-section-title__3v2nF","tree-count":"styles_tree-count__RjQCr","tree-item":"styles_tree-item__-43NH","item-title":"styles_item-title__ip78x","test-count":"styles_test-count__ynxa4","tree-content":"styles_tree-content__RqVeR",root:"styles_root__gLSTv","tree-item-icon":"styles_tree-item-icon__pSBl5","status-passed":"styles_status-passed__kTMq4","status-failed":"styles_status-failed__2uYs3","status-broken":"styles_status-broken__34I8R","status-skipped":"styles_status-skipped__MEGGW","status-unknown":"styles_status-unknown__p2KHg","tree-status-bar":"styles_tree-status-bar__LJ7Y1","tree-status-bar-item":"styles_tree-status-bar-item__Yofv2",passed:"styles_passed__SeJia",failed:"styles_failed__-3jyb",broken:"styles_broken__g7-KJ",skipped:"styles_skipped__RfV4j",unknown:"styles_unknown__hkDQ1","tree-empty-results":"styles_tree-empty-results__4EWH4","tree-empty-results-title":"styles_tree-empty-results-title__hGsAb","tree-empty-results-clear-button":"styles_tree-empty-results-clear-button__9nCUy",order:"styles_order__-yTyr","tree-item-marked":"styles_tree-item-marked__TW7os"};const{solidAlertCircle:Wg,solidCheckCircle:Hg,solidHelpCircle:Ug,solidMinusCircle:Vg,solidXCircle:$g}=sn,qg={failed:$g,broken:Wg,passed:Hg,skipped:Vg,unknown:Ug},Yg=({status:e="unknown",className:t,classNameIcon:n})=>{const r=j(jg[`status-${e}`],n);return ln("div",{"data-testid":`tree-leaf-status-${e}`,className:j(jg["tree-item-icon"],t),children:ln(cn,{className:r,id:qg[e]})})};var Gg={"tree-item-retries":"styles_tree-item-retries__dhixw"};const Xg=({retriesCount:e=0})=>e>0?ln("div",{"data-testid":"tree-leaf-retries",className:Gg["tree-item-retries"],children:[ln(cn,{className:Gg["tree-leaf-retries-icon"],id:sn.lineArrowsRefreshCcw1}),ln(dn,{type:"ui",size:"m",children:e})]}):null,Zg=e=>{switch(e){case"new":return sn.lineAlertsNew;case"fixed":return sn.lineAlertsFixed;case"regressed":return sn.lineAlertsRegressed;case"malfunctioned":return sn.lineAlertsMalfunctioned;default:return sn.lineAlertsAlertCircle}};var Kg={"item-info":"styles_item-info__ELNw-","item-info-time":"styles_item-info-time__fWpPK"};const Jg=({duration:e,retriesCount:t,flaky:n,transition:r,tooltips:i})=>{const o=qi(e);return ln("div",{className:Kg["item-info"],children:[n&&ln($r,{"data-testid":"tree-leaf-flaky-tooltip",tooltipText:i?.flaky,children:ln(cn,{"data-testid":"tree-leaf-flaky",id:sn.lineIconBomb2})}),Boolean(t)&&ln($r,{"data-testid":"tree-leaf-retries-tooltip",tooltipText:i?.retries,children:ln(Xg,{retriesCount:t})}),r&&ln($r,{"data-testid":"tree-leaf-transition-tooltip",tooltipText:i?.transition,children:ln(cn,{"data-testid":`tree-leaf-transition-${r}`,id:Zg(r),className:Kg["item-info-transition"]})}),ln(dn,{"data-testid":"tree-leaf-duration",type:"ui",size:"m",className:Kg["item-info-time"],children:o})]})},Qg=({name:e,groupOrder:t,status:n,duration:r,retriesCount:i,flaky:o,transition:a,transitionTooltip:l,id:s,marked:c,navigateTo:u,tooltips:d,...f})=>ln("div",{...f,className:j(jg["tree-item"],c?jg["tree-item-marked"]:""),onClick:()=>u(s),id:s,children:[ln(Yg,{status:n}),ln(fn,{"data-testid":"tree-leaf-order",size:"s",className:jg.order,children:t}),ln(dn,{"data-testid":"tree-leaf-title",className:jg["item-title"],children:e}),ln(Jg,{"data-testid":"tree-leaf-info",duration:r,flaky:o,retriesCount:i,transition:a,transitionTooltip:l,tooltips:d})]}),ev=({title:e,icon:t,isOpened:n,toggleTree:r,children:i,...o})=>ln("div",{"data-testid":"tree-section",...o,className:jg["tree-section"],onClick:r,children:[ln(Bi,{"data-testid":"tree-arrow",isOpened:n}),t&&ln(cn,{id:t,size:"xs"}),ln(dn,{"data-testid":"tree-section-title",size:"m",bold:!0,className:jg["tree-section-title"],children:e}),i]}),tv=({statistic:e,statusFilter:t,reportStatistic:n,maxWidth:r=140,minWidth:i=46,offset:o=10})=>{const a=Math.floor(((e,t)=>{const n=Math.log(o);return(Math.log(e+o)-n)/(Math.log(t+o)-n)})(e?.total??0,n?.total??0)*(r-i)+i);return e?ln("div",{className:jg["tree-status-bar"],style:{width:`${a}px`},children:Fi.map((t=>({status:t,value:e[t]}))).filter((({status:e,value:n})=>void 0!==n&&("total"===t||t===e&&n>0))).map((({status:e,value:t})=>ln("div",{className:j(jg["tree-status-bar-item"],jg[e]),style:{flexGrow:t},children:t},e)))}):null},nv=({categoryTitle:e,isOpened:t,toggleTree:n,statistic:r,reportStatistic:i,statusFilter:o,...a})=>ln(ev,{...a,title:e,isOpened:t,toggleTree:n,children:ln(tv,{reportStatistic:i,statusFilter:o,statistic:r})}),rv=({tree:e,statusFilter:t,root:n,name:r,statistic:i,reportStatistic:o,collapsedTrees:a,toggleTree:l,routeId:s,navigateTo:u})=>{const d=a.has(e.nodeId),f=void 0===i||!!i?.failed||!!i?.broken,[h,p]=c((()=>n||(d?!f:f)));if(!e?.trees?.length&&!e?.leaves?.length)return null;const g=h&&ln("div",{"data-testid":"tree-content",className:j({[jg["tree-content"]]:!0,[jg.root]:n}),children:[e?.trees?.map?.((e=>ln(rv,{name:e.name,tree:e,statistic:e.statistic,reportStatistic:o,statusFilter:t,collapsedTrees:a,toggleTree:l,routeId:s,navigateTo:u},e.nodeId))),e?.leaves?.map?.((e=>ln(Qg,{"data-testid":"tree-leaf",id:e.nodeId,name:e.name,status:e.status,groupOrder:e.groupOrder,duration:e.duration,retriesCount:e.retriesCount,transition:e.transition,transitionTooltip:e.transitionTooltip,tooltips:e.tooltips,flaky:e.flaky,marked:e.nodeId===s,navigateTo:u},e.nodeId)))]});return ln("div",{className:jg.tree,children:[r&&ln(nv,{statusFilter:t,categoryTitle:r,isOpened:h,toggleTree:()=>{p(!h),l(e.nodeId)},statistic:i,reportStatistic:o}),g]})};var iv={counter:"styles_counter__chRZ-","status-passed":"styles_status-passed__fOOfy","status-failed":"styles_status-failed__CIBqD","status-broken":"styles_status-broken__caix7","status-skipped":"styles_status-skipped__FrjS4","status-unknown":"styles_status-unknown__wxCbv","size-s":"styles_size-s__MzJcz","size-m":"styles_size-m__zaoMz","size-l":"styles_size-l__foUrC"};const ov=e=>{const{count:t,size:n="s",truncateCount:r=!1,status:i}=e,o=r&&t>99?"99+":t;return ln(dn,{tag:"small",size:"l"===n?"m":"s",type:"ui",bold:!0,className:j(iv.counter,iv[`size-${n}`],i&&iv[`status-${i}`]),"data-testid":"counter",children:o})};var av="styles_toggle__aBRpI";const lv=e=>{const{value:t,label:n,onChange:r,focusable:i=!0,size:o="m",...a}=e;return ln("input",{...a,tabIndex:i?0:-1,className:av,role:"switch",type:"checkbox",checked:t,"aria-label":n,onClick:e=>{const t=!e.target.checked;r(t)},"data-size":o})};var sv="styles_link__BC-2O";const cv=e=>{const{children:t,onClick:n,href:r}=e;return ln(void 0===r?"button":"a",{href:r,onClick:n,className:sv,children:t})};var uv="styles_label__PPstE";const dv=({children:e})=>ln("div",{className:uv,children:ln(dn,{size:"s",bold:!0,type:"ui",children:e})});var fv={"status-label":"styles_status-label__jKe50","status-label-text":"styles_status-label-text__dne2b","status-label-icon":"styles_status-label-icon__XfIPQ","status-passed":"styles_status-passed__nQRTG","status-failed":"styles_status-failed__Bd1ie","status-broken":"styles_status-broken__6NgUj","status-skipped":"styles_status-skipped__S6xGN","status-unknown":"styles_status-unknown__x-nw8"};const hv=({status:e,children:t,className:n,...r})=>ln("div",{...r,className:j(fv["status-label"],fv[`status-${e}`],n),children:[ln(Yg,{status:e,className:fv["status-label-icon"],classNameIcon:fv["status-label-icon"]}),ln(dn,{type:"ui",size:"s",className:fv["status-label-text"],children:t})]});var pv="styles_logo__jHlBl",gv="styles_text__BcILe";const vv=e=>{const{className:t}=e;return ln(dn,{type:"paragraph",size:"m",bold:!0,className:j(gv,t),children:[ln(cn,{id:sn.reportLogo,size:"m",inline:!0,className:pv}),ln("span",{children:"Allure Report"})]})};var mv="styles_report-logo__OOEnL";const bv=e=>{const{className:t,logo:n}=e;return ln("div",{className:j(mv,t),children:n?ln("img",{src:n,alt:"report logo"}):ln(cn,{id:sn.reportLogo,inline:!0})})};var yv="styles_widget__JLpmE",_v="styles_header__yKZiz",wv="styles_content__zvonT";const xv=({children:e,title:t,centerContent:n,dropShadow:r=!0})=>ln("div",{className:yv,"data-drop-shadow":r||void 0,children:[t&&ln("div",{className:_v,children:ln(hn,{size:"s",children:t})}),ln("div",{className:wv,"data-center-content":n,children:e})]});
11
11
  /**!
12
12
  * Sortable 1.15.6
13
13
  * @author RubaXa <trash@rubaxa.org>
14
14
  * @author owenm <owen23355@gmail.com>
15
15
  * @license MIT
16
- */function kv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kv(Object(n),!0).forEach((function(t){Mv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sv(e){return Sv="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},Sv(e)}function Mv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Av(){return Av=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Av.apply(this,arguments)}function Tv(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Lv(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Ev=Lv(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ov=Lv(/Edge/i),Rv=Lv(/firefox/i),Pv=Lv(/safari/i)&&!Lv(/chrome/i)&&!Lv(/android/i),zv=Lv(/iP(ad|od|hone)/i),Dv=Lv(/chrome/i)&&Lv(/android/i),Nv={capture:!1,passive:!1};function Iv(e,t,n){e.addEventListener(t,n,!Ev&&Nv)}function Bv(e,t,n){e.removeEventListener(t,n,!Ev&&Nv)}function Fv(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function jv(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Wv(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Fv(e,t):Fv(e,t))||r&&e===n)return e;if(e===n)break}while(e=jv(e))}return null}var Hv,Uv=/\s+/g;function Vv(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(Uv," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(Uv," ")}}function $v(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function qv(e,t){var n="";if("string"==typeof e)n=e;else do{var r=$v(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Yv(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function Gv(){var e=document.scrollingElement;return e||document.documentElement}function Xv(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var o,a,l,s,c,u,d;if(e!==window&&e.parentNode&&e!==Gv()?(a=(o=e.getBoundingClientRect()).top,l=o.left,s=o.bottom,c=o.right,u=o.height,d=o.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!Ev))do{if(i&&i.getBoundingClientRect&&("none"!==$v(i,"transform")||n&&"static"!==$v(i,"position"))){var f=i.getBoundingClientRect();a-=f.top+parseInt($v(i,"border-top-width")),l-=f.left+parseInt($v(i,"border-left-width")),s=a+o.height,c=l+o.width;break}}while(i=i.parentNode);if(r&&e!==window){var h=qv(i||e),p=h&&h.a,g=h&&h.d;h&&(s=(a/=g)+(u/=g),c=(l/=p)+(d/=p))}return{top:a,left:l,bottom:s,right:c,width:d,height:u}}}function Zv(e,t,n){for(var r=tm(e,!0),i=Xv(e)[t];r;){if(!(i>=Xv(r)[n]))return r;if(r===Gv())break;r=tm(r,!1)}return!1}function Kv(e,t,n,r){for(var i=0,o=0,a=e.children;o<a.length;){if("none"!==a[o].style.display&&a[o]!==ob.ghost&&(r||a[o]!==ob.dragged)&&Wv(a[o],n.draggable,e,!1)){if(i===t)return a[o];i++}o++}return null}function Jv(e,t){for(var n=e.lastElementChild;n&&(n===ob.ghost||"none"===$v(n,"display")||t&&!Fv(n,t));)n=n.previousElementSibling;return n||null}function Qv(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===ob.clone||t&&!Fv(e,t)||n++;return n}function em(e){var t=0,n=0,r=Gv();if(e)do{var i=qv(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function tm(e,t){if(!e||!e.getBoundingClientRect)return Gv();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=$v(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return Gv();if(r||t)return n;r=!0}}}while(n=n.parentNode);return Gv()}function nm(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function rm(e,t){return function(){if(!Hv){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),Hv=setTimeout((function(){Hv=void 0}),t)}}}function im(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function om(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function am(e,t,n){var r={};return Array.from(e.children).forEach((function(i){var o,a,l,s;if(Wv(i,t.draggable,e,!1)&&!i.animated&&i!==n){var c=Xv(i);r.left=Math.min(null!==(o=r.left)&&void 0!==o?o:1/0,c.left),r.top=Math.min(null!==(a=r.top)&&void 0!==a?a:1/0,c.top),r.right=Math.max(null!==(l=r.right)&&void 0!==l?l:-1/0,c.right),r.bottom=Math.max(null!==(s=r.bottom)&&void 0!==s?s:-1/0,c.bottom)}})),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var lm="Sortable"+(new Date).getTime();function sm(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==$v(e,"display")&&e!==ob.ghost){t.push({target:e,rect:Xv(e)});var n=Cv({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=qv(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var i=!1,o=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,l=Xv(n),s=n.prevFromRect,c=n.prevToRect,u=e.rect,d=qv(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&nm(s,l)&&!nm(a,l)&&(u.top-l.top)/(u.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,s,c,r.options)),nm(l,a)||(n.prevFromRect=a,n.prevToRect=l,t||(t=r.options.animation),r.animate(n,u,l,t)),t&&(i=!0,o=Math.max(o,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),i?e=setTimeout((function(){"function"==typeof n&&n()}),o):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){$v(e,"transition",""),$v(e,"transform","");var i=qv(this.el),o=i&&i.a,a=i&&i.d,l=(t.left-n.left)/(o||1),s=(t.top-n.top)/(a||1);e.animatingX=!!l,e.animatingY=!!s,$v(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),$v(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),$v(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){$v(e,"transition",""),$v(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var cm=[],um={initializeByDefault:!0},dm={mount:function(e){for(var t in um)um.hasOwnProperty(t)&&!(t in e)&&(e[t]=um[t]);cm.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),cm.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";cm.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](Cv({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](Cv({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var i in cm.forEach((function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var o=new r(e,t,e.options);o.sortable=e,o.options=e.options,e[i]=o,Av(n,o.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var o=this.modifyOption(e,i,e.options[i]);void 0!==o&&(e.options[i]=o)}},getEventProperties:function(e,t){var n={};return cm.forEach((function(r){"function"==typeof r.eventProperties&&Av(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return cm.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))})),r}};var fm=["evt"],hm=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=Tv(n,fm);dm.pluginEvent.bind(ob)(e,t,Cv({dragEl:gm,parentEl:vm,ghostEl:mm,rootEl:bm,nextEl:ym,lastDownEl:_m,cloneEl:wm,cloneHidden:xm,dragStarted:Dm,putSortable:Tm,activeSortable:ob.active,originalEvent:r,oldIndex:km,oldDraggableIndex:Sm,newIndex:Cm,newDraggableIndex:Mm,hideGhostForTarget:tb,unhideGhostForTarget:nb,cloneNowHidden:function(){xm=!0},cloneNowShown:function(){xm=!1},dispatchSortableEvent:function(e){pm({sortable:t,name:e,originalEvent:r})}},i))};function pm(e){!function(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,a=e.toEl,l=e.fromEl,s=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,h=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[lm]){var g,v=t.options,m="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||Ev||Ov?(g=document.createEvent("Event")).initEvent(r,!0,!0):g=new CustomEvent(r,{bubbles:!0,cancelable:!0}),g.to=a||n,g.from=l||n,g.item=i||n,g.clone=o,g.oldIndex=s,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=f,g.pullMode=h?h.lastPutMode:void 0;var b=Cv(Cv({},p),dm.getEventProperties(r,t));for(var y in b)g[y]=b[y];n&&n.dispatchEvent(g),v[m]&&v[m].call(t,g)}}(Cv({putSortable:Tm,cloneEl:wm,targetEl:gm,rootEl:bm,oldIndex:km,oldDraggableIndex:Sm,newIndex:Cm,newDraggableIndex:Mm},e))}var gm,vm,mm,bm,ym,_m,wm,xm,km,Cm,Sm,Mm,Am,Tm,Lm,Em,Om,Rm,Pm,zm,Dm,Nm,Im,Bm,Fm,jm=!1,Wm=!1,Hm=[],Um=!1,Vm=!1,$m=[],qm=!1,Ym=[],Gm="undefined"!=typeof document,Xm=zv,Zm=Ov||Ev?"cssFloat":"float",Km=Gm&&!Dv&&!zv&&"draggable"in document.createElement("div"),Jm=function(){if(Gm){if(Ev)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Qm=function(e,t){var n=$v(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Kv(e,0,t),o=Kv(e,1,t),a=i&&$v(i),l=o&&$v(o),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Xv(i).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Xv(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!o||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=r&&"none"===n[Zm]||o&&"none"===n[Zm]&&s+c>r)?"vertical":"horizontal"},eb=function(e){function t(e,n){return function(r,i,o,a){var l=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,i,o,a),n)(r,i,o,a);var s=(n?r:i).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},r=e.group;r&&"object"==Sv(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},tb=function(){!Jm&&mm&&$v(mm,"display","none")},nb=function(){!Jm&&mm&&$v(mm,"display","")};Gm&&!Dv&&document.addEventListener("click",(function(e){if(Wm)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Wm=!1,!1}),!0);var rb=function(e){if(gm){var t=function(e,t){var n;return Hm.some((function(r){var i=r[lm].options.emptyInsertThreshold;if(i&&!Jv(r)){var o=Xv(r),a=e>=o.left-i&&e<=o.right+i,l=t>=o.top-i&&t<=o.bottom+i;return a&&l?n=r:void 0}})),n}((e=e.touches?e.touches[0]:e).clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[lm]._onDragOver(n)}}},ib=function(e){gm&&gm.parentNode[lm]._isOutsideThisEl(e.target)};function ob(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Av({},t),e[lm]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Qm(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==ob.supportPointer&&"PointerEvent"in window&&(!Pv||zv),emptyInsertThreshold:5};for(var r in dm.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in eb(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Km,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Iv(e,"pointerdown",this._onTapStart):(Iv(e,"mousedown",this._onTapStart),Iv(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Iv(e,"dragover",this),Iv(e,"dragenter",this)),Hm.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Av(this,sm())}function ab(e,t,n,r,i,o,a,l){var s,c,u=e[lm],d=u.options.onMove;return!window.CustomEvent||Ev||Ov?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=r,s.related=i||t,s.relatedRect=o||Xv(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),d&&(c=d.call(u,s,a)),c}function lb(e){e.draggable=!1}function sb(){qm=!1}function cb(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function ub(e){return setTimeout(e,0)}function db(e){return clearTimeout(e)}ob.prototype={constructor:ob,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Nm=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,gm):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=r.filter;if(function(e){Ym.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Ym.push(r)}}(n),!gm&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!Pv||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=Wv(l,r.draggable,n,!1))&&l.animated||_m===l)){if(km=Qv(l),Sm=Qv(l,r.draggable),"function"==typeof c){if(c.call(this,e,l,this))return pm({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),hm("filter",t,{evt:e}),void(i&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=Wv(s,r.trim(),n,!1))return pm({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),hm("filter",t,{evt:e}),!0}))))return void(i&&e.preventDefault());r.handle&&!Wv(s,r.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,a=i.options,l=o.ownerDocument;if(n&&!gm&&n.parentNode===o){var s=Xv(n);if(bm=o,vm=(gm=n).parentNode,ym=gm.nextSibling,_m=n,Am=a.group,ob.dragged=gm,Lm={target:gm,clientX:(t||e).clientX,clientY:(t||e).clientY},Pm=Lm.clientX-s.left,zm=Lm.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,gm.style["will-change"]="all",r=function(){hm("delayEnded",i,{evt:e}),ob.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!Rv&&i.nativeDraggable&&(gm.draggable=!0),i._triggerDragStart(e,t),pm({sortable:i,name:"choose",originalEvent:e}),Vv(gm,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Yv(gm,e.trim(),lb)})),Iv(l,"dragover",rb),Iv(l,"mousemove",rb),Iv(l,"touchmove",rb),a.supportPointer?(Iv(l,"pointerup",i._onDrop),!this.nativeDraggable&&Iv(l,"pointercancel",i._onDrop)):(Iv(l,"mouseup",i._onDrop),Iv(l,"touchend",i._onDrop),Iv(l,"touchcancel",i._onDrop)),Rv&&this.nativeDraggable&&(this.options.touchStartThreshold=4,gm.draggable=!0),hm("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(Ov||Ev))r();else{if(ob.eventCanceled)return void this._onDrop();a.supportPointer?(Iv(l,"pointerup",i._disableDelayedDrag),Iv(l,"pointercancel",i._disableDelayedDrag)):(Iv(l,"mouseup",i._disableDelayedDrag),Iv(l,"touchend",i._disableDelayedDrag),Iv(l,"touchcancel",i._disableDelayedDrag)),Iv(l,"mousemove",i._delayedDragTouchMoveHandler),Iv(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&Iv(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){gm&&lb(gm),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Bv(e,"mouseup",this._disableDelayedDrag),Bv(e,"touchend",this._disableDelayedDrag),Bv(e,"touchcancel",this._disableDelayedDrag),Bv(e,"pointerup",this._disableDelayedDrag),Bv(e,"pointercancel",this._disableDelayedDrag),Bv(e,"mousemove",this._delayedDragTouchMoveHandler),Bv(e,"touchmove",this._delayedDragTouchMoveHandler),Bv(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Iv(document,"pointermove",this._onTouchMove):Iv(document,t?"touchmove":"mousemove",this._onTouchMove):(Iv(gm,"dragend",this),Iv(bm,"dragstart",this._onDragStart));try{document.selection?ub((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(jm=!1,bm&&gm){hm("dragStarted",this,{evt:t}),this.nativeDraggable&&Iv(document,"dragover",ib);var n=this.options;!e&&Vv(gm,n.dragClass,!1),Vv(gm,n.ghostClass,!0),ob.active=this,e&&this._appendGhost(),pm({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Em){this._lastX=Em.clientX,this._lastY=Em.clientY,tb();for(var e=document.elementFromPoint(Em.clientX,Em.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Em.clientX,Em.clientY))!==t;)t=e;if(gm.parentNode[lm]._isOutsideThisEl(e),t)do{if(t[lm]){if(t[lm]._onDragOver({clientX:Em.clientX,clientY:Em.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=jv(t));nb()}},_onTouchMove:function(e){if(Lm){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=mm&&qv(mm,!0),a=mm&&o&&o.a,l=mm&&o&&o.d,s=Xm&&Fm&&em(Fm),c=(i.clientX-Lm.clientX+r.x)/(a||1)+(s?s[0]-$m[0]:0)/(a||1),u=(i.clientY-Lm.clientY+r.y)/(l||1)+(s?s[1]-$m[1]:0)/(l||1);if(!ob.active&&!jm){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(mm){o?(o.e+=c-(Om||0),o.f+=u-(Rm||0)):o={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");$v(mm,"webkitTransform",d),$v(mm,"mozTransform",d),$v(mm,"msTransform",d),$v(mm,"transform",d),Om=c,Rm=u,Em=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!mm){var e=this.options.fallbackOnBody?document.body:bm,t=Xv(gm,!0,Xm,!0,e),n=this.options;if(Xm){for(Fm=e;"static"===$v(Fm,"position")&&"none"===$v(Fm,"transform")&&Fm!==document;)Fm=Fm.parentNode;Fm!==document.body&&Fm!==document.documentElement?(Fm===document&&(Fm=Gv()),t.top+=Fm.scrollTop,t.left+=Fm.scrollLeft):Fm=Gv(),$m=em(Fm)}Vv(mm=gm.cloneNode(!0),n.ghostClass,!1),Vv(mm,n.fallbackClass,!0),Vv(mm,n.dragClass,!0),$v(mm,"transition",""),$v(mm,"transform",""),$v(mm,"box-sizing","border-box"),$v(mm,"margin",0),$v(mm,"top",t.top),$v(mm,"left",t.left),$v(mm,"width",t.width),$v(mm,"height",t.height),$v(mm,"opacity","0.8"),$v(mm,"position",Xm?"absolute":"fixed"),$v(mm,"zIndex","100000"),$v(mm,"pointerEvents","none"),ob.ghost=mm,e.appendChild(mm),$v(mm,"transform-origin",Pm/parseInt(mm.style.width)*100+"% "+zm/parseInt(mm.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;hm("dragStart",this,{evt:e}),ob.eventCanceled?this._onDrop():(hm("setupClone",this),ob.eventCanceled||((wm=om(gm)).removeAttribute("id"),wm.draggable=!1,wm.style["will-change"]="",this._hideClone(),Vv(wm,this.options.chosenClass,!1),ob.clone=wm),n.cloneId=ub((function(){hm("clone",n),ob.eventCanceled||(n.options.removeCloneOnHide||bm.insertBefore(wm,gm),n._hideClone(),pm({sortable:n,name:"clone"}))})),!t&&Vv(gm,i.dragClass,!0),t?(Wm=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Bv(document,"mouseup",n._onDrop),Bv(document,"touchend",n._onDrop),Bv(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,gm)),Iv(document,"drop",n),$v(gm,"transform","translateZ(0)")),jm=!0,n._dragStartId=ub(n._dragStarted.bind(n,t,e)),Iv(document,"selectstart",n),Dm=!0,window.getSelection().removeAllRanges(),Pv&&$v(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,o=this.el,a=e.target,l=this.options,s=l.group,c=ob.active,u=Am===s,d=l.sort,f=Tm||c,h=this,p=!1;if(!qm){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=Wv(a,l.draggable,o,!0),L("dragOver"),ob.eventCanceled)return p;if(gm.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||h._ignoreWhileAnimating===a)return O(!1);if(Wm=!1,c&&!l.disabled&&(u?d||(r=vm!==bm):Tm===this||(this.lastPutMode=Am.checkPull(this,c,gm,e))&&s.checkPut(this,c,gm,e))){if(i="vertical"===this._getDirection(e,a),t=Xv(gm),L("dragOverValid"),ob.eventCanceled)return p;if(r)return vm=bm,E(),this._hideClone(),L("revert"),ob.eventCanceled||(ym?bm.insertBefore(gm,ym):bm.appendChild(gm)),O(!0);var g=Jv(o,l.draggable);if(!g||function(e,t,n){var r=Xv(Jv(n.el,n.options.draggable)),i=am(n.el,n.options,mm),o=10;return t?e.clientX>i.right+o||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+o||e.clientX>r.right&&e.clientY>r.top}(e,i,this)&&!g.animated){if(g===gm)return O(!1);if(g&&o===e.target&&(a=g),a&&(n=Xv(a)),!1!==ab(bm,o,gm,t,a,n,e,!!a))return E(),g&&g.nextSibling?o.insertBefore(gm,g.nextSibling):o.appendChild(gm),vm=o,R(),O(!0)}else if(g&&function(e,t,n){var r=Xv(Kv(n.el,0,n.options,!0)),i=am(n.el,n.options,mm),o=10;return t?e.clientX<i.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<i.top-o||e.clientY<r.bottom&&e.clientX<r.left}(e,i,this)){var v=Kv(o,0,l,!0);if(v===gm)return O(!1);if(n=Xv(a=v),!1!==ab(bm,o,gm,t,a,n,e,!1))return E(),o.insertBefore(gm,v),vm=o,R(),O(!0)}else if(a.parentNode===o){n=Xv(a);var m,b,y,_=gm.parentNode!==o,w=!function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return r===a||i===l||r+o/2===a+s/2}(gm.animated&&gm.toRect||t,a.animated&&a.toRect||n,i),x=i?"top":"left",k=Zv(a,"top","top")||Zv(gm,"top","top"),C=k?k.scrollTop:void 0;if(Nm!==a&&(b=n[x],Um=!1,Vm=!w&&l.invertSwap||_),m=function(e,t,n,r,i,o,a,l){var s=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!a)if(l&&Bm<c*i){if(!Um&&(1===Im?s>u+c*o/2:s<d-c*o/2)&&(Um=!0),Um)f=!0;else if(1===Im?s<u+Bm:s>d-Bm)return-Im}else if(s>u+c*(1-i)/2&&s<d-c*(1-i)/2)return function(e){return Qv(gm)<Qv(e)?1:-1}(t);if((f=f||a)&&(s<u+c*o/2||s>d-c*o/2))return s>u+c/2?1:-1;return 0}(e,a,n,i,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Vm,Nm===a),0!==m){var S=Qv(gm);do{S-=m,y=vm.children[S]}while(y&&("none"===$v(y,"display")||y===mm))}if(0===m||y===a)return O(!1);Nm=a,Im=m;var M=a.nextElementSibling,A=!1,T=ab(bm,o,gm,t,a,n,e,A=1===m);if(!1!==T)return 1!==T&&-1!==T||(A=1===T),qm=!0,setTimeout(sb,30),E(),A&&!M?o.appendChild(gm):a.parentNode.insertBefore(gm,A?M:a),k&&im(k,0,C-k.scrollTop),vm=gm.parentNode,void 0===b||Vm||(Bm=Math.abs(b-Xv(a)[x])),R(),O(!0)}if(o.contains(gm))return O(!1)}return!1}function L(l,s){hm(l,h,Cv({evt:e,isOwner:u,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:a,completed:O,onMove:function(n,r){return ab(bm,o,gm,t,n,Xv(n),e,r)},changed:R},s))}function E(){L("dragOverAnimationCapture"),h.captureAnimationState(),h!==f&&f.captureAnimationState()}function O(t){return L("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(h),h!==f&&(Vv(gm,Tm?Tm.options.ghostClass:c.options.ghostClass,!1),Vv(gm,l.ghostClass,!0)),Tm!==h&&h!==ob.active?Tm=h:h===ob.active&&Tm&&(Tm=null),f===h&&(h._ignoreWhileAnimating=a),h.animateAll((function(){L("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===gm&&!gm.animated||a===o&&!a.animated)&&(Nm=null),l.dragoverBubble||e.rootEl||a===document||(gm.parentNode[lm]._isOutsideThisEl(e.target),!t&&rb(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function R(){Cm=Qv(gm),Mm=Qv(gm,l.draggable),pm({sortable:h,name:"change",toEl:o,newIndex:Cm,newDraggableIndex:Mm,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Bv(document,"mousemove",this._onTouchMove),Bv(document,"touchmove",this._onTouchMove),Bv(document,"pointermove",this._onTouchMove),Bv(document,"dragover",rb),Bv(document,"mousemove",rb),Bv(document,"touchmove",rb)},_offUpEvents:function(){var e=this.el.ownerDocument;Bv(e,"mouseup",this._onDrop),Bv(e,"touchend",this._onDrop),Bv(e,"pointerup",this._onDrop),Bv(e,"pointercancel",this._onDrop),Bv(e,"touchcancel",this._onDrop),Bv(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;Cm=Qv(gm),Mm=Qv(gm,n.draggable),hm("drop",this,{evt:e}),vm=gm&&gm.parentNode,Cm=Qv(gm),Mm=Qv(gm,n.draggable),ob.eventCanceled||(jm=!1,Vm=!1,Um=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),db(this.cloneId),db(this._dragStartId),this.nativeDraggable&&(Bv(document,"drop",this),Bv(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Pv&&$v(document.body,"user-select",""),$v(gm,"transform",""),e&&(Dm&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),mm&&mm.parentNode&&mm.parentNode.removeChild(mm),(bm===vm||Tm&&"clone"!==Tm.lastPutMode)&&wm&&wm.parentNode&&wm.parentNode.removeChild(wm),gm&&(this.nativeDraggable&&Bv(gm,"dragend",this),lb(gm),gm.style["will-change"]="",Dm&&!jm&&Vv(gm,Tm?Tm.options.ghostClass:this.options.ghostClass,!1),Vv(gm,this.options.chosenClass,!1),pm({sortable:this,name:"unchoose",toEl:vm,newIndex:null,newDraggableIndex:null,originalEvent:e}),bm!==vm?(Cm>=0&&(pm({rootEl:vm,name:"add",toEl:vm,fromEl:bm,originalEvent:e}),pm({sortable:this,name:"remove",toEl:vm,originalEvent:e}),pm({rootEl:vm,name:"sort",toEl:vm,fromEl:bm,originalEvent:e}),pm({sortable:this,name:"sort",toEl:vm,originalEvent:e})),Tm&&Tm.save()):Cm!==km&&Cm>=0&&(pm({sortable:this,name:"update",toEl:vm,originalEvent:e}),pm({sortable:this,name:"sort",toEl:vm,originalEvent:e})),ob.active&&(null!=Cm&&-1!==Cm||(Cm=km,Mm=Sm),pm({sortable:this,name:"end",toEl:vm,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){hm("nulling",this),bm=gm=vm=mm=ym=wm=_m=xm=Lm=Em=Dm=Cm=Mm=km=Sm=Nm=Im=Tm=Am=ob.dragged=ob.ghost=ob.clone=ob.active=null,Ym.forEach((function(e){e.checked=!0})),Ym.length=Om=Rm=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":gm&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)Wv(e=n[r],o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||cb(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var i=r.children[t];Wv(i,this.options.draggable,r,!1)&&(n[e]=i)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Wv(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=dm.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&eb(n)},destroy:function(){hm("destroy",this);var e=this.el;e[lm]=null,Bv(e,"mousedown",this._onTapStart),Bv(e,"touchstart",this._onTapStart),Bv(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Bv(e,"dragover",this),Bv(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Hm.splice(Hm.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!xm){if(hm("hideClone",this),ob.eventCanceled)return;$v(wm,"display","none"),this.options.removeCloneOnHide&&wm.parentNode&&wm.parentNode.removeChild(wm),xm=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(xm){if(hm("showClone",this),ob.eventCanceled)return;gm.parentNode!=bm||this.options.group.revertClone?ym?bm.insertBefore(wm,ym):bm.appendChild(wm):bm.insertBefore(wm,gm),this.options.group.revertClone&&this.animate(gm,wm),$v(wm,"display",""),xm=!1}}else this._hideClone()}},Gm&&Iv(document,"touchmove",(function(e){(ob.active||jm)&&e.cancelable&&e.preventDefault()})),ob.utils={on:Iv,off:Bv,css:$v,find:Yv,is:function(e,t){return!!Wv(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:rm,closest:Wv,toggleClass:Vv,clone:om,index:Qv,nextTick:ub,cancelNextTick:db,detectDirection:Qm,getChild:Kv,expando:lm},ob.get=function(e){return e[lm]},ob.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(ob.utils=Cv(Cv({},ob.utils),e.utils)),dm.mount(e)}))},ob.create=function(e,t){return new ob(e,t)},ob.version="1.15.6";var fb,hb,pb,gb,vb,mb,bb=[],yb=!1;function _b(){bb.forEach((function(e){clearInterval(e.pid)})),bb=[]}function wb(){clearInterval(mb)}var xb,kb=rm((function(e,t,n,r){if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=Gv(),u=!1;hb!==n&&(hb=n,_b(),fb=t.scroll,i=t.scrollFn,!0===fb&&(fb=tm(n,!0)));var d=0,f=fb;do{var h=f,p=Xv(h),g=p.top,v=p.bottom,m=p.left,b=p.right,y=p.width,_=p.height,w=void 0,x=void 0,k=h.scrollWidth,C=h.scrollHeight,S=$v(h),M=h.scrollLeft,A=h.scrollTop;h===c?(w=y<k&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),x=_<C&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(w=y<k&&("auto"===S.overflowX||"scroll"===S.overflowX),x=_<C&&("auto"===S.overflowY||"scroll"===S.overflowY));var T=w&&(Math.abs(b-o)<=l&&M+y<k)-(Math.abs(m-o)<=l&&!!M),L=x&&(Math.abs(v-a)<=l&&A+_<C)-(Math.abs(g-a)<=l&&!!A);if(!bb[d])for(var E=0;E<=d;E++)bb[E]||(bb[E]={});bb[d].vx==T&&bb[d].vy==L&&bb[d].el===h||(bb[d].el=h,bb[d].vx=T,bb[d].vy=L,clearInterval(bb[d].pid),0==T&&0==L||(u=!0,bb[d].pid=setInterval(function(){r&&0===this.layer&&ob.active._onTouchMove(vb);var t=bb[this.layer].vy?bb[this.layer].vy*s:0,n=bb[this.layer].vx?bb[this.layer].vx*s:0;"function"==typeof i&&"continue"!==i.call(ob.dragged.parentNode[lm],n,t,e,vb,bb[this.layer].el)||im(bb[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=tm(f,!1)));yb=u}}),30),Cb=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||i;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Sb(){}function Mb(){}Sb.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Kv(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Cb},Av(Sb,{pluginName:"revertOnSpill"}),Mb.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:Cb},Av(Mb,{pluginName:"removeOnSpill"}),ob.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?Iv(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Iv(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Iv(document,"touchmove",this._handleFallbackAutoScroll):Iv(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Bv(document,"dragover",this._handleAutoScroll):(Bv(document,"pointermove",this._handleFallbackAutoScroll),Bv(document,"touchmove",this._handleFallbackAutoScroll),Bv(document,"mousemove",this._handleFallbackAutoScroll)),wb(),_b(),clearTimeout(Hv),Hv=void 0},nulling:function(){vb=hb=fb=yb=mb=pb=gb=null,bb.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(r,i);if(vb=e,t||this.options.forceAutoScrollFallback||Ov||Ev||Pv){kb(e,this.options,o,t);var a=tm(o,!0);!yb||mb&&r===pb&&i===gb||(mb&&wb(),mb=setInterval((function(){var o=tm(document.elementFromPoint(r,i),!0);o!==a&&(a=o,_b()),kb(e,n.options,o,t)}),10),pb=r,gb=i)}else{if(!this.options.bubbleScroll||tm(o,!0)===Gv())return void _b();kb(e,this.options,tm(o,!1),!1)}}},Av(e,{pluginName:"scroll",initializeByDefault:!0})}),ob.mount(Mb,Sb);const Ab="dnd-drag-handle",Tb="dnd-drag-enabled";ob.mount(new function(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;xb=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,i=e.activeSortable,o=e.changed,a=e.cancel;if(i.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var c=xb;!1!==r(n)?(Vv(n,s.swapClass,!0),xb=n):xb=null,c&&c!==xb&&Vv(c,s.swapClass,!1)}o(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,o=this.options;xb&&Vv(xb,o.swapClass,!1),xb&&(o.swap||n&&n.options.swap)&&r!==xb&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),function(e,t){var n,r,i=e.parentNode,o=t.parentNode;if(!i||!o||i.isEqualNode(t)||o.isEqualNode(e))return;n=Qv(e),r=Qv(t),i.isEqualNode(o)&&n<r&&r++;i.insertBefore(t,i.children[n]),o.insertBefore(e,o.children[r])}(r,xb),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){xb=null}},Av(e,{pluginName:"swap",eventProperties:function(){return{swapItem:xb}}})});var Lb="styles_grid__bgsAQ";const Eb=({className:e,options:t,kind:n="default",children:r,...i})=>{const o=s(null);return((e,t)=>{u((()=>{if(e.current){const n=ob.create(e.current,{animation:150,handle:`.${Ab}`,draggable:`.${Tb}`,...t});return()=>{n.destroy()}}}),[e,t])})(o,h((()=>({...t,..."swap"===n&&{swap:!0,swapClass:"dnd-drag-swap-highlight"}})),[t,n])),ln("div",{ref:o,className:j(Lb,e),...i,children:r})},Ob=({className:e})=>ln(cn,{id:sn.draggable,className:e});var Rb="styles_drag-handle__2DC4-";const Pb=({className:e})=>ln("div",{className:j(Rb,Ab,e),children:ln(Ob,{})});var zb="styles_grid-item__-kGp3",Db="styles_grid-item-content__hZ5TS",Nb="styles_grid-item-handle__OyO7A";const Ib=({className:e,children:t,dndEnabled:n=!1,...r})=>ln("div",{...r,className:j(zb,{[Tb]:n},e),children:[ln("div",{className:Db,children:t}),n&&ln(Pb,{className:Nb})]}),Bb=({locale:e,setLocale:t,availableLocales:n})=>{const r=n||Object.keys(io),i=[...new Set(r)].map((e=>({key:e,value:io[e].full})));return ln(Di,{size:"s",menuTrigger:({isOpened:t,onClick:n})=>ln(bn,{style:"ghost",size:"s",text:io[e]&&io[e].short||io.en.short,isExpanded:t,onClick:n}),children:ln(Di.Section,{children:i.map((({key:n,value:r})=>ln(Di.ItemWithCheckmark,{onClick:()=>{t(n)},isChecked:e===n,children:r},n)))})})},Fb={light:sn.lineShapesSun,dark:sn.lineShapesMoon,auto:sn.lineShapesThemeAuto},jb=({theme:e,toggleTheme:t})=>ln(mn,{onClick:t,style:"ghost",icon:Fb[e],size:"s"});var Wb="styles_label__IW9cn",Hb="styles_wrapper__elS6G",Ub="styles_icon__GXXnU",Vb="styles_text__fEQgL";const $b=e=>{const{icon:t,children:n,tooltip:r,className:i,style:o="secondary",...a}=e,l=ln("div",{className:j(Hb,i),children:[ln(cn,{className:Ub,id:t}),ln(dn,{className:Vb,type:"ui",size:"s",bold:!0,children:n})]});return ln("div",r?{className:Wb,...a,"data-style":o,children:ln($r,{tooltipText:r,children:l})}:{className:Wb,...a,"data-style":o,children:l})};var qb=sy(),Yb=e=>iy(e,qb),Gb=sy();Yb.write=e=>iy(e,Gb);var Xb=sy();Yb.onStart=e=>iy(e,Xb);var Zb=sy();Yb.onFrame=e=>iy(e,Zb);var Kb=sy();Yb.onFinish=e=>iy(e,Kb);var Jb=[];Yb.setTimeout=(e,t)=>{const n=Yb.now()+t,r=()=>{const e=Jb.findIndex((e=>e.cancel==r));~e&&Jb.splice(e,1),ny-=~e?1:0},i={time:n,handler:e,cancel:r};return Jb.splice(Qb(n),0,i),ny+=1,oy(),i};var Qb=e=>~(~Jb.findIndex((t=>t.time>e))||~Jb.length);Yb.cancel=e=>{Xb.delete(e),Zb.delete(e),Kb.delete(e),qb.delete(e),Gb.delete(e)},Yb.sync=e=>{ry=!0,Yb.batchedUpdates(e),ry=!1},Yb.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,Yb.onStart(n)}return r.handler=e,r.cancel=()=>{Xb.delete(n),t=null},r};var ey="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Yb.use=e=>ey=e,Yb.now="undefined"!=typeof performance?()=>performance.now():Date.now,Yb.batchedUpdates=e=>e(),Yb.catch=console.error,Yb.frameLoop="always",Yb.advance=()=>{"demand"!==Yb.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):ly()};var ty=-1,ny=0,ry=!1;function iy(e,t){ry?(t.delete(e),e(0)):(t.add(e),oy())}function oy(){ty<0&&(ty=0,"demand"!==Yb.frameLoop&&ey(ay))}function ay(){~ty&&(ey(ay),Yb.batchedUpdates(ly))}function ly(){const e=ty;ty=Yb.now();const t=Qb(ty);t&&(cy(Jb.splice(0,t),(e=>e.handler())),ny-=t),ny?(Xb.flush(),qb.flush(e?Math.min(64,ty-e):16.667),Zb.flush(),Gb.flush(),Kb.flush()):ty=-1}function sy(){let e=new Set,t=e;return{add(n){ny+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(ny-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,ny-=t.size,cy(t,(t=>t(n)&&e.add(t))),ny+=e.size,t=e)}}}function cy(e,t){e.forEach((e=>{try{t(e)}catch(e){Yb.catch(e)}}))}var uy=Object.defineProperty,dy={};function fy(){}((e,t)=>{for(var n in t)uy(e,n,{get:t[n],enumerable:!0})})(dy,{assign:()=>My,colors:()=>ky,createStringInterpolator:()=>yy,skipAnimation:()=>Cy,to:()=>_y,willAdvance:()=>Sy});var hy={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function py(e,t){if(hy.arr(e)){if(!hy.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var gy=(e,t)=>e.forEach(t);function vy(e,t,n){if(hy.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var my=e=>hy.und(e)?[]:hy.arr(e)?e:[e];function by(e,t){if(e.size){const n=Array.from(e);e.clear(),gy(n,t)}}var yy,_y,wy=(e,...t)=>by(e,(e=>e(...t))),xy=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ky=null,Cy=!1,Sy=fy,My=e=>{e.to&&(_y=e.to),e.now&&(Yb.now=e.now),void 0!==e.colors&&(ky=e.colors),null!=e.skipAnimation&&(Cy=e.skipAnimation),e.createStringInterpolator&&(yy=e.createStringInterpolator),e.requestAnimationFrame&&Yb.use(e.requestAnimationFrame),e.batchedUpdates&&(Yb.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Sy=e.willAdvance),e.frameLoop&&(Yb.frameLoop=e.frameLoop)},Ay=new Set,Ty=[],Ly=[],Ey=0,Oy={get idle(){return!Ay.size&&!Ty.length},start(e){Ey>e.priority?(Ay.add(e),Yb.onStart(Ry)):(Py(e),Yb(Dy))},advance:Dy,sort(e){if(Ey)Yb.onFrame((()=>Oy.sort(e)));else{const t=Ty.indexOf(e);~t&&(Ty.splice(t,1),zy(e))}},clear(){Ty=[],Ay.clear()}};function Ry(){Ay.forEach(Py),Ay.clear(),Yb(Dy)}function Py(e){Ty.includes(e)||zy(e)}function zy(e){Ty.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Ty,(t=>t.priority>e.priority)),0,e)}function Dy(e){const t=Ly;for(let n=0;n<Ty.length;n++){const r=Ty[n];Ey=r.priority,r.idle||(Sy(r),r.advance(e),r.idle||t.push(r))}return Ey=0,(Ly=Ty).length=0,(Ty=t).length>0}var Ny={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Iy="[-+]?\\d*\\.?\\d+",By=Iy+"%";function Fy(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var jy=new RegExp("rgb"+Fy(Iy,Iy,Iy)),Wy=new RegExp("rgba"+Fy(Iy,Iy,Iy,Iy)),Hy=new RegExp("hsl"+Fy(Iy,By,By)),Uy=new RegExp("hsla"+Fy(Iy,By,By,Iy)),Vy=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,$y=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,qy=/^#([0-9a-fA-F]{6})$/,Yy=/^#([0-9a-fA-F]{8})$/;function Gy(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Xy(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Gy(i,r,e+1/3),a=Gy(i,r,e),l=Gy(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Zy(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ky(e){return(parseFloat(e)%360+360)%360/360}function Jy(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Qy(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function e_(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=qy.exec(e))?parseInt(t[1]+"ff",16)>>>0:ky&&void 0!==ky[e]?ky[e]:(t=jy.exec(e))?(Zy(t[1])<<24|Zy(t[2])<<16|Zy(t[3])<<8|255)>>>0:(t=Wy.exec(e))?(Zy(t[1])<<24|Zy(t[2])<<16|Zy(t[3])<<8|Jy(t[4]))>>>0:(t=Vy.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Yy.exec(e))?parseInt(t[1],16)>>>0:(t=$y.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Hy.exec(e))?(255|Xy(Ky(t[1]),Qy(t[2]),Qy(t[3])))>>>0:(t=Uy.exec(e))?(Xy(Ky(t[1]),Qy(t[2]),Qy(t[3]))|Jy(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var t_=(e,t,n)=>{if(hy.fun(e))return e;if(hy.arr(e))return t_({range:e,output:t,extrapolate:n});if(hy.str(e.output[0]))return yy(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,l,s){let c=s?s(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,o[t],o[t+1],i[t],i[t+1],s,a,l,r.map)}};var n_=Symbol.for("FluidValue.get"),r_=Symbol.for("FluidValue.observers"),i_=e=>Boolean(e&&e[n_]),o_=e=>e&&e[n_]?e[n_]():e,a_=e=>e[r_]||null;function l_(e,t){const n=e[r_];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var s_=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");c_(this,e)}},c_=(e,t)=>h_(e,n_,t);function u_(e,t){if(e[n_]){let n=e[r_];n||h_(e,r_,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function d_(e,t){const n=e[r_];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[r_]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var f_,h_=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),p_=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,g_=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,v_=new RegExp(`(${p_.source})(%|[a-z]+)`,"i"),m_=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,b_=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,y_=e=>{const[t,n]=__(e);if(!t||xy())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&b_.test(n)?y_(n):n||e},__=e=>{const t=b_.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},w_=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,x_=e=>{f_||(f_=ky?new RegExp(`(${Object.keys(ky).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>o_(e).replace(b_,y_).replace(g_,e_).replace(f_,e_))),n=t.map((e=>e.match(p_).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),i=r.map((t=>t_({...e,output:t})));return e=>{const n=!v_.test(t[0])&&t.find((e=>v_.test(e)))?.replace(p_,"");let r=0;return t[0].replace(p_,(()=>`${i[r++](e)}${n||""}`)).replace(m_,w_)}},k_="react-spring: ",C_=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${k_}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},S_=C_(console.warn);var M_=C_(console.warn);function A_(e){return hy.str(e)&&("#"==e[0]||/\d/.test(e)||!xy()&&b_.test(e)||e in(ky||{}))}var T_=xy()?x:k;function L_(){const e=w()[1],t=(()=>{const e=C(!1);return T_((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var E_=e=>x(e,O_),O_=[];function R_(e){const t=C(void 0);return x((()=>{t.current=e})),t.current}var P_=Symbol.for("Animated:node"),z_=e=>e&&e[P_],D_=(e,t)=>{return n=e,r=P_,i=t,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},N_=e=>e&&e[P_]&&e[P_].getPayload(),I_=class{constructor(){D_(this,this)}getPayload(){return this.payload||[]}},B_=class e extends I_{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,hy.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return hy.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,hy.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},F_=class e extends B_{constructor(e){super(0),this._string=null,this._toString=t_({output:[e,e]})}static create(t){return new e(t)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(hy.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=t_({output:[this.getValue(),e]})),this._value=0,super.reset()}},j_={dependencies:null},W_=class extends I_{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return vy(this.source,((n,r)=>{var i;(i=n)&&i[P_]===i?t[r]=n.getValue(e):i_(n)?t[r]=o_(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&gy(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return vy(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){j_.dependencies&&i_(e)&&j_.dependencies.add(e);const t=N_(e);t&&gy(t,(e=>this.add(e)))}},H_=class e extends W_{constructor(e){super(e)}static create(t){return new e(t)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(U_)),!0)}};function U_(e){return(A_(e)?F_:B_).create(e)}function V_(e){const t=z_(e);return t?t.constructor:hy.arr(e)?H_:A_(e)?F_:B_}var $_=(e,t)=>{const n=!hy.fun(e)||e.prototype&&e.prototype.isReactComponent;return S(((r,i)=>{const o=C(null),a=n&&M((e=>{o.current=function(e,t){e&&(hy.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[l,s]=function(e,t){const n=new Set;j_.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new W_(e),j_.dependencies=null,[e,n]}(r,t),c=L_(),u=()=>{const e=o.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&c()},d=new q_(u,s),f=C(void 0);T_((()=>(f.current=d,gy(s,(e=>u_(e,d))),()=>{f.current&&(gy(f.current.deps,(e=>d_(e,f.current))),Yb.cancel(f.current.update))}))),x(u,[]),E_((()=>()=>{const e=f.current;gy(e.deps,(t=>d_(t,e)))}));const h=t.getComponentProps(l.getValue());return _.createElement(e,{...h,ref:a})}))},q_=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&Yb.write(this.update)}};var Y_=Symbol.for("AnimatedComponent"),G_=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new W_(e),getComponentProps:r=e=>e}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=X_(e)||"Anonymous";return(e=hy.str(e)?o[e]||(o[e]=$_(e,i)):e[Y_]||(e[Y_]=$_(e,i))).displayName=`Animated(${t})`,e};return vy(e,((t,n)=>{hy.arr(e)&&(n=X_(t)),o[n]=o(t)})),{animated:o}},X_=e=>hy.str(e)?e:e&&hy.str(e.displayName)?e.displayName:hy.fun(e)&&e.name||null;function Z_(e,...t){return hy.fun(e)?e(...t):e}var K_=(e,t)=>!0===e||!!(t&&e&&(hy.fun(e)?e(t):my(e).includes(t))),J_=(e,t)=>hy.obj(e)?t&&e[t]:e,Q_=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,ew=e=>e,tw=(e,t=ew)=>{let n=nw;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);hy.und(n)||(r[i]=n)}return r},nw=["config","onProps","onStart","onChange","onPause","onResume","onRest"],rw={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function iw(e){const t=function(e){const t={};let n=0;if(vy(e,((e,r)=>{rw[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return vy(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function ow(e){return e=o_(e),hy.arr(e)?e.map(ow):A_(e)?dy.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function aw(e){for(const t in e)return!0;return!1}function lw(e){return hy.fun(e)||hy.arr(e)&&hy.obj(e[0])}function sw(e,t){e.ref?.delete(e),t?.delete(e)}function cw(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var uw={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},dw={...uw.default,mass:1,damping:1,easing:e=>e,clamp:!1},fw=class{constructor(){this.velocity=0,Object.assign(this,dw)}};function hw(e,t){if(hy.und(t.decay)){const n=!hy.und(t.tension)||!hy.und(t.friction);!n&&hy.und(t.frequency)&&hy.und(t.damping)&&hy.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var pw=[],gw=class{constructor(){this.changed=!1,this.values=pw,this.toValues=null,this.fromValues=pw,this.config=new fw,this.immediate=!1}};function vw(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise(((a,l)=>{let s,c,u=K_(n.cancel??r?.cancel,t);if(u)h();else{hy.und(n.pause)||(i.paused=K_(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||K_(e,t)),s=Z_(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(c),c.cancel(),s=c.time-Yb.now()}function f(){s>0&&!dy.skipAnimation?(i.delayed=!0,c=Yb.setTimeout(h,s),i.pauseQueue.add(d),i.timeouts.add(c)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(c),e<=(i.cancelId||0)&&(u=!0);try{o.start({...n,callId:e,cancel:u},a)}catch(e){l(e)}}}))}var mw=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?_w(e.get()):t.every((e=>e.noop))?bw(e.get()):yw(e.get(),t.every((e=>e.finished))),bw=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),yw=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),_w=e=>({value:e,cancelled:!0,finished:!1});function ww(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:l,promise:s}=n;return o||e!==l||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=tw(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const f=new Promise(((e,t)=>(u=e,d=t))),h=e=>{const t=i<=(n.cancelId||0)&&_w(r)||i!==n.asyncId&&yw(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{const o=new kw,a=new Cw;return(async()=>{if(dy.skipAnimation)throw xw(n),a.result=yw(r,!1),d(a),a;h(o);const l=hy.obj(e)?{...e}:{...t,to:e};l.parentId=i,vy(c,((e,t)=>{hy.und(l[t])&&(l[t]=e)}));const s=await r.start(l);return h(o),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),s})()};let g;if(dy.skipAnimation)return xw(n),yw(r,!1);try{let t;t=hy.arr(e)?(async e=>{for(const t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(u),f]),g=yw(r.get(),!0,!1)}catch(e){if(e instanceof kw)g=e.result;else{if(!(e instanceof Cw))throw e;g=e.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?l:void 0,n.promise=o?s:void 0)}return hy.fun(a)&&Yb.batchedUpdates((()=>{a(g,r,r.item)})),g})():s}function xw(e,t){by(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var kw=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Cw=class extends Error{constructor(){super("SkipAnimationSignal")}},Sw=e=>e instanceof Aw,Mw=1,Aw=class extends s_{constructor(){super(...arguments),this.id=Mw++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=z_(this);return e&&e.getValue()}to(...e){return dy.to(this,e)}interpolate(...e){return S_(`${k_}The "interpolate" function is deprecated in v9 (use "to" instead)`),dy.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){l_(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Oy.sort(this),l_(this,{type:"priority",parent:this,priority:e})}},Tw=Symbol.for("SpringPhase"),Lw=e=>(1&e[Tw])>0,Ew=e=>(2&e[Tw])>0,Ow=e=>(4&e[Tw])>0,Rw=(e,t)=>t?e[Tw]|=3:e[Tw]&=-3,Pw=(e,t)=>t?e[Tw]|=4:e[Tw]&=-5,zw=class extends Aw{constructor(e,t){if(super(),this.animation=new gw,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!hy.und(e)||!hy.und(t)){const n=hy.obj(e)?{...e}:{...t,from:e};hy.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ew(this)||this._state.asyncTo)||Ow(this)}get goal(){return o_(this.animation.to)}get velocity(){const e=z_(this);return e instanceof B_?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Lw(this)}get isAnimating(){return Ew(this)}get isPaused(){return Ow(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,a=N_(r.to);!a&&i_(r.to)&&(i=my(o_(r.to))),r.values.forEach(((l,s)=>{if(l.done)return;const c=l.constructor==F_?1:a?a[s].lastPosition:i[s];let u=r.immediate,d=c;if(!u){if(d=l.lastPosition,o.tension<=0)return void(l.done=!0);let t=l.elapsedTime+=e;const n=r.fromValues[s],i=null!=l.v0?l.v0:l.v0=hy.arr(o.velocity)?o.velocity[s]:o.velocity;let a;const f=o.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(hy.und(o.duration))if(o.decay){const e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),u=Math.abs(l.lastPosition-d)<=f,a=i*r}else{a=null==l.lastVelocity?i:l.lastVelocity;const t=o.restVelocity||f/10,r=o.clamp?0:o.bounce,s=!hy.und(r),h=n==c?l.v0>0:n<c;let p,g=!1;const v=1,m=Math.ceil(e/v);for(let e=0;e<m&&(p=Math.abs(a)>t,p||(u=Math.abs(c-d)<=f,!u));++e){s&&(g=d==c||d>c==h,g&&(a=-a*r,d=c));a+=(1e-6*-o.tension*(d-c)+.001*-o.friction*a)/o.mass*v,d+=a*v}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,l.durationProgress>0&&(l.elapsedTime=o.duration*l.durationProgress,t=l.elapsedTime+=e)),r=(o.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,l.durationProgress=r),d=n+o.easing(r)*(c-n),a=(d-l.lastPosition)/e,u=1==r}l.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[s].done&&(u=!1),u?l.done=!0:t=!1,l.setValue(d,o.round)&&(n=!0)}));const l=z_(this),s=l.getValue();if(t){const e=o_(r.to);s===e&&!n||o.decay?n&&o.decay&&this._onChange(s):(l.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(s)}set(e){return Yb.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ew(this)){const{to:e,config:t}=this.animation;Yb.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return hy.und(e)?(n=this.queue||[],this.queue=[]):n=[hy.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>mw(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),xw(this._state,e&&this._lastCallId),Yb.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=hy.obj(n)?n[t]:n,(null==n||lw(n))&&(n=void 0),r=hy.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return Lw(this)||(e.reverse&&([n,r]=[r,n]),r=o_(r),hy.und(r)?z_(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,tw(e,((e,t)=>/^on/.test(t)?J_(e,n):e))),Ww(this,e,"onProps"),Hw(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return vw(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{Ow(this)||(Pw(this,!0),wy(o.pauseQueue),Hw(this,"onPause",yw(this,Dw(this,this.animation.to)),this))},resume:()=>{Ow(this)&&(Pw(this,!1),Ew(this)&&this._resume(),wy(o.resumeQueue),Hw(this,"onResume",yw(this,Dw(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=Nw(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(_w(this));const r=!hy.und(e.to),i=!hy.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(_w(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:l}=this,{to:s,from:c}=l;let{to:u=s,from:d=c}=e;!i||r||t.default&&!hy.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const f=!py(d,c);f&&(l.from=d),d=o_(d);const h=!py(u,s);h&&this._focus(u);const p=lw(t.to),{config:g}=l,{decay:v,velocity:m}=g;(r||i)&&(g.velocity=0),t.config&&!p&&function(e,t,n){n&&(hw(n={...n},t),t={...n,...t}),hw(e,t),Object.assign(e,t);for(const t in dw)null==e[t]&&(e[t]=dw[t]);let{frequency:r,damping:i}=e;const{mass:o}=e;hy.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(g,Z_(t.config,o),t.config!==a.config?Z_(a.config,o):void 0);let b=z_(this);if(!b||hy.und(u))return n(yw(this,!0));const y=hy.und(t.reset)?i&&!t.default:!hy.und(d)&&K_(t.reset,o),_=y?d:this.get(),w=ow(u),x=hy.num(w)||hy.arr(w)||A_(w),k=!p&&(!x||K_(a.immediate||t.immediate,o));if(h){const e=V_(u);if(e!==b.constructor){if(!k)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(w)}}const C=b.constructor;let S=i_(u),M=!1;if(!S){const e=y||!Lw(this)&&f;(h||e)&&(M=py(ow(_),w),S=!M),(py(l.immediate,k)||k)&&py(g.decay,v)&&py(g.velocity,m)||(S=!0)}if(M&&Ew(this)&&(l.changed&&!y?S=!0:S||this._stop(s)),!p&&((S||i_(s))&&(l.values=b.getPayload(),l.toValues=i_(u)?null:C==F_?[1]:my(w)),l.immediate!=k&&(l.immediate=k,k||y||this._set(s)),S)){const{onRest:e}=l;gy(jw,(e=>Ww(this,t,e)));const r=yw(this,Dw(this,s));wy(this._pendingCalls,r),this._pendingCalls.add(n),l.changed&&Yb.batchedUpdates((()=>{l.changed=!y,e?.(r,this),y?Z_(a.onRest,r):l.onStart?.(r,this)}))}y&&this._set(_),p?n(ww(t.to,t,this._state,this)):S?this._start():Ew(this)&&!h?this._pendingCalls.add(n):n(bw(_))}_focus(e){const t=this.animation;e!==t.to&&(a_(this)&&this._detach(),t.to=e,a_(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;i_(t)&&(u_(t,this),Sw(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;i_(e)&&d_(e,this)}_set(e,t=!0){const n=o_(e);if(!hy.und(n)){const e=z_(this);if(!e||!py(n,e.getValue())){const r=V_(n);e&&e.constructor==r?e.setValue(n):D_(this,r.create(n)),e&&Yb.batchedUpdates((()=>{this._onChange(n,t)}))}}return z_(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Hw(this,"onStart",yw(this,Dw(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Z_(this.animation.onChange,e,this)),Z_(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;z_(this).reset(o_(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),Ew(this)||(Rw(this,!0),Ow(this)||this._resume())}_resume(){dy.skipAnimation?this.finish():Oy.start(this)}_stop(e,t){if(Ew(this)){Rw(this,!1);const n=this.animation;gy(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),l_(this,{type:"idle",parent:this});const r=t?_w(this.get()):yw(this.get(),Dw(this,e??n.to));wy(this._pendingCalls,r),n.changed&&(n.changed=!1,Hw(this,"onRest",r,this))}}};function Dw(e,t){const n=ow(t);return py(ow(e.get()),n)}function Nw(e,t=e.loop,n=e.to){const r=Z_(t);if(r){const i=!0!==r&&iw(r),o=(i||e).reverse,a=!i||i.reset;return Iw({...e,loop:t,default:!1,pause:void 0,to:!o||lw(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function Iw(e){const{to:t,from:n}=e=iw(e),r=new Set;return hy.obj(t)&&Fw(t,r),hy.obj(n)&&Fw(n,r),e.keys=r.size?Array.from(r):null,e}function Bw(e){const t=Iw(e);return hy.und(t.default)&&(t.default=tw(t)),t}function Fw(e,t){vy(e,((e,n)=>null!=e&&t.add(n)))}var jw=["onStart","onRest","onChange","onPause","onResume"];function Ww(e,t,n){e.animation[n]=t[n]!==Q_(t,n)?J_(t[n],e.key):void 0}function Hw(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Uw=["onStart","onChange","onRest"],Vw=1,$w=class{constructor(e,t){this.id=Vw++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];hy.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Iw(e)),this}start(e){let{queue:t}=this;return e?t=my(e).map(Iw):this.queue=[],this._flush?this._flush(this,t):(Jw(this,t),qw(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;gy(my(t),(t=>n[t].stop(!!e)))}else xw(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(hy.und(e))this.start({pause:!0});else{const t=this.springs;gy(my(e),(e=>t[e].pause()))}return this}resume(e){if(hy.und(e))this.start({pause:!1});else{const t=this.springs;gy(my(e),(e=>t[e].resume()))}return this}each(e){vy(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,by(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&by(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,by(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}Yb.onFrame(this._onFrame)}};function qw(e,t){return Promise.all(t.map((t=>Yw(e,t)))).then((t=>mw(e,t)))}async function Yw(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:l,onResolve:s}=t,c=hy.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const u=hy.arr(i)||hy.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):gy(Uw,(n=>{const r=t[n];if(hy.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,wy(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),h=!0===t.cancel||!0===Q_(t,"cancel");(u||h&&d.asyncId)&&f.push(vw(++e._lastAsyncId,{props:t,state:d,actions:{pause:fy,resume:fy,start(t,n){h?(xw(d,e._lastAsyncId),n(_w(e))):(t.onRest=l,n(ww(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const p=mw(e,await Promise.all(f));if(a&&p.finished&&(!n||!p.noop)){const n=Nw(t,a,i);if(n)return Jw(e,[n]),Yw(e,n,!0)}return s&&Yb.batchedUpdates((()=>s(p,e,e.item))),p}function Gw(e,t){const n={...e.springs};return t&&gy(my(t),(e=>{hy.und(e.keys)&&(e=Iw(e)),hy.obj(e.to)||(e={...e,to:void 0}),Kw(n,e,(e=>Zw(e)))})),Xw(e,n),n}function Xw(e,t){vy(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,u_(t,e))}))}function Zw(e,t){const n=new zw;return n.key=e,t&&u_(n,t),n}function Kw(e,t,n){t.keys&&gy(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function Jw(e,t){gy(t,(t=>{Kw(e.springs,t,(t=>Zw(t,e)))}))}var Qw=_.createContext({pause:!1,immediate:!1}),ex=()=>{const e=[],t=function(t){M_(`${k_}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return gy(e,((e,i)=>{if(hy.und(t))r.push(e.start());else{const o=n(t,e,i);o&&r.push(e.start(o))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return gy(e,(e=>e.pause(...arguments))),this},t.resume=function(){return gy(e,(e=>e.resume(...arguments))),this},t.set=function(t){gy(e,((e,n)=>{const r=hy.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return gy(e,((e,r)=>{if(hy.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}})),n},t.stop=function(){return gy(e,(e=>e.stop(...arguments))),this},t.update=function(t){return gy(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return hy.fun(e)?e(n,t):e};return t._getProps=n,t};function tx(e,t){const n=hy.fun(e),[[r],i]=function(e,t,n){const r=hy.fun(t)&&t;r&&!n&&(n=[]);const i=A((()=>r||3==arguments.length?ex():void 0),[]),o=C(0),a=L_(),l=A((()=>({ctrls:[],queue:[],flush(e,t){const n=Gw(e,t);return o.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?qw(e,t):new Promise((r=>{Xw(e,n),l.queue.push((()=>{r(qw(e,t))})),a()}))}})),[]),s=C([...l.ctrls]),c=C([]),u=R_(e)||0;function d(e,n){for(let i=e;i<n;i++){const e=s.current[i]||(s.current[i]=new $w(null,l.flush)),n=r?r(i,e):t[i];n&&(c.current[i]=Bw(n))}}A((()=>{gy(s.current.slice(e,u),(e=>{sw(e,i),e.stop(!0)})),s.current.length=e,d(u,e)}),[e]),A((()=>{d(0,Math.min(u,e))}),n);const f=s.current.map(((e,t)=>Gw(e,c.current[t]))),h=T(Qw),p=R_(h),g=h!==p&&aw(h);T_((()=>{o.current++,l.ctrls=s.current;const{queue:e}=l;e.length&&(l.queue=[],gy(e,(e=>e()))),gy(s.current,((e,t)=>{i?.add(e),g&&e.start({default:h});const n=c.current[t];n&&(cw(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),E_((()=>()=>{gy(l.ctrls,(e=>e.stop(!0)))}));const v=f.map((e=>({...e})));return i?[v,i]:v}(1,n?e:[e],n?[]:t);return n||2==arguments.length?[r,i]:r}function nx(e,t,n){const r=hy.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:l=!0,exitBeforeEnter:s=!1,onDestroyed:c,ref:u,config:d}=r?r():t,f=A((()=>r||3==arguments.length?ex():void 0),[]),h=my(e),p=[],g=C(null),v=i?null:g.current;T_((()=>{g.current=p})),E_((()=>(gy(p,(e=>{f?.add(e.ctrl),e.ctrl.ref=f})),()=>{gy(g.current,(e=>{e.expired&&clearTimeout(e.expirationId),sw(e.ctrl,f),e.ctrl.stop(!0)}))})));const m=function(e,{key:t,keys:n=t},r){if(null===n){const t=new Set;return e.map((e=>{const n=r&&r.find((n=>n.item===e&&"leave"!==n.phase&&!t.has(n)));return n?(t.add(n),n.key):rx++}))}return hy.und(n)?e:hy.fun(n)?e.map(n):my(n)}(h,r?r():t,v),b=i&&g.current||[];T_((()=>gy(b,(({ctrl:e,item:t,key:n})=>{sw(e,f),Z_(c,t,n)}))));const y=[];if(v&&gy(v,((e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=y[t]=m.indexOf(e.key))&&(p[t]=e)})),gy(h,((e,t)=>{p[t]||(p[t]={key:m[t],item:e,phase:"mount",ctrl:new $w},p[t].ctrl.item=e)})),y.length){let e=-1;const{leave:n}=r?r():t;gy(y,((t,r)=>{const i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)}))}hy.fun(o)&&p.sort(((e,t)=>o(e.item,t.item)));let w=-a;const x=L_(),k=tw(t),S=new Map,M=C(new Map),L=C(!1);gy(p,((e,n)=>{const i=e.key,o=e.phase,c=r?r():t;let f,h;const p=Z_(c.delay||0,i);if("mount"==o)f=c.enter,h="enter";else{const e=m.indexOf(i)<0;if("leave"!=o)if(e)f=c.leave,h="leave";else{if(!(f=c.update))return;h="update"}else{if(e)return;f=c.enter,h="enter"}}if(f=Z_(f,e.item,n),f=hy.obj(f)?iw(f):{to:f},!f.config){const t=d||k.config;f.config=Z_(t,e.item,n,h)}w+=a;const b={...k,delay:p+w,ref:u,immediate:c.immediate,reset:!1,...f};if("enter"==h&&hy.und(b.from)){const i=r?r():t,o=hy.und(i.initial)||v?i.from:i.initial;b.from=Z_(o,e.item,n)}const{onResolve:y}=b;b.onResolve=e=>{Z_(y,e);const t=g.current,n=t.find((e=>e.key===i));if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){const e=t.every((e=>e.ctrl.idle));if("leave"==n.phase){const t=Z_(l,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(x,r)))}}e&&t.some((e=>e.expired))&&(M.current.delete(n),s&&(L.current=!0),x())}};const _=Gw(e.ctrl,b);"leave"===h&&s?M.current.set(e,{phase:h,springs:_,payload:b}):S.set(e,{phase:h,springs:_,payload:b})}));const E=T(Qw),O=R_(E),R=E!==O&&aw(E);T_((()=>{R&&gy(p,(e=>{e.ctrl.start({default:E})}))}),[E]),gy(S,((e,t)=>{if(M.current.size){const e=p.findIndex((e=>e.key===t.key));p.splice(e,1)}})),T_((()=>{gy(M.current.size?M.current:S,(({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:E}),t&&(cw(r,t.ref),!r.ref&&!f||L.current?(r.start(t),L.current&&(L.current=!1)):r.update(t))}))}),i?void 0:n);const P=e=>_.createElement(_.Fragment,null,p.map(((t,n)=>{const{springs:r}=S.get(t)||t.ctrl,i=e({...r},t.item,t,n),o=hy.str(t.key)||hy.num(t.key)?t.key:t.ctrl.id,a=_.version<"19.0.0",l=i?.props??{},s=a?i?.ref:l?.ref;return i&&i.type?_.createElement(i.type,{...l,key:o,ref:s}):i})));return f?[P,f]:P}var rx=1;var ix=class extends Aw{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=t_(...t);const n=this._get(),r=V_(n);D_(this,r.create(n))}advance(e){const t=this._get();py(t,this.get())||(z_(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ax(this._active)&&lx(this)}_get(){const e=hy.arr(this.source)?this.source.map(o_):my(o_(this.source));return this.calc(...e)}_start(){this.idle&&!ax(this._active)&&(this.idle=!1,gy(N_(this),(e=>{e.done=!1})),dy.skipAnimation?(Yb.batchedUpdates((()=>this.advance())),lx(this)):Oy.start(this))}_attach(){let e=1;gy(my(this.source),(t=>{i_(t)&&u_(t,this),Sw(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){gy(my(this.source),(e=>{i_(e)&&d_(e,this)})),this._active.clear(),lx(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=my(this.source).reduce(((e,t)=>Math.max(e,(Sw(t)?t.priority:0)+1)),0))}};function ox(e){return!1!==e.idle}function ax(e){return!e.size||Array.from(e).every(ox)}function lx(e){e.idle||(e.idle=!0,gy(N_(e),(e=>{e.done=!0})),l_(e,{type:"idle",parent:e}))}var sx=(e,...t)=>new ix(e,t);dy.assign({createStringInterpolator:x_,to:(e,t)=>new ix(e,t)});var cx=/^--/;function ux(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||cx.test(e)||fx.hasOwnProperty(e)&&fx[e]?(""+t).trim():t+"px"}var dx={};var fx={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},hx=["Webkit","Ms","Moz","O"];fx=Object.keys(fx).reduce(((e,t)=>(hx.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),fx);var px=/^(matrix|translate|scale|rotate|skew)/,gx=/^(translate)/,vx=/^(rotate|skew)/,mx=(e,t)=>hy.num(e)&&0!==e?e+t:e,bx=(e,t)=>hy.arr(e)?e.every((e=>bx(e,t))):hy.num(e)?e===t:parseFloat(e)===t,yx=class extends W_{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push((e=>[`translate3d(${e.map((e=>mx(e,"px"))).join(",")})`,bx(e,0)]))),vy(r,((e,t)=>{if("transform"===t)i.push([e||""]),o.push((e=>[e,""===e]));else if(px.test(t)){if(delete r[t],hy.und(e))return;const n=gx.test(t)?"px":vx.test(t)?"deg":"";i.push(my(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${mx(i,n)})`,bx(i,0)]:e=>[`${t}(${e.map((e=>mx(e,n))).join(",")})`,bx(e,t.startsWith("scale")?1:0)])}})),i.length&&(r.transform=new _x(i,o)),super(r)}},_x=class extends s_{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return gy(this.inputs,((n,r)=>{const i=o_(n[0]),[o,a]=this.transforms[r](hy.arr(i)?i:n.map(o_));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&gy(this.inputs,(e=>gy(e,(e=>i_(e)&&u_(e,this)))))}observerRemoved(e){0==e&&gy(this.inputs,(e=>gy(e,(e=>i_(e)&&d_(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),l_(this,e)}};dy.assign({batchedUpdates:N,createStringInterpolator:x_,colors:Ny});var wx,xx,kx,Cx,Sx,Mx,Ax,Tx,Lx,Ex,Ox,Rx,Px,zx,Dx,Nx,Ix,Bx,Fx,jx,Wx,Hx,Ux,Vx,$x,qx,Yx,Gx,Xx,Zx,Kx,Jx,Qx,ek,tk,nk,rk,ik,ok,ak,lk,sk,ck,uk,dk,fk,hk,pk,gk,vk,mk,bk,yk,_k,wk,xk,kk,Ck,Sk,Mk,Ak,Tk,Lk,Ek,Ok,Rk,Pk,zk,Dk,Nk,Ik,Bk,Fk,jk,Wk,Hk,Uk,Vk,$k,qk,Yk,Gk,Xk,Zk,Kk,Jk,Qk,eC,tC,nC,rC,iC,oC,aC,lC,sC,cC,uC,dC=G_(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:i,children:o,scrollTop:a,scrollLeft:l,viewBox:s,...c}=t,u=Object.values(c),d=Object.keys(c).map((t=>n||e.hasAttribute(t)?t:dx[t]||(dx[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const t in i)if(i.hasOwnProperty(t)){const n=ux(t,i[t]);cx.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==r&&(e.className=r),void 0!==a&&(e.scrollTop=a),void 0!==l&&(e.scrollLeft=l),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new yx(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),fC=dC.animated;function hC(){if(Cx)return kx;return Cx=1,kx=function(e,t){return e===t||e!=e&&t!=t}}function pC(){if(Mx)return Sx;Mx=1;var e=hC();return Sx=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1},Sx}function gC(){if(Nx)return Dx;Nx=1;var e=xx?wx:(xx=1,wx=function(){this.__data__=[],this.size=0}),t=function(){if(Tx)return Ax;Tx=1;var e=pC(),t=Array.prototype.splice;return Ax=function(n){var r=this.__data__,i=e(r,n);return!(i<0||(i==r.length-1?r.pop():t.call(r,i,1),--this.size,0))},Ax}(),n=function(){if(Ex)return Lx;Ex=1;var e=pC();return Lx=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]},Lx}(),r=function(){if(Rx)return Ox;Rx=1;var e=pC();return Ox=function(t){return e(this.__data__,t)>-1}}(),i=function(){if(zx)return Px;zx=1;var e=pC();return Px=function(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this},Px}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Dx=o}function vC(){if(qx)return $x;qx=1;var e="object"==typeof Rd&&Rd&&Rd.Object===Object&&Rd;return $x=e}function mC(){if(Gx)return Yx;Gx=1;var e=vC(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Yx=n}function bC(){if(Zx)return Xx;Zx=1;var e=mC().Symbol;return Xx=e}function yC(){if(nk)return tk;nk=1;var e=bC(),t=function(){if(Jx)return Kx;Jx=1;var e=bC(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;return Kx=function(e){var t=n.call(e,i),o=e[i];try{e[i]=void 0;var a=!0}catch(e){}var l=r.call(e);return a&&(t?e[i]=o:delete e[i]),l}}(),n=function(){if(ek)return Qx;ek=1;var e=Object.prototype.toString;return Qx=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return tk=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function _C(){if(ik)return rk;return ik=1,rk=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},rk}function wC(){if(ak)return ok;ak=1;var e=yC(),t=_C();return ok=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function xC(){if(uk)return ck;uk=1;var e,t=function(){if(sk)return lk;sk=1;var e=mC()["__core-js_shared__"];return lk=e}(),n=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return ck=function(e){return!!n&&n in e}}function kC(){if(fk)return dk;fk=1;var e=Function.prototype.toString;return dk=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function CC(){if(bk)return mk;bk=1;var e=function(){if(pk)return hk;pk=1;var e=wC(),t=xC(),n=_C(),r=kC(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,a=Object.prototype,l=o.toString,s=a.hasOwnProperty,c=RegExp("^"+l.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return hk=function(o){return!(!n(o)||t(o))&&(e(o)?c:i).test(r(o))}}(),t=(vk||(vk=1,gk=function(e,t){return null==e?void 0:e[t]}),gk);return mk=function(n,r){var i=t(n,r);return e(i)?i:void 0},mk}function SC(){if(_k)return yk;_k=1;var e=CC()(mC(),"Map");return yk=e}function MC(){if(xk)return wk;xk=1;var e=CC()(Object,"create");return wk=e}function AC(){if(zk)return Pk;zk=1;var e=function(){if(Ck)return kk;Ck=1;var e=MC();return kk=function(){this.__data__=e?e(null):{},this.size=0}}(),t=Mk?Sk:(Mk=1,Sk=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),n=function(){if(Tk)return Ak;Tk=1;var e=MC(),t=Object.prototype.hasOwnProperty;return Ak=function(n){var r=this.__data__;if(e){var i=r[n];return"__lodash_hash_undefined__"===i?void 0:i}return t.call(r,n)?r[n]:void 0}}(),r=function(){if(Ek)return Lk;Ek=1;var e=MC(),t=Object.prototype.hasOwnProperty;return Lk=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}(),i=function(){if(Rk)return Ok;Rk=1;var e=MC();return Ok=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Pk=o}function TC(){if(jk)return Fk;jk=1;var e=(Bk||(Bk=1,Ik=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}),Ik);return Fk=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map},Fk}function LC(){if(Zk)return Xk;Zk=1;var e=function(){if(Nk)return Dk;Nk=1;var e=AC(),t=gC(),n=SC();return Dk=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}(),t=function(){if(Hk)return Wk;Hk=1;var e=TC();return Wk=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}(),n=function(){if(Vk)return Uk;Vk=1;var e=TC();return Uk=function(t){return e(this,t).get(t)}}(),r=function(){if(qk)return $k;qk=1;var e=TC();return $k=function(t){return e(this,t).has(t)}}(),i=function(){if(Gk)return Yk;Gk=1;var e=TC();return Yk=function(t,n){var r=e(this,t),i=r.size;return r.set(t,n),this.size+=r.size==i?0:1,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Xk=o}function EC(){if(eC)return Qk;eC=1;var e=gC(),t=function(){if(Bx)return Ix;Bx=1;var e=gC();return Ix=function(){this.__data__=new e,this.size=0}}(),n=jx?Fx:(jx=1,Fx=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}),r=Hx?Wx:(Hx=1,Wx=function(e){return this.__data__.get(e)}),i=Vx?Ux:(Vx=1,Ux=function(e){return this.__data__.has(e)}),o=function(){if(Jk)return Kk;Jk=1;var e=gC(),t=SC(),n=LC();return Kk=function(r,i){var o=this.__data__;if(o instanceof e){var a=o.__data__;if(!t||a.length<199)return a.push([r,i]),this.size=++o.size,this;o=this.__data__=new n(a)}return o.set(r,i),this.size=o.size,this}}();function a(t){var n=this.__data__=new e(t);this.size=n.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=o,Qk=a}function OC(){if(nC)return tC;nC=1;var e=CC(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();return tC=t}function RC(){if(iC)return rC;iC=1;var e=OC();return rC=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r},rC}function PC(){if(aC)return oC;aC=1;var e=RC(),t=hC();return oC=function(n,r,i){(void 0!==i&&!t(n[r],i)||void 0===i&&!(r in n))&&e(n,r,i)},oC}function zC(){if(uC)return cC;uC=1;var e=(sC||(sC=1,lC=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),l=a.length;l--;){var s=a[e?l:++i];if(!1===n(o[s],s,o))break}return t}}),lC),t=e();return cC=t}var DC,NC,IC,BC,FC,jC,WC,HC,UC,VC,$C,qC,YC,GC,XC,ZC,KC,JC,QC,eS,tS,nS,rS,iS,oS,aS,lS,sS,cS,uS,dS,fS,hS,pS={exports:{}};function gS(){return DC||(DC=1,function(e,t){var n=mC(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}(pS,pS.exports)),pS.exports}function vS(){if(IC)return NC;IC=1;var e=mC().Uint8Array;return NC=e}function mS(){if(FC)return BC;FC=1;var e=vS();return BC=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function bS(){if(WC)return jC;WC=1;var e=mS();return jC=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}function yS(){if(UC)return HC;return UC=1,HC=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},HC}function _S(){if(YC)return qC;return YC=1,qC=function(e,t){return function(n){return e(t(n))}}}function wS(){if(XC)return GC;XC=1;var e=_S()(Object.getPrototypeOf,Object);return GC=e}function xS(){if(KC)return ZC;KC=1;var e=Object.prototype;return ZC=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function kS(){if(QC)return JC;QC=1;var e=function(){if($C)return VC;$C=1;var e=_C(),t=Object.create,n=function(){function n(){}return function(r){if(!e(r))return{};if(t)return t(r);n.prototype=r;var i=new n;return n.prototype=void 0,i}}();return VC=n}(),t=wS(),n=xS();return JC=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))},JC}function CS(){if(tS)return eS;return tS=1,eS=function(e){return null!=e&&"object"==typeof e}}function SS(){if(oS)return iS;oS=1;var e=function(){if(rS)return nS;rS=1;var e=yC(),t=CS();return nS=function(n){return t(n)&&"[object Arguments]"==e(n)}}(),t=CS(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!i.call(e,"callee")};return iS=o}function MS(){if(lS)return aS;lS=1;var e=Array.isArray;return aS=e}function AS(){if(cS)return sS;cS=1;return sS=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function TS(){if(dS)return uS;dS=1;var e=wC(),t=AS();return uS=function(n){return null!=n&&t(n.length)&&!e(n)}}function LS(){if(hS)return fS;hS=1;var e=TS(),t=CS();return fS=function(n){return t(n)&&e(n)}}var ES,OS,RS,PS,zS,DS,NS,IS,BS,FS={exports:{}};function jS(){return RS||(RS=1,function(e,t){var n=mC(),r=OS?ES:(OS=1,ES=function(){return!1}),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l}(FS,FS.exports)),FS.exports}function WS(){if(zS)return PS;zS=1;var e=yC(),t=wS(),n=CS(),r=Function.prototype,i=Object.prototype,o=r.toString,a=i.hasOwnProperty,l=o.call(Object);return PS=function(r){if(!n(r)||"[object Object]"!=e(r))return!1;var i=t(r);if(null===i)return!0;var s=a.call(i,"constructor")&&i.constructor;return"function"==typeof s&&s instanceof s&&o.call(s)==l}}function HS(){if(BS)return IS;return BS=1,IS=function(e){return function(t){return e(t)}}}var US,VS,$S,qS,YS,GS,XS,ZS,KS,JS,QS,eM,tM,nM,rM,iM,oM,aM,lM,sM,cM,uM,dM,fM,hM,pM,gM,vM,mM,bM,yM,_M,wM,xM,kM,CM,SM,MM,AM,TM,LM,EM,OM,RM,PM,zM,DM,NM,IM,BM={exports:{}};function FM(){return US||(US=1,function(e,t){var n=vC(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}(BM,BM.exports)),BM.exports}function jM(){if($S)return VS;$S=1;var e=function(){if(NS)return DS;NS=1;var e=yC(),t=AS(),n=CS(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,DS=function(i){return n(i)&&t(i.length)&&!!r[e(i)]}}(),t=HS(),n=FM(),r=n&&n.isTypedArray,i=r?t(r):e;return VS=i}function WM(){if(YS)return qS;return YS=1,qS=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},qS}function HM(){if(XS)return GS;XS=1;var e=RC(),t=hC(),n=Object.prototype.hasOwnProperty;return GS=function(r,i,o){var a=r[i];n.call(r,i)&&t(a,o)&&(void 0!==o||i in r)||e(r,i,o)},GS}function UM(){if(KS)return ZS;KS=1;var e=HM(),t=RC();return ZS=function(n,r,i,o){var a=!i;i||(i={});for(var l=-1,s=r.length;++l<s;){var c=r[l],u=o?o(i[c],n[c],c,i,n):void 0;void 0===u&&(u=n[c]),a?t(i,c,u):e(i,c,u)}return i},ZS}function VM(){if(tM)return eM;tM=1;var e=/^(?:0|[1-9]\d*)$/;return eM=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n},eM}function $M(){if(rM)return nM;rM=1;var e=(QS||(QS=1,JS=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}),JS),t=SS(),n=MS(),r=jS(),i=VM(),o=jM(),a=Object.prototype.hasOwnProperty;return nM=function(l,s){var c=n(l),u=!c&&t(l),d=!c&&!u&&r(l),f=!c&&!u&&!d&&o(l),h=c||u||d||f,p=h?e(l.length,String):[],g=p.length;for(var v in l)!s&&!a.call(l,v)||h&&("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||i(v,g))||p.push(v);return p}}function qM(){if(lM)return aM;lM=1;var e=_C(),t=xS(),n=(oM||(oM=1,iM=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}),iM),r=Object.prototype.hasOwnProperty;return aM=function(i){if(!e(i))return n(i);var o=t(i),a=[];for(var l in i)("constructor"!=l||!o&&r.call(i,l))&&a.push(l);return a},aM}function YM(){if(cM)return sM;cM=1;var e=$M(),t=qM(),n=TS();return sM=function(r){return n(r)?e(r,!0):t(r)},sM}function GM(){if(hM)return fM;hM=1;var e=PC(),t=gS(),n=bS(),r=yS(),i=kS(),o=SS(),a=MS(),l=LS(),s=jS(),c=wC(),u=_C(),d=WS(),f=jM(),h=WM(),p=function(){if(dM)return uM;dM=1;var e=UM(),t=YM();return uM=function(n){return e(n,t(n))}}();return fM=function(g,v,m,b,y,_,w){var x=h(g,m),k=h(v,m),C=w.get(k);if(C)e(g,m,C);else{var S=_?_(x,k,m+"",g,v,w):void 0,M=void 0===S;if(M){var A=a(k),T=!A&&s(k),L=!A&&!T&&f(k);S=k,A||T||L?a(x)?S=x:l(x)?S=r(x):T?(M=!1,S=t(k,!0)):L?(M=!1,S=n(k,!0)):S=[]:d(k)||o(k)?(S=x,o(x)?S=p(x):u(x)&&!c(x)||(S=i(k))):M=!1}M&&(w.set(k,S),y(S,k,b,_,w),w.delete(k)),e(g,m,S)}},fM}function XM(){if(mM)return vM;return mM=1,vM=function(e){return e}}function ZM(){if(wM)return _M;wM=1;var e=yM?bM:(yM=1,bM=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}),t=Math.max;return _M=function(n,r,i){return r=t(void 0===r?n.length-1:r,0),function(){for(var o=arguments,a=-1,l=t(o.length-r,0),s=Array(l);++a<l;)s[a]=o[r+a];a=-1;for(var c=Array(r+1);++a<r;)c[a]=o[a];return c[r]=i(s),e(n,this,c)}},_M}function KM(){if(SM)return CM;SM=1;var e=kM?xM:(kM=1,xM=function(e){return function(){return e}}),t=OC(),n=XM();return CM=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}function JM(){if(LM)return TM;LM=1;var e=KM(),t=function(){if(AM)return MM;AM=1;var e=Date.now;return MM=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},MM}(),n=t(e);return TM=n}function QM(){if(OM)return EM;OM=1;var e=XM(),t=ZM(),n=JM();return EM=function(r,i){return n(t(r,i,e),r+"")},EM}function eA(){if(PM)return RM;PM=1;var e=hC(),t=TS(),n=VM(),r=_C();return RM=function(i,o,a){if(!r(a))return!1;var l=typeof o;return!!("number"==l?t(a)&&n(o,a.length):"string"==l&&o in a)&&e(a[o],i)},RM}var tA,nA,rA,iA,oA,aA,lA,sA,cA,uA,dA,fA,hA,pA,gA,vA,mA,bA,yA,_A,wA,xA,kA,CA,SA=function(){if(IM)return NM;IM=1;var e=function(){if(gM)return pM;gM=1;var e=EC(),t=PC(),n=zC(),r=GM(),i=_C(),o=YM(),a=WM();return pM=function l(s,c,u,d,f){s!==c&&n(c,(function(n,o){if(f||(f=new e),i(n))r(s,c,o,u,l,d,f);else{var h=d?d(a(s,o),n,o+"",s,c,f):void 0;void 0===h&&(h=n),t(s,o,h)}}),o)},pM}(),t=function(){if(DM)return zM;DM=1;var e=QM(),t=eA();return zM=function(n){return e((function(e,r){var i=-1,o=r.length,a=o>1?r[o-1]:void 0,l=o>2?r[2]:void 0;for(a=n.length>3&&"function"==typeof a?(o--,a):void 0,l&&t(r[0],r[1],l)&&(a=o<3?void 0:a,o=1),e=Object(e);++i<o;){var s=r[i];s&&n(e,s,i,a)}return e}))},zM}(),n=t((function(t,n,r){e(t,n,r)}));return NM=n}(),MA=Pd(SA);function AA(){if(nA)return tA;nA=1;var e=yC(),t=CS();return tA=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function TA(){if(iA)return rA;iA=1;var e=MS(),t=AA(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return rA=function(i,o){if(e(i))return!1;var a=typeof i;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=i&&!t(i))||(r.test(i)||!n.test(i)||null!=o&&i in Object(o))},rA}function LA(){if(sA)return lA;sA=1;var e=function(){if(aA)return oA;aA=1;var e=LC();function t(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var i=function(){var e=arguments,t=r?r.apply(this,e):e[0],o=i.cache;if(o.has(t))return o.get(t);var a=n.apply(this,e);return i.cache=o.set(t,a)||o,a};return i.cache=new(t.Cache||e),i}return t.Cache=e,oA=t}();return lA=function(t){var n=e(t,(function(e){return 500===r.size&&r.clear(),e})),r=n.cache;return n}}function EA(){if(fA)return dA;return fA=1,dA=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},dA}function OA(){if(vA)return gA;vA=1;var e=function(){if(pA)return hA;pA=1;var e=bC(),t=EA(),n=MS(),r=AA(),i=e?e.prototype:void 0,o=i?i.toString:void 0;return hA=function e(i){if("string"==typeof i)return i;if(n(i))return t(i,e)+"";if(r(i))return o?o.call(i):"";var a=i+"";return"0"==a&&1/i==-1/0?"-0":a},hA}();return gA=function(t){return null==t?"":e(t)}}function RA(){if(bA)return mA;bA=1;var e=MS(),t=TA(),n=function(){if(uA)return cA;uA=1;var e=LA(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e((function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,(function(e,t,i,o){r.push(i?o.replace(n,"$1"):t||e)})),r}));return cA=r}(),r=OA();return mA=function(i,o){return e(i)?i:t(i,o)?[i]:n(r(i))},mA}function PA(){if(_A)return yA;_A=1;var e=AA();return yA=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}}function zA(){if(xA)return wA;xA=1;var e=RA(),t=PA();return wA=function(n,r){for(var i=0,o=(r=e(r,n)).length;null!=n&&i<o;)n=n[t(r[i++])];return i&&i==o?n:void 0},wA}function DA(){if(CA)return kA;CA=1;var e=zA();return kA=function(t,n,r){var i=null==t?void 0:e(t,n);return void 0===i?r:i},kA}var NA,IA,BA,FA,jA=Pd(DA());function WA(){if(IA)return NA;IA=1;var e=HM(),t=RA(),n=VM(),r=_C(),i=PA();return NA=function(o,a,l,s){if(!r(o))return o;for(var c=-1,u=(a=t(a,o)).length,d=u-1,f=o;null!=f&&++c<u;){var h=i(a[c]),p=l;if("__proto__"===h||"constructor"===h||"prototype"===h)return o;if(c!=d){var g=f[h];void 0===(p=s?s(g,h,f):void 0)&&(p=r(g)?g:n(a[c+1])?[]:{})}e(f,h,p),f=f[h]}return o},NA}var HA=function(){if(FA)return BA;FA=1;var e=WA();return BA=function(t,n,r){return null==t?t:e(t,n,r)},BA}(),UA=Pd(HA);function VA(){return VA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VA.apply(null,arguments)}var $A=["outlineWidth","outlineColor","outlineOpacity"],qA=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,$A)},YA=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],GA=function(e,t){var n=MA({},e,t);return YA.forEach((function(e){UA(n,e,function(e,t){return VA({},t,e)}(jA(n,e),n.text))})),n},XA=function(e,t){return t?MA({},e,t):e},ZA={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"#ffffff",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}},KA=L(null),JA={},QA=function(e){var t=e.theme,n=void 0===t?JA:t,r=e.children,i=function(e){return A((function(){return GA(ZA,e)}),[e])}(n);return ln(KA.Provider,{value:i,children:r})},eT=function(){var e=T(KA);if(null===e)throw new Error("Unable to find the theme, did you forget to wrap your component with ThemeProvider?");return e};function tT(){return tT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tT.apply(null,arguments)}var nT=["basic","chip","container","table","tableCell","tableCellValue"],rT={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},iT=function(e,t){return"translate("+e+"px, "+t+"px)"},oT=E((function(e){var t,n=e.position,r=e.anchor,i=e.children,o=eT(),a=Rz(),l=a.animate,s=a.config,c=AD(),u=c[0],d=c[1],f=C(!1),h=void 0,p=!1,g=d.width>0&&d.height>0,v=Math.round(n[0]),m=Math.round(n[1]);g&&("top"===r?(v-=d.width/2,m-=d.height+14):"right"===r?(v+=14,m-=d.height/2):"bottom"===r?(v-=d.width/2,m+=14):"left"===r?(v-=d.width+14,m-=d.height/2):"center"===r&&(v-=d.width/2,m-=d.height/2),h={transform:iT(v,m)},f.current||(p=!0),f.current=[v,m]);var b=tx({to:h,config:s,immediate:!l||p}),y=o.tooltip;y.basic,y.chip,y.container,y.table,y.tableCell,y.tableCellValue;var _=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(y,nT),w=tT({},rT,_,{transform:null!=(t=b.transform)?t:iT(v,m),opacity:b.transform?1:0});return ln(fC.div,{ref:u,style:w,children:i})}));oT.displayName="TooltipWrapper";var aT=E((function(e){var t=e.size,n=void 0===t?12:t,r=e.color,i=e.style;return ln("span",{style:tT({display:"block",width:n,height:n,background:r},void 0===i?{}:i)})})),lT=E((function(e){var t,n=e.id,r=e.value,i=e.format,o=e.enableChip,a=void 0!==o&&o,l=e.color,s=e.renderContent,c=eT(),u=LD(i);if("function"==typeof s)t=s();else{var d=r;void 0!==u&&void 0!==d&&(d=u(d)),t=ln("div",{style:c.tooltip.basic,children:[a&&ln(aT,{color:l,style:c.tooltip.chip}),void 0!==d?ln("span",{children:[n,": ",ln("strong",{children:""+d})]}):n]})}return ln("div",{style:c.tooltip.container,role:"tooltip",children:t})})),sT={width:"100%",borderCollapse:"collapse"},cT=E((function(e){var t,n=e.title,r=e.rows,i=void 0===r?[]:r,o=e.renderContent,a=eT();return i.length?(t="function"==typeof o?o():ln("div",{children:[n&&n,ln("table",{style:tT({},sT,a.tooltip.table),children:ln("tbody",{children:i.map((function(e,t){return ln("tr",{children:e.map((function(e,t){return ln("td",{style:a.tooltip.tableCell,children:e},t)}))},t)}))})})]}),ln("div",{style:a.tooltip.container,children:t})):null}));cT.displayName="TableTooltip";var uT=E((function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=eT(),a=Rz(),l=a.animate,s=a.config,c=A((function(){return tT({},o.crosshair.line,{pointerEvents:"none"})}),[o.crosshair.line]),u=tx({x1:t,x2:n,y1:r,y2:i,config:s,immediate:!l});return ln(fC.line,tT({},u,{fill:"none",style:c}))}));uT.displayName="CrosshairLine";var dT=E((function(e){var t,n,i=e.width,o=e.height,a=e.type,l=e.x,s=e.y;return"cross"===a?(t={x0:l,x1:l,y0:0,y1:o},n={x0:0,x1:i,y0:s,y1:s}):"top-left"===a?(t={x0:l,x1:l,y0:0,y1:s},n={x0:0,x1:l,y0:s,y1:s}):"top"===a?t={x0:l,x1:l,y0:0,y1:s}:"top-right"===a?(t={x0:l,x1:l,y0:0,y1:s},n={x0:l,x1:i,y0:s,y1:s}):"right"===a?n={x0:l,x1:i,y0:s,y1:s}:"bottom-right"===a?(t={x0:l,x1:l,y0:s,y1:o},n={x0:l,x1:i,y0:s,y1:s}):"bottom"===a?t={x0:l,x1:l,y0:s,y1:o}:"bottom-left"===a?(t={x0:l,x1:l,y0:s,y1:o},n={x0:0,x1:l,y0:s,y1:s}):"left"===a?n={x0:0,x1:l,y0:s,y1:s}:"x"===a?t={x0:l,x1:l,y0:0,y1:o}:"y"===a&&(n={x0:0,x1:i,y0:s,y1:s}),ln(r,{children:[t&&ln(uT,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&ln(uT,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})}));dT.displayName="Crosshair";var fT,hT,pT=L({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),gT={isVisible:!1,position:[null,null],content:null,anchor:null},vT=L(gT),mT=function(){var e=T(pT);if(void 0===e)throw new Error("useTooltip must be used within a TooltipProvider");return e},bT=function(){var e=function(){var e=T(vT);if(void 0===e)throw new Error("useTooltipState must be used within a TooltipProvider");return e}();return function(e){return e.isVisible}(e)?ln(oT,{position:e.position,anchor:e.anchor,children:e.content}):null},yT=function(e){var t=e.container,n=e.children,r=function(e){var t=w(gT),n=t[0],r=t[1],i=M((function(e,t,n){var i=t[0],o=t[1];void 0===n&&(n="top"),r({isVisible:!0,position:[i,o],anchor:n,content:e})}),[r]),o=M((function(t,n,i){void 0===i&&(i="top");var o=e.current.getBoundingClientRect(),a=e.current.offsetWidth,l=a===o.width?1:a/o.width,s="touches"in n?n.touches[0]:n,c=s.clientX,u=s.clientY,d=(c-o.left)*l,f=(u-o.top)*l;"left"!==i&&"right"!==i||(i=d<o.width/2?"right":"left"),r({isVisible:!0,position:[d,f],anchor:i,content:t})}),[e,r]),a=M((function(){r(gT)}),[r]);return{actions:A((function(){return{showTooltipAt:i,showTooltipFromEvent:o,hideTooltip:a}}),[i,o,a]),state:n}}(t),i=r.actions,o=r.state;return ln(pT.Provider,{value:i,children:ln(vT.Provider,{value:o,children:n})})};var _T=Pd(function(){if(hT)return fT;hT=1;var e=yC(),t=MS(),n=CS();return fT=function(r){return"string"==typeof r||!t(r)&&n(r)&&"[object String]"==e(r)}}());let wT;wT="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let xT=null,kT=null;const CT=wT.clearTimeout,ST=wT.setTimeout,MT=wT.cancelAnimationFrame||wT.mozCancelAnimationFrame||wT.webkitCancelAnimationFrame,AT=wT.requestAnimationFrame||wT.mozRequestAnimationFrame||wT.webkitRequestAnimationFrame;function TT(e){let t,n,r,i,o,a,l;const s="undefined"!=typeof document&&document.attachEvent;if(!s){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&xT(this.__resizeRAF__),this.__resizeRAF__=kT((function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,s="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],s="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+s+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=s+"animation: 1ms "+n+"; "}return{addResizeListener:function(o,c){if(s)o.attachEvent("onresize",c);else{if(!o.__resizeTriggers__){const s=o.ownerDocument,c=wT.getComputedStyle(o);c&&"static"===c.position&&(o.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),o.appendChild(a)}}(s),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=s.createElement("div")).className="resize-triggers";const u=s.createElement("div");u.className="expand-trigger",u.appendChild(s.createElement("div"));const d=s.createElement("div");d.className="contract-trigger",o.__resizeTriggers__.appendChild(u),o.__resizeTriggers__.appendChild(d),o.appendChild(o.__resizeTriggers__),a(o),o.addEventListener("scroll",l,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(s)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==MT||null==AT?(xT=CT,kT=function(e){return ST(e,20)}):(xT=function([e,t]){MT(e),CT(t)},kT=function(e){const t=AT((function(){CT(n),e()})),n=ST((function(){MT(t),e()}),20);return[t,n]});class LT extends O{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||"0"),o=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),l=parseFloat(r.paddingBottom||"0"),s=this._parentNode.getBoundingClientRect(),c=s.height-a-l,u=s.width-i-o;if(!e&&this.state.height!==c||!t&&this.state.width!==u){this.setState({height:c,width:u});const e=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};"function"==typeof n&&n({height:c,width:u,get scaledHeight(){return e(),c},get scaledWidth(){return e(),u}})}}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=TT(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:o=!1,nonce:a,onResize:l,style:s={},tagName:c="div",...u}=this.props,{height:d,width:f}=this.state,h={overflow:"visible"},p={};let g=!1;return r||(0===d&&(g=!0),h.height=0,p.height=d,p.scaledHeight=d),i||(0===f&&(g=!0),h.width=0,p.width=f,p.scaledWidth=f),o&&(g=!1),R(c,{ref:this._setRef,style:{...h,...s},...u},!g&&e(p))}}function ET(e,t){return e===t}function OT(e,t,n){var r=n&&n.equalityFn||ET,i=C(e),o=w({})[1],a=function(e,t,n,r){var i=this,o=C(null),a=C(0),l=C(0),s=C(null),c=C([]),u=C(),d=C(),f=C(e),h=C(!0);f.current=e;var p="undefined"!=typeof window,g=!t&&0!==t&&p;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var v=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,b="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,_=b?Math.max(+n.maxWait||0,t):null;x((function(){return h.current=!0,function(){h.current=!1}}),[]);var w=A((function(){var e=function(e){var t=c.current,n=u.current;return c.current=u.current=null,a.current=e,l.current=l.current||e,d.current=f.current.apply(n,t)},n=function(e,t){g&&cancelAnimationFrame(s.current),s.current=g?requestAnimationFrame(e):setTimeout(e,t)},w=function(e){if(!h.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||b&&e-a.current>=_},x=function(t){return s.current=null,m&&c.current?e(t):(c.current=u.current=null,d.current)},k=function e(){var r=Date.now();if(v&&l.current===a.current&&C(),w(r))return x(r);if(h.current){var i=t-(r-o.current),s=b?Math.min(i,_-(r-a.current)):i;n(e,s)}},C=function(){r&&r({})},S=function(){if(p||y){var r=Date.now(),l=w(r);if(c.current=[].slice.call(arguments),u.current=i,o.current=r,l){if(!s.current&&h.current)return a.current=o.current,n(k,t),v?e(o.current):d.current;if(b)return n(k,t),e(o.current)}return s.current||n(k,t),d.current}};return S.cancel=function(){var e=s.current;e&&(g?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,c.current=o.current=u.current=s.current=null,e&&r&&r({})},S.isPending=function(){return!!s.current},S.flush=function(){return s.current?x(Date.now()):d.current},S}),[v,b,t,_,m,g,p,y,r]);return w}(M((function(e){i.current=e,o({})}),[o]),t,n,o),l=C(e);return r(l.current,e)||(a(e),l.current=e),[i.current,a]}var RT,PT,zT,DT,NT,IT,BT,FT,jT,WT,HT,UT,VT,$T,qT,YT,GT,XT,ZT,KT,JT,QT,eL,tL;function nL(){if(IT)return NT;IT=1;var e=LC(),t=PT?RT:(PT=1,RT=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),n=DT?zT:(DT=1,zT=function(e){return this.__data__.has(e)});function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,NT=r}function rL(){if($T)return VT;$T=1;var e=(FT||(FT=1,BT=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}),BT),t=WT?jT:(WT=1,jT=function(e){return e!=e}),n=(UT||(UT=1,HT=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}),HT);return VT=function(r,i,o){return i==i?n(r,i,o):e(r,t,o)},VT}function iL(){if(YT)return qT;YT=1;var e=rL();return qT=function(t,n){return!!(null==t?0:t.length)&&e(t,n,0)>-1},qT}function oL(){if(XT)return GT;return XT=1,GT=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1},GT}function aL(){if(KT)return ZT;return KT=1,ZT=function(e,t){return e.has(t)}}var lL=function(){if(tL)return eL;tL=1;var e=function(){if(QT)return JT;QT=1;var e=nL(),t=iL(),n=oL(),r=EA(),i=HS(),o=aL();return JT=function(a,l,s,c){var u=-1,d=t,f=!0,h=a.length,p=[],g=l.length;if(!h)return p;s&&(l=r(l,i(s))),c?(d=n,f=!1):l.length>=200&&(d=o,f=!1,l=new e(l));e:for(;++u<h;){var v=a[u],m=null==s?v:s(v);if(v=c||0!==v?v:0,f&&m==m){for(var b=g;b--;)if(l[b]===m)continue e;p.push(v)}else d(l,m,c)||p.push(v)}return p},JT}(),t=QM(),n=LS(),r=t((function(t,r){return n(t)?e(t,r):[]}));return eL=r}(),sL=Pd(lL);function cL(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}var uL=cL("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),dL=cL("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),fL=cL("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),hL=cL("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),pL=cL("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),gL=cL("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),vL=cL("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),mL=cL("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),bL=cL("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),yL=cL("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),_L=e=>sa(e[e.length-1]),wL=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(cL),xL=_L(wL),kL=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(cL),CL=_L(kL),SL=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(cL),ML=_L(SL),AL=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(cL),TL=_L(AL),LL=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(cL),EL=_L(LL),OL=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(cL),RL=_L(OL),PL=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(cL),zL=_L(PL),DL=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(cL),NL=_L(DL),IL=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(cL),BL=_L(IL),FL=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(cL),jL=_L(FL),WL=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(cL),HL=_L(WL),UL=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(cL),VL=_L(UL),$L=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(cL),qL=_L($L),YL=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(cL),GL=_L(YL),XL=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(cL),ZL=_L(XL),KL=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(cL),JL=_L(KL),QL=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(cL),eE=_L(QL),tE=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(cL),nE=_L(tE),rE=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(cL),iE=_L(rE),oE=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(cL),aE=_L(oE),lE=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(cL),sE=_L(lE),cE=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(cL),uE=_L(cE),dE=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(cL),fE=_L(dE),hE=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(cL),pE=_L(hE),gE=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(cL),vE=_L(gE),mE=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(cL),bE=_L(mE),yE=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(cL),_E=_L(yE);var wE=Aa(ea(300,.5,0),ea(-240,.5,1)),xE=Aa(ea(-100,.75,.35),ea(80,1.5,.8)),kE=Aa(ea(260,.75,.35),ea(80,1.5,.8)),CE=ea();var SE=Oo(),ME=Math.PI/3,AE=2*Math.PI/3;function TE(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var LE,EE,OE=TE(cL("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),RE=TE(cL("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),PE=TE(cL("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),zE=TE(cL("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function DE(){if(EE)return LE;return EE=1,LE=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},LE}var NE=Pd(DE());MS();var IE=Pd(wC());function BE(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var FE,jE=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function WE(e){if(!(t=jE.exec(e)))throw new Error("invalid format: "+e);var t;return new HE({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 HE(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+""}function UE(e,t){var n=BE(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}WE.prototype=HE.prototype,HE.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};var VE={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return UE(100*e,t)},r:UE,s:function(e,t){var n=BE(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(FE=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+BE(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function $E(e){return e}var qE,YE,GE=Array.prototype.map,XE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ZE(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?$E:(t=GE.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,l=t[0],s=0;i>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),o.push(e.substring(i-=l,i+l)),!((s+=l+1)>r));)l=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=e.decimal+"",l=void 0===e.numerals?$E:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(GE.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",c=e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=WE(e)).fill,n=e.align,d=e.sign,f=e.symbol,h=e.zero,p=e.width,g=e.comma,v=e.precision,m=e.trim,b=e.type;"n"===b?(g=!0,b="g"):VE[b]||(void 0===v&&(v=12),m=!0,b="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var y="$"===f?i:"#"===f&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",_="$"===f?o:/[%p]/.test(b)?s:"",w=VE[b],x=/[defgprs%]/.test(b);function k(e){var i,o,s,f=y,k=_;if("c"===b)k=w(e)+k,e="";else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),v),m&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),C&&0==+e&&"+"!==d&&(C=!1),f=(C?"("===d?d:c:"-"===d||"("===d?"":d)+f,k=("s"===b?XE[8+FE/3]:"")+k+(C&&"("===d?")":""),x)for(i=-1,o=e.length;++i<o;)if(48>(s=e.charCodeAt(i))||s>57){k=(46===s?a+e.slice(i+1):e.slice(i))+k,e=e.slice(0,i);break}}g&&!h&&(e=r(e,1/0));var S=f.length+e.length+k.length,M=S<p?new Array(p-S+1).join(t):"";switch(g&&h&&(e=r(M+e,M.length?p-k.length:1/0),M=""),n){case"<":e=f+e+k+M;break;case"=":e=f+M+e+k;break;case"^":e=M.slice(0,S=M.length>>1)+f+e+k+M.slice(S);break;default:e=M+f+e+k}return l(e)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return e+""},k}return{format:d,formatPrefix:function(e,t){var n=d(((e=WE(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(function(e){return(e=BE(Math.abs(e)))?e[1]:NaN}(t)/3))),i=Math.pow(10,-r),o=XE[8+r/3];return function(e){return n(i*e)+o}}}}!function(e){qE=ZE(e),YE=qE.format,qE.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var KE=new Date,JE=new Date;function QE(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,l=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return l;do{l.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return l},i.filter=function(n){return QE((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return KE.setTime(+t),JE.setTime(+r),e(KE),e(JE),Math.floor(n(KE,JE))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}const eO=6e4,tO=864e5,nO=6048e5;var rO=QE((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*eO)/tO),(e=>e.getDate()-1));function iO(e){return QE((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*eO)/nO}))}rO.range;var oO=iO(0),aO=iO(1),lO=iO(2),sO=iO(3),cO=iO(4),uO=iO(5),dO=iO(6);oO.range,aO.range,lO.range,sO.range,cO.range,uO.range,dO.range;var fO=QE((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));fO.every=function(e){return isFinite(e=Math.floor(e))&&e>0?QE((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},fO.range;var hO=QE((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/tO}),(function(e){return e.getUTCDate()-1}));function pO(e){return QE((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/nO}))}hO.range;var gO=pO(0),vO=pO(1),mO=pO(2),bO=pO(3),yO=pO(4),_O=pO(5),wO=pO(6);gO.range,vO.range,mO.range,bO.range,yO.range,_O.range,wO.range;var xO=QE((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function kO(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 CO(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 SO(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}xO.every=function(e){return isFinite(e=Math.floor(e))&&e>0?QE((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},xO.range;var MO,AO,TO,LO,EO={"-":"",_:" ",0:"0"},OO=/^\s*\d+/,RO=/^%/,PO=/[\\^$*+?|[\]().{}]/g;function zO(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function DO(e){return e.replace(PO,"\\$&")}function NO(e){return new RegExp("^(?:"+e.map(DO).join("|")+")","i")}function IO(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function BO(e,t,n){var r=OO.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function FO(e,t,n){var r=OO.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function jO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function WO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function HO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function UO(e,t,n){var r=OO.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function VO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function $O(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function qO(e,t,n){var r=OO.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function YO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function GO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function XO(e,t,n){var r=OO.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ZO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function KO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function JO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function QO(e,t,n){var r=OO.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function eR(e,t,n){var r=OO.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function tR(e,t,n){var r=RO.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function nR(e,t,n){var r=OO.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function rR(e,t,n){var r=OO.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function iR(e,t){return zO(e.getDate(),t,2)}function oR(e,t){return zO(e.getHours(),t,2)}function aR(e,t){return zO(e.getHours()%12||12,t,2)}function lR(e,t){return zO(1+rO.count(fO(e),e),t,3)}function sR(e,t){return zO(e.getMilliseconds(),t,3)}function cR(e,t){return sR(e,t)+"000"}function uR(e,t){return zO(e.getMonth()+1,t,2)}function dR(e,t){return zO(e.getMinutes(),t,2)}function fR(e,t){return zO(e.getSeconds(),t,2)}function hR(e){var t=e.getDay();return 0===t?7:t}function pR(e,t){return zO(oO.count(fO(e)-1,e),t,2)}function gR(e){var t=e.getDay();return t>=4||0===t?cO(e):cO.ceil(e)}function vR(e,t){return e=gR(e),zO(cO.count(fO(e),e)+(4===fO(e).getDay()),t,2)}function mR(e){return e.getDay()}function bR(e,t){return zO(aO.count(fO(e)-1,e),t,2)}function yR(e,t){return zO(e.getFullYear()%100,t,2)}function _R(e,t){return zO((e=gR(e)).getFullYear()%100,t,2)}function wR(e,t){return zO(e.getFullYear()%1e4,t,4)}function xR(e,t){var n=e.getDay();return zO((e=n>=4||0===n?cO(e):cO.ceil(e)).getFullYear()%1e4,t,4)}function kR(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+zO(t/60|0,"0",2)+zO(t%60,"0",2)}function CR(e,t){return zO(e.getUTCDate(),t,2)}function SR(e,t){return zO(e.getUTCHours(),t,2)}function MR(e,t){return zO(e.getUTCHours()%12||12,t,2)}function AR(e,t){return zO(1+hO.count(xO(e),e),t,3)}function TR(e,t){return zO(e.getUTCMilliseconds(),t,3)}function LR(e,t){return TR(e,t)+"000"}function ER(e,t){return zO(e.getUTCMonth()+1,t,2)}function OR(e,t){return zO(e.getUTCMinutes(),t,2)}function RR(e,t){return zO(e.getUTCSeconds(),t,2)}function PR(e){var t=e.getUTCDay();return 0===t?7:t}function zR(e,t){return zO(gO.count(xO(e)-1,e),t,2)}function DR(e){var t=e.getUTCDay();return t>=4||0===t?yO(e):yO.ceil(e)}function NR(e,t){return e=DR(e),zO(yO.count(xO(e),e)+(4===xO(e).getUTCDay()),t,2)}function IR(e){return e.getUTCDay()}function BR(e,t){return zO(vO.count(xO(e)-1,e),t,2)}function FR(e,t){return zO(e.getUTCFullYear()%100,t,2)}function jR(e,t){return zO((e=DR(e)).getUTCFullYear()%100,t,2)}function WR(e,t){return zO(e.getUTCFullYear()%1e4,t,4)}function HR(e,t){var n=e.getUTCDay();return zO((e=n>=4||0===n?yO(e):yO.ceil(e)).getUTCFullYear()%1e4,t,4)}function UR(){return"+0000"}function VR(){return"%"}function $R(e){return+e}function qR(e){return Math.floor(+e/1e3)}!function(e){MO=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,l=e.months,s=e.shortMonths,c=NO(i),u=IO(i),d=NO(o),f=IO(o),h=NO(a),p=IO(a),g=NO(l),v=IO(l),m=NO(s),b=IO(s),y={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:iR,e:iR,f:cR,g:_R,G:xR,H:oR,I:aR,j:lR,L:sR,m:uR,M:dR,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:$R,s:qR,S:fR,u:hR,U:pR,V:vR,w:mR,W:bR,x:null,X:null,y:yR,Y:wR,Z:kR,"%":VR},_={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:CR,e:CR,f:LR,g:jR,G:HR,H:SR,I:MR,j:AR,L:TR,m:ER,M:OR,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:$R,s:qR,S:RR,u:PR,U:zR,V:NR,w:IR,W:BR,x:null,X:null,y:FR,Y:WR,Z:UR,"%":VR},w={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:GO,e:GO,f:eR,g:VO,G:UO,H:ZO,I:ZO,j:XO,L:QO,m:YO,M:KO,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:qO,Q:nR,s:rR,S:JO,u:FO,U:jO,V:WO,w:BO,W:HO,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:VO,Y:UO,Z:$O,"%":tR};function x(e,t){return function(n){var r,i,o,a=[],l=-1,s=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++l<c;)37===e.charCodeAt(l)&&(a.push(e.slice(s,l)),null!=(i=EO[r=e.charAt(++l)])?r=e.charAt(++l):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),s=l+1);return a.push(e.slice(s,l)),a.join("")}}function k(e,t){return function(n){var r,i,o=SO(1900,void 0,1);if(C(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=CO(SO(o.y,0,1))).getUTCDay(),r=i>4||0===i?vO.ceil(r):vO(r),r=hO.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=kO(SO(o.y,0,1))).getDay(),r=i>4||0===i?aO.ceil(r):aO(r),r=rO.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?CO(SO(o.y,0,1)).getUTCDay():kO(SO(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,CO(o)):kO(o)}}function C(e,t,n,r){for(var i,o,a=0,l=t.length,s=n.length;a<l;){if(r>=s)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in EO?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return y.x=x(n,y),y.X=x(r,y),y.c=x(t,y),_.x=x(n,_),_.X=x(r,_),_.c=x(t,_),{format:function(e){var t=x(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}(e),AO=MO.format,TO=MO.parse,MO.utcFormat,LO=MO.utcParse}({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"]});var YR,GR,XR,ZR,KR,JR,QR,eP,tP,nP,rP,iP,oP,aP,lP,sP,cP,uP,dP,fP,hP,pP,gP=Pd(WS());function vP(){if(eP)return QR;eP=1;var e=(ZR||(ZR=1,XR=function(e,t){return null!=e&&t in Object(e)}),XR),t=function(){if(JR)return KR;JR=1;var e=RA(),t=SS(),n=MS(),r=VM(),i=AS(),o=PA();return KR=function(a,l,s){for(var c=-1,u=(l=e(l,a)).length,d=!1;++c<u;){var f=o(l[c]);if(!(d=null!=a&&s(a,f)))break;a=a[f]}return d||++c!=u?d:!!(u=null==a?0:a.length)&&i(u)&&r(f,u)&&(n(a)||t(a))},KR}();return QR=function(n,r){return null!=n&&t(n,r,e)},QR}function mP(){if(nP)return tP;nP=1;var e=function(){if(GR)return YR;GR=1;var e=zA(),t=WA(),n=RA();return YR=function(r,i,o){for(var a=-1,l=i.length,s={};++a<l;){var c=i[a],u=e(r,c);o(u,c)&&t(s,n(c,r),u)}return s},YR}(),t=vP();return tP=function(n,r){return e(n,r,(function(e,r){return t(n,r)}))},tP}function bP(){if(iP)return rP;return iP=1,rP=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},rP}function yP(){if(sP)return lP;sP=1;var e=bP(),t=function(){if(aP)return oP;aP=1;var e=bC(),t=SS(),n=MS(),r=e?e.isConcatSpreadable:void 0;return oP=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}();return lP=function n(r,i,o,a,l){var s=-1,c=r.length;for(o||(o=t),l||(l=[]);++s<c;){var u=r[s];i>0&&o(u)?i>1?n(u,i-1,o,a,l):e(l,u):a||(l[l.length]=u)}return l},lP}function _P(){if(fP)return dP;fP=1;var e=function(){if(uP)return cP;uP=1;var e=yP();return cP=function(t){return null!=t&&t.length?e(t,1):[]},cP}(),t=ZM(),n=JM();return dP=function(r){return n(t(r,void 0,e),r+"")}}var wP,xP,kP,CP,SP,MP,AP,TP,LP,EP,OP,RP,PP,zP,DP,NP,IP,BP,FP,jP,WP,HP,UP,VP,$P,qP,YP,GP,XP,ZP,KP,JP,QP,ez,tz,nz,rz,iz,oz,az,lz,sz,cz,uz,dz=function(){if(pP)return hP;pP=1;var e=mP(),t=_P()((function(t,n){return null==t?{}:e(t,n)}));return hP=t}(),fz=Pd(dz);function hz(){if(CP)return kP;CP=1;var e=nL(),t=(xP||(xP=1,wP=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}),wP),n=aL();return kP=function(r,i,o,a,l,s){var c=1&o,u=r.length,d=i.length;if(u!=d&&!(c&&d>u))return!1;var f=s.get(r),h=s.get(i);if(f&&h)return f==i&&h==r;var p=-1,g=!0,v=2&o?new e:void 0;for(s.set(r,i),s.set(i,r);++p<u;){var m=r[p],b=i[p];if(a)var y=c?a(b,m,p,i,r,s):a(m,b,p,r,i,s);if(void 0!==y){if(y)continue;g=!1;break}if(v){if(!t(i,(function(e,t){if(!n(v,t)&&(m===e||l(m,e,o,a,s)))return v.push(t)}))){g=!1;break}}else if(m!==b&&!l(m,b,o,a,s)){g=!1;break}}return s.delete(r),s.delete(i),g},kP}function pz(){if(TP)return AP;return TP=1,AP=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},AP}function gz(){if(EP)return LP;EP=1;var e=bC(),t=vS(),n=hC(),r=hz(),i=(MP||(MP=1,SP=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}),SP),o=pz(),a=e?e.prototype:void 0,l=a?a.valueOf:void 0;return LP=function(e,a,s,c,u,d,f){switch(s){case"[object DataView]":if(e.byteLength!=a.byteLength||e.byteOffset!=a.byteOffset)return!1;e=e.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=a.byteLength||!d(new t(e),new t(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+a);case"[object Error]":return e.name==a.name&&e.message==a.message;case"[object RegExp]":case"[object String]":return e==a+"";case"[object Map]":var h=i;case"[object Set]":var p=1&c;if(h||(h=o),e.size!=a.size&&!p)return!1;var g=f.get(e);if(g)return g==a;c|=2,f.set(e,a);var v=r(h(e),h(a),c,u,d,f);return f.delete(e),v;case"[object Symbol]":if(l)return l.call(e)==l.call(a)}return!1},LP}function vz(){if(RP)return OP;RP=1;var e=bP(),t=MS();return OP=function(n,r,i){var o=r(n);return t(n)?o:e(o,i(n))},OP}function mz(){if(zP)return PP;return zP=1,PP=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o},PP}function bz(){if(NP)return DP;return NP=1,DP=function(){return[]}}function yz(){if(BP)return IP;BP=1;var e=mz(),t=bz(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,i=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t;return IP=i}function _z(){if(HP)return WP;HP=1;var e=xS(),t=function(){if(jP)return FP;jP=1;var e=_S()(Object.keys,Object);return FP=e}(),n=Object.prototype.hasOwnProperty;return WP=function(r){if(!e(r))return t(r);var i=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&i.push(o);return i},WP}function wz(){if(VP)return UP;VP=1;var e=$M(),t=_z(),n=TS();return UP=function(r){return n(r)?e(r):t(r)},UP}function xz(){if(qP)return $P;qP=1;var e=vz(),t=yz(),n=wz();return $P=function(r){return e(r,n,t)},$P}function kz(){if(ez)return QP;ez=1;var e=CC()(mC(),"Set");return QP=e}function Cz(){if(iz)return rz;iz=1;var e=function(){if(ZP)return XP;ZP=1;var e=CC()(mC(),"DataView");return XP=e}(),t=SC(),n=function(){if(JP)return KP;JP=1;var e=CC()(mC(),"Promise");return KP=e}(),r=kz(),i=function(){if(nz)return tz;nz=1;var e=CC()(mC(),"WeakMap");return tz=e}(),o=yC(),a=kC(),l="[object Map]",s="[object Promise]",c="[object Set]",u="[object WeakMap]",d="[object DataView]",f=a(e),h=a(t),p=a(n),g=a(r),v=a(i),m=o;return(e&&m(new e(new ArrayBuffer(1)))!=d||t&&m(new t)!=l||n&&m(n.resolve())!=s||r&&m(new r)!=c||i&&m(new i)!=u)&&(m=function(e){var t=o(e),n="[object Object]"==t?e.constructor:void 0,r=n?a(n):"";if(r)switch(r){case f:return d;case h:return l;case p:return s;case g:return c;case v:return u}return t}),rz=m}function Sz(){if(az)return oz;az=1;var e=EC(),t=hz(),n=gz(),r=function(){if(GP)return YP;GP=1;var e=xz(),t=Object.prototype.hasOwnProperty;return YP=function(n,r,i,o,a,l){var s=1&i,c=e(n),u=c.length;if(u!=e(r).length&&!s)return!1;for(var d=u;d--;){var f=c[d];if(!(s?f in r:t.call(r,f)))return!1}var h=l.get(n),p=l.get(r);if(h&&p)return h==r&&p==n;var g=!0;l.set(n,r),l.set(r,n);for(var v=s;++d<u;){var m=n[f=c[d]],b=r[f];if(o)var y=s?o(b,m,f,r,n,l):o(m,b,f,n,r,l);if(!(void 0===y?m===b||a(m,b,i,o,l):y)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var _=n.constructor,w=r.constructor;_==w||!("constructor"in n)||!("constructor"in r)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(g=!1)}return l.delete(n),l.delete(r),g},YP}(),i=Cz(),o=MS(),a=jS(),l=jM(),s="[object Arguments]",c="[object Array]",u="[object Object]",d=Object.prototype.hasOwnProperty;return oz=function(f,h,p,g,v,m){var b=o(f),y=o(h),_=b?c:i(f),w=y?c:i(h),x=(_=_==s?u:_)==u,k=(w=w==s?u:w)==u,C=_==w;if(C&&a(f)){if(!a(h))return!1;b=!0,x=!1}if(C&&!x)return m||(m=new e),b||l(f)?t(f,h,p,g,v,m):n(f,h,_,p,g,v,m);if(!(1&p)){var S=x&&d.call(f,"__wrapped__"),M=k&&d.call(h,"__wrapped__");if(S||M){var A=S?f.value():f,T=M?h.value():h;return m||(m=new e),v(A,T,p,g,m)}}return!!C&&(m||(m=new e),r(f,h,p,g,v,m))},oz}function Mz(){if(sz)return lz;sz=1;var e=Sz(),t=CS();return lz=function n(r,i,o,a,l){return r===i||(null==r||null==i||!t(r)&&!t(i)?r!=r&&i!=i:e(r,i,o,a,n,l))},lz}var Az=Pd(function(){if(uz)return cz;uz=1;var e=Mz();return cz=function(t,n){return e(t,n)}}()),Tz=L(),Lz=!0,Ez="default",Oz=function(e){var t=e.children,n=e.animate,r=void 0===n||n,i=e.config,o=void 0===i?"default":i,a=A((function(){var e=_T(o)?uw[o]:o;return{animate:r,config:e}}),[r,o]);return ln(Tz.Provider,{value:a,children:t})},Rz=function(){return T(Tz)},Pz=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?P(r,{},t):t},zz={position:"relative"},Dz=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=void 0===r||r,o=e.isInteractive,a=void 0===o||o,l=e.animate,s=e.motionConfig,c=C(null);return ln(QA,{theme:n,children:ln(Oz,{animate:l,config:s,children:ln(yT,{container:c,children:ln(Pz,{condition:i,wrapper:ln("div",{style:zz,ref:c}),children:[t,a&&ln(bT,{})]})})})})},Nz=function(e,t){return e.width===t.width&&e.height===t.height},Iz=function(e){var t=e.children,n=e.width,i=e.height,o=e.onResize,a=OT({width:n,height:i},e.debounceResize,{equalityFn:Nz})[0];return x((function(){null==o||o(a)}),[a,o]),ln(r,{children:t(a)})},Bz=function(e){var t=e.children,n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=void 0===o?0:o;return ln(LT,{defaultWidth:n,defaultHeight:r,children:function(e){var n=e.width,r=e.height;return ln(Iz,{width:n,height:r,onResize:i,debounceResize:a,children:t})}})};function Fz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jz(){return jz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jz.apply(null,arguments)}function Wz(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Hz=["id","colors"],Uz={linearGradient:function(e){var t=e.id,n=e.colors;return ln("linearGradient",jz({id:t,x1:0,x2:0,y1:0,y2:1},Wz(e,Hz),{children:n.map((function(e){var t=e.offset,n=e.color,r=e.opacity;return ln("stop",{offset:t+"%",stopColor:n,stopOpacity:void 0!==r?r:1},t)}))}))}},Vz="#000000",$z="#ffffff",qz=4,Yz=4,Gz=!1,Xz=E((function(e){var t=e.id,n=e.background,r=void 0===n?$z:n,i=e.color,o=void 0===i?Vz:i,a=e.size,l=void 0===a?qz:a,s=e.padding,c=void 0===s?Yz:s,u=e.stagger,d=void 0===u?Gz:u,f=l+c,h=l/2,p=c/2;return!0===d&&(f=2*l+2*c),ln("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[ln("rect",{width:f,height:f,fill:r}),ln("circle",{cx:p+h,cy:p+h,r:h,fill:o}),d&&ln("circle",{cx:1.5*c+l+h,cy:1.5*c+l+h,r:h,fill:o})]})})),Zz=function(e){return e*Math.PI/180},Kz=function(e){return 180*e/Math.PI},Jz=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},Qz={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},eD=5,tD=0,nD="#000000",rD="#ffffff",iD=2,oD=E((function(e){var t=e.id,n=e.spacing,r=void 0===n?eD:n,i=e.rotation,o=void 0===i?tD:i,a=e.background,l=void 0===a?nD:a,s=e.color,c=void 0===s?rD:s,u=e.lineWidth,d=void 0===u?iD:u,f=Math.round(o)%360,h=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var p,g=h,v=h;return 0===f?p="\n M 0 0 L "+g+" 0\n M 0 "+v+" L "+g+" "+v+"\n ":90===f?p="\n M 0 0 L 0 "+v+"\n M "+g+" 0 L "+g+" "+v+"\n ":(g=Math.abs(h/Math.sin(Zz(f))),v=h/Math.sin(Zz(90-f)),p=f>0?"\n M 0 "+-v+" L "+2*g+" "+v+"\n M "+-g+" "+-v+" L "+g+" "+v+"\n M "+-g+" 0 L "+g+" "+2*v+"\n ":"\n M "+-g+" "+v+" L "+g+" "+-v+"\n M "+-g+" "+2*v+" L "+2*g+" "+-v+"\n M 0 "+2*v+" L "+2*g+" 0\n "),ln("pattern",{id:t,width:g,height:v,patternUnits:"userSpaceOnUse",children:[ln("rect",{width:g,height:v,fill:l,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),ln("path",{d:p,strokeWidth:d,stroke:c,strokeLinecap:"square"})]})})),aD="#000000",lD="#ffffff",sD=4,cD=4,uD=!1,dD=E((function(e){var t=e.id,n=e.color,r=void 0===n?aD:n,i=e.background,o=void 0===i?lD:i,a=e.size,l=void 0===a?sD:a,s=e.padding,c=void 0===s?cD:s,u=e.stagger,d=void 0===u?uD:u,f=l+c,h=c/2;return!0===d&&(f=2*l+2*c),ln("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[ln("rect",{width:f,height:f,fill:o}),ln("rect",{x:h,y:h,width:l,height:l,fill:r}),d&&ln("rect",{x:1.5*c+l,y:1.5*c+l,width:l,height:l,fill:r})]})})),fD={patternDots:Xz,patternLines:oD,patternSquares:dD},hD=["type"],pD=jz({},Uz,fD),gD=E((function(e){var t=e.defs;return!t||t.length<1?null:ln("defs",{"aria-hidden":!0,children:t.map((function(e){var t=e.type,n=Wz(e,hD);return pD[t]?R(pD[t],jz({key:n.id},n)):null}))})})),vD=S((function(e,t){var n=e.width,r=e.height,i=e.margin,o=e.defs,a=e.children,l=e.role,s=e.ariaLabel,c=e.ariaLabelledBy,u=e.ariaDescribedBy,d=e.isFocusable,f=eT();return ln("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:r,role:l,"aria-label":s,"aria-labelledby":c,"aria-describedby":u,focusable:d,tabIndex:d?0:void 0,ref:t,children:[ln(gD,{defs:o}),ln("rect",{width:n,height:r,fill:f.background}),ln("g",{transform:"translate("+i.left+","+i.top+")",children:a})]})})),mD=E((function(e){var t=e.size,n=e.color,r=e.borderWidth;return ln("circle",{r:t/2,fill:n,stroke:e.borderColor,strokeWidth:r,style:{pointerEvents:"none"}})})),bD=E((function(e){var t=e.x,n=e.y,r=e.symbol,i=void 0===r?mD:r,o=e.size,a=e.datum,l=e.color,s=e.borderWidth,c=e.borderColor,u=e.label,d=e.labelTextAnchor,f=void 0===d?"middle":d,h=e.labelYOffset,p=void 0===h?-12:h,g=e.ariaLabel,v=e.ariaLabelledBy,m=e.ariaDescribedBy,b=e.ariaHidden,y=e.ariaDisabled,_=e.isFocusable,w=void 0!==_&&_,x=e.tabIndex,k=void 0===x?0:x,C=e.onFocus,S=e.onBlur,A=e.testId,T=eT(),L=Rz(),E=L.animate,O=tx({transform:"translate("+t+", "+n+")",config:L.config,immediate:!E}),P=M((function(e){null==C||C(a,e)}),[C,a]),z=M((function(e){null==S||S(a,e)}),[S,a]);return ln(fC.g,{transform:O.transform,style:{pointerEvents:"none"},focusable:w,tabIndex:w?k:void 0,"aria-label":g,"aria-labelledby":v,"aria-describedby":m,"aria-disabled":y,"aria-hidden":b,onFocus:w&&C?P:void 0,onBlur:w&&S?z:void 0,"data-testid":A,children:[R(i,{size:o,color:l,datum:a,borderWidth:s,borderColor:c}),u&&ln("text",{textAnchor:f,y:p,style:qA(T.dots.text),children:u})]})})),yD=E((function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,o=e.value,a=e.lineStyle,l=e.textStyle,s=e.legend,c=e.legendNode,u=e.legendPosition,d=void 0===u?"top-right":u,f=e.legendOffsetX,h=void 0===f?14:f,p=e.legendOffsetY,g=void 0===p?14:p,v=e.legendOrientation,m=void 0===v?"horizontal":v,b=eT(),y=0,_=0,w=0,x=0;if("y"===r?(w=i(o),_=t):(y=i(o),x=n),s&&!c){var k=function(e){var t=e.width,n=e.height,r=e.position,i=e.offsetX,o=e.offsetY,a=e.orientation,l=0,s=0,c="vertical"===a?-90:0,u="start";if("x"===e.axis)switch(r){case"top-left":l=-i,s=o,u="end";break;case"top":s=-o,u="horizontal"===a?"middle":"start";break;case"top-right":l=i,s=o,u="horizontal"===a?"start":"end";break;case"right":l=i,s=n/2,u="horizontal"===a?"start":"middle";break;case"bottom-right":l=i,s=n-o,u="start";break;case"bottom":s=n+o,u="horizontal"===a?"middle":"end";break;case"bottom-left":s=n-o,l=-i,u="horizontal"===a?"end":"start";break;case"left":l=-i,s=n/2,u="horizontal"===a?"end":"middle"}else switch(r){case"top-left":l=i,s=-o,u="start";break;case"top":l=t/2,s=-o,u="horizontal"===a?"middle":"start";break;case"top-right":l=t-i,s=-o,u="horizontal"===a?"end":"start";break;case"right":l=t+i,u="horizontal"===a?"start":"middle";break;case"bottom-right":l=t-i,s=o,u="end";break;case"bottom":l=t/2,s=o,u="horizontal"===a?"middle":"end";break;case"bottom-left":l=i,s=o,u="horizontal"===a?"start":"end";break;case"left":l=-i,u="horizontal"===a?"end":"middle"}return{x:l,y:s,rotation:c,textAnchor:u}}({axis:r,width:t,height:n,position:d,offsetX:h,offsetY:g,orientation:m});c=ln("text",{transform:"translate("+k.x+", "+k.y+") rotate("+k.rotation+")",textAnchor:k.textAnchor,dominantBaseline:"central",style:l,children:s})}return ln("g",{transform:"translate("+y+", "+w+")",children:[ln("line",{x1:0,x2:_,y1:0,y2:x,stroke:b.markers.lineColor,strokeWidth:b.markers.lineStrokeWidth,style:a}),c]})})),_D=E((function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,o=e.yScale;return t&&0!==t.length?t.map((function(e,t){return ln(yD,jz({},e,{width:n,height:r,scale:"y"===e.axis?o:i}),t)})):null})),wD=function(e){var t=Rz(),n=t.animate,r=t.config,i=function(e){var t=C();return x((function(){t.current=e}),[e]),t.current}(e),o=A((function(){return va(i,e)}),[i,e]),a=tx({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return sx(a,o)};L(void 0);var xD={basis:qu,basisClosed:function(e){return new Yu(e)},basisOpen:function(e){return new Gu(e)},bundle:Zu,cardinal:Qu,cardinalClosed:td,cardinalOpen:rd,catmullRom:ad,catmullRomClosed:sd,catmullRomOpen:ud,linear:Du,linearClosed:function(e){return new dd(e)},monotoneX:function(e){return new vd(e)},monotoneY:function(e){return new md(e)},natural:function(e){return new yd(e)},step:function(e){return new wd(e,.5)},stepAfter:function(e){return new wd(e,1)},stepBefore:function(e){return new wd(e,0)}},kD=Object.keys(xD);kD.filter((function(e){return e.endsWith("Closed")})),sL(kD,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),sL(kD,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var CD=function(e){if(!xD[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return xD[e]};NE(wL),NE(kL),NE(SL),NE(AL),NE(LL),NE(OL),NE(PL),NE(DL),NE(IL),NE(cE),NE(dE),NE(hE),NE(yE),NE(gE),NE(mE),NE(FL),NE(WL),NE(UL),NE($L),NE(YL),NE(XL),NE(KL),NE(QL),NE(tE),NE(rE),NE(oE),NE(lE),NE(wL),NE(kL),NE(SL),NE(AL),NE(LL),NE(OL),NE(PL),NE(DL),NE(IL),NE(cE),NE(dE),NE(hE),NE(yE),NE(gE),NE(mE),NE(FL),NE(WL),NE(UL),NE($L),NE(YL),NE(XL),NE(KL),NE(QL),NE(tE),NE(rE),NE(oE),NE(lE),Ga(bL);var SD={top:0,right:0,bottom:0,left:0},MD=function(e,t,n){return void 0===n&&(n={}),A((function(){var r=jz({},SD,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}}),[e,t,n])},AD=function(){var e=C(null),t=w({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=w((function(){return"undefined"==typeof ResizeObserver?null:new ResizeObserver((function(e){var t=e[0];return r(t.contentRect)}))}))[0];return x((function(){return e.current&&null!==i&&i.observe(e.current),function(){null!==i&&i.disconnect()}}),[i]),[e,n]},TD=function(e){return"function"==typeof e?e:"string"==typeof e?0===e.indexOf("time:")?AO(e.slice("5")):YE(e):function(e){return""+e}},LD=function(e){return A((function(){return TD(e)}),[e])},ED=function(e){return IE(e)?e:function(t){return jA(t,e)}},OD=function(e){return A((function(){return ED(e)}),[e])},RD=function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))},PD=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},zD=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,o=r.clientY,a=e.getBoundingClientRect(),l=(n=void 0!==e.getBBox?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===a.width?1:n.width/a.width;return[(i-a.left)*l,(o-a.top)*l]},DD=Object.keys(Uz),ND=Object.keys(fD),ID=function(e,t,n,r){var i=void 0===r?{}:r,o=i.dataKey,a=i.colorKey,l=void 0===a?"color":a,s=i.targetKey,c=void 0===s?"fill":s,u=[],d={};return e.length&&t.length&&(u=[].concat(e),t.forEach((function(t){for(var r,i=function(){var n=r.value,i=n.id;if(function(e,t,n){if("*"===e)return!0;if(IE(e))return e(t);if(gP(e)){var r=n?jA(t,n):t;return Az(fz(r,Object.keys(e)),e)}return!1}(n.match,t,o)){var a=e.find((function(e){return e.id===i}));if(a)if(ND.includes(a.type))if("inherit"===a.background||"inherit"===a.color){var s=jA(t,l),f=a.background,h=a.color,p=i;"inherit"===a.background&&(p=p+".bg."+s,f=s),"inherit"===a.color&&(p=p+".fg."+s,h=s),UA(t,c,"url(#"+p+")"),d[p]||(u.push(jz({},a,{id:p,background:f,color:h})),d[p]=1)}else UA(t,c,"url(#"+i+")");else if(DD.includes(a.type))if(a.colors.map((function(e){return e.color})).includes("inherit")){var g=jA(t,l),v=i,m=jz({},a,{colors:a.colors.map((function(e,t){return"inherit"!==e.color?e:(v=v+"."+t+"."+g,jz({},e,{color:"inherit"===e.color?g:e.color}))}))});m.id=v,UA(t,c,"url(#"+v+")"),d[v]||(u.push(m),d[v]=1)}else UA(t,c,"url(#"+i+")");return 1}},a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Fz(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fz(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(r=a()).done&&!i(););}))),u};function BD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=0,r=t;n<r.length;n++){var i=r[n];"function"==typeof i?i(e):null!=i&&(i.current=e)}}}var FD=function(e,t){e.font=(t.fontWeight?t.fontWeight+" ":"")+t.fontSize+"px "+t.fontFamily},jD=function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=0),t.outlineWidth>0&&(e.strokeStyle=t.outlineColor,e.lineWidth=2*t.outlineWidth,e.lineJoin="round",e.strokeText(n,r,i)),e.fillStyle=t.fill,e.fillText(n,r,i)};function WD(){return WD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WD.apply(null,arguments)}function HD(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var UD,VD,$D,qD,YD,GD,XD,ZD,KD=["style","children"],JD=["outlineWidth","outlineColor","outlineOpacity"],QD=function(e){var t=e.style,n=e.children,i=HD(e,KD),o=t.outlineWidth,a=t.outlineColor,l=t.outlineOpacity,s=HD(t,JD);return ln(r,{children:[o>0&&ln(fC.text,WD({},i,{style:WD({},s,{strokeWidth:2*o,stroke:a,strokeOpacity:l,strokeLinejoin:"round"}),children:n})),ln(fC.text,WD({},i,{style:s,children:n}))]})};function eN(){if(qD)return $D;qD=1;var e=kz(),t=VD?UD:(VD=1,UD=function(){}),n=pz(),r=e&&1/n(new e([,-0]))[1]==1/0?function(t){return new e(t)}:t;return $D=r}function tN(){if(GD)return YD;GD=1;var e=nL(),t=iL(),n=oL(),r=aL(),i=eN(),o=pz();return YD=function(a,l,s){var c=-1,u=t,d=a.length,f=!0,h=[],p=h;if(s)f=!1,u=n;else if(d>=200){var g=l?null:i(a);if(g)return o(g);f=!1,u=r,p=new e}else p=l?[]:h;e:for(;++c<d;){var v=a[c],m=l?l(v):v;if(v=s||0!==v?v:0,f&&m==m){for(var b=p.length;b--;)if(p[b]===m)continue e;l&&p.push(m),h.push(v)}else u(p,m,s)||(p!==h&&p.push(m),h.push(v))}return h},YD}var nN,rN,iN,oN,aN,lN,sN,cN,uN,dN,fN,hN,pN,gN,vN,mN,bN,yN,_N,wN,xN,kN,CN=function(){if(ZD)return XD;ZD=1;var e=tN();return XD=function(t){return t&&t.length?e(t):[]},XD}(),SN=Pd(CN);function MN(){if(oN)return iN;oN=1;var e=_C();return iN=function(t){return t==t&&!e(t)}}function AN(){if(cN)return sN;return cN=1,sN=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},sN}function TN(){if(dN)return uN;dN=1;var e=function(){if(rN)return nN;rN=1;var e=EC(),t=Mz();return nN=function(n,r,i,o){var a=i.length,l=a,s=!o;if(null==n)return!l;for(n=Object(n);a--;){var c=i[a];if(s&&c[2]?c[1]!==n[c[0]]:!(c[0]in n))return!1}for(;++a<l;){var u=(c=i[a])[0],d=n[u],f=c[1];if(s&&c[2]){if(void 0===d&&!(u in n))return!1}else{var h=new e;if(o)var p=o(d,f,u,n,r,h);if(!(void 0===p?t(f,d,3,o,h):p))return!1}}return!0},nN}(),t=function(){if(lN)return aN;lN=1;var e=MN(),t=wz();return aN=function(n){for(var r=t(n),i=r.length;i--;){var o=r[i],a=n[o];r[i]=[o,a,e(a)]}return r},aN}(),n=AN();return uN=function(r){var i=t(r);return 1==i.length&&i[0][2]?n(i[0][0],i[0][1]):function(t){return t===r||e(t,r,i)}},uN}function LN(){if(yN)return bN;yN=1;var e=(gN||(gN=1,pN=function(e){return function(t){return null==t?void 0:t[e]}}),pN),t=function(){if(mN)return vN;mN=1;var e=zA();return vN=function(t){return function(n){return e(n,t)}},vN}(),n=TA(),r=PA();return bN=function(i){return n(i)?e(r(i)):t(i)}}function EN(){if(wN)return _N;wN=1;var e=TN(),t=function(){if(hN)return fN;hN=1;var e=Mz(),t=DA(),n=vP(),r=TA(),i=MN(),o=AN(),a=PA();return fN=function(l,s){return r(l)&&i(s)?o(a(l),s):function(r){var i=t(r,l);return void 0===i&&i===s?n(r,l):e(s,i,3)}},fN}(),n=XM(),r=MS(),i=LN();return _N=function(o){return"function"==typeof o?o:null==o?n:"object"==typeof o?r(o)?t(o[0],o[1]):e(o):i(o)}}var ON,RN,PN,zN,DN,NN,IN,BN,FN,jN,WN,HN,UN,VN,$N,qN,YN,GN,XN=function(){if(kN)return xN;kN=1;var e=EN(),t=tN();return xN=function(n,r){return n&&n.length?t(n,e(r,2)):[]},xN}(),ZN=Pd(XN);function KN(){if(NN)return DN;NN=1;var e=function(){if(RN)return ON;RN=1;var e=zC(),t=wz();return ON=function(n,r){return n&&e(n,r,t)},ON}(),t=function(){if(zN)return PN;zN=1;var e=TS();return PN=function(t,n){return function(r,i){if(null==r)return r;if(!e(r))return t(r,i);for(var o=r.length,a=n?o:-1,l=Object(r);(n?a--:++a<o)&&!1!==i(l[a],a,l););return r}},PN}(),n=t(e);return DN=n}function JN(){if(VN)return UN;VN=1;var e=function(){if(HN)return WN;HN=1;var e=AA();return WN=function(t,n){if(t!==n){var r=void 0!==t,i=null===t,o=t==t,a=e(t),l=void 0!==n,s=null===n,c=n==n,u=e(n);if(!s&&!u&&!a&&t>n||a&&l&&c&&!s&&!u||i&&l&&c||!r&&c||!o)return 1;if(!i&&!a&&!u&&t<n||u&&r&&o&&!i&&!a||s&&r&&o||!l&&o||!c)return-1}return 0}}();return UN=function(t,n,r){for(var i=-1,o=t.criteria,a=n.criteria,l=o.length,s=r.length;++i<l;){var c=e(o[i],a[i]);if(c)return i>=s?c:c*("desc"==r[i]?-1:1)}return t.index-n.index},UN}function QN(){if(qN)return $N;qN=1;var e=EA(),t=zA(),n=EN(),r=function(){if(BN)return IN;BN=1;var e=KN(),t=TS();return IN=function(n,r){var i=-1,o=t(n)?Array(n.length):[];return e(n,(function(e,t,n){o[++i]=r(e,t,n)})),o},IN}(),i=(jN||(jN=1,FN=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}),FN),o=HS(),a=JN(),l=XM(),s=MS();return $N=function(c,u,d){u=u.length?e(u,(function(e){return s(e)?function(n){return t(n,1===e.length?e[0]:e)}:e})):[l];var f=-1;u=e(u,o(n));var h=r(c,(function(t,n,r){return{criteria:e(u,(function(e){return e(t)})),index:++f,value:t}}));return i(h,(function(e,t){return a(e,t,d)}))},$N}var eI,tI,nI,rI,iI=Pd(function(){if(GN)return YN;GN=1;var e=yP(),t=QN(),n=QM(),r=eA(),i=n((function(n,i){if(null==n)return[];var o=i.length;return o>1&&r(n,i[0],i[1])?i=[]:o>2&&r(i[0],i[1],i[2])&&(i=[i[0]]),t(n,e(i,1),[])}));return YN=i}());var oI=Pd(function(){if(rI)return nI;rI=1;var e=function(){if(tI)return eI;tI=1;var e=yC(),t=CS();return eI=function(n){return t(n)&&"[object Date]"==e(n)}}(),t=HS(),n=FM(),r=n&&n.isDate,i=r?t(r):e;return nI=i}()),aI=new Date,lI=new Date;function sI(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,l=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return l;do{l.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return l},i.filter=function(n){return sI((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return aI.setTime(+t),lI.setTime(+r),e(aI),e(lI),Math.floor(n(aI,lI))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var cI=sI((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));cI.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?sI((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):cI:null},cI.range;var uI=1e3,dI=6e4,fI=36e5,hI=6048e5,pI=sI((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*uI)}),(function(e,t){return(t-e)/uI}),(function(e){return e.getUTCSeconds()}));pI.range;var gI=sI((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*uI)}),(function(e,t){e.setTime(+e+t*dI)}),(function(e,t){return(t-e)/dI}),(function(e){return e.getMinutes()}));gI.range;var vI=sI((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*uI-e.getMinutes()*dI)}),(function(e,t){e.setTime(+e+t*fI)}),(function(e,t){return(t-e)/fI}),(function(e){return e.getHours()}));function mI(e){return sI((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*dI)/hI}))}vI.range;var bI=mI(0),yI=mI(1),_I=mI(2),wI=mI(3),xI=mI(4),kI=mI(5),CI=mI(6);bI.range,yI.range,_I.range,wI.range,xI.range,kI.range,CI.range;var SI=sI((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));SI.range;var MI=sI((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));MI.every=function(e){return isFinite(e=Math.floor(e))&&e>0?sI((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},MI.range;var AI=sI((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*dI)}),(function(e,t){return(t-e)/dI}),(function(e){return e.getUTCMinutes()}));AI.range;var TI=sI((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*fI)}),(function(e,t){return(t-e)/fI}),(function(e){return e.getUTCHours()}));function LI(e){return sI((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/hI}))}TI.range;var EI=LI(0),OI=LI(1),RI=LI(2),PI=LI(3),zI=LI(4),DI=LI(5),NI=LI(6);EI.range,OI.range,RI.range,PI.range,zI.range,DI.range,NI.range;var II=sI((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));II.range;var BI=sI((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function FI(){return FI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FI.apply(null,arguments)}BI.every=function(e){return isFinite(e=Math.floor(e))&&e>0?sI((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},BI.range;var jI=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],WI={millisecond:[],second:jI.slice(0,1),minute:jI.slice(0,2),hour:jI.slice(0,3),day:jI.slice(0,4),month:jI.slice(0,5),year:jI.slice(0,6)},HI=function(e){var t=e.format,n=void 0===t?"native":t,r=e.precision,i=void 0===r?"millisecond":r,o=e.useUTC,a=void 0===o||o,l=function(e){return function(t){return WI[e].forEach((function(e){e(t)})),t}}(i);return function(e){if(void 0===e)return e;if("native"===n||e instanceof Date)return l(e);var t=a?LO(n):TO(n);return l(t(e))}},UI=0,VI="auto",$I=!1,qI=!1,YI=!1,GI=!0,XI=!1,ZI=function(e,t){void 0===t&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},KI=!1,JI=function(e){var t=e;return t.type="band",t},QI="native",eB="millisecond",tB="auto",nB="auto",rB=!0,iB=!1,oB=function(e,t,n){var r,i,o=e.format,a=void 0===o?QI:o,l=e.precision,s=void 0===l?eB:l,c=e.min,u=void 0===c?tB:c,d=e.max,f=void 0===d?nB:d,h=e.useUTC,p=void 0===h?rB:h,g=e.nice,v=void 0===g?iB:g,m=HI({format:a,precision:s,useUTC:p});r="auto"===u?m(t.min):"native"!==a?m(u):u,i="auto"===f?m(t.max):"native"!==a?m(f):f;var b=p?tu():function(){return $a.apply(eu(Ms,As,ws,ys,is,es,Jl,Zl,Xl,Rs).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}();b.range([0,n]),r&&i&&b.domain([r,i]),!0===v?b.nice():"object"!=typeof v&&"number"!=typeof v||b.nice(v);var y=b;return y.type="time",y.useUTC=p,y},aB=10,lB="auto",sB="auto",cB=!1,uB=!1,dB=!0,fB=function(e,t,n,r){var i,o=e.base,a=void 0===o?aB:o,l=e.min,s=void 0===l?lB:l,c=e.max,u=void 0===c?sB:c,d=e.round,f=void 0===d?cB:d,h=e.reverse,p=void 0===h?uB:h,g=e.nice,v=void 0===g?dB:g;if(t.all.some((function(e){return 0===e})))throw new Error("a log scale domain must not include or cross zero");var m,b,y=!1;if(t.all.filter((function(e){return null!=e})).forEach((function(e){y||(void 0===i?i=Math.sign(e):Math.sign(e)!==i&&(y=!0))})),y)throw new Error("a log scale domain must be strictly-positive or strictly-negative");m="auto"===s?t.min:s,b="auto"===u?t.max:u;var _=Pl().base(a),w="x"===r?[0,n]:[n,0];!0===f?_.rangeRound(w):_.range(w),!0===p?_.domain([b,m]):_.domain([m,b]),!0===v?_.nice():"number"==typeof v&&_.nice(v);var x=_;return x.type="log",x},hB=1,pB="auto",gB="auto",vB=!1,mB=!1,bB=!0,yB=function(e,t){return e===t},_B=function(e,t){return e.getTime()===t.getTime()};function wB(e,t,n,r){switch(e.type){case"linear":return function(e,t,n,r){var i,o,a,l,s=e.min,c=void 0===s?UI:s,u=e.max,d=void 0===u?VI:u,f=e.stacked,h=void 0===f?$I:f,p=e.reverse,g=void 0===p?qI:p,v=e.clamp,m=void 0===v?YI:v,b=e.nice,y=void 0===b?GI:b,_=e.round,w=void 0===_?XI:_;i="auto"===c?!0===h?null!=(o=t.minStacked)?o:0:t.min:c,a="auto"===d?!0===h?null!=(l=t.maxStacked)?l:0:t.max:d;var x=Cl().range("x"===r?[0,n]:[n,0]).interpolate(w?ba:fa).domain(g?[a,i]:[i,a]).clamp(m);return!0===y?x.nice():"number"==typeof y&&x.nice(y),ZI(x,h)}(e,t,n,r);case"point":return function(e,t,n){var r=Ka().range([0,n]).domain(t.all);return r.type="point",r}(0,t,n);case"band":return function(e,t,n,r){var i=e.round,o=void 0===i?KI:i,a=Xa().range("x"===r?[0,n]:[n,0]).domain(t.all).round(o);return JI(a)}(e,t,n,r);case"time":return oB(e,t,n);case"log":return fB(e,t,n,r);case"symlog":return function(e,t,n,r){var i,o,a=e.constant,l=void 0===a?hB:a,s=e.min,c=void 0===s?pB:s,u=e.max,d=void 0===u?gB:u,f=e.round,h=void 0===f?vB:f,p=e.reverse,g=void 0===p?mB:p,v=e.nice,m=void 0===v?bB:v;i="auto"===c?t.min:c,o="auto"===d?t.max:d;var b=Nl().constant(l),y="x"===r?[0,n]:[n,0];!0===h?b.rangeRound(y):b.range(y),!0===g?b.domain([o,i]):b.domain([i,o]),!0===m?b.nice():"number"==typeof m&&b.nice(m);var _=b;return _.type="symlog",_}(e,t,n,r);default:throw new Error("invalid scale spec")}}var xB=function(e,t,n){var r;if("stacked"in n&&n.stacked){var i=e.data["x"===t?"xStacked":"yStacked"];return null==i?null:n(i)}return null!=(r=n(e.data[t]))?r:null},kB=function(e,t,n,r,i){var o=e.map((function(e){return function(e){return FI({},e,{data:e.data.map((function(e){return{data:FI({},e)}}))})}(e)})),a=CB(o,t,n);"stacked"in t&&!0===t.stacked&&AB(a,o),"stacked"in n&&!0===n.stacked&&TB(a,o);var l=wB(t,a.x,r,"x"),s=wB(n,a.y,i,"y"),c=o.map((function(e){return FI({},e,{data:e.data.map((function(e){return FI({},e,{position:{x:xB(e,"x",l),y:xB(e,"y",s)}})}))})}));return FI({},a,{series:c,xScale:l,yScale:s})},CB=function(e,t,n){return{x:SB(e,"x",t),y:SB(e,"y",n)}},SB=function(e,t,n,r){var i={},o=i.getValue,a=void 0===o?function(e){return e.data[t]}:o,l=i.setValue,s=void 0===l?function(e,n){e.data[t]=n}:l;if("linear"===n.type)e.forEach((function(e){e.data.forEach((function(e){var t=a(e);t&&s(e,parseFloat(String(t)))}))}));else if("time"===n.type&&"native"!==n.format){var c=HI(n);e.forEach((function(e){e.data.forEach((function(e){var t=a(e);t&&s(e,c(t))}))}))}var u=[];switch(e.forEach((function(e){e.data.forEach((function(e){u.push(a(e))}))})),n.type){case"linear":var d=iI(SN(u).filter((function(e){return null!==e})),(function(e){return e}));return{all:d,min:Math.min.apply(Math,d),max:Math.max.apply(Math,d)};case"time":var f=ZN(u,(function(e){return e.getTime()})).slice(0).sort((function(e,t){return t.getTime()-e.getTime()})).reverse();return{all:f,min:f[0],max:NE(f)};default:var h=SN(u);return{all:h,min:h[0],max:NE(h)}}},MB=function(e,t,n){var r=function(e){return"x"===e?"y":"x"}(e),i=[];t[r].all.forEach((function(t){var o=oI(t)?_B:yB,a=[];n.forEach((function(n){var l=n.data.find((function(e){return o(e.data[r],t)})),s=null,c=null;if(void 0!==l){if(null!==(s=l.data[e])){var u=NE(a);void 0===u?c=s:null!==u&&(c=u+s)}l.data["x"===e?"xStacked":"yStacked"]=c}a.push(c),null!==c&&i.push(c)}))})),t[e].minStacked=Math.min.apply(Math,i),t[e].maxStacked=Math.max.apply(Math,i)},AB=function(e,t){return MB("x",e,t)},TB=function(e,t){return MB("y",e,t)},LB=function(e){var t=e.bandwidth();if(0===t)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(t){var r;return(null!=(r=e(t))?r:0)+n}},EB={millisecond:[cI,cI],second:[pI,pI],minute:[gI,AI],hour:[vI,TI],day:[sI((function(e){return e.setHours(0,0,0,0)}),(function(e,t){return e.setDate(e.getDate()+t)}),(function(e,t){return(t.getTime()-e.getTime())/864e5}),(function(e){return Math.floor(e.getTime()/864e5)})),sI((function(e){return e.setUTCHours(0,0,0,0)}),(function(e,t){return e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t.getTime()-e.getTime())/864e5}),(function(e){return Math.floor(e.getTime()/864e5)}))],week:[bI,EI],sunday:[bI,EI],monday:[yI,OI],tuesday:[_I,RI],wednesday:[wI,PI],thursday:[xI,zI],friday:[kI,DI],saturday:[CI,NI],month:[SI,II],year:[MI,BI]},OB=Object.keys(EB),RB=new RegExp("^every\\s*(\\d+)?\\s*("+OB.join("|")+")s?$","i"),PB=function(e,t){if(Array.isArray(t))return t;if("string"==typeof t&&"useUTC"in e){var n=t.match(RB);if(n){var r=n[1],i=n[2],o=EB[i][e.useUTC?1:0];if("day"===i){var a,l,s=e.domain(),c=s[0],u=s[1],d=new Date(u);return d.setDate(d.getDate()+1),null!=(a=null==(l=o.every(Number(null!=r?r:1)))?void 0:l.range(c,d))?a:[]}if(void 0===r)return e.ticks(o);var f=o.every(Number(r));if(f)return e.ticks(f)}throw new Error("Invalid tickValues: "+t)}if("ticks"in e){if(void 0===t)return e.ticks();if("number"==typeof(h=t)&&isFinite(h)&&Math.floor(h)===h)return e.ticks(t)}var h;return e.domain()};function zB(){return zB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zB.apply(null,arguments)}var DB=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,o=e.tickValues,a=e.tickSize,l=e.tickPadding,s=e.tickRotation,c=e.truncateTickAt,u=e.engine,d=void 0===u?"svg":u,f=PB(r,o),h=Qz[d],p="bandwidth"in r?LB(r):r,g={lineX:0,lineY:0},v={textX:0,textY:0},m="object"==typeof document&&"rtl"===document.dir,b=h.align.center,y=h.baseline.center;return"x"===n?(t=function(e){var t;return{x:null!=(t=p(e))?t:0,y:0}},g.lineY=a*("after"===i?1:-1),v.textY=(a+l)*("after"===i?1:-1),y="after"===i?h.baseline.top:h.baseline.bottom,0===s?b=h.align.center:"after"===i&&s<0||"before"===i&&s>0?(b=h.align[m?"left":"right"],y=h.baseline.center):("after"===i&&s>0||"before"===i&&s<0)&&(b=h.align[m?"right":"left"],y=h.baseline.center)):(t=function(e){var t;return{x:0,y:null!=(t=p(e))?t:0}},g.lineX=a*("after"===i?1:-1),v.textX=(a+l)*("after"===i?1:-1),b="after"===i?h.align.left:h.align.right),{ticks:f.map((function(e){var n="string"==typeof e?function(e){var t=String(e).length;return c&&c>0&&t>c?""+String(e).slice(0,c).concat("..."):""+e}(e):e;return zB({key:e instanceof Date?""+e.valueOf():""+e,value:n},t(e),g,v)})),textAlign:b,textBaseline:y}},NB=function(e,t){if(void 0===e||"function"==typeof e)return e;if("time"===t.type){var n=AO(e);return function(e){return n(e instanceof Date?e:new Date(e))}}return YE(e)},IB=function(e){var t,n=e.width,r=e.height,i=e.scale,o=e.axis,a=e.values,l=(t=a,(Array.isArray(t)?a:void 0)||PB(i,a)),s="bandwidth"in i?LB(i):i,c="x"===o?l.map((function(e){var t,n;return{key:e instanceof Date?""+e.valueOf():""+e,x1:null!=(t=s(e))?t:0,x2:null!=(n=s(e))?n:0,y1:0,y2:r}})):l.map((function(e){var t,r;return{key:e instanceof Date?""+e.valueOf():""+e,x1:0,x2:n,y1:null!=(t=s(e))?t:0,y2:null!=(r=s(e))?r:0}}));return c},BB=E((function(e){var t,n=e.value,r=e.format,i=e.lineX,o=e.lineY,a=e.onClick,l=e.textBaseline,s=e.textAnchor,c=e.theme,u=e.animatedProps,d=null!=(t=null==r?void 0:r(n))?t:n,f=A((function(){var e={opacity:u.opacity};return a?{style:zB({},e,{cursor:"pointer"}),onClick:function(e){return a(e,d)}}:{style:e}}),[u.opacity,a,d]);return ln(fC.g,zB({transform:u.transform},f,{children:[ln("line",{x1:0,x2:i,y1:0,y2:o,style:c.line}),ln(QD,{dominantBaseline:l,textAnchor:s,transform:u.textTransform,style:c.text,children:""+d})]}))})),FB={tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:0},jB=E((function(e){var t=e.axis,n=e.scale,i=e.x,o=void 0===i?0:i,a=e.y,l=void 0===a?0:a,s=e.length,c=e.ticksPosition,u=e.tickValues,d=e.tickSize,f=void 0===d?FB.tickSize:d,h=e.tickPadding,p=void 0===h?FB.tickPadding:h,g=e.tickRotation,v=void 0===g?FB.tickRotation:g,m=e.format,b=e.renderTick,y=void 0===b?BB:b,w=e.truncateTickAt,x=e.legend,k=e.legendPosition,C=void 0===k?FB.legendPosition:k,S=e.legendOffset,T=void 0===S?FB.legendOffset:S,L=e.style,E=e.onClick,O=e.ariaHidden,R=function(e,t){return A((function(){return XA(e,t)}),[e,t])}(eT().axis,L),P=A((function(){return NB(m,n)}),[m,n]),z=DB({axis:t,scale:n,ticksPosition:c,tickValues:u,tickSize:f,tickPadding:p,tickRotation:v,truncateTickAt:w}),D=z.ticks,N=z.textAlign,I=z.textBaseline,B=null;if(void 0!==x){var F,j=0,W=0,H=0;"y"===t?(H=-90,j=T,"start"===C?(F="start",W=s):"middle"===C?(F="middle",W=s/2):"end"===C&&(F="end")):(W=T,"start"===C?F="start":"middle"===C?(F="middle",j=s/2):"end"===C&&(F="end",j=s)),B=ln(r,{children:ln(QD,{transform:"translate("+j+", "+W+") rotate("+H+")",textAnchor:F,style:zB({},R.legend.text,{dominantBaseline:"central"}),children:x})})}var U=Rz(),V=U.animate,$=U.config,q=tx({transform:"translate("+o+","+l+")",lineX2:"x"===t?s:0,lineY2:"x"===t?0:s,config:$,immediate:!V}),Y=M((function(e){return{opacity:1,transform:"translate("+e.x+","+e.y+")",textTransform:"translate("+e.textX+","+e.textY+") rotate("+v+")"}}),[v]),G=M((function(e){return{opacity:0,transform:"translate("+e.x+","+e.y+")",textTransform:"translate("+e.textX+","+e.textY+") rotate("+v+")"}}),[v]),X=nx(D,{keys:function(e){return e.key},initial:Y,from:G,enter:Y,update:Y,leave:{opacity:0},config:$,immediate:!V});return ln(fC.g,{transform:q.transform,"aria-hidden":O,children:[X((function(e,t,n,r){return _.createElement(y,zB({tickIndex:r,format:P,rotate:v,textBaseline:I,textAnchor:N,truncateTickAt:w,animatedProps:e,theme:R.ticks},t,E?{onClick:E}:{}))})),ln(fC.line,{style:R.domain.line,x1:0,x2:q.lineX2,y1:0,y2:q.lineY2}),B]})})),WB=["top","right","bottom","left"],HB=E((function(e){var t=e.xScale,n=e.yScale,i=e.width,o=e.height,a={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return ln(r,{children:WB.map((function(e){var r=a[e];if(!r)return null;var l="top"===e||"bottom"===e;return ln(jB,zB({},r,{axis:l?"x":"y",x:"right"===e?i:0,y:"bottom"===e?o:0,scale:l?t:n,length:l?i:o,ticksPosition:"top"===e||"left"===e?"before":"after",truncateTickAt:r.truncateTickAt}),e)}))})})),UB=E((function(e){var t=e.animatedProps,n=eT();return ln(fC.line,zB({},t,n.grid.line))})),VB=E((function(e){var t=e.lines,n=Rz(),r=n.animate,i=nx(t,{keys:function(e){return e.key},initial:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},from:function(e){return{opacity:0,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},enter:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},update:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},leave:{opacity:0},config:n.config,immediate:!r});return ln("g",{children:i((function(e,t){return R(UB,zB({},t,{key:t.key,animatedProps:e}))}))})})),$B=E((function(e){var t=e.width,n=e.height,i=e.xScale,o=e.yScale,a=e.xValues,l=e.yValues,s=A((function(){return!!i&&IB({width:t,height:n,scale:i,axis:"x",values:a})}),[i,a,t,n]),c=A((function(){return!!o&&IB({width:t,height:n,scale:o,axis:"y",values:l})}),[n,t,o,l]);return ln(r,{children:[s&&ln(VB,{lines:s}),c&&ln(VB,{lines:c})]})})),qB=function(e,t){var n,r,i=t.axis,o=t.scale,a=t.x,l=void 0===a?0:a,s=t.y,c=void 0===s?0:s,u=t.length,d=t.ticksPosition,f=t.tickValues,h=t.tickSize,p=void 0===h?FB.tickSize:h,g=t.tickPadding,v=void 0===g?FB.tickPadding:g,m=t.tickRotation,b=void 0===m?FB.tickRotation:m,y=t.format,_=t.legend,w=t.legendPosition,x=void 0===w?FB.legendPosition:w,k=t.legendOffset,C=void 0===k?FB.legendOffset:k,S=t.theme,M=t.style,A=DB({axis:i,scale:o,ticksPosition:d,tickValues:f,tickSize:p,tickPadding:v,tickRotation:b,engine:"canvas"}),T=A.ticks,L=A.textAlign,E=A.textBaseline;e.save(),e.translate(l,c);var O=XA(S.axis,M);e.textAlign=L,e.textBaseline=E,FD(e,O.ticks.text);var R=null!=(n=O.domain.line.strokeWidth)?n:0;"string"!=typeof R&&R>0&&(e.lineWidth=R,e.lineCap="square",O.domain.line.stroke&&(e.strokeStyle=O.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo("x"===i?u:0,"x"===i?0:u),e.stroke());var P="function"==typeof y?y:function(e){return""+e},z=null!=(r=O.ticks.line.strokeWidth)?r:0,D="string"!=typeof z&&z>0;if(T.forEach((function(t){D&&(e.lineWidth=z,e.lineCap="square",O.ticks.line.stroke&&(e.strokeStyle=O.ticks.line.stroke),e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(t.x+t.lineX,t.y+t.lineY),e.stroke());var n=P(t.value);e.save(),e.translate(t.x+t.textX,t.y+t.textY),e.rotate(Zz(b)),jD(e,O.ticks.text,""+n),e.fillText(""+n,0,0),e.restore()})),void 0!==_){var N=0,I=0,B=0,F="center";"y"===i?(B=-90,N=C,"start"===x?(F="start",I=u):"middle"===x?(F="center",I=u/2):"end"===x&&(F="end")):(I=C,"start"===x?F="start":"middle"===x?(F="center",N=u/2):"end"===x&&(F="end",N=u)),e.translate(N,I),e.rotate(Zz(B)),FD(e,O.legend.text),O.legend.text.fill&&(e.fillStyle=O.legend.text.fill),e.textAlign=F,e.textBaseline="middle",jD(e,O.legend.text,_)}e.restore()},YB=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,a=t.top,l=t.right,s=t.bottom,c=t.left,u=t.theme,d={top:a,right:l,bottom:s,left:c};WB.forEach((function(t){var a=d[t];if(!a)return null;var l="top"===t||"bottom"===t,s="top"===t||"left"===t?"before":"after",c=l?n:r,f=NB(a.format,c);qB(e,zB({},a,{axis:l?"x":"y",x:"right"===t?i:0,y:"bottom"===t?o:0,scale:c,format:f,length:l?i:o,ticksPosition:s,theme:u}))}))},GB=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,a=t.values;IB({width:n,height:r,scale:i,axis:o,values:a}).forEach((function(t){e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.stroke()}))};function XB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ZB(){return ZB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZB.apply(null,arguments)}var KB={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:uL,accent:dL,dark2:fL,paired:hL,pastel1:pL,pastel2:gL,set1:vL,set2:mL,set3:bL,tableau10:yL},JB=Object.keys(KB),QB={brown_blueGreen:wL,purpleRed_green:kL,pink_yellowGreen:SL,purple_orange:AL,red_blue:LL,red_grey:OL,red_yellow_blue:PL,red_yellow_green:DL,spectral:IL},eF=Object.keys(QB),tF={brown_blueGreen:xL,purpleRed_green:CL,pink_yellowGreen:ML,purple_orange:TL,red_blue:EL,red_grey:RL,red_yellow_blue:zL,red_yellow_green:NL,spectral:BL},nF={blues:cE,greens:dE,greys:hE,oranges:yE,purples:gE,reds:mE,blue_green:FL,blue_purple:WL,green_blue:UL,orange_red:$L,purple_blue_green:YL,purple_blue:XL,purple_red:KL,red_purple:QL,yellow_green_blue:tE,yellow_green:rE,yellow_orange_brown:oE,yellow_orange_red:lE},rF=Object.keys(nF),iF={blues:uE,greens:fE,greys:pE,oranges:_E,purples:vE,reds:bE,turbo:function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"},viridis:OE,inferno:PE,magma:RE,plasma:zE,cividis:function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"},warm:xE,cool:kE,cubehelixDefault:wE,blue_green:jL,blue_purple:HL,green_blue:VL,orange_red:qL,purple_blue_green:GL,purple_blue:ZL,purple_red:JL,red_purple:eE,yellow_green_blue:nE,yellow_green:iE,yellow_orange_brown:aE,yellow_orange_red:sE},oF=ZB({},KB,QB,nF),aF={rainbow:function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return CE.h=360*e-100,CE.s=1.5-1.5*t,CE.l=.8-.9*t,CE+""},sinebow:function(e){var t;return e=(.5-e)*Math.PI,SE.r=255*(t=Math.sin(e))*t,SE.g=255*(t=Math.sin(e+ME))*t,SE.b=255*(t=Math.sin(e+AE))*t,SE+""}},lF=ZB({},tF,iF,aF),sF=function(e,t){if("function"==typeof e)return e;if(gP(e)){if(function(e){return void 0!==e.theme}(e)){if(void 0===t)throw new Error("Unable to use color from theme as no theme was provided");var n=jA(t,e.theme);if(void 0===n)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(e){return void 0!==e.from}(e)){var r=function(t){return jA(t,e.from)};if(Array.isArray(e.modifiers)){for(var i,o=[],a=function(){var e=i.value,t=e[0],n=e[1];if("brighter"===t)o.push((function(e){return e.brighter(n)}));else if("darker"===t)o.push((function(e){return e.darker(n)}));else{if("opacity"!==t)throw new Error("Invalid color modifier: '"+t+"', must be one of: 'brighter', 'darker', 'opacity'");o.push((function(e){return e.opacity=n,e}))}},l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return XB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?XB(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.modifiers);!(i=l()).done;)a();return 0===o.length?r:function(e){return o.reduce((function(e,t){return t(e)}),Oo(r(e))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},cF=function(e,t){return A((function(){return sF(e,t)}),[e,t])},uF="turbo",dF="red_yellow_blue",fF=.5,hF="turbo",pF=7,gF=function(e,t){var n=Il().domain(e.domain||[t.min,t.max]).nice();if("colors"in e)n.range(e.colors);else{var r=e.scheme||hF,i=void 0===e.steps?pF:e.steps,o=lF[r],a=Array.from({length:i}).map((function(e,t){return o(t*(1/(i-1)))}));n.range(a)}return n},vF=function(e,t){if(function(e){return"sequential"===e.type}(e))return function(e,t){var n=e.minValue,r=e.maxValue,i=void 0!==n?n:t.min,o=void 0!==r?r:t.max,a=ru().domain([i,o]).clamp(!0);if("colors"in e)a.range(e.colors);else if("interpolator"in e)a.interpolator(e.interpolator);else{var l,s=null!=(l=e.scheme)?l:uF;a.interpolator(lF[s])}return a}(e,t);if(function(e){return"diverging"===e.type}(e))return function(e,t){var n,r=e.minValue,i=e.maxValue,o=void 0!==r?r:t.min,a=void 0!==i?i:t.max,l=[o,o+(a-o)/2,a],s=.5-(null!=(n=e.divergeAt)?n:fF),c=ou().domain(l).clamp(!0),u=function(e){return String(e)};if("colors"in e)u=ou().domain(l.map((function(e){return e-s*(a-o)}))).range(e.colors).interpolator();else if("interpolator"in e)u=e.interpolator;else{var d,f=null!=(d=e.scheme)?d:dF;u=lF[f]}return c.interpolator((function(e){return u(e+s)}))}(e,t);if(function(e){return"quantize"===e.type}(e))return gF(e,t);throw new Error("Invalid continuous color scale config")},mF=function(e,t){if("function"==typeof e)return e;var n="function"==typeof t?t:function(e){return jA(e,t)};if(Array.isArray(e)){var r=Ga(e),i=function(e){return r(n(e))};return i.scale=r,i}if(gP(e)){if(function(e){return void 0!==e.datum}(e))return function(t){return jA(t,e.datum)};if(function(e){return void 0!==e.scheme}(e)){if(function(e){return JB.includes(e)}(e.scheme)){var o=Ga(oF[e.scheme]),a=function(e){return o(n(e))};return a.scale=o,a}if(function(e){return eF.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var l=Ga(oF[e.scheme][e.size||11]),s=function(e){return l(n(e))};return s.scale=l,s}if(function(e){return rF.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var c=Ga(oF[e.scheme][e.size||9]),u=function(e){return c(n(e))};return u.scale=c,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},bF=function(e,t){return A((function(){return mF(e,t)}),[e,t])};function yF(){return yF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yF.apply(null,arguments)}var _F,wF,xF=0,kF=0,CF=0,SF=0,MF="left-to-right",AF=!1,TF="square",LF=16,EF=8,OF={length:200,thickness:16,direction:"row",tickPosition:"after",tickSize:4,tickSpacing:3,tickOverlap:!1,tickFormat:function(e){return""+e},titleAlign:"start",titleOffset:4},RF={top:0,right:0,bottom:0,left:0},PF=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,o=e.itemCount,a=e.itemWidth,l=e.itemHeight;if("number"!=typeof i&&("object"!=typeof(t=i)||Array.isArray(t)||null===t))throw new Error("Invalid property padding, must be one of: number, object");var s="number"==typeof i?{top:i,right:i,bottom:i,left:i}:yF({},RF,i),c=s.left+s.right,u=s.top+s.bottom,d=a+c,f=l+u,h=(o-1)*r;return"row"===n?d=a*o+h+c:"column"===n&&(f=l*o+h+u),{width:d,height:f,padding:s}},zF=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,a=e.width,l=e.height,s=n,c=r;switch(t){case"top":s+=(i-a)/2;break;case"top-right":s+=i-a;break;case"right":s+=i-a,c+=(o-l)/2;break;case"bottom-right":s+=i-a,c+=o-l;break;case"bottom":s+=(i-a)/2,c+=o-l;break;case"bottom-left":c+=o-l;break;case"left":c+=(o-l)/2;break;case"center":s+=(i-a)/2,c+=(o-l)/2}return{x:s,y:c}},DF=function(e){var t,n,r,i,o,a,l=e.direction,s=e.justify,c=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(l){case"left-to-right":t=0,n=(f-c)/2,i=f/2,a="central",s?(r=d,o="end"):(r=c+u,o="start");break;case"right-to-left":t=d-c,n=(f-c)/2,i=f/2,a="central",s?(r=0,o="start"):(r=d-c-u,o="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,o="middle",s?(i=f,a="alphabetic"):(i=c+u,a="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=f-c,r=d/2,o="middle",s?(i=0,a="text-before-edge"):(i=f-c-u,a="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:a}},NF=function(e){var t,n=e.scale,r=e.ticks,i=e.length,o=void 0===i?OF.length:i,a=e.thickness,l=void 0===a?OF.thickness:a,s=e.direction,c=void 0===s?OF.direction:s,u=e.tickPosition,d=void 0===u?OF.tickPosition:u,f=e.tickSize,h=void 0===f?OF.tickSize:f,p=e.tickSpacing,g=void 0===p?OF.tickSpacing:p,v=e.tickOverlap,m=void 0===v?OF.tickOverlap:v,b=e.tickFormat,y=void 0===b?OF.tickFormat:b,_=e.title,w=e.titleAlign,x=void 0===w?OF.titleAlign:w,k=e.titleOffset,C=void 0===k?OF.titleOffset:k,S="column"===c?[].concat(n.domain()).reverse():n.domain(),M=Cl().domain(S);2===S.length?M.range([0,o]):3===S.length&&M.range([0,o/2,o]),t="thresholds"in n?[S[0]].concat(n.thresholds(),[S[1]]):Array.isArray(r)?r:n.ticks(r);var A,T,L,E,O,R,P,z,D,N,I,B,F,j,W=function(e,t){var n=e.domain();if("thresholds"in e){var r=[],i=Cl().domain(n).range([0,1]);return e.range().forEach((function(t,n){var o=e.invertExtent(t),a=o[0],l=o[1];r.push({key:n+".0",offset:i(a),stopColor:t}),r.push({key:n+".1",offset:i(l),stopColor:t})})),r}var o=e.copy();return 2===n.length?o.domain([0,1]):3===n.length&&o.domain([0,.5,1]),o.ticks(t).map((function(e){return{key:""+e,offset:e,stopColor:""+o(e)}}))}(n,32),H=TD(y),U=[],V=0,$=0;"row"===c?(A=o,T=l,$=1,O=0,L="start"===x?0:"middle"===x?o/2:o,"before"===d?(P=-h,z=m?l:0,D=-h-g,N="alphabetic",E=l+C,R="hanging"):(P=m?0:l,D=(z=l+h)+g,N="hanging",E=-C,R="alphabetic"),t.forEach((function(e){var t=M(e);U.push({x1:t,y1:P,x2:t,y2:z,text:H(e),textX:t,textY:D,textHorizontalAlign:"middle",textVerticalAlign:N})}))):(A=l,T=o,V=1,O=-90,E="start"===x?o:"middle"===x?o/2:0,"before"===d?(B=m?l:0,F=(I=-h)-g,j="end",L=l+C,R="hanging"):(I=m?0:l,F=(B=l+h)+g,j="start",L=-C,R="alphabetic"),t.forEach((function(e){var t=M(e);U.push({x1:I,y1:t,x2:B,y2:t,text:H(e),textX:F,textY:t,textHorizontalAlign:j,textVerticalAlign:"central"})})));return{width:A,height:T,gradientX1:0,gradientY1:V,gradientX2:$,gradientY2:0,colorStops:W,ticks:U,titleText:_,titleX:L,titleY:E,titleRotation:O,titleHorizontalAlign:x,titleVerticalAlign:R}},IF=function(e){var t=e.scale,n=e.ticks,r=e.length,i=void 0===r?OF.length:r,o=e.thickness,a=void 0===o?OF.thickness:o,l=e.direction,s=void 0===l?OF.direction:l,c=e.tickPosition,u=void 0===c?OF.tickPosition:c,d=e.tickSize,f=void 0===d?OF.tickSize:d,h=e.tickSpacing,p=void 0===h?OF.tickSpacing:h,g=e.tickOverlap,v=void 0===g?OF.tickOverlap:g,m=e.tickFormat,b=void 0===m?OF.tickFormat:m,y=e.title,_=e.titleAlign,w=void 0===_?OF.titleAlign:_,x=e.titleOffset,k=NF({scale:t,ticks:n,length:i,thickness:a,direction:s,tickPosition:u,tickSize:f,tickSpacing:p,tickOverlap:v,tickFormat:b,title:y,titleAlign:w,titleOffset:void 0===x?OF.titleOffset:x}),C=k.width,S=k.height,M=k.gradientX1,A=k.gradientY1,T=k.gradientX2,L=k.gradientY2,E=k.ticks,O=k.colorStops,R=k.titleText,P=k.titleX,D=k.titleY,N=k.titleRotation,I=k.titleVerticalAlign,B=k.titleHorizontalAlign,F=eT(),j="ContinuousColorsLegendSvgGradient."+s+"."+O.map((function(e){return e.stopColor.replace(/[(),\s]/g,"")+"."+e.offset})).join("_");return ln("g",{children:[ln("defs",{children:ln("linearGradient",{id:j,x1:M,y1:A,x2:T,y2:L,children:O.map((function(e){return ln("stop",{offset:e.offset,stopColor:e.stopColor},e.key)}))})}),R&&ln("text",{transform:"translate("+P+", "+D+") rotate("+N+")",textAnchor:B,dominantBaseline:I,style:F.legends.title.text,children:R}),ln("rect",{width:C,height:S,fill:"url(#"+j}),E.map((function(e,t){return ln(z,{children:[ln("line",{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,style:F.legends.ticks.line}),ln(QD,{x:e.textX,y:e.textY,textAnchor:e.textHorizontalAlign,dominantBaseline:e.textVerticalAlign,style:F.legends.ticks.text,children:e.text})]},t)}))]})},BF=["containerWidth","containerHeight","anchor","translateX","translateY","length","thickness","direction"],FF=function(e){var t,n,r=e.containerWidth,i=e.containerHeight,o=e.anchor,a=e.translateX,l=void 0===a?0:a,s=e.translateY,c=void 0===s?0:s,u=e.length,d=void 0===u?OF.length:u,f=e.thickness,h=void 0===f?OF.thickness:f,p=e.direction,g=void 0===p?OF.direction:p,v=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,BF);"row"===g?(t=d,n=h):(t=h,n=d);var m=zF({anchor:o,translateX:l,translateY:c,containerWidth:r,containerHeight:i,width:t,height:n});return ln("g",{transform:"translate("+m.x+", "+m.y+")",children:ln(IF,yF({length:d,thickness:h,direction:g},v))})},jF={circle:function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=void 0===o?1:o,l=e.borderWidth,s=void 0===l?0:l,c=e.borderColor;return ln("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:a,strokeWidth:s,stroke:void 0===c?"transparent":c,style:{pointerEvents:"none"}})},diamond:function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=void 0===o?1:o,l=e.borderWidth,s=void 0===l?0:l,c=e.borderColor;return ln("g",{transform:"translate("+t+","+n+")",children:ln("path",{d:"\n M"+r/2+" 0\n L"+.8*r+" "+r/2+"\n L"+r/2+" "+r+"\n L"+.2*r+" "+r/2+"\n L"+r/2+" 0\n ",fill:i,opacity:a,strokeWidth:s,stroke:void 0===c?"transparent":c,style:{pointerEvents:"none"}})})},square:function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=void 0===o?1:o,l=e.borderWidth,s=void 0===l?0:l,c=e.borderColor;return ln("rect",{x:t,y:n,fill:i,opacity:a,strokeWidth:s,stroke:void 0===c?"transparent":c,width:r,height:r,style:{pointerEvents:"none"}})},triangle:function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=void 0===o?1:o,l=e.borderWidth,s=void 0===l?0:l,c=e.borderColor;return ln("g",{transform:"translate("+t+","+n+")",children:ln("path",{d:"\n M"+r/2+" 0\n L"+r+" "+r+"\n L0 "+r+"\n L"+r/2+" 0\n ",fill:i,opacity:a,strokeWidth:s,stroke:void 0===c?"transparent":c,style:{pointerEvents:"none"}})})}},WF=function(e){var t,n,r,i,o,a,l,s,c,u,d,f=e.x,h=e.y,p=e.width,g=e.height,v=e.data,m=e.direction,b=void 0===m?MF:m,y=e.justify,x=void 0===y?AF:y,k=e.textColor,C=e.background,S=void 0===C?"transparent":C,A=e.opacity,T=void 0===A?1:A,L=e.symbolShape,E=void 0===L?TF:L,O=e.symbolSize,R=void 0===O?LF:O,P=e.symbolSpacing,z=void 0===P?EF:P,D=e.symbolBorderWidth,N=void 0===D?0:D,I=e.symbolBorderColor,B=void 0===I?"transparent":I,F=e.onClick,j=e.onMouseEnter,W=e.onMouseLeave,H=e.toggleSerie,U=e.effects,V=w({}),$=V[0],q=V[1],Y=eT(),G=M((function(e){if(U){var t=U.filter((function(e){return"hover"===e.on})).reduce((function(e,t){return yF({},e,t.style)}),{});q(t)}null==j||j(v,e)}),[j,v,U]),X=M((function(e){if(U){var t=U.filter((function(e){return"hover"!==e.on})).reduce((function(e,t){return yF({},e,t.style)}),{});q(t)}null==W||W(v,e)}),[W,v,U]),Z=DF({direction:b,justify:x,symbolSize:null!=(t=$.symbolSize)?t:R,symbolSpacing:z,width:p,height:g}),K=Z.symbolX,J=Z.symbolY,Q=Z.labelX,ee=Z.labelY,te=Z.labelAnchor,ne=Z.labelAlignment,re=[F,j,W,H].some((function(e){return void 0!==e})),ie="function"==typeof E?E:jF[E];return ln("g",{transform:"translate("+f+","+h+")",style:{opacity:null!=(n=$.itemOpacity)?n:T},children:[ln("rect",{width:p,height:g,fill:null!=(r=$.itemBackground)?r:S,style:{cursor:re?"pointer":"auto"},onClick:function(e){null==F||F(v,e),null==H||H(v.id)},onMouseEnter:G,onMouseLeave:X}),_.createElement(ie,yF({id:v.id,x:K,y:J,size:null!=(i=$.symbolSize)?i:R,fill:null!=(o=null!=(a=v.fill)?a:v.color)?o:"black",borderWidth:null!=(l=$.symbolBorderWidth)?l:N,borderColor:null!=(s=$.symbolBorderColor)?s:B},v.hidden?Y.legends.hidden.symbol:void 0)),ln(QD,{textAnchor:te,style:yF({},Y.legends.text,{fill:null!=(c=null!=(u=null!=(d=$.itemTextColor)?d:k)?u:Y.legends.text.fill)?c:"black",dominantBaseline:ne,pointerEvents:"none",userSelect:"none"},v.hidden?Y.legends.hidden.text:void 0),x:Q,y:ee,children:v.label})]})},HF=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,o=e.padding,a=void 0===o?CF:o,l=e.justify,s=e.effects,c=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=void 0===d?MF:d,h=e.itemsSpacing,p=void 0===h?SF:h,g=e.itemTextColor,v=e.itemBackground,m=void 0===v?"transparent":v,b=e.itemOpacity,y=void 0===b?1:b,_=e.symbolShape,w=e.symbolSize,x=e.symbolSpacing,k=e.symbolBorderWidth,C=e.symbolBorderColor,S=e.onClick,M=e.onMouseEnter,A=e.onMouseLeave,T=e.toggleSerie,L=PF({itemCount:t.length,itemWidth:c,itemHeight:u,itemsSpacing:p,direction:i,padding:a}).padding,E="row"===i?c+p:0,O="column"===i?u+p:0;return ln("g",{transform:"translate("+n+","+r+")",children:t.map((function(e,t){return ln(WF,{data:e,x:t*E+L.left,y:t*O+L.top,width:c,height:u,direction:f,justify:l,effects:s,textColor:g,background:m,opacity:y,symbolShape:_,symbolSize:w,symbolSpacing:x,symbolBorderWidth:k,symbolBorderColor:C,onClick:S,onMouseEnter:M,onMouseLeave:A,toggleSerie:T},t)}))})},UF=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,o=void 0===i?xF:i,a=e.translateY,l=void 0===a?kF:a,s=e.anchor,c=e.direction,u=e.padding,d=void 0===u?CF:u,f=e.justify,h=e.itemsSpacing,p=void 0===h?SF:h,g=e.itemWidth,v=e.itemHeight,m=e.itemDirection,b=e.itemTextColor,y=e.itemBackground,_=e.itemOpacity,w=e.symbolShape,x=e.symbolSize,k=e.symbolSpacing,C=e.symbolBorderWidth,S=e.symbolBorderColor,M=e.onClick,A=e.onMouseEnter,T=e.onMouseLeave,L=e.toggleSerie,E=e.effects,O=PF({itemCount:t.length,itemsSpacing:p,itemWidth:g,itemHeight:v,direction:c,padding:d}),R=O.width,P=O.height,z=zF({anchor:s,translateX:o,translateY:l,containerWidth:n,containerHeight:r,width:R,height:P}),D=z.x,N=z.y;return ln(HF,{data:t,x:D,y:N,direction:c,padding:d,justify:f,effects:E,itemsSpacing:p,itemWidth:g,itemHeight:v,itemDirection:m,itemTextColor:b,itemBackground:y,itemOpacity:_,symbolShape:w,symbolSize:x,symbolSpacing:k,symbolBorderWidth:C,symbolBorderColor:S,onClick:M,onMouseEnter:A,onMouseLeave:T,toggleSerie:"boolean"==typeof L?void 0:L})},VF={start:"left",middle:"center",end:"right"},$F=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,o=t.translateX,a=void 0===o?0:o,l=t.translateY,s=void 0===l?0:l,c=t.anchor,u=t.direction,d=t.padding,f=void 0===d?0:d,h=t.justify,p=void 0!==h&&h,g=t.itemsSpacing,v=void 0===g?0:g,m=t.itemWidth,b=t.itemHeight,y=t.itemDirection,_=void 0===y?"left-to-right":y,w=t.itemTextColor,x=t.symbolSize,k=void 0===x?16:x,C=t.symbolSpacing,S=void 0===C?8:C,M=t.theme,A=PF({itemCount:n.length,itemWidth:m,itemHeight:b,itemsSpacing:v,direction:u,padding:f}),T=A.width,L=A.height,E=A.padding,O=zF({anchor:c,translateX:a,translateY:s,containerWidth:r,containerHeight:i,width:T,height:L}),R=O.x,P=O.y,z="row"===u?m+v:0,D="column"===u?b+v:0;e.save(),e.translate(R,P),FD(e,M.legends.text),n.forEach((function(t,n){var r,i=n*z+E.left,o=n*D+E.top,a=DF({direction:_,justify:p,symbolSize:k,symbolSpacing:S,width:m,height:b}),l=a.symbolX,s=a.symbolY,c=a.labelX,u=a.labelY,d=a.labelAnchor,f=a.labelAlignment;e.fillStyle=null!=(r=t.color)?r:"black",e.fillRect(i+l,o+s,k,k),e.textAlign=VF[d],"central"===f&&(e.textBaseline="middle"),jD(e,yF({},M.legends.text,{fill:null!=w?w:M.legends.text.fill}),String(t.label),i+c,o+u)})),e.restore()};var qF=function(){if(wF)return _F;wF=1;var e=OA(),t=0;return _F=function(n){var r=++t;return e(n)+r},_F}(),YF=Pd(qF);const GF=134217729;function XF(e,t,n,r,i){let o,a,l,s,c=t[0],u=r[0],d=0,f=0;u>c==u>-c?(o=c,c=t[++d]):(o=u,u=r[++f]);let h=0;if(d<e&&f<n)for(u>c==u>-c?(a=c+o,l=o-(a-c),c=t[++d]):(a=u+o,l=o-(a-u),u=r[++f]),o=a,0!==l&&(i[h++]=l);d<e&&f<n;)u>c==u>-c?(a=o+c,s=a-o,l=o-(a-s)+(c-s),c=t[++d]):(a=o+u,s=a-o,l=o-(a-s)+(u-s),u=r[++f]),o=a,0!==l&&(i[h++]=l);for(;d<e;)a=o+c,s=a-o,l=o-(a-s)+(c-s),c=t[++d],o=a,0!==l&&(i[h++]=l);for(;f<n;)a=o+u,s=a-o,l=o-(a-s)+(u-s),u=r[++f],o=a,0!==l&&(i[h++]=l);return 0===o&&0!==h||(i[h++]=o),h}function ZF(e){return new Float64Array(e)}const KF=ZF(4),JF=ZF(8),QF=ZF(12),ej=ZF(16),tj=ZF(4);function nj(e,t,n,r,i,o){const a=(t-o)*(n-i),l=(e-i)*(r-o),s=a-l,c=Math.abs(a+l);return Math.abs(s)>=33306690738754716e-32*c?s:-function(e,t,n,r,i,o,a){let l,s,c,u,d,f,h,p,g,v,m,b,y,_,w,x,k,C;const S=e-i,M=n-i,A=t-o,T=r-o;_=S*T,f=GF*S,h=f-(f-S),p=S-h,f=GF*T,g=f-(f-T),v=T-g,w=p*v-(_-h*g-p*g-h*v),x=A*M,f=GF*A,h=f-(f-A),p=A-h,f=GF*M,g=f-(f-M),v=M-g,k=p*v-(x-h*g-p*g-h*v),m=w-k,d=w-m,KF[0]=w-(m+d)+(d-k),b=_+m,d=b-_,y=_-(b-d)+(m-d),m=y-x,d=y-m,KF[1]=y-(m+d)+(d-x),C=b+m,d=C-b,KF[2]=b-(C-d)+(m-d),KF[3]=C;let L=function(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}(4,KF),E=22204460492503146e-32*a;if(L>=E||-L>=E)return L;if(d=e-S,l=e-(S+d)+(d-i),d=n-M,c=n-(M+d)+(d-i),d=t-A,s=t-(A+d)+(d-o),d=r-T,u=r-(T+d)+(d-o),0===l&&0===s&&0===c&&0===u)return L;if(E=11093356479670487e-47*a+33306690738754706e-32*Math.abs(L),L+=S*u+T*l-(A*c+M*s),L>=E||-L>=E)return L;_=l*T,f=GF*l,h=f-(f-l),p=l-h,f=GF*T,g=f-(f-T),v=T-g,w=p*v-(_-h*g-p*g-h*v),x=s*M,f=GF*s,h=f-(f-s),p=s-h,f=GF*M,g=f-(f-M),v=M-g,k=p*v-(x-h*g-p*g-h*v),m=w-k,d=w-m,tj[0]=w-(m+d)+(d-k),b=_+m,d=b-_,y=_-(b-d)+(m-d),m=y-x,d=y-m,tj[1]=y-(m+d)+(d-x),C=b+m,d=C-b,tj[2]=b-(C-d)+(m-d),tj[3]=C;const O=XF(4,KF,4,tj,JF);_=S*u,f=GF*S,h=f-(f-S),p=S-h,f=GF*u,g=f-(f-u),v=u-g,w=p*v-(_-h*g-p*g-h*v),x=A*c,f=GF*A,h=f-(f-A),p=A-h,f=GF*c,g=f-(f-c),v=c-g,k=p*v-(x-h*g-p*g-h*v),m=w-k,d=w-m,tj[0]=w-(m+d)+(d-k),b=_+m,d=b-_,y=_-(b-d)+(m-d),m=y-x,d=y-m,tj[1]=y-(m+d)+(d-x),C=b+m,d=C-b,tj[2]=b-(C-d)+(m-d),tj[3]=C;const R=XF(O,JF,4,tj,QF);_=l*u,f=GF*l,h=f-(f-l),p=l-h,f=GF*u,g=f-(f-u),v=u-g,w=p*v-(_-h*g-p*g-h*v),x=s*c,f=GF*s,h=f-(f-s),p=s-h,f=GF*c,g=f-(f-c),v=c-g,k=p*v-(x-h*g-p*g-h*v),m=w-k,d=w-m,tj[0]=w-(m+d)+(d-k),b=_+m,d=b-_,y=_-(b-d)+(m-d),m=y-x,d=y-m,tj[1]=y-(m+d)+(d-x),C=b+m,d=C-b,tj[2]=b-(C-d)+(m-d),tj[3]=C;const P=XF(R,QF,4,tj,ej);return ej[P-1]}(e,t,n,r,i,o,c)}const rj=Math.pow(2,-52),ij=new Uint32Array(512);class oj{static from(e,t=dj,n=fj){const r=e.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=e[o];i[2*o]=t(r),i[2*o+1]=n(r)}return new oj(i)}constructor(e){const t=e.length>>1;if(t>0&&"number"!=typeof e[0])throw new Error("Expected coords to contain numbers.");this.coords=e;const n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){const{coords:e,_hullPrev:t,_hullNext:n,_hullTri:r,_hullHash:i}=this,o=e.length>>1;let a=1/0,l=1/0,s=-1/0,c=-1/0;for(let t=0;t<o;t++){const n=e[2*t],r=e[2*t+1];n<a&&(a=n),r<l&&(l=r),n>s&&(s=n),r>c&&(c=r),this._ids[t]=t}const u=(a+s)/2,d=(l+c)/2;let f,h,p;for(let t=0,n=1/0;t<o;t++){const r=aj(u,d,e[2*t],e[2*t+1]);r<n&&(f=t,n=r)}const g=e[2*f],v=e[2*f+1];for(let t=0,n=1/0;t<o;t++){if(t===f)continue;const r=aj(g,v,e[2*t],e[2*t+1]);r<n&&r>0&&(h=t,n=r)}let m=e[2*h],b=e[2*h+1],y=1/0;for(let t=0;t<o;t++){if(t===f||t===h)continue;const n=sj(g,v,m,b,e[2*t],e[2*t+1]);n<y&&(p=t,y=n)}let _=e[2*p],w=e[2*p+1];if(y===1/0){for(let t=0;t<o;t++)this._dists[t]=e[2*t]-e[0]||e[2*t+1]-e[1];cj(this._ids,this._dists,0,o-1);const t=new Uint32Array(o);let n=0;for(let e=0,r=-1/0;e<o;e++){const i=this._ids[e],o=this._dists[i];o>r&&(t[n++]=i,r=o)}return this.hull=t.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(nj(g,v,m,b,_,w)<0){const e=h,t=m,n=b;h=p,m=_,b=w,p=e,_=t,w=n}const x=function(e,t,n,r,i,o){const a=n-e,l=r-t,s=i-e,c=o-t,u=a*a+l*l,d=s*s+c*c,f=.5/(a*c-l*s),h=e+(c*u-l*d)*f,p=t+(a*d-s*u)*f;return{x:h,y:p}}(g,v,m,b,_,w);this._cx=x.x,this._cy=x.y;for(let t=0;t<o;t++)this._dists[t]=aj(e[2*t],e[2*t+1],x.x,x.y);cj(this._ids,this._dists,0,o-1),this._hullStart=f;let k=3;n[f]=t[p]=h,n[h]=t[f]=p,n[p]=t[h]=f,r[f]=0,r[h]=1,r[p]=2,i.fill(-1),i[this._hashKey(g,v)]=f,i[this._hashKey(m,b)]=h,i[this._hashKey(_,w)]=p,this.trianglesLen=0,this._addTriangle(f,h,p,-1,-1,-1);for(let o,a,l=0;l<this._ids.length;l++){const s=this._ids[l],c=e[2*s],u=e[2*s+1];if(l>0&&Math.abs(c-o)<=rj&&Math.abs(u-a)<=rj)continue;if(o=c,a=u,s===f||s===h||s===p)continue;let d=0;for(let e=0,t=this._hashKey(c,u);e<this._hashSize&&(d=i[(t+e)%this._hashSize],-1===d||d===n[d]);e++);d=t[d];let g,v=d;for(;g=n[v],nj(c,u,e[2*v],e[2*v+1],e[2*g],e[2*g+1])>=0;)if(v=g,v===d){v=-1;break}if(-1===v)continue;let m=this._addTriangle(v,s,n[v],-1,-1,r[v]);r[s]=this._legalize(m+2),r[v]=m,k++;let b=n[v];for(;g=n[b],nj(c,u,e[2*b],e[2*b+1],e[2*g],e[2*g+1])<0;)m=this._addTriangle(b,s,g,r[s],-1,r[b]),r[s]=this._legalize(m+2),n[b]=b,k--,b=g;if(v===d)for(;g=t[v],nj(c,u,e[2*g],e[2*g+1],e[2*v],e[2*v+1])<0;)m=this._addTriangle(g,s,v,-1,r[v],r[g]),this._legalize(m+2),r[g]=m,n[v]=v,k--,v=g;this._hullStart=t[s]=v,n[v]=t[b]=s,n[s]=b,i[this._hashKey(c,u)]=s,i[this._hashKey(e[2*v],e[2*v+1])]=v}this.hull=new Uint32Array(k);for(let e=0,t=this._hullStart;e<k;e++)this.hull[e]=t,t=n[t];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,t){return Math.floor(function(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:t,_halfedges:n,coords:r}=this;let i=0,o=0;for(;;){const a=n[e],l=e-e%3;if(o=l+(e+2)%3,-1===a){if(0===i)break;e=ij[--i];continue}const s=a-a%3,c=l+(e+1)%3,u=s+(a+2)%3,d=t[o],f=t[e],h=t[c],p=t[u];if(lj(r[2*d],r[2*d+1],r[2*f],r[2*f+1],r[2*h],r[2*h+1],r[2*p],r[2*p+1])){t[e]=p,t[a]=d;const r=n[u];if(-1===r){let t=this._hullStart;do{if(this._hullTri[t]===u){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,r),this._link(a,n[o]),this._link(o,u);const l=s+(a+1)%3;i<ij.length&&(ij[i++]=l)}else{if(0===i)break;e=ij[--i]}}return o}_link(e,t){this._halfedges[e]=t,-1!==t&&(this._halfedges[t]=e)}_addTriangle(e,t,n,r,i,o){const a=this.trianglesLen;return this._triangles[a]=e,this._triangles[a+1]=t,this._triangles[a+2]=n,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a}}function aj(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function lj(e,t,n,r,i,o,a,l){const s=e-a,c=t-l,u=n-a,d=r-l,f=i-a,h=o-l,p=u*u+d*d,g=f*f+h*h;return s*(d*g-p*h)-c*(u*g-p*f)+(s*s+c*c)*(u*h-d*f)<0}function sj(e,t,n,r,i,o){const a=n-e,l=r-t,s=i-e,c=o-t,u=a*a+l*l,d=s*s+c*c,f=.5/(a*c-l*s),h=(c*u-l*d)*f,p=(a*d-s*u)*f;return h*h+p*p}function cj(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const r=e[i],o=t[r];let a=i-1;for(;a>=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=r}else{let i=n+1,o=r;uj(e,n+r>>1,i),t[e[n]]>t[e[r]]&&uj(e,n,r),t[e[i]]>t[e[r]]&&uj(e,i,r),t[e[n]]>t[e[i]]&&uj(e,n,i);const a=e[i],l=t[a];for(;;){do{i++}while(t[e[i]]<l);do{o--}while(t[e[o]]>l);if(o<i)break;uj(e,i,o)}e[n+1]=e[o],e[o]=a,r-i+1>=o-n?(cj(e,t,i,r),cj(e,t,n,o-1)):(cj(e,t,n,o-1),cj(e,t,i,r))}}function uj(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function dj(e){return e[0]}function fj(e){return e[1]}const hj=1e-6;class pj{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,t){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,t){this._+=`L${this._x1=+e},${this._y1=+t}`}arc(e,t,n){const r=(e=+e)+(n=+n),i=t=+t;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>hj||Math.abs(this._y1-i)>hj)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${e-n},${t}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(e,t,n,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class gj{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class vj{constructor(e,[t,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(t=+t)&&(i=+i)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=r,this.xmin=t,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:t,triangles:n},vectors:r}=this;let i,o;const a=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let r,l,s=0,c=0,u=n.length;s<u;s+=3,c+=2){const u=2*n[s],d=2*n[s+1],f=2*n[s+2],h=e[u],p=e[u+1],g=e[d],v=e[d+1],m=e[f],b=e[f+1],y=g-h,_=v-p,w=m-h,x=b-p,k=2*(y*x-_*w);if(Math.abs(k)<1e-9){if(void 0===i){i=o=0;for(const n of t)i+=e[2*n],o+=e[2*n+1];i/=t.length,o/=t.length}const n=1e9*Math.sign((i-h)*x-(o-p)*w);r=(h+m)/2-n*x,l=(p+b)/2+n*w}else{const e=1/k,t=y*y+_*_,n=w*w+x*x;r=h+(x*t-_*n)*e,l=p+(y*n-w*t)*e}a[c]=r,a[c+1]=l}let l,s,c,u=t[t.length-1],d=4*u,f=e[2*u],h=e[2*u+1];r.fill(0);for(let n=0;n<t.length;++n)u=t[n],l=d,s=f,c=h,d=4*u,f=e[2*u],h=e[2*u+1],r[l+2]=r[d]=c-h,r[l+3]=r[d+1]=f-s}render(e){const t=null==e?e=new pj:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:o,vectors:a}=this;if(i.length<=1)return null;for(let t=0,r=n.length;t<r;++t){const r=n[t];if(r<t)continue;const i=2*Math.floor(t/3),a=2*Math.floor(r/3),l=o[i],s=o[i+1],c=o[a],u=o[a+1];this._renderSegment(l,s,c,u,e)}let l,s=i[i.length-1];for(let t=0;t<i.length;++t){l=s,s=i[t];const n=2*Math.floor(r[s]/3),c=o[n],u=o[n+1],d=4*l,f=this._project(c,u,a[d+2],a[d+3]);f&&this._renderSegment(c,u,f[0],f[1],e)}return t&&t.value()}renderBounds(e){const t=null==e?e=new pj:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),t&&t.value()}renderCell(e,t){const n=null==t?t=new pj:void 0,r=this._clip(e);if(null===r||!r.length)return;t.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let e=2;e<i;e+=2)r[e]===r[e-2]&&r[e+1]===r[e-1]||t.lineTo(r[e],r[e+1]);return t.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:e}}=this;for(let t=0,n=e.length/2;t<n;++t){const e=this.cellPolygon(t);e&&(e.index=t,yield e)}}cellPolygon(e){const t=new gj;return this.renderCell(e,t),t.value()}_renderSegment(e,t,n,r,i){let o;const a=this._regioncode(e,t),l=this._regioncode(n,r);0===a&&0===l?(i.moveTo(e,t),i.lineTo(n,r)):(o=this._clipSegment(e,t,n,r,a,l))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(e,t,n){return(t=+t)==t&&(n=+n)==n&&this.delaunay._step(e,t,n)===e}*neighbors(e){const t=this._clip(e);if(t)for(const n of this.delaunay.neighbors(e)){const e=this._clip(n);if(e)e:for(let r=0,i=t.length;r<i;r+=2)for(let o=0,a=e.length;o<a;o+=2)if(t[r]===e[o]&&t[r+1]===e[o+1]&&t[(r+2)%i]===e[(o+a-2)%a]&&t[(r+3)%i]===e[(o+a-1)%a]){yield n;break e}}}_cell(e){const{circumcenters:t,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,o=n[e];if(-1===o)return null;const a=[];let l=o;do{const n=Math.floor(l/3);if(a.push(t[2*n],t[2*n+1]),l=l%3==2?l-2:l+1,i[l]!==e)break;l=r[l]}while(l!==o&&-1!==l);return a}_clip(e){if(0===e&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const t=this._cell(e);if(null===t)return null;const{vectors:n}=this,r=4*e;return this._simplify(n[r]||n[r+1]?this._clipInfinite(e,t,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(e,t))}_clipFinite(e,t){const n=t.length;let r,i,o,a,l=null,s=t[n-2],c=t[n-1],u=this._regioncode(s,c),d=0;for(let f=0;f<n;f+=2)if(r=s,i=c,s=t[f],c=t[f+1],o=u,u=this._regioncode(s,c),0===o&&0===u)a=d,d=0,l?l.push(s,c):l=[s,c];else{let t,n,f,h,p;if(0===o){if(null===(t=this._clipSegment(r,i,s,c,o,u)))continue;[n,f,h,p]=t}else{if(null===(t=this._clipSegment(s,c,r,i,u,o)))continue;[h,p,n,f]=t,a=d,d=this._edgecode(n,f),a&&d&&this._edge(e,a,d,l,l.length),l?l.push(n,f):l=[n,f]}a=d,d=this._edgecode(h,p),a&&d&&this._edge(e,a,d,l,l.length),l?l.push(h,p):l=[h,p]}if(l)a=d,d=this._edgecode(l[0],l[1]),a&&d&&this._edge(e,a,d,l,l.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return l}_clipSegment(e,t,n,r,i,o){const a=i<o;for(a&&([e,t,n,r,i,o]=[n,r,e,t,o,i]);;){if(0===i&&0===o)return a?[n,r,e,t]:[e,t,n,r];if(i&o)return null;let l,s,c=i||o;8&c?(l=e+(n-e)*(this.ymax-t)/(r-t),s=this.ymax):4&c?(l=e+(n-e)*(this.ymin-t)/(r-t),s=this.ymin):2&c?(s=t+(r-t)*(this.xmax-e)/(n-e),l=this.xmax):(s=t+(r-t)*(this.xmin-e)/(n-e),l=this.xmin),i?(e=l,t=s,i=this._regioncode(e,t)):(n=l,r=s,o=this._regioncode(n,r))}}_clipInfinite(e,t,n,r,i,o){let a,l=Array.from(t);if((a=this._project(l[0],l[1],n,r))&&l.unshift(a[0],a[1]),(a=this._project(l[l.length-2],l[l.length-1],i,o))&&l.push(a[0],a[1]),l=this._clipFinite(e,l))for(let t,n=0,r=l.length,i=this._edgecode(l[r-2],l[r-1]);n<r;n+=2)t=i,i=this._edgecode(l[n],l[n+1]),t&&i&&(n=this._edge(e,t,i,l,n),r=l.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(l=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return l}_edge(e,t,n,r,i){for(;t!==n;){let n,o;switch(t){case 5:t=4;continue;case 4:t=6,n=this.xmax,o=this.ymin;break;case 6:t=2;continue;case 2:t=10,n=this.xmax,o=this.ymax;break;case 10:t=8;continue;case 8:t=9,n=this.xmin,o=this.ymax;break;case 9:t=1;continue;case 1:t=5,n=this.xmin,o=this.ymin}r[i]===n&&r[i+1]===o||!this.contains(e,n,o)||(r.splice(i,0,n,o),i+=2)}return i}_project(e,t,n,r){let i,o,a,l=1/0;if(r<0){if(t<=this.ymin)return null;(i=(this.ymin-t)/r)<l&&(a=this.ymin,o=e+(l=i)*n)}else if(r>0){if(t>=this.ymax)return null;(i=(this.ymax-t)/r)<l&&(a=this.ymax,o=e+(l=i)*n)}if(n>0){if(e>=this.xmax)return null;(i=(this.xmax-e)/n)<l&&(o=this.xmax,a=t+(l=i)*r)}else if(n<0){if(e<=this.xmin)return null;(i=(this.xmin-e)/n)<l&&(o=this.xmin,a=t+(l=i)*r)}return[o,a]}_edgecode(e,t){return(e===this.xmin?1:e===this.xmax?2:0)|(t===this.ymin?4:t===this.ymax?8:0)}_regioncode(e,t){return(e<this.xmin?1:e>this.xmax?2:0)|(t<this.ymin?4:t>this.ymax?8:0)}_simplify(e){if(e&&e.length>4){for(let t=0;t<e.length;t+=2){const n=(t+2)%e.length,r=(t+4)%e.length;(e[t]===e[n]&&e[n]===e[r]||e[t+1]===e[n+1]&&e[n+1]===e[r+1])&&(e.splice(n,2),t-=2)}e.length||(e=null)}return e}}const mj=2*Math.PI,bj=Math.pow;function yj(e){return e[0]}function _j(e){return e[1]}function wj(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class xj{static from(e,t=yj,n=_j,r){return new xj("length"in e?function(e,t,n,r){const i=e.length,o=new Float64Array(2*i);for(let a=0;a<i;++a){const i=e[a];o[2*a]=t.call(r,i,a,e),o[2*a+1]=n.call(r,i,a,e)}return o}(e,t,n,r):Float64Array.from(function*(e,t,n,r){let i=0;for(const o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}(e,t,n,r)))}constructor(e){this._delaunator=new oj(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const e=this._delaunator,t=this.points;if(e.hull&&e.hull.length>2&&function(e){const{triangles:t,coords:n}=e;for(let e=0;e<t.length;e+=3){const r=2*t[e],i=2*t[e+1],o=2*t[e+2];if((n[o]-n[r])*(n[i+1]-n[r+1])-(n[i]-n[r])*(n[o+1]-n[r+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},((e,t)=>t)).sort(((e,n)=>t[2*e]-t[2*n]||t[2*e+1]-t[2*n+1]));const e=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[t[2*e],t[2*e+1],t[2*n],t[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let e=0,n=t.length/2;e<n;++e){const n=wj(t[2*e],t[2*e+1],i);t[2*e]=n[0],t[2*e+1]=n[1]}this._delaunator=new oj(t)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),a=this._hullIndex.fill(-1);for(let e=0,t=n.length;e<t;++e){const t=i[e%3==2?e-2:e+1];-1!==n[e]&&-1!==o[t]||(o[t]=e)}for(let e=0,t=r.length;e<t;++e)a[r[e]]=e;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],o[r[0]]=1,2===r.length&&(o[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(e){return new vj(this,e)}*neighbors(e){const{inedges:t,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){const t=a.indexOf(e);return t>0&&(yield a[t-1]),void(t<a.length-1&&(yield a[t+1]))}const l=t[e];if(-1===l)return;let s=l,c=-1;do{if(yield c=o[s],s=s%3==2?s-2:s+1,o[s]!==e)return;if(s=i[s],-1===s){const t=n[(r[e]+1)%n.length];return void(t!==c&&(yield t))}}while(s!==l)}find(e,t,n=0){if((e=+e)!=e||(t=+t)!=t)return-1;const r=n;let i;for(;(i=this._step(n,e,t))>=0&&i!==n&&i!==r;)n=i;return i}_step(e,t,n){const{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:l,points:s}=this;if(-1===r[e]||!s.length)return(e+1)%(s.length>>1);let c=e,u=bj(t-s[2*e],2)+bj(n-s[2*e+1],2);const d=r[e];let f=d;do{let r=l[f];const d=bj(t-s[2*r],2)+bj(n-s[2*r+1],2);if(d<u&&(u=d,c=r),f=f%3==2?f-2:f+1,l[f]!==e)break;if(f=a[f],-1===f){if(f=i[(o[e]+1)%i.length],f!==r&&bj(t-s[2*f],2)+bj(n-s[2*f+1],2)<u)return f;break}}while(f!==d);return c}render(e){const t=null==e?e=new pj:void 0,{points:n,halfedges:r,triangles:i}=this;for(let t=0,o=r.length;t<o;++t){const o=r[t];if(o<t)continue;const a=2*i[t],l=2*i[o];e.moveTo(n[a],n[a+1]),e.lineTo(n[l],n[l+1])}return this.renderHull(e),t&&t.value()}renderPoints(e,t){void 0!==t||e&&"function"==typeof e.moveTo||(t=e,e=null),t=null==t?2:+t;const n=null==e?e=new pj:void 0,{points:r}=this;for(let n=0,i=r.length;n<i;n+=2){const i=r[n],o=r[n+1];e.moveTo(i+t,o),e.arc(i,o,t,0,mj)}return n&&n.value()}renderHull(e){const t=null==e?e=new pj:void 0,{hull:n,points:r}=this,i=2*n[0],o=n.length;e.moveTo(r[i],r[i+1]);for(let t=1;t<o;++t){const i=2*n[t];e.lineTo(r[i],r[i+1])}return e.closePath(),t&&t.value()}hullPolygon(){const e=new gj;return this.renderHull(e),e.value()}renderTriangle(e,t){const n=null==t?t=new pj:void 0,{points:r,triangles:i}=this,o=2*i[e*=3],a=2*i[e+1],l=2*i[e+2];return t.moveTo(r[o],r[o+1]),t.lineTo(r[a],r[a+1]),t.lineTo(r[l],r[l+1]),t.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:e}=this;for(let t=0,n=e.length/3;t<n;++t)yield this.trianglePolygon(t)}trianglePolygon(e){const t=new gj;return this.renderTriangle(e,t),t.value()}}function kj(){return kj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kj.apply(null,arguments)}function Cj(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Sj={xDomain:[0,1],yDomain:[0,1],layers:["links","cells","points","bounds"],enableLinks:!1,linkLineWidth:1,linkLineColor:"#bbbbbb",enableCells:!0,cellLineWidth:2,cellLineColor:"#000000",pointSize:4,pointColor:"#666666",role:"img"},Mj=function(e){return[e.x,e.y]},Aj=SD,Tj="cursor",Lj=function(e){var t=e.points,n=e.getNodePosition,r=void 0===n?Mj:n,i=e.margin,o=void 0===i?Aj:i;return t.map((function(e){var t=r(e),n=t[0],i=t[1];return[n+o.left,i+o.top]}))},Ej=function(e){var t=e.points,n=e.getNodePosition,r=void 0===n?Mj:n,i=e.width,o=e.height,a=e.margin,l=void 0===a?Aj:a,s=e.debug;return A((function(){return function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=void 0===i?Aj:i,a=e.debug,l=xj.from(t),s=a?l.voronoi([0,0,o.left+n+o.right,o.top+r+o.bottom]):void 0;return{points:t,delaunay:l,voronoi:s}}({points:Lj({points:t,margin:l,getNodePosition:r}),width:i,height:o,margin:l,debug:s})}),[r,t,i,o,l,s])},Oj=["theme"],Rj=function(e){var t=e.data,n=e.width,r=e.height,i=e.margin,o=e.layers,a=void 0===o?Sj.layers:o,l=e.xDomain,s=void 0===l?Sj.xDomain:l,c=e.yDomain,u=void 0===c?Sj.yDomain:c,d=e.enableLinks,f=void 0===d?Sj.enableLinks:d,h=e.linkLineWidth,p=void 0===h?Sj.linkLineWidth:h,g=e.linkLineColor,v=void 0===g?Sj.linkLineColor:g,m=e.enableCells,b=void 0===m?Sj.enableCells:m,y=e.cellLineWidth,_=void 0===y?Sj.cellLineWidth:y,w=e.cellLineColor,x=void 0===w?Sj.cellLineColor:w,k=e.enablePoints,C=void 0===k?Sj.enableCells:k,S=e.pointSize,M=void 0===S?Sj.pointSize:S,T=e.pointColor,L=void 0===T?Sj.pointColor:T,E=e.role,O=void 0===E?Sj.role:E,P=e.forwardedRef,D=MD(n,r,i),N=D.outerWidth,I=D.outerHeight,B=D.margin,F=function(e){var t=e.data,n=e.width,r=e.height,i=e.xDomain,o=e.yDomain,a=A((function(){return Cl().domain(i).range([0,n])}),[i,n]),l=A((function(){return Cl().domain(o).range([0,r])}),[o,r]),s=A((function(){return t.map((function(e){return{x:a(e.x),y:l(e.y),data:e}}))}),[t,a,l]);return A((function(){var e=xj.from(s.map((function(e){return[e.x,e.y]}))),t=e.voronoi([0,0,n,r]);return{points:s,delaunay:e,voronoi:t}}),[s,n,r])}({data:t,width:D.innerWidth,height:D.innerHeight,xDomain:s,yDomain:u}),j=F.points,W=F.delaunay,H=F.voronoi,U={links:null,cells:null,points:null,bounds:null};f&&a.includes("links")&&(U.links=ln("path",{stroke:v,strokeWidth:p,fill:"none",d:W.render()},"links")),b&&a.includes("cells")&&(U.cells=ln("path",{d:H.render(),fill:"none",stroke:x,strokeWidth:_},"cells")),C&&a.includes("points")&&(U.points=ln("path",{stroke:"none",fill:L,d:W.renderPoints(void 0,M/2)},"points")),a.includes("bounds")&&(U.bounds=ln("path",{fill:"none",stroke:x,strokeWidth:_,d:H.renderBounds()},"bounds"));var V=function(e){var t=e.points,n=e.delaunay,r=e.voronoi;return A((function(){return{points:t,delaunay:n,voronoi:r}}),[t,n,r])}({points:j,delaunay:W,voronoi:H});return ln(vD,{width:N,height:I,margin:B,role:O,ref:P,children:a.map((function(e,t){return void 0!==U[e]?U[e]:"function"==typeof e?ln(z,{children:R(e,V)},t):null}))})},Pj=S((function(e,t){var n=e.theme,r=Cj(e,Oj);return ln(Dz,{isInteractive:!1,animate:!1,theme:n,children:ln(Rj,kj({},r,{forwardedRef:t}))})})),zj=["defaultWidth","defaultHeight","onResize","debounceResize"];S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Cj(e,zj);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(Pj,kj({},a,{width:n,height:r,ref:t}))}})}));var Dj=function(e){var t=e.nodes,n=e.width,i=e.height,o=e.margin,a=void 0===o?Aj:o,l=e.getNodePosition,s=e.setCurrent,c=e.onMouseEnter,u=e.onMouseMove,d=e.onMouseLeave,f=e.onMouseDown,h=e.onMouseUp,p=e.onClick,g=e.onDoubleClick,v=e.onTouchStart,m=e.onTouchMove,b=e.onTouchEnd,y=e.enableTouchCrosshair,_=void 0!==y&&y,k=e.detectionRadius,S=void 0===k?1/0:k,T=e.tooltip,L=e.tooltipPosition,E=void 0===L?Tj:L,O=e.tooltipAnchor,R=void 0===O?"top":O,P=e.debug,z=C(null),D=Ej({points:t,getNodePosition:l,width:n,height:i,margin:a,debug:P}),N=D.delaunay,I=D.voronoi,B=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=void 0===r?Mj:r,o=e.delaunay,a=e.setCurrent,l=e.margin,s=void 0===l?Aj:l,c=e.detectionRadius,u=void 0===c?1/0:c,d=e.isInteractive,f=void 0===d||d,h=e.onMouseEnter,p=e.onMouseMove,g=e.onMouseLeave,v=e.onMouseDown,m=e.onMouseUp,b=e.onClick,y=e.onDoubleClick,_=e.onTouchStart,k=e.onTouchMove,S=e.onTouchEnd,T=e.enableTouchCrosshair,L=void 0!==T&&T,E=e.tooltip,O=e.tooltipPosition,R=void 0===O?Tj:O,P=e.tooltipAnchor,z=void 0===P?"top":P,D=w(null),N=D[0],I=D[1],B=C(null);x((function(){B.current=N}),[B,N]);var F=M((function(e){if(!t.current||0===n.length)return null;var r=zD(t.current,e),a=r[0],l=r[1],c=o.find(a,l),d=void 0!==c?n[c]:null;if(d&&u!==1/0){var f=i(d),h=f[0],p=f[1];RD(a,l,h+s.left,p+s.top)>u&&(c=null,d=null)}return null===c||null===d?null:[c,d]}),[t,o,n,i,s,u]),j=mT(),W=j.showTooltipAt,H=j.showTooltipFromEvent,U=j.hideTooltip,V=A((function(){if(E)return"cursor"===R?function(e,t){H(E(e),t,z)}:function(e){var t=i(e),n=t[0],r=t[1];W(E(e),[n+s.left,r+s.top],z)}}),[W,H,E,R,z,i,s]),$=M((function(e){var t=F(e);if(I(t),null==a||a(t?t[1]:null),t){var n=t[1];null==V||V(n,e),null==h||h(t[1],e)}}),[F,I,a,V,h]),q=M((function(e){var t=F(e);if(I(t),t){var n=t[0],r=t[1];if(null==a||a(r),null==V||V(r,e),B.current){var i=B.current,o=i[0],l=i[1];n!==o?null==g||g(l,e):null==p||p(r,e)}else null==h||h(r,e)}else null==a||a(null),null==U||U(),B.current&&(null==g||g(B.current[1],e))}),[F,I,a,B,h,p,g,V,U]),Y=M((function(e){I(null),null==a||a(null),U(),g&&B.current&&g(B.current[1],e)}),[I,a,B,U,g]),G=M((function(e){var t=F(e);I(t),t&&(null==v||v(t[1],e))}),[F,I,v]),X=M((function(e){var t=F(e);I(t),t&&(null==m||m(t[1],e))}),[F,I,m]),Z=M((function(e){var t=F(e);I(t),t&&(null==b||b(t[1],e))}),[F,I,b]),K=M((function(e){var t=F(e);I(t),t&&(null==y||y(t[1],e))}),[F,I,y]),J=M((function(e){var t=F(e);L&&(I(t),null==a||a(t?t[1]:null)),t&&(null==_||_(t[1],e))}),[F,I,a,L,_]),Q=M((function(e){var t=F(e);L&&(I(t),null==a||a(t?t[1]:null)),t&&(null==k||k(t[1],e))}),[F,I,a,L,k]),ee=M((function(e){L&&(I(null),null==a||a(null)),S&&B.current&&S(B.current[1],e)}),[L,I,a,S,B]);return{current:N,handleMouseEnter:f?$:void 0,handleMouseMove:f?q:void 0,handleMouseLeave:f?Y:void 0,handleMouseDown:f?G:void 0,handleMouseUp:f?X:void 0,handleClick:f?Z:void 0,handleDoubleClick:f?K:void 0,handleTouchStart:f?J:void 0,handleTouchMove:f?Q:void 0,handleTouchEnd:f?ee:void 0}}({elementRef:z,nodes:t,delaunay:N,margin:a,detectionRadius:S,setCurrent:s,onMouseEnter:c,onMouseMove:u,onMouseLeave:d,onMouseDown:f,onMouseUp:h,onClick:p,onDoubleClick:g,onTouchStart:v,onTouchMove:m,onTouchEnd:b,enableTouchCrosshair:_,tooltip:T,tooltipPosition:E,tooltipAnchor:R}),F=B.current,j=B.handleMouseEnter,W=B.handleMouseMove,H=B.handleMouseLeave,U=B.handleMouseDown,V=B.handleMouseUp,$=B.handleClick,q=B.handleDoubleClick,Y=B.handleTouchStart,G=B.handleTouchMove,X=B.handleTouchEnd,Z=A((function(){if(P&&I)return I.render()}),[P,I]);return ln("g",{ref:z,transform:"translate("+-a.left+","+-a.top+")",children:[P&&I&&ln(r,{children:[ln("path",{d:Z,stroke:"red",strokeWidth:1,opacity:.75}),S<1/0&&ln("path",{stroke:"red",strokeWidth:.35,fill:"none",d:N.renderPoints(void 0,S)}),F&&ln("path",{fill:"pink",opacity:.35,d:I.renderCell(F[0])})]}),ln("rect",{"data-ref":"mesh-interceptor",width:a.left+n+a.right,height:a.top+i+a.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:j,onMouseMove:W,onMouseLeave:H,onMouseDown:U,onMouseUp:V,onTouchStart:Y,onTouchMove:G,onTouchEnd:X,onClick:$,onDoubleClick:q})]})};function Nj(){return Nj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nj.apply(null,arguments)}function Ij(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Bj,Fj={xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},curve:"linear",colors:{scheme:"nivo"},lineWidth:2,layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],enablePoints:!0,pointSize:6,pointColor:{from:"series.color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,enableGridX:!0,enableGridY:!0,legends:[],isInteractive:!0,tooltip:E((function(e){var t=e.point;return ln(lT,{id:ln("span",{children:["x: ",ln("strong",{children:t.data.xFormatted}),", y:"," ",ln("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.seriesColor})})),sliceTooltip:E((function(e){var t=e.slice,n=e.axis,r=eT(),i="x"===n?"y":"x";return ln(cT,{rows:t.points.map((function(e){return[ln(aT,{color:e.seriesColor,style:r.tooltip.chip},"chip"),e.seriesId,ln("span",{style:r.tooltip.tableCellValue,children:e.data[i+"Formatted"]},"value")]}))})})),debugMesh:!1,renderWrapper:!0},jj=Nj({},Fj,{defs:[],fill:[],enablePointLabel:!1,pointLabel:"data.yFormatted",areaBlendMode:"normal",axisTop:null,axisRight:null,axisBottom:FB,axisLeft:FB,useMesh:!1,enableSlices:!1,debugSlices:!1,enableCrosshair:!0,crosshairType:"bottom-left",enableTouchCrosshair:!1,initialHiddenIds:[],animate:!0,motionConfig:"gentle",role:"img",isFocusable:!1}),Wj=Nj({},Fj,{pixelRatio:"undefined"!=typeof window&&null!=(Bj=window.devicePixelRatio)?Bj:1,axisTop:null,axisRight:null,axisBottom:FB,axisLeft:FB});function Hj(e){return A((function(){return Bu().defined((function(e){return null!==e.x&&null!==e.y})).x((function(e){return e.x})).y((function(e){return e.y})).curve(CD(e))}),[e])}function Uj(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return A((function(){return Fu().defined((function(e){return null!==e.x&&null!==e.y})).x((function(e){return e.x})).y1((function(e){return e.y})).curve(CD(t)).y0(n(r))}),[t,n,r])}var Vj=function(e){var t=e.data,n=e.xScale,r=void 0===n?Fj.xScale:n,i=e.xFormat,o=e.yScale,a=void 0===o?Fj.yScale:o,l=e.yFormat,s=e.width,c=e.height,u=e.colors,d=void 0===u?Fj.colors:u,f=e.curve,h=void 0===f?Fj.curve:f,p=e.areaBaselineValue,g=void 0===p?Fj.areaBaselineValue:p,v=e.pointColor,m=void 0===v?Fj.pointColor:v,b=e.pointBorderColor,y=void 0===b?Fj.pointBorderColor:b,_=e.enableSlices,x=void 0===_?jj.enableSlices:_,k=e.initialHiddenIds,C=void 0===k?jj.initialHiddenIds:k,S=w(YF("line"))[0],T=LD(i),L=LD(l),E=bF(d,"id"),O=eT(),R=cF(m,O),P=cF(y,O),z=w(null!=C?C:[]),D=z[0],N=z[1],I=A((function(){return kB(t.filter((function(e){return-1===D.indexOf(e.id)})),r,a,s,c)}),[t,D,r,a,s,c]),B=I.xScale,F=I.yScale,j=I.series,W=A((function(){var e=t.map((function(e){return{id:e.id,label:""+e.id,color:E(e)}})),n=e.map((function(e){return Nj({},j.find((function(t){return t.id===e.id})),{color:e.color})})).filter((function(e){return Boolean(e.id)}));return{legendData:e.map((function(e){return Nj({},e,{hidden:!n.find((function(t){return t.id===e.id}))})})).reverse(),series:n}}),[t,j,E]),H=W.legendData,U=W.series,V=M((function(e){N((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(t,[e])}))}),[]),$=function(e){var t=e.series,n=e.getPointColor,r=e.getPointBorderColor,i=e.formatX,o=e.formatY;return A((function(){return t.reduce((function(e,t,a){return[].concat(e,t.data.filter((function(e){return null!==e.position.x&&null!==e.position.y})).map((function(l,s){var c={id:t.id+"."+s,indexInSeries:s,absIndex:e.length+s,seriesIndex:a,seriesId:t.id,seriesColor:t.color,x:l.position.x,y:l.position.y,data:Nj({},l.data,{xFormatted:i(l.data.x),yFormatted:o(l.data.y)})};return c.color=n({series:t,point:c}),c.borderColor=r(c),c})))}),[])}),[t,n,r,i,o])}({series:U,getPointColor:R,getPointBorderColor:P,formatX:T,formatY:L}),q=function(e){var t=e.componentId,n=e.enableSlices,r=e.points,i=e.width,o=e.height;return A((function(){if("x"===n){var e=new Map;return r.forEach((function(t){null!==t.data.x&&null!==t.data.y&&(e.has(t.x)?e.get(t.x).push(t):e.set(t.x,[t]))})),Array.from(e.entries()).sort((function(e,t){return e[0]-t[0]})).map((function(e,n,r){var a,l,s=e[0],c=e[1],u=r[n-1],d=r[n+1];return a=u?s-(s-u[0])/2:s,l=d?s-a+(d[0]-s)/2:i-a,{id:"slice:"+t+":"+s,x0:a,x:s,y0:0,y:0,width:l,height:o,points:c.reverse()}}))}if("y"===n){var a=new Map;return r.forEach((function(e){null!==e.data.x&&null!==e.data.y&&(a.has(e.y)?a.get(e.y).push(e):a.set(e.y,[e]))})),Array.from(a.entries()).sort((function(e,t){return e[0]-t[0]})).map((function(e,t,n){var r,a,l=e[0],s=e[1],c=n[t-1],u=n[t+1];return r=c?l-(l-c[0])/2:l,a=u?l-r+(u[0]-l)/2:o-r,{id:l,x0:0,x:0,y0:r,y:l,width:i,height:a,points:s.reverse()}}))}return[]}),[t,n,o,r,i])}({componentId:S,enableSlices:x,points:$,width:s,height:c});return{legendData:H,toggleSeries:V,lineGenerator:Hj(h),areaGenerator:Uj({curve:h,yScale:F,areaBaselineValue:g}),getColor:E,series:U,xScale:B,yScale:F,slices:q,points:$}},$j=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,o=e.path,a=Rz(),l=a.animate,s=a.config,c=wD(o),u=tx({color:r,config:s,immediate:!l});return ln(fC.path,{d:c,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},qj=E((function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode;return ln("g",{children:e.series.slice(0).reverse().map((function(e){return ln($j,Nj({path:t(e.data.map((function(e){return e.position})))},Nj({areaOpacity:n,areaBlendMode:r},e)),""+e.id)}))})})),Yj=E((function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,o=A((function(){return t(n)}),[t,n]),a=wD(o);return ln(fC.path,{d:a,fill:"none",strokeWidth:i,stroke:r})})),Gj=E((function(e){var t=e.series,n=e.lineGenerator,i=e.lineWidth;return ln(r,{children:t.slice(0).reverse().map((function(e){var t=e.id,r=e.data,o=e.color;return ln(Yj,{points:r.map((function(e){return e.position})),lineGenerator:n,color:o,thickness:i},t)}))})})),Xj=E((function(e){var t=e.slice,n=e.slices,r=e.axis,i=e.debug,o=e.tooltip,a=e.isCurrent,l=e.setCurrent,s=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onMouseDown,f=e.onMouseUp,h=e.onClick,p=e.onDoubleClick,g=e.onTouchStart,v=e.onTouchMove,m=e.onTouchEnd,b=mT(),y=b.showTooltipFromEvent,_=b.hideTooltip,w=M((function(e){y(R(o,{slice:t,axis:r}),e,"right"),l(t),null==s||s(t,e)}),[y,o,t,r,l,s]),x=M((function(e){y(R(o,{slice:t,axis:r}),e,"right"),null==c||c(t,e)}),[y,o,t,r,c]),k=M((function(e){_(),l(null),null==u||u(t,e)}),[_,l,u,t]),C=M((function(e){null==d||d(t,e)}),[t,d]),S=M((function(e){null==f||f(t,e)}),[t,f]),A=M((function(e){null==h||h(t,e)}),[t,h]),T=M((function(e){null==p||p(t,e)}),[t,p]),L=M((function(e){y(R(o,{slice:t,axis:r}),e,"right"),l(t),null==g||g(t,e)}),[r,g,l,y,t,o]),E=M((function(e){var i=e.touches[0],a=document.elementFromPoint(i.clientX,i.clientY),s=null==a?void 0:a.getAttribute("data-ref");if(s){var c=n.find((function(e){return e.id===s}));c&&(y(R(o,{slice:c,axis:r}),e,"right"),l(c))}null==v||v(t,e)}),[r,v,l,y,t,n,o]),O=M((function(e){_(),l(null),null==m||m(t,e)}),[_,l,m,t]);return ln("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:i?1:0,strokeOpacity:.75,fill:"red",fillOpacity:a&&i?.35:0,onMouseEnter:w,onMouseMove:x,onMouseLeave:k,onMouseDown:C,onMouseUp:S,onClick:A,onDoubleClick:T,onTouchStart:L,onTouchMove:E,onTouchEnd:O,"data-ref":t.id})})),Zj=E((function(e){var t=e.slices,n=e.axis,i=e.debug,o=e.tooltip,a=e.current,l=e.setCurrent,s=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onMouseDown,f=e.onMouseUp,h=e.onClick,p=e.onDoubleClick,g=e.onTouchStart,v=e.onTouchMove,m=e.onTouchEnd;return ln(r,{children:t.map((function(e){return ln(Xj,{slice:e,slices:t,axis:n,debug:i,tooltip:o,setCurrent:l,isCurrent:null!==a&&a.id===e.id,onMouseEnter:s,onMouseMove:c,onMouseLeave:u,onMouseDown:d,onMouseUp:f,onClick:h,onDoubleClick:p,onTouchStart:g,onTouchMove:v,onTouchEnd:m},e.id)}))})})),Kj=E((function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,o=e.enableLabel,a=e.label,l=e.labelYOffset,s=e.isFocusable,c=e.setCurrentPoint,u=e.tooltip,d=e.margin,f=e.ariaLabel,h=e.ariaLabelledBy,p=e.ariaDescribedBy,g=e.ariaHidden,v=e.ariaDisabled,m=function(e){var t=IE(e)?e:function(t){return jA(t,e)};return t}(a),b=mT(),y=b.showTooltipAt,_=b.hideTooltip,w=t.slice(0).sort((function(e,t){return e.indexInSeries-t.indexInSeries})).sort((function(e,t){return t.seriesIndex-e.seriesIndex})).map((function(e){return{id:e.id,x:e.x,y:e.y,datum:e.data,fill:e.color,stroke:e.borderColor,label:o?m(e):null,ariaLabel:f?f(e):void 0,ariaLabelledBy:h?h(e):void 0,ariaDescribedBy:p?p(e):void 0,ariaHidden:g?g(e):void 0,ariaDisabled:v?v(e):void 0,onFocus:s?function(){c(e),y(R(u,{point:e}),[d.left+e.x,d.top+e.y],"top")}:void 0,onBlur:s?function(){c(null),_()}:void 0}}));return ln("g",{children:w.map((function(e){return ln(bD,{x:e.x,y:e.y,datum:e.datum,symbol:n,size:r,color:e.fill,borderWidth:i,borderColor:e.stroke,label:e.label,labelYOffset:l,ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabelledBy,ariaDescribedBy:e.ariaDescribedBy,ariaHidden:e.ariaHidden,ariaDisabled:e.ariaDisabled,isFocusable:s,onFocus:e.onFocus,onBlur:e.onBlur,testId:"line.point."+e.id},e.id)}))})})),Jj=E((function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=e.setCurrent,a=e.onMouseEnter,l=e.onMouseMove,s=e.onMouseLeave,c=e.onMouseDown,u=e.onMouseUp,d=e.onClick,f=e.onDoubleClick,h=e.onTouchStart,p=e.onTouchMove,g=e.onTouchEnd,v=e.tooltip,m=e.debug,b=e.enableTouchCrosshair,y=mT(),_=y.showTooltipAt,w=y.hideTooltip,x=M((function(e,t){_(R(v,{point:e}),[e.x+i.left,e.y+i.top],"top"),null==a||a(e,t)}),[_,v,a,i]),k=M((function(e,t){_(R(v,{point:e}),[e.x+i.left,e.y+i.top],"top"),null==l||l(e,t)}),[_,v,i.left,i.top,l]),C=M((function(e,t){w(),null==s||s(e,t)}),[w,s]),S=M((function(e,t){null==c||c(e,t)}),[c]),A=M((function(e,t){null==u||u(e,t)}),[u]),T=M((function(e,t){null==d||d(e,t)}),[d]),L=M((function(e,t){null==f||f(e,t)}),[f]),E=M((function(e,t){_(R(v,{point:e}),[e.x+i.left,e.y+i.top],"top"),null==h||h(e,t)}),[i.left,i.top,h,_,v]),O=M((function(e,t){_(R(v,{point:e}),[e.x+i.left,e.y+i.top],"top"),null==p||p(e,t)}),[i.left,i.top,p,_,v]),P=M((function(e,t){w(),null==g||g(e,t)}),[g,w]);return ln(Dj,{nodes:t,width:n,height:r,setCurrent:o,onMouseEnter:x,onMouseMove:k,onMouseLeave:C,onMouseDown:S,onMouseUp:A,onClick:T,onDoubleClick:L,onTouchStart:E,onTouchMove:O,onTouchEnd:P,enableTouchCrosshair:b,debug:m})})),Qj=["isInteractive","animate","motionConfig","theme","renderWrapper"];function eW(e){var t=e.data,n=e.xScale,r=void 0===n?jj.xScale:n,i=e.xFormat,o=e.yScale,a=void 0===o?jj.yScale:o,l=e.yFormat,s=e.curve,c=void 0===s?jj.curve:s,u=e.margin,d=e.width,f=e.height,h=e.colors,p=void 0===h?jj.colors:h,g=e.lineWidth,v=void 0===g?jj.lineWidth:g,m=e.layers,b=void 0===m?jj.layers:m,y=e.enableArea,_=void 0===y?jj.enableArea:y,x=e.areaBaselineValue,k=void 0===x?jj.areaBaselineValue:x,C=e.areaOpacity,S=void 0===C?jj.areaOpacity:C,M=e.areaBlendMode,A=void 0===M?jj.areaBlendMode:M,T=e.enablePoints,L=void 0===T?jj.enablePoints:T,E=e.pointSymbol,O=e.pointSize,R=void 0===O?jj.pointSize:O,P=e.pointColor,D=void 0===P?jj.pointColor:P,N=e.pointBorderWidth,I=void 0===N?jj.pointBorderWidth:N,B=e.pointBorderColor,F=void 0===B?jj.pointBorderColor:B,j=e.enablePointLabel,W=void 0===j?jj.enablePointLabel:j,H=e.pointLabel,U=void 0===H?jj.pointLabel:H,V=e.pointLabelYOffset,$=e.enableGridX,q=void 0===$?jj.enableGridX:$,Y=e.gridXValues,G=e.enableGridY,X=void 0===G?jj.enableGridY:G,Z=e.gridYValues,K=e.axisTop,J=e.axisRight,Q=e.axisBottom,ee=void 0===Q?jj.axisBottom:Q,te=e.axisLeft,ne=void 0===te?jj.axisLeft:te,re=e.defs,ie=void 0===re?jj.defs:re,oe=e.fill,ae=void 0===oe?jj.fill:oe,le=e.markers,se=e.legends,ce=void 0===se?jj.legends:se,ue=e.isInteractive,de=void 0===ue?jj.isInteractive:ue,fe=e.useMesh,he=void 0===fe?jj.useMesh:fe,pe=e.debugMesh,ge=void 0===pe?jj.debugMesh:pe,ve=e.onMouseEnter,me=e.onMouseMove,be=e.onMouseLeave,ye=e.onMouseDown,_e=e.onMouseUp,we=e.onClick,xe=e.onDoubleClick,ke=e.onTouchStart,Ce=e.onTouchMove,Se=e.onTouchEnd,Me=e.tooltip,Ae=void 0===Me?jj.tooltip:Me,Te=e.enableSlices,Le=void 0===Te?jj.enableSlices:Te,Ee=e.debugSlices,Oe=void 0===Ee?jj.debugSlices:Ee,Re=e.sliceTooltip,Pe=void 0===Re?jj.sliceTooltip:Re,ze=e.enableCrosshair,De=void 0===ze?jj.enableCrosshair:ze,Ne=e.crosshairType,Ie=void 0===Ne?jj.crosshairType:Ne,Be=e.enableTouchCrosshair,Fe=void 0===Be?jj.enableTouchCrosshair:Be,je=e.role,We=void 0===je?jj.role:je,He=e.ariaLabel,Ue=e.ariaLabelledBy,Ve=e.ariaDescribedBy,$e=e.isFocusable,qe=void 0===$e?jj.isFocusable:$e,Ye=e.pointAriaLabel,Ge=e.pointAriaLabelledBy,Xe=e.pointAriaDescribedBy,Ze=e.pointAriaHidden,Ke=e.pointAriaDisabled,Je=e.initialHiddenIds,Qe=void 0===Je?jj.initialHiddenIds:Je,et=e.forwardedRef,tt=MD(d,f,u),nt=tt.margin,rt=tt.innerWidth,it=tt.innerHeight,ot=tt.outerWidth,at=tt.outerHeight,lt=Vj({data:t,xScale:r,xFormat:i,yScale:a,yFormat:l,width:rt,height:it,colors:p,curve:c,areaBaselineValue:k,pointColor:D,pointBorderColor:F,enableSlices:Le,initialHiddenIds:Qe}),st=lt.legendData,ct=lt.toggleSeries,ut=lt.lineGenerator,dt=lt.areaGenerator,ft=lt.series,ht=lt.xScale,pt=lt.yScale,gt=lt.slices,vt=lt.points,mt=w(null),bt=mt[0],yt=mt[1],_t=w(null),wt=_t[0],xt=_t[1],kt={grid:null,markers:null,axes:null,areas:null,crosshair:null,lines:null,points:null,slices:null,mesh:null,legends:null};b.includes("grid")&&(q||X)&&(kt.grid=ln($B,{width:rt,height:it,xScale:q?ht:null,yScale:X?pt:null,xValues:Y,yValues:Z},"grid")),b.includes("markers")&&Array.isArray(le)&&le.length>0&&(kt.markers=ln(_D,{markers:le,width:rt,height:it,xScale:ht,yScale:pt},"markers")),b.includes("axes")&&(kt.axes=ln(HB,{xScale:ht,yScale:pt,width:rt,height:it,top:K,right:J,bottom:ee,left:ne},"axes")),b.includes("lines")&&(kt.lines=ln(Gj,{series:ft,lineGenerator:ut,lineWidth:v},"lines")),b.includes("legends")&&ce.length>0&&(kt.legends=ln(z,{children:ce.map((function(e,t){return ln(UF,Nj({},e,{containerWidth:rt,containerHeight:it,data:e.data||st,toggleSerie:e.toggleSerie?ct:void 0}),t)}))},"legends"));var Ct=ID(ie,ft,ae);_&&(kt.areas=ln(qj,{areaGenerator:dt,areaOpacity:S,areaBlendMode:A,series:ft},"areas")),de&&!1!==Le&&(kt.slices=ln(Zj,{slices:gt,axis:Le,debug:Oe,tooltip:Pe,current:wt,setCurrent:xt,onMouseEnter:ve,onMouseMove:me,onMouseLeave:be,onMouseDown:ye,onMouseUp:_e,onClick:we,onDoubleClick:xe,onTouchStart:ke,onTouchMove:Ce,onTouchEnd:Se},"slices")),L&&(kt.points=ln(Kj,{points:vt,symbol:E,size:R,borderWidth:I,enableLabel:W,label:U,labelYOffset:V,isFocusable:qe,setCurrentPoint:yt,tooltip:Ae,margin:nt,ariaLabel:Ye,ariaLabelledBy:Ge,ariaDescribedBy:Xe,ariaHidden:Ze,ariaDisabled:Ke},"points")),de&&De&&(null!==bt&&(kt.crosshair=ln(dT,{width:rt,height:it,x:bt.x,y:bt.y,type:Ie},"crosshair")),null!==wt&&Le&&(kt.crosshair=ln(dT,{width:rt,height:it,x:wt.x,y:wt.y,type:Le},"crosshair"))),de&&he&&!1===Le&&(kt.mesh=ln(Jj,{points:vt,width:rt,height:it,margin:nt,setCurrent:yt,onMouseEnter:ve,onMouseMove:me,onMouseLeave:be,onMouseDown:ye,onMouseUp:_e,onClick:we,onDoubleClick:xe,onTouchStart:ke,onTouchMove:Ce,onTouchEnd:Se,tooltip:Ae,enableTouchCrosshair:Fe,debug:ge},"mesh"));var St=Nj({},e,{innerWidth:rt,innerHeight:it,series:ft,slices:gt,points:vt,xScale:ht,yScale:pt,lineGenerator:ut,areaGenerator:dt,currentPoint:bt,setCurrentPoint:yt,currentSlice:wt,setCurrentSlice:xt});return ln(vD,{defs:Ct,width:ot,height:at,margin:nt,role:We,ariaLabel:He,ariaLabelledBy:Ue,ariaDescribedBy:Ve,isFocusable:qe,ref:et,children:b.map((function(e,t){return"function"==typeof e?ln(z,{children:e(St)},t):kt[e]}))})}var tW=S((function(e,t){var n=e.isInteractive,r=void 0===n?jj.isInteractive:n,i=e.animate,o=void 0===i?jj.animate:i,a=e.motionConfig,l=void 0===a?jj.motionConfig:a,s=e.theme,c=e.renderWrapper,u=Ij(e,Qj);return ln(Dz,{animate:o,isInteractive:r,motionConfig:l,renderWrapper:c,theme:s,children:ln(eW,Nj({isInteractive:r},u,{forwardedRef:t}))})})),nW=["defaultWidth","defaultHeight","onResize","debounceResize"],rW=S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Ij(e,nW);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(tW,Nj({width:n,height:r},a,{ref:t}))}})})),iW=["isInteractive","renderWrapper","theme"],oW=function(e){var t=e.width,n=e.height,r=e.margin,i=e.pixelRatio,o=void 0===i?Wj.pixelRatio:i,a=e.data,l=e.xScale,s=void 0===l?Wj.xScale:l,c=e.xFormat,u=e.yScale,d=void 0===u?Wj.yScale:u,f=e.yFormat,h=e.curve,p=void 0===h?Wj.curve:h,g=e.layers,v=void 0===g?Wj.layers:g,m=e.colors,b=void 0===m?Wj.colors:m,y=e.lineWidth,_=void 0===y?Wj.lineWidth:y,k=e.enableArea,S=void 0===k?Wj.enableArea:k,T=e.areaBaselineValue,L=void 0===T?Wj.areaBaselineValue:T,E=e.areaOpacity,O=void 0===E?Wj.areaOpacity:E,P=e.enablePoints,z=void 0===P?Wj.enablePoints:P,D=e.pointSize,N=void 0===D?Wj.pointSize:D,I=e.pointColor,B=void 0===I?Wj.pointColor:I,F=e.pointBorderWidth,j=void 0===F?Wj.pointBorderWidth:F,W=e.pointBorderColor,H=void 0===W?Wj.pointBorderColor:W,U=e.enableGridX,V=void 0===U?Wj.enableGridX:U,$=e.gridXValues,q=e.enableGridY,Y=void 0===q?Wj.enableGridY:q,G=e.gridYValues,X=e.axisTop,Z=e.axisRight,K=e.axisBottom,J=void 0===K?Wj.axisBottom:K,Q=e.axisLeft,ee=void 0===Q?Wj.axisLeft:Q,te=e.legends,ne=void 0===te?Wj.legends:te,re=e.isInteractive,ie=void 0===re?Wj.isInteractive:re,oe=e.debugMesh,ae=void 0===oe?Wj.debugMesh:oe,le=e.onMouseLeave,se=e.onMouseDown,ce=e.onMouseUp,ue=e.onClick,de=e.onDoubleClick,fe=e.tooltip,he=void 0===fe?Wj.tooltip:fe,pe=e.role,ge=e.forwardedRef,ve=C(null),me=MD(t,n,r),be=me.margin,ye=me.innerWidth,_e=me.innerHeight,we=me.outerWidth,xe=me.outerHeight,ke=eT(),Ce=w(null),Se=Ce[0],Me=Ce[1],Ae=Vj({data:a,xScale:s,xFormat:c,yScale:d,yFormat:f,width:ye,height:_e,colors:b,curve:p,areaBaselineValue:L,pointColor:B,pointBorderColor:H}),Te=Ae.lineGenerator,Le=Ae.areaGenerator,Ee=Ae.series,Oe=Ae.xScale,Re=Ae.yScale,Pe=Ae.points,ze=A((function(){return{innerWidth:ye,innerHeight:_e,series:Ee,points:Pe,xScale:Oe,yScale:Re,lineWidth:_,lineGenerator:Te,areaGenerator:Le,currentPoint:Se,setCurrentPoint:Me}}),[ye,_e,Ee,Pe,Oe,Re,_,Te,Le,Se,Me]),De=Ej({points:Pe,width:ye,height:_e,debug:ae}),Ne=De.delaunay,Ie=De.voronoi;x((function(){if(null!==ve.current){ve.current.width=we*o,ve.current.height=xe*o;var e=ve.current.getContext("2d");e.scale(o,o),e.fillStyle=ke.background,e.fillRect(0,0,we,xe),e.translate(be.left,be.top),v.forEach((function(t){var n;"function"==typeof t&&t(e,ze);var r=null!=(n=ke.grid.line.strokeWidth)?n:0;if("grid"===t&&"string"!=typeof r&&r>0&&(e.lineWidth=r,e.strokeStyle=ke.grid.line.stroke,V&&GB(e,{width:ye,height:_e,scale:Oe,axis:"x",values:$}),Y&&GB(e,{width:ye,height:_e,scale:Re,axis:"y",values:G})),"axes"===t&&YB(e,{xScale:Oe,yScale:Re,width:ye,height:_e,top:X,right:Z,bottom:J,left:ee,theme:ke}),"areas"===t&&!0===S){e.save(),e.globalAlpha=O,Le.context(e);for(var i=Ee.length-1;i>=0;i--)e.fillStyle=Ee[i].color,e.beginPath(),Le(Ee[i].data.map((function(e){return e.position}))),e.fill();e.restore()}if("lines"===t&&(Te.context(e),Ee.forEach((function(t){e.strokeStyle=t.color,e.lineWidth=_,e.beginPath(),Te(t.data.map((function(e){return e.position}))),e.stroke()}))),"points"===t&&!0===z&&N>0&&Pe.forEach((function(t){e.fillStyle=t.color,e.beginPath(),e.arc(t.x,t.y,N/2,0,2*Math.PI),e.fill(),j>0&&(e.strokeStyle=t.borderColor,e.lineWidth=j,e.stroke())})),"mesh"===t&&!0===ae&&void 0!==Ie&&(function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()}(e,Ie),Se&&function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()}(e,Ie,Se.absIndex)),"legends"===t){var o=Ee.map((function(e){return{id:e.id,label:e.id,color:e.color}})).reverse();ne.forEach((function(t){$F(e,Nj({},t,{data:t.data||o,containerWidth:ye,containerHeight:_e,theme:ke}))}))}}))}}),[ve,ye,we,_e,xe,be.left,be.top,o,v,ke,Te,Ee,Oe,Re,V,$,Y,G,X,Z,J,ee,ne,Pe,z,N,j,Se,ze,ae,S,Le,O,_,Ie]);var Be=M((function(e){if(!ve.current)return null;var t=zD(ve.current,e),n=t[0],r=t[1];if(!PD(be.left,be.top,ye,_e,n,r))return null;var i=Ne.find(n-be.left,r-be.top);return Pe[i]}),[ve,be,ye,_e,Ne,Pe]),Fe=mT(),je=Fe.showTooltipFromEvent,We=Fe.hideTooltip,He=M((function(e){var t=Be(e);Me(t),t?je(R(he,{point:t}),e):We()}),[Be,Me,je,We,he]),Ue=M((function(e){We(),Me(null),Se&&(null==le||le(Se,e))}),[We,Me,le,Se]),Ve=M((function(e){if(se){var t=Be(e);t&&se(t,e)}}),[Be,se]),$e=M((function(e){if(ce){var t=Be(e);t&&ce(t,e)}}),[Be,ce]),qe=M((function(e){if(ue){var t=Be(e);t&&ue(t,e)}}),[Be,ue]),Ye=M((function(e){if(de){var t=Be(e);t&&de(t,e)}}),[Be,de]);return ln("canvas",{ref:BD(ve,ge),width:we*o,height:xe*o,style:{width:we,height:xe,cursor:ie?"auto":"normal"},onMouseEnter:ie?He:void 0,onMouseMove:ie?He:void 0,onMouseLeave:ie?Ue:void 0,onMouseDown:ie?Ve:void 0,onMouseUp:ie?$e:void 0,onClick:ie?qe:void 0,onDoubleClick:ie?Ye:void 0,role:pe})},aW=S((function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=Ij(e,iW);return ln(Dz,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:ln(oW,Nj({},o,{forwardedRef:t}))})})),lW=["defaultWidth","defaultHeight","onResize","debounceResize"];S((function(e,t){var n=e.defaultWidth;e.defaultHeight;var r=e.onResize,i=e.debounceResize,o=Ij(e,lW);return ln(Bz,{defaultWidth:n,defaultHeight:n,onResize:r,debounceResize:i,children:function(e){var n=e.width,r=e.height;return ln(aW,Nj({width:n,height:r},o,{ref:t}))}})}));var sW="styles_empty-data-stub__DuGJ2";const cW=({label:e,width:t,height:n,ariaLabel:r=e})=>ln("div",{role:"img","aria-label":r,className:sW,style:{width:t,height:n},children:e}),uW={anchor:"right",direction:"column",justify:!1,translateX:100,translateY:0,itemsSpacing:0,itemDirection:"left-to-right",itemWidth:80,itemHeight:20,itemOpacity:.75,symbolSize:12,symbolShape:"square",symbolBorderColor:"rgba(0, 0, 0, .5)",effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]},dW={tickSize:5,tickPadding:5,tickRotation:45,ticksPosition:"before"},fW={tickSize:5,tickPadding:5,tickRotation:0},hW={top:60,right:110,bottom:60,left:80},pW={type:"point"},gW={type:"linear",min:"auto",max:"auto",reverse:!1},vW={margin:hW,xScale:pW,yScale:gW,axisTop:null,axisRight:null,axisBottom:dW,axisLeft:fW,useMesh:!0,enableArea:!0},mW={background:"var(--bg-base-primary)",axis:{ticks:{text:{fill:"var(--on-text-secondary)"}},legend:{text:{fill:"var(--on-text-primary)"}},grid:{line:{stroke:"var(--on-border-muted)"}}},legends:{text:{fill:"var(--on-text-secondary)"}},tooltip:{container:{background:"var(--bg-base-modal)",color:"var(--on-text-primary)"}}};let bW=function(e){return e.Mesh="Mesh",e.SlicesX="SlicesX",e.SlicesY="SlicesY",e}({});const yW=64,_W=(e,t,n)=>{const{constant:r=yW,...i}=n??{};return{type:"symlog",min:e,max:t,constant:r,...i}},wW=(e,t)=>{const n=e.flatMap((e=>e.data)).map((e=>e.y)),r=Math.min(...n),i=Math.max(...n);return _W(r,i,t)},xW=({kind:e=bW.Mesh,width:t="100%",height:n=400,emptyLabel:r="No data available",emptyAriaLabel:i="No data available",axisBottom:o,rootAriaLabel:a,data:l,...s})=>{const c=(e=>{switch(e){case bW.SlicesX:return{useMesh:!1,enableSlices:"x"};case bW.SlicesY:return{useMesh:!1,enableSlices:"y"};case bW.Mesh:default:return{useMesh:!0,enableSlices:void 0}}})(e),u=d(((t,n)=>{e===bW.Mesh?s?.onClick?.(t,n):[bW.SlicesX,bW.SlicesY].includes(e)&&s?.onSliceClick?.(t,n)}),[e,s]),f=d(((t,n)=>{e===bW.Mesh?s?.onTouchEnd?.(t,n):[bW.SlicesX,bW.SlicesY].includes(e)&&s?.onSliceTouchEnd?.(t,n)}),[e,s]),p=h((()=>{const e=l?.flatMap((e=>e.data?.map((e=>e.x))));return[...new Set(e)].sort(((e,t)=>{const n=e?.toString()||"",r=t?.toString()||"",i=n.split(/(\d+)/).filter(Boolean),o=r.split(/(\d+)/).filter(Boolean);for(let e=0;e<Math.min(i.length,o.length);e++){const t=parseInt(i[e],10),n=parseInt(o[e],10);if(isNaN(t)||isNaN(n)){const t=i[e].localeCompare(o[e]);if(0!==t)return t}else if(t!==n)return t-n}return i.length-o.length}))}),[l]);return!l||0===l.length||l.every((e=>!e.data?.length))?ln(cW,{label:r,width:t,height:n,ariaLabel:i}):ln("div",{role:"img","aria-label":a,tabIndex:0,style:{width:t,height:n},children:ln(rW,{...vW,...c,...s,data:l,onClick:u,onTouchEnd:f,axisBottom:{...dW,...o,tickValues:p},theme:mW})})},kW=({title:e,mode:t,items:n,slices:r,min:i,max:o,height:a=400,width:l="100%",rootAriaLabel:s,translations:u})=>{const[f,p]=c([]),g=u["no-results"],v=h((()=>_W(i,o,{constant:8})),[o,i]),m=h((()=>t===lo.Percent?" >-.2%":" >-.2f"),[t]),b=d((e=>{const t=e.points.reduce(((e,t)=>(e.push(t.data.x),e)),[]);p((()=>t))}),[]);return h((()=>r.filter((e=>f.includes(e.metadata.executionId)))),[r,f]),ln(xv,{title:e,children:ln(xW,{kind:bW.SlicesX,data:n,height:a,width:l,emptyLabel:g,emptyAriaLabel:g,rootAriaLabel:s,colors:({color:e})=>e,yScale:v,yFormat:m,onSliceClick:b,onSliceTouchEnd:b})})},CW=e=>{switch(e){case"passed":return"var(--bg-support-castor)";case"failed":return"var(--bg-support-capella)";case"broken":return"var(--bg-support-atlas)";case"unknown":default:return"var(--bg-support-skat)";case"skipped":return"var(--bg-support-rau)"}},SW=e=>{const{positiveValue:t,negativeValue:n,absTotal:r,noValuePercentage:i=-1}=e;if(0===Math.abs(t)+Math.abs(n))return i;const o=Math.abs(t)-Math.abs(n),a=(l=Math.abs(o),s=r,Math.floor(l/s*1e4)/100);var l,s;return o>0?50+a:o<0?50-a:50},MW=(e,t)=>{const[n,r]=e,i=t.map(((e,i)=>n+(r-n)*(i/(t.length-1))));return Cl().domain(i).range(t.map((e=>((e,t=document.documentElement)=>{if(e.startsWith("var(")){const n=e.match(/var\((--[^),\s]+)/);if(n){const r=n[1];return getComputedStyle(t).getPropertyValue(r).trim()||e}}return e})(e)))).interpolate(aa).clamp(!0)};var AW="styles_legend__JMBvn",TW="styles_chart__mUNSO";const LW=e=>"number"==typeof e&&e>=0&&e<=100,EW=({slices:e,percentage:t,className:n})=>ln("article",{"aria-label":"Success rate",role:"presentation",className:j(TW,n),children:[ln("svg",{"aria-hidden":!0,viewBox:"0 0 100 100",children:ln("g",{transform:"translate(50, 50)",children:e.map((e=>!!e.d&&ln("path",{d:e.d,fill:"__empty__"===e.status?"var(--bg-control-secondary)":CW(e.status)},e.status)))})}),LW(t)&&ln(hn,{className:AW,size:"s",tag:"b",children:0===t?"0":`${t}%`})]});var OW,RW,PW,zW,DW,NW,IW,BW,FW,jW,WW,HW,UW,VW,$W,qW,YW,GW,XW,ZW,KW,JW,QW,eH,tH,nH,rH,iH,oH,aH,lH,sH,cH,uH,dH,fH,hH,pH,gH,vH,mH,bH,yH,_H;function wH(){if(jW)return FW;jW=1;var e=bP(),t=wS(),n=yz(),r=bz(),i=Object.getOwnPropertySymbols?function(r){for(var i=[];r;)e(i,n(r)),r=t(r);return i}:r;return FW=i}function xH(){if(VW)return UW;VW=1;var e=vz(),t=wH(),n=YM();return UW=function(r){return e(r,n,t)},UW}function kH(){if(eH)return QW;eH=1;var e=mS(),t=function(){if(GW)return YW;GW=1;var e=mS();return YW=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}(),n=function(){if(ZW)return XW;ZW=1;var e=/\w*$/;return XW=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}(),r=function(){if(JW)return KW;JW=1;var e=bC(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return KW=function(e){return n?Object(n.call(e)):{}},KW}(),i=bS();return QW=function(o,a,l){var s=o.constructor;switch(a){case"[object ArrayBuffer]":return e(o);case"[object Boolean]":case"[object Date]":return new s(+o);case"[object DataView]":return t(o,l);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return i(o,l);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(o);case"[object RegExp]":return n(o);case"[object Symbol]":return r(o)}},QW}function CH(){if(iH)return rH;iH=1;var e=function(){if(nH)return tH;nH=1;var e=Cz(),t=CS();return tH=function(n){return t(n)&&"[object Map]"==e(n)}}(),t=HS(),n=FM(),r=n&&n.isMap,i=r?t(r):e;return rH=i}function SH(){if(sH)return lH;sH=1;var e=function(){if(aH)return oH;aH=1;var e=Cz(),t=CS();return oH=function(n){return t(n)&&"[object Set]"==e(n)}}(),t=HS(),n=FM(),r=n&&n.isSet,i=r?t(r):e;return lH=i}function MH(){if(uH)return cH;uH=1;var e=EC(),t=(RW||(RW=1,OW=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}),OW),n=HM(),r=function(){if(zW)return PW;zW=1;var e=UM(),t=wz();return PW=function(n,r){return n&&e(r,t(r),n)},PW}(),i=function(){if(NW)return DW;NW=1;var e=UM(),t=YM();return DW=function(n,r){return n&&e(r,t(r),n)},DW}(),o=gS(),a=yS(),l=function(){if(BW)return IW;BW=1;var e=UM(),t=yz();return IW=function(n,r){return e(n,t(n),r)},IW}(),s=function(){if(HW)return WW;HW=1;var e=UM(),t=wH();return WW=function(n,r){return e(n,t(n),r)},WW}(),c=xz(),u=xH(),d=Cz(),f=function(){if(qW)return $W;qW=1;var e=Object.prototype.hasOwnProperty;return $W=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r},$W}(),h=kH(),p=kS(),g=MS(),v=jS(),m=CH(),b=_C(),y=SH(),_=wz(),w=YM(),x="[object Arguments]",k="[object Function]",C="[object Object]",S={};return S[x]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S[C]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S[k]=S["[object WeakMap]"]=!1,cH=function M(A,T,L,E,O,R){var P,z=1&T,D=2&T,N=4&T;if(L&&(P=O?L(A,E,O,R):L(A)),void 0!==P)return P;if(!b(A))return A;var I=g(A);if(I){if(P=f(A),!z)return a(A,P)}else{var B=d(A),F=B==k||"[object GeneratorFunction]"==B;if(v(A))return o(A,z);if(B==C||B==x||F&&!O){if(P=D||F?{}:p(A),!z)return D?s(A,i(P,A)):l(A,r(P,A))}else{if(!S[B])return O?A:{};P=h(A,B,z)}}R||(R=new e);var j=R.get(A);if(j)return j;R.set(A,P),y(A)?A.forEach((function(e){P.add(M(e,T,L,e,A,R))})):m(A)&&A.forEach((function(e,t){P.set(t,M(e,T,L,t,A,R))}));var W=I?void 0:(N?D?u:c:D?w:_)(A);return t(W||A,(function(e,t){W&&(e=A[t=e]),n(P,t,M(e,T,L,t,A,R))})),P},cH}function AH(){if(fH)return dH;return fH=1,dH=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o},dH}function TH(){if(vH)return gH;vH=1;var e=RA(),t=DE(),n=function(){if(pH)return hH;pH=1;var e=zA(),t=AH();return hH=function(n,r){return r.length<2?n:e(n,t(r,0,-1))},hH}(),r=PA(),i=Object.prototype.hasOwnProperty;return gH=function(o,a){var l=-1,s=(a=e(a,o)).length;if(!s)return!0;for(var c=null==o||"object"!=typeof o&&"function"!=typeof o;++l<s;){var u=a[l];if("string"==typeof u){if("__proto__"===u&&!i.call(o,"__proto__"))return!1;if("constructor"===u&&l+1<s&&"string"==typeof a[l+1]&&"prototype"===a[l+1]){if(c&&0===l)continue;return!1}}}var d=n(o,a);return null==d||delete d[r(t(a))]},gH}var LH,EH,OH=function(){if(_H)return yH;_H=1;var e=EA(),t=MH(),n=TH(),r=RA(),i=UM(),o=function(){if(bH)return mH;bH=1;var e=WS();return mH=function(t){return e(t)?void 0:t}}(),a=_P(),l=xH(),s=a((function(a,s){var c={};if(null==a)return c;var u=!1;s=e(s,(function(e){return e=r(e,a),u||(u=e.length>1),e})),i(a,l(a),c),u&&(c=t(c,7,o));for(var d=s.length;d--;)n(c,s[d]);return c}));return yH=s}(),RH=Pd(OH);var PH,zH,DH,NH,IH,BH,FH,jH,WH,HH,UH,VH,$H,qH,YH,GH,XH,ZH,KH,JH,QH,eU,tU,nU,rU,iU,oU,aU,lU,sU,cU,uU,dU,fU,hU=Pd(function(){if(EH)return LH;EH=1;var e=MH();return LH=function(t){return e(t,5)}}());function pU(){if(BH)return IH;BH=1;var e=(NH||(NH=1,DH=function(e){return function(t){return null==e?void 0:e[t]}}),DH),t=e({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});return IH=t}function gU(){if(GH)return YH;GH=1;var e=function(){if(HH)return WH;HH=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;return WH=function(t){return t.match(e)||[]}}(),t=function(){if(VH)return UH;VH=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;return UH=function(t){return e.test(t)}}(),n=OA(),r=function(){if(qH)return $H;qH=1;var e="\\ud800-\\udfff",t="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",r="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",o="["+i+"]",a="\\d+",l="["+t+"]",s="["+n+"]",c="[^"+e+i+a+t+n+r+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",f="["+r+"]",h="(?:"+s+"|"+c+")",p="(?:"+f+"|"+c+")",g="(?:['’](?:d|ll|m|re|s|t|ve))?",v="(?:['’](?:D|LL|M|RE|S|T|VE))?",m="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",y=b+m+"(?:\\u200d(?:"+["[^"+e+"]",u,d].join("|")+")"+b+m+")*",_="(?:"+[l,u,d].join("|")+")"+y,w=RegExp([f+"?"+s+"+"+g+"(?="+[o,f,"$"].join("|")+")",p+"+"+v+"(?="+[o,f+h,"$"].join("|")+")",f+"?"+h+"+"+g,f+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a,_].join("|"),"g");return $H=function(e){return e.match(w)||[]}}();return YH=function(i,o,a){return i=n(i),void 0===(o=a?void 0:o)?t(i)?r(i):e(i):i.match(o)||[]}}function vU(){if(ZH)return XH;ZH=1;var e=(zH||(zH=1,PH=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}),PH),t=function(){if(jH)return FH;jH=1;var e=pU(),t=OA(),n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");return FH=function(i){return(i=t(i))&&i.replace(n,e).replace(r,"")}}(),n=gU(),r=RegExp("['’]","g");return XH=function(i){return function(o){return e(n(t(o).replace(r,"")),i,"")}}}function mU(){if(eU)return QH;eU=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return QH=function(t){return e.test(t)}}function bU(){if(aU)return oU;aU=1;var e=nU?tU:(nU=1,tU=function(e){return e.split("")}),t=mU(),n=function(){if(iU)return rU;iU=1;var e="\\ud800-\\udfff",t="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",i="[^"+e+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+n+"|"+r+")?",s="[\\ufe0e\\ufe0f]?",c=s+l+"(?:\\u200d(?:"+[i,o,a].join("|")+")"+s+l+")*",u="(?:"+[i+n+"?",n,o,a,t].join("|")+")",d=RegExp(r+"(?="+r+")|"+u+c,"g");return rU=function(e){return e.match(d)||[]}}();return oU=function(r){return t(r)?n(r):e(r)}}function yU(){if(sU)return lU;sU=1;var e=function(){if(JH)return KH;JH=1;var e=AH();return KH=function(t,n,r){var i=t.length;return r=void 0===r?i:r,!n&&r>=i?t:e(t,n,r)},KH}(),t=mU(),n=bU(),r=OA();return lU=function(i){return function(o){o=r(o);var a=t(o)?n(o):void 0,l=a?a[0]:o.charAt(0),s=a?e(a,1).join(""):o.slice(1);return l[i]()+s}}}var _U=function(){if(fU)return dU;fU=1;var e=vU(),t=function(){if(uU)return cU;uU=1;var e=yU()("toUpperCase");return cU=e}(),n=e((function(e,n,r){return e+(r?" ":"")+t(n)}));return dU=n}(),wU=Pd(_U);function xU(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function kU(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=SU)):void 0===t&&(t=CU);for(var n,r,i,o,a,l=new TU(e),s=[l];n=s.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)s.push(r=i[o]=new TU(i[o])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(AU)}function CU(e){return e.children}function SU(e){return Array.isArray(e)?e[1]:null}function MU(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function AU(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function TU(e){this.data=e,this.depth=this.height=0,this.parent=null}function LU(){return 0}function EU(e){return function(){return e}}function OU(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)}function RU(e,t,n,r,i){for(var o,a=e.children,l=-1,s=a.length,c=e.value&&(r-t)/e.value;++l<s;)(o=a[l]).y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*c}function PU(e,t,n,r,i){for(var o,a=e.children,l=-1,s=a.length,c=e.value&&(i-n)/e.value;++l<s;)(o=a[l]).x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*c}TU.prototype=kU.prototype={constructor:TU,count:function(){return this.eachAfter(xU)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],l=[],s=-1;o=a.pop();)if(l.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=l.pop();)e.call(t,o,++s,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return kU(this).eachBefore(MU)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}};var zU=function e(t){function n(e,n,r,i,o){!function(e,t,n,r,i,o){for(var a,l,s,c,u,d,f,h,p,g,v,m=[],b=t.children,y=0,_=0,w=b.length,x=t.value;y<w;){s=i-n,c=o-r;do{u=b[_++].value}while(!u&&_<w);for(d=f=u,v=u*u*(g=Math.max(c/s,s/c)/(x*e)),p=Math.max(f/v,v/d);_<w;++_){if(u+=l=b[_].value,l<d&&(d=l),l>f&&(f=l),v=u*u*g,(h=Math.max(f/v,v/d))>p){u-=l;break}p=h}m.push(a={value:u,dice:s<c,children:b.slice(y,_)}),a.dice?RU(a,n,r,i,x?r+=c*u/x:o):PU(a,n,r,x?n+=s*u/x:i,o),x-=u,y=_}}(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}((1+Math.sqrt(5))/2);function DU(){var e=zU,t=!1,n=1,r=1,i=[0],o=LU,a=LU,l=LU,s=LU,c=LU;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(OU),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=o(t)/2,r+=c(t)-n,u+=a(t)-n,(d-=l(t)-n)<r&&(r=d=(r+d)/2),(f-=s(t)-n)<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=function(e){if("function"!=typeof e)throw new Error;return e}(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(o="function"==typeof e?e:EU(+e),u):o},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(a="function"==typeof e?e:EU(+e),u):a},u.paddingRight=function(e){return arguments.length?(l="function"==typeof e?e:EU(+e),u):l},u.paddingBottom=function(e){return arguments.length?(s="function"==typeof e?e:EU(+e),u):s},u.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:EU(+e),u):c},u}function NU(){return NU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NU.apply(null,arguments)}function IU(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var BU=function(e,t){return sx([e,t],(function(e,t){return"translate("+e+","+t+")"}))},FU=function(e,t){return sx([e,t],(function(e,t){return"translate("+e+"px, "+t+"px)"}))},jU=function(e,t,n){return sx([e,t,n],(function(e,t,n){return"translate("+e+","+t+") rotate("+n+")"}))},WU=function(e,t,n){return sx([e,t,n],(function(e,t,n){return"translate("+e+"px,"+t+"px) rotate("+n+"deg)"}))},HU=function(e,t,n){return sx([e,t,n],(function(e,t,n){return"translate("+(e-(0===n?0:5))+"px,"+(t-(0===n?5:0))+"px) rotate("+n+"deg)"}))},UU=E((function(e){var t=e.node,n=e.animatedProps,r=e.borderWidth,i=e.enableLabel,o=e.enableParentLabel,a=e.labelSkipSize,l=eT(),s=i&&t.isLeaf&&(0===a||Math.min(t.width,t.height)>a),c=o&&t.isParent;return ln(fC.g,{transform:BU(n.x,n.y),children:[ln(fC.rect,{"data-testid":"node."+t.id,width:sx(n.width,(function(e){return Math.max(e,0)})),height:sx(n.height,(function(e){return Math.max(e,0)})),fill:t.fill?t.fill:n.color,strokeWidth:r,stroke:t.borderColor,fillOpacity:t.opacity,onMouseEnter:t.onMouseEnter,onMouseMove:t.onMouseMove,onMouseLeave:t.onMouseLeave,onClick:t.onClick}),s&&ln(QD,{"data-testid":"label."+t.id,textAnchor:"middle",dominantBaseline:"central",style:NU({},l.labels.text,{fill:t.labelTextColor,pointerEvents:"none"}),fillOpacity:n.labelOpacity,transform:jU(n.labelX,n.labelY,n.labelRotation),children:t.label}),c&&ln(QD,{"data-testid":"parentLabel."+t.id,dominantBaseline:"central",style:NU({},l.labels.text,{fill:t.parentLabelTextColor,pointerEvents:"none"}),fillOpacity:n.parentLabelOpacity,transform:jU(n.parentLabelX,n.parentLabelY,n.parentLabelRotation),children:t.parentLabel})]})})),VU=E((function(e){var t=e.node;return ln(lT,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})})),$U=E((function(e){var t=e.node,n=e.animatedProps,r=e.borderWidth,i=e.enableLabel,o=e.enableParentLabel,a=e.labelSkipSize,l=eT(),s=i&&t.isLeaf&&(0===a||Math.min(t.width,t.height)>a),c=o&&t.isParent;return ln(fC.div,{"data-testid":"node."+t.id,id:t.path.replace(/[^\w]/gi,"-"),style:{boxSizing:"border-box",position:"absolute",top:0,left:0,transform:FU(n.x,n.y),width:n.width,height:n.height,borderWidth:r,borderStyle:"solid",borderColor:t.borderColor,overflow:"hidden"},children:[ln(fC.div,{style:{boxSizing:"border-box",position:"absolute",top:0,left:0,opacity:t.opacity,width:n.width,height:n.height,background:n.color},onMouseEnter:t.onMouseEnter,onMouseMove:t.onMouseMove,onMouseLeave:t.onMouseLeave,onClick:t.onClick}),s&&ln(fC.span,{"data-testid":"label."+t.id,style:NU({},l.labels.text,{position:"absolute",display:"flex",top:-5,left:-5,width:10,height:10,justifyContent:"center",alignItems:"center",whiteSpace:"nowrap",color:t.labelTextColor,transformOrigin:"center center",transform:WU(n.labelX,n.labelY,n.labelRotation),opacity:n.labelOpacity,pointerEvents:"none"}),children:t.label}),c&&ln(fC.span,{"data-testid":"parentLabel."+t.id,style:NU({},l.labels.text,{position:"absolute",display:"flex",justifyContent:"flex-start",alignItems:"center",whiteSpace:"nowrap",width:10,height:10,color:t.parentLabelTextColor,transformOrigin:"top left",transform:HU(n.parentLabelX,n.parentLabelY,n.parentLabelRotation),opacity:n.parentLabelOpacity,pointerEvents:"none"}),children:t.parentLabel})]})})),qU={layers:["nodes"],identity:"id",value:"value",tile:"squarify",leavesOnly:!1,innerPadding:0,outerPadding:0,colors:{scheme:"nivo"},colorBy:"pathComponents.1",nodeOpacity:.33,enableLabel:!0,label:"formattedValue",labelSkipSize:0,labelTextColor:{from:"color",modifiers:[["darker",1]]},orientLabel:!0,enableParentLabel:!0,parentLabel:"id",parentLabelSize:20,parentLabelPosition:"top",parentLabelPadding:6,parentLabelTextColor:{from:"color",modifiers:[["darker",1]]},borderWidth:1,borderColor:{from:"color",modifiers:[["darker",1]]},isInteractive:!0,tooltip:VU,role:"img",animate:!0,motionConfig:"gentle"},YU=NU({},qU,{nodeComponent:UU,defs:[],fill:[]}),GU=NU({},qU,{nodeComponent:$U}),XU=NU({},qU,{pixelRatio:"undefined"!=typeof window&&window.devicePixelRatio||1}),ZU={binary:function(e,t,n,r,i){var o,a,l=e.children,s=l.length,c=new Array(s+1);for(c[0]=a=o=0;o<s;++o)c[o+1]=a+=l[o].value;!function e(t,n,r,i,o,a,s){if(t>=n-1){var u=l[t];return u.x0=i,u.y0=o,u.x1=a,void(u.y1=s)}var d=c[t],f=r/2+d,h=t+1,p=n-1;for(;h<p;){var g=h+p>>>1;c[g]<f?h=g+1:p=g}f-c[h-1]<c[h]-f&&t+1<h&&--h;var v=c[h]-d,m=r-v;if(a-i>s-o){var b=r?(i*m+a*v)/r:a;e(t,h,v,i,o,b,s),e(h,n,m,b,o,a,s)}else{var y=r?(o*m+s*v)/r:s;e(t,h,v,i,o,a,y),e(h,n,m,i,y,a,s)}}(0,s,e.value,t,n,r,i)},dice:RU,slice:PU,sliceDice:function(e,t,n,r,i){(1&e.depth?PU:RU)(e,t,n,r,i)},squarify:zU},KU=function(e){var t=e.data,n=e.width,r=e.height,i=e.identity,o=void 0===i?qU.identity:i,a=e.value,l=void 0===a?qU.value:a,s=e.valueFormat,c=e.leavesOnly,u=void 0===c?qU.leavesOnly:c,d=e.tile,f=void 0===d?qU.tile:d,h=e.innerPadding,p=void 0===h?qU.innerPadding:h,g=e.outerPadding,v=void 0===g?qU.outerPadding:g,m=e.label,b=void 0===m?qU.label:m,y=e.orientLabel,_=void 0===y?qU.orientLabel:y,w=e.enableParentLabel,x=void 0===w?qU.enableParentLabel:w,k=e.parentLabel,C=void 0===k?qU.parentLabel:k,S=e.parentLabelSize,M=void 0===S?qU.parentLabelSize:S,T=e.parentLabelPosition,L=void 0===T?qU.parentLabelPosition:T,E=e.parentLabelPadding,O=void 0===E?qU.parentLabelPadding:E,R=e.colors,P=void 0===R?qU.colors:R,z=e.colorBy,D=void 0===z?qU.colorBy:z,N=e.nodeOpacity,I=void 0===N?qU.nodeOpacity:N,B=e.borderColor,F=void 0===B?qU.borderColor:B,j=e.labelTextColor,W=void 0===j?qU.labelTextColor:j,H=e.parentLabelTextColor,U=void 0===H?qU.parentLabelTextColor:H,V=OD(o),$=OD(l),q=LD(s),Y=OD(b),G=OD(C),X=function(e){var t=e.width,n=e.height,r=e.tile,i=e.innerPadding,o=e.outerPadding,a=e.enableParentLabel,l=e.parentLabelSize,s=e.parentLabelPosition,c=e.leavesOnly;return A((function(){var e=DU().size([t,n]).tile(ZU[r]).round(!0).paddingInner(i).paddingOuter(o);if(a&&!c){var u=l+2*o;e["padding"+wU(s)](u)}return e}),[t,n,r,i,o,a,l,s,c])}({width:n,height:r,tile:f,innerPadding:p,outerPadding:v,enableParentLabel:x,parentLabelSize:M,parentLabelPosition:L,leavesOnly:u}),Z=function(e){var t=e.root,n=e.getValue;return A((function(){return kU(t).sum(n)}),[t,n])}({root:t,getValue:$}),K=A((function(){var e=hU(Z);return X(e),u?e.leaves():e.descendants()}),[Z,X,u]),J=A((function(){return K.map((function(e){var t=function(e,t){var n=e.ancestors().map((function(e){return t(e.data)})).reverse();return{path:n.join("."),pathComponents:n}}(e,V),n=t.path,r=t.pathComponents,i={id:V(e.data),path:n,pathComponents:r,data:RH(e.data,"children"),x:e.x0,y:e.y0,width:e.x1-e.x0,height:e.y1-e.y0,value:e.value,formattedValue:q(e.value),treeDepth:e.depth,treeHeight:e.height,isParent:e.height>0,isLeaf:0===e.height,parentLabelX:0,parentLabelY:0,parentLabelRotation:0};return i.labelRotation=_&&i.height>i.width?-90:0,"top"===L&&(i.parentLabelX=v+O,i.parentLabelY=v+M/2),"right"===L&&(i.parentLabelX=i.width-v-M/2,i.parentLabelY=i.height-v-O,i.parentLabelRotation=-90),"bottom"===L&&(i.parentLabelX=v+O,i.parentLabelY=i.height-v-M/2),"left"===L&&(i.parentLabelX=v+M/2,i.parentLabelY=i.height-v-O,i.parentLabelRotation=-90),i.label=Y(i),i.parentLabel=G(i),i}))}),[K,V,q,Y,_,G,M,L,O,v]),Q=eT(),ee=bF(P,D),te=cF(F,Q),ne=cF(W,Q),re=cF(U,Q),ie=A((function(){return J.map((function(e){var t=NU({},e,{color:ee(e),opacity:I});return t.borderColor=te(t),t.labelTextColor=ne(t),t.parentLabelTextColor=re(t),t}))}),[J,ee,I,te,ne,re]);return{hierarchy:Z,nodes:ie,layout:X}},JU=function(e){var t=e.nodes;return A((function(){return{nodes:t}}),[t])},QU=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height,color:e.color,labelX:e.width/2,labelY:e.height/2,labelRotation:e.labelRotation,labelOpacity:1,parentLabelX:e.parentLabelX,parentLabelY:e.parentLabelY,parentLabelRotation:e.parentLabelRotation,parentLabelOpacity:1}},eV=function(e){return{x:e.x+e.width/2,y:e.y+e.height/2,width:0,height:0,color:e.color,labelX:0,labelY:0,labelRotation:e.labelRotation,labelOpacity:0,parentLabelX:0,parentLabelY:0,parentLabelRotation:e.parentLabelRotation,parentLabelOpacity:0}},tV=E((function(e){var t=e.nodes,n=e.nodeComponent,i=e.borderWidth,o=e.enableLabel,a=e.labelSkipSize,l=e.enableParentLabel,s=function(e,t){var n=t.isInteractive,r=t.onMouseEnter,i=t.onMouseMove,o=t.onMouseLeave,a=t.onClick,l=t.tooltip,s=mT(),c=s.showTooltipFromEvent,u=s.hideTooltip,d=M((function(e,t){c(R(l,{node:e}),t,"left")}),[c,l]),f=M((function(e,t){d(e,t),null==r||r(e,t)}),[r,d]),h=M((function(e,t){d(e,t),null==i||i(e,t)}),[i,d]),p=M((function(e,t){u(),null==o||o(e,t)}),[o,u]),g=M((function(e,t){null==a||a(e,t)}),[a]);return A((function(){return e.map((function(e){return n?NU({},e,{onMouseEnter:function(t){return f(e,t)},onMouseMove:function(t){return h(e,t)},onMouseLeave:function(t){return p(e,t)},onClick:function(t){return g(e,t)}}):e}))}),[n,e,f,h,p,g])}(t,{isInteractive:e.isInteractive,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseLeave:e.onMouseLeave,onClick:e.onClick,tooltip:e.tooltip}),c=Rz(),u=c.animate,d=c.config,f=nx(s,{keys:function(e){return e.path},initial:QU,from:eV,enter:QU,update:QU,leave:eV,config:d,immediate:!u});return ln(r,{children:f((function(e,t){return R(n,{key:t.path,node:t,animatedProps:e,borderWidth:i,enableLabel:o,labelSkipSize:a,enableParentLabel:l})}))})})),nV=["isInteractive","animate","motionConfig","theme","renderWrapper"],rV=function(e){var t=e.data,n=e.identity,r=void 0===n?YU.identity:n,i=e.value,o=void 0===i?YU.value:i,a=e.valueFormat,l=e.tile,s=void 0===l?YU.tile:l,c=e.nodeComponent,u=void 0===c?YU.nodeComponent:c,d=e.innerPadding,f=void 0===d?YU.innerPadding:d,h=e.outerPadding,p=void 0===h?YU.outerPadding:h,g=e.leavesOnly,v=void 0===g?YU.leavesOnly:g,m=e.width,b=e.height,y=e.margin,_=e.layers,w=void 0===_?YU.layers:_,x=e.colors,k=void 0===x?YU.colors:x,C=e.colorBy,S=void 0===C?YU.colorBy:C,M=e.nodeOpacity,A=void 0===M?YU.nodeOpacity:M,T=e.borderWidth,L=void 0===T?YU.borderWidth:T,E=e.borderColor,O=void 0===E?YU.borderColor:E,P=e.defs,D=void 0===P?YU.defs:P,N=e.fill,I=void 0===N?YU.fill:N,B=e.enableLabel,F=void 0===B?YU.enableLabel:B,j=e.label,W=void 0===j?YU.label:j,H=e.labelTextColor,U=void 0===H?YU.labelTextColor:H,V=e.orientLabel,$=void 0===V?YU.orientLabel:V,q=e.labelSkipSize,Y=void 0===q?YU.labelSkipSize:q,G=e.enableParentLabel,X=void 0===G?YU.enableParentLabel:G,Z=e.parentLabel,K=void 0===Z?YU.parentLabel:Z,J=e.parentLabelSize,Q=void 0===J?YU.parentLabelSize:J,ee=e.parentLabelPosition,te=void 0===ee?YU.parentLabelPosition:ee,ne=e.parentLabelPadding,re=void 0===ne?YU.parentLabelPadding:ne,ie=e.parentLabelTextColor,oe=void 0===ie?YU.parentLabelTextColor:ie,ae=e.isInteractive,le=void 0===ae?YU.isInteractive:ae,se=e.onMouseEnter,ce=e.onMouseMove,ue=e.onMouseLeave,de=e.onClick,fe=e.tooltip,he=void 0===fe?YU.tooltip:fe,pe=e.role,ge=e.ariaLabel,ve=e.ariaLabelledBy,me=e.ariaDescribedBy,be=e.forwardedRef,ye=MD(m,b,y),_e=ye.margin,we=ye.innerWidth,xe=ye.innerHeight,ke=ye.outerWidth,Ce=ye.outerHeight,Se=KU({data:t,identity:r,value:o,valueFormat:a,leavesOnly:v,width:we,height:xe,tile:s,innerPadding:f,outerPadding:p,colors:k,colorBy:S,nodeOpacity:A,borderColor:O,label:W,labelTextColor:U,orientLabel:$,enableParentLabel:X,parentLabel:K,parentLabelSize:Q,parentLabelPosition:te,parentLabelPadding:re,parentLabelTextColor:oe}).nodes,Me={nodes:null};w.includes("nodes")&&(Me.nodes=ln(tV,{nodes:Se,nodeComponent:u,borderWidth:L,enableLabel:F,labelSkipSize:Y,enableParentLabel:X,isInteractive:le,onMouseEnter:se,onMouseMove:ce,onMouseLeave:ue,onClick:de,tooltip:he},"nodes"));var Ae=JU({nodes:Se}),Te=ID(D,Se,I);return ln(vD,{width:ke,height:Ce,margin:_e,defs:Te,role:pe,ariaLabel:ge,ariaLabelledBy:ve,ariaDescribedBy:me,ref:be,children:w.map((function(e,t){var n;return"function"==typeof e?ln(z,{children:R(e,Ae)},t):null!=(n=null==Me?void 0:Me[e])?n:null}))})},iV=S((function(e,t){var n=e.isInteractive,r=void 0===n?YU.isInteractive:n,i=e.animate,o=void 0===i?YU.animate:i,a=e.motionConfig,l=void 0===a?YU.motionConfig:a,s=e.theme,c=e.renderWrapper,u=IU(e,nV);return ln(Dz,{animate:o,isInteractive:r,motionConfig:l,renderWrapper:c,theme:s,children:ln(rV,NU({},u,{isInteractive:r,forwardedRef:t}))})})),oV=["defaultWidth","defaultHeight","onResize","debounceResize"],aV=S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=IU(e,oV);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(iV,NU({},a,{width:n,height:r,ref:t}))}})})),lV=["isInteractive","animate","motionConfig","theme","renderWrapper"],sV=function(e){var t=e.data,n=e.identity,r=void 0===n?GU.identity:n,i=e.value,o=void 0===i?GU.value:i,a=e.tile,l=void 0===a?GU.tile:a,s=e.nodeComponent,c=void 0===s?GU.nodeComponent:s,u=e.valueFormat,d=e.innerPadding,f=void 0===d?GU.innerPadding:d,h=e.outerPadding,p=void 0===h?GU.outerPadding:h,g=e.leavesOnly,v=void 0===g?GU.leavesOnly:g,m=e.width,b=e.height,y=e.margin,_=e.layers,w=void 0===_?YU.layers:_,x=e.colors,k=void 0===x?GU.colors:x,C=e.colorBy,S=void 0===C?GU.colorBy:C,M=e.nodeOpacity,A=void 0===M?GU.nodeOpacity:M,T=e.borderWidth,L=void 0===T?GU.borderWidth:T,E=e.borderColor,O=void 0===E?GU.borderColor:E,P=e.enableLabel,D=void 0===P?GU.enableLabel:P,N=e.label,I=void 0===N?GU.label:N,B=e.labelTextColor,F=void 0===B?GU.labelTextColor:B,j=e.orientLabel,W=void 0===j?GU.orientLabel:j,H=e.labelSkipSize,U=void 0===H?GU.labelSkipSize:H,V=e.enableParentLabel,$=void 0===V?GU.enableParentLabel:V,q=e.parentLabel,Y=void 0===q?GU.parentLabel:q,G=e.parentLabelSize,X=void 0===G?GU.parentLabelSize:G,Z=e.parentLabelPosition,K=void 0===Z?GU.parentLabelPosition:Z,J=e.parentLabelPadding,Q=void 0===J?GU.parentLabelPadding:J,ee=e.parentLabelTextColor,te=void 0===ee?GU.parentLabelTextColor:ee,ne=e.isInteractive,re=void 0===ne?GU.isInteractive:ne,ie=e.onMouseEnter,oe=e.onMouseMove,ae=e.onMouseLeave,le=e.onClick,se=e.tooltip,ce=void 0===se?GU.tooltip:se,ue=e.role,de=e.ariaLabel,fe=e.ariaLabelledBy,he=e.ariaDescribedBy,pe=e.forwardedRef,ge=MD(m,b,y),ve=ge.margin,me=ge.innerWidth,be=ge.innerHeight,ye=ge.outerWidth,_e=ge.outerHeight,we=KU({data:t,identity:r,value:o,valueFormat:u,leavesOnly:v,width:me,height:be,tile:l,innerPadding:f,outerPadding:p,colors:k,colorBy:S,nodeOpacity:A,borderColor:O,label:I,labelTextColor:F,orientLabel:W,enableParentLabel:$,parentLabel:Y,parentLabelSize:X,parentLabelPosition:K,parentLabelPadding:Q,parentLabelTextColor:te}).nodes,xe={nodes:null};w.includes("nodes")&&(xe.nodes=ln(tV,{nodes:we,nodeComponent:c,borderWidth:L,enableLabel:D,labelSkipSize:U,enableParentLabel:$,isInteractive:re,onMouseEnter:ie,onMouseMove:oe,onMouseLeave:ae,onClick:le,tooltip:ce},"nodes"));var ke=JU({nodes:we});return ln("div",{role:ue,"aria-label":de,"aria-labelledby":fe,"aria-describedby":he,style:{position:"relative",width:ye,height:_e},ref:pe,children:ln("div",{style:{position:"absolute",top:ve.top,left:ve.left},children:w.map((function(e,t){var n;return"function"==typeof e?ln(z,{children:R(e,ke)},t):null!=(n=null==xe?void 0:xe[e])?n:null}))})})},cV=S((function(e,t){var n=e.isInteractive,r=void 0===n?GU.isInteractive:n,i=e.animate,o=void 0===i?GU.animate:i,a=e.motionConfig,l=void 0===a?GU.motionConfig:a,s=e.theme,c=e.renderWrapper,u=IU(e,lV);return ln(Dz,{animate:o,isInteractive:r,motionConfig:l,renderWrapper:c,theme:s,children:ln(sV,NU({},u,{isInteractive:r,forwardedRef:t}))})})),uV=["defaultWidth","defaultHeight","onResize","debounceResize"];S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=IU(e,uV);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(cV,NU({},a,{width:n,height:r,ref:t}))}})}));var dV=["theme","isInteractive","animate","motionConfig","renderWrapper"],fV=function(e,t,n,r){return e.find((function(e){return PD(e.x+t.left,e.y+t.top,e.width,e.height,n,r)}))},hV=function(e){var t=e.data,n=e.identity,r=void 0===n?XU.identity:n,i=e.value,o=void 0===i?XU.identity:i,a=e.tile,l=void 0===a?XU.tile:a,s=e.valueFormat,c=e.innerPadding,u=void 0===c?XU.innerPadding:c,d=e.outerPadding,f=void 0===d?XU.outerPadding:d,h=e.leavesOnly,p=void 0===h?XU.leavesOnly:h,g=e.width,v=e.height,m=e.margin,b=e.colors,y=void 0===b?XU.colors:b,_=e.colorBy,w=void 0===_?XU.colorBy:_,k=e.nodeOpacity,S=void 0===k?XU.nodeOpacity:k,A=e.borderWidth,T=void 0===A?XU.borderWidth:A,L=e.borderColor,E=void 0===L?XU.borderColor:L,O=e.enableLabel,P=void 0===O?XU.enableLabel:O,z=e.label,D=void 0===z?XU.label:z,N=e.labelTextColor,I=void 0===N?XU.labelTextColor:N,B=e.orientLabel,F=void 0===B?XU.orientLabel:B,j=e.labelSkipSize,W=void 0===j?XU.labelSkipSize:j,H=e.isInteractive,U=void 0===H?XU.isInteractive:H,V=e.onMouseMove,$=e.onClick,q=e.tooltip,Y=void 0===q?XU.tooltip:q,G=e.pixelRatio,X=void 0===G?XU.pixelRatio:G,Z=e.role,K=e.ariaLabel,J=e.ariaLabelledBy,Q=e.ariaDescribedBy,ee=e.forwardedRef,te=C(null),ne=MD(g,v,m),re=ne.margin,ie=ne.innerWidth,oe=ne.innerHeight,ae=ne.outerWidth,le=ne.outerHeight,se=KU({data:t,identity:r,value:o,valueFormat:s,leavesOnly:p,width:ie,height:oe,tile:l,innerPadding:u,outerPadding:f,colors:y,colorBy:w,nodeOpacity:S,borderColor:E,label:D,labelTextColor:I,orientLabel:F,enableParentLabel:!1}).nodes,ce=eT();x((function(){if(null!==te.current){var e=te.current.getContext("2d");null!==e&&(te.current.width=ae*X,te.current.height=le*X,e.scale(X,X),e.fillStyle=ce.background,e.fillRect(0,0,ae,le),e.translate(re.left,re.top),se.forEach((function(t){e.fillStyle=t.color,e.fillRect(t.x,t.y,t.width,t.height),T>0&&(e.strokeStyle=t.borderColor,e.lineWidth=T,e.strokeRect(t.x,t.y,t.width,t.height))})),P&&(e.textAlign="center",e.textBaseline="middle",FD(e,ce.labels.text),se.forEach((function(t){if(t.isLeaf&&(0===W||Math.min(t.width,t.height)>W)){var n=F&&t.height>t.width;e.save(),e.translate(t.x+t.width/2,t.y+t.height/2),e.rotate(Zz(n?-90:0)),jD(e,NU({},ce.labels.text,{fill:t.labelTextColor}),String(t.label)),e.restore()}}))))}}),[te,se,ae,le,ie,oe,re,T,P,F,W,ce,X]);var ue=mT(),de=ue.showTooltipFromEvent,fe=ue.hideTooltip,he=M((function(e){if(null!==te.current){var t=zD(te.current,e),n=t[0],r=t[1],i=fV(se,re,n,r);void 0!==i?(de(R(Y,{node:i}),e,"left"),null==V||V(i,e)):fe()}}),[te,se,re,de,fe,Y,V]),pe=M((function(){fe()}),[fe]),ge=M((function(e){if(null!==te.current){var t=zD(te.current,e),n=t[0],r=t[1],i=fV(se,re,n,r);void 0!==i&&(null==$||$(i,e))}}),[te,se,re,$]);return ln("canvas",{ref:BD(te,ee),width:ae*X,height:le*X,style:{width:ae,height:le},onMouseEnter:U?he:void 0,onMouseMove:U?he:void 0,onMouseLeave:U?pe:void 0,onClick:U?ge:void 0,role:Z,"aria-label":K,"aria-labelledby":J,"aria-describedby":Q})},pV=S((function(e,t){var n=e.theme,r=e.isInteractive,i=void 0===r?XU.isInteractive:r,o=e.animate,a=void 0===o?XU.animate:o,l=e.motionConfig,s=void 0===l?XU.motionConfig:l,c=e.renderWrapper,u=IU(e,dV);return ln(Dz,{isInteractive:i,animate:a,motionConfig:s,theme:n,renderWrapper:c,children:ln(hV,NU({},u,{isInteractive:i,forwardedRef:t}))})})),gV=["defaultWidth","defaultHeight","onResize","debounceResize"];S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=IU(e,gV);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(pV,NU({},a,{width:n,height:r,ref:t}))}})}));const vV={mass:1,tension:500,friction:40,clamp:!1,precision:.01,velocity:0},mV=window.matchMedia("(prefers-reduced-motion: reduce)").matches,bV="var(--on-text-secondary)",yV="var(--on-text-primary)",_V={background:"var(--bg-base-primary)",axis:{ticks:{text:{fill:bV,fontSize:12}}},grid:{line:{stroke:"var(--on-border-muted)",strokeDasharray:"4",strokeLinecap:"round"}},dots:{text:{fill:bV,fontSize:12}},labels:{text:{fill:yV,fontSize:12}},text:{fill:yV,fontSize:12},markers:{lineColor:"var(--on-border-primary)",lineStrokeWidth:2,text:{fill:yV,fontSize:12,fontWeight:600}},legends:{text:{fill:yV,fontSize:12}},tooltip:{container:{background:"var(--bg-base-modal)",color:"var(--on-text-primary)"}}},wV={nodeOpacity:1,borderWidth:1,labelSkipSize:12,parentLabelSize:14,parentLabelPosition:"top",parentLabelPadding:6,enableParentLabel:!0,animate:!0,innerPadding:4,outerPadding:4};var xV=/^--/;function kV(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||xV.test(e)||SV.hasOwnProperty(e)&&SV[e]?(""+t).trim():t+"px"}var CV={};var SV={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},MV=["Webkit","Ms","Moz","O"];SV=Object.keys(SV).reduce(((e,t)=>(MV.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),SV);var AV=/^(matrix|translate|scale|rotate|skew)/,TV=/^(translate)/,LV=/^(rotate|skew)/,EV=(e,t)=>hy.num(e)&&0!==e?e+t:e,OV=(e,t)=>hy.arr(e)?e.every((e=>OV(e,t))):hy.num(e)?e===t:parseFloat(e)===t,RV=class extends W_{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push((e=>[`translate3d(${e.map((e=>EV(e,"px"))).join(",")})`,OV(e,0)]))),vy(r,((e,t)=>{if("transform"===t)i.push([e||""]),o.push((e=>[e,""===e]));else if(AV.test(t)){if(delete r[t],hy.und(e))return;const n=TV.test(t)?"px":LV.test(t)?"deg":"";i.push(my(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${EV(i,n)})`,OV(i,0)]:e=>[`${t}(${e.map((e=>EV(e,n))).join(",")})`,OV(e,t.startsWith("scale")?1:0)])}})),i.length&&(r.transform=new PV(i,o)),super(r)}},PV=class extends s_{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return gy(this.inputs,((n,r)=>{const i=o_(n[0]),[o,a]=this.transforms[r](hy.arr(i)?i:n.map(o_));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&gy(this.inputs,(e=>gy(e,(e=>i_(e)&&u_(e,this)))))}observerRemoved(e){0==e&&gy(this.inputs,(e=>gy(e,(e=>i_(e)&&d_(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),l_(this,e)}};dy.assign({batchedUpdates:N,createStringInterpolator:x_,colors:Ny});var zV=G_(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:i,children:o,scrollTop:a,scrollLeft:l,viewBox:s,...c}=t,u=Object.values(c),d=Object.keys(c).map((t=>n||e.hasAttribute(t)?t:CV[t]||(CV[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const t in i)if(i.hasOwnProperty(t)){const n=kV(t,i[t]);xV.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==r&&(e.className=r),void 0!==a&&(e.scrollTop=a),void 0!==l&&(e.scrollLeft=l),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new RV(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),DV=zV.animated;const NV=({node:e,animatedProps:t,borderWidth:n,enableLabel:r,enableParentLabel:i,labelSkipSize:o})=>{const a=eT(),l=r&&e.isLeaf&&(0===o||Math.min(e.width,e.height)>o),s=i&&e.isParent;return ln(DV.g,{transform:sx([t.x,t.y],((e,t)=>`translate(${e},${t})`)),children:[ln(DV.rect,{"data-testid":`node.${e.id}`,width:sx(t.width,(e=>Math.max(e,0))),height:sx(t.height,(e=>Math.max(e,0))),fill:e.fill?e.fill:t.color,strokeWidth:n,stroke:e.borderColor,fillOpacity:e.opacity,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseLeave:e.onMouseLeave,onClick:e.onClick,rx:6,ry:6}),l&&ln(QD,{"data-testid":`label.${e.id}`,textAnchor:"middle",dominantBaseline:"central",style:{...a.labels.text,fill:e.labelTextColor,pointerEvents:"none"},fillOpacity:t.labelOpacity,transform:sx([t.labelX,t.labelY,t.labelRotation],((e,t,n)=>`translate(${e},${t}) rotate(${n})`)),children:e.label}),s&&ln(QD,{"data-testid":`parentLabel.${e.id}`,dominantBaseline:"central",style:{...a.labels.text,fill:e.parentLabelTextColor,pointerEvents:"none"},fillOpacity:t.parentLabelOpacity,transform:sx([t.parentLabelX,t.parentLabelY,t.parentLabelRotation],((e,t,n)=>`translate(${e},${t}) rotate(${n})`)),children:e.parentLabel})]})};var IV={treeMapLegend:"styles_treeMapLegend__dV-Ny",treeMapLegend__gradient:"styles_treeMapLegend__gradient__v853j"};const BV=({minValue:e,maxValue:t,colorFn:n,formatValue:r=e=>e.toFixed(2),domain:i})=>{const o=h((()=>i&&i.length>0?Math.min(...i):e??0),[i,e]),a=h((()=>i&&i.length>0?Math.max(...i):t??1),[i,t]),l=h((()=>{if(i&&i.length>0){const e=[...i].sort(((e,t)=>e-t)),t=a-o;return e.map((e=>{const r=(e-o)/t*100;return`${n(e,i)} ${r.toFixed(1)}%`})).join(", ")}return`${n(o)} 0%, ${n(a)} 100%`}),[o,a,n,i]),s=h((()=>r(o)),[o,r]),c=h((()=>r(a)),[a,r]);return ln("div",{className:IV.treeMapLegend,children:[ln(dn,{size:"s",type:"ui",className:IV.treeMapLegend__label,children:c}),ln("div",{className:IV.treeMapLegend__gradient,style:{"--gradient-stops":l}}),ln(dn,{size:"s",type:"ui",className:IV.treeMapLegend__label,children:s})]})};var FV="styles_legendIndicatorContainer__sdAMj",jV="styles_legendIndicatorContainerBase__OuGDD",WV="styles_legendIndicator__e9eaz";const HV=e=>{const{color:t,border:n}=e;return ln("div",{className:FV,children:ln("div",{className:jV,"data-has-color":!!t||void 0,children:ln("i",{"aria-hidden":!0,className:WV,style:{backgroundColor:t,borderColor:n??void 0}})})})};var UV="styles_tooltip__ErmeC",VV="styles_container__mEUzr",$V="styles_label__oqfkW";const qV=e=>{const{children:t,labelColor:n,label:r}=e;return ln("div",{"data-testid":"chart-tooltip",className:UV,"data-tooltip-type":"chart",children:ln("div",{className:VV,children:[!!r&&ln(dn,{className:$V,type:"ui",size:"s",bold:!0,tag:"div",children:[n&&ln(HV,{color:n}),ln(dn,{tag:"div",bold:!0,children:r})]}),t]})})};var YV="styles_legendItem__NCAPr",GV="styles_legendItemLink__Yo6du",XV="styles_legendName__WZbe8",ZV="styles_legendLabel__-HDGz",KV="styles_space__pQ9pa",JV="styles_menuSpace__7N7yT",QV="styles_legendValue__vV5dD",e$="styles_point__eFnBu";const t$=e=>"number"==typeof e&&!Number.isNaN(e)||"string"==typeof e&&!!e,n$=(e,t="en-US")=>t$(e)?"number"==typeof e?new Intl.NumberFormat(t,{useGrouping:!0}).format(e):String(e):"",r$=({color:e})=>ln("div",{className:e$,children:ln("svg",{width:"16",height:"8",viewBox:"0 0 16 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ln("path",{d:"M0 4H16",stroke:e,"stroke-width":"2"}),ln("path",{d:"M7.99902 7C9.65588 7 10.999 5.65685 10.999 4C10.999 2.34315 9.65588 1 7.99902 1C6.34217 1 4.99902 2.34315 4.99902 4C4.99902 5.65685 6.34217 7 7.99902 7Z",fill:"#FAFCFF",fillOpacity:"0.98",stroke:e,strokeWidth:"2"})]})}),i$=e=>{const{onClick:t,legend:n,mode:i="default",hideOnEmptyValue:o=!0}=e,{color:a,border:l,label:s,link:c,value:u}=n,d=c?"a":"div",f=n.type??"default";return o&&void 0===u?null:ln(d,{href:c,className:j(YV,c&&GV),onClick:"function"==typeof t?()=>{t(n)}:void 0,children:[ln("div",{className:XV,children:["default"===f&&ln(HV,{color:a,border:l}),"point"===f&&ln(r$,{color:a}),ln(dn,{type:"ui",size:"s",className:ZV,children:s})]}),t$(u)&&ln(r,{children:[ln("div",{className:j("menu"===i?JV:KV)}),ln(dn,{type:"ui",size:"s",className:QV,children:u})]})]})},o$=({node:e,rows:t})=>{const{id:n,formattedValue:r,color:i,parentLabel:o}=e;return ln(qV,{label:`${o||n}: ${r}`,labelColor:i,children:t&&t.map(((e,t)=>ln(i$,{mode:"default",legend:{label:e,type:"none",id:t.toString(),color:i},hideOnEmptyValue:!1},t.toString())))})};var a$="styles_treeMapChart__G6ayQ";const l$=({width:e="100%",height:t=400,rootAriaLabel:n,emptyLabel:r="No data available",emptyAriaLabel:i="No data available",data:o,showLegend:a=!0,legendMinValue:l=0,legendMaxValue:s=1,formatLegend:c,colors:u,legendDomain:f,parentSkipSize:p,tooltipRows:g,labelColor:v,...m})=>{const b=h((()=>0===(o.children??[]).length),[o]),y=d((e=>(({parentSkipSize:e=48})=>t=>{const{width:n,height:r,data:i={}}=t;return Math.min(n,r)<e?"":String(i[t.parentLabel]??t.id)})({parentSkipSize:p})(e)),[p]),_=d((({node:e})=>ln(o$,{node:e,rows:g&&g(e)})),[g]);return b?ln(cW,{label:r,width:e,height:t,ariaLabel:i}):ln("div",{role:"img","aria-label":n,tabIndex:0,style:{width:e,height:t},className:a$,children:[ln(aV,{data:o,parentLabel:y,tooltip:_,...wV,...m,theme:_V,motionConfig:vV,animate:!mV,colors:e=>u(e.data.colorValue??0),labelTextColor:v,parentLabelTextColor:v,borderColor:"var(--bg-base-primary)",borderWidth:1,nodeComponent:NV}),a&&ln(BV,{minValue:l,maxValue:s,colorFn:u,formatValue:c,domain:f})]})},s$=l("light"),c$=()=>f(s$)??"light",u$=e=>{const{children:t,theme:n}=e;return ln(s$.Provider,{value:n,children:t})},d$=(e="light")=>{const t=h((()=>MW([0,1],["var(--bg-support-capella)","var(--bg-support-sirius)","var(--bg-support-castor)"])),[e]);return d((e=>t(e)),[t])},f$=(e="light")=>{const t=h((()=>MW([0,1],["var(--bg-support-capella)","var(--bg-support-castor)"])),[e]);return d((e=>t(e)),[t])},h$=(e="light")=>{const t=h((()=>MW([0,1],["var(--constant-on-text-primary)","var(--on-text-primary)","var(--constant-on-text-primary)"])),[e]);return d((e=>t(e)),[t])},p$=({title:e,translations:t,chartType:n,...r})=>{const i=t["no-results"],o=c$(),a=d$(o),l=f$(o),s=h$(o);return ln(xv,{title:e,children:ln(l$,{emptyLabel:i,emptyAriaLabel:i,...r,colors:n===oo.CoverageDiff?a:l,showLegend:!1,labelColor:n===oo.CoverageDiff?e=>s(e.data.colorValue??0):()=>"var(--constant-on-text-primary)"})})};var g$,v$,m$,b$;var y$,_$,w$=function(){if(b$)return m$;b$=1;var e=mz(),t=function(){if(v$)return g$;v$=1;var e=KN();return g$=function(t,n){var r=[];return e(t,(function(e,t,i){n(e,t,i)&&r.push(e)})),r},g$}(),n=EN(),r=MS();return m$=function(i,o){return(r(i)?e:t)(i,n(o,3))}}(),x$=Pd(w$);var k$=Pd(function(){if(_$)return y$;_$=1;var e=yC(),t=CS();return y$=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}());function C$(){return C$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C$.apply(null,arguments)}var S$=4,M$=120,A$=8,T$=function(e){return"circle"===e.type},L$=function(e){return"dot"===e.type},E$=function(e){return"rect"===e.type},O$=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce((function(e,n){var o=n.offset||0;return[].concat(e,x$(t,n.match).map((function(e){var t=r(e),a=i(e);return(T$(n)||E$(n))&&(a.size=a.size+2*o,a.width=a.width+2*o,a.height=a.height+2*o),C$({},RH(n,["match","offset"]),t,a,{size:n.size||a.size,datum:e})})))}),[])},R$=function(e){var t,n,r=e.x,i=e.y,o=e.noteX,a=e.noteY,l=e.noteWidth,s=void 0===l?M$:l,c=e.noteTextOffset,u=void 0===c?A$:c;if(k$(o))t=r+o;else{if(void 0===o.abs)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=o.abs}if(k$(a))n=i+a;else{if(void 0===a.abs)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=a.abs}var d=r,f=i,h=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return function(e){var t=e%360;return t<0&&(t+=360),t}(Kz(i))}(r,i,t,n);if(T$(e)){var p=Jz(Zz(h),e.size/2);d+=p.x,f+=p.y}if(E$(e)){var g=Math.round((h+90)/45)%8;0===g&&(f-=e.height/2),1===g&&(d+=e.width/2,f-=e.height/2),2===g&&(d+=e.width/2),3===g&&(d+=e.width/2,f+=e.height/2),4===g&&(f+=e.height/2),5===g&&(d-=e.width/2,f+=e.height/2),6===g&&(d-=e.width/2),7===g&&(d-=e.width/2,f-=e.height/2)}var v=t,m=t;return(h+90)%360>180?(v-=s,m-=s):m+=s,{points:[[d,f],[t,n],[m,n]],text:[v,n-u],angle:h+90}},P$=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return A((function(){return O$({data:t,annotations:n,getPosition:r,getDimensions:i})}),[t,n,r,i])},z$=function(e){var t=e.annotations;return A((function(){return t.map((function(e){return C$({},e,{computed:R$(C$({},e))})}))}),[t])},D$=function(e){var t=e.datum,n=e.x,i=e.y,o=e.note,a=eT(),l=Rz(),s=l.animate,c=tx({x:n,y:i,config:l.config,immediate:!s});return"function"==typeof o?R(o,{x:n,y:i,datum:t}):ln(r,{children:[a.annotations.text.outlineWidth>0&&ln(fC.text,{x:c.x,y:c.y,style:C$({},a.annotations.text,{strokeLinejoin:"round",strokeWidth:2*a.annotations.text.outlineWidth,stroke:a.annotations.text.outlineColor}),children:o}),ln(fC.text,{x:c.x,y:c.y,style:RH(a.annotations.text,["outlineWidth","outlineColor"]),children:o})]})},N$=function(e){var t=e.points,n=e.isOutline,r=void 0!==n&&n,i=eT(),o=A((function(){var e=t[0];return t.slice(1).reduce((function(e,t){return e+" L"+t[0]+","+t[1]}),"M"+e[0]+","+e[1])}),[t]),a=wD(o);if(r&&i.annotations.link.outlineWidth<=0)return null;var l=C$({},i.annotations.link);return r&&(l.strokeLinecap="square",l.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,l.stroke=i.annotations.link.outlineColor,l.opacity=i.annotations.link.outlineOpacity),ln(fC.path,{fill:"none",d:a,style:l})},I$=function(e){var t=e.x,n=e.y,i=e.size,o=eT(),a=Rz(),l=a.animate,s=tx({x:t,y:n,radius:i/2,config:a.config,immediate:!l});return ln(r,{children:[o.annotations.outline.outlineWidth>0&&ln(fC.circle,{cx:s.x,cy:s.y,r:s.radius,style:C$({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),ln(fC.circle,{cx:s.x,cy:s.y,r:s.radius,style:o.annotations.outline})]})},B$=function(e){var t=e.x,n=e.y,i=e.size,o=void 0===i?S$:i,a=eT(),l=Rz(),s=l.animate,c=tx({x:t,y:n,radius:o/2,config:l.config,immediate:!s});return ln(r,{children:[a.annotations.outline.outlineWidth>0&&ln(fC.circle,{cx:c.x,cy:c.y,r:c.radius,style:C$({},a.annotations.outline,{fill:"none",strokeWidth:2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),ln(fC.circle,{cx:c.x,cy:c.y,r:c.radius,style:a.annotations.symbol})]})},F$=function(e){var t=e.x,n=e.y,i=e.width,o=e.height,a=e.borderRadius,l=void 0===a?6:a,s=eT(),c=Rz(),u=c.animate,d=tx({x:t-i/2,y:n-o/2,width:i,height:o,config:c.config,immediate:!u});return ln(r,{children:[s.annotations.outline.outlineWidth>0&&ln(fC.rect,{x:d.x,y:d.y,rx:l,ry:l,width:d.width,height:d.height,style:C$({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),ln(fC.rect,{x:d.x,y:d.y,rx:l,ry:l,width:d.width,height:d.height,style:s.annotations.outline})]})},j$=function(e){var t=e.datum,n=e.x,i=e.y,o=e.note,a=function(e){return A((function(){return R$(e)}),[e])}(e);if(!function(e){var t=typeof e;return D(e)||"string"===t||"function"===t||"object"===t}(o))throw new Error("note should be a valid react element");return ln(r,{children:[ln(N$,{points:a.points,isOutline:!0}),T$(e)&&ln(I$,{x:n,y:i,size:e.size}),L$(e)&&ln(B$,{x:n,y:i,size:e.size}),E$(e)&&ln(F$,{x:n,y:i,width:e.width,height:e.height,borderRadius:e.borderRadius}),ln(N$,{points:a.points}),ln(D$,{datum:t,x:a.text[0],y:a.text[1],note:o})]})},W$=function(e,t){t.forEach((function(t,n){var r=t[0],i=t[1];0===n?e.moveTo(r,i):e.lineTo(r,i)}))},H$=function(e,t){var n=t.annotations,r=t.theme;0!==n.length&&(e.save(),n.forEach((function(t){if(!function(e){var t=typeof e;return"string"===t||"function"===t}(t.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),W$(e,t.computed.points),e.stroke(),e.lineCap="butt"),T$(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),L$(t)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),E$(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),W$(e,t.computed.points),e.stroke(),T$(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),L$(t)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.fill()),E$(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),"function"==typeof t.note?t.note(e,{datum:t.datum,x:t.computed.text[0],y:t.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(t.note,t.computed.text[0],t.computed.text[1]),e.lineJoin="miter"),e.fillText(t.note,t.computed.text[0],t.computed.text[1]))})),e.restore())};function U$(){return U$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U$.apply(null,arguments)}function V$(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var $$={layers:["grid","axes","cells","legends","annotations"],forceSquare:!1,xInnerPadding:0,xOuterPadding:0,yInnerPadding:0,yOuterPadding:0,sizeVariation:!1,opacity:1,activeOpacity:1,inactiveOpacity:.15,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",.8]]},enableGridX:!1,enableGridY:!1,enableLabels:!0,label:"formattedValue",labelTextColor:{from:"color",modifiers:[["darker",2]]},colors:{type:"sequential",scheme:"brown_blueGreen"},emptyColor:"#000000",legends:[],annotations:[],isInteractive:!0,hoverTarget:"rowColumn",tooltip:E((function(e){var t=e.cell;return null===t.formattedValue?null:ln(lT,{id:t.serieId+" - "+t.data.x,value:t.formattedValue,enableChip:!0,color:t.color})})),animate:!0,motionConfig:"gentle"},q$=U$({},$$,{axisTop:{},axisRight:null,axisBottom:null,axisLeft:{},borderRadius:0,cellComponent:"rect"}),Y$=U$({},$$,{axisTop:{},axisRight:null,axisBottom:null,axisLeft:{},renderCell:"rect",pixelRatio:"undefined"!=typeof window&&window.devicePixelRatio||1}),G$=function(e){var t=e.data,n=e.width,r=e.height,i=e.xInnerPadding,o=e.xOuterPadding,a=e.yInnerPadding,l=e.yOuterPadding,s=e.forceSquare,c=new Set,u=[],d=[],f=[];t.forEach((function(e){u.push(e.id),e.data.forEach((function(t){c.add(t.x);var n=null;void 0!==t.y&&null!==t.y&&(d.push(t.y),n=t.y),f.push({id:e.id+"."+t.x,serieId:e.id,value:n,data:t})}))}));var h=Array.from(c),p=function(e){var t=e.width,n=e.height,r=e.rows,i=e.columns,o=t,a=n,l=0,s=0;if(e.forceSquare){var c=Math.max(t/i,0),u=Math.max(n/r,0),d=Math.min(c,u);l=(t-(o=d*i))/2,s=(n-(a=d*r))/2}return{offsetX:l,offsetY:s,width:o,height:a}}({width:n,height:r,columns:h.length,rows:u.length,forceSquare:s}),g=p.width,v=p.height,m=p.offsetX,b=p.offsetY,y=JI(Xa().domain(h).range([0,g]).paddingOuter(o).paddingInner(i)),_=JI(Xa().domain(u).range([0,v]).paddingOuter(l).paddingInner(a)),w=y.bandwidth(),x=_.bandwidth(),k=f.map((function(e){return U$({},e,{x:y(e.data.x)+w/2,y:_(e.serieId)+x/2,width:w,height:x})}));return{width:g,height:v,offsetX:m,offsetY:b,xScale:y,yScale:_,minValue:Math.min.apply(Math,d),maxValue:Math.max.apply(Math,d),cells:k}},X$=function(e){return{x:e.x,y:e.y}},Z$=function(e){return{size:Math.max(e.width,e.height),width:e.width,height:e.height}},K$={cell:function(e,t){return e.id===t.id},row:function(e,t){return e.serieId===t.serieId},column:function(e,t){return e.data.x===t.data.x},rowColumn:function(e,t){return e.serieId===t.serieId||e.data.x===t.data.x}},J$=function(e){var t,n,r,i=e.cells,o=e.minValue,a=e.maxValue,l=e.sizeVariation,s=e.colors,c=e.emptyColor,u=e.opacity,d=e.activeOpacity,f=e.inactiveOpacity,h=e.borderColor,p=e.label,g=e.labelTextColor,v=e.valueFormat,m=e.activeIds,b=A((function(){return function(e,t,n){if(!e)return function(){return 1};var r=Cl().domain(e.values?e.values:[t,n]).range(e.sizes);return function(e){return null===e?1:r(e)}}(t,n,r)}),[t=l,n=o,r=a]),y=A((function(){return"function"==typeof s?null:vF(s,{min:o,max:a})}),[s,o,a]),_=M((function(e){if(null!==e.value){if("function"==typeof s)return s(e);if(null!==y)return y(e.value)}return c}),[s,y,c]),w=eT(),x=cF(h,w),k=cF(g,w),C=LD(v),S=OD(p);return{cells:A((function(){return i.map((function(e){var t=u;m.length>0&&(t=m.includes(e.id)?d:f);var n=b(e.value),r=U$({},e,{width:e.width*n,height:e.height*n,formattedValue:null!==e.value?C(e.value):null,opacity:t});return r.label=S(r),r.color=_(r),r.borderColor=x(r),r.labelTextColor=k(r),r}))}),[i,b,_,x,k,C,S,m,u,d,f]),colorScale:y}},Q$=function(e){var t=e.data,n=e.valueFormat,r=e.width,i=e.height,o=e.xOuterPadding,a=void 0===o?$$.xOuterPadding:o,l=e.xInnerPadding,s=void 0===l?$$.xInnerPadding:l,c=e.yOuterPadding,u=void 0===c?$$.yOuterPadding:c,d=e.yInnerPadding,f=void 0===d?$$.yInnerPadding:d,h=e.forceSquare,p=void 0===h?$$.forceSquare:h,g=e.sizeVariation,v=void 0===g?$$.sizeVariation:g,m=e.colors,b=void 0===m?$$.colors:m,y=e.emptyColor,_=void 0===y?$$.emptyColor:y,x=e.opacity,k=void 0===x?$$.opacity:x,C=e.activeOpacity,S=void 0===C?$$.activeOpacity:C,M=e.inactiveOpacity,T=void 0===M?$$.inactiveOpacity:M,L=e.borderColor,E=void 0===L?$$.borderColor:L,O=e.label,R=void 0===O?$$.label:O,P=e.labelTextColor,z=void 0===P?$$.labelTextColor:P,D=e.hoverTarget,N=void 0===D?$$.hoverTarget:D,I=w(null),B=I[0],F=I[1],j=function(e){var t=e.data,n=e.width,r=e.height,i=e.xInnerPadding,o=e.xOuterPadding,a=e.yInnerPadding,l=e.yOuterPadding,s=e.forceSquare;return A((function(){return G$({data:t,width:n,height:r,xInnerPadding:i,xOuterPadding:o,yInnerPadding:a,yOuterPadding:l,forceSquare:s})}),[t,n,r,i,o,a,l,s])}({data:t,width:r,height:i,xOuterPadding:a,xInnerPadding:s,yOuterPadding:u,yInnerPadding:f,forceSquare:p}),W=j.width,H=j.height,U=j.offsetX,V=j.offsetY,$=j.cells,q=j.xScale,Y=j.yScale,G=j.minValue,X=j.maxValue,Z=A((function(){if(!B)return[];var e=K$[N];return $.filter((function(t){return e(t,B)})).map((function(e){return e.id}))}),[$,B,N]),K=J$({cells:$,minValue:G,maxValue:X,sizeVariation:v,colors:b,emptyColor:_,opacity:k,activeOpacity:S,inactiveOpacity:T,borderColor:E,label:R,labelTextColor:z,valueFormat:n,activeIds:Z});return{width:W,height:H,offsetX:U,offsetY:V,cells:K.cells,xScale:q,yScale:Y,colorScale:K.colorScale,activeCell:B,setActiveCell:F}},eq=function(e,t){return P$({data:e,annotations:t,getPosition:X$,getDimensions:Z$})},tq=E((function(e){var t=e.cell,n=e.borderWidth,r=e.borderRadius,i=e.animatedProps,o=e.onMouseEnter,a=e.onMouseMove,l=e.onMouseLeave,s=e.onClick,c=e.enableLabels,u=eT(),d=A((function(){return{onMouseEnter:o?o(t):void 0,onMouseMove:a?a(t):void 0,onMouseLeave:l?l(t):void 0,onClick:s?s(t):void 0}}),[t,o,a,l,s]);return ln(fC.g,U$({"data-testid":"cell."+t.id,style:{cursor:"pointer"},opacity:i.opacity},d,{transform:sx([i.x,i.y,i.scale],(function(e,t,n){return"translate("+e+", "+t+") scale("+n+")"})),children:[ln(fC.rect,{transform:sx([i.width,i.height],(function(e,t){return"translate("+-.5*e+", "+-.5*t+")"})),fill:i.color,width:i.width,height:i.height,stroke:i.borderColor,strokeWidth:n,rx:r,ry:r},t.id),c&&ln(QD,{textAnchor:"middle",dominantBaseline:"central",fill:i.labelTextColor,style:U$({},u.labels.text,{fill:void 0,userSelect:"none"}),children:t.label})]}))})),nq=E((function(e){var t=e.cell,n=e.borderWidth,r=e.animatedProps,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,l=e.onClick,s=e.enableLabels,c=eT(),u=A((function(){return{onMouseEnter:i?i(t):void 0,onMouseMove:o?o(t):void 0,onMouseLeave:a?a(t):void 0,onClick:l?l(t):void 0}}),[t,i,o,a,l]);return ln(fC.g,U$({"data-testid":"cell."+t.id,style:{cursor:"pointer"},opacity:r.opacity},u,{transform:sx([r.x,r.y],(function(e,t){return"translate("+e+", "+t+")"})),children:[ln(fC.circle,{r:sx([r.width,r.height],(function(e,t){return Math.min(e,t)/2})),fill:r.color,fillOpacity:r.opacity,strokeWidth:n,stroke:r.borderColor}),s&&ln(QD,{dominantBaseline:"central",textAnchor:"middle",fill:r.labelTextColor,style:U$({},c.labels.text,{fill:void 0}),children:t.label})]}))})),rq=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height,color:e.color,opacity:0,borderColor:e.borderColor,labelTextColor:e.labelTextColor,scale:0}},iq=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height,color:e.color,opacity:e.opacity,borderColor:e.borderColor,labelTextColor:e.labelTextColor,scale:1}},oq=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height,color:e.color,opacity:0,borderColor:e.borderColor,labelTextColor:e.labelTextColor,scale:0}},aq=function(e){var t,n=e.cells,i=e.cellComponent,o=e.borderRadius,a=e.borderWidth,l=e.isInteractive,s=e.setActiveCell,c=e.onMouseEnter,u=e.onMouseMove,d=e.onMouseLeave,f=e.onClick,h=e.tooltip,p=e.enableLabels,g=Rz(),v=g.animate,m=g.config,b=nx(n,{keys:function(e){return e.id},initial:iq,from:rq,enter:iq,update:iq,leave:oq,config:m,immediate:!v}),y=mT(),_=y.showTooltipFromEvent,w=y.hideTooltip,x=A((function(){if(l)return function(e){return function(t){_(R(h,{cell:e}),t),s(e),null==c||c(e,t)}}}),[l,_,h,s,c]),k=A((function(){if(l)return function(e){return function(t){_(R(h,{cell:e}),t),null==u||u(e,t)}}}),[l,_,h,u]),C=A((function(){if(l)return function(e){return function(t){w(),s(null),null==d||d(e,t)}}}),[l,w,s,d]),S=A((function(){if(l)return function(e){return function(t){null==f||f(e,t)}}}),[l,f]);return t="rect"===i?tq:"circle"===i?nq:i,ln(r,{children:b((function(e,n){return R(t,{cell:n,borderRadius:o,borderWidth:a,animatedProps:e,enableLabels:p,onMouseEnter:x,onMouseMove:k,onMouseLeave:C,onClick:S})}))})},lq=function(e){var t=e.cells,n=e.annotations,i=eq(t,n);return ln(r,{children:i.map((function(e,t){return ln(j$,U$({},e),t)}))})},sq=["isInteractive","animate","motionConfig","theme","renderWrapper"],cq=function(e){var t=e.data,n=e.layers,r=void 0===n?q$.layers:n,i=e.valueFormat,o=e.width,a=e.height,l=e.margin,s=e.forceSquare,c=void 0===s?q$.forceSquare:s,u=e.xInnerPadding,d=void 0===u?q$.xInnerPadding:u,f=e.xOuterPadding,h=void 0===f?q$.xOuterPadding:f,p=e.yInnerPadding,g=void 0===p?q$.yInnerPadding:p,v=e.yOuterPadding,m=void 0===v?q$.yOuterPadding:v,b=e.sizeVariation,y=void 0===b?q$.sizeVariation:b,_=e.cellComponent,w=void 0===_?q$.cellComponent:_,x=e.opacity,k=void 0===x?q$.opacity:x,C=e.activeOpacity,S=void 0===C?q$.activeOpacity:C,M=e.inactiveOpacity,T=void 0===M?q$.inactiveOpacity:M,L=e.borderRadius,E=void 0===L?q$.borderRadius:L,O=e.borderWidth,P=void 0===O?q$.borderWidth:O,D=e.borderColor,N=void 0===D?q$.borderColor:D,I=e.enableGridX,B=void 0===I?q$.enableGridX:I,F=e.enableGridY,j=void 0===F?q$.enableGridY:F,W=e.axisTop,H=void 0===W?q$.axisTop:W,U=e.axisRight,V=void 0===U?q$.axisRight:U,$=e.axisBottom,q=void 0===$?q$.axisBottom:$,Y=e.axisLeft,G=void 0===Y?q$.axisLeft:Y,X=e.enableLabels,Z=void 0===X?q$.enableLabels:X,K=e.label,J=void 0===K?q$.label:K,Q=e.labelTextColor,ee=void 0===Q?q$.labelTextColor:Q,te=e.colors,ne=void 0===te?q$.colors:te,re=e.emptyColor,ie=void 0===re?q$.emptyColor:re,oe=e.legends,ae=void 0===oe?q$.legends:oe,le=e.annotations,se=void 0===le?q$.annotations:le,ce=e.isInteractive,ue=void 0===ce?q$.isInteractive:ce,de=e.onMouseEnter,fe=e.onMouseMove,he=e.onMouseLeave,pe=e.onClick,ge=e.hoverTarget,ve=void 0===ge?q$.hoverTarget:ge,me=e.tooltip,be=void 0===me?q$.tooltip:me,ye=e.role,_e=e.ariaLabel,we=e.ariaLabelledBy,xe=e.ariaDescribedBy,ke=e.forwardedRef,Ce=MD(o,a,l),Se=Ce.margin,Me=Ce.innerWidth,Ae=Ce.innerHeight,Te=Ce.outerWidth,Le=Ce.outerHeight,Ee=Q$({data:t,valueFormat:i,width:Me,height:Ae,forceSquare:c,xInnerPadding:d,xOuterPadding:h,yInnerPadding:g,yOuterPadding:m,sizeVariation:y,colors:ne,emptyColor:ie,opacity:k,activeOpacity:S,inactiveOpacity:T,borderColor:N,label:J,labelTextColor:ee,hoverTarget:ve}),Oe=Ee.width,Re=Ee.height,Pe=Ee.offsetX,ze=Ee.offsetY,De=Ee.xScale,Ne=Ee.yScale,Ie=Ee.cells,Be=Ee.colorScale,Fe=Ee.activeCell,je=Ee.setActiveCell,We=A((function(){return U$({},Se,{top:Se.top+ze,left:Se.left+Pe})}),[Se,Pe,ze]),He={grid:null,axes:null,cells:null,legends:null,annotations:null};r.includes("grid")&&(He.grid=ln($B,{width:Oe,height:Re,xScale:B?De:null,yScale:j?Ne:null},"grid")),r.includes("axes")&&(He.axes=ln(HB,{xScale:De,yScale:Ne,width:Oe,height:Re,top:H,right:V,bottom:q,left:G},"axes")),r.includes("cells")&&(He.cells=ln(z,{children:ln(aq,{cells:Ie,cellComponent:w,borderRadius:E,borderWidth:P,isInteractive:ue,setActiveCell:je,onMouseEnter:de,onMouseMove:fe,onMouseLeave:he,onClick:pe,tooltip:be,enableLabels:Z})},"cells")),r.includes("legends")&&null!==Be&&(He.legends=ln(z,{children:ae.map((function(e,t){return R(FF,U$({},e,{key:t,containerWidth:Oe,containerHeight:Re,scale:Be}))}))},"legends")),r.includes("annotations")&&se.length>0&&(He.annotations=ln(lq,{cells:Ie,annotations:se},"annotations"));var Ue={cells:Ie,activeCell:Fe,setActiveCell:je};return ln(vD,{width:Te,height:Le,margin:Object.assign({},We,{top:We.top,left:We.left}),role:ye,ariaLabel:_e,ariaLabelledBy:we,ariaDescribedBy:xe,ref:ke,children:r.map((function(e,t){var n;return"function"==typeof e?ln(z,{children:R(e,Ue)},t):null!=(n=null==He?void 0:He[e])?n:null}))})},uq=S((function(e,t){var n=e.isInteractive,r=void 0===n?q$.isInteractive:n,i=e.animate,o=void 0===i?q$.animate:i,a=e.motionConfig,l=void 0===a?q$.motionConfig:a,s=e.theme,c=e.renderWrapper,u=V$(e,sq);return ln(Dz,{animate:o,isInteractive:r,motionConfig:l,renderWrapper:c,theme:s,children:ln(cq,U$({isInteractive:r},u,{forwardedRef:t}))})})),dq=["defaultWidth","defaultHeight","onResize","debounceResize"],fq=S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=V$(e,dq);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(uq,U$({width:n,height:r},a,{ref:t}))}})})),hq=function(e,t){var n=t.cell,r=n.x,i=n.y,o=n.width,a=n.height,l=n.color,s=n.borderColor,c=n.opacity,u=n.labelTextColor,d=n.label,f=t.borderWidth,h=t.enableLabels,p=t.theme;e.save(),e.globalAlpha=c,e.fillStyle=l,f>0&&(e.strokeStyle=s,e.lineWidth=f),e.fillRect(r-o/2,i-a/2,o,a),f>0&&e.strokeRect(r-o/2,i-a/2,o,a),h&&(FD(e,p.labels.text),e.textAlign="center",e.textBaseline="middle",jD(e,U$({},p.labels.text,{fill:u}),d,r,i)),e.restore()},pq=function(e,t){var n=t.cell,r=n.x,i=n.y,o=n.width,a=n.height,l=n.color,s=n.borderColor,c=n.opacity,u=n.labelTextColor,d=n.label,f=t.borderWidth,h=t.enableLabels,p=t.theme;e.save(),e.globalAlpha=c;var g=Math.min(o,a)/2;e.fillStyle=l,f>0&&(e.strokeStyle=s,e.lineWidth=f),e.beginPath(),e.arc(r,i,g,0,2*Math.PI),e.fill(),f>0&&e.stroke(),h&&(FD(e,p.labels.text),e.textAlign="center",e.textBaseline="middle",jD(e,U$({},p.labels.text,{fill:u}),d,r,i)),e.restore()},gq=["theme","isInteractive","animate","motionConfig","renderWrapper"],vq=function(e){var t,n=e.data,r=e.layers,i=void 0===r?Y$.layers:r,o=e.valueFormat,a=e.width,l=e.height,s=e.margin,c=e.xInnerPadding,u=void 0===c?Y$.xInnerPadding:c,d=e.xOuterPadding,f=void 0===d?Y$.xOuterPadding:d,h=e.yInnerPadding,p=void 0===h?Y$.yInnerPadding:h,g=e.yOuterPadding,v=void 0===g?Y$.yOuterPadding:g,m=e.forceSquare,b=void 0===m?Y$.forceSquare:m,y=e.sizeVariation,_=void 0===y?Y$.sizeVariation:y,w=e.renderCell,k=void 0===w?Y$.renderCell:w,S=e.opacity,T=void 0===S?Y$.opacity:S,L=e.activeOpacity,E=void 0===L?Y$.activeOpacity:L,O=e.inactiveOpacity,P=void 0===O?Y$.inactiveOpacity:O,z=e.borderWidth,D=void 0===z?Y$.borderWidth:z,N=e.borderColor,I=void 0===N?Y$.borderColor:N,B=e.enableGridX,F=void 0===B?Y$.enableGridX:B,j=e.enableGridY,W=void 0===j?Y$.enableGridY:j,H=e.axisTop,U=void 0===H?Y$.axisTop:H,V=e.axisRight,$=void 0===V?Y$.axisRight:V,q=e.axisBottom,Y=void 0===q?Y$.axisBottom:q,G=e.axisLeft,X=void 0===G?Y$.axisLeft:G,Z=e.enableLabels,K=void 0===Z?Y$.enableLabels:Z,J=e.label,Q=void 0===J?Y$.label:J,ee=e.labelTextColor,te=void 0===ee?Y$.labelTextColor:ee,ne=e.colors,re=void 0===ne?Y$.colors:ne,ie=e.emptyColor,oe=void 0===ie?Y$.emptyColor:ie,ae=e.legends,le=void 0===ae?Y$.legends:ae,se=e.annotations,ce=void 0===se?Y$.annotations:se,ue=e.isInteractive,de=void 0===ue?Y$.isInteractive:ue,fe=e.onClick,he=e.hoverTarget,pe=void 0===he?Y$.hoverTarget:he,ge=e.tooltip,ve=void 0===ge?Y$.tooltip:ge,me=e.role,be=e.ariaLabel,ye=e.ariaLabelledBy,_e=e.ariaDescribedBy,we=e.pixelRatio,xe=void 0===we?Y$.pixelRatio:we,ke=e.forwardedRef,Ce=C(null),Se=MD(a,l,s),Me=Se.margin,Ae=Se.innerWidth,Te=Se.innerHeight,Le=Se.outerWidth,Ee=Se.outerHeight,Oe=Q$({data:n,valueFormat:o,width:Ae,height:Te,xInnerPadding:u,xOuterPadding:f,yInnerPadding:p,yOuterPadding:v,forceSquare:b,sizeVariation:_,colors:re,emptyColor:oe,opacity:T,activeOpacity:E,inactiveOpacity:P,borderColor:I,label:Q,labelTextColor:te,hoverTarget:pe}),Re=Oe.width,Pe=Oe.height,ze=Oe.offsetX,De=Oe.offsetY,Ne=Oe.xScale,Ie=Oe.yScale,Be=Oe.cells,Fe=Oe.colorScale,je=Oe.activeCell,We=Oe.setActiveCell,He=A((function(){return U$({},Me,{top:Me.top+De,left:Me.left+ze})}),[Me,ze,De]),Ue=eq(Be,ce),Ve=z$({annotations:Ue});t="function"==typeof k?k:"circle"===k?pq:hq;var $e=eT(),qe=A((function(){return{cells:Be,activeCell:je,setActiveCell:We}}),[Be,je,We]);x((function(){if(null!==Ce.current){var e=Ce.current.getContext("2d");e&&(Ce.current.width=Le*xe,Ce.current.height=Ee*xe,e.scale(xe,xe),e.fillStyle=$e.background,e.fillRect(0,0,Le,Ee),e.translate(He.left,He.top),i.forEach((function(n){"grid"===n?(e.lineWidth=$e.grid.line.strokeWidth,e.strokeStyle=$e.grid.line.stroke,F&&GB(e,{width:Re,height:Pe,scale:Ne,axis:"x"}),W&&GB(e,{width:Re,height:Pe,scale:Ie,axis:"y"})):"axes"===n?YB(e,{xScale:Ne,yScale:Ie,width:Re,height:Pe,top:U,right:$,bottom:Y,left:X,theme:$e}):"cells"===n?(e.textAlign="center",e.textBaseline="middle",Be.forEach((function(n){t(e,{cell:n,borderWidth:D,enableLabels:K,theme:$e})}))):"legends"===n&&null!==Fe?le.forEach((function(t){!function(e,t){var n,r=t.containerWidth,i=t.containerHeight,o=t.anchor,a=t.translateX,l=void 0===a?0:a,s=t.translateY,c=void 0===s?0:s,u=t.scale,d=t.length,f=void 0===d?OF.length:d,h=t.thickness,p=void 0===h?OF.thickness:h,g=t.direction,v=void 0===g?OF.direction:g,m=t.ticks,b=t.tickPosition,y=void 0===b?OF.tickPosition:b,_=t.tickSize,w=void 0===_?OF.tickSize:_,x=t.tickSpacing,k=void 0===x?OF.tickSpacing:x,C=t.tickOverlap,S=void 0===C?OF.tickOverlap:C,M=t.tickFormat,A=void 0===M?OF.tickFormat:M,T=t.title,L=t.titleAlign,E=void 0===L?OF.titleAlign:L,O=t.titleOffset,R=void 0===O?OF.titleOffset:O,P=t.theme,z=NF({scale:u,ticks:m,length:f,thickness:p,direction:v,tickPosition:y,tickSize:w,tickSpacing:k,tickOverlap:S,tickFormat:A,title:T,titleAlign:E,titleOffset:R}),D=z.width,N=z.height,I=z.gradientX1,B=z.gradientY1,F=z.gradientX2,j=z.gradientY2,W=z.colorStops,H=z.ticks,U=z.titleText,V=z.titleX,$=z.titleY,q=z.titleRotation,Y=z.titleVerticalAlign,G=z.titleHorizontalAlign,X=zF({anchor:o,translateX:l,translateY:c,containerWidth:r,containerHeight:i,width:D,height:N}),Z=X.x,K=X.y,J={font:e.font,textAlign:e.textAlign,textBaseline:e.textBaseline};e.save(),e.translate(Z,K);var Q=e.createLinearGradient(I*D,B*N,F*D,j*N);W.forEach((function(e){Q.addColorStop(e.offset,e.stopColor)})),e.fillStyle=Q,e.fillRect(0,0,D,N),FD(e,P.legends.ticks.text);var ee=null!=(n=P.legends.ticks.line.strokeWidth)?n:0,te="string"!=typeof ee&&ee>0;H.forEach((function(t){te&&(e.lineWidth=ee,P.axis.ticks.line.stroke&&(e.strokeStyle=P.axis.ticks.line.stroke),e.lineCap="square",e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.stroke()),e.textAlign="middle"===t.textHorizontalAlign?"center":t.textHorizontalAlign,e.textBaseline="central"===t.textVerticalAlign?"middle":t.textVerticalAlign,jD(e,P.legends.ticks.text,t.text,t.textX,t.textY)})),U&&(e.save(),e.translate(V,$),e.rotate(Zz(q)),FD(e,P.legends.title.text),e.textAlign="middle"===G?"center":G,e.textBaseline=Y,jD(e,P.legends.title.text,U),e.restore()),e.restore(),e.font=J.font,e.textAlign=J.textAlign,e.textBaseline=J.textBaseline}(e,U$({},t,{containerWidth:Re,containerHeight:Pe,scale:Fe,theme:$e}))})):"annotations"===n?H$(e,{annotations:Ve,theme:$e}):"function"==typeof n&&n(e,qe)})))}}),[Ce,xe,Le,Ee,Re,Pe,He,i,qe,Be,t,F,W,U,$,Y,X,Ne,Ie,$e,D,K,Fe,le,Ve]);var Ye=mT(),Ge=Ye.showTooltipFromEvent,Xe=Ye.hideTooltip,Ze=M((function(e){if(null!==Ce.current){var t=zD(Ce.current,e),n=t[0],r=t[1],i=Be.find((function(e){return PD(e.x+He.left-e.width/2,e.y+He.top-e.height/2,e.width,e.height,n,r)}));void 0!==i?(We(i),Ge(R(ve,{cell:i}),e)):(We(null),Xe())}}),[Ce,Be,He,We,Ge,Xe,ve]),Ke=M((function(){We(null),Xe()}),[We,Xe]),Je=M((function(e){null!==je&&(null==fe||fe(je,e))}),[je,fe]);return ln("canvas",{ref:BD(Ce,ke),width:Le*xe,height:Ee*xe,style:{width:Le,height:Ee},onMouseEnter:de?Ze:void 0,onMouseMove:de?Ze:void 0,onMouseLeave:de?Ke:void 0,onClick:de?Je:void 0,role:me,"aria-label":be,"aria-labelledby":ye,"aria-describedby":_e})},mq=S((function(e,t){var n=e.theme,r=e.isInteractive,i=void 0===r?Y$.isInteractive:r,o=e.animate,a=void 0===o?Y$.animate:o,l=e.motionConfig,s=void 0===l?Y$.motionConfig:l,c=e.renderWrapper,u=V$(e,gq);return ln(Dz,{isInteractive:i,animate:a,motionConfig:s,theme:n,renderWrapper:c,children:ln(vq,U$({isInteractive:i},u,{forwardedRef:t}))})})),bq=["defaultWidth","defaultHeight","onResize","debounceResize"];S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=V$(e,bq);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(mq,U$({width:n,height:r},a,{ref:t}))}})}));const yq={top:60,right:90,bottom:60,left:90},_q="#E0E0E0",wq=400,xq="100%",kq="No data available",Cq="No data available",Sq=.05,Mq=.05,Aq=!0,Tq=">-.2%",Lq={tickSize:5,tickPadding:5,tickRotation:0},Eq={tickSize:5,tickPadding:5,tickRotation:-90},Oq={anchor:"bottom",translateX:0,translateY:30,length:400,thickness:8,direction:"row",tickPosition:"after",tickSize:3,tickSpacing:4,tickOverlap:!1,tickFormat:">-.2%",title:"Value",titleAlign:"middle",titleOffset:4},Rq=e=>{const{cell:t}=e,n=h((()=>({id:t.id.toString(),color:t.color,label:t.data.x,value:t.label})),[t]);return ln(qV,{label:t.serieId,children:ln(i$,{mode:"default",legend:n})})};var Pq="styles_heatMap__E95gO";const zq=({width:e=xq,height:t=400,data:n,rootAriaLabel:r,emptyLabel:i=kq,emptyAriaLabel:o=Cq,margin:a=yq,axisLeft:l=Lq,axisTop:s=Eq,xInnerPadding:c=.05,yInnerPadding:u=.05,legends:f=[Oq],forceSquare:p=true,valueFormat:g=Tq,...v})=>{const m=h((()=>0===n.length),[n]),b=((e="light")=>{const t=h((()=>MW([0,1],["var(--bg-support-castor)","var(--bg-support-atlas-heavy)","var(--bg-support-atlas)","var(--bg-support-atlas-heavy)","var(--bg-support-capella)"])),[e]);return d((e=>t(e)),[t])})(c$());return m?ln(cW,{label:i,width:e,height:t,ariaLabel:o}):ln("div",{role:"img","aria-label":r,tabIndex:0,style:{width:e,height:t},className:Pq,children:ln(fq,{data:n,margin:a,axisBottom:null,axisRight:null,axisLeft:l,axisTop:s,xInnerPadding:c,yInnerPadding:u,legends:f,forceSquare:p,theme:_V,motionConfig:vV,animate:!mV,valueFormat:g,colors:e=>b(e.data.y??0),labelTextColor:"var(--constant-on-text-primary)",tooltip:Rq,emptyColor:"var(--bg-control-secondary)",inactiveOpacity:0,borderRadius:4,...v})})},Dq=({title:e,translations:t,rootAriaLabel:n,width:r,height:i,data:o,...a})=>{const l=t["no-results"];return ln(xv,{title:e,children:ln(zq,{data:o,width:r,height:i,emptyLabel:l,emptyAriaLabel:l,rootAriaLabel:n,...a})})};function Nq(){return Nq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nq.apply(null,arguments)}function Iq(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Bq,Fq=function(e){var t=e.bars,n=e.annotations,i=P$({data:t,annotations:n,getPosition:function(e){return{x:e.x+e.width/2,y:e.y+e.height/2}},getDimensions:function(e){var t=e.height,n=e.width;return{width:n,height:t,size:Math.max(n,t)}}});return ln(r,{children:i.map((function(e,t){return ln(j$,Nq({},e),t)}))})},jq=function(e){var t=e.width,n=e.height,i=e.legends,o=e.toggleSerie;return ln(r,{children:i.map((function(e,r){var i,a=e[0],l=e[1];return ln(UF,Nq({},a,{containerWidth:t,containerHeight:n,data:null!=(i=a.data)?i:l,toggleSerie:a.toggleSerie&&"keys"===a.dataFrom?o:void 0}),r)}))})},Wq=["data"],Hq=["color","label"],Uq={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",valueScale:{type:"linear",nice:!0,round:!1},indexScale:{type:"band",round:!1},padding:.1,innerPadding:0,enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelPosition:"middle",labelOffset:0,labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:function(e){var t=e.color,n=e.label,r=Iq(e,Hq);return ln(lT,{id:n,value:r.formattedValue,enableChip:!0,color:t})},tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],enableTotals:!1,totalsOffset:10},Vq=Nq({},Uq,{layers:["grid","axes","bars","totals","markers","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},barComponent:function(e){var t,n=e.bar,r=n.data,i=Iq(n,Wq),o=e.style,a=o.borderColor,l=o.color,s=o.height,c=o.labelColor,u=o.labelOpacity,d=o.labelX,f=o.labelY,h=o.transform,p=o.width,g=o.textAnchor,v=e.borderRadius,m=e.borderWidth,b=e.label,y=e.shouldRenderLabel,_=e.isInteractive,w=e.onClick,x=e.onMouseEnter,k=e.onMouseLeave,C=e.tooltip,S=e.isFocusable,T=e.ariaLabel,L=e.ariaLabelledBy,E=e.ariaDescribedBy,O=e.ariaDisabled,P=e.ariaHidden,z=eT(),D=mT(),N=D.showTooltipFromEvent,I=D.showTooltipAt,B=D.hideTooltip,F=A((function(){return function(){return R(C,Nq({},i,r))}}),[C,i,r]),j=M((function(e){null==w||w(Nq({color:i.color},r),e)}),[i,r,w]),W=M((function(e){return N(F(),e)}),[N,F]),H=M((function(e){null==x||x(r,e),N(F(),e)}),[r,x,N,F]),U=M((function(e){null==k||k(r,e),B()}),[r,B,k]),V=M((function(){I(F(),[i.absX+i.width/2,i.absY])}),[I,F,i]),$=M((function(){B()}),[B]);return ln(fC.g,{transform:h,children:[ln(fC.rect,{width:sx(p,(function(e){return Math.max(e,0)})),height:sx(s,(function(e){return Math.max(e,0)})),rx:v,ry:v,fill:null!=(t=r.fill)?t:l,strokeWidth:m,stroke:a,focusable:S,tabIndex:S?0:void 0,"aria-label":T?T(r):void 0,"aria-labelledby":L?L(r):void 0,"aria-describedby":E?E(r):void 0,"aria-disabled":O?O(r):void 0,"aria-hidden":P?P(r):void 0,onMouseEnter:_?H:void 0,onMouseMove:_?W:void 0,onMouseLeave:_?U:void 0,onClick:_?j:void 0,onFocus:_&&S?V:void 0,onBlur:_&&S?$:void 0,"data-testid":"bar.item."+r.id+"."+r.index}),y&&ln(QD,{x:d,y:f,textAnchor:g,dominantBaseline:"central",fillOpacity:u,style:Nq({},z.labels.text,{pointerEvents:"none",fill:c}),children:b})]})},defs:[],fill:[],markers:[],animate:!0,animateOnMount:!1,motionConfig:"default",role:"img",isFocusable:!1}),$q=Nq({},Uq,{layers:["grid","axes","bars","totals","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},renderBar:function(e,t){var n=t.bar,r=n.color,i=n.height,o=n.width,a=n.x,l=n.y,s=t.borderColor,c=t.borderRadius,u=t.borderWidth,d=t.label,f=t.shouldRenderLabel,h=t.labelStyle,p=t.labelX,g=t.labelY,v=t.textAnchor;e.fillStyle=r,u>0&&(e.strokeStyle=s,e.lineWidth=u),e.beginPath(),function(e,t,n,r,i,o){o>0?(e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()):e.rect(t,n,r,i)}(e,a,l,o,i,Math.min(c,i)),e.fill(),u>0&&e.stroke(),f&&(e.textBaseline="middle",e.textAlign="middle"===v?"center":v,jD(e,h,d,a+p,l+g))},pixelRatio:"undefined"!=typeof window&&null!=(Bq=window.devicePixelRatio)?Bq:1}),qq=function(e,t,n,r,i,o){return wB(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},Yq=function(e,t){return e.map((function(e){return Nq({},t.reduce((function(e,t){return e[t]=null,e}),{}),e)}))},Gq=function(e){return Object.keys(e).reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})},Xq=function(e){return[e,Number(e)]};function Zq(e,t,n,r){return void 0===e&&(e=Uq.layout),void 0===n&&(n=Uq.labelPosition),void 0===r&&(r=Uq.labelOffset),function(i,o){var a=r*(t?-1:1);if("horizontal"===e){var l=i/2;return"start"===n?l=t?i:0:"end"===n&&(l=t?0:i),{labelX:l+a,labelY:o/2,textAnchor:"middle"===n?"middle":t?"end":"start"}}var s=o/2;return"start"===n?s=t?0:o:"end"===n&&(s=t?o:0),{labelX:i/2,labelY:s-a,textAnchor:"middle"}}}var Kq=["layout","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],Jq=function(e,t){return e>t},Qq=function(e,t){return e<t},eY=function(e,t){return Array.from(" ".repeat(t-e),(function(t,n){return e+n}))},tY=function(e){return Jq(e,0)?0:e},nY=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getColor,l=e.getIndex,s=e.getTooltipLabel,c=e.innerPadding,u=void 0===c?0:c,d=e.keys,f=e.xScale,h=e.yScale,p=e.margin,g=n?Qq:Jq,v=i.map(Gq),m=[];return d.forEach((function(e,n){return eY(0,f.domain().length).forEach((function(c){var d,b,y,_=Xq(i[c][e]),w=_[0],x=_[1],k=l(i[c]),C=(null!=(d=f(k))?d:0)+t*n+u*n,S=g(b=x,0)?null!=(y=h(b))?y:0:r,M=function(e,t){var n;return g(e,0)?r-t:(null!=(n=h(e))?n:0)-r}(x,S),A={id:e,value:null===w?w:x,formattedValue:o(x),hidden:!1,index:c,indexValue:k,data:v[c]};m.push({key:e+"."+A.indexValue,index:m.length,data:A,x:C,y:S,absX:p.left+C,absY:p.top+S,width:t,height:M,color:a(A),label:s(A)})}))})),m},rY=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getIndex,l=e.getColor,s=e.getTooltipLabel,c=e.keys,u=e.innerPadding,d=void 0===u?0:u,f=e.xScale,h=e.yScale,p=e.margin,g=n?Qq:Jq,v=i.map(Gq),m=[];return c.forEach((function(e,n){return eY(0,h.domain().length).forEach((function(c){var u,b,y,_=Xq(i[c][e]),w=_[0],x=_[1],k=a(i[c]),C=g(b=x,0)?r:null!=(y=f(b))?y:0,S=(null!=(u=h(k))?u:0)+t*n+d*n,M=function(e,t){var n;return g(e,0)?(null!=(n=f(e))?n:0)-r:r-t}(x,C),A={id:e,value:null===w?w:x,formattedValue:o(x),hidden:!1,index:c,indexValue:k,data:v[c]};m.push({key:e+"."+A.indexValue,index:m.length,data:A,x:C,y:S,absX:p.left+C,absY:p.top+S,width:M,height:t,color:l(A),label:s(A)})}))})),m},iY=function(e){var t,n,r,i=e.layout,o=e.width,a=e.height,l=e.padding,s=void 0===l?0:l,c=e.innerPadding,u=void 0===c?0:c,d=e.valueScale,f=e.indexScale,h=e.hiddenIds,p=void 0===h?[]:h,g=Iq(e,Kq),v=g.keys.filter((function(e){return!p.includes(e)})),m=Yq(g.data,v),b="vertical"===i?["y","x",o]:["x","y",a],y=b[0],_=b[1],w=b[2],x=qq(m,g.getIndex,s,f,w,_),k="auto"===d.min?tY:function(e){return e},C=m.reduce((function(e,t){return[].concat(e,v.map((function(e){return t[e]})))}),[]).filter(Boolean),S=wB(d,{all:C,min:k(Math.min.apply(Math,C)),max:(r=Math.max.apply(Math,C),isFinite(r)?r:0)},"x"===y?o:a,y),M="vertical"===i?[x,S]:[S,x],A=M[0],T=M[1],L=(x.bandwidth()-u*(v.length-1))/v.length,E=[Nq({},g,{data:m,keys:v,innerPadding:u,xScale:A,yScale:T}),L,null!=(t=d.reverse)&&t,null!=(n=S(0))?n:0];return{xScale:A,yScale:T,bars:L>0?"vertical"===i?nY.apply(void 0,E):rY.apply(void 0,E):[]}},oY=["data","layout","width","height","padding","valueScale","indexScale","hiddenIds"],aY=function(e){var t;return e.some(Array.isArray)?aY((t=[]).concat.apply(t,e)):e},lY=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,l=e.innerPadding,s=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,f=[];return s.forEach((function(e){return c.domain().forEach((function(s,h){var p,g,v=e[h],m=null!=(p=c(o(v.data)))?p:0,b=(null!=(g=function(e){return u(e[n?0:1])}(v))?g:0)+.5*l,y=function(e,t){var r;return(null!=(r=u(e[n?1:0]))?r:0)-t}(v,b)-l,_=Xq(v.data[e.key]),w=_[0],x=_[1],k={id:e.key,value:null===w?w:x,formattedValue:r(x),hidden:!1,index:h,indexValue:s,data:Gq(v.data)};f.push({key:e.key+"."+s,index:f.length,data:k,x:m,y:b,absX:d.left+m,absY:d.top+b,width:t,height:y,color:i(k),label:a(k)})}))})),f},sY=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,l=e.innerPadding,s=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,f=[];return s.forEach((function(e){return u.domain().forEach((function(s,h){var p,g,v=e[h],m=null!=(p=u(o(v.data)))?p:0,b=(null!=(g=function(e){return c(e[n?1:0])}(v))?g:0)+.5*l,y=function(e,t){var r;return(null!=(r=c(e[n?0:1]))?r:0)-t}(v,b)-l,_=Xq(v.data[e.key]),w=_[0],x=_[1],k={id:e.key,value:null===w?w:x,formattedValue:r(x),hidden:!1,index:h,indexValue:s,data:Gq(v.data)};f.push({key:e.key+"."+s,index:f.length,data:k,x:b,y:m,absX:d.left+b,absY:d.top+m,width:y,height:t,color:i(k),label:a(k)})}))})),f},cY=function(e){var t,n,r=e.data,i=e.layout,o=e.width,a=e.height,l=e.padding,s=void 0===l?0:l,c=e.valueScale,u=e.indexScale,d=e.hiddenIds,f=void 0===d?[]:d,h=Iq(e,oY),p=h.keys.filter((function(e){return!f.includes(e)})),g=function(){var e=au([]),t=kd,n=xd,r=Cd;function i(i){var o,a,l=Array.from(e.apply(this,arguments),Sd),s=l.length,c=-1;for(const e of i)for(o=0,++c;o<s;++o)(l[o][c]=[0,+r(e,l[o].key,c,i)]).data=e;for(o=0,a=Pu(t(l));o<s;++o)l[a[o]].index=o;return n(l,a),l}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:au(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:au(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?kd:"function"==typeof e?e:au(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?xd:e,i):n},i}().keys(p).offset(Md)(Yq(r,p)),v="vertical"===i?["y","x",o]:["x","y",a],m=v[0],b=v[1],y=v[2],_=qq(r,h.getIndex,s,u,y,b),w=(n=aY(g),"log"===c.type?n.filter((function(e){return 0!==e})):n),x=wB(c,{all:w,min:Math.min.apply(Math,w),max:Math.max.apply(Math,w)},"x"===m?o:a,m),k="vertical"===i?[_,x]:[x,_],C=k[0],S=k[1],M=h.innerPadding>0?h.innerPadding:0,A=_.bandwidth(),T=[Nq({},h,{innerPadding:M,stackedData:g,xScale:C,yScale:S}),A,null!=(t=c.reverse)&&t];return{xScale:C,yScale:S,bars:A>0?"vertical"===i?lY.apply(void 0,T):sY.apply(void 0,T):[]}},uY=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,o=e.layout,a=e.legendLabel,l=e.reverse,s=ED(null!=a?a:"indexes"===r?"indexValue":"id");return"indexes"===r?function(e,t,n){var r=ZN(e.map((function(e){var t,r;return{id:null!=(t=e.data.indexValue)?t:"",label:n(e.data),hidden:e.data.hidden,color:null!=(r=e.color)?r:"#000"}})),(function(e){return e.id}));return"horizontal"===t&&r.reverse(),r}(t,o,s):function(e,t,n,r,i,o){var a=ZN(e.map((function(e){var t;return{id:e.data.id,label:o(e.data),hidden:e.data.hidden,color:null!=(t=e.color)?t:"#000"}})),(function(e){return e.id}));return("vertical"===t&&"stacked"===r&&"column"===n&&!0!==i||"horizontal"===t&&"stacked"===r&&!0===i)&&a.reverse(),a}(t,o,n,i,l,s)},dY=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},fY=function(e){var t,n=e.indexBy,r=void 0===n?Uq.indexBy:n,i=e.keys,o=void 0===i?Uq.keys:i,a=e.label,l=void 0===a?Uq.label:a,s=e.tooltipLabel,c=void 0===s?Uq.tooltipLabel:s,u=e.valueFormat,d=e.colors,f=void 0===d?Uq.colors:d,h=e.colorBy,p=void 0===h?Uq.colorBy:h,g=e.borderColor,v=void 0===g?Uq.borderColor:g,m=e.labelTextColor,b=void 0===m?Uq.labelTextColor:m,y=e.groupMode,_=void 0===y?Uq.groupMode:y,x=e.layout,k=void 0===x?Uq.layout:x,C=e.data,S=e.margin,T=e.width,L=e.height,E=e.padding,O=void 0===E?Uq.padding:E,R=e.innerPadding,P=void 0===R?Uq.innerPadding:R,z=e.valueScale,D=void 0===z?Uq.valueScale:z,N=e.indexScale,I=void 0===N?Uq.indexScale:N,B=e.initialHiddenIds,F=void 0===B?Uq.initialHiddenIds:B,j=e.enableLabel,W=void 0===j?Uq.enableLabel:j,H=e.labelSkipWidth,U=void 0===H?Uq.labelSkipWidth:H,V=e.labelSkipHeight,$=void 0===V?Uq.labelSkipHeight:V,q=e.legends,Y=void 0===q?Uq.legends:q,G=e.legendLabel,X=e.totalsOffset,Z=void 0===X?Uq.totalsOffset:X,K=w(null!=F?F:[]),J=K[0],Q=K[1],ee=M((function(e){Q((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(t,[e])}))}),[]),te=OD(r),ne=OD(l),re=OD(c),ie=LD(u),oe=eT(),ae=bF(f,p),le=cF(v,oe),se=cF(b,oe),ce=("grouped"===_?iY:cY)({layout:k,data:C,getIndex:te,keys:o,width:T,height:L,getColor:ae,padding:O,innerPadding:P,valueScale:D,indexScale:I,hiddenIds:J,formatValue:ie,getTooltipLabel:re,margin:S}),ue=ce.bars,de=ce.xScale,fe=ce.yScale,he=A((function(){return ue.filter((function(e){return null!==e.data.value})).map((function(e,t){return Nq({},e,{index:t})}))}),[ue]),pe=M((function(e){var t=e.width,n=e.height;return!(!W||U>0&&t<U||$>0&&n<$)}),[W,U,$]),ge=A((function(){return o.map((function(e){var t=ue.find((function(t){return t.data.id===e}));return Nq({},t,{data:Nq({id:e},null==t?void 0:t.data,{hidden:J.includes(e)})})}))}),[J,o,ue]),ve=null!=(t=D.reverse)&&t,me=A((function(){return Y.map((function(e){return[e,uY({bars:"keys"===e.dataFrom?ge:ue,direction:e.direction,from:e.dataFrom,groupMode:_,layout:k,legendLabel:G,reverse:ve})]}))}),[Y,ge,ue,_,k,G,ve]),be=A((function(){return function(e,t,n,r,i,o,a){void 0===r&&(r=Uq.layout),void 0===i&&(i=Uq.groupMode);var l=[];if(0===e.length)return l;var s=new Map,c=e[0].width,u=e[0].height;if("stacked"===i){var d=new Map;e.forEach((function(e){var t=e.data,n=t.indexValue,r=t.value;dY(s,n,Number(r)),function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))}(d,n,Number(r))})),d.forEach((function(e,i){var d,f,h,p=s.get(i)||0;"vertical"===r?(d=t(i),f=n(e),h=n(e/2)):(d=t(e),f=n(i),h=t(e/2)),d+="vertical"===r?c/2:o,f+="vertical"===r?-o:u/2,l.push({key:"total_"+i,x:d,y:f,value:p,formattedValue:a(p),animationOffset:h})}))}else if("grouped"===i){var f=new Map,h=new Map;e.forEach((function(e){var t=e.data,n=t.indexValue,r=t.value;dY(s,n,Number(r)),function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))}(f,n,Number(r)),function(e,t){var n=e.get(t)||0;e.set(t,n+1)}(h,n)})),f.forEach((function(e,i){var d,f,p,g=s.get(i)||0,v=h.get(i);"vertical"===r?(d=t(i),f=n(e),p=n(e/2)):(d=t(e),f=n(i),p=t(e/2)),d+="vertical"===r?v*c/2:o,f+="vertical"===r?-o:v*u/2,l.push({key:"total_"+i,x:d,y:f,value:g,formattedValue:a(g),animationOffset:p})}))}return l}(ue,de,fe,k,_,Z,ie)}),[ue,de,fe,k,_,Z,ie]);return{bars:ue,barsWithValue:he,xScale:de,yScale:fe,getIndex:te,getLabel:ne,getTooltipLabel:re,formatValue:ie,getColor:ae,getBorderColor:le,getLabelColor:se,shouldRenderBarLabel:pe,hiddenIds:J,toggleSerie:ee,legendsWithData:me,barTotals:be}},hY=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,o=void 0===i?Vq.layout:i,a=eT();return nx(t,{keys:function(e){return e.key},from:function(e){return{x:"vertical"===o?e.x:e.animationOffset,y:"vertical"===o?e.animationOffset:e.y,labelOpacity:0}},enter:function(e){return{x:e.x,y:e.y,labelOpacity:1}},update:function(e){return{x:e.x,y:e.y,labelOpacity:1}},leave:function(e){return{x:"vertical"===o?e.x:e.animationOffset,y:"vertical"===o?e.animationOffset:e.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})((function(e,t){return ln(fC.text,{x:e.x,y:e.y,fillOpacity:e.labelOpacity,style:Nq({},a.labels.text,{pointerEvents:"none"}),fontWeight:"bold",fontSize:a.labels.text.fontSize,fontFamily:a.labels.text.fontFamily,textAnchor:"vertical"===o?"middle":"start",alignmentBaseline:"vertical"===o?"alphabetic":"middle",children:t.formattedValue},t.key)}))},pY=["isInteractive","animate","motionConfig","theme","renderWrapper"],gY=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,o=e.margin,a=e.width,l=e.height,s=e.groupMode,c=e.layout,u=e.valueScale,d=e.indexScale,f=e.padding,h=e.innerPadding,p=e.axisTop,g=e.axisRight,v=e.axisBottom,m=void 0===v?Vq.axisBottom:v,b=e.axisLeft,y=void 0===b?Vq.axisLeft:b,_=e.enableGridX,w=void 0===_?Vq.enableGridX:_,x=e.enableGridY,k=void 0===x?Vq.enableGridY:x,C=e.gridXValues,S=e.gridYValues,M=e.layers,T=void 0===M?Vq.layers:M,L=e.barComponent,E=void 0===L?Vq.barComponent:L,O=e.enableLabel,P=void 0===O?Vq.enableLabel:O,D=e.label,N=e.labelSkipWidth,I=void 0===N?Vq.labelSkipWidth:N,B=e.labelSkipHeight,F=void 0===B?Vq.labelSkipHeight:B,j=e.labelTextColor,W=e.labelPosition,H=void 0===W?Vq.labelPosition:W,U=e.labelOffset,V=void 0===U?Vq.labelOffset:U,$=e.markers,q=void 0===$?Vq.markers:$,Y=e.colorBy,G=e.colors,X=e.defs,Z=void 0===X?Vq.defs:X,K=e.fill,J=void 0===K?Vq.fill:K,Q=e.borderRadius,ee=void 0===Q?Vq.borderRadius:Q,te=e.borderWidth,ne=void 0===te?Vq.borderWidth:te,re=e.borderColor,ie=e.annotations,oe=void 0===ie?Vq.annotations:ie,ae=e.legendLabel,le=e.tooltipLabel,se=e.valueFormat,ce=e.isInteractive,ue=void 0===ce?Vq.isInteractive:ce,de=e.tooltip,fe=void 0===de?Vq.tooltip:de,he=e.onClick,pe=e.onMouseEnter,ge=e.onMouseLeave,ve=e.legends,me=e.role,be=void 0===me?Vq.role:me,ye=e.ariaLabel,_e=e.ariaLabelledBy,we=e.ariaDescribedBy,xe=e.isFocusable,ke=void 0===xe?Vq.isFocusable:xe,Ce=e.barAriaLabel,Se=e.barAriaLabelledBy,Me=e.barAriaDescribedBy,Ae=e.barAriaHidden,Te=e.barAriaDisabled,Le=e.initialHiddenIds,Ee=e.enableTotals,Oe=void 0===Ee?Vq.enableTotals:Ee,Re=e.totalsOffset,Pe=void 0===Re?Vq.totalsOffset:Re,ze=e.forwardedRef,De=Rz(),Ne=De.animate,Ie=De.config,Be=MD(a,l,o),Fe=Be.outerWidth,je=Be.outerHeight,We=Be.margin,He=Be.innerWidth,Ue=Be.innerHeight,Ve=fY({indexBy:r,label:D,tooltipLabel:le,valueFormat:se,colors:G,colorBy:Y,borderColor:re,labelTextColor:j,groupMode:s,layout:c,data:n,keys:i,margin:We,width:He,height:Ue,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:P,labelSkipWidth:I,labelSkipHeight:F,legends:ve,legendLabel:ae,initialHiddenIds:Le,totalsOffset:Pe}),$e=Ve.bars,qe=Ve.barsWithValue,Ye=Ve.xScale,Ge=Ve.yScale,Xe=Ve.getLabel,Ze=Ve.getTooltipLabel,Ke=Ve.getBorderColor,Je=Ve.getLabelColor,Qe=Ve.shouldRenderBarLabel,et=Ve.toggleSerie,tt=Ve.legendsWithData,nt=Ve.barTotals,rt=Ve.getColor,it=Zq(c,null!=(t=null==u?void 0:u.reverse)&&t,H,V),ot=nx(qe,{keys:function(e){return e.key},from:function(e){return Nq({borderColor:Ke(e),color:e.color,height:0,labelColor:Je(e),labelOpacity:0},it(e.width,e.height),{transform:"translate("+e.x+", "+(e.y+e.height)+")",width:e.width},"vertical"===c?{}:{height:e.height,transform:"translate("+e.x+", "+e.y+")",width:0})},enter:function(e){return Nq({borderColor:Ke(e),color:e.color,height:e.height,labelColor:Je(e),labelOpacity:1},it(e.width,e.height),{transform:"translate("+e.x+", "+e.y+")",width:e.width})},update:function(e){return Nq({borderColor:Ke(e),color:e.color,height:e.height,labelColor:Je(e),labelOpacity:1},it(e.width,e.height),{transform:"translate("+e.x+", "+e.y+")",width:e.width})},leave:function(e){return Nq({borderColor:Ke(e),color:e.color,height:0,labelColor:Je(e),labelOpacity:0},it(e.width,e.height),{labelY:0,transform:"translate("+e.x+", "+(e.y+e.height)+")",width:e.width},"vertical"===c?{}:Nq({},it(e.width,e.height),{labelX:0,height:e.height,transform:"translate("+e.x+", "+e.y+")",width:0}))},config:Ie,immediate:!Ne,initial:Ne?void 0:null}),at=A((function(){return{borderRadius:ee,borderWidth:ne,enableLabel:P,isInteractive:ue,labelSkipWidth:I,labelSkipHeight:F,onClick:he,onMouseEnter:pe,onMouseLeave:ge,getTooltipLabel:Ze,tooltip:fe,isFocusable:ke,ariaLabel:Ce,ariaLabelledBy:Se,ariaDescribedBy:Me,ariaHidden:Ae,ariaDisabled:Te}}),[ee,ne,P,Ze,ue,F,I,he,pe,ge,fe,ke,Ce,Se,Me,Ae,Te]),lt=ID(Z,$e,J,{dataKey:"data",targetKey:"data.fill"}),st={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};T.includes("annotations")&&(st.annotations=ln(Fq,{bars:$e,annotations:oe},"annotations")),T.includes("axes")&&(st.axes=ln(HB,{xScale:Ye,yScale:Ge,width:He,height:Ue,top:p,right:g,bottom:m,left:y},"axes")),T.includes("bars")&&(st.bars=ln(z,{children:ot((function(e,t){return R(E,Nq({},at,{bar:t,style:e,shouldRenderLabel:Qe(t),label:Xe(t.data)}))}))},"bars")),T.includes("grid")&&(st.grid=ln($B,{width:He,height:Ue,xScale:w?Ye:null,yScale:k?Ge:null,xValues:C,yValues:S},"grid")),T.includes("legends")&&(st.legends=ln(jq,{width:He,height:Ue,legends:tt,toggleSerie:et},"legends")),T.includes("markers")&&(st.markers=ln(_D,{markers:q,width:He,height:Ue,xScale:Ye,yScale:Ge},"markers")),T.includes("totals")&&Oe&&(st.totals=ln(hY,{data:nt,springConfig:Ie,animate:Ne,layout:c},"totals"));var ct=Nq({},at,{margin:We,width:a,height:l,innerWidth:He,innerHeight:Ue,bars:$e,legendData:tt,enableLabel:P,xScale:Ye,yScale:Ge,tooltip:fe,getTooltipLabel:Ze,onClick:he,onMouseEnter:pe,onMouseLeave:ge,getColor:rt});return ln(vD,{width:Fe,height:je,margin:We,defs:lt,role:be,ariaLabel:ye,ariaLabelledBy:_e,ariaDescribedBy:we,isFocusable:ke,ref:ze,children:T.map((function(e,t){var n;return"function"==typeof e?ln(z,{children:R(e,ct)},t):null!=(n=null==st?void 0:st[e])?n:null}))})},vY=S((function(e,t){var n=e.isInteractive,r=void 0===n?Vq.isInteractive:n,i=e.animate,o=void 0===i?Vq.animate:i,a=e.motionConfig,l=void 0===a?Vq.motionConfig:a,s=e.theme,c=e.renderWrapper,u=Iq(e,pY);return ln(Dz,{animate:o,isInteractive:r,motionConfig:l,renderWrapper:c,theme:s,children:ln(gY,Nq({},u,{isInteractive:r,forwardedRef:t}))})})),mY=["isInteractive","renderWrapper","theme"],bY=function(e,t,n,r){return e.find((function(e){return PD(e.x+t.left,e.y+t.top,e.width,e.height,n,r)}))},yY=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,o=e.margin,a=e.width,l=e.height,s=e.groupMode,c=e.layout,u=e.valueScale,d=e.indexScale,f=e.padding,h=e.innerPadding,p=e.axisTop,g=e.axisRight,v=e.axisBottom,m=void 0===v?$q.axisBottom:v,b=e.axisLeft,y=void 0===b?$q.axisLeft:b,_=e.enableGridX,w=void 0===_?$q.enableGridX:_,k=e.enableGridY,S=void 0===k?$q.enableGridY:k,T=e.gridXValues,L=e.gridYValues,E=e.labelPosition,O=void 0===E?$q.labelPosition:E,P=e.labelOffset,z=void 0===P?$q.labelOffset:P,D=e.layers,N=void 0===D?$q.layers:D,I=e.renderBar,B=void 0===I?$q.renderBar:I,F=e.enableLabel,j=void 0===F?$q.enableLabel:F,W=e.label,H=e.labelSkipWidth,U=void 0===H?$q.labelSkipWidth:H,V=e.labelSkipHeight,$=void 0===V?$q.labelSkipHeight:V,q=e.labelTextColor,Y=e.colorBy,G=e.colors,X=e.borderRadius,Z=void 0===X?$q.borderRadius:X,K=e.borderWidth,J=void 0===K?$q.borderWidth:K,Q=e.borderColor,ee=e.annotations,te=void 0===ee?$q.annotations:ee,ne=e.legendLabel,re=e.tooltipLabel,ie=e.valueFormat,oe=e.isInteractive,ae=void 0===oe?$q.isInteractive:oe,le=e.tooltip,se=void 0===le?$q.tooltip:le,ce=e.onClick,ue=e.onMouseEnter,de=e.onMouseLeave,fe=e.legends,he=e.pixelRatio,pe=void 0===he?$q.pixelRatio:he,ge=e.role,ve=e.forwardedRef,me=e.enableTotals,be=void 0===me?$q.enableTotals:me,ye=e.totalsOffset,_e=void 0===ye?$q.totalsOffset:ye,we=C(null),xe=eT(),ke=MD(a,l,o),Ce=ke.margin,Se=ke.innerWidth,Me=ke.innerHeight,Ae=ke.outerWidth,Te=ke.outerHeight,Le=fY({indexBy:r,label:W,tooltipLabel:re,valueFormat:ie,colors:G,colorBy:Y,borderColor:Q,labelTextColor:q,groupMode:s,layout:c,data:n,keys:i,margin:Ce,width:Se,height:Me,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:j,labelSkipWidth:U,labelSkipHeight:$,legends:fe,legendLabel:ne,totalsOffset:_e}),Ee=Le.bars,Oe=Le.barsWithValue,Re=Le.xScale,Pe=Le.yScale,ze=Le.getLabel,De=Le.getTooltipLabel,Ne=Le.getBorderColor,Ie=Le.getLabelColor,Be=Le.shouldRenderBarLabel,Fe=Le.legendsWithData,je=Le.barTotals,We=Le.getColor,He=mT(),Ue=He.showTooltipFromEvent,Ve=He.hideTooltip,$e=z$({annotations:P$({data:Ee,annotations:te,getPosition:function(e){return{x:e.x,y:e.y}},getDimensions:function(e){var t=e.width,n=e.height;return{width:t,height:n,size:Math.max(t,n)}}})}),qe=A((function(){return{borderRadius:Z,borderWidth:J,isInteractive:ae,isFocusable:!1,labelSkipWidth:U,labelSkipHeight:$,margin:Ce,width:a,height:l,innerWidth:Se,innerHeight:Me,bars:Ee,legendData:Fe,enableLabel:j,xScale:Re,yScale:Pe,tooltip:se,getTooltipLabel:De,onClick:ce,onMouseEnter:ue,onMouseLeave:de,getColor:We}}),[Z,J,ae,U,$,Ce,a,l,Se,Me,Ee,Fe,j,Re,Pe,se,De,ce,ue,de,We]),Ye=LD(ie),Ge=Zq(c,null!=(t=null==u?void 0:u.reverse)&&t,O,z);x((function(){if(we.current){we.current.width=Ae*pe,we.current.height=Te*pe;var e=we.current.getContext("2d");e.scale(pe,pe),e.fillStyle=xe.background,e.fillRect(0,0,Ae,Te),e.translate(Ce.left,Ce.top),N.forEach((function(t){"grid"===t?"number"==typeof xe.grid.line.strokeWidth&&xe.grid.line.strokeWidth>0&&(e.lineWidth=xe.grid.line.strokeWidth,e.strokeStyle=xe.grid.line.stroke,w&&GB(e,{width:Se,height:Me,scale:Re,axis:"x",values:T}),S&&GB(e,{width:Se,height:Me,scale:Pe,axis:"y",values:L})):"axes"===t?YB(e,{xScale:Re,yScale:Pe,width:Se,height:Me,top:p,right:g,bottom:m,left:y,theme:xe}):"bars"===t?(FD(e,xe.text),Oe.forEach((function(t){B(e,Nq({bar:t,borderColor:Ne(t),borderRadius:Z,borderWidth:J,label:ze(t.data),shouldRenderLabel:Be(t),labelStyle:Nq({},xe.labels.text,{fill:Ie(t)})},Ge(t.width,t.height)))}))):"legends"===t?Fe.forEach((function(t){var n=t[0],r=t[1];$F(e,Nq({},n,{data:r,containerWidth:Se,containerHeight:Me,theme:xe}))})):"annotations"===t?H$(e,{annotations:$e,theme:xe}):"totals"===t&&be?function(e,t,n,r){void 0===r&&(r=$q.layout),FD(e,n.labels.text),e.textBaseline="vertical"===r?"alphabetic":"middle",e.textAlign="vertical"===r?"center":"start",t.forEach((function(t){jD(e,n.labels.text,t.formattedValue,t.x,t.y)}))}(e,je,xe,c):"function"==typeof t&&t(e,qe)})),e.save()}}),[m,y,g,p,Oe,Z,J,$e,w,S,Ne,ze,Ie,T,L,s,l,Me,Se,qe,N,c,Fe,Ce.left,Ce.top,Te,Ae,pe,B,Re,Pe,Be,xe,a,je,be,Ye,Ge]);var Xe=M((function(e){if(Ee&&we.current){var t=zD(we.current,e),n=t[0],r=t[1],i=bY(Ee,Ce,n,r);void 0!==i?(Ue(R(se,Nq({},i.data,{color:i.color,label:i.label,value:Number(i.data.value)})),e),"mouseenter"===e.type&&(null==ue||ue(i.data,e))):Ve()}}),[Ve,Ce,ue,Ee,Ue,se]),Ze=M((function(e){if(Ee&&we.current){Ve();var t=zD(we.current,e),n=t[0],r=t[1],i=bY(Ee,Ce,n,r);i&&(null==de||de(i.data,e))}}),[Ve,Ce,de,Ee]),Ke=M((function(e){if(Ee&&we.current){var t=zD(we.current,e),n=t[0],r=t[1],i=bY(Ee,Ce,n,r);void 0!==i&&(null==ce||ce(Nq({},i.data,{color:i.color}),e))}}),[Ce,ce,Ee]);return ln("canvas",{ref:BD(we,ve),width:Ae*pe,height:Te*pe,style:{width:Ae,height:Te,cursor:ae?"auto":"normal"},onMouseEnter:ae?Xe:void 0,onMouseMove:ae?Xe:void 0,onMouseLeave:ae?Ze:void 0,onClick:ae?Ke:void 0,role:ge})},_Y=S((function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=Iq(e,mY);return ln(Dz,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:ln(yY,Nq({},o,{isInteractive:n,forwardedRef:t}))})})),wY=["defaultWidth","defaultHeight","onResize","debounceResize"],xY=S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Iq(e,wY);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(vY,Nq({},a,{width:n,height:r,ref:t}))}})})),kY=["defaultWidth","defaultHeight","onResize","debounceResize"];S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Iq(e,kY);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(_Y,Nq({},a,{width:n,height:r,ref:t}))}})}));var CY="styles_legends__LAO35";const SY=e=>{const{data:t,onLegendClick:n}=e;return ln("div",{className:CY,children:t.map((e=>ln(i$,{legend:e,onClick:n},e.id)))})},MY=({value:e,indexBy:t,legend:n,formatIndexBy:r=(e,t)=>e[t]?.toString()??"",formatLegendValue:i=e=>(e.value??0).toString()??"",allowZeroValues:o=!1})=>{const a=o?n:n.filter((t=>t$(e[t.id])&&0!==Number(e[t.id])));return ln(qV,{label:r(e,t),children:a.map((t=>ln(i$,{mode:"menu",legend:{...t,value:i({...t,value:e[t.id]})}},t.id)))})},AY=e=>{const{background:t,grid:n}=eT();return ln("g",{children:[ln("line",{opacity:"1",x1:"0",x2:e.innerWidth,y1:e.innerHeight,y2:e.innerHeight,stroke:t,strokeWidth:"1"}),ln("line",{opacity:"1",x1:"0",x2:e.innerWidth,y1:e.innerHeight,y2:e.innerHeight,stroke:n.line.stroke,strokeWidth:"1"})]})},TY=l(null),LY=e=>{const{children:t}=e,[n,r]=c(void 0);return ln(TY.Provider,{value:[n,r],children:t})},EY=e=>{const t=s(null),[n,r]=c(!1),[i,o]=c(null),a=s(null),l=s((()=>{})),u=d((async(n,i)=>{if(!t.current)return;if(a.current===n)return;const s=()=>{if(t.current)return Wr(n,t.current,{middleware:[jr(),Br(6),Fr({padding:5})],strategy:"fixed",placement:e}).then((({x:e,y:n,strategy:r})=>{t.current&&(t.current.style.position=r,t.current.style.pointerEvents="none",t.current.style.left=`${e}px`,t.current.style.top=`${n}px`)}))};await s(),a.current=n,r(!0),o(i),l.current=Ir(n,t.current,s)}),[e]),f=d((e=>{a.current===e&&(l.current(),a.current=null,r(!1),o(null))}),[]);return{tooltipRef:t,isVisible:n,handleShowTooltip:u,handleHideTooltip:f,data:i}},OY={s:16,m:24,l:32},RY=(e,t)=>Math.min(e,OY[t]),PY=e=>{const{isInteractive:t,isFocusable:r,innerHeight:i,innerWidth:o,tooltip:a,indexBy:l,layout:s="vertical",bars:c,hasValueFn:u=t=>Object.entries(t).filter((([t])=>t!==e.indexBy)).reduce(((e,[,t])=>e+zp.toNumber(t??0)),0)>0}=e,d="horizontal"===s,{handleShowTooltip:f,isVisible:h,handleHideTooltip:p,tooltipRef:g,data:v}=EY(d?"bottom":"left"),{animate:m,config:b}=Rz(),{opacity:y}=tx({opacity:h?1:0,config:{...b,duration:75},immediate:!m});if(!t)return null;const _=Math.max(...c.map((e=>e.data.index+1))),w=c.slice(0,_);if(w.length<=0)return null;const[x,k]=w;if(!x)return null;const C=k?.x?k.x-x.x:x.width,S=C-x.width,M=k?.y?x.y-k.y:x.height,A=M-x.height;return ln(DV.g,{"data-testid":"hover-layer",children:[w.map(((e,n)=>{const a=e.x-S/2,s=e.y-A/2;return u(e.data.data)?ln(zY,{x:d?0:a,y:d?s:0,width:d?o:C,height:d?M:i,value:e.data.data,indexBy:l,isInteractive:t,isFocusable:r,onTooltipShow:f,onTooltipHide:p},n):null})),mi(ln(DV.div,{ref:g,style:{display:y?"block":"none",opacity:y},children:h&&v&&n(a,{value:v})}),document.body)]})},zY=({x:e,y:t,width:n,height:r,value:i,isInteractive:o=!0,isFocusable:a=!0,indexBy:l,onTooltipShow:s,onTooltipHide:c})=>{const[u,h]=(()=>{const e=f(TY);if(!e)throw new Error("useBarChartState must be used within a BarChartStateProvider");return e})(),{animate:p,config:g}=Rz(),v=i[l],m=u===String(v),{fill:b}=tx({from:{fill:"#ffffff00"},to:{fill:"var(--bg-control-flat-medium)"},config:{...g,duration:150},reverse:!m,immediate:!p}),y=d((e=>{s(e.target,i)}),[s,i]),_=d((e=>{s(e.target,i),h(String(v))}),[s,i,h,v]),w=d((e=>{c(e.target),h(void 0)}),[c,h]),x=d((e=>{s(e.target,i),h(String(v))}),[s,i,h,v]),k=d((e=>{c(e.target),h(void 0)}),[c,h]);return ln(DV.rect,{x:e,y:t,"data-testid":"hover-rect",width:n,height:r,fill:b,onMouseMove:o?y:void 0,onMouseEnter:o?_:void 0,onMouseLeave:o?w:void 0,onFocus:o&&a?x:void 0,onBlur:o&&a?k:void 0})},DY=l(null),NY=()=>{const e=f(DY);if(!e)throw new Error("useBarContext must be used within a BarContext");return e},IY=e=>{const{bars:t,indexBy:n,layout:r="vertical",barSize:i,groupMode:o="stacked"}=e,a=h((()=>(e=>{const{bars:t,indexBy:n,layout:r,groupMode:i}=e,o=new Map;for(const e of t){const t=e.data.data[n];o.has(t)||o.set(t,{id:t,bars:[],x:1/0,y:1/0,width:0,height:0});const a=o.get(t);a.bars.push(e),a.x=Math.min(a.x,e.x),a.y=Math.min(a.y,e.y);let l=a.width+e.width,s=a.height+e.height;"vertical"===r&&(l=Math.max(a.width,e.width),"grouped"===i&&(s=Math.max(a.height,e.height))),"horizontal"===r&&(s=Math.max(a.height,e.height),"grouped"===i&&(l=Math.max(a.width,e.width))),a.width=l,a.height=s}return Array.from(o.values())})({bars:t,indexBy:n,layout:r,groupMode:o})),[t,n,r,o]),l=Math.min(...a.map((e=>e.y))),s=Math.min(...a.map((e=>e.x)));return ln(DY.Provider,{value:{barSize:i,layout:r,groupMode:o},children:ln(DV.g,{"data-testid":"bars",pointerEvents:"none",children:a.map((e=>ln(BY,{group:e,offsetY:l,offsetX:s},e.id)))})})},BY=e=>{const{group:t}=e,{barSize:n,layout:r}=NY(),{animate:i,config:o}=Rz(),a=p(),l="horizontal"===r,s=RY(t.height,n),c=RY(t.width,n),u=t.width-c,d=t.height-s,f=l?t.x:t.x+u/2,g=l?t.y+d/2:t.y,v=l?t.width:c,m=l?s:t.height,b=(y=l?s:c)<=4?0:y<=OY.s/3?1:y<=OY.s/2?1.5:y<OY.s?2:y>=OY.s&&y<OY.m?4:y>=OY.m?6:0;var y;const{transform:_}=tx({transform:`translate(${f}, ${g})`,config:o,immediate:!i}),w=h((()=>{const e=t.bars.filter((e=>e.width>0&&e.height>0));return"horizontal"===r?e.sort(((e,t)=>e.x-t.x)):e.sort(((e,t)=>e.y-t.y))}),[t.bars,r]),x="horizontal"===r?v<2*b:m<2*b;return ln(DV.g,{clipPath:x?void 0:`url(#clip-${a})`,transform:_,"data-testid":"group","data-id":t.id,children:[!x&&ln("defs",{children:ln("clipPath",{id:`clip-${a}`,children:ln(DV.rect,{x:0,y:0,width:v,height:m,rx:b,ry:b})})}),w.map(((e,t)=>ln(FY,{id:e.data.id,x:l?e.x-f:0,y:l?0:e.y-g,width:l?e.width:v,height:l?m:e.height,fill:e.color,isFirst:0===t,isLast:t===w.length-1},e.data.id)))]})},FY=e=>{const{isFirst:t,isLast:n,id:r,...i}=e,{layout:o}=NY(),{animate:a,config:l}=Rz(),s="horizontal"===o?i.width:i.height,c=!t&&s>2,u=!n&&s>2;let d=i.width,f=i.height,h=i.x,p=i.y;"horizontal"===o&&(c&&u&&(h+=.5,d-=.5),u&&(d-=.5)),"vertical"===o&&(c&&(p+=.5,f-=.5),u&&(f-=.5));const g=tx({x:h,y:p,width:d,height:f,config:l,immediate:!a});return ln(DV.rect,{...g,fill:i.fill,"data-testid":"bar","data-id":r})};function jY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function WY(e,t,n,r){for(var i=0,o=0,a=e.length;o<a;o++){var l=e[o],s=+t(l,o,e),c=+n(l,o,e);null!=s&&isFinite(s)&&null!=c&&isFinite(c)&&r(s,c,i++)}}const HY=function(){var e,t=function(e){return e[0]},n=function(e){return e[1]};function r(r){var i=0,o=0,a=0,l=0,s=0,c=e?+e[0]:1/0,u=e?+e[1]:-1/0;WY(r,t,n,(function(t,n){++i,o+=(t-o)/i,a+=(n-a)/i,l+=(t*n-l)/i,s+=(t*t-s)/i,e||(t<c&&(c=t),t>u&&(u=t))}));var d=function(e,t,n,r){var i=r-e*e,o=Math.abs(i)<1e-24?0:(n-e*t)/i;return[t-o*e,o]}(o,a,l,s),f=jY(d,2),h=f[0],p=f[1],g=function(e){return p*e+h},v=[[c,g(c)],[u,g(u)]];return v.a=p,v.b=h,v.predict=g,v.rSquared=function(e,t,n,r,i){var o=0,a=0;return WY(e,t,n,(function(e,t){var n=t-i(e),l=t-r;o+=n*n,a+=l*l})),1-o/a}(r,t,n,a,g),v}return r.domain=function(t){return arguments.length?(e=t,r):e},r.x=function(e){return arguments.length?(t=e,r):t},r.y=function(e){return arguments.length?(n=e,r):n},r}().x((e=>e.x)).y((e=>e.y)),UY=Bu().x((e=>e[0])).y((e=>e[1])),VY=e=>{const{legend:t,indexBy:n,bars:r,innerHeight:i,innerWidth:o,formatValue:a=e=>zp.toNumber(e)}=e,l=h((()=>t.filter((e=>"point"===e.type)).map((e=>e.id))),[t]),s=p(),c=h((()=>t.filter((e=>"point"===e.type)).reduce(((e,t)=>(e[t.id]=t.color,e)),{})),[t]),u=h((()=>(e=>{const t=Math.max(...e.map((e=>e.data.index+1)));return e.slice(0,t)})(r)),[r]),d=h((()=>kB(l.map((e=>({id:e,data:u.map((t=>{const r=a(zp.toNumber(t.data.data[e]??0),e);return void 0===r?null:{x:zp.toNumber(t.data.data[n]??0),y:r}})).filter((e=>null!==e))}))),{type:"linear"},{type:"linear",nice:!0,min:0,max:100},o,i)),[l,u,n,a,o,i]),f=h((()=>l.map((e=>{if(u.length<2)return null;const t=c[e]??"",n=u.map((t=>{const n=a(zp.toNumber(t.data.data[e]??0),e);return void 0===n?null:{x:zp.toNumber(t.x+t.width/2),y:zp.toNumber(d.yScale(n)??0),id:t.key,value:n}})).filter((e=>null!==e));if(u.length===n.length)return{trendKey:e,color:t,points:n};if(n.length<2)return null;const r=HY(n),i=u.map((t=>{const n=a(zp.toNumber(t.data.data[e]??0),e),i=zp.toNumber(t.x+t.width/2);let o=r.predict(i);return void 0!==n&&(o=zp.toNumber(d.yScale(n)??0)),{x:i,y:o,id:t.key,value:n}}));return{trendKey:e,color:t,points:i}})).filter((e=>null!==e))),[l,u,a,d,c]);if(0===l.length)return null;if(0===f.length)return null;return ln(DV.g,{"data-testid":"trend-lines-layer",pointerEvents:"none",clipPath:`url(#${s})`,children:[ln("defs",{children:ln("clipPath",{id:s,children:ln("rect",{x:-5,y:-5,width:o+5,height:i+5})})}),f.map((({trendKey:e,points:t,color:n})=>ln(DV.g,{"data-testid":"trend-line-group","data-trend-key":e,children:[ln($Y,{points:t,color:n},e),t.filter((e=>void 0!==e.value&&e.value>=0&&e.value<=100)).map((({x:e,y:t,id:r})=>ln(qY,{x:e,y:t,color:n},r)))]},e)))]})},$Y=e=>{const{points:t,color:n}=e,{animate:r,config:i}=Rz(),o=h((()=>0===t.length||t.length<2?[]:HY(t)),[t]),{d:a}=tx({d:UY(o)??void 0,config:i,immediate:!r});return 0===t.length||t.length<2||0===o.length?null:ln(DV.path,{d:a,"data-testid":"trend-line",fill:"none",stroke:n,strokeWidth:2,strokeLinecap:"round",pointerEvents:"none",strokeDasharray:"4"})},qY=e=>{const{x:t,y:n,color:r}=e,{animate:i,config:o}=Rz(),{cx:a,cy:l}=tx({cx:t,cy:n,config:o,immediate:!i});return ln(DV.circle,{"data-testid":"trend-line-point",cx:a,cy:l,r:3,strokeWidth:2,fill:"white",stroke:r,pointerEvents:"none"})},YY=({data:e,layout:t="vertical",indexBy:n,keys:r,stacked:i,position:o,formatLeftTick:a,formatBottomTick:l})=>{if("horizontal"===t){const t=6,r=e.map((e=>l(e[n],e).toString().length));return Math.max(...r)*t+8}const s=Math.floor(Math.max(...e.map((e=>r.map((t=>zp.toNumber(e[t]??0))).reduce(((e,t)=>e+t),0))))),c=a(s).toString().length+1;return 8+8*c+10*Math.max(Math.floor((c-1)/3),0)+1};var GY="styles_container__nVJhv",XY="styles_barContainer__DTIpd";const ZY=e=>{const{data:t,legend:n,indexBy:r,renderBottomTick:i,onBarClick:o,padding:a=.5,formatLegendValue:l,formatIndexBy:s,hasValueFn:c,currentLocale:u="en-US",formatBottomTick:d=e=>e,formatLeftTick:f=e=>n$(e,u),bottomTickRotation:p=0,noLegend:g=!1,minValue:v,maxValue:m,groupMode:b="stacked",bottomTickSize:y=12,markers:_=[],colors:w,leftAxisTickValues:x,layout:k="vertical",formatTrendValue:C}=e,S=h((()=>new Map(n.map((e=>[e.id,e])))),[n]),M=h((()=>n.filter((e=>"point"!==e.type&&"tree"!==e.type)).map((e=>e.id))),[n]),A=h((()=>((e,t)=>e.every((e=>Object.keys(e).filter((e=>e!==t)).every((t=>0===e[t])))))(t,r)),[t,r]),T=h((()=>t.length>=8?"s":t.length>=6?"m":"l"),[t]),L="horizontal"===k;return ln("div",{className:GY,children:[ln("div",{className:XY,children:ln(LY,{children:ln(xY,{data:t,theme:_V,groupMode:b,layout:k,defaultHeight:275,keys:M,indexBy:r,margin:{top:10,right:20,bottom:p>0?60:40,left:YY({data:t,layout:k,keys:M,indexBy:r,stacked:!0,position:"left",formatLeftTick:f,formatBottomTick:d})},padding:a,innerPadding:0,valueScale:{type:"linear",nice:!0,min:v,max:m},indexScale:{type:"band",round:!0},layers:["grid","axes",AY,e=>ln(IY,{...e,indexBy:r,layout:k,legend:n,barSize:T,groupMode:b}),e=>ln(VY,{...e,legend:n,indexBy:r,formatValue:C}),"markers",e=>ln(PY,{...e,hasValueFn:c,indexBy:r,layout:k,tooltip:({value:e})=>ln(MY,{allowZeroValues:!0,value:e,indexBy:r,legend:n,formatLegendValue:l,formatIndexBy:s})})],markers:_,colors:"function"==typeof w?w:e=>S.get(e.id)?.color??"var(--bg-base-secondary)",enableLabel:!1,enableTotals:!1,axisTop:null,axisRight:null,axisBottom:{tickSize:0,tickPadding:5,tickRotation:p,truncateTickAt:0,renderTick:i,style:{ticks:{text:{fontSize:y}}},format:L?f:e=>d(e,t.find((t=>t[r]===e))),tickValues:t.length>30?t.filter(((e,t)=>!(t%2))).map((e=>e[r])):void 0},axisLeft:{tickSize:0,tickPadding:8,tickRotation:0,truncateTickAt:0,format:L?d?e=>d(e,t.find((t=>t[r]===e))):void 0:f,tickValues:x},animate:!mV,motionConfig:vV,onClick:o})})}),!A&&!g&&ln(SY,{data:n})]})},KY=(e,t)=>e>=t,JY=e=>e>=91?"bottom-right":"top-right",QY=e=>{const{title:t,data:n,i18n:r,keys:i,threshold:o=90}=e,a=h((()=>zp.take(n,15).map((({id:e,stabilityRate:t})=>({id:e,stabilityRate:t,[e]:t})))),[n]),l=r("legend.stabilityRate"),s=(e=>e>=100?100:e<=0?0:e)(o),c=h((()=>a.map((({id:e,stabilityRate:t})=>({id:e,label:l,color:KY(t,s)?"var(--bg-support-castor-heavy)":"var(--bg-support-capella-heavy)",value:t,[e]:t})))),[a,l,s]),u=0===a.length;return ln(xv,u?{title:t,children:ln(Jh,{title:r("no-results"),icon:sn.lineChartsBarChartSquare})}:{title:t,children:ln(ZY,{markers:[{axis:"y",value:o,legend:`${o}%`,textStyle:{fill:_V.markers?.text?.fill,fontSize:_V.markers?.text?.fontSize,fontWeight:_V.markers?.text?.fontWeight},lineStyle:{stroke:_V.markers?.lineColor,strokeWidth:_V.markers?.lineStrokeWidth},legendPosition:JY(s),legendOffsetY:10,legendOffsetX:7}],groupMode:"stacked",data:a,legend:c,indexBy:"id",hasValueFn:()=>!0,formatIndexBy:e=>i[e.id],formatBottomTick:(e,t)=>zp.truncate(i[t.id],{length:15}),bottomTickSize:a.length>4?10:12,formatLegendValue:({value:e})=>{if(void 0!==e)return`${e}%`},noLegend:!0,formatLeftTick:e=>`${e}%`,maxValue:100,leftAxisTickValues:[0,10,20,30,40,50,60,70,80,90,100],bottomTickRotation:45,colors:e=>((e,t)=>{if(e>=t)return"var(--bg-support-castor-heavy)";const n=t>20?t-5:void 0;return n&&e>=n?"var(--bg-support-atlas-heavy)":"var(--bg-support-capella-heavy)"})(e.data.stabilityRate,s)})})},eG=e=>e.startsWith("new:"),tG=e=>e.startsWith("removed:"),nG=e=>{const{title:t,data:n,i18n:r,statuses:i}=e,o=n.find((e=>"current"===e.id)),a=h((()=>{const e=[];for(const t of i)e.push(`new:${t}`);for(const t of i)e.push(`removed:${t}`);return e}),[i]),l=h((()=>[...a.map((e=>{const t=e.replace(":",""),n=e.replace("new:","").replace("removed:","");return{id:e,label:r(`status.${t}`),color:CW(n),value:eG(e)?1:-1}})),{id:"trend",label:r("legend.trend"),color:"var(--bg-support-betelgeuse-medium)",type:"point"}]),[a,r]),s=Math.ceil(1.01*Math.max(...n.map((e=>{const t=Math.abs(a.filter((e=>tG(e))).reduce(((t,n)=>t+(e[n]??0)),0)),n=Math.abs(a.filter((e=>eG(e))).reduce(((t,n)=>t+(e[n]??0)),0));return Math.max(n,t)})))),c=h((()=>n.map((e=>{const t=2*s,n=((e,t)=>t.reduce(((t,n)=>(eG(n)&&(t[n]=e[n]??0),tG(n)&&(t[n]=-(e[n]??0)),t)),{}))(e,a),r=Math.abs(a.filter((e=>tG(e))).reduce(((e,t)=>e+(n[t]??0)),0)),i=Math.abs(a.filter((e=>eG(e))).reduce(((e,t)=>e+(n[t]??0)),0)),o=SW({positiveValue:i,negativeValue:r,absTotal:t,noValuePercentage:-1});return{id:e.id,timestamp:e.timestamp,...n,trend:o}}))),[n,a,s]),u=c.every((e=>a.every((t=>0===e[t])))),d=c.filter((e=>"current"!==e.id)).every((e=>a.every((t=>0===e[t]))));return!o||u?ln(xv,{title:t,children:ln(Jh,{title:r("no-results"),icon:sn.lineChartsBarChartSquare})}):1===n.length&&o||d?ln(xv,{title:t,children:ln(Jh,{title:r("no-history"),icon:sn.lineChartsBarChartSquare})}):ln(xv,{title:t,children:ln(ZY,{groupMode:"stacked",data:c,legend:l,indexBy:"id",hasValueFn:()=>!0,formatIndexBy:e=>"current"===e.id?r("tooltips.current"):r("tooltips.history",{timestamp:e?.timestamp}),formatBottomTick:e=>{if("current"===e)return r("ticks.current");const t=c.find((t=>t.id===e));return t?r("ticks.history",{timestamp:t?.timestamp}):""},bottomTickRotation:45,formatLegendValue:({value:e,id:t})=>"trend"===t?"":e?n$(Math.abs(Number(e))):"-",noLegend:!0,formatLeftTick:e=>{const t=Math.abs(Number(e));return Number.isInteger(t)?n$(Math.abs(Number(e))):""},minValue:-s,maxValue:s,formatTrendValue:e=>{if(-1!==e)return e}})})},rG=e=>"skipped"===e||"unknown"===e,iG=e=>"failed"===e||"broken"===e,oG=(e,t)=>t.reduce(((t,n)=>(rG(n)&&(t[n]=e[n]??0),iG(n)&&(t[n]=-(e[n]??0)),t)),{}),aG=e=>{const{title:t,data:n,i18n:r,statuses:i}=e,o=n.find((e=>"current"===e.id)),a=h((()=>i.map((e=>({id:e,label:r(`status.${e}`),color:CW(e),value:rG(e)?1:-1})))),[i,r]),l=h((()=>n.map((e=>({id:e.id,timestamp:e.timestamp,...oG(e,i)})))),[n,i]),s=l.every((e=>i.every((t=>0===e[t])))),c=l.filter((e=>"current"!==e.id)).every((e=>i.every((t=>0===e[t]))));if(!o||s)return ln(xv,{title:t,children:ln(Jh,{title:r("no-results"),icon:sn.lineChartsBarChartSquare})});if(1===n.length&&o||c)return ln(xv,{title:t,children:ln(Jh,{title:r("no-history"),icon:sn.lineChartsBarChartSquare})});const u=Math.max(...l.map((e=>{const t=Math.abs(i.filter((e=>iG(e))).reduce(((t,n)=>t+(e[n]??0)),0)),n=Math.abs(i.filter((e=>rG(e))).reduce(((t,n)=>t+(e[n]??0)),0));return Math.max(t,n)}))),d=Math.ceil(1.01*u);return ln(xv,{title:t,children:ln(ZY,{groupMode:"stacked",layout:"horizontal",data:l,legend:a,indexBy:"id",hasValueFn:()=>!0,formatIndexBy:e=>"current"===e.id?r("tooltips.current"):r("tooltips.history",{timestamp:e?.timestamp}),formatBottomTick:e=>{if("current"===e)return zp.truncate(r("ticks.current"),{length:15});const t=l.find((t=>t.id===e));return t?zp.truncate(r("ticks.history",{timestamp:t?.timestamp}),{length:15}):""},bottomTickSize:10,formatLegendValue:({value:e})=>e?n$(Math.abs(Number(e))):"-",noLegend:!0,formatLeftTick:e=>{const t=Math.abs(Number(e));return Number.isInteger(t)?n$(Math.abs(Number(e))):""},minValue:-d,maxValue:d})})};function lG(){return lG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lG.apply(null,arguments)}function sG(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var cG={layers:["separators","parts","labels","annotations"],direction:"vertical",interpolation:"smooth",spacing:0,shapeBlending:.66,colors:{scheme:"nivo"},size:void 0,fillOpacity:1,borderWidth:6,borderColor:{from:"color"},borderOpacity:.66,enableLabel:!0,labelColor:{theme:"background"},enableBeforeSeparators:!0,beforeSeparatorLength:0,beforeSeparatorOffset:0,enableAfterSeparators:!0,afterSeparatorLength:0,afterSeparatorOffset:0,annotations:[],isInteractive:!0,currentPartSizeExtension:0,role:"img",animate:Lz,motionConfig:Ez},uG=function(e){var t=e.part;return ln(lT,{id:t.data.label,value:t.formattedValue,color:t.color,enableChip:!0})},dG=function(e,t){return A((function(){return function(e,t){if("function"==typeof e)return e;if(Array.isArray(e)){var n=Ga(e);return function(e){return Number(n(String(e.id)))}}if(I(e)){if(function(e){return void 0!==e.datum}(e))return function(t){var n=B(t,e.datum);return"number"==typeof n?n:0};throw new Error("Invalid size, when using an object, you should specify a 'datum' property")}return function(e){return t(e.value)}}(e,t)}),[e,t])},fG=function(e){var t,n,r=e.data,i=e.width,o=e.height,a=e.direction,l=void 0===a?cG.direction:a,s=e.interpolation,c=void 0===s?cG.interpolation:s,u=e.spacing,d=void 0===u?cG.spacing:u,f=e.shapeBlending,h=void 0===f?cG.shapeBlending:f,p=e.valueFormat,g=e.colors,v=void 0===g?cG.colors:g,m=e.size,b=void 0===m?cG.size:m,y=e.fillOpacity,_=void 0===y?cG.fillOpacity:y,x=e.borderWidth,k=void 0===x?cG.borderWidth:x,C=e.borderColor,S=void 0===C?cG.borderColor:C,M=e.borderOpacity,T=void 0===M?cG.borderOpacity:M,L=e.labelColor,E=void 0===L?cG.labelColor:L,O=e.enableBeforeSeparators,P=void 0===O?cG.enableBeforeSeparators:O,z=e.beforeSeparatorLength,D=void 0===z?cG.beforeSeparatorLength:z,N=e.beforeSeparatorOffset,I=void 0===N?cG.beforeSeparatorOffset:N,B=e.enableAfterSeparators,F=void 0===B?cG.enableAfterSeparators:B,j=e.afterSeparatorLength,W=void 0===j?cG.afterSeparatorLength:j,H=e.afterSeparatorOffset,U=void 0===H?cG.afterSeparatorOffset:H,V=e.isInteractive,$=void 0===V?cG.isInteractive:V,q=e.currentPartSizeExtension,Y=void 0===q?cG.currentPartSizeExtension:q,G=e.currentBorderWidth,X=e.onMouseEnter,Z=e.onMouseMove,K=e.onMouseLeave,J=e.onClick,Q=e.tooltip,ee=eT(),te=bF(v,"id"),ne=cF(S,ee),re=cF(E,ee),ie=LD(p),oe=A((function(){return function(e,t){var n=Fu();return"vertical"===t?n.curve("smooth"===e?qu:Du).x0((function(e){return e.x0})).x1((function(e){return e.x1})).y((function(e){return e.y})):n.curve("smooth"===e?qu:Du).y0((function(e){return e.y0})).y1((function(e){return e.y1})).x((function(e){return e.x})),[n,Bu().defined((function(e){return null!==e})).x((function(e){return e.x})).y((function(e){return e.y})).curve("smooth"===e?qu:Du)]}(c,l)}),[c,l]),ae=oe[0],le=oe[1],se=P?D+I:0,ce=F?W+U:0;"vertical"===l?(t=i-se-ce,n=o):(t=i,n=o-se-ce);var ue=A((function(){return function(e){var t,n,r=e.data,i=e.direction,o=e.width,a=e.height,l=e.spacing;"vertical"===i?(t=a,n=o):(t=o,n=a);var s=(t-l*(r.length-1))/r.length,c=function(e){return l*e+s*e};c.bandwidth=s;var u=r.map((function(e){return e.value}));return[c,Cl().domain([0,Math.max.apply(Math,u)]).range([0,n])]}({data:r,direction:l,width:t,height:n,spacing:d})}),[r,l,t,n,d]),de=ue[0],fe=ue[1],he=dG(b,fe),pe=w(null),ge=pe[0],ve=pe[1],me=A((function(){var e=r.map((function(e,r){var i,o,a,s,c=e.id===ge,u=he(e);"vertical"===l?(i=u,o=de.bandwidth,s=se+.5*(t-i),a=de(r)):(i=de.bandwidth,o=u,s=de(r),a=se+.5*(n-o));var d=s+i,f=s+.5*i,h=a+o,p=a+.5*o,g={data:e,width:i,height:o,color:te(e),fillOpacity:_,borderWidth:c&&void 0!==G?G:k,borderOpacity:T,formattedValue:ie(e.value),isCurrent:c,x:f,x0:s,x1:d,y:p,y0:a,y1:h,borderColor:"",labelColor:"",points:[],areaPoints:[],borderPoints:[]};return g.borderColor=ne(g),g.labelColor=re(g),g})),i=h/2;return e.forEach((function(t,n){var r=e[n+1];if("vertical"===l){t.points.push({x:t.x0,y:t.y0}),t.points.push({x:t.x1,y:t.y0}),r?(t.points.push({x:r.x1,y:t.y1}),t.points.push({x:r.x0,y:t.y1})):(t.points.push({x:t.points[1].x,y:t.y1}),t.points.push({x:t.points[0].x,y:t.y1})),t.isCurrent&&(t.points[0].x-=Y,t.points[1].x+=Y,t.points[2].x+=Y,t.points[3].x-=Y),t.areaPoints=[{x:0,x0:t.points[0].x,x1:t.points[1].x,y:t.y0,y0:0,y1:0}],t.areaPoints.push(lG({},t.areaPoints[0],{y:t.y0+t.height*i}));var o={x:0,x0:t.points[3].x,x1:t.points[2].x,y:t.y1,y0:0,y1:0};t.areaPoints.push(lG({},o,{y:t.y1-t.height*i})),t.areaPoints.push(o),[0,1,2,3].map((function(e){t.borderPoints.push({x:t.areaPoints[e].x0,y:t.areaPoints[e].y})})),t.borderPoints.push(null),[3,2,1,0].map((function(e){t.borderPoints.push({x:t.areaPoints[e].x1,y:t.areaPoints[e].y})}))}else{t.points.push({x:t.x0,y:t.y0}),r?(t.points.push({x:t.x1,y:r.y0}),t.points.push({x:t.x1,y:r.y1})):(t.points.push({x:t.x1,y:t.y0}),t.points.push({x:t.x1,y:t.y1})),t.points.push({x:t.x0,y:t.y1}),t.isCurrent&&(t.points[0].y-=Y,t.points[1].y-=Y,t.points[2].y+=Y,t.points[3].y+=Y),t.areaPoints=[{x:t.x0,x0:0,x1:0,y:0,y0:t.points[0].y,y1:t.points[3].y}],t.areaPoints.push(lG({},t.areaPoints[0],{x:t.x0+t.width*i}));var a={x:t.x1,x0:0,x1:0,y:0,y0:t.points[1].y,y1:t.points[2].y};t.areaPoints.push(lG({},a,{x:t.x1-t.width*i})),t.areaPoints.push(a),[0,1,2,3].map((function(e){t.borderPoints.push({x:t.areaPoints[e].x,y:t.areaPoints[e].y0})})),t.borderPoints.push(null),[3,2,1,0].map((function(e){t.borderPoints.push({x:t.areaPoints[e].x,y:t.areaPoints[e].y1})}))}})),e}),[r,l,de,t,n,se,h,te,ie,ne,re,ge,T,k,G,Y,_,he]),be=mT(),ye=be.showTooltipFromEvent,_e=be.hideTooltip,we=A((function(){return function(e){var t=e.parts,n=e.setCurrentPartId,r=e.isInteractive,i=e.onMouseEnter,o=e.onMouseLeave,a=e.onMouseMove,l=e.onClick,s=e.showTooltipFromEvent,c=e.hideTooltip,u=e.tooltip,d=void 0===u?uG:u;return r?t.map((function(e){return lG({},e,{onMouseEnter:function(t){n(e.data.id),s(R(d,{part:e}),t),null==i||i(e,t)},onMouseLeave:function(t){n(null),c(),null==o||o(e,t)},onMouseMove:function(t){s(R(d,{part:e}),t),null==a||a(e,t)},onClick:void 0!==l?function(t){l(e,t)}:void 0})})):t}({parts:me,setCurrentPartId:ve,isInteractive:$,onMouseEnter:X,onMouseLeave:K,onMouseMove:Z,onClick:J,showTooltipFromEvent:ye,hideTooltip:_e,tooltip:Q})}),[me,ve,$,X,K,Z,J,ye,_e,Q]),xe=A((function(){return function(e){var t=e.parts,n=e.direction,r=e.width,i=e.height,o=e.spacing,a=e.enableBeforeSeparators,l=e.beforeSeparatorOffset,s=e.enableAfterSeparators,c=e.afterSeparatorOffset,u=[],d=[],f=t[t.length-1];if("vertical"===n){t.forEach((function(e){var t=e.y0-o/2;a&&u.push({partId:e.data.id,x0:0,x1:e.x0-l,y0:t,y1:t}),s&&d.push({partId:e.data.id,x0:e.x1+c,x1:r,y0:t,y1:t})}));var h=f.y1;a&&u.push(lG({},u[u.length-1],{partId:"none",y0:h,y1:h})),s&&d.push(lG({},d[d.length-1],{partId:"none",y0:h,y1:h}))}else if("horizontal"===n){t.forEach((function(e){var t=e.x0-o/2;u.push({partId:e.data.id,x0:t,x1:t,y0:0,y1:e.y0-l}),d.push({partId:e.data.id,x0:t,x1:t,y0:e.y1+c,y1:i})}));var p=f.x1;u.push(lG({},u[u.length-1],{partId:"none",x0:p,x1:p})),d.push(lG({},d[d.length-1],{partId:"none",x0:p,x1:p}))}return[u,d]}({parts:me,direction:l,width:i,height:o,spacing:d,enableBeforeSeparators:P,beforeSeparatorOffset:I,enableAfterSeparators:F,afterSeparatorOffset:U})}),[me,l,i,o,d,P,I,F,U]),ke=xe[0],Ce=xe[1],Se=A((function(){return{width:i,height:o,parts:we,areaGenerator:ae,borderGenerator:le,beforeSeparators:ke,afterSeparators:Ce,setCurrentPartId:ve}}),[i,o,we,ae,le,ke,Ce,ve]);return{parts:we,areaGenerator:ae,borderGenerator:le,beforeSeparators:ke,afterSeparators:Ce,setCurrentPartId:ve,currentPartId:ge,customLayerProps:Se}},hG=function(e){var t=e.part,n=e.areaGenerator,i=e.borderGenerator,o=Rz(),a=o.animate,l=o.config,s=wD(n(t.areaPoints)),c=wD(i(t.borderPoints)),u=tx({areaColor:t.color,borderWidth:t.borderWidth,borderColor:t.borderColor,config:l,immediate:!a});return ln(r,{children:[t.borderWidth>0&&ln(fC.path,{d:c,stroke:u.borderColor,strokeWidth:u.borderWidth,strokeOpacity:t.borderOpacity,fill:"none"}),ln(fC.path,{d:s,fill:u.areaColor,fillOpacity:t.fillOpacity,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onMouseMove:t.onMouseMove,onClick:t.onClick})]})},pG=function(e){var t=e.parts,n=e.areaGenerator,i=e.borderGenerator;return ln(r,{children:t.map((function(e){return ln(hG,{part:e,areaGenerator:n,borderGenerator:i},e.data.id)}))})},gG=function(e){var t=e.part,n=eT(),r=Rz(),i=r.animate,o=r.config,a=tx({transform:"translate("+t.x+", "+t.y+")",color:t.labelColor,config:o,immediate:!i});return ln(fC.g,{transform:a.transform,children:ln(QD,{textAnchor:"middle",dominantBaseline:"central",style:lG({},n.labels.text,{fill:a.color,pointerEvents:"none"}),children:t.formattedValue})})},vG=function(e){var t=e.parts;return ln(r,{children:t.map((function(e){return ln(gG,{part:e},e.data.id)}))})},mG=function(e){var t=e.separator,n=eT(),r=Rz(),i=r.animate,o=r.config,a=tx({x1:t.x0,x2:t.x1,y1:t.y0,y2:t.y1,config:o,immediate:!i});return ln(fC.line,lG({x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2,fill:"none"},n.grid.line))},bG=function(e){var t=e.beforeSeparators,n=e.afterSeparators;return ln(r,{children:[t.map((function(e){return ln(mG,{separator:e},e.partId)})),n.map((function(e){return ln(mG,{separator:e},e.partId)}))]})},yG=function(e){var t=function(e,t){return P$({data:e,annotations:t,getPosition:function(e){return{x:e.x,y:e.y}},getDimensions:function(e){var t=e.width,n=e.height;return{size:Math.max(t,n),width:t,height:n}}})}(e.parts,e.annotations);return ln(r,{children:t.map((function(e,t){return ln(j$,lG({},e),t)}))})},_G=["isInteractive","animate","motionConfig","theme","renderWrapper"],wG=function(e){var t=e.data,n=e.width,r=e.height,i=e.margin,o=e.direction,a=void 0===o?cG.direction:o,l=e.interpolation,s=void 0===l?cG.interpolation:l,c=e.spacing,u=void 0===c?cG.spacing:c,d=e.shapeBlending,f=void 0===d?cG.shapeBlending:d,h=e.valueFormat,p=e.colors,g=void 0===p?cG.colors:p,v=e.size,m=void 0===v?cG.size:v,b=e.fillOpacity,y=void 0===b?cG.fillOpacity:b,_=e.borderWidth,w=void 0===_?cG.borderWidth:_,x=e.borderColor,k=void 0===x?cG.borderColor:x,C=e.borderOpacity,S=void 0===C?cG.borderOpacity:C,M=e.enableLabel,A=void 0===M?cG.enableLabel:M,T=e.labelColor,L=void 0===T?cG.labelColor:T,E=e.enableBeforeSeparators,O=void 0===E?cG.enableBeforeSeparators:E,P=e.beforeSeparatorLength,D=void 0===P?cG.beforeSeparatorLength:P,N=e.beforeSeparatorOffset,I=void 0===N?cG.beforeSeparatorOffset:N,B=e.enableAfterSeparators,F=void 0===B?cG.enableAfterSeparators:B,j=e.afterSeparatorLength,W=void 0===j?cG.afterSeparatorLength:j,H=e.afterSeparatorOffset,U=void 0===H?cG.afterSeparatorOffset:H,V=e.layers,$=void 0===V?cG.layers:V,q=e.annotations,Y=void 0===q?cG.annotations:q,G=e.isInteractive,X=void 0===G?cG.isInteractive:G,Z=e.currentPartSizeExtension,K=void 0===Z?cG.currentPartSizeExtension:Z,J=e.currentBorderWidth,Q=e.onMouseEnter,ee=e.onMouseMove,te=e.onMouseLeave,ne=e.onClick,re=e.tooltip,ie=e.role,oe=void 0===ie?cG.role:ie,ae=e.ariaLabel,le=e.ariaLabelledBy,se=e.ariaDescribedBy,ce=e.forwardedRef,ue=MD(n,r,i),de=ue.margin,fe=ue.innerWidth,he=ue.innerHeight,pe=ue.outerWidth,ge=ue.outerHeight,ve=fG({data:t,width:fe,height:he,direction:a,interpolation:s,spacing:u,shapeBlending:f,valueFormat:h,colors:g,size:m,fillOpacity:y,borderWidth:w,borderColor:k,borderOpacity:S,labelColor:L,enableBeforeSeparators:O,beforeSeparatorLength:D,beforeSeparatorOffset:I,enableAfterSeparators:F,afterSeparatorLength:W,afterSeparatorOffset:U,isInteractive:X,currentPartSizeExtension:K,currentBorderWidth:J,onMouseEnter:Q,onMouseMove:ee,onMouseLeave:te,onClick:ne,tooltip:re}),me=ve.areaGenerator,be=ve.borderGenerator,ye=ve.parts,_e=ve.beforeSeparators,we=ve.afterSeparators,xe=ve.customLayerProps,ke={separators:null,parts:null,annotations:null,labels:null};return $.includes("separators")&&(ke.separators=ln(bG,{beforeSeparators:_e,afterSeparators:we},"separators")),$.includes("parts")&&(ke.parts=ln(pG,{parts:ye,areaGenerator:me,borderGenerator:be},"parts")),null!=$&&$.includes("annotations")&&(ke.annotations=ln(yG,{parts:ye,annotations:Y},"annotations")),$.includes("labels")&&A&&(ke.labels=ln(vG,{parts:ye},"labels")),ln(vD,{width:pe,height:ge,margin:de,role:oe,ariaLabel:ae,ariaLabelledBy:le,ariaDescribedBy:se,ref:ce,children:$.map((function(e,t){var n;return"function"==typeof e?ln(z,{children:R(e,xe)},t):null!=(n=null==ke?void 0:ke[e])?n:null}))})},xG=S((function(e,t){var n=e.isInteractive,r=void 0===n?cG.isInteractive:n,i=e.animate,o=void 0===i?cG.animate:i,a=e.motionConfig,l=void 0===a?cG.motionConfig:a,s=e.theme,c=e.renderWrapper,u=sG(e,_G);return ln(Dz,{animate:o,isInteractive:r,motionConfig:l,renderWrapper:c,theme:s,children:ln(wG,lG({isInteractive:r},u,{forwardedRef:t}))})})),kG=["defaultWidth","defaultHeight","onResize","debounceResize"],CG=S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=sG(e,kG);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(xG,lG({width:n,height:r},a,{ref:t}))}})}));const SG={background:"var(--bg-base-primary)",axis:{ticks:{text:{fill:"var(--on-text-secondary)"}},legend:{text:{fill:"var(--on-text-primary)"}}},grid:{line:{stroke:"var(--on-border-muted)"}},legends:{text:{fill:"var(--on-text-secondary)"}},tooltip:{container:{background:"var(--bg-base-modal)",color:"var(--on-text-primary)"}},text:{fill:"var(--on-text-primary)"}},MG=e=>{const t=eT(),{animate:n,config:r}=Rz(),i=tx({transform:`translate(10, ${e.y})`,color:e.labelColor,config:r,immediate:!n}),o=[];return o.push(`Layer: ${e.data.layer}`),e.data.value>0?(o.push(`Number of tests: ${e.data.value} (${e.data.percentage}%)`),o.push(`Success rate: ${e.data.successRate}%`)):o.push("No tests"),ln(DV.g,{transform:i.transform,children:ln(QD,{style:{...t.labels.text,pointerEvents:"none"},lineHeight:1.2,children:o.map(((e,t)=>ln(DV.tspan,{x:0,dy:0===t?0:"1.2em",children:e},t)))},e.data.id)})},AG=e=>{const{parts:t}=e;return t.map((e=>ln(MG,{...e},e.data.id)))},TG=e=>{const{data:t,title:n,translations:r,height:i=400,width:o="100%"}=e,a=r["no-results"],l=h((()=>[...t].reverse().map((e=>({id:e.layer,value:e.testCount,label:e.layer,successRate:e.successRate,percentage:e.percentage,layer:e.layer,color:e.testCount>0?"var(--bg-support-aldebaran)":"var(--bg-support-rau)"})))),[t]);return t&&0!==t.length?ln(xv,{title:n,children:ln("div",{role:"img",tabIndex:0,style:{width:o,height:i},children:ln(CG,{data:l,theme:SG,enableLabel:!1,layers:["separators","parts","labels","annotations",AG],interpolation:"linear",spacing:5,shapeBlending:0,borderWidth:0,colors:e=>e.color,labelColor:{theme:"background"},enableAfterSeparators:!1})})}):ln(xv,{title:n,children:ln(cW,{label:a,width:o,height:i,ariaLabel:a})})};function LG(){return LG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LG.apply(null,arguments)}var EG={pointerEvents:"none"},OG=function(e){var t=e.label,n=e.style,r=eT();return ln(fC.g,{transform:n.transform,opacity:n.progress,style:EG,children:ln(QD,{textAnchor:"middle",dominantBaseline:"central",style:LG({},r.labels.text,{fill:n.textColor}),children:t})})},RG=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},PG=function(e,t){return e.filter((function(e){return Math.abs(Kz(e.arc.endAngle-e.arc.startAngle))>=t}))},zG={startAngle:{enter:function(e){return LG({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return LG({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return LG({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return LG({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return LG({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return LG({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return LG({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return LG({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return LG({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return LG({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return LG({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return LG({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return LG({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return LG({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return LG({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return LG({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},DG=function(e,t){return A((function(){var n=zG[e];return{enter:function(e){return LG({progress:0},n.enter(e.arc),t?t.enter(e):{})},update:function(e){return LG({progress:1},n.update(e.arc),t?t.update(e):{})},leave:function(e){return LG({progress:0},n.leave(e.arc),t?t.leave(e):{})}}}),[e,t])},NG=function(e,t){var n=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2}(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return Jz(n,r)},IG=function(e){return function(t,n,r,i){return sx([t,n,r,i],(function(t,n,r,i){var o=NG({startAngle:t,endAngle:n,innerRadius:r,outerRadius:i},e);return"translate("+o.x+","+o.y+")"}))}},BG=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,o=e.radiusOffset,a=e.skipAngle,l=e.skipRadius,s=e.textColor,c=e.component,u=void 0===c?OG:c,d=OD(i),f=eT(),h=cF(s,f),p=A((function(){return n.filter((function(e){var t=Math.abs(Kz(e.arc.endAngle-e.arc.startAngle)),n=Math.abs(e.arc.outerRadius-e.arc.innerRadius);return t>=a&&n>=l}))}),[n,a,l]),g=function(e,t,n,r){void 0===t&&(t=.5),void 0===n&&(n="innerRadius");var i=Rz(),o=i.animate,a=i.config,l=DG(n,r);return{transition:nx(e,{keys:function(e){return e.id},initial:l.update,from:l.enter,enter:l.update,update:l.update,leave:l.leave,config:a,immediate:!o}),interpolate:IG(t)}}(p,o,r),v=g.transition,m=g.interpolate,b=u;return ln("g",{transform:"translate("+t[0]+","+t[1]+")",children:v((function(e,t){return R(b,{key:t.id,datum:t,label:d(t),style:{progress:e.progress,transform:m(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textColor:h(t)}})}))})},FG=function(e,t,n){FD(e,n.labels.text),e.textAlign="center",e.textBaseline="middle",t.forEach((function(t){jD(e,LG({},n.labels.text,{fill:t.textColor}),String(t.label),t.x,t.y)}))},jG=function(e){var t=e.data,n=e.offset,r=e.skipAngle,i=e.label,o=e.textColor,a=OD(i),l=eT(),s=cF(o,l),c=M((function(e){return{label:a(e),textColor:s(e)}}),[a,s]);return function(e){var t=e.data,n=e.offset,r=void 0===n?.5:n,i=e.skipAngle,o=void 0===i?0:i,a=e.computeExtraProps,l=void 0===a?function(){return{}}:a;return A((function(){return PG(t,o).map((function(e){var t=NG(e.arc,r);return LG({},l(e),{x:t.x,y:t.y,data:e})}))}),[t,r,o,l])}({data:t,offset:n,skipAngle:r,computeExtraProps:c})},WG=function(e){var t=e.label,n=e.style,r=eT();return ln(fC.g,{opacity:n.opacity,children:[ln(fC.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),ln(QD,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:LG({},r.labels.text,{fill:n.textColor}),children:t})]})},HG=function(e,t,n,r){var i,o,a=RG(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),l=Jz(a,e.outerRadius+t),s=Jz(a,e.outerRadius+t+n);return a<Math.PI/2||a>1.5*Math.PI?(i="after",o={x:s.x+r,y:s.y}):(i="before",o={x:s.x-r,y:s.y}),{side:i,points:[l,s,o]}},UG=Bu().x((function(e){return e.x})).y((function(e){return e.y})),VG=function(e,t,n,r,i,o,a){return sx([e,t,n,r,i,o,a],(function(e,t,n,r,i,o,a){var l=HG({startAngle:e,endAngle:t,outerRadius:r},i,o,a).points;return UG(l)}))},$G=function(e,t,n,r){return sx([e,t,n,r],(function(e,t,n,r){return function(e){var t=RG(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"}({startAngle:e,endAngle:t})}))},qG=function(e,t,n,r,i,o,a,l){return sx([e,t,n,r,i,o,a,l],(function(e,t,n,r,i,o,a,l){var s=HG({startAngle:e,endAngle:t,outerRadius:r},i,o,a),c=s.points,u=s.side,d=c[2];return"before"===u?d.x-=l:d.x+=l,"translate("+d.x+","+d.y+")"}))},YG=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,o=e.offset,a=e.diagonalLength,l=e.straightLength,s=e.strokeWidth,c=e.textOffset,u=e.textColor,d=e.linkColor,f=e.component,h=void 0===f?WG:f,p=OD(r),g=function(e){var t=e.data,n=e.offset,r=void 0===n?0:n,i=e.diagonalLength,o=e.straightLength,a=e.skipAngle,l=void 0===a?0:a,s=e.textOffset,c=e.linkColor,u=e.textColor,d=Rz(),f=d.animate,h=d.config,p=eT(),g=cF(c,p),v=cF(u,p),m=function(e,t){return A((function(){return PG(e,t)}),[e,t])}(t,l),b=function(e){var t=e.offset,n=e.diagonalLength,r=e.straightLength,i=e.textOffset,o=e.getLinkColor,a=e.getTextColor;return A((function(){return{enter:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:0,straightLength:0,textOffset:i,linkColor:o(e),textColor:a(e),opacity:0}},update:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:n,straightLength:r,textOffset:i,linkColor:o(e),textColor:a(e),opacity:1}},leave:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:0,straightLength:0,textOffset:i,linkColor:o(e),textColor:a(e),opacity:0}}}}),[n,r,i,o,a,t])}({offset:r,diagonalLength:i,straightLength:o,textOffset:s,getLinkColor:g,getTextColor:v});return{transition:nx(m,{keys:function(e){return e.id},initial:b.update,from:b.enter,enter:b.update,update:b.update,leave:b.leave,config:h,immediate:!f}),interpolateLink:VG,interpolateTextAnchor:$G,interpolateTextPosition:qG}}({data:n,skipAngle:i,offset:o,diagonalLength:a,straightLength:l,textOffset:c,linkColor:d,textColor:u}),v=g.transition,m=g.interpolateLink,b=g.interpolateTextAnchor,y=g.interpolateTextPosition,_=h;return ln("g",{transform:"translate("+t[0]+","+t[1]+")",children:v((function(e,t){return R(_,{key:t.id,datum:t,label:p(t),style:LG({},e,{thickness:s,path:m(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength),textAnchor:b(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textPosition:y(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength,e.textOffset)})})}))})},GG=function(e,t,n,r){e.textBaseline="middle",FD(e,n.labels.text),t.forEach((function(t){e.textAlign=Qz.canvas.align[t.textAnchor],jD(e,LG({},n.labels.text,{fill:t.textColor}),String(t.label),t.x,t.y),e.beginPath(),e.strokeStyle=t.linkColor,e.lineWidth=r,t.points.forEach((function(t,n){0===n?e.moveTo(t.x,t.y):e.lineTo(t.x,t.y)})),e.stroke()}))},XG=function(e){var t=e.data,n=e.skipAngle,r=e.offset,i=e.diagonalLength,o=e.straightLength,a=e.textOffset,l=void 0===a?0:a,s=e.label,c=e.linkColor,u=e.textColor,d=OD(s),f=eT(),h=cF(c,f),p=cF(u,f),g=M((function(e){var t,n={x:e.points[2].x,y:e.points[2].y};return"before"===e.side?(n.x-=l,t="end"):(n.x+=l,t="start"),LG({},n,{label:d(e.data),linkColor:h(e.data),textAnchor:t,textColor:p(e.data)})}),[d,h,p,l]);return function(e){var t=e.data,n=e.skipAngle,r=void 0===n?0:n,i=e.offset,o=void 0===i?.5:i,a=e.diagonalLength,l=e.straightLength,s=e.computeExtraProps,c=void 0===s?function(){return{}}:s,u=A((function(){return t.filter((function(e){return Math.abs(Kz(e.arc.endAngle-e.arc.startAngle))>=r})).map((function(e){return LG({},HG(e.arc,o,a,l),{data:e})}))}),[t,r,o,a,l]);return A((function(){return u.map((function(e){return LG({},c(e),e)}))}),[u,c])}({data:t,skipAngle:n,offset:r,diagonalLength:i,straightLength:o,computeExtraProps:g})},ZG=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,l=M((function(e){return null==r?void 0:r(t,e)}),[r,t]),s=M((function(e){return null==i?void 0:i(t,e)}),[i,t]),c=M((function(e){return null==o?void 0:o(t,e)}),[o,t]),u=M((function(e){return null==a?void 0:a(t,e)}),[a,t]);return ln(fC.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?l:void 0,onMouseEnter:i?s:void 0,onMouseMove:o?c:void 0,onMouseLeave:a?u:void 0,"data-testid":"arc."+t.id})},KG=function(e,t,n,r,i){return sx([e,t,n,r],(function(e,t,n,r){return i({startAngle:e,endAngle:t,innerRadius:Math.max(0,n),outerRadius:Math.max(0,r)})}))},JG=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.onClick,l=e.onMouseEnter,s=e.onMouseMove,c=e.onMouseLeave,u=e.transitionMode,d=e.component,f=void 0===d?ZG:d,h=eT(),p=cF(o,h),g=function(e,t,n){void 0===t&&(t="innerRadius");var r=Rz(),i=r.animate,o=r.config,a=DG(t,n);return{transition:nx(e,{keys:function(e){return e.id},initial:a.update,from:a.enter,enter:a.update,update:a.update,leave:a.leave,config:o,immediate:!i}),interpolate:KG}}(n,u,{enter:function(e){return{opacity:0,color:e.color,borderColor:p(e)}},update:function(e){return{opacity:1,color:e.color,borderColor:p(e)}},leave:function(e){return{opacity:0,color:e.color,borderColor:p(e)}}}),v=g.transition,m=g.interpolate,b=f;return ln("g",{transform:"translate("+t[0]+","+t[1]+")",children:v((function(e,t){return R(b,{key:t.id,datum:t,style:LG({},e,{borderWidth:i,path:m(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,r)}),onClick:a,onMouseEnter:l,onMouseMove:s,onMouseLeave:c})}))})},QG=function(e,t,n,r,i,o,a){if(function(e,t,n,r,i,o){var a=RD(i,o,e,t);return a<n&&a>r}(e,t,n,r,o,a)){var l=function(e,t,n,r){var i=Math.atan2(r-t,n-e)-Math.PI/2;return i>0?i:2*Math.PI+i}(o,a,e,t);return i.find((function(e){var t=e.startAngle,n=e.endAngle;return l>=t&&l<n}))}},eX=function(e){var t=void 0===e?{}:e,n=t.cornerRadius,r=void 0===n?0:n,i=t.padAngle,o=void 0===i?0:i;return A((function(){return Ru().innerRadius((function(e){return e.innerRadius})).outerRadius((function(e){return e.outerRadius})).cornerRadius(r).padAngle(o)}),[r,o])};function tX(){return tX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tX.apply(null,arguments)}function nX(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var rX,iX=function(e){var t=e.width,n=e.height,i=e.legends,o=e.data,a=e.toggleSerie;return ln(r,{children:i.map((function(e,r){var i;return ln(UF,tX({},e,{containerWidth:t,containerHeight:n,data:null!=(i=e.data)?i:o,toggleSerie:e.toggleSerie?a:void 0}),r)}))})},oX={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcs","arcLinkLabels","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsSkipRadius:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return ln(lT,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:"undefined"!=typeof window&&null!=(rX=window.devicePixelRatio)?rX:1},aX=["points"],lX=function(e){var t=e.data,n=e.id,r=void 0===n?oX.id:n,i=e.value,o=void 0===i?oX.value:i,a=e.valueFormat,l=e.colors,s=void 0===l?oX.colors:l,c=OD(r),u=OD(o),d=LD(a),f=bF(s,"id");return A((function(){return t.map((function(e){var t,n=c(e),r=u(e),i={id:n,label:null!=(t=e.label)?t:n,hidden:!1,value:r,formattedValue:d(r),data:e};return tX({},i,{color:f(i)})}))}),[t,c,u,d,f])},sX=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,o=void 0===i?oX.innerRadius:i,a=e.startAngle,l=void 0===a?oX.startAngle:a,s=e.endAngle,c=void 0===s?oX.endAngle:s,u=e.padAngle,d=void 0===u?oX.padAngle:u,f=e.sortByValue,h=void 0===f?oX.sortByValue:f,p=e.cornerRadius,g=void 0===p?oX.cornerRadius:p,v=e.fit,m=void 0===v?oX.fit:v,b=e.activeInnerRadiusOffset,y=void 0===b?oX.activeInnerRadiusOffset:b,_=e.activeOuterRadiusOffset,k=void 0===_?oX.activeOuterRadiusOffset:_,S=e.activeId,T=e.onActiveIdChange,L=e.defaultActiveId,E=e.forwardLegendData,O=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=void 0!==t,o=w(i||void 0===r?null:r),a=o[0],l=o[1];return{activeId:i?t:a,setActiveId:M((function(e){n&&n(e),i||l(e)}),[i,n,l])}}({activeId:S,onActiveIdChange:T,defaultActiveId:L}),R=O.activeId,P=O.setActiveId,z=w([]),D=z[0],N=z[1],I=A((function(){var e,t=Math.min(n,r)/2,i=t*Math.min(o,1),a=n/2,s=r/2;if(m){var u=function(e,t,n,r,i,o){void 0===o&&(o=!0);var a=[],l=Jz(Zz(r),n);a.push([l.x,l.y]);var s=Jz(Zz(i),n);a.push([s.x,s.y]);for(var c=Math.round(Math.min(r,i));c<=Math.round(Math.max(r,i));c++)if(c%90==0){var u=Jz(Zz(c),n);a.push([u.x,u.y])}a=a.map((function(n){var r=n[0],i=n[1];return[e+r,t+i]})),o&&a.push([e,t]);var d=a.map((function(e){return e[0]})),f=a.map((function(e){return e[1]})),h=Math.min.apply(Math,d),p=Math.max.apply(Math,d),g=Math.min.apply(Math,f);return{points:a,x:h,y:g,width:p-h,height:Math.max.apply(Math,f)-g}}(a,s,t,l-90,c-90),d=u.points,f=nX(u,aX),h=Math.min(n/f.width,r/f.height),p={width:f.width*h,height:f.height*h};p.x=(n-p.width)/2,p.y=(r-p.height)/2,a=(a-f.x)/f.width*f.width*h+p.x,s=(s-f.y)/f.height*f.height*h+p.y,e={box:f,ratio:h,points:d},t*=h,i*=h}return{centerX:a,centerY:s,radius:t,innerRadius:i,debug:e}}),[n,r,o,l,c,m]),B=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,i=e.innerRadius,o=e.outerRadius,a=e.padAngle,l=e.sortByValue,s=e.activeId,c=e.activeInnerRadiusOffset,u=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,h=A((function(){var e=Hu().value((function(e){return e.value})).startAngle(Zz(n)).endAngle(Zz(r)).padAngle(Zz(a));return l||e.sortValues(null),e}),[n,r,a,l]),p=A((function(){var e=t.filter((function(e){return!d.includes(e.id)}));return{dataWithArc:h(e).map((function(e){var t=Math.abs(e.endAngle-e.startAngle);return tX({},e.data,{arc:{index:e.index,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:s===e.data.id?i-c:i,outerRadius:s===e.data.id?o+u:o,thickness:o-i,padAngle:e.padAngle,angle:t,angleDeg:Kz(t)}})})),legendData:t.map((function(e){return{id:e.id,label:e.label,color:e.color,hidden:d.includes(e.id),data:e}}))}}),[h,t,d,s,i,c,o,u]),g=p.legendData,v=C(f);return x((function(){"function"==typeof v.current&&v.current(g)}),[v,g]),p}({data:t,startAngle:l,endAngle:c,innerRadius:I.innerRadius,outerRadius:I.radius,padAngle:d,sortByValue:h,activeId:R,activeInnerRadiusOffset:y,activeOuterRadiusOffset:k,hiddenIds:D,forwardLegendData:E}),F=M((function(e){N((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(t,[e])}))}),[]);return tX({arcGenerator:eX({cornerRadius:g,padAngle:Zz(d)}),activeId:R,setActiveId:P,toggleSerie:F},B,I)},cX=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.isInteractive,l=e.onClick,s=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,h=e.transitionMode,p=mT(),g=p.showTooltipFromEvent,v=p.hideTooltip,m=A((function(){if(a)return function(e,t){null==l||l(e,t)}}),[a,l]),b=A((function(){if(a)return function(e,t){g(R(f,{datum:e}),t),d(e.id),null==s||s(e,t)}}),[a,g,d,s,f]),y=A((function(){if(a)return function(e,t){g(R(f,{datum:e}),t),null==c||c(e,t)}}),[a,g,c,f]),_=A((function(){if(a)return function(e,t){v(),d(null),null==u||u(e,t)}}),[a,v,d,u]);return ln(JG,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:o,transitionMode:h,onClick:m,onMouseEnter:b,onMouseMove:y,onMouseLeave:_})},uX=["isInteractive","animate","motionConfig","theme","renderWrapper"],dX=function(e){var t=e.data,n=e.id,r=void 0===n?oX.id:n,i=e.value,o=void 0===i?oX.value:i,a=e.valueFormat,l=e.sortByValue,s=void 0===l?oX.sortByValue:l,c=e.layers,u=void 0===c?oX.layers:c,d=e.startAngle,f=void 0===d?oX.startAngle:d,h=e.endAngle,p=void 0===h?oX.endAngle:h,g=e.padAngle,v=void 0===g?oX.padAngle:g,m=e.fit,b=void 0===m?oX.fit:m,y=e.innerRadius,_=void 0===y?oX.innerRadius:y,w=e.cornerRadius,x=void 0===w?oX.cornerRadius:w,k=e.activeInnerRadiusOffset,C=void 0===k?oX.activeInnerRadiusOffset:k,S=e.activeOuterRadiusOffset,M=void 0===S?oX.activeOuterRadiusOffset:S,T=e.width,L=e.height,E=e.margin,O=e.colors,P=void 0===O?oX.colors:O,D=e.borderWidth,N=void 0===D?oX.borderWidth:D,I=e.borderColor,B=void 0===I?oX.borderColor:I,F=e.enableArcLabels,j=void 0===F?oX.enableArcLabels:F,W=e.arcLabel,H=void 0===W?oX.arcLabel:W,U=e.arcLabelsSkipAngle,V=void 0===U?oX.arcLabelsSkipAngle:U,$=e.arcLabelsSkipRadius,q=void 0===$?oX.arcLabelsSkipRadius:$,Y=e.arcLabelsTextColor,G=void 0===Y?oX.arcLabelsTextColor:Y,X=e.arcLabelsRadiusOffset,Z=void 0===X?oX.arcLabelsRadiusOffset:X,K=e.arcLabelsComponent,J=e.enableArcLinkLabels,Q=void 0===J?oX.enableArcLinkLabels:J,ee=e.arcLinkLabel,te=void 0===ee?oX.arcLinkLabel:ee,ne=e.arcLinkLabelsSkipAngle,re=void 0===ne?oX.arcLinkLabelsSkipAngle:ne,ie=e.arcLinkLabelsOffset,oe=void 0===ie?oX.arcLinkLabelsOffset:ie,ae=e.arcLinkLabelsDiagonalLength,le=void 0===ae?oX.arcLinkLabelsDiagonalLength:ae,se=e.arcLinkLabelsStraightLength,ce=void 0===se?oX.arcLinkLabelsStraightLength:se,ue=e.arcLinkLabelsThickness,de=void 0===ue?oX.arcLinkLabelsThickness:ue,fe=e.arcLinkLabelsTextOffset,he=void 0===fe?oX.arcLinkLabelsTextOffset:fe,pe=e.arcLinkLabelsTextColor,ge=void 0===pe?oX.arcLinkLabelsTextColor:pe,ve=e.arcLinkLabelsColor,me=void 0===ve?oX.arcLinkLabelsColor:ve,be=e.arcLinkLabelComponent,ye=e.defs,_e=void 0===ye?oX.defs:ye,we=e.fill,xe=void 0===we?oX.fill:we,ke=e.isInteractive,Ce=void 0===ke?oX.isInteractive:ke,Se=e.onClick,Me=e.onMouseEnter,Ae=e.onMouseMove,Te=e.onMouseLeave,Le=e.tooltip,Ee=void 0===Le?oX.tooltip:Le,Oe=e.activeId,Re=e.onActiveIdChange,Pe=e.defaultActiveId,ze=e.transitionMode,De=void 0===ze?oX.transitionMode:ze,Ne=e.legends,Ie=void 0===Ne?oX.legends:Ne,Be=e.forwardLegendData,Fe=e.role,je=void 0===Fe?oX.role:Fe,We=e.forwardedRef,He=MD(T,L,E),Ue=He.outerWidth,Ve=He.outerHeight,$e=He.margin,qe=He.innerWidth,Ye=He.innerHeight,Ge=lX({data:t,id:r,value:o,valueFormat:a,colors:P}),Xe=sX({data:Ge,width:qe,height:Ye,fit:b,innerRadius:_,startAngle:f,endAngle:p,padAngle:v,sortByValue:s,cornerRadius:x,activeInnerRadiusOffset:C,activeOuterRadiusOffset:M,activeId:Oe,onActiveIdChange:Re,defaultActiveId:Pe,forwardLegendData:Be}),Ze=Xe.dataWithArc,Ke=Xe.legendData,Je=Xe.arcGenerator,Qe=Xe.centerX,et=Xe.centerY,tt=Xe.radius,nt=Xe.innerRadius,rt=Xe.setActiveId,it=Xe.toggleSerie,ot=ID(_e,Ze,xe),at={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(at.arcs=ln(cX,{center:[Qe,et],data:Ze,arcGenerator:Je,borderWidth:N,borderColor:B,isInteractive:Ce,onClick:Se,onMouseEnter:Me,onMouseMove:Ae,onMouseLeave:Te,setActiveId:rt,tooltip:Ee,transitionMode:De},"arcs")),Q&&u.includes("arcLinkLabels")&&(at.arcLinkLabels=ln(YG,{center:[Qe,et],data:Ze,label:te,skipAngle:re,offset:oe,diagonalLength:le,straightLength:ce,strokeWidth:de,textOffset:he,textColor:ge,linkColor:me,component:be},"arcLinkLabels")),j&&u.includes("arcLabels")&&(at.arcLabels=ln(BG,{center:[Qe,et],data:Ze,label:H,radiusOffset:Z,skipAngle:V,skipRadius:q,textColor:G,transitionMode:De,component:K},"arcLabels")),Ie.length>0&&u.includes("legends")&&(at.legends=ln(iX,{width:qe,height:Ye,data:Ke,legends:Ie,toggleSerie:it},"legends"));var lt=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,o=e.radius,a=e.innerRadius;return A((function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:o,innerRadius:a}}),[t,n,r,i,o,a])}({dataWithArc:Ze,arcGenerator:Je,centerX:Qe,centerY:et,radius:tt,innerRadius:nt});return ln(vD,{width:Ue,height:Ve,margin:$e,defs:ot,role:je,ref:We,children:u.map((function(e,t){return void 0!==at[e]?at[e]:"function"==typeof e?ln(z,{children:R(e,lt)},t):null}))})},fX=S((function(e,t){var n=e.isInteractive,r=void 0===n?oX.isInteractive:n,i=e.animate,o=void 0===i?oX.animate:i,a=e.motionConfig,l=void 0===a?oX.motionConfig:a,s=e.theme,c=e.renderWrapper,u=nX(e,uX);return ln(Dz,{animate:o,isInteractive:r,motionConfig:l,renderWrapper:c,theme:s,children:ln(dX,tX({isInteractive:r},u,{forwardedRef:t}))})})),hX=["defaultWidth","defaultHeight","onResize","debounceResize"];S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=nX(e,hX);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(fX,tX({width:n,height:r},a,{ref:t}))}})}));var pX=["isInteractive","theme","renderWrapper"],gX=function(e){var t=e.data,n=e.id,r=void 0===n?oX.id:n,i=e.value,o=void 0===i?oX.value:i,a=e.valueFormat,l=e.sortByValue,s=void 0===l?oX.sortByValue:l,c=e.startAngle,u=void 0===c?oX.startAngle:c,d=e.endAngle,f=void 0===d?oX.endAngle:d,h=e.padAngle,p=void 0===h?oX.padAngle:h,g=e.fit,v=void 0===g?oX.fit:g,m=e.innerRadius,b=void 0===m?oX.innerRadius:m,y=e.cornerRadius,_=void 0===y?oX.cornerRadius:y,w=e.activeInnerRadiusOffset,k=void 0===w?oX.activeInnerRadiusOffset:w,S=e.activeOuterRadiusOffset,M=void 0===S?oX.activeOuterRadiusOffset:S,T=e.width,L=e.height,E=e.margin,O=e.pixelRatio,P=void 0===O?oX.pixelRatio:O,z=e.colors,D=void 0===z?oX.colors:z,N=e.borderWidth,I=void 0===N?oX.borderWidth:N,B=e.borderColor,F=void 0===B?oX.borderColor:B,j=e.enableArcLabels,W=void 0===j?oX.enableArcLabels:j,H=e.arcLabel,U=void 0===H?oX.arcLabel:H,V=e.arcLabelsSkipAngle,$=void 0===V?oX.arcLabelsSkipAngle:V,q=e.arcLabelsTextColor,Y=void 0===q?oX.arcLabelsTextColor:q,G=e.arcLabelsRadiusOffset,X=void 0===G?oX.arcLabelsRadiusOffset:G,Z=e.enableArcLinkLabels,K=void 0===Z?oX.enableArcLinkLabels:Z,J=e.arcLinkLabel,Q=void 0===J?oX.arcLinkLabel:J,ee=e.arcLinkLabelsSkipAngle,te=void 0===ee?oX.arcLinkLabelsSkipAngle:ee,ne=e.arcLinkLabelsOffset,re=void 0===ne?oX.arcLinkLabelsOffset:ne,ie=e.arcLinkLabelsDiagonalLength,oe=void 0===ie?oX.arcLinkLabelsDiagonalLength:ie,ae=e.arcLinkLabelsStraightLength,le=void 0===ae?oX.arcLinkLabelsStraightLength:ae,se=e.arcLinkLabelsThickness,ce=void 0===se?oX.arcLinkLabelsThickness:se,ue=e.arcLinkLabelsTextOffset,de=void 0===ue?oX.arcLinkLabelsTextOffset:ue,fe=e.arcLinkLabelsTextColor,he=void 0===fe?oX.arcLinkLabelsTextColor:fe,pe=e.arcLinkLabelsColor,ge=void 0===pe?oX.arcLinkLabelsColor:pe,ve=e.isInteractive,me=void 0===ve?oX.isInteractive:ve,be=e.onClick,ye=e.onMouseMove,_e=e.tooltip,we=void 0===_e?oX.tooltip:_e,xe=e.activeId,ke=e.onActiveIdChange,Ce=e.defaultActiveId,Se=e.legends,Me=void 0===Se?oX.legends:Se,Ae=e.forwardLegendData,Te=e.role,Le=e.forwardedRef,Ee=C(null),Oe=eT(),Re=MD(T,L,E),Pe=Re.margin,ze=Re.innerWidth,De=Re.innerHeight,Ne=Re.outerWidth,Ie=Re.outerHeight,Be=lX({data:t,id:r,value:o,valueFormat:a,colors:D}),Fe=sX({data:Be,width:ze,height:De,fit:v,innerRadius:b,startAngle:u,endAngle:f,padAngle:p,sortByValue:s,cornerRadius:_,activeInnerRadiusOffset:k,activeOuterRadiusOffset:M,activeId:xe,onActiveIdChange:ke,defaultActiveId:Ce,forwardLegendData:Ae}),je=Fe.dataWithArc,We=Fe.arcGenerator,He=Fe.centerX,Ue=Fe.centerY,Ve=Fe.radius,$e=Fe.innerRadius,qe=Fe.setActiveId,Ye=cF(F,Oe),Ge=jG({data:je,label:U,skipAngle:$,offset:X,textColor:Y}),Xe=XG({data:je,skipAngle:te,offset:re,diagonalLength:oe,straightLength:le,label:Q,linkColor:ge,textOffset:de,textColor:he});x((function(){if(Ee.current){Ee.current.width=Ne*P,Ee.current.height=Ie*P;var e=Ee.current.getContext("2d");e.scale(P,P),e.fillStyle=Oe.background,e.fillRect(0,0,Ne,Ie),e.save(),e.translate(Pe.left,Pe.top),We.context(e),e.save(),e.translate(He,Ue),je.forEach((function(t){e.beginPath(),e.fillStyle=t.color,e.strokeStyle=Ye(t),e.lineWidth=I,We(t.arc),e.fill(),I>0&&e.stroke()})),!0===K&&GG(e,Xe,Oe,ce),!0===W&&FG(e,Ge,Oe),e.restore(),Me.forEach((function(t){$F(e,tX({},t,{data:je,containerWidth:ze,containerHeight:De,theme:Oe}))}))}}),[Ee,ze,De,Ne,Ie,Pe.top,Pe.left,P,He,Ue,We,je,I,Ye,W,Ge,K,Xe,ce,Me,Oe]);var Ze=A((function(){return je.map((function(e){return tX({id:e.id},e.arc)}))}),[je]),Ke=function(e){if(!Ee.current)return null;var t=zD(Ee.current,e),n=t[0],r=t[1],i=QG(Pe.left+He,Pe.top+Ue,Ve,$e,Ze,n,r);return i?je.find((function(e){return e.id===i.id})):null},Je=mT(),Qe=Je.showTooltipFromEvent,et=Je.hideTooltip,tt=function(e){var t=Ke(e);t?(null==ye||ye(t,e),qe(t.id),Qe(R(we,{datum:t}),e)):(qe(null),et())};return ln("canvas",{ref:BD(Ee,Le),width:Ne*P,height:Ie*P,style:{width:Ne,height:Ie,cursor:me?"auto":"normal"},onMouseEnter:me?tt:void 0,onMouseMove:me?tt:void 0,onMouseLeave:me?function(){et()}:void 0,onClick:me?function(e){if(be){var t=Ke(e);t&&be(t,e)}}:void 0,role:Te})},vX=S((function(e,t){var n=e.isInteractive,r=void 0===n?oX.isInteractive:n,i=e.theme,o=e.renderWrapper,a=nX(e,pX);return ln(Dz,{isInteractive:r,renderWrapper:o,theme:i,children:ln(gX,tX({isInteractive:r},a,{forwardedRef:t}))})})),mX=["defaultWidth","defaultHeight","onResize","debounceResize"];S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=nX(e,mX);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(vX,tX({width:n,height:r},a,{ref:t}))}})}));const bX=300,yX={id:"__EMPTY_ARC_DO_NOT_COUNT_IT_USED_FOR_VISUALS__",value:1,color:"var(--bg-control-secondary)",label:""},_X=["new","flaky","retries"];var wX="styles_centeredMetricTitle__-DWkh",xX="styles_centeredMetricDescription__7Q2Vf",kX="styles_pie__EtJEe",CX="styles_wrapper__UrP78",SX="styles_additionalStats__Yztrs";const MX=e=>e>1e3?"999+":e.toString(),AX=e=>{switch(e){case"new":return sn.testNew;case"flaky":return sn.lineIconBomb2;case"retries":return sn.lineGeneralZap}},TX=e=>{const{stats:t,i18n:n,layout:r}=e;return ln("div",{className:SX,"data-layout":r,children:_X.map((e=>{const r=t[e]??0;return ln($b,{style:"primary",tooltip:n(`tests.${e}`,{count:r}),icon:AX(e),children:r?MX(r):"-"},e)}))})},LX=[{limit:1e3,suffix:"K"},{limit:1e6,suffix:"M"},{limit:1e9,suffix:"B"},{limit:1e12,suffix:"T"},{limit:1e15,suffix:"Q"}],EX=({width:e,text:t,symbolWidth:n})=>{const r=e-2*n,i=Math.floor(r/n),o=parseInt(t,10),a=o.toLocaleString("ru");if(a.length<=i)return a;let l=o,s="";for(let e=0;e<LX.length;e++){const{limit:t,suffix:n}=LX[e];if(l=o/t,Math.round(l)<1e3||e===LX.length-1){s=n;break}}let c=l.toFixed(2).replace(/\.?0+$/,"").replace(/(\.\d)0$/,"$1");(c+s).length>i&&(c=Math.round(+c).toString());return`${(+c).toLocaleString("ru")}${s}`},OX=({metric:e,metricType:t,layerProps:n,isEmpty:r,i18n:i,total:o})=>"total"===t||r?ln(RX,{layer:n,i18n:i,total:o}):"percent"===t?ln(PX,{layer:n,metric:e,i18n:i,total:o}):null,RX=({layer:e,i18n:t,total:n})=>{const{radius:r,centerX:i,centerY:o}=e;return ln(zX,{radius:r,centerX:i,centerY:o,title:n,description:t("total")})},PX=({layer:e,metric:t,i18n:n,total:r})=>{const{dataWithArc:i,radius:o,centerX:a,centerY:l}=e,s=i.find((e=>e.data.id===t)),c=((e=0,t=0)=>{if(0===e)return"0";if(0===t)return"0";const n=e/t*100;return Number.isInteger(n)?n.toString():n>99.99&&n<100?"99.99":n.toFixed(2).replace(/\.?0+$/,"")})(s?.data.value,r);return ln(zX,{radius:o,centerX:a,centerY:l,title:n("percentage",{percentage:c}),description:n("of",{total:r})})},zX=({radius:e,centerX:t,centerY:n,title:i,description:o})=>{const a=i.toString(),l=a.includes("%"),s=Math.round(Math.min(e/1.8,36)),c=Math.round(Math.min(e/3.3,16)),u=Math.min(e/2.5,2*c),d=h((()=>l?(({width:e,text:t,symbolWidth:n})=>{const r=e-2*n,i=t.length*n,[o]=t.split("%"),[a,l="00"]=o.split(".");if("00"===l)return`${a}%`;if(r>i)return t;const s=a.length*n,c=n,u=Math.floor((r-s-c)/n)-1;if(1===u){const e=(+`${a}.${l}`).toFixed(1),[t,n]=e.toString().split(".");return"0"===n?`${t}%`:`${e}%`}return 2===u?`${a}.${l}%`:`${(+`${a}.${l}`).toFixed(0)}%`})({width:e,text:a,symbolWidth:s/3}):EX({width:e,text:a,symbolWidth:s/3})),[l,e,a,s]),f=h((()=>(({width:e,text:t,symbolWidth:n})=>{const r=t.match(/\d+/g)||[],i=t.replace(/\d+/g,"").length,o=r.map((t=>EX({width:e-i*n,text:t,symbolWidth:n})));let a=t;return r.forEach(((e,t)=>{a=a.replace(e,o[t])})),a})({width:e,text:o.toString(),symbolWidth:c/3})),[o,c,e]);return ln(r,{children:[ln("text",{x:t,y:n-u/3,textAnchor:"middle",dominantBaseline:"central",style:{fontSize:s},className:wX,children:d}),ln("text",{x:t,y:n+u/1.5,textAnchor:"middle",dominantBaseline:"central",style:{fontSize:c},className:xX,children:f})]})},DX=e=>e,NX=e=>e>=bX?284:e-16,IX={top:8,right:8,bottom:8,left:8},BX={datum:"data.color"},FX={theme:"background"},jX=e=>{const{title:t,data:n,statuses:r,metric:i="passed",i18n:o=DX}=e,a=h((()=>(e=>{const{data:t,i18n:n,statuses:r=Fi}=e,i=[];for(const e of r)e in t&&i.push({color:CW(e),id:e,value:t[e]??0,label:n(`status.${e}`)});return i})({data:n,i18n:o,statuses:r})),[n,o,r]),l=n.total,s=0===l,c=(u=n,_X.some((e=>e in u)));var u;const d=c?362:bX;return ln(xv,{title:t??"",centerContent:!0,children:ln(Dp,{children:e=>ln("div",{className:CX,"data-layout":e>d?"vertical":"horizontal",children:[ln("div",{className:kX,children:ln(fX,{width:NX(c?e-62:e),height:NX(c?e-62:e),data:s?[yX]:a,margin:IX,colors:BX,innerRadius:.75,padAngle:1,cornerRadius:4,activeOuterRadiusOffset:4,borderWidth:0,borderColor:FX,enableArcLabels:!1,enableArcLinkLabels:!1,isInteractive:!s,sortByValue:!0,transitionMode:"startAngle",layers:["arcs",e=>ln(OX,{layerProps:e,i18n:o,metricType:"percent",metric:i,isEmpty:s,total:l})],animate:!mV,motionConfig:vV,tooltip:WX,theme:_V})}),c&&ln(TX,{stats:n,i18n:o,layout:e>d?"vertical":"horizontal"})]})})})},WX=e=>{const{datum:t}=e,n=h((()=>({id:t.id.toString(),color:t.color,label:t.label,value:t.value})),[t]);return ln(qV,{children:ln(i$,{mode:"default",legend:n})})},HX=e=>{const{title:t,data:n,statuses:r=Fi,i18n:i}=e,o=n.find((e=>"current"===e.id)),a=r.map((e=>({id:e,label:i(`status.${e}`),color:CW(e)}))),l=n.map((e=>({id:e.id,name:e.name,timestamp:e.timestamp,...e.statistic}))),s=l.every((e=>0===e.total)),c=l.filter((e=>"current"!==e.id)).every((e=>0===e.total)),u=l.reduce(((e,t)=>Math.max(e,t.total)),0),d=1.01*u;return s||!o||0===o.statistic.total?ln(xv,{title:t,children:ln(Jh,{title:i("no-results"),icon:sn.lineChartsBarChartSquare})}):1===n.length&&o||c?ln(xv,{title:t,children:ln(Jh,{title:i("no-history"),icon:sn.lineChartsBarChartSquare})}):ln(xv,{title:t,children:ln(ZY,{groupMode:"stacked",data:l,legend:a,indexBy:"id",hasValueFn:e=>e.total>0,formatIndexBy:e=>"current"===e.id?i("tooltips.current"):i("tooltips.history",{timestamp:e?.timestamp}),formatBottomTick:e=>{if("current"===e)return i("ticks.current");const t=l.find((t=>t.id===e));return t?i("ticks.history",{timestamp:t?.timestamp}):""},bottomTickRotation:45,formatLeftTick:e=>{const t=Math.abs(Number(e));return Number.isInteger(t)?n$(Math.abs(Number(e))):""},formatLegendValue:({value:e})=>e?n$(e):"-",noLegend:!0,maxValue:d})})},UX=e=>{switch(e){case"new":return"var(--on-support-sirius)";case"fixed":return"var(--on-support-castor)";case"regressed":return"var(--on-support-capella)";case"malfunctioned":return"var(--on-support-atlas)"}},VX=["fixed","regressed","malfunctioned"],$X=e=>{const{title:t,data:n,i18n:r}=e,i=Math.ceil(1.01*Math.max(...n.map((e=>e.fixed+e.regressed+e.malfunctioned)))),o=n.map((e=>{const t=2*i,n=e.regressed+e.malfunctioned,r=SW({positiveValue:e.fixed,negativeValue:n,absTotal:t,noValuePercentage:-1});return{id:e.id,timestamp:e.timestamp,prevItemTimestamp:e.prevItemTimestamp,fixed:e.fixed,regressed:0===e.regressed?0:-e.regressed,malfunctioned:0===e.malfunctioned?0:-e.malfunctioned,trend:r}})),a=n.find((e=>"current"===e.id)),l=h((()=>[...VX.map((e=>({id:e,label:r(`transitions.${e}`),color:UX(e),value:"fixed"===e?1:-1}))),{id:"trend",label:r("legend.trend"),color:"var(--bg-support-betelgeuse-medium)",type:"point"}]),[r]),s=o.every((e=>0===e.fixed&&0===e.regressed&&0===e.malfunctioned)),c=o.filter((e=>"current"!==e.id)).every((e=>0===e.fixed&&0===e.regressed&&0===e.malfunctioned));if(!a||s)return ln(xv,{title:t,children:ln(Jh,{title:r("no-results"),icon:sn.lineChartsBarChartSquare})});if(1===n.length&&a||c)return ln(xv,{title:t,children:ln(Jh,{title:r("no-history"),icon:sn.lineChartsBarChartSquare})});return ln(xv,{title:t,children:ln(ZY,{groupMode:"stacked",data:o,legend:l,indexBy:"id",hasValueFn:()=>!0,formatIndexBy:e=>"current"===e.id?r("tooltips.current"):r("tooltips.history",{timestamp:e?.timestamp}),formatBottomTick:e=>{if("current"===e)return r("ticks.current");const t=o.find((t=>t.id===e));return t?r("ticks.history",{timestamp:t?.timestamp}):""},bottomTickRotation:45,formatTrendValue:e=>{if(-1!==e)return e},formatLegendValue:({value:e,id:t})=>"trend"===t?"":e?n$(Math.abs(Number(e))):"-",noLegend:!0,formatLeftTick:e=>{const t=Math.abs(Number(e));return Number.isInteger(t)?n$(Math.abs(Number(e))):""},minValue:-i,maxValue:i})})},qX=["var(--bg-support-aldebaran)","var(--bg-support-betelgeuse)","var(--bg-support-sirius)","var(--bg-support-mirach)","var(--bg-support-rigel)","var(--bg-support-gliese)","var(--bg-support-rau)","var(--bg-support-aldebaran-heavy)","var(--bg-support-betelgeuse-heavy)","var(--bg-support-sirius-heavy)","var(--bg-support-mirach-heavy)","var(--bg-support-gliese-heavy)","var(--bg-support-rigel-heavy)","var(--bg-support-rau-heavy)"],YX=e=>{const{title:t,data:n,i18n:r,groupBy:i,keys:o}=e,a=h((()=>(e=>e.reduce(((e,t,n)=>{let r=qX[n];return r||(r=qX[n-qX.length]),e[t]=r,e}),{}))(Object.keys(o))),[o]),l=r("legend.total"),s=h((()=>Object.entries(o).map((([e,t])=>({id:e,label:"none"===i?l:t,color:a[e]})))),[o,a,i,l]),c=h((()=>n.map((e=>({id:`${e.from}-${e.to}`,...e})))),[n]),u=1.01*h((()=>{if(0===c.length)return 0;const e=Object.keys(o);return Math.max(...c.map((t=>{let n=0;for(const r of e)n+=t[r]??0;return n})))}),[c,o]),d=0===c.length;return ln(xv,d?{title:t,children:ln(Jh,{title:r("no-results"),icon:sn.lineChartsBarChartSquare})}:{title:t,children:ln(ZY,{groupMode:"stacked",data:c,legend:s,indexBy:"id",hasValueFn:e=>Object.keys(o).some((t=>e[t]>0)),formatIndexBy:e=>r("tooltips.durationRange",{from:e.from??0,to:e.to}),formatBottomTick:(e,t)=>r("ticks.durationRange",{from:t.from??0,to:t.to}),bottomTickSize:c.length>4?10:12,formatLegendValue:({value:e})=>{if(e&&0!==Number(e))return r("legend.value",{value:e})},noLegend:!0,formatLeftTick:e=>{const t=Math.abs(Number(e));return Number.isInteger(t)?n$(Math.abs(Number(e))):""},maxValue:u})})},GX=e=>{const{title:t,data:n,i18n:r,statuses:i}=e,o=h((()=>i.map((e=>({id:e,label:r(`status.${e}`),color:CW(e)})))),[i,r]),a=n,l=a.every((e=>i.every((t=>0===e[t]))));return ln(xv,l?{title:t,children:ln(Jh,{title:r("no-results"),icon:sn.lineChartsBarChartSquare})}:{title:t,children:ln(ZY,{groupMode:"stacked",data:a,legend:o,indexBy:"id",hasValueFn:()=>!0,formatIndexBy:e=>r(`severity.${e.id}`),formatBottomTick:e=>r(`severity.${e}`),formatLegendValue:({value:e})=>e?n$(Math.abs(Number(e))):"-",noLegend:!0,formatLeftTick:e=>{const t=Math.abs(Number(e));return Number.isInteger(t)?n$(Math.abs(Number(e))):""}})})},XX=e=>0===e.duration&&0===e.sequentialDuration,ZX=e=>{const{title:t,data:n,i18n:r}=e,i=n,o=h((()=>[{id:"sequentialDuration",label:r("durations.sequential"),color:"var(--bg-support-rigel)",type:"default"},{id:"duration",label:r("durations.duration"),color:"var(--bg-support-betelgeuse)",type:"default"},{id:"speedup",label:r("durations.speedup"),color:"var(--bg-support-betelgeuse-medium)",type:"point"}]),[r]),a=n.find((e=>"current"===e.id));return i.every((e=>XX(e)))||!a||XX(a)?ln(xv,{title:t,children:ln(Jh,{title:r("no-results"),icon:sn.lineChartsBarChartSquare})}):ln(xv,{title:t,children:ln(ZY,{groupMode:"grouped",data:i,legend:o,indexBy:"id",hasValueFn:()=>!0,formatIndexBy:e=>"current"===e.id?r("tooltips.current"):r("tooltips.history",{timestamp:e?.timestamp}),formatBottomTick:e=>{if("current"===e)return r("ticks.current");const t=i.find((t=>t.id===e));return t?r("ticks.history",{timestamp:t?.timestamp}):""},bottomTickRotation:45,formatLeftTick:e=>r("legend.duration",{duration:e}),formatLegendValue:({id:e,value:t})=>"duration"===e||"sequentialDuration"===e?r("legend.duration",{duration:t}):"speedup"===e?r("legend.speedup",{speedup:t}):void 0,formatTrendValue:(e,t)=>"speedup"===t?e<=1?0:100*(1-1/e):e,noLegend:!0})})};var KX="http://www.w3.org/1999/xhtml",JX={svg:"http://www.w3.org/2000/svg",xhtml:KX,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function QX(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),JX.hasOwnProperty(t)?{space:JX[t],local:e}:e}function eZ(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===KX&&t.documentElement.namespaceURI===KX?t.createElement(e):t.createElementNS(n,e)}}function tZ(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function nZ(e){var t=QX(e);return(t.local?tZ:eZ)(t)}function rZ(){}function iZ(e){return null==e?rZ:function(){return this.querySelector(e)}}function oZ(){return[]}function aZ(e){return null==e?oZ:function(){return this.querySelectorAll(e)}}function lZ(e){return function(){return function(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}(e.apply(this,arguments))}}function sZ(e){return function(){return this.matches(e)}}function cZ(e){return function(t){return t.matches(e)}}var uZ=Array.prototype.find;function dZ(){return this.firstElementChild}var fZ=Array.prototype.filter;function hZ(){return Array.from(this.children)}function pZ(e){return new Array(e.length)}function gZ(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function vZ(e,t,n,r,i,o){for(var a,l=0,s=t.length,c=o.length;l<c;++l)(a=t[l])?(a.__data__=o[l],r[l]=a):n[l]=new gZ(e,o[l]);for(;l<s;++l)(a=t[l])&&(i[l]=a)}function mZ(e,t,n,r,i,o,a){var l,s,c,u=new Map,d=t.length,f=o.length,h=new Array(d);for(l=0;l<d;++l)(s=t[l])&&(h[l]=c=a.call(s,s.__data__,l,t)+"",u.has(c)?i[l]=s:u.set(c,s));for(l=0;l<f;++l)c=a.call(e,o[l],l,o)+"",(s=u.get(c))?(r[l]=s,s.__data__=o[l],u.delete(c)):n[l]=new gZ(e,o[l]);for(l=0;l<d;++l)(s=t[l])&&u.get(h[l])===s&&(i[l]=s)}function bZ(e){return e.__data__}function yZ(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function _Z(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function wZ(e){return function(){this.removeAttribute(e)}}function xZ(e){return function(){this.removeAttributeNS(e.space,e.local)}}function kZ(e,t){return function(){this.setAttribute(e,t)}}function CZ(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function SZ(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function MZ(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function AZ(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function TZ(e){return function(){this.style.removeProperty(e)}}function LZ(e,t,n){return function(){this.style.setProperty(e,t,n)}}function EZ(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function OZ(e,t){return e.style.getPropertyValue(t)||AZ(e).getComputedStyle(e,null).getPropertyValue(t)}function RZ(e){return function(){delete this[e]}}function PZ(e,t){return function(){this[e]=t}}function zZ(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function DZ(e){return e.trim().split(/^|\s+/)}function NZ(e){return e.classList||new IZ(e)}function IZ(e){this._node=e,this._names=DZ(e.getAttribute("class")||"")}function BZ(e,t){for(var n=NZ(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function FZ(e,t){for(var n=NZ(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function jZ(e){return function(){BZ(this,e)}}function WZ(e){return function(){FZ(this,e)}}function HZ(e,t){return function(){(t.apply(this,arguments)?BZ:FZ)(this,e)}}function UZ(){this.textContent=""}function VZ(e){return function(){this.textContent=e}}function $Z(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function qZ(){this.innerHTML=""}function YZ(e){return function(){this.innerHTML=e}}function GZ(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function XZ(){this.nextSibling&&this.parentNode.appendChild(this)}function ZZ(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function KZ(){return null}function JZ(){var e=this.parentNode;e&&e.removeChild(this)}function QZ(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function eK(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function tK(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function nK(e,t,n){return function(){var r,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var a=0,l=i.length;a<l;++a)if((r=i[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function rK(e,t,n){var r=AZ(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function iK(e,t){return function(){return rK(this,e,t)}}function oK(e,t){return function(){return rK(this,e,t.apply(this,arguments))}}gZ.prototype={constructor:gZ,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},IZ.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var aK=[null];function lK(e,t){this._groups=e,this._parents=t}function sK(){return new lK([[document.documentElement]],aK)}function cK(e){return"string"==typeof e?new lK([[document.querySelector(e)]],[document.documentElement]):new lK([[e]],aK)}function uK(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}lK.prototype=sK.prototype={constructor:lK,select:function(e){"function"!=typeof e&&(e=iZ(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,l=t[i],s=l.length,c=r[i]=new Array(s),u=0;u<s;++u)(o=l[u])&&(a=e.call(o,o.__data__,u,l))&&("__data__"in o&&(a.__data__=o.__data__),c[u]=a);return new lK(r,this._parents)},selectAll:function(e){e="function"==typeof e?lZ(e):aZ(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,l=t[o],s=l.length,c=0;c<s;++c)(a=l[c])&&(r.push(e.call(a,a.__data__,c,l)),i.push(a));return new lK(r,i)},selectChild:function(e){return this.select(null==e?dZ:function(e){return function(){return uZ.call(this.children,e)}}("function"==typeof e?e:cZ(e)))},selectChildren:function(e){return this.selectAll(null==e?hZ:function(e){return function(){return fZ.call(this.children,e)}}("function"==typeof e?e:cZ(e)))},filter:function(e){"function"!=typeof e&&(e=sZ(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],l=a.length,s=r[i]=[],c=0;c<l;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&s.push(o);return new lK(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,bZ);var n=t?mZ:vZ,r=this._parents,i=this._groups;"function"!=typeof e&&(e=function(e){return function(){return e}}(e));for(var o=i.length,a=new Array(o),l=new Array(o),s=new Array(o),c=0;c<o;++c){var u=r[c],d=i[c],f=d.length,h=yZ(e.call(u,u&&u.__data__,c,r)),p=h.length,g=l[c]=new Array(p),v=a[c]=new Array(p);n(u,d,g,v,s[c]=new Array(f),h,t);for(var m,b,y=0,_=0;y<p;++y)if(m=g[y]){for(y>=_&&(_=y+1);!(b=v[_])&&++_<p;);m._next=b||null}}return(a=new lK(a,r))._enter=l,a._exit=s,a},enter:function(){return new lK(this._enter||this._groups.map(pZ),this._parents)},exit:function(){return new lK(this._exit||this._groups.map(pZ),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),l=new Array(i),s=0;s<a;++s)for(var c,u=n[s],d=r[s],f=u.length,h=l[s]=new Array(f),p=0;p<f;++p)(c=u[p]||d[p])&&(h[p]=c);for(;s<i;++s)l[s]=n[s];return new lK(l,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=_Z);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,l=n[o],s=l.length,c=i[o]=new Array(s),u=0;u<s;++u)(a=l[u])&&(c[u]=a);c.sort(t)}return new lK(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,l=o.length;a<l;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=QX(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?xZ:wZ:"function"==typeof t?n.local?MZ:SZ:n.local?CZ:kZ)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?TZ:"function"==typeof t?EZ:LZ)(e,t,null==n?"":n)):OZ(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?RZ:"function"==typeof t?zZ:PZ)(e,t)):this.node()[e]},classed:function(e,t){var n=DZ(e+"");if(arguments.length<2){for(var r=NZ(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?HZ:t?jZ:WZ)(n,t))},text:function(e){return arguments.length?this.each(null==e?UZ:("function"==typeof e?$Z:VZ)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?qZ:("function"==typeof e?GZ:YZ)(e)):this.node().innerHTML},raise:function(){return this.each(XZ)},lower:function(){return this.each(ZZ)},append:function(e){var t="function"==typeof e?e:nZ(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:nZ(e),r=null==t?KZ:"function"==typeof t?t:iZ(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(JZ)},clone:function(e){return this.select(e?eK:QZ)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),a=o.length;if(!(arguments.length<2)){for(l=t?nK:tK,r=0;r<a;++r)this.each(l(o[r],t,n));return this}var l=this.node().__on;if(l)for(var s,c=0,u=l.length;c<u;++c)for(r=0,s=l[c];r<a;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value},dispatch:function(e,t){return this.each(("function"==typeof t?oK:iK)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};var dK={value:()=>{}};function fK(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new hK(r)}function hK(e){this._=e}function pK(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function gK(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=dK,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}hK.prototype=fK.prototype={constructor:hK,on:function(e,t){var n,r,i=this._,o=(r=i,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),a=-1,l=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++a<l;)if(n=(e=o[a]).type)i[n]=gK(i[n],e.name,t);else if(null==t)for(n in i)i[n]=gK(i[n],e.name,null);return this}for(;++a<l;)if((n=(e=o[a]).type)&&(n=pK(i[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new hK(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var vK,mK,bK=0,yK=0,_K=0,wK=0,xK=0,kK=0,CK="object"==typeof performance&&performance.now?performance:Date,SK="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function MK(){return xK||(SK(AK),xK=CK.now()+kK)}function AK(){xK=0}function TK(){this._call=this._time=this._next=null}function LK(e,t,n){var r=new TK;return r.restart(e,t,n),r}function EK(){xK=(wK=CK.now())+kK,bK=yK=0;try{!function(){MK(),++bK;for(var e,t=vK;t;)(e=xK-t._time)>=0&&t._call.call(void 0,e),t=t._next;--bK}()}finally{bK=0,function(){var e,t,n=vK,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:vK=t);mK=e,RK(r)}(),xK=0}}function OK(){var e=CK.now(),t=e-wK;t>1e3&&(kK-=t,wK=e)}function RK(e){bK||(yK&&(yK=clearTimeout(yK)),e-xK>24?(e<1/0&&(yK=setTimeout(EK,e-CK.now()-kK)),_K&&(_K=clearInterval(_K))):(_K||(wK=CK.now(),_K=setInterval(OK,1e3)),bK=1,SK(EK)))}function PK(e,t,n){var r=new TK;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}TK.prototype=LK.prototype={constructor:TK,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?MK():+n)+(null==t?0:+t),this._next||mK===this||(mK?mK._next=this:vK=this,mK=this),this._call=e,this._time=n,RK()},stop:function(){this._call&&(this._call=null,this._time=1/0,RK())}};var zK=fK("start","end","cancel","interrupt"),DK=[];function NK(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var c,u,d,f;if(1!==n.state)return s();for(c in i)if((f=i[c]).name===n.name){if(3===f.state)return PK(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[c]):+c<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[c])}if(PK((function(){3===n.state&&(n.state=4,n.timer.restart(l,n.delay,n.time),l(o))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(f=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=f);r.length=u+1}}function l(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=LK(o,0,n.time)}(e,n,{name:t,index:r,group:i,on:zK,tween:DK,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function IK(e,t){var n=FK(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function BK(e,t){var n=FK(e,t);if(n.state>3)throw new Error("too late; already running");return n}function FK(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function jK(e,t){var n,r;return function(){var i=BK(this,e),o=i.tween;if(o!==n)for(var a=0,l=(r=n=o).length;a<l;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}function WK(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=BK(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var l={name:t,value:n},s=0,c=i.length;s<c;++s)if(i[s].name===t){i[s]=l;break}s===c&&i.push(l)}o.tween=i}}function HK(e,t,n){var r=e._id;return e.each((function(){var e=BK(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return FK(e,r).value[t]}}function UK(e,t){var n;return("number"==typeof t?fa:t instanceof Ao?aa:(n=Ao(t))?(t=n,aa):va)(e,t)}function VK(e){return function(){this.removeAttribute(e)}}function $K(e){return function(){this.removeAttributeNS(e.space,e.local)}}function qK(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function YK(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function GK(e,t,n){var r,i,o;return function(){var a,l,s=n(this);if(null!=s)return(a=this.getAttribute(e))===(l=s+"")?null:a===r&&l===i?o:(i=l,o=t(r=a,s));this.removeAttribute(e)}}function XK(e,t,n){var r,i,o;return function(){var a,l,s=n(this);if(null!=s)return(a=this.getAttributeNS(e.space,e.local))===(l=s+"")?null:a===r&&l===i?o:(i=l,o=t(r=a,s));this.removeAttributeNS(e.space,e.local)}}function ZK(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,i)),n}return i._value=t,i}function KK(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,i)),n}return i._value=t,i}function JK(e,t){return function(){IK(this,e).delay=+t.apply(this,arguments)}}function QK(e,t){return t=+t,function(){IK(this,e).delay=t}}function eJ(e,t){return function(){BK(this,e).duration=+t.apply(this,arguments)}}function tJ(e,t){return t=+t,function(){BK(this,e).duration=t}}var nJ=sK.prototype.constructor;function rJ(e){return function(){this.style.removeProperty(e)}}var iJ=0;function oJ(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function aJ(e){return sK().transition(e)}function lJ(){return++iJ}var sJ=sK.prototype;function cJ(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}oJ.prototype=aJ.prototype={constructor:oJ,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=iZ(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var l,s,c=r[a],u=c.length,d=o[a]=new Array(u),f=0;f<u;++f)(l=c[f])&&(s=e.call(l,l.__data__,f,c))&&("__data__"in l&&(s.__data__=l.__data__),d[f]=s,NK(d[f],t,n,f,d,FK(l,n)));return new oJ(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=aZ(e));for(var r=this._groups,i=r.length,o=[],a=[],l=0;l<i;++l)for(var s,c=r[l],u=c.length,d=0;d<u;++d)if(s=c[d]){for(var f,h=e.call(s,s.__data__,d,c),p=FK(s,n),g=0,v=h.length;g<v;++g)(f=h[g])&&NK(f,t,n,g,h,p);o.push(h),a.push(s)}return new oJ(o,a,t,n)},selectChild:sJ.selectChild,selectChildren:sJ.selectChildren,filter:function(e){"function"!=typeof e&&(e=sZ(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],l=a.length,s=r[i]=[],c=0;c<l;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&s.push(o);return new oJ(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),l=0;l<o;++l)for(var s,c=t[l],u=n[l],d=c.length,f=a[l]=new Array(d),h=0;h<d;++h)(s=c[h]||u[h])&&(f[h]=s);for(;l<r;++l)a[l]=t[l];return new oJ(a,this._parents,this._name,this._id)},selection:function(){return new nJ(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=lJ(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,l=r[o],s=l.length,c=0;c<s;++c)if(a=l[c]){var u=FK(a,t);NK(a,e,n,c,l,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new oJ(r,this._parents,e,n)},call:sJ.call,nodes:sJ.nodes,node:sJ.node,size:sJ.size,empty:sJ.empty,each:sJ.each,on:function(e,t){var n=this._id;return arguments.length<2?FK(this.node(),n).on.on(e):this.each(function(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?IK:BK;return function(){var a=o(this,e),l=a.on;l!==r&&(i=(r=l).copy()).on(t,n),a.on=i}}(n,e,t))},attr:function(e,t){var n=QX(e),r="transform"===n?Sa:UK;return this.attrTween(e,"function"==typeof t?(n.local?XK:GK)(n,r,HK(this,"attr."+e,t)):null==t?(n.local?$K:VK)(n):(n.local?YK:qK)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=QX(e);return this.tween(n,(r.local?ZK:KK)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Ca:UK;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=OZ(this,e),a=(this.style.removeProperty(e),OZ(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,rJ(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=OZ(this,e),l=n(this),s=l+"";return null==l&&(this.style.removeProperty(e),s=l=OZ(this,e)),a===s?null:a===r&&s===i?o:(i=s,o=t(r=a,l))}}(e,r,HK(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,l="end."+a;return function(){var s=BK(this,e),c=s.on,u=null==s.value[a]?o||(o=rJ(t)):void 0;c===n&&i===u||(r=(n=c).copy()).on(l,i=u),s.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=OZ(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,o,n)),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(HK(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=FK(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?jK:WK)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?JK:QK)(t,e)):FK(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?eJ:tJ)(t,e)):FK(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){BK(this,e).ease=t}}(t,e)):FK(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw new Error;BK(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var l={value:a},s={value:function(){0==--i&&o()}};n.each((function(){var n=BK(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(l),t._.interrupt.push(l),t._.end.push(s)),n.on=t})),0===i&&o()}))},[Symbol.iterator]:sJ[Symbol.iterator]};var uJ={time:null,delay:0,duration:250,ease:cJ};function dJ(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function fJ(e){return e}sK.prototype.interrupt=function(e){return this.each((function(){!function(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}(this,e)}))},sK.prototype.transition=function(e){var t,n;e instanceof oJ?(t=e._id,e=e._name):(t=lJ(),(n=uJ).time=MK(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,l=r[o],s=l.length,c=0;c<s;++c)(a=l[c])&&NK(a,e,t,c,l,n||dJ(a,t));return new oJ(r,this._parents,e,t)};var hJ=1e-6;function pJ(e){return"translate("+e+",0)"}function gJ(e){return"translate(0,"+e+")"}function vJ(e){return t=>+e(t)}function mJ(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function bJ(){return!this.__axis}function yJ(e,t){var n=[],r=null,i=null,o=6,a=6,l=3,s="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=1===e||4===e?-1:1,u=4===e||2===e?"x":"y",d=1===e||3===e?pJ:gJ;function f(f){var h=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,p=null==i?t.tickFormat?t.tickFormat.apply(t,n):fJ:i,g=Math.max(o,0)+l,v=t.range(),m=+v[0]+s,b=+v[v.length-1]+s,y=(t.bandwidth?mJ:vJ)(t.copy(),s),_=f.selection?f.selection():f,w=_.selectAll(".domain").data([null]),x=_.selectAll(".tick").data(h,t).order(),k=x.exit(),C=x.enter().append("g").attr("class","tick"),S=x.select("line"),M=x.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(C),S=S.merge(C.append("line").attr("stroke","currentColor").attr(u+"2",c*o)),M=M.merge(C.append("text").attr("fill","currentColor").attr(u,c*g).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),f!==_&&(w=w.transition(f),x=x.transition(f),S=S.transition(f),M=M.transition(f),k=k.transition(f).attr("opacity",hJ).attr("transform",(function(e){return isFinite(e=y(e))?d(e+s):this.getAttribute("transform")})),C.attr("opacity",hJ).attr("transform",(function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:y(e))+s)}))),k.remove(),w.attr("d",4===e||2===e?a?"M"+c*a+","+m+"H"+s+"V"+b+"H"+c*a:"M"+s+","+m+"V"+b:a?"M"+m+","+c*a+"V"+s+"H"+b+"V"+c*a:"M"+m+","+s+"H"+b),x.attr("opacity",1).attr("transform",(function(e){return d(y(e)+s)})),S.attr(u+"2",c*o),M.attr(u,c*g).text(p),_.filter(bJ).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),_.each((function(){this.__axis=y}))}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(o=a=+e,f):o},f.tickSizeInner=function(e){return arguments.length?(o=+e,f):o},f.tickSizeOuter=function(e){return arguments.length?(a=+e,f):a},f.tickPadding=function(e){return arguments.length?(l=+e,f):l},f.offset=function(e){return arguments.length?(s=+e,f):s},f}function _J(e){return yJ(3,e)}const wJ={capture:!0,passive:!1};function xJ(e){e.preventDefault(),e.stopImmediatePropagation()}var kJ=fK("start","end","cancel","interrupt"),CJ=[];function SJ(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var c,u,d,f;if(1!==n.state)return s();for(c in i)if((f=i[c]).name===n.name){if(3===f.state)return PK(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[c]):+c<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[c])}if(PK((function(){3===n.state&&(n.state=4,n.timer.restart(l,n.delay,n.time),l(o))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(f=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=f);r.length=u+1}}function l(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=LK(o,0,n.time)}(e,n,{name:t,index:r,group:i,on:kJ,tween:CJ,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function MJ(e,t){var n=TJ(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function AJ(e,t){var n=TJ(e,t);if(n.state>3)throw new Error("too late; already running");return n}function TJ(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function LJ(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}function EJ(e,t){var n,r;return function(){var i=AJ(this,e),o=i.tween;if(o!==n)for(var a=0,l=(r=n=o).length;a<l;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}function OJ(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=AJ(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var l={name:t,value:n},s=0,c=i.length;s<c;++s)if(i[s].name===t){i[s]=l;break}s===c&&i.push(l)}o.tween=i}}function RJ(e,t,n){var r=e._id;return e.each((function(){var e=AJ(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return TJ(e,r).value[t]}}function PJ(e,t){var n;return("number"==typeof t?fa:t instanceof Ao?aa:(n=Ao(t))?(t=n,aa):va)(e,t)}function zJ(e){return function(){this.removeAttribute(e)}}function DJ(e){return function(){this.removeAttributeNS(e.space,e.local)}}function NJ(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function IJ(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function BJ(e,t,n){var r,i,o;return function(){var a,l,s=n(this);if(null!=s)return(a=this.getAttribute(e))===(l=s+"")?null:a===r&&l===i?o:(i=l,o=t(r=a,s));this.removeAttribute(e)}}function FJ(e,t,n){var r,i,o;return function(){var a,l,s=n(this);if(null!=s)return(a=this.getAttributeNS(e.space,e.local))===(l=s+"")?null:a===r&&l===i?o:(i=l,o=t(r=a,s));this.removeAttributeNS(e.space,e.local)}}function jJ(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,i)),n}return i._value=t,i}function WJ(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,i)),n}return i._value=t,i}function HJ(e,t){return function(){MJ(this,e).delay=+t.apply(this,arguments)}}function UJ(e,t){return t=+t,function(){MJ(this,e).delay=t}}function VJ(e,t){return function(){AJ(this,e).duration=+t.apply(this,arguments)}}function $J(e,t){return t=+t,function(){AJ(this,e).duration=t}}var qJ=sK.prototype.constructor;function YJ(e){return function(){this.style.removeProperty(e)}}var GJ=0;function XJ(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function ZJ(){return++GJ}var KJ=sK.prototype;XJ.prototype={constructor:XJ,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=iZ(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var l,s,c=r[a],u=c.length,d=o[a]=new Array(u),f=0;f<u;++f)(l=c[f])&&(s=e.call(l,l.__data__,f,c))&&("__data__"in l&&(s.__data__=l.__data__),d[f]=s,SJ(d[f],t,n,f,d,TJ(l,n)));return new XJ(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=aZ(e));for(var r=this._groups,i=r.length,o=[],a=[],l=0;l<i;++l)for(var s,c=r[l],u=c.length,d=0;d<u;++d)if(s=c[d]){for(var f,h=e.call(s,s.__data__,d,c),p=TJ(s,n),g=0,v=h.length;g<v;++g)(f=h[g])&&SJ(f,t,n,g,h,p);o.push(h),a.push(s)}return new XJ(o,a,t,n)},selectChild:KJ.selectChild,selectChildren:KJ.selectChildren,filter:function(e){"function"!=typeof e&&(e=sZ(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],l=a.length,s=r[i]=[],c=0;c<l;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&s.push(o);return new XJ(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),l=0;l<o;++l)for(var s,c=t[l],u=n[l],d=c.length,f=a[l]=new Array(d),h=0;h<d;++h)(s=c[h]||u[h])&&(f[h]=s);for(;l<r;++l)a[l]=t[l];return new XJ(a,this._parents,this._name,this._id)},selection:function(){return new qJ(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=ZJ(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,l=r[o],s=l.length,c=0;c<s;++c)if(a=l[c]){var u=TJ(a,t);SJ(a,e,n,c,l,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new XJ(r,this._parents,e,n)},call:KJ.call,nodes:KJ.nodes,node:KJ.node,size:KJ.size,empty:KJ.empty,each:KJ.each,on:function(e,t){var n=this._id;return arguments.length<2?TJ(this.node(),n).on.on(e):this.each(function(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?MJ:AJ;return function(){var a=o(this,e),l=a.on;l!==r&&(i=(r=l).copy()).on(t,n),a.on=i}}(n,e,t))},attr:function(e,t){var n=QX(e),r="transform"===n?Sa:PJ;return this.attrTween(e,"function"==typeof t?(n.local?FJ:BJ)(n,r,RJ(this,"attr."+e,t)):null==t?(n.local?DJ:zJ)(n):(n.local?IJ:NJ)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=QX(e);return this.tween(n,(r.local?jJ:WJ)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Ca:PJ;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=OZ(this,e),a=(this.style.removeProperty(e),OZ(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,YJ(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=OZ(this,e),l=n(this),s=l+"";return null==l&&(this.style.removeProperty(e),s=l=OZ(this,e)),a===s?null:a===r&&s===i?o:(i=s,o=t(r=a,l))}}(e,r,RJ(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,l="end."+a;return function(){var s=AJ(this,e),c=s.on,u=null==s.value[a]?o||(o=YJ(t)):void 0;c===n&&i===u||(r=(n=c).copy()).on(l,i=u),s.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=OZ(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,o,n)),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(RJ(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=TJ(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?EJ:OJ)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?HJ:UJ)(t,e)):TJ(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?VJ:$J)(t,e)):TJ(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){AJ(this,e).ease=t}}(t,e)):TJ(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw new Error;AJ(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var l={value:a},s={value:function(){0==--i&&o()}};n.each((function(){var n=AJ(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(l),t._.interrupt.push(l),t._.end.push(s)),n.on=t})),0===i&&o()}))},[Symbol.iterator]:KJ[Symbol.iterator]};var JJ={time:null,delay:0,duration:250,ease:cJ};function QJ(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}sK.prototype.interrupt=function(e){return this.each((function(){LJ(this,e)}))},sK.prototype.transition=function(e){var t,n;e instanceof XJ?(t=e._id,e=e._name):(t=ZJ(),(n=JJ).time=MK(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,l=r[o],s=l.length,c=0;c<s;++c)(a=l[c])&&SJ(a,e,t,c,l,n||QJ(a,t));return new XJ(r,this._parents,e,t)};var eQ=e=>()=>e;function tQ(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function nQ(e){e.preventDefault(),e.stopImmediatePropagation()}var rQ={name:"drag"},iQ={name:"space"},oQ={name:"handle"},aQ={name:"center"};const{abs:lQ,max:sQ,min:cQ}=Math;function uQ(e){return[+e[0],+e[1]]}function dQ(e){return[uQ(e[0]),uQ(e[1])]}var fQ={name:"x",handles:["w","e"].map(yQ),input:function(e,t){return null==e?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},hQ={},pQ={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},gQ={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},vQ={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},mQ={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},bQ={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function yQ(e){return{type:e}}function _Q(e){return!e.ctrlKey&&!e.button}function wQ(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function xQ(){return navigator.maxTouchPoints||"ontouchstart"in this}function kQ(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function CQ(){return function(e){var t,n=wQ,r=_Q,i=xQ,o=!0,a=fK("start","brush","end"),l=6;function s(t){var n=t.property("__brush",g).selectAll(".overlay").data([yQ("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",pQ.overlay).merge(n).each((function(){var e=kQ(this).extent;cK(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])})),t.selectAll(".selection").data([yQ("selection")]).enter().append("rect").attr("class","selection").attr("cursor",pQ.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=t.selectAll(".handle").data(e.handles,(function(e){return e.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(e){return"handle handle--"+e.type})).attr("cursor",(function(e){return pQ[e.type]})),t.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(i).on("touchstart.brush",f).on("touchmove.brush",h).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var e=cK(this),t=kQ(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",(function(e){return"e"===e.type[e.type.length-1]?t[1][0]-l/2:t[0][0]-l/2})).attr("y",(function(e){return"s"===e.type[0]?t[1][1]-l/2:t[0][1]-l/2})).attr("width",(function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+l:l})).attr("height",(function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+l:l}))):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(e,t,n){var r=e.__brush.emitter;return!r||n&&r.clean?new d(e,t,n):r}function d(e,t,n){this.that=e,this.args=t,this.state=e.__brush,this.active=0,this.clean=n}function f(n){if((!t||n.touches)&&r.apply(this,arguments)){var i,a,l,s,d,f,h,p,g,v,m,b=this,y=n.target.__data__.type,_="selection"===(o&&n.metaKey?y="overlay":y)?rQ:o&&n.altKey?aQ:oQ,w=e===hQ?null:mQ[y],x=e===fQ?null:bQ[y],k=kQ(b),C=k.extent,S=k.selection,M=C[0][0],A=C[0][1],T=C[1][0],L=C[1][1],E=0,O=0,R=w&&x&&o&&n.shiftKey,P=Array.from(n.touches||[n],(e=>{const t=e.identifier;return(e=uK(e,b)).point0=e.slice(),e.identifier=t,e}));LJ(b);var z=u(b,arguments,!0).beforestart();if("overlay"===y){S&&(g=!0);const t=[P[0],P[1]||P[0]];k.selection=S=[[i=e===hQ?M:cQ(t[0][0],t[1][0]),l=e===fQ?A:cQ(t[0][1],t[1][1])],[d=e===hQ?T:sQ(t[0][0],t[1][0]),h=e===fQ?L:sQ(t[0][1],t[1][1])]],P.length>1&&F(n)}else i=S[0][0],l=S[0][1],d=S[1][0],h=S[1][1];a=i,s=l,f=d,p=h;var D=cK(b).attr("pointer-events","none"),N=D.selectAll(".overlay").attr("cursor",pQ[y]);if(n.touches)z.moved=B,z.ended=j;else{var I=cK(n.view).on("mousemove.brush",B,!0).on("mouseup.brush",j,!0);o&&I.on("keydown.brush",W,!0).on("keyup.brush",H,!0),function(e){var t=e.document.documentElement,n=cK(e).on("dragstart.drag",xJ,wJ);"onselectstart"in t?n.on("selectstart.drag",xJ,wJ):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(n.view)}c.call(b),z.start(n,_.name)}function B(e){for(const t of e.changedTouches||[e])for(const e of P)e.identifier===t.identifier&&(e.cur=uK(t,b));if(R&&!v&&!m&&1===P.length){const e=P[0];lQ(e.cur[0]-e[0])>lQ(e.cur[1]-e[1])?m=!0:v=!0}for(const e of P)e.cur&&(e[0]=e.cur[0],e[1]=e.cur[1]);g=!0,nQ(e),F(e)}function F(e){const t=P[0],n=t.point0;var r;switch(E=t[0]-n[0],O=t[1]-n[1],_){case iQ:case rQ:w&&(E=sQ(M-i,cQ(T-d,E)),a=i+E,f=d+E),x&&(O=sQ(A-l,cQ(L-h,O)),s=l+O,p=h+O);break;case oQ:P[1]?(w&&(a=sQ(M,cQ(T,P[0][0])),f=sQ(M,cQ(T,P[1][0])),w=1),x&&(s=sQ(A,cQ(L,P[0][1])),p=sQ(A,cQ(L,P[1][1])),x=1)):(w<0?(E=sQ(M-i,cQ(T-i,E)),a=i+E,f=d):w>0&&(E=sQ(M-d,cQ(T-d,E)),a=i,f=d+E),x<0?(O=sQ(A-l,cQ(L-l,O)),s=l+O,p=h):x>0&&(O=sQ(A-h,cQ(L-h,O)),s=l,p=h+O));break;case aQ:w&&(a=sQ(M,cQ(T,i-E*w)),f=sQ(M,cQ(T,d+E*w))),x&&(s=sQ(A,cQ(L,l-O*x)),p=sQ(A,cQ(L,h+O*x)))}f<a&&(w*=-1,r=i,i=d,d=r,r=a,a=f,f=r,y in gQ&&N.attr("cursor",pQ[y=gQ[y]])),p<s&&(x*=-1,r=l,l=h,h=r,r=s,s=p,p=r,y in vQ&&N.attr("cursor",pQ[y=vQ[y]])),k.selection&&(S=k.selection),v&&(a=S[0][0],f=S[1][0]),m&&(s=S[0][1],p=S[1][1]),S[0][0]===a&&S[0][1]===s&&S[1][0]===f&&S[1][1]===p||(k.selection=[[a,s],[f,p]],c.call(b),z.brush(e,_.name))}function j(e){if(function(e){e.stopImmediatePropagation()}(e),e.touches){if(e.touches.length)return;t&&clearTimeout(t),t=setTimeout((function(){t=null}),500)}else!function(e,t){var n=e.document.documentElement,r=cK(e).on("dragstart.drag",null);t&&(r.on("click.drag",xJ,wJ),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,g),I.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);D.attr("pointer-events","all"),N.attr("cursor",pQ.overlay),k.selection&&(S=k.selection),function(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}(S)&&(k.selection=null,c.call(b)),z.end(e,_.name)}function W(e){switch(e.keyCode){case 16:R=w&&x;break;case 18:_===oQ&&(w&&(d=f-E*w,i=a+E*w),x&&(h=p-O*x,l=s+O*x),_=aQ,F(e));break;case 32:_!==oQ&&_!==aQ||(w<0?d=f-E:w>0&&(i=a-E),x<0?h=p-O:x>0&&(l=s-O),_=iQ,N.attr("cursor",pQ.selection),F(e));break;default:return}nQ(e)}function H(e){switch(e.keyCode){case 16:R&&(v=m=R=!1,F(e));break;case 18:_===aQ&&(w<0?d=f:w>0&&(i=a),x<0?h=p:x>0&&(l=s),_=oQ,F(e));break;case 32:_===iQ&&(e.altKey?(w&&(d=f-E*w,i=a+E*w),x&&(h=p-O*x,l=s+O*x),_=aQ):(w<0?d=f:w>0&&(i=a),x<0?h=p:x>0&&(l=s),_=oQ),N.attr("cursor",pQ[y]),F(e));break;default:return}nQ(e)}}function h(e){u(this,arguments).moved(e)}function p(e){u(this,arguments).ended(e)}function g(){var t=this.__brush||{selection:null};return t.extent=dQ(n.apply(this,arguments)),t.dim=e,t}return s.move=function(t,n,r){t.tween?t.on("start.brush",(function(e){u(this,arguments).beforestart().start(e)})).on("interrupt.brush end.brush",(function(e){u(this,arguments).end(e)})).tween("brush",(function(){var t=this,r=t.__brush,i=u(t,arguments),o=r.selection,a=e.input("function"==typeof n?n.apply(this,arguments):n,r.extent),l=ma(o,a);function s(e){r.selection=1===e&&null===a?null:l(e),c.call(t),i.brush()}return null!==o&&null!==a?s:s(1)})):t.each((function(){var t=this,i=arguments,o=t.__brush,a=e.input("function"==typeof n?n.apply(t,i):n,o.extent),l=u(t,i).beforestart();LJ(t),o.selection=null===a?null:a,c.call(t),l.start(r).brush(r).end(r)}))},s.clear=function(e,t){s.move(e,null,t)},d.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(e,t){return this.starting?(this.starting=!1,this.emit("start",e,t)):this.emit("brush",e),this},brush:function(e,t){return this.emit("brush",e,t),this},end:function(e,t){return 0==--this.active&&(delete this.state.emitter,this.emit("end",e,t)),this},emit:function(t,n,r){var i=cK(this.that).datum();a.call(t,this.that,new tQ(t,{sourceEvent:n,target:s,selection:e.output(this.state.selection),mode:r,dispatch:a}),i)}},s.extent=function(e){return arguments.length?(n="function"==typeof e?e:eQ(dQ(e)),s):n},s.filter=function(e){return arguments.length?(r="function"==typeof e?e:eQ(!!e),s):r},s.touchable=function(e){return arguments.length?(i="function"==typeof e?e:eQ(!!e),s):i},s.handleSize=function(e){return arguments.length?(l=+e,s):l},s.keyModifiers=function(e){return arguments.length?(o=!!e,s):o},s.on=function(){var e=a.on.apply(a,arguments);return e===a?s:e},s}(fQ)}const SQ=(e,t)=>{const n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz-";let r=5381;const i=Array.from(`${e}:${t}`);for(const e of i)r=Math.imul(r,33)+e.charCodeAt(0);const o=new Array(21);let a=Math.abs(r);for(let e=0;e<21;++e)a=(1664525*a+1013904223)%4294967296,o[e]=n[a%64];return o.join("")};class MQ extends CustomEvent{constructor(e){super("zoom",{detail:e})}}const AQ=()=>{return yJ(1,e);var e},TQ=()=>{return yJ(4,e);var e},LQ=(e,t=EQ)=>{const[n,r]=c(e),i=s(n),o=s(t);return u((()=>{o.current=t}),[t]),u((()=>{i.current=n,o.current(i.current)}),[n]),[i,n,r]},EQ=()=>{},OQ=e=>e?e<0?0:e:0;var RQ={timelineContainer:"styles_timelineContainer__3SW8x",durationRangeText:"styles_durationRangeText__kjCEl",timelineChart:"styles_timelineChart__sjwgA",axises:"styles_axises__nnLwP",xAxis:"styles_xAxis__w8pk1",xGrid:"styles_xGrid__2cimK",groupAxis:"styles_groupAxis__8rzsA",group:"styles_group__-lm0v",segment:"styles_segment__tDYtR",brusher:"styles_brusher__iTl0A",zoomSelection:"styles_zoomSelection__W-Y0x",brush:"styles_brush__5MVEw",tooltip:"styles_tooltip__WgR7o",tooltipContent:"styles_tooltipContent__qmhxV",labelGroup:"styles_labelGroup__wJsCk"};const PQ=()=>_J(),zQ={top:0,right:0,bottom:20,left:0},DQ=300,NQ=20,IQ=()=>{},BQ=e=>{const{width:t=DQ,height:n=NQ,margins:r=zQ,domainRange:i,currentSelection:o,tickFormat:a,onChange:l=IQ,onReset:c=IQ,selectedTestsCount:d,totalTestsCount:f,translations:h,transitionDuration:p=300}=e,g=OQ(t-r.left-r.right),v=OQ(n-r.top-r.bottom),[m,b,y]=LQ((()=>Cl().domain(i).range([0,g])));u((()=>{y((()=>Cl().domain(i).range([0,g])))}),[i,g]);const _=s(null),w=s(null),x=s(null),k=s(null),C=s(null),S=s(null),M=s(l),A=s(c);u((()=>{M.current=l,A.current=c}),[l,c]);const T=s(PQ().tickFormat((()=>""))),L=s(PQ().tickPadding(0)),E=s(CQ().handleSize(24).on("end",(e=>{if(!e.sourceEvent||!m.current||!M.current)return;if(!(e.selection&&2===e.selection.length)){const[e,t]=m.current.domain();return void M.current(e,t)}const[t,n]=e.selection.map((e=>b.invert(e)));M.current(t,n)})));u((()=>{if(!_.current||!b)return;if(!i||i[1]<=i[0])return;const[e,t]=i,n=(t-e)/6,l=[];for(let t=0;t<7;t++)l.push(e+n*t);if(l[0]=e,l[6]=t,L.current.scale(b).tickFormat(a).tickValues(l),T.current.scale(b).tickSize(-v).tickValues(l),cK(w.current).attr("transform",`translate(${r.left},${r.top})`),cK(x.current).exit().transition().duration(p).attr("width",0).attr("height",0),k.current&&(cK(k.current).attr("transform",`translate(0,${v})`),cK(k.current).call(T.current)),C.current&&(cK(C.current).attr("transform",`translate(0,${v})`),cK(C.current).call(L.current).selectAll("text").attr("y",8)),S.current){const e=cK(S.current);e.select(".selection").attr("rx",2).attr("ry",2),e.call(E.current.extent([[0,0],[g,v]]));const t=[b(o[0]??i[0]),b(o[1]??i[1])];E.current.move(e,t)}}),[r,b,i,o,a,g,v,p]);const O=(d/f*100).toFixed(2);return ln("svg",{ref:_,className:RQ.brusher,width:t,height:n+14,children:ln("g",{ref:w,className:RQ.brusherMargins,children:[ln("rect",{ref:x,className:RQ.gridBackground}),ln("g",{ref:S,className:RQ.brush}),ln("g",{className:RQ.axises,children:[ln("g",{ref:k,className:RQ.xGrid}),ln("g",{ref:C,className:RQ.xAxis}),ln("text",{x:g/2,y:60,textAnchor:"middle",className:RQ.durationRangeText,children:h.selected({count:d,percentage:O,minDuration:qi(o[0]),maxDuration:qi(o[1])})})]})]})})},FQ=e=>{const{segments:t,groupId:n,groupName:r,offsetTime:i}=e,[o,a]=h((()=>{let e=1/0,r=-1/0;const i=t.filter((e=>e.groupId===n));for(const t of i)e=Math.min(e,t.timeRange[0].getTime()),r=Math.max(r,t.timeRange[1].getTime());return[e,r]}),[t,n]);return ln("div",{className:RQ.tooltipContent,children:[ln("div",{children:r}),ln("div",{children:[qi(o-i)," — ",qi(a-i)]})]})},jQ=l(null),WQ=e=>{const{children:t,width:n}=e;return ln(jQ.Provider,{value:n,children:t})},HQ=()=>{},UQ=e=>{const{children:t,width:n,onResize:r,debounceResize:i=0}=e,[o]=OT(n,i);return u((()=>{r?.(o)}),[o,r]),o>0?ln(WQ,{width:o,children:t}):null},VQ=e=>{const{children:t,defaultWidth:n=0,onResize:r=HQ,debounceResize:i=0}=e,o=s(null),[a,l]=c(n);return u((()=>{if(!o.current)return;l(o.current.clientWidth);const e=new ResizeObserver((e=>{for(const t of e)l(t.target.clientWidth)}));return e.observe(o.current),()=>e.disconnect()}),[n]),ln("div",{ref:o,children:ln(UQ,{width:a,onResize:r,debounceResize:i,children:t})})},$Q=e=>{const{segment:t,offsetTime:n}=e;if(!t.id)return null;const r=t.labelGroup.length>1;return ln("div",{className:RQ.tooltipContent,children:[r?ln("div",{className:RQ.labelGroup,children:t.labelGroup.map(((e,t)=>ln(dn,{type:"ui",size:"s",bold:!0,children:e},t)))}):ln(dn,{type:"ui",size:"s",bold:!0,children:t.label}),ln("div",{children:[qi(t.timeRange[0].getTime()-n)," — ",qi(t.timeRange[1].getTime()-n)]})]})},qQ=()=>_J(),YQ={top:0,right:0,bottom:20,left:0},GQ=300,XQ=20,ZQ=()=>{},KQ=e=>{const{width:t=GQ,height:n=XQ,margins:r=YQ,scale:i,domainRange:o,currentSelection:a,tickFormat:l,onChange:c=ZQ,onReset:d=ZQ,transitionDuration:f=300}=e,[h,p,g]=LQ((()=>i.copy()));u((()=>{g((()=>h.current.domain()===i.domain()&&h.current.range()===i.range()?h.current:i.copy()))}),[i]);const v=OQ(t-r.left-r.right),m=OQ(n-r.top-r.bottom);u((()=>{g((()=>i.copy().domain(o??[]).range([0,v])))}),[o,v,i]);const b=s(null),y=s(null),_=s(null),w=s(null),x=s(null),k=s(null),C=s(c),S=s(d),M=s(qQ().tickFormat((()=>""))),A=s(qQ().tickPadding(0)),T=s(CQ().handleSize(24).on("end",(e=>{if(!e.sourceEvent||!h.current||!C.current)return;if(!(e.selection&&2===e.selection.length)){const[e,t]=h.current.domain();return void C.current(e,t)}const[t,n]=e.selection.map((e=>h.current.invert(e)));C.current(t,n)})));return u((()=>{C.current=c,S.current=d}),[c,d]),u((()=>{if(b.current&&p&&o&&!(o[1]<=o[0])&&(A.current.scale(p).tickFormat(l),M.current.scale(p).tickSize(-m),M.current.ticks(7),cK(y.current).attr("transform",`translate(${r.left},${r.top})`),cK(_.current).transition().duration(f).attr("width",String(v)).attr("height",String(m)),w.current&&(cK(w.current).attr("transform",`translate(0,${m})`),cK(w.current).call(M.current)),x.current&&(cK(x.current).attr("transform",`translate(0,${m})`),cK(x.current).call(A.current).selectAll("text").attr("y",8)),k.current)){const e=cK(k.current);e.select(".selection").attr("rx",2).attr("ry",2),e.call(T.current.extent([[0,0],[v,m]]));const t=[p(a?.[0]??o[0].getTime()),p(a?.[1]??o[1].getTime())];T.current.move(e,t)}}),[v,m,r,o,a,l,p,f]),ln("svg",{ref:b,className:RQ.brusher,width:t,height:n,children:ln("g",{ref:y,className:RQ.brusherMargins,children:[ln("rect",{ref:_,className:RQ.gridBackground}),ln("g",{ref:k,className:RQ.brush}),ln("g",{className:RQ.axises,children:[ln("g",{ref:w,className:RQ.xGrid}),ln("g",{ref:x,className:RQ.xAxis})]})]})})};cK.prototype.transition=aJ;const JQ=e=>{const t={failed:"var(--timeline-status-failed, #E8452CFF)",broken:"var(--timeline-status-broken, #E88D2CFF)",passed:"var(--timeline-status-passed, #099337FF)",skipped:"var(--timeline-status-skipped, #7281A1FF)",unknown:"var(--timeline-status-unknown, #B92CE8FF)"};return t[e]||t.unknown},QQ=e=>{const t={failed:"var(--on-support-capella, #E8452CFF)",broken:"var(--on-support-atlas, #E88D2CFF)",passed:"var(--on-support-castor, #099337FF)",skipped:"var(--on-support-rau, #7281A1FF)",unknown:"var(--on-support-skat, #B92CE8FF)"};return t[e]||t.unknown},e0=e=>{if(e>=20)return 4;if(e<4)return 0;const t=(e-4)/16;return 4*(t*(2-t))},t0=100,n0=100,r0=26,i0=20,o0=e=>{const{data:t=[],translations:n}=e,r=p(),{durationRange:i,handleDurationChange:o,durationDomain:a}=(e=>{const t=h((()=>{const t=e.reduce(((e,t)=>{const n=t.segments.map((e=>e.val));return{min:Math.min(e.min,...n),max:Math.max(e.max,...n)}}),{min:1/0,max:-1/0});return[t.min,t.max]}),[e]),[n,r]=c(t[0]),[i,o]=c(t[1]);u((()=>{r(t[0])}),[t[0]]),u((()=>{o(t[1])}),[t[1]]);const a=d(((e,t)=>{r(e),o(t)}),[]);return{durationRange:[n,i],handleDurationChange:a,durationDomain:t}})(t),l=(()=>{const e=f(jQ);if(!e)throw new Error("useWidth must be used within a ResponsiveWrapper");return e})(),g=s(null),v=s(null),m=s(null),b=s(null),y=s(null),_=s(null),[w,x,k]=LQ((()=>Ka())),[C,S,M]=LQ((()=>Ga())),A=s(_J()),T=s(AQ()),L=s(TQ()),{tooltipRef:E,isVisible:O,handleShowTooltip:R,handleHideTooltip:P,data:z}=EY("bottom"),{tooltipRef:D,isVisible:N,handleShowTooltip:I,handleHideTooltip:B,data:F}=EY("bottom"),j=mV?0:500,W=mV?0:150,H=s(!1),U=t.length,V=OQ(l-t0-n0),$=OQ(24*U),q=$+r0+30,Y=h((()=>{const e=[];for(const n of t)for(const t of n.segments)e.push({groupId:n.id,groupName:n.name,label:t.label,labelGroup:t.labelGroup,timeRange:t.timeRange,hidden:t.hidden,val:t.val,labelVal:t.val,segment:t,id:t.id});return e}),[t]),G=h((()=>t.map((e=>({id:e.id,name:e.name})))),[t]),X=h((()=>[Va(Y,(e=>e.timeRange[0])),Ua(Y,(e=>e.timeRange[1]))]),[Y]),[Z,K]=c(X),[J,Q]=c([null,null]),ee=d((e=>{K((t=>((e,t)=>{if(!e&&!t)return!0;if(!e&&t)return!1;if(e&&!t)return!1;const n=e?.[0]?.getTime()??void 0,r=e?.[1]?.getTime()??void 0,i=t?.[0]?.getTime()??void 0,o=t?.[1]?.getTime()??void 0;return n===i&&r===o})(t,e)?t:e))}),[]),te=d((e=>{Q((t=>((e,t)=>{if(!e&&!t)return!0;if(!e&&t)return!1;if(e&&!t)return!1;const n=e?.[0]??void 0,r=e?.[1]??void 0;return n===(t?.[0]??void 0)&&r===(t?.[1]??void 0)})(t,e)?t:e))}),[]),[ne,re,ie]=LQ((()=>tu().domain(X).range([0,V]).clamp(!0)));u((()=>{ie((()=>ne.current.copy().domain(X))),ee(X)}),[...X,ee]),u((()=>{ie((()=>ne.current.copy().range([0,V]).clamp(!0)))}),[V]);const oe=h((()=>[Va(Y,(e=>e.timeRange[0])),Ua(Y,(e=>e.timeRange[1]))]),[Y]);u((()=>{if(!g.current)return;const e=e=>{const{zoomX:t,zoomY:n}=e.detail;t&&ee(t),n&&te(n)};if(g.current?.addEventListener("zoom",e),!v.current)return;const t=cK(v.current),n=e=>uK(e,v.current);return t.on("mousedown",(e=>{if(null!=cK(window).on("mousemove.zoomRect"))return;const r=n(e);if(r[0]<0||r[0]>V||r[1]<0||r[1]>$)return;H.current=!0;const i=t.append("rect").attr("class",RQ.zoomSelection);cK(window).on("mousemove.zoomRect",(e=>{e.stopPropagation();const t=n(e),o=[Math.max(0,Math.min(V,t[0])),Math.max(0,Math.min($,t[1]))];i.attr("x",Math.min(r[0],o[0])).attr("y",Math.min(r[1],o[1])).attr("width",Math.abs(o[0]-r[0])).attr("height",Math.abs(o[1]-r[1]))})).on("mouseup.zoomRect",(e=>{cK(window).on("mousemove.zoomRect",null).on("mouseup.zoomRect",null),i.remove(),H.current=!1;const t=n(e),o=[Math.max(0,Math.min(V,t[0])),Math.max(0,Math.min($,t[1]))];if(r[0]===o[0]&&r[1]===o[1])return;const a=[r[0],o[0]].sort(Ta).map((e=>ne.current.invert(e)));a[1].getTime()-a[0].getTime()>10&&g.current?.dispatchEvent(new MQ({zoomX:a,zoomY:null}))}),!0),e.stopPropagation()})),()=>{g.current?.removeEventListener("zoom",e)}}),[V,$,J,Y,ee,te,S]),u((()=>{const e=Z?.[0]&&Z?.[1]?Z:X;ie((()=>ne.current.copy().domain(e).range([0,V]).clamp(!0)))}),[Z,X,V]),u((()=>{L.current.scale(S)}),[S,G]),u((()=>{M((()=>C.current.copy().domain(G.map((e=>e.id))).range(G.map(((e,t)=>(t+.5)/U*$)))))}),[G,U,$]),u((()=>{k((()=>w.current.copy().domain(G.map((e=>e.id))).range([$/G.length*.5,$*(1-.5/G.length)])))}),[G,$,U]),u((()=>{if(!(g.current&&re&&0!==$&&b.current&&y.current))return;const[e,t]=re.range();if(e===t)return;A.current.scale(re),A.current.ticks(7),A.current.tickFormat((e=>oe[0]?qi(e.getTime()-oe[0].getTime()):"")),T.current.scale(re).ticks(7).tickFormat((()=>""));cK(b.current).style("stroke-opacity",0).style("fill-opacity",0).attr("transform",`translate(0,${$})`).transition().duration(j).call(A.current).style("stroke-opacity",1).style("fill-opacity",1),T.current.tickSize($),cK(y.current).attr("transform",`translate(0,${$})`).transition().duration(j).call(T.current);const n=Math.ceil(2*U/Math.sqrt(2)/$/.6),r=w.current.domain().filter(((e,t)=>!(t%n)));let i=Math.min(12,$/r.length*.6*Math.sqrt(2)),o=Math.ceil(n0/(i/Math.sqrt(2)));const a=S.range(),l=Va(a,((e,t)=>t>0?e-a[t-1]:2*e));i=Math.min(14,.6*OQ(l)*Math.sqrt(2)),o=Math.floor(t0/(i/Math.sqrt(2))),L.current.tickFormat((e=>{const t=G.find((t=>t.id===e)),n=t?.name??"";return n.length<=o?n:`${n.substring(0,2*o/3)}...${n.substring(n.length-o/3,n.length)}`})),cK(_.current).transition().duration(j).style("font-size",`${i}px`).call(L.current),cK(_.current).selectAll(".tick").each((function(e){const t=e,n=G.find((e=>e.id===t));n&&cK(this).select("text").on("mouseover",(e=>{R(e.target,n)})).on("mouseout",(e=>{P(e.target)}))}))}),[V,$,U,j,oe,re,S,G,R,P]),u((()=>{if(!v.current||0===$)return;const e=cK(v.current).selectAll(`rect.${RQ.group}`).data(G,(e=>e.id));e.exit().transition().duration(j).style("stroke-opacity",0).style("fill-opacity",0).remove();const t=e.enter().append("rect").attr("class",RQ.group).attr("x",0).attr("y",0).attr("height",0).attr("fill","none").style("fill-opacity",0).style("stroke-opacity",0);e.merge(t).transition().duration(j).attr("width",V).attr("height",$/U).attr("y",(e=>{const t=S(e.id);return Number.isInteger(t)?t-$/U/2:0})).style("fill-opacity",1).style("stroke-opacity",1)}),[G,V,$,U,j,S,R,P]);const[ae,le]=i,se=h((()=>Y.filter((e=>{if(-1===S.domain().indexOf(e.groupId))return!1;const t=e.val;return!(t<ae||t>le)})).length),[S,Y,ae,le]),ce=h((()=>Y.filter((e=>{if(-1===S.domain().indexOf(e.groupId))return!1;const t=e.val;if(t<ae||t>le)return!1;const[n,r]=re.domain(),[i,o]=e.timeRange;return!(o<n||i>r)}))),[S,re,Y,ae,le]);u((()=>{if(!v.current||0===$||!re)return;(async()=>{const e=cK(v.current);let t=e.selectAll(`rect.${RQ.segment}`).data(ce,(e=>e.id));if(0===ce.length)return void t.exit().remove();t.exit().transition().duration(j).style("fill-opacity",0).remove();const n=t.enter().append("rect").attr("class",RQ.segment).attr("rx",1).attr("ry",1).attr("x",(e=>re(e.timeRange[0]))).attr("y",(e=>(x(e.groupId)||0)-10)).attr("width",0).attr("height",0).style("fill",(e=>JQ(e.segment.status))).style("fill-opacity",0);n.on("mouseover",(function(e,t){if(H.current)return;cK(this).transition().duration(W).attr("x",ne.current(t.timeRange[0])-1).attr("width",Ua([2,ne.current(t.timeRange[1])-ne.current(t.timeRange[0])])+2).attr("y",(w.current(t.groupId)||0)-11).attr("height",22).style("fill-opacity",1),I(e.target,t)})).on("mouseout",(function(e,t){if(H.current)return;const n=ne.current(t.timeRange[1])-ne.current(t.timeRange[0]);cK(this).transition().duration(W).attr("x",ne.current(t.timeRange[0])).attr("width",Ua([2,n])??0).attr("y",(w.current(t.groupId)??0)-10).attr("height",i0).style("fill-opacity",1),B(e.target)})),t=t.merge(n),t.attr("rx",(e=>{const t=re(e.timeRange[1])-re(e.timeRange[0]);return e0(t)})).attr("ry",(e=>{const t=re(e.timeRange[1])-re(e.timeRange[0]);return e0(t)})).attr("stroke-width",(e=>re(e.timeRange[1])-re(e.timeRange[0])>=12?.5:.1)).attr("stroke","var(--timeline-bg, #ffffff)").attr("height",i0),t.transition().duration(j).attr("x",(e=>re(e.timeRange[0]))).attr("y",(e=>(x(e.groupId)||0)-10)).attr("width",(e=>{const t=Ua([2,(re(e.timeRange[1])??0)-(re(e.timeRange[0])??0)]);return(t??0)<0?0:t??0})).attr("height",i0).style("fill",(e=>e.hidden?`url(#gradient-${r}-${e.segment.status})`:JQ(e.segment.status))).style("fill-opacity",1)})()}),[ce,V,$,V,j,Z,re,W,x,r]),u((()=>{g.current&&cK(g.current).transition().duration(j).attr("width",l).attr("height",q)}),[l,q,j]);const ue=d(((e,t)=>ee([e,t])),[ee]),[de,fe]=re.range(),he=de!==fe;return he?ln("div",{className:RQ.timelineChart,children:[a[0]!==a[1]&&he&&ln(BQ,{selectedTestsCount:se,totalTestsCount:Y.length,translations:n,width:l,height:76,margins:{top:r0,right:n0,bottom:30,left:t0},domainRange:a,currentSelection:[ae,le],onChange:o,onReset:()=>o(a[0],a[1]),tickFormat:e=>qi(e)},l),ln("svg",{ref:g,width:l,height:q,children:[ln("defs",{children:Fi.map((e=>ln("pattern",{id:`gradient-${r}-${e}`,patternUnits:"userSpaceOnUse",width:"10",height:"10",patternTransform:"rotate(-45 5 5)",children:[ln("rect",{width:"5",height:"10",fill:QQ(e)}),ln("rect",{x:"5",width:"5",height:"10",fill:JQ(e)})]},e)))}),ln("g",{ref:m,className:RQ.axises,"data-label":"axises",transform:"translate(100,26)",children:[ln("g",{ref:b,className:RQ.xAxis,"data-label":"x-axis"}),ln("g",{ref:y,className:RQ.xGrid,"data-label":"grid"}),ln("g",{ref:_,className:RQ.groupAxis,"data-label":"groups-axis"})]}),ln("g",{ref:v,"data-label":"graph",transform:"translate(100,26)",children:ln("rect",{"data-label":"graph-selection",x:0,y:0,width:V,height:$,fill:"transparent"})})]}),X[0].getTime()!==X[1].getTime()&&he&&ln(KQ,{width:l,height:76,margins:{top:r0,right:n0,bottom:30,left:t0},scale:re,domainRange:X,currentSelection:Z,onChange:ue,onReset:()=>ee(X),tickFormat:e=>qi(e.getTime()-oe[0].getTime())}),mi(ln("div",{ref:E,"data-visible":O,className:RQ.tooltip,children:z?.id&&ln(FQ,{segments:ce,groupId:z.id,groupName:z.name,offsetTime:oe[0].getTime()})}),document.body),mi(ln("div",{ref:D,"data-visible":N,className:RQ.tooltip,children:F&&ln($Q,{segment:F,offsetTime:oe[0].getTime()})}),document.body)]}):null},a0=e=>{const{data:t,width:n,dataId:r,...i}=e,o=h((()=>((e,t)=>{const n=[];for(const r of e){const{host:e,thread:i,historyId:o,id:a,start:l,duration:s,status:c,hidden:u,name:d}=r,f=l+s,h=SQ(e,t),p=SQ(i,h),g=n.find((({id:e})=>e===p)),v=g?.segments??[],m=o??a,b=-1!==v.findIndex((({id:e})=>e===m)),y=v.find((({timeRange:e})=>e[0].getTime()===l&&e[1].getTime()===f));b||y||v.push({label:d,labelGroup:[d],timeRange:[new Date(l),new Date(f)],val:s,status:c,id:m,hidden:u}),!b&&y&&y.labelGroup.push(r.name),g?g.segments=v:n.push({id:p,name:i,segments:v})}return n})(t,r)),[t,r]);return ln("div",{className:RQ.timelineContainer,children:ln(VQ,{defaultWidth:n,children:ln(o0,{...i,data:o},r)})})};var l0={"metadata-item-title":"styles_metadata-item-title__vvDM7","metadata-item-value":"styles_metadata-item-value__cfOcH","metadata-test-type":"styles_metadata-test-type__g74xb","metadata-color-badge":"styles_metadata-color-badge__Aartr","status-passed":"styles_status-passed__t6OIX","status-failed":"styles_status-failed__cyIIg","status-broken":"styles_status-broken__B3Hmt","status-skipped":"styles_status-skipped__cvNTT","status-unknown":"styles_status-unknown__FvkCG"};const s0=({count:e})=>ln(dn,{"data-testid":"metadata-value",type:"ui",size:"m",tag:"div",className:l0["metadata-item-value"],children:e}),c0=({status:e,count:t})=>ln("div",{"data-testid":"metadata-value",className:l0["metadata-test-type"],children:[ln("div",{className:j(l0["metadata-color-badge"],l0?.[`status-${e}`])}),ln(dn,{type:"ui",size:"s",children:t})]}),u0=({className:e,renderComponent:t=s0,props:n,...r})=>{const{title:i}=n||{};return ln("div",{...r,className:j("metadata-item",e),children:[ln(dn,{type:"ui",size:"s",tag:"div",className:l0["metadata-item-title"],children:i}),ln(t||s0,{...n})]})};var d0={wrapper:"styles_wrapper__PZ24k",row:"styles_row__ndzQ1",pie:"styles_pie__bR8Vy",content:"styles_content__xx8wB",header:"styles_header__Lb-Ke",title:"styles_title__T589E",createdAt:"styles_createdAt__lBtju",reportStatus:"styles_reportStatus__gG5y4",metadata:"styles_metadata__4u-BW",statistics:"styles_statistics__RgaOy",pluginName:"styles_pluginName__c3AiZ"};const f0=e=>{const{createdAt:t,i18n:n}=e;if(!t)return null;const r=n("createdAt",{createdAt:t})??new Date(t).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"});return ln(dn,{tag:"time",size:"s",className:d0.createdAt,dateTime:t.toString(),children:r})},h0=e=>{const{statistic:t}=e,{percentage:n,slices:r}=Od(t);return ln(EW,{className:d0.chart,slices:r,percentage:Math.floor(n)})},p0=e=>{const{status:t,duration:n,i18n:r}=e,i=qi(n);return ln("p",{className:d0.reportStatus,children:[ln(hv,{status:t,children:r(`status.${t}`)??t}),ln("span",{children:[ln(dn,{type:"ui",size:"s",children:r("in")??"in"}),ln("span",{children:" "}),ln(dn,{type:"ui",size:"s",bold:!0,children:i})]})]})},g0=e=>e>999?"999+":e,v0=e=>{const{flakyCount:t=0,newCount:n=0,retryCount:r=0,i18n:i}=e;return ln("div",{className:d0.metadata,children:[ln($b,{tooltip:i("metadata.new",{count:n})??`${n} new tests`,icon:sn.testNew,children:0===n?"-":g0(n)}),ln($b,{tooltip:i("metadata.flaky",{count:t})??`${t} flaky tests`,icon:sn.lineIconBomb2,children:0===t?"-":g0(t)}),ln($b,{tooltip:i("metadata.retry",{count:r})??`${r} retry tests`,icon:sn.lineGeneralZap,children:0===r?"-":g0(r)})]})},m0=e=>{const{stats:t,i18n:n}=e,r=h((()=>["failed","broken","passed","skipped","unknown"].map((e=>({label:zp.capitalize(n(`status.${e}`)??e),value:t[e],status:e}))).filter((e=>e.value&&e.value>0))),[t,n]);return ln("div",{className:d0.statistics,children:[ln(u0,{props:{count:t.total,title:n("total")??"Total"},renderComponent:c0}),r.map((e=>ln(u0,{props:{count:e.value,title:e.label,status:e.status},renderComponent:c0},e.label)))]})},b0=e=>{const{summary:t,i18n:n}=e,{href:r,remoteHref:i,status:o,stats:a,name:l,duration:s,createdAt:c,newTests:u,flakyTests:d,retryTests:f,plugin:h}=t,p=i||r,g="string"==typeof p;return ln(g?"a":"div",{className:d0.wrapper,...g?{href:p,target:"_blank",rel:"noreferrer"}:{},onClick:g?e=>{""!==window.getSelection()?.toString()&&e.preventDefault()}:void 0,"data-testid":"summary-report-card",draggable:!1,children:[ln("div",{className:d0.row,children:[ln("div",{className:d0.content,children:[ln("div",{className:d0.header,children:[h&&ln(fn,{type:"ui",tag:"small",size:"s",className:d0.pluginName,children:h}),ln(hn,{tag:"h2",size:"s",className:d0.title,children:l}),ln(f0,{createdAt:c,i18n:n}),ln(p0,{status:o,duration:s,i18n:n})]}),ln(v0,{newCount:u?.length,flakyCount:d?.length,retryCount:f?.length,i18n:n})]}),ln("div",{className:d0.pie,children:ln(h0,{statistic:a})})]}),ln(m0,{stats:a,i18n:n})]})};export{Bi as ArrowButton,xg as Attachment,gp as AttachmentCode,kg as AttachmentEmpty,kp as AttachmentImage,mg as AttachmentVideo,vn as Button,yn as ButtonLink,fn as Code,Cg as CodeViewer,ov as Counter,jX as CurrentStatusChartWidget,Cq as DEFAULT_HEAT_MAP_EMPTY_ARIA_LABEL,_q as DEFAULT_HEAT_MAP_EMPTY_COLOR,kq as DEFAULT_HEAT_MAP_EMPTY_LABEL,Aq as DEFAULT_HEAT_MAP_FORCE_SQUARE,wq as DEFAULT_HEAT_MAP_HEIGHT,Tq as DEFAULT_HEAT_MAP_VALUE_FORMAT,xq as DEFAULT_HEAT_MAP_WIDTH,Sq as DEFAULT_HEAT_MAP_X_INNER_PADDING,Mq as DEFAULT_HEAT_MAP_Y_INNER_PADDING,bn as DropdownButton,ZX as DurationDynamicsChartWidget,YX as DurationsChartWidget,Jh as EmptyView,Eb as Grid,Ib as GridItem,hn as Heading,zq as HeatMap,Dq as HeatMapWidget,yg as HtmlPreview,mn as IconButton,$b as IconLabel,vg as ImageDiff,dv as Label,Bb as LanguagePicker,cv as Link,Yr as Loadable,Di as Menu,Fg as Modal,Xr as PageLoader,bv as ReportLogo,vv as ReportLogoFull,b0 as ReportSummaryCard,ri as SearchBox,un as Spinner,QY as StabilityDistributionWidget,aG as StatusAgePyramidChartWidget,HX as StatusDynamicsChartWidget,hv as StatusLabel,$X as StatusTransitionsChartWidget,EW as SuccessRatePieChart,cn as SvgIcon,ig as Tag,nG as TestBaseGrowthDynamicsChartWidget,TG as TestingPyramidWidget,dn as Text,jb as ThemeButton,u$ as ThemeProvider,a0 as Timeline,lv as Toggle,Ur as Tooltip,$r as TooltipWrapper,GX as TrSeveritiesChartWidget,rv as Tree,nv as TreeHeader,Qg as TreeItem,Yg as TreeItemIcon,l$ as TreeMapChart,p$ as TreeMapChartWidget,ev as TreeSection,tv as TreeStatusBar,xW as TrendChart,bW as TrendChartKind,kW as TrendChartWidget,xv as Widget,sn as allureIcons,Lq as defaultHeatMapAxisLeftConfig,Eq as defaultHeatMapAxisTopConfig,Oq as defaultHeatMapLegendConfig,yq as defaultHeatMapMarginConfig,wV as defaultTreeChartConfig,dW as defaultTrendChartAxisBottomConfig,fW as defaultTrendChartAxisLeftConfig,vW as defaultTrendChartConfig,uW as defaultTrendChartLegendConfig,hW as defaultTrendChartMarginConfig,pW as defaultTrendChartXScaleConfig,gW as defaultTrendChartYScaleConfig,_W as makeSymlogScale,wW as makeSymlogScaleBySeries,d$ as useCoverageDiffColors,h$ as useCoverageDiffTextColors,qr as useElementTruncation,f$ as useSuccessRateDistributionColors,c$ as useTheme,Vr as useTooltip};
16
+ */function kv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kv(Object(n),!0).forEach((function(t){Mv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sv(e){return Sv="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},Sv(e)}function Mv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Av(){return Av=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Av.apply(this,arguments)}function Tv(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Lv(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Ev=Lv(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ov=Lv(/Edge/i),Rv=Lv(/firefox/i),Pv=Lv(/safari/i)&&!Lv(/chrome/i)&&!Lv(/android/i),zv=Lv(/iP(ad|od|hone)/i),Dv=Lv(/chrome/i)&&Lv(/android/i),Nv={capture:!1,passive:!1};function Iv(e,t,n){e.addEventListener(t,n,!Ev&&Nv)}function Bv(e,t,n){e.removeEventListener(t,n,!Ev&&Nv)}function Fv(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function jv(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Wv(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Fv(e,t):Fv(e,t))||r&&e===n)return e;if(e===n)break}while(e=jv(e))}return null}var Hv,Uv=/\s+/g;function Vv(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(Uv," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(Uv," ")}}function $v(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function qv(e,t){var n="";if("string"==typeof e)n=e;else do{var r=$v(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Yv(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function Gv(){var e=document.scrollingElement;return e||document.documentElement}function Xv(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var o,a,l,s,c,u,d;if(e!==window&&e.parentNode&&e!==Gv()?(a=(o=e.getBoundingClientRect()).top,l=o.left,s=o.bottom,c=o.right,u=o.height,d=o.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!Ev))do{if(i&&i.getBoundingClientRect&&("none"!==$v(i,"transform")||n&&"static"!==$v(i,"position"))){var f=i.getBoundingClientRect();a-=f.top+parseInt($v(i,"border-top-width")),l-=f.left+parseInt($v(i,"border-left-width")),s=a+o.height,c=l+o.width;break}}while(i=i.parentNode);if(r&&e!==window){var h=qv(i||e),p=h&&h.a,g=h&&h.d;h&&(s=(a/=g)+(u/=g),c=(l/=p)+(d/=p))}return{top:a,left:l,bottom:s,right:c,width:d,height:u}}}function Zv(e,t,n){for(var r=tm(e,!0),i=Xv(e)[t];r;){if(!(i>=Xv(r)[n]))return r;if(r===Gv())break;r=tm(r,!1)}return!1}function Kv(e,t,n,r){for(var i=0,o=0,a=e.children;o<a.length;){if("none"!==a[o].style.display&&a[o]!==ob.ghost&&(r||a[o]!==ob.dragged)&&Wv(a[o],n.draggable,e,!1)){if(i===t)return a[o];i++}o++}return null}function Jv(e,t){for(var n=e.lastElementChild;n&&(n===ob.ghost||"none"===$v(n,"display")||t&&!Fv(n,t));)n=n.previousElementSibling;return n||null}function Qv(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===ob.clone||t&&!Fv(e,t)||n++;return n}function em(e){var t=0,n=0,r=Gv();if(e)do{var i=qv(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function tm(e,t){if(!e||!e.getBoundingClientRect)return Gv();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=$v(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return Gv();if(r||t)return n;r=!0}}}while(n=n.parentNode);return Gv()}function nm(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function rm(e,t){return function(){if(!Hv){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),Hv=setTimeout((function(){Hv=void 0}),t)}}}function im(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function om(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function am(e,t,n){var r={};return Array.from(e.children).forEach((function(i){var o,a,l,s;if(Wv(i,t.draggable,e,!1)&&!i.animated&&i!==n){var c=Xv(i);r.left=Math.min(null!==(o=r.left)&&void 0!==o?o:1/0,c.left),r.top=Math.min(null!==(a=r.top)&&void 0!==a?a:1/0,c.top),r.right=Math.max(null!==(l=r.right)&&void 0!==l?l:-1/0,c.right),r.bottom=Math.max(null!==(s=r.bottom)&&void 0!==s?s:-1/0,c.bottom)}})),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var lm="Sortable"+(new Date).getTime();function sm(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==$v(e,"display")&&e!==ob.ghost){t.push({target:e,rect:Xv(e)});var n=Cv({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=qv(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var i=!1,o=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,l=Xv(n),s=n.prevFromRect,c=n.prevToRect,u=e.rect,d=qv(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&nm(s,l)&&!nm(a,l)&&(u.top-l.top)/(u.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,s,c,r.options)),nm(l,a)||(n.prevFromRect=a,n.prevToRect=l,t||(t=r.options.animation),r.animate(n,u,l,t)),t&&(i=!0,o=Math.max(o,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),i?e=setTimeout((function(){"function"==typeof n&&n()}),o):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){$v(e,"transition",""),$v(e,"transform","");var i=qv(this.el),o=i&&i.a,a=i&&i.d,l=(t.left-n.left)/(o||1),s=(t.top-n.top)/(a||1);e.animatingX=!!l,e.animatingY=!!s,$v(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),$v(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),$v(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){$v(e,"transition",""),$v(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var cm=[],um={initializeByDefault:!0},dm={mount:function(e){for(var t in um)um.hasOwnProperty(t)&&!(t in e)&&(e[t]=um[t]);cm.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),cm.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";cm.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](Cv({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](Cv({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var i in cm.forEach((function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var o=new r(e,t,e.options);o.sortable=e,o.options=e.options,e[i]=o,Av(n,o.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var o=this.modifyOption(e,i,e.options[i]);void 0!==o&&(e.options[i]=o)}},getEventProperties:function(e,t){var n={};return cm.forEach((function(r){"function"==typeof r.eventProperties&&Av(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return cm.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))})),r}};var fm=["evt"],hm=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=Tv(n,fm);dm.pluginEvent.bind(ob)(e,t,Cv({dragEl:gm,parentEl:vm,ghostEl:mm,rootEl:bm,nextEl:ym,lastDownEl:_m,cloneEl:wm,cloneHidden:xm,dragStarted:Dm,putSortable:Tm,activeSortable:ob.active,originalEvent:r,oldIndex:km,oldDraggableIndex:Sm,newIndex:Cm,newDraggableIndex:Mm,hideGhostForTarget:tb,unhideGhostForTarget:nb,cloneNowHidden:function(){xm=!0},cloneNowShown:function(){xm=!1},dispatchSortableEvent:function(e){pm({sortable:t,name:e,originalEvent:r})}},i))};function pm(e){!function(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,a=e.toEl,l=e.fromEl,s=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,h=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[lm]){var g,v=t.options,m="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||Ev||Ov?(g=document.createEvent("Event")).initEvent(r,!0,!0):g=new CustomEvent(r,{bubbles:!0,cancelable:!0}),g.to=a||n,g.from=l||n,g.item=i||n,g.clone=o,g.oldIndex=s,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=f,g.pullMode=h?h.lastPutMode:void 0;var b=Cv(Cv({},p),dm.getEventProperties(r,t));for(var y in b)g[y]=b[y];n&&n.dispatchEvent(g),v[m]&&v[m].call(t,g)}}(Cv({putSortable:Tm,cloneEl:wm,targetEl:gm,rootEl:bm,oldIndex:km,oldDraggableIndex:Sm,newIndex:Cm,newDraggableIndex:Mm},e))}var gm,vm,mm,bm,ym,_m,wm,xm,km,Cm,Sm,Mm,Am,Tm,Lm,Em,Om,Rm,Pm,zm,Dm,Nm,Im,Bm,Fm,jm=!1,Wm=!1,Hm=[],Um=!1,Vm=!1,$m=[],qm=!1,Ym=[],Gm="undefined"!=typeof document,Xm=zv,Zm=Ov||Ev?"cssFloat":"float",Km=Gm&&!Dv&&!zv&&"draggable"in document.createElement("div"),Jm=function(){if(Gm){if(Ev)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Qm=function(e,t){var n=$v(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Kv(e,0,t),o=Kv(e,1,t),a=i&&$v(i),l=o&&$v(o),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Xv(i).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Xv(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!o||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=r&&"none"===n[Zm]||o&&"none"===n[Zm]&&s+c>r)?"vertical":"horizontal"},eb=function(e){function t(e,n){return function(r,i,o,a){var l=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,i,o,a),n)(r,i,o,a);var s=(n?r:i).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},r=e.group;r&&"object"==Sv(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},tb=function(){!Jm&&mm&&$v(mm,"display","none")},nb=function(){!Jm&&mm&&$v(mm,"display","")};Gm&&!Dv&&document.addEventListener("click",(function(e){if(Wm)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Wm=!1,!1}),!0);var rb=function(e){if(gm){var t=function(e,t){var n;return Hm.some((function(r){var i=r[lm].options.emptyInsertThreshold;if(i&&!Jv(r)){var o=Xv(r),a=e>=o.left-i&&e<=o.right+i,l=t>=o.top-i&&t<=o.bottom+i;return a&&l?n=r:void 0}})),n}((e=e.touches?e.touches[0]:e).clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[lm]._onDragOver(n)}}},ib=function(e){gm&&gm.parentNode[lm]._isOutsideThisEl(e.target)};function ob(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Av({},t),e[lm]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Qm(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==ob.supportPointer&&"PointerEvent"in window&&(!Pv||zv),emptyInsertThreshold:5};for(var r in dm.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in eb(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Km,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Iv(e,"pointerdown",this._onTapStart):(Iv(e,"mousedown",this._onTapStart),Iv(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Iv(e,"dragover",this),Iv(e,"dragenter",this)),Hm.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Av(this,sm())}function ab(e,t,n,r,i,o,a,l){var s,c,u=e[lm],d=u.options.onMove;return!window.CustomEvent||Ev||Ov?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=r,s.related=i||t,s.relatedRect=o||Xv(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),d&&(c=d.call(u,s,a)),c}function lb(e){e.draggable=!1}function sb(){qm=!1}function cb(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function ub(e){return setTimeout(e,0)}function db(e){return clearTimeout(e)}ob.prototype={constructor:ob,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Nm=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,gm):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=r.filter;if(function(e){Ym.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Ym.push(r)}}(n),!gm&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!Pv||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=Wv(l,r.draggable,n,!1))&&l.animated||_m===l)){if(km=Qv(l),Sm=Qv(l,r.draggable),"function"==typeof c){if(c.call(this,e,l,this))return pm({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),hm("filter",t,{evt:e}),void(i&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=Wv(s,r.trim(),n,!1))return pm({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),hm("filter",t,{evt:e}),!0}))))return void(i&&e.preventDefault());r.handle&&!Wv(s,r.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,a=i.options,l=o.ownerDocument;if(n&&!gm&&n.parentNode===o){var s=Xv(n);if(bm=o,vm=(gm=n).parentNode,ym=gm.nextSibling,_m=n,Am=a.group,ob.dragged=gm,Lm={target:gm,clientX:(t||e).clientX,clientY:(t||e).clientY},Pm=Lm.clientX-s.left,zm=Lm.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,gm.style["will-change"]="all",r=function(){hm("delayEnded",i,{evt:e}),ob.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!Rv&&i.nativeDraggable&&(gm.draggable=!0),i._triggerDragStart(e,t),pm({sortable:i,name:"choose",originalEvent:e}),Vv(gm,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Yv(gm,e.trim(),lb)})),Iv(l,"dragover",rb),Iv(l,"mousemove",rb),Iv(l,"touchmove",rb),a.supportPointer?(Iv(l,"pointerup",i._onDrop),!this.nativeDraggable&&Iv(l,"pointercancel",i._onDrop)):(Iv(l,"mouseup",i._onDrop),Iv(l,"touchend",i._onDrop),Iv(l,"touchcancel",i._onDrop)),Rv&&this.nativeDraggable&&(this.options.touchStartThreshold=4,gm.draggable=!0),hm("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(Ov||Ev))r();else{if(ob.eventCanceled)return void this._onDrop();a.supportPointer?(Iv(l,"pointerup",i._disableDelayedDrag),Iv(l,"pointercancel",i._disableDelayedDrag)):(Iv(l,"mouseup",i._disableDelayedDrag),Iv(l,"touchend",i._disableDelayedDrag),Iv(l,"touchcancel",i._disableDelayedDrag)),Iv(l,"mousemove",i._delayedDragTouchMoveHandler),Iv(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&Iv(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){gm&&lb(gm),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Bv(e,"mouseup",this._disableDelayedDrag),Bv(e,"touchend",this._disableDelayedDrag),Bv(e,"touchcancel",this._disableDelayedDrag),Bv(e,"pointerup",this._disableDelayedDrag),Bv(e,"pointercancel",this._disableDelayedDrag),Bv(e,"mousemove",this._delayedDragTouchMoveHandler),Bv(e,"touchmove",this._delayedDragTouchMoveHandler),Bv(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Iv(document,"pointermove",this._onTouchMove):Iv(document,t?"touchmove":"mousemove",this._onTouchMove):(Iv(gm,"dragend",this),Iv(bm,"dragstart",this._onDragStart));try{document.selection?ub((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(jm=!1,bm&&gm){hm("dragStarted",this,{evt:t}),this.nativeDraggable&&Iv(document,"dragover",ib);var n=this.options;!e&&Vv(gm,n.dragClass,!1),Vv(gm,n.ghostClass,!0),ob.active=this,e&&this._appendGhost(),pm({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Em){this._lastX=Em.clientX,this._lastY=Em.clientY,tb();for(var e=document.elementFromPoint(Em.clientX,Em.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Em.clientX,Em.clientY))!==t;)t=e;if(gm.parentNode[lm]._isOutsideThisEl(e),t)do{if(t[lm]){if(t[lm]._onDragOver({clientX:Em.clientX,clientY:Em.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=jv(t));nb()}},_onTouchMove:function(e){if(Lm){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=mm&&qv(mm,!0),a=mm&&o&&o.a,l=mm&&o&&o.d,s=Xm&&Fm&&em(Fm),c=(i.clientX-Lm.clientX+r.x)/(a||1)+(s?s[0]-$m[0]:0)/(a||1),u=(i.clientY-Lm.clientY+r.y)/(l||1)+(s?s[1]-$m[1]:0)/(l||1);if(!ob.active&&!jm){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(mm){o?(o.e+=c-(Om||0),o.f+=u-(Rm||0)):o={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");$v(mm,"webkitTransform",d),$v(mm,"mozTransform",d),$v(mm,"msTransform",d),$v(mm,"transform",d),Om=c,Rm=u,Em=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!mm){var e=this.options.fallbackOnBody?document.body:bm,t=Xv(gm,!0,Xm,!0,e),n=this.options;if(Xm){for(Fm=e;"static"===$v(Fm,"position")&&"none"===$v(Fm,"transform")&&Fm!==document;)Fm=Fm.parentNode;Fm!==document.body&&Fm!==document.documentElement?(Fm===document&&(Fm=Gv()),t.top+=Fm.scrollTop,t.left+=Fm.scrollLeft):Fm=Gv(),$m=em(Fm)}Vv(mm=gm.cloneNode(!0),n.ghostClass,!1),Vv(mm,n.fallbackClass,!0),Vv(mm,n.dragClass,!0),$v(mm,"transition",""),$v(mm,"transform",""),$v(mm,"box-sizing","border-box"),$v(mm,"margin",0),$v(mm,"top",t.top),$v(mm,"left",t.left),$v(mm,"width",t.width),$v(mm,"height",t.height),$v(mm,"opacity","0.8"),$v(mm,"position",Xm?"absolute":"fixed"),$v(mm,"zIndex","100000"),$v(mm,"pointerEvents","none"),ob.ghost=mm,e.appendChild(mm),$v(mm,"transform-origin",Pm/parseInt(mm.style.width)*100+"% "+zm/parseInt(mm.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;hm("dragStart",this,{evt:e}),ob.eventCanceled?this._onDrop():(hm("setupClone",this),ob.eventCanceled||((wm=om(gm)).removeAttribute("id"),wm.draggable=!1,wm.style["will-change"]="",this._hideClone(),Vv(wm,this.options.chosenClass,!1),ob.clone=wm),n.cloneId=ub((function(){hm("clone",n),ob.eventCanceled||(n.options.removeCloneOnHide||bm.insertBefore(wm,gm),n._hideClone(),pm({sortable:n,name:"clone"}))})),!t&&Vv(gm,i.dragClass,!0),t?(Wm=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Bv(document,"mouseup",n._onDrop),Bv(document,"touchend",n._onDrop),Bv(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,gm)),Iv(document,"drop",n),$v(gm,"transform","translateZ(0)")),jm=!0,n._dragStartId=ub(n._dragStarted.bind(n,t,e)),Iv(document,"selectstart",n),Dm=!0,window.getSelection().removeAllRanges(),Pv&&$v(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,o=this.el,a=e.target,l=this.options,s=l.group,c=ob.active,u=Am===s,d=l.sort,f=Tm||c,h=this,p=!1;if(!qm){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=Wv(a,l.draggable,o,!0),L("dragOver"),ob.eventCanceled)return p;if(gm.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||h._ignoreWhileAnimating===a)return O(!1);if(Wm=!1,c&&!l.disabled&&(u?d||(r=vm!==bm):Tm===this||(this.lastPutMode=Am.checkPull(this,c,gm,e))&&s.checkPut(this,c,gm,e))){if(i="vertical"===this._getDirection(e,a),t=Xv(gm),L("dragOverValid"),ob.eventCanceled)return p;if(r)return vm=bm,E(),this._hideClone(),L("revert"),ob.eventCanceled||(ym?bm.insertBefore(gm,ym):bm.appendChild(gm)),O(!0);var g=Jv(o,l.draggable);if(!g||function(e,t,n){var r=Xv(Jv(n.el,n.options.draggable)),i=am(n.el,n.options,mm),o=10;return t?e.clientX>i.right+o||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+o||e.clientX>r.right&&e.clientY>r.top}(e,i,this)&&!g.animated){if(g===gm)return O(!1);if(g&&o===e.target&&(a=g),a&&(n=Xv(a)),!1!==ab(bm,o,gm,t,a,n,e,!!a))return E(),g&&g.nextSibling?o.insertBefore(gm,g.nextSibling):o.appendChild(gm),vm=o,R(),O(!0)}else if(g&&function(e,t,n){var r=Xv(Kv(n.el,0,n.options,!0)),i=am(n.el,n.options,mm),o=10;return t?e.clientX<i.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<i.top-o||e.clientY<r.bottom&&e.clientX<r.left}(e,i,this)){var v=Kv(o,0,l,!0);if(v===gm)return O(!1);if(n=Xv(a=v),!1!==ab(bm,o,gm,t,a,n,e,!1))return E(),o.insertBefore(gm,v),vm=o,R(),O(!0)}else if(a.parentNode===o){n=Xv(a);var m,b,y,_=gm.parentNode!==o,w=!function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return r===a||i===l||r+o/2===a+s/2}(gm.animated&&gm.toRect||t,a.animated&&a.toRect||n,i),x=i?"top":"left",k=Zv(a,"top","top")||Zv(gm,"top","top"),C=k?k.scrollTop:void 0;if(Nm!==a&&(b=n[x],Um=!1,Vm=!w&&l.invertSwap||_),m=function(e,t,n,r,i,o,a,l){var s=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!a)if(l&&Bm<c*i){if(!Um&&(1===Im?s>u+c*o/2:s<d-c*o/2)&&(Um=!0),Um)f=!0;else if(1===Im?s<u+Bm:s>d-Bm)return-Im}else if(s>u+c*(1-i)/2&&s<d-c*(1-i)/2)return function(e){return Qv(gm)<Qv(e)?1:-1}(t);if((f=f||a)&&(s<u+c*o/2||s>d-c*o/2))return s>u+c/2?1:-1;return 0}(e,a,n,i,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Vm,Nm===a),0!==m){var S=Qv(gm);do{S-=m,y=vm.children[S]}while(y&&("none"===$v(y,"display")||y===mm))}if(0===m||y===a)return O(!1);Nm=a,Im=m;var M=a.nextElementSibling,A=!1,T=ab(bm,o,gm,t,a,n,e,A=1===m);if(!1!==T)return 1!==T&&-1!==T||(A=1===T),qm=!0,setTimeout(sb,30),E(),A&&!M?o.appendChild(gm):a.parentNode.insertBefore(gm,A?M:a),k&&im(k,0,C-k.scrollTop),vm=gm.parentNode,void 0===b||Vm||(Bm=Math.abs(b-Xv(a)[x])),R(),O(!0)}if(o.contains(gm))return O(!1)}return!1}function L(l,s){hm(l,h,Cv({evt:e,isOwner:u,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:a,completed:O,onMove:function(n,r){return ab(bm,o,gm,t,n,Xv(n),e,r)},changed:R},s))}function E(){L("dragOverAnimationCapture"),h.captureAnimationState(),h!==f&&f.captureAnimationState()}function O(t){return L("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(h),h!==f&&(Vv(gm,Tm?Tm.options.ghostClass:c.options.ghostClass,!1),Vv(gm,l.ghostClass,!0)),Tm!==h&&h!==ob.active?Tm=h:h===ob.active&&Tm&&(Tm=null),f===h&&(h._ignoreWhileAnimating=a),h.animateAll((function(){L("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===gm&&!gm.animated||a===o&&!a.animated)&&(Nm=null),l.dragoverBubble||e.rootEl||a===document||(gm.parentNode[lm]._isOutsideThisEl(e.target),!t&&rb(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function R(){Cm=Qv(gm),Mm=Qv(gm,l.draggable),pm({sortable:h,name:"change",toEl:o,newIndex:Cm,newDraggableIndex:Mm,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Bv(document,"mousemove",this._onTouchMove),Bv(document,"touchmove",this._onTouchMove),Bv(document,"pointermove",this._onTouchMove),Bv(document,"dragover",rb),Bv(document,"mousemove",rb),Bv(document,"touchmove",rb)},_offUpEvents:function(){var e=this.el.ownerDocument;Bv(e,"mouseup",this._onDrop),Bv(e,"touchend",this._onDrop),Bv(e,"pointerup",this._onDrop),Bv(e,"pointercancel",this._onDrop),Bv(e,"touchcancel",this._onDrop),Bv(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;Cm=Qv(gm),Mm=Qv(gm,n.draggable),hm("drop",this,{evt:e}),vm=gm&&gm.parentNode,Cm=Qv(gm),Mm=Qv(gm,n.draggable),ob.eventCanceled||(jm=!1,Vm=!1,Um=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),db(this.cloneId),db(this._dragStartId),this.nativeDraggable&&(Bv(document,"drop",this),Bv(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Pv&&$v(document.body,"user-select",""),$v(gm,"transform",""),e&&(Dm&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),mm&&mm.parentNode&&mm.parentNode.removeChild(mm),(bm===vm||Tm&&"clone"!==Tm.lastPutMode)&&wm&&wm.parentNode&&wm.parentNode.removeChild(wm),gm&&(this.nativeDraggable&&Bv(gm,"dragend",this),lb(gm),gm.style["will-change"]="",Dm&&!jm&&Vv(gm,Tm?Tm.options.ghostClass:this.options.ghostClass,!1),Vv(gm,this.options.chosenClass,!1),pm({sortable:this,name:"unchoose",toEl:vm,newIndex:null,newDraggableIndex:null,originalEvent:e}),bm!==vm?(Cm>=0&&(pm({rootEl:vm,name:"add",toEl:vm,fromEl:bm,originalEvent:e}),pm({sortable:this,name:"remove",toEl:vm,originalEvent:e}),pm({rootEl:vm,name:"sort",toEl:vm,fromEl:bm,originalEvent:e}),pm({sortable:this,name:"sort",toEl:vm,originalEvent:e})),Tm&&Tm.save()):Cm!==km&&Cm>=0&&(pm({sortable:this,name:"update",toEl:vm,originalEvent:e}),pm({sortable:this,name:"sort",toEl:vm,originalEvent:e})),ob.active&&(null!=Cm&&-1!==Cm||(Cm=km,Mm=Sm),pm({sortable:this,name:"end",toEl:vm,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){hm("nulling",this),bm=gm=vm=mm=ym=wm=_m=xm=Lm=Em=Dm=Cm=Mm=km=Sm=Nm=Im=Tm=Am=ob.dragged=ob.ghost=ob.clone=ob.active=null,Ym.forEach((function(e){e.checked=!0})),Ym.length=Om=Rm=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":gm&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)Wv(e=n[r],o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||cb(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var i=r.children[t];Wv(i,this.options.draggable,r,!1)&&(n[e]=i)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Wv(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=dm.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&eb(n)},destroy:function(){hm("destroy",this);var e=this.el;e[lm]=null,Bv(e,"mousedown",this._onTapStart),Bv(e,"touchstart",this._onTapStart),Bv(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Bv(e,"dragover",this),Bv(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Hm.splice(Hm.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!xm){if(hm("hideClone",this),ob.eventCanceled)return;$v(wm,"display","none"),this.options.removeCloneOnHide&&wm.parentNode&&wm.parentNode.removeChild(wm),xm=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(xm){if(hm("showClone",this),ob.eventCanceled)return;gm.parentNode!=bm||this.options.group.revertClone?ym?bm.insertBefore(wm,ym):bm.appendChild(wm):bm.insertBefore(wm,gm),this.options.group.revertClone&&this.animate(gm,wm),$v(wm,"display",""),xm=!1}}else this._hideClone()}},Gm&&Iv(document,"touchmove",(function(e){(ob.active||jm)&&e.cancelable&&e.preventDefault()})),ob.utils={on:Iv,off:Bv,css:$v,find:Yv,is:function(e,t){return!!Wv(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:rm,closest:Wv,toggleClass:Vv,clone:om,index:Qv,nextTick:ub,cancelNextTick:db,detectDirection:Qm,getChild:Kv,expando:lm},ob.get=function(e){return e[lm]},ob.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(ob.utils=Cv(Cv({},ob.utils),e.utils)),dm.mount(e)}))},ob.create=function(e,t){return new ob(e,t)},ob.version="1.15.6";var fb,hb,pb,gb,vb,mb,bb=[],yb=!1;function _b(){bb.forEach((function(e){clearInterval(e.pid)})),bb=[]}function wb(){clearInterval(mb)}var xb,kb=rm((function(e,t,n,r){if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=Gv(),u=!1;hb!==n&&(hb=n,_b(),fb=t.scroll,i=t.scrollFn,!0===fb&&(fb=tm(n,!0)));var d=0,f=fb;do{var h=f,p=Xv(h),g=p.top,v=p.bottom,m=p.left,b=p.right,y=p.width,_=p.height,w=void 0,x=void 0,k=h.scrollWidth,C=h.scrollHeight,S=$v(h),M=h.scrollLeft,A=h.scrollTop;h===c?(w=y<k&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),x=_<C&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(w=y<k&&("auto"===S.overflowX||"scroll"===S.overflowX),x=_<C&&("auto"===S.overflowY||"scroll"===S.overflowY));var T=w&&(Math.abs(b-o)<=l&&M+y<k)-(Math.abs(m-o)<=l&&!!M),L=x&&(Math.abs(v-a)<=l&&A+_<C)-(Math.abs(g-a)<=l&&!!A);if(!bb[d])for(var E=0;E<=d;E++)bb[E]||(bb[E]={});bb[d].vx==T&&bb[d].vy==L&&bb[d].el===h||(bb[d].el=h,bb[d].vx=T,bb[d].vy=L,clearInterval(bb[d].pid),0==T&&0==L||(u=!0,bb[d].pid=setInterval(function(){r&&0===this.layer&&ob.active._onTouchMove(vb);var t=bb[this.layer].vy?bb[this.layer].vy*s:0,n=bb[this.layer].vx?bb[this.layer].vx*s:0;"function"==typeof i&&"continue"!==i.call(ob.dragged.parentNode[lm],n,t,e,vb,bb[this.layer].el)||im(bb[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=tm(f,!1)));yb=u}}),30),Cb=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||i;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Sb(){}function Mb(){}Sb.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Kv(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Cb},Av(Sb,{pluginName:"revertOnSpill"}),Mb.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:Cb},Av(Mb,{pluginName:"removeOnSpill"}),ob.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?Iv(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Iv(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Iv(document,"touchmove",this._handleFallbackAutoScroll):Iv(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Bv(document,"dragover",this._handleAutoScroll):(Bv(document,"pointermove",this._handleFallbackAutoScroll),Bv(document,"touchmove",this._handleFallbackAutoScroll),Bv(document,"mousemove",this._handleFallbackAutoScroll)),wb(),_b(),clearTimeout(Hv),Hv=void 0},nulling:function(){vb=hb=fb=yb=mb=pb=gb=null,bb.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(r,i);if(vb=e,t||this.options.forceAutoScrollFallback||Ov||Ev||Pv){kb(e,this.options,o,t);var a=tm(o,!0);!yb||mb&&r===pb&&i===gb||(mb&&wb(),mb=setInterval((function(){var o=tm(document.elementFromPoint(r,i),!0);o!==a&&(a=o,_b()),kb(e,n.options,o,t)}),10),pb=r,gb=i)}else{if(!this.options.bubbleScroll||tm(o,!0)===Gv())return void _b();kb(e,this.options,tm(o,!1),!1)}}},Av(e,{pluginName:"scroll",initializeByDefault:!0})}),ob.mount(Mb,Sb);const Ab="dnd-drag-handle",Tb="dnd-drag-enabled";ob.mount(new function(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;xb=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,i=e.activeSortable,o=e.changed,a=e.cancel;if(i.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var c=xb;!1!==r(n)?(Vv(n,s.swapClass,!0),xb=n):xb=null,c&&c!==xb&&Vv(c,s.swapClass,!1)}o(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,o=this.options;xb&&Vv(xb,o.swapClass,!1),xb&&(o.swap||n&&n.options.swap)&&r!==xb&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),function(e,t){var n,r,i=e.parentNode,o=t.parentNode;if(!i||!o||i.isEqualNode(t)||o.isEqualNode(e))return;n=Qv(e),r=Qv(t),i.isEqualNode(o)&&n<r&&r++;i.insertBefore(t,i.children[n]),o.insertBefore(e,o.children[r])}(r,xb),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){xb=null}},Av(e,{pluginName:"swap",eventProperties:function(){return{swapItem:xb}}})});var Lb="styles_grid__bgsAQ";const Eb=({className:e,options:t,kind:n="default",children:r,...i})=>{const o=s(null);return((e,t)=>{u((()=>{if(e.current){const n=ob.create(e.current,{animation:150,handle:`.${Ab}`,draggable:`.${Tb}`,...t});return()=>{n.destroy()}}}),[e,t])})(o,h((()=>({...t,..."swap"===n&&{swap:!0,swapClass:"dnd-drag-swap-highlight"}})),[t,n])),ln("div",{ref:o,className:j(Lb,e),...i,children:r})},Ob=({className:e})=>ln(cn,{id:sn.draggable,className:e});var Rb="styles_drag-handle__2DC4-";const Pb=({className:e})=>ln("div",{className:j(Rb,Ab,e),children:ln(Ob,{})});var zb="styles_grid-item__-kGp3",Db="styles_grid-item-content__hZ5TS",Nb="styles_grid-item-handle__OyO7A";const Ib=({className:e,children:t,dndEnabled:n=!1,...r})=>ln("div",{...r,className:j(zb,{[Tb]:n},e),children:[ln("div",{className:Db,children:t}),n&&ln(Pb,{className:Nb})]}),Bb=({locale:e,setLocale:t,availableLocales:n})=>{const r=n||Object.keys(io),i=[...new Set(r)].map((e=>({key:e,value:io[e].full})));return ln(Di,{size:"s",menuTrigger:({isOpened:t,onClick:n})=>ln(bn,{style:"ghost",size:"s",text:io[e]&&io[e].short||io.en.short,isExpanded:t,onClick:n}),children:ln(Di.Section,{children:i.map((({key:n,value:r})=>ln(Di.ItemWithCheckmark,{onClick:()=>{t(n)},isChecked:e===n,children:r},n)))})})},Fb={light:sn.lineShapesSun,dark:sn.lineShapesMoon,auto:sn.lineShapesThemeAuto},jb=({theme:e,toggleTheme:t})=>ln(mn,{onClick:t,style:"ghost",icon:Fb[e],size:"s"});var Wb="styles_label__IW9cn",Hb="styles_wrapper__elS6G",Ub="styles_icon__GXXnU",Vb="styles_text__fEQgL";const $b=e=>{const{icon:t,children:n,tooltip:r,className:i,style:o="secondary",...a}=e,l=ln("div",{className:j(Hb,i),children:[ln(cn,{className:Ub,id:t}),ln(dn,{className:Vb,type:"ui",size:"s",bold:!0,children:n})]});return ln("div",r?{className:Wb,...a,"data-style":o,children:ln($r,{tooltipText:r,children:l})}:{className:Wb,...a,"data-style":o,children:l})};var qb=sy(),Yb=e=>iy(e,qb),Gb=sy();Yb.write=e=>iy(e,Gb);var Xb=sy();Yb.onStart=e=>iy(e,Xb);var Zb=sy();Yb.onFrame=e=>iy(e,Zb);var Kb=sy();Yb.onFinish=e=>iy(e,Kb);var Jb=[];Yb.setTimeout=(e,t)=>{const n=Yb.now()+t,r=()=>{const e=Jb.findIndex((e=>e.cancel==r));~e&&Jb.splice(e,1),ny-=~e?1:0},i={time:n,handler:e,cancel:r};return Jb.splice(Qb(n),0,i),ny+=1,oy(),i};var Qb=e=>~(~Jb.findIndex((t=>t.time>e))||~Jb.length);Yb.cancel=e=>{Xb.delete(e),Zb.delete(e),Kb.delete(e),qb.delete(e),Gb.delete(e)},Yb.sync=e=>{ry=!0,Yb.batchedUpdates(e),ry=!1},Yb.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,Yb.onStart(n)}return r.handler=e,r.cancel=()=>{Xb.delete(n),t=null},r};var ey="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Yb.use=e=>ey=e,Yb.now="undefined"!=typeof performance?()=>performance.now():Date.now,Yb.batchedUpdates=e=>e(),Yb.catch=console.error,Yb.frameLoop="always",Yb.advance=()=>{"demand"!==Yb.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):ly()};var ty=-1,ny=0,ry=!1;function iy(e,t){ry?(t.delete(e),e(0)):(t.add(e),oy())}function oy(){ty<0&&(ty=0,"demand"!==Yb.frameLoop&&ey(ay))}function ay(){~ty&&(ey(ay),Yb.batchedUpdates(ly))}function ly(){const e=ty;ty=Yb.now();const t=Qb(ty);t&&(cy(Jb.splice(0,t),(e=>e.handler())),ny-=t),ny?(Xb.flush(),qb.flush(e?Math.min(64,ty-e):16.667),Zb.flush(),Gb.flush(),Kb.flush()):ty=-1}function sy(){let e=new Set,t=e;return{add(n){ny+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(ny-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,ny-=t.size,cy(t,(t=>t(n)&&e.add(t))),ny+=e.size,t=e)}}}function cy(e,t){e.forEach((e=>{try{t(e)}catch(e){Yb.catch(e)}}))}var uy=Object.defineProperty,dy={};function fy(){}((e,t)=>{for(var n in t)uy(e,n,{get:t[n],enumerable:!0})})(dy,{assign:()=>My,colors:()=>ky,createStringInterpolator:()=>yy,skipAnimation:()=>Cy,to:()=>_y,willAdvance:()=>Sy});var hy={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function py(e,t){if(hy.arr(e)){if(!hy.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var gy=(e,t)=>e.forEach(t);function vy(e,t,n){if(hy.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var my=e=>hy.und(e)?[]:hy.arr(e)?e:[e];function by(e,t){if(e.size){const n=Array.from(e);e.clear(),gy(n,t)}}var yy,_y,wy=(e,...t)=>by(e,(e=>e(...t))),xy=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ky=null,Cy=!1,Sy=fy,My=e=>{e.to&&(_y=e.to),e.now&&(Yb.now=e.now),void 0!==e.colors&&(ky=e.colors),null!=e.skipAnimation&&(Cy=e.skipAnimation),e.createStringInterpolator&&(yy=e.createStringInterpolator),e.requestAnimationFrame&&Yb.use(e.requestAnimationFrame),e.batchedUpdates&&(Yb.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Sy=e.willAdvance),e.frameLoop&&(Yb.frameLoop=e.frameLoop)},Ay=new Set,Ty=[],Ly=[],Ey=0,Oy={get idle(){return!Ay.size&&!Ty.length},start(e){Ey>e.priority?(Ay.add(e),Yb.onStart(Ry)):(Py(e),Yb(Dy))},advance:Dy,sort(e){if(Ey)Yb.onFrame((()=>Oy.sort(e)));else{const t=Ty.indexOf(e);~t&&(Ty.splice(t,1),zy(e))}},clear(){Ty=[],Ay.clear()}};function Ry(){Ay.forEach(Py),Ay.clear(),Yb(Dy)}function Py(e){Ty.includes(e)||zy(e)}function zy(e){Ty.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Ty,(t=>t.priority>e.priority)),0,e)}function Dy(e){const t=Ly;for(let n=0;n<Ty.length;n++){const r=Ty[n];Ey=r.priority,r.idle||(Sy(r),r.advance(e),r.idle||t.push(r))}return Ey=0,(Ly=Ty).length=0,(Ty=t).length>0}var Ny={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Iy="[-+]?\\d*\\.?\\d+",By=Iy+"%";function Fy(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var jy=new RegExp("rgb"+Fy(Iy,Iy,Iy)),Wy=new RegExp("rgba"+Fy(Iy,Iy,Iy,Iy)),Hy=new RegExp("hsl"+Fy(Iy,By,By)),Uy=new RegExp("hsla"+Fy(Iy,By,By,Iy)),Vy=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,$y=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,qy=/^#([0-9a-fA-F]{6})$/,Yy=/^#([0-9a-fA-F]{8})$/;function Gy(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Xy(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Gy(i,r,e+1/3),a=Gy(i,r,e),l=Gy(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Zy(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ky(e){return(parseFloat(e)%360+360)%360/360}function Jy(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Qy(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function e_(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=qy.exec(e))?parseInt(t[1]+"ff",16)>>>0:ky&&void 0!==ky[e]?ky[e]:(t=jy.exec(e))?(Zy(t[1])<<24|Zy(t[2])<<16|Zy(t[3])<<8|255)>>>0:(t=Wy.exec(e))?(Zy(t[1])<<24|Zy(t[2])<<16|Zy(t[3])<<8|Jy(t[4]))>>>0:(t=Vy.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Yy.exec(e))?parseInt(t[1],16)>>>0:(t=$y.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Hy.exec(e))?(255|Xy(Ky(t[1]),Qy(t[2]),Qy(t[3])))>>>0:(t=Uy.exec(e))?(Xy(Ky(t[1]),Qy(t[2]),Qy(t[3]))|Jy(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var t_=(e,t,n)=>{if(hy.fun(e))return e;if(hy.arr(e))return t_({range:e,output:t,extrapolate:n});if(hy.str(e.output[0]))return yy(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,l,s){let c=s?s(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,o[t],o[t+1],i[t],i[t+1],s,a,l,r.map)}};var n_=Symbol.for("FluidValue.get"),r_=Symbol.for("FluidValue.observers"),i_=e=>Boolean(e&&e[n_]),o_=e=>e&&e[n_]?e[n_]():e,a_=e=>e[r_]||null;function l_(e,t){const n=e[r_];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var s_=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");c_(this,e)}},c_=(e,t)=>h_(e,n_,t);function u_(e,t){if(e[n_]){let n=e[r_];n||h_(e,r_,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function d_(e,t){const n=e[r_];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[r_]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var f_,h_=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),p_=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,g_=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,v_=new RegExp(`(${p_.source})(%|[a-z]+)`,"i"),m_=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,b_=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,y_=e=>{const[t,n]=__(e);if(!t||xy())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&b_.test(n)?y_(n):n||e},__=e=>{const t=b_.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},w_=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,x_=e=>{f_||(f_=ky?new RegExp(`(${Object.keys(ky).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>o_(e).replace(b_,y_).replace(g_,e_).replace(f_,e_))),n=t.map((e=>e.match(p_).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),i=r.map((t=>t_({...e,output:t})));return e=>{const n=!v_.test(t[0])&&t.find((e=>v_.test(e)))?.replace(p_,"");let r=0;return t[0].replace(p_,(()=>`${i[r++](e)}${n||""}`)).replace(m_,w_)}},k_="react-spring: ",C_=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${k_}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},S_=C_(console.warn);var M_=C_(console.warn);function A_(e){return hy.str(e)&&("#"==e[0]||/\d/.test(e)||!xy()&&b_.test(e)||e in(ky||{}))}var T_=xy()?x:k;function L_(){const e=w()[1],t=(()=>{const e=C(!1);return T_((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var E_=e=>x(e,O_),O_=[];function R_(e){const t=C(void 0);return x((()=>{t.current=e})),t.current}var P_=Symbol.for("Animated:node"),z_=e=>e&&e[P_],D_=(e,t)=>{return n=e,r=P_,i=t,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},N_=e=>e&&e[P_]&&e[P_].getPayload(),I_=class{constructor(){D_(this,this)}getPayload(){return this.payload||[]}},B_=class e extends I_{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,hy.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return hy.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,hy.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},F_=class e extends B_{constructor(e){super(0),this._string=null,this._toString=t_({output:[e,e]})}static create(t){return new e(t)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(hy.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=t_({output:[this.getValue(),e]})),this._value=0,super.reset()}},j_={dependencies:null},W_=class extends I_{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return vy(this.source,((n,r)=>{var i;(i=n)&&i[P_]===i?t[r]=n.getValue(e):i_(n)?t[r]=o_(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&gy(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return vy(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){j_.dependencies&&i_(e)&&j_.dependencies.add(e);const t=N_(e);t&&gy(t,(e=>this.add(e)))}},H_=class e extends W_{constructor(e){super(e)}static create(t){return new e(t)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(U_)),!0)}};function U_(e){return(A_(e)?F_:B_).create(e)}function V_(e){const t=z_(e);return t?t.constructor:hy.arr(e)?H_:A_(e)?F_:B_}var $_=(e,t)=>{const n=!hy.fun(e)||e.prototype&&e.prototype.isReactComponent;return S(((r,i)=>{const o=C(null),a=n&&M((e=>{o.current=function(e,t){e&&(hy.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[l,s]=function(e,t){const n=new Set;j_.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new W_(e),j_.dependencies=null,[e,n]}(r,t),c=L_(),u=()=>{const e=o.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&c()},d=new q_(u,s),f=C(void 0);T_((()=>(f.current=d,gy(s,(e=>u_(e,d))),()=>{f.current&&(gy(f.current.deps,(e=>d_(e,f.current))),Yb.cancel(f.current.update))}))),x(u,[]),E_((()=>()=>{const e=f.current;gy(e.deps,(t=>d_(t,e)))}));const h=t.getComponentProps(l.getValue());return _.createElement(e,{...h,ref:a})}))},q_=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&Yb.write(this.update)}};var Y_=Symbol.for("AnimatedComponent"),G_=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new W_(e),getComponentProps:r=e=>e}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=X_(e)||"Anonymous";return(e=hy.str(e)?o[e]||(o[e]=$_(e,i)):e[Y_]||(e[Y_]=$_(e,i))).displayName=`Animated(${t})`,e};return vy(e,((t,n)=>{hy.arr(e)&&(n=X_(t)),o[n]=o(t)})),{animated:o}},X_=e=>hy.str(e)?e:e&&hy.str(e.displayName)?e.displayName:hy.fun(e)&&e.name||null;function Z_(e,...t){return hy.fun(e)?e(...t):e}var K_=(e,t)=>!0===e||!!(t&&e&&(hy.fun(e)?e(t):my(e).includes(t))),J_=(e,t)=>hy.obj(e)?t&&e[t]:e,Q_=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,ew=e=>e,tw=(e,t=ew)=>{let n=nw;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);hy.und(n)||(r[i]=n)}return r},nw=["config","onProps","onStart","onChange","onPause","onResume","onRest"],rw={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function iw(e){const t=function(e){const t={};let n=0;if(vy(e,((e,r)=>{rw[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return vy(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function ow(e){return e=o_(e),hy.arr(e)?e.map(ow):A_(e)?dy.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function aw(e){for(const t in e)return!0;return!1}function lw(e){return hy.fun(e)||hy.arr(e)&&hy.obj(e[0])}function sw(e,t){e.ref?.delete(e),t?.delete(e)}function cw(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var uw={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},dw={...uw.default,mass:1,damping:1,easing:e=>e,clamp:!1},fw=class{constructor(){this.velocity=0,Object.assign(this,dw)}};function hw(e,t){if(hy.und(t.decay)){const n=!hy.und(t.tension)||!hy.und(t.friction);!n&&hy.und(t.frequency)&&hy.und(t.damping)&&hy.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var pw=[],gw=class{constructor(){this.changed=!1,this.values=pw,this.toValues=null,this.fromValues=pw,this.config=new fw,this.immediate=!1}};function vw(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise(((a,l)=>{let s,c,u=K_(n.cancel??r?.cancel,t);if(u)h();else{hy.und(n.pause)||(i.paused=K_(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||K_(e,t)),s=Z_(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(c),c.cancel(),s=c.time-Yb.now()}function f(){s>0&&!dy.skipAnimation?(i.delayed=!0,c=Yb.setTimeout(h,s),i.pauseQueue.add(d),i.timeouts.add(c)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(c),e<=(i.cancelId||0)&&(u=!0);try{o.start({...n,callId:e,cancel:u},a)}catch(e){l(e)}}}))}var mw=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?_w(e.get()):t.every((e=>e.noop))?bw(e.get()):yw(e.get(),t.every((e=>e.finished))),bw=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),yw=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),_w=e=>({value:e,cancelled:!0,finished:!1});function ww(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:l,promise:s}=n;return o||e!==l||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=tw(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const f=new Promise(((e,t)=>(u=e,d=t))),h=e=>{const t=i<=(n.cancelId||0)&&_w(r)||i!==n.asyncId&&yw(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{const o=new kw,a=new Cw;return(async()=>{if(dy.skipAnimation)throw xw(n),a.result=yw(r,!1),d(a),a;h(o);const l=hy.obj(e)?{...e}:{...t,to:e};l.parentId=i,vy(c,((e,t)=>{hy.und(l[t])&&(l[t]=e)}));const s=await r.start(l);return h(o),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),s})()};let g;if(dy.skipAnimation)return xw(n),yw(r,!1);try{let t;t=hy.arr(e)?(async e=>{for(const t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(u),f]),g=yw(r.get(),!0,!1)}catch(e){if(e instanceof kw)g=e.result;else{if(!(e instanceof Cw))throw e;g=e.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?l:void 0,n.promise=o?s:void 0)}return hy.fun(a)&&Yb.batchedUpdates((()=>{a(g,r,r.item)})),g})():s}function xw(e,t){by(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var kw=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Cw=class extends Error{constructor(){super("SkipAnimationSignal")}},Sw=e=>e instanceof Aw,Mw=1,Aw=class extends s_{constructor(){super(...arguments),this.id=Mw++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=z_(this);return e&&e.getValue()}to(...e){return dy.to(this,e)}interpolate(...e){return S_(`${k_}The "interpolate" function is deprecated in v9 (use "to" instead)`),dy.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){l_(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Oy.sort(this),l_(this,{type:"priority",parent:this,priority:e})}},Tw=Symbol.for("SpringPhase"),Lw=e=>(1&e[Tw])>0,Ew=e=>(2&e[Tw])>0,Ow=e=>(4&e[Tw])>0,Rw=(e,t)=>t?e[Tw]|=3:e[Tw]&=-3,Pw=(e,t)=>t?e[Tw]|=4:e[Tw]&=-5,zw=class extends Aw{constructor(e,t){if(super(),this.animation=new gw,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!hy.und(e)||!hy.und(t)){const n=hy.obj(e)?{...e}:{...t,from:e};hy.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ew(this)||this._state.asyncTo)||Ow(this)}get goal(){return o_(this.animation.to)}get velocity(){const e=z_(this);return e instanceof B_?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Lw(this)}get isAnimating(){return Ew(this)}get isPaused(){return Ow(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,a=N_(r.to);!a&&i_(r.to)&&(i=my(o_(r.to))),r.values.forEach(((l,s)=>{if(l.done)return;const c=l.constructor==F_?1:a?a[s].lastPosition:i[s];let u=r.immediate,d=c;if(!u){if(d=l.lastPosition,o.tension<=0)return void(l.done=!0);let t=l.elapsedTime+=e;const n=r.fromValues[s],i=null!=l.v0?l.v0:l.v0=hy.arr(o.velocity)?o.velocity[s]:o.velocity;let a;const f=o.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(hy.und(o.duration))if(o.decay){const e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),u=Math.abs(l.lastPosition-d)<=f,a=i*r}else{a=null==l.lastVelocity?i:l.lastVelocity;const t=o.restVelocity||f/10,r=o.clamp?0:o.bounce,s=!hy.und(r),h=n==c?l.v0>0:n<c;let p,g=!1;const v=1,m=Math.ceil(e/v);for(let e=0;e<m&&(p=Math.abs(a)>t,p||(u=Math.abs(c-d)<=f,!u));++e){s&&(g=d==c||d>c==h,g&&(a=-a*r,d=c));a+=(1e-6*-o.tension*(d-c)+.001*-o.friction*a)/o.mass*v,d+=a*v}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,l.durationProgress>0&&(l.elapsedTime=o.duration*l.durationProgress,t=l.elapsedTime+=e)),r=(o.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,l.durationProgress=r),d=n+o.easing(r)*(c-n),a=(d-l.lastPosition)/e,u=1==r}l.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[s].done&&(u=!1),u?l.done=!0:t=!1,l.setValue(d,o.round)&&(n=!0)}));const l=z_(this),s=l.getValue();if(t){const e=o_(r.to);s===e&&!n||o.decay?n&&o.decay&&this._onChange(s):(l.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(s)}set(e){return Yb.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ew(this)){const{to:e,config:t}=this.animation;Yb.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return hy.und(e)?(n=this.queue||[],this.queue=[]):n=[hy.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>mw(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),xw(this._state,e&&this._lastCallId),Yb.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=hy.obj(n)?n[t]:n,(null==n||lw(n))&&(n=void 0),r=hy.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return Lw(this)||(e.reverse&&([n,r]=[r,n]),r=o_(r),hy.und(r)?z_(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,tw(e,((e,t)=>/^on/.test(t)?J_(e,n):e))),Ww(this,e,"onProps"),Hw(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return vw(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{Ow(this)||(Pw(this,!0),wy(o.pauseQueue),Hw(this,"onPause",yw(this,Dw(this,this.animation.to)),this))},resume:()=>{Ow(this)&&(Pw(this,!1),Ew(this)&&this._resume(),wy(o.resumeQueue),Hw(this,"onResume",yw(this,Dw(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=Nw(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(_w(this));const r=!hy.und(e.to),i=!hy.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(_w(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:l}=this,{to:s,from:c}=l;let{to:u=s,from:d=c}=e;!i||r||t.default&&!hy.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const f=!py(d,c);f&&(l.from=d),d=o_(d);const h=!py(u,s);h&&this._focus(u);const p=lw(t.to),{config:g}=l,{decay:v,velocity:m}=g;(r||i)&&(g.velocity=0),t.config&&!p&&function(e,t,n){n&&(hw(n={...n},t),t={...n,...t}),hw(e,t),Object.assign(e,t);for(const t in dw)null==e[t]&&(e[t]=dw[t]);let{frequency:r,damping:i}=e;const{mass:o}=e;hy.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(g,Z_(t.config,o),t.config!==a.config?Z_(a.config,o):void 0);let b=z_(this);if(!b||hy.und(u))return n(yw(this,!0));const y=hy.und(t.reset)?i&&!t.default:!hy.und(d)&&K_(t.reset,o),_=y?d:this.get(),w=ow(u),x=hy.num(w)||hy.arr(w)||A_(w),k=!p&&(!x||K_(a.immediate||t.immediate,o));if(h){const e=V_(u);if(e!==b.constructor){if(!k)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(w)}}const C=b.constructor;let S=i_(u),M=!1;if(!S){const e=y||!Lw(this)&&f;(h||e)&&(M=py(ow(_),w),S=!M),(py(l.immediate,k)||k)&&py(g.decay,v)&&py(g.velocity,m)||(S=!0)}if(M&&Ew(this)&&(l.changed&&!y?S=!0:S||this._stop(s)),!p&&((S||i_(s))&&(l.values=b.getPayload(),l.toValues=i_(u)?null:C==F_?[1]:my(w)),l.immediate!=k&&(l.immediate=k,k||y||this._set(s)),S)){const{onRest:e}=l;gy(jw,(e=>Ww(this,t,e)));const r=yw(this,Dw(this,s));wy(this._pendingCalls,r),this._pendingCalls.add(n),l.changed&&Yb.batchedUpdates((()=>{l.changed=!y,e?.(r,this),y?Z_(a.onRest,r):l.onStart?.(r,this)}))}y&&this._set(_),p?n(ww(t.to,t,this._state,this)):S?this._start():Ew(this)&&!h?this._pendingCalls.add(n):n(bw(_))}_focus(e){const t=this.animation;e!==t.to&&(a_(this)&&this._detach(),t.to=e,a_(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;i_(t)&&(u_(t,this),Sw(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;i_(e)&&d_(e,this)}_set(e,t=!0){const n=o_(e);if(!hy.und(n)){const e=z_(this);if(!e||!py(n,e.getValue())){const r=V_(n);e&&e.constructor==r?e.setValue(n):D_(this,r.create(n)),e&&Yb.batchedUpdates((()=>{this._onChange(n,t)}))}}return z_(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Hw(this,"onStart",yw(this,Dw(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Z_(this.animation.onChange,e,this)),Z_(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;z_(this).reset(o_(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),Ew(this)||(Rw(this,!0),Ow(this)||this._resume())}_resume(){dy.skipAnimation?this.finish():Oy.start(this)}_stop(e,t){if(Ew(this)){Rw(this,!1);const n=this.animation;gy(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),l_(this,{type:"idle",parent:this});const r=t?_w(this.get()):yw(this.get(),Dw(this,e??n.to));wy(this._pendingCalls,r),n.changed&&(n.changed=!1,Hw(this,"onRest",r,this))}}};function Dw(e,t){const n=ow(t);return py(ow(e.get()),n)}function Nw(e,t=e.loop,n=e.to){const r=Z_(t);if(r){const i=!0!==r&&iw(r),o=(i||e).reverse,a=!i||i.reset;return Iw({...e,loop:t,default:!1,pause:void 0,to:!o||lw(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function Iw(e){const{to:t,from:n}=e=iw(e),r=new Set;return hy.obj(t)&&Fw(t,r),hy.obj(n)&&Fw(n,r),e.keys=r.size?Array.from(r):null,e}function Bw(e){const t=Iw(e);return hy.und(t.default)&&(t.default=tw(t)),t}function Fw(e,t){vy(e,((e,n)=>null!=e&&t.add(n)))}var jw=["onStart","onRest","onChange","onPause","onResume"];function Ww(e,t,n){e.animation[n]=t[n]!==Q_(t,n)?J_(t[n],e.key):void 0}function Hw(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Uw=["onStart","onChange","onRest"],Vw=1,$w=class{constructor(e,t){this.id=Vw++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];hy.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Iw(e)),this}start(e){let{queue:t}=this;return e?t=my(e).map(Iw):this.queue=[],this._flush?this._flush(this,t):(Jw(this,t),qw(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;gy(my(t),(t=>n[t].stop(!!e)))}else xw(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(hy.und(e))this.start({pause:!0});else{const t=this.springs;gy(my(e),(e=>t[e].pause()))}return this}resume(e){if(hy.und(e))this.start({pause:!1});else{const t=this.springs;gy(my(e),(e=>t[e].resume()))}return this}each(e){vy(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,by(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&by(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,by(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}Yb.onFrame(this._onFrame)}};function qw(e,t){return Promise.all(t.map((t=>Yw(e,t)))).then((t=>mw(e,t)))}async function Yw(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:l,onResolve:s}=t,c=hy.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const u=hy.arr(i)||hy.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):gy(Uw,(n=>{const r=t[n];if(hy.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,wy(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),h=!0===t.cancel||!0===Q_(t,"cancel");(u||h&&d.asyncId)&&f.push(vw(++e._lastAsyncId,{props:t,state:d,actions:{pause:fy,resume:fy,start(t,n){h?(xw(d,e._lastAsyncId),n(_w(e))):(t.onRest=l,n(ww(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const p=mw(e,await Promise.all(f));if(a&&p.finished&&(!n||!p.noop)){const n=Nw(t,a,i);if(n)return Jw(e,[n]),Yw(e,n,!0)}return s&&Yb.batchedUpdates((()=>s(p,e,e.item))),p}function Gw(e,t){const n={...e.springs};return t&&gy(my(t),(e=>{hy.und(e.keys)&&(e=Iw(e)),hy.obj(e.to)||(e={...e,to:void 0}),Kw(n,e,(e=>Zw(e)))})),Xw(e,n),n}function Xw(e,t){vy(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,u_(t,e))}))}function Zw(e,t){const n=new zw;return n.key=e,t&&u_(n,t),n}function Kw(e,t,n){t.keys&&gy(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function Jw(e,t){gy(t,(t=>{Kw(e.springs,t,(t=>Zw(t,e)))}))}var Qw=_.createContext({pause:!1,immediate:!1}),ex=()=>{const e=[],t=function(t){M_(`${k_}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return gy(e,((e,i)=>{if(hy.und(t))r.push(e.start());else{const o=n(t,e,i);o&&r.push(e.start(o))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return gy(e,(e=>e.pause(...arguments))),this},t.resume=function(){return gy(e,(e=>e.resume(...arguments))),this},t.set=function(t){gy(e,((e,n)=>{const r=hy.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return gy(e,((e,r)=>{if(hy.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}})),n},t.stop=function(){return gy(e,(e=>e.stop(...arguments))),this},t.update=function(t){return gy(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return hy.fun(e)?e(n,t):e};return t._getProps=n,t};function tx(e,t){const n=hy.fun(e),[[r],i]=function(e,t,n){const r=hy.fun(t)&&t;r&&!n&&(n=[]);const i=A((()=>r||3==arguments.length?ex():void 0),[]),o=C(0),a=L_(),l=A((()=>({ctrls:[],queue:[],flush(e,t){const n=Gw(e,t);return o.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?qw(e,t):new Promise((r=>{Xw(e,n),l.queue.push((()=>{r(qw(e,t))})),a()}))}})),[]),s=C([...l.ctrls]),c=C([]),u=R_(e)||0;function d(e,n){for(let i=e;i<n;i++){const e=s.current[i]||(s.current[i]=new $w(null,l.flush)),n=r?r(i,e):t[i];n&&(c.current[i]=Bw(n))}}A((()=>{gy(s.current.slice(e,u),(e=>{sw(e,i),e.stop(!0)})),s.current.length=e,d(u,e)}),[e]),A((()=>{d(0,Math.min(u,e))}),n);const f=s.current.map(((e,t)=>Gw(e,c.current[t]))),h=T(Qw),p=R_(h),g=h!==p&&aw(h);T_((()=>{o.current++,l.ctrls=s.current;const{queue:e}=l;e.length&&(l.queue=[],gy(e,(e=>e()))),gy(s.current,((e,t)=>{i?.add(e),g&&e.start({default:h});const n=c.current[t];n&&(cw(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),E_((()=>()=>{gy(l.ctrls,(e=>e.stop(!0)))}));const v=f.map((e=>({...e})));return i?[v,i]:v}(1,n?e:[e],n?[]:t);return n||2==arguments.length?[r,i]:r}function nx(e,t,n){const r=hy.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:l=!0,exitBeforeEnter:s=!1,onDestroyed:c,ref:u,config:d}=r?r():t,f=A((()=>r||3==arguments.length?ex():void 0),[]),h=my(e),p=[],g=C(null),v=i?null:g.current;T_((()=>{g.current=p})),E_((()=>(gy(p,(e=>{f?.add(e.ctrl),e.ctrl.ref=f})),()=>{gy(g.current,(e=>{e.expired&&clearTimeout(e.expirationId),sw(e.ctrl,f),e.ctrl.stop(!0)}))})));const m=function(e,{key:t,keys:n=t},r){if(null===n){const t=new Set;return e.map((e=>{const n=r&&r.find((n=>n.item===e&&"leave"!==n.phase&&!t.has(n)));return n?(t.add(n),n.key):rx++}))}return hy.und(n)?e:hy.fun(n)?e.map(n):my(n)}(h,r?r():t,v),b=i&&g.current||[];T_((()=>gy(b,(({ctrl:e,item:t,key:n})=>{sw(e,f),Z_(c,t,n)}))));const y=[];if(v&&gy(v,((e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=y[t]=m.indexOf(e.key))&&(p[t]=e)})),gy(h,((e,t)=>{p[t]||(p[t]={key:m[t],item:e,phase:"mount",ctrl:new $w},p[t].ctrl.item=e)})),y.length){let e=-1;const{leave:n}=r?r():t;gy(y,((t,r)=>{const i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)}))}hy.fun(o)&&p.sort(((e,t)=>o(e.item,t.item)));let w=-a;const x=L_(),k=tw(t),S=new Map,M=C(new Map),L=C(!1);gy(p,((e,n)=>{const i=e.key,o=e.phase,c=r?r():t;let f,h;const p=Z_(c.delay||0,i);if("mount"==o)f=c.enter,h="enter";else{const e=m.indexOf(i)<0;if("leave"!=o)if(e)f=c.leave,h="leave";else{if(!(f=c.update))return;h="update"}else{if(e)return;f=c.enter,h="enter"}}if(f=Z_(f,e.item,n),f=hy.obj(f)?iw(f):{to:f},!f.config){const t=d||k.config;f.config=Z_(t,e.item,n,h)}w+=a;const b={...k,delay:p+w,ref:u,immediate:c.immediate,reset:!1,...f};if("enter"==h&&hy.und(b.from)){const i=r?r():t,o=hy.und(i.initial)||v?i.from:i.initial;b.from=Z_(o,e.item,n)}const{onResolve:y}=b;b.onResolve=e=>{Z_(y,e);const t=g.current,n=t.find((e=>e.key===i));if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){const e=t.every((e=>e.ctrl.idle));if("leave"==n.phase){const t=Z_(l,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(x,r)))}}e&&t.some((e=>e.expired))&&(M.current.delete(n),s&&(L.current=!0),x())}};const _=Gw(e.ctrl,b);"leave"===h&&s?M.current.set(e,{phase:h,springs:_,payload:b}):S.set(e,{phase:h,springs:_,payload:b})}));const E=T(Qw),O=R_(E),R=E!==O&&aw(E);T_((()=>{R&&gy(p,(e=>{e.ctrl.start({default:E})}))}),[E]),gy(S,((e,t)=>{if(M.current.size){const e=p.findIndex((e=>e.key===t.key));p.splice(e,1)}})),T_((()=>{gy(M.current.size?M.current:S,(({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:E}),t&&(cw(r,t.ref),!r.ref&&!f||L.current?(r.start(t),L.current&&(L.current=!1)):r.update(t))}))}),i?void 0:n);const P=e=>_.createElement(_.Fragment,null,p.map(((t,n)=>{const{springs:r}=S.get(t)||t.ctrl,i=e({...r},t.item,t,n),o=hy.str(t.key)||hy.num(t.key)?t.key:t.ctrl.id,a=_.version<"19.0.0",l=i?.props??{},s=a?i?.ref:l?.ref;return i&&i.type?_.createElement(i.type,{...l,key:o,ref:s}):i})));return f?[P,f]:P}var rx=1;var ix=class extends Aw{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=t_(...t);const n=this._get(),r=V_(n);D_(this,r.create(n))}advance(e){const t=this._get();py(t,this.get())||(z_(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ax(this._active)&&lx(this)}_get(){const e=hy.arr(this.source)?this.source.map(o_):my(o_(this.source));return this.calc(...e)}_start(){this.idle&&!ax(this._active)&&(this.idle=!1,gy(N_(this),(e=>{e.done=!1})),dy.skipAnimation?(Yb.batchedUpdates((()=>this.advance())),lx(this)):Oy.start(this))}_attach(){let e=1;gy(my(this.source),(t=>{i_(t)&&u_(t,this),Sw(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){gy(my(this.source),(e=>{i_(e)&&d_(e,this)})),this._active.clear(),lx(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=my(this.source).reduce(((e,t)=>Math.max(e,(Sw(t)?t.priority:0)+1)),0))}};function ox(e){return!1!==e.idle}function ax(e){return!e.size||Array.from(e).every(ox)}function lx(e){e.idle||(e.idle=!0,gy(N_(e),(e=>{e.done=!0})),l_(e,{type:"idle",parent:e}))}var sx=(e,...t)=>new ix(e,t);dy.assign({createStringInterpolator:x_,to:(e,t)=>new ix(e,t)});var cx=/^--/;function ux(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||cx.test(e)||fx.hasOwnProperty(e)&&fx[e]?(""+t).trim():t+"px"}var dx={};var fx={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},hx=["Webkit","Ms","Moz","O"];fx=Object.keys(fx).reduce(((e,t)=>(hx.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),fx);var px=/^(matrix|translate|scale|rotate|skew)/,gx=/^(translate)/,vx=/^(rotate|skew)/,mx=(e,t)=>hy.num(e)&&0!==e?e+t:e,bx=(e,t)=>hy.arr(e)?e.every((e=>bx(e,t))):hy.num(e)?e===t:parseFloat(e)===t,yx=class extends W_{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push((e=>[`translate3d(${e.map((e=>mx(e,"px"))).join(",")})`,bx(e,0)]))),vy(r,((e,t)=>{if("transform"===t)i.push([e||""]),o.push((e=>[e,""===e]));else if(px.test(t)){if(delete r[t],hy.und(e))return;const n=gx.test(t)?"px":vx.test(t)?"deg":"";i.push(my(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${mx(i,n)})`,bx(i,0)]:e=>[`${t}(${e.map((e=>mx(e,n))).join(",")})`,bx(e,t.startsWith("scale")?1:0)])}})),i.length&&(r.transform=new _x(i,o)),super(r)}},_x=class extends s_{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return gy(this.inputs,((n,r)=>{const i=o_(n[0]),[o,a]=this.transforms[r](hy.arr(i)?i:n.map(o_));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&gy(this.inputs,(e=>gy(e,(e=>i_(e)&&u_(e,this)))))}observerRemoved(e){0==e&&gy(this.inputs,(e=>gy(e,(e=>i_(e)&&d_(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),l_(this,e)}};dy.assign({batchedUpdates:N,createStringInterpolator:x_,colors:Ny});var wx,xx,kx,Cx,Sx,Mx,Ax,Tx,Lx,Ex,Ox,Rx,Px,zx,Dx,Nx,Ix,Bx,Fx,jx,Wx,Hx,Ux,Vx,$x,qx,Yx,Gx,Xx,Zx,Kx,Jx,Qx,ek,tk,nk,rk,ik,ok,ak,lk,sk,ck,uk,dk,fk,hk,pk,gk,vk,mk,bk,yk,_k,wk,xk,kk,Ck,Sk,Mk,Ak,Tk,Lk,Ek,Ok,Rk,Pk,zk,Dk,Nk,Ik,Bk,Fk,jk,Wk,Hk,Uk,Vk,$k,qk,Yk,Gk,Xk,Zk,Kk,Jk,Qk,eC,tC,nC,rC,iC,oC,aC,lC,sC,cC,uC,dC=G_(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:i,children:o,scrollTop:a,scrollLeft:l,viewBox:s,...c}=t,u=Object.values(c),d=Object.keys(c).map((t=>n||e.hasAttribute(t)?t:dx[t]||(dx[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const t in i)if(i.hasOwnProperty(t)){const n=ux(t,i[t]);cx.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==r&&(e.className=r),void 0!==a&&(e.scrollTop=a),void 0!==l&&(e.scrollLeft=l),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new yx(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),fC=dC.animated;function hC(){if(Cx)return kx;return Cx=1,kx=function(e,t){return e===t||e!=e&&t!=t}}function pC(){if(Mx)return Sx;Mx=1;var e=hC();return Sx=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1},Sx}function gC(){if(Nx)return Dx;Nx=1;var e=xx?wx:(xx=1,wx=function(){this.__data__=[],this.size=0}),t=function(){if(Tx)return Ax;Tx=1;var e=pC(),t=Array.prototype.splice;return Ax=function(n){var r=this.__data__,i=e(r,n);return!(i<0||(i==r.length-1?r.pop():t.call(r,i,1),--this.size,0))},Ax}(),n=function(){if(Ex)return Lx;Ex=1;var e=pC();return Lx=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]},Lx}(),r=function(){if(Rx)return Ox;Rx=1;var e=pC();return Ox=function(t){return e(this.__data__,t)>-1}}(),i=function(){if(zx)return Px;zx=1;var e=pC();return Px=function(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this},Px}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Dx=o}function vC(){if(qx)return $x;qx=1;var e="object"==typeof Rd&&Rd&&Rd.Object===Object&&Rd;return $x=e}function mC(){if(Gx)return Yx;Gx=1;var e=vC(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Yx=n}function bC(){if(Zx)return Xx;Zx=1;var e=mC().Symbol;return Xx=e}function yC(){if(nk)return tk;nk=1;var e=bC(),t=function(){if(Jx)return Kx;Jx=1;var e=bC(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;return Kx=function(e){var t=n.call(e,i),o=e[i];try{e[i]=void 0;var a=!0}catch(e){}var l=r.call(e);return a&&(t?e[i]=o:delete e[i]),l}}(),n=function(){if(ek)return Qx;ek=1;var e=Object.prototype.toString;return Qx=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return tk=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function _C(){if(ik)return rk;return ik=1,rk=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},rk}function wC(){if(ak)return ok;ak=1;var e=yC(),t=_C();return ok=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function xC(){if(uk)return ck;uk=1;var e,t=function(){if(sk)return lk;sk=1;var e=mC()["__core-js_shared__"];return lk=e}(),n=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return ck=function(e){return!!n&&n in e}}function kC(){if(fk)return dk;fk=1;var e=Function.prototype.toString;return dk=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function CC(){if(bk)return mk;bk=1;var e=function(){if(pk)return hk;pk=1;var e=wC(),t=xC(),n=_C(),r=kC(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,a=Object.prototype,l=o.toString,s=a.hasOwnProperty,c=RegExp("^"+l.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return hk=function(o){return!(!n(o)||t(o))&&(e(o)?c:i).test(r(o))}}(),t=(vk||(vk=1,gk=function(e,t){return null==e?void 0:e[t]}),gk);return mk=function(n,r){var i=t(n,r);return e(i)?i:void 0},mk}function SC(){if(_k)return yk;_k=1;var e=CC()(mC(),"Map");return yk=e}function MC(){if(xk)return wk;xk=1;var e=CC()(Object,"create");return wk=e}function AC(){if(zk)return Pk;zk=1;var e=function(){if(Ck)return kk;Ck=1;var e=MC();return kk=function(){this.__data__=e?e(null):{},this.size=0}}(),t=Mk?Sk:(Mk=1,Sk=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),n=function(){if(Tk)return Ak;Tk=1;var e=MC(),t=Object.prototype.hasOwnProperty;return Ak=function(n){var r=this.__data__;if(e){var i=r[n];return"__lodash_hash_undefined__"===i?void 0:i}return t.call(r,n)?r[n]:void 0}}(),r=function(){if(Ek)return Lk;Ek=1;var e=MC(),t=Object.prototype.hasOwnProperty;return Lk=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}(),i=function(){if(Rk)return Ok;Rk=1;var e=MC();return Ok=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Pk=o}function TC(){if(jk)return Fk;jk=1;var e=(Bk||(Bk=1,Ik=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}),Ik);return Fk=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map},Fk}function LC(){if(Zk)return Xk;Zk=1;var e=function(){if(Nk)return Dk;Nk=1;var e=AC(),t=gC(),n=SC();return Dk=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}(),t=function(){if(Hk)return Wk;Hk=1;var e=TC();return Wk=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}(),n=function(){if(Vk)return Uk;Vk=1;var e=TC();return Uk=function(t){return e(this,t).get(t)}}(),r=function(){if(qk)return $k;qk=1;var e=TC();return $k=function(t){return e(this,t).has(t)}}(),i=function(){if(Gk)return Yk;Gk=1;var e=TC();return Yk=function(t,n){var r=e(this,t),i=r.size;return r.set(t,n),this.size+=r.size==i?0:1,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Xk=o}function EC(){if(eC)return Qk;eC=1;var e=gC(),t=function(){if(Bx)return Ix;Bx=1;var e=gC();return Ix=function(){this.__data__=new e,this.size=0}}(),n=jx?Fx:(jx=1,Fx=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}),r=Hx?Wx:(Hx=1,Wx=function(e){return this.__data__.get(e)}),i=Vx?Ux:(Vx=1,Ux=function(e){return this.__data__.has(e)}),o=function(){if(Jk)return Kk;Jk=1;var e=gC(),t=SC(),n=LC();return Kk=function(r,i){var o=this.__data__;if(o instanceof e){var a=o.__data__;if(!t||a.length<199)return a.push([r,i]),this.size=++o.size,this;o=this.__data__=new n(a)}return o.set(r,i),this.size=o.size,this}}();function a(t){var n=this.__data__=new e(t);this.size=n.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=o,Qk=a}function OC(){if(nC)return tC;nC=1;var e=CC(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();return tC=t}function RC(){if(iC)return rC;iC=1;var e=OC();return rC=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r},rC}function PC(){if(aC)return oC;aC=1;var e=RC(),t=hC();return oC=function(n,r,i){(void 0!==i&&!t(n[r],i)||void 0===i&&!(r in n))&&e(n,r,i)},oC}function zC(){if(uC)return cC;uC=1;var e=(sC||(sC=1,lC=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),l=a.length;l--;){var s=a[e?l:++i];if(!1===n(o[s],s,o))break}return t}}),lC),t=e();return cC=t}var DC,NC,IC,BC,FC,jC,WC,HC,UC,VC,$C,qC,YC,GC,XC,ZC,KC,JC,QC,eS,tS,nS,rS,iS,oS,aS,lS,sS,cS,uS,dS,fS,hS,pS={exports:{}};function gS(){return DC||(DC=1,function(e,t){var n=mC(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}(pS,pS.exports)),pS.exports}function vS(){if(IC)return NC;IC=1;var e=mC().Uint8Array;return NC=e}function mS(){if(FC)return BC;FC=1;var e=vS();return BC=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function bS(){if(WC)return jC;WC=1;var e=mS();return jC=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}function yS(){if(UC)return HC;return UC=1,HC=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},HC}function _S(){if(YC)return qC;return YC=1,qC=function(e,t){return function(n){return e(t(n))}}}function wS(){if(XC)return GC;XC=1;var e=_S()(Object.getPrototypeOf,Object);return GC=e}function xS(){if(KC)return ZC;KC=1;var e=Object.prototype;return ZC=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function kS(){if(QC)return JC;QC=1;var e=function(){if($C)return VC;$C=1;var e=_C(),t=Object.create,n=function(){function n(){}return function(r){if(!e(r))return{};if(t)return t(r);n.prototype=r;var i=new n;return n.prototype=void 0,i}}();return VC=n}(),t=wS(),n=xS();return JC=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))},JC}function CS(){if(tS)return eS;return tS=1,eS=function(e){return null!=e&&"object"==typeof e}}function SS(){if(oS)return iS;oS=1;var e=function(){if(rS)return nS;rS=1;var e=yC(),t=CS();return nS=function(n){return t(n)&&"[object Arguments]"==e(n)}}(),t=CS(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!i.call(e,"callee")};return iS=o}function MS(){if(lS)return aS;lS=1;var e=Array.isArray;return aS=e}function AS(){if(cS)return sS;cS=1;return sS=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function TS(){if(dS)return uS;dS=1;var e=wC(),t=AS();return uS=function(n){return null!=n&&t(n.length)&&!e(n)}}function LS(){if(hS)return fS;hS=1;var e=TS(),t=CS();return fS=function(n){return t(n)&&e(n)}}var ES,OS,RS,PS,zS,DS,NS,IS,BS,FS={exports:{}};function jS(){return RS||(RS=1,function(e,t){var n=mC(),r=OS?ES:(OS=1,ES=function(){return!1}),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l}(FS,FS.exports)),FS.exports}function WS(){if(zS)return PS;zS=1;var e=yC(),t=wS(),n=CS(),r=Function.prototype,i=Object.prototype,o=r.toString,a=i.hasOwnProperty,l=o.call(Object);return PS=function(r){if(!n(r)||"[object Object]"!=e(r))return!1;var i=t(r);if(null===i)return!0;var s=a.call(i,"constructor")&&i.constructor;return"function"==typeof s&&s instanceof s&&o.call(s)==l}}function HS(){if(BS)return IS;return BS=1,IS=function(e){return function(t){return e(t)}}}var US,VS,$S,qS,YS,GS,XS,ZS,KS,JS,QS,eM,tM,nM,rM,iM,oM,aM,lM,sM,cM,uM,dM,fM,hM,pM,gM,vM,mM,bM,yM,_M,wM,xM,kM,CM,SM,MM,AM,TM,LM,EM,OM,RM,PM,zM,DM,NM,IM,BM={exports:{}};function FM(){return US||(US=1,function(e,t){var n=vC(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}(BM,BM.exports)),BM.exports}function jM(){if($S)return VS;$S=1;var e=function(){if(NS)return DS;NS=1;var e=yC(),t=AS(),n=CS(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,DS=function(i){return n(i)&&t(i.length)&&!!r[e(i)]}}(),t=HS(),n=FM(),r=n&&n.isTypedArray,i=r?t(r):e;return VS=i}function WM(){if(YS)return qS;return YS=1,qS=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},qS}function HM(){if(XS)return GS;XS=1;var e=RC(),t=hC(),n=Object.prototype.hasOwnProperty;return GS=function(r,i,o){var a=r[i];n.call(r,i)&&t(a,o)&&(void 0!==o||i in r)||e(r,i,o)},GS}function UM(){if(KS)return ZS;KS=1;var e=HM(),t=RC();return ZS=function(n,r,i,o){var a=!i;i||(i={});for(var l=-1,s=r.length;++l<s;){var c=r[l],u=o?o(i[c],n[c],c,i,n):void 0;void 0===u&&(u=n[c]),a?t(i,c,u):e(i,c,u)}return i},ZS}function VM(){if(tM)return eM;tM=1;var e=/^(?:0|[1-9]\d*)$/;return eM=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n},eM}function $M(){if(rM)return nM;rM=1;var e=(QS||(QS=1,JS=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}),JS),t=SS(),n=MS(),r=jS(),i=VM(),o=jM(),a=Object.prototype.hasOwnProperty;return nM=function(l,s){var c=n(l),u=!c&&t(l),d=!c&&!u&&r(l),f=!c&&!u&&!d&&o(l),h=c||u||d||f,p=h?e(l.length,String):[],g=p.length;for(var v in l)!s&&!a.call(l,v)||h&&("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||i(v,g))||p.push(v);return p}}function qM(){if(lM)return aM;lM=1;var e=_C(),t=xS(),n=(oM||(oM=1,iM=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}),iM),r=Object.prototype.hasOwnProperty;return aM=function(i){if(!e(i))return n(i);var o=t(i),a=[];for(var l in i)("constructor"!=l||!o&&r.call(i,l))&&a.push(l);return a},aM}function YM(){if(cM)return sM;cM=1;var e=$M(),t=qM(),n=TS();return sM=function(r){return n(r)?e(r,!0):t(r)},sM}function GM(){if(hM)return fM;hM=1;var e=PC(),t=gS(),n=bS(),r=yS(),i=kS(),o=SS(),a=MS(),l=LS(),s=jS(),c=wC(),u=_C(),d=WS(),f=jM(),h=WM(),p=function(){if(dM)return uM;dM=1;var e=UM(),t=YM();return uM=function(n){return e(n,t(n))}}();return fM=function(g,v,m,b,y,_,w){var x=h(g,m),k=h(v,m),C=w.get(k);if(C)e(g,m,C);else{var S=_?_(x,k,m+"",g,v,w):void 0,M=void 0===S;if(M){var A=a(k),T=!A&&s(k),L=!A&&!T&&f(k);S=k,A||T||L?a(x)?S=x:l(x)?S=r(x):T?(M=!1,S=t(k,!0)):L?(M=!1,S=n(k,!0)):S=[]:d(k)||o(k)?(S=x,o(x)?S=p(x):u(x)&&!c(x)||(S=i(k))):M=!1}M&&(w.set(k,S),y(S,k,b,_,w),w.delete(k)),e(g,m,S)}},fM}function XM(){if(mM)return vM;return mM=1,vM=function(e){return e}}function ZM(){if(wM)return _M;wM=1;var e=yM?bM:(yM=1,bM=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}),t=Math.max;return _M=function(n,r,i){return r=t(void 0===r?n.length-1:r,0),function(){for(var o=arguments,a=-1,l=t(o.length-r,0),s=Array(l);++a<l;)s[a]=o[r+a];a=-1;for(var c=Array(r+1);++a<r;)c[a]=o[a];return c[r]=i(s),e(n,this,c)}},_M}function KM(){if(SM)return CM;SM=1;var e=kM?xM:(kM=1,xM=function(e){return function(){return e}}),t=OC(),n=XM();return CM=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}function JM(){if(LM)return TM;LM=1;var e=KM(),t=function(){if(AM)return MM;AM=1;var e=Date.now;return MM=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},MM}(),n=t(e);return TM=n}function QM(){if(OM)return EM;OM=1;var e=XM(),t=ZM(),n=JM();return EM=function(r,i){return n(t(r,i,e),r+"")},EM}function eA(){if(PM)return RM;PM=1;var e=hC(),t=TS(),n=VM(),r=_C();return RM=function(i,o,a){if(!r(a))return!1;var l=typeof o;return!!("number"==l?t(a)&&n(o,a.length):"string"==l&&o in a)&&e(a[o],i)},RM}var tA,nA,rA,iA,oA,aA,lA,sA,cA,uA,dA,fA,hA,pA,gA,vA,mA,bA,yA,_A,wA,xA,kA,CA,SA=function(){if(IM)return NM;IM=1;var e=function(){if(gM)return pM;gM=1;var e=EC(),t=PC(),n=zC(),r=GM(),i=_C(),o=YM(),a=WM();return pM=function l(s,c,u,d,f){s!==c&&n(c,(function(n,o){if(f||(f=new e),i(n))r(s,c,o,u,l,d,f);else{var h=d?d(a(s,o),n,o+"",s,c,f):void 0;void 0===h&&(h=n),t(s,o,h)}}),o)},pM}(),t=function(){if(DM)return zM;DM=1;var e=QM(),t=eA();return zM=function(n){return e((function(e,r){var i=-1,o=r.length,a=o>1?r[o-1]:void 0,l=o>2?r[2]:void 0;for(a=n.length>3&&"function"==typeof a?(o--,a):void 0,l&&t(r[0],r[1],l)&&(a=o<3?void 0:a,o=1),e=Object(e);++i<o;){var s=r[i];s&&n(e,s,i,a)}return e}))},zM}(),n=t((function(t,n,r){e(t,n,r)}));return NM=n}(),MA=Pd(SA);function AA(){if(nA)return tA;nA=1;var e=yC(),t=CS();return tA=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function TA(){if(iA)return rA;iA=1;var e=MS(),t=AA(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return rA=function(i,o){if(e(i))return!1;var a=typeof i;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=i&&!t(i))||(r.test(i)||!n.test(i)||null!=o&&i in Object(o))},rA}function LA(){if(sA)return lA;sA=1;var e=function(){if(aA)return oA;aA=1;var e=LC();function t(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var i=function(){var e=arguments,t=r?r.apply(this,e):e[0],o=i.cache;if(o.has(t))return o.get(t);var a=n.apply(this,e);return i.cache=o.set(t,a)||o,a};return i.cache=new(t.Cache||e),i}return t.Cache=e,oA=t}();return lA=function(t){var n=e(t,(function(e){return 500===r.size&&r.clear(),e})),r=n.cache;return n}}function EA(){if(fA)return dA;return fA=1,dA=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},dA}function OA(){if(vA)return gA;vA=1;var e=function(){if(pA)return hA;pA=1;var e=bC(),t=EA(),n=MS(),r=AA(),i=e?e.prototype:void 0,o=i?i.toString:void 0;return hA=function e(i){if("string"==typeof i)return i;if(n(i))return t(i,e)+"";if(r(i))return o?o.call(i):"";var a=i+"";return"0"==a&&1/i==-1/0?"-0":a},hA}();return gA=function(t){return null==t?"":e(t)}}function RA(){if(bA)return mA;bA=1;var e=MS(),t=TA(),n=function(){if(uA)return cA;uA=1;var e=LA(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e((function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,(function(e,t,i,o){r.push(i?o.replace(n,"$1"):t||e)})),r}));return cA=r}(),r=OA();return mA=function(i,o){return e(i)?i:t(i,o)?[i]:n(r(i))},mA}function PA(){if(_A)return yA;_A=1;var e=AA();return yA=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}}function zA(){if(xA)return wA;xA=1;var e=RA(),t=PA();return wA=function(n,r){for(var i=0,o=(r=e(r,n)).length;null!=n&&i<o;)n=n[t(r[i++])];return i&&i==o?n:void 0},wA}function DA(){if(CA)return kA;CA=1;var e=zA();return kA=function(t,n,r){var i=null==t?void 0:e(t,n);return void 0===i?r:i},kA}var NA,IA,BA,FA,jA=Pd(DA());function WA(){if(IA)return NA;IA=1;var e=HM(),t=RA(),n=VM(),r=_C(),i=PA();return NA=function(o,a,l,s){if(!r(o))return o;for(var c=-1,u=(a=t(a,o)).length,d=u-1,f=o;null!=f&&++c<u;){var h=i(a[c]),p=l;if("__proto__"===h||"constructor"===h||"prototype"===h)return o;if(c!=d){var g=f[h];void 0===(p=s?s(g,h,f):void 0)&&(p=r(g)?g:n(a[c+1])?[]:{})}e(f,h,p),f=f[h]}return o},NA}var HA=function(){if(FA)return BA;FA=1;var e=WA();return BA=function(t,n,r){return null==t?t:e(t,n,r)},BA}(),UA=Pd(HA);function VA(){return VA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VA.apply(null,arguments)}var $A=["outlineWidth","outlineColor","outlineOpacity"],qA=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,$A)},YA=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],GA=function(e,t){var n=MA({},e,t);return YA.forEach((function(e){UA(n,e,function(e,t){return VA({},t,e)}(jA(n,e),n.text))})),n},XA=function(e,t){return t?MA({},e,t):e},ZA={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"#ffffff",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}},KA=L(null),JA={},QA=function(e){var t=e.theme,n=void 0===t?JA:t,r=e.children,i=function(e){return A((function(){return GA(ZA,e)}),[e])}(n);return ln(KA.Provider,{value:i,children:r})},eT=function(){var e=T(KA);if(null===e)throw new Error("Unable to find the theme, did you forget to wrap your component with ThemeProvider?");return e};function tT(){return tT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tT.apply(null,arguments)}var nT=["basic","chip","container","table","tableCell","tableCellValue"],rT={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},iT=function(e,t){return"translate("+e+"px, "+t+"px)"},oT=E((function(e){var t,n=e.position,r=e.anchor,i=e.children,o=eT(),a=Rz(),l=a.animate,s=a.config,c=AD(),u=c[0],d=c[1],f=C(!1),h=void 0,p=!1,g=d.width>0&&d.height>0,v=Math.round(n[0]),m=Math.round(n[1]);g&&("top"===r?(v-=d.width/2,m-=d.height+14):"right"===r?(v+=14,m-=d.height/2):"bottom"===r?(v-=d.width/2,m+=14):"left"===r?(v-=d.width+14,m-=d.height/2):"center"===r&&(v-=d.width/2,m-=d.height/2),h={transform:iT(v,m)},f.current||(p=!0),f.current=[v,m]);var b=tx({to:h,config:s,immediate:!l||p}),y=o.tooltip;y.basic,y.chip,y.container,y.table,y.tableCell,y.tableCellValue;var _=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(y,nT),w=tT({},rT,_,{transform:null!=(t=b.transform)?t:iT(v,m),opacity:b.transform?1:0});return ln(fC.div,{ref:u,style:w,children:i})}));oT.displayName="TooltipWrapper";var aT=E((function(e){var t=e.size,n=void 0===t?12:t,r=e.color,i=e.style;return ln("span",{style:tT({display:"block",width:n,height:n,background:r},void 0===i?{}:i)})})),lT=E((function(e){var t,n=e.id,r=e.value,i=e.format,o=e.enableChip,a=void 0!==o&&o,l=e.color,s=e.renderContent,c=eT(),u=LD(i);if("function"==typeof s)t=s();else{var d=r;void 0!==u&&void 0!==d&&(d=u(d)),t=ln("div",{style:c.tooltip.basic,children:[a&&ln(aT,{color:l,style:c.tooltip.chip}),void 0!==d?ln("span",{children:[n,": ",ln("strong",{children:""+d})]}):n]})}return ln("div",{style:c.tooltip.container,role:"tooltip",children:t})})),sT={width:"100%",borderCollapse:"collapse"},cT=E((function(e){var t,n=e.title,r=e.rows,i=void 0===r?[]:r,o=e.renderContent,a=eT();return i.length?(t="function"==typeof o?o():ln("div",{children:[n&&n,ln("table",{style:tT({},sT,a.tooltip.table),children:ln("tbody",{children:i.map((function(e,t){return ln("tr",{children:e.map((function(e,t){return ln("td",{style:a.tooltip.tableCell,children:e},t)}))},t)}))})})]}),ln("div",{style:a.tooltip.container,children:t})):null}));cT.displayName="TableTooltip";var uT=E((function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=eT(),a=Rz(),l=a.animate,s=a.config,c=A((function(){return tT({},o.crosshair.line,{pointerEvents:"none"})}),[o.crosshair.line]),u=tx({x1:t,x2:n,y1:r,y2:i,config:s,immediate:!l});return ln(fC.line,tT({},u,{fill:"none",style:c}))}));uT.displayName="CrosshairLine";var dT=E((function(e){var t,n,i=e.width,o=e.height,a=e.type,l=e.x,s=e.y;return"cross"===a?(t={x0:l,x1:l,y0:0,y1:o},n={x0:0,x1:i,y0:s,y1:s}):"top-left"===a?(t={x0:l,x1:l,y0:0,y1:s},n={x0:0,x1:l,y0:s,y1:s}):"top"===a?t={x0:l,x1:l,y0:0,y1:s}:"top-right"===a?(t={x0:l,x1:l,y0:0,y1:s},n={x0:l,x1:i,y0:s,y1:s}):"right"===a?n={x0:l,x1:i,y0:s,y1:s}:"bottom-right"===a?(t={x0:l,x1:l,y0:s,y1:o},n={x0:l,x1:i,y0:s,y1:s}):"bottom"===a?t={x0:l,x1:l,y0:s,y1:o}:"bottom-left"===a?(t={x0:l,x1:l,y0:s,y1:o},n={x0:0,x1:l,y0:s,y1:s}):"left"===a?n={x0:0,x1:l,y0:s,y1:s}:"x"===a?t={x0:l,x1:l,y0:0,y1:o}:"y"===a&&(n={x0:0,x1:i,y0:s,y1:s}),ln(r,{children:[t&&ln(uT,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&ln(uT,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})}));dT.displayName="Crosshair";var fT,hT,pT=L({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),gT={isVisible:!1,position:[null,null],content:null,anchor:null},vT=L(gT),mT=function(){var e=T(pT);if(void 0===e)throw new Error("useTooltip must be used within a TooltipProvider");return e},bT=function(){var e=function(){var e=T(vT);if(void 0===e)throw new Error("useTooltipState must be used within a TooltipProvider");return e}();return function(e){return e.isVisible}(e)?ln(oT,{position:e.position,anchor:e.anchor,children:e.content}):null},yT=function(e){var t=e.container,n=e.children,r=function(e){var t=w(gT),n=t[0],r=t[1],i=M((function(e,t,n){var i=t[0],o=t[1];void 0===n&&(n="top"),r({isVisible:!0,position:[i,o],anchor:n,content:e})}),[r]),o=M((function(t,n,i){void 0===i&&(i="top");var o=e.current.getBoundingClientRect(),a=e.current.offsetWidth,l=a===o.width?1:a/o.width,s="touches"in n?n.touches[0]:n,c=s.clientX,u=s.clientY,d=(c-o.left)*l,f=(u-o.top)*l;"left"!==i&&"right"!==i||(i=d<o.width/2?"right":"left"),r({isVisible:!0,position:[d,f],anchor:i,content:t})}),[e,r]),a=M((function(){r(gT)}),[r]);return{actions:A((function(){return{showTooltipAt:i,showTooltipFromEvent:o,hideTooltip:a}}),[i,o,a]),state:n}}(t),i=r.actions,o=r.state;return ln(pT.Provider,{value:i,children:ln(vT.Provider,{value:o,children:n})})};var _T=Pd(function(){if(hT)return fT;hT=1;var e=yC(),t=MS(),n=CS();return fT=function(r){return"string"==typeof r||!t(r)&&n(r)&&"[object String]"==e(r)}}());let wT;wT="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let xT=null,kT=null;const CT=wT.clearTimeout,ST=wT.setTimeout,MT=wT.cancelAnimationFrame||wT.mozCancelAnimationFrame||wT.webkitCancelAnimationFrame,AT=wT.requestAnimationFrame||wT.mozRequestAnimationFrame||wT.webkitRequestAnimationFrame;function TT(e){let t,n,r,i,o,a,l;const s="undefined"!=typeof document&&document.attachEvent;if(!s){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&xT(this.__resizeRAF__),this.__resizeRAF__=kT((function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,s="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],s="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+s+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=s+"animation: 1ms "+n+"; "}return{addResizeListener:function(o,c){if(s)o.attachEvent("onresize",c);else{if(!o.__resizeTriggers__){const s=o.ownerDocument,c=wT.getComputedStyle(o);c&&"static"===c.position&&(o.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),o.appendChild(a)}}(s),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=s.createElement("div")).className="resize-triggers";const u=s.createElement("div");u.className="expand-trigger",u.appendChild(s.createElement("div"));const d=s.createElement("div");d.className="contract-trigger",o.__resizeTriggers__.appendChild(u),o.__resizeTriggers__.appendChild(d),o.appendChild(o.__resizeTriggers__),a(o),o.addEventListener("scroll",l,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(s)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==MT||null==AT?(xT=CT,kT=function(e){return ST(e,20)}):(xT=function([e,t]){MT(e),CT(t)},kT=function(e){const t=AT((function(){CT(n),e()})),n=ST((function(){MT(t),e()}),20);return[t,n]});class LT extends O{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||"0"),o=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),l=parseFloat(r.paddingBottom||"0"),s=this._parentNode.getBoundingClientRect(),c=s.height-a-l,u=s.width-i-o;if(!e&&this.state.height!==c||!t&&this.state.width!==u){this.setState({height:c,width:u});const e=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};"function"==typeof n&&n({height:c,width:u,get scaledHeight(){return e(),c},get scaledWidth(){return e(),u}})}}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=TT(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:o=!1,nonce:a,onResize:l,style:s={},tagName:c="div",...u}=this.props,{height:d,width:f}=this.state,h={overflow:"visible"},p={};let g=!1;return r||(0===d&&(g=!0),h.height=0,p.height=d,p.scaledHeight=d),i||(0===f&&(g=!0),h.width=0,p.width=f,p.scaledWidth=f),o&&(g=!1),R(c,{ref:this._setRef,style:{...h,...s},...u},!g&&e(p))}}function ET(e,t){return e===t}function OT(e,t,n){var r=n&&n.equalityFn||ET,i=C(e),o=w({})[1],a=function(e,t,n,r){var i=this,o=C(null),a=C(0),l=C(0),s=C(null),c=C([]),u=C(),d=C(),f=C(e),h=C(!0);f.current=e;var p="undefined"!=typeof window,g=!t&&0!==t&&p;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var v=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,b="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,_=b?Math.max(+n.maxWait||0,t):null;x((function(){return h.current=!0,function(){h.current=!1}}),[]);var w=A((function(){var e=function(e){var t=c.current,n=u.current;return c.current=u.current=null,a.current=e,l.current=l.current||e,d.current=f.current.apply(n,t)},n=function(e,t){g&&cancelAnimationFrame(s.current),s.current=g?requestAnimationFrame(e):setTimeout(e,t)},w=function(e){if(!h.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||b&&e-a.current>=_},x=function(t){return s.current=null,m&&c.current?e(t):(c.current=u.current=null,d.current)},k=function e(){var r=Date.now();if(v&&l.current===a.current&&C(),w(r))return x(r);if(h.current){var i=t-(r-o.current),s=b?Math.min(i,_-(r-a.current)):i;n(e,s)}},C=function(){r&&r({})},S=function(){if(p||y){var r=Date.now(),l=w(r);if(c.current=[].slice.call(arguments),u.current=i,o.current=r,l){if(!s.current&&h.current)return a.current=o.current,n(k,t),v?e(o.current):d.current;if(b)return n(k,t),e(o.current)}return s.current||n(k,t),d.current}};return S.cancel=function(){var e=s.current;e&&(g?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,c.current=o.current=u.current=s.current=null,e&&r&&r({})},S.isPending=function(){return!!s.current},S.flush=function(){return s.current?x(Date.now()):d.current},S}),[v,b,t,_,m,g,p,y,r]);return w}(M((function(e){i.current=e,o({})}),[o]),t,n,o),l=C(e);return r(l.current,e)||(a(e),l.current=e),[i.current,a]}var RT,PT,zT,DT,NT,IT,BT,FT,jT,WT,HT,UT,VT,$T,qT,YT,GT,XT,ZT,KT,JT,QT,eL,tL;function nL(){if(IT)return NT;IT=1;var e=LC(),t=PT?RT:(PT=1,RT=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),n=DT?zT:(DT=1,zT=function(e){return this.__data__.has(e)});function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,NT=r}function rL(){if($T)return VT;$T=1;var e=(FT||(FT=1,BT=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}),BT),t=WT?jT:(WT=1,jT=function(e){return e!=e}),n=(UT||(UT=1,HT=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}),HT);return VT=function(r,i,o){return i==i?n(r,i,o):e(r,t,o)},VT}function iL(){if(YT)return qT;YT=1;var e=rL();return qT=function(t,n){return!!(null==t?0:t.length)&&e(t,n,0)>-1},qT}function oL(){if(XT)return GT;return XT=1,GT=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1},GT}function aL(){if(KT)return ZT;return KT=1,ZT=function(e,t){return e.has(t)}}var lL=function(){if(tL)return eL;tL=1;var e=function(){if(QT)return JT;QT=1;var e=nL(),t=iL(),n=oL(),r=EA(),i=HS(),o=aL();return JT=function(a,l,s,c){var u=-1,d=t,f=!0,h=a.length,p=[],g=l.length;if(!h)return p;s&&(l=r(l,i(s))),c?(d=n,f=!1):l.length>=200&&(d=o,f=!1,l=new e(l));e:for(;++u<h;){var v=a[u],m=null==s?v:s(v);if(v=c||0!==v?v:0,f&&m==m){for(var b=g;b--;)if(l[b]===m)continue e;p.push(v)}else d(l,m,c)||p.push(v)}return p},JT}(),t=QM(),n=LS(),r=t((function(t,r){return n(t)?e(t,r):[]}));return eL=r}(),sL=Pd(lL);function cL(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}var uL=cL("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),dL=cL("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),fL=cL("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),hL=cL("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),pL=cL("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),gL=cL("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),vL=cL("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),mL=cL("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),bL=cL("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),yL=cL("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),_L=e=>sa(e[e.length-1]),wL=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(cL),xL=_L(wL),kL=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(cL),CL=_L(kL),SL=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(cL),ML=_L(SL),AL=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(cL),TL=_L(AL),LL=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(cL),EL=_L(LL),OL=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(cL),RL=_L(OL),PL=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(cL),zL=_L(PL),DL=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(cL),NL=_L(DL),IL=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(cL),BL=_L(IL),FL=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(cL),jL=_L(FL),WL=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(cL),HL=_L(WL),UL=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(cL),VL=_L(UL),$L=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(cL),qL=_L($L),YL=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(cL),GL=_L(YL),XL=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(cL),ZL=_L(XL),KL=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(cL),JL=_L(KL),QL=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(cL),eE=_L(QL),tE=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(cL),nE=_L(tE),rE=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(cL),iE=_L(rE),oE=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(cL),aE=_L(oE),lE=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(cL),sE=_L(lE),cE=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(cL),uE=_L(cE),dE=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(cL),fE=_L(dE),hE=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(cL),pE=_L(hE),gE=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(cL),vE=_L(gE),mE=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(cL),bE=_L(mE),yE=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(cL),_E=_L(yE);var wE=Aa(ea(300,.5,0),ea(-240,.5,1)),xE=Aa(ea(-100,.75,.35),ea(80,1.5,.8)),kE=Aa(ea(260,.75,.35),ea(80,1.5,.8)),CE=ea();var SE=Oo(),ME=Math.PI/3,AE=2*Math.PI/3;function TE(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var LE,EE,OE=TE(cL("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),RE=TE(cL("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),PE=TE(cL("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),zE=TE(cL("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function DE(){if(EE)return LE;return EE=1,LE=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},LE}var NE=Pd(DE());MS();var IE=Pd(wC());function BE(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var FE,jE=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function WE(e){if(!(t=jE.exec(e)))throw new Error("invalid format: "+e);var t;return new HE({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 HE(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+""}function UE(e,t){var n=BE(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}WE.prototype=HE.prototype,HE.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};var VE={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return UE(100*e,t)},r:UE,s:function(e,t){var n=BE(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(FE=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+BE(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function $E(e){return e}var qE,YE,GE=Array.prototype.map,XE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ZE(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?$E:(t=GE.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,l=t[0],s=0;i>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),o.push(e.substring(i-=l,i+l)),!((s+=l+1)>r));)l=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=e.decimal+"",l=void 0===e.numerals?$E:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(GE.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",c=e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=WE(e)).fill,n=e.align,d=e.sign,f=e.symbol,h=e.zero,p=e.width,g=e.comma,v=e.precision,m=e.trim,b=e.type;"n"===b?(g=!0,b="g"):VE[b]||(void 0===v&&(v=12),m=!0,b="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var y="$"===f?i:"#"===f&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",_="$"===f?o:/[%p]/.test(b)?s:"",w=VE[b],x=/[defgprs%]/.test(b);function k(e){var i,o,s,f=y,k=_;if("c"===b)k=w(e)+k,e="";else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),v),m&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),C&&0==+e&&"+"!==d&&(C=!1),f=(C?"("===d?d:c:"-"===d||"("===d?"":d)+f,k=("s"===b?XE[8+FE/3]:"")+k+(C&&"("===d?")":""),x)for(i=-1,o=e.length;++i<o;)if(48>(s=e.charCodeAt(i))||s>57){k=(46===s?a+e.slice(i+1):e.slice(i))+k,e=e.slice(0,i);break}}g&&!h&&(e=r(e,1/0));var S=f.length+e.length+k.length,M=S<p?new Array(p-S+1).join(t):"";switch(g&&h&&(e=r(M+e,M.length?p-k.length:1/0),M=""),n){case"<":e=f+e+k+M;break;case"=":e=f+M+e+k;break;case"^":e=M.slice(0,S=M.length>>1)+f+e+k+M.slice(S);break;default:e=M+f+e+k}return l(e)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return e+""},k}return{format:d,formatPrefix:function(e,t){var n=d(((e=WE(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(function(e){return(e=BE(Math.abs(e)))?e[1]:NaN}(t)/3))),i=Math.pow(10,-r),o=XE[8+r/3];return function(e){return n(i*e)+o}}}}!function(e){qE=ZE(e),YE=qE.format,qE.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var KE=new Date,JE=new Date;function QE(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,l=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return l;do{l.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return l},i.filter=function(n){return QE((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return KE.setTime(+t),JE.setTime(+r),e(KE),e(JE),Math.floor(n(KE,JE))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}const eO=6e4,tO=864e5,nO=6048e5;var rO=QE((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*eO)/tO),(e=>e.getDate()-1));function iO(e){return QE((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*eO)/nO}))}rO.range;var oO=iO(0),aO=iO(1),lO=iO(2),sO=iO(3),cO=iO(4),uO=iO(5),dO=iO(6);oO.range,aO.range,lO.range,sO.range,cO.range,uO.range,dO.range;var fO=QE((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));fO.every=function(e){return isFinite(e=Math.floor(e))&&e>0?QE((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},fO.range;var hO=QE((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/tO}),(function(e){return e.getUTCDate()-1}));function pO(e){return QE((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/nO}))}hO.range;var gO=pO(0),vO=pO(1),mO=pO(2),bO=pO(3),yO=pO(4),_O=pO(5),wO=pO(6);gO.range,vO.range,mO.range,bO.range,yO.range,_O.range,wO.range;var xO=QE((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function kO(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 CO(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 SO(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}xO.every=function(e){return isFinite(e=Math.floor(e))&&e>0?QE((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},xO.range;var MO,AO,TO,LO,EO={"-":"",_:" ",0:"0"},OO=/^\s*\d+/,RO=/^%/,PO=/[\\^$*+?|[\]().{}]/g;function zO(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function DO(e){return e.replace(PO,"\\$&")}function NO(e){return new RegExp("^(?:"+e.map(DO).join("|")+")","i")}function IO(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function BO(e,t,n){var r=OO.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function FO(e,t,n){var r=OO.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function jO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function WO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function HO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function UO(e,t,n){var r=OO.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function VO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function $O(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function qO(e,t,n){var r=OO.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function YO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function GO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function XO(e,t,n){var r=OO.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ZO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function KO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function JO(e,t,n){var r=OO.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function QO(e,t,n){var r=OO.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function eR(e,t,n){var r=OO.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function tR(e,t,n){var r=RO.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function nR(e,t,n){var r=OO.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function rR(e,t,n){var r=OO.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function iR(e,t){return zO(e.getDate(),t,2)}function oR(e,t){return zO(e.getHours(),t,2)}function aR(e,t){return zO(e.getHours()%12||12,t,2)}function lR(e,t){return zO(1+rO.count(fO(e),e),t,3)}function sR(e,t){return zO(e.getMilliseconds(),t,3)}function cR(e,t){return sR(e,t)+"000"}function uR(e,t){return zO(e.getMonth()+1,t,2)}function dR(e,t){return zO(e.getMinutes(),t,2)}function fR(e,t){return zO(e.getSeconds(),t,2)}function hR(e){var t=e.getDay();return 0===t?7:t}function pR(e,t){return zO(oO.count(fO(e)-1,e),t,2)}function gR(e){var t=e.getDay();return t>=4||0===t?cO(e):cO.ceil(e)}function vR(e,t){return e=gR(e),zO(cO.count(fO(e),e)+(4===fO(e).getDay()),t,2)}function mR(e){return e.getDay()}function bR(e,t){return zO(aO.count(fO(e)-1,e),t,2)}function yR(e,t){return zO(e.getFullYear()%100,t,2)}function _R(e,t){return zO((e=gR(e)).getFullYear()%100,t,2)}function wR(e,t){return zO(e.getFullYear()%1e4,t,4)}function xR(e,t){var n=e.getDay();return zO((e=n>=4||0===n?cO(e):cO.ceil(e)).getFullYear()%1e4,t,4)}function kR(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+zO(t/60|0,"0",2)+zO(t%60,"0",2)}function CR(e,t){return zO(e.getUTCDate(),t,2)}function SR(e,t){return zO(e.getUTCHours(),t,2)}function MR(e,t){return zO(e.getUTCHours()%12||12,t,2)}function AR(e,t){return zO(1+hO.count(xO(e),e),t,3)}function TR(e,t){return zO(e.getUTCMilliseconds(),t,3)}function LR(e,t){return TR(e,t)+"000"}function ER(e,t){return zO(e.getUTCMonth()+1,t,2)}function OR(e,t){return zO(e.getUTCMinutes(),t,2)}function RR(e,t){return zO(e.getUTCSeconds(),t,2)}function PR(e){var t=e.getUTCDay();return 0===t?7:t}function zR(e,t){return zO(gO.count(xO(e)-1,e),t,2)}function DR(e){var t=e.getUTCDay();return t>=4||0===t?yO(e):yO.ceil(e)}function NR(e,t){return e=DR(e),zO(yO.count(xO(e),e)+(4===xO(e).getUTCDay()),t,2)}function IR(e){return e.getUTCDay()}function BR(e,t){return zO(vO.count(xO(e)-1,e),t,2)}function FR(e,t){return zO(e.getUTCFullYear()%100,t,2)}function jR(e,t){return zO((e=DR(e)).getUTCFullYear()%100,t,2)}function WR(e,t){return zO(e.getUTCFullYear()%1e4,t,4)}function HR(e,t){var n=e.getUTCDay();return zO((e=n>=4||0===n?yO(e):yO.ceil(e)).getUTCFullYear()%1e4,t,4)}function UR(){return"+0000"}function VR(){return"%"}function $R(e){return+e}function qR(e){return Math.floor(+e/1e3)}!function(e){MO=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,l=e.months,s=e.shortMonths,c=NO(i),u=IO(i),d=NO(o),f=IO(o),h=NO(a),p=IO(a),g=NO(l),v=IO(l),m=NO(s),b=IO(s),y={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:iR,e:iR,f:cR,g:_R,G:xR,H:oR,I:aR,j:lR,L:sR,m:uR,M:dR,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:$R,s:qR,S:fR,u:hR,U:pR,V:vR,w:mR,W:bR,x:null,X:null,y:yR,Y:wR,Z:kR,"%":VR},_={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:CR,e:CR,f:LR,g:jR,G:HR,H:SR,I:MR,j:AR,L:TR,m:ER,M:OR,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:$R,s:qR,S:RR,u:PR,U:zR,V:NR,w:IR,W:BR,x:null,X:null,y:FR,Y:WR,Z:UR,"%":VR},w={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:GO,e:GO,f:eR,g:VO,G:UO,H:ZO,I:ZO,j:XO,L:QO,m:YO,M:KO,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:qO,Q:nR,s:rR,S:JO,u:FO,U:jO,V:WO,w:BO,W:HO,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:VO,Y:UO,Z:$O,"%":tR};function x(e,t){return function(n){var r,i,o,a=[],l=-1,s=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++l<c;)37===e.charCodeAt(l)&&(a.push(e.slice(s,l)),null!=(i=EO[r=e.charAt(++l)])?r=e.charAt(++l):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),s=l+1);return a.push(e.slice(s,l)),a.join("")}}function k(e,t){return function(n){var r,i,o=SO(1900,void 0,1);if(C(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=CO(SO(o.y,0,1))).getUTCDay(),r=i>4||0===i?vO.ceil(r):vO(r),r=hO.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=kO(SO(o.y,0,1))).getDay(),r=i>4||0===i?aO.ceil(r):aO(r),r=rO.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?CO(SO(o.y,0,1)).getUTCDay():kO(SO(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,CO(o)):kO(o)}}function C(e,t,n,r){for(var i,o,a=0,l=t.length,s=n.length;a<l;){if(r>=s)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in EO?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return y.x=x(n,y),y.X=x(r,y),y.c=x(t,y),_.x=x(n,_),_.X=x(r,_),_.c=x(t,_),{format:function(e){var t=x(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}(e),AO=MO.format,TO=MO.parse,MO.utcFormat,LO=MO.utcParse}({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"]});var YR,GR,XR,ZR,KR,JR,QR,eP,tP,nP,rP,iP,oP,aP,lP,sP,cP,uP,dP,fP,hP,pP,gP=Pd(WS());function vP(){if(eP)return QR;eP=1;var e=(ZR||(ZR=1,XR=function(e,t){return null!=e&&t in Object(e)}),XR),t=function(){if(JR)return KR;JR=1;var e=RA(),t=SS(),n=MS(),r=VM(),i=AS(),o=PA();return KR=function(a,l,s){for(var c=-1,u=(l=e(l,a)).length,d=!1;++c<u;){var f=o(l[c]);if(!(d=null!=a&&s(a,f)))break;a=a[f]}return d||++c!=u?d:!!(u=null==a?0:a.length)&&i(u)&&r(f,u)&&(n(a)||t(a))},KR}();return QR=function(n,r){return null!=n&&t(n,r,e)},QR}function mP(){if(nP)return tP;nP=1;var e=function(){if(GR)return YR;GR=1;var e=zA(),t=WA(),n=RA();return YR=function(r,i,o){for(var a=-1,l=i.length,s={};++a<l;){var c=i[a],u=e(r,c);o(u,c)&&t(s,n(c,r),u)}return s},YR}(),t=vP();return tP=function(n,r){return e(n,r,(function(e,r){return t(n,r)}))},tP}function bP(){if(iP)return rP;return iP=1,rP=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},rP}function yP(){if(sP)return lP;sP=1;var e=bP(),t=function(){if(aP)return oP;aP=1;var e=bC(),t=SS(),n=MS(),r=e?e.isConcatSpreadable:void 0;return oP=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}();return lP=function n(r,i,o,a,l){var s=-1,c=r.length;for(o||(o=t),l||(l=[]);++s<c;){var u=r[s];i>0&&o(u)?i>1?n(u,i-1,o,a,l):e(l,u):a||(l[l.length]=u)}return l},lP}function _P(){if(fP)return dP;fP=1;var e=function(){if(uP)return cP;uP=1;var e=yP();return cP=function(t){return null!=t&&t.length?e(t,1):[]},cP}(),t=ZM(),n=JM();return dP=function(r){return n(t(r,void 0,e),r+"")}}var wP,xP,kP,CP,SP,MP,AP,TP,LP,EP,OP,RP,PP,zP,DP,NP,IP,BP,FP,jP,WP,HP,UP,VP,$P,qP,YP,GP,XP,ZP,KP,JP,QP,ez,tz,nz,rz,iz,oz,az,lz,sz,cz,uz,dz=function(){if(pP)return hP;pP=1;var e=mP(),t=_P()((function(t,n){return null==t?{}:e(t,n)}));return hP=t}(),fz=Pd(dz);function hz(){if(CP)return kP;CP=1;var e=nL(),t=(xP||(xP=1,wP=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}),wP),n=aL();return kP=function(r,i,o,a,l,s){var c=1&o,u=r.length,d=i.length;if(u!=d&&!(c&&d>u))return!1;var f=s.get(r),h=s.get(i);if(f&&h)return f==i&&h==r;var p=-1,g=!0,v=2&o?new e:void 0;for(s.set(r,i),s.set(i,r);++p<u;){var m=r[p],b=i[p];if(a)var y=c?a(b,m,p,i,r,s):a(m,b,p,r,i,s);if(void 0!==y){if(y)continue;g=!1;break}if(v){if(!t(i,(function(e,t){if(!n(v,t)&&(m===e||l(m,e,o,a,s)))return v.push(t)}))){g=!1;break}}else if(m!==b&&!l(m,b,o,a,s)){g=!1;break}}return s.delete(r),s.delete(i),g},kP}function pz(){if(TP)return AP;return TP=1,AP=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},AP}function gz(){if(EP)return LP;EP=1;var e=bC(),t=vS(),n=hC(),r=hz(),i=(MP||(MP=1,SP=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}),SP),o=pz(),a=e?e.prototype:void 0,l=a?a.valueOf:void 0;return LP=function(e,a,s,c,u,d,f){switch(s){case"[object DataView]":if(e.byteLength!=a.byteLength||e.byteOffset!=a.byteOffset)return!1;e=e.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=a.byteLength||!d(new t(e),new t(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+a);case"[object Error]":return e.name==a.name&&e.message==a.message;case"[object RegExp]":case"[object String]":return e==a+"";case"[object Map]":var h=i;case"[object Set]":var p=1&c;if(h||(h=o),e.size!=a.size&&!p)return!1;var g=f.get(e);if(g)return g==a;c|=2,f.set(e,a);var v=r(h(e),h(a),c,u,d,f);return f.delete(e),v;case"[object Symbol]":if(l)return l.call(e)==l.call(a)}return!1},LP}function vz(){if(RP)return OP;RP=1;var e=bP(),t=MS();return OP=function(n,r,i){var o=r(n);return t(n)?o:e(o,i(n))},OP}function mz(){if(zP)return PP;return zP=1,PP=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o},PP}function bz(){if(NP)return DP;return NP=1,DP=function(){return[]}}function yz(){if(BP)return IP;BP=1;var e=mz(),t=bz(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,i=r?function(t){return null==t?[]:(t=Object(t),e(r(t),(function(e){return n.call(t,e)})))}:t;return IP=i}function _z(){if(HP)return WP;HP=1;var e=xS(),t=function(){if(jP)return FP;jP=1;var e=_S()(Object.keys,Object);return FP=e}(),n=Object.prototype.hasOwnProperty;return WP=function(r){if(!e(r))return t(r);var i=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&i.push(o);return i},WP}function wz(){if(VP)return UP;VP=1;var e=$M(),t=_z(),n=TS();return UP=function(r){return n(r)?e(r):t(r)},UP}function xz(){if(qP)return $P;qP=1;var e=vz(),t=yz(),n=wz();return $P=function(r){return e(r,n,t)},$P}function kz(){if(ez)return QP;ez=1;var e=CC()(mC(),"Set");return QP=e}function Cz(){if(iz)return rz;iz=1;var e=function(){if(ZP)return XP;ZP=1;var e=CC()(mC(),"DataView");return XP=e}(),t=SC(),n=function(){if(JP)return KP;JP=1;var e=CC()(mC(),"Promise");return KP=e}(),r=kz(),i=function(){if(nz)return tz;nz=1;var e=CC()(mC(),"WeakMap");return tz=e}(),o=yC(),a=kC(),l="[object Map]",s="[object Promise]",c="[object Set]",u="[object WeakMap]",d="[object DataView]",f=a(e),h=a(t),p=a(n),g=a(r),v=a(i),m=o;return(e&&m(new e(new ArrayBuffer(1)))!=d||t&&m(new t)!=l||n&&m(n.resolve())!=s||r&&m(new r)!=c||i&&m(new i)!=u)&&(m=function(e){var t=o(e),n="[object Object]"==t?e.constructor:void 0,r=n?a(n):"";if(r)switch(r){case f:return d;case h:return l;case p:return s;case g:return c;case v:return u}return t}),rz=m}function Sz(){if(az)return oz;az=1;var e=EC(),t=hz(),n=gz(),r=function(){if(GP)return YP;GP=1;var e=xz(),t=Object.prototype.hasOwnProperty;return YP=function(n,r,i,o,a,l){var s=1&i,c=e(n),u=c.length;if(u!=e(r).length&&!s)return!1;for(var d=u;d--;){var f=c[d];if(!(s?f in r:t.call(r,f)))return!1}var h=l.get(n),p=l.get(r);if(h&&p)return h==r&&p==n;var g=!0;l.set(n,r),l.set(r,n);for(var v=s;++d<u;){var m=n[f=c[d]],b=r[f];if(o)var y=s?o(b,m,f,r,n,l):o(m,b,f,n,r,l);if(!(void 0===y?m===b||a(m,b,i,o,l):y)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var _=n.constructor,w=r.constructor;_==w||!("constructor"in n)||!("constructor"in r)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(g=!1)}return l.delete(n),l.delete(r),g},YP}(),i=Cz(),o=MS(),a=jS(),l=jM(),s="[object Arguments]",c="[object Array]",u="[object Object]",d=Object.prototype.hasOwnProperty;return oz=function(f,h,p,g,v,m){var b=o(f),y=o(h),_=b?c:i(f),w=y?c:i(h),x=(_=_==s?u:_)==u,k=(w=w==s?u:w)==u,C=_==w;if(C&&a(f)){if(!a(h))return!1;b=!0,x=!1}if(C&&!x)return m||(m=new e),b||l(f)?t(f,h,p,g,v,m):n(f,h,_,p,g,v,m);if(!(1&p)){var S=x&&d.call(f,"__wrapped__"),M=k&&d.call(h,"__wrapped__");if(S||M){var A=S?f.value():f,T=M?h.value():h;return m||(m=new e),v(A,T,p,g,m)}}return!!C&&(m||(m=new e),r(f,h,p,g,v,m))},oz}function Mz(){if(sz)return lz;sz=1;var e=Sz(),t=CS();return lz=function n(r,i,o,a,l){return r===i||(null==r||null==i||!t(r)&&!t(i)?r!=r&&i!=i:e(r,i,o,a,n,l))},lz}var Az=Pd(function(){if(uz)return cz;uz=1;var e=Mz();return cz=function(t,n){return e(t,n)}}()),Tz=L(),Lz=!0,Ez="default",Oz=function(e){var t=e.children,n=e.animate,r=void 0===n||n,i=e.config,o=void 0===i?"default":i,a=A((function(){var e=_T(o)?uw[o]:o;return{animate:r,config:e}}),[r,o]);return ln(Tz.Provider,{value:a,children:t})},Rz=function(){return T(Tz)},Pz=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?P(r,{},t):t},zz={position:"relative"},Dz=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=void 0===r||r,o=e.isInteractive,a=void 0===o||o,l=e.animate,s=e.motionConfig,c=C(null);return ln(QA,{theme:n,children:ln(Oz,{animate:l,config:s,children:ln(yT,{container:c,children:ln(Pz,{condition:i,wrapper:ln("div",{style:zz,ref:c}),children:[t,a&&ln(bT,{})]})})})})},Nz=function(e,t){return e.width===t.width&&e.height===t.height},Iz=function(e){var t=e.children,n=e.width,i=e.height,o=e.onResize,a=OT({width:n,height:i},e.debounceResize,{equalityFn:Nz})[0];return x((function(){null==o||o(a)}),[a,o]),ln(r,{children:t(a)})},Bz=function(e){var t=e.children,n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=void 0===o?0:o;return ln(LT,{defaultWidth:n,defaultHeight:r,children:function(e){var n=e.width,r=e.height;return ln(Iz,{width:n,height:r,onResize:i,debounceResize:a,children:t})}})};function Fz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jz(){return jz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jz.apply(null,arguments)}function Wz(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Hz=["id","colors"],Uz={linearGradient:function(e){var t=e.id,n=e.colors;return ln("linearGradient",jz({id:t,x1:0,x2:0,y1:0,y2:1},Wz(e,Hz),{children:n.map((function(e){var t=e.offset,n=e.color,r=e.opacity;return ln("stop",{offset:t+"%",stopColor:n,stopOpacity:void 0!==r?r:1},t)}))}))}},Vz="#000000",$z="#ffffff",qz=4,Yz=4,Gz=!1,Xz=E((function(e){var t=e.id,n=e.background,r=void 0===n?$z:n,i=e.color,o=void 0===i?Vz:i,a=e.size,l=void 0===a?qz:a,s=e.padding,c=void 0===s?Yz:s,u=e.stagger,d=void 0===u?Gz:u,f=l+c,h=l/2,p=c/2;return!0===d&&(f=2*l+2*c),ln("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[ln("rect",{width:f,height:f,fill:r}),ln("circle",{cx:p+h,cy:p+h,r:h,fill:o}),d&&ln("circle",{cx:1.5*c+l+h,cy:1.5*c+l+h,r:h,fill:o})]})})),Zz=function(e){return e*Math.PI/180},Kz=function(e){return 180*e/Math.PI},Jz=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},Qz={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},eD=5,tD=0,nD="#000000",rD="#ffffff",iD=2,oD=E((function(e){var t=e.id,n=e.spacing,r=void 0===n?eD:n,i=e.rotation,o=void 0===i?tD:i,a=e.background,l=void 0===a?nD:a,s=e.color,c=void 0===s?rD:s,u=e.lineWidth,d=void 0===u?iD:u,f=Math.round(o)%360,h=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var p,g=h,v=h;return 0===f?p="\n M 0 0 L "+g+" 0\n M 0 "+v+" L "+g+" "+v+"\n ":90===f?p="\n M 0 0 L 0 "+v+"\n M "+g+" 0 L "+g+" "+v+"\n ":(g=Math.abs(h/Math.sin(Zz(f))),v=h/Math.sin(Zz(90-f)),p=f>0?"\n M 0 "+-v+" L "+2*g+" "+v+"\n M "+-g+" "+-v+" L "+g+" "+v+"\n M "+-g+" 0 L "+g+" "+2*v+"\n ":"\n M "+-g+" "+v+" L "+g+" "+-v+"\n M "+-g+" "+2*v+" L "+2*g+" "+-v+"\n M 0 "+2*v+" L "+2*g+" 0\n "),ln("pattern",{id:t,width:g,height:v,patternUnits:"userSpaceOnUse",children:[ln("rect",{width:g,height:v,fill:l,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),ln("path",{d:p,strokeWidth:d,stroke:c,strokeLinecap:"square"})]})})),aD="#000000",lD="#ffffff",sD=4,cD=4,uD=!1,dD=E((function(e){var t=e.id,n=e.color,r=void 0===n?aD:n,i=e.background,o=void 0===i?lD:i,a=e.size,l=void 0===a?sD:a,s=e.padding,c=void 0===s?cD:s,u=e.stagger,d=void 0===u?uD:u,f=l+c,h=c/2;return!0===d&&(f=2*l+2*c),ln("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[ln("rect",{width:f,height:f,fill:o}),ln("rect",{x:h,y:h,width:l,height:l,fill:r}),d&&ln("rect",{x:1.5*c+l,y:1.5*c+l,width:l,height:l,fill:r})]})})),fD={patternDots:Xz,patternLines:oD,patternSquares:dD},hD=["type"],pD=jz({},Uz,fD),gD=E((function(e){var t=e.defs;return!t||t.length<1?null:ln("defs",{"aria-hidden":!0,children:t.map((function(e){var t=e.type,n=Wz(e,hD);return pD[t]?R(pD[t],jz({key:n.id},n)):null}))})})),vD=S((function(e,t){var n=e.width,r=e.height,i=e.margin,o=e.defs,a=e.children,l=e.role,s=e.ariaLabel,c=e.ariaLabelledBy,u=e.ariaDescribedBy,d=e.isFocusable,f=eT();return ln("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:r,role:l,"aria-label":s,"aria-labelledby":c,"aria-describedby":u,focusable:d,tabIndex:d?0:void 0,ref:t,children:[ln(gD,{defs:o}),ln("rect",{width:n,height:r,fill:f.background}),ln("g",{transform:"translate("+i.left+","+i.top+")",children:a})]})})),mD=E((function(e){var t=e.size,n=e.color,r=e.borderWidth;return ln("circle",{r:t/2,fill:n,stroke:e.borderColor,strokeWidth:r,style:{pointerEvents:"none"}})})),bD=E((function(e){var t=e.x,n=e.y,r=e.symbol,i=void 0===r?mD:r,o=e.size,a=e.datum,l=e.color,s=e.borderWidth,c=e.borderColor,u=e.label,d=e.labelTextAnchor,f=void 0===d?"middle":d,h=e.labelYOffset,p=void 0===h?-12:h,g=e.ariaLabel,v=e.ariaLabelledBy,m=e.ariaDescribedBy,b=e.ariaHidden,y=e.ariaDisabled,_=e.isFocusable,w=void 0!==_&&_,x=e.tabIndex,k=void 0===x?0:x,C=e.onFocus,S=e.onBlur,A=e.testId,T=eT(),L=Rz(),E=L.animate,O=tx({transform:"translate("+t+", "+n+")",config:L.config,immediate:!E}),P=M((function(e){null==C||C(a,e)}),[C,a]),z=M((function(e){null==S||S(a,e)}),[S,a]);return ln(fC.g,{transform:O.transform,style:{pointerEvents:"none"},focusable:w,tabIndex:w?k:void 0,"aria-label":g,"aria-labelledby":v,"aria-describedby":m,"aria-disabled":y,"aria-hidden":b,onFocus:w&&C?P:void 0,onBlur:w&&S?z:void 0,"data-testid":A,children:[R(i,{size:o,color:l,datum:a,borderWidth:s,borderColor:c}),u&&ln("text",{textAnchor:f,y:p,style:qA(T.dots.text),children:u})]})})),yD=E((function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,o=e.value,a=e.lineStyle,l=e.textStyle,s=e.legend,c=e.legendNode,u=e.legendPosition,d=void 0===u?"top-right":u,f=e.legendOffsetX,h=void 0===f?14:f,p=e.legendOffsetY,g=void 0===p?14:p,v=e.legendOrientation,m=void 0===v?"horizontal":v,b=eT(),y=0,_=0,w=0,x=0;if("y"===r?(w=i(o),_=t):(y=i(o),x=n),s&&!c){var k=function(e){var t=e.width,n=e.height,r=e.position,i=e.offsetX,o=e.offsetY,a=e.orientation,l=0,s=0,c="vertical"===a?-90:0,u="start";if("x"===e.axis)switch(r){case"top-left":l=-i,s=o,u="end";break;case"top":s=-o,u="horizontal"===a?"middle":"start";break;case"top-right":l=i,s=o,u="horizontal"===a?"start":"end";break;case"right":l=i,s=n/2,u="horizontal"===a?"start":"middle";break;case"bottom-right":l=i,s=n-o,u="start";break;case"bottom":s=n+o,u="horizontal"===a?"middle":"end";break;case"bottom-left":s=n-o,l=-i,u="horizontal"===a?"end":"start";break;case"left":l=-i,s=n/2,u="horizontal"===a?"end":"middle"}else switch(r){case"top-left":l=i,s=-o,u="start";break;case"top":l=t/2,s=-o,u="horizontal"===a?"middle":"start";break;case"top-right":l=t-i,s=-o,u="horizontal"===a?"end":"start";break;case"right":l=t+i,u="horizontal"===a?"start":"middle";break;case"bottom-right":l=t-i,s=o,u="end";break;case"bottom":l=t/2,s=o,u="horizontal"===a?"middle":"end";break;case"bottom-left":l=i,s=o,u="horizontal"===a?"start":"end";break;case"left":l=-i,u="horizontal"===a?"end":"middle"}return{x:l,y:s,rotation:c,textAnchor:u}}({axis:r,width:t,height:n,position:d,offsetX:h,offsetY:g,orientation:m});c=ln("text",{transform:"translate("+k.x+", "+k.y+") rotate("+k.rotation+")",textAnchor:k.textAnchor,dominantBaseline:"central",style:l,children:s})}return ln("g",{transform:"translate("+y+", "+w+")",children:[ln("line",{x1:0,x2:_,y1:0,y2:x,stroke:b.markers.lineColor,strokeWidth:b.markers.lineStrokeWidth,style:a}),c]})})),_D=E((function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,o=e.yScale;return t&&0!==t.length?t.map((function(e,t){return ln(yD,jz({},e,{width:n,height:r,scale:"y"===e.axis?o:i}),t)})):null})),wD=function(e){var t=Rz(),n=t.animate,r=t.config,i=function(e){var t=C();return x((function(){t.current=e}),[e]),t.current}(e),o=A((function(){return va(i,e)}),[i,e]),a=tx({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return sx(a,o)};L(void 0);var xD={basis:qu,basisClosed:function(e){return new Yu(e)},basisOpen:function(e){return new Gu(e)},bundle:Zu,cardinal:Qu,cardinalClosed:td,cardinalOpen:rd,catmullRom:ad,catmullRomClosed:sd,catmullRomOpen:ud,linear:Du,linearClosed:function(e){return new dd(e)},monotoneX:function(e){return new vd(e)},monotoneY:function(e){return new md(e)},natural:function(e){return new yd(e)},step:function(e){return new wd(e,.5)},stepAfter:function(e){return new wd(e,1)},stepBefore:function(e){return new wd(e,0)}},kD=Object.keys(xD);kD.filter((function(e){return e.endsWith("Closed")})),sL(kD,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),sL(kD,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var CD=function(e){if(!xD[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return xD[e]};NE(wL),NE(kL),NE(SL),NE(AL),NE(LL),NE(OL),NE(PL),NE(DL),NE(IL),NE(cE),NE(dE),NE(hE),NE(yE),NE(gE),NE(mE),NE(FL),NE(WL),NE(UL),NE($L),NE(YL),NE(XL),NE(KL),NE(QL),NE(tE),NE(rE),NE(oE),NE(lE),NE(wL),NE(kL),NE(SL),NE(AL),NE(LL),NE(OL),NE(PL),NE(DL),NE(IL),NE(cE),NE(dE),NE(hE),NE(yE),NE(gE),NE(mE),NE(FL),NE(WL),NE(UL),NE($L),NE(YL),NE(XL),NE(KL),NE(QL),NE(tE),NE(rE),NE(oE),NE(lE),Ga(bL);var SD={top:0,right:0,bottom:0,left:0},MD=function(e,t,n){return void 0===n&&(n={}),A((function(){var r=jz({},SD,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}}),[e,t,n])},AD=function(){var e=C(null),t=w({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=w((function(){return"undefined"==typeof ResizeObserver?null:new ResizeObserver((function(e){var t=e[0];return r(t.contentRect)}))}))[0];return x((function(){return e.current&&null!==i&&i.observe(e.current),function(){null!==i&&i.disconnect()}}),[i]),[e,n]},TD=function(e){return"function"==typeof e?e:"string"==typeof e?0===e.indexOf("time:")?AO(e.slice("5")):YE(e):function(e){return""+e}},LD=function(e){return A((function(){return TD(e)}),[e])},ED=function(e){return IE(e)?e:function(t){return jA(t,e)}},OD=function(e){return A((function(){return ED(e)}),[e])},RD=function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))},PD=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},zD=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,o=r.clientY,a=e.getBoundingClientRect(),l=(n=void 0!==e.getBBox?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===a.width?1:n.width/a.width;return[(i-a.left)*l,(o-a.top)*l]},DD=Object.keys(Uz),ND=Object.keys(fD),ID=function(e,t,n,r){var i=void 0===r?{}:r,o=i.dataKey,a=i.colorKey,l=void 0===a?"color":a,s=i.targetKey,c=void 0===s?"fill":s,u=[],d={};return e.length&&t.length&&(u=[].concat(e),t.forEach((function(t){for(var r,i=function(){var n=r.value,i=n.id;if(function(e,t,n){if("*"===e)return!0;if(IE(e))return e(t);if(gP(e)){var r=n?jA(t,n):t;return Az(fz(r,Object.keys(e)),e)}return!1}(n.match,t,o)){var a=e.find((function(e){return e.id===i}));if(a)if(ND.includes(a.type))if("inherit"===a.background||"inherit"===a.color){var s=jA(t,l),f=a.background,h=a.color,p=i;"inherit"===a.background&&(p=p+".bg."+s,f=s),"inherit"===a.color&&(p=p+".fg."+s,h=s),UA(t,c,"url(#"+p+")"),d[p]||(u.push(jz({},a,{id:p,background:f,color:h})),d[p]=1)}else UA(t,c,"url(#"+i+")");else if(DD.includes(a.type))if(a.colors.map((function(e){return e.color})).includes("inherit")){var g=jA(t,l),v=i,m=jz({},a,{colors:a.colors.map((function(e,t){return"inherit"!==e.color?e:(v=v+"."+t+"."+g,jz({},e,{color:"inherit"===e.color?g:e.color}))}))});m.id=v,UA(t,c,"url(#"+v+")"),d[v]||(u.push(m),d[v]=1)}else UA(t,c,"url(#"+i+")");return 1}},a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Fz(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fz(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(r=a()).done&&!i(););}))),u};function BD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=0,r=t;n<r.length;n++){var i=r[n];"function"==typeof i?i(e):null!=i&&(i.current=e)}}}var FD=function(e,t){e.font=(t.fontWeight?t.fontWeight+" ":"")+t.fontSize+"px "+t.fontFamily},jD=function(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=0),t.outlineWidth>0&&(e.strokeStyle=t.outlineColor,e.lineWidth=2*t.outlineWidth,e.lineJoin="round",e.strokeText(n,r,i)),e.fillStyle=t.fill,e.fillText(n,r,i)};function WD(){return WD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WD.apply(null,arguments)}function HD(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var UD,VD,$D,qD,YD,GD,XD,ZD,KD=["style","children"],JD=["outlineWidth","outlineColor","outlineOpacity"],QD=function(e){var t=e.style,n=e.children,i=HD(e,KD),o=t.outlineWidth,a=t.outlineColor,l=t.outlineOpacity,s=HD(t,JD);return ln(r,{children:[o>0&&ln(fC.text,WD({},i,{style:WD({},s,{strokeWidth:2*o,stroke:a,strokeOpacity:l,strokeLinejoin:"round"}),children:n})),ln(fC.text,WD({},i,{style:s,children:n}))]})};function eN(){if(qD)return $D;qD=1;var e=kz(),t=VD?UD:(VD=1,UD=function(){}),n=pz(),r=e&&1/n(new e([,-0]))[1]==1/0?function(t){return new e(t)}:t;return $D=r}function tN(){if(GD)return YD;GD=1;var e=nL(),t=iL(),n=oL(),r=aL(),i=eN(),o=pz();return YD=function(a,l,s){var c=-1,u=t,d=a.length,f=!0,h=[],p=h;if(s)f=!1,u=n;else if(d>=200){var g=l?null:i(a);if(g)return o(g);f=!1,u=r,p=new e}else p=l?[]:h;e:for(;++c<d;){var v=a[c],m=l?l(v):v;if(v=s||0!==v?v:0,f&&m==m){for(var b=p.length;b--;)if(p[b]===m)continue e;l&&p.push(m),h.push(v)}else u(p,m,s)||(p!==h&&p.push(m),h.push(v))}return h},YD}var nN,rN,iN,oN,aN,lN,sN,cN,uN,dN,fN,hN,pN,gN,vN,mN,bN,yN,_N,wN,xN,kN,CN=function(){if(ZD)return XD;ZD=1;var e=tN();return XD=function(t){return t&&t.length?e(t):[]},XD}(),SN=Pd(CN);function MN(){if(oN)return iN;oN=1;var e=_C();return iN=function(t){return t==t&&!e(t)}}function AN(){if(cN)return sN;return cN=1,sN=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},sN}function TN(){if(dN)return uN;dN=1;var e=function(){if(rN)return nN;rN=1;var e=EC(),t=Mz();return nN=function(n,r,i,o){var a=i.length,l=a,s=!o;if(null==n)return!l;for(n=Object(n);a--;){var c=i[a];if(s&&c[2]?c[1]!==n[c[0]]:!(c[0]in n))return!1}for(;++a<l;){var u=(c=i[a])[0],d=n[u],f=c[1];if(s&&c[2]){if(void 0===d&&!(u in n))return!1}else{var h=new e;if(o)var p=o(d,f,u,n,r,h);if(!(void 0===p?t(f,d,3,o,h):p))return!1}}return!0},nN}(),t=function(){if(lN)return aN;lN=1;var e=MN(),t=wz();return aN=function(n){for(var r=t(n),i=r.length;i--;){var o=r[i],a=n[o];r[i]=[o,a,e(a)]}return r},aN}(),n=AN();return uN=function(r){var i=t(r);return 1==i.length&&i[0][2]?n(i[0][0],i[0][1]):function(t){return t===r||e(t,r,i)}},uN}function LN(){if(yN)return bN;yN=1;var e=(gN||(gN=1,pN=function(e){return function(t){return null==t?void 0:t[e]}}),pN),t=function(){if(mN)return vN;mN=1;var e=zA();return vN=function(t){return function(n){return e(n,t)}},vN}(),n=TA(),r=PA();return bN=function(i){return n(i)?e(r(i)):t(i)}}function EN(){if(wN)return _N;wN=1;var e=TN(),t=function(){if(hN)return fN;hN=1;var e=Mz(),t=DA(),n=vP(),r=TA(),i=MN(),o=AN(),a=PA();return fN=function(l,s){return r(l)&&i(s)?o(a(l),s):function(r){var i=t(r,l);return void 0===i&&i===s?n(r,l):e(s,i,3)}},fN}(),n=XM(),r=MS(),i=LN();return _N=function(o){return"function"==typeof o?o:null==o?n:"object"==typeof o?r(o)?t(o[0],o[1]):e(o):i(o)}}var ON,RN,PN,zN,DN,NN,IN,BN,FN,jN,WN,HN,UN,VN,$N,qN,YN,GN,XN=function(){if(kN)return xN;kN=1;var e=EN(),t=tN();return xN=function(n,r){return n&&n.length?t(n,e(r,2)):[]},xN}(),ZN=Pd(XN);function KN(){if(NN)return DN;NN=1;var e=function(){if(RN)return ON;RN=1;var e=zC(),t=wz();return ON=function(n,r){return n&&e(n,r,t)},ON}(),t=function(){if(zN)return PN;zN=1;var e=TS();return PN=function(t,n){return function(r,i){if(null==r)return r;if(!e(r))return t(r,i);for(var o=r.length,a=n?o:-1,l=Object(r);(n?a--:++a<o)&&!1!==i(l[a],a,l););return r}},PN}(),n=t(e);return DN=n}function JN(){if(VN)return UN;VN=1;var e=function(){if(HN)return WN;HN=1;var e=AA();return WN=function(t,n){if(t!==n){var r=void 0!==t,i=null===t,o=t==t,a=e(t),l=void 0!==n,s=null===n,c=n==n,u=e(n);if(!s&&!u&&!a&&t>n||a&&l&&c&&!s&&!u||i&&l&&c||!r&&c||!o)return 1;if(!i&&!a&&!u&&t<n||u&&r&&o&&!i&&!a||s&&r&&o||!l&&o||!c)return-1}return 0}}();return UN=function(t,n,r){for(var i=-1,o=t.criteria,a=n.criteria,l=o.length,s=r.length;++i<l;){var c=e(o[i],a[i]);if(c)return i>=s?c:c*("desc"==r[i]?-1:1)}return t.index-n.index},UN}function QN(){if(qN)return $N;qN=1;var e=EA(),t=zA(),n=EN(),r=function(){if(BN)return IN;BN=1;var e=KN(),t=TS();return IN=function(n,r){var i=-1,o=t(n)?Array(n.length):[];return e(n,(function(e,t,n){o[++i]=r(e,t,n)})),o},IN}(),i=(jN||(jN=1,FN=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}),FN),o=HS(),a=JN(),l=XM(),s=MS();return $N=function(c,u,d){u=u.length?e(u,(function(e){return s(e)?function(n){return t(n,1===e.length?e[0]:e)}:e})):[l];var f=-1;u=e(u,o(n));var h=r(c,(function(t,n,r){return{criteria:e(u,(function(e){return e(t)})),index:++f,value:t}}));return i(h,(function(e,t){return a(e,t,d)}))},$N}var eI,tI,nI,rI,iI=Pd(function(){if(GN)return YN;GN=1;var e=yP(),t=QN(),n=QM(),r=eA(),i=n((function(n,i){if(null==n)return[];var o=i.length;return o>1&&r(n,i[0],i[1])?i=[]:o>2&&r(i[0],i[1],i[2])&&(i=[i[0]]),t(n,e(i,1),[])}));return YN=i}());var oI=Pd(function(){if(rI)return nI;rI=1;var e=function(){if(tI)return eI;tI=1;var e=yC(),t=CS();return eI=function(n){return t(n)&&"[object Date]"==e(n)}}(),t=HS(),n=FM(),r=n&&n.isDate,i=r?t(r):e;return nI=i}()),aI=new Date,lI=new Date;function sI(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,l=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return l;do{l.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return l},i.filter=function(n){return sI((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return aI.setTime(+t),lI.setTime(+r),e(aI),e(lI),Math.floor(n(aI,lI))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var cI=sI((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));cI.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?sI((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):cI:null},cI.range;var uI=1e3,dI=6e4,fI=36e5,hI=6048e5,pI=sI((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*uI)}),(function(e,t){return(t-e)/uI}),(function(e){return e.getUTCSeconds()}));pI.range;var gI=sI((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*uI)}),(function(e,t){e.setTime(+e+t*dI)}),(function(e,t){return(t-e)/dI}),(function(e){return e.getMinutes()}));gI.range;var vI=sI((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*uI-e.getMinutes()*dI)}),(function(e,t){e.setTime(+e+t*fI)}),(function(e,t){return(t-e)/fI}),(function(e){return e.getHours()}));function mI(e){return sI((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*dI)/hI}))}vI.range;var bI=mI(0),yI=mI(1),_I=mI(2),wI=mI(3),xI=mI(4),kI=mI(5),CI=mI(6);bI.range,yI.range,_I.range,wI.range,xI.range,kI.range,CI.range;var SI=sI((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));SI.range;var MI=sI((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));MI.every=function(e){return isFinite(e=Math.floor(e))&&e>0?sI((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},MI.range;var AI=sI((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*dI)}),(function(e,t){return(t-e)/dI}),(function(e){return e.getUTCMinutes()}));AI.range;var TI=sI((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*fI)}),(function(e,t){return(t-e)/fI}),(function(e){return e.getUTCHours()}));function LI(e){return sI((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/hI}))}TI.range;var EI=LI(0),OI=LI(1),RI=LI(2),PI=LI(3),zI=LI(4),DI=LI(5),NI=LI(6);EI.range,OI.range,RI.range,PI.range,zI.range,DI.range,NI.range;var II=sI((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));II.range;var BI=sI((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function FI(){return FI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FI.apply(null,arguments)}BI.every=function(e){return isFinite(e=Math.floor(e))&&e>0?sI((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},BI.range;var jI=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],WI={millisecond:[],second:jI.slice(0,1),minute:jI.slice(0,2),hour:jI.slice(0,3),day:jI.slice(0,4),month:jI.slice(0,5),year:jI.slice(0,6)},HI=function(e){var t=e.format,n=void 0===t?"native":t,r=e.precision,i=void 0===r?"millisecond":r,o=e.useUTC,a=void 0===o||o,l=function(e){return function(t){return WI[e].forEach((function(e){e(t)})),t}}(i);return function(e){if(void 0===e)return e;if("native"===n||e instanceof Date)return l(e);var t=a?LO(n):TO(n);return l(t(e))}},UI=0,VI="auto",$I=!1,qI=!1,YI=!1,GI=!0,XI=!1,ZI=function(e,t){void 0===t&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},KI=!1,JI=function(e){var t=e;return t.type="band",t},QI="native",eB="millisecond",tB="auto",nB="auto",rB=!0,iB=!1,oB=function(e,t,n){var r,i,o=e.format,a=void 0===o?QI:o,l=e.precision,s=void 0===l?eB:l,c=e.min,u=void 0===c?tB:c,d=e.max,f=void 0===d?nB:d,h=e.useUTC,p=void 0===h?rB:h,g=e.nice,v=void 0===g?iB:g,m=HI({format:a,precision:s,useUTC:p});r="auto"===u?m(t.min):"native"!==a?m(u):u,i="auto"===f?m(t.max):"native"!==a?m(f):f;var b=p?tu():function(){return $a.apply(eu(Ms,As,ws,ys,is,es,Jl,Zl,Xl,Rs).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}();b.range([0,n]),r&&i&&b.domain([r,i]),!0===v?b.nice():"object"!=typeof v&&"number"!=typeof v||b.nice(v);var y=b;return y.type="time",y.useUTC=p,y},aB=10,lB="auto",sB="auto",cB=!1,uB=!1,dB=!0,fB=function(e,t,n,r){var i,o=e.base,a=void 0===o?aB:o,l=e.min,s=void 0===l?lB:l,c=e.max,u=void 0===c?sB:c,d=e.round,f=void 0===d?cB:d,h=e.reverse,p=void 0===h?uB:h,g=e.nice,v=void 0===g?dB:g;if(t.all.some((function(e){return 0===e})))throw new Error("a log scale domain must not include or cross zero");var m,b,y=!1;if(t.all.filter((function(e){return null!=e})).forEach((function(e){y||(void 0===i?i=Math.sign(e):Math.sign(e)!==i&&(y=!0))})),y)throw new Error("a log scale domain must be strictly-positive or strictly-negative");m="auto"===s?t.min:s,b="auto"===u?t.max:u;var _=Pl().base(a),w="x"===r?[0,n]:[n,0];!0===f?_.rangeRound(w):_.range(w),!0===p?_.domain([b,m]):_.domain([m,b]),!0===v?_.nice():"number"==typeof v&&_.nice(v);var x=_;return x.type="log",x},hB=1,pB="auto",gB="auto",vB=!1,mB=!1,bB=!0,yB=function(e,t){return e===t},_B=function(e,t){return e.getTime()===t.getTime()};function wB(e,t,n,r){switch(e.type){case"linear":return function(e,t,n,r){var i,o,a,l,s=e.min,c=void 0===s?UI:s,u=e.max,d=void 0===u?VI:u,f=e.stacked,h=void 0===f?$I:f,p=e.reverse,g=void 0===p?qI:p,v=e.clamp,m=void 0===v?YI:v,b=e.nice,y=void 0===b?GI:b,_=e.round,w=void 0===_?XI:_;i="auto"===c?!0===h?null!=(o=t.minStacked)?o:0:t.min:c,a="auto"===d?!0===h?null!=(l=t.maxStacked)?l:0:t.max:d;var x=Cl().range("x"===r?[0,n]:[n,0]).interpolate(w?ba:fa).domain(g?[a,i]:[i,a]).clamp(m);return!0===y?x.nice():"number"==typeof y&&x.nice(y),ZI(x,h)}(e,t,n,r);case"point":return function(e,t,n){var r=Ka().range([0,n]).domain(t.all);return r.type="point",r}(0,t,n);case"band":return function(e,t,n,r){var i=e.round,o=void 0===i?KI:i,a=Xa().range("x"===r?[0,n]:[n,0]).domain(t.all).round(o);return JI(a)}(e,t,n,r);case"time":return oB(e,t,n);case"log":return fB(e,t,n,r);case"symlog":return function(e,t,n,r){var i,o,a=e.constant,l=void 0===a?hB:a,s=e.min,c=void 0===s?pB:s,u=e.max,d=void 0===u?gB:u,f=e.round,h=void 0===f?vB:f,p=e.reverse,g=void 0===p?mB:p,v=e.nice,m=void 0===v?bB:v;i="auto"===c?t.min:c,o="auto"===d?t.max:d;var b=Nl().constant(l),y="x"===r?[0,n]:[n,0];!0===h?b.rangeRound(y):b.range(y),!0===g?b.domain([o,i]):b.domain([i,o]),!0===m?b.nice():"number"==typeof m&&b.nice(m);var _=b;return _.type="symlog",_}(e,t,n,r);default:throw new Error("invalid scale spec")}}var xB=function(e,t,n){var r;if("stacked"in n&&n.stacked){var i=e.data["x"===t?"xStacked":"yStacked"];return null==i?null:n(i)}return null!=(r=n(e.data[t]))?r:null},kB=function(e,t,n,r,i){var o=e.map((function(e){return function(e){return FI({},e,{data:e.data.map((function(e){return{data:FI({},e)}}))})}(e)})),a=CB(o,t,n);"stacked"in t&&!0===t.stacked&&AB(a,o),"stacked"in n&&!0===n.stacked&&TB(a,o);var l=wB(t,a.x,r,"x"),s=wB(n,a.y,i,"y"),c=o.map((function(e){return FI({},e,{data:e.data.map((function(e){return FI({},e,{position:{x:xB(e,"x",l),y:xB(e,"y",s)}})}))})}));return FI({},a,{series:c,xScale:l,yScale:s})},CB=function(e,t,n){return{x:SB(e,"x",t),y:SB(e,"y",n)}},SB=function(e,t,n,r){var i={},o=i.getValue,a=void 0===o?function(e){return e.data[t]}:o,l=i.setValue,s=void 0===l?function(e,n){e.data[t]=n}:l;if("linear"===n.type)e.forEach((function(e){e.data.forEach((function(e){var t=a(e);t&&s(e,parseFloat(String(t)))}))}));else if("time"===n.type&&"native"!==n.format){var c=HI(n);e.forEach((function(e){e.data.forEach((function(e){var t=a(e);t&&s(e,c(t))}))}))}var u=[];switch(e.forEach((function(e){e.data.forEach((function(e){u.push(a(e))}))})),n.type){case"linear":var d=iI(SN(u).filter((function(e){return null!==e})),(function(e){return e}));return{all:d,min:Math.min.apply(Math,d),max:Math.max.apply(Math,d)};case"time":var f=ZN(u,(function(e){return e.getTime()})).slice(0).sort((function(e,t){return t.getTime()-e.getTime()})).reverse();return{all:f,min:f[0],max:NE(f)};default:var h=SN(u);return{all:h,min:h[0],max:NE(h)}}},MB=function(e,t,n){var r=function(e){return"x"===e?"y":"x"}(e),i=[];t[r].all.forEach((function(t){var o=oI(t)?_B:yB,a=[];n.forEach((function(n){var l=n.data.find((function(e){return o(e.data[r],t)})),s=null,c=null;if(void 0!==l){if(null!==(s=l.data[e])){var u=NE(a);void 0===u?c=s:null!==u&&(c=u+s)}l.data["x"===e?"xStacked":"yStacked"]=c}a.push(c),null!==c&&i.push(c)}))})),t[e].minStacked=Math.min.apply(Math,i),t[e].maxStacked=Math.max.apply(Math,i)},AB=function(e,t){return MB("x",e,t)},TB=function(e,t){return MB("y",e,t)},LB=function(e){var t=e.bandwidth();if(0===t)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(t){var r;return(null!=(r=e(t))?r:0)+n}},EB={millisecond:[cI,cI],second:[pI,pI],minute:[gI,AI],hour:[vI,TI],day:[sI((function(e){return e.setHours(0,0,0,0)}),(function(e,t){return e.setDate(e.getDate()+t)}),(function(e,t){return(t.getTime()-e.getTime())/864e5}),(function(e){return Math.floor(e.getTime()/864e5)})),sI((function(e){return e.setUTCHours(0,0,0,0)}),(function(e,t){return e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t.getTime()-e.getTime())/864e5}),(function(e){return Math.floor(e.getTime()/864e5)}))],week:[bI,EI],sunday:[bI,EI],monday:[yI,OI],tuesday:[_I,RI],wednesday:[wI,PI],thursday:[xI,zI],friday:[kI,DI],saturday:[CI,NI],month:[SI,II],year:[MI,BI]},OB=Object.keys(EB),RB=new RegExp("^every\\s*(\\d+)?\\s*("+OB.join("|")+")s?$","i"),PB=function(e,t){if(Array.isArray(t))return t;if("string"==typeof t&&"useUTC"in e){var n=t.match(RB);if(n){var r=n[1],i=n[2],o=EB[i][e.useUTC?1:0];if("day"===i){var a,l,s=e.domain(),c=s[0],u=s[1],d=new Date(u);return d.setDate(d.getDate()+1),null!=(a=null==(l=o.every(Number(null!=r?r:1)))?void 0:l.range(c,d))?a:[]}if(void 0===r)return e.ticks(o);var f=o.every(Number(r));if(f)return e.ticks(f)}throw new Error("Invalid tickValues: "+t)}if("ticks"in e){if(void 0===t)return e.ticks();if("number"==typeof(h=t)&&isFinite(h)&&Math.floor(h)===h)return e.ticks(t)}var h;return e.domain()};function zB(){return zB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zB.apply(null,arguments)}var DB=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,o=e.tickValues,a=e.tickSize,l=e.tickPadding,s=e.tickRotation,c=e.truncateTickAt,u=e.engine,d=void 0===u?"svg":u,f=PB(r,o),h=Qz[d],p="bandwidth"in r?LB(r):r,g={lineX:0,lineY:0},v={textX:0,textY:0},m="object"==typeof document&&"rtl"===document.dir,b=h.align.center,y=h.baseline.center;return"x"===n?(t=function(e){var t;return{x:null!=(t=p(e))?t:0,y:0}},g.lineY=a*("after"===i?1:-1),v.textY=(a+l)*("after"===i?1:-1),y="after"===i?h.baseline.top:h.baseline.bottom,0===s?b=h.align.center:"after"===i&&s<0||"before"===i&&s>0?(b=h.align[m?"left":"right"],y=h.baseline.center):("after"===i&&s>0||"before"===i&&s<0)&&(b=h.align[m?"right":"left"],y=h.baseline.center)):(t=function(e){var t;return{x:0,y:null!=(t=p(e))?t:0}},g.lineX=a*("after"===i?1:-1),v.textX=(a+l)*("after"===i?1:-1),b="after"===i?h.align.left:h.align.right),{ticks:f.map((function(e){var n="string"==typeof e?function(e){var t=String(e).length;return c&&c>0&&t>c?""+String(e).slice(0,c).concat("..."):""+e}(e):e;return zB({key:e instanceof Date?""+e.valueOf():""+e,value:n},t(e),g,v)})),textAlign:b,textBaseline:y}},NB=function(e,t){if(void 0===e||"function"==typeof e)return e;if("time"===t.type){var n=AO(e);return function(e){return n(e instanceof Date?e:new Date(e))}}return YE(e)},IB=function(e){var t,n=e.width,r=e.height,i=e.scale,o=e.axis,a=e.values,l=(t=a,(Array.isArray(t)?a:void 0)||PB(i,a)),s="bandwidth"in i?LB(i):i,c="x"===o?l.map((function(e){var t,n;return{key:e instanceof Date?""+e.valueOf():""+e,x1:null!=(t=s(e))?t:0,x2:null!=(n=s(e))?n:0,y1:0,y2:r}})):l.map((function(e){var t,r;return{key:e instanceof Date?""+e.valueOf():""+e,x1:0,x2:n,y1:null!=(t=s(e))?t:0,y2:null!=(r=s(e))?r:0}}));return c},BB=E((function(e){var t,n=e.value,r=e.format,i=e.lineX,o=e.lineY,a=e.onClick,l=e.textBaseline,s=e.textAnchor,c=e.theme,u=e.animatedProps,d=null!=(t=null==r?void 0:r(n))?t:n,f=A((function(){var e={opacity:u.opacity};return a?{style:zB({},e,{cursor:"pointer"}),onClick:function(e){return a(e,d)}}:{style:e}}),[u.opacity,a,d]);return ln(fC.g,zB({transform:u.transform},f,{children:[ln("line",{x1:0,x2:i,y1:0,y2:o,style:c.line}),ln(QD,{dominantBaseline:l,textAnchor:s,transform:u.textTransform,style:c.text,children:""+d})]}))})),FB={tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:0},jB=E((function(e){var t=e.axis,n=e.scale,i=e.x,o=void 0===i?0:i,a=e.y,l=void 0===a?0:a,s=e.length,c=e.ticksPosition,u=e.tickValues,d=e.tickSize,f=void 0===d?FB.tickSize:d,h=e.tickPadding,p=void 0===h?FB.tickPadding:h,g=e.tickRotation,v=void 0===g?FB.tickRotation:g,m=e.format,b=e.renderTick,y=void 0===b?BB:b,w=e.truncateTickAt,x=e.legend,k=e.legendPosition,C=void 0===k?FB.legendPosition:k,S=e.legendOffset,T=void 0===S?FB.legendOffset:S,L=e.style,E=e.onClick,O=e.ariaHidden,R=function(e,t){return A((function(){return XA(e,t)}),[e,t])}(eT().axis,L),P=A((function(){return NB(m,n)}),[m,n]),z=DB({axis:t,scale:n,ticksPosition:c,tickValues:u,tickSize:f,tickPadding:p,tickRotation:v,truncateTickAt:w}),D=z.ticks,N=z.textAlign,I=z.textBaseline,B=null;if(void 0!==x){var F,j=0,W=0,H=0;"y"===t?(H=-90,j=T,"start"===C?(F="start",W=s):"middle"===C?(F="middle",W=s/2):"end"===C&&(F="end")):(W=T,"start"===C?F="start":"middle"===C?(F="middle",j=s/2):"end"===C&&(F="end",j=s)),B=ln(r,{children:ln(QD,{transform:"translate("+j+", "+W+") rotate("+H+")",textAnchor:F,style:zB({},R.legend.text,{dominantBaseline:"central"}),children:x})})}var U=Rz(),V=U.animate,$=U.config,q=tx({transform:"translate("+o+","+l+")",lineX2:"x"===t?s:0,lineY2:"x"===t?0:s,config:$,immediate:!V}),Y=M((function(e){return{opacity:1,transform:"translate("+e.x+","+e.y+")",textTransform:"translate("+e.textX+","+e.textY+") rotate("+v+")"}}),[v]),G=M((function(e){return{opacity:0,transform:"translate("+e.x+","+e.y+")",textTransform:"translate("+e.textX+","+e.textY+") rotate("+v+")"}}),[v]),X=nx(D,{keys:function(e){return e.key},initial:Y,from:G,enter:Y,update:Y,leave:{opacity:0},config:$,immediate:!V});return ln(fC.g,{transform:q.transform,"aria-hidden":O,children:[X((function(e,t,n,r){return _.createElement(y,zB({tickIndex:r,format:P,rotate:v,textBaseline:I,textAnchor:N,truncateTickAt:w,animatedProps:e,theme:R.ticks},t,E?{onClick:E}:{}))})),ln(fC.line,{style:R.domain.line,x1:0,x2:q.lineX2,y1:0,y2:q.lineY2}),B]})})),WB=["top","right","bottom","left"],HB=E((function(e){var t=e.xScale,n=e.yScale,i=e.width,o=e.height,a={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return ln(r,{children:WB.map((function(e){var r=a[e];if(!r)return null;var l="top"===e||"bottom"===e;return ln(jB,zB({},r,{axis:l?"x":"y",x:"right"===e?i:0,y:"bottom"===e?o:0,scale:l?t:n,length:l?i:o,ticksPosition:"top"===e||"left"===e?"before":"after",truncateTickAt:r.truncateTickAt}),e)}))})})),UB=E((function(e){var t=e.animatedProps,n=eT();return ln(fC.line,zB({},t,n.grid.line))})),VB=E((function(e){var t=e.lines,n=Rz(),r=n.animate,i=nx(t,{keys:function(e){return e.key},initial:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},from:function(e){return{opacity:0,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},enter:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},update:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},leave:{opacity:0},config:n.config,immediate:!r});return ln("g",{children:i((function(e,t){return R(UB,zB({},t,{key:t.key,animatedProps:e}))}))})})),$B=E((function(e){var t=e.width,n=e.height,i=e.xScale,o=e.yScale,a=e.xValues,l=e.yValues,s=A((function(){return!!i&&IB({width:t,height:n,scale:i,axis:"x",values:a})}),[i,a,t,n]),c=A((function(){return!!o&&IB({width:t,height:n,scale:o,axis:"y",values:l})}),[n,t,o,l]);return ln(r,{children:[s&&ln(VB,{lines:s}),c&&ln(VB,{lines:c})]})})),qB=function(e,t){var n,r,i=t.axis,o=t.scale,a=t.x,l=void 0===a?0:a,s=t.y,c=void 0===s?0:s,u=t.length,d=t.ticksPosition,f=t.tickValues,h=t.tickSize,p=void 0===h?FB.tickSize:h,g=t.tickPadding,v=void 0===g?FB.tickPadding:g,m=t.tickRotation,b=void 0===m?FB.tickRotation:m,y=t.format,_=t.legend,w=t.legendPosition,x=void 0===w?FB.legendPosition:w,k=t.legendOffset,C=void 0===k?FB.legendOffset:k,S=t.theme,M=t.style,A=DB({axis:i,scale:o,ticksPosition:d,tickValues:f,tickSize:p,tickPadding:v,tickRotation:b,engine:"canvas"}),T=A.ticks,L=A.textAlign,E=A.textBaseline;e.save(),e.translate(l,c);var O=XA(S.axis,M);e.textAlign=L,e.textBaseline=E,FD(e,O.ticks.text);var R=null!=(n=O.domain.line.strokeWidth)?n:0;"string"!=typeof R&&R>0&&(e.lineWidth=R,e.lineCap="square",O.domain.line.stroke&&(e.strokeStyle=O.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo("x"===i?u:0,"x"===i?0:u),e.stroke());var P="function"==typeof y?y:function(e){return""+e},z=null!=(r=O.ticks.line.strokeWidth)?r:0,D="string"!=typeof z&&z>0;if(T.forEach((function(t){D&&(e.lineWidth=z,e.lineCap="square",O.ticks.line.stroke&&(e.strokeStyle=O.ticks.line.stroke),e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(t.x+t.lineX,t.y+t.lineY),e.stroke());var n=P(t.value);e.save(),e.translate(t.x+t.textX,t.y+t.textY),e.rotate(Zz(b)),jD(e,O.ticks.text,""+n),e.fillText(""+n,0,0),e.restore()})),void 0!==_){var N=0,I=0,B=0,F="center";"y"===i?(B=-90,N=C,"start"===x?(F="start",I=u):"middle"===x?(F="center",I=u/2):"end"===x&&(F="end")):(I=C,"start"===x?F="start":"middle"===x?(F="center",N=u/2):"end"===x&&(F="end",N=u)),e.translate(N,I),e.rotate(Zz(B)),FD(e,O.legend.text),O.legend.text.fill&&(e.fillStyle=O.legend.text.fill),e.textAlign=F,e.textBaseline="middle",jD(e,O.legend.text,_)}e.restore()},YB=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,a=t.top,l=t.right,s=t.bottom,c=t.left,u=t.theme,d={top:a,right:l,bottom:s,left:c};WB.forEach((function(t){var a=d[t];if(!a)return null;var l="top"===t||"bottom"===t,s="top"===t||"left"===t?"before":"after",c=l?n:r,f=NB(a.format,c);qB(e,zB({},a,{axis:l?"x":"y",x:"right"===t?i:0,y:"bottom"===t?o:0,scale:c,format:f,length:l?i:o,ticksPosition:s,theme:u}))}))},GB=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,a=t.values;IB({width:n,height:r,scale:i,axis:o,values:a}).forEach((function(t){e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.stroke()}))};function XB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ZB(){return ZB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZB.apply(null,arguments)}var KB={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:uL,accent:dL,dark2:fL,paired:hL,pastel1:pL,pastel2:gL,set1:vL,set2:mL,set3:bL,tableau10:yL},JB=Object.keys(KB),QB={brown_blueGreen:wL,purpleRed_green:kL,pink_yellowGreen:SL,purple_orange:AL,red_blue:LL,red_grey:OL,red_yellow_blue:PL,red_yellow_green:DL,spectral:IL},eF=Object.keys(QB),tF={brown_blueGreen:xL,purpleRed_green:CL,pink_yellowGreen:ML,purple_orange:TL,red_blue:EL,red_grey:RL,red_yellow_blue:zL,red_yellow_green:NL,spectral:BL},nF={blues:cE,greens:dE,greys:hE,oranges:yE,purples:gE,reds:mE,blue_green:FL,blue_purple:WL,green_blue:UL,orange_red:$L,purple_blue_green:YL,purple_blue:XL,purple_red:KL,red_purple:QL,yellow_green_blue:tE,yellow_green:rE,yellow_orange_brown:oE,yellow_orange_red:lE},rF=Object.keys(nF),iF={blues:uE,greens:fE,greys:pE,oranges:_E,purples:vE,reds:bE,turbo:function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"},viridis:OE,inferno:PE,magma:RE,plasma:zE,cividis:function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"},warm:xE,cool:kE,cubehelixDefault:wE,blue_green:jL,blue_purple:HL,green_blue:VL,orange_red:qL,purple_blue_green:GL,purple_blue:ZL,purple_red:JL,red_purple:eE,yellow_green_blue:nE,yellow_green:iE,yellow_orange_brown:aE,yellow_orange_red:sE},oF=ZB({},KB,QB,nF),aF={rainbow:function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return CE.h=360*e-100,CE.s=1.5-1.5*t,CE.l=.8-.9*t,CE+""},sinebow:function(e){var t;return e=(.5-e)*Math.PI,SE.r=255*(t=Math.sin(e))*t,SE.g=255*(t=Math.sin(e+ME))*t,SE.b=255*(t=Math.sin(e+AE))*t,SE+""}},lF=ZB({},tF,iF,aF),sF=function(e,t){if("function"==typeof e)return e;if(gP(e)){if(function(e){return void 0!==e.theme}(e)){if(void 0===t)throw new Error("Unable to use color from theme as no theme was provided");var n=jA(t,e.theme);if(void 0===n)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(e){return void 0!==e.from}(e)){var r=function(t){return jA(t,e.from)};if(Array.isArray(e.modifiers)){for(var i,o=[],a=function(){var e=i.value,t=e[0],n=e[1];if("brighter"===t)o.push((function(e){return e.brighter(n)}));else if("darker"===t)o.push((function(e){return e.darker(n)}));else{if("opacity"!==t)throw new Error("Invalid color modifier: '"+t+"', must be one of: 'brighter', 'darker', 'opacity'");o.push((function(e){return e.opacity=n,e}))}},l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return XB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?XB(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.modifiers);!(i=l()).done;)a();return 0===o.length?r:function(e){return o.reduce((function(e,t){return t(e)}),Oo(r(e))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},cF=function(e,t){return A((function(){return sF(e,t)}),[e,t])},uF="turbo",dF="red_yellow_blue",fF=.5,hF="turbo",pF=7,gF=function(e,t){var n=Il().domain(e.domain||[t.min,t.max]).nice();if("colors"in e)n.range(e.colors);else{var r=e.scheme||hF,i=void 0===e.steps?pF:e.steps,o=lF[r],a=Array.from({length:i}).map((function(e,t){return o(t*(1/(i-1)))}));n.range(a)}return n},vF=function(e,t){if(function(e){return"sequential"===e.type}(e))return function(e,t){var n=e.minValue,r=e.maxValue,i=void 0!==n?n:t.min,o=void 0!==r?r:t.max,a=ru().domain([i,o]).clamp(!0);if("colors"in e)a.range(e.colors);else if("interpolator"in e)a.interpolator(e.interpolator);else{var l,s=null!=(l=e.scheme)?l:uF;a.interpolator(lF[s])}return a}(e,t);if(function(e){return"diverging"===e.type}(e))return function(e,t){var n,r=e.minValue,i=e.maxValue,o=void 0!==r?r:t.min,a=void 0!==i?i:t.max,l=[o,o+(a-o)/2,a],s=.5-(null!=(n=e.divergeAt)?n:fF),c=ou().domain(l).clamp(!0),u=function(e){return String(e)};if("colors"in e)u=ou().domain(l.map((function(e){return e-s*(a-o)}))).range(e.colors).interpolator();else if("interpolator"in e)u=e.interpolator;else{var d,f=null!=(d=e.scheme)?d:dF;u=lF[f]}return c.interpolator((function(e){return u(e+s)}))}(e,t);if(function(e){return"quantize"===e.type}(e))return gF(e,t);throw new Error("Invalid continuous color scale config")},mF=function(e,t){if("function"==typeof e)return e;var n="function"==typeof t?t:function(e){return jA(e,t)};if(Array.isArray(e)){var r=Ga(e),i=function(e){return r(n(e))};return i.scale=r,i}if(gP(e)){if(function(e){return void 0!==e.datum}(e))return function(t){return jA(t,e.datum)};if(function(e){return void 0!==e.scheme}(e)){if(function(e){return JB.includes(e)}(e.scheme)){var o=Ga(oF[e.scheme]),a=function(e){return o(n(e))};return a.scale=o,a}if(function(e){return eF.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var l=Ga(oF[e.scheme][e.size||11]),s=function(e){return l(n(e))};return s.scale=l,s}if(function(e){return rF.includes(e)}(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var c=Ga(oF[e.scheme][e.size||9]),u=function(e){return c(n(e))};return u.scale=c,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},bF=function(e,t){return A((function(){return mF(e,t)}),[e,t])};function yF(){return yF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yF.apply(null,arguments)}var _F,wF,xF=0,kF=0,CF=0,SF=0,MF="left-to-right",AF=!1,TF="square",LF=16,EF=8,OF={length:200,thickness:16,direction:"row",tickPosition:"after",tickSize:4,tickSpacing:3,tickOverlap:!1,tickFormat:function(e){return""+e},titleAlign:"start",titleOffset:4},RF={top:0,right:0,bottom:0,left:0},PF=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,o=e.itemCount,a=e.itemWidth,l=e.itemHeight;if("number"!=typeof i&&("object"!=typeof(t=i)||Array.isArray(t)||null===t))throw new Error("Invalid property padding, must be one of: number, object");var s="number"==typeof i?{top:i,right:i,bottom:i,left:i}:yF({},RF,i),c=s.left+s.right,u=s.top+s.bottom,d=a+c,f=l+u,h=(o-1)*r;return"row"===n?d=a*o+h+c:"column"===n&&(f=l*o+h+u),{width:d,height:f,padding:s}},zF=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,a=e.width,l=e.height,s=n,c=r;switch(t){case"top":s+=(i-a)/2;break;case"top-right":s+=i-a;break;case"right":s+=i-a,c+=(o-l)/2;break;case"bottom-right":s+=i-a,c+=o-l;break;case"bottom":s+=(i-a)/2,c+=o-l;break;case"bottom-left":c+=o-l;break;case"left":c+=(o-l)/2;break;case"center":s+=(i-a)/2,c+=(o-l)/2}return{x:s,y:c}},DF=function(e){var t,n,r,i,o,a,l=e.direction,s=e.justify,c=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(l){case"left-to-right":t=0,n=(f-c)/2,i=f/2,a="central",s?(r=d,o="end"):(r=c+u,o="start");break;case"right-to-left":t=d-c,n=(f-c)/2,i=f/2,a="central",s?(r=0,o="start"):(r=d-c-u,o="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,o="middle",s?(i=f,a="alphabetic"):(i=c+u,a="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=f-c,r=d/2,o="middle",s?(i=0,a="text-before-edge"):(i=f-c-u,a="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:a}},NF=function(e){var t,n=e.scale,r=e.ticks,i=e.length,o=void 0===i?OF.length:i,a=e.thickness,l=void 0===a?OF.thickness:a,s=e.direction,c=void 0===s?OF.direction:s,u=e.tickPosition,d=void 0===u?OF.tickPosition:u,f=e.tickSize,h=void 0===f?OF.tickSize:f,p=e.tickSpacing,g=void 0===p?OF.tickSpacing:p,v=e.tickOverlap,m=void 0===v?OF.tickOverlap:v,b=e.tickFormat,y=void 0===b?OF.tickFormat:b,_=e.title,w=e.titleAlign,x=void 0===w?OF.titleAlign:w,k=e.titleOffset,C=void 0===k?OF.titleOffset:k,S="column"===c?[].concat(n.domain()).reverse():n.domain(),M=Cl().domain(S);2===S.length?M.range([0,o]):3===S.length&&M.range([0,o/2,o]),t="thresholds"in n?[S[0]].concat(n.thresholds(),[S[1]]):Array.isArray(r)?r:n.ticks(r);var A,T,L,E,O,R,P,z,D,N,I,B,F,j,W=function(e,t){var n=e.domain();if("thresholds"in e){var r=[],i=Cl().domain(n).range([0,1]);return e.range().forEach((function(t,n){var o=e.invertExtent(t),a=o[0],l=o[1];r.push({key:n+".0",offset:i(a),stopColor:t}),r.push({key:n+".1",offset:i(l),stopColor:t})})),r}var o=e.copy();return 2===n.length?o.domain([0,1]):3===n.length&&o.domain([0,.5,1]),o.ticks(t).map((function(e){return{key:""+e,offset:e,stopColor:""+o(e)}}))}(n,32),H=TD(y),U=[],V=0,$=0;"row"===c?(A=o,T=l,$=1,O=0,L="start"===x?0:"middle"===x?o/2:o,"before"===d?(P=-h,z=m?l:0,D=-h-g,N="alphabetic",E=l+C,R="hanging"):(P=m?0:l,D=(z=l+h)+g,N="hanging",E=-C,R="alphabetic"),t.forEach((function(e){var t=M(e);U.push({x1:t,y1:P,x2:t,y2:z,text:H(e),textX:t,textY:D,textHorizontalAlign:"middle",textVerticalAlign:N})}))):(A=l,T=o,V=1,O=-90,E="start"===x?o:"middle"===x?o/2:0,"before"===d?(B=m?l:0,F=(I=-h)-g,j="end",L=l+C,R="hanging"):(I=m?0:l,F=(B=l+h)+g,j="start",L=-C,R="alphabetic"),t.forEach((function(e){var t=M(e);U.push({x1:I,y1:t,x2:B,y2:t,text:H(e),textX:F,textY:t,textHorizontalAlign:j,textVerticalAlign:"central"})})));return{width:A,height:T,gradientX1:0,gradientY1:V,gradientX2:$,gradientY2:0,colorStops:W,ticks:U,titleText:_,titleX:L,titleY:E,titleRotation:O,titleHorizontalAlign:x,titleVerticalAlign:R}},IF=function(e){var t=e.scale,n=e.ticks,r=e.length,i=void 0===r?OF.length:r,o=e.thickness,a=void 0===o?OF.thickness:o,l=e.direction,s=void 0===l?OF.direction:l,c=e.tickPosition,u=void 0===c?OF.tickPosition:c,d=e.tickSize,f=void 0===d?OF.tickSize:d,h=e.tickSpacing,p=void 0===h?OF.tickSpacing:h,g=e.tickOverlap,v=void 0===g?OF.tickOverlap:g,m=e.tickFormat,b=void 0===m?OF.tickFormat:m,y=e.title,_=e.titleAlign,w=void 0===_?OF.titleAlign:_,x=e.titleOffset,k=NF({scale:t,ticks:n,length:i,thickness:a,direction:s,tickPosition:u,tickSize:f,tickSpacing:p,tickOverlap:v,tickFormat:b,title:y,titleAlign:w,titleOffset:void 0===x?OF.titleOffset:x}),C=k.width,S=k.height,M=k.gradientX1,A=k.gradientY1,T=k.gradientX2,L=k.gradientY2,E=k.ticks,O=k.colorStops,R=k.titleText,P=k.titleX,D=k.titleY,N=k.titleRotation,I=k.titleVerticalAlign,B=k.titleHorizontalAlign,F=eT(),j="ContinuousColorsLegendSvgGradient."+s+"."+O.map((function(e){return e.stopColor.replace(/[(),\s]/g,"")+"."+e.offset})).join("_");return ln("g",{children:[ln("defs",{children:ln("linearGradient",{id:j,x1:M,y1:A,x2:T,y2:L,children:O.map((function(e){return ln("stop",{offset:e.offset,stopColor:e.stopColor},e.key)}))})}),R&&ln("text",{transform:"translate("+P+", "+D+") rotate("+N+")",textAnchor:B,dominantBaseline:I,style:F.legends.title.text,children:R}),ln("rect",{width:C,height:S,fill:"url(#"+j}),E.map((function(e,t){return ln(z,{children:[ln("line",{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,style:F.legends.ticks.line}),ln(QD,{x:e.textX,y:e.textY,textAnchor:e.textHorizontalAlign,dominantBaseline:e.textVerticalAlign,style:F.legends.ticks.text,children:e.text})]},t)}))]})},BF=["containerWidth","containerHeight","anchor","translateX","translateY","length","thickness","direction"],FF=function(e){var t,n,r=e.containerWidth,i=e.containerHeight,o=e.anchor,a=e.translateX,l=void 0===a?0:a,s=e.translateY,c=void 0===s?0:s,u=e.length,d=void 0===u?OF.length:u,f=e.thickness,h=void 0===f?OF.thickness:f,p=e.direction,g=void 0===p?OF.direction:p,v=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,BF);"row"===g?(t=d,n=h):(t=h,n=d);var m=zF({anchor:o,translateX:l,translateY:c,containerWidth:r,containerHeight:i,width:t,height:n});return ln("g",{transform:"translate("+m.x+", "+m.y+")",children:ln(IF,yF({length:d,thickness:h,direction:g},v))})},jF={circle:function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=void 0===o?1:o,l=e.borderWidth,s=void 0===l?0:l,c=e.borderColor;return ln("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:a,strokeWidth:s,stroke:void 0===c?"transparent":c,style:{pointerEvents:"none"}})},diamond:function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=void 0===o?1:o,l=e.borderWidth,s=void 0===l?0:l,c=e.borderColor;return ln("g",{transform:"translate("+t+","+n+")",children:ln("path",{d:"\n M"+r/2+" 0\n L"+.8*r+" "+r/2+"\n L"+r/2+" "+r+"\n L"+.2*r+" "+r/2+"\n L"+r/2+" 0\n ",fill:i,opacity:a,strokeWidth:s,stroke:void 0===c?"transparent":c,style:{pointerEvents:"none"}})})},square:function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=void 0===o?1:o,l=e.borderWidth,s=void 0===l?0:l,c=e.borderColor;return ln("rect",{x:t,y:n,fill:i,opacity:a,strokeWidth:s,stroke:void 0===c?"transparent":c,width:r,height:r,style:{pointerEvents:"none"}})},triangle:function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=void 0===o?1:o,l=e.borderWidth,s=void 0===l?0:l,c=e.borderColor;return ln("g",{transform:"translate("+t+","+n+")",children:ln("path",{d:"\n M"+r/2+" 0\n L"+r+" "+r+"\n L0 "+r+"\n L"+r/2+" 0\n ",fill:i,opacity:a,strokeWidth:s,stroke:void 0===c?"transparent":c,style:{pointerEvents:"none"}})})}},WF=function(e){var t,n,r,i,o,a,l,s,c,u,d,f=e.x,h=e.y,p=e.width,g=e.height,v=e.data,m=e.direction,b=void 0===m?MF:m,y=e.justify,x=void 0===y?AF:y,k=e.textColor,C=e.background,S=void 0===C?"transparent":C,A=e.opacity,T=void 0===A?1:A,L=e.symbolShape,E=void 0===L?TF:L,O=e.symbolSize,R=void 0===O?LF:O,P=e.symbolSpacing,z=void 0===P?EF:P,D=e.symbolBorderWidth,N=void 0===D?0:D,I=e.symbolBorderColor,B=void 0===I?"transparent":I,F=e.onClick,j=e.onMouseEnter,W=e.onMouseLeave,H=e.toggleSerie,U=e.effects,V=w({}),$=V[0],q=V[1],Y=eT(),G=M((function(e){if(U){var t=U.filter((function(e){return"hover"===e.on})).reduce((function(e,t){return yF({},e,t.style)}),{});q(t)}null==j||j(v,e)}),[j,v,U]),X=M((function(e){if(U){var t=U.filter((function(e){return"hover"!==e.on})).reduce((function(e,t){return yF({},e,t.style)}),{});q(t)}null==W||W(v,e)}),[W,v,U]),Z=DF({direction:b,justify:x,symbolSize:null!=(t=$.symbolSize)?t:R,symbolSpacing:z,width:p,height:g}),K=Z.symbolX,J=Z.symbolY,Q=Z.labelX,ee=Z.labelY,te=Z.labelAnchor,ne=Z.labelAlignment,re=[F,j,W,H].some((function(e){return void 0!==e})),ie="function"==typeof E?E:jF[E];return ln("g",{transform:"translate("+f+","+h+")",style:{opacity:null!=(n=$.itemOpacity)?n:T},children:[ln("rect",{width:p,height:g,fill:null!=(r=$.itemBackground)?r:S,style:{cursor:re?"pointer":"auto"},onClick:function(e){null==F||F(v,e),null==H||H(v.id)},onMouseEnter:G,onMouseLeave:X}),_.createElement(ie,yF({id:v.id,x:K,y:J,size:null!=(i=$.symbolSize)?i:R,fill:null!=(o=null!=(a=v.fill)?a:v.color)?o:"black",borderWidth:null!=(l=$.symbolBorderWidth)?l:N,borderColor:null!=(s=$.symbolBorderColor)?s:B},v.hidden?Y.legends.hidden.symbol:void 0)),ln(QD,{textAnchor:te,style:yF({},Y.legends.text,{fill:null!=(c=null!=(u=null!=(d=$.itemTextColor)?d:k)?u:Y.legends.text.fill)?c:"black",dominantBaseline:ne,pointerEvents:"none",userSelect:"none"},v.hidden?Y.legends.hidden.text:void 0),x:Q,y:ee,children:v.label})]})},HF=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,o=e.padding,a=void 0===o?CF:o,l=e.justify,s=e.effects,c=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=void 0===d?MF:d,h=e.itemsSpacing,p=void 0===h?SF:h,g=e.itemTextColor,v=e.itemBackground,m=void 0===v?"transparent":v,b=e.itemOpacity,y=void 0===b?1:b,_=e.symbolShape,w=e.symbolSize,x=e.symbolSpacing,k=e.symbolBorderWidth,C=e.symbolBorderColor,S=e.onClick,M=e.onMouseEnter,A=e.onMouseLeave,T=e.toggleSerie,L=PF({itemCount:t.length,itemWidth:c,itemHeight:u,itemsSpacing:p,direction:i,padding:a}).padding,E="row"===i?c+p:0,O="column"===i?u+p:0;return ln("g",{transform:"translate("+n+","+r+")",children:t.map((function(e,t){return ln(WF,{data:e,x:t*E+L.left,y:t*O+L.top,width:c,height:u,direction:f,justify:l,effects:s,textColor:g,background:m,opacity:y,symbolShape:_,symbolSize:w,symbolSpacing:x,symbolBorderWidth:k,symbolBorderColor:C,onClick:S,onMouseEnter:M,onMouseLeave:A,toggleSerie:T},t)}))})},UF=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,o=void 0===i?xF:i,a=e.translateY,l=void 0===a?kF:a,s=e.anchor,c=e.direction,u=e.padding,d=void 0===u?CF:u,f=e.justify,h=e.itemsSpacing,p=void 0===h?SF:h,g=e.itemWidth,v=e.itemHeight,m=e.itemDirection,b=e.itemTextColor,y=e.itemBackground,_=e.itemOpacity,w=e.symbolShape,x=e.symbolSize,k=e.symbolSpacing,C=e.symbolBorderWidth,S=e.symbolBorderColor,M=e.onClick,A=e.onMouseEnter,T=e.onMouseLeave,L=e.toggleSerie,E=e.effects,O=PF({itemCount:t.length,itemsSpacing:p,itemWidth:g,itemHeight:v,direction:c,padding:d}),R=O.width,P=O.height,z=zF({anchor:s,translateX:o,translateY:l,containerWidth:n,containerHeight:r,width:R,height:P}),D=z.x,N=z.y;return ln(HF,{data:t,x:D,y:N,direction:c,padding:d,justify:f,effects:E,itemsSpacing:p,itemWidth:g,itemHeight:v,itemDirection:m,itemTextColor:b,itemBackground:y,itemOpacity:_,symbolShape:w,symbolSize:x,symbolSpacing:k,symbolBorderWidth:C,symbolBorderColor:S,onClick:M,onMouseEnter:A,onMouseLeave:T,toggleSerie:"boolean"==typeof L?void 0:L})},VF={start:"left",middle:"center",end:"right"},$F=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,o=t.translateX,a=void 0===o?0:o,l=t.translateY,s=void 0===l?0:l,c=t.anchor,u=t.direction,d=t.padding,f=void 0===d?0:d,h=t.justify,p=void 0!==h&&h,g=t.itemsSpacing,v=void 0===g?0:g,m=t.itemWidth,b=t.itemHeight,y=t.itemDirection,_=void 0===y?"left-to-right":y,w=t.itemTextColor,x=t.symbolSize,k=void 0===x?16:x,C=t.symbolSpacing,S=void 0===C?8:C,M=t.theme,A=PF({itemCount:n.length,itemWidth:m,itemHeight:b,itemsSpacing:v,direction:u,padding:f}),T=A.width,L=A.height,E=A.padding,O=zF({anchor:c,translateX:a,translateY:s,containerWidth:r,containerHeight:i,width:T,height:L}),R=O.x,P=O.y,z="row"===u?m+v:0,D="column"===u?b+v:0;e.save(),e.translate(R,P),FD(e,M.legends.text),n.forEach((function(t,n){var r,i=n*z+E.left,o=n*D+E.top,a=DF({direction:_,justify:p,symbolSize:k,symbolSpacing:S,width:m,height:b}),l=a.symbolX,s=a.symbolY,c=a.labelX,u=a.labelY,d=a.labelAnchor,f=a.labelAlignment;e.fillStyle=null!=(r=t.color)?r:"black",e.fillRect(i+l,o+s,k,k),e.textAlign=VF[d],"central"===f&&(e.textBaseline="middle"),jD(e,yF({},M.legends.text,{fill:null!=w?w:M.legends.text.fill}),String(t.label),i+c,o+u)})),e.restore()};var qF=function(){if(wF)return _F;wF=1;var e=OA(),t=0;return _F=function(n){var r=++t;return e(n)+r},_F}(),YF=Pd(qF);const GF=134217729;function XF(e,t,n,r,i){let o,a,l,s,c=t[0],u=r[0],d=0,f=0;u>c==u>-c?(o=c,c=t[++d]):(o=u,u=r[++f]);let h=0;if(d<e&&f<n)for(u>c==u>-c?(a=c+o,l=o-(a-c),c=t[++d]):(a=u+o,l=o-(a-u),u=r[++f]),o=a,0!==l&&(i[h++]=l);d<e&&f<n;)u>c==u>-c?(a=o+c,s=a-o,l=o-(a-s)+(c-s),c=t[++d]):(a=o+u,s=a-o,l=o-(a-s)+(u-s),u=r[++f]),o=a,0!==l&&(i[h++]=l);for(;d<e;)a=o+c,s=a-o,l=o-(a-s)+(c-s),c=t[++d],o=a,0!==l&&(i[h++]=l);for(;f<n;)a=o+u,s=a-o,l=o-(a-s)+(u-s),u=r[++f],o=a,0!==l&&(i[h++]=l);return 0===o&&0!==h||(i[h++]=o),h}function ZF(e){return new Float64Array(e)}const KF=ZF(4),JF=ZF(8),QF=ZF(12),ej=ZF(16),tj=ZF(4);function nj(e,t,n,r,i,o){const a=(t-o)*(n-i),l=(e-i)*(r-o),s=a-l,c=Math.abs(a+l);return Math.abs(s)>=33306690738754716e-32*c?s:-function(e,t,n,r,i,o,a){let l,s,c,u,d,f,h,p,g,v,m,b,y,_,w,x,k,C;const S=e-i,M=n-i,A=t-o,T=r-o;_=S*T,f=GF*S,h=f-(f-S),p=S-h,f=GF*T,g=f-(f-T),v=T-g,w=p*v-(_-h*g-p*g-h*v),x=A*M,f=GF*A,h=f-(f-A),p=A-h,f=GF*M,g=f-(f-M),v=M-g,k=p*v-(x-h*g-p*g-h*v),m=w-k,d=w-m,KF[0]=w-(m+d)+(d-k),b=_+m,d=b-_,y=_-(b-d)+(m-d),m=y-x,d=y-m,KF[1]=y-(m+d)+(d-x),C=b+m,d=C-b,KF[2]=b-(C-d)+(m-d),KF[3]=C;let L=function(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}(4,KF),E=22204460492503146e-32*a;if(L>=E||-L>=E)return L;if(d=e-S,l=e-(S+d)+(d-i),d=n-M,c=n-(M+d)+(d-i),d=t-A,s=t-(A+d)+(d-o),d=r-T,u=r-(T+d)+(d-o),0===l&&0===s&&0===c&&0===u)return L;if(E=11093356479670487e-47*a+33306690738754706e-32*Math.abs(L),L+=S*u+T*l-(A*c+M*s),L>=E||-L>=E)return L;_=l*T,f=GF*l,h=f-(f-l),p=l-h,f=GF*T,g=f-(f-T),v=T-g,w=p*v-(_-h*g-p*g-h*v),x=s*M,f=GF*s,h=f-(f-s),p=s-h,f=GF*M,g=f-(f-M),v=M-g,k=p*v-(x-h*g-p*g-h*v),m=w-k,d=w-m,tj[0]=w-(m+d)+(d-k),b=_+m,d=b-_,y=_-(b-d)+(m-d),m=y-x,d=y-m,tj[1]=y-(m+d)+(d-x),C=b+m,d=C-b,tj[2]=b-(C-d)+(m-d),tj[3]=C;const O=XF(4,KF,4,tj,JF);_=S*u,f=GF*S,h=f-(f-S),p=S-h,f=GF*u,g=f-(f-u),v=u-g,w=p*v-(_-h*g-p*g-h*v),x=A*c,f=GF*A,h=f-(f-A),p=A-h,f=GF*c,g=f-(f-c),v=c-g,k=p*v-(x-h*g-p*g-h*v),m=w-k,d=w-m,tj[0]=w-(m+d)+(d-k),b=_+m,d=b-_,y=_-(b-d)+(m-d),m=y-x,d=y-m,tj[1]=y-(m+d)+(d-x),C=b+m,d=C-b,tj[2]=b-(C-d)+(m-d),tj[3]=C;const R=XF(O,JF,4,tj,QF);_=l*u,f=GF*l,h=f-(f-l),p=l-h,f=GF*u,g=f-(f-u),v=u-g,w=p*v-(_-h*g-p*g-h*v),x=s*c,f=GF*s,h=f-(f-s),p=s-h,f=GF*c,g=f-(f-c),v=c-g,k=p*v-(x-h*g-p*g-h*v),m=w-k,d=w-m,tj[0]=w-(m+d)+(d-k),b=_+m,d=b-_,y=_-(b-d)+(m-d),m=y-x,d=y-m,tj[1]=y-(m+d)+(d-x),C=b+m,d=C-b,tj[2]=b-(C-d)+(m-d),tj[3]=C;const P=XF(R,QF,4,tj,ej);return ej[P-1]}(e,t,n,r,i,o,c)}const rj=Math.pow(2,-52),ij=new Uint32Array(512);class oj{static from(e,t=dj,n=fj){const r=e.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=e[o];i[2*o]=t(r),i[2*o+1]=n(r)}return new oj(i)}constructor(e){const t=e.length>>1;if(t>0&&"number"!=typeof e[0])throw new Error("Expected coords to contain numbers.");this.coords=e;const n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){const{coords:e,_hullPrev:t,_hullNext:n,_hullTri:r,_hullHash:i}=this,o=e.length>>1;let a=1/0,l=1/0,s=-1/0,c=-1/0;for(let t=0;t<o;t++){const n=e[2*t],r=e[2*t+1];n<a&&(a=n),r<l&&(l=r),n>s&&(s=n),r>c&&(c=r),this._ids[t]=t}const u=(a+s)/2,d=(l+c)/2;let f,h,p;for(let t=0,n=1/0;t<o;t++){const r=aj(u,d,e[2*t],e[2*t+1]);r<n&&(f=t,n=r)}const g=e[2*f],v=e[2*f+1];for(let t=0,n=1/0;t<o;t++){if(t===f)continue;const r=aj(g,v,e[2*t],e[2*t+1]);r<n&&r>0&&(h=t,n=r)}let m=e[2*h],b=e[2*h+1],y=1/0;for(let t=0;t<o;t++){if(t===f||t===h)continue;const n=sj(g,v,m,b,e[2*t],e[2*t+1]);n<y&&(p=t,y=n)}let _=e[2*p],w=e[2*p+1];if(y===1/0){for(let t=0;t<o;t++)this._dists[t]=e[2*t]-e[0]||e[2*t+1]-e[1];cj(this._ids,this._dists,0,o-1);const t=new Uint32Array(o);let n=0;for(let e=0,r=-1/0;e<o;e++){const i=this._ids[e],o=this._dists[i];o>r&&(t[n++]=i,r=o)}return this.hull=t.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(nj(g,v,m,b,_,w)<0){const e=h,t=m,n=b;h=p,m=_,b=w,p=e,_=t,w=n}const x=function(e,t,n,r,i,o){const a=n-e,l=r-t,s=i-e,c=o-t,u=a*a+l*l,d=s*s+c*c,f=.5/(a*c-l*s),h=e+(c*u-l*d)*f,p=t+(a*d-s*u)*f;return{x:h,y:p}}(g,v,m,b,_,w);this._cx=x.x,this._cy=x.y;for(let t=0;t<o;t++)this._dists[t]=aj(e[2*t],e[2*t+1],x.x,x.y);cj(this._ids,this._dists,0,o-1),this._hullStart=f;let k=3;n[f]=t[p]=h,n[h]=t[f]=p,n[p]=t[h]=f,r[f]=0,r[h]=1,r[p]=2,i.fill(-1),i[this._hashKey(g,v)]=f,i[this._hashKey(m,b)]=h,i[this._hashKey(_,w)]=p,this.trianglesLen=0,this._addTriangle(f,h,p,-1,-1,-1);for(let o,a,l=0;l<this._ids.length;l++){const s=this._ids[l],c=e[2*s],u=e[2*s+1];if(l>0&&Math.abs(c-o)<=rj&&Math.abs(u-a)<=rj)continue;if(o=c,a=u,s===f||s===h||s===p)continue;let d=0;for(let e=0,t=this._hashKey(c,u);e<this._hashSize&&(d=i[(t+e)%this._hashSize],-1===d||d===n[d]);e++);d=t[d];let g,v=d;for(;g=n[v],nj(c,u,e[2*v],e[2*v+1],e[2*g],e[2*g+1])>=0;)if(v=g,v===d){v=-1;break}if(-1===v)continue;let m=this._addTriangle(v,s,n[v],-1,-1,r[v]);r[s]=this._legalize(m+2),r[v]=m,k++;let b=n[v];for(;g=n[b],nj(c,u,e[2*b],e[2*b+1],e[2*g],e[2*g+1])<0;)m=this._addTriangle(b,s,g,r[s],-1,r[b]),r[s]=this._legalize(m+2),n[b]=b,k--,b=g;if(v===d)for(;g=t[v],nj(c,u,e[2*g],e[2*g+1],e[2*v],e[2*v+1])<0;)m=this._addTriangle(g,s,v,-1,r[v],r[g]),this._legalize(m+2),r[g]=m,n[v]=v,k--,v=g;this._hullStart=t[s]=v,n[v]=t[b]=s,n[s]=b,i[this._hashKey(c,u)]=s,i[this._hashKey(e[2*v],e[2*v+1])]=v}this.hull=new Uint32Array(k);for(let e=0,t=this._hullStart;e<k;e++)this.hull[e]=t,t=n[t];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,t){return Math.floor(function(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:t,_halfedges:n,coords:r}=this;let i=0,o=0;for(;;){const a=n[e],l=e-e%3;if(o=l+(e+2)%3,-1===a){if(0===i)break;e=ij[--i];continue}const s=a-a%3,c=l+(e+1)%3,u=s+(a+2)%3,d=t[o],f=t[e],h=t[c],p=t[u];if(lj(r[2*d],r[2*d+1],r[2*f],r[2*f+1],r[2*h],r[2*h+1],r[2*p],r[2*p+1])){t[e]=p,t[a]=d;const r=n[u];if(-1===r){let t=this._hullStart;do{if(this._hullTri[t]===u){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,r),this._link(a,n[o]),this._link(o,u);const l=s+(a+1)%3;i<ij.length&&(ij[i++]=l)}else{if(0===i)break;e=ij[--i]}}return o}_link(e,t){this._halfedges[e]=t,-1!==t&&(this._halfedges[t]=e)}_addTriangle(e,t,n,r,i,o){const a=this.trianglesLen;return this._triangles[a]=e,this._triangles[a+1]=t,this._triangles[a+2]=n,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a}}function aj(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function lj(e,t,n,r,i,o,a,l){const s=e-a,c=t-l,u=n-a,d=r-l,f=i-a,h=o-l,p=u*u+d*d,g=f*f+h*h;return s*(d*g-p*h)-c*(u*g-p*f)+(s*s+c*c)*(u*h-d*f)<0}function sj(e,t,n,r,i,o){const a=n-e,l=r-t,s=i-e,c=o-t,u=a*a+l*l,d=s*s+c*c,f=.5/(a*c-l*s),h=(c*u-l*d)*f,p=(a*d-s*u)*f;return h*h+p*p}function cj(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const r=e[i],o=t[r];let a=i-1;for(;a>=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=r}else{let i=n+1,o=r;uj(e,n+r>>1,i),t[e[n]]>t[e[r]]&&uj(e,n,r),t[e[i]]>t[e[r]]&&uj(e,i,r),t[e[n]]>t[e[i]]&&uj(e,n,i);const a=e[i],l=t[a];for(;;){do{i++}while(t[e[i]]<l);do{o--}while(t[e[o]]>l);if(o<i)break;uj(e,i,o)}e[n+1]=e[o],e[o]=a,r-i+1>=o-n?(cj(e,t,i,r),cj(e,t,n,o-1)):(cj(e,t,n,o-1),cj(e,t,i,r))}}function uj(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function dj(e){return e[0]}function fj(e){return e[1]}const hj=1e-6;class pj{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,t){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,t){this._+=`L${this._x1=+e},${this._y1=+t}`}arc(e,t,n){const r=(e=+e)+(n=+n),i=t=+t;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>hj||Math.abs(this._y1-i)>hj)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${e-n},${t}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(e,t,n,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class gj{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class vj{constructor(e,[t,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(t=+t)&&(i=+i)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=r,this.xmin=t,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:t,triangles:n},vectors:r}=this;let i,o;const a=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let r,l,s=0,c=0,u=n.length;s<u;s+=3,c+=2){const u=2*n[s],d=2*n[s+1],f=2*n[s+2],h=e[u],p=e[u+1],g=e[d],v=e[d+1],m=e[f],b=e[f+1],y=g-h,_=v-p,w=m-h,x=b-p,k=2*(y*x-_*w);if(Math.abs(k)<1e-9){if(void 0===i){i=o=0;for(const n of t)i+=e[2*n],o+=e[2*n+1];i/=t.length,o/=t.length}const n=1e9*Math.sign((i-h)*x-(o-p)*w);r=(h+m)/2-n*x,l=(p+b)/2+n*w}else{const e=1/k,t=y*y+_*_,n=w*w+x*x;r=h+(x*t-_*n)*e,l=p+(y*n-w*t)*e}a[c]=r,a[c+1]=l}let l,s,c,u=t[t.length-1],d=4*u,f=e[2*u],h=e[2*u+1];r.fill(0);for(let n=0;n<t.length;++n)u=t[n],l=d,s=f,c=h,d=4*u,f=e[2*u],h=e[2*u+1],r[l+2]=r[d]=c-h,r[l+3]=r[d+1]=f-s}render(e){const t=null==e?e=new pj:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:o,vectors:a}=this;if(i.length<=1)return null;for(let t=0,r=n.length;t<r;++t){const r=n[t];if(r<t)continue;const i=2*Math.floor(t/3),a=2*Math.floor(r/3),l=o[i],s=o[i+1],c=o[a],u=o[a+1];this._renderSegment(l,s,c,u,e)}let l,s=i[i.length-1];for(let t=0;t<i.length;++t){l=s,s=i[t];const n=2*Math.floor(r[s]/3),c=o[n],u=o[n+1],d=4*l,f=this._project(c,u,a[d+2],a[d+3]);f&&this._renderSegment(c,u,f[0],f[1],e)}return t&&t.value()}renderBounds(e){const t=null==e?e=new pj:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),t&&t.value()}renderCell(e,t){const n=null==t?t=new pj:void 0,r=this._clip(e);if(null===r||!r.length)return;t.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let e=2;e<i;e+=2)r[e]===r[e-2]&&r[e+1]===r[e-1]||t.lineTo(r[e],r[e+1]);return t.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:e}}=this;for(let t=0,n=e.length/2;t<n;++t){const e=this.cellPolygon(t);e&&(e.index=t,yield e)}}cellPolygon(e){const t=new gj;return this.renderCell(e,t),t.value()}_renderSegment(e,t,n,r,i){let o;const a=this._regioncode(e,t),l=this._regioncode(n,r);0===a&&0===l?(i.moveTo(e,t),i.lineTo(n,r)):(o=this._clipSegment(e,t,n,r,a,l))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(e,t,n){return(t=+t)==t&&(n=+n)==n&&this.delaunay._step(e,t,n)===e}*neighbors(e){const t=this._clip(e);if(t)for(const n of this.delaunay.neighbors(e)){const e=this._clip(n);if(e)e:for(let r=0,i=t.length;r<i;r+=2)for(let o=0,a=e.length;o<a;o+=2)if(t[r]===e[o]&&t[r+1]===e[o+1]&&t[(r+2)%i]===e[(o+a-2)%a]&&t[(r+3)%i]===e[(o+a-1)%a]){yield n;break e}}}_cell(e){const{circumcenters:t,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,o=n[e];if(-1===o)return null;const a=[];let l=o;do{const n=Math.floor(l/3);if(a.push(t[2*n],t[2*n+1]),l=l%3==2?l-2:l+1,i[l]!==e)break;l=r[l]}while(l!==o&&-1!==l);return a}_clip(e){if(0===e&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const t=this._cell(e);if(null===t)return null;const{vectors:n}=this,r=4*e;return this._simplify(n[r]||n[r+1]?this._clipInfinite(e,t,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(e,t))}_clipFinite(e,t){const n=t.length;let r,i,o,a,l=null,s=t[n-2],c=t[n-1],u=this._regioncode(s,c),d=0;for(let f=0;f<n;f+=2)if(r=s,i=c,s=t[f],c=t[f+1],o=u,u=this._regioncode(s,c),0===o&&0===u)a=d,d=0,l?l.push(s,c):l=[s,c];else{let t,n,f,h,p;if(0===o){if(null===(t=this._clipSegment(r,i,s,c,o,u)))continue;[n,f,h,p]=t}else{if(null===(t=this._clipSegment(s,c,r,i,u,o)))continue;[h,p,n,f]=t,a=d,d=this._edgecode(n,f),a&&d&&this._edge(e,a,d,l,l.length),l?l.push(n,f):l=[n,f]}a=d,d=this._edgecode(h,p),a&&d&&this._edge(e,a,d,l,l.length),l?l.push(h,p):l=[h,p]}if(l)a=d,d=this._edgecode(l[0],l[1]),a&&d&&this._edge(e,a,d,l,l.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return l}_clipSegment(e,t,n,r,i,o){const a=i<o;for(a&&([e,t,n,r,i,o]=[n,r,e,t,o,i]);;){if(0===i&&0===o)return a?[n,r,e,t]:[e,t,n,r];if(i&o)return null;let l,s,c=i||o;8&c?(l=e+(n-e)*(this.ymax-t)/(r-t),s=this.ymax):4&c?(l=e+(n-e)*(this.ymin-t)/(r-t),s=this.ymin):2&c?(s=t+(r-t)*(this.xmax-e)/(n-e),l=this.xmax):(s=t+(r-t)*(this.xmin-e)/(n-e),l=this.xmin),i?(e=l,t=s,i=this._regioncode(e,t)):(n=l,r=s,o=this._regioncode(n,r))}}_clipInfinite(e,t,n,r,i,o){let a,l=Array.from(t);if((a=this._project(l[0],l[1],n,r))&&l.unshift(a[0],a[1]),(a=this._project(l[l.length-2],l[l.length-1],i,o))&&l.push(a[0],a[1]),l=this._clipFinite(e,l))for(let t,n=0,r=l.length,i=this._edgecode(l[r-2],l[r-1]);n<r;n+=2)t=i,i=this._edgecode(l[n],l[n+1]),t&&i&&(n=this._edge(e,t,i,l,n),r=l.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(l=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return l}_edge(e,t,n,r,i){for(;t!==n;){let n,o;switch(t){case 5:t=4;continue;case 4:t=6,n=this.xmax,o=this.ymin;break;case 6:t=2;continue;case 2:t=10,n=this.xmax,o=this.ymax;break;case 10:t=8;continue;case 8:t=9,n=this.xmin,o=this.ymax;break;case 9:t=1;continue;case 1:t=5,n=this.xmin,o=this.ymin}r[i]===n&&r[i+1]===o||!this.contains(e,n,o)||(r.splice(i,0,n,o),i+=2)}return i}_project(e,t,n,r){let i,o,a,l=1/0;if(r<0){if(t<=this.ymin)return null;(i=(this.ymin-t)/r)<l&&(a=this.ymin,o=e+(l=i)*n)}else if(r>0){if(t>=this.ymax)return null;(i=(this.ymax-t)/r)<l&&(a=this.ymax,o=e+(l=i)*n)}if(n>0){if(e>=this.xmax)return null;(i=(this.xmax-e)/n)<l&&(o=this.xmax,a=t+(l=i)*r)}else if(n<0){if(e<=this.xmin)return null;(i=(this.xmin-e)/n)<l&&(o=this.xmin,a=t+(l=i)*r)}return[o,a]}_edgecode(e,t){return(e===this.xmin?1:e===this.xmax?2:0)|(t===this.ymin?4:t===this.ymax?8:0)}_regioncode(e,t){return(e<this.xmin?1:e>this.xmax?2:0)|(t<this.ymin?4:t>this.ymax?8:0)}_simplify(e){if(e&&e.length>4){for(let t=0;t<e.length;t+=2){const n=(t+2)%e.length,r=(t+4)%e.length;(e[t]===e[n]&&e[n]===e[r]||e[t+1]===e[n+1]&&e[n+1]===e[r+1])&&(e.splice(n,2),t-=2)}e.length||(e=null)}return e}}const mj=2*Math.PI,bj=Math.pow;function yj(e){return e[0]}function _j(e){return e[1]}function wj(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class xj{static from(e,t=yj,n=_j,r){return new xj("length"in e?function(e,t,n,r){const i=e.length,o=new Float64Array(2*i);for(let a=0;a<i;++a){const i=e[a];o[2*a]=t.call(r,i,a,e),o[2*a+1]=n.call(r,i,a,e)}return o}(e,t,n,r):Float64Array.from(function*(e,t,n,r){let i=0;for(const o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}(e,t,n,r)))}constructor(e){this._delaunator=new oj(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const e=this._delaunator,t=this.points;if(e.hull&&e.hull.length>2&&function(e){const{triangles:t,coords:n}=e;for(let e=0;e<t.length;e+=3){const r=2*t[e],i=2*t[e+1],o=2*t[e+2];if((n[o]-n[r])*(n[i+1]-n[r+1])-(n[i]-n[r])*(n[o+1]-n[r+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},((e,t)=>t)).sort(((e,n)=>t[2*e]-t[2*n]||t[2*e+1]-t[2*n+1]));const e=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[t[2*e],t[2*e+1],t[2*n],t[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let e=0,n=t.length/2;e<n;++e){const n=wj(t[2*e],t[2*e+1],i);t[2*e]=n[0],t[2*e+1]=n[1]}this._delaunator=new oj(t)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),a=this._hullIndex.fill(-1);for(let e=0,t=n.length;e<t;++e){const t=i[e%3==2?e-2:e+1];-1!==n[e]&&-1!==o[t]||(o[t]=e)}for(let e=0,t=r.length;e<t;++e)a[r[e]]=e;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],o[r[0]]=1,2===r.length&&(o[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(e){return new vj(this,e)}*neighbors(e){const{inedges:t,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){const t=a.indexOf(e);return t>0&&(yield a[t-1]),void(t<a.length-1&&(yield a[t+1]))}const l=t[e];if(-1===l)return;let s=l,c=-1;do{if(yield c=o[s],s=s%3==2?s-2:s+1,o[s]!==e)return;if(s=i[s],-1===s){const t=n[(r[e]+1)%n.length];return void(t!==c&&(yield t))}}while(s!==l)}find(e,t,n=0){if((e=+e)!=e||(t=+t)!=t)return-1;const r=n;let i;for(;(i=this._step(n,e,t))>=0&&i!==n&&i!==r;)n=i;return i}_step(e,t,n){const{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:l,points:s}=this;if(-1===r[e]||!s.length)return(e+1)%(s.length>>1);let c=e,u=bj(t-s[2*e],2)+bj(n-s[2*e+1],2);const d=r[e];let f=d;do{let r=l[f];const d=bj(t-s[2*r],2)+bj(n-s[2*r+1],2);if(d<u&&(u=d,c=r),f=f%3==2?f-2:f+1,l[f]!==e)break;if(f=a[f],-1===f){if(f=i[(o[e]+1)%i.length],f!==r&&bj(t-s[2*f],2)+bj(n-s[2*f+1],2)<u)return f;break}}while(f!==d);return c}render(e){const t=null==e?e=new pj:void 0,{points:n,halfedges:r,triangles:i}=this;for(let t=0,o=r.length;t<o;++t){const o=r[t];if(o<t)continue;const a=2*i[t],l=2*i[o];e.moveTo(n[a],n[a+1]),e.lineTo(n[l],n[l+1])}return this.renderHull(e),t&&t.value()}renderPoints(e,t){void 0!==t||e&&"function"==typeof e.moveTo||(t=e,e=null),t=null==t?2:+t;const n=null==e?e=new pj:void 0,{points:r}=this;for(let n=0,i=r.length;n<i;n+=2){const i=r[n],o=r[n+1];e.moveTo(i+t,o),e.arc(i,o,t,0,mj)}return n&&n.value()}renderHull(e){const t=null==e?e=new pj:void 0,{hull:n,points:r}=this,i=2*n[0],o=n.length;e.moveTo(r[i],r[i+1]);for(let t=1;t<o;++t){const i=2*n[t];e.lineTo(r[i],r[i+1])}return e.closePath(),t&&t.value()}hullPolygon(){const e=new gj;return this.renderHull(e),e.value()}renderTriangle(e,t){const n=null==t?t=new pj:void 0,{points:r,triangles:i}=this,o=2*i[e*=3],a=2*i[e+1],l=2*i[e+2];return t.moveTo(r[o],r[o+1]),t.lineTo(r[a],r[a+1]),t.lineTo(r[l],r[l+1]),t.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:e}=this;for(let t=0,n=e.length/3;t<n;++t)yield this.trianglePolygon(t)}trianglePolygon(e){const t=new gj;return this.renderTriangle(e,t),t.value()}}function kj(){return kj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kj.apply(null,arguments)}function Cj(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Sj={xDomain:[0,1],yDomain:[0,1],layers:["links","cells","points","bounds"],enableLinks:!1,linkLineWidth:1,linkLineColor:"#bbbbbb",enableCells:!0,cellLineWidth:2,cellLineColor:"#000000",pointSize:4,pointColor:"#666666",role:"img"},Mj=function(e){return[e.x,e.y]},Aj=SD,Tj="cursor",Lj=function(e){var t=e.points,n=e.getNodePosition,r=void 0===n?Mj:n,i=e.margin,o=void 0===i?Aj:i;return t.map((function(e){var t=r(e),n=t[0],i=t[1];return[n+o.left,i+o.top]}))},Ej=function(e){var t=e.points,n=e.getNodePosition,r=void 0===n?Mj:n,i=e.width,o=e.height,a=e.margin,l=void 0===a?Aj:a,s=e.debug;return A((function(){return function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=void 0===i?Aj:i,a=e.debug,l=xj.from(t),s=a?l.voronoi([0,0,o.left+n+o.right,o.top+r+o.bottom]):void 0;return{points:t,delaunay:l,voronoi:s}}({points:Lj({points:t,margin:l,getNodePosition:r}),width:i,height:o,margin:l,debug:s})}),[r,t,i,o,l,s])},Oj=["theme"],Rj=function(e){var t=e.data,n=e.width,r=e.height,i=e.margin,o=e.layers,a=void 0===o?Sj.layers:o,l=e.xDomain,s=void 0===l?Sj.xDomain:l,c=e.yDomain,u=void 0===c?Sj.yDomain:c,d=e.enableLinks,f=void 0===d?Sj.enableLinks:d,h=e.linkLineWidth,p=void 0===h?Sj.linkLineWidth:h,g=e.linkLineColor,v=void 0===g?Sj.linkLineColor:g,m=e.enableCells,b=void 0===m?Sj.enableCells:m,y=e.cellLineWidth,_=void 0===y?Sj.cellLineWidth:y,w=e.cellLineColor,x=void 0===w?Sj.cellLineColor:w,k=e.enablePoints,C=void 0===k?Sj.enableCells:k,S=e.pointSize,M=void 0===S?Sj.pointSize:S,T=e.pointColor,L=void 0===T?Sj.pointColor:T,E=e.role,O=void 0===E?Sj.role:E,P=e.forwardedRef,D=MD(n,r,i),N=D.outerWidth,I=D.outerHeight,B=D.margin,F=function(e){var t=e.data,n=e.width,r=e.height,i=e.xDomain,o=e.yDomain,a=A((function(){return Cl().domain(i).range([0,n])}),[i,n]),l=A((function(){return Cl().domain(o).range([0,r])}),[o,r]),s=A((function(){return t.map((function(e){return{x:a(e.x),y:l(e.y),data:e}}))}),[t,a,l]);return A((function(){var e=xj.from(s.map((function(e){return[e.x,e.y]}))),t=e.voronoi([0,0,n,r]);return{points:s,delaunay:e,voronoi:t}}),[s,n,r])}({data:t,width:D.innerWidth,height:D.innerHeight,xDomain:s,yDomain:u}),j=F.points,W=F.delaunay,H=F.voronoi,U={links:null,cells:null,points:null,bounds:null};f&&a.includes("links")&&(U.links=ln("path",{stroke:v,strokeWidth:p,fill:"none",d:W.render()},"links")),b&&a.includes("cells")&&(U.cells=ln("path",{d:H.render(),fill:"none",stroke:x,strokeWidth:_},"cells")),C&&a.includes("points")&&(U.points=ln("path",{stroke:"none",fill:L,d:W.renderPoints(void 0,M/2)},"points")),a.includes("bounds")&&(U.bounds=ln("path",{fill:"none",stroke:x,strokeWidth:_,d:H.renderBounds()},"bounds"));var V=function(e){var t=e.points,n=e.delaunay,r=e.voronoi;return A((function(){return{points:t,delaunay:n,voronoi:r}}),[t,n,r])}({points:j,delaunay:W,voronoi:H});return ln(vD,{width:N,height:I,margin:B,role:O,ref:P,children:a.map((function(e,t){return void 0!==U[e]?U[e]:"function"==typeof e?ln(z,{children:R(e,V)},t):null}))})},Pj=S((function(e,t){var n=e.theme,r=Cj(e,Oj);return ln(Dz,{isInteractive:!1,animate:!1,theme:n,children:ln(Rj,kj({},r,{forwardedRef:t}))})})),zj=["defaultWidth","defaultHeight","onResize","debounceResize"];S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Cj(e,zj);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(Pj,kj({},a,{width:n,height:r,ref:t}))}})}));var Dj=function(e){var t=e.nodes,n=e.width,i=e.height,o=e.margin,a=void 0===o?Aj:o,l=e.getNodePosition,s=e.setCurrent,c=e.onMouseEnter,u=e.onMouseMove,d=e.onMouseLeave,f=e.onMouseDown,h=e.onMouseUp,p=e.onClick,g=e.onDoubleClick,v=e.onTouchStart,m=e.onTouchMove,b=e.onTouchEnd,y=e.enableTouchCrosshair,_=void 0!==y&&y,k=e.detectionRadius,S=void 0===k?1/0:k,T=e.tooltip,L=e.tooltipPosition,E=void 0===L?Tj:L,O=e.tooltipAnchor,R=void 0===O?"top":O,P=e.debug,z=C(null),D=Ej({points:t,getNodePosition:l,width:n,height:i,margin:a,debug:P}),N=D.delaunay,I=D.voronoi,B=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=void 0===r?Mj:r,o=e.delaunay,a=e.setCurrent,l=e.margin,s=void 0===l?Aj:l,c=e.detectionRadius,u=void 0===c?1/0:c,d=e.isInteractive,f=void 0===d||d,h=e.onMouseEnter,p=e.onMouseMove,g=e.onMouseLeave,v=e.onMouseDown,m=e.onMouseUp,b=e.onClick,y=e.onDoubleClick,_=e.onTouchStart,k=e.onTouchMove,S=e.onTouchEnd,T=e.enableTouchCrosshair,L=void 0!==T&&T,E=e.tooltip,O=e.tooltipPosition,R=void 0===O?Tj:O,P=e.tooltipAnchor,z=void 0===P?"top":P,D=w(null),N=D[0],I=D[1],B=C(null);x((function(){B.current=N}),[B,N]);var F=M((function(e){if(!t.current||0===n.length)return null;var r=zD(t.current,e),a=r[0],l=r[1],c=o.find(a,l),d=void 0!==c?n[c]:null;if(d&&u!==1/0){var f=i(d),h=f[0],p=f[1];RD(a,l,h+s.left,p+s.top)>u&&(c=null,d=null)}return null===c||null===d?null:[c,d]}),[t,o,n,i,s,u]),j=mT(),W=j.showTooltipAt,H=j.showTooltipFromEvent,U=j.hideTooltip,V=A((function(){if(E)return"cursor"===R?function(e,t){H(E(e),t,z)}:function(e){var t=i(e),n=t[0],r=t[1];W(E(e),[n+s.left,r+s.top],z)}}),[W,H,E,R,z,i,s]),$=M((function(e){var t=F(e);if(I(t),null==a||a(t?t[1]:null),t){var n=t[1];null==V||V(n,e),null==h||h(t[1],e)}}),[F,I,a,V,h]),q=M((function(e){var t=F(e);if(I(t),t){var n=t[0],r=t[1];if(null==a||a(r),null==V||V(r,e),B.current){var i=B.current,o=i[0],l=i[1];n!==o?null==g||g(l,e):null==p||p(r,e)}else null==h||h(r,e)}else null==a||a(null),null==U||U(),B.current&&(null==g||g(B.current[1],e))}),[F,I,a,B,h,p,g,V,U]),Y=M((function(e){I(null),null==a||a(null),U(),g&&B.current&&g(B.current[1],e)}),[I,a,B,U,g]),G=M((function(e){var t=F(e);I(t),t&&(null==v||v(t[1],e))}),[F,I,v]),X=M((function(e){var t=F(e);I(t),t&&(null==m||m(t[1],e))}),[F,I,m]),Z=M((function(e){var t=F(e);I(t),t&&(null==b||b(t[1],e))}),[F,I,b]),K=M((function(e){var t=F(e);I(t),t&&(null==y||y(t[1],e))}),[F,I,y]),J=M((function(e){var t=F(e);L&&(I(t),null==a||a(t?t[1]:null)),t&&(null==_||_(t[1],e))}),[F,I,a,L,_]),Q=M((function(e){var t=F(e);L&&(I(t),null==a||a(t?t[1]:null)),t&&(null==k||k(t[1],e))}),[F,I,a,L,k]),ee=M((function(e){L&&(I(null),null==a||a(null)),S&&B.current&&S(B.current[1],e)}),[L,I,a,S,B]);return{current:N,handleMouseEnter:f?$:void 0,handleMouseMove:f?q:void 0,handleMouseLeave:f?Y:void 0,handleMouseDown:f?G:void 0,handleMouseUp:f?X:void 0,handleClick:f?Z:void 0,handleDoubleClick:f?K:void 0,handleTouchStart:f?J:void 0,handleTouchMove:f?Q:void 0,handleTouchEnd:f?ee:void 0}}({elementRef:z,nodes:t,delaunay:N,margin:a,detectionRadius:S,setCurrent:s,onMouseEnter:c,onMouseMove:u,onMouseLeave:d,onMouseDown:f,onMouseUp:h,onClick:p,onDoubleClick:g,onTouchStart:v,onTouchMove:m,onTouchEnd:b,enableTouchCrosshair:_,tooltip:T,tooltipPosition:E,tooltipAnchor:R}),F=B.current,j=B.handleMouseEnter,W=B.handleMouseMove,H=B.handleMouseLeave,U=B.handleMouseDown,V=B.handleMouseUp,$=B.handleClick,q=B.handleDoubleClick,Y=B.handleTouchStart,G=B.handleTouchMove,X=B.handleTouchEnd,Z=A((function(){if(P&&I)return I.render()}),[P,I]);return ln("g",{ref:z,transform:"translate("+-a.left+","+-a.top+")",children:[P&&I&&ln(r,{children:[ln("path",{d:Z,stroke:"red",strokeWidth:1,opacity:.75}),S<1/0&&ln("path",{stroke:"red",strokeWidth:.35,fill:"none",d:N.renderPoints(void 0,S)}),F&&ln("path",{fill:"pink",opacity:.35,d:I.renderCell(F[0])})]}),ln("rect",{"data-ref":"mesh-interceptor",width:a.left+n+a.right,height:a.top+i+a.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:j,onMouseMove:W,onMouseLeave:H,onMouseDown:U,onMouseUp:V,onTouchStart:Y,onTouchMove:G,onTouchEnd:X,onClick:$,onDoubleClick:q})]})};function Nj(){return Nj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nj.apply(null,arguments)}function Ij(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Bj,Fj={xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},curve:"linear",colors:{scheme:"nivo"},lineWidth:2,layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],enablePoints:!0,pointSize:6,pointColor:{from:"series.color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,enableGridX:!0,enableGridY:!0,legends:[],isInteractive:!0,tooltip:E((function(e){var t=e.point;return ln(lT,{id:ln("span",{children:["x: ",ln("strong",{children:t.data.xFormatted}),", y:"," ",ln("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.seriesColor})})),sliceTooltip:E((function(e){var t=e.slice,n=e.axis,r=eT(),i="x"===n?"y":"x";return ln(cT,{rows:t.points.map((function(e){return[ln(aT,{color:e.seriesColor,style:r.tooltip.chip},"chip"),e.seriesId,ln("span",{style:r.tooltip.tableCellValue,children:e.data[i+"Formatted"]},"value")]}))})})),debugMesh:!1,renderWrapper:!0},jj=Nj({},Fj,{defs:[],fill:[],enablePointLabel:!1,pointLabel:"data.yFormatted",areaBlendMode:"normal",axisTop:null,axisRight:null,axisBottom:FB,axisLeft:FB,useMesh:!1,enableSlices:!1,debugSlices:!1,enableCrosshair:!0,crosshairType:"bottom-left",enableTouchCrosshair:!1,initialHiddenIds:[],animate:!0,motionConfig:"gentle",role:"img",isFocusable:!1}),Wj=Nj({},Fj,{pixelRatio:"undefined"!=typeof window&&null!=(Bj=window.devicePixelRatio)?Bj:1,axisTop:null,axisRight:null,axisBottom:FB,axisLeft:FB});function Hj(e){return A((function(){return Bu().defined((function(e){return null!==e.x&&null!==e.y})).x((function(e){return e.x})).y((function(e){return e.y})).curve(CD(e))}),[e])}function Uj(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return A((function(){return Fu().defined((function(e){return null!==e.x&&null!==e.y})).x((function(e){return e.x})).y1((function(e){return e.y})).curve(CD(t)).y0(n(r))}),[t,n,r])}var Vj=function(e){var t=e.data,n=e.xScale,r=void 0===n?Fj.xScale:n,i=e.xFormat,o=e.yScale,a=void 0===o?Fj.yScale:o,l=e.yFormat,s=e.width,c=e.height,u=e.colors,d=void 0===u?Fj.colors:u,f=e.curve,h=void 0===f?Fj.curve:f,p=e.areaBaselineValue,g=void 0===p?Fj.areaBaselineValue:p,v=e.pointColor,m=void 0===v?Fj.pointColor:v,b=e.pointBorderColor,y=void 0===b?Fj.pointBorderColor:b,_=e.enableSlices,x=void 0===_?jj.enableSlices:_,k=e.initialHiddenIds,C=void 0===k?jj.initialHiddenIds:k,S=w(YF("line"))[0],T=LD(i),L=LD(l),E=bF(d,"id"),O=eT(),R=cF(m,O),P=cF(y,O),z=w(null!=C?C:[]),D=z[0],N=z[1],I=A((function(){return kB(t.filter((function(e){return-1===D.indexOf(e.id)})),r,a,s,c)}),[t,D,r,a,s,c]),B=I.xScale,F=I.yScale,j=I.series,W=A((function(){var e=t.map((function(e){return{id:e.id,label:""+e.id,color:E(e)}})),n=e.map((function(e){return Nj({},j.find((function(t){return t.id===e.id})),{color:e.color})})).filter((function(e){return Boolean(e.id)}));return{legendData:e.map((function(e){return Nj({},e,{hidden:!n.find((function(t){return t.id===e.id}))})})).reverse(),series:n}}),[t,j,E]),H=W.legendData,U=W.series,V=M((function(e){N((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(t,[e])}))}),[]),$=function(e){var t=e.series,n=e.getPointColor,r=e.getPointBorderColor,i=e.formatX,o=e.formatY;return A((function(){return t.reduce((function(e,t,a){return[].concat(e,t.data.filter((function(e){return null!==e.position.x&&null!==e.position.y})).map((function(l,s){var c={id:t.id+"."+s,indexInSeries:s,absIndex:e.length+s,seriesIndex:a,seriesId:t.id,seriesColor:t.color,x:l.position.x,y:l.position.y,data:Nj({},l.data,{xFormatted:i(l.data.x),yFormatted:o(l.data.y)})};return c.color=n({series:t,point:c}),c.borderColor=r(c),c})))}),[])}),[t,n,r,i,o])}({series:U,getPointColor:R,getPointBorderColor:P,formatX:T,formatY:L}),q=function(e){var t=e.componentId,n=e.enableSlices,r=e.points,i=e.width,o=e.height;return A((function(){if("x"===n){var e=new Map;return r.forEach((function(t){null!==t.data.x&&null!==t.data.y&&(e.has(t.x)?e.get(t.x).push(t):e.set(t.x,[t]))})),Array.from(e.entries()).sort((function(e,t){return e[0]-t[0]})).map((function(e,n,r){var a,l,s=e[0],c=e[1],u=r[n-1],d=r[n+1];return a=u?s-(s-u[0])/2:s,l=d?s-a+(d[0]-s)/2:i-a,{id:"slice:"+t+":"+s,x0:a,x:s,y0:0,y:0,width:l,height:o,points:c.reverse()}}))}if("y"===n){var a=new Map;return r.forEach((function(e){null!==e.data.x&&null!==e.data.y&&(a.has(e.y)?a.get(e.y).push(e):a.set(e.y,[e]))})),Array.from(a.entries()).sort((function(e,t){return e[0]-t[0]})).map((function(e,t,n){var r,a,l=e[0],s=e[1],c=n[t-1],u=n[t+1];return r=c?l-(l-c[0])/2:l,a=u?l-r+(u[0]-l)/2:o-r,{id:l,x0:0,x:0,y0:r,y:l,width:i,height:a,points:s.reverse()}}))}return[]}),[t,n,o,r,i])}({componentId:S,enableSlices:x,points:$,width:s,height:c});return{legendData:H,toggleSeries:V,lineGenerator:Hj(h),areaGenerator:Uj({curve:h,yScale:F,areaBaselineValue:g}),getColor:E,series:U,xScale:B,yScale:F,slices:q,points:$}},$j=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,o=e.path,a=Rz(),l=a.animate,s=a.config,c=wD(o),u=tx({color:r,config:s,immediate:!l});return ln(fC.path,{d:c,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},qj=E((function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode;return ln("g",{children:e.series.slice(0).reverse().map((function(e){return ln($j,Nj({path:t(e.data.map((function(e){return e.position})))},Nj({areaOpacity:n,areaBlendMode:r},e)),""+e.id)}))})})),Yj=E((function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,o=A((function(){return t(n)}),[t,n]),a=wD(o);return ln(fC.path,{d:a,fill:"none",strokeWidth:i,stroke:r})})),Gj=E((function(e){var t=e.series,n=e.lineGenerator,i=e.lineWidth;return ln(r,{children:t.slice(0).reverse().map((function(e){var t=e.id,r=e.data,o=e.color;return ln(Yj,{points:r.map((function(e){return e.position})),lineGenerator:n,color:o,thickness:i},t)}))})})),Xj=E((function(e){var t=e.slice,n=e.slices,r=e.axis,i=e.debug,o=e.tooltip,a=e.isCurrent,l=e.setCurrent,s=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onMouseDown,f=e.onMouseUp,h=e.onClick,p=e.onDoubleClick,g=e.onTouchStart,v=e.onTouchMove,m=e.onTouchEnd,b=mT(),y=b.showTooltipFromEvent,_=b.hideTooltip,w=M((function(e){y(R(o,{slice:t,axis:r}),e,"right"),l(t),null==s||s(t,e)}),[y,o,t,r,l,s]),x=M((function(e){y(R(o,{slice:t,axis:r}),e,"right"),null==c||c(t,e)}),[y,o,t,r,c]),k=M((function(e){_(),l(null),null==u||u(t,e)}),[_,l,u,t]),C=M((function(e){null==d||d(t,e)}),[t,d]),S=M((function(e){null==f||f(t,e)}),[t,f]),A=M((function(e){null==h||h(t,e)}),[t,h]),T=M((function(e){null==p||p(t,e)}),[t,p]),L=M((function(e){y(R(o,{slice:t,axis:r}),e,"right"),l(t),null==g||g(t,e)}),[r,g,l,y,t,o]),E=M((function(e){var i=e.touches[0],a=document.elementFromPoint(i.clientX,i.clientY),s=null==a?void 0:a.getAttribute("data-ref");if(s){var c=n.find((function(e){return e.id===s}));c&&(y(R(o,{slice:c,axis:r}),e,"right"),l(c))}null==v||v(t,e)}),[r,v,l,y,t,n,o]),O=M((function(e){_(),l(null),null==m||m(t,e)}),[_,l,m,t]);return ln("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:i?1:0,strokeOpacity:.75,fill:"red",fillOpacity:a&&i?.35:0,onMouseEnter:w,onMouseMove:x,onMouseLeave:k,onMouseDown:C,onMouseUp:S,onClick:A,onDoubleClick:T,onTouchStart:L,onTouchMove:E,onTouchEnd:O,"data-ref":t.id})})),Zj=E((function(e){var t=e.slices,n=e.axis,i=e.debug,o=e.tooltip,a=e.current,l=e.setCurrent,s=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onMouseDown,f=e.onMouseUp,h=e.onClick,p=e.onDoubleClick,g=e.onTouchStart,v=e.onTouchMove,m=e.onTouchEnd;return ln(r,{children:t.map((function(e){return ln(Xj,{slice:e,slices:t,axis:n,debug:i,tooltip:o,setCurrent:l,isCurrent:null!==a&&a.id===e.id,onMouseEnter:s,onMouseMove:c,onMouseLeave:u,onMouseDown:d,onMouseUp:f,onClick:h,onDoubleClick:p,onTouchStart:g,onTouchMove:v,onTouchEnd:m},e.id)}))})})),Kj=E((function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,o=e.enableLabel,a=e.label,l=e.labelYOffset,s=e.isFocusable,c=e.setCurrentPoint,u=e.tooltip,d=e.margin,f=e.ariaLabel,h=e.ariaLabelledBy,p=e.ariaDescribedBy,g=e.ariaHidden,v=e.ariaDisabled,m=function(e){var t=IE(e)?e:function(t){return jA(t,e)};return t}(a),b=mT(),y=b.showTooltipAt,_=b.hideTooltip,w=t.slice(0).sort((function(e,t){return e.indexInSeries-t.indexInSeries})).sort((function(e,t){return t.seriesIndex-e.seriesIndex})).map((function(e){return{id:e.id,x:e.x,y:e.y,datum:e.data,fill:e.color,stroke:e.borderColor,label:o?m(e):null,ariaLabel:f?f(e):void 0,ariaLabelledBy:h?h(e):void 0,ariaDescribedBy:p?p(e):void 0,ariaHidden:g?g(e):void 0,ariaDisabled:v?v(e):void 0,onFocus:s?function(){c(e),y(R(u,{point:e}),[d.left+e.x,d.top+e.y],"top")}:void 0,onBlur:s?function(){c(null),_()}:void 0}}));return ln("g",{children:w.map((function(e){return ln(bD,{x:e.x,y:e.y,datum:e.datum,symbol:n,size:r,color:e.fill,borderWidth:i,borderColor:e.stroke,label:e.label,labelYOffset:l,ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabelledBy,ariaDescribedBy:e.ariaDescribedBy,ariaHidden:e.ariaHidden,ariaDisabled:e.ariaDisabled,isFocusable:s,onFocus:e.onFocus,onBlur:e.onBlur,testId:"line.point."+e.id},e.id)}))})})),Jj=E((function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=e.setCurrent,a=e.onMouseEnter,l=e.onMouseMove,s=e.onMouseLeave,c=e.onMouseDown,u=e.onMouseUp,d=e.onClick,f=e.onDoubleClick,h=e.onTouchStart,p=e.onTouchMove,g=e.onTouchEnd,v=e.tooltip,m=e.debug,b=e.enableTouchCrosshair,y=mT(),_=y.showTooltipAt,w=y.hideTooltip,x=M((function(e,t){_(R(v,{point:e}),[e.x+i.left,e.y+i.top],"top"),null==a||a(e,t)}),[_,v,a,i]),k=M((function(e,t){_(R(v,{point:e}),[e.x+i.left,e.y+i.top],"top"),null==l||l(e,t)}),[_,v,i.left,i.top,l]),C=M((function(e,t){w(),null==s||s(e,t)}),[w,s]),S=M((function(e,t){null==c||c(e,t)}),[c]),A=M((function(e,t){null==u||u(e,t)}),[u]),T=M((function(e,t){null==d||d(e,t)}),[d]),L=M((function(e,t){null==f||f(e,t)}),[f]),E=M((function(e,t){_(R(v,{point:e}),[e.x+i.left,e.y+i.top],"top"),null==h||h(e,t)}),[i.left,i.top,h,_,v]),O=M((function(e,t){_(R(v,{point:e}),[e.x+i.left,e.y+i.top],"top"),null==p||p(e,t)}),[i.left,i.top,p,_,v]),P=M((function(e,t){w(),null==g||g(e,t)}),[g,w]);return ln(Dj,{nodes:t,width:n,height:r,setCurrent:o,onMouseEnter:x,onMouseMove:k,onMouseLeave:C,onMouseDown:S,onMouseUp:A,onClick:T,onDoubleClick:L,onTouchStart:E,onTouchMove:O,onTouchEnd:P,enableTouchCrosshair:b,debug:m})})),Qj=["isInteractive","animate","motionConfig","theme","renderWrapper"];function eW(e){var t=e.data,n=e.xScale,r=void 0===n?jj.xScale:n,i=e.xFormat,o=e.yScale,a=void 0===o?jj.yScale:o,l=e.yFormat,s=e.curve,c=void 0===s?jj.curve:s,u=e.margin,d=e.width,f=e.height,h=e.colors,p=void 0===h?jj.colors:h,g=e.lineWidth,v=void 0===g?jj.lineWidth:g,m=e.layers,b=void 0===m?jj.layers:m,y=e.enableArea,_=void 0===y?jj.enableArea:y,x=e.areaBaselineValue,k=void 0===x?jj.areaBaselineValue:x,C=e.areaOpacity,S=void 0===C?jj.areaOpacity:C,M=e.areaBlendMode,A=void 0===M?jj.areaBlendMode:M,T=e.enablePoints,L=void 0===T?jj.enablePoints:T,E=e.pointSymbol,O=e.pointSize,R=void 0===O?jj.pointSize:O,P=e.pointColor,D=void 0===P?jj.pointColor:P,N=e.pointBorderWidth,I=void 0===N?jj.pointBorderWidth:N,B=e.pointBorderColor,F=void 0===B?jj.pointBorderColor:B,j=e.enablePointLabel,W=void 0===j?jj.enablePointLabel:j,H=e.pointLabel,U=void 0===H?jj.pointLabel:H,V=e.pointLabelYOffset,$=e.enableGridX,q=void 0===$?jj.enableGridX:$,Y=e.gridXValues,G=e.enableGridY,X=void 0===G?jj.enableGridY:G,Z=e.gridYValues,K=e.axisTop,J=e.axisRight,Q=e.axisBottom,ee=void 0===Q?jj.axisBottom:Q,te=e.axisLeft,ne=void 0===te?jj.axisLeft:te,re=e.defs,ie=void 0===re?jj.defs:re,oe=e.fill,ae=void 0===oe?jj.fill:oe,le=e.markers,se=e.legends,ce=void 0===se?jj.legends:se,ue=e.isInteractive,de=void 0===ue?jj.isInteractive:ue,fe=e.useMesh,he=void 0===fe?jj.useMesh:fe,pe=e.debugMesh,ge=void 0===pe?jj.debugMesh:pe,ve=e.onMouseEnter,me=e.onMouseMove,be=e.onMouseLeave,ye=e.onMouseDown,_e=e.onMouseUp,we=e.onClick,xe=e.onDoubleClick,ke=e.onTouchStart,Ce=e.onTouchMove,Se=e.onTouchEnd,Me=e.tooltip,Ae=void 0===Me?jj.tooltip:Me,Te=e.enableSlices,Le=void 0===Te?jj.enableSlices:Te,Ee=e.debugSlices,Oe=void 0===Ee?jj.debugSlices:Ee,Re=e.sliceTooltip,Pe=void 0===Re?jj.sliceTooltip:Re,ze=e.enableCrosshair,De=void 0===ze?jj.enableCrosshair:ze,Ne=e.crosshairType,Ie=void 0===Ne?jj.crosshairType:Ne,Be=e.enableTouchCrosshair,Fe=void 0===Be?jj.enableTouchCrosshair:Be,je=e.role,We=void 0===je?jj.role:je,He=e.ariaLabel,Ue=e.ariaLabelledBy,Ve=e.ariaDescribedBy,$e=e.isFocusable,qe=void 0===$e?jj.isFocusable:$e,Ye=e.pointAriaLabel,Ge=e.pointAriaLabelledBy,Xe=e.pointAriaDescribedBy,Ze=e.pointAriaHidden,Ke=e.pointAriaDisabled,Je=e.initialHiddenIds,Qe=void 0===Je?jj.initialHiddenIds:Je,et=e.forwardedRef,tt=MD(d,f,u),nt=tt.margin,rt=tt.innerWidth,it=tt.innerHeight,ot=tt.outerWidth,at=tt.outerHeight,lt=Vj({data:t,xScale:r,xFormat:i,yScale:a,yFormat:l,width:rt,height:it,colors:p,curve:c,areaBaselineValue:k,pointColor:D,pointBorderColor:F,enableSlices:Le,initialHiddenIds:Qe}),st=lt.legendData,ct=lt.toggleSeries,ut=lt.lineGenerator,dt=lt.areaGenerator,ft=lt.series,ht=lt.xScale,pt=lt.yScale,gt=lt.slices,vt=lt.points,mt=w(null),bt=mt[0],yt=mt[1],_t=w(null),wt=_t[0],xt=_t[1],kt={grid:null,markers:null,axes:null,areas:null,crosshair:null,lines:null,points:null,slices:null,mesh:null,legends:null};b.includes("grid")&&(q||X)&&(kt.grid=ln($B,{width:rt,height:it,xScale:q?ht:null,yScale:X?pt:null,xValues:Y,yValues:Z},"grid")),b.includes("markers")&&Array.isArray(le)&&le.length>0&&(kt.markers=ln(_D,{markers:le,width:rt,height:it,xScale:ht,yScale:pt},"markers")),b.includes("axes")&&(kt.axes=ln(HB,{xScale:ht,yScale:pt,width:rt,height:it,top:K,right:J,bottom:ee,left:ne},"axes")),b.includes("lines")&&(kt.lines=ln(Gj,{series:ft,lineGenerator:ut,lineWidth:v},"lines")),b.includes("legends")&&ce.length>0&&(kt.legends=ln(z,{children:ce.map((function(e,t){return ln(UF,Nj({},e,{containerWidth:rt,containerHeight:it,data:e.data||st,toggleSerie:e.toggleSerie?ct:void 0}),t)}))},"legends"));var Ct=ID(ie,ft,ae);_&&(kt.areas=ln(qj,{areaGenerator:dt,areaOpacity:S,areaBlendMode:A,series:ft},"areas")),de&&!1!==Le&&(kt.slices=ln(Zj,{slices:gt,axis:Le,debug:Oe,tooltip:Pe,current:wt,setCurrent:xt,onMouseEnter:ve,onMouseMove:me,onMouseLeave:be,onMouseDown:ye,onMouseUp:_e,onClick:we,onDoubleClick:xe,onTouchStart:ke,onTouchMove:Ce,onTouchEnd:Se},"slices")),L&&(kt.points=ln(Kj,{points:vt,symbol:E,size:R,borderWidth:I,enableLabel:W,label:U,labelYOffset:V,isFocusable:qe,setCurrentPoint:yt,tooltip:Ae,margin:nt,ariaLabel:Ye,ariaLabelledBy:Ge,ariaDescribedBy:Xe,ariaHidden:Ze,ariaDisabled:Ke},"points")),de&&De&&(null!==bt&&(kt.crosshair=ln(dT,{width:rt,height:it,x:bt.x,y:bt.y,type:Ie},"crosshair")),null!==wt&&Le&&(kt.crosshair=ln(dT,{width:rt,height:it,x:wt.x,y:wt.y,type:Le},"crosshair"))),de&&he&&!1===Le&&(kt.mesh=ln(Jj,{points:vt,width:rt,height:it,margin:nt,setCurrent:yt,onMouseEnter:ve,onMouseMove:me,onMouseLeave:be,onMouseDown:ye,onMouseUp:_e,onClick:we,onDoubleClick:xe,onTouchStart:ke,onTouchMove:Ce,onTouchEnd:Se,tooltip:Ae,enableTouchCrosshair:Fe,debug:ge},"mesh"));var St=Nj({},e,{innerWidth:rt,innerHeight:it,series:ft,slices:gt,points:vt,xScale:ht,yScale:pt,lineGenerator:ut,areaGenerator:dt,currentPoint:bt,setCurrentPoint:yt,currentSlice:wt,setCurrentSlice:xt});return ln(vD,{defs:Ct,width:ot,height:at,margin:nt,role:We,ariaLabel:He,ariaLabelledBy:Ue,ariaDescribedBy:Ve,isFocusable:qe,ref:et,children:b.map((function(e,t){return"function"==typeof e?ln(z,{children:e(St)},t):kt[e]}))})}var tW=S((function(e,t){var n=e.isInteractive,r=void 0===n?jj.isInteractive:n,i=e.animate,o=void 0===i?jj.animate:i,a=e.motionConfig,l=void 0===a?jj.motionConfig:a,s=e.theme,c=e.renderWrapper,u=Ij(e,Qj);return ln(Dz,{animate:o,isInteractive:r,motionConfig:l,renderWrapper:c,theme:s,children:ln(eW,Nj({isInteractive:r},u,{forwardedRef:t}))})})),nW=["defaultWidth","defaultHeight","onResize","debounceResize"],rW=S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Ij(e,nW);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(tW,Nj({width:n,height:r},a,{ref:t}))}})})),iW=["isInteractive","renderWrapper","theme"],oW=function(e){var t=e.width,n=e.height,r=e.margin,i=e.pixelRatio,o=void 0===i?Wj.pixelRatio:i,a=e.data,l=e.xScale,s=void 0===l?Wj.xScale:l,c=e.xFormat,u=e.yScale,d=void 0===u?Wj.yScale:u,f=e.yFormat,h=e.curve,p=void 0===h?Wj.curve:h,g=e.layers,v=void 0===g?Wj.layers:g,m=e.colors,b=void 0===m?Wj.colors:m,y=e.lineWidth,_=void 0===y?Wj.lineWidth:y,k=e.enableArea,S=void 0===k?Wj.enableArea:k,T=e.areaBaselineValue,L=void 0===T?Wj.areaBaselineValue:T,E=e.areaOpacity,O=void 0===E?Wj.areaOpacity:E,P=e.enablePoints,z=void 0===P?Wj.enablePoints:P,D=e.pointSize,N=void 0===D?Wj.pointSize:D,I=e.pointColor,B=void 0===I?Wj.pointColor:I,F=e.pointBorderWidth,j=void 0===F?Wj.pointBorderWidth:F,W=e.pointBorderColor,H=void 0===W?Wj.pointBorderColor:W,U=e.enableGridX,V=void 0===U?Wj.enableGridX:U,$=e.gridXValues,q=e.enableGridY,Y=void 0===q?Wj.enableGridY:q,G=e.gridYValues,X=e.axisTop,Z=e.axisRight,K=e.axisBottom,J=void 0===K?Wj.axisBottom:K,Q=e.axisLeft,ee=void 0===Q?Wj.axisLeft:Q,te=e.legends,ne=void 0===te?Wj.legends:te,re=e.isInteractive,ie=void 0===re?Wj.isInteractive:re,oe=e.debugMesh,ae=void 0===oe?Wj.debugMesh:oe,le=e.onMouseLeave,se=e.onMouseDown,ce=e.onMouseUp,ue=e.onClick,de=e.onDoubleClick,fe=e.tooltip,he=void 0===fe?Wj.tooltip:fe,pe=e.role,ge=e.forwardedRef,ve=C(null),me=MD(t,n,r),be=me.margin,ye=me.innerWidth,_e=me.innerHeight,we=me.outerWidth,xe=me.outerHeight,ke=eT(),Ce=w(null),Se=Ce[0],Me=Ce[1],Ae=Vj({data:a,xScale:s,xFormat:c,yScale:d,yFormat:f,width:ye,height:_e,colors:b,curve:p,areaBaselineValue:L,pointColor:B,pointBorderColor:H}),Te=Ae.lineGenerator,Le=Ae.areaGenerator,Ee=Ae.series,Oe=Ae.xScale,Re=Ae.yScale,Pe=Ae.points,ze=A((function(){return{innerWidth:ye,innerHeight:_e,series:Ee,points:Pe,xScale:Oe,yScale:Re,lineWidth:_,lineGenerator:Te,areaGenerator:Le,currentPoint:Se,setCurrentPoint:Me}}),[ye,_e,Ee,Pe,Oe,Re,_,Te,Le,Se,Me]),De=Ej({points:Pe,width:ye,height:_e,debug:ae}),Ne=De.delaunay,Ie=De.voronoi;x((function(){if(null!==ve.current){ve.current.width=we*o,ve.current.height=xe*o;var e=ve.current.getContext("2d");e.scale(o,o),e.fillStyle=ke.background,e.fillRect(0,0,we,xe),e.translate(be.left,be.top),v.forEach((function(t){var n;"function"==typeof t&&t(e,ze);var r=null!=(n=ke.grid.line.strokeWidth)?n:0;if("grid"===t&&"string"!=typeof r&&r>0&&(e.lineWidth=r,e.strokeStyle=ke.grid.line.stroke,V&&GB(e,{width:ye,height:_e,scale:Oe,axis:"x",values:$}),Y&&GB(e,{width:ye,height:_e,scale:Re,axis:"y",values:G})),"axes"===t&&YB(e,{xScale:Oe,yScale:Re,width:ye,height:_e,top:X,right:Z,bottom:J,left:ee,theme:ke}),"areas"===t&&!0===S){e.save(),e.globalAlpha=O,Le.context(e);for(var i=Ee.length-1;i>=0;i--)e.fillStyle=Ee[i].color,e.beginPath(),Le(Ee[i].data.map((function(e){return e.position}))),e.fill();e.restore()}if("lines"===t&&(Te.context(e),Ee.forEach((function(t){e.strokeStyle=t.color,e.lineWidth=_,e.beginPath(),Te(t.data.map((function(e){return e.position}))),e.stroke()}))),"points"===t&&!0===z&&N>0&&Pe.forEach((function(t){e.fillStyle=t.color,e.beginPath(),e.arc(t.x,t.y,N/2,0,2*Math.PI),e.fill(),j>0&&(e.strokeStyle=t.borderColor,e.lineWidth=j,e.stroke())})),"mesh"===t&&!0===ae&&void 0!==Ie&&(function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()}(e,Ie),Se&&function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()}(e,Ie,Se.absIndex)),"legends"===t){var o=Ee.map((function(e){return{id:e.id,label:e.id,color:e.color}})).reverse();ne.forEach((function(t){$F(e,Nj({},t,{data:t.data||o,containerWidth:ye,containerHeight:_e,theme:ke}))}))}}))}}),[ve,ye,we,_e,xe,be.left,be.top,o,v,ke,Te,Ee,Oe,Re,V,$,Y,G,X,Z,J,ee,ne,Pe,z,N,j,Se,ze,ae,S,Le,O,_,Ie]);var Be=M((function(e){if(!ve.current)return null;var t=zD(ve.current,e),n=t[0],r=t[1];if(!PD(be.left,be.top,ye,_e,n,r))return null;var i=Ne.find(n-be.left,r-be.top);return Pe[i]}),[ve,be,ye,_e,Ne,Pe]),Fe=mT(),je=Fe.showTooltipFromEvent,We=Fe.hideTooltip,He=M((function(e){var t=Be(e);Me(t),t?je(R(he,{point:t}),e):We()}),[Be,Me,je,We,he]),Ue=M((function(e){We(),Me(null),Se&&(null==le||le(Se,e))}),[We,Me,le,Se]),Ve=M((function(e){if(se){var t=Be(e);t&&se(t,e)}}),[Be,se]),$e=M((function(e){if(ce){var t=Be(e);t&&ce(t,e)}}),[Be,ce]),qe=M((function(e){if(ue){var t=Be(e);t&&ue(t,e)}}),[Be,ue]),Ye=M((function(e){if(de){var t=Be(e);t&&de(t,e)}}),[Be,de]);return ln("canvas",{ref:BD(ve,ge),width:we*o,height:xe*o,style:{width:we,height:xe,cursor:ie?"auto":"normal"},onMouseEnter:ie?He:void 0,onMouseMove:ie?He:void 0,onMouseLeave:ie?Ue:void 0,onMouseDown:ie?Ve:void 0,onMouseUp:ie?$e:void 0,onClick:ie?qe:void 0,onDoubleClick:ie?Ye:void 0,role:pe})},aW=S((function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=Ij(e,iW);return ln(Dz,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:ln(oW,Nj({},o,{forwardedRef:t}))})})),lW=["defaultWidth","defaultHeight","onResize","debounceResize"];S((function(e,t){var n=e.defaultWidth;e.defaultHeight;var r=e.onResize,i=e.debounceResize,o=Ij(e,lW);return ln(Bz,{defaultWidth:n,defaultHeight:n,onResize:r,debounceResize:i,children:function(e){var n=e.width,r=e.height;return ln(aW,Nj({width:n,height:r},o,{ref:t}))}})}));var sW="styles_empty-data-stub__DuGJ2";const cW=({label:e,width:t,height:n,ariaLabel:r=e})=>ln("div",{role:"img","aria-label":r,className:sW,style:{width:t,height:n},children:e}),uW={anchor:"right",direction:"column",justify:!1,translateX:100,translateY:0,itemsSpacing:0,itemDirection:"left-to-right",itemWidth:80,itemHeight:20,itemOpacity:.75,symbolSize:12,symbolShape:"square",symbolBorderColor:"rgba(0, 0, 0, .5)",effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]},dW={tickSize:5,tickPadding:5,tickRotation:45,ticksPosition:"before"},fW={tickSize:5,tickPadding:5,tickRotation:0},hW={top:60,right:110,bottom:60,left:80},pW={type:"point"},gW={type:"linear",min:"auto",max:"auto",reverse:!1},vW={margin:hW,xScale:pW,yScale:gW,axisTop:null,axisRight:null,axisBottom:dW,axisLeft:fW,useMesh:!0,enableArea:!0},mW={background:"var(--bg-base-primary)",axis:{ticks:{text:{fill:"var(--on-text-secondary)"}},legend:{text:{fill:"var(--on-text-primary)"}},grid:{line:{stroke:"var(--on-border-muted)"}}},legends:{text:{fill:"var(--on-text-secondary)"}},tooltip:{container:{background:"var(--bg-base-modal)",color:"var(--on-text-primary)"}}};let bW=function(e){return e.Mesh="Mesh",e.SlicesX="SlicesX",e.SlicesY="SlicesY",e}({});const yW=64,_W=(e,t,n)=>{const{constant:r=yW,...i}=n??{};return{type:"symlog",min:e,max:t,constant:r,...i}},wW=(e,t)=>{const n=e.flatMap((e=>e.data)).map((e=>e.y)),r=Math.min(...n),i=Math.max(...n);return _W(r,i,t)},xW=({kind:e=bW.Mesh,width:t="100%",height:n=400,emptyLabel:r="No data available",emptyAriaLabel:i="No data available",axisBottom:o,rootAriaLabel:a,data:l,...s})=>{const c=(e=>{switch(e){case bW.SlicesX:return{useMesh:!1,enableSlices:"x"};case bW.SlicesY:return{useMesh:!1,enableSlices:"y"};case bW.Mesh:default:return{useMesh:!0,enableSlices:void 0}}})(e),u=d(((t,n)=>{e===bW.Mesh?s?.onClick?.(t,n):[bW.SlicesX,bW.SlicesY].includes(e)&&s?.onSliceClick?.(t,n)}),[e,s]),f=d(((t,n)=>{e===bW.Mesh?s?.onTouchEnd?.(t,n):[bW.SlicesX,bW.SlicesY].includes(e)&&s?.onSliceTouchEnd?.(t,n)}),[e,s]),p=h((()=>{const e=l?.flatMap((e=>e.data?.map((e=>e.x))));return[...new Set(e)].sort(((e,t)=>{const n=e?.toString()||"",r=t?.toString()||"",i=n.split(/(\d+)/).filter(Boolean),o=r.split(/(\d+)/).filter(Boolean);for(let e=0;e<Math.min(i.length,o.length);e++){const t=parseInt(i[e],10),n=parseInt(o[e],10);if(isNaN(t)||isNaN(n)){const t=i[e].localeCompare(o[e]);if(0!==t)return t}else if(t!==n)return t-n}return i.length-o.length}))}),[l]);return!l||0===l.length||l.every((e=>!e.data?.length))?ln(cW,{label:r,width:t,height:n,ariaLabel:i}):ln("div",{role:"img","aria-label":a,tabIndex:0,style:{width:t,height:n},children:ln(rW,{...vW,...c,...s,data:l,onClick:u,onTouchEnd:f,axisBottom:{...dW,...o,tickValues:p},theme:mW})})},kW=({title:e,mode:t,items:n,slices:r,min:i,max:o,height:a=400,width:l="100%",rootAriaLabel:s,translations:u})=>{const[f,p]=c([]),g=u["no-results"],v=h((()=>_W(i,o,{constant:8})),[o,i]),m=h((()=>t===lo.Percent?" >-.2%":" >-.2f"),[t]),b=d((e=>{const t=e.points.reduce(((e,t)=>(e.push(t.data.x),e)),[]);p((()=>t))}),[]);return h((()=>r.filter((e=>f.includes(e.metadata.executionId)))),[r,f]),ln(xv,{title:e,children:ln(xW,{kind:bW.SlicesX,data:n,height:a,width:l,emptyLabel:g,emptyAriaLabel:g,rootAriaLabel:s,colors:({color:e})=>e,yScale:v,yFormat:m,onSliceClick:b,onSliceTouchEnd:b})})},CW=e=>{switch(e){case"passed":return"var(--bg-support-castor)";case"failed":return"var(--bg-support-capella)";case"broken":return"var(--bg-support-atlas)";case"unknown":default:return"var(--bg-support-skat)";case"skipped":return"var(--bg-support-rau)"}},SW=e=>{const{positiveValue:t,negativeValue:n,absTotal:r,noValuePercentage:i=-1}=e;if(0===Math.abs(t)+Math.abs(n))return i;const o=Math.abs(t)-Math.abs(n),a=(l=Math.abs(o),s=r,Math.floor(l/s*1e4)/100);var l,s;return o>0?50+a:o<0?50-a:50},MW=(e,t)=>{const[n,r]=e,i=t.map(((e,i)=>n+(r-n)*(i/(t.length-1))));return Cl().domain(i).range(t.map((e=>((e,t=document.documentElement)=>{if(e.startsWith("var(")){const n=e.match(/var\((--[^),\s]+)/);if(n){const r=n[1];return getComputedStyle(t).getPropertyValue(r).trim()||e}}return e})(e)))).interpolate(aa).clamp(!0)};var AW="styles_legend__JMBvn",TW="styles_chart__mUNSO";const LW=e=>"number"==typeof e&&e>=0&&e<=100,EW=({slices:e,percentage:t,className:n})=>ln("article",{"aria-label":"Success rate",role:"presentation",className:j(TW,n),children:[ln("svg",{"aria-hidden":!0,viewBox:"0 0 100 100",children:ln("g",{transform:"translate(50, 50)",children:e.map((e=>!!e.d&&ln("path",{d:e.d,fill:"__empty__"===e.status?"var(--bg-control-secondary)":CW(e.status)},e.status)))})}),LW(t)&&ln(hn,{className:AW,size:"s",tag:"b",children:0===t?"0":`${t}%`})]});var OW,RW,PW,zW,DW,NW,IW,BW,FW,jW,WW,HW,UW,VW,$W,qW,YW,GW,XW,ZW,KW,JW,QW,eH,tH,nH,rH,iH,oH,aH,lH,sH,cH,uH,dH,fH,hH,pH,gH,vH,mH,bH,yH,_H;function wH(){if(jW)return FW;jW=1;var e=bP(),t=wS(),n=yz(),r=bz(),i=Object.getOwnPropertySymbols?function(r){for(var i=[];r;)e(i,n(r)),r=t(r);return i}:r;return FW=i}function xH(){if(VW)return UW;VW=1;var e=vz(),t=wH(),n=YM();return UW=function(r){return e(r,n,t)},UW}function kH(){if(eH)return QW;eH=1;var e=mS(),t=function(){if(GW)return YW;GW=1;var e=mS();return YW=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}(),n=function(){if(ZW)return XW;ZW=1;var e=/\w*$/;return XW=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}(),r=function(){if(JW)return KW;JW=1;var e=bC(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return KW=function(e){return n?Object(n.call(e)):{}},KW}(),i=bS();return QW=function(o,a,l){var s=o.constructor;switch(a){case"[object ArrayBuffer]":return e(o);case"[object Boolean]":case"[object Date]":return new s(+o);case"[object DataView]":return t(o,l);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return i(o,l);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(o);case"[object RegExp]":return n(o);case"[object Symbol]":return r(o)}},QW}function CH(){if(iH)return rH;iH=1;var e=function(){if(nH)return tH;nH=1;var e=Cz(),t=CS();return tH=function(n){return t(n)&&"[object Map]"==e(n)}}(),t=HS(),n=FM(),r=n&&n.isMap,i=r?t(r):e;return rH=i}function SH(){if(sH)return lH;sH=1;var e=function(){if(aH)return oH;aH=1;var e=Cz(),t=CS();return oH=function(n){return t(n)&&"[object Set]"==e(n)}}(),t=HS(),n=FM(),r=n&&n.isSet,i=r?t(r):e;return lH=i}function MH(){if(uH)return cH;uH=1;var e=EC(),t=(RW||(RW=1,OW=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}),OW),n=HM(),r=function(){if(zW)return PW;zW=1;var e=UM(),t=wz();return PW=function(n,r){return n&&e(r,t(r),n)},PW}(),i=function(){if(NW)return DW;NW=1;var e=UM(),t=YM();return DW=function(n,r){return n&&e(r,t(r),n)},DW}(),o=gS(),a=yS(),l=function(){if(BW)return IW;BW=1;var e=UM(),t=yz();return IW=function(n,r){return e(n,t(n),r)},IW}(),s=function(){if(HW)return WW;HW=1;var e=UM(),t=wH();return WW=function(n,r){return e(n,t(n),r)},WW}(),c=xz(),u=xH(),d=Cz(),f=function(){if(qW)return $W;qW=1;var e=Object.prototype.hasOwnProperty;return $W=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r},$W}(),h=kH(),p=kS(),g=MS(),v=jS(),m=CH(),b=_C(),y=SH(),_=wz(),w=YM(),x="[object Arguments]",k="[object Function]",C="[object Object]",S={};return S[x]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S[C]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S[k]=S["[object WeakMap]"]=!1,cH=function M(A,T,L,E,O,R){var P,z=1&T,D=2&T,N=4&T;if(L&&(P=O?L(A,E,O,R):L(A)),void 0!==P)return P;if(!b(A))return A;var I=g(A);if(I){if(P=f(A),!z)return a(A,P)}else{var B=d(A),F=B==k||"[object GeneratorFunction]"==B;if(v(A))return o(A,z);if(B==C||B==x||F&&!O){if(P=D||F?{}:p(A),!z)return D?s(A,i(P,A)):l(A,r(P,A))}else{if(!S[B])return O?A:{};P=h(A,B,z)}}R||(R=new e);var j=R.get(A);if(j)return j;R.set(A,P),y(A)?A.forEach((function(e){P.add(M(e,T,L,e,A,R))})):m(A)&&A.forEach((function(e,t){P.set(t,M(e,T,L,t,A,R))}));var W=I?void 0:(N?D?u:c:D?w:_)(A);return t(W||A,(function(e,t){W&&(e=A[t=e]),n(P,t,M(e,T,L,t,A,R))})),P},cH}function AH(){if(fH)return dH;return fH=1,dH=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o},dH}function TH(){if(vH)return gH;vH=1;var e=RA(),t=DE(),n=function(){if(pH)return hH;pH=1;var e=zA(),t=AH();return hH=function(n,r){return r.length<2?n:e(n,t(r,0,-1))},hH}(),r=PA(),i=Object.prototype.hasOwnProperty;return gH=function(o,a){var l=-1,s=(a=e(a,o)).length;if(!s)return!0;for(;++l<s;){var c=r(a[l]);if("__proto__"===c&&!i.call(o,"__proto__"))return!1;if(("constructor"===c||"prototype"===c)&&l<s-1)return!1}var u=n(o,a);return null==u||delete u[r(t(a))]},gH}var LH,EH,OH=function(){if(_H)return yH;_H=1;var e=EA(),t=MH(),n=TH(),r=RA(),i=UM(),o=function(){if(bH)return mH;bH=1;var e=WS();return mH=function(t){return e(t)?void 0:t}}(),a=_P(),l=xH(),s=a((function(a,s){var c={};if(null==a)return c;var u=!1;s=e(s,(function(e){return e=r(e,a),u||(u=e.length>1),e})),i(a,l(a),c),u&&(c=t(c,7,o));for(var d=s.length;d--;)n(c,s[d]);return c}));return yH=s}(),RH=Pd(OH);var PH,zH,DH,NH,IH,BH,FH,jH,WH,HH,UH,VH,$H,qH,YH,GH,XH,ZH,KH,JH,QH,eU,tU,nU,rU,iU,oU,aU,lU,sU,cU,uU,dU,fU,hU=Pd(function(){if(EH)return LH;EH=1;var e=MH();return LH=function(t){return e(t,5)}}());function pU(){if(BH)return IH;BH=1;var e=(NH||(NH=1,DH=function(e){return function(t){return null==e?void 0:e[t]}}),DH),t=e({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});return IH=t}function gU(){if(GH)return YH;GH=1;var e=function(){if(HH)return WH;HH=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;return WH=function(t){return t.match(e)||[]}}(),t=function(){if(VH)return UH;VH=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;return UH=function(t){return e.test(t)}}(),n=OA(),r=function(){if(qH)return $H;qH=1;var e="\\ud800-\\udfff",t="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",r="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",o="["+i+"]",a="\\d+",l="["+t+"]",s="["+n+"]",c="[^"+e+i+a+t+n+r+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",f="["+r+"]",h="(?:"+s+"|"+c+")",p="(?:"+f+"|"+c+")",g="(?:['’](?:d|ll|m|re|s|t|ve))?",v="(?:['’](?:D|LL|M|RE|S|T|VE))?",m="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",y=b+m+"(?:\\u200d(?:"+["[^"+e+"]",u,d].join("|")+")"+b+m+")*",_="(?:"+[l,u,d].join("|")+")"+y,w=RegExp([f+"?"+s+"+"+g+"(?="+[o,f,"$"].join("|")+")",p+"+"+v+"(?="+[o,f+h,"$"].join("|")+")",f+"?"+h+"+"+g,f+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a,_].join("|"),"g");return $H=function(e){return e.match(w)||[]}}();return YH=function(i,o,a){return i=n(i),void 0===(o=a?void 0:o)?t(i)?r(i):e(i):i.match(o)||[]}}function vU(){if(ZH)return XH;ZH=1;var e=(zH||(zH=1,PH=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}),PH),t=function(){if(jH)return FH;jH=1;var e=pU(),t=OA(),n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");return FH=function(i){return(i=t(i))&&i.replace(n,e).replace(r,"")}}(),n=gU(),r=RegExp("['’]","g");return XH=function(i){return function(o){return e(n(t(o).replace(r,"")),i,"")}}}function mU(){if(eU)return QH;eU=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return QH=function(t){return e.test(t)}}function bU(){if(aU)return oU;aU=1;var e=nU?tU:(nU=1,tU=function(e){return e.split("")}),t=mU(),n=function(){if(iU)return rU;iU=1;var e="\\ud800-\\udfff",t="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",i="[^"+e+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+n+"|"+r+")?",s="[\\ufe0e\\ufe0f]?",c=s+l+"(?:\\u200d(?:"+[i,o,a].join("|")+")"+s+l+")*",u="(?:"+[i+n+"?",n,o,a,t].join("|")+")",d=RegExp(r+"(?="+r+")|"+u+c,"g");return rU=function(e){return e.match(d)||[]}}();return oU=function(r){return t(r)?n(r):e(r)}}function yU(){if(sU)return lU;sU=1;var e=function(){if(JH)return KH;JH=1;var e=AH();return KH=function(t,n,r){var i=t.length;return r=void 0===r?i:r,!n&&r>=i?t:e(t,n,r)},KH}(),t=mU(),n=bU(),r=OA();return lU=function(i){return function(o){o=r(o);var a=t(o)?n(o):void 0,l=a?a[0]:o.charAt(0),s=a?e(a,1).join(""):o.slice(1);return l[i]()+s}}}var _U=function(){if(fU)return dU;fU=1;var e=vU(),t=function(){if(uU)return cU;uU=1;var e=yU()("toUpperCase");return cU=e}(),n=e((function(e,n,r){return e+(r?" ":"")+t(n)}));return dU=n}(),wU=Pd(_U);function xU(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function kU(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=SU)):void 0===t&&(t=CU);for(var n,r,i,o,a,l=new TU(e),s=[l];n=s.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)s.push(r=i[o]=new TU(i[o])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(AU)}function CU(e){return e.children}function SU(e){return Array.isArray(e)?e[1]:null}function MU(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function AU(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function TU(e){this.data=e,this.depth=this.height=0,this.parent=null}function LU(){return 0}function EU(e){return function(){return e}}function OU(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)}function RU(e,t,n,r,i){for(var o,a=e.children,l=-1,s=a.length,c=e.value&&(r-t)/e.value;++l<s;)(o=a[l]).y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*c}function PU(e,t,n,r,i){for(var o,a=e.children,l=-1,s=a.length,c=e.value&&(i-n)/e.value;++l<s;)(o=a[l]).x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*c}TU.prototype=kU.prototype={constructor:TU,count:function(){return this.eachAfter(xU)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],l=[],s=-1;o=a.pop();)if(l.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=l.pop();)e.call(t,o,++s,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return kU(this).eachBefore(MU)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}};var zU=function e(t){function n(e,n,r,i,o){!function(e,t,n,r,i,o){for(var a,l,s,c,u,d,f,h,p,g,v,m=[],b=t.children,y=0,_=0,w=b.length,x=t.value;y<w;){s=i-n,c=o-r;do{u=b[_++].value}while(!u&&_<w);for(d=f=u,v=u*u*(g=Math.max(c/s,s/c)/(x*e)),p=Math.max(f/v,v/d);_<w;++_){if(u+=l=b[_].value,l<d&&(d=l),l>f&&(f=l),v=u*u*g,(h=Math.max(f/v,v/d))>p){u-=l;break}p=h}m.push(a={value:u,dice:s<c,children:b.slice(y,_)}),a.dice?RU(a,n,r,i,x?r+=c*u/x:o):PU(a,n,r,x?n+=s*u/x:i,o),x-=u,y=_}}(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}((1+Math.sqrt(5))/2);function DU(){var e=zU,t=!1,n=1,r=1,i=[0],o=LU,a=LU,l=LU,s=LU,c=LU;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(OU),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=o(t)/2,r+=c(t)-n,u+=a(t)-n,(d-=l(t)-n)<r&&(r=d=(r+d)/2),(f-=s(t)-n)<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=function(e){if("function"!=typeof e)throw new Error;return e}(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(o="function"==typeof e?e:EU(+e),u):o},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(a="function"==typeof e?e:EU(+e),u):a},u.paddingRight=function(e){return arguments.length?(l="function"==typeof e?e:EU(+e),u):l},u.paddingBottom=function(e){return arguments.length?(s="function"==typeof e?e:EU(+e),u):s},u.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:EU(+e),u):c},u}function NU(){return NU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NU.apply(null,arguments)}function IU(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var BU=function(e,t){return sx([e,t],(function(e,t){return"translate("+e+","+t+")"}))},FU=function(e,t){return sx([e,t],(function(e,t){return"translate("+e+"px, "+t+"px)"}))},jU=function(e,t,n){return sx([e,t,n],(function(e,t,n){return"translate("+e+","+t+") rotate("+n+")"}))},WU=function(e,t,n){return sx([e,t,n],(function(e,t,n){return"translate("+e+"px,"+t+"px) rotate("+n+"deg)"}))},HU=function(e,t,n){return sx([e,t,n],(function(e,t,n){return"translate("+(e-(0===n?0:5))+"px,"+(t-(0===n?5:0))+"px) rotate("+n+"deg)"}))},UU=E((function(e){var t=e.node,n=e.animatedProps,r=e.borderWidth,i=e.enableLabel,o=e.enableParentLabel,a=e.labelSkipSize,l=eT(),s=i&&t.isLeaf&&(0===a||Math.min(t.width,t.height)>a),c=o&&t.isParent;return ln(fC.g,{transform:BU(n.x,n.y),children:[ln(fC.rect,{"data-testid":"node."+t.id,width:sx(n.width,(function(e){return Math.max(e,0)})),height:sx(n.height,(function(e){return Math.max(e,0)})),fill:t.fill?t.fill:n.color,strokeWidth:r,stroke:t.borderColor,fillOpacity:t.opacity,onMouseEnter:t.onMouseEnter,onMouseMove:t.onMouseMove,onMouseLeave:t.onMouseLeave,onClick:t.onClick}),s&&ln(QD,{"data-testid":"label."+t.id,textAnchor:"middle",dominantBaseline:"central",style:NU({},l.labels.text,{fill:t.labelTextColor,pointerEvents:"none"}),fillOpacity:n.labelOpacity,transform:jU(n.labelX,n.labelY,n.labelRotation),children:t.label}),c&&ln(QD,{"data-testid":"parentLabel."+t.id,dominantBaseline:"central",style:NU({},l.labels.text,{fill:t.parentLabelTextColor,pointerEvents:"none"}),fillOpacity:n.parentLabelOpacity,transform:jU(n.parentLabelX,n.parentLabelY,n.parentLabelRotation),children:t.parentLabel})]})})),VU=E((function(e){var t=e.node;return ln(lT,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})})),$U=E((function(e){var t=e.node,n=e.animatedProps,r=e.borderWidth,i=e.enableLabel,o=e.enableParentLabel,a=e.labelSkipSize,l=eT(),s=i&&t.isLeaf&&(0===a||Math.min(t.width,t.height)>a),c=o&&t.isParent;return ln(fC.div,{"data-testid":"node."+t.id,id:t.path.replace(/[^\w]/gi,"-"),style:{boxSizing:"border-box",position:"absolute",top:0,left:0,transform:FU(n.x,n.y),width:n.width,height:n.height,borderWidth:r,borderStyle:"solid",borderColor:t.borderColor,overflow:"hidden"},children:[ln(fC.div,{style:{boxSizing:"border-box",position:"absolute",top:0,left:0,opacity:t.opacity,width:n.width,height:n.height,background:n.color},onMouseEnter:t.onMouseEnter,onMouseMove:t.onMouseMove,onMouseLeave:t.onMouseLeave,onClick:t.onClick}),s&&ln(fC.span,{"data-testid":"label."+t.id,style:NU({},l.labels.text,{position:"absolute",display:"flex",top:-5,left:-5,width:10,height:10,justifyContent:"center",alignItems:"center",whiteSpace:"nowrap",color:t.labelTextColor,transformOrigin:"center center",transform:WU(n.labelX,n.labelY,n.labelRotation),opacity:n.labelOpacity,pointerEvents:"none"}),children:t.label}),c&&ln(fC.span,{"data-testid":"parentLabel."+t.id,style:NU({},l.labels.text,{position:"absolute",display:"flex",justifyContent:"flex-start",alignItems:"center",whiteSpace:"nowrap",width:10,height:10,color:t.parentLabelTextColor,transformOrigin:"top left",transform:HU(n.parentLabelX,n.parentLabelY,n.parentLabelRotation),opacity:n.parentLabelOpacity,pointerEvents:"none"}),children:t.parentLabel})]})})),qU={layers:["nodes"],identity:"id",value:"value",tile:"squarify",leavesOnly:!1,innerPadding:0,outerPadding:0,colors:{scheme:"nivo"},colorBy:"pathComponents.1",nodeOpacity:.33,enableLabel:!0,label:"formattedValue",labelSkipSize:0,labelTextColor:{from:"color",modifiers:[["darker",1]]},orientLabel:!0,enableParentLabel:!0,parentLabel:"id",parentLabelSize:20,parentLabelPosition:"top",parentLabelPadding:6,parentLabelTextColor:{from:"color",modifiers:[["darker",1]]},borderWidth:1,borderColor:{from:"color",modifiers:[["darker",1]]},isInteractive:!0,tooltip:VU,role:"img",animate:!0,motionConfig:"gentle"},YU=NU({},qU,{nodeComponent:UU,defs:[],fill:[]}),GU=NU({},qU,{nodeComponent:$U}),XU=NU({},qU,{pixelRatio:"undefined"!=typeof window&&window.devicePixelRatio||1}),ZU={binary:function(e,t,n,r,i){var o,a,l=e.children,s=l.length,c=new Array(s+1);for(c[0]=a=o=0;o<s;++o)c[o+1]=a+=l[o].value;!function e(t,n,r,i,o,a,s){if(t>=n-1){var u=l[t];return u.x0=i,u.y0=o,u.x1=a,void(u.y1=s)}var d=c[t],f=r/2+d,h=t+1,p=n-1;for(;h<p;){var g=h+p>>>1;c[g]<f?h=g+1:p=g}f-c[h-1]<c[h]-f&&t+1<h&&--h;var v=c[h]-d,m=r-v;if(a-i>s-o){var b=r?(i*m+a*v)/r:a;e(t,h,v,i,o,b,s),e(h,n,m,b,o,a,s)}else{var y=r?(o*m+s*v)/r:s;e(t,h,v,i,o,a,y),e(h,n,m,i,y,a,s)}}(0,s,e.value,t,n,r,i)},dice:RU,slice:PU,sliceDice:function(e,t,n,r,i){(1&e.depth?PU:RU)(e,t,n,r,i)},squarify:zU},KU=function(e){var t=e.data,n=e.width,r=e.height,i=e.identity,o=void 0===i?qU.identity:i,a=e.value,l=void 0===a?qU.value:a,s=e.valueFormat,c=e.leavesOnly,u=void 0===c?qU.leavesOnly:c,d=e.tile,f=void 0===d?qU.tile:d,h=e.innerPadding,p=void 0===h?qU.innerPadding:h,g=e.outerPadding,v=void 0===g?qU.outerPadding:g,m=e.label,b=void 0===m?qU.label:m,y=e.orientLabel,_=void 0===y?qU.orientLabel:y,w=e.enableParentLabel,x=void 0===w?qU.enableParentLabel:w,k=e.parentLabel,C=void 0===k?qU.parentLabel:k,S=e.parentLabelSize,M=void 0===S?qU.parentLabelSize:S,T=e.parentLabelPosition,L=void 0===T?qU.parentLabelPosition:T,E=e.parentLabelPadding,O=void 0===E?qU.parentLabelPadding:E,R=e.colors,P=void 0===R?qU.colors:R,z=e.colorBy,D=void 0===z?qU.colorBy:z,N=e.nodeOpacity,I=void 0===N?qU.nodeOpacity:N,B=e.borderColor,F=void 0===B?qU.borderColor:B,j=e.labelTextColor,W=void 0===j?qU.labelTextColor:j,H=e.parentLabelTextColor,U=void 0===H?qU.parentLabelTextColor:H,V=OD(o),$=OD(l),q=LD(s),Y=OD(b),G=OD(C),X=function(e){var t=e.width,n=e.height,r=e.tile,i=e.innerPadding,o=e.outerPadding,a=e.enableParentLabel,l=e.parentLabelSize,s=e.parentLabelPosition,c=e.leavesOnly;return A((function(){var e=DU().size([t,n]).tile(ZU[r]).round(!0).paddingInner(i).paddingOuter(o);if(a&&!c){var u=l+2*o;e["padding"+wU(s)](u)}return e}),[t,n,r,i,o,a,l,s,c])}({width:n,height:r,tile:f,innerPadding:p,outerPadding:v,enableParentLabel:x,parentLabelSize:M,parentLabelPosition:L,leavesOnly:u}),Z=function(e){var t=e.root,n=e.getValue;return A((function(){return kU(t).sum(n)}),[t,n])}({root:t,getValue:$}),K=A((function(){var e=hU(Z);return X(e),u?e.leaves():e.descendants()}),[Z,X,u]),J=A((function(){return K.map((function(e){var t=function(e,t){var n=e.ancestors().map((function(e){return t(e.data)})).reverse();return{path:n.join("."),pathComponents:n}}(e,V),n=t.path,r=t.pathComponents,i={id:V(e.data),path:n,pathComponents:r,data:RH(e.data,"children"),x:e.x0,y:e.y0,width:e.x1-e.x0,height:e.y1-e.y0,value:e.value,formattedValue:q(e.value),treeDepth:e.depth,treeHeight:e.height,isParent:e.height>0,isLeaf:0===e.height,parentLabelX:0,parentLabelY:0,parentLabelRotation:0};return i.labelRotation=_&&i.height>i.width?-90:0,"top"===L&&(i.parentLabelX=v+O,i.parentLabelY=v+M/2),"right"===L&&(i.parentLabelX=i.width-v-M/2,i.parentLabelY=i.height-v-O,i.parentLabelRotation=-90),"bottom"===L&&(i.parentLabelX=v+O,i.parentLabelY=i.height-v-M/2),"left"===L&&(i.parentLabelX=v+M/2,i.parentLabelY=i.height-v-O,i.parentLabelRotation=-90),i.label=Y(i),i.parentLabel=G(i),i}))}),[K,V,q,Y,_,G,M,L,O,v]),Q=eT(),ee=bF(P,D),te=cF(F,Q),ne=cF(W,Q),re=cF(U,Q),ie=A((function(){return J.map((function(e){var t=NU({},e,{color:ee(e),opacity:I});return t.borderColor=te(t),t.labelTextColor=ne(t),t.parentLabelTextColor=re(t),t}))}),[J,ee,I,te,ne,re]);return{hierarchy:Z,nodes:ie,layout:X}},JU=function(e){var t=e.nodes;return A((function(){return{nodes:t}}),[t])},QU=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height,color:e.color,labelX:e.width/2,labelY:e.height/2,labelRotation:e.labelRotation,labelOpacity:1,parentLabelX:e.parentLabelX,parentLabelY:e.parentLabelY,parentLabelRotation:e.parentLabelRotation,parentLabelOpacity:1}},eV=function(e){return{x:e.x+e.width/2,y:e.y+e.height/2,width:0,height:0,color:e.color,labelX:0,labelY:0,labelRotation:e.labelRotation,labelOpacity:0,parentLabelX:0,parentLabelY:0,parentLabelRotation:e.parentLabelRotation,parentLabelOpacity:0}},tV=E((function(e){var t=e.nodes,n=e.nodeComponent,i=e.borderWidth,o=e.enableLabel,a=e.labelSkipSize,l=e.enableParentLabel,s=function(e,t){var n=t.isInteractive,r=t.onMouseEnter,i=t.onMouseMove,o=t.onMouseLeave,a=t.onClick,l=t.tooltip,s=mT(),c=s.showTooltipFromEvent,u=s.hideTooltip,d=M((function(e,t){c(R(l,{node:e}),t,"left")}),[c,l]),f=M((function(e,t){d(e,t),null==r||r(e,t)}),[r,d]),h=M((function(e,t){d(e,t),null==i||i(e,t)}),[i,d]),p=M((function(e,t){u(),null==o||o(e,t)}),[o,u]),g=M((function(e,t){null==a||a(e,t)}),[a]);return A((function(){return e.map((function(e){return n?NU({},e,{onMouseEnter:function(t){return f(e,t)},onMouseMove:function(t){return h(e,t)},onMouseLeave:function(t){return p(e,t)},onClick:function(t){return g(e,t)}}):e}))}),[n,e,f,h,p,g])}(t,{isInteractive:e.isInteractive,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseLeave:e.onMouseLeave,onClick:e.onClick,tooltip:e.tooltip}),c=Rz(),u=c.animate,d=c.config,f=nx(s,{keys:function(e){return e.path},initial:QU,from:eV,enter:QU,update:QU,leave:eV,config:d,immediate:!u});return ln(r,{children:f((function(e,t){return R(n,{key:t.path,node:t,animatedProps:e,borderWidth:i,enableLabel:o,labelSkipSize:a,enableParentLabel:l})}))})})),nV=["isInteractive","animate","motionConfig","theme","renderWrapper"],rV=function(e){var t=e.data,n=e.identity,r=void 0===n?YU.identity:n,i=e.value,o=void 0===i?YU.value:i,a=e.valueFormat,l=e.tile,s=void 0===l?YU.tile:l,c=e.nodeComponent,u=void 0===c?YU.nodeComponent:c,d=e.innerPadding,f=void 0===d?YU.innerPadding:d,h=e.outerPadding,p=void 0===h?YU.outerPadding:h,g=e.leavesOnly,v=void 0===g?YU.leavesOnly:g,m=e.width,b=e.height,y=e.margin,_=e.layers,w=void 0===_?YU.layers:_,x=e.colors,k=void 0===x?YU.colors:x,C=e.colorBy,S=void 0===C?YU.colorBy:C,M=e.nodeOpacity,A=void 0===M?YU.nodeOpacity:M,T=e.borderWidth,L=void 0===T?YU.borderWidth:T,E=e.borderColor,O=void 0===E?YU.borderColor:E,P=e.defs,D=void 0===P?YU.defs:P,N=e.fill,I=void 0===N?YU.fill:N,B=e.enableLabel,F=void 0===B?YU.enableLabel:B,j=e.label,W=void 0===j?YU.label:j,H=e.labelTextColor,U=void 0===H?YU.labelTextColor:H,V=e.orientLabel,$=void 0===V?YU.orientLabel:V,q=e.labelSkipSize,Y=void 0===q?YU.labelSkipSize:q,G=e.enableParentLabel,X=void 0===G?YU.enableParentLabel:G,Z=e.parentLabel,K=void 0===Z?YU.parentLabel:Z,J=e.parentLabelSize,Q=void 0===J?YU.parentLabelSize:J,ee=e.parentLabelPosition,te=void 0===ee?YU.parentLabelPosition:ee,ne=e.parentLabelPadding,re=void 0===ne?YU.parentLabelPadding:ne,ie=e.parentLabelTextColor,oe=void 0===ie?YU.parentLabelTextColor:ie,ae=e.isInteractive,le=void 0===ae?YU.isInteractive:ae,se=e.onMouseEnter,ce=e.onMouseMove,ue=e.onMouseLeave,de=e.onClick,fe=e.tooltip,he=void 0===fe?YU.tooltip:fe,pe=e.role,ge=e.ariaLabel,ve=e.ariaLabelledBy,me=e.ariaDescribedBy,be=e.forwardedRef,ye=MD(m,b,y),_e=ye.margin,we=ye.innerWidth,xe=ye.innerHeight,ke=ye.outerWidth,Ce=ye.outerHeight,Se=KU({data:t,identity:r,value:o,valueFormat:a,leavesOnly:v,width:we,height:xe,tile:s,innerPadding:f,outerPadding:p,colors:k,colorBy:S,nodeOpacity:A,borderColor:O,label:W,labelTextColor:U,orientLabel:$,enableParentLabel:X,parentLabel:K,parentLabelSize:Q,parentLabelPosition:te,parentLabelPadding:re,parentLabelTextColor:oe}).nodes,Me={nodes:null};w.includes("nodes")&&(Me.nodes=ln(tV,{nodes:Se,nodeComponent:u,borderWidth:L,enableLabel:F,labelSkipSize:Y,enableParentLabel:X,isInteractive:le,onMouseEnter:se,onMouseMove:ce,onMouseLeave:ue,onClick:de,tooltip:he},"nodes"));var Ae=JU({nodes:Se}),Te=ID(D,Se,I);return ln(vD,{width:ke,height:Ce,margin:_e,defs:Te,role:pe,ariaLabel:ge,ariaLabelledBy:ve,ariaDescribedBy:me,ref:be,children:w.map((function(e,t){var n;return"function"==typeof e?ln(z,{children:R(e,Ae)},t):null!=(n=null==Me?void 0:Me[e])?n:null}))})},iV=S((function(e,t){var n=e.isInteractive,r=void 0===n?YU.isInteractive:n,i=e.animate,o=void 0===i?YU.animate:i,a=e.motionConfig,l=void 0===a?YU.motionConfig:a,s=e.theme,c=e.renderWrapper,u=IU(e,nV);return ln(Dz,{animate:o,isInteractive:r,motionConfig:l,renderWrapper:c,theme:s,children:ln(rV,NU({},u,{isInteractive:r,forwardedRef:t}))})})),oV=["defaultWidth","defaultHeight","onResize","debounceResize"],aV=S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=IU(e,oV);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(iV,NU({},a,{width:n,height:r,ref:t}))}})})),lV=["isInteractive","animate","motionConfig","theme","renderWrapper"],sV=function(e){var t=e.data,n=e.identity,r=void 0===n?GU.identity:n,i=e.value,o=void 0===i?GU.value:i,a=e.tile,l=void 0===a?GU.tile:a,s=e.nodeComponent,c=void 0===s?GU.nodeComponent:s,u=e.valueFormat,d=e.innerPadding,f=void 0===d?GU.innerPadding:d,h=e.outerPadding,p=void 0===h?GU.outerPadding:h,g=e.leavesOnly,v=void 0===g?GU.leavesOnly:g,m=e.width,b=e.height,y=e.margin,_=e.layers,w=void 0===_?YU.layers:_,x=e.colors,k=void 0===x?GU.colors:x,C=e.colorBy,S=void 0===C?GU.colorBy:C,M=e.nodeOpacity,A=void 0===M?GU.nodeOpacity:M,T=e.borderWidth,L=void 0===T?GU.borderWidth:T,E=e.borderColor,O=void 0===E?GU.borderColor:E,P=e.enableLabel,D=void 0===P?GU.enableLabel:P,N=e.label,I=void 0===N?GU.label:N,B=e.labelTextColor,F=void 0===B?GU.labelTextColor:B,j=e.orientLabel,W=void 0===j?GU.orientLabel:j,H=e.labelSkipSize,U=void 0===H?GU.labelSkipSize:H,V=e.enableParentLabel,$=void 0===V?GU.enableParentLabel:V,q=e.parentLabel,Y=void 0===q?GU.parentLabel:q,G=e.parentLabelSize,X=void 0===G?GU.parentLabelSize:G,Z=e.parentLabelPosition,K=void 0===Z?GU.parentLabelPosition:Z,J=e.parentLabelPadding,Q=void 0===J?GU.parentLabelPadding:J,ee=e.parentLabelTextColor,te=void 0===ee?GU.parentLabelTextColor:ee,ne=e.isInteractive,re=void 0===ne?GU.isInteractive:ne,ie=e.onMouseEnter,oe=e.onMouseMove,ae=e.onMouseLeave,le=e.onClick,se=e.tooltip,ce=void 0===se?GU.tooltip:se,ue=e.role,de=e.ariaLabel,fe=e.ariaLabelledBy,he=e.ariaDescribedBy,pe=e.forwardedRef,ge=MD(m,b,y),ve=ge.margin,me=ge.innerWidth,be=ge.innerHeight,ye=ge.outerWidth,_e=ge.outerHeight,we=KU({data:t,identity:r,value:o,valueFormat:u,leavesOnly:v,width:me,height:be,tile:l,innerPadding:f,outerPadding:p,colors:k,colorBy:S,nodeOpacity:A,borderColor:O,label:I,labelTextColor:F,orientLabel:W,enableParentLabel:$,parentLabel:Y,parentLabelSize:X,parentLabelPosition:K,parentLabelPadding:Q,parentLabelTextColor:te}).nodes,xe={nodes:null};w.includes("nodes")&&(xe.nodes=ln(tV,{nodes:we,nodeComponent:c,borderWidth:L,enableLabel:D,labelSkipSize:U,enableParentLabel:$,isInteractive:re,onMouseEnter:ie,onMouseMove:oe,onMouseLeave:ae,onClick:le,tooltip:ce},"nodes"));var ke=JU({nodes:we});return ln("div",{role:ue,"aria-label":de,"aria-labelledby":fe,"aria-describedby":he,style:{position:"relative",width:ye,height:_e},ref:pe,children:ln("div",{style:{position:"absolute",top:ve.top,left:ve.left},children:w.map((function(e,t){var n;return"function"==typeof e?ln(z,{children:R(e,ke)},t):null!=(n=null==xe?void 0:xe[e])?n:null}))})})},cV=S((function(e,t){var n=e.isInteractive,r=void 0===n?GU.isInteractive:n,i=e.animate,o=void 0===i?GU.animate:i,a=e.motionConfig,l=void 0===a?GU.motionConfig:a,s=e.theme,c=e.renderWrapper,u=IU(e,lV);return ln(Dz,{animate:o,isInteractive:r,motionConfig:l,renderWrapper:c,theme:s,children:ln(sV,NU({},u,{isInteractive:r,forwardedRef:t}))})})),uV=["defaultWidth","defaultHeight","onResize","debounceResize"];S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=IU(e,uV);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(cV,NU({},a,{width:n,height:r,ref:t}))}})}));var dV=["theme","isInteractive","animate","motionConfig","renderWrapper"],fV=function(e,t,n,r){return e.find((function(e){return PD(e.x+t.left,e.y+t.top,e.width,e.height,n,r)}))},hV=function(e){var t=e.data,n=e.identity,r=void 0===n?XU.identity:n,i=e.value,o=void 0===i?XU.identity:i,a=e.tile,l=void 0===a?XU.tile:a,s=e.valueFormat,c=e.innerPadding,u=void 0===c?XU.innerPadding:c,d=e.outerPadding,f=void 0===d?XU.outerPadding:d,h=e.leavesOnly,p=void 0===h?XU.leavesOnly:h,g=e.width,v=e.height,m=e.margin,b=e.colors,y=void 0===b?XU.colors:b,_=e.colorBy,w=void 0===_?XU.colorBy:_,k=e.nodeOpacity,S=void 0===k?XU.nodeOpacity:k,A=e.borderWidth,T=void 0===A?XU.borderWidth:A,L=e.borderColor,E=void 0===L?XU.borderColor:L,O=e.enableLabel,P=void 0===O?XU.enableLabel:O,z=e.label,D=void 0===z?XU.label:z,N=e.labelTextColor,I=void 0===N?XU.labelTextColor:N,B=e.orientLabel,F=void 0===B?XU.orientLabel:B,j=e.labelSkipSize,W=void 0===j?XU.labelSkipSize:j,H=e.isInteractive,U=void 0===H?XU.isInteractive:H,V=e.onMouseMove,$=e.onClick,q=e.tooltip,Y=void 0===q?XU.tooltip:q,G=e.pixelRatio,X=void 0===G?XU.pixelRatio:G,Z=e.role,K=e.ariaLabel,J=e.ariaLabelledBy,Q=e.ariaDescribedBy,ee=e.forwardedRef,te=C(null),ne=MD(g,v,m),re=ne.margin,ie=ne.innerWidth,oe=ne.innerHeight,ae=ne.outerWidth,le=ne.outerHeight,se=KU({data:t,identity:r,value:o,valueFormat:s,leavesOnly:p,width:ie,height:oe,tile:l,innerPadding:u,outerPadding:f,colors:y,colorBy:w,nodeOpacity:S,borderColor:E,label:D,labelTextColor:I,orientLabel:F,enableParentLabel:!1}).nodes,ce=eT();x((function(){if(null!==te.current){var e=te.current.getContext("2d");null!==e&&(te.current.width=ae*X,te.current.height=le*X,e.scale(X,X),e.fillStyle=ce.background,e.fillRect(0,0,ae,le),e.translate(re.left,re.top),se.forEach((function(t){e.fillStyle=t.color,e.fillRect(t.x,t.y,t.width,t.height),T>0&&(e.strokeStyle=t.borderColor,e.lineWidth=T,e.strokeRect(t.x,t.y,t.width,t.height))})),P&&(e.textAlign="center",e.textBaseline="middle",FD(e,ce.labels.text),se.forEach((function(t){if(t.isLeaf&&(0===W||Math.min(t.width,t.height)>W)){var n=F&&t.height>t.width;e.save(),e.translate(t.x+t.width/2,t.y+t.height/2),e.rotate(Zz(n?-90:0)),jD(e,NU({},ce.labels.text,{fill:t.labelTextColor}),String(t.label)),e.restore()}}))))}}),[te,se,ae,le,ie,oe,re,T,P,F,W,ce,X]);var ue=mT(),de=ue.showTooltipFromEvent,fe=ue.hideTooltip,he=M((function(e){if(null!==te.current){var t=zD(te.current,e),n=t[0],r=t[1],i=fV(se,re,n,r);void 0!==i?(de(R(Y,{node:i}),e,"left"),null==V||V(i,e)):fe()}}),[te,se,re,de,fe,Y,V]),pe=M((function(){fe()}),[fe]),ge=M((function(e){if(null!==te.current){var t=zD(te.current,e),n=t[0],r=t[1],i=fV(se,re,n,r);void 0!==i&&(null==$||$(i,e))}}),[te,se,re,$]);return ln("canvas",{ref:BD(te,ee),width:ae*X,height:le*X,style:{width:ae,height:le},onMouseEnter:U?he:void 0,onMouseMove:U?he:void 0,onMouseLeave:U?pe:void 0,onClick:U?ge:void 0,role:Z,"aria-label":K,"aria-labelledby":J,"aria-describedby":Q})},pV=S((function(e,t){var n=e.theme,r=e.isInteractive,i=void 0===r?XU.isInteractive:r,o=e.animate,a=void 0===o?XU.animate:o,l=e.motionConfig,s=void 0===l?XU.motionConfig:l,c=e.renderWrapper,u=IU(e,dV);return ln(Dz,{isInteractive:i,animate:a,motionConfig:s,theme:n,renderWrapper:c,children:ln(hV,NU({},u,{isInteractive:i,forwardedRef:t}))})})),gV=["defaultWidth","defaultHeight","onResize","debounceResize"];S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=IU(e,gV);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(pV,NU({},a,{width:n,height:r,ref:t}))}})}));const vV={mass:1,tension:500,friction:40,clamp:!1,precision:.01,velocity:0},mV=window.matchMedia("(prefers-reduced-motion: reduce)").matches,bV="var(--on-text-secondary)",yV="var(--on-text-primary)",_V={background:"var(--bg-base-primary)",axis:{ticks:{text:{fill:bV,fontSize:12}}},grid:{line:{stroke:"var(--on-border-muted)",strokeDasharray:"4",strokeLinecap:"round"}},dots:{text:{fill:bV,fontSize:12}},labels:{text:{fill:yV,fontSize:12}},text:{fill:yV,fontSize:12},markers:{lineColor:"var(--on-border-primary)",lineStrokeWidth:2,text:{fill:yV,fontSize:12,fontWeight:600}},legends:{text:{fill:yV,fontSize:12}},tooltip:{container:{background:"var(--bg-base-modal)",color:"var(--on-text-primary)"}}},wV={nodeOpacity:1,borderWidth:1,labelSkipSize:12,parentLabelSize:14,parentLabelPosition:"top",parentLabelPadding:6,enableParentLabel:!0,animate:!0,innerPadding:4,outerPadding:4};var xV=/^--/;function kV(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||xV.test(e)||SV.hasOwnProperty(e)&&SV[e]?(""+t).trim():t+"px"}var CV={};var SV={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},MV=["Webkit","Ms","Moz","O"];SV=Object.keys(SV).reduce(((e,t)=>(MV.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),SV);var AV=/^(matrix|translate|scale|rotate|skew)/,TV=/^(translate)/,LV=/^(rotate|skew)/,EV=(e,t)=>hy.num(e)&&0!==e?e+t:e,OV=(e,t)=>hy.arr(e)?e.every((e=>OV(e,t))):hy.num(e)?e===t:parseFloat(e)===t,RV=class extends W_{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push((e=>[`translate3d(${e.map((e=>EV(e,"px"))).join(",")})`,OV(e,0)]))),vy(r,((e,t)=>{if("transform"===t)i.push([e||""]),o.push((e=>[e,""===e]));else if(AV.test(t)){if(delete r[t],hy.und(e))return;const n=TV.test(t)?"px":LV.test(t)?"deg":"";i.push(my(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${EV(i,n)})`,OV(i,0)]:e=>[`${t}(${e.map((e=>EV(e,n))).join(",")})`,OV(e,t.startsWith("scale")?1:0)])}})),i.length&&(r.transform=new PV(i,o)),super(r)}},PV=class extends s_{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return gy(this.inputs,((n,r)=>{const i=o_(n[0]),[o,a]=this.transforms[r](hy.arr(i)?i:n.map(o_));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&gy(this.inputs,(e=>gy(e,(e=>i_(e)&&u_(e,this)))))}observerRemoved(e){0==e&&gy(this.inputs,(e=>gy(e,(e=>i_(e)&&d_(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),l_(this,e)}};dy.assign({batchedUpdates:N,createStringInterpolator:x_,colors:Ny});var zV=G_(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:i,children:o,scrollTop:a,scrollLeft:l,viewBox:s,...c}=t,u=Object.values(c),d=Object.keys(c).map((t=>n||e.hasAttribute(t)?t:CV[t]||(CV[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const t in i)if(i.hasOwnProperty(t)){const n=kV(t,i[t]);xV.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==r&&(e.className=r),void 0!==a&&(e.scrollTop=a),void 0!==l&&(e.scrollLeft=l),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new RV(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),DV=zV.animated;const NV=({node:e,animatedProps:t,borderWidth:n,enableLabel:r,enableParentLabel:i,labelSkipSize:o})=>{const a=eT(),l=r&&e.isLeaf&&(0===o||Math.min(e.width,e.height)>o),s=i&&e.isParent;return ln(DV.g,{transform:sx([t.x,t.y],((e,t)=>`translate(${e},${t})`)),children:[ln(DV.rect,{"data-testid":`node.${e.id}`,width:sx(t.width,(e=>Math.max(e,0))),height:sx(t.height,(e=>Math.max(e,0))),fill:e.fill?e.fill:t.color,strokeWidth:n,stroke:e.borderColor,fillOpacity:e.opacity,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseLeave:e.onMouseLeave,onClick:e.onClick,rx:6,ry:6}),l&&ln(QD,{"data-testid":`label.${e.id}`,textAnchor:"middle",dominantBaseline:"central",style:{...a.labels.text,fill:e.labelTextColor,pointerEvents:"none"},fillOpacity:t.labelOpacity,transform:sx([t.labelX,t.labelY,t.labelRotation],((e,t,n)=>`translate(${e},${t}) rotate(${n})`)),children:e.label}),s&&ln(QD,{"data-testid":`parentLabel.${e.id}`,dominantBaseline:"central",style:{...a.labels.text,fill:e.parentLabelTextColor,pointerEvents:"none"},fillOpacity:t.parentLabelOpacity,transform:sx([t.parentLabelX,t.parentLabelY,t.parentLabelRotation],((e,t,n)=>`translate(${e},${t}) rotate(${n})`)),children:e.parentLabel})]})};var IV={treeMapLegend:"styles_treeMapLegend__dV-Ny",treeMapLegend__gradient:"styles_treeMapLegend__gradient__v853j"};const BV=({minValue:e,maxValue:t,colorFn:n,formatValue:r=e=>e.toFixed(2),domain:i})=>{const o=h((()=>i&&i.length>0?Math.min(...i):e??0),[i,e]),a=h((()=>i&&i.length>0?Math.max(...i):t??1),[i,t]),l=h((()=>{if(i&&i.length>0){const e=[...i].sort(((e,t)=>e-t)),t=a-o;return e.map((e=>{const r=(e-o)/t*100;return`${n(e,i)} ${r.toFixed(1)}%`})).join(", ")}return`${n(o)} 0%, ${n(a)} 100%`}),[o,a,n,i]),s=h((()=>r(o)),[o,r]),c=h((()=>r(a)),[a,r]);return ln("div",{className:IV.treeMapLegend,children:[ln(dn,{size:"s",type:"ui",className:IV.treeMapLegend__label,children:c}),ln("div",{className:IV.treeMapLegend__gradient,style:{"--gradient-stops":l}}),ln(dn,{size:"s",type:"ui",className:IV.treeMapLegend__label,children:s})]})};var FV="styles_legendIndicatorContainer__sdAMj",jV="styles_legendIndicatorContainerBase__OuGDD",WV="styles_legendIndicator__e9eaz";const HV=e=>{const{color:t,border:n}=e;return ln("div",{className:FV,children:ln("div",{className:jV,"data-has-color":!!t||void 0,children:ln("i",{"aria-hidden":!0,className:WV,style:{backgroundColor:t,borderColor:n??void 0}})})})};var UV="styles_tooltip__ErmeC",VV="styles_container__mEUzr",$V="styles_label__oqfkW";const qV=e=>{const{children:t,labelColor:n,label:r}=e;return ln("div",{"data-testid":"chart-tooltip",className:UV,"data-tooltip-type":"chart",children:ln("div",{className:VV,children:[!!r&&ln(dn,{className:$V,type:"ui",size:"s",bold:!0,tag:"div",children:[n&&ln(HV,{color:n}),ln(dn,{tag:"div",bold:!0,children:r})]}),t]})})};var YV="styles_legendItem__NCAPr",GV="styles_legendItemLink__Yo6du",XV="styles_legendName__WZbe8",ZV="styles_legendLabel__-HDGz",KV="styles_space__pQ9pa",JV="styles_menuSpace__7N7yT",QV="styles_legendValue__vV5dD",e$="styles_point__eFnBu";const t$=e=>"number"==typeof e&&!Number.isNaN(e)||"string"==typeof e&&!!e,n$=(e,t="en-US")=>t$(e)?"number"==typeof e?new Intl.NumberFormat(t,{useGrouping:!0}).format(e):String(e):"",r$=({color:e})=>ln("div",{className:e$,children:ln("svg",{width:"16",height:"8",viewBox:"0 0 16 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ln("path",{d:"M0 4H16",stroke:e,"stroke-width":"2"}),ln("path",{d:"M7.99902 7C9.65588 7 10.999 5.65685 10.999 4C10.999 2.34315 9.65588 1 7.99902 1C6.34217 1 4.99902 2.34315 4.99902 4C4.99902 5.65685 6.34217 7 7.99902 7Z",fill:"#FAFCFF",fillOpacity:"0.98",stroke:e,strokeWidth:"2"})]})}),i$=e=>{const{onClick:t,legend:n,mode:i="default",hideOnEmptyValue:o=!0}=e,{color:a,border:l,label:s,link:c,value:u}=n,d=c?"a":"div",f=n.type??"default";return o&&void 0===u?null:ln(d,{href:c,className:j(YV,c&&GV),onClick:"function"==typeof t?()=>{t(n)}:void 0,children:[ln("div",{className:XV,children:["default"===f&&ln(HV,{color:a,border:l}),"point"===f&&ln(r$,{color:a}),ln(dn,{type:"ui",size:"s",className:ZV,children:s})]}),t$(u)&&ln(r,{children:[ln("div",{className:j("menu"===i?JV:KV)}),ln(dn,{type:"ui",size:"s",className:QV,children:u})]})]})},o$=({node:e,rows:t})=>{const{id:n,formattedValue:r,color:i,parentLabel:o}=e;return ln(qV,{label:`${o||n}: ${r}`,labelColor:i,children:t&&t.map(((e,t)=>ln(i$,{mode:"default",legend:{label:e,type:"none",id:t.toString(),color:i},hideOnEmptyValue:!1},t.toString())))})};var a$="styles_treeMapChart__G6ayQ";const l$=({width:e="100%",height:t=400,rootAriaLabel:n,emptyLabel:r="No data available",emptyAriaLabel:i="No data available",data:o,showLegend:a=!0,legendMinValue:l=0,legendMaxValue:s=1,formatLegend:c,colors:u,legendDomain:f,parentSkipSize:p,tooltipRows:g,labelColor:v,...m})=>{const b=h((()=>0===(o.children??[]).length),[o]),y=d((e=>(({parentSkipSize:e=48})=>t=>{const{width:n,height:r,data:i={}}=t;return Math.min(n,r)<e?"":String(i[t.parentLabel]??t.id)})({parentSkipSize:p})(e)),[p]),_=d((({node:e})=>ln(o$,{node:e,rows:g&&g(e)})),[g]);return b?ln(cW,{label:r,width:e,height:t,ariaLabel:i}):ln("div",{role:"img","aria-label":n,tabIndex:0,style:{width:e,height:t},className:a$,children:[ln(aV,{data:o,parentLabel:y,tooltip:_,...wV,...m,theme:_V,motionConfig:vV,animate:!mV,colors:e=>u(e.data.colorValue??0),labelTextColor:v,parentLabelTextColor:v,borderColor:"var(--bg-base-primary)",borderWidth:1,nodeComponent:NV}),a&&ln(BV,{minValue:l,maxValue:s,colorFn:u,formatValue:c,domain:f})]})},s$=l("light"),c$=()=>f(s$)??"light",u$=e=>{const{children:t,theme:n}=e;return ln(s$.Provider,{value:n,children:t})},d$=(e="light")=>{const t=h((()=>MW([0,1],["var(--bg-support-capella)","var(--bg-support-sirius)","var(--bg-support-castor)"])),[e]);return d((e=>t(e)),[t])},f$=(e="light")=>{const t=h((()=>MW([0,1],["var(--bg-support-capella)","var(--bg-support-castor)"])),[e]);return d((e=>t(e)),[t])},h$=(e="light")=>{const t=h((()=>MW([0,1],["var(--constant-on-text-primary)","var(--on-text-primary)","var(--constant-on-text-primary)"])),[e]);return d((e=>t(e)),[t])},p$=({title:e,translations:t,chartType:n,...r})=>{const i=t["no-results"],o=c$(),a=d$(o),l=f$(o),s=h$(o);return ln(xv,{title:e,children:ln(l$,{emptyLabel:i,emptyAriaLabel:i,...r,colors:n===oo.CoverageDiff?a:l,showLegend:!1,labelColor:n===oo.CoverageDiff?e=>s(e.data.colorValue??0):()=>"var(--constant-on-text-primary)"})})};var g$,v$,m$,b$;var y$,_$,w$=function(){if(b$)return m$;b$=1;var e=mz(),t=function(){if(v$)return g$;v$=1;var e=KN();return g$=function(t,n){var r=[];return e(t,(function(e,t,i){n(e,t,i)&&r.push(e)})),r},g$}(),n=EN(),r=MS();return m$=function(i,o){return(r(i)?e:t)(i,n(o,3))}}(),x$=Pd(w$);var k$=Pd(function(){if(_$)return y$;_$=1;var e=yC(),t=CS();return y$=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}());function C$(){return C$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C$.apply(null,arguments)}var S$=4,M$=120,A$=8,T$=function(e){return"circle"===e.type},L$=function(e){return"dot"===e.type},E$=function(e){return"rect"===e.type},O$=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce((function(e,n){var o=n.offset||0;return[].concat(e,x$(t,n.match).map((function(e){var t=r(e),a=i(e);return(T$(n)||E$(n))&&(a.size=a.size+2*o,a.width=a.width+2*o,a.height=a.height+2*o),C$({},RH(n,["match","offset"]),t,a,{size:n.size||a.size,datum:e})})))}),[])},R$=function(e){var t,n,r=e.x,i=e.y,o=e.noteX,a=e.noteY,l=e.noteWidth,s=void 0===l?M$:l,c=e.noteTextOffset,u=void 0===c?A$:c;if(k$(o))t=r+o;else{if(void 0===o.abs)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=o.abs}if(k$(a))n=i+a;else{if(void 0===a.abs)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=a.abs}var d=r,f=i,h=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return function(e){var t=e%360;return t<0&&(t+=360),t}(Kz(i))}(r,i,t,n);if(T$(e)){var p=Jz(Zz(h),e.size/2);d+=p.x,f+=p.y}if(E$(e)){var g=Math.round((h+90)/45)%8;0===g&&(f-=e.height/2),1===g&&(d+=e.width/2,f-=e.height/2),2===g&&(d+=e.width/2),3===g&&(d+=e.width/2,f+=e.height/2),4===g&&(f+=e.height/2),5===g&&(d-=e.width/2,f+=e.height/2),6===g&&(d-=e.width/2),7===g&&(d-=e.width/2,f-=e.height/2)}var v=t,m=t;return(h+90)%360>180?(v-=s,m-=s):m+=s,{points:[[d,f],[t,n],[m,n]],text:[v,n-u],angle:h+90}},P$=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return A((function(){return O$({data:t,annotations:n,getPosition:r,getDimensions:i})}),[t,n,r,i])},z$=function(e){var t=e.annotations;return A((function(){return t.map((function(e){return C$({},e,{computed:R$(C$({},e))})}))}),[t])},D$=function(e){var t=e.datum,n=e.x,i=e.y,o=e.note,a=eT(),l=Rz(),s=l.animate,c=tx({x:n,y:i,config:l.config,immediate:!s});return"function"==typeof o?R(o,{x:n,y:i,datum:t}):ln(r,{children:[a.annotations.text.outlineWidth>0&&ln(fC.text,{x:c.x,y:c.y,style:C$({},a.annotations.text,{strokeLinejoin:"round",strokeWidth:2*a.annotations.text.outlineWidth,stroke:a.annotations.text.outlineColor}),children:o}),ln(fC.text,{x:c.x,y:c.y,style:RH(a.annotations.text,["outlineWidth","outlineColor"]),children:o})]})},N$=function(e){var t=e.points,n=e.isOutline,r=void 0!==n&&n,i=eT(),o=A((function(){var e=t[0];return t.slice(1).reduce((function(e,t){return e+" L"+t[0]+","+t[1]}),"M"+e[0]+","+e[1])}),[t]),a=wD(o);if(r&&i.annotations.link.outlineWidth<=0)return null;var l=C$({},i.annotations.link);return r&&(l.strokeLinecap="square",l.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,l.stroke=i.annotations.link.outlineColor,l.opacity=i.annotations.link.outlineOpacity),ln(fC.path,{fill:"none",d:a,style:l})},I$=function(e){var t=e.x,n=e.y,i=e.size,o=eT(),a=Rz(),l=a.animate,s=tx({x:t,y:n,radius:i/2,config:a.config,immediate:!l});return ln(r,{children:[o.annotations.outline.outlineWidth>0&&ln(fC.circle,{cx:s.x,cy:s.y,r:s.radius,style:C$({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),ln(fC.circle,{cx:s.x,cy:s.y,r:s.radius,style:o.annotations.outline})]})},B$=function(e){var t=e.x,n=e.y,i=e.size,o=void 0===i?S$:i,a=eT(),l=Rz(),s=l.animate,c=tx({x:t,y:n,radius:o/2,config:l.config,immediate:!s});return ln(r,{children:[a.annotations.outline.outlineWidth>0&&ln(fC.circle,{cx:c.x,cy:c.y,r:c.radius,style:C$({},a.annotations.outline,{fill:"none",strokeWidth:2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),ln(fC.circle,{cx:c.x,cy:c.y,r:c.radius,style:a.annotations.symbol})]})},F$=function(e){var t=e.x,n=e.y,i=e.width,o=e.height,a=e.borderRadius,l=void 0===a?6:a,s=eT(),c=Rz(),u=c.animate,d=tx({x:t-i/2,y:n-o/2,width:i,height:o,config:c.config,immediate:!u});return ln(r,{children:[s.annotations.outline.outlineWidth>0&&ln(fC.rect,{x:d.x,y:d.y,rx:l,ry:l,width:d.width,height:d.height,style:C$({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),ln(fC.rect,{x:d.x,y:d.y,rx:l,ry:l,width:d.width,height:d.height,style:s.annotations.outline})]})},j$=function(e){var t=e.datum,n=e.x,i=e.y,o=e.note,a=function(e){return A((function(){return R$(e)}),[e])}(e);if(!function(e){var t=typeof e;return D(e)||"string"===t||"function"===t||"object"===t}(o))throw new Error("note should be a valid react element");return ln(r,{children:[ln(N$,{points:a.points,isOutline:!0}),T$(e)&&ln(I$,{x:n,y:i,size:e.size}),L$(e)&&ln(B$,{x:n,y:i,size:e.size}),E$(e)&&ln(F$,{x:n,y:i,width:e.width,height:e.height,borderRadius:e.borderRadius}),ln(N$,{points:a.points}),ln(D$,{datum:t,x:a.text[0],y:a.text[1],note:o})]})},W$=function(e,t){t.forEach((function(t,n){var r=t[0],i=t[1];0===n?e.moveTo(r,i):e.lineTo(r,i)}))},H$=function(e,t){var n=t.annotations,r=t.theme;0!==n.length&&(e.save(),n.forEach((function(t){if(!function(e){var t=typeof e;return"string"===t||"function"===t}(t.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),W$(e,t.computed.points),e.stroke(),e.lineCap="butt"),T$(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),L$(t)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),E$(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),W$(e,t.computed.points),e.stroke(),T$(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),L$(t)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.fill()),E$(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),"function"==typeof t.note?t.note(e,{datum:t.datum,x:t.computed.text[0],y:t.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(t.note,t.computed.text[0],t.computed.text[1]),e.lineJoin="miter"),e.fillText(t.note,t.computed.text[0],t.computed.text[1]))})),e.restore())};function U$(){return U$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U$.apply(null,arguments)}function V$(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var $$={layers:["grid","axes","cells","legends","annotations"],forceSquare:!1,xInnerPadding:0,xOuterPadding:0,yInnerPadding:0,yOuterPadding:0,sizeVariation:!1,opacity:1,activeOpacity:1,inactiveOpacity:.15,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",.8]]},enableGridX:!1,enableGridY:!1,enableLabels:!0,label:"formattedValue",labelTextColor:{from:"color",modifiers:[["darker",2]]},colors:{type:"sequential",scheme:"brown_blueGreen"},emptyColor:"#000000",legends:[],annotations:[],isInteractive:!0,hoverTarget:"rowColumn",tooltip:E((function(e){var t=e.cell;return null===t.formattedValue?null:ln(lT,{id:t.serieId+" - "+t.data.x,value:t.formattedValue,enableChip:!0,color:t.color})})),animate:!0,motionConfig:"gentle"},q$=U$({},$$,{axisTop:{},axisRight:null,axisBottom:null,axisLeft:{},borderRadius:0,cellComponent:"rect"}),Y$=U$({},$$,{axisTop:{},axisRight:null,axisBottom:null,axisLeft:{},renderCell:"rect",pixelRatio:"undefined"!=typeof window&&window.devicePixelRatio||1}),G$=function(e){var t=e.data,n=e.width,r=e.height,i=e.xInnerPadding,o=e.xOuterPadding,a=e.yInnerPadding,l=e.yOuterPadding,s=e.forceSquare,c=new Set,u=[],d=[],f=[];t.forEach((function(e){u.push(e.id),e.data.forEach((function(t){c.add(t.x);var n=null;void 0!==t.y&&null!==t.y&&(d.push(t.y),n=t.y),f.push({id:e.id+"."+t.x,serieId:e.id,value:n,data:t})}))}));var h=Array.from(c),p=function(e){var t=e.width,n=e.height,r=e.rows,i=e.columns,o=t,a=n,l=0,s=0;if(e.forceSquare){var c=Math.max(t/i,0),u=Math.max(n/r,0),d=Math.min(c,u);l=(t-(o=d*i))/2,s=(n-(a=d*r))/2}return{offsetX:l,offsetY:s,width:o,height:a}}({width:n,height:r,columns:h.length,rows:u.length,forceSquare:s}),g=p.width,v=p.height,m=p.offsetX,b=p.offsetY,y=JI(Xa().domain(h).range([0,g]).paddingOuter(o).paddingInner(i)),_=JI(Xa().domain(u).range([0,v]).paddingOuter(l).paddingInner(a)),w=y.bandwidth(),x=_.bandwidth(),k=f.map((function(e){return U$({},e,{x:y(e.data.x)+w/2,y:_(e.serieId)+x/2,width:w,height:x})}));return{width:g,height:v,offsetX:m,offsetY:b,xScale:y,yScale:_,minValue:Math.min.apply(Math,d),maxValue:Math.max.apply(Math,d),cells:k}},X$=function(e){return{x:e.x,y:e.y}},Z$=function(e){return{size:Math.max(e.width,e.height),width:e.width,height:e.height}},K$={cell:function(e,t){return e.id===t.id},row:function(e,t){return e.serieId===t.serieId},column:function(e,t){return e.data.x===t.data.x},rowColumn:function(e,t){return e.serieId===t.serieId||e.data.x===t.data.x}},J$=function(e){var t,n,r,i=e.cells,o=e.minValue,a=e.maxValue,l=e.sizeVariation,s=e.colors,c=e.emptyColor,u=e.opacity,d=e.activeOpacity,f=e.inactiveOpacity,h=e.borderColor,p=e.label,g=e.labelTextColor,v=e.valueFormat,m=e.activeIds,b=A((function(){return function(e,t,n){if(!e)return function(){return 1};var r=Cl().domain(e.values?e.values:[t,n]).range(e.sizes);return function(e){return null===e?1:r(e)}}(t,n,r)}),[t=l,n=o,r=a]),y=A((function(){return"function"==typeof s?null:vF(s,{min:o,max:a})}),[s,o,a]),_=M((function(e){if(null!==e.value){if("function"==typeof s)return s(e);if(null!==y)return y(e.value)}return c}),[s,y,c]),w=eT(),x=cF(h,w),k=cF(g,w),C=LD(v),S=OD(p);return{cells:A((function(){return i.map((function(e){var t=u;m.length>0&&(t=m.includes(e.id)?d:f);var n=b(e.value),r=U$({},e,{width:e.width*n,height:e.height*n,formattedValue:null!==e.value?C(e.value):null,opacity:t});return r.label=S(r),r.color=_(r),r.borderColor=x(r),r.labelTextColor=k(r),r}))}),[i,b,_,x,k,C,S,m,u,d,f]),colorScale:y}},Q$=function(e){var t=e.data,n=e.valueFormat,r=e.width,i=e.height,o=e.xOuterPadding,a=void 0===o?$$.xOuterPadding:o,l=e.xInnerPadding,s=void 0===l?$$.xInnerPadding:l,c=e.yOuterPadding,u=void 0===c?$$.yOuterPadding:c,d=e.yInnerPadding,f=void 0===d?$$.yInnerPadding:d,h=e.forceSquare,p=void 0===h?$$.forceSquare:h,g=e.sizeVariation,v=void 0===g?$$.sizeVariation:g,m=e.colors,b=void 0===m?$$.colors:m,y=e.emptyColor,_=void 0===y?$$.emptyColor:y,x=e.opacity,k=void 0===x?$$.opacity:x,C=e.activeOpacity,S=void 0===C?$$.activeOpacity:C,M=e.inactiveOpacity,T=void 0===M?$$.inactiveOpacity:M,L=e.borderColor,E=void 0===L?$$.borderColor:L,O=e.label,R=void 0===O?$$.label:O,P=e.labelTextColor,z=void 0===P?$$.labelTextColor:P,D=e.hoverTarget,N=void 0===D?$$.hoverTarget:D,I=w(null),B=I[0],F=I[1],j=function(e){var t=e.data,n=e.width,r=e.height,i=e.xInnerPadding,o=e.xOuterPadding,a=e.yInnerPadding,l=e.yOuterPadding,s=e.forceSquare;return A((function(){return G$({data:t,width:n,height:r,xInnerPadding:i,xOuterPadding:o,yInnerPadding:a,yOuterPadding:l,forceSquare:s})}),[t,n,r,i,o,a,l,s])}({data:t,width:r,height:i,xOuterPadding:a,xInnerPadding:s,yOuterPadding:u,yInnerPadding:f,forceSquare:p}),W=j.width,H=j.height,U=j.offsetX,V=j.offsetY,$=j.cells,q=j.xScale,Y=j.yScale,G=j.minValue,X=j.maxValue,Z=A((function(){if(!B)return[];var e=K$[N];return $.filter((function(t){return e(t,B)})).map((function(e){return e.id}))}),[$,B,N]),K=J$({cells:$,minValue:G,maxValue:X,sizeVariation:v,colors:b,emptyColor:_,opacity:k,activeOpacity:S,inactiveOpacity:T,borderColor:E,label:R,labelTextColor:z,valueFormat:n,activeIds:Z});return{width:W,height:H,offsetX:U,offsetY:V,cells:K.cells,xScale:q,yScale:Y,colorScale:K.colorScale,activeCell:B,setActiveCell:F}},eq=function(e,t){return P$({data:e,annotations:t,getPosition:X$,getDimensions:Z$})},tq=E((function(e){var t=e.cell,n=e.borderWidth,r=e.borderRadius,i=e.animatedProps,o=e.onMouseEnter,a=e.onMouseMove,l=e.onMouseLeave,s=e.onClick,c=e.enableLabels,u=eT(),d=A((function(){return{onMouseEnter:o?o(t):void 0,onMouseMove:a?a(t):void 0,onMouseLeave:l?l(t):void 0,onClick:s?s(t):void 0}}),[t,o,a,l,s]);return ln(fC.g,U$({"data-testid":"cell."+t.id,style:{cursor:"pointer"},opacity:i.opacity},d,{transform:sx([i.x,i.y,i.scale],(function(e,t,n){return"translate("+e+", "+t+") scale("+n+")"})),children:[ln(fC.rect,{transform:sx([i.width,i.height],(function(e,t){return"translate("+-.5*e+", "+-.5*t+")"})),fill:i.color,width:i.width,height:i.height,stroke:i.borderColor,strokeWidth:n,rx:r,ry:r},t.id),c&&ln(QD,{textAnchor:"middle",dominantBaseline:"central",fill:i.labelTextColor,style:U$({},u.labels.text,{fill:void 0,userSelect:"none"}),children:t.label})]}))})),nq=E((function(e){var t=e.cell,n=e.borderWidth,r=e.animatedProps,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,l=e.onClick,s=e.enableLabels,c=eT(),u=A((function(){return{onMouseEnter:i?i(t):void 0,onMouseMove:o?o(t):void 0,onMouseLeave:a?a(t):void 0,onClick:l?l(t):void 0}}),[t,i,o,a,l]);return ln(fC.g,U$({"data-testid":"cell."+t.id,style:{cursor:"pointer"},opacity:r.opacity},u,{transform:sx([r.x,r.y],(function(e,t){return"translate("+e+", "+t+")"})),children:[ln(fC.circle,{r:sx([r.width,r.height],(function(e,t){return Math.min(e,t)/2})),fill:r.color,fillOpacity:r.opacity,strokeWidth:n,stroke:r.borderColor}),s&&ln(QD,{dominantBaseline:"central",textAnchor:"middle",fill:r.labelTextColor,style:U$({},c.labels.text,{fill:void 0}),children:t.label})]}))})),rq=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height,color:e.color,opacity:0,borderColor:e.borderColor,labelTextColor:e.labelTextColor,scale:0}},iq=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height,color:e.color,opacity:e.opacity,borderColor:e.borderColor,labelTextColor:e.labelTextColor,scale:1}},oq=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height,color:e.color,opacity:0,borderColor:e.borderColor,labelTextColor:e.labelTextColor,scale:0}},aq=function(e){var t,n=e.cells,i=e.cellComponent,o=e.borderRadius,a=e.borderWidth,l=e.isInteractive,s=e.setActiveCell,c=e.onMouseEnter,u=e.onMouseMove,d=e.onMouseLeave,f=e.onClick,h=e.tooltip,p=e.enableLabels,g=Rz(),v=g.animate,m=g.config,b=nx(n,{keys:function(e){return e.id},initial:iq,from:rq,enter:iq,update:iq,leave:oq,config:m,immediate:!v}),y=mT(),_=y.showTooltipFromEvent,w=y.hideTooltip,x=A((function(){if(l)return function(e){return function(t){_(R(h,{cell:e}),t),s(e),null==c||c(e,t)}}}),[l,_,h,s,c]),k=A((function(){if(l)return function(e){return function(t){_(R(h,{cell:e}),t),null==u||u(e,t)}}}),[l,_,h,u]),C=A((function(){if(l)return function(e){return function(t){w(),s(null),null==d||d(e,t)}}}),[l,w,s,d]),S=A((function(){if(l)return function(e){return function(t){null==f||f(e,t)}}}),[l,f]);return t="rect"===i?tq:"circle"===i?nq:i,ln(r,{children:b((function(e,n){return R(t,{cell:n,borderRadius:o,borderWidth:a,animatedProps:e,enableLabels:p,onMouseEnter:x,onMouseMove:k,onMouseLeave:C,onClick:S})}))})},lq=function(e){var t=e.cells,n=e.annotations,i=eq(t,n);return ln(r,{children:i.map((function(e,t){return ln(j$,U$({},e),t)}))})},sq=["isInteractive","animate","motionConfig","theme","renderWrapper"],cq=function(e){var t=e.data,n=e.layers,r=void 0===n?q$.layers:n,i=e.valueFormat,o=e.width,a=e.height,l=e.margin,s=e.forceSquare,c=void 0===s?q$.forceSquare:s,u=e.xInnerPadding,d=void 0===u?q$.xInnerPadding:u,f=e.xOuterPadding,h=void 0===f?q$.xOuterPadding:f,p=e.yInnerPadding,g=void 0===p?q$.yInnerPadding:p,v=e.yOuterPadding,m=void 0===v?q$.yOuterPadding:v,b=e.sizeVariation,y=void 0===b?q$.sizeVariation:b,_=e.cellComponent,w=void 0===_?q$.cellComponent:_,x=e.opacity,k=void 0===x?q$.opacity:x,C=e.activeOpacity,S=void 0===C?q$.activeOpacity:C,M=e.inactiveOpacity,T=void 0===M?q$.inactiveOpacity:M,L=e.borderRadius,E=void 0===L?q$.borderRadius:L,O=e.borderWidth,P=void 0===O?q$.borderWidth:O,D=e.borderColor,N=void 0===D?q$.borderColor:D,I=e.enableGridX,B=void 0===I?q$.enableGridX:I,F=e.enableGridY,j=void 0===F?q$.enableGridY:F,W=e.axisTop,H=void 0===W?q$.axisTop:W,U=e.axisRight,V=void 0===U?q$.axisRight:U,$=e.axisBottom,q=void 0===$?q$.axisBottom:$,Y=e.axisLeft,G=void 0===Y?q$.axisLeft:Y,X=e.enableLabels,Z=void 0===X?q$.enableLabels:X,K=e.label,J=void 0===K?q$.label:K,Q=e.labelTextColor,ee=void 0===Q?q$.labelTextColor:Q,te=e.colors,ne=void 0===te?q$.colors:te,re=e.emptyColor,ie=void 0===re?q$.emptyColor:re,oe=e.legends,ae=void 0===oe?q$.legends:oe,le=e.annotations,se=void 0===le?q$.annotations:le,ce=e.isInteractive,ue=void 0===ce?q$.isInteractive:ce,de=e.onMouseEnter,fe=e.onMouseMove,he=e.onMouseLeave,pe=e.onClick,ge=e.hoverTarget,ve=void 0===ge?q$.hoverTarget:ge,me=e.tooltip,be=void 0===me?q$.tooltip:me,ye=e.role,_e=e.ariaLabel,we=e.ariaLabelledBy,xe=e.ariaDescribedBy,ke=e.forwardedRef,Ce=MD(o,a,l),Se=Ce.margin,Me=Ce.innerWidth,Ae=Ce.innerHeight,Te=Ce.outerWidth,Le=Ce.outerHeight,Ee=Q$({data:t,valueFormat:i,width:Me,height:Ae,forceSquare:c,xInnerPadding:d,xOuterPadding:h,yInnerPadding:g,yOuterPadding:m,sizeVariation:y,colors:ne,emptyColor:ie,opacity:k,activeOpacity:S,inactiveOpacity:T,borderColor:N,label:J,labelTextColor:ee,hoverTarget:ve}),Oe=Ee.width,Re=Ee.height,Pe=Ee.offsetX,ze=Ee.offsetY,De=Ee.xScale,Ne=Ee.yScale,Ie=Ee.cells,Be=Ee.colorScale,Fe=Ee.activeCell,je=Ee.setActiveCell,We=A((function(){return U$({},Se,{top:Se.top+ze,left:Se.left+Pe})}),[Se,Pe,ze]),He={grid:null,axes:null,cells:null,legends:null,annotations:null};r.includes("grid")&&(He.grid=ln($B,{width:Oe,height:Re,xScale:B?De:null,yScale:j?Ne:null},"grid")),r.includes("axes")&&(He.axes=ln(HB,{xScale:De,yScale:Ne,width:Oe,height:Re,top:H,right:V,bottom:q,left:G},"axes")),r.includes("cells")&&(He.cells=ln(z,{children:ln(aq,{cells:Ie,cellComponent:w,borderRadius:E,borderWidth:P,isInteractive:ue,setActiveCell:je,onMouseEnter:de,onMouseMove:fe,onMouseLeave:he,onClick:pe,tooltip:be,enableLabels:Z})},"cells")),r.includes("legends")&&null!==Be&&(He.legends=ln(z,{children:ae.map((function(e,t){return R(FF,U$({},e,{key:t,containerWidth:Oe,containerHeight:Re,scale:Be}))}))},"legends")),r.includes("annotations")&&se.length>0&&(He.annotations=ln(lq,{cells:Ie,annotations:se},"annotations"));var Ue={cells:Ie,activeCell:Fe,setActiveCell:je};return ln(vD,{width:Te,height:Le,margin:Object.assign({},We,{top:We.top,left:We.left}),role:ye,ariaLabel:_e,ariaLabelledBy:we,ariaDescribedBy:xe,ref:ke,children:r.map((function(e,t){var n;return"function"==typeof e?ln(z,{children:R(e,Ue)},t):null!=(n=null==He?void 0:He[e])?n:null}))})},uq=S((function(e,t){var n=e.isInteractive,r=void 0===n?q$.isInteractive:n,i=e.animate,o=void 0===i?q$.animate:i,a=e.motionConfig,l=void 0===a?q$.motionConfig:a,s=e.theme,c=e.renderWrapper,u=V$(e,sq);return ln(Dz,{animate:o,isInteractive:r,motionConfig:l,renderWrapper:c,theme:s,children:ln(cq,U$({isInteractive:r},u,{forwardedRef:t}))})})),dq=["defaultWidth","defaultHeight","onResize","debounceResize"],fq=S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=V$(e,dq);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(uq,U$({width:n,height:r},a,{ref:t}))}})})),hq=function(e,t){var n=t.cell,r=n.x,i=n.y,o=n.width,a=n.height,l=n.color,s=n.borderColor,c=n.opacity,u=n.labelTextColor,d=n.label,f=t.borderWidth,h=t.enableLabels,p=t.theme;e.save(),e.globalAlpha=c,e.fillStyle=l,f>0&&(e.strokeStyle=s,e.lineWidth=f),e.fillRect(r-o/2,i-a/2,o,a),f>0&&e.strokeRect(r-o/2,i-a/2,o,a),h&&(FD(e,p.labels.text),e.textAlign="center",e.textBaseline="middle",jD(e,U$({},p.labels.text,{fill:u}),d,r,i)),e.restore()},pq=function(e,t){var n=t.cell,r=n.x,i=n.y,o=n.width,a=n.height,l=n.color,s=n.borderColor,c=n.opacity,u=n.labelTextColor,d=n.label,f=t.borderWidth,h=t.enableLabels,p=t.theme;e.save(),e.globalAlpha=c;var g=Math.min(o,a)/2;e.fillStyle=l,f>0&&(e.strokeStyle=s,e.lineWidth=f),e.beginPath(),e.arc(r,i,g,0,2*Math.PI),e.fill(),f>0&&e.stroke(),h&&(FD(e,p.labels.text),e.textAlign="center",e.textBaseline="middle",jD(e,U$({},p.labels.text,{fill:u}),d,r,i)),e.restore()},gq=["theme","isInteractive","animate","motionConfig","renderWrapper"],vq=function(e){var t,n=e.data,r=e.layers,i=void 0===r?Y$.layers:r,o=e.valueFormat,a=e.width,l=e.height,s=e.margin,c=e.xInnerPadding,u=void 0===c?Y$.xInnerPadding:c,d=e.xOuterPadding,f=void 0===d?Y$.xOuterPadding:d,h=e.yInnerPadding,p=void 0===h?Y$.yInnerPadding:h,g=e.yOuterPadding,v=void 0===g?Y$.yOuterPadding:g,m=e.forceSquare,b=void 0===m?Y$.forceSquare:m,y=e.sizeVariation,_=void 0===y?Y$.sizeVariation:y,w=e.renderCell,k=void 0===w?Y$.renderCell:w,S=e.opacity,T=void 0===S?Y$.opacity:S,L=e.activeOpacity,E=void 0===L?Y$.activeOpacity:L,O=e.inactiveOpacity,P=void 0===O?Y$.inactiveOpacity:O,z=e.borderWidth,D=void 0===z?Y$.borderWidth:z,N=e.borderColor,I=void 0===N?Y$.borderColor:N,B=e.enableGridX,F=void 0===B?Y$.enableGridX:B,j=e.enableGridY,W=void 0===j?Y$.enableGridY:j,H=e.axisTop,U=void 0===H?Y$.axisTop:H,V=e.axisRight,$=void 0===V?Y$.axisRight:V,q=e.axisBottom,Y=void 0===q?Y$.axisBottom:q,G=e.axisLeft,X=void 0===G?Y$.axisLeft:G,Z=e.enableLabels,K=void 0===Z?Y$.enableLabels:Z,J=e.label,Q=void 0===J?Y$.label:J,ee=e.labelTextColor,te=void 0===ee?Y$.labelTextColor:ee,ne=e.colors,re=void 0===ne?Y$.colors:ne,ie=e.emptyColor,oe=void 0===ie?Y$.emptyColor:ie,ae=e.legends,le=void 0===ae?Y$.legends:ae,se=e.annotations,ce=void 0===se?Y$.annotations:se,ue=e.isInteractive,de=void 0===ue?Y$.isInteractive:ue,fe=e.onClick,he=e.hoverTarget,pe=void 0===he?Y$.hoverTarget:he,ge=e.tooltip,ve=void 0===ge?Y$.tooltip:ge,me=e.role,be=e.ariaLabel,ye=e.ariaLabelledBy,_e=e.ariaDescribedBy,we=e.pixelRatio,xe=void 0===we?Y$.pixelRatio:we,ke=e.forwardedRef,Ce=C(null),Se=MD(a,l,s),Me=Se.margin,Ae=Se.innerWidth,Te=Se.innerHeight,Le=Se.outerWidth,Ee=Se.outerHeight,Oe=Q$({data:n,valueFormat:o,width:Ae,height:Te,xInnerPadding:u,xOuterPadding:f,yInnerPadding:p,yOuterPadding:v,forceSquare:b,sizeVariation:_,colors:re,emptyColor:oe,opacity:T,activeOpacity:E,inactiveOpacity:P,borderColor:I,label:Q,labelTextColor:te,hoverTarget:pe}),Re=Oe.width,Pe=Oe.height,ze=Oe.offsetX,De=Oe.offsetY,Ne=Oe.xScale,Ie=Oe.yScale,Be=Oe.cells,Fe=Oe.colorScale,je=Oe.activeCell,We=Oe.setActiveCell,He=A((function(){return U$({},Me,{top:Me.top+De,left:Me.left+ze})}),[Me,ze,De]),Ue=eq(Be,ce),Ve=z$({annotations:Ue});t="function"==typeof k?k:"circle"===k?pq:hq;var $e=eT(),qe=A((function(){return{cells:Be,activeCell:je,setActiveCell:We}}),[Be,je,We]);x((function(){if(null!==Ce.current){var e=Ce.current.getContext("2d");e&&(Ce.current.width=Le*xe,Ce.current.height=Ee*xe,e.scale(xe,xe),e.fillStyle=$e.background,e.fillRect(0,0,Le,Ee),e.translate(He.left,He.top),i.forEach((function(n){"grid"===n?(e.lineWidth=$e.grid.line.strokeWidth,e.strokeStyle=$e.grid.line.stroke,F&&GB(e,{width:Re,height:Pe,scale:Ne,axis:"x"}),W&&GB(e,{width:Re,height:Pe,scale:Ie,axis:"y"})):"axes"===n?YB(e,{xScale:Ne,yScale:Ie,width:Re,height:Pe,top:U,right:$,bottom:Y,left:X,theme:$e}):"cells"===n?(e.textAlign="center",e.textBaseline="middle",Be.forEach((function(n){t(e,{cell:n,borderWidth:D,enableLabels:K,theme:$e})}))):"legends"===n&&null!==Fe?le.forEach((function(t){!function(e,t){var n,r=t.containerWidth,i=t.containerHeight,o=t.anchor,a=t.translateX,l=void 0===a?0:a,s=t.translateY,c=void 0===s?0:s,u=t.scale,d=t.length,f=void 0===d?OF.length:d,h=t.thickness,p=void 0===h?OF.thickness:h,g=t.direction,v=void 0===g?OF.direction:g,m=t.ticks,b=t.tickPosition,y=void 0===b?OF.tickPosition:b,_=t.tickSize,w=void 0===_?OF.tickSize:_,x=t.tickSpacing,k=void 0===x?OF.tickSpacing:x,C=t.tickOverlap,S=void 0===C?OF.tickOverlap:C,M=t.tickFormat,A=void 0===M?OF.tickFormat:M,T=t.title,L=t.titleAlign,E=void 0===L?OF.titleAlign:L,O=t.titleOffset,R=void 0===O?OF.titleOffset:O,P=t.theme,z=NF({scale:u,ticks:m,length:f,thickness:p,direction:v,tickPosition:y,tickSize:w,tickSpacing:k,tickOverlap:S,tickFormat:A,title:T,titleAlign:E,titleOffset:R}),D=z.width,N=z.height,I=z.gradientX1,B=z.gradientY1,F=z.gradientX2,j=z.gradientY2,W=z.colorStops,H=z.ticks,U=z.titleText,V=z.titleX,$=z.titleY,q=z.titleRotation,Y=z.titleVerticalAlign,G=z.titleHorizontalAlign,X=zF({anchor:o,translateX:l,translateY:c,containerWidth:r,containerHeight:i,width:D,height:N}),Z=X.x,K=X.y,J={font:e.font,textAlign:e.textAlign,textBaseline:e.textBaseline};e.save(),e.translate(Z,K);var Q=e.createLinearGradient(I*D,B*N,F*D,j*N);W.forEach((function(e){Q.addColorStop(e.offset,e.stopColor)})),e.fillStyle=Q,e.fillRect(0,0,D,N),FD(e,P.legends.ticks.text);var ee=null!=(n=P.legends.ticks.line.strokeWidth)?n:0,te="string"!=typeof ee&&ee>0;H.forEach((function(t){te&&(e.lineWidth=ee,P.axis.ticks.line.stroke&&(e.strokeStyle=P.axis.ticks.line.stroke),e.lineCap="square",e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.stroke()),e.textAlign="middle"===t.textHorizontalAlign?"center":t.textHorizontalAlign,e.textBaseline="central"===t.textVerticalAlign?"middle":t.textVerticalAlign,jD(e,P.legends.ticks.text,t.text,t.textX,t.textY)})),U&&(e.save(),e.translate(V,$),e.rotate(Zz(q)),FD(e,P.legends.title.text),e.textAlign="middle"===G?"center":G,e.textBaseline=Y,jD(e,P.legends.title.text,U),e.restore()),e.restore(),e.font=J.font,e.textAlign=J.textAlign,e.textBaseline=J.textBaseline}(e,U$({},t,{containerWidth:Re,containerHeight:Pe,scale:Fe,theme:$e}))})):"annotations"===n?H$(e,{annotations:Ve,theme:$e}):"function"==typeof n&&n(e,qe)})))}}),[Ce,xe,Le,Ee,Re,Pe,He,i,qe,Be,t,F,W,U,$,Y,X,Ne,Ie,$e,D,K,Fe,le,Ve]);var Ye=mT(),Ge=Ye.showTooltipFromEvent,Xe=Ye.hideTooltip,Ze=M((function(e){if(null!==Ce.current){var t=zD(Ce.current,e),n=t[0],r=t[1],i=Be.find((function(e){return PD(e.x+He.left-e.width/2,e.y+He.top-e.height/2,e.width,e.height,n,r)}));void 0!==i?(We(i),Ge(R(ve,{cell:i}),e)):(We(null),Xe())}}),[Ce,Be,He,We,Ge,Xe,ve]),Ke=M((function(){We(null),Xe()}),[We,Xe]),Je=M((function(e){null!==je&&(null==fe||fe(je,e))}),[je,fe]);return ln("canvas",{ref:BD(Ce,ke),width:Le*xe,height:Ee*xe,style:{width:Le,height:Ee},onMouseEnter:de?Ze:void 0,onMouseMove:de?Ze:void 0,onMouseLeave:de?Ke:void 0,onClick:de?Je:void 0,role:me,"aria-label":be,"aria-labelledby":ye,"aria-describedby":_e})},mq=S((function(e,t){var n=e.theme,r=e.isInteractive,i=void 0===r?Y$.isInteractive:r,o=e.animate,a=void 0===o?Y$.animate:o,l=e.motionConfig,s=void 0===l?Y$.motionConfig:l,c=e.renderWrapper,u=V$(e,gq);return ln(Dz,{isInteractive:i,animate:a,motionConfig:s,theme:n,renderWrapper:c,children:ln(vq,U$({isInteractive:i},u,{forwardedRef:t}))})})),bq=["defaultWidth","defaultHeight","onResize","debounceResize"];S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=V$(e,bq);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(mq,U$({width:n,height:r},a,{ref:t}))}})}));const yq={top:60,right:90,bottom:60,left:90},_q="#E0E0E0",wq=400,xq="100%",kq="No data available",Cq="No data available",Sq=.05,Mq=.05,Aq=!0,Tq=">-.2%",Lq={tickSize:5,tickPadding:5,tickRotation:0},Eq={tickSize:5,tickPadding:5,tickRotation:-90},Oq={anchor:"bottom",translateX:0,translateY:30,length:400,thickness:8,direction:"row",tickPosition:"after",tickSize:3,tickSpacing:4,tickOverlap:!1,tickFormat:">-.2%",title:"Value",titleAlign:"middle",titleOffset:4},Rq=e=>{const{cell:t}=e,n=h((()=>({id:t.id.toString(),color:t.color,label:t.data.x,value:t.label})),[t]);return ln(qV,{label:t.serieId,children:ln(i$,{mode:"default",legend:n})})};var Pq="styles_heatMap__E95gO";const zq=({width:e=xq,height:t=400,data:n,rootAriaLabel:r,emptyLabel:i=kq,emptyAriaLabel:o=Cq,margin:a=yq,axisLeft:l=Lq,axisTop:s=Eq,xInnerPadding:c=.05,yInnerPadding:u=.05,legends:f=[Oq],forceSquare:p=true,valueFormat:g=Tq,...v})=>{const m=h((()=>0===n.length),[n]),b=((e="light")=>{const t=h((()=>MW([0,1],["var(--bg-support-castor)","var(--bg-support-atlas-heavy)","var(--bg-support-atlas)","var(--bg-support-atlas-heavy)","var(--bg-support-capella)"])),[e]);return d((e=>t(e)),[t])})(c$());return m?ln(cW,{label:i,width:e,height:t,ariaLabel:o}):ln("div",{role:"img","aria-label":r,tabIndex:0,style:{width:e,height:t},className:Pq,children:ln(fq,{data:n,margin:a,axisBottom:null,axisRight:null,axisLeft:l,axisTop:s,xInnerPadding:c,yInnerPadding:u,legends:f,forceSquare:p,theme:_V,motionConfig:vV,animate:!mV,valueFormat:g,colors:e=>b(e.data.y??0),labelTextColor:"var(--constant-on-text-primary)",tooltip:Rq,emptyColor:"var(--bg-control-secondary)",inactiveOpacity:0,borderRadius:4,...v})})},Dq=({title:e,translations:t,rootAriaLabel:n,width:r,height:i,data:o,...a})=>{const l=t["no-results"];return ln(xv,{title:e,children:ln(zq,{data:o,width:r,height:i,emptyLabel:l,emptyAriaLabel:l,rootAriaLabel:n,...a})})};function Nq(){return Nq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nq.apply(null,arguments)}function Iq(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Bq,Fq=function(e){var t=e.bars,n=e.annotations,i=P$({data:t,annotations:n,getPosition:function(e){return{x:e.x+e.width/2,y:e.y+e.height/2}},getDimensions:function(e){var t=e.height,n=e.width;return{width:n,height:t,size:Math.max(n,t)}}});return ln(r,{children:i.map((function(e,t){return ln(j$,Nq({},e),t)}))})},jq=function(e){var t=e.width,n=e.height,i=e.legends,o=e.toggleSerie;return ln(r,{children:i.map((function(e,r){var i,a=e[0],l=e[1];return ln(UF,Nq({},a,{containerWidth:t,containerHeight:n,data:null!=(i=a.data)?i:l,toggleSerie:a.toggleSerie&&"keys"===a.dataFrom?o:void 0}),r)}))})},Wq=["data"],Hq=["color","label"],Uq={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",valueScale:{type:"linear",nice:!0,round:!1},indexScale:{type:"band",round:!1},padding:.1,innerPadding:0,enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelPosition:"middle",labelOffset:0,labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:function(e){var t=e.color,n=e.label,r=Iq(e,Hq);return ln(lT,{id:n,value:r.formattedValue,enableChip:!0,color:t})},tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],enableTotals:!1,totalsOffset:10},Vq=Nq({},Uq,{layers:["grid","axes","bars","totals","markers","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},barComponent:function(e){var t,n=e.bar,r=n.data,i=Iq(n,Wq),o=e.style,a=o.borderColor,l=o.color,s=o.height,c=o.labelColor,u=o.labelOpacity,d=o.labelX,f=o.labelY,h=o.transform,p=o.width,g=o.textAnchor,v=e.borderRadius,m=e.borderWidth,b=e.label,y=e.shouldRenderLabel,_=e.isInteractive,w=e.onClick,x=e.onMouseEnter,k=e.onMouseLeave,C=e.tooltip,S=e.isFocusable,T=e.ariaLabel,L=e.ariaLabelledBy,E=e.ariaDescribedBy,O=e.ariaDisabled,P=e.ariaHidden,z=eT(),D=mT(),N=D.showTooltipFromEvent,I=D.showTooltipAt,B=D.hideTooltip,F=A((function(){return function(){return R(C,Nq({},i,r))}}),[C,i,r]),j=M((function(e){null==w||w(Nq({color:i.color},r),e)}),[i,r,w]),W=M((function(e){return N(F(),e)}),[N,F]),H=M((function(e){null==x||x(r,e),N(F(),e)}),[r,x,N,F]),U=M((function(e){null==k||k(r,e),B()}),[r,B,k]),V=M((function(){I(F(),[i.absX+i.width/2,i.absY])}),[I,F,i]),$=M((function(){B()}),[B]);return ln(fC.g,{transform:h,children:[ln(fC.rect,{width:sx(p,(function(e){return Math.max(e,0)})),height:sx(s,(function(e){return Math.max(e,0)})),rx:v,ry:v,fill:null!=(t=r.fill)?t:l,strokeWidth:m,stroke:a,focusable:S,tabIndex:S?0:void 0,"aria-label":T?T(r):void 0,"aria-labelledby":L?L(r):void 0,"aria-describedby":E?E(r):void 0,"aria-disabled":O?O(r):void 0,"aria-hidden":P?P(r):void 0,onMouseEnter:_?H:void 0,onMouseMove:_?W:void 0,onMouseLeave:_?U:void 0,onClick:_?j:void 0,onFocus:_&&S?V:void 0,onBlur:_&&S?$:void 0,"data-testid":"bar.item."+r.id+"."+r.index}),y&&ln(QD,{x:d,y:f,textAnchor:g,dominantBaseline:"central",fillOpacity:u,style:Nq({},z.labels.text,{pointerEvents:"none",fill:c}),children:b})]})},defs:[],fill:[],markers:[],animate:!0,animateOnMount:!1,motionConfig:"default",role:"img",isFocusable:!1}),$q=Nq({},Uq,{layers:["grid","axes","bars","totals","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},renderBar:function(e,t){var n=t.bar,r=n.color,i=n.height,o=n.width,a=n.x,l=n.y,s=t.borderColor,c=t.borderRadius,u=t.borderWidth,d=t.label,f=t.shouldRenderLabel,h=t.labelStyle,p=t.labelX,g=t.labelY,v=t.textAnchor;e.fillStyle=r,u>0&&(e.strokeStyle=s,e.lineWidth=u),e.beginPath(),function(e,t,n,r,i,o){o>0?(e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()):e.rect(t,n,r,i)}(e,a,l,o,i,Math.min(c,i)),e.fill(),u>0&&e.stroke(),f&&(e.textBaseline="middle",e.textAlign="middle"===v?"center":v,jD(e,h,d,a+p,l+g))},pixelRatio:"undefined"!=typeof window&&null!=(Bq=window.devicePixelRatio)?Bq:1}),qq=function(e,t,n,r,i,o){return wB(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},Yq=function(e,t){return e.map((function(e){return Nq({},t.reduce((function(e,t){return e[t]=null,e}),{}),e)}))},Gq=function(e){return Object.keys(e).reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})},Xq=function(e){return[e,Number(e)]};function Zq(e,t,n,r){return void 0===e&&(e=Uq.layout),void 0===n&&(n=Uq.labelPosition),void 0===r&&(r=Uq.labelOffset),function(i,o){var a=r*(t?-1:1);if("horizontal"===e){var l=i/2;return"start"===n?l=t?i:0:"end"===n&&(l=t?0:i),{labelX:l+a,labelY:o/2,textAnchor:"middle"===n?"middle":t?"end":"start"}}var s=o/2;return"start"===n?s=t?0:o:"end"===n&&(s=t?o:0),{labelX:i/2,labelY:s-a,textAnchor:"middle"}}}var Kq=["layout","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],Jq=function(e,t){return e>t},Qq=function(e,t){return e<t},eY=function(e,t){return Array.from(" ".repeat(t-e),(function(t,n){return e+n}))},tY=function(e){return Jq(e,0)?0:e},nY=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getColor,l=e.getIndex,s=e.getTooltipLabel,c=e.innerPadding,u=void 0===c?0:c,d=e.keys,f=e.xScale,h=e.yScale,p=e.margin,g=n?Qq:Jq,v=i.map(Gq),m=[];return d.forEach((function(e,n){return eY(0,f.domain().length).forEach((function(c){var d,b,y,_=Xq(i[c][e]),w=_[0],x=_[1],k=l(i[c]),C=(null!=(d=f(k))?d:0)+t*n+u*n,S=g(b=x,0)?null!=(y=h(b))?y:0:r,M=function(e,t){var n;return g(e,0)?r-t:(null!=(n=h(e))?n:0)-r}(x,S),A={id:e,value:null===w?w:x,formattedValue:o(x),hidden:!1,index:c,indexValue:k,data:v[c]};m.push({key:e+"."+A.indexValue,index:m.length,data:A,x:C,y:S,absX:p.left+C,absY:p.top+S,width:t,height:M,color:a(A),label:s(A)})}))})),m},rY=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getIndex,l=e.getColor,s=e.getTooltipLabel,c=e.keys,u=e.innerPadding,d=void 0===u?0:u,f=e.xScale,h=e.yScale,p=e.margin,g=n?Qq:Jq,v=i.map(Gq),m=[];return c.forEach((function(e,n){return eY(0,h.domain().length).forEach((function(c){var u,b,y,_=Xq(i[c][e]),w=_[0],x=_[1],k=a(i[c]),C=g(b=x,0)?r:null!=(y=f(b))?y:0,S=(null!=(u=h(k))?u:0)+t*n+d*n,M=function(e,t){var n;return g(e,0)?(null!=(n=f(e))?n:0)-r:r-t}(x,C),A={id:e,value:null===w?w:x,formattedValue:o(x),hidden:!1,index:c,indexValue:k,data:v[c]};m.push({key:e+"."+A.indexValue,index:m.length,data:A,x:C,y:S,absX:p.left+C,absY:p.top+S,width:M,height:t,color:l(A),label:s(A)})}))})),m},iY=function(e){var t,n,r,i=e.layout,o=e.width,a=e.height,l=e.padding,s=void 0===l?0:l,c=e.innerPadding,u=void 0===c?0:c,d=e.valueScale,f=e.indexScale,h=e.hiddenIds,p=void 0===h?[]:h,g=Iq(e,Kq),v=g.keys.filter((function(e){return!p.includes(e)})),m=Yq(g.data,v),b="vertical"===i?["y","x",o]:["x","y",a],y=b[0],_=b[1],w=b[2],x=qq(m,g.getIndex,s,f,w,_),k="auto"===d.min?tY:function(e){return e},C=m.reduce((function(e,t){return[].concat(e,v.map((function(e){return t[e]})))}),[]).filter(Boolean),S=wB(d,{all:C,min:k(Math.min.apply(Math,C)),max:(r=Math.max.apply(Math,C),isFinite(r)?r:0)},"x"===y?o:a,y),M="vertical"===i?[x,S]:[S,x],A=M[0],T=M[1],L=(x.bandwidth()-u*(v.length-1))/v.length,E=[Nq({},g,{data:m,keys:v,innerPadding:u,xScale:A,yScale:T}),L,null!=(t=d.reverse)&&t,null!=(n=S(0))?n:0];return{xScale:A,yScale:T,bars:L>0?"vertical"===i?nY.apply(void 0,E):rY.apply(void 0,E):[]}},oY=["data","layout","width","height","padding","valueScale","indexScale","hiddenIds"],aY=function(e){var t;return e.some(Array.isArray)?aY((t=[]).concat.apply(t,e)):e},lY=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,l=e.innerPadding,s=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,f=[];return s.forEach((function(e){return c.domain().forEach((function(s,h){var p,g,v=e[h],m=null!=(p=c(o(v.data)))?p:0,b=(null!=(g=function(e){return u(e[n?0:1])}(v))?g:0)+.5*l,y=function(e,t){var r;return(null!=(r=u(e[n?1:0]))?r:0)-t}(v,b)-l,_=Xq(v.data[e.key]),w=_[0],x=_[1],k={id:e.key,value:null===w?w:x,formattedValue:r(x),hidden:!1,index:h,indexValue:s,data:Gq(v.data)};f.push({key:e.key+"."+s,index:f.length,data:k,x:m,y:b,absX:d.left+m,absY:d.top+b,width:t,height:y,color:i(k),label:a(k)})}))})),f},sY=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,l=e.innerPadding,s=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,f=[];return s.forEach((function(e){return u.domain().forEach((function(s,h){var p,g,v=e[h],m=null!=(p=u(o(v.data)))?p:0,b=(null!=(g=function(e){return c(e[n?1:0])}(v))?g:0)+.5*l,y=function(e,t){var r;return(null!=(r=c(e[n?0:1]))?r:0)-t}(v,b)-l,_=Xq(v.data[e.key]),w=_[0],x=_[1],k={id:e.key,value:null===w?w:x,formattedValue:r(x),hidden:!1,index:h,indexValue:s,data:Gq(v.data)};f.push({key:e.key+"."+s,index:f.length,data:k,x:b,y:m,absX:d.left+b,absY:d.top+m,width:y,height:t,color:i(k),label:a(k)})}))})),f},cY=function(e){var t,n,r=e.data,i=e.layout,o=e.width,a=e.height,l=e.padding,s=void 0===l?0:l,c=e.valueScale,u=e.indexScale,d=e.hiddenIds,f=void 0===d?[]:d,h=Iq(e,oY),p=h.keys.filter((function(e){return!f.includes(e)})),g=function(){var e=au([]),t=kd,n=xd,r=Cd;function i(i){var o,a,l=Array.from(e.apply(this,arguments),Sd),s=l.length,c=-1;for(const e of i)for(o=0,++c;o<s;++o)(l[o][c]=[0,+r(e,l[o].key,c,i)]).data=e;for(o=0,a=Pu(t(l));o<s;++o)l[a[o]].index=o;return n(l,a),l}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:au(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:au(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?kd:"function"==typeof e?e:au(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?xd:e,i):n},i}().keys(p).offset(Md)(Yq(r,p)),v="vertical"===i?["y","x",o]:["x","y",a],m=v[0],b=v[1],y=v[2],_=qq(r,h.getIndex,s,u,y,b),w=(n=aY(g),"log"===c.type?n.filter((function(e){return 0!==e})):n),x=wB(c,{all:w,min:Math.min.apply(Math,w),max:Math.max.apply(Math,w)},"x"===m?o:a,m),k="vertical"===i?[_,x]:[x,_],C=k[0],S=k[1],M=h.innerPadding>0?h.innerPadding:0,A=_.bandwidth(),T=[Nq({},h,{innerPadding:M,stackedData:g,xScale:C,yScale:S}),A,null!=(t=c.reverse)&&t];return{xScale:C,yScale:S,bars:A>0?"vertical"===i?lY.apply(void 0,T):sY.apply(void 0,T):[]}},uY=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,o=e.layout,a=e.legendLabel,l=e.reverse,s=ED(null!=a?a:"indexes"===r?"indexValue":"id");return"indexes"===r?function(e,t,n){var r=ZN(e.map((function(e){var t,r;return{id:null!=(t=e.data.indexValue)?t:"",label:n(e.data),hidden:e.data.hidden,color:null!=(r=e.color)?r:"#000"}})),(function(e){return e.id}));return"horizontal"===t&&r.reverse(),r}(t,o,s):function(e,t,n,r,i,o){var a=ZN(e.map((function(e){var t;return{id:e.data.id,label:o(e.data),hidden:e.data.hidden,color:null!=(t=e.color)?t:"#000"}})),(function(e){return e.id}));return("vertical"===t&&"stacked"===r&&"column"===n&&!0!==i||"horizontal"===t&&"stacked"===r&&!0===i)&&a.reverse(),a}(t,o,n,i,l,s)},dY=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},fY=function(e){var t,n=e.indexBy,r=void 0===n?Uq.indexBy:n,i=e.keys,o=void 0===i?Uq.keys:i,a=e.label,l=void 0===a?Uq.label:a,s=e.tooltipLabel,c=void 0===s?Uq.tooltipLabel:s,u=e.valueFormat,d=e.colors,f=void 0===d?Uq.colors:d,h=e.colorBy,p=void 0===h?Uq.colorBy:h,g=e.borderColor,v=void 0===g?Uq.borderColor:g,m=e.labelTextColor,b=void 0===m?Uq.labelTextColor:m,y=e.groupMode,_=void 0===y?Uq.groupMode:y,x=e.layout,k=void 0===x?Uq.layout:x,C=e.data,S=e.margin,T=e.width,L=e.height,E=e.padding,O=void 0===E?Uq.padding:E,R=e.innerPadding,P=void 0===R?Uq.innerPadding:R,z=e.valueScale,D=void 0===z?Uq.valueScale:z,N=e.indexScale,I=void 0===N?Uq.indexScale:N,B=e.initialHiddenIds,F=void 0===B?Uq.initialHiddenIds:B,j=e.enableLabel,W=void 0===j?Uq.enableLabel:j,H=e.labelSkipWidth,U=void 0===H?Uq.labelSkipWidth:H,V=e.labelSkipHeight,$=void 0===V?Uq.labelSkipHeight:V,q=e.legends,Y=void 0===q?Uq.legends:q,G=e.legendLabel,X=e.totalsOffset,Z=void 0===X?Uq.totalsOffset:X,K=w(null!=F?F:[]),J=K[0],Q=K[1],ee=M((function(e){Q((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(t,[e])}))}),[]),te=OD(r),ne=OD(l),re=OD(c),ie=LD(u),oe=eT(),ae=bF(f,p),le=cF(v,oe),se=cF(b,oe),ce=("grouped"===_?iY:cY)({layout:k,data:C,getIndex:te,keys:o,width:T,height:L,getColor:ae,padding:O,innerPadding:P,valueScale:D,indexScale:I,hiddenIds:J,formatValue:ie,getTooltipLabel:re,margin:S}),ue=ce.bars,de=ce.xScale,fe=ce.yScale,he=A((function(){return ue.filter((function(e){return null!==e.data.value})).map((function(e,t){return Nq({},e,{index:t})}))}),[ue]),pe=M((function(e){var t=e.width,n=e.height;return!(!W||U>0&&t<U||$>0&&n<$)}),[W,U,$]),ge=A((function(){return o.map((function(e){var t=ue.find((function(t){return t.data.id===e}));return Nq({},t,{data:Nq({id:e},null==t?void 0:t.data,{hidden:J.includes(e)})})}))}),[J,o,ue]),ve=null!=(t=D.reverse)&&t,me=A((function(){return Y.map((function(e){return[e,uY({bars:"keys"===e.dataFrom?ge:ue,direction:e.direction,from:e.dataFrom,groupMode:_,layout:k,legendLabel:G,reverse:ve})]}))}),[Y,ge,ue,_,k,G,ve]),be=A((function(){return function(e,t,n,r,i,o,a){void 0===r&&(r=Uq.layout),void 0===i&&(i=Uq.groupMode);var l=[];if(0===e.length)return l;var s=new Map,c=e[0].width,u=e[0].height;if("stacked"===i){var d=new Map;e.forEach((function(e){var t=e.data,n=t.indexValue,r=t.value;dY(s,n,Number(r)),function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))}(d,n,Number(r))})),d.forEach((function(e,i){var d,f,h,p=s.get(i)||0;"vertical"===r?(d=t(i),f=n(e),h=n(e/2)):(d=t(e),f=n(i),h=t(e/2)),d+="vertical"===r?c/2:o,f+="vertical"===r?-o:u/2,l.push({key:"total_"+i,x:d,y:f,value:p,formattedValue:a(p),animationOffset:h})}))}else if("grouped"===i){var f=new Map,h=new Map;e.forEach((function(e){var t=e.data,n=t.indexValue,r=t.value;dY(s,n,Number(r)),function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))}(f,n,Number(r)),function(e,t){var n=e.get(t)||0;e.set(t,n+1)}(h,n)})),f.forEach((function(e,i){var d,f,p,g=s.get(i)||0,v=h.get(i);"vertical"===r?(d=t(i),f=n(e),p=n(e/2)):(d=t(e),f=n(i),p=t(e/2)),d+="vertical"===r?v*c/2:o,f+="vertical"===r?-o:v*u/2,l.push({key:"total_"+i,x:d,y:f,value:g,formattedValue:a(g),animationOffset:p})}))}return l}(ue,de,fe,k,_,Z,ie)}),[ue,de,fe,k,_,Z,ie]);return{bars:ue,barsWithValue:he,xScale:de,yScale:fe,getIndex:te,getLabel:ne,getTooltipLabel:re,formatValue:ie,getColor:ae,getBorderColor:le,getLabelColor:se,shouldRenderBarLabel:pe,hiddenIds:J,toggleSerie:ee,legendsWithData:me,barTotals:be}},hY=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,o=void 0===i?Vq.layout:i,a=eT();return nx(t,{keys:function(e){return e.key},from:function(e){return{x:"vertical"===o?e.x:e.animationOffset,y:"vertical"===o?e.animationOffset:e.y,labelOpacity:0}},enter:function(e){return{x:e.x,y:e.y,labelOpacity:1}},update:function(e){return{x:e.x,y:e.y,labelOpacity:1}},leave:function(e){return{x:"vertical"===o?e.x:e.animationOffset,y:"vertical"===o?e.animationOffset:e.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})((function(e,t){return ln(fC.text,{x:e.x,y:e.y,fillOpacity:e.labelOpacity,style:Nq({},a.labels.text,{pointerEvents:"none"}),fontWeight:"bold",fontSize:a.labels.text.fontSize,fontFamily:a.labels.text.fontFamily,textAnchor:"vertical"===o?"middle":"start",alignmentBaseline:"vertical"===o?"alphabetic":"middle",children:t.formattedValue},t.key)}))},pY=["isInteractive","animate","motionConfig","theme","renderWrapper"],gY=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,o=e.margin,a=e.width,l=e.height,s=e.groupMode,c=e.layout,u=e.valueScale,d=e.indexScale,f=e.padding,h=e.innerPadding,p=e.axisTop,g=e.axisRight,v=e.axisBottom,m=void 0===v?Vq.axisBottom:v,b=e.axisLeft,y=void 0===b?Vq.axisLeft:b,_=e.enableGridX,w=void 0===_?Vq.enableGridX:_,x=e.enableGridY,k=void 0===x?Vq.enableGridY:x,C=e.gridXValues,S=e.gridYValues,M=e.layers,T=void 0===M?Vq.layers:M,L=e.barComponent,E=void 0===L?Vq.barComponent:L,O=e.enableLabel,P=void 0===O?Vq.enableLabel:O,D=e.label,N=e.labelSkipWidth,I=void 0===N?Vq.labelSkipWidth:N,B=e.labelSkipHeight,F=void 0===B?Vq.labelSkipHeight:B,j=e.labelTextColor,W=e.labelPosition,H=void 0===W?Vq.labelPosition:W,U=e.labelOffset,V=void 0===U?Vq.labelOffset:U,$=e.markers,q=void 0===$?Vq.markers:$,Y=e.colorBy,G=e.colors,X=e.defs,Z=void 0===X?Vq.defs:X,K=e.fill,J=void 0===K?Vq.fill:K,Q=e.borderRadius,ee=void 0===Q?Vq.borderRadius:Q,te=e.borderWidth,ne=void 0===te?Vq.borderWidth:te,re=e.borderColor,ie=e.annotations,oe=void 0===ie?Vq.annotations:ie,ae=e.legendLabel,le=e.tooltipLabel,se=e.valueFormat,ce=e.isInteractive,ue=void 0===ce?Vq.isInteractive:ce,de=e.tooltip,fe=void 0===de?Vq.tooltip:de,he=e.onClick,pe=e.onMouseEnter,ge=e.onMouseLeave,ve=e.legends,me=e.role,be=void 0===me?Vq.role:me,ye=e.ariaLabel,_e=e.ariaLabelledBy,we=e.ariaDescribedBy,xe=e.isFocusable,ke=void 0===xe?Vq.isFocusable:xe,Ce=e.barAriaLabel,Se=e.barAriaLabelledBy,Me=e.barAriaDescribedBy,Ae=e.barAriaHidden,Te=e.barAriaDisabled,Le=e.initialHiddenIds,Ee=e.enableTotals,Oe=void 0===Ee?Vq.enableTotals:Ee,Re=e.totalsOffset,Pe=void 0===Re?Vq.totalsOffset:Re,ze=e.forwardedRef,De=Rz(),Ne=De.animate,Ie=De.config,Be=MD(a,l,o),Fe=Be.outerWidth,je=Be.outerHeight,We=Be.margin,He=Be.innerWidth,Ue=Be.innerHeight,Ve=fY({indexBy:r,label:D,tooltipLabel:le,valueFormat:se,colors:G,colorBy:Y,borderColor:re,labelTextColor:j,groupMode:s,layout:c,data:n,keys:i,margin:We,width:He,height:Ue,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:P,labelSkipWidth:I,labelSkipHeight:F,legends:ve,legendLabel:ae,initialHiddenIds:Le,totalsOffset:Pe}),$e=Ve.bars,qe=Ve.barsWithValue,Ye=Ve.xScale,Ge=Ve.yScale,Xe=Ve.getLabel,Ze=Ve.getTooltipLabel,Ke=Ve.getBorderColor,Je=Ve.getLabelColor,Qe=Ve.shouldRenderBarLabel,et=Ve.toggleSerie,tt=Ve.legendsWithData,nt=Ve.barTotals,rt=Ve.getColor,it=Zq(c,null!=(t=null==u?void 0:u.reverse)&&t,H,V),ot=nx(qe,{keys:function(e){return e.key},from:function(e){return Nq({borderColor:Ke(e),color:e.color,height:0,labelColor:Je(e),labelOpacity:0},it(e.width,e.height),{transform:"translate("+e.x+", "+(e.y+e.height)+")",width:e.width},"vertical"===c?{}:{height:e.height,transform:"translate("+e.x+", "+e.y+")",width:0})},enter:function(e){return Nq({borderColor:Ke(e),color:e.color,height:e.height,labelColor:Je(e),labelOpacity:1},it(e.width,e.height),{transform:"translate("+e.x+", "+e.y+")",width:e.width})},update:function(e){return Nq({borderColor:Ke(e),color:e.color,height:e.height,labelColor:Je(e),labelOpacity:1},it(e.width,e.height),{transform:"translate("+e.x+", "+e.y+")",width:e.width})},leave:function(e){return Nq({borderColor:Ke(e),color:e.color,height:0,labelColor:Je(e),labelOpacity:0},it(e.width,e.height),{labelY:0,transform:"translate("+e.x+", "+(e.y+e.height)+")",width:e.width},"vertical"===c?{}:Nq({},it(e.width,e.height),{labelX:0,height:e.height,transform:"translate("+e.x+", "+e.y+")",width:0}))},config:Ie,immediate:!Ne,initial:Ne?void 0:null}),at=A((function(){return{borderRadius:ee,borderWidth:ne,enableLabel:P,isInteractive:ue,labelSkipWidth:I,labelSkipHeight:F,onClick:he,onMouseEnter:pe,onMouseLeave:ge,getTooltipLabel:Ze,tooltip:fe,isFocusable:ke,ariaLabel:Ce,ariaLabelledBy:Se,ariaDescribedBy:Me,ariaHidden:Ae,ariaDisabled:Te}}),[ee,ne,P,Ze,ue,F,I,he,pe,ge,fe,ke,Ce,Se,Me,Ae,Te]),lt=ID(Z,$e,J,{dataKey:"data",targetKey:"data.fill"}),st={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};T.includes("annotations")&&(st.annotations=ln(Fq,{bars:$e,annotations:oe},"annotations")),T.includes("axes")&&(st.axes=ln(HB,{xScale:Ye,yScale:Ge,width:He,height:Ue,top:p,right:g,bottom:m,left:y},"axes")),T.includes("bars")&&(st.bars=ln(z,{children:ot((function(e,t){return R(E,Nq({},at,{bar:t,style:e,shouldRenderLabel:Qe(t),label:Xe(t.data)}))}))},"bars")),T.includes("grid")&&(st.grid=ln($B,{width:He,height:Ue,xScale:w?Ye:null,yScale:k?Ge:null,xValues:C,yValues:S},"grid")),T.includes("legends")&&(st.legends=ln(jq,{width:He,height:Ue,legends:tt,toggleSerie:et},"legends")),T.includes("markers")&&(st.markers=ln(_D,{markers:q,width:He,height:Ue,xScale:Ye,yScale:Ge},"markers")),T.includes("totals")&&Oe&&(st.totals=ln(hY,{data:nt,springConfig:Ie,animate:Ne,layout:c},"totals"));var ct=Nq({},at,{margin:We,width:a,height:l,innerWidth:He,innerHeight:Ue,bars:$e,legendData:tt,enableLabel:P,xScale:Ye,yScale:Ge,tooltip:fe,getTooltipLabel:Ze,onClick:he,onMouseEnter:pe,onMouseLeave:ge,getColor:rt});return ln(vD,{width:Fe,height:je,margin:We,defs:lt,role:be,ariaLabel:ye,ariaLabelledBy:_e,ariaDescribedBy:we,isFocusable:ke,ref:ze,children:T.map((function(e,t){var n;return"function"==typeof e?ln(z,{children:R(e,ct)},t):null!=(n=null==st?void 0:st[e])?n:null}))})},vY=S((function(e,t){var n=e.isInteractive,r=void 0===n?Vq.isInteractive:n,i=e.animate,o=void 0===i?Vq.animate:i,a=e.motionConfig,l=void 0===a?Vq.motionConfig:a,s=e.theme,c=e.renderWrapper,u=Iq(e,pY);return ln(Dz,{animate:o,isInteractive:r,motionConfig:l,renderWrapper:c,theme:s,children:ln(gY,Nq({},u,{isInteractive:r,forwardedRef:t}))})})),mY=["isInteractive","renderWrapper","theme"],bY=function(e,t,n,r){return e.find((function(e){return PD(e.x+t.left,e.y+t.top,e.width,e.height,n,r)}))},yY=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,o=e.margin,a=e.width,l=e.height,s=e.groupMode,c=e.layout,u=e.valueScale,d=e.indexScale,f=e.padding,h=e.innerPadding,p=e.axisTop,g=e.axisRight,v=e.axisBottom,m=void 0===v?$q.axisBottom:v,b=e.axisLeft,y=void 0===b?$q.axisLeft:b,_=e.enableGridX,w=void 0===_?$q.enableGridX:_,k=e.enableGridY,S=void 0===k?$q.enableGridY:k,T=e.gridXValues,L=e.gridYValues,E=e.labelPosition,O=void 0===E?$q.labelPosition:E,P=e.labelOffset,z=void 0===P?$q.labelOffset:P,D=e.layers,N=void 0===D?$q.layers:D,I=e.renderBar,B=void 0===I?$q.renderBar:I,F=e.enableLabel,j=void 0===F?$q.enableLabel:F,W=e.label,H=e.labelSkipWidth,U=void 0===H?$q.labelSkipWidth:H,V=e.labelSkipHeight,$=void 0===V?$q.labelSkipHeight:V,q=e.labelTextColor,Y=e.colorBy,G=e.colors,X=e.borderRadius,Z=void 0===X?$q.borderRadius:X,K=e.borderWidth,J=void 0===K?$q.borderWidth:K,Q=e.borderColor,ee=e.annotations,te=void 0===ee?$q.annotations:ee,ne=e.legendLabel,re=e.tooltipLabel,ie=e.valueFormat,oe=e.isInteractive,ae=void 0===oe?$q.isInteractive:oe,le=e.tooltip,se=void 0===le?$q.tooltip:le,ce=e.onClick,ue=e.onMouseEnter,de=e.onMouseLeave,fe=e.legends,he=e.pixelRatio,pe=void 0===he?$q.pixelRatio:he,ge=e.role,ve=e.forwardedRef,me=e.enableTotals,be=void 0===me?$q.enableTotals:me,ye=e.totalsOffset,_e=void 0===ye?$q.totalsOffset:ye,we=C(null),xe=eT(),ke=MD(a,l,o),Ce=ke.margin,Se=ke.innerWidth,Me=ke.innerHeight,Ae=ke.outerWidth,Te=ke.outerHeight,Le=fY({indexBy:r,label:W,tooltipLabel:re,valueFormat:ie,colors:G,colorBy:Y,borderColor:Q,labelTextColor:q,groupMode:s,layout:c,data:n,keys:i,margin:Ce,width:Se,height:Me,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:j,labelSkipWidth:U,labelSkipHeight:$,legends:fe,legendLabel:ne,totalsOffset:_e}),Ee=Le.bars,Oe=Le.barsWithValue,Re=Le.xScale,Pe=Le.yScale,ze=Le.getLabel,De=Le.getTooltipLabel,Ne=Le.getBorderColor,Ie=Le.getLabelColor,Be=Le.shouldRenderBarLabel,Fe=Le.legendsWithData,je=Le.barTotals,We=Le.getColor,He=mT(),Ue=He.showTooltipFromEvent,Ve=He.hideTooltip,$e=z$({annotations:P$({data:Ee,annotations:te,getPosition:function(e){return{x:e.x,y:e.y}},getDimensions:function(e){var t=e.width,n=e.height;return{width:t,height:n,size:Math.max(t,n)}}})}),qe=A((function(){return{borderRadius:Z,borderWidth:J,isInteractive:ae,isFocusable:!1,labelSkipWidth:U,labelSkipHeight:$,margin:Ce,width:a,height:l,innerWidth:Se,innerHeight:Me,bars:Ee,legendData:Fe,enableLabel:j,xScale:Re,yScale:Pe,tooltip:se,getTooltipLabel:De,onClick:ce,onMouseEnter:ue,onMouseLeave:de,getColor:We}}),[Z,J,ae,U,$,Ce,a,l,Se,Me,Ee,Fe,j,Re,Pe,se,De,ce,ue,de,We]),Ye=LD(ie),Ge=Zq(c,null!=(t=null==u?void 0:u.reverse)&&t,O,z);x((function(){if(we.current){we.current.width=Ae*pe,we.current.height=Te*pe;var e=we.current.getContext("2d");e.scale(pe,pe),e.fillStyle=xe.background,e.fillRect(0,0,Ae,Te),e.translate(Ce.left,Ce.top),N.forEach((function(t){"grid"===t?"number"==typeof xe.grid.line.strokeWidth&&xe.grid.line.strokeWidth>0&&(e.lineWidth=xe.grid.line.strokeWidth,e.strokeStyle=xe.grid.line.stroke,w&&GB(e,{width:Se,height:Me,scale:Re,axis:"x",values:T}),S&&GB(e,{width:Se,height:Me,scale:Pe,axis:"y",values:L})):"axes"===t?YB(e,{xScale:Re,yScale:Pe,width:Se,height:Me,top:p,right:g,bottom:m,left:y,theme:xe}):"bars"===t?(FD(e,xe.text),Oe.forEach((function(t){B(e,Nq({bar:t,borderColor:Ne(t),borderRadius:Z,borderWidth:J,label:ze(t.data),shouldRenderLabel:Be(t),labelStyle:Nq({},xe.labels.text,{fill:Ie(t)})},Ge(t.width,t.height)))}))):"legends"===t?Fe.forEach((function(t){var n=t[0],r=t[1];$F(e,Nq({},n,{data:r,containerWidth:Se,containerHeight:Me,theme:xe}))})):"annotations"===t?H$(e,{annotations:$e,theme:xe}):"totals"===t&&be?function(e,t,n,r){void 0===r&&(r=$q.layout),FD(e,n.labels.text),e.textBaseline="vertical"===r?"alphabetic":"middle",e.textAlign="vertical"===r?"center":"start",t.forEach((function(t){jD(e,n.labels.text,t.formattedValue,t.x,t.y)}))}(e,je,xe,c):"function"==typeof t&&t(e,qe)})),e.save()}}),[m,y,g,p,Oe,Z,J,$e,w,S,Ne,ze,Ie,T,L,s,l,Me,Se,qe,N,c,Fe,Ce.left,Ce.top,Te,Ae,pe,B,Re,Pe,Be,xe,a,je,be,Ye,Ge]);var Xe=M((function(e){if(Ee&&we.current){var t=zD(we.current,e),n=t[0],r=t[1],i=bY(Ee,Ce,n,r);void 0!==i?(Ue(R(se,Nq({},i.data,{color:i.color,label:i.label,value:Number(i.data.value)})),e),"mouseenter"===e.type&&(null==ue||ue(i.data,e))):Ve()}}),[Ve,Ce,ue,Ee,Ue,se]),Ze=M((function(e){if(Ee&&we.current){Ve();var t=zD(we.current,e),n=t[0],r=t[1],i=bY(Ee,Ce,n,r);i&&(null==de||de(i.data,e))}}),[Ve,Ce,de,Ee]),Ke=M((function(e){if(Ee&&we.current){var t=zD(we.current,e),n=t[0],r=t[1],i=bY(Ee,Ce,n,r);void 0!==i&&(null==ce||ce(Nq({},i.data,{color:i.color}),e))}}),[Ce,ce,Ee]);return ln("canvas",{ref:BD(we,ve),width:Ae*pe,height:Te*pe,style:{width:Ae,height:Te,cursor:ae?"auto":"normal"},onMouseEnter:ae?Xe:void 0,onMouseMove:ae?Xe:void 0,onMouseLeave:ae?Ze:void 0,onClick:ae?Ke:void 0,role:ge})},_Y=S((function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=Iq(e,mY);return ln(Dz,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:ln(yY,Nq({},o,{isInteractive:n,forwardedRef:t}))})})),wY=["defaultWidth","defaultHeight","onResize","debounceResize"],xY=S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Iq(e,wY);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(vY,Nq({},a,{width:n,height:r,ref:t}))}})})),kY=["defaultWidth","defaultHeight","onResize","debounceResize"];S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Iq(e,kY);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(_Y,Nq({},a,{width:n,height:r,ref:t}))}})}));var CY="styles_legends__LAO35";const SY=e=>{const{data:t,onLegendClick:n}=e;return ln("div",{className:CY,children:t.map((e=>ln(i$,{legend:e,onClick:n},e.id)))})},MY=({value:e,indexBy:t,legend:n,formatIndexBy:r=(e,t)=>e[t]?.toString()??"",formatLegendValue:i=e=>(e.value??0).toString()??"",allowZeroValues:o=!1})=>{const a=o?n:n.filter((t=>t$(e[t.id])&&0!==Number(e[t.id])));return ln(qV,{label:r(e,t),children:a.map((t=>ln(i$,{mode:"menu",legend:{...t,value:i({...t,value:e[t.id]})}},t.id)))})},AY=e=>{const{background:t,grid:n}=eT();return ln("g",{children:[ln("line",{opacity:"1",x1:"0",x2:e.innerWidth,y1:e.innerHeight,y2:e.innerHeight,stroke:t,strokeWidth:"1"}),ln("line",{opacity:"1",x1:"0",x2:e.innerWidth,y1:e.innerHeight,y2:e.innerHeight,stroke:n.line.stroke,strokeWidth:"1"})]})},TY=l(null),LY=e=>{const{children:t}=e,[n,r]=c(void 0);return ln(TY.Provider,{value:[n,r],children:t})},EY=e=>{const t=s(null),[n,r]=c(!1),[i,o]=c(null),a=s(null),l=s((()=>{})),u=d((async(n,i)=>{if(!t.current)return;if(a.current===n)return;const s=()=>{if(t.current)return Wr(n,t.current,{middleware:[jr(),Br(6),Fr({padding:5})],strategy:"fixed",placement:e}).then((({x:e,y:n,strategy:r})=>{t.current&&(t.current.style.position=r,t.current.style.pointerEvents="none",t.current.style.left=`${e}px`,t.current.style.top=`${n}px`)}))};await s(),a.current=n,r(!0),o(i),l.current=Ir(n,t.current,s)}),[e]),f=d((e=>{a.current===e&&(l.current(),a.current=null,r(!1),o(null))}),[]);return{tooltipRef:t,isVisible:n,handleShowTooltip:u,handleHideTooltip:f,data:i}},OY={s:16,m:24,l:32},RY=(e,t)=>Math.min(e,OY[t]),PY=e=>{const{isInteractive:t,isFocusable:r,innerHeight:i,innerWidth:o,tooltip:a,indexBy:l,layout:s="vertical",bars:c,hasValueFn:u=t=>Object.entries(t).filter((([t])=>t!==e.indexBy)).reduce(((e,[,t])=>e+zp.toNumber(t??0)),0)>0}=e,d="horizontal"===s,{handleShowTooltip:f,isVisible:h,handleHideTooltip:p,tooltipRef:g,data:v}=EY(d?"bottom":"left"),{animate:m,config:b}=Rz(),{opacity:y}=tx({opacity:h?1:0,config:{...b,duration:75},immediate:!m});if(!t)return null;const _=Math.max(...c.map((e=>e.data.index+1))),w=c.slice(0,_);if(w.length<=0)return null;const[x,k]=w;if(!x)return null;const C=k?.x?k.x-x.x:x.width,S=C-x.width,M=k?.y?x.y-k.y:x.height,A=M-x.height;return ln(DV.g,{"data-testid":"hover-layer",children:[w.map(((e,n)=>{const a=e.x-S/2,s=e.y-A/2;return u(e.data.data)?ln(zY,{x:d?0:a,y:d?s:0,width:d?o:C,height:d?M:i,value:e.data.data,indexBy:l,isInteractive:t,isFocusable:r,onTooltipShow:f,onTooltipHide:p},n):null})),mi(ln(DV.div,{ref:g,style:{display:y?"block":"none",opacity:y},children:h&&v&&n(a,{value:v})}),document.body)]})},zY=({x:e,y:t,width:n,height:r,value:i,isInteractive:o=!0,isFocusable:a=!0,indexBy:l,onTooltipShow:s,onTooltipHide:c})=>{const[u,h]=(()=>{const e=f(TY);if(!e)throw new Error("useBarChartState must be used within a BarChartStateProvider");return e})(),{animate:p,config:g}=Rz(),v=i[l],m=u===String(v),{fill:b}=tx({from:{fill:"#ffffff00"},to:{fill:"var(--bg-control-flat-medium)"},config:{...g,duration:150},reverse:!m,immediate:!p}),y=d((e=>{s(e.target,i)}),[s,i]),_=d((e=>{s(e.target,i),h(String(v))}),[s,i,h,v]),w=d((e=>{c(e.target),h(void 0)}),[c,h]),x=d((e=>{s(e.target,i),h(String(v))}),[s,i,h,v]),k=d((e=>{c(e.target),h(void 0)}),[c,h]);return ln(DV.rect,{x:e,y:t,"data-testid":"hover-rect",width:n,height:r,fill:b,onMouseMove:o?y:void 0,onMouseEnter:o?_:void 0,onMouseLeave:o?w:void 0,onFocus:o&&a?x:void 0,onBlur:o&&a?k:void 0})},DY=l(null),NY=()=>{const e=f(DY);if(!e)throw new Error("useBarContext must be used within a BarContext");return e},IY=e=>{const{bars:t,indexBy:n,layout:r="vertical",barSize:i,groupMode:o="stacked"}=e,a=h((()=>(e=>{const{bars:t,indexBy:n,layout:r,groupMode:i}=e,o=new Map;for(const e of t){const t=e.data.data[n];o.has(t)||o.set(t,{id:t,bars:[],x:1/0,y:1/0,width:0,height:0});const a=o.get(t);a.bars.push(e),a.x=Math.min(a.x,e.x),a.y=Math.min(a.y,e.y);let l=a.width+e.width,s=a.height+e.height;"vertical"===r&&(l=Math.max(a.width,e.width),"grouped"===i&&(s=Math.max(a.height,e.height))),"horizontal"===r&&(s=Math.max(a.height,e.height),"grouped"===i&&(l=Math.max(a.width,e.width))),a.width=l,a.height=s}return Array.from(o.values())})({bars:t,indexBy:n,layout:r,groupMode:o})),[t,n,r,o]),l=Math.min(...a.map((e=>e.y))),s=Math.min(...a.map((e=>e.x)));return ln(DY.Provider,{value:{barSize:i,layout:r,groupMode:o},children:ln(DV.g,{"data-testid":"bars",pointerEvents:"none",children:a.map((e=>ln(BY,{group:e,offsetY:l,offsetX:s},e.id)))})})},BY=e=>{const{group:t}=e,{barSize:n,layout:r}=NY(),{animate:i,config:o}=Rz(),a=p(),l="horizontal"===r,s=RY(t.height,n),c=RY(t.width,n),u=t.width-c,d=t.height-s,f=l?t.x:t.x+u/2,g=l?t.y+d/2:t.y,v=l?t.width:c,m=l?s:t.height,b=(y=l?s:c)<=4?0:y<=OY.s/3?1:y<=OY.s/2?1.5:y<OY.s?2:y>=OY.s&&y<OY.m?4:y>=OY.m?6:0;var y;const{transform:_}=tx({transform:`translate(${f}, ${g})`,config:o,immediate:!i}),w=h((()=>{const e=t.bars.filter((e=>e.width>0&&e.height>0));return"horizontal"===r?e.sort(((e,t)=>e.x-t.x)):e.sort(((e,t)=>e.y-t.y))}),[t.bars,r]),x="horizontal"===r?v<2*b:m<2*b;return ln(DV.g,{clipPath:x?void 0:`url(#clip-${a})`,transform:_,"data-testid":"group","data-id":t.id,children:[!x&&ln("defs",{children:ln("clipPath",{id:`clip-${a}`,children:ln(DV.rect,{x:0,y:0,width:v,height:m,rx:b,ry:b})})}),w.map(((e,t)=>ln(FY,{id:e.data.id,x:l?e.x-f:0,y:l?0:e.y-g,width:l?e.width:v,height:l?m:e.height,fill:e.color,isFirst:0===t,isLast:t===w.length-1},e.data.id)))]})},FY=e=>{const{isFirst:t,isLast:n,id:r,...i}=e,{layout:o}=NY(),{animate:a,config:l}=Rz(),s="horizontal"===o?i.width:i.height,c=!t&&s>2,u=!n&&s>2;let d=i.width,f=i.height,h=i.x,p=i.y;"horizontal"===o&&(c&&u&&(h+=.5,d-=.5),u&&(d-=.5)),"vertical"===o&&(c&&(p+=.5,f-=.5),u&&(f-=.5));const g=tx({x:h,y:p,width:d,height:f,config:l,immediate:!a});return ln(DV.rect,{...g,fill:i.fill,"data-testid":"bar","data-id":r})};function jY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function WY(e,t,n,r){for(var i=0,o=0,a=e.length;o<a;o++){var l=e[o],s=+t(l,o,e),c=+n(l,o,e);null!=s&&isFinite(s)&&null!=c&&isFinite(c)&&r(s,c,i++)}}const HY=function(){var e,t=function(e){return e[0]},n=function(e){return e[1]};function r(r){var i=0,o=0,a=0,l=0,s=0,c=e?+e[0]:1/0,u=e?+e[1]:-1/0;WY(r,t,n,(function(t,n){++i,o+=(t-o)/i,a+=(n-a)/i,l+=(t*n-l)/i,s+=(t*t-s)/i,e||(t<c&&(c=t),t>u&&(u=t))}));var d=function(e,t,n,r){var i=r-e*e,o=Math.abs(i)<1e-24?0:(n-e*t)/i;return[t-o*e,o]}(o,a,l,s),f=jY(d,2),h=f[0],p=f[1],g=function(e){return p*e+h},v=[[c,g(c)],[u,g(u)]];return v.a=p,v.b=h,v.predict=g,v.rSquared=function(e,t,n,r,i){var o=0,a=0;return WY(e,t,n,(function(e,t){var n=t-i(e),l=t-r;o+=n*n,a+=l*l})),1-o/a}(r,t,n,a,g),v}return r.domain=function(t){return arguments.length?(e=t,r):e},r.x=function(e){return arguments.length?(t=e,r):t},r.y=function(e){return arguments.length?(n=e,r):n},r}().x((e=>e.x)).y((e=>e.y)),UY=Bu().x((e=>e[0])).y((e=>e[1])),VY=e=>{const{legend:t,indexBy:n,bars:r,innerHeight:i,innerWidth:o,formatValue:a=e=>zp.toNumber(e)}=e,l=h((()=>t.filter((e=>"point"===e.type)).map((e=>e.id))),[t]),s=p(),c=h((()=>t.filter((e=>"point"===e.type)).reduce(((e,t)=>(e[t.id]=t.color,e)),{})),[t]),u=h((()=>(e=>{const t=Math.max(...e.map((e=>e.data.index+1)));return e.slice(0,t)})(r)),[r]),d=h((()=>kB(l.map((e=>({id:e,data:u.map((t=>{const r=a(zp.toNumber(t.data.data[e]??0),e);return void 0===r?null:{x:zp.toNumber(t.data.data[n]??0),y:r}})).filter((e=>null!==e))}))),{type:"linear"},{type:"linear",nice:!0,min:0,max:100},o,i)),[l,u,n,a,o,i]),f=h((()=>l.map((e=>{if(u.length<2)return null;const t=c[e]??"",n=u.map((t=>{const n=a(zp.toNumber(t.data.data[e]??0),e);return void 0===n?null:{x:zp.toNumber(t.x+t.width/2),y:zp.toNumber(d.yScale(n)??0),id:t.key,value:n}})).filter((e=>null!==e));if(u.length===n.length)return{trendKey:e,color:t,points:n};if(n.length<2)return null;const r=HY(n),i=u.map((t=>{const n=a(zp.toNumber(t.data.data[e]??0),e),i=zp.toNumber(t.x+t.width/2);let o=r.predict(i);return void 0!==n&&(o=zp.toNumber(d.yScale(n)??0)),{x:i,y:o,id:t.key,value:n}}));return{trendKey:e,color:t,points:i}})).filter((e=>null!==e))),[l,u,a,d,c]);if(0===l.length)return null;if(0===f.length)return null;return ln(DV.g,{"data-testid":"trend-lines-layer",pointerEvents:"none",clipPath:`url(#${s})`,children:[ln("defs",{children:ln("clipPath",{id:s,children:ln("rect",{x:-5,y:-5,width:o+5,height:i+5})})}),f.map((({trendKey:e,points:t,color:n})=>ln(DV.g,{"data-testid":"trend-line-group","data-trend-key":e,children:[ln($Y,{points:t,color:n},e),t.filter((e=>void 0!==e.value&&e.value>=0&&e.value<=100)).map((({x:e,y:t,id:r})=>ln(qY,{x:e,y:t,color:n},r)))]},e)))]})},$Y=e=>{const{points:t,color:n}=e,{animate:r,config:i}=Rz(),o=h((()=>0===t.length||t.length<2?[]:HY(t)),[t]),{d:a}=tx({d:UY(o)??void 0,config:i,immediate:!r});return 0===t.length||t.length<2||0===o.length?null:ln(DV.path,{d:a,"data-testid":"trend-line",fill:"none",stroke:n,strokeWidth:2,strokeLinecap:"round",pointerEvents:"none",strokeDasharray:"4"})},qY=e=>{const{x:t,y:n,color:r}=e,{animate:i,config:o}=Rz(),{cx:a,cy:l}=tx({cx:t,cy:n,config:o,immediate:!i});return ln(DV.circle,{"data-testid":"trend-line-point",cx:a,cy:l,r:3,strokeWidth:2,fill:"white",stroke:r,pointerEvents:"none"})},YY=({data:e,layout:t="vertical",indexBy:n,keys:r,stacked:i,position:o,formatLeftTick:a,formatBottomTick:l})=>{if("horizontal"===t){const t=6,r=e.map((e=>l(e[n],e).toString().length));return Math.max(...r)*t+8}const s=Math.floor(Math.max(...e.map((e=>r.map((t=>zp.toNumber(e[t]??0))).reduce(((e,t)=>e+t),0))))),c=a(s).toString().length+1;return 8+8*c+10*Math.max(Math.floor((c-1)/3),0)+1};var GY="styles_container__nVJhv",XY="styles_barContainer__DTIpd";const ZY=e=>{const{data:t,legend:n,indexBy:r,renderBottomTick:i,onBarClick:o,padding:a=.5,formatLegendValue:l,formatIndexBy:s,hasValueFn:c,currentLocale:u="en-US",formatBottomTick:d=e=>e,formatLeftTick:f=e=>n$(e,u),bottomTickRotation:p=0,noLegend:g=!1,minValue:v,maxValue:m,groupMode:b="stacked",bottomTickSize:y=12,markers:_=[],colors:w,leftAxisTickValues:x,layout:k="vertical",formatTrendValue:C}=e,S=h((()=>new Map(n.map((e=>[e.id,e])))),[n]),M=h((()=>n.filter((e=>"point"!==e.type&&"tree"!==e.type)).map((e=>e.id))),[n]),A=h((()=>((e,t)=>e.every((e=>Object.keys(e).filter((e=>e!==t)).every((t=>0===e[t])))))(t,r)),[t,r]),T=h((()=>t.length>=8?"s":t.length>=6?"m":"l"),[t]),L="horizontal"===k;return ln("div",{className:GY,children:[ln("div",{className:XY,children:ln(LY,{children:ln(xY,{data:t,theme:_V,groupMode:b,layout:k,defaultHeight:275,keys:M,indexBy:r,margin:{top:10,right:20,bottom:p>0?60:40,left:YY({data:t,layout:k,keys:M,indexBy:r,stacked:!0,position:"left",formatLeftTick:f,formatBottomTick:d})},padding:a,innerPadding:0,valueScale:{type:"linear",nice:!0,min:v,max:m},indexScale:{type:"band",round:!0},layers:["grid","axes",AY,e=>ln(IY,{...e,indexBy:r,layout:k,legend:n,barSize:T,groupMode:b}),e=>ln(VY,{...e,legend:n,indexBy:r,formatValue:C}),"markers",e=>ln(PY,{...e,hasValueFn:c,indexBy:r,layout:k,tooltip:({value:e})=>ln(MY,{allowZeroValues:!0,value:e,indexBy:r,legend:n,formatLegendValue:l,formatIndexBy:s})})],markers:_,colors:"function"==typeof w?w:e=>S.get(e.id)?.color??"var(--bg-base-secondary)",enableLabel:!1,enableTotals:!1,axisTop:null,axisRight:null,axisBottom:{tickSize:0,tickPadding:5,tickRotation:p,truncateTickAt:0,renderTick:i,style:{ticks:{text:{fontSize:y}}},format:L?f:e=>d(e,t.find((t=>t[r]===e))),tickValues:t.length>30?t.filter(((e,t)=>!(t%2))).map((e=>e[r])):void 0},axisLeft:{tickSize:0,tickPadding:8,tickRotation:0,truncateTickAt:0,format:L?d?e=>d(e,t.find((t=>t[r]===e))):void 0:f,tickValues:x},animate:!mV,motionConfig:vV,onClick:o})})}),!A&&!g&&ln(SY,{data:n})]})},KY=(e,t)=>e>=t,JY=e=>e>=91?"bottom-right":"top-right",QY=e=>{const{title:t,data:n,i18n:r,keys:i,threshold:o=90}=e,a=h((()=>zp.take(n,15).map((({id:e,stabilityRate:t})=>({id:e,stabilityRate:t,[e]:t})))),[n]),l=r("legend.stabilityRate"),s=(e=>e>=100?100:e<=0?0:e)(o),c=h((()=>a.map((({id:e,stabilityRate:t})=>({id:e,label:l,color:KY(t,s)?"var(--bg-support-castor-heavy)":"var(--bg-support-capella-heavy)",value:t,[e]:t})))),[a,l,s]),u=0===a.length;return ln(xv,u?{title:t,children:ln(Jh,{title:r("no-results"),icon:sn.lineChartsBarChartSquare})}:{title:t,children:ln(ZY,{markers:[{axis:"y",value:o,legend:`${o}%`,textStyle:{fill:_V.markers?.text?.fill,fontSize:_V.markers?.text?.fontSize,fontWeight:_V.markers?.text?.fontWeight},lineStyle:{stroke:_V.markers?.lineColor,strokeWidth:_V.markers?.lineStrokeWidth},legendPosition:JY(s),legendOffsetY:10,legendOffsetX:7}],groupMode:"stacked",data:a,legend:c,indexBy:"id",hasValueFn:()=>!0,formatIndexBy:e=>i[e.id],formatBottomTick:(e,t)=>zp.truncate(i[t.id],{length:15}),bottomTickSize:a.length>4?10:12,formatLegendValue:({value:e})=>{if(void 0!==e)return`${e}%`},noLegend:!0,formatLeftTick:e=>`${e}%`,maxValue:100,leftAxisTickValues:[0,10,20,30,40,50,60,70,80,90,100],bottomTickRotation:45,colors:e=>((e,t)=>{if(e>=t)return"var(--bg-support-castor-heavy)";const n=t>20?t-5:void 0;return n&&e>=n?"var(--bg-support-atlas-heavy)":"var(--bg-support-capella-heavy)"})(e.data.stabilityRate,s)})})},eG=e=>e.startsWith("new:"),tG=e=>e.startsWith("removed:"),nG=e=>{const{title:t,data:n,i18n:r,statuses:i}=e,o=n.find((e=>"current"===e.id)),a=h((()=>{const e=[];for(const t of i)e.push(`new:${t}`);for(const t of i)e.push(`removed:${t}`);return e}),[i]),l=h((()=>[...a.map((e=>{const t=e.replace(":",""),n=e.replace("new:","").replace("removed:","");return{id:e,label:r(`status.${t}`),color:CW(n),value:eG(e)?1:-1}})),{id:"trend",label:r("legend.trend"),color:"var(--bg-support-betelgeuse-medium)",type:"point"}]),[a,r]),s=Math.ceil(1.01*Math.max(...n.map((e=>{const t=Math.abs(a.filter((e=>tG(e))).reduce(((t,n)=>t+(e[n]??0)),0)),n=Math.abs(a.filter((e=>eG(e))).reduce(((t,n)=>t+(e[n]??0)),0));return Math.max(n,t)})))),c=h((()=>n.map((e=>{const t=2*s,n=((e,t)=>t.reduce(((t,n)=>(eG(n)&&(t[n]=e[n]??0),tG(n)&&(t[n]=-(e[n]??0)),t)),{}))(e,a),r=Math.abs(a.filter((e=>tG(e))).reduce(((e,t)=>e+(n[t]??0)),0)),i=Math.abs(a.filter((e=>eG(e))).reduce(((e,t)=>e+(n[t]??0)),0)),o=SW({positiveValue:i,negativeValue:r,absTotal:t,noValuePercentage:-1});return{id:e.id,timestamp:e.timestamp,...n,trend:o}}))),[n,a,s]),u=c.every((e=>a.every((t=>0===e[t])))),d=c.filter((e=>"current"!==e.id)).every((e=>a.every((t=>0===e[t]))));return!o||u?ln(xv,{title:t,children:ln(Jh,{title:r("no-results"),icon:sn.lineChartsBarChartSquare})}):1===n.length&&o||d?ln(xv,{title:t,children:ln(Jh,{title:r("no-history"),icon:sn.lineChartsBarChartSquare})}):ln(xv,{title:t,children:ln(ZY,{groupMode:"stacked",data:c,legend:l,indexBy:"id",hasValueFn:()=>!0,formatIndexBy:e=>"current"===e.id?r("tooltips.current"):r("tooltips.history",{timestamp:e?.timestamp}),formatBottomTick:e=>{if("current"===e)return r("ticks.current");const t=c.find((t=>t.id===e));return t?r("ticks.history",{timestamp:t?.timestamp}):""},bottomTickRotation:45,formatLegendValue:({value:e,id:t})=>"trend"===t?"":e?n$(Math.abs(Number(e))):"-",noLegend:!0,formatLeftTick:e=>{const t=Math.abs(Number(e));return Number.isInteger(t)?n$(Math.abs(Number(e))):""},minValue:-s,maxValue:s,formatTrendValue:e=>{if(-1!==e)return e}})})},rG=e=>"skipped"===e||"unknown"===e,iG=e=>"failed"===e||"broken"===e,oG=(e,t)=>t.reduce(((t,n)=>(rG(n)&&(t[n]=e[n]??0),iG(n)&&(t[n]=-(e[n]??0)),t)),{}),aG=e=>{const{title:t,data:n,i18n:r,statuses:i}=e,o=n.find((e=>"current"===e.id)),a=h((()=>i.map((e=>({id:e,label:r(`status.${e}`),color:CW(e),value:rG(e)?1:-1})))),[i,r]),l=h((()=>n.map((e=>({id:e.id,timestamp:e.timestamp,...oG(e,i)})))),[n,i]),s=l.every((e=>i.every((t=>0===e[t])))),c=l.filter((e=>"current"!==e.id)).every((e=>i.every((t=>0===e[t]))));if(!o||s)return ln(xv,{title:t,children:ln(Jh,{title:r("no-results"),icon:sn.lineChartsBarChartSquare})});if(1===n.length&&o||c)return ln(xv,{title:t,children:ln(Jh,{title:r("no-history"),icon:sn.lineChartsBarChartSquare})});const u=Math.max(...l.map((e=>{const t=Math.abs(i.filter((e=>iG(e))).reduce(((t,n)=>t+(e[n]??0)),0)),n=Math.abs(i.filter((e=>rG(e))).reduce(((t,n)=>t+(e[n]??0)),0));return Math.max(t,n)}))),d=Math.ceil(1.01*u);return ln(xv,{title:t,children:ln(ZY,{groupMode:"stacked",layout:"horizontal",data:l,legend:a,indexBy:"id",hasValueFn:()=>!0,formatIndexBy:e=>"current"===e.id?r("tooltips.current"):r("tooltips.history",{timestamp:e?.timestamp}),formatBottomTick:e=>{if("current"===e)return zp.truncate(r("ticks.current"),{length:15});const t=l.find((t=>t.id===e));return t?zp.truncate(r("ticks.history",{timestamp:t?.timestamp}),{length:15}):""},bottomTickSize:10,formatLegendValue:({value:e})=>e?n$(Math.abs(Number(e))):"-",noLegend:!0,formatLeftTick:e=>{const t=Math.abs(Number(e));return Number.isInteger(t)?n$(Math.abs(Number(e))):""},minValue:-d,maxValue:d})})};function lG(){return lG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lG.apply(null,arguments)}function sG(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var cG={layers:["separators","parts","labels","annotations"],direction:"vertical",interpolation:"smooth",spacing:0,shapeBlending:.66,colors:{scheme:"nivo"},size:void 0,fillOpacity:1,borderWidth:6,borderColor:{from:"color"},borderOpacity:.66,enableLabel:!0,labelColor:{theme:"background"},enableBeforeSeparators:!0,beforeSeparatorLength:0,beforeSeparatorOffset:0,enableAfterSeparators:!0,afterSeparatorLength:0,afterSeparatorOffset:0,annotations:[],isInteractive:!0,currentPartSizeExtension:0,role:"img",animate:Lz,motionConfig:Ez},uG=function(e){var t=e.part;return ln(lT,{id:t.data.label,value:t.formattedValue,color:t.color,enableChip:!0})},dG=function(e,t){return A((function(){return function(e,t){if("function"==typeof e)return e;if(Array.isArray(e)){var n=Ga(e);return function(e){return Number(n(String(e.id)))}}if(I(e)){if(function(e){return void 0!==e.datum}(e))return function(t){var n=B(t,e.datum);return"number"==typeof n?n:0};throw new Error("Invalid size, when using an object, you should specify a 'datum' property")}return function(e){return t(e.value)}}(e,t)}),[e,t])},fG=function(e){var t,n,r=e.data,i=e.width,o=e.height,a=e.direction,l=void 0===a?cG.direction:a,s=e.interpolation,c=void 0===s?cG.interpolation:s,u=e.spacing,d=void 0===u?cG.spacing:u,f=e.shapeBlending,h=void 0===f?cG.shapeBlending:f,p=e.valueFormat,g=e.colors,v=void 0===g?cG.colors:g,m=e.size,b=void 0===m?cG.size:m,y=e.fillOpacity,_=void 0===y?cG.fillOpacity:y,x=e.borderWidth,k=void 0===x?cG.borderWidth:x,C=e.borderColor,S=void 0===C?cG.borderColor:C,M=e.borderOpacity,T=void 0===M?cG.borderOpacity:M,L=e.labelColor,E=void 0===L?cG.labelColor:L,O=e.enableBeforeSeparators,P=void 0===O?cG.enableBeforeSeparators:O,z=e.beforeSeparatorLength,D=void 0===z?cG.beforeSeparatorLength:z,N=e.beforeSeparatorOffset,I=void 0===N?cG.beforeSeparatorOffset:N,B=e.enableAfterSeparators,F=void 0===B?cG.enableAfterSeparators:B,j=e.afterSeparatorLength,W=void 0===j?cG.afterSeparatorLength:j,H=e.afterSeparatorOffset,U=void 0===H?cG.afterSeparatorOffset:H,V=e.isInteractive,$=void 0===V?cG.isInteractive:V,q=e.currentPartSizeExtension,Y=void 0===q?cG.currentPartSizeExtension:q,G=e.currentBorderWidth,X=e.onMouseEnter,Z=e.onMouseMove,K=e.onMouseLeave,J=e.onClick,Q=e.tooltip,ee=eT(),te=bF(v,"id"),ne=cF(S,ee),re=cF(E,ee),ie=LD(p),oe=A((function(){return function(e,t){var n=Fu();return"vertical"===t?n.curve("smooth"===e?qu:Du).x0((function(e){return e.x0})).x1((function(e){return e.x1})).y((function(e){return e.y})):n.curve("smooth"===e?qu:Du).y0((function(e){return e.y0})).y1((function(e){return e.y1})).x((function(e){return e.x})),[n,Bu().defined((function(e){return null!==e})).x((function(e){return e.x})).y((function(e){return e.y})).curve("smooth"===e?qu:Du)]}(c,l)}),[c,l]),ae=oe[0],le=oe[1],se=P?D+I:0,ce=F?W+U:0;"vertical"===l?(t=i-se-ce,n=o):(t=i,n=o-se-ce);var ue=A((function(){return function(e){var t,n,r=e.data,i=e.direction,o=e.width,a=e.height,l=e.spacing;"vertical"===i?(t=a,n=o):(t=o,n=a);var s=(t-l*(r.length-1))/r.length,c=function(e){return l*e+s*e};c.bandwidth=s;var u=r.map((function(e){return e.value}));return[c,Cl().domain([0,Math.max.apply(Math,u)]).range([0,n])]}({data:r,direction:l,width:t,height:n,spacing:d})}),[r,l,t,n,d]),de=ue[0],fe=ue[1],he=dG(b,fe),pe=w(null),ge=pe[0],ve=pe[1],me=A((function(){var e=r.map((function(e,r){var i,o,a,s,c=e.id===ge,u=he(e);"vertical"===l?(i=u,o=de.bandwidth,s=se+.5*(t-i),a=de(r)):(i=de.bandwidth,o=u,s=de(r),a=se+.5*(n-o));var d=s+i,f=s+.5*i,h=a+o,p=a+.5*o,g={data:e,width:i,height:o,color:te(e),fillOpacity:_,borderWidth:c&&void 0!==G?G:k,borderOpacity:T,formattedValue:ie(e.value),isCurrent:c,x:f,x0:s,x1:d,y:p,y0:a,y1:h,borderColor:"",labelColor:"",points:[],areaPoints:[],borderPoints:[]};return g.borderColor=ne(g),g.labelColor=re(g),g})),i=h/2;return e.forEach((function(t,n){var r=e[n+1];if("vertical"===l){t.points.push({x:t.x0,y:t.y0}),t.points.push({x:t.x1,y:t.y0}),r?(t.points.push({x:r.x1,y:t.y1}),t.points.push({x:r.x0,y:t.y1})):(t.points.push({x:t.points[1].x,y:t.y1}),t.points.push({x:t.points[0].x,y:t.y1})),t.isCurrent&&(t.points[0].x-=Y,t.points[1].x+=Y,t.points[2].x+=Y,t.points[3].x-=Y),t.areaPoints=[{x:0,x0:t.points[0].x,x1:t.points[1].x,y:t.y0,y0:0,y1:0}],t.areaPoints.push(lG({},t.areaPoints[0],{y:t.y0+t.height*i}));var o={x:0,x0:t.points[3].x,x1:t.points[2].x,y:t.y1,y0:0,y1:0};t.areaPoints.push(lG({},o,{y:t.y1-t.height*i})),t.areaPoints.push(o),[0,1,2,3].map((function(e){t.borderPoints.push({x:t.areaPoints[e].x0,y:t.areaPoints[e].y})})),t.borderPoints.push(null),[3,2,1,0].map((function(e){t.borderPoints.push({x:t.areaPoints[e].x1,y:t.areaPoints[e].y})}))}else{t.points.push({x:t.x0,y:t.y0}),r?(t.points.push({x:t.x1,y:r.y0}),t.points.push({x:t.x1,y:r.y1})):(t.points.push({x:t.x1,y:t.y0}),t.points.push({x:t.x1,y:t.y1})),t.points.push({x:t.x0,y:t.y1}),t.isCurrent&&(t.points[0].y-=Y,t.points[1].y-=Y,t.points[2].y+=Y,t.points[3].y+=Y),t.areaPoints=[{x:t.x0,x0:0,x1:0,y:0,y0:t.points[0].y,y1:t.points[3].y}],t.areaPoints.push(lG({},t.areaPoints[0],{x:t.x0+t.width*i}));var a={x:t.x1,x0:0,x1:0,y:0,y0:t.points[1].y,y1:t.points[2].y};t.areaPoints.push(lG({},a,{x:t.x1-t.width*i})),t.areaPoints.push(a),[0,1,2,3].map((function(e){t.borderPoints.push({x:t.areaPoints[e].x,y:t.areaPoints[e].y0})})),t.borderPoints.push(null),[3,2,1,0].map((function(e){t.borderPoints.push({x:t.areaPoints[e].x,y:t.areaPoints[e].y1})}))}})),e}),[r,l,de,t,n,se,h,te,ie,ne,re,ge,T,k,G,Y,_,he]),be=mT(),ye=be.showTooltipFromEvent,_e=be.hideTooltip,we=A((function(){return function(e){var t=e.parts,n=e.setCurrentPartId,r=e.isInteractive,i=e.onMouseEnter,o=e.onMouseLeave,a=e.onMouseMove,l=e.onClick,s=e.showTooltipFromEvent,c=e.hideTooltip,u=e.tooltip,d=void 0===u?uG:u;return r?t.map((function(e){return lG({},e,{onMouseEnter:function(t){n(e.data.id),s(R(d,{part:e}),t),null==i||i(e,t)},onMouseLeave:function(t){n(null),c(),null==o||o(e,t)},onMouseMove:function(t){s(R(d,{part:e}),t),null==a||a(e,t)},onClick:void 0!==l?function(t){l(e,t)}:void 0})})):t}({parts:me,setCurrentPartId:ve,isInteractive:$,onMouseEnter:X,onMouseLeave:K,onMouseMove:Z,onClick:J,showTooltipFromEvent:ye,hideTooltip:_e,tooltip:Q})}),[me,ve,$,X,K,Z,J,ye,_e,Q]),xe=A((function(){return function(e){var t=e.parts,n=e.direction,r=e.width,i=e.height,o=e.spacing,a=e.enableBeforeSeparators,l=e.beforeSeparatorOffset,s=e.enableAfterSeparators,c=e.afterSeparatorOffset,u=[],d=[],f=t[t.length-1];if("vertical"===n){t.forEach((function(e){var t=e.y0-o/2;a&&u.push({partId:e.data.id,x0:0,x1:e.x0-l,y0:t,y1:t}),s&&d.push({partId:e.data.id,x0:e.x1+c,x1:r,y0:t,y1:t})}));var h=f.y1;a&&u.push(lG({},u[u.length-1],{partId:"none",y0:h,y1:h})),s&&d.push(lG({},d[d.length-1],{partId:"none",y0:h,y1:h}))}else if("horizontal"===n){t.forEach((function(e){var t=e.x0-o/2;u.push({partId:e.data.id,x0:t,x1:t,y0:0,y1:e.y0-l}),d.push({partId:e.data.id,x0:t,x1:t,y0:e.y1+c,y1:i})}));var p=f.x1;u.push(lG({},u[u.length-1],{partId:"none",x0:p,x1:p})),d.push(lG({},d[d.length-1],{partId:"none",x0:p,x1:p}))}return[u,d]}({parts:me,direction:l,width:i,height:o,spacing:d,enableBeforeSeparators:P,beforeSeparatorOffset:I,enableAfterSeparators:F,afterSeparatorOffset:U})}),[me,l,i,o,d,P,I,F,U]),ke=xe[0],Ce=xe[1],Se=A((function(){return{width:i,height:o,parts:we,areaGenerator:ae,borderGenerator:le,beforeSeparators:ke,afterSeparators:Ce,setCurrentPartId:ve}}),[i,o,we,ae,le,ke,Ce,ve]);return{parts:we,areaGenerator:ae,borderGenerator:le,beforeSeparators:ke,afterSeparators:Ce,setCurrentPartId:ve,currentPartId:ge,customLayerProps:Se}},hG=function(e){var t=e.part,n=e.areaGenerator,i=e.borderGenerator,o=Rz(),a=o.animate,l=o.config,s=wD(n(t.areaPoints)),c=wD(i(t.borderPoints)),u=tx({areaColor:t.color,borderWidth:t.borderWidth,borderColor:t.borderColor,config:l,immediate:!a});return ln(r,{children:[t.borderWidth>0&&ln(fC.path,{d:c,stroke:u.borderColor,strokeWidth:u.borderWidth,strokeOpacity:t.borderOpacity,fill:"none"}),ln(fC.path,{d:s,fill:u.areaColor,fillOpacity:t.fillOpacity,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onMouseMove:t.onMouseMove,onClick:t.onClick})]})},pG=function(e){var t=e.parts,n=e.areaGenerator,i=e.borderGenerator;return ln(r,{children:t.map((function(e){return ln(hG,{part:e,areaGenerator:n,borderGenerator:i},e.data.id)}))})},gG=function(e){var t=e.part,n=eT(),r=Rz(),i=r.animate,o=r.config,a=tx({transform:"translate("+t.x+", "+t.y+")",color:t.labelColor,config:o,immediate:!i});return ln(fC.g,{transform:a.transform,children:ln(QD,{textAnchor:"middle",dominantBaseline:"central",style:lG({},n.labels.text,{fill:a.color,pointerEvents:"none"}),children:t.formattedValue})})},vG=function(e){var t=e.parts;return ln(r,{children:t.map((function(e){return ln(gG,{part:e},e.data.id)}))})},mG=function(e){var t=e.separator,n=eT(),r=Rz(),i=r.animate,o=r.config,a=tx({x1:t.x0,x2:t.x1,y1:t.y0,y2:t.y1,config:o,immediate:!i});return ln(fC.line,lG({x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2,fill:"none"},n.grid.line))},bG=function(e){var t=e.beforeSeparators,n=e.afterSeparators;return ln(r,{children:[t.map((function(e){return ln(mG,{separator:e},e.partId)})),n.map((function(e){return ln(mG,{separator:e},e.partId)}))]})},yG=function(e){var t=function(e,t){return P$({data:e,annotations:t,getPosition:function(e){return{x:e.x,y:e.y}},getDimensions:function(e){var t=e.width,n=e.height;return{size:Math.max(t,n),width:t,height:n}}})}(e.parts,e.annotations);return ln(r,{children:t.map((function(e,t){return ln(j$,lG({},e),t)}))})},_G=["isInteractive","animate","motionConfig","theme","renderWrapper"],wG=function(e){var t=e.data,n=e.width,r=e.height,i=e.margin,o=e.direction,a=void 0===o?cG.direction:o,l=e.interpolation,s=void 0===l?cG.interpolation:l,c=e.spacing,u=void 0===c?cG.spacing:c,d=e.shapeBlending,f=void 0===d?cG.shapeBlending:d,h=e.valueFormat,p=e.colors,g=void 0===p?cG.colors:p,v=e.size,m=void 0===v?cG.size:v,b=e.fillOpacity,y=void 0===b?cG.fillOpacity:b,_=e.borderWidth,w=void 0===_?cG.borderWidth:_,x=e.borderColor,k=void 0===x?cG.borderColor:x,C=e.borderOpacity,S=void 0===C?cG.borderOpacity:C,M=e.enableLabel,A=void 0===M?cG.enableLabel:M,T=e.labelColor,L=void 0===T?cG.labelColor:T,E=e.enableBeforeSeparators,O=void 0===E?cG.enableBeforeSeparators:E,P=e.beforeSeparatorLength,D=void 0===P?cG.beforeSeparatorLength:P,N=e.beforeSeparatorOffset,I=void 0===N?cG.beforeSeparatorOffset:N,B=e.enableAfterSeparators,F=void 0===B?cG.enableAfterSeparators:B,j=e.afterSeparatorLength,W=void 0===j?cG.afterSeparatorLength:j,H=e.afterSeparatorOffset,U=void 0===H?cG.afterSeparatorOffset:H,V=e.layers,$=void 0===V?cG.layers:V,q=e.annotations,Y=void 0===q?cG.annotations:q,G=e.isInteractive,X=void 0===G?cG.isInteractive:G,Z=e.currentPartSizeExtension,K=void 0===Z?cG.currentPartSizeExtension:Z,J=e.currentBorderWidth,Q=e.onMouseEnter,ee=e.onMouseMove,te=e.onMouseLeave,ne=e.onClick,re=e.tooltip,ie=e.role,oe=void 0===ie?cG.role:ie,ae=e.ariaLabel,le=e.ariaLabelledBy,se=e.ariaDescribedBy,ce=e.forwardedRef,ue=MD(n,r,i),de=ue.margin,fe=ue.innerWidth,he=ue.innerHeight,pe=ue.outerWidth,ge=ue.outerHeight,ve=fG({data:t,width:fe,height:he,direction:a,interpolation:s,spacing:u,shapeBlending:f,valueFormat:h,colors:g,size:m,fillOpacity:y,borderWidth:w,borderColor:k,borderOpacity:S,labelColor:L,enableBeforeSeparators:O,beforeSeparatorLength:D,beforeSeparatorOffset:I,enableAfterSeparators:F,afterSeparatorLength:W,afterSeparatorOffset:U,isInteractive:X,currentPartSizeExtension:K,currentBorderWidth:J,onMouseEnter:Q,onMouseMove:ee,onMouseLeave:te,onClick:ne,tooltip:re}),me=ve.areaGenerator,be=ve.borderGenerator,ye=ve.parts,_e=ve.beforeSeparators,we=ve.afterSeparators,xe=ve.customLayerProps,ke={separators:null,parts:null,annotations:null,labels:null};return $.includes("separators")&&(ke.separators=ln(bG,{beforeSeparators:_e,afterSeparators:we},"separators")),$.includes("parts")&&(ke.parts=ln(pG,{parts:ye,areaGenerator:me,borderGenerator:be},"parts")),null!=$&&$.includes("annotations")&&(ke.annotations=ln(yG,{parts:ye,annotations:Y},"annotations")),$.includes("labels")&&A&&(ke.labels=ln(vG,{parts:ye},"labels")),ln(vD,{width:pe,height:ge,margin:de,role:oe,ariaLabel:ae,ariaLabelledBy:le,ariaDescribedBy:se,ref:ce,children:$.map((function(e,t){var n;return"function"==typeof e?ln(z,{children:R(e,xe)},t):null!=(n=null==ke?void 0:ke[e])?n:null}))})},xG=S((function(e,t){var n=e.isInteractive,r=void 0===n?cG.isInteractive:n,i=e.animate,o=void 0===i?cG.animate:i,a=e.motionConfig,l=void 0===a?cG.motionConfig:a,s=e.theme,c=e.renderWrapper,u=sG(e,_G);return ln(Dz,{animate:o,isInteractive:r,motionConfig:l,renderWrapper:c,theme:s,children:ln(wG,lG({isInteractive:r},u,{forwardedRef:t}))})})),kG=["defaultWidth","defaultHeight","onResize","debounceResize"],CG=S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=sG(e,kG);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(xG,lG({width:n,height:r},a,{ref:t}))}})}));const SG={background:"var(--bg-base-primary)",axis:{ticks:{text:{fill:"var(--on-text-secondary)"}},legend:{text:{fill:"var(--on-text-primary)"}}},grid:{line:{stroke:"var(--on-border-muted)"}},legends:{text:{fill:"var(--on-text-secondary)"}},tooltip:{container:{background:"var(--bg-base-modal)",color:"var(--on-text-primary)"}},text:{fill:"var(--on-text-primary)"}},MG=e=>{const t=eT(),{animate:n,config:r}=Rz(),i=tx({transform:`translate(10, ${e.y})`,color:e.labelColor,config:r,immediate:!n}),o=[];return o.push(`Layer: ${e.data.layer}`),e.data.value>0?(o.push(`Number of tests: ${e.data.value} (${e.data.percentage}%)`),o.push(`Success rate: ${e.data.successRate}%`)):o.push("No tests"),ln(DV.g,{transform:i.transform,children:ln(QD,{style:{...t.labels.text,pointerEvents:"none"},lineHeight:1.2,children:o.map(((e,t)=>ln(DV.tspan,{x:0,dy:0===t?0:"1.2em",children:e},t)))},e.data.id)})},AG=e=>{const{parts:t}=e;return t.map((e=>ln(MG,{...e},e.data.id)))},TG=e=>{const{data:t,title:n,translations:r,height:i=400,width:o="100%"}=e,a=r["no-results"],l=h((()=>[...t].reverse().map((e=>({id:e.layer,value:e.testCount,label:e.layer,successRate:e.successRate,percentage:e.percentage,layer:e.layer,color:e.testCount>0?"var(--bg-support-aldebaran)":"var(--bg-support-rau)"})))),[t]);return t&&0!==t.length?ln(xv,{title:n,children:ln("div",{role:"img",tabIndex:0,style:{width:o,height:i},children:ln(CG,{data:l,theme:SG,enableLabel:!1,layers:["separators","parts","labels","annotations",AG],interpolation:"linear",spacing:5,shapeBlending:0,borderWidth:0,colors:e=>e.color,labelColor:{theme:"background"},enableAfterSeparators:!1})})}):ln(xv,{title:n,children:ln(cW,{label:a,width:o,height:i,ariaLabel:a})})};function LG(){return LG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LG.apply(null,arguments)}var EG={pointerEvents:"none"},OG=function(e){var t=e.label,n=e.style,r=eT();return ln(fC.g,{transform:n.transform,opacity:n.progress,style:EG,children:ln(QD,{textAnchor:"middle",dominantBaseline:"central",style:LG({},r.labels.text,{fill:n.textColor}),children:t})})},RG=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},PG=function(e,t){return e.filter((function(e){return Math.abs(Kz(e.arc.endAngle-e.arc.startAngle))>=t}))},zG={startAngle:{enter:function(e){return LG({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return LG({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return LG({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return LG({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return LG({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return LG({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return LG({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return LG({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return LG({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return LG({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return LG({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return LG({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return LG({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return LG({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return LG({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return LG({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},DG=function(e,t){return A((function(){var n=zG[e];return{enter:function(e){return LG({progress:0},n.enter(e.arc),t?t.enter(e):{})},update:function(e){return LG({progress:1},n.update(e.arc),t?t.update(e):{})},leave:function(e){return LG({progress:0},n.leave(e.arc),t?t.leave(e):{})}}}),[e,t])},NG=function(e,t){var n=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2}(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return Jz(n,r)},IG=function(e){return function(t,n,r,i){return sx([t,n,r,i],(function(t,n,r,i){var o=NG({startAngle:t,endAngle:n,innerRadius:r,outerRadius:i},e);return"translate("+o.x+","+o.y+")"}))}},BG=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,o=e.radiusOffset,a=e.skipAngle,l=e.skipRadius,s=e.textColor,c=e.component,u=void 0===c?OG:c,d=OD(i),f=eT(),h=cF(s,f),p=A((function(){return n.filter((function(e){var t=Math.abs(Kz(e.arc.endAngle-e.arc.startAngle)),n=Math.abs(e.arc.outerRadius-e.arc.innerRadius);return t>=a&&n>=l}))}),[n,a,l]),g=function(e,t,n,r){void 0===t&&(t=.5),void 0===n&&(n="innerRadius");var i=Rz(),o=i.animate,a=i.config,l=DG(n,r);return{transition:nx(e,{keys:function(e){return e.id},initial:l.update,from:l.enter,enter:l.update,update:l.update,leave:l.leave,config:a,immediate:!o}),interpolate:IG(t)}}(p,o,r),v=g.transition,m=g.interpolate,b=u;return ln("g",{transform:"translate("+t[0]+","+t[1]+")",children:v((function(e,t){return R(b,{key:t.id,datum:t,label:d(t),style:{progress:e.progress,transform:m(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textColor:h(t)}})}))})},FG=function(e,t,n){FD(e,n.labels.text),e.textAlign="center",e.textBaseline="middle",t.forEach((function(t){jD(e,LG({},n.labels.text,{fill:t.textColor}),String(t.label),t.x,t.y)}))},jG=function(e){var t=e.data,n=e.offset,r=e.skipAngle,i=e.label,o=e.textColor,a=OD(i),l=eT(),s=cF(o,l),c=M((function(e){return{label:a(e),textColor:s(e)}}),[a,s]);return function(e){var t=e.data,n=e.offset,r=void 0===n?.5:n,i=e.skipAngle,o=void 0===i?0:i,a=e.computeExtraProps,l=void 0===a?function(){return{}}:a;return A((function(){return PG(t,o).map((function(e){var t=NG(e.arc,r);return LG({},l(e),{x:t.x,y:t.y,data:e})}))}),[t,r,o,l])}({data:t,offset:n,skipAngle:r,computeExtraProps:c})},WG=function(e){var t=e.label,n=e.style,r=eT();return ln(fC.g,{opacity:n.opacity,children:[ln(fC.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),ln(QD,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:LG({},r.labels.text,{fill:n.textColor}),children:t})]})},HG=function(e,t,n,r){var i,o,a=RG(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),l=Jz(a,e.outerRadius+t),s=Jz(a,e.outerRadius+t+n);return a<Math.PI/2||a>1.5*Math.PI?(i="after",o={x:s.x+r,y:s.y}):(i="before",o={x:s.x-r,y:s.y}),{side:i,points:[l,s,o]}},UG=Bu().x((function(e){return e.x})).y((function(e){return e.y})),VG=function(e,t,n,r,i,o,a){return sx([e,t,n,r,i,o,a],(function(e,t,n,r,i,o,a){var l=HG({startAngle:e,endAngle:t,outerRadius:r},i,o,a).points;return UG(l)}))},$G=function(e,t,n,r){return sx([e,t,n,r],(function(e,t,n,r){return function(e){var t=RG(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"}({startAngle:e,endAngle:t})}))},qG=function(e,t,n,r,i,o,a,l){return sx([e,t,n,r,i,o,a,l],(function(e,t,n,r,i,o,a,l){var s=HG({startAngle:e,endAngle:t,outerRadius:r},i,o,a),c=s.points,u=s.side,d=c[2];return"before"===u?d.x-=l:d.x+=l,"translate("+d.x+","+d.y+")"}))},YG=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,o=e.offset,a=e.diagonalLength,l=e.straightLength,s=e.strokeWidth,c=e.textOffset,u=e.textColor,d=e.linkColor,f=e.component,h=void 0===f?WG:f,p=OD(r),g=function(e){var t=e.data,n=e.offset,r=void 0===n?0:n,i=e.diagonalLength,o=e.straightLength,a=e.skipAngle,l=void 0===a?0:a,s=e.textOffset,c=e.linkColor,u=e.textColor,d=Rz(),f=d.animate,h=d.config,p=eT(),g=cF(c,p),v=cF(u,p),m=function(e,t){return A((function(){return PG(e,t)}),[e,t])}(t,l),b=function(e){var t=e.offset,n=e.diagonalLength,r=e.straightLength,i=e.textOffset,o=e.getLinkColor,a=e.getTextColor;return A((function(){return{enter:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:0,straightLength:0,textOffset:i,linkColor:o(e),textColor:a(e),opacity:0}},update:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:n,straightLength:r,textOffset:i,linkColor:o(e),textColor:a(e),opacity:1}},leave:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:t,diagonalLength:0,straightLength:0,textOffset:i,linkColor:o(e),textColor:a(e),opacity:0}}}}),[n,r,i,o,a,t])}({offset:r,diagonalLength:i,straightLength:o,textOffset:s,getLinkColor:g,getTextColor:v});return{transition:nx(m,{keys:function(e){return e.id},initial:b.update,from:b.enter,enter:b.update,update:b.update,leave:b.leave,config:h,immediate:!f}),interpolateLink:VG,interpolateTextAnchor:$G,interpolateTextPosition:qG}}({data:n,skipAngle:i,offset:o,diagonalLength:a,straightLength:l,textOffset:c,linkColor:d,textColor:u}),v=g.transition,m=g.interpolateLink,b=g.interpolateTextAnchor,y=g.interpolateTextPosition,_=h;return ln("g",{transform:"translate("+t[0]+","+t[1]+")",children:v((function(e,t){return R(_,{key:t.id,datum:t,label:p(t),style:LG({},e,{thickness:s,path:m(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength),textAnchor:b(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textPosition:y(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength,e.textOffset)})})}))})},GG=function(e,t,n,r){e.textBaseline="middle",FD(e,n.labels.text),t.forEach((function(t){e.textAlign=Qz.canvas.align[t.textAnchor],jD(e,LG({},n.labels.text,{fill:t.textColor}),String(t.label),t.x,t.y),e.beginPath(),e.strokeStyle=t.linkColor,e.lineWidth=r,t.points.forEach((function(t,n){0===n?e.moveTo(t.x,t.y):e.lineTo(t.x,t.y)})),e.stroke()}))},XG=function(e){var t=e.data,n=e.skipAngle,r=e.offset,i=e.diagonalLength,o=e.straightLength,a=e.textOffset,l=void 0===a?0:a,s=e.label,c=e.linkColor,u=e.textColor,d=OD(s),f=eT(),h=cF(c,f),p=cF(u,f),g=M((function(e){var t,n={x:e.points[2].x,y:e.points[2].y};return"before"===e.side?(n.x-=l,t="end"):(n.x+=l,t="start"),LG({},n,{label:d(e.data),linkColor:h(e.data),textAnchor:t,textColor:p(e.data)})}),[d,h,p,l]);return function(e){var t=e.data,n=e.skipAngle,r=void 0===n?0:n,i=e.offset,o=void 0===i?.5:i,a=e.diagonalLength,l=e.straightLength,s=e.computeExtraProps,c=void 0===s?function(){return{}}:s,u=A((function(){return t.filter((function(e){return Math.abs(Kz(e.arc.endAngle-e.arc.startAngle))>=r})).map((function(e){return LG({},HG(e.arc,o,a,l),{data:e})}))}),[t,r,o,a,l]);return A((function(){return u.map((function(e){return LG({},c(e),e)}))}),[u,c])}({data:t,skipAngle:n,offset:r,diagonalLength:i,straightLength:o,computeExtraProps:g})},ZG=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,l=M((function(e){return null==r?void 0:r(t,e)}),[r,t]),s=M((function(e){return null==i?void 0:i(t,e)}),[i,t]),c=M((function(e){return null==o?void 0:o(t,e)}),[o,t]),u=M((function(e){return null==a?void 0:a(t,e)}),[a,t]);return ln(fC.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?l:void 0,onMouseEnter:i?s:void 0,onMouseMove:o?c:void 0,onMouseLeave:a?u:void 0,"data-testid":"arc."+t.id})},KG=function(e,t,n,r,i){return sx([e,t,n,r],(function(e,t,n,r){return i({startAngle:e,endAngle:t,innerRadius:Math.max(0,n),outerRadius:Math.max(0,r)})}))},JG=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.onClick,l=e.onMouseEnter,s=e.onMouseMove,c=e.onMouseLeave,u=e.transitionMode,d=e.component,f=void 0===d?ZG:d,h=eT(),p=cF(o,h),g=function(e,t,n){void 0===t&&(t="innerRadius");var r=Rz(),i=r.animate,o=r.config,a=DG(t,n);return{transition:nx(e,{keys:function(e){return e.id},initial:a.update,from:a.enter,enter:a.update,update:a.update,leave:a.leave,config:o,immediate:!i}),interpolate:KG}}(n,u,{enter:function(e){return{opacity:0,color:e.color,borderColor:p(e)}},update:function(e){return{opacity:1,color:e.color,borderColor:p(e)}},leave:function(e){return{opacity:0,color:e.color,borderColor:p(e)}}}),v=g.transition,m=g.interpolate,b=f;return ln("g",{transform:"translate("+t[0]+","+t[1]+")",children:v((function(e,t){return R(b,{key:t.id,datum:t,style:LG({},e,{borderWidth:i,path:m(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,r)}),onClick:a,onMouseEnter:l,onMouseMove:s,onMouseLeave:c})}))})},QG=function(e,t,n,r,i,o,a){if(function(e,t,n,r,i,o){var a=RD(i,o,e,t);return a<n&&a>r}(e,t,n,r,o,a)){var l=function(e,t,n,r){var i=Math.atan2(r-t,n-e)-Math.PI/2;return i>0?i:2*Math.PI+i}(o,a,e,t);return i.find((function(e){var t=e.startAngle,n=e.endAngle;return l>=t&&l<n}))}},eX=function(e){var t=void 0===e?{}:e,n=t.cornerRadius,r=void 0===n?0:n,i=t.padAngle,o=void 0===i?0:i;return A((function(){return Ru().innerRadius((function(e){return e.innerRadius})).outerRadius((function(e){return e.outerRadius})).cornerRadius(r).padAngle(o)}),[r,o])};function tX(){return tX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tX.apply(null,arguments)}function nX(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var rX,iX=function(e){var t=e.width,n=e.height,i=e.legends,o=e.data,a=e.toggleSerie;return ln(r,{children:i.map((function(e,r){var i;return ln(UF,tX({},e,{containerWidth:t,containerHeight:n,data:null!=(i=e.data)?i:o,toggleSerie:e.toggleSerie?a:void 0}),r)}))})},oX={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcs","arcLinkLabels","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsSkipRadius:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return ln(lT,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:"undefined"!=typeof window&&null!=(rX=window.devicePixelRatio)?rX:1},aX=["points"],lX=function(e){var t=e.data,n=e.id,r=void 0===n?oX.id:n,i=e.value,o=void 0===i?oX.value:i,a=e.valueFormat,l=e.colors,s=void 0===l?oX.colors:l,c=OD(r),u=OD(o),d=LD(a),f=bF(s,"id");return A((function(){return t.map((function(e){var t,n=c(e),r=u(e),i={id:n,label:null!=(t=e.label)?t:n,hidden:!1,value:r,formattedValue:d(r),data:e};return tX({},i,{color:f(i)})}))}),[t,c,u,d,f])},sX=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,o=void 0===i?oX.innerRadius:i,a=e.startAngle,l=void 0===a?oX.startAngle:a,s=e.endAngle,c=void 0===s?oX.endAngle:s,u=e.padAngle,d=void 0===u?oX.padAngle:u,f=e.sortByValue,h=void 0===f?oX.sortByValue:f,p=e.cornerRadius,g=void 0===p?oX.cornerRadius:p,v=e.fit,m=void 0===v?oX.fit:v,b=e.activeInnerRadiusOffset,y=void 0===b?oX.activeInnerRadiusOffset:b,_=e.activeOuterRadiusOffset,k=void 0===_?oX.activeOuterRadiusOffset:_,S=e.activeId,T=e.onActiveIdChange,L=e.defaultActiveId,E=e.forwardLegendData,O=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=void 0!==t,o=w(i||void 0===r?null:r),a=o[0],l=o[1];return{activeId:i?t:a,setActiveId:M((function(e){n&&n(e),i||l(e)}),[i,n,l])}}({activeId:S,onActiveIdChange:T,defaultActiveId:L}),R=O.activeId,P=O.setActiveId,z=w([]),D=z[0],N=z[1],I=A((function(){var e,t=Math.min(n,r)/2,i=t*Math.min(o,1),a=n/2,s=r/2;if(m){var u=function(e,t,n,r,i,o){void 0===o&&(o=!0);var a=[],l=Jz(Zz(r),n);a.push([l.x,l.y]);var s=Jz(Zz(i),n);a.push([s.x,s.y]);for(var c=Math.round(Math.min(r,i));c<=Math.round(Math.max(r,i));c++)if(c%90==0){var u=Jz(Zz(c),n);a.push([u.x,u.y])}a=a.map((function(n){var r=n[0],i=n[1];return[e+r,t+i]})),o&&a.push([e,t]);var d=a.map((function(e){return e[0]})),f=a.map((function(e){return e[1]})),h=Math.min.apply(Math,d),p=Math.max.apply(Math,d),g=Math.min.apply(Math,f);return{points:a,x:h,y:g,width:p-h,height:Math.max.apply(Math,f)-g}}(a,s,t,l-90,c-90),d=u.points,f=nX(u,aX),h=Math.min(n/f.width,r/f.height),p={width:f.width*h,height:f.height*h};p.x=(n-p.width)/2,p.y=(r-p.height)/2,a=(a-f.x)/f.width*f.width*h+p.x,s=(s-f.y)/f.height*f.height*h+p.y,e={box:f,ratio:h,points:d},t*=h,i*=h}return{centerX:a,centerY:s,radius:t,innerRadius:i,debug:e}}),[n,r,o,l,c,m]),B=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,i=e.innerRadius,o=e.outerRadius,a=e.padAngle,l=e.sortByValue,s=e.activeId,c=e.activeInnerRadiusOffset,u=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,h=A((function(){var e=Hu().value((function(e){return e.value})).startAngle(Zz(n)).endAngle(Zz(r)).padAngle(Zz(a));return l||e.sortValues(null),e}),[n,r,a,l]),p=A((function(){var e=t.filter((function(e){return!d.includes(e.id)}));return{dataWithArc:h(e).map((function(e){var t=Math.abs(e.endAngle-e.startAngle);return tX({},e.data,{arc:{index:e.index,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:s===e.data.id?i-c:i,outerRadius:s===e.data.id?o+u:o,thickness:o-i,padAngle:e.padAngle,angle:t,angleDeg:Kz(t)}})})),legendData:t.map((function(e){return{id:e.id,label:e.label,color:e.color,hidden:d.includes(e.id),data:e}}))}}),[h,t,d,s,i,c,o,u]),g=p.legendData,v=C(f);return x((function(){"function"==typeof v.current&&v.current(g)}),[v,g]),p}({data:t,startAngle:l,endAngle:c,innerRadius:I.innerRadius,outerRadius:I.radius,padAngle:d,sortByValue:h,activeId:R,activeInnerRadiusOffset:y,activeOuterRadiusOffset:k,hiddenIds:D,forwardLegendData:E}),F=M((function(e){N((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(t,[e])}))}),[]);return tX({arcGenerator:eX({cornerRadius:g,padAngle:Zz(d)}),activeId:R,setActiveId:P,toggleSerie:F},B,I)},cX=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.isInteractive,l=e.onClick,s=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,h=e.transitionMode,p=mT(),g=p.showTooltipFromEvent,v=p.hideTooltip,m=A((function(){if(a)return function(e,t){null==l||l(e,t)}}),[a,l]),b=A((function(){if(a)return function(e,t){g(R(f,{datum:e}),t),d(e.id),null==s||s(e,t)}}),[a,g,d,s,f]),y=A((function(){if(a)return function(e,t){g(R(f,{datum:e}),t),null==c||c(e,t)}}),[a,g,c,f]),_=A((function(){if(a)return function(e,t){v(),d(null),null==u||u(e,t)}}),[a,v,d,u]);return ln(JG,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:o,transitionMode:h,onClick:m,onMouseEnter:b,onMouseMove:y,onMouseLeave:_})},uX=["isInteractive","animate","motionConfig","theme","renderWrapper"],dX=function(e){var t=e.data,n=e.id,r=void 0===n?oX.id:n,i=e.value,o=void 0===i?oX.value:i,a=e.valueFormat,l=e.sortByValue,s=void 0===l?oX.sortByValue:l,c=e.layers,u=void 0===c?oX.layers:c,d=e.startAngle,f=void 0===d?oX.startAngle:d,h=e.endAngle,p=void 0===h?oX.endAngle:h,g=e.padAngle,v=void 0===g?oX.padAngle:g,m=e.fit,b=void 0===m?oX.fit:m,y=e.innerRadius,_=void 0===y?oX.innerRadius:y,w=e.cornerRadius,x=void 0===w?oX.cornerRadius:w,k=e.activeInnerRadiusOffset,C=void 0===k?oX.activeInnerRadiusOffset:k,S=e.activeOuterRadiusOffset,M=void 0===S?oX.activeOuterRadiusOffset:S,T=e.width,L=e.height,E=e.margin,O=e.colors,P=void 0===O?oX.colors:O,D=e.borderWidth,N=void 0===D?oX.borderWidth:D,I=e.borderColor,B=void 0===I?oX.borderColor:I,F=e.enableArcLabels,j=void 0===F?oX.enableArcLabels:F,W=e.arcLabel,H=void 0===W?oX.arcLabel:W,U=e.arcLabelsSkipAngle,V=void 0===U?oX.arcLabelsSkipAngle:U,$=e.arcLabelsSkipRadius,q=void 0===$?oX.arcLabelsSkipRadius:$,Y=e.arcLabelsTextColor,G=void 0===Y?oX.arcLabelsTextColor:Y,X=e.arcLabelsRadiusOffset,Z=void 0===X?oX.arcLabelsRadiusOffset:X,K=e.arcLabelsComponent,J=e.enableArcLinkLabels,Q=void 0===J?oX.enableArcLinkLabels:J,ee=e.arcLinkLabel,te=void 0===ee?oX.arcLinkLabel:ee,ne=e.arcLinkLabelsSkipAngle,re=void 0===ne?oX.arcLinkLabelsSkipAngle:ne,ie=e.arcLinkLabelsOffset,oe=void 0===ie?oX.arcLinkLabelsOffset:ie,ae=e.arcLinkLabelsDiagonalLength,le=void 0===ae?oX.arcLinkLabelsDiagonalLength:ae,se=e.arcLinkLabelsStraightLength,ce=void 0===se?oX.arcLinkLabelsStraightLength:se,ue=e.arcLinkLabelsThickness,de=void 0===ue?oX.arcLinkLabelsThickness:ue,fe=e.arcLinkLabelsTextOffset,he=void 0===fe?oX.arcLinkLabelsTextOffset:fe,pe=e.arcLinkLabelsTextColor,ge=void 0===pe?oX.arcLinkLabelsTextColor:pe,ve=e.arcLinkLabelsColor,me=void 0===ve?oX.arcLinkLabelsColor:ve,be=e.arcLinkLabelComponent,ye=e.defs,_e=void 0===ye?oX.defs:ye,we=e.fill,xe=void 0===we?oX.fill:we,ke=e.isInteractive,Ce=void 0===ke?oX.isInteractive:ke,Se=e.onClick,Me=e.onMouseEnter,Ae=e.onMouseMove,Te=e.onMouseLeave,Le=e.tooltip,Ee=void 0===Le?oX.tooltip:Le,Oe=e.activeId,Re=e.onActiveIdChange,Pe=e.defaultActiveId,ze=e.transitionMode,De=void 0===ze?oX.transitionMode:ze,Ne=e.legends,Ie=void 0===Ne?oX.legends:Ne,Be=e.forwardLegendData,Fe=e.role,je=void 0===Fe?oX.role:Fe,We=e.forwardedRef,He=MD(T,L,E),Ue=He.outerWidth,Ve=He.outerHeight,$e=He.margin,qe=He.innerWidth,Ye=He.innerHeight,Ge=lX({data:t,id:r,value:o,valueFormat:a,colors:P}),Xe=sX({data:Ge,width:qe,height:Ye,fit:b,innerRadius:_,startAngle:f,endAngle:p,padAngle:v,sortByValue:s,cornerRadius:x,activeInnerRadiusOffset:C,activeOuterRadiusOffset:M,activeId:Oe,onActiveIdChange:Re,defaultActiveId:Pe,forwardLegendData:Be}),Ze=Xe.dataWithArc,Ke=Xe.legendData,Je=Xe.arcGenerator,Qe=Xe.centerX,et=Xe.centerY,tt=Xe.radius,nt=Xe.innerRadius,rt=Xe.setActiveId,it=Xe.toggleSerie,ot=ID(_e,Ze,xe),at={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(at.arcs=ln(cX,{center:[Qe,et],data:Ze,arcGenerator:Je,borderWidth:N,borderColor:B,isInteractive:Ce,onClick:Se,onMouseEnter:Me,onMouseMove:Ae,onMouseLeave:Te,setActiveId:rt,tooltip:Ee,transitionMode:De},"arcs")),Q&&u.includes("arcLinkLabels")&&(at.arcLinkLabels=ln(YG,{center:[Qe,et],data:Ze,label:te,skipAngle:re,offset:oe,diagonalLength:le,straightLength:ce,strokeWidth:de,textOffset:he,textColor:ge,linkColor:me,component:be},"arcLinkLabels")),j&&u.includes("arcLabels")&&(at.arcLabels=ln(BG,{center:[Qe,et],data:Ze,label:H,radiusOffset:Z,skipAngle:V,skipRadius:q,textColor:G,transitionMode:De,component:K},"arcLabels")),Ie.length>0&&u.includes("legends")&&(at.legends=ln(iX,{width:qe,height:Ye,data:Ke,legends:Ie,toggleSerie:it},"legends"));var lt=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,o=e.radius,a=e.innerRadius;return A((function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:o,innerRadius:a}}),[t,n,r,i,o,a])}({dataWithArc:Ze,arcGenerator:Je,centerX:Qe,centerY:et,radius:tt,innerRadius:nt});return ln(vD,{width:Ue,height:Ve,margin:$e,defs:ot,role:je,ref:We,children:u.map((function(e,t){return void 0!==at[e]?at[e]:"function"==typeof e?ln(z,{children:R(e,lt)},t):null}))})},fX=S((function(e,t){var n=e.isInteractive,r=void 0===n?oX.isInteractive:n,i=e.animate,o=void 0===i?oX.animate:i,a=e.motionConfig,l=void 0===a?oX.motionConfig:a,s=e.theme,c=e.renderWrapper,u=nX(e,uX);return ln(Dz,{animate:o,isInteractive:r,motionConfig:l,renderWrapper:c,theme:s,children:ln(dX,tX({isInteractive:r},u,{forwardedRef:t}))})})),hX=["defaultWidth","defaultHeight","onResize","debounceResize"];S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=nX(e,hX);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(fX,tX({width:n,height:r},a,{ref:t}))}})}));var pX=["isInteractive","theme","renderWrapper"],gX=function(e){var t=e.data,n=e.id,r=void 0===n?oX.id:n,i=e.value,o=void 0===i?oX.value:i,a=e.valueFormat,l=e.sortByValue,s=void 0===l?oX.sortByValue:l,c=e.startAngle,u=void 0===c?oX.startAngle:c,d=e.endAngle,f=void 0===d?oX.endAngle:d,h=e.padAngle,p=void 0===h?oX.padAngle:h,g=e.fit,v=void 0===g?oX.fit:g,m=e.innerRadius,b=void 0===m?oX.innerRadius:m,y=e.cornerRadius,_=void 0===y?oX.cornerRadius:y,w=e.activeInnerRadiusOffset,k=void 0===w?oX.activeInnerRadiusOffset:w,S=e.activeOuterRadiusOffset,M=void 0===S?oX.activeOuterRadiusOffset:S,T=e.width,L=e.height,E=e.margin,O=e.pixelRatio,P=void 0===O?oX.pixelRatio:O,z=e.colors,D=void 0===z?oX.colors:z,N=e.borderWidth,I=void 0===N?oX.borderWidth:N,B=e.borderColor,F=void 0===B?oX.borderColor:B,j=e.enableArcLabels,W=void 0===j?oX.enableArcLabels:j,H=e.arcLabel,U=void 0===H?oX.arcLabel:H,V=e.arcLabelsSkipAngle,$=void 0===V?oX.arcLabelsSkipAngle:V,q=e.arcLabelsTextColor,Y=void 0===q?oX.arcLabelsTextColor:q,G=e.arcLabelsRadiusOffset,X=void 0===G?oX.arcLabelsRadiusOffset:G,Z=e.enableArcLinkLabels,K=void 0===Z?oX.enableArcLinkLabels:Z,J=e.arcLinkLabel,Q=void 0===J?oX.arcLinkLabel:J,ee=e.arcLinkLabelsSkipAngle,te=void 0===ee?oX.arcLinkLabelsSkipAngle:ee,ne=e.arcLinkLabelsOffset,re=void 0===ne?oX.arcLinkLabelsOffset:ne,ie=e.arcLinkLabelsDiagonalLength,oe=void 0===ie?oX.arcLinkLabelsDiagonalLength:ie,ae=e.arcLinkLabelsStraightLength,le=void 0===ae?oX.arcLinkLabelsStraightLength:ae,se=e.arcLinkLabelsThickness,ce=void 0===se?oX.arcLinkLabelsThickness:se,ue=e.arcLinkLabelsTextOffset,de=void 0===ue?oX.arcLinkLabelsTextOffset:ue,fe=e.arcLinkLabelsTextColor,he=void 0===fe?oX.arcLinkLabelsTextColor:fe,pe=e.arcLinkLabelsColor,ge=void 0===pe?oX.arcLinkLabelsColor:pe,ve=e.isInteractive,me=void 0===ve?oX.isInteractive:ve,be=e.onClick,ye=e.onMouseMove,_e=e.tooltip,we=void 0===_e?oX.tooltip:_e,xe=e.activeId,ke=e.onActiveIdChange,Ce=e.defaultActiveId,Se=e.legends,Me=void 0===Se?oX.legends:Se,Ae=e.forwardLegendData,Te=e.role,Le=e.forwardedRef,Ee=C(null),Oe=eT(),Re=MD(T,L,E),Pe=Re.margin,ze=Re.innerWidth,De=Re.innerHeight,Ne=Re.outerWidth,Ie=Re.outerHeight,Be=lX({data:t,id:r,value:o,valueFormat:a,colors:D}),Fe=sX({data:Be,width:ze,height:De,fit:v,innerRadius:b,startAngle:u,endAngle:f,padAngle:p,sortByValue:s,cornerRadius:_,activeInnerRadiusOffset:k,activeOuterRadiusOffset:M,activeId:xe,onActiveIdChange:ke,defaultActiveId:Ce,forwardLegendData:Ae}),je=Fe.dataWithArc,We=Fe.arcGenerator,He=Fe.centerX,Ue=Fe.centerY,Ve=Fe.radius,$e=Fe.innerRadius,qe=Fe.setActiveId,Ye=cF(F,Oe),Ge=jG({data:je,label:U,skipAngle:$,offset:X,textColor:Y}),Xe=XG({data:je,skipAngle:te,offset:re,diagonalLength:oe,straightLength:le,label:Q,linkColor:ge,textOffset:de,textColor:he});x((function(){if(Ee.current){Ee.current.width=Ne*P,Ee.current.height=Ie*P;var e=Ee.current.getContext("2d");e.scale(P,P),e.fillStyle=Oe.background,e.fillRect(0,0,Ne,Ie),e.save(),e.translate(Pe.left,Pe.top),We.context(e),e.save(),e.translate(He,Ue),je.forEach((function(t){e.beginPath(),e.fillStyle=t.color,e.strokeStyle=Ye(t),e.lineWidth=I,We(t.arc),e.fill(),I>0&&e.stroke()})),!0===K&&GG(e,Xe,Oe,ce),!0===W&&FG(e,Ge,Oe),e.restore(),Me.forEach((function(t){$F(e,tX({},t,{data:je,containerWidth:ze,containerHeight:De,theme:Oe}))}))}}),[Ee,ze,De,Ne,Ie,Pe.top,Pe.left,P,He,Ue,We,je,I,Ye,W,Ge,K,Xe,ce,Me,Oe]);var Ze=A((function(){return je.map((function(e){return tX({id:e.id},e.arc)}))}),[je]),Ke=function(e){if(!Ee.current)return null;var t=zD(Ee.current,e),n=t[0],r=t[1],i=QG(Pe.left+He,Pe.top+Ue,Ve,$e,Ze,n,r);return i?je.find((function(e){return e.id===i.id})):null},Je=mT(),Qe=Je.showTooltipFromEvent,et=Je.hideTooltip,tt=function(e){var t=Ke(e);t?(null==ye||ye(t,e),qe(t.id),Qe(R(we,{datum:t}),e)):(qe(null),et())};return ln("canvas",{ref:BD(Ee,Le),width:Ne*P,height:Ie*P,style:{width:Ne,height:Ie,cursor:me?"auto":"normal"},onMouseEnter:me?tt:void 0,onMouseMove:me?tt:void 0,onMouseLeave:me?function(){et()}:void 0,onClick:me?function(e){if(be){var t=Ke(e);t&&be(t,e)}}:void 0,role:Te})},vX=S((function(e,t){var n=e.isInteractive,r=void 0===n?oX.isInteractive:n,i=e.theme,o=e.renderWrapper,a=nX(e,pX);return ln(Dz,{isInteractive:r,renderWrapper:o,theme:i,children:ln(gX,tX({isInteractive:r},a,{forwardedRef:t}))})})),mX=["defaultWidth","defaultHeight","onResize","debounceResize"];S((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=nX(e,mX);return ln(Bz,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(e){var n=e.width,r=e.height;return ln(vX,tX({width:n,height:r},a,{ref:t}))}})}));const bX=300,yX={id:"__EMPTY_ARC_DO_NOT_COUNT_IT_USED_FOR_VISUALS__",value:1,color:"var(--bg-control-secondary)",label:""},_X=["new","flaky","retries"];var wX="styles_centeredMetricTitle__-DWkh",xX="styles_centeredMetricDescription__7Q2Vf",kX="styles_pie__EtJEe",CX="styles_wrapper__UrP78",SX="styles_additionalStats__Yztrs";const MX=e=>e>1e3?"999+":e.toString(),AX=e=>{switch(e){case"new":return sn.testNew;case"flaky":return sn.lineIconBomb2;case"retries":return sn.lineGeneralZap}},TX=e=>{const{stats:t,i18n:n,layout:r}=e;return ln("div",{className:SX,"data-layout":r,children:_X.map((e=>{const r=t[e]??0;return ln($b,{style:"primary",tooltip:n(`tests.${e}`,{count:r}),icon:AX(e),children:r?MX(r):"-"},e)}))})},LX=[{limit:1e3,suffix:"K"},{limit:1e6,suffix:"M"},{limit:1e9,suffix:"B"},{limit:1e12,suffix:"T"},{limit:1e15,suffix:"Q"}],EX=({width:e,text:t,symbolWidth:n})=>{const r=e-2*n,i=Math.floor(r/n),o=parseInt(t,10),a=o.toLocaleString("ru");if(a.length<=i)return a;let l=o,s="";for(let e=0;e<LX.length;e++){const{limit:t,suffix:n}=LX[e];if(l=o/t,Math.round(l)<1e3||e===LX.length-1){s=n;break}}let c=l.toFixed(2).replace(/\.?0+$/,"").replace(/(\.\d)0$/,"$1");(c+s).length>i&&(c=Math.round(+c).toString());return`${(+c).toLocaleString("ru")}${s}`},OX=({metric:e,metricType:t,layerProps:n,isEmpty:r,i18n:i,total:o})=>"total"===t||r?ln(RX,{layer:n,i18n:i,total:o}):"percent"===t?ln(PX,{layer:n,metric:e,i18n:i,total:o}):null,RX=({layer:e,i18n:t,total:n})=>{const{radius:r,centerX:i,centerY:o}=e;return ln(zX,{radius:r,centerX:i,centerY:o,title:n,description:t("total")})},PX=({layer:e,metric:t,i18n:n,total:r})=>{const{dataWithArc:i,radius:o,centerX:a,centerY:l}=e,s=i.find((e=>e.data.id===t)),c=((e=0,t=0)=>{if(0===e)return"0";if(0===t)return"0";const n=e/t*100;return Number.isInteger(n)?n.toString():n>99.99&&n<100?"99.99":n.toFixed(2).replace(/\.?0+$/,"")})(s?.data.value,r);return ln(zX,{radius:o,centerX:a,centerY:l,title:n("percentage",{percentage:c}),description:n("of",{total:r})})},zX=({radius:e,centerX:t,centerY:n,title:i,description:o})=>{const a=i.toString(),l=a.includes("%"),s=Math.round(Math.min(e/1.8,36)),c=Math.round(Math.min(e/3.3,16)),u=Math.min(e/2.5,2*c),d=h((()=>l?(({width:e,text:t,symbolWidth:n})=>{const r=e-2*n,i=t.length*n,[o]=t.split("%"),[a,l="00"]=o.split(".");if("00"===l)return`${a}%`;if(r>i)return t;const s=a.length*n,c=n,u=Math.floor((r-s-c)/n)-1;if(1===u){const e=(+`${a}.${l}`).toFixed(1),[t,n]=e.toString().split(".");return"0"===n?`${t}%`:`${e}%`}return 2===u?`${a}.${l}%`:`${(+`${a}.${l}`).toFixed(0)}%`})({width:e,text:a,symbolWidth:s/3}):EX({width:e,text:a,symbolWidth:s/3})),[l,e,a,s]),f=h((()=>(({width:e,text:t,symbolWidth:n})=>{const r=t.match(/\d+/g)||[],i=t.replace(/\d+/g,"").length,o=r.map((t=>EX({width:e-i*n,text:t,symbolWidth:n})));let a=t;return r.forEach(((e,t)=>{a=a.replace(e,o[t])})),a})({width:e,text:o.toString(),symbolWidth:c/3})),[o,c,e]);return ln(r,{children:[ln("text",{x:t,y:n-u/3,textAnchor:"middle",dominantBaseline:"central",style:{fontSize:s},className:wX,children:d}),ln("text",{x:t,y:n+u/1.5,textAnchor:"middle",dominantBaseline:"central",style:{fontSize:c},className:xX,children:f})]})},DX=e=>e,NX=e=>e>=bX?284:e-16,IX={top:8,right:8,bottom:8,left:8},BX={datum:"data.color"},FX={theme:"background"},jX=e=>{const{title:t,data:n,statuses:r,metric:i="passed",i18n:o=DX}=e,a=h((()=>(e=>{const{data:t,i18n:n,statuses:r=Fi}=e,i=[];for(const e of r)e in t&&i.push({color:CW(e),id:e,value:t[e]??0,label:n(`status.${e}`)});return i})({data:n,i18n:o,statuses:r})),[n,o,r]),l=n.total,s=0===l,c=(u=n,_X.some((e=>e in u)));var u;const d=c?362:bX;return ln(xv,{title:t??"",centerContent:!0,children:ln(Dp,{children:e=>ln("div",{className:CX,"data-layout":e>d?"vertical":"horizontal",children:[ln("div",{className:kX,children:ln(fX,{width:NX(c?e-62:e),height:NX(c?e-62:e),data:s?[yX]:a,margin:IX,colors:BX,innerRadius:.75,padAngle:1,cornerRadius:4,activeOuterRadiusOffset:4,borderWidth:0,borderColor:FX,enableArcLabels:!1,enableArcLinkLabels:!1,isInteractive:!s,sortByValue:!0,transitionMode:"startAngle",layers:["arcs",e=>ln(OX,{layerProps:e,i18n:o,metricType:"percent",metric:i,isEmpty:s,total:l})],animate:!mV,motionConfig:vV,tooltip:WX,theme:_V})}),c&&ln(TX,{stats:n,i18n:o,layout:e>d?"vertical":"horizontal"})]})})})},WX=e=>{const{datum:t}=e,n=h((()=>({id:t.id.toString(),color:t.color,label:t.label,value:t.value})),[t]);return ln(qV,{children:ln(i$,{mode:"default",legend:n})})},HX=e=>{const{title:t,data:n,statuses:r=Fi,i18n:i}=e,o=n.find((e=>"current"===e.id)),a=r.map((e=>({id:e,label:i(`status.${e}`),color:CW(e)}))),l=n.map((e=>({id:e.id,name:e.name,timestamp:e.timestamp,...e.statistic}))),s=l.every((e=>0===e.total)),c=l.filter((e=>"current"!==e.id)).every((e=>0===e.total)),u=l.reduce(((e,t)=>Math.max(e,t.total)),0),d=1.01*u;return s||!o||0===o.statistic.total?ln(xv,{title:t,children:ln(Jh,{title:i("no-results"),icon:sn.lineChartsBarChartSquare})}):1===n.length&&o||c?ln(xv,{title:t,children:ln(Jh,{title:i("no-history"),icon:sn.lineChartsBarChartSquare})}):ln(xv,{title:t,children:ln(ZY,{groupMode:"stacked",data:l,legend:a,indexBy:"id",hasValueFn:e=>e.total>0,formatIndexBy:e=>"current"===e.id?i("tooltips.current"):i("tooltips.history",{timestamp:e?.timestamp}),formatBottomTick:e=>{if("current"===e)return i("ticks.current");const t=l.find((t=>t.id===e));return t?i("ticks.history",{timestamp:t?.timestamp}):""},bottomTickRotation:45,formatLeftTick:e=>{const t=Math.abs(Number(e));return Number.isInteger(t)?n$(Math.abs(Number(e))):""},formatLegendValue:({value:e})=>e?n$(e):"-",noLegend:!0,maxValue:d})})},UX=e=>{switch(e){case"new":return"var(--on-support-sirius)";case"fixed":return"var(--on-support-castor)";case"regressed":return"var(--on-support-capella)";case"malfunctioned":return"var(--on-support-atlas)"}},VX=["fixed","regressed","malfunctioned"],$X=e=>{const{title:t,data:n,i18n:r}=e,i=Math.ceil(1.01*Math.max(...n.map((e=>e.fixed+e.regressed+e.malfunctioned)))),o=n.map((e=>{const t=2*i,n=e.regressed+e.malfunctioned,r=SW({positiveValue:e.fixed,negativeValue:n,absTotal:t,noValuePercentage:-1});return{id:e.id,timestamp:e.timestamp,prevItemTimestamp:e.prevItemTimestamp,fixed:e.fixed,regressed:0===e.regressed?0:-e.regressed,malfunctioned:0===e.malfunctioned?0:-e.malfunctioned,trend:r}})),a=n.find((e=>"current"===e.id)),l=h((()=>[...VX.map((e=>({id:e,label:r(`transitions.${e}`),color:UX(e),value:"fixed"===e?1:-1}))),{id:"trend",label:r("legend.trend"),color:"var(--bg-support-betelgeuse-medium)",type:"point"}]),[r]),s=o.every((e=>0===e.fixed&&0===e.regressed&&0===e.malfunctioned)),c=o.filter((e=>"current"!==e.id)).every((e=>0===e.fixed&&0===e.regressed&&0===e.malfunctioned));if(!a||s)return ln(xv,{title:t,children:ln(Jh,{title:r("no-results"),icon:sn.lineChartsBarChartSquare})});if(1===n.length&&a||c)return ln(xv,{title:t,children:ln(Jh,{title:r("no-history"),icon:sn.lineChartsBarChartSquare})});return ln(xv,{title:t,children:ln(ZY,{groupMode:"stacked",data:o,legend:l,indexBy:"id",hasValueFn:()=>!0,formatIndexBy:e=>"current"===e.id?r("tooltips.current"):r("tooltips.history",{timestamp:e?.timestamp}),formatBottomTick:e=>{if("current"===e)return r("ticks.current");const t=o.find((t=>t.id===e));return t?r("ticks.history",{timestamp:t?.timestamp}):""},bottomTickRotation:45,formatTrendValue:e=>{if(-1!==e)return e},formatLegendValue:({value:e,id:t})=>"trend"===t?"":e?n$(Math.abs(Number(e))):"-",noLegend:!0,formatLeftTick:e=>{const t=Math.abs(Number(e));return Number.isInteger(t)?n$(Math.abs(Number(e))):""},minValue:-i,maxValue:i})})},qX=["var(--bg-support-aldebaran)","var(--bg-support-betelgeuse)","var(--bg-support-sirius)","var(--bg-support-mirach)","var(--bg-support-rigel)","var(--bg-support-gliese)","var(--bg-support-rau)","var(--bg-support-aldebaran-heavy)","var(--bg-support-betelgeuse-heavy)","var(--bg-support-sirius-heavy)","var(--bg-support-mirach-heavy)","var(--bg-support-gliese-heavy)","var(--bg-support-rigel-heavy)","var(--bg-support-rau-heavy)"],YX=e=>{const{title:t,data:n,i18n:r,groupBy:i,keys:o}=e,a=h((()=>(e=>e.reduce(((e,t,n)=>{let r=qX[n];return r||(r=qX[n-qX.length]),e[t]=r,e}),{}))(Object.keys(o))),[o]),l=r("legend.total"),s=h((()=>Object.entries(o).map((([e,t])=>({id:e,label:"none"===i?l:t,color:a[e]})))),[o,a,i,l]),c=h((()=>n.map((e=>({id:`${e.from}-${e.to}`,...e})))),[n]),u=1.01*h((()=>{if(0===c.length)return 0;const e=Object.keys(o);return Math.max(...c.map((t=>{let n=0;for(const r of e)n+=t[r]??0;return n})))}),[c,o]),d=0===c.length;return ln(xv,d?{title:t,children:ln(Jh,{title:r("no-results"),icon:sn.lineChartsBarChartSquare})}:{title:t,children:ln(ZY,{groupMode:"stacked",data:c,legend:s,indexBy:"id",hasValueFn:e=>Object.keys(o).some((t=>e[t]>0)),formatIndexBy:e=>r("tooltips.durationRange",{from:e.from??0,to:e.to}),formatBottomTick:(e,t)=>r("ticks.durationRange",{from:t.from??0,to:t.to}),bottomTickSize:c.length>4?10:12,formatLegendValue:({value:e})=>{if(e&&0!==Number(e))return r("legend.value",{value:e})},noLegend:!0,formatLeftTick:e=>{const t=Math.abs(Number(e));return Number.isInteger(t)?n$(Math.abs(Number(e))):""},maxValue:u})})},GX=e=>{const{title:t,data:n,i18n:r,statuses:i}=e,o=h((()=>i.map((e=>({id:e,label:r(`status.${e}`),color:CW(e)})))),[i,r]),a=n,l=a.every((e=>i.every((t=>0===e[t]))));return ln(xv,l?{title:t,children:ln(Jh,{title:r("no-results"),icon:sn.lineChartsBarChartSquare})}:{title:t,children:ln(ZY,{groupMode:"stacked",data:a,legend:o,indexBy:"id",hasValueFn:()=>!0,formatIndexBy:e=>r(`severity.${e.id}`),formatBottomTick:e=>r(`severity.${e}`),formatLegendValue:({value:e})=>e?n$(Math.abs(Number(e))):"-",noLegend:!0,formatLeftTick:e=>{const t=Math.abs(Number(e));return Number.isInteger(t)?n$(Math.abs(Number(e))):""}})})},XX=e=>0===e.duration&&0===e.sequentialDuration,ZX=e=>{const{title:t,data:n,i18n:r}=e,i=n,o=h((()=>[{id:"sequentialDuration",label:r("durations.sequential"),color:"var(--bg-support-rigel)",type:"default"},{id:"duration",label:r("durations.duration"),color:"var(--bg-support-betelgeuse)",type:"default"},{id:"speedup",label:r("durations.speedup"),color:"var(--bg-support-betelgeuse-medium)",type:"point"}]),[r]),a=n.find((e=>"current"===e.id));return i.every((e=>XX(e)))||!a||XX(a)?ln(xv,{title:t,children:ln(Jh,{title:r("no-results"),icon:sn.lineChartsBarChartSquare})}):ln(xv,{title:t,children:ln(ZY,{groupMode:"grouped",data:i,legend:o,indexBy:"id",hasValueFn:()=>!0,formatIndexBy:e=>"current"===e.id?r("tooltips.current"):r("tooltips.history",{timestamp:e?.timestamp}),formatBottomTick:e=>{if("current"===e)return r("ticks.current");const t=i.find((t=>t.id===e));return t?r("ticks.history",{timestamp:t?.timestamp}):""},bottomTickRotation:45,formatLeftTick:e=>r("legend.duration",{duration:e}),formatLegendValue:({id:e,value:t})=>"duration"===e||"sequentialDuration"===e?r("legend.duration",{duration:t}):"speedup"===e?r("legend.speedup",{speedup:t}):void 0,formatTrendValue:(e,t)=>"speedup"===t?e<=1?0:100*(1-1/e):e,noLegend:!0})})};var KX="http://www.w3.org/1999/xhtml",JX={svg:"http://www.w3.org/2000/svg",xhtml:KX,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function QX(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),JX.hasOwnProperty(t)?{space:JX[t],local:e}:e}function eZ(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===KX&&t.documentElement.namespaceURI===KX?t.createElement(e):t.createElementNS(n,e)}}function tZ(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function nZ(e){var t=QX(e);return(t.local?tZ:eZ)(t)}function rZ(){}function iZ(e){return null==e?rZ:function(){return this.querySelector(e)}}function oZ(){return[]}function aZ(e){return null==e?oZ:function(){return this.querySelectorAll(e)}}function lZ(e){return function(){return function(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}(e.apply(this,arguments))}}function sZ(e){return function(){return this.matches(e)}}function cZ(e){return function(t){return t.matches(e)}}var uZ=Array.prototype.find;function dZ(){return this.firstElementChild}var fZ=Array.prototype.filter;function hZ(){return Array.from(this.children)}function pZ(e){return new Array(e.length)}function gZ(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function vZ(e,t,n,r,i,o){for(var a,l=0,s=t.length,c=o.length;l<c;++l)(a=t[l])?(a.__data__=o[l],r[l]=a):n[l]=new gZ(e,o[l]);for(;l<s;++l)(a=t[l])&&(i[l]=a)}function mZ(e,t,n,r,i,o,a){var l,s,c,u=new Map,d=t.length,f=o.length,h=new Array(d);for(l=0;l<d;++l)(s=t[l])&&(h[l]=c=a.call(s,s.__data__,l,t)+"",u.has(c)?i[l]=s:u.set(c,s));for(l=0;l<f;++l)c=a.call(e,o[l],l,o)+"",(s=u.get(c))?(r[l]=s,s.__data__=o[l],u.delete(c)):n[l]=new gZ(e,o[l]);for(l=0;l<d;++l)(s=t[l])&&u.get(h[l])===s&&(i[l]=s)}function bZ(e){return e.__data__}function yZ(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function _Z(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function wZ(e){return function(){this.removeAttribute(e)}}function xZ(e){return function(){this.removeAttributeNS(e.space,e.local)}}function kZ(e,t){return function(){this.setAttribute(e,t)}}function CZ(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function SZ(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function MZ(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function AZ(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function TZ(e){return function(){this.style.removeProperty(e)}}function LZ(e,t,n){return function(){this.style.setProperty(e,t,n)}}function EZ(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function OZ(e,t){return e.style.getPropertyValue(t)||AZ(e).getComputedStyle(e,null).getPropertyValue(t)}function RZ(e){return function(){delete this[e]}}function PZ(e,t){return function(){this[e]=t}}function zZ(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function DZ(e){return e.trim().split(/^|\s+/)}function NZ(e){return e.classList||new IZ(e)}function IZ(e){this._node=e,this._names=DZ(e.getAttribute("class")||"")}function BZ(e,t){for(var n=NZ(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function FZ(e,t){for(var n=NZ(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function jZ(e){return function(){BZ(this,e)}}function WZ(e){return function(){FZ(this,e)}}function HZ(e,t){return function(){(t.apply(this,arguments)?BZ:FZ)(this,e)}}function UZ(){this.textContent=""}function VZ(e){return function(){this.textContent=e}}function $Z(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function qZ(){this.innerHTML=""}function YZ(e){return function(){this.innerHTML=e}}function GZ(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function XZ(){this.nextSibling&&this.parentNode.appendChild(this)}function ZZ(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function KZ(){return null}function JZ(){var e=this.parentNode;e&&e.removeChild(this)}function QZ(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function eK(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function tK(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function nK(e,t,n){return function(){var r,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var a=0,l=i.length;a<l;++a)if((r=i[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function rK(e,t,n){var r=AZ(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function iK(e,t){return function(){return rK(this,e,t)}}function oK(e,t){return function(){return rK(this,e,t.apply(this,arguments))}}gZ.prototype={constructor:gZ,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},IZ.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var aK=[null];function lK(e,t){this._groups=e,this._parents=t}function sK(){return new lK([[document.documentElement]],aK)}function cK(e){return"string"==typeof e?new lK([[document.querySelector(e)]],[document.documentElement]):new lK([[e]],aK)}function uK(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}lK.prototype=sK.prototype={constructor:lK,select:function(e){"function"!=typeof e&&(e=iZ(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,l=t[i],s=l.length,c=r[i]=new Array(s),u=0;u<s;++u)(o=l[u])&&(a=e.call(o,o.__data__,u,l))&&("__data__"in o&&(a.__data__=o.__data__),c[u]=a);return new lK(r,this._parents)},selectAll:function(e){e="function"==typeof e?lZ(e):aZ(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,l=t[o],s=l.length,c=0;c<s;++c)(a=l[c])&&(r.push(e.call(a,a.__data__,c,l)),i.push(a));return new lK(r,i)},selectChild:function(e){return this.select(null==e?dZ:function(e){return function(){return uZ.call(this.children,e)}}("function"==typeof e?e:cZ(e)))},selectChildren:function(e){return this.selectAll(null==e?hZ:function(e){return function(){return fZ.call(this.children,e)}}("function"==typeof e?e:cZ(e)))},filter:function(e){"function"!=typeof e&&(e=sZ(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],l=a.length,s=r[i]=[],c=0;c<l;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&s.push(o);return new lK(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,bZ);var n=t?mZ:vZ,r=this._parents,i=this._groups;"function"!=typeof e&&(e=function(e){return function(){return e}}(e));for(var o=i.length,a=new Array(o),l=new Array(o),s=new Array(o),c=0;c<o;++c){var u=r[c],d=i[c],f=d.length,h=yZ(e.call(u,u&&u.__data__,c,r)),p=h.length,g=l[c]=new Array(p),v=a[c]=new Array(p);n(u,d,g,v,s[c]=new Array(f),h,t);for(var m,b,y=0,_=0;y<p;++y)if(m=g[y]){for(y>=_&&(_=y+1);!(b=v[_])&&++_<p;);m._next=b||null}}return(a=new lK(a,r))._enter=l,a._exit=s,a},enter:function(){return new lK(this._enter||this._groups.map(pZ),this._parents)},exit:function(){return new lK(this._exit||this._groups.map(pZ),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),l=new Array(i),s=0;s<a;++s)for(var c,u=n[s],d=r[s],f=u.length,h=l[s]=new Array(f),p=0;p<f;++p)(c=u[p]||d[p])&&(h[p]=c);for(;s<i;++s)l[s]=n[s];return new lK(l,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=_Z);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,l=n[o],s=l.length,c=i[o]=new Array(s),u=0;u<s;++u)(a=l[u])&&(c[u]=a);c.sort(t)}return new lK(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,l=o.length;a<l;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=QX(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?xZ:wZ:"function"==typeof t?n.local?MZ:SZ:n.local?CZ:kZ)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?TZ:"function"==typeof t?EZ:LZ)(e,t,null==n?"":n)):OZ(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?RZ:"function"==typeof t?zZ:PZ)(e,t)):this.node()[e]},classed:function(e,t){var n=DZ(e+"");if(arguments.length<2){for(var r=NZ(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?HZ:t?jZ:WZ)(n,t))},text:function(e){return arguments.length?this.each(null==e?UZ:("function"==typeof e?$Z:VZ)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?qZ:("function"==typeof e?GZ:YZ)(e)):this.node().innerHTML},raise:function(){return this.each(XZ)},lower:function(){return this.each(ZZ)},append:function(e){var t="function"==typeof e?e:nZ(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:nZ(e),r=null==t?KZ:"function"==typeof t?t:iZ(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(JZ)},clone:function(e){return this.select(e?eK:QZ)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),a=o.length;if(!(arguments.length<2)){for(l=t?nK:tK,r=0;r<a;++r)this.each(l(o[r],t,n));return this}var l=this.node().__on;if(l)for(var s,c=0,u=l.length;c<u;++c)for(r=0,s=l[c];r<a;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value},dispatch:function(e,t){return this.each(("function"==typeof t?oK:iK)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};var dK={value:()=>{}};function fK(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new hK(r)}function hK(e){this._=e}function pK(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function gK(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=dK,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}hK.prototype=fK.prototype={constructor:hK,on:function(e,t){var n,r,i=this._,o=(r=i,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),a=-1,l=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++a<l;)if(n=(e=o[a]).type)i[n]=gK(i[n],e.name,t);else if(null==t)for(n in i)i[n]=gK(i[n],e.name,null);return this}for(;++a<l;)if((n=(e=o[a]).type)&&(n=pK(i[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new hK(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var vK,mK,bK=0,yK=0,_K=0,wK=0,xK=0,kK=0,CK="object"==typeof performance&&performance.now?performance:Date,SK="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function MK(){return xK||(SK(AK),xK=CK.now()+kK)}function AK(){xK=0}function TK(){this._call=this._time=this._next=null}function LK(e,t,n){var r=new TK;return r.restart(e,t,n),r}function EK(){xK=(wK=CK.now())+kK,bK=yK=0;try{!function(){MK(),++bK;for(var e,t=vK;t;)(e=xK-t._time)>=0&&t._call.call(void 0,e),t=t._next;--bK}()}finally{bK=0,function(){var e,t,n=vK,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:vK=t);mK=e,RK(r)}(),xK=0}}function OK(){var e=CK.now(),t=e-wK;t>1e3&&(kK-=t,wK=e)}function RK(e){bK||(yK&&(yK=clearTimeout(yK)),e-xK>24?(e<1/0&&(yK=setTimeout(EK,e-CK.now()-kK)),_K&&(_K=clearInterval(_K))):(_K||(wK=CK.now(),_K=setInterval(OK,1e3)),bK=1,SK(EK)))}function PK(e,t,n){var r=new TK;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}TK.prototype=LK.prototype={constructor:TK,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?MK():+n)+(null==t?0:+t),this._next||mK===this||(mK?mK._next=this:vK=this,mK=this),this._call=e,this._time=n,RK()},stop:function(){this._call&&(this._call=null,this._time=1/0,RK())}};var zK=fK("start","end","cancel","interrupt"),DK=[];function NK(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var c,u,d,f;if(1!==n.state)return s();for(c in i)if((f=i[c]).name===n.name){if(3===f.state)return PK(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[c]):+c<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[c])}if(PK((function(){3===n.state&&(n.state=4,n.timer.restart(l,n.delay,n.time),l(o))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(f=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=f);r.length=u+1}}function l(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=LK(o,0,n.time)}(e,n,{name:t,index:r,group:i,on:zK,tween:DK,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function IK(e,t){var n=FK(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function BK(e,t){var n=FK(e,t);if(n.state>3)throw new Error("too late; already running");return n}function FK(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function jK(e,t){var n,r;return function(){var i=BK(this,e),o=i.tween;if(o!==n)for(var a=0,l=(r=n=o).length;a<l;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}function WK(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=BK(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var l={name:t,value:n},s=0,c=i.length;s<c;++s)if(i[s].name===t){i[s]=l;break}s===c&&i.push(l)}o.tween=i}}function HK(e,t,n){var r=e._id;return e.each((function(){var e=BK(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return FK(e,r).value[t]}}function UK(e,t){var n;return("number"==typeof t?fa:t instanceof Ao?aa:(n=Ao(t))?(t=n,aa):va)(e,t)}function VK(e){return function(){this.removeAttribute(e)}}function $K(e){return function(){this.removeAttributeNS(e.space,e.local)}}function qK(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function YK(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function GK(e,t,n){var r,i,o;return function(){var a,l,s=n(this);if(null!=s)return(a=this.getAttribute(e))===(l=s+"")?null:a===r&&l===i?o:(i=l,o=t(r=a,s));this.removeAttribute(e)}}function XK(e,t,n){var r,i,o;return function(){var a,l,s=n(this);if(null!=s)return(a=this.getAttributeNS(e.space,e.local))===(l=s+"")?null:a===r&&l===i?o:(i=l,o=t(r=a,s));this.removeAttributeNS(e.space,e.local)}}function ZK(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,i)),n}return i._value=t,i}function KK(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,i)),n}return i._value=t,i}function JK(e,t){return function(){IK(this,e).delay=+t.apply(this,arguments)}}function QK(e,t){return t=+t,function(){IK(this,e).delay=t}}function eJ(e,t){return function(){BK(this,e).duration=+t.apply(this,arguments)}}function tJ(e,t){return t=+t,function(){BK(this,e).duration=t}}var nJ=sK.prototype.constructor;function rJ(e){return function(){this.style.removeProperty(e)}}var iJ=0;function oJ(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function aJ(e){return sK().transition(e)}function lJ(){return++iJ}var sJ=sK.prototype;function cJ(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}oJ.prototype=aJ.prototype={constructor:oJ,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=iZ(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var l,s,c=r[a],u=c.length,d=o[a]=new Array(u),f=0;f<u;++f)(l=c[f])&&(s=e.call(l,l.__data__,f,c))&&("__data__"in l&&(s.__data__=l.__data__),d[f]=s,NK(d[f],t,n,f,d,FK(l,n)));return new oJ(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=aZ(e));for(var r=this._groups,i=r.length,o=[],a=[],l=0;l<i;++l)for(var s,c=r[l],u=c.length,d=0;d<u;++d)if(s=c[d]){for(var f,h=e.call(s,s.__data__,d,c),p=FK(s,n),g=0,v=h.length;g<v;++g)(f=h[g])&&NK(f,t,n,g,h,p);o.push(h),a.push(s)}return new oJ(o,a,t,n)},selectChild:sJ.selectChild,selectChildren:sJ.selectChildren,filter:function(e){"function"!=typeof e&&(e=sZ(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],l=a.length,s=r[i]=[],c=0;c<l;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&s.push(o);return new oJ(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),l=0;l<o;++l)for(var s,c=t[l],u=n[l],d=c.length,f=a[l]=new Array(d),h=0;h<d;++h)(s=c[h]||u[h])&&(f[h]=s);for(;l<r;++l)a[l]=t[l];return new oJ(a,this._parents,this._name,this._id)},selection:function(){return new nJ(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=lJ(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,l=r[o],s=l.length,c=0;c<s;++c)if(a=l[c]){var u=FK(a,t);NK(a,e,n,c,l,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new oJ(r,this._parents,e,n)},call:sJ.call,nodes:sJ.nodes,node:sJ.node,size:sJ.size,empty:sJ.empty,each:sJ.each,on:function(e,t){var n=this._id;return arguments.length<2?FK(this.node(),n).on.on(e):this.each(function(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?IK:BK;return function(){var a=o(this,e),l=a.on;l!==r&&(i=(r=l).copy()).on(t,n),a.on=i}}(n,e,t))},attr:function(e,t){var n=QX(e),r="transform"===n?Sa:UK;return this.attrTween(e,"function"==typeof t?(n.local?XK:GK)(n,r,HK(this,"attr."+e,t)):null==t?(n.local?$K:VK)(n):(n.local?YK:qK)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=QX(e);return this.tween(n,(r.local?ZK:KK)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Ca:UK;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=OZ(this,e),a=(this.style.removeProperty(e),OZ(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,rJ(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=OZ(this,e),l=n(this),s=l+"";return null==l&&(this.style.removeProperty(e),s=l=OZ(this,e)),a===s?null:a===r&&s===i?o:(i=s,o=t(r=a,l))}}(e,r,HK(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,l="end."+a;return function(){var s=BK(this,e),c=s.on,u=null==s.value[a]?o||(o=rJ(t)):void 0;c===n&&i===u||(r=(n=c).copy()).on(l,i=u),s.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=OZ(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,o,n)),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(HK(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=FK(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?jK:WK)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?JK:QK)(t,e)):FK(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?eJ:tJ)(t,e)):FK(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){BK(this,e).ease=t}}(t,e)):FK(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw new Error;BK(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var l={value:a},s={value:function(){0==--i&&o()}};n.each((function(){var n=BK(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(l),t._.interrupt.push(l),t._.end.push(s)),n.on=t})),0===i&&o()}))},[Symbol.iterator]:sJ[Symbol.iterator]};var uJ={time:null,delay:0,duration:250,ease:cJ};function dJ(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function fJ(e){return e}sK.prototype.interrupt=function(e){return this.each((function(){!function(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}(this,e)}))},sK.prototype.transition=function(e){var t,n;e instanceof oJ?(t=e._id,e=e._name):(t=lJ(),(n=uJ).time=MK(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,l=r[o],s=l.length,c=0;c<s;++c)(a=l[c])&&NK(a,e,t,c,l,n||dJ(a,t));return new oJ(r,this._parents,e,t)};var hJ=1e-6;function pJ(e){return"translate("+e+",0)"}function gJ(e){return"translate(0,"+e+")"}function vJ(e){return t=>+e(t)}function mJ(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function bJ(){return!this.__axis}function yJ(e,t){var n=[],r=null,i=null,o=6,a=6,l=3,s="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=1===e||4===e?-1:1,u=4===e||2===e?"x":"y",d=1===e||3===e?pJ:gJ;function f(f){var h=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,p=null==i?t.tickFormat?t.tickFormat.apply(t,n):fJ:i,g=Math.max(o,0)+l,v=t.range(),m=+v[0]+s,b=+v[v.length-1]+s,y=(t.bandwidth?mJ:vJ)(t.copy(),s),_=f.selection?f.selection():f,w=_.selectAll(".domain").data([null]),x=_.selectAll(".tick").data(h,t).order(),k=x.exit(),C=x.enter().append("g").attr("class","tick"),S=x.select("line"),M=x.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(C),S=S.merge(C.append("line").attr("stroke","currentColor").attr(u+"2",c*o)),M=M.merge(C.append("text").attr("fill","currentColor").attr(u,c*g).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),f!==_&&(w=w.transition(f),x=x.transition(f),S=S.transition(f),M=M.transition(f),k=k.transition(f).attr("opacity",hJ).attr("transform",(function(e){return isFinite(e=y(e))?d(e+s):this.getAttribute("transform")})),C.attr("opacity",hJ).attr("transform",(function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:y(e))+s)}))),k.remove(),w.attr("d",4===e||2===e?a?"M"+c*a+","+m+"H"+s+"V"+b+"H"+c*a:"M"+s+","+m+"V"+b:a?"M"+m+","+c*a+"V"+s+"H"+b+"V"+c*a:"M"+m+","+s+"H"+b),x.attr("opacity",1).attr("transform",(function(e){return d(y(e)+s)})),S.attr(u+"2",c*o),M.attr(u,c*g).text(p),_.filter(bJ).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),_.each((function(){this.__axis=y}))}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(o=a=+e,f):o},f.tickSizeInner=function(e){return arguments.length?(o=+e,f):o},f.tickSizeOuter=function(e){return arguments.length?(a=+e,f):a},f.tickPadding=function(e){return arguments.length?(l=+e,f):l},f.offset=function(e){return arguments.length?(s=+e,f):s},f}function _J(e){return yJ(3,e)}const wJ={capture:!0,passive:!1};function xJ(e){e.preventDefault(),e.stopImmediatePropagation()}var kJ=fK("start","end","cancel","interrupt"),CJ=[];function SJ(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var c,u,d,f;if(1!==n.state)return s();for(c in i)if((f=i[c]).name===n.name){if(3===f.state)return PK(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[c]):+c<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[c])}if(PK((function(){3===n.state&&(n.state=4,n.timer.restart(l,n.delay,n.time),l(o))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(f=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=f);r.length=u+1}}function l(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=LK(o,0,n.time)}(e,n,{name:t,index:r,group:i,on:kJ,tween:CJ,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function MJ(e,t){var n=TJ(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function AJ(e,t){var n=TJ(e,t);if(n.state>3)throw new Error("too late; already running");return n}function TJ(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function LJ(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}function EJ(e,t){var n,r;return function(){var i=AJ(this,e),o=i.tween;if(o!==n)for(var a=0,l=(r=n=o).length;a<l;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}function OJ(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=AJ(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var l={name:t,value:n},s=0,c=i.length;s<c;++s)if(i[s].name===t){i[s]=l;break}s===c&&i.push(l)}o.tween=i}}function RJ(e,t,n){var r=e._id;return e.each((function(){var e=AJ(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return TJ(e,r).value[t]}}function PJ(e,t){var n;return("number"==typeof t?fa:t instanceof Ao?aa:(n=Ao(t))?(t=n,aa):va)(e,t)}function zJ(e){return function(){this.removeAttribute(e)}}function DJ(e){return function(){this.removeAttributeNS(e.space,e.local)}}function NJ(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function IJ(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function BJ(e,t,n){var r,i,o;return function(){var a,l,s=n(this);if(null!=s)return(a=this.getAttribute(e))===(l=s+"")?null:a===r&&l===i?o:(i=l,o=t(r=a,s));this.removeAttribute(e)}}function FJ(e,t,n){var r,i,o;return function(){var a,l,s=n(this);if(null!=s)return(a=this.getAttributeNS(e.space,e.local))===(l=s+"")?null:a===r&&l===i?o:(i=l,o=t(r=a,s));this.removeAttributeNS(e.space,e.local)}}function jJ(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,i)),n}return i._value=t,i}function WJ(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,i)),n}return i._value=t,i}function HJ(e,t){return function(){MJ(this,e).delay=+t.apply(this,arguments)}}function UJ(e,t){return t=+t,function(){MJ(this,e).delay=t}}function VJ(e,t){return function(){AJ(this,e).duration=+t.apply(this,arguments)}}function $J(e,t){return t=+t,function(){AJ(this,e).duration=t}}var qJ=sK.prototype.constructor;function YJ(e){return function(){this.style.removeProperty(e)}}var GJ=0;function XJ(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function ZJ(){return++GJ}var KJ=sK.prototype;XJ.prototype={constructor:XJ,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=iZ(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var l,s,c=r[a],u=c.length,d=o[a]=new Array(u),f=0;f<u;++f)(l=c[f])&&(s=e.call(l,l.__data__,f,c))&&("__data__"in l&&(s.__data__=l.__data__),d[f]=s,SJ(d[f],t,n,f,d,TJ(l,n)));return new XJ(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=aZ(e));for(var r=this._groups,i=r.length,o=[],a=[],l=0;l<i;++l)for(var s,c=r[l],u=c.length,d=0;d<u;++d)if(s=c[d]){for(var f,h=e.call(s,s.__data__,d,c),p=TJ(s,n),g=0,v=h.length;g<v;++g)(f=h[g])&&SJ(f,t,n,g,h,p);o.push(h),a.push(s)}return new XJ(o,a,t,n)},selectChild:KJ.selectChild,selectChildren:KJ.selectChildren,filter:function(e){"function"!=typeof e&&(e=sZ(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],l=a.length,s=r[i]=[],c=0;c<l;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&s.push(o);return new XJ(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),l=0;l<o;++l)for(var s,c=t[l],u=n[l],d=c.length,f=a[l]=new Array(d),h=0;h<d;++h)(s=c[h]||u[h])&&(f[h]=s);for(;l<r;++l)a[l]=t[l];return new XJ(a,this._parents,this._name,this._id)},selection:function(){return new qJ(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=ZJ(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,l=r[o],s=l.length,c=0;c<s;++c)if(a=l[c]){var u=TJ(a,t);SJ(a,e,n,c,l,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new XJ(r,this._parents,e,n)},call:KJ.call,nodes:KJ.nodes,node:KJ.node,size:KJ.size,empty:KJ.empty,each:KJ.each,on:function(e,t){var n=this._id;return arguments.length<2?TJ(this.node(),n).on.on(e):this.each(function(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?MJ:AJ;return function(){var a=o(this,e),l=a.on;l!==r&&(i=(r=l).copy()).on(t,n),a.on=i}}(n,e,t))},attr:function(e,t){var n=QX(e),r="transform"===n?Sa:PJ;return this.attrTween(e,"function"==typeof t?(n.local?FJ:BJ)(n,r,RJ(this,"attr."+e,t)):null==t?(n.local?DJ:zJ)(n):(n.local?IJ:NJ)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=QX(e);return this.tween(n,(r.local?jJ:WJ)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Ca:PJ;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=OZ(this,e),a=(this.style.removeProperty(e),OZ(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,YJ(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=OZ(this,e),l=n(this),s=l+"";return null==l&&(this.style.removeProperty(e),s=l=OZ(this,e)),a===s?null:a===r&&s===i?o:(i=s,o=t(r=a,l))}}(e,r,RJ(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,l="end."+a;return function(){var s=AJ(this,e),c=s.on,u=null==s.value[a]?o||(o=YJ(t)):void 0;c===n&&i===u||(r=(n=c).copy()).on(l,i=u),s.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=OZ(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,o,n)),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(RJ(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=TJ(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?EJ:OJ)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?HJ:UJ)(t,e)):TJ(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?VJ:$J)(t,e)):TJ(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){AJ(this,e).ease=t}}(t,e)):TJ(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw new Error;AJ(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var l={value:a},s={value:function(){0==--i&&o()}};n.each((function(){var n=AJ(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(l),t._.interrupt.push(l),t._.end.push(s)),n.on=t})),0===i&&o()}))},[Symbol.iterator]:KJ[Symbol.iterator]};var JJ={time:null,delay:0,duration:250,ease:cJ};function QJ(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}sK.prototype.interrupt=function(e){return this.each((function(){LJ(this,e)}))},sK.prototype.transition=function(e){var t,n;e instanceof XJ?(t=e._id,e=e._name):(t=ZJ(),(n=JJ).time=MK(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,l=r[o],s=l.length,c=0;c<s;++c)(a=l[c])&&SJ(a,e,t,c,l,n||QJ(a,t));return new XJ(r,this._parents,e,t)};var eQ=e=>()=>e;function tQ(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function nQ(e){e.preventDefault(),e.stopImmediatePropagation()}var rQ={name:"drag"},iQ={name:"space"},oQ={name:"handle"},aQ={name:"center"};const{abs:lQ,max:sQ,min:cQ}=Math;function uQ(e){return[+e[0],+e[1]]}function dQ(e){return[uQ(e[0]),uQ(e[1])]}var fQ={name:"x",handles:["w","e"].map(yQ),input:function(e,t){return null==e?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},hQ={},pQ={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},gQ={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},vQ={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},mQ={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},bQ={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function yQ(e){return{type:e}}function _Q(e){return!e.ctrlKey&&!e.button}function wQ(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function xQ(){return navigator.maxTouchPoints||"ontouchstart"in this}function kQ(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function CQ(){return function(e){var t,n=wQ,r=_Q,i=xQ,o=!0,a=fK("start","brush","end"),l=6;function s(t){var n=t.property("__brush",g).selectAll(".overlay").data([yQ("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",pQ.overlay).merge(n).each((function(){var e=kQ(this).extent;cK(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])})),t.selectAll(".selection").data([yQ("selection")]).enter().append("rect").attr("class","selection").attr("cursor",pQ.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=t.selectAll(".handle").data(e.handles,(function(e){return e.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(e){return"handle handle--"+e.type})).attr("cursor",(function(e){return pQ[e.type]})),t.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(i).on("touchstart.brush",f).on("touchmove.brush",h).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var e=cK(this),t=kQ(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",(function(e){return"e"===e.type[e.type.length-1]?t[1][0]-l/2:t[0][0]-l/2})).attr("y",(function(e){return"s"===e.type[0]?t[1][1]-l/2:t[0][1]-l/2})).attr("width",(function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+l:l})).attr("height",(function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+l:l}))):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(e,t,n){var r=e.__brush.emitter;return!r||n&&r.clean?new d(e,t,n):r}function d(e,t,n){this.that=e,this.args=t,this.state=e.__brush,this.active=0,this.clean=n}function f(n){if((!t||n.touches)&&r.apply(this,arguments)){var i,a,l,s,d,f,h,p,g,v,m,b=this,y=n.target.__data__.type,_="selection"===(o&&n.metaKey?y="overlay":y)?rQ:o&&n.altKey?aQ:oQ,w=e===hQ?null:mQ[y],x=e===fQ?null:bQ[y],k=kQ(b),C=k.extent,S=k.selection,M=C[0][0],A=C[0][1],T=C[1][0],L=C[1][1],E=0,O=0,R=w&&x&&o&&n.shiftKey,P=Array.from(n.touches||[n],(e=>{const t=e.identifier;return(e=uK(e,b)).point0=e.slice(),e.identifier=t,e}));LJ(b);var z=u(b,arguments,!0).beforestart();if("overlay"===y){S&&(g=!0);const t=[P[0],P[1]||P[0]];k.selection=S=[[i=e===hQ?M:cQ(t[0][0],t[1][0]),l=e===fQ?A:cQ(t[0][1],t[1][1])],[d=e===hQ?T:sQ(t[0][0],t[1][0]),h=e===fQ?L:sQ(t[0][1],t[1][1])]],P.length>1&&F(n)}else i=S[0][0],l=S[0][1],d=S[1][0],h=S[1][1];a=i,s=l,f=d,p=h;var D=cK(b).attr("pointer-events","none"),N=D.selectAll(".overlay").attr("cursor",pQ[y]);if(n.touches)z.moved=B,z.ended=j;else{var I=cK(n.view).on("mousemove.brush",B,!0).on("mouseup.brush",j,!0);o&&I.on("keydown.brush",W,!0).on("keyup.brush",H,!0),function(e){var t=e.document.documentElement,n=cK(e).on("dragstart.drag",xJ,wJ);"onselectstart"in t?n.on("selectstart.drag",xJ,wJ):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(n.view)}c.call(b),z.start(n,_.name)}function B(e){for(const t of e.changedTouches||[e])for(const e of P)e.identifier===t.identifier&&(e.cur=uK(t,b));if(R&&!v&&!m&&1===P.length){const e=P[0];lQ(e.cur[0]-e[0])>lQ(e.cur[1]-e[1])?m=!0:v=!0}for(const e of P)e.cur&&(e[0]=e.cur[0],e[1]=e.cur[1]);g=!0,nQ(e),F(e)}function F(e){const t=P[0],n=t.point0;var r;switch(E=t[0]-n[0],O=t[1]-n[1],_){case iQ:case rQ:w&&(E=sQ(M-i,cQ(T-d,E)),a=i+E,f=d+E),x&&(O=sQ(A-l,cQ(L-h,O)),s=l+O,p=h+O);break;case oQ:P[1]?(w&&(a=sQ(M,cQ(T,P[0][0])),f=sQ(M,cQ(T,P[1][0])),w=1),x&&(s=sQ(A,cQ(L,P[0][1])),p=sQ(A,cQ(L,P[1][1])),x=1)):(w<0?(E=sQ(M-i,cQ(T-i,E)),a=i+E,f=d):w>0&&(E=sQ(M-d,cQ(T-d,E)),a=i,f=d+E),x<0?(O=sQ(A-l,cQ(L-l,O)),s=l+O,p=h):x>0&&(O=sQ(A-h,cQ(L-h,O)),s=l,p=h+O));break;case aQ:w&&(a=sQ(M,cQ(T,i-E*w)),f=sQ(M,cQ(T,d+E*w))),x&&(s=sQ(A,cQ(L,l-O*x)),p=sQ(A,cQ(L,h+O*x)))}f<a&&(w*=-1,r=i,i=d,d=r,r=a,a=f,f=r,y in gQ&&N.attr("cursor",pQ[y=gQ[y]])),p<s&&(x*=-1,r=l,l=h,h=r,r=s,s=p,p=r,y in vQ&&N.attr("cursor",pQ[y=vQ[y]])),k.selection&&(S=k.selection),v&&(a=S[0][0],f=S[1][0]),m&&(s=S[0][1],p=S[1][1]),S[0][0]===a&&S[0][1]===s&&S[1][0]===f&&S[1][1]===p||(k.selection=[[a,s],[f,p]],c.call(b),z.brush(e,_.name))}function j(e){if(function(e){e.stopImmediatePropagation()}(e),e.touches){if(e.touches.length)return;t&&clearTimeout(t),t=setTimeout((function(){t=null}),500)}else!function(e,t){var n=e.document.documentElement,r=cK(e).on("dragstart.drag",null);t&&(r.on("click.drag",xJ,wJ),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,g),I.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);D.attr("pointer-events","all"),N.attr("cursor",pQ.overlay),k.selection&&(S=k.selection),function(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}(S)&&(k.selection=null,c.call(b)),z.end(e,_.name)}function W(e){switch(e.keyCode){case 16:R=w&&x;break;case 18:_===oQ&&(w&&(d=f-E*w,i=a+E*w),x&&(h=p-O*x,l=s+O*x),_=aQ,F(e));break;case 32:_!==oQ&&_!==aQ||(w<0?d=f-E:w>0&&(i=a-E),x<0?h=p-O:x>0&&(l=s-O),_=iQ,N.attr("cursor",pQ.selection),F(e));break;default:return}nQ(e)}function H(e){switch(e.keyCode){case 16:R&&(v=m=R=!1,F(e));break;case 18:_===aQ&&(w<0?d=f:w>0&&(i=a),x<0?h=p:x>0&&(l=s),_=oQ,F(e));break;case 32:_===iQ&&(e.altKey?(w&&(d=f-E*w,i=a+E*w),x&&(h=p-O*x,l=s+O*x),_=aQ):(w<0?d=f:w>0&&(i=a),x<0?h=p:x>0&&(l=s),_=oQ),N.attr("cursor",pQ[y]),F(e));break;default:return}nQ(e)}}function h(e){u(this,arguments).moved(e)}function p(e){u(this,arguments).ended(e)}function g(){var t=this.__brush||{selection:null};return t.extent=dQ(n.apply(this,arguments)),t.dim=e,t}return s.move=function(t,n,r){t.tween?t.on("start.brush",(function(e){u(this,arguments).beforestart().start(e)})).on("interrupt.brush end.brush",(function(e){u(this,arguments).end(e)})).tween("brush",(function(){var t=this,r=t.__brush,i=u(t,arguments),o=r.selection,a=e.input("function"==typeof n?n.apply(this,arguments):n,r.extent),l=ma(o,a);function s(e){r.selection=1===e&&null===a?null:l(e),c.call(t),i.brush()}return null!==o&&null!==a?s:s(1)})):t.each((function(){var t=this,i=arguments,o=t.__brush,a=e.input("function"==typeof n?n.apply(t,i):n,o.extent),l=u(t,i).beforestart();LJ(t),o.selection=null===a?null:a,c.call(t),l.start(r).brush(r).end(r)}))},s.clear=function(e,t){s.move(e,null,t)},d.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(e,t){return this.starting?(this.starting=!1,this.emit("start",e,t)):this.emit("brush",e),this},brush:function(e,t){return this.emit("brush",e,t),this},end:function(e,t){return 0==--this.active&&(delete this.state.emitter,this.emit("end",e,t)),this},emit:function(t,n,r){var i=cK(this.that).datum();a.call(t,this.that,new tQ(t,{sourceEvent:n,target:s,selection:e.output(this.state.selection),mode:r,dispatch:a}),i)}},s.extent=function(e){return arguments.length?(n="function"==typeof e?e:eQ(dQ(e)),s):n},s.filter=function(e){return arguments.length?(r="function"==typeof e?e:eQ(!!e),s):r},s.touchable=function(e){return arguments.length?(i="function"==typeof e?e:eQ(!!e),s):i},s.handleSize=function(e){return arguments.length?(l=+e,s):l},s.keyModifiers=function(e){return arguments.length?(o=!!e,s):o},s.on=function(){var e=a.on.apply(a,arguments);return e===a?s:e},s}(fQ)}const SQ=(e,t)=>{const n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz-";let r=5381;const i=Array.from(`${e}:${t}`);for(const e of i)r=Math.imul(r,33)+e.charCodeAt(0);const o=new Array(21);let a=Math.abs(r);for(let e=0;e<21;++e)a=(1664525*a+1013904223)%4294967296,o[e]=n[a%64];return o.join("")};class MQ extends CustomEvent{constructor(e){super("zoom",{detail:e})}}const AQ=()=>{return yJ(1,e);var e},TQ=()=>{return yJ(4,e);var e},LQ=(e,t=EQ)=>{const[n,r]=c(e),i=s(n),o=s(t);return u((()=>{o.current=t}),[t]),u((()=>{i.current=n,o.current(i.current)}),[n]),[i,n,r]},EQ=()=>{},OQ=e=>e?e<0?0:e:0;var RQ={timelineContainer:"styles_timelineContainer__3SW8x",durationRangeText:"styles_durationRangeText__kjCEl",timelineChart:"styles_timelineChart__sjwgA",axises:"styles_axises__nnLwP",xAxis:"styles_xAxis__w8pk1",xGrid:"styles_xGrid__2cimK",groupAxis:"styles_groupAxis__8rzsA",group:"styles_group__-lm0v",segment:"styles_segment__tDYtR",brusher:"styles_brusher__iTl0A",zoomSelection:"styles_zoomSelection__W-Y0x",brush:"styles_brush__5MVEw",tooltip:"styles_tooltip__WgR7o",tooltipContent:"styles_tooltipContent__qmhxV",labelGroup:"styles_labelGroup__wJsCk"};const PQ=()=>_J(),zQ={top:0,right:0,bottom:20,left:0},DQ=300,NQ=20,IQ=()=>{},BQ=e=>{const{width:t=DQ,height:n=NQ,margins:r=zQ,domainRange:i,currentSelection:o,tickFormat:a,onChange:l=IQ,onReset:c=IQ,selectedTestsCount:d,totalTestsCount:f,translations:h,transitionDuration:p=300}=e,g=OQ(t-r.left-r.right),v=OQ(n-r.top-r.bottom),[m,b,y]=LQ((()=>Cl().domain(i).range([0,g])));u((()=>{y((()=>Cl().domain(i).range([0,g])))}),[i,g]);const _=s(null),w=s(null),x=s(null),k=s(null),C=s(null),S=s(null),M=s(l),A=s(c);u((()=>{M.current=l,A.current=c}),[l,c]);const T=s(PQ().tickFormat((()=>""))),L=s(PQ().tickPadding(0)),E=s(CQ().handleSize(24).on("end",(e=>{if(!e.sourceEvent||!m.current||!M.current)return;if(!(e.selection&&2===e.selection.length)){const[e,t]=m.current.domain();return void M.current(e,t)}const[t,n]=e.selection.map((e=>b.invert(e)));M.current(t,n)})));u((()=>{if(!_.current||!b)return;if(!i||i[1]<=i[0])return;const[e,t]=i,n=(t-e)/6,l=[];for(let t=0;t<7;t++)l.push(e+n*t);if(l[0]=e,l[6]=t,L.current.scale(b).tickFormat(a).tickValues(l),T.current.scale(b).tickSize(-v).tickValues(l),cK(w.current).attr("transform",`translate(${r.left},${r.top})`),cK(x.current).exit().transition().duration(p).attr("width",0).attr("height",0),k.current&&(cK(k.current).attr("transform",`translate(0,${v})`),cK(k.current).call(T.current)),C.current&&(cK(C.current).attr("transform",`translate(0,${v})`),cK(C.current).call(L.current).selectAll("text").attr("y",8)),S.current){const e=cK(S.current);e.select(".selection").attr("rx",2).attr("ry",2),e.call(E.current.extent([[0,0],[g,v]]));const t=[b(o[0]??i[0]),b(o[1]??i[1])];E.current.move(e,t)}}),[r,b,i,o,a,g,v,p]);const O=(d/f*100).toFixed(2);return ln("svg",{ref:_,className:RQ.brusher,width:t,height:n+14,children:ln("g",{ref:w,className:RQ.brusherMargins,children:[ln("rect",{ref:x,className:RQ.gridBackground}),ln("g",{ref:S,className:RQ.brush}),ln("g",{className:RQ.axises,children:[ln("g",{ref:k,className:RQ.xGrid}),ln("g",{ref:C,className:RQ.xAxis}),ln("text",{x:g/2,y:60,textAnchor:"middle",className:RQ.durationRangeText,children:h.selected({count:d,percentage:O,minDuration:qi(o[0]),maxDuration:qi(o[1])})})]})]})})},FQ=e=>{const{segments:t,groupId:n,groupName:r,offsetTime:i}=e,[o,a]=h((()=>{let e=1/0,r=-1/0;const i=t.filter((e=>e.groupId===n));for(const t of i)e=Math.min(e,t.timeRange[0].getTime()),r=Math.max(r,t.timeRange[1].getTime());return[e,r]}),[t,n]);return ln("div",{className:RQ.tooltipContent,children:[ln("div",{children:r}),ln("div",{children:[qi(o-i)," — ",qi(a-i)]})]})},jQ=l(null),WQ=e=>{const{children:t,width:n}=e;return ln(jQ.Provider,{value:n,children:t})},HQ=()=>{},UQ=e=>{const{children:t,width:n,onResize:r,debounceResize:i=0}=e,[o]=OT(n,i);return u((()=>{r?.(o)}),[o,r]),o>0?ln(WQ,{width:o,children:t}):null},VQ=e=>{const{children:t,defaultWidth:n=0,onResize:r=HQ,debounceResize:i=0}=e,o=s(null),[a,l]=c(n);return u((()=>{if(!o.current)return;l(o.current.clientWidth);const e=new ResizeObserver((e=>{for(const t of e)l(t.target.clientWidth)}));return e.observe(o.current),()=>e.disconnect()}),[n]),ln("div",{ref:o,children:ln(UQ,{width:a,onResize:r,debounceResize:i,children:t})})},$Q=e=>{const{segment:t,offsetTime:n}=e;if(!t.id)return null;const r=t.labelGroup.length>1;return ln("div",{className:RQ.tooltipContent,children:[r?ln("div",{className:RQ.labelGroup,children:t.labelGroup.map(((e,t)=>ln(dn,{type:"ui",size:"s",bold:!0,children:e},t)))}):ln(dn,{type:"ui",size:"s",bold:!0,children:t.label}),ln("div",{children:[qi(t.timeRange[0].getTime()-n)," — ",qi(t.timeRange[1].getTime()-n)]})]})},qQ=()=>_J(),YQ={top:0,right:0,bottom:20,left:0},GQ=300,XQ=20,ZQ=()=>{},KQ=e=>{const{width:t=GQ,height:n=XQ,margins:r=YQ,scale:i,domainRange:o,currentSelection:a,tickFormat:l,onChange:c=ZQ,onReset:d=ZQ,transitionDuration:f=300}=e,[h,p,g]=LQ((()=>i.copy()));u((()=>{g((()=>h.current.domain()===i.domain()&&h.current.range()===i.range()?h.current:i.copy()))}),[i]);const v=OQ(t-r.left-r.right),m=OQ(n-r.top-r.bottom);u((()=>{g((()=>i.copy().domain(o??[]).range([0,v])))}),[o,v,i]);const b=s(null),y=s(null),_=s(null),w=s(null),x=s(null),k=s(null),C=s(c),S=s(d),M=s(qQ().tickFormat((()=>""))),A=s(qQ().tickPadding(0)),T=s(CQ().handleSize(24).on("end",(e=>{if(!e.sourceEvent||!h.current||!C.current)return;if(!(e.selection&&2===e.selection.length)){const[e,t]=h.current.domain();return void C.current(e,t)}const[t,n]=e.selection.map((e=>h.current.invert(e)));C.current(t,n)})));return u((()=>{C.current=c,S.current=d}),[c,d]),u((()=>{if(b.current&&p&&o&&!(o[1]<=o[0])&&(A.current.scale(p).tickFormat(l),M.current.scale(p).tickSize(-m),M.current.ticks(7),cK(y.current).attr("transform",`translate(${r.left},${r.top})`),cK(_.current).transition().duration(f).attr("width",String(v)).attr("height",String(m)),w.current&&(cK(w.current).attr("transform",`translate(0,${m})`),cK(w.current).call(M.current)),x.current&&(cK(x.current).attr("transform",`translate(0,${m})`),cK(x.current).call(A.current).selectAll("text").attr("y",8)),k.current)){const e=cK(k.current);e.select(".selection").attr("rx",2).attr("ry",2),e.call(T.current.extent([[0,0],[v,m]]));const t=[p(a?.[0]??o[0].getTime()),p(a?.[1]??o[1].getTime())];T.current.move(e,t)}}),[v,m,r,o,a,l,p,f]),ln("svg",{ref:b,className:RQ.brusher,width:t,height:n,children:ln("g",{ref:y,className:RQ.brusherMargins,children:[ln("rect",{ref:_,className:RQ.gridBackground}),ln("g",{ref:k,className:RQ.brush}),ln("g",{className:RQ.axises,children:[ln("g",{ref:w,className:RQ.xGrid}),ln("g",{ref:x,className:RQ.xAxis})]})]})})};cK.prototype.transition=aJ;const JQ=e=>{const t={failed:"var(--timeline-status-failed, #E8452CFF)",broken:"var(--timeline-status-broken, #E88D2CFF)",passed:"var(--timeline-status-passed, #099337FF)",skipped:"var(--timeline-status-skipped, #7281A1FF)",unknown:"var(--timeline-status-unknown, #B92CE8FF)"};return t[e]||t.unknown},QQ=e=>{const t={failed:"var(--on-support-capella, #E8452CFF)",broken:"var(--on-support-atlas, #E88D2CFF)",passed:"var(--on-support-castor, #099337FF)",skipped:"var(--on-support-rau, #7281A1FF)",unknown:"var(--on-support-skat, #B92CE8FF)"};return t[e]||t.unknown},e0=e=>{if(e>=20)return 4;if(e<4)return 0;const t=(e-4)/16;return 4*(t*(2-t))},t0=100,n0=100,r0=26,i0=20,o0=e=>{const{data:t=[],translations:n}=e,r=p(),{durationRange:i,handleDurationChange:o,durationDomain:a}=(e=>{const t=h((()=>{const t=e.reduce(((e,t)=>{const n=t.segments.map((e=>e.val));return{min:Math.min(e.min,...n),max:Math.max(e.max,...n)}}),{min:1/0,max:-1/0});return[t.min,t.max]}),[e]),[n,r]=c(t[0]),[i,o]=c(t[1]);u((()=>{r(t[0])}),[t[0]]),u((()=>{o(t[1])}),[t[1]]);const a=d(((e,t)=>{r(e),o(t)}),[]);return{durationRange:[n,i],handleDurationChange:a,durationDomain:t}})(t),l=(()=>{const e=f(jQ);if(!e)throw new Error("useWidth must be used within a ResponsiveWrapper");return e})(),g=s(null),v=s(null),m=s(null),b=s(null),y=s(null),_=s(null),[w,x,k]=LQ((()=>Ka())),[C,S,M]=LQ((()=>Ga())),A=s(_J()),T=s(AQ()),L=s(TQ()),{tooltipRef:E,isVisible:O,handleShowTooltip:R,handleHideTooltip:P,data:z}=EY("bottom"),{tooltipRef:D,isVisible:N,handleShowTooltip:I,handleHideTooltip:B,data:F}=EY("bottom"),j=mV?0:500,W=mV?0:150,H=s(!1),U=t.length,V=OQ(l-t0-n0),$=OQ(24*U),q=$+r0+30,Y=h((()=>{const e=[];for(const n of t)for(const t of n.segments)e.push({groupId:n.id,groupName:n.name,label:t.label,labelGroup:t.labelGroup,timeRange:t.timeRange,hidden:t.hidden,val:t.val,labelVal:t.val,segment:t,id:t.id});return e}),[t]),G=h((()=>t.map((e=>({id:e.id,name:e.name})))),[t]),X=h((()=>[Va(Y,(e=>e.timeRange[0])),Ua(Y,(e=>e.timeRange[1]))]),[Y]),[Z,K]=c(X),[J,Q]=c([null,null]),ee=d((e=>{K((t=>((e,t)=>{if(!e&&!t)return!0;if(!e&&t)return!1;if(e&&!t)return!1;const n=e?.[0]?.getTime()??void 0,r=e?.[1]?.getTime()??void 0,i=t?.[0]?.getTime()??void 0,o=t?.[1]?.getTime()??void 0;return n===i&&r===o})(t,e)?t:e))}),[]),te=d((e=>{Q((t=>((e,t)=>{if(!e&&!t)return!0;if(!e&&t)return!1;if(e&&!t)return!1;const n=e?.[0]??void 0,r=e?.[1]??void 0;return n===(t?.[0]??void 0)&&r===(t?.[1]??void 0)})(t,e)?t:e))}),[]),[ne,re,ie]=LQ((()=>tu().domain(X).range([0,V]).clamp(!0)));u((()=>{ie((()=>ne.current.copy().domain(X))),ee(X)}),[...X,ee]),u((()=>{ie((()=>ne.current.copy().range([0,V]).clamp(!0)))}),[V]);const oe=h((()=>[Va(Y,(e=>e.timeRange[0])),Ua(Y,(e=>e.timeRange[1]))]),[Y]);u((()=>{if(!g.current)return;const e=e=>{const{zoomX:t,zoomY:n}=e.detail;t&&ee(t),n&&te(n)};if(g.current?.addEventListener("zoom",e),!v.current)return;const t=cK(v.current),n=e=>uK(e,v.current);return t.on("mousedown",(e=>{if(null!=cK(window).on("mousemove.zoomRect"))return;const r=n(e);if(r[0]<0||r[0]>V||r[1]<0||r[1]>$)return;H.current=!0;const i=t.append("rect").attr("class",RQ.zoomSelection);cK(window).on("mousemove.zoomRect",(e=>{e.stopPropagation();const t=n(e),o=[Math.max(0,Math.min(V,t[0])),Math.max(0,Math.min($,t[1]))];i.attr("x",Math.min(r[0],o[0])).attr("y",Math.min(r[1],o[1])).attr("width",Math.abs(o[0]-r[0])).attr("height",Math.abs(o[1]-r[1]))})).on("mouseup.zoomRect",(e=>{cK(window).on("mousemove.zoomRect",null).on("mouseup.zoomRect",null),i.remove(),H.current=!1;const t=n(e),o=[Math.max(0,Math.min(V,t[0])),Math.max(0,Math.min($,t[1]))];if(r[0]===o[0]&&r[1]===o[1])return;const a=[r[0],o[0]].sort(Ta).map((e=>ne.current.invert(e)));a[1].getTime()-a[0].getTime()>10&&g.current?.dispatchEvent(new MQ({zoomX:a,zoomY:null}))}),!0),e.stopPropagation()})),()=>{g.current?.removeEventListener("zoom",e)}}),[V,$,J,Y,ee,te,S]),u((()=>{const e=Z?.[0]&&Z?.[1]?Z:X;ie((()=>ne.current.copy().domain(e).range([0,V]).clamp(!0)))}),[Z,X,V]),u((()=>{L.current.scale(S)}),[S,G]),u((()=>{M((()=>C.current.copy().domain(G.map((e=>e.id))).range(G.map(((e,t)=>(t+.5)/U*$)))))}),[G,U,$]),u((()=>{k((()=>w.current.copy().domain(G.map((e=>e.id))).range([$/G.length*.5,$*(1-.5/G.length)])))}),[G,$,U]),u((()=>{if(!(g.current&&re&&0!==$&&b.current&&y.current))return;const[e,t]=re.range();if(e===t)return;A.current.scale(re),A.current.ticks(7),A.current.tickFormat((e=>oe[0]?qi(e.getTime()-oe[0].getTime()):"")),T.current.scale(re).ticks(7).tickFormat((()=>""));cK(b.current).style("stroke-opacity",0).style("fill-opacity",0).attr("transform",`translate(0,${$})`).transition().duration(j).call(A.current).style("stroke-opacity",1).style("fill-opacity",1),T.current.tickSize($),cK(y.current).attr("transform",`translate(0,${$})`).transition().duration(j).call(T.current);const n=Math.ceil(2*U/Math.sqrt(2)/$/.6),r=w.current.domain().filter(((e,t)=>!(t%n)));let i=Math.min(12,$/r.length*.6*Math.sqrt(2)),o=Math.ceil(n0/(i/Math.sqrt(2)));const a=S.range(),l=Va(a,((e,t)=>t>0?e-a[t-1]:2*e));i=Math.min(14,.6*OQ(l)*Math.sqrt(2)),o=Math.floor(t0/(i/Math.sqrt(2))),L.current.tickFormat((e=>{const t=G.find((t=>t.id===e)),n=t?.name??"";return n.length<=o?n:`${n.substring(0,2*o/3)}...${n.substring(n.length-o/3,n.length)}`})),cK(_.current).transition().duration(j).style("font-size",`${i}px`).call(L.current),cK(_.current).selectAll(".tick").each((function(e){const t=e,n=G.find((e=>e.id===t));n&&cK(this).select("text").on("mouseover",(e=>{R(e.target,n)})).on("mouseout",(e=>{P(e.target)}))}))}),[V,$,U,j,oe,re,S,G,R,P]),u((()=>{if(!v.current||0===$)return;const e=cK(v.current).selectAll(`rect.${RQ.group}`).data(G,(e=>e.id));e.exit().transition().duration(j).style("stroke-opacity",0).style("fill-opacity",0).remove();const t=e.enter().append("rect").attr("class",RQ.group).attr("x",0).attr("y",0).attr("height",0).attr("fill","none").style("fill-opacity",0).style("stroke-opacity",0);e.merge(t).transition().duration(j).attr("width",V).attr("height",$/U).attr("y",(e=>{const t=S(e.id);return Number.isInteger(t)?t-$/U/2:0})).style("fill-opacity",1).style("stroke-opacity",1)}),[G,V,$,U,j,S,R,P]);const[ae,le]=i,se=h((()=>Y.filter((e=>{if(-1===S.domain().indexOf(e.groupId))return!1;const t=e.val;return!(t<ae||t>le)})).length),[S,Y,ae,le]),ce=h((()=>Y.filter((e=>{if(-1===S.domain().indexOf(e.groupId))return!1;const t=e.val;if(t<ae||t>le)return!1;const[n,r]=re.domain(),[i,o]=e.timeRange;return!(o<n||i>r)}))),[S,re,Y,ae,le]);u((()=>{if(!v.current||0===$||!re)return;(async()=>{const e=cK(v.current);let t=e.selectAll(`rect.${RQ.segment}`).data(ce,(e=>e.id));if(0===ce.length)return void t.exit().remove();t.exit().transition().duration(j).style("fill-opacity",0).remove();const n=t.enter().append("rect").attr("class",RQ.segment).attr("rx",1).attr("ry",1).attr("x",(e=>re(e.timeRange[0]))).attr("y",(e=>(x(e.groupId)||0)-10)).attr("width",0).attr("height",0).style("fill",(e=>JQ(e.segment.status))).style("fill-opacity",0);n.on("mouseover",(function(e,t){if(H.current)return;cK(this).transition().duration(W).attr("x",ne.current(t.timeRange[0])-1).attr("width",Ua([2,ne.current(t.timeRange[1])-ne.current(t.timeRange[0])])+2).attr("y",(w.current(t.groupId)||0)-11).attr("height",22).style("fill-opacity",1),I(e.target,t)})).on("mouseout",(function(e,t){if(H.current)return;const n=ne.current(t.timeRange[1])-ne.current(t.timeRange[0]);cK(this).transition().duration(W).attr("x",ne.current(t.timeRange[0])).attr("width",Ua([2,n])??0).attr("y",(w.current(t.groupId)??0)-10).attr("height",i0).style("fill-opacity",1),B(e.target)})),t=t.merge(n),t.attr("rx",(e=>{const t=re(e.timeRange[1])-re(e.timeRange[0]);return e0(t)})).attr("ry",(e=>{const t=re(e.timeRange[1])-re(e.timeRange[0]);return e0(t)})).attr("stroke-width",(e=>re(e.timeRange[1])-re(e.timeRange[0])>=12?.5:.1)).attr("stroke","var(--timeline-bg, #ffffff)").attr("height",i0),t.transition().duration(j).attr("x",(e=>re(e.timeRange[0]))).attr("y",(e=>(x(e.groupId)||0)-10)).attr("width",(e=>{const t=Ua([2,(re(e.timeRange[1])??0)-(re(e.timeRange[0])??0)]);return(t??0)<0?0:t??0})).attr("height",i0).style("fill",(e=>e.hidden?`url(#gradient-${r}-${e.segment.status})`:JQ(e.segment.status))).style("fill-opacity",1)})()}),[ce,V,$,V,j,Z,re,W,x,r]),u((()=>{g.current&&cK(g.current).transition().duration(j).attr("width",l).attr("height",q)}),[l,q,j]);const ue=d(((e,t)=>ee([e,t])),[ee]),[de,fe]=re.range(),he=de!==fe;return he?ln("div",{className:RQ.timelineChart,children:[a[0]!==a[1]&&he&&ln(BQ,{selectedTestsCount:se,totalTestsCount:Y.length,translations:n,width:l,height:76,margins:{top:r0,right:n0,bottom:30,left:t0},domainRange:a,currentSelection:[ae,le],onChange:o,onReset:()=>o(a[0],a[1]),tickFormat:e=>qi(e)},l),ln("svg",{ref:g,width:l,height:q,children:[ln("defs",{children:Fi.map((e=>ln("pattern",{id:`gradient-${r}-${e}`,patternUnits:"userSpaceOnUse",width:"10",height:"10",patternTransform:"rotate(-45 5 5)",children:[ln("rect",{width:"5",height:"10",fill:QQ(e)}),ln("rect",{x:"5",width:"5",height:"10",fill:JQ(e)})]},e)))}),ln("g",{ref:m,className:RQ.axises,"data-label":"axises",transform:"translate(100,26)",children:[ln("g",{ref:b,className:RQ.xAxis,"data-label":"x-axis"}),ln("g",{ref:y,className:RQ.xGrid,"data-label":"grid"}),ln("g",{ref:_,className:RQ.groupAxis,"data-label":"groups-axis"})]}),ln("g",{ref:v,"data-label":"graph",transform:"translate(100,26)",children:ln("rect",{"data-label":"graph-selection",x:0,y:0,width:V,height:$,fill:"transparent"})})]}),X[0].getTime()!==X[1].getTime()&&he&&ln(KQ,{width:l,height:76,margins:{top:r0,right:n0,bottom:30,left:t0},scale:re,domainRange:X,currentSelection:Z,onChange:ue,onReset:()=>ee(X),tickFormat:e=>qi(e.getTime()-oe[0].getTime())}),mi(ln("div",{ref:E,"data-visible":O,className:RQ.tooltip,children:z?.id&&ln(FQ,{segments:ce,groupId:z.id,groupName:z.name,offsetTime:oe[0].getTime()})}),document.body),mi(ln("div",{ref:D,"data-visible":N,className:RQ.tooltip,children:F&&ln($Q,{segment:F,offsetTime:oe[0].getTime()})}),document.body)]}):null},a0=e=>{const{data:t,width:n,dataId:r,...i}=e,o=h((()=>((e,t)=>{const n=[];for(const r of e){const{host:e,thread:i,historyId:o,id:a,start:l,duration:s,status:c,hidden:u,name:d}=r,f=l+s,h=SQ(e,t),p=SQ(i,h),g=n.find((({id:e})=>e===p)),v=g?.segments??[],m=o??a,b=-1!==v.findIndex((({id:e})=>e===m)),y=v.find((({timeRange:e})=>e[0].getTime()===l&&e[1].getTime()===f));b||y||v.push({label:d,labelGroup:[d],timeRange:[new Date(l),new Date(f)],val:s,status:c,id:m,hidden:u}),!b&&y&&y.labelGroup.push(r.name),g?g.segments=v:n.push({id:p,name:i,segments:v})}return n})(t,r)),[t,r]);return ln("div",{className:RQ.timelineContainer,children:ln(VQ,{defaultWidth:n,children:ln(o0,{...i,data:o},r)})})};var l0={"metadata-item-title":"styles_metadata-item-title__vvDM7","metadata-item-value":"styles_metadata-item-value__cfOcH","metadata-test-type":"styles_metadata-test-type__g74xb","metadata-color-badge":"styles_metadata-color-badge__Aartr","status-passed":"styles_status-passed__t6OIX","status-failed":"styles_status-failed__cyIIg","status-broken":"styles_status-broken__B3Hmt","status-skipped":"styles_status-skipped__cvNTT","status-unknown":"styles_status-unknown__FvkCG"};const s0=({count:e})=>ln(dn,{"data-testid":"metadata-value",type:"ui",size:"m",tag:"div",className:l0["metadata-item-value"],children:e}),c0=({status:e,count:t})=>ln("div",{"data-testid":"metadata-value",className:l0["metadata-test-type"],children:[ln("div",{className:j(l0["metadata-color-badge"],l0?.[`status-${e}`])}),ln(dn,{type:"ui",size:"s",children:t})]}),u0=({className:e,renderComponent:t=s0,props:n,...r})=>{const{title:i}=n||{};return ln("div",{...r,className:j("metadata-item",e),children:[ln(dn,{type:"ui",size:"s",tag:"div",className:l0["metadata-item-title"],children:i}),ln(t||s0,{...n})]})};var d0={wrapper:"styles_wrapper__PZ24k",row:"styles_row__ndzQ1",pie:"styles_pie__bR8Vy",content:"styles_content__xx8wB",header:"styles_header__Lb-Ke",title:"styles_title__T589E",createdAt:"styles_createdAt__lBtju",reportStatus:"styles_reportStatus__gG5y4",metadata:"styles_metadata__4u-BW",statistics:"styles_statistics__RgaOy",pluginName:"styles_pluginName__c3AiZ"};const f0=e=>{const{createdAt:t,i18n:n}=e;if(!t)return null;const r=n("createdAt",{createdAt:t})??new Date(t).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"});return ln(dn,{tag:"time",size:"s",className:d0.createdAt,dateTime:t.toString(),children:r})},h0=e=>{const{statistic:t}=e,{percentage:n,slices:r}=Od(t);return ln(EW,{className:d0.chart,slices:r,percentage:Math.floor(n)})},p0=e=>{const{status:t,duration:n,i18n:r}=e,i=qi(n);return ln("p",{className:d0.reportStatus,children:[ln(hv,{status:t,children:r(`status.${t}`)??t}),ln("span",{children:[ln(dn,{type:"ui",size:"s",children:r("in")??"in"}),ln("span",{children:" "}),ln(dn,{type:"ui",size:"s",bold:!0,children:i})]})]})},g0=e=>e>999?"999+":e,v0=e=>{const{flakyCount:t=0,newCount:n=0,retryCount:r=0,i18n:i}=e;return ln("div",{className:d0.metadata,children:[ln($b,{tooltip:i("metadata.new",{count:n})??`${n} new tests`,icon:sn.testNew,children:0===n?"-":g0(n)}),ln($b,{tooltip:i("metadata.flaky",{count:t})??`${t} flaky tests`,icon:sn.lineIconBomb2,children:0===t?"-":g0(t)}),ln($b,{tooltip:i("metadata.retry",{count:r})??`${r} retry tests`,icon:sn.lineGeneralZap,children:0===r?"-":g0(r)})]})},m0=e=>{const{stats:t,i18n:n}=e,r=h((()=>["failed","broken","passed","skipped","unknown"].map((e=>({label:zp.capitalize(n(`status.${e}`)??e),value:t[e],status:e}))).filter((e=>e.value&&e.value>0))),[t,n]);return ln("div",{className:d0.statistics,children:[ln(u0,{props:{count:t.total,title:n("total")??"Total"},renderComponent:c0}),r.map((e=>ln(u0,{props:{count:e.value,title:e.label,status:e.status},renderComponent:c0},e.label)))]})},b0=e=>{const{summary:t,i18n:n}=e,{href:r,remoteHref:i,status:o,stats:a,name:l,duration:s,createdAt:c,newTests:u,flakyTests:d,retryTests:f,plugin:h}=t,p=i||r,g="string"==typeof p;return ln(g?"a":"div",{className:d0.wrapper,...g?{href:p,target:"_blank",rel:"noreferrer"}:{},onClick:g?e=>{""!==window.getSelection()?.toString()&&e.preventDefault()}:void 0,"data-testid":"summary-report-card",draggable:!1,children:[ln("div",{className:d0.row,children:[ln("div",{className:d0.content,children:[ln("div",{className:d0.header,children:[h&&ln(fn,{type:"ui",tag:"small",size:"s",className:d0.pluginName,children:h}),ln(hn,{tag:"h2",size:"s",className:d0.title,children:l}),ln(f0,{createdAt:c,i18n:n}),ln(p0,{status:o,duration:s,i18n:n})]}),ln(v0,{newCount:u?.length,flakyCount:d?.length,retryCount:f?.length,i18n:n})]}),ln("div",{className:d0.pie,children:ln(h0,{statistic:a})})]}),ln(m0,{stats:a,i18n:n})]})};export{Bi as ArrowButton,xg as Attachment,gp as AttachmentCode,kg as AttachmentEmpty,kp as AttachmentImage,mg as AttachmentVideo,vn as Button,yn as ButtonLink,fn as Code,Cg as CodeViewer,ov as Counter,jX as CurrentStatusChartWidget,Cq as DEFAULT_HEAT_MAP_EMPTY_ARIA_LABEL,_q as DEFAULT_HEAT_MAP_EMPTY_COLOR,kq as DEFAULT_HEAT_MAP_EMPTY_LABEL,Aq as DEFAULT_HEAT_MAP_FORCE_SQUARE,wq as DEFAULT_HEAT_MAP_HEIGHT,Tq as DEFAULT_HEAT_MAP_VALUE_FORMAT,xq as DEFAULT_HEAT_MAP_WIDTH,Sq as DEFAULT_HEAT_MAP_X_INNER_PADDING,Mq as DEFAULT_HEAT_MAP_Y_INNER_PADDING,bn as DropdownButton,ZX as DurationDynamicsChartWidget,YX as DurationsChartWidget,Jh as EmptyView,Eb as Grid,Ib as GridItem,hn as Heading,zq as HeatMap,Dq as HeatMapWidget,yg as HtmlPreview,mn as IconButton,$b as IconLabel,vg as ImageDiff,dv as Label,Bb as LanguagePicker,cv as Link,Yr as Loadable,Di as Menu,Fg as Modal,Xr as PageLoader,bv as ReportLogo,vv as ReportLogoFull,b0 as ReportSummaryCard,ri as SearchBox,un as Spinner,QY as StabilityDistributionWidget,aG as StatusAgePyramidChartWidget,HX as StatusDynamicsChartWidget,hv as StatusLabel,$X as StatusTransitionsChartWidget,EW as SuccessRatePieChart,cn as SvgIcon,ig as Tag,nG as TestBaseGrowthDynamicsChartWidget,TG as TestingPyramidWidget,dn as Text,jb as ThemeButton,u$ as ThemeProvider,a0 as Timeline,lv as Toggle,Ur as Tooltip,$r as TooltipWrapper,GX as TrSeveritiesChartWidget,rv as Tree,nv as TreeHeader,Qg as TreeItem,Yg as TreeItemIcon,l$ as TreeMapChart,p$ as TreeMapChartWidget,ev as TreeSection,tv as TreeStatusBar,xW as TrendChart,bW as TrendChartKind,kW as TrendChartWidget,xv as Widget,sn as allureIcons,Lq as defaultHeatMapAxisLeftConfig,Eq as defaultHeatMapAxisTopConfig,Oq as defaultHeatMapLegendConfig,yq as defaultHeatMapMarginConfig,wV as defaultTreeChartConfig,dW as defaultTrendChartAxisBottomConfig,fW as defaultTrendChartAxisLeftConfig,vW as defaultTrendChartConfig,uW as defaultTrendChartLegendConfig,hW as defaultTrendChartMarginConfig,pW as defaultTrendChartXScaleConfig,gW as defaultTrendChartYScaleConfig,_W as makeSymlogScale,wW as makeSymlogScaleBySeries,d$ as useCoverageDiffColors,h$ as useCoverageDiffTextColors,qr as useElementTruncation,f$ as useSuccessRateDistributionColors,c$ as useTheme,Vr as useTooltip};
17
17
  //# sourceMappingURL=index.js.map