diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000000..d126c269e5 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ + # To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/vendors-node_modules_allex_crc32_lib_crc32_esm_js-node_modules_github_quote-selection_dist_in-97b256-62a644cce704.js.download b/vendors-node_modules_allex_crc32_lib_crc32_esm_js-node_modules_github_quote-selection_dist_in-97b256-62a644cce704.js.download new file mode 100644 index 0000000000..1c3cd348cc --- /dev/null +++ b/vendors-node_modules_allex_crc32_lib_crc32_esm_js-node_modules_github_quote-selection_dist_in-97b256-62a644cce704.js.download @@ -0,0 +1,29 @@ +(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_allex_crc32_lib_crc32_esm_js-node_modules_github_quote-selection_dist_in-97b256","vendors-node_modules_github_catalyst_lib_index_js-node_modules_primer_live-region-element_dis-b2aea6"],{42677:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var r=function(){for(var e=new Uint32Array(256),t=256;t--;){for(var n=t,r=8;r--;)n=1&n?0xedb88320^n>>>1:n>>>1;e[t]=n}return function(t){var n=-1;"string"==typeof t&&(t=function(e){for(var t=e.length,n=Array(t),r=-1;++r>>8^e[255&n^t[r]];return(-1^n)>>>0}}(),o=function(e,t){var n,o=r(e);return t?((n=o)<0&&(n=0xffffffff+n+1),("0000000"+n.toString(16)).slice(-8)):o}},66661:(e,t,n)=>{"use strict";function r(e){let t=e.parentNode;if(null===t||!(t instanceof HTMLElement))throw Error();let n=0;t instanceof HTMLOListElement&&1!==t.start&&(n=t.start-1);let r=t.children;for(let t=0;tQuote,g:()=>MarkdownQuote});let o=0;function i(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}let s={INPUT:e=>e instanceof HTMLInputElement&&e.checked?"[x] ":"[ ] ",CODE(e){let t=e.textContent||"";return e.parentNode&&"PRE"===e.parentNode.nodeName?(e.textContent=`\`\`\` +${t.replace(/\n+$/,"")} +\`\`\` + +`,e):t.indexOf("`")>=0?`\`\` ${t} \`\``:`\`${t}\``},P(e){let t=document.createElement("p"),n=e.textContent||"";return t.textContent=n.replace(/<(\/?)(pre|strong|weak|em)>/g,"\\<$1$2\\>"),t},STRONG:e=>`**${e.textContent||""}**`,EM:e=>`_${e.textContent||""}_`,DEL:e=>`~${e.textContent||""}~`,BLOCKQUOTE(e){let t=(e.textContent||"").trim().replace(/^/gm,"> "),n=document.createElement("pre");return n.textContent=`${t} + +`,n},A(e){let t=e.textContent||"",n=e.getAttribute("href");return/^https?:/.test(t)&&t===n?t:n?`[${t}](${n})`:t},IMG(e){let t=e.getAttribute("alt")||"",n=e.getAttribute("src");if(!n)throw Error();let r=e.hasAttribute("width")?` width="${i(e.getAttribute("width")||"")}"`:"",o=e.hasAttribute("height")?` height="${i(e.getAttribute("height")||"")}"`:"";return r||o?`${i(t)}`:`![${t}](${n})`},LI(e){let t=e.parentNode;if(!t)throw Error();let n="";if(!function(e){let t=e.childNodes[0],n=e.childNodes[1];return!!t&&e.childNodes.length<3&&("OL"===t.nodeName||"UL"===t.nodeName)&&(!n||n.nodeType===Node.TEXT_NODE&&!(n.textContent||"").trim())}(e)){if("OL"===t.nodeName){if(o>0&&!t.previousSibling){let t=r(e)+o+1;n=`${t}\\. `}else n=`${r(e)+1}. `}else n="* "}let i=n.replace(/\S/g," "),s=(e.textContent||"").trim().replace(/^/gm,i),a=document.createElement("pre");return a.textContent=s.replace(i,n),a},OL(e){let t=document.createElement("li");return t.appendChild(document.createElement("br")),e.append(t),e},H1(e){let t=parseInt(e.nodeName.slice(1));return e.prepend(`${Array(t+1).join("#")} `),e},UL:e=>e};s.UL=s.OL;for(let e=2;e<=6;++e)s[`H${e}`]=s.H1;let Quote=class Quote{constructor(){this.selection=window.getSelection(),this.processSelectionText=e=>e}closest(e){let t=this.range.startContainer,n=t instanceof Element?t:t.parentElement;return n?n.closest(e):null}get active(){var e;return((null===(e=this.selection)||void 0===e?void 0:e.rangeCount)||0)>0}get range(){var e;return(null===(e=this.selection)||void 0===e?void 0:e.rangeCount)?this.selection.getRangeAt(0):new Range}set range(e){var t,n;null===(t=this.selection)||void 0===t||t.removeAllRanges(),null===(n=this.selection)||void 0===n||n.addRange(e)}set processSelectionTextFn(e){this.processSelectionText=e}get selectionText(){var e;return this.processSelectionText((null===(e=this.selection)||void 0===e?void 0:e.toString().trim())||"")}get quotedText(){return`> ${this.selectionText.replace(/\n/g,"\n> ")} + +`}select(e){this.selection&&(this.selection.removeAllRanges(),this.selection.selectAllChildren(e))}insert(e){e.value?e.value=`${e.value} + +${this.quotedText}`:e.value=this.quotedText,e.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1})),e.focus(),e.selectionStart=e.value.length,e.scrollTop=e.scrollHeight}};let MarkdownQuote=class MarkdownQuote extends Quote{constructor(e="",t){super(),this.scopeSelector=e,this.callback=t}get selectionText(){var e,t;if(!this.selection)return"";let n=function(e,t){let n=e.startContainer;if(!n||!n.parentNode||!(n.parentNode instanceof HTMLElement))throw Error("the range must start within an HTMLElement");let i=n.parentNode,s=e.cloneContents();if(t){let e=s.querySelector(t);e&&(s=document.createDocumentFragment()).appendChild(e)}o=0;let a=i.closest("li");if(i.closest("pre")){let e=document.createElement("pre");e.appendChild(s),(s=document.createDocumentFragment()).appendChild(e)}else if(a&&a.parentNode&&("OL"===a.parentNode.nodeName&&(o=r(a)),!s.querySelector("li"))){let e=document.createElement("li");if(!a.parentNode)throw Error();let t=document.createElement(a.parentNode.nodeName);e.appendChild(s),t.appendChild(e),(s=document.createDocumentFragment()).appendChild(t)}return s}(this.range,null!==(e=this.scopeSelector)&&void 0!==e?e:"");null===(t=this.callback)||void 0===t||t.call(this,n),function(e){let t=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.nodeName in s&&!function(e){if(e instanceof HTMLAnchorElement&&1===e.childNodes.length){let t=e.childNodes[0];if(t instanceof HTMLImageElement)return t.src===e.href}return!1}(e)&&("IMG"===e.nodeName||null!=e.firstChild||"INPUT"===e.nodeName&&e instanceof HTMLInputElement&&"checkbox"===e.type)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),n=[],r=t.nextNode();for(;r;)r instanceof HTMLElement&&n.push(r),r=t.nextNode();for(let e of(n.reverse(),n))e.replaceWith(s[e.nodeName](e))}(n);let i=document.body;if(!i)return"";let a=document.createElement("div");a.appendChild(n),a.style.cssText="position:absolute;left:-9999px;",i.appendChild(a);let u="";try{let e=document.createRange();e.selectNodeContents(a),this.selection.removeAllRanges(),this.selection.addRange(e),u=this.selection.toString(),this.selection.removeAllRanges(),e.detach()}finally{i.removeChild(a)}return this.processSelectionText(u.trim())}}},85828:()=>{!function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof HTMLElement){var e=!1;try{var t=document.createElement("div");t.addEventListener("focus",function(e){e.preventDefault(),e.stopPropagation()},!0),t.focus(Object.defineProperty({},"preventScroll",{get:function(){if(navigator&&void 0!==navigator.userAgent&&navigator.userAgent&&navigator.userAgent.match(/Edge\/1[7-8]/))return e=!1;e=!0}}))}catch(e){}if(void 0===HTMLElement.prototype.nativeFocus&&!e){HTMLElement.prototype.nativeFocus=HTMLElement.prototype.focus;var n=function(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t&&t!==r;)(t.offsetHeight=0||(o[n]=e[n]);return o}function s(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var a={init:"init"},u=function(e){var t=e.value;return void 0===t?"":t},l=function(){return t.createElement(t.Fragment,null,"\xa0")},c={Cell:u,width:150,minWidth:0,maxWidth:Number.MAX_SAFE_INTEGER};function d(){for(var e=arguments.length,t=Array(e),n=0;n(i="number"==typeof i?i:1/0)){var s=o;o=i,i=s}return e.filter(function(e){return t.some(function(t){var n=e.values[t];return n>=o&&n<=i})})};ey.autoRemove=function(e){return!e||"number"!=typeof e[0]&&"number"!=typeof e[1]};var eb=Object.freeze({__proto__:null,text:el,exactText:ec,exactTextCase:ed,includes:ef,includesAll:ep,includesSome:eh,includesValue:eg,exact:em,equals:ev,between:ey});a.resetFilters="resetFilters",a.setFilter="setFilter",a.setAllFilters="setAllFilters";var ew=function(e){e.stateReducers.push(eR),e.useInstance.push(eE)};function eR(e,t,n,r){if(t.type===a.init)return o({filters:[]},e);if(t.type===a.resetFilters)return o({},e,{filters:r.initialState.filters||[]});if(t.type===a.setFilter){var i=t.columnId,s=t.filterValue,u=r.allColumns,l=r.filterTypes,c=u.find(function(e){return e.id===i});if(!c)throw Error("React-Table: Could not find a column with id: "+i);var d=T(c.filter,l||{},eb),f=e.filters.find(function(e){return e.id===i}),p=m(s,f&&f.value);return k(d.autoRemove,p,c)?o({},e,{filters:e.filters.filter(function(e){return e.id!==i})}):o({},e,f?{filters:e.filters.map(function(e){return e.id===i?{id:i,value:p}:e})}:{filters:[].concat(e.filters,[{id:i,value:p}])})}if(t.type===a.setAllFilters){var h=t.filters,g=r.allColumns,v=r.filterTypes;return o({},e,{filters:m(h,e.filters).filter(function(e){var t=g.find(function(t){return t.id===e.id});return!k(T(t.filter,v||{},eb).autoRemove,e.value,t)})})}}function eE(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.rowsById,s=e.allColumns,u=e.filterTypes,l=e.manualFilters,c=e.defaultCanFilter,d=void 0!==c&&c,f=e.disableFilters,p=e.state.filters,h=e.dispatch,g=e.autoResetFilters,m=t.useCallback(function(e,t){h({type:a.setFilter,columnId:e,filterValue:t})},[h]),y=t.useCallback(function(e){h({type:a.setAllFilters,filters:e})},[h]);s.forEach(function(e){var t=e.id,n=e.accessor,r=e.defaultCanFilter,o=e.disableFilters;e.canFilter=n?P(!0!==o&&void 0,!0!==f&&void 0,!0):P(r,d,!1),e.setFilter=function(t){return m(e.id,t)};var i=p.find(function(e){return e.id===t});e.filterValue=i&&i.value});var w=t.useMemo(function(){if(l||!p.length)return[r,o,i];var e=[],t={};return[function n(r,o){void 0===o&&(o=0);var i=r;return(i=p.reduce(function(e,t){var n=t.id,r=t.value,i=s.find(function(e){return e.id===n});if(!i)return e;0===o&&(i.preFilteredRows=e);var a=T(i.filter,u||{},eb);return a?(i.filteredRows=a(e,[n],r),i.filteredRows):(console.warn("Could not find a valid 'column.filter' for column with the ID: "+i.id+"."),e)},r)).forEach(function(r){e.push(r),t[r.id]=r,r.subRows&&(r.subRows=r.subRows&&r.subRows.length>0?n(r.subRows,o+1):r.subRows)}),i}(r),e,t]},[l,p,r,o,i,s,u]),R=w[0],E=w[1],C=w[2];t.useMemo(function(){s.filter(function(e){return!p.find(function(t){return t.id===e.id})}).forEach(function(e){e.preFilteredRows=R,e.filteredRows=R})},[R,p,s]);var S=v(void 0===g||g);b(function(){S()&&h({type:a.resetFilters})},[h,l?null:n]),Object.assign(e,{preFilteredRows:r,preFilteredFlatRows:o,preFilteredRowsById:i,filteredRows:R,filteredFlatRows:E,filteredRowsById:C,rows:R,flatRows:E,rowsById:C,setFilter:m,setAllFilters:y})}ew.pluginName="useFilters",a.resetGlobalFilter="resetGlobalFilter",a.setGlobalFilter="setGlobalFilter";var eC=function(e){e.stateReducers.push(eS),e.useInstance.push(ex)};function eS(e,t,n,r){if(t.type===a.resetGlobalFilter)return o({},e,{globalFilter:r.initialState.globalFilter||void 0});if(t.type===a.setGlobalFilter){var s=t.filterValue,u=r.userFilterTypes,l=T(r.globalFilter,u||{},eb),c=m(s,e.globalFilter);return k(l.autoRemove,c)?(e.globalFilter,i(e,["globalFilter"])):o({},e,{globalFilter:c})}}function ex(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.rowsById,s=e.allColumns,u=e.filterTypes,l=e.globalFilter,c=e.manualGlobalFilter,d=e.state.globalFilter,f=e.dispatch,p=e.autoResetGlobalFilter,h=e.disableGlobalFilter,g=t.useCallback(function(e){f({type:a.setGlobalFilter,filterValue:e})},[f]),m=t.useMemo(function(){if(c||void 0===d)return[r,o,i];var e=[],t={},n=T(l,u||{},eb);if(!n)return console.warn("Could not find a valid 'globalFilter' option."),r;s.forEach(function(e){var t=e.disableGlobalFilter;e.canFilter=P(!0!==t&&void 0,!0!==h&&void 0,!0)});var a=s.filter(function(e){return!0===e.canFilter});return[function r(o){return(o=n(o,a.map(function(e){return e.id}),d)).forEach(function(n){e.push(n),t[n.id]=n,n.subRows=n.subRows&&n.subRows.length?r(n.subRows):n.subRows}),o}(r),e,t]},[c,d,l,u,s,r,o,i,h]),y=m[0],w=m[1],R=m[2],E=v(void 0===p||p);b(function(){E()&&f({type:a.resetGlobalFilter})},[f,c?null:n]),Object.assign(e,{preGlobalFilteredRows:r,preGlobalFilteredFlatRows:o,preGlobalFilteredRowsById:i,globalFilteredRows:y,globalFilteredFlatRows:w,globalFilteredRowsById:R,rows:y,flatRows:w,rowsById:R,setGlobalFilter:g,disableGlobalFilter:h})}function eP(e,t){return t.reduce(function(e,t){return e+("number"==typeof t?t:0)},0)}eC.pluginName="useGlobalFilter";var eA=Object.freeze({__proto__:null,sum:eP,min:function(e){var t=e[0]||0;return e.forEach(function(e){"number"==typeof e&&(t=Math.min(t,e))}),t},max:function(e){var t=e[0]||0;return e.forEach(function(e){"number"==typeof e&&(t=Math.max(t,e))}),t},minMax:function(e){var t=e[0]||0,n=e[0]||0;return e.forEach(function(e){"number"==typeof e&&(t=Math.min(t,e),n=Math.max(n,e))}),t+".."+n},average:function(e){return eP(0,e)/e.length},median:function(e){if(!e.length)return null;var t=Math.floor(e.length/2),n=[].concat(e).sort(function(e,t){return e-t});return e.length%2!=0?n[t]:(n[t-1]+n[t])/2},unique:function(e){return Array.from(new Set(e).values())},uniqueCount:function(e){return new Set(e).size},count:function(e){return e.length}}),eO=[],eM={};a.resetGroupBy="resetGroupBy",a.setGroupBy="setGroupBy",a.toggleGroupBy="toggleGroupBy";var eT=function(e){e.getGroupByToggleProps=[ek],e.stateReducers.push(eI),e.visibleColumnsDeps.push(function(e,t){return[].concat(e,[t.instance.state.groupBy])}),e.visibleColumns.push(eB),e.useInstance.push(eN),e.prepareRow.push(eG)};eT.pluginName="useGroupBy";var ek=function(e,t){var n=t.header;return[e,{onClick:n.canGroupBy?function(e){e.persist(),n.toggleGroupBy()}:void 0,style:{cursor:n.canGroupBy?"pointer":void 0},title:"Toggle GroupBy"}]};function eI(e,t,n,r){if(t.type===a.init)return o({groupBy:[]},e);if(t.type===a.resetGroupBy)return o({},e,{groupBy:r.initialState.groupBy||[]});if(t.type===a.setGroupBy)return o({},e,{groupBy:t.value});if(t.type===a.toggleGroupBy){var i=t.columnId,s=t.value,u=void 0!==s?s:!e.groupBy.includes(i);return o({},e,u?{groupBy:[].concat(e.groupBy,[i])}:{groupBy:e.groupBy.filter(function(e){return e!==i})})}}function eB(e,t){var n=t.instance.state.groupBy;return(e=[].concat(n.map(function(t){return e.find(function(e){return e.id===t})}).filter(Boolean),e.filter(function(e){return!n.includes(e.id)}))).forEach(function(e){e.isGrouped=n.includes(e.id),e.groupedIndex=n.indexOf(e.id)}),e}var eF={};function eN(e){var n=e.data,r=e.rows,i=e.flatRows,s=e.rowsById,u=e.allColumns,l=e.flatHeaders,c=e.groupByFn,d=void 0===c?eH:c,p=e.manualGroupBy,h=e.aggregations,m=void 0===h?eF:h,y=e.plugins,w=e.state.groupBy,R=e.dispatch,E=e.autoResetGroupBy,C=e.disableGroupBy,S=e.defaultCanGroupBy,x=e.getHooks;g(y,["useColumnOrder","useFilters"],"useGroupBy");var A=v(e);u.forEach(function(t){var n=t.accessor,r=t.defaultGroupBy,o=t.disableGroupBy;t.canGroupBy=n?P(t.canGroupBy,!0!==o&&void 0,!0!==C&&void 0,!0):P(t.canGroupBy,r,S,!1),t.canGroupBy&&(t.toggleGroupBy=function(){return e.toggleGroupBy(t.id)}),t.Aggregated=t.Aggregated||t.Cell});var M=t.useCallback(function(e,t){R({type:a.toggleGroupBy,columnId:e,value:t})},[R]),T=t.useCallback(function(e){R({type:a.setGroupBy,value:e})},[R]);l.forEach(function(e){e.getGroupByToggleProps=f(x().getGroupByToggleProps,{instance:A(),header:e})});var k=t.useMemo(function(){if(p||!w.length)return[r,i,s,eO,eM,i,s];var e=w.filter(function(e){return u.find(function(t){return t.id===e})}),t=[],n={},a=[],l={},c=[],f={},h=function r(i,s,p){if(void 0===s&&(s=0),s===e.length)return i.map(function(e){return o({},e,{depth:s})});var h=e[s];return Object.entries(d(i,h)).map(function(o,i){var d,g,v=o[0],y=o[1],b=h+":"+v,w=r(y,s+1,b=p?p+">"+b:b),R=s?O(y,"leafRows"):y,E={id:b,isGrouped:!0,groupByID:h,groupByVal:v,values:(d=s,g={},u.forEach(function(t){if(e.includes(t.id))g[t.id]=y[0]?y[0].values[t.id]:null;else{var n="function"==typeof t.aggregate?t.aggregate:m[t.aggregate]||eA[t.aggregate];if(n){var r=y.map(function(e){return e.values[t.id]}),o=R.map(function(e){var n=e.values[t.id];if(!d&&t.aggregateValue){var r="function"==typeof t.aggregateValue?t.aggregateValue:m[t.aggregateValue]||eA[t.aggregateValue];if(!r)throw console.info({column:t}),Error("React Table: Invalid column.aggregateValue option for column listed above");n=r(n,e,t)}return n});g[t.id]=n(o,r)}else{if(t.aggregate)throw console.info({column:t}),Error("React Table: Invalid column.aggregate option for column listed above");g[t.id]=null}}}),g),subRows:w,leafRows:R,depth:s,index:i};return w.forEach(function(e){t.push(e),n[e.id]=e,e.isGrouped?(a.push(e),l[e.id]=e):(c.push(e),f[e.id]=e)}),E})}(r);return h.forEach(function(e){t.push(e),n[e.id]=e,e.isGrouped?(a.push(e),l[e.id]=e):(c.push(e),f[e.id]=e)}),[h,t,n,a,l,c,f]},[p,w,r,i,s,u,m,d]),I=k[0],B=k[1],F=k[2],N=k[3],G=k[4],H=k[5],L=k[6],W=v(void 0===E||E);b(function(){W()&&R({type:a.resetGroupBy})},[R,p?null:n]),Object.assign(e,{preGroupedRows:r,preGroupedFlatRow:i,preGroupedRowsById:s,groupedRows:I,groupedFlatRows:B,groupedRowsById:F,onlyGroupedFlatRows:N,onlyGroupedRowsById:G,nonGroupedFlatRows:H,nonGroupedRowsById:L,rows:I,flatRows:B,rowsById:F,toggleGroupBy:M,setGroupBy:T})}function eG(e){e.allCells.forEach(function(t){var n;t.isGrouped=t.column.isGrouped&&t.column.id===e.groupByID,t.isPlaceholder=!t.isGrouped&&t.column.isGrouped,t.isAggregated=!t.isGrouped&&!t.isPlaceholder&&(null==(n=e.subRows)?void 0:n.length)})}function eH(e,t){return e.reduce(function(e,n,r){var o=""+n.values[t];return e[o]=Array.isArray(e[o])?e[o]:[],e[o].push(n),e},{})}var eL=/([0-9]+)/gm;function eW(e,t){return e===t?0:e>t?1:-1}function ej(e,t,n){return[e.values[n],t.values[n]]}function eD(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}var ez=Object.freeze({__proto__:null,alphanumeric:function(e,t,n){var r=ej(e,t,n),o=r[0],i=r[1];for(o=eD(o),i=eD(i),o=o.split(eL).filter(Boolean),i=i.split(eL).filter(Boolean);o.length&&i.length;){var s=o.shift(),a=i.shift(),u=parseInt(s,10),l=parseInt(a,10),c=[u,l].sort();if(isNaN(c[0])){if(s>a)return 1;if(a>s)return -1}else{if(isNaN(c[1]))return isNaN(u)?-1:1;if(u>l)return 1;if(l>u)return -1}}return o.length-i.length},datetime:function(e,t,n){var r=ej(e,t,n),o=r[0],i=r[1];return eW(o=o.getTime(),i=i.getTime())},basic:function(e,t,n){var r=ej(e,t,n);return eW(r[0],r[1])},string:function(e,t,n){var r=ej(e,t,n),o=r[0],i=r[1];for(o=o.split("").filter(Boolean),i=i.split("").filter(Boolean);o.length&&i.length;){var s=o.shift(),a=i.shift(),u=s.toLowerCase(),l=a.toLowerCase();if(u>l)return 1;if(l>u)return -1;if(s>a)return 1;if(a>s)return -1}return o.length-i.length},number:function(e,t,n){var r=ej(e,t,n),o=r[0],i=r[1],s=/[^0-9.]/gi;return eW(o=Number(String(o).replace(s,"")),i=Number(String(i).replace(s,"")))}});a.resetSortBy="resetSortBy",a.setSortBy="setSortBy",a.toggleSortBy="toggleSortBy",a.clearSortBy="clearSortBy",c.sortType="alphanumeric",c.sortDescFirst=!1;var e$=function(e){e.getSortByToggleProps=[eq],e.stateReducers.push(e_),e.useInstance.push(eQ)};e$.pluginName="useSortBy";var eq=function(e,t){var n=t.instance,r=t.column,o=n.isMultiSortEvent,i=void 0===o?function(e){return e.shiftKey}:o;return[e,{onClick:r.canSort?function(e){e.persist(),r.toggleSortBy(void 0,!n.disableMultiSort&&i(e))}:void 0,style:{cursor:r.canSort?"pointer":void 0},title:r.canSort?"Toggle SortBy":void 0}]};function e_(e,t,n,r){if(t.type===a.init)return o({sortBy:[]},e);if(t.type===a.resetSortBy)return o({},e,{sortBy:r.initialState.sortBy||[]});if(t.type===a.clearSortBy)return o({},e,{sortBy:e.sortBy.filter(function(e){return e.id!==t.columnId})});if(t.type===a.setSortBy)return o({},e,{sortBy:t.sortBy});if(t.type===a.toggleSortBy){var i,s=t.columnId,u=t.desc,l=t.multi,c=r.allColumns,d=r.disableMultiSort,f=r.disableSortRemove,p=r.disableMultiRemove,h=r.maxMultiSortColCount,g=void 0===h?Number.MAX_SAFE_INTEGER:h,m=e.sortBy,v=c.find(function(e){return e.id===s}).sortDescFirst,y=m.find(function(e){return e.id===s}),b=m.findIndex(function(e){return e.id===s}),w=null!=u,R=[];return"toggle"!=(i=!d&&l?y?"toggle":"add":b!==m.length-1||1!==m.length?"replace":y?"toggle":"replace")||f||w||l&&p||!(y&&y.desc&&!v||!y.desc&&v)||(i="remove"),"replace"===i?R=[{id:s,desc:w?u:v}]:"add"===i?(R=[].concat(m,[{id:s,desc:w?u:v}])).splice(0,R.length-g):"toggle"===i?R=m.map(function(e){return e.id===s?o({},e,{desc:w?u:!y.desc}):e}):"remove"===i&&(R=m.filter(function(e){return e.id!==s})),o({},e,{sortBy:R})}}function eQ(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.allColumns,s=e.orderByFn,u=void 0===s?eV:s,l=e.sortTypes,c=e.manualSortBy,d=e.defaultCanSort,p=e.disableSortBy,h=e.flatHeaders,m=e.state.sortBy,y=e.dispatch,w=e.plugins,R=e.getHooks,E=e.autoResetSortBy;g(w,["useFilters","useGlobalFilter","useGroupBy","usePivotColumns"],"useSortBy");var C=t.useCallback(function(e){y({type:a.setSortBy,sortBy:e})},[y]),S=t.useCallback(function(e,t,n){y({type:a.toggleSortBy,columnId:e,desc:t,multi:n})},[y]),x=v(e);h.forEach(function(e){var t=e.accessor,n=e.canSort,r=e.disableSortBy,o=e.id,i=t?P(!0!==r&&void 0,!0!==p&&void 0,!0):P(d,n,!1);e.canSort=i,e.canSort&&(e.toggleSortBy=function(t,n){return S(e.id,t,n)},e.clearSortBy=function(){y({type:a.clearSortBy,columnId:e.id})}),e.getSortByToggleProps=f(R().getSortByToggleProps,{instance:x(),column:e});var s=m.find(function(e){return e.id===o});e.isSorted=!!s,e.sortedIndex=m.findIndex(function(e){return e.id===o}),e.isSortedDesc=e.isSorted?s.desc:void 0});var O=t.useMemo(function(){if(c||!m.length)return[r,o];var e=[],t=m.filter(function(e){return i.find(function(t){return t.id===e.id})});return[function n(r){var o=u(r,t.map(function(e){var t=i.find(function(t){return t.id===e.id});if(!t)throw Error("React-Table: Could not find a column with id: "+e.id+" while sorting");var n=t.sortType,r=A(n)||(l||{})[n]||ez[n];if(!r)throw Error("React-Table: Could not find a valid sortType of '"+n+"' for column '"+e.id+"'.");return function(t,n){return r(t,n,e.id,e.desc)}}),t.map(function(e){var t=i.find(function(t){return t.id===e.id});return t&&t.sortInverted?e.desc:!e.desc}));return o.forEach(function(t){e.push(t),t.subRows&&0!==t.subRows.length&&(t.subRows=n(t.subRows))}),o}(r),e]},[c,m,r,o,i,u,l]),M=O[0],T=O[1],k=v(void 0===E||E);b(function(){k()&&y({type:a.resetSortBy})},[c?null:n]),Object.assign(e,{preSortedRows:r,preSortedFlatRows:o,sortedRows:M,sortedFlatRows:T,rows:M,flatRows:T,setSortBy:C,toggleSortBy:S})}function eV(e,t,n){return[].concat(e).sort(function(e,r){for(var o=0;oe.pageIndex?l=-1===i?s.length>=e.pageSize:u-1),l?o({},e,{pageIndex:u}):e}if(t.type===a.setPageSize){var c=t.pageSize,d=e.pageSize*e.pageIndex;return o({},e,{pageIndex:Math.floor(d/c),pageSize:c})}}function eX(e){var n=e.rows,r=e.autoResetPage,o=e.manualExpandedKey,i=void 0===o?"expanded":o,s=e.plugins,u=e.pageCount,l=e.paginateExpandedRows,c=void 0===l||l,d=e.expandSubRows,f=void 0===d||d,p=e.state,h=p.pageSize,m=p.pageIndex,y=p.expanded,w=p.globalFilter,R=p.filters,E=p.groupBy,C=p.sortBy,S=e.dispatch,x=e.data,P=e.manualPagination;g(s,["useGlobalFilter","useFilters","useGroupBy","useSortBy","useExpanded"],"usePagination");var A=v(void 0===r||r);b(function(){A()&&S({type:a.resetPage})},[S,P?null:x,w,R,E,C]);var O=P?u:Math.ceil(n.length/h),T=t.useMemo(function(){return O>0?[].concat(Array(O)).fill(null).map(function(e,t){return t}):[]},[O]),k=t.useMemo(function(){var e;if(P)e=n;else{var t=h*m;e=n.slice(t,t+h)}return c?e:M(e,{manualExpandedKey:i,expanded:y,expandSubRows:f})},[f,y,i,P,m,h,c,n]),I=m>0,B=-1===O?k.length>=h:m-1&&i.push(o.splice(t,1)[0])}();return[].concat(i,o)}function tm(e){var n=e.dispatch;e.setColumnOrder=t.useCallback(function(e){return n({type:a.setColumnOrder,columnOrder:e})},[n])}tp.pluginName="useColumnOrder",c.canResize=!0,a.columnStartResizing="columnStartResizing",a.columnResizing="columnResizing",a.columnDoneResizing="columnDoneResizing",a.resetResize="resetResize";var tv=function(e){e.getResizerProps=[ty],e.getHeaderProps.push({style:{position:"relative"}}),e.stateReducers.push(tb),e.useInstance.push(tR),e.useInstanceBeforeDimensions.push(tw)},ty=function(e,t){var n=t.instance,r=t.header,o=n.dispatch,i=function(e,t){var n=!1;if("touchstart"===e.type){if(e.touches&&e.touches.length>1)return;n=!0}var r,i,s,u=(r=[],function e(t){t.columns&&t.columns.length&&t.columns.map(e),r.push(t)}(t),r).map(function(e){return[e.id,e.totalWidth]}),l=n?Math.round(e.touches[0].clientX):e.clientX,c=function(){window.cancelAnimationFrame(i),i=null,o({type:a.columnDoneResizing})},d=function(){window.cancelAnimationFrame(i),i=null,o({type:a.columnResizing,clientX:s})},f=function(e){s=e,i||(i=window.requestAnimationFrame(d))},p={mouse:{moveEvent:"mousemove",moveHandler:function(e){return f(e.clientX)},upEvent:"mouseup",upHandler:function(e){document.removeEventListener("mousemove",p.mouse.moveHandler),document.removeEventListener("mouseup",p.mouse.upHandler),c()}},touch:{moveEvent:"touchmove",moveHandler:function(e){return e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(e.touches[0].clientX),!1},upEvent:"touchend",upHandler:function(e){document.removeEventListener(p.touch.moveEvent,p.touch.moveHandler),document.removeEventListener(p.touch.upEvent,p.touch.moveHandler),c()}}},h=n?p.touch:p.mouse,g=!!function(){if("boolean"==typeof B)return B;var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){e=!1}return B=e}()&&{passive:!1};document.addEventListener(h.moveEvent,h.moveHandler,g),document.addEventListener(h.upEvent,h.upHandler,g),o({type:a.columnStartResizing,columnId:t.id,columnWidth:t.totalWidth,headerIdWidths:u,clientX:l})};return[e,{onMouseDown:function(e){return e.persist()||i(e,r)},onTouchStart:function(e){return e.persist()||i(e,r)},style:{cursor:"col-resize"},draggable:!1,role:"separator"}]};function tb(e,t){if(t.type===a.init)return o({columnResizing:{columnWidths:{}}},e);if(t.type===a.resetResize)return o({},e,{columnResizing:{columnWidths:{}}});if(t.type===a.columnStartResizing){var n=t.clientX,r=t.columnId,i=t.columnWidth,s=t.headerIdWidths;return o({},e,{columnResizing:o({},e.columnResizing,{startX:n,headerIdWidths:s,columnWidth:i,isResizingColumn:r})})}if(t.type===a.columnResizing){var u=t.clientX,l=e.columnResizing,c=l.startX,d=l.columnWidth,f=l.headerIdWidths,p=(u-c)/d,h={};return(void 0===f?[]:f).forEach(function(e){var t=e[0],n=e[1];h[t]=Math.max(n+n*p,0)}),o({},e,{columnResizing:o({},e.columnResizing,{columnWidths:o({},e.columnResizing.columnWidths,{},h)})})}return t.type===a.columnDoneResizing?o({},e,{columnResizing:o({},e.columnResizing,{startX:null,isResizingColumn:null})}):void 0}tv.pluginName="useResizeColumns";var tw=function(e){var t=e.flatHeaders,n=e.disableResizing,r=e.getHooks,o=e.state.columnResizing,i=v(e);t.forEach(function(e){var t=P(!0!==e.disableResizing&&void 0,!0!==n&&void 0,!0);e.canResize=t,e.width=o.columnWidths[e.id]||e.originalWidth||e.width,e.isResizing=o.isResizingColumn===e.id,t&&(e.getResizerProps=f(r().getResizerProps,{instance:i(),header:e}))})};function tR(e){var n=e.plugins,r=e.dispatch,o=e.autoResetResize,i=e.columns;g(n,["useAbsoluteLayout"],"useResizeColumns");var s=v(void 0===o||o);b(function(){s()&&r({type:a.resetResize})},[i]),Object.assign(e,{resetResizing:t.useCallback(function(){return r({type:a.resetResize})},[r])})}var tE={position:"absolute",top:0},tC=function(e){e.getTableBodyProps.push(tS),e.getRowProps.push(tS),e.getHeaderGroupProps.push(tS),e.getFooterGroupProps.push(tS),e.getHeaderProps.push(function(e,t){var n=t.column;return[e,{style:o({},tE,{left:n.totalLeft+"px",width:n.totalWidth+"px"})}]}),e.getCellProps.push(function(e,t){var n=t.cell;return[e,{style:o({},tE,{left:n.column.totalLeft+"px",width:n.column.totalWidth+"px"})}]}),e.getFooterProps.push(function(e,t){var n=t.column;return[e,{style:o({},tE,{left:n.totalLeft+"px",width:n.totalWidth+"px"})}]})};tC.pluginName="useAbsoluteLayout";var tS=function(e,t){return[e,{style:{position:"relative",width:t.instance.totalColumnsWidth+"px"}}]},tx={display:"inline-block",boxSizing:"border-box"},tP=function(e,t){return[e,{style:{display:"flex",width:t.instance.totalColumnsWidth+"px"}}]},tA=function(e){e.getRowProps.push(tP),e.getHeaderGroupProps.push(tP),e.getFooterGroupProps.push(tP),e.getHeaderProps.push(function(e,t){var n=t.column;return[e,{style:o({},tx,{width:n.totalWidth+"px"})}]}),e.getCellProps.push(function(e,t){var n=t.cell;return[e,{style:o({},tx,{width:n.column.totalWidth+"px"})}]}),e.getFooterProps.push(function(e,t){var n=t.column;return[e,{style:o({},tx,{width:n.totalWidth+"px"})}]})};function tO(e){e.getTableProps.push(tM),e.getRowProps.push(tT),e.getHeaderGroupProps.push(tT),e.getFooterGroupProps.push(tT),e.getHeaderProps.push(tk),e.getCellProps.push(tI),e.getFooterProps.push(tB)}tA.pluginName="useBlockLayout",tO.pluginName="useFlexLayout";var tM=function(e,t){return[e,{style:{minWidth:t.instance.totalColumnsMinWidth+"px"}}]},tT=function(e,t){return[e,{style:{display:"flex",flex:"1 0 auto",minWidth:t.instance.totalColumnsMinWidth+"px"}}]},tk=function(e,t){var n=t.column;return[e,{style:{boxSizing:"border-box",flex:n.totalFlexWidth?n.totalFlexWidth+" 0 auto":void 0,minWidth:n.totalMinWidth+"px",width:n.totalWidth+"px"}}]},tI=function(e,t){var n=t.cell;return[e,{style:{boxSizing:"border-box",flex:n.column.totalFlexWidth+" 0 auto",minWidth:n.column.totalMinWidth+"px",width:n.column.totalWidth+"px"}}]},tB=function(e,t){var n=t.column;return[e,{style:{boxSizing:"border-box",flex:n.totalFlexWidth?n.totalFlexWidth+" 0 auto":void 0,minWidth:n.totalMinWidth+"px",width:n.totalWidth+"px"}}]};function tF(e){e.stateReducers.push(tL),e.getTableProps.push(tN),e.getHeaderProps.push(tG),e.getRowProps.push(tH)}a.columnStartResizing="columnStartResizing",a.columnResizing="columnResizing",a.columnDoneResizing="columnDoneResizing",a.resetResize="resetResize",tF.pluginName="useGridLayout";var tN=function(e,t){var n=t.instance;return[e,{style:{display:"grid",gridTemplateColumns:n.visibleColumns.map(function(e){var t;return n.state.gridLayout.columnWidths[e.id]?n.state.gridLayout.columnWidths[e.id]+"px":(null==(t=n.state.columnResizing)?void 0:t.isResizingColumn)?n.state.gridLayout.startWidths[e.id]+"px":"number"==typeof e.width?e.width+"px":e.width}).join(" ")}}]},tG=function(e,t){var n=t.column;return[e,{id:"header-cell-"+n.id,style:{position:"sticky",gridColumn:"span "+n.totalVisibleHeaderCount}}]},tH=function(e,t){var n=t.row;return n.isExpanded?[e,{style:{gridColumn:"1 / "+(n.cells.length+1)}}]:[e,{}]};function tL(e,t,n,r){if(t.type===a.init)return o({gridLayout:{columnWidths:{}}},e);if(t.type===a.resetResize)return o({},e,{gridLayout:{columnWidths:{}}});if(t.type===a.columnStartResizing){var i=t.columnId,s=t.headerIdWidths,u=tW(i);if(void 0!==u){var l=r.visibleColumns.reduce(function(e,t){var n;return o({},e,((n={})[t.id]=tW(t.id),n))},{}),c=r.visibleColumns.reduce(function(e,t){var n;return o({},e,((n={})[t.id]=t.minWidth,n))},{}),d=r.visibleColumns.reduce(function(e,t){var n;return o({},e,((n={})[t.id]=t.maxWidth,n))},{}),f=s.map(function(e){var t=e[0];return[t,tW(t)]});return o({},e,{gridLayout:o({},e.gridLayout,{startWidths:l,minWidths:c,maxWidths:d,headerIdGridWidths:f,columnWidth:u})})}return e}if(t.type===a.columnResizing){var p=t.clientX,h=e.columnResizing.startX,g=e.gridLayout,m=g.columnWidth,v=g.minWidths,y=g.maxWidths,b=g.headerIdGridWidths,w=(p-h)/m,R={};return(void 0===b?[]:b).forEach(function(e){var t=e[0],n=e[1];R[t]=Math.min(Math.max(v[t],n+n*w),y[t])}),o({},e,{gridLayout:o({},e.gridLayout,{columnWidths:o({},e.gridLayout.columnWidths,{},R)})})}return t.type===a.columnDoneResizing?o({},e,{gridLayout:o({},e.gridLayout,{startWidths:{},minWidths:{},maxWidths:{}})}):void 0}function tW(e){var t,n=null==(t=document.getElementById("header-cell-"+e))?void 0:t.offsetWidth;if(void 0!==n)return n}e._UNSTABLE_usePivotColumns=eY,e.actions=a,e.defaultColumn=c,e.defaultGroupByFn=eH,e.defaultOrderByFn=eV,e.defaultRenderer=u,e.emptyRenderer=l,e.ensurePluginOrder=g,e.flexRender=R,e.functionalUpdate=m,e.loopHooks=h,e.makePropGetter=f,e.makeRenderer=w,e.reduceHooks=p,e.safeUseLayoutEffect=y,e.useAbsoluteLayout=tC,e.useAsyncDebounce=function(e,n){void 0===n&&(n=0);var o,i=t.useRef({}),s=v(e),a=v(n);return t.useCallback((o=r(regeneratorRuntime.mark(function e(){var t,n,o,u=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=Array(t=u.length),o=0;o1?n-1:0),i=1;i{e.exports=n(28829)},21409:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;tf});var o=n(98587),i=n(84221);function s(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var a=n(96540),u=n(15019),l=n(92403),c=function(e,t){return e&&t&&t.split(" ").forEach(function(t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=s(e.className,t):e.setAttribute("class",s(e.className&&e.className.baseVal||"",t))})},d=function(e){function t(){for(var t,n=arguments.length,r=Array(n),o=0;o{"use strict";n.d(t,{Ay:()=>v});var r=n(98587),o=n(84221),i=n(96540),s=n(40961);let a={disabled:!1},u=i.createContext(null);var l=n(92403),c="unmounted",d="exited",f="entering",p="entered",h="exiting",g=function(e){function t(t,n){r=e.call(this,t,n)||this;var r,o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=d,r.appearStatus=f):o=p:o=t.unmountOnExit||t.mountOnEnter?c:d,r.state={status:o},r.nextCallback=null,r}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==p&&(t=f):(n===f||n===p)&&(t=h)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this);n&&(0,l.F)(n)}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:c})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[s.findDOMNode(this),r],i=o[0],u=o[1],l=this.getTimeouts(),c=r?l.appear:l.enter;if(!e&&!n||a.disabled){this.safeSetState({status:p},function(){t.props.onEntered(i)});return}this.props.onEnter(i,u),this.safeSetState({status:f},function(){t.props.onEntering(i,u),t.onTransitionEnd(c,function(){t.safeSetState({status:p},function(){t.props.onEntered(i,u)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:s.findDOMNode(this);if(!t||a.disabled){this.safeSetState({status:d},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:h},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:d},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(u.Provider,{value:null},"function"==typeof n?n(e,o):i.cloneElement(i.Children.only(n),o))},t}(i.Component);function m(){}g.contextType=u,g.propTypes={},g.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},g.UNMOUNTED=c,g.EXITED=d,g.ENTERING=f,g.ENTERED=p,g.EXITING=h;let v=g},92403:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var r=function(e){return e.scrollTop}},84221:(e,t,n)=>{"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:()=>o})},98587:(e,t,n)=>{"use strict";function r(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}n.d(t,{A:()=>r})},39595:(e,t,n)=>{"use strict";let r;n.d(t,{CF:()=>g,p_:()=>T,FB:()=>d,Se:()=>S,aC:()=>O,zV:()=>M});let o=new WeakSet,i=new WeakMap;function s(e=document){if(i.has(e))return i.get(e);let t=!1,n=new MutationObserver(e=>{for(let t of e)if("attributes"===t.type&&t.target instanceof Element)c(t.target);else if("childList"===t.type&&t.addedNodes.length)for(let e of t.addedNodes)e instanceof Element&&a(e)});n.observe(e,{childList:!0,subtree:!0,attributeFilter:["data-action"]});let r={get closed(){return t},unsubscribe(){t=!0,i.delete(e),n.disconnect()}};return i.set(e,r),r}function a(e){for(let t of e.querySelectorAll("[data-action]"))c(t);e instanceof Element&&e.hasAttribute("data-action")&&c(e)}function u(e){let t=e.currentTarget;for(let n of l(t))if(e.type===n.type){let r=t.closest(n.tag);o.has(r)&&"function"==typeof r[n.method]&&r[n.method](e);let i=t.getRootNode();if(i instanceof ShadowRoot&&o.has(i.host)&&i.host.matches(n.tag)){let t=i.host;"function"==typeof t[n.method]&&t[n.method](e)}}}function*l(e){for(let t of(e.getAttribute("data-action")||"").trim().split(/\s+/)){let e=t.lastIndexOf(":"),n=Math.max(0,t.lastIndexOf("#"))||t.length;yield{type:t.slice(0,e),tag:t.slice(e+1,n),method:t.slice(n+1)||"handleEvent"}}}function c(e){for(let t of l(e))e.addEventListener(t.type,u)}function d(e,t){let n=e.tagName.toLowerCase();if(e.shadowRoot){for(let r of e.shadowRoot.querySelectorAll(`[data-target~="${n}.${t}"]`))if(!r.closest(n))return r}for(let r of e.querySelectorAll(`[data-target~="${n}.${t}"]`))if(r.closest(n)===e)return r}let f=e=>String("symbol"==typeof e?e.description:e).replace(/([A-Z]($|[a-z]))/g,"-$1").replace(/--/g,"-").replace(/^-|-$/,"").toLowerCase(),p=(e,t="property")=>{let n=f(e);if(!n.includes("-"))throw new DOMException(`${t}: ${String(e)} is not a valid ${t} name`,"SyntaxError");return n},h="attr";function g(e,t){A(e,h).add(t)}let m=new WeakSet;function v(e,t){if(m.has(e))return;m.add(e);let n=Object.getPrototypeOf(e),r=n?.constructor?.attrPrefix??"data-";for(let o of(t||(t=A(n,h)),t)){let t=e[o],n=p(`${r}${o}`),i={configurable:!0,get(){return this.getAttribute(n)||""},set(e){this.setAttribute(n,e||"")}};"number"==typeof t?i={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(e){this.setAttribute(n,e)}}:"boolean"==typeof t&&(i={configurable:!0,get(){return this.hasAttribute(n)},set(e){this.toggleAttribute(n,e)}}),Object.defineProperty(e,o,i),o in e&&!e.hasAttribute(n)&&i.set.call(e,t)}}let y=new Map,b=new Promise(e=>{"loading"!==document.readyState?e():document.addEventListener("readystatechange",()=>e(),{once:!0})}),w=new Promise(e=>{let t=new AbortController;t.signal.addEventListener("abort",()=>e());let n={once:!0,passive:!0,signal:t.signal},r=()=>t.abort();document.addEventListener("mousedown",r,n),document.addEventListener("touchstart",r,n),document.addEventListener("keydown",r,n),document.addEventListener("pointerdown",r,n)}),R={ready:()=>b,firstInteraction:()=>w,visible:e=>new Promise(t=>{let n=new IntersectionObserver(e=>{for(let r of e)if(r.isIntersecting){t(),n.disconnect();return}},{rootMargin:"0px 0px 256px 0px",threshold:.01});for(let t of document.querySelectorAll(e))n.observe(t)})},E=new WeakMap;function C(e){cancelAnimationFrame(E.get(e)||0),E.set(e,requestAnimationFrame(()=>{for(let t of y.keys()){let n=e instanceof Element&&e.matches(t)?e:e.querySelector(t);if(customElements.get(t)||n){let r=n?.getAttribute("data-load-on")||"ready",o=r in R?R[r]:R.ready;for(let e of y.get(t)||[])o(t).then(e);y.delete(t),E.delete(e)}}}))}function S(e,t){for(let[n,r]of("string"==typeof e&&t&&(e={[e]:t}),Object.entries(e)))y.has(n)||y.set(n,new Set),y.get(n).add(r);x(document)}function x(e){r||(r=new MutationObserver(e=>{if(y.size)for(let t of e)for(let e of t.addedNodes)e instanceof Element&&C(e)})),C(e),r.observe(e,{subtree:!0,childList:!0})}let P=Symbol.for("catalyst");let CatalystDelegate=class CatalystDelegate{constructor(e){let t=this,n=e.prototype.connectedCallback;e.prototype.connectedCallback=function(){t.connectedCallback(this,n)};let r=e.prototype.disconnectedCallback;e.prototype.disconnectedCallback=function(){t.disconnectedCallback(this,r)};let o=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(e,n,r){t.attributeChangedCallback(this,e,n,r,o)};let i=e.observedAttributes||[];Object.defineProperty(e,"observedAttributes",{configurable:!0,get(){return t.observedAttributes(this,i)},set(e){i=e}}),function(e){let t=e.observedAttributes||[],n=e.attrPrefix??"data-",r=e=>p(`${n}${e}`);Object.defineProperty(e,"observedAttributes",{configurable:!0,get:()=>[...A(e.prototype,h)].map(r).concat(t),set(e){t=e}})}(e),function(e){let t=f(e.name).replace(/-element$/,"");try{window.customElements.define(t,e),window[e.name]=customElements.get(t)}catch(e){if(!(e instanceof DOMException&&"NotSupportedError"===e.name))throw e}}(e)}observedAttributes(e,t){return t}connectedCallback(e,t){var n,r;e.toggleAttribute("data-catalyst",!0),customElements.upgrade(e),!function(e){for(let t of e.querySelectorAll("template[data-shadowroot]"))t.parentElement===e&&e.attachShadow({mode:"closed"===t.getAttribute("data-shadowroot")?"closed":"open"}).append(t.content.cloneNode(!0))}(e),v(e),o.add(e),e.shadowRoot&&(a(r=e.shadowRoot),s(r)),a(e),s(e.ownerDocument),t?.call(e),e.shadowRoot&&(a(n=e.shadowRoot),s(n),x(e.shadowRoot))}disconnectedCallback(e,t){t?.call(e)}attributeChangedCallback(e,t,n,r,o){v(e),"data-catalyst"!==t&&o&&o.call(e,t,n,r)}};function A(e,t){if(!Object.prototype.hasOwnProperty.call(e,P)){let t=e[P],n=e[P]=new Map;if(t)for(let[e,r]of t)n.set(e,new Set(r))}let n=e[P];return n.has(t)||n.set(t,new Set),n.get(t)}function O(e,t){A(e,"target").add(t),Object.defineProperty(e,t,{configurable:!0,get(){return d(this,t)}})}function M(e,t){A(e,"targets").add(t),Object.defineProperty(e,t,{configurable:!0,get(){return function(e,t){let n=e.tagName.toLowerCase(),r=[];if(e.shadowRoot)for(let o of e.shadowRoot.querySelectorAll(`[data-targets~="${n}.${t}"]`))o.closest(n)||r.push(o);for(let o of e.querySelectorAll(`[data-targets~="${n}.${t}"]`))o.closest(n)===e&&r.push(o);return r}(this,t)}})}function T(e){new CatalystDelegate(e)}},90204:(e,t,n)=>{"use strict";n.d(t,{R3:()=>i});let r=new Set(["\u{1F44B}","\u{1F91A}","\u{1F590}\uFE0F","\u270B","\u{1F596}","\u{1F44C}","\u{1F90F}","\u270C\uFE0F","\u{1F91E}","\u{1F91F}","\u{1F918}","\u{1F919}","\u{1F448}","\u{1F449}","\u{1F446}","\u{1F595}","\u{1F447}","\u261D\uFE0F","\u{1F44D}","\u{1F44E}","\u270A","\u{1F44A}","\u{1F91B}","\u{1F91C}","\u{1F44F}","\u{1F64C}","\u{1F450}","\u{1F932}","\u{1F64F}","\u270D\uFE0F","\u{1F485}","\u{1F933}","\u{1F4AA}","\u{1F9B5}","\u{1F9B6}","\u{1F442}","\u{1F9BB}","\u{1F443}","\u{1F476}","\u{1F9D2}","\u{1F466}","\u{1F467}","\u{1F9D1}","\u{1F471}","\u{1F468}","\u{1F9D4}","\u{1F471}\u200D\u2642\uFE0F","\u{1F468}\u200D\u{1F9B0}","\u{1F468}\u200D\u{1F9B1}","\u{1F468}\u200D\u{1F9B3}","\u{1F468}\u200D\u{1F9B2}","\u{1F469}","\u{1F471}\u200D\u2640\uFE0F","\u{1F469}\u200D\u{1F9B0}","\u{1F469}\u200D\u{1F9B1}","\u{1F469}\u200D\u{1F9B3}","\u{1F469}\u200D\u{1F9B2}","\u{1F9D3}","\u{1F474}","\u{1F475}","\u{1F64D}","\u{1F64D}\u200D\u2642\uFE0F","\u{1F64D}\u200D\u2640\uFE0F","\u{1F64E}","\u{1F64E}\u200D\u2642\uFE0F","\u{1F64E}\u200D\u2640\uFE0F","\u{1F645}","\u{1F645}\u200D\u2642\uFE0F","\u{1F645}\u200D\u2640\uFE0F","\u{1F646}","\u{1F646}\u200D\u2642\uFE0F","\u{1F646}\u200D\u2640\uFE0F","\u{1F481}","\u{1F481}\u200D\u2642\uFE0F","\u{1F481}\u200D\u2640\uFE0F","\u{1F64B}","\u{1F64B}\u200D\u2642\uFE0F","\u{1F64B}\u200D\u2640\uFE0F","\u{1F9CF}","\u{1F9CF}\u200D\u2642\uFE0F","\u{1F9CF}\u200D\u2640\uFE0F","\u{1F647}","\u{1F647}\u200D\u2642\uFE0F","\u{1F647}\u200D\u2640\uFE0F","\u{1F926}","\u{1F926}\u200D\u2642\uFE0F","\u{1F926}\u200D\u2640\uFE0F","\u{1F937}","\u{1F937}\u200D\u2642\uFE0F","\u{1F937}\u200D\u2640\uFE0F","\u{1F468}\u200D\u2695\uFE0F","\u{1F469}\u200D\u2695\uFE0F","\u{1F468}\u200D\u{1F393}","\u{1F469}\u200D\u{1F393}","\u{1F468}\u200D\u{1F3EB}","\u{1F469}\u200D\u{1F3EB}","\u{1F468}\u200D\u2696\uFE0F","\u{1F469}\u200D\u2696\uFE0F","\u{1F468}\u200D\u{1F33E}","\u{1F469}\u200D\u{1F33E}","\u{1F468}\u200D\u{1F373}","\u{1F469}\u200D\u{1F373}","\u{1F468}\u200D\u{1F527}","\u{1F469}\u200D\u{1F527}","\u{1F468}\u200D\u{1F3ED}","\u{1F469}\u200D\u{1F3ED}","\u{1F468}\u200D\u{1F4BC}","\u{1F469}\u200D\u{1F4BC}","\u{1F468}\u200D\u{1F52C}","\u{1F469}\u200D\u{1F52C}","\u{1F468}\u200D\u{1F4BB}","\u{1F469}\u200D\u{1F4BB}","\u{1F468}\u200D\u{1F3A4}","\u{1F469}\u200D\u{1F3A4}","\u{1F468}\u200D\u{1F3A8}","\u{1F469}\u200D\u{1F3A8}","\u{1F468}\u200D\u2708\uFE0F","\u{1F469}\u200D\u2708\uFE0F","\u{1F468}\u200D\u{1F680}","\u{1F469}\u200D\u{1F680}","\u{1F468}\u200D\u{1F692}","\u{1F469}\u200D\u{1F692}","\u{1F46E}","\u{1F46E}\u200D\u2642\uFE0F","\u{1F46E}\u200D\u2640\uFE0F","\u{1F575}\uFE0F","\u{1F575}\uFE0F\u200D\u2642\uFE0F","\u{1F575}\uFE0F\u200D\u2640\uFE0F","\u{1F482}","\u{1F482}\u200D\u2642\uFE0F","\u{1F482}\u200D\u2640\uFE0F","\u{1F477}","\u{1F477}\u200D\u2642\uFE0F","\u{1F477}\u200D\u2640\uFE0F","\u{1F934}","\u{1F478}","\u{1F473}","\u{1F473}\u200D\u2642\uFE0F","\u{1F473}\u200D\u2640\uFE0F","\u{1F472}","\u{1F9D5}","\u{1F935}","\u{1F470}","\u{1F930}","\u{1F931}","\u{1F47C}","\u{1F385}","\u{1F936}","\u{1F9B8}","\u{1F9B8}\u200D\u2642\uFE0F","\u{1F9B8}\u200D\u2640\uFE0F","\u{1F9B9}","\u{1F9B9}\u200D\u2642\uFE0F","\u{1F9B9}\u200D\u2640\uFE0F","\u{1F9D9}","\u{1F9D9}\u200D\u2642\uFE0F","\u{1F9D9}\u200D\u2640\uFE0F","\u{1F9DA}","\u{1F9DA}\u200D\u2642\uFE0F","\u{1F9DA}\u200D\u2640\uFE0F","\u{1F9DB}","\u{1F9DB}\u200D\u2642\uFE0F","\u{1F9DB}\u200D\u2640\uFE0F","\u{1F9DC}","\u{1F9DC}\u200D\u2642\uFE0F","\u{1F9DC}\u200D\u2640\uFE0F","\u{1F9DD}","\u{1F9DD}\u200D\u2642\uFE0F","\u{1F9DD}\u200D\u2640\uFE0F","\u{1F486}","\u{1F486}\u200D\u2642\uFE0F","\u{1F486}\u200D\u2640\uFE0F","\u{1F487}","\u{1F487}\u200D\u2642\uFE0F","\u{1F487}\u200D\u2640\uFE0F","\u{1F6B6}","\u{1F6B6}\u200D\u2642\uFE0F","\u{1F6B6}\u200D\u2640\uFE0F","\u{1F9CD}","\u{1F9CD}\u200D\u2642\uFE0F","\u{1F9CD}\u200D\u2640\uFE0F","\u{1F9CE}","\u{1F9CE}\u200D\u2642\uFE0F","\u{1F9CE}\u200D\u2640\uFE0F","\u{1F468}\u200D\u{1F9AF}","\u{1F469}\u200D\u{1F9AF}","\u{1F468}\u200D\u{1F9BC}","\u{1F469}\u200D\u{1F9BC}","\u{1F468}\u200D\u{1F9BD}","\u{1F469}\u200D\u{1F9BD}","\u{1F3C3}","\u{1F3C3}\u200D\u2642\uFE0F","\u{1F3C3}\u200D\u2640\uFE0F","\u{1F483}","\u{1F57A}","\u{1F574}\uFE0F","\u{1F9D6}","\u{1F9D6}\u200D\u2642\uFE0F","\u{1F9D6}\u200D\u2640\uFE0F","\u{1F9D7}","\u{1F9D7}\u200D\u2642\uFE0F","\u{1F9D7}\u200D\u2640\uFE0F","\u{1F3C7}","\u{1F3C2}","\u{1F3CC}\uFE0F","\u{1F3CC}\uFE0F\u200D\u2642\uFE0F","\u{1F3CC}\uFE0F\u200D\u2640\uFE0F","\u{1F3C4}","\u{1F3C4}\u200D\u2642\uFE0F","\u{1F3C4}\u200D\u2640\uFE0F","\u{1F6A3}","\u{1F6A3}\u200D\u2642\uFE0F","\u{1F6A3}\u200D\u2640\uFE0F","\u{1F3CA}","\u{1F3CA}\u200D\u2642\uFE0F","\u{1F3CA}\u200D\u2640\uFE0F","\u26F9\uFE0F","\u26F9\uFE0F\u200D\u2642\uFE0F","\u26F9\uFE0F\u200D\u2640\uFE0F","\u{1F3CB}\uFE0F","\u{1F3CB}\uFE0F\u200D\u2642\uFE0F","\u{1F3CB}\uFE0F\u200D\u2640\uFE0F","\u{1F6B4}","\u{1F6B4}\u200D\u2642\uFE0F","\u{1F6B4}\u200D\u2640\uFE0F","\u{1F6B5}","\u{1F6B5}\u200D\u2642\uFE0F","\u{1F6B5}\u200D\u2640\uFE0F","\u{1F938}","\u{1F938}\u200D\u2642\uFE0F","\u{1F938}\u200D\u2640\uFE0F","\u{1F93D}","\u{1F93D}\u200D\u2642\uFE0F","\u{1F93D}\u200D\u2640\uFE0F","\u{1F93E}","\u{1F93E}\u200D\u2642\uFE0F","\u{1F93E}\u200D\u2640\uFE0F","\u{1F939}","\u{1F939}\u200D\u2642\uFE0F","\u{1F939}\u200D\u2640\uFE0F","\u{1F9D8}","\u{1F9D8}\u200D\u2642\uFE0F","\u{1F9D8}\u200D\u2640\uFE0F","\u{1F6C0}","\u{1F6CC}","\u{1F9D1}\u200D\u{1F91D}\u200D\u{1F9D1}","\u{1F46D}","\u{1F46B}","\u{1F46C}"]);function o(e){return r.has(e)}function i(e,t){let n=s(e);if(!o(n))return e;let r=l(t);return r?n.split("\u200D").map(e=>o(e)?a(e,r):e).join("\u200D"):e}function s(e){return[...e].filter(e=>!u(e.codePointAt(0))).join("")}function a(e,t){let n=[...e].map(e=>e.codePointAt(0));return n[1]&&(u(n[1])||65039===n[1])?n[1]=t:n.splice(1,0,t),String.fromCodePoint(...n)}function u(e){return e>=127995&&e<=127999}function l(e){switch(e){case 1:return 127995;case 2:return 127996;case 3:return 127997;case 4:return 127998;case 5:return 127999;default:return null}}let GEmojiElement=class GEmojiElement extends HTMLElement{get image(){return this.firstElementChild instanceof HTMLImageElement?this.firstElementChild:null}get tone(){return(this.getAttribute("tone")||"").split(" ").map(e=>{let t=parseInt(e,10);return t>=0&&t<=5?t:0}).join(" ")}set tone(e){this.setAttribute("tone",e)}connectedCallback(){if(null===this.image&&!GEmojiElement.emojiSupportFunction()){let e=this.getAttribute("fallback-src");if(e){this.textContent="";let t=function(e){let t=document.createElement("img");return t.className="emoji",t.alt=e.getAttribute("alias")||"",t.height=20,t.width=20,t}(this);t.src=e,this.appendChild(t)}}this.hasAttribute("tone")&&c(this)}static get observedAttributes(){return["tone"]}attributeChangedCallback(e){"tone"===e&&c(this)}};function c(e){if(e.image)return;let t=e.tone.split(" ").map(e=>parseInt(e,10));if(0===t.length)e.textContent=s(e.textContent||"");else if(1===t.length){let n=t[0];e.textContent=0===n?s(e.textContent||""):i(e.textContent||"",n)}else e.textContent=function(e,t){let n=s(e);if(!o(n))return e;let r=t.map(e=>l(e));return n.split("\u200D").map(e=>{if(!o(e))return e;let t=r.shift();return t?a(e,t):e}).join("\u200D")}(e.textContent||"",t)}GEmojiElement.emojiSupportFunction=function(){let e=/\bWindows NT 6.1\b/.test(navigator.userAgent),t=/\bWindows NT 6.2\b/.test(navigator.userAgent),n=/\bWindows NT 6.3\b/.test(navigator.userAgent),r=/\bFreeBSD\b/.test(navigator.userAgent),o=/\bLinux\b/.test(navigator.userAgent)&&!/\bAndroid\b/.test(navigator.userAgent);return!(e||t||n||o||r)},window.customElements.get("g-emoji")||(window.GEmojiElement=GEmojiElement,window.customElements.define("g-emoji",GEmojiElement))},66567:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */let r=new Set(["children","localName","ref","style","className"]),o=new WeakMap,i=(e,t,n,r,i)=>{let s=i?.[t];void 0===s?(e[t]=n,null==n&&t in HTMLElement.prototype&&e.removeAttribute(t)):n!==r&&((e,t,n)=>{let r=o.get(e);void 0===r&&o.set(e,r=new Map);let i=r.get(t);void 0!==n?void 0===i?(r.set(t,i={handleEvent:n}),e.addEventListener(t,i)):i.handleEvent=n:void 0!==i&&(r.delete(t),e.removeEventListener(t,i))})(e,s,n)},s=({react:e,tagName:t,elementClass:n,events:o,displayName:s})=>{let a=new Set(Object.keys(o??{})),u=e.forwardRef((s,u)=>{let l=e.useRef(new Map),c=e.useRef(null),d={},f={};for(let[e,t]of Object.entries(s))r.has(e)?d["className"===e?"class":e]=t:a.has(e)||e in n.prototype?f[e]=t:d[e]=t;return e.useLayoutEffect(()=>{if(null===c.current)return;let e=new Map;for(let t in f)i(c.current,t,s[t],l.current.get(t),o),l.current.delete(t),e.set(t,s[t]);for(let[e,t]of l.current)i(c.current,e,void 0,t,o);l.current=e}),e.useLayoutEffect(()=>{c.current?.removeAttribute("defer-hydration")},[]),d.suppressHydrationWarning=!0,e.createElement(t,{...d,ref:e.useCallback(e=>{c.current=e,"function"==typeof u?u(e):null!==u&&(u.current=e)},[u])})});return u.displayName=s??n.name,u}},46493:(e,t,n)=>{"use strict";n.d(t,{Cj:()=>_,iP:()=>q});let r={Less:"less",Equal:"equal",Greater:"greater"};var o,i,s,a,u,l,c,d,f,p,h,g,m,v,y,b,w,R=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},E=(e,t,n)=>(R(e,t,"read from private field"),n?n.call(e):t.get(e)),C=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},S=(e,t,n,r)=>(R(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),x=(e,t,n)=>(R(e,t,"access private method"),n);let MinHeap=class MinHeap{constructor({compareFn:e}){C(this,s),C(this,u),C(this,o,void 0),C(this,i,void 0),S(this,o,e),S(this,i,[])}insert(e){E(this,i).push(e),x(this,u,l).call(this)}pop(){let e=E(this,i)[0];return E(this,i)[E(this,i).length-1]&&(E(this,i)[0]=E(this,i)[E(this,i).length-1],E(this,i).pop()),x(this,s,a).call(this),e}peek(){return E(this,i)[0]}delete(e){let t=E(this,i).indexOf(e);-1!==t&&(A(E(this,i),t,E(this,i).length-1),E(this,i).pop(),x(this,s,a).call(this))}clear(){S(this,i,[])}get size(){return E(this,i).length}};function P(e){return Math.floor((e-1)/2)}function A(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}o=new WeakMap,i=new WeakMap,s=new WeakSet,a=function(){let e=0;for(;2*e+10&&E(this,o).call(this,E(this,i)[e],E(this,i)[P(e)])===r.Less;)A(E(this,i),e,P(e)),e=P(e)};var O=Object.defineProperty,M=(e,t,n)=>t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t,n)=>(M(e,"symbol"!=typeof t?t+"":t,n),n),k=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},I=(e,t,n)=>(k(e,t,"read from private field"),n?n.call(e):t.get(e)),B=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},F=(e,t,n,r)=>(k(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);let Deferred=class Deferred{constructor(){T(this,c,"Deferred"),B(this,d,void 0),B(this,f,void 0),B(this,p,void 0),F(this,d,new Promise((e,t)=>{F(this,f,e),F(this,p,t)}))}then(e,t){return Promise.prototype.then.apply(I(this,d),[e,t])}catch(e){return Promise.prototype.catch.apply(I(this,d),[e])}finally(e){return Promise.prototype.finally.apply(I(this,d),[e])}resolve(e){I(this,f).call(this,e)}reject(e){I(this,p).call(this,e)}getPromise(){return I(this,d)}};c=Symbol.toStringTag,d=new WeakMap,f=new WeakMap,p=new WeakMap;var N=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},G=(e,t,n)=>(N(e,t,"read from private field"),n?n.call(e):t.get(e)),H=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},L=(e,t,n,r)=>(N(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),W=(e,t,n)=>(N(e,t,"access private method"),n);let LiveRegionElement=class LiveRegionElement extends HTMLElement{constructor(){if(super(),H(this,v),H(this,b),H(this,h,void 0),H(this,g,void 0),H(this,m,void 0),!this.shadowRoot){let e=(j||((j=document.createElement("template")).innerHTML=D),j);this.attachShadow({mode:"open"}).appendChild(e.content.cloneNode(!0))}L(this,h,!1),L(this,m,null),L(this,g,new MinHeap({compareFn:z}))}get delay(){let e=this.getAttribute("delay");return e?parseInt(e,10):150}set delay(e){this.setAttribute("delay",`${e}`)}announce(e,t={}){let{delayMs:n,politeness:r="polite"}=t,o=Date.now(),i=new Deferred,s={deferred:i,politeness:r,contents:e,scheduled:void 0!==n?o+n:o};return G(this,g).insert(s),W(this,v,y).call(this),{...i.getPromise(),cancel:()=>{G(this,g).delete(s),i.resolve()}}}announceFromElement(e,t){let n;let r=(n="",e.hasAttribute("aria-label")?n=e.getAttribute("aria-label"):e.innerText?n=e.innerText:e.textContent&&(n=e.textContent),n?n.trim():"");return""!==r?this.announce(r,t):{...Promise.resolve(),cancel:$}}getMessage(e="polite"){let t=this.shadowRoot?.getElementById(e);if(!t)throw Error("Unable to find container for message");return t.textContent}clear(){null!==G(this,m)&&(clearTimeout(G(this,m)),L(this,m,null)),G(this,g).clear()}};h=new WeakMap,g=new WeakMap,m=new WeakMap,v=new WeakSet,y=function(){if(G(this,h))return;let e=G(this,g).peek();if(!e)return;null!==G(this,m)&&(clearTimeout(G(this,m)),L(this,m,null));let t=Date.now();if(e.scheduled<=t){(e=G(this,g).pop())&&W(this,b,w).call(this,e),W(this,v,y).call(this);return}let n=e.scheduled-t;L(this,m,window.setTimeout(()=>{L(this,m,null),W(this,v,y).call(this)},n))},b=new WeakSet,w=function(e){L(this,h,!0);let{contents:t,deferred:n,politeness:r}=e,o=this.shadowRoot?.getElementById(r);if(!o)throw L(this,h,!1),Error(`Unable to find container for message. Expected a container with id="${r}"`);o.textContent===t?o.textContent=`${t}\xa0`:o.textContent=t,null!==G(this,m)&&clearTimeout(G(this,m)),n.resolve(),this.delay>0?L(this,m,window.setTimeout(()=>{L(this,m,null),L(this,h,!1),W(this,v,y).call(this)},this.delay)):(L(this,m,null),L(this,h,!1),W(this,v,y).call(this))};let j=null,D=` + +
+
+`;function z(e,t){return e.politeness===t.politeness?e.scheduled===t.scheduled?r.Equal:e.scheduled{r=!0};return{...K(U).then(()=>{if(!r){let r=n.announce(e,t);return o=r.cancel,r}}),cancel:()=>{o()}}}return n.announce(e,t)}function _(e,t={}){let n=Q(t.from);if(!n){n=document.createElement("live-region"),t.appendTo?t.appendTo.appendChild(n):V(t.from).appendChild(n);let r=!1,o=()=>{r=!0};return{...K(U).then(()=>{if(!r){let r=n.announceFromElement(e,t);return o=r.cancel,r}}),cancel:()=>{o()}}}return n.announceFromElement(e,t)}function Q(e){let t=null;return null!==(t=e?function(e){let t=e.closest("dialog"),n=e;for(;(n=n.parentElement)&&(!t||t.contains(n));)for(let e of n.childNodes)if(e instanceof LiveRegionElement)return e;return null}(e):null)||null!==(t=V(e).querySelector("live-region"))?t:null}function V(e){let t=document.body;if(e){let n=e.closest("dialog");n&&(t=n)}return t}customElements.get("live-region")||customElements.define("live-region",LiveRegionElement);let U=150;function K(e){return new Promise(t=>{setTimeout(t,e)})}},61388:(e,t,n)=>{"use strict";n.d(t,{_:()=>a});var r=n(36158),o=n(26261),i=n(66500),s=n(24880),a=class extends i.Q{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,s.f8)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.EN)(t.mutationKey)!==(0,s.EN)(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#o(),this.#i(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#o(),this.#i()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#o(){let e=this.#n?.state??(0,r.$)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#i(e){o.jG.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context;e?.type==="success"?(this.#r.onSuccess?.(e.data,t,n),this.#r.onSettled?.(e.data,null,t,n)):e?.type==="error"&&(this.#r.onError?.(e.error,t,n),this.#r.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(e=>{e(this.#t)})})}}},79915:(e,t,n)=>{"use strict";n.d(t,{T:()=>u});var r=n(26261),o=n(1651),i=n(66500),s=n(24880);function a(e,t){return e.filter(e=>!t.includes(e))}var u=class extends i.Q{#e;#s;#a;#u;#l;#c;#d;#f;#p=[];constructor(e,t,n){super(),this.#e=e,this.#u=n,this.#a=[],this.#l=[],this.#s=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#l.forEach(e=>{e.subscribe(t=>{this.#h(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#l.forEach(e=>{e.destroy()})}setQueries(e,t){this.#a=e,this.#u=t,r.jG.batch(()=>{let e=this.#l,t=this.#g(this.#a);this.#p=t,t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),o=n.some((t,n)=>t!==e[n]);(e.length!==n.length||o)&&(this.#l=n,this.#s=r,this.hasListeners()&&(a(e,n).forEach(e=>{e.destroy()}),a(n,e).forEach(e=>{e.subscribe(t=>{this.#h(e,t)})}),this.#i()))})}getCurrentResult(){return this.#s}getQueries(){return this.#l.map(e=>e.getCurrentQuery())}getObservers(){return this.#l}getOptimisticResult(e,t){let n=this.#g(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions));return[r,e=>this.#m(e??r,t),()=>this.#v(r,n)]}#v(e,t){return t.map((n,r)=>{let o=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?o:n.observer.trackResult(o,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#m(e,t){return t?(this.#c&&this.#s===this.#f&&t===this.#d||(this.#d=t,this.#f=this.#s,this.#c=(0,s.BH)(this.#c,t(e))),this.#c):e}#g(e){let t=new Map(this.#l.map(e=>[e.options.queryHash,e])),n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash);i?n.push({defaultedQueryOptions:r,observer:i}):n.push({defaultedQueryOptions:r,observer:new o.$(this.#e,r)})}),n}#h(e,t){let n=this.#l.indexOf(e);-1!==n&&(this.#s=function(e,t,n){let r=e.slice(0);return r[t]=n,r}(this.#s,n,t),this.#i())}#i(){if(this.hasListeners()){let e=this.#c,t=this.#v(this.#s,this.#p);e!==this.#m(t,this.#u?.combine)&&r.jG.batch(()=>{this.listeners.forEach(e=>{e(this.#s)})})}}}},97665:(e,t,n)=>{"use strict";n.d(t,{Ht:()=>a,jE:()=>s,v4:()=>i});var r=n(96540),o=n(74848),i=r.createContext(void 0),s=e=>{let t=r.useContext(i);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},a=({client:e,children:t})=>(r.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,o.jsx)(i.Provider,{value:e,children:t}))},94747:(e,t,n)=>{"use strict";n.d(t,{n:()=>u});var r=n(96540),o=n(61388),i=n(26261),s=n(97665),a=n(54362);function u(e,t){let n=(0,s.jE)(t),[u]=r.useState(()=>new o._(n,e));r.useEffect(()=>{u.setOptions(e)},[u,e]);let l=r.useSyncExternalStore(r.useCallback(e=>u.subscribe(i.jG.batchCalls(e)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),c=r.useCallback((e,t)=>{u.mutate(e,t).catch(a.l)},[u]);if(l.error&&(0,a.G)(u.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:c,mutateAsync:l.mutate}}},40458:(e,t,n)=>{"use strict";n.d(t,{E:()=>p});var r=n(96540),o=n(79915),i=n(26261),s=n(1651),a=n(97665),u=n(98378),l=n(96672),c=n(68590),d=n(60791),f=n(54362);function p({queries:e,...t},n){let p=(0,a.jE)(n),h=(0,u.w)(),g=(0,l.h)(),m=r.useMemo(()=>e.map(e=>{let t=p.defaultQueryOptions(e);return t._optimisticResults=h?"isRestoring":"optimistic",t}),[e,p,h]);m.forEach(e=>{(0,d.jv)(e),(0,c.LJ)(e,g)}),(0,c.wZ)(g);let[v]=r.useState(()=>new o.T(p,m,t)),[y,b,w]=v.getOptimisticResult(m,t.combine),R=!h&&!1!==t.subscribed;r.useSyncExternalStore(r.useCallback(e=>R?v.subscribe(i.jG.batchCalls(e)):f.l,[v,R]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),r.useEffect(()=>{v.setQueries(m,t)},[m,t,v]);let E=y.some((e,t)=>(0,d.EU)(m[t],e))?y.flatMap((e,t)=>{let n=m[t];if(n){let t=new s.$(p,n);if((0,d.EU)(n,e))return(0,d.iL)(n,t,g);(0,d.nE)(e,h)&&(0,d.iL)(n,t,g)}return[]}):[];if(E.length>0)throw Promise.all(E);let C=y.find((e,t)=>{let n=m[t];return n&&(0,c.$1)({result:e,errorResetBoundary:g,throwOnError:n.throwOnError,query:p.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(C?.error)throw C.error;return b(w())}},97286:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r=n(1651),o=n(15985);function i(e,t){return(0,o.t)(e,r.$,t)}},65510:(e,t,n)=>{"use strict";n.d(t,{U:()=>s});var r=n(1651),o=n(15985),i=n(60791);function s(e,t){return(0,o.t)({...e,enabled:!0,suspense:!0,throwOnError:i.R3,placeholderData:void 0},r.$,t)}},60145:(e,t,n)=>{"use strict";n.d(t,{W:()=>a});var r=n(13999),o=n(4883),i=n(35840),s=n(2642);function a(e,t){let{years:n=0,months:a=0,weeks:u=0,days:l=0,hours:c=0,minutes:d=0,seconds:f=0}=t,p=(0,s.a)(e),h=a||n?(0,o.P)(p,a+12*n):p,g=l||u?(0,r.f)(h,l+7*u):h;return(0,i.w)(e,g.getTime()+1e3*(f+60*(d+60*c)))}},93737:(e,t,n)=>{"use strict";n.d(t,{B:()=>d});var r=n(25733),o=n(2940),i=n(94978),s=n(43924),a=n(2642),u=n(36039),l=n(82695),c=n(40215);function d(e,t,n){let d,f,p;let h=(0,l.q)(),g=n?.locale??h.locale??u.c,m=(0,r.z)(e,t);if(isNaN(m))throw RangeError("Invalid time value");let v=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:m});m>0?(d=(0,a.a)(t),f=(0,a.a)(e)):(d=(0,a.a)(e),f=(0,a.a)(t));let y=(0,s.O)(f,d),b=Math.round((y-((0,c.G)(f)-(0,c.G)(d))/1e3)/60);if(b<2){if(n?.includeSeconds){if(y<5)return g.formatDistance("lessThanXSeconds",5,v);if(y<10)return g.formatDistance("lessThanXSeconds",10,v);if(y<20)return g.formatDistance("lessThanXSeconds",20,v);if(y<40)return g.formatDistance("halfAMinute",0,v);else if(y<60)return g.formatDistance("lessThanXMinutes",1,v);else return g.formatDistance("xMinutes",1,v)}return 0===b?g.formatDistance("lessThanXMinutes",1,v):g.formatDistance("xMinutes",b,v)}if(b<45)return g.formatDistance("xMinutes",b,v);if(b<90)return g.formatDistance("aboutXHours",1,v);if(b{"use strict";n.d(t,{m:()=>o});var r=n(93737);function o(e,t){return(0,r.B)(e,Date.now(),t)}},6907:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var r=n(2642),o=n(50622);function i(e,t){let n=(0,r.a)(e);if(isNaN(n.getTime()))throw RangeError("Invalid time value");let i=t?.format??"extended",s=t?.representation??"complete",a="",u="",l="extended"===i?"-":"";if("time"!==s){let e=(0,o.F)(n.getDate(),2),t=(0,o.F)(n.getMonth()+1,2),r=(0,o.F)(n.getFullYear(),4);a=`${r}${l}${t}${l}${e}`}if("date"!==s){let e=n.getTimezoneOffset();if(0!==e){let t=Math.abs(e),n=(0,o.F)(Math.trunc(t/60),2),r=(0,o.F)(t%60,2);u=`${e<0?"+":"-"}${n}:${r}`}else u="Z";let t=(0,o.F)(n.getHours(),2),r=(0,o.F)(n.getMinutes(),2),s=(0,o.F)(n.getSeconds(),2),l=""===a?"":"T",c=[t,r,s].join("extended"===i?":":"");a=`${a}${l}${c}${u}`}return a}},83592:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(2642);function o(e,t){let n=(0,r.a)(e),o=(0,r.a)(t);return n.getFullYear()===o.getFullYear()}},76935:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n(2642);function o(e){let t;return e.forEach(e=>{let n=(0,r.a)(e);(!t||t>n||isNaN(+n))&&(t=n)}),t||new Date(NaN)}},9739:(e,t,n)=>{"use strict";n.d(t,{R:()=>o});var r=n(51730);function o(){return(0,r.o)(Date.now())}},23224:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(91251),o=/[\\^$.*+?()[\]{}|]/g,i=RegExp(o.source);let s=function(e){return(e=(0,r.A)(e))&&i.test(e)?e.replace(o,"\\$&"):e}},66401:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(62922),o=n(37298),i=n(25746),s=n(92049),a=n(38446),u=n(99856),l=n(97271),c=n(4076),d=Object.prototype.hasOwnProperty;let f=function(e){if(null==e)return!0;if((0,a.A)(e)&&((0,s.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,u.A)(e)||(0,c.A)(e)||(0,i.A)(e)))return!e.length;var t=(0,o.A)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,l.A)(e))return!(0,r.A)(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},81857:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(82526);let o=function(e){if("function"!=typeof e)throw TypeError("Expected a function");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)}};var i=n(37155);let s=function(e,t){return(0,i.A)(e,o((0,r.A)(t)))}},74022:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(23125),o=n(23149);let i=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw TypeError("Expected a function");return(0,o.A)(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),(0,r.A)(e,t,{leading:i,maxWait:t,trailing:s})}},56050:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var r=n(7837);let o=(e,t,n)=>{let o=(t,n)=>({queryFn:n&&n===r.Oy.skipToken?r.Oy.skipToken:e=>t(n,e),queryKey:(0,r.i7)(e.queryKey,n)});return Object.assign((0,r.Ht)((e,r)=>t({...e,...o(e.fetcher,e.variables),...n},r),e,"queries"),{fetcher:e.fetcher,getKey:t=>(0,r.i7)(e.queryKey,t),getOptions:t=>({...e,...o(e.fetcher,t)}),getFetchOptions:t=>({...o(e.fetcher,t),queryKeyHashFn:e.queryKeyHashFn,getPreviousPageParam:e.getPreviousPageParam,getNextPageParam:e.getNextPageParam,initialPageParam:e.initialPageParam})})}},15967:(e,t,n)=>{"use strict";n.d(t,{r:()=>i});var r=n(56050),o=n(7837);function i(e){return(0,r.W)(e,o.Oy.useInfiniteQuery)}},8832:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var r=n(7837);function o(e){return Object.assign((0,r.Ht)(r.Oy.useMutation,e,"mutations"),{getKey:()=>e.mutationKey,getOptions:()=>e,mutationFn:e.mutationFn})}},86391:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(56050),o=n(7837);function i(e){return(0,r.W)(e,o.Oy.useQuery)}},7837:(e,t,n)=>{"use strict";n.d(t,{Oy:()=>J,i7:()=>et,Ht:()=>ee});var r={};n.r(r),n.d(r,{CancelledError:()=>o.cc,HydrationBoundary:()=>$,InfiniteQueryObserver:()=>c,IsRestoringProvider:()=>Y.d,Mutation:()=>O.s,MutationCache:()=>d.q,MutationObserver:()=>f._,QueriesObserver:()=>u.T,Query:()=>A.X,QueryCache:()=>i.$,QueryClient:()=>s.E,QueryClientContext:()=>G.v4,QueryClientProvider:()=>G.Ht,QueryErrorResetBoundary:()=>q.U,QueryObserver:()=>a.$,dataTagErrorSymbol:()=>x,dataTagSymbol:()=>S,defaultScheduler:()=>p.x3,defaultShouldDehydrateMutation:()=>y,defaultShouldDehydrateQuery:()=>b,dehydrate:()=>R,experimental_streamedQuery:()=>C,focusManager:()=>h.m,hashKey:()=>m.EN,hydrate:()=>E,infiniteQueryOptions:()=>j,isCancelledError:()=>o.wm,isServer:()=>m.S$,keepPreviousData:()=>m.rX,matchMutation:()=>m.nJ,matchQuery:()=>m.MK,notifyManager:()=>p.jG,onlineManager:()=>g.t,queryOptions:()=>W.j,replaceEqualDeep:()=>m.BH,skipToken:()=>m.hT,unsetMarker:()=>P,useInfiniteQuery:()=>X,useIsFetching:()=>_,useIsMutating:()=>Q,useIsRestoring:()=>Y.w,useMutation:()=>K.n,useMutationState:()=>U,usePrefetchInfiniteQuery:()=>L,usePrefetchQuery:()=>H,useQueries:()=>M.E,useQuery:()=>T.I,useQueryClient:()=>G.jE,useQueryErrorResetBoundary:()=>q.h,useSuspenseInfiniteQuery:()=>F,useSuspenseQueries:()=>N,useSuspenseQuery:()=>k.U});var o=n(58904),i=n(2471),s=n(65490),a=n(1651),u=n(79915),l=n(58959),c=class extends a.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:(0,l.PL)()})}getOptimisticResult(e){return e.behavior=(0,l.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:i,isError:s,isRefetchError:a}=r,u=n.fetchMeta?.fetchMore?.direction,c=s&&"forward"===u,d=o&&"forward"===u,f=s&&"backward"===u,p=o&&"backward"===u;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,l.rB)(t,n.data),hasPreviousPage:(0,l.RQ)(t,n.data),isFetchNextPageError:c,isFetchingNextPage:d,isFetchPreviousPageError:f,isFetchingPreviousPage:p,isRefetchError:a&&!c&&!f,isRefetching:i&&!d&&!p}}},d=n(57678),f=n(61388),p=n(26261),h=n(29658),g=n(96035),m=n(24880);function v(e){return e}function y(e){return e.state.isPaused}function b(e){return"success"===e.state.status}function w(e){return!0}function R(e,t={}){let n=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??y,r=e.getMutationCache().getAll().flatMap(e=>n(e)?[{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}]:[]),o=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??b,i=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??w,s=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??v;return{mutations:r,queries:e.getQueryCache().getAll().flatMap(e=>o(e)?[{state:{...e.state,...void 0!==e.state.data&&{data:s(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,..."pending"===e.state.status&&{promise:e.promise?.then(s).catch(e=>i(e)?Promise.reject(Error("redacted")):Promise.reject(e))},...e.meta&&{meta:e.meta}}]:[])}}function E(e,t,n){if("object"!=typeof t||null===t)return;let r=e.getMutationCache(),o=e.getQueryCache(),i=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??v,s=t.mutations||[],a=t.queries||[];s.forEach(({state:t,...o})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...o},t)}),a.forEach(({queryKey:t,state:r,queryHash:s,meta:a,promise:u})=>{let l=o.get(s),c=void 0===r.data?r.data:i(r.data);if(l){if(l.state.dataUpdatedAt{if("append"!==t){let e=n.client.getQueryCache().find({queryKey:n.queryKey,exact:!0});e&&void 0!==e.state.data&&e.setState({status:"pending",data:void 0,error:null,fetchStatus:"fetching"})}for await(let t of(await e(n))){if(n.signal.aborted)break;n.client.setQueryData(n.queryKey,(e=[])=>e.concat(t))}return n.client.getQueryData(n.queryKey)}}var S=Symbol("dataTagSymbol"),x=Symbol("dataTagErrorSymbol"),P=Symbol("unsetMarker"),A=n(79757),O=n(36158),M=n(40458),T=n(97286),k=n(65510),I=n(15985),B=n(60791);function F(e,t){return(0,I.t)({...e,enabled:!0,suspense:!0,throwOnError:B.R3},c,t)}function N(e,t){return(0,M.E)({...e,queries:e.queries.map(e=>({...e,suspense:!0,throwOnError:B.R3,enabled:!0,placeholderData:void 0}))},t)}var G=n(97665);function H(e,t){let n=(0,G.jE)(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function L(e,t){let n=(0,G.jE)(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}var W=n(31993);function j(e){return e}var D=n(96540),z=(e,t)=>"object"==typeof e&&null!==e&&t in e,$=({children:e,options:t={},state:n,queryClient:r})=>{let o=(0,G.jE)(r),[i,s]=D.useState(),a=D.useRef(t);return a.current=t,D.useMemo(()=>{if(n){if("object"!=typeof n)return;let e=o.getQueryCache(),t=n.queries||[],r=[],u=[];for(let n of t){let t=e.get(n.queryHash);if(t){let e=n.state.dataUpdatedAt>t.state.dataUpdatedAt||z(n.promise,"status")&&z(t.promise,"status")&&n.promise.status!==t.promise.status,r=i?.find(e=>e.queryHash===n.queryHash);e&&(!r||n.state.dataUpdatedAt>r.state.dataUpdatedAt)&&u.push(n)}else r.push(n)}r.length>0&&E(o,{queries:r},a.current),u.length>0&&s(e=>e?[...e,...u]:u)}},[o,i,n]),D.useEffect(()=>{i&&(E(o,{queries:i},a.current),s(void 0))},[o,i]),e},q=n(96672);function _(e,t){let n=(0,G.jE)(t),r=n.getQueryCache();return D.useSyncExternalStore(D.useCallback(e=>r.subscribe(p.jG.batchCalls(e)),[r]),()=>n.isFetching(e),()=>n.isFetching(e))}function Q(e,t){let n=(0,G.jE)(t);return U({filters:{...e,status:"pending"}},n).length}function V(e,t){return e.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}function U(e={},t){let n=(0,G.jE)(t).getMutationCache(),r=D.useRef(e),o=D.useRef(null);return o.current||(o.current=V(n,e)),D.useEffect(()=>{r.current=e}),D.useSyncExternalStore(D.useCallback(e=>n.subscribe(()=>{let t=(0,m.BH)(o.current,V(n,r.current));o.current!==t&&(o.current=t,p.jG.schedule(e))}),[n]),()=>o.current,()=>o.current)}var K=n(94747);function X(e,t){return(0,I.t)(e,c,t)}var Y=n(98378);let J=r,Z=!!J.useSuspenseQuery,ee=(e,t,n)=>function(r,o){let[i,s]=[J.useQueryClient(Z?o:r).getDefaultOptions()[n],t,r].reduce(([e,t],{use:n=[],...r}={})=>[[...e,...n],{...t,...r}],[[]]);return i.reduceRight((e,t)=>t(e),e)(s,o)},et=(e,t)=>void 0===t?e:[...e,t]},11561:(e,t,n)=>{"use strict";function r(e,t){if(!e)throw Error("Invariant failed")}n.d(t,{A:()=>r})}}]); +//# sourceMappingURL=vendors-node_modules_allex_crc32_lib_crc32_esm_js-node_modules_github_quote-selection_dist_in-97b256-ca4031b2b2ee.js.map \ No newline at end of file diff --git a/vendors-node_modules_date-fns_addWeeks_mjs-node_modules_date-fns_addYears_mjs-node_modules_da-827f4f-cf37cd06c24f.js.download b/vendors-node_modules_date-fns_addWeeks_mjs-node_modules_date-fns_addYears_mjs-node_modules_da-827f4f-cf37cd06c24f.js.download new file mode 100644 index 0000000000..ab02ca3e3a --- /dev/null +++ b/vendors-node_modules_date-fns_addWeeks_mjs-node_modules_date-fns_addYears_mjs-node_modules_da-827f4f-cf37cd06c24f.js.download @@ -0,0 +1,2 @@ +"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_date-fns_addWeeks_mjs-node_modules_date-fns_addYears_mjs-node_modules_da-827f4f"],{13999:(e,t,r)=>{r.d(t,{f:()=>s});var a=r(2642),n=r(35840);function s(e,t){let r=(0,a.a)(e);return isNaN(t)?(0,n.w)(e,NaN):(t&&r.setDate(r.getDate()+t),r)}},4883:(e,t,r)=>{r.d(t,{P:()=>s});var a=r(2642),n=r(35840);function s(e,t){let r=(0,a.a)(e);if(isNaN(t))return(0,n.w)(e,NaN);if(!t)return r;let s=r.getDate(),i=(0,n.w)(e,r.getTime());return(i.setMonth(r.getMonth()+t+1,0),s>=i.getDate())?i:(r.setFullYear(i.getFullYear(),i.getMonth(),s),r)}},11897:(e,t,r)=>{r.d(t,{J:()=>n});var a=r(13999);function n(e,t){return(0,a.f)(e,7*t)}},93876:(e,t,r)=>{r.d(t,{e:()=>n});var a=r(4883);function n(e,t){return(0,a.P)(e,12*t)}},17764:(e,t,r)=>{r.d(t,{c:()=>s});var a=r(20514),n=r(2642);function s(e,t){let r=(0,n.a)(e),s=(0,n.a)(t),o=i(r,s),d=Math.abs((0,a.m)(r,s));r.setDate(r.getDate()-o*d);let u=Number(i(r,s)===-o),c=o*(d-u);return 0===c?0:c}function i(e,t){let r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}},42340:(e,t,r)=>{r.d(t,{k:()=>n});var a=r(2642);function n(e,t){let r=(0,a.a)(e.start),n=(0,a.a)(e.end),s=+r>+n,i=s?+r:+n,o=s?n:r;o.setHours(0,0,0,0);let d=t?.step??1;if(!d)return[];d<0&&(d=-d,s=!s);let u=[];for(;+o<=i;)u.push((0,a.a)(o)),o.setDate(o.getDate()+d),o.setHours(0,0,0,0);return s?u.reverse():u}},72483:(e,t,r)=>{r.d(t,{$:()=>s});var a=r(2642),n=r(82695);function s(e,t){let r=(0,n.q)(),s=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=(0,a.a)(e),o=i.getDay();return i.setDate(i.getDate()+((o{r.d(t,{r:()=>n});var a=r(51730);function n(e,t){return+(0,a.o)(e)==+(0,a.o)(t)}},44660:(e,t,r)=>{r.d(t,{qg:()=>F});var a=r(35840),n=r(82695),s=r(36039),i=r(2642),o=r(36847),d=r(76992);let Setter=class Setter{subPriority=0;validate(e,t){return!0}};let ValueSetter=class ValueSetter extends Setter{constructor(e,t,r,a,n){super(),this.value=e,this.validateValue=t,this.setValue=r,this.priority=a,n&&(this.subPriority=n)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,r){return this.setValue(e,t,this.value,r)}};let DateToSystemTimezoneSetter=class DateToSystemTimezoneSetter extends Setter{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:(0,a.w)(e,function(e,t){let r=t instanceof Date?(0,a.w)(t,0):new t(0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}(e,Date))}};let Parser=class Parser{run(e,t,r,a){let n=this.parse(e,t,r,a);return n?{setter:new ValueSetter(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}validate(e,t,r){return!0}};let EraParser=class EraParser extends Parser{priority=140;parse(e,t,r){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,t,r){return t.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]};var u=r(2940);let c={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},l={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function w(e,t){return e?{value:t(e.value),rest:e.rest}:e}function h(e,t){let r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function m(e,t){let r=t.match(e);if(!r)return null;if("Z"===r[0])return{value:0,rest:t.slice(1)};let a="+"===r[1]?1:-1,n=r[2]?parseInt(r[2],10):0,s=r[3]?parseInt(r[3],10):0,i=r[5]?parseInt(r[5],10):0;return{value:a*(n*u.s0+s*u.Cg+i*u._m),rest:t.slice(r[0].length)}}function g(e){return h(c.anyDigitsSigned,e)}function f(e,t){switch(e){case 1:return h(c.singleDigit,t);case 2:return h(c.twoDigits,t);case 3:return h(c.threeDigits,t);case 4:return h(c.fourDigits,t);default:return h(RegExp("^\\d{1,"+e+"}"),t)}}function y(e,t){switch(e){case 1:return h(c.singleDigitSigned,t);case 2:return h(c.twoDigitsSigned,t);case 3:return h(c.threeDigitsSigned,t);case 4:return h(c.fourDigitsSigned,t);default:return h(RegExp("^-?\\d{1,"+e+"}"),t)}}function p(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function b(e,t){let r;let a=t>0,n=a?t:1-t;if(n<=50)r=e||100;else{let t=n+50;r=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return a?r:1-r}function x(e){return e%400==0||e%4==0&&e%100!=0}let YearParser=class YearParser extends Parser{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,r){let a=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return w(f(4,e),a);case"yo":return w(r.ordinalNumber(e,{unit:"year"}),a);default:return w(f(t.length,e),a)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r){let a=e.getFullYear();if(r.isTwoDigitYear){let t=b(r.year,a);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let n="era"in t&&1!==t.era?1-r.year:r.year;return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}};var P=r(29220),T=r(92528);let LocalWeekYearParser=class LocalWeekYearParser extends Parser{priority=130;parse(e,t,r){let a=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return w(f(4,e),a);case"Yo":return w(r.ordinalNumber(e,{unit:"year"}),a);default:return w(f(t.length,e),a)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r,a){let n=(0,P.h)(e,a);if(r.isTwoDigitYear){let t=b(r.year,n);return e.setFullYear(t,0,a.firstWeekContainsDate),e.setHours(0,0,0,0),(0,T.k)(e,a)}let s="era"in t&&1!==t.era?1-r.year:r.year;return e.setFullYear(s,0,a.firstWeekContainsDate),e.setHours(0,0,0,0),(0,T.k)(e,a)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var k=r(83787);let ISOWeekYearParser=class ISOWeekYearParser extends Parser{priority=130;parse(e,t){return"R"===t?y(4,e):y(t.length,e)}set(e,t,r){let n=(0,a.w)(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),(0,k.b)(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};let ExtendedYearParser=class ExtendedYearParser extends Parser{priority=130;parse(e,t){return"u"===t?y(4,e):y(t.length,e)}set(e,t,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};let QuarterParser=class QuarterParser extends Parser{priority=120;parse(e,t,r){switch(t){case"Q":case"QQ":return f(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};let StandAloneQuarterParser=class StandAloneQuarterParser extends Parser{priority=120;parse(e,t,r){switch(t){case"q":case"qq":return f(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};let MonthParser=class MonthParser extends Parser{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,r){let a=e=>e-1;switch(t){case"M":return w(h(c.month,e),a);case"MM":return w(f(2,e),a);case"Mo":return w(r.ordinalNumber(e,{unit:"month"}),a);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}};let StandAloneMonthParser=class StandAloneMonthParser extends Parser{priority=110;parse(e,t,r){let a=e=>e-1;switch(t){case"L":return w(h(c.month,e),a);case"LL":return w(f(2,e),a);case"Lo":return w(r.ordinalNumber(e,{unit:"month"}),a);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};var D=r(86676);let LocalWeekParser=class LocalWeekParser extends Parser{priority=100;parse(e,t,r){switch(t){case"w":return h(c.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return f(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r,a){return(0,T.k)(function(e,t,r){let a=(0,i.a)(e),n=(0,D.N)(a,r)-t;return a.setDate(a.getDate()-7*n),a}(e,r,a),a)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};var v=r(96722);let ISOWeekParser=class ISOWeekParser extends Parser{priority=100;parse(e,t,r){switch(t){case"I":return h(c.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return f(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r){return(0,k.b)(function(e,t){let r=(0,i.a)(e),a=(0,v.s)(r)-t;return r.setDate(r.getDate()-7*a),r}(e,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};let S=[31,28,31,30,31,30,31,31,30,31,30,31],M=[31,29,31,30,31,30,31,31,30,31,30,31];let DateParser=class DateParser extends Parser{priority=90;subPriority=1;parse(e,t,r){switch(t){case"d":return h(c.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return f(t.length,e)}}validate(e,t){let r=x(e.getFullYear()),a=e.getMonth();return r?t>=1&&t<=M[a]:t>=1&&t<=S[a]}set(e,t,r){return e.setDate(r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};let DayOfYearParser=class DayOfYearParser extends Parser{priority=90;subpriority=1;parse(e,t,r){switch(t){case"D":case"DD":return h(c.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return f(t.length,e)}}validate(e,t){return x(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};var Y=r(13999);function H(e,t,r){let a=(0,n.q)(),s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,o=(0,i.a)(e),d=o.getDay(),u=7-s;return(0,Y.f)(o,t<0||t>6?t-(d+u)%7:((t%7+7)%7+u)%7-(d+u)%7)}let DayParser=class DayParser extends Parser{priority=90;parse(e,t,r){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,a){return(e=H(e,r,a)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]};let LocalDayParser=class LocalDayParser extends Parser{priority=90;parse(e,t,r,a){let n=e=>{let t=7*Math.floor((e-1)/7);return(e+a.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return w(f(t.length,e),n);case"eo":return w(r.ordinalNumber(e,{unit:"day"}),n);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,a){return(e=H(e,r,a)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};let StandAloneLocalDayParser=class StandAloneLocalDayParser extends Parser{priority=90;parse(e,t,r,a){let n=e=>{let t=7*Math.floor((e-1)/7);return(e+a.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return w(f(t.length,e),n);case"co":return w(r.ordinalNumber(e,{unit:"day"}),n);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,a){return(e=H(e,r,a)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};let ISODayParser=class ISODayParser extends Parser{priority=90;parse(e,t,r){let a=e=>0===e?7:e;switch(t){case"i":case"ii":return f(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return w(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),a);case"iiiii":return w(r.day(e,{width:"narrow",context:"formatting"}),a);case"iiiiii":return w(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),a);default:return w(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),a)}}validate(e,t){return t>=1&&t<=7}set(e,t,r){return(e=function(e,t){let r;let a=(0,i.a)(e),n=(0===(r=(0,i.a)(a).getDay())&&(r=7),r);return(0,Y.f)(a,t-n)}(e,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};let AMPMParser=class AMPMParser extends Parser{priority=80;parse(e,t,r){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(p(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]};let AMPMMidnightParser=class AMPMMidnightParser extends Parser{priority=80;parse(e,t,r){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(p(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]};let DayPeriodParser=class DayPeriodParser extends Parser{priority=80;parse(e,t,r){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(p(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]};let Hour1to12Parser=class Hour1to12Parser extends Parser{priority=70;parse(e,t,r){switch(t){case"h":return h(c.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return f(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,r){let a=e.getHours()>=12;return a&&r<12?e.setHours(r+12,0,0,0):a||12!==r?e.setHours(r,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]};let Hour0to23Parser=class Hour0to23Parser extends Parser{priority=70;parse(e,t,r){switch(t){case"H":return h(c.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return f(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,r){return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]};let Hour0To11Parser=class Hour0To11Parser extends Parser{priority=70;parse(e,t,r){switch(t){case"K":return h(c.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return f(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]};let Hour1To24Parser=class Hour1To24Parser extends Parser{priority=70;parse(e,t,r){switch(t){case"k":return h(c.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return f(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,r){return e.setHours(r<=24?r%24:r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]};let MinuteParser=class MinuteParser extends Parser{priority=60;parse(e,t,r){switch(t){case"m":return h(c.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return f(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setMinutes(r,0,0),e}incompatibleTokens=["t","T"]};let SecondParser=class SecondParser extends Parser{priority=50;parse(e,t,r){switch(t){case"s":return h(c.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return f(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setSeconds(r,0),e}incompatibleTokens=["t","T"]};let FractionOfSecondParser=class FractionOfSecondParser extends Parser{priority=30;parse(e,t){return w(f(t.length,e),e=>Math.trunc(e*Math.pow(10,-t.length+3)))}set(e,t,r){return e.setMilliseconds(r),e}incompatibleTokens=["t","T"]};var q=r(40215);let ISOTimezoneWithZParser=class ISOTimezoneWithZParser extends Parser{priority=10;parse(e,t){switch(t){case"X":return m(l.basicOptionalMinutes,e);case"XX":return m(l.basic,e);case"XXXX":return m(l.basicOptionalSeconds,e);case"XXXXX":return m(l.extendedOptionalSeconds,e);default:return m(l.extended,e)}}set(e,t,r){return t.timestampIsSet?e:(0,a.w)(e,e.getTime()-(0,q.G)(e)-r)}incompatibleTokens=["t","T","x"]};let ISOTimezoneParser=class ISOTimezoneParser extends Parser{priority=10;parse(e,t){switch(t){case"x":return m(l.basicOptionalMinutes,e);case"xx":return m(l.basic,e);case"xxxx":return m(l.basicOptionalSeconds,e);case"xxxxx":return m(l.extendedOptionalSeconds,e);default:return m(l.extended,e)}}set(e,t,r){return t.timestampIsSet?e:(0,a.w)(e,e.getTime()-(0,q.G)(e)-r)}incompatibleTokens=["t","T","X"]};let TimestampSecondsParser=class TimestampSecondsParser extends Parser{priority=40;parse(e){return g(e)}set(e,t,r){return[(0,a.w)(e,1e3*r),{timestampIsSet:!0}]}incompatibleTokens="*"};let TimestampMillisecondsParser=class TimestampMillisecondsParser extends Parser{priority=20;parse(e){return g(e)}set(e,t,r){return[(0,a.w)(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"};let O={G:new EraParser,y:new YearParser,Y:new LocalWeekYearParser,R:new ISOWeekYearParser,u:new ExtendedYearParser,Q:new QuarterParser,q:new StandAloneQuarterParser,M:new MonthParser,L:new StandAloneMonthParser,w:new LocalWeekParser,I:new ISOWeekParser,d:new DateParser,D:new DayOfYearParser,E:new DayParser,e:new LocalDayParser,c:new StandAloneLocalDayParser,i:new ISODayParser,a:new AMPMParser,b:new AMPMMidnightParser,B:new DayPeriodParser,h:new Hour1to12Parser,H:new Hour0to23Parser,K:new Hour0To11Parser,k:new Hour1To24Parser,m:new MinuteParser,s:new SecondParser,S:new FractionOfSecondParser,X:new ISOTimezoneWithZParser,x:new ISOTimezoneParser,t:new TimestampSecondsParser,T:new TimestampMillisecondsParser},N=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,I=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,L=/^'([^]*?)'?$/,E=/''/g,Q=/\S/,R=/[a-zA-Z]/;function F(e,t,r,u){let c=Object.assign({},(0,n.q)()),l=u?.locale??c.locale??s.c,w=u?.firstWeekContainsDate??u?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,h=u?.weekStartsOn??u?.locale?.options?.weekStartsOn??c.weekStartsOn??c.locale?.options?.weekStartsOn??0;if(""===t)return""===e?(0,i.a)(r):(0,a.w)(r,NaN);let m={firstWeekContainsDate:w,weekStartsOn:h,locale:l},g=[new DateToSystemTimezoneSetter],f=t.match(I).map(e=>{let t=e[0];return t in o.m?(0,o.m[t])(e,l.formatLong):e}).join("").match(N),y=[];for(let n of f){!u?.useAdditionalWeekYearTokens&&(0,d.xM)(n)&&(0,d.Ss)(n,t,e),!u?.useAdditionalDayOfYearTokens&&(0,d.ef)(n)&&(0,d.Ss)(n,t,e);let s=n[0],i=O[s];if(i){let{incompatibleTokens:t}=i;if(Array.isArray(t)){let e=y.find(e=>t.includes(e.token)||e.token===s);if(e)throw RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`)}else if("*"===i.incompatibleTokens&&y.length>0)throw RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);y.push({token:s,fullToken:n});let o=i.run(e,n,l.match,m);if(!o)return(0,a.w)(r,NaN);g.push(o.setter),e=o.rest}else{if(s.match(R))throw RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");if("''"===n?n="'":"'"===s&&(n=n.match(L)[1].replace(E,"'")),0!==e.indexOf(n))return(0,a.w)(r,NaN);e=e.slice(n.length)}}if(e.length>0&&Q.test(e))return(0,a.w)(r,NaN);let p=g.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,r)=>r.indexOf(e)===t).map(e=>g.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]),b=(0,i.a)(r);if(isNaN(b.getTime()))return(0,a.w)(r,NaN);let x={};for(let e of p){if(!e.validate(b,m))return(0,a.w)(r,NaN);let t=e.set(b,x,m);Array.isArray(t)?(b=t[0],Object.assign(x,t[1])):b=t}return(0,a.w)(r,b)}}}]); +//# sourceMappingURL=vendors-node_modules_date-fns_addWeeks_mjs-node_modules_date-fns_addYears_mjs-node_modules_da-827f4f-49411b3ea7e7.js.map \ No newline at end of file diff --git a/vendors-node_modules_date-fns_format_mjs-6e4d0f904632.js.download b/vendors-node_modules_date-fns_format_mjs-6e4d0f904632.js.download new file mode 100644 index 0000000000..07edc50f05 --- /dev/null +++ b/vendors-node_modules_date-fns_format_mjs-6e4d0f904632.js.download @@ -0,0 +1,2 @@ +"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_date-fns_format_mjs"],{50622:(t,e,n)=>{n.d(e,{F:()=>r});function r(t,e){let n=Math.abs(t).toString().padStart(e,"0");return(t<0?"-":"")+n}},82695:(t,e,n)=>{n.d(e,{q:()=>a});let r={};function a(){return r}},36847:(t,e,n)=>{n.d(e,{m:()=>i});let r=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},a=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},i={p:a,P:(t,e)=>{let n;let i=t.match(/(P+)(p+)?/)||[],o=i[1],u=i[2];if(!u)return r(t,e);switch(o){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",r(o,e)).replace("{{time}}",a(u,e))}}},40215:(t,e,n)=>{n.d(e,{G:()=>a});var r=n(2642);function a(t){let e=(0,r.a)(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}},76992:(t,e,n)=>{n.d(e,{Ss:()=>s,ef:()=>o,xM:()=>u});let r=/^D+$/,a=/^Y+$/,i=["D","DD","YY","YYYY"];function o(t){return r.test(t)}function u(t){return a.test(t)}function s(t,e,n){let r=function(t,e,n){let r="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,n);if(console.warn(r),i.includes(t))throw RangeError(r)}},2940:(t,e,n)=>{n.d(e,{Cg:()=>i,F6:()=>d,Nw:()=>s,_m:()=>u,my:()=>r,s0:()=>o,w4:()=>a});let r=6048e5,a=864e5,i=6e4,o=36e5,u=1e3,s=43200,d=1440},35840:(t,e,n)=>{function r(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}n.d(e,{w:()=>r})},20514:(t,e,n)=>{n.d(e,{m:()=>o});var r=n(2940),a=n(51730),i=n(40215);function o(t,e){let n=(0,a.o)(t),o=(0,a.o)(e);return Math.round((+n-(0,i.G)(n)-(+o-(0,i.G)(o)))/r.w4)}},72471:(t,e,n)=>{n.d(e,{GP:()=>D});var r=n(36039),a=n(82695),i=n(20514),o=n(16823),u=n(2642),s=n(96722),d=n(65961),l=n(86676),c=n(29220),h=n(50622);let m={y(t,e){let n=t.getFullYear(),r=n>0?n:1-n;return(0,h.F)("yy"===e?r%100:r,e.length)},M(t,e){let n=t.getMonth();return"M"===e?String(n+1):(0,h.F)(n+1,2)},d:(t,e)=>(0,h.F)(t.getDate(),e.length),a(t,e){let n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(t,e)=>(0,h.F)(t.getHours()%12||12,e.length),H:(t,e)=>(0,h.F)(t.getHours(),e.length),m:(t,e)=>(0,h.F)(t.getMinutes(),e.length),s:(t,e)=>(0,h.F)(t.getSeconds(),e.length),S(t,e){let n=e.length,r=Math.trunc(t.getMilliseconds()*Math.pow(10,n-3));return(0,h.F)(r,e.length)}},f={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},g={G:function(t,e,n){let r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){let e=t.getFullYear();return n.ordinalNumber(e>0?e:1-e,{unit:"year"})}return m.y(t,e)},Y:function(t,e,n,r){let a=(0,c.h)(t,r),i=a>0?a:1-a;if("YY"===e){let t=i%100;return(0,h.F)(t,2)}return"Yo"===e?n.ordinalNumber(i,{unit:"year"}):(0,h.F)(i,e.length)},R:function(t,e){let n=(0,d.p)(t);return(0,h.F)(n,e.length)},u:function(t,e){let n=t.getFullYear();return(0,h.F)(n,e.length)},Q:function(t,e,n){let r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return(0,h.F)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){let r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return(0,h.F)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){let r=t.getMonth();switch(e){case"M":case"MM":return m.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){let r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return(0,h.F)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){let a=(0,l.N)(t,r);return"wo"===e?n.ordinalNumber(a,{unit:"week"}):(0,h.F)(a,e.length)},I:function(t,e,n){let r=(0,s.s)(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):(0,h.F)(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getDate(),{unit:"date"}):m.d(t,e)},D:function(t,e,n){let r=function(t){let e=(0,u.a)(t);return(0,i.m)(e,(0,o.D)(e))+1}(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,h.F)(r,e.length)},E:function(t,e,n){let r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){let a=t.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return(0,h.F)(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){let a=t.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return(0,h.F)(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){let r=t.getDay(),a=0===r?7:r;switch(e){case"i":return String(a);case"ii":return(0,h.F)(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){let r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){let r;let a=t.getHours();switch(r=12===a?f.noon:0===a?f.midnight:a/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){let r;let a=t.getHours();switch(r=a>=17?f.evening:a>=12?f.afternoon:a>=4?f.morning:f.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),n.ordinalNumber(e,{unit:"hour"})}return m.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getHours(),{unit:"hour"}):m.H(t,e)},K:function(t,e,n){let r=t.getHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):(0,h.F)(r,e.length)},k:function(t,e,n){let r=t.getHours();return(0===r&&(r=24),"ko"===e)?n.ordinalNumber(r,{unit:"hour"}):(0,h.F)(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):m.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getSeconds(),{unit:"second"}):m.s(t,e)},S:function(t,e){return m.S(t,e)},X:function(t,e,n){let r=t.getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return b(r);case"XXXX":case"XX":return y(r);default:return y(r,":")}},x:function(t,e,n){let r=t.getTimezoneOffset();switch(e){case"x":return b(r);case"xxxx":case"xx":return y(r);default:return y(r,":")}},O:function(t,e,n){let r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+w(r,":");default:return"GMT"+y(r,":")}},z:function(t,e,n){let r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+w(r,":");default:return"GMT"+y(r,":")}},t:function(t,e,n){let r=Math.trunc(t.getTime()/1e3);return(0,h.F)(r,e.length)},T:function(t,e,n){let r=t.getTime();return(0,h.F)(r,e.length)}};function w(t,e=""){let n=t>0?"-":"+",r=Math.abs(t),a=Math.trunc(r/60),i=r%60;return 0===i?n+String(a):n+String(a)+e+(0,h.F)(i,2)}function b(t,e){return t%60==0?(t>0?"-":"+")+(0,h.F)(Math.abs(t)/60,2):y(t,e)}function y(t,e=""){let n=Math.abs(t);return(t>0?"-":"+")+(0,h.F)(Math.trunc(n/60),2)+e+(0,h.F)(n%60,2)}var p=n(36847),v=n(76992),M=n(96912);let k=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,x=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,P=/^'([^]*?)'?$/,F=/''/g,S=/[a-zA-Z]/;function D(t,e,n){let i=(0,a.q)(),o=n?.locale??i.locale??r.c,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,d=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,l=(0,u.a)(t);if(!(0,M.f)(l))throw RangeError("Invalid time value");let c=e.match(x).map(t=>{let e=t[0];return"p"===e||"P"===e?(0,p.m[e])(t,o.formatLong):t}).join("").match(k).map(t=>{if("''"===t)return{isToken:!1,value:"'"};let e=t[0];if("'"===e)return{isToken:!1,value:function(t){let e=t.match(P);return e?e[1].replace(F,"'"):t}(t)};if(g[e])return{isToken:!0,value:t};if(e.match(S))throw RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));let h={firstWeekContainsDate:s,weekStartsOn:d,locale:o};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;return(!n?.useAdditionalWeekYearTokens&&(0,v.xM)(a)||!n?.useAdditionalDayOfYearTokens&&(0,v.ef)(a))&&(0,v.Ss)(a,e,String(t)),(0,g[a[0]])(l,a,o.localize,h)}).join("")}},96722:(t,e,n)=>{n.d(e,{s:()=>s});var r=n(2940),a=n(83787),i=n(65961),o=n(35840),u=n(2642);function s(t){let e=(0,u.a)(t);return Math.round((+(0,a.b)(e)-+function(t){let e=(0,i.p)(t),n=(0,o.w)(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),(0,a.b)(n)}(e))/r.my)+1}},65961:(t,e,n)=>{n.d(e,{p:()=>o});var r=n(35840),a=n(83787),i=n(2642);function o(t){let e=(0,i.a)(t),n=e.getFullYear(),o=(0,r.w)(t,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let u=(0,a.b)(o),s=(0,r.w)(t,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);let d=(0,a.b)(s);return e.getTime()>=u.getTime()?n+1:e.getTime()>=d.getTime()?n:n-1}},86676:(t,e,n)=>{n.d(e,{N:()=>d});var r=n(2940),a=n(92528),i=n(35840),o=n(29220),u=n(82695),s=n(2642);function d(t,e){let n=(0,s.a)(t);return Math.round((+(0,a.k)(n,e)-+function(t,e){let n=(0,u.q)(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=(0,o.h)(t,e),d=(0,i.w)(t,0);return d.setFullYear(s,0,r),d.setHours(0,0,0,0),(0,a.k)(d,e)}(n,e))/r.my)+1}},29220:(t,e,n)=>{n.d(e,{h:()=>u});var r=n(35840),a=n(92528),i=n(2642),o=n(82695);function u(t,e){let n=(0,i.a)(t),u=n.getFullYear(),s=(0,o.q)(),d=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,l=(0,r.w)(t,0);l.setFullYear(u+1,0,d),l.setHours(0,0,0,0);let c=(0,a.k)(l,e),h=(0,r.w)(t,0);h.setFullYear(u,0,d),h.setHours(0,0,0,0);let m=(0,a.k)(h,e);return n.getTime()>=c.getTime()?u+1:n.getTime()>=m.getTime()?u:u-1}},96912:(t,e,n)=>{n.d(e,{f:()=>a});var r=n(2642);function a(t){return(t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof t)&&!isNaN(Number((0,r.a)(t)))}},36039:(t,e,n)=>{n.d(e,{c:()=>d});let r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function a(t){return (e={})=>{let n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}let i={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},o={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function u(t){return(e,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&t.formattingValues){let e=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):e;r=t.formattingValues[a]||t.formattingValues[e]}else{let e=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;r=t.values[a]||t.values[e]}return r[t.argumentCallback?t.argumentCallback(e):e]}}function s(t){return(e,n={})=>{let r;let a=n.width,i=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;let u=o[0],s=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],d=Array.isArray(s)?function(t,e){for(let n=0;nt.test(u)):function(t,e){for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}(s,t=>t.test(u));return r=t.valueCallback?t.valueCallback(d):d,{value:r=n.valueCallback?n.valueCallback(r):r,rest:e.slice(u.length)}}}let d={code:"en-US",formatDistance:(t,e,n)=>{let a;let i=r[t];return(a="string"==typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),n?.addSuffix)?n.comparison&&n.comparison>0?"in "+a:a+" ago":a},formatLong:i,formatRelative:(t,e,n,r)=>o[t],localize:{ordinalNumber:(t,e)=>{let n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:u({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:u({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:u({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:u({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:u({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(t){return(e,n={})=>{let r=e.match(t.matchPattern);if(!r)return null;let a=r[0],i=e.match(t.parsePattern);if(!i)return null;let o=t.valueCallback?t.valueCallback(i[0]):i[0];return{value:o=n.valueCallback?n.valueCallback(o):o,rest:e.slice(a.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)}),era:s({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:s({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:s({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:s({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:s({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},51730:(t,e,n)=>{n.d(e,{o:()=>a});var r=n(2642);function a(t){let e=(0,r.a)(t);return e.setHours(0,0,0,0),e}},83787:(t,e,n)=>{n.d(e,{b:()=>a});var r=n(92528);function a(t){return(0,r.k)(t,{weekStartsOn:1})}},92528:(t,e,n)=>{n.d(e,{k:()=>i});var r=n(2642),a=n(82695);function i(t,e){let n=(0,a.q)(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=(0,r.a)(t),u=o.getDay();return o.setDate(o.getDate()-((u{n.d(e,{D:()=>i});var r=n(2642),a=n(35840);function i(t){let e=(0,r.a)(t),n=(0,a.w)(t,0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}},2642:(t,e,n)=>{function r(t){let e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new t.constructor(+t):new Date("number"==typeof t||"[object Number]"===e||"string"==typeof t||"[object String]"===e?t:NaN)}n.d(e,{a:()=>r})}}]); +//# sourceMappingURL=vendors-node_modules_date-fns_format_mjs-eb806e4df0fb.js.map \ No newline at end of file diff --git a/vendors-node_modules_dnd-kit_modifiers_dist_modifiers_esm_js-node_modules_dnd-kit_sortable_di-72228e-c0b5ab72cffa.js.download b/vendors-node_modules_dnd-kit_modifiers_dist_modifiers_esm_js-node_modules_dnd-kit_sortable_di-72228e-c0b5ab72cffa.js.download new file mode 100644 index 0000000000..13775069fb --- /dev/null +++ b/vendors-node_modules_dnd-kit_modifiers_dist_modifiers_esm_js-node_modules_dnd-kit_sortable_di-72228e-c0b5ab72cffa.js.download @@ -0,0 +1,2 @@ +"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_dnd-kit_modifiers_dist_modifiers_esm_js-node_modules_dnd-kit_sortable_di-72228e"],{26239:(e,t,n)=>{let r;n.d(t,{Mp:()=>eI,Hd:()=>eq,vL:()=>a,uN:()=>KeyboardSensor,cA:()=>MouseSensor,AN:()=>PointerSensor,IG:()=>TouchSensor,y$:()=>I,Sj:()=>B,Vy:()=>A,sl:()=>F,TT:()=>z,fF:()=>eW,E5:()=>x,PM:()=>e_,zM:()=>eK,MS:()=>M,FR:()=>R});var l,i,o,a,u,s,c,d,f,h,g=n(96540),p=n(40961),v=n(74979);let m={display:"none"};function b(e){let{id:t,value:n}=e;return g.createElement("div",{id:t,style:m},n)}function y(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return g.createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}let w=(0,g.createContext)(null);function x(e){let t=(0,g.useContext)(w);(0,g.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}let E={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},D={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function C(e){let{announcements:t=D,container:n,hiddenTextDescribedById:r,screenReaderInstructions:l=E}=e,{announce:i,announcement:o}=function(){let[e,t]=(0,g.useState)("");return{announce:(0,g.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),a=(0,v.YG)("DndLiveRegion"),[u,s]=(0,g.useState)(!1);if((0,g.useEffect)(()=>{s(!0)},[]),x((0,g.useMemo)(()=>({onDragStart(e){let{active:n}=e;i(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&i(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;i(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;i(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;i(t.onDragCancel({active:n,over:r}))}}),[i,t])),!u)return null;let c=g.createElement(g.Fragment,null,g.createElement(b,{id:r,value:l.draggable}),g.createElement(y,{id:a,announcement:o}));return n?(0,p.createPortal)(c,n):c}function S(){}function M(e,t){return(0,g.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function R(){for(var e=arguments.length,t=Array(e),n=0;n[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(l||(l={}));let k=Object.freeze({x:0,y:0});function T(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function L(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function O(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function N(e){let{left:t,top:n,height:r,width:l}=e;return[{x:t,y:n},{x:t+l,y:n},{x:t,y:n+r},{x:t+l,y:n+r}]}function A(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}let I=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=N(t),i=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=N(r),o=Number((l.reduce((e,t,r)=>e+T(n[r],t),0)/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:o}})}}return i.sort(L)},P=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=[];for(let e of r){let{id:r}=e,i=n.get(r);if(i){let n=function(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),l=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height);if(r0&&l.push({id:r,data:{droppableContainer:e,value:n}})}}return l.sort(O)},z=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];let l=[];for(let e of t){let{id:t}=e,i=n.get(t);if(i&&function(e,t){let{top:n,left:r,bottom:l,right:i}=t;return n<=e.y&&e.y<=l&&r<=e.x&&e.x<=i}(r,i)){let n=Number((N(i).reduce((e,t)=>e+T(r,t),0)/4).toFixed(4));l.push({id:t,data:{droppableContainer:e,value:n}})}}return l.sort(L)};function _(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:k}let W=function(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),l=1;l({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}(1);function Y(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}let K={ignoreTransform:!1};function B(e,t){void 0===t&&(t=K);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=(0,v.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=Y(t);if(!r)return e;let{scaleX:l,scaleY:i,x:o,y:a}=r,u=e.left-o-(1-l)*parseFloat(n),s=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=l?e.width/l:e.width,d=i?e.height/i:e.height;return{width:c,height:d,top:s,right:u+c,bottom:s+d,left:u}}(n,t,r))}let{top:r,left:l,width:i,height:o,bottom:a,right:u}=n;return{top:r,left:l,width:i,height:o,bottom:a,right:u}}function j(e){return B(e,{ignoreTransform:!0})}function F(e,t){let n=[];return e?function r(l){var i;if(null!=t&&n.length>=t||!l)return n;if((0,v.wz)(l)&&null!=l.scrollingElement&&!n.includes(l.scrollingElement))return n.push(l.scrollingElement),n;if(!(0,v.sb)(l)||(0,v.xZ)(l)||n.includes(l))return n;let o=(0,v.zk)(e).getComputedStyle(l);return(l!==e&&function(e,t){void 0===t&&(t=(0,v.zk)(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let r=t[e];return"string"==typeof r&&n.test(r)})}(l,o)&&n.push(l),void 0===(i=o)&&(i=(0,v.zk)(l).getComputedStyle(l)),"fixed"===i.position)?n:r(l.parentNode)}(e):n}function U(e){let[t]=F(e,1);return null!=t?t:null}function X(e){return v.Sw&&e?(0,v.l6)(e)?e:(0,v.Ll)(e)?(0,v.wz)(e)||e===(0,v.TW)(e).scrollingElement?window:(0,v.sb)(e)?e:null:null:null}function G(e){return(0,v.l6)(e)?e.scrollX:e.scrollLeft}function $(e){return(0,v.l6)(e)?e.scrollY:e.scrollTop}function H(e){return{x:G(e),y:$(e)}}function q(e){return!!v.Sw&&!!e&&e===document.scrollingElement}function J(e){let t={x:0,y:0},n=q(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},l=e.scrollTop<=t.y;return{isTop:l,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(i||(i={}));let V={x:.2,y:.2};function Q(e){return e.reduce((e,t)=>(0,v.WQ)(e,H(t)),k)}function Z(e,t){if(void 0===t&&(t=B),!e)return;let{top:n,left:r,bottom:l,right:i}=t(e);U(e)&&(l<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let ee=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+G(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+$(t),0)}]];let Rect=class Rect{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=F(t),r=Q(n);for(let[t,l,i]of(this.rect={...e},this.width=e.width,this.height=e.height,ee))for(let e of l)Object.defineProperty(this,e,{get:()=>{let l=i(n),o=r[t]-l;return this.rect[e]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};let Listeners=class Listeners{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function et(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function en(e){e.preventDefault()}function er(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(o||(o={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(a||(a={}));let el={start:[a.Space,a.Enter],cancel:[a.Esc],end:[a.Space,a.Enter]},ei=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case a.Right:return{...n,x:n.x+25};case a.Left:return{...n,x:n.x-25};case a.Down:return{...n,y:n.y+25};case a.Up:return{...n,y:n.y-25}}};let KeyboardSensor=class KeyboardSensor{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new Listeners((0,v.TW)(t)),this.windowListeners=new Listeners((0,v.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(o.Resize,this.handleCancel),this.windowListeners.add(o.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(o.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Z(n),t(k)}handleKeyDown(e){if((0,v.kx)(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:l=el,coordinateGetter:i=ei,scrollBehavior:o="smooth"}=r,{code:u}=e;if(l.end.includes(u)){this.handleEnd(e);return}if(l.cancel.includes(u)){this.handleCancel(e);return}let{collisionRect:s}=n.current,c=s?{x:s.left,y:s.top}:k;this.referenceCoordinates||(this.referenceCoordinates=c);let d=i(e,{active:t,context:n.current,currentCoordinates:c});if(d){let t=(0,v.Re)(d,c),r={x:0,y:0},{scrollableAncestors:l}=n.current;for(let n of l){let l=e.code,{isTop:i,isRight:u,isLeft:s,isBottom:c,maxScroll:f,minScroll:h}=J(n),g=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:l}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:l,width:e.clientWidth,height:e.clientHeight}}(n),p={x:Math.min(l===a.Right?g.right-g.width/2:g.right,Math.max(l===a.Right?g.left:g.left+g.width/2,d.x)),y:Math.min(l===a.Down?g.bottom-g.height/2:g.bottom,Math.max(l===a.Down?g.top:g.top+g.height/2,d.y))},v=l===a.Right&&!u||l===a.Left&&!s,m=l===a.Down&&!c||l===a.Up&&!i;if(v&&p.x!==d.x){let e=n.scrollLeft+t.x,i=l===a.Right&&e<=f.x||l===a.Left&&e>=h.x;if(i&&!t.y){n.scrollTo({left:e,behavior:o});return}i?r.x=n.scrollLeft-e:r.x=l===a.Right?n.scrollLeft-f.x:n.scrollLeft-h.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}if(m&&p.y!==d.y){let e=n.scrollTop+t.y,i=l===a.Down&&e<=f.y||l===a.Up&&e>=h.y;if(i&&!t.x){n.scrollTo({top:e,behavior:o});return}i?r.y=n.scrollTop-e:r.y=l===a.Down?n.scrollTop-f.y:n.scrollTop-h.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,(0,v.WQ)((0,v.Re)(d,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};function eo(e){return!!(e&&"distance"in e)}function ea(e){return!!(e&&"delay"in e)}KeyboardSensor.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=el,onActivation:l}=t,{active:i}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==l||l({event:e.nativeEvent}),!0)}return!1}}];let AbstractPointerSensor=class AbstractPointerSensor{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=(0,v.zk)(e);return e instanceof t?e:(0,v.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:l}=e,{target:i}=l;this.props=e,this.events=t,this.document=(0,v.TW)(i),this.documentListeners=new Listeners(this.document),this.listeners=new Listeners(n),this.windowListeners=new Listeners((0,v.zk)(i)),this.initialCoordinates=null!=(r=(0,v.e_)(l))?r:k,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(o.Resize,this.handleCancel),this.windowListeners.add(o.DragStart,en),this.windowListeners.add(o.VisibilityChange,this.handleCancel),this.windowListeners.add(o.ContextMenu,en),this.documentListeners.add(o.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ea(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(eo(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(o.Click,er,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(o.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:l}=this,{onMove:i,options:{activationConstraint:o}}=l;if(!r)return;let a=null!=(t=(0,v.e_)(e))?t:k,u=(0,v.Re)(r,a);if(!n&&o){if(eo(o)){if(null!=o.tolerance&&et(u,o.tolerance))return this.handleCancel();if(et(u,o.distance))return this.handleStart()}return ea(o)&&et(u,o.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),i(a)}handleEnd(){let{onEnd:e}=this.props;this.detach(),e()}handleCancel(){let{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===a.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}};let eu={move:{name:"pointermove"},end:{name:"pointerup"}};let PointerSensor=class PointerSensor extends AbstractPointerSensor{constructor(e){let{event:t}=e;super(e,eu,(0,v.TW)(t.target))}};PointerSensor.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];let es={move:{name:"mousemove"},end:{name:"mouseup"}};!function(e){e[e.RightClick=2]="RightClick"}(u||(u={}));let MouseSensor=class MouseSensor extends AbstractPointerSensor{constructor(e){super(e,es,(0,v.TW)(e.event.target))}};MouseSensor.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==u.RightClick&&(null==r||r({event:n}),!0)}}];let ec={move:{name:"touchmove"},end:{name:"touchend"}};let TouchSensor=class TouchSensor extends AbstractPointerSensor{constructor(e){super(e,ec)}static setup(){return window.addEventListener(ec.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ec.move.name,e)};function e(){}}};TouchSensor.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:l}=n;return!(l.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(s||(s={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(c||(c={}));let ed={x:{[i.Backward]:!1,[i.Forward]:!1},y:{[i.Backward]:!1,[i.Forward]:!1}};!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(d||(d={})),(f||(f={})).Optimized="optimized";let ef=new Map;function eh(e,t){return(0,v.KG)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function eg(e){let{callback:t,disabled:n}=e,r=(0,v._q)(t),l=(0,g.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,g.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}function ep(e){return new Rect(B(e),e)}function ev(e,t,n){void 0===t&&(t=ep);let[r,l]=(0,g.useReducer)(function(r){if(!e)return null;if(!1===e.isConnected){var l;return null!=(l=null!=r?r:n)?l:null}let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i},null),i=function(e){let{callback:t,disabled:n}=e,r=(0,v._q)(t),l=(0,g.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,g.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){l();break}}}}),o=eg({callback:l});return(0,v.Es)(()=>{l(),e?(null==o||o.observe(e),null==i||i.observe(document.body,{childList:!0,subtree:!0})):(null==o||o.disconnect(),null==i||i.disconnect())},[e]),r}let em=[];function eb(e,t){void 0===t&&(t=[]);let n=(0,g.useRef)(null);return(0,g.useEffect)(()=>{n.current=null},t),(0,g.useEffect)(()=>{let t=e!==k;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,v.Re)(e,n.current):k}function ey(e){return(0,g.useMemo)(()=>e?function(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}let ew=[];function ex(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,v.sb)(t)?t:e}let eE=[{sensor:PointerSensor,options:{}},{sensor:KeyboardSensor,options:{}}],eD={current:{}},eC={draggable:{measure:j},droppable:{measure:j,strategy:d.WhileDragging,frequency:f.Optimized},dragOverlay:{measure:B}};let DroppableContainersMap=class DroppableContainersMap extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}};let eS={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new DroppableContainersMap,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:S},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eC,measureDroppableContainers:S,windowRect:null,measuringScheduled:!1},eM={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:S,draggableNodes:new Map,over:null,measureDroppableContainers:S},eR=(0,g.createContext)(eM),ek=(0,g.createContext)(eS);function eT(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new DroppableContainersMap}}}function eL(e,t){switch(t.type){case l.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case l.DragMove:if(!e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case l.DragEnd:case l.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case l.RegisterDroppable:{let{element:n}=t,{id:r}=n,l=new DroppableContainersMap(e.droppable.containers);return l.set(r,n),{...e,droppable:{...e.droppable,containers:l}}}case l.SetDroppableDisabled:{let{id:n,key:r,disabled:l}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let o=new DroppableContainersMap(e.droppable.containers);return o.set(n,{...i,disabled:l}),{...e,droppable:{...e.droppable,containers:o}}}case l.UnregisterDroppable:{let{id:n,key:r}=t,l=e.droppable.containers.get(n);if(!l||r!==l.key)return e;let i=new DroppableContainersMap(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function eO(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:l}=(0,g.useContext)(eR),i=(0,v.ZC)(r),o=(0,v.ZC)(null==n?void 0:n.id);return(0,g.useEffect)(()=>{if(!t&&!r&&i&&null!=o){if(!(0,v.kx)(i)||document.activeElement===i.target)return;let e=l.get(o);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=(0,v.ag)(e);if(t){t.focus();break}}})}},[r,t,l,o,i]),null}function eN(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}let eA=(0,g.createContext)({...k,scaleX:1,scaleY:1});!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(h||(h={}));let eI=(0,g.memo)(function(e){var t,n,r,o,a,u;let{id:f,accessibility:m,autoScroll:b=!0,children:y,sensors:x=eE,collisionDetection:E=P,measuring:D,modifiers:S,...M}=e,[R,T]=(0,g.useReducer)(eL,void 0,eT),[L,O]=function(){let[e]=(0,g.useState)(()=>new Set),t=(0,g.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,g.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[N,I]=(0,g.useState)(h.Uninitialized),z=N===h.Initialized,{draggable:{active:Y,nodes:K,translate:j},droppable:{containers:G}}=R,$=Y?K.get(Y):null,Z=(0,g.useRef)({initial:null,translated:null}),ee=(0,g.useMemo)(()=>{var e;return null!=Y?{id:Y,data:null!=(e=null==$?void 0:$.data)?e:eD,rect:Z}:null},[Y,$]),et=(0,g.useRef)(null),[en,er]=(0,g.useState)(null),[el,ei]=(0,g.useState)(null),eo=(0,v.YN)(M,Object.values(M)),ea=(0,v.YG)("DndDescribedBy",f),eu=(0,g.useMemo)(()=>G.getEnabled(),[G]),es=(0,g.useMemo)(()=>({draggable:{...eC.draggable,...null==D?void 0:D.draggable},droppable:{...eC.droppable,...null==D?void 0:D.droppable},dragOverlay:{...eC.dragOverlay,...null==D?void 0:D.dragOverlay}}),[null==D?void 0:D.draggable,null==D?void 0:D.droppable,null==D?void 0:D.dragOverlay]),{droppableRects:ec,measureDroppableContainers:ep,measuringScheduled:eS}=function(e,t){let{dragging:n,dependencies:r,config:l}=t,[i,o]=(0,g.useState)(null),{frequency:a,measure:u,strategy:s}=l,c=(0,g.useRef)(e),f=function(){switch(s){case d.Always:return!1;case d.BeforeDragging:return n;default:return!n}}(),h=(0,v.YN)(f),p=(0,g.useCallback)(function(e){void 0===e&&(e=[]),h.current||o(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[h]),m=(0,g.useRef)(null),b=(0,v.KG)(t=>{if(f&&!n)return ef;if(!t||t===ef||c.current!==e||null!=i){let t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>0&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new Rect(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,i,n,f,u]);return(0,g.useEffect)(()=>{c.current=e},[e]),(0,g.useEffect)(()=>{f||p()},[n,f]),(0,g.useEffect)(()=>{i&&i.length>0&&o(null)},[JSON.stringify(i)]),(0,g.useEffect)(()=>{f||"number"!=typeof a||null!==m.current||(m.current=setTimeout(()=>{p(),m.current=null},a))},[a,f,p,...r]),{droppableRects:b,measureDroppableContainers:p,measuringScheduled:null!=i}}(eu,{dragging:z,dependencies:[j.x,j.y],config:es.droppable}),eM=function(e,t){let n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return(0,v.KG)(e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(K,Y),eI=(0,g.useMemo)(()=>el?(0,v.e_)(el):null,[el]),eP=function(){let e=(null==en?void 0:en.autoScrollEnabled)===!1,t="object"==typeof b?!1===b.enabled:!1===b,n=z&&!e&&!t;return"object"==typeof b?{...b,enabled:n}:{enabled:n}}(),ez=eh(eM,es.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:l=!0}=e,i=(0,g.useRef)(!1),{x:o,y:a}="boolean"==typeof l?{x:l,y:l}:l;(0,v.Es)(()=>{if(!o&&!a||!t){i.current=!1;return}if(i.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let l=_(n(e),r);if(o||(l.x=0),a||(l.y=0),i.current=!0,Math.abs(l.x)>0||Math.abs(l.y)>0){let t=U(e);t&&t.scrollBy({top:l.y,left:l.x})}},[t,o,a,r,n])}({activeNode:Y?K.get(Y):null,config:eP.layoutShiftCompensation,initialRect:ez,measure:es.draggable.measure});let e_=ev(eM,es.draggable.measure,ez),eW=ev(eM?eM.parentElement:null),eY=(0,g.useRef)({activatorEvent:null,active:null,activeNode:eM,collisionRect:null,collisions:null,droppableRects:ec,draggableNodes:K,draggingNode:null,draggingNodeRect:null,droppableContainers:G,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eK=G.getNodeFor(null==(t=eY.current.over)?void 0:t.id),eB=function(e){let{measure:t}=e,[n,r]=(0,g.useState)(null),l=eg({callback:(0,g.useCallback)(e=>{for(let{target:n}of e)if((0,v.sb)(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),i=(0,g.useCallback)(e=>{let n=ex(e);null==l||l.disconnect(),n&&(null==l||l.observe(n)),r(n?t(n):null)},[t,l]),[o,a]=(0,v.lk)(i);return(0,g.useMemo)(()=>({nodeRef:o,rect:n,setRef:a}),[n,o,a])}({measure:es.dragOverlay.measure}),ej=null!=(n=eB.nodeRef.current)?n:eM,eF=z?null!=(r=eB.rect)?r:e_:null,eU=!!(eB.nodeRef.current&&eB.rect),eX=function(e){let t=eh(e);return _(e,t)}(eU?null:e_),eG=ey(ej?(0,v.zk)(ej):null),e$=function(e){let t=(0,g.useRef)(e),n=(0,v.KG)(n=>e?n&&n!==em&&e&&t.current&&e.parentNode===t.current.parentNode?n:F(e):em,[e]);return(0,g.useEffect)(()=>{t.current=e},[e]),n}(z?null!=eK?eK:eM:null),eH=function(e,t){void 0===t&&(t=B);let[n]=e,r=ey(n?(0,v.zk)(n):null),[l,i]=(0,g.useReducer)(function(){return e.length?e.map(e=>q(e)?r:new Rect(t(e),e)):ew},ew),o=eg({callback:i});return e.length>0&&l===ew&&i(),(0,v.Es)(()=>{e.length?e.forEach(e=>null==o?void 0:o.observe(e)):(null==o||o.disconnect(),i())},[e]),l}(e$),eq=eN(S,{transform:{x:j.x-eX.x,y:j.y-eX.y,scaleX:1,scaleY:1},activatorEvent:el,active:ee,activeNodeRect:e_,containerNodeRect:eW,draggingNodeRect:eF,over:eY.current.over,overlayNodeRect:eB.rect,scrollableAncestors:e$,scrollableAncestorRects:eH,windowRect:eG}),eJ=eI?(0,v.WQ)(eI,j):null,eV=function(e){let[t,n]=(0,g.useState)(null),r=(0,g.useRef)(e),l=(0,g.useCallback)(e=>{let t=X(e.target);t&&n(e=>e?(e.set(t,H(t)),new Map(e)):null)},[]);return(0,g.useEffect)(()=>{let t=r.current;if(e!==t){i(t);let o=e.map(e=>{let t=X(e);return t?(t.addEventListener("scroll",l,{passive:!0}),[t,H(t)]):null}).filter(e=>null!=e);n(o.length?new Map(o):null),r.current=e}return()=>{i(e),i(t)};function i(e){e.forEach(e=>{let t=X(e);null==t||t.removeEventListener("scroll",l)})}},[l,e]),(0,g.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,v.WQ)(e,t),k):Q(e):k,[e,t])}(e$),eQ=eb(eV),eZ=eb(eV,[e_]),e0=(0,v.WQ)(eq,eQ),e1=eF?W(eF,eq):null,e2=ee&&e1?E({active:ee,collisionRect:e1,droppableRects:ec,droppableContainers:eu,pointerCoordinates:eJ}):null,e9=A(e2,"id"),[e4,e5]=(0,g.useState)(null),e7=(a=eU?eq:(0,v.WQ)(eq,eZ),u=null!=(o=null==e4?void 0:e4.rect)?o:null,{...a,scaleX:u&&e_?u.width/e_.width:1,scaleY:u&&e_?u.height/e_.height:1}),e6=(0,g.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==et.current)return;let i=K.get(et.current);if(!i)return;let o=e.nativeEvent,a=new n({active:et.current,activeNode:i,event:o,options:r,context:eY,onStart(e){let t=et.current;if(null==t)return;let n=K.get(t);if(!n)return;let{onDragStart:r}=eo.current,i={active:{id:t,data:n.data,rect:Z}};(0,p.unstable_batchedUpdates)(()=>{null==r||r(i),I(h.Initializing),T({type:l.DragStart,initialCoordinates:e,active:t}),L({type:"onDragStart",event:i})})},onMove(e){T({type:l.DragMove,coordinates:e})},onEnd:u(l.DragEnd),onCancel:u(l.DragCancel)});function u(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=eY.current,a=null;if(t&&i){let{cancelDrop:u}=eo.current;a={activatorEvent:o,active:t,collisions:n,delta:i,over:r},e===l.DragEnd&&"function"==typeof u&&await Promise.resolve(u(a))&&(e=l.DragCancel)}et.current=null,(0,p.unstable_batchedUpdates)(()=>{T({type:e}),I(h.Uninitialized),e5(null),er(null),ei(null);let t=e===l.DragEnd?"onDragEnd":"onDragCancel";if(a){let e=eo.current[t];null==e||e(a),L({type:t,event:a})}})}}(0,p.unstable_batchedUpdates)(()=>{er(a),ei(e.nativeEvent)})},[K]),e3=(0,g.useCallback)((e,t)=>(n,r)=>{let l=n.nativeEvent,i=K.get(r);null!==et.current||!i||l.dndKit||l.defaultPrevented||!0!==e(n,t.options,{active:i})||(l.dndKit={capturedBy:t.sensor},et.current=r,e6(n,t))},[K,e6]),e8=(0,g.useMemo)(()=>x.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:e3(e.handler,t)}))]},[]),[x,e3]);(0,g.useEffect)(()=>{if(!v.Sw)return;let e=x.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},x.map(e=>{let{sensor:t}=e;return t})),(0,v.Es)(()=>{e_&&N===h.Initializing&&I(h.Initialized)},[e_,N]),(0,g.useEffect)(()=>{let{onDragMove:e}=eo.current,{active:t,activatorEvent:n,collisions:r,over:l}=eY.current;if(!t||!n)return;let i={active:t,activatorEvent:n,collisions:r,delta:{x:e0.x,y:e0.y},over:l};(0,p.unstable_batchedUpdates)(()=>{null==e||e(i),L({type:"onDragMove",event:i})})},[e0.x,e0.y]),(0,g.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:l}=eY.current;if(!e||null==et.current||!t||!l)return;let{onDragOver:i}=eo.current,o=r.get(e9),a=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,u={active:e,activatorEvent:t,collisions:n,delta:{x:l.x,y:l.y},over:a};(0,p.unstable_batchedUpdates)(()=>{e5(a),null==i||i(u),L({type:"onDragOver",event:u})})},[e9]),(0,v.Es)(()=>{eY.current={activatorEvent:el,active:ee,activeNode:eM,collisionRect:e1,collisions:e2,droppableRects:ec,draggableNodes:K,draggingNode:ej,draggingNodeRect:eF,droppableContainers:G,over:e4,scrollableAncestors:e$,scrollAdjustedTranslate:e0},Z.current={initial:eF,translated:e1}},[ee,eM,e2,e1,K,ej,eF,ec,G,e4,e$,e0]),function(e){let{acceleration:t,activator:n=s.Pointer,canScroll:r,draggingRect:l,enabled:o,interval:a=5,order:u=c.TreeOrder,pointerCoordinates:d,scrollableAncestors:f,scrollableAncestorRects:h,delta:p,threshold:m}=e,b=function(e){let{delta:t,disabled:n}=e,r=(0,v.ZC)(t);return(0,v.KG)(e=>{if(n||!r||!e)return ed;let l={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[i.Backward]:e.x[i.Backward]||-1===l.x,[i.Forward]:e.x[i.Forward]||1===l.x},y:{[i.Backward]:e.y[i.Backward]||-1===l.y,[i.Forward]:e.y[i.Forward]||1===l.y}}},[n,t,r])}({delta:p,disabled:!o}),[y,w]=(0,v.$$)(),x=(0,g.useRef)({x:0,y:0}),E=(0,g.useRef)({x:0,y:0}),D=(0,g.useMemo)(()=>{switch(n){case s.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case s.DraggableRect:return l}},[n,l,d]),C=(0,g.useRef)(null),S=(0,g.useCallback)(()=>{let e=C.current;if(!e)return;let t=x.current.x*E.current.x,n=x.current.y*E.current.y;e.scrollBy(t,n)},[]),M=(0,g.useMemo)(()=>u===c.TreeOrder?[...f].reverse():f,[u,f]);(0,g.useEffect)(()=>{if(!o||!f.length||!D){w();return}for(let e of M){if((null==r?void 0:r(e))===!1)continue;let n=h[f.indexOf(e)];if(!n)continue;let{direction:l,speed:o}=function(e,t,n,r,l){let{top:o,left:a,right:u,bottom:s}=n;void 0===r&&(r=10),void 0===l&&(l=V);let{isTop:c,isBottom:d,isLeft:f,isRight:h}=J(e),g={x:0,y:0},p={x:0,y:0},v={height:t.height*l.y,width:t.width*l.x};return!c&&o<=t.top+v.height?(g.y=i.Backward,p.y=r*Math.abs((t.top+v.height-o)/v.height)):!d&&s>=t.bottom-v.height&&(g.y=i.Forward,p.y=r*Math.abs((t.bottom-v.height-s)/v.height)),!h&&u>=t.right-v.width?(g.x=i.Forward,p.x=r*Math.abs((t.right-v.width-u)/v.width)):!f&&a<=t.left+v.width&&(g.x=i.Backward,p.x=r*Math.abs((t.left+v.width-a)/v.width)),{direction:g,speed:p}}(e,n,D,t,m);for(let e of["x","y"])b[e][l[e]]||(o[e]=0,l[e]=0);if(o.x>0||o.y>0){w(),C.current=e,y(S,a),x.current=o,E.current=l;return}}x.current={x:0,y:0},E.current={x:0,y:0},w()},[t,S,r,w,o,a,JSON.stringify(D),JSON.stringify(b),y,f,M,h,JSON.stringify(m)])}({...eP,delta:j,draggingRect:e1,pointerCoordinates:eJ,scrollableAncestors:e$,scrollableAncestorRects:eH});let te=(0,g.useMemo)(()=>({active:ee,activeNode:eM,activeNodeRect:e_,activatorEvent:el,collisions:e2,containerNodeRect:eW,dragOverlay:eB,draggableNodes:K,droppableContainers:G,droppableRects:ec,over:e4,measureDroppableContainers:ep,scrollableAncestors:e$,scrollableAncestorRects:eH,measuringConfiguration:es,measuringScheduled:eS,windowRect:eG}),[ee,eM,e_,el,e2,eW,eB,K,G,ec,e4,ep,e$,eH,es,eS,eG]),tt=(0,g.useMemo)(()=>({activatorEvent:el,activators:e8,active:ee,activeNodeRect:e_,ariaDescribedById:{draggable:ea},dispatch:T,draggableNodes:K,over:e4,measureDroppableContainers:ep}),[el,e8,ee,e_,T,ea,K,e4,ep]);return g.createElement(w.Provider,{value:O},g.createElement(eR.Provider,{value:tt},g.createElement(ek.Provider,{value:te},g.createElement(eA.Provider,{value:e7},y)),g.createElement(eO,{disabled:(null==m?void 0:m.restoreFocus)===!1})),g.createElement(C,{...m,hiddenTextDescribedById:ea}))}),eP=(0,g.createContext)(null),ez="button";function e_(e){let{id:t,data:n,disabled:r=!1,attributes:l}=e,i=(0,v.YG)("Droppable"),{activators:o,activatorEvent:a,active:u,activeNodeRect:s,ariaDescribedById:c,draggableNodes:d,over:f}=(0,g.useContext)(eR),{role:h=ez,roleDescription:p="draggable",tabIndex:m=0}=null!=l?l:{},b=(null==u?void 0:u.id)===t,y=(0,g.useContext)(b?eA:eP),[w,x]=(0,v.lk)(),[E,D]=(0,v.lk)(),C=(0,g.useMemo)(()=>o.reduce((e,n)=>{let{eventName:r,handler:l}=n;return e[r]=e=>{l(e,t)},e},{}),[o,t]),S=(0,v.YN)(n);return(0,v.Es)(()=>(d.set(t,{id:t,key:i,node:w,activatorNode:E,data:S}),()=>{let e=d.get(t);e&&e.key===i&&d.delete(t)}),[d,t]),{active:u,activatorEvent:a,activeNodeRect:s,attributes:(0,g.useMemo)(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":!!b&&h===ez||void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,m,b,p,c.draggable]),isDragging:b,listeners:r?void 0:C,node:w,over:f,setNodeRef:x,setActivatorNodeRef:D,transform:y}}function eW(){return(0,g.useContext)(ek)}let eY={timeout:25};function eK(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,o=(0,v.YG)("Droppable"),{active:a,dispatch:u,over:s,measureDroppableContainers:c}=(0,g.useContext)(eR),d=(0,g.useRef)({disabled:n}),f=(0,g.useRef)(!1),h=(0,g.useRef)(null),p=(0,g.useRef)(null),{disabled:m,updateMeasurementsFor:b,timeout:y}={...eY,...i},w=(0,v.YN)(null!=b?b:r),x=eg({callback:(0,g.useCallback)(()=>{if(!f.current){f.current=!0;return}null!=p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{c(Array.isArray(w.current)?w.current:[w.current]),p.current=null},y)},[y]),disabled:m||!a}),E=(0,g.useCallback)((e,t)=>{x&&(t&&(x.unobserve(t),f.current=!1),e&&x.observe(e))},[x]),[D,C]=(0,v.lk)(E),S=(0,v.YN)(t);return(0,g.useEffect)(()=>{x&&D.current&&(x.disconnect(),f.current=!1,x.observe(D.current))},[D,x]),(0,v.Es)(()=>(u({type:l.RegisterDroppable,element:{id:r,key:o,disabled:n,node:D,rect:h,data:S}}),()=>u({type:l.UnregisterDroppable,key:o,id:r})),[r]),(0,g.useEffect)(()=>{n!==d.current.disabled&&(u({type:l.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)},[r,o,n,u]),{active:a,rect:h,isOver:(null==s?void 0:s.id)===r,node:D,over:s,setNodeRef:C}}function eB(e){let{animation:t,children:n}=e,[r,l]=(0,g.useState)(null),[i,o]=(0,g.useState)(null),a=(0,v.ZC)(n);return n||r||!a||l(a),(0,v.Es)(()=>{if(!i)return;let e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;if(null==e||null==n){l(null);return}Promise.resolve(t(n,i)).then(()=>{l(null)})},[t,r,i]),g.createElement(g.Fragment,null,n,r?(0,g.cloneElement)(r,{ref:o}):null)}let ej={x:0,y:0,scaleX:1,scaleY:1};function eF(e){let{children:t}=e;return g.createElement(eR.Provider,{value:eM},g.createElement(eA.Provider,{value:ej},t))}let eU={position:"fixed",touchAction:"none"},eX=e=>(0,v.kx)(e)?"transform 250ms ease":void 0,eG=(0,g.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:l,children:i,className:o,rect:a,style:u,transform:s,transition:c=eX}=e;if(!a)return null;let d=l?s:{...s,scaleX:1,scaleY:1},f={...eU,width:a.width,height:a.height,top:a.top,left:a.left,transform:v.Ks.Transform.toString(d),transformOrigin:l&&r?function(e,t){let n=(0,v.e_)(e);if(!n)return"0 0";let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}(r,a):void 0,transition:"function"==typeof c?c(r):c,...u};return g.createElement(n,{className:o,style:f,ref:t},i)}),e$={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:v.Ks.Transform.toString(t)},{transform:v.Ks.Transform.toString(n)}]},sideEffects:(r={styles:{active:{opacity:"0"}}},e=>{let{active:t,dragOverlay:n}=e,l={},{styles:i,className:o}=r;if(null!=i&&i.active)for(let[e,n]of Object.entries(i.active))void 0!==n&&(l[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,n));if(null!=i&&i.dragOverlay)for(let[e,t]of Object.entries(i.dragOverlay))void 0!==t&&n.node.style.setProperty(e,t);return null!=o&&o.active&&t.node.classList.add(o.active),null!=o&&o.dragOverlay&&n.node.classList.add(o.dragOverlay),function(){for(let[e,n]of Object.entries(l))t.node.style.setProperty(e,n);null!=o&&o.active&&t.node.classList.remove(o.active)}})},eH=0,eq=g.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:l,transition:i,modifiers:o,wrapperElement:a="div",className:u,zIndex:s=999}=e,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:p,droppableContainers:m,dragOverlay:b,over:y,measuringConfiguration:w,scrollableAncestors:x,scrollableAncestorRects:E,windowRect:D}=eW(),C=(0,g.useContext)(eA),S=function(e){return(0,g.useMemo)(()=>{if(null!=e)return++eH},[e])}(null==d?void 0:d.id),M=eN(o,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:b.rect,over:y,overlayNodeRect:b.rect,scrollableAncestors:x,scrollableAncestorRects:E,transform:C,windowRect:D}),R=eh(f),k=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:l}=e;return(0,v._q)((e,i)=>{if(null===t)return;let o=n.get(e);if(!o)return;let a=o.node.current;if(!a)return;let u=ex(i);if(!u)return;let{transform:s}=(0,v.zk)(i).getComputedStyle(i),c=Y(s);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:n,sideEffects:r,keyframes:l}={...e$,...e};return e=>{let{active:i,dragOverlay:o,transform:a,...u}=e;if(!t)return;let s={x:o.rect.left-i.rect.left,y:o.rect.top-i.rect.top},c={scaleX:1!==a.scaleX?i.rect.width*a.scaleX/o.rect.width:1,scaleY:1!==a.scaleY?i.rect.height*a.scaleY/o.rect.height:1},d={x:a.x-s.x,y:a.y-s.y,...c},f=l({...u,active:i,dragOverlay:o,transform:{initial:a,final:d}}),[h]=f,g=f[f.length-1];if(JSON.stringify(h)===JSON.stringify(g))return;let p=null==r?void 0:r({active:i,dragOverlay:o,...u}),v=o.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{v.onfinish=()=>{null==p||p(),e()}})}}(t);return Z(a,l.draggable.measure),d({active:{id:e,data:o.data,node:a,rect:l.draggable.measure(a)},draggableNodes:n,dragOverlay:{node:i,rect:l.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:l,transform:c})})}({config:r,draggableNodes:p,droppableContainers:m,measuringConfiguration:w}),T=R?b.setRef:void 0;return g.createElement(eF,null,g.createElement(eB,{animation:k},d&&S?g.createElement(eG,{key:S,id:d.id,ref:T,as:a,activatorEvent:c,adjustScale:t,className:u,transition:i,rect:R,style:{zIndex:s,...l},transform:M},n):null))})},18831:(e,t,n)=>{n.d(t,{FN:()=>i,Mk:()=>l,dU:()=>r}),n(74979);let r=e=>{let{transform:t}=e;return{...t,y:0}},l=e=>{let{draggingNodeRect:t,transform:n,scrollableAncestorRects:r}=e,l=r[0];return t&&l?function(e,t,n){let r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}(n,t,l):n},i=e=>{let{transform:t}=e;return{...t,x:0}}},43627:(e,t,n)=>{n.d(t,{JR:()=>S,_G:()=>f,gB:()=>p,gl:()=>E,m$:()=>s});var r=n(96540),l=n(26239),i=n(74979);function o(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function a(e){return null!==e&&e>=0}let u={scaleX:1,scaleY:1},s=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:l,overIndex:i,index:o}=e,a=null!=(t=n[l])?t:r;if(!a)return null;let s=function(e,t,n){let r=e[t],l=e[t-1],i=e[t+1];return r&&(l||i)?nl&&o<=i?{x:-a.width-s,y:0,...u}:o=i?{x:a.width+s,y:0,...u}:{x:0,y:0,...u}},c=e=>{let{rects:t,activeIndex:n,overIndex:r,index:l}=e,i=o(t,r,n),a=t[l],u=i[l];return u&&a?{x:u.left-a.left,y:u.top-a.top,scaleX:u.width/a.width,scaleY:u.height/a.height}:null},d={scaleX:1,scaleY:1},f=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:l,rects:i,overIndex:o}=e,a=null!=(t=i[n])?t:r;if(!a)return null;if(l===n){let e=i[o];return e?{x:0,y:nn&&l<=o?{x:0,y:-a.height-u,...d}:l=o?{x:0,y:a.height+u,...d}:{x:0,y:0,...d}},h="Sortable",g=r.createContext({activeIndex:-1,containerId:h,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:c,disabled:{draggable:!1,droppable:!1}});function p(e){let{children:t,id:n,items:o,strategy:a=c,disabled:u=!1}=e,{active:s,dragOverlay:d,droppableRects:f,over:p,measureDroppableContainers:v}=(0,l.fF)(),m=(0,i.YG)(h,n),b=null!==d.rect,y=(0,r.useMemo)(()=>o.map(e=>"object"==typeof e&&"id"in e?e.id:e),[o]),w=null!=s,x=s?y.indexOf(s.id):-1,E=p?y.indexOf(p.id):-1,D=(0,r.useRef)(y),C=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{C&&w&&v(y)},[C,y,w,v]),(0,r.useEffect)(()=>{D.current=y},[y]);let R=(0,r.useMemo)(()=>({activeIndex:x,containerId:m,disabled:M,disableTransforms:S,items:y,overIndex:E,useDragOverlay:b,sortedRects:y.reduce((e,t,n)=>{let r=f.get(t);return r&&(e[n]=r),e},Array(y.length)),strategy:a}),[x,m,M.draggable,M.droppable,S,y,E,f,b,a]);return r.createElement(g.Provider,{value:R},t)}let v=e=>{let{id:t,items:n,activeIndex:r,overIndex:l}=e;return o(n,r,l).indexOf(t)},m=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:l,items:i,newIndex:o,previousItems:a,previousContainerId:u,transition:s}=e;return!!s&&!!r&&(a===i||l!==o)&&(!!n||o!==l&&t===u)},b={duration:200,easing:"ease"},y="transform",w=i.Ks.Transition.toString({property:y,duration:0,easing:"linear"}),x={roleDescription:"sortable"};function E(e){var t,n;let{animateLayoutChanges:o=m,attributes:u,disabled:s,data:c,getNewIndex:d=v,id:f,strategy:h,resizeObserverConfig:p,transition:E=b}=e,{items:D,containerId:C,activeIndex:S,disabled:M,disableTransforms:R,sortedRects:k,overIndex:T,useDragOverlay:L,strategy:O}=(0,r.useContext)(g),N="boolean"==typeof s?{draggable:s,droppable:!1}:{draggable:null!=(t=null==s?void 0:s.draggable)?t:M.draggable,droppable:null!=(n=null==s?void 0:s.droppable)?n:M.droppable},A=D.indexOf(f),I=(0,r.useMemo)(()=>({sortable:{containerId:C,index:A,items:D},...c}),[C,c,A,D]),P=(0,r.useMemo)(()=>D.slice(D.indexOf(f)),[D,f]),{rect:z,node:_,isOver:W,setNodeRef:Y}=(0,l.zM)({id:f,data:I,disabled:N.droppable,resizeObserverConfig:{updateMeasurementsFor:P,...p}}),{active:K,activatorEvent:B,activeNodeRect:j,attributes:F,setNodeRef:U,listeners:X,isDragging:G,over:$,setActivatorNodeRef:H,transform:q}=(0,l.PM)({id:f,data:I,attributes:{...x,...u},disabled:N.draggable}),J=(0,i.jn)(Y,U),V=!!K,Q=V&&!R&&a(S)&&a(T),Z=!L&&G,ee=Z&&Q?q:null,et=Q?null!=ee?ee:(null!=h?h:O)({rects:k,activeNodeRect:j,activeIndex:S,overIndex:T,index:A}):null,en=a(S)&&a(T)?d({id:f,items:D,activeIndex:S,overIndex:T}):A,er=null==K?void 0:K.id,el=(0,r.useRef)({activeId:er,items:D,newIndex:en,containerId:C}),ei=D!==el.current.items,eo=o({active:K,containerId:C,isDragging:G,isSorting:V,id:f,index:A,items:D,newIndex:el.current.newIndex,previousItems:el.current.items,previousContainerId:el.current.containerId,transition:E,wasDragging:null!=el.current.activeId}),ea=function(e){let{disabled:t,index:n,node:o,rect:a}=e,[u,s]=(0,r.useState)(null),c=(0,r.useRef)(n);return(0,i.Es)(()=>{if(!t&&n!==c.current&&o.current){let e=a.current;if(e){let t=(0,l.Sj)(o.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&s(n)}}n!==c.current&&(c.current=n)},[t,n,o,a]),(0,r.useEffect)(()=>{u&&s(null)},[u]),u}({disabled:!eo,index:A,node:_,rect:z});return(0,r.useEffect)(()=>{V&&el.current.newIndex!==en&&(el.current.newIndex=en),C!==el.current.containerId&&(el.current.containerId=C),D!==el.current.items&&(el.current.items=D)},[V,en,C,D]),(0,r.useEffect)(()=>{if(er===el.current.activeId)return;if(er&&!el.current.activeId){el.current.activeId=er;return}let e=setTimeout(()=>{el.current.activeId=er},50);return()=>clearTimeout(e)},[er]),{active:K,activeIndex:S,attributes:F,data:I,rect:z,index:A,newIndex:en,items:D,isOver:W,isSorting:V,isDragging:G,listeners:X,node:_,overIndex:T,over:$,setNodeRef:J,setActivatorNodeRef:H,setDroppableNodeRef:Y,setDraggableNodeRef:U,transform:null!=ea?ea:et,transition:ea||ei&&el.current.newIndex===A?w:(!Z||(0,i.kx)(B))&&E&&(V||eo)?i.Ks.Transition.toString({...E,property:y}):void 0}}function D(e){if(!e)return!1;let t=e.data.current;return!!t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable}let C=[l.vL.Down,l.vL.Right,l.vL.Up,l.vL.Left],S=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:a,over:u,scrollableAncestors:s}}=t;if(C.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];a.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;let i=o.get(n.id);if(i)switch(e.code){case l.vL.Down:r.topi.top&&t.push(n);break;case l.vL.Left:r.left>i.left&&t.push(n);break;case l.vL.Right:r.left1&&(d=c[1].id),null!=d){let e=a.get(n.id),t=a.get(d),u=t?o.get(t.id):null,c=null==t?void 0:t.node.current;if(c&&u&&e&&t){let n=(0,l.sl)(c).some((e,t)=>s[t]!==e),o=M(e,t),a=function(e,t){return!!(D(e)&&D(t)&&M(e,t))&&e.data.current.sortable.index{n.d(t,{$$:()=>p,Es:()=>h,KG:()=>m,Ks:()=>R,Ll:()=>a,Re:()=>C,Sw:()=>i,TW:()=>f,WQ:()=>D,YG:()=>x,YN:()=>v,ZC:()=>y,_q:()=>g,ag:()=>T,e_:()=>M,jn:()=>l,kx:()=>S,l6:()=>o,lk:()=>b,sb:()=>c,wz:()=>s,xZ:()=>d,zk:()=>u});var r=n(96540);function l(){for(var e=arguments.length,t=Array(e),n=0;ne=>{t.forEach(t=>t(e))},t)}let i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function o(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function a(e){return"nodeType"in e}function u(e){var t,n;return e?o(e)?e:a(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function s(e){let{Document:t}=u(e);return e instanceof t}function c(e){return!o(e)&&e instanceof u(e).HTMLElement}function d(e){return e instanceof u(e).SVGElement}function f(e){return e?o(e)?e.document:a(e)?s(e)?e:c(e)||d(e)?e.ownerDocument:document:document:document}let h=i?r.useLayoutEffect:r.useEffect;function g(e){let t=(0,r.useRef)(e);return h(()=>{t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r{e.current=setInterval(t,n)},[]),(0,r.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function v(e,t){void 0===t&&(t=[e]);let n=(0,r.useRef)(e);return h(()=>{n.current!==e&&(n.current=e)},t),n}function m(e,t){let n=(0,r.useRef)();return(0,r.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function b(e){let t=g(e),n=(0,r.useRef)(null),l=(0,r.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,l]}function y(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}let w={};function x(e,t){return(0,r.useMemo)(()=>{if(t)return t;let n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n},[e,t])}function E(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),l=1;l{for(let[r,l]of Object.entries(n)){let n=t[r];null!=n&&(t[r]=n+e*l)}return t},{...t})}}let D=E(1),C=E(-1);function S(e){if(!e)return!1;let{KeyboardEvent:t}=u(e.target);return t&&e instanceof t}function M(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=u(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let R=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[R.Translate.toString(e),R.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),k="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function T(e){return e.matches(k)?e:e.querySelector(k)}},18679:(e,t,n)=>{n.d(t,{s:()=>AnalyticsClient});let r=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","scid"];var l=n(36301);let AnalyticsClient=class AnalyticsClient{constructor(e){this.options=e}get collectorUrl(){return this.options.collectorUrl}get clientId(){return this.options.clientId?this.options.clientId:(0,l.y)()}createEvent(e){return{page:location.href,title:document.title,context:{...this.options.baseContext,...function(){let e={};try{for(let[t,n]of new URLSearchParams(window.location.search)){let l=t.toLowerCase();r.includes(l)&&(e[l]=n)}return e}catch(e){return{}}}(),...e}}}sendPageView(e){let t=this.createEvent(e);this.send({page_views:[t]})}sendEvent(e,t){let n={...this.createEvent(t),type:e};this.send({events:[n]})}send({page_views:e,events:t}){let n=JSON.stringify({client_id:this.clientId,page_views:e,events:t,request_context:{referrer:function(){let e;try{e=window.top.document.referrer}catch(t){if(window.parent)try{e=window.parent.document.referrer}catch(e){}}return""===e&&(e=document.referrer),e}(),user_agent:navigator.userAgent,screen_resolution:function(){try{return`${screen.width}x${screen.height}`}catch(e){return"unknown"}}(),browser_resolution:function(){let e=0,t=0;try{return"number"==typeof window.innerWidth?(t=window.innerWidth,e=window.innerHeight):null!=document.documentElement&&null!=document.documentElement.clientWidth?(t=document.documentElement.clientWidth,e=document.documentElement.clientHeight):null!=document.body&&null!=document.body.clientWidth&&(t=document.body.clientWidth,e=document.body.clientHeight),`${t}x${e}`}catch(e){return"unknown"}}(),browser_languages:navigator.languages?navigator.languages.join(","):navigator.language||"",pixel_ratio:window.devicePixelRatio,timestamp:Date.now(),tz_seconds:-60*new Date().getTimezoneOffset()}});try{if(navigator.sendBeacon){navigator.sendBeacon(this.collectorUrl,n);return}}catch{}fetch(this.collectorUrl,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:n,keepalive:!1})}}},70837:(e,t,n)=>{n.d(t,{O:()=>r});function r(e="ha"){let t;let n={};for(let r of Array.from(document.head.querySelectorAll(`meta[name^="${e}-"]`))){let{name:l,content:i}=r,o=l.replace(`${e}-`,"").replace(/-/g,"_");"url"===o?t=i:n[o]=i}if(!t)throw Error(`AnalyticsClient ${e}-url meta tag not found`);return{collectorUrl:t,...Object.keys(n).length>0?{baseContext:n}:{}}}},23125:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(23149),l=n(41917);let i=function(){return l.A.Date.now()};var o=n(71946),a=Math.max,u=Math.min;let s=function(e,t,n){var l,s,c,d,f,h,g=0,p=!1,v=!1,m=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var n=l,r=s;return l=s=void 0,g=t,d=e.apply(r,n)}function y(e){var n=e-h,r=e-g;return void 0===h||n>=t||n<0||v&&r>=c}function w(){var e,n,r,l=i();if(y(l))return x(l);f=setTimeout(w,(e=l-h,n=l-g,r=t-e,v?u(r,c-n):r))}function x(e){return(f=void 0,m&&l)?b(e):(l=s=void 0,d)}function E(){var e,n=i(),r=y(n);if(l=arguments,s=this,h=n,r){if(void 0===f)return g=e=h,f=setTimeout(w,t),p?b(e):d;if(v)return clearTimeout(f),f=setTimeout(w,t),b(h)}return void 0===f&&(f=setTimeout(w,t)),d}return t=(0,o.A)(t)||0,(0,r.A)(n)&&(p=!!n.leading,c=(v="maxWait"in n)?a((0,o.A)(n.maxWait)||0,t):c,m="trailing"in n?!!n.trailing:m),E.cancel=function(){void 0!==f&&clearTimeout(f),g=0,l=h=s=f=void 0},E.flush=function(){return void 0===f?d:x(i())},E}}}]); +//# sourceMappingURL=vendors-node_modules_dnd-kit_modifiers_dist_modifiers_esm_js-node_modules_dnd-kit_sortable_di-72228e-15472b3cbb83.js.map \ No newline at end of file diff --git a/vendors-node_modules_dompurify_dist_purify_es_mjs-dd1d3ea6a436.js.download b/vendors-node_modules_dompurify_dist_purify_es_mjs-dd1d3ea6a436.js.download new file mode 100644 index 0000000000..b1990618df --- /dev/null +++ b/vendors-node_modules_dompurify_dist_purify_es_mjs-dd1d3ea6a436.js.download @@ -0,0 +1,2 @@ +"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_dompurify_dist_purify_es_mjs"],{99418:(e,t,n)=>{n.r(t),n.d(t,{default:()=>en});/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */let{entries:o,setPrototypeOf:r,isFrozen:i,getPrototypeOf:a,getOwnPropertyDescriptor:l}=Object,{freeze:c,seal:s,create:u}=Object,{apply:m,construct:p}="undefined"!=typeof Reflect&&Reflect;c||(c=function(e){return e}),s||(s=function(e){return e}),m||(m=function(e,t,n){return e.apply(t,n)}),p||(p=function(e,t){return new e(...t)});let f=R(Array.prototype.forEach),d=R(Array.prototype.lastIndexOf),h=R(Array.prototype.pop),g=R(Array.prototype.push),T=R(Array.prototype.splice),y=R(String.prototype.toLowerCase),E=R(String.prototype.toString),_=R(String.prototype.match),A=R(String.prototype.replace),b=R(String.prototype.indexOf),N=R(String.prototype.trim),S=R(Object.prototype.hasOwnProperty),w=R(RegExp.prototype.test),v=(Z=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:y;r&&r(e,null);let o=t.length;for(;o--;){let r=t[o];if("string"==typeof r){let e=n(r);e!==r&&(i(t)||(t[o]=e),r=e)}e[r]=!0}return e}function L(e){let t=u(null);for(let[n,r]of o(e))S(e,n)&&(Array.isArray(r)?t[n]=function(e){for(let t=0;t/gm),Y=s(/\$\{[\w\W]*/gm),j=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),q=s(/^aria-[\-\w]+$/),X=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=s(/^(?:\w+script|data):/i),K=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V=s(/^html$/i);var Z,J=Object.freeze({__proto__:null,ARIA_ATTR:q,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:s(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:j,DOCTYPE_NAME:V,ERB_EXPR:B,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:$,MUSTACHE_EXPR:G,TMPLIT_EXPR:Y});let Q={element:1,text:3,progressingInstruction:7,comment:8,document:9},ee=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}},et=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};var en=function e(){let t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,r=t=>e(t);if(r.version="3.2.4",r.removed=[],!n||!n.document||n.document.nodeType!==Q.document||!n.Element)return r.isSupported=!1,r;let{document:i}=n,a=i,l=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:m,Node:p,Element:R,NodeFilter:G,NamedNodeMap:B=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:Y,DOMParser:j,trustedTypes:q}=n,$=R.prototype,K=O($,"cloneNode"),Z=O($,"remove"),en=O($,"nextSibling"),eo=O($,"childNodes"),er=O($,"parentNode");if("function"==typeof m){let e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let ei="",{implementation:ea,createNodeIterator:el,createDocumentFragment:ec,getElementsByTagName:es}=i,{importNode:eu}=a,em=et();r.isSupported="function"==typeof o&&"function"==typeof er&&ea&&void 0!==ea.createHTMLDocument;let{MUSTACHE_EXPR:ep,ERB_EXPR:ef,TMPLIT_EXPR:ed,DATA_ATTR:eh,ARIA_ATTR:eg,IS_SCRIPT_OR_DATA:eT,ATTR_WHITESPACE:ey,CUSTOM_ELEMENT:eE}=J,{IS_ALLOWED_URI:e_}=J,eA=null,eb=C({},[...k,...D,...x,...M,...z]),eN=null,eS=C({},[...P,...H,...F,...W]),ew=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ev=null,eR=null,eC=!0,eL=!0,eO=!1,ek=!0,eD=!1,ex=!0,eI=!1,eM=!1,eU=!1,ez=!1,eP=!1,eH=!1,eF=!0,eW=!1,eG=!0,eB=!1,eY={},ej=null,eq=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eX=null,e$=C({},["audio","video","img","source","image","track"]),eK=null,eV=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eZ="http://www.w3.org/1998/Math/MathML",eJ="http://www.w3.org/2000/svg",eQ="http://www.w3.org/1999/xhtml",e0=eQ,e1=!1,e2=null,e9=C({},[eZ,eJ,eQ],E),e3=C({},["mi","mo","mn","ms","mtext"]),e8=C({},["annotation-xml"]),e4=C({},["title","style","font","a","script"]),e5=null,e6=["application/xhtml+xml","text/html"],e7=null,te=null,tt=i.createElement("form"),tn=function(e){return e instanceof RegExp||e instanceof Function},to=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!te||te!==e){if(e&&"object"==typeof e||(e={}),e=L(e),e7="application/xhtml+xml"===(e5=-1===e6.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?E:y,eA=S(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,e7):eb,eN=S(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,e7):eS,e2=S(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,E):e9,eK=S(e,"ADD_URI_SAFE_ATTR")?C(L(eV),e.ADD_URI_SAFE_ATTR,e7):eV,eX=S(e,"ADD_DATA_URI_TAGS")?C(L(e$),e.ADD_DATA_URI_TAGS,e7):e$,ej=S(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,e7):eq,ev=S(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,e7):{},eR=S(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,e7):{},eY=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,eC=!1!==e.ALLOW_ARIA_ATTR,eL=!1!==e.ALLOW_DATA_ATTR,eO=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ek=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eD=e.SAFE_FOR_TEMPLATES||!1,ex=!1!==e.SAFE_FOR_XML,eI=e.WHOLE_DOCUMENT||!1,ez=e.RETURN_DOM||!1,eP=e.RETURN_DOM_FRAGMENT||!1,eH=e.RETURN_TRUSTED_TYPE||!1,eU=e.FORCE_BODY||!1,eF=!1!==e.SANITIZE_DOM,eW=e.SANITIZE_NAMED_PROPS||!1,eG=!1!==e.KEEP_CONTENT,eB=e.IN_PLACE||!1,e_=e.ALLOWED_URI_REGEXP||X,e0=e.NAMESPACE||eQ,e3=e.MATHML_TEXT_INTEGRATION_POINTS||e3,e8=e.HTML_INTEGRATION_POINTS||e8,ew=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tn(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ew.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tn(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ew.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ew.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eD&&(eL=!1),eP&&(ez=!0),eY&&(eA=C({},z),eN=[],!0===eY.html&&(C(eA,k),C(eN,P)),!0===eY.svg&&(C(eA,D),C(eN,H),C(eN,W)),!0===eY.svgFilters&&(C(eA,x),C(eN,H),C(eN,W)),!0===eY.mathMl&&(C(eA,M),C(eN,F),C(eN,W))),e.ADD_TAGS&&(eA===eb&&(eA=L(eA)),C(eA,e.ADD_TAGS,e7)),e.ADD_ATTR&&(eN===eS&&(eN=L(eN)),C(eN,e.ADD_ATTR,e7)),e.ADD_URI_SAFE_ATTR&&C(eK,e.ADD_URI_SAFE_ATTR,e7),e.FORBID_CONTENTS&&(ej===eq&&(ej=L(ej)),C(ej,e.FORBID_CONTENTS,e7)),eG&&(eA["#text"]=!0),eI&&C(eA,["html","head","body"]),eA.table&&(C(eA,["tbody"]),delete ev.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ei=(t=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===t&&(t=ee(q,l)),null!==t&&"string"==typeof ei&&(ei=t.createHTML(""));c&&c(e),te=e}},tr=C({},[...D,...x,...I]),ti=C({},[...M,...U]),ta=function(e){let t=er(e);t&&t.tagName||(t={namespaceURI:e0,tagName:"template"});let n=y(e.tagName),o=y(t.tagName);return!!e2[e.namespaceURI]&&(e.namespaceURI===eJ?t.namespaceURI===eQ?"svg"===n:t.namespaceURI===eZ?"svg"===n&&("annotation-xml"===o||e3[o]):!!tr[n]:e.namespaceURI===eZ?t.namespaceURI===eQ?"math"===n:t.namespaceURI===eJ?"math"===n&&e8[o]:!!ti[n]:e.namespaceURI===eQ?(t.namespaceURI!==eJ||!!e8[o])&&(t.namespaceURI!==eZ||!!e3[o])&&!ti[n]&&(e4[n]||!tr[n]):"application/xhtml+xml"===e5&&!!e2[e.namespaceURI])},tl=function(e){g(r.removed,{element:e});try{er(e).removeChild(e)}catch(t){Z(e)}},tc=function(e,t){try{g(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e){if(ez||eP)try{tl(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},ts=function(e){let n=null,o=null;if(eU)e=""+e;else{let t=_(e,/^[\r\n\t ]+/);o=t&&t[0]}"application/xhtml+xml"===e5&&e0===eQ&&(e=''+e+"");let r=t?t.createHTML(e):e;if(e0===eQ)try{n=new j().parseFromString(r,e5)}catch(e){}if(!n||!n.documentElement){n=ea.createDocument(e0,"template",null);try{n.documentElement.innerHTML=e1?ei:r}catch(e){}}let a=n.body||n.documentElement;return(e&&o&&a.insertBefore(i.createTextNode(o),a.childNodes[0]||null),e0===eQ)?es.call(n,eI?"html":"body")[0]:eI?n.documentElement:a},tu=function(e){return el.call(e.ownerDocument||e,e,G.SHOW_ELEMENT|G.SHOW_COMMENT|G.SHOW_TEXT|G.SHOW_PROCESSING_INSTRUCTION|G.SHOW_CDATA_SECTION,null)},tm=function(e){return e instanceof Y&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof B)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},tp=function(e){return"function"==typeof p&&e instanceof p};function tf(e,t,n){f(e,e=>{e.call(r,t,n,te)})}let td=function(e){let t=null;if(tf(em.beforeSanitizeElements,e,null),tm(e))return tl(e),!0;let n=e7(e.nodeName);if(tf(em.uponSanitizeElement,e,{tagName:n,allowedTags:eA}),e.hasChildNodes()&&!tp(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent)||e.nodeType===Q.progressingInstruction||ex&&e.nodeType===Q.comment&&w(/<[/\w]/g,e.data))return tl(e),!0;if(!eA[n]||ev[n]){if(!ev[n]&&tg(n)&&(ew.tagNameCheck instanceof RegExp&&w(ew.tagNameCheck,n)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(n)))return!1;if(eG&&!ej[n]){let t=er(e)||e.parentNode,n=eo(e)||e.childNodes;if(n&&t){let o=n.length;for(let r=o-1;r>=0;--r){let o=K(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,en(e))}}}return tl(e),!0}return e instanceof R&&!ta(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&w(/<\/no(script|embed|frames)/i,e.innerHTML)?(tl(e),!0):(eD&&e.nodeType===Q.text&&(t=e.textContent,f([ep,ef,ed],e=>{t=A(t,e," ")}),e.textContent!==t&&(g(r.removed,{element:e.cloneNode()}),e.textContent=t)),tf(em.afterSanitizeElements,e,null),!1)},th=function(e,t,n){if(eF&&("id"===t||"name"===t)&&(n in i||n in tt))return!1;if(eL&&!eR[t]&&w(eh,t));else if(eC&&w(eg,t));else if(!eN[t]||eR[t]){if(!(tg(e)&&(ew.tagNameCheck instanceof RegExp&&w(ew.tagNameCheck,e)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(e))&&(ew.attributeNameCheck instanceof RegExp&&w(ew.attributeNameCheck,t)||ew.attributeNameCheck instanceof Function&&ew.attributeNameCheck(t))||"is"===t&&ew.allowCustomizedBuiltInElements&&(ew.tagNameCheck instanceof RegExp&&w(ew.tagNameCheck,n)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(n))))return!1}else if(eK[t]);else if(w(e_,A(n,ey,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===b(n,"data:")&&eX[e]);else if(eO&&!w(eT,A(n,ey,"")));else if(n)return!1;return!0},tg=function(e){return"annotation-xml"!==e&&_(e,eE)},tT=function(e){tf(em.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||tm(e))return;let o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eN,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:l,value:c}=n[i],s=e7(a),u="value"===a?c:N(c);if(o.attrName=s,o.attrValue=u,o.keepAttr=!0,o.forceKeepAttr=void 0,tf(em.uponSanitizeAttribute,e,o),u=o.attrValue,eW&&("id"===s||"name"===s)&&(tc(a,e),u="user-content-"+u),ex&&w(/((--!?|])>)|<\/(style|title)/i,u)){tc(a,e);continue}if(o.forceKeepAttr||(tc(a,e),!o.keepAttr))continue;if(!ek&&w(/\/>/i,u)){tc(a,e);continue}eD&&f([ep,ef,ed],e=>{u=A(u,e," ")});let m=e7(e.nodeName);if(th(m,s,u)){if(t&&"object"==typeof q&&"function"==typeof q.getAttributeType){if(l);else switch(q.getAttributeType(m,s)){case"TrustedHTML":u=t.createHTML(u);break;case"TrustedScriptURL":u=t.createScriptURL(u)}}try{l?e.setAttributeNS(l,a,u):e.setAttribute(a,u),tm(e)?tl(e):h(r.removed)}catch(e){}}}tf(em.afterSanitizeAttributes,e,null)},ty=function e(t){let n=null,o=tu(t);for(tf(em.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)tf(em.uponSanitizeShadowNode,n,null),td(n),tT(n),n.content instanceof s&&e(n.content);tf(em.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,l=null,c=null;if((e1=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!tp(e)){if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw v("dirty is not a string, aborting")}else throw v("toString is not a function")}if(!r.isSupported)return e;if(eM||to(n),r.removed=[],"string"==typeof e&&(eB=!1),eB){if(e.nodeName){let t=e7(e.nodeName);if(!eA[t]||ev[t])throw v("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof p)(i=(o=ts("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===Q.element&&"BODY"===i.nodeName?o=i:"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!ez&&!eD&&!eI&&-1===e.indexOf("<"))return t&&eH?t.createHTML(e):e;if(!(o=ts(e)))return ez?null:eH?ei:""}o&&eU&&tl(o.firstChild);let u=tu(eB?e:o);for(;l=u.nextNode();)td(l),tT(l),l.content instanceof s&&ty(l.content);if(eB)return e;if(ez){if(eP)for(c=ec.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(eN.shadowroot||eN.shadowrootmode)&&(c=eu.call(a,c,!0)),c}let m=eI?o.outerHTML:o.innerHTML;return eI&&eA["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&w(V,o.ownerDocument.doctype.name)&&(m="\n"+m),eD&&f([ep,ef,ed],e=>{m=A(m,e," ")}),t&&eH?t.createHTML(m):m},r.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};to(e),eM=!0},r.clearConfig=function(){te=null,eM=!1},r.isValidAttribute=function(e,t,n){return te||to({}),th(e7(e),e7(t),n)},r.addHook=function(e,t){"function"==typeof t&&g(em[e],t)},r.removeHook=function(e,t){if(void 0!==t){let n=d(em[e],t);return -1===n?void 0:T(em[e],n,1)[0]}return h(em[e])},r.removeHooks=function(e){em[e]=[]},r.removeAllHooks=function(){em=et()},r}()}}]); +//# sourceMappingURL=vendors-node_modules_dompurify_dist_purify_es_mjs-1492fa9dcef0.js.map \ No newline at end of file diff --git a/vendors-node_modules_emotion_is-prop-valid_dist_emotion-is-prop-valid_esm_js-node_modules_emo-b1c483-30bc59af3a76.js.download b/vendors-node_modules_emotion_is-prop-valid_dist_emotion-is-prop-valid_esm_js-node_modules_emo-b1c483-30bc59af3a76.js.download new file mode 100644 index 0000000000..24024855e0 --- /dev/null +++ b/vendors-node_modules_emotion_is-prop-valid_dist_emotion-is-prop-valid_esm_js-node_modules_emo-b1c483-30bc59af3a76.js.download @@ -0,0 +1,14 @@ +(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_emotion_is-prop-valid_dist_emotion-is-prop-valid_esm_js-node_modules_emo-b1c483"],{15455:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;let s=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}(function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)})},8887:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=function(e){function t(e,t,i){var s=t.trim().split(p);t=s;var n=s.length,a=e.length;switch(a){case 0:case 1:var o=0;for(e=0===a?"":e[0]+" ";oi&&(i=(t=t.trim()).charCodeAt(0)),i){case 38:return t.replace(y,"$1"+e.trim());case 58:return e.trim()+t.replace(y,"$1"+e.trim());default:if(0<1*r&&0c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102o.charCodeAt(0)&&(o=o.trim()),o=[o],0d)&&(G=(z=z.replace(" ",":")).length),0{"use strict";r.d(t,{A:()=>i});let i={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},14744:e=>{"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==r},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?o(Array.isArray(e)?[]:{},e,t):e}function s(e,t,r){return e.concat(t).map(function(e){return i(e,r)})}function n(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function a(e,t){try{return t in e}catch(e){return!1}}function o(e,r,c){(c=c||{}).arrayMerge=c.arrayMerge||s,c.isMergeableObject=c.isMergeableObject||t,c.cloneUnlessOtherwiseSpecified=i;var u,l,h=Array.isArray(r);return h!==Array.isArray(e)?i(r,c):h?c.arrayMerge(e,r,c):(l={},(u=c).isMergeableObject(e)&&n(e).forEach(function(t){l[t]=i(e[t],u)}),n(r).forEach(function(t){(!a(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(a(e,t)&&u.isMergeableObject(r[t])?l[t]=(function(e,t){if(!t.customMerge)return o;var r=t.customMerge(e);return"function"==typeof r?r:o})(t,u)(e[t],r[t],u):l[t]=i(r[t],u))}),l)}o.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return o(e,r,t)},{})},e.exports=o},4146:(e,t,r)=>{"use strict";var i=r(44363),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function c(e){return i.isMemo(e)?a:o[e.$$typeof]||s}o[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[i.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,i){if("string"!=typeof r){if(p){var s=d(r);s&&s!==p&&e(t,s,i)}var a=l(r);h&&(a=a.concat(h(r)));for(var o=c(t),y=c(r),m=0;m{e=r.nmd(e);var i,s,n="[object Map]",a="[object Promise]",o="[object Set]",c="[object WeakMap]",u="[object DataView]",l=/^\[object .+?Constructor\]$/,h="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,f="object"==typeof self&&self&&self.Object===Object&&self,d=h||f||Function("return this")(),p=t&&!t.nodeType&&t,y=p&&e&&!e.nodeType&&e,m=y&&y.exports===p,b=Function.prototype,g=Object.prototype,v=d["__core-js_shared__"],w=function(){var e=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),A=b.toString,C=g.hasOwnProperty,k=g.toString,O=RegExp("^"+A.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=m?d.Buffer:void 0,x=g.propertyIsEnumerable,j=S?S.isBuffer:void 0,P=(i=Object.keys,s=Object,function(e){return i(s(e))}),q=L(d,"DataView"),F=L(d,"Map"),M=L(d,"Promise"),T=L(d,"Set"),E=L(d,"WeakMap"),R=!x.call({valueOf:1},"valueOf"),D=z(q),$=z(F),Q=z(M),I=z(T),G=z(E);function L(e,t){var r=null==e?void 0:e[t];return!(!W(r)||w&&w in r)&&(N(r)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(r)?O:l).test(z(r))?r:void 0}var U=function(e){return k.call(e)};function z(e){if(null!=e){try{return A.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(q&&U(new q(new ArrayBuffer(1)))!=u||F&&U(new F)!=n||M&&U(M.resolve())!=a||T&&U(new T)!=o||E&&U(new E)!=c)&&(U=function(e){var t=k.call(e),r="[object Object]"==t?e.constructor:void 0,i=r?z(r):void 0;if(i)switch(i){case D:return u;case $:return n;case Q:return a;case I:return o;case G:return c}return t});var H=Array.isArray;function K(e){var t;return null!=e&&"number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=0x1fffffffffffff&&!N(e)}var _=j||function(){return!1};function N(e){var t=W(e)?k.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function W(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){if(K(e)&&(H(e)||"string"==typeof e||"function"==typeof e.splice||_(e)||e&&"object"==typeof e&&K(e)&&C.call(e,"callee")&&(!x.call(e,"callee")||"[object Arguments]"==k.call(e))))return!e.length;var t,r=U(e);if(r==n||r==o)return!e.size;if(R||(t=e&&e.constructor,e===("function"==typeof t&&t.prototype||g)))return!P(e).length;for(var i in e)if(C.call(e,i))return!1;return!0}},61669:e=>{e.exports=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}},45228:e=>{"use strict";/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==i.join(""))return!1;var s={};if("abcdefghijklmnopqrst".split("").forEach(function(e){s[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},s)).join(""))return!1;return!0}catch(e){return!1}}()?function(e,s){for(var n,a,o=function(e){if(null==e)throw TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c{"use strict";/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r,i=Symbol.for("react.element"),s=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case n:case o:case a:case f:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case h:case y:case p:case c:return e;default:return t}}case s:return t}}}r=Symbol.for("react.module.reference"),t.ContextConsumer=u,t.ContextProvider=c,t.Element=i,t.ForwardRef=h,t.Fragment=n,t.Lazy=y,t.Memo=p,t.Portal=s,t.Profiler=o,t.StrictMode=a,t.Suspense=f,t.SuspenseList=d,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return b(e)===u},t.isContextProvider=function(e){return b(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return b(e)===h},t.isFragment=function(e){return b(e)===n},t.isLazy=function(e){return b(e)===y},t.isMemo=function(e){return b(e)===p},t.isPortal=function(e){return b(e)===s},t.isProfiler=function(e){return b(e)===o},t.isStrictMode=function(e){return b(e)===a},t.isSuspense=function(e){return b(e)===f},t.isSuspenseList=function(e){return b(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===a||e===f||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===p||e.$$typeof===c||e.$$typeof===u||e.$$typeof===h||e.$$typeof===r||void 0!==e.getModuleId)},t.typeOf=b},44363:(e,t,r)=>{"use strict";e.exports=r(22799)},2833:e=>{e.exports=function(e,t,r,i){var s=r?r.call(i,e,t):void 0;if(void 0!==s)return!!s;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),c=0;c{"use strict";r.d(t,{G1:()=>h.G,Il:()=>a.I,JX:()=>y,Jt:()=>i.Jt,NW:()=>p.NW,Ox:()=>p.Ox,PQ:()=>u.P,Tp:()=>l.T,Vg:()=>c.V,Vy:()=>m,XC:()=>p.XC,Zp:()=>s.Z,Zz:()=>i.Zz,i9:()=>p.i9,iF:()=>b,pn:()=>o.p,qU:()=>i.qU,r7:()=>d.r,xe:()=>f.xe,yW:()=>n.y});var i=r(49236),s=r(75447),n=r(77638),a=r(3962),o=r(58523),c=r(96069),u=r(84995),l=r(43581),h=r(59756),f=r(89165),d=r(42049),p=r(38144);s.A.width,s.A.height,s.A.minWidth,s.A.minHeight;var y=s.A.maxWidth,m=(s.A.maxHeight,s.A.size,s.A.verticalAlign,s.A.display);s.A.overflow,s.A.overflowX,s.A.overflowY,n.A.opacity,a.A.fontSize,a.A.fontFamily,a.A.fontWeight,a.A.lineHeight,a.A.textAlign,a.A.fontStyle,a.A.letterSpacing,o.A.alignItems,o.A.alignContent,o.A.justifyItems,o.A.justifyContent,o.A.flexWrap,o.A.flexDirection,o.A.flex,o.A.flexGrow,o.A.flexShrink,o.A.flexBasis,o.A.justifySelf,o.A.alignSelf,o.A.order,c.A.gridGap,c.A.gridColumnGap,c.A.gridRowGap,c.A.gridColumn,c.A.gridRow,c.A.gridAutoFlow,c.A.gridAutoColumns,c.A.gridAutoRows,c.A.gridTemplateColumns,c.A.gridTemplateRows,c.A.gridTemplateAreas,c.A.gridArea,u.A.borderWidth,u.A.borderStyle,u.A.borderColor,u.A.borderTop,u.A.borderRight,u.A.borderBottom,u.A.borderLeft,u.A.borderRadius,l.A.backgroundImage,l.A.backgroundSize,l.A.backgroundPosition,l.A.backgroundRepeat,h.A.zIndex,h.A.top,h.A.right,h.A.bottom,h.A.left;var b=function(e){var t=e.prop,r=e.cssProperty,s=e.alias,n=e.key,a=e.transformValue,o=e.scale,c=e.properties,u={};return u[t]=(0,i.oK)({properties:c,property:r||t,scale:n,defaultScale:o,transform:a}),s&&(u[s]=u[t]),(0,i.Cp)(u)}},29658:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});var i=r(66500),s=r(24880),n=new class extends i.Q{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!s.S$&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}}},58959:(e,t,r)=>{"use strict";r.d(t,{PL:()=>s,RQ:()=>c,rB:()=>o});var i=r(24880);function s(e){return{onFetch:(t,r)=>{let s=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],u=t.state.data?.pageParams||[],l={pages:[],pageParams:[]},h=0,f=async()=>{let r=!1,f=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",()=>{r=!0}),t.signal)})},d=(0,i.ZM)(t.options,t.fetchOptions),p=async(e,s,n)=>{if(r)return Promise.reject();if(null==s&&e.pages.length)return Promise.resolve(e);let a={client:t.client,queryKey:t.queryKey,pageParam:s,direction:n?"backward":"forward",meta:t.options.meta};f(a);let o=await d(a),{maxPages:c}=t.options,u=n?i.ZZ:i.y9;return{pages:u(e.pages,o,c),pageParams:u(e.pageParams,s,c)}};if(o&&c.length){let e="backward"===o,t={pages:c,pageParams:u},r=(e?a:n)(s,t);l=await p(t,r,e)}else{let t=e??c.length;do{let e=0===h?u[0]??s.initialPageParam:n(s,l);if(h>0&&null==e)break;l=await p(l,e),h++}while(ht.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=f}}}function n(e,{pages:t,pageParams:r}){let i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,r[i],r):void 0}function a(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function o(e,t){return!!t&&null!=n(e,t)}function c(e,t){return!!t&&!!e.getPreviousPageParam&&null!=a(e,t)}},36158:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,s:()=>a});var i=r(26261),s=r(71692),n=r(58904),a=class extends s.k{#i;#s;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#s=e.mutationCache,this.#i=[],this.state=e.state||o(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#i.includes(e)||(this.#i.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#i=this.#i.filter(t=>t!==e),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#i.length||("pending"===this.state.status?this.scheduleGc():this.#s.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){this.#n=(0,n.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});let t="pending"===this.state.status,r=!this.#n.canStart();try{if(!t){this.#a({type:"pending",variables:e,isPaused:r}),await this.#s.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#a({type:"pending",context:t,variables:e,isPaused:r})}let i=await this.#n.start();return await this.#s.config.onSuccess?.(i,e,this.state.context,this),await this.options.onSuccess?.(i,e,this.state.context),await this.#s.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,e,this.state.context),this.#a({type:"success",data:i}),i}catch(t){try{throw await this.#s.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#s.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#a({type:"error",error:t})}}finally{this.#s.runNext(this)}}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),i.jG.batch(()=>{this.#i.forEach(t=>{t.onMutationUpdate(e)}),this.#s.notify({mutation:this,type:"updated",action:e})})}};function o(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},57678:(e,t,r)=>{"use strict";r.d(t,{q:()=>o});var i=r(26261),s=r(36158),n=r(24880),a=r(66500),o=class extends a.Q{constructor(e={}){super(),this.config=e,this.#o=new Set,this.#c=new Map,this.#u=0}#o;#c;#u;build(e,t,r){let i=new s.s({mutationCache:this,mutationId:++this.#u,options:e.defaultMutationOptions(t),state:r});return this.add(i),i}add(e){this.#o.add(e);let t=c(e);if("string"==typeof t){let r=this.#c.get(t);r?r.push(e):this.#c.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#o.delete(e)){let t=c(e);if("string"==typeof t){let r=this.#c.get(t);if(r){if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#c.delete(t)}}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let r=this.#c.get(t),i=r?.find(e=>"pending"===e.state.status);return!i||i===e}}runNext(e){let t=c(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#c.get(t)?.find(t=>t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){i.jG.batch(()=>{this.#o.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#o.clear(),this.#c.clear()})}getAll(){return Array.from(this.#o)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n.nJ)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,n.nJ)(e,t))}notify(e){i.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return i.jG.batch(()=>Promise.all(e.map(e=>e.continue().catch(n.lQ))))}};function c(e){return e.options.scope?.id}},26261:(e,t,r)=>{"use strict";r.d(t,{jG:()=>s,x3:()=>i});var i=e=>setTimeout(e,0),s=function(){let e=[],t=0,r=e=>{e()},s=e=>{e()},n=i,a=i=>{t?e.push(i):n(()=>{r(i)})},o=()=>{let t=e;e=[],t.length&&n(()=>{s(()=>{t.forEach(e=>{r(e)})})})};return{batch:e=>{let r;t++;try{r=e()}finally{--t||o()}return r},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{s=e},setScheduler:e=>{n=e}}}()},96035:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});var i=r(66500),s=r(24880),n=new class extends i.Q{#l=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!s.S$&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#l!==e&&(this.#l=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#l}}},79757:(e,t,r)=>{"use strict";r.d(t,{X:()=>o,k:()=>c});var i=r(24880),s=r(26261),n=r(58904),a=r(71692),o=class extends a.k{#h;#f;#d;#p;#n;#y;#m;constructor(e){super(),this.#m=!1,this.#y=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#p=e.client,this.#d=this.#p.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#h=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,i=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#h,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){this.options={...this.#y,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#d.remove(this)}setData(e,t){let r=(0,i.pl)(this.state.data,e,this.options);return this.#a({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(i.lQ).catch(i.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#h)}isActive(){return this.observers.some(e=>!1!==(0,i.Eh)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===i.hT||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,i.j3)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#d.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#m?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#d.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#m=!0,r.signal)})},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#p,state:this.state,fetchFn:()=>{let e=(0,i.ZM)(this.options,t),r={client:this.#p,queryKey:this.queryKey,meta:this.meta};return(s(r),this.#m=!1,this.options.persister)?this.options.persister(e,r,this):e(r)}};s(a),this.options.behavior?.onFetch(a,this),this.#f=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#a({type:"fetch",meta:a.fetchOptions?.meta});let o=e=>{(0,n.wm)(e)&&e.silent||this.#a({type:"error",error:e}),(0,n.wm)(e)||(this.#d.config.onError?.(e,this),this.#d.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#n=(0,n.II)({initialPromise:t?.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:e=>{if(void 0===e){o(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){o(e);return}this.#d.config.onSuccess?.(e,this),this.#d.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:o,onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#n.start()}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...c(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=e.error;if((0,n.wm)(r)&&r.revert&&this.#f)return{...this.#f,fetchStatus:"idle"};return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),s.jG.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#d.notify({query:this,type:"updated",action:e})})}};function c(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,n.v_)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},2471:(e,t,r)=>{"use strict";r.d(t,{$:()=>o});var i=r(24880),s=r(79757),n=r(26261),a=r(66500),o=class extends a.Q{constructor(e={}){super(),this.config=e,this.#b=new Map}#b;build(e,t,r){let n=t.queryKey,a=t.queryHash??(0,i.F$)(n,t),o=this.get(a);return o||(o=new s.X({client:e,queryKey:n,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(o)),o}add(e){this.#b.has(e.queryHash)||(this.#b.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#b.get(e.queryHash);t&&(e.destroy(),t===e&&this.#b.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){n.jG.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#b.get(e)}getAll(){return[...this.#b.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,i.MK)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,i.MK)(e,t)):t}notify(e){n.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){n.jG.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){n.jG.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}},65490:(e,t,r)=>{"use strict";r.d(t,{E:()=>l});var i=r(24880),s=r(2471),n=r(57678),a=r(29658),o=r(96035),c=r(26261),u=r(58959),l=class{#g;#s;#y;#v;#w;#A;#C;#k;constructor(e={}){this.#g=e.queryCache||new s.$,this.#s=e.mutationCache||new n.q,this.#y=e.defaultOptions||{},this.#v=new Map,this.#w=new Map,this.#A=0}mount(){this.#A++,1===this.#A&&(this.#C=a.m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#g.onFocus())}),this.#k=o.t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#g.onOnline())}))}unmount(){this.#A--,0===this.#A&&(this.#C?.(),this.#C=void 0,this.#k?.(),this.#k=void 0)}isFetching(e){return this.#g.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#s.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#g.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#g.build(this,t),s=r.state.data;return void 0===s?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,i.d2)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#g.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let s=this.defaultQueryOptions({queryKey:e}),n=this.#g.get(s.queryHash),a=n?.state.data,o=(0,i.Zw)(t,a);if(void 0!==o)return this.#g.build(this,s).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return c.jG.batch(()=>this.#g.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#g.get(t.queryHash)?.state}removeQueries(e){let t=this.#g;c.jG.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#g;return c.jG.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t};return Promise.all(c.jG.batch(()=>this.#g.findAll(e).map(e=>e.cancel(r)))).then(i.lQ).catch(i.lQ)}invalidateQueries(e,t={}){return c.jG.batch(()=>(this.#g.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(c.jG.batch(()=>this.#g.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(i.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(i.lQ)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#g.build(this,t);return r.isStaleByTime((0,i.d2)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(i.lQ).catch(i.lQ)}fetchInfiniteQuery(e){return e.behavior=(0,u.PL)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(i.lQ).catch(i.lQ)}ensureInfiniteQueryData(e){return e.behavior=(0,u.PL)(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return o.t.isOnline()?this.#s.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#g}getMutationCache(){return this.#s}getDefaultOptions(){return this.#y}setDefaultOptions(e){this.#y=e}setQueryDefaults(e,t){this.#v.set((0,i.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#v.values()],r={};return t.forEach(t=>{(0,i.Cp)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#w.set((0,i.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#w.values()],r={};return t.forEach(t=>{(0,i.Cp)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#y.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,i.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===i.hT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#y.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#g.clear(),this.#s.clear()}}},71692:(e,t,r)=>{"use strict";r.d(t,{k:()=>s});var i=r(24880),s=class{#O;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.gn)(this.gcTime)&&(this.#O=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(i.S$?1/0:3e5))}clearGcTimeout(){this.#O&&(clearTimeout(this.#O),this.#O=void 0)}}},58904:(e,t,r)=>{"use strict";r.d(t,{II:()=>h,cc:()=>u,v_:()=>c,wm:()=>l});var i=r(29658),s=r(96035),n=r(94658),a=r(24880);function o(e){return Math.min(1e3*2**e,3e4)}function c(e){return(e??"online")!=="online"||s.t.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function l(e){return e instanceof u}function h(e){let t,r=!1,l=0,h=!1,f=(0,n.T)(),d=()=>i.m.isFocused()&&("always"===e.networkMode||s.t.isOnline())&&e.canRun(),p=()=>c(e.networkMode)&&e.canRun(),y=r=>{h||(h=!0,e.onSuccess?.(r),t?.(),f.resolve(r))},m=r=>{h||(h=!0,e.onError?.(r),t?.(),f.reject(r))},b=()=>new Promise(r=>{t=e=>{(h||d())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,h||e.onContinue?.()}),g=()=>{let t;if(h)return;let i=0===l?e.initialPromise:void 0;try{t=i??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(y).catch(t=>{if(h)return;let i=e.retry??(a.S$?0:3),s=e.retryDelay??o,n="function"==typeof s?s(l,t):s,c=!0===i||"number"==typeof i&&ld()?void 0:b()).then(()=>{r?m(t):g()})})};return{promise:f,cancel:t=>{h||(m(new u(t)),e.abort?.())},continue:()=>(t?.(),f),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:p,start:()=>(p()?g():b().then(g),f)}}},66500:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});var i=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},94658:(e,t,r)=>{"use strict";function i(){let e,t;let r=new Promise((r,i)=>{e=r,t=i});function i(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{i({status:"fulfilled",value:t}),e(t)},r.reject=e=>{i({status:"rejected",reason:e}),t(e)},r}r.d(t,{T:()=>i})},24880:(e,t,r)=>{"use strict";r.d(t,{BH:()=>y,Cp:()=>p,EN:()=>d,Eh:()=>u,F$:()=>f,MK:()=>l,S$:()=>i,ZM:()=>x,ZZ:()=>O,Zw:()=>n,d2:()=>c,f8:()=>m,gn:()=>a,hT:()=>S,j3:()=>o,lQ:()=>s,nJ:()=>h,pl:()=>A,rX:()=>C,y9:()=>k,yy:()=>w});var i="undefined"==typeof window||"Deno"in globalThis;function s(){}function n(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function o(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t){return"function"==typeof e?e(t):e}function u(e,t){return"function"==typeof e?e(t):e}function l(e,t){let{type:r="all",exact:i,fetchStatus:s,predicate:n,queryKey:a,stale:o}=e;if(a){if(i){if(t.queryHash!==f(a,t.options))return!1}else if(!p(t.queryKey,a))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(!s||s===t.state.fetchStatus)&&(!n||!!n(t))}function h(e,t){let{exact:r,status:i,predicate:s,mutationKey:n}=e;if(n){if(!t.options.mutationKey)return!1;if(r){if(d(t.options.mutationKey)!==d(n))return!1}else if(!p(t.options.mutationKey,n))return!1}return(!i||t.state.status===i)&&(!s||!!s(t))}function f(e,t){return(t?.queryKeyHashFn||d)(e)}function d(e){return JSON.stringify(e,(e,t)=>g(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!p(e[r],t[r]))}function y(e,t){if(e===t)return e;let r=b(e)&&b(t);if(r||g(e)&&g(t)){let i=r?e:Object.keys(e),s=i.length,n=r?t:Object.keys(t),a=n.length,o=r?[]:{},c=0;for(let s=0;s{setTimeout(t,e)})}function A(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?y(e,t):t}function C(e){return e}function k(e,t,r=0){let i=[...e,t];return r&&i.length>r?i.slice(1):i}function O(e,t,r=0){let i=[t,...e];return r&&i.length>r?i.slice(0,-1):i}var S=Symbol();function x(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==S?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},34164:(e,t,r)=>{"use strict";function i(){for(var e,t,r=0,i="",s=arguments.length;ri,A:()=>s});let s=i}}]); +//# sourceMappingURL=vendors-node_modules_emotion_is-prop-valid_dist_emotion-is-prop-valid_esm_js-node_modules_emo-b1c483-977d6c0800e3.js.map \ No newline at end of file diff --git a/vendors-node_modules_github_hotkey_dist_index_js-node_modules_date-fns_getDaysInMonth_mjs-nod-70c11b-bb864144d822.js.download b/vendors-node_modules_github_hotkey_dist_index_js-node_modules_date-fns_getDaysInMonth_mjs-nod-70c11b-bb864144d822.js.download new file mode 100644 index 0000000000..158c90282a --- /dev/null +++ b/vendors-node_modules_github_hotkey_dist_index_js-node_modules_date-fns_getDaysInMonth_mjs-nod-70c11b-bb864144d822.js.download @@ -0,0 +1,2 @@ +"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_github_hotkey_dist_index_js-node_modules_date-fns_getDaysInMonth_mjs-nod-70c11b"],{50515:(e,t,n)=>{n.d(t,{JC:()=>y,KK:()=>SequenceTracker,Vy:()=>l,ai:()=>m,oc:()=>o,rd:()=>c});let Leaf=class Leaf{constructor(e){this.children=[],this.parent=e}delete(e){let t=this.children.indexOf(e);return -1!==t&&(this.children=this.children.slice(0,t).concat(this.children.slice(t+1)),0===this.children.length&&this.parent.delete(this),!0)}add(e){return this.children.push(e),this}};let RadixTrie=class RadixTrie{constructor(e){this.parent=null,this.children={},this.parent=e||null}get(e){return this.children[e]}insert(e){let t=this;for(let n=0;n","\xbf":"?"},i={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+","[":"{","]":"}","\\":"|",";":":","'":'"',",":"<",".":">","/":"?",q:"Q",w:"W",e:"E",r:"R",t:"T",y:"Y",u:"U",i:"I",o:"O",p:"P",a:"A",s:"S",d:"D",f:"F",g:"G",h:"H",j:"J",k:"K",l:"L",z:"Z",x:"X",c:"C",v:"V",b:"B",n:"N",m:"M"},a={" ":"Space","+":"Plus"};function l(e,t=navigator.platform){var n,o,c;let{ctrlKey:d,altKey:h,metaKey:f,shiftKey:v,key:g}=e,p=[];for(let[e,t]of[d,h,f,v].entries())t&&p.push(u[e]);if(!u.includes(g)){let e=p.includes("Alt")&&s.test(t)&&null!==(n=r[g])&&void 0!==n?n:g,l=p.includes("Shift")&&s.test(t)&&null!==(o=i[e])&&void 0!==o?o:e,u=null!==(c=a[l])&&void 0!==c?c:l;p.push(u)}return p.join("+")}let u=["Control","Alt","Meta","Shift"];function o(e,t){return function(e){let t=e.split("+").pop(),n=[];for(let t of["Control","Alt","Meta","Shift"])e.includes(t)&&n.push(t);return t&&n.push(t),n.join("+")}(function(e,t){var n;let r="undefined"==typeof window?void 0:window,i=s.test(null!==(n=null!=t?t:null==r?void 0:r.navigator.platform)&&void 0!==n?n:"")?"Meta":"Control";return e.replace("Mod",i)}(e,t))}let s=/Mac|iPod|iPhone|iPad/i;let SequenceTracker=class SequenceTracker{constructor({onReset:e}={}){this._path=[],this.timer=null,this.onReset=e}get path(){return this._path}get sequence(){return this._path.join(" ")}registerKeypress(e){this._path=[...this._path,l(e)],this.startTimer()}reset(){var e;this.killTimer(),this._path=[],null===(e=this.onReset)||void 0===e||e.call(this)}killTimer(){null!=this.timer&&window.clearTimeout(this.timer),this.timer=null}startTimer(){this.killTimer(),this.timer=window.setTimeout(()=>this.reset(),SequenceTracker.CHORD_TIMEOUT)}};function c(e){return e.split(" ").map(e=>o(e)).join(" ")}function d(e){if(!(e instanceof HTMLElement))return!1;let t=e.nodeName.toLowerCase(),n=(e.getAttribute("type")||"").toLowerCase();return"select"===t||"textarea"===t||"input"===t&&"submit"!==n&&"reset"!==n&&"checkbox"!==n&&"radio"!==n&&"file"!==n||e.isContentEditable}SequenceTracker.CHORD_TIMEOUT=1500;let h=new RadixTrie,f=new WeakMap,v=h,g=new SequenceTracker({onReset(){v=h}});function p(e){if(e.defaultPrevented||!(e.target instanceof Node))return;if(d(e.target)){let t=e.target;if(!t.id||!t.ownerDocument.querySelector(`[data-hotkey-scope="${t.id}"]`))return}let t=v.get(l(e));if(!t){g.reset();return}if(g.registerKeypress(e),v=t,t instanceof Leaf){let n;let r=e.target,i=!1,a=d(r);for(let e=t.children.length-1;e>=0;e-=1){let l=(n=t.children[e]).getAttribute("data-hotkey-scope");if(!a&&!l||a&&r.id===l){i=!0;break}}n&&i&&(function(e,t){let n=new CustomEvent("hotkey-fire",{cancelable:!0,detail:{path:t}});e.dispatchEvent(n)&&(d(e)?e.focus():e.click())}(n,g.path),e.preventDefault()),g.reset()}}function m(e,t){0===Object.keys(h.children).length&&document.addEventListener("keydown",p);let n=(function(e){let t=[],n=[""],r=!1;for(let i=0;ie.map(e=>o(e)).filter(e=>""!==e)).filter(e=>e.length>0)})(t||e.getAttribute("data-hotkey")||"").map(t=>h.insert(t).add(e));f.set(e,n)}function y(e){let t=f.get(e);if(t&&t.length)for(let n of t)n&&n.delete(e);0===Object.keys(h.children).length&&document.removeEventListener("keydown",p)}},93218:(e,t,n)=>{n.d(t,{D:()=>o});var r=n(35840),i=n(47728),a=n(4721),l=n(19684),u=n(2642);function o(e,t){let n=(0,u.a)(e),o=(0,l.c)(n);if(isNaN(t))return(0,r.w)(e,NaN);let s=n.getHours(),c=t<0?-1:1,d=Math.trunc(t/5);n.setDate(n.getDate()+7*d);let h=Math.abs(t%5);for(;h>0;)n.setDate(n.getDate()+c),(0,l.c)(n)||(h-=1);return o&&(0,l.c)(n)&&0!==t&&((0,i._)(n)&&n.setDate(n.getDate()+(c<0?2:-1)),(0,a.X)(n)&&n.setDate(n.getDate()+(c<0?1:-2))),n.setHours(s),n}},8723:(e,t,n)=>{n.d(t,{P:()=>i});var r=n(2642);function i(e){return(0,r.a)(e).getDay()}},14051:(e,t,n)=>{n.d(t,{P:()=>a});var r=n(2642),i=n(35840);function a(e){let t=(0,r.a)(e),n=t.getFullYear(),a=t.getMonth(),l=(0,i.w)(e,0);return l.setFullYear(n,a+1,0),l.setHours(0,0,0,0),l.getDate()}},89369:(e,t,n)=>{n.d(t,{d:()=>i});var r=n(2642);function i(e,t){let n=(0,r.a)(e),i=(0,r.a)(t);return n.getTime()>i.getTime()}},72880:(e,t,n)=>{n.d(t,{Y:()=>i});var r=n(2642);function i(e,t){return+(0,r.a)(e)<+(0,r.a)(t)}},84583:(e,t,n)=>{n.d(t,{n:()=>i});var r=n(2642);function i(e,t){return+(0,r.a)(e)==+(0,r.a)(t)}},12108:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(2642);function i(e){return 5===(0,r.a)(e).getDay()}},68406:(e,t,n)=>{n.d(t,{p:()=>i});var r=n(2642);function i(e){return 1===(0,r.a)(e).getDay()}},47728:(e,t,n)=>{n.d(t,{_:()=>i});var r=n(2642);function i(e){return 6===(0,r.a)(e).getDay()}},4721:(e,t,n)=>{n.d(t,{X:()=>i});var r=n(2642);function i(e){return 0===(0,r.a)(e).getDay()}},26320:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(85551);function i(e){return(0,r.r)(e,Date.now())}},19684:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(2642);function i(e){let t=(0,r.a)(e).getDay();return 0===t||6===t}},93724:(e,t,n)=>{n.d(t,{W:()=>i});var r=n(2642);function i(e){let t=(0,r.a)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}},29508:(e,t,n)=>{n.d(t,{s:()=>a});var r=n(13999),i=n(8723);function a(e,t){let n=t-(0,i.P)(e);return n<=0&&(n+=7),(0,r.f)(e,n)}},50879:(e,t,n)=>{n.d(t,{j:()=>i});var r=n(29508);function i(e){return(0,r.s)(e,5)}},7818:(e,t,n)=>{n.d(t,{u:()=>i});var r=n(29508);function i(e){return(0,r.s)(e,1)}},55375:(e,t,n)=>{n.d(t,{R:()=>i});var r=n(29508);function i(e){return(0,r.s)(e,6)}},75740:(e,t,n)=>{n.d(t,{K:()=>a});var r=n(8723),i=n(40828);function a(e,t){let n=(0,r.P)(e)-t;return n<=0&&(n+=7),(0,i.e)(e,n)}},83223:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(75740);function i(e){return(0,r.K)(e,5)}},6146:(e,t,n)=>{n.d(t,{_:()=>i});var r=n(75740);function i(e){return(0,r.K)(e,1)}},26638:(e,t,n)=>{n.d(t,{W:()=>i});var r=n(75740);function i(e){return(0,r.K)(e,0)}},49087:(e,t,n)=>{n.d(t,{X:()=>i});var r=n(2642);function i(e,t){let n=(0,r.a)(e);return n.setDate(t),n}},31422:(e,t,n)=>{n.d(t,{E:()=>i});var r=n(93218);function i(e,t){return(0,r.D)(e,-t)}},40828:(e,t,n)=>{n.d(t,{e:()=>i});var r=n(13999);function i(e,t){return(0,r.f)(e,-t)}},39804:(e,t,n)=>{n.d(t,{a:()=>i});var r=n(4883);function i(e,t){return(0,r.P)(e,-t)}},77396:(e,t,n)=>{n.d(t,{k:()=>i});var r=n(11897);function i(e,t){return(0,r.J)(e,-t)}},12837:(e,t,n)=>{n.d(t,{d:()=>i});var r=n(93876);function i(e,t){return(0,r.e)(e,-t)}},37688:(e,t,n)=>{n.d(t,{A:()=>r});let r=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 a=Array(i);++r{n.d(t,{A:()=>c});var r=n(37688),i=n(6832),a=n(71946),l=1/0;let u=function(e){var t,n=(t=e)?(t=(0,a.A)(t))===l||t===-l?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0,r=n%1;return n==n?r?n-r:n:0};var o=Math.ceil,s=Math.max;let c=function(e,t,n){t=(n?(0,i.A)(e,t,n):void 0===t)?1:s(u(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var l=0,c=0,d=Array(o(a/t));l{n.d(t,{A:()=>a});var r=n(87385),i=n(53098);let a=function(e){return"symbol"==typeof e||(0,i.A)(e)&&"[object Symbol]"==(0,r.A)(e)}},71946:(e,t,n)=>{n.d(t,{A:()=>f});var r=/\s/;let i=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t};var a=/^\s+/,l=n(23149),u=n(61882),o=0/0,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;let f=function(e){if("number"==typeof e)return e;if((0,u.A)(e))return o;if((0,l.A)(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=(0,l.A)(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,i(t)+1).replace(a,""):t;var r=c.test(e);return r||d.test(e)?h(e.slice(2),r?2:8):s.test(e)?o:+e}}}]); +//# sourceMappingURL=vendors-node_modules_github_hotkey_dist_index_js-node_modules_date-fns_getDaysInMonth_mjs-nod-70c11b-ae895dfc753c.js.map \ No newline at end of file diff --git a/vendors-node_modules_github_jtml_lib_index_js-node_modules_tanstack_react-query_build_modern_-a0175e-9bee1445109c.js.download b/vendors-node_modules_github_jtml_lib_index_js-node_modules_tanstack_react-query_build_modern_-a0175e-9bee1445109c.js.download new file mode 100644 index 0000000000..40d1927fbe --- /dev/null +++ b/vendors-node_modules_github_jtml_lib_index_js-node_modules_tanstack_react-query_build_modern_-a0175e-9bee1445109c.js.download @@ -0,0 +1,2 @@ +"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_github_jtml_lib_index_js-node_modules_tanstack_react-query_build_modern_-a0175e"],{31143:(e,t,n)=>{n.d(t,{qy:()=>k,XX:()=>b,_3:()=>S});let r=new Map;function s(e){if(r.has(e))return r.get(e);let t=e.length,n=0,s=0,i=0,a=[];for(let r=0;rn&&(a.push(Object.freeze({type:"string",start:n,end:s,value:e.slice(n,s)})),n=s),a.push(Object.freeze({type:"part",start:s,end:r+2,value:e.slice(n+2,r).trim()})),r+=1,n=r+1)}return n"string"==typeof e?e:e.value).join("");this.element.setAttributeNS(this.attr.namespaceURI,this.attr.name,e)}}};let l=new WeakMap;let NodeTemplatePart=class NodeTemplatePart{constructor(e,t){this.expression=t,l.set(this,[e]),e.textContent=""}get value(){return l.get(this).map(e=>e.textContent).join("")}set value(e){this.replace(e)}get previousSibling(){return l.get(this)[0].previousSibling}get nextSibling(){return l.get(this)[l.get(this).length-1].nextSibling}replace(...e){let t=e.map(e=>"string"==typeof e?new Text(e):e);for(let e of(t.length||t.push(new Text("")),l.get(this)[0].before(...t),l.get(this)))e.remove();l.set(this,t)}};function o(e){return{processCallback(t,n,r){var s;if("object"==typeof r&&r){for(let t of n)if(t.expression in r){let n=null!==(s=r[t.expression])&&void 0!==s?s:"";e(t,n)}}}}}function u(e,t){e.value=String(t)}function c(e,t){return"boolean"==typeof t&&e instanceof AttributeTemplatePart&&"boolean"==typeof e.element[e.attributeName]&&(e.booleanValue=t,!0)}let p=o(u);o((e,t)=>{c(e,t)||u(e,t)});let h=new WeakMap,d=new WeakMap;let TemplateInstance=class TemplateInstance extends DocumentFragment{constructor(e,t,n=p){var r,i;super(),Object.getPrototypeOf(this)!==TemplateInstance.prototype&&Object.setPrototypeOf(this,TemplateInstance.prototype),this.appendChild(e.content.cloneNode(!0)),d.set(this,Array.from(function*(e){let t;let n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,null,!1);for(;t=n.nextNode();)if(t instanceof Element&&t.hasAttributes())for(let e=0;ee+t+(n{let n=e(...t);return v.add(n),n}}let T=new WeakMap;let EventHandler=class EventHandler{constructor(e,t){this.element=e,this.type=t,this.element.addEventListener(this.type,this),T.get(this.element).set(this.type,this)}set(e){"function"==typeof e?this.handleEvent=e.bind(this.element):"object"==typeof e&&"function"==typeof e.handleEvent?this.handleEvent=e.handleEvent.bind(e):(this.element.removeEventListener(this.type,this),T.get(this.element).delete(this.type))}static for(e){T.has(e.element)||T.set(e.element,new Map);let t=e.attributeName.slice(2),n=T.get(e.element);return n.has(t)?n.get(t):new EventHandler(e.element,t)}};function w(e,t){v.has(t)&&(t(e),1)||c(e,t)||e instanceof AttributeTemplatePart&&e.attributeName.startsWith("on")&&(EventHandler.for(e).set(t),e.element.removeAttributeNS(e.attributeNamespace,e.attributeName),1)||t instanceof TemplateResult&&e instanceof NodeTemplatePart&&(t.renderInto(e),1)||t instanceof DocumentFragment&&e instanceof NodeTemplatePart&&(t.childNodes.length&&e.replace(...t.childNodes),1)||function(e,t){if(!("object"==typeof t&&Symbol.iterator in t))return!1;if(!(e instanceof NodeTemplatePart))return e.value=Array.from(t).join(" "),!0;{let n=[];for(let e of t)if(e instanceof TemplateResult){let t=document.createDocumentFragment();e.renderInto(t),n.push(...t.childNodes)}else e instanceof DocumentFragment?n.push(...e.childNodes):n.push(String(e));return n.length&&e.replace(...n),!0}}(e,t)||u(e,t)}let N=o(w);function k(e,...t){return new TemplateResult(e,t,N)}let P=new WeakMap;y((...e)=>t=>{P.has(t)||P.set(t,{i:e.length});let n=P.get(t);for(let r=0;r{rt=>{var n,r;if(!(t instanceof NodeTemplatePart))return;let s=document.createElement("template"),i=null!==(r=null===(n=TemplateResult.cspTrustedTypesPolicy)||void 0===n?void 0:n.createHTML(e))&&void 0!==r?r:e;s.innerHTML=i;let a=document.importNode(s.content,!0);t.replace(...a.childNodes)})},31993:(e,t,n)=>{n.d(t,{j:()=>r});function r(e){return e}},85692:(e,t,n)=>{n.d(t,{Wx:()=>u});var r=n(96540),s=Object.defineProperty,i=new Map,a=new WeakMap,l=0,o=void 0;function u({threshold:e,delay:t,trackVisibility:n,rootMargin:s,root:c,triggerOnce:p,skip:h,initialInView:d,fallbackInView:m,onChange:g}={}){var f;let[b,v]=r.useState(null),y=r.useRef(g),[T,w]=r.useState({inView:!!d,entry:void 0});y.current=g,r.useEffect(()=>{let r;if(!h&&b)return r=function(e,t,n={},r=o){if(void 0===window.IntersectionObserver&&void 0!==r){let s=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}let{id:s,observer:u,elements:c}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return`${t}_${"root"===t?(n=e.root)?(a.has(n)||(l+=1,a.set(n,l.toString())),a.get(n)):"0":e[t]}`}).toString(),n=i.get(t);if(!n){let r;let s=new Map,a=new IntersectionObserver(t=>{t.forEach(t=>{var n;let i=t.isIntersecting&&r.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=s.get(t.target))||n.forEach(e=>{e(i,t)})})},e);r=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:s},i.set(t,n)}return n}(n),p=c.get(e)||[];return c.has(e)||c.set(e,p),p.push(t),u.observe(e),function(){p.splice(p.indexOf(t),1),0===p.length&&(c.delete(e),u.unobserve(e)),0===c.size&&(u.disconnect(),i.delete(s))}}(b,(e,t)=>{w({inView:e,entry:t}),y.current&&y.current(e,t),t.isIntersecting&&p&&r&&(r(),r=void 0)},{root:c,rootMargin:s,threshold:e,trackVisibility:n,delay:t},m),()=>{r&&r()}},[Array.isArray(e)?e.toString():e,b,c,s,p,h,n,m,t]);let N=null==(f=T.entry)?void 0:f.target,k=r.useRef(void 0);b||!N||p||h||k.current===N||(k.current=N,w({inView:!!d,entry:void 0}));let P=[v,T.inView,T.entry];return P.ref=P[0],P.inView=P[1],P.entry=P[2],P}r.Component}}]); +//# sourceMappingURL=vendors-node_modules_github_jtml_lib_index_js-node_modules_tanstack_react-query_build_modern_-a0175e-01d62166349d.js.map \ No newline at end of file diff --git a/vendors-node_modules_highcharts-react-official_dist_highcharts-react_min_js-node_modules_high-7e7fe4-73d74e835ddf.js.download b/vendors-node_modules_highcharts-react-official_dist_highcharts-react_min_js-node_modules_high-7e7fe4-73d74e835ddf.js.download new file mode 100644 index 0000000000..7ae7a01243 --- /dev/null +++ b/vendors-node_modules_highcharts-react-official_dist_highcharts-react_min_js-node_modules_high-7e7fe4-73d74e835ddf.js.download @@ -0,0 +1,4 @@ +(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_highcharts-react-official_dist_highcharts-react_min_js-node_modules_high-7e7fe4"],{85316:function(e,p,x){var y;"undefined"!=typeof self&&self,y=function(e){return function(e){function p(y){if(x[y])return x[y].exports;var b=x[y]={i:y,l:!1,exports:{}};return e[y].call(b.exports,b,b.exports,p),b.l=!0,b.exports}var x={};return p.m=e,p.c=x,p.d=function(e,x,y){p.o(e,x)||Object.defineProperty(e,x,{configurable:!1,enumerable:!0,get:y})},p.n=function(e){var x=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(x,"a",x),x},p.o=function(e,p){return Object.prototype.hasOwnProperty.call(e,p)},p.p="",p(p.s=0)}([function(e,p,x){"use strict";function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var p=1;pe.length)&&(p=e.length);for(var x=0,y=Array(p);xparseInt(x.userAgent.split("Firefox/")[1],10),x.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],x.noop=function(){},x.supportsPassiveEvents=function(){let e=!1;if(!x.isMS){let p=Object.defineProperty({},"passive",{get:function(){e=!0}});x.win.addEventListener&&x.win.removeEventListener&&(x.win.addEventListener("testPassive",x.noop,p),x.win.removeEventListener("testPassive",x.noop,p))}return e}(),x.charts=[],x.composed=[],x.dateFormats={},x.seriesTypes={},x.symbolSizes={},x.chartCount=0,p}),x(p,"Core/Utilities.js",[p["Core/Globals.js"]],function(e){let p,x,y;let{charts:b,doc:E,win:O}=e;function L(p,x,y,b){let E=x?"Highcharts error":"Highcharts warning";32===p&&(p=`${E}: Deprecated member`);let D=U(p),j=D?`${E} #${p}: www.highcharts.com/errors/${p}/`:p.toString();if(void 0!==b){let e="";D&&(j+="?"),te(b,function(p,x){e+=` + - ${x}: ${p}`,D&&(j+=encodeURI(x)+"="+encodeURI(p))}),j+=e}ts(e,"displayError",{chart:y,code:p,message:j,params:b},function(){if(x)throw Error(j);O.console&&-1===L.messages.indexOf(j)&&console.warn(j)}),L.messages.push(j)}function D(e,p){return parseInt(e,p||10)}function j(e){return"string"==typeof e}function R(e){let p=Object.prototype.toString.call(e);return"[object Array]"===p||"[object Array Iterator]"===p}function z(e,p){return!!e&&"object"==typeof e&&(!p||!R(e))}function F(e){return z(e)&&"number"==typeof e.nodeType}function H(e){let p=e&&e.constructor;return!!(z(e,!0)&&!F(e)&&p&&p.name&&"Object"!==p.name)}function U(e){return"number"==typeof e&&!isNaN(e)&&e<1/0&&e>-1/0}function Y(e){return null!=e}function V(e,p,x){let y;let b=j(p)&&!Y(x),E=(p,x)=>{Y(p)?e.setAttribute(x,p):b?(y=e.getAttribute(x))||"class"!==x||(y=e.getAttribute(x+"Name")):e.removeAttribute(x)};return j(p)?E(x,p):te(p,E),y}function q(e){return R(e)?e:[e]}function K(e,p){let x;for(x in e||(e={}),p)e[x]=p[x];return e}function $(){let e=arguments,p=e.length;for(let x=0;x1e14?e:parseFloat(e.toPrecision(p||14))}(L||(L={})).messages=[],Math.easeInOutSine=function(e){return -.5*(Math.cos(Math.PI*e)-1)};let tt=Array.prototype.find?function(e,p){return e.find(p)}:function(e,p){let x;let y=e.length;for(x=0;xe.order-p.order),e.forEach(e=>{!1===e.fn.call(p,y)&&y.preventDefault()})}b&&!y.defaultPrevented&&b.call(p,y)}te({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(p,x){e[x]=function(e){return L(32,!1,void 0,{[`Highcharts.${x}`]:`use Array.${p}`}),Array.prototype[p].apply(e,[].slice.call(arguments,1))}});let to=(x=Math.random().toString(36).substring(2,9)+"-",y=0,function(){return"highcharts-"+(p?"":x)+y++});return O.jQuery&&(O.jQuery.fn.highcharts=function(){let p=[].slice.call(arguments);if(this[0])return p[0]?(new e[j(p[0])?p.shift():"Chart"](this[0],p[0],p[1]),this):b[V(this[0],"data-highcharts-chart")]}),{addEvent:function(p,x,y,b={}){let E="function"==typeof p&&p.prototype||p;Object.hasOwnProperty.call(E,"hcEvents")||(E.hcEvents={});let O=E.hcEvents;e.Point&&p instanceof e.Point&&p.series&&p.series.chart&&(p.series.chart.runTrackerClick=!0);let L=p.addEventListener;L&&L.call(p,x,y,!!e.supportsPassiveEvents&&{passive:void 0===b.passive?-1!==x.indexOf("touch"):b.passive,capture:!1}),O[x]||(O[x]=[]);let D={fn:y,order:"number"==typeof b.order?b.order:1/0};return O[x].push(D),O[x].sort((e,p)=>e.order-p.order),function(){ti(p,x,y)}},arrayMax:function(e){let p=e.length,x=e[0];for(;p--;)e[p]>x&&(x=e[p]);return x},arrayMin:function(e){let p=e.length,x=e[0];for(;p--;)e[p]p?e{let y=p%2/2,b=x?-1:1;return(Math.round(e*b-y)+y)*b},css:_,defined:Y,destroyObjectProperties:function(e,p,x){te(e,function(y,b){y!==p&&y?.destroy&&y.destroy(),(y?.destroy||!x)&&delete e[b]})},diffObjects:function(e,p,x,y){let b={};return function e(p,b,E,O){let L=x?b:p;te(p,function(x,D){if(!O&&y&&y.indexOf(D)>-1&&b[D]){x=q(x),E[D]=[];for(let p=0;p{if(e.length>1)for(E=y=e.length-1;E>0;E--)(b=e[E]-e[E-1])<0&&!O?(p?.(),p=void 0):b&&(void 0===x||b=x-1&&(x=Math.floor(y)),Math.max(0,x-(e(p,"padding-left",!0)||0)-(e(p,"padding-right",!0)||0))}if("height"===x)return Math.max(0,Math.min(p.offsetHeight,p.scrollHeight)-(e(p,"padding-top",!0)||0)-(e(p,"padding-bottom",!0)||0));let E=O.getComputedStyle(p,void 0);return E&&(b=E.getPropertyValue(x),$(y,"opacity"!==x)&&(b=D(b))),b},inArray:function(e,p,x){return L(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),p.indexOf(e,x)},insertItem:function(e,p){let x;let y=e.options.index,b=p.length;for(x=e.options.isInternal?b:0;x=e))&&(b||!(L<=(p[E]+(p[E+1]||p[E]))/2)));E++);return J(O*x,-Math.round(Math.log(.001)/Math.LN10))},objectEach:te,offset:function(e){let p=E.documentElement,x=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:x.top+(O.pageYOffset||p.scrollTop)-(p.clientTop||0),left:x.left+(O.pageXOffset||p.scrollLeft)-(p.clientLeft||0),width:x.width,height:x.height}},pad:function(e,p,x){return Array((p||2)+1-String(e).replace("-","").length).join(x||"0")+e},pick:$,pInt:D,pushUnique:function(e,p){return 0>e.indexOf(p)&&!!e.push(p)},relativeLength:function(e,p,x){return/%$/.test(e)?p*parseFloat(e)/100+(x||0):parseFloat(e)},removeEvent:ti,replaceNested:function(e,...p){let x,y;do for(y of(x=e,p))e=e.replace(y[0],y[1]);while(e!==x)return e},splat:q,stableSort:function(e,p){let x,y;let b=e.length;for(y=0;y0?setTimeout(e,p,x):(e.call(0,x),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:to,useSerialIds:function(e){return p=$(e,p)},wrap:function(e,p,x){let y=e[p];e[p]=function(){let e=arguments,p=this;return x.apply(this,[function(){return y.apply(p,arguments.length?arguments:e)}].concat([].slice.call(arguments)))}}}}),x(p,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),x(p,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),x(p,"Core/Time.js",[p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p){let{win:x}=e,{defined:y,error:b,extend:E,isNumber:O,isObject:L,merge:D,objectEach:j,pad:R,pick:z,splat:F,timeUnits:H}=p,U=e.isSafari&&x.Intl&&x.Intl.DateTimeFormat.prototype.formatRange,Y=e.isSafari&&x.Intl&&!x.Intl.DateTimeFormat.prototype.formatRange;let m=class m{constructor(e){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=x.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(e)}get(e,p){if(this.variableTimezone||this.timezoneOffset){let x=p.getTime(),y=x-this.getTimezoneOffset(p);p.setTime(y);let b=p["getUTC"+e]();return p.setTime(x),b}return this.useUTC?p["getUTC"+e]():p["get"+e]()}set(e,p,x){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===e||"Seconds"===e||"Minutes"===e&&this.getTimezoneOffset(p)%36e5==0)return p["setUTC"+e](x);let y=this.getTimezoneOffset(p),b=p.getTime()-y;p.setTime(b),p["setUTC"+e](x);let E=this.getTimezoneOffset(p);return b=p.getTime()+E,p.setTime(b)}return this.useUTC||U&&"FullYear"===e?p["setUTC"+e](x):p["set"+e](x)}update(e={}){let p=z(e.useUTC,!0);this.options=e=D(!0,this.options,e),this.Date=e.Date||x.Date||Date,this.useUTC=p,this.timezoneOffset=p&&e.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=p&&!!(e.getTimezoneOffset||e.timezone)}makeTime(e,p,x,y,b,E){let O,L,D;return this.useUTC?(O=this.Date.UTC.apply(0,arguments),L=this.getTimezoneOffset(O),O+=L,L!==(D=this.getTimezoneOffset(O))?O+=D-L:L-36e5!==this.getTimezoneOffset(O-36e5)||Y||(O-=36e5)):O=new this.Date(e,p,z(x,1),z(y,0),z(b,0),z(E,0)).getTime(),O}timezoneOffsetFunction(){let e=this,p=this.options,x=p.getTimezoneOffset;return this.useUTC?p.timezone?e=>{try{let x=`shortOffset,${p.timezone||""}`,[y,b,E,L,D=0]=(m.formatCache[x]=m.formatCache[x]||Intl.DateTimeFormat("en",{timeZone:p.timezone,timeZoneName:"shortOffset"})).format(e).split(/(GMT|:)/).map(Number),j=-(36e5*(E+D/60));if(O(j))return j}catch(e){b(34)}return 0}:this.useUTC&&x?e=>6e4*x(e.valueOf()):()=>6e4*(e.timezoneOffset||0):e=>6e4*new Date(e.toString()).getTimezoneOffset()}dateFormat(p,x,b){if(!y(x)||isNaN(x))return e.defaultOptions.lang&&e.defaultOptions.lang.invalidDate||"";p=z(p,"%Y-%m-%d %H:%M:%S");let O=this,L=new this.Date(x),D=this.get("Hours",L),F=this.get("Day",L),H=this.get("Date",L),U=this.get("Month",L),Y=this.get("FullYear",L),V=e.defaultOptions.lang,q=V&&V.weekdays,K=V&&V.shortWeekdays;return j(E({a:K?K[F]:q[F].substr(0,3),A:q[F],d:R(H),e:R(H,2," "),w:F,b:V.shortMonths[U],B:V.months[U],m:R(U+1),o:U+1,y:Y.toString().substr(2,2),Y:Y,H:R(D),k:D,I:R(D%12||12),l:D%12||12,M:R(this.get("Minutes",L)),p:D<12?"AM":"PM",P:D<12?"am":"pm",S:R(this.get("Seconds",L)),L:R(Math.floor(x%1e3),3)},e.dateFormats),function(e,y){for(;-1!==p.indexOf("%"+y);)p=p.replace("%"+y,"function"==typeof e?e.call(O,x):e)}),b?p.substr(0,1).toUpperCase()+p.substr(1):p}resolveDTLFormat(e){return L(e,!0)?e:{main:(e=F(e))[0],from:e[1],to:e[2]}}getTimeTicks(e,p,x,b){let O,L,D,j;let R=this,F=R.Date,U=[],Y={},V=new F(p),q=e.unitRange,K=e.count||1;if(b=z(b,1),y(p)){R.set("Milliseconds",V,q>=H.second?0:K*Math.floor(R.get("Milliseconds",V)/K)),q>=H.second&&R.set("Seconds",V,q>=H.minute?0:K*Math.floor(R.get("Seconds",V)/K)),q>=H.minute&&R.set("Minutes",V,q>=H.hour?0:K*Math.floor(R.get("Minutes",V)/K)),q>=H.hour&&R.set("Hours",V,q>=H.day?0:K*Math.floor(R.get("Hours",V)/K)),q>=H.day&&R.set("Date",V,q>=H.month?1:Math.max(1,K*Math.floor(R.get("Date",V)/K))),q>=H.month&&(R.set("Month",V,q>=H.year?0:K*Math.floor(R.get("Month",V)/K)),L=R.get("FullYear",V)),q>=H.year&&(L-=L%K,R.set("FullYear",V,L)),q===H.week&&(j=R.get("Day",V),R.set("Date",V,R.get("Date",V)-j+b+(j4*H.month||R.getTimezoneOffset(p)!==R.getTimezoneOffset(x));let F=V.getTime();for(O=1;F1?F=R.makeTime(L,e,E,z+O*K):F+=q*K,O++;U.push(F),q<=H.hour&&U.length<1e4&&U.forEach(function(e){e%18e5==0&&"000000000"===R.dateFormat("%H%M%S%L",e)&&(Y[e]="day")})}return U.info=E(e,{higherRanks:Y,totalRange:q*K}),U}getDateFormat(e,p,x,y){let b=this.dateFormat("%m-%d %H:%M:%S.%L",p),E="01-01 00:00:00.000",O={millisecond:15,second:12,minute:9,hour:6,day:3},L="millisecond",D=L;for(L in H){if(e===H.week&&+this.dateFormat("%w",p)===x&&b.substr(6)===E.substr(6)){L="week";break}if(H[L]>e){L=D;break}if(O[L]&&b.substr(O[L])!==E.substr(O[L]))break;"week"!==L&&(D=L)}return this.resolveDTLFormat(y[L]).main}};return m.formatCache={},m}),x(p,"Core/Defaults.js",[p["Core/Chart/ChartDefaults.js"],p["Core/Globals.js"],p["Core/Color/Palettes.js"],p["Core/Time.js"],p["Core/Utilities.js"]],function(e,p,x,y,b){let{isTouchDevice:E}=p,{fireEvent:O,merge:L}=b,D={colors:x.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",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"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:e,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:e=>Math.sqrt(1-Math.pow(e-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:E?25:10,headerFormat:'{point.key}
',pointFormat:'\u25CF {series.name}: {point.y}
',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};D.chart.styledMode=!1;let j=new y(D.time);return{defaultOptions:D,defaultTime:j,getOptions:function(){return D},setOptions:function(e){return O(p,"setOptions",{options:e}),L(!0,D,e),(e.time||e.global)&&(p.time?p.time.update(L(D.global,D.time,e.global,e.time)):p.time=j),D}}}),x(p,"Core/Color/Color.js",[p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p){let{isNumber:x,merge:y,pInt:b}=p;let o=class o{static parse(e){return e?new o(e):o.None}constructor(p){let x,y,b,E;this.rgba=[NaN,NaN,NaN,NaN],this.input=p;let O=e.Color;if(O&&O!==o)return new O(p);if("object"==typeof p&&void 0!==p.stops)this.stops=p.stops.map(e=>new o(e[1]));else if("string"==typeof p){if(this.input=p=o.names[p.toLowerCase()]||p,"#"===p.charAt(0)){let e=p.length,x=parseInt(p.substr(1),16);7===e?y=[(0xff0000&x)>>16,(65280&x)>>8,255&x,1]:4===e&&(y=[(3840&x)>>4|(3840&x)>>8,(240&x)>>4|240&x,(15&x)<<4|15&x,1])}if(!y)for(b=o.parsers.length;b--&&!y;)(x=(E=o.parsers[b]).regex.exec(p))&&(y=E.parse(x))}y&&(this.rgba=y)}get(e){let p=this.input,b=this.rgba;if("object"==typeof p&&void 0!==this.stops){let x=y(p);return x.stops=[].slice.call(x.stops),this.stops.forEach((p,y)=>{x.stops[y]=[x.stops[y][0],p.get(e)]}),x}return b&&x(b[0])?"rgb"!==e&&(e||1!==b[3])?"a"===e?`${b[3]}`:"rgba("+b.join(",")+")":"rgb("+b[0]+","+b[1]+","+b[2]+")":p}brighten(e){let p=this.rgba;if(this.stops)this.stops.forEach(function(p){p.brighten(e)});else if(x(e)&&0!==e)for(let x=0;x<3;x++)p[x]+=b(255*e),p[x]<0&&(p[x]=0),p[x]>255&&(p[x]=255);return this}setOpacity(e){return this.rgba[3]=e,this}tweenTo(e,p){let y=this.rgba,b=e.rgba;if(!x(y[0])||!x(b[0]))return e.input||"none";let E=1!==b[3]||1!==y[3];return(E?"rgba(":"rgb(")+Math.round(b[0]+(y[0]-b[0])*(1-p))+","+Math.round(b[1]+(y[1]-b[1])*(1-p))+","+Math.round(b[2]+(y[2]-b[2])*(1-p))+(E?","+(b[3]+(y[3]-b[3])*(1-p)):"")+")"}};return o.names={white:"#ffffff",black:"#000000"},o.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(e){return[b(e[1]),b(e[2]),b(e[3]),parseFloat(e[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(e){return[b(e[1]),b(e[2]),b(e[3]),1]}}],o.None=new o(""),o}),x(p,"Core/Animation/Fx.js",[p["Core/Color/Color.js"],p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p,x){let{parse:y}=e,{win:b}=p,{isNumber:E,objectEach:O}=x;let n=class n{constructor(e,p,x){this.pos=NaN,this.options=p,this.elem=e,this.prop=x}dSetter(){let e=this.paths,p=e&&e[0],x=e&&e[1],y=this.now||0,b=[];if(1!==y&&p&&x){if(p.length===x.length&&y<1)for(let e=0;e=D+this.startTime?(this.now=this.end,this.pos=1,this.update(),j[this.prop]=!0,x=!0,O(j,function(e){!0!==e&&(x=!1)}),x&&L&&L.call(E),p=!1):(this.pos=b.easing((y-this.startTime)/D),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0),p}initPath(e,p,x){let y=e.startX,b=e.endX,O=x.slice(),L=e.isArea,D=L?2:1,j,R,z,F,H=p&&p.slice();if(!H)return[O,O];function U(e,p){for(;e.length{let y=R(e.options.animation);L=O(p)&&x(p.defer)?b.defer:Math.max(L,y.duration+y.defer),D=Math.min(b.duration,y.duration)}),e.renderer.forExport&&(L=0),{defer:Math.max(0,L-D),duration:Math.min(L,D)}},setAnimation:function(e,p){p.renderer.globalAnimation=j(e,p.options.chart.animation,!0)},stop:z}}),x(p,"Core/Renderer/HTML/AST.js",[p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p){let{SVG_NS:x,win:y}=e,{attr:b,createElement:E,css:O,error:L,isFunction:D,isString:j,objectEach:R,splat:z}=p,{trustedTypes:F}=y,H=F&&D(F.createPolicy)&&F.createPolicy("highcharts",{createHTML:e=>e}),U=H?H.createHTML(""):"",Y=function(){try{return!!new DOMParser().parseFromString(U,"text/html")}catch(e){return!1}}();let m=class m{static filterUserAttributes(e){return R(e,(p,x)=>{let y=!0;-1===m.allowedAttributes.indexOf(x)&&(y=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(x)&&(y=j(p)&&m.allowedReferences.some(e=>0===p.indexOf(e))),y||(L(33,!1,void 0,{"Invalid attribute in config":`${x}`}),delete e[x]),j(p)&&e[x]&&(e[x]=p.replace(/{let x=p.split(":").map(e=>e.trim()),y=x.shift();return y&&x.length&&(e[y.replace(/-([a-z])/g,e=>e[1].toUpperCase())]=x.join(":")),e},{})}static setElementHTML(e,p){e.innerHTML=m.emptyHTML,p&&new m(p).addToDOM(e)}constructor(e){this.nodes="string"==typeof e?this.parseMarkup(e):e}addToDOM(p){return function p(y,E){let D;return z(y).forEach(function(y){let j;let z=y.tagName,F=y.textContent?e.doc.createTextNode(y.textContent):void 0,H=m.bypassHTMLFiltering;if(z){if("#text"===z)j=F;else if(-1!==m.allowedTags.indexOf(z)||H){let L="svg"===z?x:E.namespaceURI||x,D=e.doc.createElementNS(L,z),U=y.attributes||{};R(y,function(e,p){"tagName"!==p&&"attributes"!==p&&"children"!==p&&"style"!==p&&"textContent"!==p&&(U[p]=e)}),b(D,H?U:m.filterUserAttributes(U)),y.style&&O(D,y.style),F&&D.appendChild(F),p(y.children||[],D),j=D}else L(33,!1,void 0,{"Invalid tagName in config":z})}j&&E.appendChild(j),D=j}),D}(this.nodes,p)}parseMarkup(e){let p;let x=[];if(e=e.trim().replace(/ style=(["'])/g," data-style=$1"),Y)p=new DOMParser().parseFromString(H?H.createHTML(e):e,"text/html");else{let x=E("div");x.innerHTML=e,p={body:x}}let y=(e,p)=>{let x=e.nodeName.toLowerCase(),b={tagName:x};"#text"===x&&(b.textContent=e.textContent||"");let E=e.attributes;if(E){let e={};[].forEach.call(E,p=>{"data-style"===p.name?b.style=m.parseStyle(p.value):e[p.name]=p.value}),b.attributes=e}if(e.childNodes.length){let p=[];[].forEach.call(e.childNodes,e=>{y(e,p)}),p.length&&(b.children=p)}p.push(b)};return[].forEach.call(p.body.childNodes,e=>y(e,x)),x}};return m.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","markerHeight","markerWidth","offset","opacity","orient","padding","paddingLeft","paddingRight","patternUnits","r","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],m.allowedReferences=["https://","http://","mailto:","/","../","./","#"],m.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feDropShadow","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],m.emptyHTML=U,m.bypassHTMLFiltering=!1,m}),x(p,"Core/Templating.js",[p["Core/Defaults.js"],p["Core/Utilities.js"]],function(e,p){let{defaultOptions:x,defaultTime:y}=e,{extend:b,getNestedProperty:E,isArray:O,isNumber:L,isObject:D,pick:j,pInt:R}=p,z={add:(e,p)=>e+p,divide:(e,p)=>0!==p?e/p:"",eq:(e,p)=>e==p,each:function(e){let p=arguments[arguments.length-1];return!!O(e)&&e.map((x,y)=>F(p.body,b(D(x)?x:{"@this":x},{"@index":y,"@first":0===y,"@last":y===e.length-1}))).join("")},ge:(e,p)=>e>=p,gt:(e,p)=>e>p,if:e=>!!e,le:(e,p)=>e<=p,lt:(e,p)=>ee*p,ne:(e,p)=>e!=p,subtract:(e,p)=>e-p,unless:e=>!e};function F(e="",p,b){let O=/\{([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= #\(\)]+)\}/g,L=/\(([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= ]+)\)/g,D=[],R=/f$/,U=/\.([0-9])/,Y=x.lang,V=b&&b.time||y,q=b&&b.numberFormatter||H,K=(e="")=>{let x;return"true"===e||"false"!==e&&((x=Number(e)).toString()===e?x:E(e,p))},$,_,Z=0,J;for(;null!==($=O.exec(e));){let x=L.exec($[1]);x&&($=x,J=!0),_&&_.isBlock||(_={ctx:p,expression:$[1],find:$[0],isBlock:"#"===$[1].charAt(0),start:$.index,startInner:$.index+$[0].length,length:$[0].length});let y=$[1].split(" ")[0].replace("#","");z[y]&&(_.isBlock&&y===_.fn&&Z++,_.fn||(_.fn=y));let b="else"===$[1];if(_.isBlock&&_.fn&&($[1]===`/${_.fn}`||b)){if(Z)!b&&Z--;else{let p=_.startInner,x=e.substr(p,$.index-p);void 0===_.body?(_.body=x,_.startInner=$.index+$[0].length):_.elseBody=x,_.find+=x+$[0],b||(D.push(_),_=void 0)}}else _.isBlock||D.push(_);if(x&&!_?.isBlock)break}return D.forEach(x=>{let y,E;let{body:O,elseBody:L,expression:D,fn:H}=x;if(H){let e=[x],j=D.split(" ");for(E=z[H].length;E--;)e.unshift(K(j[E+1]));y=z[H].apply(p,e),x.isBlock&&"boolean"==typeof y&&(y=F(y?O:L,p,b))}else{let e=D.split(":");if(y=K(e.shift()||""),e.length&&"number"==typeof y){let p=e.join(":");if(R.test(p)){let e=parseInt((p.match(U)||["","-1"])[1],10);null!==y&&(y=q(y,e,Y.decimalPoint,p.indexOf(",")>-1?Y.thousandsSep:""))}else y=V.dateFormat(p,y)}}e=e.replace(x.find,j(y,""))}),J?F(e,p,b):e}function H(e,p,y,b){let E,O;e=+e||0,p=+p;let D=x.lang,z=(e.toString().split(".")[1]||"").split("e")[0].length,F=e.toString().split("e"),H=p;-1===p?p=Math.min(z,20):L(p)?p&&F[1]&&F[1]<0&&((O=p+ +F[1])>=0?(F[0]=(+F[0]).toExponential(O).split("e")[0],p=O):(F[0]=F[0].split(".")[0]||0,e=p<20?(F[0]*Math.pow(10,F[1])).toFixed(p):0,F[1]=0)):p=2;let U=(Math.abs(F[1]?F[0]:e)+Math.pow(10,-Math.max(p,z)-1)).toFixed(p),Y=String(R(U)),V=Y.length>3?Y.length%3:0;return y=j(y,D.decimalPoint),b=j(b,D.thousandsSep),E=(e<0?"-":"")+(V?Y.substr(0,V)+b:""),0>+F[1]&&!H?E="0":E+=Y.substr(V).replace(/(\d{3})(?=\d)/g,"$1"+b),p?E+=y+U.slice(-p):0==+E&&(E="0"),F[1]&&0!=+E&&(E+="e"+F[1]),E}return{dateFormat:function(e,p,x){return y.dateFormat(e,p,x)},format:F,helpers:z,numberFormat:H}}),x(p,"Core/Renderer/RendererRegistry.js",[p["Core/Globals.js"]],function(e){var p,x;let y;return(x=p||(p={})).rendererTypes={},x.getRendererType=function(e=y){return x.rendererTypes[e]||x.rendererTypes[y]},x.registerRendererType=function(p,b,E){x.rendererTypes[p]=b,(!y||E)&&(y=p,e.Renderer=b)},p}),x(p,"Core/Renderer/RendererUtilities.js",[p["Core/Utilities.js"]],function(e){var p;let{clamp:x,pick:y,pushUnique:b,stableSort:E}=e;return(p||(p={})).distribute=function e(p,O,L){let D=p,j=D.reducedLen||O,R=(e,p)=>e.target-p.target,z=[],F=p.length,H=[],U=z.push,Y,V,q,K=!0,$,_,Z=0,J;for(Y=F;Y--;)Z+=p[Y].size;if(Z>j){for(E(p,(e,p)=>(p.rank||0)-(e.rank||0)),q=(J=p[0].rank===p[p.length-1].rank)?F/2:-1,V=J?q:F-1;q&&Z>j;)$=p[Y=Math.floor(V)],b(H,Y)&&(Z-=$.size),V+=q,J&&V>=p.length&&(q/=2,V=q);H.sort((e,p)=>p-e).forEach(e=>U.apply(z,p.splice(e,1)))}for(E(p,R),p=p.map(e=>({size:e.size,targets:[e.target],align:y(e.align,.5)}));K;){for(Y=p.length;Y--;)$=p[Y],_=(Math.min.apply(0,$.targets)+Math.max.apply(0,$.targets))/2,$.pos=x(_-$.size*$.align,0,O-$.size);for(Y=p.length,K=!1;Y--;)Y>0&&p[Y-1].pos+p[Y-1].size>p[Y].pos&&(p[Y-1].size+=p[Y].size,p[Y-1].targets=p[Y-1].targets.concat(p[Y].targets),p[Y-1].align=.5,p[Y-1].pos+p[Y-1].size>O&&(p[Y-1].pos=O-p[Y-1].size),p.splice(Y,1),K=!0)}return U.apply(D,z),Y=0,p.some(p=>{let x=0;return(p.targets||[]).some(()=>(D[Y].pos=p.pos+x,void 0!==L&&Math.abs(D[Y].pos-D[Y].target)>L)?(D.slice(0,Y+1).forEach(e=>delete e.pos),D.reducedLen=(D.reducedLen||O)-.1*O,D.reducedLen>.1*O&&e(D,O,L),!0):(x+=D[Y].size,Y++,!1))}),E(D,R),D},p}),x(p,"Core/Renderer/SVG/SVGElement.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Color/Color.js"],p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p,x,y){let{animate:b,animObject:E,stop:O}=e,{deg2rad:L,doc:D,svg:j,SVG_NS:R,win:z}=x,{addEvent:F,attr:H,createElement:U,crisp:Y,css:V,defined:q,erase:K,extend:$,fireEvent:_,isArray:Z,isFunction:J,isObject:tt,isString:te,merge:ti,objectEach:ts,pick:to,pInt:tr,pushUnique:tn,replaceNested:ta,syncTimeout:tl,uniqueKey:th}=y;let I=class I{_defaultGetter(e){let p=to(this[e+"Value"],this[e],this.element?this.element.getAttribute(e):null,0);return/^[\-0-9\.]+$/.test(p)&&(p=parseFloat(p)),p}_defaultSetter(e,p,x){x.setAttribute(p,e)}add(e){let p;let x=this.renderer,y=this.element;return e&&(this.parentGroup=e),void 0!==this.textStr&&"text"===this.element.nodeName&&x.buildText(this),this.added=!0,(!e||e.handleZ||this.zIndex)&&(p=this.zIndexSetter()),p||(e?e.element:x.box).appendChild(y),this.onAdd&&this.onAdd(),this}addClass(e,p){let x=p?"":this.attr("class")||"";return(e=(e||"").split(/ /g).reduce(function(e,p){return -1===x.indexOf(p)&&e.push(p),e},x?[x]:[]).join(" "))!==x&&this.attr("class",e),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(e,p,x,y=!0){let b,E,O,L;let D={},j=this.renderer,R=j.alignedObjects,z=!!e;e?(this.alignOptions=e,this.alignByTranslate=p,this.alignTo=x):(e=this.alignOptions||{},p=this.alignByTranslate,x=this.alignTo);let F=!x||te(x)?x||"renderer":void 0;F&&(z&&tn(R,this),x=void 0);let H=to(x,j[F],j),U=e.align,Y=e.verticalAlign;return b=(H.x||0)+(e.x||0),E=(H.y||0)+(e.y||0),"right"===U?O=1:"center"===U&&(O=2),O&&(b+=((H.width||0)-(e.width||0))/O),D[p?"translateX":"x"]=Math.round(b),"bottom"===Y?L=1:"middle"===Y&&(L=2),L&&(E+=((H.height||0)-(e.height||0))/L),D[p?"translateY":"y"]=Math.round(E),y&&(this[this.placed?"animate":"attr"](D),this.placed=!0),this.alignAttr=D,this}alignSetter(e){let p={left:"start",center:"middle",right:"end"};p[e]&&(this.alignValue=e,this.element.setAttribute("text-anchor",p[e]))}animate(e,p,x){let y=E(to(p,this.renderer.globalAnimation,!0)),O=y.defer;return D.hidden&&(y.duration=0),0!==y.duration?(x&&(y.complete=x),tl(()=>{this.element&&b(this,e,y)},O)):(this.attr(e,void 0,x||y.complete),ts(e,function(e,p){y.step&&y.step.call(this,e,{prop:p,pos:1,elem:this})},this)),this}applyTextOutline(e){let p=this.element;-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(p.style.fill)));let y=e.split(" "),b=y[y.length-1],E=y[0];if(E&&"none"!==E&&x.svg){this.fakeTS=!0,E=E.replace(/(^[\d\.]+)(.*?)$/g,function(e,p,x){return 2*Number(p)+x}),this.removeTextOutline();let e=D.createElementNS(R,"tspan");H(e,{class:"highcharts-text-outline",fill:b,stroke:b,"stroke-width":E,"stroke-linejoin":"round"});let x=p.querySelector("textPath")||p;[].forEach.call(x.childNodes,p=>{let x=p.cloneNode(!0);x.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(e=>x.removeAttribute(e)),e.appendChild(x)});let y=0;[].forEach.call(x.querySelectorAll("text tspan"),e=>{y+=Number(e.getAttribute("dy"))});let O=D.createElementNS(R,"tspan");O.textContent="\u200B",H(O,{x:Number(p.getAttribute("x")),dy:-y}),e.appendChild(O),x.insertBefore(e,x.firstChild)}}attr(e,p,x,y){let{element:b}=this,E=I.symbolCustomAttribs,L,D,j=this,R;return"string"==typeof e&&void 0!==p&&(L=e,(e={})[L]=p),"string"==typeof e?j=(this[e+"Getter"]||this._defaultGetter).call(this,e,b):(ts(e,function(p,x){R=!1,y||O(this,x),this.symbolName&&-1!==E.indexOf(x)&&(D||(this.symbolAttr(e),D=!0),R=!0),this.rotation&&("x"===x||"y"===x)&&(this.doTransform=!0),R||(this[x+"Setter"]||this._defaultSetter).call(this,p,x,b)},this),this.afterSetters()),x&&x.call(this),j}clip(e){if(e&&!e.clipPath){let p=th()+"-",x=this.renderer.createElement("clipPath").attr({id:p}).add(this.renderer.defs);$(e,{clipPath:x,id:p,count:0}),e.add(x)}return this.attr("clip-path",e?`url(${this.renderer.url}#${e.id})`:"none")}crisp(e,p){p=Math.round(p||e.strokeWidth||0);let x=e.x||this.x||0,y=e.y||this.y||0,b=(e.width||this.width||0)+x,E=(e.height||this.height||0)+y,O=Y(x,p),L=Y(y,p);return $(e,{x:O,y:L,width:Y(b,p)-O,height:Y(E,p)-L}),q(e.strokeWidth)&&(e.strokeWidth=p),e}complexColor(e,x,y){let b=this.renderer,E,O,L,D,j,R,z,F,H,U,Y=[],V;_(this.renderer,"complexColor",{args:arguments},function(){if(e.radialGradient?O="radialGradient":e.linearGradient&&(O="linearGradient"),O){if(L=e[O],j=b.gradients,R=e.stops,H=y.radialReference,Z(L)&&(e[O]=L={x1:L[0],y1:L[1],x2:L[2],y2:L[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===O&&H&&!q(L.gradientUnits)&&(D=L,L=ti(L,b.getRadialAttr(H,D),{gradientUnits:"userSpaceOnUse"})),ts(L,function(e,p){"id"!==p&&Y.push(p,e)}),ts(R,function(e){Y.push(e)}),j[Y=Y.join(",")])U=j[Y].attr("id");else{L.id=U=th();let e=j[Y]=b.createElement(O).attr(L).add(b.defs);e.radAttr=D,e.stops=[],R.forEach(function(x){0===x[1].indexOf("rgba")?(z=(E=p.parse(x[1])).get("rgb"),F=E.get("a")):(z=x[1],F=1);let y=b.createElement("stop").attr({offset:x[0],"stop-color":z,"stop-opacity":F}).add(e);e.stops.push(y)})}V="url("+b.url+"#"+U+")",y.setAttribute(x,V),y.gradient=Y,e.toString=function(){return V}}})}css(e){let p=this.styles,x={},y=this.element,b,E=!p;if(p&&ts(e,function(e,y){p&&p[y]!==e&&(x[y]=e,E=!0)}),E){p&&(e=$(p,x)),null===e.width||"auto"===e.width?delete this.textWidth:"text"===y.nodeName.toLowerCase()&&e.width&&(b=this.textWidth=tr(e.width)),$(this.styles,e),b&&!j&&this.renderer.forExport&&delete e.width;let E=ti(e);y.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(e=>E&&delete E[e]),E.color&&(E.fill=E.color)),V(y,E)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),e.textOutline&&this.applyTextOutline(e.textOutline)),this}dashstyleSetter(e){let p,x=this["stroke-width"];if("inherit"===x&&(x=1),e=e&&e.toLowerCase()){let y=e.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(p=y.length;p--;)y[p]=""+tr(y[p])*to(x,NaN);e=y.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",e)}}destroy(){let e=this,p=e.element||{},x=e.renderer,y=p.ownerSVGElement,b="SPAN"===p.nodeName&&e.parentGroup||void 0,E,L;if(p.onclick=p.onmouseout=p.onmouseover=p.onmousemove=p.point=null,O(e),e.clipPath&&y){let p=e.clipPath;[].forEach.call(y.querySelectorAll("[clip-path],[CLIP-PATH]"),function(e){e.getAttribute("clip-path").indexOf(p.element.id)>-1&&e.removeAttribute("clip-path")}),e.clipPath=p.destroy()}if(e.connector=e.connector?.destroy(),e.stops){for(L=0;Lp&&p.join?(x?e+" ":"")+p.join(" "):(p||"").toString(),"")),/(NaN| {2}|^$)/.test(e)&&(e="M 0 0"),this[p]!==e&&(x.setAttribute(p,e),this[p]=e)}fillSetter(e,p,x){"string"==typeof e?x.setAttribute(p,e):e&&this.complexColor(e,p,x)}hrefSetter(e,p,x){x.setAttributeNS("http://www.w3.org/1999/xlink",p,e)}getBBox(e,p){let x,y,b,E;let{alignValue:O,element:L,renderer:D,styles:j,textStr:R}=this,{cache:z,cacheKeys:F}=D,H=L.namespaceURI===this.SVG_NS,U=to(p,this.rotation,0),Y=D.styledMode?L&&I.prototype.getStyle.call(L,"font-size"):j.fontSize;if(q(R)&&(-1===(E=R.toString()).indexOf("<")&&(E=E.replace(/[0-9]/g,"0")),E+=["",D.rootFontSize,Y,U,this.textWidth,O,j.textOverflow,j.fontWeight].join(",")),E&&!e&&(x=z[E]),!x){if(H||D.forExport){try{b=this.fakeTS&&function(e){let p=L.querySelector(".highcharts-text-outline");p&&V(p,{display:e})},J(b)&&b("none"),x=L.getBBox?$({},L.getBBox()):{width:L.offsetWidth,height:L.offsetHeight,x:0,y:0},J(b)&&b("")}catch(e){}(!x||x.width<0)&&(x={x:0,y:0,width:0,height:0})}else x=this.htmlGetBBox();y=x.height,H&&(x.height=y=({"11px,17":14,"13px,20":16})[`${Y||""},${Math.round(y)}`]||y),U&&(x=this.getRotatedBox(x,U))}if(E&&(""===R||x.height>0)){for(;F.length>250;)delete z[F.shift()];z[E]||F.push(E),z[E]=x}return x}getRotatedBox(e,p){let{x:x,y:y,width:b,height:E}=e,{alignValue:O,translateY:D,rotationOriginX:j=0,rotationOriginY:R=0}=this,z={right:1,center:.5}[O||0]||0,F=Number(this.element.getAttribute("y")||0)-(D?0:y),H=p*L,U=(p-90)*L,Y=Math.cos(H),V=Math.sin(H),q=b*Y,K=b*V,$=Math.cos(U),_=Math.sin(U),[[Z,J],[tt,te]]=[j,R].map(e=>[e-e*Y,e*V]),ti=x+z*(b-q)+Z+te+F*$,ts=ti+q,to=ts-E*$,tr=to-q,tn=y+F-z*K-J+tt+F*_,ta=tn+K,tl=ta-E*_,th=tl-K,td=Math.min(ti,ts,to,tr),tc=Math.min(tn,ta,tl,th),tp=Math.max(ti,ts,to,tr)-td,tu=Math.max(tn,ta,tl,th)-tc;return{x:td,y:tc,width:tp,height:tu}}getStyle(e){return z.getComputedStyle(this.element||this,"").getPropertyValue(e)}hasClass(e){return -1!==(""+this.attr("class")).split(" ").indexOf(e)}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(e,p){this.onEvents={},this.opacity=1,this.SVG_NS=R,this.element="span"===p||"body"===p?U(p):D.createElementNS(this.SVG_NS,p),this.renderer=e,this.styles={},_(this,"afterInit")}on(e,p){let{onEvents:x}=this;return x[e]&&x[e](),x[e]=F(this.element,e,p),this}opacitySetter(e,p,x){let y=Number(Number(e).toFixed(3));this.opacity=y,x.setAttribute(p,y)}reAlign(){this.alignOptions?.width&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(e){return this.attr("class",(""+this.attr("class")).replace(te(e)?RegExp(`(^| )${e}( |$)`):e," ").replace(/ +/g," ").trim())}removeTextOutline(){let e=this.element.querySelector("tspan.highcharts-text-outline");e&&this.safeRemoveChild(e)}safeRemoveChild(e){let p=e.parentNode;p&&p.removeChild(e)}setRadialReference(e){let p=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=e,p&&p.radAttr&&p.animate(this.renderer.getRadialAttr(e,p.radAttr)),this}setTextPath(e,p){p=ti(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},p);let x=this.renderer.url,y=this.text||this,b=y.textPath,{attributes:E,enabled:O}=p;if(e=e||b&&b.path,b&&b.undo(),e&&O){let p=F(y,"afterModifyTree",p=>{if(e&&O){let b=e.attr("id");b||e.attr("id",b=th());let O={x:0,y:0};q(E.dx)&&(O.dx=E.dx,delete E.dx),q(E.dy)&&(O.dy=E.dy,delete E.dy),y.attr(O),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let L=p.nodes.slice(0);p.nodes.length=0,p.nodes[0]={tagName:"textPath",attributes:$(E,{"text-anchor":E.textAnchor,href:`${x}#${b}`}),children:L}}});y.textPath={path:e,undo:p}}else y.attr({dx:0,dy:0}),delete y.textPath;return this.added&&(y.textCache="",this.renderer.buildText(y)),this}shadow(e){let{renderer:p}=this,x=ti(this.parentGroup?.rotation===90?{offsetX:-1,offsetY:-1}:{},tt(e)?e:{}),y=p.shadowDefinition(x);return this.attr({filter:e?`url(${p.url}#${y})`:"none"})}show(e=!0){return this.attr({visibility:e?"inherit":"visible"})}"stroke-widthSetter"(e,p,x){this[p]=e,x.setAttribute(p,e)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let e=this.getStyle("stroke-width"),p=0,x;return/px$/.test(e)?p=tr(e):""!==e&&(H(x=D.createElementNS(R,"rect"),{width:e,"stroke-width":0}),this.element.parentNode.appendChild(x),p=x.getBBox().width,x.parentNode.removeChild(x)),p}symbolAttr(e){let p=this;I.symbolCustomAttribs.forEach(function(x){p[x]=to(e[x],p[x])}),p.attr({d:p.renderer.symbols[p.symbolName](p.x,p.y,p.width,p.height,p)})}textSetter(e){e!==this.textStr&&(delete this.textPxLength,this.textStr=e,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(e){let p=this.element,x=p.getElementsByTagName("title")[0]||D.createElementNS(this.SVG_NS,"title");p.insertBefore?p.insertBefore(x,p.firstChild):p.appendChild(x),x.textContent=ta(to(e,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let e=this.element;return e.parentNode.appendChild(e),this}translate(e,p){return this.attr({translateX:e,translateY:p})}updateTransform(e="transform"){let{element:p,matrix:x,rotation:y=0,rotationOriginX:b,rotationOriginY:E,scaleX:O,scaleY:L,translateX:D=0,translateY:j=0}=this,R=["translate("+D+","+j+")"];q(x)&&R.push("matrix("+x.join(",")+")"),y&&(R.push("rotate("+y+" "+to(b,p.getAttribute("x"),0)+" "+to(E,p.getAttribute("y")||0)+")"),this.text?.element.tagName==="SPAN"&&this.text.attr({rotation:y,rotationOriginX:(b||0)-this.padding,rotationOriginY:(E||0)-this.padding})),(q(O)||q(L))&&R.push("scale("+to(O,1)+" "+to(L,1)+")"),R.length&&!(this.text||this).textPath&&p.setAttribute(e,R.join(" "))}visibilitySetter(e,p,x){"inherit"===e?x.removeAttribute(p):this[p]!==e&&x.setAttribute(p,e),this[p]=e}xGetter(e){return"circle"===this.element.nodeName&&("x"===e?e="cx":"y"===e&&(e="cy")),this._defaultGetter(e)}zIndexSetter(e,p){let x=this.renderer,y=this.parentGroup,b=(y||x).element||x.box,E=this.element,O=b===x.box,L,D,j,R=!1,z,F=this.added,H;if(q(e)?(E.setAttribute("data-z-index",e),e=+e,this[p]===e&&(F=!1)):q(this[p])&&E.removeAttribute("data-z-index"),this[p]=e,F){for((e=this.zIndex)&&y&&(y.handleZ=!0),H=(L=b.childNodes).length-1;H>=0&&!R;H--)z=!q(j=(D=L[H]).getAttribute("data-z-index")),D!==E&&(e<0&&z&&!O&&!H?(b.insertBefore(E,L[H]),R=!0):(tr(j)<=e||z&&(!q(e)||e>=0))&&(b.insertBefore(E,L[H+1]),R=!0));R||(b.insertBefore(E,L[O?3:0]),R=!0)}return R}};return I.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],I.prototype.strokeSetter=I.prototype.fillSetter,I.prototype.yGetter=I.prototype.xGetter,I.prototype.matrixSetter=I.prototype.rotationOriginXSetter=I.prototype.rotationOriginYSetter=I.prototype.rotationSetter=I.prototype.scaleXSetter=I.prototype.scaleYSetter=I.prototype.translateXSetter=I.prototype.translateYSetter=I.prototype.verticalAlignSetter=function(e,p){this[p]=e,this.doTransform=!0},I}),x(p,"Core/Renderer/SVG/SVGLabel.js",[p["Core/Renderer/SVG/SVGElement.js"],p["Core/Utilities.js"]],function(e,p){let{defined:x,extend:y,isNumber:b,merge:E,pick:O,removeEvent:L}=p;let h=class h extends e{constructor(e,p,x,y,b,E,O,L,D,j){let R;super(e,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.textStr=p,this.x=x,this.y=y,this.anchorX=E,this.anchorY=O,this.baseline=D,this.className=j,this.addClass("button"===j?"highcharts-no-tooltip":"highcharts-label"),j&&this.addClass("highcharts-"+j),this.text=e.text(void 0,0,0,L).attr({zIndex:1}),"string"==typeof b&&((R=/^url\((.*?)\)$/.test(b))||this.renderer.symbols[b])&&(this.symbolKey=b),this.bBox=h.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=e.styledMode||R,this.deferredAttr={},this.alignFactor=0}alignSetter(e){let p={left:0,center:.5,right:1}[e];p!==this.alignFactor&&(this.alignFactor=p,this.bBox&&b(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(e,p){this.anchorX=e,this.boxAttr(p,Math.round(e)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(e,p){this.anchorY=e,this.boxAttr(p,e-this.ySetting)}boxAttr(e,p){this.box?this.box.attr(e,p):this.deferredAttr[e]=p}css(p){if(p){let e={};p=E(p),h.textProps.forEach(x=>{void 0!==p[x]&&(e[x]=p[x],delete p[x])}),this.text.css(e),"fontSize"in e||"fontWeight"in e?this.updateTextPadding():("width"in e||"textOverflow"in e)&&this.updateBoxSize()}return e.prototype.css.call(this,p)}destroy(){L(this.element,"mouseenter"),L(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),e.prototype.destroy.call(this)}fillSetter(e,p){e&&(this.needsBox=!0),this.fill=e,this.boxAttr(p,e)}getBBox(e,p){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();let{padding:x,height:y=0,translateX:b=0,translateY:E=0,width:L=0}=this,D=O(this.paddingLeft,x),j=p??(this.rotation||0),R={width:L,height:y,x:b+this.bBox.x-D,y:E+this.bBox.y-x+this.baselineOffset};return j&&(R=this.getRotatedBox(R,j)),R}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(e){this.heightSetting=e}onAdd(){this.text.add(this),this.attr({text:O(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&x(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(e,p){b(e)?e!==this[p]&&(this[p]=e,this.updateTextPadding()):this[p]=void 0}rSetter(e,p){this.boxAttr(p,e)}strokeSetter(e,p){this.stroke=e,this.boxAttr(p,e)}"stroke-widthSetter"(e,p){e&&(this.needsBox=!0),this["stroke-width"]=e,this.boxAttr(p,e)}"text-alignSetter"(e){this.textAlign=e}textSetter(e){void 0!==e&&this.text.attr({text:e}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let e;let p=this.text,E={},O=this.padding,L=this.bBox=(!b(this.widthSetting)||!b(this.heightSetting)||this.textAlign)&&x(p.textStr)?p.getBBox(void 0,0):h.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||L.height||0)+2*O;let D=this.renderer.fontMetrics(p);if(this.baselineOffset=O+Math.min((this.text.firstLineMetrics||D).b,L.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-D.h)/2),this.needsBox&&!p.textPath){if(!this.box){let e=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();e.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),e.add(this)}e=this.getCrispAdjust(),E.x=e,E.y=(this.baseline?-this.baselineOffset:0)+e,E.width=Math.round(this.width),E.height=Math.round(this.height),this.box.attr(y(E,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let e=this.text;if(!e.textPath){this.updateBoxSize();let p=this.baseline?0:this.baselineOffset,y=O(this.paddingLeft,this.padding);x(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(y+=({center:.5,right:1})[this.textAlign]*(this.widthSetting-this.bBox.width)),(y!==e.x||p!==e.y)&&(e.attr("x",y),e.hasBoxWidthChanged&&(this.bBox=e.getBBox(!0)),void 0!==p&&e.attr("y",p)),e.x=y,e.y=p}}widthSetter(e){this.widthSetting=b(e)?e:void 0}getPaddedWidth(){let e=this.padding,p=O(this.paddingLeft,e),x=O(this.paddingRight,e);return(this.widthSetting||this.bBox.width||0)+p+x}xSetter(e){this.x=e,this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(e),this.attr("translateX",this.xSetting)}ySetter(e){this.ySetting=this.y=Math.round(e),this.attr("translateY",this.ySetting)}};return h.emptyBBox={width:0,height:0,x:0,y:0},h.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],h}),x(p,"Core/Renderer/SVG/Symbols.js",[p["Core/Utilities.js"]],function(e){let{defined:p,isNumber:x,pick:y}=e;function b(e,x,b,E,O){let L=[];if(O){let D=O.start||0,j=y(O.r,b),R=y(O.r,E||b),z=2e-4/Math.max(j,1),F=Math.abs((O.end||0)-D-2*Math.PI)0&&R0)return z;if(e+j>y-D){if(R>p+D&&Rp+D&&R0){let x=Rb&&jD&&z.splice(1,1,["L",j-6,p],["L",j,p-6],["L",j+6,p],["L",y-L,p]);return z},circle:function(e,p,x,y){return b(e+x/2,p+y/2,x/2,y/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(e,p,x,y){return[["M",e+x/2,p],["L",e+x,p+y/2],["L",e+x/2,p+y],["L",e,p+y/2],["Z"]]},rect:E,roundedRect:O,square:E,triangle:function(e,p,x,y){return[["M",e+x/2,p],["L",e+x,p+y],["L",e,p+y],["Z"]]},"triangle-down":function(e,p,x,y){return[["M",e,p],["L",e+x,p],["L",e+x/2,p+y],["Z"]]}}}),x(p,"Core/Renderer/SVG/TextBuilder.js",[p["Core/Renderer/HTML/AST.js"],p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p,x){let{doc:y,SVG_NS:b,win:E}=p,{attr:O,extend:L,fireEvent:D,isString:j,objectEach:R,pick:z}=x;return class{constructor(e){let p=e.styles;this.renderer=e.renderer,this.svgElement=e,this.width=e.textWidth,this.textLineHeight=p&&p.lineHeight,this.textOutline=p&&p.textOutline,this.ellipsis=!!(p&&"ellipsis"===p.textOverflow),this.noWrap=!!(p&&"nowrap"===p.whiteSpace)}buildSVG(){let p=this.svgElement,x=p.element,b=p.renderer,E=z(p.textStr,"").toString(),O=-1!==E.indexOf("<"),L=x.childNodes,D=!p.added&&b.box,R=[E,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,p.getStyle("font-size"),this.width].join(",");if(R!==p.textCache){p.textCache=R,delete p.actualWidth;for(let e=L.length;e--;)x.removeChild(L[e]);if(O||this.ellipsis||this.width||p.textPath||-1!==E.indexOf(" ")&&(!this.noWrap||//g.test(E))){if(""!==E){D&&D.appendChild(x);let y=new e(E);this.modifyTree(y.nodes),y.addToDOM(x),this.modifyDOM(),this.ellipsis&&-1!==(x.textContent||"").indexOf("\u2026")&&p.attr("title",this.unescapeEntities(p.textStr||"",["<",">"])),D&&D.removeChild(x)}}else x.appendChild(y.createTextNode(this.unescapeEntities(E)));j(this.textOutline)&&p.applyTextOutline&&p.applyTextOutline(this.textOutline)}}modifyDOM(){let e;let p=this.svgElement,x=O(p.element,"x");for(p.firstLineMetrics=void 0;e=p.element.firstChild;)if(/^[\s\u200B]*$/.test(e.textContent||" "))p.element.removeChild(e);else break;[].forEach.call(p.element.querySelectorAll("tspan.highcharts-br"),(e,y)=>{e.nextSibling&&e.previousSibling&&(0===y&&1===e.previousSibling.nodeType&&(p.firstLineMetrics=p.renderer.fontMetrics(e.previousSibling)),O(e,{dy:this.getLineHeight(e.nextSibling),x:x}))});let L=this.width||0;if(!L)return;let D=(e,E)=>{let D=e.textContent||"",j=D.replace(/([^\^])-/g,"$1- ").split(" "),R=!this.noWrap&&(j.length>1||p.element.childNodes.length>1),z=this.getLineHeight(E),F=0,H=p.actualWidth;if(this.ellipsis)D&&this.truncate(e,D,void 0,0,Math.max(0,L-.8*z),(e,p)=>e.substring(0,p)+"\u2026");else if(R){let D=[],R=[];for(;E.firstChild&&E.firstChild!==e;)R.push(E.firstChild),E.removeChild(E.firstChild);for(;j.length;)j.length&&!this.noWrap&&F>0&&(D.push(e.textContent||""),e.textContent=j.join(" ").replace(/- /g,"-")),this.truncate(e,void 0,j,0===F&&H||0,L,(e,p)=>j.slice(0,p).join(" ").replace(/- /g,"-")),H=p.actualWidth,F++;R.forEach(p=>{E.insertBefore(p,e)}),D.forEach(p=>{E.insertBefore(y.createTextNode(p),e);let L=y.createElementNS(b,"tspan");L.textContent="\u200B",O(L,{dy:z,x:x}),E.insertBefore(L,e)})}},j=e=>{[].slice.call(e.childNodes).forEach(x=>{x.nodeType===E.Node.TEXT_NODE?D(x,e):(-1!==x.className.baseVal.indexOf("highcharts-br")&&(p.actualWidth=0),j(x))})};j(p.element)}getLineHeight(e){let p=e.nodeType===E.Node.TEXT_NODE?e.parentElement:e;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(p||this.svgElement.element).h}modifyTree(e){let p=(x,y)=>{let{attributes:b={},children:E,style:O={},tagName:D}=x,j=this.renderer.styledMode;if("b"===D||"strong"===D?j?b.class="highcharts-strong":O.fontWeight="bold":("i"===D||"em"===D)&&(j?b.class="highcharts-emphasized":O.fontStyle="italic"),O&&O.color&&(O.fill=O.color),"br"===D){b.class="highcharts-br",x.textContent="\u200B";let p=e[y+1];p&&p.textContent&&(p.textContent=p.textContent.replace(/^ +/gm,""))}else"a"===D&&E&&E.some(e=>"#text"===e.tagName)&&(x.children=[{children:E,tagName:"tspan"}]);"#text"!==D&&"a"!==D&&(x.tagName="tspan"),L(x,{attributes:b,style:O}),E&&E.filter(e=>"#text"!==e.tagName).forEach(p)};e.forEach(p),D(this.svgElement,"afterModifyTree",{nodes:e})}truncate(e,p,x,y,b,E){let O,L;let D=this.svgElement,{rotation:j}=D,R=[],z=x?1:0,F=(p||x||"").length,H=F,U=function(p,b){let E=b||p,O=e.parentNode;if(O&&void 0===R[E]&&O.getSubStringLength)try{R[E]=y+O.getSubStringLength(0,x?E+1:E)}catch(e){}return R[E]};if(D.rotation=0,y+(L=U(e.textContent.length))>b){for(;z<=F;)H=Math.ceil((z+F)/2),x&&(O=E(x,H)),L=U(H,O&&O.length-1),z===F?z=F+1:L>b?F=H-1:z=H;0===F?e.textContent="":p&&F===p.length-1||(e.textContent=O||E(p||x,H))}x&&x.splice(0,H),D.actualWidth=L,D.rotation=j}unescapeEntities(e,p){return R(this.renderer.escapes,function(x,y){p&&-1!==p.indexOf(x)||(e=e.toString().replace(RegExp(x,"g"),y))}),e}}}),x(p,"Core/Renderer/SVG/SVGRenderer.js",[p["Core/Renderer/HTML/AST.js"],p["Core/Defaults.js"],p["Core/Color/Color.js"],p["Core/Globals.js"],p["Core/Renderer/RendererRegistry.js"],p["Core/Renderer/SVG/SVGElement.js"],p["Core/Renderer/SVG/SVGLabel.js"],p["Core/Renderer/SVG/Symbols.js"],p["Core/Renderer/SVG/TextBuilder.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E,O,L,D,j){let R;let{defaultOptions:z}=p,{charts:F,deg2rad:H,doc:U,isFirefox:Y,isMS:V,isWebKit:q,noop:K,SVG_NS:$,symbolSizes:_,win:Z}=y,{addEvent:J,attr:tt,createElement:te,crisp:ti,css:ts,defined:to,destroyObjectProperties:tr,extend:tn,isArray:ta,isNumber:tl,isObject:th,isString:td,merge:tc,pick:tp,pInt:tu,replaceNested:tg,uniqueKey:tm}=j;let W=class W{constructor(e,p,x,y,b,E,O){let L,D;let j=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),R=j.element;O||j.css(this.getStyle(y||{})),e.appendChild(R),tt(e,"dir","ltr"),-1===e.innerHTML.indexOf("xmlns")&&tt(R,"xmlns",this.SVG_NS),this.box=R,this.boxWrapper=j,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(U.createTextNode("Created with Highcharts 11.4.3")),this.defs=this.createElement("defs").add(),this.allowHTML=E,this.forExport=b,this.styledMode=O,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=j.getStyle("font-size"),this.setSize(p,x,!1),Y&&e.getBoundingClientRect&&((L=function(){ts(e,{left:0,top:0}),D=e.getBoundingClientRect(),ts(e,{left:Math.ceil(D.left)-D.left+"px",top:Math.ceil(D.top)-D.top+"px"})})(),this.unSubPixelFix=J(Z,"resize",L))}definition(p){return new e([p]).addToDOM(this.defs.element)}getReferenceURL(){if((Y||q)&&U.getElementsByTagName("base").length){if(!to(R)){let p=tm(),x=new e([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:p},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${p})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(U.body);ts(x,{position:"fixed",top:0,left:0,zIndex:9e5});let y=U.elementFromPoint(6,6);R="hitme"===(y&&y.id),U.body.removeChild(x)}if(R)return tg(Z.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(e){return this.style=tn({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},e),this.style}setStyle(e){this.boxWrapper.css(this.getStyle(e))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),tr(this.gradients||{}),this.gradients=null,this.defs=e.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(e){return new this.Element(this,e)}getRadialAttr(e,p){return{cx:e[0]-e[2]/2+(p.cx||0)*e[2],cy:e[1]-e[2]/2+(p.cy||0)*e[2],r:(p.r||0)*e[2]}}shadowDefinition(e){let p=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(e).map(p=>`${p}-${e[p]}`)].join("-").toLowerCase().replace(/[^a-z0-9\-]/g,""),x=tc({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},e);return this.defs.element.querySelector(`#${p}`)||this.definition({tagName:"filter",attributes:{id:p,filterUnits:x.filterUnits},children:[{tagName:"feDropShadow",attributes:{dx:x.offsetX,dy:x.offsetY,"flood-color":x.color,"flood-opacity":Math.min(5*x.opacity,1),stdDeviation:x.width/2}}]}),p}buildText(e){new D(e).buildSVG()}getContrast(e){let p=x.parse(e).rgba.map(e=>{let p=e/255;return p<=.03928?p/12.92:Math.pow((p+.055)/1.055,2.4)}),y=.2126*p[0]+.7152*p[1]+.0722*p[2];return 1.05/(y+.05)>(y+.05)/.05?"#FFFFFF":"#000000"}button(p,x,y,b,E={},O,L,D,j,R){let F=this.label(p,x,y,j,void 0,void 0,R,void 0,"button"),H=this.styledMode,U=arguments,Y=0;E=tc(z.global.buttonTheme,E),H&&(delete E.fill,delete E.stroke,delete E["stroke-width"]);let q=E.states||{},K=E.style||{};delete E.states,delete E.style;let $=[e.filterUserAttributes(E)],_=[K];return H||["hover","select","disabled"].forEach((p,x)=>{$.push(tc($[0],e.filterUserAttributes(U[x+5]||q[p]||{}))),_.push($[x+1].style),delete $[x+1].style}),J(F.element,V?"mouseover":"mouseenter",function(){3!==Y&&F.setState(1)}),J(F.element,V?"mouseout":"mouseleave",function(){3!==Y&&F.setState(Y)}),F.setState=(e=0)=>{if(1!==e&&(F.state=Y=e),F.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][e]),!H){F.attr($[e]);let p=_[e];th(p)&&F.css(p)}},F.attr($[0]),!H&&(F.css(tn({cursor:"default"},K)),R&&F.text.css({pointerEvents:"none"})),F.on("touchstart",e=>e.stopPropagation()).on("click",function(e){3!==Y&&b.call(F,e)})}crispLine(e,p){let[x,y]=e;return to(x[1])&&x[1]===y[1]&&(x[1]=y[1]=ti(x[1],p)),to(x[2])&&x[2]===y[2]&&(x[2]=y[2]=ti(x[2],p)),e}path(e){let p=this.styledMode?{}:{fill:"none"};return ta(e)?p.d=e:th(e)&&tn(p,e),this.createElement("path").attr(p)}circle(e,p,x){let y=th(e)?e:void 0===e?{}:{x:e,y:p,r:x},b=this.createElement("circle");return b.xSetter=b.ySetter=function(e,p,x){x.setAttribute("c"+p,e)},b.attr(y)}arc(e,p,x,y,b,E){let O;th(e)?(p=(O=e).y,x=O.r,y=O.innerR,b=O.start,E=O.end,e=O.x):O={innerR:y,start:b,end:E};let L=this.symbol("arc",e,p,x,x,O);return L.r=x,L}rect(e,p,x,y,b,E){let O=th(e)?e:void 0===e?{}:{x:e,y:p,r:b,width:Math.max(x||0,0),height:Math.max(y||0,0)},L=this.createElement("rect");return this.styledMode||(void 0!==E&&(O["stroke-width"]=E,tn(O,L.crisp(O))),O.fill="none"),L.rSetter=function(e,p,x){L.r=e,tt(x,{rx:e,ry:e})},L.rGetter=function(){return L.r||0},L.attr(O)}roundedRect(e){return this.symbol("roundedRect").attr(e)}setSize(e,p,x){this.width=e,this.height=p,this.boxWrapper.animate({width:e,height:p},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:tp(x,!0)?void 0:0}),this.alignElements()}g(e){let p=this.createElement("g");return e?p.attr({class:"highcharts-"+e}):p}image(e,p,x,y,b,E){let O={preserveAspectRatio:"none"};tl(p)&&(O.x=p),tl(x)&&(O.y=x),tl(y)&&(O.width=y),tl(b)&&(O.height=b);let L=this.createElement("image").attr(O),D=function(p){L.attr({href:e}),E.call(L,p)};if(E){L.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let p=new Z.Image;J(p,"load",D),p.src=e,p.complete&&D({})}else L.attr({href:e});return L}symbol(e,p,x,y,b,E){let O,L,D,j;let R=this,z=/^url\((.*?)\)$/,H=z.test(e),Y=!H&&(this.symbols[e]?e:"circle"),V=Y&&this.symbols[Y];if(V)"number"==typeof p&&(L=V.call(this.symbols,p||0,x||0,y||0,b||0,E)),O=this.path(L),R.styledMode||O.attr("fill","none"),tn(O,{symbolName:Y||void 0,x:p,y:x,width:y,height:b}),E&&tn(O,E);else if(H){D=e.match(z)[1];let y=O=this.image(D);y.imgwidth=tp(E&&E.width,_[D]&&_[D].width),y.imgheight=tp(E&&E.height,_[D]&&_[D].height),j=e=>e.attr({width:e.width,height:e.height}),["width","height"].forEach(e=>{y[`${e}Setter`]=function(e,p){this[p]=e;let{alignByTranslate:x,element:y,width:b,height:O,imgwidth:L,imgheight:D}=this,j="width"===p?L:D,R=1;E&&"within"===E.backgroundSize&&b&&O&&L&&D?(R=Math.min(b/L,O/D),tt(y,{width:Math.round(L*R),height:Math.round(D*R)})):y&&j&&y.setAttribute(p,j),!x&&L&&D&&this.translate(((b||0)-L*R)/2,((O||0)-D*R)/2)}}),to(p)&&y.attr({x:p,y:x}),y.isImg=!0,to(y.imgwidth)&&to(y.imgheight)?j(y):(y.attr({width:0,height:0}),te("img",{onload:function(){let e=F[R.chartIndex];0===this.width&&(ts(this,{position:"absolute",top:"-999em"}),U.body.appendChild(this)),_[D]={width:this.width,height:this.height},y.imgwidth=this.width,y.imgheight=this.height,y.element&&j(y),this.parentNode&&this.parentNode.removeChild(this),R.imgCount--,R.imgCount||!e||e.hasLoaded||e.onload()},src:D}),this.imgCount++)}return O}clipRect(e,p,x,y){return this.rect(e,p,x,y,0)}text(e,p,x,y){let b={};if(y&&(this.allowHTML||!this.forExport))return this.html(e,p,x);b.x=Math.round(p||0),x&&(b.y=Math.round(x)),to(e)&&(b.text=e);let E=this.createElement("text").attr(b);return y&&(!this.forExport||this.allowHTML)||(E.xSetter=function(e,p,x){let y=x.getElementsByTagName("tspan"),b=x.getAttribute(p);for(let x=0,E;xe.align())}};return tn(W.prototype,{Element:E,SVG_NS:$,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:L,draw:K}),b.registerRendererType("svg",W,!0),W}),x(p,"Core/Renderer/HTML/HTMLElement.js",[p["Core/Renderer/HTML/AST.js"],p["Core/Globals.js"],p["Core/Renderer/SVG/SVGElement.js"],p["Core/Utilities.js"]],function(e,p,x,y){let{composed:b}=p,{attr:E,css:O,createElement:L,defined:D,extend:j,pInt:R,pushUnique:z}=y;function F(e,p,y){let b=this.div?.style||y.style;x.prototype[`${p}Setter`].call(this,e,p,y),b&&(b[p]=e)}let H=(e,p)=>{if(!e.div){let y=E(e.element,"class"),b=e.css,O=L("div",y?{className:y}:void 0,{position:"absolute",left:`${e.translateX||0}px`,top:`${e.translateY||0}px`,...e.styles,display:e.display,opacity:e.opacity,visibility:e.visibility},e.parentGroup?.div||p);e.classSetter=(e,p,x)=>{x.setAttribute("class",e),O.className=e},e.translateXSetter=e.translateYSetter=(p,x)=>{e[x]=p,O.style["translateX"===x?"left":"top"]=`${p}px`,e.doTransform=!0},e.opacitySetter=e.visibilitySetter=F,e.css=p=>(b.call(e,p),p.cursor&&(O.style.cursor=p.cursor),p.pointerEvents&&(O.style.pointerEvents=p.pointerEvents),e),e.on=function(){return x.prototype.on.apply({element:O,onEvents:e.onEvents},arguments),e},e.div=O}return e.div};let g=class g extends x{static compose(e){z(b,this.compose)&&(e.prototype.html=function(e,p,x){return new g(this,"span").attr({text:e,x:Math.round(p),y:Math.round(x)})})}constructor(e,p){super(e,p),this.css({position:"absolute",...e.styledMode?{}:{fontFamily:e.style.fontFamily,fontSize:e.style.fontSize}}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(e,p,x){this.xCorr=-e*x,this.yCorr=-p}css(e){let p;let{element:x}=this,y="SPAN"===x.tagName&&e&&"width"in e,b=y&&e.width;return y&&(delete e.width,this.textWidth=R(b)||void 0,p=!0),e?.textOverflow==="ellipsis"&&(e.whiteSpace="nowrap",e.overflow="hidden"),j(this.styles,e),O(x,e),p&&this.updateTransform(),this}htmlGetBBox(){let{element:e}=this;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}updateTransform(){if(!this.added){this.alignOnAdd=!0;return}let{element:e,renderer:p,rotation:x,rotationOriginX:y,rotationOriginY:b,styles:E,textAlign:L="left",textWidth:j,translateX:R=0,translateY:z=0,x:F=0,y:H=0}=this,U=E.whiteSpace;if(O(e,{marginLeft:`${R}px`,marginTop:`${z}px`}),"SPAN"===e.tagName){let E=[x,L,e.innerHTML,j,this.textAlign].join(","),R=-(this.parentGroup?.padding*1)||0,z,Y=!1;if(j!==this.oldTextWidth){let p=this.textPxLength?this.textPxLength:(O(e,{width:"",whiteSpace:U||"nowrap"}),e.offsetWidth),y=j||0;(y>this.oldTextWidth||p>y)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(O(e,{width:p>y||x?j+"px":"auto",display:"block",whiteSpace:U||"normal"}),this.oldTextWidth=j,Y=!0)}this.hasBoxWidthChanged=Y,E!==this.cTT&&(z=p.fontMetrics(e).b,D(x)&&(x!==(this.oldRotation||0)||L!==this.oldAlign)&&this.setSpanRotation(x,R,R),this.getSpanCorrection(!D(x)&&this.textPxLength||e.offsetWidth,z,{left:0,center:.5,right:1}[L]));let{xCorr:V=0,yCorr:q=0}=this,K=(y??F)-V-F-R,$=(b??H)-q-H-R;O(e,{left:`${F+V}px`,top:`${H+q}px`,transformOrigin:`${K}px ${$}px`}),this.cTT=E,this.oldRotation=x,this.oldAlign=L}}setSpanRotation(e,p,x){O(this.element,{transform:`rotate(${e}deg)`,transformOrigin:`${p}% ${x}px`})}add(e){let p;let x=this.renderer.box.parentNode,y=[];if(this.parentGroup=e,e&&!(p=e.div)){let b=e;for(;b;)y.push(b),b=b.parentGroup;for(let e of y.reverse())p=H(e,x)}return(p||x).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(p){p!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,e.setElementHTML(this.element,p??""),this.textStr=p,this.doTransform=!0)}alignSetter(e){this.alignValue=this.textAlign=e,this.doTransform=!0}xSetter(e,p){this[p]=e,this.doTransform=!0}};let U=g.prototype;return U.visibilitySetter=U.opacitySetter=F,U.ySetter=U.rotationSetter=U.rotationOriginXSetter=U.rotationOriginYSetter=U.xSetter,g}),x(p,"Core/Axis/AxisDefaults.js",[],function(){var e,p;return(p=e||(e={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},p.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:e}=this.axis.chart;return e(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},e}),x(p,"Core/Foundation.js",[p["Core/Utilities.js"]],function(e){var p;let{addEvent:x,isFunction:y,objectEach:b,removeEvent:E}=e;return(p||(p={})).registerEventOptions=function(e,p){e.eventOptions=e.eventOptions||{},b(p.events,function(p,b){e.eventOptions[b]!==p&&(e.eventOptions[b]&&(E(e,b,e.eventOptions[b]),delete e.eventOptions[b]),y(p)&&(e.eventOptions[b]=p,x(e,b,p,{order:0})))})},p}),x(p,"Core/Axis/Tick.js",[p["Core/Templating.js"],p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p,x){let{deg2rad:y}=p,{clamp:b,correctFloat:E,defined:O,destroyObjectProperties:L,extend:D,fireEvent:j,isNumber:R,merge:z,objectEach:F,pick:H}=x;return class{constructor(e,p,x,y,b){this.isNew=!0,this.isNewLabel=!0,this.axis=e,this.pos=p,this.type=x||"",this.parameters=b||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,j(this,"init"),x||y||this.addLabel()}addLabel(){let p=this,x=p.axis,y=x.options,b=x.chart,L=x.categories,z=x.logarithmic,F=x.names,U=p.pos,Y=H(p.options&&p.options.labels,y.labels),V=x.tickPositions,q=U===V[0],K=U===V[V.length-1],$=(!Y.step||1===Y.step)&&1===x.tickInterval,_=V.info,Z=p.label,J,tt,te,ti=this.parameters.category||(L?H(L[U],F[U],U):U);z&&R(ti)&&(ti=E(z.lin2log(ti))),x.dateTime&&(_?J=(tt=b.time.resolveDTLFormat(y.dateTimeLabelFormats[!y.grid&&_.higherRanks[U]||_.unitName])).main:R(ti)&&(J=x.dateTime.getXDateFormat(ti,y.dateTimeLabelFormats||{}))),p.isFirst=q,p.isLast=K;let ts={axis:x,chart:b,dateTimeLabelFormat:J,isFirst:q,isLast:K,pos:U,tick:p,tickPositionInfo:_,value:ti};j(this,"labelFormat",ts);let to=p=>Y.formatter?Y.formatter.call(p,p):Y.format?(p.text=x.defaultLabelFormatter.call(p),e.format(Y.format,p,b)):x.defaultLabelFormatter.call(p),tr=to.call(ts,ts),tn=tt&&tt.list;tn?p.shortenLabel=function(){for(te=0;te0&&b+z*F>D&&(_=Math.round((E-b)/Math.cos(R*y))):(K=b-z*F,$=b+(1-z)*F,KD&&(V=D-e.x+V*z,q=-1),(V=Math.min(U,V))V||p.autoRotation&&(j.styles||{}).width)&&(_=V)),_&&(this.shortenLabel?this.shortenLabel():(Y.width=Math.floor(_)+"px",(x.style||{}).textOverflow||(Y.textOverflow="ellipsis"),j.css(Y)))}moveLabel(e,p){let x=this,y=x.label,b=x.axis,E=!1,O;y&&y.textStr===e?(x.movedLabel=y,E=!0,delete x.label):F(b.ticks,function(p){E||p.isNew||p===x||!p.label||p.label.textStr!==e||(x.movedLabel=p.label,E=!0,p.labelPos=x.movedLabel.xy,delete p.label)}),!E&&(x.labelPos||y)&&(O=x.labelPos||y.xy,x.movedLabel=x.createLabel(e,p,O),x.movedLabel&&x.movedLabel.attr({opacity:0}))}render(e,p,x){let y=this.axis,b=y.horiz,O=this.pos,L=H(this.tickmarkOffset,y.tickmarkOffset),D=this.getPosition(b,O,L,p),R=D.x,z=D.y,F=y.pos,U=F+y.len,Y=b?R:z;!y.chart.polar&&this.isNew&&(E(Y)U)&&(x=0);let V=H(x,this.label&&this.label.newOpacity,1);x=H(x,1),this.isActive=!0,this.renderGridLine(p,x),this.renderMark(D,x),this.renderLabel(D,p,V,e),this.isNew=!1,j(this,"afterRender")}renderGridLine(e,p){let x=this.axis,y=x.options,b={},E=this.pos,O=this.type,L=H(this.tickmarkOffset,x.tickmarkOffset),D=x.chart.renderer,j=this.gridLine,R,z=y.gridLineWidth,F=y.gridLineColor,U=y.gridLineDashStyle;"minor"===this.type&&(z=y.minorGridLineWidth,F=y.minorGridLineColor,U=y.minorGridLineDashStyle),j||(x.chart.styledMode||(b.stroke=F,b["stroke-width"]=z||0,b.dashstyle=U),O||(b.zIndex=1),e&&(p=0),this.gridLine=j=D.path().attr(b).addClass("highcharts-"+(O?O+"-":"")+"grid-line").add(x.gridGroup)),j&&(R=x.getPlotLinePath({value:E+L,lineWidth:j.strokeWidth(),force:"pass",old:e,acrossPanes:!1}))&&j[e||this.isNew?"attr":"animate"]({d:R,opacity:p})}renderMark(e,p){let x=this.axis,y=x.options,b=x.chart.renderer,E=this.type,O=x.tickSize(E?E+"Tick":"tick"),L=e.x,D=e.y,j=H(y["minor"!==E?"tickWidth":"minorTickWidth"],!E&&x.isXAxis?1:0),R=y["minor"!==E?"tickColor":"minorTickColor"],z=this.mark,F=!z;O&&(x.opposite&&(O[0]=-O[0]),z||(this.mark=z=b.path().addClass("highcharts-"+(E?E+"-":"")+"tick").add(x.axisGroup),x.chart.styledMode||z.attr({stroke:R,"stroke-width":j})),z[F?"attr":"animate"]({d:this.getMarkPath(L,D,O[0],z.strokeWidth(),x.horiz,b),opacity:p}))}renderLabel(e,p,x,y){let b=this.axis,E=b.horiz,O=b.options,L=this.label,D=O.labels,j=D.step,z=H(this.tickmarkOffset,b.tickmarkOffset),F=e.x,U=e.y,Y=!0;L&&R(F)&&(L.xy=e=this.getLabelPosition(F,U,L,E,D,z,y,j),(!this.isFirst||this.isLast||O.showFirstLabel)&&(!this.isLast||this.isFirst||O.showLastLabel)?!E||D.step||D.rotation||p||0===x||this.handleOverflow(e):Y=!1,j&&y%j&&(Y=!1),Y&&R(e.y)?(e.opacity=x,L[this.isNewLabel?"attr":"animate"](e).show(!0),this.isNewLabel=!1):(L.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let e=this.label,p=this.axis;e&&!this.isNew&&(e.animate({opacity:0},void 0,e.destroy),delete this.label),p.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}}),x(p,"Core/Axis/Axis.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Axis/AxisDefaults.js"],p["Core/Color/Color.js"],p["Core/Defaults.js"],p["Core/Foundation.js"],p["Core/Globals.js"],p["Core/Axis/Tick.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E,O,L){let{animObject:D}=e,{xAxis:j,yAxis:R}=p,{defaultOptions:z}=y,{registerEventOptions:F}=b,{deg2rad:H}=E,{arrayMax:U,arrayMin:Y,clamp:V,correctFloat:q,defined:K,destroyObjectProperties:$,erase:_,error:Z,extend:J,fireEvent:tt,getClosestDistance:te,insertItem:ti,isArray:ts,isNumber:to,isString:tr,merge:tn,normalizeTickInterval:ta,objectEach:tl,pick:th,relativeLength:td,removeEvent:tc,splat:tp,syncTimeout:tu}=L,tg=(e,p)=>ta(p,void 0,void 0,th(e.options.allowDecimals,p<.5||void 0!==e.tickAmount),!!e.tickAmount);J(z,{xAxis:j,yAxis:tn(j,R)});let N=class N{constructor(e,p,x){this.init(e,p,x)}init(e,p,x=this.coll){let y="xAxis"===x,b=this.isZAxis||(e.inverted?!y:y);this.chart=e,this.horiz=b,this.isXAxis=y,this.coll=x,tt(this,"init",{userOptions:p}),this.opposite=th(p.opposite,this.opposite),this.side=th(p.side,this.side,b?this.opposite?0:2:this.opposite?1:3),this.setOptions(p);let E=this.options,O=E.labels,L=E.type;this.userOptions=p,this.minPixelPadding=0,this.reversed=th(E.reversed,this.reversed),this.visible=E.visible,this.zoomEnabled=E.zoomEnabled,this.hasNames="category"===L||!0===E.categories,this.categories=ts(E.categories)&&E.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=K(E.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=E.minRange||E.maxZoom,this.range=E.range,this.offset=E.offset||0,this.max=void 0,this.min=void 0;let D=th(E.crosshair,tp(e.options.tooltip.crosshairs)[y?0:1]);this.crosshair=!0===D?{}:D,-1===e.axes.indexOf(this)&&(y?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),ti(this,e[this.coll])),e.orderItems(this.coll),this.series=this.series||[],e.inverted&&!this.isZAxis&&y&&!K(this.reversed)&&(this.reversed=!0),this.labelRotation=to(O.rotation)?O.rotation:void 0,F(this,E),tt(this,"afterInit")}setOptions(e){let p=this.horiz?{labels:{autoRotation:[-45],padding:4},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=tn(p,z[this.coll],e),tt(this,"afterSetOptions",{userOptions:e})}defaultLabelFormatter(){let e=this.axis,{numberFormatter:p}=this.chart,x=to(this.value)?this.value:NaN,y=e.chart.time,b=e.categories,E=this.dateTimeLabelFormat,O=z.lang,L=O.numericSymbols,D=O.numericSymbolMagnitude||1e3,j=e.logarithmic?Math.abs(x):e.tickInterval,R=L&&L.length,F,H;if(b)H=`${this.value}`;else if(E)H=y.dateFormat(E,x);else if(R&&L&&j>=1e3)for(;R--&&void 0===H;)j>=(F=Math.pow(D,R+1))&&10*x%F==0&&null!==L[R]&&0!==x&&(H=p(x/F,-1)+L[R]);return void 0===H&&(H=Math.abs(x)>=1e4?p(x,-1):p(x,-1,void 0,"")),H}getSeriesExtremes(){let e;let p=this;tt(this,"getSeriesExtremes",null,function(){p.hasVisibleSeries=!1,p.dataMin=p.dataMax=p.threshold=void 0,p.softThreshold=!p.isXAxis,p.series.forEach(x=>{if(x.reserveSpace()){let y=x.options,b,E=y.threshold,O,L;if(p.hasVisibleSeries=!0,p.positiveValuesOnly&&0>=(E||0)&&(E=void 0),p.isXAxis)(b=x.xData)&&b.length&&(b=p.logarithmic?b.filter(e=>e>0):b,O=(e=x.getXExtremes(b)).min,L=e.max,to(O)||O instanceof Date||(b=b.filter(to),O=(e=x.getXExtremes(b)).min,L=e.max),b.length&&(p.dataMin=Math.min(th(p.dataMin,O),O),p.dataMax=Math.max(th(p.dataMax,L),L)));else{let e=x.applyExtremes();to(e.dataMin)&&(O=e.dataMin,p.dataMin=Math.min(th(p.dataMin,O),O)),to(e.dataMax)&&(L=e.dataMax,p.dataMax=Math.max(th(p.dataMax,L),L)),K(E)&&(p.threshold=E),(!y.softThreshold||p.positiveValuesOnly)&&(p.softThreshold=!1)}}})}),tt(this,"afterGetSeriesExtremes")}translate(e,p,x,y,b,E){let O=this.linkedParent||this,L=y&&O.old?O.old.min:O.min;if(!to(L))return NaN;let D=O.minPixelPadding,j=(O.isOrdinal||O.brokenAxis?.hasBreaks||O.logarithmic&&b)&&O.lin2val,R=1,z=0,F=y&&O.old?O.old.transA:O.transA,H=0;return F||(F=O.transA),x&&(R*=-1,z=O.len),O.reversed&&(R*=-1,z-=R*(O.sector||O.len)),p?(H=(e=e*R+z-D)/F+L,j&&(H=O.lin2val(H))):(j&&(e=O.val2lin(e)),H=R*(e-L)*F+z+R*D+(to(E)?F*E:0),O.isRadial||(H=q(H))),H}toPixels(e,p){return this.translate(e,!1,!this.horiz,void 0,!0)+(p?0:this.pos)}toValue(e,p){return this.translate(e-(p?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(e){let p=this,x=p.chart,y=p.left,b=p.top,E=e.old,O=e.value,L=e.lineWidth,D=E&&x.oldChartHeight||x.chartHeight,j=E&&x.oldChartWidth||x.chartWidth,R=p.transB,z=e.translatedValue,F=e.force,H,U,Y,q,K;function $(e,p,x){return"pass"!==F&&(ex)&&(F?e=V(e,p,x):K=!0),e}let _={value:O,lineWidth:L,old:E,force:F,acrossPanes:e.acrossPanes,translatedValue:z};return tt(this,"getPlotLinePath",_,function(e){H=Y=(z=V(z=th(z,p.translate(O,void 0,void 0,E)),-1e5,1e5))+R,U=q=D-z-R,to(z)?p.horiz?(U=b,q=D-p.bottom+(x.scrollablePixelsY||0),H=Y=$(H,y,y+p.width)):(H=y,Y=j-p.right+(x.scrollablePixelsX||0),U=q=$(U,b,b+p.height)):(K=!0,F=!1),e.path=K&&!F?void 0:x.renderer.crispLine([["M",H,U],["L",Y,q]],L||1)}),_.path}getLinearTickPositions(e,p,x){let y,b,E;let O=q(Math.floor(p/e)*e),L=q(Math.ceil(x/e)*e),D=[];if(q(O+e)===O&&(E=20),this.single)return[p];for(y=O;y<=L&&(D.push(y),(y=q(y+e,E))!==b);)b=y;return D}getMinorTickInterval(){let{minorTicks:e,minorTickInterval:p}=this.options;return!0===e?th(p,"auto"):!1!==e?p:void 0}getMinorTickPositions(){let e=this.options,p=this.tickPositions,x=this.minorTickInterval,y=this.pointRangePadding||0,b=(this.min||0)-y,E=(this.max||0)+y,O=E-b,L=[],D;if(O&&O/x(e.xIncrement?e.xData?.slice(0,2):e.xData)||[]))||0),this.dataMax-this.dataMin)),to(x)&&to(y)&&to(b)&&x-y=b,E=(b-x+y)/2,L=[y-E,th(e.min,y-E)],O&&(L[2]=p?p.log2lin(this.dataMin):this.dataMin),D=[(y=U(L))+b,th(e.max,y+b)],O&&(D[2]=p?p.log2lin(this.dataMax):this.dataMax),(x=Y(D))-ye-p),e=te([x]))}return e&&p?Math.min(e,p):e||p}nameToX(e){let p=ts(this.options.categories),x=p?this.categories:this.names,y=e.options.x,b;return e.series.requireSorting=!1,K(y)||(y=this.options.uniqueNames&&x?p?x.indexOf(e.name):th(x.keys[e.name],-1):e.series.autoIncrement()),-1===y?!p&&x&&(b=x.length):b=y,void 0!==b?(this.names[b]=e.name,this.names.keys[e.name]=b):e.x&&(b=e.x),b}updateNames(){let e=this,p=this.names;p.length>0&&(Object.keys(p.keys).forEach(function(e){delete p.keys[e]}),p.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(p=>{p.xIncrement=null,(!p.points||p.isDirtyData)&&(e.max=Math.max(e.max,p.xData.length-1),p.processData(),p.generatePoints()),p.data.forEach(function(x,y){let b;x?.options&&void 0!==x.name&&void 0!==(b=e.nameToX(x))&&b!==x.x&&(x.x=b,p.xData[y]=b)})}))}setAxisTranslation(){let e=this,p=e.max-e.min,x=e.linkedParent,y=!!e.categories,b=e.isXAxis,E=e.axisPointRange||0,O,L=0,D=0,j,R=e.transA;(b||y||E)&&(O=e.getClosest(),x?(L=x.minPointOffset,D=x.pointRangePadding):e.series.forEach(function(p){let x=y?1:b?th(p.options.pointRange,O,0):e.axisPointRange||0,j=p.options.pointPlacement;if(E=Math.max(E,x),!e.single||y){let e=p.is("xrange")?!b:b;L=Math.max(L,e&&tr(j)?0:x/2),D=Math.max(D,e&&"on"===j?0:x)}}),j=e.ordinal&&e.ordinal.slope&&O?e.ordinal.slope/O:1,e.minPointOffset=L*=j,e.pointRangePadding=D*=j,e.pointRange=Math.min(E,e.single&&y?1:p),b&&O&&(e.closestPointRange=O)),e.translationSlope=e.transA=R=e.staticScale||e.len/(p+D||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=R*L,tt(this,"afterSetAxisTranslation")}minFromRange(){let{max:e,min:p}=this;return to(e)&&to(p)&&e-p||void 0}setTickInterval(e){let{categories:p,chart:x,dataMax:y,dataMin:b,dateTime:E,isXAxis:O,logarithmic:L,options:D,softThreshold:j}=this,R=to(this.threshold)?this.threshold:void 0,z=this.minRange||0,{ceiling:F,floor:H,linkedTo:U,softMax:Y,softMin:V}=D,$=to(U)&&x[this.coll]?.[U],_=D.tickPixelInterval,J=D.maxPadding,te=D.minPadding,ti=0,ts,tr=to(D.tickInterval)&&D.tickInterval>=0?D.tickInterval:void 0,tn,ta,tl,td;if(E||p||$||this.getTickAmount(),tl=th(this.userMin,D.min),td=th(this.userMax,D.max),$?(this.linkedParent=$,ts=$.getExtremes(),this.min=th(ts.min,ts.dataMin),this.max=th(ts.max,ts.dataMax),D.type!==$.options.type&&Z(11,!0,x)):(j&&K(R)&&to(y)&&to(b)&&(b>=R?(tn=R,te=0):y<=R&&(ta=R,J=0)),this.min=th(tl,tn,b),this.max=th(td,ta,y)),to(this.max)&&to(this.min)&&(L&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,th(b,this.min))&&Z(10,!0,x),this.min=q(L.log2lin(this.min),16),this.max=q(L.log2lin(this.max),16)),this.range&&to(b)&&(this.userMin=this.min=tl=Math.max(b,this.minFromRange()||0),this.userMax=td=this.max,this.range=void 0)),tt(this,"foundExtremes"),this.adjustForMinRange(),to(this.min)&&to(this.max)){if(!to(this.userMin)&&to(V)&&Vthis.max&&(this.max=td=Y),p||this.axisPointRange||this.stacking?.usePercentage||$||!(ti=this.max-this.min)||(!K(tl)&&te&&(this.min-=ti*te),K(td)||!J||(this.max+=ti*J)),!to(this.userMin)&&to(H)&&(this.min=Math.max(this.min,H)),!to(this.userMax)&&to(F)&&(this.max=Math.min(this.max,F)),j&&to(b)&&to(y)){let e=R||0;!K(tl)&&this.min=e?this.min=D.minRange?Math.min(e,this.max-z):e:!K(td)&&this.max>e&&y<=e&&(this.max=D.minRange?Math.max(e,this.min+z):e)}!x.polar&&this.min>this.max&&(K(D.min)?this.max=this.min:K(D.max)&&(this.min=this.max)),ti=this.max-this.min}if(this.min!==this.max&&to(this.min)&&to(this.max)?$&&!tr&&_===$.options.tickPixelInterval?this.tickInterval=tr=$.tickInterval:this.tickInterval=th(tr,this.tickAmount?ti/Math.max(this.tickAmount-1,1):void 0,p?1:ti*_/Math.max(this.len,_)):this.tickInterval=1,O&&!e){let e=this.min!==this.old?.min||this.max!==this.old?.max;this.series.forEach(function(p){p.forceCrop=p.forceCropping?.(),p.processData(e)}),tt(this,"postProcessData",{hasExtremesChanged:e})}this.setAxisTranslation(),tt(this,"initialAxisTranslation"),this.pointRange&&!tr&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let tc=th(D.minTickInterval,E&&!this.series.some(e=>e.noSharedTooltip)?this.closestPointRange:0);!tr&&this.tickIntervalMath.max(2*this.len,200))L=[this.min,this.max],Z(19,!1,this.chart);else if(this.dateTime)L=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal?.positions,this.closestPointRange,!0);else if(this.logarithmic)L=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let e=this.tickInterval,p=e;for(;p<=2*e;)if(L=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&L.length>this.tickAmount)this.tickInterval=tg(this,p*=1.1);else break}L.length>this.len&&(L=[L[0],L[L.length-1]])[0]===L[1]&&(L.length=1),x&&(this.tickPositions=L,(D=x.apply(this,[this.min,this.max]))&&(L=D))}this.tickPositions=L,this.paddedTicks=L.slice(0),this.trimTicks(L,E,O),!this.isLinked&&to(this.min)&&to(this.max)&&(this.single&&L.length<2&&!this.categories&&!this.series.some(e=>e.is("heatmap")&&"between"===e.options.pointPlacement)&&(this.min-=.5,this.max+=.5),p||D||this.adjustTickAmount()),tt(this,"afterSetTickPositions")}trimTicks(e,p,x){let y=e[0],b=e[e.length-1],E=!this.isOrdinal&&this.minPointOffset||0;if(tt(this,"trimTicks"),!this.isLinked){if(p&&y!==-1/0)this.min=y;else for(;this.min-E>e[0];)e.shift();if(x)this.max=b;else for(;this.max+E{let{horiz:p,options:x}=e;return[p?x.left:x.top,x.width,x.height,x.pane].join(",")},E=b(this);x[this.coll].forEach(function(x){let{series:O}=x;O.length&&O.some(e=>e.visible)&&x!==p&&b(x)===E&&(e=!0,y.push(x))})}if(e&&O){y.forEach(e=>{let x=e.getThresholdAlignment(p);to(x)&&L.push(x)});let e=L.length>1?L.reduce((e,p)=>e+=p,0)/L.length:void 0;y.forEach(p=>{p.thresholdAlignment=e})}return e}getThresholdAlignment(e){if((!to(this.dataMin)||this!==e&&this.series.some(e=>e.isDirty||e.isDirtyData))&&this.getSeriesExtremes(),to(this.threshold)){let e=V((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(e=1-e),e}}getTickAmount(){let e=this.options,p=e.tickPixelInterval,x=e.tickAmount;K(e.tickInterval)||x||!(this.lenE.push(q(E[E.length-1]+F)),Y=()=>E.unshift(q(E[0]-F));if(to(L)&&(H=L<.5?Math.ceil(L*(O-1)):Math.floor(L*(O-1)),b.reversed&&(H=O-1-H)),e.hasData()&&to(y)&&to(x)){let L=()=>{e.transA*=(D-1)/(O-1),e.min=b.startOnTick?E[0]:Math.min(y,E[0]),e.max=b.endOnTick?E[E.length-1]:Math.max(x,E[E.length-1])};if(to(H)&&to(e.threshold)){for(;E[H]!==j||E.length!==O||E[0]>y||E[E.length-1]e.threshold?Y():U();if(F>8*e.tickInterval)break;F*=2}L()}else if(D0&&z{x=x||e.isDirtyData||e.isDirty,y=y||e.xAxis&&e.xAxis.isDirty||!1}),this.setAxisSize();let b=this.len!==(this.old&&this.old.len);b||x||y||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(p&&"yAxis"===e&&p.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),p&&"xAxis"===e&&p.buildStacks(),this.isDirty||(this.isDirty=b||this.min!==this.old?.min||this.max!==this.old?.max)):p&&p.cleanStacks(),x&&delete this.allExtremes,tt(this,"afterSetScale")}setExtremes(e,p,x=!0,y,b){this.series.forEach(e=>{delete e.kdTree}),tt(this,"setExtremes",b=J(b,{min:e,max:p}),e=>{this.userMin=e.min,this.userMax=e.max,this.eventArgs=e,x&&this.chart.redraw(y)})}setAxisSize(){let e=this.chart,p=this.options,x=p.offsets||[0,0,0,0],y=this.horiz,b=this.width=Math.round(td(th(p.width,e.plotWidth-x[3]+x[1]),e.plotWidth)),E=this.height=Math.round(td(th(p.height,e.plotHeight-x[0]+x[2]),e.plotHeight)),O=this.top=Math.round(td(th(p.top,e.plotTop+x[0]),e.plotHeight,e.plotTop)),L=this.left=Math.round(td(th(p.left,e.plotLeft+x[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-E-O,this.right=e.chartWidth-b-L,this.len=Math.max(y?b:E,0),this.pos=y?L:O}getExtremes(){let e=this.logarithmic;return{min:e?q(e.lin2log(this.min)):this.min,max:e?q(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(e){let p=this.logarithmic,x=p?p.lin2log(this.min):this.min,y=p?p.lin2log(this.max):this.max;return null===e||e===-1/0?e=x:e===1/0?e=y:x>e?e=x:y15&&p<165?e.align="right":p>195&&p<345&&(e.align="left")}),x.align}tickSize(e){let p=this.options,x=th(p["tick"===e?"tickWidth":"minorTickWidth"],"tick"===e&&this.isXAxis&&!this.categories?1:0),y=p["tick"===e?"tickLength":"minorTickLength"],b;x&&y&&("inside"===p[e+"Position"]&&(y=-y),b=[y,x]);let E={tickSize:b};return tt(this,"afterTickSize",E),E.tickSize}labelMetrics(){let e=this.chart.renderer,p=this.ticks,x=p[Object.keys(p)[0]]||{};return this.chart.renderer.fontMetrics(x.label||x.movedLabel||e.box)}unsquish(){let e=this.options.labels,p=e.padding||0,x=this.horiz,y=this.tickInterval,b=this.len/(((this.categories?1:0)+this.max-this.min)/y),E=e.rotation,O=q(.8*this.labelMetrics().h),L=Math.max(this.max-this.min,0),D=function(e){let x=(e+2*p)/(b||1);return(x=x>1?Math.ceil(x):1)*y>L&&e!==1/0&&b!==1/0&&L&&(x=Math.ceil(L/y)),q(x*y)},j=y,R,z=Number.MAX_VALUE,F;if(x){if(!e.staggerLines&&(to(E)?F=[E]:b=-90&&x<=90)&&(p=(e=D(Math.abs(O/Math.sin(H*x))))+Math.abs(x/360))U&&(U=p.label.textPxLength)}),this.maxLabelLength=U,this.autoRotation)U>D&&U>R.h?j.rotation=this.labelRotation:this.labelRotation=0;else if(L&&(F=D,!z))for(H="clip",V=x.length;!O&&V--;)(Y=y[x[V]].label)&&("ellipsis"===Y.styles.textOverflow?Y.css({textOverflow:"clip"}):Y.textPxLength>L&&Y.css({width:L+"px"}),Y.getBBox().height>this.len/x.length-(R.h-R.f)&&(Y.specificTextOverflow="ellipsis"));j.rotation&&(F=U>.5*e.chartHeight?.33*e.chartHeight:U,z||(H="ellipsis")),this.labelAlign=b.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(j.align=this.labelAlign),x.forEach(function(e){let p=y[e],x=p&&p.label,b=E.width,O={};x&&(x.attr(j),p.shortenLabel?p.shortenLabel():F&&!b&&"nowrap"!==E.whiteSpace&&(Fb.g(p).attr({zIndex:O}).addClass(`highcharts-${x.toLowerCase()}${E} `+(this.isRadial?`highcharts-radial-axis${E} `:"")+(y.className||"")).add(e);this.axisGroup||(this.gridGroup=E("grid","-grid",y.gridZIndex),this.axisGroup=E("axis","",y.zIndex),this.labelGroup=E("axis-labels","-labels",y.labels.zIndex))}getOffset(){let e=this,{chart:p,horiz:x,options:y,side:b,ticks:E,tickPositions:O,coll:L}=e,D=p.inverted&&!e.isZAxis?[1,0,3,2][b]:b,j=e.hasData(),R=y.title,z=y.labels,F=to(y.crossing),H=p.axisOffset,U=p.clipOffset,Y=[-1,1,1,-1][b],V,q=0,$,_=0,Z=0,J,te;if(e.showAxis=V=j||y.showEmpty,e.staggerLines=e.horiz&&z.staggerLines||void 0,e.createGroups(),j||e.isLinked?(O.forEach(function(p){e.generateTick(p)}),e.renderUnsquish(),e.reserveSpaceDefault=0===b||2===b||({1:"left",3:"right"})[b]===e.labelAlign,th(z.reserveSpace,!F&&null,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&O.forEach(function(e){Z=Math.max(E[e].getLabelSize(),Z)}),e.staggerLines&&(Z*=e.staggerLines),e.labelOffset=Z*(e.opposite?-1:1)):tl(E,function(e,p){e.destroy(),delete E[p]}),R?.text&&!1!==R.enabled&&(e.addTitle(V),V&&!F&&!1!==R.reserveSpace&&(e.titleOffset=q=e.axisTitle.getBBox()[x?"height":"width"],_=K($=R.offset)?0:th(R.margin,x?5:10))),e.renderLine(),e.offset=Y*th(y.offset,H[b]?H[b]+(y.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},te=0===b?-e.labelMetrics().h:2===b?e.tickRotCorr.y:0,J=Math.abs(Z)+_,Z&&(J-=te,J+=Y*(x?th(z.y,e.tickRotCorr.y+Y*z.distance):th(z.x,Y*z.distance))),e.axisTitleMargin=th($,J),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(E,O)),"colorAxis"!==L&&U){let p=this.tickSize("tick");H[b]=Math.max(H[b],(e.axisTitleMargin||0)+q+Y*e.offset,J,O&&O.length&&p?p[0]+Y*e.offset:0);let x=!e.axisLine||y.offset?0:e.axisLine.strokeWidth()/2;U[D]=Math.max(U[D],x)}tt(this,"afterGetOffset")}getLinePath(e){let p=this.chart,x=this.opposite,y=this.offset,b=this.horiz,E=this.left+(x?this.width:0)+y,O=p.chartHeight-this.bottom-(x?this.height:0)+y;return x&&(e*=-1),p.renderer.crispLine([["M",b?this.left:E,b?O:this.top],["L",b?p.chartWidth-this.right:E,b?O:p.chartHeight-this.bottom]],e)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(e){let p=this.horiz,x=this.left,y=this.top,b=this.len,E=this.options.title,O=p?x:y,L=this.opposite,D=this.offset,j=E.x,R=E.y,z=this.chart.renderer.fontMetrics(e),F=e?Math.max(e.getBBox(!1,0).height-z.h-1,0):0,H={low:O+(p?0:b),middle:O+b/2,high:O+(p?b:0)}[E.align],U=(p?y+this.height:x)+(p?1:-1)*(L?-1:1)*(this.axisTitleMargin||0)+[-F,F,z.f,-F][this.side],Y={x:p?H+j:U+(L?this.width:0)+D+j,y:p?U+R-(L?this.height:0)+D:H+R};return tt(this,"afterGetTitlePosition",{titlePosition:Y}),Y}renderMinorTick(e,p){let x=this.minorTicks;x[e]||(x[e]=new O(this,e,"minor")),p&&x[e].isNew&&x[e].render(null,!0),x[e].render(null,!1,1)}renderTick(e,p,x){let y=this.isLinked,b=this.ticks;(!y||e>=this.min&&e<=this.max||this.grid&&this.grid.isColumn)&&(b[e]||(b[e]=new O(this,e)),x&&b[e].isNew&&b[e].render(p,!0,-1),b[e].render(p))}render(){let e,p;let x=this,y=x.chart,b=x.logarithmic,L=y.renderer,j=x.options,R=x.isLinked,z=x.tickPositions,F=x.axisTitle,H=x.ticks,U=x.minorTicks,Y=x.alternateBands,V=j.stackLabels,q=j.alternateGridColor,K=j.crossing,$=x.tickmarkOffset,_=x.axisLine,Z=x.showAxis,J=D(L.globalAnimation);if(x.labelEdge.length=0,x.overlap=!1,[H,U,Y].forEach(function(e){tl(e,function(e){e.isActive=!1})}),to(K)){let e=this.isXAxis?y.yAxis[0]:y.xAxis[0],p=[1,-1,-1,1][this.side];if(e){let y=e.toPixels(K,!0);x.horiz&&(y=e.len-y),x.offset=p*y}}if(x.hasData()||R){let L=x.chart.hasRendered&&x.old&&to(x.old.min);x.minorTickInterval&&!x.categories&&x.getMinorTickPositions().forEach(function(e){x.renderMinorTick(e,L)}),z.length&&(z.forEach(function(e,p){x.renderTick(e,p,L)}),$&&(0===x.min||x.single)&&(H[-1]||(H[-1]=new O(x,-1,null,!0)),H[-1].render(-1))),q&&z.forEach(function(O,L){p=void 0!==z[L+1]?z[L+1]+$:x.max-$,L%2==0&&O=.5)e=Math.round(e),j=O.getLinearTickPositions(e,p,x);else if(e>=.08){let y,b,O,L,D,R,z;let F=Math.floor(p);for(y=e>.3?[1,2,4]:e>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],b=F;bp&&(!E||R<=x)&&void 0!==R&&j.push(R),R>x&&(z=!0),R=D}else{let R=this.lin2log(p),z=this.lin2log(x),F=E?O.getMinorTickInterval():D.tickInterval,H=D.tickPixelInterval/(E?5:1),U=E?L/O.tickPositions.length:L;e=y(e=b("auto"===F?null:F,this.minorAutoInterval,(z-R)*H/(U||1))),j=O.getLinearTickPositions(e,R,z).map(this.log2lin),E||(this.minorAutoInterval=e/5)}return E||(O.tickInterval=e),j}lin2log(e){return Math.pow(10,e)}log2lin(e){return Math.log(e)/Math.LN10}};e.Additions=a}(p||(p={})),p}),x(p,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[p["Core/Utilities.js"]],function(e){var p;let{erase:x,extend:y,isNumber:b}=e;return function(e){let p;function E(e){return this.addPlotBandOrLine(e,"plotBands")}function O(e,x){let y=this.userOptions,b=new p(this,e);if(this.visible&&(b=b.render()),b){if(this._addedPlotLB||(this._addedPlotLB=!0,(y.plotLines||[]).concat(y.plotBands||[]).forEach(e=>{this.addPlotBandOrLine(e)})),x){let p=y[x]||[];p.push(e),y[x]=p}this.plotLinesAndBands.push(b)}return b}function L(e){return this.addPlotBandOrLine(e,"plotLines")}function D(e,p,x){x=x||this.options;let y=this.getPlotLinePath({value:p,force:!0,acrossPanes:x.acrossPanes}),E=[],O=this.horiz,L=!b(this.min)||!b(this.max)||ethis.max&&p>this.max,D=this.getPlotLinePath({value:e,force:!0,acrossPanes:x.acrossPanes}),j,R=1,z;if(D&&y)for(L&&(z=D.toString()===y.toString(),R=0),j=0;j{_?.on(p,e=>{O[p].apply(this,[e])})}),this.eventsAdded=!0),(ti||!_.d)&&Z?.length?_.attr({d:Z}):_&&(Z?(_.show(),_.animate({d:Z})):_.d&&(_.hide(),$&&(this.label=$=$.destroy()))),K&&(b(K.text)||b(K.formatter))&&Z?.length&&e.width>0&&e.height>0&&!Z.isFlat?(K=D({align:x&&tt?"center":void 0,x:x?!tt&&4:10,verticalAlign:!x&&tt?"middle":void 0,y:x?tt?16:10:tt?6:-4,rotation:x&&!tt?90:0},K),this.renderLabel(K,Z,tt,z)):$&&$.hide(),this}renderLabel(e,p,b,E){let O=this.axis,L=O.chart.renderer,j=this.label;j||(this.label=j=L.text(this.getLabelText(e),0,0,e.useHTML).attr({align:e.textAlign||e.align,rotation:e.rotation,class:"highcharts-plot-"+(b?"band":"line")+"-label "+(e.className||""),zIndex:E}),O.chart.styledMode||j.css(D({fontSize:"0.8em",textOverflow:"ellipsis"},e.style)),j.add());let R=p.xBounds||[p[0][1],p[1][1],b?p[2][1]:p[0][1]],z=p.yBounds||[p[0][2],p[1][2],b?p[2][2]:p[0][2]],F=y(R),H=y(z);if(j.align(e,!1,{x:F,y:H,width:x(R)-F,height:x(z)-H}),!j.alignValue||"left"===j.alignValue){let p=e.clip?O.width:O.chart.chartWidth;j.css({width:(90===j.rotation?O.height-(j.alignAttr.y-O.top):p-(j.alignAttr.x-O.left))+"px"})}j.show(!0)}getLabelText(e){return b(e.formatter)?e.formatter.call(this):e.text}destroy(){O(this.axis.plotLinesAndBands,this),delete this.axis,E(this)}};return c}),x(p,"Core/Tooltip.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Templating.js"],p["Core/Globals.js"],p["Core/Renderer/RendererUtilities.js"],p["Core/Renderer/RendererRegistry.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E){var O;let{animObject:L}=e,{format:D}=p,{composed:j,doc:R,isSafari:z}=x,{distribute:F}=y,{addEvent:H,clamp:U,css:Y,discardElement:V,extend:q,fireEvent:K,isArray:$,isNumber:_,isString:Z,merge:J,pick:tt,pushUnique:te,splat:ti,syncTimeout:ts}=E;let T=class T{constructor(e,p,x){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=e,this.init(e,p),this.pointer=x}bodyFormatter(e){return e.map(function(e){let p=e.series.tooltipOptions;return(p[(e.point.formatPrefix||"point")+"Formatter"]||e.point.tooltipFormatter).call(e.point,p[(e.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(e){this.chart.series.forEach(function(p){let x=p&&p.tt;x&&(!x.isActive||e?p.tt=x.destroy():x.isActive=!1)})}defaultFormatter(e){let p;let x=this.points||ti(this);return(p=(p=[e.tooltipFooterHeaderFormatter(x[0])]).concat(e.bodyFormatter(x))).push(e.tooltipFooterHeaderFormatter(x[0],!0)),p}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),V(this.container)),E.clearTimeout(this.hideTimer)}getAnchor(e,p){let x;let{chart:y,pointer:b}=this,E=y.inverted,O=y.plotTop,L=y.plotLeft;if((e=ti(e))[0].series&&e[0].series.yAxis&&!e[0].series.yAxis.options.reversedStacks&&(e=e.slice().reverse()),this.followPointer&&p)void 0===p.chartX&&(p=b.normalize(p)),x=[p.chartX-L,p.chartY-O];else if(e[0].tooltipPos)x=e[0].tooltipPos;else{let y=0,b=0;e.forEach(function(e){let p=e.pos(!0);p&&(y+=p[0],b+=p[1])}),y/=e.length,b/=e.length,this.shared&&e.length>1&&p&&(E?y=p.chartX:b=p.chartY),x=[y-L,b-O]}return x.map(Math.round)}getClassName(e,p,x){let y=this.options,b=e.series,E=b.options;return[y.className,"highcharts-label",x&&"highcharts-tooltip-header",p?"highcharts-tooltip-box":"highcharts-tooltip",!x&&"highcharts-color-"+tt(e.colorIndex,b.colorIndex),E&&E.className].filter(Z).join(" ")}getLabel(){let e=this,p=this.chart.styledMode,y=this.options,E=this.split&&this.allowShared,O=this.container,L=this.chart.renderer;if(this.label){let e=!this.label.hasClass("highcharts-label");(!E&&e||E&&!e)&&this.destroy()}if(!this.label){if(this.outside){let e=this.chart.options.chart.style,p=b.getRendererType();this.container=O=x.doc.createElement("div"),O.className="highcharts-tooltip-container",Y(O,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(e&&e.zIndex||0)+3)}),this.renderer=L=new p(O,0,0,e,void 0,void 0,L.styledMode)}if(E?this.label=L.g("tooltip"):(this.label=L.label("",0,0,y.shape,void 0,void 0,y.useHTML,void 0,"tooltip").attr({padding:y.padding,r:y.borderRadius}),p||this.label.attr({fill:y.backgroundColor,"stroke-width":y.borderWidth||0}).css(y.style).css({pointerEvents:y.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),e.outside){let p=this.label;[p.xSetter,p.ySetter].forEach((x,y)=>{p[y?"ySetter":"xSetter"]=b=>{x.call(p,e.distance),p[y?"y":"x"]=b,O&&(O.style[y?"top":"left"]=`${b}px`)}})}this.label.attr({zIndex:8}).shadow(y.shadow).add()}return O&&!O.parentElement&&x.doc.body.appendChild(O),this.label}getPlayingField(){let{body:e,documentElement:p}=R,{chart:x,distance:y,outside:b}=this;return{width:b?Math.max(e.scrollWidth,p.scrollWidth,e.offsetWidth,p.offsetWidth,p.clientWidth)-2*y:x.chartWidth,height:b?Math.max(e.scrollHeight,p.scrollHeight,e.offsetHeight,p.offsetHeight,p.clientHeight):x.chartHeight}}getPosition(e,p,x){let{distance:y,chart:b,outside:E,pointer:O}=this,{inverted:L,plotLeft:D,plotTop:j,polar:R}=b,{plotX:z=0,plotY:F=0}=x,H={},U=L&&x.h||0,{height:Y,width:V}=this.getPlayingField(),q=O.getChartPosition(),K=e=>e*q.scaleX,$=e=>e*q.scaleY,_=x=>{let O="x"===x;return[x,O?V:Y,O?e:p].concat(E?[O?K(e):$(p),O?q.left-y+K(z+D):q.top-y+$(F+j),0,O?V:Y]:[O?e:p,O?z+D:F+j,O?D:j,O?D+b.plotWidth:j+b.plotHeight])},Z=_("y"),J=_("x"),te,ti=!!x.negative;!R&&b.hoverSeries?.yAxis?.reversed&&(ti=!ti);let ts=!this.followPointer&&tt(x.ttBelow,!R&&!L===ti),to=function(e,p,x,b,O,L,D){let j=E?"y"===e?$(y):K(y):y,R=(x-b)/2,z=bp?V:V+U)}},tr=function(e,p,x,b,E){if(Ep-y)return!1;Ep-b/2?H[e]=p-b-2:H[e]=E-x/2},tn=function(e){[Z,J]=[J,Z],te=e},ta=()=>{!1!==to.apply(0,Z)?!1!==tr.apply(0,J)||te||(tn(!0),ta()):te?H.x=H.y=0:(tn(!0),ta())};return(L&&!R||this.len>1)&&tn(),ta(),H}hide(e){let p=this;E.clearTimeout(this.hideTimer),e=tt(e,this.options.hideDelay),this.isHidden||(this.hideTimer=ts(function(){let x=p.getLabel();p.getLabel().animate({opacity:0},{duration:e?150:e,complete:()=>{x.hide(),p.container&&p.container.remove()}}),p.isHidden=!0},e))}init(e,p){this.chart=e,this.options=p,this.crosshairs=[],this.isHidden=!0,this.split=p.split&&!e.inverted&&!e.polar,this.shared=p.shared||this.split,this.outside=tt(p.outside,!!(e.scrollablePixelsX||e.scrollablePixelsY))}shouldStickOnContact(e){return!!(!this.followPointer&&this.options.stickOnContact&&(!e||this.pointer.inClass(e.target,"highcharts-tooltip")))}move(e,p,x,y){let b=this,E=L(!b.isHidden&&b.options.animation),O=b.followPointer||(b.len||0)>1,D={x:e,y:p};O||(D.anchorX=x,D.anchorY=y),E.step=()=>b.drawTracker(),b.getLabel().animate(D,E)}refresh(e,p){let{chart:x,options:y,pointer:b,shared:O}=this,L=ti(e),j=L[0],R=[],z=y.format,F=y.formatter||this.defaultFormatter,H=x.styledMode,U={};if(!y.enabled||!j.series)return;E.clearTimeout(this.hideTimer),this.allowShared=!(!$(e)&&e.series&&e.series.noSharedTooltip),this.followPointer=!this.split&&j.series.tooltipOptions.followPointer;let Y=this.getAnchor(e,p),V=Y[0],q=Y[1];O&&this.allowShared?(b.applyInactiveState(L),L.forEach(function(e){e.setState("hover"),R.push(e.getLabelConfig())}),(U=j.getLabelConfig()).points=R):U=j.getLabelConfig(),this.len=R.length;let _=Z(z)?D(z,U,x):F.call(U,this),J=j.series;if(this.distance=tt(J.tooltipOptions.distance,16),!1===_)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(_,L);else{let e=V,E=q;if(p&&b.isDirectTouch&&(e=p.chartX-x.plotLeft,E=p.chartY-x.plotTop),x.polar||!1===J.options.clip||L.some(p=>b.isDirectTouch||p.series.shouldShowTooltip(e,E))){let e=this.getLabel();(!y.style.width||H)&&e.css({width:(this.outside?this.getPlayingField():x.spacingBox).width+"px"}),e.attr({text:_&&_.join?_.join(""):_}),e.addClass(this.getClassName(j),!0),H||e.attr({stroke:y.borderColor||j.color||J.color||"#666666"}),this.updatePosition({plotX:V,plotY:q,negative:j.negative,ttBelow:j.ttBelow,h:Y[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}K(this,"refresh")}renderSplit(e,p){let x=this,{chart:y,chart:{chartWidth:b,chartHeight:E,plotHeight:O,plotLeft:L,plotTop:D,scrollablePixelsY:j=0,scrollablePixelsX:H,styledMode:Y},distance:V,options:K,options:{positioner:$},pointer:_}=x,{scrollLeft:J=0,scrollTop:te=0}=y.scrollablePlotArea?.scrollingContainer||{},ti=x.outside&&"number"!=typeof H?R.documentElement.getBoundingClientRect():{left:J,right:J+b,top:te,bottom:te+E},ts=x.getLabel(),to=this.renderer||y.renderer,tr=!!(y.xAxis[0]&&y.xAxis[0].opposite),{left:tn,top:ta}=_.getChartPosition(),tl=D+te,th=0,td=O-j;function tc(e,p,y,b,E=!0){let O,L;return y?(O=tr?0:td,L=U(e-b/2,ti.left,ti.right-b-(x.outside?tn:0))):(O=p-tl,L=U(L=E?e-b-V:e+V,E?L:ti.left,ti.right)),{x:L,y:O}}Z(e)&&(e=[!1,e]);let tp=e.slice(0,p.length+1).reduce(function(e,y,b){if(!1!==y&&""!==y){let E=p[b-1]||{isHeader:!0,plotX:p[0].plotX,plotY:O,series:{}},j=E.isHeader,R=j?x:E.series,z=R.tt=function(e,p,y){let b=e,{isHeader:E,series:O}=p;if(!b){let e={padding:K.padding,r:K.borderRadius};Y||(e.fill=K.backgroundColor,e["stroke-width"]=K.borderWidth??1),b=to.label("",0,0,K[E?"headerShape":"shape"],void 0,void 0,K.useHTML).addClass(x.getClassName(p,!0,E)).attr(e).add(ts)}return b.isActive=!0,b.attr({text:y}),Y||b.css(K.style).attr({stroke:K.borderColor||p.color||O.color||"#333333"}),b}(R.tt,E,y.toString()),F=z.getBBox(),H=F.width+z.strokeWidth();j&&(th=F.height,td+=th,tr&&(tl-=th));let{anchorX:q,anchorY:_}=function(e){let p,x;let{isHeader:y,plotX:b=0,plotY:E=0,series:j}=e;if(y)p=Math.max(L+b,L),x=D+O/2;else{let{xAxis:e,yAxis:y}=j;p=e.pos+U(b,-V,e.len+V),j.shouldShowTooltip(0,y.pos-D+E,{ignoreX:!0})&&(x=y.pos+E)}return{anchorX:p=U(p,ti.left-V,ti.right+V),anchorY:x}}(E);if("number"==typeof _){let p=F.height+1,y=$?$.call(x,H,p,E):tc(q,_,j,H);e.push({align:$?0:void 0,anchorX:q,anchorY:_,boxWidth:H,point:E,rank:tt(y.rank,j?1:0),size:p,target:y.y,tt:z,x:y.x})}else z.isActive=!1}return e},[]);!$&&tp.some(e=>{let{outside:p}=x,y=(p?tn:0)+e.anchorX;return yy})&&(tp=tp.map(e=>{let{x:p,y:x}=tc(e.anchorX,e.anchorY,e.point.isHeader,e.boxWidth,!1);return q(e,{target:x,x:p})})),x.cleanSplit(),F(tp,td);let tu={left:tn,right:tn};tp.forEach(function(e){let{x:p,boxWidth:y,isHeader:b}=e;!b&&(x.outside&&tn+ptu.right&&(tu.right=tn+p))}),tp.forEach(function(e){let{x:p,anchorX:y,anchorY:b,pos:E,point:{isHeader:O}}=e,L={visibility:void 0===E?"hidden":"inherit",x:p,y:(E||0)+tl,anchorX:y,anchorY:b};if(x.outside&&p0&&(O||(L.x=p+e,L.anchorX=y+e),O&&(L.x=(tu.right-tu.left)/2,L.anchorX=y+e))}e.tt.attr(L)});let{container:tg,outside:tm,renderer:tf}=x;if(tm&&tg&&tf){let{width:e,height:p,x:x,y:y}=ts.getBBox();tf.setSize(e+x,p+y,!1),tg.style.left=tu.left+"px",tg.style.top=ta+"px"}z&&ts.attr({opacity:1===ts.opacity?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let e=this.chart,p=this.label,x=this.shared?e.hoverPoints:e.hoverPoint;if(!p||!x)return;let y={x:0,y:0,width:0,height:0},b=this.getAnchor(x),E=p.getBBox();b[0]+=e.plotLeft-(p.translateX||0),b[1]+=e.plotTop-(p.translateY||0),y.x=Math.min(0,b[0]),y.y=Math.min(0,b[1]),y.width=b[0]<0?Math.max(Math.abs(b[0]),E.width-b[0]):Math.max(Math.abs(b[0]),E.width),y.height=b[1]<0?Math.max(Math.abs(b[1]),E.height-Math.abs(b[1])):Math.max(Math.abs(b[1]),E.height),this.tracker?this.tracker.attr(y):(this.tracker=p.renderer.rect(y).addClass("highcharts-tracker").add(p),e.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(e){return e.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(e,p){let x=e.series,y=x.tooltipOptions,b=x.xAxis,E=b&&b.dateTime,O={isFooter:p,labelConfig:e},L=y.xDateFormat,j=y[p?"footerFormat":"headerFormat"];return K(this,"headerFormatter",O,function(p){E&&!L&&_(e.key)&&(L=E.getXDateFormat(e.key,y.dateTimeLabelFormats)),E&&L&&(e.point&&e.point.tooltipDateKeys||["key"]).forEach(function(e){j=j.replace("{point."+e+"}","{point."+e+":"+L+"}")}),x.chart.styledMode&&(j=this.styledModeFormat(j)),p.text=D(j,{point:e,series:x},this.chart)}),O.text}update(e){this.destroy(),this.init(this.chart,J(!0,this.options,e))}updatePosition(e){let{chart:p,container:x,distance:y,options:b,pointer:E,renderer:O}=this,{height:L=0,width:D=0}=this.getLabel(),{left:j,top:R,scaleX:z,scaleY:F}=E.getChartPosition(),H=(b.positioner||this.getPosition).call(this,D,L,e),U=(e.plotX||0)+p.plotLeft,V=(e.plotY||0)+p.plotTop,q;O&&x&&(b.positioner&&(H.x+=j-y,H.y+=R-y),q=(b.borderWidth||0)+2*y+2,O.setSize(D+q,L+q,!1),(1!==z||1!==F)&&(Y(x,{transform:`scale(${z}, ${F})`}),U*=z,V*=F),U+=j-H.x,V+=R-H.y),this.move(Math.round(H.x),Math.round(H.y||0),U,V)}};return(O=T||(T={})).compose=function(e){te(j,"Core.Tooltip")&&H(e,"afterInit",function(){let e=this.chart;e.options.tooltip&&(e.tooltip=new O(e,e.options.tooltip,this))})},T}),x(p,"Core/Series/Point.js",[p["Core/Renderer/HTML/AST.js"],p["Core/Animation/AnimationUtilities.js"],p["Core/Defaults.js"],p["Core/Templating.js"],p["Core/Utilities.js"]],function(e,p,x,y,b){let{animObject:E}=p,{defaultOptions:O}=x,{format:L}=y,{addEvent:D,crisp:j,erase:R,extend:z,fireEvent:F,getNestedProperty:H,isArray:U,isFunction:Y,isNumber:V,isObject:q,merge:K,pick:$,syncTimeout:_,removeEvent:Z,uniqueKey:J}=b;let k=class k{animateBeforeDestroy(){let e=this,p={x:e.startXPos,opacity:0},x=e.getGraphicalProps();x.singular.forEach(function(x){e[x]=e[x].animate("dataLabel"===x?{x:e[x].startXPos,y:e[x].startYPos,opacity:0}:p)}),x.plural.forEach(function(p){e[p].forEach(function(p){p.element&&p.animate(z({x:e.startXPos},p.startYPos?{x:p.startXPos,y:p.startYPos}:{}))})})}applyOptions(e,p){let x=this.series,y=x.options.pointValKey||x.pointValKey;return z(this,e=k.prototype.optionsToObject.call(this,e)),this.options=this.options?z(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,y&&(this.y=k.prototype.getNestedProperty.call(this,y)),this.selected&&(this.state="select"),"name"in this&&void 0===p&&x.xAxis&&x.xAxis.hasNames&&(this.x=x.xAxis.nameToX(this)),void 0===this.x&&x?void 0===p?this.x=x.autoIncrement():this.x=p:V(e.x)&&x.options.relativeXValue&&(this.x=x.autoIncrement(e.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let e=this,p=e.series,x=p.chart,y=p.options.dataSorting,b=x.hoverPoints,O=E(e.series.chart.renderer.globalAnimation),L=()=>{for(let p in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(Z(e),e.destroyElements()),e)delete e[p]};e.legendItem&&x.legend.destroyItem(e),b&&(e.setState(),R(b,e),b.length||(x.hoverPoints=null)),e===x.hoverPoint&&e.onMouseOut(),y&&y.enabled?(this.animateBeforeDestroy(),_(L,O.duration)):L(),x.pointCount--}this.destroyed=!0}destroyElements(e){let p=this,x=p.getGraphicalProps(e);x.singular.forEach(function(e){p[e]=p[e].destroy()}),x.plural.forEach(function(e){p[e].forEach(function(e){e&&e.element&&e.destroy()}),delete p[e]})}firePointEvent(e,p,x){let y=this,b=this.series.options;y.manageEvent(e),"click"===e&&b.allowPointSelect&&(x=function(e){!y.destroyed&&y.select&&y.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),F(y,e,p,x)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(e){let p,x;let y=this,b=[],E={singular:[],plural:[]};for((e=e||{graphic:1,dataLabel:1}).graphic&&b.push("graphic","connector"),e.dataLabel&&b.push("dataLabel","dataLabelPath","dataLabelUpper"),x=b.length;x--;)y[p=b[x]]&&E.singular.push(p);return["graphic","dataLabel"].forEach(function(p){let x=p+"s";e[p]&&y[x]&&E.plural.push(x)}),E}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(e){return e?0===e.indexOf("custom.")?H(e,this.options):this[e]:void 0}getZone(){let e=this.series,p=e.zones,x=e.zoneAxis||"y",y,b=0;for(y=p[0];this[x]>=y.value;)y=p[++b];return this.nonZonedColor||(this.nonZonedColor=this.color),y&&y.color&&!this.options.color?this.color=y.color:this.color=this.nonZonedColor,y}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(e,p,x){this.formatPrefix="point",this.visible=!0,this.series=e,this.applyOptions(p,x),this.id??(this.id=J()),this.resolveColor(),e.chart.pointCount++,F(this,"afterInit")}isValid(){return(V(this.x)||this.x instanceof Date)&&V(this.y)}optionsToObject(e){let p=this.series,x=p.options.keys,y=x||p.pointArrayMap||["y"],b=y.length,E={},O,L=0,D=0;if(V(e)||null===e)E[y[0]]=e;else if(U(e))for(!x&&e.length>b&&("string"==(O=typeof e[0])?E.name=e[0]:"number"===O&&(E.x=e[0]),L++);D0?k.prototype.setNestedProperty(E,e[L],y[D]):E[y[D]]=e[L]),L++,D++;else"object"==typeof e&&(E=e,e.dataLabels&&(p.hasDataLabels=()=>!0),e.marker&&(p._hasPointMarkers=!0));return E}pos(e,p=this.plotY){if(!this.destroyed){let{plotX:x,series:y}=this,{chart:b,xAxis:E,yAxis:O}=y,L=0,D=0;if(V(x)&&V(p))return e&&(L=E?E.pos:b.plotLeft,D=O?O.pos:b.plotTop),b.inverted&&E&&O?[O.len-p+D,E.len-x+L]:[x+L,p+D]}}resolveColor(){let e=this.series,p=e.chart.options.chart,x=e.chart.styledMode,y,b,E=p.colorCount,O;delete this.nonZonedColor,e.options.colorByPoint?(x||(y=(b=e.options.colors||e.chart.options.colors)[e.colorCounter],E=b.length),O=e.colorCounter,e.colorCounter++,e.colorCounter===E&&(e.colorCounter=0)):(x||(y=e.color),O=e.colorIndex),this.colorIndex=$(this.options.colorIndex,O),this.color=$(this.options.color,y)}setNestedProperty(e,p,x){return x.split(".").reduce(function(e,x,y,b){let E=b.length-1===y;return e[x]=E?p:q(e[x],!0)?e[x]:{},e[x]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){let p=this.series,x=p.tooltipOptions,y=$(x.valueDecimals,""),b=x.valuePrefix||"",E=x.valueSuffix||"";return p.chart.styledMode&&(e=p.chart.tooltip.styledModeFormat(e)),(p.pointArrayMap||["y"]).forEach(function(p){p="{point."+p,(b||E)&&(e=e.replace(RegExp(p+"}","g"),b+p+"}"+E)),e=e.replace(RegExp(p+"}","g"),p+":,."+y+"f}")}),L(e,{point:this,series:this.series},p.chart)}update(e,p,x,y){let b;let E=this,O=E.series,L=E.graphic,D=O.chart,j=O.options;function R(){E.applyOptions(e);let y=L&&E.hasMockGraphic,R=null===E.y?!y:y;L&&R&&(E.graphic=L.destroy(),delete E.hasMockGraphic),q(e,!0)&&(L&&L.element&&e&&e.marker&&void 0!==e.marker.symbol&&(E.graphic=L.destroy()),e?.dataLabels&&E.dataLabel&&(E.dataLabel=E.dataLabel.destroy())),b=E.index,O.updateParallelArrays(E,b),j.data[b]=q(j.data[b],!0)||q(e,!0)?E.options:$(e,j.data[b]),O.isDirty=O.isDirtyData=!0,!O.fixedBox&&O.hasCartesianSeries&&(D.isDirtyBox=!0),"point"===j.legendType&&(D.isDirtyLegend=!0),p&&D.redraw(x)}p=$(p,!0),!1===y?R():E.firePointEvent("update",{options:e},R)}remove(e,p){this.series.removePoint(this.series.data.indexOf(this),e,p)}select(e,p){let x=this,y=x.series,b=y.chart;e=$(e,!x.selected),this.selectedStaging=e,x.firePointEvent(e?"select":"unselect",{accumulate:p},function(){x.selected=x.options.selected=e,y.options.data[y.data.indexOf(x)]=x.options,x.setState(e&&"select"),p||b.getSelectedPoints().forEach(function(e){let p=e.series;e.selected&&e!==x&&(e.selected=e.options.selected=!1,p.options.data[p.data.indexOf(e)]=e.options,e.setState(b.hoverPoints&&p.options.inactiveOtherPoints?"inactive":""),e.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(e){let{inverted:p,pointer:x}=this.series.chart;x&&(e=e?x.normalize(e):x.getChartCoordinatesFromPoint(this,p),x.runPointActions(e,this))}onMouseOut(){let e=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach(function(e){e.setState()}),e.hoverPoints=e.hoverPoint=null}manageEvent(e){let p=K(this.series.options.point,this.options),x=p.events?.[e];Y(x)&&(!this.hcEvents?.[e]||this.hcEvents?.[e]?.map(e=>e.fn).indexOf(x)===-1)?(D(this,e,x),this.hasImportedEvents=!0):this.hasImportedEvents&&!x&&this.hcEvents?.[e]&&(Z(this,e),delete this.hcEvents[e],Object.keys(this.hcEvents)||(this.hasImportedEvents=!1))}setState(p,x){let y=this.series,b=this.state,E=y.options.states[p||"normal"]||{},L=O.plotOptions[y.type].marker&&y.options.marker,D=L&&!1===L.enabled,j=L&&L.states&&L.states[p||"normal"]||{},R=!1===j.enabled,H=this.marker||{},U=y.chart,Y=L&&y.markerAttribs,q=y.halo,K,_,Z,J=y.stateMarkerGraphic,tt;if((p=p||"")===this.state&&!x||this.selected&&"select"!==p||!1===E.enabled||p&&(R||D&&!1===j.enabled)||p&&H.states&&H.states[p]&&!1===H.states[p].enabled)return;if(this.state=p,Y&&(K=y.markerAttribs(this,p)),this.graphic&&!this.hasMockGraphic){if(b&&this.graphic.removeClass("highcharts-point-"+b),p&&this.graphic.addClass("highcharts-point-"+p),!U.styledMode){_=y.pointAttribs(this,p),Z=$(U.options.chart.animation,E.animation);let e=_.opacity;y.options.inactiveOtherPoints&&V(e)&&(this.dataLabels||[]).forEach(function(p){p&&!p.hasClass("highcharts-data-label-hidden")&&(p.animate({opacity:e},Z),p.connector&&p.connector.animate({opacity:e},Z))}),this.graphic.animate(_,Z)}K&&this.graphic.animate(K,$(U.options.chart.animation,j.animation,L.animation)),J&&J.hide()}else p&&j&&(tt=H.symbol||y.symbol,J&&J.currentSymbol!==tt&&(J=J.destroy()),K&&(J?J[x?"animate":"attr"]({x:K.x,y:K.y}):tt&&(y.stateMarkerGraphic=J=U.renderer.symbol(tt,K.x,K.y,K.width,K.height).add(y.markerGroup),J.currentSymbol=tt)),!U.styledMode&&J&&"inactive"!==this.state&&J.attr(y.pointAttribs(this,p))),J&&(J[p&&this.isInside?"show":"hide"](),J.element.point=this,J.addClass(this.getClassName(),!0));let te=E.halo,ti=this.graphic||J,ts=ti&&ti.visibility||"inherit";te&&te.size&&ti&&"hidden"!==ts&&!this.isCluster?(q||(y.halo=q=U.renderer.path().add(ti.parentGroup)),q.show()[x?"animate":"attr"]({d:this.haloPath(te.size)}),q.attr({class:"highcharts-halo highcharts-color-"+$(this.colorIndex,y.colorIndex)+(this.className?" "+this.className:""),visibility:ts,zIndex:-1}),q.point=this,U.styledMode||q.attr(z({fill:this.color||y.color,"fill-opacity":te.opacity},e.filterUserAttributes(te.attributes||{})))):q?.point?.haloPath&&!q.point.destroyed&&q.animate({d:q.point.haloPath(0)},null,q.hide),F(this,"afterSetState",{state:p})}haloPath(e){let p=this.pos();return p?this.series.chart.renderer.symbols.circle(j(p[0],1)-e,p[1]-e,2*e,2*e):[]}};return k}),x(p,"Core/Pointer.js",[p["Core/Color/Color.js"],p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p,x){var y;let{parse:b}=e,{charts:E,composed:O,isTouchDevice:L}=p,{addEvent:D,attr:j,css:R,extend:z,find:F,fireEvent:H,isNumber:U,isObject:Y,objectEach:V,offset:q,pick:K,pushUnique:$,splat:_}=x;let S=class S{applyInactiveState(e){let p=[],x;(e||[]).forEach(function(e){x=e.series,p.push(x),x.linkedParent&&p.push(x.linkedParent),x.linkedSeries&&(p=p.concat(x.linkedSeries)),x.navigatorSeries&&p.push(x.navigatorSeries)}),this.chart.series.forEach(function(e){-1===p.indexOf(e)?e.setState("inactive",!0):e.options.inactiveOtherPoints&&e.setAllPointsToState("inactive")})}destroy(){let e=this;this.eventsToUnbind.forEach(e=>e()),this.eventsToUnbind=[],!p.chartCount&&(S.unbindDocumentMouseUp&&(S.unbindDocumentMouseUp=S.unbindDocumentMouseUp()),S.unbindDocumentTouchEnd&&(S.unbindDocumentTouchEnd=S.unbindDocumentTouchEnd())),clearInterval(e.tooltipTimeout),V(e,function(p,x){e[x]=void 0})}getSelectionMarkerAttrs(e,p){let x={args:{chartX:e,chartY:p},attrs:{},shapeType:"rect"};return H(this,"getSelectionMarkerAttrs",x,x=>{let y;let{chart:b,zoomHor:E,zoomVert:O}=this,{mouseDownX:L=0,mouseDownY:D=0}=b,j=x.attrs;j.x=b.plotLeft,j.y=b.plotTop,j.width=E?1:b.plotWidth,j.height=O?1:b.plotHeight,E&&(y=e-L,j.width=Math.max(1,Math.abs(y)),j.x=(y>0?0:y)+L),O&&(y=p-D,j.height=Math.max(1,Math.abs(y)),j.y=(y>0?0:y)+D)}),x}drag(e){let{chart:p}=this,{mouseDownX:x=0,mouseDownY:y=0}=p,{panning:E,panKey:O,selectionMarkerFill:L}=p.options.chart,D=p.plotLeft,j=p.plotTop,R=p.plotWidth,z=p.plotHeight,F=Y(E)?E.enabled:E,H=O&&e[`${O}Key`],U=e.chartX,V=e.chartY,q,K=this.selectionMarker;if((!K||!K.touch)&&(UD+R&&(U=D+R),Vj+z&&(V=j+z),this.hasDragged=Math.sqrt(Math.pow(x-U,2)+Math.pow(y-V,2)),this.hasDragged>10)){q=p.isInsidePlot(x-D,y-j,{visiblePlotOnly:!0});let{shapeType:O,attrs:R}=this.getSelectionMarkerAttrs(U,V);(p.hasCartesianSeries||p.mapView)&&this.hasZoom&&q&&!H&&!K&&(this.selectionMarker=K=p.renderer[O](),K.attr({class:"highcharts-selection-marker",zIndex:7}).add(),p.styledMode||K.attr({fill:L||b("#334eff").setOpacity(.25).get()})),K&&K.attr(R),q&&!K&&F&&p.pan(e,E)}}dragStart(e){let p=this.chart;p.mouseIsDown=e.type,p.cancelClick=!1,p.mouseDownX=e.chartX,p.mouseDownY=e.chartY}getSelectionBox(e){let p={args:{marker:e},result:e.getBBox()};return H(this,"getSelectionBox",p),p.result}drop(e){let p;let{chart:x,selectionMarker:y}=this;for(let e of x.axes)e.isPanning&&(e.isPanning=!1,(e.options.startOnTick||e.options.endOnTick||e.series.some(e=>e.boosted))&&(e.forceRedraw=!0,e.setExtremes(e.userMin,e.userMax,!1),p=!0));if(p&&x.redraw(),y&&e){if(this.hasDragged){let p=this.getSelectionBox(y);x.transform({axes:x.axes.filter(e=>e.zoomEnabled&&("xAxis"===e.coll&&this.zoomX||"yAxis"===e.coll&&this.zoomY)),selection:{originalEvent:e,xAxis:[],yAxis:[],...p},from:p})}U(x.index)&&(this.selectionMarker=y.destroy())}x&&U(x.index)&&(R(x.container,{cursor:x._cursor}),x.cancelClick=this.hasDragged>10,x.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(e,p,x){let y;return e.forEach(function(e){var b;let E,O,L,D=!(e.noSharedTooltip&&p)&&0>e.options.findNearestPointBy.indexOf("y"),j=e.searchPoint(x,D);Y(j,!0)&&j.series&&(!Y(y,!0)||(E=(b=y).distX-j.distX,O=b.dist-j.dist,L=j.series.group?.zIndex-b.series.group?.zIndex,(0!==E&&p?E:0!==O?O:0!==L?L:b.series.index>j.series.index?-1:1)>0))&&(y=j)}),y}getChartCoordinatesFromPoint(e,p){let{xAxis:x,yAxis:y}=e.series,b=e.shapeArgs;if(x&&y){let E=e.clientX??e.plotX??0,O=e.plotY||0;return e.isNode&&b&&U(b.x)&&U(b.y)&&(E=b.x,O=b.y),p?{chartX:y.len+y.pos-O,chartY:x.len+x.pos-E}:{chartX:E+x.pos,chartY:O+y.pos}}if(b&&b.x&&b.y)return{chartX:b.x,chartY:b.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:e}=this.chart,p=q(e);this.chartPosition={left:p.left,top:p.top,scaleX:1,scaleY:1};let{offsetHeight:x,offsetWidth:y}=e;return y>2&&x>2&&(this.chartPosition.scaleX=p.width/y,this.chartPosition.scaleY=p.height/x),this.chartPosition}getCoordinates(e){let p={xAxis:[],yAxis:[]};for(let x of this.chart.axes)p[x.isXAxis?"xAxis":"yAxis"].push({axis:x,value:x.toValue(e[x.horiz?"chartX":"chartY"])});return p}getHoverData(e,p,x,y,b,E){let O=[],L=function(e){return e.visible&&!(!b&&e.directTouch)&&K(e.options.enableMouseTracking,!0)},D=p,j,R={chartX:E?E.chartX:void 0,chartY:E?E.chartY:void 0,shared:b};H(this,"beforeGetHoverData",R),j=D&&!D.stickyTracking?[D]:x.filter(e=>e.stickyTracking&&(R.filter||L)(e));let z=y&&e||!E?e:this.findNearestKDPoint(j,b,E);return D=z&&z.series,z&&(b&&!D.noSharedTooltip?(j=x.filter(function(e){return R.filter?R.filter(e):L(e)&&!e.noSharedTooltip})).forEach(function(e){let p=F(e.points,function(e){return e.x===z.x&&!e.isNull});Y(p)&&(e.boosted&&e.boost&&(p=e.boost.getPoint(p)),O.push(p))}):O.push(z)),H(this,"afterGetHoverData",R={hoverPoint:z}),{hoverPoint:R.hoverPoint,hoverSeries:D,hoverPoints:O}}getPointFromEvent(e){let p=e.target,x;for(;p&&!x;)x=p.point,p=p.parentNode;return x}onTrackerMouseOut(e){let p=this.chart,x=e.relatedTarget,y=p.hoverSeries;this.isDirectTouch=!1,!y||!x||y.stickyTracking||this.inClass(x,"highcharts-tooltip")||this.inClass(x,"highcharts-series-"+y.index)&&this.inClass(x,"highcharts-tracker")||y.onMouseOut()}inClass(e,p){let x=e,y;for(;x;){if(y=j(x,"class")){if(-1!==y.indexOf(p))return!0;if(-1!==y.indexOf("highcharts-container"))return!1}x=x.parentElement}}constructor(e,p){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=p,this.chart=e,this.runChartClick=!!p.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),H(this,"afterInit")}normalize(e,p){let x=e.touches,y=x?x.length?x.item(0):K(x.changedTouches,e.changedTouches)[0]:e;p||(p=this.getChartPosition());let b=y.pageX-p.left,E=y.pageY-p.top;return z(e,{chartX:Math.round(b/=p.scaleX),chartY:Math.round(E/=p.scaleY)})}onContainerClick(e){let p=this.chart,x=p.hoverPoint,y=this.normalize(e),b=p.plotLeft,E=p.plotTop;!p.cancelClick&&(x&&this.inClass(y.target,"highcharts-tracker")?(H(x.series,"click",z(y,{point:x})),p.hoverPoint&&x.firePointEvent("click",y)):(z(y,this.getCoordinates(y)),p.isInsidePlot(y.chartX-b,y.chartY-E,{visiblePlotOnly:!0})&&H(p,"click",y)))}onContainerMouseDown(e){let x=(1&(e.buttons||e.button))==1;e=this.normalize(e),p.isFirefox&&0!==e.button&&this.onContainerMouseMove(e),(void 0===e.button||x)&&(this.zoomOption(e),x&&e.preventDefault?.(),this.dragStart(e))}onContainerMouseLeave(e){let{pointer:p}=E[K(S.hoverChartIndex,-1)]||{};e=this.normalize(e),this.onContainerMouseMove(e),p&&e.relatedTarget&&!this.inClass(e.relatedTarget,"highcharts-tooltip")&&(p.reset(),p.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(e){let p=this.chart,x=p.tooltip,y=this.normalize(e);this.setHoverChartIndex(e),("mousedown"===p.mouseIsDown||this.touchSelect(y))&&this.drag(y),!p.openMenu&&(this.inClass(y.target,"highcharts-tracker")||p.isInsidePlot(y.chartX-p.plotLeft,y.chartY-p.plotTop,{visiblePlotOnly:!0}))&&!(x&&x.shouldStickOnContact(y))&&(this.inClass(y.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(y))}onDocumentTouchEnd(e){this.onDocumentMouseUp(e)}onContainerTouchMove(e){this.touchSelect(e)?this.onContainerMouseMove(e):this.touch(e)}onContainerTouchStart(e){this.touchSelect(e)?this.onContainerMouseDown(e):(this.zoomOption(e),this.touch(e,!0))}onDocumentMouseMove(e){let p=this.chart,x=p.tooltip,y=this.chartPosition,b=this.normalize(e,y);!y||p.isInsidePlot(b.chartX-p.plotLeft,b.chartY-p.plotTop,{visiblePlotOnly:!0})||x&&x.shouldStickOnContact(b)||this.inClass(b.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(e){E[K(S.hoverChartIndex,-1)]?.pointer?.drop(e)}pinch(e){let p=this,{chart:x,hasZoom:y,lastTouches:b}=p,E=[].map.call(e.touches||[],e=>p.normalize(e)),O=E.length,L=1===O&&(p.inClass(e.target,"highcharts-tracker")&&x.runTrackerClick||p.runChartClick),D=x.tooltip,j=1===O&&K(D?.options.followTouchMove,!0);O>1?p.initiated=!0:j&&(p.initiated=!1),y&&p.initiated&&!L&&!1!==e.cancelable&&e.preventDefault(),"touchstart"===e.type?(p.pinchDown=E,p.res=!0):j?this.runPointActions(p.normalize(e)):b&&(H(x,"touchpan",{originalEvent:e,touches:E},()=>{let p=e=>{let p=e[0],x=e[1]||p;return{x:p.chartX,y:p.chartY,width:x.chartX-p.chartX,height:x.chartY-p.chartY}};x.transform({axes:x.axes.filter(e=>e.zoomEnabled&&(this.zoomHor&&e.horiz||this.zoomVert&&!e.horiz)),to:p(E),from:p(b),trigger:e.type})}),p.res&&(p.res=!1,this.reset(!1,0))),p.lastTouches=E}reset(e,p){let x=this.chart,y=x.hoverSeries,b=x.hoverPoint,E=x.hoverPoints,O=x.tooltip,L=O&&O.shared?E:b;e&&L&&_(L).forEach(function(p){p.series.isCartesian&&void 0===p.plotX&&(e=!1)}),e?O&&L&&_(L).length&&(O.refresh(L),O.shared&&E?E.forEach(function(e){e.setState(e.state,!0),e.series.isCartesian&&(e.series.xAxis.crosshair&&e.series.xAxis.drawCrosshair(null,e),e.series.yAxis.crosshair&&e.series.yAxis.drawCrosshair(null,e))}):b&&(b.setState(b.state,!0),x.axes.forEach(function(e){e.crosshair&&b.series[e.coll]===e&&e.drawCrosshair(null,b)}))):(b&&b.onMouseOut(),E&&E.forEach(function(e){e.setState()}),y&&y.onMouseOut(),O&&O.hide(p),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),x.axes.forEach(function(e){e.hideCrosshair()}),x.hoverPoints=x.hoverPoint=void 0)}runPointActions(e,p,x){let y=this.chart,b=y.series,O=y.tooltip&&y.tooltip.options.enabled?y.tooltip:void 0,L=!!O&&O.shared,j=p||y.hoverPoint,R=j&&j.series||y.hoverSeries,z=(!e||"touchmove"!==e.type)&&(!!p||R&&R.directTouch&&this.isDirectTouch),H=this.getHoverData(j,R,b,z,L,e);j=H.hoverPoint,R=H.hoverSeries;let U=H.hoverPoints,Y=R&&R.tooltipOptions.followPointer&&!R.tooltipOptions.split,V=L&&R&&!R.noSharedTooltip;if(j&&(x||j!==y.hoverPoint||O&&O.isHidden)){if((y.hoverPoints||[]).forEach(function(e){-1===U.indexOf(e)&&e.setState()}),y.hoverSeries!==R&&R.onMouseOver(),this.applyInactiveState(U),(U||[]).forEach(function(e){e.setState("hover")}),y.hoverPoint&&y.hoverPoint.firePointEvent("mouseOut"),!j.series)return;y.hoverPoints=U,y.hoverPoint=j,j.firePointEvent("mouseOver",void 0,()=>{O&&j&&O.refresh(V?U:j,e)})}else if(Y&&O&&!O.isHidden){let p=O.getAnchor([{}],e);y.isInsidePlot(p[0],p[1],{visiblePlotOnly:!0})&&O.updatePosition({plotX:p[0],plotY:p[1]})}this.unDocMouseMove||(this.unDocMouseMove=D(y.container.ownerDocument,"mousemove",e=>E[S.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(e)),this.eventsToUnbind.push(this.unDocMouseMove)),y.axes.forEach(function(p){let x;let b=K((p.crosshair||{}).snap,!0);!b||(x=y.hoverPoint)&&x.series[p.coll]===p||(x=F(U,e=>e.series&&e.series[p.coll]===p)),x||!b?p.drawCrosshair(e,x):p.hideCrosshair()})}setDOMEvents(){let e=this.chart.container,p=e.ownerDocument;e.onmousedown=this.onContainerMouseDown.bind(this),e.onmousemove=this.onContainerMouseMove.bind(this),e.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(D(e,"mouseenter",this.onContainerMouseEnter.bind(this)),D(e,"mouseleave",this.onContainerMouseLeave.bind(this))),S.unbindDocumentMouseUp||(S.unbindDocumentMouseUp=D(p,"mouseup",this.onDocumentMouseUp.bind(this)));let x=this.chart.renderTo.parentElement;for(;x&&"BODY"!==x.tagName;)this.eventsToUnbind.push(D(x,"scroll",()=>{delete this.chartPosition})),x=x.parentElement;this.eventsToUnbind.push(D(e,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),D(e,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),S.unbindDocumentTouchEnd||(S.unbindDocumentTouchEnd=D(p,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),D(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){if(!L)return;let e=this.pointerCaptureEventsToUnbind,p=this.chart,x=p.container,y=K(p.options.tooltip?.followTouchMove,!0)&&p.series.some(e=>e.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&y?(e.push(D(x,"pointerdown",e=>{e.target?.hasPointerCapture(e.pointerId)&&e.target?.releasePointerCapture(e.pointerId)}),D(x,"pointermove",e=>{p.pointer?.getPointFromEvent(e)?.onMouseOver(e)})),p.styledMode||R(x,{"touch-action":"none"}),x.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!y&&(e.forEach(e=>e()),e.length=0,p.styledMode||R(x,{"touch-action":K(p.options.chart.style?.["touch-action"],"manipulation")}),x.className=x.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(e){let x=this.chart,y=p.charts[K(S.hoverChartIndex,-1)];y&&y!==x&&y.pointer?.onContainerMouseLeave(e||{relatedTarget:x.container}),y&&y.mouseIsDown||(S.hoverChartIndex=x.index)}touch(e,p){let x;let{chart:y,pinchDown:b=[]}=this;this.setHoverChartIndex(),1===e.touches.length?(e=this.normalize(e),y.isInsidePlot(e.chartX-y.plotLeft,e.chartY-y.plotTop,{visiblePlotOnly:!0})&&!y.openMenu?(p&&this.runPointActions(e),"touchmove"===e.type&&(x=!!b[0]&&Math.pow(b[0].chartX-e.chartX,2)+Math.pow(b[0].chartY-e.chartY,2)>=16),K(x,!0)&&this.pinch(e)):p&&this.reset()):2===e.touches.length&&this.pinch(e)}touchSelect(e){return!!(this.chart.zooming.singleTouch&&e.touches&&1===e.touches.length)}zoomOption(e){let p=this.chart,x=p.inverted,y=p.zooming.type||"",b,E;/touch/.test(e.type)&&(y=K(p.zooming.pinchType,y)),this.zoomX=b=/x/.test(y),this.zoomY=E=/y/.test(y),this.zoomHor=b&&!x||E&&x,this.zoomVert=E&&!x||b&&x,this.hasZoom=b||E}};return(y=S||(S={})).compose=function(e){$(O,"Core.Pointer")&&D(e,"beforeRender",function(){this.pointer=new y(this,this.options)})},S}),x(p,"Core/Legend/Legend.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Templating.js"],p["Core/Globals.js"],p["Core/Series/Point.js"],p["Core/Renderer/RendererUtilities.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E){var O;let{animObject:L,setAnimation:D}=e,{format:j}=p,{composed:R,marginNames:z}=x,{distribute:F}=b,{addEvent:H,createElement:U,css:Y,defined:V,discardElement:q,find:K,fireEvent:$,isNumber:_,merge:Z,pick:J,pushUnique:tt,relativeLength:te,stableSort:ti,syncTimeout:ts}=E;let T=class T{constructor(e,p){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=e,this.setOptions(p),p.enabled&&(this.render(),H(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),H(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(e){let p=J(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=Z(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=p,this.initialItemY=p-5,this.symbolWidth=J(e.symbolWidth,16),this.pages=[],this.proximate="proximate"===e.layout&&!this.chart.inverted,this.baseline=void 0}update(e,p){let x=this.chart;this.setOptions(Z(!0,this.options,e)),this.destroy(),x.isDirtyLegend=x.isDirtyBox=!0,J(p,!0)&&x.redraw(),$(this,"afterUpdate",{redraw:p})}colorizeItem(e,p){let{area:x,group:y,label:b,line:E,symbol:O}=e.legendItem||{};if(y?.[p?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:y={}}=this,L=y.color,{fillColor:D,fillOpacity:j,lineColor:R,marker:z}=e.options,F=e=>(!p&&(e.fill&&(e.fill=L),e.stroke&&(e.stroke=L)),e);b?.css(Z(p?this.itemStyle:y)),E?.attr(F({stroke:R||e.color})),O&&O.attr(F(z&&O.isMarker?e.pointAttribs():{fill:e.color})),x?.attr(F({fill:D||e.color,"fill-opacity":D?1:j??.75}))}$(this,"afterColorizeItem",{item:e,visible:p})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(e){let{group:p,x:x=0,y:y=0}=e.legendItem||{},b=this.options,E=b.symbolPadding,O=!b.rtl,L=e.checkbox;if(p&&p.element){let b={translateX:O?x:this.legendWidth-x-2*E-4,translateY:y};p[V(p.translateY)?"animate":"attr"](b,void 0,()=>{$(this,"afterPositionItem",{item:e})})}L&&(L.x=x,L.y=y)}destroyItem(e){let p=e.checkbox,x=e.legendItem||{};for(let e of["group","label","line","symbol"])x[e]&&(x[e]=x[e].destroy());p&&q(p),e.legendItem=void 0}destroy(){for(let e of this.getAllItems())this.destroyItem(e);for(let e of["clipRect","up","down","pager","nav","box","title","group"])this[e]&&(this[e]=this[e].destroy());this.display=null}positionCheckboxes(){let e;let p=this.group&&this.group.alignAttr,x=this.clipHeight||this.legendHeight,y=this.titleHeight;p&&(e=p.translateY,this.allItems.forEach(function(b){let E;let O=b.checkbox;O&&(E=e+y+O.y+(this.scrollOffset||0)+3,Y(O,{left:p.translateX+b.checkboxOffset+O.x-20+"px",top:E+"px",display:this.proximate||E>e-6&&E1.5*tt?_.height:tt))}layoutItem(e){let p=this.options,x=this.padding,y="horizontal"===p.layout,b=e.itemHeight,E=this.itemMarginBottom,O=this.itemMarginTop,L=y?J(p.itemDistance,20):0,D=this.maxLegendWidth,j=p.alignColumns&&this.totalItemWidth>D?this.maxItemWidth:e.itemWidth,R=e.legendItem||{};y&&this.itemX-x+j>D&&(this.itemX=x,this.lastLineHeight&&(this.itemY+=O+this.lastLineHeight+E),this.lastLineHeight=0),this.lastItemY=O+this.itemY+E,this.lastLineHeight=Math.max(b,this.lastLineHeight),R.x=this.itemX,R.y=this.itemY,y?this.itemX+=j:(this.itemY+=O+b+E,this.lastLineHeight=b),this.offsetWidth=this.widthOption||Math.max((y?this.itemX-x-(e.checkbox?0:L):j)+x,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(p){let x=p&&p.options;p&&J(x.showInLegend,!V(x.linkedTo)&&void 0,!0)&&(e=e.concat((p.legendItem||{}).labels||("point"===x.legendType?p.data:p)))}),$(this,"afterGetAllItems",{allItems:e}),e}getAlignment(){let e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)}adjustMargins(e,p){let x=this.chart,y=this.options,b=this.getAlignment();b&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(E,O){E.test(b)&&!V(e[O])&&(x[z[O]]=Math.max(x[z[O]],x.legend[(O+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][O]*y[O%2?"x":"y"]+J(y.margin,12)+p[O]+(x.titleOffset[O]||0)))})}proximatePositions(){let e;let p=this.chart,x=[],y="left"===this.options.align;for(let b of(this.allItems.forEach(function(e){let b,E,O=y,L,D;e.yAxis&&(e.xAxis.options.reversed&&(O=!O),e.points&&(b=K(O?e.points:e.points.slice(0).reverse(),function(e){return _(e.plotY)})),E=this.itemMarginTop+e.legendItem.label.getBBox().height+this.itemMarginBottom,D=e.yAxis.top-p.plotTop,L=e.visible?(b?b.plotY:e.yAxis.height)+(D-.3*E):D+e.yAxis.height,x.push({target:L,size:E,item:e}))},this),F(x,p.plotHeight)))e=b.item.legendItem||{},_(b.pos)&&(e.y=p.plotTop-p.spacing[0]+b.pos)}render(){let e=this.chart,p=e.renderer,x=this.options,y=this.padding,b=this.getAllItems(),E,O,L,D=this.group,j,R=this.box;this.itemX=y,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=te(x.width,e.spacingBox.width-y),j=e.spacingBox.width-2*y-x.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(j/=2),this.maxLegendWidth=this.widthOption||j,D||(this.group=D=p.g("legend").addClass(x.className||"").attr({zIndex:7}).add(),this.contentGroup=p.g().attr({zIndex:1}).add(D),this.scrollGroup=p.g().add(this.contentGroup)),this.renderTitle(),ti(b,(e,p)=>(e.options&&e.options.legendIndex||0)-(p.options&&p.options.legendIndex||0)),x.reversed&&b.reverse(),this.allItems=b,this.display=E=!!b.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,b.forEach(this.renderItem,this),b.forEach(this.layoutItem,this),O=(this.widthOption||this.offsetWidth)+y,L=this.lastItemY+this.lastLineHeight+this.titleHeight,L=this.handleOverflow(L)+y,R||(this.box=R=p.rect().addClass("highcharts-legend-box").attr({r:x.borderRadius}).add(D)),e.styledMode||R.attr({stroke:x.borderColor,"stroke-width":x.borderWidth||0,fill:x.backgroundColor||"none"}).shadow(x.shadow),O>0&&L>0&&R[R.placed?"animate":"attr"](R.crisp.call({},{x:0,y:0,width:O,height:L},R.strokeWidth())),D[E?"show":"hide"](),e.styledMode&&"none"===D.getStyle("display")&&(O=L=0),this.legendWidth=O,this.legendHeight=L,E&&this.align(),this.proximate||this.positionItems(),$(this,"afterRender")}align(e=this.chart.spacingBox){let p=this.chart,x=this.options,y=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&p.titleOffset[0]>0?y+=p.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&p.titleOffset[2]>0&&(y-=p.titleOffset[2]),y!==e.y&&(e=Z(e,{y:y})),p.hasRendered||(this.group.placed=!1),this.group.align(Z(x,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":x.verticalAlign}),!0,e)}handleOverflow(e){let p=this,x=this.chart,y=x.renderer,b=this.options,E=b.y,O="top"===b.verticalAlign,L=this.padding,D=b.maxHeight,j=b.navigation,R=J(j.animation,!0),z=j.arrowSize||12,F=this.pages,H=this.allItems,U=function(e){"number"==typeof e?Z.attr({height:e}):Z&&(p.clipRect=Z.destroy(),p.contentGroup.clip()),p.contentGroup.div&&(p.contentGroup.div.style.clip=e?"rect("+L+"px,9999px,"+(L+e)+"px,0)":"auto")},Y=function(e){return p[e]=y.circle(0,0,1.3*z).translate(z/2,z/2).add(_),x.styledMode||p[e].attr("fill","rgba(0,0,0,0.0001)"),p[e]},V,q,K,$=x.spacingBox.height+(O?-E:E)-L,_=this.nav,Z=this.clipRect;return"horizontal"!==b.layout||"middle"===b.verticalAlign||b.floating||($/=2),D&&($=Math.min($,D)),F.length=0,e&&$>0&&e>$&&!1!==j.enabled?(this.clipHeight=V=Math.max($-20-this.titleHeight-L,0),this.currentPage=J(this.currentPage,1),this.fullHeight=e,H.forEach((e,p)=>{let x=(K=e.legendItem||{}).y||0,y=Math.round(K.label.getBBox().height),b=F.length;(!b||x-F[b-1]>V&&(q||x)!==F[b-1])&&(F.push(q||x),b++),K.pageIx=b-1,q&&((H[p-1].legendItem||{}).pageIx=b-1),p===H.length-1&&x+y-F[b-1]>V&&x>F[b-1]&&(F.push(x),K.pageIx=b),x!==q&&(q=x)}),Z||(Z=p.clipRect=y.clipRect(0,L-2,9999,0),p.contentGroup.clip(Z)),U(V),_||(this.nav=_=y.g().attr({zIndex:1}).add(this.group),this.up=y.symbol("triangle",0,0,z,z).add(_),Y("upTracker").on("click",function(){p.scroll(-1,R)}),this.pager=y.text("",15,10).addClass("highcharts-legend-navigation"),!x.styledMode&&j.style&&this.pager.css(j.style),this.pager.add(_),this.down=y.symbol("triangle-down",0,0,z,z).add(_),Y("downTracker").on("click",function(){p.scroll(1,R)})),p.scroll(0),e=$):_&&(U(),this.nav=_.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}scroll(e,p){let x=this.chart,y=this.pages,b=y.length,E=this.clipHeight,O=this.options.navigation,j=this.pager,R=this.padding,z=this.currentPage+e;z>b&&(z=b),z>0&&(void 0!==p&&D(p,x),this.nav.attr({translateX:R,translateY:E+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(e){e.attr({class:1===z?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),j.attr({text:z+"/"+b}),[this.down,this.downTracker].forEach(function(e){e.attr({x:18+this.pager.getBBox().width,class:z===b?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),x.styledMode||(this.up.attr({fill:1===z?O.inactiveColor:O.activeColor}),this.upTracker.css({cursor:1===z?"default":"pointer"}),this.down.attr({fill:z===b?O.inactiveColor:O.activeColor}),this.downTracker.css({cursor:z===b?"default":"pointer"})),this.scrollOffset=-y[z-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=z,this.positionCheckboxes(),ts(()=>{$(this,"afterScroll",{currentPage:z})},L(J(p,x.renderer.globalAnimation,!0)).duration))}setItemEvents(e,p,x){let b=this,E=e.legendItem||{},O=b.chart.renderer.boxWrapper,L=e instanceof y,D="highcharts-legend-"+(L?"point":"series")+"-active",j=b.chart.styledMode,R=x?[p,E.symbol]:[E.group],z=p=>{b.allItems.forEach(x=>{e!==x&&[x].concat(x.linkedSeries||[]).forEach(e=>{e.setState(p,!L)})})};for(let x of R)x&&x.on("mouseover",function(){e.visible&&z("inactive"),e.setState("hover"),e.visible&&O.addClass(D),j||p.css(b.options.itemHoverStyle)}).on("mouseout",function(){b.chart.styledMode||p.css(Z(e.visible?b.itemStyle:b.itemHiddenStyle)),z(""),O.removeClass(D),e.setState()}).on("click",function(p){let x="legendItemClick",y=function(){e.setVisible&&e.setVisible(),z(e.visible?"inactive":"")};O.removeClass(D),p={browserEvent:p},e.firePointEvent?e.firePointEvent(x,p,y):$(e,x,p,y)})}createCheckboxForItem(e){e.checkbox=U("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),H(e.checkbox,"click",function(p){let x=p.target;$(e.series||e,"checkboxClick",{checked:x.checked,item:e},function(){e.select()})})}};return(O=T||(T={})).compose=function(e){tt(R,"Core.Legend")&&H(e,"beforeMargins",function(){this.legend=new O(this,this.options.legend)})},T}),x(p,"Core/Legend/LegendSymbol.js",[p["Core/Utilities.js"]],function(e){var p;let{extend:x,merge:y,pick:b}=e;return function(e){function p(e,p,E){let O=this.legendItem=this.legendItem||{},{chart:L,options:D}=this,{baseline:j=0,symbolWidth:R,symbolHeight:z}=e,F=this.symbol||"circle",H=z/2,U=L.renderer,Y=O.group,V=j-Math.round(z*(E?.4:.3)),q={},K,$=D.marker,_=0;if(L.styledMode||(q["stroke-width"]=Math.min(D.lineWidth||0,24),D.dashStyle?q.dashstyle=D.dashStyle:"square"===D.linecap||(q["stroke-linecap"]="round")),O.line=U.path().addClass("highcharts-graph").attr(q).add(Y),E&&(O.area=U.path().addClass("highcharts-area").add(Y)),q["stroke-linecap"]&&(_=Math.min(O.line.strokeWidth(),R)/2),R){let e=[["M",_,V],["L",R-_,V]];O.line.attr({d:e}),O.area?.attr({d:[...e,["L",R-_,j],["L",_,j]]})}if($&&!1!==$.enabled&&R){let e=Math.min(b($.radius,H),H);0===F.indexOf("url")&&($=y($,{width:z,height:z}),e=0),O.symbol=K=U.symbol(F,R/2-e,V-e,2*e,2*e,x({context:"legend"},$)).addClass("highcharts-point").add(Y),K.isMarker=!0}}e.areaMarker=function(e,x){p.call(this,e,x,!0)},e.lineMarker=p,e.rectangle=function(e,p){let x=p.legendItem||{},y=e.options,E=e.symbolHeight,O=y.squareSymbol,L=O?E:e.symbolWidth;x.symbol=this.chart.renderer.rect(O?(e.symbolWidth-E)/2:0,e.baseline-E+1,L,E,b(e.options.symbolRadius,E/2)).addClass("highcharts-point").attr({zIndex:3}).add(x.group)}}(p||(p={})),p}),x(p,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:e}=this.series.chart;return"number"!=typeof this.y?"":e(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),x(p,"Core/Series/SeriesRegistry.js",[p["Core/Globals.js"],p["Core/Defaults.js"],p["Core/Series/Point.js"],p["Core/Utilities.js"]],function(e,p,x,y){var b;let{defaultOptions:E}=p,{extend:O,extendClass:L,merge:D}=y;return function(p){function y(e,y){let b=E.plotOptions||{},O=y.defaultOptions,L=y.prototype;return L.type=e,L.pointClass||(L.pointClass=x),!p.seriesTypes[e]&&(O&&(b[e]=O),p.seriesTypes[e]=y,!0)}p.seriesTypes=e.seriesTypes,p.registerSeriesType=y,p.seriesType=function(e,b,j,R,z){let F=E.plotOptions||{};if(b=b||"",F[e]=D(F[b],j),delete p.seriesTypes[e],y(e,L(p.seriesTypes[b]||function(){},R)),p.seriesTypes[e].prototype.type=e,z){let s=class s extends x{};O(s.prototype,z),p.seriesTypes[e].prototype.pointClass=s}return p.seriesTypes[e]}}(b||(b={})),b}),x(p,"Core/Series/Series.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Defaults.js"],p["Core/Foundation.js"],p["Core/Globals.js"],p["Core/Legend/LegendSymbol.js"],p["Core/Series/Point.js"],p["Core/Series/SeriesDefaults.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Renderer/SVG/SVGElement.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E,O,L,D,j){let{animObject:R,setAnimation:z}=e,{defaultOptions:F}=p,{registerEventOptions:H}=x,{svg:U,win:Y}=y,{seriesTypes:V}=L,{arrayMax:q,arrayMin:K,clamp:$,correctFloat:_,crisp:Z,defined:J,destroyObjectProperties:tt,diffObjects:te,erase:ti,error:ts,extend:to,find:tr,fireEvent:tn,getClosestDistance:ta,getNestedProperty:tl,insertItem:th,isArray:td,isNumber:tc,isString:tp,merge:tu,objectEach:tg,pick:tm,removeEvent:tf,splat:tx,syncTimeout:ty}=j;let X=class X{constructor(){this.zoneAxis="y"}init(e,p){let x;tn(this,"init",{options:p});let y=this,b=e.series;this.eventsToUnbind=[],y.chart=e,y.options=y.setOptions(p);let E=y.options,O=!1!==E.visible;y.linkedSeries=[],y.bindAxes(),to(y,{name:E.name,state:"",visible:O,selected:!0===E.selected}),H(this,E);let L=E.events;(L&&L.click||E.point&&E.point.events&&E.point.events.click||E.allowPointSelect)&&(e.runTrackerClick=!0),y.getColor(),y.getSymbol(),y.parallelArrays.forEach(function(e){y[e+"Data"]||(y[e+"Data"]=[])}),y.isCartesian&&(e.hasCartesianSeries=!0),b.length&&(x=b[b.length-1]),y._i=tm(x&&x._i,-1)+1,y.opacity=y.options.opacity,e.orderItems("series",th(this,b)),E.dataSorting&&E.dataSorting.enabled?y.setDataSortingOptions():y.points||y.data||y.setData(E.data,!1),tn(this,"afterInit")}is(e){return V[e]&&this instanceof V[e]}bindAxes(){let e;let p=this,x=p.options,y=p.chart;tn(this,"bindAxes",null,function(){(p.axisTypes||[]).forEach(function(b){(y[b]||[]).forEach(function(y){e=y.options,(tm(x[b],0)===y.index||void 0!==x[b]&&x[b]===e.id)&&(th(p,y.series),p[b]=y,y.isDirty=!0)}),p[b]||p.optionalAxis===b||ts(18,!0,y)})}),tn(this,"afterBindAxes")}updateParallelArrays(e,p,x){let y=e.series,b=tc(p)?function(x){let b="y"===x&&y.toYData?y.toYData(e):e[x];y[x+"Data"][p]=b}:function(e){Array.prototype[p].apply(y[e+"Data"],x)};y.parallelArrays.forEach(b)}hasData(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(e,p){let x=e.marker,y=p.marker||{};return x&&(y.enabled&&!x.enabled||y.symbol!==x.symbol||y.height!==x.height||y.width!==x.width)}autoIncrement(e){let p=this.options,x=p.pointIntervalUnit,y=p.relativeXValue,b=this.chart.time,E=this.xIncrement,O,L;return(E=tm(E,p.pointStart,0),this.pointInterval=L=tm(this.pointInterval,p.pointInterval,1),y&&tc(e)&&(L*=e),x&&(O=new b.Date(E),"day"===x?b.set("Date",O,b.get("Date",O)+L):"month"===x?b.set("Month",O,b.get("Month",O)+L):"year"===x&&b.set("FullYear",O,b.get("FullYear",O)+L),L=O.getTime()-E),y&&tc(e))?E+L:(this.xIncrement=E+L,E)}setDataSortingOptions(){let e=this.options;to(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),J(e.pointRange)||(e.pointRange=1)}setOptions(e){let p;let x=this.chart,y=x.options.plotOptions,b=x.userOptions||{},E=tu(e),O=x.styledMode,L={plotOptions:y,userOptions:E};tn(this,"setOptions",L);let D=L.plotOptions[this.type],j=b.plotOptions||{},R=j.series||{},z=F.plotOptions[this.type]||{},H=j[this.type]||{};this.userOptions=L.userOptions;let U=tu(D,y.series,H,E);this.tooltipOptions=tu(F.tooltip,F.plotOptions.series?.tooltip,z?.tooltip,x.userOptions.tooltip,j.series?.tooltip,H.tooltip,E.tooltip),this.stickyTracking=tm(E.stickyTracking,H.stickyTracking,R.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||U.stickyTracking),null===D.marker&&delete U.marker,this.zoneAxis=U.zoneAxis||"y";let Y=this.zones=(U.zones||[]).map(e=>({...e}));return(U.negativeColor||U.negativeFillColor)&&!U.zones&&(p={value:U[this.zoneAxis+"Threshold"]||U.threshold||0,className:"highcharts-negative"},O||(p.color=U.negativeColor,p.fillColor=U.negativeFillColor),Y.push(p)),Y.length&&J(Y[Y.length-1].value)&&Y.push(O?{}:{color:this.color,fillColor:this.fillColor}),tn(this,"afterSetOptions",{options:U}),U}getName(){return tm(this.options.name,"Series "+(this.index+1))}getCyclic(e,p,x){let y,b;let E=this.chart,O=`${e}Index`,L=`${e}Counter`,D=x?.length||E.options.chart.colorCount;!p&&(J(b=tm("color"===e?this.options.colorIndex:void 0,this[O]))?y=b:(E.series.length||(E[L]=0),y=E[L]%D,E[L]+=1),x&&(p=x[y])),void 0!==y&&(this[O]=y),this[e]=p}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||F.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let e=this.options.marker;this.getCyclic("symbol",e.symbol,this.chart.options.symbols)}findPointIndex(e,p){let x,y,b;let O=e.id,L=e.x,D=this.points,j=this.options.dataSorting;if(O){let e=this.chart.get(O);e instanceof E&&(x=e)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let p=p=>!p.touched&&p.index===e.index;if(j&&j.matchByName?p=p=>!p.touched&&p.name===e.name:this.options.relativeXValue&&(p=p=>!p.touched&&p.options.x===e.x),!(x=tr(D,p)))return}return x&&void 0!==(b=x&&x.index)&&(y=!0),void 0===b&&tc(L)&&(b=this.xData.indexOf(L,p)),-1!==b&&void 0!==b&&this.cropped&&(b=b>=this.cropStart?b-this.cropStart:b),!y&&tc(b)&&D[b]&&D[b].touched&&(b=void 0),b}updateData(e,p){let x=this.options,y=x.dataSorting,b=this.points,E=[],O=this.requireSorting,L=e.length===b.length,D,j,R,z,F=!0;if(this.xIncrement=null,e.forEach(function(e,p){let j;let R=J(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e)||{},F=R.x;R.id||tc(F)?(-1===(j=this.findPointIndex(R,z))||void 0===j?E.push(e):b[j]&&e!==x.data[j]?(b[j].update(e,!1,null,!1),b[j].touched=!0,O&&(z=j+1)):b[j]&&(b[j].touched=!0),(!L||p!==j||y&&y.enabled||this.hasDerivedData)&&(D=!0)):E.push(e)},this),D)for(j=b.length;j--;)(R=b[j])&&!R.touched&&R.remove&&R.remove(!1,p);else!L||y&&y.enabled?F=!1:(e.forEach(function(e,p){e===b[p].y||b[p].destroyed||b[p].update(e,!1,null,!1)}),E.length=0);return b.forEach(function(e){e&&(e.touched=!1)}),!!F&&(E.forEach(function(e){this.addPoint(e,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=q(this.xData),this.autoIncrement()),!0)}setData(e,p=!0,x,y){let b=this,E=b.points,O=E&&E.length||0,L=b.options,D=b.chart,j=L.dataSorting,R=b.xAxis,z=L.turboThreshold,F=this.xData,H=this.yData,U=b.pointArrayMap,Y=U&&U.length,V=L.keys,q,K,$,_=0,Z=1,J=null,tt;D.options.chart.allowMutatingData||(L.data&&delete b.options.data,b.userOptions.data&&delete b.userOptions.data,tt=tu(!0,e));let te=(e=tt||e||[]).length;if(j&&j.enabled&&(e=this.sortData(e)),D.options.chart.allowMutatingData&&!1!==y&&te&&O&&!b.cropped&&!b.hasGroupedData&&b.visible&&!b.boosted&&($=this.updateData(e,x)),!$){if(b.xIncrement=null,b.colorCounter=0,this.parallelArrays.forEach(function(e){b[e+"Data"].length=0}),z&&te>z){if(tc(J=b.getFirstValidPoint(e)))for(q=0;q=0?_:0,Z=Z>=0?Z:1),1===J.length&&(Z=0),_===Z)for(q=0;q{let y=tl(x,e),b=tl(x,p);return by?1:0}).forEach(function(e,p){e.x=p},this),p.linkedSeries&&p.linkedSeries.forEach(function(p){let x=p.options,b=x.data;x.dataSorting&&x.dataSorting.enabled||!b||(b.forEach(function(x,E){b[E]=y(p,x),e[E]&&(b[E].x=e[E].x,b[E].index=E)}),p.setData(b,!1))}),e}getProcessedData(e){let p=this,x=p.xAxis,y=p.options.cropThreshold,b=x?.logarithmic,E=p.isCartesian,O,L,D=0,j,R,z,F=p.xData,H=p.yData,U=!1,Y=F.length;x&&(R=(j=x.getExtremes()).min,z=j.max,U=!!(x.categories&&!x.names.length)),E&&p.sorted&&!e&&(!y||Y>y||p.forceCrop)&&(F[Y-1]z?(F=[],H=[]):p.yData&&(F[0]z)&&(F=(O=this.cropData(p.xData,p.yData,R,z)).xData,H=O.yData,D=O.start,L=!0));let V=ta([b?F.map(b.log2lin):F],()=>p.requireSorting&&!U&&ts(15,!1,p.chart));return{xData:F,yData:H,cropped:L,cropStart:D,closestPointRange:V}}processData(e){let p=this.xAxis;if(this.isCartesian&&!this.isDirty&&!p.isDirty&&!this.yAxis.isDirty&&!e)return!1;let x=this.getProcessedData();this.cropped=x.cropped,this.cropStart=x.cropStart,this.processedXData=x.xData,this.processedYData=x.yData,this.closestPointRange=this.basePointRange=x.closestPointRange,tn(this,"afterProcessData")}cropData(e,p,x,y){let b=e.length,E,O,L=0,D=b;for(E=0;E=x){L=Math.max(0,E-1);break}for(O=E;Oy){D=O+1;break}return{xData:e.slice(L,D),yData:p.slice(L,D),start:L,end:D}}generatePoints(){let e=this.options,p=this.processedData||e.data,x=this.processedXData,y=this.processedYData,b=this.pointClass,E=x.length,O=this.cropStart||0,L=this.hasGroupedData,D=e.keys,j=[],R=e.dataGrouping&&e.dataGrouping.groupAll?O:0,z,F,H,U,Y=this.data;if(!Y&&!L){let e=[];e.length=p.length,Y=this.data=e}for(D&&L&&(this.options.keys=!1),U=0;U0:U.length)||!O),F=p||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!x||(tt[Y+E]||H)>=$&&(tt[Y-E]||H)<=_,z&&F){if(V=U.length)for(;V--;)tc(U[V])&&(b[Z++]=U[V]);else b[Z++]=U}let te={activeYData:b,dataMin:K(b),dataMax:q(b)};return tn(this,"afterGetExtremes",{dataExtremes:te}),te}applyExtremes(){let e=this.getExtremes();return this.dataMin=e.dataMin,this.dataMax=e.dataMax,e}getFirstValidPoint(e){let p=e.length,x=0,y=null;for(;null===y&&x1)&&(E.step=function(e,p){x&&x.apply(p,arguments),"width"===p.prop&&D?.element&&D.attr(b?"height":"width",e+99)}),L.addClass("highcharts-animating").animate(e,E)}}afterAnimate(){this.setClip(),tg(this.chart.sharedClips,(e,p,x)=>{e&&!this.chart.container.querySelector(`[clip-path="url(#${e.id})"]`)&&(e.destroy(),delete x[p])}),this.finishedAnimating=!0,tn(this,"afterAnimate")}drawPoints(e=this.points){let p,x,y,b,E,O,L;let D=this.chart,j=D.styledMode,{colorAxis:R,options:z}=this,F=z.marker,H=this[this.specialGroup||"markerGroup"],U=this.xAxis,Y=tm(F.enabled,!U||!!U.isRadial||null,this.closestPointRangePx>=F.enabledThreshold*F.radius);if(!1!==F.enabled||this._hasPointMarkers)for(p=0;p0||x.hasImage)&&(x.graphic=y=D.renderer.symbol(e,L.x,L.y,L.width,L.height,O?E:F).add(H),this.enabledDataSorting&&D.hasRendered&&(y.attr({x:x.startXPos}),b="animate")),y&&"animate"===b&&y[p?"show":"hide"](p).animate(L),y){let e=this.pointAttribs(x,j||!x.selected?void 0:"select");j?R&&y.css({fill:e.fill}):y[b](e)}y&&y.addClass(x.getClassName(),!0)}else y&&(x.graphic=y.destroy())}markerAttribs(e,p){let x=this.options,y=x.marker,b=e.marker||{},E=b.symbol||y.symbol,O={},L,D,j=tm(b.radius,y&&y.radius);p&&(L=y.states[p],j=tm((D=b.states&&b.states[p])&&D.radius,L&&L.radius,j&&j+(L&&L.radiusPlus||0))),e.hasImage=E&&0===E.indexOf("url"),e.hasImage&&(j=0);let R=e.pos();return tc(j)&&R&&(x.crisp&&(R[0]=Z(R[0],e.hasImage?0:"rect"===E?y?.lineWidth||0:1)),O.x=R[0]-j,O.y=R[1]-j),j&&(O.width=O.height=2*j),O}pointAttribs(e,p){let x=this.options.marker,y=e&&e.options,b=y&&y.marker||{},E=y&&y.color,O=e&&e.color,L=e&&e.zone&&e.zone.color,D,j,R=this.color,z,F,H=tm(b.lineWidth,x.lineWidth),U=1;return R=E||L||O||R,z=b.fillColor||x.fillColor||R,F=b.lineColor||x.lineColor||R,p=p||"normal",D=x.states[p]||{},H=tm((j=b.states&&b.states[p]||{}).lineWidth,D.lineWidth,H+tm(j.lineWidthPlus,D.lineWidthPlus,0)),z=j.fillColor||D.fillColor||z,{stroke:F=j.lineColor||D.lineColor||F,"stroke-width":H,fill:z,opacity:U=tm(j.opacity,D.opacity,U)}}destroy(e){let p,x,y;let b=this,E=b.chart,O=/AppleWebKit\/533/.test(Y.navigator.userAgent),L=b.data||[];for(tn(b,"destroy",{keepEventsForUpdate:e}),this.removeEvents(e),(b.axisTypes||[]).forEach(function(e){(y=b[e])&&y.series&&(ti(y.series,b),y.isDirty=y.forceRedraw=!0)}),b.legendItem&&b.chart.legend.destroyItem(b),p=L.length;p--;)(x=L[p])&&x.destroy&&x.destroy();for(let e of b.zones)tt(e,void 0,!0);j.clearTimeout(b.animationTimeout),tg(b,function(e,p){e instanceof D&&!e.survive&&e[O&&"group"===p?"hide":"destroy"]()}),E.hoverSeries===b&&(E.hoverSeries=void 0),ti(E.series,b),E.orderItems("series"),tg(b,function(p,x){e&&"hcEvents"===x||delete b[x]})}applyZones(){let{area:e,chart:p,graph:x,zones:y,points:b,xAxis:E,yAxis:O,zoneAxis:L}=this,{inverted:D,renderer:j}=p,R=this[`${L}Axis`],{isXAxis:z,len:F=0}=R||{},H=(x?.strokeWidth()||0)/2+1,U=(e,p=0,x=0)=>{D&&(x=F-x);let{translated:y=0,lineClip:b}=e,E=x-y;b?.push(["L",p,Math.abs(E){e.forEach((p,x)=>{("M"===p[0]||"L"===p[0])&&(e[x]=[p[0],z?F-p[1]:p[1],z?p[2]:F-p[2]])})};if(y.forEach(e=>{e.lineClip=[],e.translated=$(R.toPixels(tm(e.value,p),!0)||0,0,F)}),x&&!this.showLine&&x.hide(),e&&e.hide(),"y"===L&&b.length{let y=p.lineClip||[],b=Math.round(p.translated||0);E.reversed&&y.reverse();let{clip:L,simpleClip:R}=p,F=0,U=0,q=E.len,K=O.len;z?(F=b,q=V):(U=b,K=V);let $=[["M",F,U],["L",q,U],["L",q,K],["L",F,K],["Z"]],_=[$[0],...y,$[1],$[2],...Y,$[3],$[4]];Y=y.reverse(),V=b,D&&(H(_),e&&H($)),L?(L.animate({d:_}),R?.animate({d:$})):(L=p.clip=j.path(_),e&&(R=p.simpleClip=j.path($))),x&&p.graph?.clip(L),e&&p.area?.clip(R)})}else this.visible&&(x&&x.show(),e&&e.show())}plotGroup(e,p,x,y,b){let E=this[e],O=!E,L={visibility:x,zIndex:y||.1};return J(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(L.opacity=this.opacity),E||(this[e]=E=this.chart.renderer.g().add(b)),E.addClass("highcharts-"+p+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(J(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(E.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),E.attr(L)[O?"attr":"animate"](this.getPlotBox(p)),E}getPlotBox(e){let p=this.xAxis,x=this.yAxis,y=this.chart,b=y.inverted&&!y.polar&&p&&this.invertible&&"series"===e;return y.inverted&&(p=x,x=this.xAxis),{translateX:p?p.left:y.plotLeft,translateY:x?x.top:y.plotTop,rotation:b?90:0,rotationOriginX:b?(p.len-x.len)/2:0,rotationOriginY:b?(p.len+x.len)/2:0,scaleX:b?-1:1,scaleY:1}}removeEvents(e){let{eventsToUnbind:p}=this;e||tf(this),p.length&&(p.forEach(e=>{e()}),p.length=0)}render(){let e=this,{chart:p,options:x,hasRendered:y}=e,b=R(x.animation),E=e.visible?"inherit":"hidden",O=x.zIndex,L=p.seriesGroup,D=e.finishedAnimating?0:b.duration;tn(this,"render"),e.plotGroup("group","series",E,O,L),e.markerGroup=e.plotGroup("markerGroup","markers",E,O,L),!1!==x.clip&&e.setClip(),D&&e.animate?.(!0),e.drawGraph&&(e.drawGraph(),e.applyZones()),e.visible&&e.drawPoints(),e.drawDataLabels?.(),e.redrawPoints?.(),x.enableMouseTracking&&e.drawTracker?.(),D&&e.animate?.(),y||(D&&b.defer&&(D+=b.defer),e.animationTimeout=ty(()=>{e.afterAnimate()},D||0)),e.isDirty=!1,e.hasRendered=!0,tn(e,"afterRender")}redraw(){let e=this.isDirty||this.isDirtyData;this.translate(),this.render(),e&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(e,p){let{xAxis:x,yAxis:y}=this,b=this.chart.inverted;return this.searchKDTree({clientX:b?x.len-e.chartY+x.pos:e.chartX-x.pos,plotY:b?y.len-e.chartX+y.pos:e.chartY-y.pos},p,e)}buildKDTree(e){this.buildingKdTree=!0;let p=this,x=p.options.findNearestPointBy.indexOf("y")>-1?2:1;delete p.kdTree,ty(function(){p.kdTree=function e(x,y,b){let E,O;let L=x?.length;if(L)return E=p.kdAxisArray[y%b],x.sort((e,p)=>(e[E]||0)-(p[E]||0)),{point:x[O=Math.floor(L/2)],left:e(x.slice(0,O),y+1,b),right:e(x.slice(O+1),y+1,b)}}(p.getValidPoints(void 0,!p.directTouch),x,x),p.buildingKdTree=!1},p.options.kdNow||e?.type==="touchstart"?0:1)}searchKDTree(e,p,x){let y=this,[b,E]=this.kdAxisArray,O=p?"distX":"dist",L=(y.options.findNearestPointBy||"").indexOf("y")>-1?2:1,D=!!y.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(x),this.kdTree)return function e(p,x,L,j){let R,z,F,H,U,Y,V,q=x.point,K=y.kdAxisArray[L%j],$,_,Z=q;R=p[b],z=q[b],F=J(R)&&J(z)?R-z:null,H=p[E],U=q[E],Y=J(H)&&J(U)?H-U:0,V=D&&q.marker?.radius||0,q.dist=Math.sqrt((F&&F*F||0)+Y*Y)-V,q.distX=J(F)?Math.abs(F)-V:Number.MAX_VALUE;let tt=(p[K]||0)-(q[K]||0)+(D&&q.marker?.radius||0),te=tt<0?"left":"right",ti=tt<0?"right":"left";return x[te]&&(Z=($=e(p,x[te],L+1,j))[O]=0&&E<=(y?y.len:p.plotHeight)&&b>=0&&b<=(x?x.len:p.plotWidth)}drawTracker(){let e=this,p=e.options,x=p.trackByArea,y=[].concat((x?e.areaPath:e.graphPath)||[]),b=e.chart,E=b.pointer,O=b.renderer,L=b.options.tooltip?.snap||0,D=()=>{p.enableMouseTracking&&b.hoverSeries!==e&&e.onMouseOver()},j="rgba(192,192,192,"+(U?1e-4:.002)+")",R=e.tracker;R?R.attr({d:y}):e.graph&&(e.tracker=R=O.path(y).attr({visibility:e.visible?"inherit":"hidden",zIndex:2}).addClass(x?"highcharts-tracker-area":"highcharts-tracker-line").add(e.group),b.styledMode||R.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:j,fill:x?j:"none","stroke-width":e.graph.strokeWidth()+(x?0:2*L)}),[e.tracker,e.markerGroup,e.dataLabelsGroup].forEach(e=>{e&&(e.addClass("highcharts-tracker").on("mouseover",D).on("mouseout",e=>{E?.onTrackerMouseOut(e)}),p.cursor&&!b.styledMode&&e.css({cursor:p.cursor}),e.on("touchstart",D))})),tn(this,"afterDrawTracker")}addPoint(e,p,x,y,b){let E,O;let L=this.options,D=this.data,j=this.chart,R=this.xAxis,z=R&&R.hasNames&&R.names,F=L.data,H=this.xData;p=tm(p,!0);let U={series:this};this.pointClass.prototype.applyOptions.apply(U,[e]);let Y=U.x;if(O=H.length,this.requireSorting&&YY;)O--;this.updateParallelArrays(U,"splice",[O,0,0]),this.updateParallelArrays(U,O),z&&U.name&&(z[Y]=U.name),F.splice(O,0,e),(E||this.processedData)&&(this.data.splice(O,0,null),this.processData()),"point"===L.legendType&&this.generatePoints(),x&&(D[0]&&D[0].remove?D[0].remove(!1):(D.shift(),this.updateParallelArrays(U,"shift"),F.shift())),!1!==b&&tn(this,"addPoint",{point:U}),this.isDirty=!0,this.isDirtyData=!0,p&&j.redraw(y)}removePoint(e,p,x){let y=this,b=y.data,E=b[e],O=y.points,L=y.chart,D=function(){O&&O.length===b.length&&O.splice(e,1),b.splice(e,1),y.options.data.splice(e,1),y.updateParallelArrays(E||{series:y},"splice",[e,1]),E&&E.destroy(),y.isDirty=!0,y.isDirtyData=!0,p&&L.redraw()};z(x,L),p=tm(p,!0),E?E.firePointEvent("remove",null,D):D()}remove(e,p,x,y){let b=this,E=b.chart;function O(){b.destroy(y),E.isDirtyLegend=E.isDirtyBox=!0,E.linkSeries(y),tm(e,!0)&&E.redraw(p)}!1!==x?tn(b,"remove",null,O):O()}update(e,p){tn(this,"update",{options:e=te(e,this.userOptions)});let x=this,y=x.chart,b=x.userOptions,E=x.initialType||x.type,O=y.options.plotOptions,L=V[E].prototype,D=x.finishedAnimating&&{animation:!1},j={},R,z,F=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],H=e.type||b.type||y.options.chart.type,U=!(this.hasDerivedData||H&&H!==this.type||void 0!==e.pointStart||void 0!==e.pointInterval||void 0!==e.relativeXValue||e.joinBy||e.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(e=>x.hasOptionChanged(e)));H=H||E,U&&(F.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),!1!==e.visible&&F.push("area","graph"),x.parallelArrays.forEach(function(e){F.push(e+"Data")}),e.data&&(e.dataSorting&&to(x.options.dataSorting,e.dataSorting),this.setData(e.data,!1))),e=tu(b,{index:void 0===b.index?x.index:b.index,pointStart:O?.series?.pointStart??b.pointStart??x.xData?.[0]},!U&&{data:x.options.data},e,D),U&&e.data&&(e.data=x.options.data),(F=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(F)).forEach(function(e){F[e]=x[e],delete x[e]});let Y=!1;if(V[H]){if(Y=H!==x.type,x.remove(!1,!1,!1,!0),Y){if(y.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(x,V[H].prototype);else{let e=Object.hasOwnProperty.call(x,"hcEvents")&&x.hcEvents;for(z in L)x[z]=void 0;to(x,V[H].prototype),e?x.hcEvents=e:delete x.hcEvents}}}else ts(17,!0,y,{missingModuleFor:H});if(F.forEach(function(e){x[e]=F[e]}),x.init(y,e),U&&this.points)for(let e of(!1===(R=x.options).visible?(j.graphic=1,j.dataLabel=1):(this.hasMarkerChanged(R,b)&&(j.graphic=1),x.hasDataLabels?.()||(j.dataLabel=1)),this.points))e&&e.series&&(e.resolveColor(),Object.keys(j).length&&e.destroyElements(j),!1===R.showInLegend&&e.legendItem&&y.legend.destroyItem(e));x.initialType=E,y.linkSeries(),y.setSortedData(),Y&&x.linkedSeries.length&&(x.isDirtyData=!0),tn(this,"afterUpdate"),tm(p,!0)&&y.redraw(!!U&&void 0)}setName(e){this.name=this.options.name=this.userOptions.name=e,this.chart.isDirtyLegend=!0}hasOptionChanged(e){let p=this.chart,x=this.options[e],y=p.options.plotOptions,b=this.userOptions[e],E=tm(y?.[this.type]?.[e],y?.series?.[e]);return b&&!J(E)?x!==b:x!==tm(E,x)}onMouseOver(){let e=this.chart,p=e.hoverSeries,x=e.pointer;x?.setHoverChartIndex(),p&&p!==this&&p.onMouseOut(),this.options.events.mouseOver&&tn(this,"mouseOver"),this.setState("hover"),e.hoverSeries=this}onMouseOut(){let e=this.options,p=this.chart,x=p.tooltip,y=p.hoverPoint;p.hoverSeries=null,y&&y.onMouseOut(),this&&e.events.mouseOut&&tn(this,"mouseOut"),x&&!this.stickyTracking&&(!x.shared||this.noSharedTooltip)&&x.hide(),p.series.forEach(function(e){e.setState("",!0)})}setState(e,p){let x=this,y=x.options,b=x.graph,E=y.inactiveOtherPoints,O=y.states,L=tm(O[e||"normal"]&&O[e||"normal"].animation,x.chart.options.chart.animation),D=y.lineWidth,j=y.opacity;if(e=e||"",x.state!==e&&([x.group,x.markerGroup,x.dataLabelsGroup].forEach(function(p){p&&(x.state&&p.removeClass("highcharts-series-"+x.state),e&&p.addClass("highcharts-series-"+e))}),x.state=e,!x.chart.styledMode)){if(O[e]&&!1===O[e].enabled)return;if(e&&(D=O[e].lineWidth||D+(O[e].lineWidthPlus||0),j=tm(O[e].opacity,j)),b&&!b.dashstyle&&tc(D))for(let e of[b,...this.zones.map(e=>e.graph)])e?.animate({"stroke-width":D},L);E||[x.group,x.markerGroup,x.dataLabelsGroup,x.labelBySeries].forEach(function(e){e&&e.animate({opacity:j},L)})}p&&E&&x.points&&x.setAllPointsToState(e||void 0)}setAllPointsToState(e){this.points.forEach(function(p){p.setState&&p.setState(e)})}setVisible(e,p){let x=this,y=x.chart,b=y.options.chart.ignoreHiddenSeries,E=x.visible;x.visible=e=x.options.visible=x.userOptions.visible=void 0===e?!E:e;let O=e?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(e=>{x[e]?.[O]()}),(y.hoverSeries===x||y.hoverPoint?.series===x)&&x.onMouseOut(),x.legendItem&&y.legend.colorizeItem(x,e),x.isDirty=!0,x.options.stacking&&y.series.forEach(e=>{e.options.stacking&&e.visible&&(e.isDirty=!0)}),x.linkedSeries.forEach(p=>{p.setVisible(e,!1)}),b&&(y.isDirtyBox=!0),tn(x,O),!1!==p&&y.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(e){this.selected=e=this.options.selected=void 0===e?!this.selected:e,this.checkbox&&(this.checkbox.checked=e),tn(this,e?"select":"unselect")}shouldShowTooltip(e,p,x={}){return x.series=this,x.visiblePlotOnly=!0,this.chart.isInsidePlot(e,p,x)}drawLegendSymbol(e,p){b[this.options.legendSymbol||"rectangle"]?.call(this,e,p)}};return X.defaultOptions=O,X.types=L.seriesTypes,X.registerType=L.registerSeriesType,to(X.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:E,requireSorting:!0,sorted:!0}),L.series=X,X}),x(p,"Core/Chart/Chart.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Axis/Axis.js"],p["Core/Defaults.js"],p["Core/Templating.js"],p["Core/Foundation.js"],p["Core/Globals.js"],p["Core/Renderer/RendererRegistry.js"],p["Core/Series/Series.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Renderer/SVG/SVGRenderer.js"],p["Core/Time.js"],p["Core/Utilities.js"],p["Core/Renderer/HTML/AST.js"],p["Core/Axis/Tick.js"]],function(e,p,x,y,b,E,O,L,D,j,R,z,F,H){let{animate:U,animObject:Y,setAnimation:V}=e,{defaultOptions:q,defaultTime:K}=x,{numberFormat:$}=y,{registerEventOptions:_}=b,{charts:Z,doc:J,marginNames:tt,svg:te,win:ti}=E,{seriesTypes:ts}=D,{addEvent:to,attr:tr,createElement:tn,css:ta,defined:tl,diffObjects:th,discardElement:td,erase:tc,error:tp,extend:tu,find:tg,fireEvent:tm,getStyle:tf,isArray:tx,isNumber:ty,isObject:tb,isString:tv,merge:tS,objectEach:tC,pick:tk,pInt:tw,relativeLength:tA,removeEvent:tM,splat:tT,syncTimeout:tE,uniqueKey:tP}=z;let Q=class Q{static chart(e,p,x){return new Q(e,p,x)}constructor(e,p,x){this.sharedClips={};let y=[...arguments];(tv(e)||e.nodeName)&&(this.renderTo=y.shift()),this.init(y[0],y[1])}setZoomOptions(){let e=this.options.chart,p=e.zooming;this.zooming={...p,type:tk(e.zoomType,p.type),key:tk(e.zoomKey,p.key),pinchType:tk(e.pinchType,p.pinchType),singleTouch:tk(e.zoomBySingleTouch,p.singleTouch,!1),resetButton:tS(p.resetButton,e.resetZoomButton)}}init(e,p){tm(this,"init",{args:arguments},function(){let x=tS(q,e),y=x.chart;this.userOptions=tu({},e),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=p,this.isResizing=0,this.options=x,this.axes=[],this.series=[],this.time=e.time&&Object.keys(e.time).length?new R(e.time):E.time,this.numberFormatter=y.numberFormatter||$,this.styledMode=y.styledMode,this.hasCartesianSeries=y.showAxes,this.index=Z.length,Z.push(this),E.chartCount++,_(this,y),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),tm(this,"afterInit"),this.firstRender()})}initSeries(e){let p=this.options.chart,x=e.type||p.type,y=ts[x];y||tp(17,!0,this,{missingModuleFor:x});let b=new y;return"function"==typeof b.init&&b.init(this,e),b}setSortedData(){this.getSeriesOrderByLinks().forEach(function(e){e.points||e.data||!e.enabledDataSorting||e.setData(e.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(e,p){return e.linkedSeries.length||p.linkedSeries.length?p.linkedSeries.length-e.linkedSeries.length:0})}orderItems(e,p=0){let x=this[e],y=this.options[e]=tT(this.options[e]).slice(),b=this.userOptions[e]=this.userOptions[e]?tT(this.userOptions[e]).slice():[];if(this.hasRendered&&(y.splice(p),b.splice(p)),x)for(let e=p,E=x.length;e=Math.max(D+E,e.pos)&&p<=Math.min(D+E+z.width,e.pos+e.len)||(U.isInsidePlot=!1)}if(!x.ignoreY&&U.isInsidePlot){let e=!y&&x.axis&&!x.axis.isXAxis&&x.axis||R&&(y?R.xAxis:R.yAxis)||{pos:O,len:1/0},p=x.paneCoordinates?e.pos+H:O+H;p>=Math.max(j+O,e.pos)&&p<=Math.min(j+O+z.height,e.pos+e.len)||(U.isInsidePlot=!1)}return tm(this,"afterIsInsidePlot",U),U.isInsidePlot}redraw(e){tm(this,"beforeRedraw");let p=this.hasCartesianSeries?this.axes:this.colorAxis||[],x=this.series,y=this.pointer,b=this.legend,E=this.userOptions.legend,O=this.renderer,L=O.isHidden(),D=[],j,R,z,F=this.isDirtyBox,H=this.isDirtyLegend,U;for(O.rootFontSize=O.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),V(!!this.hasRendered&&e,this),L&&this.temporaryDisplay(),this.layOutTitles(!1),z=x.length;z--;)if(((U=x[z]).options.stacking||U.options.centerInCategory)&&(R=!0,U.isDirty)){j=!0;break}if(j)for(z=x.length;z--;)(U=x[z]).options.stacking&&(U.isDirty=!0);x.forEach(function(e){e.isDirty&&("point"===e.options.legendType?("function"==typeof e.updateTotals&&e.updateTotals(),H=!0):E&&(E.labelFormatter||E.labelFormat)&&(H=!0)),e.isDirtyData&&tm(e,"updatedData")}),H&&b&&b.options.enabled&&(b.render(),this.isDirtyLegend=!1),R&&this.getStacks(),p.forEach(function(e){e.updateNames(),e.setScale()}),this.getMargins(),p.forEach(function(e){e.isDirty&&(F=!0)}),p.forEach(function(e){let p=e.min+","+e.max;e.extKey!==p&&(e.extKey=p,D.push(function(){tm(e,"afterSetExtremes",tu(e.eventArgs,e.getExtremes())),delete e.eventArgs})),(F||R)&&e.redraw()}),F&&this.drawChartBox(),tm(this,"predraw"),x.forEach(function(e){(F||e.isDirty)&&e.visible&&e.redraw(),e.isDirtyData=!1}),y&&y.reset(!0),O.draw(),tm(this,"redraw"),tm(this,"render"),L&&this.temporaryDisplay(!0),D.forEach(function(e){e.call()})}get(e){let p=this.series;function x(p){return p.id===e||p.options&&p.options.id===e}let y=tg(this.axes,x)||tg(this.series,x);for(let e=0;!y&&e(p.getPointsCollection().forEach(p=>{tk(p.selectedStaging,p.selected)&&e.push(p)}),e),[])}getSelectedSeries(){return this.series.filter(function(e){return e.selected})}setTitle(e,p,x){this.applyDescription("title",e),this.applyDescription("subtitle",p),this.applyDescription("caption",void 0),this.layOutTitles(x)}applyDescription(e,p){let x=this,y=this.options[e]=tS(this.options[e],p),b=this[e];b&&p&&(this[e]=b=b.destroy()),y&&!b&&((b=this.renderer.text(y.text,0,0,y.useHTML).attr({align:y.align,class:"highcharts-"+e,zIndex:y.zIndex||4}).add()).update=function(p,y){x.applyDescription(e,p),x.layOutTitles(y)},this.styledMode||b.css(tu("title"===e?{fontSize:this.options.isStock?"1em":"1.2em"}:{},y.style)),this[e]=b)}layOutTitles(e=!0){let p=[0,0,0],x=this.renderer,y=this.spacingBox;["title","subtitle","caption"].forEach(function(e){let b=this[e],E=this.options[e],O=E.verticalAlign||"top",L="title"===e?"top"===O?-3:0:"top"===O?p[0]+2:0;if(b){b.css({width:(E.width||y.width+(E.widthAdjust||0))+"px"});let e=x.fontMetrics(b).b,D=Math.round(b.getBBox(E.useHTML).height);b.align(tu({y:"bottom"===O?e:L+e,height:D},E),!1,"spacingBox"),E.floating||("top"===O?p[0]=Math.ceil(p[0]+D):"bottom"===O&&(p[2]=Math.ceil(p[2]+D)))}},this),p[0]&&"top"===(this.options.title.verticalAlign||"top")&&(p[0]+=this.options.title.margin),p[2]&&"bottom"===this.options.caption.verticalAlign&&(p[2]+=this.options.caption.margin);let b=!this.titleOffset||this.titleOffset.join(",")!==p.join(",");this.titleOffset=p,tm(this,"afterLayOutTitles"),!this.isDirtyBox&&b&&(this.isDirtyBox=this.isDirtyLegend=b,this.hasRendered&&e&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:tf(this.renderTo,"width",!0)||0,height:tf(this.renderTo,"height",!0)||0}}getChartSize(){let e=this.options.chart,p=e.width,x=e.height,y=this.getContainerBox();this.chartWidth=Math.max(0,p||y.width||600),this.chartHeight=Math.max(0,tA(x,this.chartWidth)||(y.height>1?y.height:400)),this.containerBox=y}temporaryDisplay(e){let p=this.renderTo,x;if(e)for(;p&&p.style;)p.hcOrigStyle&&(ta(p,p.hcOrigStyle),delete p.hcOrigStyle),p.hcOrigDetached&&(J.body.removeChild(p),p.hcOrigDetached=!1),p=p.parentNode;else for(;p&&p.style&&(J.body.contains(p)||p.parentNode||(p.hcOrigDetached=!0,J.body.appendChild(p)),("none"===tf(p,"display",!1)||p.hcOricDetached)&&(p.hcOrigStyle={display:p.style.display,height:p.style.height,overflow:p.style.overflow},x={display:"block",overflow:"hidden"},p!==this.renderTo&&(x.height=0),ta(p,x),p.offsetWidth||p.style.setProperty("display","block","important")),(p=p.parentNode)!==J.body););}setClassName(e){this.container.className="highcharts-container "+(e||"")}getContainer(){let e=this.options,p=e.chart,x="data-highcharts-chart",y=tP(),b,E=this.renderTo;E||(this.renderTo=E=p.renderTo),tv(E)&&(this.renderTo=E=J.getElementById(E)),E||tp(13,!0,this);let L=tw(tr(E,x));ty(L)&&Z[L]&&Z[L].hasRendered&&Z[L].destroy(),tr(E,x,this.index),E.innerHTML=F.emptyHTML,p.skipClone||E.offsetWidth||this.temporaryDisplay(),this.getChartSize();let D=this.chartHeight,R=this.chartWidth;ta(E,{overflow:"hidden"}),this.styledMode||(b=tu({position:"relative",overflow:"hidden",width:R+"px",height:D+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},p.style||{}));let z=tn("div",{id:y},b,E);this.container=z,this.getChartSize(),R===this.chartWidth||(R=this.chartWidth,this.styledMode||ta(z,{width:tk(p.style?.width,R+"px")})),this.containerBox=this.getContainerBox(),this._cursor=z.style.cursor;let H=p.renderer||!te?O.getRendererType(p.renderer):j;if(this.renderer=new H(z,R,D,void 0,p.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),V(void 0,this),this.setClassName(p.className),this.styledMode)for(let p in e.defs)this.renderer.definition(e.defs[p]);else this.renderer.setStyle(p.style);this.renderer.chartIndex=this.index,tm(this,"afterGetContainer")}getMargins(e){let{spacing:p,margin:x,titleOffset:y}=this;this.resetMargins(),y[0]&&!tl(x[0])&&(this.plotTop=Math.max(this.plotTop,y[0]+p[0])),y[2]&&!tl(x[2])&&(this.marginBottom=Math.max(this.marginBottom,y[2]+p[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(x,p),tm(this,"getMargins"),e||this.getAxisMargins()}getAxisMargins(){let e=this,p=e.axisOffset=[0,0,0,0],x=e.colorAxis,y=e.margin,b=function(e){e.forEach(function(e){e.visible&&e.getOffset()})};e.hasCartesianSeries?b(e.axes):x&&x.length&&b(x),tt.forEach(function(x,b){tl(y[b])||(e[x]+=p[b])}),e.setChartSize()}getOptions(){return th(this.userOptions,q)}reflow(e){let p=this,x=p.containerBox,y=p.getContainerBox();delete p.pointer?.chartPosition,!p.isPrinting&&!p.isResizing&&x&&y.width&&((y.width!==x.width||y.height!==x.height)&&(z.clearTimeout(p.reflowTimeout),p.reflowTimeout=tE(function(){p.container&&p.setSize(void 0,void 0,!1)},e?100:0)),p.containerBox=y)}setReflow(){let e=this,p=p=>{e.options?.chart.reflow&&e.hasLoaded&&e.reflow(p)};if("function"==typeof ResizeObserver)new ResizeObserver(p).observe(e.renderTo);else{let e=to(ti,"resize",p);to(this,"destroy",e)}}setSize(e,p,x){let y=this,b=y.renderer;y.isResizing+=1,V(x,y);let E=b.globalAnimation;y.oldChartHeight=y.chartHeight,y.oldChartWidth=y.chartWidth,void 0!==e&&(y.options.chart.width=e),void 0!==p&&(y.options.chart.height=p),y.getChartSize();let{chartWidth:O,chartHeight:L,scrollablePixelsX:D=0,scrollablePixelsY:j=0}=y;(y.isDirtyBox||O!==y.oldChartWidth||L!==y.oldChartHeight)&&(y.styledMode||(E?U:ta)(y.container,{width:`${O+D}px`,height:`${L+j}px`},E),y.setChartSize(!0),b.setSize(O,L,E),y.axes.forEach(function(e){e.isDirty=!0,e.setScale()}),y.isDirtyLegend=!0,y.isDirtyBox=!0,y.layOutTitles(),y.getMargins(),y.redraw(E),y.oldChartHeight=void 0,tm(y,"resize"),setTimeout(()=>{y&&tm(y,"endResize")},Y(E).duration)),y.isResizing-=1}setChartSize(e){let p,x,y,b;let{chartHeight:E,chartWidth:O,inverted:L,spacing:D,renderer:j}=this,R=this.clipOffset,z=Math[L?"floor":"round"];this.plotLeft=p=Math.round(this.plotLeft),this.plotTop=x=Math.round(this.plotTop),this.plotWidth=y=Math.max(0,Math.round(O-p-this.marginRight)),this.plotHeight=b=Math.max(0,Math.round(E-x-this.marginBottom)),this.plotSizeX=L?b:y,this.plotSizeY=L?y:b,this.spacingBox=j.spacingBox={x:D[3],y:D[0],width:O-D[3]-D[1],height:E-D[0]-D[2]},this.plotBox=j.plotBox={x:p,y:x,width:y,height:b},R&&(this.clipBox={x:z(R[3]),y:z(R[0]),width:z(this.plotSizeX-R[1]-R[3]),height:z(this.plotSizeY-R[0]-R[2])}),e||(this.axes.forEach(function(e){e.setAxisSize(),e.setAxisTranslation()}),j.alignElements()),tm(this,"afterSetChartSize",{skipAxes:e})}resetMargins(){tm(this,"resetMargins");let e=this,p=e.options.chart,x=p.plotBorderWidth||0,y=x/2;["margin","spacing"].forEach(function(x){let y=p[x],b=tb(y)?y:[y,y,y,y];["Top","Right","Bottom","Left"].forEach(function(y,E){e[x][E]=tk(p[x+y],b[E])})}),tt.forEach(function(p,x){e[p]=tk(e.margin[x],e.spacing[x])}),e.axisOffset=[0,0,0,0],e.clipOffset=[y,y,y,y],e.plotBorderWidth=x}drawChartBox(){let e=this.options.chart,p=this.renderer,x=this.chartWidth,y=this.chartHeight,b=this.styledMode,E=this.plotBGImage,O=e.backgroundColor,L=e.plotBackgroundColor,D=e.plotBackgroundImage,j=this.plotLeft,R=this.plotTop,z=this.plotWidth,F=this.plotHeight,H=this.plotBox,U=this.clipRect,Y=this.clipBox,V=this.chartBackground,q=this.plotBackground,K=this.plotBorder,$,_,Z,J="animate";V||(this.chartBackground=V=p.rect().addClass("highcharts-background").add(),J="attr"),b?$=_=V.strokeWidth():(_=($=e.borderWidth||0)+(e.shadow?8:0),Z={fill:O||"none"},($||V["stroke-width"])&&(Z.stroke=e.borderColor,Z["stroke-width"]=$),V.attr(Z).shadow(e.shadow)),V[J]({x:_/2,y:_/2,width:x-_-$%2,height:y-_-$%2,r:e.borderRadius}),J="animate",q||(J="attr",this.plotBackground=q=p.rect().addClass("highcharts-plot-background").add()),q[J](H),!b&&(q.attr({fill:L||"none"}).shadow(e.plotShadow),D&&(E?(D!==E.attr("href")&&E.attr("href",D),E.animate(H)):this.plotBGImage=p.image(D,j,R,z,F).add())),U?U.animate({width:Y.width,height:Y.height}):this.clipRect=p.clipRect(Y),J="animate",K||(J="attr",this.plotBorder=K=p.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),b||K.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),K[J](K.crisp({x:j,y:R,width:z,height:F},-K.strokeWidth())),this.isDirtyBox=!1,tm(this,"afterDrawChartBox")}propFromSeries(){let e,p,x;let y=this,b=y.options.chart,E=y.options.series;["inverted","angular","polar"].forEach(function(O){for(p=ts[b.type],x=b[O]||p&&p.prototype[O],e=E&&E.length;!x&&e--;)(p=ts[E[e].type])&&p.prototype[O]&&(x=!0);y[O]=x})}linkSeries(e){let p=this,x=p.series;x.forEach(function(e){e.linkedSeries.length=0}),x.forEach(function(e){let{linkedTo:x}=e.options;if(tv(x)){let y;(y=":previous"===x?p.series[e.index-1]:p.get(x))&&y.linkedParent!==e&&(y.linkedSeries.push(e),e.linkedParent=y,y.enabledDataSorting&&e.setDataSortingOptions(),e.visible=tk(e.options.visible,y.options.visible,e.visible))}}),tm(this,"afterLinkSeries",{isUpdating:e})}renderSeries(){this.series.forEach(function(e){e.translate(),e.render()})}render(){let e=this.axes,p=this.colorAxis,x=this.renderer,y=this.options.chart.axisLayoutRuns||2,b=e=>{e.forEach(e=>{e.visible&&e.render()})},E=0,O=!0,L,D=0;for(let p of(this.setTitle(),tm(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),e)){let{options:e}=p,{labels:x}=e;if(this.hasCartesianSeries&&p.horiz&&p.visible&&x.enabled&&p.series.length&&"colorAxis"!==p.coll&&!this.polar){E=e.tickLength,p.createGroups();let y=new H(p,0,"",!0),b=y.createLabel("x",x);if(y.destroy(),b&&tk(x.reserveSpace,!ty(e.crossing))&&(E=b.getBBox().height+x.distance+Math.max(e.offset||0,0)),E){b?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-E,0);(O||L||y>1)&&D(D?1:1.1),L=x/this.plotHeight>(D?1:1.05),D++}this.drawChartBox(),this.hasCartesianSeries?b(e):p&&p.length&&b(p),this.seriesGroup||(this.seriesGroup=x.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(e){let p=this,x=tS(!0,this.options.credits,e);x.enabled&&!this.credits&&(this.credits=this.renderer.text(x.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){x.href&&(ti.location.href=x.href)}).attr({align:x.position.align,zIndex:8}),p.styledMode||this.credits.css(x.style),this.credits.add().align(x.position),this.credits.update=function(e){p.credits=p.credits.destroy(),p.addCredits(e)})}destroy(){let e;let p=this,x=p.axes,y=p.series,b=p.container,O=b&&b.parentNode;for(tm(p,"destroy"),p.renderer.forExport?tc(Z,p):Z[p.index]=void 0,E.chartCount--,p.renderTo.removeAttribute("data-highcharts-chart"),tM(p),e=x.length;e--;)x[e]=x[e].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),e=y.length;e--;)y[e]=y[e].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(e){let x=p[e];x&&x.destroy&&(p[e]=x.destroy())}),b&&(b.innerHTML=F.emptyHTML,tM(b),O&&td(b)),tC(p,function(e,x){delete p[x]})}firstRender(){let e=this,p=e.options;e.getContainer(),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.getAxes();let x=tx(p.series)?p.series:[];p.series=[],x.forEach(function(p){e.initSeries(p)}),e.linkSeries(),e.setSortedData(),tm(e,"beforeRender"),e.render(),e.pointer?.getChartPosition(),e.renderer.imgCount||e.hasLoaded||e.onload(),e.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(e){e&&void 0!==this.index&&e.apply(this,[this])},this),tm(this,"load"),tm(this,"render"),tl(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:e,title:p}=this;!e||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(p&&p.element.textContent||"").replace(/this.transform({reset:!0,trigger:"zoom"}))}pan(e,p){let x=this,y="object"==typeof p?p:{enabled:p,type:"x"},b=y.type,E=b&&x[({x:"xAxis",xy:"axes",y:"yAxis"})[b]].filter(e=>e.options.panningEnabled&&!e.options.isInternal),O=x.options.chart;O?.panning&&(O.panning=y),tm(this,"pan",{originalEvent:e},()=>{x.transform({axes:E,event:e,to:{x:e.chartX-(x.mouseDownX||0),y:e.chartY-(x.mouseDownY||0)},trigger:"pan"}),ta(x.container,{cursor:"move"})})}transform(e){let{axes:p=this.axes,event:x,from:y={},reset:b,selection:E,to:O={},trigger:L}=e,{inverted:D}=this,j=!1,R;for(let e of(this.hoverPoints?.forEach(e=>e.setState()),p)){let{horiz:p,len:z,minPointOffset:F=0,options:H,reversed:U}=e,Y=p?"width":"height",V=p?"x":"y",q=tk(O[Y],e.len),K=tk(y[Y],e.len),$=10>Math.abs(q)?1:q/K,_=(y[V]||0)+K/2-e.pos,Z=_-((O[V]??e.pos)+q/2-e.pos)/$,J=U&&!D||!U&&D?-1:1;if(!b&&(_<0||_>e.len))continue;let tt=e.toValue(Z,!0)+(E?0:F*J),te=e.toValue(Z+z/$,!0)-(E?0:F*J||0),ti=e.allExtremes;if(tt>te&&([tt,te]=[te,tt]),1===$&&!b&&"yAxis"===e.coll&&!ti){for(let p of e.series){let e=p.getExtremes(p.getProcessedData(!0).yData,!0);ti??(ti={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),ty(e.dataMin)&&ty(e.dataMax)&&(ti.dataMin=Math.min(e.dataMin,ti.dataMin),ti.dataMax=Math.max(e.dataMax,ti.dataMax))}e.allExtremes=ti}let{dataMin:ts,dataMax:to,min:tr,max:tn}=tu(e.getExtremes(),ti||{}),ta=ts??H.min,th=to??H.max,td=te-tt,tc=e.categories?0:Math.min(td,th-ta),tp=ta-tc*(tl(H.min)?0:H.minPadding),tg=th+tc*(tl(H.max)?0:H.maxPadding),tm=e.allowZoomOutside||1===$||"zoom"!==L&&$>1,tf=Math.min(H.min??tp,tp,tm?tr:tp),tx=Math.max(H.max??tg,tg,tm?tn:tg);(!e.isOrdinal||1!==$||b)&&(tt=1&&(te=tt+td)),te>tx&&(te=tx,$>=1&&(tt=te-td)),(b||e.series.length&&(tt!==tr||te!==tn)&&tt>=tf&&te<=tx)&&(E?E[e.coll].push({axis:e,min:tt,max:te}):(e.isPanning="zoom"!==L,e.setExtremes(b?void 0:tt,b?void 0:te,!1,!1,{move:Z,trigger:L,scale:$}),!b&&(tt>tf||te{delete e.selection,e.trigger="zoom",this.transform(e)}):(R&&!this.resetZoomButton?this.showResetZoom():!R&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()),this.redraw("zoom"===L&&(this.options.chart.animation??this.pointCount<100)))),j}};return tu(Q.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Q.prototype.addAxis,[!0]],yAxis:[Q.prototype.addAxis,[!1]],series:[Q.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),Q}),x(p,"Extensions/ScrollablePlotArea.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Globals.js"],p["Core/Renderer/RendererRegistry.js"],p["Core/Utilities.js"]],function(e,p,x,y){let{stop:b}=e,{composed:E}=p,{addEvent:O,createElement:L,css:D,defined:j,merge:R,pushUnique:z}=y;function F(){let e=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!e&&(this.scrollablePlotArea=e=new g(this)),e?.applyFixed()}function H(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}let g=class g{static compose(e,p,x){z(E,this.compose)&&(O(e,"afterInit",H),O(p,"afterSetChartSize",e=>this.afterSetSize(e.target,e)),O(p,"render",F),O(x,"show",H))}static afterSetSize(e,p){let x,y,b;let{minWidth:E,minHeight:O}=e.options.chart.scrollablePlotArea||{},{clipBox:L,plotBox:D,inverted:z,renderer:F}=e;if(!F.forExport&&(E?(e.scrollablePixelsX=x=Math.max(0,E-e.chartWidth),x&&(e.scrollablePlotBox=R(e.plotBox),D.width=e.plotWidth+=x,L[z?"height":"width"]+=x,b=!0)):O&&(e.scrollablePixelsY=y=Math.max(0,O-e.chartHeight),j(y)&&(e.scrollablePlotBox=R(e.plotBox),D.height=e.plotHeight+=y,L[z?"width":"height"]+=y,b=!1)),j(b)&&!p.skipAxes))for(let p of e.axes)p.horiz===b&&(p.setAxisSize(),p.setAxisTranslation())}constructor(e){let p;let y=e.options.chart,b=x.getRendererType(),E=y.scrollablePlotArea||{},j=this.moveFixedElements.bind(this),R={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};e.scrollablePixelsX&&(R.overflowX="auto"),e.scrollablePixelsY&&(R.overflowY="auto"),this.chart=e;let z=this.parentDiv=L("div",{className:"highcharts-scrolling-parent"},{position:"relative"},e.renderTo),F=this.scrollingContainer=L("div",{className:"highcharts-scrolling"},R,z),H=this.innerContainer=L("div",{className:"highcharts-inner-container"},void 0,F),U=this.fixedDiv=L("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(y.style?.zIndex||0)+2,top:0},void 0,!0),Y=this.fixedRenderer=new b(U,e.chartWidth,e.chartHeight,y.style);this.mask=Y.path().attr({fill:y.backgroundColor||"#fff","fill-opacity":E.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),F.parentNode.insertBefore(U,F),D(e.renderTo,{overflow:"visible"}),O(e,"afterShowResetZoom",j),O(e,"afterApplyDrilldown",j),O(e,"afterLayOutTitles",j),O(F,"scroll",()=>{let{pointer:x,hoverPoint:y}=e;x&&(delete x.chartPosition,y&&(p=y),x.runPointActions(void 0,p,!0))}),H.appendChild(e.container)}applyFixed(){let{chart:e,fixedRenderer:p,isDirty:x,scrollingContainer:y}=this,{axisOffset:E,chartWidth:O,chartHeight:L,container:R,plotHeight:z,plotLeft:F,plotTop:H,plotWidth:U,scrollablePixelsX:Y=0,scrollablePixelsY:V=0}=e,{scrollPositionX:q=0,scrollPositionY:K=0}=e.options.chart.scrollablePlotArea||{},$=O+Y,_=L+V;p.setSize(O,L),(x??!0)&&(this.isDirty=!1,this.moveFixedElements()),b(e.container),D(R,{width:`${$}px`,height:`${_}px`}),e.renderer.boxWrapper.attr({width:$,height:_,viewBox:[0,0,$,_].join(" ")}),e.chartBackground?.attr({width:$,height:_}),D(y,{width:`${O}px`,height:`${L}px`}),j(x)||(y.scrollLeft=Y*q,y.scrollTop=V*K);let Z=H-E[0]-1,J=F-E[3]-1,tt=H+z+E[2]+1,te=F+U+E[1]+1,ti=F+U-Y,ts=H+z-V,to=[["M",0,0]];Y?to=[["M",0,Z],["L",F-1,Z],["L",F-1,tt],["L",0,tt],["Z"],["M",ti,Z],["L",O,Z],["L",O,tt],["L",ti,tt],["Z"]]:V&&(to=[["M",J,0],["L",J,H-1],["L",te,H-1],["L",te,0],["Z"],["M",J,ts],["L",J,L],["L",te,L],["L",te,ts],["Z"]]),"adjustHeight"!==e.redrawTrigger&&this.mask.attr({d:to})}moveFixedElements(){let e;let{container:p,inverted:x,scrollablePixelsX:y,scrollablePixelsY:b}=this.chart,E=this.fixedRenderer,O=g.fixedSelectors;for(let L of(y&&!x?e=".highcharts-yaxis":y&&x?e=".highcharts-xaxis":b&&!x?e=".highcharts-xaxis":b&&x&&(e=".highcharts-yaxis"),e&&O.push(`${e}:not(.highcharts-radial-axis)`,`${e}-labels:not(.highcharts-radial-axis-labels)`),O))[].forEach.call(p.querySelectorAll(L),e=>{(e.namespaceURI===E.SVG_NS?E.box:E.box.parentNode).appendChild(e),e.style.pointerEvents="auto"})}};return g.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],g}),x(p,"Core/Axis/Stacking/StackItem.js",[p["Core/Templating.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Utilities.js"]],function(e,p,x){let{format:y}=e,{series:b}=p,{destroyObjectProperties:E,fireEvent:O,isNumber:L,pick:D}=x;return class{constructor(e,p,x,y,b){let E=e.chart.inverted,O=e.reversed;this.axis=e;let L=this.isNegative=!!x!=!!O;this.options=p=p||{},this.x=y,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=b,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:p.align||(E?L?"left":"right":"center"),verticalAlign:p.verticalAlign||(E?"middle":L?"bottom":"top"),y:p.y,x:p.x},this.textAlign=p.textAlign||(E?L?"right":"left":"center")}destroy(){E(this,this.axis)}render(e){let p=this.axis.chart,x=this.options,b=x.format,E=b?y(b,this,p):x.formatter.call(this);if(this.label)this.label.attr({text:E,visibility:"hidden"});else{this.label=p.renderer.label(E,null,void 0,x.shape,void 0,void 0,x.useHTML,!1,"stack-labels");let y={r:x.borderRadius||0,text:E,padding:D(x.padding,5),visibility:"hidden"};p.styledMode||(y.fill=x.backgroundColor,y.stroke=x.borderColor,y["stroke-width"]=x.borderWidth,this.label.css(x.style||{})),this.label.attr(y),this.label.added||this.label.add(e)}this.label.labelrank=p.plotSizeY,O(this,"afterRender")}setOffset(e,p,x,y,E,j){let{alignOptions:R,axis:z,label:F,options:H,textAlign:U}=this,Y=z.chart,V=this.getStackBox({xOffset:e,width:p,boxBottom:x,boxTop:y,defaultX:E,xAxis:j}),{verticalAlign:q}=R;if(F&&V){let e=F.getBBox(void 0,0),p=F.padding,x="justify"===D(H.overflow,"justify"),y;R.x=H.x||0,R.y=H.y||0;let{x:E,y:O}=this.adjustStackPosition({labelBox:e,verticalAlign:q,textAlign:U});V.x-=E,V.y-=O,F.align(R,!1,V),(y=Y.isInsidePlot(F.alignAttr.x+R.x+E,F.alignAttr.y+R.y+O))||(x=!1),x&&b.prototype.justifyDataLabel.call(z,F,R,F.alignAttr,e,V),F.attr({x:F.alignAttr.x,y:F.alignAttr.y,rotation:H.rotation,rotationOriginX:e.width*({left:0,center:.5,right:1})[H.textAlign||"center"],rotationOriginY:e.height/2}),D(!x&&H.crop,!0)&&(y=L(F.x)&&L(F.y)&&Y.isInsidePlot(F.x-p+(F.width||0),F.y)&&Y.isInsidePlot(F.x+p,F.y)),F[y?"show":"hide"]()}O(this,"afterSetOffset",{xOffset:e,width:p})}adjustStackPosition({labelBox:e,verticalAlign:p,textAlign:x}){let y={bottom:0,middle:1,top:2,right:1,center:0,left:-1},b=y[p],E=y[x];return{x:e.width/2+e.width/2*E,y:e.height/2*b}}getStackBox(e){let p=this.axis,x=p.chart,{boxTop:y,defaultX:b,xOffset:E,width:O,boxBottom:j}=e,R=p.stacking.usePercentage?100:D(y,this.total,0),z=p.toPixels(R),F=e.xAxis||x.xAxis[0],H=D(b,F.translate(this.x))+E,U=Math.abs(z-p.toPixels(j||L(p.min)&&p.logarithmic&&p.logarithmic.lin2log(p.min)||0)),Y=x.inverted,V=this.isNegative;return Y?{x:(V?z:z-U)-x.plotLeft,y:F.height-H-O,width:U,height:O}:{x:H+F.transB-x.plotLeft,y:(V?z-U:z)-x.plotTop,width:O,height:U}}}}),x(p,"Core/Axis/Stacking/StackingAxis.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Axis/Axis.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Axis/Stacking/StackItem.js"],p["Core/Utilities.js"]],function(e,p,x,y,b){var E;let{getDeferredAnimation:O}=e,{series:{prototype:L}}=x,{addEvent:D,correctFloat:j,defined:R,destroyObjectProperties:z,fireEvent:F,isArray:H,isNumber:U,objectEach:Y,pick:V}=b;function q(){let e=this.inverted;this.axes.forEach(e=>{e.stacking&&e.stacking.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),this.series.forEach(p=>{let x=p.xAxis&&p.xAxis.options||{};p.options.stacking&&p.reserveSpace()&&(p.stackKey=[p.type,V(p.options.stack,""),e?x.top:x.left,e?x.height:x.width].join(","))})}function K(){let e=this.stacking;if(e){let p=e.stacks;Y(p,(e,x)=>{z(e),delete p[x]}),e.stackTotalGroup?.destroy()}}function $(){this.stacking||(this.stacking=new w(this))}function _(e,p,x,y){return!R(e)||e.x!==p||y&&e.stackKey!==y?e={x:p,index:0,key:y,stackKey:y}:e.index++,e.key=[x,p,e.index].join(","),e}function Z(){let e;let p=this,x=p.yAxis,y=p.stackKey||"",b=x.stacking.stacks,E=p.processedXData,O=p.options.stacking,L=p[O+"Stacker"];L&&[y,"-"+y].forEach(x=>{let y=E.length,O,D,j;for(;y--;)O=E[y],e=p.getStackIndicator(e,O,p.index,x),D=b[x]?.[O],(j=D?.points[e.key||""])&&L.call(p,j,D,y)})}function J(e,p,x){let y=p.total?100/p.total:0;e[0]=j(e[0]*y),e[1]=j(e[1]*y),this.stackedYData[x]=e[1]}function tt(e){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?L.setStackedPoints.call(this,e,"group"):e.stacking.resetStacks())}function te(e,p){let x,b,E,O,L,D,z,F,U;let Y=p||this.options.stacking;if(!Y||!this.reserveSpace()||(({group:"xAxis"})[Y]||"yAxis")!==e.coll)return;let q=this.processedXData,K=this.processedYData,$=[],_=K.length,Z=this.options,J=Z.threshold||0,tt=Z.startFromThreshold?J:0,te=Z.stack,ti=p?`${this.type},${Y}`:this.stackKey||"",ts="-"+ti,to=this.negStacks,tr=e.stacking,tn=tr.stacks,ta=tr.oldStacks;for(tr.stacksTouched+=1,z=0;z<_;z++){F=q[z],U=K[z],D=(x=this.getStackIndicator(x,F,this.index)).key||"",tn[L=(b=to&&U<(tt?0:J))?ts:ti]||(tn[L]={}),tn[L][F]||(ta[L]?.[F]?(tn[L][F]=ta[L][F],tn[L][F].total=null):tn[L][F]=new y(e,e.options.stackLabels,!!b,F,te)),E=tn[L][F],null!==U?(E.points[D]=E.points[this.index]=[V(E.cumulative,tt)],R(E.cumulative)||(E.base=D),E.touched=tr.stacksTouched,x.index>0&&!1===this.singleStacks&&(E.points[D][0]=E.points[this.index+","+F+",0"][0])):(delete E.points[D],delete E.points[this.index]);let p=E.total||0;"percent"===Y?(O=b?ti:ts,p=to&&tn[O]?.[F]?(O=tn[O][F]).total=Math.max(O.total||0,p)+Math.abs(U)||0:j(p+(Math.abs(U)||0))):"group"===Y?(H(U)&&(U=U[0]),null!==U&&p++):p=j(p+(U||0)),"group"===Y?E.cumulative=(p||1)-1:E.cumulative=j(V(E.cumulative,tt)+(U||0)),E.total=p,null!==U&&(E.points[D].push(E.cumulative),$[z]=E.cumulative,E.hasValidPoints=!0)}"percent"===Y&&(tr.usePercentage=!0),"group"!==Y&&(this.stackedYData=$),tr.oldStacks={}}let w=class w{constructor(e){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=e}buildStacks(){let e,p;let x=this.axis,y=x.series,b="xAxis"===x.coll,E=x.options.reversedStacks,O=y.length;for(this.resetStacks(),this.usePercentage=!1,p=O;p--;)e=y[E?p:O-p-1],b&&e.setGroupedPoints(x),e.setStackedPoints(x);if(!b)for(p=0;p{Y(e,e=>{e.cumulative=e.total})}))}resetStacks(){Y(this.stacks,e=>{Y(e,(p,x)=>{U(p.touched)&&p.touched{Y(e,e=>{e.render(E)})}),E.animate({opacity:1},b)}};return(E||(E={})).compose=function(e,p,x){let y=p.prototype,b=x.prototype;y.getStacks||(D(e,"init",$),D(e,"destroy",K),y.getStacks=q,b.getStackIndicator=_,b.modifyStacks=Z,b.percentStacker=J,b.setGroupedPoints=tt,b.setStackedPoints=te)},E}),x(p,"Series/Line/LineSeries.js",[p["Core/Series/Series.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Utilities.js"]],function(e,p,x){let{defined:y,merge:b,isObject:E}=x;let a=class a extends e{drawGraph(){let e=this.options,p=(this.gappedPath||this.getGraphPath).call(this),x=this.chart.styledMode;[this,...this.zones].forEach((y,O)=>{let L,D=y.graph,j=D?"animate":"attr",R=y.dashStyle||e.dashStyle;D?(D.endX=this.preventGraphAnimation?null:p.xMap,D.animate({d:p})):p.length&&(y.graph=D=this.chart.renderer.path(p).addClass("highcharts-graph"+(O?` highcharts-zone-graph-${O-1} `:" ")+(O&&y.className||"")).attr({zIndex:1}).add(this.group)),D&&!x&&(L={stroke:!O&&e.lineColor||y.color||this.color||"#cccccc","stroke-width":e.lineWidth||0,fill:this.fillGraph&&this.color||"none"},R?L.dashstyle=R:"square"!==e.linecap&&(L["stroke-linecap"]=L["stroke-linejoin"]="round"),D[j](L).shadow(O<2&&e.shadow&&b({filterUnits:"userSpaceOnUse"},E(e.shadow)?e.shadow:{}))),D&&(D.startX=p.xMap,D.isArea=p.isArea)})}getGraphPath(e,p,x){let b=this,E=b.options,O=[],L=[],D,j=E.step,R=(e=e||b.points).reversed;return R&&e.reverse(),(j=({right:1,center:2})[j]||j&&3)&&R&&(j=4-j),(e=this.getValidPoints(e,!1,!(E.connectNulls&&!p&&!x))).forEach(function(R,z){let F;let H=R.plotX,U=R.plotY,Y=e[z-1],V=R.isNull||"number"!=typeof U;(R.leftCliff||Y&&Y.rightCliff)&&!x&&(D=!0),V&&!y(p)&&z>0?D=!E.connectNulls:V&&!p?D=!0:(0===z||D?F=[["M",R.plotX,R.plotY]]:b.getPointSpline?F=[b.getPointSpline(e,R,z)]:j?(F=1===j?[["L",Y.plotX,U]]:2===j?[["L",(Y.plotX+H)/2,Y.plotY],["L",(Y.plotX+H)/2,U]]:[["L",H,Y.plotY]]).push(["L",H,U]):F=[["L",H,U]],L.push(R.x),j&&(L.push(R.x),2===j&&L.push(R.x)),O.push.apply(O,F),D=!1)}),O.xMap=L,b.graphPath=O,O}};return a.defaultOptions=b(e.defaultOptions,{legendSymbol:"lineMarker"}),p.registerSeriesType("line",a),a}),x(p,"Series/Area/AreaSeriesDefaults.js",[],function(){return{threshold:0,legendSymbol:"areaMarker"}}),x(p,"Series/Area/AreaSeries.js",[p["Series/Area/AreaSeriesDefaults.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Utilities.js"]],function(e,p,x){let{seriesTypes:{line:y}}=p,{extend:b,merge:E,objectEach:O,pick:L}=x;let h=class h extends y{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:e,options:p}=this;[this,...this.zones].forEach((x,y)=>{let b={},E=x.fillColor||p.fillColor,O=x.area,L=O?"animate":"attr";O?(O.endX=this.preventGraphAnimation?null:e.xMap,O.animate({d:e})):(b.zIndex=0,(O=x.area=this.chart.renderer.path(e).addClass("highcharts-area"+(y?` highcharts-zone-area-${y-1} `:" ")+(y&&x.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(b.fill=E||x.color||this.color,b["fill-opacity"]=E?1:p.fillOpacity??.75,O.css({pointerEvents:this.stickyTracking?"none":"auto"})),O[L](b),O.startX=e.xMap,O.shiftUnit=p.step?2:1})}getGraphPath(e){let p,x,b;let E=y.prototype.getGraphPath,O=this.options,D=O.stacking,j=this.yAxis,R=[],z=[],F=this.index,H=j.stacking.stacks[this.stackKey],U=O.threshold,Y=Math.round(j.getThreshold(O.threshold)),V=L(O.connectNulls,"percent"===D),q=function(x,y,b){let E=e[x],O=D&&H[E.x].points[F],L=E[b+"Null"]||0,V=E[b+"Cliff"]||0,q,K,$=!0;V||L?(q=(L?O[0]:O[1])+V,K=O[0]+V,$=!!L):!D&&e[y]&&e[y].isNull&&(q=K=U),void 0!==q&&(z.push({plotX:p,plotY:null===q?Y:j.getThreshold(q),isNull:$,isCliff:!0}),R.push({plotX:p,plotY:null===K?Y:j.getThreshold(K),doCurve:!1}))};e=e||this.points,D&&(e=this.getStackPoints(e));for(let y=0,E=e.length;ye.visible);y.forEach(function(e,O){let Y=0,V,q;if(j[e]&&!j[e].isNull)x.push(j[e]),[-1,1].forEach(function(x){let b=1===x?"rightNull":"leftNull",E=D[y[O+x]],L=0;if(E){let x=H;for(;x>=0&&x=0&&px&&E>j?(E=Math.max(x,j),L=2*j-E):EF&&L>j?(L=Math.max(F,j),E=2*j-L):L1){let b=this.xAxis.series.filter(e=>e.visible).map(e=>e.index),E=0,O=0;$(this.xAxis.stacking?.stacks,e=>{if("number"==typeof x.x){let p=e[x.x.toString()];if(p&&Y(p.points[this.index])){let e=Object.keys(p.points).filter(e=>!e.match(",")&&p.points[e]&&p.points[e].length>1).map(parseFloat).filter(e=>-1!==b.indexOf(e)).sort((e,p)=>p-e);E=e.indexOf(this.index),O=e.length}}}),E=this.xAxis.reversed?O-1-E:E;let L=(O-1)*y.paddedWidth+p;e=(x.plotX||0)+L/2-p-E*y.paddedWidth}return e}translate(){let e=this,p=e.chart,x=e.options,y=e.dense=e.closestPointRange*e.xAxis.transA<2,E=e.borderWidth=K(x.borderWidth,y?0:1),O=e.xAxis,L=e.yAxis,D=x.threshold,j=K(x.minPointLength,5),z=e.getColumnMetrics(),H=z.width,Y=e.pointXOffset=z.offset,q=e.dataMin,$=e.dataMax,_=e.translatedThreshold=L.getThreshold(D),Z=e.barW=Math.max(H,1+2*E);x.pointPadding&&(Z=Math.ceil(Z)),b.prototype.translate.apply(e),e.points.forEach(function(y){let b=K(y.yBottom,_),E=999+Math.abs(b),U=y.plotX||0,J=R(y.plotY,-E,L.len+E),tt,te=Math.min(J,b),ti=Math.max(J,b)-te,ts=H,to=U+Y,tr=Z;j&&Math.abs(ti)j?b-j:_-(tt?j:0)),F(y.options.pointWidth)&&(to-=Math.round(((ts=tr=Math.ceil(y.options.pointWidth))-H)/2)),x.centerInCategory&&!x.stacking&&(to=e.adjustForMissingColumns(to,ts,y,z)),y.barX=to,y.pointWidth=ts,y.tooltipPos=p.inverted?[R(L.len+L.pos-p.plotLeft-J,L.pos-p.plotLeft,L.len+L.pos-p.plotLeft),O.len+O.pos-p.plotTop-to-tr/2,ti]:[O.left-p.plotLeft+to+tr/2,R(J+L.pos-p.plotTop,L.pos-p.plotTop,L.len+L.pos-p.plotTop),ti],y.shapeType=e.pointClass.prototype.shapeType||"roundedRect",y.shapeArgs=e.crispCol(to,y.isNull?_:te,tr,y.isNull?0:ti)}),U(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(e,p){let x=this.options,y=this.pointAttrToOptions||{},b=y.stroke||"borderColor",E=y["stroke-width"]||"borderWidth",O,L,j,R=e&&e.color||this.color,z=e&&e[b]||x[b]||R,F=e&&e.options.dashStyle||x.dashStyle,H=e&&e[E]||x[E]||this[E]||0,U=K(e&&e.opacity,x.opacity,1);e&&this.zones.length&&(L=e.getZone(),R=e.options.color||L&&(L.color||e.nonZonedColor)||this.color,L&&(z=L.borderColor||z,F=L.dashStyle||F,H=L.borderWidth||H)),p&&e&&(j=(O=q(x.states[p],e.options.states&&e.options.states[p]||{})).brightness,R=O.color||void 0!==j&&D(R).brighten(O.brightness).get()||R,z=O[b]||z,H=O[E]||H,F=O.dashStyle||F,U=K(O.opacity,U));let Y={fill:R,stroke:z,"stroke-width":H,opacity:U};return F&&(Y.dashstyle=F),Y}drawPoints(e=this.points){let p;let x=this,y=this.chart,b=x.options,E=y.renderer,O=b.animationLimit||250;e.forEach(function(e){let L=e.plotY,D=e.graphic,j=!!D,R=D&&y.pointCounte?.enabled)}function x(e,p,x,y,b){let{chart:E,enabledDataSorting:D}=this,j=this.isCartesian&&E.inverted,R=e.plotX,F=e.plotY,U=x.rotation||0,Y=O(R)&&O(F)&&E.isInsidePlot(R,Math.round(F),{inverted:j,paneCoordinates:!0,series:this}),V=0===U&&"justify"===H(x.overflow,D?"none":"justify"),q=this.visible&&!1!==e.visible&&O(R)&&(e.series.forceDL||D&&!V||Y||H(x.inside,!!this.options.stacking)&&y&&E.isInsidePlot(R,j?y.x+1:y.y+y.height-1,{inverted:j,paneCoordinates:!0,series:this})),K=e.pos();if(q&&K){var $;let O=p.getBBox(),R=p.getBBox(void 0,0),F={right:1,center:.5}[x.align||0]||0,_={bottom:1,middle:.5}[x.verticalAlign||0]||0;if(y=L({x:K[0],y:Math.round(K[1]),width:0,height:0},y||{}),"plotEdges"===x.alignTo&&this.isCartesian&&(y[j?"x":"y"]=0,y[j?"width":"height"]=this.yAxis?.len||0),L(x,{width:O.width,height:O.height}),$=y,D&&this.xAxis&&!V&&this.setDataLabelStartPos(e,p,b,Y,$),p.align(z(x,{width:R.width,height:R.height}),!1,y,!1),p.alignAttr.x+=F*(R.width-O.width),p.alignAttr.y+=_*(R.height-O.height),p[p.placed?"animate":"attr"]({x:p.alignAttr.x+(O.width-R.width)/2,y:p.alignAttr.y+(O.height-R.height)/2,rotationOriginX:(p.width||0)/2,rotationOriginY:(p.height||0)/2}),V&&y.height>=0)this.justifyDataLabel(p,x,p.alignAttr,O,y,b);else if(H(x.crop,!0)){let{x:e,y:x}=p.alignAttr;q=E.isInsidePlot(e,x,{paneCoordinates:!0,series:this})&&E.isInsidePlot(e+O.width-1,x+O.height-1,{paneCoordinates:!0,series:this})}x.shape&&!U&&p[b?"attr":"animate"]({anchorX:K[0],anchorY:K[1]})}b&&D&&(p.placed=!1),q||D&&!V?(p.show(),p.placed=!0):(p.hide(),p.placed=!1)}function y(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function V(e){let p=this.hasRendered||0,x=this.initDataLabelsGroup().attr({opacity:+p});return!p&&x&&(this.visible&&x.show(),this.options.animation?x.animate({opacity:1},e):x.attr({opacity:1})),x}function q(e){let p;e=e||this.points;let x=this,y=x.chart,L=x.options,j=y.renderer,{backgroundColor:z,plotBackgroundColor:V}=y.options.chart,q=j.getContrast(R(V)&&V||R(z)&&z||"#000000"),K=_(x),{animation:Z,defer:J}=K[0],tt=J?b(y,Z,x):{defer:0,duration:0};D(this,"drawDataLabels"),x.hasDataLabels?.()&&(p=this.initDataLabels(tt),e.forEach(e=>{let b=e.dataLabels||[];Y($(K,e.dlOptions||e.options?.dataLabels)).forEach((D,z)=>{let Y=D.enabled&&(e.visible||e.dataLabelOnHidden)&&(!e.isNull||e.dataLabelOnNull)&&function(e,p){let x=p.filter;if(x){let p=x.operator,y=e[x.property],b=x.value;return">"===p&&y>b||"<"===p&&y="===p&&y>=b||"<="===p&&y<=b||"=="===p&&y==b||"==="===p&&y===b||"!="===p&&y!=b||"!=="===p&&y!==b}return!0}(e,D),{backgroundColor:V,borderColor:K,distance:$,style:_={}}=D,Z,J,tt,te,ti={},ts=b[z],to=!ts,tr;if(Y&&(J=H(D[e.formatPrefix+"Format"],D.format),Z=e.getLabelConfig(),tt=O(J)?E(J,Z,y):(D[e.formatPrefix+"Formatter"]||D.formatter).call(Z,D),te=D.rotation,!y.styledMode&&(_.color=H(D.color,_.color,R(x.color)?x.color:void 0,"#000000"),"contrast"===_.color?("none"!==V&&(tr=V),e.contrastColor=j.getContrast("auto"!==tr&&tr||e.color||x.color),_.color=tr||!O($)&&D.inside||0>U($||0)||L.stacking?e.contrastColor:q):delete e.contrastColor,L.cursor&&(_.cursor=L.cursor)),ti={r:D.borderRadius||0,rotation:te,padding:D.padding,zIndex:1},y.styledMode||(ti.fill="auto"===V?e.color:V,ti.stroke="auto"===K?e.color:K,ti["stroke-width"]=D.borderWidth),F(ti,(e,p)=>{void 0===e&&delete ti[p]})),!ts||Y&&O(tt)&&!!ts.div==!!D.useHTML&&(ts.rotation&&D.rotation||ts.rotation===D.rotation)||(ts=void 0,to=!0),Y&&O(tt)&&(ts?ti.text=tt:(ts=j.label(tt,0,0,D.shape,void 0,void 0,D.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(D.className||"")+(D.useHTML?" highcharts-tracker":"")),ts)){ts.options=D,ts.attr(ti),y.styledMode||ts.css(_).shadow(D.shadow);let E=D[e.formatPrefix+"TextPath"]||D.textPath;E&&!D.useHTML&&(ts.setTextPath(e.getDataLabelPath?.(ts)||e.graphic,E),e.dataLabelPath&&!E.enabled&&(e.dataLabelPath=e.dataLabelPath.destroy())),ts.added||ts.add(p),x.alignDataLabel(e,ts,D,void 0,to),ts.isActive=!0,b[z]&&b[z]!==ts&&b[z].destroy(),b[z]=ts}});let D=b.length;for(;D--;)b[D]&&b[D].isActive?b[D].isActive=!1:(b[D]?.destroy(),b.splice(D,1));e.dataLabel=b[0],e.dataLabels=b})),D(this,"afterDrawDataLabels")}function K(e,p,x,y,b,E){let O=this.chart,L=p.align,D=p.verticalAlign,j=e.box?0:e.padding||0,R=O.inverted?this.yAxis:this.xAxis,z=R?R.left-O.plotLeft:0,F=O.inverted?this.xAxis:this.yAxis,H=F?F.top-O.plotTop:0,{x:U=0,y:Y=0}=p,V,q;return(V=(x.x||0)+j+z)<0&&("right"===L&&U>=0?(p.align="left",p.inside=!0):U-=V,q=!0),(V=(x.x||0)+y.width-j+z)>O.plotWidth&&("left"===L&&U<=0?(p.align="right",p.inside=!0):U+=O.plotWidth-V,q=!0),(V=x.y+j+H)<0&&("bottom"===D&&Y>=0?(p.verticalAlign="top",p.inside=!0):Y-=V,q=!0),(V=(x.y||0)+y.height-j+H)>O.plotHeight&&("top"===D&&Y<=0?(p.verticalAlign="bottom",p.inside=!0):Y+=O.plotHeight-V,q=!0),q&&(p.x=U,p.y=Y,e.placed=!E,e.align(p,void 0,b)),q}function $(e,p){let x=[],y;if(j(e)&&!j(p))x=e.map(function(e){return z(e,p)});else if(j(p)&&!j(e))x=p.map(function(p){return z(e,p)});else if(j(e)||j(p)){if(j(e)&&j(p))for(y=Math.max(e.length,p.length);y--;)x[y]=z(e[y],p[y])}else x=z(e,p);return x}function _(e){let p=e.chart.options.plotOptions;return Y($($(p?.series?.dataLabels,p?.[e.type]?.dataLabels),e.options.dataLabels))}function Z(e,p,x,y,b){let E=this.chart,O=E.inverted,L=this.xAxis,D=L.reversed,j=((O?p.height:p.width)||0)/2,R=e.pointWidth,z=R?R/2:0;p.startXPos=O?b.x:D?-j-z:L.width-j+z,p.startYPos=O?D?this.yAxis.height-j+z:-j-z:b.y,y?"hidden"===p.visibility&&(p.show(),p.attr({opacity:0}).animate({opacity:1})):p.attr({opacity:1}).animate({opacity:0},void 0,p.hide),E.hasRendered&&(x&&p.attr({x:p.startXPos,y:p.startYPos}),p.placed=!0)}e.compose=function(e){let b=e.prototype;b.initDataLabels||(b.initDataLabels=V,b.initDataLabelsGroup=y,b.alignDataLabel=x,b.drawDataLabels=q,b.justifyDataLabel=K,b.setDataLabelStartPos=Z,b.hasDataLabels=p)}}(y||(y={})),y}),x(p,"Series/Column/ColumnDataLabel.js",[p["Core/Series/DataLabel.js"],p["Core/Globals.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Utilities.js"]],function(e,p,x,y){var b;let{composed:E}=p,{series:O}=x,{merge:L,pick:D,pushUnique:j}=y;return function(p){function x(e,p,x,y,b){let E=this.chart.inverted,j=e.series,R=(j.xAxis?j.xAxis.len:this.chart.plotSizeX)||0,z=(j.yAxis?j.yAxis.len:this.chart.plotSizeY)||0,F=e.dlBox||e.shapeArgs,H=D(e.below,e.plotY>D(this.translatedThreshold,z)),U=D(x.inside,!!this.options.stacking);if(F){if(y=L(F),!("allow"===x.overflow&&!1===x.crop)){y.y<0&&(y.height+=y.y,y.y=0);let e=y.y+y.height-z;e>0&&e\u25CF {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}}),x(p,"Series/Scatter/ScatterSeries.js",[p["Series/Scatter/ScatterSeriesDefaults.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Utilities.js"]],function(e,p,x){let{column:y,line:b}=p.seriesTypes,{addEvent:E,extend:O,merge:L}=x;let h=class h extends b{applyJitter(){let e=this,p=this.options.jitter,x=this.points.length;p&&this.points.forEach(function(y,b){["x","y"].forEach(function(E,O){if(p[E]&&!y.isNull){let L=`plot${E.toUpperCase()}`,D=e[`${E}Axis`],j=p[E]*D.transA;if(D&&!D.logarithmic){let e,p=Math.max(0,(y[L]||0)-j),R=Math.min(D.len,(y[L]||0)+j);y[L]=p+(R-p)*((e=1e4*Math.sin(b+O*x))-Math.floor(e)),"x"===E&&(y.clientX=y.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}};return h.defaultOptions=L(b.defaultOptions,e),O(h.prototype,{drawTracker:y.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),E(h,"afterTranslate",function(){this.applyJitter()}),p.registerSeriesType("scatter",h),h}),x(p,"Series/CenteredUtilities.js",[p["Core/Globals.js"],p["Core/Series/Series.js"],p["Core/Utilities.js"]],function(e,p,x){var y,b;let{deg2rad:E}=e,{fireEvent:O,isNumber:L,pick:D,relativeLength:j}=x;return(b=y||(y={})).getCenter=function(){let e=this.options,x=this.chart,y=2*(e.slicedOffset||0),b=x.plotWidth-2*y,E=x.plotHeight-2*y,R=e.center,z=Math.min(b,E),F=e.thickness,H,U=e.size,Y=e.innerSize||0,V,q;"string"==typeof U&&(U=parseFloat(U)),"string"==typeof Y&&(Y=parseFloat(Y));let K=[D(R[0],"50%"),D(R[1],"50%"),D(U&&U<0?void 0:e.size,"100%"),D(Y&&Y<0?void 0:e.innerSize||0,"0%")];for(!x.angular||this instanceof p||(K[3]=0),V=0;V<4;++V)q=K[V],H=V<2||2===V&&/%$/.test(q),K[V]=j(q,[b,E,z,K[2]][V])+(H?y:0);return K[3]>K[2]&&(K[3]=K[2]),L(F)&&2*F0&&(K[3]=K[2]-2*F),O(this,"afterGetCenter",{positions:K}),K},b.getStartAndEndRadians=function(e,p){let x=L(e)?e:0,y=L(p)&&p>x&&p-x<360?p:x+360;return{start:E*(x+-90),end:E*(y+-90)}},y}),x(p,"Series/Pie/PiePoint.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Series/Point.js"],p["Core/Utilities.js"]],function(e,p,x){let{setAnimation:y}=e,{addEvent:b,defined:E,extend:O,isNumber:L,pick:D,relativeLength:j}=x;let d=class d extends p{getConnectorPath(e){let p=e.dataLabelPosition,x=e.options||{},y=x.connectorShape,b=this.connectorShapes[y]||y;return p&&b.call(this,{...p.computed,alignment:p.alignment},p.connectorPosition,x)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(e){let p=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(p.x,p.y,p.r+e,p.r+e,{innerR:p.r-1,start:p.start,end:p.end,borderRadius:p.borderRadius})}constructor(e,p,x){super(e,p,x),this.half=0,this.name??(this.name="Slice");let y=e=>{this.slice("select"===e.type)};b(this,"select",y),b(this,"unselect",y)}isValid(){return L(this.y)&&this.y>=0}setVisible(e,p=!0){e!==this.visible&&this.update({visible:e??!this.visible},p,void 0,!1)}slice(e,p,x){let b=this.series;y(x,b.chart),p=D(p,!0),this.sliced=this.options.sliced=e=E(e)?e:!this.sliced,b.options.data[b.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}};return O(d.prototype,{connectorShapes:{fixedOffset:function(e,p,x){let y=p.breakAt,b=p.touchingSliceAt,E=x.softConnector?["C",e.x+("left"===e.alignment?-5:5),e.y,2*y.x-b.x,2*y.y-b.y,y.x,y.y]:["L",y.x,y.y];return[["M",e.x,e.y],E,["L",b.x,b.y]]},straight:function(e,p){let x=p.touchingSliceAt;return[["M",e.x,e.y],["L",x.x,x.y]]},crookedLine:function(e,p,x){let{breakAt:y,touchingSliceAt:b}=p,{series:E}=this,[O,L,D]=E.center,R=D/2,{plotLeft:z,plotWidth:F}=E.chart,H="left"===e.alignment,{x:U,y:Y}=e,V=y.x;if(x.crookDistance){let e=j(x.crookDistance,1);V=H?O+R+(F+z-O-R)*(1-e):z+(O-R)*e}else V=O+(L-Y)*Math.tan((this.angle||0)-Math.PI/2);let q=[["M",U,Y]];return(H?V<=U&&V>=y.x:V>=U&&V<=y.x)&&q.push(["L",V,Y]),q.push(["L",y.x,y.y],["L",b.x,b.y]),q}}}),d}),x(p,"Series/Pie/PieSeriesDefaults.js",[],function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),x(p,"Series/Pie/PieSeries.js",[p["Series/CenteredUtilities.js"],p["Series/Column/ColumnSeries.js"],p["Core/Globals.js"],p["Series/Pie/PiePoint.js"],p["Series/Pie/PieSeriesDefaults.js"],p["Core/Series/Series.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Renderer/SVG/Symbols.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E,O,L,D){let{getStartAndEndRadians:j}=e,{noop:R}=x,{clamp:z,extend:F,fireEvent:H,merge:U,pick:Y}=D;let m=class m extends E{animate(e){let p=this,x=p.points,y=p.startAngleRad;e||x.forEach(function(e){let x=e.graphic,b=e.shapeArgs;x&&b&&(x.attr({r:Y(e.startR,p.center&&p.center[3]/2),start:y,end:y}),x.animate({r:b.r,start:b.start,end:b.end},p.options.animation))})}drawEmpty(){let e,p;let x=this.startAngleRad,y=this.endAngleRad,b=this.options;0===this.total&&this.center?(e=this.center[0],p=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(e,p,this.center[1]/2,0,x,y).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:L.arc(e,p,this.center[2]/2,0,{start:x,end:y,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":b.borderWidth,fill:b.fillColor||"none",stroke:b.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let e=this.chart.renderer;this.points.forEach(function(p){p.graphic&&p.hasNewShapeType()&&(p.graphic=p.graphic.destroy()),p.graphic||(p.graphic=e[p.shapeType](p.shapeArgs).add(p.series.group),p.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(e,p,x,y){let b=this.center,E=this.radii?this.radii[x.index]||0:b[2]/2,O=y.dataLabelPosition,L=O?.distance||0,D=Math.asin(z((e-b[1])/(E+L),-1,1));return b[0]+Math.cos(D)*(E+L)*(p?-1:1)+(L>0?(p?-1:1)*(y.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let e,p,x,y;let b=this,E=b.chart;this.drawEmpty(),b.group&&!E.styledMode&&b.group.shadow(b.options.shadow),b.points.forEach(function(O){let L={};p=O.graphic,!O.isNull&&p?(y=O.shapeArgs,e=O.getTranslate(),E.styledMode||(x=b.pointAttribs(O,O.selected&&"select")),O.delayedRendering?(p.setRadialReference(b.center).attr(y).attr(e),E.styledMode||p.attr(x).attr({"stroke-linejoin":"round"}),O.delayedRendering=!1):(p.setRadialReference(b.center),E.styledMode||U(!0,L,x),U(!0,L,y,e),p.animate(L)),p.attr({visibility:O.visible?"inherit":"hidden"}),p.addClass(O.getClassName(),!0)):p&&(O.graphic=p.destroy())})}sortByAngle(e,p){e.sort(function(e,x){return void 0!==e.angle&&(x.angle-e.angle)*p})}translate(e){H(this,"translate"),this.generatePoints();let p=this.options,x=p.slicedOffset,y=j(p.startAngle,p.endAngle),b=this.startAngleRad=y.start,E=(this.endAngleRad=y.end)-b,O=this.points,L=p.ignoreHiddenPoint,D=O.length,R,z,F,U,Y,V,q,K=0;for(e||(this.center=e=this.getCenter()),V=0;V1.5*Math.PI?F-=2*Math.PI:F<-Math.PI/2&&(F+=2*Math.PI),q.slicedTranslation={translateX:Math.round(Math.cos(F)*x),translateY:Math.round(Math.sin(F)*x)},U=Math.cos(F)*e[2]/2,Y=Math.sin(F)*e[2]/2,q.tooltipPos=[e[0]+.7*U,e[1]+.7*Y],q.half=F<-Math.PI/2||F>Math.PI/2?1:0,q.angle=F}H(this,"afterTranslate")}updateTotals(){let e=this.points,p=e.length,x=this.options.ignoreHiddenPoint,y,b,E=0;for(y=0;y0&&(b.visible||!x)?b.y/E*100:0,b.total=E}};return m.defaultOptions=U(E.defaultOptions,b),F(m.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:p.prototype.drawTracker,getCenter:e.getCenter,getSymbol:R,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:p.prototype.pointAttribs,pointClass:y,requireSorting:!1,searchPoint:R,trackerGroups:["group","dataLabelsGroup"]}),O.registerSeriesType("pie",m),m}),x(p,"Series/Pie/PieDataLabel.js",[p["Core/Series/DataLabel.js"],p["Core/Globals.js"],p["Core/Renderer/RendererUtilities.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Utilities.js"]],function(e,p,x,y,b){var E;let{composed:O,noop:L}=p,{distribute:D}=x,{series:j}=y,{arrayMax:R,clamp:z,defined:F,pick:H,pushUnique:U,relativeLength:Y}=b;return function(p){let x={radialDistributionY:function(e,p){return(p.dataLabelPosition?.top||0)+e.distributeBox.pos},radialDistributionX:function(e,p,x,y,b){let E=b.dataLabelPosition;return e.getX(x<(E?.top||0)+2||x>(E?.bottom||0)-2?y:x,p.half,p,b)},justify:function(e,p,x,y){return y[0]+(e.half?-1:1)*(x+(p.dataLabelPosition?.distance||0))},alignToPlotEdges:function(e,p,x,y){let b=e.getBBox().width;return p?b+y:x-b-y},alignToConnectors:function(e,p,x,y){let b=0,E;return e.forEach(function(e){(E=e.dataLabel.getBBox().width)>b&&(b=E)}),p?b+y:x-b-y}};function y(e,p){let{center:x,options:y}=this,b=x[2]/2,E=e.angle||0,O=Math.cos(E),L=Math.sin(E),D=x[0]+O*b,j=x[1]+L*b,R=Math.min((y.slicedOffset||0)+(y.borderWidth||0),p/5);return{natural:{x:D+O*p,y:j+L*p},computed:{},alignment:p<0?"center":e.half?"right":"left",connectorPosition:{breakAt:{x:D+O*R,y:j+L*R},touchingSliceAt:{x:D,y:j}},distance:p}}function b(){let e=this,p=e.points,x=e.chart,y=x.plotWidth,b=x.plotHeight,E=x.plotLeft,O=Math.round(x.chartWidth/3),L=e.center,z=L[2]/2,U=L[1],V=[[],[]],q=[0,0,0,0],K=e.dataLabelPositioners,$,_,Z,J=0;e.visible&&e.hasDataLabels?.()&&(p.forEach(e=>{(e.dataLabels||[]).forEach(e=>{e.shortened&&(e.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),e.shortened=!1)})}),j.prototype.drawDataLabels.apply(e),p.forEach(e=>{(e.dataLabels||[]).forEach((p,x)=>{let y=L[2]/2,b=p.options,E=Y(b?.distance||0,y);0===x&&V[e.half].push(e),!F(b?.style?.width)&&p.getBBox().width>O&&(p.css({width:Math.round(.7*O)+"px"}),p.shortened=!0),p.dataLabelPosition=this.getDataLabelPosition(e,E),J=Math.max(J,E)})}),V.forEach((p,O)=>{let j=p.length,R=[],Y,V,$=0,tt;j&&(e.sortByAngle(p,O-.5),J>0&&(Y=Math.max(0,U-z-J),V=Math.min(U+z+J,x.plotHeight),p.forEach(e=>{(e.dataLabels||[]).forEach(p=>{let y=p.dataLabelPosition;y&&y.distance>0&&(y.top=Math.max(0,U-z-y.distance),y.bottom=Math.min(U+z+y.distance,x.plotHeight),$=p.getBBox().height||21,e.distributeBox={target:(p.dataLabelPosition?.natural.y||0)-y.top+$/2,size:$,rank:e.y},R.push(e.distributeBox))})}),D(R,tt=V+$-Y,tt/5)),p.forEach(x=>{(x.dataLabels||[]).forEach(D=>{let j=D.options||{},U=x.distributeBox,Y=D.dataLabelPosition,V=Y?.natural.y||0,$=j.connectorPadding||0,J=0,tt=V,te="inherit";if(Y){if(R&&F(U)&&Y.distance>0&&(void 0===U.pos?te="hidden":(Z=U.size,tt=K.radialDistributionY(x,D))),j.justify)J=K.justify(x,D,z,L);else switch(j.alignTo){case"connectors":J=K.alignToConnectors(p,O,y,E);break;case"plotEdges":J=K.alignToPlotEdges(D,O,y,E);break;default:J=K.radialDistributionX(e,x,tt,V,D)}if(Y.attribs={visibility:te,align:Y.alignment},Y.posAttribs={x:J+(j.x||0)+(({left:$,right:-$})[Y.alignment]||0),y:tt+(j.y||0)-D.getBBox().height/2},Y.computed.x=J,Y.computed.y=tt,H(j.crop,!0)){let e;J-(_=D.getBBox().width)<$&&1===O?(e=Math.round(_-J+$),q[3]=Math.max(e,q[3])):J+_>y-$&&0===O&&(e=Math.round(J+_-y+$),q[1]=Math.max(e,q[1])),tt-Z/2<0?q[0]=Math.max(Math.round(-tt+Z/2),q[0]):tt+Z/2>b&&(q[2]=Math.max(Math.round(tt+Z/2-b),q[2])),Y.sideOverflow=e}}})}))}),(0===R(q)||this.verifyDataLabelOverflow(q))&&(this.placeDataLabels(),this.points.forEach(p=>{(p.dataLabels||[]).forEach(y=>{let{connectorColor:b,connectorWidth:E=1}=y.options||{},O=y.dataLabelPosition;if(E){let L;$=y.connector,O&&O.distance>0?(L=!$,$||(y.connector=$=x.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+p.colorIndex+(p.className?" "+p.className:"")).add(e.dataLabelsGroup)),x.styledMode||$.attr({"stroke-width":E,stroke:b||p.color||"#666666"}),$[L?"attr":"animate"]({d:p.getConnectorPath(y)}),$.attr({visibility:O.attribs?.visibility})):$&&(y.connector=$.destroy())}})})))}function E(){this.points.forEach(e=>{(e.dataLabels||[]).forEach(e=>{let p=e.dataLabelPosition;p?(p.sideOverflow&&(e.css({width:Math.max(e.getBBox().width-p.sideOverflow,0)+"px",textOverflow:(e.options?.style||{}).textOverflow||"ellipsis"}),e.shortened=!0),e.attr(p.attribs),e[e.moved?"animate":"attr"](p.posAttribs),e.moved=!0):e&&e.attr({y:-9999})}),delete e.distributeBox},this)}function V(e){let p=this.center,x=this.options,y=x.center,b=x.minSize||80,E=b,O=null!==x.size;return!O&&(null!==y[0]?E=Math.max(p[2]-Math.max(e[1],e[3]),b):(E=Math.max(p[2]-e[1]-e[3],b),p[0]+=(e[3]-e[1])/2),null!==y[1]?E=z(E,b,p[2]-Math.max(e[0],e[2])):(E=z(E,b,p[2]-e[0]-e[2]),p[1]+=(e[0]-e[2])/2),E!(p.x>=e.x+e.width||p.x+p.width<=e.x||p.y>=e.y+e.height||p.y+p.height<=e.y),b,E,L,D,j,R=!1;for(let x=0;x(p.labelrank||0)-(e.labelrank||0));for(let x=0;x{y(e,e=>{e.label&&p.push(e.label)})});for(let x of e.series||[])if(x.visible&&x.hasDataLabels?.()){let y=x=>{for(let y of x)y.visible&&(y.dataLabels||[]).forEach(x=>{let E=x.options||{};x.labelrank=b(E.labelrank,y.labelrank,y.shapeArgs?.height),E.allowOverlap??Number(E.distance)>0?(x.oldOpacity=x.opacity,x.newOpacity=1,O(x,e)):p.push(x)})};y(x.nodes||[]),y(x.points)}this.hideOverlappingLabels(p)}return{compose:function(e){let x=e.prototype;x.hideOverlappingLabels||(x.hideOverlappingLabels=E,p(e,"render",L))}}}),x(p,"Extensions/BorderRadius.js",[p["Core/Defaults.js"],p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p,x){let{defaultOptions:y}=e,{noop:b}=p,{addEvent:E,extend:O,isObject:L,merge:D,relativeLength:j}=x,R={radius:0,scope:"stack",where:void 0},z=b,F=b;function H(e,p,x,y,b={}){let E=z(e,p,x,y,b),{innerR:O=0,r:L=x,start:D=0,end:R=0}=b;if(b.open||!b.borderRadius)return E;let F=R-D,U=Math.sin(F/2),Y=Math.max(Math.min(j(b.borderRadius||0,L-O),(L-O)/2,L*U/(1+U)),0),V=Math.min(Y,F/Math.PI*2*O),q=E.length-1;for(;q--;)!function(e,p,x){let y,b,E;let O=e[p],L=e[p+1];if("Z"===L[0]&&(L=e[0]),("M"===O[0]||"L"===O[0])&&"A"===L[0]?(y=O,b=L,E=!0):"A"===O[0]&&("M"===L[0]||"L"===L[0])&&(y=L,b=O),y&&b&&b.params){let O=b[1],L=b[5],D=b.params,{start:j,end:R,cx:z,cy:F}=D,H=L?O-x:O+x,U=H?Math.asin(x/H):0,Y=L?U:-U,V=Math.cos(U)*H;E?(D.start=j+Y,y[1]=z+V*Math.cos(j),y[2]=F+V*Math.sin(j),e.splice(p+1,0,["A",x,x,0,0,1,z+O*Math.cos(D.start),F+O*Math.sin(D.start)])):(D.end=R-Y,b[6]=z+O*Math.cos(D.end),b[7]=F+O*Math.sin(D.end),e.splice(p+1,0,["A",x,x,0,0,1,z+V*Math.cos(R),F+V*Math.sin(R)])),b[4]=Math.abs(D.end-D.start)1?V:Y);return E}function U(){if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:e,yAxis:p}=this,x="percent"===e.stacking,b=y.plotOptions?.[this.type]?.borderRadius,E=Y(e.borderRadius,L(b)?b:{}),D=p.options.reversed;for(let y of this.points){let{shapeArgs:b}=y;if("roundedRect"===y.shapeType&&b){let{width:L=0,height:R=0,y:z=0}=b,F=z,H=R;if("stack"===E.scope&&y.stackTotal){let b=p.translate(x?100:y.stackTotal,!1,!0,!1,!0),E=p.translate(e.threshold||0,!1,!0,!1,!0),O=this.crispCol(0,Math.min(b,E),0,Math.abs(b-E));F=O.y,H=O.height}let U=(y.negative?-1:1)*(D?-1:1)==-1,Y=E.where;!Y&&this.is("waterfall")&&Math.abs((y.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(Y="all"),Y||(Y="end");let V=Math.min(j(E.radius,L),L/2,"all"===Y?R/2:1/0)||0;"end"===Y&&(U&&(F-=V),H+=V),O(b,{brBoxHeight:H,brBoxY:F,r:V})}}}}function Y(e,p){return L(e)||(e={radius:e||0}),D(R,p,e)}function V(){let e=Y(this.options.borderRadius);for(let p of this.points){let x=p.shapeArgs;x&&(x.borderRadius=j(e.radius,(x.r||0)-(x.innerR||0)))}}function q(e,p,x,y,b={}){let E=F(e,p,x,y,b),{r:O=0,brBoxHeight:L=y,brBoxY:D=p}=b,j=p-D,R=D+L-(p+y),z=j-O>-.1?0:O,H=R-O>-.1?0:O,U=Math.max(z&&j,0),Y=Math.max(H&&R,0),V=[e+z,p],K=[e+x-z,p],$=[e+x,p+z],_=[e+x,p+y-H],Z=[e+x-H,p+y],J=[e+H,p+y],tt=[e,p+y-H],te=[e,p+z],ti=(e,p)=>Math.sqrt(Math.pow(e,2)-Math.pow(p,2));if(U){let e=ti(z,z-U);V[0]-=e,K[0]+=e,$[1]=te[1]=p+z-U}if(y=O(x.minWidth,0)&&this.chartHeight>=O(x.minHeight,0)}).call(this)&&p.push(e._id)}function D(e,p){let y=this.options.responsive,O=this.currentResponsive,D=[],j;!p&&y&&y.rules&&y.rules.forEach(e=>{void 0===e._id&&(e._id=L()),this.matchResponsiveRule(e,D)},this);let R=E(...D.map(e=>b((y||{}).rules||[],p=>p._id===e)).map(e=>e&&e.chartOptions));R.isResponsiveOptions=!0,D=D.toString()||void 0;let z=O&&O.ruleIds;D!==z&&(O&&this.update(O.undoOptions,e,!0),D?((j=x(R,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:D,mergedOptions:R,undoOptions:j},this.update(R,e,!0)):this.currentResponsive=void 0)}e.compose=function(e){let x=e.prototype;return x.matchResponsiveRule||y(x,{matchResponsiveRule:p,setResponsive:D}),e}}(p||(p={})),p}),x(p,"masters/highcharts.src.js",[p["Core/Globals.js"],p["Core/Utilities.js"],p["Core/Defaults.js"],p["Core/Animation/Fx.js"],p["Core/Animation/AnimationUtilities.js"],p["Core/Renderer/HTML/AST.js"],p["Core/Templating.js"],p["Core/Renderer/RendererRegistry.js"],p["Core/Renderer/RendererUtilities.js"],p["Core/Renderer/SVG/SVGElement.js"],p["Core/Renderer/SVG/SVGRenderer.js"],p["Core/Renderer/HTML/HTMLElement.js"],p["Core/Axis/Axis.js"],p["Core/Axis/DateTimeAxis.js"],p["Core/Axis/LogarithmicAxis.js"],p["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],p["Core/Axis/Tick.js"],p["Core/Tooltip.js"],p["Core/Series/Point.js"],p["Core/Pointer.js"],p["Core/Legend/Legend.js"],p["Core/Legend/LegendSymbol.js"],p["Core/Chart/Chart.js"],p["Extensions/ScrollablePlotArea.js"],p["Core/Axis/Stacking/StackingAxis.js"],p["Core/Axis/Stacking/StackItem.js"],p["Core/Series/Series.js"],p["Core/Series/SeriesRegistry.js"],p["Series/Column/ColumnDataLabel.js"],p["Series/Pie/PieDataLabel.js"],p["Core/Series/DataLabel.js"],p["Extensions/OverlappingDataLabels.js"],p["Extensions/BorderRadius.js"],p["Core/Responsive.js"],p["Core/Color/Color.js"],p["Core/Time.js"]],function(e,p,x,y,b,E,O,L,D,j,R,z,F,H,U,Y,V,q,K,$,_,Z,J,tt,te,ti,ts,to,tr,tn,ta,tl,th,td,tc,tp){return e.AST=E,e.Axis=F,e.Chart=J,e.Color=tc,e.DataLabel=ta,e.Fx=y,e.HTMLElement=z,e.Legend=_,e.LegendSymbol=Z,e.OverlappingDataLabels=e.OverlappingDataLabels||tl,e.PlotLineOrBand=Y,e.Point=K,e.Pointer=$,e.RendererRegistry=L,e.Series=ts,e.SeriesRegistry=to,e.StackItem=ti,e.SVGElement=j,e.SVGRenderer=R,e.Templating=O,e.Tick=V,e.Time=tp,e.Tooltip=q,e.animate=b.animate,e.animObject=b.animObject,e.chart=J.chart,e.color=tc.parse,e.dateFormat=O.dateFormat,e.defaultOptions=x.defaultOptions,e.distribute=D.distribute,e.format=O.format,e.getDeferredAnimation=b.getDeferredAnimation,e.getOptions=x.getOptions,e.numberFormat=O.numberFormat,e.seriesType=to.seriesType,e.setAnimation=b.setAnimation,e.setOptions=x.setOptions,e.stop=b.stop,e.time=x.defaultTime,e.timers=y.timers,th.compose(e.Series,e.SVGElement,e.SVGRenderer),tr.compose(e.Series.types.column),ta.compose(e.Series),H.compose(e.Axis),z.compose(e.SVGRenderer),_.compose(e.Chart),U.compose(e.Axis),tl.compose(e.Chart),tn.compose(e.Series.types.pie),Y.compose(e.Axis),$.compose(e.Chart),td.compose(e.Chart),tt.compose(e.Axis,e.Chart,e.Series),te.compose(e.Axis,e.Chart,e.Series),q.compose(e.Pointer),p.extend(e,p),e}),p["masters/highcharts.src.js"]._modules=p,p["masters/highcharts.src.js"]},e.exports?(E.default=E,e.exports=b&&b.document?E(b):E):void 0!==(y=(function(){return E(b)}).call(p,x,p,e))&&(e.exports=y)},65006:function(e,p,x){var y,b,E;b="undefined"!=typeof window?window:this,E=function(e){"use strict";var p={};function x(p,x,y,b){p.hasOwnProperty(x)||(p[x]=b.apply(null,y),"function"==typeof CustomEvent&&e.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:x,module:p[x]}})))}return x(p,"Core/Globals.js",[],function(){var p,x;return(x=p||(p={})).SVG_NS="http://www.w3.org/2000/svg",x.product="Highcharts",x.version="11.4.3",x.win=void 0!==e?e:{},x.doc=x.win.document,x.svg=x.doc&&x.doc.createElementNS&&!!x.doc.createElementNS(x.SVG_NS,"svg").createSVGRect,x.userAgent=x.win.navigator&&x.win.navigator.userAgent||"",x.isChrome=-1!==x.userAgent.indexOf("Chrome"),x.isFirefox=-1!==x.userAgent.indexOf("Firefox"),x.isMS=/(edge|msie|trident)/i.test(x.userAgent)&&!x.win.opera,x.isSafari=!x.isChrome&&-1!==x.userAgent.indexOf("Safari"),x.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(x.userAgent),x.isWebKit=-1!==x.userAgent.indexOf("AppleWebKit"),x.deg2rad=2*Math.PI/360,x.hasBidiBug=x.isFirefox&&4>parseInt(x.userAgent.split("Firefox/")[1],10),x.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],x.noop=function(){},x.supportsPassiveEvents=function(){let e=!1;if(!x.isMS){let p=Object.defineProperty({},"passive",{get:function(){e=!0}});x.win.addEventListener&&x.win.removeEventListener&&(x.win.addEventListener("testPassive",x.noop,p),x.win.removeEventListener("testPassive",x.noop,p))}return e}(),x.charts=[],x.composed=[],x.dateFormats={},x.seriesTypes={},x.symbolSizes={},x.chartCount=0,p}),x(p,"Core/Utilities.js",[p["Core/Globals.js"]],function(e){let p,x,y;let{charts:b,doc:E,win:O}=e;function L(p,x,y,b){let E=x?"Highcharts error":"Highcharts warning";32===p&&(p=`${E}: Deprecated member`);let D=U(p),j=D?`${E} #${p}: www.highcharts.com/errors/${p}/`:p.toString();if(void 0!==b){let e="";D&&(j+="?"),te(b,function(p,x){e+=` + - ${x}: ${p}`,D&&(j+=encodeURI(x)+"="+encodeURI(p))}),j+=e}ts(e,"displayError",{chart:y,code:p,message:j,params:b},function(){if(x)throw Error(j);O.console&&-1===L.messages.indexOf(j)&&console.warn(j)}),L.messages.push(j)}function D(e,p){return parseInt(e,p||10)}function j(e){return"string"==typeof e}function R(e){let p=Object.prototype.toString.call(e);return"[object Array]"===p||"[object Array Iterator]"===p}function z(e,p){return!!e&&"object"==typeof e&&(!p||!R(e))}function F(e){return z(e)&&"number"==typeof e.nodeType}function H(e){let p=e&&e.constructor;return!!(z(e,!0)&&!F(e)&&p&&p.name&&"Object"!==p.name)}function U(e){return"number"==typeof e&&!isNaN(e)&&e<1/0&&e>-1/0}function Y(e){return null!=e}function V(e,p,x){let y;let b=j(p)&&!Y(x),E=(p,x)=>{Y(p)?e.setAttribute(x,p):b?(y=e.getAttribute(x))||"class"!==x||(y=e.getAttribute(x+"Name")):e.removeAttribute(x)};return j(p)?E(x,p):te(p,E),y}function q(e){return R(e)?e:[e]}function K(e,p){let x;for(x in e||(e={}),p)e[x]=p[x];return e}function $(){let e=arguments,p=e.length;for(let x=0;x1e14?e:parseFloat(e.toPrecision(p||14))}(L||(L={})).messages=[],Math.easeInOutSine=function(e){return -.5*(Math.cos(Math.PI*e)-1)};let tt=Array.prototype.find?function(e,p){return e.find(p)}:function(e,p){let x;let y=e.length;for(x=0;xe.order-p.order),e.forEach(e=>{!1===e.fn.call(p,y)&&y.preventDefault()})}b&&!y.defaultPrevented&&b.call(p,y)}te({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(p,x){e[x]=function(e){return L(32,!1,void 0,{[`Highcharts.${x}`]:`use Array.${p}`}),Array.prototype[p].apply(e,[].slice.call(arguments,1))}});let to=(x=Math.random().toString(36).substring(2,9)+"-",y=0,function(){return"highcharts-"+(p?"":x)+y++});return O.jQuery&&(O.jQuery.fn.highcharts=function(){let p=[].slice.call(arguments);if(this[0])return p[0]?(new e[j(p[0])?p.shift():"Chart"](this[0],p[0],p[1]),this):b[V(this[0],"data-highcharts-chart")]}),{addEvent:function(p,x,y,b={}){let E="function"==typeof p&&p.prototype||p;Object.hasOwnProperty.call(E,"hcEvents")||(E.hcEvents={});let O=E.hcEvents;e.Point&&p instanceof e.Point&&p.series&&p.series.chart&&(p.series.chart.runTrackerClick=!0);let L=p.addEventListener;L&&L.call(p,x,y,!!e.supportsPassiveEvents&&{passive:void 0===b.passive?-1!==x.indexOf("touch"):b.passive,capture:!1}),O[x]||(O[x]=[]);let D={fn:y,order:"number"==typeof b.order?b.order:1/0};return O[x].push(D),O[x].sort((e,p)=>e.order-p.order),function(){ti(p,x,y)}},arrayMax:function(e){let p=e.length,x=e[0];for(;p--;)e[p]>x&&(x=e[p]);return x},arrayMin:function(e){let p=e.length,x=e[0];for(;p--;)e[p]p?e{let y=p%2/2,b=x?-1:1;return(Math.round(e*b-y)+y)*b},css:_,defined:Y,destroyObjectProperties:function(e,p,x){te(e,function(y,b){y!==p&&y?.destroy&&y.destroy(),(y?.destroy||!x)&&delete e[b]})},diffObjects:function(e,p,x,y){let b={};return function e(p,b,E,O){let L=x?b:p;te(p,function(x,D){if(!O&&y&&y.indexOf(D)>-1&&b[D]){x=q(x),E[D]=[];for(let p=0;p{if(e.length>1)for(E=y=e.length-1;E>0;E--)(b=e[E]-e[E-1])<0&&!O?(p?.(),p=void 0):b&&(void 0===x||b=x-1&&(x=Math.floor(y)),Math.max(0,x-(e(p,"padding-left",!0)||0)-(e(p,"padding-right",!0)||0))}if("height"===x)return Math.max(0,Math.min(p.offsetHeight,p.scrollHeight)-(e(p,"padding-top",!0)||0)-(e(p,"padding-bottom",!0)||0));let E=O.getComputedStyle(p,void 0);return E&&(b=E.getPropertyValue(x),$(y,"opacity"!==x)&&(b=D(b))),b},inArray:function(e,p,x){return L(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),p.indexOf(e,x)},insertItem:function(e,p){let x;let y=e.options.index,b=p.length;for(x=e.options.isInternal?b:0;x=e))&&(b||!(L<=(p[E]+(p[E+1]||p[E]))/2)));E++);return J(O*x,-Math.round(Math.log(.001)/Math.LN10))},objectEach:te,offset:function(e){let p=E.documentElement,x=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:x.top+(O.pageYOffset||p.scrollTop)-(p.clientTop||0),left:x.left+(O.pageXOffset||p.scrollLeft)-(p.clientLeft||0),width:x.width,height:x.height}},pad:function(e,p,x){return Array((p||2)+1-String(e).replace("-","").length).join(x||"0")+e},pick:$,pInt:D,pushUnique:function(e,p){return 0>e.indexOf(p)&&!!e.push(p)},relativeLength:function(e,p,x){return/%$/.test(e)?p*parseFloat(e)/100+(x||0):parseFloat(e)},removeEvent:ti,replaceNested:function(e,...p){let x,y;do for(y of(x=e,p))e=e.replace(y[0],y[1]);while(e!==x)return e},splat:q,stableSort:function(e,p){let x,y;let b=e.length;for(y=0;y0?setTimeout(e,p,x):(e.call(0,x),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:to,useSerialIds:function(e){return p=$(e,p)},wrap:function(e,p,x){let y=e[p];e[p]=function(){let e=arguments,p=this;return x.apply(this,[function(){return y.apply(p,arguments.length?arguments:e)}].concat([].slice.call(arguments)))}}}}),x(p,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),x(p,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),x(p,"Core/Time.js",[p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p){let{win:x}=e,{defined:y,error:b,extend:E,isNumber:O,isObject:L,merge:D,objectEach:j,pad:R,pick:z,splat:F,timeUnits:H}=p,U=e.isSafari&&x.Intl&&x.Intl.DateTimeFormat.prototype.formatRange,Y=e.isSafari&&x.Intl&&!x.Intl.DateTimeFormat.prototype.formatRange;let m=class m{constructor(e){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=x.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(e)}get(e,p){if(this.variableTimezone||this.timezoneOffset){let x=p.getTime(),y=x-this.getTimezoneOffset(p);p.setTime(y);let b=p["getUTC"+e]();return p.setTime(x),b}return this.useUTC?p["getUTC"+e]():p["get"+e]()}set(e,p,x){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===e||"Seconds"===e||"Minutes"===e&&this.getTimezoneOffset(p)%36e5==0)return p["setUTC"+e](x);let y=this.getTimezoneOffset(p),b=p.getTime()-y;p.setTime(b),p["setUTC"+e](x);let E=this.getTimezoneOffset(p);return b=p.getTime()+E,p.setTime(b)}return this.useUTC||U&&"FullYear"===e?p["setUTC"+e](x):p["set"+e](x)}update(e={}){let p=z(e.useUTC,!0);this.options=e=D(!0,this.options,e),this.Date=e.Date||x.Date||Date,this.useUTC=p,this.timezoneOffset=p&&e.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=p&&!!(e.getTimezoneOffset||e.timezone)}makeTime(e,p,x,y,b,E){let O,L,D;return this.useUTC?(O=this.Date.UTC.apply(0,arguments),L=this.getTimezoneOffset(O),O+=L,L!==(D=this.getTimezoneOffset(O))?O+=D-L:L-36e5!==this.getTimezoneOffset(O-36e5)||Y||(O-=36e5)):O=new this.Date(e,p,z(x,1),z(y,0),z(b,0),z(E,0)).getTime(),O}timezoneOffsetFunction(){let e=this,p=this.options,x=p.getTimezoneOffset;return this.useUTC?p.timezone?e=>{try{let x=`shortOffset,${p.timezone||""}`,[y,b,E,L,D=0]=(m.formatCache[x]=m.formatCache[x]||Intl.DateTimeFormat("en",{timeZone:p.timezone,timeZoneName:"shortOffset"})).format(e).split(/(GMT|:)/).map(Number),j=-(36e5*(E+D/60));if(O(j))return j}catch(e){b(34)}return 0}:this.useUTC&&x?e=>6e4*x(e.valueOf()):()=>6e4*(e.timezoneOffset||0):e=>6e4*new Date(e.toString()).getTimezoneOffset()}dateFormat(p,x,b){if(!y(x)||isNaN(x))return e.defaultOptions.lang&&e.defaultOptions.lang.invalidDate||"";p=z(p,"%Y-%m-%d %H:%M:%S");let O=this,L=new this.Date(x),D=this.get("Hours",L),F=this.get("Day",L),H=this.get("Date",L),U=this.get("Month",L),Y=this.get("FullYear",L),V=e.defaultOptions.lang,q=V&&V.weekdays,K=V&&V.shortWeekdays;return j(E({a:K?K[F]:q[F].substr(0,3),A:q[F],d:R(H),e:R(H,2," "),w:F,b:V.shortMonths[U],B:V.months[U],m:R(U+1),o:U+1,y:Y.toString().substr(2,2),Y:Y,H:R(D),k:D,I:R(D%12||12),l:D%12||12,M:R(this.get("Minutes",L)),p:D<12?"AM":"PM",P:D<12?"am":"pm",S:R(this.get("Seconds",L)),L:R(Math.floor(x%1e3),3)},e.dateFormats),function(e,y){for(;-1!==p.indexOf("%"+y);)p=p.replace("%"+y,"function"==typeof e?e.call(O,x):e)}),b?p.substr(0,1).toUpperCase()+p.substr(1):p}resolveDTLFormat(e){return L(e,!0)?e:{main:(e=F(e))[0],from:e[1],to:e[2]}}getTimeTicks(e,p,x,b){let O,L,D,j;let R=this,F=R.Date,U=[],Y={},V=new F(p),q=e.unitRange,K=e.count||1;if(b=z(b,1),y(p)){R.set("Milliseconds",V,q>=H.second?0:K*Math.floor(R.get("Milliseconds",V)/K)),q>=H.second&&R.set("Seconds",V,q>=H.minute?0:K*Math.floor(R.get("Seconds",V)/K)),q>=H.minute&&R.set("Minutes",V,q>=H.hour?0:K*Math.floor(R.get("Minutes",V)/K)),q>=H.hour&&R.set("Hours",V,q>=H.day?0:K*Math.floor(R.get("Hours",V)/K)),q>=H.day&&R.set("Date",V,q>=H.month?1:Math.max(1,K*Math.floor(R.get("Date",V)/K))),q>=H.month&&(R.set("Month",V,q>=H.year?0:K*Math.floor(R.get("Month",V)/K)),L=R.get("FullYear",V)),q>=H.year&&(L-=L%K,R.set("FullYear",V,L)),q===H.week&&(j=R.get("Day",V),R.set("Date",V,R.get("Date",V)-j+b+(j4*H.month||R.getTimezoneOffset(p)!==R.getTimezoneOffset(x));let F=V.getTime();for(O=1;F1?F=R.makeTime(L,e,E,z+O*K):F+=q*K,O++;U.push(F),q<=H.hour&&U.length<1e4&&U.forEach(function(e){e%18e5==0&&"000000000"===R.dateFormat("%H%M%S%L",e)&&(Y[e]="day")})}return U.info=E(e,{higherRanks:Y,totalRange:q*K}),U}getDateFormat(e,p,x,y){let b=this.dateFormat("%m-%d %H:%M:%S.%L",p),E="01-01 00:00:00.000",O={millisecond:15,second:12,minute:9,hour:6,day:3},L="millisecond",D=L;for(L in H){if(e===H.week&&+this.dateFormat("%w",p)===x&&b.substr(6)===E.substr(6)){L="week";break}if(H[L]>e){L=D;break}if(O[L]&&b.substr(O[L])!==E.substr(O[L]))break;"week"!==L&&(D=L)}return this.resolveDTLFormat(y[L]).main}};return m.formatCache={},m}),x(p,"Core/Defaults.js",[p["Core/Chart/ChartDefaults.js"],p["Core/Globals.js"],p["Core/Color/Palettes.js"],p["Core/Time.js"],p["Core/Utilities.js"]],function(e,p,x,y,b){let{isTouchDevice:E}=p,{fireEvent:O,merge:L}=b,D={colors:x.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",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"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:e,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:e=>Math.sqrt(1-Math.pow(e-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:E?25:10,headerFormat:'{point.key}
',pointFormat:'\u25CF {series.name}: {point.y}
',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};D.chart.styledMode=!1;let j=new y(D.time);return{defaultOptions:D,defaultTime:j,getOptions:function(){return D},setOptions:function(e){return O(p,"setOptions",{options:e}),L(!0,D,e),(e.time||e.global)&&(p.time?p.time.update(L(D.global,D.time,e.global,e.time)):p.time=j),D}}}),x(p,"Core/Color/Color.js",[p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p){let{isNumber:x,merge:y,pInt:b}=p;let r=class r{static parse(e){return e?new r(e):r.None}constructor(p){let x,y,b,E;this.rgba=[NaN,NaN,NaN,NaN],this.input=p;let O=e.Color;if(O&&O!==r)return new O(p);if("object"==typeof p&&void 0!==p.stops)this.stops=p.stops.map(e=>new r(e[1]));else if("string"==typeof p){if(this.input=p=r.names[p.toLowerCase()]||p,"#"===p.charAt(0)){let e=p.length,x=parseInt(p.substr(1),16);7===e?y=[(0xff0000&x)>>16,(65280&x)>>8,255&x,1]:4===e&&(y=[(3840&x)>>4|(3840&x)>>8,(240&x)>>4|240&x,(15&x)<<4|15&x,1])}if(!y)for(b=r.parsers.length;b--&&!y;)(x=(E=r.parsers[b]).regex.exec(p))&&(y=E.parse(x))}y&&(this.rgba=y)}get(e){let p=this.input,b=this.rgba;if("object"==typeof p&&void 0!==this.stops){let x=y(p);return x.stops=[].slice.call(x.stops),this.stops.forEach((p,y)=>{x.stops[y]=[x.stops[y][0],p.get(e)]}),x}return b&&x(b[0])?"rgb"!==e&&(e||1!==b[3])?"a"===e?`${b[3]}`:"rgba("+b.join(",")+")":"rgb("+b[0]+","+b[1]+","+b[2]+")":p}brighten(e){let p=this.rgba;if(this.stops)this.stops.forEach(function(p){p.brighten(e)});else if(x(e)&&0!==e)for(let x=0;x<3;x++)p[x]+=b(255*e),p[x]<0&&(p[x]=0),p[x]>255&&(p[x]=255);return this}setOpacity(e){return this.rgba[3]=e,this}tweenTo(e,p){let y=this.rgba,b=e.rgba;if(!x(y[0])||!x(b[0]))return e.input||"none";let E=1!==b[3]||1!==y[3];return(E?"rgba(":"rgb(")+Math.round(b[0]+(y[0]-b[0])*(1-p))+","+Math.round(b[1]+(y[1]-b[1])*(1-p))+","+Math.round(b[2]+(y[2]-b[2])*(1-p))+(E?","+(b[3]+(y[3]-b[3])*(1-p)):"")+")"}};return r.names={white:"#ffffff",black:"#000000"},r.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(e){return[b(e[1]),b(e[2]),b(e[3]),parseFloat(e[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(e){return[b(e[1]),b(e[2]),b(e[3]),1]}}],r.None=new r(""),r}),x(p,"Core/Animation/Fx.js",[p["Core/Color/Color.js"],p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p,x){let{parse:y}=e,{win:b}=p,{isNumber:E,objectEach:O}=x;let n=class n{constructor(e,p,x){this.pos=NaN,this.options=p,this.elem=e,this.prop=x}dSetter(){let e=this.paths,p=e&&e[0],x=e&&e[1],y=this.now||0,b=[];if(1!==y&&p&&x){if(p.length===x.length&&y<1)for(let e=0;e=D+this.startTime?(this.now=this.end,this.pos=1,this.update(),j[this.prop]=!0,x=!0,O(j,function(e){!0!==e&&(x=!1)}),x&&L&&L.call(E),p=!1):(this.pos=b.easing((y-this.startTime)/D),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0),p}initPath(e,p,x){let y=e.startX,b=e.endX,O=x.slice(),L=e.isArea,D=L?2:1,j,R,z,F,H=p&&p.slice();if(!H)return[O,O];function U(e,p){for(;e.length{let y=R(e.options.animation);L=O(p)&&x(p.defer)?b.defer:Math.max(L,y.duration+y.defer),D=Math.min(b.duration,y.duration)}),e.renderer.forExport&&(L=0),{defer:Math.max(0,L-D),duration:Math.min(L,D)}},setAnimation:function(e,p){p.renderer.globalAnimation=j(e,p.options.chart.animation,!0)},stop:z}}),x(p,"Core/Renderer/HTML/AST.js",[p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p){let{SVG_NS:x,win:y}=e,{attr:b,createElement:E,css:O,error:L,isFunction:D,isString:j,objectEach:R,splat:z}=p,{trustedTypes:F}=y,H=F&&D(F.createPolicy)&&F.createPolicy("highcharts",{createHTML:e=>e}),U=H?H.createHTML(""):"",Y=function(){try{return!!new DOMParser().parseFromString(U,"text/html")}catch(e){return!1}}();let m=class m{static filterUserAttributes(e){return R(e,(p,x)=>{let y=!0;-1===m.allowedAttributes.indexOf(x)&&(y=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(x)&&(y=j(p)&&m.allowedReferences.some(e=>0===p.indexOf(e))),y||(L(33,!1,void 0,{"Invalid attribute in config":`${x}`}),delete e[x]),j(p)&&e[x]&&(e[x]=p.replace(/{let x=p.split(":").map(e=>e.trim()),y=x.shift();return y&&x.length&&(e[y.replace(/-([a-z])/g,e=>e[1].toUpperCase())]=x.join(":")),e},{})}static setElementHTML(e,p){e.innerHTML=m.emptyHTML,p&&new m(p).addToDOM(e)}constructor(e){this.nodes="string"==typeof e?this.parseMarkup(e):e}addToDOM(p){return function p(y,E){let D;return z(y).forEach(function(y){let j;let z=y.tagName,F=y.textContent?e.doc.createTextNode(y.textContent):void 0,H=m.bypassHTMLFiltering;if(z){if("#text"===z)j=F;else if(-1!==m.allowedTags.indexOf(z)||H){let L="svg"===z?x:E.namespaceURI||x,D=e.doc.createElementNS(L,z),U=y.attributes||{};R(y,function(e,p){"tagName"!==p&&"attributes"!==p&&"children"!==p&&"style"!==p&&"textContent"!==p&&(U[p]=e)}),b(D,H?U:m.filterUserAttributes(U)),y.style&&O(D,y.style),F&&D.appendChild(F),p(y.children||[],D),j=D}else L(33,!1,void 0,{"Invalid tagName in config":z})}j&&E.appendChild(j),D=j}),D}(this.nodes,p)}parseMarkup(e){let p;let x=[];if(e=e.trim().replace(/ style=(["'])/g," data-style=$1"),Y)p=new DOMParser().parseFromString(H?H.createHTML(e):e,"text/html");else{let x=E("div");x.innerHTML=e,p={body:x}}let y=(e,p)=>{let x=e.nodeName.toLowerCase(),b={tagName:x};"#text"===x&&(b.textContent=e.textContent||"");let E=e.attributes;if(E){let e={};[].forEach.call(E,p=>{"data-style"===p.name?b.style=m.parseStyle(p.value):e[p.name]=p.value}),b.attributes=e}if(e.childNodes.length){let p=[];[].forEach.call(e.childNodes,e=>{y(e,p)}),p.length&&(b.children=p)}p.push(b)};return[].forEach.call(p.body.childNodes,e=>y(e,x)),x}};return m.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","markerHeight","markerWidth","offset","opacity","orient","padding","paddingLeft","paddingRight","patternUnits","r","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],m.allowedReferences=["https://","http://","mailto:","/","../","./","#"],m.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feDropShadow","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],m.emptyHTML=U,m.bypassHTMLFiltering=!1,m}),x(p,"Core/Templating.js",[p["Core/Defaults.js"],p["Core/Utilities.js"]],function(e,p){let{defaultOptions:x,defaultTime:y}=e,{extend:b,getNestedProperty:E,isArray:O,isNumber:L,isObject:D,pick:j,pInt:R}=p,z={add:(e,p)=>e+p,divide:(e,p)=>0!==p?e/p:"",eq:(e,p)=>e==p,each:function(e){let p=arguments[arguments.length-1];return!!O(e)&&e.map((x,y)=>F(p.body,b(D(x)?x:{"@this":x},{"@index":y,"@first":0===y,"@last":y===e.length-1}))).join("")},ge:(e,p)=>e>=p,gt:(e,p)=>e>p,if:e=>!!e,le:(e,p)=>e<=p,lt:(e,p)=>ee*p,ne:(e,p)=>e!=p,subtract:(e,p)=>e-p,unless:e=>!e};function F(e="",p,b){let O=/\{([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= #\(\)]+)\}/g,L=/\(([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= ]+)\)/g,D=[],R=/f$/,U=/\.([0-9])/,Y=x.lang,V=b&&b.time||y,q=b&&b.numberFormatter||H,K=(e="")=>{let x;return"true"===e||"false"!==e&&((x=Number(e)).toString()===e?x:E(e,p))},$,_,Z=0,J;for(;null!==($=O.exec(e));){let x=L.exec($[1]);x&&($=x,J=!0),_&&_.isBlock||(_={ctx:p,expression:$[1],find:$[0],isBlock:"#"===$[1].charAt(0),start:$.index,startInner:$.index+$[0].length,length:$[0].length});let y=$[1].split(" ")[0].replace("#","");z[y]&&(_.isBlock&&y===_.fn&&Z++,_.fn||(_.fn=y));let b="else"===$[1];if(_.isBlock&&_.fn&&($[1]===`/${_.fn}`||b)){if(Z)!b&&Z--;else{let p=_.startInner,x=e.substr(p,$.index-p);void 0===_.body?(_.body=x,_.startInner=$.index+$[0].length):_.elseBody=x,_.find+=x+$[0],b||(D.push(_),_=void 0)}}else _.isBlock||D.push(_);if(x&&!_?.isBlock)break}return D.forEach(x=>{let y,E;let{body:O,elseBody:L,expression:D,fn:H}=x;if(H){let e=[x],j=D.split(" ");for(E=z[H].length;E--;)e.unshift(K(j[E+1]));y=z[H].apply(p,e),x.isBlock&&"boolean"==typeof y&&(y=F(y?O:L,p,b))}else{let e=D.split(":");if(y=K(e.shift()||""),e.length&&"number"==typeof y){let p=e.join(":");if(R.test(p)){let e=parseInt((p.match(U)||["","-1"])[1],10);null!==y&&(y=q(y,e,Y.decimalPoint,p.indexOf(",")>-1?Y.thousandsSep:""))}else y=V.dateFormat(p,y)}}e=e.replace(x.find,j(y,""))}),J?F(e,p,b):e}function H(e,p,y,b){let E,O;e=+e||0,p=+p;let D=x.lang,z=(e.toString().split(".")[1]||"").split("e")[0].length,F=e.toString().split("e"),H=p;-1===p?p=Math.min(z,20):L(p)?p&&F[1]&&F[1]<0&&((O=p+ +F[1])>=0?(F[0]=(+F[0]).toExponential(O).split("e")[0],p=O):(F[0]=F[0].split(".")[0]||0,e=p<20?(F[0]*Math.pow(10,F[1])).toFixed(p):0,F[1]=0)):p=2;let U=(Math.abs(F[1]?F[0]:e)+Math.pow(10,-Math.max(p,z)-1)).toFixed(p),Y=String(R(U)),V=Y.length>3?Y.length%3:0;return y=j(y,D.decimalPoint),b=j(b,D.thousandsSep),E=(e<0?"-":"")+(V?Y.substr(0,V)+b:""),0>+F[1]&&!H?E="0":E+=Y.substr(V).replace(/(\d{3})(?=\d)/g,"$1"+b),p?E+=y+U.slice(-p):0==+E&&(E="0"),F[1]&&0!=+E&&(E+="e"+F[1]),E}return{dateFormat:function(e,p,x){return y.dateFormat(e,p,x)},format:F,helpers:z,numberFormat:H}}),x(p,"Core/Renderer/RendererRegistry.js",[p["Core/Globals.js"]],function(e){var p,x;let y;return(x=p||(p={})).rendererTypes={},x.getRendererType=function(e=y){return x.rendererTypes[e]||x.rendererTypes[y]},x.registerRendererType=function(p,b,E){x.rendererTypes[p]=b,(!y||E)&&(y=p,e.Renderer=b)},p}),x(p,"Core/Renderer/RendererUtilities.js",[p["Core/Utilities.js"]],function(e){var p;let{clamp:x,pick:y,pushUnique:b,stableSort:E}=e;return(p||(p={})).distribute=function e(p,O,L){let D=p,j=D.reducedLen||O,R=(e,p)=>e.target-p.target,z=[],F=p.length,H=[],U=z.push,Y,V,q,K=!0,$,_,Z=0,J;for(Y=F;Y--;)Z+=p[Y].size;if(Z>j){for(E(p,(e,p)=>(p.rank||0)-(e.rank||0)),q=(J=p[0].rank===p[p.length-1].rank)?F/2:-1,V=J?q:F-1;q&&Z>j;)$=p[Y=Math.floor(V)],b(H,Y)&&(Z-=$.size),V+=q,J&&V>=p.length&&(q/=2,V=q);H.sort((e,p)=>p-e).forEach(e=>U.apply(z,p.splice(e,1)))}for(E(p,R),p=p.map(e=>({size:e.size,targets:[e.target],align:y(e.align,.5)}));K;){for(Y=p.length;Y--;)$=p[Y],_=(Math.min.apply(0,$.targets)+Math.max.apply(0,$.targets))/2,$.pos=x(_-$.size*$.align,0,O-$.size);for(Y=p.length,K=!1;Y--;)Y>0&&p[Y-1].pos+p[Y-1].size>p[Y].pos&&(p[Y-1].size+=p[Y].size,p[Y-1].targets=p[Y-1].targets.concat(p[Y].targets),p[Y-1].align=.5,p[Y-1].pos+p[Y-1].size>O&&(p[Y-1].pos=O-p[Y-1].size),p.splice(Y,1),K=!0)}return U.apply(D,z),Y=0,p.some(p=>{let x=0;return(p.targets||[]).some(()=>(D[Y].pos=p.pos+x,void 0!==L&&Math.abs(D[Y].pos-D[Y].target)>L)?(D.slice(0,Y+1).forEach(e=>delete e.pos),D.reducedLen=(D.reducedLen||O)-.1*O,D.reducedLen>.1*O&&e(D,O,L),!0):(x+=D[Y].size,Y++,!1))}),E(D,R),D},p}),x(p,"Core/Renderer/SVG/SVGElement.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Color/Color.js"],p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p,x,y){let{animate:b,animObject:E,stop:O}=e,{deg2rad:L,doc:D,svg:j,SVG_NS:R,win:z}=x,{addEvent:F,attr:H,createElement:U,crisp:Y,css:V,defined:q,erase:K,extend:$,fireEvent:_,isArray:Z,isFunction:J,isObject:tt,isString:te,merge:ti,objectEach:ts,pick:to,pInt:tr,pushUnique:tn,replaceNested:ta,syncTimeout:tl,uniqueKey:th}=y;let B=class B{_defaultGetter(e){let p=to(this[e+"Value"],this[e],this.element?this.element.getAttribute(e):null,0);return/^[\-0-9\.]+$/.test(p)&&(p=parseFloat(p)),p}_defaultSetter(e,p,x){x.setAttribute(p,e)}add(e){let p;let x=this.renderer,y=this.element;return e&&(this.parentGroup=e),void 0!==this.textStr&&"text"===this.element.nodeName&&x.buildText(this),this.added=!0,(!e||e.handleZ||this.zIndex)&&(p=this.zIndexSetter()),p||(e?e.element:x.box).appendChild(y),this.onAdd&&this.onAdd(),this}addClass(e,p){let x=p?"":this.attr("class")||"";return(e=(e||"").split(/ /g).reduce(function(e,p){return -1===x.indexOf(p)&&e.push(p),e},x?[x]:[]).join(" "))!==x&&this.attr("class",e),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(e,p,x,y=!0){let b,E,O,L;let D={},j=this.renderer,R=j.alignedObjects,z=!!e;e?(this.alignOptions=e,this.alignByTranslate=p,this.alignTo=x):(e=this.alignOptions||{},p=this.alignByTranslate,x=this.alignTo);let F=!x||te(x)?x||"renderer":void 0;F&&(z&&tn(R,this),x=void 0);let H=to(x,j[F],j),U=e.align,Y=e.verticalAlign;return b=(H.x||0)+(e.x||0),E=(H.y||0)+(e.y||0),"right"===U?O=1:"center"===U&&(O=2),O&&(b+=((H.width||0)-(e.width||0))/O),D[p?"translateX":"x"]=Math.round(b),"bottom"===Y?L=1:"middle"===Y&&(L=2),L&&(E+=((H.height||0)-(e.height||0))/L),D[p?"translateY":"y"]=Math.round(E),y&&(this[this.placed?"animate":"attr"](D),this.placed=!0),this.alignAttr=D,this}alignSetter(e){let p={left:"start",center:"middle",right:"end"};p[e]&&(this.alignValue=e,this.element.setAttribute("text-anchor",p[e]))}animate(e,p,x){let y=E(to(p,this.renderer.globalAnimation,!0)),O=y.defer;return D.hidden&&(y.duration=0),0!==y.duration?(x&&(y.complete=x),tl(()=>{this.element&&b(this,e,y)},O)):(this.attr(e,void 0,x||y.complete),ts(e,function(e,p){y.step&&y.step.call(this,e,{prop:p,pos:1,elem:this})},this)),this}applyTextOutline(e){let p=this.element;-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(p.style.fill)));let y=e.split(" "),b=y[y.length-1],E=y[0];if(E&&"none"!==E&&x.svg){this.fakeTS=!0,E=E.replace(/(^[\d\.]+)(.*?)$/g,function(e,p,x){return 2*Number(p)+x}),this.removeTextOutline();let e=D.createElementNS(R,"tspan");H(e,{class:"highcharts-text-outline",fill:b,stroke:b,"stroke-width":E,"stroke-linejoin":"round"});let x=p.querySelector("textPath")||p;[].forEach.call(x.childNodes,p=>{let x=p.cloneNode(!0);x.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(e=>x.removeAttribute(e)),e.appendChild(x)});let y=0;[].forEach.call(x.querySelectorAll("text tspan"),e=>{y+=Number(e.getAttribute("dy"))});let O=D.createElementNS(R,"tspan");O.textContent="\u200B",H(O,{x:Number(p.getAttribute("x")),dy:-y}),e.appendChild(O),x.insertBefore(e,x.firstChild)}}attr(e,p,x,y){let{element:b}=this,E=B.symbolCustomAttribs,L,D,j=this,R;return"string"==typeof e&&void 0!==p&&(L=e,(e={})[L]=p),"string"==typeof e?j=(this[e+"Getter"]||this._defaultGetter).call(this,e,b):(ts(e,function(p,x){R=!1,y||O(this,x),this.symbolName&&-1!==E.indexOf(x)&&(D||(this.symbolAttr(e),D=!0),R=!0),this.rotation&&("x"===x||"y"===x)&&(this.doTransform=!0),R||(this[x+"Setter"]||this._defaultSetter).call(this,p,x,b)},this),this.afterSetters()),x&&x.call(this),j}clip(e){if(e&&!e.clipPath){let p=th()+"-",x=this.renderer.createElement("clipPath").attr({id:p}).add(this.renderer.defs);$(e,{clipPath:x,id:p,count:0}),e.add(x)}return this.attr("clip-path",e?`url(${this.renderer.url}#${e.id})`:"none")}crisp(e,p){p=Math.round(p||e.strokeWidth||0);let x=e.x||this.x||0,y=e.y||this.y||0,b=(e.width||this.width||0)+x,E=(e.height||this.height||0)+y,O=Y(x,p),L=Y(y,p);return $(e,{x:O,y:L,width:Y(b,p)-O,height:Y(E,p)-L}),q(e.strokeWidth)&&(e.strokeWidth=p),e}complexColor(e,x,y){let b=this.renderer,E,O,L,D,j,R,z,F,H,U,Y=[],V;_(this.renderer,"complexColor",{args:arguments},function(){if(e.radialGradient?O="radialGradient":e.linearGradient&&(O="linearGradient"),O){if(L=e[O],j=b.gradients,R=e.stops,H=y.radialReference,Z(L)&&(e[O]=L={x1:L[0],y1:L[1],x2:L[2],y2:L[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===O&&H&&!q(L.gradientUnits)&&(D=L,L=ti(L,b.getRadialAttr(H,D),{gradientUnits:"userSpaceOnUse"})),ts(L,function(e,p){"id"!==p&&Y.push(p,e)}),ts(R,function(e){Y.push(e)}),j[Y=Y.join(",")])U=j[Y].attr("id");else{L.id=U=th();let e=j[Y]=b.createElement(O).attr(L).add(b.defs);e.radAttr=D,e.stops=[],R.forEach(function(x){0===x[1].indexOf("rgba")?(z=(E=p.parse(x[1])).get("rgb"),F=E.get("a")):(z=x[1],F=1);let y=b.createElement("stop").attr({offset:x[0],"stop-color":z,"stop-opacity":F}).add(e);e.stops.push(y)})}V="url("+b.url+"#"+U+")",y.setAttribute(x,V),y.gradient=Y,e.toString=function(){return V}}})}css(e){let p=this.styles,x={},y=this.element,b,E=!p;if(p&&ts(e,function(e,y){p&&p[y]!==e&&(x[y]=e,E=!0)}),E){p&&(e=$(p,x)),null===e.width||"auto"===e.width?delete this.textWidth:"text"===y.nodeName.toLowerCase()&&e.width&&(b=this.textWidth=tr(e.width)),$(this.styles,e),b&&!j&&this.renderer.forExport&&delete e.width;let E=ti(e);y.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(e=>E&&delete E[e]),E.color&&(E.fill=E.color)),V(y,E)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),e.textOutline&&this.applyTextOutline(e.textOutline)),this}dashstyleSetter(e){let p,x=this["stroke-width"];if("inherit"===x&&(x=1),e=e&&e.toLowerCase()){let y=e.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(p=y.length;p--;)y[p]=""+tr(y[p])*to(x,NaN);e=y.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",e)}}destroy(){let e=this,p=e.element||{},x=e.renderer,y=p.ownerSVGElement,b="SPAN"===p.nodeName&&e.parentGroup||void 0,E,L;if(p.onclick=p.onmouseout=p.onmouseover=p.onmousemove=p.point=null,O(e),e.clipPath&&y){let p=e.clipPath;[].forEach.call(y.querySelectorAll("[clip-path],[CLIP-PATH]"),function(e){e.getAttribute("clip-path").indexOf(p.element.id)>-1&&e.removeAttribute("clip-path")}),e.clipPath=p.destroy()}if(e.connector=e.connector?.destroy(),e.stops){for(L=0;Lp&&p.join?(x?e+" ":"")+p.join(" "):(p||"").toString(),"")),/(NaN| {2}|^$)/.test(e)&&(e="M 0 0"),this[p]!==e&&(x.setAttribute(p,e),this[p]=e)}fillSetter(e,p,x){"string"==typeof e?x.setAttribute(p,e):e&&this.complexColor(e,p,x)}hrefSetter(e,p,x){x.setAttributeNS("http://www.w3.org/1999/xlink",p,e)}getBBox(e,p){let x,y,b,E;let{alignValue:O,element:L,renderer:D,styles:j,textStr:R}=this,{cache:z,cacheKeys:F}=D,H=L.namespaceURI===this.SVG_NS,U=to(p,this.rotation,0),Y=D.styledMode?L&&B.prototype.getStyle.call(L,"font-size"):j.fontSize;if(q(R)&&(-1===(E=R.toString()).indexOf("<")&&(E=E.replace(/[0-9]/g,"0")),E+=["",D.rootFontSize,Y,U,this.textWidth,O,j.textOverflow,j.fontWeight].join(",")),E&&!e&&(x=z[E]),!x){if(H||D.forExport){try{b=this.fakeTS&&function(e){let p=L.querySelector(".highcharts-text-outline");p&&V(p,{display:e})},J(b)&&b("none"),x=L.getBBox?$({},L.getBBox()):{width:L.offsetWidth,height:L.offsetHeight,x:0,y:0},J(b)&&b("")}catch(e){}(!x||x.width<0)&&(x={x:0,y:0,width:0,height:0})}else x=this.htmlGetBBox();y=x.height,H&&(x.height=y=({"11px,17":14,"13px,20":16})[`${Y||""},${Math.round(y)}`]||y),U&&(x=this.getRotatedBox(x,U))}if(E&&(""===R||x.height>0)){for(;F.length>250;)delete z[F.shift()];z[E]||F.push(E),z[E]=x}return x}getRotatedBox(e,p){let{x:x,y:y,width:b,height:E}=e,{alignValue:O,translateY:D,rotationOriginX:j=0,rotationOriginY:R=0}=this,z={right:1,center:.5}[O||0]||0,F=Number(this.element.getAttribute("y")||0)-(D?0:y),H=p*L,U=(p-90)*L,Y=Math.cos(H),V=Math.sin(H),q=b*Y,K=b*V,$=Math.cos(U),_=Math.sin(U),[[Z,J],[tt,te]]=[j,R].map(e=>[e-e*Y,e*V]),ti=x+z*(b-q)+Z+te+F*$,ts=ti+q,to=ts-E*$,tr=to-q,tn=y+F-z*K-J+tt+F*_,ta=tn+K,tl=ta-E*_,th=tl-K,td=Math.min(ti,ts,to,tr),tc=Math.min(tn,ta,tl,th),tp=Math.max(ti,ts,to,tr)-td,tu=Math.max(tn,ta,tl,th)-tc;return{x:td,y:tc,width:tp,height:tu}}getStyle(e){return z.getComputedStyle(this.element||this,"").getPropertyValue(e)}hasClass(e){return -1!==(""+this.attr("class")).split(" ").indexOf(e)}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(e,p){this.onEvents={},this.opacity=1,this.SVG_NS=R,this.element="span"===p||"body"===p?U(p):D.createElementNS(this.SVG_NS,p),this.renderer=e,this.styles={},_(this,"afterInit")}on(e,p){let{onEvents:x}=this;return x[e]&&x[e](),x[e]=F(this.element,e,p),this}opacitySetter(e,p,x){let y=Number(Number(e).toFixed(3));this.opacity=y,x.setAttribute(p,y)}reAlign(){this.alignOptions?.width&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(e){return this.attr("class",(""+this.attr("class")).replace(te(e)?RegExp(`(^| )${e}( |$)`):e," ").replace(/ +/g," ").trim())}removeTextOutline(){let e=this.element.querySelector("tspan.highcharts-text-outline");e&&this.safeRemoveChild(e)}safeRemoveChild(e){let p=e.parentNode;p&&p.removeChild(e)}setRadialReference(e){let p=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=e,p&&p.radAttr&&p.animate(this.renderer.getRadialAttr(e,p.radAttr)),this}setTextPath(e,p){p=ti(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},p);let x=this.renderer.url,y=this.text||this,b=y.textPath,{attributes:E,enabled:O}=p;if(e=e||b&&b.path,b&&b.undo(),e&&O){let p=F(y,"afterModifyTree",p=>{if(e&&O){let b=e.attr("id");b||e.attr("id",b=th());let O={x:0,y:0};q(E.dx)&&(O.dx=E.dx,delete E.dx),q(E.dy)&&(O.dy=E.dy,delete E.dy),y.attr(O),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let L=p.nodes.slice(0);p.nodes.length=0,p.nodes[0]={tagName:"textPath",attributes:$(E,{"text-anchor":E.textAnchor,href:`${x}#${b}`}),children:L}}});y.textPath={path:e,undo:p}}else y.attr({dx:0,dy:0}),delete y.textPath;return this.added&&(y.textCache="",this.renderer.buildText(y)),this}shadow(e){let{renderer:p}=this,x=ti(this.parentGroup?.rotation===90?{offsetX:-1,offsetY:-1}:{},tt(e)?e:{}),y=p.shadowDefinition(x);return this.attr({filter:e?`url(${p.url}#${y})`:"none"})}show(e=!0){return this.attr({visibility:e?"inherit":"visible"})}"stroke-widthSetter"(e,p,x){this[p]=e,x.setAttribute(p,e)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let e=this.getStyle("stroke-width"),p=0,x;return/px$/.test(e)?p=tr(e):""!==e&&(H(x=D.createElementNS(R,"rect"),{width:e,"stroke-width":0}),this.element.parentNode.appendChild(x),p=x.getBBox().width,x.parentNode.removeChild(x)),p}symbolAttr(e){let p=this;B.symbolCustomAttribs.forEach(function(x){p[x]=to(e[x],p[x])}),p.attr({d:p.renderer.symbols[p.symbolName](p.x,p.y,p.width,p.height,p)})}textSetter(e){e!==this.textStr&&(delete this.textPxLength,this.textStr=e,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(e){let p=this.element,x=p.getElementsByTagName("title")[0]||D.createElementNS(this.SVG_NS,"title");p.insertBefore?p.insertBefore(x,p.firstChild):p.appendChild(x),x.textContent=ta(to(e,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let e=this.element;return e.parentNode.appendChild(e),this}translate(e,p){return this.attr({translateX:e,translateY:p})}updateTransform(e="transform"){let{element:p,matrix:x,rotation:y=0,rotationOriginX:b,rotationOriginY:E,scaleX:O,scaleY:L,translateX:D=0,translateY:j=0}=this,R=["translate("+D+","+j+")"];q(x)&&R.push("matrix("+x.join(",")+")"),y&&(R.push("rotate("+y+" "+to(b,p.getAttribute("x"),0)+" "+to(E,p.getAttribute("y")||0)+")"),this.text?.element.tagName==="SPAN"&&this.text.attr({rotation:y,rotationOriginX:(b||0)-this.padding,rotationOriginY:(E||0)-this.padding})),(q(O)||q(L))&&R.push("scale("+to(O,1)+" "+to(L,1)+")"),R.length&&!(this.text||this).textPath&&p.setAttribute(e,R.join(" "))}visibilitySetter(e,p,x){"inherit"===e?x.removeAttribute(p):this[p]!==e&&x.setAttribute(p,e),this[p]=e}xGetter(e){return"circle"===this.element.nodeName&&("x"===e?e="cx":"y"===e&&(e="cy")),this._defaultGetter(e)}zIndexSetter(e,p){let x=this.renderer,y=this.parentGroup,b=(y||x).element||x.box,E=this.element,O=b===x.box,L,D,j,R=!1,z,F=this.added,H;if(q(e)?(E.setAttribute("data-z-index",e),e=+e,this[p]===e&&(F=!1)):q(this[p])&&E.removeAttribute("data-z-index"),this[p]=e,F){for((e=this.zIndex)&&y&&(y.handleZ=!0),H=(L=b.childNodes).length-1;H>=0&&!R;H--)z=!q(j=(D=L[H]).getAttribute("data-z-index")),D!==E&&(e<0&&z&&!O&&!H?(b.insertBefore(E,L[H]),R=!0):(tr(j)<=e||z&&(!q(e)||e>=0))&&(b.insertBefore(E,L[H+1]),R=!0));R||(b.insertBefore(E,L[O?3:0]),R=!0)}return R}};return B.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],B.prototype.strokeSetter=B.prototype.fillSetter,B.prototype.yGetter=B.prototype.xGetter,B.prototype.matrixSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.rotationSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.translateXSetter=B.prototype.translateYSetter=B.prototype.verticalAlignSetter=function(e,p){this[p]=e,this.doTransform=!0},B}),x(p,"Core/Renderer/SVG/SVGLabel.js",[p["Core/Renderer/SVG/SVGElement.js"],p["Core/Utilities.js"]],function(e,p){let{defined:x,extend:y,isNumber:b,merge:E,pick:O,removeEvent:L}=p;let l=class l extends e{constructor(e,p,x,y,b,E,O,L,D,j){let R;super(e,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.textStr=p,this.x=x,this.y=y,this.anchorX=E,this.anchorY=O,this.baseline=D,this.className=j,this.addClass("button"===j?"highcharts-no-tooltip":"highcharts-label"),j&&this.addClass("highcharts-"+j),this.text=e.text(void 0,0,0,L).attr({zIndex:1}),"string"==typeof b&&((R=/^url\((.*?)\)$/.test(b))||this.renderer.symbols[b])&&(this.symbolKey=b),this.bBox=l.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=e.styledMode||R,this.deferredAttr={},this.alignFactor=0}alignSetter(e){let p={left:0,center:.5,right:1}[e];p!==this.alignFactor&&(this.alignFactor=p,this.bBox&&b(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(e,p){this.anchorX=e,this.boxAttr(p,Math.round(e)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(e,p){this.anchorY=e,this.boxAttr(p,e-this.ySetting)}boxAttr(e,p){this.box?this.box.attr(e,p):this.deferredAttr[e]=p}css(p){if(p){let e={};p=E(p),l.textProps.forEach(x=>{void 0!==p[x]&&(e[x]=p[x],delete p[x])}),this.text.css(e),"fontSize"in e||"fontWeight"in e?this.updateTextPadding():("width"in e||"textOverflow"in e)&&this.updateBoxSize()}return e.prototype.css.call(this,p)}destroy(){L(this.element,"mouseenter"),L(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),e.prototype.destroy.call(this)}fillSetter(e,p){e&&(this.needsBox=!0),this.fill=e,this.boxAttr(p,e)}getBBox(e,p){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();let{padding:x,height:y=0,translateX:b=0,translateY:E=0,width:L=0}=this,D=O(this.paddingLeft,x),j=p??(this.rotation||0),R={width:L,height:y,x:b+this.bBox.x-D,y:E+this.bBox.y-x+this.baselineOffset};return j&&(R=this.getRotatedBox(R,j)),R}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(e){this.heightSetting=e}onAdd(){this.text.add(this),this.attr({text:O(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&x(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(e,p){b(e)?e!==this[p]&&(this[p]=e,this.updateTextPadding()):this[p]=void 0}rSetter(e,p){this.boxAttr(p,e)}strokeSetter(e,p){this.stroke=e,this.boxAttr(p,e)}"stroke-widthSetter"(e,p){e&&(this.needsBox=!0),this["stroke-width"]=e,this.boxAttr(p,e)}"text-alignSetter"(e){this.textAlign=e}textSetter(e){void 0!==e&&this.text.attr({text:e}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let e;let p=this.text,E={},O=this.padding,L=this.bBox=(!b(this.widthSetting)||!b(this.heightSetting)||this.textAlign)&&x(p.textStr)?p.getBBox(void 0,0):l.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||L.height||0)+2*O;let D=this.renderer.fontMetrics(p);if(this.baselineOffset=O+Math.min((this.text.firstLineMetrics||D).b,L.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-D.h)/2),this.needsBox&&!p.textPath){if(!this.box){let e=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();e.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),e.add(this)}e=this.getCrispAdjust(),E.x=e,E.y=(this.baseline?-this.baselineOffset:0)+e,E.width=Math.round(this.width),E.height=Math.round(this.height),this.box.attr(y(E,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let e=this.text;if(!e.textPath){this.updateBoxSize();let p=this.baseline?0:this.baselineOffset,y=O(this.paddingLeft,this.padding);x(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(y+=({center:.5,right:1})[this.textAlign]*(this.widthSetting-this.bBox.width)),(y!==e.x||p!==e.y)&&(e.attr("x",y),e.hasBoxWidthChanged&&(this.bBox=e.getBBox(!0)),void 0!==p&&e.attr("y",p)),e.x=y,e.y=p}}widthSetter(e){this.widthSetting=b(e)?e:void 0}getPaddedWidth(){let e=this.padding,p=O(this.paddingLeft,e),x=O(this.paddingRight,e);return(this.widthSetting||this.bBox.width||0)+p+x}xSetter(e){this.x=e,this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(e),this.attr("translateX",this.xSetting)}ySetter(e){this.ySetting=this.y=Math.round(e),this.attr("translateY",this.ySetting)}};return l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],l}),x(p,"Core/Renderer/SVG/Symbols.js",[p["Core/Utilities.js"]],function(e){let{defined:p,isNumber:x,pick:y}=e;function b(e,x,b,E,O){let L=[];if(O){let D=O.start||0,j=y(O.r,b),R=y(O.r,E||b),z=2e-4/Math.max(j,1),F=Math.abs((O.end||0)-D-2*Math.PI)0&&R0)return z;if(e+j>y-D){if(R>p+D&&Rp+D&&R0){let x=Rb&&jD&&z.splice(1,1,["L",j-6,p],["L",j,p-6],["L",j+6,p],["L",y-L,p]);return z},circle:function(e,p,x,y){return b(e+x/2,p+y/2,x/2,y/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(e,p,x,y){return[["M",e+x/2,p],["L",e+x,p+y/2],["L",e+x/2,p+y],["L",e,p+y/2],["Z"]]},rect:E,roundedRect:O,square:E,triangle:function(e,p,x,y){return[["M",e+x/2,p],["L",e+x,p+y],["L",e,p+y],["Z"]]},"triangle-down":function(e,p,x,y){return[["M",e,p],["L",e+x,p],["L",e+x/2,p+y],["Z"]]}}}),x(p,"Core/Renderer/SVG/TextBuilder.js",[p["Core/Renderer/HTML/AST.js"],p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p,x){let{doc:y,SVG_NS:b,win:E}=p,{attr:O,extend:L,fireEvent:D,isString:j,objectEach:R,pick:z}=x;return class{constructor(e){let p=e.styles;this.renderer=e.renderer,this.svgElement=e,this.width=e.textWidth,this.textLineHeight=p&&p.lineHeight,this.textOutline=p&&p.textOutline,this.ellipsis=!!(p&&"ellipsis"===p.textOverflow),this.noWrap=!!(p&&"nowrap"===p.whiteSpace)}buildSVG(){let p=this.svgElement,x=p.element,b=p.renderer,E=z(p.textStr,"").toString(),O=-1!==E.indexOf("<"),L=x.childNodes,D=!p.added&&b.box,R=[E,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,p.getStyle("font-size"),this.width].join(",");if(R!==p.textCache){p.textCache=R,delete p.actualWidth;for(let e=L.length;e--;)x.removeChild(L[e]);if(O||this.ellipsis||this.width||p.textPath||-1!==E.indexOf(" ")&&(!this.noWrap||//g.test(E))){if(""!==E){D&&D.appendChild(x);let y=new e(E);this.modifyTree(y.nodes),y.addToDOM(x),this.modifyDOM(),this.ellipsis&&-1!==(x.textContent||"").indexOf("\u2026")&&p.attr("title",this.unescapeEntities(p.textStr||"",["<",">"])),D&&D.removeChild(x)}}else x.appendChild(y.createTextNode(this.unescapeEntities(E)));j(this.textOutline)&&p.applyTextOutline&&p.applyTextOutline(this.textOutline)}}modifyDOM(){let e;let p=this.svgElement,x=O(p.element,"x");for(p.firstLineMetrics=void 0;e=p.element.firstChild;)if(/^[\s\u200B]*$/.test(e.textContent||" "))p.element.removeChild(e);else break;[].forEach.call(p.element.querySelectorAll("tspan.highcharts-br"),(e,y)=>{e.nextSibling&&e.previousSibling&&(0===y&&1===e.previousSibling.nodeType&&(p.firstLineMetrics=p.renderer.fontMetrics(e.previousSibling)),O(e,{dy:this.getLineHeight(e.nextSibling),x:x}))});let L=this.width||0;if(!L)return;let D=(e,E)=>{let D=e.textContent||"",j=D.replace(/([^\^])-/g,"$1- ").split(" "),R=!this.noWrap&&(j.length>1||p.element.childNodes.length>1),z=this.getLineHeight(E),F=0,H=p.actualWidth;if(this.ellipsis)D&&this.truncate(e,D,void 0,0,Math.max(0,L-.8*z),(e,p)=>e.substring(0,p)+"\u2026");else if(R){let D=[],R=[];for(;E.firstChild&&E.firstChild!==e;)R.push(E.firstChild),E.removeChild(E.firstChild);for(;j.length;)j.length&&!this.noWrap&&F>0&&(D.push(e.textContent||""),e.textContent=j.join(" ").replace(/- /g,"-")),this.truncate(e,void 0,j,0===F&&H||0,L,(e,p)=>j.slice(0,p).join(" ").replace(/- /g,"-")),H=p.actualWidth,F++;R.forEach(p=>{E.insertBefore(p,e)}),D.forEach(p=>{E.insertBefore(y.createTextNode(p),e);let L=y.createElementNS(b,"tspan");L.textContent="\u200B",O(L,{dy:z,x:x}),E.insertBefore(L,e)})}},j=e=>{[].slice.call(e.childNodes).forEach(x=>{x.nodeType===E.Node.TEXT_NODE?D(x,e):(-1!==x.className.baseVal.indexOf("highcharts-br")&&(p.actualWidth=0),j(x))})};j(p.element)}getLineHeight(e){let p=e.nodeType===E.Node.TEXT_NODE?e.parentElement:e;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(p||this.svgElement.element).h}modifyTree(e){let p=(x,y)=>{let{attributes:b={},children:E,style:O={},tagName:D}=x,j=this.renderer.styledMode;if("b"===D||"strong"===D?j?b.class="highcharts-strong":O.fontWeight="bold":("i"===D||"em"===D)&&(j?b.class="highcharts-emphasized":O.fontStyle="italic"),O&&O.color&&(O.fill=O.color),"br"===D){b.class="highcharts-br",x.textContent="\u200B";let p=e[y+1];p&&p.textContent&&(p.textContent=p.textContent.replace(/^ +/gm,""))}else"a"===D&&E&&E.some(e=>"#text"===e.tagName)&&(x.children=[{children:E,tagName:"tspan"}]);"#text"!==D&&"a"!==D&&(x.tagName="tspan"),L(x,{attributes:b,style:O}),E&&E.filter(e=>"#text"!==e.tagName).forEach(p)};e.forEach(p),D(this.svgElement,"afterModifyTree",{nodes:e})}truncate(e,p,x,y,b,E){let O,L;let D=this.svgElement,{rotation:j}=D,R=[],z=x?1:0,F=(p||x||"").length,H=F,U=function(p,b){let E=b||p,O=e.parentNode;if(O&&void 0===R[E]&&O.getSubStringLength)try{R[E]=y+O.getSubStringLength(0,x?E+1:E)}catch(e){}return R[E]};if(D.rotation=0,y+(L=U(e.textContent.length))>b){for(;z<=F;)H=Math.ceil((z+F)/2),x&&(O=E(x,H)),L=U(H,O&&O.length-1),z===F?z=F+1:L>b?F=H-1:z=H;0===F?e.textContent="":p&&F===p.length-1||(e.textContent=O||E(p||x,H))}x&&x.splice(0,H),D.actualWidth=L,D.rotation=j}unescapeEntities(e,p){return R(this.renderer.escapes,function(x,y){p&&-1!==p.indexOf(x)||(e=e.toString().replace(RegExp(x,"g"),y))}),e}}}),x(p,"Core/Renderer/SVG/SVGRenderer.js",[p["Core/Renderer/HTML/AST.js"],p["Core/Defaults.js"],p["Core/Color/Color.js"],p["Core/Globals.js"],p["Core/Renderer/RendererRegistry.js"],p["Core/Renderer/SVG/SVGElement.js"],p["Core/Renderer/SVG/SVGLabel.js"],p["Core/Renderer/SVG/Symbols.js"],p["Core/Renderer/SVG/TextBuilder.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E,O,L,D,j){let R;let{defaultOptions:z}=p,{charts:F,deg2rad:H,doc:U,isFirefox:Y,isMS:V,isWebKit:q,noop:K,SVG_NS:$,symbolSizes:_,win:Z}=y,{addEvent:J,attr:tt,createElement:te,crisp:ti,css:ts,defined:to,destroyObjectProperties:tr,extend:tn,isArray:ta,isNumber:tl,isObject:th,isString:td,merge:tc,pick:tp,pInt:tu,replaceNested:tg,uniqueKey:tm}=j;let N=class N{constructor(e,p,x,y,b,E,O){let L,D;let j=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),R=j.element;O||j.css(this.getStyle(y||{})),e.appendChild(R),tt(e,"dir","ltr"),-1===e.innerHTML.indexOf("xmlns")&&tt(R,"xmlns",this.SVG_NS),this.box=R,this.boxWrapper=j,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(U.createTextNode("Created with Highcharts 11.4.3")),this.defs=this.createElement("defs").add(),this.allowHTML=E,this.forExport=b,this.styledMode=O,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=j.getStyle("font-size"),this.setSize(p,x,!1),Y&&e.getBoundingClientRect&&((L=function(){ts(e,{left:0,top:0}),D=e.getBoundingClientRect(),ts(e,{left:Math.ceil(D.left)-D.left+"px",top:Math.ceil(D.top)-D.top+"px"})})(),this.unSubPixelFix=J(Z,"resize",L))}definition(p){return new e([p]).addToDOM(this.defs.element)}getReferenceURL(){if((Y||q)&&U.getElementsByTagName("base").length){if(!to(R)){let p=tm(),x=new e([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:p},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${p})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(U.body);ts(x,{position:"fixed",top:0,left:0,zIndex:9e5});let y=U.elementFromPoint(6,6);R="hitme"===(y&&y.id),U.body.removeChild(x)}if(R)return tg(Z.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(e){return this.style=tn({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},e),this.style}setStyle(e){this.boxWrapper.css(this.getStyle(e))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),tr(this.gradients||{}),this.gradients=null,this.defs=e.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(e){return new this.Element(this,e)}getRadialAttr(e,p){return{cx:e[0]-e[2]/2+(p.cx||0)*e[2],cy:e[1]-e[2]/2+(p.cy||0)*e[2],r:(p.r||0)*e[2]}}shadowDefinition(e){let p=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(e).map(p=>`${p}-${e[p]}`)].join("-").toLowerCase().replace(/[^a-z0-9\-]/g,""),x=tc({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},e);return this.defs.element.querySelector(`#${p}`)||this.definition({tagName:"filter",attributes:{id:p,filterUnits:x.filterUnits},children:[{tagName:"feDropShadow",attributes:{dx:x.offsetX,dy:x.offsetY,"flood-color":x.color,"flood-opacity":Math.min(5*x.opacity,1),stdDeviation:x.width/2}}]}),p}buildText(e){new D(e).buildSVG()}getContrast(e){let p=x.parse(e).rgba.map(e=>{let p=e/255;return p<=.03928?p/12.92:Math.pow((p+.055)/1.055,2.4)}),y=.2126*p[0]+.7152*p[1]+.0722*p[2];return 1.05/(y+.05)>(y+.05)/.05?"#FFFFFF":"#000000"}button(p,x,y,b,E={},O,L,D,j,R){let F=this.label(p,x,y,j,void 0,void 0,R,void 0,"button"),H=this.styledMode,U=arguments,Y=0;E=tc(z.global.buttonTheme,E),H&&(delete E.fill,delete E.stroke,delete E["stroke-width"]);let q=E.states||{},K=E.style||{};delete E.states,delete E.style;let $=[e.filterUserAttributes(E)],_=[K];return H||["hover","select","disabled"].forEach((p,x)=>{$.push(tc($[0],e.filterUserAttributes(U[x+5]||q[p]||{}))),_.push($[x+1].style),delete $[x+1].style}),J(F.element,V?"mouseover":"mouseenter",function(){3!==Y&&F.setState(1)}),J(F.element,V?"mouseout":"mouseleave",function(){3!==Y&&F.setState(Y)}),F.setState=(e=0)=>{if(1!==e&&(F.state=Y=e),F.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][e]),!H){F.attr($[e]);let p=_[e];th(p)&&F.css(p)}},F.attr($[0]),!H&&(F.css(tn({cursor:"default"},K)),R&&F.text.css({pointerEvents:"none"})),F.on("touchstart",e=>e.stopPropagation()).on("click",function(e){3!==Y&&b.call(F,e)})}crispLine(e,p){let[x,y]=e;return to(x[1])&&x[1]===y[1]&&(x[1]=y[1]=ti(x[1],p)),to(x[2])&&x[2]===y[2]&&(x[2]=y[2]=ti(x[2],p)),e}path(e){let p=this.styledMode?{}:{fill:"none"};return ta(e)?p.d=e:th(e)&&tn(p,e),this.createElement("path").attr(p)}circle(e,p,x){let y=th(e)?e:void 0===e?{}:{x:e,y:p,r:x},b=this.createElement("circle");return b.xSetter=b.ySetter=function(e,p,x){x.setAttribute("c"+p,e)},b.attr(y)}arc(e,p,x,y,b,E){let O;th(e)?(p=(O=e).y,x=O.r,y=O.innerR,b=O.start,E=O.end,e=O.x):O={innerR:y,start:b,end:E};let L=this.symbol("arc",e,p,x,x,O);return L.r=x,L}rect(e,p,x,y,b,E){let O=th(e)?e:void 0===e?{}:{x:e,y:p,r:b,width:Math.max(x||0,0),height:Math.max(y||0,0)},L=this.createElement("rect");return this.styledMode||(void 0!==E&&(O["stroke-width"]=E,tn(O,L.crisp(O))),O.fill="none"),L.rSetter=function(e,p,x){L.r=e,tt(x,{rx:e,ry:e})},L.rGetter=function(){return L.r||0},L.attr(O)}roundedRect(e){return this.symbol("roundedRect").attr(e)}setSize(e,p,x){this.width=e,this.height=p,this.boxWrapper.animate({width:e,height:p},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:tp(x,!0)?void 0:0}),this.alignElements()}g(e){let p=this.createElement("g");return e?p.attr({class:"highcharts-"+e}):p}image(e,p,x,y,b,E){let O={preserveAspectRatio:"none"};tl(p)&&(O.x=p),tl(x)&&(O.y=x),tl(y)&&(O.width=y),tl(b)&&(O.height=b);let L=this.createElement("image").attr(O),D=function(p){L.attr({href:e}),E.call(L,p)};if(E){L.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let p=new Z.Image;J(p,"load",D),p.src=e,p.complete&&D({})}else L.attr({href:e});return L}symbol(e,p,x,y,b,E){let O,L,D,j;let R=this,z=/^url\((.*?)\)$/,H=z.test(e),Y=!H&&(this.symbols[e]?e:"circle"),V=Y&&this.symbols[Y];if(V)"number"==typeof p&&(L=V.call(this.symbols,p||0,x||0,y||0,b||0,E)),O=this.path(L),R.styledMode||O.attr("fill","none"),tn(O,{symbolName:Y||void 0,x:p,y:x,width:y,height:b}),E&&tn(O,E);else if(H){D=e.match(z)[1];let y=O=this.image(D);y.imgwidth=tp(E&&E.width,_[D]&&_[D].width),y.imgheight=tp(E&&E.height,_[D]&&_[D].height),j=e=>e.attr({width:e.width,height:e.height}),["width","height"].forEach(e=>{y[`${e}Setter`]=function(e,p){this[p]=e;let{alignByTranslate:x,element:y,width:b,height:O,imgwidth:L,imgheight:D}=this,j="width"===p?L:D,R=1;E&&"within"===E.backgroundSize&&b&&O&&L&&D?(R=Math.min(b/L,O/D),tt(y,{width:Math.round(L*R),height:Math.round(D*R)})):y&&j&&y.setAttribute(p,j),!x&&L&&D&&this.translate(((b||0)-L*R)/2,((O||0)-D*R)/2)}}),to(p)&&y.attr({x:p,y:x}),y.isImg=!0,to(y.imgwidth)&&to(y.imgheight)?j(y):(y.attr({width:0,height:0}),te("img",{onload:function(){let e=F[R.chartIndex];0===this.width&&(ts(this,{position:"absolute",top:"-999em"}),U.body.appendChild(this)),_[D]={width:this.width,height:this.height},y.imgwidth=this.width,y.imgheight=this.height,y.element&&j(y),this.parentNode&&this.parentNode.removeChild(this),R.imgCount--,R.imgCount||!e||e.hasLoaded||e.onload()},src:D}),this.imgCount++)}return O}clipRect(e,p,x,y){return this.rect(e,p,x,y,0)}text(e,p,x,y){let b={};if(y&&(this.allowHTML||!this.forExport))return this.html(e,p,x);b.x=Math.round(p||0),x&&(b.y=Math.round(x)),to(e)&&(b.text=e);let E=this.createElement("text").attr(b);return y&&(!this.forExport||this.allowHTML)||(E.xSetter=function(e,p,x){let y=x.getElementsByTagName("tspan"),b=x.getAttribute(p);for(let x=0,E;xe.align())}};return tn(N.prototype,{Element:E,SVG_NS:$,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:L,draw:K}),b.registerRendererType("svg",N,!0),N}),x(p,"Core/Renderer/HTML/HTMLElement.js",[p["Core/Renderer/HTML/AST.js"],p["Core/Globals.js"],p["Core/Renderer/SVG/SVGElement.js"],p["Core/Utilities.js"]],function(e,p,x,y){let{composed:b}=p,{attr:E,css:O,createElement:L,defined:D,extend:j,pInt:R,pushUnique:z}=y;function F(e,p,y){let b=this.div?.style||y.style;x.prototype[`${p}Setter`].call(this,e,p,y),b&&(b[p]=e)}let H=(e,p)=>{if(!e.div){let y=E(e.element,"class"),b=e.css,O=L("div",y?{className:y}:void 0,{position:"absolute",left:`${e.translateX||0}px`,top:`${e.translateY||0}px`,...e.styles,display:e.display,opacity:e.opacity,visibility:e.visibility},e.parentGroup?.div||p);e.classSetter=(e,p,x)=>{x.setAttribute("class",e),O.className=e},e.translateXSetter=e.translateYSetter=(p,x)=>{e[x]=p,O.style["translateX"===x?"left":"top"]=`${p}px`,e.doTransform=!0},e.opacitySetter=e.visibilitySetter=F,e.css=p=>(b.call(e,p),p.cursor&&(O.style.cursor=p.cursor),p.pointerEvents&&(O.style.pointerEvents=p.pointerEvents),e),e.on=function(){return x.prototype.on.apply({element:O,onEvents:e.onEvents},arguments),e},e.div=O}return e.div};let g=class g extends x{static compose(e){z(b,this.compose)&&(e.prototype.html=function(e,p,x){return new g(this,"span").attr({text:e,x:Math.round(p),y:Math.round(x)})})}constructor(e,p){super(e,p),this.css({position:"absolute",...e.styledMode?{}:{fontFamily:e.style.fontFamily,fontSize:e.style.fontSize}}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(e,p,x){this.xCorr=-e*x,this.yCorr=-p}css(e){let p;let{element:x}=this,y="SPAN"===x.tagName&&e&&"width"in e,b=y&&e.width;return y&&(delete e.width,this.textWidth=R(b)||void 0,p=!0),e?.textOverflow==="ellipsis"&&(e.whiteSpace="nowrap",e.overflow="hidden"),j(this.styles,e),O(x,e),p&&this.updateTransform(),this}htmlGetBBox(){let{element:e}=this;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}updateTransform(){if(!this.added){this.alignOnAdd=!0;return}let{element:e,renderer:p,rotation:x,rotationOriginX:y,rotationOriginY:b,styles:E,textAlign:L="left",textWidth:j,translateX:R=0,translateY:z=0,x:F=0,y:H=0}=this,U=E.whiteSpace;if(O(e,{marginLeft:`${R}px`,marginTop:`${z}px`}),"SPAN"===e.tagName){let E=[x,L,e.innerHTML,j,this.textAlign].join(","),R=-(this.parentGroup?.padding*1)||0,z,Y=!1;if(j!==this.oldTextWidth){let p=this.textPxLength?this.textPxLength:(O(e,{width:"",whiteSpace:U||"nowrap"}),e.offsetWidth),y=j||0;(y>this.oldTextWidth||p>y)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(O(e,{width:p>y||x?j+"px":"auto",display:"block",whiteSpace:U||"normal"}),this.oldTextWidth=j,Y=!0)}this.hasBoxWidthChanged=Y,E!==this.cTT&&(z=p.fontMetrics(e).b,D(x)&&(x!==(this.oldRotation||0)||L!==this.oldAlign)&&this.setSpanRotation(x,R,R),this.getSpanCorrection(!D(x)&&this.textPxLength||e.offsetWidth,z,{left:0,center:.5,right:1}[L]));let{xCorr:V=0,yCorr:q=0}=this,K=(y??F)-V-F-R,$=(b??H)-q-H-R;O(e,{left:`${F+V}px`,top:`${H+q}px`,transformOrigin:`${K}px ${$}px`}),this.cTT=E,this.oldRotation=x,this.oldAlign=L}}setSpanRotation(e,p,x){O(this.element,{transform:`rotate(${e}deg)`,transformOrigin:`${p}% ${x}px`})}add(e){let p;let x=this.renderer.box.parentNode,y=[];if(this.parentGroup=e,e&&!(p=e.div)){let b=e;for(;b;)y.push(b),b=b.parentGroup;for(let e of y.reverse())p=H(e,x)}return(p||x).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(p){p!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,e.setElementHTML(this.element,p??""),this.textStr=p,this.doTransform=!0)}alignSetter(e){this.alignValue=this.textAlign=e,this.doTransform=!0}xSetter(e,p){this[p]=e,this.doTransform=!0}};let U=g.prototype;return U.visibilitySetter=U.opacitySetter=F,U.ySetter=U.rotationSetter=U.rotationOriginXSetter=U.rotationOriginYSetter=U.xSetter,g}),x(p,"Core/Axis/AxisDefaults.js",[],function(){var e,p;return(p=e||(e={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},p.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:e}=this.axis.chart;return e(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},e}),x(p,"Core/Foundation.js",[p["Core/Utilities.js"]],function(e){var p;let{addEvent:x,isFunction:y,objectEach:b,removeEvent:E}=e;return(p||(p={})).registerEventOptions=function(e,p){e.eventOptions=e.eventOptions||{},b(p.events,function(p,b){e.eventOptions[b]!==p&&(e.eventOptions[b]&&(E(e,b,e.eventOptions[b]),delete e.eventOptions[b]),y(p)&&(e.eventOptions[b]=p,x(e,b,p,{order:0})))})},p}),x(p,"Core/Axis/Tick.js",[p["Core/Templating.js"],p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p,x){let{deg2rad:y}=p,{clamp:b,correctFloat:E,defined:O,destroyObjectProperties:L,extend:D,fireEvent:j,isNumber:R,merge:z,objectEach:F,pick:H}=x;return class{constructor(e,p,x,y,b){this.isNew=!0,this.isNewLabel=!0,this.axis=e,this.pos=p,this.type=x||"",this.parameters=b||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,j(this,"init"),x||y||this.addLabel()}addLabel(){let p=this,x=p.axis,y=x.options,b=x.chart,L=x.categories,z=x.logarithmic,F=x.names,U=p.pos,Y=H(p.options&&p.options.labels,y.labels),V=x.tickPositions,q=U===V[0],K=U===V[V.length-1],$=(!Y.step||1===Y.step)&&1===x.tickInterval,_=V.info,Z=p.label,J,tt,te,ti=this.parameters.category||(L?H(L[U],F[U],U):U);z&&R(ti)&&(ti=E(z.lin2log(ti))),x.dateTime&&(_?J=(tt=b.time.resolveDTLFormat(y.dateTimeLabelFormats[!y.grid&&_.higherRanks[U]||_.unitName])).main:R(ti)&&(J=x.dateTime.getXDateFormat(ti,y.dateTimeLabelFormats||{}))),p.isFirst=q,p.isLast=K;let ts={axis:x,chart:b,dateTimeLabelFormat:J,isFirst:q,isLast:K,pos:U,tick:p,tickPositionInfo:_,value:ti};j(this,"labelFormat",ts);let to=p=>Y.formatter?Y.formatter.call(p,p):Y.format?(p.text=x.defaultLabelFormatter.call(p),e.format(Y.format,p,b)):x.defaultLabelFormatter.call(p),tr=to.call(ts,ts),tn=tt&&tt.list;tn?p.shortenLabel=function(){for(te=0;te0&&b+z*F>D&&(_=Math.round((E-b)/Math.cos(R*y))):(K=b-z*F,$=b+(1-z)*F,KD&&(V=D-e.x+V*z,q=-1),(V=Math.min(U,V))V||p.autoRotation&&(j.styles||{}).width)&&(_=V)),_&&(this.shortenLabel?this.shortenLabel():(Y.width=Math.floor(_)+"px",(x.style||{}).textOverflow||(Y.textOverflow="ellipsis"),j.css(Y)))}moveLabel(e,p){let x=this,y=x.label,b=x.axis,E=!1,O;y&&y.textStr===e?(x.movedLabel=y,E=!0,delete x.label):F(b.ticks,function(p){E||p.isNew||p===x||!p.label||p.label.textStr!==e||(x.movedLabel=p.label,E=!0,p.labelPos=x.movedLabel.xy,delete p.label)}),!E&&(x.labelPos||y)&&(O=x.labelPos||y.xy,x.movedLabel=x.createLabel(e,p,O),x.movedLabel&&x.movedLabel.attr({opacity:0}))}render(e,p,x){let y=this.axis,b=y.horiz,O=this.pos,L=H(this.tickmarkOffset,y.tickmarkOffset),D=this.getPosition(b,O,L,p),R=D.x,z=D.y,F=y.pos,U=F+y.len,Y=b?R:z;!y.chart.polar&&this.isNew&&(E(Y)U)&&(x=0);let V=H(x,this.label&&this.label.newOpacity,1);x=H(x,1),this.isActive=!0,this.renderGridLine(p,x),this.renderMark(D,x),this.renderLabel(D,p,V,e),this.isNew=!1,j(this,"afterRender")}renderGridLine(e,p){let x=this.axis,y=x.options,b={},E=this.pos,O=this.type,L=H(this.tickmarkOffset,x.tickmarkOffset),D=x.chart.renderer,j=this.gridLine,R,z=y.gridLineWidth,F=y.gridLineColor,U=y.gridLineDashStyle;"minor"===this.type&&(z=y.minorGridLineWidth,F=y.minorGridLineColor,U=y.minorGridLineDashStyle),j||(x.chart.styledMode||(b.stroke=F,b["stroke-width"]=z||0,b.dashstyle=U),O||(b.zIndex=1),e&&(p=0),this.gridLine=j=D.path().attr(b).addClass("highcharts-"+(O?O+"-":"")+"grid-line").add(x.gridGroup)),j&&(R=x.getPlotLinePath({value:E+L,lineWidth:j.strokeWidth(),force:"pass",old:e,acrossPanes:!1}))&&j[e||this.isNew?"attr":"animate"]({d:R,opacity:p})}renderMark(e,p){let x=this.axis,y=x.options,b=x.chart.renderer,E=this.type,O=x.tickSize(E?E+"Tick":"tick"),L=e.x,D=e.y,j=H(y["minor"!==E?"tickWidth":"minorTickWidth"],!E&&x.isXAxis?1:0),R=y["minor"!==E?"tickColor":"minorTickColor"],z=this.mark,F=!z;O&&(x.opposite&&(O[0]=-O[0]),z||(this.mark=z=b.path().addClass("highcharts-"+(E?E+"-":"")+"tick").add(x.axisGroup),x.chart.styledMode||z.attr({stroke:R,"stroke-width":j})),z[F?"attr":"animate"]({d:this.getMarkPath(L,D,O[0],z.strokeWidth(),x.horiz,b),opacity:p}))}renderLabel(e,p,x,y){let b=this.axis,E=b.horiz,O=b.options,L=this.label,D=O.labels,j=D.step,z=H(this.tickmarkOffset,b.tickmarkOffset),F=e.x,U=e.y,Y=!0;L&&R(F)&&(L.xy=e=this.getLabelPosition(F,U,L,E,D,z,y,j),(!this.isFirst||this.isLast||O.showFirstLabel)&&(!this.isLast||this.isFirst||O.showLastLabel)?!E||D.step||D.rotation||p||0===x||this.handleOverflow(e):Y=!1,j&&y%j&&(Y=!1),Y&&R(e.y)?(e.opacity=x,L[this.isNewLabel?"attr":"animate"](e).show(!0),this.isNewLabel=!1):(L.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let e=this.label,p=this.axis;e&&!this.isNew&&(e.animate({opacity:0},void 0,e.destroy),delete this.label),p.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}}),x(p,"Core/Axis/Axis.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Axis/AxisDefaults.js"],p["Core/Color/Color.js"],p["Core/Defaults.js"],p["Core/Foundation.js"],p["Core/Globals.js"],p["Core/Axis/Tick.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E,O,L){let{animObject:D}=e,{xAxis:j,yAxis:R}=p,{defaultOptions:z}=y,{registerEventOptions:F}=b,{deg2rad:H}=E,{arrayMax:U,arrayMin:Y,clamp:V,correctFloat:q,defined:K,destroyObjectProperties:$,erase:_,error:Z,extend:J,fireEvent:tt,getClosestDistance:te,insertItem:ti,isArray:ts,isNumber:to,isString:tr,merge:tn,normalizeTickInterval:ta,objectEach:tl,pick:th,relativeLength:td,removeEvent:tc,splat:tp,syncTimeout:tu}=L,tg=(e,p)=>ta(p,void 0,void 0,th(e.options.allowDecimals,p<.5||void 0!==e.tickAmount),!!e.tickAmount);J(z,{xAxis:j,yAxis:tn(j,R)});let G=class G{constructor(e,p,x){this.init(e,p,x)}init(e,p,x=this.coll){let y="xAxis"===x,b=this.isZAxis||(e.inverted?!y:y);this.chart=e,this.horiz=b,this.isXAxis=y,this.coll=x,tt(this,"init",{userOptions:p}),this.opposite=th(p.opposite,this.opposite),this.side=th(p.side,this.side,b?this.opposite?0:2:this.opposite?1:3),this.setOptions(p);let E=this.options,O=E.labels,L=E.type;this.userOptions=p,this.minPixelPadding=0,this.reversed=th(E.reversed,this.reversed),this.visible=E.visible,this.zoomEnabled=E.zoomEnabled,this.hasNames="category"===L||!0===E.categories,this.categories=ts(E.categories)&&E.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=K(E.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=E.minRange||E.maxZoom,this.range=E.range,this.offset=E.offset||0,this.max=void 0,this.min=void 0;let D=th(E.crosshair,tp(e.options.tooltip.crosshairs)[y?0:1]);this.crosshair=!0===D?{}:D,-1===e.axes.indexOf(this)&&(y?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),ti(this,e[this.coll])),e.orderItems(this.coll),this.series=this.series||[],e.inverted&&!this.isZAxis&&y&&!K(this.reversed)&&(this.reversed=!0),this.labelRotation=to(O.rotation)?O.rotation:void 0,F(this,E),tt(this,"afterInit")}setOptions(e){let p=this.horiz?{labels:{autoRotation:[-45],padding:4},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=tn(p,z[this.coll],e),tt(this,"afterSetOptions",{userOptions:e})}defaultLabelFormatter(){let e=this.axis,{numberFormatter:p}=this.chart,x=to(this.value)?this.value:NaN,y=e.chart.time,b=e.categories,E=this.dateTimeLabelFormat,O=z.lang,L=O.numericSymbols,D=O.numericSymbolMagnitude||1e3,j=e.logarithmic?Math.abs(x):e.tickInterval,R=L&&L.length,F,H;if(b)H=`${this.value}`;else if(E)H=y.dateFormat(E,x);else if(R&&L&&j>=1e3)for(;R--&&void 0===H;)j>=(F=Math.pow(D,R+1))&&10*x%F==0&&null!==L[R]&&0!==x&&(H=p(x/F,-1)+L[R]);return void 0===H&&(H=Math.abs(x)>=1e4?p(x,-1):p(x,-1,void 0,"")),H}getSeriesExtremes(){let e;let p=this;tt(this,"getSeriesExtremes",null,function(){p.hasVisibleSeries=!1,p.dataMin=p.dataMax=p.threshold=void 0,p.softThreshold=!p.isXAxis,p.series.forEach(x=>{if(x.reserveSpace()){let y=x.options,b,E=y.threshold,O,L;if(p.hasVisibleSeries=!0,p.positiveValuesOnly&&0>=(E||0)&&(E=void 0),p.isXAxis)(b=x.xData)&&b.length&&(b=p.logarithmic?b.filter(e=>e>0):b,O=(e=x.getXExtremes(b)).min,L=e.max,to(O)||O instanceof Date||(b=b.filter(to),O=(e=x.getXExtremes(b)).min,L=e.max),b.length&&(p.dataMin=Math.min(th(p.dataMin,O),O),p.dataMax=Math.max(th(p.dataMax,L),L)));else{let e=x.applyExtremes();to(e.dataMin)&&(O=e.dataMin,p.dataMin=Math.min(th(p.dataMin,O),O)),to(e.dataMax)&&(L=e.dataMax,p.dataMax=Math.max(th(p.dataMax,L),L)),K(E)&&(p.threshold=E),(!y.softThreshold||p.positiveValuesOnly)&&(p.softThreshold=!1)}}})}),tt(this,"afterGetSeriesExtremes")}translate(e,p,x,y,b,E){let O=this.linkedParent||this,L=y&&O.old?O.old.min:O.min;if(!to(L))return NaN;let D=O.minPixelPadding,j=(O.isOrdinal||O.brokenAxis?.hasBreaks||O.logarithmic&&b)&&O.lin2val,R=1,z=0,F=y&&O.old?O.old.transA:O.transA,H=0;return F||(F=O.transA),x&&(R*=-1,z=O.len),O.reversed&&(R*=-1,z-=R*(O.sector||O.len)),p?(H=(e=e*R+z-D)/F+L,j&&(H=O.lin2val(H))):(j&&(e=O.val2lin(e)),H=R*(e-L)*F+z+R*D+(to(E)?F*E:0),O.isRadial||(H=q(H))),H}toPixels(e,p){return this.translate(e,!1,!this.horiz,void 0,!0)+(p?0:this.pos)}toValue(e,p){return this.translate(e-(p?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(e){let p=this,x=p.chart,y=p.left,b=p.top,E=e.old,O=e.value,L=e.lineWidth,D=E&&x.oldChartHeight||x.chartHeight,j=E&&x.oldChartWidth||x.chartWidth,R=p.transB,z=e.translatedValue,F=e.force,H,U,Y,q,K;function $(e,p,x){return"pass"!==F&&(ex)&&(F?e=V(e,p,x):K=!0),e}let _={value:O,lineWidth:L,old:E,force:F,acrossPanes:e.acrossPanes,translatedValue:z};return tt(this,"getPlotLinePath",_,function(e){H=Y=(z=V(z=th(z,p.translate(O,void 0,void 0,E)),-1e5,1e5))+R,U=q=D-z-R,to(z)?p.horiz?(U=b,q=D-p.bottom+(x.scrollablePixelsY||0),H=Y=$(H,y,y+p.width)):(H=y,Y=j-p.right+(x.scrollablePixelsX||0),U=q=$(U,b,b+p.height)):(K=!0,F=!1),e.path=K&&!F?void 0:x.renderer.crispLine([["M",H,U],["L",Y,q]],L||1)}),_.path}getLinearTickPositions(e,p,x){let y,b,E;let O=q(Math.floor(p/e)*e),L=q(Math.ceil(x/e)*e),D=[];if(q(O+e)===O&&(E=20),this.single)return[p];for(y=O;y<=L&&(D.push(y),(y=q(y+e,E))!==b);)b=y;return D}getMinorTickInterval(){let{minorTicks:e,minorTickInterval:p}=this.options;return!0===e?th(p,"auto"):!1!==e?p:void 0}getMinorTickPositions(){let e=this.options,p=this.tickPositions,x=this.minorTickInterval,y=this.pointRangePadding||0,b=(this.min||0)-y,E=(this.max||0)+y,O=E-b,L=[],D;if(O&&O/x(e.xIncrement?e.xData?.slice(0,2):e.xData)||[]))||0),this.dataMax-this.dataMin)),to(x)&&to(y)&&to(b)&&x-y=b,E=(b-x+y)/2,L=[y-E,th(e.min,y-E)],O&&(L[2]=p?p.log2lin(this.dataMin):this.dataMin),D=[(y=U(L))+b,th(e.max,y+b)],O&&(D[2]=p?p.log2lin(this.dataMax):this.dataMax),(x=Y(D))-ye-p),e=te([x]))}return e&&p?Math.min(e,p):e||p}nameToX(e){let p=ts(this.options.categories),x=p?this.categories:this.names,y=e.options.x,b;return e.series.requireSorting=!1,K(y)||(y=this.options.uniqueNames&&x?p?x.indexOf(e.name):th(x.keys[e.name],-1):e.series.autoIncrement()),-1===y?!p&&x&&(b=x.length):b=y,void 0!==b?(this.names[b]=e.name,this.names.keys[e.name]=b):e.x&&(b=e.x),b}updateNames(){let e=this,p=this.names;p.length>0&&(Object.keys(p.keys).forEach(function(e){delete p.keys[e]}),p.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(p=>{p.xIncrement=null,(!p.points||p.isDirtyData)&&(e.max=Math.max(e.max,p.xData.length-1),p.processData(),p.generatePoints()),p.data.forEach(function(x,y){let b;x?.options&&void 0!==x.name&&void 0!==(b=e.nameToX(x))&&b!==x.x&&(x.x=b,p.xData[y]=b)})}))}setAxisTranslation(){let e=this,p=e.max-e.min,x=e.linkedParent,y=!!e.categories,b=e.isXAxis,E=e.axisPointRange||0,O,L=0,D=0,j,R=e.transA;(b||y||E)&&(O=e.getClosest(),x?(L=x.minPointOffset,D=x.pointRangePadding):e.series.forEach(function(p){let x=y?1:b?th(p.options.pointRange,O,0):e.axisPointRange||0,j=p.options.pointPlacement;if(E=Math.max(E,x),!e.single||y){let e=p.is("xrange")?!b:b;L=Math.max(L,e&&tr(j)?0:x/2),D=Math.max(D,e&&"on"===j?0:x)}}),j=e.ordinal&&e.ordinal.slope&&O?e.ordinal.slope/O:1,e.minPointOffset=L*=j,e.pointRangePadding=D*=j,e.pointRange=Math.min(E,e.single&&y?1:p),b&&O&&(e.closestPointRange=O)),e.translationSlope=e.transA=R=e.staticScale||e.len/(p+D||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=R*L,tt(this,"afterSetAxisTranslation")}minFromRange(){let{max:e,min:p}=this;return to(e)&&to(p)&&e-p||void 0}setTickInterval(e){let{categories:p,chart:x,dataMax:y,dataMin:b,dateTime:E,isXAxis:O,logarithmic:L,options:D,softThreshold:j}=this,R=to(this.threshold)?this.threshold:void 0,z=this.minRange||0,{ceiling:F,floor:H,linkedTo:U,softMax:Y,softMin:V}=D,$=to(U)&&x[this.coll]?.[U],_=D.tickPixelInterval,J=D.maxPadding,te=D.minPadding,ti=0,ts,tr=to(D.tickInterval)&&D.tickInterval>=0?D.tickInterval:void 0,tn,ta,tl,td;if(E||p||$||this.getTickAmount(),tl=th(this.userMin,D.min),td=th(this.userMax,D.max),$?(this.linkedParent=$,ts=$.getExtremes(),this.min=th(ts.min,ts.dataMin),this.max=th(ts.max,ts.dataMax),D.type!==$.options.type&&Z(11,!0,x)):(j&&K(R)&&to(y)&&to(b)&&(b>=R?(tn=R,te=0):y<=R&&(ta=R,J=0)),this.min=th(tl,tn,b),this.max=th(td,ta,y)),to(this.max)&&to(this.min)&&(L&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,th(b,this.min))&&Z(10,!0,x),this.min=q(L.log2lin(this.min),16),this.max=q(L.log2lin(this.max),16)),this.range&&to(b)&&(this.userMin=this.min=tl=Math.max(b,this.minFromRange()||0),this.userMax=td=this.max,this.range=void 0)),tt(this,"foundExtremes"),this.adjustForMinRange(),to(this.min)&&to(this.max)){if(!to(this.userMin)&&to(V)&&Vthis.max&&(this.max=td=Y),p||this.axisPointRange||this.stacking?.usePercentage||$||!(ti=this.max-this.min)||(!K(tl)&&te&&(this.min-=ti*te),K(td)||!J||(this.max+=ti*J)),!to(this.userMin)&&to(H)&&(this.min=Math.max(this.min,H)),!to(this.userMax)&&to(F)&&(this.max=Math.min(this.max,F)),j&&to(b)&&to(y)){let e=R||0;!K(tl)&&this.min=e?this.min=D.minRange?Math.min(e,this.max-z):e:!K(td)&&this.max>e&&y<=e&&(this.max=D.minRange?Math.max(e,this.min+z):e)}!x.polar&&this.min>this.max&&(K(D.min)?this.max=this.min:K(D.max)&&(this.min=this.max)),ti=this.max-this.min}if(this.min!==this.max&&to(this.min)&&to(this.max)?$&&!tr&&_===$.options.tickPixelInterval?this.tickInterval=tr=$.tickInterval:this.tickInterval=th(tr,this.tickAmount?ti/Math.max(this.tickAmount-1,1):void 0,p?1:ti*_/Math.max(this.len,_)):this.tickInterval=1,O&&!e){let e=this.min!==this.old?.min||this.max!==this.old?.max;this.series.forEach(function(p){p.forceCrop=p.forceCropping?.(),p.processData(e)}),tt(this,"postProcessData",{hasExtremesChanged:e})}this.setAxisTranslation(),tt(this,"initialAxisTranslation"),this.pointRange&&!tr&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let tc=th(D.minTickInterval,E&&!this.series.some(e=>e.noSharedTooltip)?this.closestPointRange:0);!tr&&this.tickIntervalMath.max(2*this.len,200))L=[this.min,this.max],Z(19,!1,this.chart);else if(this.dateTime)L=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal?.positions,this.closestPointRange,!0);else if(this.logarithmic)L=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let e=this.tickInterval,p=e;for(;p<=2*e;)if(L=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&L.length>this.tickAmount)this.tickInterval=tg(this,p*=1.1);else break}L.length>this.len&&(L=[L[0],L[L.length-1]])[0]===L[1]&&(L.length=1),x&&(this.tickPositions=L,(D=x.apply(this,[this.min,this.max]))&&(L=D))}this.tickPositions=L,this.paddedTicks=L.slice(0),this.trimTicks(L,E,O),!this.isLinked&&to(this.min)&&to(this.max)&&(this.single&&L.length<2&&!this.categories&&!this.series.some(e=>e.is("heatmap")&&"between"===e.options.pointPlacement)&&(this.min-=.5,this.max+=.5),p||D||this.adjustTickAmount()),tt(this,"afterSetTickPositions")}trimTicks(e,p,x){let y=e[0],b=e[e.length-1],E=!this.isOrdinal&&this.minPointOffset||0;if(tt(this,"trimTicks"),!this.isLinked){if(p&&y!==-1/0)this.min=y;else for(;this.min-E>e[0];)e.shift();if(x)this.max=b;else for(;this.max+E{let{horiz:p,options:x}=e;return[p?x.left:x.top,x.width,x.height,x.pane].join(",")},E=b(this);x[this.coll].forEach(function(x){let{series:O}=x;O.length&&O.some(e=>e.visible)&&x!==p&&b(x)===E&&(e=!0,y.push(x))})}if(e&&O){y.forEach(e=>{let x=e.getThresholdAlignment(p);to(x)&&L.push(x)});let e=L.length>1?L.reduce((e,p)=>e+=p,0)/L.length:void 0;y.forEach(p=>{p.thresholdAlignment=e})}return e}getThresholdAlignment(e){if((!to(this.dataMin)||this!==e&&this.series.some(e=>e.isDirty||e.isDirtyData))&&this.getSeriesExtremes(),to(this.threshold)){let e=V((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(e=1-e),e}}getTickAmount(){let e=this.options,p=e.tickPixelInterval,x=e.tickAmount;K(e.tickInterval)||x||!(this.lenE.push(q(E[E.length-1]+F)),Y=()=>E.unshift(q(E[0]-F));if(to(L)&&(H=L<.5?Math.ceil(L*(O-1)):Math.floor(L*(O-1)),b.reversed&&(H=O-1-H)),e.hasData()&&to(y)&&to(x)){let L=()=>{e.transA*=(D-1)/(O-1),e.min=b.startOnTick?E[0]:Math.min(y,E[0]),e.max=b.endOnTick?E[E.length-1]:Math.max(x,E[E.length-1])};if(to(H)&&to(e.threshold)){for(;E[H]!==j||E.length!==O||E[0]>y||E[E.length-1]e.threshold?Y():U();if(F>8*e.tickInterval)break;F*=2}L()}else if(D0&&z{x=x||e.isDirtyData||e.isDirty,y=y||e.xAxis&&e.xAxis.isDirty||!1}),this.setAxisSize();let b=this.len!==(this.old&&this.old.len);b||x||y||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(p&&"yAxis"===e&&p.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),p&&"xAxis"===e&&p.buildStacks(),this.isDirty||(this.isDirty=b||this.min!==this.old?.min||this.max!==this.old?.max)):p&&p.cleanStacks(),x&&delete this.allExtremes,tt(this,"afterSetScale")}setExtremes(e,p,x=!0,y,b){this.series.forEach(e=>{delete e.kdTree}),tt(this,"setExtremes",b=J(b,{min:e,max:p}),e=>{this.userMin=e.min,this.userMax=e.max,this.eventArgs=e,x&&this.chart.redraw(y)})}setAxisSize(){let e=this.chart,p=this.options,x=p.offsets||[0,0,0,0],y=this.horiz,b=this.width=Math.round(td(th(p.width,e.plotWidth-x[3]+x[1]),e.plotWidth)),E=this.height=Math.round(td(th(p.height,e.plotHeight-x[0]+x[2]),e.plotHeight)),O=this.top=Math.round(td(th(p.top,e.plotTop+x[0]),e.plotHeight,e.plotTop)),L=this.left=Math.round(td(th(p.left,e.plotLeft+x[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-E-O,this.right=e.chartWidth-b-L,this.len=Math.max(y?b:E,0),this.pos=y?L:O}getExtremes(){let e=this.logarithmic;return{min:e?q(e.lin2log(this.min)):this.min,max:e?q(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(e){let p=this.logarithmic,x=p?p.lin2log(this.min):this.min,y=p?p.lin2log(this.max):this.max;return null===e||e===-1/0?e=x:e===1/0?e=y:x>e?e=x:y15&&p<165?e.align="right":p>195&&p<345&&(e.align="left")}),x.align}tickSize(e){let p=this.options,x=th(p["tick"===e?"tickWidth":"minorTickWidth"],"tick"===e&&this.isXAxis&&!this.categories?1:0),y=p["tick"===e?"tickLength":"minorTickLength"],b;x&&y&&("inside"===p[e+"Position"]&&(y=-y),b=[y,x]);let E={tickSize:b};return tt(this,"afterTickSize",E),E.tickSize}labelMetrics(){let e=this.chart.renderer,p=this.ticks,x=p[Object.keys(p)[0]]||{};return this.chart.renderer.fontMetrics(x.label||x.movedLabel||e.box)}unsquish(){let e=this.options.labels,p=e.padding||0,x=this.horiz,y=this.tickInterval,b=this.len/(((this.categories?1:0)+this.max-this.min)/y),E=e.rotation,O=q(.8*this.labelMetrics().h),L=Math.max(this.max-this.min,0),D=function(e){let x=(e+2*p)/(b||1);return(x=x>1?Math.ceil(x):1)*y>L&&e!==1/0&&b!==1/0&&L&&(x=Math.ceil(L/y)),q(x*y)},j=y,R,z=Number.MAX_VALUE,F;if(x){if(!e.staggerLines&&(to(E)?F=[E]:b=-90&&x<=90)&&(p=(e=D(Math.abs(O/Math.sin(H*x))))+Math.abs(x/360))U&&(U=p.label.textPxLength)}),this.maxLabelLength=U,this.autoRotation)U>D&&U>R.h?j.rotation=this.labelRotation:this.labelRotation=0;else if(L&&(F=D,!z))for(H="clip",V=x.length;!O&&V--;)(Y=y[x[V]].label)&&("ellipsis"===Y.styles.textOverflow?Y.css({textOverflow:"clip"}):Y.textPxLength>L&&Y.css({width:L+"px"}),Y.getBBox().height>this.len/x.length-(R.h-R.f)&&(Y.specificTextOverflow="ellipsis"));j.rotation&&(F=U>.5*e.chartHeight?.33*e.chartHeight:U,z||(H="ellipsis")),this.labelAlign=b.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(j.align=this.labelAlign),x.forEach(function(e){let p=y[e],x=p&&p.label,b=E.width,O={};x&&(x.attr(j),p.shortenLabel?p.shortenLabel():F&&!b&&"nowrap"!==E.whiteSpace&&(Fb.g(p).attr({zIndex:O}).addClass(`highcharts-${x.toLowerCase()}${E} `+(this.isRadial?`highcharts-radial-axis${E} `:"")+(y.className||"")).add(e);this.axisGroup||(this.gridGroup=E("grid","-grid",y.gridZIndex),this.axisGroup=E("axis","",y.zIndex),this.labelGroup=E("axis-labels","-labels",y.labels.zIndex))}getOffset(){let e=this,{chart:p,horiz:x,options:y,side:b,ticks:E,tickPositions:O,coll:L}=e,D=p.inverted&&!e.isZAxis?[1,0,3,2][b]:b,j=e.hasData(),R=y.title,z=y.labels,F=to(y.crossing),H=p.axisOffset,U=p.clipOffset,Y=[-1,1,1,-1][b],V,q=0,$,_=0,Z=0,J,te;if(e.showAxis=V=j||y.showEmpty,e.staggerLines=e.horiz&&z.staggerLines||void 0,e.createGroups(),j||e.isLinked?(O.forEach(function(p){e.generateTick(p)}),e.renderUnsquish(),e.reserveSpaceDefault=0===b||2===b||({1:"left",3:"right"})[b]===e.labelAlign,th(z.reserveSpace,!F&&null,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&O.forEach(function(e){Z=Math.max(E[e].getLabelSize(),Z)}),e.staggerLines&&(Z*=e.staggerLines),e.labelOffset=Z*(e.opposite?-1:1)):tl(E,function(e,p){e.destroy(),delete E[p]}),R?.text&&!1!==R.enabled&&(e.addTitle(V),V&&!F&&!1!==R.reserveSpace&&(e.titleOffset=q=e.axisTitle.getBBox()[x?"height":"width"],_=K($=R.offset)?0:th(R.margin,x?5:10))),e.renderLine(),e.offset=Y*th(y.offset,H[b]?H[b]+(y.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},te=0===b?-e.labelMetrics().h:2===b?e.tickRotCorr.y:0,J=Math.abs(Z)+_,Z&&(J-=te,J+=Y*(x?th(z.y,e.tickRotCorr.y+Y*z.distance):th(z.x,Y*z.distance))),e.axisTitleMargin=th($,J),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(E,O)),"colorAxis"!==L&&U){let p=this.tickSize("tick");H[b]=Math.max(H[b],(e.axisTitleMargin||0)+q+Y*e.offset,J,O&&O.length&&p?p[0]+Y*e.offset:0);let x=!e.axisLine||y.offset?0:e.axisLine.strokeWidth()/2;U[D]=Math.max(U[D],x)}tt(this,"afterGetOffset")}getLinePath(e){let p=this.chart,x=this.opposite,y=this.offset,b=this.horiz,E=this.left+(x?this.width:0)+y,O=p.chartHeight-this.bottom-(x?this.height:0)+y;return x&&(e*=-1),p.renderer.crispLine([["M",b?this.left:E,b?O:this.top],["L",b?p.chartWidth-this.right:E,b?O:p.chartHeight-this.bottom]],e)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(e){let p=this.horiz,x=this.left,y=this.top,b=this.len,E=this.options.title,O=p?x:y,L=this.opposite,D=this.offset,j=E.x,R=E.y,z=this.chart.renderer.fontMetrics(e),F=e?Math.max(e.getBBox(!1,0).height-z.h-1,0):0,H={low:O+(p?0:b),middle:O+b/2,high:O+(p?b:0)}[E.align],U=(p?y+this.height:x)+(p?1:-1)*(L?-1:1)*(this.axisTitleMargin||0)+[-F,F,z.f,-F][this.side],Y={x:p?H+j:U+(L?this.width:0)+D+j,y:p?U+R-(L?this.height:0)+D:H+R};return tt(this,"afterGetTitlePosition",{titlePosition:Y}),Y}renderMinorTick(e,p){let x=this.minorTicks;x[e]||(x[e]=new O(this,e,"minor")),p&&x[e].isNew&&x[e].render(null,!0),x[e].render(null,!1,1)}renderTick(e,p,x){let y=this.isLinked,b=this.ticks;(!y||e>=this.min&&e<=this.max||this.grid&&this.grid.isColumn)&&(b[e]||(b[e]=new O(this,e)),x&&b[e].isNew&&b[e].render(p,!0,-1),b[e].render(p))}render(){let e,p;let x=this,y=x.chart,b=x.logarithmic,L=y.renderer,j=x.options,R=x.isLinked,z=x.tickPositions,F=x.axisTitle,H=x.ticks,U=x.minorTicks,Y=x.alternateBands,V=j.stackLabels,q=j.alternateGridColor,K=j.crossing,$=x.tickmarkOffset,_=x.axisLine,Z=x.showAxis,J=D(L.globalAnimation);if(x.labelEdge.length=0,x.overlap=!1,[H,U,Y].forEach(function(e){tl(e,function(e){e.isActive=!1})}),to(K)){let e=this.isXAxis?y.yAxis[0]:y.xAxis[0],p=[1,-1,-1,1][this.side];if(e){let y=e.toPixels(K,!0);x.horiz&&(y=e.len-y),x.offset=p*y}}if(x.hasData()||R){let L=x.chart.hasRendered&&x.old&&to(x.old.min);x.minorTickInterval&&!x.categories&&x.getMinorTickPositions().forEach(function(e){x.renderMinorTick(e,L)}),z.length&&(z.forEach(function(e,p){x.renderTick(e,p,L)}),$&&(0===x.min||x.single)&&(H[-1]||(H[-1]=new O(x,-1,null,!0)),H[-1].render(-1))),q&&z.forEach(function(O,L){p=void 0!==z[L+1]?z[L+1]+$:x.max-$,L%2==0&&O=.5)e=Math.round(e),j=O.getLinearTickPositions(e,p,x);else if(e>=.08){let y,b,O,L,D,R,z;let F=Math.floor(p);for(y=e>.3?[1,2,4]:e>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],b=F;bp&&(!E||R<=x)&&void 0!==R&&j.push(R),R>x&&(z=!0),R=D}else{let R=this.lin2log(p),z=this.lin2log(x),F=E?O.getMinorTickInterval():D.tickInterval,H=D.tickPixelInterval/(E?5:1),U=E?L/O.tickPositions.length:L;e=y(e=b("auto"===F?null:F,this.minorAutoInterval,(z-R)*H/(U||1))),j=O.getLinearTickPositions(e,R,z).map(this.log2lin),E||(this.minorAutoInterval=e/5)}return E||(O.tickInterval=e),j}lin2log(e){return Math.pow(10,e)}log2lin(e){return Math.log(e)/Math.LN10}};e.Additions=a}(p||(p={})),p}),x(p,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[p["Core/Utilities.js"]],function(e){var p;let{erase:x,extend:y,isNumber:b}=e;return function(e){let p;function E(e){return this.addPlotBandOrLine(e,"plotBands")}function O(e,x){let y=this.userOptions,b=new p(this,e);if(this.visible&&(b=b.render()),b){if(this._addedPlotLB||(this._addedPlotLB=!0,(y.plotLines||[]).concat(y.plotBands||[]).forEach(e=>{this.addPlotBandOrLine(e)})),x){let p=y[x]||[];p.push(e),y[x]=p}this.plotLinesAndBands.push(b)}return b}function L(e){return this.addPlotBandOrLine(e,"plotLines")}function D(e,p,x){x=x||this.options;let y=this.getPlotLinePath({value:p,force:!0,acrossPanes:x.acrossPanes}),E=[],O=this.horiz,L=!b(this.min)||!b(this.max)||ethis.max&&p>this.max,D=this.getPlotLinePath({value:e,force:!0,acrossPanes:x.acrossPanes}),j,R=1,z;if(D&&y)for(L&&(z=D.toString()===y.toString(),R=0),j=0;j{_?.on(p,e=>{O[p].apply(this,[e])})}),this.eventsAdded=!0),(ti||!_.d)&&Z?.length?_.attr({d:Z}):_&&(Z?(_.show(),_.animate({d:Z})):_.d&&(_.hide(),$&&(this.label=$=$.destroy()))),K&&(b(K.text)||b(K.formatter))&&Z?.length&&e.width>0&&e.height>0&&!Z.isFlat?(K=D({align:x&&tt?"center":void 0,x:x?!tt&&4:10,verticalAlign:!x&&tt?"middle":void 0,y:x?tt?16:10:tt?6:-4,rotation:x&&!tt?90:0},K),this.renderLabel(K,Z,tt,z)):$&&$.hide(),this}renderLabel(e,p,b,E){let O=this.axis,L=O.chart.renderer,j=this.label;j||(this.label=j=L.text(this.getLabelText(e),0,0,e.useHTML).attr({align:e.textAlign||e.align,rotation:e.rotation,class:"highcharts-plot-"+(b?"band":"line")+"-label "+(e.className||""),zIndex:E}),O.chart.styledMode||j.css(D({fontSize:"0.8em",textOverflow:"ellipsis"},e.style)),j.add());let R=p.xBounds||[p[0][1],p[1][1],b?p[2][1]:p[0][1]],z=p.yBounds||[p[0][2],p[1][2],b?p[2][2]:p[0][2]],F=y(R),H=y(z);if(j.align(e,!1,{x:F,y:H,width:x(R)-F,height:x(z)-H}),!j.alignValue||"left"===j.alignValue){let p=e.clip?O.width:O.chart.chartWidth;j.css({width:(90===j.rotation?O.height-(j.alignAttr.y-O.top):p-(j.alignAttr.x-O.left))+"px"})}j.show(!0)}getLabelText(e){return b(e.formatter)?e.formatter.call(this):e.text}destroy(){O(this.axis.plotLinesAndBands,this),delete this.axis,E(this)}};return c}),x(p,"Core/Tooltip.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Templating.js"],p["Core/Globals.js"],p["Core/Renderer/RendererUtilities.js"],p["Core/Renderer/RendererRegistry.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E){var O;let{animObject:L}=e,{format:D}=p,{composed:j,doc:R,isSafari:z}=x,{distribute:F}=y,{addEvent:H,clamp:U,css:Y,discardElement:V,extend:q,fireEvent:K,isArray:$,isNumber:_,isString:Z,merge:J,pick:tt,pushUnique:te,splat:ti,syncTimeout:ts}=E;let T=class T{constructor(e,p,x){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=e,this.init(e,p),this.pointer=x}bodyFormatter(e){return e.map(function(e){let p=e.series.tooltipOptions;return(p[(e.point.formatPrefix||"point")+"Formatter"]||e.point.tooltipFormatter).call(e.point,p[(e.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(e){this.chart.series.forEach(function(p){let x=p&&p.tt;x&&(!x.isActive||e?p.tt=x.destroy():x.isActive=!1)})}defaultFormatter(e){let p;let x=this.points||ti(this);return(p=(p=[e.tooltipFooterHeaderFormatter(x[0])]).concat(e.bodyFormatter(x))).push(e.tooltipFooterHeaderFormatter(x[0],!0)),p}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),V(this.container)),E.clearTimeout(this.hideTimer)}getAnchor(e,p){let x;let{chart:y,pointer:b}=this,E=y.inverted,O=y.plotTop,L=y.plotLeft;if((e=ti(e))[0].series&&e[0].series.yAxis&&!e[0].series.yAxis.options.reversedStacks&&(e=e.slice().reverse()),this.followPointer&&p)void 0===p.chartX&&(p=b.normalize(p)),x=[p.chartX-L,p.chartY-O];else if(e[0].tooltipPos)x=e[0].tooltipPos;else{let y=0,b=0;e.forEach(function(e){let p=e.pos(!0);p&&(y+=p[0],b+=p[1])}),y/=e.length,b/=e.length,this.shared&&e.length>1&&p&&(E?y=p.chartX:b=p.chartY),x=[y-L,b-O]}return x.map(Math.round)}getClassName(e,p,x){let y=this.options,b=e.series,E=b.options;return[y.className,"highcharts-label",x&&"highcharts-tooltip-header",p?"highcharts-tooltip-box":"highcharts-tooltip",!x&&"highcharts-color-"+tt(e.colorIndex,b.colorIndex),E&&E.className].filter(Z).join(" ")}getLabel(){let e=this,p=this.chart.styledMode,y=this.options,E=this.split&&this.allowShared,O=this.container,L=this.chart.renderer;if(this.label){let e=!this.label.hasClass("highcharts-label");(!E&&e||E&&!e)&&this.destroy()}if(!this.label){if(this.outside){let e=this.chart.options.chart.style,p=b.getRendererType();this.container=O=x.doc.createElement("div"),O.className="highcharts-tooltip-container",Y(O,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(e&&e.zIndex||0)+3)}),this.renderer=L=new p(O,0,0,e,void 0,void 0,L.styledMode)}if(E?this.label=L.g("tooltip"):(this.label=L.label("",0,0,y.shape,void 0,void 0,y.useHTML,void 0,"tooltip").attr({padding:y.padding,r:y.borderRadius}),p||this.label.attr({fill:y.backgroundColor,"stroke-width":y.borderWidth||0}).css(y.style).css({pointerEvents:y.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),e.outside){let p=this.label;[p.xSetter,p.ySetter].forEach((x,y)=>{p[y?"ySetter":"xSetter"]=b=>{x.call(p,e.distance),p[y?"y":"x"]=b,O&&(O.style[y?"top":"left"]=`${b}px`)}})}this.label.attr({zIndex:8}).shadow(y.shadow).add()}return O&&!O.parentElement&&x.doc.body.appendChild(O),this.label}getPlayingField(){let{body:e,documentElement:p}=R,{chart:x,distance:y,outside:b}=this;return{width:b?Math.max(e.scrollWidth,p.scrollWidth,e.offsetWidth,p.offsetWidth,p.clientWidth)-2*y:x.chartWidth,height:b?Math.max(e.scrollHeight,p.scrollHeight,e.offsetHeight,p.offsetHeight,p.clientHeight):x.chartHeight}}getPosition(e,p,x){let{distance:y,chart:b,outside:E,pointer:O}=this,{inverted:L,plotLeft:D,plotTop:j,polar:R}=b,{plotX:z=0,plotY:F=0}=x,H={},U=L&&x.h||0,{height:Y,width:V}=this.getPlayingField(),q=O.getChartPosition(),K=e=>e*q.scaleX,$=e=>e*q.scaleY,_=x=>{let O="x"===x;return[x,O?V:Y,O?e:p].concat(E?[O?K(e):$(p),O?q.left-y+K(z+D):q.top-y+$(F+j),0,O?V:Y]:[O?e:p,O?z+D:F+j,O?D:j,O?D+b.plotWidth:j+b.plotHeight])},Z=_("y"),J=_("x"),te,ti=!!x.negative;!R&&b.hoverSeries?.yAxis?.reversed&&(ti=!ti);let ts=!this.followPointer&&tt(x.ttBelow,!R&&!L===ti),to=function(e,p,x,b,O,L,D){let j=E?"y"===e?$(y):K(y):y,R=(x-b)/2,z=bp?V:V+U)}},tr=function(e,p,x,b,E){if(Ep-y)return!1;Ep-b/2?H[e]=p-b-2:H[e]=E-x/2},tn=function(e){[Z,J]=[J,Z],te=e},ta=()=>{!1!==to.apply(0,Z)?!1!==tr.apply(0,J)||te||(tn(!0),ta()):te?H.x=H.y=0:(tn(!0),ta())};return(L&&!R||this.len>1)&&tn(),ta(),H}hide(e){let p=this;E.clearTimeout(this.hideTimer),e=tt(e,this.options.hideDelay),this.isHidden||(this.hideTimer=ts(function(){let x=p.getLabel();p.getLabel().animate({opacity:0},{duration:e?150:e,complete:()=>{x.hide(),p.container&&p.container.remove()}}),p.isHidden=!0},e))}init(e,p){this.chart=e,this.options=p,this.crosshairs=[],this.isHidden=!0,this.split=p.split&&!e.inverted&&!e.polar,this.shared=p.shared||this.split,this.outside=tt(p.outside,!!(e.scrollablePixelsX||e.scrollablePixelsY))}shouldStickOnContact(e){return!!(!this.followPointer&&this.options.stickOnContact&&(!e||this.pointer.inClass(e.target,"highcharts-tooltip")))}move(e,p,x,y){let b=this,E=L(!b.isHidden&&b.options.animation),O=b.followPointer||(b.len||0)>1,D={x:e,y:p};O||(D.anchorX=x,D.anchorY=y),E.step=()=>b.drawTracker(),b.getLabel().animate(D,E)}refresh(e,p){let{chart:x,options:y,pointer:b,shared:O}=this,L=ti(e),j=L[0],R=[],z=y.format,F=y.formatter||this.defaultFormatter,H=x.styledMode,U={};if(!y.enabled||!j.series)return;E.clearTimeout(this.hideTimer),this.allowShared=!(!$(e)&&e.series&&e.series.noSharedTooltip),this.followPointer=!this.split&&j.series.tooltipOptions.followPointer;let Y=this.getAnchor(e,p),V=Y[0],q=Y[1];O&&this.allowShared?(b.applyInactiveState(L),L.forEach(function(e){e.setState("hover"),R.push(e.getLabelConfig())}),(U=j.getLabelConfig()).points=R):U=j.getLabelConfig(),this.len=R.length;let _=Z(z)?D(z,U,x):F.call(U,this),J=j.series;if(this.distance=tt(J.tooltipOptions.distance,16),!1===_)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(_,L);else{let e=V,E=q;if(p&&b.isDirectTouch&&(e=p.chartX-x.plotLeft,E=p.chartY-x.plotTop),x.polar||!1===J.options.clip||L.some(p=>b.isDirectTouch||p.series.shouldShowTooltip(e,E))){let e=this.getLabel();(!y.style.width||H)&&e.css({width:(this.outside?this.getPlayingField():x.spacingBox).width+"px"}),e.attr({text:_&&_.join?_.join(""):_}),e.addClass(this.getClassName(j),!0),H||e.attr({stroke:y.borderColor||j.color||J.color||"#666666"}),this.updatePosition({plotX:V,plotY:q,negative:j.negative,ttBelow:j.ttBelow,h:Y[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}K(this,"refresh")}renderSplit(e,p){let x=this,{chart:y,chart:{chartWidth:b,chartHeight:E,plotHeight:O,plotLeft:L,plotTop:D,scrollablePixelsY:j=0,scrollablePixelsX:H,styledMode:Y},distance:V,options:K,options:{positioner:$},pointer:_}=x,{scrollLeft:J=0,scrollTop:te=0}=y.scrollablePlotArea?.scrollingContainer||{},ti=x.outside&&"number"!=typeof H?R.documentElement.getBoundingClientRect():{left:J,right:J+b,top:te,bottom:te+E},ts=x.getLabel(),to=this.renderer||y.renderer,tr=!!(y.xAxis[0]&&y.xAxis[0].opposite),{left:tn,top:ta}=_.getChartPosition(),tl=D+te,th=0,td=O-j;function tc(e,p,y,b,E=!0){let O,L;return y?(O=tr?0:td,L=U(e-b/2,ti.left,ti.right-b-(x.outside?tn:0))):(O=p-tl,L=U(L=E?e-b-V:e+V,E?L:ti.left,ti.right)),{x:L,y:O}}Z(e)&&(e=[!1,e]);let tp=e.slice(0,p.length+1).reduce(function(e,y,b){if(!1!==y&&""!==y){let E=p[b-1]||{isHeader:!0,plotX:p[0].plotX,plotY:O,series:{}},j=E.isHeader,R=j?x:E.series,z=R.tt=function(e,p,y){let b=e,{isHeader:E,series:O}=p;if(!b){let e={padding:K.padding,r:K.borderRadius};Y||(e.fill=K.backgroundColor,e["stroke-width"]=K.borderWidth??1),b=to.label("",0,0,K[E?"headerShape":"shape"],void 0,void 0,K.useHTML).addClass(x.getClassName(p,!0,E)).attr(e).add(ts)}return b.isActive=!0,b.attr({text:y}),Y||b.css(K.style).attr({stroke:K.borderColor||p.color||O.color||"#333333"}),b}(R.tt,E,y.toString()),F=z.getBBox(),H=F.width+z.strokeWidth();j&&(th=F.height,td+=th,tr&&(tl-=th));let{anchorX:q,anchorY:_}=function(e){let p,x;let{isHeader:y,plotX:b=0,plotY:E=0,series:j}=e;if(y)p=Math.max(L+b,L),x=D+O/2;else{let{xAxis:e,yAxis:y}=j;p=e.pos+U(b,-V,e.len+V),j.shouldShowTooltip(0,y.pos-D+E,{ignoreX:!0})&&(x=y.pos+E)}return{anchorX:p=U(p,ti.left-V,ti.right+V),anchorY:x}}(E);if("number"==typeof _){let p=F.height+1,y=$?$.call(x,H,p,E):tc(q,_,j,H);e.push({align:$?0:void 0,anchorX:q,anchorY:_,boxWidth:H,point:E,rank:tt(y.rank,j?1:0),size:p,target:y.y,tt:z,x:y.x})}else z.isActive=!1}return e},[]);!$&&tp.some(e=>{let{outside:p}=x,y=(p?tn:0)+e.anchorX;return yy})&&(tp=tp.map(e=>{let{x:p,y:x}=tc(e.anchorX,e.anchorY,e.point.isHeader,e.boxWidth,!1);return q(e,{target:x,x:p})})),x.cleanSplit(),F(tp,td);let tu={left:tn,right:tn};tp.forEach(function(e){let{x:p,boxWidth:y,isHeader:b}=e;!b&&(x.outside&&tn+ptu.right&&(tu.right=tn+p))}),tp.forEach(function(e){let{x:p,anchorX:y,anchorY:b,pos:E,point:{isHeader:O}}=e,L={visibility:void 0===E?"hidden":"inherit",x:p,y:(E||0)+tl,anchorX:y,anchorY:b};if(x.outside&&p0&&(O||(L.x=p+e,L.anchorX=y+e),O&&(L.x=(tu.right-tu.left)/2,L.anchorX=y+e))}e.tt.attr(L)});let{container:tg,outside:tm,renderer:tf}=x;if(tm&&tg&&tf){let{width:e,height:p,x:x,y:y}=ts.getBBox();tf.setSize(e+x,p+y,!1),tg.style.left=tu.left+"px",tg.style.top=ta+"px"}z&&ts.attr({opacity:1===ts.opacity?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let e=this.chart,p=this.label,x=this.shared?e.hoverPoints:e.hoverPoint;if(!p||!x)return;let y={x:0,y:0,width:0,height:0},b=this.getAnchor(x),E=p.getBBox();b[0]+=e.plotLeft-(p.translateX||0),b[1]+=e.plotTop-(p.translateY||0),y.x=Math.min(0,b[0]),y.y=Math.min(0,b[1]),y.width=b[0]<0?Math.max(Math.abs(b[0]),E.width-b[0]):Math.max(Math.abs(b[0]),E.width),y.height=b[1]<0?Math.max(Math.abs(b[1]),E.height-Math.abs(b[1])):Math.max(Math.abs(b[1]),E.height),this.tracker?this.tracker.attr(y):(this.tracker=p.renderer.rect(y).addClass("highcharts-tracker").add(p),e.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(e){return e.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(e,p){let x=e.series,y=x.tooltipOptions,b=x.xAxis,E=b&&b.dateTime,O={isFooter:p,labelConfig:e},L=y.xDateFormat,j=y[p?"footerFormat":"headerFormat"];return K(this,"headerFormatter",O,function(p){E&&!L&&_(e.key)&&(L=E.getXDateFormat(e.key,y.dateTimeLabelFormats)),E&&L&&(e.point&&e.point.tooltipDateKeys||["key"]).forEach(function(e){j=j.replace("{point."+e+"}","{point."+e+":"+L+"}")}),x.chart.styledMode&&(j=this.styledModeFormat(j)),p.text=D(j,{point:e,series:x},this.chart)}),O.text}update(e){this.destroy(),this.init(this.chart,J(!0,this.options,e))}updatePosition(e){let{chart:p,container:x,distance:y,options:b,pointer:E,renderer:O}=this,{height:L=0,width:D=0}=this.getLabel(),{left:j,top:R,scaleX:z,scaleY:F}=E.getChartPosition(),H=(b.positioner||this.getPosition).call(this,D,L,e),U=(e.plotX||0)+p.plotLeft,V=(e.plotY||0)+p.plotTop,q;O&&x&&(b.positioner&&(H.x+=j-y,H.y+=R-y),q=(b.borderWidth||0)+2*y+2,O.setSize(D+q,L+q,!1),(1!==z||1!==F)&&(Y(x,{transform:`scale(${z}, ${F})`}),U*=z,V*=F),U+=j-H.x,V+=R-H.y),this.move(Math.round(H.x),Math.round(H.y||0),U,V)}};return(O=T||(T={})).compose=function(e){te(j,"Core.Tooltip")&&H(e,"afterInit",function(){let e=this.chart;e.options.tooltip&&(e.tooltip=new O(e,e.options.tooltip,this))})},T}),x(p,"Core/Series/Point.js",[p["Core/Renderer/HTML/AST.js"],p["Core/Animation/AnimationUtilities.js"],p["Core/Defaults.js"],p["Core/Templating.js"],p["Core/Utilities.js"]],function(e,p,x,y,b){let{animObject:E}=p,{defaultOptions:O}=x,{format:L}=y,{addEvent:D,crisp:j,erase:R,extend:z,fireEvent:F,getNestedProperty:H,isArray:U,isFunction:Y,isNumber:V,isObject:q,merge:K,pick:$,syncTimeout:_,removeEvent:Z,uniqueKey:J}=b;let M=class M{animateBeforeDestroy(){let e=this,p={x:e.startXPos,opacity:0},x=e.getGraphicalProps();x.singular.forEach(function(x){e[x]=e[x].animate("dataLabel"===x?{x:e[x].startXPos,y:e[x].startYPos,opacity:0}:p)}),x.plural.forEach(function(p){e[p].forEach(function(p){p.element&&p.animate(z({x:e.startXPos},p.startYPos?{x:p.startXPos,y:p.startYPos}:{}))})})}applyOptions(e,p){let x=this.series,y=x.options.pointValKey||x.pointValKey;return z(this,e=M.prototype.optionsToObject.call(this,e)),this.options=this.options?z(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,y&&(this.y=M.prototype.getNestedProperty.call(this,y)),this.selected&&(this.state="select"),"name"in this&&void 0===p&&x.xAxis&&x.xAxis.hasNames&&(this.x=x.xAxis.nameToX(this)),void 0===this.x&&x?void 0===p?this.x=x.autoIncrement():this.x=p:V(e.x)&&x.options.relativeXValue&&(this.x=x.autoIncrement(e.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let e=this,p=e.series,x=p.chart,y=p.options.dataSorting,b=x.hoverPoints,O=E(e.series.chart.renderer.globalAnimation),L=()=>{for(let p in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(Z(e),e.destroyElements()),e)delete e[p]};e.legendItem&&x.legend.destroyItem(e),b&&(e.setState(),R(b,e),b.length||(x.hoverPoints=null)),e===x.hoverPoint&&e.onMouseOut(),y&&y.enabled?(this.animateBeforeDestroy(),_(L,O.duration)):L(),x.pointCount--}this.destroyed=!0}destroyElements(e){let p=this,x=p.getGraphicalProps(e);x.singular.forEach(function(e){p[e]=p[e].destroy()}),x.plural.forEach(function(e){p[e].forEach(function(e){e&&e.element&&e.destroy()}),delete p[e]})}firePointEvent(e,p,x){let y=this,b=this.series.options;y.manageEvent(e),"click"===e&&b.allowPointSelect&&(x=function(e){!y.destroyed&&y.select&&y.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),F(y,e,p,x)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(e){let p,x;let y=this,b=[],E={singular:[],plural:[]};for((e=e||{graphic:1,dataLabel:1}).graphic&&b.push("graphic","connector"),e.dataLabel&&b.push("dataLabel","dataLabelPath","dataLabelUpper"),x=b.length;x--;)y[p=b[x]]&&E.singular.push(p);return["graphic","dataLabel"].forEach(function(p){let x=p+"s";e[p]&&y[x]&&E.plural.push(x)}),E}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(e){return e?0===e.indexOf("custom.")?H(e,this.options):this[e]:void 0}getZone(){let e=this.series,p=e.zones,x=e.zoneAxis||"y",y,b=0;for(y=p[0];this[x]>=y.value;)y=p[++b];return this.nonZonedColor||(this.nonZonedColor=this.color),y&&y.color&&!this.options.color?this.color=y.color:this.color=this.nonZonedColor,y}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(e,p,x){this.formatPrefix="point",this.visible=!0,this.series=e,this.applyOptions(p,x),this.id??(this.id=J()),this.resolveColor(),e.chart.pointCount++,F(this,"afterInit")}isValid(){return(V(this.x)||this.x instanceof Date)&&V(this.y)}optionsToObject(e){let p=this.series,x=p.options.keys,y=x||p.pointArrayMap||["y"],b=y.length,E={},O,L=0,D=0;if(V(e)||null===e)E[y[0]]=e;else if(U(e))for(!x&&e.length>b&&("string"==(O=typeof e[0])?E.name=e[0]:"number"===O&&(E.x=e[0]),L++);D0?M.prototype.setNestedProperty(E,e[L],y[D]):E[y[D]]=e[L]),L++,D++;else"object"==typeof e&&(E=e,e.dataLabels&&(p.hasDataLabels=()=>!0),e.marker&&(p._hasPointMarkers=!0));return E}pos(e,p=this.plotY){if(!this.destroyed){let{plotX:x,series:y}=this,{chart:b,xAxis:E,yAxis:O}=y,L=0,D=0;if(V(x)&&V(p))return e&&(L=E?E.pos:b.plotLeft,D=O?O.pos:b.plotTop),b.inverted&&E&&O?[O.len-p+D,E.len-x+L]:[x+L,p+D]}}resolveColor(){let e=this.series,p=e.chart.options.chart,x=e.chart.styledMode,y,b,E=p.colorCount,O;delete this.nonZonedColor,e.options.colorByPoint?(x||(y=(b=e.options.colors||e.chart.options.colors)[e.colorCounter],E=b.length),O=e.colorCounter,e.colorCounter++,e.colorCounter===E&&(e.colorCounter=0)):(x||(y=e.color),O=e.colorIndex),this.colorIndex=$(this.options.colorIndex,O),this.color=$(this.options.color,y)}setNestedProperty(e,p,x){return x.split(".").reduce(function(e,x,y,b){let E=b.length-1===y;return e[x]=E?p:q(e[x],!0)?e[x]:{},e[x]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){let p=this.series,x=p.tooltipOptions,y=$(x.valueDecimals,""),b=x.valuePrefix||"",E=x.valueSuffix||"";return p.chart.styledMode&&(e=p.chart.tooltip.styledModeFormat(e)),(p.pointArrayMap||["y"]).forEach(function(p){p="{point."+p,(b||E)&&(e=e.replace(RegExp(p+"}","g"),b+p+"}"+E)),e=e.replace(RegExp(p+"}","g"),p+":,."+y+"f}")}),L(e,{point:this,series:this.series},p.chart)}update(e,p,x,y){let b;let E=this,O=E.series,L=E.graphic,D=O.chart,j=O.options;function R(){E.applyOptions(e);let y=L&&E.hasMockGraphic,R=null===E.y?!y:y;L&&R&&(E.graphic=L.destroy(),delete E.hasMockGraphic),q(e,!0)&&(L&&L.element&&e&&e.marker&&void 0!==e.marker.symbol&&(E.graphic=L.destroy()),e?.dataLabels&&E.dataLabel&&(E.dataLabel=E.dataLabel.destroy())),b=E.index,O.updateParallelArrays(E,b),j.data[b]=q(j.data[b],!0)||q(e,!0)?E.options:$(e,j.data[b]),O.isDirty=O.isDirtyData=!0,!O.fixedBox&&O.hasCartesianSeries&&(D.isDirtyBox=!0),"point"===j.legendType&&(D.isDirtyLegend=!0),p&&D.redraw(x)}p=$(p,!0),!1===y?R():E.firePointEvent("update",{options:e},R)}remove(e,p){this.series.removePoint(this.series.data.indexOf(this),e,p)}select(e,p){let x=this,y=x.series,b=y.chart;e=$(e,!x.selected),this.selectedStaging=e,x.firePointEvent(e?"select":"unselect",{accumulate:p},function(){x.selected=x.options.selected=e,y.options.data[y.data.indexOf(x)]=x.options,x.setState(e&&"select"),p||b.getSelectedPoints().forEach(function(e){let p=e.series;e.selected&&e!==x&&(e.selected=e.options.selected=!1,p.options.data[p.data.indexOf(e)]=e.options,e.setState(b.hoverPoints&&p.options.inactiveOtherPoints?"inactive":""),e.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(e){let{inverted:p,pointer:x}=this.series.chart;x&&(e=e?x.normalize(e):x.getChartCoordinatesFromPoint(this,p),x.runPointActions(e,this))}onMouseOut(){let e=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach(function(e){e.setState()}),e.hoverPoints=e.hoverPoint=null}manageEvent(e){let p=K(this.series.options.point,this.options),x=p.events?.[e];Y(x)&&(!this.hcEvents?.[e]||this.hcEvents?.[e]?.map(e=>e.fn).indexOf(x)===-1)?(D(this,e,x),this.hasImportedEvents=!0):this.hasImportedEvents&&!x&&this.hcEvents?.[e]&&(Z(this,e),delete this.hcEvents[e],Object.keys(this.hcEvents)||(this.hasImportedEvents=!1))}setState(p,x){let y=this.series,b=this.state,E=y.options.states[p||"normal"]||{},L=O.plotOptions[y.type].marker&&y.options.marker,D=L&&!1===L.enabled,j=L&&L.states&&L.states[p||"normal"]||{},R=!1===j.enabled,H=this.marker||{},U=y.chart,Y=L&&y.markerAttribs,q=y.halo,K,_,Z,J=y.stateMarkerGraphic,tt;if((p=p||"")===this.state&&!x||this.selected&&"select"!==p||!1===E.enabled||p&&(R||D&&!1===j.enabled)||p&&H.states&&H.states[p]&&!1===H.states[p].enabled)return;if(this.state=p,Y&&(K=y.markerAttribs(this,p)),this.graphic&&!this.hasMockGraphic){if(b&&this.graphic.removeClass("highcharts-point-"+b),p&&this.graphic.addClass("highcharts-point-"+p),!U.styledMode){_=y.pointAttribs(this,p),Z=$(U.options.chart.animation,E.animation);let e=_.opacity;y.options.inactiveOtherPoints&&V(e)&&(this.dataLabels||[]).forEach(function(p){p&&!p.hasClass("highcharts-data-label-hidden")&&(p.animate({opacity:e},Z),p.connector&&p.connector.animate({opacity:e},Z))}),this.graphic.animate(_,Z)}K&&this.graphic.animate(K,$(U.options.chart.animation,j.animation,L.animation)),J&&J.hide()}else p&&j&&(tt=H.symbol||y.symbol,J&&J.currentSymbol!==tt&&(J=J.destroy()),K&&(J?J[x?"animate":"attr"]({x:K.x,y:K.y}):tt&&(y.stateMarkerGraphic=J=U.renderer.symbol(tt,K.x,K.y,K.width,K.height).add(y.markerGroup),J.currentSymbol=tt)),!U.styledMode&&J&&"inactive"!==this.state&&J.attr(y.pointAttribs(this,p))),J&&(J[p&&this.isInside?"show":"hide"](),J.element.point=this,J.addClass(this.getClassName(),!0));let te=E.halo,ti=this.graphic||J,ts=ti&&ti.visibility||"inherit";te&&te.size&&ti&&"hidden"!==ts&&!this.isCluster?(q||(y.halo=q=U.renderer.path().add(ti.parentGroup)),q.show()[x?"animate":"attr"]({d:this.haloPath(te.size)}),q.attr({class:"highcharts-halo highcharts-color-"+$(this.colorIndex,y.colorIndex)+(this.className?" "+this.className:""),visibility:ts,zIndex:-1}),q.point=this,U.styledMode||q.attr(z({fill:this.color||y.color,"fill-opacity":te.opacity},e.filterUserAttributes(te.attributes||{})))):q?.point?.haloPath&&!q.point.destroyed&&q.animate({d:q.point.haloPath(0)},null,q.hide),F(this,"afterSetState",{state:p})}haloPath(e){let p=this.pos();return p?this.series.chart.renderer.symbols.circle(j(p[0],1)-e,p[1]-e,2*e,2*e):[]}};return M}),x(p,"Core/Pointer.js",[p["Core/Color/Color.js"],p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p,x){var y;let{parse:b}=e,{charts:E,composed:O,isTouchDevice:L}=p,{addEvent:D,attr:j,css:R,extend:z,find:F,fireEvent:H,isNumber:U,isObject:Y,objectEach:V,offset:q,pick:K,pushUnique:$,splat:_}=x;let S=class S{applyInactiveState(e){let p=[],x;(e||[]).forEach(function(e){x=e.series,p.push(x),x.linkedParent&&p.push(x.linkedParent),x.linkedSeries&&(p=p.concat(x.linkedSeries)),x.navigatorSeries&&p.push(x.navigatorSeries)}),this.chart.series.forEach(function(e){-1===p.indexOf(e)?e.setState("inactive",!0):e.options.inactiveOtherPoints&&e.setAllPointsToState("inactive")})}destroy(){let e=this;this.eventsToUnbind.forEach(e=>e()),this.eventsToUnbind=[],!p.chartCount&&(S.unbindDocumentMouseUp&&(S.unbindDocumentMouseUp=S.unbindDocumentMouseUp()),S.unbindDocumentTouchEnd&&(S.unbindDocumentTouchEnd=S.unbindDocumentTouchEnd())),clearInterval(e.tooltipTimeout),V(e,function(p,x){e[x]=void 0})}getSelectionMarkerAttrs(e,p){let x={args:{chartX:e,chartY:p},attrs:{},shapeType:"rect"};return H(this,"getSelectionMarkerAttrs",x,x=>{let y;let{chart:b,zoomHor:E,zoomVert:O}=this,{mouseDownX:L=0,mouseDownY:D=0}=b,j=x.attrs;j.x=b.plotLeft,j.y=b.plotTop,j.width=E?1:b.plotWidth,j.height=O?1:b.plotHeight,E&&(y=e-L,j.width=Math.max(1,Math.abs(y)),j.x=(y>0?0:y)+L),O&&(y=p-D,j.height=Math.max(1,Math.abs(y)),j.y=(y>0?0:y)+D)}),x}drag(e){let{chart:p}=this,{mouseDownX:x=0,mouseDownY:y=0}=p,{panning:E,panKey:O,selectionMarkerFill:L}=p.options.chart,D=p.plotLeft,j=p.plotTop,R=p.plotWidth,z=p.plotHeight,F=Y(E)?E.enabled:E,H=O&&e[`${O}Key`],U=e.chartX,V=e.chartY,q,K=this.selectionMarker;if((!K||!K.touch)&&(UD+R&&(U=D+R),Vj+z&&(V=j+z),this.hasDragged=Math.sqrt(Math.pow(x-U,2)+Math.pow(y-V,2)),this.hasDragged>10)){q=p.isInsidePlot(x-D,y-j,{visiblePlotOnly:!0});let{shapeType:O,attrs:R}=this.getSelectionMarkerAttrs(U,V);(p.hasCartesianSeries||p.mapView)&&this.hasZoom&&q&&!H&&!K&&(this.selectionMarker=K=p.renderer[O](),K.attr({class:"highcharts-selection-marker",zIndex:7}).add(),p.styledMode||K.attr({fill:L||b("#334eff").setOpacity(.25).get()})),K&&K.attr(R),q&&!K&&F&&p.pan(e,E)}}dragStart(e){let p=this.chart;p.mouseIsDown=e.type,p.cancelClick=!1,p.mouseDownX=e.chartX,p.mouseDownY=e.chartY}getSelectionBox(e){let p={args:{marker:e},result:e.getBBox()};return H(this,"getSelectionBox",p),p.result}drop(e){let p;let{chart:x,selectionMarker:y}=this;for(let e of x.axes)e.isPanning&&(e.isPanning=!1,(e.options.startOnTick||e.options.endOnTick||e.series.some(e=>e.boosted))&&(e.forceRedraw=!0,e.setExtremes(e.userMin,e.userMax,!1),p=!0));if(p&&x.redraw(),y&&e){if(this.hasDragged){let p=this.getSelectionBox(y);x.transform({axes:x.axes.filter(e=>e.zoomEnabled&&("xAxis"===e.coll&&this.zoomX||"yAxis"===e.coll&&this.zoomY)),selection:{originalEvent:e,xAxis:[],yAxis:[],...p},from:p})}U(x.index)&&(this.selectionMarker=y.destroy())}x&&U(x.index)&&(R(x.container,{cursor:x._cursor}),x.cancelClick=this.hasDragged>10,x.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(e,p,x){let y;return e.forEach(function(e){var b;let E,O,L,D=!(e.noSharedTooltip&&p)&&0>e.options.findNearestPointBy.indexOf("y"),j=e.searchPoint(x,D);Y(j,!0)&&j.series&&(!Y(y,!0)||(E=(b=y).distX-j.distX,O=b.dist-j.dist,L=j.series.group?.zIndex-b.series.group?.zIndex,(0!==E&&p?E:0!==O?O:0!==L?L:b.series.index>j.series.index?-1:1)>0))&&(y=j)}),y}getChartCoordinatesFromPoint(e,p){let{xAxis:x,yAxis:y}=e.series,b=e.shapeArgs;if(x&&y){let E=e.clientX??e.plotX??0,O=e.plotY||0;return e.isNode&&b&&U(b.x)&&U(b.y)&&(E=b.x,O=b.y),p?{chartX:y.len+y.pos-O,chartY:x.len+x.pos-E}:{chartX:E+x.pos,chartY:O+y.pos}}if(b&&b.x&&b.y)return{chartX:b.x,chartY:b.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:e}=this.chart,p=q(e);this.chartPosition={left:p.left,top:p.top,scaleX:1,scaleY:1};let{offsetHeight:x,offsetWidth:y}=e;return y>2&&x>2&&(this.chartPosition.scaleX=p.width/y,this.chartPosition.scaleY=p.height/x),this.chartPosition}getCoordinates(e){let p={xAxis:[],yAxis:[]};for(let x of this.chart.axes)p[x.isXAxis?"xAxis":"yAxis"].push({axis:x,value:x.toValue(e[x.horiz?"chartX":"chartY"])});return p}getHoverData(e,p,x,y,b,E){let O=[],L=function(e){return e.visible&&!(!b&&e.directTouch)&&K(e.options.enableMouseTracking,!0)},D=p,j,R={chartX:E?E.chartX:void 0,chartY:E?E.chartY:void 0,shared:b};H(this,"beforeGetHoverData",R),j=D&&!D.stickyTracking?[D]:x.filter(e=>e.stickyTracking&&(R.filter||L)(e));let z=y&&e||!E?e:this.findNearestKDPoint(j,b,E);return D=z&&z.series,z&&(b&&!D.noSharedTooltip?(j=x.filter(function(e){return R.filter?R.filter(e):L(e)&&!e.noSharedTooltip})).forEach(function(e){let p=F(e.points,function(e){return e.x===z.x&&!e.isNull});Y(p)&&(e.boosted&&e.boost&&(p=e.boost.getPoint(p)),O.push(p))}):O.push(z)),H(this,"afterGetHoverData",R={hoverPoint:z}),{hoverPoint:R.hoverPoint,hoverSeries:D,hoverPoints:O}}getPointFromEvent(e){let p=e.target,x;for(;p&&!x;)x=p.point,p=p.parentNode;return x}onTrackerMouseOut(e){let p=this.chart,x=e.relatedTarget,y=p.hoverSeries;this.isDirectTouch=!1,!y||!x||y.stickyTracking||this.inClass(x,"highcharts-tooltip")||this.inClass(x,"highcharts-series-"+y.index)&&this.inClass(x,"highcharts-tracker")||y.onMouseOut()}inClass(e,p){let x=e,y;for(;x;){if(y=j(x,"class")){if(-1!==y.indexOf(p))return!0;if(-1!==y.indexOf("highcharts-container"))return!1}x=x.parentElement}}constructor(e,p){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=p,this.chart=e,this.runChartClick=!!p.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),H(this,"afterInit")}normalize(e,p){let x=e.touches,y=x?x.length?x.item(0):K(x.changedTouches,e.changedTouches)[0]:e;p||(p=this.getChartPosition());let b=y.pageX-p.left,E=y.pageY-p.top;return z(e,{chartX:Math.round(b/=p.scaleX),chartY:Math.round(E/=p.scaleY)})}onContainerClick(e){let p=this.chart,x=p.hoverPoint,y=this.normalize(e),b=p.plotLeft,E=p.plotTop;!p.cancelClick&&(x&&this.inClass(y.target,"highcharts-tracker")?(H(x.series,"click",z(y,{point:x})),p.hoverPoint&&x.firePointEvent("click",y)):(z(y,this.getCoordinates(y)),p.isInsidePlot(y.chartX-b,y.chartY-E,{visiblePlotOnly:!0})&&H(p,"click",y)))}onContainerMouseDown(e){let x=(1&(e.buttons||e.button))==1;e=this.normalize(e),p.isFirefox&&0!==e.button&&this.onContainerMouseMove(e),(void 0===e.button||x)&&(this.zoomOption(e),x&&e.preventDefault?.(),this.dragStart(e))}onContainerMouseLeave(e){let{pointer:p}=E[K(S.hoverChartIndex,-1)]||{};e=this.normalize(e),this.onContainerMouseMove(e),p&&e.relatedTarget&&!this.inClass(e.relatedTarget,"highcharts-tooltip")&&(p.reset(),p.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(e){let p=this.chart,x=p.tooltip,y=this.normalize(e);this.setHoverChartIndex(e),("mousedown"===p.mouseIsDown||this.touchSelect(y))&&this.drag(y),!p.openMenu&&(this.inClass(y.target,"highcharts-tracker")||p.isInsidePlot(y.chartX-p.plotLeft,y.chartY-p.plotTop,{visiblePlotOnly:!0}))&&!(x&&x.shouldStickOnContact(y))&&(this.inClass(y.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(y))}onDocumentTouchEnd(e){this.onDocumentMouseUp(e)}onContainerTouchMove(e){this.touchSelect(e)?this.onContainerMouseMove(e):this.touch(e)}onContainerTouchStart(e){this.touchSelect(e)?this.onContainerMouseDown(e):(this.zoomOption(e),this.touch(e,!0))}onDocumentMouseMove(e){let p=this.chart,x=p.tooltip,y=this.chartPosition,b=this.normalize(e,y);!y||p.isInsidePlot(b.chartX-p.plotLeft,b.chartY-p.plotTop,{visiblePlotOnly:!0})||x&&x.shouldStickOnContact(b)||this.inClass(b.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(e){E[K(S.hoverChartIndex,-1)]?.pointer?.drop(e)}pinch(e){let p=this,{chart:x,hasZoom:y,lastTouches:b}=p,E=[].map.call(e.touches||[],e=>p.normalize(e)),O=E.length,L=1===O&&(p.inClass(e.target,"highcharts-tracker")&&x.runTrackerClick||p.runChartClick),D=x.tooltip,j=1===O&&K(D?.options.followTouchMove,!0);O>1?p.initiated=!0:j&&(p.initiated=!1),y&&p.initiated&&!L&&!1!==e.cancelable&&e.preventDefault(),"touchstart"===e.type?(p.pinchDown=E,p.res=!0):j?this.runPointActions(p.normalize(e)):b&&(H(x,"touchpan",{originalEvent:e,touches:E},()=>{let p=e=>{let p=e[0],x=e[1]||p;return{x:p.chartX,y:p.chartY,width:x.chartX-p.chartX,height:x.chartY-p.chartY}};x.transform({axes:x.axes.filter(e=>e.zoomEnabled&&(this.zoomHor&&e.horiz||this.zoomVert&&!e.horiz)),to:p(E),from:p(b),trigger:e.type})}),p.res&&(p.res=!1,this.reset(!1,0))),p.lastTouches=E}reset(e,p){let x=this.chart,y=x.hoverSeries,b=x.hoverPoint,E=x.hoverPoints,O=x.tooltip,L=O&&O.shared?E:b;e&&L&&_(L).forEach(function(p){p.series.isCartesian&&void 0===p.plotX&&(e=!1)}),e?O&&L&&_(L).length&&(O.refresh(L),O.shared&&E?E.forEach(function(e){e.setState(e.state,!0),e.series.isCartesian&&(e.series.xAxis.crosshair&&e.series.xAxis.drawCrosshair(null,e),e.series.yAxis.crosshair&&e.series.yAxis.drawCrosshair(null,e))}):b&&(b.setState(b.state,!0),x.axes.forEach(function(e){e.crosshair&&b.series[e.coll]===e&&e.drawCrosshair(null,b)}))):(b&&b.onMouseOut(),E&&E.forEach(function(e){e.setState()}),y&&y.onMouseOut(),O&&O.hide(p),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),x.axes.forEach(function(e){e.hideCrosshair()}),x.hoverPoints=x.hoverPoint=void 0)}runPointActions(e,p,x){let y=this.chart,b=y.series,O=y.tooltip&&y.tooltip.options.enabled?y.tooltip:void 0,L=!!O&&O.shared,j=p||y.hoverPoint,R=j&&j.series||y.hoverSeries,z=(!e||"touchmove"!==e.type)&&(!!p||R&&R.directTouch&&this.isDirectTouch),H=this.getHoverData(j,R,b,z,L,e);j=H.hoverPoint,R=H.hoverSeries;let U=H.hoverPoints,Y=R&&R.tooltipOptions.followPointer&&!R.tooltipOptions.split,V=L&&R&&!R.noSharedTooltip;if(j&&(x||j!==y.hoverPoint||O&&O.isHidden)){if((y.hoverPoints||[]).forEach(function(e){-1===U.indexOf(e)&&e.setState()}),y.hoverSeries!==R&&R.onMouseOver(),this.applyInactiveState(U),(U||[]).forEach(function(e){e.setState("hover")}),y.hoverPoint&&y.hoverPoint.firePointEvent("mouseOut"),!j.series)return;y.hoverPoints=U,y.hoverPoint=j,j.firePointEvent("mouseOver",void 0,()=>{O&&j&&O.refresh(V?U:j,e)})}else if(Y&&O&&!O.isHidden){let p=O.getAnchor([{}],e);y.isInsidePlot(p[0],p[1],{visiblePlotOnly:!0})&&O.updatePosition({plotX:p[0],plotY:p[1]})}this.unDocMouseMove||(this.unDocMouseMove=D(y.container.ownerDocument,"mousemove",e=>E[S.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(e)),this.eventsToUnbind.push(this.unDocMouseMove)),y.axes.forEach(function(p){let x;let b=K((p.crosshair||{}).snap,!0);!b||(x=y.hoverPoint)&&x.series[p.coll]===p||(x=F(U,e=>e.series&&e.series[p.coll]===p)),x||!b?p.drawCrosshair(e,x):p.hideCrosshair()})}setDOMEvents(){let e=this.chart.container,p=e.ownerDocument;e.onmousedown=this.onContainerMouseDown.bind(this),e.onmousemove=this.onContainerMouseMove.bind(this),e.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(D(e,"mouseenter",this.onContainerMouseEnter.bind(this)),D(e,"mouseleave",this.onContainerMouseLeave.bind(this))),S.unbindDocumentMouseUp||(S.unbindDocumentMouseUp=D(p,"mouseup",this.onDocumentMouseUp.bind(this)));let x=this.chart.renderTo.parentElement;for(;x&&"BODY"!==x.tagName;)this.eventsToUnbind.push(D(x,"scroll",()=>{delete this.chartPosition})),x=x.parentElement;this.eventsToUnbind.push(D(e,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),D(e,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),S.unbindDocumentTouchEnd||(S.unbindDocumentTouchEnd=D(p,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),D(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){if(!L)return;let e=this.pointerCaptureEventsToUnbind,p=this.chart,x=p.container,y=K(p.options.tooltip?.followTouchMove,!0)&&p.series.some(e=>e.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&y?(e.push(D(x,"pointerdown",e=>{e.target?.hasPointerCapture(e.pointerId)&&e.target?.releasePointerCapture(e.pointerId)}),D(x,"pointermove",e=>{p.pointer?.getPointFromEvent(e)?.onMouseOver(e)})),p.styledMode||R(x,{"touch-action":"none"}),x.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!y&&(e.forEach(e=>e()),e.length=0,p.styledMode||R(x,{"touch-action":K(p.options.chart.style?.["touch-action"],"manipulation")}),x.className=x.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(e){let x=this.chart,y=p.charts[K(S.hoverChartIndex,-1)];y&&y!==x&&y.pointer?.onContainerMouseLeave(e||{relatedTarget:x.container}),y&&y.mouseIsDown||(S.hoverChartIndex=x.index)}touch(e,p){let x;let{chart:y,pinchDown:b=[]}=this;this.setHoverChartIndex(),1===e.touches.length?(e=this.normalize(e),y.isInsidePlot(e.chartX-y.plotLeft,e.chartY-y.plotTop,{visiblePlotOnly:!0})&&!y.openMenu?(p&&this.runPointActions(e),"touchmove"===e.type&&(x=!!b[0]&&Math.pow(b[0].chartX-e.chartX,2)+Math.pow(b[0].chartY-e.chartY,2)>=16),K(x,!0)&&this.pinch(e)):p&&this.reset()):2===e.touches.length&&this.pinch(e)}touchSelect(e){return!!(this.chart.zooming.singleTouch&&e.touches&&1===e.touches.length)}zoomOption(e){let p=this.chart,x=p.inverted,y=p.zooming.type||"",b,E;/touch/.test(e.type)&&(y=K(p.zooming.pinchType,y)),this.zoomX=b=/x/.test(y),this.zoomY=E=/y/.test(y),this.zoomHor=b&&!x||E&&x,this.zoomVert=E&&!x||b&&x,this.hasZoom=b||E}};return(y=S||(S={})).compose=function(e){$(O,"Core.Pointer")&&D(e,"beforeRender",function(){this.pointer=new y(this,this.options)})},S}),x(p,"Core/Legend/Legend.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Templating.js"],p["Core/Globals.js"],p["Core/Series/Point.js"],p["Core/Renderer/RendererUtilities.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E){var O;let{animObject:L,setAnimation:D}=e,{format:j}=p,{composed:R,marginNames:z}=x,{distribute:F}=b,{addEvent:H,createElement:U,css:Y,defined:V,discardElement:q,find:K,fireEvent:$,isNumber:_,merge:Z,pick:J,pushUnique:tt,relativeLength:te,stableSort:ti,syncTimeout:ts}=E;let T=class T{constructor(e,p){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=e,this.setOptions(p),p.enabled&&(this.render(),H(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),H(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(e){let p=J(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=Z(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=p,this.initialItemY=p-5,this.symbolWidth=J(e.symbolWidth,16),this.pages=[],this.proximate="proximate"===e.layout&&!this.chart.inverted,this.baseline=void 0}update(e,p){let x=this.chart;this.setOptions(Z(!0,this.options,e)),this.destroy(),x.isDirtyLegend=x.isDirtyBox=!0,J(p,!0)&&x.redraw(),$(this,"afterUpdate",{redraw:p})}colorizeItem(e,p){let{area:x,group:y,label:b,line:E,symbol:O}=e.legendItem||{};if(y?.[p?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:y={}}=this,L=y.color,{fillColor:D,fillOpacity:j,lineColor:R,marker:z}=e.options,F=e=>(!p&&(e.fill&&(e.fill=L),e.stroke&&(e.stroke=L)),e);b?.css(Z(p?this.itemStyle:y)),E?.attr(F({stroke:R||e.color})),O&&O.attr(F(z&&O.isMarker?e.pointAttribs():{fill:e.color})),x?.attr(F({fill:D||e.color,"fill-opacity":D?1:j??.75}))}$(this,"afterColorizeItem",{item:e,visible:p})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(e){let{group:p,x:x=0,y:y=0}=e.legendItem||{},b=this.options,E=b.symbolPadding,O=!b.rtl,L=e.checkbox;if(p&&p.element){let b={translateX:O?x:this.legendWidth-x-2*E-4,translateY:y};p[V(p.translateY)?"animate":"attr"](b,void 0,()=>{$(this,"afterPositionItem",{item:e})})}L&&(L.x=x,L.y=y)}destroyItem(e){let p=e.checkbox,x=e.legendItem||{};for(let e of["group","label","line","symbol"])x[e]&&(x[e]=x[e].destroy());p&&q(p),e.legendItem=void 0}destroy(){for(let e of this.getAllItems())this.destroyItem(e);for(let e of["clipRect","up","down","pager","nav","box","title","group"])this[e]&&(this[e]=this[e].destroy());this.display=null}positionCheckboxes(){let e;let p=this.group&&this.group.alignAttr,x=this.clipHeight||this.legendHeight,y=this.titleHeight;p&&(e=p.translateY,this.allItems.forEach(function(b){let E;let O=b.checkbox;O&&(E=e+y+O.y+(this.scrollOffset||0)+3,Y(O,{left:p.translateX+b.checkboxOffset+O.x-20+"px",top:E+"px",display:this.proximate||E>e-6&&E1.5*tt?_.height:tt))}layoutItem(e){let p=this.options,x=this.padding,y="horizontal"===p.layout,b=e.itemHeight,E=this.itemMarginBottom,O=this.itemMarginTop,L=y?J(p.itemDistance,20):0,D=this.maxLegendWidth,j=p.alignColumns&&this.totalItemWidth>D?this.maxItemWidth:e.itemWidth,R=e.legendItem||{};y&&this.itemX-x+j>D&&(this.itemX=x,this.lastLineHeight&&(this.itemY+=O+this.lastLineHeight+E),this.lastLineHeight=0),this.lastItemY=O+this.itemY+E,this.lastLineHeight=Math.max(b,this.lastLineHeight),R.x=this.itemX,R.y=this.itemY,y?this.itemX+=j:(this.itemY+=O+b+E,this.lastLineHeight=b),this.offsetWidth=this.widthOption||Math.max((y?this.itemX-x-(e.checkbox?0:L):j)+x,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(p){let x=p&&p.options;p&&J(x.showInLegend,!V(x.linkedTo)&&void 0,!0)&&(e=e.concat((p.legendItem||{}).labels||("point"===x.legendType?p.data:p)))}),$(this,"afterGetAllItems",{allItems:e}),e}getAlignment(){let e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)}adjustMargins(e,p){let x=this.chart,y=this.options,b=this.getAlignment();b&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(E,O){E.test(b)&&!V(e[O])&&(x[z[O]]=Math.max(x[z[O]],x.legend[(O+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][O]*y[O%2?"x":"y"]+J(y.margin,12)+p[O]+(x.titleOffset[O]||0)))})}proximatePositions(){let e;let p=this.chart,x=[],y="left"===this.options.align;for(let b of(this.allItems.forEach(function(e){let b,E,O=y,L,D;e.yAxis&&(e.xAxis.options.reversed&&(O=!O),e.points&&(b=K(O?e.points:e.points.slice(0).reverse(),function(e){return _(e.plotY)})),E=this.itemMarginTop+e.legendItem.label.getBBox().height+this.itemMarginBottom,D=e.yAxis.top-p.plotTop,L=e.visible?(b?b.plotY:e.yAxis.height)+(D-.3*E):D+e.yAxis.height,x.push({target:L,size:E,item:e}))},this),F(x,p.plotHeight)))e=b.item.legendItem||{},_(b.pos)&&(e.y=p.plotTop-p.spacing[0]+b.pos)}render(){let e=this.chart,p=e.renderer,x=this.options,y=this.padding,b=this.getAllItems(),E,O,L,D=this.group,j,R=this.box;this.itemX=y,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=te(x.width,e.spacingBox.width-y),j=e.spacingBox.width-2*y-x.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(j/=2),this.maxLegendWidth=this.widthOption||j,D||(this.group=D=p.g("legend").addClass(x.className||"").attr({zIndex:7}).add(),this.contentGroup=p.g().attr({zIndex:1}).add(D),this.scrollGroup=p.g().add(this.contentGroup)),this.renderTitle(),ti(b,(e,p)=>(e.options&&e.options.legendIndex||0)-(p.options&&p.options.legendIndex||0)),x.reversed&&b.reverse(),this.allItems=b,this.display=E=!!b.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,b.forEach(this.renderItem,this),b.forEach(this.layoutItem,this),O=(this.widthOption||this.offsetWidth)+y,L=this.lastItemY+this.lastLineHeight+this.titleHeight,L=this.handleOverflow(L)+y,R||(this.box=R=p.rect().addClass("highcharts-legend-box").attr({r:x.borderRadius}).add(D)),e.styledMode||R.attr({stroke:x.borderColor,"stroke-width":x.borderWidth||0,fill:x.backgroundColor||"none"}).shadow(x.shadow),O>0&&L>0&&R[R.placed?"animate":"attr"](R.crisp.call({},{x:0,y:0,width:O,height:L},R.strokeWidth())),D[E?"show":"hide"](),e.styledMode&&"none"===D.getStyle("display")&&(O=L=0),this.legendWidth=O,this.legendHeight=L,E&&this.align(),this.proximate||this.positionItems(),$(this,"afterRender")}align(e=this.chart.spacingBox){let p=this.chart,x=this.options,y=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&p.titleOffset[0]>0?y+=p.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&p.titleOffset[2]>0&&(y-=p.titleOffset[2]),y!==e.y&&(e=Z(e,{y:y})),p.hasRendered||(this.group.placed=!1),this.group.align(Z(x,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":x.verticalAlign}),!0,e)}handleOverflow(e){let p=this,x=this.chart,y=x.renderer,b=this.options,E=b.y,O="top"===b.verticalAlign,L=this.padding,D=b.maxHeight,j=b.navigation,R=J(j.animation,!0),z=j.arrowSize||12,F=this.pages,H=this.allItems,U=function(e){"number"==typeof e?Z.attr({height:e}):Z&&(p.clipRect=Z.destroy(),p.contentGroup.clip()),p.contentGroup.div&&(p.contentGroup.div.style.clip=e?"rect("+L+"px,9999px,"+(L+e)+"px,0)":"auto")},Y=function(e){return p[e]=y.circle(0,0,1.3*z).translate(z/2,z/2).add(_),x.styledMode||p[e].attr("fill","rgba(0,0,0,0.0001)"),p[e]},V,q,K,$=x.spacingBox.height+(O?-E:E)-L,_=this.nav,Z=this.clipRect;return"horizontal"!==b.layout||"middle"===b.verticalAlign||b.floating||($/=2),D&&($=Math.min($,D)),F.length=0,e&&$>0&&e>$&&!1!==j.enabled?(this.clipHeight=V=Math.max($-20-this.titleHeight-L,0),this.currentPage=J(this.currentPage,1),this.fullHeight=e,H.forEach((e,p)=>{let x=(K=e.legendItem||{}).y||0,y=Math.round(K.label.getBBox().height),b=F.length;(!b||x-F[b-1]>V&&(q||x)!==F[b-1])&&(F.push(q||x),b++),K.pageIx=b-1,q&&((H[p-1].legendItem||{}).pageIx=b-1),p===H.length-1&&x+y-F[b-1]>V&&x>F[b-1]&&(F.push(x),K.pageIx=b),x!==q&&(q=x)}),Z||(Z=p.clipRect=y.clipRect(0,L-2,9999,0),p.contentGroup.clip(Z)),U(V),_||(this.nav=_=y.g().attr({zIndex:1}).add(this.group),this.up=y.symbol("triangle",0,0,z,z).add(_),Y("upTracker").on("click",function(){p.scroll(-1,R)}),this.pager=y.text("",15,10).addClass("highcharts-legend-navigation"),!x.styledMode&&j.style&&this.pager.css(j.style),this.pager.add(_),this.down=y.symbol("triangle-down",0,0,z,z).add(_),Y("downTracker").on("click",function(){p.scroll(1,R)})),p.scroll(0),e=$):_&&(U(),this.nav=_.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}scroll(e,p){let x=this.chart,y=this.pages,b=y.length,E=this.clipHeight,O=this.options.navigation,j=this.pager,R=this.padding,z=this.currentPage+e;z>b&&(z=b),z>0&&(void 0!==p&&D(p,x),this.nav.attr({translateX:R,translateY:E+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(e){e.attr({class:1===z?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),j.attr({text:z+"/"+b}),[this.down,this.downTracker].forEach(function(e){e.attr({x:18+this.pager.getBBox().width,class:z===b?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),x.styledMode||(this.up.attr({fill:1===z?O.inactiveColor:O.activeColor}),this.upTracker.css({cursor:1===z?"default":"pointer"}),this.down.attr({fill:z===b?O.inactiveColor:O.activeColor}),this.downTracker.css({cursor:z===b?"default":"pointer"})),this.scrollOffset=-y[z-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=z,this.positionCheckboxes(),ts(()=>{$(this,"afterScroll",{currentPage:z})},L(J(p,x.renderer.globalAnimation,!0)).duration))}setItemEvents(e,p,x){let b=this,E=e.legendItem||{},O=b.chart.renderer.boxWrapper,L=e instanceof y,D="highcharts-legend-"+(L?"point":"series")+"-active",j=b.chart.styledMode,R=x?[p,E.symbol]:[E.group],z=p=>{b.allItems.forEach(x=>{e!==x&&[x].concat(x.linkedSeries||[]).forEach(e=>{e.setState(p,!L)})})};for(let x of R)x&&x.on("mouseover",function(){e.visible&&z("inactive"),e.setState("hover"),e.visible&&O.addClass(D),j||p.css(b.options.itemHoverStyle)}).on("mouseout",function(){b.chart.styledMode||p.css(Z(e.visible?b.itemStyle:b.itemHiddenStyle)),z(""),O.removeClass(D),e.setState()}).on("click",function(p){let x="legendItemClick",y=function(){e.setVisible&&e.setVisible(),z(e.visible?"inactive":"")};O.removeClass(D),p={browserEvent:p},e.firePointEvent?e.firePointEvent(x,p,y):$(e,x,p,y)})}createCheckboxForItem(e){e.checkbox=U("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),H(e.checkbox,"click",function(p){let x=p.target;$(e.series||e,"checkboxClick",{checked:x.checked,item:e},function(){e.select()})})}};return(O=T||(T={})).compose=function(e){tt(R,"Core.Legend")&&H(e,"beforeMargins",function(){this.legend=new O(this,this.options.legend)})},T}),x(p,"Core/Legend/LegendSymbol.js",[p["Core/Utilities.js"]],function(e){var p;let{extend:x,merge:y,pick:b}=e;return function(e){function p(e,p,E){let O=this.legendItem=this.legendItem||{},{chart:L,options:D}=this,{baseline:j=0,symbolWidth:R,symbolHeight:z}=e,F=this.symbol||"circle",H=z/2,U=L.renderer,Y=O.group,V=j-Math.round(z*(E?.4:.3)),q={},K,$=D.marker,_=0;if(L.styledMode||(q["stroke-width"]=Math.min(D.lineWidth||0,24),D.dashStyle?q.dashstyle=D.dashStyle:"square"===D.linecap||(q["stroke-linecap"]="round")),O.line=U.path().addClass("highcharts-graph").attr(q).add(Y),E&&(O.area=U.path().addClass("highcharts-area").add(Y)),q["stroke-linecap"]&&(_=Math.min(O.line.strokeWidth(),R)/2),R){let e=[["M",_,V],["L",R-_,V]];O.line.attr({d:e}),O.area?.attr({d:[...e,["L",R-_,j],["L",_,j]]})}if($&&!1!==$.enabled&&R){let e=Math.min(b($.radius,H),H);0===F.indexOf("url")&&($=y($,{width:z,height:z}),e=0),O.symbol=K=U.symbol(F,R/2-e,V-e,2*e,2*e,x({context:"legend"},$)).addClass("highcharts-point").add(Y),K.isMarker=!0}}e.areaMarker=function(e,x){p.call(this,e,x,!0)},e.lineMarker=p,e.rectangle=function(e,p){let x=p.legendItem||{},y=e.options,E=e.symbolHeight,O=y.squareSymbol,L=O?E:e.symbolWidth;x.symbol=this.chart.renderer.rect(O?(e.symbolWidth-E)/2:0,e.baseline-E+1,L,E,b(e.options.symbolRadius,E/2)).addClass("highcharts-point").attr({zIndex:3}).add(x.group)}}(p||(p={})),p}),x(p,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:e}=this.series.chart;return"number"!=typeof this.y?"":e(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),x(p,"Core/Series/SeriesRegistry.js",[p["Core/Globals.js"],p["Core/Defaults.js"],p["Core/Series/Point.js"],p["Core/Utilities.js"]],function(e,p,x,y){var b;let{defaultOptions:E}=p,{extend:O,extendClass:L,merge:D}=y;return function(p){function y(e,y){let b=E.plotOptions||{},O=y.defaultOptions,L=y.prototype;return L.type=e,L.pointClass||(L.pointClass=x),!p.seriesTypes[e]&&(O&&(b[e]=O),p.seriesTypes[e]=y,!0)}p.seriesTypes=e.seriesTypes,p.registerSeriesType=y,p.seriesType=function(e,b,j,R,z){let F=E.plotOptions||{};if(b=b||"",F[e]=D(F[b],j),delete p.seriesTypes[e],y(e,L(p.seriesTypes[b]||function(){},R)),p.seriesTypes[e].prototype.type=e,z){let s=class s extends x{};O(s.prototype,z),p.seriesTypes[e].prototype.pointClass=s}return p.seriesTypes[e]}}(b||(b={})),b}),x(p,"Core/Series/Series.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Defaults.js"],p["Core/Foundation.js"],p["Core/Globals.js"],p["Core/Legend/LegendSymbol.js"],p["Core/Series/Point.js"],p["Core/Series/SeriesDefaults.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Renderer/SVG/SVGElement.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E,O,L,D,j){let{animObject:R,setAnimation:z}=e,{defaultOptions:F}=p,{registerEventOptions:H}=x,{svg:U,win:Y}=y,{seriesTypes:V}=L,{arrayMax:q,arrayMin:K,clamp:$,correctFloat:_,crisp:Z,defined:J,destroyObjectProperties:tt,diffObjects:te,erase:ti,error:ts,extend:to,find:tr,fireEvent:tn,getClosestDistance:ta,getNestedProperty:tl,insertItem:th,isArray:td,isNumber:tc,isString:tp,merge:tu,objectEach:tg,pick:tm,removeEvent:tf,splat:tx,syncTimeout:ty}=j;let X=class X{constructor(){this.zoneAxis="y"}init(e,p){let x;tn(this,"init",{options:p});let y=this,b=e.series;this.eventsToUnbind=[],y.chart=e,y.options=y.setOptions(p);let E=y.options,O=!1!==E.visible;y.linkedSeries=[],y.bindAxes(),to(y,{name:E.name,state:"",visible:O,selected:!0===E.selected}),H(this,E);let L=E.events;(L&&L.click||E.point&&E.point.events&&E.point.events.click||E.allowPointSelect)&&(e.runTrackerClick=!0),y.getColor(),y.getSymbol(),y.parallelArrays.forEach(function(e){y[e+"Data"]||(y[e+"Data"]=[])}),y.isCartesian&&(e.hasCartesianSeries=!0),b.length&&(x=b[b.length-1]),y._i=tm(x&&x._i,-1)+1,y.opacity=y.options.opacity,e.orderItems("series",th(this,b)),E.dataSorting&&E.dataSorting.enabled?y.setDataSortingOptions():y.points||y.data||y.setData(E.data,!1),tn(this,"afterInit")}is(e){return V[e]&&this instanceof V[e]}bindAxes(){let e;let p=this,x=p.options,y=p.chart;tn(this,"bindAxes",null,function(){(p.axisTypes||[]).forEach(function(b){(y[b]||[]).forEach(function(y){e=y.options,(tm(x[b],0)===y.index||void 0!==x[b]&&x[b]===e.id)&&(th(p,y.series),p[b]=y,y.isDirty=!0)}),p[b]||p.optionalAxis===b||ts(18,!0,y)})}),tn(this,"afterBindAxes")}updateParallelArrays(e,p,x){let y=e.series,b=tc(p)?function(x){let b="y"===x&&y.toYData?y.toYData(e):e[x];y[x+"Data"][p]=b}:function(e){Array.prototype[p].apply(y[e+"Data"],x)};y.parallelArrays.forEach(b)}hasData(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(e,p){let x=e.marker,y=p.marker||{};return x&&(y.enabled&&!x.enabled||y.symbol!==x.symbol||y.height!==x.height||y.width!==x.width)}autoIncrement(e){let p=this.options,x=p.pointIntervalUnit,y=p.relativeXValue,b=this.chart.time,E=this.xIncrement,O,L;return(E=tm(E,p.pointStart,0),this.pointInterval=L=tm(this.pointInterval,p.pointInterval,1),y&&tc(e)&&(L*=e),x&&(O=new b.Date(E),"day"===x?b.set("Date",O,b.get("Date",O)+L):"month"===x?b.set("Month",O,b.get("Month",O)+L):"year"===x&&b.set("FullYear",O,b.get("FullYear",O)+L),L=O.getTime()-E),y&&tc(e))?E+L:(this.xIncrement=E+L,E)}setDataSortingOptions(){let e=this.options;to(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),J(e.pointRange)||(e.pointRange=1)}setOptions(e){let p;let x=this.chart,y=x.options.plotOptions,b=x.userOptions||{},E=tu(e),O=x.styledMode,L={plotOptions:y,userOptions:E};tn(this,"setOptions",L);let D=L.plotOptions[this.type],j=b.plotOptions||{},R=j.series||{},z=F.plotOptions[this.type]||{},H=j[this.type]||{};this.userOptions=L.userOptions;let U=tu(D,y.series,H,E);this.tooltipOptions=tu(F.tooltip,F.plotOptions.series?.tooltip,z?.tooltip,x.userOptions.tooltip,j.series?.tooltip,H.tooltip,E.tooltip),this.stickyTracking=tm(E.stickyTracking,H.stickyTracking,R.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||U.stickyTracking),null===D.marker&&delete U.marker,this.zoneAxis=U.zoneAxis||"y";let Y=this.zones=(U.zones||[]).map(e=>({...e}));return(U.negativeColor||U.negativeFillColor)&&!U.zones&&(p={value:U[this.zoneAxis+"Threshold"]||U.threshold||0,className:"highcharts-negative"},O||(p.color=U.negativeColor,p.fillColor=U.negativeFillColor),Y.push(p)),Y.length&&J(Y[Y.length-1].value)&&Y.push(O?{}:{color:this.color,fillColor:this.fillColor}),tn(this,"afterSetOptions",{options:U}),U}getName(){return tm(this.options.name,"Series "+(this.index+1))}getCyclic(e,p,x){let y,b;let E=this.chart,O=`${e}Index`,L=`${e}Counter`,D=x?.length||E.options.chart.colorCount;!p&&(J(b=tm("color"===e?this.options.colorIndex:void 0,this[O]))?y=b:(E.series.length||(E[L]=0),y=E[L]%D,E[L]+=1),x&&(p=x[y])),void 0!==y&&(this[O]=y),this[e]=p}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||F.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let e=this.options.marker;this.getCyclic("symbol",e.symbol,this.chart.options.symbols)}findPointIndex(e,p){let x,y,b;let O=e.id,L=e.x,D=this.points,j=this.options.dataSorting;if(O){let e=this.chart.get(O);e instanceof E&&(x=e)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let p=p=>!p.touched&&p.index===e.index;if(j&&j.matchByName?p=p=>!p.touched&&p.name===e.name:this.options.relativeXValue&&(p=p=>!p.touched&&p.options.x===e.x),!(x=tr(D,p)))return}return x&&void 0!==(b=x&&x.index)&&(y=!0),void 0===b&&tc(L)&&(b=this.xData.indexOf(L,p)),-1!==b&&void 0!==b&&this.cropped&&(b=b>=this.cropStart?b-this.cropStart:b),!y&&tc(b)&&D[b]&&D[b].touched&&(b=void 0),b}updateData(e,p){let x=this.options,y=x.dataSorting,b=this.points,E=[],O=this.requireSorting,L=e.length===b.length,D,j,R,z,F=!0;if(this.xIncrement=null,e.forEach(function(e,p){let j;let R=J(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e)||{},F=R.x;R.id||tc(F)?(-1===(j=this.findPointIndex(R,z))||void 0===j?E.push(e):b[j]&&e!==x.data[j]?(b[j].update(e,!1,null,!1),b[j].touched=!0,O&&(z=j+1)):b[j]&&(b[j].touched=!0),(!L||p!==j||y&&y.enabled||this.hasDerivedData)&&(D=!0)):E.push(e)},this),D)for(j=b.length;j--;)(R=b[j])&&!R.touched&&R.remove&&R.remove(!1,p);else!L||y&&y.enabled?F=!1:(e.forEach(function(e,p){e===b[p].y||b[p].destroyed||b[p].update(e,!1,null,!1)}),E.length=0);return b.forEach(function(e){e&&(e.touched=!1)}),!!F&&(E.forEach(function(e){this.addPoint(e,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=q(this.xData),this.autoIncrement()),!0)}setData(e,p=!0,x,y){let b=this,E=b.points,O=E&&E.length||0,L=b.options,D=b.chart,j=L.dataSorting,R=b.xAxis,z=L.turboThreshold,F=this.xData,H=this.yData,U=b.pointArrayMap,Y=U&&U.length,V=L.keys,q,K,$,_=0,Z=1,J=null,tt;D.options.chart.allowMutatingData||(L.data&&delete b.options.data,b.userOptions.data&&delete b.userOptions.data,tt=tu(!0,e));let te=(e=tt||e||[]).length;if(j&&j.enabled&&(e=this.sortData(e)),D.options.chart.allowMutatingData&&!1!==y&&te&&O&&!b.cropped&&!b.hasGroupedData&&b.visible&&!b.boosted&&($=this.updateData(e,x)),!$){if(b.xIncrement=null,b.colorCounter=0,this.parallelArrays.forEach(function(e){b[e+"Data"].length=0}),z&&te>z){if(tc(J=b.getFirstValidPoint(e)))for(q=0;q=0?_:0,Z=Z>=0?Z:1),1===J.length&&(Z=0),_===Z)for(q=0;q{let y=tl(x,e),b=tl(x,p);return by?1:0}).forEach(function(e,p){e.x=p},this),p.linkedSeries&&p.linkedSeries.forEach(function(p){let x=p.options,b=x.data;x.dataSorting&&x.dataSorting.enabled||!b||(b.forEach(function(x,E){b[E]=y(p,x),e[E]&&(b[E].x=e[E].x,b[E].index=E)}),p.setData(b,!1))}),e}getProcessedData(e){let p=this,x=p.xAxis,y=p.options.cropThreshold,b=x?.logarithmic,E=p.isCartesian,O,L,D=0,j,R,z,F=p.xData,H=p.yData,U=!1,Y=F.length;x&&(R=(j=x.getExtremes()).min,z=j.max,U=!!(x.categories&&!x.names.length)),E&&p.sorted&&!e&&(!y||Y>y||p.forceCrop)&&(F[Y-1]z?(F=[],H=[]):p.yData&&(F[0]z)&&(F=(O=this.cropData(p.xData,p.yData,R,z)).xData,H=O.yData,D=O.start,L=!0));let V=ta([b?F.map(b.log2lin):F],()=>p.requireSorting&&!U&&ts(15,!1,p.chart));return{xData:F,yData:H,cropped:L,cropStart:D,closestPointRange:V}}processData(e){let p=this.xAxis;if(this.isCartesian&&!this.isDirty&&!p.isDirty&&!this.yAxis.isDirty&&!e)return!1;let x=this.getProcessedData();this.cropped=x.cropped,this.cropStart=x.cropStart,this.processedXData=x.xData,this.processedYData=x.yData,this.closestPointRange=this.basePointRange=x.closestPointRange,tn(this,"afterProcessData")}cropData(e,p,x,y){let b=e.length,E,O,L=0,D=b;for(E=0;E=x){L=Math.max(0,E-1);break}for(O=E;Oy){D=O+1;break}return{xData:e.slice(L,D),yData:p.slice(L,D),start:L,end:D}}generatePoints(){let e=this.options,p=this.processedData||e.data,x=this.processedXData,y=this.processedYData,b=this.pointClass,E=x.length,O=this.cropStart||0,L=this.hasGroupedData,D=e.keys,j=[],R=e.dataGrouping&&e.dataGrouping.groupAll?O:0,z,F,H,U,Y=this.data;if(!Y&&!L){let e=[];e.length=p.length,Y=this.data=e}for(D&&L&&(this.options.keys=!1),U=0;U0:U.length)||!O),F=p||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!x||(tt[Y+E]||H)>=$&&(tt[Y-E]||H)<=_,z&&F){if(V=U.length)for(;V--;)tc(U[V])&&(b[Z++]=U[V]);else b[Z++]=U}let te={activeYData:b,dataMin:K(b),dataMax:q(b)};return tn(this,"afterGetExtremes",{dataExtremes:te}),te}applyExtremes(){let e=this.getExtremes();return this.dataMin=e.dataMin,this.dataMax=e.dataMax,e}getFirstValidPoint(e){let p=e.length,x=0,y=null;for(;null===y&&x1)&&(E.step=function(e,p){x&&x.apply(p,arguments),"width"===p.prop&&D?.element&&D.attr(b?"height":"width",e+99)}),L.addClass("highcharts-animating").animate(e,E)}}afterAnimate(){this.setClip(),tg(this.chart.sharedClips,(e,p,x)=>{e&&!this.chart.container.querySelector(`[clip-path="url(#${e.id})"]`)&&(e.destroy(),delete x[p])}),this.finishedAnimating=!0,tn(this,"afterAnimate")}drawPoints(e=this.points){let p,x,y,b,E,O,L;let D=this.chart,j=D.styledMode,{colorAxis:R,options:z}=this,F=z.marker,H=this[this.specialGroup||"markerGroup"],U=this.xAxis,Y=tm(F.enabled,!U||!!U.isRadial||null,this.closestPointRangePx>=F.enabledThreshold*F.radius);if(!1!==F.enabled||this._hasPointMarkers)for(p=0;p0||x.hasImage)&&(x.graphic=y=D.renderer.symbol(e,L.x,L.y,L.width,L.height,O?E:F).add(H),this.enabledDataSorting&&D.hasRendered&&(y.attr({x:x.startXPos}),b="animate")),y&&"animate"===b&&y[p?"show":"hide"](p).animate(L),y){let e=this.pointAttribs(x,j||!x.selected?void 0:"select");j?R&&y.css({fill:e.fill}):y[b](e)}y&&y.addClass(x.getClassName(),!0)}else y&&(x.graphic=y.destroy())}markerAttribs(e,p){let x=this.options,y=x.marker,b=e.marker||{},E=b.symbol||y.symbol,O={},L,D,j=tm(b.radius,y&&y.radius);p&&(L=y.states[p],j=tm((D=b.states&&b.states[p])&&D.radius,L&&L.radius,j&&j+(L&&L.radiusPlus||0))),e.hasImage=E&&0===E.indexOf("url"),e.hasImage&&(j=0);let R=e.pos();return tc(j)&&R&&(x.crisp&&(R[0]=Z(R[0],e.hasImage?0:"rect"===E?y?.lineWidth||0:1)),O.x=R[0]-j,O.y=R[1]-j),j&&(O.width=O.height=2*j),O}pointAttribs(e,p){let x=this.options.marker,y=e&&e.options,b=y&&y.marker||{},E=y&&y.color,O=e&&e.color,L=e&&e.zone&&e.zone.color,D,j,R=this.color,z,F,H=tm(b.lineWidth,x.lineWidth),U=1;return R=E||L||O||R,z=b.fillColor||x.fillColor||R,F=b.lineColor||x.lineColor||R,p=p||"normal",D=x.states[p]||{},H=tm((j=b.states&&b.states[p]||{}).lineWidth,D.lineWidth,H+tm(j.lineWidthPlus,D.lineWidthPlus,0)),z=j.fillColor||D.fillColor||z,{stroke:F=j.lineColor||D.lineColor||F,"stroke-width":H,fill:z,opacity:U=tm(j.opacity,D.opacity,U)}}destroy(e){let p,x,y;let b=this,E=b.chart,O=/AppleWebKit\/533/.test(Y.navigator.userAgent),L=b.data||[];for(tn(b,"destroy",{keepEventsForUpdate:e}),this.removeEvents(e),(b.axisTypes||[]).forEach(function(e){(y=b[e])&&y.series&&(ti(y.series,b),y.isDirty=y.forceRedraw=!0)}),b.legendItem&&b.chart.legend.destroyItem(b),p=L.length;p--;)(x=L[p])&&x.destroy&&x.destroy();for(let e of b.zones)tt(e,void 0,!0);j.clearTimeout(b.animationTimeout),tg(b,function(e,p){e instanceof D&&!e.survive&&e[O&&"group"===p?"hide":"destroy"]()}),E.hoverSeries===b&&(E.hoverSeries=void 0),ti(E.series,b),E.orderItems("series"),tg(b,function(p,x){e&&"hcEvents"===x||delete b[x]})}applyZones(){let{area:e,chart:p,graph:x,zones:y,points:b,xAxis:E,yAxis:O,zoneAxis:L}=this,{inverted:D,renderer:j}=p,R=this[`${L}Axis`],{isXAxis:z,len:F=0}=R||{},H=(x?.strokeWidth()||0)/2+1,U=(e,p=0,x=0)=>{D&&(x=F-x);let{translated:y=0,lineClip:b}=e,E=x-y;b?.push(["L",p,Math.abs(E){e.forEach((p,x)=>{("M"===p[0]||"L"===p[0])&&(e[x]=[p[0],z?F-p[1]:p[1],z?p[2]:F-p[2]])})};if(y.forEach(e=>{e.lineClip=[],e.translated=$(R.toPixels(tm(e.value,p),!0)||0,0,F)}),x&&!this.showLine&&x.hide(),e&&e.hide(),"y"===L&&b.length{let y=p.lineClip||[],b=Math.round(p.translated||0);E.reversed&&y.reverse();let{clip:L,simpleClip:R}=p,F=0,U=0,q=E.len,K=O.len;z?(F=b,q=V):(U=b,K=V);let $=[["M",F,U],["L",q,U],["L",q,K],["L",F,K],["Z"]],_=[$[0],...y,$[1],$[2],...Y,$[3],$[4]];Y=y.reverse(),V=b,D&&(H(_),e&&H($)),L?(L.animate({d:_}),R?.animate({d:$})):(L=p.clip=j.path(_),e&&(R=p.simpleClip=j.path($))),x&&p.graph?.clip(L),e&&p.area?.clip(R)})}else this.visible&&(x&&x.show(),e&&e.show())}plotGroup(e,p,x,y,b){let E=this[e],O=!E,L={visibility:x,zIndex:y||.1};return J(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(L.opacity=this.opacity),E||(this[e]=E=this.chart.renderer.g().add(b)),E.addClass("highcharts-"+p+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(J(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(E.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),E.attr(L)[O?"attr":"animate"](this.getPlotBox(p)),E}getPlotBox(e){let p=this.xAxis,x=this.yAxis,y=this.chart,b=y.inverted&&!y.polar&&p&&this.invertible&&"series"===e;return y.inverted&&(p=x,x=this.xAxis),{translateX:p?p.left:y.plotLeft,translateY:x?x.top:y.plotTop,rotation:b?90:0,rotationOriginX:b?(p.len-x.len)/2:0,rotationOriginY:b?(p.len+x.len)/2:0,scaleX:b?-1:1,scaleY:1}}removeEvents(e){let{eventsToUnbind:p}=this;e||tf(this),p.length&&(p.forEach(e=>{e()}),p.length=0)}render(){let e=this,{chart:p,options:x,hasRendered:y}=e,b=R(x.animation),E=e.visible?"inherit":"hidden",O=x.zIndex,L=p.seriesGroup,D=e.finishedAnimating?0:b.duration;tn(this,"render"),e.plotGroup("group","series",E,O,L),e.markerGroup=e.plotGroup("markerGroup","markers",E,O,L),!1!==x.clip&&e.setClip(),D&&e.animate?.(!0),e.drawGraph&&(e.drawGraph(),e.applyZones()),e.visible&&e.drawPoints(),e.drawDataLabels?.(),e.redrawPoints?.(),x.enableMouseTracking&&e.drawTracker?.(),D&&e.animate?.(),y||(D&&b.defer&&(D+=b.defer),e.animationTimeout=ty(()=>{e.afterAnimate()},D||0)),e.isDirty=!1,e.hasRendered=!0,tn(e,"afterRender")}redraw(){let e=this.isDirty||this.isDirtyData;this.translate(),this.render(),e&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(e,p){let{xAxis:x,yAxis:y}=this,b=this.chart.inverted;return this.searchKDTree({clientX:b?x.len-e.chartY+x.pos:e.chartX-x.pos,plotY:b?y.len-e.chartX+y.pos:e.chartY-y.pos},p,e)}buildKDTree(e){this.buildingKdTree=!0;let p=this,x=p.options.findNearestPointBy.indexOf("y")>-1?2:1;delete p.kdTree,ty(function(){p.kdTree=function e(x,y,b){let E,O;let L=x?.length;if(L)return E=p.kdAxisArray[y%b],x.sort((e,p)=>(e[E]||0)-(p[E]||0)),{point:x[O=Math.floor(L/2)],left:e(x.slice(0,O),y+1,b),right:e(x.slice(O+1),y+1,b)}}(p.getValidPoints(void 0,!p.directTouch),x,x),p.buildingKdTree=!1},p.options.kdNow||e?.type==="touchstart"?0:1)}searchKDTree(e,p,x){let y=this,[b,E]=this.kdAxisArray,O=p?"distX":"dist",L=(y.options.findNearestPointBy||"").indexOf("y")>-1?2:1,D=!!y.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(x),this.kdTree)return function e(p,x,L,j){let R,z,F,H,U,Y,V,q=x.point,K=y.kdAxisArray[L%j],$,_,Z=q;R=p[b],z=q[b],F=J(R)&&J(z)?R-z:null,H=p[E],U=q[E],Y=J(H)&&J(U)?H-U:0,V=D&&q.marker?.radius||0,q.dist=Math.sqrt((F&&F*F||0)+Y*Y)-V,q.distX=J(F)?Math.abs(F)-V:Number.MAX_VALUE;let tt=(p[K]||0)-(q[K]||0)+(D&&q.marker?.radius||0),te=tt<0?"left":"right",ti=tt<0?"right":"left";return x[te]&&(Z=($=e(p,x[te],L+1,j))[O]=0&&E<=(y?y.len:p.plotHeight)&&b>=0&&b<=(x?x.len:p.plotWidth)}drawTracker(){let e=this,p=e.options,x=p.trackByArea,y=[].concat((x?e.areaPath:e.graphPath)||[]),b=e.chart,E=b.pointer,O=b.renderer,L=b.options.tooltip?.snap||0,D=()=>{p.enableMouseTracking&&b.hoverSeries!==e&&e.onMouseOver()},j="rgba(192,192,192,"+(U?1e-4:.002)+")",R=e.tracker;R?R.attr({d:y}):e.graph&&(e.tracker=R=O.path(y).attr({visibility:e.visible?"inherit":"hidden",zIndex:2}).addClass(x?"highcharts-tracker-area":"highcharts-tracker-line").add(e.group),b.styledMode||R.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:j,fill:x?j:"none","stroke-width":e.graph.strokeWidth()+(x?0:2*L)}),[e.tracker,e.markerGroup,e.dataLabelsGroup].forEach(e=>{e&&(e.addClass("highcharts-tracker").on("mouseover",D).on("mouseout",e=>{E?.onTrackerMouseOut(e)}),p.cursor&&!b.styledMode&&e.css({cursor:p.cursor}),e.on("touchstart",D))})),tn(this,"afterDrawTracker")}addPoint(e,p,x,y,b){let E,O;let L=this.options,D=this.data,j=this.chart,R=this.xAxis,z=R&&R.hasNames&&R.names,F=L.data,H=this.xData;p=tm(p,!0);let U={series:this};this.pointClass.prototype.applyOptions.apply(U,[e]);let Y=U.x;if(O=H.length,this.requireSorting&&YY;)O--;this.updateParallelArrays(U,"splice",[O,0,0]),this.updateParallelArrays(U,O),z&&U.name&&(z[Y]=U.name),F.splice(O,0,e),(E||this.processedData)&&(this.data.splice(O,0,null),this.processData()),"point"===L.legendType&&this.generatePoints(),x&&(D[0]&&D[0].remove?D[0].remove(!1):(D.shift(),this.updateParallelArrays(U,"shift"),F.shift())),!1!==b&&tn(this,"addPoint",{point:U}),this.isDirty=!0,this.isDirtyData=!0,p&&j.redraw(y)}removePoint(e,p,x){let y=this,b=y.data,E=b[e],O=y.points,L=y.chart,D=function(){O&&O.length===b.length&&O.splice(e,1),b.splice(e,1),y.options.data.splice(e,1),y.updateParallelArrays(E||{series:y},"splice",[e,1]),E&&E.destroy(),y.isDirty=!0,y.isDirtyData=!0,p&&L.redraw()};z(x,L),p=tm(p,!0),E?E.firePointEvent("remove",null,D):D()}remove(e,p,x,y){let b=this,E=b.chart;function O(){b.destroy(y),E.isDirtyLegend=E.isDirtyBox=!0,E.linkSeries(y),tm(e,!0)&&E.redraw(p)}!1!==x?tn(b,"remove",null,O):O()}update(e,p){tn(this,"update",{options:e=te(e,this.userOptions)});let x=this,y=x.chart,b=x.userOptions,E=x.initialType||x.type,O=y.options.plotOptions,L=V[E].prototype,D=x.finishedAnimating&&{animation:!1},j={},R,z,F=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],H=e.type||b.type||y.options.chart.type,U=!(this.hasDerivedData||H&&H!==this.type||void 0!==e.pointStart||void 0!==e.pointInterval||void 0!==e.relativeXValue||e.joinBy||e.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(e=>x.hasOptionChanged(e)));H=H||E,U&&(F.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),!1!==e.visible&&F.push("area","graph"),x.parallelArrays.forEach(function(e){F.push(e+"Data")}),e.data&&(e.dataSorting&&to(x.options.dataSorting,e.dataSorting),this.setData(e.data,!1))),e=tu(b,{index:void 0===b.index?x.index:b.index,pointStart:O?.series?.pointStart??b.pointStart??x.xData?.[0]},!U&&{data:x.options.data},e,D),U&&e.data&&(e.data=x.options.data),(F=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(F)).forEach(function(e){F[e]=x[e],delete x[e]});let Y=!1;if(V[H]){if(Y=H!==x.type,x.remove(!1,!1,!1,!0),Y){if(y.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(x,V[H].prototype);else{let e=Object.hasOwnProperty.call(x,"hcEvents")&&x.hcEvents;for(z in L)x[z]=void 0;to(x,V[H].prototype),e?x.hcEvents=e:delete x.hcEvents}}}else ts(17,!0,y,{missingModuleFor:H});if(F.forEach(function(e){x[e]=F[e]}),x.init(y,e),U&&this.points)for(let e of(!1===(R=x.options).visible?(j.graphic=1,j.dataLabel=1):(this.hasMarkerChanged(R,b)&&(j.graphic=1),x.hasDataLabels?.()||(j.dataLabel=1)),this.points))e&&e.series&&(e.resolveColor(),Object.keys(j).length&&e.destroyElements(j),!1===R.showInLegend&&e.legendItem&&y.legend.destroyItem(e));x.initialType=E,y.linkSeries(),y.setSortedData(),Y&&x.linkedSeries.length&&(x.isDirtyData=!0),tn(this,"afterUpdate"),tm(p,!0)&&y.redraw(!!U&&void 0)}setName(e){this.name=this.options.name=this.userOptions.name=e,this.chart.isDirtyLegend=!0}hasOptionChanged(e){let p=this.chart,x=this.options[e],y=p.options.plotOptions,b=this.userOptions[e],E=tm(y?.[this.type]?.[e],y?.series?.[e]);return b&&!J(E)?x!==b:x!==tm(E,x)}onMouseOver(){let e=this.chart,p=e.hoverSeries,x=e.pointer;x?.setHoverChartIndex(),p&&p!==this&&p.onMouseOut(),this.options.events.mouseOver&&tn(this,"mouseOver"),this.setState("hover"),e.hoverSeries=this}onMouseOut(){let e=this.options,p=this.chart,x=p.tooltip,y=p.hoverPoint;p.hoverSeries=null,y&&y.onMouseOut(),this&&e.events.mouseOut&&tn(this,"mouseOut"),x&&!this.stickyTracking&&(!x.shared||this.noSharedTooltip)&&x.hide(),p.series.forEach(function(e){e.setState("",!0)})}setState(e,p){let x=this,y=x.options,b=x.graph,E=y.inactiveOtherPoints,O=y.states,L=tm(O[e||"normal"]&&O[e||"normal"].animation,x.chart.options.chart.animation),D=y.lineWidth,j=y.opacity;if(e=e||"",x.state!==e&&([x.group,x.markerGroup,x.dataLabelsGroup].forEach(function(p){p&&(x.state&&p.removeClass("highcharts-series-"+x.state),e&&p.addClass("highcharts-series-"+e))}),x.state=e,!x.chart.styledMode)){if(O[e]&&!1===O[e].enabled)return;if(e&&(D=O[e].lineWidth||D+(O[e].lineWidthPlus||0),j=tm(O[e].opacity,j)),b&&!b.dashstyle&&tc(D))for(let e of[b,...this.zones.map(e=>e.graph)])e?.animate({"stroke-width":D},L);E||[x.group,x.markerGroup,x.dataLabelsGroup,x.labelBySeries].forEach(function(e){e&&e.animate({opacity:j},L)})}p&&E&&x.points&&x.setAllPointsToState(e||void 0)}setAllPointsToState(e){this.points.forEach(function(p){p.setState&&p.setState(e)})}setVisible(e,p){let x=this,y=x.chart,b=y.options.chart.ignoreHiddenSeries,E=x.visible;x.visible=e=x.options.visible=x.userOptions.visible=void 0===e?!E:e;let O=e?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(e=>{x[e]?.[O]()}),(y.hoverSeries===x||y.hoverPoint?.series===x)&&x.onMouseOut(),x.legendItem&&y.legend.colorizeItem(x,e),x.isDirty=!0,x.options.stacking&&y.series.forEach(e=>{e.options.stacking&&e.visible&&(e.isDirty=!0)}),x.linkedSeries.forEach(p=>{p.setVisible(e,!1)}),b&&(y.isDirtyBox=!0),tn(x,O),!1!==p&&y.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(e){this.selected=e=this.options.selected=void 0===e?!this.selected:e,this.checkbox&&(this.checkbox.checked=e),tn(this,e?"select":"unselect")}shouldShowTooltip(e,p,x={}){return x.series=this,x.visiblePlotOnly=!0,this.chart.isInsidePlot(e,p,x)}drawLegendSymbol(e,p){b[this.options.legendSymbol||"rectangle"]?.call(this,e,p)}};return X.defaultOptions=O,X.types=L.seriesTypes,X.registerType=L.registerSeriesType,to(X.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:E,requireSorting:!0,sorted:!0}),L.series=X,X}),x(p,"Core/Chart/Chart.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Axis/Axis.js"],p["Core/Defaults.js"],p["Core/Templating.js"],p["Core/Foundation.js"],p["Core/Globals.js"],p["Core/Renderer/RendererRegistry.js"],p["Core/Series/Series.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Renderer/SVG/SVGRenderer.js"],p["Core/Time.js"],p["Core/Utilities.js"],p["Core/Renderer/HTML/AST.js"],p["Core/Axis/Tick.js"]],function(e,p,x,y,b,E,O,L,D,j,R,z,F,H){let{animate:U,animObject:Y,setAnimation:V}=e,{defaultOptions:q,defaultTime:K}=x,{numberFormat:$}=y,{registerEventOptions:_}=b,{charts:Z,doc:J,marginNames:tt,svg:te,win:ti}=E,{seriesTypes:ts}=D,{addEvent:to,attr:tr,createElement:tn,css:ta,defined:tl,diffObjects:th,discardElement:td,erase:tc,error:tp,extend:tu,find:tg,fireEvent:tm,getStyle:tf,isArray:tx,isNumber:ty,isObject:tb,isString:tv,merge:tS,objectEach:tC,pick:tk,pInt:tw,relativeLength:tA,removeEvent:tM,splat:tT,syncTimeout:tE,uniqueKey:tP}=z;let Q=class Q{static chart(e,p,x){return new Q(e,p,x)}constructor(e,p,x){this.sharedClips={};let y=[...arguments];(tv(e)||e.nodeName)&&(this.renderTo=y.shift()),this.init(y[0],y[1])}setZoomOptions(){let e=this.options.chart,p=e.zooming;this.zooming={...p,type:tk(e.zoomType,p.type),key:tk(e.zoomKey,p.key),pinchType:tk(e.pinchType,p.pinchType),singleTouch:tk(e.zoomBySingleTouch,p.singleTouch,!1),resetButton:tS(p.resetButton,e.resetZoomButton)}}init(e,p){tm(this,"init",{args:arguments},function(){let x=tS(q,e),y=x.chart;this.userOptions=tu({},e),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=p,this.isResizing=0,this.options=x,this.axes=[],this.series=[],this.time=e.time&&Object.keys(e.time).length?new R(e.time):E.time,this.numberFormatter=y.numberFormatter||$,this.styledMode=y.styledMode,this.hasCartesianSeries=y.showAxes,this.index=Z.length,Z.push(this),E.chartCount++,_(this,y),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),tm(this,"afterInit"),this.firstRender()})}initSeries(e){let p=this.options.chart,x=e.type||p.type,y=ts[x];y||tp(17,!0,this,{missingModuleFor:x});let b=new y;return"function"==typeof b.init&&b.init(this,e),b}setSortedData(){this.getSeriesOrderByLinks().forEach(function(e){e.points||e.data||!e.enabledDataSorting||e.setData(e.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(e,p){return e.linkedSeries.length||p.linkedSeries.length?p.linkedSeries.length-e.linkedSeries.length:0})}orderItems(e,p=0){let x=this[e],y=this.options[e]=tT(this.options[e]).slice(),b=this.userOptions[e]=this.userOptions[e]?tT(this.userOptions[e]).slice():[];if(this.hasRendered&&(y.splice(p),b.splice(p)),x)for(let e=p,E=x.length;e=Math.max(D+E,e.pos)&&p<=Math.min(D+E+z.width,e.pos+e.len)||(U.isInsidePlot=!1)}if(!x.ignoreY&&U.isInsidePlot){let e=!y&&x.axis&&!x.axis.isXAxis&&x.axis||R&&(y?R.xAxis:R.yAxis)||{pos:O,len:1/0},p=x.paneCoordinates?e.pos+H:O+H;p>=Math.max(j+O,e.pos)&&p<=Math.min(j+O+z.height,e.pos+e.len)||(U.isInsidePlot=!1)}return tm(this,"afterIsInsidePlot",U),U.isInsidePlot}redraw(e){tm(this,"beforeRedraw");let p=this.hasCartesianSeries?this.axes:this.colorAxis||[],x=this.series,y=this.pointer,b=this.legend,E=this.userOptions.legend,O=this.renderer,L=O.isHidden(),D=[],j,R,z,F=this.isDirtyBox,H=this.isDirtyLegend,U;for(O.rootFontSize=O.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),V(!!this.hasRendered&&e,this),L&&this.temporaryDisplay(),this.layOutTitles(!1),z=x.length;z--;)if(((U=x[z]).options.stacking||U.options.centerInCategory)&&(R=!0,U.isDirty)){j=!0;break}if(j)for(z=x.length;z--;)(U=x[z]).options.stacking&&(U.isDirty=!0);x.forEach(function(e){e.isDirty&&("point"===e.options.legendType?("function"==typeof e.updateTotals&&e.updateTotals(),H=!0):E&&(E.labelFormatter||E.labelFormat)&&(H=!0)),e.isDirtyData&&tm(e,"updatedData")}),H&&b&&b.options.enabled&&(b.render(),this.isDirtyLegend=!1),R&&this.getStacks(),p.forEach(function(e){e.updateNames(),e.setScale()}),this.getMargins(),p.forEach(function(e){e.isDirty&&(F=!0)}),p.forEach(function(e){let p=e.min+","+e.max;e.extKey!==p&&(e.extKey=p,D.push(function(){tm(e,"afterSetExtremes",tu(e.eventArgs,e.getExtremes())),delete e.eventArgs})),(F||R)&&e.redraw()}),F&&this.drawChartBox(),tm(this,"predraw"),x.forEach(function(e){(F||e.isDirty)&&e.visible&&e.redraw(),e.isDirtyData=!1}),y&&y.reset(!0),O.draw(),tm(this,"redraw"),tm(this,"render"),L&&this.temporaryDisplay(!0),D.forEach(function(e){e.call()})}get(e){let p=this.series;function x(p){return p.id===e||p.options&&p.options.id===e}let y=tg(this.axes,x)||tg(this.series,x);for(let e=0;!y&&e(p.getPointsCollection().forEach(p=>{tk(p.selectedStaging,p.selected)&&e.push(p)}),e),[])}getSelectedSeries(){return this.series.filter(function(e){return e.selected})}setTitle(e,p,x){this.applyDescription("title",e),this.applyDescription("subtitle",p),this.applyDescription("caption",void 0),this.layOutTitles(x)}applyDescription(e,p){let x=this,y=this.options[e]=tS(this.options[e],p),b=this[e];b&&p&&(this[e]=b=b.destroy()),y&&!b&&((b=this.renderer.text(y.text,0,0,y.useHTML).attr({align:y.align,class:"highcharts-"+e,zIndex:y.zIndex||4}).add()).update=function(p,y){x.applyDescription(e,p),x.layOutTitles(y)},this.styledMode||b.css(tu("title"===e?{fontSize:this.options.isStock?"1em":"1.2em"}:{},y.style)),this[e]=b)}layOutTitles(e=!0){let p=[0,0,0],x=this.renderer,y=this.spacingBox;["title","subtitle","caption"].forEach(function(e){let b=this[e],E=this.options[e],O=E.verticalAlign||"top",L="title"===e?"top"===O?-3:0:"top"===O?p[0]+2:0;if(b){b.css({width:(E.width||y.width+(E.widthAdjust||0))+"px"});let e=x.fontMetrics(b).b,D=Math.round(b.getBBox(E.useHTML).height);b.align(tu({y:"bottom"===O?e:L+e,height:D},E),!1,"spacingBox"),E.floating||("top"===O?p[0]=Math.ceil(p[0]+D):"bottom"===O&&(p[2]=Math.ceil(p[2]+D)))}},this),p[0]&&"top"===(this.options.title.verticalAlign||"top")&&(p[0]+=this.options.title.margin),p[2]&&"bottom"===this.options.caption.verticalAlign&&(p[2]+=this.options.caption.margin);let b=!this.titleOffset||this.titleOffset.join(",")!==p.join(",");this.titleOffset=p,tm(this,"afterLayOutTitles"),!this.isDirtyBox&&b&&(this.isDirtyBox=this.isDirtyLegend=b,this.hasRendered&&e&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:tf(this.renderTo,"width",!0)||0,height:tf(this.renderTo,"height",!0)||0}}getChartSize(){let e=this.options.chart,p=e.width,x=e.height,y=this.getContainerBox();this.chartWidth=Math.max(0,p||y.width||600),this.chartHeight=Math.max(0,tA(x,this.chartWidth)||(y.height>1?y.height:400)),this.containerBox=y}temporaryDisplay(e){let p=this.renderTo,x;if(e)for(;p&&p.style;)p.hcOrigStyle&&(ta(p,p.hcOrigStyle),delete p.hcOrigStyle),p.hcOrigDetached&&(J.body.removeChild(p),p.hcOrigDetached=!1),p=p.parentNode;else for(;p&&p.style&&(J.body.contains(p)||p.parentNode||(p.hcOrigDetached=!0,J.body.appendChild(p)),("none"===tf(p,"display",!1)||p.hcOricDetached)&&(p.hcOrigStyle={display:p.style.display,height:p.style.height,overflow:p.style.overflow},x={display:"block",overflow:"hidden"},p!==this.renderTo&&(x.height=0),ta(p,x),p.offsetWidth||p.style.setProperty("display","block","important")),(p=p.parentNode)!==J.body););}setClassName(e){this.container.className="highcharts-container "+(e||"")}getContainer(){let e=this.options,p=e.chart,x="data-highcharts-chart",y=tP(),b,E=this.renderTo;E||(this.renderTo=E=p.renderTo),tv(E)&&(this.renderTo=E=J.getElementById(E)),E||tp(13,!0,this);let L=tw(tr(E,x));ty(L)&&Z[L]&&Z[L].hasRendered&&Z[L].destroy(),tr(E,x,this.index),E.innerHTML=F.emptyHTML,p.skipClone||E.offsetWidth||this.temporaryDisplay(),this.getChartSize();let D=this.chartHeight,R=this.chartWidth;ta(E,{overflow:"hidden"}),this.styledMode||(b=tu({position:"relative",overflow:"hidden",width:R+"px",height:D+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},p.style||{}));let z=tn("div",{id:y},b,E);this.container=z,this.getChartSize(),R===this.chartWidth||(R=this.chartWidth,this.styledMode||ta(z,{width:tk(p.style?.width,R+"px")})),this.containerBox=this.getContainerBox(),this._cursor=z.style.cursor;let H=p.renderer||!te?O.getRendererType(p.renderer):j;if(this.renderer=new H(z,R,D,void 0,p.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),V(void 0,this),this.setClassName(p.className),this.styledMode)for(let p in e.defs)this.renderer.definition(e.defs[p]);else this.renderer.setStyle(p.style);this.renderer.chartIndex=this.index,tm(this,"afterGetContainer")}getMargins(e){let{spacing:p,margin:x,titleOffset:y}=this;this.resetMargins(),y[0]&&!tl(x[0])&&(this.plotTop=Math.max(this.plotTop,y[0]+p[0])),y[2]&&!tl(x[2])&&(this.marginBottom=Math.max(this.marginBottom,y[2]+p[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(x,p),tm(this,"getMargins"),e||this.getAxisMargins()}getAxisMargins(){let e=this,p=e.axisOffset=[0,0,0,0],x=e.colorAxis,y=e.margin,b=function(e){e.forEach(function(e){e.visible&&e.getOffset()})};e.hasCartesianSeries?b(e.axes):x&&x.length&&b(x),tt.forEach(function(x,b){tl(y[b])||(e[x]+=p[b])}),e.setChartSize()}getOptions(){return th(this.userOptions,q)}reflow(e){let p=this,x=p.containerBox,y=p.getContainerBox();delete p.pointer?.chartPosition,!p.isPrinting&&!p.isResizing&&x&&y.width&&((y.width!==x.width||y.height!==x.height)&&(z.clearTimeout(p.reflowTimeout),p.reflowTimeout=tE(function(){p.container&&p.setSize(void 0,void 0,!1)},e?100:0)),p.containerBox=y)}setReflow(){let e=this,p=p=>{e.options?.chart.reflow&&e.hasLoaded&&e.reflow(p)};if("function"==typeof ResizeObserver)new ResizeObserver(p).observe(e.renderTo);else{let e=to(ti,"resize",p);to(this,"destroy",e)}}setSize(e,p,x){let y=this,b=y.renderer;y.isResizing+=1,V(x,y);let E=b.globalAnimation;y.oldChartHeight=y.chartHeight,y.oldChartWidth=y.chartWidth,void 0!==e&&(y.options.chart.width=e),void 0!==p&&(y.options.chart.height=p),y.getChartSize();let{chartWidth:O,chartHeight:L,scrollablePixelsX:D=0,scrollablePixelsY:j=0}=y;(y.isDirtyBox||O!==y.oldChartWidth||L!==y.oldChartHeight)&&(y.styledMode||(E?U:ta)(y.container,{width:`${O+D}px`,height:`${L+j}px`},E),y.setChartSize(!0),b.setSize(O,L,E),y.axes.forEach(function(e){e.isDirty=!0,e.setScale()}),y.isDirtyLegend=!0,y.isDirtyBox=!0,y.layOutTitles(),y.getMargins(),y.redraw(E),y.oldChartHeight=void 0,tm(y,"resize"),setTimeout(()=>{y&&tm(y,"endResize")},Y(E).duration)),y.isResizing-=1}setChartSize(e){let p,x,y,b;let{chartHeight:E,chartWidth:O,inverted:L,spacing:D,renderer:j}=this,R=this.clipOffset,z=Math[L?"floor":"round"];this.plotLeft=p=Math.round(this.plotLeft),this.plotTop=x=Math.round(this.plotTop),this.plotWidth=y=Math.max(0,Math.round(O-p-this.marginRight)),this.plotHeight=b=Math.max(0,Math.round(E-x-this.marginBottom)),this.plotSizeX=L?b:y,this.plotSizeY=L?y:b,this.spacingBox=j.spacingBox={x:D[3],y:D[0],width:O-D[3]-D[1],height:E-D[0]-D[2]},this.plotBox=j.plotBox={x:p,y:x,width:y,height:b},R&&(this.clipBox={x:z(R[3]),y:z(R[0]),width:z(this.plotSizeX-R[1]-R[3]),height:z(this.plotSizeY-R[0]-R[2])}),e||(this.axes.forEach(function(e){e.setAxisSize(),e.setAxisTranslation()}),j.alignElements()),tm(this,"afterSetChartSize",{skipAxes:e})}resetMargins(){tm(this,"resetMargins");let e=this,p=e.options.chart,x=p.plotBorderWidth||0,y=x/2;["margin","spacing"].forEach(function(x){let y=p[x],b=tb(y)?y:[y,y,y,y];["Top","Right","Bottom","Left"].forEach(function(y,E){e[x][E]=tk(p[x+y],b[E])})}),tt.forEach(function(p,x){e[p]=tk(e.margin[x],e.spacing[x])}),e.axisOffset=[0,0,0,0],e.clipOffset=[y,y,y,y],e.plotBorderWidth=x}drawChartBox(){let e=this.options.chart,p=this.renderer,x=this.chartWidth,y=this.chartHeight,b=this.styledMode,E=this.plotBGImage,O=e.backgroundColor,L=e.plotBackgroundColor,D=e.plotBackgroundImage,j=this.plotLeft,R=this.plotTop,z=this.plotWidth,F=this.plotHeight,H=this.plotBox,U=this.clipRect,Y=this.clipBox,V=this.chartBackground,q=this.plotBackground,K=this.plotBorder,$,_,Z,J="animate";V||(this.chartBackground=V=p.rect().addClass("highcharts-background").add(),J="attr"),b?$=_=V.strokeWidth():(_=($=e.borderWidth||0)+(e.shadow?8:0),Z={fill:O||"none"},($||V["stroke-width"])&&(Z.stroke=e.borderColor,Z["stroke-width"]=$),V.attr(Z).shadow(e.shadow)),V[J]({x:_/2,y:_/2,width:x-_-$%2,height:y-_-$%2,r:e.borderRadius}),J="animate",q||(J="attr",this.plotBackground=q=p.rect().addClass("highcharts-plot-background").add()),q[J](H),!b&&(q.attr({fill:L||"none"}).shadow(e.plotShadow),D&&(E?(D!==E.attr("href")&&E.attr("href",D),E.animate(H)):this.plotBGImage=p.image(D,j,R,z,F).add())),U?U.animate({width:Y.width,height:Y.height}):this.clipRect=p.clipRect(Y),J="animate",K||(J="attr",this.plotBorder=K=p.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),b||K.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),K[J](K.crisp({x:j,y:R,width:z,height:F},-K.strokeWidth())),this.isDirtyBox=!1,tm(this,"afterDrawChartBox")}propFromSeries(){let e,p,x;let y=this,b=y.options.chart,E=y.options.series;["inverted","angular","polar"].forEach(function(O){for(p=ts[b.type],x=b[O]||p&&p.prototype[O],e=E&&E.length;!x&&e--;)(p=ts[E[e].type])&&p.prototype[O]&&(x=!0);y[O]=x})}linkSeries(e){let p=this,x=p.series;x.forEach(function(e){e.linkedSeries.length=0}),x.forEach(function(e){let{linkedTo:x}=e.options;if(tv(x)){let y;(y=":previous"===x?p.series[e.index-1]:p.get(x))&&y.linkedParent!==e&&(y.linkedSeries.push(e),e.linkedParent=y,y.enabledDataSorting&&e.setDataSortingOptions(),e.visible=tk(e.options.visible,y.options.visible,e.visible))}}),tm(this,"afterLinkSeries",{isUpdating:e})}renderSeries(){this.series.forEach(function(e){e.translate(),e.render()})}render(){let e=this.axes,p=this.colorAxis,x=this.renderer,y=this.options.chart.axisLayoutRuns||2,b=e=>{e.forEach(e=>{e.visible&&e.render()})},E=0,O=!0,L,D=0;for(let p of(this.setTitle(),tm(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),e)){let{options:e}=p,{labels:x}=e;if(this.hasCartesianSeries&&p.horiz&&p.visible&&x.enabled&&p.series.length&&"colorAxis"!==p.coll&&!this.polar){E=e.tickLength,p.createGroups();let y=new H(p,0,"",!0),b=y.createLabel("x",x);if(y.destroy(),b&&tk(x.reserveSpace,!ty(e.crossing))&&(E=b.getBBox().height+x.distance+Math.max(e.offset||0,0)),E){b?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-E,0);(O||L||y>1)&&D(D?1:1.1),L=x/this.plotHeight>(D?1:1.05),D++}this.drawChartBox(),this.hasCartesianSeries?b(e):p&&p.length&&b(p),this.seriesGroup||(this.seriesGroup=x.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(e){let p=this,x=tS(!0,this.options.credits,e);x.enabled&&!this.credits&&(this.credits=this.renderer.text(x.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){x.href&&(ti.location.href=x.href)}).attr({align:x.position.align,zIndex:8}),p.styledMode||this.credits.css(x.style),this.credits.add().align(x.position),this.credits.update=function(e){p.credits=p.credits.destroy(),p.addCredits(e)})}destroy(){let e;let p=this,x=p.axes,y=p.series,b=p.container,O=b&&b.parentNode;for(tm(p,"destroy"),p.renderer.forExport?tc(Z,p):Z[p.index]=void 0,E.chartCount--,p.renderTo.removeAttribute("data-highcharts-chart"),tM(p),e=x.length;e--;)x[e]=x[e].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),e=y.length;e--;)y[e]=y[e].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(e){let x=p[e];x&&x.destroy&&(p[e]=x.destroy())}),b&&(b.innerHTML=F.emptyHTML,tM(b),O&&td(b)),tC(p,function(e,x){delete p[x]})}firstRender(){let e=this,p=e.options;e.getContainer(),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.getAxes();let x=tx(p.series)?p.series:[];p.series=[],x.forEach(function(p){e.initSeries(p)}),e.linkSeries(),e.setSortedData(),tm(e,"beforeRender"),e.render(),e.pointer?.getChartPosition(),e.renderer.imgCount||e.hasLoaded||e.onload(),e.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(e){e&&void 0!==this.index&&e.apply(this,[this])},this),tm(this,"load"),tm(this,"render"),tl(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:e,title:p}=this;!e||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(p&&p.element.textContent||"").replace(/this.transform({reset:!0,trigger:"zoom"}))}pan(e,p){let x=this,y="object"==typeof p?p:{enabled:p,type:"x"},b=y.type,E=b&&x[({x:"xAxis",xy:"axes",y:"yAxis"})[b]].filter(e=>e.options.panningEnabled&&!e.options.isInternal),O=x.options.chart;O?.panning&&(O.panning=y),tm(this,"pan",{originalEvent:e},()=>{x.transform({axes:E,event:e,to:{x:e.chartX-(x.mouseDownX||0),y:e.chartY-(x.mouseDownY||0)},trigger:"pan"}),ta(x.container,{cursor:"move"})})}transform(e){let{axes:p=this.axes,event:x,from:y={},reset:b,selection:E,to:O={},trigger:L}=e,{inverted:D}=this,j=!1,R;for(let e of(this.hoverPoints?.forEach(e=>e.setState()),p)){let{horiz:p,len:z,minPointOffset:F=0,options:H,reversed:U}=e,Y=p?"width":"height",V=p?"x":"y",q=tk(O[Y],e.len),K=tk(y[Y],e.len),$=10>Math.abs(q)?1:q/K,_=(y[V]||0)+K/2-e.pos,Z=_-((O[V]??e.pos)+q/2-e.pos)/$,J=U&&!D||!U&&D?-1:1;if(!b&&(_<0||_>e.len))continue;let tt=e.toValue(Z,!0)+(E?0:F*J),te=e.toValue(Z+z/$,!0)-(E?0:F*J||0),ti=e.allExtremes;if(tt>te&&([tt,te]=[te,tt]),1===$&&!b&&"yAxis"===e.coll&&!ti){for(let p of e.series){let e=p.getExtremes(p.getProcessedData(!0).yData,!0);ti??(ti={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),ty(e.dataMin)&&ty(e.dataMax)&&(ti.dataMin=Math.min(e.dataMin,ti.dataMin),ti.dataMax=Math.max(e.dataMax,ti.dataMax))}e.allExtremes=ti}let{dataMin:ts,dataMax:to,min:tr,max:tn}=tu(e.getExtremes(),ti||{}),ta=ts??H.min,th=to??H.max,td=te-tt,tc=e.categories?0:Math.min(td,th-ta),tp=ta-tc*(tl(H.min)?0:H.minPadding),tg=th+tc*(tl(H.max)?0:H.maxPadding),tm=e.allowZoomOutside||1===$||"zoom"!==L&&$>1,tf=Math.min(H.min??tp,tp,tm?tr:tp),tx=Math.max(H.max??tg,tg,tm?tn:tg);(!e.isOrdinal||1!==$||b)&&(tt=1&&(te=tt+td)),te>tx&&(te=tx,$>=1&&(tt=te-td)),(b||e.series.length&&(tt!==tr||te!==tn)&&tt>=tf&&te<=tx)&&(E?E[e.coll].push({axis:e,min:tt,max:te}):(e.isPanning="zoom"!==L,e.setExtremes(b?void 0:tt,b?void 0:te,!1,!1,{move:Z,trigger:L,scale:$}),!b&&(tt>tf||te{delete e.selection,e.trigger="zoom",this.transform(e)}):(R&&!this.resetZoomButton?this.showResetZoom():!R&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()),this.redraw("zoom"===L&&(this.options.chart.animation??this.pointCount<100)))),j}};return tu(Q.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Q.prototype.addAxis,[!0]],yAxis:[Q.prototype.addAxis,[!1]],series:[Q.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),Q}),x(p,"Extensions/ScrollablePlotArea.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Globals.js"],p["Core/Renderer/RendererRegistry.js"],p["Core/Utilities.js"]],function(e,p,x,y){let{stop:b}=e,{composed:E}=p,{addEvent:O,createElement:L,css:D,defined:j,merge:R,pushUnique:z}=y;function F(){let e=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!e&&(this.scrollablePlotArea=e=new g(this)),e?.applyFixed()}function H(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}let g=class g{static compose(e,p,x){z(E,this.compose)&&(O(e,"afterInit",H),O(p,"afterSetChartSize",e=>this.afterSetSize(e.target,e)),O(p,"render",F),O(x,"show",H))}static afterSetSize(e,p){let x,y,b;let{minWidth:E,minHeight:O}=e.options.chart.scrollablePlotArea||{},{clipBox:L,plotBox:D,inverted:z,renderer:F}=e;if(!F.forExport&&(E?(e.scrollablePixelsX=x=Math.max(0,E-e.chartWidth),x&&(e.scrollablePlotBox=R(e.plotBox),D.width=e.plotWidth+=x,L[z?"height":"width"]+=x,b=!0)):O&&(e.scrollablePixelsY=y=Math.max(0,O-e.chartHeight),j(y)&&(e.scrollablePlotBox=R(e.plotBox),D.height=e.plotHeight+=y,L[z?"width":"height"]+=y,b=!1)),j(b)&&!p.skipAxes))for(let p of e.axes)p.horiz===b&&(p.setAxisSize(),p.setAxisTranslation())}constructor(e){let p;let y=e.options.chart,b=x.getRendererType(),E=y.scrollablePlotArea||{},j=this.moveFixedElements.bind(this),R={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};e.scrollablePixelsX&&(R.overflowX="auto"),e.scrollablePixelsY&&(R.overflowY="auto"),this.chart=e;let z=this.parentDiv=L("div",{className:"highcharts-scrolling-parent"},{position:"relative"},e.renderTo),F=this.scrollingContainer=L("div",{className:"highcharts-scrolling"},R,z),H=this.innerContainer=L("div",{className:"highcharts-inner-container"},void 0,F),U=this.fixedDiv=L("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(y.style?.zIndex||0)+2,top:0},void 0,!0),Y=this.fixedRenderer=new b(U,e.chartWidth,e.chartHeight,y.style);this.mask=Y.path().attr({fill:y.backgroundColor||"#fff","fill-opacity":E.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),F.parentNode.insertBefore(U,F),D(e.renderTo,{overflow:"visible"}),O(e,"afterShowResetZoom",j),O(e,"afterApplyDrilldown",j),O(e,"afterLayOutTitles",j),O(F,"scroll",()=>{let{pointer:x,hoverPoint:y}=e;x&&(delete x.chartPosition,y&&(p=y),x.runPointActions(void 0,p,!0))}),H.appendChild(e.container)}applyFixed(){let{chart:e,fixedRenderer:p,isDirty:x,scrollingContainer:y}=this,{axisOffset:E,chartWidth:O,chartHeight:L,container:R,plotHeight:z,plotLeft:F,plotTop:H,plotWidth:U,scrollablePixelsX:Y=0,scrollablePixelsY:V=0}=e,{scrollPositionX:q=0,scrollPositionY:K=0}=e.options.chart.scrollablePlotArea||{},$=O+Y,_=L+V;p.setSize(O,L),(x??!0)&&(this.isDirty=!1,this.moveFixedElements()),b(e.container),D(R,{width:`${$}px`,height:`${_}px`}),e.renderer.boxWrapper.attr({width:$,height:_,viewBox:[0,0,$,_].join(" ")}),e.chartBackground?.attr({width:$,height:_}),D(y,{width:`${O}px`,height:`${L}px`}),j(x)||(y.scrollLeft=Y*q,y.scrollTop=V*K);let Z=H-E[0]-1,J=F-E[3]-1,tt=H+z+E[2]+1,te=F+U+E[1]+1,ti=F+U-Y,ts=H+z-V,to=[["M",0,0]];Y?to=[["M",0,Z],["L",F-1,Z],["L",F-1,tt],["L",0,tt],["Z"],["M",ti,Z],["L",O,Z],["L",O,tt],["L",ti,tt],["Z"]]:V&&(to=[["M",J,0],["L",J,H-1],["L",te,H-1],["L",te,0],["Z"],["M",J,ts],["L",J,L],["L",te,L],["L",te,ts],["Z"]]),"adjustHeight"!==e.redrawTrigger&&this.mask.attr({d:to})}moveFixedElements(){let e;let{container:p,inverted:x,scrollablePixelsX:y,scrollablePixelsY:b}=this.chart,E=this.fixedRenderer,O=g.fixedSelectors;for(let L of(y&&!x?e=".highcharts-yaxis":y&&x?e=".highcharts-xaxis":b&&!x?e=".highcharts-xaxis":b&&x&&(e=".highcharts-yaxis"),e&&O.push(`${e}:not(.highcharts-radial-axis)`,`${e}-labels:not(.highcharts-radial-axis-labels)`),O))[].forEach.call(p.querySelectorAll(L),e=>{(e.namespaceURI===E.SVG_NS?E.box:E.box.parentNode).appendChild(e),e.style.pointerEvents="auto"})}};return g.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],g}),x(p,"Core/Axis/Stacking/StackItem.js",[p["Core/Templating.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Utilities.js"]],function(e,p,x){let{format:y}=e,{series:b}=p,{destroyObjectProperties:E,fireEvent:O,isNumber:L,pick:D}=x;return class{constructor(e,p,x,y,b){let E=e.chart.inverted,O=e.reversed;this.axis=e;let L=this.isNegative=!!x!=!!O;this.options=p=p||{},this.x=y,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=b,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:p.align||(E?L?"left":"right":"center"),verticalAlign:p.verticalAlign||(E?"middle":L?"bottom":"top"),y:p.y,x:p.x},this.textAlign=p.textAlign||(E?L?"right":"left":"center")}destroy(){E(this,this.axis)}render(e){let p=this.axis.chart,x=this.options,b=x.format,E=b?y(b,this,p):x.formatter.call(this);if(this.label)this.label.attr({text:E,visibility:"hidden"});else{this.label=p.renderer.label(E,null,void 0,x.shape,void 0,void 0,x.useHTML,!1,"stack-labels");let y={r:x.borderRadius||0,text:E,padding:D(x.padding,5),visibility:"hidden"};p.styledMode||(y.fill=x.backgroundColor,y.stroke=x.borderColor,y["stroke-width"]=x.borderWidth,this.label.css(x.style||{})),this.label.attr(y),this.label.added||this.label.add(e)}this.label.labelrank=p.plotSizeY,O(this,"afterRender")}setOffset(e,p,x,y,E,j){let{alignOptions:R,axis:z,label:F,options:H,textAlign:U}=this,Y=z.chart,V=this.getStackBox({xOffset:e,width:p,boxBottom:x,boxTop:y,defaultX:E,xAxis:j}),{verticalAlign:q}=R;if(F&&V){let e=F.getBBox(void 0,0),p=F.padding,x="justify"===D(H.overflow,"justify"),y;R.x=H.x||0,R.y=H.y||0;let{x:E,y:O}=this.adjustStackPosition({labelBox:e,verticalAlign:q,textAlign:U});V.x-=E,V.y-=O,F.align(R,!1,V),(y=Y.isInsidePlot(F.alignAttr.x+R.x+E,F.alignAttr.y+R.y+O))||(x=!1),x&&b.prototype.justifyDataLabel.call(z,F,R,F.alignAttr,e,V),F.attr({x:F.alignAttr.x,y:F.alignAttr.y,rotation:H.rotation,rotationOriginX:e.width*({left:0,center:.5,right:1})[H.textAlign||"center"],rotationOriginY:e.height/2}),D(!x&&H.crop,!0)&&(y=L(F.x)&&L(F.y)&&Y.isInsidePlot(F.x-p+(F.width||0),F.y)&&Y.isInsidePlot(F.x+p,F.y)),F[y?"show":"hide"]()}O(this,"afterSetOffset",{xOffset:e,width:p})}adjustStackPosition({labelBox:e,verticalAlign:p,textAlign:x}){let y={bottom:0,middle:1,top:2,right:1,center:0,left:-1},b=y[p],E=y[x];return{x:e.width/2+e.width/2*E,y:e.height/2*b}}getStackBox(e){let p=this.axis,x=p.chart,{boxTop:y,defaultX:b,xOffset:E,width:O,boxBottom:j}=e,R=p.stacking.usePercentage?100:D(y,this.total,0),z=p.toPixels(R),F=e.xAxis||x.xAxis[0],H=D(b,F.translate(this.x))+E,U=Math.abs(z-p.toPixels(j||L(p.min)&&p.logarithmic&&p.logarithmic.lin2log(p.min)||0)),Y=x.inverted,V=this.isNegative;return Y?{x:(V?z:z-U)-x.plotLeft,y:F.height-H-O,width:U,height:O}:{x:H+F.transB-x.plotLeft,y:(V?z-U:z)-x.plotTop,width:O,height:U}}}}),x(p,"Core/Axis/Stacking/StackingAxis.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Axis/Axis.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Axis/Stacking/StackItem.js"],p["Core/Utilities.js"]],function(e,p,x,y,b){var E;let{getDeferredAnimation:O}=e,{series:{prototype:L}}=x,{addEvent:D,correctFloat:j,defined:R,destroyObjectProperties:z,fireEvent:F,isArray:H,isNumber:U,objectEach:Y,pick:V}=b;function q(){let e=this.inverted;this.axes.forEach(e=>{e.stacking&&e.stacking.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),this.series.forEach(p=>{let x=p.xAxis&&p.xAxis.options||{};p.options.stacking&&p.reserveSpace()&&(p.stackKey=[p.type,V(p.options.stack,""),e?x.top:x.left,e?x.height:x.width].join(","))})}function K(){let e=this.stacking;if(e){let p=e.stacks;Y(p,(e,x)=>{z(e),delete p[x]}),e.stackTotalGroup?.destroy()}}function $(){this.stacking||(this.stacking=new A(this))}function _(e,p,x,y){return!R(e)||e.x!==p||y&&e.stackKey!==y?e={x:p,index:0,key:y,stackKey:y}:e.index++,e.key=[x,p,e.index].join(","),e}function Z(){let e;let p=this,x=p.yAxis,y=p.stackKey||"",b=x.stacking.stacks,E=p.processedXData,O=p.options.stacking,L=p[O+"Stacker"];L&&[y,"-"+y].forEach(x=>{let y=E.length,O,D,j;for(;y--;)O=E[y],e=p.getStackIndicator(e,O,p.index,x),D=b[x]?.[O],(j=D?.points[e.key||""])&&L.call(p,j,D,y)})}function J(e,p,x){let y=p.total?100/p.total:0;e[0]=j(e[0]*y),e[1]=j(e[1]*y),this.stackedYData[x]=e[1]}function tt(e){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?L.setStackedPoints.call(this,e,"group"):e.stacking.resetStacks())}function te(e,p){let x,b,E,O,L,D,z,F,U;let Y=p||this.options.stacking;if(!Y||!this.reserveSpace()||(({group:"xAxis"})[Y]||"yAxis")!==e.coll)return;let q=this.processedXData,K=this.processedYData,$=[],_=K.length,Z=this.options,J=Z.threshold||0,tt=Z.startFromThreshold?J:0,te=Z.stack,ti=p?`${this.type},${Y}`:this.stackKey||"",ts="-"+ti,to=this.negStacks,tr=e.stacking,tn=tr.stacks,ta=tr.oldStacks;for(tr.stacksTouched+=1,z=0;z<_;z++){F=q[z],U=K[z],D=(x=this.getStackIndicator(x,F,this.index)).key||"",tn[L=(b=to&&U<(tt?0:J))?ts:ti]||(tn[L]={}),tn[L][F]||(ta[L]?.[F]?(tn[L][F]=ta[L][F],tn[L][F].total=null):tn[L][F]=new y(e,e.options.stackLabels,!!b,F,te)),E=tn[L][F],null!==U?(E.points[D]=E.points[this.index]=[V(E.cumulative,tt)],R(E.cumulative)||(E.base=D),E.touched=tr.stacksTouched,x.index>0&&!1===this.singleStacks&&(E.points[D][0]=E.points[this.index+","+F+",0"][0])):(delete E.points[D],delete E.points[this.index]);let p=E.total||0;"percent"===Y?(O=b?ti:ts,p=to&&tn[O]?.[F]?(O=tn[O][F]).total=Math.max(O.total||0,p)+Math.abs(U)||0:j(p+(Math.abs(U)||0))):"group"===Y?(H(U)&&(U=U[0]),null!==U&&p++):p=j(p+(U||0)),"group"===Y?E.cumulative=(p||1)-1:E.cumulative=j(V(E.cumulative,tt)+(U||0)),E.total=p,null!==U&&(E.points[D].push(E.cumulative),$[z]=E.cumulative,E.hasValidPoints=!0)}"percent"===Y&&(tr.usePercentage=!0),"group"!==Y&&(this.stackedYData=$),tr.oldStacks={}}let A=class A{constructor(e){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=e}buildStacks(){let e,p;let x=this.axis,y=x.series,b="xAxis"===x.coll,E=x.options.reversedStacks,O=y.length;for(this.resetStacks(),this.usePercentage=!1,p=O;p--;)e=y[E?p:O-p-1],b&&e.setGroupedPoints(x),e.setStackedPoints(x);if(!b)for(p=0;p{Y(e,e=>{e.cumulative=e.total})}))}resetStacks(){Y(this.stacks,e=>{Y(e,(p,x)=>{U(p.touched)&&p.touched{Y(e,e=>{e.render(E)})}),E.animate({opacity:1},b)}};return(E||(E={})).compose=function(e,p,x){let y=p.prototype,b=x.prototype;y.getStacks||(D(e,"init",$),D(e,"destroy",K),y.getStacks=q,b.getStackIndicator=_,b.modifyStacks=Z,b.percentStacker=J,b.setGroupedPoints=tt,b.setStackedPoints=te)},E}),x(p,"Series/Line/LineSeries.js",[p["Core/Series/Series.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Utilities.js"]],function(e,p,x){let{defined:y,merge:b,isObject:E}=x;let a=class a extends e{drawGraph(){let e=this.options,p=(this.gappedPath||this.getGraphPath).call(this),x=this.chart.styledMode;[this,...this.zones].forEach((y,O)=>{let L,D=y.graph,j=D?"animate":"attr",R=y.dashStyle||e.dashStyle;D?(D.endX=this.preventGraphAnimation?null:p.xMap,D.animate({d:p})):p.length&&(y.graph=D=this.chart.renderer.path(p).addClass("highcharts-graph"+(O?` highcharts-zone-graph-${O-1} `:" ")+(O&&y.className||"")).attr({zIndex:1}).add(this.group)),D&&!x&&(L={stroke:!O&&e.lineColor||y.color||this.color||"#cccccc","stroke-width":e.lineWidth||0,fill:this.fillGraph&&this.color||"none"},R?L.dashstyle=R:"square"!==e.linecap&&(L["stroke-linecap"]=L["stroke-linejoin"]="round"),D[j](L).shadow(O<2&&e.shadow&&b({filterUnits:"userSpaceOnUse"},E(e.shadow)?e.shadow:{}))),D&&(D.startX=p.xMap,D.isArea=p.isArea)})}getGraphPath(e,p,x){let b=this,E=b.options,O=[],L=[],D,j=E.step,R=(e=e||b.points).reversed;return R&&e.reverse(),(j=({right:1,center:2})[j]||j&&3)&&R&&(j=4-j),(e=this.getValidPoints(e,!1,!(E.connectNulls&&!p&&!x))).forEach(function(R,z){let F;let H=R.plotX,U=R.plotY,Y=e[z-1],V=R.isNull||"number"!=typeof U;(R.leftCliff||Y&&Y.rightCliff)&&!x&&(D=!0),V&&!y(p)&&z>0?D=!E.connectNulls:V&&!p?D=!0:(0===z||D?F=[["M",R.plotX,R.plotY]]:b.getPointSpline?F=[b.getPointSpline(e,R,z)]:j?(F=1===j?[["L",Y.plotX,U]]:2===j?[["L",(Y.plotX+H)/2,Y.plotY],["L",(Y.plotX+H)/2,U]]:[["L",H,Y.plotY]]).push(["L",H,U]):F=[["L",H,U]],L.push(R.x),j&&(L.push(R.x),2===j&&L.push(R.x)),O.push.apply(O,F),D=!1)}),O.xMap=L,b.graphPath=O,O}};return a.defaultOptions=b(e.defaultOptions,{legendSymbol:"lineMarker"}),p.registerSeriesType("line",a),a}),x(p,"Series/Area/AreaSeriesDefaults.js",[],function(){return{threshold:0,legendSymbol:"areaMarker"}}),x(p,"Series/Area/AreaSeries.js",[p["Series/Area/AreaSeriesDefaults.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Utilities.js"]],function(e,p,x){let{seriesTypes:{line:y}}=p,{extend:b,merge:E,objectEach:O,pick:L}=x;let l=class l extends y{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:e,options:p}=this;[this,...this.zones].forEach((x,y)=>{let b={},E=x.fillColor||p.fillColor,O=x.area,L=O?"animate":"attr";O?(O.endX=this.preventGraphAnimation?null:e.xMap,O.animate({d:e})):(b.zIndex=0,(O=x.area=this.chart.renderer.path(e).addClass("highcharts-area"+(y?` highcharts-zone-area-${y-1} `:" ")+(y&&x.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(b.fill=E||x.color||this.color,b["fill-opacity"]=E?1:p.fillOpacity??.75,O.css({pointerEvents:this.stickyTracking?"none":"auto"})),O[L](b),O.startX=e.xMap,O.shiftUnit=p.step?2:1})}getGraphPath(e){let p,x,b;let E=y.prototype.getGraphPath,O=this.options,D=O.stacking,j=this.yAxis,R=[],z=[],F=this.index,H=j.stacking.stacks[this.stackKey],U=O.threshold,Y=Math.round(j.getThreshold(O.threshold)),V=L(O.connectNulls,"percent"===D),q=function(x,y,b){let E=e[x],O=D&&H[E.x].points[F],L=E[b+"Null"]||0,V=E[b+"Cliff"]||0,q,K,$=!0;V||L?(q=(L?O[0]:O[1])+V,K=O[0]+V,$=!!L):!D&&e[y]&&e[y].isNull&&(q=K=U),void 0!==q&&(z.push({plotX:p,plotY:null===q?Y:j.getThreshold(q),isNull:$,isCliff:!0}),R.push({plotX:p,plotY:null===K?Y:j.getThreshold(K),doCurve:!1}))};e=e||this.points,D&&(e=this.getStackPoints(e));for(let y=0,E=e.length;ye.visible);y.forEach(function(e,O){let Y=0,V,q;if(j[e]&&!j[e].isNull)x.push(j[e]),[-1,1].forEach(function(x){let b=1===x?"rightNull":"leftNull",E=D[y[O+x]],L=0;if(E){let x=H;for(;x>=0&&x=0&&px&&E>j?(E=Math.max(x,j),L=2*j-E):EF&&L>j?(L=Math.max(F,j),E=2*j-L):L1){let b=this.xAxis.series.filter(e=>e.visible).map(e=>e.index),E=0,O=0;$(this.xAxis.stacking?.stacks,e=>{if("number"==typeof x.x){let p=e[x.x.toString()];if(p&&Y(p.points[this.index])){let e=Object.keys(p.points).filter(e=>!e.match(",")&&p.points[e]&&p.points[e].length>1).map(parseFloat).filter(e=>-1!==b.indexOf(e)).sort((e,p)=>p-e);E=e.indexOf(this.index),O=e.length}}}),E=this.xAxis.reversed?O-1-E:E;let L=(O-1)*y.paddedWidth+p;e=(x.plotX||0)+L/2-p-E*y.paddedWidth}return e}translate(){let e=this,p=e.chart,x=e.options,y=e.dense=e.closestPointRange*e.xAxis.transA<2,E=e.borderWidth=K(x.borderWidth,y?0:1),O=e.xAxis,L=e.yAxis,D=x.threshold,j=K(x.minPointLength,5),z=e.getColumnMetrics(),H=z.width,Y=e.pointXOffset=z.offset,q=e.dataMin,$=e.dataMax,_=e.translatedThreshold=L.getThreshold(D),Z=e.barW=Math.max(H,1+2*E);x.pointPadding&&(Z=Math.ceil(Z)),b.prototype.translate.apply(e),e.points.forEach(function(y){let b=K(y.yBottom,_),E=999+Math.abs(b),U=y.plotX||0,J=R(y.plotY,-E,L.len+E),tt,te=Math.min(J,b),ti=Math.max(J,b)-te,ts=H,to=U+Y,tr=Z;j&&Math.abs(ti)j?b-j:_-(tt?j:0)),F(y.options.pointWidth)&&(to-=Math.round(((ts=tr=Math.ceil(y.options.pointWidth))-H)/2)),x.centerInCategory&&!x.stacking&&(to=e.adjustForMissingColumns(to,ts,y,z)),y.barX=to,y.pointWidth=ts,y.tooltipPos=p.inverted?[R(L.len+L.pos-p.plotLeft-J,L.pos-p.plotLeft,L.len+L.pos-p.plotLeft),O.len+O.pos-p.plotTop-to-tr/2,ti]:[O.left-p.plotLeft+to+tr/2,R(J+L.pos-p.plotTop,L.pos-p.plotTop,L.len+L.pos-p.plotTop),ti],y.shapeType=e.pointClass.prototype.shapeType||"roundedRect",y.shapeArgs=e.crispCol(to,y.isNull?_:te,tr,y.isNull?0:ti)}),U(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(e,p){let x=this.options,y=this.pointAttrToOptions||{},b=y.stroke||"borderColor",E=y["stroke-width"]||"borderWidth",O,L,j,R=e&&e.color||this.color,z=e&&e[b]||x[b]||R,F=e&&e.options.dashStyle||x.dashStyle,H=e&&e[E]||x[E]||this[E]||0,U=K(e&&e.opacity,x.opacity,1);e&&this.zones.length&&(L=e.getZone(),R=e.options.color||L&&(L.color||e.nonZonedColor)||this.color,L&&(z=L.borderColor||z,F=L.dashStyle||F,H=L.borderWidth||H)),p&&e&&(j=(O=q(x.states[p],e.options.states&&e.options.states[p]||{})).brightness,R=O.color||void 0!==j&&D(R).brighten(O.brightness).get()||R,z=O[b]||z,H=O[E]||H,F=O.dashStyle||F,U=K(O.opacity,U));let Y={fill:R,stroke:z,"stroke-width":H,opacity:U};return F&&(Y.dashstyle=F),Y}drawPoints(e=this.points){let p;let x=this,y=this.chart,b=x.options,E=y.renderer,O=b.animationLimit||250;e.forEach(function(e){let L=e.plotY,D=e.graphic,j=!!D,R=D&&y.pointCounte?.enabled)}function x(e,p,x,y,b){let{chart:E,enabledDataSorting:D}=this,j=this.isCartesian&&E.inverted,R=e.plotX,F=e.plotY,U=x.rotation||0,Y=O(R)&&O(F)&&E.isInsidePlot(R,Math.round(F),{inverted:j,paneCoordinates:!0,series:this}),V=0===U&&"justify"===H(x.overflow,D?"none":"justify"),q=this.visible&&!1!==e.visible&&O(R)&&(e.series.forceDL||D&&!V||Y||H(x.inside,!!this.options.stacking)&&y&&E.isInsidePlot(R,j?y.x+1:y.y+y.height-1,{inverted:j,paneCoordinates:!0,series:this})),K=e.pos();if(q&&K){var $;let O=p.getBBox(),R=p.getBBox(void 0,0),F={right:1,center:.5}[x.align||0]||0,_={bottom:1,middle:.5}[x.verticalAlign||0]||0;if(y=L({x:K[0],y:Math.round(K[1]),width:0,height:0},y||{}),"plotEdges"===x.alignTo&&this.isCartesian&&(y[j?"x":"y"]=0,y[j?"width":"height"]=this.yAxis?.len||0),L(x,{width:O.width,height:O.height}),$=y,D&&this.xAxis&&!V&&this.setDataLabelStartPos(e,p,b,Y,$),p.align(z(x,{width:R.width,height:R.height}),!1,y,!1),p.alignAttr.x+=F*(R.width-O.width),p.alignAttr.y+=_*(R.height-O.height),p[p.placed?"animate":"attr"]({x:p.alignAttr.x+(O.width-R.width)/2,y:p.alignAttr.y+(O.height-R.height)/2,rotationOriginX:(p.width||0)/2,rotationOriginY:(p.height||0)/2}),V&&y.height>=0)this.justifyDataLabel(p,x,p.alignAttr,O,y,b);else if(H(x.crop,!0)){let{x:e,y:x}=p.alignAttr;q=E.isInsidePlot(e,x,{paneCoordinates:!0,series:this})&&E.isInsidePlot(e+O.width-1,x+O.height-1,{paneCoordinates:!0,series:this})}x.shape&&!U&&p[b?"attr":"animate"]({anchorX:K[0],anchorY:K[1]})}b&&D&&(p.placed=!1),q||D&&!V?(p.show(),p.placed=!0):(p.hide(),p.placed=!1)}function y(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function V(e){let p=this.hasRendered||0,x=this.initDataLabelsGroup().attr({opacity:+p});return!p&&x&&(this.visible&&x.show(),this.options.animation?x.animate({opacity:1},e):x.attr({opacity:1})),x}function q(e){let p;e=e||this.points;let x=this,y=x.chart,L=x.options,j=y.renderer,{backgroundColor:z,plotBackgroundColor:V}=y.options.chart,q=j.getContrast(R(V)&&V||R(z)&&z||"#000000"),K=_(x),{animation:Z,defer:J}=K[0],tt=J?b(y,Z,x):{defer:0,duration:0};D(this,"drawDataLabels"),x.hasDataLabels?.()&&(p=this.initDataLabels(tt),e.forEach(e=>{let b=e.dataLabels||[];Y($(K,e.dlOptions||e.options?.dataLabels)).forEach((D,z)=>{let Y=D.enabled&&(e.visible||e.dataLabelOnHidden)&&(!e.isNull||e.dataLabelOnNull)&&function(e,p){let x=p.filter;if(x){let p=x.operator,y=e[x.property],b=x.value;return">"===p&&y>b||"<"===p&&y="===p&&y>=b||"<="===p&&y<=b||"=="===p&&y==b||"==="===p&&y===b||"!="===p&&y!=b||"!=="===p&&y!==b}return!0}(e,D),{backgroundColor:V,borderColor:K,distance:$,style:_={}}=D,Z,J,tt,te,ti={},ts=b[z],to=!ts,tr;if(Y&&(J=H(D[e.formatPrefix+"Format"],D.format),Z=e.getLabelConfig(),tt=O(J)?E(J,Z,y):(D[e.formatPrefix+"Formatter"]||D.formatter).call(Z,D),te=D.rotation,!y.styledMode&&(_.color=H(D.color,_.color,R(x.color)?x.color:void 0,"#000000"),"contrast"===_.color?("none"!==V&&(tr=V),e.contrastColor=j.getContrast("auto"!==tr&&tr||e.color||x.color),_.color=tr||!O($)&&D.inside||0>U($||0)||L.stacking?e.contrastColor:q):delete e.contrastColor,L.cursor&&(_.cursor=L.cursor)),ti={r:D.borderRadius||0,rotation:te,padding:D.padding,zIndex:1},y.styledMode||(ti.fill="auto"===V?e.color:V,ti.stroke="auto"===K?e.color:K,ti["stroke-width"]=D.borderWidth),F(ti,(e,p)=>{void 0===e&&delete ti[p]})),!ts||Y&&O(tt)&&!!ts.div==!!D.useHTML&&(ts.rotation&&D.rotation||ts.rotation===D.rotation)||(ts=void 0,to=!0),Y&&O(tt)&&(ts?ti.text=tt:(ts=j.label(tt,0,0,D.shape,void 0,void 0,D.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(D.className||"")+(D.useHTML?" highcharts-tracker":"")),ts)){ts.options=D,ts.attr(ti),y.styledMode||ts.css(_).shadow(D.shadow);let E=D[e.formatPrefix+"TextPath"]||D.textPath;E&&!D.useHTML&&(ts.setTextPath(e.getDataLabelPath?.(ts)||e.graphic,E),e.dataLabelPath&&!E.enabled&&(e.dataLabelPath=e.dataLabelPath.destroy())),ts.added||ts.add(p),x.alignDataLabel(e,ts,D,void 0,to),ts.isActive=!0,b[z]&&b[z]!==ts&&b[z].destroy(),b[z]=ts}});let D=b.length;for(;D--;)b[D]&&b[D].isActive?b[D].isActive=!1:(b[D]?.destroy(),b.splice(D,1));e.dataLabel=b[0],e.dataLabels=b})),D(this,"afterDrawDataLabels")}function K(e,p,x,y,b,E){let O=this.chart,L=p.align,D=p.verticalAlign,j=e.box?0:e.padding||0,R=O.inverted?this.yAxis:this.xAxis,z=R?R.left-O.plotLeft:0,F=O.inverted?this.xAxis:this.yAxis,H=F?F.top-O.plotTop:0,{x:U=0,y:Y=0}=p,V,q;return(V=(x.x||0)+j+z)<0&&("right"===L&&U>=0?(p.align="left",p.inside=!0):U-=V,q=!0),(V=(x.x||0)+y.width-j+z)>O.plotWidth&&("left"===L&&U<=0?(p.align="right",p.inside=!0):U+=O.plotWidth-V,q=!0),(V=x.y+j+H)<0&&("bottom"===D&&Y>=0?(p.verticalAlign="top",p.inside=!0):Y-=V,q=!0),(V=(x.y||0)+y.height-j+H)>O.plotHeight&&("top"===D&&Y<=0?(p.verticalAlign="bottom",p.inside=!0):Y+=O.plotHeight-V,q=!0),q&&(p.x=U,p.y=Y,e.placed=!E,e.align(p,void 0,b)),q}function $(e,p){let x=[],y;if(j(e)&&!j(p))x=e.map(function(e){return z(e,p)});else if(j(p)&&!j(e))x=p.map(function(p){return z(e,p)});else if(j(e)||j(p)){if(j(e)&&j(p))for(y=Math.max(e.length,p.length);y--;)x[y]=z(e[y],p[y])}else x=z(e,p);return x}function _(e){let p=e.chart.options.plotOptions;return Y($($(p?.series?.dataLabels,p?.[e.type]?.dataLabels),e.options.dataLabels))}function Z(e,p,x,y,b){let E=this.chart,O=E.inverted,L=this.xAxis,D=L.reversed,j=((O?p.height:p.width)||0)/2,R=e.pointWidth,z=R?R/2:0;p.startXPos=O?b.x:D?-j-z:L.width-j+z,p.startYPos=O?D?this.yAxis.height-j+z:-j-z:b.y,y?"hidden"===p.visibility&&(p.show(),p.attr({opacity:0}).animate({opacity:1})):p.attr({opacity:1}).animate({opacity:0},void 0,p.hide),E.hasRendered&&(x&&p.attr({x:p.startXPos,y:p.startYPos}),p.placed=!0)}e.compose=function(e){let b=e.prototype;b.initDataLabels||(b.initDataLabels=V,b.initDataLabelsGroup=y,b.alignDataLabel=x,b.drawDataLabels=q,b.justifyDataLabel=K,b.setDataLabelStartPos=Z,b.hasDataLabels=p)}}(y||(y={})),y}),x(p,"Series/Column/ColumnDataLabel.js",[p["Core/Series/DataLabel.js"],p["Core/Globals.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Utilities.js"]],function(e,p,x,y){var b;let{composed:E}=p,{series:O}=x,{merge:L,pick:D,pushUnique:j}=y;return function(p){function x(e,p,x,y,b){let E=this.chart.inverted,j=e.series,R=(j.xAxis?j.xAxis.len:this.chart.plotSizeX)||0,z=(j.yAxis?j.yAxis.len:this.chart.plotSizeY)||0,F=e.dlBox||e.shapeArgs,H=D(e.below,e.plotY>D(this.translatedThreshold,z)),U=D(x.inside,!!this.options.stacking);if(F){if(y=L(F),!("allow"===x.overflow&&!1===x.crop)){y.y<0&&(y.height+=y.y,y.y=0);let e=y.y+y.height-z;e>0&&e\u25CF {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}}),x(p,"Series/Scatter/ScatterSeries.js",[p["Series/Scatter/ScatterSeriesDefaults.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Utilities.js"]],function(e,p,x){let{column:y,line:b}=p.seriesTypes,{addEvent:E,extend:O,merge:L}=x;let l=class l extends b{applyJitter(){let e=this,p=this.options.jitter,x=this.points.length;p&&this.points.forEach(function(y,b){["x","y"].forEach(function(E,O){if(p[E]&&!y.isNull){let L=`plot${E.toUpperCase()}`,D=e[`${E}Axis`],j=p[E]*D.transA;if(D&&!D.logarithmic){let e,p=Math.max(0,(y[L]||0)-j),R=Math.min(D.len,(y[L]||0)+j);y[L]=p+(R-p)*((e=1e4*Math.sin(b+O*x))-Math.floor(e)),"x"===E&&(y.clientX=y.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}};return l.defaultOptions=L(b.defaultOptions,e),O(l.prototype,{drawTracker:y.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),E(l,"afterTranslate",function(){this.applyJitter()}),p.registerSeriesType("scatter",l),l}),x(p,"Series/CenteredUtilities.js",[p["Core/Globals.js"],p["Core/Series/Series.js"],p["Core/Utilities.js"]],function(e,p,x){var y,b;let{deg2rad:E}=e,{fireEvent:O,isNumber:L,pick:D,relativeLength:j}=x;return(b=y||(y={})).getCenter=function(){let e=this.options,x=this.chart,y=2*(e.slicedOffset||0),b=x.plotWidth-2*y,E=x.plotHeight-2*y,R=e.center,z=Math.min(b,E),F=e.thickness,H,U=e.size,Y=e.innerSize||0,V,q;"string"==typeof U&&(U=parseFloat(U)),"string"==typeof Y&&(Y=parseFloat(Y));let K=[D(R[0],"50%"),D(R[1],"50%"),D(U&&U<0?void 0:e.size,"100%"),D(Y&&Y<0?void 0:e.innerSize||0,"0%")];for(!x.angular||this instanceof p||(K[3]=0),V=0;V<4;++V)q=K[V],H=V<2||2===V&&/%$/.test(q),K[V]=j(q,[b,E,z,K[2]][V])+(H?y:0);return K[3]>K[2]&&(K[3]=K[2]),L(F)&&2*F0&&(K[3]=K[2]-2*F),O(this,"afterGetCenter",{positions:K}),K},b.getStartAndEndRadians=function(e,p){let x=L(e)?e:0,y=L(p)&&p>x&&p-x<360?p:x+360;return{start:E*(x+-90),end:E*(y+-90)}},y}),x(p,"Series/Pie/PiePoint.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Series/Point.js"],p["Core/Utilities.js"]],function(e,p,x){let{setAnimation:y}=e,{addEvent:b,defined:E,extend:O,isNumber:L,pick:D,relativeLength:j}=x;let d=class d extends p{getConnectorPath(e){let p=e.dataLabelPosition,x=e.options||{},y=x.connectorShape,b=this.connectorShapes[y]||y;return p&&b.call(this,{...p.computed,alignment:p.alignment},p.connectorPosition,x)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(e){let p=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(p.x,p.y,p.r+e,p.r+e,{innerR:p.r-1,start:p.start,end:p.end,borderRadius:p.borderRadius})}constructor(e,p,x){super(e,p,x),this.half=0,this.name??(this.name="Slice");let y=e=>{this.slice("select"===e.type)};b(this,"select",y),b(this,"unselect",y)}isValid(){return L(this.y)&&this.y>=0}setVisible(e,p=!0){e!==this.visible&&this.update({visible:e??!this.visible},p,void 0,!1)}slice(e,p,x){let b=this.series;y(x,b.chart),p=D(p,!0),this.sliced=this.options.sliced=e=E(e)?e:!this.sliced,b.options.data[b.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}};return O(d.prototype,{connectorShapes:{fixedOffset:function(e,p,x){let y=p.breakAt,b=p.touchingSliceAt,E=x.softConnector?["C",e.x+("left"===e.alignment?-5:5),e.y,2*y.x-b.x,2*y.y-b.y,y.x,y.y]:["L",y.x,y.y];return[["M",e.x,e.y],E,["L",b.x,b.y]]},straight:function(e,p){let x=p.touchingSliceAt;return[["M",e.x,e.y],["L",x.x,x.y]]},crookedLine:function(e,p,x){let{breakAt:y,touchingSliceAt:b}=p,{series:E}=this,[O,L,D]=E.center,R=D/2,{plotLeft:z,plotWidth:F}=E.chart,H="left"===e.alignment,{x:U,y:Y}=e,V=y.x;if(x.crookDistance){let e=j(x.crookDistance,1);V=H?O+R+(F+z-O-R)*(1-e):z+(O-R)*e}else V=O+(L-Y)*Math.tan((this.angle||0)-Math.PI/2);let q=[["M",U,Y]];return(H?V<=U&&V>=y.x:V>=U&&V<=y.x)&&q.push(["L",V,Y]),q.push(["L",y.x,y.y],["L",b.x,b.y]),q}}}),d}),x(p,"Series/Pie/PieSeriesDefaults.js",[],function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),x(p,"Series/Pie/PieSeries.js",[p["Series/CenteredUtilities.js"],p["Series/Column/ColumnSeries.js"],p["Core/Globals.js"],p["Series/Pie/PiePoint.js"],p["Series/Pie/PieSeriesDefaults.js"],p["Core/Series/Series.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Renderer/SVG/Symbols.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E,O,L,D){let{getStartAndEndRadians:j}=e,{noop:R}=x,{clamp:z,extend:F,fireEvent:H,merge:U,pick:Y}=D;let m=class m extends E{animate(e){let p=this,x=p.points,y=p.startAngleRad;e||x.forEach(function(e){let x=e.graphic,b=e.shapeArgs;x&&b&&(x.attr({r:Y(e.startR,p.center&&p.center[3]/2),start:y,end:y}),x.animate({r:b.r,start:b.start,end:b.end},p.options.animation))})}drawEmpty(){let e,p;let x=this.startAngleRad,y=this.endAngleRad,b=this.options;0===this.total&&this.center?(e=this.center[0],p=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(e,p,this.center[1]/2,0,x,y).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:L.arc(e,p,this.center[2]/2,0,{start:x,end:y,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":b.borderWidth,fill:b.fillColor||"none",stroke:b.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let e=this.chart.renderer;this.points.forEach(function(p){p.graphic&&p.hasNewShapeType()&&(p.graphic=p.graphic.destroy()),p.graphic||(p.graphic=e[p.shapeType](p.shapeArgs).add(p.series.group),p.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(e,p,x,y){let b=this.center,E=this.radii?this.radii[x.index]||0:b[2]/2,O=y.dataLabelPosition,L=O?.distance||0,D=Math.asin(z((e-b[1])/(E+L),-1,1));return b[0]+Math.cos(D)*(E+L)*(p?-1:1)+(L>0?(p?-1:1)*(y.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let e,p,x,y;let b=this,E=b.chart;this.drawEmpty(),b.group&&!E.styledMode&&b.group.shadow(b.options.shadow),b.points.forEach(function(O){let L={};p=O.graphic,!O.isNull&&p?(y=O.shapeArgs,e=O.getTranslate(),E.styledMode||(x=b.pointAttribs(O,O.selected&&"select")),O.delayedRendering?(p.setRadialReference(b.center).attr(y).attr(e),E.styledMode||p.attr(x).attr({"stroke-linejoin":"round"}),O.delayedRendering=!1):(p.setRadialReference(b.center),E.styledMode||U(!0,L,x),U(!0,L,y,e),p.animate(L)),p.attr({visibility:O.visible?"inherit":"hidden"}),p.addClass(O.getClassName(),!0)):p&&(O.graphic=p.destroy())})}sortByAngle(e,p){e.sort(function(e,x){return void 0!==e.angle&&(x.angle-e.angle)*p})}translate(e){H(this,"translate"),this.generatePoints();let p=this.options,x=p.slicedOffset,y=j(p.startAngle,p.endAngle),b=this.startAngleRad=y.start,E=(this.endAngleRad=y.end)-b,O=this.points,L=p.ignoreHiddenPoint,D=O.length,R,z,F,U,Y,V,q,K=0;for(e||(this.center=e=this.getCenter()),V=0;V1.5*Math.PI?F-=2*Math.PI:F<-Math.PI/2&&(F+=2*Math.PI),q.slicedTranslation={translateX:Math.round(Math.cos(F)*x),translateY:Math.round(Math.sin(F)*x)},U=Math.cos(F)*e[2]/2,Y=Math.sin(F)*e[2]/2,q.tooltipPos=[e[0]+.7*U,e[1]+.7*Y],q.half=F<-Math.PI/2||F>Math.PI/2?1:0,q.angle=F}H(this,"afterTranslate")}updateTotals(){let e=this.points,p=e.length,x=this.options.ignoreHiddenPoint,y,b,E=0;for(y=0;y0&&(b.visible||!x)?b.y/E*100:0,b.total=E}};return m.defaultOptions=U(E.defaultOptions,b),F(m.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:p.prototype.drawTracker,getCenter:e.getCenter,getSymbol:R,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:p.prototype.pointAttribs,pointClass:y,requireSorting:!1,searchPoint:R,trackerGroups:["group","dataLabelsGroup"]}),O.registerSeriesType("pie",m),m}),x(p,"Series/Pie/PieDataLabel.js",[p["Core/Series/DataLabel.js"],p["Core/Globals.js"],p["Core/Renderer/RendererUtilities.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Utilities.js"]],function(e,p,x,y,b){var E;let{composed:O,noop:L}=p,{distribute:D}=x,{series:j}=y,{arrayMax:R,clamp:z,defined:F,pick:H,pushUnique:U,relativeLength:Y}=b;return function(p){let x={radialDistributionY:function(e,p){return(p.dataLabelPosition?.top||0)+e.distributeBox.pos},radialDistributionX:function(e,p,x,y,b){let E=b.dataLabelPosition;return e.getX(x<(E?.top||0)+2||x>(E?.bottom||0)-2?y:x,p.half,p,b)},justify:function(e,p,x,y){return y[0]+(e.half?-1:1)*(x+(p.dataLabelPosition?.distance||0))},alignToPlotEdges:function(e,p,x,y){let b=e.getBBox().width;return p?b+y:x-b-y},alignToConnectors:function(e,p,x,y){let b=0,E;return e.forEach(function(e){(E=e.dataLabel.getBBox().width)>b&&(b=E)}),p?b+y:x-b-y}};function y(e,p){let{center:x,options:y}=this,b=x[2]/2,E=e.angle||0,O=Math.cos(E),L=Math.sin(E),D=x[0]+O*b,j=x[1]+L*b,R=Math.min((y.slicedOffset||0)+(y.borderWidth||0),p/5);return{natural:{x:D+O*p,y:j+L*p},computed:{},alignment:p<0?"center":e.half?"right":"left",connectorPosition:{breakAt:{x:D+O*R,y:j+L*R},touchingSliceAt:{x:D,y:j}},distance:p}}function b(){let e=this,p=e.points,x=e.chart,y=x.plotWidth,b=x.plotHeight,E=x.plotLeft,O=Math.round(x.chartWidth/3),L=e.center,z=L[2]/2,U=L[1],V=[[],[]],q=[0,0,0,0],K=e.dataLabelPositioners,$,_,Z,J=0;e.visible&&e.hasDataLabels?.()&&(p.forEach(e=>{(e.dataLabels||[]).forEach(e=>{e.shortened&&(e.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),e.shortened=!1)})}),j.prototype.drawDataLabels.apply(e),p.forEach(e=>{(e.dataLabels||[]).forEach((p,x)=>{let y=L[2]/2,b=p.options,E=Y(b?.distance||0,y);0===x&&V[e.half].push(e),!F(b?.style?.width)&&p.getBBox().width>O&&(p.css({width:Math.round(.7*O)+"px"}),p.shortened=!0),p.dataLabelPosition=this.getDataLabelPosition(e,E),J=Math.max(J,E)})}),V.forEach((p,O)=>{let j=p.length,R=[],Y,V,$=0,tt;j&&(e.sortByAngle(p,O-.5),J>0&&(Y=Math.max(0,U-z-J),V=Math.min(U+z+J,x.plotHeight),p.forEach(e=>{(e.dataLabels||[]).forEach(p=>{let y=p.dataLabelPosition;y&&y.distance>0&&(y.top=Math.max(0,U-z-y.distance),y.bottom=Math.min(U+z+y.distance,x.plotHeight),$=p.getBBox().height||21,e.distributeBox={target:(p.dataLabelPosition?.natural.y||0)-y.top+$/2,size:$,rank:e.y},R.push(e.distributeBox))})}),D(R,tt=V+$-Y,tt/5)),p.forEach(x=>{(x.dataLabels||[]).forEach(D=>{let j=D.options||{},U=x.distributeBox,Y=D.dataLabelPosition,V=Y?.natural.y||0,$=j.connectorPadding||0,J=0,tt=V,te="inherit";if(Y){if(R&&F(U)&&Y.distance>0&&(void 0===U.pos?te="hidden":(Z=U.size,tt=K.radialDistributionY(x,D))),j.justify)J=K.justify(x,D,z,L);else switch(j.alignTo){case"connectors":J=K.alignToConnectors(p,O,y,E);break;case"plotEdges":J=K.alignToPlotEdges(D,O,y,E);break;default:J=K.radialDistributionX(e,x,tt,V,D)}if(Y.attribs={visibility:te,align:Y.alignment},Y.posAttribs={x:J+(j.x||0)+(({left:$,right:-$})[Y.alignment]||0),y:tt+(j.y||0)-D.getBBox().height/2},Y.computed.x=J,Y.computed.y=tt,H(j.crop,!0)){let e;J-(_=D.getBBox().width)<$&&1===O?(e=Math.round(_-J+$),q[3]=Math.max(e,q[3])):J+_>y-$&&0===O&&(e=Math.round(J+_-y+$),q[1]=Math.max(e,q[1])),tt-Z/2<0?q[0]=Math.max(Math.round(-tt+Z/2),q[0]):tt+Z/2>b&&(q[2]=Math.max(Math.round(tt+Z/2-b),q[2])),Y.sideOverflow=e}}})}))}),(0===R(q)||this.verifyDataLabelOverflow(q))&&(this.placeDataLabels(),this.points.forEach(p=>{(p.dataLabels||[]).forEach(y=>{let{connectorColor:b,connectorWidth:E=1}=y.options||{},O=y.dataLabelPosition;if(E){let L;$=y.connector,O&&O.distance>0?(L=!$,$||(y.connector=$=x.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+p.colorIndex+(p.className?" "+p.className:"")).add(e.dataLabelsGroup)),x.styledMode||$.attr({"stroke-width":E,stroke:b||p.color||"#666666"}),$[L?"attr":"animate"]({d:p.getConnectorPath(y)}),$.attr({visibility:O.attribs?.visibility})):$&&(y.connector=$.destroy())}})})))}function E(){this.points.forEach(e=>{(e.dataLabels||[]).forEach(e=>{let p=e.dataLabelPosition;p?(p.sideOverflow&&(e.css({width:Math.max(e.getBBox().width-p.sideOverflow,0)+"px",textOverflow:(e.options?.style||{}).textOverflow||"ellipsis"}),e.shortened=!0),e.attr(p.attribs),e[e.moved?"animate":"attr"](p.posAttribs),e.moved=!0):e&&e.attr({y:-9999})}),delete e.distributeBox},this)}function V(e){let p=this.center,x=this.options,y=x.center,b=x.minSize||80,E=b,O=null!==x.size;return!O&&(null!==y[0]?E=Math.max(p[2]-Math.max(e[1],e[3]),b):(E=Math.max(p[2]-e[1]-e[3],b),p[0]+=(e[3]-e[1])/2),null!==y[1]?E=z(E,b,p[2]-Math.max(e[0],e[2])):(E=z(E,b,p[2]-e[0]-e[2]),p[1]+=(e[0]-e[2])/2),E!(p.x>=e.x+e.width||p.x+p.width<=e.x||p.y>=e.y+e.height||p.y+p.height<=e.y),b,E,L,D,j,R=!1;for(let x=0;x(p.labelrank||0)-(e.labelrank||0));for(let x=0;x{y(e,e=>{e.label&&p.push(e.label)})});for(let x of e.series||[])if(x.visible&&x.hasDataLabels?.()){let y=x=>{for(let y of x)y.visible&&(y.dataLabels||[]).forEach(x=>{let E=x.options||{};x.labelrank=b(E.labelrank,y.labelrank,y.shapeArgs?.height),E.allowOverlap??Number(E.distance)>0?(x.oldOpacity=x.opacity,x.newOpacity=1,O(x,e)):p.push(x)})};y(x.nodes||[]),y(x.points)}this.hideOverlappingLabels(p)}return{compose:function(e){let x=e.prototype;x.hideOverlappingLabels||(x.hideOverlappingLabels=E,p(e,"render",L))}}}),x(p,"Extensions/BorderRadius.js",[p["Core/Defaults.js"],p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p,x){let{defaultOptions:y}=e,{noop:b}=p,{addEvent:E,extend:O,isObject:L,merge:D,relativeLength:j}=x,R={radius:0,scope:"stack",where:void 0},z=b,F=b;function H(e,p,x,y,b={}){let E=z(e,p,x,y,b),{innerR:O=0,r:L=x,start:D=0,end:R=0}=b;if(b.open||!b.borderRadius)return E;let F=R-D,U=Math.sin(F/2),Y=Math.max(Math.min(j(b.borderRadius||0,L-O),(L-O)/2,L*U/(1+U)),0),V=Math.min(Y,F/Math.PI*2*O),q=E.length-1;for(;q--;)!function(e,p,x){let y,b,E;let O=e[p],L=e[p+1];if("Z"===L[0]&&(L=e[0]),("M"===O[0]||"L"===O[0])&&"A"===L[0]?(y=O,b=L,E=!0):"A"===O[0]&&("M"===L[0]||"L"===L[0])&&(y=L,b=O),y&&b&&b.params){let O=b[1],L=b[5],D=b.params,{start:j,end:R,cx:z,cy:F}=D,H=L?O-x:O+x,U=H?Math.asin(x/H):0,Y=L?U:-U,V=Math.cos(U)*H;E?(D.start=j+Y,y[1]=z+V*Math.cos(j),y[2]=F+V*Math.sin(j),e.splice(p+1,0,["A",x,x,0,0,1,z+O*Math.cos(D.start),F+O*Math.sin(D.start)])):(D.end=R-Y,b[6]=z+O*Math.cos(D.end),b[7]=F+O*Math.sin(D.end),e.splice(p+1,0,["A",x,x,0,0,1,z+V*Math.cos(R),F+V*Math.sin(R)])),b[4]=Math.abs(D.end-D.start)1?V:Y);return E}function U(){if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:e,yAxis:p}=this,x="percent"===e.stacking,b=y.plotOptions?.[this.type]?.borderRadius,E=Y(e.borderRadius,L(b)?b:{}),D=p.options.reversed;for(let y of this.points){let{shapeArgs:b}=y;if("roundedRect"===y.shapeType&&b){let{width:L=0,height:R=0,y:z=0}=b,F=z,H=R;if("stack"===E.scope&&y.stackTotal){let b=p.translate(x?100:y.stackTotal,!1,!0,!1,!0),E=p.translate(e.threshold||0,!1,!0,!1,!0),O=this.crispCol(0,Math.min(b,E),0,Math.abs(b-E));F=O.y,H=O.height}let U=(y.negative?-1:1)*(D?-1:1)==-1,Y=E.where;!Y&&this.is("waterfall")&&Math.abs((y.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(Y="all"),Y||(Y="end");let V=Math.min(j(E.radius,L),L/2,"all"===Y?R/2:1/0)||0;"end"===Y&&(U&&(F-=V),H+=V),O(b,{brBoxHeight:H,brBoxY:F,r:V})}}}}function Y(e,p){return L(e)||(e={radius:e||0}),D(R,p,e)}function V(){let e=Y(this.options.borderRadius);for(let p of this.points){let x=p.shapeArgs;x&&(x.borderRadius=j(e.radius,(x.r||0)-(x.innerR||0)))}}function q(e,p,x,y,b={}){let E=F(e,p,x,y,b),{r:O=0,brBoxHeight:L=y,brBoxY:D=p}=b,j=p-D,R=D+L-(p+y),z=j-O>-.1?0:O,H=R-O>-.1?0:O,U=Math.max(z&&j,0),Y=Math.max(H&&R,0),V=[e+z,p],K=[e+x-z,p],$=[e+x,p+z],_=[e+x,p+y-H],Z=[e+x-H,p+y],J=[e+H,p+y],tt=[e,p+y-H],te=[e,p+z],ti=(e,p)=>Math.sqrt(Math.pow(e,2)-Math.pow(p,2));if(U){let e=ti(z,z-U);V[0]-=e,K[0]+=e,$[1]=te[1]=p+z-U}if(y=O(x.minWidth,0)&&this.chartHeight>=O(x.minHeight,0)}).call(this)&&p.push(e._id)}function D(e,p){let y=this.options.responsive,O=this.currentResponsive,D=[],j;!p&&y&&y.rules&&y.rules.forEach(e=>{void 0===e._id&&(e._id=L()),this.matchResponsiveRule(e,D)},this);let R=E(...D.map(e=>b((y||{}).rules||[],p=>p._id===e)).map(e=>e&&e.chartOptions));R.isResponsiveOptions=!0,D=D.toString()||void 0;let z=O&&O.ruleIds;D!==z&&(O&&this.update(O.undoOptions,e,!0),D?((j=x(R,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:D,mergedOptions:R,undoOptions:j},this.update(R,e,!0)):this.currentResponsive=void 0)}e.compose=function(e){let x=e.prototype;return x.matchResponsiveRule||y(x,{matchResponsiveRule:p,setResponsive:D}),e}}(p||(p={})),p}),x(p,"masters/highcharts.src.js",[p["Core/Globals.js"],p["Core/Utilities.js"],p["Core/Defaults.js"],p["Core/Animation/Fx.js"],p["Core/Animation/AnimationUtilities.js"],p["Core/Renderer/HTML/AST.js"],p["Core/Templating.js"],p["Core/Renderer/RendererRegistry.js"],p["Core/Renderer/RendererUtilities.js"],p["Core/Renderer/SVG/SVGElement.js"],p["Core/Renderer/SVG/SVGRenderer.js"],p["Core/Renderer/HTML/HTMLElement.js"],p["Core/Axis/Axis.js"],p["Core/Axis/DateTimeAxis.js"],p["Core/Axis/LogarithmicAxis.js"],p["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],p["Core/Axis/Tick.js"],p["Core/Tooltip.js"],p["Core/Series/Point.js"],p["Core/Pointer.js"],p["Core/Legend/Legend.js"],p["Core/Legend/LegendSymbol.js"],p["Core/Chart/Chart.js"],p["Extensions/ScrollablePlotArea.js"],p["Core/Axis/Stacking/StackingAxis.js"],p["Core/Axis/Stacking/StackItem.js"],p["Core/Series/Series.js"],p["Core/Series/SeriesRegistry.js"],p["Series/Column/ColumnDataLabel.js"],p["Series/Pie/PieDataLabel.js"],p["Core/Series/DataLabel.js"],p["Extensions/OverlappingDataLabels.js"],p["Extensions/BorderRadius.js"],p["Core/Responsive.js"],p["Core/Color/Color.js"],p["Core/Time.js"]],function(e,p,x,y,b,E,O,L,D,j,R,z,F,H,U,Y,V,q,K,$,_,Z,J,tt,te,ti,ts,to,tr,tn,ta,tl,th,td,tc,tp){return e.AST=E,e.Axis=F,e.Chart=J,e.Color=tc,e.DataLabel=ta,e.Fx=y,e.HTMLElement=z,e.Legend=_,e.LegendSymbol=Z,e.OverlappingDataLabels=e.OverlappingDataLabels||tl,e.PlotLineOrBand=Y,e.Point=K,e.Pointer=$,e.RendererRegistry=L,e.Series=ts,e.SeriesRegistry=to,e.StackItem=ti,e.SVGElement=j,e.SVGRenderer=R,e.Templating=O,e.Tick=V,e.Time=tp,e.Tooltip=q,e.animate=b.animate,e.animObject=b.animObject,e.chart=J.chart,e.color=tc.parse,e.dateFormat=O.dateFormat,e.defaultOptions=x.defaultOptions,e.distribute=D.distribute,e.format=O.format,e.getDeferredAnimation=b.getDeferredAnimation,e.getOptions=x.getOptions,e.numberFormat=O.numberFormat,e.seriesType=to.seriesType,e.setAnimation=b.setAnimation,e.setOptions=x.setOptions,e.stop=b.stop,e.time=x.defaultTime,e.timers=y.timers,th.compose(e.Series,e.SVGElement,e.SVGRenderer),tr.compose(e.Series.types.column),ta.compose(e.Series),H.compose(e.Axis),z.compose(e.SVGRenderer),_.compose(e.Chart),U.compose(e.Axis),tl.compose(e.Chart),tn.compose(e.Series.types.pie),Y.compose(e.Axis),$.compose(e.Chart),td.compose(e.Chart),tt.compose(e.Axis,e.Chart,e.Series),te.compose(e.Axis,e.Chart,e.Series),q.compose(e.Pointer),p.extend(e,p),e}),x(p,"Series/DataModifyComposition.js",[p["Core/Axis/Axis.js"],p["Core/Series/Point.js"],p["Core/Series/Series.js"],p["Core/Utilities.js"]],function(e,p,x,y){var b;let{tooltipFormatter:E}=p.prototype,{addEvent:O,arrayMax:L,arrayMin:D,correctFloat:j,defined:R,isArray:z,isNumber:F,isString:H,pick:U}=y;return function(e){function p(e,p,x){!this.isXAxis&&(this.series.forEach(function(x){"compare"===e&&"boolean"!=typeof p?x.setCompare(p,!1):"cumulative"!==e||H(p)||x.setCumulative(p,!1)}),U(x,!0)&&this.chart.redraw())}function x(e){let p=this,{numberFormatter:x}=p.series.chart,y=function(y){e=e.replace("{point."+y+"}",(p[y]>0&&"change"===y?"+":"")+x(p[y],U(p.series.tooltipOptions.changeDecimals,2)))};return R(p.change)&&y("change"),R(p.cumulativeSum)&&y("cumulativeSum"),E.apply(this,[e])}function y(){let e;let p=this.options.compare;("percent"===p||"value"===p||this.options.cumulative)&&(e=new v(this),"percent"===p||"value"===p?e.initCompare(p):e.initCumulative()),this.dataModify=e}function b(e){let p=e.dataExtremes,x=p.activeYData;if(this.dataModify&&p){let e;this.options.compare?e=[this.dataModify.modifyValue(p.dataMin),this.dataModify.modifyValue(p.dataMax)]:this.options.cumulative&&z(x)&&x.length>=2&&(e=v.getCumulativeExtremes(x)),e&&(p.dataMin=D(e),p.dataMax=L(e))}}function Y(e,p){this.options.compare=this.userOptions.compare=e,this.update({},U(p,!0)),this.dataModify&&("value"===e||"percent"===e)?this.dataModify.initCompare(e):this.points.forEach(e=>{delete e.change})}function V(){if(this.xAxis&&this.processedYData&&this.dataModify){let e=this.processedXData,p=this.processedYData,x=p.length,y=!0===this.options.compareStart?0:1,b=-1,E;for(this.pointArrayMap&&(b=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y")),E=0;E-1?p[E][b]:p[E];if(F(x)&&0!==x&&e[E+y]>=(this.xAxis.min||0)){this.dataModify.compareValue=x;break}}}}function q(e,p){this.setModifier("compare",e,p)}function K(e,p){e=U(e,!1),this.options.cumulative=this.userOptions.cumulative=e,this.update({},U(p,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(e=>{delete e.cumulativeSum})}function $(e,p){this.setModifier("cumulative",e,p)}e.compose=function(e,E,L){let D=E.prototype,j=L.prototype,R=e.prototype;return R.setCompare||(R.setCompare=Y,R.setCumulative=K,O(e,"afterInit",y),O(e,"afterGetExtremes",b),O(e,"afterProcessData",V)),D.setCompare||(D.setCompare=q,D.setModifier=p,D.setCumulative=$,j.tooltipFormatter=x),e};let v=class v{constructor(e){this.series=e}modifyValue(){return 0}static getCumulativeExtremes(e){let p=1/0,x=-1/0;return e.reduce((e,y)=>{let b=e+y;return p=Math.min(p,b,e),x=Math.max(x,b,e),b}),[p,x]}initCompare(e){this.modifyValue=function(p,x){null===p&&(p=0);let y=this.compareValue;if(void 0!==p&&void 0!==y){if("value"===e?p-=y:p=p/y*100-(100===this.series.options.compareBase?0:100),void 0!==x){let e=this.series.points[x];e&&(e.change=p)}return p}return 0}}initCumulative(){this.modifyValue=function(e,p){if(null===e&&(e=0),void 0!==e&&void 0!==p){let x=p>0?this.series.points[p-1]:null;x&&x.cumulativeSum&&(e=j(x.cumulativeSum+e));let y=this.series.points[p],b=y.series.options.cumulativeStart,E=y.x<=this.series.xAxis.max&&y.x>=this.series.xAxis.min;return y&&(!b||E?y.cumulativeSum=e:y.cumulativeSum=void 0),e}return 0}}};e.Additions=v}(b||(b={})),b}),x(p,"Stock/Navigator/ChartNavigatorComposition.js",[p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p){let x;let{isTouchDevice:y}=e,{addEvent:b,merge:E,pick:O}=p,L=[];function D(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function j(){let e,p,x;let y=this.legend,b=this.navigator;if(b){e=y&&y.options,p=b.xAxis,x=b.yAxis;let{scrollbarHeight:E,scrollButtonSize:L}=b;this.inverted?(b.left=b.opposite?this.chartWidth-E-b.height:this.spacing[3]+E,b.top=this.plotTop+L):(b.left=O(p.left,this.plotLeft+L),b.top=b.navigatorOptions.top||this.chartHeight-b.height-E-(this.scrollbar?.options.margin||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&"bottom"===e.verticalAlign&&"proximate"!==e.layout&&e.enabled&&!e.floating?y.legendHeight+O(e.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),p&&x&&(this.inverted?p.options.left=x.options.left=b.left:p.options.top=x.options.top=b.top,p.setAxisSize(),x.setAxisSize())}}function R(e){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new x(this),O(e.redraw,!0)&&this.redraw(e.animation))}function z(){let e=this.options;(e.navigator.enabled||e.scrollbar.enabled)&&(this.scroller=this.navigator=new x(this))}function F(){let e=this.options,p=e.navigator,x=e.rangeSelector;if((p&&p.enabled||x&&x.enabled)&&(!y&&"x"===this.zooming.type||y&&"x"===this.zooming.pinchType))return!1}function H(e){let p=e.navigator;if(p&&e.xAxis[0]){let x=e.xAxis[0].getExtremes();p.render(x.min,x.max)}}function U(e){let p=e.options.navigator||{},x=e.options.scrollbar||{};!this.navigator&&!this.scroller&&(p.enabled||x.enabled)&&(E(!0,this.options.navigator,p),E(!0,this.options.scrollbar,x),delete e.options.navigator,delete e.options.scrollbar)}return{compose:function(e,y){if(p.pushUnique(L,e)){let p=e.prototype;x=y,p.callbacks.push(H),b(e,"afterAddSeries",D),b(e,"afterSetChartSize",j),b(e,"afterUpdate",R),b(e,"beforeRender",z),b(e,"beforeShowResetZoom",F),b(e,"update",U)}}}}),x(p,"Core/Axis/NavigatorAxisComposition.js",[p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p){let{isTouchDevice:x}=e,{addEvent:y,correctFloat:b,defined:E,isNumber:O,pick:L}=p;function D(){this.navigatorAxis||(this.navigatorAxis=new d(this))}function j(e){let p;let y=this.chart,b=y.options,O=b.navigator,L=this.navigatorAxis,D=y.zooming.pinchType,j=b.rangeSelector,R=y.zooming.type;if(this.isXAxis&&(O?.enabled||j?.enabled)){if("y"===R&&"zoom"===e.trigger)p=!1;else if(("zoom"===e.trigger&&"xy"===R||x&&"xy"===D)&&this.options.range){let p=L.previousZoom;E(e.min)?L.previousZoom=[this.min,this.max]:p&&(e.min=p[0],e.max=p[1],L.previousZoom=void 0)}}void 0!==p&&e.preventDefault()}let d=class d{static compose(e){e.keepProps.includes("navigatorAxis")||(e.keepProps.push("navigatorAxis"),y(e,"init",D),y(e,"setExtremes",j))}constructor(e){this.axis=e}destroy(){this.axis=void 0}toFixedRange(e,p,x,y){let D=this.axis,j=(D.pointRange||0)/2,R=L(x,D.translate(e,!0,!D.horiz)),z=L(y,D.translate(p,!0,!D.horiz));return E(x)||(R=b(R+j)),E(y)||(z=b(z-j)),O(R)&&O(z)||(R=z=void 0),{min:R,max:z}}};return d}),x(p,"Stock/Navigator/NavigatorDefaults.js",[p["Core/Color/Color.js"],p["Core/Series/SeriesRegistry.js"]],function(e,p){let{parse:x}=e,{seriesTypes:y}=p;return{height:40,margin:25,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:x("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===y.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),x(p,"Stock/Navigator/NavigatorSymbols.js",[p["Core/Renderer/SVG/Symbols.js"],p["Core/Utilities.js"]],function(e,p){let{relativeLength:x}=p;return{"navigator-handle":function(p,y,b,E,O={}){let L=O.width?O.width/2:b,D=x(O.borderRadius||0,Math.min(2*L,E));return[["M",-1.5,(E=O.height||E)/2-3.5],["L",-1.5,E/2+4.5],["M",.5,E/2-3.5],["L",.5,E/2+4.5],...e.rect(-L-1,.5,2*L+1,E,{r:D})]}}}),x(p,"Stock/Utilities/StockUtilities.js",[p["Core/Utilities.js"]],function(e){let{defined:p}=e;return{setFixedRange:function(e){let x=this.xAxis[0];p(x.dataMax)&&p(x.dataMin)&&e?this.fixedRange=Math.min(e,x.dataMax-x.dataMin):this.fixedRange=e}}}),x(p,"Stock/Navigator/NavigatorComposition.js",[p["Core/Defaults.js"],p["Core/Globals.js"],p["Core/Axis/NavigatorAxisComposition.js"],p["Stock/Navigator/NavigatorDefaults.js"],p["Stock/Navigator/NavigatorSymbols.js"],p["Core/Renderer/RendererRegistry.js"],p["Stock/Utilities/StockUtilities.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E,O,L){let{setOptions:D}=e,{composed:j}=p,{getRendererType:R}=E,{setFixedRange:z}=O,{addEvent:F,extend:H,pushUnique:U}=L;function Y(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(e,p,E){x.compose(p),U(j,"Navigator")&&(e.prototype.setFixedRange=z,H(R().prototype.symbols,b),F(E,"afterUpdate",Y),D({navigator:y}))}}}),x(p,"Core/Axis/ScrollbarAxis.js",[p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p){var x;let{composed:y}=e,{addEvent:b,defined:E,pick:O,pushUnique:L}=p;return function(e){let p;function x(e){let p=O(e.options&&e.options.min,e.min),x=O(e.options&&e.options.max,e.max);return{axisMin:p,axisMax:x,scrollMin:E(e.dataMin)?Math.min(p,e.min,e.dataMin,O(e.threshold,1/0)):p,scrollMax:E(e.dataMax)?Math.max(x,e.max,e.dataMax,O(e.threshold,-1/0)):x}}function D(){let e=this.scrollbar,p=e&&!e.options.opposite,x=this.horiz?2:p?3:1;e&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[x]+=e.size+(e.options.margin||0))}function j(){let e=this;e.options&&e.options.scrollbar&&e.options.scrollbar.enabled&&(e.options.scrollbar.vertical=!e.horiz,e.options.startOnTick=e.options.endOnTick=!1,e.scrollbar=new p(e.chart.renderer,e.options.scrollbar,e.chart),b(e.scrollbar,"changed",function(p){let y,b;let{axisMin:O,axisMax:L,scrollMin:D,scrollMax:j}=x(e),R=j-D;if(E(O)&&E(L)){if(e.horiz&&!e.reversed||!e.horiz&&e.reversed?(y=D+R*this.to,b=D+R*this.from):(y=D+R*(1-this.from),b=D+R*(1-this.to)),this.shouldUpdateExtremes(p.DOMType)){let x="mousemove"!==p.DOMType&&"touchmove"!==p.DOMType&&void 0;e.setExtremes(b,y,!0,x,p)}else this.setRange(this.from,this.to)}}))}function R(){let e,p,y;let{scrollMin:b,scrollMax:O}=x(this),L=this.scrollbar,D=this.axisTitleMargin+(this.titleOffset||0),j=this.chart.scrollbarsOffsets,R=this.options.margin||0;if(L&&j){if(this.horiz)this.opposite||(j[1]+=D),L.position(this.left,this.top+this.height+2+j[1]-(this.opposite?R:0),this.width,this.height),this.opposite||(j[1]+=R),e=1;else{let p;this.opposite&&(j[0]+=D),p=L.options.opposite?this.left+this.width+2+j[0]-(this.opposite?0:R):this.opposite?0:R,L.position(p,this.top,this.width,this.height),this.opposite&&(j[0]+=R),e=0}j[e]+=L.size+(L.options.margin||0),isNaN(b)||isNaN(O)||!E(this.min)||!E(this.max)||this.min===this.max?L.setRange(0,1):(p=(this.min-b)/(O-b),y=(this.max-b)/(O-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?L.setRange(p,y):L.setRange(1-y,1-p))}}e.compose=function(e,x){L(y,"Axis.Scrollbar")&&(p=x,b(e,"afterGetOffset",D),b(e,"afterInit",j),b(e,"afterRender",R))}}(x||(x={})),x}),x(p,"Stock/Scrollbar/ScrollbarDefaults.js",[],function(){return{height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1}}),x(p,"Stock/Scrollbar/Scrollbar.js",[p["Core/Defaults.js"],p["Core/Globals.js"],p["Core/Axis/ScrollbarAxis.js"],p["Stock/Scrollbar/ScrollbarDefaults.js"],p["Core/Utilities.js"]],function(e,p,x,y,b){let{defaultOptions:E}=e,{addEvent:O,correctFloat:L,crisp:D,defined:j,destroyObjectProperties:R,fireEvent:z,merge:F,pick:H,removeEvent:U}=b;let f=class f{static compose(e){x.compose(e,f)}static swapXY(e,p){return p&&e.forEach(e=>{let p;let x=e.length;for(let y=0;ythis.calculatedWidth?p.minWidth:0;return{chartX:(e.chartX-this.x-this.xOffset)/(this.barWidth-x),chartY:(e.chartY-this.y-this.yOffset)/(this.barWidth-x)}}destroy(){let e=this,p=e.chart.scroller;e.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(p){e[p]&&e[p].destroy&&(e[p]=e[p].destroy())}),p&&e===p.scrollbar&&(p.scrollbar=null,R(p.scrollbarButtons))}drawScrollbarButton(e){let p=this.renderer,x=this.scrollbarButtons,y=this.options,b=this.size,E=p.g().add(this.group);if(x.push(E),y.buttonsEnabled){let O=p.rect().addClass("highcharts-scrollbar-button").add(E);this.chart.styledMode||O.attr({stroke:y.buttonBorderColor,"stroke-width":y.buttonBorderWidth,fill:y.buttonBackgroundColor}),O.attr(O.crisp({x:-.5,y:-.5,width:b,height:b,r:y.buttonBorderRadius},O.strokeWidth()));let L=p.path(f.swapXY([["M",b/2+(e?-1:1),b/2-3],["L",b/2+(e?-1:1),b/2+3],["L",b/2+(e?2:-2),b/2]],y.vertical)).addClass("highcharts-scrollbar-arrow").add(x[e]);this.chart.styledMode||L.attr({fill:y.buttonArrowColor})}}init(e,p,x){this.scrollbarButtons=[],this.renderer=e,this.userOptions=p,this.options=F(y,E.scrollbar,p),this.options.margin=H(this.options.margin,10),this.chart=x,this.size=H(this.options.size,this.options.height),p.enabled&&(this.render(),this.addEvents())}mouseDownHandler(e){let p=this.chart.pointer?.normalize(e)||e,x=this.cursorToScrollbarPosition(p);this.chartX=x.chartX,this.chartY=x.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(e){let p;let x=this.chart.pointer?.normalize(e)||e,y=this.options.vertical?"chartY":"chartX",b=this.initPositions||[];this.grabbedCenter&&(!e.touches||0!==e.touches[0][y])&&(p=this.cursorToScrollbarPosition(x)[y]-this[y],this.hasDragged=!0,this.updatePosition(b[0]+p,b[1]+p),this.hasDragged&&z(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:e.type,DOMEvent:e}))}mouseUpHandler(e){this.hasDragged&&z(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:e.type,DOMEvent:e}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(e,p,x,y){let{buttonsEnabled:b,margin:E=0,vertical:O}=this.options,L=this.rendered?"animate":"attr",D=y,j=0;this.group.show(),this.x=e,this.y=p+this.trackBorderWidth,this.width=x,this.height=y,this.xOffset=D,this.yOffset=j,O?(this.width=this.yOffset=x=j=this.size,this.xOffset=D=0,this.yOffset=j=b?this.size:0,this.barWidth=y-(b?2*x:0),this.x=e+=E):(this.height=y=this.size,this.xOffset=D=b?this.size:0,this.barWidth=x-(b?2*y:0),this.y=this.y+E),this.group[L]({translateX:e,translateY:this.y}),this.track[L]({width:x,height:y}),this.scrollbarButtons[1][L]({translateX:O?0:x-D,translateY:O?y-j:0})}removeEvents(){this._events.forEach(function(e){U.apply(null,e)}),this._events.length=0}render(){let e=this.renderer,p=this.options,x=this.size,y=this.chart.styledMode,b=e.g("scrollbar").attr({zIndex:p.zIndex}).hide().add();this.group=b,this.track=e.rect().addClass("highcharts-scrollbar-track").attr({r:p.trackBorderRadius||0,height:x,width:x}).add(b),y||this.track.attr({fill:p.trackBackgroundColor,stroke:p.trackBorderColor,"stroke-width":p.trackBorderWidth});let E=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-D(0,E),y:-D(0,E)}),this.scrollbarGroup=e.g().add(b),this.scrollbar=e.rect().addClass("highcharts-scrollbar-thumb").attr({height:x-E,width:x-E,r:p.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=e.path(f.swapXY([["M",-3,x/4],["L",-3,2*x/3],["M",0,x/4],["L",0,2*x/3],["M",3,x/4],["L",3,2*x/3]],p.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),y||(this.scrollbar.attr({fill:p.barBackgroundColor,stroke:p.barBorderColor,"stroke-width":p.barBorderWidth}),this.scrollbarRifles.attr({stroke:p.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-D(0,this.scrollbarStrokeWidth),-D(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(e,p){let x,y;let b=this.options,E=b.vertical,O=b.minWidth,D=this.barWidth,R=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!j(D))return;let z=D*Math.min(p,1);x=Math.ceil(D*(e=Math.max(e,0))),this.calculatedWidth=y=L(z-x),y=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(e){return H(this.options.liveRedraw,p.svg&&!p.isTouchDevice&&!this.chart.boosted)||"mouseup"===e||"touchend"===e||!j(e)}trackClick(e){let p=this.chart.pointer?.normalize(e)||e,x=this.to-this.from,y=this.y+this.scrollbarTop,b=this.x+this.scrollbarLeft;this.options.vertical&&p.chartY>y||!this.options.vertical&&p.chartX>b?this.updatePosition(this.from+x,this.to+x):this.updatePosition(this.from-x,this.to-x),z(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:e})}update(e){this.destroy(),this.init(this.chart.renderer,F(!0,this.options,e),this.chart)}updatePosition(e,p){p>1&&(e=L(1-L(p-e)),p=1),e<0&&(p=L(p-e),e=0),this.from=e,this.to=p}};return f.defaultOptions=y,E.scrollbar=F(!0,f.defaultOptions,E.scrollbar),f}),x(p,"Stock/Navigator/Navigator.js",[p["Core/Axis/Axis.js"],p["Stock/Navigator/ChartNavigatorComposition.js"],p["Core/Defaults.js"],p["Core/Globals.js"],p["Core/Axis/NavigatorAxisComposition.js"],p["Stock/Navigator/NavigatorComposition.js"],p["Stock/Scrollbar/Scrollbar.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E,O,L){let{defaultOptions:D}=x,{isTouchDevice:j}=y,{addEvent:R,clamp:z,correctFloat:F,defined:H,destroyObjectProperties:U,erase:Y,extend:V,find:q,fireEvent:K,isArray:$,isNumber:_,merge:Z,pick:J,removeEvent:tt,splat:te}=L;function ti(e,...p){let x=[].filter.call(p,_);if(x.length)return Math[e].apply(0,x)}let w=class w{static compose(e,x,y){p.compose(e,w),E.compose(e,x,y)}constructor(e){this.scrollbarHeight=0,this.init(e)}drawHandle(e,p,x,y){let b=this.navigatorOptions.handles.height;this.handles[p][y](x?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(e,10)+.5-b)}:{translateX:Math.round(this.left+parseInt(e,10)),translateY:Math.round(this.top+this.height/2-b/2-1)})}drawOutline(e,p,x,y){let b=this.navigatorOptions.maskInside,E=this.outline.strokeWidth(),O=E/2,L=E%2/2,D=this.scrollButtonSize,j=this.size,R=this.top,z=this.height,F=R-O,H=R+z,U=this.left,Y,V;x?(Y=R+p+L,p=R+e+L,V=[["M",U+z,R-D-L],["L",U+z,Y],["L",U,Y],["M",U,p],["L",U+z,p],["L",U+z,R+j+D]],b&&V.push(["M",U+z,Y-O],["L",U+z,p+O])):(U-=D,e+=U+D-L,p+=U+D-L,V=[["M",U,F],["L",e,F],["L",e,H],["M",p,H],["L",p,F],["L",U+j+2*D,R+O]],b&&V.push(["M",e-O,F],["L",p+O,F])),this.outline[y]({d:V})}drawMasks(e,p,x,y){let b,E,O,L;let D=this.left,j=this.top,R=this.height;x?(O=[D,D,D],L=[j,j+e,j+p],E=[R,R,R],b=[e,p-e,this.size-p]):(O=[D,D+e,D+p],L=[j,j,j],E=[e,p-e,this.size-p],b=[R,R,R]),this.shades.forEach((e,p)=>{e[y]({x:O[p],y:L[p],width:E[p],height:b[p]})})}renderElements(){let e=this,p=e.navigatorOptions,x=p.maskInside,y=e.chart,b=y.inverted,E=y.renderer,O={cursor:b?"ns-resize":"ew-resize"},L=e.navigatorGroup=E.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!x,x,!x].forEach((x,b)=>{let D=E.rect().addClass("highcharts-navigator-mask"+(1===b?"-inside":"-outside")).add(L);y.styledMode||(D.attr({fill:x?p.maskFill:"rgba(0,0,0,0)"}),1===b&&D.css(O)),e.shades[b]=D}),e.outline=E.path().addClass("highcharts-navigator-outline").add(L),y.styledMode||e.outline.attr({"stroke-width":p.outlineWidth,stroke:p.outlineColor}),p.handles&&p.handles.enabled){let x=p.handles,{height:b,width:D}=x;[0,1].forEach(p=>{e.handles[p]=E.symbol(x.symbols[p],-D/2-1,0,D,b,x),y.inverted&&e.handles[p].attr({rotation:90,rotationOriginX:Math.floor(-D/2),rotationOriginY:(b+D)/2}),e.handles[p].attr({zIndex:7-p}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][p]).add(L),y.styledMode||e.handles[p].attr({fill:x.backgroundColor,stroke:x.borderColor,"stroke-width":x.lineWidth}).css(O)})}}update(e){(this.series||[]).forEach(e=>{e.baseSeries&&delete e.baseSeries.navigatorSeries}),this.destroy(),Z(!0,this.chart.options.navigator,e),this.init(this.chart)}render(e,p,x,y){let b=this.chart,E=this.xAxis,O=E.pointRange||0,L=E.navigatorAxis.fake?b.xAxis[0]:E,D=this.navigatorEnabled,j=this.rendered,R=b.inverted,U=b.xAxis[0].minRange,Y=b.xAxis[0].options.maxRange,V=this.scrollButtonSize,q,$,Z,tt=this.scrollbarHeight,te,ti;if(this.hasDragged&&!H(x))return;if(e=F(e-O/2),p=F(p+O/2),!_(e)||!_(p)){if(!j)return;x=0,y=J(E.width,L.width)}this.left=J(E.left,b.plotLeft+V+(R?b.plotWidth:0));let ts=this.size=te=J(E.len,(R?b.plotHeight:b.plotWidth)-2*V);q=R?tt:te+2*V,x=J(x,E.toPixels(e,!0)),y=J(y,E.toPixels(p,!0)),_(x)&&Math.abs(x)!==1/0||(x=0,y=q);let to=E.toValue(x,!0),tr=E.toValue(y,!0),tn=Math.abs(F(tr-to));tnY&&(this.grabbedLeft?x=E.toPixels(tr-Y-O,!0):this.grabbedRight&&(y=E.toPixels(to+Y+O,!0))),this.zoomedMax=z(Math.max(x,y),0,ts),this.zoomedMin=z(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(x,y),0,ts),this.range=this.zoomedMax-this.zoomedMin,ts=Math.round(this.zoomedMax);let ta=Math.round(this.zoomedMin);D&&(this.navigatorGroup.attr({visibility:"inherit"}),ti=j&&!this.hasDragged?"animate":"attr",this.drawMasks(ta,ts,R,ti),this.drawOutline(ta,ts,R,ti),this.navigatorOptions.handles.enabled&&(this.drawHandle(ta,0,R,ti),this.drawHandle(ts,1,R,ti))),this.scrollbar&&(R?(Z=this.top-V,$=this.left-tt+(D||!L.opposite?0:(L.titleOffset||0)+L.axisTitleMargin),tt=te+2*V):(Z=this.top+(D?this.height:-tt),$=this.left-V),this.scrollbar.position($,Z,q,tt),this.scrollbar.setRange(this.zoomedMin/(te||1),this.zoomedMax/(te||1))),this.rendered=!0,K(this,"afterRender")}addMouseEvents(){let e=this,p=e.chart,x=p.container,y=[],b,E;e.mouseMoveHandler=b=function(p){e.onMouseMove(p)},e.mouseUpHandler=E=function(p){e.onMouseUp(p)},(y=e.getPartsEvents("mousedown")).push(R(p.renderTo,"mousemove",b),R(x.ownerDocument,"mouseup",E),R(p.renderTo,"touchmove",b),R(x.ownerDocument,"touchend",E)),y.concat(e.getPartsEvents("touchstart")),e.eventsToUnbind=y,e.series&&e.series[0]&&y.push(R(e.series[0].xAxis,"foundExtremes",function(){p.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(e){let p=this,x=[];return["shades","handles"].forEach(function(y){p[y].forEach(function(b,E){x.push(R(b.element,e,function(e){p[y+"Mousedown"](e,E)}))})}),x}shadesMousedown(e,p){e=this.chart.pointer?.normalize(e)||e;let x=this.chart,y=this.xAxis,b=this.zoomedMin,E=this.size,O=this.range,L=this.left,D=e.chartX,j,R,z,F;x.inverted&&(D=e.chartY,L=this.top),1===p?(this.grabbedCenter=D,this.fixedWidth=O,this.dragOffset=D-b):(F=D-L-O/2,0===p?F=Math.max(0,F):2===p&&F+O>=E&&(F=E-O,this.reversedExtremes?(F-=O,R=this.getUnionExtremes().dataMin):j=this.getUnionExtremes().dataMax),F!==b&&(this.fixedWidth=O,H((z=y.navigatorAxis.toFixedRange(F,F+O,R,j)).min)&&K(this,"setRange",{min:Math.min(z.min,z.max),max:Math.max(z.min,z.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(e,p){e=this.chart.pointer?.normalize(e)||e;let x=this.chart,y=x.xAxis[0],b=this.reversedExtremes;0===p?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=b?y.min:y.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=b?y.max:y.min),x.setFixedRange(void 0)}onMouseMove(e){let p=this,x=p.chart,y=p.navigatorSize,b=p.range,E=p.dragOffset,O=x.inverted,L=p.left,D;(!e.touches||0!==e.touches[0].pageX)&&(D=(e=x.pointer?.normalize(e)||e).chartX,O&&(L=p.top,D=e.chartY),p.grabbedLeft?(p.hasDragged=!0,p.render(0,0,D-L,p.otherHandlePos)):p.grabbedRight?(p.hasDragged=!0,p.render(0,0,p.otherHandlePos,D-L)):p.grabbedCenter&&(p.hasDragged=!0,Dy+E-b&&(D=y+E-b),p.render(0,0,D-E,D-E+b)),p.hasDragged&&p.scrollbar&&J(p.scrollbar.options.liveRedraw,!j&&!this.chart.boosted)&&(e.DOMType=e.type,setTimeout(function(){p.onMouseUp(e)},0)))}onMouseUp(e){let p,x,y,b,E,O;let L=this.chart,D=this.xAxis,j=this.scrollbar,R=e.DOMEvent||e,z=L.inverted,F=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!j||!j.hasDragged)||"scrollbar"===e.trigger)&&(y=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?b=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(E=this.fixedExtreme),this.zoomedMax===this.size&&(E=this.reversedExtremes?y.dataMin:y.dataMax),0===this.zoomedMin&&(b=this.reversedExtremes?y.dataMax:y.dataMin),H((O=D.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,b,E)).min)&&K(this,"setRange",{min:Math.min(O.min,O.max),max:Math.max(O.min,O.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:R}})),"mousemove"!==e.DOMType&&"touchmove"!==e.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&_(this.zoomedMin)&&_(this.zoomedMax)&&(x=Math.round(this.zoomedMin),p=Math.round(this.zoomedMax),this.shades&&this.drawMasks(x,p,z,F),this.outline&&this.drawOutline(x,p,z,F),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(x,0,z,F),this.drawHandle(p,1,z,F)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(e){e()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let e=this.baseSeries||[];this.navigatorEnabled&&e[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&e.forEach(function(e){tt(e,"updatedData",this.updatedDataHandler)},this),e[0].xAxis&&tt(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}init(p){let x=p.options,y=x.navigator||{},E=y.enabled,L=x.scrollbar||{},D=L.enabled,j=E&&y.height||0,z=D&&L.height||0,F=L.buttonsEnabled&&z||0;this.handles=[],this.shades=[],this.chart=p,this.setBaseSeries(),this.height=j,this.scrollbarHeight=z,this.scrollButtonSize=F,this.scrollbarEnabled=D,this.navigatorEnabled=E,this.navigatorOptions=y,this.scrollbarOptions=L,this.opposite=J(y.opposite,!!(!E&&p.inverted));let H=this,U=H.baseSeries,Y=p.xAxis.length,V=p.yAxis.length,q=U&&U[0]&&U[0].xAxis||p.xAxis[0]||{options:{}};if(p.isDirtyBox=!0,H.navigatorEnabled?(H.xAxis=new e(p,Z({breaks:q.options.breaks,ordinal:q.options.ordinal,overscroll:q.options.overscroll},y.xAxis,{type:"datetime",index:Y,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},p.inverted?{offsets:[F,0,-F,0],width:j}:{offsets:[0,-F,0,F],height:j}),"xAxis"),H.yAxis=new e(p,Z(y.yAxis,{alignTicks:!1,offset:0,index:V,isInternal:!0,reversed:J(y.yAxis&&y.yAxis.reversed,p.yAxis[0]&&p.yAxis[0].reversed,!1),zoomEnabled:!1},p.inverted?{width:j}:{height:j}),"yAxis"),U||y.series.data?H.updateNavigatorSeries(!1):0===p.series.length&&(H.unbindRedraw=R(p,"beforeRedraw",function(){p.series.length>0&&!H.series&&(H.setBaseSeries(),H.unbindRedraw())})),H.reversedExtremes=p.inverted&&!H.xAxis.reversed||!p.inverted&&H.xAxis.reversed,H.renderElements(),H.addMouseEvents()):(H.xAxis={chart:p,navigatorAxis:{fake:!0},translate:function(e,x){let y=p.xAxis[0],b=y.getExtremes(),E=y.len-2*F,O=ti("min",y.options.min,b.dataMin),L=ti("max",y.options.max,b.dataMax)-O;return x?e*L/E+O:E*(e-O)/L},toPixels:function(e){return this.translate(e)},toValue:function(e){return this.translate(e,!0)}},H.xAxis.navigatorAxis.axis=H.xAxis,H.xAxis.navigatorAxis.toFixedRange=b.prototype.toFixedRange.bind(H.xAxis.navigatorAxis)),p.options.scrollbar.enabled){let e=Z(p.options.scrollbar,{vertical:p.inverted});!_(e.margin)&&H.navigatorEnabled&&(e.margin=p.inverted?-3:3),p.scrollbar=H.scrollbar=new O(p.renderer,e,p),R(H.scrollbar,"changed",function(e){let p=H.size,x=p*this.to,y=p*this.from;H.hasDragged=H.scrollbar.hasDragged,H.render(0,0,y,x),this.shouldUpdateExtremes(e.DOMType)&&setTimeout(function(){H.onMouseUp(e)})})}H.addBaseSeriesEvents(),H.addChartEvents()}getUnionExtremes(e){let p;let x=this.chart.xAxis[0],y=this.xAxis,b=y.options,E=x.options;return e&&null===x.dataMin||(p={dataMin:J(b&&b.min,ti("min",E.min,x.dataMin,y.dataMin,y.min)),dataMax:J(b&&b.max,ti("max",E.max,x.dataMax,y.dataMax,y.max))}),p}setBaseSeries(e,p){let x=this.chart,y=this.baseSeries=[];e=e||x.options&&x.options.navigator.baseSeries||(x.series.length?q(x.series,e=>!e.options.isInternal).index:0),(x.series||[]).forEach((p,x)=>{!p.options.isInternal&&(p.options.showInNavigator||(x===e||p.options.id===e)&&!1!==p.options.showInNavigator)&&y.push(p)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,p)}updateNavigatorSeries(e,p){let x=this,y=x.chart,b=x.baseSeries,E={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:this.navigatorOptions.xAxis?.id,yAxis:this.navigatorOptions.yAxis?.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},O=x.series=(x.series||[]).filter(e=>{let p=e.baseSeries;return!(0>b.indexOf(p))||(p&&(tt(p,"updatedData",x.updatedDataHandler),delete p.navigatorSeries),e.chart&&e.destroy(),!1)}),L,j,R=x.navigatorOptions.series,z;b&&b.length&&b.forEach(e=>{let F=e.navigatorSeries,H=V({color:e.color,visible:e.visible},$(R)?D.navigator.series:R);if(F&&!1===x.navigatorOptions.adaptToUpdatedData)return;E.name="Navigator "+b.length,z=(L=e.options||{}).navigatorOptions||{},H.dataLabels=te(H.dataLabels),(j=Z(L,E,H,z)).pointRange=J(H.pointRange,z.pointRange,D.plotOptions[j.type||"line"].pointRange);let U=z.data||H.data;x.hasNavigatorData=x.hasNavigatorData||!!U,j.data=U||L.data&&L.data.slice(0),F&&F.options?F.update(j,p):(e.navigatorSeries=y.initSeries(j),y.setSortedData(),e.navigatorSeries.baseSeries=e,O.push(e.navigatorSeries))}),(R.data&&!(b&&b.length)||$(R))&&(x.hasNavigatorData=!1,(R=te(R)).forEach((e,p)=>{E.name="Navigator "+(O.length+1),(j=Z(D.navigator.series,{color:y.series[p]&&!y.series[p].options.isInternal&&y.series[p].color||y.options.colors[p]||y.options.colors[0]},E,e)).data=e.data,j.data&&(x.hasNavigatorData=!0,O.push(y.initSeries(j)))})),e&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let e=this,p=e.baseSeries||[];p[0]&&p[0].xAxis&&p[0].eventsToUnbind.push(R(p[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),p.forEach(p=>{p.eventsToUnbind.push(R(p,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),p.eventsToUnbind.push(R(p,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==this.navigatorOptions.adaptToUpdatedData&&p.xAxis&&p.eventsToUnbind.push(R(p,"updatedData",this.updatedDataHandler)),p.eventsToUnbind.push(R(p,"remove",function(){this.navigatorSeries&&(Y(e.series,this.navigatorSeries),H(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(e){return this.baseSeries.reduce(function(e,p){return Math.min(e,p.xData&&p.xData.length?p.xData[0]:e)},e)}modifyNavigatorAxisExtremes(){let e=this.xAxis;if(void 0!==e.getExtremes){let p=this.getUnionExtremes(!0);p&&(p.dataMin!==e.min||p.dataMax!==e.max)&&(e.min=p.dataMin,e.max=p.dataMax)}}modifyBaseAxisExtremes(){let e,p;let x=this.chart.navigator,y=this.getExtremes(),b=y.min,E=y.max,O=y.dataMin,L=y.dataMax,D=E-b,j=x.stickToMin,R=x.stickToMax,z=J(this.ordinal?.convertOverscroll(this.options.overscroll),0),F=x.series&&x.series[0],H=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(j&&(e=(p=O)+D),R&&(e=L+z,j||(p=Math.max(O,e-D,x.getBaseSeriesMin(F&&F.xData?F.xData[0]:-Number.MAX_VALUE)))),H&&(j||R)&&_(p)&&(this.min=this.userMin=p,this.max=this.userMax=e)),x.stickToMin=x.stickToMax=null}updatedDataHandler(){let e=this.chart.navigator,p=this.navigatorSeries,x=e.reversedExtremes?0===Math.round(e.zoomedMin):Math.round(e.zoomedMax)>=Math.round(e.size);e.stickToMax=J(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,x),e.stickToMin=e.shouldStickToMin(this,e),p&&!e.hasNavigatorData&&(p.options.pointStart=this.xData[0],p.setData(this.options.data,!1,null,!1))}shouldStickToMin(e,p){let x=p.getBaseSeriesMin(e.xData[0]),y=e.xAxis,b=y.max,E=y.min,O=y.options.range;return!!(_(b)&&_(E))&&(O&&b-x>0?b-x{e.destroy&&e.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(e=>{this[e]&&this[e].destroy&&this[e].destroy(),this[e]=null}),[this.handles].forEach(e=>{U(e)})}};return w}),x(p,"Core/Axis/OrdinalAxis.js",[p["Core/Axis/Axis.js"],p["Core/Globals.js"],p["Core/Series/Series.js"],p["Core/Utilities.js"]],function(e,p,x,y){var b;let{addEvent:E,correctFloat:O,css:L,defined:D,error:j,isNumber:R,pick:z,timeUnits:F,isString:H}=y;return function(e){function y(e,p,x,b,E=[],O=0,L){let R={},z=this.options.tickPixelInterval,H=this.chart.time,U=[],Y,V,q,K,$,_=0,Z=[],J=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!E||E.length<3||void 0===p)return H.getTimeTicks.apply(H,arguments);let tt=E.length;for(Y=0;Yx,E[Y]5*O||$){if(E[Y]>J){for(V=H.getTimeTicks(e,E[_],E[Y],b);V.length&&V[0]<=J;)V.shift();V.length&&(J=V[V.length-1]),U.push(Z.length),Z=Z.concat(V)}_=Y+1}if($)break}if(V){if(K=V.info,L&&K.unitRange<=F.hour){for(_=1,Y=Z.length-1;_e-p),(L=y[Math.floor(y.length/2)])<.6*z&&(L=null),j=Z[e-1]>x?e-1:e,O=void 0;j--;)D=Math.abs(O-(E=p[j])),O&&D<.8*z&&(null===L||D<.8*L)?(R[Z[j]]&&!R[Z[j+1]]?(b=j+1,O=E):b=j,Z.splice(b,1)):O=E}return Z}function b(e){let p=this.ordinal.positions;if(!p)return e;let x=p.length-1,y;return(e<0?e=p[0]:e>x?e=p[x]:(x=Math.floor(e),y=e-x),void 0!==y&&void 0!==p[x])?p[x]+(y?y*(p[x+1]-p[x]):0):e}function U(e){let p=this.ordinal,x=this.old?this.old.min:this.min,y=this.old?this.old.transA:this.transA,b=p.getExtendedPositions();if(b&&b.length){let E=O((e-x)*y+this.minPixelPadding),L=O(p.getIndexOfPoint(E,b)),D=O(L%1);if(L>=0&&L<=b.length-1){let e=b[Math.floor(L)],p=b[Math.ceil(L)];return b[Math.floor(L)]+D*(p-e)}}return e}function Y(p,x){let y=e.Additions.findIndexOf(p,x,!0);if(p[y]===x)return y;let b=(x-p[y])/(p[y+1]-p[y]);return y+b}function V(){this.ordinal||(this.ordinal=new e.Additions(this))}function q(){let{eventArgs:e,options:p}=this;if(this.isXAxis&&D(p.overscroll)&&0!==p.overscroll&&R(this.max)&&R(this.min)&&(this.options.ordinal&&!this.ordinal.originalOrdinalRange&&this.ordinal.getExtendedPositions(!1),this.max===this.dataMax&&(e?.trigger!=="pan"||this.isInternal)&&e?.trigger!=="navigator")){let x=this.ordinal.convertOverscroll(p.overscroll);this.max+=x,!this.isInternal&&D(this.userMin)&&e?.trigger!=="mousewheel"&&(this.min+=x)}}function K(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function $(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function _(e){let p=this.xAxis[0],x=p.ordinal.convertOverscroll(p.options.overscroll),y=e.originalEvent.chartX,b=this.options.chart.panning,E=!1;if(b&&"y"!==b.type&&p.options.ordinal&&p.series.length){let e,b;let O=this.mouseDownX,D=p.getExtremes(),j=D.dataMin,R=D.dataMax,z=D.min,F=D.max,H=this.hoverPoints,U=p.closestPointRange||p.ordinal&&p.ordinal.overscrollPointsRange,Y=Math.round((O-y)/(p.translationSlope*(p.ordinal.slope||U))),V=p.ordinal.getExtendedPositions(),q={ordinal:{positions:V,extendedOrdinalPositions:V}},K=p.index2val,$=p.val2lin;if(z<=j&&Y<0||F+x>=R&&Y>0)return;q.ordinal.positions?Math.abs(Y)>1&&(H&&H.forEach(function(e){e.setState()}),R>(b=q.ordinal.positions)[b.length-1]&&b.push(R),this.setFixedRange(F-z),(e=p.navigatorAxis.toFixedRange(void 0,void 0,K.apply(q,[$.apply(q,[z,!0])+Y]),K.apply(q,[$.apply(q,[F,!0])+Y]))).min>=Math.min(D.dataMin,z)&&e.max<=Math.max(R,F)+x&&p.setExtremes(e.min,e.max,!0,!1,{trigger:"pan"}),this.mouseDownX=y,L(this.container,{cursor:"move"})):E=!0}else E=!0;E||b&&/y/.test(b.type)?x&&(p.max=p.dataMax+x):e.preventDefault()}function Z(){let e=this.xAxis;e&&e.options.ordinal&&(delete e.ordinal.index,delete e.ordinal.originalOrdinalRange)}function J(e,p){let x;let y=this.ordinal,b=y.positions,E=y.slope,O;if(!b)return e;let L=b.length;if(b[0]<=e&&b[L-1]>=e)x=Y(b,e);else{if(!((O=y.getExtendedPositions&&y.getExtendedPositions())&&O.length))return e;let L=O.length;E||(E=(O[L-1]-O[0])/L);let D=Y(O,b[0]);if(e>=O[0]&&e<=O[L-1])x=Y(O,e)-D;else{if(!p)return e;x=e0&&"highcharts-navigator-series"!==e.options.id&&e.processedXData.length>1&&(K=x!==e.processedXData[1]-e.processedXData[0]),x=e.processedXData[1]-e.processedXData[0],e.boosted&&($=e.boosted),e.reserveSpace()&&(!1!==e.takeOrdinalPosition||E)&&(L=(Y=Y.concat(e.processedXData)).length,Y.sort(function(e,p){return e-p}),V=Math.min(V,z(e.closestPointRange,V)),L)){for(p=0;p2){for(j=Y[1]-Y[0],U=L-1;U--&&!q;)Y[U+1]-Y[U]!==j&&(q=!0);!e.options.keepOrdinalPadding&&(Y[0]-y>j||b-Y[Y.length-1]>j)&&(q=!0)}else e.options.overscroll&&(2===L?V=Y[1]-Y[0]:1===L?(V=e.ordinal.convertOverscroll(e.options.overscroll),Y=[Y[0],Y[0]+V]):V=p.overscrollPointsRange);q||e.forceOrdinal?(e.options.overscroll&&(p.overscrollPointsRange=V,Y=Y.concat(p.getOverscrollPositions())),p.positions=Y,R=e.ordinal2lin(Math.max(y,Y[0]),!0),F=Math.max(e.ordinal2lin(Math.min(b,Y[Y.length-1]),!0),1),p.slope=H=(b-y)/(F-R),p.offset=y-R*H):(p.overscrollPointsRange=z(e.closestPointRange,p.overscrollPointsRange),p.positions=e.ordinal.slope=p.offset=void 0)}e.isOrdinal=O&&q,p.groupIntervalFactor=null}static findIndexOf(e,p,x){let y=0,b=e.length-1,E;for(;ye.x>=p&&e.x<=x)};y.series.forEach(e=>{let p=e.points?.[0];D(p?.plotX)&&(p.plotXe()),U.splice(e,1);return}}}function _(){let e=this.rangeSelector;if(e){let p=e.getHeight();this.extraTopMargin&&(this.plotTop+=p),this.extraBottomMargin&&(this.marginBottom+=p)}}function Z(e){let p=e.options.rangeSelector,x=this.extraBottomMargin,y=this.extraTopMargin,E=this.rangeSelector;if(p&&p.enabled&&!D(E)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=E=new b(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,E){let e=p&&p.verticalAlign||E.options&&E.options.verticalAlign;E.options.floating||("bottom"===e?this.extraBottomMargin=!0:"middle"===e||(this.extraTopMargin=!0)),(this.extraBottomMargin!==x||this.extraTopMargin!==y)&&(this.isDirtyBox=!0)}}return{compose:function(e,p,y){if(b=y,H(O,"RangeSelector")){let y=p.prototype;e.prototype.minFromRange=Y,L(p,"afterGetContainer",V),L(p,"beforeRender",q),L(p,"destroy",$),L(p,"getMargins",_),L(p,"redraw",K),L(p,"update",Z),y.callbacks.push(K),j(E,{rangeSelector:x.rangeSelector}),j(E.lang,x.lang)}}}}),x(p,"Stock/RangeSelector/RangeSelector.js",[p["Core/Axis/Axis.js"],p["Core/Defaults.js"],p["Core/Globals.js"],p["Stock/RangeSelector/RangeSelectorComposition.js"],p["Core/Renderer/SVG/SVGElement.js"],p["Core/Utilities.js"],p["Core/Axis/OrdinalAxis.js"]],function(p,x,y,b,E,O,L){let{defaultOptions:D}=x,{addEvent:j,createElement:R,css:z,defined:F,destroyObjectProperties:H,discardElement:U,extend:Y,fireEvent:V,isNumber:q,merge:K,objectEach:$,pad:_,pick:Z,pInt:J,splat:tt}=O;let C=class C{static compose(e,p){b.compose(e,p,C)}constructor(e){this.buttonOptions=C.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.init(e)}clickButton(e,x){let y=this.chart,b=this.buttonOptions[e],E=y.xAxis[0],O=y.scroller&&y.scroller.getUnionExtremes()||E||{},L=b.type,D=b.dataGrouping,R=O.dataMin,z=O.dataMax,H,U=E&&Math.round(Math.min(E.max,Z(z,E.max))),Y,K=b._range,$,_,J,te=!0;if(null!==R&&null!==z){if(this.setSelected(e),D&&(this.forcedDataGrouping=!0,p.prototype.setDataGrouping.call(E||{chart:this.chart},D,!1),this.frozenStates=b.preserveDataGrouping),"month"===L||"year"===L)E?(_={range:b,max:U,chart:y,dataMin:R,dataMax:z},H=E.minFromRange.call(_),q(_.newMax)&&(U=_.newMax),te=!1):K=b;else if(K)U=Math.min((H=Math.max(U-K,R))+K,z),te=!1;else if("ytd"===L){if(E)(void 0===z||void 0===R)&&(R=Number.MAX_VALUE,z=Number.MIN_VALUE,y.series.forEach(e=>{let p=e.xData;p&&(R=Math.min(p[0],R),z=Math.max(p[p.length-1],z))}),x=!1),H=$=(J=this.getYTDExtremes(z,R,y.time.useUTC)).min,U=J.max;else{this.deferredYTDClick=e;return}}else"all"===L&&E&&(y.navigator&&y.navigator.baseSeries[0]&&(y.navigator.baseSeries[0].xAxis.options.range=void 0),H=R,U=z);if(te&&b._offsetMin&&F(H)&&(H+=b._offsetMin),b._offsetMax&&F(U)&&(U+=b._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=e+1),E)E.setExtremes(H,U,Z(x,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:b}),y.setFixedRange(b._range);else{Y=tt(y.options.xAxis)[0];let e=j(y,"afterGetAxes",function(){let e=y.xAxis[0];e.range=e.options.range=K,e.min=e.options.min=$});j(y,"load",function(){let p=y.xAxis[0];y.setFixedRange(b._range),p.options.range=Y.range,p.options.min=Y.min,e()})}V(this,"afterBtnClick")}}setSelected(e){this.selected=this.options.selected=e}init(e){let p=this,x=e.options.rangeSelector,y=x.buttons||p.defaultButtons.slice(),b=x.selected,E=function(){let e=p.minInput,x=p.maxInput;e&&e.blur&&V(e,"blur"),x&&x.blur&&V(x,"blur")};p.chart=e,p.options=x,p.buttons=[],p.buttonOptions=y,this.eventsToUnbind=[],this.eventsToUnbind.push(j(e.container,"mousedown",E)),this.eventsToUnbind.push(j(e,"resize",E)),y.forEach(p.computeButtonRange),void 0!==b&&y[b]&&this.clickButton(b,!1),this.eventsToUnbind.push(j(e,"load",function(){e.xAxis&&e.xAxis[0]&&j(e.xAxis[0],"setExtremes",function(x){q(this.max)&&q(this.min)&&this.max-this.min!==e.fixedRange&&"rangeSelectorButton"!==x.trigger&&"updatedData"!==x.trigger&&p.forcedDataGrouping&&!p.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()}updateButtonStates(){let e=this,p=this.chart,x=this.dropdown,y=this.dropdownLabel,b=p.xAxis[0],E=Math.round(b.max-b.min),O=!b.hasVisibleSeries,j=24*36e5,R=p.scroller&&p.scroller.getUnionExtremes()||b,F=R.dataMin,H=R.dataMax,U=e.getYTDExtremes(H,F,p.time.useUTC),Y=U.min,V=U.max,K=e.selected,$=e.options.allButtonsEnabled,_=Array(e.buttonOptions.length).fill(0),Z=q(K),J=e.buttons,tt=!1,te=null;e.buttonOptions.forEach((p,x)=>{let y=p._range,D=p.type,R=p.count||1,z=p._offsetMax-p._offsetMin,U=x===K,q=y>H-F,J=yy&&(ts=!0)}else("month"===D||"year"===D)&&E+36e5>=({month:28,year:365})[D]*j*R-z&&E-36e5<=({month:31,year:366})[D]*j*R+z?ts=!0:"ytd"===D?(ts=V-Y+z===E,ti=!U):"all"===D&&(ts=b.max-b.min>=H-F);let to=!$&&!(tt&&"all"===D)&&(q||J||O),tr=tt&&"all"===D||!ti&&ts||U&&e.frozenStates;to?_[x]=3:tr&&(!Z||x===K)&&(te=x)}),null!==te?(_[te]=2,e.setSelected(te)):(e.setSelected(),y&&(y.setState(0),y.attr({text:(D.lang.rangeSelectorZoom||"")+" \u25BE"})));for(let p=0;p<_.length;p++){let b=_[p],E=J[p];if(E.state!==b&&(E.setState(b),x)){x.options[p+1].disabled=3===b,2===b&&(y&&(y.setState(2),y.attr({text:e.buttonOptions[p].text+" \u25BE"})),x.selectedIndex=p+1);let E=y.getBBox();z(x,{width:`${E.width}px`,height:`${E.height}px`})}}}computeButtonRange(e){let p=e.type,x=e.count||1,y={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};y[p]?e._range=y[p]*x:("month"===p||"year"===p)&&(e._range=24*({month:30,year:365})[p]*36e5*x),e._offsetMin=Z(e.offsetMin,0),e._offsetMax=Z(e.offsetMax,0),e._range+=e._offsetMax-e._offsetMin}getInputValue(e){let p="min"===e?this.minInput:this.maxInput,x=this.chart.options.rangeSelector,y=this.chart.time;return p?("text"===p.type&&x.inputDateParser||this.defaultInputDateParser)(p.value,y.useUTC,y):0}setInputValue(e,p){let x=this.options,y=this.chart.time,b="min"===e?this.minInput:this.maxInput,E="min"===e?this.minDateBox:this.maxDateBox;if(b){let e=b.getAttribute("data-hc-time"),O=F(e)?Number(e):void 0;if(F(p)){let e=O;F(e)&&b.setAttribute("data-hc-time-previous",e),b.setAttribute("data-hc-time",p),O=p}b.value=y.dateFormat(this.inputTypeFormats[b.type]||x.inputEditDateFormat,O),E&&E.attr({text:y.dateFormat(x.inputDateFormat,O)})}}setInputExtremes(e,p,x){let y="min"===e?this.minInput:this.maxInput;if(y){let e=this.inputTypeFormats[y.type],b=this.chart.time;if(e){let E=b.dateFormat(e,p);y.min!==E&&(y.min=E);let O=b.dateFormat(e,x);y.max!==O&&(y.max=O)}}}showInput(e){let p="min"===e?this.minDateBox:this.maxDateBox,x="min"===e?this.minInput:this.maxInput;if(x&&p&&this.inputGroup){let e="text"===x.type,{translateX:y=0,translateY:b=0}=this.inputGroup,{x:E=0,width:O=0,height:L=0}=p,{inputBoxWidth:D}=this.options;z(x,{width:e?O+(D?-2:20)+"px":"auto",height:L-2+"px",border:"2px solid silver"}),e&&D?z(x,{left:y+E+"px",top:b+"px"}):z(x,{left:Math.min(Math.round(E+y-(x.offsetWidth-O)/2),this.chart.chartWidth-x.offsetWidth)+"px",top:b-(x.offsetHeight-L)/2+"px"})}}hideInput(e){let p="min"===e?this.minInput:this.maxInput;p&&z(p,{top:"-9999em",border:0,width:"1px",height:"1px"})}defaultInputDateParser(e,p,x){let b=e.split("/").join("-").split(" ").join("T");if(-1===b.indexOf("T")&&(b+="T00:00"),p)b+="Z";else{let e;if(y.isSafari&&!((e=b).length>6&&(e.lastIndexOf("-")===e.length-6||e.lastIndexOf("+")===e.length-6))){let e=new Date(b).getTimezoneOffset()/60;b+=e<=0?`+${_(-e)}:00`:`-${_(e)}:00`}}let E=Date.parse(b);if(!q(E)){let p=e.split("-");E=Date.UTC(J(p[0]),J(p[1])-1,J(p[2]))}return x&&p&&q(E)&&(E+=x.getTimezoneOffset(E)),E}drawInput(e){let{chart:p,div:x,inputGroup:b}=this,E=this,O=p.renderer.style||{},L=p.renderer,j=p.options.rangeSelector,F=D.lang,H="min"===e;function U(e){let{maxInput:x,minInput:y}=E,b=p.xAxis[0],O=p.scroller?.getUnionExtremes()||b,L=O.dataMin,D=O.dataMax,j=p.xAxis[0].getExtremes()[e],R=E.getInputValue(e);q(R)&&R!==j&&(H&&x&&q(L)?R>Number(x.getAttribute("data-hc-time"))?R=void 0:RD&&(R=D)),void 0!==R&&b.setExtremes(H?R:b.min,H?b.max:R,void 0,void 0,{trigger:"rangeSelectorInput"}))}let V=F[H?"rangeSelectorFrom":"rangeSelectorTo"]||"",$=L.label(V,0).addClass("highcharts-range-label").attr({padding:V?2:0,height:V?j.inputBoxHeight:0}).add(b),_=L.label("",0).addClass("highcharts-range-input").attr({padding:2,width:j.inputBoxWidth,height:j.inputBoxHeight,"text-align":"center"}).on("click",function(){E.showInput(e),E[e+"Input"].focus()});p.styledMode||_.attr({stroke:j.inputBoxBorderColor,"stroke-width":1}),_.add(b);let Z=R("input",{name:e,className:"highcharts-range-selector"},void 0,x);Z.setAttribute("type",function(e){if(-1!==e.indexOf("%L"))return"text";let p=["a","A","d","e","w","b","B","m","o","y","Y"].some(p=>-1!==e.indexOf("%"+p)),x=["H","k","I","l","M","S"].some(p=>-1!==e.indexOf("%"+p));return p&&x?"datetime-local":p?"date":x?"time":"text"}(j.inputDateFormat||"%e %b %Y")),p.styledMode||($.css(K(O,j.labelStyle)),_.css(K({color:"#333333"},O,j.inputStyle)),z(Z,Y({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:O.fontSize,fontFamily:O.fontFamily,top:"-9999em"},j.inputStyle))),Z.onfocus=()=>{E.showInput(e)},Z.onblur=()=>{Z===y.doc.activeElement&&U(e),E.hideInput(e),E.setInputValue(e),Z.blur()};let J=!1;return Z.onchange=()=>{J||(U(e),E.hideInput(e),Z.blur())},Z.onkeypress=p=>{13===p.keyCode&&U(e)},Z.onkeydown=p=>{J=!0,("ArrowUp"===p.key||"ArrowDown"===p.key||"Tab"===p.key)&&U(e)},Z.onkeyup=()=>{J=!1},{dateBox:_,input:Z,label:$}}getPosition(){let e=this.chart,p=e.options.rangeSelector,x="top"===p.verticalAlign?e.plotTop-e.axisOffset[0]:0;return{buttonTop:x+p.buttonPosition.y,inputTop:x+p.inputPosition.y-10}}getYTDExtremes(e,p,x){let y=this.chart.time,b=new y.Date(e),E=y.get("FullYear",b),O=Math.max(p,x?y.Date.UTC(E,0,1):+new y.Date(E,0,1)),L=b.getTime();return{max:Math.min(e||L,L),min:O}}createElements(){let e=this.chart,p=e.renderer,x=e.container,y=e.options,b=y.rangeSelector,E=b.inputEnabled,O=Z(y.chart.style?.zIndex,0)+1;if(!1!==b.enabled&&(this.group=p.g("range-selector-group").attr({zIndex:7}).add(),this.div=R("div",void 0,{position:"relative",height:0,zIndex:O}),this.buttonOptions.length&&this.renderButtons(),x.parentNode&&x.parentNode.insertBefore(this.div,x),E)){this.inputGroup=p.g("input-group").add(this.group);let e=this.drawInput("min");this.minDateBox=e.dateBox,this.minLabel=e.label,this.minInput=e.input;let x=this.drawInput("max");this.maxDateBox=x.dateBox,this.maxLabel=x.label,this.maxInput=x.input}}render(e,p){let x=this.chart,y=x.options.rangeSelector,b=y.inputEnabled;if(!1!==y.enabled){if(b){this.setInputValue("min",e),this.setInputValue("max",p);let b=x.scroller&&x.scroller.getUnionExtremes()||x.xAxis[0]||{};if(F(b.dataMin)&&F(b.dataMax)){let e=x.xAxis[0].minRange||0;this.setInputExtremes("min",b.dataMin,Math.min(b.dataMax,this.getInputValue("max"))-e),this.setInputExtremes("max",Math.max(b.dataMin,this.getInputValue("min"))+e,b.dataMax)}if(this.inputGroup){let e=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(p=>{if(p){let{width:x}=p.getBBox();x&&(p.attr({x:e}),e+=x+y.inputSpacing)}})}}this.alignElements(),this.updateButtonStates()}}renderButtons(){let{buttons:e,chart:p,options:x}=this,b=D.lang,E=p.renderer,O=K(x.buttonTheme),L=O&&O.states,z=O.width||28;delete O.width,delete O.states,this.buttonGroup=E.g("range-selector-buttons").add(this.group);let F=this.dropdown=R("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),H=p.userOptions.rangeSelector?.buttonTheme;this.dropdownLabel=E.button("",0,0,()=>{},K(O,{"stroke-width":Z(O["stroke-width"],0),width:"auto",paddingLeft:Z(x.buttonTheme.paddingLeft,H?.padding,8),paddingRight:Z(x.buttonTheme.paddingRight,H?.padding,8)}),L&&L.hover,L&&L.select,L&&L.disabled).hide().add(this.group),j(F,"touchstart",()=>{F.style.fontSize="16px"});let U=y.isMS?"mouseover":"mouseenter",Y=y.isMS?"mouseout":"mouseleave";j(F,U,()=>{V(this.dropdownLabel.element,U)}),j(F,Y,()=>{V(this.dropdownLabel.element,Y)}),j(F,"change",()=>{V(this.buttons[F.selectedIndex-1].element,"click")}),this.zoomText=E.label(b.rangeSelectorZoom||"",0).attr({padding:x.buttonTheme.padding,height:x.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(x.labelStyle),O["stroke-width"]=Z(O["stroke-width"],0)),R("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,F),this.buttonOptions.forEach((p,x)=>{R("option",{textContent:p.title||p.text},void 0,F),e[x]=E.button(p.text,0,0,e=>{let y;let b=p.events&&p.events.click;b&&(y=b.call(p,e)),!1!==y&&this.clickButton(x),this.isActive=!0},O,L&&L.hover,L&&L.select,L&&L.disabled).attr({"text-align":"center",width:z}).add(this.buttonGroup),p.title&&e[x].attr("title",p.title)})}alignElements(){let{buttonGroup:e,buttons:p,chart:x,group:y,inputGroup:b,options:E,zoomText:O}=this,L=x.options,D=L.exporting&&!1!==L.exporting.enabled&&L.navigation&&L.navigation.buttonOptions,{buttonPosition:j,inputPosition:R,verticalAlign:z}=E,F=(e,p)=>D&&this.titleCollision(x)&&"top"===z&&"right"===p.align&&p.y-e.getBBox().height-12<(D.y||0)+(D.height||0)+x.spacing[0]?-40:0,H=x.plotLeft;if(y&&j&&R){let L=j.x-x.spacing[3];if(e){if(this.positionButtons(),!this.initialButtonGroupWidth){let e=0;O&&(e+=O.getBBox().width+5),p.forEach((x,y)=>{e+=x.width||0,y!==p.length-1&&(e+=E.buttonSpacing)}),this.initialButtonGroupWidth=e}H-=x.spacing[3];let b=F(e,j);this.alignButtonGroup(b),this.buttonGroup?.translateY&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),y.placed=e.placed=x.hasLoaded}let D=0;b&&(D=F(b,R),"left"===R.align?L=H:"right"===R.align&&(L=-Math.max(x.axisOffset[1],-D)),b.align({y:R.y,width:b.getBBox().width,align:R.align,x:R.x+L-2},!0,x.spacingBox),b.placed=x.hasLoaded),this.handleCollision(D),y.align({verticalAlign:z},!0,x.spacingBox);let U=y.alignAttr.translateY,Y=y.getBBox().height+20,V=0;if("bottom"===z){let e=x.legend&&x.legend.options;V=U-(Y=Y+(e&&"bottom"===e.verticalAlign&&e.enabled&&!e.floating?x.legend.legendHeight+Z(e.margin,10):0)-20)-(E.floating?0:E.y)-(x.titleOffset?x.titleOffset[2]:0)-10}"top"===z?(E.floating&&(V=0),x.titleOffset&&x.titleOffset[0]&&(V=x.titleOffset[0]),V+=x.margin[0]-x.spacing[0]||0):"middle"===z&&(R.y===j.y?V=U:(R.y||j.y)&&(R.y<0||j.y<0?V-=Math.min(R.y,j.y):V=U-Y)),y.translate(E.x,E.y+Math.floor(V));let{minInput:q,maxInput:K,dropdown:$}=this;E.inputEnabled&&q&&K&&(q.style.marginTop=y.translateY+"px",K.style.marginTop=y.translateY+"px"),$&&($.style.marginTop=y.translateY+"px")}}alignButtonGroup(e,p){let{chart:x,options:y,buttonGroup:b}=this,{buttonPosition:E}=y,O=x.plotLeft-x.spacing[3],L=E.x-x.spacing[3];"right"===E.align?L+=e-O:"center"===E.align&&(L-=O/2),b&&b.align({y:E.y,width:Z(p,this.initialButtonGroupWidth),align:E.align,x:L},!0,x.spacingBox)}positionButtons(){let{buttons:e,chart:p,options:x,zoomText:y}=this,b=p.hasLoaded?"animate":"attr",{buttonPosition:E}=x,O=p.plotLeft,L=O;y&&"hidden"!==y.visibility&&(y[b]({x:Z(O+E.x,O)}),L+=E.x+y.getBBox().width+5);for(let p=0,y=this.buttonOptions.length;p{let e=0;return this.buttons.forEach(p=>{let x=p.getBBox();x.width>e&&(e=x.width)}),e},D=p=>{if(y?.alignOptions&&x){let E=y.alignAttr.translateX+y.alignOptions.x-e+y.getBBox().x+2,L=y.alignOptions.width||0,D=x.alignAttr.translateX+x.getBBox().x;return D+p>E&&E+L>D&&b.y{y&&x&&y.attr({translateX:y.alignAttr.translateX+(p.axisOffset[1]>=-e?0:-e),translateY:y.alignAttr.translateY+x.getBBox().height+10})};if(x){if("always"===E){this.collapseButtons(),D(L())&&j();return}"never"===E&&this.expandButtons()}y&&x?O.align===b.align||D(this.initialButtonGroupWidth+20)?"responsive"===E?(this.collapseButtons(),D(L())&&j()):j():"responsive"===E&&this.expandButtons():x&&"responsive"===E&&(this.initialButtonGroupWidth>p.plotWidth?this.collapseButtons():this.expandButtons())}collapseButtons(){let{buttons:e,zoomText:p}=this;!0!==this.isCollapsed&&(this.isCollapsed=!0,p.hide(),e.forEach(e=>void e.hide()),this.showDropdown())}expandButtons(){let{buttons:e,zoomText:p}=this;!1!==this.isCollapsed&&(this.isCollapsed=!1,this.hideDropdown(),p.show(),e.forEach(e=>void e.show()),this.positionButtons())}showDropdown(){let{buttonGroup:e,chart:p,dropdownLabel:x,dropdown:y}=this;if(e&&y){let{translateX:b=0,translateY:E=0}=e,O=p.plotLeft+b;x.attr({x:O,y:E}).show(),z(y,{left:O+"px",top:E+"px",visibility:"inherit"}),this.hasVisibleDropdown=!0}}hideDropdown(){let{dropdown:e}=this;e&&(this.dropdownLabel.hide(),z(e,{visibility:"hidden",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)}getHeight(){let e=this.options,p=this.group,x=e.inputPosition,y=e.buttonPosition,b=e.y,E=y.y,O=x.y,L=0;if(e.height)return e.height;this.alignElements(),L=p?p.getBBox(!0).height+13+b:0;let D=Math.min(O,E);return(O<0&&E<0||O>0&&E>0)&&(L+=Math.abs(D)),L}titleCollision(e){return!(e.options.title.text||e.options.subtitle.text)}update(e,p=!0){let x=this.chart;K(!0,x.options.rangeSelector,e),this.destroy(),this.init(x),p&&this.render()}destroy(){let p=this,x=p.minInput,y=p.maxInput;p.eventsToUnbind&&(p.eventsToUnbind.forEach(e=>e()),p.eventsToUnbind=void 0),H(p.buttons),x&&(x.onfocus=x.onblur=x.onchange=null),y&&(y.onfocus=y.onblur=y.onchange=null),$(p,function(x,y){x&&"chart"!==y&&(x instanceof E?x.destroy():x instanceof e.HTMLElement&&U(x)),x!==C.prototype[y]&&(p[y]=null)},this)}};return Y(C.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),C}),x(p,"Core/Chart/StockChart.js",[p["Core/Chart/Chart.js"],p["Core/Templating.js"],p["Core/Defaults.js"],p["Stock/Navigator/NavigatorDefaults.js"],p["Stock/RangeSelector/RangeSelectorDefaults.js"],p["Stock/Scrollbar/ScrollbarDefaults.js"],p["Stock/Utilities/StockUtilities.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E,O,L){let{format:D}=p,{getOptions:j}=x,{setFixedRange:R}=O,{addEvent:z,clamp:F,crisp:H,defined:U,extend:Y,find:V,isNumber:q,isString:K,merge:$,pick:_,splat:Z}=L;function J(e,p,x){return"xAxis"===e?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0}:"yAxis"===e?{labels:{y:-2},opposite:x.opposite??p.opposite??!0,showLastLabel:!!(p.categories||"category"===p.type),title:{text:x.title?.text!=="Values"?x.title?.text:null}}:{}}function tt(e,p){if("xAxis"===e){let e=_(p.navigator&&p.navigator.enabled,y.enabled,!0),x={type:"datetime",categories:void 0};return e&&(x.startOnTick=!1,x.endOnTick=!1),x}return{}}let C=class C extends e{init(e,p){let x=j(),O=e.xAxis,L=e.yAxis,D=_(e.navigator&&e.navigator.enabled,y.enabled,!0);e.xAxis=e.yAxis=void 0;let R=$({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x",mouseWheel:{type:"x"}}},navigator:{enabled:D},scrollbar:{enabled:_(E.enabled,!0)},rangeSelector:{enabled:_(b.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:_(x.tooltip&&x.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},e,{isStock:!0});e.xAxis=O,e.yAxis=L,R.xAxis=Z(e.xAxis||{}).map(p=>$(J("xAxis",p,x.xAxis),p,tt("xAxis",e))),R.yAxis=Z(e.yAxis||{}).map(e=>$(J("yAxis",e,x.yAxis),e)),super.init(R,p)}createAxis(e,p){return p.axis=$(J(e,p.axis,j()[e]),p.axis,tt(e,this.userOptions)),super.createAxis(e,p)}};return z(e,"update",function(e){let p=e.options;"scrollbar"in p&&this.navigator&&($(!0,this.options.scrollbar,p.scrollbar),this.navigator.update({}),delete p.scrollbar)}),function(e){function p(e){if(!this.crosshair||!this.crosshair.label||!this.crosshair.label.enabled||!this.cross||!q(this.min)||!q(this.max))return;let p=this.chart,x=this.logarithmic,y=this.crosshair.label,b=this.horiz,E=this.opposite,O=this.left,L=this.top,j=this.width,R="inside"===this.options.tickPosition,z=!1!==this.crosshair.snap,F=e.e||this.cross&&this.cross.e,H=e.point,U=this.crossLabel,V,K,$=y.format,Z="",J,tt=0,te=this.min,ti=this.max;x&&(te=x.lin2log(this.min),ti=x.lin2log(this.max));let ts=b?"center":E?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";U||(U=this.crossLabel=p.renderer.label("",0,void 0,y.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(H&&H.series?H.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:y.align||ts,padding:_(y.padding,8),r:_(y.borderRadius,3),zIndex:2}).add(this.labelGroup),p.styledMode||U.attr({fill:y.backgroundColor||H&&H.series&&H.series.color||"#666666",stroke:y.borderColor||"","stroke-width":y.borderWidth||0}).css(Y({color:"#ffffff",fontWeight:"normal",fontSize:"0.7em",textAlign:"center"},y.style||{}))),b?(V=z?(H.plotX||0)+O:F.chartX,K=L+(E?0:this.height)):(V=O+this.offset+(E?j:0),K=z?(H.plotY||0)+L:F.chartY),$||y.formatter||(this.dateTime&&(Z="%b %d, %Y"),$="{value"+(Z?":"+Z:"")+"}");let to=z?this.isXAxis?H.x:H.y:this.toValue(b?F.chartX:F.chartY),tr=H&&H.series?H.series.isPointInside(H):q(to)&&to>te&&to=J.right&&(tt=-(tl+ta.width-J.right)),U.attr({x:V+tt,y:K,anchorX:b?V:this.opposite?0:p.chartWidth,anchorY:b?this.opposite?p.chartHeight:0:K+ta.height/2})}function x(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}function y(e){let p=this.chart,x=this.options,y=p._labelPanes=p._labelPanes||{},b=x.labels;if(p.options.isStock&&"yAxis"===this.coll){let p=x.top+","+x.height;!y[p]&&b.enabled&&(15===b.distance&&1===this.side&&(b.distance=0),void 0===b.align&&(b.align="right"),y[p]=this,e.align="right",e.preventDefault())}}function b(){let e=this.chart,p=this.options&&this.options.top+","+this.options.height;p&&e._labelPanes&&e._labelPanes[p]===this&&delete e._labelPanes[p]}function E(e){let p=this.isLinked&&!this.series&&this.linkedParent?this.linkedParent.series:this.series,x=this.chart,y=x.renderer,b=this.left,E=this.top,O=[],L=e.translatedValue,D=e.value,j=e.force,R,z,H,Y,$=[],Z,J;if(x.options.isStock&&!1!==e.acrossPanes&&"xAxis"===this.coll||"yAxis"===this.coll){let tt,te;for(let y of(e.preventDefault(),tt="xAxis"===this.coll?"yAxis":"xAxis",$=q(te=this.options[tt])?[x[tt][te]]:K(te)?[x.get(te)]:p.map(e=>e[tt]),this.isXAxis?x.yAxis:x.xAxis))if(!U(y.options.id)||-1===y.options.id.indexOf("navigator")){let e=y.isXAxis?"yAxis":"xAxis";this===(U(y.options[e])?x[e][y.options[e]]:x[e][0])&&$.push(y)}for(let e of(Z=$.length?[]:[this.isXAxis?x.yAxis[0]:x.xAxis[0]],$))-1!==Z.indexOf(e)||V(Z,p=>p.pos===e.pos&&p.len===e.len)||Z.push(e);if(q(J=_(L,this.translate(D||0,void 0,void 0,e.old)))){if(this.horiz)for(let e of Z){let p;Y=(z=e.pos)+e.len,R=H=Math.round(J+this.transB),"pass"!==j&&(Rb+this.width)&&(j?R=H=F(R,b,b+this.width):p=!0),p||O.push(["M",R,z],["L",H,Y])}else for(let e of Z){let p;H=(R=e.pos)+e.len,z=Y=Math.round(E+this.height-J),"pass"!==j&&(zE+this.height)&&(j?z=Y=F(z,E,E+this.height):p=!0),p||O.push(["M",R,z],["L",H,Y])}}e.path=O.length>0?y.crispPolyLine(O,e.lineWidth||1):void 0}}function O(e){if(this.chart.options.isStock){let p;this.is("column")||this.is("columnrange")?p={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(p={marker:{enabled:!1,radius:2}}),p&&(e.plotOptions[this.type]=$(e.plotOptions[this.type],p))}}function L(){let e=this.chart,p=this.options.dataGrouping;return!1!==this.allowDG&&p&&_(p.enabled,e.options.isStock)}function j(e,p){for(let x=0;x\u25CF {series.name}
High: {point.high}
Low: {point.low}
Close: {point.close}
'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}}),x(p,"Series/HLC/HLCSeries.js",[p["Series/HLC/HLCPoint.js"],p["Series/HLC/HLCSeriesDefaults.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Utilities.js"]],function(e,p,x,y){let{column:b}=x.seriesTypes,{crisp:E,extend:O,merge:L}=y;let l=class l extends b{extendStem(e,p,x){let y=e[0],b=e[1];"number"==typeof y[2]&&(y[2]=Math.max(x+p,y[2])),"number"==typeof b[2]&&(b[2]=Math.min(x-p,b[2]))}getPointPath(e,p){let x=p.strokeWidth(),y=e.series,b=E(e.plotX||0,x),O=Math.round(e.shapeArgs.width/2),L=[["M",b,Math.round(e.yBottom)],["L",b,Math.round(e.plotHigh)]];if(null!==e.close){let p=E(e.plotClose,x);L.push(["M",b,p],["L",b+O,p]),y.extendStem(L,x/2,p)}return L}drawSinglePoint(e){let p=e.series,x=p.chart,y,b=e.graphic;void 0!==e.plotY&&(b||(e.graphic=b=x.renderer.path().add(p.group)),x.styledMode||b.attr(p.pointAttribs(e,e.selected&&"select")),y=p.getPointPath(e,b),b[b?"animate":"attr"]({d:y}).addClass(e.getClassName(),!0))}drawPoints(){this.points.forEach(this.drawSinglePoint)}init(){super.init.apply(this,arguments),this.options.stacking=void 0}pointAttribs(e,p){let x=super.pointAttribs.call(this,e,p);return delete x.fill,x}toYData(e){return[e.high,e.low,e.close]}translate(){let e=this,p=e.yAxis,x=this.pointArrayMap&&this.pointArrayMap.slice()||[],y=x.map(e=>`plot${e.charAt(0).toUpperCase()+e.slice(1)}`);y.push("yBottom"),x.push("low"),super.translate.apply(e),e.points.forEach(function(b){x.forEach(function(x,E){let O=b[x];null!==O&&(e.dataModify&&(O=e.dataModify.modifyValue(O)),b[y[E]]=p.toPixels(O,!0))}),b.tooltipPos[1]=b.plotHigh+p.pos-e.chart.plotTop})}};return l.defaultOptions=L(b.defaultOptions,p),O(l.prototype,{pointClass:e,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),x.registerSeriesType("hlc",l),l}),x(p,"Series/OHLC/OHLCPoint.js",[p["Core/Series/SeriesRegistry.js"]],function(e){let{seriesTypes:{hlc:p}}=e;let i=class i extends p.prototype.pointClass{getClassName(){return super.getClassName.call(this)+(this.open\u25CF {series.name}
Open: {point.open}
High: {point.high}
Low: {point.low}
Close: {point.close}
'}}}),x(p,"Series/OHLC/OHLCSeries.js",[p["Core/Globals.js"],p["Series/OHLC/OHLCPoint.js"],p["Series/OHLC/OHLCSeriesDefaults.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Utilities.js"]],function(e,p,x,y,b){let{composed:E}=e,{hlc:O}=y.seriesTypes,{addEvent:L,crisp:D,extend:j,merge:R,pushUnique:z}=b;function F(e){let p=e.options,x=p.dataGrouping;x&&p.useOhlcData&&"highcharts-navigator-series"!==p.id&&(x.approximation="ohlc")}function H(e){let p=e.options;p.useOhlcData&&"highcharts-navigator-series"!==p.id&&j(this,{pointValKey:g.prototype.pointValKey,pointArrayMap:g.prototype.pointArrayMap,toYData:g.prototype.toYData})}let g=class g extends O{static compose(e,...p){z(E,"OHLCSeries")&&(L(e,"afterSetOptions",F),L(e,"init",H))}getPointPath(e,p){let x=super.getPointPath(e,p),y=p.strokeWidth(),b=D(e.plotX||0,y),E=Math.round(e.shapeArgs.width/2);if(null!==e.open){let p=D(e.plotOpen,y);x.push(["M",b,p],["L",b-E,p]),super.extendStem(x,y/2,p)}return x}pointAttribs(e,p){let x=super.pointAttribs.call(this,e,p),y=this.options;return delete x.fill,!e.options.color&&y.upColor&&e.openb&&(x-=Math.round((E-b)/2),b=E),L=e[p](x,y,b,E,O),D&&j){let O=D;if("circle"===p)O=x+b/2;else{let e=L[0],p=L[1];"M"===e[0]&&"L"===p[0]&&(O=(e[1]+p[1])/2)}let R=y>j?y:y+E;L.push(["M",O,R],["L",D,j]),L=L.concat(e.circle(D-1,j-1,2,2))}return L}}p.compose=function(p){if(-1===x.indexOf(p)){x.push(p);let e=p.prototype.symbols;e.flag=y,b(e,"circle"),b(e,"square")}let E=e.getRendererType();x.indexOf(E)&&x.push(E)}}(p||(p={})),p}),x(p,"Series/OnSeriesComposition.js",[p["Series/Column/ColumnSeries.js"],p["Core/Globals.js"],p["Core/Series/Series.js"],p["Core/Utilities.js"]],function(e,p,x,y){var b;let{composed:E}=p,{prototype:O}=e,{prototype:L}=x,{defined:D,pushUnique:j,stableSort:R}=y;return function(e){function p(e){return L.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,e)}function x(){O.translate.apply(this);let e=this,p=e.options,x=e.chart,y=e.points,b=p.onSeries,E=b&&x.get(b),L=E&&E.options.step,j=E&&E.points,z=x.inverted,F=e.xAxis,H=e.yAxis,U=y.length-1,Y,V,q=p.onKey||"y",K=j&&j.length,$=0,_,Z,J,tt,te;if(E&&E.visible&&K){for($=(E.pointXOffset||0)+(E.barW||0)/2,tt=E.currentDataGrouping,Z=j[K-1].x+(tt?tt.totalRange:0),R(y,(e,p)=>e.x-p.x),q="plot"+q[0].toUpperCase()+q.substr(1);K--&&y[U];)if(_=j[K],(Y=y[U]).y=_.y,_.x<=Y.x&&void 0!==_[q]){if(Y.x<=Z&&(Y.plotY=_[q],_.xMath.pow(1-b,3)*e[E]+3*(1-b)*(1-b)*b*x[E]+3*(1-b)*b*b*y[E]+b*b*b*p[E],E=0,O=1,L;for(let e=0;e<100;e++){let e=(E+O)/2,p=b(e,0);if(null===p)break;if(.25>Math.abs(p-Y.plotX)){L=e;break}p{let b;p.plotX+=$,(void 0===p.plotY||z)&&(p.plotX>=0&&p.plotX<=F.len?z?(p.plotY=F.translate(p.x,0,1,0,1),p.plotX=D(p.y)?H.translate(p.y,0,0,0,1):0):p.plotY=(F.opposite?0:e.yAxis.len)+F.offset:p.shapeArgs={}),(V=y[x-1])&&V.plotX===p.plotX&&(void 0===V.stackIndex&&(V.stackIndex=0),b=V.stackIndex+1),p.stackIndex=b}),this.onSeries=E}e.compose=function(e){if(j(E,"OnSeries")){let y=e.prototype;y.getPlotBox=p,y.translate=x}return e},e.getPlotBox=p,e.translate=x}(b||(b={})),b}),x(p,"Series/Flags/FlagsSeries.js",[p["Series/Flags/FlagsPoint.js"],p["Series/Flags/FlagsSeriesDefaults.js"],p["Series/Flags/FlagsSymbols.js"],p["Core/Globals.js"],p["Series/OnSeriesComposition.js"],p["Core/Renderer/RendererUtilities.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Renderer/SVG/SVGElement.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E,O,L,D){let{noop:j}=y,{distribute:R}=E,{series:z,seriesTypes:{column:F}}=O,{addEvent:H,defined:U,extend:Y,isNumber:V,merge:q,objectEach:K,wrap:$}=D;let v=class v extends F{animate(e){e&&this.setClip()}drawPoints(){let e,p,x,y,b,E,O,D,j,z,F;let H=this.points,Y=this.chart,_=Y.renderer,Z=Y.inverted,J=this.options,tt=J.y,te=this.yAxis,ti={},ts=[],to=V(J.borderRadius)?J.borderRadius:0;for(y=H.length;y--;)b=H[y],z=(Z?b.plotY:b.plotX)>this.xAxis.len,e=b.plotX,O=b.stackIndex,x=b.options.shape||J.shape,void 0!==(p=b.plotY)&&(p=b.plotY+tt-(void 0!==O&&O*J.stackDistance)),b.anchorX=O?void 0:b.plotX,D=O?void 0:b.plotY,F="flag"!==x,E=b.graphic,void 0!==p&&e>=0&&!z?(E&&b.hasNewShapeType()&&(E=E.destroy()),E||(E=b.graphic=_.label("",0,void 0,x,void 0,void 0,J.useHTML).addClass("highcharts-point").add(this.markerGroup),b.graphic.div&&(b.graphic.div.point=b),E.isNew=!0),E.attr({align:F?"center":"left",width:J.width,height:J.height,"text-align":J.textAlign,r:to}),Y.styledMode||E.attr(this.pointAttribs(b)).css(q(J.style,b.style)).shadow(J.shadow),e>0&&(e-=E.strokeWidth()%2),j={y:p,anchorY:D},J.allowOverlapX&&(j.x=e,j.anchorX=b.anchorX),E.attr({text:b.options.title??J.title??"A"})[E.isNew?"attr":"animate"](j),J.allowOverlapX||(ti[b.plotX]?ti[b.plotX].size=Math.max(ti[b.plotX].size,E.width||0):ti[b.plotX]={align:F?.5:0,size:E.width||0,target:e,anchorX:e}),b.tooltipPos=[e,p+te.pos-Y.plotTop]):E&&(b.graphic=E.destroy());if(!J.allowOverlapX){let e=100;for(let p of(K(ti,function(p){p.plotX=p.anchorX,ts.push(p),e=Math.max(p.size,e)}),R(ts,Z?te.len:this.xAxis.len,e),H)){let e=p.plotX,x=p.graphic,y=x&&ti[e];y&&x&&(U(y.pos)?x[x.isNew?"attr":"animate"]({x:y.pos+(y.align||0)*y.size,anchorX:p.anchorX}).show().isNew=!1:x.hide().isNew=!0)}}J.useHTML&&this.markerGroup&&$(this.markerGroup,"on",function(e){return L.prototype.on.apply(e.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})}drawTracker(){let e=this.points;for(let p of(super.drawTracker(),e)){let x=p.graphic;x&&(p.unbindMouseOver&&p.unbindMouseOver(),p.unbindMouseOver=H(x.element,"mouseover",function(){for(let y of(p.stackIndex>0&&!p.raised&&(p._y=x.y,x.attr({y:p._y-8}),p.raised=!0),e))y!==p&&y.raised&&y.graphic&&(y.graphic.attr({y:y._y}),y.raised=!1)}))}}pointAttribs(e,p){let x=this.options,y=e&&e.color||this.color,b=x.lineColor,E=e&&e.lineWidth,O=e&&e.fillColor||x.fillColor;return p&&(O=x.states[p].fillColor,b=x.states[p].lineColor,E=x.states[p].lineWidth),{fill:O||y,stroke:b||y,"stroke-width":E||x.lineWidth||0}}setClip(){z.prototype.setClip.apply(this,arguments),!1!==this.options.clip&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])}};return v.compose=x.compose,v.defaultOptions=q(F.defaultOptions,p),b.compose(v),Y(v.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:e,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:j,init:z.prototype.init}),O.registerSeriesType("flags",v),v}),x(p,"Core/Axis/BrokenAxis.js",[p["Core/Axis/Stacking/StackItem.js"],p["Core/Utilities.js"]],function(e,p){var x;let{addEvent:y,find:b,fireEvent:E,isArray:O,isNumber:L,pick:D}=p;return function(p){function x(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function j(){this.brokenAxis?.hasBreaks&&(this.options.ordinal=!1)}function R(){let e=this.brokenAxis;if(e?.hasBreaks){let p=this.tickPositions,x=this.tickPositions.info,y=[];for(let x=0;xp.to||y>p.from&&bp.from&&bp.from&&b>p.to&&b0){let p,L;for("value"!==this.options.gapUnit&&(E*=this.basePointRange),x&&x>E&&x>=this.basePointRange&&(E=x);O--;)if(L&&!1!==L.visible||(L=y[O+1]),p=y[O],!1!==L.visible&&!1!==p.visible){if(L.x-p.x>E){let x=(p.x+L.x)/2;y.splice(O+1,0,{isNull:!0,x:x}),b.stacking&&this.options.stacking&&((b.stacking.stacks[this.stackKey][x]=new e(b,b.options.stackLabels,!1,x,this.stack)).total=0)}L=p}}return this.getGraphPath(y)}p.compose=function(e,p){if(!e.keepProps.includes("brokenAxis")){e.keepProps.push("brokenAxis"),y(e,"init",z),y(e,"afterInit",x),y(e,"afterSetTickPositions",R),y(e,"afterSetOptions",j);let b=p.prototype;b.drawBreaks=U,b.gappedPath=Y,y(p,"afterGeneratePoints",F),y(p,"afterRender",H)}return e};let m=class m{static isInBreak(e,p){let x=e.repeat||1/0,y=e.from,b=e.to-e.from,E=p>=y?(p-y)%x:x-(y-p)%x;return e.inclusive?E<=b:E=y);E++)b.to=e)break;else if(m.isInBreak(b,e)){y-=e-b.from;break}return y}constructor(e){this.hasBreaks=!1,this.axis=e}findBreakAt(e,p){return b(p,function(p){return p.fromF;)U-=z;for(;Uthis.chart.plotSizeX/y||E&&L.forced)&&(b=!0));return b?y:0}function j(){this.series.forEach(function(e){e.hasProcessed=!1})}function R(e,p){let y;if(p=O(p,!0),e||(e={forced:!1,units:null}),this instanceof x)for(y=this.series.length;y--;)this.series[y].update({dataGrouping:e},!1);else this.chart.options.series.forEach(function(p){p.dataGrouping="boolean"==typeof e?e:E(e,p.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),p&&this.chart.redraw()}return{compose:function(e){x=e;let p=e.prototype;p.applyGrouping||(y(e,"afterSetScale",j),y(e,"postProcessData",L),b(p,{applyGrouping:L,getGroupPixelWidth:D,setDataGrouping:R}))}}}),x(p,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[p["Extensions/DataGrouping/ApproximationRegistry.js"],p["Extensions/DataGrouping/DataGroupingDefaults.js"],p["Core/Axis/DateTimeAxis.js"],p["Core/Defaults.js"],p["Core/Series/SeriesRegistry.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E){let{series:{prototype:O}}=b,{addEvent:L,defined:D,error:j,extend:R,isNumber:z,merge:F,pick:H}=E,U=O.generatePoints;function Y(e){var y;let b,E;let L=this.chart,R=this.options.dataGrouping,F=!1!==this.allowDG&&R&&H(R.enabled,L.options.isStock),U=this.reserveSpace(),Y=this.currentDataGrouping,V,q,K=!1;F&&!this.requireSorting&&(this.requireSorting=K=!0);let $=!1==!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!e)||!F;if(K&&(this.requireSorting=!1),$)return;this.destroyGroupedData();let _=R.groupAll?this.xData:this.processedXData,Z=R.groupAll?this.yData:this.processedYData,J=L.plotSizeX,tt=this.xAxis,te=tt.options.ordinal,ti=this.groupPixelWidth;if(ti&&_&&_.length&&J){E=!0,this.isDirty=!0,this.points=null;let e=tt.getExtremes(),F=e.min,H=e.max,Y=te&&tt.ordinal&&tt.ordinal.getGroupIntervalFactor(F,H,this)||1,K=ti*(H-F)/J*Y,$=tt.getTimeTicks(x.Additions.prototype.normalizeTimeTickInterval(K,R.units||p.units),Math.min(F,_[0]),Math.max(H,_[_.length-1]),tt.options.startOfWeek,_,this.closestPointRange),ts=O.groupData.apply(this,[_,Z,$,R.approximation]),to=ts.groupedXData,tr=ts.groupedYData,tn=0;for(R&&R.smoothed&&to.length&&(R.firstAnchor="firstPoint",R.anchor="middle",R.lastAnchor="lastPoint",j(32,!1,L,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),b=1;b<$.length;b++)$.info.segmentStarts&&-1!==$.info.segmentStarts.indexOf(b)||(tn=Math.max($[b]-$[b-1],tn));(V=$.info).gapSize=tn,this.closestPointRange=$.info.totalRange,this.groupMap=ts.groupMap,this.currentDataGrouping=V,function(e,p,x){let y=e.options.dataGrouping,b=e.currentDataGrouping&&e.currentDataGrouping.gapSize;if(!(y&&e.xData&&b&&e.groupMap))return;let E=p.length-1,O=y.anchor,L=y.firstAnchor,D=y.lastAnchor,j=p.length-1,R=0;if(L&&e.xData[0]>=p[0]){let x;R++;let y=e.groupMap[0].start,E=e.groupMap[0].length;z(y)&&z(E)&&(x=y+(E-1)),p[0]=({start:p[0],middle:p[0]+.5*b,end:p[0]+b,firstPoint:e.xData[0],lastPoint:x&&e.xData[x]})[L]}if(E>0&&D&&b&&p[E]>=x-b){j--;let x=e.groupMap[e.groupMap.length-1].start;p[E]=({start:p[E],middle:p[E]+.5*b,end:p[E]+b,firstPoint:x&&e.xData[x],lastPoint:e.xData[e.xData.length-1]})[D]}if(O&&"start"!==O){let e=b*({middle:.5,end:1})[O];for(;j>=R;)p[j]+=e,j--}}(this,to,H),U&&(D((y=to)[0])&&z(tt.min)&&z(tt.dataMin)&&y[0]tt.max&&((!D(tt.options.max)&&z(tt.dataMax)&&tt.max>=tt.dataMax||tt.max===tt.dataMax)&&(tt.max=Math.max(y[y.length-1],tt.max)),tt.dataMax=Math.max(y[y.length-1],tt.dataMax))),R.groupAll&&(this.allGroupedData=tr,to=(q=this.cropData(to,tr,tt.min,tt.max)).xData,tr=q.yData,this.cropStart=q.start),this.processedXData=to,this.processedYData=tr}else this.groupMap=null,this.currentDataGrouping=void 0;this.hasGroupedData=E,this.preventGraphAnimation=(Y&&Y.totalRange)!==(V&&V.totalRange)}function V(){this.groupedData&&(this.groupedData.forEach(function(e,p){e&&(this.groupedData[p]=e.destroy?e.destroy():null)},this),this.groupedData.length=0,delete this.allGroupedData)}function q(){U.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function K(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")||this.options.cumulative?"sum":"average"}function $(p,x,y,b){let E=this,O=E.data,L=E.options&&E.options.data,j=[],R=[],H=[],U=p.length,Y=!!x,V=[],q=E.pointArrayMap,K=q&&q.length,$=["x"].concat(q||["y"]),_=this.options.dataGrouping&&this.options.dataGrouping.groupAll,Z,J,tt,te=0,ti=0,ts="function"==typeof b?b:b&&e[b]?e[b]:e[E.getDGApproximation&&E.getDGApproximation()||"average"];if(K){let e=q.length;for(;e--;)V.push([])}else V.push([]);let to=K||1;for(let e=0;e<=U;e++)if(!(p[e]=y[te+1]||e===U;){Z=y[te],E.dataGroupInfo={start:_?ti:E.cropStart+ti,length:V[0].length,groupStart:Z},tt=ts.apply(E,V),E.pointClass&&!D(E.dataGroupInfo.options)&&(E.dataGroupInfo.options=F(E.pointClass.prototype.optionsToObject.call({series:E},E.options.data[E.cropStart+ti])),$.forEach(function(e){delete E.dataGroupInfo.options[e]})),void 0!==tt&&(j.push(Z),R.push(tt),H.push(E.dataGroupInfo)),ti=e;for(let e=0;e{let p=e.axis.getExtremes(),b=p.min,E=p.max,O=y(e.axis.minPointOffset,0);return x(b)&&x(E)&&e.value>=b-O&&e.value<=E+O&&!e.axis.options.isInternal})[0]},getFieldType:function(e,x){let y=b[e],E=typeof x;return p(y)&&(E=y),({string:"text",number:"number",boolean:"checkbox"})[E]}}}),x(p,"Extensions/MouseWheelZoom/MouseWheelZoom.js",[p["Core/Utilities.js"],p["Extensions/Annotations/NavigationBindingsUtilities.js"]],function(e,p){let x;let{addEvent:y,isObject:b,pick:E,defined:O,merge:L}=e,{getAssignedAxis:D}=p,j=[],R={enabled:!0,sensitivity:1.1},z=e=>(b(e)||(e={enabled:e??!0}),L(R,e)),F=function(e,p,y,b,L,D,j){let R=E(j.type,e.zooming.type,""),z=[];"x"===R?z=y:"y"===R?z=b:"xy"===R&&(z=e.axes);let F=e.transform({axes:z,to:{x:L-5,y:D-5,width:10,height:10},from:{x:L-5*p,y:D-5*p,width:10*p,height:10*p},trigger:"mousewheel"});return F&&(O(x)&&clearTimeout(x),x=setTimeout(()=>{e.pointer?.drop()},400)),F};function H(){let e=z(this.zooming.mouseWheel);e.enabled&&y(this.container,"wheel",p=>{p=this.pointer?.normalize(p)||p;let{pointer:x}=this,y=x&&!x.inClass(p.target,"highcharts-no-mousewheel");if(this.isInsidePlot(p.chartX-this.plotLeft,p.chartY-this.plotTop)&&y){let y=e.sensitivity||1.1,b=p.detail||(p.deltaY||0)/120,E=D(x.getCoordinates(p).xAxis),O=D(x.getCoordinates(p).yAxis);F(this,Math.pow(y,b),E?[E.axis]:this.xAxis,O?[O.axis]:this.yAxis,p.chartX,p.chartY,e)&&p.preventDefault?.()}})}return{compose:function(e){-1===j.indexOf(e)&&(j.push(e),y(e,"afterGetContainer",H))}}}),x(p,"masters/modules/mouse-wheel-zoom.src.js",[p["Core/Globals.js"],p["Extensions/MouseWheelZoom/MouseWheelZoom.js"]],function(e,p){return e.MouseWheelZoom=e.MouseWheelZoom||p,e.MouseWheelZoom.compose(e.Chart),e}),x(p,"masters/modules/stock.src.js",[p["Core/Globals.js"],p["Series/DataModifyComposition.js"],p["Stock/Navigator/Navigator.js"],p["Core/Axis/OrdinalAxis.js"],p["Stock/RangeSelector/RangeSelector.js"],p["Stock/Scrollbar/Scrollbar.js"],p["Core/Chart/StockChart.js"],p["Series/OHLC/OHLCSeries.js"],p["Series/Flags/FlagsSeries.js"]],function(e,p,x,y,b,E,O,L,D){return e.Navigator=e.Navigator||x,e.OrdinalAxis=e.OrdinalAxis||y,e.RangeSelector=e.RangeSelector||b,e.Scrollbar=e.Scrollbar||E,e.stockChart=e.stockChart||O.stockChart,e.StockChart=e.StockChart||e.stockChart,e.extend(e.StockChart,O),p.compose(e.Series,e.Axis,e.Point),D.compose(e.Renderer),L.compose(e.Series),e.Navigator.compose(e.Chart,e.Axis,e.Series),e.OrdinalAxis.compose(e.Axis,e.Series,e.Chart),e.RangeSelector.compose(e.Axis,e.Chart),e.Scrollbar.compose(e.Axis),e.StockChart.compose(e.Chart,e.Axis,e.Series,e.SVGRenderer),e}),x(p,"masters/highstock.src.js",[p["masters/highcharts.src.js"]],function(e){return e.product="Highstock",e}),p["masters/highstock.src.js"]._modules=p,p["masters/highstock.src.js"]},e.exports?(E.default=E,e.exports=b&&b.document?E(b):E):void 0!==(y=(function(){return E(b)}).call(p,x,p,e))&&(e.exports=y)},44802:(e,p,x)=>{var y;!function(b){e.exports?(b.default=b,e.exports=b):void 0!==(y=(function(e){return b(e),b.Highcharts=e,b}).apply(p,[x(14783)]))&&(e.exports=y)}(function(e){"use strict";var p=e?e._modules:{};function x(e,p,x,y){e.hasOwnProperty(p)||(e[p]=y.apply(null,x),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:p,module:e[p]}})))}x(p,"Accessibility/Utils/HTMLUtilities.js",[p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p){let{doc:x,win:y}=e,{css:b}=p,E=y.EventTarget&&new y.EventTarget||"none";function O(e){if("function"==typeof y.MouseEvent)return new y.MouseEvent(e.type,e);if(x.createEvent){let p=x.createEvent("MouseEvent");if(p.initMouseEvent)return p.initMouseEvent(e.type,e.bubbles,e.cancelable,e.view||y,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),p}return L(e.type)}function L(e,p,b){let O=p||{x:0,y:0};if("function"==typeof y.MouseEvent)return new y.MouseEvent(e,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:b||E,view:y,detail:"click"===e?1:0,screenX:O.x,screenY:O.y,clientX:O.x,clientY:O.y});if(x.createEvent){let p=x.createEvent("MouseEvent");if(p.initMouseEvent)return p.initMouseEvent(e,!0,!0,y,"click"===e?1:0,O.x,O.y,O.x,O.y,!1,!1,!1,!1,0,null),p}return{type:e}}return{addClass:function(e,p){e.classList?e.classList.add(p):0>e.className.indexOf(p)&&(e.className+=" "+p)},cloneMouseEvent:O,cloneTouchEvent:function(e){let p=e=>{let p=[];for(let x=0;x/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},getElement:function(e){return x.getElementById(e)},getFakeMouseEvent:L,getHeadingTagNameForElement:function(e){let p=e=>"h"+Math.min(6,parseInt(e.slice(1),10)+1),x=e=>/H[1-6]/.test(e),y=e=>{let p=e;for(;p=p.previousSibling;){let e=p.tagName||"";if(x(e))return e}return""},b=e=>{let E=y(e);if(E)return p(E);let O=e.parentElement;if(!O)return"p";let L=O.tagName;return x(L)?p(L):b(O)};return b(e)},removeChildNodes:function(e){for(;e.lastChild;)e.removeChild(e.lastChild)},removeClass:function(e,p){e.classList?e.classList.remove(p):e.className=e.className.replace(RegExp(p,"g"),"")},removeElement:function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},reverseChildNodes:function(e){let p=e.childNodes.length;for(;p--;)e.appendChild(e.childNodes[p])},simulatedEventTarget:E,stripHTMLTagsFromString:function(e,p=!1){return"string"==typeof e?p?e.replace(/<\/?[^>]+(>|$)/g,""):e.replace(/<\/?(?!\s)[^>]+(>|$)/g,""):e},visuallyHideElement:function(e){b(e,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}}}),x(p,"Accessibility/A11yI18n.js",[p["Core/Templating.js"],p["Core/Utilities.js"]],function(e,p){var x;let{format:y}=e,{getNestedProperty:b,pick:E}=p;return function(e){function p(e,p,x){let O=(e,p)=>{let x=e.slice(p||0),y=x.indexOf("{"),b=x.indexOf("}");if(y>-1&&b>y)return{statement:x.substring(y+1,b),begin:p+y+1,end:p+b}},L=[],D,j,R=0;do D=O(e,R),(j=e.substring(R,D&&D.begin-1)).length&&L.push({value:j,type:"constant"}),D&&L.push({value:D.statement,type:"statement"}),R=D?D.end+1:R+1;while(D)return L.forEach(e=>{"statement"===e.type&&(e.value=function(e,p){let x,y;let O=e.indexOf("#each("),L=e.indexOf("#plural("),D=e.indexOf("["),j=e.indexOf("]");if(O>-1){let E=e.slice(O).indexOf(")")+O,L=e.substring(0,O),D=e.substring(E+1),j=e.substring(O+6,E).split(","),R=Number(j[1]),z;if(y="",x=b(j[0],p)){z=(R=isNaN(R)?x.length:R)<0?x.length+R:Math.min(R,x.length);for(let e=0;e-1){var R;let x=e.slice(L).indexOf(")")+L,O=e.substring(L+8,x).split(",");switch(Number(b(O[0],p))){case 0:y=E(O[4],O[1]);break;case 1:y=E(O[2],O[1]);break;case 2:y=E(O[3],O[1]);break;default:y=O[1]}return y?(R=y).trim&&R.trim()||R.replace(/^\s+|\s+$/g,""):""}if(D>-1){let y;let E=e.substring(0,D),O=Number(e.substring(D+1,j));return x=b(E,p),!isNaN(O)&&x&&(O<0?void 0===(y=x[x.length+O])&&(y=x[0]):void 0===(y=x[O])&&(y=x[x.length-1])),void 0!==y?y:""}return"{"+e+"}"}(e.value,p))}),y(L.reduce((e,p)=>e+p.value,""),p,x)}function x(e,x){let y=e.split("."),b=this.options.lang,E=0;for(;E!!e.graphic);return p&&p.graphic&&p.graphic.element}}function j(e){let p=D(e);return p&&p.parentNode||e.graph&&e.graph.element||e.group&&e.group.element}return{fireEventOnWrappedOrUnwrappedElement:function e(p,x){let b=x.type,E=p.hcEvents;y.createEvent&&(p.dispatchEvent||p.fireEvent)?p.dispatchEvent?p.dispatchEvent(x):p.fireEvent(b,x):E&&E[b]?L(p,b,x):p.element&&e(p.element,x)},getChartTitle:function(e){return b(e.options.title.text||e.langFormat("accessibility.defaultChartTitle",{chart:e}),e.renderer.forExport)},getAxisDescription:function(e){return e&&(e.options.accessibility?.description||e.axisTitle?.textStr||e.options.id||e.categories&&"categories"||e.dateTime&&"Time"||"values")},getAxisRangeDescription:function(e){let p,x,y,b,E,O,L,D,j,R,z,F,H=e.options||{};return H.accessibility&&void 0!==H.accessibility.rangeDescription?H.accessibility.rangeDescription:e.categories?(p=e.chart,e.dataMax&&e.dataMin?p.langFormat("accessibility.axis.rangeCategories",{chart:p,axis:e,numCategories:e.dataMax-e.dataMin+1}):""):e.dateTime&&(0===e.min||0===e.dataMin)?(x=e.chart,y={},b=e.dataMin||e.min||0,E=e.dataMax||e.max||0,O="Seconds",y.Seconds=(E-b)/1e3,y.Minutes=y.Seconds/60,y.Hours=y.Minutes/60,y.Days=y.Hours/24,["Minutes","Hours","Days"].forEach(function(e){y[e]>2&&(O=e)}),L=y[O].toFixed("Seconds"!==O&&"Minutes"!==O?1:0),x.langFormat("accessibility.axis.timeRange"+O,{chart:x,axis:e,range:L.replace(".0","")})):(R=(j=(D=e.chart).options)&&j.accessibility&&j.accessibility.screenReaderSection.axisRangeDateFormat||"",z={min:e.dataMin||e.min||0,max:e.dataMax||e.max||0},F=function(p){return e.dateTime?D.time.dateFormat(R,z[p]):z[p].toString()},D.langFormat("accessibility.axis.rangeFromTo",{chart:D,axis:e,rangeFrom:F("min"),rangeTo:F("max")}))},getPointFromXY:function(e,p,x){let y=e.length,b;for(;y--;)if(b=O(e[y].points||[],function(e){return e.x===p&&e.y===x}))return b},getSeriesFirstPointElement:D,getSeriesFromName:function(e,p){return p?(e.series||[]).filter(function(e){return e.name===p}):e.series},getSeriesA11yElement:j,unhideChartElementFromAT:function e(p,x){x.setAttribute("aria-hidden",!1),x!==p.renderTo&&x.parentNode&&x.parentNode!==y.body&&(Array.prototype.forEach.call(x.parentNode.childNodes,function(e){e.hasAttribute("aria-hidden")||e.setAttribute("aria-hidden",!0)}),e(p,x.parentNode))},hideSeriesFromAT:function(e){let p=j(e);p&&p.setAttribute("aria-hidden",!0)},scrollAxisToPoint:function(e){let p=e.series.xAxis,x=e.series.yAxis,y=p&&p.scrollbar?p:x,b=y&&y.scrollbar;if(b&&E(b.to)&&E(b.from)){let p=b.to-b.from,x=function(e,p){if(!E(e.dataMin)||!E(e.dataMax))return 0;let x=e.toPixels(e.dataMin),y=e.toPixels(e.dataMax),b="xAxis"===e.coll?"x":"y";return(e.toPixels(p[b]||0)-x)/(y-x)}(y,e);b.updatePosition(x-p/2,x+p/2),L(b,"changed",{from:b.from,to:b.to,trigger:"scrollbar",DOMEvent:null})}}}}),x(p,"Accessibility/Utils/DOMElementProvider.js",[p["Core/Globals.js"],p["Accessibility/Utils/HTMLUtilities.js"]],function(e,p){let{doc:x}=e,{removeElement:y}=p;return class{constructor(){this.elements=[]}createElement(){let e=x.createElement.apply(x,arguments);return this.elements.push(e),e}removeElement(e){y(e),this.elements.splice(this.elements.indexOf(e),1)}destroyCreatedElements(){this.elements.forEach(function(e){y(e)}),this.elements=[]}}}),x(p,"Accessibility/Utils/EventProvider.js",[p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p){let{addEvent:x}=p;return class{constructor(){this.eventRemovers=[]}addEvent(){let p=x.apply(e,arguments);return this.eventRemovers.push({element:arguments[0],remover:p}),p}removeEvent(e){let p=this.eventRemovers.map(e=>e.remover).indexOf(e);this.eventRemovers[p].remover(),this.eventRemovers.splice(p,1)}removeAddedEvents(){this.eventRemovers.map(e=>e.remover).forEach(e=>e()),this.eventRemovers=[]}}}),x(p,"Accessibility/AccessibilityComponent.js",[p["Accessibility/Utils/ChartUtilities.js"],p["Accessibility/Utils/DOMElementProvider.js"],p["Accessibility/Utils/EventProvider.js"],p["Accessibility/Utils/HTMLUtilities.js"],p["Core/Utilities.js"]],function(e,p,x,y,b){let{fireEventOnWrappedOrUnwrappedElement:E}=e,{getFakeMouseEvent:O}=y,{extend:L}=b;let l=class l{initBase(e,y){this.chart=e,this.eventProvider=new x,this.domElementProvider=new p,this.proxyProvider=y,this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9,pageUp:33,pageDown:34,end:35,home:36}}addEvent(e,p,x,y){return this.eventProvider.addEvent(e,p,x,y)}createElement(e,p){return this.domElementProvider.createElement(e,p)}fakeClickEvent(e){E(e,O("click"))}destroyBase(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()}};return L(l.prototype,{init(){},getKeyboardNavigation:function(){},onChartUpdate(){},onChartRender(){},destroy(){}}),l}),x(p,"Accessibility/KeyboardNavigationHandler.js",[p["Core/Utilities.js"]],function(e){let{find:p}=e;return class{constructor(e,p){this.chart=e,this.keyCodeMap=p.keyCodeMap||[],this.validate=p.validate,this.init=p.init,this.terminate=p.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}run(e){let x=e.which||e.keyCode,y=this.response.noHandler,b=p(this.keyCodeMap,function(e){return e[0].indexOf(x)>-1});return b?y=b[1].call(this,x,e):9===x&&(y=this.response[e.shiftKey?"prev":"next"]),y}}}),x(p,"Accessibility/Components/ContainerComponent.js",[p["Accessibility/AccessibilityComponent.js"],p["Accessibility/KeyboardNavigationHandler.js"],p["Accessibility/Utils/ChartUtilities.js"],p["Core/Globals.js"],p["Accessibility/Utils/HTMLUtilities.js"]],function(e,p,x,y,b){let{unhideChartElementFromAT:E,getChartTitle:O}=x,{doc:L}=y,{stripHTMLTagsFromString:D}=b;return class extends e{onChartUpdate(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()}handleSVGTitleElement(){let e=this.chart,p="highcharts-title-"+e.index,x=D(e.langFormat("accessibility.svgContainerTitle",{chartTitle:O(e)}));if(x.length){let y=this.svgTitleElement=this.svgTitleElement||L.createElementNS("http://www.w3.org/2000/svg","title");y.textContent=x,y.id=p,e.renderTo.insertBefore(y,e.renderTo.firstChild)}}setSVGContainerLabel(){let e=this.chart,p=e.langFormat("accessibility.svgContainerLabel",{chartTitle:O(e)});e.renderer.box&&p.length&&e.renderer.box.setAttribute("aria-label",p)}setGraphicContainerAttrs(){let e=this.chart,p=e.langFormat("accessibility.graphicContainerLabel",{chartTitle:O(e)});p.length&&e.container.setAttribute("aria-label",p)}setRenderToAttrs(){let e=this.chart,p="disabled"!==e.options.accessibility.landmarkVerbosity,x=e.langFormat("accessibility.chartContainerLabel",{title:O(e),chart:e});x&&(e.renderTo.setAttribute("role",p?"region":"group"),e.renderTo.setAttribute("aria-label",x))}makeCreditsAccessible(){let e=this.chart,p=e.credits;p&&(p.textStr&&p.element.setAttribute("aria-label",e.langFormat("accessibility.credits",{creditsStr:D(p.textStr,e.renderer.forExport)})),E(e,p.element))}getKeyboardNavigation(){let e=this.chart;return new p(e,{keyCodeMap:[],validate:function(){return!0},init:function(){let p=e.accessibility;p&&p.keyboardNavigation.tabindexContainer.focus()}})}destroy(){this.chart.renderTo.setAttribute("aria-hidden",!0)}}}),x(p,"Accessibility/FocusBorder.js",[p["Core/Utilities.js"]],function(e){var p;let{addEvent:x,pick:y}=e;return function(e){let p=["x","y","transform","width","height","r","d","stroke-width"];function b(){let e=this.focusElement,p=this.options.accessibility.keyboardNavigation.focusBorder;e&&(e.removeFocusBorder(),p.enabled&&e.addFocusBorder(p.margin,{stroke:p.style.color,strokeWidth:p.style.lineWidth,r:p.style.borderRadius}))}function E(e,p){let y=this.options.accessibility.keyboardNavigation.focusBorder,b=p||e.element;b&&b.focus&&(b.hcEvents&&b.hcEvents.focusin||x(b,"focusin",function(){}),b.focus(),y.hideBrowserFocusOutline&&(b.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=e,this.renderFocusBorder()}function O(e,x){this.focusBorder&&this.removeFocusBorder();let b=this.getBBox(),E=y(e,3),O=this.parentGroup,L=this.scaleX||O&&O.scaleX,D=this.scaleY||O&&O.scaleY,j=(L?!D:D)?Math.abs(L||D||1):(Math.abs(L||1)+Math.abs(D||1))/2;b.x+=this.translateX?this.translateX:0,b.y+=this.translateY?this.translateY:0;let R=b.x-E,z=b.y-E,F=b.width+2*E,H=b.height+2*E,U=!!this.text;if("text"===this.element.nodeName||U){let e,p;let x=!!this.rotation,y=U?{x:x?1:0,y:0}:(e=0,p=0,"middle"===this.attr("text-anchor")?e=p=.5:this.rotation?e=.25:p=.75,{x:e,y:p}),O=+this.attr("x"),L=+this.attr("y");if(isNaN(O)||(R=O-b.width*y.x-E),isNaN(L)||(z=L-b.height*y.y-E),U&&x){let e=F;F=H,H=e,isNaN(O)||(R=O-b.height*y.x-E),isNaN(L)||(z=L-b.width*y.y-E)}}this.focusBorder=this.renderer.rect(R,z,F,H,parseInt((x&&x.r||0).toString(),10)/j).addClass("highcharts-focus-border").attr({zIndex:99}).add(O),this.renderer.styledMode||this.focusBorder.attr({stroke:x&&x.stroke,"stroke-width":(x&&x.strokeWidth||0)/j}),function(e,...x){e.focusBorderUpdateHooks||(e.focusBorderUpdateHooks={},p.forEach(p=>{let y=p+"Setter",b=e[y]||e._defaultSetter;e.focusBorderUpdateHooks[y]=b,e[y]=function(){let p=b.apply(e,arguments);return e.addFocusBorder.apply(e,x),p}}))}(this,e,x),function(e){if(e.focusBorderDestroyHook)return;let p=e.destroy;e.destroy=function(){return e.focusBorder&&e.focusBorder.destroy&&e.focusBorder.destroy(),p.apply(e,arguments)},e.focusBorderDestroyHook=p}(this)}function L(){var e;e=this,e.focusBorderUpdateHooks&&(Object.keys(e.focusBorderUpdateHooks).forEach(p=>{let x=e.focusBorderUpdateHooks[p];x===e._defaultSetter?delete e[p]:e[p]=x}),delete e.focusBorderUpdateHooks),this.focusBorderDestroyHook&&(this.destroy=this.focusBorderDestroyHook,delete this.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}e.compose=function(e,p){let x=e.prototype,y=p.prototype;x.renderFocusBorder||(x.renderFocusBorder=b,x.setFocusToElement=E),y.addFocusBorder||(y.addFocusBorder=O,y.removeFocusBorder=L)}}(p||(p={})),p}),x(p,"Accessibility/Utils/Announcer.js",[p["Core/Renderer/HTML/AST.js"],p["Accessibility/Utils/DOMElementProvider.js"],p["Core/Globals.js"],p["Accessibility/Utils/HTMLUtilities.js"],p["Core/Utilities.js"]],function(e,p,x,y,b){let{doc:E}=x,{addClass:O,visuallyHideElement:L}=y,{attr:D}=b;return class{constructor(e,x){this.chart=e,this.domElementProvider=new p,this.announceRegion=this.addAnnounceRegion(x)}destroy(){this.domElementProvider.destroyCreatedElements()}announce(p){e.setElementHTML(this.announceRegion,p),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(()=>{this.announceRegion.innerHTML=e.emptyHTML,delete this.clearAnnouncementRegionTimer},3e3)}addAnnounceRegion(e){let p=this.chart.announcerContainer||this.createAnnouncerContainer(),x=this.domElementProvider.createElement("div");return D(x,{"aria-hidden":!1,"aria-live":e,"aria-atomic":!0}),this.chart.styledMode?O(x,"highcharts-visually-hidden"):L(x),p.appendChild(x),x}createAnnouncerContainer(){let e=this.chart,p=E.createElement("div");return D(p,{"aria-hidden":!1,class:"highcharts-announcer-container"}),p.style.position="relative",e.renderTo.insertBefore(p,e.renderTo.firstChild),e.announcerContainer=p,p}}}),x(p,"Accessibility/Components/AnnotationsA11y.js",[p["Accessibility/Utils/HTMLUtilities.js"]],function(e){let{escapeStringForHTML:p,stripHTMLTagsFromString:x}=e;function y(e){return(e.annotations||[]).reduce((e,p)=>(p.options&&!1!==p.options.visible&&(e=e.concat(p.labels)),e),[])}function b(e){return e.options&&e.options.accessibility&&e.options.accessibility.description||e.graphic&&e.graphic.text&&e.graphic.text.textStr||""}function E(e){let p=e.options&&e.options.accessibility&&e.options.accessibility.description;if(p)return p;let x=e.chart,y=b(e),E=e.points,O=e=>e.graphic&&e.graphic.element&&e.graphic.element.getAttribute("aria-label")||"",L=E.filter(e=>!!e.graphic).map(e=>{let p=e.accessibility&&e.accessibility.valueDescription||O(e),x=e&&e.series.name||"";return(x?x+", ":"")+"data point "+p}).filter(e=>!!e),D=L.length,j=D>1?"MultiplePoints":D?"SinglePoint":"NoPoints",R={annotationText:y,annotation:e,numPoints:D,annotationPoint:L[0],additionalAnnotationPoints:L.slice(1)};return x.langFormat("accessibility.screenReaderSection.annotations.description"+j,R)}function O(e){return y(e).map(y=>{let b=p(x(E(y),e.renderer.forExport));return b?`
  • ${b}
  • `:""})}return{getAnnotationsInfoHTML:function(e){let p=e.annotations;if(!(p&&p.length))return"";let x=O(e);return`
      ${x.join(" ")}
    `},getAnnotationLabelDescription:E,getAnnotationListItems:O,getPointAnnotationTexts:function(e){let p=y(e.series.chart).filter(p=>p.points.indexOf(e)>-1);return p.length?p.map(e=>`${b(e)}`):[]}}}),x(p,"Accessibility/Components/InfoRegionsComponent.js",[p["Accessibility/A11yI18n.js"],p["Accessibility/AccessibilityComponent.js"],p["Accessibility/Utils/Announcer.js"],p["Accessibility/Components/AnnotationsA11y.js"],p["Core/Renderer/HTML/AST.js"],p["Accessibility/Utils/ChartUtilities.js"],p["Core/Templating.js"],p["Core/Globals.js"],p["Accessibility/Utils/HTMLUtilities.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E,O,L,D,j){let{getAnnotationsInfoHTML:R}=y,{getAxisDescription:z,getAxisRangeDescription:F,getChartTitle:H,unhideChartElementFromAT:U}=E,{format:Y}=O,{doc:V}=L,{addClass:q,getElement:K,getHeadingTagNameForElement:$,stripHTMLTagsFromString:_,visuallyHideElement:Z}=D,{attr:J,pick:tt,replaceNested:te}=j;function ti(e){return te(e,[/<([\w\-.:!]+)\b[^<>]*>\s*<\/\1>/g,""])}return class extends p{constructor(){super(...arguments),this.screenReaderSections={}}init(){let e=this.chart,p=this;this.initRegionsDefinitions(),this.addEvent(e,"aftergetTableAST",function(e){p.onDataTableCreated(e)}),this.addEvent(e,"afterViewData",function(e){e.wasHidden&&(p.dataTableDiv=e.element,setTimeout(function(){p.focusDataTable()},300))}),this.addEvent(e,"afterHideData",function(){p.viewDataTableButton&&p.viewDataTableButton.setAttribute("aria-expanded","false")}),this.announcer=new x(e,"assertive")}initRegionsDefinitions(){let e=this,p=this.chart.options.accessibility;this.screenReaderSections={before:{element:null,buildContent:function(x){let y=p.screenReaderSection.beforeChartFormatter;return y?y(x):e.defaultBeforeChartFormatter(x)},insertIntoDOM:function(e,p){p.renderTo.insertBefore(e,p.renderTo.firstChild)},afterInserted:function(){void 0!==e.sonifyButtonId&&e.initSonifyButton(e.sonifyButtonId),void 0!==e.dataTableButtonId&&e.initDataTableButton(e.dataTableButtonId)}},after:{element:null,buildContent:function(x){let y=p.screenReaderSection.afterChartFormatter;return y?y(x):e.defaultAfterChartFormatter()},insertIntoDOM:function(e,p){p.renderTo.insertBefore(e,p.container.nextSibling)},afterInserted:function(){e.chart.accessibility&&p.keyboardNavigation.enabled&&e.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}}onChartRender(){let e=this;this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),Object.keys(this.screenReaderSections).forEach(function(p){e.updateScreenReaderSection(p)})}getLinkedDescriptionElement(){let e=this.chart.options.accessibility.linkedDescription;if(!e)return;if("string"!=typeof e)return e;let p=Y(e,this.chart),x=V.querySelectorAll(p);if(1===x.length)return x[0]}setLinkedDescriptionAttrs(){let e=this.linkedDescriptionElement;e&&(e.setAttribute("aria-hidden","true"),q(e,"highcharts-linked-description"))}updateScreenReaderSection(e){let p=this.chart,x=this.screenReaderSections[e],y=x.buildContent(p),E=x.element=x.element||this.createElement("div"),O=E.firstChild||this.createElement("div");y?(this.setScreenReaderSectionAttribs(E,e),b.setElementHTML(O,y),E.appendChild(O),x.insertIntoDOM(E,p),p.styledMode?q(O,"highcharts-visually-hidden"):Z(O),U(p,O),x.afterInserted&&x.afterInserted()):(E.parentNode&&E.parentNode.removeChild(E),x.element=null)}setScreenReaderSectionAttribs(e,p){let x=this.chart,y=x.langFormat("accessibility.screenReaderSection."+p+"RegionLabel",{chart:x,chartTitle:H(x)});J(e,{id:`highcharts-screen-reader-region-${p}-${x.index}`,"aria-label":y||void 0}),e.style.position="relative",y&&e.setAttribute("role","all"===x.options.accessibility.landmarkVerbosity?"region":"group")}defaultBeforeChartFormatter(){let p=this.chart,x=p.options.accessibility.screenReaderSection.beforeChartFormat;if(!x)return"";let y=this.getAxesDescription(),b=p.sonify&&p.options.sonification&&p.options.sonification.enabled,E="highcharts-a11y-sonify-data-btn-"+p.index,O="hc-linkto-highcharts-data-table-"+p.index,L=R(p),D=p.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:p}),j={headingTagName:$(p.renderTo),chartTitle:H(p),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:y.xAxis,yAxisDescription:y.yAxis,playAsSoundButton:b?this.getSonifyButtonText(E):"",viewTableButton:p.getCSV?this.getDataTableButtonText(O):"",annotationsTitle:L?D:"",annotationsList:L},z=e.i18nFormat(x,j,p);return this.dataTableButtonId=O,this.sonifyButtonId=E,ti(z)}defaultAfterChartFormatter(){let p=this.chart,x=p.options.accessibility.screenReaderSection.afterChartFormat;if(!x)return"";let y={endOfChartMarker:this.getEndOfChartMarkerText()};return ti(e.i18nFormat(x,y,p))}getLinkedDescription(){let e=this.linkedDescriptionElement;return _(e&&e.innerHTML||"",this.chart.renderer.forExport)}getLongdescText(){let e=this.chart.options,p=e.caption,x=p&&p.text,y=this.getLinkedDescription();return e.accessibility.description||y||x||""}getTypeDescriptionText(){var e;let p,x,y,b,E,O,L,D=this.chart;return D.types?D.options.accessibility.typeDescription||(p=(e=D.types)[0],x=D.series&&D.series[0]||{},y=D.mapView&&D.mapView.geoMap&&D.mapView.geoMap.title,b={numSeries:D.series.length,numPoints:x.points&&x.points.length,chart:D,mapTitle:y},p?"map"===p||"tiledwebmap"===p?b.mapTitle?D.langFormat("accessibility.chartTypes.mapTypeDescription",b):D.langFormat("accessibility.chartTypes.unknownMap",b):D.types.length>1?D.langFormat("accessibility.chartTypes.combinationChart",b):(E=e[0],O=D.langFormat("accessibility.seriesTypeDescriptions."+E,b),L=D.series&&D.series.length<2?"Single":"Multiple",(D.langFormat("accessibility.chartTypes."+E+L,b)||D.langFormat("accessibility.chartTypes.default"+L,b))+(O?" "+O:"")):D.langFormat("accessibility.chartTypes.emptyChart",b)):""}getDataTableButtonText(e){let p=this.chart;return'"}getSonifyButtonText(e){let p=this.chart;return p.options.sonification&&!1===p.options.sonification.enabled?"":'"}getSubtitleText(){let e=this.chart.options.subtitle;return _(e&&e.text||"",this.chart.renderer.forExport)}getEndOfChartMarkerText(){let e=K(`highcharts-end-of-chart-marker-${this.chart.index}`);if(e)return e.outerHTML;let p=this.chart,x=p.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:p});return'
    '+x+"
    "}onDataTableCreated(e){let p=this.chart;if(p.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");let x=e.tree.attributes||{};x.tabindex=-1,x.summary=p.langFormat("accessibility.table.tableSummary",{chart:p}),e.tree.attributes=x}}focusDataTable(){let e=this.dataTableDiv,p=e&&e.getElementsByTagName("table")[0];p&&p.focus&&p.focus()}initSonifyButton(e){let p=this.sonifyButton=K(e),x=this.chart,y=e=>{p&&(p.setAttribute("aria-hidden","true"),p.setAttribute("aria-label","")),e.preventDefault(),e.stopPropagation();let y=x.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:x});this.announcer.announce(y),setTimeout(()=>{p&&(p.removeAttribute("aria-hidden"),p.removeAttribute("aria-label")),x.sonify&&x.sonify()},1e3)};p&&x&&(p.setAttribute("tabindex",-1),p.onclick=function(e){(x.options.accessibility&&x.options.accessibility.screenReaderSection.onPlayAsSoundClick||y).call(this,e,x)})}initDataTableButton(e){let p=this.viewDataTableButton=K(e),x=this.chart,y=e.replace("hc-linkto-","");p&&(J(p,{tabindex:-1,"aria-expanded":!!K(y)}),p.onclick=x.options.accessibility.screenReaderSection.onViewDataTableClick||function(){x.viewData()})}getAxesDescription(){let e=this.chart,p=function(p,x){let y=e[p];return y.length>1||y[0]&&tt(y[0].options.accessibility&&y[0].options.accessibility.enabled,x)},x=!!e.types&&0>e.types.indexOf("map")&&0>e.types.indexOf("treemap")&&0>e.types.indexOf("tilemap"),y=!!e.hasCartesianSeries,b=p("xAxis",!e.angular&&y&&x),E=p("yAxis",y&&x),O={};return b&&(O.xAxis=this.getAxisDescriptionText("xAxis")),E&&(O.yAxis=this.getAxisDescriptionText("yAxis")),O}getAxisDescriptionText(e){let p=this.chart,x=p[e];return p.langFormat("accessibility.axis."+e+"Description"+(x.length>1?"Plural":"Singular"),{chart:p,names:x.map(function(e){return z(e)}),ranges:x.map(function(e){return F(e)}),numAxes:x.length})}destroy(){this.announcer&&this.announcer.destroy()}}}),x(p,"Accessibility/Components/MenuComponent.js",[p["Core/Utilities.js"],p["Accessibility/AccessibilityComponent.js"],p["Accessibility/KeyboardNavigationHandler.js"],p["Accessibility/Utils/ChartUtilities.js"],p["Accessibility/Utils/HTMLUtilities.js"]],function(e,p,x,y,b){let{attr:E}=e,{getChartTitle:O,unhideChartElementFromAT:L}=y,{getFakeMouseEvent:D}=b;function j(e){return e.exportSVGElements&&e.exportSVGElements[0]}let c=class c extends p{init(){let e=this.chart,p=this;this.addEvent(e,"exportMenuShown",function(){p.onMenuShown()}),this.addEvent(e,"exportMenuHidden",function(){p.onMenuHidden()}),this.createProxyGroup()}onMenuHidden(){let e=this.chart.exportContextMenu;e&&e.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")}onMenuShown(){let e=this.chart,p=e.exportContextMenu;p&&(this.addAccessibleContextMenuAttribs(),L(e,p)),this.setExportButtonExpandedState("true")}setExportButtonExpandedState(e){this.exportButtonProxy&&this.exportButtonProxy.innerElement.setAttribute("aria-expanded",e)}onChartRender(){let e=this.chart,p=e.focusElement,x=e.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&p&&p===e.exportingGroup&&(p.focusBorder?e.setFocusToElement(p,this.exportButtonProxy.innerElement):x&&x.keyboardNavigation.tabindexContainer.focus())}proxyMenuButton(){let e,p,x=this.chart,y=this.proxyProvider,b=j(x);e=x.options.exporting,p=j(x),e&&!1!==e.enabled&&e.accessibility&&e.accessibility.enabled&&p&&p.element&&b&&(this.exportButtonProxy=y.addProxyElement("chartMenu",{click:b},"button",{"aria-label":x.langFormat("accessibility.exporting.menuButtonLabel",{chart:x,chartTitle:O(x)}),"aria-expanded":!1,title:x.options.lang.contextButtonTitle||null}))}createProxyGroup(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu")}addAccessibleContextMenuAttribs(){let e=this.chart,p=e.exportDivElements;if(p&&p.length){p.forEach(e=>{e&&("LI"!==e.tagName||e.children&&e.children.length?e.setAttribute("aria-hidden","true"):e.setAttribute("tabindex",-1))});let x=p[0]&&p[0].parentNode;x&&E(x,{"aria-hidden":void 0,"aria-label":e.langFormat("accessibility.exporting.chartMenuLabel",{chart:e}),role:"list"})}}getKeyboardNavigation(){let e=this.keyCodes,p=this.chart,y=this;return new x(p,{keyCodeMap:[[[e.left,e.up],function(){return y.onKbdPrevious(this)}],[[e.right,e.down],function(){return y.onKbdNext(this)}],[[e.enter,e.space],function(){return y.onKbdClick(this)}]],validate:function(){return!!p.exporting&&!1!==p.options.exporting.enabled&&!1!==p.options.exporting.accessibility.enabled},init:function(){let e=y.exportButtonProxy,x=y.chart.exportingGroup;e&&x&&p.setFocusToElement(x,e.innerElement)},terminate:function(){p.hideExportMenu()}})}onKbdPrevious(e){let p=this.chart,x=p.options.accessibility,y=e.response,b=p.highlightedExportItemIx||0;for(;b--;)if(p.highlightExportItem(b))return y.success;return x.keyboardNavigation.wrapAround?(p.highlightLastExportItem(),y.success):y.prev}onKbdNext(e){let p=this.chart,x=p.options.accessibility,y=e.response;for(let e=(p.highlightedExportItemIx||0)+1;e{e&&"highcharts-menu-item"===e.className&&e.onmouseout&&e.onmouseout(D("mouseout"))}),this.highlightedExportItemIx=0,this.exportContextMenu.hideMenu(),this.container.focus())}function y(e){let p=this.exportDivElements&&this.exportDivElements[e],x=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(p&&"LI"===p.tagName&&!(p.children&&p.children.length)){let y=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return p.focus&&y&&p.focus(),x&&x.onmouseout&&x.onmouseout(D("mouseout")),p.onmouseover&&p.onmouseover(D("mouseover")),this.highlightedExportItemIx=e,!0}return!1}function b(){if(this.exportDivElements){let e=this.exportDivElements.length;for(;e--;)if(this.highlightExportItem(e))return!0}return!1}e.compose=function(e){let E=e.prototype;E.hideExportMenu||(E.hideExportMenu=x,E.highlightExportItem=y,E.highlightLastExportItem=b,E.showExportMenu=p)}}(c||(c={})),c}),x(p,"Accessibility/KeyboardNavigation.js",[p["Core/Globals.js"],p["Accessibility/Components/MenuComponent.js"],p["Core/Utilities.js"],p["Accessibility/Utils/EventProvider.js"],p["Accessibility/Utils/HTMLUtilities.js"]],function(e,p,x,y,b){let{doc:E,win:O}=e,{addEvent:L,defined:D,fireEvent:j}=x,{getElement:R,simulatedEventTarget:z}=b;let u=class u{constructor(e,p){this.currentModuleIx=NaN,this.modules=[],this.init(e,p)}init(e,p){let x=this.eventProvider=new y;this.chart=e,this.components=p,this.modules=[],this.currentModuleIx=0,this.update(),x.addEvent(this.tabindexContainer,"keydown",e=>this.onKeydown(e)),x.addEvent(this.tabindexContainer,"focus",e=>this.onFocus(e)),["mouseup","touchend"].forEach(e=>x.addEvent(E,e,e=>this.onMouseUp(e))),["mousedown","touchstart"].forEach(p=>x.addEvent(e.renderTo,p,()=>{this.isClickingChart=!0}))}update(e){let p=this.chart.options.accessibility,x=p&&p.keyboardNavigation,y=this.components;this.updateContainerTabindex(),x&&x.enabled&&e&&e.length?(this.modules=e.reduce(function(e,p){let x=y[p].getKeyboardNavigation();return e.concat(x)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())}updateExitAnchor(){let e=R(`highcharts-end-of-chart-marker-${this.chart.index}`);this.removeExitAnchor(),e?(this.makeElementAnExitAnchor(e),this.exitAnchor=e):this.createExitAnchor()}move(e){let p=this.modules&&this.modules[this.currentModuleIx];p&&p.terminate&&p.terminate(e),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=e;let x=this.modules&&this.modules[this.currentModuleIx];if(x){if(x.validate&&!x.validate())return this.move(e);if(x.init)return x.init(e),!0}return this.currentModuleIx=0,this.exiting=!0,e>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1}onFocus(e){let p=this.chart,x=e.relatedTarget&&p.container.contains(e.relatedTarget),y=p.options.accessibility,b=y&&y.keyboardNavigation;if(b&&b.enabled&&!this.exiting&&!this.tabbingInBackwards&&!this.isClickingChart&&!x){let e=this.getFirstValidModuleIx();null!==e&&(this.currentModuleIx=e,this.modules[e].init(1))}this.keyboardReset=!1,this.exiting=!1}onMouseUp(e){if(delete this.isClickingChart,!this.keyboardReset&&e.relatedTarget!==z){let p=this.chart;if(!e.target||!p.container.contains(e.target)){let e=this.modules&&this.modules[this.currentModuleIx||0];e&&e.terminate&&e.terminate(),this.currentModuleIx=0}p.focusElement&&(p.focusElement.removeFocusBorder(),delete p.focusElement),this.keyboardReset=!0}}onKeydown(e){let p;let x=e||O.event,y=this.modules&&this.modules.length&&this.modules[this.currentModuleIx],b=x.target;if((!b||"INPUT"!==b.nodeName||b.classList.contains("highcharts-a11y-proxy-element"))&&(this.keyboardReset=!1,this.exiting=!1,y)){let e=y.run(x);e===y.response.success?p=!0:e===y.response.prev?p=this.move(-1):e===y.response.next&&(p=this.move(1)),p&&(x.preventDefault(),x.stopPropagation())}}updateContainerTabindex(){let e;let p=this.chart.options.accessibility,x=p&&p.keyboardNavigation,y=!(x&&!1===x.enabled),b=this.chart,E=b.container;b.renderTo.hasAttribute("tabindex")?(E.removeAttribute("tabindex"),e=b.renderTo):e=E,this.tabindexContainer=e;let O=e.getAttribute("tabindex");y&&!O?e.setAttribute("tabindex","0"):y||b.container.removeAttribute("tabindex")}createExitAnchor(){let e=this.chart,p=this.exitAnchor=E.createElement("div");e.renderTo.appendChild(p),this.makeElementAnExitAnchor(p)}makeElementAnExitAnchor(e){let p=this.tabindexContainer.getAttribute("tabindex")||0;e.setAttribute("class","highcharts-exit-anchor"),e.setAttribute("tabindex",p),e.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(e)}removeExitAnchor(){if(this.exitAnchor){let e=this.eventProvider.eventRemovers.find(e=>e.element===this.exitAnchor);e&&D(e.remover)&&this.eventProvider.removeEvent(e.remover),this.exitAnchor.parentNode&&this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor}}addExitAnchorEventsToEl(e){let p=this.chart,x=this;this.eventProvider.addEvent(e,"focus",function(e){let y=e||O.event,b=!(y.relatedTarget&&p.container.contains(y.relatedTarget)||x.exiting);if(p.focusElement&&delete p.focusElement,b){if(x.tabbingInBackwards=!0,x.tabindexContainer.focus(),delete x.tabbingInBackwards,y.preventDefault(),x.modules&&x.modules.length){x.currentModuleIx=x.modules.length-1;let e=x.modules[x.currentModuleIx];e&&e.validate&&!e.validate()?x.move(-1):e&&e.init(-1)}}else x.exiting=!1})}getFirstValidModuleIx(){let e=this.modules.length;for(let p=0;p{e&&e.dismissPopupContent&&e.dismissPopupContent()})}x.compose=function(e){p.compose(e);let x=e.prototype;return x.dismissPopupContent||(x.dismissPopupContent=y,L(E,"keydown",b)),e}}(u||(u={})),u}),x(p,"Accessibility/Components/LegendComponent.js",[p["Core/Animation/AnimationUtilities.js"],p["Core/Globals.js"],p["Core/Legend/Legend.js"],p["Core/Utilities.js"],p["Accessibility/AccessibilityComponent.js"],p["Accessibility/KeyboardNavigationHandler.js"],p["Accessibility/Utils/ChartUtilities.js"],p["Accessibility/Utils/HTMLUtilities.js"]],function(e,p,x,y,b,E,O,L){let{animObject:D}=e,{doc:j}=p,{addEvent:R,fireEvent:z,isNumber:F,pick:H,syncTimeout:U}=y,{getChartTitle:Y}=O,{stripHTMLTagsFromString:V,addClass:q,removeClass:K}=L;function $(e){let p=e.legend&&e.legend.allItems,x=e.options.legend.accessibility||{},y=e.colorAxis&&e.colorAxis.some(e=>!e.dataClasses||!e.dataClasses.length);return!!(p&&p.length&&!y&&!1!==x.enabled)}function _(e,p){let x=p.legendItem||{};for(let y of(p.setState(e?"hover":"",!0),["group","label","symbol"])){let p=x[y],b=p&&p.element||p;b&&z(b,e?"mouseover":"mouseout")}}let A=class A extends b{constructor(){super(...arguments),this.highlightedLegendItemIx=NaN,this.proxyGroup=null}init(){let e=this;this.recreateProxies(),this.addEvent(x,"afterScroll",function(){this.chart===e.chart&&(e.proxyProvider.updateGroupProxyElementPositions("legend"),e.updateLegendItemProxyVisibility(),e.highlightedLegendItemIx>-1&&this.chart.highlightLegendItem(e.highlightedLegendItemIx))}),this.addEvent(x,"afterPositionItem",function(p){this.chart===e.chart&&this.chart.renderer&&e.updateProxyPositionForItem(p.item)}),this.addEvent(x,"afterRender",function(){this.chart===e.chart&&this.chart.renderer&&e.recreateProxies()&&U(()=>e.proxyProvider.updateGroupProxyElementPositions("legend"),D(H(this.chart.renderer.globalAnimation,!0)).duration)})}updateLegendItemProxyVisibility(){let e;let p=this.chart,x=p.legend,y=x.allItems||[],b=x.currentPage||1,E=x.clipHeight||0;y.forEach(y=>{if(y.a11yProxyElement){let O=x.pages&&x.pages.length,L=y.a11yProxyElement.element,D=!1;if(e=y.legendItem||{},O){let p=e.pageIx||0;D=(e.y||0)+(e.label?Math.round(e.label.getBBox().height):0)-x.pages[p]>E||p!==b-1}D?p.styledMode?q(L,"highcharts-a11y-invisible"):L.style.visibility="hidden":(K(L,"highcharts-a11y-invisible"),L.style.visibility="")}})}onChartRender(){$(this.chart)||this.removeProxies()}highlightAdjacentLegendPage(e){let p=this.chart,x=p.legend,y=(x.currentPage||1)+e,b=x.pages||[];if(y>0&&y<=b.length){let e=0;for(let b of x.allItems)((b.legendItem||{}).pageIx||0)+1===y&&p.highlightLegendItem(e)&&(this.highlightedLegendItemIx=e),++e}}updateProxyPositionForItem(e){e.a11yProxyElement&&e.a11yProxyElement.refreshPosition()}recreateProxies(){let e=j.activeElement,p=this.proxyGroup,x=e&&p&&p.contains(e);return this.removeProxies(),!!$(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),x&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)}removeProxies(){this.proxyProvider.removeGroup("legend")}updateLegendTitle(){let e=this.chart,p=V((e.legend&&e.legend.options.title&&e.legend.options.title.text||"").replace(/
    /g," "),e.renderer.forExport),x=e.langFormat("accessibility.legend.legendLabel"+(p?"":"NoTitle"),{chart:e,legendTitle:p,chartTitle:Y(e)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":x})}addLegendProxyGroup(){let e="all"===this.chart.options.accessibility.landmarkVerbosity?"region":null;this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:e})}proxyLegendItems(){let e;let p=this;((this.chart.legend||{}).allItems||[]).forEach(x=>{(e=x.legendItem||{}).label&&e.label.element&&p.proxyLegendItem(x)})}proxyLegendItem(e){let p=e.legendItem||{};if(!p.label||!p.group)return;let x=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:V(e.name,this.chart.renderer.forExport),item:e}),y={tabindex:-1,"aria-pressed":e.visible,"aria-label":x},b=p.group.div?p.label:p.group;e.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:p.label,visual:b.element},"button",y)}getKeyboardNavigation(){let e=this.keyCodes,p=this,x=this.chart;return new E(x,{keyCodeMap:[[[e.left,e.right,e.up,e.down],function(e){return p.onKbdArrowKey(this,e)}],[[e.enter,e.space],function(){return p.onKbdClick(this)}],[[e.pageDown,e.pageUp],function(x){let y=x===e.pageDown?1:-1;return p.highlightAdjacentLegendPage(y),this.response.success}]],validate:function(){return p.shouldHaveLegendNavigation()},init:function(){x.highlightLegendItem(0),p.highlightedLegendItemIx=0},terminate:function(){p.highlightedLegendItemIx=-1,x.legend.allItems.forEach(e=>_(!1,e))}})}onKbdArrowKey(e,p){let{keyCodes:{left:x,up:y},highlightedLegendItemIx:b,chart:E}=this,O=E.legend.allItems.length,L=E.options.accessibility.keyboardNavigation.wrapAround,D=p===x||p===y?-1:1;return E.highlightLegendItem(b+D)?this.highlightedLegendItemIx+=D:L&&O>1&&(this.highlightedLegendItemIx=D>0?0:O-1,E.highlightLegendItem(this.highlightedLegendItemIx)),e.response.success}onKbdClick(e){let p=this.chart.legend.allItems[this.highlightedLegendItemIx];return p&&p.a11yProxyElement&&p.a11yProxyElement.click(),e.response.success}shouldHaveLegendNavigation(){if(!$(this.chart))return!1;let e=this.chart,p=(e.options.legend||{}).accessibility||{};return!!(e.legend.display&&p.keyboardNavigation&&p.keyboardNavigation.enabled)}destroy(){this.removeProxies()}};return function(e){function p(e){let p=this.legend.allItems,x=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,y=p[e],b=y?.legendItem||{};if(y){var E;let O,L;F(x)&&p[x]&&_(!1,p[x]),O=((E=this.legend).allItems[e].legendItem||{}).pageIx,L=E.currentPage,void 0!==O&&O+1!==L&&E.scroll(1+O-L);let D=b.label,j=y.a11yProxyElement&&y.a11yProxyElement.innerElement;return D&&D.element&&j&&this.setFocusToElement(D,j),_(!0,y),!0}return!1}function x(e){let p=this.chart.options.accessibility,x=e.item;p.enabled&&x&&x.a11yProxyElement&&x.a11yProxyElement.innerElement.setAttribute("aria-pressed",e.visible?"true":"false")}e.compose=function(e,y){let b=e.prototype;b.highlightLegendItem||(b.highlightLegendItem=p,R(y,"afterColorizeItem",x))}}(A||(A={})),A}),x(p,"Stock/Navigator/ChartNavigatorComposition.js",[p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p){let x;let{isTouchDevice:y}=e,{addEvent:b,merge:E,pick:O}=p,L=[];function D(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function j(){let e,p,x;let y=this.legend,b=this.navigator;if(b){e=y&&y.options,p=b.xAxis,x=b.yAxis;let{scrollbarHeight:E,scrollButtonSize:L}=b;this.inverted?(b.left=b.opposite?this.chartWidth-E-b.height:this.spacing[3]+E,b.top=this.plotTop+L):(b.left=O(p.left,this.plotLeft+L),b.top=b.navigatorOptions.top||this.chartHeight-b.height-E-(this.scrollbar?.options.margin||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&"bottom"===e.verticalAlign&&"proximate"!==e.layout&&e.enabled&&!e.floating?y.legendHeight+O(e.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),p&&x&&(this.inverted?p.options.left=x.options.left=b.left:p.options.top=x.options.top=b.top,p.setAxisSize(),x.setAxisSize())}}function R(e){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new x(this),O(e.redraw,!0)&&this.redraw(e.animation))}function z(){let e=this.options;(e.navigator.enabled||e.scrollbar.enabled)&&(this.scroller=this.navigator=new x(this))}function F(){let e=this.options,p=e.navigator,x=e.rangeSelector;if((p&&p.enabled||x&&x.enabled)&&(!y&&"x"===this.zooming.type||y&&"x"===this.zooming.pinchType))return!1}function H(e){let p=e.navigator;if(p&&e.xAxis[0]){let x=e.xAxis[0].getExtremes();p.render(x.min,x.max)}}function U(e){let p=e.options.navigator||{},x=e.options.scrollbar||{};!this.navigator&&!this.scroller&&(p.enabled||x.enabled)&&(E(!0,this.options.navigator,p),E(!0,this.options.scrollbar,x),delete e.options.navigator,delete e.options.scrollbar)}return{compose:function(e,y){if(p.pushUnique(L,e)){let p=e.prototype;x=y,p.callbacks.push(H),b(e,"afterAddSeries",D),b(e,"afterSetChartSize",j),b(e,"afterUpdate",R),b(e,"beforeRender",z),b(e,"beforeShowResetZoom",F),b(e,"update",U)}}}}),x(p,"Core/Axis/NavigatorAxisComposition.js",[p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p){let{isTouchDevice:x}=e,{addEvent:y,correctFloat:b,defined:E,isNumber:O,pick:L}=p;function D(){this.navigatorAxis||(this.navigatorAxis=new c(this))}function j(e){let p;let y=this.chart,b=y.options,O=b.navigator,L=this.navigatorAxis,D=y.zooming.pinchType,j=b.rangeSelector,R=y.zooming.type;if(this.isXAxis&&(O?.enabled||j?.enabled)){if("y"===R&&"zoom"===e.trigger)p=!1;else if(("zoom"===e.trigger&&"xy"===R||x&&"xy"===D)&&this.options.range){let p=L.previousZoom;E(e.min)?L.previousZoom=[this.min,this.max]:p&&(e.min=p[0],e.max=p[1],L.previousZoom=void 0)}}void 0!==p&&e.preventDefault()}let c=class c{static compose(e){e.keepProps.includes("navigatorAxis")||(e.keepProps.push("navigatorAxis"),y(e,"init",D),y(e,"setExtremes",j))}constructor(e){this.axis=e}destroy(){this.axis=void 0}toFixedRange(e,p,x,y){let D=this.axis,j=(D.pointRange||0)/2,R=L(x,D.translate(e,!0,!D.horiz)),z=L(y,D.translate(p,!0,!D.horiz));return E(x)||(R=b(R+j)),E(y)||(z=b(z-j)),O(R)&&O(z)||(R=z=void 0),{min:R,max:z}}};return c}),x(p,"Stock/Navigator/NavigatorDefaults.js",[p["Core/Color/Color.js"],p["Core/Series/SeriesRegistry.js"]],function(e,p){let{parse:x}=e,{seriesTypes:y}=p;return{height:40,margin:25,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:x("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===y.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),x(p,"Stock/Navigator/NavigatorSymbols.js",[p["Core/Renderer/SVG/Symbols.js"],p["Core/Utilities.js"]],function(e,p){let{relativeLength:x}=p;return{"navigator-handle":function(p,y,b,E,O={}){let L=O.width?O.width/2:b,D=x(O.borderRadius||0,Math.min(2*L,E));return[["M",-1.5,(E=O.height||E)/2-3.5],["L",-1.5,E/2+4.5],["M",.5,E/2-3.5],["L",.5,E/2+4.5],...e.rect(-L-1,.5,2*L+1,E,{r:D})]}}}),x(p,"Stock/Utilities/StockUtilities.js",[p["Core/Utilities.js"]],function(e){let{defined:p}=e;return{setFixedRange:function(e){let x=this.xAxis[0];p(x.dataMax)&&p(x.dataMin)&&e?this.fixedRange=Math.min(e,x.dataMax-x.dataMin):this.fixedRange=e}}}),x(p,"Stock/Navigator/NavigatorComposition.js",[p["Core/Defaults.js"],p["Core/Globals.js"],p["Core/Axis/NavigatorAxisComposition.js"],p["Stock/Navigator/NavigatorDefaults.js"],p["Stock/Navigator/NavigatorSymbols.js"],p["Core/Renderer/RendererRegistry.js"],p["Stock/Utilities/StockUtilities.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E,O,L){let{setOptions:D}=e,{composed:j}=p,{getRendererType:R}=E,{setFixedRange:z}=O,{addEvent:F,extend:H,pushUnique:U}=L;function Y(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(e,p,E){x.compose(p),U(j,"Navigator")&&(e.prototype.setFixedRange=z,H(R().prototype.symbols,b),F(E,"afterUpdate",Y),D({navigator:y}))}}}),x(p,"Core/Axis/ScrollbarAxis.js",[p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p){var x;let{composed:y}=e,{addEvent:b,defined:E,pick:O,pushUnique:L}=p;return function(e){let p;function x(e){let p=O(e.options&&e.options.min,e.min),x=O(e.options&&e.options.max,e.max);return{axisMin:p,axisMax:x,scrollMin:E(e.dataMin)?Math.min(p,e.min,e.dataMin,O(e.threshold,1/0)):p,scrollMax:E(e.dataMax)?Math.max(x,e.max,e.dataMax,O(e.threshold,-1/0)):x}}function D(){let e=this.scrollbar,p=e&&!e.options.opposite,x=this.horiz?2:p?3:1;e&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[x]+=e.size+(e.options.margin||0))}function j(){let e=this;e.options&&e.options.scrollbar&&e.options.scrollbar.enabled&&(e.options.scrollbar.vertical=!e.horiz,e.options.startOnTick=e.options.endOnTick=!1,e.scrollbar=new p(e.chart.renderer,e.options.scrollbar,e.chart),b(e.scrollbar,"changed",function(p){let y,b;let{axisMin:O,axisMax:L,scrollMin:D,scrollMax:j}=x(e),R=j-D;if(E(O)&&E(L)){if(e.horiz&&!e.reversed||!e.horiz&&e.reversed?(y=D+R*this.to,b=D+R*this.from):(y=D+R*(1-this.from),b=D+R*(1-this.to)),this.shouldUpdateExtremes(p.DOMType)){let x="mousemove"!==p.DOMType&&"touchmove"!==p.DOMType&&void 0;e.setExtremes(b,y,!0,x,p)}else this.setRange(this.from,this.to)}}))}function R(){let e,p,y;let{scrollMin:b,scrollMax:O}=x(this),L=this.scrollbar,D=this.axisTitleMargin+(this.titleOffset||0),j=this.chart.scrollbarsOffsets,R=this.options.margin||0;if(L&&j){if(this.horiz)this.opposite||(j[1]+=D),L.position(this.left,this.top+this.height+2+j[1]-(this.opposite?R:0),this.width,this.height),this.opposite||(j[1]+=R),e=1;else{let p;this.opposite&&(j[0]+=D),p=L.options.opposite?this.left+this.width+2+j[0]-(this.opposite?0:R):this.opposite?0:R,L.position(p,this.top,this.width,this.height),this.opposite&&(j[0]+=R),e=0}j[e]+=L.size+(L.options.margin||0),isNaN(b)||isNaN(O)||!E(this.min)||!E(this.max)||this.min===this.max?L.setRange(0,1):(p=(this.min-b)/(O-b),y=(this.max-b)/(O-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?L.setRange(p,y):L.setRange(1-y,1-p))}}e.compose=function(e,x){L(y,"Axis.Scrollbar")&&(p=x,b(e,"afterGetOffset",D),b(e,"afterInit",j),b(e,"afterRender",R))}}(x||(x={})),x}),x(p,"Stock/Scrollbar/ScrollbarDefaults.js",[],function(){return{height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1}}),x(p,"Stock/Scrollbar/Scrollbar.js",[p["Core/Defaults.js"],p["Core/Globals.js"],p["Core/Axis/ScrollbarAxis.js"],p["Stock/Scrollbar/ScrollbarDefaults.js"],p["Core/Utilities.js"]],function(e,p,x,y,b){let{defaultOptions:E}=e,{addEvent:O,correctFloat:L,crisp:D,defined:j,destroyObjectProperties:R,fireEvent:z,merge:F,pick:H,removeEvent:U}=b;let m=class m{static compose(e){x.compose(e,m)}static swapXY(e,p){return p&&e.forEach(e=>{let p;let x=e.length;for(let y=0;ythis.calculatedWidth?p.minWidth:0;return{chartX:(e.chartX-this.x-this.xOffset)/(this.barWidth-x),chartY:(e.chartY-this.y-this.yOffset)/(this.barWidth-x)}}destroy(){let e=this,p=e.chart.scroller;e.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(p){e[p]&&e[p].destroy&&(e[p]=e[p].destroy())}),p&&e===p.scrollbar&&(p.scrollbar=null,R(p.scrollbarButtons))}drawScrollbarButton(e){let p=this.renderer,x=this.scrollbarButtons,y=this.options,b=this.size,E=p.g().add(this.group);if(x.push(E),y.buttonsEnabled){let O=p.rect().addClass("highcharts-scrollbar-button").add(E);this.chart.styledMode||O.attr({stroke:y.buttonBorderColor,"stroke-width":y.buttonBorderWidth,fill:y.buttonBackgroundColor}),O.attr(O.crisp({x:-.5,y:-.5,width:b,height:b,r:y.buttonBorderRadius},O.strokeWidth()));let L=p.path(m.swapXY([["M",b/2+(e?-1:1),b/2-3],["L",b/2+(e?-1:1),b/2+3],["L",b/2+(e?2:-2),b/2]],y.vertical)).addClass("highcharts-scrollbar-arrow").add(x[e]);this.chart.styledMode||L.attr({fill:y.buttonArrowColor})}}init(e,p,x){this.scrollbarButtons=[],this.renderer=e,this.userOptions=p,this.options=F(y,E.scrollbar,p),this.options.margin=H(this.options.margin,10),this.chart=x,this.size=H(this.options.size,this.options.height),p.enabled&&(this.render(),this.addEvents())}mouseDownHandler(e){let p=this.chart.pointer?.normalize(e)||e,x=this.cursorToScrollbarPosition(p);this.chartX=x.chartX,this.chartY=x.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(e){let p;let x=this.chart.pointer?.normalize(e)||e,y=this.options.vertical?"chartY":"chartX",b=this.initPositions||[];this.grabbedCenter&&(!e.touches||0!==e.touches[0][y])&&(p=this.cursorToScrollbarPosition(x)[y]-this[y],this.hasDragged=!0,this.updatePosition(b[0]+p,b[1]+p),this.hasDragged&&z(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:e.type,DOMEvent:e}))}mouseUpHandler(e){this.hasDragged&&z(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:e.type,DOMEvent:e}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(e,p,x,y){let{buttonsEnabled:b,margin:E=0,vertical:O}=this.options,L=this.rendered?"animate":"attr",D=y,j=0;this.group.show(),this.x=e,this.y=p+this.trackBorderWidth,this.width=x,this.height=y,this.xOffset=D,this.yOffset=j,O?(this.width=this.yOffset=x=j=this.size,this.xOffset=D=0,this.yOffset=j=b?this.size:0,this.barWidth=y-(b?2*x:0),this.x=e+=E):(this.height=y=this.size,this.xOffset=D=b?this.size:0,this.barWidth=x-(b?2*y:0),this.y=this.y+E),this.group[L]({translateX:e,translateY:this.y}),this.track[L]({width:x,height:y}),this.scrollbarButtons[1][L]({translateX:O?0:x-D,translateY:O?y-j:0})}removeEvents(){this._events.forEach(function(e){U.apply(null,e)}),this._events.length=0}render(){let e=this.renderer,p=this.options,x=this.size,y=this.chart.styledMode,b=e.g("scrollbar").attr({zIndex:p.zIndex}).hide().add();this.group=b,this.track=e.rect().addClass("highcharts-scrollbar-track").attr({r:p.trackBorderRadius||0,height:x,width:x}).add(b),y||this.track.attr({fill:p.trackBackgroundColor,stroke:p.trackBorderColor,"stroke-width":p.trackBorderWidth});let E=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-D(0,E),y:-D(0,E)}),this.scrollbarGroup=e.g().add(b),this.scrollbar=e.rect().addClass("highcharts-scrollbar-thumb").attr({height:x-E,width:x-E,r:p.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=e.path(m.swapXY([["M",-3,x/4],["L",-3,2*x/3],["M",0,x/4],["L",0,2*x/3],["M",3,x/4],["L",3,2*x/3]],p.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),y||(this.scrollbar.attr({fill:p.barBackgroundColor,stroke:p.barBorderColor,"stroke-width":p.barBorderWidth}),this.scrollbarRifles.attr({stroke:p.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-D(0,this.scrollbarStrokeWidth),-D(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(e,p){let x,y;let b=this.options,E=b.vertical,O=b.minWidth,D=this.barWidth,R=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!j(D))return;let z=D*Math.min(p,1);x=Math.ceil(D*(e=Math.max(e,0))),this.calculatedWidth=y=L(z-x),y=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(e){return H(this.options.liveRedraw,p.svg&&!p.isTouchDevice&&!this.chart.boosted)||"mouseup"===e||"touchend"===e||!j(e)}trackClick(e){let p=this.chart.pointer?.normalize(e)||e,x=this.to-this.from,y=this.y+this.scrollbarTop,b=this.x+this.scrollbarLeft;this.options.vertical&&p.chartY>y||!this.options.vertical&&p.chartX>b?this.updatePosition(this.from+x,this.to+x):this.updatePosition(this.from-x,this.to-x),z(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:e})}update(e){this.destroy(),this.init(this.chart.renderer,F(!0,this.options,e),this.chart)}updatePosition(e,p){p>1&&(e=L(1-L(p-e)),p=1),e<0&&(p=L(p-e),e=0),this.from=e,this.to=p}};return m.defaultOptions=y,E.scrollbar=F(!0,m.defaultOptions,E.scrollbar),m}),x(p,"Stock/Navigator/Navigator.js",[p["Core/Axis/Axis.js"],p["Stock/Navigator/ChartNavigatorComposition.js"],p["Core/Defaults.js"],p["Core/Globals.js"],p["Core/Axis/NavigatorAxisComposition.js"],p["Stock/Navigator/NavigatorComposition.js"],p["Stock/Scrollbar/Scrollbar.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E,O,L){let{defaultOptions:D}=x,{isTouchDevice:j}=y,{addEvent:R,clamp:z,correctFloat:F,defined:H,destroyObjectProperties:U,erase:Y,extend:V,find:q,fireEvent:K,isArray:$,isNumber:_,merge:Z,pick:J,removeEvent:tt,splat:te}=L;function ti(e,...p){let x=[].filter.call(p,_);if(x.length)return Math[e].apply(0,x)}let M=class M{static compose(e,x,y){p.compose(e,M),E.compose(e,x,y)}constructor(e){this.scrollbarHeight=0,this.init(e)}drawHandle(e,p,x,y){let b=this.navigatorOptions.handles.height;this.handles[p][y](x?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(e,10)+.5-b)}:{translateX:Math.round(this.left+parseInt(e,10)),translateY:Math.round(this.top+this.height/2-b/2-1)})}drawOutline(e,p,x,y){let b=this.navigatorOptions.maskInside,E=this.outline.strokeWidth(),O=E/2,L=E%2/2,D=this.scrollButtonSize,j=this.size,R=this.top,z=this.height,F=R-O,H=R+z,U=this.left,Y,V;x?(Y=R+p+L,p=R+e+L,V=[["M",U+z,R-D-L],["L",U+z,Y],["L",U,Y],["M",U,p],["L",U+z,p],["L",U+z,R+j+D]],b&&V.push(["M",U+z,Y-O],["L",U+z,p+O])):(U-=D,e+=U+D-L,p+=U+D-L,V=[["M",U,F],["L",e,F],["L",e,H],["M",p,H],["L",p,F],["L",U+j+2*D,R+O]],b&&V.push(["M",e-O,F],["L",p+O,F])),this.outline[y]({d:V})}drawMasks(e,p,x,y){let b,E,O,L;let D=this.left,j=this.top,R=this.height;x?(O=[D,D,D],L=[j,j+e,j+p],E=[R,R,R],b=[e,p-e,this.size-p]):(O=[D,D+e,D+p],L=[j,j,j],E=[e,p-e,this.size-p],b=[R,R,R]),this.shades.forEach((e,p)=>{e[y]({x:O[p],y:L[p],width:E[p],height:b[p]})})}renderElements(){let e=this,p=e.navigatorOptions,x=p.maskInside,y=e.chart,b=y.inverted,E=y.renderer,O={cursor:b?"ns-resize":"ew-resize"},L=e.navigatorGroup=E.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!x,x,!x].forEach((x,b)=>{let D=E.rect().addClass("highcharts-navigator-mask"+(1===b?"-inside":"-outside")).add(L);y.styledMode||(D.attr({fill:x?p.maskFill:"rgba(0,0,0,0)"}),1===b&&D.css(O)),e.shades[b]=D}),e.outline=E.path().addClass("highcharts-navigator-outline").add(L),y.styledMode||e.outline.attr({"stroke-width":p.outlineWidth,stroke:p.outlineColor}),p.handles&&p.handles.enabled){let x=p.handles,{height:b,width:D}=x;[0,1].forEach(p=>{e.handles[p]=E.symbol(x.symbols[p],-D/2-1,0,D,b,x),y.inverted&&e.handles[p].attr({rotation:90,rotationOriginX:Math.floor(-D/2),rotationOriginY:(b+D)/2}),e.handles[p].attr({zIndex:7-p}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][p]).add(L),y.styledMode||e.handles[p].attr({fill:x.backgroundColor,stroke:x.borderColor,"stroke-width":x.lineWidth}).css(O)})}}update(e){(this.series||[]).forEach(e=>{e.baseSeries&&delete e.baseSeries.navigatorSeries}),this.destroy(),Z(!0,this.chart.options.navigator,e),this.init(this.chart)}render(e,p,x,y){let b=this.chart,E=this.xAxis,O=E.pointRange||0,L=E.navigatorAxis.fake?b.xAxis[0]:E,D=this.navigatorEnabled,j=this.rendered,R=b.inverted,U=b.xAxis[0].minRange,Y=b.xAxis[0].options.maxRange,V=this.scrollButtonSize,q,$,Z,tt=this.scrollbarHeight,te,ti;if(this.hasDragged&&!H(x))return;if(e=F(e-O/2),p=F(p+O/2),!_(e)||!_(p)){if(!j)return;x=0,y=J(E.width,L.width)}this.left=J(E.left,b.plotLeft+V+(R?b.plotWidth:0));let ts=this.size=te=J(E.len,(R?b.plotHeight:b.plotWidth)-2*V);q=R?tt:te+2*V,x=J(x,E.toPixels(e,!0)),y=J(y,E.toPixels(p,!0)),_(x)&&Math.abs(x)!==1/0||(x=0,y=q);let to=E.toValue(x,!0),tr=E.toValue(y,!0),tn=Math.abs(F(tr-to));tnY&&(this.grabbedLeft?x=E.toPixels(tr-Y-O,!0):this.grabbedRight&&(y=E.toPixels(to+Y+O,!0))),this.zoomedMax=z(Math.max(x,y),0,ts),this.zoomedMin=z(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(x,y),0,ts),this.range=this.zoomedMax-this.zoomedMin,ts=Math.round(this.zoomedMax);let ta=Math.round(this.zoomedMin);D&&(this.navigatorGroup.attr({visibility:"inherit"}),ti=j&&!this.hasDragged?"animate":"attr",this.drawMasks(ta,ts,R,ti),this.drawOutline(ta,ts,R,ti),this.navigatorOptions.handles.enabled&&(this.drawHandle(ta,0,R,ti),this.drawHandle(ts,1,R,ti))),this.scrollbar&&(R?(Z=this.top-V,$=this.left-tt+(D||!L.opposite?0:(L.titleOffset||0)+L.axisTitleMargin),tt=te+2*V):(Z=this.top+(D?this.height:-tt),$=this.left-V),this.scrollbar.position($,Z,q,tt),this.scrollbar.setRange(this.zoomedMin/(te||1),this.zoomedMax/(te||1))),this.rendered=!0,K(this,"afterRender")}addMouseEvents(){let e=this,p=e.chart,x=p.container,y=[],b,E;e.mouseMoveHandler=b=function(p){e.onMouseMove(p)},e.mouseUpHandler=E=function(p){e.onMouseUp(p)},(y=e.getPartsEvents("mousedown")).push(R(p.renderTo,"mousemove",b),R(x.ownerDocument,"mouseup",E),R(p.renderTo,"touchmove",b),R(x.ownerDocument,"touchend",E)),y.concat(e.getPartsEvents("touchstart")),e.eventsToUnbind=y,e.series&&e.series[0]&&y.push(R(e.series[0].xAxis,"foundExtremes",function(){p.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(e){let p=this,x=[];return["shades","handles"].forEach(function(y){p[y].forEach(function(b,E){x.push(R(b.element,e,function(e){p[y+"Mousedown"](e,E)}))})}),x}shadesMousedown(e,p){e=this.chart.pointer?.normalize(e)||e;let x=this.chart,y=this.xAxis,b=this.zoomedMin,E=this.size,O=this.range,L=this.left,D=e.chartX,j,R,z,F;x.inverted&&(D=e.chartY,L=this.top),1===p?(this.grabbedCenter=D,this.fixedWidth=O,this.dragOffset=D-b):(F=D-L-O/2,0===p?F=Math.max(0,F):2===p&&F+O>=E&&(F=E-O,this.reversedExtremes?(F-=O,R=this.getUnionExtremes().dataMin):j=this.getUnionExtremes().dataMax),F!==b&&(this.fixedWidth=O,H((z=y.navigatorAxis.toFixedRange(F,F+O,R,j)).min)&&K(this,"setRange",{min:Math.min(z.min,z.max),max:Math.max(z.min,z.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(e,p){e=this.chart.pointer?.normalize(e)||e;let x=this.chart,y=x.xAxis[0],b=this.reversedExtremes;0===p?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=b?y.min:y.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=b?y.max:y.min),x.setFixedRange(void 0)}onMouseMove(e){let p=this,x=p.chart,y=p.navigatorSize,b=p.range,E=p.dragOffset,O=x.inverted,L=p.left,D;(!e.touches||0!==e.touches[0].pageX)&&(D=(e=x.pointer?.normalize(e)||e).chartX,O&&(L=p.top,D=e.chartY),p.grabbedLeft?(p.hasDragged=!0,p.render(0,0,D-L,p.otherHandlePos)):p.grabbedRight?(p.hasDragged=!0,p.render(0,0,p.otherHandlePos,D-L)):p.grabbedCenter&&(p.hasDragged=!0,Dy+E-b&&(D=y+E-b),p.render(0,0,D-E,D-E+b)),p.hasDragged&&p.scrollbar&&J(p.scrollbar.options.liveRedraw,!j&&!this.chart.boosted)&&(e.DOMType=e.type,setTimeout(function(){p.onMouseUp(e)},0)))}onMouseUp(e){let p,x,y,b,E,O;let L=this.chart,D=this.xAxis,j=this.scrollbar,R=e.DOMEvent||e,z=L.inverted,F=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!j||!j.hasDragged)||"scrollbar"===e.trigger)&&(y=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?b=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(E=this.fixedExtreme),this.zoomedMax===this.size&&(E=this.reversedExtremes?y.dataMin:y.dataMax),0===this.zoomedMin&&(b=this.reversedExtremes?y.dataMax:y.dataMin),H((O=D.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,b,E)).min)&&K(this,"setRange",{min:Math.min(O.min,O.max),max:Math.max(O.min,O.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:R}})),"mousemove"!==e.DOMType&&"touchmove"!==e.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&_(this.zoomedMin)&&_(this.zoomedMax)&&(x=Math.round(this.zoomedMin),p=Math.round(this.zoomedMax),this.shades&&this.drawMasks(x,p,z,F),this.outline&&this.drawOutline(x,p,z,F),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(x,0,z,F),this.drawHandle(p,1,z,F)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(e){e()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let e=this.baseSeries||[];this.navigatorEnabled&&e[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&e.forEach(function(e){tt(e,"updatedData",this.updatedDataHandler)},this),e[0].xAxis&&tt(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}init(p){let x=p.options,y=x.navigator||{},E=y.enabled,L=x.scrollbar||{},D=L.enabled,j=E&&y.height||0,z=D&&L.height||0,F=L.buttonsEnabled&&z||0;this.handles=[],this.shades=[],this.chart=p,this.setBaseSeries(),this.height=j,this.scrollbarHeight=z,this.scrollButtonSize=F,this.scrollbarEnabled=D,this.navigatorEnabled=E,this.navigatorOptions=y,this.scrollbarOptions=L,this.opposite=J(y.opposite,!!(!E&&p.inverted));let H=this,U=H.baseSeries,Y=p.xAxis.length,V=p.yAxis.length,q=U&&U[0]&&U[0].xAxis||p.xAxis[0]||{options:{}};if(p.isDirtyBox=!0,H.navigatorEnabled?(H.xAxis=new e(p,Z({breaks:q.options.breaks,ordinal:q.options.ordinal,overscroll:q.options.overscroll},y.xAxis,{type:"datetime",index:Y,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},p.inverted?{offsets:[F,0,-F,0],width:j}:{offsets:[0,-F,0,F],height:j}),"xAxis"),H.yAxis=new e(p,Z(y.yAxis,{alignTicks:!1,offset:0,index:V,isInternal:!0,reversed:J(y.yAxis&&y.yAxis.reversed,p.yAxis[0]&&p.yAxis[0].reversed,!1),zoomEnabled:!1},p.inverted?{width:j}:{height:j}),"yAxis"),U||y.series.data?H.updateNavigatorSeries(!1):0===p.series.length&&(H.unbindRedraw=R(p,"beforeRedraw",function(){p.series.length>0&&!H.series&&(H.setBaseSeries(),H.unbindRedraw())})),H.reversedExtremes=p.inverted&&!H.xAxis.reversed||!p.inverted&&H.xAxis.reversed,H.renderElements(),H.addMouseEvents()):(H.xAxis={chart:p,navigatorAxis:{fake:!0},translate:function(e,x){let y=p.xAxis[0],b=y.getExtremes(),E=y.len-2*F,O=ti("min",y.options.min,b.dataMin),L=ti("max",y.options.max,b.dataMax)-O;return x?e*L/E+O:E*(e-O)/L},toPixels:function(e){return this.translate(e)},toValue:function(e){return this.translate(e,!0)}},H.xAxis.navigatorAxis.axis=H.xAxis,H.xAxis.navigatorAxis.toFixedRange=b.prototype.toFixedRange.bind(H.xAxis.navigatorAxis)),p.options.scrollbar.enabled){let e=Z(p.options.scrollbar,{vertical:p.inverted});!_(e.margin)&&H.navigatorEnabled&&(e.margin=p.inverted?-3:3),p.scrollbar=H.scrollbar=new O(p.renderer,e,p),R(H.scrollbar,"changed",function(e){let p=H.size,x=p*this.to,y=p*this.from;H.hasDragged=H.scrollbar.hasDragged,H.render(0,0,y,x),this.shouldUpdateExtremes(e.DOMType)&&setTimeout(function(){H.onMouseUp(e)})})}H.addBaseSeriesEvents(),H.addChartEvents()}getUnionExtremes(e){let p;let x=this.chart.xAxis[0],y=this.xAxis,b=y.options,E=x.options;return e&&null===x.dataMin||(p={dataMin:J(b&&b.min,ti("min",E.min,x.dataMin,y.dataMin,y.min)),dataMax:J(b&&b.max,ti("max",E.max,x.dataMax,y.dataMax,y.max))}),p}setBaseSeries(e,p){let x=this.chart,y=this.baseSeries=[];e=e||x.options&&x.options.navigator.baseSeries||(x.series.length?q(x.series,e=>!e.options.isInternal).index:0),(x.series||[]).forEach((p,x)=>{!p.options.isInternal&&(p.options.showInNavigator||(x===e||p.options.id===e)&&!1!==p.options.showInNavigator)&&y.push(p)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,p)}updateNavigatorSeries(e,p){let x=this,y=x.chart,b=x.baseSeries,E={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:this.navigatorOptions.xAxis?.id,yAxis:this.navigatorOptions.yAxis?.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},O=x.series=(x.series||[]).filter(e=>{let p=e.baseSeries;return!(0>b.indexOf(p))||(p&&(tt(p,"updatedData",x.updatedDataHandler),delete p.navigatorSeries),e.chart&&e.destroy(),!1)}),L,j,R=x.navigatorOptions.series,z;b&&b.length&&b.forEach(e=>{let F=e.navigatorSeries,H=V({color:e.color,visible:e.visible},$(R)?D.navigator.series:R);if(F&&!1===x.navigatorOptions.adaptToUpdatedData)return;E.name="Navigator "+b.length,z=(L=e.options||{}).navigatorOptions||{},H.dataLabels=te(H.dataLabels),(j=Z(L,E,H,z)).pointRange=J(H.pointRange,z.pointRange,D.plotOptions[j.type||"line"].pointRange);let U=z.data||H.data;x.hasNavigatorData=x.hasNavigatorData||!!U,j.data=U||L.data&&L.data.slice(0),F&&F.options?F.update(j,p):(e.navigatorSeries=y.initSeries(j),y.setSortedData(),e.navigatorSeries.baseSeries=e,O.push(e.navigatorSeries))}),(R.data&&!(b&&b.length)||$(R))&&(x.hasNavigatorData=!1,(R=te(R)).forEach((e,p)=>{E.name="Navigator "+(O.length+1),(j=Z(D.navigator.series,{color:y.series[p]&&!y.series[p].options.isInternal&&y.series[p].color||y.options.colors[p]||y.options.colors[0]},E,e)).data=e.data,j.data&&(x.hasNavigatorData=!0,O.push(y.initSeries(j)))})),e&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let e=this,p=e.baseSeries||[];p[0]&&p[0].xAxis&&p[0].eventsToUnbind.push(R(p[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),p.forEach(p=>{p.eventsToUnbind.push(R(p,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),p.eventsToUnbind.push(R(p,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==this.navigatorOptions.adaptToUpdatedData&&p.xAxis&&p.eventsToUnbind.push(R(p,"updatedData",this.updatedDataHandler)),p.eventsToUnbind.push(R(p,"remove",function(){this.navigatorSeries&&(Y(e.series,this.navigatorSeries),H(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(e){return this.baseSeries.reduce(function(e,p){return Math.min(e,p.xData&&p.xData.length?p.xData[0]:e)},e)}modifyNavigatorAxisExtremes(){let e=this.xAxis;if(void 0!==e.getExtremes){let p=this.getUnionExtremes(!0);p&&(p.dataMin!==e.min||p.dataMax!==e.max)&&(e.min=p.dataMin,e.max=p.dataMax)}}modifyBaseAxisExtremes(){let e,p;let x=this.chart.navigator,y=this.getExtremes(),b=y.min,E=y.max,O=y.dataMin,L=y.dataMax,D=E-b,j=x.stickToMin,R=x.stickToMax,z=J(this.ordinal?.convertOverscroll(this.options.overscroll),0),F=x.series&&x.series[0],H=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(j&&(e=(p=O)+D),R&&(e=L+z,j||(p=Math.max(O,e-D,x.getBaseSeriesMin(F&&F.xData?F.xData[0]:-Number.MAX_VALUE)))),H&&(j||R)&&_(p)&&(this.min=this.userMin=p,this.max=this.userMax=e)),x.stickToMin=x.stickToMax=null}updatedDataHandler(){let e=this.chart.navigator,p=this.navigatorSeries,x=e.reversedExtremes?0===Math.round(e.zoomedMin):Math.round(e.zoomedMax)>=Math.round(e.size);e.stickToMax=J(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,x),e.stickToMin=e.shouldStickToMin(this,e),p&&!e.hasNavigatorData&&(p.options.pointStart=this.xData[0],p.setData(this.options.data,!1,null,!1))}shouldStickToMin(e,p){let x=p.getBaseSeriesMin(e.xData[0]),y=e.xAxis,b=y.max,E=y.min,O=y.options.range;return!!(_(b)&&_(E))&&(O&&b-x>0?b-x{e.destroy&&e.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(e=>{this[e]&&this[e].destroy&&this[e].destroy(),this[e]=null}),[this.handles].forEach(e=>{U(e)})}};return M}),x(p,"Accessibility/Components/NavigatorComponent.js",[p["Accessibility/AccessibilityComponent.js"],p["Accessibility/Utils/Announcer.js"],p["Accessibility/KeyboardNavigationHandler.js"],p["Stock/Navigator/Navigator.js"],p["Core/Animation/AnimationUtilities.js"],p["Core/Templating.js"],p["Core/Utilities.js"],p["Accessibility/Utils/HTMLUtilities.js"],p["Accessibility/Utils/ChartUtilities.js"]],function(e,p,x,y,b,E,O,L,D){let{animObject:j}=b,{format:R}=E,{clamp:z,pick:F,syncTimeout:H}=O,{getFakeMouseEvent:U}=L,{getAxisRangeDescription:Y,fireEventOnWrappedOrUnwrappedElement:V}=D;return class extends e{init(){let e=this.chart,x=this;this.announcer=new p(e,"polite"),this.addEvent(y,"afterRender",function(){this.chart===x.chart&&this.chart.renderer&&H(()=>{x.proxyProvider.updateGroupProxyElementPositions("navigator"),x.updateHandleValues()},j(F(this.chart.renderer.globalAnimation,!0)).duration)})}onChartUpdate(){let e=this.chart,p=e.options;if(p.navigator.accessibility?.enabled){let x=p.accessibility.landmarkVerbosity,y=p.lang.accessibility?.navigator.groupLabel;this.proxyProvider.removeGroup("navigator"),this.proxyProvider.addGroup("navigator","div",{role:"all"===x?"region":"group","aria-label":R(y,{chart:e},e)});let b=p.lang.accessibility?.navigator.handleLabel;[0,1].forEach(p=>{let x=this.getHandleByIx(p);if(x){let y=this.proxyProvider.addProxyElement("navigator",{click:x},"input",{type:"range","aria-label":R(b,{handleIx:p,chart:e},e)});this[p?"maxHandleProxy":"minHandleProxy"]=y.innerElement,y.innerElement.style.pointerEvents="none",y.innerElement.oninput=()=>this.updateNavigator()}}),this.updateHandleValues()}else this.proxyProvider.removeGroup("navigator")}getNavigatorHandleNavigation(e){let p=this,y=this.chart,b=e?this.maxHandleProxy:this.minHandleProxy,E=this.keyCodes;return new x(y,{keyCodeMap:[[[E.left,E.right,E.up,E.down],function(x){if(b){let O=x===E.left||x===E.up?-1:1;b.value=""+z(parseFloat(b.value)+O,0,100),p.updateNavigator(()=>{let x=p.getHandleByIx(e);x&&y.setFocusToElement(x,b)})}return this.response.success}]],init:()=>{y.setFocusToElement(this.getHandleByIx(e),b)},validate:()=>!!(this.getHandleByIx(e)&&b&&y.options.navigator.accessibility?.enabled)})}getKeyboardNavigation(){return[this.getNavigatorHandleNavigation(0),this.getNavigatorHandleNavigation(1)]}destroy(){this.updateNavigatorThrottleTimer&&clearTimeout(this.updateNavigatorThrottleTimer),this.proxyProvider.removeGroup("navigator"),this.announcer&&this.announcer.destroy()}updateHandleValues(){let e=this.chart.navigator;if(e&&this.minHandleProxy&&this.maxHandleProxy){let p=e.size;this.minHandleProxy.value=""+Math.round(e.zoomedMin/p*100),this.maxHandleProxy.value=""+Math.round(e.zoomedMax/p*100)}}getHandleByIx(e){let p=this.chart.navigator;return p&&p.handles&&p.handles[e]}updateNavigator(e){this.updateNavigatorThrottleTimer&&clearTimeout(this.updateNavigatorThrottleTimer),this.updateNavigatorThrottleTimer=setTimeout((e=>{let p=this.chart,{navigator:x,pointer:y}=p;if(x&&y&&this.minHandleProxy&&this.maxHandleProxy){let b=y.getChartPosition(),E=parseFloat(this.minHandleProxy.value)/100*x.size,O=parseFloat(this.maxHandleProxy.value)/100*x.size;[[0,"mousedown",x.zoomedMin],[0,"mousemove",E],[0,"mouseup",E],[1,"mousedown",x.zoomedMax],[1,"mousemove",O],[1,"mouseup",O]].forEach(([e,p,y])=>{let E=this.getHandleByIx(e)?.element;E&&V(E,U(p,{x:b.left+x.left+y,y:b.top+x.top},E))}),e&&e();let L=p.options.lang.accessibility?.navigator.changeAnnouncement,D=Y(p.xAxis[0]);this.announcer.announce(R(L,{axisRangeDescription:D,chart:p},p))}}).bind(this,e),20)}}}),x(p,"Accessibility/Components/SeriesComponent/SeriesDescriber.js",[p["Accessibility/Components/AnnotationsA11y.js"],p["Accessibility/Utils/ChartUtilities.js"],p["Core/Templating.js"],p["Accessibility/Utils/HTMLUtilities.js"],p["Core/Utilities.js"]],function(e,p,x,y,b){let{getPointAnnotationTexts:E}=e,{getAxisDescription:O,getSeriesFirstPointElement:L,getSeriesA11yElement:D,unhideChartElementFromAT:j}=p,{format:R,numberFormat:z}=x,{reverseChildNodes:F,stripHTMLTagsFromString:H}=y,{find:U,isNumber:Y,isString:V,pick:q,defined:K}=b;function $(e){let p=e.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(!1!==p&&e.points&&e.points.length>=+p)}function _(e,p){let x=e.series,y=x.chart,b=y.options.accessibility.point||{},E=x.options.accessibility&&x.options.accessibility.point||{},O=x.tooltipOptions||{},L=y.options.lang;return Y(p)?z(p,E.valueDecimals||b.valueDecimals||O.valueDecimals||-1,L.decimalPoint,L.accessibility.thousandsSep||L.thousandsSep):p}function Z(e,p){let x=e[p];return e.chart.langFormat("accessibility.series."+p+"Description",{name:O(x),series:e})}function J(e){let p,x,y,b,O,L,D,j,z,F,H,U,Y,V,$,Z,J,tt,te,ti,ts,to,tr;let tn=e.series,ta=tn.chart.series.length>1||tn.options.name,tl=(L=(O=e.series).chart,j=(D=O.options.accessibility)&&D.point&&D.point.valueDescriptionFormat||L.options.accessibility.point.valueDescriptionFormat,F=(z=q(O.xAxis&&O.xAxis.options.accessibility&&O.xAxis.options.accessibility.enabled,!L.angular&&"flowmap"!==O.type))?(p=function(e){let p=e.series,x=p.chart,y=p.options.accessibility&&p.options.accessibility.point||{},b=x.options.accessibility.point||{},E=p.xAxis&&p.xAxis.dateTime;if(E){let p=E.getXDateFormat(e.x||0,x.options.tooltip.dateTimeLabelFormats),O=y.dateFormatter&&y.dateFormatter(e)||b.dateFormatter&&b.dateFormatter(e)||y.dateFormat||b.dateFormat||p;return x.time.dateFormat(O,e.x||0,void 0)}}(e),x=(e.series.xAxis||{}).categories&&K(e.category)&&(""+e.category).replace("
    "," "),y=K(e.id)&&0>(""+e.id).indexOf("highcharts-"),b="x, "+e.x,e.name||p||x||(y?e.id:b)):"",R(j,{point:e,index:K(e.index)?e.index+1:"",xDescription:F,value:(U=(H=e.series).chart.options.accessibility.point||{},Y=H.chart.options.accessibility&&H.chart.options.accessibility.point||{},V=H.tooltipOptions||{},$=Y.valuePrefix||U.valuePrefix||V.valuePrefix||"",Z=Y.valueSuffix||U.valueSuffix||V.valueSuffix||"",J=void 0!==e.value?"value":"y",tt=_(e,e[J]),e.isNull?H.chart.langFormat("accessibility.series.nullPointValue",{point:e}):H.pointArrayMap?(te=$||"",ti=Z||"",ts=function(p){let x=_(e,q(e[p],e.options[p]));return void 0!==x?p+": "+te+x+ti:x},e.series.pointArrayMap.reduce(function(e,p){let x=ts(p);return x?e+(e.length?", ":"")+x:e},"")):$+tt+Z),separator:z?", ":""},L)),th=e.options&&e.options.accessibility&&e.options.accessibility.description,td=ta?" "+tn.name+".":"",tc=(to=e.series.chart,(tr=E(e)).length?to.langFormat("accessibility.series.pointAnnotationsDescription",{point:e,annotations:tr}):"");return e.accessibility=e.accessibility||{},e.accessibility.valueDescription=tl,tl+(th?" "+th:"")+td+(tc?" "+tc:"")}function tt(e){let p;let x=e.chart,y=x.types||[],b=(p=(e.options.accessibility||{}).description)&&e.chart.langFormat("accessibility.series.description",{description:p,series:e})||"",E=function(p){return x[p]&&x[p].length>1&&e[p]},O=e.index+1,L=Z(e,"xAxis"),D=Z(e,"yAxis"),j={seriesNumber:O,series:e,chart:x},z=y.length>1?"Combination":"",F=x.langFormat("accessibility.series.summary."+e.type+z,j)||x.langFormat("accessibility.series.summary.default"+z,j),H=(E("yAxis")?" "+D+".":"")+(E("xAxis")?" "+L+".":"");return R(q(e.options.accessibility&&e.options.accessibility.descriptionFormat,x.options.accessibility.series.descriptionFormat,""),{seriesDescription:F,authorDescription:b?" "+b:"",axisDescription:H,series:e,chart:x,seriesNumber:O},void 0)}return{defaultPointDescriptionFormatter:J,defaultSeriesDescriptionFormatter:tt,describeSeries:function(e){let p,x,y,b,E,O,z,Y,_,Z,te,ti,ts,to,tr=e.chart,tn=L(e),ta=D(e),tl=tr.is3d&&tr.is3d();ta&&(ta.lastChild!==tn||tl||F(ta),p=e.options.accessibility||{},y=!$(e)&&!p.exposeAsGroupOnly,x=e.chart.options.accessibility.keyboardNavigation.seriesNavigation,b=!!(e.points&&(e.points.length<+x.pointNavigationEnabledThreshold||!1===x.pointNavigationEnabledThreshold)),E=e.chart.options.accessibility.point.describeNull,(y||b)&&e.points.forEach(p=>{let x,b,O,L,D;let j=p.graphic&&p.graphic.element||(b=(x=p.series)&&x.chart,O=x&&x.is("sunburst"),L=p.isNull,D=b&&b.options.accessibility.point.describeNull,L&&!O&&D&&function(e){let p,x;let y=e.series,b=(p=e.index,e.series&&e.series.data&&K(p)&&U(e.series.data,function(e){return!!(e&&void 0!==e.index&&e.index>p&&e.graphic&&e.graphic.element)})||null),E=b&&b.graphic,O=E?E.parentGroup:y.graph||y.group,L=b?{x:q(e.plotX,b.plotX,0),y:q(e.plotY,b.plotY,0)}:{x:q(e.plotX,0),y:q(e.plotY,0)},D=((x=e.series.chart.renderer.rect(L.x,L.y,1,1)).attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),x);if(O&&O.element)return e.graphic=D,e.hasMockGraphic=!0,D.add(O),O.element.insertBefore(D.element,E?E.element:null),D.element}(p)),z=p.options&&p.options.accessibility&&!1===p.options.accessibility.enabled;if(j){let x,b,O,L;if(p.isNull&&!E){j.setAttribute("aria-hidden",!0);return}j.setAttribute("tabindex","-1"),e.chart.styledMode||(j.style.outline="none"),y&&!z?(x=p.series,b=x.options.accessibility?.point||{},O=x.chart.options.accessibility.point||{},L=H(V(b.descriptionFormat)&&R(b.descriptionFormat,p,x.chart)||b.descriptionFormatter?.(p)||V(O.descriptionFormat)&&R(O.descriptionFormat,p,x.chart)||O.descriptionFormatter?.(p)||J(p),x.chart.renderer.forExport),j.setAttribute("role","img"),j.setAttribute("aria-label",L)):j.setAttribute("aria-hidden",!0)}}),j(tr,ta),(Y=(z=(O=e.chart).options.chart).options3d&&z.options3d.enabled,_=O.series.length>1,Z=O.options.accessibility.series.describeSingleSeries,te=(e.options.accessibility||{}).exposeAsGroupOnly,!(Y&&_)&&(_||Z||te||$(e)))?(ti=e.options.accessibility||{},to=(ts=e.chart.options.accessibility).landmarkVerbosity,ti.exposeAsGroupOnly?ta.setAttribute("role","img"):"all"===to?ta.setAttribute("role","region"):ta.setAttribute("role","group"),ta.setAttribute("tabindex","-1"),e.chart.styledMode||(ta.style.outline="none"),ta.setAttribute("aria-label",H(ts.series.descriptionFormatter&&ts.series.descriptionFormatter(e)||tt(e),e.chart.renderer.forExport))):ta.removeAttribute("aria-label"))}}}),x(p,"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js",[p["Core/Globals.js"],p["Core/Utilities.js"],p["Accessibility/Utils/Announcer.js"],p["Accessibility/Utils/ChartUtilities.js"],p["Accessibility/Utils/EventProvider.js"],p["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(e,p,x,y,b,E){let{composed:O}=e,{addEvent:L,defined:D,pushUnique:j}=p,{getChartTitle:R}=y,{defaultPointDescriptionFormatter:z,defaultSeriesDescriptionFormatter:F}=E;function H(e){return!!e.options.accessibility.announceNewData.enabled}let g=class g{constructor(e){this.dirty={allSeries:{}},this.lastAnnouncementTime=0,this.chart=e}init(){let e=this.chart,p=e.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new b,this.announcer=new x(e,p),this.addEventListeners()}destroy(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()}addEventListeners(){let e=this,p=this.chart,x=this.eventProvider;x.addEvent(p,"afterApplyDrilldown",function(){e.lastAnnouncementTime=0}),x.addEvent(p,"afterAddSeries",function(p){e.onSeriesAdded(p.series)}),x.addEvent(p,"redraw",function(){e.announceDirtyData()})}onSeriesAdded(e){H(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[e.name+e.index]=e,this.dirty.newSeries=D(this.dirty.newSeries)?void 0:e)}announceDirtyData(){let e=this.chart,p=this;if(e.options.accessibility.announceNewData&&this.dirty.hasDirty){var x;let e,y=this.dirty.newPoint;y&&(y=1===(e=(x=y).series.data.filter(e=>x.x===e.x&&x.y===e.y)).length?e[0]:x),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(e=>p.dirty.allSeries[e]),this.dirty.newSeries,y),this.dirty={allSeries:{}}}}queueAnnouncement(e,p,x){let y=this.chart.options.accessibility.announceNewData;if(y.enabled){let b;let E=+new Date,O=E-this.lastAnnouncementTime,L=Math.max(0,y.minAnnounceInterval-O),D=Object.keys(b=(this.queuedAnnouncement&&this.queuedAnnouncement.series||[]).concat(e||[]).reduce((e,p)=>(e[p.name+p.index]=p,e),{})).map(e=>b[e]),j=this.buildAnnouncementMessage(D,p,x);j&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:E,message:j,series:D},this.queuedAnnouncementTimer=setTimeout(()=>{this&&this.announcer&&(this.lastAnnouncementTime=+new Date,this.announcer.announce(this.queuedAnnouncement.message),delete this.queuedAnnouncement,delete this.queuedAnnouncementTimer)},L))}}buildAnnouncementMessage(p,x,y){let b=this.chart,E=b.options.accessibility.announceNewData;if(E.announcementFormatter){let e=E.announcementFormatter(p,x,y);if(!1!==e)return e.length?e:null}let O=e.charts&&e.charts.length>1?"Multiple":"Single",L=x?"newSeriesAnnounce"+O:y?"newPointAnnounce"+O:"newDataAnnounce",D=R(b);return b.langFormat("accessibility.announceNewData."+L,{chartTitle:D,seriesDesc:x?F(x):null,pointDesc:y?z(y):null,point:y,series:x})}};return function(e){function p(e){let p=this.chart,x=p.accessibility?.components.series.newDataAnnouncer;x&&x.chart===p&&H(p)&&(x.dirty.newPoint=D(x.dirty.newPoint)?void 0:e.point)}function x(){let e=this.chart,p=e.accessibility?.components.series.newDataAnnouncer;p&&p.chart===e&&H(e)&&(p.dirty.hasDirty=!0,p.dirty.allSeries[this.name+this.index]=this)}e.compose=function(e){j(O,"A11y.NDA")&&(L(e,"addPoint",p),L(e,"updatedData",x))}}(g||(g={})),g}),x(p,"Accessibility/ProxyElement.js",[p["Core/Globals.js"],p["Core/Utilities.js"],p["Accessibility/Utils/EventProvider.js"],p["Accessibility/Utils/ChartUtilities.js"],p["Accessibility/Utils/HTMLUtilities.js"]],function(e,p,x,y,b){let{doc:E}=e,{attr:O,css:L,merge:D}=p,{fireEventOnWrappedOrUnwrappedElement:j}=y,{cloneMouseEvent:R,cloneTouchEvent:z,getFakeMouseEvent:F,removeElement:H}=b;return class{constructor(e,p,y="button",b,O){this.chart=e,this.target=p,this.eventProvider=new x;let L=this.innerElement=E.createElement(y),D=this.element=b?E.createElement(b):L;e.styledMode||this.hideElementVisually(L),b&&("li"!==b||e.styledMode||(D.style.listStyle="none"),D.appendChild(L),this.element=D),this.updateTarget(p,O)}click(){let e=this.getTargetPosition();e.x+=e.width/2,e.y+=e.height/2;let p=F("click",e);j(this.target.click,p)}updateTarget(e,p){this.target=e,this.updateCSSClassName();let x=p||{};Object.keys(x).forEach(e=>{null===x[e]&&delete x[e]});let y=this.getTargetAttr(e.click,"aria-label");O(this.innerElement,D(y?{"aria-label":y}:{},x)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToElement(this.innerElement,e.click),this.refreshPosition()}refreshPosition(){let e=this.getTargetPosition();L(this.innerElement,{width:(e.width||1)+"px",height:(e.height||1)+"px",left:(Math.round(e.x)||0)+"px",top:(Math.round(e.y)||0)+"px"})}remove(){this.eventProvider.removeAddedEvents(),H(this.element)}updateCSSClassName(){let e=e=>e.indexOf("highcharts-no-tooltip")>-1,p=this.chart.legend,x=p.group&&p.group.div,y=e(x&&x.className||""),b=e(this.getTargetAttr(this.target.click,"class")||"");this.innerElement.className=y||b?"highcharts-a11y-proxy-element highcharts-no-tooltip":"highcharts-a11y-proxy-element"}addProxyEventsToElement(e,p){["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(x=>{let y=0===x.indexOf("touch");this.eventProvider.addEvent(e,x,e=>{let x=y?z(e):R(e);p&&j(p,x),e.stopPropagation(),y||e.preventDefault()},{passive:!1})})}hideElementVisually(e){L(e,{borderWidth:0,backgroundColor:"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)"})}getTargetPosition(){let e=this.target.click,p=e.element?e.element:e,x=this.target.visual||p,y=this.chart.renderTo,b=this.chart.pointer;if(y&&x?.getBoundingClientRect&&b){let e=x.getBoundingClientRect(),p=b.getChartPosition();return{x:(e.left-p.left)/p.scaleX,y:(e.top-p.top)/p.scaleY,width:e.right/p.scaleX-e.left/p.scaleX,height:e.bottom/p.scaleY-e.top/p.scaleY}}return{x:0,y:0,width:1,height:1}}getTargetAttr(e,p){return e.element?e.element.getAttribute(p):e.getAttribute(p)}}}),x(p,"Accessibility/ProxyProvider.js",[p["Core/Globals.js"],p["Core/Utilities.js"],p["Accessibility/Utils/ChartUtilities.js"],p["Accessibility/Utils/DOMElementProvider.js"],p["Accessibility/Utils/HTMLUtilities.js"],p["Accessibility/ProxyElement.js"]],function(e,p,x,y,b,E){let{doc:O}=e,{attr:L,css:D}=p,{unhideChartElementFromAT:j}=x,{removeChildNodes:R}=b;return class{constructor(e){this.chart=e,this.domElementProvider=new y,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}addProxyElement(e,p,x="button",y){let b=this.groups[e];if(!b)throw Error("ProxyProvider.addProxyElement: Invalid group key "+e);let O="ul"===b.type||"ol"===b.type?"li":void 0,L=new E(this.chart,p,x,O,y);return b.proxyContainerElement.appendChild(L.element),b.proxyElements.push(L),L}addGroup(e,p="div",x){let y;let b=this.groups[e];if(b)return b.groupElement;let E=this.domElementProvider.createElement(p);return x&&x.role&&"div"!==p?(y=this.domElementProvider.createElement("div")).appendChild(E):y=E,y.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+e.replace(/\W/g,"-"),this.groups[e]={proxyContainerElement:E,groupElement:y,type:p,proxyElements:[]},L(y,x||{}),"ul"===p&&E.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(y),this.updateGroupOrder(this.groupOrder),y}updateGroupAttrs(e,p){let x=this.groups[e];if(!x)throw Error("ProxyProvider.updateGroupAttrs: Invalid group key "+e);L(x.groupElement,p)}updateGroupOrder(e){if(this.groupOrder=e.slice(),this.isDOMOrderGroupOrder())return;let p=e.indexOf("series"),x=p>-1?e.slice(0,p):e,y=p>-1?e.slice(p+1):[],b=O.activeElement;["before","after"].forEach(e=>{let p=this["before"===e?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"];R(p),("before"===e?x:y).forEach(e=>{let x=this.groups[e];x&&p.appendChild(x.groupElement)})}),(this.beforeChartProxyPosContainer.contains(b)||this.afterChartProxyPosContainer.contains(b))&&b&&b.focus&&b.focus()}clearGroup(e){let p=this.groups[e];if(!p)throw Error("ProxyProvider.clearGroup: Invalid group key "+e);R(p.proxyContainerElement)}removeGroup(e){let p=this.groups[e];p&&(this.domElementProvider.removeElement(p.groupElement),p.groupElement!==p.proxyContainerElement&&this.domElementProvider.removeElement(p.proxyContainerElement),delete this.groups[e])}update(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()}updateProxyElementPositions(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))}updateGroupProxyElementPositions(e){let p=this.groups[e];p&&p.proxyElements.forEach(e=>e.refreshPosition())}destroy(){this.domElementProvider.destroyCreatedElements()}createProxyPosContainer(e){let p=this.domElementProvider.createElement("div");return p.setAttribute("aria-hidden","false"),p.className="highcharts-a11y-proxy-container"+(e?"-"+e:""),D(p,{top:"0",left:"0"}),this.chart.styledMode||(p.style.whiteSpace="nowrap",p.style.position="absolute"),p}getCurrentGroupOrderInDOM(){let e=e=>{let p=Object.keys(this.groups),x=p.length;for(;x--;){let y=p[x],b=this.groups[y];if(b&&e===b.groupElement)return y}},p=p=>{let x=[],y=p.children;for(let p=0;p"series"===e||!!this.groups[e]),x=e.length;if(x!==p.length)return!1;for(;x--;)if(e[x]!==p[x])return!1;return!0}updatePosContainerPositions(){let e=this.chart;if(e.renderer.forExport)return;let p=e.renderer.box;e.container.insertBefore(this.afterChartProxyPosContainer,p.nextSibling),e.container.insertBefore(this.beforeChartProxyPosContainer,p),j(this.chart,this.afterChartProxyPosContainer),j(this.chart,this.beforeChartProxyPosContainer)}}}),x(p,"Accessibility/Components/RangeSelectorComponent.js",[p["Accessibility/AccessibilityComponent.js"],p["Accessibility/Utils/Announcer.js"],p["Accessibility/Utils/ChartUtilities.js"],p["Accessibility/KeyboardNavigationHandler.js"],p["Core/Utilities.js"]],function(e,p,x,y,b){let{unhideChartElementFromAT:E,getAxisRangeDescription:O}=x,{addEvent:L,attr:D}=b;let h=class h extends e{init(){let e=this.chart;this.announcer=new p(e,"polite")}onChartUpdate(){let e=this.chart,p=this,x=e.rangeSelector;x&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),x.buttons&&x.buttons.length&&x.buttons.forEach(e=>{p.setRangeButtonAttrs(e)}),x.maxInput&&x.minInput&&["minInput","maxInput"].forEach(function(y,b){let O=x[y];O&&(E(e,O),p.setRangeInputAttrs(O,"accessibility.rangeSelector."+(b?"max":"min")+"InputLabel"))}))}updateSelectorVisibility(){let e=this.chart,p=e.rangeSelector,x=p&&p.dropdown,y=p&&p.buttons||[],b=e=>e.setAttribute("aria-hidden",!0);p&&p.hasVisibleDropdown&&x?(E(e,x),y.forEach(e=>b(e.element))):(x&&b(x),y.forEach(p=>E(e,p.element)))}setDropdownAttrs(){let e=this.chart,p=e.rangeSelector&&e.rangeSelector.dropdown;if(p){let x=e.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:e.options.lang.rangeSelectorZoom});p.setAttribute("aria-label",x),p.setAttribute("tabindex",-1)}}setRangeButtonAttrs(e){D(e.element,{tabindex:-1,role:"button"})}setRangeInputAttrs(e,p){let x=this.chart;D(e,{tabindex:-1,"aria-label":x.langFormat(p,{chart:x})})}onButtonNavKbdArrowKey(e,p){let x=e.response,y=this.keyCodes,b=this.chart,E=b.options.accessibility.keyboardNavigation.wrapAround,O=p===y.left||p===y.up?-1:1;return b.highlightRangeSelectorButton(b.highlightedRangeSelectorItemIx+O)?x.success:E?(e.init(O),x.success):x[O>0?"next":"prev"]}onButtonNavKbdClick(e){let p=e.response,x=this.chart;return 3!==x.oldRangeSelectorItemState&&this.fakeClickEvent(x.rangeSelector.buttons[x.highlightedRangeSelectorItemIx].element),p.success}onAfterBtnClick(){let e=this.chart,p=O(e.xAxis[0]),x=e.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:e,axisRangeDescription:p});x&&this.announcer.announce(x)}onInputKbdMove(e){let p=this.chart,x=p.rangeSelector,y=p.highlightedInputRangeIx=(p.highlightedInputRangeIx||0)+e;if(y>1||y<0){if(p.accessibility)return p.accessibility.keyboardNavigation.exiting=!0,p.accessibility.keyboardNavigation.tabindexContainer.focus(),p.accessibility.keyboardNavigation.move(e)}else if(x){let e=x[y?"maxDateBox":"minDateBox"],b=x[y?"maxInput":"minInput"];e&&b&&p.setFocusToElement(e,b)}return!0}onInputNavInit(e){let p=this,x=this.chart,y=e>0?0:1,b=x.rangeSelector,E=b&&b[y?"maxDateBox":"minDateBox"],O=b&&b.minInput,D=b&&b.maxInput;if(x.highlightedInputRangeIx=y,E&&O&&D){x.setFocusToElement(E,y?D:O),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();let e=e=>{(e.which||e.keyCode)===this.keyCodes.tab&&p.onInputKbdMove(e.shiftKey?-1:1)&&(e.preventDefault(),e.stopPropagation())},b=L(O,"keydown",e),j=L(D,"keydown",e);this.removeInputKeydownHandler=()=>{b(),j()}}}onInputNavTerminate(){let e=this.chart.rangeSelector||{};e.maxInput&&e.hideInput("max"),e.minInput&&e.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)}initDropdownNav(){let e=this.chart,p=e.rangeSelector,x=p&&p.dropdown;p&&x&&(e.setFocusToElement(p.buttonGroup,x),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=L(x,"keydown",p=>{let x=(p.which||p.keyCode)===this.keyCodes.tab,y=e.accessibility;x&&(p.preventDefault(),p.stopPropagation(),y&&(y.keyboardNavigation.tabindexContainer.focus(),y.keyboardNavigation.move(p.shiftKey?-1:1)))}))}getRangeSelectorButtonNavigation(){let e=this.chart,p=this.keyCodes,x=this;return new y(e,{keyCodeMap:[[[p.left,p.right,p.up,p.down],function(e){return x.onButtonNavKbdArrowKey(this,e)}],[[p.enter,p.space],function(){return x.onButtonNavKbdClick(this)}]],validate:function(){return!!(e.rangeSelector&&e.rangeSelector.buttons&&e.rangeSelector.buttons.length)},init:function(p){let y=e.rangeSelector;if(y&&y.hasVisibleDropdown)x.initDropdownNav();else if(y){let x=y.buttons.length-1;e.highlightRangeSelectorButton(p>0?0:x)}},terminate:function(){x.removeDropdownKeydownHandler&&(x.removeDropdownKeydownHandler(),delete x.removeDropdownKeydownHandler)}})}getRangeSelectorInputNavigation(){let e=this.chart,p=this;return new y(e,{keyCodeMap:[],validate:function(){return!!(e.rangeSelector&&e.rangeSelector.inputGroup&&"hidden"!==e.rangeSelector.inputGroup.element.style.visibility&&!1!==e.options.rangeSelector.inputEnabled&&e.rangeSelector.minInput&&e.rangeSelector.maxInput)},init:function(e){p.onInputNavInit(e)},terminate:function(){p.onInputNavTerminate()}})}getKeyboardNavigation(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]}destroy(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()}};return function(e){function p(e){let p=this.rangeSelector&&this.rangeSelector.buttons||[],x=this.highlightedRangeSelectorItemIx,y=this.rangeSelector&&this.rangeSelector.selected;return void 0!==x&&p[x]&&x!==y&&p[x].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=e,!!p[e]&&(this.setFocusToElement(p[e].box,p[e].element),e!==y&&(this.oldRangeSelectorItemState=p[e].state,p[e].setState(1)),!0)}function x(){let e=this.chart.accessibility;if(e&&e.components.rangeSelector)return e.components.rangeSelector.onAfterBtnClick()}e.compose=function(e,y){let b=e.prototype;b.highlightRangeSelectorButton||(b.highlightRangeSelectorButton=p,L(y,"afterBtnClick",x))}}(h||(h={})),h}),x(p,"Accessibility/Components/SeriesComponent/ForcedMarkers.js",[p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p){var x;let{composed:y}=e,{addEvent:b,merge:E,pushUnique:O}=p;return function(e){function p(e){E(!0,e,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function x(e){return e.marker.states&&e.marker.states.normal&&e.marker.states.normal.opacity}function L(e){return!!(e._hasPointMarkers&&e.points&&e.points.length)}function D(){this.chart.styledMode&&(this.markerGroup&&this.markerGroup[this.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),L(this)&&this.points.forEach(e=>{e.graphic&&(e.graphic[e.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),e.graphic[!1===e.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function j(e){this.resetA11yMarkerOptions=E(e.options.marker||{},this.userOptions.marker||{})}function R(){let e,y,b,O=this.options;(e=this.chart.options.accessibility.enabled,y=!1!==(this.options.accessibility&&this.options.accessibility.enabled),e&&y&&(b=this.chart.options.accessibility,this.points.length-1;y.highlightedPoint===this&&p!==e&&!b&&e&&e.focus&&e.focus()})}onDrillupAll(){let e;let p=this.lastDrilledDownPoint,x=this.chart,y=p&&H(x,p.seriesName);p&&y&&R(p.x)&&R(p.y)&&(e=F(y,p.x,p.y)),e=e||K(x),x.container&&x.container.focus(),e&&e.highlight&&e.highlight(!1)}getKeyboardNavigationHandler(){let e=this,p=this.keyCodes,x=this.chart,y=x.inverted;return new E(x,{keyCodeMap:[[y?[p.up,p.down]:[p.left,p.right],function(p){return e.onKbdSideways(this,p)}],[y?[p.left,p.right]:[p.up,p.down],function(p){return e.onKbdVertical(this,p)}],[[p.enter,p.space],function(e,p){let y=x.highlightedPoint;if(y){let{plotLeft:e,plotTop:x}=this.chart,{plotX:b=0,plotY:E=0}=y;p={...p,chartX:e+b,chartY:x+E,point:y,target:y.graphic?.element||p.target},z(y.series,"click",p),y.firePointEvent("click",p)}return this.response.success}],[[p.home],function(){return _(x),this.response.success}],[[p.end],function(){return $(x),this.response.success}],[[p.pageDown,p.pageUp],function(e){return x.highlightAdjacentSeries(e===p.pageDown),this.response.success}]],init:function(){return e.onHandlerInit(this)},validate:function(){return!!K(x)},terminate:function(){return e.onHandlerTerminate()}})}onKbdSideways(e,p){let x=this.keyCodes,y=p===x.right||p===x.down;return this.attemptHighlightAdjacentPoint(e,y)}onHandlerInit(e){let p=this.chart;return p.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&p.highlightedPoint?p.highlightedPoint.highlight():_(p),e.response.success}onKbdVertical(e,p){let x=this.chart,y=this.keyCodes,b=p===y.down||p===y.right,E=x.options.accessibility.keyboardNavigation.seriesNavigation;if(E.mode&&"serialize"===E.mode)return this.attemptHighlightAdjacentPoint(e,b);let O=x.highlightedPoint&&x.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries";return x[O](b),e.response.success}onHandlerTerminate(){let e=this.chart,p=e.options.accessibility.keyboardNavigation;e.tooltip&&e.tooltip.hide(0);let x=e.highlightedPoint&&e.highlightedPoint.series;x&&x.onMouseOut&&x.onMouseOut(),e.highlightedPoint&&e.highlightedPoint.onMouseOut&&e.highlightedPoint.onMouseOut(),p.seriesNavigation.rememberPointFocus||delete e.highlightedPoint}attemptHighlightAdjacentPoint(e,p){let x=this.chart,y=x.options.accessibility.keyboardNavigation.wrapAround;return x.highlightAdjacentPoint(p)?e.response.success:y&&(p?_(x):$(x))?e.response.success:e.response[p?"next":"prev"]}onSeriesDestroy(e){let p=this.chart;p.highlightedPoint&&p.highlightedPoint.series===e&&(delete p.highlightedPoint,p.focusElement&&p.focusElement.removeFocusBorder())}destroy(){this.eventProvider.removeAddedEvents()}};return function(e){function p(e){let p,x;let y=this.series,b=this.highlightedPoint,E=b&&Y(b)||0,O=b&&b.series.points||[],L=this.series&&this.series[this.series.length-1],D=L&&L.points&&L.points[L.points.length-1];if(!y[0]||!y[0].points)return!1;if(b){if(p=y[b.series.index+(e?1:-1)],(x=O[E+(e?1:-1)])||!p||(x=p.points[e?0:p.points.length-1]),!x)return!1}else x=e?y[0].points[0]:D;return q(x)?(V(p=x.series)?this.highlightedPoint=e?p.points[p.points.length-1]:p.points[0]:this.highlightedPoint=x,this.highlightAdjacentPoint(e)):x.highlight()}function x(e){let p=this.highlightedPoint,x=1/0,y;return!!(R(p.plotX)&&R(p.plotY))&&(this.series.forEach(b=>{V(b)||b.points.forEach(E=>{if(!R(E.plotY)||!R(E.plotX)||E===p)return;let O=E.plotY-p.plotY,L=Math.abs(E.plotX-p.plotX),D=Math.abs(O)*Math.abs(O)+L*L*4;b.yAxis&&b.yAxis.reversed&&(O*=-1),!(O<=0&&e||O>=0&&!e||D<5||q(E))&&D!(R(e.plotX)&&R(e.plotY));if(!j(e)){for(;D--;)!j(E=p.points[D])&&(L=(e.plotX-E.plotX)*(e.plotX-E.plotX)*4+(e.plotY-E.plotY)*(e.plotY-E.plotY)*1)=0;--e)if(!q(x[e]))return x[e].highlight()}return!1}e.compose=function(e,O,L){let j=e.prototype,R=O.prototype,z=L.prototype;j.highlightAdjacentPoint||(j.highlightAdjacentPoint=p,j.highlightAdjacentPointVertical=x,j.highlightAdjacentSeries=y,R.highlight=b,z.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(e=>{D[e]&&(D[e].prototype.keyboardMoveVertical=!1)}),z.highlightNextValidPoint=E)}}(A||(A={})),A}),x(p,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[p["Accessibility/AccessibilityComponent.js"],p["Accessibility/Utils/ChartUtilities.js"],p["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],p["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],p["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],p["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"]],function(e,p,x,y,b,E){let{hideSeriesFromAT:O}=p,{describeSeries:L}=b;return class extends e{static compose(e,p,b){y.compose(b),x.compose(b),E.compose(e,p,b)}init(){this.newDataAnnouncer=new y(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new E(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()}hideTooltipFromATWhenShown(){let e=this;this.chart.tooltip&&this.addEvent(this.chart.tooltip.constructor,"refresh",function(){this.chart===e.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})}hideSeriesLabelsFromATWhenShown(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(e){e.labelBySeries&&e.labelBySeries.attr("aria-hidden",!0)})})}onChartRender(){this.chart.series.forEach(function(e){!1!==(e.options.accessibility&&e.options.accessibility.enabled)&&e.visible&&0!==e.getPointsCollection().length?L(e):O(e)})}getKeyboardNavigation(){return this.keyboardNavigation.getKeyboardNavigationHandler()}destroy(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()}}}),x(p,"Accessibility/Components/ZoomComponent.js",[p["Accessibility/AccessibilityComponent.js"],p["Accessibility/Utils/ChartUtilities.js"],p["Accessibility/Utils/HTMLUtilities.js"],p["Accessibility/KeyboardNavigationHandler.js"],p["Core/Utilities.js"]],function(e,p,x,y,b){let{unhideChartElementFromAT:E}=p,{getFakeMouseEvent:O}=x,{attr:L,pick:D}=b;return class extends e{constructor(){super(...arguments),this.focusedMapNavButtonIx=-1}init(){let e=this,p=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(x=>{e.addEvent(p,x,function(){e.updateProxyOverlays()})})}onChartUpdate(){let e=this.chart,p=this;e.mapNavigation&&e.mapNavigation.navButtons.forEach((x,y)=>{E(e,x.element),p.setMapNavButtonAttrs(x.element,"accessibility.zoom.mapZoom"+(y?"Out":"In"))})}setMapNavButtonAttrs(e,p){let x=this.chart;L(e,{tabindex:-1,role:"button","aria-label":x.langFormat(p,{chart:x})})}onChartRender(){this.updateProxyOverlays()}updateProxyOverlays(){let e=this.chart;if(this.proxyProvider.clearGroup("zoom"),e.resetZoomButton&&this.createZoomProxyButton(e.resetZoomButton,"resetZoomProxyButton",e.langFormat("accessibility.zoom.resetZoomButton",{chart:e})),e.drillUpButton&&e.breadcrumbs&&e.breadcrumbs.list){let p=e.breadcrumbs.list[e.breadcrumbs.list.length-1];this.createZoomProxyButton(e.drillUpButton,"drillUpProxyButton",e.langFormat("accessibility.drillUpButton",{chart:e,buttonText:e.breadcrumbs.getButtonText(p)}))}}createZoomProxyButton(e,p,x){this[p]=this.proxyProvider.addProxyElement("zoom",{click:e},"button",{"aria-label":x,tabindex:-1})}getMapZoomNavigation(){let e=this.keyCodes,p=this.chart,x=this;return new y(p,{keyCodeMap:[[[e.up,e.down,e.left,e.right],function(e){return x.onMapKbdArrow(this,e)}],[[e.tab],function(e,p){return x.onMapKbdTab(this,p)}],[[e.space,e.enter],function(){return x.onMapKbdClick(this)}]],validate:function(){return!!(p.mapView&&p.mapNavigation&&p.mapNavigation.navButtons.length)},init:function(e){return x.onMapNavInit(e)}})}onMapKbdArrow(e,p){let x=this.chart,y=this.keyCodes,b=x.container,E=p===y.up||p===y.down,L=p===y.left||p===y.up?1:-1,D=(E?x.plotHeight:x.plotWidth)/10*L,j=10*Math.random(),R={x:b.offsetLeft+x.plotLeft+x.plotWidth/2+j,y:b.offsetTop+x.plotTop+x.plotHeight/2+j},z=E?{x:R.x,y:R.y+D}:{x:R.x+D,y:R.y};return[O("mousedown",R),O("mousemove",z),O("mouseup",z)].forEach(e=>b.dispatchEvent(e)),e.response.success}onMapKbdTab(e,p){let x=this.chart,y=e.response,b=p.shiftKey,E=b&&!this.focusedMapNavButtonIx||!b&&this.focusedMapNavButtonIx;if(x.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),E)return x.mapView&&x.mapView.zoomBy(),y[b?"prev":"next"];this.focusedMapNavButtonIx+=b?-1:1;let O=x.mapNavigation.navButtons[this.focusedMapNavButtonIx];return x.setFocusToElement(O.box,O.element),O.setState(2),y.success}onMapKbdClick(e){let p=this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element;return this.fakeClickEvent(p),e.response.success}onMapNavInit(e){let p=this.chart,x=p.mapNavigation.navButtons[0],y=p.mapNavigation.navButtons[1],b=e>0?x:y;p.setFocusToElement(b.box,b.element),b.setState(2),this.focusedMapNavButtonIx=e>0?0:1}simpleButtonNavigation(e,p,x){let b=this.keyCodes,E=this,O=this.chart;return new y(O,{keyCodeMap:[[[b.tab,b.up,b.down,b.left,b.right],function(e,p){let x=e===b.tab&&p.shiftKey||e===b.left||e===b.up;return this.response[x?"prev":"next"]}],[[b.space,b.enter],function(){return D(x(this,O),this.response.success)}]],validate:function(){return O[e]&&O[e].box&&E[p].innerElement},init:function(){O.setFocusToElement(O[e].box,E[p].innerElement)}})}getKeyboardNavigation(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(e,p){p.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(e,p){return p.drillUp(),e.response.prev}),this.getMapZoomNavigation()]}}}),x(p,"Accessibility/HighContrastMode.js",[p["Core/Globals.js"]],function(e){let{doc:p,isMS:x,win:y}=e;return{isHighContrastModeActive:function(){let e=/(Edg)/.test(y.navigator.userAgent);if(y.matchMedia&&e)return y.matchMedia("(-ms-high-contrast: active)").matches;if(x&&y.getComputedStyle){let e=p.createElement("div");e.style.backgroundImage="url(data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)",p.body.appendChild(e);let x=(e.currentStyle||y.getComputedStyle(e)).backgroundImage;return p.body.removeChild(e),"none"===x}return y.matchMedia&&y.matchMedia("(forced-colors: active)").matches},setHighContrastTheme:function(e){e.highContrastModeActive=!0;let p=e.options.accessibility.highContrastTheme;e.update(p,!1);let x=p.colors?.length>1;e.series.forEach(function(e){let y=p.plotOptions[e.type]||{},b=x&&void 0!==e.colorIndex?p.colors[e.colorIndex]:y.color||"window",E={color:y.color||"windowText",colors:x?p.colors:[y.color||"windowText"],borderColor:y.borderColor||"window",fillColor:b};e.update(E,!1),e.points&&e.points.forEach(function(e){e.options&&e.options.color&&e.update({color:y.color||"windowText",borderColor:y.borderColor||"window"},!1)})}),e.redraw()}}}),x(p,"Accessibility/HighContrastTheme.js",[],function(){return{chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[],dataClasses:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",borderColor:"windowText",style:{color:"windowText"}},plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroundColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}}}),x(p,"Accessibility/Options/A11yDefaults.js",[],function(){return{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<{headingTagName}>{chartTitle}
    {typeDescription}
    {chartSubtitle}
    {chartLongdesc}
    {playAsSoundButton}
    {viewTableButton}
    {xAxisDescription}
    {yAxisDescription}
    {annotationsTitle}{annotationsList}
    ",afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{descriptionFormat:"{seriesDescription}{authorDescription}{axisDescription}",describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{xDescription}{separator}{value}.",describeNull:!0},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',highContrastMode:"auto",keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#334eff",lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","navigator","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5e3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}},navigator:{accessibility:{enabled:!0}}}}),x(p,"Accessibility/Options/LangDefaults.js",[],function(){return{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{#each additionalAnnotationPoints}, also related to {this}{/each}",descriptionNoPoints:"{annotationText}"},endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},navigator:{handleLabel:"{#eq handleIx 0}Start, percent{else}End, percent{/eq}",groupLabel:"Axis zoom",changeAnnouncement:"{axisRangeDescription}"},table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.",defaultSingle:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",columnMultiple:"Bar chart with {numSeries} data series.",barSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#eq numPoints 1}box{else}boxes{/eq}.",boxplotMultiple:"Boxplot with {numSeries} data series.",bubbleSingle:"Bubble chart with {numPoints} {#eq numPoints 1}bubbles{else}bubble{/eq}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",timeRangeDays:"Data range: {range} days.",timeRangeHours:"Data range: {range} hours.",timeRangeMinutes:"Data range: {range} minutes.",timeRangeSeconds:"Data range: {range} seconds.",rangeFromTo:"Data ranges from {rangeFrom} to {rangeTo}.",rangeCategories:"Data range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{default:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",defaultCombination:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",line:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",lineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",spline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",splineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",column:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",columnCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",bar:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",barCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",pie:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",pieCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",scatter:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",scatterCombination:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",boxplot:"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",boxplotCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",bubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",bubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",map:"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",maplineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",mapbubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",mapbubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}."},description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{#each annotations}Annotation: {this}{/each}"}}}}),x(p,"Accessibility/Options/DeprecatedOptions.js",[p["Core/Utilities.js"]],function(e){let{error:p,pick:x}=e;function y(e,p,y){let b=e,E,O=0;for(;O"series"!==e)):Object.keys(this.components):[]}update(){let e=this.components,p=this.chart,x=p.options.accessibility;ts(p,"beforeA11yUpdate"),p.types=this.getChartTypes();let y=x.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(y),this.getComponentOrder().forEach(function(x){e[x].onChartUpdate(),ts(p,"afterA11yComponentUpdate",{name:x,component:e[x]})}),this.keyboardNavigation.update(y),!p.highContrastModeActive&&!1!==x.highContrastMode&&(q.isHighContrastModeActive()||!0===x.highContrastMode)&&q.setHighContrastTheme(p),ts(p,"afterA11yUpdate",{accessibility:this})}destroy(){let e=this.chart||{},p=this.components;Object.keys(p).forEach(function(e){p[e].destroy(),p[e].destroyBase()}),this.proxyProvider&&this.proxyProvider.destroy(),e.announcerContainer&&tr(e.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),e.renderTo&&e.renderTo.setAttribute("aria-hidden",!0),e.focusElement&&e.focusElement.removeFocusBorder()}getChartTypes(){let e={};return this.chart.series.forEach(function(p){e[p.type]=1}),Object.keys(e)}};return function(e){function p(){this.accessibility&&this.accessibility.destroy()}function x(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());let e=this.accessibility;e&&!e.zombie&&(e.proxyProvider.updateProxyElementPositions(),e.getComponentOrder().forEach(function(p){e.components[p].onChartRender()}))}function y(e){let p=e.options.accessibility;p&&(p.customComponents&&(this.options.accessibility.customComponents=p.customComponents,delete p.customComponents),to(!0,this.options.accessibility,p),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function E(){let p=this.accessibility,x=this.options.accessibility;x&&x.enabled?p&&!p.zombie?p.update():(this.accessibility=p=new e(this),p&&!p.zombie&&p.update()):p?(p.destroy&&p.destroy(),delete this.accessibility):this.renderTo.setAttribute("aria-hidden",!0)}function L(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}e.i18nFormat=b.i18nFormat,e.compose=function(e,z,H,V,q,K){D.compose(e),F.compose(V),j.compose(e,z),R.compose(e),Y.compose(e,H,V),b.compose(e),O.compose(e,q),K&&U.compose(e,K);let $=e.prototype;$.updateA11yEnabled||($.updateA11yEnabled=E,te(e,"destroy",p),te(e,"render",x),te(e,"update",y),["addSeries","init"].forEach(p=>{te(e,p,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(p=>{te(e,p,function(){let e=this.accessibility;e&&!e.zombie&&e.update()})}),te(H,"update",L),["update","updatedData","remove"].forEach(e=>{te(V,e,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}}(P||(P={})),to(!0,J,$,{accessibility:{highContrastTheme:K},lang:_}),P}),x(p,"masters/modules/accessibility.src.js",[p["Core/Globals.js"],p["Accessibility/Accessibility.js"],p["Accessibility/AccessibilityComponent.js"],p["Accessibility/Utils/ChartUtilities.js"],p["Accessibility/Utils/HTMLUtilities.js"],p["Accessibility/KeyboardNavigationHandler.js"],p["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(e,p,x,y,b,E,O){return e.i18nFormat=p.i18nFormat,e.A11yChartUtilities=y,e.A11yHTMLUtilities=b,e.AccessibilityComponent=x,e.KeyboardNavigationHandler=E,e.SeriesAccessibilityDescriber=O,p.compose(e.Chart,e.Legend,e.Point,e.Series,e.SVGElement,e.RangeSelector),e})})},20535:(e,p,x)=>{var y;!function(b){e.exports?(b.default=b,e.exports=b):void 0!==(y=(function(e){return b(e),b.Highcharts=e,b}).apply(p,[x(14783),x(9264)]))&&(e.exports=y)}(function(e){"use strict";var p=e?e._modules:{};function x(e,p,x,y){e.hasOwnProperty(p)||(e[p]=y.apply(null,x),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:p,module:e[p]}})))}x(p,"Extensions/DownloadURL.js",[p["Core/Globals.js"]],function(e){let{isSafari:p,win:x,win:{document:y}}=e,b=x.URL||x.webkitURL||x;function E(e){let p=e.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([0-9A-Za-z+/]+)/);if(p&&p.length>3&&x.atob&&x.ArrayBuffer&&x.Uint8Array&&x.Blob&&b.createObjectURL){let e=x.atob(p[3]),y=new x.ArrayBuffer(e.length),E=new x.Uint8Array(y);for(let p=0;p1e3)throw Error("Input too long");let D=/Edge\/\d+/.test(O.userAgent);if((p&&"string"==typeof e&&0===e.indexOf("data:application/pdf")||D||e.length>2e6)&&!(e=E(e)||""))throw Error("Failed to convert to blob");if(void 0!==L.download)L.href=e,L.download=b,y.body.appendChild(L),L.click(),y.body.removeChild(L);else try{if(!x.open(e,"chart"))throw Error("Failed to open window")}catch{x.location.href=e}}}}),x(p,"Extensions/ExportData/ExportDataDefaults.js",[],function(){return{exporting:{csv:{annotations:{itemDelimiter:"; ",join:!1},columnHeaderFormatter:null,dateFormat:"%Y-%m-%d %H:%M:%S",decimalPoint:null,itemDelimiter:null,lineDelimiter:"\n"},showTable:!1,useMultiLevelHeaders:!0,useRowspanHeaders:!0,showExportInProgress:!0},lang:{downloadCSV:"Download CSV",downloadXLS:"Download XLS",exportData:{annotationHeader:"Annotations",categoryHeader:"Category",categoryDatetimeHeader:"DateTime"},viewData:"View data table",hideData:"Hide data table",exportInProgress:"Exporting..."}}}),x(p,"Extensions/ExportData/ExportData.js",[p["Core/Renderer/HTML/AST.js"],p["Core/Defaults.js"],p["Extensions/DownloadURL.js"],p["Extensions/ExportData/ExportDataDefaults.js"],p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E){let{getOptions:O,setOptions:L}=p,{downloadURL:D}=x,{doc:j,win:R}=b,{addEvent:z,defined:F,extend:H,find:U,fireEvent:Y,isNumber:V,pick:q}=E;function K(e){let p=!!this.options.exporting?.showExportInProgress,x=R.requestAnimationFrame||setTimeout;x(()=>{p&&this.showLoading(this.options.lang.exportInProgress),x(()=>{try{e.call(this)}finally{p&&this.hideLoading()}})})}function $(){K.call(this,()=>{let e=this.getCSV(!0);D(tr(e,"text/csv")||"data:text/csv,\uFEFF"+encodeURIComponent(e),this.getFilename()+".csv")})}function _(){K.call(this,()=>{let e='\x3c!--[if gte mso 9]>Ark1td{border:none;font-family: Calibri, sans-serif;} .number{mso-number-format:"0.00";} .text{ mso-number-format:"@";}'+this.getTable(!0)+"";D(tr(e,"application/vnd.ms-excel")||"data:application/vnd.ms-excel;base64,"+R.btoa(unescape(encodeURIComponent(e))),this.getFilename()+".xls")})}function Z(e){let p="",x=this.getDataRows(),y=this.options.exporting.csv,b=q(y.decimalPoint,","!==y.itemDelimiter&&e?1.1.toLocaleString()[1]:"."),E=q(y.itemDelimiter,","===b?";":","),O=y.lineDelimiter;return x.forEach((e,y)=>{let L="",D=e.length;for(;D--;)"string"==typeof(L=e[D])&&(L=`"${L}"`),"number"==typeof L&&"."!==b&&(L=L.toString().replace(".",b)),e[D]=L;e.length=x.length?x[0].length:0,p+=e.join(E),y1?x:p.name,topLevelColumnTitle:p.name}:p.name+(y>1?" ("+x+")":""):p.options.title&&p.options.title.text||(p.dateTime?K:H):H},_=function(e,p,x){let y={},b={};return p.forEach(function(p){let E=(e.keyToAxis&&e.keyToAxis[p]||p)+"Axis",O=V(x)?e.chart[E][x]:e[E];y[p]=O&&O.categories||[],b[p]=O&&O.dateTime}),{categoryMap:y,dateTimeValueAxisMap:b}},Z=function(e,p){let x=e.pointArrayMap||["y"];return e.data.some(e=>void 0!==e.y&&e.name)&&p&&!p.categories&&"name"!==e.exportKey?["x",...x]:x},J=[],tt,te,ti,ts=0,to,tr;for(to in this.series.forEach(function(p){let x=p.options.keys,D=p.xAxis,z=x||Z(p,D),F=z.length,H=!p.requireSorting&&{},Y=O.indexOf(D),V=_(p,z),K,tt;if(!1!==p.options.includeInDataExport&&!p.options.isInternal&&!1!==p.visible){for(U(J,function(e){return e[0]===Y})||J.push([Y,ts]),tt=0;tt{if(!e.tagName||"#text"===e.tagName)return e.textContent||"";let x=e.attributes,y=`<${e.tagName}`;return x&&Object.keys(x).forEach(e=>{let p=x[e];y+=` ${e}="${p}"`}),y+=">"+(e.textContent||""),(e.children||[]).forEach(e=>{y+=p(e)}),y+=``};return p(this.getTableAST(e))}function te(e){let p=0,x=[],y=this.options,b=e?1.1.toLocaleString()[1]:".",E=q(y.exporting.useMultiLevelHeaders,!0),O=this.getDataRows(E),L=E?O.shift():null,D=O.shift(),j=function(e,p){let x=e.length;if(p.length!==x)return!1;for(;x--;)if(e[x]!==p[x])return!1;return!0},R=function(e,p,x,y){let E=q(y,""),O="highcharts-text"+(p?" "+p:"");return"number"==typeof E?(E=E.toString(),","===b&&(E=E.replace(".",b)),O="highcharts-number"):y||(O="highcharts-empty"),{tagName:e,attributes:x=H({class:O},x),textContent:E}};!1!==y.exporting.tableCaption&&x.push({tagName:"caption",attributes:{class:"highcharts-table-caption"},textContent:q(y.exporting.tableCaption,y.title.text?y.title.text:"Chart")});for(let e=0,x=O.length;ep&&(p=O[e].length);x.push(function(e,p,x){let b=[],O=0,L=x||p&&p.length,D,z=0,F;if(E&&e&&p&&!j(e,p)){let x=[];for(;O1&&e.attributes&&(e.attributes.valign="top",e.attributes.rowspan=F),x.push(e)}b.push({tagName:"tr",children:x})}if(p){let e=[];for(O=0,L=p.length;Oe.children[p].textContent,y=(e,p)=>(y,b)=>{let E,O;return E=x(p?y:b,e),O=x(p?b:y,e),""===E||""===O||isNaN(E)||isNaN(O)?E.toString().localeCompare(O):E-O};if(p&&e.options.exporting&&e.options.exporting.allowTableSorting){let x=p.querySelector("thead tr");x&&x.childNodes.forEach(x=>{let b=x.closest("table");x.addEventListener("click",function(){let E=[...p.querySelectorAll("tr:not(thead tr)")],O=[...x.parentNode.children];E.sort(y(O.indexOf(x),e.ascendingOrderInTable=!e.ascendingOrderInTable)).forEach(e=>{b.appendChild(e)}),O.forEach(e=>{["highcharts-sort-ascending","highcharts-sort-descending"].forEach(p=>{e.classList.contains(p)&&e.classList.remove(p)})}),x.classList.add(e.ascendingOrderInTable?"highcharts-sort-ascending":"highcharts-sort-descending")})})}}function ta(){this.options&&this.options.exporting&&this.options.exporting.showTable&&!this.options.chart.forExport&&this.viewData()}function tl(){this.dataTableDiv?.remove()}return{compose:function(e,p){let x=e.prototype;if(!x.getCSV){let b=O().exporting;z(e,"afterViewData",tn),z(e,"render",ta),z(e,"destroy",tl),x.downloadCSV=$,x.downloadXLS=_,x.getCSV=Z,x.getDataRows=J,x.getTable=tt,x.getTableAST=te,x.hideData=ti,x.toggleDataTable=ts,x.viewData=to,b&&(H(b.menuItemDefinitions,{downloadCSV:{textKey:"downloadCSV",onclick:function(){this.downloadCSV()}},downloadXLS:{textKey:"downloadXLS",onclick:function(){this.downloadXLS()}},viewData:{textKey:"viewData",onclick:function(){K.call(this,this.toggleDataTable)}}}),b.buttons&&b.buttons.contextButton.menuItems&&b.buttons.contextButton.menuItems.push("separator","downloadCSV","downloadXLS","viewData")),L(y);let{arearange:E,gantt:D,map:j,mapbubble:R,treemap:F,xrange:U}=p.types;E&&(E.prototype.keyToAxis={low:"y",high:"y"}),D&&(D.prototype.exportKey="name",D.prototype.keyToAxis={start:"x",end:"x"}),j&&(j.prototype.exportKey="name"),R&&(R.prototype.exportKey="name"),F&&(F.prototype.exportKey="name"),U&&(U.prototype.keyToAxis={x2:"x"})}}}}),x(p,"masters/modules/export-data.src.js",[p["Core/Globals.js"],p["Extensions/DownloadURL.js"],p["Extensions/ExportData/ExportData.js"]],function(e,p,x){return e.dataURLtoBlob=e.dataURLtoBlob||p.dataURLtoBlob,e.downloadURL=e.downloadURL||p.downloadURL,x.compose(e.Chart,e.Series),e})})},9264:(e,p,x)=>{var y;!function(b){e.exports?(b.default=b,e.exports=b):void 0!==(y=(function(e){return b(e),b.Highcharts=e,b}).apply(p,[x(14783)]))&&(e.exports=y)}(function(e){"use strict";var p=e?e._modules:{};function x(e,p,x,y){e.hasOwnProperty(p)||(e[p]=y.apply(null,x),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:p,module:e[p]}})))}x(p,"Core/Chart/ChartNavigationComposition.js",[],function(){var e;return function(e){e.compose=function(e){return e.navigation||(e.navigation=new t(e)),e};let t=class t{constructor(e){this.updates=[],this.chart=e}addUpdate(e){this.chart.navigation.updates.push(e)}update(e,p){this.updates.forEach(x=>{x.call(this.chart,e,p)})}};e.Additions=t}(e||(e={})),e}),x(p,"Extensions/Exporting/ExportingDefaults.js",[p["Core/Globals.js"]],function(e){let{isTouchDevice:p}=e;return{exporting:{allowTableSorting:!0,type:"image/png",url:"https://export.highcharts.com/",pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:["viewFullscreen","printChart","separator","downloadPNG","downloadJPEG","downloadPDF","downloadSVG"]}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){this.fullscreen&&this.fullscreen.toggle()}},printChart:{textKey:"printChart",onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}}},lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:14.5,symbolY:13.5,align:"right",buttonSpacing:3,height:28,verticalAlign:"top",width:28,symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",padding:5,stroke:"none","stroke-linecap":"round"}},menuStyle:{border:"none",borderRadius:"3px",background:"#ffffff",padding:"0.5em"},menuItemStyle:{background:"none",borderRadius:"3px",color:"#333333",padding:"0.5em",fontSize:p?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#f2f2f2"}}}}),x(p,"Extensions/Exporting/ExportingSymbols.js",[],function(){var e;return function(e){let p=[];function x(e,p,x,y){return[["M",e,p+2.5],["L",e+x,p+2.5],["M",e,p+y/2+.5],["L",e+x,p+y/2+.5],["M",e,p+y-1.5],["L",e+x,p+y-1.5]]}function y(e,p,x,y){let b=y/3-2;return[].concat(this.circle(x-b,p,b,b),this.circle(x-b,p+b+4,b,b),this.circle(x-b,p+2*(b+4),b,b))}e.compose=function(e){if(-1===p.indexOf(e)){p.push(e);let b=e.prototype.symbols;b.menu=x,b.menuball=y.bind(b)}}}(e||(e={})),e}),x(p,"Extensions/Exporting/Fullscreen.js",[p["Core/Renderer/HTML/AST.js"],p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p,x){let{composed:y}=p,{addEvent:b,fireEvent:E,pushUnique:O}=x;function L(){this.fullscreen=new a(this)}let a=class a{static compose(e){O(y,"Fullscreen")&&b(e,"beforeRender",L)}constructor(e){this.chart=e,this.isOpen=!1;let p=e.renderTo;!this.browserProps&&("function"==typeof p.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:p.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:p.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:p.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}close(){let e=this,p=e.chart,x=p.options.chart;E(p,"fullscreenClose",null,function(){e.isOpen&&e.browserProps&&p.container.ownerDocument instanceof Document&&p.container.ownerDocument[e.browserProps.exitFullscreen](),e.unbindFullscreenEvent&&(e.unbindFullscreenEvent=e.unbindFullscreenEvent()),p.setSize(e.origWidth,e.origHeight,!1),e.origWidth=void 0,e.origHeight=void 0,x.width=e.origWidthOption,x.height=e.origHeightOption,e.origWidthOption=void 0,e.origHeightOption=void 0,e.isOpen=!1,e.setButtonText()})}open(){let e=this,p=e.chart,x=p.options.chart;E(p,"fullscreenOpen",null,function(){if(x&&(e.origWidthOption=x.width,e.origHeightOption=x.height),e.origWidth=p.chartWidth,e.origHeight=p.chartHeight,e.browserProps){let x=b(p.container.ownerDocument,e.browserProps.fullscreenChange,function(){e.isOpen?(e.isOpen=!1,e.close()):(p.setSize(null,null,!1),e.isOpen=!0,e.setButtonText())}),y=b(p,"destroy",x);e.unbindFullscreenEvent=()=>{x(),y()};let E=p.renderTo[e.browserProps.requestFullscreen]();E&&E.catch(function(){alert("Full screen is not supported inside a frame.")})}})}setButtonText(){let p=this.chart,x=p.exportDivElements,y=p.options.exporting,b=y&&y.buttons&&y.buttons.contextButton.menuItems,E=p.options.lang;if(y&&y.menuItemDefinitions&&E&&E.exitFullscreen&&E.viewFullscreen&&b&&x){let p=x[b.indexOf("viewFullscreen")];p&&e.setElementHTML(p,this.isOpen?E.exitFullscreen:y.menuItemDefinitions.viewFullscreen.text||E.viewFullscreen)}}toggle(){this.isOpen?this.close():this.open()}};return a}),x(p,"Core/HttpUtilities.js",[p["Core/Globals.js"],p["Core/Utilities.js"]],function(e,p){let{win:x}=e,{discardElement:y,objectEach:b}=p,E={ajax:function(e){let p={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},x=new XMLHttpRequest;function y(p,x){e.error&&e.error(p,x)}if(!e.url)return!1;x.open((e.type||"get").toUpperCase(),e.url,!0),e.headers&&e.headers["Content-Type"]||x.setRequestHeader("Content-Type",p[e.dataType||"json"]||p.text),b(e.headers,function(e,p){x.setRequestHeader(p,e)}),e.responseType&&(x.responseType=e.responseType),x.onreadystatechange=function(){let p;if(4===x.readyState){if(200===x.status){if("blob"!==e.responseType&&(p=x.responseText,"json"===e.dataType))try{p=JSON.parse(p)}catch(e){if(e instanceof Error)return y(x,e)}return e.success&&e.success(p,x)}y(x,x.responseText)}},e.data&&"string"!=typeof e.data&&(e.data=JSON.stringify(e.data)),x.send(e.data)},getJSON:function(e,p){E.ajax({url:e,success:p,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(e,p,E){let O=new x.FormData;b(p,function(e,p){O.append(p,e)}),O.append("b64","true");let{filename:L,type:D}=p;return x.fetch(e,{method:"POST",body:O,...E}).then(e=>{e.ok&&e.text().then(e=>{let p=document.createElement("a");p.href=`data:${D};base64,${e}`,p.download=L,p.click(),y(p)})})}};return E}),x(p,"Extensions/Exporting/Exporting.js",[p["Core/Renderer/HTML/AST.js"],p["Core/Chart/Chart.js"],p["Core/Chart/ChartNavigationComposition.js"],p["Core/Defaults.js"],p["Extensions/Exporting/ExportingDefaults.js"],p["Extensions/Exporting/ExportingSymbols.js"],p["Extensions/Exporting/Fullscreen.js"],p["Core/Globals.js"],p["Core/HttpUtilities.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E,O,L,D,j){var R;let{defaultOptions:z}=y,{doc:F,SVG_NS:H,win:U}=L,{addEvent:Y,css:V,createElement:q,discardElement:K,extend:$,find:_,fireEvent:Z,isObject:J,merge:tt,objectEach:te,pick:ti,removeEvent:ts,uniqueKey:to}=j;return function(p){let y;let R=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^[0-9]+$/],tr=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"];p.inlineAllowlist=[];let tn=["clipPath","defs","desc"];function ta(e){let p,x;let y=this,b=y.renderer,E=tt(y.options.navigation.buttonOptions,e),O=E.onclick,L=E.menuItems,D=E.symbolSize||12;if(y.btnCount||(y.btnCount=0),y.exportDivElements||(y.exportDivElements=[],y.exportSVGElements=[]),!1===E.enabled||!E.theme)return;let j=y.styledMode?{}:E.theme;O?x=function(e){e&&e.stopPropagation(),O.call(y,e)}:L&&(x=function(e){e&&e.stopPropagation(),y.contextMenu(R.menuClassName,L,R.translateX||0,R.translateY||0,R.width||0,R.height||0,R),R.setState(2)}),E.text&&E.symbol?j.paddingLeft=ti(j.paddingLeft,30):E.text||$(j,{width:E.width,height:E.height,padding:0});let R=b.button(E.text,0,0,x,j,void 0,void 0,void 0,void 0,E.useHTML).addClass(e.className).attr({title:ti(y.options.lang[E._titleKey||E.titleKey],"")});R.menuClassName=e.menuClassName||"highcharts-menu-"+y.btnCount++,E.symbol&&(p=b.symbol(E.symbol,Math.round((E.symbolX||0)-D/2),Math.round((E.symbolY||0)-D/2),D,D,{width:D,height:D}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(R),y.styledMode||p.attr({stroke:E.symbolStroke,fill:E.symbolFill,"stroke-width":E.symbolStrokeWidth||1})),R.add(y.exportingGroup).align($(E,{width:R.width,x:ti(E.x,y.buttonOffset)}),!0,"spacingBox"),y.buttonOffset+=((R.width||0)+E.buttonSpacing)*("right"===E.align?-1:1),y.exportSVGElements.push(R,p)}function tl(){if(!this.printReverseInfo)return;let{childNodes:e,origDisplay:p,resetParams:x}=this.printReverseInfo;this.moveContainers(this.renderTo),[].forEach.call(e,function(e,x){1===e.nodeType&&(e.style.display=p[x]||"")}),this.isPrinting=!1,x&&this.setSize.apply(this,x),delete this.printReverseInfo,y=void 0,Z(this,"afterPrint")}function th(){let e=F.body,p=this.options.exporting.printMaxWidth,x={childNodes:e.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,this.pointer?.reset(void 0,0),Z(this,"beforePrint"),p&&this.chartWidth>p&&(x.resetParams=[this.options.chart.width,void 0,!1],this.setSize(p,void 0,!1)),[].forEach.call(x.childNodes,function(e,p){1===e.nodeType&&(x.origDisplay[p]=e.style.display,e.style.display="none")}),this.moveContainers(e),this.printReverseInfo=x}function td(e){e.renderExporting(),Y(e,"redraw",e.renderExporting),Y(e,"destroy",e.destroyExport)}function tc(p,x,y,b,E,O,L){let D=this,R=D.options.navigation,z=D.chartWidth,H=D.chartHeight,K="cache-"+p,_=Math.max(E,O),tt,te=D[K];te||(D.exportContextMenu=D[K]=te=q("div",{className:p},{position:"absolute",zIndex:1e3,padding:_+"px",pointerEvents:"auto",...D.renderer.style},D.scrollablePlotArea?.fixedDiv||D.container),tt=q("ul",{className:"highcharts-menu"},D.styledMode?{}:{listStyle:"none",margin:0,padding:0},te),D.styledMode||V(tt,$({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},R.menuStyle)),te.hideMenu=function(){V(te,{display:"none"}),L&&L.setState(0),D.openMenu=!1,V(D.renderTo,{overflow:"hidden"}),V(D.container,{overflow:"hidden"}),j.clearTimeout(te.hideTimer),Z(D,"exportMenuHidden")},D.exportEvents.push(Y(te,"mouseleave",function(){te.hideTimer=U.setTimeout(te.hideMenu,500)}),Y(te,"mouseenter",function(){j.clearTimeout(te.hideTimer)}),Y(F,"mouseup",function(e){D.pointer?.inClass(e.target,p)||te.hideMenu()}),Y(te,"click",function(){D.openMenu&&te.hideMenu()})),x.forEach(function(p){if("string"==typeof p&&(p=D.options.exporting.menuItemDefinitions[p]),J(p,!0)){let x;p.separator?x=q("hr",void 0,void 0,tt):("viewData"===p.textKey&&D.isDataTableVisible&&(p.textKey="hideData"),x=q("li",{className:"highcharts-menu-item",onclick:function(e){e&&e.stopPropagation(),te.hideMenu(),"string"!=typeof p&&p.onclick&&p.onclick.apply(D,arguments)}},void 0,tt),e.setElementHTML(x,p.text||D.options.lang[p.textKey]),D.styledMode||(x.onmouseover=function(){V(this,R.menuItemHoverStyle)},x.onmouseout=function(){V(this,R.menuItemStyle)},V(x,$({cursor:"pointer"},R.menuItemStyle||{})))),D.exportDivElements.push(x)}}),D.exportDivElements.push(tt,te),D.exportMenuWidth=te.offsetWidth,D.exportMenuHeight=te.offsetHeight);let ti={display:"block"};y+(D.exportMenuWidth||0)>z?ti.right=z-y-E-_+"px":ti.left=y-_+"px",b+O+(D.exportMenuHeight||0)>H&&L.alignOptions?.verticalAlign!=="top"?ti.bottom=H-b-_+"px":ti.top=b+O-_+"px",V(te,ti),V(D.renderTo,{overflow:""}),V(D.container,{overflow:""}),D.openMenu=!0,Z(D,"exportMenuShown")}function tp(e){let p;let x=e?e.target:this,y=x.exportSVGElements,b=x.exportDivElements,E=x.exportEvents;y&&(y.forEach((e,b)=>{e&&(e.onclick=e.ontouchstart=null,x[p="cache-"+e.menuClassName]&&delete x[p],y[b]=e.destroy())}),y.length=0),x.exportingGroup&&(x.exportingGroup.destroy(),delete x.exportingGroup),b&&(b.forEach(function(e,p){e&&(j.clearTimeout(e.hideTimer),ts(e,"mouseleave"),b[p]=e.onmouseout=e.onmouseover=e.ontouchstart=e.onclick=null,K(e))}),b.length=0),E&&(E.forEach(function(e){e()}),E.length=0)}function tu(e,p){let x=this.getSVGForExport(e,p);e=tt(this.options.exporting,e),D.post(e.url,{filename:e.filename?e.filename.replace(/\//g,"-"):this.getFilename(),type:e.type,width:e.width,scale:e.scale,svg:x},e.fetchOptions)}function tg(){return this.styledMode&&this.inlineStyles(),this.container.innerHTML}function tm(){let e=this.userOptions.title&&this.userOptions.title.text,p=this.options.exporting.filename;return p?p.replace(/\//g,"-"):("string"==typeof e&&(p=e.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z0-9\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!p||p.length<5)&&(p="chart"),p)}function tf(e){let p,x,y=tt(this.options,e);y.plotOptions=tt(this.userOptions.plotOptions,e&&e.plotOptions),y.time=tt(this.userOptions.time,e&&e.time);let b=q("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},F.body),E=this.renderTo.style.width,O=this.renderTo.style.height,L=y.exporting.sourceWidth||y.chart.width||/px$/.test(E)&&parseInt(E,10)||(y.isGantt?800:600),D=y.exporting.sourceHeight||y.chart.height||/px$/.test(O)&&parseInt(O,10)||400;$(y.chart,{animation:!1,renderTo:b,forExport:!0,renderer:"SVGRenderer",width:L,height:D}),y.exporting.enabled=!1,delete y.data,y.series=[],this.series.forEach(function(e){(x=tt(e.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:e.visible})).isInternal||y.series.push(x)});let j={};this.axes.forEach(function(e){e.userOptions.internalKey||(e.userOptions.internalKey=to()),e.options.isInternal||(j[e.coll]||(j[e.coll]=!0,y[e.coll]=[]),y[e.coll].push(tt(e.userOptions,{visible:e.visible})))}),y.colorAxis=this.userOptions.colorAxis;let R=new this.constructor(y,this.callback);return e&&["xAxis","yAxis","series"].forEach(function(p){let x={};e[p]&&(x[p]=e[p],R.update(x))}),this.axes.forEach(function(e){let p=_(R.axes,function(p){return p.options.internalKey===e.userOptions.internalKey}),x=e.getExtremes(),y=x.userMin,b=x.userMax;p&&(void 0!==y&&y!==p.min||void 0!==b&&b!==p.max)&&p.setExtremes(y,b,!0,!1)}),p=R.getChartHTML(),Z(this,"getSVG",{chartCopy:R}),p=this.sanitizeSVG(p,y),y=null,R.destroy(),K(b),p}function tx(e,p){let x=this.options.exporting;return this.getSVG(tt({chart:{borderRadius:0}},x.chartOptions,p,{exporting:{sourceWidth:e&&e.sourceWidth||x.sourceWidth,sourceHeight:e&&e.sourceHeight||x.sourceHeight}}))}function ty(){let e;let x=p.inlineAllowlist,y={},b=F.createElement("iframe");V(b,{width:"1px",height:"1px",visibility:"hidden"}),F.body.appendChild(b);let E=b.contentWindow&&b.contentWindow.document;E&&E.body.appendChild(E.createElementNS(H,"svg")),function p(b){let O,D,j,z,F,H;let Y={};if(E&&1===b.nodeType&&-1===tn.indexOf(b.nodeName)){if(O=U.getComputedStyle(b,null),D="svg"===b.nodeName?{}:U.getComputedStyle(b.parentNode,null),!y[b.nodeName]){e=E.getElementsByTagName("svg")[0],j=E.createElementNS(b.namespaceURI,b.nodeName),e.appendChild(j);let p=U.getComputedStyle(j,null),x={};for(let e in p)e.length<1e3&&"string"==typeof p[e]&&!/^[0-9]+$/.test(e)&&(x[e]=p[e]);y[b.nodeName]=x,"text"===b.nodeName&&delete y.text.fill,e.removeChild(j)}for(let e in O)(L.isFirefox||L.isMS||L.isSafari||Object.hasOwnProperty.call(O,e))&&function(e,p){if(z=F=!1,x.length){for(H=x.length;H--&&!F;)F=x[H].test(p);z=!F}for("transform"===p&&"none"===e&&(z=!0),H=R.length;H--&&!z;){if(p.length>1e3)throw Error("Input too long");z=R[H].test(p)||"function"==typeof e}!z&&(D[p]!==e||"svg"===b.nodeName)&&y[b.nodeName][p]!==e&&(tr&&-1===tr.indexOf(p)?Y[p]=e:e&&b.setAttribute(p.replace(/([A-Z])/g,function(e,p){return"-"+p.toLowerCase()}),e))}(O[e],e);if(V(b,Y),"svg"===b.nodeName&&b.setAttribute("stroke-width","1px"),"text"===b.nodeName)return;[].forEach.call(b.children||b.childNodes,p)}}(this.container.querySelector("svg")),e.parentNode.removeChild(e),b.parentNode.removeChild(b)}function tb(e){let{scrollablePlotArea:p}=this;(p?[p.fixedDiv,p.scrollingContainer]:[this.container]).forEach(function(p){e.appendChild(p)})}function tv(){let e=this,p=(p,x,y)=>{e.isDirtyExporting=!0,tt(!0,e.options[p],x),ti(y,!0)&&e.redraw()};e.exporting={update:function(e,x){p("exporting",e,x)}},x.compose(e).navigation.addUpdate((e,x)=>{p("navigation",e,x)})}function tS(){let e=this;e.isPrinting||(y=e,L.isSafari||e.beforePrint(),setTimeout(()=>{U.focus(),U.print(),L.isSafari||setTimeout(()=>{e.afterPrint()},1e3)},1))}function tC(){let e=this,p=e.options.exporting,x=p.buttons,y=e.isDirtyExporting||!e.exportSVGElements;e.buttonOffset=0,e.isDirtyExporting&&e.destroyExport(),y&&!1!==p.enabled&&(e.exportEvents=[],e.exportingGroup=e.exportingGroup||e.renderer.g("exporting-group").attr({zIndex:3}).add(),te(x,function(p){e.addButton(p)}),e.isDirtyExporting=!1)}function tk(e,p){let x=e.indexOf("")+6,y=e.substr(x);return e=e.substr(0,x),p&&p.exporting&&p.exporting.allowHTML&&y&&(y=''+y.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />")+"",e=e.replace("",y+"")),e=e.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|")(.*?)("|")\;?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/{var y;!function(b){e.exports?(b.default=b,e.exports=b):void 0!==(y=(function(e){return b(e),b.Highcharts=e,b}).apply(p,[x(14783),x(9264)]))&&(e.exports=y)}(function(e){"use strict";var p=e?e._modules:{};function x(e,p,x,y){e.hasOwnProperty(p)||(e[p]=y.apply(null,x),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:p,module:e[p]}})))}x(p,"Extensions/DownloadURL.js",[p["Core/Globals.js"]],function(e){let{isSafari:p,win:x,win:{document:y}}=e,b=x.URL||x.webkitURL||x;function E(e){let p=e.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([0-9A-Za-z+/]+)/);if(p&&p.length>3&&x.atob&&x.ArrayBuffer&&x.Uint8Array&&x.Blob&&b.createObjectURL){let e=x.atob(p[3]),y=new x.ArrayBuffer(e.length),E=new x.Uint8Array(y);for(let p=0;p1e3)throw Error("Input too long");let D=/Edge\/\d+/.test(O.userAgent);if((p&&"string"==typeof e&&0===e.indexOf("data:application/pdf")||D||e.length>2e6)&&!(e=E(e)||""))throw Error("Failed to convert to blob");if(void 0!==L.download)L.href=e,L.download=b,y.body.appendChild(L),L.click(),y.body.removeChild(L);else try{if(!x.open(e,"chart"))throw Error("Failed to open window")}catch{x.location.href=e}}}}),x(p,"Extensions/OfflineExporting/OfflineExportingDefaults.js",[],function(){return{libURL:"https://code.highcharts.com/11.4.3/lib/",menuItemDefinitions:{downloadPNG:{textKey:"downloadPNG",onclick:function(){this.exportChartLocal()}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){this.exportChartLocal({type:"image/jpeg"})}},downloadSVG:{textKey:"downloadSVG",onclick:function(){this.exportChartLocal({type:"image/svg+xml"})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){this.exportChartLocal({type:"application/pdf"})}}}}}),x(p,"Extensions/OfflineExporting/OfflineExporting.js",[p["Core/Renderer/HTML/AST.js"],p["Core/Chart/Chart.js"],p["Core/Defaults.js"],p["Extensions/DownloadURL.js"],p["Extensions/Exporting/Exporting.js"],p["Core/Globals.js"],p["Core/HttpUtilities.js"],p["Extensions/OfflineExporting/OfflineExportingDefaults.js"],p["Core/Utilities.js"]],function(e,p,x,y,b,E,O,L,D){var j;let{defaultOptions:R}=x,{downloadURL:z}=y,{doc:F,win:H}=E,{ajax:U}=O,{addEvent:Y,error:V,extend:q,fireEvent:K,merge:$}=D;return e.allowedAttributes.push("data-z-index","fill-opacity","filter","rx","ry","stroke-dasharray","stroke-linejoin","stroke-opacity","text-anchor","transform","version","viewBox","visibility","xmlns","xmlns:xlink"),e.allowedTags.push("desc","clippath","g"),function(p){function x(e,x){let y=this,O=$(y.options.exporting,e),L=function(e){!1===O.fallbackToExportServer?O.error?O.error(O,e):V(28,!0):y.exportChart(O)};if(E.isMS&&y.styledMode&&!b.inlineAllowlist.length&&b.inlineAllowlist.push(/^blockSize/,/^border/,/^caretColor/,/^color/,/^columnRule/,/^columnRuleColor/,/^cssFloat/,/^cursor/,/^fill$/,/^fillOpacity/,/^font/,/^inlineSize/,/^length/,/^lineHeight/,/^opacity/,/^outline/,/^parentRule/,/^rx$/,/^ry$/,/^stroke/,/^textAlign/,/^textAnchor/,/^textDecoration/,/^transform/,/^vectorEffect/,/^visibility/,/^x$/,/^y$/),E.isMS&&("application/pdf"===O.type||y.container.getElementsByTagName("image").length&&"image/svg+xml"!==O.type)||"application/pdf"===O.type&&[].some.call(y.container.getElementsByTagName("image"),function(e){let p=e.getAttribute("href");return""!==p&&"string"==typeof p&&0!==p.indexOf("data:")})){L(Error("Image type not supported for this chart/browser."));return}y.getSVGForLocalExport(O,x||{},L,function(e){e.indexOf("-1&&"image/svg+xml"!==O.type&&(E.isMS||"application/pdf"===O.type)?L(Error("Image type not supported for charts with embedded HTML")):p.downloadSVGLocal(e,q({filename:y.getFilename()},O),L,()=>K(y,"exportChartLocalSuccess"))})}function y(e,p){let x=F.getElementsByTagName("head")[0],y=F.createElement("script");y.type="text/javascript",y.src=e,y.onload=p,y.onerror=function(){V("Error loading script "+e)},x.appendChild(y)}function O(e,x,y,b){let E=this,O=e=>E.sanitizeSVG(e,z),L=()=>{H&&V===U&&b(O(R.innerHTML))},D=(e,p,x)=>{++V,x.imageElement.setAttributeNS("http://www.w3.org/1999/xlink","href",e),L()},j,R,z,F=null,H,U=0,V=0;E.unbindGetSVG=Y(E,"getSVG",e=>{z=e.chartCopy.options,U=(H=(R=e.chartCopy.container.cloneNode(!0))&&R.getElementsByTagName("image")||[]).length}),E.getSVGForExport(e,x);try{if(!H||!H.length){b(O(R.innerHTML));return}for(let x=0;x{setTimeout(function(){let p;let O=F.createElement("canvas"),D=O.getContext&&O.getContext("2d");try{if(D){O.height=R.height*b,O.width=R.width*b,D.drawImage(R,0,0,O.width,O.height);try{p=O.toDataURL(x),E(p,x,y,b)}catch(p){z(e,x,y,b)}}else L(e,x,y,b)}finally{j&&j(e,x,y,b)}},p.loadEventDeferDelay)},Y=()=>{D(e,x,y,b),j&&j(e,x,y,b)};z=()=>{R=new H.Image,z=O,R.crossOrigin="Anonymous",R.onload=U,R.onerror=Y,R.src=e},R.onload=U,R.onerror=Y,R.src=e}function j(e){let x=H.navigator.userAgent,y=x.indexOf("WebKit")>-1&&0>x.indexOf("Chrome");try{if(!y&&-1===e.indexOf("b?"p":"l","pt",[b,E]);[].forEach.call(e.querySelectorAll('*[visibility="hidden"]'),function(e){e.parentNode.removeChild(e)});let L=e.querySelectorAll("linearGradient");for(let e=0;e{"\u200B"===e.textContent&&(e.textContent=" ",e.setAttribute("dx",-5))}),O.svg(e,{x:0,y:0,width:b,height:E,removeInvalid:!0}).then(()=>y(O.output("datauristring")))}p.CanVGRenderer={},p.domurl=H.URL||H.webkitURL||H,p.loadEventDeferDelay=E.isMS?150:0,p.compose=function(e){let p=e.prototype;return p.exportChartLocal||(p.getSVGForLocalExport=O,p.exportChartLocal=x,$(!0,R.exporting,L)),e},p.downloadSVGLocal=function(x,b,E,O){let L=F.createElement("div"),Y=b.type||"image/png",V=(b.filename||"chart")+"."+("image/svg+xml"===Y?"svg":Y.split("/")[1]),q=b.scale||1,K,$,Z,J=b.libURL||R.exporting.libURL,tt=!0,te=b.pdfFont;J="/"!==J.slice(-1)?J+"/":J;let ti=(e,p)=>{let x,y;let b=(e,p)=>{H.jspdf.jsPDF.API.events.push(["initialized",function(){this.addFileToVFS(e,p),this.addFont(e,"HighchartsFont",e),this.getFontList().HighchartsFont||this.setFont("HighchartsFont")}])};te&&(y=e.textContent||"",!/[^\u0000-\u007F\u200B]+/.test(y))&&(te=void 0);let E=["normal","italic","bold","bolditalic"],O=()=>{let e=E.shift();if(!e)return p();let y=te&&te[e];y?U({url:y,responseType:"blob",success:(p,y)=>{let E=new FileReader;E.onloadend=function(){if("string"==typeof this.result){let p=this.result.split(",")[1];b(e,p),"normal"===e&&(x=p)}O()},E.readAsDataURL(y.response)},error:O}):(x&&b(e,x),O())};O()},ts=()=>{let p,y;e.setElementHTML(L,x);let b=L.getElementsByTagName("text"),D=function(e,p){let x=e;for(;x&&x!==L;){if(x.style[p]){let y=x.style[p];"fontSize"===p&&/em$/.test(y)&&(y=Math.round(16*parseFloat(y))+"px"),e.style[p]=y;break}x=x.parentNode}};[].forEach.call(b,function(e){for(["fontFamily","fontSize"].forEach(p=>{D(e,p)}),e.style.fontFamily=te&&te.normal?"HighchartsFont":String(e.style.fontFamily&&e.style.fontFamily.split(" ").splice(-1)),p=e.getElementsByTagName("title"),[].forEach.call(p,function(p){e.removeChild(p)}),y=e.getElementsByClassName("highcharts-text-outline");y.length>0;)e.removeChild(y[0])});let j=L.querySelector("svg");j&&ti(j,()=>{_(j,0,q,e=>{try{z(e,V),O&&O()}catch(e){E(e)}})})};if("image/svg+xml"===Y)try{void 0!==H.MSBlobBuilder?(($=new H.MSBlobBuilder).append(x),K=$.getBlob("image/svg+xml")):K=j(x),z(K,V),O&&O()}catch(e){E(e)}else"application/pdf"===Y?H.jspdf&&H.jspdf.jsPDF?ts():(tt=!0,y(J+"jspdf.js",function(){y(J+"svg2pdf.js",ts)})):(K=j(x),Z=function(){try{p.domurl.revokeObjectURL(K)}catch(e){}},D(K,Y,{},q,function(e){try{z(e,V),O&&O()}catch(e){E(e)}},function(){if(x.length>1e8)throw Error("Input too long");let e=F.createElement("canvas"),p=e.getContext("2d"),b=x.match(/^]*\s{,1000}width\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/),L=x.match(/^]*\s{0,1000}height\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/);if(p&&b&&L){let D=+b[1]*q,j=+L[1]*q,R=()=>{H.canvg.Canvg.fromString(p,x).start();try{z(H.navigator.msSaveOrOpenBlob?e.msToBlob():e.toDataURL(Y),V),O&&O()}catch(e){E(e)}finally{Z()}};e.width=D,e.height=j,H.canvg?R():(tt=!0,y(J+"canvg.js",R))}},E,E,function(){tt&&Z()}))},p.getScript=y,p.imageToDataUrl=D,p.svgToDataUrl=j,p.svgToPdf=_}(j||(j={})),j}),x(p,"masters/modules/offline-exporting.src.js",[p["Core/Globals.js"],p["Extensions/DownloadURL.js"],p["Extensions/OfflineExporting/OfflineExporting.js"]],function(e,p,x){return e.dataURLtoBlob=e.dataURLtoBlob||p.dataURLtoBlob,e.downloadSVGLocal=x.downloadSVGLocal,e.downloadURL=e.downloadURL||p.downloadURL,x.compose(e.Chart),e})})},29008:(e,p,x)=>{"use strict";x.d(p,{A:()=>y});let y=function(e){return e}},44634:(e,p,x)=>{"use strict";x.d(p,{A:()=>ty});var y=x(97250),b=x(52528),E=x(66984);let O=function(e,p,x){(void 0===x||(0,E.A)(e[p],x))&&(void 0!==x||p in e)||(0,b.A)(e,p,x)},L=function(e,p,x){for(var y=-1,b=Object(e),E=x(e),O=E.length;O--;){var L=E[++y];if(!1===p(b[L],L,b))break}return e};var D=x(80154),j=x(1801),R=x(39759),z=x(1756),F=x(25746),H=x(92049),U=x(38446),Y=x(53098),V=x(99856),q=x(89610),K=x(23149),$=x(87385),_=x(15647),Z=Object.prototype,J=Function.prototype.toString,tt=Z.hasOwnProperty,te=J.call(Object);let ti=function(e){if(!(0,Y.A)(e)||"[object Object]"!=(0,$.A)(e))return!1;var p=(0,_.A)(e);if(null===p)return!0;var x=tt.call(p,"constructor")&&p.constructor;return"function"==typeof x&&x instanceof x&&J.call(x)==te};var ts=x(4076);let to=function(e,p){if(("constructor"!==p||"function"!=typeof e[p])&&"__proto__"!=p)return e[p]};var tr=x(22031),tn=x(12931);let ta=function(e,p,x,y,b,E,L){var $=to(e,x),_=to(p,x),Z=L.get(_);if(Z){O(e,x,Z);return}var J=E?E($,_,x+"",e,p,L):void 0,tt=void 0===J;if(tt){var te=(0,H.A)(_),ta=!te&&(0,V.A)(_),tl=!te&&!ta&&(0,ts.A)(_);(J=_,te||ta||tl)?(0,H.A)($)?J=$:(0,Y.A)($)&&(0,U.A)($)?J=(0,R.A)($):ta?(tt=!1,J=(0,D.A)(_,!0)):tl?(tt=!1,J=(0,j.A)(_,!0)):J=[]:ti(_)||(0,F.A)(_)?(J=$,(0,F.A)($))?J=(0,tr.A)($,(0,tn.A)($)):(!(0,K.A)($)||(0,q.A)($))&&(J=(0,z.A)(_)):tt=!1}tt&&(L.set(_,J),b(J,_,y,E,L),L.delete(_)),O(e,x,J)},tl=function e(p,x,b,E,D){p!==x&&L(x,function(L,j){if(D||(D=new y.A),(0,K.A)(L))ta(p,x,j,b,e,E,D);else{var R=E?E(to(p,j),L,j+"",p,x,D):void 0;void 0===R&&(R=L),O(p,j,R)}},tn.A)};var th=x(29008);let td=function(e,p,x){switch(x.length){case 0:return e.call(p);case 1:return e.call(p,x[0]);case 2:return e.call(p,x[0],x[1]);case 3:return e.call(p,x[0],x[1],x[2])}return e.apply(p,x)};var tc=Math.max,tp=x(84171),tu=tp.A?function(e,p){return(0,tp.A)(e,"toString",{configurable:!0,enumerable:!1,value:function(){return p},writable:!0})}:th.A,tg=Date.now,tm=function(e){var p=0,x=0;return function(){var y=tg(),b=16-(y-x);if(x=y,b>0){if(++p>=800)return arguments[0]}else p=0;return e.apply(void 0,arguments)}}(tu);let tf=function(e,p){var x,y;return tm((x=p,y=th.A,x=tc(void 0===x?e.length-1:x,0),function(){for(var p=arguments,b=-1,E=tc(p.length-x,0),O=Array(E);++b1?x[b-1]:void 0,O=b>2?x[2]:void 0;for(E=e.length>3&&"function"==typeof E?(b--,E):void 0,O&&(0,tx.A)(x[0],x[1],O)&&(E=b<3?void 0:E,b=1),p=Object(p);++y{r.d(e,{A:()=>s});var o=r(66984);let n=function(t,e){for(var r=t.length;r--;)if((0,o.A)(t[r][0],e))return r;return -1};var a=Array.prototype.splice;function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e-1},i.prototype.set=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this};let s=i},68335:(t,e,r)=>{r.d(e,{A:()=>a});var o=r(17299),n=r(41917);let a=(0,o.A)(n.A,"Map")},21738:(t,e,r)=>{r.d(e,{A:()=>l});var o=(0,r(17299).A)(Object,"create"),n=Object.prototype.hasOwnProperty,a=Object.prototype.hasOwnProperty;function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{r.d(e,{A:()=>s});var o=r(36497),n=r(68335),a=r(21738);function i(t){var e=this.__data__=new o.A(t);this.size=e.size}i.prototype.clear=function(){this.__data__=new o.A,this.size=0},i.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},i.prototype.get=function(t){return this.__data__.get(t)},i.prototype.has=function(t){return this.__data__.has(t)},i.prototype.set=function(t,e){var r=this.__data__;if(r instanceof o.A){var i=r.__data__;if(!n.A||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new a.A(i)}return r.set(t,e),this.size=r.size,this};let s=i},43988:(t,e,r)=>{r.d(e,{A:()=>o});let o=r(41917).A.Uint8Array},61140:(t,e,r)=>{r.d(e,{A:()=>_});let o=function(t,e){for(var r=-1,o=Array(t);++r{r.d(e,{A:()=>o});let o=function(t){return function(e){return t(e)}}},17299:(t,e,r)=>{r.d(e,{A:()=>h});var o=r(89610),n=r(41917).A["__core-js_shared__"],a=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),i=r(23149),s=r(81121),u=/^\[object .+?Constructor\]$/,c=Object.prototype,_=Function.prototype.toString,p=c.hasOwnProperty,l=RegExp("^"+_.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let h=function(t,e){var r,n=null==t?void 0:t[e];return(r=n,(0,i.A)(r)&&(!a||!(a in r))&&((0,o.A)(r)?l:u).test((0,s.A)(r)))?n:void 0}},97271:(t,e,r)=>{r.d(e,{A:()=>n});var o=Object.prototype;let n=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||o)}},64841:(t,e,r)=>{r.d(e,{A:()=>s});var o=r(72136),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=n&&"object"==typeof module&&module&&!module.nodeType&&module,i=a&&a.exports===n&&o.A.process;let s=function(){try{var t=a&&a.require&&a.require("util").types;if(t)return t;return i&&i.binding&&i.binding("util")}catch(t){}}()},40367:(t,e,r)=>{r.d(e,{A:()=>o});let o=function(t,e){return function(r){return t(e(r))}}},81121:(t,e,r)=>{r.d(e,{A:()=>n});var o=Function.prototype.toString;let n=function(t){if(null!=t){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},25746:(t,e,r)=>{r.d(e,{A:()=>c});var o=r(87385),n=r(53098);let a=function(t){return(0,n.A)(t)&&"[object Arguments]"==(0,o.A)(t)};var i=Object.prototype,s=i.hasOwnProperty,u=i.propertyIsEnumerable;let c=a(function(){return arguments}())?a:function(t){return(0,n.A)(t)&&s.call(t,"callee")&&!u.call(t,"callee")}},92049:(t,e,r)=>{r.d(e,{A:()=>o});let o=Array.isArray},99856:(t,e,r)=>{r.d(e,{A:()=>s});var o=r(41917),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=n&&"object"==typeof module&&module&&!module.nodeType&&module,i=a&&a.exports===n?o.A.Buffer:void 0;let s=(i?i.isBuffer:void 0)||function(){return!1}},4076:(t,e,r)=>{r.d(e,{A:()=>_});var o=r(87385),n=r(5254),a=r(53098),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;var s=r(52789),u=r(64841),c=u.A&&u.A.isTypedArray;let _=c?(0,s.A)(c):function(t){return(0,a.A)(t)&&(0,n.A)(t.length)&&!!i[(0,o.A)(t)]}}}]); +//# sourceMappingURL=vendors-node_modules_lodash-es__Stack_js-node_modules_lodash-es__Uint8Array_js-node_modules_l-4faaa6-36199da76107.js.map \ No newline at end of file diff --git a/vendors-node_modules_lodash-es_cloneDeep_js-c9650081f549.js.download b/vendors-node_modules_lodash-es_cloneDeep_js-c9650081f549.js.download new file mode 100644 index 0000000000..c42e6bf27a --- /dev/null +++ b/vendors-node_modules_lodash-es_cloneDeep_js-c9650081f549.js.download @@ -0,0 +1,2 @@ +"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_lodash-es_cloneDeep_js"],{52851:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(52528),o=r(66984),c=Object.prototype.hasOwnProperty;let a=function(e,t,r){var a=e[t];c.call(e,t)&&(0,o.A)(a,r)&&(void 0!==r||t in e)||(0,n.A)(e,t,r)}},52528:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(84171);let o=function(e,t,r){"__proto__"==t&&n.A?(0,n.A)(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},90565:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(43988);let o=function(e){var t=new e.constructor(e.byteLength);return new n.A(t).set(new n.A(e)),t}},80154:(e,t,r)=>{r.d(t,{A:()=>A});var n=r(41917),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=c&&c.exports===o?n.A.Buffer:void 0,u=a?a.allocUnsafe:void 0;let A=function(e,t){if(t)return e.slice();var r=e.length,n=u?u(r):new e.constructor(r);return e.copy(n),n}},1801:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(90565);let o=function(e,t){var r=t?(0,n.A)(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},39759:(e,t,r)=>{r.d(t,{A:()=>n});let n=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{r.d(t,{A:()=>c});var n=r(52851),o=r(52528);let c=function(e,t,r,c){var a=!r;r||(r={});for(var u=-1,A=t.length;++u{r.d(t,{A:()=>o});var n=r(17299);let o=function(){try{var e=(0,n.A)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},83973:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(33831),o=r(83511),c=r(12931);let a=function(e){return(0,n.A)(e,c.A,o.A)}},15647:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(40367).A)(Object.getPrototypeOf,Object)},83511:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(76912),o=r(15647),c=r(17347),a=r(13153);let u=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,n.A)(t,(0,c.A)(e)),e=(0,o.A)(e);return t}:a.A},1756:(e,t,r)=>{r.d(t,{A:()=>A});var n=r(23149),o=Object.create,c=function(){function e(){}return function(t){if(!(0,n.A)(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),a=r(15647),u=r(97271);let A=function(e){return"function"!=typeof e.constructor||(0,u.A)(e)?{}:c((0,a.A)(e))}},98488:(e,t,r)=>{r.d(t,{A:()=>W});var n=r(97250);let o=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{r.d(t,{A:()=>b});var n=r(61140),o=r(23149),c=r(97271);let a=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t};var u=Object.prototype.hasOwnProperty;let A=function(e){if(!(0,o.A)(e))return a(e);var t=(0,c.A)(e),r=[];for(var n in e)"constructor"==n&&(t||!u.call(e,n))||r.push(n);return r};var i=r(38446);let b=function(e){return(0,i.A)(e)?(0,n.A)(e,!0):A(e)}}}]); +//# sourceMappingURL=vendors-node_modules_lodash-es_cloneDeep_js-ba36e7d6bbae.js.map \ No newline at end of file diff --git a/vendors-node_modules_lodash-es_isEqual_js-92a85ab8c568.js.download b/vendors-node_modules_lodash-es_isEqual_js-92a85ab8c568.js.download new file mode 100644 index 0000000000..e4687ef49a --- /dev/null +++ b/vendors-node_modules_lodash-es_isEqual_js-92a85ab8c568.js.download @@ -0,0 +1,2 @@ +"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_lodash-es_isEqual_js"],{39857:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(17299),a=r(41917);let o=(0,n.A)(a.A,"Set")},40473:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(21738);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n.A;++t{r.d(t,{A:()=>n});let n=function(e,t){for(var r=-1,n=t.length,a=e.length;++r{r.d(t,{A:()=>o});var n=r(76912),a=r(92049);let o=function(e,t,r){var o=t(e);return(0,a.A)(e)?o:(0,n.A)(o,r(e))}},21179:(e,t,r)=>{r.d(t,{A:()=>z});var n=r(97250),a=r(40473);let o=function(e,t){for(var r=-1,n=null==e?0:e.length;++rl))return!1;var A=i.get(e),v=i.get(t);if(A&&v)return A==t&&v==e;var b=-1,d=!0,h=2&r?new a.A:void 0;for(i.set(e,t),i.set(t,e);++b{r.d(t,{A:()=>u});var n=r(97271),a=(0,r(40367).A)(Object.keys,Object),o=Object.prototype.hasOwnProperty;let u=function(e){if(!(0,n.A)(e))return a(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},64099:(e,t,r)=>{r.d(t,{A:()=>n});let n=function(e,t){return e.has(t)}},19042:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(33831),a=r(17347),o=r(27422);let u=function(e){return(0,n.A)(e,o.A,a.A)}},17347:(e,t,r)=>{r.d(t,{A:()=>c});let n=function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r{r.d(t,{A:()=>O});var n=r(17299),a=r(41917),o=(0,n.A)(a.A,"DataView"),u=r(68335),c=(0,n.A)(a.A,"Promise"),i=r(39857),f=(0,n.A)(a.A,"WeakMap"),l=r(87385),s=r(81121),A="[object Map]",v="[object Promise]",b="[object Set]",d="[object WeakMap]",h="[object DataView]",p=(0,s.A)(o),j=(0,s.A)(u.A),_=(0,s.A)(c),y=(0,s.A)(i.A),g=(0,s.A)(f),w=l.A;(o&&w(new o(new ArrayBuffer(1)))!=h||u.A&&w(new u.A)!=A||c&&w(c.resolve())!=v||i.A&&w(new i.A)!=b||f&&w(new f)!=d)&&(w=function(e){var t=(0,l.A)(e),r="[object Object]"==t?e.constructor:void 0,n=r?(0,s.A)(r):"";if(n)switch(n){case p:return h;case j:return A;case _:return v;case y:return b;case g:return d}return t});let O=w},29959:(e,t,r)=>{r.d(t,{A:()=>n});let n=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},46996:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(21179);let a=function(e,t){return(0,n.A)(e,t)}},27422:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(61140),a=r(62922),o=r(38446);let u=function(e){return(0,o.A)(e)?(0,n.A)(e):(0,a.A)(e)}},13153:(e,t,r)=>{r.d(t,{A:()=>n});let n=function(){return[]}}}]); +//# sourceMappingURL=vendors-node_modules_lodash-es_isEqual_js-fd4290ca1569.js.map \ No newline at end of file diff --git a/vendors-node_modules_lodash-es_pickBy_js-733b80864e6e.js.download b/vendors-node_modules_lodash-es_pickBy_js-733b80864e6e.js.download new file mode 100644 index 0000000000..4a3fce61bd --- /dev/null +++ b/vendors-node_modules_lodash-es_pickBy_js-733b80864e6e.js.download @@ -0,0 +1,2 @@ +"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_lodash-es_pickBy_js"],{45572:(r,n,t)=>{t.d(n,{A:()=>e});let e=function(r,n){for(var t=-1,e=null==r?0:r.length,u=Array(e);++t{t.d(n,{A:()=>o});var e=t(23095),u=t(30901);let o=function(r,n){n=(0,e.A)(n,r);for(var t=0,o=n.length;null!=r&&t{t.d(n,{A:()=>O});var e=t(97250),u=t(21179);let o=function(r,n,t,o){var i=t.length,l=i,f=!o;if(null==r)return!l;for(r=Object(r);i--;){var a=t[i];if(f&&a[2]?a[1]!==r[a[0]]:!(a[0]in r))return!1}for(;++i{t.d(n,{A:()=>c});var e=t(92049),u=t(86586),o=t(46632),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,f=function(r){var n=(0,o.A)(r,function(r){return 500===t.size&&t.clear(),r}),t=n.cache;return n}(function(r){var n=[];return 46===r.charCodeAt(0)&&n.push(""),r.replace(i,function(r,t,e,u){n.push(e?u.replace(l,"$1"):t||r)}),n}),a=t(91251);let c=function(r,n){return(0,e.A)(r)?r:(0,u.A)(r,n)?[r]:f((0,a.A)(r))}},86586:(r,n,t)=>{t.d(n,{A:()=>l});var e=t(92049),u=t(61882),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;let l=function(r,n){if((0,e.A)(r))return!1;var t=typeof r;return!!("number"==t||"symbol"==t||"boolean"==t||null==r||(0,u.A)(r))||i.test(r)||!o.test(r)||null!=n&&r in Object(n)}},30901:(r,n,t)=>{t.d(n,{A:()=>o});var e=t(61882),u=1/0;let o=function(r){if("string"==typeof r||(0,e.A)(r))return r;var n=r+"";return"0"==n&&1/r==-u?"-0":n}},46632:(r,n,t)=>{t.d(n,{A:()=>o});var e=t(21738);function u(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw TypeError("Expected a function");var t=function(){var e=arguments,u=n?n.apply(this,e):e[0],o=t.cache;if(o.has(u))return o.get(u);var i=r.apply(this,e);return t.cache=o.set(u,i)||o,i};return t.cache=new(u.Cache||e.A),t}u.Cache=e.A;let o=u},37155:(r,n,t)=>{t.d(n,{A:()=>h});var e=t(45572),u=t(82526),o=t(66318),i=t(52851),l=t(23095),f=t(25353),a=t(23149),c=t(30901);let v=function(r,n,t,e){if(!(0,a.A)(r))return r;n=(0,l.A)(n,r);for(var u=-1,o=n.length,v=o-1,A=r;null!=A&&++u{t.d(n,{A:()=>v});var e=t(241),u=t(45572),o=t(92049),i=t(61882),l=1/0,f=e.A?e.A.prototype:void 0,a=f?f.toString:void 0;let c=function r(n){if("string"==typeof n)return n;if((0,o.A)(n))return(0,u.A)(n,r)+"";if((0,i.A)(n))return a?a.call(n):"";var t=n+"";return"0"==t&&1/n==-l?"-0":t},v=function(r){return null==r?"":c(r)}}}]); +//# sourceMappingURL=vendors-node_modules_lodash-es_pickBy_js-9a8a4c5384ce.js.map \ No newline at end of file diff --git a/vendors-node_modules_ml-regression-simple-linear_src_index_js-node_modules_chartjs-adapter-da-5ef63e-f220e48ab1bf.js.download b/vendors-node_modules_ml-regression-simple-linear_src_index_js-node_modules_chartjs-adapter-da-5ef63e-f220e48ab1bf.js.download new file mode 100644 index 0000000000..785a26e56e --- /dev/null +++ b/vendors-node_modules_ml-regression-simple-linear_src_index_js-node_modules_chartjs-adapter-da-5ef63e-f220e48ab1bf.js.download @@ -0,0 +1,7 @@ +"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_ml-regression-simple-linear_src_index_js-node_modules_chartjs-adapter-da-5ef63e"],{1891:(e,t,r)=>{r.d(t,{A:()=>SimpleLinearRegression});let n=Object.prototype.toString;function s(e){return n.call(e).endsWith("Array]")}let BaseRegression=class BaseRegression{constructor(){if(new.target===BaseRegression)throw Error("BaseRegression must be subclassed")}predict(e){if("number"==typeof e)return this._predict(e);if(s(e)){let t=[];for(let r=0;r{var n=r(65368),s=r(2642),u=r(44660),a=r(84929),i=r(96912),o=r(72471),c=r(87836),l=r(2940),h=r(58507),f=r(13999),d=r(11897),p=r(4883),m=r(93876),g=r(77275),y=r(43924),M=r(14123),b=r(17764),w=r(77068),v=r(94978),S=r(25733),_=r(51730),k=r(92528),q=r(42150),R=r(16823),F=r(37519),L=r(72483),T=r(71359);/*! + * chartjs-adapter-date-fns v3.0.0 + * https://www.chartjs.org + * (c) 2022 chartjs-adapter-date-fns Contributors + * Released under the MIT license + */let Y={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};n.ij._date.override({_id:"date-fns",formats:function(){return Y},parse:function(e,t){if(null==e)return null;let r=typeof e;return"number"===r||e instanceof Date?e=(0,s.a)(e):"string"===r&&(e="string"==typeof t?(0,u.qg)(e,t,new Date,this.options):(0,a.H)(e,this.options)),(0,i.f)(e)?e.getTime():null},format:function(e,t){return(0,o.GP)(e,t,this.options)},add:function(e,t,r){switch(r){case"millisecond":return(0,c.A)(e,t);case"second":return(0,c.A)(e,1e3*t);case"minute":return(0,c.A)(e,t*l.Cg);case"hour":return(0,h.L)(e,t);case"day":return(0,f.f)(e,t);case"week":return(0,d.J)(e,t);case"month":return(0,p.P)(e,t);case"quarter":return(0,p.P)(e,3*t);case"year":return(0,m.e)(e,t);default:return e}},diff:function(e,t,r){switch(r){case"millisecond":return(0,g.b)(e,t);case"second":return(0,y.O)(e,t);case"minute":return function(e,t,r){let n=(0,g.b)(e,t)/l.Cg;return(0,M.u)(void 0)(n)}(e,t);case"hour":return function(e,t,r){let n=(0,g.b)(e,t)/l.s0;return(0,M.u)(void 0)(n)}(e,t);case"day":return(0,b.c)(e,t);case"week":return(0,w.I)(e,t);case"month":return(0,v.W)(e,t);case"quarter":return function(e,t,r){let n=(0,v.W)(e,t)/3;return(0,M.u)(void 0)(n)}(e,t);case"year":return function(e,t){let r=(0,s.a)(e),n=(0,s.a)(t),u=(0,S.z)(r,n),a=Math.abs(function(e,t){let r=(0,s.a)(e),n=(0,s.a)(t);return r.getFullYear()-n.getFullYear()}(r,n));r.setFullYear(1584),n.setFullYear(1584);let i=(0,S.z)(r,n)===-u,o=u*(a-+i);return 0===o?0:o}(e,t);default:return 0}},startOf:function(e,t,r){switch(t){case"second":return function(e){let t=(0,s.a)(e);return t.setMilliseconds(0),t}(e);case"minute":return function(e){let t=(0,s.a)(e);return t.setSeconds(0,0),t}(e);case"hour":return function(e){let t=(0,s.a)(e);return t.setMinutes(0,0,0),t}(e);case"day":return(0,_.o)(e);case"week":return(0,k.k)(e);case"isoWeek":return(0,k.k)(e,{weekStartsOn:+r});case"month":return(0,q.w)(e);case"quarter":return function(e){let t=(0,s.a)(e),r=t.getMonth();return t.setMonth(r-r%3,1),t.setHours(0,0,0,0),t}(e);case"year":return(0,R.D)(e);default:return e}},endOf:function(e,t){switch(t){case"second":return function(e){let t=(0,s.a)(e);return t.setMilliseconds(999),t}(e);case"minute":return function(e){let t=(0,s.a)(e);return t.setSeconds(59,999),t}(e);case"hour":return function(e){let t=(0,s.a)(e);return t.setMinutes(59,59,999),t}(e);case"day":return(0,F.D)(e);case"week":return(0,L.$)(e);case"month":return(0,T.p)(e);case"quarter":return function(e){let t=(0,s.a)(e),r=t.getMonth();return t.setMonth(r-r%3+3,0),t.setHours(23,59,59,999),t}(e);case"year":return function(e){let t=(0,s.a)(e),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}(e);default:return e}}})},14123:(e,t,r)=>{r.d(t,{u:()=>n});function n(e){return t=>{let r=(e?Math[e]:Math.trunc)(t);return 0===r?0:r}}},58507:(e,t,r)=>{r.d(t,{L:()=>u});var n=r(87836),s=r(2940);function u(e,t){return(0,n.A)(e,t*s.s0)}},87836:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(2642),s=r(35840);function u(e,t){let r=+(0,n.a)(e);return(0,s.w)(e,r+t)}},25733:(e,t,r)=>{r.d(t,{z:()=>s});var n=r(2642);function s(e,t){let r=(0,n.a)(e),s=(0,n.a)(t),u=r.getTime()-s.getTime();return u<0?-1:u>0?1:u}},77275:(e,t,r)=>{r.d(t,{b:()=>s});var n=r(2642);function s(e,t){return+(0,n.a)(e)-+(0,n.a)(t)}},94978:(e,t,r)=>{r.d(t,{W:()=>i});var n=r(25733),s=r(2642),u=r(37519),a=r(71359);function i(e,t){let r;let i=(0,s.a)(e),o=(0,s.a)(t),c=(0,n.z)(i,o),l=Math.abs(function(e,t){let r=(0,s.a)(e),n=(0,s.a)(t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(i,o));if(l<1)r=0;else{1===i.getMonth()&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-c*l);let t=(0,n.z)(i,o)===-c;(function(e){let t=(0,s.a)(e);return+(0,u.D)(t)==+(0,a.p)(t)})((0,s.a)(e))&&1===l&&1===(0,n.z)(e,o)&&(t=!1),r=c*(l-Number(t))}return 0===r?0:r}},43924:(e,t,r)=>{r.d(t,{O:()=>u});var n=r(14123),s=r(77275);function u(e,t,r){let u=(0,s.b)(e,t)/1e3;return(0,n.u)(r?.roundingMethod)(u)}},77068:(e,t,r)=>{r.d(t,{I:()=>u});var n=r(14123),s=r(17764);function u(e,t,r){let u=(0,s.c)(e,t)/7;return(0,n.u)(r?.roundingMethod)(u)}},37519:(e,t,r)=>{r.d(t,{D:()=>s});var n=r(2642);function s(e){let t=(0,n.a)(e);return t.setHours(23,59,59,999),t}},71359:(e,t,r)=>{r.d(t,{p:()=>s});var n=r(2642);function s(e){let t=(0,n.a)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}},42150:(e,t,r)=>{r.d(t,{w:()=>s});var n=r(2642);function s(e){let t=(0,n.a)(e);return t.setDate(1),t.setHours(0,0,0,0),t}}}]); +//# sourceMappingURL=vendors-node_modules_ml-regression-simple-linear_src_index_js-node_modules_chartjs-adapter-da-5ef63e-ad0a5c24d78a.js.map \ No newline at end of file diff --git a/vendors-node_modules_react-relay_hooks_js-node_modules_github_combobox-nav_dist_index_js-node-1f33c6-328a2b41ab0e.js.download b/vendors-node_modules_react-relay_hooks_js-node_modules_github_combobox-nav_dist_index_js-node-1f33c6-328a2b41ab0e.js.download new file mode 100644 index 0000000000..cdc9dae39f --- /dev/null +++ b/vendors-node_modules_react-relay_hooks_js-node_modules_github_combobox-nav_dist_index_js-node-1f33c6-328a2b41ab0e.js.download @@ -0,0 +1,6 @@ +(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_react-relay_hooks_js-node_modules_github_combobox-nav_dist_index_js-node-1f33c6"],{34784:(t,e,i)=>{t.exports=i(34052)},34052:(t,e,i)=>{"use strict";var r=i(9963),n=i(41241),o=i(90007).loadQuery,s=i(13635),a=i(50456),l=i(40121),u=i(7360),c=i(73720),d=i(42695),p=i(15940),h=i(39420),_=i(6505),m=i(71517),f=i(7058),b=i(53386),y=i(91529),g=i(69487);t.exports={ConnectionHandler:g.ConnectionHandler,applyOptimisticMutation:g.applyOptimisticMutation,commitLocalUpdate:g.commitLocalUpdate,commitMutation:g.commitMutation,graphql:g.graphql,readInlineData:g.readInlineData,requestSubscription:g.requestSubscription,EntryPointContainer:r,RelayEnvironmentProvider:a,ProfilerContext:s,fetchQuery:g.fetchQuery,loadQuery:o,loadEntryPoint:n,useFragment:u,useLazyLoadQuery:c,useEntryPointLoader:l,useQueryLoader:_,useMutation:d,usePaginationFragment:p,usePreloadedQuery:h,useRefetchableFragment:m,useRelayEnvironment:f,useSubscribeToInvalidationState:b,useSubscription:y}},35908:(t,e,i)=>{"use strict";i.d(e,{A:()=>Combobox});let Combobox=class Combobox{constructor(t,e,{tabInsertsSuggestions:i,firstOptionSelectionMode:r,scrollIntoViewOptions:o}={}){this.input=t,this.list=e,this.tabInsertsSuggestions=null==i||i,this.firstOptionSelectionMode=null!=r?r:"none",this.scrollIntoViewOptions=null!=o?o:{block:"nearest",inline:"nearest"},this.isComposing=!1,e.id||(e.id=`combobox-${Math.random().toString().slice(2,6)}`),this.ctrlBindings=!!navigator.userAgent.match(/Macintosh/),this.keyboardEventHandler=t=>(function(t,e){if(!t.shiftKey&&!t.metaKey&&!t.altKey&&(e.ctrlBindings||!t.ctrlKey)&&!e.isComposing)switch(t.key){case"Enter":n(e.input,e.list)&&t.preventDefault();break;case"Tab":e.tabInsertsSuggestions&&n(e.input,e.list)&&t.preventDefault();break;case"Escape":e.clearSelection();break;case"ArrowDown":e.navigate(1),t.preventDefault();break;case"ArrowUp":e.navigate(-1),t.preventDefault();break;case"n":e.ctrlBindings&&t.ctrlKey&&(e.navigate(1),t.preventDefault());break;case"p":e.ctrlBindings&&t.ctrlKey&&(e.navigate(-1),t.preventDefault());break;default:if(t.ctrlKey)break;e.resetSelection()}})(t,this),this.compositionEventHandler=t=>(function(t,e){e.isComposing="compositionstart"===t.type,document.getElementById(e.input.getAttribute("aria-controls")||"")&&e.clearSelection()})(t,this),this.inputHandler=this.clearSelection.bind(this),t.setAttribute("role","combobox"),t.setAttribute("aria-controls",e.id),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-haspopup","listbox")}destroy(){this.clearSelection(),this.stop(),this.input.removeAttribute("role"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-haspopup")}start(){this.input.setAttribute("aria-expanded","true"),this.input.addEventListener("compositionstart",this.compositionEventHandler),this.input.addEventListener("compositionend",this.compositionEventHandler),this.input.addEventListener("input",this.inputHandler),this.input.addEventListener("keydown",this.keyboardEventHandler),this.list.addEventListener("click",r),this.resetSelection()}stop(){this.clearSelection(),this.input.setAttribute("aria-expanded","false"),this.input.removeEventListener("compositionstart",this.compositionEventHandler),this.input.removeEventListener("compositionend",this.compositionEventHandler),this.input.removeEventListener("input",this.inputHandler),this.input.removeEventListener("keydown",this.keyboardEventHandler),this.list.removeEventListener("click",r)}indicateDefaultOption(){var t;"active"===this.firstOptionSelectionMode?null===(t=Array.from(this.list.querySelectorAll('[role="option"]:not([aria-disabled="true"])')).filter(o)[0])||void 0===t||t.setAttribute("data-combobox-option-default","true"):"selected"===this.firstOptionSelectionMode&&this.navigate(1)}navigate(t=1){let e=Array.from(this.list.querySelectorAll('[aria-selected="true"]')).filter(o)[0],i=Array.from(this.list.querySelectorAll('[role="option"]')).filter(o),r=i.indexOf(e);if(r===i.length-1&&1===t||0===r&&-1===t){this.clearSelection(),this.input.focus();return}let n=1===t?0:i.length-1;if(e&&r>=0){let e=r+t;e>=0&&e0||t.offsetHeight>0)}},37732:(t,e,i)=>{"use strict";i.d(e,{a:()=>a});/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */let r=new Set(["children","localName","ref","style","className"]),n=new WeakMap,o=(t,e,i,r,o)=>{let s=null==o?void 0:o[e];void 0===s||i===r?null==i&&e in HTMLElement.prototype?t.removeAttribute(e):t[e]=i:((t,e,i)=>{let r=n.get(t);void 0===r&&n.set(t,r=new Map);let o=r.get(e);void 0!==i?void 0===o?(r.set(e,o={handleEvent:i}),t.addEventListener(e,o)):o.handleEvent=i:void 0!==o&&(r.delete(e),t.removeEventListener(e,o))})(t,s,i)},s=(t,e)=>{"function"==typeof t?t(e):t.current=e};function a(t=window.React,e,i,n,l){let u,c,d;void 0===e?({tagName:c,elementClass:d,events:n,displayName:l}=t,u=t.react):(u=t,d=i,c=e);let p=u.Component,h=u.createElement,_=new Set(Object.keys(null!=n?n:{}));let v=class v extends p{constructor(){super(...arguments),this.o=null}t(t){if(null!==this.o)for(let e in this.i)o(this.o,e,this.props[e],t?t[e]:void 0,n)}componentDidMount(){var t;this.t(),null===(t=this.o)||void 0===t||t.removeAttribute("defer-hydration")}componentDidUpdate(t){this.t(t)}render(){let{_$Gl:t,...e}=this.props;this.h!==t&&(this.u=e=>{null!==t&&s(t,e),this.o=e,this.h=t}),this.i={};let i={ref:this.u};for(let[t,n]of Object.entries(e))r.has(t)?i["className"===t?"class":t]=n:_.has(t)||t in d.prototype?this.i[t]=n:i[t]=n;return i.suppressHydrationWarning=!0,h(c,i)}};v.displayName=null!=l?l:d.name;let m=u.forwardRef((t,e)=>h(v,{...t,_$Gl:e},null==t?void 0:t.children));return m.displayName=v.displayName,m}},47990:(t,e,i)=>{"use strict";function r(t,e,i){return Math.min(Math.max(t,i),e)}i.d(e,{BT:()=>m,Du:()=>n});let ColorError=class ColorError extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}};function n(t){if("string"!=typeof t)throw new ColorError(t);if("transparent"===t.trim().toLowerCase())return[0,0,0,0];let e=t.trim();e=p.test(t)?function(t){let e=s[function(t){let e=5381,i=t.length;for(;i;)e=33*e^t.charCodeAt(--i);return(e>>>0)%2341}(t.toLowerCase().trim())];if(!e)throw new ColorError(t);return`#${e}`}(t):t;let i=l.exec(e);if(i){let t=Array.from(i).slice(1);return[...t.slice(0,3).map(t=>parseInt(a(t,2),16)),parseInt(a(t[3]||"f",2),16)/255]}let n=u.exec(e);if(n){let t=Array.from(n).slice(1);return[...t.slice(0,3).map(t=>parseInt(t,16)),parseInt(t[3]||"ff",16)/255]}let o=c.exec(e);if(o){let t=Array.from(o).slice(1);return[...t.slice(0,3).map(t=>parseInt(t,10)),parseFloat(t[3]||"1")]}let h=d.exec(e);if(h){let[e,i,n,o]=Array.from(h).slice(1).map(parseFloat);if(r(0,100,i)!==i||r(0,100,n)!==n)throw new ColorError(t);return[..._(e,i,n),Number.isNaN(o)?1:o]}throw new ColorError(t)}let o=t=>parseInt(t.replace(/_/g,""),36),s="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((t,e)=>{let i=o(e.substring(0,3)),r=o(e.substring(3)).toString(16),n="";for(let t=0;t<6-r.length;t++)n+="0";return t[i]=`${n}${r}`,t},{}),a=(t,e)=>Array.from(Array(e)).map(()=>t).join(""),l=RegExp(`^#${a("([a-f0-9])",3)}([a-f0-9])?$`,"i"),u=RegExp(`^#${a("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),c=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${a(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),d=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,p=/^[a-z]+$/i,h=t=>Math.round(255*t),_=(t,e,i)=>{let r=i/100;if(0===e)return[r,r,r].map(h);let n=(t%360+360)%360/60,o=e/100*(1-Math.abs(2*r-1)),s=o*(1-Math.abs(n%2-1)),a=0,l=0,u=0;n>=0&&n<1?(a=o,l=s):n>=1&&n<2?(a=s,l=o):n>=2&&n<3?(l=o,u=s):n>=3&&n<4?(l=s,u=o):n>=4&&n<5?(a=s,u=o):n>=5&&n<6&&(a=o,u=s);let c=r-o/2;return[a+c,l+c,u+c].map(h)};function m(t){let[e,i,r,o]=n(t).map((t,e)=>3===e?t:t/255),s=Math.max(e,i,r),a=Math.min(e,i,r),l=(s+a)/2;if(s===a)return[0,0,l,o];let u=s-a;return[60*(e===s?(i-r)/u+(i.5?u/(2-s-a):u/(s+a),l,o]}}}]); +//# sourceMappingURL=vendors-node_modules_react-relay_hooks_js-node_modules_github_combobox-nav_dist_index_js-node-1f33c6-502380ab78cd.js.map \ No newline at end of file diff --git a/vendors-node_modules_react-relay_index_js-807c0f12a723.js.download b/vendors-node_modules_react-relay_index_js-807c0f12a723.js.download new file mode 100644 index 0000000000..81a4f99141 --- /dev/null +++ b/vendors-node_modules_react-relay_index_js-807c0f12a723.js.download @@ -0,0 +1,9 @@ +(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_react-relay_index_js"],{3574:e=>{"use strict";var t=[],r=[];e.exports=/** + * Checks if two values are equal. Values may be primitives, arrays, or objects. + * Returns true if both arguments have the same keys and values. + * + * @see http://underscorejs.org + * @copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc. + * @license MIT + */function(e,n){var i=t.length?t.pop():[],a=r.length?r.pop():[],o=function e(t,r,n,i){if(t===r)return 0!==t||1/t==1/r;if(null==t||null==r||"object"!=typeof t||"object"!=typeof r)return!1;var a=Object.prototype.toString,o=a.call(t);if(o!=a.call(r))return!1;switch(o){case"[object String]":return t==String(r);case"[object Number]":return!(isNaN(t)||isNaN(r))&&t==Number(r);case"[object Date]":case"[object Boolean]":return+t==+r;case"[object RegExp]":return t.source==r.source&&t.global==r.global&&t.multiline==r.multiline&&t.ignoreCase==r.ignoreCase}for(var s=n.length;s--;)if(n[s]==t)return i[s]==r;n.push(t),i.push(r);var l=0;if("[object Array]"===o){if((l=t.length)!==r.length)return!1;for(;l--;)if(!e(t[l],r[l],n,i))return!1}else{if(t.constructor!==r.constructor)return!1;if(t.hasOwnProperty("valueOf")&&r.hasOwnProperty("valueOf"))return t.valueOf()==r.valueOf();var u=Object.keys(t);if(u.length!=Object.keys(r).length)return!1;for(var c=0;c{"use strict";function t(e){return function(){return e}}var r=function(){};r.thatReturns=t,r.thatReturnsFalse=t(!1),r.thatReturnsTrue=t(!0),r.thatReturnsNull=t(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},14594:(e,t,r)=>{"use strict";var n=r(59395);e.exports=n},20311:e=>{"use strict";e.exports=function(e,t,r,n,i,a,o,s){if(!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,i,a,o,s],c=0;(l=Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},18312:(e,t,r)=>{e.exports=r(30596)},47493:e=>{"use strict";function t(e){return e.displayName||e.name||"Component"}e.exports={getComponentName:t,getContainerName:function(e){return"Relay("+t(e)+")"}}},84367:(e,t,r)=>{"use strict";var n=r(96540),i=r(69487).__internal.createRelayContext;e.exports=i(n)},98523:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(94634)),a=n(r(54893)),o=n(r(12475)),s=n(r(6221)),l=n(r(43693)),u=["componentRef","__relayContext","__rootIsQueryRenderer"],c=r(65433),d=r(47493).getContainerName,f=r(54978).assertRelayContext,h=r(3574),p=r(96540),_=r(69487),v=_.createFragmentSpecResolver,g=_.getDataIDsFromObject,m=_.isScalarAndEqual;function y(e,t){var r,n=d(e);return r=function(r){function c(e){a=r.call(this,e)||this,(0,l.default)((0,o.default)(a),"_handleFragmentDataUpdate",function(){var e=a.state.resolver;a.setState(function(t){return e===t.resolver?{data:t.resolver.resolve(),relayProp:b(t.relayProp.environment)}:null})});var i,a,s=f(e.__relayContext),u=null!==(i=e.__rootIsQueryRenderer)&&void 0!==i&&i,c=v(s,n,t,e,u);return a.state={data:c.resolve(),prevProps:e,prevPropsContext:s,relayProp:b(s.environment),resolver:c},a}(0,s.default)(c,r),c.getDerivedStateFromProps=function(e,r){var i,a=r.prevProps,o=f(e.__relayContext),s=null!==(i=e.__rootIsQueryRenderer)&&void 0!==i&&i,l=g(t,a),u=g(t,e),c=r.resolver;if(r.prevPropsContext.environment!==o.environment||!h(l,u))return{data:(c=v(o,n,t,e,s)).resolve(),prevPropsContext:o,prevProps:e,relayProp:b(o.environment),resolver:c};c.setProps(e);var d=c.resolve();return d!==r.data?{data:d,prevProps:e,prevPropsContext:o,relayProp:b(o.environment)}:null};var d=c.prototype;return d.componentDidMount=function(){this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},d.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},d.componentWillUnmount=function(){this.state.resolver.dispose()},d.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data)return!0;for(var n=Object.keys(e),i=0;i{"use strict";var n=r(84367),i=r(26728),a=r(3574),o=r(96540),s=r(69487),l=s.createOperationDescriptor,u=(s.deepFreeze,s.getRequest),c=o.useLayoutEffect,d=o.useState,f=o.useRef,h=o.useMemo,p={rootIsQueryRenderer:!0};e.exports=function(e){var t,r=e.environment,s=e.query,_=e.variables,v=e.render,g=(a((t=o.useRef(_)).current,_)||(t.current=_),t.current),m=h(function(){return l(u(s),g)},[s,g]),y=h(function(){return{environment:r}},[r]),b=f(null),E=d(null)[1],R=f(null);return c(function(){var e=R.current;return function(){e&&e()}},[h(function(){r.check(m);var e=r.lookup(m.fragment);b.current=e.data;var t=r.retain(m),n=r.subscribe(e,function(e){b.current=e.data,E(b.current)}),i=!1;return R.current&&R.current(),R.current=function(){i||(i=!0,R.current=null,t.dispose(),n.dispose())},e},[r,m])]),o.createElement(n.Provider,{value:y},o.createElement(i.Provider,{value:p},v({props:b.current})))}},82382:(e,t,r)=>{"use strict";var n=r(96540),i=r(69487).__internal.createRelayLoggingContext;e.exports=i(n)},52303:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(94634)),a=n(r(54893)),o=n(r(12475)),s=n(r(6221)),l=n(r(43693)),u=n(r(12897)),c=["componentRef"],d=["componentRef","__relayContext","__rootIsQueryRenderer"],f=["componentRef","__relayContext","__rootIsQueryRenderer"],h=r(65433),p=r(46723),_=r(47493),v=_.getComponentName,g=_.getContainerName,m=r(84367),y=r(69493),b=r(54978).assertRelayContext,E=r(3574),R=r(20311),S=r(96540),I=r(69487),D=I.ConnectionInterface,k=I.Observable,C=I.RelayFeatureFlags,P=I.createFragmentSpecResolver,A=I.createOperationDescriptor,O=I.getDataIDsFromObject,F=I.getRequest,T=I.getVariablesFromObject,x=I.isScalarAndEqual;r(14594);var N="forward";function L(e){return"function"==typeof e?{error:e,complete:e,unsubscribe:function(t){"function"==typeof e&&e()}}:e||{}}e.exports={createContainer:function(e,t,r){return h(e,t,function(e,t){var n,h,_,I,w,M,V,U,q,j,Q;return n=e,h=t,_=r,v(n),V=g(n),U=function(e){var t=null,r=!1;for(var n in e){var i=e[n],a=i.metadata&&i.metadata.connection;void 0!==i.metadata&&(r=!0),a&&(1!==a.length&&R(!1),t&&R(!1),t=(0,u.default)((0,u.default)({},a[0]),{},{fragmentName:n}))}return r&&null===t&&R(!1),t||{}}(h),q=_.getConnectionFromProps||((I=U.path)||R(!1),function(e){for(var t=e[U.fragmentName],r=0;r{"use strict";var n=(0,r(24994).default)(r(43693)),i=r(20311),a=r(69487),o=a.__internal.fetchQuery,s=a.createOperationDescriptor,l=a.isRelayModernEnvironment,u=function(){function e(e){(0,n.default)(this,"_selectionReferences",[]),(0,n.default)(this,"_didFetchFinish",!1),null!=e&&(this._cacheSelectionReference=e.cacheSelectionReference,this._selectionReferences=e.selectionReferences)}var t=e.prototype;return t.getSelectionReferences=function(){return{cacheSelectionReference:this._cacheSelectionReference,selectionReferences:this._selectionReferences}},t.lookupInStore=function(e,t,r){return("store-and-network"===r||"store-or-network"===r)&&"available"===e.check(t).status?(this._retainCachedOperation(e,t),e.lookup(t.fragment)):null},t.getFetchResult=function(){return this._didFetchFinish?null!=this._error?{error:this._error}:null!=this._snapshot?{snapshot:this._snapshot}:void 0:null},t.execute=function(e){var t=this,r=e.environment,n=e.operation,i=e.preservePreviousReferences,a=void 0!==i&&i,s=r.retain(n),u=function(){t._selectionReferences=t._selectionReferences.concat(s)},c=function(){a||t.disposeSelectionReferences(),t._selectionReferences=t._selectionReferences.concat(s)},d=function(){t._selectionReferences=t._selectionReferences.concat(s)};return l(r)?o(r,n).do({error:u,complete:c,unsubscribe:d}):r.execute({operation:n}).do({error:u,complete:c,unsubscribe:d})},t.setOnDataChange=function(e){this._fetchOptions||i(!1),"function"==typeof e&&(this._fetchOptions.onDataChangeCallbacks=this._fetchOptions.onDataChangeCallbacks||[],this._fetchOptions.onDataChangeCallbacks.push(e),this._didFetchFinish&&(null!=this._error?e({error:this._error}):null!=this._snapshot&&e({snapshot:this._snapshot})))},t.fetch=function(e,t){var r,n=this,i=e.environment,a=e.operation,o=e.onDataChange,l=!1;this.disposeRequest();var u=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={environment:i,onDataChangeCallbacks:u||[],operation:a},o&&-1===this._fetchOptions.onDataChangeCallbacks.indexOf(o)&&this._fetchOptions.onDataChangeCallbacks.push(o);var c=t?s(a.request.node,a.request.variables,t):a,d=this.execute({environment:i,operation:c}).finally(function(){n._pendingRequest=null}).subscribe({next:function(){n._didFetchFinish=!0,n._error=null,n._onQueryDataAvailable({notifyFirstResult:l})},error:function(e){n._didFetchFinish=!0,n._error=e,n._snapshot=null;var t=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;l?t&&t.forEach(function(t){t({error:e})}):r=e}});if(this._pendingRequest={dispose:function(){d.unsubscribe()}},l=!0,r)throw r;return this._snapshot},t.retry=function(e){return this._fetchOptions||i(!1),this.fetch({environment:this._fetchOptions.environment,operation:this._fetchOptions.operation,onDataChange:null},e)},t.dispose=function(){this.disposeRequest(),this.disposeSelectionReferences()},t.disposeRequest=function(){this._error=null,this._snapshot=null,this._pendingRequest&&this._pendingRequest.dispose(),this._rootSubscription&&(this._rootSubscription.dispose(),this._rootSubscription=null)},t._retainCachedOperation=function(e,t){this._disposeCacheSelectionReference(),this._cacheSelectionReference=e.retain(t)},t._disposeCacheSelectionReference=function(){this._cacheSelectionReference&&this._cacheSelectionReference.dispose(),this._cacheSelectionReference=null},t.disposeSelectionReferences=function(){this._disposeCacheSelectionReference(),this._selectionReferences.forEach(function(e){return e.dispose()}),this._selectionReferences=[]},t._onQueryDataAvailable=function(e){var t=this,r=e.notifyFirstResult;this._fetchOptions||i(!1);var n=this._fetchOptions,a=n.environment,o=n.onDataChangeCallbacks,s=n.operation;if(!this._snapshot&&(this._snapshot=a.lookup(s.fragment),this._rootSubscription=a.subscribe(this._snapshot,function(e){if(null!=t._fetchOptions){var r=t._fetchOptions.onDataChangeCallbacks;Array.isArray(r)&&r.forEach(function(t){return t({snapshot:e})})}}),this._snapshot&&r&&Array.isArray(o))){var l=this._snapshot;o.forEach(function(e){return e({snapshot:l})})}},e}();e.exports=u},19599:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(12897)),a=n(r(12475)),o=n(r(6221)),s=n(r(43693)),l=r(84367),u=r(69493),c=r(26728),d=r(3574),f=r(96540),h=r(69487),p=h.createOperationDescriptor,_=(h.deepFreeze,h.getRequest),v={},g={rootIsQueryRenderer:!0},m=function(e){function t(t){r=e.call(this,t)||this,(0,s.default)((0,a.default)(r),"_handleDataChange",function(e){var t=null==e.error?null:e.error,n=null==e.snapshot?null:e.snapshot;r.setState(function(e){var r=e.requestCacheKey;return(r&&delete v[r],n===e.snapshot&&t===e.error)?null:{renderProps:b(t,n,e.queryFetcher,e.retryCallbacks),snapshot:n,requestCacheKey:null}})});var r,n,o,l={handleDataChange:null,handleRetryAfterError:null};return n=t.query&&v[o=E(_(t.query).params,t.variables)]?v[o].queryFetcher:new u,r._maybeHiddenOrFastRefresh=!1,r.state=(0,i.default)({prevPropsEnvironment:t.environment,prevPropsVariables:t.variables,prevQuery:t.query,queryFetcher:n,retryCallbacks:l},S(t,n,l,o)),r}(0,o.default)(t,e),t.getDerivedStateFromProps=function(e,t){return t.prevQuery===e.query&&t.prevPropsEnvironment===e.environment&&d(t.prevPropsVariables,e.variables)?null:R(e,t)};var r=t.prototype;return r.componentDidMount=function(){var e=this;if(!0===this._maybeHiddenOrFastRefresh){this._maybeHiddenOrFastRefresh=!1,this.setState(function(t){var r=R(e.props,t),n=r.requestCacheKey,i=r.queryFetcher;return null!=n&&null!=v[n]&&i.setOnDataChange(e._handleDataChange),r});return}var t=this.state,r=t.retryCallbacks,n=t.queryFetcher,i=t.requestCacheKey;i&&delete v[i],r.handleDataChange=this._handleDataChange,r.handleRetryAfterError=function(t){return e.setState(function(e){var t=e.requestCacheKey;return t&&delete v[t],{renderProps:y(),requestCacheKey:null}})},this.props.query&&n.setOnDataChange(this._handleDataChange)},r.componentDidUpdate=function(e,t){var r=this.state,n=r.queryFetcher,i=r.requestCacheKey;i&&(delete v[i],delete this.state.requestCacheKey),this.props.query&&n!==t.queryFetcher&&n.setOnDataChange(this._handleDataChange)},r.componentWillUnmount=function(){this.state.queryFetcher.dispose(),this._maybeHiddenOrFastRefresh=!0},r.shouldComponentUpdate=function(e,t){return e.render!==this.props.render||t.renderProps!==this.state.renderProps},r.render=function(){var e=this.state,t=e.renderProps,r=e.relayContext;return f.createElement(l.Provider,{value:r},f.createElement(c.Provider,{value:g},this.props.render(t)))},t}(f.Component);function y(){return{error:null,props:null,retry:null}}function b(e,t,r,n){return{error:e||null,props:t?t.data:null,retry:function(t){var i=r.retry(t);i&&"function"==typeof n.handleDataChange?n.handleDataChange({snapshot:i}):e&&"function"==typeof n.handleRetryAfterError&&n.handleRetryAfterError(e)}}}function E(e,t){return JSON.stringify({id:e.cacheID?e.cacheID:e.id,variables:t})}function R(e,t){var r,n=e.query,a=t.queryFetcher.getSelectionReferences();if(t.queryFetcher.disposeRequest(),n){var o=E(_(n).params,e.variables);r=v[o]?v[o].queryFetcher:new u(a)}else r=new u(a);return(0,i.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:r},S(e,r,t.retryCallbacks))}function S(e,t,r,n){var i=e.environment,a=e.query,o=e.variables,s=e.cacheConfig;if(!a)return t.dispose(),{error:null,relayContext:{environment:i},renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var l=_(a),u=p(l,o,s),c={environment:i};if("string"==typeof n&&v[n]){var d=v[n].snapshot;return d?{error:null,relayContext:c,renderProps:b(null,d,t,r),snapshot:d,requestCacheKey:n}:{error:null,relayContext:c,renderProps:y(),snapshot:null,requestCacheKey:n}}try{var f=t.lookupInStore(i,u,e.fetchPolicy),h=t.fetch({environment:i,onDataChange:null,operation:u})||f;if(v[n=n||E(l.params,e.variables)]={queryFetcher:t,snapshot:h},!h)return{error:null,relayContext:c,renderProps:y(),snapshot:null,requestCacheKey:n};return{error:null,relayContext:c,renderProps:b(null,h,t,r),snapshot:h,requestCacheKey:n}}catch(e){return{error:e,relayContext:c,renderProps:b(e,null,t,r),snapshot:null,requestCacheKey:n}}}e.exports=m},26728:(e,t,r)=>{"use strict";var n=r(96540);e.exports=n.createContext({rootIsQueryRenderer:!1})},54808:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(94634)),a=n(r(54893)),o=n(r(12897)),s=n(r(12475)),l=n(r(6221)),u=n(r(43693)),c=["componentRef","__relayContext","__rootIsQueryRenderer"],d=r(65433),f=r(46723),h=r(47493).getContainerName,p=r(84367),_=r(69493),v=r(54978).assertRelayContext,g=r(3574),m=r(96540),y=r(69487),b=y.Observable,E=y.createFragmentSpecResolver,R=y.createOperationDescriptor,S=y.getDataIDsFromObject,I=y.getRequest,D=y.getVariablesFromObject,k=y.isScalarAndEqual;function C(e,t){return{environment:e,refetch:t}}r(14594),e.exports={createContainer:function(e,t,r){return d(e,t,function(e,t){var n,d;return d=h(e),n=function(n){function h(e){a=n.call(this,e)||this,(0,u.default)((0,s.default)(a),"_handleFragmentDataUpdate",function(){var e=a.state.resolver;a.setState(function(t){return e===t.resolver?{data:t.resolver.resolve()}:null})}),(0,u.default)((0,s.default)(a),"_refetch",function(e,n,i,s){if(a._isUnmounted)return{dispose:function(){}};var l,u=v(a.props.__relayContext).environment,c=f(t,a.props),d="function"==typeof e?e(a._getFragmentVariables()):e;d=(0,o.default)((0,o.default)({},c),d);var h=n?(0,o.default)((0,o.default)({},d),n):d,p=s?{force:!!s.force}:void 0;null!=p&&(null==s?void 0:s.metadata)!=null&&(p.metadata=null==s?void 0:s.metadata);var _="function"==typeof i?{next:i,error:i}:i||{},g=R(I(r),d,p);return(a.state.localVariables=d,a._refetchSubscription&&a._refetchSubscription.unsubscribe(),null!=a._getQueryFetcher().lookupInStore(u,g,null==s?void 0:s.fetchPolicy))?(a.state.resolver.setVariables(h,g.request.node),a.setState(function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:a.props.__relayContext.environment}}},function(){_.next&&_.next(),_.complete&&_.complete()}),{dispose:function(){}}):(a._getQueryFetcher().execute({environment:u,operation:g,preservePreviousReferences:!0}).mergeMap(function(e){return a.state.resolver.setVariables(h,g.request.node),b.create(function(e){return a.setState(function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:a.props.__relayContext.environment}}},function(){e.next(),e.complete()})})}).finally(function(){a._refetchSubscription===l&&(a._refetchSubscription=null)}).subscribe((0,o.default)((0,o.default)({},_),{},{start:function(e){a._refetchSubscription=l=e,_.start&&_.start(e)}})),{dispose:function(){l&&l.unsubscribe()}})});var i,a,l=v(e.__relayContext),c=null!==(i=e.__rootIsQueryRenderer)&&void 0!==i&&i;a._refetchSubscription=null;var h=E(l,d,t,e,c);return a.state={data:h.resolve(),localVariables:null,prevProps:e,prevPropsContext:l,contextForChildren:l,relayProp:C(l.environment,a._refetch),resolver:h},a._isUnmounted=!1,a}(0,l.default)(h,n);var y=h.prototype;return y.componentDidMount=function(){this._isUnmounted=!1,this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},y.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},h.getDerivedStateFromProps=function(e,r){var n,i=r.prevProps,a=v(e.__relayContext),o=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,s=S(t,i),l=S(t,e),u=f(t,i),c=f(t,e),h=r.resolver;if(r.prevPropsContext.environment!==a.environment||!g(u,c)||!g(s,l))return{data:(h=E(a,d,t,e,o)).resolve(),localVariables:null,prevProps:e,prevPropsContext:a,contextForChildren:a,relayProp:C(a.environment,r.relayProp.refetch),resolver:h};r.localVariables||h.setProps(e);var p=h.resolve();return p!==r.data?{data:p,prevProps:e}:null},y.componentWillUnmount=function(){this._isUnmounted=!0,this.state.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe()},y.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp)return!0;for(var n=Object.keys(e),i=0;i{"use strict";var n=r(10464),i=r(20311);function a(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&n(e.environment)}e.exports={assertRelayContext:function(e){return a(e)||i(!1),e},isRelayContext:a}},56516:(e,t,r)=>{"use strict";var n=r(20311);e.exports=function(e,t){for(var r in t&&"object"==typeof t||n(!1),t)if(t.hasOwnProperty(r)){var i=t[r];i&&("object"==typeof i||"function"==typeof i)||n(!1)}}},65433:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(94634)),i=r(56516),a=r(47493),o=a.getComponentName,s=a.getContainerName,l=r(84367),u=r(26728),c=r(20311),d=r(96540),f=r(69487).getFragment,h=d.useContext;e.exports=function(e,t,r){var a=s(e);i(o(e),t);var p={};for(var _ in t)p[_]=f(t[_]);var v=r(e,p);function g(e,t){var r,i=h(l);null!=i||c(!1);var a=h(u);return d.createElement(v,(0,n.default)({},e,{__relayContext:i,__rootIsQueryRenderer:null!==(r=null==a?void 0:a.rootIsQueryRenderer)&&void 0!==r&&r,componentRef:e.componentRef||t}))}return v.displayName=a,g.displayName=a,d.forwardRef(g)}},46723:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(12897)),i=r(69487).getSelector;e.exports=function(e,t){var r={};return Object.keys(e).forEach(function(a){var o,s,l,u=i(e[a],t[a]),c=null!=u&&"PluralReaderSelector"===u.kind?null!==(o=null===(s=u.selectors[0])||void 0===s?void 0:s.owner.variables)&&void 0!==o?o:{}:null!==(l=null==u?void 0:u.owner.variables)&&void 0!==l?l:{};r=(0,n.default)((0,n.default)({},r),c)}),r}},30596:(e,t,r)=>{"use strict";var n=r(84367),i=r(98523),a=r(47148),o=r(52303),s=r(19599),l=r(54808),u=r(9963),c=r(41241),d=r(90007).loadQuery,f=r(13635),h=r(50456),p=r(68975),_=r(40121),v=r(7360),g=r(73720),m=r(42695),y=r(15940),b=r(13214),E=r(39420),R=r(6505),S=r(71517),I=r(7058),D=r(53386),k=r(91529),C=r(69487);e.exports={ConnectionHandler:C.ConnectionHandler,QueryRenderer:s,LocalQueryRenderer:a,MutationTypes:C.MutationTypes,RangeOperations:C.RangeOperations,ReactRelayContext:n,applyOptimisticMutation:C.applyOptimisticMutation,commitLocalUpdate:C.commitLocalUpdate,commitMutation:C.commitMutation,createFragmentContainer:i.createContainer,createPaginationContainer:o.createContainer,createRefetchContainer:l.createContainer,fetchQuery_DEPRECATED:C.fetchQuery_DEPRECATED,graphql:C.graphql,readInlineData:C.readInlineData,requestSubscription:C.requestSubscription,EntryPointContainer:u,RelayEnvironmentProvider:h,ProfilerContext:f,fetchQuery:C.fetchQuery,loadQuery:d,loadEntryPoint:c,useClientQuery:p,useFragment:v,useLazyLoadQuery:g,useEntryPointLoader:_,useQueryLoader:R,useMutation:m,usePaginationFragment:y,usePreloadedQuery:E,useRefetchableFragment:S,usePrefetchableForwardPaginationFragment:b,useRelayEnvironment:I,useSubscribeToInvalidationState:D,useSubscription:k}},10464:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.check&&"function"==typeof e.lookup&&"function"==typeof e.retain&&"function"==typeof e.execute&&"function"==typeof e.subscribe}},9963:(e,t,r)=>{"use strict";var n=r(13635),i=r(7058),a=r(96540),o=r(96540),s=o.useContext,l=o.useEffect;r(14594),e.exports=function(e){var t=e.entryPointReference,r=e.props,o=t.getComponent,u=t.queries,c=t.entryPoints,d=t.extraProps,f=t.rootModuleID,h=o(),p=s(n),_=i();return l(function(){_.__log({name:"entrypoint.root.consume",profilerContext:p,rootModuleID:f})},[_,p,f]),a.createElement(h,{entryPoints:c,extraProps:d,props:r,queries:u})}},70718:(e,t,r)=>{"use strict";var n=r(20311),i=function(){function e(e){this._capacity=e,this._capacity>0||n(!1),this._map=new Map}var t=e.prototype;return t.set=function(e,t){if(this._map.delete(e),this._map.set(e,t),this._map.size>this._capacity){var r=this._map.keys().next();r.done||this._map.delete(r.value)}},t.get=function(e){var t=this._map.get(e);return null!=t&&(this._map.delete(e),this._map.set(e,t)),t},t.has=function(e){return this._map.has(e)},t.delete=function(e){this._map.delete(e)},t.size=function(){return this._map.size},t.capacity=function(){return this._capacity-this._map.size},t.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new i(e)}}},13635:(e,t,r)=>{"use strict";var n=r(96540).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},31503:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(12897)),a=n(r(43693)),o=r(70718),s=r(20183),l=r(20311),u=r(69487).isPromise;r(14594);var c="store-or-network",d="store-and-network",f="function"==typeof WeakMap;function h(e){return void 0!==e.request.node.params.metadata.live}function p(e,t,r,n,i){var a=null!=r?r:h(t)?d:c,o=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),s="".concat(a,"-").concat(o,"-").concat(t.request.identifier);return null!=i?"".concat(s,"-").concat(i):s}function _(e,t){var r={__id:e.fragment.dataID,__fragments:(0,a.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:t,fragmentNode:e.request.node.fragment,fragmentRef:r,operation:e}}var v=2e5;function g(e,t,r,n,i,a){var o=h(t),l=n,u=i,c=new s(function(e){var r=e.retain(t);return{dispose:function(){o&&null!=u&&u.unsubscribe(),r.dispose(),a(d)}}}),d={cacheIdentifier:e,id:v++,processedPayloadsCount:0,operationAvailability:r,getValue:function(){return l},setValue:function(e){l=e},setNetworkSubscription:function(e){o&&null!=u&&u.unsubscribe(),u=e},temporaryRetain:function(e){return c.temporaryRetain(e)},permanentRetain:function(e){return c.permanentRetain(e)},releaseTemporaryRetain:function(){c.releaseTemporaryRetain()}};return d}var m=function(){function e(e){var t=this;(0,a.default)(this,"_clearCacheEntry",function(e){t._cache.delete(e.cacheIdentifier)}),this._environment=e,this._cache=o.create(1e3)}var t=e.prototype;return t.prepare=function(e,t,r,n,i,a,o){var s=p(this._environment,e,r,n,a);return this.prepareWithIdentifier(s,e,t,r,n,i,o)},t.prepareWithIdentifier=function(e,t,r,n,a,o,s){var l=this._environment,f=null!=n?n:h(t)?d:c,p=null!=a?a:l.UNSTABLE_getDefaultRenderPolicy(),_=this._cache.get(e),v=null,g=null!=_;null==_&&(_=this._fetchAndSaveQuery(e,t,r,f,p,s,(0,i.default)((0,i.default)({},o),{},{unsubscribe:function(e){null!=v&&v.dispose();var t=null==o?void 0:o.unsubscribe;t&&t(e)}}))),v=_.temporaryRetain(l);var m=_.getValue();if(u(m))throw l.__log({name:"suspense.query",fetchPolicy:f,isPromiseCached:g,operation:t,queryAvailability:_.operationAvailability,renderPolicy:p}),m;if(m instanceof Error)throw m;return m},t.retain=function(e,t){var r=this._environment,n=e.cacheIdentifier,i=e.operation,a=this._getOrCreateCacheEntry(n,i,null,e,null),o=a.permanentRetain(r);return r.__log({name:"queryresource.retain",profilerContext:t,resourceID:a.id}),{dispose:function(){o.dispose()}}},t.releaseTemporaryRetain=function(e){var t=this._cache.get(e.cacheIdentifier);null!=t&&t.releaseTemporaryRetain()},t.TESTS_ONLY__getCacheEntry=function(e,t,r,n){var i=p(this._environment,e,t,r,n);return this._cache.get(i)},t._getOrCreateCacheEntry=function(e,t,r,n,i){var a=this._cache.get(e);return null==a&&(a=g(e,t,r,n,i,this._clearCacheEntry),this._cache.set(e,a)),a},t._fetchAndSaveQuery=function(e,t,r,n,a,o,s){var u=this,c=this._environment,d=c.check(t),f=d.status,p="available"===f,v=p||"partial"===a&&"stale"!==f,m=function(){};switch(n){case"store-only":E=!1,R=!0;break;case"store-or-network":E=!p,R=v;break;case"store-and-network":E=!0,R=v;break;default:E=!0,R=!1}if(R){var y=_(t,e),b=g(e,t,d,y,null,this._clearCacheEntry);this._cache.set(e,b)}if(E){var E,R,S,I=_(t,e);r.subscribe({start:function(r){S=r;var n=u._cache.get(e);n&&n.setNetworkSubscription(S);var a=null==s?void 0:s.start;a&&a((0,i.default)((0,i.default)({},r),{},{unsubscribe:function(){h(t)&&r.unsubscribe()}}))},next:function(){var r=u._getOrCreateCacheEntry(e,t,d,I,S);r.processedPayloadsCount+=1,r.setValue(I),m();var n=null==s?void 0:s.next;null!=n&&n(c.lookup(t.fragment))},error:function(r){var n=u._getOrCreateCacheEntry(e,t,d,r,S);0===n.processedPayloadsCount&&n.setValue(r),m(),S=null,n.setNetworkSubscription(null);var i=null==s?void 0:s.error;i&&i(r)},complete:function(){m(),S=null;var t=u._cache.get(e);t&&t.setNetworkSubscription(null);var r=null==s?void 0:s.complete;r&&r()},unsubscribe:null==s?void 0:s.unsubscribe});var D=this._cache.get(e);if(!D){var k=new Promise(function(e){m=e});k.displayName="Relay("+t.fragment.node.name+")",D=g(e,t,d,k,S,this._clearCacheEntry),this._cache.set(e,D)}}else{var C=null==s?void 0:s.complete;C&&C()}var P=this._cache.get(e);return null!=P||l(!1),c.__log({name:"queryresource.fetch",resourceID:P.id,operation:t,profilerContext:o,fetchPolicy:n,renderPolicy:a,queryAvailability:d,shouldFetch:E}),P},e}();function y(e){return new m(e)}var b=f?new WeakMap:new Map;e.exports={createQueryResource:y,getQueryResourceForEnvironment:function(e){var t=b.get(e);if(t)return t;var r=y(e);return b.set(e,r),r},getQueryCacheIdentifier:p}},50456:(e,t,r)=>{"use strict";var n=r(84367),i=r(96540),a=i.useMemo;e.exports=function(e){var t=e.children,r=e.environment,o=e.getEnvironmentForActor,s=a(function(){return{environment:r,getEnvironmentForActor:o}},[r,o]);return i.createElement(n.Provider,{value:s},t)}},20183:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(43693));r(14594);var i=function(){function e(e){var t=this;(0,n.default)(this,"_retainCount",0),(0,n.default)(this,"_retainDisposable",null),(0,n.default)(this,"_releaseTemporaryRetain",null),this._retain=function(r){return t._retainCount++,1===t._retainCount&&(t._retainDisposable=e(r)),{dispose:function(){t._retainCount=Math.max(0,t._retainCount-1),0===t._retainCount&&null!=t._retainDisposable&&(t._retainDisposable.dispose(),t._retainDisposable=null)}}}}var t=e.prototype;return t.temporaryRetain=function(e){var t,r=this;if(e.isServer())return{dispose:function(){}};var n=this._retain(e),i=null,a=function(){clearTimeout(i),i=null,r._releaseTemporaryRetain=null,n.dispose()};return i=setTimeout(a,3e5),null===(t=this._releaseTemporaryRetain)||void 0===t||t.call(this),this._releaseTemporaryRetain=a,{dispose:function(){var e;null===(e=r._releaseTemporaryRetain)||void 0===e||e.call(r)}}},t.permanentRetain=function(e){var t=this._retain(e);return this.releaseTemporaryRetain(),t},t.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},t.getRetainCount=function(){return this._retainCount},e}();e.exports=i},78210:(e,t,r)=>{"use strict";var n=r(20311),i=r(69487),a=i.ConnectionInterface,o=i.getValueAtPath;e.exports=function(e,t,r,i){var s,l,u,c=a.get(),d=c.EDGES,f=c.PAGE_INFO,h=c.HAS_NEXT_PAGE,p=c.HAS_PREV_PAGE,_=c.END_CURSOR,v=c.START_CURSOR,g=o(r,i);if(null==g)return{cursor:null,hasMore:!1};"object"!=typeof g&&n(!1);var m=g[d],y=g[f];if(null==m||null==y)return{cursor:null,hasMore:!1};Array.isArray(m)||n(!1),"object"!=typeof y&&n(!1);var b="forward"===e?null!==(s=y[_])&&void 0!==s?s:null:null!==(l=y[v])&&void 0!==l?l:null;return null===b||"string"==typeof b||n(!1),u="forward"===e?null!=b&&!0===y[h]:null!=b&&!0===y[p],{cursor:b,hasMore:u}}},41241:(e,t,r)=>{"use strict";var n=r(90007).loadQuery;e.exports=function e(t,r,i){var a=null;null==r.root.getModuleIfRequired()&&(a=r.root.load());var o=r.getPreloadProps(i),s=o.queries,l=o.entryPoints,u=o.extraProps,c={},d={};null!=s&&Object.keys(s).forEach(function(e){var r=s[e];if(null!=r){var i=r.environmentProviderOptions,a=r.options,o=r.parameters,l=r.variables;if((null==a?void 0:a.includeIf)!==!1){var u=t.getEnvironment(i);c[e]=n(u,o,l,{fetchPolicy:null==a?void 0:a.fetchPolicy,networkCacheConfig:null==a?void 0:a.networkCacheConfig,__nameForWarning:"loadEntryPoint"},i)}}}),null!=l&&Object.keys(l).forEach(function(r){var n=l[r];if(null!=n){var i=n.entryPoint,a=n.entryPointParams;d[r]=e(t,i,a)}});var f=!1;return{dispose:function(){f||(null!=c&&Object.values(c).forEach(function(e){(0,e.dispose)()}),null!=d&&Object.values(d).forEach(function(e){(0,e.dispose)()}),f=!0)},entryPoints:d,extraProps:null!=u?u:null,getComponent:function(){var e,t=r.root.getModuleIfRequired();if(null==t)throw a=null!==(e=a)&&void 0!==e?e:r.root.load();return null!=t.default?t.default:t},get isDisposed(){return f},queries:c,rootModuleID:r.root.getModuleId()}}},90007:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(12897)),i=r(20311),a=r(69487),o=a.__internal.fetchQueryDeduped,s=a.Observable,l=a.PreloadableQueryRegistry,u=a.ReplaySubject,c=a.createOperationDescriptor,d=a.getRequest,f=a.getRequestIdentifier,h=100001;e.exports={loadQuery:function(e,t,r,a,p){h++;var _,v,g,m,y,b,E,R=null!==(_=null==a?void 0:a.fetchPolicy)&&void 0!==_?_:"store-or-network",S=(0,n.default)((0,n.default)({},null==a?void 0:a.networkCacheConfig),{},{force:!0}),I=!1,D=function(t,r){return I=!0,e.executeWithSource({operation:t,source:r})},k=new u,C=s.create(function(e){return k.subscribe(e)}),P=null,A=!1,O=function(t,n){A=!0;var i=new u;return g=o(e,"raw-network-request-"+f(t,r),function(){return e.getNetwork().execute(t,r,S,void 0,void 0,void 0,void 0,n)}).subscribe({error:function(e){P=e,i.error(e)},next:function(e){i.next(e)},complete:function(){i.complete()}}).unsubscribe,s.create(function(e){var t=i.subscribe(e);return function(){t.unsubscribe(),g()}})},F=function(t,r){A=!0,m=o(e,t.request.identifier,r).subscribe({error:function(e){k.error(e)},next:function(e){k.next(e)},complete:function(){k.complete()}}).unsubscribe},T=function(t){var n=c(t,r,S);v=e.retain(n),"store-only"!==R&&("store-or-network"!==R||"available"!==e.check(n).status)&&F(n,function(){var r=O(t.params,function(){return e.check(n)});return D(n,r)})};if("PreloadableConcreteRequest"===t.kind){null!==(E=(y=t.params).id)||i(!1);var x=l.get(E);if(null!=x)T(x);else{var N="store-only"===R?null:O(y);b=l.onLoad(E,function(t){b();var n=c(t,r,S);v=e.retain(n),null!=N&&F(n,function(){return D(n,N)})}).dispose}}else{var L=d(t);E=null!=(y=L.params).cacheID?y.cacheID:y.id,T(L)}var w=!1,M=!1,V=!1,U=function(){M||(v&&v.dispose(),M=!0)},q=function(){V||(I?m&&m():g&&g(),b&&b(),V=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:p,dispose:function(){w||(U(),q(),w=!0)},releaseQuery:U,cancelNetworkRequest:q,fetchKey:h,id:E,get isDisposed(){return w||M},get networkError(){return P},name:y.name,networkCacheConfig:S,fetchPolicy:R,source:A?C:void 0,variables:r}}}},15350:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(12897)),a=n(r(50883)),o=r(31503).getQueryResourceForEnvironment,s=r(20311),l=r(69487),u=l.__internal.fetchQuery,c=l.RelayFeatureFlags,d=l.createOperationDescriptor,f=l.getPendingOperationsForFragment,h=l.getSelector,p=l.getVariablesFromFragment,_=l.handlePotentialSnapshotErrors;r(14594),e.exports=function(e,t,r,n,l,v){var g,m=h(t,r),y=(null==t?void 0:null===(S=t.metadata)||void 0===S?void 0:S.plural)===!0;y?null==r||Array.isArray(r)||s(!1):Array.isArray(r)&&s(!1),null==r||y&&Array.isArray(r)&&0===r.length||null!=m||s(!1);var b=null==m?{kind:"bailout"}:"PluralReaderSelector"!==m.kind?{kind:"singular",snapshot:e.lookup(m),epoch:e.getStore().getEpoch()}:0===m.selectors.length?{kind:"bailout"}:{kind:"plural",snapshots:m.selectors.map(function(t){return e.lookup(t)}),epoch:e.getStore().getEpoch()},E=null;if((null===(I=t.metadata)||void 0===I?void 0:I.hasClientEdges)===!0){var R=function(e){if("bailout"===e.kind)return null;if("singular"===e.kind)return null!==(t=e.snapshot.missingClientEdges)&&void 0!==t?t:null;var t,r,n=null,i=(0,a.default)(e.snapshots);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o.missingClientEdges){n=null!==(s=n)&&void 0!==s?s:[];var s,l,u=(0,a.default)(o.missingClientEdges);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){i.e(e)}finally{i.f()}return n}(b);if(null!=R&&R.length){E=[];var S,I,D,k=(0,a.default)(R);try{for(k.s();!(D=k.n()).done;){var C=D.value;E.push(function(e,t,r,n,a){var s=p(t,r),l=(0,i.default)((0,i.default)({},s),{},{id:n.clientEdgeDestinationID}),c=d(n.request,l,null==a?void 0:a.networkCacheConfig);return o(e).prepare(c,u(e,c),null==a?void 0:a.fetchPolicy)}(e,t,r,C,l))}}catch(e){k.e(e)}finally{k.f()}}}if("bailout"!==b.kind&&("singular"===b.kind?b.snapshot.isMissingData:b.snapshots.some(function(e){return e.isMissingData}))){null!=m||s(!1);var P=f(e,t,"PluralReaderSelector"===m.kind?m.selectors[0].owner:m.owner);if(P)throw P.promise;!function(e,t){if("singular"===t.kind)_(e,t.snapshot.fieldErrors);else if("plural"===t.kind){var r,n=(0,a.default)(t.snapshots);try{for(n.s();!(r=n.n()).done;){var i=r.value;_(e,i.fieldErrors)}}catch(e){n.e(e)}finally{n.f()}}}(e,b)}return g="bailout"===b.kind?y?[]:null:"singular"===b.kind?b.snapshot.data:b.snapshots.map(function(e){return e.data}),c.LOG_MISSING_RECORDS_IN_PROD&&null!=r&&(void 0===g||Array.isArray(g)&&g.length>0&&g.every(function(e){return void 0===e})),{data:g,clientEdgeQueries:E}}},68975:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(12897)),i=r(73720);e.exports=function(e,t,r){return i(e,t,(0,n.default)((0,n.default)({},r),{},{fetchPolicy:"store-only"}))}},40121:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(50883)),i=r(41241),a=r(69201),o=r(96540),s=o.useCallback,l=o.useEffect,u=o.useRef,c=o.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,t,r){var o,f,h,p,_=null!==(o=null==r?void 0:null===(f=r.TEST_ONLY__initialEntryPointData)||void 0===f?void 0:f.entryPointReference)&&void 0!==o?o:d,v=null!==(h=null==r?void 0:null===(p=r.TEST_ONLY__initialEntryPointData)||void 0===p?void 0:p.entryPointParams)&&void 0!==h?h:null,g=a(),m=u(new Set([_])),y=c(_),b=y[0],E=y[1],R=c(v),S=R[0],I=R[1],D=s(function(){if(g.current){var e={kind:"NullEntryPointReference"};m.current.add(e),E(e)}},[E,g]),k=s(function(r){if(g.current){var n=i(e,t,r);m.current.add(n),E(n),I(r)}},[e,t,E,g]),C=u(!1);return l(function(){return function(){C.current=!0}},[]),l(function(){if(!0===C.current){C.current=!1,"NullEntryPointReference"!==b.kind&&null!=S&&k(S);return}var e=m.current;if(g.current){var t,r=(0,n.default)(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i===b)break;e.delete(i),"NullEntryPointReference"!==i.kind&&i.dispose()}}catch(e){r.e(e)}finally{r.f()}}},[b,S,k,g]),l(function(){return function(){var e,t=(0,n.default)(m.current);try{for(t.s();!(e=t.n()).done;){var r=e.value;"NullEntryPointReference"!==r.kind&&r.dispose()}}catch(e){t.e(e)}finally{t.f()}}},[]),["NullEntryPointReference"===b.kind?null:b,k,D]}},90762:(e,t,r)=>{"use strict";var n=r(30709),i=r(96540),a=i.useCallback,o=i.useEffect;e.exports=function(){var e=n(null),t=n(!1),r=a(function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1},[]),i=a(function(r){e.current=r,t.current=!0},[]),s=a(function(){e.current=null,t.current=!1},[]);return o(function(){return r},[r]),{isFetchingRef:t,startFetch:i,disposeFetch:r,completeFetch:s}}},7360:(e,t,r)=>{"use strict";var n=r(37797),i=r(40976);r(96540).useDebugValue;var a=r(69487).getFragment;e.exports=function(e,t){var r=a(e);return i(r,"first argument of useFragment()"),n(r,t,"useFragment()")}},37797:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(38783)),a=n(r(81581)),o=r(69487);e.exports=function(e,t,r,n){return o.RelayFeatureFlags.ENABLE_ACTIVITY_COMPATIBILITY?(0,a.default)(e,t,r,n):(0,i.default)(e,t,r,n)}},38783:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(12897)),a=n(r(50883)),o=n(r(41132)),s=r(31503).getQueryResourceForEnvironment,l=r(7058),u=r(59567),c=r(20311),d=r(96540),f=(d.useDebugValue,d.useEffect),h=d.useMemo,p=d.useRef,_=d.useState,v=r(69487),g=v.__internal,m=g.fetchQuery,y=g.getPromiseForActiveRequest,b=v.RelayFeatureFlags,E=v.areEqualSelectors,R=v.createOperationDescriptor,S=v.getPendingOperationsForFragment,I=v.getSelector,D=v.getVariablesFromFragment,k=v.handlePotentialSnapshotErrors,C=v.recycleNodesInto;function P(e,t){if("bailout"===t.kind)return null;var r=e.getStore().getEpoch();if(r===t.epoch)return null;if("singular"===t.kind){var n=e.lookup(t.snapshot.selector),i=C(t.snapshot.data,n.data),a={data:i,isMissingData:n.isMissingData,missingClientEdges:n.missingClientEdges,missingLiveResolverFields:n.missingLiveResolverFields,seenRecords:n.seenRecords,selector:n.selector,fieldErrors:n.fieldErrors};return[i!==t.snapshot.data,{kind:"singular",snapshot:a,epoch:r}]}for(var o=!1,s=[],l=0;l0)throw Promise.all(Z.map(function(e){return x.getStore().getLiveResolverPromise(e)}));if(b.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||x!==G||!W.current||!E(W.current,F)){null!=F||c(!1);var ee=S(x,e,"PluralReaderSelector"===F.kind?F.selectors[0].owner:F.owner);if(ee)throw ee.promise}}!function(e,t,r){if("singular"===t.kind)k(e,t.snapshot.fieldErrors,r);else if("plural"===t.kind){var n,i=(0,a.default)(t.snapshots);try{for(i.s();!(n=i.n()).done;){var o=n.value;k(e,o.fieldErrors,r)}}catch(e){i.e(e)}finally{i.f()}}}(x,M,C);var et=p(!1);if(f(function(){var e=j,t=P(x,j);if(null!==t){var r=t[0],n=t[1];r&&w(n),e=n}return function(e,t,r,n){if("bailout"===t.kind)return function(){};if("singular"===t.kind){var i=e.subscribe(t.snapshot,function(t){r(function(r){if("singular"!==r.kind||r.snapshot.selector!==t.selector){var i=P(e,r);if(null==i)return r;var a=i[0],o=i[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:a}),n.current=a,a?o:r}return n.current=!0,{kind:"singular",snapshot:t,epoch:e.getStore().getEpoch()}})});return function(){i.dispose()}}var s=t.snapshots.map(function(t,i){return e.subscribe(t,function(t){r(function(r){if("plural"!==r.kind||(null===(a=r.snapshots[i])||void 0===a?void 0:a.selector)!==t.selector){var a,s=P(e,r);if(null==s)return r;var l=s[0],u=s[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:l}),n.current=n.current||l,l?u:r}var c=(0,o.default)(r.snapshots);return c[i]=t,n.current=!0,{kind:"plural",snapshots:c,epoch:e.getStore().getEpoch()}})})});return function(){var e,t=(0,a.default)(s);try{for(t.s();!(e=t.n()).done;)e.value.dispose()}catch(e){t.e(e)}finally{t.f()}}}(x,e,w,et)},[x,j]),et.current){var er=P(x,M);if(null!=er){var en=er[0],ei=er[1];en&&(w(ei),M=ei)}et.current=!1}if(T){var ea=null==t;O=h(function(){return"bailout"===M.kind?ea?null:[]:("plural"!==M.kind&&c(!1),M.snapshots.map(function(e){return e.data}))},[M,ea])}else"bailout"===M.kind?O=null:("singular"!==M.kind&&c(!1),O=M.snapshot.data);return b.LOG_MISSING_RECORDS_IN_PROD&&null!=t&&(void 0===O||Array.isArray(O)&&O.length>0&&O.every(function(e){return void 0===e})),O}},81581:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(12897)),a=n(r(50883)),o=n(r(41132)),s=r(31503).getQueryResourceForEnvironment,l=r(7058),u=r(59567),c=r(20311),d=r(96540),f=(d.useDebugValue,d.useEffect),h=d.useMemo,p=d.useRef,_=d.useState,v=r(69487),g=v.__internal,m=g.fetchQuery,y=g.getPromiseForActiveRequest,b=v.RelayFeatureFlags,E=v.areEqualSelectors,R=v.createOperationDescriptor,S=v.getPendingOperationsForFragment,I=v.getSelector,D=v.getVariablesFromFragment,k=v.handlePotentialSnapshotErrors,C=v.recycleNodesInto;function P(e,t){if("bailout"===t.kind)return null;var r=e.getStore().getEpoch();if(r===t.epoch)return null;if("singular"===t.kind){var n=e.lookup(t.snapshot.selector),i=C(t.snapshot.data,n.data),a={data:i,isMissingData:n.isMissingData,missingClientEdges:n.missingClientEdges,missingLiveResolverFields:n.missingLiveResolverFields,seenRecords:n.seenRecords,selector:n.selector,fieldErrors:n.fieldErrors};return[i!==t.snapshot.data,{kind:"singular",snapshot:a,epoch:r,selector:t.selector,environment:t.environment}]}for(var o=!1,s=[],l=0;l0)throw Promise.all(B.map(function(e){return x.getStore().getLiveResolverPromise(e)}));if(b.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||x!==V||!q.current||!E(q.current,F)){null!=F||c(!1);var Y=S(x,e,"PluralReaderSelector"===F.kind?F.selectors[0].owner:F.owner);if(Y)throw Y.promise}}!function(e,t,r){if("singular"===t.kind)k(e,t.snapshot.fieldErrors,r);else if("plural"===t.kind){var n,i=(0,a.default)(t.snapshots);try{for(i.s();!(n=i.n()).done;){var o=n.value;k(e,o.fieldErrors,r)}}catch(e){i.e(e)}finally{i.f()}}}(x,M,g);var G=p(null);if(f(function(){var e=G.current;if(null!=e){if(M.environment===e.environment&&M.selector===e.selector)return;e.dispose()}if("bailout"!==M.kind){var t=M,r=P(M.environment,M);if(null!==r){var n=r[0],i=r[1];if(n){w(i);return}t=i}var a=A(M.environment,t,w);G.current={dispose:a,selector:M.selector,environment:M.environment}}},[M]),f(function(){if(null==G.current&&"bailout"!==M.kind){var e=A(M.environment,M,w);G.current={dispose:e,selector:M.selector,environment:M.environment}}return function(){var e;null===(e=G.current)||void 0===e||e.dispose(),G.current=null}},[]),T){var H=null==t;C=h(function(){return"bailout"===M.kind?H?null:[]:("plural"!==M.kind&&c(!1),M.snapshots.map(function(e){return e.data}))},[M,H])}else"bailout"===M.kind?C=null:("singular"!==M.kind&&c(!1),C=M.snapshot.data);return b.LOG_MISSING_RECORDS_IN_PROD&&null!=t&&(void 0===C||Array.isArray(C)&&C.length>0&&C.every(function(e){return void 0===e})),C}},69201:(e,t,r)=>{"use strict";var n=r(96540),i=n.useEffect,a=n.useRef;e.exports=function(){var e=a(!0);return i(function(){return e.current=!0,function(){e.current=!1}},[]),e}},4989:(e,t,r)=>{"use strict";var n=r(7058),i=r(20311),a=r(96540),o=r(69487),s=o.__internal.getObservableForActiveRequest,l=o.getSelector,u=a.useEffect,c=a.useState,d=a.useMemo;e.exports=function(e,t){var r=n(),a=d(function(){var n=l(e,t);return null==n?null:("SingularReaderSelector"!==n.kind&&i(!1),s(r,n.owner))},[r,e,t]),o=c(null!=a),f=o[0],h=o[1];return u(function(){var e;if(h(null!=a),null!=a){var t=function(){h(!1)};e=a.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}},[a]),f}},73720:(e,t,r)=>{"use strict";var n=r(7672),i=r(33616),a=r(7058),o=r(69487).__internal.fetchQuery;e.exports=function(e,t,r){var s=a(),l=i(e,t,r&&r.networkCacheConfig?r.networkCacheConfig:{force:!0});return n({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==r?void 0:r.fetchKey,fetchObservable:o(s,l),fetchPolicy:null==r?void 0:r.fetchPolicy,query:l,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy})}},7672:(e,t,r)=>{"use strict";var n=r(13635),i=r(31503),a=i.getQueryCacheIdentifier,o=i.getQueryResourceForEnvironment,s=r(90762),l=r(37797),u=r(7058),c=r(96540),d=c.useContext,f=c.useEffect,h=c.useState,p=c.useRef;e.exports=function(e){var t=e.query,r=e.componentDisplayName,i=e.fetchObservable,c=e.fetchPolicy,_=e.fetchKey,v=e.renderPolicy,g=u(),m=d(n),y=o(g),b=h(0),E=b[0],R=b[1],S=s(),I=S.startFetch,D=S.completeFetch,k=a(g,t,c,v,"".concat(E,"-").concat(null!=_?_:"")),C=m.wrapPrepareQueryResource(function(){return y.prepareWithIdentifier(k,t,i,c,v,{start:I,complete:D,error:D},m)}),P=p(!1);return f(function(){return function(){P.current=!0}},[]),f(function(){if(!0===P.current){P.current=!1,R(function(e){return e+1});return}var e=y.retain(C,m);return function(){e.dispose()}},[g,k]),f(function(){y.releaseTemporaryRetain(C)}),l(C.fragmentNode,C.fragmentRef,r)}},33509:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(12897)),i=r(78210),a=r(90762),o=r(69201),s=r(4989),l=r(35610),u=r(7058),c=r(20311),d=r(96540),f=d.useCallback,h=d.useEffect,p=d.useState,_=r(69487),v=_.__internal.fetchQuery,g=_.RelayFeatureFlags,m=_.createOperationDescriptor,y=_.getPaginationVariables,b=_.getRefetchMetadata,E=_.getSelector;r(14594),e.exports=function(e){var t,r,d,_,R,S,I,D,k,C,P,A,O,F,T,x,N,L,w,M,V,U,q,j,Q,K,B,Y,G,H,z;return g.ENABLE_ACTIVITY_COMPATIBILITY?l(e):(t=e.direction,r=e.fragmentNode,d=e.fragmentRef,_=e.fragmentIdentifier,R=e.fragmentData,S=e.connectionPathInFragmentData,I=e.paginationRequest,D=e.paginationMetadata,k=e.componentDisplayName,C=e.observer,P=e.onReset,A=u(),F=(O=a()).isFetchingRef,T=O.startFetch,x=O.disposeFetch,N=O.completeFetch,w=(null==(L=b(r,k).identifierInfo)?void 0:L.identifierField)!=null&&null!=R&&"object"==typeof R?R[L.identifierField]:null,M=o(),U=(V=p(A))[0],q=V[1],Q=(j=p(_))[0],K=j[1],B=s(r,d),(A!==U||_!==Q)&&(x(),P(),q(A),K(_)),G=(Y=i(t,r,R,S)).cursor,H=Y.hasMore,h(function(){return function(){x()}},[x]),[f(function(e,i){var a=null==i?void 0:i.onComplete;if(!0!==M.current)return{dispose:function(){}};var o=E(r,d);if(!0===F.current||z)return a&&a(null),{dispose:function(){}};null!=o&&"PluralReaderSelector"!==o.kind||c(!1);var s=o.owner.variables,l=o.variables,u=null==i?void 0:i.UNSTABLE_extraVariables,f=y(t,e,G,(0,n.default)((0,n.default)({},s),l),(0,n.default)({},u),D);return null!=L&&(f[L.identifierQueryVariableName]=w),v(A,m(I,f,{force:!0})).subscribe((0,n.default)((0,n.default)({},C),{},{start:function(e){T(e),C.start&&C.start(e)},complete:function(){N(),C.complete&&C.complete(),a&&a(null)},error:function(e){N(),C.error&&C.error(e),a&&a(e)}})),{dispose:x}},[A,w,t,G,T,x,N,F,z=null==R||B,r.name,d,k]),H,x])}},35610:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(12897)),i=r(78210),a=r(69201),o=r(4989),s=r(7058),l=r(20311),u=r(96540),c=u.useCallback,d=u.useRef,f=u.useState,h=r(69487),p=h.__internal.fetchQuery,_=h.createOperationDescriptor,v=h.getPaginationVariables,g=h.getRefetchMetadata,m=h.getSelector;r(14594),e.exports=function(e){var t=e.direction,r=e.fragmentNode,u=e.fragmentRef,h=e.fragmentIdentifier,y=e.fragmentData,b=e.connectionPathInFragmentData,E=e.paginationRequest,R=e.paginationMetadata,S=e.componentDisplayName,I=e.observer,D=e.onReset,k=s(),C=g(r,S).identifierInfo,P=(null==C?void 0:C.identifierField)!=null&&null!=y&&"object"==typeof y?y[C.identifierField]:null,A=d({kind:"none"}),O=f(k),F=O[0],T=O[1],x=f(h),N=x[0],L=x[1],w=o(r,u),M=c(function(){"fetching"===A.current.kind&&A.current.subscription.unsubscribe(),A.current={kind:"none"}},[]);(k!==F||h!==N)&&(M(),D(),T(k),L(h));var V=i(t,r,y,b),U=V.cursor,q=V.hasMore,j=null==y||w,Q=a();return[c(function(e,i){var a=null==i?void 0:i.onComplete;if(!0!==Q.current)return{dispose:function(){}};var o=m(r,u);if("fetching"===A.current.kind||j)return a&&a(null),{dispose:function(){}};null!=o&&"PluralReaderSelector"!==o.kind||l(!1);var s=o.owner.variables,c=o.variables,d=null==i?void 0:i.UNSTABLE_extraVariables,f=v(t,e,U,(0,n.default)((0,n.default)({},s),c),(0,n.default)({},d),R);return null!=C&&(f[C.identifierQueryVariableName]=P),p(k,_(E,f,{force:!0})).subscribe((0,n.default)((0,n.default)({},I),{},{start:function(e){A.current={kind:"fetching",subscription:e},I.start&&I.start(e)},complete:function(){A.current={kind:"none"},I.complete&&I.complete(),a&&a(null)},error:function(e){A.current={kind:"none"},I.complete&&I.complete(),a&&a(e)}})),{dispose:function(){}}},[k,P,t,U,j,r.name,u,S]),q,M]}},33616:(e,t,r)=>{"use strict";var n=r(16933),i=r(96540),a=r(69487),o=a.createOperationDescriptor,s=a.getRequest,l=i.useMemo;e.exports=function(e,t,r){var i=n(t),a=n(r||{});return l(function(){return o(s(e),i,a)},[e,i,a])}},16933:(e,t,r)=>{"use strict";var n=r(3574),i=r(96540).useState;e.exports=function(e){var t=i(e),r=t[0],a=t[1];return n(e,r)?r:(a(e),e)}},42695:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(12897)),i=r(69201),a=r(7058),o=r(96540),s=r(69487).commitMutation,l=o.useState,u=o.useEffect,c=o.useRef,d=o.useCallback;e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=a(),o=i(),f=c(r),h=c(e),p=c(new Set),_=l(!1),v=_[0],g=_[1],m=d(function(t){f.current===r&&h.current===e&&(p.current.delete(t),o.current&&g(p.current.size>0))},[r,o,e]);return u(function(){(f.current!==r||h.current!==e)&&(p.current=new Set,o.current&&g(!1),f.current=r,h.current=e)},[r,o,e]),[d(function(i){o.current&&g(!0);var a=t(r,(0,n.default)((0,n.default)({},i),{},{mutation:e,onCompleted:function(e,t){var r;m(a),null===(r=i.onCompleted)||void 0===r||r.call(i,e,t)},onError:function(e){var t;m(a),null===(t=i.onError)||void 0===t||t.call(i,e)},onUnsubscribe:function(){var e;m(a),null===(e=i.onUnsubscribe)||void 0===e||e.call(i)},onNext:function(){var e;null===(e=i.onNext)||void 0===e||e.call(i)}}));return p.current.add(a),a},[m,t,r,o,e]),v]}},15940:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(12897)),i=r(33509),a=r(71100),o=r(7058),s=r(40976),l=r(96540),u=l.useCallback,c=(l.useDebugValue,l.useState),d=r(69487),f=d.RelayFeatureFlags,h=d.getFragment,p=d.getFragmentIdentifier,_=d.getPaginationMetadata;function v(e){var t=o(),r=c(!1),a=r[0],s=r[1],l=function(e){var r,n=null===(r=t.getScheduler())||void 0===r?void 0:r.schedule;n?n(function(){s(e)}):s(e)},u={start:function(){return l(!0)},complete:function(){return l(!1)},error:function(){return l(!1)},unsubscribe:f.ENABLE_USE_PAGINATION_IS_LOADING_FIX?function(){return l(!1)}:void 0},d=i((0,n.default)((0,n.default)({},e),{},{observer:u,onReset:function(){return l(!1)}}));return[d[0],d[1],a,d[2]]}e.exports=function(e,t){var r=h(e);s(r,"first argument of usePaginationFragment()");var i="usePaginationFragment()",o=_(r,i),l=o.connectionPathInFragmentData,c=o.paginationRequest,d=o.paginationMetadata,f=a(r,t,i),g=f.fragmentData,m=f.fragmentRef,y=f.refetch,b=p(r,m),E=v({componentDisplayName:i,connectionPathInFragmentData:l,direction:"backward",fragmentData:g,fragmentIdentifier:b,fragmentNode:r,fragmentRef:m,paginationMetadata:d,paginationRequest:c}),R=E[0],S=E[1],I=E[2],D=E[3],k=v({componentDisplayName:i,connectionPathInFragmentData:l,direction:"forward",fragmentData:g,fragmentIdentifier:b,fragmentNode:r,fragmentRef:m,paginationMetadata:d,paginationRequest:c}),C=k[0],P=k[1],A=k[2],O=k[3];return{data:g,loadNext:C,loadPrevious:R,hasNext:P,hasPrevious:S,isLoadingNext:A,isLoadingPrevious:I,refetch:u(function(e,t){return O(),D(),y(e,(0,n.default)((0,n.default)({},t),{},{__environment:void 0}))},[O,D,y])}}},13214:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(12897)),i=r(7360),a=r(33509),o=r(71100),s=r(7058),l=r(40976),u=r(20311),c=r(96540),d=c.useCallback,f=(c.useDebugValue,c.useEffect),h=c.useLayoutEffect,p=c.useMemo,_=c.useRef,v=c.useState,g=r(69487),m=g.getFragment,y=g.getFragmentIdentifier,b=g.getPaginationMetadata,E=r(69487),R=E.ConnectionInterface,S=E.RelayFeatureFlags,I=E.getSelector,D=E.getValueAtPath;e.exports=function(e,t,r,c,g){var E,k,C=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,P=arguments.length>6&&void 0!==arguments[6]&&arguments[6],A=m(e);l(A,"first argument of usePrefetchableForwardPaginationFragment()");var O="usePrefetchableForwardPaginationFragment()",F=b(A,O),T=F.connectionPathInFragmentData,x=F.paginationRequest,N=F.paginationMetadata,L=o(A,t,O),w=L.fragmentData,M=L.fragmentRef,V=L.refetch,U=y(A,M),q=p(function(){var e=D(w,T);return null==e?null:e[R.get().EDGES]},[T,w]),j=null==q?-1:q.length,Q=v(null!=c?c:j),K=Q[0],B=Q[1],Y=K;-1===K&&-1!==j&&B(Y=null!=c?c:j);var G=s(),H=v(!1),z=H[0],W=H[1],X=v(!1),J=X[0],$=X[1],Z=_(0),ee=d(function(e){var t,r=null===(t=G.getScheduler())||void 0===t?void 0:t.schedule;r?r(function(){W(e)}):W(e)},[G]),et=_(!1),er=a({componentDisplayName:O,connectionPathInFragmentData:T,direction:"forward",fragmentData:w,fragmentIdentifier:U,fragmentNode:A,fragmentRef:M,paginationMetadata:N,paginationRequest:x,observer:p(function(){function e(){et.current=!1,ee(!1)}return{start:function(){et.current=!0,W(!0)},complete:e,error:e,unsubscribe:S.ENABLE_USE_PAGINATION_IS_LOADING_FIX?e:void 0}},[ee]),onReset:d(function(){if(!J){var e,t=null===(e=G.getScheduler())||void 0===e?void 0:e.schedule;t?t(function(){B(-1)}):B(-1)}et.current=!1,ee(!1)},[G,J,ee])}),en=er[0],ei=er[1],ea=er[2];h(function(){Z.current=j-Y},[Y,j]);var eo=null==g?void 0:g.UNSTABLE_extraVariables,es=null==g?void 0:g.onComplete,el=d(function(e,t){(!et.current||Z.current>=0)&&(Z.current-=e,B(function(t){return t+e}),!et.current&&Z.current<0&&en(Math.max(C,Math.min(e,r-Z.current)),null!=t?t:{onComplete:es,UNSTABLE_extraVariables:"function"==typeof eo?eo({hasNext:ei,data:w,getServerEdges:function(){var e=I(eu,q);return null==e?[]:("PluralReaderSelector"!==e.kind&&u(!1),e.selectors.map(function(e){return G.lookup(e).data}))}}):eo}))},[r,en,C,q,w,eo,es]),eu=null===(E=e.metadata)||void 0===E?void 0:null===(k=E.refetch)||void 0===k?void 0:k.edgesFragment;null!=eu||u(!1),f(function(){et.current||z||J||P||!ei||!(j-Yj)||en(Math.max(r-Math.max(j-Y,0),Y-j,C),{onComplete:es,UNSTABLE_extraVariables:"function"==typeof eo?eo({hasNext:ei,data:w,getServerEdges:function(){var e=I(eu,q);return null==e?[]:("PluralReaderSelector"!==e.kind&&u(!1),e.selectors.map(function(e){return G.lookup(e).data}))}}):eo})},[ei,r,J,en,Y,eo,es,j,q,z,C,G,eu]);var ec=Math.min(Y,j),ed=i(eu,p(function(){var e;return null!==(e=null==q?void 0:q.slice(0,ec))&&void 0!==e?e:[]},[q,ec])),ef=d(function(e,t){return ea(),$(!0),V(e,(0,n.default)((0,n.default)({},t),{},{onComplete:function(e){var r,n,i=null===(r=G.getScheduler())||void 0===r?void 0:r.schedule;i?i(function(){$(!1),B(-1)}):($(!1),B(-1)),null==t||null===(n=t.onComplete)||void 0===n||n.call(t,e)},__environment:void 0}))},[ea,G,V]);return{edges:ed,data:w,loadNext:el,hasNext:ei||j>Y,isLoadingNext:z&&Y>j,refetch:ef}}},39420:(e,t,r)=>{"use strict";var n=r(7672),i=r(33616),a=r(7058),o=r(20311);r(96540).useDebugValue;var s=r(69487).__internal,l=s.fetchQueryDeduped,u=s.fetchQuery;r(14594),e.exports=function(e,t,r){var s=a(),c=t.fetchKey,d=t.fetchPolicy,f=t.source,h=i(e,t.variables,t.networkCacheConfig);if("PreloadedQuery_DEPRECATED"===t.kind)h.request.node.params.name!==t.name&&o(!1),p={componentDisplayName:"usePreloadedQuery()",fetchKey:c,fetchObservable:l(s,h.request.identifier,function(){return s===t.environment&&null!=f?s.executeWithSource({operation:h,source:f}):s.execute({operation:h})}),fetchPolicy:d,query:h,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy};else{var p,_,v=u(s,h);null!=f&&s===t.environment?_=f.ifEmpty(v):(t.environment,_=v),p={componentDisplayName:"usePreloadedQuery()",fetchObservable:_,fetchKey:c,fetchPolicy:d,query:h,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}return n(p)}},6505:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(50883)),i=r(90007).loadQuery,a=r(69201),o=r(49542),s=r(7058),l=r(96540),u=l.useCallback,c=l.useEffect,d=l.useRef,f=l.useState,h=r(69487),p=h.RelayFeatureFlags,_=h.getRequest,v={kind:"NullQueryReference"};function g(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==_(e).params.metadata.live}e.exports=function(e,t){var r,l,h,_,m,y,b,E,R,S,I,D,k;return p.ENABLE_ACTIVITY_COMPATIBILITY?o(e,t):(r=null!=t?t:v,l=s(),h=a(),_=d(new Set([r])),y=(m=f(function(){return r}))[0],b=m[1],R=(E=f(function(){return r}))[0],S=E[1],r!==R&&(_.current.add(r),S(r),b(r)),I=u(function(){h.current&&(_.current.add(v),b(v))},[h]),D=u(function(t,r){var n=null!=r&&r.hasOwnProperty("__environment")?{fetchPolicy:r.fetchPolicy,networkCacheConfig:r.networkCacheConfig,__nameForWarning:r.__nameForWarning}:r;if(h.current){var a,o=i(null!==(a=null==r?void 0:r.__environment)&&void 0!==a?a:l,e,t,n);_.current.add(o),b(o)}},[l,e,b,h]),k=d(!1),c(function(){return function(){k.current=!0}},[]),c(function(){if(!0===k.current){k.current=!1,"NullQueryReference"!==y.kind&&D(y.variables,{fetchPolicy:y.fetchPolicy,networkCacheConfig:y.networkCacheConfig});return}var t=_.current;if(h.current){var r,i=(0,n.default)(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a===y)break;t.delete(a),"NullQueryReference"!==a.kind&&(g(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){i.e(e)}finally{i.f()}}},[y,h,D,e]),c(function(){return function(){var t,r=(0,n.default)(_.current);try{for(r.s();!(t=r.n()).done;){var i=t.value;"NullQueryReference"!==i.kind&&(g(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){r.e(e)}finally{r.f()}}},[e]),["NullQueryReference"===y.kind?null:y,D,I])}},49542:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(50883)),i=r(90007).loadQuery,a=r(69201),o=r(7058),s=r(96540),l=s.useCallback,u=s.useEffect,c=s.useInsertionEffect,d=s.useRef,f=s.useState,h=r(69487).getRequest,p={kind:"NullQueryReference"};e.exports=function(e,t){var r,s=null!=t?t:p,_=o(),v=a(),g=d(null);null==g.current&&(g.current=new Set([s]));var m=f(function(){return s}),y=m[0],b=m[1],E=f(function(){return s}),R=E[0],S=E[1];s!==R&&(null===(r=g.current)||void 0===r||r.add(s),S(s),b(s));var I=l(function(){if(v.current){var e;null===(e=g.current)||void 0===e||e.add(p),b(p)}},[v]),D=l(function(t,r){if(v.current){var n,a,o=null!=r&&r.hasOwnProperty("__environment")?{fetchPolicy:r.fetchPolicy,networkCacheConfig:r.networkCacheConfig,__nameForWarning:r.__nameForWarning}:r,s=i(null!==(n=null==r?void 0:r.__environment)&&void 0!==n?n:_,e,t,o);null===(a=g.current)||void 0===a||a.add(s),b(s)}},[_,e,b,v]),k=l(function(e,t){var r,i,a=null!==(r=g.current)&&void 0!==r?r:new Set,o=(0,n.default)(a);try{for(o.s();!(i=o.n()).done;){var s=i.value;s!==t&&"NullQueryReference"!==s.kind&&(("PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==h(e).params.metadata.live)?s.dispose&&s.dispose():s.releaseQuery&&s.releaseQuery())}}catch(e){o.e(e)}finally{o.f()}},[]),C=d(null);return u(function(){return k(e,y),null!=C.current&&(clearTimeout(C.current),C.current=null),function(){C.current=setTimeout(function(){k(e,null)},3e5)}},[e,y]),c(function(){return function(){C.current&&clearTimeout(C.current),C.current=null,k(e,null)}},[e]),["NullQueryReference"===y.kind?null:y,D,I]}},71517:(e,t,r)=>{"use strict";var n=r(71100),i=r(40976);r(96540).useDebugValue;var a=r(69487).getFragment;e.exports=function(e,t){var r=a(e);i(r,"first argument of useRefetchableFragment()");var o=n(r,t,"useRefetchableFragment()");return[o.fragmentData,o.refetch]}},71100:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(12897)),i=r(13635),a=r(31503).getQueryResourceForEnvironment,o=r(15350),s=r(37797),l=r(69201),u=r(6505),c=r(7058),d=r(20311),f=r(96540),h=f.useCallback,p=f.useContext,_=f.useReducer,v=r(69487),g=v.__internal.fetchQuery,m=v.createOperationDescriptor,y=v.getFragmentIdentifier,b=v.getRefetchMetadata,E=v.getSelector,R=v.getValueAtPath;function S(e,t){switch(t.type){case"refetch":var r;return(0,n.default)((0,n.default)({},e),{},{fetchPolicy:t.fetchPolicy,mirroredEnvironment:null!==(r=t.refetchEnvironment)&&void 0!==r?r:e.mirroredEnvironment,onComplete:t.onComplete,refetchEnvironment:t.refetchEnvironment,refetchQuery:t.refetchQuery,renderPolicy:t.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:t.environment,mirroredFragmentIdentifier:t.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw t.type,Error("useRefetchableFragmentNode: Unexpected action type")}}r(14594),e.exports=function(e,t,r){var f,v,I=c(),D=b(e,r),k=D.refetchableRequest,C=D.fragmentRefPathInResponse,P=D.identifierInfo,A=y(e,t),O=_(S,{fetchPolicy:void 0,mirroredEnvironment:I,mirroredFragmentIdentifier:A,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),F=O[0],T=O[1],x=F.fetchPolicy,N=F.mirroredEnvironment,L=F.mirroredFragmentIdentifier,w=F.onComplete,M=F.refetchEnvironment,V=F.refetchQuery,U=F.renderPolicy,q=null!=M?M:I,j=a(q),Q=p(i),K=q!==N||A!==L,B=u(k),Y=B[0],G=B[1],H=B[2],z=t;if(K)T({type:"reset",environment:q,fragmentIdentifier:A}),H();else if(null!=V&&null!=Y){var W=function(e){w&&w(null!=e?e:null)},X=null!=Y.source?Y.source:g(q,V),J=Q.wrapPrepareQueryResource(function(){return j.prepare(V,X,x,U,{error:W,complete:function(){W()}},Y.fetchKey,Q)}),$=o(q,J.fragmentNode,J.fragmentRef,r).data;null!=$||d(!1),z=R($,C)}var Z=s(e,z,r),ee=(f=l(),h(function(r,i){if(!0!==f.current)return{dispose:function(){}};var a,o,s,l,u,c,d=null==i?void 0:i.__environment,h=null==i?void 0:i.fetchPolicy,p=null==i?void 0:i.UNSTABLE_renderPolicy,_=null==i?void 0:i.onComplete,g=E(e,t);null==g?(a={},o={}):"PluralReaderSelector"===g.kind?(a=null!==(s=null===(l=g.selectors[0])||void 0===l?void 0:l.owner.variables)&&void 0!==s?s:{},o=null!==(u=null===(c=g.selectors[0])||void 0===c?void 0:c.variables)&&void 0!==u?u:{}):(a=g.owner.variables,o=g.variables);var y=(0,n.default)((0,n.default)((0,n.default)({},a),o),r);null==P||r.hasOwnProperty(P.identifierQueryVariableName)||(y[P.identifierQueryVariableName]=v);var b=m(k,y,{force:!0});return G(b.request.variables,{fetchPolicy:h,__environment:d,__nameForWarning:"refetch"}),T({type:"refetch",fetchPolicy:h,onComplete:_,refetchEnvironment:d,refetchQuery:b,renderPolicy:p}),{dispose:H}},[A,T,H,v=(null==P?void 0:P.identifierField)!=null&&null!=Z&&"object"==typeof Z?Z[P.identifierField]:null,G]));return{fragmentData:Z,fragmentRef:z,refetch:ee}}},7058:(e,t,r)=>{"use strict";var n=r(84367),i=r(20311),a=r(96540).useContext;e.exports=function(){var e=a(n);return null!=e||i(!1),e.environment}},59567:(e,t,r)=>{"use strict";var n=r(82382),i=r(96540).useContext;e.exports=function(){return i(n)}},40976:(e,t,r)=>{"use strict";r(30709),r(14594),e.exports=function(e,t){}},53386:(e,t,r)=>{"use strict";var n=r(7058),i=r(96540),a=i.useEffect,o=i.useRef;e.exports=function(e,t){var r=n(),i=o(null);return a(function(){var n=r.getStore(),a=n.lookupInvalidationState(e),o=n.subscribeToInvalidationState(a,t);return i.current=o,function(){return o.dispose()}},[Array.from(e).sort().join(""),t,r]),{dispose:function(){null!=i.current&&i.current.dispose()}}}},91529:(e,t,r)=>{"use strict";var n=r(7058),i=r(96540).useEffect,a=r(69487).requestSubscription;e.exports=function(e,t){var r=null!=t?t:a,o=n();i(function(){return r(o,e).dispose},[o,e,r])}},30709:(e,t,r)=>{"use strict";var n=r(96540).useMemo;e.exports=function(e){return n(function(){return{current:e}},[])}},69487:(e,t,r)=>{e.exports=r(87055)},40541:(e,t,r)=>{"use strict";var n=r(150),i=r(55199).observeFragment,a=r(90931).observeQuery,o=r(3971).waitForFragmentData;e.exports={resolverDataInjector:n,isValueResult:function(e){return!0===e.ok},isErrorResult:function(e){return!1===e.ok},observeQuery:a,observeFragment:i,waitForFragmentData:o}},1190:(e,t,r)=>{"use strict";var n=r(99390),i=r(61798),a=r(20311);e.exports=function(e){switch(e){case"connection":return n;case"deleteRecord":return i.DeleteRecordHandler;case"deleteEdge":return i.DeleteEdgeHandler;case"appendEdge":return i.AppendEdgeHandler;case"prependEdge":return i.PrependEdgeHandler;case"appendNode":return i.AppendNodeHandler;case"prependNode":return i.PrependNodeHandler}a(!1)}},99390:(e,t,r)=>{"use strict";var n=r(84895).generateClientID,i=r(41046).getStableStorageKey,a=r(9130),o=r(90805),s=r(20311);r(14594);var l="connection",u="__connection_next_edge_index";function c(e,t,r){if(null==r)return r;var i=o.get().EDGES,a=t.getValue(u);"number"!=typeof a&&s(!1);var l=n(t.getDataID(),i,a),c=e.create(l,r.getType());return c.copyFieldsFrom(r),null==c.getValue("cursor")&&c.setValue(null,"cursor"),t.setValue(a+1,u),c}function d(e,t,r){for(var n=o.get().NODE,i=0;i{"use strict";var t={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},r={CURSOR:"cursor",EDGES:"edges",END_CURSOR:"endCursor",HAS_NEXT_PAGE:"hasNextPage",HAS_PREV_PAGE:"hasPreviousPage",NODE:"node",PAGE_INFO_TYPE:"PageInfo",PAGE_INFO:"pageInfo",START_CURSOR:"startCursor"};e.exports={inject:function(e){r=e},get:function(){return r},isConnectionCall:function(e){return t.hasOwnProperty(e.name)}}},61798:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(50883)),i=r(99390),a=r(90805),o=r(20311);r(14594);var s={update:d(i.insertEdgeAfter)},l={update:d(i.insertEdgeBefore)},u={update:f(i.insertEdgeAfter)},c={update:f(i.insertEdgeBefore)};function d(e){return function(t,r){var s=t.get(r.dataID);if(null!=s){var l=r.handleArgs.connections;null!=l||o(!1);try{c=s.getLinkedRecord(r.fieldKey)}catch(e){}if(!c)try{d=s.getLinkedRecords(r.fieldKey)}catch(e){}if(null!=c||null!=d){var u,c,d,f,h=a.get(),p=h.NODE,_=h.EDGES,v=null!==(u=d)&&void 0!==u?u:[c],g=(0,n.default)(v);try{for(g.s();!(f=g.n()).done;){var m,y=function(){var r=f.value;if(null==r)return"continue";var a=r.getLinkedRecord("node");if(!a)return"continue";var s,u=a.getDataID(),c=(0,n.default)(l);try{for(c.s();!(s=c.n()).done;){var d=s.value,h=t.get(d);if(!(null==h||(null===(m=h.getLinkedRecords(_))||void 0===m?void 0:m.some(function(e){var t;return(null==e?void 0:null===(t=e.getLinkedRecord(p))||void 0===t?void 0:t.getDataID())===u})))){var v=i.buildConnectionEdge(t,h,r);null!=v||o(!1),e(h,v)}}}catch(e){c.e(e)}finally{c.f()}}();if("continue"===y)continue}}catch(e){g.e(e)}finally{g.f()}}}}}function f(e){return function(t,r){var s=t.get(r.dataID);if(null!=s){var l=r.handleArgs,u=l.connections,c=l.edgeTypeName;null!=u||o(!1),null!=c||o(!1);try{f=s.getLinkedRecord(r.fieldKey)}catch(e){}if(!f)try{h=s.getLinkedRecords(r.fieldKey)}catch(e){}if(null!=f||null!=h){var d,f,h,p,_=a.get(),v=_.NODE,g=_.EDGES,m=null!==(d=h)&&void 0!==d?d:[f],y=(0,n.default)(m);try{for(y.s();!(p=y.n()).done;){var b,E=function(){var r=p.value;if(null==r)return"continue";var a,s=r.getDataID(),l=(0,n.default)(u);try{for(l.s();!(a=l.n()).done;){var d=a.value,f=t.get(d);if(!(null==f||(null===(b=f.getLinkedRecords(g))||void 0===b?void 0:b.some(function(e){var t;return(null==e?void 0:null===(t=e.getLinkedRecord(v))||void 0===t?void 0:t.getDataID())===s})))){var h=i.createEdge(t,f,r,c);null!=h||o(!1),e(f,h)}}}catch(e){l.e(e)}finally{l.f()}}();if("continue"===E)continue}}catch(e){y.e(e)}finally{y.f()}}}}}e.exports={AppendEdgeHandler:s,DeleteRecordHandler:{update:function(e,t){var r=e.get(t.dataID);if(null!=r){var n=r.getValue(t.fieldKey);"string"==typeof n?e.delete(n):Array.isArray(n)&&n.forEach(function(t){"string"==typeof t&&e.delete(t)})}}},PrependEdgeHandler:l,AppendNodeHandler:u,PrependNodeHandler:c,DeleteEdgeHandler:{update:function(e,t){var r=e.get(t.dataID);if(null!=r){var a=t.handleArgs.connections;null!=a||o(!1);var s=r.getValue(t.fieldKey);(Array.isArray(s)?s:[s]).forEach(function(t){if("string"==typeof t){var r,o=(0,n.default)(a);try{for(o.s();!(r=o.n()).done;){var s=r.value,l=e.get(s);null!=l&&i.deleteNode(l,t)}}catch(e){o.e(e)}finally{o.f()}}})}}}}},87055:(e,t,r)=>{"use strict";var n=r(40541),i=n.isErrorResult,a=n.isValueResult,o=r(99390),s=r(90805),l=r(61798),u=r(1190),c=r(17658),d=r(28153),f=r(91040),h=r(98976),p=r(69981),_=r(12006),v=r(83904),g=r(43874),m=r(14672),y=r(94987),b=r(53141),E=r(10846),R=r(84895),S=R.generateClientID,I=R.generateUniqueClientID,D=R.isClientID,k=r(87864),C=r(13029),P=r(56156),A=r(81582),O=r(89452),F=O.isSuspenseSentinel,T=O.suspenseSentinel,x=r(47161),N=r(31424),L=r(83798),w=r(21090),M=r(32115),V=r(38742),U=r(95814),q=r(65922),j=r(52471),Q=r(53968),K=r(41046),B=r(14358),Y=r(63318),G=r(44881),H=r(69826),z=r(15519),W=r(66107),X=r(79233),J=r(79115),$=r(50172),Z=r(5580),ee=r(9130),et=r(54736),er=r(25285),en=r(57595).handlePotentialSnapshotErrors,ei=r(18621),ea=r(32877),eo=r(57042),es=r(79642),el=r(96991),eu=r(91011),ec=r(884),ed=r(7044),ef=r(85252),eh=r(8312),ep=eh.hasCycle,e_=eh.stableCopy,ev=r(34556);e.exports={Environment:w,Network:p,Observable:_,QueryResponseCache:v,RecordSource:Q,Record:V,ReplaySubject:ef,Store:q,areEqualSelectors:U.areEqualSelectors,createFragmentSpecResolver:k,createNormalizationSelector:U.createNormalizationSelector,createOperationDescriptor:M.createOperationDescriptor,createReaderSelector:U.createReaderSelector,createRequestDescriptor:M.createRequestDescriptor,getArgumentValues:K.getArgumentValues,getDataIDsFromFragment:U.getDataIDsFromFragment,getDataIDsFromObject:U.getDataIDsFromObject,getNode:b.getNode,getFragment:b.getFragment,getInlineDataFragment:b.getInlineDataFragment,getModuleComponentKey:K.getModuleComponentKey,getModuleOperationKey:K.getModuleOperationKey,getPaginationFragment:b.getPaginationFragment,getPluralSelector:U.getPluralSelector,getRefetchableFragment:b.getRefetchableFragment,getRequest:b.getRequest,getRequestIdentifier:et,getSelector:U.getSelector,getSelectorsFromObject:U.getSelectorsFromObject,getSingularSelector:U.getSingularSelector,getStorageKey:K.getStorageKey,getVariablesFromFragment:U.getVariablesFromFragment,getVariablesFromObject:U.getVariablesFromObject,getVariablesFromPluralFragment:U.getVariablesFromPluralFragment,getVariablesFromSingularFragment:U.getVariablesFromSingularFragment,handlePotentialSnapshotErrors:en,graphql:b.graphql,isErrorResult:i,isValueResult:a,isFragment:b.isFragment,isInlineDataFragment:b.isInlineDataFragment,isSuspenseSentinel:F,suspenseSentinel:T,isRequest:b.isRequest,readInlineData:N,readFragment:B.readFragment,MutationTypes:h.MutationTypes,RangeOperations:h.RangeOperations,DefaultHandlerProvider:u,ConnectionHandler:o,MutationHandlers:l,VIEWER_ID:Y.VIEWER_ID,VIEWER_TYPE:Y.VIEWER_TYPE,applyOptimisticMutation:c,commitLocalUpdate:d,commitMutation:f,fetchQuery:g,fetchQuery_DEPRECATED:m,isRelayModernEnvironment:A,requestSubscription:G,ConnectionInterface:s,PreloadableQueryRegistry:E,RelayProfiler:ed,createPayloadFor3DField:H,RelayConcreteNode:es,RelayError:eu,RelayFeatureFlags:ec,DEFAULT_HANDLE_KEY:el.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:K.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:K.FRAGMENT_OWNER_KEY,ID_KEY:K.ID_KEY,REF_KEY:K.REF_KEY,REFS_KEY:K.REFS_KEY,ROOT_ID:K.ROOT_ID,ROOT_TYPE:K.ROOT_TYPE,TYPENAME_KEY:K.TYPENAME_KEY,deepFreeze:z,generateClientID:S,generateUniqueClientID:I,getRelayHandleKey:ee,isClientID:D,isPromise:ei,isScalarAndEqual:ea,recycleNodesInto:eo,stableCopy:e_,hasCycle:ep,getFragmentIdentifier:W,getRefetchMetadata:Z,getPaginationMetadata:X,getPaginationVariables:J,getPendingOperationsForFragment:$,getValueAtPath:er,__internal:{ResolverFragments:B,OperationTracker:j,createRelayContext:C,createRelayLoggingContext:P,getOperationVariables:L.getOperationVariables,getLocalVariables:L.getLocalVariables,fetchQuery:y.fetchQuery,fetchQueryDeduped:y.fetchQueryDeduped,getPromiseForActiveRequest:y.getPromiseForActiveRequest,getObservableForActiveRequest:y.getObservableForActiveRequest,normalizeResponse:x,withProvidedVariables:ev}}},89687:(e,t,r)=>{"use strict";var n=r(20311),i="INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE";e.exports={assertInternalActorIdentifier:function(e){e!==i&&n(!1)},getActorIdentifier:function(e){return e},getDefaultActorIdentifier:function(){throw Error("Not Implemented")},INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE:i}},26611:(e,t,r)=>{"use strict";var n="actor_key",i=r(89687).getActorIdentifier;e.exports={ACTOR_IDENTIFIER_FIELD_NAME:n,getActorIdentifierFromPayload:function(e){if(null!=e&&"object"==typeof e&&"string"==typeof e[n])return i(e[n])}}},98976:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(50883)),i=r(99390);r(14594);var a=Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE"}),o=Object.freeze({APPEND:"append",PREPEND:"prepend"});function s(e){return e.fragment.selections&&e.fragment.selections.length>0&&"LinkedField"===e.fragment.selections[0].kind?e.fragment.selections[0].name:null}e.exports={MutationTypes:a,RangeOperations:o,convert:function(e,t,r,a){var o=r?[r]:[],l=a?[a]:[];return e.forEach(function(e){switch(e.type){case"NODE_DELETE":var r,a,u=(r=e.deletedIDFieldName,(a=s(t))?function(e,t){var n=e.getRootField(a);if(n){var i=n.getValue(r);(Array.isArray(i)?i:[i]).forEach(function(t){t&&"string"==typeof t&&e.delete(t)})}}:null);u&&(o.push(u),l.push(u));break;case"RANGE_ADD":var c=function(e,t){var r=e.parentID,a=e.connectionInfo,o=e.edgeName;if(!r)return null;var l=s(t);return a&&l?function(e,t){var s=e.get(r);if(s){var u=e.getRootField(l);if(u){var c,d=u.getLinkedRecord(o),f=(0,n.default)(a);try{for(f.s();!(c=f.n()).done;){var h=c.value;if(d){var p=i.getConnection(s,h.key,h.filters);if(p){var _=i.buildConnectionEdge(e,p,d);if(_)switch(h.rangeBehavior){case"append":i.insertEdgeAfter(p,_);break;case"prepend":i.insertEdgeBefore(p,_)}}}}}catch(e){f.e(e)}finally{f.f()}}}}:null}(e,t);c&&(o.push(c),l.push(c));break;case"RANGE_DELETE":var d=function(e,t){var r=e.parentID,a=e.connectionKeys,o=e.pathToConnection,l=e.deletedIDFieldName;if(!r)return null;var u=s(t);return u?function(e,t){if(t){var s=[],c=t[u];if(c&&Array.isArray(l)){var d,f=(0,n.default)(l);try{for(f.s();!(d=f.n()).done;){var h=d.value;c&&"object"==typeof c&&(c=c[h])}}catch(e){f.e(e)}finally{f.f()}Array.isArray(c)?c.forEach(function(e){e&&e.id&&"object"==typeof e&&"string"==typeof e.id&&s.push(e.id)}):c&&c.id&&"string"==typeof c.id&&s.push(c.id)}else c&&"string"==typeof l&&"object"==typeof c&&("string"==typeof(c=c[l])?s.push(c):Array.isArray(c)&&c.forEach(function(e){"string"==typeof e&&s.push(e)}));(function(e,t,r,a,o){var s=a.get(e);if(s&&!(r.length<2)){for(var l=s,u=1;u{"use strict";var n=r(84895).generateClientID,i=r(41046).getStableStorageKey,a=r(20311),o=function(){function e(e,t,r){this._dataID=r,this._mutator=t,this._source=e}var t=e.prototype;return t.copyFieldsFrom=function(e){this._mutator.copyFields(e.getDataID(),this._dataID)},t.getDataID=function(){return this._dataID},t.getType=function(){var e=this._mutator.getType(this._dataID);return null!=e||a(!1),e},t.getValue=function(e,t){var r=i(e,t);return this._mutator.getValue(this._dataID,r)},t.setValue=function(e,t,r,n){return function e(t){return null==t||"object"!=typeof t||Array.isArray(t)&&t.every(e)}(e)||a(!1),this.setValue__UNSAFE(e,t,r,n)},t.getErrors=function(e,t){var r=i(e,t);return this._mutator.getErrors(this._dataID,r)},t.setValue__UNSAFE=function(e,t,r,n){var a=i(t,r);return this._mutator.setValue(this._dataID,a,e),null!=n&&(0===n.length?this._mutator.setErrors(this._dataID,a):this._mutator.setErrors(this._dataID,a,n)),this},t.getLinkedRecord=function(e,t){var r=i(e,t),n=this._mutator.getLinkedRecordID(this._dataID,r);return null!=n?this._source.get(n):n},t.setLinkedRecord=function(t,r,n){t instanceof e||a(!1);var o=i(r,n),s=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,o,s),this},t.getOrCreateLinkedRecord=function(e,t,r){var a=this.getLinkedRecord(e,r);if(!a){var o,s=i(e,r),l=n(this.getDataID(),s);a=null!==(o=this._source.get(l))&&void 0!==o?o:this._source.create(l,t),this.setLinkedRecord(a,e,r)}return a},t.getLinkedRecords=function(e,t){var r=this,n=i(e,t),a=this._mutator.getLinkedRecordIDs(this._dataID,n);return null==a?a:a.map(function(e){return null!=e?r._source.get(e):e})},t.setLinkedRecords=function(e,t,r){Array.isArray(e)||a(!1);var n=i(t,r),o=e.map(function(e){return e&&e.getDataID()});return this._mutator.setLinkedRecordIDs(this._dataID,n,o),this},t.invalidateRecord=function(){this._source.markIDForInvalidation(this._dataID)},e}();e.exports=o},19719:(e,t,r)=>{"use strict";var n=r(38742),i=r(21304).EXISTENT,a=r(20311),o=function(){function e(e,t){this.__sources=[t,e],this._base=e,this._sink=t}var t=e.prototype;return t.unstable_getRawRecordWithChanges=function(e){var t=this._base.get(e),r=this._sink.get(e);return void 0===r?null==t?t:n.clone(t):null===r?null:null!=t?n.update(t,r):n.clone(r)},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var r=this._base.get(e);r||a(!1),t=n.create(e,n.getType(r)),this._sink.set(e,t)}return t},t.copyFields=function(e,t){var r=this._sink.get(e),i=this._base.get(e);r||i||a(!1);var o=this._getSinkRecord(t);i&&n.copyFields(i,o),r&&n.copyFields(r,o)},t.copyFieldsFromRecord=function(e,t){var r=this._getSinkRecord(t);n.copyFields(e,r)},t.create=function(e,t){this._base.getStatus(e)!==i&&this._sink.getStatus(e)!==i||a(!1);var r=n.create(e,t);this._sink.set(e,r)},t.delete=function(e){this._sink.delete(e)},t.getStatus=function(e){return this._sink.has(e)?this._sink.getStatus(e):this._base.getStatus(e)},t.getType=function(e){for(var t=0;t{"use strict";var n=r(38742),i=r(21304),a=i.EXISTENT,o=i.NONEXISTENT,s=r(41046),l=s.ROOT_ID,u=s.ROOT_TYPE,c=r(72226).readUpdatableFragment,d=r(34364).readUpdatableQuery,f=r(77650),h=r(20311),p=function(){function e(e,t,r,n,i){this.__mutator=e,this._handlerProvider=r||null,this._proxies={},this._getDataID=t,this._invalidatedStore=!1,this._idsMarkedForInvalidation=new Set,this._missingFieldHandlers=n,this._log=null!=i?i:function(e){}}var t=e.prototype;return t.publishSource=function(e,t){var r=this;e.getRecordIDs().forEach(function(t){var i=e.getStatus(t);if(i===a){var s=e.get(t);s&&(r.__mutator.getStatus(t)!==a&&r.create(t,n.getType(s)),r.__mutator.copyFieldsFromRecord(s,t))}else i===o&&r.delete(t)}),t&&t.length&&t.forEach(function(e){var t=r._handlerProvider&&r._handlerProvider(e.handle);t||h(!1),t.update(r,e)})},t.create=function(e,t){this.__mutator.create(e,t),delete this._proxies[e];var r=this.get(e);return r||h(!1),r},t.delete=function(e){e!==l||h(!1),delete this._proxies[e],this.__mutator.delete(e)},t.get=function(e){if(!this._proxies.hasOwnProperty(e)){var t=this.__mutator.getStatus(e);t===a?this._proxies[e]=new f(this,this.__mutator,e):this._proxies[e]=t===o?null:void 0}return this._proxies[e]},t.getRoot=function(){var e=this.get(l);return e||(e=this.create(l,u)),e&&e.getType()===u||h(!1),e},t.invalidateStore=function(){this._invalidatedStore=!0},t.isStoreMarkedForInvalidation=function(){return this._invalidatedStore},t.markIDForInvalidation=function(e){this._idsMarkedForInvalidation.add(e)},t.getIDsMarkedForInvalidation=function(){return this._idsMarkedForInvalidation},t.readUpdatableQuery=function(e,t){return d(e,t,this,this._missingFieldHandlers)},t.readUpdatableFragment=function(e,t){return c(e,t,this,this._missingFieldHandlers)},e}();e.exports=p},10962:(e,t,r)=>{"use strict";var n=r(41046),i=n.ROOT_TYPE,a=n.getStorageKey,o=r(72226).readUpdatableFragment,s=r(34364).readUpdatableQuery,l=r(20311),u=function(){function e(e,t,r,n){this.__mutator=e,this.__recordSource=t,this._readSelector=r,this._missingFieldHandlers=n}var t=e.prototype;return t.create=function(e,t){return this.__recordSource.create(e,t)},t.delete=function(e){this.__recordSource.delete(e)},t.get=function(e){return this.__recordSource.get(e)},t.getRoot=function(){return this.__recordSource.getRoot()},t.getOperationRoot=function(){var e=this.__recordSource.get(this._readSelector.dataID);return e||(e=this.__recordSource.create(this._readSelector.dataID,i)),e},t._getRootField=function(e,t,r){var n=e.node.selections.find(function(e){return"LinkedField"===e.kind&&e.name===t||"RequiredField"===e.kind&&e.field.name===t});return n&&"RequiredField"===n.kind&&(n=n.field),n&&"LinkedField"===n.kind||l(!1),n.plural!==r&&l(!1),n},t.getRootField=function(e){var t=a(this._getRootField(this._readSelector,e,!1),this._readSelector.variables);return this.getOperationRoot().getLinkedRecord(t)},t.getPluralRootField=function(e){var t=a(this._getRootField(this._readSelector,e,!0),this._readSelector.variables);return this.getOperationRoot().getLinkedRecords(t)},t.invalidateStore=function(){this.__recordSource.invalidateStore()},t.readUpdatableQuery=function(e,t){return s(e,t,this,this._missingFieldHandlers)},t.readUpdatableFragment=function(e,t){return o(e,t,this,this._missingFieldHandlers)},e}();e.exports=u},17658:(e,t,r)=>{"use strict";var n=r(53141).getRequest,i=r(81582),a=r(32115).createOperationDescriptor,o=r(98976),s=r(20311);e.exports=function(e,t){i(e)||s(!1);var r=n(t.mutation);if("mutation"!==r.params.operationKind)throw Error("commitMutation: Expected mutation operation");var l=t.optimisticUpdater,u=t.configs,c=t.optimisticResponse,d=a(r,t.variables);return u&&(l=o.convert(u,r,l).optimisticUpdater),e.applyMutation({operation:d,response:c,updater:l})}},28153:e=>{"use strict";e.exports=function(e,t){e.commitUpdate(t)}},91040:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(41132)),i=r(53141).getRequest,a=r(84895).generateUniqueClientID,o=r(81582),s=r(32115).createOperationDescriptor,l=r(98976);r(85671);var u=r(20311);r(14594),e.exports=function(e,t){o(e)||u(!1);var r=i(t.mutation);if("mutation"!==r.params.operationKind)throw Error("commitMutation: Expected mutation operation");if("Request"!==r.kind)throw Error("commitMutation: Expected mutation to be of type request");var c=t.optimisticResponse,d=t.optimisticUpdater,f=t.updater,h=t.configs,p=t.cacheConfig,_=t.onError,v=t.onUnsubscribe,g=t.variables,m=t.uploadables,y=s(r,g,p,a());if("function"==typeof c&&(c=c()),h){var b=l.convert(h,r,d,f);d=b.optimisticUpdater,f=b.updater}var E=[];return{dispose:e.executeMutation({operation:y,optimisticResponse:c,optimisticUpdater:d,updater:f,uploadables:m}).subscribe({next:function(e){var r;Array.isArray(e)?e.forEach(function(e){e.errors&&E.push.apply(E,(0,n.default)(e.errors))}):e.errors&&E.push.apply(E,(0,n.default)(e.errors)),null===(r=t.onNext)||void 0===r||r.call(t)},complete:function(){var r=t.onCompleted;r&&r(e.lookup(y.fragment).data,0!==E.length?E:null)},error:_,unsubscribe:v}).unsubscribe}}},75780:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(50883)),i=r(41046).getArgumentValues,a=["id","__id","__typename","js"];e.exports={createUpdatableProxy:function(e,t,r,o,s){var l={};return function e(t,r,o,s,l,u){var c,d,f,h,p=(0,n.default)(s);try{for(p.s();!(h=p.n()).done;)!function(){var s=h.value;switch(s.kind){case"LinkedField":s.plural?Object.defineProperty(t,null!==(c=s.alias)&&void 0!==c?c:s.name,{get:function(t,r,a,o,s){return function(){var l,u=i(null!==(l=t.args)&&void 0!==l?l:[],r),c=a.getLinkedRecords(t.name,u);return(void 0===c&&(c=function(e,t,r,i,a){var o,s=(0,n.default)(a);try{for(s.s();!(o=s.n()).done;){var l=o.value;if("pluralLinked"===l.kind){var u=l.handle(e,r,t,i);if(null!=u)return u.map(function(e){if(null!=e)return i.get(e)})}}}catch(e){s.e(e)}finally{s.f()}}(t,u,a,o,s)),null!=c)?c.map(function(n){if(null==n)return n;var i={};return e(i,n,r,t.selections,o,s),i}):c}}(s,o,r,l,u),set:function(e,t,r,n){return function(a){var o,s=i(null!==(o=e.args)&&void 0!==o?o:[],t);if(null==a)throw Error("Do not assign null to plural linked fields; assign an empty array instead.");var l=a.map(function(e){if(null==e)throw Error("When assigning an array of items, none of the items should be null or undefined.");var t=e.__id;if(null==t)throw Error("The __id field must be present on each item passed to the setter. This indicates a bug in Relay.");var r=n.get(t);if(null==r)throw Error("Did not find item with data id ".concat(t," in the store."));return r});r.setLinkedRecords(l,e.name,s)}}(s,o,r,l)}):Object.defineProperty(t,null!==(d=s.alias)&&void 0!==d?d:s.name,{get:function(t,r,a,o,s){return function(){var l,u=i(null!==(l=t.args)&&void 0!==l?l:[],r),c=a.getLinkedRecord(t.name,u);if(void 0===c&&(c=function(e,t,r,i,a){var o,s=(0,n.default)(a);try{for(s.s();!(o=s.n()).done;){var l=o.value;if("linked"===l.kind){var u=l.handle(e,r,t,i);if(null!=u)return i.get(u)}}}catch(e){s.e(e)}finally{s.f()}}(t,u,a,o,s)),null==c)return c;var d={};return e(d,c,r,t.selections,o,s),d}}(s,o,r,l,u),set:function(e,t,r,n){return function(a){var o,s=i(null!==(o=e.args)&&void 0!==o?o:[],t);if(null==a)r.setValue(a,e.name,s);else{var l=a.__id;if(null==l)throw Error("The __id field must be present on the argument. This indicates a bug in Relay.");var u=n.get(l);if(null==u)throw Error("Did not find item with data id ".concat(l," in the store."));r.setLinkedRecord(u,e.name,s)}}}(s,o,r,l)});break;case"ScalarField":var p=null!==(f=s.alias)&&void 0!==f?f:s.name;Object.defineProperty(t,p,{get:function(){var e,t=i(null!==(e=s.args)&&void 0!==e?e:[],o),a=r.getValue(s.name,t);return null==a&&(a=function(e,t,r,i,a){var o,s=(0,n.default)(a);try{for(s.s();!(o=s.n()).done;){var l=o.value;if("scalar"===l.kind){var u=l.handle(e,r,t,i);if(void 0!==u)return u}}}catch(e){s.e(e)}finally{s.f()}}(s,t,r,l,u)),a},set:a.includes(s.name)?void 0:function(e){var t,n=i(null!==(t=s.args)&&void 0!==t?t:[],o);r.setValue__UNSAFE(e,s.name,n)}});break;case"InlineFragment":r.getType()===s.type&&e(t,r,o,s.selections,l,u);break;case"ClientExtension":e(t,r,o,s.selections,l,u);break;case"FragmentSpread":break;case"Condition":case"ActorChange":case"InlineDataFragmentSpread":case"AliasedInlineFragmentSpread":case"ClientEdgeToClientObject":case"ClientEdgeToServerObject":case"Defer":case"ModuleImport":case"RequiredField":case"CatchField":case"Stream":case"RelayResolver":case"RelayLiveResolver":throw Error("Encountered an unexpected ReaderSelection variant in RelayRecordSourceProxy. This indicates a bug in Relay.");default:throw s.kind,Error("Encountered an unexpected ReaderSelection variant in RelayRecordSourceProxy. This indicates a bug in Relay.")}}()}catch(e){p.e(e)}finally{p.f()}}(l,e,t,r,o,s),l}}},72226:(e,t,r)=>{"use strict";var n=r(53141).getFragment,i=r(95814).getVariablesFromFragment,a=r(41046).ID_KEY,o=r(75780).createUpdatableProxy,s=r(20311);e.exports={readUpdatableFragment:function(e,t,r,l){var u=n(e),c=i(u,t),d=t[a],f=r.get(d);return null!=f||s(!1),{updatableData:o(f,c,u.selections,r,l)}}}},34364:(e,t,r)=>{"use strict";var n=r(53141).getUpdatableQuery,i=r(75780).createUpdatableProxy;e.exports={readUpdatableQuery:function(e,t,r,a){var o=n(e);return{updatableData:i(r.getRoot(),t,o.fragment.selections,r,a)}}}},85671:(e,t,r)=>{"use strict";(0,r(24994).default)(r(12897)),r(14594),Object.prototype.hasOwnProperty,e.exports=function(){}},59537:(e,t,r)=>{"use strict";var n=r(12006);e.exports={convertFetch:function(e){return function(t,r,i,a,o){var s=e(t,r,i,a,o);return s instanceof Error?n.create(function(e){return e.error(s)}):n.from(s)}}}},69981:(e,t,r)=>{"use strict";var n=r(34556),i=r(59537).convertFetch,a=r(20311);e.exports={create:function(e,t){var r=i(e);return{execute:function(e,i,o,s,l){var u=n(i,e.providedVariables);if("subscription"===e.operationKind)return t||a(!1),s&&a(!1),t(e,u,o);var c=o.poll;return null!=c?(s&&a(!1),r(e,u,{force:!0}).poll(c)):r(e,u,o,s,l)}}}}},12006:(e,t,r)=>{"use strict";var n=r(18621),i=function(e,t){},a=function(){function e(e){this._source=e}e.create=function(t){return new e(t)},e.onUnhandledError=function(e){i=e},e.from=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe?e instanceof a?e:a.create(function(t){return e.subscribe(t)}):n(e)?a.create(function(t){e.then(function(e){t.next(e),t.complete()},t.error)}):a.create(function(t){t.next(e),t.complete()})};var t=e.prototype;return t.catch=function(t){var r=this;return e.create(function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:function(r){try{t(r).subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:e.error})}catch(t){e.error(t,!0)}}}),function(){return n.unsubscribe()}})},t.concat=function(t){var r=this;return e.create(function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,error:e.error,complete:function(){n=t.subscribe(e)}}),function(){n&&n.unsubscribe()}})},t.do=function(t){var r=this;return e.create(function(e){var n=function(r){return function(){try{t[r]&&t[r].apply(t,arguments)}catch(e){i(e,!0)}e[r]&&e[r].apply(e,arguments)}};return r.subscribe({start:n("start"),next:n("next"),error:n("error"),complete:n("complete"),unsubscribe:n("unsubscribe")})})},t.finally=function(t){var r=this;return e.create(function(e){var n=r.subscribe(e);return function(){n.unsubscribe(),t()}})},t.ifEmpty=function(t){var r=this;return e.create(function(e){var n,i=!1;return n=r.subscribe({next:function(t){i=!0,e.next(t)},error:e.error,complete:function(){i?e.complete():n=t.subscribe(e)}}),function(){n&&n.unsubscribe()}})},t.subscribe=function(e){return function(e,t){var r,n=!1,a=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function o(){if(r){if(r.unsubscribe)r.unsubscribe();else try{r()}catch(e){i(e,!0)}r=void 0}}var s=a({unsubscribe:function(){if(!n){n=!0;try{t.unsubscribe&&t.unsubscribe(s)}catch(e){i(e,!0)}finally{o()}}}});try{t.start&&t.start(s)}catch(e){i(e,!0)}if(n)return s;var l=a({next:function(e){if(!n&&t.next)try{t.next(e)}catch(e){i(e,!0)}},error:function(e,r){if(n||!t.error)n=!0,i(e,r||!1),o();else{n=!0;try{t.error(e)}catch(e){i(e,!0)}finally{o()}}},complete:function(){if(!n){n=!0;try{t.complete&&t.complete()}catch(e){i(e,!0)}finally{o()}}}});try{r=e(l)}catch(e){l.error(e,!0)}return n&&o(),s}(this._source,e)},t.map=function(t){var r=this;return e.create(function(e){var n=r.subscribe({complete:e.complete,error:e.error,next:function(r){try{var n=t(r);e.next(n)}catch(t){e.error(t,!0)}}});return function(){n.unsubscribe()}})},t.mergeMap=function(t){var r=this;return e.create(function(n){var i=[];function a(e){this._sub=e,i.push(e)}function o(){i.splice(i.indexOf(this._sub),1),0===i.length&&n.complete()}return r.subscribe({start:a,next:function(r){try{n.closed||e.from(t(r)).subscribe({start:a,next:n.next,error:n.error,complete:o})}catch(e){n.error(e,!0)}},error:n.error,complete:o}),function(){i.forEach(function(e){return e.unsubscribe()}),i.length=0}})},t.poll=function(t){var r=this;return e.create(function(e){var n,i;return function a(){n=r.subscribe({next:e.next,error:e.error,complete:function(){i=setTimeout(a,t)}})}(),function(){clearTimeout(i),n.unsubscribe()}})},t.toPromise=function(){var e=this;return new Promise(function(t,r){var n=!1;e.subscribe({next:function(e){n||(n=!0,t(e))},error:r,complete:t})})},e}();e.exports=a},83904:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(12897)),i=r(8312).stableCopy,a=r(20311),o=function(){function e(e){var t=e.size,r=e.ttl;t>0||a(!1),r>0||a(!1),this._responses=new Map,this._size=t,this._ttl=r}var t=e.prototype;return t.clear=function(){this._responses.clear()},t.get=function(e,t){var r=this,i=s(e,t);this._responses.forEach(function(e,t){e.fetchTime+r._ttl>=Date.now()||r._responses.delete(t)});var a=this._responses.get(i);return null==a?null:Array.isArray(a.payload)?a.payload.map(function(e){return(0,n.default)((0,n.default)({},e),{},{extensions:(0,n.default)((0,n.default)({},e.extensions),{},{cacheTimestamp:a.fetchTime})})}):(0,n.default)((0,n.default)({},a.payload),{},{extensions:(0,n.default)((0,n.default)({},a.payload.extensions),{},{cacheTimestamp:a.fetchTime})})},t.set=function(e,t,r){var n=Date.now(),i=s(e,t);if(this._responses.delete(i),this._responses.set(i,{fetchTime:n,payload:r}),this._responses.size>this._size){var a=this._responses.keys().next();a.done||this._responses.delete(a.value)}},e}();function s(e,t){return JSON.stringify(i({queryID:e,variables:t}))}e.exports=o},37498:(e,t,r)=>{"use strict";var n=r(24428);e.exports=function(e,t){return{execute:function(r,i,a,o,s,l,u,c){var d=n();return t.execute(r,i,a,o,function(t){e.__log({name:"network.info",networkRequestId:d,info:t})},l,u,c).do({start:function(t){e.__log({name:"network.start",networkRequestId:d,params:r,variables:i,cacheConfig:a})},next:function(t){e.__log({name:"network.next",networkRequestId:d,response:t})},error:function(t){e.__log({name:"network.error",networkRequestId:d,error:t})},complete:function(){e.__log({name:"network.complete",networkRequestId:d})},unsubscribe:function(){e.__log({name:"network.unsubscribe",networkRequestId:d})}})}}}},53141:(e,t,r)=>{"use strict";var n=r(79642),i=r(20311);function a(e){var t=e;return"function"==typeof t?t=t():t.default&&(t=t.default),t}function o(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.FRAGMENT}function s(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.REQUEST}function l(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.UPDATABLE_QUERY}function u(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.INLINE_DATA_FRAGMENT}function c(e){var t=a(e);return o(t)||i(!1),t}r(14594),e.exports={getFragment:c,getNode:a,getPaginationFragment:function(e){var t,r=c(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch,i=null==n?void 0:n.connection;return null===n||"object"!=typeof n||null===i||"object"!=typeof i?null:r},getRefetchableFragment:function(e){var t,r=c(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch;return null===n||"object"!=typeof n?null:r},getRequest:function(e){var t=a(e);return s(t)||i(!1),t},getUpdatableQuery:function(e){var t=a(e);return l(t)||i(!1),t},getInlineDataFragment:function(e){var t=a(e);return u(t)||i(!1),t},graphql:function(e){i(!1)},isFragment:o,isRequest:s,isUpdatableQuery:l,isInlineDataFragment:u}},10846:e=>{"use strict";var t=new(function(){function e(){this._preloadableQueries=new Map,this._callbacks=new Map}var t=e.prototype;return t.set=function(e,t){this._preloadableQueries.set(e,t);var r=this._callbacks.get(e);null!=r&&r.forEach(function(e){try{e(t)}catch(e){setTimeout(function(){throw e},0)}})},t.get=function(e){return this._preloadableQueries.get(e)},t.onLoad=function(e,t){var r,n=null!==(r=this._callbacks.get(e))&&void 0!==r?r:new Set;return n.add(t),this._callbacks.set(e,n),{dispose:function(){n.delete(t)}}},t.clear=function(){this._preloadableQueries.clear()},e}());e.exports=t},43874:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(12897)),i=r(12006),a=r(32115).createOperationDescriptor,o=r(57595).handlePotentialSnapshotErrors,s=r(94987),l=r(53141).getRequest,u=r(20311);function c(e,t){return s.fetchQuery(e,t).map(function(){return e.lookup(t.fragment)})}e.exports=function(e,t,r,s){var d,f=l(t);"query"!==f.params.operationKind&&u(!1);var h=a(f,r,(0,n.default)({force:!0},null==s?void 0:s.networkCacheConfig)),p=null!==(d=null==s?void 0:s.fetchPolicy)&&void 0!==d?d:"network-only";function _(t){return o(e,t.fieldErrors),t.data}switch(p){case"network-only":return c(e,h).map(_);case"store-or-network":if("available"===e.check(h).status)return i.from(e.lookup(h.fragment)).map(_);return c(e,h).map(_);default:throw Error("fetchQuery: Invalid fetchPolicy "+p)}}},94987:(e,t,r)=>{"use strict";var n=r(12006),i=r(85252),a=r(20311),o="function"==typeof WeakMap?new WeakMap:new Map;function s(e,t,r){return n.create(function(o){var s,l=u(e),d=l.get(t);return d||r().finally(function(){return l.delete(t)}).subscribe({start:function(e){d={identifier:t,subject:new i,subjectForInFlightStatus:new i,subscription:e,promise:null},l.set(t,d)},next:function(e){var r=c(l,t);r.subject.next(e),r.subjectForInFlightStatus.next(e)},error:function(e){var r=c(l,t);r.subject.error(e),r.subjectForInFlightStatus.error(e)},complete:function(){var e=c(l,t);e.subject.complete(),e.subjectForInFlightStatus.complete()},unsubscribe:function(e){var r=c(l,t);r.subject.unsubscribe(),r.subjectForInFlightStatus.unsubscribe()}}),null!=d||a(!1),(s=d,n.create(function(e){var t=s.subject.subscribe(e);return function(){t.unsubscribe();var e=l.get(s.identifier);if(e){var r=e.subscription;null!=r&&0===e.subject.getObserverCount()&&(r.unsubscribe(),l.delete(s.identifier))}}})).subscribe(o)})}function l(e,t,r){return n.create(function(t){var n=r.subjectForInFlightStatus.subscribe({error:t.error,next:function(n){if(!e.isRequestActive(r.identifier)){t.complete();return}t.next()},complete:t.complete,unsubscribe:t.complete});return function(){n.unsubscribe()}})}function u(e){var t=o.get(e);if(null!=t)return t;var r=new Map;return o.set(e,r),r}function c(e,t){var r=e.get(t);return null!=r||a(!1),r}e.exports={fetchQuery:function(e,t){return s(e,t.request.identifier,function(){return e.execute({operation:t})})},fetchQueryDeduped:s,getPromiseForActiveRequest:function(e,t){var r=u(e),n=r.get(t.identifier);return n&&e.isRequestActive(n.identifier)?new Promise(function(t,i){var a=!1;l(e,r,n).subscribe({complete:t,error:i,next:function(e){a&&t(e)}}),a=!0}):null},getObservableForActiveRequest:function(e,t){var r=u(e),n=r.get(t.identifier);return n&&e.isRequestActive(n.identifier)?l(e,r,n):null}}},14672:(e,t,r)=>{"use strict";var n=r(32115).createOperationDescriptor,i=r(53141).getRequest;e.exports=function(e,t,r,a){var o=i(t);if("query"!==o.params.operationKind)throw Error("fetchQuery: Expected query operation");var s=n(o,r,a);return e.execute({operation:s}).map(function(){return e.lookup(s.fragment).data}).toPromise()}},84895:(e,t,r)=>{"use strict";var n=r(884),i=r(47424).intern,a="client:",o=0;e.exports={generateClientID:function(e,t,r){var o=(n.STRING_INTERN_LEVEL<=0?e:i(e,n.MAX_DATA_ID_LENGTH))+":"+t;return null!=r&&(o+=":"+r),0!==o.indexOf(a)&&(o=a+o),o},generateClientObjectClientID:function(e,t,r){var n="".concat(a).concat(e,":").concat(t);return null!=r&&(n+=":"+r),n},generateUniqueClientID:function(){return"".concat(a,"local:").concat(o++)},isClientID:function(e){return 0===e.indexOf(a)}}},10090:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(50883)),i=r(19719),a=r(35513),o=r(93587),s=r(84895).isClientID,l=r(89046),u=r(6162),c=r(83798).getLocalVariables,d=r(38742),f=r(21304),h=f.EXISTENT,p=f.UNKNOWN,_=r(41046),v=r(84848),g=v.TYPE_SCHEMA_TYPE,m=v.generateTypeID,y=r(20311),b=_.getModuleOperationKey,E=_.getStorageKey,R=_.getArgumentValues,S=function(){function e(e,t,r,n,i,a,o,s,l){this._getSourceForActor=e,this._getTargetForActor=t,this._getDataID=o,this._source=e(r),this._mutatorRecordSourceProxyCache=new Map;var u=this._getMutatorAndRecordProxyForActor(r),c=u[0],d=u[1];this._mostRecentlyInvalidatedAt=null,this._handlers=i,this._mutator=c,this._operationLoader=null!=a?a:null,this._recordSourceProxy=d,this._recordWasMissing=!1,this._variables=n,this._shouldProcessClientComponents=s,this._log=l}var t=e.prototype;return t._getMutatorAndRecordProxyForActor=function(e){var t=this._mutatorRecordSourceProxyCache.get(e);if(null==t){var r=this._getTargetForActor(e),n=new i(this._getSourceForActor(e),r),o=new a(n,this._getDataID,void 0,this._handlers,this._log);t=[n,o],this._mutatorRecordSourceProxyCache.set(e,t)}return t},t.check=function(e,t){return this._assignClientAbstractTypes(e),this._traverse(e,t),!0===this._recordWasMissing?{status:"missing",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}:{status:"available",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||y(!1),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._handleMissingScalarField=function(e,t){if(!("id"===e.name&&null==e.alias&&s(t))){var r,i=void 0!=e.args?R(e.args,this._variables):{},a=(0,n.default)(this._handlers);try{for(a.s();!(r=a.n()).done;){var o=r.value;if("scalar"===o.kind){var l=o.handle(e,this._recordSourceProxy.get(t),i,this._recordSourceProxy);if(void 0!==l)return l}}}catch(e){a.e(e)}finally{a.f()}this._handleMissing()}},t._handleMissingLinkField=function(e,t){var r,i=void 0!=e.args?R(e.args,this._variables):{},a=(0,n.default)(this._handlers);try{for(a.s();!(r=a.n()).done;){var o=r.value;if("linked"===o.kind){var s=o.handle(e,this._recordSourceProxy.get(t),i,this._recordSourceProxy);if(void 0!==s&&(null===s||this._mutator.getStatus(s)===h))return s}}}catch(e){a.e(e)}finally{a.f()}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var r,i=this,a=void 0!=e.args?R(e.args,this._variables):{},o=(0,n.default)(this._handlers);try{for(o.s();!(r=o.n()).done;){var s=r.value;if("pluralLinked"===s.kind){var l=s.handle(e,this._recordSourceProxy.get(t),a,this._recordSourceProxy);if(null!=l){if(l.every(function(e){return null!=e&&i._mutator.getStatus(e)===h}))return l}else if(null===l)return null}}}catch(e){o.e(e)}finally{o.f()}this._handleMissing()},t._traverse=function(e,t){var r=this._mutator.getStatus(t);if(r===p&&this._handleMissing(),r===h){var n=this._source.get(t),i=d.getInvalidationEpoch(n);null!=i&&(this._mostRecentlyInvalidatedAt=null!=this._mostRecentlyInvalidatedAt?Math.max(this._mostRecentlyInvalidatedAt,i):i),this._traverseSelections(e.selections,t)}},t._traverseSelections=function(e,t){var r=this;e.forEach(function(n){switch(n.kind){case"ScalarField":r._checkScalar(n,t);break;case"LinkedField":n.plural?r._checkPluralLink(n,t):r._checkLink(n,t);break;case"ActorChange":r._checkActorChange(n.linkedField,t);break;case"Condition":!!r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case"InlineFragment":var i=n.abstractKey;if(null==i)r._mutator.getType(t)===n.type&&r._traverseSelections(n.selections,t);else{var a=r._mutator.getType(t);null!=a||y(!1);var o=m(a),s=r._mutator.getValue(o,i);!0===s?r._traverseSelections(n.selections,t):null==s&&r._handleMissing()}break;case"LinkedHandle":var d=l(n,e,r._variables);d.plural?r._checkPluralLink(d,t):r._checkLink(d,t);break;case"ScalarHandle":var f=u(n,e,r._variables);r._checkScalar(f,t);break;case"ModuleImport":r._checkModuleImport(n,t);break;case"Defer":case"Stream":r._traverseSelections(n.selections,t);break;case"FragmentSpread":var h=r._variables;r._variables=c(r._variables,n.fragment.argumentDefinitions,n.args),r._traverseSelections(n.fragment.selections,t),r._variables=h;break;case"ClientExtension":var p=r._recordWasMissing;r._traverseSelections(n.selections,t),r._recordWasMissing=p;break;case"TypeDiscriminator":var _=n.abstractKey,v=r._mutator.getType(t);null!=v||y(!1);var g=m(v);null==r._mutator.getValue(g,_)&&r._handleMissing();break;case"ClientComponent":if(!1===r._shouldProcessClientComponents)break;r._traverseSelections(n.fragment.selections,t);break;case"RelayResolver":case"RelayLiveResolver":r._checkResolver(n,t);break;case"ClientEdgeToClientObject":r._checkResolver(n.backingField,t);break;default:y(!1)}})},t._checkResolver=function(e,t){e.fragment&&this._traverseSelections([e.fragment],t)},t._checkModuleImport=function(e,t){var r=this._operationLoader;null!==r||y(!1);var n=b(e.documentName),i=this._mutator.getValue(t,n);if(null==i){void 0===i&&this._handleMissing();return}var a=r.get(i);if(null!=a){var s=o(a),l=this._variables;this._variables=c(this._variables,s.argumentDefinitions,e.args),this._traverse(s,t),this._variables=l}else this._handleMissing()},t._checkScalar=function(e,t){var r=E(e,this._variables),n=this._mutator.getValue(t,r);void 0===n&&void 0!==(n=this._handleMissingScalarField(e,t))&&this._mutator.setValue(t,r,n)},t._checkLink=function(e,t){var r=E(e,this._variables),n=this._mutator.getLinkedRecordID(t,r);void 0===n&&(null!=(n=this._handleMissingLinkField(e,t))?this._mutator.setLinkedRecordID(t,r,n):null===n&&this._mutator.setValue(t,r,null)),null!=n&&this._traverse(e,n)},t._checkPluralLink=function(e,t){var r=this,n=E(e,this._variables),i=this._mutator.getLinkedRecordIDs(t,n);void 0===i&&(null!=(i=this._handleMissingPluralLinkField(e,t))?this._mutator.setLinkedRecordIDs(t,n,i):null===i&&this._mutator.setValue(t,n,null)),i&&i.forEach(function(t){null!=t&&r._traverse(e,t)})},t._checkActorChange=function(e,t){var r=E(e,this._variables),n=this._source.get(t),i=null!=n?d.getActorLinkedRecordID(n,r):n;if(null==i)void 0===i&&this._handleMissing();else{var a=i[0],o=i[1],s=this._source,l=this._mutator,u=this._recordSourceProxy,c=this._getMutatorAndRecordProxyForActor(a),f=c[0],h=c[1];this._source=this._getSourceForActor(a),this._mutator=f,this._recordSourceProxy=h,this._assignClientAbstractTypes(e),this._traverse(e,o),this._source=s,this._mutator=l,this._recordSourceProxy=u}},t._assignClientAbstractTypes=function(e){var t=e.clientAbstractTypes;if(null!=t)for(var r=0,i=Object.keys(t);r{"use strict";var n=r(24994).default,i=n(r(50883)),a=n(r(41132)),o=r(12006),s=r(24428),l=r(93587),u=r(91011),c=r(884),d=r(8312).stableCopy,f=r(90667),h=r(84895),p=h.generateClientID,_=h.generateUniqueClientID,v=r(83798).getLocalVariables,g=r(38742),m=r(95814),y=m.createNormalizationSelector,b=m.createReaderSelector,E=r(53968),R=r(41046),S=R.ROOT_TYPE,I=R.TYPENAME_KEY,D=R.getStorageKey,k=r(20311);r(14594);var C=function(){function e(e){var t=this,r=e.actorIdentifier,n=e.getDataID,i=e.getPublishQueue,a=e.getStore,o=e.isClientPayload,l=e.operation,u=e.operationExecutions,d=e.operationLoader,f=e.operationTracker,h=e.optimisticConfig,p=e.scheduler,_=e.shouldProcessClientComponents,v=e.sink,g=e.source,m=e.treatMissingFieldsAsNull,y=e.updater,b=e.log,E=e.normalizeResponse;this._actorIdentifier=r,this._getDataID=n,this._treatMissingFieldsAsNull=m,this._incrementalPayloadsPending=!1,this._incrementalResults=new Map,this._log=b,this._executeId=s(),this._nextSubscriptionId=0,this._operation=l,this._operationExecutions=u,this._operationLoader=d,this._operationTracker=f,this._operationUpdateEpochs=new Map,this._optimisticUpdates=null,this._pendingModulePayloadsCount=0,this._getPublishQueue=i,this._scheduler=p,this._sink=v,this._source=new Map,this._state="started",this._getStore=a,this._subscriptions=new Map,this._updater=y,this._isClientPayload=!0===o,this._isSubscriptionOperation="subscription"===this._operation.request.node.params.operationKind,this._shouldProcessClientComponents=_,this._retainDisposables=new Map,this._seenActors=new Set,this._completeFns=[],this._normalizeResponse=E;var R=this._nextSubscriptionId++;c.PROCESS_OPTIMISTIC_UPDATE_BEFORE_SUBSCRIPTION&&null!=h&&this._processOptimisticResponse(null!=h.response?{data:h.response}:null,h.updater,!1),g.subscribe({complete:function(){return t._complete(R)},error:function(e){return t._error(e)},next:function(e){try{t._next(R,e)}catch(e){v.error(e)}},start:function(e){var r;t._start(R,e),t._log({name:"execute.start",executeId:t._executeId,params:t._operation.request.node.params,variables:t._operation.request.variables,cacheConfig:null!==(r=t._operation.request.cacheConfig)&&void 0!==r?r:{}})},unsubscribe:function(){t._log({name:"execute.unsubscribe",executeId:t._executeId})}}),c.PROCESS_OPTIMISTIC_UPDATE_BEFORE_SUBSCRIPTION||null==h||this._processOptimisticResponse(null!=h.response?{data:h.response}:null,h.updater,!1)}var t=e.prototype;return t.cancel=function(){var e=this;if("completed"!==this._state){this._state="completed",this._operationExecutions.delete(this._operation.request.identifier),0!==this._subscriptions.size&&(this._subscriptions.forEach(function(e){return e.unsubscribe()}),this._subscriptions.clear());var t=this._optimisticUpdates;null!==t&&(this._optimisticUpdates=null,t.forEach(function(t){return e._getPublishQueueAndSaveActor().revertUpdate(t)}),this._runPublishQueue()),this._incrementalResults.clear(),null!=this._asyncStoreUpdateDisposable&&(this._asyncStoreUpdateDisposable.dispose(),this._asyncStoreUpdateDisposable=null),this._completeFns=[],this._completeOperationTracker(),this._disposeRetainedData()}},t._updateActiveState=function(){var e;switch(this._state){case"started":case"loading_incremental":e="active";break;case"completed":e="inactive";break;case"loading_final":e=this._pendingModulePayloadsCount>0?"active":"inactive";break;default:this._state,k(!1)}this._operationExecutions.set(this._operation.request.identifier,e)},t._schedule=function(e,t){var r=this,n=this._scheduler;if(null!=n){var i=this._nextSubscriptionId++;o.create(function(r){var i=n.schedule(function(){try{e(),r.complete()}catch(e){r.error(e)}},t);return function(){return n.cancel(i)}}).subscribe({complete:function(){return r._complete(i)},error:function(e){return r._error(e)},start:function(e){return r._start(i,e)}})}else e()},t._complete=function(e){this._subscriptions.delete(e),0===this._subscriptions.size&&(this.cancel(),this._sink.complete(),this._log({name:"execute.complete",executeId:this._executeId}))},t._error=function(e){this.cancel(),this._sink.error(e),this._log({name:"execute.error",executeId:this._executeId,error:e})},t._start=function(e,t){this._subscriptions.set(e,t),this._updateActiveState()},t._next=function(e,t){var r=this,n="loading_incremental"===this._state?"low":"default";this._schedule(function(){r._log({name:"execute.next.start",executeId:r._executeId,response:t,operation:r._operation}),r._handleNext(t),r._maybeCompleteSubscriptionOperationTracking(),r._log({name:"execute.next.end",executeId:r._executeId,response:t,operation:r._operation})},n)},t._handleErrorResponse=function(e){var t=this,r=[];return e.forEach(function(e){if(null!==e.data||null==e.extensions||e.hasOwnProperty("errors")){if(null==e.data){var n=e.hasOwnProperty("errors")&&null!=e.errors?e.errors:null,i=n?n.map(function(e){return e.message}).join("\n"):"(No errors)",a=u.create("RelayNetwork","No data returned for operation `"+t._operation.request.node.params.name+"`, got error(s):\n"+i+"\n\nSee the error `source` property for more information.");throw a.source={errors:n,operation:t._operation.request.node,variables:t._operation.request.variables},a.stack,a}r.push(e)}}),r},t._handleOptimisticResponses=function(e){if(e.length>1)return e.some(function(e){var t;return(null===(t=e.extensions)||void 0===t?void 0:t.isOptimistic)===!0})&&k(!1),!1;var t,r=e[0],n=(null===(t=r.extensions)||void 0===t?void 0:t.isOptimistic)===!0;return n&&"started"!==this._state&&k(!1),!!n&&(this._processOptimisticResponse(r,null,this._treatMissingFieldsAsNull),this._sink.next(r),!0)},t._handleNext=function(e){if("completed"!==this._state){this._seenActors.clear();var t=Array.isArray(e)?e:[e],r=this._handleErrorResponse(t);if(0===r.length){t.some(function(e){var t;return(null===(t=e.extensions)||void 0===t?void 0:t.is_final)===!0})&&(this._state="loading_final",this._updateActiveState(),this._incrementalPayloadsPending=!1),this._sink.next(e);return}if(!this._handleOptimisticResponses(r)){var n,i,a=(n=[],i=[],r.forEach(function(e){if(null!=e.path||null!=e.label){var t=e.label,r=e.path;(null==t||null==r)&&k(!1),i.push({label:t,path:r,response:e})}else n.push(e)}),[n,i]),o=a[0],s=a[1],l=o.length>0;if(l){if(this._isSubscriptionOperation){var u=_();this._operation={request:this._operation.request,fragment:b(this._operation.fragment.node,u,this._operation.fragment.variables,this._operation.fragment.owner),root:y(this._operation.root.node,u,this._operation.root.variables)}}var c=this._processResponses(o);this._processPayloadFollowups(c)}if(s.length>0){var d=this._processIncrementalResponses(s);this._processPayloadFollowups(d)}this._isSubscriptionOperation&&(null==r[0].extensions?r[0].extensions={__relay_subscription_root_id:this._operation.fragment.dataID}:r[0].extensions.__relay_subscription_root_id=this._operation.fragment.dataID);var f=this._runPublishQueue(l?this._operation:void 0);l&&this._incrementalPayloadsPending&&this._retainData(),this._updateOperationTracker(f),this._sink.next(e)}}},t._processOptimisticResponse=function(e,t,r){var n=this;if(null!==this._optimisticUpdates&&k(!1),null!=e||null!=t){var i=[];if(e){var a=this._normalizeResponse(e,this._operation.root,S,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,log:this._log,path:[],shouldProcessClientComponents:this._shouldProcessClientComponents,treatMissingFieldsAsNull:r});P(a),i.push({operation:this._operation,payload:a,updater:t}),this._processOptimisticFollowups(a,i)}else t&&i.push({operation:this._operation,payload:{errors:null,fieldPayloads:null,incrementalPlaceholders:null,followupPayloads:null,source:E.create(),isFinal:!1},updater:t});this._optimisticUpdates=i,i.forEach(function(e){return n._getPublishQueueAndSaveActor().applyUpdate(e)});var o=this._runPublishQueue();c.ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES&&this._updateOperationTracker(o)}},t._processOptimisticFollowups=function(e,t){if(e.followupPayloads&&e.followupPayloads.length){var r,n=e.followupPayloads,o=(0,i.default)(n);try{for(o.s();!(r=o.n()).done;){var s=r.value;switch(s.kind){case"ModuleImportPayload":var l=this._expectOperationLoader().get(s.operationReference);if(null==l)this._processAsyncOptimisticModuleImport(s);else{var u=this._processOptimisticModuleImport(l,s);t.push.apply(t,(0,a.default)(u))}break;case"ActorPayload":break;default:k(!1)}}}catch(e){o.e(e)}finally{o.f()}}},t._normalizeFollowupPayload=function(e,t){r="SplitOperation"===t.kind&&"ModuleImportPayload"===e.kind?v(e.variables,t.argumentDefinitions,e.args):e.variables;var r,n=y(t,e.dataID,r);return this._normalizeResponse({data:e.data},n,e.typeName,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,log:this._log,path:e.path,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents})},t._processOptimisticModuleImport=function(e,t){var r=l(e),n=[],i=this._normalizeFollowupPayload(t,r);return P(i),n.push({operation:this._operation,payload:i,updater:null}),this._processOptimisticFollowups(i,n),n},t._processAsyncOptimisticModuleImport=function(e){var t=this;this._expectOperationLoader().load(e.operationReference).then(function(r){if(null!=r&&"started"===t._state){var n,i=t._processOptimisticModuleImport(r,e);i.forEach(function(e){return t._getPublishQueueAndSaveActor().applyUpdate(e)}),null==t._optimisticUpdates||((n=t._optimisticUpdates).push.apply(n,(0,a.default)(i)),t._runPublishQueue())}})},t._processResponses=function(e){var t=this;return this._log({name:"execute.normalize.start",operation:this._operation}),null!==this._optimisticUpdates&&(this._optimisticUpdates.forEach(function(e){t._getPublishQueueAndSaveActor().revertUpdate(e)}),this._optimisticUpdates=null),this._incrementalPayloadsPending=!1,this._incrementalResults.clear(),this._source.clear(),e.map(function(e){var r=t._normalizeResponse(e,t._operation.root,S,{actorIdentifier:t._actorIdentifier,getDataID:t._getDataID,log:t._log,path:[],treatMissingFieldsAsNull:t._treatMissingFieldsAsNull,shouldProcessClientComponents:t._shouldProcessClientComponents});return t._getPublishQueueAndSaveActor().commitPayload(t._operation,r,t._updater),t._log({name:"execute.normalize.end",operation:t._operation}),r})},t._processPayloadFollowups=function(e){var t=this;"completed"!==this._state&&e.forEach(function(e){var r=e.incrementalPlaceholders,n=e.followupPayloads,i=e.isFinal;if(t._state=i?"loading_final":"loading_incremental",t._updateActiveState(),i&&(t._incrementalPayloadsPending=!1),n&&0!==n.length&&n.forEach(function(e){var r,n=t._actorIdentifier;t._actorIdentifier=null!==(r=e.actorIdentifier)&&void 0!==r?r:t._actorIdentifier,t._processFollowupPayload(e),t._actorIdentifier=n}),r&&0!==r.length&&(t._incrementalPayloadsPending="loading_final"!==t._state,r.forEach(function(r){var n,i=t._actorIdentifier;t._actorIdentifier=null!==(n=r.actorIdentifier)&&void 0!==n?n:t._actorIdentifier,t._processIncrementalPlaceholder(e,r),t._actorIdentifier=i}),t._isClientPayload||"loading_final"===t._state)){var a=[];r.forEach(function(e){"defer"===e.kind&&a.push(t._processDeferResponse(e.label,e.path,e,{data:e.data}))}),a.length>0&&t._processPayloadFollowups(a)}})},t._maybeCompleteSubscriptionOperationTracking=function(){this._isSubscriptionOperation&&0===this._pendingModulePayloadsCount&&!1===this._incrementalPayloadsPending&&this._completeOperationTracker()},t._processFollowupPayload=function(e){var t=this;switch(e.kind){case"ModuleImportPayload":var r=this._expectOperationLoader(),n=r.get(e.operationReference);if(null!=n)this._processFollowupPayloadWithNormalizationNode(e,l(n));else{var i=this._nextSubscriptionId++;this._pendingModulePayloadsCount++;var a=function(){t._pendingModulePayloadsCount--,t._maybeCompleteSubscriptionOperationTracking()},s=o.from(new Promise(function(t,n){r.load(e.operationReference).then(t,n)}));o.create(function(r){var n,i=s.subscribe({next:function(i){if(null!=i){var a=function(){try{var n=l(i),a=c.BATCH_ASYNC_MODULE_UPDATES_FN,o=null!=a&&t._pendingModulePayloadsCount>1,s=f(function(){if(t._handleFollowupPayload(e,n),o)t._scheduleAsyncStoreUpdate(a,r.complete);else{var i=t._runPublishQueue();t._updateOperationTracker(i)}}),u=(s[0],s[1]);t._log({name:"execute.async.module",executeId:t._executeId,operationName:n.name,duration:u}),o||r.complete()}catch(e){r.error(e)}},o=t._scheduler;null==o?a():n=o.schedule(a)}else r.complete()},error:r.error});return function(){i.unsubscribe(),null!=t._scheduler&&null!=n&&t._scheduler.cancel(n)}}).subscribe({complete:function(){t._complete(i),a()},error:function(e){t._error(e),a()},start:function(e){return t._start(i,e)}})}break;case"ActorPayload":this._processFollowupPayloadWithNormalizationNode(e,e.node);break;default:k(!1)}},t._processFollowupPayloadWithNormalizationNode=function(e,t){this._handleFollowupPayload(e,t),this._maybeCompleteSubscriptionOperationTracking()},t._handleFollowupPayload=function(e,t){var r=this._normalizeFollowupPayload(e,t);this._getPublishQueueAndSaveActor().commitPayload(this._operation,r),this._processPayloadFollowups([r])},t._processIncrementalPlaceholder=function(e,t){var r,n,i,a,o=t.label,s=t.path.map(String).join("."),l=this._incrementalResults.get(o);null==l&&(l=new Map,this._incrementalResults.set(o,l));var u=l.get(s),c=null!=u&&"response"===u.kind?u.responses:null;l.set(s,{kind:"placeholder",placeholder:t}),"stream"===t.kind?n=t.parentID:"defer"===t.kind?n=t.selector.dataID:k(!1);var f=e.source.get(n),h=(null!==(r=e.fieldPayloads)&&void 0!==r?r:[]).filter(function(e){var t=p(e.dataID,e.fieldKey);return e.dataID===n||t===n});null!=f||k(!1);var _=this._source.get(n);if(null!=_){i=g.update(_.record,f);var v=new Map,m=function(e){var t,r=null!==(t=JSON.stringify(d(e)))&&void 0!==t?t:"";v.set(r,e)};_.fieldPayloads.forEach(m),h.forEach(m),a=Array.from(v.values())}else i=f,a=h;if(this._source.set(n,{record:i,fieldPayloads:a}),null!=c){var y=this._processIncrementalResponses(c);this._processPayloadFollowups(y)}},t._processIncrementalResponses=function(e){var t=this,r=[];return e.forEach(function(e){var n=e.label,i=e.path,a=e.response,o=t._incrementalResults.get(n);if(null==o&&(o=new Map,t._incrementalResults.set(n,o)),-1!==n.indexOf("$defer$")){var s=i.map(String).join("."),l=o.get(s);if(null==l){l={kind:"response",responses:[e]},o.set(s,l);return}if("response"===l.kind){l.responses.push(e);return}var u=l.placeholder;"defer"!==u.kind&&k(!1),r.push(t._processDeferResponse(n,i,u,a))}else{var c=i.slice(0,-2).map(String).join("."),d=o.get(c);if(null==d){d={kind:"response",responses:[e]},o.set(c,d);return}if("response"===d.kind){d.responses.push(e);return}var f=d.placeholder;"stream"!==f.kind&&k(!1),r.push(t._processStreamResponse(n,i,f,a))}}),r},t._processDeferResponse=function(e,t,r,n){var i=r.selector.dataID,a=this._actorIdentifier;this._actorIdentifier=null!==(u=r.actorIdentifier)&&void 0!==u?u:this._actorIdentifier;var o=this._normalizeResponse(n,r.selector,r.typeName,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,log:this._log,path:r.path,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents});this._getPublishQueueAndSaveActor().commitPayload(this._operation,o);var s=this._source.get(i);null!=s||k(!1);var l=s.fieldPayloads;if(0!==l.length){var u,c,d={errors:null,fieldPayloads:l,incrementalPlaceholders:null,followupPayloads:null,source:E.create(),isFinal:(null===(c=n.extensions)||void 0===c?void 0:c.is_final)===!0};this._getPublishQueueAndSaveActor().commitPayload(this._operation,d)}return this._actorIdentifier=a,o},t._processStreamResponse=function(e,t,r,n){var i=r.parentID,o=r.node,s=r.variables,l=r.actorIdentifier,u=this._actorIdentifier;this._actorIdentifier=null!=l?l:this._actorIdentifier;var c=o.selections[0];null!=c&&"LinkedField"===c.kind&&!0===c.plural||k(!1);var d=this._normalizeStreamItem(n,i,c,s,t,r.path),f=d.fieldPayloads,h=d.itemID,p=d.itemIndex,_=d.prevIDs,v=d.relayPayload,g=d.storageKey;if(this._getPublishQueueAndSaveActor().commitPayload(this._operation,v,function(e){var t=e.get(i);if(null!=t){var r=t.getLinkedRecords(g);if(!(null==r||r.length!==_.length||r.some(function(e,t){return _[t]!==(e&&e.getDataID())}))){var n=(0,a.default)(r);n[p]=e.get(h),t.setLinkedRecords(n,g)}}}),0!==f.length){var m={errors:null,fieldPayloads:f,incrementalPlaceholders:null,followupPayloads:null,source:E.create(),isFinal:!1};this._getPublishQueueAndSaveActor().commitPayload(this._operation,m)}return this._actorIdentifier=u,v},t._normalizeStreamItem=function(e,t,r,n,i,o){var s,l,u,c,d=e.data;"object"!=typeof d&&k(!1);var f=null!==(s=r.alias)&&void 0!==s?s:r.name,h=D(r,n),_=this._source.get(t);null!=_||k(!1);var v=_.record,m=_.fieldPayloads,b=g.getLinkedRecordIDs(v,h);null!=b||k(!1);var E=i[i.length-1],R=parseInt(E,10);R===E&&R>=0||k(!1);var S=null!==(l=r.concreteType)&&void 0!==l?l:d[I];"string"!=typeof S&&k(!1);var C=null!==(u=null!==(c=this._getDataID(d,S))&&void 0!==c?c:null==b?void 0:b[R])&&void 0!==u?u:p(t,h,R);"string"!=typeof C&&k(!1);var P=y(r,C,n),A=g.clone(v),O=(0,a.default)(b);O[R]=C,g.setLinkedRecordIDs(A,h,O),this._source.set(t,{record:A,fieldPayloads:m});var F=this._normalizeResponse(e,P,S,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,log:this._log,path:[].concat((0,a.default)(o),[f,String(R)]),treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents});return{fieldPayloads:m,itemID:C,itemIndex:R,prevIDs:b,relayPayload:F,storageKey:h}},t._scheduleAsyncStoreUpdate=function(e,t){var r=this;this._completeFns.push(t),null==this._asyncStoreUpdateDisposable&&(this._asyncStoreUpdateDisposable=e(function(){r._asyncStoreUpdateDisposable=null;var e=r._runPublishQueue();r._updateOperationTracker(e);var t,n=(0,i.default)(r._completeFns);try{for(n.s();!(t=n.n()).done;)(0,t.value)()}catch(e){n.e(e)}finally{n.f()}r._completeFns=[]}))},t._updateOperationTracker=function(e){null!=e&&e.length>0&&this._operationTracker.update(this._operation.request,new Set(e))},t._completeOperationTracker=function(){this._operationTracker.complete(this._operation.request)},t._getPublishQueueAndSaveActor=function(){return this._seenActors.add(this._actorIdentifier),this._getPublishQueue(this._actorIdentifier)},t._getActorsToVisit=function(){return 0===this._seenActors.size?new Set([this._actorIdentifier]):this._seenActors},t._runPublishQueue=function(e){var t,r=new Set,n=(0,i.default)(this._getActorsToVisit());try{for(n.s();!(t=n.n()).done;){var a=t.value;this._getPublishQueue(a).run(e).forEach(function(e){return r.add(e)})}}catch(e){n.e(e)}finally{n.f()}return Array.from(r)},t._retainData=function(){var e,t=(0,i.default)(this._getActorsToVisit());try{for(t.s();!(e=t.n()).done;){var r=e.value;this._retainDisposables.has(r)||this._retainDisposables.set(r,this._getStore(r).retain(this._operation))}}catch(e){t.e(e)}finally{t.f()}},t._disposeRetainedData=function(){var e,t=(0,i.default)(this._retainDisposables.values());try{for(t.s();!(e=t.n()).done;)e.value.dispose()}catch(e){t.e(e)}finally{t.f()}this._retainDisposables.clear()},t._expectOperationLoader=function(){var e=this._operationLoader;return e||k(!1),e},e}();function P(e){var t=e.incrementalPlaceholders;null!=t&&0!==t.length&&k(!1)}e.exports={execute:function(e){return new C(e)}}},83798:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(12897)),i=r(41046).getArgumentValues,a=r(20311);e.exports={getLocalVariables:function(e,t,r){if(null==t)return e;var a=(0,n.default)({},e),o=r?i(r,e):{};return t.forEach(function(e){var t,r=null!==(t=o[e.name])&&void 0!==t?t:e.defaultValue;a[e.name]=r}),a},getFragmentVariables:function(e,t,r){var i;return null==e.argumentDefinitions?r:(e.argumentDefinitions.forEach(function(e){if(!r.hasOwnProperty(e.name))switch(i=i||(0,n.default)({},r),e.kind){case"LocalArgument":i[e.name]=e.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(e.name)){i[e.name]=void 0;break}i[e.name]=t[e.name];break;default:a(!1)}}),i||r)},getOperationVariables:function(e,t,r){var n={};return e.argumentDefinitions.forEach(function(e){var t=e.defaultValue;null!=r[e.name]&&(t=r[e.name]),n[e.name]=t}),null!=t&&Object.keys(t).forEach(function(e){n[e]=t[e].get()}),n}}},18900:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(12897)),a=n(r(54893)),o=n(r(50883)),s=n(r(41132)),l=["path","locations"],u=Symbol("$SELF");e.exports={SELF:u,buildErrorTrie:function(e){if(null==e)return null;var t,r=new Map,n=(0,o.default)(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,s=i.path,c=(i.locations,(0,a.default)(i,l));if(null!=s){var d=s.length;if(0!==d){for(var f=d-1,h=r,p=0;p{"use strict";var n=(0,r(24994).default)(r(12897)),i=r(1190),a=r(89687),o=a.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,s=a.assertInternalActorIdentifier,l=r(12006),u=r(37498),c=r(52471),d=r(56028),f=r(56663),h=r(6799),p=r(47161),_=r(24337),v=r(65922),g=r(22362),m=r(53968);r(20311);var y=function(){function e(e){var t,r,n,a,o,s,l,_,y,E,R,S=this;this.configName=e.configName,this._treatMissingFieldsAsNull=!0===e.treatMissingFieldsAsNull;var I=e.operationLoader,D=null!==(t=e.store)&&void 0!==t?t:new v(new m,{log:e.log,operationLoader:e.operationLoader,getDataID:e.getDataID,shouldProcessClientComponents:e.shouldProcessClientComponents});this.__log=null!==(r=e.log)&&void 0!==r?r:b,this.relayFieldLogger=null!==(n=e.relayFieldLogger)&&void 0!==n?n:h,this._defaultRenderPolicy=null!==(a=e.UNSTABLE_defaultRenderPolicy)&&void 0!==a?a:"partial",this._operationLoader=I,this._operationExecutions=new Map,this._network=u(this,e.network),this._getDataID=null!==(o=e.getDataID)&&void 0!==o?o:f,this._missingFieldHandlers=null!==(s=e.missingFieldHandlers)&&void 0!==s?s:[],this._publishQueue=new g(D,null!==(l=e.handlerProvider)&&void 0!==l?l:i,this._getDataID,this._missingFieldHandlers,this.__log),this._scheduler=null!==(_=e.scheduler)&&void 0!==_?_:null,this._store=D,this.options=e.options,this._isServer=null!==(y=e.isServer)&&void 0!==y&&y,this._normalizeResponse=null!==(E=e.normalizeResponse)&&void 0!==E?E:p,this.__setNet=function(e){return S._network=u(S,e)},this._operationTracker=null!==(R=e.operationTracker)&&void 0!==R?R:new c,this._shouldProcessClientComponents=e.shouldProcessClientComponents,d(this)}var t=e.prototype;return t.getStore=function(){return this._store},t.getNetwork=function(){return this._network},t.getOperationTracker=function(){return this._operationTracker},t.getScheduler=function(){return this._scheduler},t.isRequestActive=function(e){return"active"===this._operationExecutions.get(e)},t.UNSTABLE_getDefaultRenderPolicy=function(){return this._defaultRenderPolicy},t.applyUpdate=function(e){var t=this;return this._scheduleUpdates(function(){t._publishQueue.applyUpdate(e),t._publishQueue.run()}),{dispose:function(){t._scheduleUpdates(function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()})}}},t.revertUpdate=function(e){var t=this;this._scheduleUpdates(function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()})},t.replaceUpdate=function(e,t){var r=this;this._scheduleUpdates(function(){r._publishQueue.revertUpdate(e),r._publishQueue.applyUpdate(t),r._publishQueue.run()})},t.applyMutation=function(e){var t=this._execute({createSource:function(){return l.create(function(e){})},isClientPayload:!1,operation:e.operation,optimisticConfig:e,updater:null}).subscribe({});return{dispose:function(){return t.unsubscribe()}}},t.check=function(e){return 0!==this._missingFieldHandlers.length||"Operation"===e.root.node.kind&&null!=e.root.node.clientAbstractTypes?this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers):this._store.check(e)},t.commitPayload=function(e,t){this._execute({createSource:function(){return l.from({data:t})},isClientPayload:!0,operation:e,optimisticConfig:null,updater:null}).subscribe({})},t.commitUpdate=function(e){var t=this;this._scheduleUpdates(function(){t._publishQueue.commitUpdate(e),t._publishQueue.run()})},t.lookup=function(e){return this._store.lookup(e)},t.subscribe=function(e,t){return this._store.subscribe(e,t)},t.retain=function(e){return this._store.retain(e)},t.isServer=function(){return this._isServer},t._checkSelectorAndHandleMissingFields=function(e,t){var r=this,n=m.create(),i=this._store.getSource(),a=this._store.check(e,{handlers:t,defaultActorIdentifier:o,getSourceForActor:function(e){return s(e),i},getTargetForActor:function(e){return s(e),n}});return n.size()>0&&this._scheduleUpdates(function(){r._publishQueue.commitSource(n),r._publishQueue.run()}),a},t._scheduleUpdates=function(e){var t=this._scheduler;null!=t?t.schedule(e):e()},t.execute=function(e){var t=this,r=e.operation;return this._execute({createSource:function(){return t.getNetwork().execute(r.request.node.params,r.request.variables,r.request.cacheConfig||{},null,void 0,void 0,void 0,function(){return t.check(r)})},isClientPayload:!1,operation:r,optimisticConfig:null,updater:null})},t.executeSubscription=function(e){var t=this,r=e.operation,n=e.updater;return this._execute({createSource:function(){return t.getNetwork().execute(r.request.node.params,r.request.variables,r.request.cacheConfig||{},null)},isClientPayload:!1,operation:r,optimisticConfig:null,updater:n})},t.executeMutation=function(e){var t,r=this,i=e.operation,a=e.optimisticResponse,o=e.optimisticUpdater,s=e.updater,l=e.uploadables;return(a||o)&&(t={operation:i,response:a,updater:o}),this._execute({createSource:function(){return r.getNetwork().execute(i.request.node.params,i.request.variables,(0,n.default)((0,n.default)({},i.request.cacheConfig),{},{force:!0}),l)},isClientPayload:!1,operation:i,optimisticConfig:t,updater:s})},t.executeWithSource=function(e){var t=e.operation,r=e.source;return this._execute({createSource:function(){return r},isClientPayload:!1,operation:t,optimisticConfig:null,updater:null})},t.toJSON=function(){var e;return"RelayModernEnvironment(".concat(null!==(e=this.configName)&&void 0!==e?e:"",")")},t._execute=function(e){var t=this,r=e.createSource,n=e.isClientPayload,i=e.operation,a=e.optimisticConfig,u=e.updater,c=this._publishQueue,d=this._store;return l.create(function(e){var l=_.execute({actorIdentifier:o,getDataID:t._getDataID,isClientPayload:n,log:t.__log,operation:i,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,operationTracker:t._operationTracker,optimisticConfig:a,getPublishQueue:function(e){return s(e),c},scheduler:t._scheduler,shouldProcessClientComponents:t._shouldProcessClientComponents,sink:e,source:r(),getStore:function(e){return s(e),d},treatMissingFieldsAsNull:t._treatMissingFieldsAsNull,updater:u,normalizeResponse:t._normalizeResponse});return function(){return l.cancel()}})},e}();function b(){}y.prototype["@@RelayModernEnvironment"]=!0,e.exports=y},58270:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(12897)),a=n(r(43693)),o=r(50172),s=r(57595).handlePotentialSnapshotErrors,l=r(32877),u=r(57042),c=r(884),d=r(32115).createRequestDescriptor,f=r(95814),h=f.areEqualSelectors,p=f.createReaderSelector,_=f.getSelectorsFromObject,v=r(3574),g=r(20311);r(14594);var m=function(){function e(e,t,r,n,i){var o=this;(0,a.default)(this,"_onChange",function(){o._stale=!0,"function"==typeof o._callback&&o._callback()}),this._callback=n,this._context=e,this._data={},this._fragments=t,this._props={},this._resolvers={},this._stale=!1,this._rootIsQueryRenderer=i,this.setProps(r)}var t=e.prototype;return t.dispose=function(){for(var e in this._resolvers)this._resolvers.hasOwnProperty(e)&&E(this._resolvers[e])},t.resolve=function(){if(this._stale){var e,t=this._data;for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r],a=t[r];if(n){var o=n.resolve();(e||o!==a)&&((e=e||(0,i.default)({},t))[r]=o)}else{var s=this._props[r],u=void 0!==s?s:null;(e||!l(u,a))&&((e=e||(0,i.default)({},t))[r]=u)}}this._data=e||t,this._stale=!1}return this._data},t.setCallback=function(e,t){this._callback=t,!0===c.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this.setProps(e)},t.setProps=function(e){this._props={};var t=_(this._fragments,e);for(var r in t)if(t.hasOwnProperty(r)){var n=t[r],i=this._resolvers[r];null==n?(null!=i&&i.dispose(),i=null):"PluralReaderSelector"===n.kind?null==i?i=new b(this._context.environment,this._rootIsQueryRenderer,n,null!=this._callback,this._onChange):(i instanceof b||g(!1),i.setSelector(n)):null==i?i=new y(this._context.environment,this._rootIsQueryRenderer,n,null!=this._callback,this._onChange):(i instanceof y||g(!1),i.setSelector(n)),this._props[r]=e[r],this._resolvers[r]=i}this._stale=!0},t.setVariables=function(e,t){for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r];n&&n.setVariables(e,t)}this._stale=!0},e}(),y=function(){function e(e,t,r,n,i){var o=this;(0,a.default)(this,"_onChange",function(e){o._data=e.data,o._isMissingData=e.isMissingData,o._fieldErrors=e.fieldErrors,o._callback()});var s=e.lookup(r);this._callback=i,this._data=s.data,this._isMissingData=s.isMissingData,this._fieldErrors=s.fieldErrors,this._environment=e,this._rootIsQueryRenderer=t,this._selector=r,!0===c.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?n&&(this._subscription=e.subscribe(s,this._onChange)):this._subscription=e.subscribe(s,this._onChange)}var t=e.prototype;return t.dispose=function(){this._subscription&&(this._subscription.dispose(),this._subscription=null)},t.resolve=function(){if(!0===this._isMissingData){var e=o(this._environment,this._selector.node,this._selector.owner),t=null==e?void 0:e.promise;if(null!=t){if(this._rootIsQueryRenderer);else{var r,n=null!==(r=null==e?void 0:e.pendingOperations)&&void 0!==r?r:[];throw this._environment.__log({name:"suspense.fragment",data:this._data,fragment:this._selector.node,isRelayHooks:!1,isMissingData:this._isMissingData,isPromiseCached:!1,pendingOperations:n}),t}}}return s(this._environment,this._fieldErrors),this._data},t.setSelector=function(e){if(!(null!=this._subscription&&h(e,this._selector))){this.dispose();var t=this._environment.lookup(e);this._data=u(this._data,t.data),this._isMissingData=t.isMissingData,this._fieldErrors=t.fieldErrors,this._selector=e,this._subscription=this._environment.subscribe(t,this._onChange)}},t.setVariables=function(e,t){if(!v(e,this._selector.variables)){var r=d(t,e),n=p(this._selector.node,this._selector.dataID,e,r);this.setSelector(n)}},e}(),b=function(){function e(e,t,r,n,i){var o=this;(0,a.default)(this,"_onChange",function(e){o._stale=!0,o._callback()}),this._callback=i,this._data=[],this._environment=e,this._resolvers=[],this._stale=!0,this._rootIsQueryRenderer=t,this._subscribeOnConstruction=n,this.setSelector(r)}var t=e.prototype;return t.dispose=function(){this._resolvers.forEach(E)},t.resolve=function(){if(this._stale){for(var e,t=this._data,r=0;rt.length;)this._resolvers.pop().dispose();for(var r=0;r{"use strict";r(15519);var n=r(54736),i=r(884),a=r(8312).hasCycle,o=r(83798).getOperationVariables,s=r(95814),l=s.createNormalizationSelector,u=s.createReaderSelector,c=r(41046).ROOT_ID,d=r(20311);function f(e,t,r){return{identifier:n(e.params,t),node:e,variables:t,cacheConfig:r}}e.exports={createOperationDescriptor:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c,s=e.operation,h=o(s,e.params.providedVariables,t);i.ENABLE_CYLE_DETECTION_IN_VARIABLES&&a(h)&&d(!1);var p=f(e,h,r);return{fragment:u(e.fragment,n,h,p),request:p,root:l(s,n,h)}},createRequestDescriptor:f}},38742:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(43693)),a=n(r(54893)),o=n(r(77736)),s=n(r(12897)),l=r(15519),u=r(84895),c=u.generateClientObjectClientID;u.isClientID;var d=r(89452).isSuspenseSentinel,f=r(41046),h=f.ACTOR_IDENTIFIER_KEY,p=f.ERRORS_KEY,_=f.ID_KEY,v=f.INVALIDATED_AT_KEY,g=f.REF_KEY,m=f.REFS_KEY,y=f.RELAY_RESOLVER_VALUE_KEY,b=(f.ROOT_ID,f.TYPENAME_KEY),E=r(3574),R=r(20311);function S(e,t){var r=e[t];return!r||"object"!=typeof r||(r.hasOwnProperty(g)||r.hasOwnProperty(m))&&R(!1),r}function I(e,t,r){var n=e[p];if(null!=r&&r.length>0)null==n?e[p]=(0,i.default)({},t,r):n[t]=r;else if(null!=n&&delete n[t]){for(var a in n)if(n.hasOwnProperty(a))return;delete e[p]}}r(14594),e.exports={clone:function(e){return(0,s.default)({},e)},copyFields:function(e,t){for(var r in e)e.hasOwnProperty(r)&&r!==_&&r!==b&&(t[r]=e[r])},create:function(e,t){var r={};return r[_]=e,r[b]=t,r},freeze:function(e){l(e)},fromObject:function(e){return e},getDataID:function(e){return e[_]},getErrors:function(e,t){var r;return null===(r=e[p])||void 0===r?void 0:r[t]},getFields:function(e){return p in e?Object.keys(e).filter(function(e){return e!==p}):Object.keys(e)},getInvalidationEpoch:function(e){if(null==e)return null;var t=e[v];return"number"!=typeof t?null:t},getLinkedRecordID:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&r&&"string"==typeof r[g]||R(!1),r[g])},getLinkedRecordIDs:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&Array.isArray(r[m])||R(!1),r[m])},getType:function(e){return e[b]},getValue:S,hasValue:function(e,t){return t in e},hasLinkedRecordID:function(e,t){var r=e[t];return null!=r&&"object"==typeof r&&r&&"string"==typeof r[g]},hasLinkedRecordIDs:function(e,t){var r=e[t];return null!=r&&"object"==typeof r&&Array.isArray(r[m])&&r[m].every(function(e){return"string"==typeof e})},merge:function(e,t){if(!(p in e)&&!(p in t))return(0,s.default)((0,s.default)({},e),t);var r=e[p],n=(0,a.default)(e,[p].map(o.default)),i=t[p],l=(0,a.default)(t,[p].map(o.default)),u=(0,s.default)((0,s.default)({},n),l);if(null==r&&null==i)return u;var c={};for(var d in r)l.hasOwnProperty(d)||(c[d]=r[d]);for(var f in i)c[f]=i[f];for(var h in c){u[p]=c;break}return u},setErrors:I,setValue:function(e,t,r){e[t]=r},setLinkedRecordID:function(e,t,r){var n={};n[g]=r,e[t]=n},setLinkedRecordIDs:function(e,t,r){var n={};n[m]=r,e[t]=n},update:function(e,t){var r,n,i=e[p],a=t[p],o=null;if(null==i&&null==a){for(var l in t)(o||!E(e[l],t[l]))&&((o=null!==o?o:(0,s.default)({},e))[l]=t[l]);return null!==(n=o)&&void 0!==n?n:e}for(var u in t)if(u!==p){var c=t[u],d=null==a?void 0:a[u];if(null==o){var f=e[u],h=null==i?void 0:i[u];if(E(f,c)&&E(h,d))continue;o=(0,s.default)({},e),null!=i&&(o[p]=(0,s.default)({},i))}o[u]=c,I(o,u,d)}return null!==(r=o)&&void 0!==r?r:e},getActorLinkedRecordID:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&"string"==typeof r[g]&&null!=r[h]||R(!1),[r[h],r[g]])},setActorLinkedRecordID:function(e,t,r,n){var i={};i[g]=n,i[h]=r,e[t]=i},getResolverLinkedRecordID:function(e,t){var r=S(e,y);return null==r||d(r)?null:("object"==typeof r&&(r=r.id),"string"!=typeof r&&R(!1),c(t,r))},getResolverLinkedRecordIDs:function(e,t){var r=S(e,y);return null==r||d(r)?null:(Array.isArray(r)||R(!1),r.map(function(e){return null==e?null:("object"==typeof e&&(e=e.id),"string"!=typeof e&&R(!1),c(t,e))}))},toJSON:function(e){return e}}},95814:(e,t,r)=>{"use strict";var n=r(83798).getFragmentVariables,i=r(41046),a=i.CLIENT_EDGE_TRAVERSAL_PATH,o=i.FRAGMENT_OWNER_KEY,s=i.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,l=i.FRAGMENTS_KEY,u=i.ID_KEY,c=r(3574),d=r(20311);function f(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&d(!1);var r=t[u],i=t[l],c=t[o],f=t[a];if("string"==typeof r&&"object"==typeof i&&null!==i&&"object"==typeof i[e.name]&&null!==i[e.name]&&"object"==typeof c&&null!==c&&(null==f||Array.isArray(f))){var h=i[e.name],p=n(e,c.variables,h);return E(e,r,p,c,!0===h[s],f)}return null}function h(e,t){var r=null;return(t.forEach(function(t,n){var i=null!=t?f(e,t):null;null!=i&&(r=r||[]).push(i)}),null==r)?null:{kind:"PluralReaderSelector",selectors:r}}function p(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||d(!1),h(e,t)):(Array.isArray(t)&&d(!1),f(e,t))}function _(e,t){var r;return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||d(!1),r=null,t.forEach(function(t){var n=null!=t?v(e,t):null;null!=n&&(r=r||[]).push(n)}),r):(Array.isArray(t)&&d(!1),v(e,t))}function v(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&d(!1);var r=t[u];return"string"==typeof r?r:null}function g(e,t){var r;return null==t?{}:(null===(r=e.metadata)||void 0===r?void 0:r.plural)===!0?(Array.isArray(t)||d(!1),y(e,t)):(Array.isArray(t)&&d(!1),m(e,t)||{})}function m(e,t){var r=f(e,t);return r?r.variables:null}function y(e,t){var r={};return t.forEach(function(t,n){if(null!=t){var i=m(e,t);null!=i&&Object.assign(r,i)}}),r}function b(e,t){var r,n;return e.dataID===t.dataID&&e.node===t.node&&c(e.variables,t.variables)&&((r=e.owner)===(n=t.owner)||r.identifier===n.identifier&&c(r.cacheConfig,n.cacheConfig))&&e.isWithinUnmatchedTypeRefinement===t.isWithinUnmatchedTypeRefinement&&function(e,t){if(e===t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(var r=e.length;r--;){var n=e[r],i=t[r];if(n!==i&&(null==n||null==i||n.clientEdgeDestinationID!==i.clientEdgeDestinationID||n.readerClientEdge!==i.readerClientEdge))return!1}return!0}(e.clientEdgeTraversalPath,t.clientEdgeTraversalPath)}function E(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0;return{kind:"SingularReaderSelector",dataID:t,isWithinUnmatchedTypeRefinement:i,clientEdgeTraversalPath:null!=a?a:null,node:e,variables:r,owner:n}}r(14594),e.exports={areEqualSelectors:function(e,t){return e===t||(null==e?null==t:null==t?null==e:"SingularReaderSelector"===e.kind&&"SingularReaderSelector"===t.kind?b(e,t):"PluralReaderSelector"===e.kind&&"PluralReaderSelector"===t.kind&&e.selectors.length===t.selectors.length&&e.selectors.every(function(e,r){return b(e,t.selectors[r])}))},createReaderSelector:E,createNormalizationSelector:function(e,t,r){return{dataID:t,node:e,variables:r}},getDataIDsFromFragment:_,getDataIDsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=t[n];r[n]=_(i,a)}return r},getSingularSelector:f,getPluralSelector:h,getSelector:p,getSelectorsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=t[n];r[n]=p(i,a)}return r},getVariablesFromSingularFragment:m,getVariablesFromPluralFragment:y,getVariablesFromFragment:g,getVariablesFromObject:function(e,t){var r={};for(var n in e)e.hasOwnProperty(n)&&Object.assign(r,g(e[n],t[n]));return r}}},65922:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(50883)),a=n(r(43693)),o=r(89687),s=o.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,l=o.assertInternalActorIdentifier;r(15519);var u=r(33035),c=r(10090),d=r(56663),f=r(34236),h=f.LiveResolverCache,p=f.RELAY_RESOLVER_LIVE_STATE_SUBSCRIPTION_KEY,_=f.getUpdatedDataIDs,v=r(38742),g=r(5577),m=r(35639),y=r(46025),b=r(5561),E=r(41046),R=r(41046),S=R.ROOT_ID,I=R.ROOT_TYPE,D=r(20311),k=function(){function e(e,t){var r,n,i,o,s,l,c,f,p=this;(0,a.default)(this,"_gcStep",function(){p._gcRun&&(p._gcRun.next().done?p._gcRun=null:p._gcScheduler(p._gcStep))}),this._currentWriteEpoch=0,this._gcHoldCounter=0,this._gcReleaseBufferSize=null!==(r=null==t?void 0:t.gcReleaseBufferSize)&&void 0!==r?r:10,this._shouldRetainWithinTTL_EXPERIMENTAL=null!==(n=null==t?void 0:t.shouldRetainWithinTTL_EXPERIMENTAL)&&void 0!==n&&n,this._gcRun=null,this._gcScheduler=null!==(i=null==t?void 0:t.gcScheduler)&&void 0!==i?i:u,this._getDataID=null!==(o=null==t?void 0:t.getDataID)&&void 0!==o?o:d,this._globalInvalidationEpoch=null,this._invalidationSubscriptions=new Set,this._invalidatedRecordIDs=new Set,this.__log=null!==(s=null==t?void 0:t.log)&&void 0!==s?s:null,this._queryCacheExpirationTime=null==t?void 0:t.queryCacheExpirationTime,this._operationLoader=null!==(l=null==t?void 0:t.operationLoader)&&void 0!==l?l:null,this._optimisticSource=null,this._recordSource=e,this._releaseBuffer=[],this._roots=new Map,this._shouldScheduleGC=!1,this._resolverCache=new h(function(){return p._getMutableRecordSource()},this),this._resolverContext=null==t?void 0:t.resolverContext,this._storeSubscriptions=new b(null==t?void 0:t.log,this._resolverCache,this._resolverContext),this._updatedRecordIDs=new Set,this._shouldProcessClientComponents=null!==(c=null==t?void 0:t.shouldProcessClientComponents)&&void 0!==c&&c,this._treatMissingFieldsAsNull=null!==(f=null==t?void 0:t.treatMissingFieldsAsNull)&&void 0!==f&&f,this._actorIdentifier=null==t?void 0:t.actorIdentifier,function(e){if(!e.has(S)){var t=v.create(S,I);e.set(S,t)}}(this._recordSource)}var t=e.prototype;return t.getSource=function(){var e;return null!==(e=this._optimisticSource)&&void 0!==e?e:this._recordSource},t.getOperationLoader=function(){return this._operationLoader},t._getMutableRecordSource=function(){var e;return null!==(e=this._optimisticSource)&&void 0!==e?e:this._recordSource},t.getLiveResolverPromise=function(e){return this._resolverCache.getLiveResolverPromise(e)},t.batchLiveStateUpdates=function(e){null!=this.__log&&this.__log({name:"liveresolver.batch.start"});try{this._resolverCache.batchLiveStateUpdates(e)}finally{null!=this.__log&&this.__log({name:"liveresolver.batch.end"})}},t.check=function(e,t){var r,n,i,a,o,u,d,f,h,p=e.root,_=this._getMutableRecordSource(),v=this._globalInvalidationEpoch,g=this._roots.get(e.request.identifier),m=null!=g?g.epoch:null;if(null!=v&&(null==m||m<=v))return{status:"stale"};var y=null!==(u=null==t?void 0:t.handlers)&&void 0!==u?u:[],b=null!==(d=null==t?void 0:t.getSourceForActor)&&void 0!==d?d:function(e){return l(e),_},E=null!==(f=null==t?void 0:t.getTargetForActor)&&void 0!==f?f:function(e){return l(e),_};return r=c.check(b,E,null!==(h=null==t?void 0:t.defaultActorIdentifier)&&void 0!==h?h:s,p,y,this._operationLoader,this._getDataID,this._shouldProcessClientComponents,this.__log),n=null==g?void 0:g.fetchTime,i=this._queryCacheExpirationTime,a=r.mostRecentlyInvalidatedAt,o=r.status,"number"==typeof a&&(null==m||a>m)?{status:"stale"}:"missing"===o?{status:"missing"}:null!=n&&null!=i&&n<=Date.now()-i?{status:"stale"}:{status:"available",fetchTime:null!=n?n:null}},t.retain=function(e){var t=this,r=e.request.identifier,n=!1,i=this._roots.get(r);return null!=i?(0===i.refCount&&(this._releaseBuffer=this._releaseBuffer.filter(function(e){return e!==r})),i.refCount+=1):this._roots.set(r,{operation:e,refCount:1,epoch:null,fetchTime:null}),{dispose:function(){if(!n){n=!0;var e=t._roots.get(r);if(null!=e&&(e.refCount--,0===e.refCount)){var i=t._queryCacheExpirationTime;if(null!=e.fetchTime&&null!=i&&e.fetchTime<=Date.now()-i)t._shouldRetainWithinTTL_EXPERIMENTAL||t._roots.delete(r),t.scheduleGC();else if(t._releaseBuffer.push(r),t._releaseBuffer.length>t._gcReleaseBufferSize){var a=t._releaseBuffer.shift();t._shouldRetainWithinTTL_EXPERIMENTAL||t._roots.delete(a),t.scheduleGC()}}}}}},t.lookup=function(e){var t=this.__log;null!=t&&t({name:"store.lookup.start",selector:e});var r=this.getSource(),n=m.read(r,e,this._resolverCache,this._resolverContext);return null!=t&&t({name:"store.lookup.end",selector:e}),n},t.notify=function(e,t){var r=this,n=this.__log;null!=n&&n({name:"store.notify.start",sourceOperation:e}),this._currentWriteEpoch++,!0===t&&(this._globalInvalidationEpoch=this._currentWriteEpoch),this._resolverCache.invalidateDataIDs(this._updatedRecordIDs);var i=this.getSource(),a=[];if(this._storeSubscriptions.updateSubscriptions(i,this._updatedRecordIDs,a,e),this._invalidationSubscriptions.forEach(function(e){r._updateInvalidationSubscription(e,!0===t)}),null!=e){var o=e.request.identifier,s=this._roots.get(o);if(null!=s)s.epoch=this._currentWriteEpoch,s.fetchTime=Date.now();else if("query"===e.request.node.params.operationKind&&this._gcReleaseBufferSize>0&&this._releaseBuffer.length0&&(e._gcHoldCounter--,0===e._gcHoldCounter&&e._shouldScheduleGC&&(e.scheduleGC(),e._shouldScheduleGC=!1))}}},t.toJSON=function(){return"RelayModernStore()"},t.getEpoch=function(){return this._currentWriteEpoch},t.__getUpdatedRecordIDs=function(){return this._updatedRecordIDs},t.lookupInvalidationState=function(e){var t=this,r=new Map;return e.forEach(function(e){var n,i=t.getSource().get(e);r.set(e,null!==(n=v.getInvalidationEpoch(i))&&void 0!==n?n:null)}),r.set("global",this._globalInvalidationEpoch),{dataIDs:e,invalidations:r}},t.checkInvalidationState=function(e){var t=this.lookupInvalidationState(e.dataIDs).invalidations,r=e.invalidations;if(t.get("global")!==r.get("global"))return!0;var n,a=(0,i.default)(e.dataIDs);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(t.get(o)!==r.get(o))return!0}}catch(e){a.e(e)}finally{a.f()}return!1},t.subscribeToInvalidationState=function(e,t){var r=this,n={callback:t,invalidationState:e};return this._invalidationSubscriptions.add(n),{dispose:function(){r._invalidationSubscriptions.delete(n)}}},t._updateInvalidationSubscription=function(e,t){var r=this,n=e.callback,i=e.invalidationState.dataIDs;(t||i.some(function(e){return r._invalidatedRecordIDs.has(e)}))&&n()},t.snapshot=function(){null!=this._optimisticSource&&D(!1);var e=this.__log;null!=e&&e({name:"store.snapshot"}),this._storeSubscriptions.snapshotSubscriptions(this.getSource()),this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._optimisticSource=g.create(this.getSource())},t.restore=function(){var e=this._optimisticSource;e||D(!1);var t=this.__log;null!=t&&t({name:"store.restore"});var r=g.getOptimisticRecordIDs(e);this._resolverCache.unsubscribeFromLiveResolverRecords(r),this._optimisticSource=null,this._shouldScheduleGC&&this.scheduleGC(),this._storeSubscriptions.restoreSubscriptions(),this._resolverCache.invalidateResolverRecords(r)},t.scheduleGC=function(){if(this._gcHoldCounter>0){this._shouldScheduleGC=!0;return}this._gcRun||(this._gcRun=this._collect(),this._gcScheduler(this._gcStep))},t.__gc=function(){if(null==this._optimisticSource)for(var e=this._collect();!e.next().done;);},t._collect=function*(){if(!this._shouldRetainWithinTTL_EXPERIMENTAL||null!=this._queryCacheExpirationTime){var e=this.__log;e:for(;;){null!=e&&e({name:"store.gc.start"});var t,r=this._currentWriteEpoch,n=new Set,a=(0,i.default)(this._roots.entries());try{for(a.s();!(t=a.n()).done;){var o=t.value,s=o[0],l=o[1],u=l.operation,c=l.refCount,d=l.fetchTime;if(this._shouldRetainWithinTTL_EXPERIMENTAL){var f=this._queryCacheExpirationTime;if(null!=f||D(!1),(null==d||d<=Date.now()-f)&&0===c&&!this._releaseBuffer.includes(s))continue}var h=u.root;if(y.mark(this._recordSource,h,n,this._operationLoader,this._shouldProcessClientComponents),yield,r!==this._currentWriteEpoch){null!=e&&e({name:"store.gc.interrupted"});continue e}}}catch(e){a.e(e)}finally{a.f()}for(var _=this._recordSource.getRecordIDs(),g=0;g<_.length;g++){var m=_[g];if(!n.has(m)){var b=this._recordSource.get(m);if(null!=b){var E=v.getValue(b,p);null!=E&&E()}this._recordSource.remove(m),this._shouldRetainWithinTTL_EXPERIMENTAL&&this._roots.delete(m)}}null!=e&&e({name:"store.gc.end",references:n});return}}},t.__getNormalizationOptions=function(e){return{path:e,getDataID:this._getDataID,log:this.__log,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents,actorIdentifier:this._actorIdentifier}},t.__notifyUpdatedSubscribers=function(e){var t=_(e),r=this._updatedRecordIDs;this._updatedRecordIDs=t,this.notify(),this._updatedRecordIDs=r},e}();e.exports=k},52471:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(50883)),i=r(20311),a=function(){function e(){this._ownersToPendingOperations=new Map,this._pendingOperationsToOwners=new Map,this._ownersToPendingPromise=new Map}var t=e.prototype;return t.update=function(e,t){if(0!==t.size){var r,i=e.identifier,a=new Set,o=(0,n.default)(t);try{for(o.s();!(r=o.n()).done;){var s=r.value.identifier,l=this._ownersToPendingOperations.get(s);null!=l?l.has(i)||(l.set(i,e),a.add(s)):(this._ownersToPendingOperations.set(s,new Map([[i,e]])),a.add(s))}}catch(e){o.e(e)}finally{o.f()}if(0!==a.size){var u,c=this._pendingOperationsToOwners.get(i)||new Set,d=(0,n.default)(a);try{for(d.s();!(u=d.n()).done;){var f=u.value;this._resolveOwnerResolvers(f),c.add(f)}}catch(e){d.e(e)}finally{d.f()}this._pendingOperationsToOwners.set(i,c)}}},t.complete=function(e){var t=e.identifier,r=this._pendingOperationsToOwners.get(t);if(null!=r){var i,a=new Set,o=new Set,s=(0,n.default)(r);try{for(s.s();!(i=s.n()).done;){var l=i.value,u=this._ownersToPendingOperations.get(l);u&&(u.delete(t),u.size>0?o.add(l):a.add(l))}}catch(e){s.e(e)}finally{s.f()}var c,d=(0,n.default)(a);try{for(d.s();!(c=d.n()).done;){var f=c.value;this._resolveOwnerResolvers(f),this._ownersToPendingOperations.delete(f)}}catch(e){d.e(e)}finally{d.f()}var h,p=(0,n.default)(o);try{for(p.s();!(h=p.n()).done;){var _=h.value;this._resolveOwnerResolvers(_)}}catch(e){p.e(e)}finally{p.f()}this._pendingOperationsToOwners.delete(t)}},t._resolveOwnerResolvers=function(e){var t=this._ownersToPendingPromise.get(e);null!=t&&t.resolve(),this._ownersToPendingPromise.delete(e)},t.getPendingOperationsAffectingOwner=function(e){var t,r=e.identifier,n=this._ownersToPendingOperations.get(r);if(null==n||0===n.size)return null;var a=this._ownersToPendingPromise.get(r);if(null!=a)return{promise:a.promise,pendingOperations:a.pendingOperations};var o=new Promise(function(e){t=e});null!=t||i(!1);var s=Array.from(n.values());return this._ownersToPendingPromise.set(r,{promise:o,resolve:t,pendingOperations:s}),{promise:o,pendingOperations:s}},e}();e.exports=a},5577:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(12897)),i=r(38742),a=r(53968),o=r(20311),s=i.fromObject(Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0})),l=function(){function e(e){this._base=e,this._sink=a.create()}var t=e.prototype;return t.has=function(e){return this._sink.has(e)?this._sink.get(e)!==s:this._base.has(e)},t.get=function(e){if(!this._sink.has(e))return this._base.get(e);var t=this._sink.get(e);if(t!==s)return t},t.getStatus=function(e){var t=this.get(e);return void 0===t?"UNKNOWN":null===t?"NONEXISTENT":"EXISTENT"},t.clear=function(){this._base=a.create(),this._sink.clear()},t.delete=function(e){this._sink.delete(e)},t.remove=function(e){this._sink.set(e,s)},t.set=function(e,t){this._sink.set(e,t)},t.getRecordIDs=function(){return Object.keys(this.toJSON())},t.size=function(){return Object.keys(this.toJSON()).length},t.toJSON=function(){var e=this,t=(0,n.default)({},this._base.toJSON());return this._sink.getRecordIDs().forEach(function(r){var n=e.get(r);void 0===n?delete t[r]:t[r]=i.toJSON(n)}),t},t.getOptimisticRecordIDs=function(){return new Set(this._sink.getRecordIDs())},e}();e.exports={create:function(e){return new l(e)},getOptimisticRecordIDs:function(e){return e instanceof l||o(!1),e.getOptimisticRecordIDs()}}},22362:(e,t,r)=>{"use strict";var n,i,a=r(19719),o=r(35513),s=r(10962),l=r(884),u=r(35639),c=r(53968),d=r(20311);r(14594);var f=void 0!==r.g?r.g:"undefined"!=typeof window?window:void 0,h=null!==(n=null==f?void 0:null===(i=f.ErrorUtils)||void 0===i?void 0:i.applyWithGuard)&&void 0!==n?n:function(e,t,r,n,i){return e.apply(t,r)},p=function(){function e(e,t,r,n,i){this._hasStoreSnapshot=!1,this._handlerProvider=t||null,this._pendingBackupRebase=!1,this._pendingData=new Set,this._pendingOptimisticUpdates=new Set,this._store=e,this._appliedOptimisticUpdates=new Set,this._gcHold=null,this._getDataID=r,this._missingFieldHandlers=n,this._log=i}var t=e.prototype;return t.applyUpdate=function(e){(this._appliedOptimisticUpdates.has(e)||this._pendingOptimisticUpdates.has(e))&&d(!1),this._pendingOptimisticUpdates.add(e)},t.revertUpdate=function(e){this._pendingOptimisticUpdates.has(e)?this._pendingOptimisticUpdates.delete(e):this._appliedOptimisticUpdates.has(e)&&(this._pendingBackupRebase=!0,this._appliedOptimisticUpdates.delete(e))},t.revertAll=function(){this._pendingBackupRebase=!0,this._pendingOptimisticUpdates.clear(),this._appliedOptimisticUpdates.clear()},t.commitPayload=function(e,t,r){this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",operation:e,payload:t,updater:r})},t.commitUpdate=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"updater",updater:e})},t.commitSource=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"source",source:e})},t.run=function(e){var t=0===this._appliedOptimisticUpdates&&!!this._gcHold,r=!this._pendingBackupRebase&&0===this._pendingOptimisticUpdates.size&&!t;if(l.DISALLOW_NESTED_UPDATES&&(!0!==this._isRunning||d(!1)),this._isRunning=!0,r)return this._isRunning=!1,[];this._pendingBackupRebase&&this._hasStoreSnapshot&&(this._store.restore(),this._hasStoreSnapshot=!1);var n=this._commitData();return(this._pendingOptimisticUpdates.size||this._pendingBackupRebase&&this._appliedOptimisticUpdates.size)&&(this._hasStoreSnapshot||(this._store.snapshot(),this._hasStoreSnapshot=!0),this._applyUpdates()),this._pendingBackupRebase=!1,this._appliedOptimisticUpdates.size>0?this._gcHold||(this._gcHold=this._store.holdGC()):this._gcHold&&(this._gcHold.dispose(),this._gcHold=null),this._isRunning=!1,this._store.notify(e,n)},t._publishSourceFromPayload=function(e){var t=this,r=e.payload,n=e.operation,i=e.updater,l=r.source,u=r.fieldPayloads,c=new a(this._store.getSource(),l),f=new o(c,this._getDataID,this._handlerProvider,this._missingFieldHandlers,this._log);if(u&&u.length&&u.forEach(function(e){var r=t._handlerProvider&&t._handlerProvider(e.handle);r||d(!1),r.update(f,e)}),i){var h=n.fragment;null!=h||d(!1),i(new s(c,f,h,this._missingFieldHandlers),_(l,h))}var p=f.getIDsMarkedForInvalidation();return this._store.publish(l,p),f.isStoreMarkedForInvalidation()},t._commitData=function(){var e=this;if(!this._pendingData.size)return!1;var t=!1;return this._pendingData.forEach(function(r){if("payload"===r.kind){var n=e._publishSourceFromPayload(r);t=t||n}else if("source"===r.kind){var i=r.source;e._store.publish(i)}else{var s=r.updater,l=c.create(),u=new o(new a(e._store.getSource(),l),e._getDataID,e._handlerProvider,e._missingFieldHandlers,e._log);h(s,null,[u],null,"RelayPublishQueue:commitData"),t=t||u.isStoreMarkedForInvalidation();var d=u.getIDsMarkedForInvalidation();e._store.publish(l,d)}}),this._pendingData.clear(),t},t._applyUpdates=function(){var e=this,t=c.create(),r=new a(this._store.getSource(),t),n=new o(r,this._getDataID,this._handlerProvider,this._missingFieldHandlers,this._log),i=function(t){if(t.storeUpdater)h(t.storeUpdater,null,[n],null,"RelayPublishQueue:applyUpdates");else{var i,a=t.operation,o=t.payload,l=t.updater,u=o.source,c=o.fieldPayloads;u&&n.publishSource(u,c),l&&(u&&(i=_(u,a.fragment)),h(l,null,[new s(r,n,a.fragment,e._missingFieldHandlers),i],null,"RelayPublishQueue:applyUpdates"))}};this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(i),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach(function(t){i(t),e._appliedOptimisticUpdates.add(t)}),this._pendingOptimisticUpdates.clear()),this._store.publish(t)},e}();function _(e,t){return u.read(e,t).data}e.exports=p},35639:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(12897)),a=n(r(43693)),o=n(r(54893)),s=n(r(41132)),l=["message"],u=r(884),c=r(89452).isSuspenseSentinel,d=r(83798),f=r(38742),h=r(41046),p=h.CLIENT_EDGE_TRAVERSAL_PATH,_=h.FRAGMENT_OWNER_KEY,v=h.FRAGMENT_PROP_NAME_KEY,g=h.FRAGMENTS_KEY,m=h.ID_KEY,y=h.MODULE_COMPONENT_KEY,b=h.ROOT_ID,E=h.getArgumentValues,R=h.getModuleComponentKey,S=h.getStorageKey,I=r(6094).NoopResolverCache,D=r(14358),k=D.RESOLVER_FRAGMENT_ERRORED_SENTINEL,C=D.withResolverContext,P=r(84848).generateTypeID,A=r(20311);function O(e,t,r,n){return new F(e,t,null!=r?r:new I,n).read()}var F=function(){function e(e,t,r,n){var i,a,o,l;this._clientEdgeTraversalPath=null!==(i=t.clientEdgeTraversalPath)&&void 0!==i&&i.length?(0,s.default)(t.clientEdgeTraversalPath):[],this._missingClientEdges=[],this._missingLiveResolverFields=[],this._isMissingData=!1,this._isWithinUnmatchedTypeRefinement=!1,this._fieldErrors=null,this._owner=t.owner,this._useExecTimeResolvers=null!==(a=null!==(o=this._owner.node.operation.use_exec_time_resolvers)&&void 0!==o?o:(null===(l=this._owner.node.operation.exec_time_resolvers_enabled_provider)||void 0===l?void 0:l.get())===!0)&&void 0!==a&&a,this._recordSource=e,this._seenRecords=new Set,this._selector=t,this._variables=t.variables,this._resolverCache=r,this._fragmentName=t.node.name,this._updatedDataIDs=new Set,this._resolverContext=n}var t=e.prototype;return t.read=function(){var e,t=this._selector,r=t.node,n=t.dataID,i=t.isWithinUnmatchedTypeRefinement,a=r.abstractKey,o=this._recordSource.get(n),s=!i;s&&null==a&&null!=o&&!this._recordMatchesTypeCondition(o,r.type)&&(s=!1),s&&null!=a&&null!=o&&!1===this._implementsInterface(o,a)&&(s=!1),this._isWithinUnmatchedTypeRefinement=!s;var l=this._traverse(r,n,null),u=null===(e=this._selector.node.metadata)||void 0===e?void 0:e.catchTo;return null!=u&&(l=this._catchErrors(l,u,null)),this._updatedDataIDs.size>0&&(this._resolverCache.notifyUpdatedSubscribers(this._updatedDataIDs),this._updatedDataIDs.clear()),{data:l,isMissingData:this._isMissingData&&s,missingClientEdges:this._missingClientEdges.length?this._missingClientEdges:null,missingLiveResolverFields:this._missingLiveResolverFields,seenRecords:this._seenRecords,selector:this._selector,fieldErrors:this._fieldErrors}},t._maybeAddFieldErrors=function(e,t){var r=f.getErrors(e,t);if(null!=r){var n=this._fragmentName;null==this._fieldErrors&&(this._fieldErrors=[]);for(var i=0;i"),n;var i=r||{};return this._traverseSelections(e.selections,n,i)?i:null},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||A(!1),this._variables[e]},t._maybeReportUnexpectedNull=function(e){if("NONE"!==e.action){var t,r,n,i=this._fragmentName;switch(null==this._fieldErrors&&(this._fieldErrors=[]),t=null!=e.field.linkedField?null!==(r=e.field.linkedField.alias)&&void 0!==r?r:e.field.linkedField.name:null!==(n=e.field.alias)&&void 0!==n?n:e.field.name,e.action){case"THROW":this._fieldErrors.push({kind:"missing_required_field.throw",fieldPath:t,owner:i,handled:!1,uiContext:void 0});return;case"LOG":this._fieldErrors.push({kind:"missing_required_field.log",fieldPath:t,owner:i,uiContext:void 0});return;default:e.action}}},t._handleRequiredFieldValue=function(e,t){return null!=t||(this._maybeReportUnexpectedNull(e),!1)},t._catchErrors=function(e,t,r){var n=e;switch(t){case"RESULT":n=this._asResult(e);break;case"NULL":null!=this._fieldErrors&&this._fieldErrors.length>0&&(n=null)}var i=this._fieldErrors;if(this._fieldErrors=r,null!=i){null==this._fieldErrors&&(this._fieldErrors=[]);for(var a=0;ap||this._missingLiveResolverFields.length>0,this._clientEdgeTraversalPath.pop(),!_)return!1;break;case"Stream":if(!this._traverseSelections(i.selections,t,r))return!1;break;case"ActorChange":this._readActorChange(i,t,r);break;case"ClientEdgeToClientObject":case"ClientEdgeToServerObject":if(this._useExecTimeResolvers&&("RelayResolver"===i.backingField.kind||"RelayLiveResolver"===i.backingField.kind)){var v=i.linkedField;v.plural?this._readPluralLink(v,t,r):this._readLink(v,t,r)}else this._readClientEdge(i,t,r);break;default:A(!1)}}return!0},t._readClientSideDirectiveField=function(e,t,r){switch(e.field.kind){case"ScalarField":return this._readScalar(e.field,t,r);case"LinkedField":if(e.field.plural)return this._readPluralLink(e.field,t,r);return this._readLink(e.field,t,r);case"RelayResolver":case"RelayLiveResolver":if(this._useExecTimeResolvers)return this._readScalar(e.field,t,r);return this._readResolverField(e.field,t,r);case"ClientEdgeToClientObject":case"ClientEdgeToServerObject":if(!this._useExecTimeResolvers||"RelayResolver"!==e.field.backingField.kind&&"RelayLiveResolver"!==e.field.backingField.kind)return this._readClientEdge(e.field,t,r);var n=e.field;if(n.linkedField.plural)return this._readPluralLink(n.linkedField,t,r);return this._readLink(n.linkedField,t,r);case"AliasedInlineFragmentSpread":return this._readAliasedInlineFragment(e.field,t,r);default:e.field.kind,A(!1)}},t._readResolverField=function(e,t,r){var n,i=f.getDataID(t),a=this._fieldErrors;this._fieldErrors=null;var o=this._readResolverFieldImpl(e,i),s=null!==(n=e.alias)&&void 0!==n?n:e.name;return this._prependPreviousErrors(a,s),r[s]=o,o},t._readResolverFieldImpl=function(e,t){var r,n=this,i=e.fragment,o=function(e){return null!=r?{data:r.data,isMissingData:r.isMissingData,fieldErrors:r.fieldErrors}:{data:(r=O(n._recordSource,e,n._resolverCache)).data,isMissingData:r.isMissingData,fieldErrors:r.fieldErrors}},s=this._resolverCache.readFromCacheOrEvaluate(t,e,this._variables,function(){if(null!=i){var s={__id:t,__fragmentOwner:n._owner,__fragments:(0,a.default)({},i.name,i.args?E(i.args,n._variables):{})};return C({getDataForResolverFragment:o},function(){var t=x(e,n._variables,s,n._resolverContext),i=t[0],a=t[1];return{resolverResult:i,snapshot:r,error:a}})}var l=x(e,n._variables,null,n._resolverContext);return{resolverResult:l[0],snapshot:void 0,error:l[1]}},o),l=s[0],u=s[1],c=s[2],d=s[3],f=s[4],h=s[5];return this._propagateResolverMetadata(e.path,d,c,u,f,h),l},t._propagateResolverMetadata=function(e,t,r,n,i,a){var o=this;if(null!=t){if(null!=t.missingClientEdges)for(var s=0;s0;for(var u=0;u=0;i--)e.push(this._fieldErrors[i]);this._fieldErrors=e}}else this._fieldErrors=e},t._readActorChange=function(e,t,r){var n,i=null!==(n=e.alias)&&void 0!==n?n:e.name,a=S(e,this._variables),o=f.getActorLinkedRecordID(t,a);if(null==o)return r[i]=o,void 0===o?this._markDataAsMissing(i):null===o&&this._maybeAddFieldErrors(t,a),r[i];var s=o[0],l=o[1],u={};return this._createFragmentPointer(e.fragmentSpread,f.fromObject({__id:l}),u),r[i]={__fragmentRef:u,__viewer:s},r[i]},t._readPluralLink=function(e,t,r){var n=S(e,this._variables),i=f.getLinkedRecordIDs(t,n);return(null===i||u.ENABLE_NONCOMPLIANT_ERROR_HANDLING_ON_LISTS&&Array.isArray(i)&&0===i.length)&&this._maybeAddFieldErrors(t,n),this._readLinkedIds(e,i,t,r)},t._readLinkedIds=function(e,t,r,n){var i,a=this,o=null!==(i=e.alias)&&void 0!==i?i:e.name;if(null==t)return n[o]=t,void 0===t&&this._markDataAsMissing(o),t;var s=n[o];null==s||Array.isArray(s)||A(!1);var l=this._fieldErrors;this._fieldErrors=null;var u=s||[];return t.forEach(function(t,r){if(null==t){void 0===t&&a._markDataAsMissing(String(r)),u[r]=t;return}var n=u[r];null==n||"object"==typeof n||A(!1);var i=a._fieldErrors;a._fieldErrors=null,u[r]=a._traverse(e,t,n),a._prependPreviousErrors(i,r)}),this._prependPreviousErrors(l,o),n[o]=u,u},t._readModuleImport=function(e,t,r){var n=R(e.documentName),i=f.getValue(t,n),a=void 0!==i?i:e.componentModuleProvider;if(null==a){void 0===a&&this._markDataAsMissing("");return}this._createFragmentPointer({kind:"FragmentSpread",name:e.fragmentName,args:e.args},t,r),r[v]=e.fragmentPropName,r[y]=a},t._readAliasedInlineFragment=function(e,t,r){var n=this._fieldErrors;this._fieldErrors=null;var i=this._readInlineFragment(e.fragment,t,{},!0);this._prependPreviousErrors(n,e.name),!1===i&&(i=null),r[e.name]=i},t._readInlineFragment=function(e,t,r,n){if(null==e.type){var i=this._traverseSelections(e.selections,t,r);return!1!==i&&r}var a=e.abstractKey;if(null==a){if(!this._recordMatchesTypeCondition(t,e.type))return null;var i=this._traverseSelections(e.selections,t,r);if(!i)return!1}else{var o=this._implementsInterface(t,a);if(!1===o&&n)return null;var s=this._isMissingData,l=this._isWithinUnmatchedTypeRefinement;this._isWithinUnmatchedTypeRefinement=l||!1===o;var u=this._traverseSelections(e.selections,t,r);if(this._isWithinUnmatchedTypeRefinement=l,!1===o)return this._isMissingData=s,null;if(null==o)return;if(!1===u)return!1}return r},t._recordMatchesTypeCondition=function(e,t){var r=f.getType(e);return null!=r&&r===t||f.getDataID(e)===b},t._createFragmentPointer=function(e,t,r){var n=r[g];null==n&&(n=r[g]={}),"object"==typeof n&&null!=n||A(!1),null==r[m]&&(r[m]=f.getDataID(t)),n[e.name]=E(e.args,this._variables,this._isWithinUnmatchedTypeRefinement),r[_]=this._owner,this._clientEdgeTraversalPath.length>0&&null!==this._clientEdgeTraversalPath[this._clientEdgeTraversalPath.length-1]&&(r[p]=(0,s.default)(this._clientEdgeTraversalPath))},t._createInlineDataOrResolverFragmentPointer=function(e,t,r){var n=r[g];null==n&&(n=r[g]={}),"object"==typeof n&&null!=n||A(!1),null==r[m]&&(r[m]=f.getDataID(t));var i={},a=this._fragmentName;this._fragmentName=e.name;var o=this._variables,s=e.args?E(e.args,this._variables):{};this._variables=d.getFragmentVariables(e,this._owner.variables,s),this._traverseSelections(e.selections,t,i),this._variables=o,this._fragmentName=a,n[e.name]=i},t._implementsInterface=function(e,t){var r=f.getType(e),n=this._recordSource.get(P(r)),i=null!=n?f.getValue(n,t):null;return null==i&&this._markDataAsMissing(""),i},e}();function T(e){switch(e.kind){case"missing_expected_data.throw":case"missing_required_field.throw":case"relay_field_payload.error":case"relay_resolver.error":return(0,i.default)((0,i.default)({},e),{},{handled:!0});case"missing_expected_data.log":case"missing_required_field.log":return e;default:e.kind,A(!1)}}function x(e,t,r,n){var i="function"==typeof e.resolverModule?e.resolverModule:e.resolverModule.default,a=null,o=null;try{var s=[];null!=e.fragment&&s.push(r);var l=e.args?E(e.args,t):void 0;s.push(l),s.push(n),a=i.apply(null,s)}catch(e){a=null,e!==k&&(o=e)}return[a,o]}function N(e,t,r){return"string"==typeof e?e:"object"==typeof e&&null!=e&&"string"==typeof e.id?e.id:void A(!1)}e.exports={read:O}},53968:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(50883)),i=r(38742),a=r(21304),o=a.EXISTENT,s=a.NONEXISTENT,l=a.UNKNOWN,u=function(){function e(e){var t=this;this._records=new Map,null!=e&&Object.keys(e).forEach(function(r){var n=e[r],a=i.fromObject(n);t._records.set(r,a)})}e.create=function(t){return new e(t)};var t=e.prototype;return t.clear=function(){this._records=new Map},t.delete=function(e){this._records.set(e,null)},t.get=function(e){return this._records.get(e)},t.getRecordIDs=function(){return Array.from(this._records.keys())},t.getStatus=function(e){return this._records.has(e)?null==this._records.get(e)?s:o:l},t.has=function(e){return this._records.has(e)},t.remove=function(e){this._records.delete(e)},t.set=function(e,t){this._records.set(e,t)},t.size=function(){return this._records.size},t.toJSON=function(){var e,t={},r=(0,n.default)(this._records);try{for(r.s();!(e=r.n()).done;){var a=e.value,o=a[0],s=a[1];t[o]=i.toJSON(s)}}catch(e){r.e(e)}finally{r.f()}return t},e}();e.exports=u},21304:e=>{"use strict";e.exports={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"}},46025:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(50883)),i=r(93587),a=r(89046),o=r(62482),s=r(83798).getLocalVariables,l=r(38742),u=r(41046),c=r(84848).generateTypeID,d=r(20311),f=u.getReadTimeResolverStorageKey,h=u.getStorageKey,p=u.getModuleOperationKey,_=function(){function e(e,t,r,n,i){this._operationLoader=null!=n?n:null,this._operationName=null,this._recordSource=e,this._references=r,this._variables=t,this._shouldProcessClientComponents=i}var t=e.prototype;return t.mark=function(e,t){("Operation"===e.kind||"SplitOperation"===e.kind)&&(this._operationName=e.name),this._traverse(e,t)},t._traverse=function(e,t){this._references.add(t);var r=this._recordSource.get(t);null!=r&&this._traverseSelections(e.selections,r)},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||d(!1),this._variables[e]},t._traverseSelections=function(e,t){var r=this;e.forEach(function(n){switch(n.kind){case"ActorChange":r._traverseLink(n.linkedField,t);break;case"LinkedField":n.plural?r._traversePluralLink(n,t):r._traverseLink(n,t);break;case"Condition":!!r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case"InlineFragment":if(null==n.abstractKey){var i=l.getType(t);(null!=i&&i===n.type||i===u.ROOT_TYPE)&&r._traverseSelections(n.selections,t)}else{var o=c(l.getType(t));r._references.add(o),r._traverseSelections(n.selections,t)}break;case"FragmentSpread":var f=r._variables;r._variables=s(r._variables,n.fragment.argumentDefinitions,n.args),r._traverseSelections(n.fragment.selections,t),r._variables=f;break;case"LinkedHandle":var h=a(n,e,r._variables);h.plural?r._traversePluralLink(h,t):r._traverseLink(h,t);break;case"Defer":case"Stream":case"ClientExtension":r._traverseSelections(n.selections,t);break;case"ScalarField":case"ScalarHandle":break;case"TypeDiscriminator":var p=c(l.getType(t));r._references.add(p);break;case"ModuleImport":r._traverseModuleImport(n,t);break;case"ClientComponent":if(!1===r._shouldProcessClientComponents)break;r._traverseSelections(n.fragment.selections,t);break;case"RelayResolver":case"RelayLiveResolver":r._traverseResolverField(n,t);break;case"ClientEdgeToClientObject":r._traverseClientEdgeToClientObject(n,t);break;default:d(!1)}})},t._traverseClientEdgeToClientObject=function(e,t){var r=this._traverseResolverField(e.backingField,t);if(null!=r){var i=this._recordSource.get(r);if(null!=i){if(e.backingField.isOutputType){var a=o(i);if(null!=a){var s,u=(0,n.default)(a);try{for(u.s();!(s=u.n()).done;){var c=s.value;this._references.add(c)}}catch(e){u.e(e)}finally{u.f()}}}else{var d=e.linkedField,f=d.concreteType;if(null==f)return;if(d.plural){var h=l.getResolverLinkedRecordIDs(i,f);if(null!=h){var p,_=(0,n.default)(h);try{for(_.s();!(p=_.n()).done;){var v=p.value;null!=v&&this._traverse(d,v)}}catch(e){_.e(e)}finally{_.f()}}}else{var g=l.getResolverLinkedRecordID(i,f);null!=g&&this._traverse(d,g)}}}}},t._traverseResolverField=function(e,t){var r=f(e,this._variables),n=l.getLinkedRecordID(t,r);null!=n&&this._references.add(n);var i=e.fragment;return null!=i&&this._traverseSelections([i],t),n},t._traverseModuleImport=function(e,t){var r=this._operationLoader;null!==r||d(!1);var n=p(e.documentName),a=l.getValue(t,n);if(null!=a){var o=r.get(a);if(null!=o){var u=i(o),c=this._variables;this._variables=s(this._variables,u.argumentDefinitions,e.args),this._traverseSelections(u.selections,t),this._variables=c}}},t._traverseLink=function(e,t){var r=h(e,this._variables),n=l.getLinkedRecordID(t,r);null!=n&&this._traverse(e,n)},t._traversePluralLink=function(e,t){var r=this,n=h(e,this._variables),i=l.getLinkedRecordIDs(t,n);null!=i&&i.forEach(function(t){null!=t&&r._traverse(e,t)})},e}();e.exports={mark:function(e,t,r,n,i){var a=t.dataID,o=t.node;new _(e,t.variables,r,n,i).mark(o,a)}}},41924:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(50883)),a=n(r(41132)),o=r(26611),s=(o.ACTOR_IDENTIFIER_FIELD_NAME,o.getActorIdentifierFromPayload),l=r(884),u=r(84895),c=u.generateClientID,d=u.isClientID,f=r(83798).getLocalVariables,h=r(18900),p=h.buildErrorTrie,_=h.getErrorsByKey,v=h.getNestedErrorTrieByKey,g=r(38742),m=r(95814).createNormalizationSelector,y=r(41046),b=y.ROOT_ID,E=y.TYPENAME_KEY,R=y.getArgumentValues,S=y.getHandleStorageKey,I=y.getModuleComponentKey,D=y.getModuleOperationKey,k=y.getStorageKey,C=r(84848),P=C.TYPE_SCHEMA_TYPE,A=C.generateTypeID;r(3574);var O=r(20311);r(14594);var F=function(){function e(e,t,r){this._actorIdentifier=r.actorIdentifier,this._getDataId=r.getDataID,this._handleFieldPayloads=[],this._treatMissingFieldsAsNull=r.treatMissingFieldsAsNull,this._incrementalPlaceholders=[],this._isClientExtension=!1,this._isUnmatchedAbstractType=!1,this._followupPayloads=[],this._path=r.path?(0,a.default)(r.path):[],this._recordSource=e,this._variables=t,this._shouldProcessClientComponents=r.shouldProcessClientComponents,this._log=r.log}var t=e.prototype;return t.normalizeResponse=function(e,t,r,n){var i=this._recordSource.get(t);return i||O(!1),this._assignClientAbstractTypes(e),this._errorTrie=p(n),this._traverseSelections(e,i,r),{errors:n,fieldPayloads:this._handleFieldPayloads,incrementalPlaceholders:this._incrementalPlaceholders,followupPayloads:this._followupPayloads,source:this._recordSource,isFinal:!1}},t._assignClientAbstractTypes=function(e){var t=e.clientAbstractTypes;if(null!=t)for(var r=0,n=Object.keys(t);r{"use strict";r(15519);var n=r(57042),i=r(884),a=r(90402),o=r(63657),s=r(35639),l=function(){function e(e,t,r){this._subscriptions=new Set,this.__log=e,this._resolverCache=t,this._resolverContext=r}var t=e.prototype;return t.subscribe=function(e,t){var r=this,n={backup:null,callback:t,snapshot:e,stale:!1};return this._subscriptions.add(n),{dispose:function(){r._subscriptions.delete(n)}}},t.snapshotSubscriptions=function(e){var t=this;this._subscriptions.forEach(function(r){if(!r.stale){r.backup=r.snapshot;return}var i=r.snapshot,a=s.read(e,i.selector,t._resolverCache,t._resolverContext),o=n(i.data,a.data);a.data=o,r.backup=a})},t.restoreSubscriptions=function(){this._subscriptions.forEach(function(e){var t=e.backup;e.backup=null,t?(t.data!==e.snapshot.data&&(e.stale=!0),e.snapshot={data:e.snapshot.data,isMissingData:t.isMissingData,missingClientEdges:t.missingClientEdges,missingLiveResolverFields:t.missingLiveResolverFields,seenRecords:t.seenRecords,selector:t.selector,fieldErrors:t.fieldErrors}):e.stale=!0})},t.updateSubscriptions=function(e,t,r,n){var i=this,a=0!==t.size;this._subscriptions.forEach(function(o){var s=i._updateSubscription(e,o,t,a,n);null!=s&&r.push(s)})},t._updateSubscription=function(e,t,r,l,u){var c=t.backup,d=t.callback,f=t.snapshot,h=t.stale,p=l&&a(f.seenRecords,r);if(h||p){var _=p||!c?s.read(e,f.selector,this._resolverCache,this._resolverContext):c;return(_={data:n(f.data,_.data),isMissingData:_.isMissingData,missingClientEdges:_.missingClientEdges,missingLiveResolverFields:_.missingLiveResolverFields,seenRecords:_.seenRecords,selector:_.selector,fieldErrors:_.fieldErrors},t.snapshot=_,t.stale=!1,_.data!==f.data)?(this.__log&&i.ENABLE_NOTIFY_SUBSCRIPTION&&this.__log({name:"store.notify.subscription",sourceOperation:u,snapshot:f,nextSnapshot:_}),d(_),f.selector.owner):i.ENABLE_LOOSE_SUBSCRIPTION_ATTRIBUTION&&(h||o(f.seenRecords,r))?f.selector.owner:void 0}},t.size=function(){return this._subscriptions.size},e}();e.exports=l},41046:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(41132)),i=r(9130),a=r(79642),o=r(884),s=r(8312).stableCopy,l=r(20311),u=a.VARIABLE,c=a.LITERAL,d=a.OBJECT_VALUE,f=a.LIST_VALUE;function h(e,t){if(e.kind===u){var r;return r=e.variableName,t.hasOwnProperty(r)||l(!1),s(t[r])}if(e.kind===c)return e.value;if(e.kind===d){var n={};return e.fields.forEach(function(e){n[e.name]=h(e,t)}),n}if(e.kind===f){var i=[];return e.items.forEach(function(e){null!=e&&i.push(h(e,t))}),i}}function p(e,t,r){var n={};return r&&(n[g.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT]=!0),e&&e.forEach(function(e){n[e.name]=h(e,t)}),n}function _(e,t){if(e.storageKey)return e.storageKey;var r=function(e){if("RelayResolver"===e.kind||"RelayLiveResolver"===e.kind){var t,r;return null==e.args?null===(r=e.fragment)||void 0===r?void 0:r.args:(null===(t=e.fragment)||void 0===t?void 0:t.args)==null?e.args:e.args.concat(e.fragment.args)}return void 0===e.args?void 0:e.args}(e),n=e.name;return r&&0!==r.length?v(n,p(r,t)):n}function v(e,t){if(!t)return e;var r=[];for(var n in t)if(t.hasOwnProperty(n)){var i,a=t[n];null!=a&&r.push(n+":"+(null!==(i=JSON.stringify(a))&&void 0!==i?i:"undefined"))}return 0===r.length?e:e+"(".concat(r.join(","),")")}var g={ACTOR_IDENTIFIER_KEY:"__actorIdentifier",CLIENT_EDGE_TRAVERSAL_PATH:"__clientEdgeTraversalPath",FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"$isWithinUnmatchedTypeRefinement",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ERRORS_KEY:"__errors",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",RELAY_RESOLVER_VALUE_KEY:"__resolverValue",RELAY_RESOLVER_INVALIDATION_KEY:"__resolverValueMayBeInvalid",RELAY_RESOLVER_SNAPSHOT_KEY:"__resolverSnapshot",RELAY_RESOLVER_ERROR_KEY:"__resolverError",RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS:"__resolverOutputTypeRecordIDs",RELAY_READ_TIME_RESOLVER_KEY_PREFIX:"$r:",formatStorageKey:v,getArgumentValue:h,getArgumentValues:p,getHandleStorageKey:function(e,t){var r=e.dynamicKey,a=e.handle,o=e.key,s=e.name,l=e.args,u=e.filters,c=i(a,o,s),d=null;return(l&&u&&0!==l.length&&0!==u.length&&(d=l.filter(function(e){return u.indexOf(e.name)>-1})),r&&(d=null!=d?[r].concat((0,n.default)(d)):[r]),null===d)?c:v(c,p(d,t))},getStorageKey:_,getReadTimeResolverStorageKey:function(e,t){var r=_(e,t);return o.ENABLE_READ_TIME_RESOLVER_STORAGE_KEY_PREFIX?"$r:"+r:r},getStableStorageKey:function(e,t){return v(e,s(t))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=g},6094:(e,t,r)=>{"use strict";var n=r(79642).RELAY_LIVE_RESOLVER,i=r(20311),a=function(){function e(){}var t=e.prototype;return t.readFromCacheOrEvaluate=function(e,t,r,a,o){t.kind!==n||i(!1);var s=a(),l=s.resolverResult,u=s.snapshot;return[l,void 0,s.error,u,void 0,void 0]},t.invalidateDataIDs=function(e){},t.ensureClientRecord=function(e,t){i(!1)},t.notifyUpdatedSubscribers=function(e){},e}();e.exports={NoopResolverCache:a}},14358:(e,t,r)=>{"use strict";var n=r(53141).getFragment,i=r(57595).eventShouldThrow,a=r(95814).getSelector,o=r(20311),s=[],l={};e.exports={readFragment:function(e,t){if(!s.length)throw Error("readFragment should be called only from within a Relay Resolver function.");var r=s[s.length-1],u=a(n(e),t);null!=u||o(!1),"SingularReaderSelector"!==u.kind&&o(!1);var c=r.getDataForResolverFragment(u,t),d=c.data,f=c.isMissingData,h=c.fieldErrors;if(f||null!=h&&h.some(i))throw l;return d},withResolverContext:function(e,t){s.push(e);try{return t()}finally{s.pop()}},RESOLVER_FRAGMENT_ERRORED_SENTINEL:l}},84848:e=>{"use strict";var t="client:__type:";e.exports={generateTypeID:function(e){return t+e},isTypeID:function(e){return 0===e.indexOf(t)},TYPE_SCHEMA_TYPE:"__TypeSchema"}},63318:(e,t,r)=>{"use strict";var n=(0,r(84895).generateClientID)(r(41046).ROOT_ID,"viewer");e.exports={VIEWER_ID:n,VIEWER_TYPE:"Viewer"}},89046:(e,t,r)=>{"use strict";var n=r(79642).LINKED_FIELD,i=r(41046).getHandleStorageKey,a=r(3574),o=r(20311);e.exports=function(e,t,r){var s=t.find(function(t){return t.kind===n&&t.name===e.name&&t.alias===e.alias&&a(t.args,e.args)});s&&s.kind===n||o(!1);var l=i(e,r);return{kind:"LinkedField",alias:s.alias,name:l,storageKey:l,args:null,concreteType:s.concreteType,plural:s.plural,selections:s.selections}}},6162:(e,t,r)=>{"use strict";var n=r(79642).SCALAR_FIELD,i=r(41046).getHandleStorageKey,a=r(3574),o=r(20311);e.exports=function(e,t,r){var s=t.find(function(t){return t.kind===n&&t.name===e.name&&t.alias===e.alias&&a(t.args,e.args)});s&&s.kind===n||o(!1);var l=i(e,r);return{kind:"ScalarField",alias:s.alias,name:l,storageKey:l,args:null}}},87864:(e,t,r)=>{"use strict";var n=r(58270);r(14594),e.exports=function(e,t,r,i,a,o){return new n(e,r,i,o,a)}},13029:(e,t,r)=>{"use strict";var n,i,a=r(20311);e.exports=function(e){return n||(n=e.createContext(null),i=e),e!==i&&a(!1),n}},56156:(e,t,r)=>{"use strict";var n,i,a=r(20311);e.exports=function(e){return n||(n=e.createContext(null),i=e),e!==i&&a(!1),n}},56663:(e,t,r)=>{"use strict";var n=r(63318),i=n.VIEWER_ID,a=n.VIEWER_TYPE;e.exports=function(e,t){return t===a&&null==e.id?i:e.id}},6799:e=>{"use strict";e.exports=function(e){}},90402:e=>{"use strict";var t=Symbol.iterator;e.exports=function(e,r){for(var n=e[t](),i=n.next();!i.done;){var a=i.value;if(r.has(a))return!0;i=n.next()}return!1}},63657:(e,t,r)=>{"use strict";var n=r(41046).ROOT_ID,i=r(63318).VIEWER_ID,a=Symbol.iterator;e.exports=function(e,t){for(var r=e[a](),o=r.next();!o.done;){var s=o.value;if(t.has(s)&&s!==n&&s!==i)return!0;o=r.next()}return!1}},81582:e=>{"use strict";e.exports=function(e){return!!(e&&e["@@RelayModernEnvironment"])}},34236:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(50883)),i=r(57042),a=r(79642).RELAY_LIVE_RESOLVER,o=r(884),s=r(62171),l=r(84895),u=l.generateClientID,c=l.generateClientObjectClientID,d=r(38742),f=r(95814).createNormalizationSelector,h=r(53968),p=r(41924).normalize,_=r(41046),v=_.RELAY_RESOLVER_ERROR_KEY,g=_.RELAY_RESOLVER_INVALIDATION_KEY,m=_.RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS,y=_.RELAY_RESOLVER_SNAPSHOT_KEY,b=_.RELAY_RESOLVER_VALUE_KEY,E=_.getReadTimeResolverStorageKey,R=_.getStorageKey,S=r(62482),I=r(99528),D=r(89452).isSuspenseSentinel,k=r(20311);r(14594);var C="__resolverLiveStateSubscription",P="__resolverLiveStateValue",A="__resolverLiveStateDirty",O="__RELAY_RESOLVER__";function F(e,t,r){var n=e.get(t);n||(n=new Set,e.set(t,n)),n.add(r)}var T=function(){function e(e,t){this._resolverIDToRecordIDs=new Map,this._recordIDToResolverIDs=new Map,this._getRecordSource=e,this._store=t,this._handlingBatch=!1,this._liveResolverBatchRecordSource=null}var t=e.prototype;return t.readFromCacheOrEvaluate=function(e,t,r,i,o){var s,l=this._getRecordSource(),c=M(l,e),f=E(t,r),h=d.getLinkedRecordID(c,f),p=null==h?null:l.get(h);if(null==p||this._isInvalid(p,o)){null!=p&&w(p),h=null!==(x=h)&&void 0!==x?x:u(e,f),p=d.create(h,O);var _=i();if(d.setValue(p,y,_.snapshot),d.setValue(p,v,_.error),t.kind===a){if(null!=_.resolverResult){null!=_.error&&k(!1);var g=_.resolverResult;T=this._setLiveStateValue(p,h,g,t,r)}}else T=this._setResolverValue(p,_.resolverResult,t,r);l.set(h,p);var m=M(l,e),b=d.clone(m);if(d.setLinkedRecordID(b,f,h),l.set(e,b),null!=t.fragment){var S=u(e,R(t.fragment,r));F(this._resolverIDToRecordIDs,S,h),F(this._recordIDToResolverIDs,e,S);var C=null===(N=_.snapshot)||void 0===N?void 0:N.seenRecords;if(null!=C){var T,x,N,L,V=(0,n.default)(C);try{for(V.s();!(L=V.n()).done;){var U=L.value;F(this._recordIDToResolverIDs,U,S)}}catch(e){V.e(e)}finally{V.f()}}}}else if(t.kind===a&&d.getValue(p,A)){h=null!==(q=h)&&void 0!==q?q:u(e,f),p=d.clone(p);var q,j=d.getValue(p,P);I(j)||k(!1),T=this._setLiveResolverValue(p,j,t,r),d.setValue(p,A,!1),l.set(h,p)}var Q=this._getResolverValue(p),K=d.getValue(p,y),B=d.getValue(p,v),Y=null;return D(Q)&&(Y=null!==(s=h)&&void 0!==s?s:u(e,f)),[Q,h,B,K,Y,T]},t.getLiveResolverPromise=function(e){var t=this._getRecordSource().get(e);null!=t||k(!1);var r=d.getValue(t,P);return new Promise(function(e){var t=r.subscribe(function(){t(),e()})})},t._setLiveStateValue=function(e,t,r,n,i){var a=this._makeLiveStateHandler(t),o=r.subscribe(a);d.setValue(e,P,r);var s=this._setLiveResolverValue(e,r,n,i);return d.setValue(e,A,!1),d.setValue(e,C,o),s},t._makeLiveStateHandler=function(e){var t=this;return function(){var r=t._getRecordSource().get(e);if(r&&d.hasValue(r,P)){var n=d.clone(r);d.setValue(n,A,!0),t._setLiveResolverUpdate(e,n)}}},t._setLiveResolverUpdate=function(e,t){if(this._handlingBatch)null==this._liveResolverBatchRecordSource&&(this._liveResolverBatchRecordSource=h.create()),this._liveResolverBatchRecordSource.set(e,t);else{var r=h.create();r.set(e,t),this._store.publish(r),this._store.notify()}},t.batchLiveStateUpdates=function(e){this._handlingBatch&&k(!1),this._handlingBatch=!0;try{e()}finally{null!=this._liveResolverBatchRecordSource&&(this._store.publish(this._liveResolverBatchRecordSource),this._store.notify()),this._liveResolverBatchRecordSource=null,this._handlingBatch=!1}},t._setLiveResolverValue=function(e,t,r,n){var i=null,a=null;try{i=t.read()}catch(e){a=e}return d.setValue(e,v,a),this._setResolverValue(e,i,r,n)},t._setResolverValue=function(e,t,r,i){var a=r.normalizationInfo,o=null;if(null==t||null==a||D(t))s(t),d.setValue(e,b,t);else{var l=S(e),u=new Set,f=this._getRecordSource();if(a.plural){Array.isArray(t)||k(!1),g=[];for(var p=h.create(),_=0;_{"use strict";var t=Object.freeze({__LIVE_RESOLVER_SUSPENSE_SENTINEL:!0});e.exports={isSuspenseSentinel:function(e){return e===t},suspenseSentinel:function(){return t}}},62482:(e,t,r)=>{"use strict";var n=r(38742),i=r(41046).RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS,a=r(20311);e.exports=function(e){var t=n.getValue(e,i);return null==t?null:(t instanceof Set||a(!1),t)}},99528:e=>{"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&"function"==typeof e.read&&"function"==typeof e.subscribe}},150:(e,t,r)=>{"use strict";var n=r(14358).readFragment,i=r(20311);e.exports=function(e,t,r,a){return function(o,s,l){var u=n(e,o);if(null==r)return t(null,s,l);if(null==u){if(!0!==a)return t(null,s,l);i(!1)}if(r in u)return!0===a&&(null!=u[r]||i(!1)),t(u[r],s,l);i(!1)}}},47161:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(12897)),a=n(r(38742)),o=n(r(53968)),s=n(r(41924));e.exports=function(e,t,r,n){var l,u=e.data,c=e.errors,d=o.default.create(),f=a.default.create(t.dataID,r);d.set(t.dataID,f);var h=s.default.normalize(d,t,u,n,c);return(0,i.default)((0,i.default)({},h),{},{isFinal:(null===(l=e.extensions)||void 0===l?void 0:l.is_final)===!0})}},55199:(e,t,r)=>{"use strict";var n=r(24994).default,i=r(29293).default,a=n(r(50883)),o=r(12006),s=r(94987).getObservableForActiveRequest,l=r(53141).getFragment,u=r(57595).handlePotentialSnapshotErrors,c=r(95814).getSelector,d=r(20311);function f(){return(f=i(function*(e,t,r){try{var n,i,a,o=yield new Promise(function(n,a){i=h(e,t,r).subscribe({next:function(e){"ok"===e.state?n(e.value):"error"===e.state&&a(e.error)}})});return null===(a=i)||void 0===a||a.unsubscribe(),o}catch(e){throw null===(n=i)||void 0===n||n.unsubscribe(),e}})).apply(this,arguments)}function h(e,t,r){var n,i,a,s=l(t),u=c(s,r);switch((null===(a=s.metadata)||void 0===a?void 0:a.hasClientEdges)!=null&&d(!1),null!=u||d(!1),u.kind){case"SingularReaderSelector":return n=e.lookup(u),o.create(function(r){r.next(p(e,t,u.owner,n));var i=e.subscribe(n,function(n){r.next(p(e,t,u.owner,n))});return function(){return i.dispose()}});case"PluralReaderSelector":return i=u.selectors.map(function(t){return e.lookup(t)}),o.create(function(r){var n=i.map(function(r,n){return p(e,t,u.selectors[n].owner,r)});r.next(_(n));var a=i.map(function(i,a){return e.subscribe(i,function(i){n[a]=p(e,t,u.selectors[a].owner,i),r.next(_(n))})});return function(){return a.forEach(function(e){return e.dispose()})}})}d(!1)}function p(e,t,r,n){var i=null!=n.missingLiveResolverFields&&n.missingLiveResolverFields.length>0,a=null!=n.missingClientEdges&&n.missingClientEdges.length>0;if(i||a||n.isMissingData&&(null!=s(e,r)||null!=e.getOperationTracker().getPendingOperationsAffectingOwner(r)))return{state:"loading"};try{u(e,n.fieldErrors)}catch(e){return{error:e,state:"error"}}return null!=n.data||d(!1),{state:"ok",value:n.data}}function _(e){var t,r=[],n=(0,a.default)(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if("ok"!==i.state)return i;r.push(i.value)}}catch(e){n.e(e)}finally{n.f()}return{state:"ok",value:r}}e.exports={observeFragment:h,waitForFragmentData:function(e,t,r){return f.apply(this,arguments)}}},90931:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(43693)),i=r(55199).observeFragment,a=r(32115).createOperationDescriptor;e.exports={observeQuery:function(e,t,r){var o=a(t,r),s={__id:o.fragment.dataID,__fragments:(0,n.default)({},o.fragment.node.name,o.request.variables),__fragmentOwner:o.request};return i(e,o.request.node.fragment,s)}}},31424:(e,t,r)=>{"use strict";var n=r(53141).getInlineDataFragment,i=r(41046).FRAGMENTS_KEY,a=r(20311);e.exports=function(e,t){var r,o=n(e);if(null==t)return t;"object"!=typeof t&&a(!1);var s=null===(r=t[i])||void 0===r?void 0:r[o.name];return null!=s||a(!1),s}},3971:(e,t,r)=>{"use strict";var n=r(29293).default,i=r(55199).observeFragment;function a(){return(a=n(function*(e,t,r){try{var n,a,o,s=yield new Promise(function(n,o){a=i(e,t,r).subscribe({next:function(e){"ok"===e.state?n(e.value):"error"===e.state&&o(e.error)}})});return null===(o=a)||void 0===o||o.unsubscribe(),s}catch(e){throw null===(n=a)||void 0===n||n.unsubscribe(),e}})).apply(this,arguments)}e.exports={waitForFragmentData:function(e,t,r){return a.apply(this,arguments)}}},44881:(e,t,r)=>{"use strict";var n=r(98976),i=r(53141).getRequest,a=r(32115).createOperationDescriptor,o=r(95814).createReaderSelector;r(14594),e.exports=function(e,t){var r=i(t.subscription);if("subscription"!==r.params.operationKind)throw Error("requestSubscription: Must use Subscription operation");var s=t.configs,l=t.onCompleted,u=t.onError,c=t.onNext,d=a(r,t.variables,t.cacheConfig),f=(s?n.convert(s,r,null,t.updater):t).updater;return{dispose:e.executeSubscription({operation:d,updater:f}).subscribe({next:function(t){if(null!=c){var r,n,i,a,s=d.fragment;"string"==typeof(r=Array.isArray(t)?null===(n=t[0])||void 0===n?void 0:null===(i=n.extensions)||void 0===i?void 0:i.__relay_subscription_root_id:null===(a=t.extensions)||void 0===a?void 0:a.__relay_subscription_root_id)&&(s=o(s.node,r,s.variables,s.owner)),c(e.lookup(s).data)}},error:u,complete:l}).unsubscribe}}},79642:e=>{"use strict";e.exports={ACTOR_CHANGE:"ActorChange",CATCH_FIELD:"CatchField",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EDGE_TO_SERVER_OBJECT:"ClientEdgeToServerObject",CLIENT_EDGE_TO_CLIENT_OBJECT:"ClientEdgeToClientObject",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",ALIASED_FRAGMENT_SPREAD:"AliasedFragmentSpread",ALIASED_INLINE_FRAGMENT_SPREAD:"AliasedInlineFragmentSpread",RELAY_RESOLVER:"RelayResolver",RELAY_LIVE_RESOLVER:"RelayLiveResolver",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",UPDATABLE_QUERY:"UpdatableQuery",VARIABLE:"Variable"}},96991:e=>{"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},91011:e=>{"use strict";function t(e,t,r){for(var n=arguments.length,i=Array(n>3?n-3:0),a=3;a2?n-2:0),a=2;a2?n-2:0),a=2;a{"use strict";e.exports={ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_RELAY_RESOLVERS:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1,ENABLE_DO_NOT_WRAP_LIVE_QUERY:!1,ENABLE_NOTIFY_SUBSCRIPTION:!1,BATCH_ASYNC_MODULE_UPDATES_FN:null,ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT:!1,MAX_DATA_ID_LENGTH:null,STRING_INTERN_LEVEL:0,LOG_MISSING_RECORDS_IN_PROD:!1,ENABLE_STORE_ID_COLLISION_LOGGING:!1,ENABLE_NONCOMPLIANT_ERROR_HANDLING_ON_LISTS:!1,ENABLE_LOOSE_SUBSCRIPTION_ATTRIBUTION:!1,ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES:!1,ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE:!1,PROCESS_OPTIMISTIC_UPDATE_BEFORE_SUBSCRIPTION:!1,MARK_RESOLVER_VALUES_AS_CLEAN_AFTER_FRAGMENT_REREAD:!1,ENABLE_CYLE_DETECTION_IN_VARIABLES:!1,ENABLE_ACTIVITY_COMPATIBILITY:!1,ENABLE_READ_TIME_RESOLVER_STORAGE_KEY_PREFIX:!0,ENABLE_USE_PAGINATION_IS_LOADING_FIX:!1,DISALLOW_NESTED_UPDATES:!1,ENABLE_TYPENAME_PREFIXED_DATA_ID:!1,ENABLE_UI_CONTEXT_ON_RELAY_LOGGER:!1}},7044:e=>{"use strict";var t={},r={stop:function(){}};e.exports={profile:function(e,n){var i=t[e];if(i&&i.length>0){for(var a=[],o=i.length-1;o>=0;o--){var s=i[o](e,n);a.unshift(s)}return{stop:function(e){a.forEach(function(t){return t(e)})}}}return r},attachProfileHandler:function(e,r){t.hasOwnProperty(e)||(t[e]=[]),t[e].push(r)},detachProfileHandler:function(e,r){var n,i;t.hasOwnProperty(e)&&-1!==(i=(n=t[e]).indexOf(r))&&n.splice(i,1)}}},85252:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(50883)),a=n(r(43693)),o=r(12006),s=r(20311),l=function(){function e(){var e=this;(0,a.default)(this,"_complete",!1),(0,a.default)(this,"_events",[]),(0,a.default)(this,"_sinks",new Set),(0,a.default)(this,"_subscription",[]),this._observable=o.create(function(t){e._sinks.add(t);for(var r=e._events,n=0;n{"use strict";var t=new Map,r=1,n=function(){for(var e=new Set,t=0;t<10;++t)e.add(t.toString());return e}();e.exports={intern:function(e,i){if(null==i||e.length{"use strict";var n=(0,r(24994).default)(r(12897)),i=r(41046),a=i.getModuleComponentKey,o=i.getModuleOperationKey;e.exports=function(e,t,r,i){var s=(0,n.default)({},i);return s[a(e)]=r,s[o(e)]=t,s}},15519:e=>{"use strict";e.exports=function e(t){return null!=t&&(Array.isArray(t)||"object"==typeof t&&t.constructor===Object)&&(Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(r){var n=t[r];n&&"object"==typeof n&&!Object.isFrozen(n)&&e(n)})),t}},24428:e=>{"use strict";var t=1e5;e.exports=function(){return t++}},66107:(e,t,r)=>{"use strict";var n=r(95814),i=n.getDataIDsFromFragment,a=n.getSelector,o=n.getVariablesFromFragment,s=r(34526),l=r(884),u=r(8312).stableCopy,c=r(47424).intern;e.exports=function(e,t){var r=a(e,t),n=null==r?"null":"SingularReaderSelector"===r.kind?r.owner.identifier:"["+r.selectors.map(function(e){return e.owner.identifier}).join(",")+"]",d=o(e,t),f=i(e,t);if(l.ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION){var h=void 0===f?"missing":null==f?"null":Array.isArray(f)?"["+f.join(",")+"]":f;return h=l.STRING_INTERN_LEVEL<=1?h:c(h,l.MAX_DATA_ID_LENGTH),n+"/"+e.name+"/"+(null==d||s(d)?"{}":JSON.stringify(u(d)))+"/"+h}var p,_=null!==(p=JSON.stringify(f))&&void 0!==p?p:"missing";return _=l.STRING_INTERN_LEVEL<=1?_:c(_,l.MAX_DATA_ID_LENGTH),n+"/"+e.name+"/"+JSON.stringify(u(d))+"/"+_}},93587:(e,t,r)=>{"use strict";var n=r(79642),i=n.REQUEST;n.SPLIT_OPERATION,e.exports=function(e){return e.kind===i?e.operation:e}},79233:(e,t,r)=>{"use strict";var n=r(5580),i=r(20311);e.exports=function(e,t){var r,a,o=n(e,t),s=o.refetchableRequest,l=o.refetchMetadata,u=l.connection;null!=u||i(!1);var c=u.path,d=(null!==(r=null===(a=e.metadata)||void 0===a?void 0:a.connection)&&void 0!==r?r:[])[0];null!=d||i(!1);var f=l.identifierInfo;return(null==f?void 0:f.identifierField)==null||"string"==typeof f.identifierField||i(!1),{connectionPathInFragmentData:c,identifierField:null==f?void 0:f.identifierField,paginationRequest:s,paginationMetadata:u,stream:!0===d.stream}}},79115:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(43693)),a=n(r(12897)),o=r(20311);r(14594),e.exports=function(e,t,r,n,s,l){var u=l.backward,c=l.forward;if("backward"===e){null!=u&&null!=u.count&&null!=u.cursor||o(!1);var d,f,h=(0,a.default)((0,a.default)((0,a.default)({},n),s),{},(f={},(0,i.default)(f,u.cursor,r),(0,i.default)(f,u.count,t),f));return c&&c.cursor&&(h[c.cursor]=null),c&&c.count&&(h[c.count]=null),h}null!=c&&null!=c.count&&null!=c.cursor||o(!1);var p=(0,a.default)((0,a.default)((0,a.default)({},n),s),{},(d={},(0,i.default)(d,c.cursor,r),(0,i.default)(d,c.count,t),d));return u&&u.cursor&&(p[u.cursor]=null),u&&u.count&&(p[u.count]=null),p}},50172:(e,t,r)=>{"use strict";var n=r(94987).getPromiseForActiveRequest;e.exports=function(e,t,r){var i=[],a=n(e,r);if(null!=a)i=[r];else{var o,s,l,u,c=e.getOperationTracker().getPendingOperationsAffectingOwner(r);i=null!==(l=null==c?void 0:c.pendingOperations)&&void 0!==l?l:[],a=null!==(u=null==c?void 0:c.promise)&&void 0!==u?u:null}if(!a)return null;var d=null!==(o=null===(s=i)||void 0===s?void 0:s.map(function(e){return e.node.params.name}).join(","))&&void 0!==o?o:null;(null==d||0===d.length)&&(d="Unknown pending operation");var f=t.name,h=d===f?"Relay(".concat(d,")"):"Relay(".concat(d,":").concat(f,")");return a.displayName=h,e.__log({name:"pendingoperation.found",fragment:t,fragmentOwner:r,pendingOperations:i}),{promise:a,pendingOperations:i}}},5580:(e,t,r)=>{"use strict";var n=r(20311);e.exports=function(e,t){(null===(r=e.metadata)||void 0===r?void 0:r.plural)!==!0||n(!1);var r,i,a=null===(i=e.metadata)||void 0===i?void 0:i.refetch;null!=a||n(!1);var o=a.operation.default?a.operation.default:a.operation,s=a.fragmentPathInResult;"string"!=typeof o||n(!1);var l=a.identifierInfo;return null!=l&&(null==l.identifierField||"string"==typeof l.identifierField||n(!1),null==l.identifierQueryVariableName||"string"==typeof l.identifierQueryVariableName||n(!1)),{fragmentRefPathInResponse:s,identifierInfo:l,refetchableRequest:o,refetchMetadata:a}}},9130:(e,t,r)=>{"use strict";var n=r(96991).DEFAULT_HANDLE_KEY,i=r(20311);e.exports=function(e,t,r){return t&&t!==n?"__".concat(t,"_").concat(e):(null!=r||i(!1),"__".concat(r,"_").concat(e))}},54736:(e,t,r)=>{"use strict";var n=r(8312).stableCopy,i=r(20311);e.exports=function(e,t){var r=null!=e.cacheID?e.cacheID:e.id;return null!=r||i(!1),r+JSON.stringify(n(t))}},25285:(e,t,r)=>{"use strict";var n=(0,r(24994).default)(r(50883)),i=r(20311);e.exports=function(e,t){var r,a=e,o=(0,n.default)(t);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(null==a)return null;"number"==typeof s?Array.isArray(a)||i(!1):("object"!=typeof a||Array.isArray(a))&&i(!1),a=a[s]}}catch(e){o.e(e)}finally{o.f()}return a}},57595:(e,t,r)=>{"use strict";var n=r(24994).default,i=n(r(12897)),a=n(r(50883)),o=r(20311);function s(e){switch(e.kind){case"relay_resolver.error":case"relay_field_payload.error":return e.shouldThrow&&!e.handled;case"missing_expected_data.throw":case"missing_required_field.throw":return!e.handled;case"missing_required_field.log":case"missing_expected_data.log":return!1;default:throw e.kind,Error("Relay: Unexpected event kind")}}e.exports={handlePotentialSnapshotErrors:function(e,t,r){null!=t&&function(e,t,r){var n,l=(0,a.default)(t);try{for(l.s();!(n=l.n()).done;){var u=n.value;e.relayFieldLogger((0,i.default)((0,i.default)({},u),{},{uiContext:r}))}}catch(e){l.e(e)}finally{l.f()}var c,d=(0,a.default)(t);try{for(d.s();!(c=d.n()).done;){var f=c.value;if(s(f))switch(f.kind){case"relay_resolver.error":throw Error("Relay: Resolver error at path '".concat(f.fieldPath,"' in '").concat(f.owner,"'. Message: ").concat(f.error.message));case"relay_field_payload.error":throw Error("Relay: Unexpected response payload - check server logs for details.");case"missing_expected_data.throw":throw Error("Relay: Missing expected data at path '".concat(f.fieldPath,"' in '").concat(f.owner,"'."));case"missing_required_field.throw":throw Error("Relay: Missing @required value at path '".concat(f.fieldPath,"' in '").concat(f.owner,"'."));case"missing_required_field.log":case"missing_expected_data.log":break;default:f.kind,o(!1)}}}catch(e){d.e(e)}finally{d.f()}}(e,t,r)},eventShouldThrow:s}},34526:e=>{"use strict";var t=Object.prototype.hasOwnProperty;e.exports=function(e){for(var r in e)if(t.call(e,r))return!1;return!0}},18621:e=>{"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&"function"==typeof e.then}},32877:e=>{"use strict";e.exports=function(e,t){return e===t&&(null===e||"object"!=typeof e)}},57042:e=>{"use strict";e.exports=function(e,t){return function e(t,r,n){if(t===r||"object"!=typeof t||!t||t.constructor!==Object&&!Array.isArray(t)||"object"!=typeof r||!r||r.constructor!==Object&&!Array.isArray(r))return r;var i=!1,a=Array.isArray(t)?t:null,o=Array.isArray(r)?r:null;if(a&&o){var s=n&&!Object.isFrozen(o);i=o.reduce(function(t,r,n){var i=e(a[n],r,s);return i!==o[n]&&s&&(o[n]=i),t&&i===a[n]},!0)&&a.length===o.length}else if(!a&&!o){var l=Object.keys(t),u=Object.keys(r),c=n&&!Object.isFrozen(r);i=u.reduce(function(n,i){var a=e(t[i],r[i],c);return a!==r[i]&&c&&(r[i]=a),n&&a===t[i]},!0)&&l.length===u.length}return i?t:r}(e,t,!0)}},56028:(e,t,r)=>{"use strict";e.exports=function(e){var t=void 0!==r.g?r.g:"undefined"!=typeof window?window:void 0,n=t&&t.__RELAY_DEVTOOLS_HOOK__;n&&n.registerEnvironment(e)}},33035:e=>{"use strict";var t=Promise.resolve();function r(e){setTimeout(function(){throw e},0)}e.exports=function(e){t.then(e).catch(r)}},62171:e=>{"use strict";e.exports=function(e){"object"==typeof e&&null!=e&&(Array.isArray(e)||e.constructor===Object)&&Object.freeze(e)}},8312:e=>{"use strict";e.exports={stableCopy:function e(t){if(!t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);for(var r=Object.keys(t).sort(),n={},i=0;i1&&void 0!==arguments[1]?arguments[1]:new Set;if(!t||"object"!=typeof t)return!1;if(r.has(t))return!0;var n=new Set(r);return n.add(t),(Array.isArray(t)?t:Object.values(t)).some(function(t){return e(t,n)})}}},34556:(e,t,r)=>{"use strict";r(3574),r(14594);var n="function"==typeof WeakMap?new WeakMap:new Map;function i(e,t){if(null==t)return e;var r={};return Object.assign(r,e),Object.keys(t).forEach(function(e){var i=t[e].get,a=i();if(n.has(i)){var o=n.get(i);r[e]=o}else n.set(i,a),r[e]=a}),r}i.tests_only_resetDebugCache=void 0,e.exports=i},90667:e=>{"use strict";var t,r,n="undefined"!=typeof window&&"function"==typeof(null===(t=window)||void 0===t?void 0:null===(r=t.performance)||void 0===r?void 0:r.now);function i(){return n?window.performance.now():Date.now()}e.exports=function(e){var t=i(),r=e();return[t,i()-t,r]}},70079:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{var n=r(70079);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},12475:e=>{e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},29293:e=>{function t(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise(function(i,a){var o=e.apply(r,n);function s(e){t(o,i,a,s,l,"next",e)}function l(e){t(o,i,a,s,l,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},50883:(e,t,r)=>{var n=r(17122);e.exports=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=n(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw o}}}},e.exports.__esModule=!0,e.exports.default=e.exports},43693:(e,t,r)=>{var n=r(77736);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},94634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var n=r(95636);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},24994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},99291:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},41869:e=>{e.exports=function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},12897:(e,t,r)=>{var n=r(43693);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}e.exports=function(e){for(var t=1;t{e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports},95636:e=>{function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},41132:(e,t,r)=>{var n=r(5901),i=r(99291),a=r(17122),o=r(41869);e.exports=function(e){return n(e)||i(e)||a(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},89045:(e,t,r)=>{var n=r(73738).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},77736:(e,t,r)=>{var n=r(73738).default,i=r(89045);e.exports=function(e){var t=i(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},73738:e=>{function t(r){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},17122:(e,t,r)=>{var n=r(70079);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}}]); +//# sourceMappingURL=vendors-node_modules_react-relay_index_js-ff007ef3fbef.js.map \ No newline at end of file diff --git a/vendors-node_modules_tanstack_query-core_build_modern_queryObserver_js-node_modules_tanstack_-defd52-9743ca933872.js.download b/vendors-node_modules_tanstack_query-core_build_modern_queryObserver_js-node_modules_tanstack_-defd52-9743ca933872.js.download new file mode 100644 index 0000000000..2352aae476 --- /dev/null +++ b/vendors-node_modules_tanstack_query-core_build_modern_queryObserver_js-node_modules_tanstack_-defd52-9743ca933872.js.download @@ -0,0 +1,2 @@ +"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_tanstack_query-core_build_modern_queryObserver_js-node_modules_tanstack_-defd52"],{1651:(e,t,r)=>{r.d(t,{$:()=>c});var s=r(29658),i=r(26261),n=r(79757),u=r(66500),a=r(94658),h=r(24880),c=class extends u.Q{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,a.T)(),this.options.experimental_prefetchInRender||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#e;#s=void 0;#i=void 0;#n=void 0;#u;#a;#r;#t;#h;#c;#o;#l;#d;#p;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),o(this.#s,this.options)?this.#y():this.updateResult(),this.#R())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return l(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return l(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#b(),this.#s.removeObserver(this)}setOptions(e){let t=this.options,r=this.#s;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,h.Eh)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#Q(),this.#s.setOptions(this.options),t._defaulted&&!(0,h.f8)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let s=this.hasListeners();s&&d(this.#s,r,this.options,t)&&this.#y(),this.updateResult(),s&&(this.#s!==r||(0,h.Eh)(this.options.enabled,this.#s)!==(0,h.Eh)(t.enabled,this.#s)||(0,h.d2)(this.options.staleTime,this.#s)!==(0,h.d2)(t.staleTime,this.#s))&&this.#m();let i=this.#I();s&&(this.#s!==r||(0,h.Eh)(this.options.enabled,this.#s)!==(0,h.Eh)(t.enabled,this.#s)||i!==this.#p)&&this.#g(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return(0,h.f8)(this.getCurrentResult(),r)||(this.#n=r,this.#a=this.options,this.#u=this.#s.state),r}getCurrentResult(){return this.#n}trackResult(e,t){let r={};return Object.keys(e).forEach(s=>{Object.defineProperty(r,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),t?.(s),e[s])})}),r}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#s}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#y({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#y(e){this.#Q();let t=this.#s.fetch(this.options,e);return e?.throwOnError||(t=t.catch(h.lQ)),t}#m(){this.#v();let e=(0,h.d2)(this.options.staleTime,this.#s);if(h.S$||this.#n.isStale||!(0,h.gn)(e))return;let t=(0,h.j3)(this.#n.dataUpdatedAt,e);this.#l=setTimeout(()=>{this.#n.isStale||this.updateResult()},t+1)}#I(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#g(e){this.#b(),this.#p=e,!h.S$&&!1!==(0,h.Eh)(this.options.enabled,this.#s)&&(0,h.gn)(this.#p)&&0!==this.#p&&(this.#d=setInterval(()=>{(this.options.refetchIntervalInBackground||s.m.isFocused())&&this.#y()},this.#p))}#R(){this.#m(),this.#g(this.#I())}#v(){this.#l&&(clearTimeout(this.#l),this.#l=void 0)}#b(){this.#d&&(clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let r;let s=this.#s,i=this.options,u=this.#n,c=this.#u,l=this.#a,f=e!==s?e.state:this.#i,{state:y}=e,R={...y},v=!1;if(t._optimisticResults){let r=this.hasListeners(),u=!r&&o(e,t),a=r&&d(e,s,t,i);(u||a)&&(R={...R,...(0,n.k)(y.data,e.options)}),"isRestoring"===t._optimisticResults&&(R.fetchStatus="idle")}let{error:b,errorUpdatedAt:Q,status:m}=R;if(t.select&&void 0!==R.data){if(u&&R.data===c?.data&&t.select===this.#h)r=this.#c;else try{this.#h=t.select,r=t.select(R.data),r=(0,h.pl)(u?.data,r,t),this.#c=r,this.#t=null}catch(e){this.#t=e}}else r=R.data;if(void 0!==t.placeholderData&&void 0===r&&"pending"===m){let e;if(u?.isPlaceholderData&&t.placeholderData===l?.placeholderData)e=u.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#o?.state.data,this.#o):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#t=null}catch(e){this.#t=e}void 0!==e&&(m="success",r=(0,h.pl)(u?.data,e,t),v=!0)}this.#t&&(b=this.#t,r=this.#c,Q=Date.now(),m="error");let I="fetching"===R.fetchStatus,g="pending"===m,E="error"===m,O=g&&I,T=void 0!==r,S={status:m,fetchStatus:R.fetchStatus,isPending:g,isSuccess:"success"===m,isError:E,isInitialLoading:O,isLoading:O,data:r,dataUpdatedAt:R.dataUpdatedAt,error:b,errorUpdatedAt:Q,failureCount:R.fetchFailureCount,failureReason:R.fetchFailureReason,errorUpdateCount:R.errorUpdateCount,isFetched:R.dataUpdateCount>0||R.errorUpdateCount>0,isFetchedAfterMount:R.dataUpdateCount>f.dataUpdateCount||R.errorUpdateCount>f.errorUpdateCount,isFetching:I,isRefetching:I&&!g,isLoadingError:E&&!T,isPaused:"paused"===R.fetchStatus,isPlaceholderData:v,isRefetchError:E&&T,isStale:p(e,t),refetch:this.refetch,promise:this.#r};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===S.status?e.reject(S.error):void 0!==S.data&&e.resolve(S.data)},r=()=>{t(this.#r=S.promise=(0,a.T)())},i=this.#r;switch(i.status){case"pending":e.queryHash===s.queryHash&&t(i);break;case"fulfilled":("error"===S.status||S.data!==i.value)&&r();break;case"rejected":("error"!==S.status||S.error!==i.reason)&&r()}}return S}updateResult(){let e=this.#n,t=this.createResult(this.#s,this.options);this.#u=this.#s.state,this.#a=this.options,void 0!==this.#u.data&&(this.#o=this.#s),(0,h.f8)(t,e)||(this.#n=t,this.#E({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#f.size)return!0;let s=new Set(r??this.#f);return this.options.throwOnError&&s.add("error"),Object.keys(this.#n).some(t=>this.#n[t]!==e[t]&&s.has(t))})()}))}#Q(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#s)return;let t=this.#s;this.#s=e,this.#i=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#R()}#E(e){i.jG.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#n)}),this.#e.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function o(e,t){return!1!==(0,h.Eh)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&l(e,t,t.refetchOnMount)}function l(e,t,r){if(!1!==(0,h.Eh)(t.enabled,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&p(e,t)}return!1}function d(e,t,r,s){return(e!==t||!1===(0,h.Eh)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&p(e,r)}function p(e,t){return!1!==(0,h.Eh)(t.enabled,e)&&e.isStaleByTime((0,h.d2)(t.staleTime,e))}},96672:(e,t,r)=>{r.d(t,{U:()=>h,h:()=>a});var s=r(96540),i=r(74848);function n(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var u=s.createContext(n()),a=()=>s.useContext(u),h=({children:e})=>{let[t]=s.useState(()=>n());return(0,i.jsx)(u.Provider,{value:t,children:"function"==typeof e?e(t):e})}},68590:(e,t,r)=>{r.d(t,{$1:()=>a,LJ:()=>n,wZ:()=>u});var s=r(96540),i=r(54362),n=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!t.isReset()&&(e.retryOnMount=!1)},u=e=>{s.useEffect(()=>{e.clearReset()},[e])},a=({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(n&&void 0===e.data||(0,i.G)(r,[e.error,s]))},98378:(e,t,r)=>{r.d(t,{d:()=>u,w:()=>n});var s=r(96540),i=s.createContext(!1),n=()=>s.useContext(i),u=i.Provider},60791:(e,t,r)=>{r.d(t,{EU:()=>u,R3:()=>s,iL:()=>a,jv:()=>i,nE:()=>n});var s=(e,t)=>void 0===t.state.data,i=e=>{let t=e.staleTime;e.suspense&&(e.staleTime="function"==typeof t?(...e)=>Math.max(t(...e),1e3):Math.max(t??1e3,1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},n=(e,t)=>e.isLoading&&e.isFetching&&!t,u=(e,t)=>e?.suspense&&t.isPending,a=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()})},15985:(e,t,r)=>{r.d(t,{t:()=>d});var s=r(96540),i=r(26261),n=r(24880),u=r(97665),a=r(96672),h=r(68590),c=r(98378),o=r(60791),l=r(54362);function d(e,t,r){let d=(0,u.jE)(r),p=(0,c.w)(),f=(0,a.h)(),y=d.defaultQueryOptions(e);d.getDefaultOptions().queries?._experimental_beforeQuery?.(y),y._optimisticResults=p?"isRestoring":"optimistic",(0,o.jv)(y),(0,h.LJ)(y,f),(0,h.wZ)(f);let R=!d.getQueryCache().get(y.queryHash),[v]=s.useState(()=>new t(d,y)),b=v.getOptimisticResult(y),Q=!p&&!1!==e.subscribed;if(s.useSyncExternalStore(s.useCallback(e=>{let t=Q?v.subscribe(i.jG.batchCalls(e)):l.l;return v.updateResult(),t},[v,Q]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),s.useEffect(()=>{v.setOptions(y)},[y,v]),(0,o.EU)(y,b))throw(0,o.iL)(y,v,f);if((0,h.$1)({result:b,errorResetBoundary:f,throwOnError:y.throwOnError,query:d.getQueryCache().get(y.queryHash),suspense:y.suspense}))throw b.error;if(d.getDefaultOptions().queries?._experimental_afterQuery?.(y,b),y.experimental_prefetchInRender&&!n.S$&&(0,o.nE)(b,p)){let e=R?(0,o.iL)(y,v,f):d.getQueryCache().get(y.queryHash)?.promise;e?.catch(l.l).finally(()=>{v.updateResult()})}return y.notifyOnChangeProps?b:v.trackResult(b)}},54362:(e,t,r)=>{function s(e,t){return"function"==typeof e?e(...t):!!e}function i(){}r.d(t,{G:()=>s,l:()=>i})}}]); +//# sourceMappingURL=vendors-node_modules_tanstack_query-core_build_modern_queryObserver_js-node_modules_tanstack_-defd52-c8e26b311532.js.map \ No newline at end of file