@kylincloud/flamegraph 0.35.22 → 0.35.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph.d.ts +6 -1
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph.d.ts.map +1 -1
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph_render.d.ts +7 -0
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph_render.d.ts.map +1 -1
- package/dist/FlameGraph/FlameGraphComponent/index.d.ts.map +1 -1
- package/dist/FlameGraph/FlameGraphRenderer.d.ts +4 -0
- package/dist/FlameGraph/FlameGraphRenderer.d.ts.map +1 -1
- package/dist/ProfilerTable.d.ts.map +1 -1
- package/dist/i18n.d.ts +2 -0
- package/dist/i18n.d.ts.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.node.cjs.js +4 -4
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.esm.js +3 -3
- package/dist/index.node.esm.js.map +1 -1
- package/dist/shims/Table.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/FlameGraph/FlameGraphComponent/Flamegraph.ts +7 -2
- package/src/FlameGraph/FlameGraphComponent/Flamegraph_render.ts +31 -2
- package/src/FlameGraph/FlameGraphComponent/index.tsx +14 -3
- package/src/FlameGraph/FlameGraphRenderer.tsx +69 -5
- package/src/ProfilerTable.module.scss +1 -2
- package/src/ProfilerTable.tsx +52 -46
- package/src/i18n.tsx +12 -0
- package/src/shims/Table.module.scss +9 -2
- package/src/shims/Table.tsx +44 -40
package/dist/index.node.cjs.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),n=require("true-myth"),a=require("zod"),r=require("color"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),n=require("true-myth"),a=require("zod"),r=require("color"),o=require("d3-scale"),i=require("@react-hook/resize-observer"),s=require("lodash.debounce"),l=require("react-dom"),c=require("react-debounce-input"),f=require("./logo-v3-small.svg"),u=require("lodash.groupby"),d=require("lodash.map");function h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m,p={exports:{}};
|
|
2
2
|
/*!
|
|
3
3
|
Copyright (c) 2018 Jed Watson.
|
|
4
4
|
Licensed under the MIT License (MIT), see
|
|
5
5
|
http://jedwatson.github.io/classnames
|
|
6
|
-
*/var g,v=(m||(m=1,g=p,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,n.call(this,r)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return this&&this[n]||n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(this,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var r="";for(var
|
|
6
|
+
*/var g,v=(m||(m=1,g=p,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,n.call(this,r)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return this&&this[n]||n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(this,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var r="";for(var o in n)e.call(n,o)&&n[o]&&(r=a(r,this&&this[o]||o));return r}function a(e,t){return t?e?e+" "+t:e+t:e}g.exports?(t.default=t,g.exports=t):window.classNames=t}()),p.exports),b=h(v);
|
|
7
7
|
/*!
|
|
8
8
|
* Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com
|
|
9
9
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
10
10
|
* Copyright 2025 Fonticons, Inc.
|
|
11
11
|
*/
|
|
12
|
-
function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function x(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,T(a.key),a)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=M(e))||t){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function j(e,t,n){return(t=T(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){j(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||M(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||M(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function _(e){return _="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)}function M(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}var R=function(){},P={},F={},E=null,I={mark:R,measure:R};try{"undefined"!=typeof window&&(P=window),"undefined"!=typeof document&&(F=document),"undefined"!=typeof MutationObserver&&(E=MutationObserver),"undefined"!=typeof performance&&(I=performance)}catch(ie){}var D=(P.navigator||{}).userAgent,A=void 0===D?"":D,O=P,z=F,L=E,B=I;O.document;var $,V=!!z.documentElement&&!!z.head&&"function"==typeof z.addEventListener&&"function"==typeof z.createElement,H=~A.indexOf("MSIE")||~A.indexOf("Trident/"),W={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},U=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],J="classic",Q="duotone",X="sharp",Y="sharp-duotone",Z="chisel",q="etch",K="jelly",G="jelly-duo",ee="jelly-fill",te="notdog",ne="notdog-duo",ae="slab",re="slab-press",ie="thumbprint",oe="utility",se="utility-duo",le="utility-fill",ce="whiteboard",fe=[J,Q,X,Y,Z,q,K,G,ee,te,ne,ae,re,ie,oe,se,le,ce];j(j(j(j(j(j(j(j(j(j($={},J,"Classic"),Q,"Duotone"),X,"Sharp"),Y,"Sharp Duotone"),Z,"Chisel"),q,"Etch"),K,"Jelly"),G,"Jelly Duo"),ee,"Jelly Fill"),te,"Notdog"),j(j(j(j(j(j(j(j($,ne,"Notdog Duo"),ae,"Slab"),re,"Slab Press"),ie,"Thumbprint"),oe,"Utility"),se,"Utility Duo"),le,"Utility Fill"),ce,"Whiteboard");var ue=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),de=["fak","fa-kit","fakd","fa-kit-duotone"],he={fak:"kit","fa-kit":"kit"},me={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};j(j({},"kit","Kit"),"kit-duotone","Kit Duotone");var pe,ge={kit:"fak"},ve={"kit-duotone":"fakd"},be="duotone-group",ye="swap-opacity",xe="primary",we="secondary";j(j(j(j(j(j(j(j(j(j(pe={},"classic","Classic"),"duotone","Duotone"),"sharp","Sharp"),"sharp-duotone","Sharp Duotone"),"chisel","Chisel"),"etch","Etch"),"jelly","Jelly"),"jelly-duo","Jelly Duo"),"jelly-fill","Jelly Fill"),"notdog","Notdog"),j(j(j(j(j(j(j(j(pe,"notdog-duo","Notdog Duo"),"slab","Slab"),"slab-press","Slab Press"),"thumbprint","Thumbprint"),"utility","Utility"),"utility-duo","Utility Duo"),"utility-fill","Utility Fill"),"whiteboard","Whiteboard");j(j({},"kit","Kit"),"kit-duotone","Kit Duotone");var je={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},ke=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"]),Ne=[1,2,3,4,5,6,7,8,9,10],Se=Ne.concat([11,12,13,14,15,16,17,18,19,20]),Ce=[].concat(C(Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]})),["solid","regular","light","thin","duotone","brands","semibold"],["aw","fw","pull-left","pull-right"],["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",be,ye,xe,we]).concat(Ne.map(function(e){return"".concat(e,"x")})).concat(Se.map(function(e){return"w-".concat(e)})),Te="___FONT_AWESOME___",_e="svg-inline--fa",Me="data-fa-i2svg",Re="data-fa-pseudo-element",Pe="data-prefix",Fe="data-icon",Ee="fontawesome-i2svg",Ie=["HTML","HEAD","STYLE","SCRIPT"],De=["::before","::after",":before",":after"],Ae=function(){try{return"production"===process.env.NODE_ENV}catch(e){return!1}}();function Oe(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[J]}})}var ze=N({},W);ze[J]=N(N(N(N({},{"fa-duotone":"duotone"}),W[J]),he),me);var Le=Oe(ze),Be=N({},{chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}});Be[J]=N(N(N(N({},{duotone:"fad"}),Be[J]),ge),ve);var $e=Oe(Be),Ve=N({},je);Ve[J]=N(N({},Ve[J]),{fak:"fa-kit"});var He=Oe(Ve),We=N({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}});We[J]=N(N({},We[J]),{"fa-kit":"fak"}),Oe(We);var Ue=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Je="fa-layers-text",Qe=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i;Oe(N({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}}));var Xe=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ye={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Ze=[].concat(C(["kit"]),C(Ce)),qe=O.FontAwesomeConfig||{};if(z&&"function"==typeof z.querySelector){[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(e){var t=S(e,2),n=t[0],a=t[1],r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=z.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=r&&(qe[a]=r)})}var Ke={styleDefault:"solid",familyDefault:J,cssPrefix:"fa",replacementClass:_e,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};qe.familyPrefix&&(qe.cssPrefix=qe.familyPrefix);var Ge=N(N({},Ke),qe);Ge.autoReplaceSvg||(Ge.observeMutations=!1);var et={};Object.keys(Ke).forEach(function(e){Object.defineProperty(et,e,{enumerable:!0,set:function(t){Ge[e]=t,tt.forEach(function(e){return e(et)})},get:function(){return Ge[e]}})}),Object.defineProperty(et,"familyPrefix",{enumerable:!0,set:function(e){Ge.cssPrefix=e,tt.forEach(function(e){return e(et)})},get:function(){return Ge.cssPrefix}}),O.FontAwesomeConfig=et;var tt=[];var nt=16,at={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function rt(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function it(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ot(e){return e.classList?it(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function st(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function lt(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function ct(e){return e.size!==at.size||e.x!==at.x||e.y!==at.y||e.rotate!==at.rotate||e.flipX||e.flipY}function ft(){var e="fa",t=_e,n=et.cssPrefix,a=et.replacementClass,r=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";\n --fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";\n --fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";\n --fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";\n --fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";\n --fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";\n --fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";\n --fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";\n --fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";\n --fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";\n --fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";\n --fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";\n --fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";\n --fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";\n}\n\n.svg-inline--fa {\n box-sizing: content-box;\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285714em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left,\n.svg-inline--fa .fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-pull-right,\n.svg-inline--fa .fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.fa-layers .svg-inline--fa {\n inset: 0;\n margin: auto;\n position: absolute;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xs {\n font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-sm {\n font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-lg {\n font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xl {\n font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-2xl {\n font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-width-auto {\n --fa-width: auto;\n}\n\n.fa-fw,\n.fa-width-fixed {\n --fa-width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-inline-start: var(--fa-li-margin, 2.5em);\n padding-inline-start: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n/* Heads Up: Bordered Icons will not be supported in the future!\n - This feature will be deprecated in the next major release of Font Awesome (v8)!\n - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.\n*/\n/* Notes:\n* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)\n* --@{v.$css-prefix}-border-padding =\n ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it\'s vertical alignment)\n ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)\n*/\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.0625em);\n box-sizing: var(--fa-border-box-sizing, content-box);\n padding: var(--fa-border-padding, 0.1875em 0.25em);\n}\n\n.fa-pull-left,\n.fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right,\n.fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n .fa-bounce,\n .fa-fade,\n .fa-beat-fade,\n .fa-flip,\n .fa-pulse,\n .fa-shake,\n .fa-spin,\n .fa-spin-pulse {\n animation: none !important;\n transition: none !important;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.svg-inline--fa.fa-inverse {\n fill: var(--fa-inverse, #fff);\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n line-height: 2em;\n position: relative;\n vertical-align: middle;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.svg-inline--fa.fa-stack-1x {\n --fa-width: 1.25em;\n height: 1em;\n width: var(--fa-width);\n}\n.svg-inline--fa.fa-stack-2x {\n --fa-width: 2.5em;\n height: 2em;\n width: var(--fa-width);\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n inset: 0;\n margin: auto;\n position: absolute;\n z-index: var(--fa-stack-z-index, auto);\n}';if(n!==e||a!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");r=r.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(a))}return r}var ut=!1;function dt(){et.autoAddCss&&!ut&&(!function(e){if(e&&V){var t=z.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=z.head.childNodes,a=null,r=n.length-1;r>-1;r--){var i=n[r],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(a=i)}z.head.insertBefore(t,a)}}(ft()),ut=!0)}var ht={mixout:function(){return{dom:{css:ft,insertCss:dt}}},hooks:function(){return{beforeDOMElementCreation:function(){dt()},beforeI2svg:function(){dt()}}}},mt=O||{};mt[Te]||(mt[Te]={}),mt[Te].styles||(mt[Te].styles={}),mt[Te].hooks||(mt[Te].hooks={}),mt[Te].shims||(mt[Te].shims=[]);var pt=mt[Te],gt=[],vt=function(){z.removeEventListener("DOMContentLoaded",vt),bt=1,gt.map(function(e){return e()})},bt=!1;function yt(e){var t=e.tag,n=e.attributes,a=void 0===n?{}:n,r=e.children,i=void 0===r?[]:r;return"string"==typeof e?st(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(st(e[n]),'" ')},"").trim()}(a),">").concat(i.map(yt).join(""),"</").concat(t,">")}function xt(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}V&&((bt=(z.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(z.readyState))||z.addEventListener("DOMContentLoaded",vt));var wt=function(e,t,n,a){var r,i,o,s=Object.keys(e),l=s.length,c=t;for(void 0===n?(r=1,o=e[s[0]]):(r=0,o=n);r<l;r++)o=c(o,e[i=s[r]],i,e);return o};function jt(e){return 1!==C(e).length?null:e.codePointAt(0).toString(16)}function kt(e){return Object.keys(e).reduce(function(t,n){var a=e[n];return!!a.icon?t[a.iconName]=a.icon:t[n]=a,t},{})}function Nt(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,a=void 0!==n&&n,r=kt(t);"function"!=typeof pt.hooks.addPack||a?pt.styles[e]=N(N({},pt.styles[e]||{}),r):pt.hooks.addPack(e,kt(t)),"fas"===e&&Nt("fa",t)}var St=pt.styles,Ct=pt.shims,Tt=Object.keys(He),_t=Tt.reduce(function(e,t){return e[t]=Object.keys(He[t]),e},{}),Mt=null,Rt={},Pt={},Ft={},Et={},It={};function Dt(e,t){var n,a=t.split("-"),r=a[0],i=a.slice(1).join("-");return r!==e||""===i||(n=i,~Ze.indexOf(n))?null:i}var At,Ot=function(){var e=function(e){return wt(St,function(t,n,a){return t[a]=wt(n,e,{}),t},{})};Rt=e(function(e,t,n){(t[3]&&(e[t[3]]=n),t[2])&&t[2].filter(function(e){return"number"==typeof e}).forEach(function(t){e[t.toString(16)]=n});return e}),Pt=e(function(e,t,n){(e[n]=n,t[2])&&t[2].filter(function(e){return"string"==typeof e}).forEach(function(t){e[t]=n});return e}),It=e(function(e,t,n){var a=t[2];return e[n]=n,a.forEach(function(t){e[t]=n}),e});var t="far"in St||et.autoFetchSvg,n=wt(Ct,function(e,n){var a=n[0],r=n[1],i=n[2];return"far"!==r||t||(r="fas"),"string"==typeof a&&(e.names[a]={prefix:r,iconName:i}),"number"==typeof a&&(e.unicodes[a.toString(16)]={prefix:r,iconName:i}),e},{names:{},unicodes:{}});Ft=n.names,Et=n.unicodes,Mt=Vt(et.styleDefault,{family:et.familyDefault})};function zt(e,t){return(Rt[e]||{})[t]}function Lt(e,t){return(It[e]||{})[t]}function Bt(e){return Ft[e]||{prefix:null,iconName:null}}function $t(){return Mt}At=function(e){Mt=Vt(e.styleDefault,{family:et.familyDefault})},tt.push(At),Ot();function Vt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?J:t,a=Le[n][e];if(n===Q&&!e)return"fad";var r=$e[n][e]||$e[n][a],i=e in pt.styles?e:null;return r||i||null}function Ht(e){return e.sort().filter(function(e,t,n){return n.indexOf(e)===t})}var Wt=ke.concat(de);function Ut(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,n=void 0!==t&&t,a=null,r=Ht(e.filter(function(e){return Wt.includes(e)})),i=Ht(e.filter(function(e){return!Wt.includes(e)})),o=S(r.filter(function(e){return a=e,!U.includes(e)}),1)[0],s=void 0===o?null:o,l=function(e){var t=J,n=Tt.reduce(function(e,t){return e[t]="".concat(et.cssPrefix,"-").concat(t),e},{});return fe.forEach(function(a){(e.includes(n[a])||e.some(function(e){return _t[a].includes(e)}))&&(t=a)}),t}(r),c=N(N({},function(e){var t=[],n=null;return e.forEach(function(e){var a=Dt(et.cssPrefix,e);a?n=a:e&&t.push(e)}),{iconName:n,rest:t}}(i)),{},{prefix:Vt(s,{family:l})});return N(N(N({},c),function(e){var t=e.values,n=e.family,a=e.canonical,r=e.givenPrefix,i=void 0===r?"":r,o=e.styles,s=void 0===o?{}:o,l=e.config,c=void 0===l?{}:l,f=n===Q,u=t.includes("fa-duotone")||t.includes("fad"),d="duotone"===c.familyDefault,h="fad"===a.prefix||"fa-duotone"===a.prefix;!f&&(u||d||h)&&(a.prefix="fad");(t.includes("fa-brands")||t.includes("fab"))&&(a.prefix="fab");if(!a.prefix&&Jt.includes(n)){if(Object.keys(s).find(function(e){return Qt.includes(e)})||c.autoFetchSvg){var m=ue.get(n).defaultShortPrefixId;a.prefix=m,a.iconName=Lt(a.prefix,a.iconName)||a.iconName}}"fa"!==a.prefix&&"fa"!==i||(a.prefix=$t()||"fas");return a}({values:e,family:l,styles:St,config:et,canonical:c,givenPrefix:a})),function(e,t,n){var a=n.prefix,r=n.iconName;if(e||!a||!r)return{prefix:a,iconName:r};var i="fa"===t?Bt(r):{},o=Lt(a,r);r=i.iconName||o||r,"far"!==(a=i.prefix||a)||St.far||!St.fas||et.autoFetchSvg||(a="fas");return{prefix:a,iconName:r}}(n,a,c))}var Jt=fe.filter(function(e){return e!==J||e!==Q}),Qt=Object.keys(je).filter(function(e){return e!==J}).map(function(e){return Object.keys(je[e])}).flat();var Xt=function(){return x(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}},[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];var r=n.reduce(this._pullDefinitions,{});Object.keys(r).forEach(function(t){e.definitions[t]=N(N({},e.definitions[t]||{}),r[t]),Nt(t,r[t]);var n=He[J][t];n&&Nt(n,r[t]),Ot()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(function(t){var a=n[t],r=a.prefix,i=a.iconName,o=a.icon,s=o[2];e[r]||(e[r]={}),s.length>0&&s.forEach(function(t){"string"==typeof t&&(e[r][t]=o)}),e[r][i]=o}),e}}])}(),Yt=[],Zt={},qt={},Kt=Object.keys(qt);function Gt(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];return(Zt[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(a))}),t}function en(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];(Zt[e]||[]).forEach(function(e){e.apply(null,n)})}function tn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return qt[e]?qt[e].apply(null,t):void 0}function nn(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||$t();if(t)return t=Lt(n,t)||t,xt(an.definitions,n,t)||xt(pt.styles,n,t)}var an=new Xt,rn={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return V?(en("beforeI2svg",e),tn("pseudoElements2svg",e),tn("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.autoReplaceSvgRoot;!1===et.autoReplaceSvg&&(et.autoReplaceSvg=!0),et.observeMutations=!0,e=function(){sn({autoReplaceSvgRoot:n}),en("watch",t)},V&&(bt?setTimeout(e,0):gt.push(e))}},on={noAuto:function(){et.autoReplaceSvg=!1,et.observeMutations=!1,en("noAuto")},config:et,dom:rn,parse:{icon:function(e){if(null===e)return null;if("object"===_(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Lt(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=Vt(e[0]);return{prefix:n,iconName:Lt(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(et.cssPrefix,"-"))>-1||e.match(Ue))){var a=Ut(e.split(" "),{skipLookups:!0});return{prefix:a.prefix||$t(),iconName:Lt(a.prefix,a.iconName)||a.iconName}}if("string"==typeof e){var r=$t();return{prefix:r,iconName:Lt(r,e)||e}}}},library:an,findIconDefinition:nn,toHtml:yt},sn=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?z:e;(Object.keys(pt.styles).length>0||et.autoFetchSvg)&&V&&et.autoReplaceSvg&&on.dom.i2svg({node:t})};function ln(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return yt(e)})}}),Object.defineProperty(e,"node",{get:function(){if(V){var t=z.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function cn(e){var t=e.icons,n=t.main,a=t.mask,r=e.prefix,i=e.iconName,o=e.transform,s=e.symbol,l=e.maskId,c=e.extra,f=e.watchable,u=void 0!==f&&f,d=a.found?a:n,h=d.width,m=d.height,p=[et.replacementClass,i?"".concat(et.cssPrefix,"-").concat(i):""].filter(function(e){return-1===c.classes.indexOf(e)}).filter(function(e){return""!==e||!!e}).concat(c.classes).join(" "),g={children:[],attributes:N(N({},c.attributes),{},{"data-prefix":r,"data-icon":i,class:p,role:c.attributes.role||"img",viewBox:"0 0 ".concat(h," ").concat(m)})};(function(e){return["aria-label","aria-labelledby","title","role"].some(function(t){return t in e})})(c.attributes)||c.attributes["aria-hidden"]||(g.attributes["aria-hidden"]="true"),u&&(g.attributes[Me]="");var v=N(N({},g),{},{prefix:r,iconName:i,main:n,mask:a,maskId:l,transform:o,symbol:s,styles:N({},c.styles)}),b=a.found&&n.found?tn("generateAbstractMask",v)||{children:[],attributes:{}}:tn("generateAbstractIcon",v)||{children:[],attributes:{}},y=b.children,x=b.attributes;return v.children=y,v.attributes=x,s?function(e){var t=e.prefix,n=e.iconName,a=e.children,r=e.attributes,i=e.symbol,o=!0===i?"".concat(t,"-").concat(et.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:N(N({},r),{},{id:o}),children:a}]}]}(v):function(e){var t=e.children,n=e.main,a=e.mask,r=e.attributes,i=e.styles,o=e.transform;if(ct(o)&&n.found&&!a.found){var s={x:n.width/n.height/2,y:.5};r.style=lt(N(N({},i),{},{"transform-origin":"".concat(s.x+o.x/16,"em ").concat(s.y+o.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}(v)}function fn(e){var t=e.content,n=e.width,a=e.height,r=e.transform,i=e.extra,o=e.watchable,s=void 0!==o&&o,l=N(N({},i.attributes),{},{class:i.classes.join(" ")});s&&(l[Me]="");var c=N({},i.styles);ct(r)&&(c.transform=function(e){var t=e.transform,n=e.width,a=void 0===n?16:n,r=e.height,i=void 0===r?16:r,o="";return o+=H?"translate(".concat(t.x/nt-a/2,"em, ").concat(t.y/nt-i/2,"em) "):"translate(calc(-50% + ".concat(t.x/nt,"em), calc(-50% + ").concat(t.y/nt,"em)) "),o+="scale(".concat(t.size/nt*(t.flipX?-1:1),", ").concat(t.size/nt*(t.flipY?-1:1),") "),o+"rotate(".concat(t.rotate,"deg) ")}({transform:r,width:n,height:a}),c["-webkit-transform"]=c.transform);var f=lt(c);f.length>0&&(l.style=f);var u=[];return u.push({tag:"span",attributes:l,children:[t]}),u}var un=pt.styles;function dn(e){var t=e[0],n=e[1],a=S(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(et.cssPrefix,"-").concat(Ye.GROUP)},children:[{tag:"path",attributes:{class:"".concat(et.cssPrefix,"-").concat(Ye.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(et.cssPrefix,"-").concat(Ye.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var hn={found:!1,width:512,height:512};function mn(e,t){var n=t;return"fa"===t&&null!==et.styleDefault&&(t=$t()),new Promise(function(a,r){if("fa"===n){var i=Bt(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&un[t]&&un[t][e])return a(dn(un[t][e]));!function(e,t){Ae||et.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),a(N(N({},hn),{},{icon:et.showMissingIcons&&e&&tn("missingIconAbstract")||{}}))})}var pn=function(){},gn=et.measurePerformance&&B&&B.mark&&B.measure?B:{mark:pn,measure:pn},vn='FA "7.1.0"',bn=function(e){gn.mark("".concat(vn," ").concat(e," ends")),gn.measure("".concat(vn," ").concat(e),"".concat(vn," ").concat(e," begins"),"".concat(vn," ").concat(e," ends"))},yn=function(e){return gn.mark("".concat(vn," ").concat(e," begins")),function(){return bn(e)}},xn=function(){};function wn(e){return"string"==typeof(e.getAttribute?e.getAttribute(Me):null)}function jn(e){return z.createElementNS("http://www.w3.org/2000/svg",e)}function kn(e){return z.createElement(e)}function Nn(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?jn:kn:t;if("string"==typeof e)return z.createTextNode(e);var a=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(t){a.setAttribute(t,e.attributes[t])}),(e.children||[]).forEach(function(e){a.appendChild(Nn(e,{ceFn:n}))}),a}var Sn={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(Nn(e),t)}),null===t.getAttribute(Me)&&et.keepOriginalSource){var n=z.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~ot(t).indexOf(et.replacementClass))return Sn.replace(e);var a=new RegExp("".concat(et.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var r=n[0].attributes.class.split(" ").reduce(function(e,t){return t===et.replacementClass||t.match(a)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=r.toSvg.join(" "),0===r.toNode.length?t.removeAttribute("class"):t.setAttribute("class",r.toNode.join(" "))}var i=n.map(function(e){return yt(e)}).join("\n");t.setAttribute(Me,""),t.innerHTML=i}};function Cn(e){e()}function Tn(e,t){var n="function"==typeof t?t:xn;if(0===e.length)n();else{var a=Cn;"async"===et.mutateApproach&&(a=O.requestAnimationFrame||Cn),a(function(){var t=!0===et.autoReplaceSvg?Sn.replace:Sn[et.autoReplaceSvg]||Sn.replace,a=yn("mutate");e.map(t),a(),n()})}}var _n=!1;function Mn(){_n=!0}function Rn(){_n=!1}var Pn=null;function Fn(e){if(L&&et.observeMutations){var t=e.treeCallback,n=void 0===t?xn:t,a=e.nodeCallback,r=void 0===a?xn:a,i=e.pseudoElementsCallback,o=void 0===i?xn:i,s=e.observeMutationsRoot,l=void 0===s?z:s;Pn=new L(function(e){if(!_n){var t=$t();it(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!wn(e.addedNodes[0])&&(et.searchPseudoElements&&o(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&et.searchPseudoElements&&o([e.target],!0),"attributes"===e.type&&wn(e.target)&&~Xe.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Pe):null,n=e.getAttribute?e.getAttribute(Fe):null;return t&&n}(e.target)){var a=Ut(ot(e.target)),i=a.prefix,s=a.iconName;e.target.setAttribute(Pe,i||t),s&&e.target.setAttribute(Fe,s)}else(l=e.target)&&l.classList&&l.classList.contains&&l.classList.contains(et.replacementClass)&&r(e.target);var l})}}),V&&Pn.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function En(e){var t,n,a=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),i=void 0!==e.innerText?e.innerText.trim():"",o=Ut(ot(e));return o.prefix||(o.prefix=$t()),a&&r&&(o.prefix=a,o.iconName=r),o.iconName&&o.prefix||(o.prefix&&i.length>0&&(o.iconName=(t=o.prefix,n=e.innerText,(Pt[t]||{})[n]||zt(o.prefix,jt(e.innerText)))),!o.iconName&&et.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function In(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=En(e),a=n.iconName,r=n.prefix,i=n.rest,o=function(e){return it(e.attributes).reduce(function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e},{})}(e),s=Gt("parseNodeAttributes",{},e),l=t.styleParser?function(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(e,t){var n=t.split(":"),a=n[0],r=n.slice(1);return a&&r.length>0&&(e[a]=r.join(":").trim()),e},{})),n}(e):[];return N({iconName:a,prefix:r,transform:at,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:o}},s)}var Dn=pt.styles;function An(e){var t="nest"===et.autoReplaceSvg?In(e,{styleParser:!1}):In(e);return~t.extra.classes.indexOf(Je)?tn("generateLayersText",e,t):tn("generateSvgReplacementMutation",e,t)}function On(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!V)return Promise.resolve();var n=z.documentElement.classList,a=function(e){return n.add("".concat(Ee,"-").concat(e))},r=function(e){return n.remove("".concat(Ee,"-").concat(e))},i=et.autoFetchSvg?[].concat(C(de),C(ke)):U.concat(Object.keys(Dn));i.includes("fa")||i.push("fa");var o=[".".concat(Je,":not([").concat(Me,"])")].concat(i.map(function(e){return".".concat(e,":not([").concat(Me,"])")})).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=it(e.querySelectorAll(o))}catch(e){}if(!(s.length>0))return Promise.resolve();a("pending"),r("complete");var l=yn("onTree"),c=s.reduce(function(e,t){try{var n=An(t);n&&e.push(n)}catch(e){Ae||"MissingIcon"===e.name&&console.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(c).then(function(n){Tn(n,function(){a("active"),a("complete"),r("pending"),"function"==typeof t&&t(),l(),e()})}).catch(function(e){l(),n(e)})})}function zn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;An(e).then(function(e){e&&Tn([e],t)})}var Ln=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,a=void 0===n?at:n,r=t.symbol,i=void 0!==r&&r,o=t.mask,s=void 0===o?null:o,l=t.maskId,c=void 0===l?null:l,f=t.classes,u=void 0===f?[]:f,d=t.attributes,h=void 0===d?{}:d,m=t.styles,p=void 0===m?{}:m;if(e){var g=e.prefix,v=e.iconName,b=e.icon;return ln(N({type:"icon"},e),function(){return en("beforeDOMElementCreation",{iconDefinition:e,params:t}),cn({icons:{main:dn(b),mask:s?dn(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:v,transform:N(N({},at),a),symbol:i,maskId:c,extra:{attributes:h,styles:p,classes:u}})})}},Bn={mixout:function(){return{icon:(e=Ln,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(t||{}).icon?t:nn(t||{}),r=n.mask;return r&&(r=(r||{}).icon?r:nn(r||{})),e(a,N(N({},n),{},{mask:r}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=On,e.nodeCallback=zn,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?z:t,a=e.callback;return On(n,void 0===a?function(){}:a)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,a=t.prefix,r=t.transform,i=t.symbol,o=t.mask,s=t.maskId,l=t.extra;return new Promise(function(t,c){Promise.all([mn(n,a),o.iconName?mn(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(o){var c=S(o,2),f=c[0],u=c[1];t([e,cn({icons:{main:f,mask:u},prefix:a,iconName:n,transform:r,symbol:i,maskId:s,extra:l,watchable:!0})])}).catch(c)})},e.generateAbstractIcon=function(e){var t,n=e.children,a=e.attributes,r=e.main,i=e.transform,o=lt(e.styles);return o.length>0&&(a.style=o),ct(i)&&(t=tn("generateAbstractTransformGrouping",{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),n.push(t||r.icon),{children:n,attributes:a}}}},$n={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,a=void 0===n?[]:n;return ln({type:"layer"},function(){en("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e(function(e){Array.isArray(e)?e.map(function(e){n=n.concat(e.abstract)}):n=n.concat(e.abstract)}),[{tag:"span",attributes:{class:["".concat(et.cssPrefix,"-layers")].concat(C(a)).join(" ")},children:n}]})}}}},Vn={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.title;var n=t.classes,a=void 0===n?[]:n,r=t.attributes,i=void 0===r?{}:r,o=t.styles,s=void 0===o?{}:o;return ln({type:"counter",content:e},function(){return en("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.extra,a=N(N({},n.attributes),{},{class:n.classes.join(" ")}),r=lt(n.styles);r.length>0&&(a.style=r);var i=[];return i.push({tag:"span",attributes:a,children:[t]}),i}({content:e.toString(),extra:{attributes:i,styles:s,classes:["".concat(et.cssPrefix,"-layers-counter")].concat(C(a))}})})}}}},Hn={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,a=void 0===n?at:n,r=t.classes,i=void 0===r?[]:r,o=t.attributes,s=void 0===o?{}:o,l=t.styles,c=void 0===l?{}:l;return ln({type:"text",content:e},function(){return en("beforeDOMElementCreation",{content:e,params:t}),fn({content:e,transform:N(N({},at),a),extra:{attributes:s,styles:c,classes:["".concat(et.cssPrefix,"-layers-text")].concat(C(i))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.transform,a=t.extra,r=null,i=null;if(H){var o=parseInt(getComputedStyle(e).fontSize,10),s=e.getBoundingClientRect();r=s.width/o,i=s.height/o}return Promise.resolve([e,fn({content:e.innerHTML,width:r,height:i,transform:n,extra:a,watchable:!0})])}}},Wn=new RegExp('"',"ug"),Un=[1105920,1112319],Jn=N(N(N(N({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),Qn=Object.keys(Jn).reduce(function(e,t){return e[t.toLowerCase()]=Jn[t],e},{}),Xn=Object.keys(Qn).reduce(function(e,t){var n=Qn[t];return e[t]=n[900]||C(Object.entries(n))[0][1],e},{});function Yn(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(function(a,r){if(null!==e.getAttribute(n))return a();var i,o,s,l=it(e.children).filter(function(e){return e.getAttribute(Re)===t})[0],c=O.getComputedStyle(e,t),f=c.getPropertyValue("font-family"),u=f.match(Qe),d=c.getPropertyValue("font-weight"),h=c.getPropertyValue("content");if(l&&!u)return e.removeChild(l),a();if(u&&"none"!==h&&""!==h){var m=c.getPropertyValue("content"),p=function(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),a=parseInt(t),r=isNaN(a)?"normal":a;return(Qn[n]||{})[r]||Xn[n]}(f,d),g=function(e){return jt(C(e.replace(Wn,""))[0]||"")}(m),v=u[0].startsWith("FontAwesome"),b=function(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content").replace(Wn,""),a=n.codePointAt(0),r=a>=Un[0]&&a<=Un[1],i=2===n.length&&n[0]===n[1];return r||i||t}(c),y=zt(p,g),x=y;if(v){var w=(o=Et[i=g],s=zt("fas",i),o||(s?{prefix:"fas",iconName:s}:null)||{prefix:null,iconName:null});w.iconName&&w.prefix&&(y=w.iconName,p=w.prefix)}if(!y||b||l&&l.getAttribute(Pe)===p&&l.getAttribute(Fe)===x)a();else{e.setAttribute(n,x),l&&e.removeChild(l);var j={iconName:null,prefix:null,transform:at,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},k=j.extra;k.attributes[Re]=t,mn(y,p).then(function(r){var i=cn(N(N({},j),{},{icons:{main:r,mask:{prefix:null,iconName:null,rest:[]}},prefix:p,iconName:x,extra:k,watchable:!0})),o=z.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=i.map(function(e){return yt(e)}).join("\n"),e.removeAttribute(n),a()}).catch(r)}}else a()})}function Zn(e){return Promise.all([Yn(e,"::before"),Yn(e,"::after")])}function qn(e){return!(e.parentNode===document.head||~Ie.indexOf(e.tagName.toUpperCase())||e.getAttribute(Re)||e.parentNode&&"svg"===e.parentNode.tagName)}var Kn=function(e){return!!e&&De.some(function(t){return e.includes(t)})},Gn=function(e){if(!e)return[];var t=new Set,n=e.split(/,(?![^()]*\))/).map(function(e){return e.trim()});n=n.flatMap(function(e){return e.includes("(")?e:e.split(",").map(function(e){return e.trim()})});var a,r=w(n);try{for(r.s();!(a=r.n()).done;){var i=a.value;if(Kn(i)){var o=De.reduce(function(e,t){return e.replace(t,"")},i);""!==o&&"*"!==o&&t.add(o)}}}catch(e){r.e(e)}finally{r.f()}return t};function ea(e){if(V){var t;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])t=e;else if(et.searchPseudoElementsFullScan)t=e.querySelectorAll("*");else{var n,a=new Set,r=w(document.styleSheets);try{for(r.s();!(n=r.n()).done;){var i=n.value;try{var o,s=w(i.cssRules);try{for(s.s();!(o=s.n()).done;){var l,c=o.value,f=w(Gn(c.selectorText));try{for(f.s();!(l=f.n()).done;){var u=l.value;a.add(u)}}catch(e){f.e(e)}finally{f.f()}}}catch(e){s.e(e)}finally{s.f()}}catch(e){et.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(i.href," (").concat(e.message,')\nIf it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.'))}}}catch(e){r.e(e)}finally{r.f()}if(!a.size)return;var d=Array.from(a).join(", ");try{t=e.querySelectorAll(d)}catch(e){}}return new Promise(function(e,n){var a=it(t).filter(qn).map(Zn),r=yn("searchPseudoElements");Mn(),Promise.all(a).then(function(){r(),Rn(),e()}).catch(function(){r(),Rn(),n()})})}}var ta={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=ea,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?z:t;et.searchPseudoElements&&ea(n)}}},na=!1,aa=function(e){return e.toLowerCase().split(" ").reduce(function(e,t){var n=t.toLowerCase().split("-"),a=n[0],r=n.slice(1).join("-");if(a&&"h"===r)return e.flipX=!0,e;if(a&&"v"===r)return e.flipY=!0,e;if(r=parseFloat(r),isNaN(r))return e;switch(a){case"grow":e.size=e.size+r;break;case"shrink":e.size=e.size-r;break;case"left":e.x=e.x-r;break;case"right":e.x=e.x+r;break;case"up":e.y=e.y-r;break;case"down":e.y=e.y+r;break;case"rotate":e.rotate=e.rotate+r}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},ra={mixout:function(){return{parse:{transform:function(e){return aa(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=aa(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,a=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(a/2," 256)")},o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),c={outer:i,inner:{transform:"".concat(o," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(r/2*-1," -256)")}};return{tag:"g",attributes:N({},c.outer),children:[{tag:"g",attributes:N({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:N(N({},t.icon.attributes),c.path)}]}]}}}},ia={x:0,y:0,width:"100%",height:"100%"};function oa(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var sa={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),a=n?Ut(n.split(" ").map(function(e){return e.trim()})):{prefix:null,iconName:null,rest:[]};return a.prefix||(a.prefix=$t()),e.mask=a,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,a=e.attributes,r=e.main,i=e.mask,o=e.maskId,s=e.transform,l=r.width,c=r.icon,f=i.width,u=i.icon,d=function(e){var t=e.transform,n=e.containerWidth,a=e.iconWidth,r={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(i," ").concat(o," ").concat(s)},path:{transform:"translate(".concat(a/2*-1," -256)")}}}({transform:s,containerWidth:f,iconWidth:l}),h={tag:"rect",attributes:N(N({},ia),{},{fill:"white"})},m=c.children?{children:c.children.map(oa)}:{},p={tag:"g",attributes:N({},d.inner),children:[oa(N({tag:c.tag,attributes:N(N({},c.attributes),d.path)},m))]},g={tag:"g",attributes:N({},d.outer),children:[p]},v="mask-".concat(o||rt()),b="clip-".concat(o||rt()),y={tag:"mask",attributes:N(N({},ia),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,g]},x={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(t=u,"g"===t.tag?t.children:[t])},y]};return n.push(x,{tag:"rect",attributes:N({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(v,")")},ia)}),{children:n,attributes:a}}}},la={provides:function(e){var t=!1;O.matchMedia&&(t=O.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:N(N({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var r=N(N({},a),{},{attributeName:"opacity"}),i={tag:"circle",attributes:N(N({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:N(N({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:N(N({},r),{},{values:"1;0;1;1;0;1;"})}),e.push(i),e.push({tag:"path",attributes:N(N({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:N(N({},r),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:N(N({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:N(N({},r),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var n=t.mixoutsTo;Yt=e,Zt={},Object.keys(qt).forEach(function(e){-1===Kt.indexOf(e)&&delete qt[e]}),Yt.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){"function"==typeof t[e]&&(n[e]=t[e]),"object"===_(t[e])&&Object.keys(t[e]).forEach(function(a){n[e]||(n[e]={}),n[e][a]=t[e][a]})}),e.hooks){var a=e.hooks();Object.keys(a).forEach(function(e){Zt[e]||(Zt[e]=[]),Zt[e].push(a[e])})}e.provides&&e.provides(qt)})}([ht,Bn,$n,Vn,Hn,ta,{mixout:function(){return{dom:{unwatch:function(){Mn(),na=!0}}}},hooks:function(){return{bootstrap:function(){Fn(Gt("mutationObserverCallbacks",{}))},noAuto:function(){Pn&&Pn.disconnect()},watch:function(e){var t=e.observeMutationsRoot;na?Rn():Fn(Gt("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},ra,sa,la,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),a=null!==n&&(""===n||n);return e.symbol=a,e}}}}],{mixoutsTo:on});var ca=on.config,fa=on.parse,ua=on.icon;function da(e){return t=e,(t-=0)==t?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():"")).charAt(0).toLowerCase()+e.slice(1);var t}function ha(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ma=new Map;function pa(e){if(ma.has(e))return ma.get(e);const t={};let n=0;const a=e.length;for(;n<a;){const r=e.indexOf(";",n),i=-1===r?a:r,o=e.slice(n,i).trim();if(o){const e=o.indexOf(":");if(e>0){const n=o.slice(0,e).trim(),a=o.slice(e+1).trim();if(n&&a){const e=da(n);t[e.startsWith("webkit")?ha(e):e]=a}}}n=i+1}if(1e3===ma.size){const e=ma.keys().next().value;e&&ma.delete(e)}return ma.set(e,t),t}var ga=function e(t,n,a={}){if("string"==typeof n)return n;const r=(n.children||[]).map(n=>e(t,n)),i=n.attributes||{},o={};for(const[e,t]of Object.entries(i))switch(!0){case"class"===e:o.className=t;break;case"style"===e:o.style=pa(String(t));break;case e.startsWith("aria-"):case e.startsWith("data-"):o[e.toLowerCase()]=t;break;default:o[da(e)]=t}const{style:s,role:l,"aria-label":c,...f}=a;return s&&(o.style=o.style?{...o.style,...s}:s),l&&(o.role=l),c&&(o["aria-label"]=c,o["aria-hidden"]="false"),t(n.tag,{...f,...o},...r)}.bind(null,t.createElement),va=(e,n)=>{const a=t.useId();return e||(n?a:void 0)};"undefined"!=typeof process&&process.env.FA_VERSION;var ba="searchPseudoElementsFullScan"in ca?"7.0.0":"6.0.0",ya=Number.parseInt(ba)>=7,xa="fa",wa="fa-beat",ja="fa-fade",ka="fa-beat-fade",Na="fa-bounce",Sa="fa-shake",Ca="fa-spin",Ta="fa-spin-pulse",_a="fa-spin-reverse",Ma="fa-pulse",Ra={left:"fa-pull-left",right:"fa-pull-right"},Pa={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},Fa={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},Ea="fa-border",Ia="fa-fw",Da="fa-flip",Aa="fa-flip-horizontal",Oa="fa-flip-vertical",za="fa-inverse",La="fa-rotate-by",Ba="fa-swap-opacity",$a="fa-width-auto";function Va(e){const t=ca.cssPrefix||ca.familyPrefix||xa;return t===xa?e:e.replace(new RegExp(String.raw`(?<=^|\s)${xa}-`,"g"),`${t}-`)}function Ha(e){if(e)return(e=>"object"==typeof e&&"icon"in e&&!!e.icon)(e)?e:fa.icon(e)}var Wa=new class{constructor(e="react-fontawesome"){this.enabled=!1;let t=!1;try{t="undefined"!=typeof process&&"development"===process.env.NODE_ENV}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}}("FontAwesomeIcon"),Ua={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},Ja=new Set(Object.keys(Ua)),Qa=t.forwardRef((e,t)=>{const n={...Ua,...e},{icon:a,mask:r,symbol:i,title:o,titleId:s,maskId:l,transform:c}=n,f=va(l,Boolean(r)),u=va(s,Boolean(o)),d=Ha(a);if(!d)return Wa.error("Icon lookup is undefined",a),null;const h=function(e){const{beat:t,fade:n,beatFade:a,bounce:r,shake:i,spin:o,spinPulse:s,spinReverse:l,pulse:c,fixedWidth:f,inverse:u,border:d,flip:h,size:m,rotation:p,pull:g,swapOpacity:v,rotateBy:b,widthAuto:y,className:x}=e,w=[];return x&&w.push(...x.split(" ")),t&&w.push(wa),n&&w.push(ja),a&&w.push(ka),r&&w.push(Na),i&&w.push(Sa),o&&w.push(Ca),l&&w.push(_a),s&&w.push(Ta),c&&w.push(Ma),f&&w.push(Ia),u&&w.push(za),d&&w.push(Ea),!0===h&&w.push(Da),"horizontal"!==h&&"both"!==h||w.push(Aa),"vertical"!==h&&"both"!==h||w.push(Oa),null!=m&&w.push(Fa[m]),null!=p&&0!==p&&w.push(Pa[p]),null!=g&&w.push(Ra[g]),v&&w.push(Ba),ya?(b&&w.push(La),y&&w.push($a),(ca.cssPrefix||ca.familyPrefix||xa)===xa?w:w.map(Va)):w}(n),m="string"==typeof c?fa.transform(c):c,p=Ha(r),g=ua(d,{...h.length>0&&{classes:h},...m&&{transform:m},...p&&{mask:p},symbol:i,title:o,titleId:u,maskId:f});if(!g)return Wa.error("Could not find icon",d),null;const{abstract:v}=g,b={ref:t};for(const e of(y=n,Object.keys(y)))Ja.has(e)||(b[e]=n[e]);var y;return ga(v[0],b)});Qa.displayName="FontAwesomeIcon";var Xa={box:"Box-module_box__SQLj3",collapseBox:"Box-module_collapseBox__5A5Fc",padding:"Box-module_padding__dIJ-L",collapsedContent:"Box-module_collapsedContent__yn-0g",collapseTitle:"Box-module_collapseTitle__-R0ge",collapseIcon:"Box-module_collapseIcon__OAiTO",collapsed:"Box-module_collapsed__nf76f"};b.bind(Xa);const Ya=["dotnetspy","ebpfspy","gospy","phpspy","pyspy","rbspy","nodespy","javaspy","pyroscope-rs","scrape","tracing","unknown"],Za=a.z.preprocess(e=>e&&Ya.includes(e)?e:"unknown",a.z.enum(Ya).default("unknown")),qa=["samples","objects","goroutines","bytes","lock_samples","lock_nanoseconds","trace_samples","exceptions"],Ka=a.z.preprocess(e=>"string"==typeof e&&qa.includes(e)?e:"unknown",a.z.enum(["samples","objects","goroutines","bytes","lock_samples","lock_nanoseconds","trace_samples","exceptions","unknown"])),Ga=a.z.object({names:a.z.array(a.z.preprocess(e=>e||"unknown",a.z.string().min(1))),levels:a.z.array(a.z.array(a.z.number())),numTicks:a.z.number(),maxSelf:a.z.number()}),er=a.z.object({appName:a.z.string().optional(),name:a.z.string().optional(),startTime:a.z.number().optional(),endTime:a.z.number().optional(),query:a.z.string().optional(),maxNodes:a.z.number().optional(),format:a.z.enum(["single","double"]),sampleRate:a.z.number(),spyName:Za,units:Ka});a.z.object({version:a.z.number().min(1).max(1).default(1),flamebearer:Ga,metadata:er,leftTicks:a.z.number().optional(),rightTicks:a.z.number().optional()});const tr={format:"single",jStep:4,jName:3,getBarOffset:(e,t)=>e[t],getBarTotal:(e,t)=>e[t+1],getBarTotalDiff:(e,t)=>0,getBarSelf:(e,t)=>e[t+2],getBarSelfDiff:(e,t)=>0,getBarName:(e,t)=>e[t+3]},nr={format:"double",jStep:7,jName:6,getBarOffset:(e,t)=>e[t]+e[t+3],getBarTotal:(e,t)=>e[t+4]+e[t+1],getBarTotalLeft:(e,t)=>e[t+1],getBarTotalRght:(e,t)=>e[t+4],getBarTotalDiff:(e,t)=>e[t+4]-e[t+1],getBarSelf:(e,t)=>e[t+5]+e[t+2],getBarSelfLeft:(e,t)=>e[t+2],getBarSelfRght:(e,t)=>e[t+5],getBarSelfDiff:(e,t)=>e[t+5]-e[t+2],getBarName:(e,t)=>e[t+6]};function ar(e){switch(e){case"single":return tr;case"double":return nr;default:throw new Error(`Unsupported type: '${e}'`)}}const rr=a.z.object({refType:a.z.string(),traceID:a.z.string(),spanID:a.z.string()}),ir=a.z.object({key:a.z.string(),type:a.z.string(),value:a.z.union([a.z.boolean(),a.z.number(),a.z.string()])}),or=a.z.object({traceID:a.z.string(),spanID:a.z.string(),flags:a.z.string(),operationName:a.z.string(),references:a.z.array(rr),startTime:a.z.number(),duration:a.z.number(),tags:a.z.array(ir),logs:a.z.object({timestamp:a.z.number(),fields:a.z.array(ir)}),processID:a.z.string(),warnings:a.z.any()}),sr=a.z.object({serviceName:a.z.string(),tags:a.z.array(ir)});a.z.object({traceID:a.z.string(),spans:a.z.array(or),processes:a.z.record(sr),warnings:a.z.any()});const lr=a.z.object({watermark:a.z.object({}).optional(),startTime:a.z.number(),samples:a.z.array(a.z.number()),durationDelta:a.z.number()});a.z.record(a.z.string(),lr);const cr=22,fr=21.5;function ur(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function dr(e){return`${hr(e)}%`}function hr(e){return Math.round(1e4*e)/100}function mr(e,t){return(t-e)/e*100}function pr(e,t,n){switch(n){case"samples":return new gr(e/t);case"objects":case"goroutines":case"lock_samples":case"exceptions":return new br(e);case"bytes":return new yr(e);case"lock_nanoseconds":return new vr(e);case"trace_samples":return new gr(e/t,"",!0);default:return console.warn(`Unsupported unit: '${n}'. Defaulting to ''`),new gr(e/t," ")}}class gr{constructor(e,t,n){this.divider=1,this.enableSubsecondPrecision=!1,this.suffix="second",this.durations=[[60,"minute"],[60,"hour"],[24,"day"],[30,"month"],[12,"year"]],this.units="",n&&(this.enableSubsecondPrecision=n,this.durations=[[1e3,"ms"],[1e3,"second"],...this.durations],this.suffix="μs",e*=1e6),this.units=t||"";for(let t=0;t<this.durations.length;t++){const n=this.durations[t];if(!n){console.warn("Could not calculate level");break}if(!(e>=n[0]))break;this.divider*=n[0],e/=n[0],this.suffix=n[1]}}format(e,t,n=!0){this.enableSubsecondPrecision&&(t/=1e6);const a=e/t/this.divider;let r=a.toFixed(2);return 0===a?r="0.00":(a>=0&&a<.01||a<=0&&a>-.01)&&(r="< 0.01"),n?`${r} ${this.units||`${this.suffix}${1===a||2===this.suffix.length?"":"s"}`}`:r}formatPrecise(e,t){this.enableSubsecondPrecision&&(t/=1e6);const n=e/t/this.divider;return`${parseFloat(n.toFixed(5))} ${this.units||`${this.suffix}${1===n||2===this.suffix.length?"":"s"}`}`}}class vr{constructor(e){this.divider=1,this.multiplier=1,this.suffix="second",this.durations=[[60,"minute"],[60,"hour"],[24,"day"],[30,"month"],[12,"year"]],e/=1e9;for(let t=0;t<this.durations.length;t++){const n=this.durations[t];if(!n){console.warn("Could not calculate level");break}if(!(e>=n[0]))break;this.divider*=n[0],e/=n[0],this.suffix=n[1]}}format(e){const t=e/1e9/this.divider;let n=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(n="< 0.01"),`${n} ${this.suffix}${1===t?"":"s"}`}formatPrecise(e){const t=e/1e9/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}${1===t?"":"s"}`}}class br{constructor(e){this.divider=1,this.suffix="",this.objects=[[1e3,"K"],[1e3,"M"],[1e3,"G"],[1e3,"T"],[1e3,"P"]];for(let t=0;t<this.objects.length;t++){const n=this.objects[t];if(!n){console.warn("Could not calculate level");break}if(!(e>=n[0]))break;this.divider*=n[0],e/=n[0],this.suffix=n[1]}}format(e){const t=e/this.divider;let n=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(n="< 0.01"),`${n} ${this.suffix}`}formatPrecise(e){const t=e/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}`}}class yr{constructor(e){this.divider=1,this.suffix="bytes",this.bytes=[[1024,"KB"],[1024,"MB"],[1024,"GB"],[1024,"TB"],[1024,"PB"]];for(let t=0;t<this.bytes.length;t++){const n=this.bytes[t];if(!n){console.warn("Could not calculate level");break}if(!(e>=n[0]))break;{this.divider*=n[0],e/=n[0];const t=n[1];t?this.suffix=t:(console.warn("Could not calculate suffix"),this.suffix="")}}}format(e){const t=e/this.divider;let n=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(n="< 0.01"),`${n} ${this.suffix}`}formatPrecise(e){const t=e/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}`}}const xr="TAIL",wr="HEAD";function jr({mode:e,charSize:t,rectWidth:n,fullText:a,shortText:r}){if(e===xr){if(t*a.length<=n)return{mode:e,text:a,marginLeft:3};const i=t*r.length;return i<=n?{mode:e,text:r,marginLeft:3}:{mode:e,text:r,marginLeft:-(i-n+3)}}return{mode:e,text:a,marginLeft:3}}function kr(e,t){return r.rgb(e,e,e).alpha(t)}function Nr(e,t){if(0===t.length)return t;const n=function(e){switch(e){case"dotnetspy":return/^(?<packageName>.+)\.(.+)\.(.+)\(.*\)$/;case"ebpfspy":case"unknown":return/^(?<packageName>.+)$/;case"gospy":case"scrape":return/^(?<packageName>.*?\/.*?\.|.*?\.|.+)(?<functionName>.*)$/;case"phpspy":return/^(?<packageName>(.*\/)*)(?<filename>.*\.php+)(?<line_info>.*)$/;case"pyspy":return/^(?<packageName>(.*\/)*)(?<filename>.*\.py+)(?<line_info>.*)$/;case"rbspy":return/^(?<packageName>(.*\/)*)(?<filename>.*\.rb+)(?<line_info>.*)$/;case"nodespy":return/^(\.\/node_modules\/)?(?<packageName>[^/]*)(?<filename>.*\.?(jsx?|tsx?)?):(?<functionName>.*):(?<line_info>.*)$/;case"tracing":return/^(?<packageName>.+?):.*$/;case"javaspy":return/^(?<packageName>.+\/)(?<filename>.+\.)(?<functionName>.+)$/;case"pyroscope-rs":return/^(?<packageName>[^::]+)/}return/^(?<packageName>.+)$/}(e),a=t.match(n);return a&&a.groups?a.groups.packageName||"":t}function Sr(e,t){const n=function(e,t=0){let n,a,r,i,o,s,l,c;for(n=3&e.length,a=e.length-n,r=t,o=3432918353,s=461845907,c=0;c<a;)l=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,l=(65535&l)*o+(((l>>>16)*o&65535)<<16)&4294967295,l=l<<15|l>>>17,l=(65535&l)*s+(((l>>>16)*s&65535)<<16)&4294967295,r^=l,r=r<<13|r>>>19,i=5*(65535&r)+((5*(r>>>16)&65535)<<16)&4294967295,r=27492+(65535&i)+(((i>>>16)+58964&65535)<<16);switch(l=0,n){case 3:l^=(255&e.charCodeAt(c+2))<<16;case 2:l^=(255&e.charCodeAt(c+1))<<8;case 1:l^=255&e.charCodeAt(c);default:l=(65535&l)*o+(((l>>>16)*o&65535)<<16)&4294967295,l=l<<15|l>>>17,l=(65535&l)*s+(((l>>>16)*s&65535)<<16)&4294967295,r^=l}return r^=e.length,r^=r>>>16,r=2246822507*(65535&r)+((2246822507*(r>>>16)&65535)<<16)&4294967295,r^=r>>>13,r=3266489909*(65535&r)+((3266489909*(r>>>16)&65535)<<16)&4294967295,r^=r>>>16,r>>>0}(t,0),a=n%e.colors.length,r=e.colors[a];return r||(console.warn("Could not calculate color. Defaulting to the first one"),e.colors[0])}function Cr(e){const{goodColor:t,neutralColor:n,badColor:a}=e,o=i.scaleLinear().domain([-100,0,100]).range([t.rgb().toString(),n.rgb().toString(),a.rgb().toString()]);return e=>r(o(e).toString())}function Tr(e,t){return t.toLowerCase().includes(e.toLowerCase())}function _r(e){const{canvas:t,fitMode:n,units:a,tickToX:r,levels:i,palette:o}=e,{numTicks:s,sampleRate:l,pxPerTick:c}=e,{rangeMin:f,rangeMax:u}=e,{focusedNode:d,zoom:h}=e,m=function(e){return e.clientWidth||e.width}(t);if(t.width=m,f>=u)throw new Error("'rangeMin' should be strictly smaller than 'rangeMax'");const{format:p}=e,g=ar(p),v=t.getContext("2d");if(!v)throw new Error("Could not get ctx");const b=h.mapOrElse(()=>0,e=>e.i),y=pr(s,l,a),x=d.isJust,w=d.mapOrElse(()=>0,e=>e.i),j=cr*(i.length-w)+(x?fr:0);t.height=j,devicePixelRatio>1&&(t.width*=2,t.height*=2,v.scale(2,2));const{names:k}=e;if(x){const e=s*c;v.beginPath(),v.rect(0,0,s*c,fr),v.fillStyle=kr(200,1).rgb().string(),v.fill();const t=d.mapOrElse(()=>"total",e=>`total (${e.i-1} level(s) collapsed)`);v.textBaseline="middle",v.font="400 11.5px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace";const a=jr({mode:n,charSize:v.measureText("a").width,rectWidth:e,fullText:t,shortText:t}),r=0,i=0,o=fr;v.save(),v.clip(),v.fillStyle="black";const l=Math.round(Math.max(r,0));v.fillText(a.text,l+a.marginLeft,i+o/2+1),v.restore()}for(let t=0;t<i.length-w;t+=1){const a=i[w+t];if(!a)throw new Error(`Could not find level: ${w+t}`);for(let i=0;i<a.length;i+=g.jStep){const f=g.getBarOffset(a,i),u=r(f),h=t*cr+(x?fr:0),m=fr,w=!!e.highlightQuery&&e.highlightQuery.length>0,j=Ir(i+g.jName,a,k,e.highlightQuery);let N=g.getBarTotal(a,i);const S=N*c<=5;if(S)for(;i<a.length-g.jStep&&f+N===g.getBarOffset(a,i+g.jStep)&&g.getBarTotal(a,i+g.jStep)*c<=5&&j===(e.highlightQuery&&Ir(i+g.jStep+g.jName,a,k,e.highlightQuery)||!1);)i+=g.jStep,N+=g.getBarTotal(a,i);const C=N*c-(S?0:.5),{spyName:T}=e,_=()=>{const n={level:a,j:i,i:t+d.mapOrElse(()=>0,e=>e.i),names:k,collapsed:S,selectedLevel:b,highlightModeOn:w,isHighlighted:j,spyName:T,palette:o};switch(p){case"single":return Fr({...n});case"double":return Er({...n,leftTicks:e.leftTicks,rightTicks:e.rightTicks});default:throw new Error(`Unsupported format: ${p}`)}},M=_();if(v.beginPath(),v.rect(u,h,C,m),v.fillStyle=M.string(),v.fill(),S)continue;if(C<20)continue;const R=Mr(k,i,p,a),P=Rr(R,N,s,l,y);v.textBaseline="middle",v.font="400 11.5px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace";const F=jr({mode:n,charSize:v.measureText("a").width,rectWidth:C,fullText:P,shortText:R});v.save(),v.clip(),v.fillStyle="black";const E=Math.round(Math.max(u,0));v.fillText(F.text,E+F.marginLeft,h+m/2+1),v.restore()}}}function Mr(e,t,n,a){let r=a[t+ar(n).jName];void 0===r&&(r=-1);const i=e[r];return i||(console.warn("Could not find function name for",{j:t,format:n,level:a,names:e}),"")}function Rr(e,t,n,a,r){return`${e} (${dr(t/n)}, ${r.format(t,a)})`}function Pr({collapsed:e,highlightModeOn:t,isHighlighted:n}){return e||t&&!n?kr(200,.66):null}function Fr(e){const t=Pr(e);if(t)return t;const n=ar("single"),a=e.selectedLevel>e.i?.33:1;let r=e.level[e.j+n.jName];void 0===r&&(console.warn("Could nto find level",{l:e.j,jName:n.jName,level:e.level}),r=-1);const i=e.names[r]||"",o=Nr(e.spyName,i)||"";return Sr(e.palette,o).alpha(a)}function Er(e){const t=Pr(e);if(t)return t;const n=e.selectedLevel>e.i?.33:1,{leftRatio:a,rightRatio:r}=function(e,t,n,a){const r=nr;return n&&a?{leftRatio:r.getBarTotalLeft(e,t)/n,rightRatio:r.getBarTotalRght(e,t)/a}:(console.error("Properties 'rightTicks' and 'leftTicks' are required. Can't calculate ratio."),{leftRatio:0,rightRatio:0})}(e.level,e.j,e.leftTicks,e.rightTicks),i=hr(a),o=hr(r);return function(e,t,n){const a=function(e,t){if(e===t)return 0;if(0===e)return 100;const n=(t-e)/e*100;return n>100?100:n<-100?-100:n}(t,n);return Cr(e)(a)}(e.palette,i,o).alpha(n)}function Ir(e,t,n,a){const r=t[e];if(!r)return!1;const i=n[r];return!!i&&Tr(a,i)}r.rgb(148,142,142),r.rgb(200,0,0),r.rgb(0,170,0),r("#48CE73");class Dr{constructor(e,t,n,a,r,i,o){if(this.flamebearer=e,this.canvas=t,this.focusedNode=n,this.fitMode=a,this.highlightQuery=r,this.zoom=i,this.palette=o,this.tickToX=e=>{const{rangeMin:t}=this.getRange();return(e-this.flamebearer.numTicks*t)*this.pxPerTick()},this.xyToBarPosition=e=>{const{ff:t}=this,{i:n,j:a}=this.xyToBarIndex(e.x,e.y),r=this.focusedNode.mapOrElse(()=>0,e=>e.i<0?0:e.i-1),i=this.flamebearer.levels[n];if(!i)throw new Error(`Could not find level: '${n}'`);const o=Math.max(this.tickToX(t.getBarOffset(i,a)),0);return{x:o,y:Math.max((n-r)*cr,0),width:Math.min(this.tickToX(t.getBarOffset(i,a)+t.getBarTotal(i,a))-o,this.getCanvasWidth())}},this.xyToBarData=e=>{const{i:t,j:n}=this.xyToBarIndex(e.x,e.y),a=this.flamebearer.levels[t];if(!a)throw new Error(`Could not find level: '${t}'`);switch(this.flamebearer.format){case"single":{const e=tr;return{format:"single",name:this.flamebearer.names[e.getBarName(a,n)],self:e.getBarSelf(a,n),offset:e.getBarOffset(a,n),total:e.getBarTotal(a,n)}}case"double":{const e=nr;return{format:"double",barTotal:e.getBarTotal(a,n),totalLeft:e.getBarTotalLeft(a,n),totalRight:e.getBarTotalRght(a,n),totalDiff:e.getBarTotalDiff(a,n),name:this.flamebearer.names[e.getBarName(a,n)]}}default:throw new Error("Unsupported type")}},this.isWithinBounds=(e,t)=>{if(e<0||e>this.getCanvasWidth())return!1;try{const{i:n,j:a}=this.xyToBarIndex(e,t);if(-1===a||-1===n)return!1}catch(e){return!1}return!0},this.zoom=i,this.focusedNode=n,this.flamebearer=e,this.canvas=t,this.highlightQuery=r,this.ff=ar(e.format),this.palette=o,n.isJust&&i.isJust&&i.value.i<n.value.i)throw new Error("Zoom i level should be bigger than Focus")}render(){const{rangeMin:e,rangeMax:t}=this.getRange(),n={canvas:this.canvas,format:this.flamebearer.format,numTicks:this.flamebearer.numTicks,sampleRate:this.flamebearer.sampleRate,names:this.flamebearer.names,levels:this.flamebearer.levels,spyName:this.flamebearer.spyName,units:this.flamebearer.units,maxSelf:this.flamebearer.maxSelf,rangeMin:e,rangeMax:t,fitMode:this.fitMode,highlightQuery:this.highlightQuery,zoom:this.zoom,focusedNode:this.focusedNode,pxPerTick:this.pxPerTick(),tickToX:this.tickToX,palette:this.palette},{format:a}=this.flamebearer;switch(a){case"single":_r({...n,format:"single"});break;case"double":_r({...n,leftTicks:this.flamebearer.leftTicks,rightTicks:this.flamebearer.rightTicks});break;default:throw new Error(`Invalid format: '${a}'`)}}pxPerTick(){const{rangeMin:e,rangeMax:t}=this.getRange();return this.getCanvasWidth()/this.flamebearer.numTicks/(t-e)}getRange(){const{ff:e}=this,t=t=>{const n=this.flamebearer.levels[t.i];if(!n)throw new Error(`Could not find level: '${t.i}'`);return{rangeMin:e.getBarOffset(n,t.j)/this.flamebearer.numTicks,rangeMax:(e.getBarOffset(n,t.j)+e.getBarTotal(n,t.j))/this.flamebearer.numTicks}},n=t=>{const n=this.flamebearer.levels[t.i];if(!n)throw new Error(`Could not find level: '${t.i}'`);return{rangeMin:e.getBarOffset(n,t.j)/this.flamebearer.numTicks,rangeMax:(e.getBarOffset(n,t.j)+e.getBarTotal(n,t.j))/this.flamebearer.numTicks}},{zoom:a,focusedNode:r}=this;return a.match({Just:e=>r.match({Just:a=>{const r=n(a),i=t(e);return r.rangeMax-r.rangeMin<i.rangeMax-i.rangeMin?(console.warn("Focus is smaller than range, this shouldnt happen. Verify that the zoom is always bigger than the focus."),n(a)):t(e)},Nothing:()=>t(e)}),Nothing:()=>r.match({Just:e=>n(e),Nothing:()=>({rangeMin:0,rangeMax:1})})})}getCanvasWidth(){return this.canvas.clientWidth||this.canvas.width}isFocused(){return this.focusedNode.isJust}binarySearchLevel(e,t){const{ff:n}=this;let a=0,r=t.length-n.jStep;for(;a<=r;){const i=n.jStep*(a/n.jStep+r/n.jStep>>1),o=this.tickToX(n.getBarOffset(t,i)),s=this.tickToX(n.getBarOffset(t,i)+n.getBarTotal(t,i));if(o<=e&&s>=e)return s-o>5?i:-1;o>e?r=i-n.jStep:a=i+n.jStep}return-1}xyToBarIndex(e,t){if(e<0||t<0)throw new Error(`x and y must be bigger than 0. x = ${e}, y = ${t}`);if(this.isFocused()&&t<=fr)return{i:0,j:0};const n=this.isFocused()?t-fr:t,a=this.focusedNode.mapOrElse(()=>0,e=>e.i<=0?0:e.i),r=this.zoom.match({Just:()=>this.focusedNode.match({Just:()=>a,Nothing:()=>0}),Nothing:()=>this.focusedNode.match({Just:()=>a,Nothing:()=>0})}),i=Math.floor(n/cr)+r;if(i>=0&&i<this.flamebearer.levels.length){const t=this.flamebearer.levels[i];if(!t)throw new Error(`Could not find level: '${i}'`);return{i:i,j:this.binarySearchLevel(e,t)}}return{i:0,j:0}}parseXY(e,t){const a={x:e,y:t};return this.isWithinBounds(e,t)?n.Maybe.of(a):n.Maybe.nothing()}xyToBar(e,t){return this.parseXY(e,t).map(n=>{const{i:a,j:r}=this.xyToBarIndex(e,t);return{i:a,j:r,...this.xyToBarPosition(n),...this.xyToBarData(n)}})}}function Ar(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Ar(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Or(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Ar(e))&&(a&&(a+=" "),a+=t);return a}var zr="NoData-module_noData__WuuID";function Lr(){return e.jsx("div",{"data-testid":"no-data",className:zr,children:e.jsx("span",{children:"No data available"})})}var Br,$r,Vr={},Hr={};function Wr(){return Br||(Br=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="arrow-rotate-right",n=[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],a="f01e",r="M436.7 74.7L448 85.4 448 32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 128c0 17.7-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l47.9 0-7.6-7.2c-.2-.2-.4-.4-.6-.6-75-75-196.5-75-271.5 0s-75 196.5 0 271.5 196.5 75 271.5 0c8.2-8.2 15.5-16.9 21.9-26.1 10.1-14.5 30.1-18 44.6-7.9s18 30.1 7.9 44.6c-8.5 12.2-18.2 23.8-29.1 34.7-100 100-262.1 100-362 0S-25 175 75 75c99.9-99.9 261.7-100 361.7-.3z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,a,r]},e.faArrowRotateRight=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Hr)),Hr}function Ur(){return $r||($r=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Wr();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faRedo=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(Vr)),Vr}var Jr,Qr=Ur(),Xr={};function Yr(){return Jr||(Jr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="copy",n=[],a="f0c5",r="M192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-200.6c0-17.4-7.1-34.1-19.7-46.2L370.6 17.8C358.7 6.4 342.8 0 326.3 0L192 0zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-64 0 0 16-192 0 0-256 16 0 0-64-16 0z";e.definition={prefix:"fas",iconName:t,icon:[448,512,n,a,r]},e.faCopy=e.definition,e.prefix="fas",e.iconName=t,e.width=448,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Xr)),Xr}var Zr,qr=Yr(),Kr={};function Gr(){return Zr||(Zr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="highlighter",n=[],a="f591",r="M315 315L473.4 99.9 444.1 70.6 229 229 315 315zm-187 5l0 0 0-71.7c0-15.3 7.2-29.6 19.5-38.6L420.6 8.4C428 2.9 437 0 446.2 0 457.6 0 468.5 4.5 476.6 12.6l54.8 54.8c8.1 8.1 12.6 19 12.6 30.5 0 9.2-2.9 18.2-8.4 25.6L334.4 396.5c-9 12.3-23.4 19.5-38.6 19.5l-71.7 0-25.4 25.4c-12.5 12.5-32.8 12.5-45.3 0l-50.7-50.7c-12.5-12.5-12.5-32.8 0-45.3L128 320zM7 466.3l51.7-51.7 70.6 70.6-19.7 19.7c-4.5 4.5-10.6 7-17 7L24 512c-13.3 0-24-10.7-24-24l0-4.7c0-6.4 2.5-12.5 7-17z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,a,r]},e.faHighlighter=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Kr)),Kr}var ei,ti,ni=Gr(),ai={},ri={};function ii(){return ei||(ei=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="down-left-and-up-right-to-center",n=["compress-alt"],a="f422",r="M439.5 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2S450.2 240 440.5 240l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87zM72.5 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87-39-39c-6.9-6.9-8.9-17.2-5.2-26.2S62.8 272 72.5 272z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,a,r]},e.faDownLeftAndUpRightToCenter=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(ri)),ri}function oi(){return ti||(ti=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ii();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faCompressAlt=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(ai)),ai}var si=oi();const li=e=>!!e&&"o"===e[0],ci=l.unstable_batchedUpdates,fi=(e,t)=>!0===e||!(!e||!e[t]),ui=(e,t)=>"function"==typeof e?e(t):e,di="_szhsinMenu",hi=(e,t)=>Object.defineProperty(t,di,{value:e}),mi=(e,t)=>(t&&Object.keys(t).forEach(n=>{const a=e[n],r=t[n];e[n]="function"==typeof r&&a?(...e)=>{r(...e),a(...e)}:r}),e),pi=e=>{for(;e;){if(!(e=e.parentNode)||e===document.body||!e.parentNode)return;const{overflow:t,overflowX:n,overflowY:a}=getComputedStyle(e);if(/auto|scroll|overlay|hidden/.test(t+a+n))return e}};function gi(e,t){return{"aria-disabled":e||void 0,tabIndex:t?0:-1}}function vi(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return n;return-1}const bi=({block:e,element:n,modifiers:a,className:r})=>t.useMemo(()=>{const t=n?`${e}__${n}`:e;let i=t;a&&Object.keys(a).forEach(e=>{const n=a[e];n&&(i+=` ${t}--${!0===n?e:`${e}-${n}`}`)});let o="function"==typeof r?r(a):r;return"string"==typeof o&&(o=o.trim(),o&&(i+=` ${o}`)),i},[e,n,a,r]),yi="szh-menu",xi=t.createContext(),wi=t.createContext({}),ji=t.createContext({}),ki=t.createContext({}),Ni=t.createContext({}),Si=t.createContext({}),Ci=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),Ti=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),_i=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),Mi=Object.freeze({FIRST:"first",LAST:"last"}),Ri=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),Pi="absolute",Fi="none",Ei={preventScroll:!0},Ii=hi("MenuButton",t.forwardRef(function({className:n,isOpen:a,disabled:r,children:i,...o},s){const l=t.useMemo(()=>({open:a}),[a]);return e.jsx("button",{"aria-haspopup":!0,"aria-expanded":a,"aria-disabled":r||void 0,type:"button",disabled:r,...o,ref:s,className:bi({block:"szh-menu-button",modifiers:l,className:n}),children:i})})),Di=({className:n,containerRef:a,containerProps:r,children:i,isOpen:o,theming:s,transition:l,onClose:c})=>{const f=fi(l,"item");return e.jsx("div",{...mi({onKeyDown:({key:e})=>{if(e===Ci.ESC)ui(c,{key:e,reason:_i.CANCEL})},onBlur:e=>{o&&!e.currentTarget.contains(e.relatedTarget)&&ui(c,{reason:_i.BLUR})}},r),className:bi({block:"szh-menu-container",modifiers:t.useMemo(()=>({theme:s,itemTransition:f}),[s,f]),className:n}),style:{position:"absolute",...r?.style},ref:a,children:i})},Ai=()=>{let e,t=0;return{toggle:e=>{e?t++:t--,t=Math.max(t,0)},on:(n,a,r)=>{t?e||(e=setTimeout(()=>{e=0,a()},n)):r?.()},off:()=>{e&&(clearTimeout(e),e=0)}}},Oi=(e,t)=>Math.round(e)===t?e:t,zi=(e,t,n,a)=>{const r=(e=>{const t=e.getBoundingClientRect();return t.width=Oi(t.width,e.offsetWidth),t.height=Oi(t.height,e.offsetHeight),t})(t),i=e.getBoundingClientRect(),o=n===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:n.getBoundingClientRect(),s=(e=>{if("string"!=typeof e)return{top:0,right:0,bottom:0,left:0};const t=e.trim().split(/\s+/,4).map(parseFloat),n=isNaN(t[0])?0:t[0],a=isNaN(t[1])?n:t[1];return{top:n,right:a,bottom:isNaN(t[2])?n:t[2],left:isNaN(t[3])?a:t[3]}})(a),l=e=>e+i.left-o.left-s.left,c=e=>e+i.left+r.width-o.right+s.right,f=e=>e+i.top-o.top-s.top,u=e=>e+i.top+r.height-o.bottom+s.bottom;return{menuRect:r,containerRect:i,getLeftOverflow:l,getRightOverflow:c,getTopOverflow:f,getBottomOverflow:u,confineHorizontally:e=>{let t=l(e);if(t<0)e-=t;else{const n=c(e);n>0&&(t=l(e-=n),t<0&&(e-=t))}return e},confineVertically:e=>{let t=f(e);if(t<0)e-=t;else{const n=u(e);n>0&&(t=f(e-=n),t<0&&(e-=t))}return e}}},Li=({anchorRect:e,containerRect:t,menuRect:n,placeLeftorRightY:a,placeLeftX:r,placeRightX:i,getLeftOverflow:o,getRightOverflow:s,confineHorizontally:l,confineVertically:c,arrowRef:f,arrow:u,direction:d,position:h})=>{let m,p,g,v=d,b=a;"initial"!==h&&(b=c(b),"anchor"===h&&(b=Math.min(b,e.bottom-t.top),b=Math.max(b,e.top-t.top-n.height))),"left"===v?(m=r,"initial"!==h&&(p=o(m),p<0&&(g=s(i),(g<=0||-p>g)&&(m=i,v="right")))):(m=i,"initial"!==h&&(g=s(m),g>0&&(p=o(r),(p>=0||-p<g)&&(m=r,v="left")))),"auto"===h&&(m=l(m));const y=u?(({arrowRef:e,menuY:t,anchorRect:n,containerRect:a,menuRect:r})=>{let i=n.top-a.top-t+n.height/2;const o=1.25*e.current.offsetHeight;return i=Math.max(o,i),i=Math.min(i,r.height-o),i})({menuY:b,arrowRef:f,anchorRect:e,containerRect:t,menuRect:n}):void 0;return{arrowY:y,x:m,y:b,computedDirection:v}},Bi=({anchorRect:e,containerRect:t,menuRect:n,placeToporBottomX:a,placeTopY:r,placeBottomY:i,getTopOverflow:o,getBottomOverflow:s,confineHorizontally:l,confineVertically:c,arrowRef:f,arrow:u,direction:d,position:h})=>{let m,p,g,v="top"===d?"top":"bottom",b=a;"initial"!==h&&(b=l(b),"anchor"===h&&(b=Math.min(b,e.right-t.left),b=Math.max(b,e.left-t.left-n.width))),"top"===v?(m=r,"initial"!==h&&(p=o(m),p<0&&(g=s(i),(g<=0||-p>g)&&(m=i,v="bottom")))):(m=i,"initial"!==h&&(g=s(m),g>0&&(p=o(r),(p>=0||-p<g)&&(m=r,v="top")))),"auto"===h&&(m=c(m));const y=u?(({arrowRef:e,menuX:t,anchorRect:n,containerRect:a,menuRect:r})=>{let i=n.left-a.left-t+n.width/2;const o=1.25*e.current.offsetWidth;return i=Math.max(o,i),i=Math.min(i,r.width-o),i})({menuX:b,arrowRef:f,anchorRect:e,containerRect:t,menuRect:n}):void 0;return{arrowX:y,x:b,y:m,computedDirection:v}},$i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function Vi(e,t){"function"==typeof e?e(t):e.current=t}const Hi=(e,n)=>t.useMemo(()=>e?n?t=>{Vi(e,t),Vi(n,t)}:e:n,[e,n]),Wi=({ariaLabel:n,menuClassName:a,menuStyle:r,arrow:i,arrowProps:o={},anchorPoint:s,anchorRef:c,containerRef:f,containerProps:u,externalRef:d,parentScrollingRef:h,align:m="start",direction:p="bottom",position:g="auto",overflow:v="visible",setDownOverflow:b,repositionFlag:y,captureFocus:x=!0,state:w,endTransition:j,isDisabled:k,menuItemFocus:N,gap:S=0,shift:C=0,children:T,onClose:_,focusProps:M,...R})=>{const[P,F]=t.useState({x:-9999,y:-9999}),[E,I]=t.useState({}),[D,A]=t.useState(),[O,z]=t.useState(p),[L]=t.useState(Ai),[B,$]=t.useReducer(e=>e+1,1),{transition:V,boundingBoxRef:H,boundingBoxPadding:W,rootMenuRef:U,rootAnchorRef:J,scrollNodesRef:Q,reposition:X,viewScroll:Y,submenuCloseDelay:Z}=t.useContext(Si),{submenuCtx:q,reposSubmenu:K=y}=t.useContext(ji),G=t.useRef(),ee=t.useRef(),te=t.useRef(!1),{hoverItem:ne,dispatch:ae,updateItems:re}=(e=>{const[n,a]=t.useState(),r=t.useRef({items:[],hoverIndex:-1,sorted:!1}).current,i=t.useCallback((t,n)=>{const{items:i}=r;if(t)if(n)i.push(t);else{const n=i.indexOf(t);n>-1&&(i.splice(n,1),t.contains(document.activeElement)&&(e.current.focus(Ei),a()))}else r.items=[];r.hoverIndex=-1,r.sorted=!1},[r,e]),o=t.useCallback((t,n,i)=>{const{items:o,hoverIndex:s}=r,l=()=>{if(r.sorted)return;const t=e.current.querySelectorAll(".szh-menu__item");o.sort((e,n)=>vi(t,e)-vi(t,n)),r.sorted=!0};let c,f=-1;switch(t){case Ti.RESET:break;case Ti.SET:c=n;break;case Ti.UNSET:c=e=>e===n?void 0:e;break;case Ti.FIRST:l(),f=0,c=o[f];break;case Ti.LAST:l(),f=o.length-1,c=o[f];break;case Ti.SET_INDEX:l(),f=i,c=o[f];break;case Ti.INCREASE:l(),f=s,f<0&&(f=o.indexOf(n)),f++,f>=o.length&&(f=0),c=o[f];break;case Ti.DECREASE:l(),f=s,f<0&&(f=o.indexOf(n)),f--,f<0&&(f=o.length-1),c=o[f];break;default:if("production"!==process.env.NODE_ENV)throw new Error(`[React-Menu] Unknown hover action type: ${t}`)}c||(f=-1),a(c),r.hoverIndex=f},[e,r]);return{hoverItem:n,dispatch:o,updateItems:i}})(G),ie=li(w),oe=fi(V,"open"),se=fi(V,"close"),le=Q.current,ce=t.useCallback(e=>{const t=G.current,n=f.current;if(!t||!n)return;const a=c?c.current?.getBoundingClientRect():s?{left:s.x,right:s.x,top:s.y,bottom:s.y,width:0,height:0}:null;if(!a)return void("production"!==process.env.NODE_ENV&&console.warn("[React-Menu] Menu might not be positioned properly as one of the anchorRef or anchorPoint prop should be provided. If `anchorRef` is provided, the anchor must be mounted before menu is open."));le.menu||(le.menu=(H?H.current:pi(U.current))||window);const r=zi(n,t,le.menu,W);let{arrowX:o,arrowY:l,x:u,y:d,computedDirection:h}=(({arrow:e,align:t,direction:n,gap:a,shift:r,position:i,anchorRect:o,arrowRef:s,positionHelpers:l})=>{const{menuRect:c,containerRect:f}=l,u="left"===n||"right"===n;let d=u?a:r,h=u?r:a;if(e){const e=s.current;u?d+=e.offsetWidth:h+=e.offsetHeight}const m=o.left-f.left-c.width-d,p=o.right-f.left+d,g=o.top-f.top-c.height-h,v=o.bottom-f.top+h;let b,y;"end"===t?(b=o.right-f.left-c.width,y=o.bottom-f.top-c.height):"center"===t?(b=o.left-f.left-(c.width-o.width)/2,y=o.top-f.top-(c.height-o.height)/2):(b=o.left-f.left,y=o.top-f.top),b+=d,y+=h;const x={...l,anchorRect:o,placeLeftX:m,placeRightX:p,placeLeftorRightY:y,placeTopY:g,placeBottomY:v,placeToporBottomX:b,arrowRef:s,arrow:e,direction:n,position:i};switch(n){case"left":case"right":return Li(x);default:return Bi(x)}})({arrow:i,align:m,direction:p,gap:S,shift:C,position:g,anchorRect:a,arrowRef:ee,positionHelpers:r});const{menuRect:b}=r,y=b.height;if(!e&&"visible"!==v){const{getTopOverflow:e,getBottomOverflow:t}=r;let n,a;const i=t(d);if(i>0)n=y-i,a=i;else{const t=e(d);t<0&&(n=y+t,a=0-t,n>=0&&(d-=t))}n>=0&&A({height:n,overflowAmt:a})}i&&I({x:o,y:l}),F({x:u,y:d}),z(h)},[i,m,W,p,S,C,g,v,s,c,f,H,U,le]);$i(()=>{ie&&(ce(),te.current&&$()),te.current=ie},[ie,ce,K]),$i(()=>{D&&!b&&(G.current.scrollTop=0)},[D,b]),$i(()=>re,[re]),t.useEffect(()=>{let{menu:e}=le;if(!ie||!e)return;if(e=e.addEventListener?e:window,!le.anchors){le.anchors=[];let t=pi(J&&J.current);for(;t&&t!==e;)le.anchors.push(t),t=pi(t)}let t=Y;if(le.anchors.length&&"initial"===t&&(t="auto"),"initial"===t)return;const n=()=>{"auto"===t?ci(()=>ce(!0)):ui(_,{reason:_i.SCROLL})},a=le.anchors.concat("initial"!==Y?e:[]);return a.forEach(e=>e.addEventListener("scroll",n)),()=>a.forEach(e=>e.removeEventListener("scroll",n))},[J,le,ie,_,Y,ce]);const fe=!!D&&D.overflowAmt>0;t.useEffect(()=>{if(fe||!ie||!h)return;const e=()=>ci(ce),t=h.current;return t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)},[ie,fe,h,ce]),t.useEffect(()=>{if(!ie||"function"!=typeof ResizeObserver||"initial"===X)return;const e=[],t=new ResizeObserver(t=>t.forEach(({target:t})=>{e.indexOf(t)<0?e.push(t):l.flushSync(()=>{ce(),$()})})),n={box:"border-box"};t.observe(G.current,n);const a=c?.current;return a&&t.observe(a,n),()=>t.disconnect()},[ie,X,c,ce]),t.useEffect(()=>{if(!ie)return ae(Ti.RESET),void(se||A());const{position:e,alwaysUpdate:t}=N||{},n=()=>{e===Mi.FIRST?ae(Ti.FIRST):e===Mi.LAST?ae(Ti.LAST):e>=-1&&ae(Ti.SET_INDEX,void 0,e)};if(t)n();else if(x){const e=setTimeout(()=>{const e=G.current;e&&!e.contains(document.activeElement)&&(e.focus(Ei),n())},oe?170:100);return()=>clearTimeout(e)}},[ie,oe,se,x,N,ae]);const ue=t.useMemo(()=>({isParentOpen:ie,submenuCtx:L,dispatch:ae,updateItems:re}),[ie,L,ae,re]);let de,he;D&&(b?he=D.overflowAmt:de=D.height);const me=t.useMemo(()=>({reposSubmenu:B,submenuCtx:L,overflow:v,overflowAmt:he,parentMenuRef:G,parentDir:O}),[B,L,v,he,O]),pe=de>=0?{maxHeight:de,overflow:v}:void 0,ge=t.useMemo(()=>({state:w,align:m,dir:O}),[w,m,O]),ve=t.useMemo(()=>({dir:O}),[O]),be=bi({block:yi,element:"arrow",modifiers:ve,className:o.className}),ye=e.jsxs("ul",{role:"menu","aria-label":n,...gi(k),...mi({onPointerEnter:q?.off,onPointerMove:e=>{e.stopPropagation(),L.on(Z,()=>{ae(Ti.RESET),G.current.focus(Ei)})},onPointerLeave:e=>{e.target===e.currentTarget&&L.off()},onKeyDown:e=>{switch(e.key){case Ci.HOME:ae(Ti.FIRST);break;case Ci.END:ae(Ti.LAST);break;case Ci.UP:ae(Ti.DECREASE,ne);break;case Ci.DOWN:ae(Ti.INCREASE,ne);break;case Ci.SPACE:return void(e.target&&-1!==e.target.className.indexOf(yi)&&e.preventDefault());default:return}e.preventDefault(),e.stopPropagation()},onAnimationEnd:()=>{"closing"===w&&A(),ui(j)}},R),ref:Hi(d,G),className:bi({block:yi,modifiers:ge,className:a}),style:{...r,...pe,margin:0,display:"closed"===w?"none":void 0,position:Pi,left:P.x,top:P.y},children:[i&&e.jsx("li",{"aria-hidden":!0,...o,className:be,style:{display:"block",position:Pi,left:E.x,top:E.y,...o.style},ref:ee}),e.jsx(ji.Provider,{value:me,children:e.jsx(wi.Provider,{value:ue,children:e.jsx(xi.Provider,{value:ne,children:ui(T,ge)})})})]});return u?e.jsx(Di,{...u,isOpen:ie,children:ye}):ye},Ui=t.forwardRef(function({"aria-label":n,className:a,containerProps:r,initialMounted:i,unmountOnClose:o,transition:s,transitionTimeout:c,boundingBoxRef:f,boundingBoxPadding:u,reposition:d="auto",submenuOpenDelay:h=300,submenuCloseDelay:m=150,viewScroll:p="initial",portal:g,theming:v,onItemClick:b,...y},x){const w=t.useRef(null),j=t.useRef({}),{anchorRef:k,state:N,onClose:S}=y,C=t.useMemo(()=>({initialMounted:i,unmountOnClose:o,transition:s,transitionTimeout:c,boundingBoxRef:f,boundingBoxPadding:u,rootMenuRef:w,rootAnchorRef:k,scrollNodesRef:j,reposition:d,viewScroll:p,submenuOpenDelay:h,submenuCloseDelay:m}),[i,o,s,c,k,f,u,d,p,h,m]),T=t.useMemo(()=>({handleClick(e,t){e.stopPropagation||ui(b,e);let n=e.keepOpen;void 0===n&&(n=t&&e.key===Ci.SPACE),n||ui(S,{value:e.value,key:e.key,reason:_i.CLICK})},handleClose(e){ui(S,{key:e,reason:_i.CLICK})}}),[b,S]);if(!N)return null;const _=e.jsx(Si.Provider,{value:C,children:e.jsx(ki.Provider,{value:T,children:e.jsx(Wi,{...y,ariaLabel:n||"Menu",externalRef:x,containerRef:w,containerProps:{className:a,containerRef:w,containerProps:r,theming:v,transition:s,onClose:S}})})});return!0===g&&"undefined"!=typeof document?l.createPortal(_,document.body):g?g.target?l.createPortal(_,g.target):g.stablePosition?null:_:_}),Ji=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],Qi=e=>({_s:e,status:Ji[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),Xi=e=>e?6:5,Yi=(e,t,n,a,r)=>{clearTimeout(a.current);const i=Qi(e);t(i),n.current=i,r&&r({current:i})},Zi=({enter:e=!0,exit:n=!0,preEnter:a,preExit:r,timeout:i,initialEntered:o,mountOnEnter:s,unmountOnExit:l,onStateChange:c}={})=>{const[f,u]=t.useState(()=>Qi(o?2:Xi(s))),d=t.useRef(f),h=t.useRef(),[m,p]=(e=>"object"==typeof e?[e.enter,e.exit]:[e,e])(i),g=t.useCallback(()=>{const e=((e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return Xi(t)}})(d.current._s,l);e&&Yi(e,u,d,h,c)},[c,l]);return[f,t.useCallback(t=>{const i=e=>{switch(Yi(e,u,d,h,c),e){case 1:m>=0&&(h.current=setTimeout(g,m));break;case 4:p>=0&&(h.current=setTimeout(g,p));break;case 0:case 3:h.current=((e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0))(i,e)}},o=d.current.isEnter;"boolean"!=typeof t&&(t=!o),t?!o&&i(e?a?0:1:2):o&&i(n?r?3:4:Xi(l))},[g,c,e,n,a,r,m,p,l]),g]},qi=({initialOpen:e,initialMounted:n,unmountOnClose:a,transition:r,transitionTimeout:i=500,onMenuChange:o}={})=>{const s=fi(r,"open"),l=fi(r,"close"),[{status:c},f,u]=Zi({initialEntered:e,mountOnEnter:!n,unmountOnExit:a,timeout:i,enter:s,exit:l,onStateChange:t.useCallback(({current:{isEnter:e,isResolved:t}})=>{!o||e&&s&&t||!e&&l&&t||o({open:e})},[o,s,l])});return[{state:Ri[c],endTransition:u},f]},Ki=parseInt(t.version)<19,Gi=t.forwardRef(function({"aria-label":n,captureFocus:a,initialOpen:r,menuButton:i,instanceRef:o,onMenuChange:s,...l},c){const[f,u,d]=(e=>{const[n,a]=qi(e),[r,i]=t.useState();return[{menuItemFocus:r,...n},a,(e,t)=>{i({position:e,alwaysUpdate:t}),a(!0)}]})({...l,onMenuChange:s}),{state:h}=f,m=li(h),p=t.useRef(null),g=((e,n)=>{if("production"!==process.env.NODE_ENV&&"function"!=typeof n)throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[a]=t.useState({});return{onMouseDown:()=>{a.v=e&&"closed"!==e},onClick:e=>a.v?a.v=!1:n(!0,e)}})(h,(e,t)=>d(t.detail?void 0:Mi.FIRST)),v=t.useCallback(e=>{u(!1),e.key&&p.current.focus()},[u]),b=ui(i,{open:m});if(!b||!b.type)throw new Error("Menu requires a menuButton prop.");const y={...mi({onKeyDown:e=>{switch(e.key){case Ci.UP:d(Mi.LAST);break;case Ci.DOWN:d(Mi.FIRST);break;default:return}e.preventDefault()},...g},b.props),ref:Hi(Ki?b.ref:b.props.ref,p)};"MenuButton"===b.type[di]&&(y.isOpen=m);const x=t.cloneElement(b,y);return t.useImperativeHandle(o,()=>({openMenu:d,closeMenu:()=>u(!1)})),e.jsxs(t.Fragment,{children:[x,e.jsx(Ui,{...l,...f,"aria-label":n||("string"==typeof b.props.children?b.props.children:"Menu"),anchorRef:p,ref:c,onClose:v})]})}),eo=(e,n,a,r)=>{const[i,o,s]=(e=>{const[n,a]=t.useState(!1);return t.useEffect(()=>{!e&&a(!1)},[e]),[n,()=>!n&&a(!0),()=>a(!1)]})(a),{submenuCloseDelay:l}=t.useContext(Si),{isParentOpen:c,submenuCtx:f,dispatch:u,updateItems:d}=t.useContext(wi),h=()=>{!a&&!r&&u(Ti.SET,e.current)},m=()=>{!r&&u(Ti.UNSET,e.current)};return((e,t,n)=>{$i(()=>{if("production"!==process.env.NODE_ENV&&!n)throw new Error(`[React-Menu] This menu item or submenu should be rendered under a menu: ${t.current.outerHTML}`);if(e)return;const a=t.current;return n(a,!0),()=>{n(a)}},[e,t,n])})(r,e,d),t.useEffect(()=>{a&&c&&n.current&&n.current.focus()},[n,a,c]),{mouseOver:i,setHover:h,onBlur:e=>{a&&!e.currentTarget.contains(e.relatedTarget)&&m()},onPointerMove:e=>{r||(e.stopPropagation(),o(),f.on(l,h,h))},onPointerLeave:(e,t)=>{s(),f.off(),!t&&m()}}},to=((n,a)=>{const r=t.memo(a),i=t.forwardRef((n,a)=>{const i=t.useRef(null);return e.jsx(r,{...n,itemRef:i,externalRef:a,isHovering:t.useContext(xi)===i.current})});return i.displayName=`WithHovering(${n})`,i})("MenuItem",function({className:n,value:a,href:r,type:i,checked:o,disabled:s,children:l,onClick:c,isHovering:f,itemRef:u,externalRef:d,...h}){const m=!!s,{mouseOver:p,setHover:g,...v}=eo(u,u,f,m),b=t.useContext(ki),y=t.useContext(Ni),x="radio"===i,w="checkbox"===i,j=!(!r||m||x||w),k=x?y.value===a:!!w&&!!o,N=e=>{if(m)return e.stopPropagation(),void e.preventDefault();const t={value:a,syntheticEvent:e};void 0!==e.key&&(t.key=e.key),w&&(t.checked=!k),x&&(t.name=y.name),ui(c,t),x&&ui(y.onRadioChange,t),b.handleClick(t,w||x)},S=t.useMemo(()=>({type:i,disabled:m,hover:p||f,checked:k,anchor:j}),[i,m,p,f,k,j]),C=mi({...v,onPointerDown:g,onKeyDown:e=>{if(f)switch(e.key){case Ci.ENTER:e.preventDefault();case Ci.SPACE:j?u.current.click():N(e)}},onClick:N},h),T={role:x?"menuitemradio":w?"menuitemcheckbox":"menuitem","aria-checked":x||w?k:void 0,...gi(m,f),...C,ref:Hi(d,u),className:bi({block:yi,element:"item",modifiers:S,className:n}),children:t.useMemo(()=>ui(l,S),[l,S])};return j?e.jsx("li",{role:Fi,children:e.jsx("a",{href:r,...T})}):e.jsx("li",{...T})}),no=t.memo(t.forwardRef(function({className:t,...n},a){return e.jsx("li",{role:Fi,...n,ref:a,className:bi({block:yi,element:"header",className:t})})}));var ao="canvas-module_canvas__Iiaz4",ro="Highlight-module_highlight__1VV-X";function io(n){const{canvasRef:a,barHeight:r,xyToHighlightData:i,zoom:o}=n,[s,l]=t.useState({height:"0px",visibility:"hidden"});t.useEffect(()=>{l({height:"0px",visibility:"hidden"})},[o]);const c=e=>{const t=i(e.offsetX,e.offsetY);if(t.isJust){const e=t.value;l({visibility:"visible",height:`${r}px`,...e})}else f()},f=()=>{l({...s,visibility:"hidden"})};return t.useEffect(()=>{const e=a.current;return e?(e.addEventListener("mousemove",c),e.addEventListener("mouseout",f),()=>{e.removeEventListener("mousemove",c),e.removeEventListener("mouseout",f)}):()=>{}},[a.current,c,f]),e.jsx("div",{className:ro,style:s,"data-testid":"flamegraph-highlight"})}var oo="ContextMenuHighlight-module_highlightContextMenu__WI1nK";const so={height:"0px",visibility:"hidden"};function lo(n){const{node:a,barHeight:r}=n,[i,o]=t.useState(so);return t.useEffect(()=>{a.match({Nothing:()=>o(so),Just:e=>o({visibility:"visible",height:`${r}px`,...e})})},[a]),e.jsx("div",{className:oo,style:i,"data-testid":"flamegraph-highlight-contextmenu"})}const co={name:"Default",goodColor:r.rgb(0,170,0),neutralColor:r.rgb(148,142,142),badColor:r.rgb(200,0,0),colors:[r.hsl(24,69,60),r.hsl(34,65,65),r.hsl(194,52,61),r.hsl(163,45,55),r.hsl(211,48,60),r.hsl(246,40,65),r.hsl(305,63,79),r.hsl(47,100,73),r.rgb(183,219,171),r.rgb(244,213,152),r.rgb(78,146,249),r.rgb(249,186,143),r.rgb(242,145,145),r.rgb(130,181,216),r.rgb(229,168,226),r.rgb(174,162,224),r.rgb(154,196,138),r.rgb(242,201,109),r.rgb(101,197,219),r.rgb(249,147,78),r.rgb(234,100,96),r.rgb(81,149,206),r.rgb(214,131,206),r.rgb(128,110,183)]},fo={...co,name:"Color Blind",goodColor:r.rgb(26,133,255),neutralColor:r.rgb(148,142,142),badColor:r.rgb(220,50,32)};function uo(){return e.jsxs("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",children:[e.jsx("defs",{}),e.jsx("path",{style:{fill:"#7d7d7f"},d:"M5,19.56c0,5.22,3.54,9.44,7.92,9.44h3.17c4.37,0,7.92-4.23,7.92-9.44v-7.56H5v7.56Z"}),e.jsx("path",{style:{fill:"#7d7d7f"},d:"M14,1h-.82c-4.52,0-8.18,3.73-8.18,8.33v1.67H14V1Z"}),e.jsx("path",{d:"M15.82,1h-.82V11h9v-1.67c0-4.6-3.66-8.33-8.18-8.33Z"})]})}function ho(){return e.jsxs("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",children:[e.jsx("defs",{}),e.jsx("path",{style:{fill:"#7d7d7f"},d:"M24,19.56c0,5.22-3.54,9.44-7.92,9.44h-3.17c-4.37,0-7.92-4.23-7.92-9.44v-7.56H24v7.56Z"}),e.jsx("path",{style:{fill:"#7d7d7f"},d:"M15,1h.82c4.52,0,8.18,3.73,8.18,8.33v1.67H15V1Z"}),e.jsx("path",{d:"M13.18,1h.82V11H5v-1.67c0-4.6,3.66-8.33,8.18-8.33Z"})]})}var mo={tooltip:"Tooltip-module_tooltip__NMZ65",flamegraphDiffTooltip:"Tooltip-module_flamegraphDiffTooltip__Z983o",tooltipName:"Tooltip-module_tooltipName__y4Qs3",functionName:"Tooltip-module_functionName__z9LHO",tooltipTable:"Tooltip-module_tooltipTable__ct3pq",clickInfo:"Tooltip-module_clickInfo__Utux5"};const po={location:"Location",self:"Self",total:"Total",baseline:"Baseline",comparison:"Comparison",diff:"Diff",noItemsFound:"No items found",diffNew:"new",diffRemoved:"removed",tooltipSamples:"Samples:",tooltipUnitTitles:{objects:{percent:"% of objects in RAM",formattedValue:"Objects in RAM",total:"% of total RAM"},goroutines:{percent:"% of goroutines",formattedValue:"Goroutines",total:"% of total goroutines"},bytes:{percent:"% of RAM",formattedValue:"RAM",total:"% of total bytes"},samples:{percent:"Share of CPU",formattedValue:"CPU Time",total:"% of total CPU"},lock_nanoseconds:{percent:"% of Time spent",formattedValue:"Time",total:"% of total seconds"},lock_samples:{percent:"% of contended locks",formattedValue:"Contended locks",total:"% of total locks"},trace_samples:{percent:"% of time",formattedValue:"Samples",total:"% of total samples"},exceptions:{percent:"% of thrown exceptions",formattedValue:"Thrown exceptions",total:"% of total thrown exceptions"},unknown:{percent:"Percentage",formattedValue:"Units",total:"% of total units"}},resetView:"Reset View",collapseNodesAbove:"Collapse nodes above",copyFunctionName:"Copy function name",highlightSimilarNodes:"Highlight similar nodes",clearHighlight:"Clear highlight",openInSandwichView:"Open in sandwich view",showTextTailFirst:"Show text tail first",showTextHeadFirst:"Show text head first",headFirst:"Head first",tailFirst:"Tail first",clickToHighlightNode:"Click to highlight node in flamegraph",rightClickForMoreNodeOptions:"Right click for more node viewing options",viewTable:"Table",viewTableAndFlamegraph:"Table and Flamegraph",viewFlamegraph:"Flamegraph",viewSandwich:"Sandwich",viewGraphviz:"GraphViz",more:"More",diffLegendRemovedLabel:"(-) Removed",diffLegendAddedLabel:"Added (+)",diffLegendSelectPalette:"Select a palette",paletteDefaultName:"Default",paletteColorBlindName:"Color Blind",paletteDefaultDesc:"(green to red)",paletteColorBlindDesc:"(blue to red)",searchPlaceholder:"Search...",syncSearchBars:"Sync Search Bars",unsyncSearchBars:"Unsync Search Bars",focusOnThisFunction:"Focus on this function",tableDoubleClickToFocus:"Double-click to focus in flamegraph",tableRightClickForOptions:"Right-click for more options"},go={...po,location:"位置",self:"自身",total:"总计",baseline:"基线",comparison:"对比",diff:"差异",noItemsFound:"没有找到任何条目",diffNew:"新增",diffRemoved:"移除",tooltipSamples:"样本数:",tooltipUnitTitles:{objects:{percent:"RAM 中对象占比",formattedValue:"RAM 中对象数",total:"占总 RAM 的百分比"},goroutines:{percent:"协程占比",formattedValue:"协程数量",total:"占协程总数的百分比"},bytes:{percent:"RAM 占比",formattedValue:"RAM",total:"占总字节数的百分比"},samples:{percent:"CPU 占比",formattedValue:"CPU 时间",total:"占总 CPU 的百分比"},lock_nanoseconds:{percent:"耗时占比",formattedValue:"时间",total:"占总秒数的百分比"},lock_samples:{percent:"锁竞争事件占比",formattedValue:"锁竞争事件数",total:"占锁竞争总数的百分比"},trace_samples:{percent:"时间占比",formattedValue:"样本数",total:"占样本总数的百分比"},exceptions:{percent:"异常抛出占比",formattedValue:"异常数",total:"占异常总数的百分比"},unknown:{percent:"百分比",formattedValue:"单位",total:"占单位总量的百分比"}},resetView:"重置视图",collapseNodesAbove:"收起上方节点",copyFunctionName:"复制函数名",highlightSimilarNodes:"高亮相似节点",clearHighlight:"清除高亮",openInSandwichView:"在 sandwich 视图中查看",showTextTailFirst:"显示文本尾部优先",showTextHeadFirst:"显示文本头部优先",headFirst:"从头部开始显示",tailFirst:"从尾部开始显示",clickToHighlightNode:"点击火焰图节点高亮",rightClickForMoreNodeOptions:"右键查看更多节点选项",viewTable:"表格",viewTableAndFlamegraph:"表格 + 火焰图",viewFlamegraph:"火焰图",viewSandwich:"三明治视图",viewGraphviz:"调用图 (GraphViz)",more:"更多",diffLegendRemovedLabel:"(-) 减少",diffLegendAddedLabel:"增加 (+)",diffLegendSelectPalette:"选择颜色方案",paletteDefaultName:"默认",paletteColorBlindName:"色盲模式",paletteDefaultDesc:"(绿色 → 红色)",paletteColorBlindDesc:"(蓝色 → 红色)",searchPlaceholder:"搜索...",syncSearchBars:"同步搜索栏",unsyncSearchBars:"取消同步搜索栏",focusOnThisFunction:"聚焦到此函数",tableDoubleClickToFocus:"双击可聚焦到火焰图",tableRightClickForOptions:"右键查看更多选项"},vo=t.createContext(po),bo=({messages:n,children:a})=>{const r=t.useMemo(()=>{var e;return{...po,...n,tooltipUnitTitles:{...po.tooltipUnitTitles,...null!==(e=null==n?void 0:n.tooltipUnitTitles)&&void 0!==e?e:{}}}},[n]);return e.jsx(vo.Provider,{value:r,children:a})},yo=()=>t.useContext(vo);function xo(e){if(null==e)return null;if("number"==typeof e)return{value:e,unit:"",hasLessThan:!1,sign:""};let t=String(e).trim().replace(/\u2212/g,"-");if(!t)return null;let n=!1;t.startsWith("<")&&(n=!0,t=t.slice(1).trim());const a=t.match(/^([+\-]?)(\d*\.?\d+)\s*(.*)$/);if(!a)return null;const r=a[1]||"",i=a[2],o=(a[3]||"").trim(),s=parseFloat(i);return Number.isFinite(s)?{value:s,unit:o,hasLessThan:n,sign:r}:null}function wo(e,t=!1){if(!e||!t)return e;const n=xo(e);if(!n)return e;const{hasLessThan:a,unit:r,sign:i,value:o}=n;let s=r;const l=r.toLowerCase();"ms"===l?s="毫秒":"μs"===l||"µs"===l||"us"===l?s="微秒":"second"===l||"seconds"===l?s="秒":"minute"===l||"minutes"===l||"min"===l||"mins"===l?s="分钟":"hour"===l||"hours"===l?s="小时":"day"===l||"days"===l?s="天":"month"===l||"months"===l?s="月":"year"!==l&&"years"!==l||(s="年");const c=String(e).trim().replace(/\u2212/g,"-").match(/^<?\s*([+\-]?)(\d*\.?\d+)/),f=c&&c[2]?`${c[1]||""}${c[2]}`:`${i}${Math.abs(o)}`,u=a?"< ":"";return s?`${u}${f} ${s}`.trim():`${u}${f}`.trim()}function jo(e){if(!e)return null;const t=e.replace(/,/g,"").trim();if(!t)return null;const n=Number(t);return Number.isFinite(n)?n:null}function ko(e,t){if(!e||!t)return;const n=e.trim().replace(/\u2212/g,"-");return n&&"0"!==n?n.startsWith("+")?t.badColor.rgb().string():n.startsWith("-")?t.goodColor.rgb().string():void 0:void 0}function No(e,t,n){return n<t?t:Math.max(t,Math.min(n,e))}function So(e,t,n,a){const r=window.innerWidth,i=window.innerHeight,o=Math.max(0,n||0),s=Math.max(0,a||0);let l=e+12,c=t+20;return l+o+8>r&&(l=e-o-12),c+s+8>i&&(c=t-s-20),l=No(l,8,r-o-8),c=No(c,8,i-s-8),{left:l,top:c}}function Co({shouldShowFooter:n=!0,shouldShowTitle:a=!0,dataSourceRef:r,clickInfoSide:i,setTooltipContent:o,palette:s}){const l=t.useRef(null),c=t.useRef(null),[f,u]=t.useState({title:{text:"",diff:{text:"",color:""}},tooltipData:[]}),[d,h]=t.useState(),m=()=>{h({visibility:"hidden"}),u({title:{text:"",diff:{text:"",color:""}},tooltipData:[]})},p=t.useCallback(e=>{if(!l.current)throw new Error("Missing tooltipElement");c.current={x:e.clientX,y:e.clientY},o(u,m,e);const t=l.current.clientWidth||0,n=l.current.clientHeight||0,{left:a,top:r}=So(e.clientX,e.clientY,t,n);h({top:r,left:a,visibility:"visible"})},[o]);return t.useEffect(()=>{const e=r.current;return e?(e.addEventListener("mousemove",p),e.addEventListener("mouseout",m),()=>{e.removeEventListener("mousemove",p),e.removeEventListener("mouseout",m)}):()=>{}},[r.current,p]),t.useLayoutEffect(()=>{if(!l.current)return;if(!c.current)return;if(0===f.tooltipData.length)return;const{x:e,y:t}=c.current,n=l.current.getBoundingClientRect(),{left:a,top:r}=So(e,t,n.width,n.height);h(e=>e&&e.left===a&&e.top===r&&"visible"===e.visibility?e:{...e||{},left:a,top:r,visibility:"visible"})},[f.tooltipData.length,f.title.text]),e.jsx("div",{"data-testid":"tooltip",className:Or(mo.tooltip,{[mo.flamegraphDiffTooltip]:f.tooltipData.length>1}),style:{...d,textAlign:"center"},ref:l,children:f.tooltipData.length>0&&e.jsxs(e.Fragment,{children:[a&&e.jsx("div",{className:mo.tooltipName,"data-testid":"tooltip-title",children:f.title.text}),e.jsx("div",{className:mo.functionName,"data-testid":"tooltip-function-name",children:f.title.text}),f.title.diff.text.length>0?e.jsx(To,{data:f.tooltipData,diff:f.title.diff,palette:s}):e.jsx(To,{data:f.tooltipData,palette:s}),n&&e.jsx(_o,{clickInfoSide:i})]})})}function To({data:t,diff:n,palette:a}){const r=yo(),[i,o]=t,s="Location"!==r.location;if(!i)return null;let l;switch(i.tooltipType){case"flamegraph":l=()=>{const t=o&&function(e,t){const n=xo(e),a=xo(t);if(!n||!a)return"";const r=a.value-n.value;if(0===r)return"0";const i=r>0?"+":"-",o=Math.abs(r);let s;s=o>=100?o.toFixed(0):o>=10?o.toFixed(1):o.toFixed(2);const l=n.unit||a.unit;return l?`${i}${s} ${l}`:`${i}${s}`}(i.formattedValue,o.formattedValue),l=wo(t,s),c=o&&function(e,t){const n=jo(e),a=jo(t);if(null==n||null==a)return"";const r=a-n;return 0===r?"0":`${r>0?"+":"-"}${Math.abs(r).toLocaleString()}`}(i.samples,o.samples),f=wo(i.formattedValue,s),u=wo(null==o?void 0:o.formattedValue,s),d=null==n?void 0:n.color,h=ko(t,a),m=ko(c,a);return e.jsxs(e.Fragment,{children:[o&&e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("th",{children:r.baseline}),e.jsx("th",{children:r.comparison}),e.jsx("th",{children:r.diff})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsxs("td",{children:[r.tooltipUnitTitles[i.units].percent,":"]}),e.jsx("td",{children:i.percent}),o&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:o.percent}),e.jsx("td",{style:{textAlign:"center"},children:n&&e.jsx("span",{"data-testid":"tooltip-diff",style:{color:d},children:n.text})})]})]}),e.jsxs("tr",{children:[e.jsxs("td",{children:[r.tooltipUnitTitles[i.units].formattedValue,":"]}),e.jsx("td",{children:f}),o&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:u}),e.jsx("td",{style:{textAlign:"center"},children:l&&e.jsx("span",{"data-testid":"tooltip-time-diff",style:h?{color:h}:void 0,children:l})})]})]}),e.jsxs("tr",{children:[e.jsx("td",{children:r.tooltipSamples}),e.jsx("td",{children:i.samples}),o&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:o.samples}),e.jsx("td",{style:{textAlign:"center"},children:c&&e.jsx("span",{"data-testid":"tooltip-samples-diff",style:m?{color:m}:void 0,children:c})})]})]})]})]})};break;case"table":l=()=>e.jsxs(e.Fragment,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("td",{}),e.jsxs("td",{children:[r.self," (",r.tooltipUnitTitles[i.units].total,")"]}),e.jsxs("td",{children:[r.total," (",r.tooltipUnitTitles[i.units].total,")"]})]})}),e.jsx("tbody",{children:e.jsxs("tr",{children:[e.jsxs("td",{children:[r.tooltipUnitTitles[i.units].formattedValue,":"]}),e.jsx("td",{children:i.self}),e.jsx("td",{children:i.total})]})})]});break;default:l=()=>null}return e.jsx("table",{"data-testid":"tooltip-table",className:Or(mo.tooltipTable,{[mo[`${i.tooltipType}${o?"Diff":""}`]]:i.tooltipType}),style:{textAlign:"center",margin:"0 auto"},children:l()})}function _o({clickInfoSide:t}){const n=yo();let a;switch(t){case"right":a=e.jsxs(e.Fragment,{children:[e.jsx(uo,{}),e.jsx("span",{children:n.rightClickForMoreNodeOptions})]});break;case"left":a=e.jsxs(e.Fragment,{children:[e.jsx(ho,{}),e.jsx("span",{children:n.clickToHighlightNode})]});break;default:a=e.jsx(e.Fragment,{})}return e.jsx("div",{"data-testid":"tooltip-footer",className:mo.clickInfo,children:a})}function Mo(n){const{format:a,canvasRef:r,xyToData:i,numTicks:o,sampleRate:s,units:l,leftTicks:c,rightTicks:f,palette:u}=n,d=yo(),h=t.useCallback((e,t,n)=>{const r=pr(o,s,l),h=i(n.offsetX,n.offsetY);let m;if(h.isJust)switch(m=h.value,m.format){case"single":{const t={percent:dr(m.total/o),samples:"trace_samples"===l?"":ur(m.total),units:l,formattedValue:r.format(m.total,s),tooltipType:"flamegraph"};e({title:{text:m.name,diff:{text:"",color:""}},tooltipData:[t]});break}case"double":{if("single"===a)throw new Error("props format is 'single' but it has been mapped to 'double'");const t=Ro({formatter:r,sampleRate:s,totalLeft:m.totalLeft,leftTicks:c,totalRight:m.totalRight,rightTicks:f,title:m.name,units:l},u,d);e({title:t.title,tooltipData:t.tooltipData});break}default:throw new Error(`Unsupported format: '${m.format}'`)}else t()},[o,s,l,c,f,u,i,a,d]);return e.jsx(Co,{dataSourceRef:r,clickInfoSide:"right",setTooltipContent:h,palette:u})}function Ro({formatter:e,sampleRate:t,totalLeft:n,leftTicks:a,totalRight:r,rightTicks:i,title:o,units:s},l=co,c){var f,u;const d=r/i,h=hr(n/a),m=hr(d),p={percent:`${h}%`,samples:ur(n),units:s,formattedValue:e.format(n,t),tooltipType:"flamegraph"},g={percent:`${m}%`,samples:ur(r),units:s,formattedValue:e.format(r,t),tooltipType:"flamegraph"},v=mr(h,m);let b="";v>0?b=l.badColor.rgb().string():v<0&&(b=l.goodColor.rgb().string());let y="";return n?r?v>0?y=`+${v.toFixed(2)}%`:v<0&&(y=`${v.toFixed(2)}%`):y=null!==(u=null==c?void 0:c.diffRemoved)&&void 0!==u?u:"移除":y=null!==(f=null==c?void 0:c.diffNew)&&void 0!==f?f:"新增",{title:{text:o,diff:{text:y,color:b}},tooltipData:[p,g]}}var Po="ContextMenu-module_dummy__5n2-N";function Fo(n){const[a,r]=qi({transition:!0}),[i,o]=t.useState({x:0,y:0}),{canvasRef:s}=n,[l,c]=t.useState([]),{xyToMenuItems:f,onClose:u,onOpen:d}=n;return t.useEffect(()=>{r(!1);const e=s.current;if(!e)return()=>{};const t=e=>{e.preventDefault();const t=f(e.offsetX,e.offsetY);c(t);const n=e.clientX,a=e.clientY+20;o({x:n,y:a}),r(!0),d(e.offsetX,e.offsetY)};return e.addEventListener("contextmenu",t),()=>{e.removeEventListener("contextmenu",t)}},[f]),e.jsx(Ui,{...a,className:Po,anchorPoint:i,onClose:()=>{r(!1),u()},children:l})}var Eo="LogoLink-module_logoLink__oWRri";function Io(){return e.jsxs("a",{className:Eo,href:"https://github.com/pyroscope-io/pyroscope/",target:"_blank",rel:"noreferrer",children:[e.jsxs("svg",{width:"22px",height:"22px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("defs",{children:e.jsxs("radialGradient",{cx:"49.4236252%",cy:"92.6627823%",fx:"49.4236252%",fy:"92.6627823%",r:"195.066755%",gradientTransform:"translate(0.494236,0.926628),scale(1.000000,0.735610),rotate(-90.000000),translate(-0.494236,-0.926628)",id:"radialGradient-1",children:[e.jsx("stop",{stopColor:"#FFB90C",offset:"0%"}),e.jsx("stop",{stopColor:"#F9243A",offset:"38.390924%"}),e.jsx("stop",{stopColor:"#F9243A",offset:"50.5405%"}),e.jsx("stop",{stopColor:"#B51424",offset:"73.98091%"}),e.jsx("stop",{stopColor:"#B51424",offset:"100%"})]})}),e.jsx("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:e.jsx("g",{id:"fire-part",transform:"translate(148.516736, 0.000000)",fillRule:"nonzero",children:e.jsxs("g",{id:"whole-thing",transform:"translate(363.983264, 495.000000) scale(-1, 1) rotate(-180.000000) translate(-363.983264, -495.000000) translate(0.483264, 0.000000)",children:[e.jsx("g",{id:"g70",transform:"translate(-0.000091, 0.685815)",fill:"url(#radialGradient-1)",children:e.jsx("path",{d:"M65.3646667,571.739321 L65.4492471,571.698868 C19.5139147,505.999969 -5.32464048,424.477859 1.04305801,336.877516 L1.04305801,336.877516 C14.0321963,158.179446 159.192462,13.7596653 338.059844,1.5917266 L338.059844,1.5917266 C419.418369,-3.93888015 495.500283,17.3823334 558.456522,57.4611191 L558.456522,57.4611191 L481.301947,162.097965 C437.516468,136.521928 399.367671,129.590556 363.486536,130.155994 L363.486536,130.155994 C234.497143,130.155994 129.556988,235.032238 129.556988,363.946998 L129.556988,363.946998 C129.556988,492.865683 234.497143,597.738003 363.486536,597.738003 L363.486536,597.738003 C492.483783,597.738003 597.427864,492.865683 597.427864,363.946998 L597.427864,363.946998 C597.41276,304.634864 581.39383,255.677522 530.630465,199.668053 L607.770843,95.1329436 C680.936847,161.576603 726.932594,257.364176 726.932594,363.946998 L726.932594,363.946998 C726.932594,458.031616 691.13483,543.75602 632.416071,608.271816 L632.416071,608.271816 L632.416071,608.275741 L533.597728,748.122808 L428.601388,617.203806 L434.703262,646.563419 C459.453008,765.59222 433.664131,889.543925 363.49439,988.853335 L363.49439,988.853335 L65.3646667,571.723019 L65.3646667,571.739321 Z",id:"path84"})}),e.jsx("g",{id:"blue",transform:"translate(191.447039, 191.331780)",children:e.jsxs("g",{id:"g88",transform:"translate(-0.000063, 0.685930)",children:[e.jsx("g",{id:"g94",transform:"translate(0.177296, 0.699054)",fill:"#3EC1D3",children:e.jsx("path",{d:"M171.862466,343.697728 C77.0961324,343.697728 -0.00497405932,266.647602 -0.00497405932,171.934957 C-0.00497405932,77.2182874 77.0961324,0.168162396 171.862466,0.168162396 C266.632828,0.168162396 343.741988,77.2182874 343.741988,171.934957 C343.741988,266.647602 266.632828,343.697728 171.862466,343.697728",id:"path96"})}),e.jsx("g",{id:"g98",transform:"translate(29.362379, 172.629585)",fill:"#FFFFFF",children:e.jsx("path",{d:"M22.8397982,0 L0.671669409,0 C0.671669409,78.2496309 64.380874,141.920035 142.678189,141.920035 L142.678189,119.765407 C76.6007327,119.765407 22.8397982,66.0372141 22.8397982,0",id:"path100"})})]})})]})})})]}),e.jsx("span",{children:"Pyroscope"})]})}const Do=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:e.jsx("g",{id:"z9nPJj.tif",children:e.jsx("path",{d:"M62,13.33V49.68c-.02,.05-.04,.11-.05,.16-.3,2.66-2.66,5.16-6.08,5.15-15.92,0-31.83,0-47.75-.01-.54,0-1.1-.06-1.62-.19-2.73-.69-4.52-3.09-4.52-5.88,0-12,.01-23.56,.01-34.9,0-.29,.01-.57,.05-.86,.35-2.3,1.62-3.91,3.84-4.75,.6-.23,1.27-.28,1.9-.41,16.13,0,32.27,0,48.4,0,.09,.01,.17,.04,.26,.04,2.66,.21,4.8,2.01,5.4,4.57,.06,.24,.1,.48,.14,.72ZM28.99,31.81c0-3.92-.01-7.91-.01-11.81H8c0,3.91,.01,7.9,.01,11.81H28.99Zm27,0c0-3.92-.01-7.92-.01-11.81h-20.97c0,3.92,.01,7.91,.01,11.81h20.97Zm-47.98,5.19c0,3.7,0,8,0,11.69v.31H29v-12m6.01,.04c0,3.93-.01,8.05-.01,11.96h20.99c0-.12,0-.22,0-.31,0-3.7,0-7.99,0-11.69"})})}),Ao=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:[e.jsx("path",{d:"M31,8.04H7.62c-.61,.13-1.26,.18-1.84,.41-2.14,.84-3.37,2.45-3.71,4.75-.04,.28-.05,.57-.05,.86,0,11.32-.02,22.88-.01,34.87,0,2.79,1.73,5.18,4.37,5.88,.51,.13,1.04,.19,1.57,.19,7.69,0,15.38,0,23.07,0V8.04Zm-2.92,11.99c0,3.9,.01,7.89,.01,11.8H7.82c0-3.9-.01-7.89-.01-11.8H28.08ZM7.82,49.01v-.31c0-3.69,0-7.99,0-11.68H28.1v11.99H7.82Z"}),e.jsx("path",{d:"M58.67,7.9h-25.67V55h2.9c1.84,0,2.9-1.55,2.9-3.45V27.14h11.6v6.37c0,1.91,1.49,3.45,3.33,3.45h4.94c1.84,0,3.33-1.55,3.33-3.45V11.35c0-1.91-1.49-3.45-3.33-3.45Z"})]}),Oo=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:e.jsx("path",{d:"M5.44,8H58.56c1.9,0,3.44,1.54,3.44,3.44v6.16s0,9.6,0,9.6v6.36c0,1.9-1.54,3.44-3.44,3.44h-5.11c-1.9,0-3.44-1.54-3.44-3.44v-6.36h-12s0,9.8,0,9.8v9s0,5.56,0,5.56c0,1.9-1.1,3.44-3,3.44h-6c-1.9,0-3-1.54-3-3.44v-5.56h-9c-1.99,0-3-1.52-3-3.4v-5.6H5.44c-1.9,0-3.44-1.74-3.44-3.64v-6.16s0-9.6,0-9.6v-6.16c0-1.9,1.54-3.44,3.44-3.44Z"})}),zo=({fill:t})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:t,children:[e.jsx("g",{id:"shape_squiggle",children:e.jsx("path",{d:"M60,38.42c-4.62,0-6.97-2.64-8.86-4.75-1.81-2.03-2.86-3.08-5.13-3.08s-3.32,1.06-5.13,3.08c-1.89,2.12-4.24,4.75-8.86,4.75s-6.97-2.64-8.87-4.75c-1.81-2.03-2.86-3.08-5.14-3.08s-3.33,1.06-5.14,3.08c-1.89,2.12-4.25,4.75-8.87,4.75-1.38,0-2.5-1.12-2.5-2.5s1.12-2.5,2.5-2.5c2.28,0,3.33-1.06,5.14-3.09,1.89-2.12,4.25-4.75,8.87-4.75s6.97,2.64,8.87,4.75c1.81,2.03,2.86,3.09,5.14,3.09s3.32-1.06,5.13-3.08c1.89-2.12,4.24-4.75,8.86-4.75s6.97,2.64,8.86,4.75c1.81,2.03,2.86,3.08,5.13,3.08,1.38,0,2.5,1.12,2.5,2.5s-1.12,2.5-2.5,2.5Z"})}),e.jsxs("g",{id:"Layer_4",children:[e.jsx("rect",{x:"2",y:"8",width:"60",height:"14",rx:"3.94",ry:"3.94"}),e.jsx("path",{d:"M58.06,41h-18.64c-1.58,0-3.14,.42-4.5,1.22l-6.88,4.02c-1.87,1.09-4.19,1.09-6.06,0l-6.88-4.02c-1.37-.8-2.92-1.22-4.5-1.22H5.94c-2.18,0-3.94,1.76-3.94,3.94v7.12c0,2.18,1.76,3.94,3.94,3.94H58.06c2.18,0,3.94-1.76,3.94-3.94v-7.12c0-2.18-1.76-3.94-3.94-3.94Z"})]})]}),Lo=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:[e.jsx("g",{id:"ab_shape",children:e.jsxs("g",{children:[e.jsx("path",{d:"M16.71,41l-.42-2.45h-.16c-1.63,1.95-4.06,2.95-6.91,2.95-4.8,0-7.86-3.45-7.86-7.45,0-6.4,6.01-9.3,14.13-9.3v-.4c0-1.5-.84-3.2-4.38-3.2-2.48,0-4.9,.75-6.54,1.7l-1.42-4.75c1.69-.9,5.01-2.1,9.44-2.1,8.33,0,10.65,4.95,10.65,10.45v8.7c0,2.25,.11,4.4,.37,5.85h-6.91Zm-.95-11.7c-3.64,0-6.91,.9-6.91,4,0,2.1,1.37,3,3,3s3.22-1.05,3.74-2.6c.11-.35,.16-.8,.16-1.2v-3.2Z"}),e.jsx("path",{d:"M29.36,41c.11-1.79,.21-4.62,.21-7.25V6h7.7v13.46h.11c1.42-1.99,3.8-3.28,7.06-3.28,5.85,0,9.7,5.01,9.65,12.16,0,8.69-5.22,13.16-10.81,13.16-2.74,0-5.22-.99-6.91-3.72h-.11l-.37,3.23h-6.54Zm7.91-9.83c0,.55,.05,.99,.16,1.39,.58,1.94,2.16,3.18,4.01,3.18,3.11,0,4.9-2.53,4.9-7,0-3.92-1.58-6.8-4.9-6.8-1.85,0-3.53,1.39-3.95,3.28-.16,.4-.21,.94-.21,1.44v4.52Z"})]})}),e.jsx("g",{id:"arrows",children:e.jsx("polygon",{points:"62 54 52 45 52 51 35 51 35 57 52 57 52 63 62 54"})})]}),Bo=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:[e.jsx("g",{id:"yz_shape",children:e.jsxs("g",{children:[e.jsx("path",{d:"M22.75,13l3.43,12.39c.42,1.47,.84,3.2,1.16,4.52h.11c.32-1.32,.69-3.05,1-4.47l2.9-12.44h8.01l-5.8,17.16c-2.95,8.33-5.17,12.54-8.07,15.23-2.58,2.39-5.43,3.3-7.17,3.55l-1.85-6.3c1.11-.25,2.32-.76,3.48-1.52,1.16-.71,2.32-1.88,2.95-3.05,.26-.41,.42-.76,.42-1.12,0-.31-.05-.66-.26-1.17L14.32,13h8.43Z"}),e.jsx("path",{d:"M41.62,33.46l7.59-10.16c1.27-1.57,2.37-2.95,3.58-4.27v-.15h-10.33v-5.89h19.45l-.05,4.57-7.28,9.8c-1.21,1.57-2.48,3.15-3.69,4.42v.1h11.33v5.94h-20.61v-4.37Z"})]})}),e.jsx("g",{id:"arrows",children:e.jsx("polygon",{points:"12 51 12 45 2 54 12 63 12 57 29 57 29 51 12 51"})})]});var $o="Header-module_flamegraphHeader__nIrXP",Vo="Header-module_row__P7-2L",Ho="Header-module_flamegraphTitle__sjsvB";function Wo(t){const{format:n,units:a,toolbarVisible:r}=t,i={objects:"number of objects in RAM per function",goroutines:"number of goroutines",bytes:"amount of RAM per function",samples:"CPU time per function",lock_nanoseconds:"time spent waiting on locks per function",lock_samples:"number of contended locks per function",trace_samples:"aggregated span duration",exceptions:"number of exceptions thrown",unknown:""},o=r&&"single"===n?e.jsx("div",{className:`${Vo} ${Ho}`,role:"heading","aria-level":2,children:i[a]&&e.jsxs(e.Fragment,{children:["Frame width represents ",i[a]]})}):null;return o?e.jsx("div",{className:$o,children:e.jsx("div",{children:o})}):null}var Uo="styles-module_flamegraphPane__ejguD",Jo="styles-module_fitModeItem__0UBwN",Qo="styles-module_sandwichItem__WYvnd";function Xo(a){const r=t.useRef(null),i=t.useRef(),l=yo(),[c,f]=t.useState(n.Maybe.nothing()),{flamebearer:u,focusedNode:d,fitMode:h,updateFitMode:m,highlightQuery:p,zoom:g,toolbarVisible:v,headerVisible:b=!0,disableClick:y=!1,showSingleLevel:x=!1,showCredit:w,setActiveItem:j,selectedItem:k,updateView:N,enableSandwichView:S=!0}=a,{onZoom:C,onReset:T,isDirty:_,onFocusOnNode:M}=a,{"data-testid":R}=a,{palette:P,setPalette:F}=a,E=t.useCallback(s(()=>{O()},50),[]);o(r,()=>{i&&E()});const I=(e,t)=>B().xyToBar(e,t).map(e=>({left:L().offsetLeft+e.x,top:L().offsetTop+e.y,width:e.width})),D=t.useCallback((t,n)=>{const a=_(),r=B().xyToBar(t,n),i=r.isJust?r.value.name:"";return[e.jsxs(to,{disabled:!a,onClick:T,children:[e.jsx(Qa,{icon:Qr.faRedo}),l.resetView]},"reset"),(()=>{const t=r.mapOrElse(()=>!1,()=>!0),n=r.mapOrElse(()=>()=>{},e=>M.bind(null,e.i,e.j));return e.jsxs(to,{disabled:!t,onClick:n,children:[e.jsx(Qa,{icon:si.faCompressAlt}),l.collapseNodesAbove]},"focus")})(),e.jsxs(to,{onClick:()=>{navigator.clipboard&&navigator.clipboard.writeText(i)},children:[e.jsx(Qa,{icon:qr.faCopy}),l.copyFunctionName]},"copy"),(()=>{const t=k.isJust&&k.value===i?l.clearHighlight:l.highlightSimilarNodes;return e.jsxs(to,{onClick:()=>{j({name:i})},children:[e.jsx(Qa,{icon:ni.faHighlighter}),t]},"highlight-similar-nodes")})(),(()=>{if(!N||!S)return null;return e.jsxs(to,{className:Qo,onClick:()=>{N("sandwich"),j({name:i})},children:[e.jsx(zo,{fill:"black"}),l.openInSandwichView]},"open-in-sandwich-view")})(),(()=>{const t=h===wr;return e.jsxs(to,{className:Jo,onClick:()=>{m(t?xr:wr)},children:[t?e.jsx(Bo,{}):e.jsx(Lo,{}),t?l.showTextTailFirst:l.showTextHeadFirst]},"fit-mode")})()].filter(Boolean)},[i,k,h,_,T,M,j,N,l,S]),A=()=>{if(r.current){const e=new Dr(u,r.current,d,h,p,g,P);i.current=e}};t.useEffect(()=>{A(),O()},[P]),t.useEffect(()=>{A(),O()},[r.current,u,d,h,p,g]);const O=()=>{var e,t,n;null===(e=null==r?void 0:r.current)||void 0===e||e.setAttribute("data-state","rendering"),null===(t=null==i?void 0:i.current)||void 0===t||t.render(),null===(n=null==r?void 0:r.current)||void 0===n||n.setAttribute("data-state","rendered")},z=!u||u&&u.names.length<=1,L=()=>{if(!r.current)throw new Error("Missing canvas");return r.current},B=()=>{if(!i.current)throw new Error("Missing canvas");return i.current};return e.jsxs("div",{"data-testid":"flamegraph-view",className:Or(Uo,{"vertical-orientation":"double"===u.format}),children:[b&&e.jsx(Wo,{format:u.format,units:u.units,toolbarVisible:v}),e.jsx("div",{"data-testid":R,style:{opacity:z&&!x?0:1},children:e.jsx("canvas",{height:"0","data-testid":"flamegraph-canvas","data-highlightquery":p,className:Or("flamegraph-canvas",ao),ref:r,onClick:y?void 0:e=>{const t=B().xyToBar(e.nativeEvent.offsetX,e.nativeEvent.offsetY);t.match({Nothing:()=>{},Just:e=>{g.match({Nothing:()=>{C(t)},Just:a=>{e.i===a.i&&e.j===a.j?C(n.Maybe.nothing()):C(t)}})}})}})}),w?e.jsx(Io,{}):"",i&&r&&e.jsx(io,{barHeight:cr,canvasRef:r,zoom:g,xyToHighlightData:I}),i&&e.jsx(lo,{barHeight:cr,node:c}),i&&e.jsx(Mo,{format:u.format,canvasRef:r,xyToData:(e,t)=>B().xyToBar(e,t),numTicks:u.numTicks,sampleRate:u.sampleRate,leftTicks:"double"===u.format?u.leftTicks:0,rightTicks:"double"===u.format?u.rightTicks:0,units:u.units,palette:P}),!y&&i&&r&&e.jsx(Fo,{canvasRef:r,xyToMenuItems:D,onClose:()=>{f(n.Maybe.nothing())},onOpen:(e,t)=>{f(I(e,t))}})]})}var Yo,Zo={exports:{}};
|
|
12
|
+
function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function x(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,T(a.key),a)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=M(e))||t){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function j(e,t,n){return(t=T(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){j(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return s}}(e,t)||M(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||M(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function _(e){return _="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)}function M(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}var R=function(){},P={},F={},E=null,I={mark:R,measure:R};try{"undefined"!=typeof window&&(P=window),"undefined"!=typeof document&&(F=document),"undefined"!=typeof MutationObserver&&(E=MutationObserver),"undefined"!=typeof performance&&(I=performance)}catch(oe){}var D=(P.navigator||{}).userAgent,A=void 0===D?"":D,O=P,L=F,z=E,B=I;O.document;var $,V=!!L.documentElement&&!!L.head&&"function"==typeof L.addEventListener&&"function"==typeof L.createElement,H=~A.indexOf("MSIE")||~A.indexOf("Trident/"),W={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},U=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],J="classic",Q="duotone",X="sharp",Y="sharp-duotone",Z="chisel",q="etch",K="jelly",G="jelly-duo",ee="jelly-fill",te="notdog",ne="notdog-duo",ae="slab",re="slab-press",oe="thumbprint",ie="utility",se="utility-duo",le="utility-fill",ce="whiteboard",fe=[J,Q,X,Y,Z,q,K,G,ee,te,ne,ae,re,oe,ie,se,le,ce];j(j(j(j(j(j(j(j(j(j($={},J,"Classic"),Q,"Duotone"),X,"Sharp"),Y,"Sharp Duotone"),Z,"Chisel"),q,"Etch"),K,"Jelly"),G,"Jelly Duo"),ee,"Jelly Fill"),te,"Notdog"),j(j(j(j(j(j(j(j($,ne,"Notdog Duo"),ae,"Slab"),re,"Slab Press"),oe,"Thumbprint"),ie,"Utility"),se,"Utility Duo"),le,"Utility Fill"),ce,"Whiteboard");var ue=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),de=["fak","fa-kit","fakd","fa-kit-duotone"],he={fak:"kit","fa-kit":"kit"},me={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};j(j({},"kit","Kit"),"kit-duotone","Kit Duotone");var pe,ge={kit:"fak"},ve={"kit-duotone":"fakd"},be="duotone-group",ye="swap-opacity",xe="primary",we="secondary";j(j(j(j(j(j(j(j(j(j(pe={},"classic","Classic"),"duotone","Duotone"),"sharp","Sharp"),"sharp-duotone","Sharp Duotone"),"chisel","Chisel"),"etch","Etch"),"jelly","Jelly"),"jelly-duo","Jelly Duo"),"jelly-fill","Jelly Fill"),"notdog","Notdog"),j(j(j(j(j(j(j(j(pe,"notdog-duo","Notdog Duo"),"slab","Slab"),"slab-press","Slab Press"),"thumbprint","Thumbprint"),"utility","Utility"),"utility-duo","Utility Duo"),"utility-fill","Utility Fill"),"whiteboard","Whiteboard");j(j({},"kit","Kit"),"kit-duotone","Kit Duotone");var je={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},ke=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"]),Se=[1,2,3,4,5,6,7,8,9,10],Ne=Se.concat([11,12,13,14,15,16,17,18,19,20]),Ce=[].concat(C(Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]})),["solid","regular","light","thin","duotone","brands","semibold"],["aw","fw","pull-left","pull-right"],["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",be,ye,xe,we]).concat(Se.map(function(e){return"".concat(e,"x")})).concat(Ne.map(function(e){return"w-".concat(e)})),Te="___FONT_AWESOME___",_e="svg-inline--fa",Me="data-fa-i2svg",Re="data-fa-pseudo-element",Pe="data-prefix",Fe="data-icon",Ee="fontawesome-i2svg",Ie=["HTML","HEAD","STYLE","SCRIPT"],De=["::before","::after",":before",":after"],Ae=function(){try{return"production"===process.env.NODE_ENV}catch(e){return!1}}();function Oe(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[J]}})}var Le=S({},W);Le[J]=S(S(S(S({},{"fa-duotone":"duotone"}),W[J]),he),me);var ze=Oe(Le),Be=S({},{chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}});Be[J]=S(S(S(S({},{duotone:"fad"}),Be[J]),ge),ve);var $e=Oe(Be),Ve=S({},je);Ve[J]=S(S({},Ve[J]),{fak:"fa-kit"});var He=Oe(Ve),We=S({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}});We[J]=S(S({},We[J]),{"fa-kit":"fak"}),Oe(We);var Ue=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Je="fa-layers-text",Qe=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i;Oe(S({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}}));var Xe=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ye={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Ze=[].concat(C(["kit"]),C(Ce)),qe=O.FontAwesomeConfig||{};if(L&&"function"==typeof L.querySelector){[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(e){var t=N(e,2),n=t[0],a=t[1],r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=L.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=r&&(qe[a]=r)})}var Ke={styleDefault:"solid",familyDefault:J,cssPrefix:"fa",replacementClass:_e,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};qe.familyPrefix&&(qe.cssPrefix=qe.familyPrefix);var Ge=S(S({},Ke),qe);Ge.autoReplaceSvg||(Ge.observeMutations=!1);var et={};Object.keys(Ke).forEach(function(e){Object.defineProperty(et,e,{enumerable:!0,set:function(t){Ge[e]=t,tt.forEach(function(e){return e(et)})},get:function(){return Ge[e]}})}),Object.defineProperty(et,"familyPrefix",{enumerable:!0,set:function(e){Ge.cssPrefix=e,tt.forEach(function(e){return e(et)})},get:function(){return Ge.cssPrefix}}),O.FontAwesomeConfig=et;var tt=[];var nt=16,at={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function rt(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function ot(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function it(e){return e.classList?ot(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function st(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function lt(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function ct(e){return e.size!==at.size||e.x!==at.x||e.y!==at.y||e.rotate!==at.rotate||e.flipX||e.flipY}function ft(){var e="fa",t=_e,n=et.cssPrefix,a=et.replacementClass,r=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";\n --fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";\n --fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";\n --fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";\n --fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";\n --fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";\n --fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";\n --fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";\n --fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";\n --fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";\n --fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";\n --fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";\n --fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";\n --fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";\n}\n\n.svg-inline--fa {\n box-sizing: content-box;\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285714em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left,\n.svg-inline--fa .fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-pull-right,\n.svg-inline--fa .fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.fa-layers .svg-inline--fa {\n inset: 0;\n margin: auto;\n position: absolute;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xs {\n font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-sm {\n font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-lg {\n font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xl {\n font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-2xl {\n font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-width-auto {\n --fa-width: auto;\n}\n\n.fa-fw,\n.fa-width-fixed {\n --fa-width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-inline-start: var(--fa-li-margin, 2.5em);\n padding-inline-start: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n/* Heads Up: Bordered Icons will not be supported in the future!\n - This feature will be deprecated in the next major release of Font Awesome (v8)!\n - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.\n*/\n/* Notes:\n* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)\n* --@{v.$css-prefix}-border-padding =\n ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it\'s vertical alignment)\n ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)\n*/\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.0625em);\n box-sizing: var(--fa-border-box-sizing, content-box);\n padding: var(--fa-border-padding, 0.1875em 0.25em);\n}\n\n.fa-pull-left,\n.fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right,\n.fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n .fa-bounce,\n .fa-fade,\n .fa-beat-fade,\n .fa-flip,\n .fa-pulse,\n .fa-shake,\n .fa-spin,\n .fa-spin-pulse {\n animation: none !important;\n transition: none !important;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.svg-inline--fa.fa-inverse {\n fill: var(--fa-inverse, #fff);\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n line-height: 2em;\n position: relative;\n vertical-align: middle;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.svg-inline--fa.fa-stack-1x {\n --fa-width: 1.25em;\n height: 1em;\n width: var(--fa-width);\n}\n.svg-inline--fa.fa-stack-2x {\n --fa-width: 2.5em;\n height: 2em;\n width: var(--fa-width);\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n inset: 0;\n margin: auto;\n position: absolute;\n z-index: var(--fa-stack-z-index, auto);\n}';if(n!==e||a!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),i=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");r=r.replace(o,".".concat(n,"-")).replace(i,"--".concat(n,"-")).replace(s,".".concat(a))}return r}var ut=!1;function dt(){et.autoAddCss&&!ut&&(!function(e){if(e&&V){var t=L.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=L.head.childNodes,a=null,r=n.length-1;r>-1;r--){var o=n[r],i=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(a=o)}L.head.insertBefore(t,a)}}(ft()),ut=!0)}var ht={mixout:function(){return{dom:{css:ft,insertCss:dt}}},hooks:function(){return{beforeDOMElementCreation:function(){dt()},beforeI2svg:function(){dt()}}}},mt=O||{};mt[Te]||(mt[Te]={}),mt[Te].styles||(mt[Te].styles={}),mt[Te].hooks||(mt[Te].hooks={}),mt[Te].shims||(mt[Te].shims=[]);var pt=mt[Te],gt=[],vt=function(){L.removeEventListener("DOMContentLoaded",vt),bt=1,gt.map(function(e){return e()})},bt=!1;function yt(e){var t=e.tag,n=e.attributes,a=void 0===n?{}:n,r=e.children,o=void 0===r?[]:r;return"string"==typeof e?st(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(st(e[n]),'" ')},"").trim()}(a),">").concat(o.map(yt).join(""),"</").concat(t,">")}function xt(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}V&&((bt=(L.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(L.readyState))||L.addEventListener("DOMContentLoaded",vt));var wt=function(e,t,n,a){var r,o,i,s=Object.keys(e),l=s.length,c=t;for(void 0===n?(r=1,i=e[s[0]]):(r=0,i=n);r<l;r++)i=c(i,e[o=s[r]],o,e);return i};function jt(e){return 1!==C(e).length?null:e.codePointAt(0).toString(16)}function kt(e){return Object.keys(e).reduce(function(t,n){var a=e[n];return!!a.icon?t[a.iconName]=a.icon:t[n]=a,t},{})}function St(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,a=void 0!==n&&n,r=kt(t);"function"!=typeof pt.hooks.addPack||a?pt.styles[e]=S(S({},pt.styles[e]||{}),r):pt.hooks.addPack(e,kt(t)),"fas"===e&&St("fa",t)}var Nt=pt.styles,Ct=pt.shims,Tt=Object.keys(He),_t=Tt.reduce(function(e,t){return e[t]=Object.keys(He[t]),e},{}),Mt=null,Rt={},Pt={},Ft={},Et={},It={};function Dt(e,t){var n,a=t.split("-"),r=a[0],o=a.slice(1).join("-");return r!==e||""===o||(n=o,~Ze.indexOf(n))?null:o}var At,Ot=function(){var e=function(e){return wt(Nt,function(t,n,a){return t[a]=wt(n,e,{}),t},{})};Rt=e(function(e,t,n){(t[3]&&(e[t[3]]=n),t[2])&&t[2].filter(function(e){return"number"==typeof e}).forEach(function(t){e[t.toString(16)]=n});return e}),Pt=e(function(e,t,n){(e[n]=n,t[2])&&t[2].filter(function(e){return"string"==typeof e}).forEach(function(t){e[t]=n});return e}),It=e(function(e,t,n){var a=t[2];return e[n]=n,a.forEach(function(t){e[t]=n}),e});var t="far"in Nt||et.autoFetchSvg,n=wt(Ct,function(e,n){var a=n[0],r=n[1],o=n[2];return"far"!==r||t||(r="fas"),"string"==typeof a&&(e.names[a]={prefix:r,iconName:o}),"number"==typeof a&&(e.unicodes[a.toString(16)]={prefix:r,iconName:o}),e},{names:{},unicodes:{}});Ft=n.names,Et=n.unicodes,Mt=Vt(et.styleDefault,{family:et.familyDefault})};function Lt(e,t){return(Rt[e]||{})[t]}function zt(e,t){return(It[e]||{})[t]}function Bt(e){return Ft[e]||{prefix:null,iconName:null}}function $t(){return Mt}At=function(e){Mt=Vt(e.styleDefault,{family:et.familyDefault})},tt.push(At),Ot();function Vt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?J:t,a=ze[n][e];if(n===Q&&!e)return"fad";var r=$e[n][e]||$e[n][a],o=e in pt.styles?e:null;return r||o||null}function Ht(e){return e.sort().filter(function(e,t,n){return n.indexOf(e)===t})}var Wt=ke.concat(de);function Ut(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,n=void 0!==t&&t,a=null,r=Ht(e.filter(function(e){return Wt.includes(e)})),o=Ht(e.filter(function(e){return!Wt.includes(e)})),i=N(r.filter(function(e){return a=e,!U.includes(e)}),1)[0],s=void 0===i?null:i,l=function(e){var t=J,n=Tt.reduce(function(e,t){return e[t]="".concat(et.cssPrefix,"-").concat(t),e},{});return fe.forEach(function(a){(e.includes(n[a])||e.some(function(e){return _t[a].includes(e)}))&&(t=a)}),t}(r),c=S(S({},function(e){var t=[],n=null;return e.forEach(function(e){var a=Dt(et.cssPrefix,e);a?n=a:e&&t.push(e)}),{iconName:n,rest:t}}(o)),{},{prefix:Vt(s,{family:l})});return S(S(S({},c),function(e){var t=e.values,n=e.family,a=e.canonical,r=e.givenPrefix,o=void 0===r?"":r,i=e.styles,s=void 0===i?{}:i,l=e.config,c=void 0===l?{}:l,f=n===Q,u=t.includes("fa-duotone")||t.includes("fad"),d="duotone"===c.familyDefault,h="fad"===a.prefix||"fa-duotone"===a.prefix;!f&&(u||d||h)&&(a.prefix="fad");(t.includes("fa-brands")||t.includes("fab"))&&(a.prefix="fab");if(!a.prefix&&Jt.includes(n)){if(Object.keys(s).find(function(e){return Qt.includes(e)})||c.autoFetchSvg){var m=ue.get(n).defaultShortPrefixId;a.prefix=m,a.iconName=zt(a.prefix,a.iconName)||a.iconName}}"fa"!==a.prefix&&"fa"!==o||(a.prefix=$t()||"fas");return a}({values:e,family:l,styles:Nt,config:et,canonical:c,givenPrefix:a})),function(e,t,n){var a=n.prefix,r=n.iconName;if(e||!a||!r)return{prefix:a,iconName:r};var o="fa"===t?Bt(r):{},i=zt(a,r);r=o.iconName||i||r,"far"!==(a=o.prefix||a)||Nt.far||!Nt.fas||et.autoFetchSvg||(a="fas");return{prefix:a,iconName:r}}(n,a,c))}var Jt=fe.filter(function(e){return e!==J||e!==Q}),Qt=Object.keys(je).filter(function(e){return e!==J}).map(function(e){return Object.keys(je[e])}).flat();var Xt=function(){return x(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}},[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];var r=n.reduce(this._pullDefinitions,{});Object.keys(r).forEach(function(t){e.definitions[t]=S(S({},e.definitions[t]||{}),r[t]),St(t,r[t]);var n=He[J][t];n&&St(n,r[t]),Ot()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(function(t){var a=n[t],r=a.prefix,o=a.iconName,i=a.icon,s=i[2];e[r]||(e[r]={}),s.length>0&&s.forEach(function(t){"string"==typeof t&&(e[r][t]=i)}),e[r][o]=i}),e}}])}(),Yt=[],Zt={},qt={},Kt=Object.keys(qt);function Gt(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];return(Zt[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(a))}),t}function en(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];(Zt[e]||[]).forEach(function(e){e.apply(null,n)})}function tn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return qt[e]?qt[e].apply(null,t):void 0}function nn(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||$t();if(t)return t=zt(n,t)||t,xt(an.definitions,n,t)||xt(pt.styles,n,t)}var an=new Xt,rn={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return V?(en("beforeI2svg",e),tn("pseudoElements2svg",e),tn("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.autoReplaceSvgRoot;!1===et.autoReplaceSvg&&(et.autoReplaceSvg=!0),et.observeMutations=!0,e=function(){sn({autoReplaceSvgRoot:n}),en("watch",t)},V&&(bt?setTimeout(e,0):gt.push(e))}},on={noAuto:function(){et.autoReplaceSvg=!1,et.observeMutations=!1,en("noAuto")},config:et,dom:rn,parse:{icon:function(e){if(null===e)return null;if("object"===_(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:zt(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=Vt(e[0]);return{prefix:n,iconName:zt(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(et.cssPrefix,"-"))>-1||e.match(Ue))){var a=Ut(e.split(" "),{skipLookups:!0});return{prefix:a.prefix||$t(),iconName:zt(a.prefix,a.iconName)||a.iconName}}if("string"==typeof e){var r=$t();return{prefix:r,iconName:zt(r,e)||e}}}},library:an,findIconDefinition:nn,toHtml:yt},sn=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?L:e;(Object.keys(pt.styles).length>0||et.autoFetchSvg)&&V&&et.autoReplaceSvg&&on.dom.i2svg({node:t})};function ln(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return yt(e)})}}),Object.defineProperty(e,"node",{get:function(){if(V){var t=L.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function cn(e){var t=e.icons,n=t.main,a=t.mask,r=e.prefix,o=e.iconName,i=e.transform,s=e.symbol,l=e.maskId,c=e.extra,f=e.watchable,u=void 0!==f&&f,d=a.found?a:n,h=d.width,m=d.height,p=[et.replacementClass,o?"".concat(et.cssPrefix,"-").concat(o):""].filter(function(e){return-1===c.classes.indexOf(e)}).filter(function(e){return""!==e||!!e}).concat(c.classes).join(" "),g={children:[],attributes:S(S({},c.attributes),{},{"data-prefix":r,"data-icon":o,class:p,role:c.attributes.role||"img",viewBox:"0 0 ".concat(h," ").concat(m)})};(function(e){return["aria-label","aria-labelledby","title","role"].some(function(t){return t in e})})(c.attributes)||c.attributes["aria-hidden"]||(g.attributes["aria-hidden"]="true"),u&&(g.attributes[Me]="");var v=S(S({},g),{},{prefix:r,iconName:o,main:n,mask:a,maskId:l,transform:i,symbol:s,styles:S({},c.styles)}),b=a.found&&n.found?tn("generateAbstractMask",v)||{children:[],attributes:{}}:tn("generateAbstractIcon",v)||{children:[],attributes:{}},y=b.children,x=b.attributes;return v.children=y,v.attributes=x,s?function(e){var t=e.prefix,n=e.iconName,a=e.children,r=e.attributes,o=e.symbol,i=!0===o?"".concat(t,"-").concat(et.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:S(S({},r),{},{id:i}),children:a}]}]}(v):function(e){var t=e.children,n=e.main,a=e.mask,r=e.attributes,o=e.styles,i=e.transform;if(ct(i)&&n.found&&!a.found){var s={x:n.width/n.height/2,y:.5};r.style=lt(S(S({},o),{},{"transform-origin":"".concat(s.x+i.x/16,"em ").concat(s.y+i.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}(v)}function fn(e){var t=e.content,n=e.width,a=e.height,r=e.transform,o=e.extra,i=e.watchable,s=void 0!==i&&i,l=S(S({},o.attributes),{},{class:o.classes.join(" ")});s&&(l[Me]="");var c=S({},o.styles);ct(r)&&(c.transform=function(e){var t=e.transform,n=e.width,a=void 0===n?16:n,r=e.height,o=void 0===r?16:r,i="";return i+=H?"translate(".concat(t.x/nt-a/2,"em, ").concat(t.y/nt-o/2,"em) "):"translate(calc(-50% + ".concat(t.x/nt,"em), calc(-50% + ").concat(t.y/nt,"em)) "),i+="scale(".concat(t.size/nt*(t.flipX?-1:1),", ").concat(t.size/nt*(t.flipY?-1:1),") "),i+"rotate(".concat(t.rotate,"deg) ")}({transform:r,width:n,height:a}),c["-webkit-transform"]=c.transform);var f=lt(c);f.length>0&&(l.style=f);var u=[];return u.push({tag:"span",attributes:l,children:[t]}),u}var un=pt.styles;function dn(e){var t=e[0],n=e[1],a=N(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(et.cssPrefix,"-").concat(Ye.GROUP)},children:[{tag:"path",attributes:{class:"".concat(et.cssPrefix,"-").concat(Ye.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(et.cssPrefix,"-").concat(Ye.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var hn={found:!1,width:512,height:512};function mn(e,t){var n=t;return"fa"===t&&null!==et.styleDefault&&(t=$t()),new Promise(function(a,r){if("fa"===n){var o=Bt(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&un[t]&&un[t][e])return a(dn(un[t][e]));!function(e,t){Ae||et.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),a(S(S({},hn),{},{icon:et.showMissingIcons&&e&&tn("missingIconAbstract")||{}}))})}var pn=function(){},gn=et.measurePerformance&&B&&B.mark&&B.measure?B:{mark:pn,measure:pn},vn='FA "7.1.0"',bn=function(e){gn.mark("".concat(vn," ").concat(e," ends")),gn.measure("".concat(vn," ").concat(e),"".concat(vn," ").concat(e," begins"),"".concat(vn," ").concat(e," ends"))},yn=function(e){return gn.mark("".concat(vn," ").concat(e," begins")),function(){return bn(e)}},xn=function(){};function wn(e){return"string"==typeof(e.getAttribute?e.getAttribute(Me):null)}function jn(e){return L.createElementNS("http://www.w3.org/2000/svg",e)}function kn(e){return L.createElement(e)}function Sn(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?jn:kn:t;if("string"==typeof e)return L.createTextNode(e);var a=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(t){a.setAttribute(t,e.attributes[t])}),(e.children||[]).forEach(function(e){a.appendChild(Sn(e,{ceFn:n}))}),a}var Nn={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(Sn(e),t)}),null===t.getAttribute(Me)&&et.keepOriginalSource){var n=L.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~it(t).indexOf(et.replacementClass))return Nn.replace(e);var a=new RegExp("".concat(et.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var r=n[0].attributes.class.split(" ").reduce(function(e,t){return t===et.replacementClass||t.match(a)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=r.toSvg.join(" "),0===r.toNode.length?t.removeAttribute("class"):t.setAttribute("class",r.toNode.join(" "))}var o=n.map(function(e){return yt(e)}).join("\n");t.setAttribute(Me,""),t.innerHTML=o}};function Cn(e){e()}function Tn(e,t){var n="function"==typeof t?t:xn;if(0===e.length)n();else{var a=Cn;"async"===et.mutateApproach&&(a=O.requestAnimationFrame||Cn),a(function(){var t=!0===et.autoReplaceSvg?Nn.replace:Nn[et.autoReplaceSvg]||Nn.replace,a=yn("mutate");e.map(t),a(),n()})}}var _n=!1;function Mn(){_n=!0}function Rn(){_n=!1}var Pn=null;function Fn(e){if(z&&et.observeMutations){var t=e.treeCallback,n=void 0===t?xn:t,a=e.nodeCallback,r=void 0===a?xn:a,o=e.pseudoElementsCallback,i=void 0===o?xn:o,s=e.observeMutationsRoot,l=void 0===s?L:s;Pn=new z(function(e){if(!_n){var t=$t();ot(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!wn(e.addedNodes[0])&&(et.searchPseudoElements&&i(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&et.searchPseudoElements&&i([e.target],!0),"attributes"===e.type&&wn(e.target)&&~Xe.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Pe):null,n=e.getAttribute?e.getAttribute(Fe):null;return t&&n}(e.target)){var a=Ut(it(e.target)),o=a.prefix,s=a.iconName;e.target.setAttribute(Pe,o||t),s&&e.target.setAttribute(Fe,s)}else(l=e.target)&&l.classList&&l.classList.contains&&l.classList.contains(et.replacementClass)&&r(e.target);var l})}}),V&&Pn.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function En(e){var t,n,a=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),o=void 0!==e.innerText?e.innerText.trim():"",i=Ut(it(e));return i.prefix||(i.prefix=$t()),a&&r&&(i.prefix=a,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&o.length>0&&(i.iconName=(t=i.prefix,n=e.innerText,(Pt[t]||{})[n]||Lt(i.prefix,jt(e.innerText)))),!i.iconName&&et.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function In(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=En(e),a=n.iconName,r=n.prefix,o=n.rest,i=function(e){return ot(e.attributes).reduce(function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e},{})}(e),s=Gt("parseNodeAttributes",{},e),l=t.styleParser?function(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(e,t){var n=t.split(":"),a=n[0],r=n.slice(1);return a&&r.length>0&&(e[a]=r.join(":").trim()),e},{})),n}(e):[];return S({iconName:a,prefix:r,transform:at,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:i}},s)}var Dn=pt.styles;function An(e){var t="nest"===et.autoReplaceSvg?In(e,{styleParser:!1}):In(e);return~t.extra.classes.indexOf(Je)?tn("generateLayersText",e,t):tn("generateSvgReplacementMutation",e,t)}function On(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!V)return Promise.resolve();var n=L.documentElement.classList,a=function(e){return n.add("".concat(Ee,"-").concat(e))},r=function(e){return n.remove("".concat(Ee,"-").concat(e))},o=et.autoFetchSvg?[].concat(C(de),C(ke)):U.concat(Object.keys(Dn));o.includes("fa")||o.push("fa");var i=[".".concat(Je,":not([").concat(Me,"])")].concat(o.map(function(e){return".".concat(e,":not([").concat(Me,"])")})).join(", ");if(0===i.length)return Promise.resolve();var s=[];try{s=ot(e.querySelectorAll(i))}catch(e){}if(!(s.length>0))return Promise.resolve();a("pending"),r("complete");var l=yn("onTree"),c=s.reduce(function(e,t){try{var n=An(t);n&&e.push(n)}catch(e){Ae||"MissingIcon"===e.name&&console.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(c).then(function(n){Tn(n,function(){a("active"),a("complete"),r("pending"),"function"==typeof t&&t(),l(),e()})}).catch(function(e){l(),n(e)})})}function Ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;An(e).then(function(e){e&&Tn([e],t)})}var zn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,a=void 0===n?at:n,r=t.symbol,o=void 0!==r&&r,i=t.mask,s=void 0===i?null:i,l=t.maskId,c=void 0===l?null:l,f=t.classes,u=void 0===f?[]:f,d=t.attributes,h=void 0===d?{}:d,m=t.styles,p=void 0===m?{}:m;if(e){var g=e.prefix,v=e.iconName,b=e.icon;return ln(S({type:"icon"},e),function(){return en("beforeDOMElementCreation",{iconDefinition:e,params:t}),cn({icons:{main:dn(b),mask:s?dn(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:v,transform:S(S({},at),a),symbol:o,maskId:c,extra:{attributes:h,styles:p,classes:u}})})}},Bn={mixout:function(){return{icon:(e=zn,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(t||{}).icon?t:nn(t||{}),r=n.mask;return r&&(r=(r||{}).icon?r:nn(r||{})),e(a,S(S({},n),{},{mask:r}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=On,e.nodeCallback=Ln,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?L:t,a=e.callback;return On(n,void 0===a?function(){}:a)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,a=t.prefix,r=t.transform,o=t.symbol,i=t.mask,s=t.maskId,l=t.extra;return new Promise(function(t,c){Promise.all([mn(n,a),i.iconName?mn(i.iconName,i.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(i){var c=N(i,2),f=c[0],u=c[1];t([e,cn({icons:{main:f,mask:u},prefix:a,iconName:n,transform:r,symbol:o,maskId:s,extra:l,watchable:!0})])}).catch(c)})},e.generateAbstractIcon=function(e){var t,n=e.children,a=e.attributes,r=e.main,o=e.transform,i=lt(e.styles);return i.length>0&&(a.style=i),ct(o)&&(t=tn("generateAbstractTransformGrouping",{main:r,transform:o,containerWidth:r.width,iconWidth:r.width})),n.push(t||r.icon),{children:n,attributes:a}}}},$n={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,a=void 0===n?[]:n;return ln({type:"layer"},function(){en("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e(function(e){Array.isArray(e)?e.map(function(e){n=n.concat(e.abstract)}):n=n.concat(e.abstract)}),[{tag:"span",attributes:{class:["".concat(et.cssPrefix,"-layers")].concat(C(a)).join(" ")},children:n}]})}}}},Vn={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.title;var n=t.classes,a=void 0===n?[]:n,r=t.attributes,o=void 0===r?{}:r,i=t.styles,s=void 0===i?{}:i;return ln({type:"counter",content:e},function(){return en("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.extra,a=S(S({},n.attributes),{},{class:n.classes.join(" ")}),r=lt(n.styles);r.length>0&&(a.style=r);var o=[];return o.push({tag:"span",attributes:a,children:[t]}),o}({content:e.toString(),extra:{attributes:o,styles:s,classes:["".concat(et.cssPrefix,"-layers-counter")].concat(C(a))}})})}}}},Hn={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,a=void 0===n?at:n,r=t.classes,o=void 0===r?[]:r,i=t.attributes,s=void 0===i?{}:i,l=t.styles,c=void 0===l?{}:l;return ln({type:"text",content:e},function(){return en("beforeDOMElementCreation",{content:e,params:t}),fn({content:e,transform:S(S({},at),a),extra:{attributes:s,styles:c,classes:["".concat(et.cssPrefix,"-layers-text")].concat(C(o))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.transform,a=t.extra,r=null,o=null;if(H){var i=parseInt(getComputedStyle(e).fontSize,10),s=e.getBoundingClientRect();r=s.width/i,o=s.height/i}return Promise.resolve([e,fn({content:e.innerHTML,width:r,height:o,transform:n,extra:a,watchable:!0})])}}},Wn=new RegExp('"',"ug"),Un=[1105920,1112319],Jn=S(S(S(S({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),Qn=Object.keys(Jn).reduce(function(e,t){return e[t.toLowerCase()]=Jn[t],e},{}),Xn=Object.keys(Qn).reduce(function(e,t){var n=Qn[t];return e[t]=n[900]||C(Object.entries(n))[0][1],e},{});function Yn(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(function(a,r){if(null!==e.getAttribute(n))return a();var o,i,s,l=ot(e.children).filter(function(e){return e.getAttribute(Re)===t})[0],c=O.getComputedStyle(e,t),f=c.getPropertyValue("font-family"),u=f.match(Qe),d=c.getPropertyValue("font-weight"),h=c.getPropertyValue("content");if(l&&!u)return e.removeChild(l),a();if(u&&"none"!==h&&""!==h){var m=c.getPropertyValue("content"),p=function(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),a=parseInt(t),r=isNaN(a)?"normal":a;return(Qn[n]||{})[r]||Xn[n]}(f,d),g=function(e){return jt(C(e.replace(Wn,""))[0]||"")}(m),v=u[0].startsWith("FontAwesome"),b=function(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content").replace(Wn,""),a=n.codePointAt(0),r=a>=Un[0]&&a<=Un[1],o=2===n.length&&n[0]===n[1];return r||o||t}(c),y=Lt(p,g),x=y;if(v){var w=(i=Et[o=g],s=Lt("fas",o),i||(s?{prefix:"fas",iconName:s}:null)||{prefix:null,iconName:null});w.iconName&&w.prefix&&(y=w.iconName,p=w.prefix)}if(!y||b||l&&l.getAttribute(Pe)===p&&l.getAttribute(Fe)===x)a();else{e.setAttribute(n,x),l&&e.removeChild(l);var j={iconName:null,prefix:null,transform:at,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},k=j.extra;k.attributes[Re]=t,mn(y,p).then(function(r){var o=cn(S(S({},j),{},{icons:{main:r,mask:{prefix:null,iconName:null,rest:[]}},prefix:p,iconName:x,extra:k,watchable:!0})),i=L.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(i,e.firstChild):e.appendChild(i),i.outerHTML=o.map(function(e){return yt(e)}).join("\n"),e.removeAttribute(n),a()}).catch(r)}}else a()})}function Zn(e){return Promise.all([Yn(e,"::before"),Yn(e,"::after")])}function qn(e){return!(e.parentNode===document.head||~Ie.indexOf(e.tagName.toUpperCase())||e.getAttribute(Re)||e.parentNode&&"svg"===e.parentNode.tagName)}var Kn=function(e){return!!e&&De.some(function(t){return e.includes(t)})},Gn=function(e){if(!e)return[];var t=new Set,n=e.split(/,(?![^()]*\))/).map(function(e){return e.trim()});n=n.flatMap(function(e){return e.includes("(")?e:e.split(",").map(function(e){return e.trim()})});var a,r=w(n);try{for(r.s();!(a=r.n()).done;){var o=a.value;if(Kn(o)){var i=De.reduce(function(e,t){return e.replace(t,"")},o);""!==i&&"*"!==i&&t.add(i)}}}catch(e){r.e(e)}finally{r.f()}return t};function ea(e){if(V){var t;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])t=e;else if(et.searchPseudoElementsFullScan)t=e.querySelectorAll("*");else{var n,a=new Set,r=w(document.styleSheets);try{for(r.s();!(n=r.n()).done;){var o=n.value;try{var i,s=w(o.cssRules);try{for(s.s();!(i=s.n()).done;){var l,c=i.value,f=w(Gn(c.selectorText));try{for(f.s();!(l=f.n()).done;){var u=l.value;a.add(u)}}catch(e){f.e(e)}finally{f.f()}}}catch(e){s.e(e)}finally{s.f()}}catch(e){et.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(o.href," (").concat(e.message,')\nIf it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.'))}}}catch(e){r.e(e)}finally{r.f()}if(!a.size)return;var d=Array.from(a).join(", ");try{t=e.querySelectorAll(d)}catch(e){}}return new Promise(function(e,n){var a=ot(t).filter(qn).map(Zn),r=yn("searchPseudoElements");Mn(),Promise.all(a).then(function(){r(),Rn(),e()}).catch(function(){r(),Rn(),n()})})}}var ta={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=ea,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?L:t;et.searchPseudoElements&&ea(n)}}},na=!1,aa=function(e){return e.toLowerCase().split(" ").reduce(function(e,t){var n=t.toLowerCase().split("-"),a=n[0],r=n.slice(1).join("-");if(a&&"h"===r)return e.flipX=!0,e;if(a&&"v"===r)return e.flipY=!0,e;if(r=parseFloat(r),isNaN(r))return e;switch(a){case"grow":e.size=e.size+r;break;case"shrink":e.size=e.size-r;break;case"left":e.x=e.x-r;break;case"right":e.x=e.x+r;break;case"up":e.y=e.y-r;break;case"down":e.y=e.y+r;break;case"rotate":e.rotate=e.rotate+r}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},ra={mixout:function(){return{parse:{transform:function(e){return aa(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=aa(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,a=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(a/2," 256)")},i="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),c={outer:o,inner:{transform:"".concat(i," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(r/2*-1," -256)")}};return{tag:"g",attributes:S({},c.outer),children:[{tag:"g",attributes:S({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:S(S({},t.icon.attributes),c.path)}]}]}}}},oa={x:0,y:0,width:"100%",height:"100%"};function ia(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var sa={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),a=n?Ut(n.split(" ").map(function(e){return e.trim()})):{prefix:null,iconName:null,rest:[]};return a.prefix||(a.prefix=$t()),e.mask=a,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,a=e.attributes,r=e.main,o=e.mask,i=e.maskId,s=e.transform,l=r.width,c=r.icon,f=o.width,u=o.icon,d=function(e){var t=e.transform,n=e.containerWidth,a=e.iconWidth,r={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(o," ").concat(i," ").concat(s)},path:{transform:"translate(".concat(a/2*-1," -256)")}}}({transform:s,containerWidth:f,iconWidth:l}),h={tag:"rect",attributes:S(S({},oa),{},{fill:"white"})},m=c.children?{children:c.children.map(ia)}:{},p={tag:"g",attributes:S({},d.inner),children:[ia(S({tag:c.tag,attributes:S(S({},c.attributes),d.path)},m))]},g={tag:"g",attributes:S({},d.outer),children:[p]},v="mask-".concat(i||rt()),b="clip-".concat(i||rt()),y={tag:"mask",attributes:S(S({},oa),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,g]},x={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(t=u,"g"===t.tag?t.children:[t])},y]};return n.push(x,{tag:"rect",attributes:S({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(v,")")},oa)}),{children:n,attributes:a}}}},la={provides:function(e){var t=!1;O.matchMedia&&(t=O.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:S(S({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var r=S(S({},a),{},{attributeName:"opacity"}),o={tag:"circle",attributes:S(S({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:S(S({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:S(S({},r),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:S(S({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:S(S({},r),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:S(S({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:S(S({},r),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var n=t.mixoutsTo;Yt=e,Zt={},Object.keys(qt).forEach(function(e){-1===Kt.indexOf(e)&&delete qt[e]}),Yt.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){"function"==typeof t[e]&&(n[e]=t[e]),"object"===_(t[e])&&Object.keys(t[e]).forEach(function(a){n[e]||(n[e]={}),n[e][a]=t[e][a]})}),e.hooks){var a=e.hooks();Object.keys(a).forEach(function(e){Zt[e]||(Zt[e]=[]),Zt[e].push(a[e])})}e.provides&&e.provides(qt)})}([ht,Bn,$n,Vn,Hn,ta,{mixout:function(){return{dom:{unwatch:function(){Mn(),na=!0}}}},hooks:function(){return{bootstrap:function(){Fn(Gt("mutationObserverCallbacks",{}))},noAuto:function(){Pn&&Pn.disconnect()},watch:function(e){var t=e.observeMutationsRoot;na?Rn():Fn(Gt("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},ra,sa,la,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),a=null!==n&&(""===n||n);return e.symbol=a,e}}}}],{mixoutsTo:on});var ca=on.config,fa=on.parse,ua=on.icon;function da(e){return t=e,(t-=0)==t?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():"")).charAt(0).toLowerCase()+e.slice(1);var t}function ha(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ma=new Map;function pa(e){if(ma.has(e))return ma.get(e);const t={};let n=0;const a=e.length;for(;n<a;){const r=e.indexOf(";",n),o=-1===r?a:r,i=e.slice(n,o).trim();if(i){const e=i.indexOf(":");if(e>0){const n=i.slice(0,e).trim(),a=i.slice(e+1).trim();if(n&&a){const e=da(n);t[e.startsWith("webkit")?ha(e):e]=a}}}n=o+1}if(1e3===ma.size){const e=ma.keys().next().value;e&&ma.delete(e)}return ma.set(e,t),t}var ga=function e(t,n,a={}){if("string"==typeof n)return n;const r=(n.children||[]).map(n=>e(t,n)),o=n.attributes||{},i={};for(const[e,t]of Object.entries(o))switch(!0){case"class"===e:i.className=t;break;case"style"===e:i.style=pa(String(t));break;case e.startsWith("aria-"):case e.startsWith("data-"):i[e.toLowerCase()]=t;break;default:i[da(e)]=t}const{style:s,role:l,"aria-label":c,...f}=a;return s&&(i.style=i.style?{...i.style,...s}:s),l&&(i.role=l),c&&(i["aria-label"]=c,i["aria-hidden"]="false"),t(n.tag,{...f,...i},...r)}.bind(null,t.createElement),va=(e,n)=>{const a=t.useId();return e||(n?a:void 0)};"undefined"!=typeof process&&process.env.FA_VERSION;var ba="searchPseudoElementsFullScan"in ca?"7.0.0":"6.0.0",ya=Number.parseInt(ba)>=7,xa="fa",wa="fa-beat",ja="fa-fade",ka="fa-beat-fade",Sa="fa-bounce",Na="fa-shake",Ca="fa-spin",Ta="fa-spin-pulse",_a="fa-spin-reverse",Ma="fa-pulse",Ra={left:"fa-pull-left",right:"fa-pull-right"},Pa={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},Fa={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},Ea="fa-border",Ia="fa-fw",Da="fa-flip",Aa="fa-flip-horizontal",Oa="fa-flip-vertical",La="fa-inverse",za="fa-rotate-by",Ba="fa-swap-opacity",$a="fa-width-auto";function Va(e){const t=ca.cssPrefix||ca.familyPrefix||xa;return t===xa?e:e.replace(new RegExp(String.raw`(?<=^|\s)${xa}-`,"g"),`${t}-`)}function Ha(e){if(e)return(e=>"object"==typeof e&&"icon"in e&&!!e.icon)(e)?e:fa.icon(e)}var Wa=new class{constructor(e="react-fontawesome"){this.enabled=!1;let t=!1;try{t="undefined"!=typeof process&&"development"===process.env.NODE_ENV}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}}("FontAwesomeIcon"),Ua={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},Ja=new Set(Object.keys(Ua)),Qa=t.forwardRef((e,t)=>{const n={...Ua,...e},{icon:a,mask:r,symbol:o,title:i,titleId:s,maskId:l,transform:c}=n,f=va(l,Boolean(r)),u=va(s,Boolean(i)),d=Ha(a);if(!d)return Wa.error("Icon lookup is undefined",a),null;const h=function(e){const{beat:t,fade:n,beatFade:a,bounce:r,shake:o,spin:i,spinPulse:s,spinReverse:l,pulse:c,fixedWidth:f,inverse:u,border:d,flip:h,size:m,rotation:p,pull:g,swapOpacity:v,rotateBy:b,widthAuto:y,className:x}=e,w=[];return x&&w.push(...x.split(" ")),t&&w.push(wa),n&&w.push(ja),a&&w.push(ka),r&&w.push(Sa),o&&w.push(Na),i&&w.push(Ca),l&&w.push(_a),s&&w.push(Ta),c&&w.push(Ma),f&&w.push(Ia),u&&w.push(La),d&&w.push(Ea),!0===h&&w.push(Da),"horizontal"!==h&&"both"!==h||w.push(Aa),"vertical"!==h&&"both"!==h||w.push(Oa),null!=m&&w.push(Fa[m]),null!=p&&0!==p&&w.push(Pa[p]),null!=g&&w.push(Ra[g]),v&&w.push(Ba),ya?(b&&w.push(za),y&&w.push($a),(ca.cssPrefix||ca.familyPrefix||xa)===xa?w:w.map(Va)):w}(n),m="string"==typeof c?fa.transform(c):c,p=Ha(r),g=ua(d,{...h.length>0&&{classes:h},...m&&{transform:m},...p&&{mask:p},symbol:o,title:i,titleId:u,maskId:f});if(!g)return Wa.error("Could not find icon",d),null;const{abstract:v}=g,b={ref:t};for(const e of(y=n,Object.keys(y)))Ja.has(e)||(b[e]=n[e]);var y;return ga(v[0],b)});Qa.displayName="FontAwesomeIcon";var Xa={box:"Box-module_box__SQLj3",collapseBox:"Box-module_collapseBox__5A5Fc",padding:"Box-module_padding__dIJ-L",collapsedContent:"Box-module_collapsedContent__yn-0g",collapseTitle:"Box-module_collapseTitle__-R0ge",collapseIcon:"Box-module_collapseIcon__OAiTO",collapsed:"Box-module_collapsed__nf76f"};b.bind(Xa);const Ya=["dotnetspy","ebpfspy","gospy","phpspy","pyspy","rbspy","nodespy","javaspy","pyroscope-rs","scrape","tracing","unknown"],Za=a.z.preprocess(e=>e&&Ya.includes(e)?e:"unknown",a.z.enum(Ya).default("unknown")),qa=["samples","objects","goroutines","bytes","lock_samples","lock_nanoseconds","trace_samples","exceptions"],Ka=a.z.preprocess(e=>"string"==typeof e&&qa.includes(e)?e:"unknown",a.z.enum(["samples","objects","goroutines","bytes","lock_samples","lock_nanoseconds","trace_samples","exceptions","unknown"])),Ga=a.z.object({names:a.z.array(a.z.preprocess(e=>e||"unknown",a.z.string().min(1))),levels:a.z.array(a.z.array(a.z.number())),numTicks:a.z.number(),maxSelf:a.z.number()}),er=a.z.object({appName:a.z.string().optional(),name:a.z.string().optional(),startTime:a.z.number().optional(),endTime:a.z.number().optional(),query:a.z.string().optional(),maxNodes:a.z.number().optional(),format:a.z.enum(["single","double"]),sampleRate:a.z.number(),spyName:Za,units:Ka});a.z.object({version:a.z.number().min(1).max(1).default(1),flamebearer:Ga,metadata:er,leftTicks:a.z.number().optional(),rightTicks:a.z.number().optional()});const tr={format:"single",jStep:4,jName:3,getBarOffset:(e,t)=>e[t],getBarTotal:(e,t)=>e[t+1],getBarTotalDiff:(e,t)=>0,getBarSelf:(e,t)=>e[t+2],getBarSelfDiff:(e,t)=>0,getBarName:(e,t)=>e[t+3]},nr={format:"double",jStep:7,jName:6,getBarOffset:(e,t)=>e[t]+e[t+3],getBarTotal:(e,t)=>e[t+4]+e[t+1],getBarTotalLeft:(e,t)=>e[t+1],getBarTotalRght:(e,t)=>e[t+4],getBarTotalDiff:(e,t)=>e[t+4]-e[t+1],getBarSelf:(e,t)=>e[t+5]+e[t+2],getBarSelfLeft:(e,t)=>e[t+2],getBarSelfRght:(e,t)=>e[t+5],getBarSelfDiff:(e,t)=>e[t+5]-e[t+2],getBarName:(e,t)=>e[t+6]};function ar(e){switch(e){case"single":return tr;case"double":return nr;default:throw new Error(`Unsupported type: '${e}'`)}}const rr=a.z.object({refType:a.z.string(),traceID:a.z.string(),spanID:a.z.string()}),or=a.z.object({key:a.z.string(),type:a.z.string(),value:a.z.union([a.z.boolean(),a.z.number(),a.z.string()])}),ir=a.z.object({traceID:a.z.string(),spanID:a.z.string(),flags:a.z.string(),operationName:a.z.string(),references:a.z.array(rr),startTime:a.z.number(),duration:a.z.number(),tags:a.z.array(or),logs:a.z.object({timestamp:a.z.number(),fields:a.z.array(or)}),processID:a.z.string(),warnings:a.z.any()}),sr=a.z.object({serviceName:a.z.string(),tags:a.z.array(or)});a.z.object({traceID:a.z.string(),spans:a.z.array(ir),processes:a.z.record(sr),warnings:a.z.any()});const lr=a.z.object({watermark:a.z.object({}).optional(),startTime:a.z.number(),samples:a.z.array(a.z.number()),durationDelta:a.z.number()});a.z.record(a.z.string(),lr);const cr=22,fr=21.5;function ur(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function dr(e){return`${hr(e)}%`}function hr(e){return Math.round(1e4*e)/100}function mr(e,t){return(t-e)/e*100}function pr(e,t,n){switch(n){case"samples":return new gr(e/t);case"objects":case"goroutines":case"lock_samples":case"exceptions":return new br(e);case"bytes":return new yr(e);case"lock_nanoseconds":return new vr(e);case"trace_samples":return new gr(e/t,"",!0);default:return console.warn(`Unsupported unit: '${n}'. Defaulting to ''`),new gr(e/t," ")}}class gr{constructor(e,t,n){this.divider=1,this.enableSubsecondPrecision=!1,this.suffix="second",this.durations=[[60,"minute"],[60,"hour"],[24,"day"],[30,"month"],[12,"year"]],this.units="",n&&(this.enableSubsecondPrecision=n,this.durations=[[1e3,"ms"],[1e3,"second"],...this.durations],this.suffix="μs",e*=1e6),this.units=t||"";for(let t=0;t<this.durations.length;t++){const n=this.durations[t];if(!n){console.warn("Could not calculate level");break}if(!(e>=n[0]))break;this.divider*=n[0],e/=n[0],this.suffix=n[1]}}format(e,t,n=!0){this.enableSubsecondPrecision&&(t/=1e6);const a=e/t/this.divider;let r=a.toFixed(2);return 0===a?r="0.00":(a>=0&&a<.01||a<=0&&a>-.01)&&(r="< 0.01"),n?`${r} ${this.units||`${this.suffix}${1===a||2===this.suffix.length?"":"s"}`}`:r}formatPrecise(e,t){this.enableSubsecondPrecision&&(t/=1e6);const n=e/t/this.divider;return`${parseFloat(n.toFixed(5))} ${this.units||`${this.suffix}${1===n||2===this.suffix.length?"":"s"}`}`}}class vr{constructor(e){this.divider=1,this.multiplier=1,this.suffix="second",this.durations=[[60,"minute"],[60,"hour"],[24,"day"],[30,"month"],[12,"year"]],e/=1e9;for(let t=0;t<this.durations.length;t++){const n=this.durations[t];if(!n){console.warn("Could not calculate level");break}if(!(e>=n[0]))break;this.divider*=n[0],e/=n[0],this.suffix=n[1]}}format(e){const t=e/1e9/this.divider;let n=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(n="< 0.01"),`${n} ${this.suffix}${1===t?"":"s"}`}formatPrecise(e){const t=e/1e9/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}${1===t?"":"s"}`}}class br{constructor(e){this.divider=1,this.suffix="",this.objects=[[1e3,"K"],[1e3,"M"],[1e3,"G"],[1e3,"T"],[1e3,"P"]];for(let t=0;t<this.objects.length;t++){const n=this.objects[t];if(!n){console.warn("Could not calculate level");break}if(!(e>=n[0]))break;this.divider*=n[0],e/=n[0],this.suffix=n[1]}}format(e){const t=e/this.divider;let n=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(n="< 0.01"),`${n} ${this.suffix}`}formatPrecise(e){const t=e/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}`}}class yr{constructor(e){this.divider=1,this.suffix="bytes",this.bytes=[[1024,"KB"],[1024,"MB"],[1024,"GB"],[1024,"TB"],[1024,"PB"]];for(let t=0;t<this.bytes.length;t++){const n=this.bytes[t];if(!n){console.warn("Could not calculate level");break}if(!(e>=n[0]))break;{this.divider*=n[0],e/=n[0];const t=n[1];t?this.suffix=t:(console.warn("Could not calculate suffix"),this.suffix="")}}}format(e){const t=e/this.divider;let n=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(n="< 0.01"),`${n} ${this.suffix}`}formatPrecise(e){const t=e/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}`}}const xr="TAIL",wr="HEAD";function jr({mode:e,charSize:t,rectWidth:n,fullText:a,shortText:r}){if(e===xr){if(t*a.length<=n)return{mode:e,text:a,marginLeft:3};const o=t*r.length;return o<=n?{mode:e,text:r,marginLeft:3}:{mode:e,text:r,marginLeft:-(o-n+3)}}return{mode:e,text:a,marginLeft:3}}function kr(e,t){return r.rgb(e,e,e).alpha(t)}function Sr(e,t){if(0===t.length)return t;const n=function(e){switch(e){case"dotnetspy":return/^(?<packageName>.+)\.(.+)\.(.+)\(.*\)$/;case"ebpfspy":case"unknown":return/^(?<packageName>.+)$/;case"gospy":case"scrape":return/^(?<packageName>.*?\/.*?\.|.*?\.|.+)(?<functionName>.*)$/;case"phpspy":return/^(?<packageName>(.*\/)*)(?<filename>.*\.php+)(?<line_info>.*)$/;case"pyspy":return/^(?<packageName>(.*\/)*)(?<filename>.*\.py+)(?<line_info>.*)$/;case"rbspy":return/^(?<packageName>(.*\/)*)(?<filename>.*\.rb+)(?<line_info>.*)$/;case"nodespy":return/^(\.\/node_modules\/)?(?<packageName>[^/]*)(?<filename>.*\.?(jsx?|tsx?)?):(?<functionName>.*):(?<line_info>.*)$/;case"tracing":return/^(?<packageName>.+?):.*$/;case"javaspy":return/^(?<packageName>.+\/)(?<filename>.+\.)(?<functionName>.+)$/;case"pyroscope-rs":return/^(?<packageName>[^::]+)/}return/^(?<packageName>.+)$/}(e),a=t.match(n);return a&&a.groups?a.groups.packageName||"":t}function Nr(e,t){const n=function(e,t=0){let n,a,r,o,i,s,l,c;for(n=3&e.length,a=e.length-n,r=t,i=3432918353,s=461845907,c=0;c<a;)l=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,l=(65535&l)*i+(((l>>>16)*i&65535)<<16)&4294967295,l=l<<15|l>>>17,l=(65535&l)*s+(((l>>>16)*s&65535)<<16)&4294967295,r^=l,r=r<<13|r>>>19,o=5*(65535&r)+((5*(r>>>16)&65535)<<16)&4294967295,r=27492+(65535&o)+(((o>>>16)+58964&65535)<<16);switch(l=0,n){case 3:l^=(255&e.charCodeAt(c+2))<<16;case 2:l^=(255&e.charCodeAt(c+1))<<8;case 1:l^=255&e.charCodeAt(c);default:l=(65535&l)*i+(((l>>>16)*i&65535)<<16)&4294967295,l=l<<15|l>>>17,l=(65535&l)*s+(((l>>>16)*s&65535)<<16)&4294967295,r^=l}return r^=e.length,r^=r>>>16,r=2246822507*(65535&r)+((2246822507*(r>>>16)&65535)<<16)&4294967295,r^=r>>>13,r=3266489909*(65535&r)+((3266489909*(r>>>16)&65535)<<16)&4294967295,r^=r>>>16,r>>>0}(t,0),a=n%e.colors.length,r=e.colors[a];return r||(console.warn("Could not calculate color. Defaulting to the first one"),e.colors[0])}function Cr(e){const{goodColor:t,neutralColor:n,badColor:a}=e,i=o.scaleLinear().domain([-100,0,100]).range([t.rgb().toString(),n.rgb().toString(),a.rgb().toString()]);return e=>r(i(e).toString())}function Tr(e,t){return t.toLowerCase().includes(e.toLowerCase())}r.rgb(148,142,142),r.rgb(200,0,0),r.rgb(0,170,0),r("#48CE73");const _r={collapsedLevelsSingular:"total (1 level collapsed)",collapsedLevelsPlural:"total ({n} levels collapsed)"};function Mr(e){const{canvas:t,fitMode:n,units:a,tickToX:r,levels:o,palette:i}=e,{numTicks:s,sampleRate:l,pxPerTick:c}=e,{rangeMin:f,rangeMax:u}=e,{focusedNode:d,zoom:h}=e,m=e.messages||_r,p=function(e){return e.clientWidth||e.width}(t);if(t.width=p,f>=u)throw new Error("'rangeMin' should be strictly smaller than 'rangeMax'");const{format:g}=e,v=ar(g),b=t.getContext("2d");if(!b)throw new Error("Could not get ctx");const y=h.mapOrElse(()=>0,e=>e.i),x=pr(s,l,a),w=d.isJust,j=d.mapOrElse(()=>0,e=>e.i),k=cr*(o.length-j)+(w?fr:0);t.height=k,devicePixelRatio>1&&(t.width*=2,t.height*=2,b.scale(2,2));const{names:S}=e;if(w){const e=s*c;b.beginPath(),b.rect(0,0,s*c,fr),b.fillStyle=kr(200,1).rgb().string(),b.fill();const t=d.mapOrElse(()=>"total",e=>function(e,t){return 1===e?t.collapsedLevelsSingular:t.collapsedLevelsPlural.replace("{n}",String(e))}(e.i-1,m));b.textBaseline="middle",b.font="400 11.5px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace";const a=jr({mode:n,charSize:b.measureText("a").width,rectWidth:e,fullText:t,shortText:t}),r=0,o=0,i=fr;b.save(),b.clip(),b.fillStyle="black";const l=Math.round(Math.max(r,0));b.fillText(a.text,l+a.marginLeft,o+i/2+1),b.restore()}for(let t=0;t<o.length-j;t+=1){const a=o[j+t];if(!a)throw new Error(`Could not find level: ${j+t}`);for(let o=0;o<a.length;o+=v.jStep){const f=v.getBarOffset(a,o),u=r(f),h=t*cr+(w?fr:0),m=fr,p=!!e.highlightQuery&&e.highlightQuery.length>0,j=Dr(o+v.jName,a,S,e.highlightQuery);let k=v.getBarTotal(a,o);const N=k*c<=5;if(N)for(;o<a.length-v.jStep&&f+k===v.getBarOffset(a,o+v.jStep)&&v.getBarTotal(a,o+v.jStep)*c<=5&&j===(e.highlightQuery&&Dr(o+v.jStep+v.jName,a,S,e.highlightQuery)||!1);)o+=v.jStep,k+=v.getBarTotal(a,o);const C=k*c-(N?0:.5),{spyName:T}=e,_=()=>{const n={level:a,j:o,i:t+d.mapOrElse(()=>0,e=>e.i),names:S,collapsed:N,selectedLevel:y,highlightModeOn:p,isHighlighted:j,spyName:T,palette:i};switch(g){case"single":return Er({...n});case"double":return Ir({...n,leftTicks:e.leftTicks,rightTicks:e.rightTicks});default:throw new Error(`Unsupported format: ${g}`)}},M=_();if(b.beginPath(),b.rect(u,h,C,m),b.fillStyle=M.string(),b.fill(),N)continue;if(C<20)continue;const R=Rr(S,o,g,a),P=Pr(R,k,s,l,x);b.textBaseline="middle",b.font="400 11.5px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace";const F=jr({mode:n,charSize:b.measureText("a").width,rectWidth:C,fullText:P,shortText:R});b.save(),b.clip(),b.fillStyle="black";const E=Math.round(Math.max(u,0));b.fillText(F.text,E+F.marginLeft,h+m/2+1),b.restore()}}}function Rr(e,t,n,a){let r=a[t+ar(n).jName];void 0===r&&(r=-1);const o=e[r];return o||(console.warn("Could not find function name for",{j:t,format:n,level:a,names:e}),"")}function Pr(e,t,n,a,r){return`${e} (${dr(t/n)}, ${r.format(t,a)})`}function Fr({collapsed:e,highlightModeOn:t,isHighlighted:n}){return e||t&&!n?kr(200,.66):null}function Er(e){const t=Fr(e);if(t)return t;const n=ar("single"),a=e.selectedLevel>e.i?.33:1;let r=e.level[e.j+n.jName];void 0===r&&(console.warn("Could nto find level",{l:e.j,jName:n.jName,level:e.level}),r=-1);const o=e.names[r]||"",i=Sr(e.spyName,o)||"";return Nr(e.palette,i).alpha(a)}function Ir(e){const t=Fr(e);if(t)return t;const n=e.selectedLevel>e.i?.33:1,{leftRatio:a,rightRatio:r}=function(e,t,n,a){const r=nr;return n&&a?{leftRatio:r.getBarTotalLeft(e,t)/n,rightRatio:r.getBarTotalRght(e,t)/a}:(console.error("Properties 'rightTicks' and 'leftTicks' are required. Can't calculate ratio."),{leftRatio:0,rightRatio:0})}(e.level,e.j,e.leftTicks,e.rightTicks),o=hr(a),i=hr(r);return function(e,t,n){const a=function(e,t){if(e===t)return 0;if(0===e)return 100;const n=(t-e)/e*100;return n>100?100:n<-100?-100:n}(t,n);return Cr(e)(a)}(e.palette,o,i).alpha(n)}function Dr(e,t,n,a){const r=t[e];if(!r)return!1;const o=n[r];return!!o&&Tr(a,o)}class Ar{constructor(e,t,n,a,r,o,i,s){if(this.flamebearer=e,this.canvas=t,this.focusedNode=n,this.fitMode=a,this.highlightQuery=r,this.zoom=o,this.palette=i,this.messages=s,this.tickToX=e=>{const{rangeMin:t}=this.getRange();return(e-this.flamebearer.numTicks*t)*this.pxPerTick()},this.xyToBarPosition=e=>{const{ff:t}=this,{i:n,j:a}=this.xyToBarIndex(e.x,e.y),r=this.focusedNode.mapOrElse(()=>0,e=>e.i<0?0:e.i-1),o=this.flamebearer.levels[n];if(!o)throw new Error(`Could not find level: '${n}'`);const i=Math.max(this.tickToX(t.getBarOffset(o,a)),0);return{x:i,y:Math.max((n-r)*cr,0),width:Math.min(this.tickToX(t.getBarOffset(o,a)+t.getBarTotal(o,a))-i,this.getCanvasWidth())}},this.xyToBarData=e=>{const{i:t,j:n}=this.xyToBarIndex(e.x,e.y),a=this.flamebearer.levels[t];if(!a)throw new Error(`Could not find level: '${t}'`);switch(this.flamebearer.format){case"single":{const e=tr;return{format:"single",name:this.flamebearer.names[e.getBarName(a,n)],self:e.getBarSelf(a,n),offset:e.getBarOffset(a,n),total:e.getBarTotal(a,n)}}case"double":{const e=nr;return{format:"double",barTotal:e.getBarTotal(a,n),totalLeft:e.getBarTotalLeft(a,n),totalRight:e.getBarTotalRght(a,n),totalDiff:e.getBarTotalDiff(a,n),name:this.flamebearer.names[e.getBarName(a,n)]}}default:throw new Error("Unsupported type")}},this.isWithinBounds=(e,t)=>{if(e<0||e>this.getCanvasWidth())return!1;try{const{i:n,j:a}=this.xyToBarIndex(e,t);if(-1===a||-1===n)return!1}catch(e){return!1}return!0},this.zoom=o,this.focusedNode=n,this.flamebearer=e,this.canvas=t,this.highlightQuery=r,this.ff=ar(e.format),this.palette=i,this.messages=s,n.isJust&&o.isJust&&o.value.i<n.value.i)throw new Error("Zoom i level should be bigger than Focus")}render(){const{rangeMin:e,rangeMax:t}=this.getRange(),n={canvas:this.canvas,format:this.flamebearer.format,numTicks:this.flamebearer.numTicks,sampleRate:this.flamebearer.sampleRate,names:this.flamebearer.names,levels:this.flamebearer.levels,spyName:this.flamebearer.spyName,units:this.flamebearer.units,maxSelf:this.flamebearer.maxSelf,rangeMin:e,rangeMax:t,fitMode:this.fitMode,highlightQuery:this.highlightQuery,zoom:this.zoom,focusedNode:this.focusedNode,pxPerTick:this.pxPerTick(),tickToX:this.tickToX,palette:this.palette,messages:this.messages},{format:a}=this.flamebearer;switch(a){case"single":Mr({...n,format:"single"});break;case"double":Mr({...n,leftTicks:this.flamebearer.leftTicks,rightTicks:this.flamebearer.rightTicks});break;default:throw new Error(`Invalid format: '${a}'`)}}pxPerTick(){const{rangeMin:e,rangeMax:t}=this.getRange();return this.getCanvasWidth()/this.flamebearer.numTicks/(t-e)}getRange(){const{ff:e}=this,t=t=>{const n=this.flamebearer.levels[t.i];if(!n)throw new Error(`Could not find level: '${t.i}'`);return{rangeMin:e.getBarOffset(n,t.j)/this.flamebearer.numTicks,rangeMax:(e.getBarOffset(n,t.j)+e.getBarTotal(n,t.j))/this.flamebearer.numTicks}},n=t=>{const n=this.flamebearer.levels[t.i];if(!n)throw new Error(`Could not find level: '${t.i}'`);return{rangeMin:e.getBarOffset(n,t.j)/this.flamebearer.numTicks,rangeMax:(e.getBarOffset(n,t.j)+e.getBarTotal(n,t.j))/this.flamebearer.numTicks}},{zoom:a,focusedNode:r}=this;return a.match({Just:e=>r.match({Just:a=>{const r=n(a),o=t(e);return r.rangeMax-r.rangeMin<o.rangeMax-o.rangeMin?(console.warn("Focus is smaller than range, this shouldnt happen. Verify that the zoom is always bigger than the focus."),n(a)):t(e)},Nothing:()=>t(e)}),Nothing:()=>r.match({Just:e=>n(e),Nothing:()=>({rangeMin:0,rangeMax:1})})})}getCanvasWidth(){return this.canvas.clientWidth||this.canvas.width}isFocused(){return this.focusedNode.isJust}binarySearchLevel(e,t){const{ff:n}=this;let a=0,r=t.length-n.jStep;for(;a<=r;){const o=n.jStep*(a/n.jStep+r/n.jStep>>1),i=this.tickToX(n.getBarOffset(t,o)),s=this.tickToX(n.getBarOffset(t,o)+n.getBarTotal(t,o));if(i<=e&&s>=e)return s-i>5?o:-1;i>e?r=o-n.jStep:a=o+n.jStep}return-1}xyToBarIndex(e,t){if(e<0||t<0)throw new Error(`x and y must be bigger than 0. x = ${e}, y = ${t}`);if(this.isFocused()&&t<=fr)return{i:0,j:0};const n=this.isFocused()?t-fr:t,a=this.focusedNode.mapOrElse(()=>0,e=>e.i<=0?0:e.i),r=this.zoom.match({Just:()=>this.focusedNode.match({Just:()=>a,Nothing:()=>0}),Nothing:()=>this.focusedNode.match({Just:()=>a,Nothing:()=>0})}),o=Math.floor(n/cr)+r;if(o>=0&&o<this.flamebearer.levels.length){const t=this.flamebearer.levels[o];if(!t)throw new Error(`Could not find level: '${o}'`);return{i:o,j:this.binarySearchLevel(e,t)}}return{i:0,j:0}}parseXY(e,t){const a={x:e,y:t};return this.isWithinBounds(e,t)?n.Maybe.of(a):n.Maybe.nothing()}xyToBar(e,t){return this.parseXY(e,t).map(n=>{const{i:a,j:r}=this.xyToBarIndex(e,t);return{i:a,j:r,...this.xyToBarPosition(n),...this.xyToBarData(n)}})}}function Or(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Or(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Lr(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Or(e))&&(a&&(a+=" "),a+=t);return a}var zr="NoData-module_noData__WuuID";function Br(){return e.jsx("div",{"data-testid":"no-data",className:zr,children:e.jsx("span",{children:"No data available"})})}var $r,Vr,Hr={},Wr={};function Ur(){return $r||($r=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="arrow-rotate-right",n=[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],a="f01e",r="M436.7 74.7L448 85.4 448 32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 128c0 17.7-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l47.9 0-7.6-7.2c-.2-.2-.4-.4-.6-.6-75-75-196.5-75-271.5 0s-75 196.5 0 271.5 196.5 75 271.5 0c8.2-8.2 15.5-16.9 21.9-26.1 10.1-14.5 30.1-18 44.6-7.9s18 30.1 7.9 44.6c-8.5 12.2-18.2 23.8-29.1 34.7-100 100-262.1 100-362 0S-25 175 75 75c99.9-99.9 261.7-100 361.7-.3z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,a,r]},e.faArrowRotateRight=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Wr)),Wr}function Jr(){return Vr||(Vr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Ur();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faRedo=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(Hr)),Hr}var Qr,Xr=Jr(),Yr={};function Zr(){return Qr||(Qr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="copy",n=[],a="f0c5",r="M192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-200.6c0-17.4-7.1-34.1-19.7-46.2L370.6 17.8C358.7 6.4 342.8 0 326.3 0L192 0zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-64 0 0 16-192 0 0-256 16 0 0-64-16 0z";e.definition={prefix:"fas",iconName:t,icon:[448,512,n,a,r]},e.faCopy=e.definition,e.prefix="fas",e.iconName=t,e.width=448,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Yr)),Yr}var qr,Kr=Zr(),Gr={};function eo(){return qr||(qr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="highlighter",n=[],a="f591",r="M315 315L473.4 99.9 444.1 70.6 229 229 315 315zm-187 5l0 0 0-71.7c0-15.3 7.2-29.6 19.5-38.6L420.6 8.4C428 2.9 437 0 446.2 0 457.6 0 468.5 4.5 476.6 12.6l54.8 54.8c8.1 8.1 12.6 19 12.6 30.5 0 9.2-2.9 18.2-8.4 25.6L334.4 396.5c-9 12.3-23.4 19.5-38.6 19.5l-71.7 0-25.4 25.4c-12.5 12.5-32.8 12.5-45.3 0l-50.7-50.7c-12.5-12.5-12.5-32.8 0-45.3L128 320zM7 466.3l51.7-51.7 70.6 70.6-19.7 19.7c-4.5 4.5-10.6 7-17 7L24 512c-13.3 0-24-10.7-24-24l0-4.7c0-6.4 2.5-12.5 7-17z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,a,r]},e.faHighlighter=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Gr)),Gr}var to,no,ao=eo(),ro={},oo={};function io(){return to||(to=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="down-left-and-up-right-to-center",n=["compress-alt"],a="f422",r="M439.5 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2S450.2 240 440.5 240l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87zM72.5 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87-39-39c-6.9-6.9-8.9-17.2-5.2-26.2S62.8 272 72.5 272z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,a,r]},e.faDownLeftAndUpRightToCenter=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(oo)),oo}function so(){return no||(no=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=io();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faCompressAlt=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(ro)),ro}var lo=so();const co=e=>!!e&&"o"===e[0],fo=l.unstable_batchedUpdates,uo=(e,t)=>!0===e||!(!e||!e[t]),ho=(e,t)=>"function"==typeof e?e(t):e,mo="_szhsinMenu",po=(e,t)=>Object.defineProperty(t,mo,{value:e}),go=(e,t)=>(t&&Object.keys(t).forEach(n=>{const a=e[n],r=t[n];e[n]="function"==typeof r&&a?(...e)=>{r(...e),a(...e)}:r}),e),vo=e=>{for(;e;){if(!(e=e.parentNode)||e===document.body||!e.parentNode)return;const{overflow:t,overflowX:n,overflowY:a}=getComputedStyle(e);if(/auto|scroll|overlay|hidden/.test(t+a+n))return e}};function bo(e,t){return{"aria-disabled":e||void 0,tabIndex:t?0:-1}}function yo(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return n;return-1}const xo=({block:e,element:n,modifiers:a,className:r})=>t.useMemo(()=>{const t=n?`${e}__${n}`:e;let o=t;a&&Object.keys(a).forEach(e=>{const n=a[e];n&&(o+=` ${t}--${!0===n?e:`${e}-${n}`}`)});let i="function"==typeof r?r(a):r;return"string"==typeof i&&(i=i.trim(),i&&(o+=` ${i}`)),o},[e,n,a,r]),wo="szh-menu",jo=t.createContext(),ko=t.createContext({}),So=t.createContext({}),No=t.createContext({}),Co=t.createContext({}),To=t.createContext({}),_o=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),Mo=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),Ro=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),Po=Object.freeze({FIRST:"first",LAST:"last"}),Fo=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),Eo="absolute",Io="none",Do={preventScroll:!0},Ao=po("MenuButton",t.forwardRef(function({className:n,isOpen:a,disabled:r,children:o,...i},s){const l=t.useMemo(()=>({open:a}),[a]);return e.jsx("button",{"aria-haspopup":!0,"aria-expanded":a,"aria-disabled":r||void 0,type:"button",disabled:r,...i,ref:s,className:xo({block:"szh-menu-button",modifiers:l,className:n}),children:o})})),Oo=({className:n,containerRef:a,containerProps:r,children:o,isOpen:i,theming:s,transition:l,onClose:c})=>{const f=uo(l,"item");return e.jsx("div",{...go({onKeyDown:({key:e})=>{if(e===_o.ESC)ho(c,{key:e,reason:Ro.CANCEL})},onBlur:e=>{i&&!e.currentTarget.contains(e.relatedTarget)&&ho(c,{reason:Ro.BLUR})}},r),className:xo({block:"szh-menu-container",modifiers:t.useMemo(()=>({theme:s,itemTransition:f}),[s,f]),className:n}),style:{position:"absolute",...r?.style},ref:a,children:o})},Lo=()=>{let e,t=0;return{toggle:e=>{e?t++:t--,t=Math.max(t,0)},on:(n,a,r)=>{t?e||(e=setTimeout(()=>{e=0,a()},n)):r?.()},off:()=>{e&&(clearTimeout(e),e=0)}}},zo=(e,t)=>Math.round(e)===t?e:t,Bo=(e,t,n,a)=>{const r=(e=>{const t=e.getBoundingClientRect();return t.width=zo(t.width,e.offsetWidth),t.height=zo(t.height,e.offsetHeight),t})(t),o=e.getBoundingClientRect(),i=n===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:n.getBoundingClientRect(),s=(e=>{if("string"!=typeof e)return{top:0,right:0,bottom:0,left:0};const t=e.trim().split(/\s+/,4).map(parseFloat),n=isNaN(t[0])?0:t[0],a=isNaN(t[1])?n:t[1];return{top:n,right:a,bottom:isNaN(t[2])?n:t[2],left:isNaN(t[3])?a:t[3]}})(a),l=e=>e+o.left-i.left-s.left,c=e=>e+o.left+r.width-i.right+s.right,f=e=>e+o.top-i.top-s.top,u=e=>e+o.top+r.height-i.bottom+s.bottom;return{menuRect:r,containerRect:o,getLeftOverflow:l,getRightOverflow:c,getTopOverflow:f,getBottomOverflow:u,confineHorizontally:e=>{let t=l(e);if(t<0)e-=t;else{const n=c(e);n>0&&(t=l(e-=n),t<0&&(e-=t))}return e},confineVertically:e=>{let t=f(e);if(t<0)e-=t;else{const n=u(e);n>0&&(t=f(e-=n),t<0&&(e-=t))}return e}}},$o=({anchorRect:e,containerRect:t,menuRect:n,placeLeftorRightY:a,placeLeftX:r,placeRightX:o,getLeftOverflow:i,getRightOverflow:s,confineHorizontally:l,confineVertically:c,arrowRef:f,arrow:u,direction:d,position:h})=>{let m,p,g,v=d,b=a;"initial"!==h&&(b=c(b),"anchor"===h&&(b=Math.min(b,e.bottom-t.top),b=Math.max(b,e.top-t.top-n.height))),"left"===v?(m=r,"initial"!==h&&(p=i(m),p<0&&(g=s(o),(g<=0||-p>g)&&(m=o,v="right")))):(m=o,"initial"!==h&&(g=s(m),g>0&&(p=i(r),(p>=0||-p<g)&&(m=r,v="left")))),"auto"===h&&(m=l(m));const y=u?(({arrowRef:e,menuY:t,anchorRect:n,containerRect:a,menuRect:r})=>{let o=n.top-a.top-t+n.height/2;const i=1.25*e.current.offsetHeight;return o=Math.max(i,o),o=Math.min(o,r.height-i),o})({menuY:b,arrowRef:f,anchorRect:e,containerRect:t,menuRect:n}):void 0;return{arrowY:y,x:m,y:b,computedDirection:v}},Vo=({anchorRect:e,containerRect:t,menuRect:n,placeToporBottomX:a,placeTopY:r,placeBottomY:o,getTopOverflow:i,getBottomOverflow:s,confineHorizontally:l,confineVertically:c,arrowRef:f,arrow:u,direction:d,position:h})=>{let m,p,g,v="top"===d?"top":"bottom",b=a;"initial"!==h&&(b=l(b),"anchor"===h&&(b=Math.min(b,e.right-t.left),b=Math.max(b,e.left-t.left-n.width))),"top"===v?(m=r,"initial"!==h&&(p=i(m),p<0&&(g=s(o),(g<=0||-p>g)&&(m=o,v="bottom")))):(m=o,"initial"!==h&&(g=s(m),g>0&&(p=i(r),(p>=0||-p<g)&&(m=r,v="top")))),"auto"===h&&(m=c(m));const y=u?(({arrowRef:e,menuX:t,anchorRect:n,containerRect:a,menuRect:r})=>{let o=n.left-a.left-t+n.width/2;const i=1.25*e.current.offsetWidth;return o=Math.max(i,o),o=Math.min(o,r.width-i),o})({menuX:b,arrowRef:f,anchorRect:e,containerRect:t,menuRect:n}):void 0;return{arrowX:y,x:b,y:m,computedDirection:v}},Ho="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function Wo(e,t){"function"==typeof e?e(t):e.current=t}const Uo=(e,n)=>t.useMemo(()=>e?n?t=>{Wo(e,t),Wo(n,t)}:e:n,[e,n]),Jo=({ariaLabel:n,menuClassName:a,menuStyle:r,arrow:o,arrowProps:i={},anchorPoint:s,anchorRef:c,containerRef:f,containerProps:u,externalRef:d,parentScrollingRef:h,align:m="start",direction:p="bottom",position:g="auto",overflow:v="visible",setDownOverflow:b,repositionFlag:y,captureFocus:x=!0,state:w,endTransition:j,isDisabled:k,menuItemFocus:S,gap:N=0,shift:C=0,children:T,onClose:_,focusProps:M,...R})=>{const[P,F]=t.useState({x:-9999,y:-9999}),[E,I]=t.useState({}),[D,A]=t.useState(),[O,L]=t.useState(p),[z]=t.useState(Lo),[B,$]=t.useReducer(e=>e+1,1),{transition:V,boundingBoxRef:H,boundingBoxPadding:W,rootMenuRef:U,rootAnchorRef:J,scrollNodesRef:Q,reposition:X,viewScroll:Y,submenuCloseDelay:Z}=t.useContext(To),{submenuCtx:q,reposSubmenu:K=y}=t.useContext(So),G=t.useRef(),ee=t.useRef(),te=t.useRef(!1),{hoverItem:ne,dispatch:ae,updateItems:re}=(e=>{const[n,a]=t.useState(),r=t.useRef({items:[],hoverIndex:-1,sorted:!1}).current,o=t.useCallback((t,n)=>{const{items:o}=r;if(t)if(n)o.push(t);else{const n=o.indexOf(t);n>-1&&(o.splice(n,1),t.contains(document.activeElement)&&(e.current.focus(Do),a()))}else r.items=[];r.hoverIndex=-1,r.sorted=!1},[r,e]),i=t.useCallback((t,n,o)=>{const{items:i,hoverIndex:s}=r,l=()=>{if(r.sorted)return;const t=e.current.querySelectorAll(".szh-menu__item");i.sort((e,n)=>yo(t,e)-yo(t,n)),r.sorted=!0};let c,f=-1;switch(t){case Mo.RESET:break;case Mo.SET:c=n;break;case Mo.UNSET:c=e=>e===n?void 0:e;break;case Mo.FIRST:l(),f=0,c=i[f];break;case Mo.LAST:l(),f=i.length-1,c=i[f];break;case Mo.SET_INDEX:l(),f=o,c=i[f];break;case Mo.INCREASE:l(),f=s,f<0&&(f=i.indexOf(n)),f++,f>=i.length&&(f=0),c=i[f];break;case Mo.DECREASE:l(),f=s,f<0&&(f=i.indexOf(n)),f--,f<0&&(f=i.length-1),c=i[f];break;default:if("production"!==process.env.NODE_ENV)throw new Error(`[React-Menu] Unknown hover action type: ${t}`)}c||(f=-1),a(c),r.hoverIndex=f},[e,r]);return{hoverItem:n,dispatch:i,updateItems:o}})(G),oe=co(w),ie=uo(V,"open"),se=uo(V,"close"),le=Q.current,ce=t.useCallback(e=>{const t=G.current,n=f.current;if(!t||!n)return;const a=c?c.current?.getBoundingClientRect():s?{left:s.x,right:s.x,top:s.y,bottom:s.y,width:0,height:0}:null;if(!a)return void("production"!==process.env.NODE_ENV&&console.warn("[React-Menu] Menu might not be positioned properly as one of the anchorRef or anchorPoint prop should be provided. If `anchorRef` is provided, the anchor must be mounted before menu is open."));le.menu||(le.menu=(H?H.current:vo(U.current))||window);const r=Bo(n,t,le.menu,W);let{arrowX:i,arrowY:l,x:u,y:d,computedDirection:h}=(({arrow:e,align:t,direction:n,gap:a,shift:r,position:o,anchorRect:i,arrowRef:s,positionHelpers:l})=>{const{menuRect:c,containerRect:f}=l,u="left"===n||"right"===n;let d=u?a:r,h=u?r:a;if(e){const e=s.current;u?d+=e.offsetWidth:h+=e.offsetHeight}const m=i.left-f.left-c.width-d,p=i.right-f.left+d,g=i.top-f.top-c.height-h,v=i.bottom-f.top+h;let b,y;"end"===t?(b=i.right-f.left-c.width,y=i.bottom-f.top-c.height):"center"===t?(b=i.left-f.left-(c.width-i.width)/2,y=i.top-f.top-(c.height-i.height)/2):(b=i.left-f.left,y=i.top-f.top),b+=d,y+=h;const x={...l,anchorRect:i,placeLeftX:m,placeRightX:p,placeLeftorRightY:y,placeTopY:g,placeBottomY:v,placeToporBottomX:b,arrowRef:s,arrow:e,direction:n,position:o};switch(n){case"left":case"right":return $o(x);default:return Vo(x)}})({arrow:o,align:m,direction:p,gap:N,shift:C,position:g,anchorRect:a,arrowRef:ee,positionHelpers:r});const{menuRect:b}=r,y=b.height;if(!e&&"visible"!==v){const{getTopOverflow:e,getBottomOverflow:t}=r;let n,a;const o=t(d);if(o>0)n=y-o,a=o;else{const t=e(d);t<0&&(n=y+t,a=0-t,n>=0&&(d-=t))}n>=0&&A({height:n,overflowAmt:a})}o&&I({x:i,y:l}),F({x:u,y:d}),L(h)},[o,m,W,p,N,C,g,v,s,c,f,H,U,le]);Ho(()=>{oe&&(ce(),te.current&&$()),te.current=oe},[oe,ce,K]),Ho(()=>{D&&!b&&(G.current.scrollTop=0)},[D,b]),Ho(()=>re,[re]),t.useEffect(()=>{let{menu:e}=le;if(!oe||!e)return;if(e=e.addEventListener?e:window,!le.anchors){le.anchors=[];let t=vo(J&&J.current);for(;t&&t!==e;)le.anchors.push(t),t=vo(t)}let t=Y;if(le.anchors.length&&"initial"===t&&(t="auto"),"initial"===t)return;const n=()=>{"auto"===t?fo(()=>ce(!0)):ho(_,{reason:Ro.SCROLL})},a=le.anchors.concat("initial"!==Y?e:[]);return a.forEach(e=>e.addEventListener("scroll",n)),()=>a.forEach(e=>e.removeEventListener("scroll",n))},[J,le,oe,_,Y,ce]);const fe=!!D&&D.overflowAmt>0;t.useEffect(()=>{if(fe||!oe||!h)return;const e=()=>fo(ce),t=h.current;return t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)},[oe,fe,h,ce]),t.useEffect(()=>{if(!oe||"function"!=typeof ResizeObserver||"initial"===X)return;const e=[],t=new ResizeObserver(t=>t.forEach(({target:t})=>{e.indexOf(t)<0?e.push(t):l.flushSync(()=>{ce(),$()})})),n={box:"border-box"};t.observe(G.current,n);const a=c?.current;return a&&t.observe(a,n),()=>t.disconnect()},[oe,X,c,ce]),t.useEffect(()=>{if(!oe)return ae(Mo.RESET),void(se||A());const{position:e,alwaysUpdate:t}=S||{},n=()=>{e===Po.FIRST?ae(Mo.FIRST):e===Po.LAST?ae(Mo.LAST):e>=-1&&ae(Mo.SET_INDEX,void 0,e)};if(t)n();else if(x){const e=setTimeout(()=>{const e=G.current;e&&!e.contains(document.activeElement)&&(e.focus(Do),n())},ie?170:100);return()=>clearTimeout(e)}},[oe,ie,se,x,S,ae]);const ue=t.useMemo(()=>({isParentOpen:oe,submenuCtx:z,dispatch:ae,updateItems:re}),[oe,z,ae,re]);let de,he;D&&(b?he=D.overflowAmt:de=D.height);const me=t.useMemo(()=>({reposSubmenu:B,submenuCtx:z,overflow:v,overflowAmt:he,parentMenuRef:G,parentDir:O}),[B,z,v,he,O]),pe=de>=0?{maxHeight:de,overflow:v}:void 0,ge=t.useMemo(()=>({state:w,align:m,dir:O}),[w,m,O]),ve=t.useMemo(()=>({dir:O}),[O]),be=xo({block:wo,element:"arrow",modifiers:ve,className:i.className}),ye=e.jsxs("ul",{role:"menu","aria-label":n,...bo(k),...go({onPointerEnter:q?.off,onPointerMove:e=>{e.stopPropagation(),z.on(Z,()=>{ae(Mo.RESET),G.current.focus(Do)})},onPointerLeave:e=>{e.target===e.currentTarget&&z.off()},onKeyDown:e=>{switch(e.key){case _o.HOME:ae(Mo.FIRST);break;case _o.END:ae(Mo.LAST);break;case _o.UP:ae(Mo.DECREASE,ne);break;case _o.DOWN:ae(Mo.INCREASE,ne);break;case _o.SPACE:return void(e.target&&-1!==e.target.className.indexOf(wo)&&e.preventDefault());default:return}e.preventDefault(),e.stopPropagation()},onAnimationEnd:()=>{"closing"===w&&A(),ho(j)}},R),ref:Uo(d,G),className:xo({block:wo,modifiers:ge,className:a}),style:{...r,...pe,margin:0,display:"closed"===w?"none":void 0,position:Eo,left:P.x,top:P.y},children:[o&&e.jsx("li",{"aria-hidden":!0,...i,className:be,style:{display:"block",position:Eo,left:E.x,top:E.y,...i.style},ref:ee}),e.jsx(So.Provider,{value:me,children:e.jsx(ko.Provider,{value:ue,children:e.jsx(jo.Provider,{value:ne,children:ho(T,ge)})})})]});return u?e.jsx(Oo,{...u,isOpen:oe,children:ye}):ye},Qo=t.forwardRef(function({"aria-label":n,className:a,containerProps:r,initialMounted:o,unmountOnClose:i,transition:s,transitionTimeout:c,boundingBoxRef:f,boundingBoxPadding:u,reposition:d="auto",submenuOpenDelay:h=300,submenuCloseDelay:m=150,viewScroll:p="initial",portal:g,theming:v,onItemClick:b,...y},x){const w=t.useRef(null),j=t.useRef({}),{anchorRef:k,state:S,onClose:N}=y,C=t.useMemo(()=>({initialMounted:o,unmountOnClose:i,transition:s,transitionTimeout:c,boundingBoxRef:f,boundingBoxPadding:u,rootMenuRef:w,rootAnchorRef:k,scrollNodesRef:j,reposition:d,viewScroll:p,submenuOpenDelay:h,submenuCloseDelay:m}),[o,i,s,c,k,f,u,d,p,h,m]),T=t.useMemo(()=>({handleClick(e,t){e.stopPropagation||ho(b,e);let n=e.keepOpen;void 0===n&&(n=t&&e.key===_o.SPACE),n||ho(N,{value:e.value,key:e.key,reason:Ro.CLICK})},handleClose(e){ho(N,{key:e,reason:Ro.CLICK})}}),[b,N]);if(!S)return null;const _=e.jsx(To.Provider,{value:C,children:e.jsx(No.Provider,{value:T,children:e.jsx(Jo,{...y,ariaLabel:n||"Menu",externalRef:x,containerRef:w,containerProps:{className:a,containerRef:w,containerProps:r,theming:v,transition:s,onClose:N}})})});return!0===g&&"undefined"!=typeof document?l.createPortal(_,document.body):g?g.target?l.createPortal(_,g.target):g.stablePosition?null:_:_}),Xo=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],Yo=e=>({_s:e,status:Xo[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),Zo=e=>e?6:5,qo=(e,t,n,a,r)=>{clearTimeout(a.current);const o=Yo(e);t(o),n.current=o,r&&r({current:o})},Ko=({enter:e=!0,exit:n=!0,preEnter:a,preExit:r,timeout:o,initialEntered:i,mountOnEnter:s,unmountOnExit:l,onStateChange:c}={})=>{const[f,u]=t.useState(()=>Yo(i?2:Zo(s))),d=t.useRef(f),h=t.useRef(),[m,p]=(e=>"object"==typeof e?[e.enter,e.exit]:[e,e])(o),g=t.useCallback(()=>{const e=((e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return Zo(t)}})(d.current._s,l);e&&qo(e,u,d,h,c)},[c,l]);return[f,t.useCallback(t=>{const o=e=>{switch(qo(e,u,d,h,c),e){case 1:m>=0&&(h.current=setTimeout(g,m));break;case 4:p>=0&&(h.current=setTimeout(g,p));break;case 0:case 3:h.current=((e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0))(o,e)}},i=d.current.isEnter;"boolean"!=typeof t&&(t=!i),t?!i&&o(e?a?0:1:2):i&&o(n?r?3:4:Zo(l))},[g,c,e,n,a,r,m,p,l]),g]},Go=({initialOpen:e,initialMounted:n,unmountOnClose:a,transition:r,transitionTimeout:o=500,onMenuChange:i}={})=>{const s=uo(r,"open"),l=uo(r,"close"),[{status:c},f,u]=Ko({initialEntered:e,mountOnEnter:!n,unmountOnExit:a,timeout:o,enter:s,exit:l,onStateChange:t.useCallback(({current:{isEnter:e,isResolved:t}})=>{!i||e&&s&&t||!e&&l&&t||i({open:e})},[i,s,l])});return[{state:Fo[c],endTransition:u},f]},ei=parseInt(t.version)<19,ti=t.forwardRef(function({"aria-label":n,captureFocus:a,initialOpen:r,menuButton:o,instanceRef:i,onMenuChange:s,...l},c){const[f,u,d]=(e=>{const[n,a]=Go(e),[r,o]=t.useState();return[{menuItemFocus:r,...n},a,(e,t)=>{o({position:e,alwaysUpdate:t}),a(!0)}]})({...l,onMenuChange:s}),{state:h}=f,m=co(h),p=t.useRef(null),g=((e,n)=>{if("production"!==process.env.NODE_ENV&&"function"!=typeof n)throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[a]=t.useState({});return{onMouseDown:()=>{a.v=e&&"closed"!==e},onClick:e=>a.v?a.v=!1:n(!0,e)}})(h,(e,t)=>d(t.detail?void 0:Po.FIRST)),v=t.useCallback(e=>{u(!1),e.key&&p.current.focus()},[u]),b=ho(o,{open:m});if(!b||!b.type)throw new Error("Menu requires a menuButton prop.");const y={...go({onKeyDown:e=>{switch(e.key){case _o.UP:d(Po.LAST);break;case _o.DOWN:d(Po.FIRST);break;default:return}e.preventDefault()},...g},b.props),ref:Uo(ei?b.ref:b.props.ref,p)};"MenuButton"===b.type[mo]&&(y.isOpen=m);const x=t.cloneElement(b,y);return t.useImperativeHandle(i,()=>({openMenu:d,closeMenu:()=>u(!1)})),e.jsxs(t.Fragment,{children:[x,e.jsx(Qo,{...l,...f,"aria-label":n||("string"==typeof b.props.children?b.props.children:"Menu"),anchorRef:p,ref:c,onClose:v})]})}),ni=(e,n,a,r)=>{const[o,i,s]=(e=>{const[n,a]=t.useState(!1);return t.useEffect(()=>{!e&&a(!1)},[e]),[n,()=>!n&&a(!0),()=>a(!1)]})(a),{submenuCloseDelay:l}=t.useContext(To),{isParentOpen:c,submenuCtx:f,dispatch:u,updateItems:d}=t.useContext(ko),h=()=>{!a&&!r&&u(Mo.SET,e.current)},m=()=>{!r&&u(Mo.UNSET,e.current)};return((e,t,n)=>{Ho(()=>{if("production"!==process.env.NODE_ENV&&!n)throw new Error(`[React-Menu] This menu item or submenu should be rendered under a menu: ${t.current.outerHTML}`);if(e)return;const a=t.current;return n(a,!0),()=>{n(a)}},[e,t,n])})(r,e,d),t.useEffect(()=>{a&&c&&n.current&&n.current.focus()},[n,a,c]),{mouseOver:o,setHover:h,onBlur:e=>{a&&!e.currentTarget.contains(e.relatedTarget)&&m()},onPointerMove:e=>{r||(e.stopPropagation(),i(),f.on(l,h,h))},onPointerLeave:(e,t)=>{s(),f.off(),!t&&m()}}},ai=((n,a)=>{const r=t.memo(a),o=t.forwardRef((n,a)=>{const o=t.useRef(null);return e.jsx(r,{...n,itemRef:o,externalRef:a,isHovering:t.useContext(jo)===o.current})});return o.displayName=`WithHovering(${n})`,o})("MenuItem",function({className:n,value:a,href:r,type:o,checked:i,disabled:s,children:l,onClick:c,isHovering:f,itemRef:u,externalRef:d,...h}){const m=!!s,{mouseOver:p,setHover:g,...v}=ni(u,u,f,m),b=t.useContext(No),y=t.useContext(Co),x="radio"===o,w="checkbox"===o,j=!(!r||m||x||w),k=x?y.value===a:!!w&&!!i,S=e=>{if(m)return e.stopPropagation(),void e.preventDefault();const t={value:a,syntheticEvent:e};void 0!==e.key&&(t.key=e.key),w&&(t.checked=!k),x&&(t.name=y.name),ho(c,t),x&&ho(y.onRadioChange,t),b.handleClick(t,w||x)},N=t.useMemo(()=>({type:o,disabled:m,hover:p||f,checked:k,anchor:j}),[o,m,p,f,k,j]),C=go({...v,onPointerDown:g,onKeyDown:e=>{if(f)switch(e.key){case _o.ENTER:e.preventDefault();case _o.SPACE:j?u.current.click():S(e)}},onClick:S},h),T={role:x?"menuitemradio":w?"menuitemcheckbox":"menuitem","aria-checked":x||w?k:void 0,...bo(m,f),...C,ref:Uo(d,u),className:xo({block:wo,element:"item",modifiers:N,className:n}),children:t.useMemo(()=>ho(l,N),[l,N])};return j?e.jsx("li",{role:Io,children:e.jsx("a",{href:r,...T})}):e.jsx("li",{...T})}),ri=t.memo(t.forwardRef(function({className:t,...n},a){return e.jsx("li",{role:Io,...n,ref:a,className:xo({block:wo,element:"header",className:t})})}));var oi="canvas-module_canvas__Iiaz4",ii="Highlight-module_highlight__1VV-X";function si(n){const{canvasRef:a,barHeight:r,xyToHighlightData:o,zoom:i}=n,[s,l]=t.useState({height:"0px",visibility:"hidden"});t.useEffect(()=>{l({height:"0px",visibility:"hidden"})},[i]);const c=e=>{const t=o(e.offsetX,e.offsetY);if(t.isJust){const e=t.value;l({visibility:"visible",height:`${r}px`,...e})}else f()},f=()=>{l({...s,visibility:"hidden"})};return t.useEffect(()=>{const e=a.current;return e?(e.addEventListener("mousemove",c),e.addEventListener("mouseout",f),()=>{e.removeEventListener("mousemove",c),e.removeEventListener("mouseout",f)}):()=>{}},[a.current,c,f]),e.jsx("div",{className:ii,style:s,"data-testid":"flamegraph-highlight"})}var li="ContextMenuHighlight-module_highlightContextMenu__WI1nK";const ci={height:"0px",visibility:"hidden"};function fi(n){const{node:a,barHeight:r}=n,[o,i]=t.useState(ci);return t.useEffect(()=>{a.match({Nothing:()=>i(ci),Just:e=>i({visibility:"visible",height:`${r}px`,...e})})},[a]),e.jsx("div",{className:li,style:o,"data-testid":"flamegraph-highlight-contextmenu"})}const ui={name:"Default",goodColor:r.rgb(0,170,0),neutralColor:r.rgb(148,142,142),badColor:r.rgb(200,0,0),colors:[r.hsl(24,69,60),r.hsl(34,65,65),r.hsl(194,52,61),r.hsl(163,45,55),r.hsl(211,48,60),r.hsl(246,40,65),r.hsl(305,63,79),r.hsl(47,100,73),r.rgb(183,219,171),r.rgb(244,213,152),r.rgb(78,146,249),r.rgb(249,186,143),r.rgb(242,145,145),r.rgb(130,181,216),r.rgb(229,168,226),r.rgb(174,162,224),r.rgb(154,196,138),r.rgb(242,201,109),r.rgb(101,197,219),r.rgb(249,147,78),r.rgb(234,100,96),r.rgb(81,149,206),r.rgb(214,131,206),r.rgb(128,110,183)]},di={...ui,name:"Color Blind",goodColor:r.rgb(26,133,255),neutralColor:r.rgb(148,142,142),badColor:r.rgb(220,50,32)};function hi(){return e.jsxs("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",children:[e.jsx("defs",{}),e.jsx("path",{style:{fill:"#7d7d7f"},d:"M5,19.56c0,5.22,3.54,9.44,7.92,9.44h3.17c4.37,0,7.92-4.23,7.92-9.44v-7.56H5v7.56Z"}),e.jsx("path",{style:{fill:"#7d7d7f"},d:"M14,1h-.82c-4.52,0-8.18,3.73-8.18,8.33v1.67H14V1Z"}),e.jsx("path",{d:"M15.82,1h-.82V11h9v-1.67c0-4.6-3.66-8.33-8.18-8.33Z"})]})}function mi(){return e.jsxs("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",children:[e.jsx("defs",{}),e.jsx("path",{style:{fill:"#7d7d7f"},d:"M24,19.56c0,5.22-3.54,9.44-7.92,9.44h-3.17c-4.37,0-7.92-4.23-7.92-9.44v-7.56H24v7.56Z"}),e.jsx("path",{style:{fill:"#7d7d7f"},d:"M15,1h.82c4.52,0,8.18,3.73,8.18,8.33v1.67H15V1Z"}),e.jsx("path",{d:"M13.18,1h.82V11H5v-1.67c0-4.6,3.66-8.33,8.18-8.33Z"})]})}var pi={tooltip:"Tooltip-module_tooltip__NMZ65",flamegraphDiffTooltip:"Tooltip-module_flamegraphDiffTooltip__Z983o",tooltipName:"Tooltip-module_tooltipName__y4Qs3",functionName:"Tooltip-module_functionName__z9LHO",tooltipTable:"Tooltip-module_tooltipTable__ct3pq",clickInfo:"Tooltip-module_clickInfo__Utux5"};const gi={location:"Location",self:"Self",total:"Total",baseline:"Baseline",comparison:"Comparison",diff:"Diff",noItemsFound:"No items found",diffNew:"new",diffRemoved:"removed",tooltipSamples:"Samples:",tooltipUnitTitles:{objects:{percent:"% of objects in RAM",formattedValue:"Objects in RAM",total:"% of total RAM"},goroutines:{percent:"% of goroutines",formattedValue:"Goroutines",total:"% of total goroutines"},bytes:{percent:"% of RAM",formattedValue:"RAM",total:"% of total bytes"},samples:{percent:"Share of CPU",formattedValue:"CPU Time",total:"% of total CPU"},lock_nanoseconds:{percent:"% of Time spent",formattedValue:"Time",total:"% of total seconds"},lock_samples:{percent:"% of contended locks",formattedValue:"Contended locks",total:"% of total locks"},trace_samples:{percent:"% of time",formattedValue:"Samples",total:"% of total samples"},exceptions:{percent:"% of thrown exceptions",formattedValue:"Thrown exceptions",total:"% of total thrown exceptions"},unknown:{percent:"Percentage",formattedValue:"Units",total:"% of total units"}},resetView:"Reset View",collapseNodesAbove:"Collapse nodes above",copyFunctionName:"Copy function name",highlightSimilarNodes:"Highlight similar nodes",clearHighlight:"Clear highlight",openInSandwichView:"Open in sandwich view",showTextTailFirst:"Show text tail first",showTextHeadFirst:"Show text head first",headFirst:"Head first",tailFirst:"Tail first",clickToHighlightNode:"Click to highlight node in flamegraph",rightClickForMoreNodeOptions:"Right click for more node viewing options",viewTable:"Table",viewTableAndFlamegraph:"Table and Flamegraph",viewFlamegraph:"Flamegraph",viewSandwich:"Sandwich",viewGraphviz:"GraphViz",more:"More",diffLegendRemovedLabel:"(-) Removed",diffLegendAddedLabel:"Added (+)",diffLegendSelectPalette:"Select a palette",paletteDefaultName:"Default",paletteColorBlindName:"Color Blind",paletteDefaultDesc:"(green to red)",paletteColorBlindDesc:"(blue to red)",searchPlaceholder:"Search...",syncSearchBars:"Sync Search Bars",unsyncSearchBars:"Unsync Search Bars",focusOnThisFunction:"Focus on this function",tableDoubleClickToFocus:"Double-click to focus in flamegraph",tableRightClickForOptions:"Right-click for more options",collapsedLevelsSingular:"total (1 level collapsed)",collapsedLevelsPlural:"total ({n} levels collapsed)"},vi={...gi,location:"位置",self:"自身",total:"总计",baseline:"基线",comparison:"对比",diff:"差异",noItemsFound:"没有找到任何条目",diffNew:"新增",diffRemoved:"移除",tooltipSamples:"样本数:",tooltipUnitTitles:{objects:{percent:"RAM 中对象占比",formattedValue:"RAM 中对象数",total:"占总 RAM 的百分比"},goroutines:{percent:"协程占比",formattedValue:"协程数量",total:"占协程总数的百分比"},bytes:{percent:"RAM 占比",formattedValue:"RAM",total:"占总字节数的百分比"},samples:{percent:"CPU 占比",formattedValue:"CPU 时间",total:"占总 CPU 的百分比"},lock_nanoseconds:{percent:"耗时占比",formattedValue:"时间",total:"占总秒数的百分比"},lock_samples:{percent:"锁竞争事件占比",formattedValue:"锁竞争事件数",total:"占锁竞争总数的百分比"},trace_samples:{percent:"时间占比",formattedValue:"样本数",total:"占样本总数的百分比"},exceptions:{percent:"异常抛出占比",formattedValue:"异常数",total:"占异常总数的百分比"},unknown:{percent:"百分比",formattedValue:"单位",total:"占单位总量的百分比"}},resetView:"重置视图",collapseNodesAbove:"收起上方节点",copyFunctionName:"复制函数名",highlightSimilarNodes:"高亮相似节点",clearHighlight:"清除高亮",openInSandwichView:"在 sandwich 视图中查看",showTextTailFirst:"显示文本尾部优先",showTextHeadFirst:"显示文本头部优先",headFirst:"从头部开始显示",tailFirst:"从尾部开始显示",clickToHighlightNode:"点击火焰图节点高亮",rightClickForMoreNodeOptions:"右键查看更多节点选项",viewTable:"表格",viewTableAndFlamegraph:"表格 + 火焰图",viewFlamegraph:"火焰图",viewSandwich:"三明治视图",viewGraphviz:"调用图 (GraphViz)",more:"更多",diffLegendRemovedLabel:"(-) 减少",diffLegendAddedLabel:"增加 (+)",diffLegendSelectPalette:"选择颜色方案",paletteDefaultName:"默认",paletteColorBlindName:"色盲模式",paletteDefaultDesc:"(绿色 → 红色)",paletteColorBlindDesc:"(蓝色 → 红色)",searchPlaceholder:"搜索...",syncSearchBars:"同步搜索栏",unsyncSearchBars:"取消同步搜索栏",focusOnThisFunction:"聚焦到此函数",tableDoubleClickToFocus:"双击可聚焦到火焰图",tableRightClickForOptions:"右键查看更多选项",collapsedLevelsSingular:"总计(已折叠 1 层)",collapsedLevelsPlural:"总计(已折叠 {n} 层)"},bi=t.createContext(gi),yi=({messages:n,children:a})=>{const r=t.useMemo(()=>{var e;return{...gi,...n,tooltipUnitTitles:{...gi.tooltipUnitTitles,...null!==(e=null==n?void 0:n.tooltipUnitTitles)&&void 0!==e?e:{}}}},[n]);return e.jsx(bi.Provider,{value:r,children:a})},xi=()=>t.useContext(bi);function wi(e){if(null==e)return null;if("number"==typeof e)return{value:e,unit:"",hasLessThan:!1,sign:""};let t=String(e).trim().replace(/\u2212/g,"-");if(!t)return null;let n=!1;t.startsWith("<")&&(n=!0,t=t.slice(1).trim());const a=t.match(/^([+\-]?)(\d*\.?\d+)\s*(.*)$/);if(!a)return null;const r=a[1]||"",o=a[2],i=(a[3]||"").trim(),s=parseFloat(o);return Number.isFinite(s)?{value:s,unit:i,hasLessThan:n,sign:r}:null}function ji(e,t=!1){if(!e||!t)return e;const n=wi(e);if(!n)return e;const{hasLessThan:a,unit:r,sign:o,value:i}=n;let s=r;const l=r.toLowerCase();"ms"===l?s="毫秒":"μs"===l||"µs"===l||"us"===l?s="微秒":"second"===l||"seconds"===l?s="秒":"minute"===l||"minutes"===l||"min"===l||"mins"===l?s="分钟":"hour"===l||"hours"===l?s="小时":"day"===l||"days"===l?s="天":"month"===l||"months"===l?s="月":"year"!==l&&"years"!==l||(s="年");const c=String(e).trim().replace(/\u2212/g,"-").match(/^<?\s*([+\-]?)(\d*\.?\d+)/),f=c&&c[2]?`${c[1]||""}${c[2]}`:`${o}${Math.abs(i)}`,u=a?"< ":"";return s?`${u}${f} ${s}`.trim():`${u}${f}`.trim()}function ki(e){if(!e)return null;const t=e.replace(/,/g,"").trim();if(!t)return null;const n=Number(t);return Number.isFinite(n)?n:null}function Si(e,t){if(!e||!t)return;const n=e.trim().replace(/\u2212/g,"-");return n&&"0"!==n?n.startsWith("+")?t.badColor.rgb().string():n.startsWith("-")?t.goodColor.rgb().string():void 0:void 0}function Ni(e,t,n){return n<t?t:Math.max(t,Math.min(n,e))}function Ci(e,t,n,a){const r=window.innerWidth,o=window.innerHeight,i=Math.max(0,n||0),s=Math.max(0,a||0);let l=e+12,c=t+20;return l+i+8>r&&(l=e-i-12),c+s+8>o&&(c=t-s-20),l=Ni(l,8,r-i-8),c=Ni(c,8,o-s-8),{left:l,top:c}}function Ti({shouldShowFooter:n=!0,shouldShowTitle:a=!0,dataSourceRef:r,clickInfoSide:o,setTooltipContent:i,palette:s}){const l=t.useRef(null),c=t.useRef(null),[f,u]=t.useState({title:{text:"",diff:{text:"",color:""}},tooltipData:[]}),[d,h]=t.useState(),m=()=>{h({visibility:"hidden"}),u({title:{text:"",diff:{text:"",color:""}},tooltipData:[]})},p=t.useCallback(e=>{if(!l.current)throw new Error("Missing tooltipElement");c.current={x:e.clientX,y:e.clientY},i(u,m,e);const t=l.current.clientWidth||0,n=l.current.clientHeight||0,{left:a,top:r}=Ci(e.clientX,e.clientY,t,n);h({top:r,left:a,visibility:"visible"})},[i]);return t.useEffect(()=>{const e=r.current;return e?(e.addEventListener("mousemove",p),e.addEventListener("mouseout",m),()=>{e.removeEventListener("mousemove",p),e.removeEventListener("mouseout",m)}):()=>{}},[r.current,p]),t.useLayoutEffect(()=>{if(!l.current)return;if(!c.current)return;if(0===f.tooltipData.length)return;const{x:e,y:t}=c.current,n=l.current.getBoundingClientRect(),{left:a,top:r}=Ci(e,t,n.width,n.height);h(e=>e&&e.left===a&&e.top===r&&"visible"===e.visibility?e:{...e||{},left:a,top:r,visibility:"visible"})},[f.tooltipData.length,f.title.text]),e.jsx("div",{"data-testid":"tooltip",className:Lr(pi.tooltip,{[pi.flamegraphDiffTooltip]:f.tooltipData.length>1}),style:{...d,textAlign:"center"},ref:l,children:f.tooltipData.length>0&&e.jsxs(e.Fragment,{children:[a&&e.jsx("div",{className:pi.tooltipName,"data-testid":"tooltip-title",children:f.title.text}),e.jsx("div",{className:pi.functionName,"data-testid":"tooltip-function-name",children:f.title.text}),f.title.diff.text.length>0?e.jsx(_i,{data:f.tooltipData,diff:f.title.diff,palette:s}):e.jsx(_i,{data:f.tooltipData,palette:s}),n&&e.jsx(Mi,{clickInfoSide:o})]})})}function _i({data:t,diff:n,palette:a}){const r=xi(),[o,i]=t,s="Location"!==r.location;if(!o)return null;let l;switch(o.tooltipType){case"flamegraph":l=()=>{const t=i&&function(e,t){const n=wi(e),a=wi(t);if(!n||!a)return"";const r=a.value-n.value;if(0===r)return"0";const o=r>0?"+":"-",i=Math.abs(r);let s;s=i>=100?i.toFixed(0):i>=10?i.toFixed(1):i.toFixed(2);const l=n.unit||a.unit;return l?`${o}${s} ${l}`:`${o}${s}`}(o.formattedValue,i.formattedValue),l=ji(t,s),c=i&&function(e,t){const n=ki(e),a=ki(t);if(null==n||null==a)return"";const r=a-n;return 0===r?"0":`${r>0?"+":"-"}${Math.abs(r).toLocaleString()}`}(o.samples,i.samples),f=ji(o.formattedValue,s),u=ji(null==i?void 0:i.formattedValue,s),d=null==n?void 0:n.color,h=Si(t,a),m=Si(c,a);return e.jsxs(e.Fragment,{children:[i&&e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("th",{children:r.baseline}),e.jsx("th",{children:r.comparison}),e.jsx("th",{children:r.diff})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsxs("td",{children:[r.tooltipUnitTitles[o.units].percent,":"]}),e.jsx("td",{children:o.percent}),i&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:i.percent}),e.jsx("td",{style:{textAlign:"center"},children:n&&e.jsx("span",{"data-testid":"tooltip-diff",style:{color:d},children:n.text})})]})]}),e.jsxs("tr",{children:[e.jsxs("td",{children:[r.tooltipUnitTitles[o.units].formattedValue,":"]}),e.jsx("td",{children:f}),i&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:u}),e.jsx("td",{style:{textAlign:"center"},children:l&&e.jsx("span",{"data-testid":"tooltip-time-diff",style:h?{color:h}:void 0,children:l})})]})]}),e.jsxs("tr",{children:[e.jsx("td",{children:r.tooltipSamples}),e.jsx("td",{children:o.samples}),i&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:i.samples}),e.jsx("td",{style:{textAlign:"center"},children:c&&e.jsx("span",{"data-testid":"tooltip-samples-diff",style:m?{color:m}:void 0,children:c})})]})]})]})]})};break;case"table":l=()=>e.jsxs(e.Fragment,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("td",{}),e.jsxs("td",{children:[r.self," (",r.tooltipUnitTitles[o.units].total,")"]}),e.jsxs("td",{children:[r.total," (",r.tooltipUnitTitles[o.units].total,")"]})]})}),e.jsx("tbody",{children:e.jsxs("tr",{children:[e.jsxs("td",{children:[r.tooltipUnitTitles[o.units].formattedValue,":"]}),e.jsx("td",{children:o.self}),e.jsx("td",{children:o.total})]})})]});break;default:l=()=>null}return e.jsx("table",{"data-testid":"tooltip-table",className:Lr(pi.tooltipTable,{[pi[`${o.tooltipType}${i?"Diff":""}`]]:o.tooltipType}),style:{textAlign:"center",margin:"0 auto"},children:l()})}function Mi({clickInfoSide:t}){const n=xi();let a;switch(t){case"right":a=e.jsxs(e.Fragment,{children:[e.jsx(hi,{}),e.jsx("span",{children:n.rightClickForMoreNodeOptions})]});break;case"left":a=e.jsxs(e.Fragment,{children:[e.jsx(mi,{}),e.jsx("span",{children:n.clickToHighlightNode})]});break;default:a=e.jsx(e.Fragment,{})}return e.jsx("div",{"data-testid":"tooltip-footer",className:pi.clickInfo,children:a})}function Ri(n){const{format:a,canvasRef:r,xyToData:o,numTicks:i,sampleRate:s,units:l,leftTicks:c,rightTicks:f,palette:u}=n,d=xi(),h=t.useCallback((e,t,n)=>{const r=pr(i,s,l),h=o(n.offsetX,n.offsetY);let m;if(h.isJust)switch(m=h.value,m.format){case"single":{const t={percent:dr(m.total/i),samples:"trace_samples"===l?"":ur(m.total),units:l,formattedValue:r.format(m.total,s),tooltipType:"flamegraph"};e({title:{text:m.name,diff:{text:"",color:""}},tooltipData:[t]});break}case"double":{if("single"===a)throw new Error("props format is 'single' but it has been mapped to 'double'");const t=Pi({formatter:r,sampleRate:s,totalLeft:m.totalLeft,leftTicks:c,totalRight:m.totalRight,rightTicks:f,title:m.name,units:l},u,d);e({title:t.title,tooltipData:t.tooltipData});break}default:throw new Error(`Unsupported format: '${m.format}'`)}else t()},[i,s,l,c,f,u,o,a,d]);return e.jsx(Ti,{dataSourceRef:r,clickInfoSide:"right",setTooltipContent:h,palette:u})}function Pi({formatter:e,sampleRate:t,totalLeft:n,leftTicks:a,totalRight:r,rightTicks:o,title:i,units:s},l=ui,c){var f,u;const d=r/o,h=hr(n/a),m=hr(d),p={percent:`${h}%`,samples:ur(n),units:s,formattedValue:e.format(n,t),tooltipType:"flamegraph"},g={percent:`${m}%`,samples:ur(r),units:s,formattedValue:e.format(r,t),tooltipType:"flamegraph"},v=mr(h,m);let b="";v>0?b=l.badColor.rgb().string():v<0&&(b=l.goodColor.rgb().string());let y="";return n?r?v>0?y=`+${v.toFixed(2)}%`:v<0&&(y=`${v.toFixed(2)}%`):y=null!==(u=null==c?void 0:c.diffRemoved)&&void 0!==u?u:"移除":y=null!==(f=null==c?void 0:c.diffNew)&&void 0!==f?f:"新增",{title:{text:i,diff:{text:y,color:b}},tooltipData:[p,g]}}var Fi="ContextMenu-module_dummy__5n2-N";function Ei(n){const[a,r]=Go({transition:!0}),[o,i]=t.useState({x:0,y:0}),{canvasRef:s}=n,[l,c]=t.useState([]),{xyToMenuItems:f,onClose:u,onOpen:d}=n;return t.useEffect(()=>{r(!1);const e=s.current;if(!e)return()=>{};const t=e=>{e.preventDefault();const t=f(e.offsetX,e.offsetY);c(t);const n=e.clientX,a=e.clientY+20;i({x:n,y:a}),r(!0),d(e.offsetX,e.offsetY)};return e.addEventListener("contextmenu",t),()=>{e.removeEventListener("contextmenu",t)}},[f]),e.jsx(Qo,{...a,className:Fi,anchorPoint:o,onClose:()=>{r(!1),u()},children:l})}var Ii="LogoLink-module_logoLink__oWRri";function Di(){return e.jsxs("a",{className:Ii,href:"https://github.com/pyroscope-io/pyroscope/",target:"_blank",rel:"noreferrer",children:[e.jsxs("svg",{width:"22px",height:"22px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("defs",{children:e.jsxs("radialGradient",{cx:"49.4236252%",cy:"92.6627823%",fx:"49.4236252%",fy:"92.6627823%",r:"195.066755%",gradientTransform:"translate(0.494236,0.926628),scale(1.000000,0.735610),rotate(-90.000000),translate(-0.494236,-0.926628)",id:"radialGradient-1",children:[e.jsx("stop",{stopColor:"#FFB90C",offset:"0%"}),e.jsx("stop",{stopColor:"#F9243A",offset:"38.390924%"}),e.jsx("stop",{stopColor:"#F9243A",offset:"50.5405%"}),e.jsx("stop",{stopColor:"#B51424",offset:"73.98091%"}),e.jsx("stop",{stopColor:"#B51424",offset:"100%"})]})}),e.jsx("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:e.jsx("g",{id:"fire-part",transform:"translate(148.516736, 0.000000)",fillRule:"nonzero",children:e.jsxs("g",{id:"whole-thing",transform:"translate(363.983264, 495.000000) scale(-1, 1) rotate(-180.000000) translate(-363.983264, -495.000000) translate(0.483264, 0.000000)",children:[e.jsx("g",{id:"g70",transform:"translate(-0.000091, 0.685815)",fill:"url(#radialGradient-1)",children:e.jsx("path",{d:"M65.3646667,571.739321 L65.4492471,571.698868 C19.5139147,505.999969 -5.32464048,424.477859 1.04305801,336.877516 L1.04305801,336.877516 C14.0321963,158.179446 159.192462,13.7596653 338.059844,1.5917266 L338.059844,1.5917266 C419.418369,-3.93888015 495.500283,17.3823334 558.456522,57.4611191 L558.456522,57.4611191 L481.301947,162.097965 C437.516468,136.521928 399.367671,129.590556 363.486536,130.155994 L363.486536,130.155994 C234.497143,130.155994 129.556988,235.032238 129.556988,363.946998 L129.556988,363.946998 C129.556988,492.865683 234.497143,597.738003 363.486536,597.738003 L363.486536,597.738003 C492.483783,597.738003 597.427864,492.865683 597.427864,363.946998 L597.427864,363.946998 C597.41276,304.634864 581.39383,255.677522 530.630465,199.668053 L607.770843,95.1329436 C680.936847,161.576603 726.932594,257.364176 726.932594,363.946998 L726.932594,363.946998 C726.932594,458.031616 691.13483,543.75602 632.416071,608.271816 L632.416071,608.271816 L632.416071,608.275741 L533.597728,748.122808 L428.601388,617.203806 L434.703262,646.563419 C459.453008,765.59222 433.664131,889.543925 363.49439,988.853335 L363.49439,988.853335 L65.3646667,571.723019 L65.3646667,571.739321 Z",id:"path84"})}),e.jsx("g",{id:"blue",transform:"translate(191.447039, 191.331780)",children:e.jsxs("g",{id:"g88",transform:"translate(-0.000063, 0.685930)",children:[e.jsx("g",{id:"g94",transform:"translate(0.177296, 0.699054)",fill:"#3EC1D3",children:e.jsx("path",{d:"M171.862466,343.697728 C77.0961324,343.697728 -0.00497405932,266.647602 -0.00497405932,171.934957 C-0.00497405932,77.2182874 77.0961324,0.168162396 171.862466,0.168162396 C266.632828,0.168162396 343.741988,77.2182874 343.741988,171.934957 C343.741988,266.647602 266.632828,343.697728 171.862466,343.697728",id:"path96"})}),e.jsx("g",{id:"g98",transform:"translate(29.362379, 172.629585)",fill:"#FFFFFF",children:e.jsx("path",{d:"M22.8397982,0 L0.671669409,0 C0.671669409,78.2496309 64.380874,141.920035 142.678189,141.920035 L142.678189,119.765407 C76.6007327,119.765407 22.8397982,66.0372141 22.8397982,0",id:"path100"})})]})})]})})})]}),e.jsx("span",{children:"Pyroscope"})]})}const Ai=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:e.jsx("g",{id:"z9nPJj.tif",children:e.jsx("path",{d:"M62,13.33V49.68c-.02,.05-.04,.11-.05,.16-.3,2.66-2.66,5.16-6.08,5.15-15.92,0-31.83,0-47.75-.01-.54,0-1.1-.06-1.62-.19-2.73-.69-4.52-3.09-4.52-5.88,0-12,.01-23.56,.01-34.9,0-.29,.01-.57,.05-.86,.35-2.3,1.62-3.91,3.84-4.75,.6-.23,1.27-.28,1.9-.41,16.13,0,32.27,0,48.4,0,.09,.01,.17,.04,.26,.04,2.66,.21,4.8,2.01,5.4,4.57,.06,.24,.1,.48,.14,.72ZM28.99,31.81c0-3.92-.01-7.91-.01-11.81H8c0,3.91,.01,7.9,.01,11.81H28.99Zm27,0c0-3.92-.01-7.92-.01-11.81h-20.97c0,3.92,.01,7.91,.01,11.81h20.97Zm-47.98,5.19c0,3.7,0,8,0,11.69v.31H29v-12m6.01,.04c0,3.93-.01,8.05-.01,11.96h20.99c0-.12,0-.22,0-.31,0-3.7,0-7.99,0-11.69"})})}),Oi=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:[e.jsx("path",{d:"M31,8.04H7.62c-.61,.13-1.26,.18-1.84,.41-2.14,.84-3.37,2.45-3.71,4.75-.04,.28-.05,.57-.05,.86,0,11.32-.02,22.88-.01,34.87,0,2.79,1.73,5.18,4.37,5.88,.51,.13,1.04,.19,1.57,.19,7.69,0,15.38,0,23.07,0V8.04Zm-2.92,11.99c0,3.9,.01,7.89,.01,11.8H7.82c0-3.9-.01-7.89-.01-11.8H28.08ZM7.82,49.01v-.31c0-3.69,0-7.99,0-11.68H28.1v11.99H7.82Z"}),e.jsx("path",{d:"M58.67,7.9h-25.67V55h2.9c1.84,0,2.9-1.55,2.9-3.45V27.14h11.6v6.37c0,1.91,1.49,3.45,3.33,3.45h4.94c1.84,0,3.33-1.55,3.33-3.45V11.35c0-1.91-1.49-3.45-3.33-3.45Z"})]}),Li=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:e.jsx("path",{d:"M5.44,8H58.56c1.9,0,3.44,1.54,3.44,3.44v6.16s0,9.6,0,9.6v6.36c0,1.9-1.54,3.44-3.44,3.44h-5.11c-1.9,0-3.44-1.54-3.44-3.44v-6.36h-12s0,9.8,0,9.8v9s0,5.56,0,5.56c0,1.9-1.1,3.44-3,3.44h-6c-1.9,0-3-1.54-3-3.44v-5.56h-9c-1.99,0-3-1.52-3-3.4v-5.6H5.44c-1.9,0-3.44-1.74-3.44-3.64v-6.16s0-9.6,0-9.6v-6.16c0-1.9,1.54-3.44,3.44-3.44Z"})}),zi=({fill:t})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:t,children:[e.jsx("g",{id:"shape_squiggle",children:e.jsx("path",{d:"M60,38.42c-4.62,0-6.97-2.64-8.86-4.75-1.81-2.03-2.86-3.08-5.13-3.08s-3.32,1.06-5.13,3.08c-1.89,2.12-4.24,4.75-8.86,4.75s-6.97-2.64-8.87-4.75c-1.81-2.03-2.86-3.08-5.14-3.08s-3.33,1.06-5.14,3.08c-1.89,2.12-4.25,4.75-8.87,4.75-1.38,0-2.5-1.12-2.5-2.5s1.12-2.5,2.5-2.5c2.28,0,3.33-1.06,5.14-3.09,1.89-2.12,4.25-4.75,8.87-4.75s6.97,2.64,8.87,4.75c1.81,2.03,2.86,3.09,5.14,3.09s3.32-1.06,5.13-3.08c1.89-2.12,4.24-4.75,8.86-4.75s6.97,2.64,8.86,4.75c1.81,2.03,2.86,3.08,5.13,3.08,1.38,0,2.5,1.12,2.5,2.5s-1.12,2.5-2.5,2.5Z"})}),e.jsxs("g",{id:"Layer_4",children:[e.jsx("rect",{x:"2",y:"8",width:"60",height:"14",rx:"3.94",ry:"3.94"}),e.jsx("path",{d:"M58.06,41h-18.64c-1.58,0-3.14,.42-4.5,1.22l-6.88,4.02c-1.87,1.09-4.19,1.09-6.06,0l-6.88-4.02c-1.37-.8-2.92-1.22-4.5-1.22H5.94c-2.18,0-3.94,1.76-3.94,3.94v7.12c0,2.18,1.76,3.94,3.94,3.94H58.06c2.18,0,3.94-1.76,3.94-3.94v-7.12c0-2.18-1.76-3.94-3.94-3.94Z"})]})]}),Bi=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:[e.jsx("g",{id:"ab_shape",children:e.jsxs("g",{children:[e.jsx("path",{d:"M16.71,41l-.42-2.45h-.16c-1.63,1.95-4.06,2.95-6.91,2.95-4.8,0-7.86-3.45-7.86-7.45,0-6.4,6.01-9.3,14.13-9.3v-.4c0-1.5-.84-3.2-4.38-3.2-2.48,0-4.9,.75-6.54,1.7l-1.42-4.75c1.69-.9,5.01-2.1,9.44-2.1,8.33,0,10.65,4.95,10.65,10.45v8.7c0,2.25,.11,4.4,.37,5.85h-6.91Zm-.95-11.7c-3.64,0-6.91,.9-6.91,4,0,2.1,1.37,3,3,3s3.22-1.05,3.74-2.6c.11-.35,.16-.8,.16-1.2v-3.2Z"}),e.jsx("path",{d:"M29.36,41c.11-1.79,.21-4.62,.21-7.25V6h7.7v13.46h.11c1.42-1.99,3.8-3.28,7.06-3.28,5.85,0,9.7,5.01,9.65,12.16,0,8.69-5.22,13.16-10.81,13.16-2.74,0-5.22-.99-6.91-3.72h-.11l-.37,3.23h-6.54Zm7.91-9.83c0,.55,.05,.99,.16,1.39,.58,1.94,2.16,3.18,4.01,3.18,3.11,0,4.9-2.53,4.9-7,0-3.92-1.58-6.8-4.9-6.8-1.85,0-3.53,1.39-3.95,3.28-.16,.4-.21,.94-.21,1.44v4.52Z"})]})}),e.jsx("g",{id:"arrows",children:e.jsx("polygon",{points:"62 54 52 45 52 51 35 51 35 57 52 57 52 63 62 54"})})]}),$i=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",children:[e.jsx("g",{id:"yz_shape",children:e.jsxs("g",{children:[e.jsx("path",{d:"M22.75,13l3.43,12.39c.42,1.47,.84,3.2,1.16,4.52h.11c.32-1.32,.69-3.05,1-4.47l2.9-12.44h8.01l-5.8,17.16c-2.95,8.33-5.17,12.54-8.07,15.23-2.58,2.39-5.43,3.3-7.17,3.55l-1.85-6.3c1.11-.25,2.32-.76,3.48-1.52,1.16-.71,2.32-1.88,2.95-3.05,.26-.41,.42-.76,.42-1.12,0-.31-.05-.66-.26-1.17L14.32,13h8.43Z"}),e.jsx("path",{d:"M41.62,33.46l7.59-10.16c1.27-1.57,2.37-2.95,3.58-4.27v-.15h-10.33v-5.89h19.45l-.05,4.57-7.28,9.8c-1.21,1.57-2.48,3.15-3.69,4.42v.1h11.33v5.94h-20.61v-4.37Z"})]})}),e.jsx("g",{id:"arrows",children:e.jsx("polygon",{points:"12 51 12 45 2 54 12 63 12 57 29 57 29 51 12 51"})})]});var Vi="Header-module_flamegraphHeader__nIrXP",Hi="Header-module_row__P7-2L",Wi="Header-module_flamegraphTitle__sjsvB";function Ui(t){const{format:n,units:a,toolbarVisible:r}=t,o={objects:"number of objects in RAM per function",goroutines:"number of goroutines",bytes:"amount of RAM per function",samples:"CPU time per function",lock_nanoseconds:"time spent waiting on locks per function",lock_samples:"number of contended locks per function",trace_samples:"aggregated span duration",exceptions:"number of exceptions thrown",unknown:""},i=r&&"single"===n?e.jsx("div",{className:`${Hi} ${Wi}`,role:"heading","aria-level":2,children:o[a]&&e.jsxs(e.Fragment,{children:["Frame width represents ",o[a]]})}):null;return i?e.jsx("div",{className:Vi,children:e.jsx("div",{children:i})}):null}var Ji="styles-module_flamegraphPane__ejguD",Qi="styles-module_fitModeItem__0UBwN",Xi="styles-module_sandwichItem__WYvnd";function Yi(a){const r=t.useRef(null),o=t.useRef(),l=xi(),c=t.useMemo(()=>({collapsedLevelsSingular:l.collapsedLevelsSingular,collapsedLevelsPlural:l.collapsedLevelsPlural}),[l.collapsedLevelsSingular,l.collapsedLevelsPlural]),[f,u]=t.useState(n.Maybe.nothing()),{flamebearer:d,focusedNode:h,fitMode:m,updateFitMode:p,highlightQuery:g,zoom:v,toolbarVisible:b,headerVisible:y=!0,disableClick:x=!1,showSingleLevel:w=!1,showCredit:j,setActiveItem:k,selectedItem:S,updateView:N,enableSandwichView:C=!0}=a,{onZoom:T,onReset:_,isDirty:M,onFocusOnNode:R}=a,{"data-testid":P}=a,{palette:F,setPalette:E}=a,I=t.useCallback(s(()=>{L()},50),[]);i(r,()=>{o&&I()});const D=(e,t)=>$().xyToBar(e,t).map(e=>({left:B().offsetLeft+e.x,top:B().offsetTop+e.y,width:e.width})),A=t.useCallback((t,n)=>{const a=M(),r=$().xyToBar(t,n),o=r.isJust?r.value.name:"";return[e.jsxs(ai,{disabled:!a,onClick:_,children:[e.jsx(Qa,{icon:Xr.faRedo}),l.resetView]},"reset"),(()=>{const t=r.mapOrElse(()=>!1,()=>!0),n=r.mapOrElse(()=>()=>{},e=>R.bind(null,e.i,e.j));return e.jsxs(ai,{disabled:!t,onClick:n,children:[e.jsx(Qa,{icon:lo.faCompressAlt}),l.collapseNodesAbove]},"focus")})(),e.jsxs(ai,{onClick:()=>{navigator.clipboard&&navigator.clipboard.writeText(o)},children:[e.jsx(Qa,{icon:Kr.faCopy}),l.copyFunctionName]},"copy"),(()=>{const t=S.isJust&&S.value===o?l.clearHighlight:l.highlightSimilarNodes;return e.jsxs(ai,{onClick:()=>{k({name:o})},children:[e.jsx(Qa,{icon:ao.faHighlighter}),t]},"highlight-similar-nodes")})(),(()=>{if(!N||!C)return null;return e.jsxs(ai,{className:Xi,onClick:()=>{N("sandwich"),k({name:o})},children:[e.jsx(zi,{fill:"black"}),l.openInSandwichView]},"open-in-sandwich-view")})(),(()=>{const t=m===wr;return e.jsxs(ai,{className:Qi,onClick:()=>{p(t?xr:wr)},children:[t?e.jsx($i,{}):e.jsx(Bi,{}),t?l.showTextTailFirst:l.showTextHeadFirst]},"fit-mode")})()].filter(Boolean)},[o,S,m,M,_,R,k,N,l,C]),O=()=>{if(r.current){const e=new Ar(d,r.current,h,m,g,v,F,c);o.current=e}};t.useEffect(()=>{O(),L()},[F,c]),t.useEffect(()=>{O(),L()},[r.current,d,h,m,g,v]);const L=()=>{var e,t,n;null===(e=null==r?void 0:r.current)||void 0===e||e.setAttribute("data-state","rendering"),null===(t=null==o?void 0:o.current)||void 0===t||t.render(),null===(n=null==r?void 0:r.current)||void 0===n||n.setAttribute("data-state","rendered")},z=!d||d&&d.names.length<=1,B=()=>{if(!r.current)throw new Error("Missing canvas");return r.current},$=()=>{if(!o.current)throw new Error("Missing canvas");return o.current};return e.jsxs("div",{"data-testid":"flamegraph-view",className:Lr(Ji,{"vertical-orientation":"double"===d.format}),children:[y&&e.jsx(Ui,{format:d.format,units:d.units,toolbarVisible:b}),e.jsx("div",{"data-testid":P,style:{opacity:z&&!w?0:1},children:e.jsx("canvas",{height:"0","data-testid":"flamegraph-canvas","data-highlightquery":g,className:Lr("flamegraph-canvas",oi),ref:r,onClick:x?void 0:e=>{const t=$().xyToBar(e.nativeEvent.offsetX,e.nativeEvent.offsetY);t.match({Nothing:()=>{},Just:e=>{v.match({Nothing:()=>{T(t)},Just:a=>{e.i===a.i&&e.j===a.j?T(n.Maybe.nothing()):T(t)}})}})}})}),j?e.jsx(Di,{}):"",o&&r&&e.jsx(si,{barHeight:cr,canvasRef:r,zoom:v,xyToHighlightData:D}),o&&e.jsx(fi,{barHeight:cr,node:f}),o&&e.jsx(Ri,{format:d.format,canvasRef:r,xyToData:(e,t)=>$().xyToBar(e,t),numTicks:d.numTicks,sampleRate:d.sampleRate,leftTicks:"double"===d.format?d.leftTicks:0,rightTicks:"double"===d.format?d.rightTicks:0,units:d.units,palette:F}),!x&&o&&r&&e.jsx(Ei,{canvasRef:r,xyToMenuItems:A,onClose:()=>{u(n.Maybe.nothing())},onOpen:(e,t)=>{u(D(e,t))}})]})}var Zi,qi={exports:{}};
|
|
13
13
|
/*!
|
|
14
14
|
Copyright (c) 2018 Jed Watson.
|
|
15
15
|
Licensed under the MIT License (MIT), see
|
|
16
16
|
http://jedwatson.github.io/classnames
|
|
17
|
-
*/var qo,Ko=(Yo||(Yo=1,function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var i in e)t.call(e,i)&&e[i]&&(a=r(a,i));return a}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Zo)),Zo.exports),Go=h(Ko),es={};function ts(){return qo||(qo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="crosshairs",n=[],a="f05b",r="M288-16c17.7 0 32 14.3 32 32l0 18.3c98.1 14 175.7 91.6 189.7 189.7l18.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-18.3 0c-14 98.1-91.6 175.7-189.7 189.7l0 18.3c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-18.3C157.9 463.7 80.3 386.1 66.3 288L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l18.3 0C80.3 125.9 157.9 48.3 256 34.3L256 16c0-17.7 14.3-32 32-32zM131.2 288c12.7 62.7 62.1 112.1 124.8 124.8l0-12.8c0-17.7 14.3-32 32-32s32 14.3 32 32l0 12.8c62.7-12.7 112.1-62.1 124.8-124.8L432 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l12.8 0C432.1 161.3 382.7 111.9 320 99.2l0 12.8c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-12.8C193.3 111.9 143.9 161.3 131.2 224l12.8 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-12.8 0zM288 208a48 48 0 1 1 0 96 48 48 0 1 1 0-96z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,a,r]},e.faCrosshairs=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(es)),es}var ns,as=ts(),rs={};function is(){return ns||(ns=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-left",n=[9001],a="f053",r="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z";e.definition={prefix:"fas",iconName:t,icon:[320,512,n,a,r]},e.faChevronLeft=e.definition,e.prefix="fas",e.iconName=t,e.width=320,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(rs)),rs}var os,ss=is(),ls={};function cs(){return os||(os=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-right",n=[9002],a="f054",r="M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z";e.definition={prefix:"fas",iconName:t,icon:[320,512,n,a,r]},e.faChevronRight=e.definition,e.prefix="fas",e.iconName=t,e.width=320,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(ls)),ls}var fs=cs(),us={table:"Table-module_table__6A8SM",sortable:"Table-module_sortable__J6kyp",sortArrow:"Table-module_sortArrow__Nrncn",asc:"Table-module_asc__tJDI9",desc:"Table-module_desc__fjVRY",isRowSelected:"Table-module_isRowSelected__UhIAJ",isRowDisabled:"Table-module_isRowDisabled__sz3NJ",loadingSpinner:"Table-module_loadingSpinner__SSjMK",pagination:"Table-module_pagination__VXgcO"},ds="Button-module_button__Ed1ge",hs="Button-module_noIcon__Uzjvv",ms="Button-module_noBox__mLreC",ps="Button-module_customIcon__-slpC",gs="Button-module_iconWithText__DQRkr",vs="Button-module_default__HhXlQ",bs="Button-module_outline__Flf4r",ys="Button-module_float__4marx",xs="Button-module_primary__xByv0",ws="Button-module_secondary__D0K-F",js="Button-module_danger__5-vIq",ks="Button-module_grouped__j8KwB";const Ns=t.forwardRef(function({disabled:t=!1,kind:n="default",type:a="button",icon:r,iconNode:i,children:o,grouped:s,onClick:l,id:c,className:f,form:u,noBox:d,autoFocus:h,...m},p){return e.jsxs("button",{...m,id:c,ref:p,type:a,"data-testid":m["data-testid"],disabled:t,onClick:l,form:u,autoFocus:h,"aria-label":m["aria-label"],className:Go(ds,s?ks:"",Ss(n),f,d&&ms,i&&ps,!r&&!i&&hs),children:[r?e.jsx(Qa,{icon:r,className:o?gs:""}):null,i,o]})});function Ss(e){switch(e){case"default":return vs;case"primary":return xs;case"secondary":return ws;case"danger":return js;case"outline":return bs;case"float":return ys;default:throw Error(`Unsupported kind ${e}`)}}function Cs({sortByDirection:n,sortBy:a,updateSortParams:r,table:i,tableBodyRef:o,className:s,isLoading:l,itemsPerPage:c}){const f=n&&a&&r,[u,d]=t.useState(0);return l?e.jsx("div",{className:us.loadingSpinner}):e.jsxs(e.Fragment,{children:[e.jsxs("table",{className:Or(us.table,{[s||""]:s}),"data-testid":"table-ui",children:[e.jsx("thead",{children:e.jsx("tr",{children:i.headRow.map(({sortable:o,label:s,name:l,...c},u)=>o&&"not-filled"!==i.type&&f?t.createElement("th",{...c,key:u,className:us.sortable,onClick:()=>r(l)},s,e.jsx("span",{className:Or(us.sortArrow,{[us[n]]:a===l})})):e.jsx("th",{...c,children:s},u))})}),e.jsx("tbody",{ref:o,children:"not-filled"===i.type?e.jsx("tr",{className:null==i?void 0:i.bodyClassName,children:e.jsx("td",{colSpan:i.headRow.length,children:i.value})}):Ts(i.bodyRows,u,c).map(({cells:t,isRowSelected:n,isRowDisabled:a,className:r,onClick:i,onDoubleClick:o,onContextMenu:s,...l})=>{const c=Math.random();return e.jsx("tr",{...l,onClick:i,onDoubleClick:o,onContextMenu:s,className:Or(r,{[us.isRowSelected]:n,[us.isRowDisabled]:a}),children:t&&t.map(({style:t,value:n,...a},r)=>e.jsx("td",{style:t,...a,children:n},c+r))},c)})})]}),e.jsx(_s,{bodyRows:"filled"===i.type?i.bodyRows:void 0,itemsPerPage:c,currPage:u,setCurrPage:d})]})}function Ts(e,t,n){return n?e.slice(t*n,n*(t+1)):e}function _s({itemsPerPage:t,currPage:n,setCurrPage:a,bodyRows:r}){if(!t)return null;const i=!!r&&Ts(r,n+1,t).length>0,o=!!r&&Ts(r,n-1,t).length>0;return e.jsxs("nav",{className:us.pagination,children:[e.jsx(Ns,{"aria-label":"Previous Page",disabled:!o,kind:"float",icon:ss.faChevronLeft,onClick:()=>a(n-1)}),e.jsx(Ns,{disabled:!i,"aria-label":"Next Page",kind:"float",icon:fs.faChevronRight,onClick:()=>a(n+1)})]})}function Ms({numTicks:n,sampleRate:a,units:r,tableBodyRef:i,palette:o}){const s=pr(n,a,r),l=s.format(n,a),c=yo(),f=t.useCallback((e,t,n)=>{var i;const f=null===(i=n.target.closest("tr"))||void 0===i?void 0:i.dataset.row;if(!f)return void t();const[u,d,...h]=f.split(";");switch(u){case"single":{const[t,n]=h,i=s.format(parseInt(t,10),a),o=s.format(parseInt(n,10),a),c=l.split(" "),f="<"===c[0]?c[1]:c[0],u=i.split(" "),m="<"===u[0]?u[1]:u[0],p=o.split(" "),g="<"===p[0]?p[1]:p[0];e({title:{text:d,diff:{text:"",color:""}},tooltipData:[{units:r,self:`${i}(${(parseFloat(m)/parseFloat(f)*100).toFixed(2)}%)`,total:`${o}(${(parseFloat(g)/parseFloat(f)*100).toFixed(2)}%)`,tooltipType:"table"}]});break}case"double":{const[t,n,i,l]=h,f=Ro({formatter:s,sampleRate:a,totalLeft:parseInt(t,10),leftTicks:parseInt(n,10),totalRight:parseInt(i,10),rightTicks:parseInt(l,10),title:d,units:r},o,c);e({title:f.title,tooltipData:f.tooltipData});break}}},[s,a,r,l,o,c]);return e.jsx(Co,{dataSourceRef:i,shouldShowTitle:!1,clickInfoSide:"left",setTooltipContent:f,palette:o})}var Rs="ProfilerTable-module_tableContextMenu__7Svm8",Ps="ProfilerTable-module_sandwichItem__b9Ipy";const Fs=e=>e||0;function Es(e,t,n,a){const r=t;return r.type="single",r.self=Fs(r.self)+e.getBarSelf(n,a),r.total=Fs(r.total)+e.getBarTotal(n,a),r}function Is(e,t,n,a,r,i){const o=t;return o.type="double",o.self=Fs(o.self)+e.getBarSelf(n,a),o.total=Fs(o.total)+e.getBarTotal(n,a),o.selfLeft=Fs(o.selfLeft)+e.getBarSelfLeft(n,a),o.selfRght=Fs(o.selfRght)+e.getBarSelfRght(n,a),o.selfDiff=Fs(o.selfDiff)+e.getBarSelfDiff(n,a),o.totalLeft=Fs(o.totalLeft)+e.getBarTotalLeft(n,a),o.totalRght=Fs(o.totalRght)+e.getBarTotalRght(n,a),o.totalDiff=Fs(o.totalDiff)+e.getBarTotalDiff(n,a),o.leftTicks=r,o.rightTicks=i,o}function Ds(e,t){if(!e||!e.levels)return null;const{names:n,levels:a,format:r}=e,i=ar(r);let o=null;for(let e=0;e<a.length;e++){const r=a[e];for(let a=0;a<r.length;a+=i.jStep){if(n[i.getBarName(r,a)]===t){const t=i.getBarTotal(r,a);(!o||t>o.total)&&(o={i:e,j:a,total:t})}}}return o?{i:o.i,j:o.j}:null}function As(e,t,n){const a=148-e/t*148,r=n.alpha(1);return{backgroundImage:`linear-gradient(${r}, ${r})`,backgroundPosition:`-${a}px 0px`,backgroundRepeat:"no-repeat"}}const Os=({flamebearer:t,sortBy:n,sortByDirection:a,fitMode:r,handleTableItemClick:i,highlightQuery:o,palette:s,selectedItem:l,messages:c,onRowContextMenu:f,onRowDoubleClick:u})=>{const{numTicks:d,maxSelf:h,sampleRate:m,spyName:p,units:g}=t,v=function(e){if(!e)return[];const{names:t,levels:n,format:a}=e,r="double"!==a?tr:nr,i=new Map;for(let o=0;o<n.length;o++){const s=n[o];for(let n=0;n<s.length;n+=r.jStep){const o=t[r.getBarName(s,n)];i.has(o)||i.set(o,{name:o||"<empty>",self:0,total:0});const l=i.get(o);if(!l)break;"single"===a?Es(tr,l,s,n):Is(nr,l,s,n,e.leftTicks,e.rightTicks)}}return Array.from(i.values())}(t).sort((e,t)=>t.total-e.total),b="asc"===a?1:-1;let y;if("name"===n)y=v.sort((e,t)=>b*e[n].localeCompare(t[n]));else switch(n){case"total":case"self":y=v.sort((e,t)=>b*(e[n]-t[n]));break;case"baseline":y=v.sort((e,t)=>b*(e.totalLeft/e.leftTicks-t.totalLeft/t.leftTicks));break;case"comparison":y=v.sort((e,t)=>b*(e.totalRght/e.rightTicks-t.totalRght/t.rightTicks));break;case"diff":y=v.sort((e,t)=>{const n=mr(hr(e.totalLeft/e.leftTicks),hr(e.totalRght/e.rightTicks)),a=mr(hr(t.totalLeft/t.leftTicks),hr(t.totalRght/t.rightTicks));return b*(n-a)});break;default:y=v}const x=pr(d,m,g),w=e=>!!l.isJust&&e===l.value,j=t=>{return e.jsx("button",{className:"table-item-button",children:e.jsx("div",{className:"symbol-name",style:(n=r,n===xr?{direction:"rtl",overflow:"hidden",textOverflow:"ellipsis"}:{overflow:"hidden",textOverflow:"ellipsis"}),children:t.name})});var n},k=y.filter(e=>!o||Tr(o,e.name)).map(e=>{if("double"===e.type)return(e=>{const t=hr(e.totalLeft/e.leftTicks),n=hr(e.totalRght/e.rightTicks),a=mr(t,n);let r="";a>0?r=s.badColor.rgb().string():a<0&&(r=s.goodColor.rgb().string());let o="";return e.totalLeft&&a!==1/0?e.totalRght?a>0?o=`+${a.toFixed(2)}%`:a<0&&(o=`${a.toFixed(2)}%`):o=c.diffRemoved:o=c.diffNew,{"data-row":`${e.type};${e.name};${e.totalLeft};${e.leftTicks};${e.totalRght};${e.rightTicks}`,isRowSelected:w(e.name),onClick:()=>i(e),onContextMenu:t=>f(t,e.name),onDoubleClick:()=>u(e.name),cells:[{value:j(e)},{value:`${t} %`},{value:`${n} %`},{value:o,style:{color:r}}]}})(e);const t=Nr(p,e.name);return((e,t)=>({"data-row":`${e.type};${e.name};${e.self};${e.total}`,isRowSelected:w(e.name),onClick:()=>i(e),onContextMenu:t=>f(t,e.name),onDoubleClick:()=>u(e.name),cells:[{value:j(e)},{value:x.format(e.self,m),style:As(e.self,h,t)},{value:x.format(e.total,m),style:As(e.total,d,t)}]}))(e,Sr(s,t))});return k.length>0?{bodyRows:k,type:"filled"}:{value:e.jsx("div",{className:"unsupported-format",children:c.noItemsFound}),type:"not-filled"}};function zs({tableBodyRef:n,flamebearer:a,isDoubles:r,fitMode:i,handleTableItemClick:o,highlightQuery:s,selectedItem:l,palette:c,onFocusOnNode:f,updateView:u,enableSandwichView:d=!0}){const h=yo(),[m,p]=qi({transition:!0}),[g,v]=t.useState({x:0,y:0}),[b,y]=t.useState(null),x=t.useCallback(e=>{if(!f)return;const t=Ds(a,e);t&&f(t.i,t.j)},[a,f]),w=t.useCallback((e,t)=>{e.preventDefault(),v({x:e.clientX,y:e.clientY}),y(t),p(!0)},[p]),j=t.useCallback(()=>{p(!1),y(null)},[p]),k=t.useCallback(()=>{if(!b||!f)return;const e=Ds(a,b);e&&f(e.i,e.j),j()},[b,a,f,j]),N=t.useCallback(()=>{b&&navigator.clipboard&&(navigator.clipboard.writeText(b),j())},[b,j]),S=t.useCallback(()=>{b&&(o({name:b}),j())},[b,o,j]),C=t.useCallback(()=>{b&&u&&(u("sandwich"),o({name:b}),j())},[b,u,o,j]),T=t.useMemo(()=>r?[{sortable:1,name:"name",label:h.location},{sortable:1,name:"baseline",label:h.baseline,default:!0},{sortable:1,name:"comparison",label:h.comparison},{sortable:1,name:"diff",label:h.diff}]:[{sortable:1,name:"name",label:h.location},{sortable:1,name:"self",label:h.self,default:!0},{sortable:1,name:"total",label:h.total}],[h,r]),_=(e=>{const n=e.filter(e=>null==e?void 0:e.default)[0]||e[0],[a,r]=t.useState(n.name),[i,o]=t.useState("desc");return{sortBy:a,sortByDirection:i,updateSortParams:e=>{let t=i;t=a===e?"asc"===t?"desc":"asc":"desc",r(e),o(t)}}})(T),M={headRow:T,...Os({flamebearer:a,sortBy:_.sortBy,sortByDirection:_.sortByDirection,fitMode:i,handleTableItemClick:o,highlightQuery:s,palette:c,selectedItem:l,messages:h,onRowContextMenu:w,onRowDoubleClick:x})},R=l.isJust&&l.value===b;return e.jsxs(e.Fragment,{children:[e.jsx(Cs,{..._,tableBodyRef:n,table:M,className:Go("flamegraph-table",{"flamegraph-table-doubles":r})}),e.jsxs(Ui,{...m,anchorPoint:g,onClose:j,className:Rs,children:[f&&e.jsxs(to,{onClick:k,children:[e.jsx(Qa,{icon:as.faCrosshairs}),h.focusOnThisFunction]}),e.jsxs(to,{onClick:N,children:[e.jsx(Qa,{icon:qr.faCopy}),h.copyFunctionName]}),e.jsxs(to,{onClick:S,children:[e.jsx(Qa,{icon:ni.faHighlighter}),R?h.clearHighlight:h.highlightSimilarNodes]}),u&&d&&e.jsxs(to,{onClick:C,className:Ps,children:[e.jsx(zo,{fill:"currentColor"}),h.openInSandwichView]})]})]})}const Ls=t.memo(function({flamebearer:n,fitMode:a,handleTableItemClick:r,highlightQuery:i,palette:o,selectedItem:s,onFocusOnNode:l,updateView:c,enableSandwichView:f}){const u=t.useRef(null),d="double"===n.format;return e.jsxs("div",{"data-testid":"table-view",className:d?"flamegraph-table-wrapper flamegraph-table-wrapper--double":"flamegraph-table-wrapper",children:[e.jsx("div",{className:"flamegraph-table-scroll",children:e.jsx(zs,{tableBodyRef:u,flamebearer:n,isDoubles:d,fitMode:a,highlightQuery:i,handleTableItemClick:r,palette:o,selectedItem:s,onFocusOnNode:l,updateView:c,enableSandwichView:f})}),e.jsx(Ms,{tableBodyRef:u,numTicks:n.numTicks,sampleRate:n.sampleRate,units:n.units,palette:o})]})});var Bs,$s,Vs={},Hs={};function Ws(){return Bs||(Bs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="arrow-rotate-left",n=[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],a="f0e2",r="M256 64c-56.8 0-107.9 24.7-143.1 64l47.1 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 192c-17.7 0-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0S64 14.3 64 32l0 54.7C110.9 33.6 179.5 0 256 0 397.4 0 512 114.6 512 256S397.4 512 256 512c-87 0-163.9-43.4-210.1-109.7-10.1-14.5-6.6-34.4 7.9-44.6s34.4-6.6 44.6 7.9c34.8 49.8 92.4 82.3 157.6 82.3 106 0 192-86 192-192S362 64 256 64z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,a,r]},e.faArrowRotateLeft=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Hs)),Hs}function Us(){return $s||($s=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Ws();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faUndo=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(Vs)),Vs}var Js,Qs,Xs=Us(),Ys={},Zs={};function qs(){return Js||(Js=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="diagram-project",n=["project-diagram"],a="f542",r="M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 16 128 0 0-16c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-16-128 0 0 16c0 7.3-1.7 14.3-4.6 20.5l68.6 91.5 80 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-7.3 1.7-14.3 4.6-20.5L128 224 48 224c-26.5 0-48-21.5-48-48L0 80z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,a,r]},e.faDiagramProject=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Zs)),Zs}function Ks(){return Qs||(Qs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=qs();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faProjectDiagram=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(Ys)),Ys}var Gs,el,tl=Ks(),nl={},al={};function rl(){return Gs||(Gs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="ellipsis-vertical",n=["ellipsis-v"],a="f142",r="M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z";e.definition={prefix:"fas",iconName:t,icon:[128,512,n,a,r]},e.faEllipsisVertical=e.definition,e.prefix="fas",e.iconName=t,e.width=128,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(al)),al}function il(){return el||(el=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=rl();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faEllipsisV=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(nl)),nl}var ol=il();function sl(e){if(null!=e&&!1!==e){if("string"==typeof e||"number"==typeof e)return String(e);if(Array.isArray(e)){const t=e.map(e=>sl(e)).filter(e=>!!e);return t.length?t.join(" "):void 0}return t.isValidElement(e)?sl(e.props.children):void 0}}const ll=({placement:t,title:n,content:a,children:r})=>{const i=sl(null!=n?n:a);return i?e.jsx("span",{title:i,children:r}):e.jsx(e.Fragment,{children:r})};var cl,fl={};function ul(){return cl||(cl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="link",n=[128279,"chain"],a="f0c1",r="M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,a,r]},e.faLink=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(fl)),fl}var dl=ul(),hl="Input-module_input__ulQdV";const ml=t.forwardRef(({testId:t,className:n,type:a,name:r,placeholder:i,minLength:o=0,debounceTimeout:s=100,onChange:l,value:f,htmlId:u},d)=>e.jsx(c.DebounceInput,{inputRef:d,"data-testid":t,className:`${hl} ${n||""}`,type:a,name:r,placeholder:i,minLength:o,debounceTimeout:s,onChange:l,value:f,id:u}));var pl="SharedQueryInput-module_wrapper__XRxrd",gl="SharedQueryInput-module_search__XlzRv",vl="SharedQueryInput-module_search-synced__J4T4b",bl="SharedQueryInput-module_searchWithSync__ryuQa",yl="SharedQueryInput-module_icon__Aq0Hv",xl="SharedQueryInput-module_checked__oRvod",wl="SharedQueryInput-module_sync__0IO2N",jl="SharedQueryInput-module_syncSelected__hstBI";const kl=({onHighlightChange:n,highlightQuery:a,sharedQuery:r,width:i})=>{const o=yo(),s=(e=>{const n=t.useRef();return t.useEffect(()=>{n.current=e},[e]),n.current})(null==r?void 0:r.syncEnabled);t.useEffect(()=>{"string"==typeof(null==r?void 0:r.searchQuery)&&(r.syncEnabled&&n(r.searchQuery),!r.syncEnabled&&s&&s!==(null==r?void 0:r.id)&&n(""))},[null==r?void 0:r.searchQuery,null==r?void 0:r.syncEnabled]);const l=t.useMemo(()=>r&&r.syncEnabled?r.searchQuery||"":a,[r,a]),c=t.useMemo(()=>`${r?bl:gl} ${(null==r?void 0:r.syncEnabled)?vl:""}`,[r]),f=(null==r?void 0:r.syncEnabled)?o.unsyncSearchBars:o.syncSearchBars;return e.jsxs("div",{className:pl,style:{width:i},children:[e.jsx(ml,{testId:"flamegraph-search",className:c,type:"search",name:"flamegraph-search",placeholder:o.searchPlaceholder,minLength:1,debounceTimeout:100,onChange:e=>{n(e.target.value),r&&r.syncEnabled&&r.onQueryChange(e.target.value)},value:l}),r?e.jsx(ll,{placement:"top",title:f,children:e.jsx("button",{className:r.syncEnabled?jl:wl,onClick:()=>{const e=!(null==r?void 0:r.syncEnabled)&&(null==r?void 0:r.id);null==r||r.toggleSync(e),e?null==r||r.onQueryChange(a):(n(a),null==r||r.onQueryChange(""))},children:e.jsx(Qa,{className:`${r.syncEnabled?xl:yl}`,icon:dl.faLink})})}):null]})};var Nl="DiffLegend-module_flamegraph-legend__Cywr1",Sl="DiffLegend-module_flamegraph-legend-list__swdXj",Cl="DiffLegend-module_flamegraph-legend-item__0P-6g";function Tl(t){const{palette:n,showMode:a}=t,r=function(e){switch(e){case"large":return[-100,-80,-60,-40,-20,-10,0,10,20,40,60,80,100];case"small":return[-100,-40,-20,0,20,40,100];default:throw new Error(`Unsupported ${e}`)}}(a),i=Cr(n);return e.jsx("div",{"data-testid":"flamegraph-legend",className:`${Nl} ${Sl}`,children:r.map(t=>e.jsxs("div",{className:Cl,style:{backgroundColor:i(t).rgb().toString()},children:[t>0?"+":"",t,"%"]},t))})}function _l(){return e.jsx("svg",{version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"12px",height:"12px",viewBox:"0 0 405.272 405.272",children:e.jsx("g",{children:e.jsx("path",{d:"M393.401,124.425L179.603,338.208c-15.832,15.835-41.514,15.835-57.361,0L11.878,227.836\n\n\t\tc-15.838-15.835-15.838-41.52,0-57.358c15.841-15.841,41.521-15.841,57.355-0.006l81.698,81.699L336.037,67.064\n\n\t\tc15.841-15.841,41.523-15.829,57.358,0C409.23,82.902,409.23,108.578,393.401,124.425z"})})})}var Ml="Dropdown-module_dropdownMenu__tbN8r",Rl="Dropdown-module_dropdownMenuButton__Xy8M4";function Pl({id:t,children:n,className:a,disabled:r,value:i,label:o,onItemClick:s,overflow:l,position:c,direction:f,align:u,viewScroll:d,arrow:h,menuButtonClassName:m="",ariaLabel:p,portal:g,...v}){const b=v.menuButton||e.jsx(El,{"aria-label":p,className:`${Rl} ${m}`,disabled:r,type:"button",children:i||o});return e.jsxs(Gi,{id:t,"aria-label":p,className:Go(a,Ml),"data-testid":v["data-testid"],onItemClick:s,overflow:l,position:c,direction:f,align:u,viewScroll:d,arrow:h,menuButton:b,portal:g,children:[e.jsx(no,{children:o}),n]})}const Fl=to,El=Ii;var Il="DiffLegendPaletteDropdown-module_container__h8Tts",Dl="DiffLegendPaletteDropdown-module_triggerButton__oezA6",Al="DiffLegendPaletteDropdown-module_dropdownArrow__-Lu0w",Ol="DiffLegendPaletteDropdown-module_menuItem__5iWry",zl="DiffLegendPaletteDropdown-module_menuItemText__a-tt0";const Ll=[co,fo],Bl=t=>{const{palette:n=co,onChange:a}=t,r=yo(),i=e=>"Default"===e.name?r.paletteDefaultName:"Color Blind"===e.name?r.paletteColorBlindName:e.name,o=e=>"Default"===e.name?r.paletteDefaultDesc:"Color Blind"===e.name?r.paletteColorBlindDesc:"";return e.jsx("div",{className:Il,children:e.jsx(Pl,{label:r.diffLegendSelectPalette,align:"end",menuButton:e.jsxs(El,{className:Go(Rl,Dl),children:[e.jsx(Tl,{palette:n,showMode:"small"}),e.jsx("span",{className:Al})]}),onItemClick:e=>{e.value&&a(e.value)},children:Ll.map(t=>e.jsx(Fl,{value:t,children:e.jsxs("div",{className:Ol,children:[e.jsxs("span",{className:zl,children:[i(t)," ",o(t)]}),t.name===n.name&&e.jsx(_l,{})]})},t.name))})})};var $l={navbar:"Toolbar-module_navbar__XN6xZ",searchWrapper:"Toolbar-module_searchWrapper__k--ua",rightSection:"Toolbar-module_rightSection__if7LO",viewType:"Toolbar-module_viewType__AKARg",toggleViewButton:"Toolbar-module_toggleViewButton__OQ9-U",fitModeButton:"Toolbar-module_fitModeButton__jOxve",selected:"Toolbar-module_selected__vwBQt",collapseNodeButton:"Toolbar-module_collapseNodeButton__bLdiw",resetViewButton:"Toolbar-module_resetViewButton__y2ebV",divider:"Toolbar-module_divider__dG6pE",itemsContainer:"Toolbar-module_itemsContainer__gSTMF",item:"Toolbar-module_item__o-hKc",moreButton:"Toolbar-module_moreButton__rhOdT",active:"Toolbar-module_active__36Kt-",navbarCollapsedItems:"Toolbar-module_navbarCollapsedItems__vojhw"};const Vl=b.bind($l),Hl=(e,t,n)=>{const a=0===t?e-360-5:e-360-16-5;let r=0,i=0;return n.reverse().forEach(e=>{i+=e,a<=i&&(r+=1)}),r},Wl=()=>e.jsx("div",{className:$l.divider}),Ul=t.memo(({view:n,handleSearchChange:a,highlightQuery:r,isFlamegraphDirty:i,reset:s,updateFitMode:l,fitMode:c,updateView:f,selectedNode:u,onFocusOnSubtree:d,flamegraphType:h,enableChangingDisplay:m=!0,sharedQuery:p,ExportData:g,palette:v,setPalette:b})=>{const y=t.useRef(null),x=yo(),w="double"===h&&v&&b,j=[{el:e.jsxs(e.Fragment,{children:[e.jsx(Xl,{fitMode:c,updateFitMode:l}),e.jsx(Wl,{})]}),width:93},{el:e.jsx(Ql,{isFlamegraphDirty:i,reset:s}),width:44},{el:e.jsxs(e.Fragment,{children:[e.jsx(Jl,{selectedNode:u,onFocusOnSubtree:d}),e.jsx(Wl,{})]}),width:49},m?{el:e.jsx(Zl,{flamegraphType:h,view:n,updateView:f}),width:44*("single"===h?5:3)}:null,t.isValidElement(g)?{el:e.jsxs(e.Fragment,{children:[e.jsx(Wl,{}),g]}),width:49}:null].filter(e=>null!==e),k=j.reduce((e,t)=>[...e,t.width],[]),{isCollapsed:N,collapsedItemsNumber:S,handleMoreClick:C}=((e,n)=>{const[a,r]=t.useState(!0),[i,s]=t.useState(0);return t.useLayoutEffect(()=>{if(e.current){const{width:t}=e.current.getBoundingClientRect(),a=Hl(t,i,n);s(a)}},[e.current,n]),o(e,e=>{const{width:t}=e.target.getBoundingClientRect(),a=Hl(t,i,n);s(a),r(!0)}),{isCollapsed:a,handleMoreClick:()=>{r(e=>!e)},collapsedItemsNumber:i}})(y,k),T=j.reduce((e,t,n)=>(n<S?e.hidden.push(t):e.visible.push(t),e),{visible:[],hidden:[]});return e.jsx("div",{role:"toolbar",ref:y,children:e.jsxs("div",{className:$l.navbar,children:[e.jsx("div",{className:$l.searchWrapper,children:e.jsx(kl,{width:360,onHighlightChange:a,highlightQuery:r,sharedQuery:p})}),e.jsxs("div",{className:$l.rightSection,children:[w&&e.jsxs(e.Fragment,{children:[e.jsx(Bl,{palette:v,onChange:b}),e.jsx(Wl,{})]}),e.jsxs("div",{className:$l.itemsContainer,children:[T.visible.map((t,n)=>e.jsx("div",{className:$l.item,style:{width:t.width},children:t.el},n)),0!==S&&e.jsx(ll,{placement:"top",title:x.more,children:e.jsx("button",{onClick:C,className:Vl({[$l.moreButton]:!0,[$l.active]:!N}),children:e.jsx(Qa,{icon:ol.faEllipsisV})})})]})]}),!N&&e.jsx("div",{className:$l.navbarCollapsedItems,children:T.hidden.map((t,n)=>e.jsx("div",{className:$l.item,style:{width:t.width},children:t.el},n))})]})})});function Jl({onFocusOnSubtree:t,selectedNode:n}){const a=yo(),r=n.mapOr(()=>{},e=>()=>t(e.i,e.j));return e.jsx(ll,{placement:"top",title:a.collapseNodesAbove,children:e.jsx("div",{children:e.jsx(Ns,{disabled:!n.isJust,onClick:r,className:$l.collapseNodeButton,"aria-label":a.collapseNodesAbove,children:e.jsx(Qa,{icon:si.faCompressAlt})})})})}function Ql({isFlamegraphDirty:t,reset:n}){const a=yo();return e.jsx(ll,{placement:"top",title:a.resetView,children:e.jsx("span",{children:e.jsx(Ns,{id:"reset",disabled:!t,onClick:n,className:$l.resetViewButton,"aria-label":a.resetView,children:e.jsx(Qa,{icon:Xs.faUndo})})})})}function Xl({fitMode:t,updateFitMode:n}){const a=yo(),r=e=>t===e;return e.jsxs(e.Fragment,{children:[e.jsx(ll,{placement:"top",title:a.headFirst,children:e.jsx(Ns,{onClick:()=>n("HEAD"),className:Vl({[$l.fitModeButton]:!0,[$l.selected]:r("HEAD")}),children:e.jsx(Lo,{})})}),e.jsx(ll,{placement:"top",title:a.tailFirst,children:e.jsx(Ns,{onClick:()=>n("TAIL"),className:Vl({[$l.fitModeButton]:!0,[$l.selected]:r("TAIL")}),children:e.jsx(Bo,{})})})]})}const Yl=(t,n)=>"single"===t?[{label:n.viewTable,value:"table",Icon:Do},{label:n.viewTableAndFlamegraph,value:"both",Icon:Ao},{label:n.viewFlamegraph,value:"flamegraph",Icon:Oo},{label:n.viewSandwich,value:"sandwich",Icon:zo},{label:n.viewGraphviz,value:"graphviz",Icon:()=>e.jsx(Qa,{icon:tl.faProjectDiagram})}]:[{label:n.viewTable,value:"table",Icon:Do},{label:n.viewTableAndFlamegraph,value:"both",Icon:Ao},{label:n.viewFlamegraph,value:"flamegraph",Icon:Oo}];function Zl({view:t,updateView:n,flamegraphType:a}){const r=yo(),i=Yl(a,r);return e.jsx("div",{className:$l.viewType,children:i.map(({label:a,value:r,Icon:i})=>e.jsx(ll,{placement:"top",title:a,children:e.jsx(Ns,{"data-testid":r,onClick:()=>n(r),className:Vl({[$l.toggleViewButton]:!0,selected:t===r}),children:e.jsx(i,{})})},r))})}function ql(e,t){const n={},a={};let r={name:"total",children:[],self:[],total:[],key:"/total"};return(t?[e,t]:[e]).forEach((e,t)=>{var i,o;for(let s=0;s<e.levels.length;s+=1)for(let l=0;l<e.levels[s].length;l+=4){const c=[t,s,l].join("/"),f=e.names[e.levels[s][l+3]],u=e.levels[s][l+0],d=e.levels[s][l+1],h=e.levels[s][l+2];let m="";if(0!==s){const n=s-1,r=e.levels[n];for(let e=0;e<r.length;e+=4){const i=r[e+0],o=r[e+1];if(u>=i&&u<i+o){const r=[t,n,e].join("/");m=a[r].key;break}}}const p=[m||"",f].join("/"),g=!n[p];n[p]||(n[p]={name:f,children:[],self:[],total:[],key:p});const v=n[p];(i=v.total)[t]||(i[t]=0),v.total[t]+=d,(o=v.self)[t]||(o[t]=0),v.self[t]+=h,a[c]=v,m&&g&&n[m].children.push(v),0===s&&(r=v)}}),r}const Kl=e=>{const t={maxSelf:100,names:[],levels:[]},n=(e,a,r)=>{var i;const{name:o,children:s,self:l,total:c,offset:f}=e;t.names.push(o),(i=t.levels)[a]||(i[a]=[]),t.maxSelf=Math.max(t.maxSelf,l[0]||0),t.levels[a]=t.levels[a].concat([r,c[0]||0,l[0]||0,t.names.length-1]);for(let e=0;e<s.length;e+=1){r+=n(s[e],a+1,r)}return f||c[0]||0};return n(e,0,0),t};function Gl(e){const t=new Map;for(let n=0;n<e.children.length;n+=1)t.has(e.children[n].name)||t.set(e.children[n].name,e.children[n]);for(let n=0;n<e.children.length;n+=1){const a=e.children[n],r=t.get(e.children[n].name);r&&r!==a&&(r.total[0]+=a.total[0],r.self[0]+=a.self[0],r.children=r.children.concat(a.children))}e.children=Array.from(t.values());for(let t=0;t<e.children.length;t+=1)Gl(e.children[t])}function ec(e,t){const n=function(e,t){const n=ql(e),a={format:"single",numTicks:0,maxSelf:100,sampleRate:100,names:[],levels:[],units:e.units,spyName:e.spyName},r={name:t,total:[],self:[0],children:[]},i=e=>{e.name===t&&(a.numTicks+=e.total[0],r.total=[a.numTicks],r.children=r.children.concat(e.children));for(let t=0;t<e.children.length;t+=1)i(e.children[t])};return i(n),Gl(r),{...a,...Kl(r)}}(JSON.parse(JSON.stringify(e)),t);return n}function tc(e,t){const n=function(e,t){const n=ql(e),a={format:"single",maxSelf:100,sampleRate:100,numTicks:0,names:[],levels:[],units:e.units,spyName:e.spyName},r=[],i=[],o={name:t,total:[0],self:[0],children:[]},s=(e,n=[])=>{const o=n.concat([{...e,children:[]}]);e.name===t&&(i.push(o),r.push(e.total[0]),a.numTicks+=e.total[0]);for(let t=0;t<e.children.length;t+=1)s(e.children[t],o)};s(n),i.forEach((e,t)=>{o.children.push(((e,t)=>{const n={};let a=n;return e.forEach(({name:e,...n})=>{const r={name:e,...n,total:[t]};a.children=[r],a=r}),n.children[0]})(e.reverse(),r[t]))}),Gl(o);const l=Kl(o);return l.levels=l.levels.reverse().slice(0,-1),{...a,...l}}(JSON.parse(JSON.stringify(e)),t);return n}var nc={flamegraphContainer:"FlamegraphRenderer-module_flamegraphContainer__-7FRV",createdBy:"FlamegraphRenderer-module_createdBy__rHAOT",horizontal:"FlamegraphRenderer-module_horizontal__zs7--",vertical:"FlamegraphRenderer-module_vertical__fRcHg",panesWrapper:"FlamegraphRenderer-module_panesWrapper__L-mlA",tablePane:"FlamegraphRenderer-module_tablePane__Gin7Y",sandwichPane:"FlamegraphRenderer-module_sandwichPane__IEOyR",sandwichPaneInfo:"FlamegraphRenderer-module_sandwichPaneInfo__5hT4a",arrow:"FlamegraphRenderer-module_arrow__dPzpE",sandwichTop:"FlamegraphRenderer-module_sandwichTop__7N0ZY",sandwichBottom:"FlamegraphRenderer-module_sandwichBottom__Dc64g",name:"FlamegraphRenderer-module_name__XRbN9"};function ac(e){const t=[];return Object.keys(e).forEach(n=>{var a;t.push(`${n}="${a=String(e[n]||""),a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`)}),`[${t.join(" ")}]`}function rc(e,t){return`${(100*e/t).toFixed(2)}%`}function ic(e,t){let n,a,r,i;t?(n=.1,a=.93):(n=1,a=.7),e=Math.max(-1,Math.min(1,e)),Math.abs(e)<.2&&(n*=Math.abs(e)/.2),e>0&&(e**=1-.7),e<0&&(e=-((-e)**(1-.7))),e<0?(i=a,r=a*(1+n*e)):(r=a,i=a*(1-n*e));const o=a*(1-n);return`#${Math.floor(255*r).toString(16).padStart(2,"0")}${Math.floor(255*i).toString(16).padStart(2,"0")}${Math.floor(255*o).toString(16).padStart(2,"0")}`}function oc(e,t,n,a){const{self:r}=t,{total:i}=t,o=t.name.replace(/"/g,'\\"'),s=e(r),l=8+Math.ceil(16*Math.sqrt(r/n)),c=ic(i/a,!1),f=ic(i/a,!0),u=function(e,t,n,a,r){let i="";i=`${function(e){return e.replace(/.*\//,"")}(t)}\n`;const o=e(n);0!==n?i=`${i+o} (${rc(n,r)})`:i+="0";let s=o;a!==n&&(i+=0!==n?"\n":" ",s=e(a),i=`${i}of ${s} (${rc(a,r)})`);return i}(e,o,r,i,a),d={label:u,id:`node${t.index}`,fontsize:l,shape:"box",tooltip:`${o} (${s})`,color:c,fontcolor:"#000000",style:"filled",fontname:"",fillcolor:f};return`N${t.index} ${ac(d)}`}function sc(e){if("double"===e.metadata.format)return"diff flamegraphs are not supported";const t=ql(e.flamebearer),n=[],a=[];const[r,i,,o]=function e(t,n,a,r,i){return t.children.forEach(t=>{const[o,s]=e(t,n,a,r,i);n=Math.max(n,o),a=Math.max(a,s)}),n=Math.max(n,t.self[0]),a=Math.max(a,t.total[0]),r+=t.self[0],i+=t.total[0],[n,a,r,i]}(t,0,0,0,0),{sampleRate:s,units:l}=e.metadata,c=pr(i,s,l),f=e=>c.format(e,s,!0);let u={};const d={};let h=0;function m(e,t){return-1===t.indexOf(e.name)&&(u[e.name]?(u[e.name].self+=e.self[0],u[e.name].total+=e.total[0]):(h+=1,u[e.name]={index:h,name:e.name,self:e.self[0],total:e.total[0],parents:[],children:[]})),e.children.forEach(n=>{const a=m(n,t.concat([e.name])),r=`${e.name}/${n.name}`;n.name!==e.name&&(d[r]?d[r].weight+=n.total[0]:d[r]={from:u[e.name],to:a,weight:n.total[0],residual:!1},a.parents.push(d[r]),u[e.name].children.push(d[r]))}),u[e.name]}t.children.forEach(e=>{m(e,[])});const p=.005*o,g=.001*o;function v(e,t){let n=0,a=t;if(e.forEach(e=>{e.weight>0&&(a+=Math.abs(e.weight))}),0!==a&&(e.forEach(e=>{const t=Math.abs(e.weight)/a;n+=-t*Math.log2(t)}),t>0)){const e=Math.abs(t)/a;n+=-e*Math.log2(e)}return n}Object.keys(u).forEach(e=>{u[e].total<p&&delete u[e]});const b={};Object.keys(u).forEach(e=>{b[u[e].name]=function(e){let t=0;return 0===e.parents.length?t+=1:t+=v(e.parents,0),0===e.children.length?t+=1:t+=v(e.children,e.self),t*e.total+e.self}(u[e])});const y=Object.values(u).sort((e,t)=>{const n=b[e.name],a=b[t.name];return n!==a?a-n:e.name!==t.name?e.name<t.name?-1:1:e.self!==t.self?a-n:e.name<t.name?-1:1}),x={};function w(e){const[t,n]=[e.from,e.to],a={},r=[n];for(;r.length>0;){const n=r.shift();for(let i=0;i<n.parents.length;i+=1){const o=n.parents[i];if(e!==o&&!a[o.from.name]){if(o.from===t)return!0;a[o.from.name]=!0,r.push(o.from)}}}return!1}return y.forEach(e=>{x[e.name]=e}),y.slice(80).forEach(e=>{delete x[e.name]}),function e(t,n){const a=!x[t.name];t.children.forEach(r=>{const i=!x[r.name];if(e(r,a?n:t),!i&&n&&a){const e=`${n.name}/${r.name}`;d[e]||(d[e]={from:u[n.name],to:u[r.name],weight:0,residual:!0}),d[e].weight+=r.total[0],d[e].residual=!0}})}(t,null),u=x,y.reverse().forEach(e=>{const t=e.parents.sort((e,t)=>t.weight-e.weight),n=[];for(let e=0;e<t.length;e+=1){const a=t[e];if(!a.residual)break;w(a)&&(n.push(a),delete d[`${a.from.name}/${a.to.name}`])}n.forEach(e=>{e.from.children=e.from.children.filter(t=>t.to!==e.to),e.to.parents=e.to.parents.filter(t=>t.from!==e.from)})}),Object.keys(d).forEach(e=>{const t=d[e];u[t.from.name]||delete d[e],u[t.to.name]||delete d[e],t.weight<g&&delete d[e]}),Object.keys(u).forEach(e=>{n.push(oc(f,u[e],r,i))}),Object.keys(d).forEach(e=>{a.push(function(e,t,n){const a=t.from.name.replace(/"/g,'\\"'),r=t.to.name.replace(/"/g,'\\"'),i=t.weight,o=e(t.weight),s=`${a} -> ${r} (${o})`,l={label:o,weight:1+100*i/n,penwidth:1+5*i/n,tooltip:s,labeltooltip:s,fontname:"",color:ic(i/n,!1),style:t.residual?"dotted":""};return`N${t.from.index} -> N${t.to.index} ${ac(l)}`}(f,d[e],i))}),`digraph "unnamed" {\n fontname= ""\n ${n.join("\n")}\n ${a.join("\n")}\n }`}var lc="GraphVizPanel-module_graphVizPane__B18cQ";const cc=()=>null;function fc({flamebearer:n}){var a,r;const i=n,o=(null===(a=i.metadata)||void 0===a?void 0:a.format)&&(null===(r=i.flamebearer)||void 0===r?void 0:r.levels),s=`graphviz-pane-${(null==i?void 0:i.appName)||String((new Date).valueOf())}`,l=t.useMemo(()=>sc(i),[JSON.stringify(i)]);return e.jsx("div",{className:lc,children:o?e.jsx(cc,{options:{zoom:!0,width:"150%",height:"100%",scale:1,useWorker:!1},dot:l}):e.jsx("div",{children:"NO DATA"})},s)}function uc(e,t){const n=[...t];function a(e,t,n){for(const a of e){let e=0;for(let r=t;r<a.length;r+=n)a[r]-=e,e+=a[r]+a[r+1]}}return"double"===e?(a(n,0,7),a(n,3,7)):a(n,0,4),n}function dc(e,t){const n=[...t];function a(e,t,n){for(const a of e){let e=0;for(let r=t;r<a.length;r+=n)a[r]+=e,e=a[r]+a[r+1]}}return"double"===e?(a(n,0,7),a(n,3,7)):a(n,0,4),n}function hc(e){if(e.profile&&e.flamebearer&&console.warn("'profile' and 'flamebearer' properties are mutually exclusive. Please use profile if possible."),e.profile){const n={...e.profile,flamebearer:{...e.profile.flamebearer}};n.flamebearer.levels=JSON.parse(JSON.stringify(n.flamebearer.levels)),(t=n).flamebearer.levels=dc(t.metadata.format,t.flamebearer.levels);const a={...n,...n.metadata,...n.flamebearer,flamebearer:void 0,metadata:void 0};return delete a.flamebearer,delete a.metadata,a}var t;if(e.flamebearer)return e.flamebearer;return{format:"single",names:[],units:"unknown",levels:[[]],spyName:"unknown",numTicks:0,sampleRate:0,maxSelf:0}}class mc extends t.Component{constructor(t){super(t),this.resetFlamegraphState={focusedNode:n.Maybe.nothing(),zoom:n.Maybe.nothing()},this.initialFlamegraphState=this.resetFlamegraphState,this.calcNewConfigs=(e,t)=>{const n=this.state.flamegraphConfigs,a=(e,t,n)=>{const a=(e,t,n)=>e.names[ar(e.format).getBarName(e.levels[t],n)];if(n.isNothing)return!0;try{const r=n,i=a(e,r.value.i,r.value.j);return i===a(t,r.value.i,r.value.j)}catch{return!1}};a(e,t,this.state.flamegraphConfigs.zoom)||(n.zoom=this.resetFlamegraphState.zoom);return a(e,t,this.state.flamegraphConfigs.focusedNode)||(n.focusedNode=this.resetFlamegraphState.focusedNode),n},this.onSearchChange=e=>{this.setState({searchQuery:e})},this.isSameFlamebearer=(e,t)=>function(e,t){var n;return e.format===t.format&&e.numTicks===t.numTicks&&e.sampleRate===t.sampleRate&&e.units===t.units&&(null===(n=e.names)||void 0===n?void 0:n.length)===(null==t?void 0:t.names.length)&&e.levels.length===t.levels.length&&!!e.names.every((e,n)=>e===t.names[n])&&!!function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){if(e[n].length!==t[n].length)return!1;for(let a=0;a<e[n].length;a++)if(e[n][a]!==t[n][a])return!1}return!0}(e.levels,t.levels)&&JSON.stringify({...e,levels:void 0,names:void 0})===JSON.stringify({...t,levels:void 0,names:void 0})}(e,t),this.onReset=()=>{this.setState({...this.state,flamegraphConfigs:{...this.state.flamegraphConfigs,...this.initialFlamegraphState},selectedItem:n.Maybe.nothing()})},this.onFlamegraphZoom=e=>{e.isJust&&0===e.value.i&&0===e.value.j?this.onReset():this.setState({...this.state,flamegraphConfigs:{...this.state.flamegraphConfigs,zoom:e}})},this.onFocusOnNode=(e,t)=>{if(0===e&&0===t)return void this.onReset();let a={...this.state.flamegraphConfigs};const{zoom:r}=this.state.flamegraphConfigs;r.isJust&&r.value.i<=e&&(a={...a,zoom:this.initialFlamegraphState.zoom}),this.setState({...this.state,flamegraphConfigs:{...a,focusedNode:n.Maybe.just({i:e,j:t})}})},this.setActiveItem=e=>{const{name:t}=e;this.state.selectedItem.isJust&&t===this.state.selectedItem.value?this.setState({selectedItem:n.Maybe.nothing()}):this.setState({selectedItem:n.Maybe.just(t)})},this.getHighlightQuery=()=>this.state.selectedItem.isJust?this.state.selectedItem.value:this.state.searchQuery,this.updateView=e=>{"sandwich"===e&&this.setState({searchQuery:"",flamegraphConfigs:this.resetFlamegraphState}),this.setState({view:e})},this.updateFlamegraphDirtiness=()=>{const e=this.isDirty();this.setState({isFlamegraphDirty:e})},this.updateFitMode=e=>{this.setState({fitMode:e})},this.isDirty=()=>this.state.selectedItem.isJust||JSON.stringify(this.initialFlamegraphState)!==JSON.stringify(this.state.flamegraphConfigs),this.handleSetPalette=e=>{this.setState({palette:e})},this.render=()=>{const t=e.jsx("div",{className:Or(nc.tablePane,"vertical"===this.state.panesOrientation?nc.vertical:nc.horizontal),children:e.jsx(Ls,{"data-testid":"table-view",flamebearer:this.state.flamebearer,fitMode:this.state.fitMode,highlightQuery:this.state.searchQuery,selectedItem:this.state.selectedItem,handleTableItemClick:this.setActiveItem,palette:this.state.palette,onFocusOnNode:this.onFocusOnNode,updateView:this.props.onlyDisplay?void 0:this.updateView,enableSandwichView:this.props.enableSandwichView})},"table-pane"),n=this.shouldShowToolbar(),a=e.jsx(Xo,{showCredit:this.props.showCredit,flamebearer:this.state.flamebearer,highlightQuery:this.getHighlightQuery(),setActiveItem:this.setActiveItem,selectedItem:this.state.selectedItem,updateView:this.props.onlyDisplay?void 0:this.updateView,fitMode:this.state.fitMode,updateFitMode:this.updateFitMode,zoom:this.state.flamegraphConfigs.zoom,focusedNode:this.state.flamegraphConfigs.focusedNode,onZoom:this.onFlamegraphZoom,onFocusOnNode:this.onFocusOnNode,onReset:this.onReset,isDirty:this.isDirty,palette:this.state.palette,toolbarVisible:n,setPalette:this.handleSetPalette,enableSandwichView:this.props.enableSandwichView},"flamegraph-pane"),r=(()=>{if(this.state.selectedItem.isNothing)return e.jsx("div",{className:nc.sandwichPane,children:e.jsxs("div",{className:Or(nc.sandwichPaneInfo,"vertical"===this.state.panesOrientation?nc.vertical:nc.horizontal),children:[e.jsx("div",{className:nc.arrow}),"Select a function to view callers/callees sandwich view"]})},"sandwich-pane");const t=tc(this.state.flamebearer,this.state.selectedItem.value),a=ec(this.state.flamebearer,this.state.selectedItem.value),r=t=>e.jsx(Xo,{disableClick:!0,showCredit:this.props.showCredit,highlightQuery:"",setActiveItem:this.setActiveItem,selectedItem:this.state.selectedItem,fitMode:this.state.fitMode,updateFitMode:this.updateFitMode,zoom:this.state.flamegraphConfigs.zoom,focusedNode:this.state.flamegraphConfigs.focusedNode,onZoom:this.onFlamegraphZoom,onFocusOnNode:this.onFocusOnNode,onReset:this.onReset,isDirty:this.isDirty,palette:this.state.palette,toolbarVisible:n,setPalette:this.handleSetPalette,...t});return e.jsxs("div",{className:nc.sandwichPane,children:[e.jsxs("div",{className:nc.sandwichTop,children:[e.jsx("span",{className:nc.name,children:"Callers"}),r({flamebearer:t})]}),e.jsxs("div",{className:nc.sandwichBottom,children:[e.jsx("span",{className:nc.name,children:"Callees"}),r({flamebearer:a,headerVisible:!1,showSingleLevel:!0})]})]},"sandwich-pane")})(),i=!this.state.flamebearer||this.state.flamebearer.names.length<=1,o=function(e,t,n,a,r){switch(e){case"table":return[n];case"flamegraph":return[t];case"sandwich":return[n,a];case"both":return[n,t];case"graphviz":return[r];default:throw new Error(`Invalid view '${e}'`)}}(this.state.view,a,t,r,e.jsx(fc,{flamebearer:this.state.flamebearer}));return e.jsxs("div",{children:[e.jsxs("div",{children:[n&&e.jsx(Ul,{sharedQuery:this.props.sharedQuery,enableChangingDisplay:!this.props.onlyDisplay,flamegraphType:this.state.flamebearer.format,view:this.state.view,handleSearchChange:this.onSearchChange,reset:this.onReset,updateView:this.updateView,updateFitMode:this.updateFitMode,fitMode:this.state.fitMode,isFlamegraphDirty:this.isDirty(),selectedNode:this.state.flamegraphConfigs.zoom,highlightQuery:this.state.searchQuery,onFocusOnSubtree:this.onFocusOnNode,ExportData:this.props.ExportData,palette:this.state.palette,setPalette:this.handleSetPalette}),this.props.children,e.jsx("div",{className:`${nc.flamegraphContainer} ${Or("vertical"===this.state.panesOrientation?nc.vertical:nc.horizontal,nc[this.state.panesOrientation],nc.panesWrapper)}`,children:i?e.jsx(Lr,{}):o.map(e=>e)})]}),this.props.showPyroscopeLogo&&e.jsxs("div",{className:nc.createdBy,children:["Created by",e.jsxs("a",{href:"https://twitter.com/PyroscopeIO",rel:"noreferrer",target:"_blank",children:[e.jsx(f,{width:"30",height:"30"}),"@PyroscopeIO"]})]})]})},this.state={isFlamegraphDirty:!1,view:this.props.onlyDisplay?this.props.onlyDisplay:"both",fitMode:"HEAD",flamebearer:hc(t),panesOrientation:t.panesOrientation?t.panesOrientation:"horizontal",searchQuery:"",selectedItem:n.Maybe.nothing(),flamegraphConfigs:this.initialFlamegraphState,palette:co}}componentDidUpdate(e,t){const a=hc(e),r=hc(this.props);if(!this.isSameFlamebearer(a,r)){const e=this.calcNewConfigs(a,r);return void this.setState({flamebearer:r,flamegraphConfigs:{...this.state.flamegraphConfigs,...e},selectedItem:n.Maybe.nothing()})}t.flamegraphConfigs!==this.state.flamegraphConfigs&&this.updateFlamegraphDirtiness()}shouldShowToolbar(){return void 0===this.props.showToolbar||this.props.showToolbar}}mc.defaultProps={showCredit:!1};const pc={showPyroscopeLogo:!1},gc=(e,t)=>{if(t)return t;const n=null!=e?e:"auto";return"zh-CN"===("auto"===n?"undefined"!=typeof navigator&&navigator.language&&navigator.language.toLowerCase().startsWith("zh")?"zh-CN":"en":n)?go:po};exports.Box=function(t){const{children:n,noPadding:a,className:r="",theme:i="dark"}=t,o=a?"":Xa.padding;return e.jsx("div",{className:`${Xa.box} ${o} ${r}`,"data-theme":i,children:n})},exports.DefaultPalette=co,exports.Flamegraph=Dr,exports.FlamegraphI18nProvider=bo,exports.FlamegraphRenderer=n=>{const{i18n:a,locale:r,colorMode:i="light",sandwich:o=!0,...s}=n,l=t.useMemo(()=>gc(r,a),[r,a]),c=t.useMemo(()=>(e=>{switch(e){case"dark":return"ps-theme-dark";case"kylin":return"ps-theme-kylin";default:return"ps-theme-light"}})(i),[i]);return e.jsx("pyro-flamegraph",{className:c,children:e.jsx(bo,{messages:l,children:e.jsx(mc,{...pc,enableSandwichView:o,...s})})})},exports.convertJaegerTraceToProfile=function(e){const t={numTicks:0,maxSelf:0,names:[],levels:[]},n={},a={children:[]};return e.spans.forEach(e=>{e.children=[],n[e.spanID]=e}),e.spans.forEach(e=>{let t=a;e.references&&e.references.length>0&&(t=n[e.references[0].spanID]||a),t.children.push(e)}),function e(t,n){(t.children||[]).forEach(t=>e(t));let a=0;const r=u(t.children||[],e=>e.operationName);t.children=d(r,e=>{const t=e[0];for(let n=1;n<e.length;n+=1)t.duration+=e[n].duration;return a+=t.duration,t}),t.total=t.duration||a,t.self=Math.max(0,t.total-a)}(a),function n(a,r,i){var o;return t.numTicks||(t.numTicks=a.total),(o=t.levels)[r]||(o[r]=[]),t.levels[r].push(i),t.levels[r].push(a.total),t.levels[r].push(a.self),t.names.push((a.processID?`${e.processes[a.processID].serviceName}: `:"")+(a.operationName||"total")),t.levels[r].push(t.names.length-1),(a.children||[]).forEach(e=>{i+=n(e,r+1,i)}),a.total}(a,0,0),t.levels=uc("single",t.levels),{version:1,flamebearer:t,metadata:{format:"single",units:"trace_samples",spyName:"tracing",sampleRate:1e6}}},exports.diffTwoProfiles=function(e,t){e.flamebearer.levels=dc("single",e.flamebearer.levels),t.flamebearer.levels=dc("single",t.flamebearer.levels);const n=function(e,t){const n={format:"double",numTicks:e.numTicks+t.numTicks,leftTicks:e.numTicks,rightTicks:t.numTicks,maxSelf:100,sampleRate:e.sampleRate,names:[],levels:[],units:e.units,spyName:e.spyName},a=ql(e,t),r=(e,t,a,i)=>{var o;const{name:s,children:l,self:c,total:f}=e;n.names.push(s),(o=n.levels)[t]||(o[t]=[]),n.maxSelf=Math.max(n.maxSelf,c[0]||0,c[1]||0),n.levels[t]=n.levels[t].concat([a,f[0]||0,c[0]||0,i,f[1]||0,c[1]||0,n.names.length-1]);for(let e=0;e<l.length;e+=1){const[n,o]=r(l[e],t+1,a,i);a+=n,i+=o}return[f[0]||0,f[1]||0]};return r(a,0,0,0),n}(e.flamebearer,t.flamebearer);n.levels=uc("double",n.levels);const a={...e.metadata};return a.format="double",{version:1,flamebearer:n,metadata:a,leftTicks:e.flamebearer.numTicks,rightTicks:t.flamebearer.numTicks}},exports.flamegraphDefaultMessages=po,exports.flamegraphZhCNMessages=go;
|
|
17
|
+
*/var Ki,Gi=(Zi||(Zi=1,function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var o in e)t.call(e,o)&&e[o]&&(a=r(a,o));return a}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(qi)),qi.exports),es=h(Gi),ts={};function ns(){return Ki||(Ki=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="crosshairs",n=[],a="f05b",r="M288-16c17.7 0 32 14.3 32 32l0 18.3c98.1 14 175.7 91.6 189.7 189.7l18.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-18.3 0c-14 98.1-91.6 175.7-189.7 189.7l0 18.3c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-18.3C157.9 463.7 80.3 386.1 66.3 288L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l18.3 0C80.3 125.9 157.9 48.3 256 34.3L256 16c0-17.7 14.3-32 32-32zM131.2 288c12.7 62.7 62.1 112.1 124.8 124.8l0-12.8c0-17.7 14.3-32 32-32s32 14.3 32 32l0 12.8c62.7-12.7 112.1-62.1 124.8-124.8L432 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l12.8 0C432.1 161.3 382.7 111.9 320 99.2l0 12.8c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-12.8C193.3 111.9 143.9 161.3 131.2 224l12.8 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-12.8 0zM288 208a48 48 0 1 1 0 96 48 48 0 1 1 0-96z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,a,r]},e.faCrosshairs=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(ts)),ts}var as,rs=ns(),os={};function is(){return as||(as=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-left",n=[9001],a="f053",r="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z";e.definition={prefix:"fas",iconName:t,icon:[320,512,n,a,r]},e.faChevronLeft=e.definition,e.prefix="fas",e.iconName=t,e.width=320,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(os)),os}var ss,ls=is(),cs={};function fs(){return ss||(ss=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-right",n=[9002],a="f054",r="M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z";e.definition={prefix:"fas",iconName:t,icon:[320,512,n,a,r]},e.faChevronRight=e.definition,e.prefix="fas",e.iconName=t,e.width=320,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(cs)),cs}var us=fs(),ds={table:"Table-module_table__6A8SM",sortable:"Table-module_sortable__J6kyp",sortArrow:"Table-module_sortArrow__Nrncn",asc:"Table-module_asc__tJDI9",desc:"Table-module_desc__fjVRY",isRowSelected:"Table-module_isRowSelected__UhIAJ",isRowDisabled:"Table-module_isRowDisabled__sz3NJ",loadingSpinner:"Table-module_loadingSpinner__SSjMK",pagination:"Table-module_pagination__VXgcO"},hs="Button-module_button__Ed1ge",ms="Button-module_noIcon__Uzjvv",ps="Button-module_noBox__mLreC",gs="Button-module_customIcon__-slpC",vs="Button-module_iconWithText__DQRkr",bs="Button-module_default__HhXlQ",ys="Button-module_outline__Flf4r",xs="Button-module_float__4marx",ws="Button-module_primary__xByv0",js="Button-module_secondary__D0K-F",ks="Button-module_danger__5-vIq",Ss="Button-module_grouped__j8KwB";const Ns=t.forwardRef(function({disabled:t=!1,kind:n="default",type:a="button",icon:r,iconNode:o,children:i,grouped:s,onClick:l,id:c,className:f,form:u,noBox:d,autoFocus:h,...m},p){return e.jsxs("button",{...m,id:c,ref:p,type:a,"data-testid":m["data-testid"],disabled:t,onClick:l,form:u,autoFocus:h,"aria-label":m["aria-label"],className:es(hs,s?Ss:"",Cs(n),f,d&&ps,o&&gs,!r&&!o&&ms),children:[r?e.jsx(Qa,{icon:r,className:i?vs:""}):null,o,i]})});function Cs(e){switch(e){case"default":return bs;case"primary":return ws;case"secondary":return js;case"danger":return ks;case"outline":return ys;case"float":return xs;default:throw Error(`Unsupported kind ${e}`)}}function Ts({row:n}){const{cells:a,isRowSelected:r,isRowDisabled:o,className:i,onClick:s,onDoubleClick:l,onContextMenu:c,...f}=n,u=t.useRef(Math.random()).current;return e.jsx("tr",{...f,onClick:s,onDoubleClick:l,onContextMenu:c,className:Lr(i,{[ds.isRowSelected]:r,[ds.isRowDisabled]:o}),children:a&&a.map(({style:t,value:n,...a},r)=>e.jsx("td",{style:t,...a,children:n},u+r))})}function _s({sortByDirection:n,sortBy:a,updateSortParams:r,table:o,tableBodyRef:i,className:s,isLoading:l,itemsPerPage:c}){const f=n&&a&&r,[u,d]=t.useState(0);return l?e.jsx("div",{className:ds.loadingSpinner}):e.jsxs(e.Fragment,{children:[e.jsxs("table",{className:Lr(ds.table,{[s||""]:s}),"data-testid":"table-ui",children:[e.jsx("thead",{children:e.jsx("tr",{children:o.headRow.map(({sortable:i,label:s,name:l,...c},u)=>i&&"not-filled"!==o.type&&f?t.createElement("th",{...c,key:u,className:ds.sortable,onClick:()=>r(l)},s,e.jsx("span",{className:Lr(ds.sortArrow,{[ds[n]]:a===l})})):e.jsx("th",{...c,children:s},u))})}),e.jsx("tbody",{ref:i,children:"not-filled"===o.type?e.jsx("tr",{className:null==o?void 0:o.bodyClassName,children:e.jsx("td",{colSpan:o.headRow.length,children:o.value})}):Ms(o.bodyRows,u,c).map((t,n)=>{var a;return e.jsx(Ts,{row:t},null!==(a=t["data-row"])&&void 0!==a?a:`row-${n}`)})})]}),e.jsx(Rs,{bodyRows:"filled"===o.type?o.bodyRows:void 0,itemsPerPage:c,currPage:u,setCurrPage:d})]})}function Ms(e,t,n){return n?e.slice(t*n,n*(t+1)):e}function Rs({itemsPerPage:t,currPage:n,setCurrPage:a,bodyRows:r}){if(!t)return null;const o=!!r&&Ms(r,n+1,t).length>0,i=!!r&&Ms(r,n-1,t).length>0;return e.jsxs("nav",{className:ds.pagination,children:[e.jsx(Ns,{"aria-label":"Previous Page",disabled:!i,kind:"float",icon:ls.faChevronLeft,onClick:()=>a(n-1)}),e.jsx(Ns,{disabled:!o,"aria-label":"Next Page",kind:"float",icon:us.faChevronRight,onClick:()=>a(n+1)})]})}function Ps({numTicks:n,sampleRate:a,units:r,tableBodyRef:o,palette:i}){const s=pr(n,a,r),l=s.format(n,a),c=xi(),f=t.useCallback((e,t,n)=>{var o;const f=null===(o=n.target.closest("tr"))||void 0===o?void 0:o.dataset.row;if(!f)return void t();const[u,d,...h]=f.split(";");switch(u){case"single":{const[t,n]=h,o=s.format(parseInt(t,10),a),i=s.format(parseInt(n,10),a),c=l.split(" "),f="<"===c[0]?c[1]:c[0],u=o.split(" "),m="<"===u[0]?u[1]:u[0],p=i.split(" "),g="<"===p[0]?p[1]:p[0];e({title:{text:d,diff:{text:"",color:""}},tooltipData:[{units:r,self:`${o}(${(parseFloat(m)/parseFloat(f)*100).toFixed(2)}%)`,total:`${i}(${(parseFloat(g)/parseFloat(f)*100).toFixed(2)}%)`,tooltipType:"table"}]});break}case"double":{const[t,n,o,l]=h,f=Pi({formatter:s,sampleRate:a,totalLeft:parseInt(t,10),leftTicks:parseInt(n,10),totalRight:parseInt(o,10),rightTicks:parseInt(l,10),title:d,units:r},i,c);e({title:f.title,tooltipData:f.tooltipData});break}}},[s,a,r,l,i,c]);return e.jsx(Ti,{dataSourceRef:o,shouldShowTitle:!1,clickInfoSide:"left",setTooltipContent:f,palette:i})}var Fs="ProfilerTable-module_tableContextMenu__7Svm8",Es="ProfilerTable-module_sandwichItem__b9Ipy";const Is=e=>e||0;function Ds(e,t,n,a){const r=t;return r.type="single",r.self=Is(r.self)+e.getBarSelf(n,a),r.total=Is(r.total)+e.getBarTotal(n,a),r}function As(e,t,n,a,r,o){const i=t;return i.type="double",i.self=Is(i.self)+e.getBarSelf(n,a),i.total=Is(i.total)+e.getBarTotal(n,a),i.selfLeft=Is(i.selfLeft)+e.getBarSelfLeft(n,a),i.selfRght=Is(i.selfRght)+e.getBarSelfRght(n,a),i.selfDiff=Is(i.selfDiff)+e.getBarSelfDiff(n,a),i.totalLeft=Is(i.totalLeft)+e.getBarTotalLeft(n,a),i.totalRght=Is(i.totalRght)+e.getBarTotalRght(n,a),i.totalDiff=Is(i.totalDiff)+e.getBarTotalDiff(n,a),i.leftTicks=r,i.rightTicks=o,i}function Os(e,t){if(!e||!e.levels)return null;const{names:n,levels:a,format:r}=e,o=ar(r);let i=null;for(let e=0;e<a.length;e++){const r=a[e];for(let a=0;a<r.length;a+=o.jStep){if(n[o.getBarName(r,a)]===t){const t=o.getBarTotal(r,a);(!i||t>i.total)&&(i={i:e,j:a,total:t})}}}return i?{i:i.i,j:i.j}:null}function Ls(e,t,n){const a=148-e/t*148,r=n.alpha(1);return{backgroundImage:`linear-gradient(${r}, ${r})`,backgroundPosition:`-${a}px 0px`,backgroundRepeat:"no-repeat"}}const zs=({flamebearer:t,sortBy:n,sortByDirection:a,fitMode:r,handleTableItemClick:o,highlightQuery:i,palette:s,selectedItem:l,messages:c,onRowContextMenu:f,onRowDoubleClick:u})=>{const{numTicks:d,maxSelf:h,sampleRate:m,spyName:p,units:g}=t,v=function(e){if(!e)return[];const{names:t,levels:n,format:a}=e,r="double"!==a?tr:nr,o=new Map;for(let i=0;i<n.length;i++){const s=n[i];for(let n=0;n<s.length;n+=r.jStep){const i=t[r.getBarName(s,n)];o.has(i)||o.set(i,{name:i||"<empty>",self:0,total:0});const l=o.get(i);if(!l)break;"single"===a?Ds(tr,l,s,n):As(nr,l,s,n,e.leftTicks,e.rightTicks)}}return Array.from(o.values())}(t).sort((e,t)=>t.total-e.total),b="asc"===a?1:-1;let y;if("name"===n)y=v.sort((e,t)=>b*e[n].localeCompare(t[n]));else switch(n){case"total":case"self":y=v.sort((e,t)=>b*(e[n]-t[n]));break;case"baseline":y=v.sort((e,t)=>b*(e.totalLeft/e.leftTicks-t.totalLeft/t.leftTicks));break;case"comparison":y=v.sort((e,t)=>b*(e.totalRght/e.rightTicks-t.totalRght/t.rightTicks));break;case"diff":y=v.sort((e,t)=>{const n=mr(hr(e.totalLeft/e.leftTicks),hr(e.totalRght/e.rightTicks)),a=mr(hr(t.totalLeft/t.leftTicks),hr(t.totalRght/t.rightTicks));return b*(n-a)});break;default:y=v}const x=pr(d,m,g),w=e=>!!l.isJust&&e===l.value,j=t=>{return e.jsx("button",{className:"table-item-button",children:e.jsx("div",{className:"symbol-name",style:(n=r,n===xr?{direction:"rtl",overflow:"hidden",textOverflow:"ellipsis"}:{overflow:"hidden",textOverflow:"ellipsis"}),children:t.name})});var n},k=y.filter(e=>!i||Tr(i,e.name)).map(e=>{if("double"===e.type)return(e=>{const t=hr(e.totalLeft/e.leftTicks),n=hr(e.totalRght/e.rightTicks),a=mr(t,n);let r="";a>0?r=s.badColor.rgb().string():a<0&&(r=s.goodColor.rgb().string());let i="";return e.totalLeft&&a!==1/0?e.totalRght?a>0?i=`+${a.toFixed(2)}%`:a<0&&(i=`${a.toFixed(2)}%`):i=c.diffRemoved:i=c.diffNew,{"data-row":`${e.type};${e.name};${e.totalLeft};${e.leftTicks};${e.totalRght};${e.rightTicks}`,isRowSelected:w(e.name),onClick:()=>o(e),onContextMenu:t=>f(t,e.name),onDoubleClick:()=>u(e.name),cells:[{value:j(e)},{value:`${t} %`},{value:`${n} %`},{value:i,style:{color:r}}]}})(e);const t=Sr(p,e.name);return((e,t)=>({"data-row":`${e.type};${e.name};${e.self};${e.total}`,isRowSelected:w(e.name),onClick:()=>o(e),onContextMenu:t=>f(t,e.name),onDoubleClick:()=>u(e.name),cells:[{value:j(e)},{value:x.format(e.self,m),style:Ls(e.self,h,t)},{value:x.format(e.total,m),style:Ls(e.total,d,t)}]}))(e,Nr(s,t))});return k.length>0?{bodyRows:k,type:"filled"}:{value:e.jsx("div",{className:"unsupported-format",children:c.noItemsFound}),type:"not-filled"}};function Bs({tableBodyRef:n,flamebearer:a,isDoubles:r,fitMode:o,handleTableItemClick:i,highlightQuery:s,selectedItem:l,palette:c,onFocusOnNode:f,updateView:u,enableSandwichView:d=!0}){const h=xi(),[m,p]=Go({transition:!0}),[g,v]=t.useState({x:0,y:0}),[b,y]=t.useState(null),x=t.useCallback(e=>{if(l.isJust&&l.value===e||i({name:e}),!f)return;const t=Os(a,e);t&&f(t.i,t.j)},[a,f,l,i]),w=t.useCallback((e,t)=>{e.preventDefault(),v({x:e.clientX,y:e.clientY}),y(t),p(!0)},[p]),j=t.useCallback(()=>{p(!1),y(null)},[p]),k=t.useCallback(()=>{if(!b||!f)return;const e=Os(a,b);e&&f(e.i,e.j),j()},[b,a,f,j]),S=t.useCallback(()=>{b&&navigator.clipboard&&(navigator.clipboard.writeText(b),j())},[b,j]),N=t.useCallback(()=>{b&&(i({name:b}),j())},[b,i,j]),C=t.useCallback(()=>{b&&u&&(u("sandwich"),i({name:b}),j())},[b,u,i,j]),T=t.useMemo(()=>r?[{sortable:1,name:"name",label:h.location},{sortable:1,name:"baseline",label:h.baseline,default:!0},{sortable:1,name:"comparison",label:h.comparison},{sortable:1,name:"diff",label:h.diff}]:[{sortable:1,name:"name",label:h.location},{sortable:1,name:"self",label:h.self,default:!0},{sortable:1,name:"total",label:h.total}],[h,r]),_=(e=>{const n=e.filter(e=>null==e?void 0:e.default)[0]||e[0],[a,r]=t.useState(n.name),[o,i]=t.useState("desc");return{sortBy:a,sortByDirection:o,updateSortParams:e=>{let t=o;t=a===e?"asc"===t?"desc":"asc":"desc",r(e),i(t)}}})(T),M={headRow:T,...zs({flamebearer:a,sortBy:_.sortBy,sortByDirection:_.sortByDirection,fitMode:o,handleTableItemClick:i,highlightQuery:s,palette:c,selectedItem:l,messages:h,onRowContextMenu:w,onRowDoubleClick:x})},R=l.isJust&&l.value===b;return e.jsxs(e.Fragment,{children:[e.jsx(_s,{..._,tableBodyRef:n,table:M,className:es("flamegraph-table",{"flamegraph-table-doubles":r})}),e.jsxs(Qo,{...m,anchorPoint:g,onClose:j,className:Fs,children:[f&&e.jsxs(ai,{onClick:k,children:[e.jsx(Qa,{icon:rs.faCrosshairs}),h.focusOnThisFunction]}),e.jsxs(ai,{onClick:S,children:[e.jsx(Qa,{icon:Kr.faCopy}),h.copyFunctionName]}),e.jsxs(ai,{onClick:N,children:[e.jsx(Qa,{icon:ao.faHighlighter}),R?h.clearHighlight:h.highlightSimilarNodes]}),u&&d&&e.jsxs(ai,{onClick:C,className:Es,children:[e.jsx(zi,{fill:"currentColor"}),h.openInSandwichView]})]})]})}const $s=t.memo(function({flamebearer:n,fitMode:a,handleTableItemClick:r,highlightQuery:o,palette:i,selectedItem:s,onFocusOnNode:l,updateView:c,enableSandwichView:f}){const u=t.useRef(null),d="double"===n.format;return e.jsxs("div",{"data-testid":"table-view",className:d?"flamegraph-table-wrapper flamegraph-table-wrapper--double":"flamegraph-table-wrapper",children:[e.jsx("div",{className:"flamegraph-table-scroll",children:e.jsx(Bs,{tableBodyRef:u,flamebearer:n,isDoubles:d,fitMode:a,highlightQuery:o,handleTableItemClick:r,palette:i,selectedItem:s,onFocusOnNode:l,updateView:c,enableSandwichView:f})}),e.jsx(Ps,{tableBodyRef:u,numTicks:n.numTicks,sampleRate:n.sampleRate,units:n.units,palette:i})]})});var Vs,Hs,Ws={},Us={};function Js(){return Vs||(Vs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="arrow-rotate-left",n=[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],a="f0e2",r="M256 64c-56.8 0-107.9 24.7-143.1 64l47.1 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 192c-17.7 0-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0S64 14.3 64 32l0 54.7C110.9 33.6 179.5 0 256 0 397.4 0 512 114.6 512 256S397.4 512 256 512c-87 0-163.9-43.4-210.1-109.7-10.1-14.5-6.6-34.4 7.9-44.6s34.4-6.6 44.6 7.9c34.8 49.8 92.4 82.3 157.6 82.3 106 0 192-86 192-192S362 64 256 64z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,a,r]},e.faArrowRotateLeft=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Us)),Us}function Qs(){return Hs||(Hs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Js();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faUndo=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(Ws)),Ws}var Xs,Ys,Zs=Qs(),qs={},Ks={};function Gs(){return Xs||(Xs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="diagram-project",n=["project-diagram"],a="f542",r="M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 16 128 0 0-16c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-16-128 0 0 16c0 7.3-1.7 14.3-4.6 20.5l68.6 91.5 80 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-7.3 1.7-14.3 4.6-20.5L128 224 48 224c-26.5 0-48-21.5-48-48L0 80z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,a,r]},e.faDiagramProject=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(Ks)),Ks}function el(){return Ys||(Ys=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Gs();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faProjectDiagram=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(qs)),qs}var tl,nl,al=el(),rl={},ol={};function il(){return tl||(tl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="ellipsis-vertical",n=["ellipsis-v"],a="f142",r="M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z";e.definition={prefix:"fas",iconName:t,icon:[128,512,n,a,r]},e.faEllipsisVertical=e.definition,e.prefix="fas",e.iconName=t,e.width=128,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(ol)),ol}function sl(){return nl||(nl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=il();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faEllipsisV=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(rl)),rl}var ll=sl();function cl(e){if(null!=e&&!1!==e){if("string"==typeof e||"number"==typeof e)return String(e);if(Array.isArray(e)){const t=e.map(e=>cl(e)).filter(e=>!!e);return t.length?t.join(" "):void 0}return t.isValidElement(e)?cl(e.props.children):void 0}}const fl=({placement:t,title:n,content:a,children:r})=>{const o=cl(null!=n?n:a);return o?e.jsx("span",{title:o,children:r}):e.jsx(e.Fragment,{children:r})};var ul,dl={};function hl(){return ul||(ul=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="link",n=[128279,"chain"],a="f0c1",r="M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,a,r]},e.faLink=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=a,e.svgPathData=r,e.aliases=n}(dl)),dl}var ml=hl(),pl="Input-module_input__ulQdV";const gl=t.forwardRef(({testId:t,className:n,type:a,name:r,placeholder:o,minLength:i=0,debounceTimeout:s=100,onChange:l,value:f,htmlId:u},d)=>e.jsx(c.DebounceInput,{inputRef:d,"data-testid":t,className:`${pl} ${n||""}`,type:a,name:r,placeholder:o,minLength:i,debounceTimeout:s,onChange:l,value:f,id:u}));var vl="SharedQueryInput-module_wrapper__XRxrd",bl="SharedQueryInput-module_search__XlzRv",yl="SharedQueryInput-module_search-synced__J4T4b",xl="SharedQueryInput-module_searchWithSync__ryuQa",wl="SharedQueryInput-module_icon__Aq0Hv",jl="SharedQueryInput-module_checked__oRvod",kl="SharedQueryInput-module_sync__0IO2N",Sl="SharedQueryInput-module_syncSelected__hstBI";const Nl=({onHighlightChange:n,highlightQuery:a,sharedQuery:r,width:o})=>{const i=xi(),s=(e=>{const n=t.useRef();return t.useEffect(()=>{n.current=e},[e]),n.current})(null==r?void 0:r.syncEnabled);t.useEffect(()=>{"string"==typeof(null==r?void 0:r.searchQuery)&&(r.syncEnabled&&n(r.searchQuery),!r.syncEnabled&&s&&s!==(null==r?void 0:r.id)&&n(""))},[null==r?void 0:r.searchQuery,null==r?void 0:r.syncEnabled]);const l=t.useMemo(()=>r&&r.syncEnabled?r.searchQuery||"":a,[r,a]),c=t.useMemo(()=>`${r?xl:bl} ${(null==r?void 0:r.syncEnabled)?yl:""}`,[r]),f=(null==r?void 0:r.syncEnabled)?i.unsyncSearchBars:i.syncSearchBars;return e.jsxs("div",{className:vl,style:{width:o},children:[e.jsx(gl,{testId:"flamegraph-search",className:c,type:"search",name:"flamegraph-search",placeholder:i.searchPlaceholder,minLength:1,debounceTimeout:100,onChange:e=>{n(e.target.value),r&&r.syncEnabled&&r.onQueryChange(e.target.value)},value:l}),r?e.jsx(fl,{placement:"top",title:f,children:e.jsx("button",{className:r.syncEnabled?Sl:kl,onClick:()=>{const e=!(null==r?void 0:r.syncEnabled)&&(null==r?void 0:r.id);null==r||r.toggleSync(e),e?null==r||r.onQueryChange(a):(n(a),null==r||r.onQueryChange(""))},children:e.jsx(Qa,{className:`${r.syncEnabled?jl:wl}`,icon:ml.faLink})})}):null]})};var Cl="DiffLegend-module_flamegraph-legend__Cywr1",Tl="DiffLegend-module_flamegraph-legend-list__swdXj",_l="DiffLegend-module_flamegraph-legend-item__0P-6g";function Ml(t){const{palette:n,showMode:a}=t,r=function(e){switch(e){case"large":return[-100,-80,-60,-40,-20,-10,0,10,20,40,60,80,100];case"small":return[-100,-40,-20,0,20,40,100];default:throw new Error(`Unsupported ${e}`)}}(a),o=Cr(n);return e.jsx("div",{"data-testid":"flamegraph-legend",className:`${Cl} ${Tl}`,children:r.map(t=>e.jsxs("div",{className:_l,style:{backgroundColor:o(t).rgb().toString()},children:[t>0?"+":"",t,"%"]},t))})}function Rl(){return e.jsx("svg",{version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"12px",height:"12px",viewBox:"0 0 405.272 405.272",children:e.jsx("g",{children:e.jsx("path",{d:"M393.401,124.425L179.603,338.208c-15.832,15.835-41.514,15.835-57.361,0L11.878,227.836\n\n\t\tc-15.838-15.835-15.838-41.52,0-57.358c15.841-15.841,41.521-15.841,57.355-0.006l81.698,81.699L336.037,67.064\n\n\t\tc15.841-15.841,41.523-15.829,57.358,0C409.23,82.902,409.23,108.578,393.401,124.425z"})})})}var Pl="Dropdown-module_dropdownMenu__tbN8r",Fl="Dropdown-module_dropdownMenuButton__Xy8M4";function El({id:t,children:n,className:a,disabled:r,value:o,label:i,onItemClick:s,overflow:l,position:c,direction:f,align:u,viewScroll:d,arrow:h,menuButtonClassName:m="",ariaLabel:p,portal:g,...v}){const b=v.menuButton||e.jsx(Dl,{"aria-label":p,className:`${Fl} ${m}`,disabled:r,type:"button",children:o||i});return e.jsxs(ti,{id:t,"aria-label":p,className:es(a,Pl),"data-testid":v["data-testid"],onItemClick:s,overflow:l,position:c,direction:f,align:u,viewScroll:d,arrow:h,menuButton:b,portal:g,children:[e.jsx(ri,{children:i}),n]})}const Il=ai,Dl=Ao;var Al="DiffLegendPaletteDropdown-module_container__h8Tts",Ol="DiffLegendPaletteDropdown-module_triggerButton__oezA6",Ll="DiffLegendPaletteDropdown-module_dropdownArrow__-Lu0w",zl="DiffLegendPaletteDropdown-module_menuItem__5iWry",Bl="DiffLegendPaletteDropdown-module_menuItemText__a-tt0";const $l=[ui,di],Vl=t=>{const{palette:n=ui,onChange:a}=t,r=xi(),o=e=>"Default"===e.name?r.paletteDefaultName:"Color Blind"===e.name?r.paletteColorBlindName:e.name,i=e=>"Default"===e.name?r.paletteDefaultDesc:"Color Blind"===e.name?r.paletteColorBlindDesc:"";return e.jsx("div",{className:Al,children:e.jsx(El,{label:r.diffLegendSelectPalette,align:"end",menuButton:e.jsxs(Dl,{className:es(Fl,Ol),children:[e.jsx(Ml,{palette:n,showMode:"small"}),e.jsx("span",{className:Ll})]}),onItemClick:e=>{e.value&&a(e.value)},children:$l.map(t=>e.jsx(Il,{value:t,children:e.jsxs("div",{className:zl,children:[e.jsxs("span",{className:Bl,children:[o(t)," ",i(t)]}),t.name===n.name&&e.jsx(Rl,{})]})},t.name))})})};var Hl={navbar:"Toolbar-module_navbar__XN6xZ",searchWrapper:"Toolbar-module_searchWrapper__k--ua",rightSection:"Toolbar-module_rightSection__if7LO",viewType:"Toolbar-module_viewType__AKARg",toggleViewButton:"Toolbar-module_toggleViewButton__OQ9-U",fitModeButton:"Toolbar-module_fitModeButton__jOxve",selected:"Toolbar-module_selected__vwBQt",collapseNodeButton:"Toolbar-module_collapseNodeButton__bLdiw",resetViewButton:"Toolbar-module_resetViewButton__y2ebV",divider:"Toolbar-module_divider__dG6pE",itemsContainer:"Toolbar-module_itemsContainer__gSTMF",item:"Toolbar-module_item__o-hKc",moreButton:"Toolbar-module_moreButton__rhOdT",active:"Toolbar-module_active__36Kt-",navbarCollapsedItems:"Toolbar-module_navbarCollapsedItems__vojhw"};const Wl=b.bind(Hl),Ul=(e,t,n)=>{const a=0===t?e-360-5:e-360-16-5;let r=0,o=0;return n.reverse().forEach(e=>{o+=e,a<=o&&(r+=1)}),r},Jl=()=>e.jsx("div",{className:Hl.divider}),Ql=t.memo(({view:n,handleSearchChange:a,highlightQuery:r,isFlamegraphDirty:o,reset:s,updateFitMode:l,fitMode:c,updateView:f,selectedNode:u,onFocusOnSubtree:d,flamegraphType:h,enableChangingDisplay:m=!0,sharedQuery:p,ExportData:g,palette:v,setPalette:b})=>{const y=t.useRef(null),x=xi(),w="double"===h&&v&&b,j=[{el:e.jsxs(e.Fragment,{children:[e.jsx(Zl,{fitMode:c,updateFitMode:l}),e.jsx(Jl,{})]}),width:93},{el:e.jsx(Yl,{isFlamegraphDirty:o,reset:s}),width:44},{el:e.jsxs(e.Fragment,{children:[e.jsx(Xl,{selectedNode:u,onFocusOnSubtree:d}),e.jsx(Jl,{})]}),width:49},m?{el:e.jsx(Kl,{flamegraphType:h,view:n,updateView:f}),width:44*("single"===h?5:3)}:null,t.isValidElement(g)?{el:e.jsxs(e.Fragment,{children:[e.jsx(Jl,{}),g]}),width:49}:null].filter(e=>null!==e),k=j.reduce((e,t)=>[...e,t.width],[]),{isCollapsed:S,collapsedItemsNumber:N,handleMoreClick:C}=((e,n)=>{const[a,r]=t.useState(!0),[o,s]=t.useState(0);return t.useLayoutEffect(()=>{if(e.current){const{width:t}=e.current.getBoundingClientRect(),a=Ul(t,o,n);s(a)}},[e.current,n]),i(e,e=>{const{width:t}=e.target.getBoundingClientRect(),a=Ul(t,o,n);s(a),r(!0)}),{isCollapsed:a,handleMoreClick:()=>{r(e=>!e)},collapsedItemsNumber:o}})(y,k),T=j.reduce((e,t,n)=>(n<N?e.hidden.push(t):e.visible.push(t),e),{visible:[],hidden:[]});return e.jsx("div",{role:"toolbar",ref:y,children:e.jsxs("div",{className:Hl.navbar,children:[e.jsx("div",{className:Hl.searchWrapper,children:e.jsx(Nl,{width:360,onHighlightChange:a,highlightQuery:r,sharedQuery:p})}),e.jsxs("div",{className:Hl.rightSection,children:[w&&e.jsxs(e.Fragment,{children:[e.jsx(Vl,{palette:v,onChange:b}),e.jsx(Jl,{})]}),e.jsxs("div",{className:Hl.itemsContainer,children:[T.visible.map((t,n)=>e.jsx("div",{className:Hl.item,style:{width:t.width},children:t.el},n)),0!==N&&e.jsx(fl,{placement:"top",title:x.more,children:e.jsx("button",{onClick:C,className:Wl({[Hl.moreButton]:!0,[Hl.active]:!S}),children:e.jsx(Qa,{icon:ll.faEllipsisV})})})]})]}),!S&&e.jsx("div",{className:Hl.navbarCollapsedItems,children:T.hidden.map((t,n)=>e.jsx("div",{className:Hl.item,style:{width:t.width},children:t.el},n))})]})})});function Xl({onFocusOnSubtree:t,selectedNode:n}){const a=xi(),r=n.mapOr(()=>{},e=>()=>t(e.i,e.j));return e.jsx(fl,{placement:"top",title:a.collapseNodesAbove,children:e.jsx("div",{children:e.jsx(Ns,{disabled:!n.isJust,onClick:r,className:Hl.collapseNodeButton,"aria-label":a.collapseNodesAbove,children:e.jsx(Qa,{icon:lo.faCompressAlt})})})})}function Yl({isFlamegraphDirty:t,reset:n}){const a=xi();return e.jsx(fl,{placement:"top",title:a.resetView,children:e.jsx("span",{children:e.jsx(Ns,{id:"reset",disabled:!t,onClick:n,className:Hl.resetViewButton,"aria-label":a.resetView,children:e.jsx(Qa,{icon:Zs.faUndo})})})})}function Zl({fitMode:t,updateFitMode:n}){const a=xi(),r=e=>t===e;return e.jsxs(e.Fragment,{children:[e.jsx(fl,{placement:"top",title:a.headFirst,children:e.jsx(Ns,{onClick:()=>n("HEAD"),className:Wl({[Hl.fitModeButton]:!0,[Hl.selected]:r("HEAD")}),children:e.jsx(Bi,{})})}),e.jsx(fl,{placement:"top",title:a.tailFirst,children:e.jsx(Ns,{onClick:()=>n("TAIL"),className:Wl({[Hl.fitModeButton]:!0,[Hl.selected]:r("TAIL")}),children:e.jsx($i,{})})})]})}const ql=(t,n)=>"single"===t?[{label:n.viewTable,value:"table",Icon:Ai},{label:n.viewTableAndFlamegraph,value:"both",Icon:Oi},{label:n.viewFlamegraph,value:"flamegraph",Icon:Li},{label:n.viewSandwich,value:"sandwich",Icon:zi},{label:n.viewGraphviz,value:"graphviz",Icon:()=>e.jsx(Qa,{icon:al.faProjectDiagram})}]:[{label:n.viewTable,value:"table",Icon:Ai},{label:n.viewTableAndFlamegraph,value:"both",Icon:Oi},{label:n.viewFlamegraph,value:"flamegraph",Icon:Li}];function Kl({view:t,updateView:n,flamegraphType:a}){const r=xi(),o=ql(a,r);return e.jsx("div",{className:Hl.viewType,children:o.map(({label:a,value:r,Icon:o})=>e.jsx(fl,{placement:"top",title:a,children:e.jsx(Ns,{"data-testid":r,onClick:()=>n(r),className:Wl({[Hl.toggleViewButton]:!0,selected:t===r}),children:e.jsx(o,{})})},r))})}function Gl(e,t){const n={},a={};let r={name:"total",children:[],self:[],total:[],key:"/total"};return(t?[e,t]:[e]).forEach((e,t)=>{var o,i;for(let s=0;s<e.levels.length;s+=1)for(let l=0;l<e.levels[s].length;l+=4){const c=[t,s,l].join("/"),f=e.names[e.levels[s][l+3]],u=e.levels[s][l+0],d=e.levels[s][l+1],h=e.levels[s][l+2];let m="";if(0!==s){const n=s-1,r=e.levels[n];for(let e=0;e<r.length;e+=4){const o=r[e+0],i=r[e+1];if(u>=o&&u<o+i){const r=[t,n,e].join("/");m=a[r].key;break}}}const p=[m||"",f].join("/"),g=!n[p];n[p]||(n[p]={name:f,children:[],self:[],total:[],key:p});const v=n[p];(o=v.total)[t]||(o[t]=0),v.total[t]+=d,(i=v.self)[t]||(i[t]=0),v.self[t]+=h,a[c]=v,m&&g&&n[m].children.push(v),0===s&&(r=v)}}),r}const ec=e=>{const t={maxSelf:100,names:[],levels:[]},n=(e,a,r)=>{var o;const{name:i,children:s,self:l,total:c,offset:f}=e;t.names.push(i),(o=t.levels)[a]||(o[a]=[]),t.maxSelf=Math.max(t.maxSelf,l[0]||0),t.levels[a]=t.levels[a].concat([r,c[0]||0,l[0]||0,t.names.length-1]);for(let e=0;e<s.length;e+=1){r+=n(s[e],a+1,r)}return f||c[0]||0};return n(e,0,0),t};function tc(e){const t=new Map;for(let n=0;n<e.children.length;n+=1)t.has(e.children[n].name)||t.set(e.children[n].name,e.children[n]);for(let n=0;n<e.children.length;n+=1){const a=e.children[n],r=t.get(e.children[n].name);r&&r!==a&&(r.total[0]+=a.total[0],r.self[0]+=a.self[0],r.children=r.children.concat(a.children))}e.children=Array.from(t.values());for(let t=0;t<e.children.length;t+=1)tc(e.children[t])}function nc(e,t){const n=function(e,t){const n=Gl(e),a={format:"single",numTicks:0,maxSelf:100,sampleRate:100,names:[],levels:[],units:e.units,spyName:e.spyName},r={name:t,total:[],self:[0],children:[]},o=e=>{e.name===t&&(a.numTicks+=e.total[0],r.total=[a.numTicks],r.children=r.children.concat(e.children));for(let t=0;t<e.children.length;t+=1)o(e.children[t])};return o(n),tc(r),{...a,...ec(r)}}(JSON.parse(JSON.stringify(e)),t);return n}function ac(e,t){const n=function(e,t){const n=Gl(e),a={format:"single",maxSelf:100,sampleRate:100,numTicks:0,names:[],levels:[],units:e.units,spyName:e.spyName},r=[],o=[],i={name:t,total:[0],self:[0],children:[]},s=(e,n=[])=>{const i=n.concat([{...e,children:[]}]);e.name===t&&(o.push(i),r.push(e.total[0]),a.numTicks+=e.total[0]);for(let t=0;t<e.children.length;t+=1)s(e.children[t],i)};s(n),o.forEach((e,t)=>{i.children.push(((e,t)=>{const n={};let a=n;return e.forEach(({name:e,...n})=>{const r={name:e,...n,total:[t]};a.children=[r],a=r}),n.children[0]})(e.reverse(),r[t]))}),tc(i);const l=ec(i);return l.levels=l.levels.reverse().slice(0,-1),{...a,...l}}(JSON.parse(JSON.stringify(e)),t);return n}var rc={flamegraphContainer:"FlamegraphRenderer-module_flamegraphContainer__-7FRV",createdBy:"FlamegraphRenderer-module_createdBy__rHAOT",horizontal:"FlamegraphRenderer-module_horizontal__zs7--",vertical:"FlamegraphRenderer-module_vertical__fRcHg",panesWrapper:"FlamegraphRenderer-module_panesWrapper__L-mlA",tablePane:"FlamegraphRenderer-module_tablePane__Gin7Y",sandwichPane:"FlamegraphRenderer-module_sandwichPane__IEOyR",sandwichPaneInfo:"FlamegraphRenderer-module_sandwichPaneInfo__5hT4a",arrow:"FlamegraphRenderer-module_arrow__dPzpE",sandwichTop:"FlamegraphRenderer-module_sandwichTop__7N0ZY",sandwichBottom:"FlamegraphRenderer-module_sandwichBottom__Dc64g",name:"FlamegraphRenderer-module_name__XRbN9"};function oc(e){const t=[];return Object.keys(e).forEach(n=>{var a;t.push(`${n}="${a=String(e[n]||""),a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`)}),`[${t.join(" ")}]`}function ic(e,t){return`${(100*e/t).toFixed(2)}%`}function sc(e,t){let n,a,r,o;t?(n=.1,a=.93):(n=1,a=.7),e=Math.max(-1,Math.min(1,e)),Math.abs(e)<.2&&(n*=Math.abs(e)/.2),e>0&&(e**=1-.7),e<0&&(e=-((-e)**(1-.7))),e<0?(o=a,r=a*(1+n*e)):(r=a,o=a*(1-n*e));const i=a*(1-n);return`#${Math.floor(255*r).toString(16).padStart(2,"0")}${Math.floor(255*o).toString(16).padStart(2,"0")}${Math.floor(255*i).toString(16).padStart(2,"0")}`}function lc(e,t,n,a){const{self:r}=t,{total:o}=t,i=t.name.replace(/"/g,'\\"'),s=e(r),l=8+Math.ceil(16*Math.sqrt(r/n)),c=sc(o/a,!1),f=sc(o/a,!0),u=function(e,t,n,a,r){let o="";o=`${function(e){return e.replace(/.*\//,"")}(t)}\n`;const i=e(n);0!==n?o=`${o+i} (${ic(n,r)})`:o+="0";let s=i;a!==n&&(o+=0!==n?"\n":" ",s=e(a),o=`${o}of ${s} (${ic(a,r)})`);return o}(e,i,r,o,a),d={label:u,id:`node${t.index}`,fontsize:l,shape:"box",tooltip:`${i} (${s})`,color:c,fontcolor:"#000000",style:"filled",fontname:"",fillcolor:f};return`N${t.index} ${oc(d)}`}function cc(e){if("double"===e.metadata.format)return"diff flamegraphs are not supported";const t=Gl(e.flamebearer),n=[],a=[];const[r,o,,i]=function e(t,n,a,r,o){return t.children.forEach(t=>{const[i,s]=e(t,n,a,r,o);n=Math.max(n,i),a=Math.max(a,s)}),n=Math.max(n,t.self[0]),a=Math.max(a,t.total[0]),r+=t.self[0],o+=t.total[0],[n,a,r,o]}(t,0,0,0,0),{sampleRate:s,units:l}=e.metadata,c=pr(o,s,l),f=e=>c.format(e,s,!0);let u={};const d={};let h=0;function m(e,t){return-1===t.indexOf(e.name)&&(u[e.name]?(u[e.name].self+=e.self[0],u[e.name].total+=e.total[0]):(h+=1,u[e.name]={index:h,name:e.name,self:e.self[0],total:e.total[0],parents:[],children:[]})),e.children.forEach(n=>{const a=m(n,t.concat([e.name])),r=`${e.name}/${n.name}`;n.name!==e.name&&(d[r]?d[r].weight+=n.total[0]:d[r]={from:u[e.name],to:a,weight:n.total[0],residual:!1},a.parents.push(d[r]),u[e.name].children.push(d[r]))}),u[e.name]}t.children.forEach(e=>{m(e,[])});const p=.005*i,g=.001*i;function v(e,t){let n=0,a=t;if(e.forEach(e=>{e.weight>0&&(a+=Math.abs(e.weight))}),0!==a&&(e.forEach(e=>{const t=Math.abs(e.weight)/a;n+=-t*Math.log2(t)}),t>0)){const e=Math.abs(t)/a;n+=-e*Math.log2(e)}return n}Object.keys(u).forEach(e=>{u[e].total<p&&delete u[e]});const b={};Object.keys(u).forEach(e=>{b[u[e].name]=function(e){let t=0;return 0===e.parents.length?t+=1:t+=v(e.parents,0),0===e.children.length?t+=1:t+=v(e.children,e.self),t*e.total+e.self}(u[e])});const y=Object.values(u).sort((e,t)=>{const n=b[e.name],a=b[t.name];return n!==a?a-n:e.name!==t.name?e.name<t.name?-1:1:e.self!==t.self?a-n:e.name<t.name?-1:1}),x={};function w(e){const[t,n]=[e.from,e.to],a={},r=[n];for(;r.length>0;){const n=r.shift();for(let o=0;o<n.parents.length;o+=1){const i=n.parents[o];if(e!==i&&!a[i.from.name]){if(i.from===t)return!0;a[i.from.name]=!0,r.push(i.from)}}}return!1}return y.forEach(e=>{x[e.name]=e}),y.slice(80).forEach(e=>{delete x[e.name]}),function e(t,n){const a=!x[t.name];t.children.forEach(r=>{const o=!x[r.name];if(e(r,a?n:t),!o&&n&&a){const e=`${n.name}/${r.name}`;d[e]||(d[e]={from:u[n.name],to:u[r.name],weight:0,residual:!0}),d[e].weight+=r.total[0],d[e].residual=!0}})}(t,null),u=x,y.reverse().forEach(e=>{const t=e.parents.sort((e,t)=>t.weight-e.weight),n=[];for(let e=0;e<t.length;e+=1){const a=t[e];if(!a.residual)break;w(a)&&(n.push(a),delete d[`${a.from.name}/${a.to.name}`])}n.forEach(e=>{e.from.children=e.from.children.filter(t=>t.to!==e.to),e.to.parents=e.to.parents.filter(t=>t.from!==e.from)})}),Object.keys(d).forEach(e=>{const t=d[e];u[t.from.name]||delete d[e],u[t.to.name]||delete d[e],t.weight<g&&delete d[e]}),Object.keys(u).forEach(e=>{n.push(lc(f,u[e],r,o))}),Object.keys(d).forEach(e=>{a.push(function(e,t,n){const a=t.from.name.replace(/"/g,'\\"'),r=t.to.name.replace(/"/g,'\\"'),o=t.weight,i=e(t.weight),s=`${a} -> ${r} (${i})`,l={label:i,weight:1+100*o/n,penwidth:1+5*o/n,tooltip:s,labeltooltip:s,fontname:"",color:sc(o/n,!1),style:t.residual?"dotted":""};return`N${t.from.index} -> N${t.to.index} ${oc(l)}`}(f,d[e],o))}),`digraph "unnamed" {\n fontname= ""\n ${n.join("\n")}\n ${a.join("\n")}\n }`}var fc="GraphVizPanel-module_graphVizPane__B18cQ";const uc=()=>null;function dc({flamebearer:n}){var a,r;const o=n,i=(null===(a=o.metadata)||void 0===a?void 0:a.format)&&(null===(r=o.flamebearer)||void 0===r?void 0:r.levels),s=`graphviz-pane-${(null==o?void 0:o.appName)||String((new Date).valueOf())}`,l=t.useMemo(()=>cc(o),[JSON.stringify(o)]);return e.jsx("div",{className:fc,children:i?e.jsx(uc,{options:{zoom:!0,width:"150%",height:"100%",scale:1,useWorker:!1},dot:l}):e.jsx("div",{children:"NO DATA"})},s)}function hc(e,t){const n=[...t];function a(e,t,n){for(const a of e){let e=0;for(let r=t;r<a.length;r+=n)a[r]-=e,e+=a[r]+a[r+1]}}return"double"===e?(a(n,0,7),a(n,3,7)):a(n,0,4),n}function mc(e,t){const n=[...t];function a(e,t,n){for(const a of e){let e=0;for(let r=t;r<a.length;r+=n)a[r]+=e,e=a[r]+a[r+1]}}return"double"===e?(a(n,0,7),a(n,3,7)):a(n,0,4),n}function pc(e){if(e.profile&&e.flamebearer&&console.warn("'profile' and 'flamebearer' properties are mutually exclusive. Please use profile if possible."),e.profile){const n={...e.profile,flamebearer:{...e.profile.flamebearer}};n.flamebearer.levels=JSON.parse(JSON.stringify(n.flamebearer.levels)),(t=n).flamebearer.levels=mc(t.metadata.format,t.flamebearer.levels);const a={...n,...n.metadata,...n.flamebearer,flamebearer:void 0,metadata:void 0};return delete a.flamebearer,delete a.metadata,a}var t;if(e.flamebearer)return e.flamebearer;return{format:"single",names:[],units:"unknown",levels:[[]],spyName:"unknown",numTicks:0,sampleRate:0,maxSelf:0}}class gc extends t.Component{constructor(t){super(t),this.resetFlamegraphState={focusedNode:n.Maybe.nothing(),zoom:n.Maybe.nothing()},this.initialFlamegraphState=this.resetFlamegraphState,this.calcNewConfigs=(e,t)=>{const n=this.state.flamegraphConfigs,a=(e,t,n)=>{const a=(e,t,n)=>e.names[ar(e.format).getBarName(e.levels[t],n)];if(n.isNothing)return!0;try{const r=n,o=a(e,r.value.i,r.value.j);return o===a(t,r.value.i,r.value.j)}catch{return!1}};a(e,t,this.state.flamegraphConfigs.zoom)||(n.zoom=this.resetFlamegraphState.zoom);return a(e,t,this.state.flamegraphConfigs.focusedNode)||(n.focusedNode=this.resetFlamegraphState.focusedNode),n},this.onSearchChange=e=>{this.setState({searchQuery:e})},this.isSameFlamebearer=(e,t)=>function(e,t){var n;return e.format===t.format&&e.numTicks===t.numTicks&&e.sampleRate===t.sampleRate&&e.units===t.units&&(null===(n=e.names)||void 0===n?void 0:n.length)===(null==t?void 0:t.names.length)&&e.levels.length===t.levels.length&&!!e.names.every((e,n)=>e===t.names[n])&&!!function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){if(e[n].length!==t[n].length)return!1;for(let a=0;a<e[n].length;a++)if(e[n][a]!==t[n][a])return!1}return!0}(e.levels,t.levels)&&JSON.stringify({...e,levels:void 0,names:void 0})===JSON.stringify({...t,levels:void 0,names:void 0})}(e,t),this.onReset=()=>{this.setState({...this.state,flamegraphConfigs:{...this.state.flamegraphConfigs,...this.initialFlamegraphState},selectedItem:n.Maybe.nothing()})},this.onFlamegraphZoom=e=>{e.isJust&&0===e.value.i&&0===e.value.j?this.onReset():this.setState({...this.state,flamegraphConfigs:{...this.state.flamegraphConfigs,zoom:e}})},this.onFocusOnNode=(e,t)=>{if(0===e&&0===t)return void this.onReset();let a={...this.state.flamegraphConfigs};const{zoom:r}=this.state.flamegraphConfigs;r.isJust&&r.value.i<=e&&(a={...a,zoom:this.initialFlamegraphState.zoom}),this.setState({...this.state,flamegraphConfigs:{...a,focusedNode:n.Maybe.just({i:e,j:t})}})},this.isNameInFocusedSubtree=e=>{const{focusedNode:t}=this.state.flamegraphConfigs;if(t.isNothing)return!0;const{flamebearer:n}=this.state;if(!n||!n.levels)return!0;const{names:a,levels:r,format:o}=n,i=ar(o),s=t.value.i,l=t.value.j,c=r[s];if(!c)return!0;const f=i.getBarOffset(c,l),u=f+i.getBarTotal(c,l);for(let t=s;t<r.length;t++){const n=r[t];for(let t=0;t<n.length;t+=i.jStep){const r=i.getBarOffset(n,t),o=i.getBarTotal(n,t);if(r>=f&&r+o<=u){if(a[i.getBarName(n,t)]===e)return!0}}}return!1},this.setActiveItem=e=>{const{name:t}=e;if(this.state.selectedItem.isJust&&t===this.state.selectedItem.value)return void this.setState({selectedItem:n.Maybe.nothing()});this.isNameInFocusedSubtree(t)?this.setState({selectedItem:n.Maybe.just(t)}):this.setState({selectedItem:n.Maybe.just(t),flamegraphConfigs:{...this.state.flamegraphConfigs,focusedNode:this.resetFlamegraphState.focusedNode}})},this.getHighlightQuery=()=>this.state.selectedItem.isJust?this.state.selectedItem.value:this.state.searchQuery,this.updateView=e=>{"sandwich"===e&&this.setState({searchQuery:"",flamegraphConfigs:this.resetFlamegraphState}),this.setState({view:e})},this.updateFlamegraphDirtiness=()=>{const e=this.isDirty();this.setState({isFlamegraphDirty:e})},this.updateFitMode=e=>{this.setState({fitMode:e})},this.isDirty=()=>this.state.selectedItem.isJust||JSON.stringify(this.initialFlamegraphState)!==JSON.stringify(this.state.flamegraphConfigs),this.handleSetPalette=e=>{this.setState({palette:e})},this.render=()=>{const t=e.jsx("div",{className:Lr(rc.tablePane,"vertical"===this.state.panesOrientation?rc.vertical:rc.horizontal),children:e.jsx($s,{"data-testid":"table-view",flamebearer:this.state.flamebearer,fitMode:this.state.fitMode,highlightQuery:this.state.searchQuery,selectedItem:this.state.selectedItem,handleTableItemClick:this.setActiveItem,palette:this.state.palette,onFocusOnNode:this.onFocusOnNode,updateView:this.props.onlyDisplay?void 0:this.updateView,enableSandwichView:this.props.enableSandwichView})},"table-pane"),n=this.shouldShowToolbar(),a=e.jsx(Yi,{showCredit:this.props.showCredit,flamebearer:this.state.flamebearer,highlightQuery:this.getHighlightQuery(),setActiveItem:this.setActiveItem,selectedItem:this.state.selectedItem,updateView:this.props.onlyDisplay?void 0:this.updateView,fitMode:this.state.fitMode,updateFitMode:this.updateFitMode,zoom:this.state.flamegraphConfigs.zoom,focusedNode:this.state.flamegraphConfigs.focusedNode,onZoom:this.onFlamegraphZoom,onFocusOnNode:this.onFocusOnNode,onReset:this.onReset,isDirty:this.isDirty,palette:this.state.palette,toolbarVisible:n,setPalette:this.handleSetPalette,enableSandwichView:this.props.enableSandwichView},"flamegraph-pane"),r=(()=>{if(this.state.selectedItem.isNothing)return e.jsx("div",{className:rc.sandwichPane,children:e.jsxs("div",{className:Lr(rc.sandwichPaneInfo,"vertical"===this.state.panesOrientation?rc.vertical:rc.horizontal),children:[e.jsx("div",{className:rc.arrow}),"Select a function to view callers/callees sandwich view"]})},"sandwich-pane");const t=ac(this.state.flamebearer,this.state.selectedItem.value),a=nc(this.state.flamebearer,this.state.selectedItem.value),r=t=>e.jsx(Yi,{disableClick:!0,showCredit:this.props.showCredit,highlightQuery:"",setActiveItem:this.setActiveItem,selectedItem:this.state.selectedItem,fitMode:this.state.fitMode,updateFitMode:this.updateFitMode,zoom:this.state.flamegraphConfigs.zoom,focusedNode:this.state.flamegraphConfigs.focusedNode,onZoom:this.onFlamegraphZoom,onFocusOnNode:this.onFocusOnNode,onReset:this.onReset,isDirty:this.isDirty,palette:this.state.palette,toolbarVisible:n,setPalette:this.handleSetPalette,...t});return e.jsxs("div",{className:rc.sandwichPane,children:[e.jsxs("div",{className:rc.sandwichTop,children:[e.jsx("span",{className:rc.name,children:"Callers"}),r({flamebearer:t})]}),e.jsxs("div",{className:rc.sandwichBottom,children:[e.jsx("span",{className:rc.name,children:"Callees"}),r({flamebearer:a,headerVisible:!1,showSingleLevel:!0})]})]},"sandwich-pane")})(),o=!this.state.flamebearer||this.state.flamebearer.names.length<=1,i=function(e,t,n,a,r){switch(e){case"table":return[n];case"flamegraph":return[t];case"sandwich":return[n,a];case"both":return[n,t];case"graphviz":return[r];default:throw new Error(`Invalid view '${e}'`)}}(this.state.view,a,t,r,e.jsx(dc,{flamebearer:this.state.flamebearer}));return e.jsxs("div",{children:[e.jsxs("div",{children:[n&&e.jsx(Ql,{sharedQuery:this.props.sharedQuery,enableChangingDisplay:!this.props.onlyDisplay,flamegraphType:this.state.flamebearer.format,view:this.state.view,handleSearchChange:this.onSearchChange,reset:this.onReset,updateView:this.updateView,updateFitMode:this.updateFitMode,fitMode:this.state.fitMode,isFlamegraphDirty:this.isDirty(),selectedNode:this.state.flamegraphConfigs.zoom,highlightQuery:this.state.searchQuery,onFocusOnSubtree:this.onFocusOnNode,ExportData:this.props.ExportData,palette:this.state.palette,setPalette:this.handleSetPalette}),this.props.children,e.jsx("div",{className:`${rc.flamegraphContainer} ${Lr("vertical"===this.state.panesOrientation?rc.vertical:rc.horizontal,rc[this.state.panesOrientation],rc.panesWrapper)}`,children:o?e.jsx(Br,{}):i.map(e=>e)})]}),this.props.showPyroscopeLogo&&e.jsxs("div",{className:rc.createdBy,children:["Created by",e.jsxs("a",{href:"https://twitter.com/PyroscopeIO",rel:"noreferrer",target:"_blank",children:[e.jsx(f,{width:"30",height:"30"}),"@PyroscopeIO"]})]})]})},this.state={isFlamegraphDirty:!1,view:this.props.onlyDisplay?this.props.onlyDisplay:"both",fitMode:"HEAD",flamebearer:pc(t),panesOrientation:t.panesOrientation?t.panesOrientation:"horizontal",searchQuery:"",selectedItem:n.Maybe.nothing(),flamegraphConfigs:this.initialFlamegraphState,palette:ui}}componentDidUpdate(e,t){const a=pc(e),r=pc(this.props);if(!this.isSameFlamebearer(a,r)){const e=this.calcNewConfigs(a,r);return void this.setState({flamebearer:r,flamegraphConfigs:{...this.state.flamegraphConfigs,...e},selectedItem:n.Maybe.nothing()})}t.flamegraphConfigs!==this.state.flamegraphConfigs&&this.updateFlamegraphDirtiness()}shouldShowToolbar(){return void 0===this.props.showToolbar||this.props.showToolbar}}gc.defaultProps={showCredit:!1};const vc={showPyroscopeLogo:!1},bc=(e,t)=>{if(t)return t;const n=null!=e?e:"auto";return"zh-CN"===("auto"===n?"undefined"!=typeof navigator&&navigator.language&&navigator.language.toLowerCase().startsWith("zh")?"zh-CN":"en":n)?vi:gi};exports.Box=function(t){const{children:n,noPadding:a,className:r="",theme:o="dark"}=t,i=a?"":Xa.padding;return e.jsx("div",{className:`${Xa.box} ${i} ${r}`,"data-theme":o,children:n})},exports.DefaultPalette=ui,exports.Flamegraph=Ar,exports.FlamegraphI18nProvider=yi,exports.FlamegraphRenderer=n=>{const{i18n:a,locale:r,colorMode:o="light",sandwich:i=!0,...s}=n,l=t.useMemo(()=>bc(r,a),[r,a]),c=t.useMemo(()=>(e=>{switch(e){case"dark":return"ps-theme-dark";case"kylin":return"ps-theme-kylin";default:return"ps-theme-light"}})(o),[o]);return e.jsx("pyro-flamegraph",{className:c,children:e.jsx(yi,{messages:l,children:e.jsx(gc,{...vc,enableSandwichView:i,...s})})})},exports.convertJaegerTraceToProfile=function(e){const t={numTicks:0,maxSelf:0,names:[],levels:[]},n={},a={children:[]};return e.spans.forEach(e=>{e.children=[],n[e.spanID]=e}),e.spans.forEach(e=>{let t=a;e.references&&e.references.length>0&&(t=n[e.references[0].spanID]||a),t.children.push(e)}),function e(t,n){(t.children||[]).forEach(t=>e(t));let a=0;const r=u(t.children||[],e=>e.operationName);t.children=d(r,e=>{const t=e[0];for(let n=1;n<e.length;n+=1)t.duration+=e[n].duration;return a+=t.duration,t}),t.total=t.duration||a,t.self=Math.max(0,t.total-a)}(a),function n(a,r,o){var i;return t.numTicks||(t.numTicks=a.total),(i=t.levels)[r]||(i[r]=[]),t.levels[r].push(o),t.levels[r].push(a.total),t.levels[r].push(a.self),t.names.push((a.processID?`${e.processes[a.processID].serviceName}: `:"")+(a.operationName||"total")),t.levels[r].push(t.names.length-1),(a.children||[]).forEach(e=>{o+=n(e,r+1,o)}),a.total}(a,0,0),t.levels=hc("single",t.levels),{version:1,flamebearer:t,metadata:{format:"single",units:"trace_samples",spyName:"tracing",sampleRate:1e6}}},exports.diffTwoProfiles=function(e,t){e.flamebearer.levels=mc("single",e.flamebearer.levels),t.flamebearer.levels=mc("single",t.flamebearer.levels);const n=function(e,t){const n={format:"double",numTicks:e.numTicks+t.numTicks,leftTicks:e.numTicks,rightTicks:t.numTicks,maxSelf:100,sampleRate:e.sampleRate,names:[],levels:[],units:e.units,spyName:e.spyName},a=Gl(e,t),r=(e,t,a,o)=>{var i;const{name:s,children:l,self:c,total:f}=e;n.names.push(s),(i=n.levels)[t]||(i[t]=[]),n.maxSelf=Math.max(n.maxSelf,c[0]||0,c[1]||0),n.levels[t]=n.levels[t].concat([a,f[0]||0,c[0]||0,o,f[1]||0,c[1]||0,n.names.length-1]);for(let e=0;e<l.length;e+=1){const[n,i]=r(l[e],t+1,a,o);a+=n,o+=i}return[f[0]||0,f[1]||0]};return r(a,0,0,0),n}(e.flamebearer,t.flamebearer);n.levels=hc("double",n.levels);const a={...e.metadata};return a.format="double",{version:1,flamebearer:n,metadata:a,leftTicks:e.flamebearer.numTicks,rightTicks:t.flamebearer.numTicks}},exports.flamegraphDefaultMessages=gi,exports.flamegraphZhCNMessages=vi;
|
|
18
18
|
//# sourceMappingURL=index.node.cjs.js.map
|