@kylincloud/flamegraph 0.35.24 → 0.35.25
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 +6 -0
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph.d.ts +7 -1
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph.d.ts.map +1 -1
- package/dist/FlameGraph/FlameGraphComponent/Flamegraph_render.d.ts +2 -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.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.node.cjs.js +2 -2
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.esm.js +4 -4
- package/dist/index.node.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/FlameGraph/FlameGraphComponent/Flamegraph.ts +34 -8
- package/src/FlameGraph/FlameGraphComponent/Flamegraph_render.ts +124 -77
- package/src/FlameGraph/FlameGraphComponent/canvas.module.css +9 -0
- package/src/FlameGraph/FlameGraphComponent/index.tsx +72 -20
- package/src/FlameGraph/FlameGraphRenderer.tsx +25 -18
package/dist/index.cjs.js
CHANGED
|
@@ -9,10 +9,10 @@
|
|
|
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 Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}function I(e,t,a){return t&&function(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,N(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=w(e))||t){a&&(e=a);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,r=!0,l=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){l=!0,o=e},f:function(){try{r||null==a.return||a.return()}finally{if(l)throw o}}}}function y(e,t,a){return(t=N(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function B(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,n)}return a}function F(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?B(Object(a),!0).forEach(function(t){y(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):B(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,i,o,r,l=[],s=!0,c=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;s=!1}else for(;!(s=(n=o.call(a)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=a.return&&(r=a.return(),Object(r)!==r))return}finally{if(c)throw i}}return l}}(e,t)||w(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 L(e){return function(e){if(Array.isArray(e))return Q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(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 N(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function X(e){return X="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},X(e)}function w(e,t){if(e){if("string"==typeof e)return Q(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Q(e,t):void 0}}var W=function(){},C={},R={},U=null,D={mark:W,measure:W};try{"undefined"!=typeof window&&(C=window),"undefined"!=typeof document&&(R=document),"undefined"!=typeof MutationObserver&&(U=MutationObserver),"undefined"!=typeof performance&&(D=performance)}catch(re){}var k=(C.navigator||{}).userAgent,Y=void 0===k?"":k,V=C,j=R,_=U,S=D;V.document;var M,J=!!j.documentElement&&!!j.head&&"function"==typeof j.addEventListener&&"function"==typeof j.createElement,E=~Y.indexOf("MSIE")||~Y.indexOf("Trident/"),z={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"}},A=["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"],O="classic",H="duotone",T="sharp",P="sharp-duotone",K="chisel",$="etch",q="jelly",ee="jelly-duo",te="jelly-fill",ae="notdog",ne="notdog-duo",ie="slab",oe="slab-press",re="thumbprint",le="utility",se="utility-duo",ce="utility-fill",de="whiteboard",ue=[O,H,T,P,K,$,q,ee,te,ae,ne,ie,oe,re,le,se,ce,de];y(y(y(y(y(y(y(y(y(y(M={},O,"Classic"),H,"Duotone"),T,"Sharp"),P,"Sharp Duotone"),K,"Chisel"),$,"Etch"),q,"Jelly"),ee,"Jelly Duo"),te,"Jelly Fill"),ae,"Notdog"),y(y(y(y(y(y(y(y(M,ne,"Notdog Duo"),ie,"Slab"),oe,"Slab Press"),re,"Thumbprint"),le,"Utility"),se,"Utility Duo"),ce,"Utility Fill"),de,"Whiteboard");var me=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}]]),be=["fak","fa-kit","fakd","fa-kit-duotone"],fe={fak:"kit","fa-kit":"kit"},he={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};y(y({},"kit","Kit"),"kit-duotone","Kit Duotone");var ge,pe={kit:"fak"},xe={"kit-duotone":"fakd"},Ge="duotone-group",Qe="swap-opacity",Ie="primary",ve="secondary";y(y(y(y(y(y(y(y(y(y(ge={},"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"),y(y(y(y(y(y(y(y(ge,"notdog-duo","Notdog Duo"),"slab","Slab"),"slab-press","Slab Press"),"thumbprint","Thumbprint"),"utility","Utility"),"utility-duo","Utility Duo"),"utility-fill","Utility Fill"),"whiteboard","Whiteboard");y(y({},"kit","Kit"),"kit-duotone","Kit Duotone");var ye={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"}},Be=["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"]),Fe=[1,2,3,4,5,6,7,8,9,10],Ze=Fe.concat([11,12,13,14,15,16,17,18,19,20]),Le=[].concat(L(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",Ge,Qe,Ie,ve]).concat(Fe.map(function(e){return"".concat(e,"x")})).concat(Ze.map(function(e){return"w-".concat(e)})),Ne="___FONT_AWESOME___",Xe="svg-inline--fa",we="data-fa-i2svg",We="data-fa-pseudo-element",Ce="data-prefix",Re="data-icon",Ue="fontawesome-i2svg",De=["HTML","HEAD","STYLE","SCRIPT"],ke=["::before","::after",":before",":after"],Ye=function(){try{return"production"===process.env.NODE_ENV}catch(e){return!1}}();function Ve(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[O]}})}var je=F({},z);je[O]=F(F(F(F({},{"fa-duotone":"duotone"}),z[O]),fe),he);var _e=Ve(je),Se=F({},{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"}});Se[O]=F(F(F(F({},{duotone:"fad"}),Se[O]),pe),xe);var Me=Ve(Se),Je=F({},ye);Je[O]=F(F({},Je[O]),{fak:"fa-kit"});var Ee=Ve(Je),ze=F({},{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"}});ze[O]=F(F({},ze[O]),{"fa-kit":"fak"}),Ve(ze);var Ae=/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)?[\-\ ]/,Oe="fa-layers-text",He=/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;Ve(F({},{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 Te=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Pe={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Ke=[].concat(L(["kit"]),L(Le)),$e=V.FontAwesomeConfig||{};if(j&&"function"==typeof j.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=Z(e,2),a=t[0],n=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=j.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(a));null!=i&&($e[n]=i)})}var qe={styleDefault:"solid",familyDefault:O,cssPrefix:"fa",replacementClass:Xe,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};$e.familyPrefix&&($e.cssPrefix=$e.familyPrefix);var et=F(F({},qe),$e);et.autoReplaceSvg||(et.observeMutations=!1);var tt={};Object.keys(qe).forEach(function(e){Object.defineProperty(tt,e,{enumerable:!0,set:function(t){et[e]=t,at.forEach(function(e){return e(tt)})},get:function(){return et[e]}})}),Object.defineProperty(tt,"familyPrefix",{enumerable:!0,set:function(e){et.cssPrefix=e,at.forEach(function(e){return e(tt)})},get:function(){return et.cssPrefix}}),V.FontAwesomeConfig=tt;var at=[];var nt=16,it={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function ot(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function rt(e){for(var t=[],a=(e||[]).length>>>0;a--;)t[a]=e[a];return t}function lt(e){return e.classList?rt(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 ct(e){return Object.keys(e||{}).reduce(function(t,a){return t+"".concat(a,": ").concat(e[a].trim(),";")},"")}function dt(e){return e.size!==it.size||e.x!==it.x||e.y!==it.y||e.rotate!==it.rotate||e.flipX||e.flipY}function ut(){var e="fa",t=Xe,a=tt.cssPrefix,n=tt.replacementClass,i=':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(a!==e||n!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),r=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(a,"-")).replace(r,"--".concat(a,"-")).replace(l,".".concat(n))}return i}var mt=!1;function bt(){tt.autoAddCss&&!mt&&(!function(e){if(e&&J){var t=j.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var a=j.head.childNodes,n=null,i=a.length-1;i>-1;i--){var o=a[i],r=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(r)>-1&&(n=o)}j.head.insertBefore(t,n)}}(ut()),mt=!0)}var ft={mixout:function(){return{dom:{css:ut,insertCss:bt}}},hooks:function(){return{beforeDOMElementCreation:function(){bt()},beforeI2svg:function(){bt()}}}},ht=V||{};ht[Ne]||(ht[Ne]={}),ht[Ne].styles||(ht[Ne].styles={}),ht[Ne].hooks||(ht[Ne].hooks={}),ht[Ne].shims||(ht[Ne].shims=[]);var gt=ht[Ne],pt=[],xt=function(){j.removeEventListener("DOMContentLoaded",xt),Gt=1,pt.map(function(e){return e()})},Gt=!1;function Qt(e){var t=e.tag,a=e.attributes,n=void 0===a?{}:a,i=e.children,o=void 0===i?[]:i;return"string"==typeof e?st(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(function(t,a){return t+"".concat(a,'="').concat(st(e[a]),'" ')},"").trim()}(n),">").concat(o.map(Qt).join(""),"</").concat(t,">")}function It(e,t,a){if(e&&e[t]&&e[t][a])return{prefix:t,iconName:a,icon:e[t][a]}}J&&((Gt=(j.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(j.readyState))||j.addEventListener("DOMContentLoaded",xt));var vt=function(e,t,a,n){var i,o,r,l=Object.keys(e),s=l.length,c=t;for(void 0===a?(i=1,r=e[l[0]]):(i=0,r=a);i<s;i++)r=c(r,e[o=l[i]],o,e);return r};function yt(e){return 1!==L(e).length?null:e.codePointAt(0).toString(16)}function Bt(e){return Object.keys(e).reduce(function(t,a){var n=e[a];return!!n.icon?t[n.iconName]=n.icon:t[a]=n,t},{})}function Ft(e,t){var a=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,n=void 0!==a&&a,i=Bt(t);"function"!=typeof gt.hooks.addPack||n?gt.styles[e]=F(F({},gt.styles[e]||{}),i):gt.hooks.addPack(e,Bt(t)),"fas"===e&&Ft("fa",t)}var Zt=gt.styles,Lt=gt.shims,Nt=Object.keys(Ee),Xt=Nt.reduce(function(e,t){return e[t]=Object.keys(Ee[t]),e},{}),wt=null,Wt={},Ct={},Rt={},Ut={},Dt={};function kt(e,t){var a,n=t.split("-"),i=n[0],o=n.slice(1).join("-");return i!==e||""===o||(a=o,~Ke.indexOf(a))?null:o}var Yt,Vt=function(){var e=function(e){return vt(Zt,function(t,a,n){return t[n]=vt(a,e,{}),t},{})};Wt=e(function(e,t,a){(t[3]&&(e[t[3]]=a),t[2])&&t[2].filter(function(e){return"number"==typeof e}).forEach(function(t){e[t.toString(16)]=a});return e}),Ct=e(function(e,t,a){(e[a]=a,t[2])&&t[2].filter(function(e){return"string"==typeof e}).forEach(function(t){e[t]=a});return e}),Dt=e(function(e,t,a){var n=t[2];return e[a]=a,n.forEach(function(t){e[t]=a}),e});var t="far"in Zt||tt.autoFetchSvg,a=vt(Lt,function(e,a){var n=a[0],i=a[1],o=a[2];return"far"!==i||t||(i="fas"),"string"==typeof n&&(e.names[n]={prefix:i,iconName:o}),"number"==typeof n&&(e.unicodes[n.toString(16)]={prefix:i,iconName:o}),e},{names:{},unicodes:{}});Rt=a.names,Ut=a.unicodes,wt=Jt(tt.styleDefault,{family:tt.familyDefault})};function jt(e,t){return(Wt[e]||{})[t]}function _t(e,t){return(Dt[e]||{})[t]}function St(e){return Rt[e]||{prefix:null,iconName:null}}function Mt(){return wt}Yt=function(e){wt=Jt(e.styleDefault,{family:tt.familyDefault})},at.push(Yt),Vt();function Jt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,a=void 0===t?O:t,n=_e[a][e];if(a===H&&!e)return"fad";var i=Me[a][e]||Me[a][n],o=e in gt.styles?e:null;return i||o||null}function Et(e){return e.sort().filter(function(e,t,a){return a.indexOf(e)===t})}var zt=Be.concat(be);function At(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,a=void 0!==t&&t,n=null,i=Et(e.filter(function(e){return zt.includes(e)})),o=Et(e.filter(function(e){return!zt.includes(e)})),r=Z(i.filter(function(e){return n=e,!A.includes(e)}),1)[0],l=void 0===r?null:r,s=function(e){var t=O,a=Nt.reduce(function(e,t){return e[t]="".concat(tt.cssPrefix,"-").concat(t),e},{});return ue.forEach(function(n){(e.includes(a[n])||e.some(function(e){return Xt[n].includes(e)}))&&(t=n)}),t}(i),c=F(F({},function(e){var t=[],a=null;return e.forEach(function(e){var n=kt(tt.cssPrefix,e);n?a=n:e&&t.push(e)}),{iconName:a,rest:t}}(o)),{},{prefix:Jt(l,{family:s})});return F(F(F({},c),function(e){var t=e.values,a=e.family,n=e.canonical,i=e.givenPrefix,o=void 0===i?"":i,r=e.styles,l=void 0===r?{}:r,s=e.config,c=void 0===s?{}:s,d=a===H,u=t.includes("fa-duotone")||t.includes("fad"),m="duotone"===c.familyDefault,b="fad"===n.prefix||"fa-duotone"===n.prefix;!d&&(u||m||b)&&(n.prefix="fad");(t.includes("fa-brands")||t.includes("fab"))&&(n.prefix="fab");if(!n.prefix&&Ot.includes(a)){if(Object.keys(l).find(function(e){return Ht.includes(e)})||c.autoFetchSvg){var f=me.get(a).defaultShortPrefixId;n.prefix=f,n.iconName=_t(n.prefix,n.iconName)||n.iconName}}"fa"!==n.prefix&&"fa"!==o||(n.prefix=Mt()||"fas");return n}({values:e,family:s,styles:Zt,config:tt,canonical:c,givenPrefix:n})),function(e,t,a){var n=a.prefix,i=a.iconName;if(e||!n||!i)return{prefix:n,iconName:i};var o="fa"===t?St(i):{},r=_t(n,i);i=o.iconName||r||i,"far"!==(n=o.prefix||n)||Zt.far||!Zt.fas||tt.autoFetchSvg||(n="fas");return{prefix:n,iconName:i}}(a,n,c))}var Ot=ue.filter(function(e){return e!==O||e!==H}),Ht=Object.keys(ye).filter(function(e){return e!==O}).map(function(e){return Object.keys(ye[e])}).flat();var Tt=function(){return I(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,a=new Array(t),n=0;n<t;n++)a[n]=arguments[n];var i=a.reduce(this._pullDefinitions,{});Object.keys(i).forEach(function(t){e.definitions[t]=F(F({},e.definitions[t]||{}),i[t]),Ft(t,i[t]);var a=Ee[O][t];a&&Ft(a,i[t]),Vt()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var a=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(a).map(function(t){var n=a[t],i=n.prefix,o=n.iconName,r=n.icon,l=r[2];e[i]||(e[i]={}),l.length>0&&l.forEach(function(t){"string"==typeof t&&(e[i][t]=r)}),e[i][o]=r}),e}}])}(),Pt=[],Kt={},$t={},qt=Object.keys($t);function ea(e,t){for(var a=arguments.length,n=new Array(a>2?a-2:0),i=2;i<a;i++)n[i-2]=arguments[i];return(Kt[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(n))}),t}function ta(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];(Kt[e]||[]).forEach(function(e){e.apply(null,a)})}function aa(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return $t[e]?$t[e].apply(null,t):void 0}function na(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,a=e.prefix||Mt();if(t)return t=_t(a,t)||t,It(ia.definitions,a,t)||It(gt.styles,a,t)}var ia=new Tt,oa={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return J?(ta("beforeI2svg",e),aa("pseudoElements2svg",e),aa("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]:{},a=t.autoReplaceSvgRoot;!1===tt.autoReplaceSvg&&(tt.autoReplaceSvg=!0),tt.observeMutations=!0,e=function(){la({autoReplaceSvgRoot:a}),ta("watch",t)},J&&(Gt?setTimeout(e,0):pt.push(e))}},ra={noAuto:function(){tt.autoReplaceSvg=!1,tt.observeMutations=!1,ta("noAuto")},config:tt,dom:oa,parse:{icon:function(e){if(null===e)return null;if("object"===X(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:_t(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],a=Jt(e[0]);return{prefix:a,iconName:_t(a,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(tt.cssPrefix,"-"))>-1||e.match(Ae))){var n=At(e.split(" "),{skipLookups:!0});return{prefix:n.prefix||Mt(),iconName:_t(n.prefix,n.iconName)||n.iconName}}if("string"==typeof e){var i=Mt();return{prefix:i,iconName:_t(i,e)||e}}}},library:ia,findIconDefinition:na,toHtml:Qt},la=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?j:e;(Object.keys(gt.styles).length>0||tt.autoFetchSvg)&&J&&tt.autoReplaceSvg&&ra.dom.i2svg({node:t})};function sa(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return Qt(e)})}}),Object.defineProperty(e,"node",{get:function(){if(J){var t=j.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function ca(e){var t=e.icons,a=t.main,n=t.mask,i=e.prefix,o=e.iconName,r=e.transform,l=e.symbol,s=e.maskId,c=e.extra,d=e.watchable,u=void 0!==d&&d,m=n.found?n:a,b=m.width,f=m.height,h=[tt.replacementClass,o?"".concat(tt.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:F(F({},c.attributes),{},{"data-prefix":i,"data-icon":o,class:h,role:c.attributes.role||"img",viewBox:"0 0 ".concat(b," ").concat(f)})};(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[we]="");var p=F(F({},g),{},{prefix:i,iconName:o,main:a,mask:n,maskId:s,transform:r,symbol:l,styles:F({},c.styles)}),x=n.found&&a.found?aa("generateAbstractMask",p)||{children:[],attributes:{}}:aa("generateAbstractIcon",p)||{children:[],attributes:{}},G=x.children,Q=x.attributes;return p.children=G,p.attributes=Q,l?function(e){var t=e.prefix,a=e.iconName,n=e.children,i=e.attributes,o=e.symbol,r=!0===o?"".concat(t,"-").concat(tt.cssPrefix,"-").concat(a):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:F(F({},i),{},{id:r}),children:n}]}]}(p):function(e){var t=e.children,a=e.main,n=e.mask,i=e.attributes,o=e.styles,r=e.transform;if(dt(r)&&a.found&&!n.found){var l={x:a.width/a.height/2,y:.5};i.style=ct(F(F({},o),{},{"transform-origin":"".concat(l.x+r.x/16,"em ").concat(l.y+r.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(p)}function da(e){var t=e.content,a=e.width,n=e.height,i=e.transform,o=e.extra,r=e.watchable,l=void 0!==r&&r,s=F(F({},o.attributes),{},{class:o.classes.join(" ")});l&&(s[we]="");var c=F({},o.styles);dt(i)&&(c.transform=function(e){var t=e.transform,a=e.width,n=void 0===a?16:a,i=e.height,o=void 0===i?16:i,r="";return r+=E?"translate(".concat(t.x/nt-n/2,"em, ").concat(t.y/nt-o/2,"em) "):"translate(calc(-50% + ".concat(t.x/nt,"em), calc(-50% + ").concat(t.y/nt,"em)) "),r+="scale(".concat(t.size/nt*(t.flipX?-1:1),", ").concat(t.size/nt*(t.flipY?-1:1),") "),r+"rotate(".concat(t.rotate,"deg) ")}({transform:i,width:a,height:n}),c["-webkit-transform"]=c.transform);var d=ct(c);d.length>0&&(s.style=d);var u=[];return u.push({tag:"span",attributes:s,children:[t]}),u}var ua=gt.styles;function ma(e){var t=e[0],a=e[1],n=Z(e.slice(4),1)[0];return{found:!0,width:t,height:a,icon:Array.isArray(n)?{tag:"g",attributes:{class:"".concat(tt.cssPrefix,"-").concat(Pe.GROUP)},children:[{tag:"path",attributes:{class:"".concat(tt.cssPrefix,"-").concat(Pe.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(tt.cssPrefix,"-").concat(Pe.PRIMARY),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}}}}var ba={found:!1,width:512,height:512};function fa(e,t){var a=t;return"fa"===t&&null!==tt.styleDefault&&(t=Mt()),new Promise(function(n,i){if("fa"===a){var o=St(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&ua[t]&&ua[t][e])return n(ma(ua[t][e]));!function(e,t){Ye||tt.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),n(F(F({},ba),{},{icon:tt.showMissingIcons&&e&&aa("missingIconAbstract")||{}}))})}var ha=function(){},ga=tt.measurePerformance&&S&&S.mark&&S.measure?S:{mark:ha,measure:ha},pa='FA "7.1.0"',xa=function(e){ga.mark("".concat(pa," ").concat(e," ends")),ga.measure("".concat(pa," ").concat(e),"".concat(pa," ").concat(e," begins"),"".concat(pa," ").concat(e," ends"))},Ga=function(e){return ga.mark("".concat(pa," ").concat(e," begins")),function(){return xa(e)}},Qa=function(){};function Ia(e){return"string"==typeof(e.getAttribute?e.getAttribute(we):null)}function va(e){return j.createElementNS("http://www.w3.org/2000/svg",e)}function ya(e){return j.createElement(e)}function Ba(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,a=void 0===t?"svg"===e.tag?va:ya:t;if("string"==typeof e)return j.createTextNode(e);var n=a(e.tag);return Object.keys(e.attributes||[]).forEach(function(t){n.setAttribute(t,e.attributes[t])}),(e.children||[]).forEach(function(e){n.appendChild(Ba(e,{ceFn:a}))}),n}var Fa={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(Ba(e),t)}),null===t.getAttribute(we)&&tt.keepOriginalSource){var a=j.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(a,t)}else t.remove()},nest:function(e){var t=e[0],a=e[1];if(~lt(t).indexOf(tt.replacementClass))return Fa.replace(e);var n=new RegExp("".concat(tt.cssPrefix,"-.*"));if(delete a[0].attributes.id,a[0].attributes.class){var i=a[0].attributes.class.split(" ").reduce(function(e,t){return t===tt.replacementClass||t.match(n)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});a[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var o=a.map(function(e){return Qt(e)}).join("\n");t.setAttribute(we,""),t.innerHTML=o}};function Za(e){e()}function La(e,t){var a="function"==typeof t?t:Qa;if(0===e.length)a();else{var n=Za;"async"===tt.mutateApproach&&(n=V.requestAnimationFrame||Za),n(function(){var t=!0===tt.autoReplaceSvg?Fa.replace:Fa[tt.autoReplaceSvg]||Fa.replace,n=Ga("mutate");e.map(t),n(),a()})}}var Na=!1;function Xa(){Na=!0}function wa(){Na=!1}var Wa=null;function Ca(e){if(_&&tt.observeMutations){var t=e.treeCallback,a=void 0===t?Qa:t,n=e.nodeCallback,i=void 0===n?Qa:n,o=e.pseudoElementsCallback,r=void 0===o?Qa:o,l=e.observeMutationsRoot,s=void 0===l?j:l;Wa=new _(function(e){if(!Na){var t=Mt();rt(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!Ia(e.addedNodes[0])&&(tt.searchPseudoElements&&r(e.target),a(e.target)),"attributes"===e.type&&e.target.parentNode&&tt.searchPseudoElements&&r([e.target],!0),"attributes"===e.type&&Ia(e.target)&&~Te.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Ce):null,a=e.getAttribute?e.getAttribute(Re):null;return t&&a}(e.target)){var n=At(lt(e.target)),o=n.prefix,l=n.iconName;e.target.setAttribute(Ce,o||t),l&&e.target.setAttribute(Re,l)}else(s=e.target)&&s.classList&&s.classList.contains&&s.classList.contains(tt.replacementClass)&&i(e.target);var s})}}),J&&Wa.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Ra(e){var t,a,n=e.getAttribute("data-prefix"),i=e.getAttribute("data-icon"),o=void 0!==e.innerText?e.innerText.trim():"",r=At(lt(e));return r.prefix||(r.prefix=Mt()),n&&i&&(r.prefix=n,r.iconName=i),r.iconName&&r.prefix||(r.prefix&&o.length>0&&(r.iconName=(t=r.prefix,a=e.innerText,(Ct[t]||{})[a]||jt(r.prefix,yt(e.innerText)))),!r.iconName&&tt.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=e.firstChild.data)),r}function Ua(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},a=Ra(e),n=a.iconName,i=a.prefix,o=a.rest,r=function(e){return rt(e.attributes).reduce(function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e},{})}(e),l=ea("parseNodeAttributes",{},e),s=t.styleParser?function(e){var t=e.getAttribute("style"),a=[];return t&&(a=t.split(";").reduce(function(e,t){var a=t.split(":"),n=a[0],i=a.slice(1);return n&&i.length>0&&(e[n]=i.join(":").trim()),e},{})),a}(e):[];return F({iconName:n,prefix:i,transform:it,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:s,attributes:r}},l)}var Da=gt.styles;function ka(e){var t="nest"===tt.autoReplaceSvg?Ua(e,{styleParser:!1}):Ua(e);return~t.extra.classes.indexOf(Oe)?aa("generateLayersText",e,t):aa("generateSvgReplacementMutation",e,t)}function Ya(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!J)return Promise.resolve();var a=j.documentElement.classList,n=function(e){return a.add("".concat(Ue,"-").concat(e))},i=function(e){return a.remove("".concat(Ue,"-").concat(e))},o=tt.autoFetchSvg?[].concat(L(be),L(Be)):A.concat(Object.keys(Da));o.includes("fa")||o.push("fa");var r=[".".concat(Oe,":not([").concat(we,"])")].concat(o.map(function(e){return".".concat(e,":not([").concat(we,"])")})).join(", ");if(0===r.length)return Promise.resolve();var l=[];try{l=rt(e.querySelectorAll(r))}catch(e){}if(!(l.length>0))return Promise.resolve();n("pending"),i("complete");var s=Ga("onTree"),c=l.reduce(function(e,t){try{var a=ka(t);a&&e.push(a)}catch(e){Ye||"MissingIcon"===e.name&&console.error(e)}return e},[]);return new Promise(function(e,a){Promise.all(c).then(function(a){La(a,function(){n("active"),n("complete"),i("pending"),"function"==typeof t&&t(),s(),e()})}).catch(function(e){s(),a(e)})})}function Va(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ka(e).then(function(e){e&&La([e],t)})}var ja=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.transform,n=void 0===a?it:a,i=t.symbol,o=void 0!==i&&i,r=t.mask,l=void 0===r?null:r,s=t.maskId,c=void 0===s?null:s,d=t.classes,u=void 0===d?[]:d,m=t.attributes,b=void 0===m?{}:m,f=t.styles,h=void 0===f?{}:f;if(e){var g=e.prefix,p=e.iconName,x=e.icon;return sa(F({type:"icon"},e),function(){return ta("beforeDOMElementCreation",{iconDefinition:e,params:t}),ca({icons:{main:ma(x),mask:l?ma(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:p,transform:F(F({},it),n),symbol:o,maskId:c,extra:{attributes:b,styles:h,classes:u}})})}},_a={mixout:function(){return{icon:(e=ja,function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:na(t||{}),i=a.mask;return i&&(i=(i||{}).icon?i:na(i||{})),e(n,F(F({},a),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Ya,e.nodeCallback=Va,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,a=void 0===t?j:t,n=e.callback;return Ya(a,void 0===n?function(){}:n)},e.generateSvgReplacementMutation=function(e,t){var a=t.iconName,n=t.prefix,i=t.transform,o=t.symbol,r=t.mask,l=t.maskId,s=t.extra;return new Promise(function(t,c){Promise.all([fa(a,n),r.iconName?fa(r.iconName,r.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(r){var c=Z(r,2),d=c[0],u=c[1];t([e,ca({icons:{main:d,mask:u},prefix:n,iconName:a,transform:i,symbol:o,maskId:l,extra:s,watchable:!0})])}).catch(c)})},e.generateAbstractIcon=function(e){var t,a=e.children,n=e.attributes,i=e.main,o=e.transform,r=ct(e.styles);return r.length>0&&(n.style=r),dt(o)&&(t=aa("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),a.push(t||i.icon),{children:a,attributes:n}}}},Sa={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.classes,n=void 0===a?[]:a;return sa({type:"layer"},function(){ta("beforeDOMElementCreation",{assembler:e,params:t});var a=[];return e(function(e){Array.isArray(e)?e.map(function(e){a=a.concat(e.abstract)}):a=a.concat(e.abstract)}),[{tag:"span",attributes:{class:["".concat(tt.cssPrefix,"-layers")].concat(L(n)).join(" ")},children:a}]})}}}},Ma={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.title;var a=t.classes,n=void 0===a?[]:a,i=t.attributes,o=void 0===i?{}:i,r=t.styles,l=void 0===r?{}:r;return sa({type:"counter",content:e},function(){return ta("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,a=e.extra,n=F(F({},a.attributes),{},{class:a.classes.join(" ")}),i=ct(a.styles);i.length>0&&(n.style=i);var o=[];return o.push({tag:"span",attributes:n,children:[t]}),o}({content:e.toString(),extra:{attributes:o,styles:l,classes:["".concat(tt.cssPrefix,"-layers-counter")].concat(L(n))}})})}}}},Ja={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.transform,n=void 0===a?it:a,i=t.classes,o=void 0===i?[]:i,r=t.attributes,l=void 0===r?{}:r,s=t.styles,c=void 0===s?{}:s;return sa({type:"text",content:e},function(){return ta("beforeDOMElementCreation",{content:e,params:t}),da({content:e,transform:F(F({},it),n),extra:{attributes:l,styles:c,classes:["".concat(tt.cssPrefix,"-layers-text")].concat(L(o))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var a=t.transform,n=t.extra,i=null,o=null;if(E){var r=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();i=l.width/r,o=l.height/r}return Promise.resolve([e,da({content:e.innerHTML,width:i,height:o,transform:a,extra:n,watchable:!0})])}}},Ea=new RegExp('"',"ug"),za=[1105920,1112319],Aa=F(F(F(F({},{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"}}),Oa=Object.keys(Aa).reduce(function(e,t){return e[t.toLowerCase()]=Aa[t],e},{}),Ha=Object.keys(Oa).reduce(function(e,t){var a=Oa[t];return e[t]=a[900]||L(Object.entries(a))[0][1],e},{});function Ta(e,t){var a="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(function(n,i){if(null!==e.getAttribute(a))return n();var o,r,l,s=rt(e.children).filter(function(e){return e.getAttribute(We)===t})[0],c=V.getComputedStyle(e,t),d=c.getPropertyValue("font-family"),u=d.match(He),m=c.getPropertyValue("font-weight"),b=c.getPropertyValue("content");if(s&&!u)return e.removeChild(s),n();if(u&&"none"!==b&&""!==b){var f=c.getPropertyValue("content"),h=function(e,t){var a=e.replace(/^['"]|['"]$/g,"").toLowerCase(),n=parseInt(t),i=isNaN(n)?"normal":n;return(Oa[a]||{})[i]||Ha[a]}(d,m),g=function(e){return yt(L(e.replace(Ea,""))[0]||"")}(f),p=u[0].startsWith("FontAwesome"),x=function(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),a=e.getPropertyValue("content").replace(Ea,""),n=a.codePointAt(0),i=n>=za[0]&&n<=za[1],o=2===a.length&&a[0]===a[1];return i||o||t}(c),G=jt(h,g),Q=G;if(p){var I=(r=Ut[o=g],l=jt("fas",o),r||(l?{prefix:"fas",iconName:l}:null)||{prefix:null,iconName:null});I.iconName&&I.prefix&&(G=I.iconName,h=I.prefix)}if(!G||x||s&&s.getAttribute(Ce)===h&&s.getAttribute(Re)===Q)n();else{e.setAttribute(a,Q),s&&e.removeChild(s);var v={iconName:null,prefix:null,transform:it,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},y=v.extra;y.attributes[We]=t,fa(G,h).then(function(i){var o=ca(F(F({},v),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:h,iconName:Q,extra:y,watchable:!0})),r=j.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(r,e.firstChild):e.appendChild(r),r.outerHTML=o.map(function(e){return Qt(e)}).join("\n"),e.removeAttribute(a),n()}).catch(i)}}else n()})}function Pa(e){return Promise.all([Ta(e,"::before"),Ta(e,"::after")])}function Ka(e){return!(e.parentNode===document.head||~De.indexOf(e.tagName.toUpperCase())||e.getAttribute(We)||e.parentNode&&"svg"===e.parentNode.tagName)}var $a=function(e){return!!e&&ke.some(function(t){return e.includes(t)})},qa=function(e){if(!e)return[];var t=new Set,a=e.split(/,(?![^()]*\))/).map(function(e){return e.trim()});a=a.flatMap(function(e){return e.includes("(")?e:e.split(",").map(function(e){return e.trim()})});var n,i=v(a);try{for(i.s();!(n=i.n()).done;){var o=n.value;if($a(o)){var r=ke.reduce(function(e,t){return e.replace(t,"")},o);""!==r&&"*"!==r&&t.add(r)}}}catch(e){i.e(e)}finally{i.f()}return t};function en(e){if(J){var t;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])t=e;else if(tt.searchPseudoElementsFullScan)t=e.querySelectorAll("*");else{var a,n=new Set,i=v(document.styleSheets);try{for(i.s();!(a=i.n()).done;){var o=a.value;try{var r,l=v(o.cssRules);try{for(l.s();!(r=l.n()).done;){var s,c=r.value,d=v(qa(c.selectorText));try{for(d.s();!(s=d.n()).done;){var u=s.value;n.add(u)}}catch(e){d.e(e)}finally{d.f()}}}catch(e){l.e(e)}finally{l.f()}}catch(e){tt.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){i.e(e)}finally{i.f()}if(!n.size)return;var m=Array.from(n).join(", ");try{t=e.querySelectorAll(m)}catch(e){}}return new Promise(function(e,a){var n=rt(t).filter(Ka).map(Pa),i=Ga("searchPseudoElements");Xa(),Promise.all(n).then(function(){i(),wa(),e()}).catch(function(){i(),wa(),a()})})}}var tn={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=en,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,a=void 0===t?j:t;tt.searchPseudoElements&&en(a)}}},an=!1,nn=function(e){return e.toLowerCase().split(" ").reduce(function(e,t){var a=t.toLowerCase().split("-"),n=a[0],i=a.slice(1).join("-");if(n&&"h"===i)return e.flipX=!0,e;if(n&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(n){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},on={mixout:function(){return{parse:{transform:function(e){return nn(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var a=t.getAttribute("data-fa-transform");return a&&(e.transform=nn(a)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,a=e.transform,n=e.containerWidth,i=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},r="translate(".concat(32*a.x,", ").concat(32*a.y,") "),l="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),s="rotate(".concat(a.rotate," 0 0)"),c={outer:o,inner:{transform:"".concat(r," ").concat(l," ").concat(s)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:F({},c.outer),children:[{tag:"g",attributes:F({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:F(F({},t.icon.attributes),c.path)}]}]}}}},rn={x:0,y:0,width:"100%",height:"100%"};function ln(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 sn={hooks:function(){return{parseNodeAttributes:function(e,t){var a=t.getAttribute("data-fa-mask"),n=a?At(a.split(" ").map(function(e){return e.trim()})):{prefix:null,iconName:null,rest:[]};return n.prefix||(n.prefix=Mt()),e.mask=n,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,a=e.children,n=e.attributes,i=e.main,o=e.mask,r=e.maskId,l=e.transform,s=i.width,c=i.icon,d=o.width,u=o.icon,m=function(e){var t=e.transform,a=e.containerWidth,n=e.iconWidth,i={transform:"translate(".concat(a/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),r="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(o," ").concat(r," ").concat(l)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:l,containerWidth:d,iconWidth:s}),b={tag:"rect",attributes:F(F({},rn),{},{fill:"white"})},f=c.children?{children:c.children.map(ln)}:{},h={tag:"g",attributes:F({},m.inner),children:[ln(F({tag:c.tag,attributes:F(F({},c.attributes),m.path)},f))]},g={tag:"g",attributes:F({},m.outer),children:[h]},p="mask-".concat(r||ot()),x="clip-".concat(r||ot()),G={tag:"mask",attributes:F(F({},rn),{},{id:p,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[b,g]},Q={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:(t=u,"g"===t.tag?t.children:[t])},G]};return a.push(Q,{tag:"rect",attributes:F({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(p,")")},rn)}),{children:a,attributes:n}}}},cn={provides:function(e){var t=!1;V.matchMedia&&(t=V.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],a={fill:"currentColor"},n={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:F(F({},a),{},{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 i=F(F({},n),{},{attributeName:"opacity"}),o={tag:"circle",attributes:F(F({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:F(F({},n),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:F(F({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:F(F({},a),{},{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:F(F({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:F(F({},a),{},{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:F(F({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var a=t.mixoutsTo;Pt=e,Kt={},Object.keys($t).forEach(function(e){-1===qt.indexOf(e)&&delete $t[e]}),Pt.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){"function"==typeof t[e]&&(a[e]=t[e]),"object"===X(t[e])&&Object.keys(t[e]).forEach(function(n){a[e]||(a[e]={}),a[e][n]=t[e][n]})}),e.hooks){var n=e.hooks();Object.keys(n).forEach(function(e){Kt[e]||(Kt[e]=[]),Kt[e].push(n[e])})}e.provides&&e.provides($t)})}([ft,_a,Sa,Ma,Ja,tn,{mixout:function(){return{dom:{unwatch:function(){Xa(),an=!0}}}},hooks:function(){return{bootstrap:function(){Ca(ea("mutationObserverCallbacks",{}))},noAuto:function(){Wa&&Wa.disconnect()},watch:function(e){var t=e.observeMutationsRoot;an?wa():Ca(ea("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},on,sn,cn,{hooks:function(){return{parseNodeAttributes:function(e,t){var a=t.getAttribute("data-fa-symbol"),n=null!==a&&(""===a||a);return e.symbol=n,e}}}}],{mixoutsTo:ra});var dn=ra.config,un=ra.parse,mn=ra.icon;function bn(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 fn(e){return e.charAt(0).toUpperCase()+e.slice(1)}var hn=new Map;function gn(e){if(hn.has(e))return hn.get(e);const t={};let a=0;const n=e.length;for(;a<n;){const i=e.indexOf(";",a),o=-1===i?n:i,r=e.slice(a,o).trim();if(r){const e=r.indexOf(":");if(e>0){const a=r.slice(0,e).trim(),n=r.slice(e+1).trim();if(a&&n){const e=bn(a);t[e.startsWith("webkit")?fn(e):e]=n}}}a=o+1}if(1e3===hn.size){const e=hn.keys().next().value;e&&hn.delete(e)}return hn.set(e,t),t}var pn=function e(t,a,n={}){if("string"==typeof a)return a;const i=(a.children||[]).map(a=>e(t,a)),o=a.attributes||{},r={};for(const[e,t]of Object.entries(o))switch(!0){case"class"===e:r.className=t;break;case"style"===e:r.style=gn(String(t));break;case e.startsWith("aria-"):case e.startsWith("data-"):r[e.toLowerCase()]=t;break;default:r[bn(e)]=t}const{style:l,role:s,"aria-label":c,...d}=n;return l&&(r.style=r.style?{...r.style,...l}:l),s&&(r.role=s),c&&(r["aria-label"]=c,r["aria-hidden"]="false"),t(a.tag,{...d,...r},...i)}.bind(null,t.createElement),xn=(e,a)=>{const n=t.useId();return e||(a?n:void 0)};"undefined"!=typeof process&&process.env.FA_VERSION;var Gn="searchPseudoElementsFullScan"in dn?"7.0.0":"6.0.0",Qn=Number.parseInt(Gn)>=7,In="fa",vn="fa-beat",yn="fa-fade",Bn="fa-beat-fade",Fn="fa-bounce",Zn="fa-shake",Ln="fa-spin",Nn="fa-spin-pulse",Xn="fa-spin-reverse",wn="fa-pulse",Wn={left:"fa-pull-left",right:"fa-pull-right"},Cn={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},Rn={"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"},Un="fa-border",Dn="fa-fw",kn="fa-flip",Yn="fa-flip-horizontal",Vn="fa-flip-vertical",jn="fa-inverse",_n="fa-rotate-by",Sn="fa-swap-opacity",Mn="fa-width-auto";function Jn(e){const t=dn.cssPrefix||dn.familyPrefix||In;return t===In?e:e.replace(new RegExp(String.raw`(?<=^|\s)${In}-`,"g"),`${t}-`)}function En(e){if(e)return(e=>"object"==typeof e&&"icon"in e&&!!e.icon)(e)?e:un.icon(e)}var zn=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"),An={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},On=new Set(Object.keys(An)),Hn=t.forwardRef((e,t)=>{const a={...An,...e},{icon:n,mask:i,symbol:o,title:r,titleId:l,maskId:s,transform:c}=a,d=xn(s,Boolean(i)),u=xn(l,Boolean(r)),m=En(n);if(!m)return zn.error("Icon lookup is undefined",n),null;const b=function(e){const{beat:t,fade:a,beatFade:n,bounce:i,shake:o,spin:r,spinPulse:l,spinReverse:s,pulse:c,fixedWidth:d,inverse:u,border:m,flip:b,size:f,rotation:h,pull:g,swapOpacity:p,rotateBy:x,widthAuto:G,className:Q}=e,I=[];return Q&&I.push(...Q.split(" ")),t&&I.push(vn),a&&I.push(yn),n&&I.push(Bn),i&&I.push(Fn),o&&I.push(Zn),r&&I.push(Ln),s&&I.push(Xn),l&&I.push(Nn),c&&I.push(wn),d&&I.push(Dn),u&&I.push(jn),m&&I.push(Un),!0===b&&I.push(kn),"horizontal"!==b&&"both"!==b||I.push(Yn),"vertical"!==b&&"both"!==b||I.push(Vn),null!=f&&I.push(Rn[f]),null!=h&&0!==h&&I.push(Cn[h]),null!=g&&I.push(Wn[g]),p&&I.push(Sn),Qn?(x&&I.push(_n),G&&I.push(Mn),(dn.cssPrefix||dn.familyPrefix||In)===In?I:I.map(Jn)):I}(a),f="string"==typeof c?un.transform(c):c,h=En(i),g=mn(m,{...b.length>0&&{classes:b},...f&&{transform:f},...h&&{mask:h},symbol:o,title:r,titleId:u,maskId:d});if(!g)return zn.error("Could not find icon",m),null;const{abstract:p}=g,x={ref:t};for(const e of(G=a,Object.keys(G)))On.has(e)||(x[e]=a[e]);var G;return pn(p[0],x)});Hn.displayName="FontAwesomeIcon";var Tn={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(".Box-module_box__SQLj3,.Box-module_collapseBox__5A5Fc{background-color:var(--ps-ui-foreground);border:1px solid var(--ps-ui-border);border-radius:4px;position:relative}.Box-module_padding__dIJ-L{margin-bottom:10px;padding:10px}.Box-module_collapseBox__5A5Fc{margin-bottom:10px}.Box-module_collapseBox__5A5Fc .Box-module_box__SQLj3,.Box-module_collapseBox__5A5Fc .Box-module_collapseBox__5A5Fc{background-color:transparent;border:none;border-radius:0;height:auto;padding-bottom:0}.Box-module_collapseBox__5A5Fc .Box-module_box__SQLj3.Box-module_collapsedContent__yn-0g,.Box-module_collapseBox__5A5Fc .Box-module_collapsedContent__yn-0g.Box-module_collapseBox__5A5Fc{height:0;margin:0;overflow:hidden;padding:0}.Box-module_collapseTitle__-R0ge{align-items:center;cursor:pointer;display:flex;font-size:18px;font-weight:500;height:40px;justify-content:space-between;padding:5px 10px}.Box-module_collapseTitle__-R0ge:hover{background-color:var(--ps-ui-border)}.Box-module_collapseIcon__OAiTO{display:flex;transition:transform .1s}.Box-module_collapseIcon__OAiTO.Box-module_collapsed__nf76f{display:flex;transform:rotate(90deg)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJveC5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxzREFDRSx3Q0FBeUMsQ0FDekMsb0NBQXFDLENBQ3JDLGlCQUFrQixDQUNsQixpQkFDRixDQUVBLDJCQUNFLGtCQUFtQixDQUNuQixZQUNGLENBRUEsK0JBQ0Usa0JBQ0YsQ0FDQSxvSEFDRSw0QkFBNkIsQ0FDN0IsV0FBWSxDQUNaLGVBQWdCLENBRWhCLFdBQVksQ0FEWixnQkFFRixDQUNBLDBMQUNFLFFBQVMsQ0FDVCxRQUFTLENBRVQsZUFBZ0IsQ0FEaEIsU0FFRixDQUVBLGlDQU9FLGtCQUFtQixDQUpuQixjQUFlLENBRWYsWUFBYSxDQUhiLGNBQWUsQ0FEZixlQUFnQixDQU9oQixXQUFZLENBRlosNkJBQThCLENBRjlCLGdCQUtGLENBQ0EsdUNBQ0Usb0NBQ0YsQ0FFQSxnQ0FDRSxZQUFhLENBQ2Isd0JBQ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lbnRlcjtcbiAgaGVpZ2h0OiA0MHB4O1xufVxuLmNvbGxhcHNlVGl0bGU6aG92ZXIge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wcy11aS1ib3JkZXIpO1xufVxuXG4uY29sbGFwc2VJY29uIHtcbiAgZGlzcGxheTogZmxleDtcbiAgdHJhbnNpdGlvbjogdHJhbnNmb3JtIDAuMXM7XG59XG4uY29sbGFwc2VJY29uLmNvbGxhcHNlZCB7XG4gIHRyYW5zZm9ybTogcm90YXRlKDkwZGVnKTtcbiAgZGlzcGxheTogZmxleDtcbn0iXX0= */"),G.bind(Tn);const Pn=["dotnetspy","ebpfspy","gospy","phpspy","pyspy","rbspy","nodespy","javaspy","pyroscope-rs","scrape","tracing","unknown"],Kn=n.z.preprocess(e=>e&&Pn.includes(e)?e:"unknown",n.z.enum(Pn).default("unknown")),$n=["samples","objects","goroutines","bytes","lock_samples","lock_nanoseconds","trace_samples","exceptions"],qn=n.z.preprocess(e=>"string"==typeof e&&$n.includes(e)?e:"unknown",n.z.enum(["samples","objects","goroutines","bytes","lock_samples","lock_nanoseconds","trace_samples","exceptions","unknown"])),ei=n.z.object({names:n.z.array(n.z.preprocess(e=>e||"unknown",n.z.string().min(1))),levels:n.z.array(n.z.array(n.z.number())),numTicks:n.z.number(),maxSelf:n.z.number()}),ti=n.z.object({appName:n.z.string().optional(),name:n.z.string().optional(),startTime:n.z.number().optional(),endTime:n.z.number().optional(),query:n.z.string().optional(),maxNodes:n.z.number().optional(),format:n.z.enum(["single","double"]),sampleRate:n.z.number(),spyName:Kn,units:qn});n.z.object({version:n.z.number().min(1).max(1).default(1),flamebearer:ei,metadata:ti,leftTicks:n.z.number().optional(),rightTicks:n.z.number().optional()});const ai={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]},ni={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 ii(e){switch(e){case"single":return ai;case"double":return ni;default:throw new Error(`Unsupported type: '${e}'`)}}const oi=n.z.object({refType:n.z.string(),traceID:n.z.string(),spanID:n.z.string()}),ri=n.z.object({key:n.z.string(),type:n.z.string(),value:n.z.union([n.z.boolean(),n.z.number(),n.z.string()])}),li=n.z.object({traceID:n.z.string(),spanID:n.z.string(),flags:n.z.string(),operationName:n.z.string(),references:n.z.array(oi),startTime:n.z.number(),duration:n.z.number(),tags:n.z.array(ri),logs:n.z.object({timestamp:n.z.number(),fields:n.z.array(ri)}),processID:n.z.string(),warnings:n.z.any()}),si=n.z.object({serviceName:n.z.string(),tags:n.z.array(ri)});n.z.object({traceID:n.z.string(),spans:n.z.array(li),processes:n.z.record(si),warnings:n.z.any()});const ci=n.z.object({watermark:n.z.object({}).optional(),startTime:n.z.number(),samples:n.z.array(n.z.number()),durationDelta:n.z.number()});n.z.record(n.z.string(),ci);const di=22,ui=21.5;function mi(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function bi(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 a=!1;t.startsWith("<")&&(a=!0,t=t.slice(1).trim());const n=t.match(/^([+\-]?)(\d*\.?\d+)\s*(.*)$/);if(!n)return null;const i=n[1]||"",o=n[2],r=(n[3]||"").trim(),l=parseFloat(o);return Number.isFinite(l)?{value:l,unit:r,hasLessThan:a,sign:i}:null}function fi(e,t=!1){if(!e||!t)return e;const a=bi(e);if(!a)return e;const{unit:n}=a;let i=n;const o=n.toLowerCase();"ms"===o?i="毫秒":"μs"===o||"µs"===o||"us"===o?i="微秒":"second"===o||"seconds"===o?i="秒":"minute"===o||"minutes"===o||"min"===o||"mins"===o?i="分钟":"hour"===o||"hours"===o?i="小时":"day"===o||"days"===o?i="天":"month"===o||"months"===o?i="月":"year"!==o&&"years"!==o||(i="年");const r=String(e).match(/^([<\s]*)([+\-]?\d*\.?\d+)(.*)$/);if(!r)return e;return`${r[1]||""}${r[2]||""} ${i}`.trim()}const hi=[{value:1e15,label:"Quad"},{value:1e12,label:"Tri"},{value:1e9,label:"B"},{value:1e6,label:"M"},{value:1e3,label:"K"}];function gi(e){return Math.round(1e4*e)/100}function pi(e,t){return(t-e)/e*100}function xi(e,t,a){switch(a){case"samples":return new Gi(e/t);case"objects":case"goroutines":case"lock_samples":case"exceptions":return new Ii(e);case"bytes":return new vi(e);case"lock_nanoseconds":return new Qi(e);case"trace_samples":return new Gi(e/t,"",!0);default:return console.warn(`Unsupported unit: '${a}'. Defaulting to ''`),new Gi(e/t," ")}}class Gi{constructor(e,t,a){this.divider=1,this.enableSubsecondPrecision=!1,this.suffix="second",this.durations=[[60,"minute"],[60,"hour"],[24,"day"],[30,"month"],[12,"year"]],this.units="",a&&(this.enableSubsecondPrecision=a,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 a=this.durations[t];if(!a){console.warn("Could not calculate level");break}if(!(e>=a[0]))break;this.divider*=a[0],e/=a[0],this.suffix=a[1]}}format(e,t,a=!0){this.enableSubsecondPrecision&&(t/=1e6);const n=e/t/this.divider;let i=n.toFixed(2);return 0===n?i="0.00":(n>=0&&n<.01||n<=0&&n>-.01)&&(i="< 0.01"),a?`${i} ${this.units||`${this.suffix}${1===n||2===this.suffix.length?"":"s"}`}`:i}formatPrecise(e,t){this.enableSubsecondPrecision&&(t/=1e6);const a=e/t/this.divider;return`${parseFloat(a.toFixed(5))} ${this.units||`${this.suffix}${1===a||2===this.suffix.length?"":"s"}`}`}}class Qi{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 a=this.durations[t];if(!a){console.warn("Could not calculate level");break}if(!(e>=a[0]))break;this.divider*=a[0],e/=a[0],this.suffix=a[1]}}format(e){const t=e/1e9/this.divider;let a=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(a="< 0.01"),`${a} ${this.suffix}${1===t?"":"s"}`}formatPrecise(e){const t=e/1e9/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}${1===t?"":"s"}`}}class Ii{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 a=this.objects[t];if(!a){console.warn("Could not calculate level");break}if(!(e>=a[0]))break;this.divider*=a[0],e/=a[0],this.suffix=a[1]}}format(e){const t=e/this.divider;let a=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(a="< 0.01"),`${a} ${this.suffix}`}formatPrecise(e){const t=e/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}`}}class vi{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 a=this.bytes[t];if(!a){console.warn("Could not calculate level");break}if(!(e>=a[0]))break;{this.divider*=a[0],e/=a[0];const t=a[1];t?this.suffix=t:(console.warn("Could not calculate suffix"),this.suffix="")}}}format(e){const t=e/this.divider;let a=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(a="< 0.01"),`${a} ${this.suffix}`}formatPrecise(e){const t=e/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}`}}const yi="TAIL",Bi="HEAD";function Fi({mode:e,charSize:t,rectWidth:a,fullText:n,shortText:i}){if(e===yi){if(t*n.length<=a)return{mode:e,text:n,marginLeft:3};const o=t*i.length;return o<=a?{mode:e,text:i,marginLeft:3}:{mode:e,text:i,marginLeft:-(o-a+3)}}return{mode:e,text:n,marginLeft:3}}function Zi(e,t){return i.rgb(e,e,e).alpha(t)}function Li(e,t){if(0===t.length)return t;const a=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),n=t.match(a);return n&&n.groups?n.groups.packageName||"":t}function Ni(e,t){const a=function(e,t=0){let a,n,i,o,r,l,s,c;for(a=3&e.length,n=e.length-a,i=t,r=3432918353,l=461845907,c=0;c<n;)s=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,s=(65535&s)*r+(((s>>>16)*r&65535)<<16)&4294967295,s=s<<15|s>>>17,s=(65535&s)*l+(((s>>>16)*l&65535)<<16)&4294967295,i^=s,i=i<<13|i>>>19,o=5*(65535&i)+((5*(i>>>16)&65535)<<16)&4294967295,i=27492+(65535&o)+(((o>>>16)+58964&65535)<<16);switch(s=0,a){case 3:s^=(255&e.charCodeAt(c+2))<<16;case 2:s^=(255&e.charCodeAt(c+1))<<8;case 1:s^=255&e.charCodeAt(c);default:s=(65535&s)*r+(((s>>>16)*r&65535)<<16)&4294967295,s=s<<15|s>>>17,s=(65535&s)*l+(((s>>>16)*l&65535)<<16)&4294967295,i^=s}return i^=e.length,i^=i>>>16,i=2246822507*(65535&i)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(65535&i)+((3266489909*(i>>>16)&65535)<<16)&4294967295,i^=i>>>16,i>>>0}(t,0),n=a%e.colors.length,i=e.colors[n];return i||(console.warn("Could not calculate color. Defaulting to the first one"),e.colors[0])}function Xi(e){const{goodColor:t,neutralColor:a,badColor:n}=e,r=o.scaleLinear().domain([-100,0,100]).range([t.rgb().toString(),a.rgb().toString(),n.rgb().toString()]);return e=>i(r(e).toString())}function wi(e,t){return t.toLowerCase().includes(e.toLowerCase())}i.rgb(148,142,142),i.rgb(200,0,0),i.rgb(0,170,0),i("#48CE73");const Wi={collapsedLevelsSingular:"total (1 level collapsed)",collapsedLevelsPlural:"total ({n} levels collapsed)",isZh:!1};function Ci(e){const{canvas:t,fitMode:a,units:n,tickToX:i,levels:o,palette:r}=e,{numTicks:l,sampleRate:s,pxPerTick:c}=e,{rangeMin:d,rangeMax:u}=e,{focusedNode:m,zoom:b}=e,f=e.messages||Wi,h=function(e){return e.clientWidth||e.width}(t);if(t.width=h,d>=u)throw new Error("'rangeMin' should be strictly smaller than 'rangeMax'");const{format:g}=e,p=ii(g),x=t.getContext("2d");if(!x)throw new Error("Could not get ctx");const G=b.mapOrElse(()=>0,e=>e.i),Q=xi(l,s,n),I=m.isJust,v=m.mapOrElse(()=>0,e=>e.i),y=di*(o.length-v)+(I?ui:0);t.height=y,devicePixelRatio>1&&(t.width*=2,t.height*=2,x.scale(2,2));const{names:B}=e;if(I){const e=l*c;x.beginPath(),x.rect(0,0,l*c,ui),x.fillStyle=Zi(200,1).rgb().string(),x.fill();const t=m.mapOrElse(()=>"total",e=>function(e,t){return 1===e?t.collapsedLevelsSingular:t.collapsedLevelsPlural.replace("{n}",String(e))}(e.i-1,f));x.textBaseline="middle",x.font="400 11.5px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace";const n=Fi({mode:a,charSize:x.measureText("a").width,rectWidth:e,fullText:t,shortText:t}),i=0,o=0,r=ui;x.save(),x.clip(),x.fillStyle="black";const s=Math.round(Math.max(i,0));x.fillText(n.text,s+n.marginLeft,o+r/2+1),x.restore()}for(let t=0;t<o.length-v;t+=1){const n=o[v+t];if(!n)throw new Error(`Could not find level: ${v+t}`);for(let o=0;o<n.length;o+=p.jStep){const l=p.getBarOffset(n,o),d=i(l),u=t*di+(I?ui:0),b=ui,h=!!e.highlightQuery&&e.highlightQuery.length>0,v=Vi(o+p.jName,n,B,e.highlightQuery);let y=p.getBarTotal(n,o);const F=y*c<=5;if(F)for(;o<n.length-p.jStep&&l+y===p.getBarOffset(n,o+p.jStep)&&p.getBarTotal(n,o+p.jStep)*c<=5&&v===(e.highlightQuery&&Vi(o+p.jStep+p.jName,n,B,e.highlightQuery)||!1);)o+=p.jStep,y+=p.getBarTotal(n,o);const Z=y*c-(F?0:.5),{spyName:L}=e,N=()=>{const a={level:n,j:o,i:t+m.mapOrElse(()=>0,e=>e.i),names:B,collapsed:F,selectedLevel:G,highlightModeOn:h,isHighlighted:v,spyName:L,palette:r};switch(g){case"single":return ki({...a});case"double":return Yi({...a,leftTicks:e.leftTicks,rightTicks:e.rightTicks});default:throw new Error(`Unsupported format: ${g}`)}},X=N();if(x.beginPath(),x.rect(d,u,Z,b),x.fillStyle=X.string(),x.fill(),F)continue;if(Z<20)continue;const w=Ri(B,o,g,n),W=Ui(w,y,s,Q,f);x.textBaseline="middle",x.font="400 11.5px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace";const C=Fi({mode:a,charSize:x.measureText("a").width,rectWidth:Z,fullText:W,shortText:w});x.save(),x.clip(),x.fillStyle="black";const R=Math.round(Math.max(d,0));x.fillText(C.text,R+C.marginLeft,u+b/2+1),x.restore()}}}function Ri(e,t,a,n){let i=n[t+ii(a).jName];void 0===i&&(i=-1);const o=e[i];return o||(console.warn("Could not find function name for",{j:t,format:a,level:n,names:e}),"")}function Ui(e,t,a,n,i){const o=n.format(t,a);return`${e} (${fi(o,!!i.isZh)||o})`}function Di({collapsed:e,highlightModeOn:t,isHighlighted:a}){return e||t&&!a?Zi(200,.66):null}function ki(e){const t=Di(e);if(t)return t;const a=ii("single"),n=e.selectedLevel>e.i?.33:1;let i=e.level[e.j+a.jName];void 0===i&&(console.warn("Could nto find level",{l:e.j,jName:a.jName,level:e.level}),i=-1);const o=e.names[i]||"",r=Li(e.spyName,o)||"";return Ni(e.palette,r).alpha(n)}function Yi(e){const t=Di(e);if(t)return t;const a=e.selectedLevel>e.i?.33:1,{leftRatio:n,rightRatio:i}=function(e,t,a,n){const i=ni;return a&&n?{leftRatio:i.getBarTotalLeft(e,t)/a,rightRatio:i.getBarTotalRght(e,t)/n}:(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=gi(n),r=gi(i);return function(e,t,a){const n=function(e,t){if(e===t)return 0;if(0===e)return 100;const a=(t-e)/e*100;return a>100?100:a<-100?-100:a}(t,a);return Xi(e)(n)}(e.palette,o,r).alpha(a)}function Vi(e,t,a,n){const i=t[e];if(!i)return!1;const o=a[i];return!!o&&wi(n,o)}class ji{constructor(e,t,a,n,i,o,r,l){if(this.flamebearer=e,this.canvas=t,this.focusedNode=a,this.fitMode=n,this.highlightQuery=i,this.zoom=o,this.palette=r,this.messages=l,this.tickToX=e=>{const{rangeMin:t}=this.getRange();return(e-this.flamebearer.numTicks*t)*this.pxPerTick()},this.xyToBarPosition=e=>{const{ff:t}=this,{i:a,j:n}=this.xyToBarIndex(e.x,e.y),i=this.focusedNode.mapOrElse(()=>0,e=>e.i<0?0:e.i-1),o=this.flamebearer.levels[a];if(!o)throw new Error(`Could not find level: '${a}'`);const r=Math.max(this.tickToX(t.getBarOffset(o,n)),0);return{x:r,y:Math.max((a-i)*di,0),width:Math.min(this.tickToX(t.getBarOffset(o,n)+t.getBarTotal(o,n))-r,this.getCanvasWidth())}},this.xyToBarData=e=>{const{i:t,j:a}=this.xyToBarIndex(e.x,e.y),n=this.flamebearer.levels[t];if(!n)throw new Error(`Could not find level: '${t}'`);switch(this.flamebearer.format){case"single":{const e=ai;return{format:"single",name:this.flamebearer.names[e.getBarName(n,a)],self:e.getBarSelf(n,a),offset:e.getBarOffset(n,a),total:e.getBarTotal(n,a)}}case"double":{const e=ni;return{format:"double",barTotal:e.getBarTotal(n,a),totalLeft:e.getBarTotalLeft(n,a),totalRight:e.getBarTotalRght(n,a),totalDiff:e.getBarTotalDiff(n,a),name:this.flamebearer.names[e.getBarName(n,a)]}}default:throw new Error("Unsupported type")}},this.isWithinBounds=(e,t)=>{if(e<0||e>this.getCanvasWidth())return!1;try{const{i:a,j:n}=this.xyToBarIndex(e,t);if(-1===n||-1===a)return!1}catch(e){return!1}return!0},this.zoom=o,this.focusedNode=a,this.flamebearer=e,this.canvas=t,this.highlightQuery=i,this.ff=ii(e.format),this.palette=r,this.messages=l,a.isJust&&o.isJust&&o.value.i<a.value.i)throw new Error("Zoom i level should be bigger than Focus")}render(){const{rangeMin:e,rangeMax:t}=this.getRange(),a={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:n}=this.flamebearer;switch(n){case"single":Ci({...a,format:"single"});break;case"double":Ci({...a,leftTicks:this.flamebearer.leftTicks,rightTicks:this.flamebearer.rightTicks});break;default:throw new Error(`Invalid format: '${n}'`)}}pxPerTick(){const{rangeMin:e,rangeMax:t}=this.getRange();return this.getCanvasWidth()/this.flamebearer.numTicks/(t-e)}getRange(){const{ff:e}=this,t=t=>{const a=this.flamebearer.levels[t.i];if(!a)throw new Error(`Could not find level: '${t.i}'`);return{rangeMin:e.getBarOffset(a,t.j)/this.flamebearer.numTicks,rangeMax:(e.getBarOffset(a,t.j)+e.getBarTotal(a,t.j))/this.flamebearer.numTicks}},a=t=>{const a=this.flamebearer.levels[t.i];if(!a)throw new Error(`Could not find level: '${t.i}'`);return{rangeMin:e.getBarOffset(a,t.j)/this.flamebearer.numTicks,rangeMax:(e.getBarOffset(a,t.j)+e.getBarTotal(a,t.j))/this.flamebearer.numTicks}},{zoom:n,focusedNode:i}=this;return n.match({Just:e=>i.match({Just:n=>{const i=a(n),o=t(e);return i.rangeMax-i.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."),a(n)):t(e)},Nothing:()=>t(e)}),Nothing:()=>i.match({Just:e=>a(e),Nothing:()=>({rangeMin:0,rangeMax:1})})})}getCanvasWidth(){return this.canvas.clientWidth||this.canvas.width}isFocused(){return this.focusedNode.isJust}binarySearchLevel(e,t){const{ff:a}=this;let n=0,i=t.length-a.jStep;for(;n<=i;){const o=a.jStep*(n/a.jStep+i/a.jStep>>1),r=this.tickToX(a.getBarOffset(t,o)),l=this.tickToX(a.getBarOffset(t,o)+a.getBarTotal(t,o));if(r<=e&&l>=e)return l-r>5?o:-1;r>e?i=o-a.jStep:n=o+a.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<=ui)return{i:0,j:0};const a=this.isFocused()?t-ui:t,n=this.focusedNode.mapOrElse(()=>0,e=>e.i<=0?0:e.i),i=this.zoom.match({Just:()=>this.focusedNode.match({Just:()=>n,Nothing:()=>0}),Nothing:()=>this.focusedNode.match({Just:()=>n,Nothing:()=>0})}),o=Math.floor(a/di)+i;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 n={x:e,y:t};return this.isWithinBounds(e,t)?a.Maybe.of(n):a.Maybe.nothing()}xyToBar(e,t){return this.parseXY(e,t).map(a=>{const{i:n,j:i}=this.xyToBarIndex(e,t);return{i:n,j:i,...this.xyToBarPosition(a),...this.xyToBarData(a)}})}}function _i(e){var t,a,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(a=_i(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function Si(){for(var e,t,a=0,n="",i=arguments.length;a<i;a++)(e=arguments[a])&&(t=_i(e))&&(n&&(n+=" "),n+=t);return n}var Mi="NoData-module_noData__WuuID";function Ji(){return e.jsx("div",{"data-testid":"no-data",className:Mi,children:e.jsx("span",{children:"No data available"})})}b(".NoData-module_noData__WuuID{height:100%;padding:60px 0;text-align:center;width:100%}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk5vRGF0YS5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw2QkFFRSxXQUFZLENBRVosY0FBZSxDQURmLGlCQUFrQixDQUZsQixVQUlGIiwiZmlsZSI6Ik5vRGF0YS5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5ub0RhdGEge1xuICB3aWR0aDogMTAwJTtcbiAgaGVpZ2h0OiAxMDAlO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIHBhZGRpbmc6IDYwcHggMDtcbn0iXX0= */");var Ei,zi,Ai={},Oi={};function Hi(){return Ei||(Ei=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="arrow-rotate-right",a=[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],n="f01e",i="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,a,n,i]},e.faArrowRotateRight=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(Oi)),Oi}function Ti(){return zi||(zi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Hi();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}(Ai)),Ai}var Pi,Ki=Ti(),$i={};function qi(){return Pi||(Pi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="copy",a=[],n="f0c5",i="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,a,n,i]},e.faCopy=e.definition,e.prefix="fas",e.iconName=t,e.width=448,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}($i)),$i}var eo,to=qi(),ao={};function no(){return eo||(eo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="highlighter",a=[],n="f591",i="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,a,n,i]},e.faHighlighter=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(ao)),ao}var io,oo,ro=no(),lo={},so={};function co(){return io||(io=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="down-left-and-up-right-to-center",a=["compress-alt"],n="f422",i="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,a,n,i]},e.faDownLeftAndUpRightToCenter=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(so)),so}function uo(){return oo||(oo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=co();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}(lo)),lo}var mo=uo();const bo=e=>!!e&&"o"===e[0],fo=s.unstable_batchedUpdates,ho=(e,t)=>!0===e||!(!e||!e[t]),go=(e,t)=>"function"==typeof e?e(t):e,po="_szhsinMenu",xo=(e,t)=>Object.defineProperty(t,po,{value:e}),Go=(e,t)=>(t&&Object.keys(t).forEach(a=>{const n=e[a],i=t[a];e[a]="function"==typeof i&&n?(...e)=>{i(...e),n(...e)}:i}),e),Qo=e=>{for(;e;){if(!(e=e.parentNode)||e===document.body||!e.parentNode)return;const{overflow:t,overflowX:a,overflowY:n}=getComputedStyle(e);if(/auto|scroll|overlay|hidden/.test(t+n+a))return e}};function Io(e,t){return{"aria-disabled":e||void 0,tabIndex:t?0:-1}}function vo(e,t){for(let a=0;a<e.length;a++)if(e[a]===t)return a;return-1}const yo=({block:e,element:a,modifiers:n,className:i})=>t.useMemo(()=>{const t=a?`${e}__${a}`:e;let o=t;n&&Object.keys(n).forEach(e=>{const a=n[e];a&&(o+=` ${t}--${!0===a?e:`${e}-${a}`}`)});let r="function"==typeof i?i(n):i;return"string"==typeof r&&(r=r.trim(),r&&(o+=` ${r}`)),o},[e,a,n,i]),Bo="szh-menu",Fo=t.createContext(),Zo=t.createContext({}),Lo=t.createContext({}),No=t.createContext({}),Xo=t.createContext({}),wo=t.createContext({}),Wo=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),Co=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"}),Uo=Object.freeze({FIRST:"first",LAST:"last"}),Do=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),ko="absolute",Yo="none",Vo={preventScroll:!0},jo=xo("MenuButton",t.forwardRef(function({className:a,isOpen:n,disabled:i,children:o,...r},l){const s=t.useMemo(()=>({open:n}),[n]);return e.jsx("button",{"aria-haspopup":!0,"aria-expanded":n,"aria-disabled":i||void 0,type:"button",disabled:i,...r,ref:l,className:yo({block:"szh-menu-button",modifiers:s,className:a}),children:o})})),_o=({className:a,containerRef:n,containerProps:i,children:o,isOpen:r,theming:l,transition:s,onClose:c})=>{const d=ho(s,"item");return e.jsx("div",{...Go({onKeyDown:({key:e})=>{if(e===Wo.ESC)go(c,{key:e,reason:Ro.CANCEL})},onBlur:e=>{r&&!e.currentTarget.contains(e.relatedTarget)&&go(c,{reason:Ro.BLUR})}},i),className:yo({block:"szh-menu-container",modifiers:t.useMemo(()=>({theme:l,itemTransition:d}),[l,d]),className:a}),style:{position:"absolute",...i?.style},ref:n,children:o})},So=()=>{let e,t=0;return{toggle:e=>{e?t++:t--,t=Math.max(t,0)},on:(a,n,i)=>{t?e||(e=setTimeout(()=>{e=0,n()},a)):i?.()},off:()=>{e&&(clearTimeout(e),e=0)}}},Mo=(e,t)=>Math.round(e)===t?e:t,Jo=(e,t,a,n)=>{const i=(e=>{const t=e.getBoundingClientRect();return t.width=Mo(t.width,e.offsetWidth),t.height=Mo(t.height,e.offsetHeight),t})(t),o=e.getBoundingClientRect(),r=a===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:a.getBoundingClientRect(),l=(e=>{if("string"!=typeof e)return{top:0,right:0,bottom:0,left:0};const t=e.trim().split(/\s+/,4).map(parseFloat),a=isNaN(t[0])?0:t[0],n=isNaN(t[1])?a:t[1];return{top:a,right:n,bottom:isNaN(t[2])?a:t[2],left:isNaN(t[3])?n:t[3]}})(n),s=e=>e+o.left-r.left-l.left,c=e=>e+o.left+i.width-r.right+l.right,d=e=>e+o.top-r.top-l.top,u=e=>e+o.top+i.height-r.bottom+l.bottom;return{menuRect:i,containerRect:o,getLeftOverflow:s,getRightOverflow:c,getTopOverflow:d,getBottomOverflow:u,confineHorizontally:e=>{let t=s(e);if(t<0)e-=t;else{const a=c(e);a>0&&(t=s(e-=a),t<0&&(e-=t))}return e},confineVertically:e=>{let t=d(e);if(t<0)e-=t;else{const a=u(e);a>0&&(t=d(e-=a),t<0&&(e-=t))}return e}}},Eo=({anchorRect:e,containerRect:t,menuRect:a,placeLeftorRightY:n,placeLeftX:i,placeRightX:o,getLeftOverflow:r,getRightOverflow:l,confineHorizontally:s,confineVertically:c,arrowRef:d,arrow:u,direction:m,position:b})=>{let f,h,g,p=m,x=n;"initial"!==b&&(x=c(x),"anchor"===b&&(x=Math.min(x,e.bottom-t.top),x=Math.max(x,e.top-t.top-a.height))),"left"===p?(f=i,"initial"!==b&&(h=r(f),h<0&&(g=l(o),(g<=0||-h>g)&&(f=o,p="right")))):(f=o,"initial"!==b&&(g=l(f),g>0&&(h=r(i),(h>=0||-h<g)&&(f=i,p="left")))),"auto"===b&&(f=s(f));const G=u?(({arrowRef:e,menuY:t,anchorRect:a,containerRect:n,menuRect:i})=>{let o=a.top-n.top-t+a.height/2;const r=1.25*e.current.offsetHeight;return o=Math.max(r,o),o=Math.min(o,i.height-r),o})({menuY:x,arrowRef:d,anchorRect:e,containerRect:t,menuRect:a}):void 0;return{arrowY:G,x:f,y:x,computedDirection:p}},zo=({anchorRect:e,containerRect:t,menuRect:a,placeToporBottomX:n,placeTopY:i,placeBottomY:o,getTopOverflow:r,getBottomOverflow:l,confineHorizontally:s,confineVertically:c,arrowRef:d,arrow:u,direction:m,position:b})=>{let f,h,g,p="top"===m?"top":"bottom",x=n;"initial"!==b&&(x=s(x),"anchor"===b&&(x=Math.min(x,e.right-t.left),x=Math.max(x,e.left-t.left-a.width))),"top"===p?(f=i,"initial"!==b&&(h=r(f),h<0&&(g=l(o),(g<=0||-h>g)&&(f=o,p="bottom")))):(f=o,"initial"!==b&&(g=l(f),g>0&&(h=r(i),(h>=0||-h<g)&&(f=i,p="top")))),"auto"===b&&(f=c(f));const G=u?(({arrowRef:e,menuX:t,anchorRect:a,containerRect:n,menuRect:i})=>{let o=a.left-n.left-t+a.width/2;const r=1.25*e.current.offsetWidth;return o=Math.max(r,o),o=Math.min(o,i.width-r),o})({menuX:x,arrowRef:d,anchorRect:e,containerRect:t,menuRect:a}):void 0;return{arrowX:G,x:x,y:f,computedDirection:p}},Ao="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function Oo(e,t){"function"==typeof e?e(t):e.current=t}const Ho=(e,a)=>t.useMemo(()=>e?a?t=>{Oo(e,t),Oo(a,t)}:e:a,[e,a]),To=({ariaLabel:a,menuClassName:n,menuStyle:i,arrow:o,arrowProps:r={},anchorPoint:l,anchorRef:c,containerRef:d,containerProps:u,externalRef:m,parentScrollingRef:b,align:f="start",direction:h="bottom",position:g="auto",overflow:p="visible",setDownOverflow:x,repositionFlag:G,captureFocus:Q=!0,state:I,endTransition:v,isDisabled:y,menuItemFocus:B,gap:F=0,shift:Z=0,children:L,onClose:N,focusProps:X,...w})=>{const[W,C]=t.useState({x:-9999,y:-9999}),[R,U]=t.useState({}),[D,k]=t.useState(),[Y,V]=t.useState(h),[j]=t.useState(So),[_,S]=t.useReducer(e=>e+1,1),{transition:M,boundingBoxRef:J,boundingBoxPadding:E,rootMenuRef:z,rootAnchorRef:A,scrollNodesRef:O,reposition:H,viewScroll:T,submenuCloseDelay:P}=t.useContext(wo),{submenuCtx:K,reposSubmenu:$=G}=t.useContext(Lo),q=t.useRef(),ee=t.useRef(),te=t.useRef(!1),{hoverItem:ae,dispatch:ne,updateItems:ie}=(e=>{const[a,n]=t.useState(),i=t.useRef({items:[],hoverIndex:-1,sorted:!1}).current,o=t.useCallback((t,a)=>{const{items:o}=i;if(t)if(a)o.push(t);else{const a=o.indexOf(t);a>-1&&(o.splice(a,1),t.contains(document.activeElement)&&(e.current.focus(Vo),n()))}else i.items=[];i.hoverIndex=-1,i.sorted=!1},[i,e]),r=t.useCallback((t,a,o)=>{const{items:r,hoverIndex:l}=i,s=()=>{if(i.sorted)return;const t=e.current.querySelectorAll(".szh-menu__item");r.sort((e,a)=>vo(t,e)-vo(t,a)),i.sorted=!0};let c,d=-1;switch(t){case Co.RESET:break;case Co.SET:c=a;break;case Co.UNSET:c=e=>e===a?void 0:e;break;case Co.FIRST:s(),d=0,c=r[d];break;case Co.LAST:s(),d=r.length-1,c=r[d];break;case Co.SET_INDEX:s(),d=o,c=r[d];break;case Co.INCREASE:s(),d=l,d<0&&(d=r.indexOf(a)),d++,d>=r.length&&(d=0),c=r[d];break;case Co.DECREASE:s(),d=l,d<0&&(d=r.indexOf(a)),d--,d<0&&(d=r.length-1),c=r[d];break;default:if("production"!==process.env.NODE_ENV)throw new Error(`[React-Menu] Unknown hover action type: ${t}`)}c||(d=-1),n(c),i.hoverIndex=d},[e,i]);return{hoverItem:a,dispatch:r,updateItems:o}})(q),oe=bo(I),re=ho(M,"open"),le=ho(M,"close"),se=O.current,ce=t.useCallback(e=>{const t=q.current,a=d.current;if(!t||!a)return;const n=c?c.current?.getBoundingClientRect():l?{left:l.x,right:l.x,top:l.y,bottom:l.y,width:0,height:0}:null;if(!n)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."));se.menu||(se.menu=(J?J.current:Qo(z.current))||window);const i=Jo(a,t,se.menu,E);let{arrowX:r,arrowY:s,x:u,y:m,computedDirection:b}=(({arrow:e,align:t,direction:a,gap:n,shift:i,position:o,anchorRect:r,arrowRef:l,positionHelpers:s})=>{const{menuRect:c,containerRect:d}=s,u="left"===a||"right"===a;let m=u?n:i,b=u?i:n;if(e){const e=l.current;u?m+=e.offsetWidth:b+=e.offsetHeight}const f=r.left-d.left-c.width-m,h=r.right-d.left+m,g=r.top-d.top-c.height-b,p=r.bottom-d.top+b;let x,G;"end"===t?(x=r.right-d.left-c.width,G=r.bottom-d.top-c.height):"center"===t?(x=r.left-d.left-(c.width-r.width)/2,G=r.top-d.top-(c.height-r.height)/2):(x=r.left-d.left,G=r.top-d.top),x+=m,G+=b;const Q={...s,anchorRect:r,placeLeftX:f,placeRightX:h,placeLeftorRightY:G,placeTopY:g,placeBottomY:p,placeToporBottomX:x,arrowRef:l,arrow:e,direction:a,position:o};switch(a){case"left":case"right":return Eo(Q);default:return zo(Q)}})({arrow:o,align:f,direction:h,gap:F,shift:Z,position:g,anchorRect:n,arrowRef:ee,positionHelpers:i});const{menuRect:x}=i,G=x.height;if(!e&&"visible"!==p){const{getTopOverflow:e,getBottomOverflow:t}=i;let a,n;const o=t(m);if(o>0)a=G-o,n=o;else{const t=e(m);t<0&&(a=G+t,n=0-t,a>=0&&(m-=t))}a>=0&&k({height:a,overflowAmt:n})}o&&U({x:r,y:s}),C({x:u,y:m}),V(b)},[o,f,E,h,F,Z,g,p,l,c,d,J,z,se]);Ao(()=>{oe&&(ce(),te.current&&S()),te.current=oe},[oe,ce,$]),Ao(()=>{D&&!x&&(q.current.scrollTop=0)},[D,x]),Ao(()=>ie,[ie]),t.useEffect(()=>{let{menu:e}=se;if(!oe||!e)return;if(e=e.addEventListener?e:window,!se.anchors){se.anchors=[];let t=Qo(A&&A.current);for(;t&&t!==e;)se.anchors.push(t),t=Qo(t)}let t=T;if(se.anchors.length&&"initial"===t&&(t="auto"),"initial"===t)return;const a=()=>{"auto"===t?fo(()=>ce(!0)):go(N,{reason:Ro.SCROLL})},n=se.anchors.concat("initial"!==T?e:[]);return n.forEach(e=>e.addEventListener("scroll",a)),()=>n.forEach(e=>e.removeEventListener("scroll",a))},[A,se,oe,N,T,ce]);const de=!!D&&D.overflowAmt>0;t.useEffect(()=>{if(de||!oe||!b)return;const e=()=>fo(ce),t=b.current;return t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)},[oe,de,b,ce]),t.useEffect(()=>{if(!oe||"function"!=typeof ResizeObserver||"initial"===H)return;const e=[],t=new ResizeObserver(t=>t.forEach(({target:t})=>{e.indexOf(t)<0?e.push(t):s.flushSync(()=>{ce(),S()})})),a={box:"border-box"};t.observe(q.current,a);const n=c?.current;return n&&t.observe(n,a),()=>t.disconnect()},[oe,H,c,ce]),t.useEffect(()=>{if(!oe)return ne(Co.RESET),void(le||k());const{position:e,alwaysUpdate:t}=B||{},a=()=>{e===Uo.FIRST?ne(Co.FIRST):e===Uo.LAST?ne(Co.LAST):e>=-1&&ne(Co.SET_INDEX,void 0,e)};if(t)a();else if(Q){const e=setTimeout(()=>{const e=q.current;e&&!e.contains(document.activeElement)&&(e.focus(Vo),a())},re?170:100);return()=>clearTimeout(e)}},[oe,re,le,Q,B,ne]);const ue=t.useMemo(()=>({isParentOpen:oe,submenuCtx:j,dispatch:ne,updateItems:ie}),[oe,j,ne,ie]);let me,be;D&&(x?be=D.overflowAmt:me=D.height);const fe=t.useMemo(()=>({reposSubmenu:_,submenuCtx:j,overflow:p,overflowAmt:be,parentMenuRef:q,parentDir:Y}),[_,j,p,be,Y]),he=me>=0?{maxHeight:me,overflow:p}:void 0,ge=t.useMemo(()=>({state:I,align:f,dir:Y}),[I,f,Y]),pe=t.useMemo(()=>({dir:Y}),[Y]),xe=yo({block:Bo,element:"arrow",modifiers:pe,className:r.className}),Ge=e.jsxs("ul",{role:"menu","aria-label":a,...Io(y),...Go({onPointerEnter:K?.off,onPointerMove:e=>{e.stopPropagation(),j.on(P,()=>{ne(Co.RESET),q.current.focus(Vo)})},onPointerLeave:e=>{e.target===e.currentTarget&&j.off()},onKeyDown:e=>{switch(e.key){case Wo.HOME:ne(Co.FIRST);break;case Wo.END:ne(Co.LAST);break;case Wo.UP:ne(Co.DECREASE,ae);break;case Wo.DOWN:ne(Co.INCREASE,ae);break;case Wo.SPACE:return void(e.target&&-1!==e.target.className.indexOf(Bo)&&e.preventDefault());default:return}e.preventDefault(),e.stopPropagation()},onAnimationEnd:()=>{"closing"===I&&k(),go(v)}},w),ref:Ho(m,q),className:yo({block:Bo,modifiers:ge,className:n}),style:{...i,...he,margin:0,display:"closed"===I?"none":void 0,position:ko,left:W.x,top:W.y},children:[o&&e.jsx("li",{"aria-hidden":!0,...r,className:xe,style:{display:"block",position:ko,left:R.x,top:R.y,...r.style},ref:ee}),e.jsx(Lo.Provider,{value:fe,children:e.jsx(Zo.Provider,{value:ue,children:e.jsx(Fo.Provider,{value:ae,children:go(L,ge)})})})]});return u?e.jsx(_o,{...u,isOpen:oe,children:Ge}):Ge},Po=t.forwardRef(function({"aria-label":a,className:n,containerProps:i,initialMounted:o,unmountOnClose:r,transition:l,transitionTimeout:c,boundingBoxRef:d,boundingBoxPadding:u,reposition:m="auto",submenuOpenDelay:b=300,submenuCloseDelay:f=150,viewScroll:h="initial",portal:g,theming:p,onItemClick:x,...G},Q){const I=t.useRef(null),v=t.useRef({}),{anchorRef:y,state:B,onClose:F}=G,Z=t.useMemo(()=>({initialMounted:o,unmountOnClose:r,transition:l,transitionTimeout:c,boundingBoxRef:d,boundingBoxPadding:u,rootMenuRef:I,rootAnchorRef:y,scrollNodesRef:v,reposition:m,viewScroll:h,submenuOpenDelay:b,submenuCloseDelay:f}),[o,r,l,c,y,d,u,m,h,b,f]),L=t.useMemo(()=>({handleClick(e,t){e.stopPropagation||go(x,e);let a=e.keepOpen;void 0===a&&(a=t&&e.key===Wo.SPACE),a||go(F,{value:e.value,key:e.key,reason:Ro.CLICK})},handleClose(e){go(F,{key:e,reason:Ro.CLICK})}}),[x,F]);if(!B)return null;const N=e.jsx(wo.Provider,{value:Z,children:e.jsx(No.Provider,{value:L,children:e.jsx(To,{...G,ariaLabel:a||"Menu",externalRef:Q,containerRef:I,containerProps:{className:n,containerRef:I,containerProps:i,theming:p,transition:l,onClose:F}})})});return!0===g&&"undefined"!=typeof document?s.createPortal(N,document.body):g?g.target?s.createPortal(N,g.target):g.stablePosition?null:N:N}),Ko=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],$o=e=>({_s:e,status:Ko[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),qo=e=>e?6:5,er=(e,t,a,n,i)=>{clearTimeout(n.current);const o=$o(e);t(o),a.current=o,i&&i({current:o})},tr=({enter:e=!0,exit:a=!0,preEnter:n,preExit:i,timeout:o,initialEntered:r,mountOnEnter:l,unmountOnExit:s,onStateChange:c}={})=>{const[d,u]=t.useState(()=>$o(r?2:qo(l))),m=t.useRef(d),b=t.useRef(),[f,h]=(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 qo(t)}})(m.current._s,s);e&&er(e,u,m,b,c)},[c,s]);return[d,t.useCallback(t=>{const o=e=>{switch(er(e,u,m,b,c),e){case 1:f>=0&&(b.current=setTimeout(g,f));break;case 4:h>=0&&(b.current=setTimeout(g,h));break;case 0:case 3:b.current=((e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0))(o,e)}},r=m.current.isEnter;"boolean"!=typeof t&&(t=!r),t?!r&&o(e?n?0:1:2):r&&o(a?i?3:4:qo(s))},[g,c,e,a,n,i,f,h,s]),g]},ar=({initialOpen:e,initialMounted:a,unmountOnClose:n,transition:i,transitionTimeout:o=500,onMenuChange:r}={})=>{const l=ho(i,"open"),s=ho(i,"close"),[{status:c},d,u]=tr({initialEntered:e,mountOnEnter:!a,unmountOnExit:n,timeout:o,enter:l,exit:s,onStateChange:t.useCallback(({current:{isEnter:e,isResolved:t}})=>{!r||e&&l&&t||!e&&s&&t||r({open:e})},[r,l,s])});return[{state:Do[c],endTransition:u},d]},nr=parseInt(t.version)<19,ir=t.forwardRef(function({"aria-label":a,captureFocus:n,initialOpen:i,menuButton:o,instanceRef:r,onMenuChange:l,...s},c){const[d,u,m]=(e=>{const[a,n]=ar(e),[i,o]=t.useState();return[{menuItemFocus:i,...a},n,(e,t)=>{o({position:e,alwaysUpdate:t}),n(!0)}]})({...s,onMenuChange:l}),{state:b}=d,f=bo(b),h=t.useRef(null),g=((e,a)=>{if("production"!==process.env.NODE_ENV&&"function"!=typeof a)throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[n]=t.useState({});return{onMouseDown:()=>{n.v=e&&"closed"!==e},onClick:e=>n.v?n.v=!1:a(!0,e)}})(b,(e,t)=>m(t.detail?void 0:Uo.FIRST)),p=t.useCallback(e=>{u(!1),e.key&&h.current.focus()},[u]),x=go(o,{open:f});if(!x||!x.type)throw new Error("Menu requires a menuButton prop.");const G={...Go({onKeyDown:e=>{switch(e.key){case Wo.UP:m(Uo.LAST);break;case Wo.DOWN:m(Uo.FIRST);break;default:return}e.preventDefault()},...g},x.props),ref:Ho(nr?x.ref:x.props.ref,h)};"MenuButton"===x.type[po]&&(G.isOpen=f);const Q=t.cloneElement(x,G);return t.useImperativeHandle(r,()=>({openMenu:m,closeMenu:()=>u(!1)})),e.jsxs(t.Fragment,{children:[Q,e.jsx(Po,{...s,...d,"aria-label":a||("string"==typeof x.props.children?x.props.children:"Menu"),anchorRef:h,ref:c,onClose:p})]})}),or=(e,a,n,i)=>{const[o,r,l]=(e=>{const[a,n]=t.useState(!1);return t.useEffect(()=>{!e&&n(!1)},[e]),[a,()=>!a&&n(!0),()=>n(!1)]})(n),{submenuCloseDelay:s}=t.useContext(wo),{isParentOpen:c,submenuCtx:d,dispatch:u,updateItems:m}=t.useContext(Zo),b=()=>{!n&&!i&&u(Co.SET,e.current)},f=()=>{!i&&u(Co.UNSET,e.current)};return((e,t,a)=>{Ao(()=>{if("production"!==process.env.NODE_ENV&&!a)throw new Error(`[React-Menu] This menu item or submenu should be rendered under a menu: ${t.current.outerHTML}`);if(e)return;const n=t.current;return a(n,!0),()=>{a(n)}},[e,t,a])})(i,e,m),t.useEffect(()=>{n&&c&&a.current&&a.current.focus()},[a,n,c]),{mouseOver:o,setHover:b,onBlur:e=>{n&&!e.currentTarget.contains(e.relatedTarget)&&f()},onPointerMove:e=>{i||(e.stopPropagation(),r(),d.on(s,b,b))},onPointerLeave:(e,t)=>{l(),d.off(),!t&&f()}}},rr=((a,n)=>{const i=t.memo(n),o=t.forwardRef((a,n)=>{const o=t.useRef(null);return e.jsx(i,{...a,itemRef:o,externalRef:n,isHovering:t.useContext(Fo)===o.current})});return o.displayName=`WithHovering(${a})`,o})("MenuItem",function({className:a,value:n,href:i,type:o,checked:r,disabled:l,children:s,onClick:c,isHovering:d,itemRef:u,externalRef:m,...b}){const f=!!l,{mouseOver:h,setHover:g,...p}=or(u,u,d,f),x=t.useContext(No),G=t.useContext(Xo),Q="radio"===o,I="checkbox"===o,v=!(!i||f||Q||I),y=Q?G.value===n:!!I&&!!r,B=e=>{if(f)return e.stopPropagation(),void e.preventDefault();const t={value:n,syntheticEvent:e};void 0!==e.key&&(t.key=e.key),I&&(t.checked=!y),Q&&(t.name=G.name),go(c,t),Q&&go(G.onRadioChange,t),x.handleClick(t,I||Q)},F=t.useMemo(()=>({type:o,disabled:f,hover:h||d,checked:y,anchor:v}),[o,f,h,d,y,v]),Z=Go({...p,onPointerDown:g,onKeyDown:e=>{if(d)switch(e.key){case Wo.ENTER:e.preventDefault();case Wo.SPACE:v?u.current.click():B(e)}},onClick:B},b),L={role:Q?"menuitemradio":I?"menuitemcheckbox":"menuitem","aria-checked":Q||I?y:void 0,...Io(f,d),...Z,ref:Ho(m,u),className:yo({block:Bo,element:"item",modifiers:F,className:a}),children:t.useMemo(()=>go(s,F),[s,F])};return v?e.jsx("li",{role:Yo,children:e.jsx("a",{href:i,...L})}):e.jsx("li",{...L})}),lr=t.memo(t.forwardRef(function({className:t,...a},n){return e.jsx("li",{role:Yo,...a,ref:n,className:yo({block:Bo,element:"header",className:t})})}));var sr="canvas-module_canvas__Iiaz4";b(".canvas-module_canvas__Iiaz4{cursor:pointer;position:relative;width:100%;z-index:1}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNhbnZhcy5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDZCQUVFLGNBQWUsQ0FDZixpQkFBa0IsQ0FGbEIsVUFBVyxDQUdYLFNBQ0YiLCJmaWxlIjoiY2FudmFzLm1vZHVsZS5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY2FudmFzIHtcbiAgd2lkdGg6IDEwMCU7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICB6LWluZGV4OiAxO1xufVxuIl19 */");var cr="Highlight-module_highlight__1VV-X";function dr(a){const{canvasRef:n,barHeight:i,xyToHighlightData:o,zoom:r}=a,[l,s]=t.useState({height:"0px",visibility:"hidden"});t.useEffect(()=>{s({height:"0px",visibility:"hidden"})},[r]);const c=e=>{const t=o(e.offsetX,e.offsetY);if(t.isJust){const e=t.value;s({visibility:"visible",height:`${i}px`,...e})}else d()},d=()=>{s({...l,visibility:"hidden"})};return t.useEffect(()=>{const e=n.current;return e?(e.addEventListener("mousemove",c),e.addEventListener("mouseout",d),()=>{e.removeEventListener("mousemove",c),e.removeEventListener("mouseout",d)}):()=>{}},[n.current,c,d]),e.jsx("div",{className:cr,style:l,"data-testid":"flamegraph-highlight"})}b(".Highlight-module_highlight__1VV-X{background:#ffffff40;mix-blend-mode:overlay;pointer-events:none;position:absolute;z-index:2}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkhpZ2hsaWdodC5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG1DQUdFLG9CQUFxQixDQUNyQixzQkFBdUIsQ0FGdkIsbUJBQW9CLENBRHBCLGlCQUFrQixDQUlsQixTQUNGIiwiZmlsZSI6IkhpZ2hsaWdodC5tb2R1bGUuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmhpZ2hsaWdodCB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIGJhY2tncm91bmQ6ICNmZmZmZmY0MDtcbiAgbWl4LWJsZW5kLW1vZGU6IG92ZXJsYXk7XG4gIHotaW5kZXg6IDI7XG59XG4iXX0= */");var ur="ContextMenuHighlight-module_highlightContextMenu__WI1nK";b(".ContextMenuHighlight-module_highlightContextMenu__WI1nK{background:#ffffff8c;mix-blend-mode:overlay;pointer-events:none;position:absolute;z-index:2}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbnRleHRNZW51SGlnaGxpZ2h0Lm1vZHVsZS5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEseURBSUUsb0JBQXFCLENBQ3JCLHNCQUF1QixDQUh2QixtQkFBb0IsQ0FEcEIsaUJBQWtCLENBS2xCLFNBQ0YiLCJmaWxlIjoiQ29udGV4dE1lbnVIaWdobGlnaHQubW9kdWxlLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi5oaWdobGlnaHRDb250ZXh0TWVudSB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIC8qIG1ha2UgaXQgYSBiaXQgbGlnaHRlciBzbyB0aGF0IGl0J3MgZWFzaWVyIHRvIGRpc3Rpbmd1aXNoIHdoZW4gYm90aCBoaWdobGlnaHRzIGFyZSBvbiAqL1xuICBiYWNrZ3JvdW5kOiAjZmZmZmZmOGM7XG4gIG1peC1ibGVuZC1tb2RlOiBvdmVybGF5O1xuICB6LWluZGV4OiAyO1xufVxuIl19 */");const mr={height:"0px",visibility:"hidden"};function br(a){const{node:n,barHeight:i}=a,[o,r]=t.useState(mr);return t.useEffect(()=>{n.match({Nothing:()=>r(mr),Just:e=>r({visibility:"visible",height:`${i}px`,...e})})},[n]),e.jsx("div",{className:ur,style:o,"data-testid":"flamegraph-highlight-contextmenu"})}const fr={name:"Default",goodColor:i.rgb(0,170,0),neutralColor:i.rgb(148,142,142),badColor:i.rgb(200,0,0),colors:[i.hsl(24,69,60),i.hsl(34,65,65),i.hsl(194,52,61),i.hsl(163,45,55),i.hsl(211,48,60),i.hsl(246,40,65),i.hsl(305,63,79),i.hsl(47,100,73),i.rgb(183,219,171),i.rgb(244,213,152),i.rgb(78,146,249),i.rgb(249,186,143),i.rgb(242,145,145),i.rgb(130,181,216),i.rgb(229,168,226),i.rgb(174,162,224),i.rgb(154,196,138),i.rgb(242,201,109),i.rgb(101,197,219),i.rgb(249,147,78),i.rgb(234,100,96),i.rgb(81,149,206),i.rgb(214,131,206),i.rgb(128,110,183)]},hr={...fr,name:"Color Blind",goodColor:i.rgb(26,133,255),neutralColor:i.rgb(148,142,142),badColor:i.rgb(220,50,32)};function gr(){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 pr(){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 xr={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"};b(".Tooltip-module_tooltip__NMZ65{background:var(--ps-tooltip-bg);border-radius:4px;box-shadow:1px 2px 4px 0 rgba(0,0,0,.3);color:var(--ps-tooltip-text);font-size:12px;pointer-events:none;position:fixed;visibility:hidden;width:420px;z-index:5}.Tooltip-module_tooltip__NMZ65.Tooltip-module_flamegraphDiffTooltip__Z983o{width:450px}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_tooltipName__y4Qs3{background-color:var(--ps-tooltip-header-bg);border-top-left-radius:4px;border-top-right-radius:4px;color:var(--ps-tooltip-text);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-weight:700;overflow:hidden;padding:8px 10px;text-overflow:ellipsis;white-space:nowrap}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_functionName__z9LHO{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;padding:8px 10px 0;white-space:break-spaces;word-break:break-all}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_tooltipTable__ct3pq{display:table;margin:10px;width:calc(100% - 20px)}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_tooltipTable__ct3pq td,.Tooltip-module_tooltip__NMZ65 .Tooltip-module_tooltipTable__ct3pq th{background-color:var(--ps-tooltip-bg);border:1px solid var(--ps-tooltip-header-bg);font-weight:400;padding:5px}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_clickInfo__Utux5{color:var(--ps-right-click-info);display:flex;justify-content:center;margin-bottom:10px}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_clickInfo__Utux5 svg{align-self:center;color:initial;display:block;height:22px;margin-right:5px;width:22px}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_clickInfo__Utux5 span{font-size:14px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2x0aXAubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsK0JBR0UsK0JBQWdDLENBRWhDLGlCQUFrQixDQURsQix1Q0FBOEMsQ0FFOUMsNEJBQTZCLENBQzdCLGNBQWUsQ0FHZixtQkFBb0IsQ0FScEIsY0FBZSxDQU1mLGlCQUFrQixDQVBsQixXQUFZLENBUVosU0FFRixDQUNBLDJFQUNFLFdBQ0YsQ0FDQSxrRUFFRSw0Q0FBNkMsQ0FFN0MsMEJBQTJCLENBRDNCLDJCQUE0QixDQUY1Qiw0QkFBNkIsQ0FTN0IsbUVBQXdFLENBTHhFLGVBQWlCLENBRWpCLGVBQWdCLENBRWhCLGdCQUFpQixDQURqQixzQkFBdUIsQ0FGdkIsa0JBS0YsQ0FDQSxtRUFFRSxtRUFBd0UsQ0FEeEUsa0JBQW1CLENBRW5CLHdCQUF5QixD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vbG9yOiB2YXIoLS1wcy1yaWdodC1jbGljay1pbmZvKTtcbn1cbi50b29sdGlwIC5jbGlja0luZm8gc3ZnIHtcbiAgY29sb3I6IGluaXRpYWw7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBhbGlnbi1zZWxmOiBjZW50ZXI7XG4gIHdpZHRoOiAyMnB4O1xuICBoZWlnaHQ6IDIycHg7XG4gIG1hcmdpbi1yaWdodDogNXB4O1xufVxuLnRvb2x0aXAgLmNsaWNrSW5mbyBzcGFuIHtcbiAgZm9udC1zaXplOiAxNHB4O1xufSJdfQ== */");const Gr={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)",ofTotal:"of total",clearFocus:"Clear focus",sampleCountFormat:[{value:1e15,label:"Quad"},{value:1e12,label:"Tri"},{value:1e9,label:"B"},{value:1e6,label:"M"},{value:1e3,label:"K"}]},Qr={...Gr,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} 层)",ofTotal:"占总量",clearFocus:"清除聚焦",sampleCountFormat:[{value:1e12,label:"兆"},{value:1e8,label:"亿"},{value:1e4,label:"万"},{value:1e3,label:"千"}]},Ir=t.createContext(Gr),vr=Ir,yr=({messages:a,children:n})=>{const i=t.useMemo(()=>{var e;return{...Gr,...a,tooltipUnitTitles:{...Gr.tooltipUnitTitles,...null!==(e=null==a?void 0:a.tooltipUnitTitles)&&void 0!==e?e:{}}}},[a]);return e.jsx(Ir.Provider,{value:i,children:n})},Br=()=>t.useContext(Ir);function Fr(e){if(!e)return null;const t=e.replace(/,/g,"").trim();if(!t)return null;const a=Number(t);return Number.isFinite(a)?a:null}function Zr(e,t){if(!e||!t)return;const a=e.trim().replace(/\u2212/g,"-");return a&&"0"!==a?a.startsWith("+")?t.badColor.rgb().string():a.startsWith("-")?t.goodColor.rgb().string():void 0:void 0}function Lr(e,t,a){return a<t?t:Math.max(t,Math.min(a,e))}function Nr(e,t,a,n){const i=window.innerWidth,o=window.innerHeight,r=Math.max(0,a||0),l=Math.max(0,n||0);let s=e+12,c=t+20;return s+r+8>i&&(s=e-r-12),c+l+8>o&&(c=t-l-20),s=Lr(s,8,i-r-8),c=Lr(c,8,o-l-8),{left:s,top:c}}function Xr({shouldShowFooter:a=!0,shouldShowTitle:n=!0,dataSourceRef:i,clickInfoSide:o,setTooltipContent:r,palette:l}){const s=t.useRef(null),c=t.useRef(null),[d,u]=t.useState({title:{text:"",diff:{text:"",color:""}},tooltipData:[]}),[m,b]=t.useState(),f=()=>{b({visibility:"hidden"}),u({title:{text:"",diff:{text:"",color:""}},tooltipData:[]})},h=t.useCallback(e=>{if(!s.current)throw new Error("Missing tooltipElement");c.current={x:e.clientX,y:e.clientY},r(u,f,e);const t=s.current.clientWidth||0,a=s.current.clientHeight||0,{left:n,top:i}=Nr(e.clientX,e.clientY,t,a);b({top:i,left:n,visibility:"visible"})},[r]);return t.useEffect(()=>{const e=i.current;return e?(e.addEventListener("mousemove",h),e.addEventListener("mouseout",f),()=>{e.removeEventListener("mousemove",h),e.removeEventListener("mouseout",f)}):()=>{}},[i.current,h]),t.useLayoutEffect(()=>{if(!s.current)return;if(!c.current)return;if(0===d.tooltipData.length)return;const{x:e,y:t}=c.current,a=s.current.getBoundingClientRect(),{left:n,top:i}=Nr(e,t,a.width,a.height);b(e=>e&&e.left===n&&e.top===i&&"visible"===e.visibility?e:{...e||{},left:n,top:i,visibility:"visible"})},[d.tooltipData.length,d.title.text]),e.jsx("div",{"data-testid":"tooltip",className:Si(xr.tooltip,{[xr.flamegraphDiffTooltip]:d.tooltipData.length>1}),style:{...m,textAlign:"center"},ref:s,children:d.tooltipData.length>0&&e.jsxs(e.Fragment,{children:[n&&e.jsx("div",{className:xr.tooltipName,"data-testid":"tooltip-title",children:d.title.text}),e.jsx("div",{className:xr.functionName,"data-testid":"tooltip-function-name",children:d.title.text}),d.title.diff.text.length>0?e.jsx(wr,{data:d.tooltipData,diff:d.title.diff,palette:l}):e.jsx(wr,{data:d.tooltipData,palette:l}),a&&e.jsx(Wr,{clickInfoSide:o})]})})}function wr({data:t,diff:a,palette:n}){const i=Br(),[o,r]=t,l="Location"!==i.location;if(!o)return null;let s;switch(o.tooltipType){case"flamegraph":s=()=>{const t=r&&function(e,t){const a=bi(e),n=bi(t);if(!a||!n)return"";const i=n.value-a.value;if(0===i)return"0";const o=i>0?"+":"-",r=Math.abs(i);let l;l=r>=100?r.toFixed(0):r>=10?r.toFixed(1):r.toFixed(2);const s=a.unit||n.unit;return s?`${o}${l} ${s}`:`${o}${l}`}(o.formattedValue,r.formattedValue),s=fi(t,l),c=r&&function(e,t){const a=Fr(e),n=Fr(t);if(null==a||null==n)return"";const i=n-a;return 0===i?"0":`${i>0?"+":"-"}${Math.abs(i).toLocaleString()}`}(o.samples,r.samples),d=fi(o.formattedValue,l),u=fi(null==r?void 0:r.formattedValue,l),m=null==a?void 0:a.color,b=Zr(t,n),f=Zr(c,n);return e.jsxs(e.Fragment,{children:[r&&e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("th",{children:i.baseline}),e.jsx("th",{children:i.comparison}),e.jsx("th",{children:i.diff})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsxs("td",{children:[i.tooltipUnitTitles[o.units].percent,":"]}),e.jsx("td",{children:o.percent}),r&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:r.percent}),e.jsx("td",{style:{textAlign:"center"},children:a&&e.jsx("span",{"data-testid":"tooltip-diff",style:{color:m},children:a.text})})]})]}),e.jsxs("tr",{children:[e.jsxs("td",{children:[i.tooltipUnitTitles[o.units].formattedValue,":"]}),e.jsx("td",{children:d}),r&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:u}),e.jsx("td",{style:{textAlign:"center"},children:s&&e.jsx("span",{"data-testid":"tooltip-time-diff",style:b?{color:b}:void 0,children:s})})]})]}),e.jsxs("tr",{children:[e.jsx("td",{children:i.tooltipSamples}),e.jsx("td",{children:o.samples}),r&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:r.samples}),e.jsx("td",{style:{textAlign:"center"},children:c&&e.jsx("span",{"data-testid":"tooltip-samples-diff",style:f?{color:f}:void 0,children:c})})]})]})]})]})};break;case"table":s=()=>e.jsxs(e.Fragment,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("td",{}),e.jsxs("td",{children:[i.self," (",i.tooltipUnitTitles[o.units].total,")"]}),e.jsxs("td",{children:[i.total," (",i.tooltipUnitTitles[o.units].total,")"]})]})}),e.jsx("tbody",{children:e.jsxs("tr",{children:[e.jsxs("td",{children:[i.tooltipUnitTitles[o.units].formattedValue,":"]}),e.jsx("td",{children:o.self}),e.jsx("td",{children:o.total})]})})]});break;default:s=()=>null}return e.jsx("table",{"data-testid":"tooltip-table",className:Si(xr.tooltipTable,{[xr[`${o.tooltipType}${r?"Diff":""}`]]:o.tooltipType}),style:{textAlign:"center",margin:"0 auto"},children:s()})}function Wr({clickInfoSide:t}){const a=Br();let n;switch(t){case"right":n=e.jsxs(e.Fragment,{children:[e.jsx(gr,{}),e.jsx("span",{children:a.rightClickForMoreNodeOptions})]});break;case"left":n=e.jsxs(e.Fragment,{children:[e.jsx(pr,{}),e.jsx("span",{children:a.clickToHighlightNode})]});break;default:n=e.jsx(e.Fragment,{})}return e.jsx("div",{"data-testid":"tooltip-footer",className:xr.clickInfo,children:n})}function Cr(a){const{format:n,canvasRef:i,xyToData:o,numTicks:r,sampleRate:l,units:s,leftTicks:c,rightTicks:d,palette:u}=a,m=Br(),b=t.useCallback((e,t,a)=>{const i=xi(r,l,s),b=o(a.offsetX,a.offsetY);let f;var h;if(b.isJust)switch(f=b.value,f.format){case"single":{const t={percent:(h=f.total/r,`${gi(h)}%`),samples:"trace_samples"===s?"":mi(f.total),units:s,formattedValue:i.format(f.total,l),tooltipType:"flamegraph"};e({title:{text:f.name,diff:{text:"",color:""}},tooltipData:[t]});break}case"double":{if("single"===n)throw new Error("props format is 'single' but it has been mapped to 'double'");const t=Rr({formatter:i,sampleRate:l,totalLeft:f.totalLeft,leftTicks:c,totalRight:f.totalRight,rightTicks:d,title:f.name,units:s},u,m);e({title:t.title,tooltipData:t.tooltipData});break}default:throw new Error(`Unsupported format: '${f.format}'`)}else t()},[r,l,s,c,d,u,o,n,m]);return e.jsx(Xr,{dataSourceRef:i,clickInfoSide:"right",setTooltipContent:b,palette:u})}function Rr({formatter:e,sampleRate:t,totalLeft:a,leftTicks:n,totalRight:i,rightTicks:o,title:r,units:l},s=fr,c){var d,u;const m=i/o,b=gi(a/n),f=gi(m),h={percent:`${b}%`,samples:mi(a),units:l,formattedValue:e.format(a,t),tooltipType:"flamegraph"},g={percent:`${f}%`,samples:mi(i),units:l,formattedValue:e.format(i,t),tooltipType:"flamegraph"},p=pi(b,f);let x="";p>0?x=s.badColor.rgb().string():p<0&&(x=s.goodColor.rgb().string());let G="";return a?i?p>0?G=`+${p.toFixed(2)}%`:p<0&&(G=`${p.toFixed(2)}%`):G=null!==(u=null==c?void 0:c.diffRemoved)&&void 0!==u?u:"移除":G=null!==(d=null==c?void 0:c.diffNew)&&void 0!==d?d:"新增",{title:{text:r,diff:{text:G,color:x}},tooltipData:[h,g]}}b('@charset "UTF-8";.szh-menu{background-color:#fff;border:1px solid rgba(0,0,0,.1);box-sizing:border-box;list-style:none;margin:0;padding:0;width:max-content;z-index:100}.szh-menu:focus{outline:none}.szh-menu__arrow{background-color:#fff;border-color:rgba(0,0,0,.1) transparent transparent rgba(0,0,0,.1);border-style:solid;border-width:1px;box-sizing:border-box;height:.75rem;width:.75rem;z-index:-1}.szh-menu__arrow--dir-left{right:-.375rem;transform:translateY(-50%) rotate(135deg)}.szh-menu__arrow--dir-right{left:-.375rem;transform:translateY(-50%) rotate(-45deg)}.szh-menu__arrow--dir-top{bottom:-.375rem;transform:translateX(-50%) rotate(-135deg)}.szh-menu__arrow--dir-bottom{top:-.375rem;transform:translateX(-50%) rotate(45deg)}.szh-menu__item{cursor:pointer}.szh-menu__item:focus{outline:none}.szh-menu__item--hover{background-color:#ebebeb}.szh-menu__item--focusable{background-color:inherit;cursor:default}.szh-menu__item--disabled{color:#aaa;cursor:default}.szh-menu__group{box-sizing:border-box}.szh-menu__radio-group{list-style:none;margin:0;padding:0}.szh-menu__divider{background-color:rgba(0,0,0,.12);height:1px;margin:.5rem 0}.szh-menu-button{box-sizing:border-box}.szh-menu{border:none;border-radius:.25rem;box-shadow:0 3px 7px rgba(0,0,0,.133),0 .6px 2px rgba(0,0,0,.1);color:#212529;min-width:10rem;padding:.5rem 0;user-select:none}.szh-menu__item{align-items:center;display:flex;padding:.375rem 1.5rem;position:relative}.szh-menu-container--itemTransition .szh-menu__item{transition-duration:.15s;transition-property:background-color,color;transition-timing-function:ease-in-out}.szh-menu__item--type-radio{padding-left:2.2rem}.szh-menu__item--type-radio:before{content:"○";font-size:.8rem;left:.8rem;position:absolute;top:.55rem}.szh-menu__item--type-radio.szh-menu__item--checked:before{content:"●"}.szh-menu__item--type-checkbox{padding-left:2.2rem}.szh-menu__item--type-checkbox:before{left:.8rem;position:absolute}.szh-menu__item--type-checkbox.szh-menu__item--checked:before{content:"✔"}.szh-menu__submenu>.szh-menu__item{padding-right:2.5rem}.szh-menu__submenu>.szh-menu__item:after{content:"❯";position:absolute;right:1rem}.szh-menu__header{color:#888;font-size:.8rem;padding:.2rem 1.5rem;text-transform:uppercase}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFrR0EsZ0JBTUEsQ0F2R0EsVUFRRSxxQkFBc0IsQ0FEdEIsK0JBQW9DLENBSHBDLHFCQUFzQixDQUR0QixlQUFnQixDQUZoQixRQUFTLENBQ1QsU0FBVSxDQUdWLGlCQUFrQixDQUNsQixXQUdGLENBQ0EsZ0JBQ0UsWUFDRixDQUNBLGlCQUl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BcIuKXj1wiO1xufVxuLnN6aC1tZW51X19pdGVtLS10eXBlLWNoZWNrYm94IHtcbiAgcGFkZGluZy1sZWZ0OiAyLjJyZW07XG59XG4uc3poLW1lbnVfX2l0ZW0tLXR5cGUtY2hlY2tib3g6OmJlZm9yZSB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgbGVmdDogMC44cmVtO1xufVxuLnN6aC1tZW51X19pdGVtLS10eXBlLWNoZWNrYm94LnN6aC1tZW51X19pdGVtLS1jaGVja2VkOjpiZWZvcmUge1xuICBjb250ZW50OiBcIuKclFwiO1xufVxuLnN6aC1tZW51X19zdWJtZW51ID4gLnN6aC1tZW51X19pdGVtIHtcbiAgcGFkZGluZy1yaWdodDogMi41cmVtO1xufVxuLnN6aC1tZW51X19zdWJtZW51ID4gLnN6aC1tZW51X19pdGVtOjphZnRlciB7XG4gIGNvbnRlbnQ6IFwi4p2vXCI7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcmlnaHQ6IDFyZW07XG59XG4uc3poLW1lbnVfX2hlYWRlciB7XG4gIGNvbG9yOiAjODg4O1xuICBmb250LXNpemU6IDAuOHJlbTtcbiAgcGFkZGluZzogMC4ycmVtIDEuNXJlbTtcbiAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbn1cbiJdfQ== */');var Ur="ContextMenu-module_dummy__5n2-N";function Dr(a){const[n,i]=ar({transition:!0}),[o,r]=t.useState({x:0,y:0}),{canvasRef:l}=a,[s,c]=t.useState([]),{xyToMenuItems:d,onClose:u,onOpen:m}=a;return t.useEffect(()=>{i(!1);const e=l.current;if(!e)return()=>{};const t=e=>{e.preventDefault();const t=d(e.offsetX,e.offsetY);c(t);const a=e.clientX,n=e.clientY+20;r({x:a,y:n}),i(!0),m(e.offsetX,e.offsetY)};return e.addEventListener("contextmenu",t),()=>{e.removeEventListener("contextmenu",t)}},[d]),e.jsx(Po,{...n,className:Ur,anchorPoint:o,onClose:()=>{i(!1),u()},children:s})}b(".ContextMenu-module_dummy__5n2-N{display:block}.ContextMenu-module_dummy__5n2-N svg{margin-right:10px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbnRleHRNZW51Lm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlDQUNFLGFBQ0YsQ0FDQSxxQ0FDRSxpQkFDRiIsImZpbGUiOiJDb250ZXh0TWVudS5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5kdW1teSB7XG4gIGRpc3BsYXk6IGJsb2NrO1xufVxuLmR1bW15IHN2ZyB7XG4gIG1hcmdpbi1yaWdodDogMTBweDtcbn0iXX0= */");var kr="LogoLink-module_logoLink__oWRri";function Yr(){return e.jsxs("a",{className:kr,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"})]})}b(".LogoLink-module_logoLink__oWRri{bottom:0;color:var(--ps-neutral-2);font-weight:500;opacity:.5;position:absolute;right:0;text-decoration:none;z-index:0}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkxvZ29MaW5rLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlDQU9FLFFBQVMsQ0FIVCx5QkFBMEIsQ0FGMUIsZUFBZ0IsQ0FDaEIsVUFBWSxDQUVaLGlCQUFrQixDQUNsQixPQUFRLENBTFIsb0JBQXFCLENBT3JCLFNBQ0YiLCJmaWxlIjoiTG9nb0xpbmsubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubG9nb0xpbmsge1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gIGZvbnQtd2VpZ2h0OiA1MDA7XG4gIG9wYWNpdHk6IDAuNTtcbiAgY29sb3I6IHZhcigtLXBzLW5ldXRyYWwtMik7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcmlnaHQ6IDA7XG4gIGJvdHRvbTogMDtcbiAgei1pbmRleDogMDtcbn0iXX0= */");const Vr=()=>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"})})}),jr=()=>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"})]}),_r=()=>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"})}),Sr=({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"})]})]}),Mr=()=>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"})})]}),Jr=()=>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 Er="Header-module_flamegraphHeader__nIrXP",zr="Header-module_row__P7-2L",Ar="Header-module_flamegraphTitle__sjsvB";function Or(t){const{format:a,units:n,toolbarVisible:i}=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:""},r=i&&"single"===a?e.jsx("div",{className:`${zr} ${Ar}`,role:"heading","aria-level":2,children:o[n]&&e.jsxs(e.Fragment,{children:["Frame width represents ",o[n]]})}):null;return r?e.jsx("div",{className:Er,children:e.jsx("div",{children:r})}):null}b(".Header-module_flamegraphHeader__nIrXP{align-items:flex-start;display:flex;justify-content:space-between;padding-bottom:5px}.Header-module_flamegraphHeader__nIrXP>div:first-child{width:100%}.Header-module_row__P7-2L{display:flex;justify-content:center}.Header-module_flamegraphTitle__sjsvB{display:block;text-align:center;width:100%}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkhlYWRlci5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHVDQUtFLHNCQUF1QixDQUh2QixZQUFhLENBQ2IsNkJBQThCLENBRjlCLGtCQUtGLENBRUEsdURBQ0UsVUFDRixDQU9BLDBCQUNFLFlBQWEsQ0FDYixzQkFDRixDQUVBLHNDQUVFLGFBQWMsQ0FDZCxpQkFBa0IsQ0FGbEIsVUFHRiIsImZpbGUiOiJIZWFkZXIubW9kdWxlLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi5mbGFtZWdyYXBoSGVhZGVyIHtcbiAgcGFkZGluZy1ib3R0b206IDVweDtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuXG4gIGFsaWduLWl0ZW1zOiBmbGV4LXN0YXJ0O1xufVxuXG4uZmxhbWVncmFwaEhlYWRlciA+IGRpdjpmaXJzdC1jaGlsZCB7XG4gIHdpZHRoOiAxMDAlO1xufVxuXG4uZmxhbWVncmFwaEhlYWRlciBidXR0b24ge1xuICAvKiBtYXJnaW46IGF1dG87XG4gIGRpc3BsYXk6IGJsb2NrOyAqL1xufVxuXG4ucm93IHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG59XG5cbi5mbGFtZWdyYXBoVGl0bGUge1xuICB3aWR0aDogMTAwJTtcbiAgZGlzcGxheTogYmxvY2s7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbn1cbiJdfQ== */");var Hr="FlamegraphBreadcrumb-module_bar__v8uhn",Tr="FlamegraphBreadcrumb-module_chip__pdv1k",Pr="FlamegraphBreadcrumb-module_focusTooltip__nX30y",Kr="FlamegraphBreadcrumb-module_separator__Zj-rC",$r="FlamegraphBreadcrumb-module_chipSeparator__S-Gld",qr="FlamegraphBreadcrumb-module_unitLabel__bjHEA",el="FlamegraphBreadcrumb-module_focusIcon__aJBb6",tl="FlamegraphBreadcrumb-module_ofTotal__kk4dt",al="FlamegraphBreadcrumb-module_clearBtn__spimK";function nl(t){const{totalValueText:a,totalSamplesText:n,samplesLabel:i,unitLabel:o,hasFocus:r,focusPercent:l,focusLabel:s,ofTotalPlacement:c="after",ofTotalLabel:d,clearFocusLabel:u,onClearFocus:m}=t,b=s&&s.trim().length>0?s:void 0;return e.jsxs("div",{className:Hr,"aria-live":"polite",children:[e.jsxs("span",{className:Tr,children:[e.jsx("span",{children:a}),e.jsx("span",{className:Kr,children:"|"}),e.jsxs("span",{children:[n," ",i]}),e.jsxs("span",{className:qr,children:["(",o,")"]})]}),r&&void 0!==l&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:$r,children:">"}),e.jsxs("span",{className:`${Tr} ${Pr}`,"data-tooltip":b,children:[e.jsx("span",{className:el,"aria-hidden":"true",children:e.jsxs("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6Z"}),e.jsx("circle",{cx:"12",cy:"12",r:"3.2"})]})}),"before"===c?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:tl,children:d}),e.jsxs("span",{children:[l.toFixed(2),"%"]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("span",{children:[l.toFixed(2),"%"]}),e.jsx("span",{className:tl,children:d})]}),e.jsx("button",{type:"button",className:al,"aria-label":u,onClick:e=>{e.preventDefault(),e.stopPropagation(),m()},children:"×"})]})]})]})}b('.FlamegraphBreadcrumb-module_bar__v8uhn{align-items:center;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:6px 0;width:100%}.FlamegraphBreadcrumb-module_chip__pdv1k{align-items:center;background-color:var(--ps-ui-element-bg-primary);border:1px solid var(--ps-ui-border);border-radius:999px;color:var(--ps-ui-foreground-text);display:inline-flex;font-size:12px;gap:6px;line-height:1.2;padding:4px 10px}.FlamegraphBreadcrumb-module_focusTooltip__nX30y{position:relative}.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:hover:after,.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:hover:before{opacity:1;transform:translate(-50%,-6px)}.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:after{background:var(--ps-ui-foreground);border:1px solid var(--ps-ui-border);border-radius:6px;color:var(--ps-ui-foreground-text);content:attr(data-tooltip);font-size:12px;padding:6px 8px;white-space:nowrap;z-index:3}.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:after,.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:before{bottom:100%;left:50%;opacity:0;pointer-events:none;position:absolute;transform:translate(-50%,-2px);transition:opacity .12s ease,transform .12s ease}.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:before{border-color:var(--ps-ui-border) transparent transparent transparent;border-style:solid;border-width:6px 6px 0;content:"";z-index:2}.FlamegraphBreadcrumb-module_separator__Zj-rC{opacity:.6}.FlamegraphBreadcrumb-module_chipSeparator__S-Gld{color:var(--ps-ui-foreground-text);opacity:.6}.FlamegraphBreadcrumb-module_unitLabel__bjHEA{opacity:.8}.FlamegraphBreadcrumb-module_focusIcon__aJBb6{align-items:center;color:currentColor;display:inline-flex;font-size:12px}.FlamegraphBreadcrumb-module_ofTotal__kk4dt{opacity:.8}.FlamegraphBreadcrumb-module_clearBtn__spimK{background:transparent;border:none;color:var(--ps-toolbar-icon-color);cursor:pointer;font-size:14px;line-height:1;margin-left:4px;padding:0}.FlamegraphBreadcrumb-module_clearBtn__spimK:focus-visible{border-radius:4px;outline:1px solid var(--ps-ui-border)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZsYW1lZ3JhcGhCcmVhZGNydW1iLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHdDQUVFLGtCQUFtQixDQURuQixZQUFhLENBSWIsY0FBZSxDQUNmLE9BQVEsQ0FIUixzQkFBdUIsQ0FJdkIsWUFBYSxDQUhiLFVBSUYsQ0FFQSx5Q0FFRSxrQkFBbUIsQ0FNbkIsZ0RBQWlELENBQ2pELG9DQUFxQyxDQUpyQyxtQkFBb0IsQ0FLcEIsa0NBQW1DLENBVG5DLG1CQUFvQixDQUtwQixjQUFl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xpZ24taXRlbXM6IGNlbnRlcjtcbiAgY29sb3I6IGN1cnJlbnRDb2xvcjtcbn1cblxuLm9mVG90YWwge1xuICBvcGFjaXR5OiAwLjg7XG59XG5cbi5jbGVhckJ0biB7XG4gIG1hcmdpbi1sZWZ0OiA0cHg7XG4gIHBhZGRpbmc6IDA7XG4gIGJvcmRlcjogbm9uZTtcbiAgYmFja2dyb3VuZDogdHJhbnNwYXJlbnQ7XG4gIGNvbG9yOiB2YXIoLS1wcy10b29sYmFyLWljb24tY29sb3IpO1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIGZvbnQtc2l6ZTogMTRweDtcbiAgbGluZS1oZWlnaHQ6IDE7XG59XG5cbi5jbGVhckJ0bjpmb2N1cy12aXNpYmxlIHtcbiAgb3V0bGluZTogMXB4IHNvbGlkIHZhcigtLXBzLXVpLWJvcmRlcik7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbn0iXX0= */');var il="styles-module_flamegraphPane__ejguD",ol="styles-module_fitModeItem__0UBwN",rl="styles-module_sandwichItem__WYvnd";function ll(n){const i=t.useRef(null),o=t.useRef(),s=Br(),c=t.useMemo(()=>({collapsedLevelsSingular:s.collapsedLevelsSingular,collapsedLevelsPlural:s.collapsedLevelsPlural,isZh:"Location"!==s.location}),[s.collapsedLevelsSingular,s.collapsedLevelsPlural,s.location]),[d,u]=t.useState(a.Maybe.nothing()),{flamebearer:m,focusedNode:b,fitMode:f,updateFitMode:h,highlightQuery:g,zoom:p,toolbarVisible:x,headerVisible:G=!0,disableClick:Q=!1,showSingleLevel:I=!1,showCredit:v,setActiveItem:y,selectedItem:B,updateView:F,enableSandwichView:Z=!0,breadcrumb:L}=n,{onZoom:N,onReset:X,isDirty:w,onFocusOnNode:W}=n,{"data-testid":C}=n,{palette:R,setPalette:U}=n,D=t.useCallback(l(()=>{j()},50),[]);r(i,()=>{o&&D()});const k=(e,t)=>M().xyToBar(e,t).map(e=>({left:S().offsetLeft+e.x,top:S().offsetTop+e.y,width:e.width})),Y=t.useCallback((t,a)=>{const n=w(),i=M().xyToBar(t,a),o=i.isJust?i.value.name:"";return[e.jsxs(rr,{disabled:!n,onClick:X,children:[e.jsx(Hn,{icon:Ki.faRedo}),s.resetView]},"reset"),(()=>{const t=i.mapOrElse(()=>!1,()=>!0),a=i.mapOrElse(()=>()=>{},e=>W.bind(null,e.i,e.j));return e.jsxs(rr,{disabled:!t,onClick:a,children:[e.jsx(Hn,{icon:mo.faCompressAlt}),s.collapseNodesAbove]},"focus")})(),e.jsxs(rr,{onClick:()=>{navigator.clipboard&&navigator.clipboard.writeText(o)},children:[e.jsx(Hn,{icon:to.faCopy}),s.copyFunctionName]},"copy"),(()=>{const t=B.isJust&&B.value===o?s.clearHighlight:s.highlightSimilarNodes;return e.jsxs(rr,{onClick:()=>{y({name:o})},children:[e.jsx(Hn,{icon:ro.faHighlighter}),t]},"highlight-similar-nodes")})(),(()=>{if(!F||!Z)return null;return e.jsxs(rr,{className:rl,onClick:()=>{F("sandwich"),y({name:o})},children:[e.jsx(Sr,{fill:"black"}),s.openInSandwichView]},"open-in-sandwich-view")})(),(()=>{const t=f===Bi;return e.jsxs(rr,{className:ol,onClick:()=>{h(t?yi:Bi)},children:[t?e.jsx(Jr,{}):e.jsx(Mr,{}),t?s.showTextTailFirst:s.showTextHeadFirst]},"fit-mode")})()].filter(Boolean)},[o,B,f,w,X,W,y,F,s,Z]),V=()=>{if(i.current){const e=new ji(m,i.current,b,f,g,p,R,c);o.current=e}};t.useEffect(()=>{V(),j()},[R,c]),t.useEffect(()=>{V(),j()},[i.current,m,b,f,g,p]);const j=()=>{var e,t,a;null===(e=null==i?void 0:i.current)||void 0===e||e.setAttribute("data-state","rendering"),null===(t=null==o?void 0:o.current)||void 0===t||t.render(),null===(a=null==i?void 0:i.current)||void 0===a||a.setAttribute("data-state","rendered")},_=!m||m&&m.names.length<=1,S=()=>{if(!i.current)throw new Error("Missing canvas");return i.current},M=()=>{if(!o.current)throw new Error("Missing canvas");return o.current};return e.jsxs("div",{"data-testid":"flamegraph-view",className:Si(il,{"vertical-orientation":"double"===m.format}),children:[L&&e.jsx(nl,{totalValueText:L.totalValueText,totalSamplesText:L.totalSamplesText,samplesLabel:L.samplesLabel,unitLabel:L.unitLabel,hasFocus:L.hasFocus,focusPercent:L.focusPercent,focusLabel:L.focusLabel,ofTotalPlacement:L.ofTotalPlacement,ofTotalLabel:L.ofTotalLabel,clearFocusLabel:L.clearFocusLabel,onClearFocus:L.onClearFocus}),G&&e.jsx(Or,{format:m.format,units:m.units,toolbarVisible:x}),e.jsx("div",{"data-testid":C,style:{opacity:_&&!I?0:1},children:e.jsx("canvas",{height:"0","data-testid":"flamegraph-canvas","data-highlightquery":g,className:Si("flamegraph-canvas",sr),ref:i,onClick:Q?void 0:e=>{const t=M().xyToBar(e.nativeEvent.offsetX,e.nativeEvent.offsetY);t.match({Nothing:()=>{},Just:e=>{p.match({Nothing:()=>{N(t)},Just:n=>{e.i===n.i&&e.j===n.j?N(a.Maybe.nothing()):N(t)}})}})}})}),v?e.jsx(Yr,{}):"",o&&i&&e.jsx(dr,{barHeight:di,canvasRef:i,zoom:p,xyToHighlightData:k}),o&&e.jsx(br,{barHeight:di,node:d}),o&&e.jsx(Cr,{format:m.format,canvasRef:i,xyToData:(e,t)=>M().xyToBar(e,t),numTicks:m.numTicks,sampleRate:m.sampleRate,leftTicks:"double"===m.format?m.leftTicks:0,rightTicks:"double"===m.format?m.rightTicks:0,units:m.units,palette:R}),!Q&&o&&i&&e.jsx(Dr,{canvasRef:i,xyToMenuItems:Y,onClose:()=>{u(a.Maybe.nothing())},onOpen:(e,t)=>{u(k(e,t))}})]})}b(".styles-module_flamegraphPane__ejguD{flex:1;position:relative}.styles-module_flamegraphPane__ejguD .styles-module_fitModeItem__0UBwN svg,.styles-module_flamegraphPane__ejguD .styles-module_sandwichItem__WYvnd svg{margin-right:10px;width:1em}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxxQ0FDRSxNQUFPLENBQ1AsaUJBQ0YsQ0FDQSx1SkFHRSxpQkFBa0IsQ0FEbEIsU0FFRiIsImZpbGUiOiJzdHlsZXMubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZmxhbWVncmFwaFBhbmUge1xuICBmbGV4OiAxO1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG4uZmxhbWVncmFwaFBhbmUgLmZpdE1vZGVJdGVtIHN2Zyxcbi5mbGFtZWdyYXBoUGFuZSAuc2FuZHdpY2hJdGVtIHN2ZyB7XG4gIHdpZHRoOiAxZW07XG4gIG1hcmdpbi1yaWdodDogMTBweDtcbn0iXX0= */");var sl,cl={exports:{}};
|
|
12
|
+
function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}function v(e,t,a){return t&&function(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,N(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function I(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=w(e))||t){a&&(e=a);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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,r=!0,l=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){l=!0,o=e},f:function(){try{r||null==a.return||a.return()}finally{if(l)throw o}}}}function y(e,t,a){return(t=N(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function B(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,n)}return a}function F(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?B(Object(a),!0).forEach(function(t){y(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):B(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,i,o,r,l=[],s=!0,c=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;s=!1}else for(;!(s=(n=o.call(a)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=a.return&&(r=a.return(),Object(r)!==r))return}finally{if(c)throw i}}return l}}(e,t)||w(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 L(e){return function(e){if(Array.isArray(e))return Q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(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 N(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function X(e){return X="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},X(e)}function w(e,t){if(e){if("string"==typeof e)return Q(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Q(e,t):void 0}}var W=function(){},C={},R={},U=null,D={mark:W,measure:W};try{"undefined"!=typeof window&&(C=window),"undefined"!=typeof document&&(R=document),"undefined"!=typeof MutationObserver&&(U=MutationObserver),"undefined"!=typeof performance&&(D=performance)}catch(re){}var k=(C.navigator||{}).userAgent,Y=void 0===k?"":k,V=C,j=R,_=U,S=D;V.document;var M,J=!!j.documentElement&&!!j.head&&"function"==typeof j.addEventListener&&"function"==typeof j.createElement,E=~Y.indexOf("MSIE")||~Y.indexOf("Trident/"),z={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"}},A=["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"],O="classic",H="duotone",T="sharp",P="sharp-duotone",K="chisel",$="etch",q="jelly",ee="jelly-duo",te="jelly-fill",ae="notdog",ne="notdog-duo",ie="slab",oe="slab-press",re="thumbprint",le="utility",se="utility-duo",ce="utility-fill",de="whiteboard",ue=[O,H,T,P,K,$,q,ee,te,ae,ne,ie,oe,re,le,se,ce,de];y(y(y(y(y(y(y(y(y(y(M={},O,"Classic"),H,"Duotone"),T,"Sharp"),P,"Sharp Duotone"),K,"Chisel"),$,"Etch"),q,"Jelly"),ee,"Jelly Duo"),te,"Jelly Fill"),ae,"Notdog"),y(y(y(y(y(y(y(y(M,ne,"Notdog Duo"),ie,"Slab"),oe,"Slab Press"),re,"Thumbprint"),le,"Utility"),se,"Utility Duo"),ce,"Utility Fill"),de,"Whiteboard");var me=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}]]),be=["fak","fa-kit","fakd","fa-kit-duotone"],fe={fak:"kit","fa-kit":"kit"},he={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};y(y({},"kit","Kit"),"kit-duotone","Kit Duotone");var ge,pe={kit:"fak"},xe={"kit-duotone":"fakd"},Ge="duotone-group",Qe="swap-opacity",ve="primary",Ie="secondary";y(y(y(y(y(y(y(y(y(y(ge={},"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"),y(y(y(y(y(y(y(y(ge,"notdog-duo","Notdog Duo"),"slab","Slab"),"slab-press","Slab Press"),"thumbprint","Thumbprint"),"utility","Utility"),"utility-duo","Utility Duo"),"utility-fill","Utility Fill"),"whiteboard","Whiteboard");y(y({},"kit","Kit"),"kit-duotone","Kit Duotone");var ye={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"}},Be=["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"]),Fe=[1,2,3,4,5,6,7,8,9,10],Ze=Fe.concat([11,12,13,14,15,16,17,18,19,20]),Le=[].concat(L(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",Ge,Qe,ve,Ie]).concat(Fe.map(function(e){return"".concat(e,"x")})).concat(Ze.map(function(e){return"w-".concat(e)})),Ne="___FONT_AWESOME___",Xe="svg-inline--fa",we="data-fa-i2svg",We="data-fa-pseudo-element",Ce="data-prefix",Re="data-icon",Ue="fontawesome-i2svg",De=["HTML","HEAD","STYLE","SCRIPT"],ke=["::before","::after",":before",":after"],Ye=function(){try{return"production"===process.env.NODE_ENV}catch(e){return!1}}();function Ve(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[O]}})}var je=F({},z);je[O]=F(F(F(F({},{"fa-duotone":"duotone"}),z[O]),fe),he);var _e=Ve(je),Se=F({},{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"}});Se[O]=F(F(F(F({},{duotone:"fad"}),Se[O]),pe),xe);var Me=Ve(Se),Je=F({},ye);Je[O]=F(F({},Je[O]),{fak:"fa-kit"});var Ee=Ve(Je),ze=F({},{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"}});ze[O]=F(F({},ze[O]),{"fa-kit":"fak"}),Ve(ze);var Ae=/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)?[\-\ ]/,Oe="fa-layers-text",He=/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;Ve(F({},{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 Te=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Pe={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Ke=[].concat(L(["kit"]),L(Le)),$e=V.FontAwesomeConfig||{};if(j&&"function"==typeof j.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=Z(e,2),a=t[0],n=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=j.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(a));null!=i&&($e[n]=i)})}var qe={styleDefault:"solid",familyDefault:O,cssPrefix:"fa",replacementClass:Xe,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};$e.familyPrefix&&($e.cssPrefix=$e.familyPrefix);var et=F(F({},qe),$e);et.autoReplaceSvg||(et.observeMutations=!1);var tt={};Object.keys(qe).forEach(function(e){Object.defineProperty(tt,e,{enumerable:!0,set:function(t){et[e]=t,at.forEach(function(e){return e(tt)})},get:function(){return et[e]}})}),Object.defineProperty(tt,"familyPrefix",{enumerable:!0,set:function(e){et.cssPrefix=e,at.forEach(function(e){return e(tt)})},get:function(){return et.cssPrefix}}),V.FontAwesomeConfig=tt;var at=[];var nt=16,it={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function ot(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function rt(e){for(var t=[],a=(e||[]).length>>>0;a--;)t[a]=e[a];return t}function lt(e){return e.classList?rt(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 ct(e){return Object.keys(e||{}).reduce(function(t,a){return t+"".concat(a,": ").concat(e[a].trim(),";")},"")}function dt(e){return e.size!==it.size||e.x!==it.x||e.y!==it.y||e.rotate!==it.rotate||e.flipX||e.flipY}function ut(){var e="fa",t=Xe,a=tt.cssPrefix,n=tt.replacementClass,i=':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(a!==e||n!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),r=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(a,"-")).replace(r,"--".concat(a,"-")).replace(l,".".concat(n))}return i}var mt=!1;function bt(){tt.autoAddCss&&!mt&&(!function(e){if(e&&J){var t=j.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var a=j.head.childNodes,n=null,i=a.length-1;i>-1;i--){var o=a[i],r=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(r)>-1&&(n=o)}j.head.insertBefore(t,n)}}(ut()),mt=!0)}var ft={mixout:function(){return{dom:{css:ut,insertCss:bt}}},hooks:function(){return{beforeDOMElementCreation:function(){bt()},beforeI2svg:function(){bt()}}}},ht=V||{};ht[Ne]||(ht[Ne]={}),ht[Ne].styles||(ht[Ne].styles={}),ht[Ne].hooks||(ht[Ne].hooks={}),ht[Ne].shims||(ht[Ne].shims=[]);var gt=ht[Ne],pt=[],xt=function(){j.removeEventListener("DOMContentLoaded",xt),Gt=1,pt.map(function(e){return e()})},Gt=!1;function Qt(e){var t=e.tag,a=e.attributes,n=void 0===a?{}:a,i=e.children,o=void 0===i?[]:i;return"string"==typeof e?st(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(function(t,a){return t+"".concat(a,'="').concat(st(e[a]),'" ')},"").trim()}(n),">").concat(o.map(Qt).join(""),"</").concat(t,">")}function vt(e,t,a){if(e&&e[t]&&e[t][a])return{prefix:t,iconName:a,icon:e[t][a]}}J&&((Gt=(j.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(j.readyState))||j.addEventListener("DOMContentLoaded",xt));var It=function(e,t,a,n){var i,o,r,l=Object.keys(e),s=l.length,c=t;for(void 0===a?(i=1,r=e[l[0]]):(i=0,r=a);i<s;i++)r=c(r,e[o=l[i]],o,e);return r};function yt(e){return 1!==L(e).length?null:e.codePointAt(0).toString(16)}function Bt(e){return Object.keys(e).reduce(function(t,a){var n=e[a];return!!n.icon?t[n.iconName]=n.icon:t[a]=n,t},{})}function Ft(e,t){var a=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,n=void 0!==a&&a,i=Bt(t);"function"!=typeof gt.hooks.addPack||n?gt.styles[e]=F(F({},gt.styles[e]||{}),i):gt.hooks.addPack(e,Bt(t)),"fas"===e&&Ft("fa",t)}var Zt=gt.styles,Lt=gt.shims,Nt=Object.keys(Ee),Xt=Nt.reduce(function(e,t){return e[t]=Object.keys(Ee[t]),e},{}),wt=null,Wt={},Ct={},Rt={},Ut={},Dt={};function kt(e,t){var a,n=t.split("-"),i=n[0],o=n.slice(1).join("-");return i!==e||""===o||(a=o,~Ke.indexOf(a))?null:o}var Yt,Vt=function(){var e=function(e){return It(Zt,function(t,a,n){return t[n]=It(a,e,{}),t},{})};Wt=e(function(e,t,a){(t[3]&&(e[t[3]]=a),t[2])&&t[2].filter(function(e){return"number"==typeof e}).forEach(function(t){e[t.toString(16)]=a});return e}),Ct=e(function(e,t,a){(e[a]=a,t[2])&&t[2].filter(function(e){return"string"==typeof e}).forEach(function(t){e[t]=a});return e}),Dt=e(function(e,t,a){var n=t[2];return e[a]=a,n.forEach(function(t){e[t]=a}),e});var t="far"in Zt||tt.autoFetchSvg,a=It(Lt,function(e,a){var n=a[0],i=a[1],o=a[2];return"far"!==i||t||(i="fas"),"string"==typeof n&&(e.names[n]={prefix:i,iconName:o}),"number"==typeof n&&(e.unicodes[n.toString(16)]={prefix:i,iconName:o}),e},{names:{},unicodes:{}});Rt=a.names,Ut=a.unicodes,wt=Jt(tt.styleDefault,{family:tt.familyDefault})};function jt(e,t){return(Wt[e]||{})[t]}function _t(e,t){return(Dt[e]||{})[t]}function St(e){return Rt[e]||{prefix:null,iconName:null}}function Mt(){return wt}Yt=function(e){wt=Jt(e.styleDefault,{family:tt.familyDefault})},at.push(Yt),Vt();function Jt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,a=void 0===t?O:t,n=_e[a][e];if(a===H&&!e)return"fad";var i=Me[a][e]||Me[a][n],o=e in gt.styles?e:null;return i||o||null}function Et(e){return e.sort().filter(function(e,t,a){return a.indexOf(e)===t})}var zt=Be.concat(be);function At(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,a=void 0!==t&&t,n=null,i=Et(e.filter(function(e){return zt.includes(e)})),o=Et(e.filter(function(e){return!zt.includes(e)})),r=Z(i.filter(function(e){return n=e,!A.includes(e)}),1)[0],l=void 0===r?null:r,s=function(e){var t=O,a=Nt.reduce(function(e,t){return e[t]="".concat(tt.cssPrefix,"-").concat(t),e},{});return ue.forEach(function(n){(e.includes(a[n])||e.some(function(e){return Xt[n].includes(e)}))&&(t=n)}),t}(i),c=F(F({},function(e){var t=[],a=null;return e.forEach(function(e){var n=kt(tt.cssPrefix,e);n?a=n:e&&t.push(e)}),{iconName:a,rest:t}}(o)),{},{prefix:Jt(l,{family:s})});return F(F(F({},c),function(e){var t=e.values,a=e.family,n=e.canonical,i=e.givenPrefix,o=void 0===i?"":i,r=e.styles,l=void 0===r?{}:r,s=e.config,c=void 0===s?{}:s,d=a===H,u=t.includes("fa-duotone")||t.includes("fad"),m="duotone"===c.familyDefault,b="fad"===n.prefix||"fa-duotone"===n.prefix;!d&&(u||m||b)&&(n.prefix="fad");(t.includes("fa-brands")||t.includes("fab"))&&(n.prefix="fab");if(!n.prefix&&Ot.includes(a)){if(Object.keys(l).find(function(e){return Ht.includes(e)})||c.autoFetchSvg){var f=me.get(a).defaultShortPrefixId;n.prefix=f,n.iconName=_t(n.prefix,n.iconName)||n.iconName}}"fa"!==n.prefix&&"fa"!==o||(n.prefix=Mt()||"fas");return n}({values:e,family:s,styles:Zt,config:tt,canonical:c,givenPrefix:n})),function(e,t,a){var n=a.prefix,i=a.iconName;if(e||!n||!i)return{prefix:n,iconName:i};var o="fa"===t?St(i):{},r=_t(n,i);i=o.iconName||r||i,"far"!==(n=o.prefix||n)||Zt.far||!Zt.fas||tt.autoFetchSvg||(n="fas");return{prefix:n,iconName:i}}(a,n,c))}var Ot=ue.filter(function(e){return e!==O||e!==H}),Ht=Object.keys(ye).filter(function(e){return e!==O}).map(function(e){return Object.keys(ye[e])}).flat();var Tt=function(){return v(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,a=new Array(t),n=0;n<t;n++)a[n]=arguments[n];var i=a.reduce(this._pullDefinitions,{});Object.keys(i).forEach(function(t){e.definitions[t]=F(F({},e.definitions[t]||{}),i[t]),Ft(t,i[t]);var a=Ee[O][t];a&&Ft(a,i[t]),Vt()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var a=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(a).map(function(t){var n=a[t],i=n.prefix,o=n.iconName,r=n.icon,l=r[2];e[i]||(e[i]={}),l.length>0&&l.forEach(function(t){"string"==typeof t&&(e[i][t]=r)}),e[i][o]=r}),e}}])}(),Pt=[],Kt={},$t={},qt=Object.keys($t);function ea(e,t){for(var a=arguments.length,n=new Array(a>2?a-2:0),i=2;i<a;i++)n[i-2]=arguments[i];return(Kt[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(n))}),t}function ta(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];(Kt[e]||[]).forEach(function(e){e.apply(null,a)})}function aa(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return $t[e]?$t[e].apply(null,t):void 0}function na(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,a=e.prefix||Mt();if(t)return t=_t(a,t)||t,vt(ia.definitions,a,t)||vt(gt.styles,a,t)}var ia=new Tt,oa={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return J?(ta("beforeI2svg",e),aa("pseudoElements2svg",e),aa("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]:{},a=t.autoReplaceSvgRoot;!1===tt.autoReplaceSvg&&(tt.autoReplaceSvg=!0),tt.observeMutations=!0,e=function(){la({autoReplaceSvgRoot:a}),ta("watch",t)},J&&(Gt?setTimeout(e,0):pt.push(e))}},ra={noAuto:function(){tt.autoReplaceSvg=!1,tt.observeMutations=!1,ta("noAuto")},config:tt,dom:oa,parse:{icon:function(e){if(null===e)return null;if("object"===X(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:_t(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],a=Jt(e[0]);return{prefix:a,iconName:_t(a,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(tt.cssPrefix,"-"))>-1||e.match(Ae))){var n=At(e.split(" "),{skipLookups:!0});return{prefix:n.prefix||Mt(),iconName:_t(n.prefix,n.iconName)||n.iconName}}if("string"==typeof e){var i=Mt();return{prefix:i,iconName:_t(i,e)||e}}}},library:ia,findIconDefinition:na,toHtml:Qt},la=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?j:e;(Object.keys(gt.styles).length>0||tt.autoFetchSvg)&&J&&tt.autoReplaceSvg&&ra.dom.i2svg({node:t})};function sa(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return Qt(e)})}}),Object.defineProperty(e,"node",{get:function(){if(J){var t=j.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function ca(e){var t=e.icons,a=t.main,n=t.mask,i=e.prefix,o=e.iconName,r=e.transform,l=e.symbol,s=e.maskId,c=e.extra,d=e.watchable,u=void 0!==d&&d,m=n.found?n:a,b=m.width,f=m.height,h=[tt.replacementClass,o?"".concat(tt.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:F(F({},c.attributes),{},{"data-prefix":i,"data-icon":o,class:h,role:c.attributes.role||"img",viewBox:"0 0 ".concat(b," ").concat(f)})};(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[we]="");var p=F(F({},g),{},{prefix:i,iconName:o,main:a,mask:n,maskId:s,transform:r,symbol:l,styles:F({},c.styles)}),x=n.found&&a.found?aa("generateAbstractMask",p)||{children:[],attributes:{}}:aa("generateAbstractIcon",p)||{children:[],attributes:{}},G=x.children,Q=x.attributes;return p.children=G,p.attributes=Q,l?function(e){var t=e.prefix,a=e.iconName,n=e.children,i=e.attributes,o=e.symbol,r=!0===o?"".concat(t,"-").concat(tt.cssPrefix,"-").concat(a):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:F(F({},i),{},{id:r}),children:n}]}]}(p):function(e){var t=e.children,a=e.main,n=e.mask,i=e.attributes,o=e.styles,r=e.transform;if(dt(r)&&a.found&&!n.found){var l={x:a.width/a.height/2,y:.5};i.style=ct(F(F({},o),{},{"transform-origin":"".concat(l.x+r.x/16,"em ").concat(l.y+r.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(p)}function da(e){var t=e.content,a=e.width,n=e.height,i=e.transform,o=e.extra,r=e.watchable,l=void 0!==r&&r,s=F(F({},o.attributes),{},{class:o.classes.join(" ")});l&&(s[we]="");var c=F({},o.styles);dt(i)&&(c.transform=function(e){var t=e.transform,a=e.width,n=void 0===a?16:a,i=e.height,o=void 0===i?16:i,r="";return r+=E?"translate(".concat(t.x/nt-n/2,"em, ").concat(t.y/nt-o/2,"em) "):"translate(calc(-50% + ".concat(t.x/nt,"em), calc(-50% + ").concat(t.y/nt,"em)) "),r+="scale(".concat(t.size/nt*(t.flipX?-1:1),", ").concat(t.size/nt*(t.flipY?-1:1),") "),r+"rotate(".concat(t.rotate,"deg) ")}({transform:i,width:a,height:n}),c["-webkit-transform"]=c.transform);var d=ct(c);d.length>0&&(s.style=d);var u=[];return u.push({tag:"span",attributes:s,children:[t]}),u}var ua=gt.styles;function ma(e){var t=e[0],a=e[1],n=Z(e.slice(4),1)[0];return{found:!0,width:t,height:a,icon:Array.isArray(n)?{tag:"g",attributes:{class:"".concat(tt.cssPrefix,"-").concat(Pe.GROUP)},children:[{tag:"path",attributes:{class:"".concat(tt.cssPrefix,"-").concat(Pe.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(tt.cssPrefix,"-").concat(Pe.PRIMARY),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}}}}var ba={found:!1,width:512,height:512};function fa(e,t){var a=t;return"fa"===t&&null!==tt.styleDefault&&(t=Mt()),new Promise(function(n,i){if("fa"===a){var o=St(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&ua[t]&&ua[t][e])return n(ma(ua[t][e]));!function(e,t){Ye||tt.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),n(F(F({},ba),{},{icon:tt.showMissingIcons&&e&&aa("missingIconAbstract")||{}}))})}var ha=function(){},ga=tt.measurePerformance&&S&&S.mark&&S.measure?S:{mark:ha,measure:ha},pa='FA "7.1.0"',xa=function(e){ga.mark("".concat(pa," ").concat(e," ends")),ga.measure("".concat(pa," ").concat(e),"".concat(pa," ").concat(e," begins"),"".concat(pa," ").concat(e," ends"))},Ga=function(e){return ga.mark("".concat(pa," ").concat(e," begins")),function(){return xa(e)}},Qa=function(){};function va(e){return"string"==typeof(e.getAttribute?e.getAttribute(we):null)}function Ia(e){return j.createElementNS("http://www.w3.org/2000/svg",e)}function ya(e){return j.createElement(e)}function Ba(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,a=void 0===t?"svg"===e.tag?Ia:ya:t;if("string"==typeof e)return j.createTextNode(e);var n=a(e.tag);return Object.keys(e.attributes||[]).forEach(function(t){n.setAttribute(t,e.attributes[t])}),(e.children||[]).forEach(function(e){n.appendChild(Ba(e,{ceFn:a}))}),n}var Fa={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(Ba(e),t)}),null===t.getAttribute(we)&&tt.keepOriginalSource){var a=j.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(a,t)}else t.remove()},nest:function(e){var t=e[0],a=e[1];if(~lt(t).indexOf(tt.replacementClass))return Fa.replace(e);var n=new RegExp("".concat(tt.cssPrefix,"-.*"));if(delete a[0].attributes.id,a[0].attributes.class){var i=a[0].attributes.class.split(" ").reduce(function(e,t){return t===tt.replacementClass||t.match(n)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});a[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var o=a.map(function(e){return Qt(e)}).join("\n");t.setAttribute(we,""),t.innerHTML=o}};function Za(e){e()}function La(e,t){var a="function"==typeof t?t:Qa;if(0===e.length)a();else{var n=Za;"async"===tt.mutateApproach&&(n=V.requestAnimationFrame||Za),n(function(){var t=!0===tt.autoReplaceSvg?Fa.replace:Fa[tt.autoReplaceSvg]||Fa.replace,n=Ga("mutate");e.map(t),n(),a()})}}var Na=!1;function Xa(){Na=!0}function wa(){Na=!1}var Wa=null;function Ca(e){if(_&&tt.observeMutations){var t=e.treeCallback,a=void 0===t?Qa:t,n=e.nodeCallback,i=void 0===n?Qa:n,o=e.pseudoElementsCallback,r=void 0===o?Qa:o,l=e.observeMutationsRoot,s=void 0===l?j:l;Wa=new _(function(e){if(!Na){var t=Mt();rt(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!va(e.addedNodes[0])&&(tt.searchPseudoElements&&r(e.target),a(e.target)),"attributes"===e.type&&e.target.parentNode&&tt.searchPseudoElements&&r([e.target],!0),"attributes"===e.type&&va(e.target)&&~Te.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Ce):null,a=e.getAttribute?e.getAttribute(Re):null;return t&&a}(e.target)){var n=At(lt(e.target)),o=n.prefix,l=n.iconName;e.target.setAttribute(Ce,o||t),l&&e.target.setAttribute(Re,l)}else(s=e.target)&&s.classList&&s.classList.contains&&s.classList.contains(tt.replacementClass)&&i(e.target);var s})}}),J&&Wa.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Ra(e){var t,a,n=e.getAttribute("data-prefix"),i=e.getAttribute("data-icon"),o=void 0!==e.innerText?e.innerText.trim():"",r=At(lt(e));return r.prefix||(r.prefix=Mt()),n&&i&&(r.prefix=n,r.iconName=i),r.iconName&&r.prefix||(r.prefix&&o.length>0&&(r.iconName=(t=r.prefix,a=e.innerText,(Ct[t]||{})[a]||jt(r.prefix,yt(e.innerText)))),!r.iconName&&tt.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=e.firstChild.data)),r}function Ua(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},a=Ra(e),n=a.iconName,i=a.prefix,o=a.rest,r=function(e){return rt(e.attributes).reduce(function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e},{})}(e),l=ea("parseNodeAttributes",{},e),s=t.styleParser?function(e){var t=e.getAttribute("style"),a=[];return t&&(a=t.split(";").reduce(function(e,t){var a=t.split(":"),n=a[0],i=a.slice(1);return n&&i.length>0&&(e[n]=i.join(":").trim()),e},{})),a}(e):[];return F({iconName:n,prefix:i,transform:it,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:s,attributes:r}},l)}var Da=gt.styles;function ka(e){var t="nest"===tt.autoReplaceSvg?Ua(e,{styleParser:!1}):Ua(e);return~t.extra.classes.indexOf(Oe)?aa("generateLayersText",e,t):aa("generateSvgReplacementMutation",e,t)}function Ya(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!J)return Promise.resolve();var a=j.documentElement.classList,n=function(e){return a.add("".concat(Ue,"-").concat(e))},i=function(e){return a.remove("".concat(Ue,"-").concat(e))},o=tt.autoFetchSvg?[].concat(L(be),L(Be)):A.concat(Object.keys(Da));o.includes("fa")||o.push("fa");var r=[".".concat(Oe,":not([").concat(we,"])")].concat(o.map(function(e){return".".concat(e,":not([").concat(we,"])")})).join(", ");if(0===r.length)return Promise.resolve();var l=[];try{l=rt(e.querySelectorAll(r))}catch(e){}if(!(l.length>0))return Promise.resolve();n("pending"),i("complete");var s=Ga("onTree"),c=l.reduce(function(e,t){try{var a=ka(t);a&&e.push(a)}catch(e){Ye||"MissingIcon"===e.name&&console.error(e)}return e},[]);return new Promise(function(e,a){Promise.all(c).then(function(a){La(a,function(){n("active"),n("complete"),i("pending"),"function"==typeof t&&t(),s(),e()})}).catch(function(e){s(),a(e)})})}function Va(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ka(e).then(function(e){e&&La([e],t)})}var ja=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.transform,n=void 0===a?it:a,i=t.symbol,o=void 0!==i&&i,r=t.mask,l=void 0===r?null:r,s=t.maskId,c=void 0===s?null:s,d=t.classes,u=void 0===d?[]:d,m=t.attributes,b=void 0===m?{}:m,f=t.styles,h=void 0===f?{}:f;if(e){var g=e.prefix,p=e.iconName,x=e.icon;return sa(F({type:"icon"},e),function(){return ta("beforeDOMElementCreation",{iconDefinition:e,params:t}),ca({icons:{main:ma(x),mask:l?ma(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:p,transform:F(F({},it),n),symbol:o,maskId:c,extra:{attributes:b,styles:h,classes:u}})})}},_a={mixout:function(){return{icon:(e=ja,function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:na(t||{}),i=a.mask;return i&&(i=(i||{}).icon?i:na(i||{})),e(n,F(F({},a),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Ya,e.nodeCallback=Va,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,a=void 0===t?j:t,n=e.callback;return Ya(a,void 0===n?function(){}:n)},e.generateSvgReplacementMutation=function(e,t){var a=t.iconName,n=t.prefix,i=t.transform,o=t.symbol,r=t.mask,l=t.maskId,s=t.extra;return new Promise(function(t,c){Promise.all([fa(a,n),r.iconName?fa(r.iconName,r.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(r){var c=Z(r,2),d=c[0],u=c[1];t([e,ca({icons:{main:d,mask:u},prefix:n,iconName:a,transform:i,symbol:o,maskId:l,extra:s,watchable:!0})])}).catch(c)})},e.generateAbstractIcon=function(e){var t,a=e.children,n=e.attributes,i=e.main,o=e.transform,r=ct(e.styles);return r.length>0&&(n.style=r),dt(o)&&(t=aa("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),a.push(t||i.icon),{children:a,attributes:n}}}},Sa={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.classes,n=void 0===a?[]:a;return sa({type:"layer"},function(){ta("beforeDOMElementCreation",{assembler:e,params:t});var a=[];return e(function(e){Array.isArray(e)?e.map(function(e){a=a.concat(e.abstract)}):a=a.concat(e.abstract)}),[{tag:"span",attributes:{class:["".concat(tt.cssPrefix,"-layers")].concat(L(n)).join(" ")},children:a}]})}}}},Ma={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.title;var a=t.classes,n=void 0===a?[]:a,i=t.attributes,o=void 0===i?{}:i,r=t.styles,l=void 0===r?{}:r;return sa({type:"counter",content:e},function(){return ta("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,a=e.extra,n=F(F({},a.attributes),{},{class:a.classes.join(" ")}),i=ct(a.styles);i.length>0&&(n.style=i);var o=[];return o.push({tag:"span",attributes:n,children:[t]}),o}({content:e.toString(),extra:{attributes:o,styles:l,classes:["".concat(tt.cssPrefix,"-layers-counter")].concat(L(n))}})})}}}},Ja={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.transform,n=void 0===a?it:a,i=t.classes,o=void 0===i?[]:i,r=t.attributes,l=void 0===r?{}:r,s=t.styles,c=void 0===s?{}:s;return sa({type:"text",content:e},function(){return ta("beforeDOMElementCreation",{content:e,params:t}),da({content:e,transform:F(F({},it),n),extra:{attributes:l,styles:c,classes:["".concat(tt.cssPrefix,"-layers-text")].concat(L(o))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var a=t.transform,n=t.extra,i=null,o=null;if(E){var r=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();i=l.width/r,o=l.height/r}return Promise.resolve([e,da({content:e.innerHTML,width:i,height:o,transform:a,extra:n,watchable:!0})])}}},Ea=new RegExp('"',"ug"),za=[1105920,1112319],Aa=F(F(F(F({},{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"}}),Oa=Object.keys(Aa).reduce(function(e,t){return e[t.toLowerCase()]=Aa[t],e},{}),Ha=Object.keys(Oa).reduce(function(e,t){var a=Oa[t];return e[t]=a[900]||L(Object.entries(a))[0][1],e},{});function Ta(e,t){var a="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(function(n,i){if(null!==e.getAttribute(a))return n();var o,r,l,s=rt(e.children).filter(function(e){return e.getAttribute(We)===t})[0],c=V.getComputedStyle(e,t),d=c.getPropertyValue("font-family"),u=d.match(He),m=c.getPropertyValue("font-weight"),b=c.getPropertyValue("content");if(s&&!u)return e.removeChild(s),n();if(u&&"none"!==b&&""!==b){var f=c.getPropertyValue("content"),h=function(e,t){var a=e.replace(/^['"]|['"]$/g,"").toLowerCase(),n=parseInt(t),i=isNaN(n)?"normal":n;return(Oa[a]||{})[i]||Ha[a]}(d,m),g=function(e){return yt(L(e.replace(Ea,""))[0]||"")}(f),p=u[0].startsWith("FontAwesome"),x=function(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),a=e.getPropertyValue("content").replace(Ea,""),n=a.codePointAt(0),i=n>=za[0]&&n<=za[1],o=2===a.length&&a[0]===a[1];return i||o||t}(c),G=jt(h,g),Q=G;if(p){var v=(r=Ut[o=g],l=jt("fas",o),r||(l?{prefix:"fas",iconName:l}:null)||{prefix:null,iconName:null});v.iconName&&v.prefix&&(G=v.iconName,h=v.prefix)}if(!G||x||s&&s.getAttribute(Ce)===h&&s.getAttribute(Re)===Q)n();else{e.setAttribute(a,Q),s&&e.removeChild(s);var I={iconName:null,prefix:null,transform:it,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},y=I.extra;y.attributes[We]=t,fa(G,h).then(function(i){var o=ca(F(F({},I),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:h,iconName:Q,extra:y,watchable:!0})),r=j.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(r,e.firstChild):e.appendChild(r),r.outerHTML=o.map(function(e){return Qt(e)}).join("\n"),e.removeAttribute(a),n()}).catch(i)}}else n()})}function Pa(e){return Promise.all([Ta(e,"::before"),Ta(e,"::after")])}function Ka(e){return!(e.parentNode===document.head||~De.indexOf(e.tagName.toUpperCase())||e.getAttribute(We)||e.parentNode&&"svg"===e.parentNode.tagName)}var $a=function(e){return!!e&&ke.some(function(t){return e.includes(t)})},qa=function(e){if(!e)return[];var t=new Set,a=e.split(/,(?![^()]*\))/).map(function(e){return e.trim()});a=a.flatMap(function(e){return e.includes("(")?e:e.split(",").map(function(e){return e.trim()})});var n,i=I(a);try{for(i.s();!(n=i.n()).done;){var o=n.value;if($a(o)){var r=ke.reduce(function(e,t){return e.replace(t,"")},o);""!==r&&"*"!==r&&t.add(r)}}}catch(e){i.e(e)}finally{i.f()}return t};function en(e){if(J){var t;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])t=e;else if(tt.searchPseudoElementsFullScan)t=e.querySelectorAll("*");else{var a,n=new Set,i=I(document.styleSheets);try{for(i.s();!(a=i.n()).done;){var o=a.value;try{var r,l=I(o.cssRules);try{for(l.s();!(r=l.n()).done;){var s,c=r.value,d=I(qa(c.selectorText));try{for(d.s();!(s=d.n()).done;){var u=s.value;n.add(u)}}catch(e){d.e(e)}finally{d.f()}}}catch(e){l.e(e)}finally{l.f()}}catch(e){tt.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){i.e(e)}finally{i.f()}if(!n.size)return;var m=Array.from(n).join(", ");try{t=e.querySelectorAll(m)}catch(e){}}return new Promise(function(e,a){var n=rt(t).filter(Ka).map(Pa),i=Ga("searchPseudoElements");Xa(),Promise.all(n).then(function(){i(),wa(),e()}).catch(function(){i(),wa(),a()})})}}var tn={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=en,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,a=void 0===t?j:t;tt.searchPseudoElements&&en(a)}}},an=!1,nn=function(e){return e.toLowerCase().split(" ").reduce(function(e,t){var a=t.toLowerCase().split("-"),n=a[0],i=a.slice(1).join("-");if(n&&"h"===i)return e.flipX=!0,e;if(n&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(n){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},on={mixout:function(){return{parse:{transform:function(e){return nn(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var a=t.getAttribute("data-fa-transform");return a&&(e.transform=nn(a)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,a=e.transform,n=e.containerWidth,i=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},r="translate(".concat(32*a.x,", ").concat(32*a.y,") "),l="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),s="rotate(".concat(a.rotate," 0 0)"),c={outer:o,inner:{transform:"".concat(r," ").concat(l," ").concat(s)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:F({},c.outer),children:[{tag:"g",attributes:F({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:F(F({},t.icon.attributes),c.path)}]}]}}}},rn={x:0,y:0,width:"100%",height:"100%"};function ln(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 sn={hooks:function(){return{parseNodeAttributes:function(e,t){var a=t.getAttribute("data-fa-mask"),n=a?At(a.split(" ").map(function(e){return e.trim()})):{prefix:null,iconName:null,rest:[]};return n.prefix||(n.prefix=Mt()),e.mask=n,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,a=e.children,n=e.attributes,i=e.main,o=e.mask,r=e.maskId,l=e.transform,s=i.width,c=i.icon,d=o.width,u=o.icon,m=function(e){var t=e.transform,a=e.containerWidth,n=e.iconWidth,i={transform:"translate(".concat(a/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),r="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(o," ").concat(r," ").concat(l)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:l,containerWidth:d,iconWidth:s}),b={tag:"rect",attributes:F(F({},rn),{},{fill:"white"})},f=c.children?{children:c.children.map(ln)}:{},h={tag:"g",attributes:F({},m.inner),children:[ln(F({tag:c.tag,attributes:F(F({},c.attributes),m.path)},f))]},g={tag:"g",attributes:F({},m.outer),children:[h]},p="mask-".concat(r||ot()),x="clip-".concat(r||ot()),G={tag:"mask",attributes:F(F({},rn),{},{id:p,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[b,g]},Q={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:(t=u,"g"===t.tag?t.children:[t])},G]};return a.push(Q,{tag:"rect",attributes:F({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(p,")")},rn)}),{children:a,attributes:n}}}},cn={provides:function(e){var t=!1;V.matchMedia&&(t=V.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],a={fill:"currentColor"},n={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:F(F({},a),{},{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 i=F(F({},n),{},{attributeName:"opacity"}),o={tag:"circle",attributes:F(F({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:F(F({},n),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:F(F({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:F(F({},a),{},{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:F(F({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:F(F({},a),{},{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:F(F({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var a=t.mixoutsTo;Pt=e,Kt={},Object.keys($t).forEach(function(e){-1===qt.indexOf(e)&&delete $t[e]}),Pt.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){"function"==typeof t[e]&&(a[e]=t[e]),"object"===X(t[e])&&Object.keys(t[e]).forEach(function(n){a[e]||(a[e]={}),a[e][n]=t[e][n]})}),e.hooks){var n=e.hooks();Object.keys(n).forEach(function(e){Kt[e]||(Kt[e]=[]),Kt[e].push(n[e])})}e.provides&&e.provides($t)})}([ft,_a,Sa,Ma,Ja,tn,{mixout:function(){return{dom:{unwatch:function(){Xa(),an=!0}}}},hooks:function(){return{bootstrap:function(){Ca(ea("mutationObserverCallbacks",{}))},noAuto:function(){Wa&&Wa.disconnect()},watch:function(e){var t=e.observeMutationsRoot;an?wa():Ca(ea("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},on,sn,cn,{hooks:function(){return{parseNodeAttributes:function(e,t){var a=t.getAttribute("data-fa-symbol"),n=null!==a&&(""===a||a);return e.symbol=n,e}}}}],{mixoutsTo:ra});var dn=ra.config,un=ra.parse,mn=ra.icon;function bn(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 fn(e){return e.charAt(0).toUpperCase()+e.slice(1)}var hn=new Map;function gn(e){if(hn.has(e))return hn.get(e);const t={};let a=0;const n=e.length;for(;a<n;){const i=e.indexOf(";",a),o=-1===i?n:i,r=e.slice(a,o).trim();if(r){const e=r.indexOf(":");if(e>0){const a=r.slice(0,e).trim(),n=r.slice(e+1).trim();if(a&&n){const e=bn(a);t[e.startsWith("webkit")?fn(e):e]=n}}}a=o+1}if(1e3===hn.size){const e=hn.keys().next().value;e&&hn.delete(e)}return hn.set(e,t),t}var pn=function e(t,a,n={}){if("string"==typeof a)return a;const i=(a.children||[]).map(a=>e(t,a)),o=a.attributes||{},r={};for(const[e,t]of Object.entries(o))switch(!0){case"class"===e:r.className=t;break;case"style"===e:r.style=gn(String(t));break;case e.startsWith("aria-"):case e.startsWith("data-"):r[e.toLowerCase()]=t;break;default:r[bn(e)]=t}const{style:l,role:s,"aria-label":c,...d}=n;return l&&(r.style=r.style?{...r.style,...l}:l),s&&(r.role=s),c&&(r["aria-label"]=c,r["aria-hidden"]="false"),t(a.tag,{...d,...r},...i)}.bind(null,t.createElement),xn=(e,a)=>{const n=t.useId();return e||(a?n:void 0)};"undefined"!=typeof process&&process.env.FA_VERSION;var Gn="searchPseudoElementsFullScan"in dn?"7.0.0":"6.0.0",Qn=Number.parseInt(Gn)>=7,vn="fa",In="fa-beat",yn="fa-fade",Bn="fa-beat-fade",Fn="fa-bounce",Zn="fa-shake",Ln="fa-spin",Nn="fa-spin-pulse",Xn="fa-spin-reverse",wn="fa-pulse",Wn={left:"fa-pull-left",right:"fa-pull-right"},Cn={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},Rn={"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"},Un="fa-border",Dn="fa-fw",kn="fa-flip",Yn="fa-flip-horizontal",Vn="fa-flip-vertical",jn="fa-inverse",_n="fa-rotate-by",Sn="fa-swap-opacity",Mn="fa-width-auto";function Jn(e){const t=dn.cssPrefix||dn.familyPrefix||vn;return t===vn?e:e.replace(new RegExp(String.raw`(?<=^|\s)${vn}-`,"g"),`${t}-`)}function En(e){if(e)return(e=>"object"==typeof e&&"icon"in e&&!!e.icon)(e)?e:un.icon(e)}var zn=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"),An={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},On=new Set(Object.keys(An)),Hn=t.forwardRef((e,t)=>{const a={...An,...e},{icon:n,mask:i,symbol:o,title:r,titleId:l,maskId:s,transform:c}=a,d=xn(s,Boolean(i)),u=xn(l,Boolean(r)),m=En(n);if(!m)return zn.error("Icon lookup is undefined",n),null;const b=function(e){const{beat:t,fade:a,beatFade:n,bounce:i,shake:o,spin:r,spinPulse:l,spinReverse:s,pulse:c,fixedWidth:d,inverse:u,border:m,flip:b,size:f,rotation:h,pull:g,swapOpacity:p,rotateBy:x,widthAuto:G,className:Q}=e,v=[];return Q&&v.push(...Q.split(" ")),t&&v.push(In),a&&v.push(yn),n&&v.push(Bn),i&&v.push(Fn),o&&v.push(Zn),r&&v.push(Ln),s&&v.push(Xn),l&&v.push(Nn),c&&v.push(wn),d&&v.push(Dn),u&&v.push(jn),m&&v.push(Un),!0===b&&v.push(kn),"horizontal"!==b&&"both"!==b||v.push(Yn),"vertical"!==b&&"both"!==b||v.push(Vn),null!=f&&v.push(Rn[f]),null!=h&&0!==h&&v.push(Cn[h]),null!=g&&v.push(Wn[g]),p&&v.push(Sn),Qn?(x&&v.push(_n),G&&v.push(Mn),(dn.cssPrefix||dn.familyPrefix||vn)===vn?v:v.map(Jn)):v}(a),f="string"==typeof c?un.transform(c):c,h=En(i),g=mn(m,{...b.length>0&&{classes:b},...f&&{transform:f},...h&&{mask:h},symbol:o,title:r,titleId:u,maskId:d});if(!g)return zn.error("Could not find icon",m),null;const{abstract:p}=g,x={ref:t};for(const e of(G=a,Object.keys(G)))On.has(e)||(x[e]=a[e]);var G;return pn(p[0],x)});Hn.displayName="FontAwesomeIcon";var Tn={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(".Box-module_box__SQLj3,.Box-module_collapseBox__5A5Fc{background-color:var(--ps-ui-foreground);border:1px solid var(--ps-ui-border);border-radius:4px;position:relative}.Box-module_padding__dIJ-L{margin-bottom:10px;padding:10px}.Box-module_collapseBox__5A5Fc{margin-bottom:10px}.Box-module_collapseBox__5A5Fc .Box-module_box__SQLj3,.Box-module_collapseBox__5A5Fc .Box-module_collapseBox__5A5Fc{background-color:transparent;border:none;border-radius:0;height:auto;padding-bottom:0}.Box-module_collapseBox__5A5Fc .Box-module_box__SQLj3.Box-module_collapsedContent__yn-0g,.Box-module_collapseBox__5A5Fc .Box-module_collapsedContent__yn-0g.Box-module_collapseBox__5A5Fc{height:0;margin:0;overflow:hidden;padding:0}.Box-module_collapseTitle__-R0ge{align-items:center;cursor:pointer;display:flex;font-size:18px;font-weight:500;height:40px;justify-content:space-between;padding:5px 10px}.Box-module_collapseTitle__-R0ge:hover{background-color:var(--ps-ui-border)}.Box-module_collapseIcon__OAiTO{display:flex;transition:transform .1s}.Box-module_collapseIc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g7XG59XG4uY29sbGFwc2VCb3ggLmJveCwgLmNvbGxhcHNlQm94IC5jb2xsYXBzZUJveCB7XG4gIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICBib3JkZXI6IG5vbmU7XG4gIGJvcmRlci1yYWRpdXM6IDA7XG4gIHBhZGRpbmctYm90dG9tOiAwO1xuICBoZWlnaHQ6IGF1dG87XG59XG4uY29sbGFwc2VCb3ggLmJveC5jb2xsYXBzZWRDb250ZW50LCAuY29sbGFwc2VCb3ggLmNvbGxhcHNlZENvbnRlbnQuY29sbGFwc2VCb3gge1xuICBoZWlnaHQ6IDA7XG4gIG1hcmdpbjogMDtcbiAgcGFkZGluZzogMDtcbiAgb3ZlcmZsb3c6IGhpZGRlbjtcbn1cblxuLmNvbGxhcHNlVGl0bGUge1xuICBmb250LXdlaWdodDogNTAwO1xuICBmb250LXNpemU6IDE4cHg7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgcGFkZGluZzogNXB4IDEwcHg7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgaGVpZ2h0OiA0MHB4O1xufVxuLmNvbGxhcHNlVGl0bGU6aG92ZXIge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wcy11aS1ib3JkZXIpO1xufVxuXG4uY29sbGFwc2VJY29uIHtcbiAgZGlzcGxheTogZmxleDtcbiAgdHJhbnNpdGlvbjogdHJhbnNmb3JtIDAuMXM7XG59XG4uY29sbGFwc2VJY29uLmNvbGxhcHNlZCB7XG4gIHRyYW5zZm9ybTogcm90YXRlKDkwZGVnKTtcbiAgZGlzcGxheTogZmxleDtcbn0iXX0= */"),G.bind(Tn);const Pn=["dotnetspy","ebpfspy","gospy","phpspy","pyspy","rbspy","nodespy","javaspy","pyroscope-rs","scrape","tracing","unknown"],Kn=n.z.preprocess(e=>e&&Pn.includes(e)?e:"unknown",n.z.enum(Pn).default("unknown")),$n=["samples","objects","goroutines","bytes","lock_samples","lock_nanoseconds","trace_samples","exceptions"],qn=n.z.preprocess(e=>"string"==typeof e&&$n.includes(e)?e:"unknown",n.z.enum(["samples","objects","goroutines","bytes","lock_samples","lock_nanoseconds","trace_samples","exceptions","unknown"])),ei=n.z.object({names:n.z.array(n.z.preprocess(e=>e||"unknown",n.z.string().min(1))),levels:n.z.array(n.z.array(n.z.number())),numTicks:n.z.number(),maxSelf:n.z.number()}),ti=n.z.object({appName:n.z.string().optional(),name:n.z.string().optional(),startTime:n.z.number().optional(),endTime:n.z.number().optional(),query:n.z.string().optional(),maxNodes:n.z.number().optional(),format:n.z.enum(["single","double"]),sampleRate:n.z.number(),spyName:Kn,units:qn});n.z.object({version:n.z.number().min(1).max(1).default(1),flamebearer:ei,metadata:ti,leftTicks:n.z.number().optional(),rightTicks:n.z.number().optional()});const ai={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]},ni={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 ii(e){switch(e){case"single":return ai;case"double":return ni;default:throw new Error(`Unsupported type: '${e}'`)}}const oi=n.z.object({refType:n.z.string(),traceID:n.z.string(),spanID:n.z.string()}),ri=n.z.object({key:n.z.string(),type:n.z.string(),value:n.z.union([n.z.boolean(),n.z.number(),n.z.string()])}),li=n.z.object({traceID:n.z.string(),spanID:n.z.string(),flags:n.z.string(),operationName:n.z.string(),references:n.z.array(oi),startTime:n.z.number(),duration:n.z.number(),tags:n.z.array(ri),logs:n.z.object({timestamp:n.z.number(),fields:n.z.array(ri)}),processID:n.z.string(),warnings:n.z.any()}),si=n.z.object({serviceName:n.z.string(),tags:n.z.array(ri)});n.z.object({traceID:n.z.string(),spans:n.z.array(li),processes:n.z.record(si),warnings:n.z.any()});const ci=n.z.object({watermark:n.z.object({}).optional(),startTime:n.z.number(),samples:n.z.array(n.z.number()),durationDelta:n.z.number()});n.z.record(n.z.string(),ci);const di=22,ui=21.5;function mi(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function bi(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 a=!1;t.startsWith("<")&&(a=!0,t=t.slice(1).trim());const n=t.match(/^([+\-]?)(\d*\.?\d+)\s*(.*)$/);if(!n)return null;const i=n[1]||"",o=n[2],r=(n[3]||"").trim(),l=parseFloat(o);return Number.isFinite(l)?{value:l,unit:r,hasLessThan:a,sign:i}:null}function fi(e,t=!1){if(!e||!t)return e;const a=bi(e);if(!a)return e;const{unit:n}=a;let i=n;const o=n.toLowerCase();"ms"===o?i="毫秒":"μs"===o||"µs"===o||"us"===o?i="微秒":"second"===o||"seconds"===o?i="秒":"minute"===o||"minutes"===o||"min"===o||"mins"===o?i="分钟":"hour"===o||"hours"===o?i="小时":"day"===o||"days"===o?i="天":"month"===o||"months"===o?i="月":"year"!==o&&"years"!==o||(i="年");const r=String(e).match(/^([<\s]*)([+\-]?\d*\.?\d+)(.*)$/);if(!r)return e;return`${r[1]||""}${r[2]||""} ${i}`.trim()}const hi=[{value:1e15,label:"Quad"},{value:1e12,label:"Tri"},{value:1e9,label:"B"},{value:1e6,label:"M"},{value:1e3,label:"K"}];function gi(e){return Math.round(1e4*e)/100}function pi(e,t){return(t-e)/e*100}function xi(e,t,a){switch(a){case"samples":return new Gi(e/t);case"objects":case"goroutines":case"lock_samples":case"exceptions":return new vi(e);case"bytes":return new Ii(e);case"lock_nanoseconds":return new Qi(e);case"trace_samples":return new Gi(e/t,"",!0);default:return console.warn(`Unsupported unit: '${a}'. Defaulting to ''`),new Gi(e/t," ")}}class Gi{constructor(e,t,a){this.divider=1,this.enableSubsecondPrecision=!1,this.suffix="second",this.durations=[[60,"minute"],[60,"hour"],[24,"day"],[30,"month"],[12,"year"]],this.units="",a&&(this.enableSubsecondPrecision=a,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 a=this.durations[t];if(!a){console.warn("Could not calculate level");break}if(!(e>=a[0]))break;this.divider*=a[0],e/=a[0],this.suffix=a[1]}}format(e,t,a=!0){this.enableSubsecondPrecision&&(t/=1e6);const n=e/t/this.divider;let i=n.toFixed(2);return 0===n?i="0.00":(n>=0&&n<.01||n<=0&&n>-.01)&&(i="< 0.01"),a?`${i} ${this.units||`${this.suffix}${1===n||2===this.suffix.length?"":"s"}`}`:i}formatPrecise(e,t){this.enableSubsecondPrecision&&(t/=1e6);const a=e/t/this.divider;return`${parseFloat(a.toFixed(5))} ${this.units||`${this.suffix}${1===a||2===this.suffix.length?"":"s"}`}`}}class Qi{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 a=this.durations[t];if(!a){console.warn("Could not calculate level");break}if(!(e>=a[0]))break;this.divider*=a[0],e/=a[0],this.suffix=a[1]}}format(e){const t=e/1e9/this.divider;let a=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(a="< 0.01"),`${a} ${this.suffix}${1===t?"":"s"}`}formatPrecise(e){const t=e/1e9/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}${1===t?"":"s"}`}}class vi{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 a=this.objects[t];if(!a){console.warn("Could not calculate level");break}if(!(e>=a[0]))break;this.divider*=a[0],e/=a[0],this.suffix=a[1]}}format(e){const t=e/this.divider;let a=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(a="< 0.01"),`${a} ${this.suffix}`}formatPrecise(e){const t=e/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}`}}class Ii{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 a=this.bytes[t];if(!a){console.warn("Could not calculate level");break}if(!(e>=a[0]))break;{this.divider*=a[0],e/=a[0];const t=a[1];t?this.suffix=t:(console.warn("Could not calculate suffix"),this.suffix="")}}}format(e){const t=e/this.divider;let a=t.toFixed(2);return(t>=0&&t<.01||t<=0&&t>-.01)&&(a="< 0.01"),`${a} ${this.suffix}`}formatPrecise(e){const t=e/this.divider;return`${parseFloat(t.toFixed(5))} ${this.suffix}`}}const yi="TAIL",Bi="HEAD";function Fi({mode:e,charSize:t,rectWidth:a,fullText:n,shortText:i}){if(e===yi){if(t*n.length<=a)return{mode:e,text:n,marginLeft:3};const o=t*i.length;return o<=a?{mode:e,text:i,marginLeft:3}:{mode:e,text:i,marginLeft:-(o-a+3)}}return{mode:e,text:n,marginLeft:3}}function Zi(e,t){if(e===t)return 0;if(0===e)return 100;const a=(t-e)/e*100;return a>100?100:a<-100?-100:a}function Li(e,t){return i.rgb(e,e,e).alpha(t)}function Ni(e,t){if(0===t.length)return t;const a=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),n=t.match(a);return n&&n.groups?n.groups.packageName||"":t}function Xi(e,t){const a=function(e,t=0){let a,n,i,o,r,l,s,c;for(a=3&e.length,n=e.length-a,i=t,r=3432918353,l=461845907,c=0;c<n;)s=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,s=(65535&s)*r+(((s>>>16)*r&65535)<<16)&4294967295,s=s<<15|s>>>17,s=(65535&s)*l+(((s>>>16)*l&65535)<<16)&4294967295,i^=s,i=i<<13|i>>>19,o=5*(65535&i)+((5*(i>>>16)&65535)<<16)&4294967295,i=27492+(65535&o)+(((o>>>16)+58964&65535)<<16);switch(s=0,a){case 3:s^=(255&e.charCodeAt(c+2))<<16;case 2:s^=(255&e.charCodeAt(c+1))<<8;case 1:s^=255&e.charCodeAt(c);default:s=(65535&s)*r+(((s>>>16)*r&65535)<<16)&4294967295,s=s<<15|s>>>17,s=(65535&s)*l+(((s>>>16)*l&65535)<<16)&4294967295,i^=s}return i^=e.length,i^=i>>>16,i=2246822507*(65535&i)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(65535&i)+((3266489909*(i>>>16)&65535)<<16)&4294967295,i^=i>>>16,i>>>0}(t,0),n=a%e.colors.length,i=e.colors[n];return i||(console.warn("Could not calculate color. Defaulting to the first one"),e.colors[0])}function wi(e){const{goodColor:t,neutralColor:a,badColor:n}=e,r=o.scaleLinear().domain([-100,0,100]).range([t.rgb().toString(),a.rgb().toString(),n.rgb().toString()]);return e=>i(r(e).toString())}i.rgb(148,142,142),i.rgb(200,0,0),i.rgb(0,170,0),i("#48CE73");const Wi={collapsedLevelsSingular:"total (1 level collapsed)",collapsedLevelsPlural:"total ({n} levels collapsed)",isZh:!1};function Ci(e){const t=!1!==e.renderRects,a=!1!==e.renderText,{canvas:n,fitMode:i,units:o,tickToX:r,levels:l,palette:s}=e,{numTicks:c,sampleRate:d,pxPerTick:u}=e,{rangeMin:m,rangeMax:b}=e,{focusedNode:f,zoom:h}=e,g=e.messages||Wi,p=function(e){return e.clientWidth||e.width}(n);if(n.width=p,m>=b)throw new Error("'rangeMin' should be strictly smaller than 'rangeMax'");const{format:x}=e,G=ii(x),Q=n.getContext("2d");if(!Q)throw new Error("Could not get ctx");const v=h.mapOrElse(()=>0,e=>e.i),I=xi(c,d,o),y=f.isJust,B=f.mapOrElse(()=>0,e=>e.i),F=y?ui:0,Z=!!e.highlightQuery&&e.highlightQuery.length>0,L=di*(l.length-B)+(y?ui:0);n.height=L,devicePixelRatio>1&&(n.width*=2,n.height*=2,Q.scale(2,2)),Q.textBaseline="middle",Q.font="400 11.5px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace";const N=Q.measureText("a").width,{names:X}=e,w=new Map,W=Z?function(e,t){const a=t.toLowerCase(),n=new Uint8Array(e.length);for(let t=1;t<e.length;t+=1){const i=e[t];i&&(i.toLowerCase().includes(a)&&(n[t]=1))}return n}(X,e.highlightQuery):null,C="single"===e.format?function(e,t,a){const n=new Array(e.length);for(let i=0;i<e.length;i+=1){const o=Ni(t,e[i]||"")||"";n[i]=Xi(a,o)}return n}(X,e.spyName,s):null,R="double"===e.format?wi({name:s.name,goodColor:s.goodColor,neutralColor:s.neutralColor,badColor:s.badColor}):null,U=(e,t)=>{const a=e[t+G.jName];return!(!a||a<0||!W)&&1===W[a]};if(y){const e=c*u;t&&(Q.beginPath(),Q.rect(0,0,c*u,ui),Q.fillStyle=Li(200,1).rgb().string(),Q.fill());const n=f.mapOrElse(()=>"total",e=>function(e,t){return 1===e?t.collapsedLevelsSingular:t.collapsedLevelsPlural.replace("{n}",String(e))}(e.i-1,g)),o=Fi({mode:i,charSize:N,rectWidth:e,fullText:n,shortText:n}),r=0,l=0,s=ui;if(a){Q.beginPath(),Q.rect(0,0,e,ui),Q.save(),Q.clip(),Q.fillStyle="black";const t=Math.round(Math.max(r,0));Q.fillText(o.text,t+o.marginLeft,l+s/2+1),Q.restore()}}for(let n=0;n<l.length-B;n+=1){const o=l[B+n];if(!o)throw new Error(`Could not find level: ${B+n}`);for(let l=0;l<o.length;l+=G.jStep){const c=G.getBarOffset(o,l),m=r(c),b=n*di+F,h=ui,p=Z&&U(o,l);let y=G.getBarTotal(o,l);const B=y*u<=5;if(B)for(;l<o.length-G.jStep&&c+y===G.getBarOffset(o,l+G.jStep)&&G.getBarTotal(o,l+G.jStep)*u<=5&&p===(Z&&U(o,l+G.jStep));)l+=G.jStep,y+=G.getBarTotal(o,l);const L=y*u-(B?0:.5),{spyName:W}=e,D=()=>{const t={level:o,j:l,i:n+f.mapOrElse(()=>0,e=>e.i),names:X,collapsed:B,selectedLevel:v,highlightModeOn:Z,isHighlighted:p,spyName:W,palette:s,colorByNameIndex:C,diffColorFn:R};switch(x){case"single":return ki({...t});case"double":return Yi({...t,leftTicks:e.leftTicks,rightTicks:e.rightTicks});default:throw new Error(`Unsupported format: ${x}`)}};if(Q.beginPath(),Q.rect(m,b,L,h),t){const e=D();Q.fillStyle=e.string(),Q.fill()}if(!a||B)continue;if(L<20)continue;const k=Ri(X,l,x,o),Y=Fi({mode:i,charSize:N,rectWidth:L,fullText:Ui(k,y,d,I,g,w),shortText:k});Q.save(),Q.clip(),Q.fillStyle="black";const V=Math.round(Math.max(m,0));Q.fillText(Y.text,V+Y.marginLeft,b+h/2+1),Q.restore()}}}function Ri(e,t,a,n){let i=n[t+ii(a).jName];void 0===i&&(i=-1);const o=e[i];return o||(console.warn("Could not find function name for",{j:t,format:a,level:n,names:e}),"")}function Ui(e,t,a,n,i,o){let r=null==o?void 0:o.get(t);if(!r){const e=n.format(t,a);r=fi(e,!!i.isZh)||e,null==o||o.set(t,r)}return`${e} (${r})`}function Di({collapsed:e,highlightModeOn:t,isHighlighted:a}){return e||t&&!a?Li(200,.66):null}function ki(e){const t=Di(e);if(t)return t;const a=ii("single"),n=e.selectedLevel>e.i?.33:1;let i=e.level[e.j+a.jName];if(void 0===i&&(console.warn("Could nto find level",{l:e.j,jName:a.jName,level:e.level}),i=-1),e.colorByNameIndex&&i>=0&&e.colorByNameIndex[i])return e.colorByNameIndex[i].alpha(n);const o=e.names[i]||"",r=Ni(e.spyName,o)||"";return Xi(e.palette,r).alpha(n)}function Yi(e){const t=Di(e);if(t)return t;const a=e.selectedLevel>e.i?.33:1,{leftRatio:n,rightRatio:i}=function(e,t,a,n){const i=ni;return a&&n?{leftRatio:i.getBarTotalLeft(e,t)/a,rightRatio:i.getBarTotalRght(e,t)/n}:(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=gi(n),r=gi(i);return e.diffColorFn?e.diffColorFn(Zi(o,r)).alpha(a):function(e,t,a){const n=Zi(t,a);return wi(e)(n)}(e.palette,o,r).alpha(a)}class Vi{constructor(e,t,a,n,i,o,r,l){if(this.flamebearer=e,this.canvas=t,this.focusedNode=a,this.fitMode=n,this.highlightQuery=i,this.zoom=o,this.palette=r,this.messages=l,this.cachedRange=null,this.cachedPxPerTick=null,this.tickToX=e=>{var t;const a=this.cachedRange?this.cachedRange.rangeMin:this.getRange().rangeMin,n=null!==(t=this.cachedPxPerTick)&&void 0!==t?t:this.pxPerTick();return(e-this.flamebearer.numTicks*a)*n},this.xyToBarPosition=e=>{const{ff:t}=this,{i:a,j:n}=this.xyToBarIndex(e.x,e.y),i=this.focusedNode.mapOrElse(()=>0,e=>e.i<0?0:e.i-1),o=this.flamebearer.levels[a];if(!o)throw new Error(`Could not find level: '${a}'`);const r=Math.max(this.tickToX(t.getBarOffset(o,n)),0);return{x:r,y:Math.max((a-i)*di,0),width:Math.min(this.tickToX(t.getBarOffset(o,n)+t.getBarTotal(o,n))-r,this.getCanvasWidth())}},this.xyToBarData=e=>{const{i:t,j:a}=this.xyToBarIndex(e.x,e.y),n=this.flamebearer.levels[t];if(!n)throw new Error(`Could not find level: '${t}'`);switch(this.flamebearer.format){case"single":{const e=ai;return{format:"single",name:this.flamebearer.names[e.getBarName(n,a)],self:e.getBarSelf(n,a),offset:e.getBarOffset(n,a),total:e.getBarTotal(n,a)}}case"double":{const e=ni;return{format:"double",barTotal:e.getBarTotal(n,a),totalLeft:e.getBarTotalLeft(n,a),totalRight:e.getBarTotalRght(n,a),totalDiff:e.getBarTotalDiff(n,a),name:this.flamebearer.names[e.getBarName(n,a)]}}default:throw new Error("Unsupported type")}},this.isWithinBounds=(e,t)=>{if(e<0||e>this.getCanvasWidth())return!1;try{const{i:a,j:n}=this.xyToBarIndex(e,t);if(-1===n||-1===a)return!1}catch(e){return!1}return!0},this.zoom=o,this.focusedNode=a,this.flamebearer=e,this.canvas=t,this.highlightQuery=i,this.ff=ii(e.format),this.palette=r,this.messages=l,a.isJust&&o.isJust&&o.value.i<a.value.i)throw new Error("Zoom i level should be bigger than Focus")}render(e){const{rangeMin:t,rangeMax:a,pxPerTick:n}=this.updateCachedMetrics(),i={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:t,rangeMax:a,fitMode:this.fitMode,highlightQuery:this.highlightQuery,zoom:this.zoom,focusedNode:this.focusedNode,pxPerTick:n,tickToX:e=>(e-this.flamebearer.numTicks*t)*n,palette:this.palette,messages:this.messages,renderRects:null==e?void 0:e.renderRects,renderText:null==e?void 0:e.renderText},{format:o}=this.flamebearer;switch(o){case"single":Ci({...i,format:"single"});break;case"double":Ci({...i,leftTicks:this.flamebearer.leftTicks,rightTicks:this.flamebearer.rightTicks});break;default:throw new Error(`Invalid format: '${o}'`)}}pxPerTick(){if(null!==this.cachedPxPerTick)return this.cachedPxPerTick;const{rangeMin:e,rangeMax:t}=this.getRange(),a=this.getCanvasWidth()/this.flamebearer.numTicks/(t-e);return this.cachedRange={rangeMin:e,rangeMax:t},this.cachedPxPerTick=a,a}updateCachedMetrics(){const{rangeMin:e,rangeMax:t}=this.getRange(),a=this.getCanvasWidth()/this.flamebearer.numTicks/(t-e);return this.cachedRange={rangeMin:e,rangeMax:t},this.cachedPxPerTick=a,{rangeMin:e,rangeMax:t,pxPerTick:a}}getRange(){const{ff:e}=this,t=t=>{const a=this.flamebearer.levels[t.i];if(!a)throw new Error(`Could not find level: '${t.i}'`);return{rangeMin:e.getBarOffset(a,t.j)/this.flamebearer.numTicks,rangeMax:(e.getBarOffset(a,t.j)+e.getBarTotal(a,t.j))/this.flamebearer.numTicks}},a=t=>{const a=this.flamebearer.levels[t.i];if(!a)throw new Error(`Could not find level: '${t.i}'`);return{rangeMin:e.getBarOffset(a,t.j)/this.flamebearer.numTicks,rangeMax:(e.getBarOffset(a,t.j)+e.getBarTotal(a,t.j))/this.flamebearer.numTicks}},{zoom:n,focusedNode:i}=this;return n.match({Just:e=>i.match({Just:n=>{const i=a(n),o=t(e);return i.rangeMax-i.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."),a(n)):t(e)},Nothing:()=>t(e)}),Nothing:()=>i.match({Just:e=>a(e),Nothing:()=>({rangeMin:0,rangeMax:1})})})}getCanvasWidth(){return this.canvas.clientWidth||this.canvas.width}isFocused(){return this.focusedNode.isJust}binarySearchLevel(e,t){const{ff:a}=this;let n=0,i=t.length-a.jStep;for(;n<=i;){const o=a.jStep*(n/a.jStep+i/a.jStep>>1),r=this.tickToX(a.getBarOffset(t,o)),l=this.tickToX(a.getBarOffset(t,o)+a.getBarTotal(t,o));if(r<=e&&l>=e)return l-r>5?o:-1;r>e?i=o-a.jStep:n=o+a.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<=ui)return{i:0,j:0};const a=this.isFocused()?t-ui:t,n=this.focusedNode.mapOrElse(()=>0,e=>e.i<=0?0:e.i),i=this.zoom.match({Just:()=>this.focusedNode.match({Just:()=>n,Nothing:()=>0}),Nothing:()=>this.focusedNode.match({Just:()=>n,Nothing:()=>0})}),o=Math.floor(a/di)+i;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 n={x:e,y:t};return this.isWithinBounds(e,t)?a.Maybe.of(n):a.Maybe.nothing()}xyToBar(e,t){return this.parseXY(e,t).map(a=>{const{i:n,j:i}=this.xyToBarIndex(e,t);return{i:n,j:i,...this.xyToBarPosition(a),...this.xyToBarData(a)}})}}function ji(e){var t,a,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(a=ji(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function _i(){for(var e,t,a=0,n="",i=arguments.length;a<i;a++)(e=arguments[a])&&(t=ji(e))&&(n&&(n+=" "),n+=t);return n}var Si="NoData-module_noData__WuuID";function Mi(){return e.jsx("div",{"data-testid":"no-data",className:Si,children:e.jsx("span",{children:"No data available"})})}b(".NoData-module_noData__WuuID{height:100%;padding:60px 0;text-align:center;width:100%}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk5vRGF0YS5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw2QkFFRSxXQUFZLENBRVosY0FBZSxDQURmLGlCQUFrQixDQUZsQixVQUlGIiwiZmlsZSI6Ik5vRGF0YS5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5ub0RhdGEge1xuICB3aWR0aDogMTAwJTtcbiAgaGVpZ2h0OiAxMDAlO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIHBhZGRpbmc6IDYwcHggMDtcbn0iXX0= */");var Ji,Ei,zi={},Ai={};function Oi(){return Ji||(Ji=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="arrow-rotate-right",a=[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],n="f01e",i="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,a,n,i]},e.faArrowRotateRight=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(Ai)),Ai}function Hi(){return Ei||(Ei=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Oi();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}(zi)),zi}var Ti,Pi=Hi(),Ki={};function $i(){return Ti||(Ti=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="copy",a=[],n="f0c5",i="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,a,n,i]},e.faCopy=e.definition,e.prefix="fas",e.iconName=t,e.width=448,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(Ki)),Ki}var qi,eo=$i(),to={};function ao(){return qi||(qi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="highlighter",a=[],n="f591",i="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,a,n,i]},e.faHighlighter=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(to)),to}var no,io,oo=ao(),ro={},lo={};function so(){return no||(no=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="down-left-and-up-right-to-center",a=["compress-alt"],n="f422",i="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,a,n,i]},e.faDownLeftAndUpRightToCenter=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(lo)),lo}function co(){return io||(io=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=so();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 uo=co();const mo=e=>!!e&&"o"===e[0],bo=s.unstable_batchedUpdates,fo=(e,t)=>!0===e||!(!e||!e[t]),ho=(e,t)=>"function"==typeof e?e(t):e,go="_szhsinMenu",po=(e,t)=>Object.defineProperty(t,go,{value:e}),xo=(e,t)=>(t&&Object.keys(t).forEach(a=>{const n=e[a],i=t[a];e[a]="function"==typeof i&&n?(...e)=>{i(...e),n(...e)}:i}),e),Go=e=>{for(;e;){if(!(e=e.parentNode)||e===document.body||!e.parentNode)return;const{overflow:t,overflowX:a,overflowY:n}=getComputedStyle(e);if(/auto|scroll|overlay|hidden/.test(t+n+a))return e}};function Qo(e,t){return{"aria-disabled":e||void 0,tabIndex:t?0:-1}}function vo(e,t){for(let a=0;a<e.length;a++)if(e[a]===t)return a;return-1}const Io=({block:e,element:a,modifiers:n,className:i})=>t.useMemo(()=>{const t=a?`${e}__${a}`:e;let o=t;n&&Object.keys(n).forEach(e=>{const a=n[e];a&&(o+=` ${t}--${!0===a?e:`${e}-${a}`}`)});let r="function"==typeof i?i(n):i;return"string"==typeof r&&(r=r.trim(),r&&(o+=` ${r}`)),o},[e,a,n,i]),yo="szh-menu",Bo=t.createContext(),Fo=t.createContext({}),Zo=t.createContext({}),Lo=t.createContext({}),No=t.createContext({}),Xo=t.createContext({}),wo=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),Wo=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),Co=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),Ro=Object.freeze({FIRST:"first",LAST:"last"}),Uo=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),Do="absolute",ko="none",Yo={preventScroll:!0},Vo=po("MenuButton",t.forwardRef(function({className:a,isOpen:n,disabled:i,children:o,...r},l){const s=t.useMemo(()=>({open:n}),[n]);return e.jsx("button",{"aria-haspopup":!0,"aria-expanded":n,"aria-disabled":i||void 0,type:"button",disabled:i,...r,ref:l,className:Io({block:"szh-menu-button",modifiers:s,className:a}),children:o})})),jo=({className:a,containerRef:n,containerProps:i,children:o,isOpen:r,theming:l,transition:s,onClose:c})=>{const d=fo(s,"item");return e.jsx("div",{...xo({onKeyDown:({key:e})=>{if(e===wo.ESC)ho(c,{key:e,reason:Co.CANCEL})},onBlur:e=>{r&&!e.currentTarget.contains(e.relatedTarget)&&ho(c,{reason:Co.BLUR})}},i),className:Io({block:"szh-menu-container",modifiers:t.useMemo(()=>({theme:l,itemTransition:d}),[l,d]),className:a}),style:{position:"absolute",...i?.style},ref:n,children:o})},_o=()=>{let e,t=0;return{toggle:e=>{e?t++:t--,t=Math.max(t,0)},on:(a,n,i)=>{t?e||(e=setTimeout(()=>{e=0,n()},a)):i?.()},off:()=>{e&&(clearTimeout(e),e=0)}}},So=(e,t)=>Math.round(e)===t?e:t,Mo=(e,t,a,n)=>{const i=(e=>{const t=e.getBoundingClientRect();return t.width=So(t.width,e.offsetWidth),t.height=So(t.height,e.offsetHeight),t})(t),o=e.getBoundingClientRect(),r=a===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:a.getBoundingClientRect(),l=(e=>{if("string"!=typeof e)return{top:0,right:0,bottom:0,left:0};const t=e.trim().split(/\s+/,4).map(parseFloat),a=isNaN(t[0])?0:t[0],n=isNaN(t[1])?a:t[1];return{top:a,right:n,bottom:isNaN(t[2])?a:t[2],left:isNaN(t[3])?n:t[3]}})(n),s=e=>e+o.left-r.left-l.left,c=e=>e+o.left+i.width-r.right+l.right,d=e=>e+o.top-r.top-l.top,u=e=>e+o.top+i.height-r.bottom+l.bottom;return{menuRect:i,containerRect:o,getLeftOverflow:s,getRightOverflow:c,getTopOverflow:d,getBottomOverflow:u,confineHorizontally:e=>{let t=s(e);if(t<0)e-=t;else{const a=c(e);a>0&&(t=s(e-=a),t<0&&(e-=t))}return e},confineVertically:e=>{let t=d(e);if(t<0)e-=t;else{const a=u(e);a>0&&(t=d(e-=a),t<0&&(e-=t))}return e}}},Jo=({anchorRect:e,containerRect:t,menuRect:a,placeLeftorRightY:n,placeLeftX:i,placeRightX:o,getLeftOverflow:r,getRightOverflow:l,confineHorizontally:s,confineVertically:c,arrowRef:d,arrow:u,direction:m,position:b})=>{let f,h,g,p=m,x=n;"initial"!==b&&(x=c(x),"anchor"===b&&(x=Math.min(x,e.bottom-t.top),x=Math.max(x,e.top-t.top-a.height))),"left"===p?(f=i,"initial"!==b&&(h=r(f),h<0&&(g=l(o),(g<=0||-h>g)&&(f=o,p="right")))):(f=o,"initial"!==b&&(g=l(f),g>0&&(h=r(i),(h>=0||-h<g)&&(f=i,p="left")))),"auto"===b&&(f=s(f));const G=u?(({arrowRef:e,menuY:t,anchorRect:a,containerRect:n,menuRect:i})=>{let o=a.top-n.top-t+a.height/2;const r=1.25*e.current.offsetHeight;return o=Math.max(r,o),o=Math.min(o,i.height-r),o})({menuY:x,arrowRef:d,anchorRect:e,containerRect:t,menuRect:a}):void 0;return{arrowY:G,x:f,y:x,computedDirection:p}},Eo=({anchorRect:e,containerRect:t,menuRect:a,placeToporBottomX:n,placeTopY:i,placeBottomY:o,getTopOverflow:r,getBottomOverflow:l,confineHorizontally:s,confineVertically:c,arrowRef:d,arrow:u,direction:m,position:b})=>{let f,h,g,p="top"===m?"top":"bottom",x=n;"initial"!==b&&(x=s(x),"anchor"===b&&(x=Math.min(x,e.right-t.left),x=Math.max(x,e.left-t.left-a.width))),"top"===p?(f=i,"initial"!==b&&(h=r(f),h<0&&(g=l(o),(g<=0||-h>g)&&(f=o,p="bottom")))):(f=o,"initial"!==b&&(g=l(f),g>0&&(h=r(i),(h>=0||-h<g)&&(f=i,p="top")))),"auto"===b&&(f=c(f));const G=u?(({arrowRef:e,menuX:t,anchorRect:a,containerRect:n,menuRect:i})=>{let o=a.left-n.left-t+a.width/2;const r=1.25*e.current.offsetWidth;return o=Math.max(r,o),o=Math.min(o,i.width-r),o})({menuX:x,arrowRef:d,anchorRect:e,containerRect:t,menuRect:a}):void 0;return{arrowX:G,x:x,y:f,computedDirection:p}},zo="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;function Ao(e,t){"function"==typeof e?e(t):e.current=t}const Oo=(e,a)=>t.useMemo(()=>e?a?t=>{Ao(e,t),Ao(a,t)}:e:a,[e,a]),Ho=({ariaLabel:a,menuClassName:n,menuStyle:i,arrow:o,arrowProps:r={},anchorPoint:l,anchorRef:c,containerRef:d,containerProps:u,externalRef:m,parentScrollingRef:b,align:f="start",direction:h="bottom",position:g="auto",overflow:p="visible",setDownOverflow:x,repositionFlag:G,captureFocus:Q=!0,state:v,endTransition:I,isDisabled:y,menuItemFocus:B,gap:F=0,shift:Z=0,children:L,onClose:N,focusProps:X,...w})=>{const[W,C]=t.useState({x:-9999,y:-9999}),[R,U]=t.useState({}),[D,k]=t.useState(),[Y,V]=t.useState(h),[j]=t.useState(_o),[_,S]=t.useReducer(e=>e+1,1),{transition:M,boundingBoxRef:J,boundingBoxPadding:E,rootMenuRef:z,rootAnchorRef:A,scrollNodesRef:O,reposition:H,viewScroll:T,submenuCloseDelay:P}=t.useContext(Xo),{submenuCtx:K,reposSubmenu:$=G}=t.useContext(Zo),q=t.useRef(),ee=t.useRef(),te=t.useRef(!1),{hoverItem:ae,dispatch:ne,updateItems:ie}=(e=>{const[a,n]=t.useState(),i=t.useRef({items:[],hoverIndex:-1,sorted:!1}).current,o=t.useCallback((t,a)=>{const{items:o}=i;if(t)if(a)o.push(t);else{const a=o.indexOf(t);a>-1&&(o.splice(a,1),t.contains(document.activeElement)&&(e.current.focus(Yo),n()))}else i.items=[];i.hoverIndex=-1,i.sorted=!1},[i,e]),r=t.useCallback((t,a,o)=>{const{items:r,hoverIndex:l}=i,s=()=>{if(i.sorted)return;const t=e.current.querySelectorAll(".szh-menu__item");r.sort((e,a)=>vo(t,e)-vo(t,a)),i.sorted=!0};let c,d=-1;switch(t){case Wo.RESET:break;case Wo.SET:c=a;break;case Wo.UNSET:c=e=>e===a?void 0:e;break;case Wo.FIRST:s(),d=0,c=r[d];break;case Wo.LAST:s(),d=r.length-1,c=r[d];break;case Wo.SET_INDEX:s(),d=o,c=r[d];break;case Wo.INCREASE:s(),d=l,d<0&&(d=r.indexOf(a)),d++,d>=r.length&&(d=0),c=r[d];break;case Wo.DECREASE:s(),d=l,d<0&&(d=r.indexOf(a)),d--,d<0&&(d=r.length-1),c=r[d];break;default:if("production"!==process.env.NODE_ENV)throw new Error(`[React-Menu] Unknown hover action type: ${t}`)}c||(d=-1),n(c),i.hoverIndex=d},[e,i]);return{hoverItem:a,dispatch:r,updateItems:o}})(q),oe=mo(v),re=fo(M,"open"),le=fo(M,"close"),se=O.current,ce=t.useCallback(e=>{const t=q.current,a=d.current;if(!t||!a)return;const n=c?c.current?.getBoundingClientRect():l?{left:l.x,right:l.x,top:l.y,bottom:l.y,width:0,height:0}:null;if(!n)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."));se.menu||(se.menu=(J?J.current:Go(z.current))||window);const i=Mo(a,t,se.menu,E);let{arrowX:r,arrowY:s,x:u,y:m,computedDirection:b}=(({arrow:e,align:t,direction:a,gap:n,shift:i,position:o,anchorRect:r,arrowRef:l,positionHelpers:s})=>{const{menuRect:c,containerRect:d}=s,u="left"===a||"right"===a;let m=u?n:i,b=u?i:n;if(e){const e=l.current;u?m+=e.offsetWidth:b+=e.offsetHeight}const f=r.left-d.left-c.width-m,h=r.right-d.left+m,g=r.top-d.top-c.height-b,p=r.bottom-d.top+b;let x,G;"end"===t?(x=r.right-d.left-c.width,G=r.bottom-d.top-c.height):"center"===t?(x=r.left-d.left-(c.width-r.width)/2,G=r.top-d.top-(c.height-r.height)/2):(x=r.left-d.left,G=r.top-d.top),x+=m,G+=b;const Q={...s,anchorRect:r,placeLeftX:f,placeRightX:h,placeLeftorRightY:G,placeTopY:g,placeBottomY:p,placeToporBottomX:x,arrowRef:l,arrow:e,direction:a,position:o};switch(a){case"left":case"right":return Jo(Q);default:return Eo(Q)}})({arrow:o,align:f,direction:h,gap:F,shift:Z,position:g,anchorRect:n,arrowRef:ee,positionHelpers:i});const{menuRect:x}=i,G=x.height;if(!e&&"visible"!==p){const{getTopOverflow:e,getBottomOverflow:t}=i;let a,n;const o=t(m);if(o>0)a=G-o,n=o;else{const t=e(m);t<0&&(a=G+t,n=0-t,a>=0&&(m-=t))}a>=0&&k({height:a,overflowAmt:n})}o&&U({x:r,y:s}),C({x:u,y:m}),V(b)},[o,f,E,h,F,Z,g,p,l,c,d,J,z,se]);zo(()=>{oe&&(ce(),te.current&&S()),te.current=oe},[oe,ce,$]),zo(()=>{D&&!x&&(q.current.scrollTop=0)},[D,x]),zo(()=>ie,[ie]),t.useEffect(()=>{let{menu:e}=se;if(!oe||!e)return;if(e=e.addEventListener?e:window,!se.anchors){se.anchors=[];let t=Go(A&&A.current);for(;t&&t!==e;)se.anchors.push(t),t=Go(t)}let t=T;if(se.anchors.length&&"initial"===t&&(t="auto"),"initial"===t)return;const a=()=>{"auto"===t?bo(()=>ce(!0)):ho(N,{reason:Co.SCROLL})},n=se.anchors.concat("initial"!==T?e:[]);return n.forEach(e=>e.addEventListener("scroll",a)),()=>n.forEach(e=>e.removeEventListener("scroll",a))},[A,se,oe,N,T,ce]);const de=!!D&&D.overflowAmt>0;t.useEffect(()=>{if(de||!oe||!b)return;const e=()=>bo(ce),t=b.current;return t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)},[oe,de,b,ce]),t.useEffect(()=>{if(!oe||"function"!=typeof ResizeObserver||"initial"===H)return;const e=[],t=new ResizeObserver(t=>t.forEach(({target:t})=>{e.indexOf(t)<0?e.push(t):s.flushSync(()=>{ce(),S()})})),a={box:"border-box"};t.observe(q.current,a);const n=c?.current;return n&&t.observe(n,a),()=>t.disconnect()},[oe,H,c,ce]),t.useEffect(()=>{if(!oe)return ne(Wo.RESET),void(le||k());const{position:e,alwaysUpdate:t}=B||{},a=()=>{e===Ro.FIRST?ne(Wo.FIRST):e===Ro.LAST?ne(Wo.LAST):e>=-1&&ne(Wo.SET_INDEX,void 0,e)};if(t)a();else if(Q){const e=setTimeout(()=>{const e=q.current;e&&!e.contains(document.activeElement)&&(e.focus(Yo),a())},re?170:100);return()=>clearTimeout(e)}},[oe,re,le,Q,B,ne]);const ue=t.useMemo(()=>({isParentOpen:oe,submenuCtx:j,dispatch:ne,updateItems:ie}),[oe,j,ne,ie]);let me,be;D&&(x?be=D.overflowAmt:me=D.height);const fe=t.useMemo(()=>({reposSubmenu:_,submenuCtx:j,overflow:p,overflowAmt:be,parentMenuRef:q,parentDir:Y}),[_,j,p,be,Y]),he=me>=0?{maxHeight:me,overflow:p}:void 0,ge=t.useMemo(()=>({state:v,align:f,dir:Y}),[v,f,Y]),pe=t.useMemo(()=>({dir:Y}),[Y]),xe=Io({block:yo,element:"arrow",modifiers:pe,className:r.className}),Ge=e.jsxs("ul",{role:"menu","aria-label":a,...Qo(y),...xo({onPointerEnter:K?.off,onPointerMove:e=>{e.stopPropagation(),j.on(P,()=>{ne(Wo.RESET),q.current.focus(Yo)})},onPointerLeave:e=>{e.target===e.currentTarget&&j.off()},onKeyDown:e=>{switch(e.key){case wo.HOME:ne(Wo.FIRST);break;case wo.END:ne(Wo.LAST);break;case wo.UP:ne(Wo.DECREASE,ae);break;case wo.DOWN:ne(Wo.INCREASE,ae);break;case wo.SPACE:return void(e.target&&-1!==e.target.className.indexOf(yo)&&e.preventDefault());default:return}e.preventDefault(),e.stopPropagation()},onAnimationEnd:()=>{"closing"===v&&k(),ho(I)}},w),ref:Oo(m,q),className:Io({block:yo,modifiers:ge,className:n}),style:{...i,...he,margin:0,display:"closed"===v?"none":void 0,position:Do,left:W.x,top:W.y},children:[o&&e.jsx("li",{"aria-hidden":!0,...r,className:xe,style:{display:"block",position:Do,left:R.x,top:R.y,...r.style},ref:ee}),e.jsx(Zo.Provider,{value:fe,children:e.jsx(Fo.Provider,{value:ue,children:e.jsx(Bo.Provider,{value:ae,children:ho(L,ge)})})})]});return u?e.jsx(jo,{...u,isOpen:oe,children:Ge}):Ge},To=t.forwardRef(function({"aria-label":a,className:n,containerProps:i,initialMounted:o,unmountOnClose:r,transition:l,transitionTimeout:c,boundingBoxRef:d,boundingBoxPadding:u,reposition:m="auto",submenuOpenDelay:b=300,submenuCloseDelay:f=150,viewScroll:h="initial",portal:g,theming:p,onItemClick:x,...G},Q){const v=t.useRef(null),I=t.useRef({}),{anchorRef:y,state:B,onClose:F}=G,Z=t.useMemo(()=>({initialMounted:o,unmountOnClose:r,transition:l,transitionTimeout:c,boundingBoxRef:d,boundingBoxPadding:u,rootMenuRef:v,rootAnchorRef:y,scrollNodesRef:I,reposition:m,viewScroll:h,submenuOpenDelay:b,submenuCloseDelay:f}),[o,r,l,c,y,d,u,m,h,b,f]),L=t.useMemo(()=>({handleClick(e,t){e.stopPropagation||ho(x,e);let a=e.keepOpen;void 0===a&&(a=t&&e.key===wo.SPACE),a||ho(F,{value:e.value,key:e.key,reason:Co.CLICK})},handleClose(e){ho(F,{key:e,reason:Co.CLICK})}}),[x,F]);if(!B)return null;const N=e.jsx(Xo.Provider,{value:Z,children:e.jsx(Lo.Provider,{value:L,children:e.jsx(Ho,{...G,ariaLabel:a||"Menu",externalRef:Q,containerRef:v,containerProps:{className:n,containerRef:v,containerProps:i,theming:p,transition:l,onClose:F}})})});return!0===g&&"undefined"!=typeof document?s.createPortal(N,document.body):g?g.target?s.createPortal(N,g.target):g.stablePosition?null:N:N}),Po=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],Ko=e=>({_s:e,status:Po[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),$o=e=>e?6:5,qo=(e,t,a,n,i)=>{clearTimeout(n.current);const o=Ko(e);t(o),a.current=o,i&&i({current:o})},er=({enter:e=!0,exit:a=!0,preEnter:n,preExit:i,timeout:o,initialEntered:r,mountOnEnter:l,unmountOnExit:s,onStateChange:c}={})=>{const[d,u]=t.useState(()=>Ko(r?2:$o(l))),m=t.useRef(d),b=t.useRef(),[f,h]=(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 $o(t)}})(m.current._s,s);e&&qo(e,u,m,b,c)},[c,s]);return[d,t.useCallback(t=>{const o=e=>{switch(qo(e,u,m,b,c),e){case 1:f>=0&&(b.current=setTimeout(g,f));break;case 4:h>=0&&(b.current=setTimeout(g,h));break;case 0:case 3:b.current=((e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0))(o,e)}},r=m.current.isEnter;"boolean"!=typeof t&&(t=!r),t?!r&&o(e?n?0:1:2):r&&o(a?i?3:4:$o(s))},[g,c,e,a,n,i,f,h,s]),g]},tr=({initialOpen:e,initialMounted:a,unmountOnClose:n,transition:i,transitionTimeout:o=500,onMenuChange:r}={})=>{const l=fo(i,"open"),s=fo(i,"close"),[{status:c},d,u]=er({initialEntered:e,mountOnEnter:!a,unmountOnExit:n,timeout:o,enter:l,exit:s,onStateChange:t.useCallback(({current:{isEnter:e,isResolved:t}})=>{!r||e&&l&&t||!e&&s&&t||r({open:e})},[r,l,s])});return[{state:Uo[c],endTransition:u},d]},ar=parseInt(t.version)<19,nr=t.forwardRef(function({"aria-label":a,captureFocus:n,initialOpen:i,menuButton:o,instanceRef:r,onMenuChange:l,...s},c){const[d,u,m]=(e=>{const[a,n]=tr(e),[i,o]=t.useState();return[{menuItemFocus:i,...a},n,(e,t)=>{o({position:e,alwaysUpdate:t}),n(!0)}]})({...s,onMenuChange:l}),{state:b}=d,f=mo(b),h=t.useRef(null),g=((e,a)=>{if("production"!==process.env.NODE_ENV&&"function"!=typeof a)throw new Error("[React-Menu] useClick/useHover requires a function in the second parameter.");const[n]=t.useState({});return{onMouseDown:()=>{n.v=e&&"closed"!==e},onClick:e=>n.v?n.v=!1:a(!0,e)}})(b,(e,t)=>m(t.detail?void 0:Ro.FIRST)),p=t.useCallback(e=>{u(!1),e.key&&h.current.focus()},[u]),x=ho(o,{open:f});if(!x||!x.type)throw new Error("Menu requires a menuButton prop.");const G={...xo({onKeyDown:e=>{switch(e.key){case wo.UP:m(Ro.LAST);break;case wo.DOWN:m(Ro.FIRST);break;default:return}e.preventDefault()},...g},x.props),ref:Oo(ar?x.ref:x.props.ref,h)};"MenuButton"===x.type[go]&&(G.isOpen=f);const Q=t.cloneElement(x,G);return t.useImperativeHandle(r,()=>({openMenu:m,closeMenu:()=>u(!1)})),e.jsxs(t.Fragment,{children:[Q,e.jsx(To,{...s,...d,"aria-label":a||("string"==typeof x.props.children?x.props.children:"Menu"),anchorRef:h,ref:c,onClose:p})]})}),ir=(e,a,n,i)=>{const[o,r,l]=(e=>{const[a,n]=t.useState(!1);return t.useEffect(()=>{!e&&n(!1)},[e]),[a,()=>!a&&n(!0),()=>n(!1)]})(n),{submenuCloseDelay:s}=t.useContext(Xo),{isParentOpen:c,submenuCtx:d,dispatch:u,updateItems:m}=t.useContext(Fo),b=()=>{!n&&!i&&u(Wo.SET,e.current)},f=()=>{!i&&u(Wo.UNSET,e.current)};return((e,t,a)=>{zo(()=>{if("production"!==process.env.NODE_ENV&&!a)throw new Error(`[React-Menu] This menu item or submenu should be rendered under a menu: ${t.current.outerHTML}`);if(e)return;const n=t.current;return a(n,!0),()=>{a(n)}},[e,t,a])})(i,e,m),t.useEffect(()=>{n&&c&&a.current&&a.current.focus()},[a,n,c]),{mouseOver:o,setHover:b,onBlur:e=>{n&&!e.currentTarget.contains(e.relatedTarget)&&f()},onPointerMove:e=>{i||(e.stopPropagation(),r(),d.on(s,b,b))},onPointerLeave:(e,t)=>{l(),d.off(),!t&&f()}}},or=((a,n)=>{const i=t.memo(n),o=t.forwardRef((a,n)=>{const o=t.useRef(null);return e.jsx(i,{...a,itemRef:o,externalRef:n,isHovering:t.useContext(Bo)===o.current})});return o.displayName=`WithHovering(${a})`,o})("MenuItem",function({className:a,value:n,href:i,type:o,checked:r,disabled:l,children:s,onClick:c,isHovering:d,itemRef:u,externalRef:m,...b}){const f=!!l,{mouseOver:h,setHover:g,...p}=ir(u,u,d,f),x=t.useContext(Lo),G=t.useContext(No),Q="radio"===o,v="checkbox"===o,I=!(!i||f||Q||v),y=Q?G.value===n:!!v&&!!r,B=e=>{if(f)return e.stopPropagation(),void e.preventDefault();const t={value:n,syntheticEvent:e};void 0!==e.key&&(t.key=e.key),v&&(t.checked=!y),Q&&(t.name=G.name),ho(c,t),Q&&ho(G.onRadioChange,t),x.handleClick(t,v||Q)},F=t.useMemo(()=>({type:o,disabled:f,hover:h||d,checked:y,anchor:I}),[o,f,h,d,y,I]),Z=xo({...p,onPointerDown:g,onKeyDown:e=>{if(d)switch(e.key){case wo.ENTER:e.preventDefault();case wo.SPACE:I?u.current.click():B(e)}},onClick:B},b),L={role:Q?"menuitemradio":v?"menuitemcheckbox":"menuitem","aria-checked":Q||v?y:void 0,...Qo(f,d),...Z,ref:Oo(m,u),className:Io({block:yo,element:"item",modifiers:F,className:a}),children:t.useMemo(()=>ho(s,F),[s,F])};return I?e.jsx("li",{role:ko,children:e.jsx("a",{href:i,...L})}):e.jsx("li",{...L})}),rr=t.memo(t.forwardRef(function({className:t,...a},n){return e.jsx("li",{role:ko,...a,ref:n,className:Io({block:yo,element:"header",className:t})})}));var lr="canvas-module_canvas__Iiaz4",sr="canvas-module_textCanvas__eFxM4";b(".canvas-module_canvas__Iiaz4{cursor:pointer;position:relative;width:100%;z-index:1}.canvas-module_textCanvas__eFxM4{left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNhbnZhcy5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDZCQUVFLGNBQWUsQ0FDZixpQkFBa0IsQ0FGbEIsVUFBVyxDQUdYLFNBQ0YsQ0FFQSxpQ0FFRSxNQUFPLENBR1AsbUJBQW9CLENBSnBCLGlCQUFrQixDQUVsQixLQUFNLENBQ04sVUFBVyxDQUVYLFNBQ0YiLCJmaWxlIjoiY2FudmFzLm1vZHVsZS5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY2FudmFzIHtcbiAgd2lkdGg6IDEwMCU7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICB6LWluZGV4OiAxO1xufVxuXG4udGV4dENhbnZhcyB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgbGVmdDogMDtcbiAgdG9wOiAwO1xuICB3aWR0aDogMTAwJTtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIHotaW5kZXg6IDI7XG59XG4iXX0= */");var cr="Highlight-module_highlight__1VV-X";function dr(a){const{canvasRef:n,barHeight:i,xyToHighlightData:o,zoom:r}=a,[l,s]=t.useState({height:"0px",visibility:"hidden"});t.useEffect(()=>{s({height:"0px",visibility:"hidden"})},[r]);const c=e=>{const t=o(e.offsetX,e.offsetY);if(t.isJust){const e=t.value;s({visibility:"visible",height:`${i}px`,...e})}else d()},d=()=>{s({...l,visibility:"hidden"})};return t.useEffect(()=>{const e=n.current;return e?(e.addEventListener("mousemove",c),e.addEventListener("mouseout",d),()=>{e.removeEventListener("mousemove",c),e.removeEventListener("mouseout",d)}):()=>{}},[n.current,c,d]),e.jsx("div",{className:cr,style:l,"data-testid":"flamegraph-highlight"})}b(".Highlight-module_highlight__1VV-X{background:#ffffff40;mix-blend-mode:overlay;pointer-events:none;position:absolute;z-index:2}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkhpZ2hsaWdodC5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG1DQUdFLG9CQUFxQixDQUNyQixzQkFBdUIsQ0FGdkIsbUJBQW9CLENBRHBCLGlCQUFrQixDQUlsQixTQUNGIiwiZmlsZSI6IkhpZ2hsaWdodC5tb2R1bGUuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmhpZ2hsaWdodCB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIGJhY2tncm91bmQ6ICNmZmZmZmY0MDtcbiAgbWl4LWJsZW5kLW1vZGU6IG92ZXJsYXk7XG4gIHotaW5kZXg6IDI7XG59XG4iXX0= */");var ur="ContextMenuHighlight-module_highlightContextMenu__WI1nK";b(".ContextMenuHighlight-module_highlightContextMenu__WI1nK{background:#ffffff8c;mix-blend-mode:overlay;pointer-events:none;position:absolute;z-index:2}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbnRleHRNZW51SGlnaGxpZ2h0Lm1vZHVsZS5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEseURBSUUsb0JBQXFCLENBQ3JCLHNCQUF1QixDQUh2QixtQkFBb0IsQ0FEcEIsaUJBQWtCLENBS2xCLFNBQ0YiLCJmaWxlIjoiQ29udGV4dE1lbnVIaWdobGlnaHQubW9kdWxlLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi5oaWdobGlnaHRDb250ZXh0TWVudSB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIC8qIG1ha2UgaXQgYSBiaXQgbGlnaHRlciBzbyB0aGF0IGl0J3MgZWFzaWVyIHRvIGRpc3Rpbmd1aXNoIHdoZW4gYm90aCBoaWdobGlnaHRzIGFyZSBvbiAqL1xuICBiYWNrZ3JvdW5kOiAjZmZmZmZmOGM7XG4gIG1peC1ibGVuZC1tb2RlOiBvdmVybGF5O1xuICB6LWluZGV4OiAyO1xufVxuIl19 */");const mr={height:"0px",visibility:"hidden"};function br(a){const{node:n,barHeight:i}=a,[o,r]=t.useState(mr);return t.useEffect(()=>{n.match({Nothing:()=>r(mr),Just:e=>r({visibility:"visible",height:`${i}px`,...e})})},[n]),e.jsx("div",{className:ur,style:o,"data-testid":"flamegraph-highlight-contextmenu"})}const fr={name:"Default",goodColor:i.rgb(0,170,0),neutralColor:i.rgb(148,142,142),badColor:i.rgb(200,0,0),colors:[i.hsl(24,69,60),i.hsl(34,65,65),i.hsl(194,52,61),i.hsl(163,45,55),i.hsl(211,48,60),i.hsl(246,40,65),i.hsl(305,63,79),i.hsl(47,100,73),i.rgb(183,219,171),i.rgb(244,213,152),i.rgb(78,146,249),i.rgb(249,186,143),i.rgb(242,145,145),i.rgb(130,181,216),i.rgb(229,168,226),i.rgb(174,162,224),i.rgb(154,196,138),i.rgb(242,201,109),i.rgb(101,197,219),i.rgb(249,147,78),i.rgb(234,100,96),i.rgb(81,149,206),i.rgb(214,131,206),i.rgb(128,110,183)]},hr={...fr,name:"Color Blind",goodColor:i.rgb(26,133,255),neutralColor:i.rgb(148,142,142),badColor:i.rgb(220,50,32)};function gr(){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 pr(){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 xr={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"};b(".Tooltip-module_tooltip__NMZ65{background:var(--ps-tooltip-bg);border-radius:4px;box-shadow:1px 2px 4px 0 rgba(0,0,0,.3);color:var(--ps-tooltip-text);font-size:12px;pointer-events:none;position:fixed;visibility:hidden;width:420px;z-index:5}.Tooltip-module_tooltip__NMZ65.Tooltip-module_flamegraphDiffTooltip__Z983o{width:450px}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_tooltipName__y4Qs3{background-color:var(--ps-tooltip-header-bg);border-top-left-radius:4px;border-top-right-radius:4px;color:var(--ps-tooltip-text);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-weight:700;overflow:hidden;padding:8px 10px;text-overflow:ellipsis;white-space:nowrap}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_functionName__z9LHO{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;padding:8px 10px 0;white-space:break-spaces;word-break:break-all}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_tooltipTable__ct3pq{display:table;margin:10px;width:calc(100% - 20px)}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_tooltipTable__ct3pq td,.Tooltip-module_tooltip__NMZ65 .Tooltip-module_tooltipTable__ct3pq th{background-color:var(--ps-tooltip-bg);border:1px solid var(--ps-tooltip-header-bg);font-weight:400;padding:5px}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_clickInfo__Utux5{color:var(--ps-right-click-info);display:flex;justify-content:center;margin-bottom:10px}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_clickInfo__Utux5 svg{align-self:center;color:initial;display:block;height:22px;margin-right:5px;width:22px}.Tooltip-module_tooltip__NMZ65 .Tooltip-module_clickInfo__Utux5 span{font-size:14px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2x0aXAubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsK0JBR0UsK0JBQWdDLENBRWhDLGlCQUFrQixDQURsQix1Q0FBOEMsQ0FFOUMsNEJBQTZCLENBQzdCLGNBQWUsQ0FHZixtQkFBb0IsQ0FScEIsY0FBZSxDQU1mLGlCQUFrQixDQVBsQixXQUFZLENBUVosU0FFRixDQUNBLDJFQUNFLFdBQ0YsQ0FDQSxrRUFFRSw0Q0FBNkMsQ0FFN0MsMEJBQTJCLENBRDNCLDJCQUE0QixDQUY1Qiw0QkFBNkIsQ0FTN0IsbUVBQXdFLENBTHhFLGVBQWlCLENBRWpCLGVBQWdCLENBRWhCLGdCQUFpQixDQURqQixzQkFBdUIsQ0FGdkIsa0JBS0YsQ0FDQSxtRUFFRSxtRUFBd0UsQ0FEeEUsa0JBQW1CLENBRW5CLHdCQUF5QixDQUN6QixvQkFDRixDQUNBLG1FQUdFLGFBQWMsQ0FEZCxXQUFZLENBRFosdUJBR0YsQ0FDQSw0SUFFRSxxQ0FBc0MsQ0FDdEMsNENBQTZDLENBRTdDLGVBQW1CLENBRG5CLFdBRUYsQ0FDQSxnRUFJRSxnQ0FBaUMsQ0FGakMsWUFBYSxDQUNiLHNCQUF1QixDQUZ2QixrQkFJRixDQUNBLG9FQUdFLGlCQUFrQixDQUZsQixhQUFjLENBQ2QsYUFBYyxDQUdkLFdBQVksQ0FDWixnQkFBaUIsQ0FGakIsVUFHRixDQUNBLHFFQUNFLGNBQ0YiLCJmaWxlIjoiVG9vbHRpcC5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi50b29sd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7XG4gIHdoaXRlLXNwYWNlOiBicmVhay1zcGFjZXM7XG4gIHdvcmQtYnJlYWs6IGJyZWFrLWFsbDtcbn1cbi50b29sdGlwIC50b29sdGlwVGFibGUge1xuICB3aWR0aDogY2FsYygxMDAlIC0gMjBweCk7XG4gIG1hcmdpbjogMTBweDtcbiAgZGlzcGxheTogdGFibGU7IC8qIGFsdGhvdWdoIHRoaXMgaXMgdGhlIGRlZmF1bHQsIHVzZXJzIG1heSBoYXZlIGFuIG92ZXJ3cml0ZSAqL1xufVxuLnRvb2x0aXAgLnRvb2x0aXBUYWJsZSB0aCxcbi50b29sdGlwIC50b29sdGlwVGFibGUgdGQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wcy10b29sdGlwLWJnKTtcbiAgYm9yZGVyOiAxcHggc29saWQgdmFyKC0tcHMtdG9vbHRpcC1oZWFkZXItYmcpO1xuICBwYWRkaW5nOiA1cHg7XG4gIGZvbnQtd2VpZ2h0OiBub3JtYWw7XG59XG4udG9vbHRpcCAuY2xpY2tJbmZvIHtcbiAgbWFyZ2luLWJvdHRvbTogMTBweDtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIGNvbG9yOiB2YXIoLS1wcy1yaWdodC1jbGljay1pbmZvKTtcbn1cbi50b29sdGlwIC5jbGlja0luZm8gc3ZnIHtcbiAgY29sb3I6IGluaXRpYWw7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBhbGlnbi1zZWxmOiBjZW50ZXI7XG4gIHdpZHRoOiAyMnB4O1xuICBoZWlnaHQ6IDIycHg7XG4gIG1hcmdpbi1yaWdodDogNXB4O1xufVxuLnRvb2x0aXAgLmNsaWNrSW5mbyBzcGFuIHtcbiAgZm9udC1zaXplOiAxNHB4O1xufSJdfQ== */");const Gr={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)",ofTotal:"of total",clearFocus:"Clear focus",sampleCountFormat:[{value:1e15,label:"Quad"},{value:1e12,label:"Tri"},{value:1e9,label:"B"},{value:1e6,label:"M"},{value:1e3,label:"K"}]},Qr={...Gr,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} 层)",ofTotal:"占总量",clearFocus:"清除聚焦",sampleCountFormat:[{value:1e12,label:"兆"},{value:1e8,label:"亿"},{value:1e4,label:"万"},{value:1e3,label:"千"}]},vr=t.createContext(Gr),Ir=vr,yr=({messages:a,children:n})=>{const i=t.useMemo(()=>{var e;return{...Gr,...a,tooltipUnitTitles:{...Gr.tooltipUnitTitles,...null!==(e=null==a?void 0:a.tooltipUnitTitles)&&void 0!==e?e:{}}}},[a]);return e.jsx(vr.Provider,{value:i,children:n})},Br=()=>t.useContext(vr);function Fr(e){if(!e)return null;const t=e.replace(/,/g,"").trim();if(!t)return null;const a=Number(t);return Number.isFinite(a)?a:null}function Zr(e,t){if(!e||!t)return;const a=e.trim().replace(/\u2212/g,"-");return a&&"0"!==a?a.startsWith("+")?t.badColor.rgb().string():a.startsWith("-")?t.goodColor.rgb().string():void 0:void 0}function Lr(e,t,a){return a<t?t:Math.max(t,Math.min(a,e))}function Nr(e,t,a,n){const i=window.innerWidth,o=window.innerHeight,r=Math.max(0,a||0),l=Math.max(0,n||0);let s=e+12,c=t+20;return s+r+8>i&&(s=e-r-12),c+l+8>o&&(c=t-l-20),s=Lr(s,8,i-r-8),c=Lr(c,8,o-l-8),{left:s,top:c}}function Xr({shouldShowFooter:a=!0,shouldShowTitle:n=!0,dataSourceRef:i,clickInfoSide:o,setTooltipContent:r,palette:l}){const s=t.useRef(null),c=t.useRef(null),[d,u]=t.useState({title:{text:"",diff:{text:"",color:""}},tooltipData:[]}),[m,b]=t.useState(),f=()=>{b({visibility:"hidden"}),u({title:{text:"",diff:{text:"",color:""}},tooltipData:[]})},h=t.useCallback(e=>{if(!s.current)throw new Error("Missing tooltipElement");c.current={x:e.clientX,y:e.clientY},r(u,f,e);const t=s.current.clientWidth||0,a=s.current.clientHeight||0,{left:n,top:i}=Nr(e.clientX,e.clientY,t,a);b({top:i,left:n,visibility:"visible"})},[r]);return t.useEffect(()=>{const e=i.current;return e?(e.addEventListener("mousemove",h),e.addEventListener("mouseout",f),()=>{e.removeEventListener("mousemove",h),e.removeEventListener("mouseout",f)}):()=>{}},[i.current,h]),t.useLayoutEffect(()=>{if(!s.current)return;if(!c.current)return;if(0===d.tooltipData.length)return;const{x:e,y:t}=c.current,a=s.current.getBoundingClientRect(),{left:n,top:i}=Nr(e,t,a.width,a.height);b(e=>e&&e.left===n&&e.top===i&&"visible"===e.visibility?e:{...e||{},left:n,top:i,visibility:"visible"})},[d.tooltipData.length,d.title.text]),e.jsx("div",{"data-testid":"tooltip",className:_i(xr.tooltip,{[xr.flamegraphDiffTooltip]:d.tooltipData.length>1}),style:{...m,textAlign:"center"},ref:s,children:d.tooltipData.length>0&&e.jsxs(e.Fragment,{children:[n&&e.jsx("div",{className:xr.tooltipName,"data-testid":"tooltip-title",children:d.title.text}),e.jsx("div",{className:xr.functionName,"data-testid":"tooltip-function-name",children:d.title.text}),d.title.diff.text.length>0?e.jsx(wr,{data:d.tooltipData,diff:d.title.diff,palette:l}):e.jsx(wr,{data:d.tooltipData,palette:l}),a&&e.jsx(Wr,{clickInfoSide:o})]})})}function wr({data:t,diff:a,palette:n}){const i=Br(),[o,r]=t,l="Location"!==i.location;if(!o)return null;let s;switch(o.tooltipType){case"flamegraph":s=()=>{const t=r&&function(e,t){const a=bi(e),n=bi(t);if(!a||!n)return"";const i=n.value-a.value;if(0===i)return"0";const o=i>0?"+":"-",r=Math.abs(i);let l;l=r>=100?r.toFixed(0):r>=10?r.toFixed(1):r.toFixed(2);const s=a.unit||n.unit;return s?`${o}${l} ${s}`:`${o}${l}`}(o.formattedValue,r.formattedValue),s=fi(t,l),c=r&&function(e,t){const a=Fr(e),n=Fr(t);if(null==a||null==n)return"";const i=n-a;return 0===i?"0":`${i>0?"+":"-"}${Math.abs(i).toLocaleString()}`}(o.samples,r.samples),d=fi(o.formattedValue,l),u=fi(null==r?void 0:r.formattedValue,l),m=null==a?void 0:a.color,b=Zr(t,n),f=Zr(c,n);return e.jsxs(e.Fragment,{children:[r&&e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{}),e.jsx("th",{children:i.baseline}),e.jsx("th",{children:i.comparison}),e.jsx("th",{children:i.diff})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsxs("td",{children:[i.tooltipUnitTitles[o.units].percent,":"]}),e.jsx("td",{children:o.percent}),r&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:r.percent}),e.jsx("td",{style:{textAlign:"center"},children:a&&e.jsx("span",{"data-testid":"tooltip-diff",style:{color:m},children:a.text})})]})]}),e.jsxs("tr",{children:[e.jsxs("td",{children:[i.tooltipUnitTitles[o.units].formattedValue,":"]}),e.jsx("td",{children:d}),r&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:u}),e.jsx("td",{style:{textAlign:"center"},children:s&&e.jsx("span",{"data-testid":"tooltip-time-diff",style:b?{color:b}:void 0,children:s})})]})]}),e.jsxs("tr",{children:[e.jsx("td",{children:i.tooltipSamples}),e.jsx("td",{children:o.samples}),r&&e.jsxs(e.Fragment,{children:[e.jsx("td",{children:r.samples}),e.jsx("td",{style:{textAlign:"center"},children:c&&e.jsx("span",{"data-testid":"tooltip-samples-diff",style:f?{color:f}:void 0,children:c})})]})]})]})]})};break;case"table":s=()=>e.jsxs(e.Fragment,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("td",{}),e.jsxs("td",{children:[i.self," (",i.tooltipUnitTitles[o.units].total,")"]}),e.jsxs("td",{children:[i.total," (",i.tooltipUnitTitles[o.units].total,")"]})]})}),e.jsx("tbody",{children:e.jsxs("tr",{children:[e.jsxs("td",{children:[i.tooltipUnitTitles[o.units].formattedValue,":"]}),e.jsx("td",{children:o.self}),e.jsx("td",{children:o.total})]})})]});break;default:s=()=>null}return e.jsx("table",{"data-testid":"tooltip-table",className:_i(xr.tooltipTable,{[xr[`${o.tooltipType}${r?"Diff":""}`]]:o.tooltipType}),style:{textAlign:"center",margin:"0 auto"},children:s()})}function Wr({clickInfoSide:t}){const a=Br();let n;switch(t){case"right":n=e.jsxs(e.Fragment,{children:[e.jsx(gr,{}),e.jsx("span",{children:a.rightClickForMoreNodeOptions})]});break;case"left":n=e.jsxs(e.Fragment,{children:[e.jsx(pr,{}),e.jsx("span",{children:a.clickToHighlightNode})]});break;default:n=e.jsx(e.Fragment,{})}return e.jsx("div",{"data-testid":"tooltip-footer",className:xr.clickInfo,children:n})}function Cr(a){const{format:n,canvasRef:i,xyToData:o,numTicks:r,sampleRate:l,units:s,leftTicks:c,rightTicks:d,palette:u}=a,m=Br(),b=t.useCallback((e,t,a)=>{const i=xi(r,l,s),b=o(a.offsetX,a.offsetY);let f;var h;if(b.isJust)switch(f=b.value,f.format){case"single":{const t={percent:(h=f.total/r,`${gi(h)}%`),samples:"trace_samples"===s?"":mi(f.total),units:s,formattedValue:i.format(f.total,l),tooltipType:"flamegraph"};e({title:{text:f.name,diff:{text:"",color:""}},tooltipData:[t]});break}case"double":{if("single"===n)throw new Error("props format is 'single' but it has been mapped to 'double'");const t=Rr({formatter:i,sampleRate:l,totalLeft:f.totalLeft,leftTicks:c,totalRight:f.totalRight,rightTicks:d,title:f.name,units:s},u,m);e({title:t.title,tooltipData:t.tooltipData});break}default:throw new Error(`Unsupported format: '${f.format}'`)}else t()},[r,l,s,c,d,u,o,n,m]);return e.jsx(Xr,{dataSourceRef:i,clickInfoSide:"right",setTooltipContent:b,palette:u})}function Rr({formatter:e,sampleRate:t,totalLeft:a,leftTicks:n,totalRight:i,rightTicks:o,title:r,units:l},s=fr,c){var d,u;const m=i/o,b=gi(a/n),f=gi(m),h={percent:`${b}%`,samples:mi(a),units:l,formattedValue:e.format(a,t),tooltipType:"flamegraph"},g={percent:`${f}%`,samples:mi(i),units:l,formattedValue:e.format(i,t),tooltipType:"flamegraph"},p=pi(b,f);let x="";p>0?x=s.badColor.rgb().string():p<0&&(x=s.goodColor.rgb().string());let G="";return a?i?p>0?G=`+${p.toFixed(2)}%`:p<0&&(G=`${p.toFixed(2)}%`):G=null!==(u=null==c?void 0:c.diffRemoved)&&void 0!==u?u:"移除":G=null!==(d=null==c?void 0:c.diffNew)&&void 0!==d?d:"新增",{title:{text:r,diff:{text:G,color:x}},tooltipData:[h,g]}}b('@charset "UTF-8";.szh-menu{background-color:#fff;border:1px solid rgba(0,0,0,.1);box-sizing:border-box;list-style:none;margin:0;padding:0;width:max-content;z-index:100}.szh-menu:focus{outline:none}.szh-menu__arrow{background-color:#fff;border-color:rgba(0,0,0,.1) transparent transparent rgba(0,0,0,.1);border-style:solid;border-width:1px;box-sizing:border-box;height:.75rem;width:.75rem;z-index:-1}.szh-menu__arrow--dir-left{right:-.375rem;transform:translateY(-50%) rotate(135deg)}.szh-menu__arrow--dir-right{left:-.375rem;transform:translateY(-50%) rotate(-45deg)}.szh-menu__arrow--dir-top{bottom:-.375rem;transform:translateX(-50%) rotate(-135deg)}.szh-menu__arrow--dir-bottom{top:-.375rem;transform:translateX(-50%) rotate(45deg)}.szh-menu__item{cursor:pointer}.szh-menu__item:focus{outline:none}.szh-menu__item--hover{background-color:#ebebeb}.szh-menu__item--focusable{background-color:inherit;cursor:default}.szh-menu__item--disabled{color:#aaa;cursor:default}.szh-menu__group{box-sizing:border-box}.szh-menu__radio-group{list-style:none;margin:0;padding:0}.szh-menu__divider{background-color:rgba(0,0,0,.12);height:1px;margin:.5rem 0}.szh-menu-button{box-sizing:border-box}.szh-menu{border:none;border-radius:.25rem;box-shadow:0 3px 7px rgba(0,0,0,.133),0 .6px 2px rgba(0,0,0,.1);color:#212529;min-width:10rem;padding:.5rem 0;user-select:none}.szh-menu__item{align-items:center;display:flex;padding:.375rem 1.5rem;position:relative}.szh-menu-container--itemTransition .szh-menu__item{transition-duration:.15s;transition-property:background-color,color;transition-timing-function:ease-in-out}.szh-menu__item--type-radio{padding-left:2.2rem}.szh-menu__item--type-radio:before{content:"○";font-size:.8rem;left:.8rem;position:absolute;top:.55rem}.szh-menu__item--type-radio.szh-menu__item--checked:before{content:"●"}.szh-menu__item--type-checkbox{padding-left:2.2rem}.szh-menu__item--type-checkbox:before{left:.8rem;position:absolute}.szh-menu__item--type-checkbox.szh-menu__item--checked:before{content:"✔"}.szh-menu__submenu>.szh-menu__item{padding-right:2.5rem}.szh-menu__submenu>.szh-menu__item:after{content:"❯";position:absolute;right:1rem}.szh-menu__header{color:#888;font-size:.8rem;padding:.2rem 1.5rem;text-transform:uppercase}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFrR0EsZ0JBTUEsQ0F2R0EsVUFRRSxxQkFBc0IsQ0FEdEIsK0JBQW9DLENBSHBDLHFCQUFzQixDQUR0QixlQUFnQixDQUZoQixRQUFTLENBQ1QsU0FBVSxDQUdWLGlCQUFrQixDQUNsQixXQUdGLENBQ0EsZ0JBQ0UsWUFDRixDQUNBLGlCQUlFLHFCQUFzQixDQUd0QixrRUFBb0MsQ0FBcEMsa0JBQW9DLENBQXBDLGdCQUFvQyxDQU5wQyxxQkFBc0IsQ0FFdEIsYUFBZSxDQURmLFlBQWMsQ0FNZCxVQUNGLENBQ0EsMkJBQ0UsY0FBZ0IsQ0FDaEIseUNBQ0YsQ0FDQSw0QkFDRSxhQUFlLENBQ2YseUNBQ0YsQ0FDQSwwQkFDRSxlQUFpQixDQUNqQiwwQ0FDRixDQUNBLDZCQUNFLFlBQWMsQ0FDZCx3Q0FDRixDQUNBLGdCQUNFLGNBQ0YsQ0FDQSxzQkFDRSxZQUNGLENBQ0EsdUJBQ0Usd0JBQ0YsQ0FDQSwyQkFFRSx3QkFBeUIsQ0FEekIsY0FFRixDQUNB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ufVxuLnN6aC1tZW51X19zdWJtZW51ID4gLnN6aC1tZW51X19pdGVtOjphZnRlciB7XG4gIGNvbnRlbnQ6IFwi4p2vXCI7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcmlnaHQ6IDFyZW07XG59XG4uc3poLW1lbnVfX2hlYWRlciB7XG4gIGNvbG9yOiAjODg4O1xuICBmb250LXNpemU6IDAuOHJlbTtcbiAgcGFkZGluZzogMC4ycmVtIDEuNXJlbTtcbiAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbn1cbiJdfQ== */');var Ur="ContextMenu-module_dummy__5n2-N";function Dr(a){const[n,i]=tr({transition:!0}),[o,r]=t.useState({x:0,y:0}),{canvasRef:l}=a,[s,c]=t.useState([]),{xyToMenuItems:d,onClose:u,onOpen:m}=a;return t.useEffect(()=>{i(!1);const e=l.current;if(!e)return()=>{};const t=e=>{e.preventDefault();const t=d(e.offsetX,e.offsetY);c(t);const a=e.clientX,n=e.clientY+20;r({x:a,y:n}),i(!0),m(e.offsetX,e.offsetY)};return e.addEventListener("contextmenu",t),()=>{e.removeEventListener("contextmenu",t)}},[d]),e.jsx(To,{...n,className:Ur,anchorPoint:o,onClose:()=>{i(!1),u()},children:s})}b(".ContextMenu-module_dummy__5n2-N{display:block}.ContextMenu-module_dummy__5n2-N svg{margin-right:10px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbnRleHRNZW51Lm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlDQUNFLGFBQ0YsQ0FDQSxxQ0FDRSxpQkFDRiIsImZpbGUiOiJDb250ZXh0TWVudS5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5kdW1teSB7XG4gIGRpc3BsYXk6IGJsb2NrO1xufVxuLmR1bW15IHN2ZyB7XG4gIG1hcmdpbi1yaWdodDogMTBweDtcbn0iXX0= */");var kr="LogoLink-module_logoLink__oWRri";function Yr(){return e.jsxs("a",{className:kr,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"})]})}b(".LogoLink-module_logoLink__oWRri{bottom:0;color:var(--ps-neutral-2);font-weight:500;opacity:.5;position:absolute;right:0;text-decoration:none;z-index:0}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkxvZ29MaW5rLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlDQU9FLFFBQVMsQ0FIVCx5QkFBMEIsQ0FGMUIsZUFBZ0IsQ0FDaEIsVUFBWSxDQUVaLGlCQUFrQixDQUNsQixPQUFRLENBTFIsb0JBQXFCLENBT3JCLFNBQ0YiLCJmaWxlIjoiTG9nb0xpbmsubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubG9nb0xpbmsge1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gIGZvbnQtd2VpZ2h0OiA1MDA7XG4gIG9wYWNpdHk6IDAuNTtcbiAgY29sb3I6IHZhcigtLXBzLW5ldXRyYWwtMik7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcmlnaHQ6IDA7XG4gIGJvdHRvbTogMDtcbiAgei1pbmRleDogMDtcbn0iXX0= */");const Vr=()=>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"})})}),jr=()=>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"})]}),_r=()=>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"})}),Sr=({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"})]})]}),Mr=()=>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"})})]}),Jr=()=>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 Er="Header-module_flamegraphHeader__nIrXP",zr="Header-module_row__P7-2L",Ar="Header-module_flamegraphTitle__sjsvB";function Or(t){const{format:a,units:n,toolbarVisible:i}=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:""},r=i&&"single"===a?e.jsx("div",{className:`${zr} ${Ar}`,role:"heading","aria-level":2,children:o[n]&&e.jsxs(e.Fragment,{children:["Frame width represents ",o[n]]})}):null;return r?e.jsx("div",{className:Er,children:e.jsx("div",{children:r})}):null}b(".Header-module_flamegraphHeader__nIrXP{align-items:flex-start;display:flex;justify-content:space-between;padding-bottom:5px}.Header-module_flamegraphHeader__nIrXP>div:first-child{width:100%}.Header-module_row__P7-2L{display:flex;justify-content:center}.Header-module_flamegraphTitle__sjsvB{display:block;text-align:center;width:100%}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkhlYWRlci5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHVDQUtFLHNCQUF1QixDQUh2QixZQUFhLENBQ2IsNkJBQThCLENBRjlCLGtCQUtGLENBRUEsdURBQ0UsVUFDRixDQU9BLDBCQUNFLFlBQWEsQ0FDYixzQkFDRixDQUVBLHNDQUVFLGFBQWMsQ0FDZCxpQkFBa0IsQ0FGbEIsVUFHRiIsImZpbGUiOiJIZWFkZXIubW9kdWxlLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi5mbGFtZWdyYXBoSGVhZGVyIHtcbiAgcGFkZGluZy1ib3R0b206IDVweDtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuXG4gIGFsaWduLWl0ZW1zOiBmbGV4LXN0YXJ0O1xufVxuXG4uZmxhbWVncmFwaEhlYWRlciA+IGRpdjpmaXJzdC1jaGlsZCB7XG4gIHdpZHRoOiAxMDAlO1xufVxuXG4uZmxhbWVncmFwaEhlYWRlciBidXR0b24ge1xuICAvKiBtYXJnaW46IGF1dG87XG4gIGRpc3BsYXk6IGJsb2NrOyAqL1xufVxuXG4ucm93IHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG59XG5cbi5mbGFtZWdyYXBoVGl0bGUge1xuICB3aWR0aDogMTAwJTtcbiAgZGlzcGxheTogYmxvY2s7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbn1cbiJdfQ== */");var Hr="FlamegraphBreadcrumb-module_bar__v8uhn",Tr="FlamegraphBreadcrumb-module_chip__pdv1k",Pr="FlamegraphBreadcrumb-module_focusTooltip__nX30y",Kr="FlamegraphBreadcrumb-module_separator__Zj-rC",$r="FlamegraphBreadcrumb-module_chipSeparator__S-Gld",qr="FlamegraphBreadcrumb-module_unitLabel__bjHEA",el="FlamegraphBreadcrumb-module_focusIcon__aJBb6",tl="FlamegraphBreadcrumb-module_ofTotal__kk4dt",al="FlamegraphBreadcrumb-module_clearBtn__spimK";function nl(t){const{totalValueText:a,totalSamplesText:n,samplesLabel:i,unitLabel:o,hasFocus:r,focusPercent:l,focusLabel:s,ofTotalPlacement:c="after",ofTotalLabel:d,clearFocusLabel:u,onClearFocus:m}=t,b=s&&s.trim().length>0?s:void 0;return e.jsxs("div",{className:Hr,"aria-live":"polite",children:[e.jsxs("span",{className:Tr,children:[e.jsx("span",{children:a}),e.jsx("span",{className:Kr,children:"|"}),e.jsxs("span",{children:[n," ",i]}),e.jsxs("span",{className:qr,children:["(",o,")"]})]}),r&&void 0!==l&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:$r,children:">"}),e.jsxs("span",{className:`${Tr} ${Pr}`,"data-tooltip":b,children:[e.jsx("span",{className:el,"aria-hidden":"true",children:e.jsxs("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6Z"}),e.jsx("circle",{cx:"12",cy:"12",r:"3.2"})]})}),"before"===c?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:tl,children:d}),e.jsxs("span",{children:[l.toFixed(2),"%"]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("span",{children:[l.toFixed(2),"%"]}),e.jsx("span",{className:tl,children:d})]}),e.jsx("button",{type:"button",className:al,"aria-label":u,onClick:e=>{e.preventDefault(),e.stopPropagation(),m()},children:"×"})]})]})]})}b('.FlamegraphBreadcrumb-module_bar__v8uhn{align-items:center;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:6px 0;width:100%}.FlamegraphBreadcrumb-module_chip__pdv1k{align-items:center;background-color:var(--ps-ui-element-bg-primary);border:1px solid var(--ps-ui-border);border-radius:999px;color:var(--ps-ui-foreground-text);display:inline-flex;font-size:12px;gap:6px;line-height:1.2;padding:4px 10px}.FlamegraphBreadcrumb-module_focusTooltip__nX30y{position:relative}.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:hover:after,.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:hover:before{opacity:1;transform:translate(-50%,-6px)}.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:after{background:var(--ps-ui-foreground);border:1px solid var(--ps-ui-border);border-radius:6px;color:var(--ps-ui-foreground-text);content:attr(data-tooltip);font-size:12px;padding:6px 8px;white-space:nowrap;z-index:3}.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:after,.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:before{bottom:100%;left:50%;opacity:0;pointer-events:none;position:absolute;transform:translate(-50%,-2px);transition:opacity .12s ease,transform .12s ease}.FlamegraphBreadcrumb-module_focusTooltip__nX30y[data-tooltip]:before{border-color:var(--ps-ui-border) transparent transparent transparent;border-style:solid;border-width:6px 6px 0;content:"";z-index:2}.FlamegraphBreadcrumb-module_separator__Zj-rC{opacity:.6}.FlamegraphBreadcrumb-module_chipSeparator__S-Gld{color:var(--ps-ui-foreground-text);opacity:.6}.FlamegraphBreadcrumb-module_unitLabel__bjHEA{opacity:.8}.FlamegraphBreadcrumb-module_focusIcon__aJBb6{align-items:center;color:currentColor;display:inline-flex;font-size:12px}.FlamegraphBreadcrumb-module_ofTotal__kk4dt{opacity:.8}.FlamegraphBreadcrumb-module_clearBtn__spimK{background:transparent;border:none;color:var(--ps-toolbar-icon-color);cursor:pointer;font-size:14px;line-height:1;margin-left:4px;padding:0}.FlamegraphBreadcrumb-module_clearBtn__spimK:focus-visible{border-radius:4px;outline:1px solid var(--ps-ui-border)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZsYW1lZ3JhcGhCcmVhZGNydW1iLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHdDQUVFLGtCQUFtQixDQURuQixZQUFhLENBSWIsY0FBZSxDQUNmLE9BQVEsQ0FIUixzQkFBdUIsQ0FJdkIsWUFBYSxDQUhiLFVBSUYsQ0FFQSx5Q0FFRSxrQkFBbUIsQ0FNbkIsZ0RBQWlELENBQ2pELG9DQUFxQyxDQUpyQyxtQkFBb0IsQ0FLcEIsa0NBQW1DLENBVG5DLG1CQUFvQixDQUtwQixjQUFlLENBSGYsT0FBUSxDQUlSLGVBQWdCLENBSGhCLGdCQU9GLENBRUEsaURBQ0UsaUJBQ0YsQ0FFQSx1SkFFRSxTQUFVLENBQ1YsOEJBQ0YsQ0FFQSxxRUFRRSxrQ0FBbUMsQ0FFbkMsb0NBQXFDLENBSHJDLGlCQUFrQixDQUVsQixrQ0FBbUMsQ0FSbkMsMEJBQTJCLENBVTNCLGNBQWUsQ0FMZixlQUFnQixDQU1oQixrQkFBbUIsQ0FJbkIsU0FDRixDQUVBLDJJQWZFLFdBQVksQ0FEWixRQUFTLENBV1QsU0FBVSxDQURWLG1CQUFvQixDQVhwQixpQkFBa0IsQ0FHbEIsOEJBQWdDLENBVWhDLGdEQWlCRixDQWJBLHNFQVFFLG9FQUFxR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tcbiAgb3V0bGluZTogMXB4IHNvbGlkIHZhcigtLXBzLXVpLWJvcmRlcik7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbn0iXX0= */');var il="styles-module_flamegraphPane__ejguD",ol="styles-module_fitModeItem__0UBwN",rl="styles-module_sandwichItem__WYvnd";function ll(n){const i=t.useRef(null),o=t.useRef(null),s=t.useRef(),c=t.useRef(),d=Br(),u=t.useRef({lastWidth:0,lastHeight:0}),m=t.useMemo(()=>({collapsedLevelsSingular:d.collapsedLevelsSingular,collapsedLevelsPlural:d.collapsedLevelsPlural,isZh:"Location"!==d.location}),[d.collapsedLevelsSingular,d.collapsedLevelsPlural,d.location]),[b,f]=t.useState(a.Maybe.nothing()),{flamebearer:h,focusedNode:g,fitMode:p,updateFitMode:x,highlightQuery:G,zoom:Q,toolbarVisible:v,headerVisible:I=!0,disableClick:y=!1,showSingleLevel:B=!1,showCredit:F,setActiveItem:Z,selectedItem:L,updateView:N,enableSandwichView:X=!0,breadcrumb:w}=n,{onZoom:W,onReset:C,isDirty:R,onFocusOnNode:U}=n,{"data-testid":D}=n,{palette:k,setPalette:Y}=n,V=t.useCallback(l(()=>{M(),J()},50),[]);r(i,()=>{if(s){if(i.current){const e=i.current.clientWidth,t=i.current.clientHeight,a=u.current;if(!(Math.abs(e-a.lastWidth)>=2))return;a.lastWidth=e,a.lastHeight=t}V()}});const j=(e,t)=>A().xyToBar(e,t).map(e=>({left:z().offsetLeft+e.x,top:z().offsetTop+e.y,width:e.width})),_=t.useCallback((t,a)=>{const n=R(),i=A().xyToBar(t,a),o=i.isJust?i.value.name:"";return[e.jsxs(or,{disabled:!n,onClick:C,children:[e.jsx(Hn,{icon:Pi.faRedo}),d.resetView]},"reset"),(()=>{const t=i.mapOrElse(()=>!1,()=>!0),a=i.mapOrElse(()=>()=>{},e=>U.bind(null,e.i,e.j));return e.jsxs(or,{disabled:!t,onClick:a,children:[e.jsx(Hn,{icon:uo.faCompressAlt}),d.collapseNodesAbove]},"focus")})(),e.jsxs(or,{onClick:()=>{navigator.clipboard&&navigator.clipboard.writeText(o)},children:[e.jsx(Hn,{icon:eo.faCopy}),d.copyFunctionName]},"copy"),(()=>{const t=L.isJust&&L.value===o?d.clearHighlight:d.highlightSimilarNodes;return e.jsxs(or,{onClick:()=>{Z({name:o})},children:[e.jsx(Hn,{icon:oo.faHighlighter}),t]},"highlight-similar-nodes")})(),(()=>{if(!N||!X)return null;return e.jsxs(or,{className:rl,onClick:()=>{N("sandwich"),Z({name:o})},children:[e.jsx(Sr,{fill:"black"}),d.openInSandwichView]},"open-in-sandwich-view")})(),(()=>{const t=p===Bi;return e.jsxs(or,{className:ol,onClick:()=>{x(t?yi:Bi)},children:[t?e.jsx(Jr,{}):e.jsx(Mr,{}),t?d.showTextTailFirst:d.showTextHeadFirst]},"fit-mode")})()].filter(Boolean)},[s,L,p,R,C,U,Z,N,d,X]),S=()=>{if(i.current){const e=new Vi(h,i.current,g,p,G,Q,k,m);s.current=e}if(o.current){const e=new Vi(h,o.current,g,p,G,Q,k,m);c.current=e}};t.useEffect(()=>{S(),M(),J()},[k,m]),t.useEffect(()=>{S(),M(),J()},[i.current,h,g,p,Q]),t.useEffect(()=>{S(),M(),J()},[G]);const M=()=>{var e,t,a;null===(e=null==i?void 0:i.current)||void 0===e||e.setAttribute("data-state","rendering"),null===(t=null==s?void 0:s.current)||void 0===t||t.render({renderText:!1}),null===(a=null==i?void 0:i.current)||void 0===a||a.setAttribute("data-state","rendered")},J=()=>{var e,t,a;null===(e=null==o?void 0:o.current)||void 0===e||e.setAttribute("data-state","rendering"),null===(t=null==c?void 0:c.current)||void 0===t||t.render({renderRects:!1}),null===(a=null==o?void 0:o.current)||void 0===a||a.setAttribute("data-state","rendered")},E=!h||h&&h.names.length<=1,z=()=>{if(!i.current)throw new Error("Missing canvas");return i.current},A=()=>{if(!s.current)throw new Error("Missing canvas");return s.current};return e.jsxs("div",{"data-testid":"flamegraph-view",className:_i(il,{"vertical-orientation":"double"===h.format}),children:[w&&e.jsx(nl,{totalValueText:w.totalValueText,totalSamplesText:w.totalSamplesText,samplesLabel:w.samplesLabel,unitLabel:w.unitLabel,hasFocus:w.hasFocus,focusPercent:w.focusPercent,focusLabel:w.focusLabel,ofTotalPlacement:w.ofTotalPlacement,ofTotalLabel:w.ofTotalLabel,clearFocusLabel:w.clearFocusLabel,onClearFocus:w.onClearFocus}),I&&e.jsx(Or,{format:h.format,units:h.units,toolbarVisible:v}),e.jsxs("div",{"data-testid":D,style:{position:"relative",opacity:E&&!B?0:1},children:[e.jsx("canvas",{height:"0","data-testid":"flamegraph-canvas","data-highlightquery":G,className:_i("flamegraph-canvas",lr),ref:i,onClick:y?void 0:e=>{const t=A().xyToBar(e.nativeEvent.offsetX,e.nativeEvent.offsetY);t.match({Nothing:()=>{},Just:e=>{Q.match({Nothing:()=>{W(t)},Just:n=>{e.i===n.i&&e.j===n.j?W(a.Maybe.nothing()):W(t)}})}})}}),e.jsx("canvas",{height:"0","data-testid":"flamegraph-text-canvas",className:_i("flamegraph-text-canvas",sr),ref:o}),s&&i&&e.jsx(dr,{barHeight:di,canvasRef:i,zoom:Q,xyToHighlightData:j}),s&&e.jsx(br,{barHeight:di,node:b})]}),F?e.jsx(Yr,{}):"",s&&e.jsx(Cr,{format:h.format,canvasRef:i,xyToData:(e,t)=>A().xyToBar(e,t),numTicks:h.numTicks,sampleRate:h.sampleRate,leftTicks:"double"===h.format?h.leftTicks:0,rightTicks:"double"===h.format?h.rightTicks:0,units:h.units,palette:k}),!y&&s&&i&&e.jsx(Dr,{canvasRef:i,xyToMenuItems:_,onClose:()=>{f(a.Maybe.nothing())},onOpen:(e,t)=>{f(j(e,t))}})]})}b(".styles-module_flamegraphPane__ejguD{flex:1;position:relative}.styles-module_flamegraphPane__ejguD .styles-module_fitModeItem__0UBwN svg,.styles-module_flamegraphPane__ejguD .styles-module_sandwichItem__WYvnd svg{margin-right:10px;width:1em}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxxQ0FDRSxNQUFPLENBQ1AsaUJBQ0YsQ0FDQSx1SkFHRSxpQkFBa0IsQ0FEbEIsU0FFRiIsImZpbGUiOiJzdHlsZXMubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZmxhbWVncmFwaFBhbmUge1xuICBmbGV4OiAxO1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG4uZmxhbWVncmFwaFBhbmUgLmZpdE1vZGVJdGVtIHN2Zyxcbi5mbGFtZWdyYXBoUGFuZSAuc2FuZHdpY2hJdGVtIHN2ZyB7XG4gIHdpZHRoOiAxZW07XG4gIG1hcmdpbi1yaWdodDogMTBweDtcbn0iXX0= */");var sl,cl={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 dl,ul=(sl||(sl=1,function(e){!function(){var t={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=i(e,n(a)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var o in e)t.call(e,o)&&e[o]&&(n=i(n,o));return n}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):window.classNames=a}()}(cl)),cl.exports),ml=f(ul),bl={};function fl(){return dl||(dl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="crosshairs",a=[],n="f05b",i="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,a,n,i]},e.faCrosshairs=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(bl)),bl}var hl,gl=fl(),pl={};function xl(){return hl||(hl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-left",a=[9001],n="f053",i="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,a,n,i]},e.faChevronLeft=e.definition,e.prefix="fas",e.iconName=t,e.width=320,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(pl)),pl}var Gl,Ql=xl(),Il={};function vl(){return Gl||(Gl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-right",a=[9002],n="f054",i="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,a,n,i]},e.faChevronRight=e.definition,e.prefix="fas",e.iconName=t,e.width=320,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(Il)),Il}var yl=vl(),Bl={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"};b(".Table-module_table__6A8SM{table-layout:fixed;width:100%}.Table-module_table__6A8SM thead{background-color:var(--ps-table-header-bg,var(--ps-ui-foreground,#fff));color:var(--ps-table-header-text,var(--ps-ui-foreground-text,#000))}.Table-module_table__6A8SM thead th.Table-module_sortable__J6kyp{cursor:pointer;user-select:none}.Table-module_table__6A8SM thead th .Table-module_sortArrow__Nrncn{border:5px solid transparent;border-top:5px solid var(--ps-ui-foreground-text);display:inline-block;margin-left:7px;position:relative;top:3px}.Table-module_table__6A8SM thead th .Table-module_sortArrow__Nrncn.Table-module_asc__tJDI9{border-bottom-color:var(--ps-button-switch-bg-highlight);border-top-color:transparent;top:-2px}.Table-module_table__6A8SM thead th .Table-module_sortArrow__Nrncn.Table-module_desc__fjVRY{border-top-color:var(--ps-button-switch-bg-highlight);top:3px}.Table-module_table__6A8SM tbody tr:nth-child(2n){background-color:var(--ps-neutral-9)}.Table-module_table__6A8SM tbody{cursor:pointer}.Table-module_table__6A8SM tbody td{font-weight:400;text-align:center}.Table-module_table__6A8SM tbody tr.Table-module_isRowSelected__UhIAJ{background:var(--ps-table-highlight-row-bg,#bae0ff)!important;color:var(--ps-table-highlight-row-text,#0958d9);cursor:pointer}.Table-module_table__6A8SM tbody tr.Table-module_isRowSelected__UhIAJ td:first-child{box-shadow:inset 3px 0 0 0 var(--ps-table-highlight-border,#1677ff)}.Table-module_table__6A8SM tbody tr.Table-module_isRowDisabled__sz3NJ td{text-decoration:line-through}.Table-module_table__6A8SM tbody tr:not(.Table-module_isRowSelected__UhIAJ):hover{background:var(--ps-ui-element-bg-highlight);color:var(--ps-neutral-2);cursor:pointer}.Table-module_table__6A8SM tbody td,.Table-module_table__6A8SM tbody th{border:1px solid var(--ps-ui-border);padding:4px 10px;width:10%}.Table-module_loadingSpinner__SSjMK{margin-top:50px;text-align:center}.Table-module_pagination__VXgcO{display:flex;justify-content:flex-end}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRhYmxlLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLDJCQUVFLGtCQUFtQixDQURuQixVQUdGLENBQ0EsaUNBQ0UsdUVBQTZFLENBQzdFLG1FQUNGLENBQ0EsaUVBQ0UsY0FBZSxDQUNmLGdCQUNGLENBQ0EsbUVBR0UsNEJBQThDLENBQTlDLGlEQUE4QyxDQUY5QyxvQkFBcUIsQ0FLckIsZUFBZ0IsQ0FEaEIsaUJBQWtCLENBRGxCLE9BR0YsQ0FDQSwyRkFFRSx3REFBeUQsQ0FEekQsNEJBQTZCLENBRTdCLFFBQ0YsQ0FDQSw0RkFDRSxxREFBc0QsQ0FDdEQsT0FDRixDQUlBLGtEQUNFLG9DQUNGLENBQ0EsaUNBQ0UsY0FDRixDQUNBLG9DQUNFLGVBQW9CLENBQ3BCLGlCQUNGLENBSUEsc0VBR0UsNkRBQWdFLENBQ2hFLGdEQUFrRCxDQUhsRCxjQUtGLENBQ0EscUZBQ0UsbUVBQ0YsQ0FDQSx5RUFDRSw0QkFDRixDQUNBLGtGQUdFLDRDQUE2QyxDQUQ3Qyx5QkFBMEIsQ0FE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ovrnmoYYgKi9cbn1cbi50YWJsZSB0Ym9keSB0ci5pc1Jvd1NlbGVjdGVkIHRkOmZpcnN0LWNoaWxkIHtcbiAgYm94LXNoYWRvdzogaW5zZXQgM3B4IDAgMCAwIHZhcigtLXBzLXRhYmxlLWhpZ2hsaWdodC1ib3JkZXIsICMxNjc3ZmYpO1xufVxuLnRhYmxlIHRib2R5IHRyLmlzUm93RGlzYWJsZWQgdGQge1xuICB0ZXh0LWRlY29yYXRpb246IGxpbmUtdGhyb3VnaDtcbn1cbi50YWJsZSB0Ym9keSB0cjpub3QoLmlzUm93U2VsZWN0ZWQpOmhvdmVyIHtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBjb2xvcjogdmFyKC0tcHMtbmV1dHJhbC0yKTtcbiAgYmFja2dyb3VuZDogdmFyKC0tcHMtdWktZWxlbWVudC1iZy1oaWdobGlnaHQpO1xufVxuLnRhYmxlIHRib2R5IHRkLFxuLnRhYmxlIHRib2R5IHRoIHtcbiAgYm9yZGVyOiAxcHggc29saWQgdmFyKC0tcHMtdWktYm9yZGVyKTtcbiAgcGFkZGluZzogNHB4IDEwcHg7XG4gIHdpZHRoOiAxMCU7XG59XG5cbi5sb2FkaW5nU3Bpbm5lciB7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgbWFyZ2luLXRvcDogNTBweDtcbn1cblxuLnBhZ2luYXRpb24ge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtZW5kO1xufSJdfQ== */");var Fl="Button-module_button__Ed1ge",Zl="Button-module_noIcon__Uzjvv",Ll="Button-module_noBox__mLreC",Nl="Button-module_customIcon__-slpC",Xl="Button-module_iconWithText__DQRkr",wl="Button-module_default__HhXlQ",Wl="Button-module_outline__Flf4r",Cl="Button-module_float__4marx",Rl="Button-module_primary__xByv0",Ul="Button-module_secondary__D0K-F",Dl="Button-module_danger__5-vIq",kl="Button-module_grouped__j8KwB";b(".Button-module_button__Ed1ge{border:1px solid var(--ps-ui-border);border-radius:4px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Button-module_button__Ed1ge[type=button],.Button-module_button__Ed1ge[type=reset],.Button-module_button__Ed1ge[type=submit]{-webkit-appearance:button}.Button-module_noIcon__Uzjvv{min-width:48px}.Button-module_noBox__mLreC{background:inherit!important;border:none;border-radius:none}.Button-module_customIcon__-slpC svg{margin-right:5px;vertical-align:-.125em;width:1rem}.Button-module_iconWithText__DQRkr{margin-right:5px}.Button-module_default__HhXlQ,.Button-module_float__4marx,.Button-module_outline__Flf4r{background:var(--ps-ui-element-bg-primary)}.Button-module_default__HhXlQ:hover:not(:disabled),.Button-module_float__4marx:hover:not(:disabled),.Button-module_outline__Flf4r:hover:not(:disabled){background-color:var(--ps-ui-element-bg-highlight)}.Button-module_default__HhXlQ:disabled,.Button-module_float__4marx:disabled,.Button-module_outline__Flf4r:disabled{color:var(--ps-disabled-button-text);pointer-events:none}.Button-module_primary__xByv0{background-color:var(--ps-button-switch-bg);border-color:transparent;color:var(--ps-button-switch-text)!important}.Button-module_primary__xByv0:hover{background-color:var(--ps-button-switch-bg-highlight)}.Button-module_primary__xByv0:disabled{background-color:var(--ps-green-disabled);pointer-events:none}.Button-module_secondary__D0K-F{background-color:var(--ps-blue-primary);border-color:transparent;color:var(--ps-immutable-off-white)}.Button-module_secondary__D0K-F:hover{background-color:var(--ps-blue-highlight)}.Button-module_secondary__D0K-F:disabled{background-color:var(--ps-blue-disabled);pointer-events:none}.Button-module_float__4marx{background-color:transparent;border-color:transparent}.Button-module_danger__5-vIq{background-color:var(--ps-red-primary);border-color:transparent;color:var(--ps-neutral-2)}.Button-module_danger__5-vIq:hover{background-color:var(--ps-red-highlight)}.Button-module_danger__5-vIq:disabled{background-color:var(--ps-red-disabled);pointer-events:none}.Button-module_outline__Flf4r{background-color:transparent}.Button-module_outline__Flf4r:hover:not(:disabled){background-color:rgba(144,202,249,.08)}.Button-module_grouped__j8KwB{border-radius:0;border-right:0;margin:0;padding-left:12px;padding-right:12px}.Button-module_grouped__j8KwB:first-child{border-left:1px solid var(--ps-ui-border);border-radius:4px 0 0 4px}.Button-module_grouped__j8KwB:last-child{border-radius:0 4px 4px 0;border-right:1px solid var(--ps-ui-border)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJ1dHRvbi5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw2QkFLRSxvQ0FBcUMsQ0FDckMsaUJBQWtCLENBRmxCLGNBQWUsQ0FGZixlQUFnQixDQUNoQixzQkFBdUIsQ0FGdkIsa0JBTUYsQ0FDQSw2SEFDRSx5QkFDRixDQUVBLDZCQUNFLGNBQ0YsQ0FFQSw0QkFHRSw0QkFBOEIsQ0FGOUIsV0FBWSxDQUNaLGtCQUVGLENBRUEscUNBRUUsZ0JBQWlCLENBQ2pCLHNCQUF3QixDQUZ4QixVQUdGLENBRUEsbUNBQ0UsZ0JBQ0YsQ0FFQSx3RkFDRSwwQ0FDRixDQUNBLHVKQUNFLGtEQUNGLENBQ0EsbUhBQ0Usb0NBQXFDLENBQ3JDLG1CQUNGLENBRUEsOEJBR0UsMkNBQTRDLENBRjVDLHdCQUF5QixDQUN6Qiw0Q0FFRixDQUNBLG9DQUNFLHFEQUNGLENBQ0EsdUNBQ0UseUNBQTBDLENBQzFDLG1CQUNGLENBRUEsZ0NBR0UsdUNBQXdDLENBRnhDLHdCQUF5QixDQUN6QixtQ0FFRixDQUNBLHNDQUNFLHlDQUNGLENBQ0EseUNBQ0Usd0NBQXlDLENBQ3pDLG1CQUNGLENBRUEsNEJBRUUsNEJBQTZCLENBRDdCLHdCQUVGLENBRUEsNkJBR0Usc0NBQXVDLENBRnZDLHdCQUF5QixDQUN6Qix5QkFFRixDQUNBLG1DQUNFLHdDQUNGLENBQ0Esc0NBQ0UsdUNBQXdDLENBQ3hDLG1CQUNGLENBRUEsOEJBQ0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yZGVyLXJhZGl1czogNHB4IDAgMCA0cHg7XG59XG5cbi5ncm91cGVkOmxhc3QtY2hpbGQge1xuICBib3JkZXItcmlnaHQ6IDFweCBzb2xpZCB2YXIoLS1wcy11aS1ib3JkZXIpO1xuICBib3JkZXItcmFkaXVzOiAwIDRweCA0cHggMDtcbn0iXX0= */");const Yl=t.forwardRef(function({disabled:t=!1,kind:a="default",type:n="button",icon:i,iconNode:o,children:r,grouped:l,onClick:s,id:c,className:d,form:u,noBox:m,autoFocus:b,...f},h){return e.jsxs("button",{...f,id:c,ref:h,type:n,"data-testid":f["data-testid"],disabled:t,onClick:s,form:u,autoFocus:b,"aria-label":f["aria-label"],className:ml(Fl,l?kl:"",Vl(a),d,m&&Ll,o&&Nl,!i&&!o&&Zl),children:[i?e.jsx(Hn,{icon:i,className:r?Xl:""}):null,o,r]})});function Vl(e){switch(e){case"default":return wl;case"primary":return Rl;case"secondary":return Ul;case"danger":return Dl;case"outline":return Wl;case"float":return Cl;default:throw Error(`Unsupported kind ${e}`)}}function jl({row:a}){const{cells:n,isRowSelected:i,isRowDisabled:o,className:r,onClick:l,onDoubleClick:s,onContextMenu:c,...d}=a,u=t.useRef(Math.random()).current;return e.jsx("tr",{...d,onClick:l,onDoubleClick:s,onContextMenu:c,className:Si(r,{[Bl.isRowSelected]:i,[Bl.isRowDisabled]:o}),children:n&&n.map(({style:t,value:a,...n},i)=>e.jsx("td",{style:t,...n,children:a},u+i))})}function _l({sortByDirection:a,sortBy:n,updateSortParams:i,table:o,tableBodyRef:r,className:l,isLoading:s,itemsPerPage:c}){const d=a&&n&&i,[u,m]=t.useState(0);return s?e.jsx("div",{className:Bl.loadingSpinner}):e.jsxs(e.Fragment,{children:[e.jsxs("table",{className:Si(Bl.table,{[l||""]:l}),"data-testid":"table-ui",children:[e.jsx("thead",{children:e.jsx("tr",{children:o.headRow.map(({sortable:r,label:l,name:s,...c},u)=>r&&"not-filled"!==o.type&&d?t.createElement("th",{...c,key:u,className:Bl.sortable,onClick:()=>i(s)},l,e.jsx("span",{className:Si(Bl.sortArrow,{[Bl[a]]:n===s})})):e.jsx("th",{...c,children:l},u))})}),e.jsx("tbody",{ref:r,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})}):Sl(o.bodyRows,u,c).map((t,a)=>{var n;return e.jsx(jl,{row:t},null!==(n=t["data-row"])&&void 0!==n?n:`row-${a}`)})})]}),e.jsx(Ml,{bodyRows:"filled"===o.type?o.bodyRows:void 0,itemsPerPage:c,currPage:u,setCurrPage:m})]})}function Sl(e,t,a){return a?e.slice(t*a,a*(t+1)):e}function Ml({itemsPerPage:t,currPage:a,setCurrPage:n,bodyRows:i}){if(!t)return null;const o=!!i&&Sl(i,a+1,t).length>0,r=!!i&&Sl(i,a-1,t).length>0;return e.jsxs("nav",{className:Bl.pagination,children:[e.jsx(Yl,{"aria-label":"Previous Page",disabled:!r,kind:"float",icon:Ql.faChevronLeft,onClick:()=>n(a-1)}),e.jsx(Yl,{disabled:!o,"aria-label":"Next Page",kind:"float",icon:yl.faChevronRight,onClick:()=>n(a+1)})]})}function Jl({numTicks:a,sampleRate:n,units:i,tableBodyRef:o,palette:r}){const l=xi(a,n,i),s=l.format(a,n),c=Br(),d=t.useCallback((e,t,a)=>{var o;const d=null===(o=a.target.closest("tr"))||void 0===o?void 0:o.dataset.row;if(!d)return void t();const[u,m,...b]=d.split(";");switch(u){case"single":{const[t,a]=b,o=l.format(parseInt(t,10),n),r=l.format(parseInt(a,10),n),c=s.split(" "),d="<"===c[0]?c[1]:c[0],u=o.split(" "),f="<"===u[0]?u[1]:u[0],h=r.split(" "),g="<"===h[0]?h[1]:h[0];e({title:{text:m,diff:{text:"",color:""}},tooltipData:[{units:i,self:`${o}(${(parseFloat(f)/parseFloat(d)*100).toFixed(2)}%)`,total:`${r}(${(parseFloat(g)/parseFloat(d)*100).toFixed(2)}%)`,tooltipType:"table"}]});break}case"double":{const[t,a,o,s]=b,d=Rr({formatter:l,sampleRate:n,totalLeft:parseInt(t,10),leftTicks:parseInt(a,10),totalRight:parseInt(o,10),rightTicks:parseInt(s,10),title:m,units:i},r,c);e({title:d.title,tooltipData:d.tooltipData});break}}},[l,n,i,s,r,c]);return e.jsx(Xr,{dataSourceRef:o,shouldShowTitle:!1,clickInfoSide:"left",setTooltipContent:d,palette:r})}var El="ProfilerTable-module_tableContextMenu__7Svm8",zl="ProfilerTable-module_sandwichItem__b9Ipy";b(".ProfilerTable-module_tableContextMenu__7Svm8 .szh-menu{background-color:var(--ps-ui-background,#fff);border:1px solid var(--ps-ui-border,#ccc);border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,.15);min-width:180px;padding:4px 0;z-index:1000}.ProfilerTable-module_tableContextMenu__7Svm8 .szh-menu__item{align-items:center;color:var(--ps-ui-foreground-text,#333);cursor:pointer;display:flex;font-size:13px;gap:8px;padding:8px 12px;transition:background-color .15s}.ProfilerTable-module_tableContextMenu__7Svm8 .szh-menu__item:hover{background-color:var(--ps-ui-element-bg-highlight,#f0f0f0)}.ProfilerTable-module_tableContextMenu__7Svm8 .szh-menu__item svg{flex-shrink:0;height:14px;width:14px}.ProfilerTable-module_sandwichItem__b9Ipy svg{height:16px;width:16px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlByb2ZpbGVyVGFibGUubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsd0RBQ0UsNkNBQStDLENBQy9DLHlDQUEyQyxDQUMzQyxpQkFBa0IsQ0FDbEIsb0NBQXlDLENBRXpDLGVBQWdCLENBRGhCLGFBQWMsQ0FFZCxZQUNGLENBQ0EsOERBRUUsa0JBQW1CLENBSW5CLHVDQUF5QyxDQUR6QyxjQUFlLENBSmYsWUFBYSxDQU1iLGNBQWUsQ0FKZixPQUFRLENBQ1IsZ0JBQWlCLENBSWpCLGdDQUNGLENBQ0Es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ZnIHtcbiAgd2lkdGg6IDE0cHg7XG4gIGhlaWdodDogMTRweDtcbiAgZmxleC1zaHJpbms6IDA7XG59XG5cbi5zYW5kd2ljaEl0ZW0gc3ZnIHtcbiAgd2lkdGg6IDE2cHg7XG4gIGhlaWdodDogMTZweDtcbn0iXX0= */");const Al=e=>e||0;function Ol(e,t,a,n){const i=t;return i.type="single",i.self=Al(i.self)+e.getBarSelf(a,n),i.total=Al(i.total)+e.getBarTotal(a,n),i}function Hl(e,t,a,n,i,o){const r=t;return r.type="double",r.self=Al(r.self)+e.getBarSelf(a,n),r.total=Al(r.total)+e.getBarTotal(a,n),r.selfLeft=Al(r.selfLeft)+e.getBarSelfLeft(a,n),r.selfRght=Al(r.selfRght)+e.getBarSelfRght(a,n),r.selfDiff=Al(r.selfDiff)+e.getBarSelfDiff(a,n),r.totalLeft=Al(r.totalLeft)+e.getBarTotalLeft(a,n),r.totalRght=Al(r.totalRght)+e.getBarTotalRght(a,n),r.totalDiff=Al(r.totalDiff)+e.getBarTotalDiff(a,n),r.leftTicks=i,r.rightTicks=o,r}function Tl(e,t){if(!e||!e.levels)return null;const{names:a,levels:n,format:i}=e,o=ii(i);let r=null;for(let e=0;e<n.length;e++){const i=n[e];for(let n=0;n<i.length;n+=o.jStep){if(a[o.getBarName(i,n)]===t){const t=o.getBarTotal(i,n);(!r||t>r.total)&&(r={i:e,j:n,total:t})}}}return r?{i:r.i,j:r.j}:null}function Pl(e,t,a){const n=148-e/t*148,i=a.alpha(1);return{backgroundImage:`linear-gradient(${i}, ${i})`,backgroundPosition:`-${n}px 0px`,backgroundRepeat:"no-repeat"}}const Kl=({flamebearer:t,sortBy:a,sortByDirection:n,fitMode:i,handleTableItemClick:o,highlightQuery:r,palette:l,selectedItem:s,messages:c,onRowContextMenu:d,onRowDoubleClick:u})=>{const{numTicks:m,maxSelf:b,sampleRate:f,spyName:h,units:g}=t,p=function(e){if(!e)return[];const{names:t,levels:a,format:n}=e,i="double"!==n?ai:ni,o=new Map;for(let r=0;r<a.length;r++){const l=a[r];for(let a=0;a<l.length;a+=i.jStep){const r=t[i.getBarName(l,a)];o.has(r)||o.set(r,{name:r||"<empty>",self:0,total:0});const s=o.get(r);if(!s)break;"single"===n?Ol(ai,s,l,a):Hl(ni,s,l,a,e.leftTicks,e.rightTicks)}}return Array.from(o.values())}(t).sort((e,t)=>t.total-e.total),x="asc"===n?1:-1;let G;if("name"===a)G=p.sort((e,t)=>x*e[a].localeCompare(t[a]));else switch(a){case"total":case"self":G=p.sort((e,t)=>x*(e[a]-t[a]));break;case"baseline":G=p.sort((e,t)=>x*(e.totalLeft/e.leftTicks-t.totalLeft/t.leftTicks));break;case"comparison":G=p.sort((e,t)=>x*(e.totalRght/e.rightTicks-t.totalRght/t.rightTicks));break;case"diff":G=p.sort((e,t)=>{const a=pi(gi(e.totalLeft/e.leftTicks),gi(e.totalRght/e.rightTicks)),n=pi(gi(t.totalLeft/t.leftTicks),gi(t.totalRght/t.rightTicks));return x*(a-n)});break;default:G=p}const Q=xi(m,f,g),I=e=>!!s.isJust&&e===s.value,v=t=>{return e.jsx("button",{className:"table-item-button",children:e.jsx("div",{className:"symbol-name",style:(a=i,a===yi?{direction:"rtl",overflow:"hidden",textOverflow:"ellipsis"}:{overflow:"hidden",textOverflow:"ellipsis"}),children:t.name})});var a},y=G.filter(e=>!r||wi(r,e.name)).map(e=>{if("double"===e.type)return(e=>{const t=gi(e.totalLeft/e.leftTicks),a=gi(e.totalRght/e.rightTicks),n=pi(t,a);let i="";n>0?i=l.badColor.rgb().string():n<0&&(i=l.goodColor.rgb().string());let r="";return e.totalLeft&&n!==1/0?e.totalRght?n>0?r=`+${n.toFixed(2)}%`:n<0&&(r=`${n.toFixed(2)}%`):r=c.diffRemoved:r=c.diffNew,{"data-row":`${e.type};${e.name};${e.totalLeft};${e.leftTicks};${e.totalRght};${e.rightTicks}`,isRowSelected:I(e.name),onClick:()=>o(e),onContextMenu:t=>d(t,e.name),onDoubleClick:()=>u(e.name),cells:[{value:v(e)},{value:`${t} %`},{value:`${a} %`},{value:r,style:{color:i}}]}})(e);const t=Li(h,e.name);return((e,t)=>({"data-row":`${e.type};${e.name};${e.self};${e.total}`,isRowSelected:I(e.name),onClick:()=>o(e),onContextMenu:t=>d(t,e.name),onDoubleClick:()=>u(e.name),cells:[{value:v(e)},{value:Q.format(e.self,f),style:Pl(e.self,b,t)},{value:Q.format(e.total,f),style:Pl(e.total,m,t)}]}))(e,Ni(l,t))});return y.length>0?{bodyRows:y,type:"filled"}:{value:e.jsx("div",{className:"unsupported-format",children:c.noItemsFound}),type:"not-filled"}};function $l({tableBodyRef:a,flamebearer:n,isDoubles:i,fitMode:o,handleTableItemClick:r,highlightQuery:l,selectedItem:s,palette:c,onFocusOnNode:d,updateView:u,enableSandwichView:m=!0}){const b=Br(),[f,h]=ar({transition:!0}),[g,p]=t.useState({x:0,y:0}),[x,G]=t.useState(null),Q=t.useCallback(e=>{if(s.isJust&&s.value===e||r({name:e}),!d)return;const t=Tl(n,e);t&&d(t.i,t.j)},[n,d,s,r]),I=t.useCallback((e,t)=>{e.preventDefault(),p({x:e.clientX,y:e.clientY}),G(t),h(!0)},[h]),v=t.useCallback(()=>{h(!1),G(null)},[h]),y=t.useCallback(()=>{if(!x||!d)return;const e=Tl(n,x);e&&d(e.i,e.j),v()},[x,n,d,v]),B=t.useCallback(()=>{x&&navigator.clipboard&&(navigator.clipboard.writeText(x),v())},[x,v]),F=t.useCallback(()=>{x&&(r({name:x}),v())},[x,r,v]),Z=t.useCallback(()=>{x&&u&&(u("sandwich"),r({name:x}),v())},[x,u,r,v]),L=t.useMemo(()=>i?[{sortable:1,name:"name",label:b.location},{sortable:1,name:"baseline",label:b.baseline,default:!0},{sortable:1,name:"comparison",label:b.comparison},{sortable:1,name:"diff",label:b.diff}]:[{sortable:1,name:"name",label:b.location},{sortable:1,name:"self",label:b.self,default:!0},{sortable:1,name:"total",label:b.total}],[b,i]),N=(e=>{const a=e.filter(e=>null==e?void 0:e.default)[0]||e[0],[n,i]=t.useState(a.name),[o,r]=t.useState("desc");return{sortBy:n,sortByDirection:o,updateSortParams:e=>{let t=o;t=n===e?"asc"===t?"desc":"asc":"desc",i(e),r(t)}}})(L),X={headRow:L,...Kl({flamebearer:n,sortBy:N.sortBy,sortByDirection:N.sortByDirection,fitMode:o,handleTableItemClick:r,highlightQuery:l,palette:c,selectedItem:s,messages:b,onRowContextMenu:I,onRowDoubleClick:Q})},w=s.isJust&&s.value===x;return e.jsxs(e.Fragment,{children:[e.jsx(_l,{...N,tableBodyRef:a,table:X,className:ml("flamegraph-table",{"flamegraph-table-doubles":i})}),e.jsxs(Po,{...f,anchorPoint:g,onClose:v,className:El,children:[d&&e.jsxs(rr,{onClick:y,children:[e.jsx(Hn,{icon:gl.faCrosshairs}),b.focusOnThisFunction]}),e.jsxs(rr,{onClick:B,children:[e.jsx(Hn,{icon:to.faCopy}),b.copyFunctionName]}),e.jsxs(rr,{onClick:F,children:[e.jsx(Hn,{icon:ro.faHighlighter}),w?b.clearHighlight:b.highlightSimilarNodes]}),u&&m&&e.jsxs(rr,{onClick:Z,className:zl,children:[e.jsx(Sr,{fill:"currentColor"}),b.openInSandwichView]})]})]})}const ql=t.memo(function({flamebearer:a,fitMode:n,handleTableItemClick:i,highlightQuery:o,palette:r,selectedItem:l,onFocusOnNode:s,updateView:c,enableSandwichView:d}){const u=t.useRef(null),m="double"===a.format;return e.jsxs("div",{"data-testid":"table-view",className:m?"flamegraph-table-wrapper flamegraph-table-wrapper--double":"flamegraph-table-wrapper",children:[e.jsx("div",{className:"flamegraph-table-scroll",children:e.jsx($l,{tableBodyRef:u,flamebearer:a,isDoubles:m,fitMode:n,highlightQuery:o,handleTableItemClick:i,palette:r,selectedItem:l,onFocusOnNode:s,updateView:c,enableSandwichView:d})}),e.jsx(Jl,{tableBodyRef:u,numTicks:a.numTicks,sampleRate:a.sampleRate,units:a.units,palette:r})]})});var es,ts,as={},ns={};function is(){return es||(es=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="arrow-rotate-left",a=[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],n="f0e2",i="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,a,n,i]},e.faArrowRotateLeft=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(ns)),ns}function os(){return ts||(ts=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=is();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}(as)),as}var rs,ls,ss=os(),cs={},ds={};function us(){return rs||(rs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="diagram-project",a=["project-diagram"],n="f542",i="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,a,n,i]},e.faDiagramProject=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(ds)),ds}function ms(){return ls||(ls=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=us();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}(cs)),cs}var bs,fs,hs=ms(),gs={},ps={};function xs(){return bs||(bs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="ellipsis-vertical",a=["ellipsis-v"],n="f142",i="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,a,n,i]},e.faEllipsisVertical=e.definition,e.prefix="fas",e.iconName=t,e.width=128,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(ps)),ps}function Gs(){return fs||(fs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=xs();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}(gs)),gs}var Qs=Gs();function Is(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=>Is(e)).filter(e=>!!e);return t.length?t.join(" "):void 0}return t.isValidElement(e)?Is(e.props.children):void 0}}const vs=({placement:t,title:a,content:n,children:i})=>{const o=Is(null!=a?a:n);return o?e.jsx("span",{title:o,children:i}):e.jsx(e.Fragment,{children:i})};var ys,Bs={};function Fs(){return ys||(ys=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="link",a=[128279,"chain"],n="f0c1",i="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,a,n,i]},e.faLink=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(Bs)),Bs}var Zs=Fs(),Ls="Input-module_input__ulQdV";b(".Input-module_input__ulQdV,.Input-module_input__ulQdV:focus,.Input-module_input__ulQdV:focus:active{outline:none}.Input-module_input__ulQdV{border:1px solid var(--ps-ui-border);border-radius:4px;display:inline-block;padding:.25em .375em;position:relative}.Input-module_input__ulQdV[type=search]{-webkit-appearance:textfield;outline-offset:-2px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIklucHV0Lm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU1BLG9HQUNFLFlBQ0YsQ0FDQSwyQkFLRSxvQ0FBcUMsQ0FGckMsaUJBQWtCLENBRmxCLG9CQUFxQixDQUdyQixvQkFBdUIsQ0FGdkIsaUJBSUYsQ0FDQSx3Q0FDRSw0QkFBNkIsQ0FDN0IsbUJBQ0YiLCJmaWxlIjoiSW5wdXQubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuaW5wdXQge1xuICBvdXRsaW5lOiBub25lO1xufVxuLmlucHV0OmZvY3VzIHtcbiAgb3V0bGluZTogbm9uZTtcbn1cbi5pbnB1dDpmb2N1czphY3RpdmUge1xuICBvdXRsaW5lOiBub25lO1xufVxuLmlucHV0IHtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgcGFkZGluZzogMC4yNWVtIDAuMzc1ZW07XG4gIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXBzLXVpLWJvcmRlcik7XG59XG4uaW5wdXRbdHlwZT1zZWFyY2hdIHtcbiAgLXdlYmtpdC1hcHBlYXJhbmNlOiB0ZXh0ZmllbGQ7XG4gIG91dGxpbmUtb2Zmc2V0OiAtMnB4O1xufSJdfQ== */");const Ns=t.forwardRef(({testId:t,className:a,type:n,name:i,placeholder:o,minLength:r=0,debounceTimeout:l=100,onChange:s,value:d,htmlId:u},m)=>e.jsx(c.DebounceInput,{inputRef:m,"data-testid":t,className:`${Ls} ${a||""}`,type:n,name:i,placeholder:o,minLength:r,debounceTimeout:l,onChange:s,value:d,id:u}));var Xs="SharedQueryInput-module_wrapper__XRxrd",ws="SharedQueryInput-module_search__XlzRv",Ws="SharedQueryInput-module_search-synced__J4T4b",Cs="SharedQueryInput-module_searchWithSync__ryuQa",Rs="SharedQueryInput-module_icon__Aq0Hv",Us="SharedQueryInput-module_checked__oRvod",Ds="SharedQueryInput-module_sync__0IO2N",ks="SharedQueryInput-module_syncSelected__hstBI";b(".SharedQueryInput-module_wrapper__XRxrd{align-items:center;display:flex;flex-direction:row;width:100%}.SharedQueryInput-module_search-synced__J4T4b,.SharedQueryInput-module_searchWithSync__ryuQa,.SharedQueryInput-module_search__XlzRv{background:var(--ps-immutable-white);border:1px solid var(--ps-ui-border);color:rgba(0,0,0,.85);display:flex;font:inherit;height:37px;margin-right:1.5px;transition:background-color .1s ease-out,border-color .1s ease-out,box-shadow .1s ease-out;width:100%}.SharedQueryInput-module_search-synced__J4T4b::placeholder,.SharedQueryInput-module_searchWithSync__ryuQa::placeholder,.SharedQueryInput-module_search__XlzRv::placeholder{color:rgba(0,0,0,.25)}.SharedQueryInput-module_kylin__Fp93M.SharedQueryInput-module_search-synced__J4T4b,.SharedQueryInput-module_kylin__Fp93M.SharedQueryInput-module_searchWithSync__ryuQa,.SharedQueryInput-module_light__yewPS.SharedQueryInput-module_search-synced__J4T4b,.SharedQueryInput-module_light__yewPS.SharedQueryInput-module_searchWithSync__ryuQa,.SharedQueryInput-module_search__XlzRv.SharedQueryInput-module_kylin__Fp93M,.SharedQueryInput-module_search__XlzRv.SharedQueryInput-module_light__yewPS{background:var(--ps-immutable-white);border-color:var(--ps-ui-border);color:rgba(0,0,0,.65)}@media (prefers-color-scheme:dark){.SharedQueryInput-module_search-synced__J4T4b,.SharedQueryInput-module_searchWithSync__ryuQa,.SharedQueryInput-module_search__XlzRv,.SharedQueryInput-module_search__XlzRv.SharedQueryInput-module_dark__lvctB{background:var(--ps-immutable-dark-background);border-color:var(--ps-ui-border-dark);color:hsla(0,0%,100%,.75)}.SharedQueryInput-module_search-synced__J4T4b::placeholder,.SharedQueryInput-module_searchWithSync__ryuQa::placeholder,.SharedQueryInput-module_search__XlzRv.SharedQueryInput-module_dark__lvctB::placeholder,.SharedQueryInput-module_search__XlzRv::placeholder{color:hsla(0,0%,100%,.5)}}.SharedQueryInput-module_search-synced__J4T4b:focus-visible,.SharedQueryInput-module_searchWithSync__ryuQa:focus-visible,.SharedQueryInput-module_search__XlzRv:focus-visible{background:var(--ps-immutable-white);border-color:#5d976f;box-shadow:0 0 0 3px rgba(93,151,111,.4);outline:none}.SharedQueryInput-module_kylin__Fp93M.SharedQueryInput-module_search-synced__J4T4b:focus,.SharedQueryInput-module_kylin__Fp93M.SharedQueryInput-module_searchWithSync__ryuQa:focus,.SharedQueryInput-module_light__yewPS.SharedQueryInput-module_search-synced__J4T4b:focus,.SharedQueryInput-module_light__yewPS.SharedQueryInput-module_searchWithSync__ryuQa:focus,.SharedQueryInput-module_search__XlzRv.SharedQueryInput-module_kylin__Fp93M:focus,.SharedQueryInput-module_search__XlzRv.SharedQueryInput-module_light__yewPS:focus{background:var(--ps-immutable-white);border-color:#5d976f;box-shadow:0 0 0 2px rgba(93,151,111,.2);outline:none}@media (prefers-color-scheme:dark){.SharedQueryInput-module_dark__lvctB.SharedQueryInput-module_search-synced__J4T4b:focus,.SharedQueryInput-module_dark__lvctB.SharedQueryInput-module_searchWithSync__ryuQa:focus,.SharedQueryInput-module_search__XlzRv.SharedQueryInput-module_dark__lvctB:focus{background:var(--ps-immutable-dark-background);border-color:#303030;box-shadow:0 0 0 2px rgba(48,48,48,.6);outline:none}}.SharedQueryInput-module_searchWithSync__ryuQa{border-bottom-right-radius:0;border-right:1px solid var(--ps-ui-border);border-top-right-radius:0;margin-right:0}.SharedQueryInput-module_search-synced__J4T4b{border-color:var(--ps-immutable-linked-border)}.SharedQueryInput-module_checked__oRvod,.SharedQueryInput-module_icon__Aq0Hv{cursor:pointer}.SharedQueryInput-module_checked__oRvod path,.SharedQueryInput-module_icon__Aq0Hv path{fill:var(--ps-grey-primary)}.SharedQueryInput-module_checked__oRvod path{fill:var(--ps-immutable-linked-border)}.SharedQueryInput-module_syncSelected__hstBI,.SharedQueryInput-module_sync__0IO2N{align-items:center;align-self:stretch;background-color:var(--ps-immutable-off-white);border:none;border:1px solid var(--ps-ui-border);border-bottom-right-radius:4px;border-left:none;border-top-right-radius:4px;cursor:pointer;display:flex;justify-content:center;position:relative;width:40px}.SharedQueryInput-module_syncSelected__hstBI{border-bottom-color:var(--ps-immutable-linked-border);border-right-color:var(--ps-immutable-linked-border);border-top-color:var(--ps-immutable-linked-border)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNoYXJlZFF1ZXJ5SW5wdXQubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsd0NBR0Usa0JBQW1CLENBRm5CLFlBQWEsQ0FDYixrQkFBbUIsQ0FHbkIsVUFDRixDQUVBLG9JQUNFLG9DQUFxQyxDQUlyQyxvQ0FBcUMsQ0FLckMscUJBQTBCLENBSjFCLFlBQWEsQ0FIYixZQUFhLENBSWIsV0FBWSxDQUhaLGtCQUFtQixDQUZuQiwwRkFBZ0csQ0FNaEcsVUFJRixDQUNBLDJLQUNFLHFCQUNGLENBSUEsc2VBQ0Usb0NBQXFDLENBRXJDLGdDQUFpQyxDQURqQyxxQkFFRixDQUlBLG1DQUNFLCtNQUNFLDhDQUErQyxDQUMvQyxxQ0FBc0MsQ0FDdEMseUJBQ0YsQ0FDQSxtUUFDRSx3QkFDRixDQUNGLENBSUEsOEtBQ0Usb0NBQXFDLENBQ3JDLG9CQUErQixDQUMvQix3Q0FB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odC1yYWRpdXM6IDRweDtcbiAgYm9yZGVyOiAxcHggc29saWQgdmFyKC0tcHMtdWktYm9yZGVyKTtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBib3JkZXItbGVmdDogbm9uZTtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24tc2VsZjogc3RyZXRjaDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG59XG5cbi5zeW5jU2VsZWN0ZWQge1xuICBib3JkZXItdG9wLWNvbG9yOiB2YXIoLS1wcy1pbW11dGFibGUtbGlua2VkLWJvcmRlcik7XG4gIGJvcmRlci1yaWdodC1jb2xvcjogdmFyKC0tcHMtaW1tdXRhYmxlLWxpbmtlZC1ib3JkZXIpO1xuICBib3JkZXItYm90dG9tLWNvbG9yOiB2YXIoLS1wcy1pbW11dGFibGUtbGlua2VkLWJvcmRlcik7XG59Il19 */");const Ys=({onHighlightChange:a,highlightQuery:n,sharedQuery:i,width:o})=>{const r=Br(),l=(e=>{const a=t.useRef();return t.useEffect(()=>{a.current=e},[e]),a.current})(null==i?void 0:i.syncEnabled);t.useEffect(()=>{"string"==typeof(null==i?void 0:i.searchQuery)&&(i.syncEnabled&&a(i.searchQuery),!i.syncEnabled&&l&&l!==(null==i?void 0:i.id)&&a(""))},[null==i?void 0:i.searchQuery,null==i?void 0:i.syncEnabled]);const s=t.useMemo(()=>i&&i.syncEnabled?i.searchQuery||"":n,[i,n]),c=t.useMemo(()=>`${i?Cs:ws} ${(null==i?void 0:i.syncEnabled)?Ws:""}`,[i]),d=(null==i?void 0:i.syncEnabled)?r.unsyncSearchBars:r.syncSearchBars;return e.jsxs("div",{className:Xs,style:{width:o},children:[e.jsx(Ns,{testId:"flamegraph-search",className:c,type:"search",name:"flamegraph-search",placeholder:r.searchPlaceholder,minLength:1,debounceTimeout:100,onChange:e=>{a(e.target.value),i&&i.syncEnabled&&i.onQueryChange(e.target.value)},value:s}),i?e.jsx(vs,{placement:"top",title:d,children:e.jsx("button",{className:i.syncEnabled?ks:Ds,onClick:()=>{const e=!(null==i?void 0:i.syncEnabled)&&(null==i?void 0:i.id);null==i||i.toggleSync(e),e?null==i||i.onQueryChange(n):(a(n),null==i||i.onQueryChange(""))},children:e.jsx(Hn,{className:`${i.syncEnabled?Us:Rs}`,icon:Zs.faLink})})}):null]})};var Vs="DiffLegend-module_flamegraph-legend__Cywr1",js="DiffLegend-module_flamegraph-legend-list__swdXj",_s="DiffLegend-module_flamegraph-legend-item__0P-6g";function Ss(t){const{palette:a,showMode:n}=t,i=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}`)}}(n),o=Xi(a);return e.jsx("div",{"data-testid":"flamegraph-legend",className:`${Vs} ${js}`,children:i.map(t=>e.jsxs("div",{className:_s,style:{backgroundColor:o(t).rgb().toString()},children:[t>0?"+":"",t,"%"]},t))})}function Ms(){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"})})})}b(".DiffLegend-module_flamegraph-legend__Cywr1{align-items:center;display:flex;font-size:11px;justify-content:center}.DiffLegend-module_flamegraph-legend-list__swdXj{display:flex;justify-content:center}.DiffLegend-module_flamegraph-legend-item__0P-6g{overflow:hidden;text-align:center;white-space:nowrap;width:37px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRpZmZMZWdlbmQubW9kdWxlLmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw0Q0FFRSxrQkFBbUIsQ0FEbkIsWUFBYSxDQUViLGNBQWUsQ0FDZixzQkFDRixDQUVBLGlEQUNFLFlBQWEsQ0FDYixzQkFDRixDQUVBLGlEQU9FLGVBQWdCLENBTGhCLGlCQUFrQixDQUlsQixrQkFBbUIsQ0FMbkIsVUFPRiIsImZpbGUiOiJEaWZmTGVnZW5kLm1vZHVsZS5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZmxhbWVncmFwaC1sZWdlbmQge1xuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBmb250LXNpemU6IDExcHg7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xufVxuXG4uZmxhbWVncmFwaC1sZWdlbmQtbGlzdCB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xufVxuXG4uZmxhbWVncmFwaC1sZWdlbmQtaXRlbSB7XG4gIHdpZHRoOiAzN3B4O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG5cbiAgLyogaWYgZm9yIHNvbWUgcmVhc29uIHRoZSBjb250ZW50cyBjYW4ndCBmaXQgXG4gICAqIGRvbid0IGJyZWFrIGludG8gMiBsaW5lcyAqL1xuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xuICBvdmVyZmxvdzogaGlkZGVuO1xufVxuIl19 */");var Js="Dropdown-module_dropdownMenu__tbN8r",Es="Dropdown-module_dropdownMenuButton__Xy8M4";function zs({id:t,children:a,className:n,disabled:i,value:o,label:r,onItemClick:l,overflow:s,position:c,direction:d,align:u,viewScroll:m,arrow:b,menuButtonClassName:f="",ariaLabel:h,portal:g,...p}){const x=p.menuButton||e.jsx(Os,{"aria-label":h,className:`${Es} ${f}`,disabled:i,type:"button",children:o||r});return e.jsxs(ir,{id:t,"aria-label":h,className:ml(n,Js),"data-testid":p["data-testid"],onItemClick:l,overflow:s,position:c,direction:d,align:u,viewScroll:m,arrow:b,menuButton:x,portal:g,children:[e.jsx(lr,{children:r}),a]})}b('@charset "UTF-8";.Dropdown-module_dropdownMenu__tbN8r{box-shadow:0 2px 6px var(--ps-dropdown-shadow)!important;padding:.25rem 0}.Dropdown-module_dropdownMenu__tbN8r,.Dropdown-module_dropdownMenu__tbN8r ul[class*=szh-menu]{background-color:var(--ps-dropdown-background)!important;color:var(--ps-neutral-2)!important}.Dropdown-module_dropdownMenu__tbN8r li[class=szh-menu__header]{text-align:left}.Dropdown-module_dropdownMenu__tbN8r div[class*=hover],.Dropdown-module_dropdownMenu__tbN8r li[class*=hover]{background-color:var(--ps-ui-element-bg-highlight)}.Dropdown-module_dropdownMenu__tbN8r [class*=szh-menu--open]:empty{display:none}.Dropdown-module_dropdownMenu__tbN8r [class*="szh-menu__item active"]{background-color:var(--ps-ui-element-bg-highlight);color:var(--ps-selected-app)}.Dropdown-module_dropdownMenu__tbN8r [class*=szh-menu__item--focusable]{background-color:inherit!important;padding-bottom:1rem;padding-top:1rem}.Dropdown-module_dropdownMenu__tbN8r [class*=szh-menu__item--focusable] input{width:100%}.Dropdown-module_dropdownMenuButton__Xy8M4{background-color:var(--ps-ui-element-bg-primary);border:1px solid var(--ps-ui-border);border-radius:4px;display:flex;flex-shrink:0;margin-right:5px;outline:none;padding-right:20px;position:relative}.Dropdown-module_dropdownMenuButton__Xy8M4:after{content:"▾";position:absolute;right:5px;top:3px}.Dropdown-module_dropdownMenuButton__Xy8M4:hover{background-color:var(--ps-ui-element-bg-highlight);cursor:pointer}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRyb3Bkb3duLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZDQSxnQkFLQSxDQWpEQSxxQ0FFRSx3REFBNEQsQ0FENUQsZ0JBSUYsQ0FD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BzLXVpLWJvcmRlcik7XG4gIG1hcmdpbi1yaWdodDogNXB4O1xuICBwYWRkaW5nLXJpZ2h0OiAyMHB4O1xufVxuLmRyb3Bkb3duTWVudUJ1dHRvbjo6YWZ0ZXIge1xuICBjb250ZW50OiBcIuKWvlwiO1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogM3B4O1xuICByaWdodDogNXB4O1xufVxuLmRyb3Bkb3duTWVudUJ1dHRvbjpob3ZlciB7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHMtdWktZWxlbWVudC1iZy1oaWdobGlnaHQpO1xufSJdfQ== */');const As=rr,Os=jo;var Hs="DiffLegendPaletteDropdown-module_container__h8Tts",Ts="DiffLegendPaletteDropdown-module_triggerButton__oezA6",Ps="DiffLegendPaletteDropdown-module_dropdownArrow__-Lu0w",Ks="DiffLegendPaletteDropdown-module_menuItem__5iWry",$s="DiffLegendPaletteDropdown-module_menuItemText__a-tt0";b(".DiffLegendPaletteDropdown-module_container__h8Tts{align-items:center;display:flex}.DiffLegendPaletteDropdown-module_triggerButton__oezA6{align-items:center;background-color:var(--ps-immutable-off-white);border:1px solid var(--ps-ui-border);border-radius:4px;cursor:pointer;display:flex;gap:6px;height:37px;padding:4px 8px}.DiffLegendPaletteDropdown-module_triggerButton__oezA6:hover{background-color:var(--ps-ui-element-bg-highlight)}.DiffLegendPaletteDropdown-module_dropdownArrow__-Lu0w{color:var(--ps-text-secondary);font-size:8px;margin-left:4px}.DiffLegendPaletteDropdown-module_menuItem__5iWry{align-items:center;display:flex;gap:12px;justify-content:space-between;min-width:200px;padding:4px 0}.DiffLegendPaletteDropdown-module_menuItemText__a-tt0{color:var(--ps-text-primary);font-size:13px}.DiffLegendPaletteDropdown-module_row__Dgure{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:2px}.DiffLegendPaletteDropdown-module_row__Dgure p{font-size:13px;margin:0}.DiffLegendPaletteDropdown-module_dropdownWrapper__oQiLG{display:flex}.DiffLegendPaletteDropdown-module_diffPaletteDropdown__-mtm9{background-color:var(--ps-immutable-off-white);border:1px solid var(--ps-ui-border);border-radius:4px;cursor:pointer;padding:4px 8px}.DiffLegendPaletteDropdown-module_diffPaletteDropdown__-mtm9:hover{background-color:var(--ps-ui-element-bg-highlight)}.DiffLegendPaletteDropdown-module_dropdownItem__qp936{align-items:center;display:flex;gap:8px;margin-top:4px}.DiffLegendPaletteDropdown-module_dropdownItem__qp936 svg{flex-shrink:0;height:16px;width:16px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRpZmZMZWdlbmRQYWxldHRlRHJvcGRvd24ubW9kdWxlLmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQSxtREFFRSxrQkFBbUIsQ0FEbkIsWUFFRixDQUdBLHVEQUVFLGtCQUFtQixDQUtuQiw4Q0FBK0MsQ0FGL0Msb0NBQXFDLENBQ3JDLGlCQUFrQixDQUVsQixjQUFlLENBUGYsWUFBYSxDQUViLE9BQVEsQ0FNUixXQUFZLENBTFosZUFNRixDQUVBLDZEQUNFLGtEQUNGLENBRUEsdURBRUUsOEJBQStCLENBRC9CLGFBQWMsQ0FFZCxlQUNGLENBR0Esa0RBRUUsa0JBQW1CLENBRG5CLFlBQWEsQ0FHYixRQUFTLENBRFQsNkJBQThCLENBRTlCLGVBQWdCLENBQ2hCLGFBQ0YsQ0FFQSxzREFDRSw0QkFBNkIsQ0FDN0IsY0FDRixDQUlBLDZDQUNFLFlBQWEsQ0FDYixrQkFBbUIsQ0FDbkIsNkJBQThCLENBQzlCLGtCQUNGLENBRUEsK0NBQ0UsY0FBZSxDQUNmLFFBQ0YsQ0FFQSx5REFDRSxZQUNGLENBRUEsNkRBS0UsOENBQStDLENBSC9DLG9DQUFxQyxDQUNyQyxpQkFBa0IsQ0FGbEIsY0FBZSxDQUdmLGVBRUYsQ0FFQSxtRUFD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Wl0ZW1zOiBjZW50ZXI7XG4gIGdhcDogOHB4O1xuICBtYXJnaW4tdG9wOiA0cHg7XG59XG5cbi5kcm9wZG93bkl0ZW0gc3ZnIHtcbiAgd2lkdGg6IDE2cHg7XG4gIGhlaWdodDogMTZweDtcbiAgZmxleC1zaHJpbms6IDA7XG59XG4iXX0= */");const qs=[fr,hr],ec=t=>{const{palette:a=fr,onChange:n}=t,i=Br(),o=e=>"Default"===e.name?i.paletteDefaultName:"Color Blind"===e.name?i.paletteColorBlindName:e.name,r=e=>"Default"===e.name?i.paletteDefaultDesc:"Color Blind"===e.name?i.paletteColorBlindDesc:"";return e.jsx("div",{className:Hs,children:e.jsx(zs,{label:i.diffLegendSelectPalette,align:"end",menuButton:e.jsxs(Os,{className:ml(Es,Ts),children:[e.jsx(Ss,{palette:a,showMode:"small"}),e.jsx("span",{className:Ps})]}),onItemClick:e=>{e.value&&n(e.value)},children:qs.map(t=>e.jsx(As,{value:t,children:e.jsxs("div",{className:Ks,children:[e.jsxs("span",{className:$s,children:[o(t)," ",r(t)]}),t.name===a.name&&e.jsx(Ms,{})]})},t.name))})})};var tc={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"};b(".Toolbar-module_navbar__XN6xZ{align-items:center;background-color:var(--ps-fl-toolbar-bg);border:1px solid var(--ps-ui-border);display:flex;flex-direction:row;height:47px;justify-content:space-between;margin:10px 0;padding:4px;position:relative}.Toolbar-module_searchWrapper__k--ua{flex-shrink:0;width:360px}.Toolbar-module_rightSection__if7LO{align-items:center;display:flex;gap:4px}.Toolbar-module_viewType__AKARg{display:flex;flex-direction:row;flex-wrap:nowrap}.Toolbar-module_navbar__XN6xZ button{color:var(--ps-toolbar-icon-color)}.Toolbar-module_fitModeButton__jOxve,.Toolbar-module_toggleViewButton__OQ9-U{align-items:center;background-color:transparent;border-color:transparent;display:flex;height:37px;justify-content:center;margin:0 2px;min-width:auto;padding:0;width:40px}.Toolbar-module_fitModeButton__jOxve svg,.Toolbar-module_toggleViewButton__OQ9-U svg{height:22px;width:22px}.Toolbar-module_selected__vwBQt.Toolbar-module_fitModeButton__jOxve,.Toolbar-module_selected__vwBQt.Toolbar-module_fitModeButton__jOxve:hover,.Toolbar-module_toggleViewButton__OQ9-U.Toolbar-module_selected__vwBQt,.Toolbar-module_toggleViewButton__OQ9-U.Toolbar-module_selected__vwBQt:hover{background-color:var(--ps-fl-toolbar-btn-bg)}.Toolbar-module_selected__vwBQt.Toolbar-module_fitModeButton__jOxve svg,.Toolbar-module_toggleViewButton__OQ9-U.Toolbar-module_selected__vwBQt svg{color:#fff}.Toolbar-module_collapseNodeButton__bLdiw,.Toolbar-module_resetViewButton__y2ebV{background-color:transparent;border-color:transparent;height:37px;margin:0 2px;min-width:auto;padding:0;width:40px}.Toolbar-module_resetViewButton__y2ebV{margin:0 2px;min-width:auto;padding:0;width:40px}.Toolbar-module_divider__dG6pE{background-color:var(--ps-ui-border);height:37px;margin:0 2px;width:1px}.Toolbar-module_item__o-hKc,.Toolbar-module_itemsContainer__gSTMF{display:flex}.Toolbar-module_moreButton__rhOdT{border:none;border-radius:4px;height:37px;padding:0 5px}.Toolbar-module_moreButton__rhOdT.Toolbar-module_active__36Kt-,.Toolbar-module_moreButton__rhOdT.Toolbar-module_active__36Kt-:hover{background-color:var(--ps-fl-toolbar-btn-bg)}.Toolbar-module_moreButton__rhOdT:hover{background-color:var(--ps-ui-element-bg-highlight);cursor:pointer}.Toolbar-module_navbarCollapsedItems__vojhw{background-color:var(--ps-fl-toolbar-bg);border:1px solid var(--ps-ui-border);display:flex;height:47px;padding:4px;position:absolute;right:0;top:50px;z-index:1}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2xiYXIubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsOEJBVUUsa0JBQW1CLENBSG5CLHdDQUF5QyxDQUN6QyxvQ0FBcUMsQ0FOckMsWUFBYSxDQUNiLGtCQUFtQixDQUduQixXQUFZLENBRFosNkJBQThCLENBRDlCLGFBQWMsQ0FLZCxXQUFZLENBUlosaUJBVUYsQ0FFQSxxQ0FFRSxhQUFjLENBRGQsV0FFRixDQUVBLG9DQUVFLGtCQUFtQixDQURuQixZQUFhLENBRWIsT0FDRixDQUVBLGdDQUNFLFlBQWEsQ0FDYixrQkFBbUIsQ0FDbkIsZ0JBQ0YsQ0FFQSxxQ0FDRSxrQ0FDRixDQUVBLDZFQVVFLGtCQUFtQixDQUhuQiw0QkFBNkIsQ0FEN0Isd0JBQXlCLENBRXpCLFlBQWEsQ0FQYixXQUFZLENBUVosc0JBQXVCLENBTHZCLFlBQWEsQ0FGYixjQUFlLENBR2YsU0FBVSxDQUZWLFVBUUYsQ0FDQSxxRkFFRSxXQUFZLENBRFosVUFFRixDQUlBLGtTQUNFLDRDQUNGLENBQ0EsbUpBQ0UsVUFDRixDQUVBLGlGQU1FLDRCQUE2QixDQUM3Qix3QkFBeUIsQ0FKekIsV0FBWSxDQUNaLFlBQWEsQ0FIYixjQUFrQixDQUlsQixTQUFVLENBSFYsVUFNRixDQUVBLHVDQUdFLFlBQWEsQ0FEYixjQUFrQixDQUVsQixTQUFVLENBSFYsVUFJRixDQUVBLCtCQUlFLG9DQUFxQyxDQURy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wcy1mbC10b29sYmFyLWJnKTtcbiAgYm9yZGVyOiAxcHggc29saWQgdmFyKC0tcHMtdWktYm9yZGVyKTtcbiAgcGFkZGluZzogNHB4O1xuICB6LWluZGV4OiAxO1xufSJdfQ== */");const ac=G.bind(tc),nc=(e,t,a)=>{const n=0===t?e-360-5:e-360-16-5;let i=0,o=0;return a.reverse().forEach(e=>{o+=e,n<=o&&(i+=1)}),i},ic=()=>e.jsx("div",{className:tc.divider}),oc=t.memo(({view:a,handleSearchChange:n,highlightQuery:i,isFlamegraphDirty:o,reset:l,updateFitMode:s,fitMode:c,updateView:d,selectedNode:u,onFocusOnSubtree:m,flamegraphType:b,enableChangingDisplay:f=!0,sharedQuery:h,ExportData:g,palette:p,setPalette:x})=>{const G=t.useRef(null),Q=Br(),I="double"===b&&p&&x,v=[{el:e.jsxs(e.Fragment,{children:[e.jsx(sc,{fitMode:c,updateFitMode:s}),e.jsx(ic,{})]}),width:93},{el:e.jsx(lc,{isFlamegraphDirty:o,reset:l}),width:44},{el:e.jsxs(e.Fragment,{children:[e.jsx(rc,{selectedNode:u,onFocusOnSubtree:m}),e.jsx(ic,{})]}),width:49},f?{el:e.jsx(dc,{flamegraphType:b,view:a,updateView:d}),width:44*("single"===b?5:3)}:null,t.isValidElement(g)?{el:e.jsxs(e.Fragment,{children:[e.jsx(ic,{}),g]}),width:49}:null].filter(e=>null!==e),y=v.reduce((e,t)=>[...e,t.width],[]),{isCollapsed:B,collapsedItemsNumber:F,handleMoreClick:Z}=((e,a)=>{const[n,i]=t.useState(!0),[o,l]=t.useState(0);return t.useLayoutEffect(()=>{if(e.current){const{width:t}=e.current.getBoundingClientRect(),n=nc(t,o,a);l(n)}},[e.current,a]),r(e,e=>{const{width:t}=e.target.getBoundingClientRect(),n=nc(t,o,a);l(n),i(!0)}),{isCollapsed:n,handleMoreClick:()=>{i(e=>!e)},collapsedItemsNumber:o}})(G,y),L=v.reduce((e,t,a)=>(a<F?e.hidden.push(t):e.visible.push(t),e),{visible:[],hidden:[]});return e.jsx("div",{role:"toolbar",ref:G,children:e.jsxs("div",{className:tc.navbar,children:[e.jsx("div",{className:tc.searchWrapper,children:e.jsx(Ys,{width:360,onHighlightChange:n,highlightQuery:i,sharedQuery:h})}),e.jsxs("div",{className:tc.rightSection,children:[I&&e.jsxs(e.Fragment,{children:[e.jsx(ec,{palette:p,onChange:x}),e.jsx(ic,{})]}),e.jsxs("div",{className:tc.itemsContainer,children:[L.visible.map((t,a)=>e.jsx("div",{className:tc.item,style:{width:t.width},children:t.el},a)),0!==F&&e.jsx(vs,{placement:"top",title:Q.more,children:e.jsx("button",{onClick:Z,className:ac({[tc.moreButton]:!0,[tc.active]:!B}),children:e.jsx(Hn,{icon:Qs.faEllipsisV})})})]})]}),!B&&e.jsx("div",{className:tc.navbarCollapsedItems,children:L.hidden.map((t,a)=>e.jsx("div",{className:tc.item,style:{width:t.width},children:t.el},a))})]})})});function rc({onFocusOnSubtree:t,selectedNode:a}){const n=Br(),i=a.mapOr(()=>{},e=>()=>t(e.i,e.j));return e.jsx(vs,{placement:"top",title:n.collapseNodesAbove,children:e.jsx("div",{children:e.jsx(Yl,{disabled:!a.isJust,onClick:i,className:tc.collapseNodeButton,"aria-label":n.collapseNodesAbove,children:e.jsx(Hn,{icon:mo.faCompressAlt})})})})}function lc({isFlamegraphDirty:t,reset:a}){const n=Br();return e.jsx(vs,{placement:"top",title:n.resetView,children:e.jsx("span",{children:e.jsx(Yl,{id:"reset",disabled:!t,onClick:a,className:tc.resetViewButton,"aria-label":n.resetView,children:e.jsx(Hn,{icon:ss.faUndo})})})})}function sc({fitMode:t,updateFitMode:a}){const n=Br(),i=e=>t===e;return e.jsxs(e.Fragment,{children:[e.jsx(vs,{placement:"top",title:n.headFirst,children:e.jsx(Yl,{onClick:()=>a("HEAD"),className:ac({[tc.fitModeButton]:!0,[tc.selected]:i("HEAD")}),children:e.jsx(Mr,{})})}),e.jsx(vs,{placement:"top",title:n.tailFirst,children:e.jsx(Yl,{onClick:()=>a("TAIL"),className:ac({[tc.fitModeButton]:!0,[tc.selected]:i("TAIL")}),children:e.jsx(Jr,{})})})]})}const cc=(t,a)=>"single"===t?[{label:a.viewTable,value:"table",Icon:Vr},{label:a.viewTableAndFlamegraph,value:"both",Icon:jr},{label:a.viewFlamegraph,value:"flamegraph",Icon:_r},{label:a.viewSandwich,value:"sandwich",Icon:Sr},{label:a.viewGraphviz,value:"graphviz",Icon:()=>e.jsx(Hn,{icon:hs.faProjectDiagram})}]:[{label:a.viewTable,value:"table",Icon:Vr},{label:a.viewTableAndFlamegraph,value:"both",Icon:jr},{label:a.viewFlamegraph,value:"flamegraph",Icon:_r}];function dc({view:t,updateView:a,flamegraphType:n}){const i=Br(),o=cc(n,i);return e.jsx("div",{className:tc.viewType,children:o.map(({label:n,value:i,Icon:o})=>e.jsx(vs,{placement:"top",title:n,children:e.jsx(Yl,{"data-testid":i,onClick:()=>a(i),className:ac({[tc.toggleViewButton]:!0,selected:t===i}),children:e.jsx(o,{})})},i))})}function uc(e,t){const a={},n={};let i={name:"total",children:[],self:[],total:[],key:"/total"};return(t?[e,t]:[e]).forEach((e,t)=>{var o,r;for(let l=0;l<e.levels.length;l+=1)for(let s=0;s<e.levels[l].length;s+=4){const c=[t,l,s].join("/"),d=e.names[e.levels[l][s+3]],u=e.levels[l][s+0],m=e.levels[l][s+1],b=e.levels[l][s+2];let f="";if(0!==l){const a=l-1,i=e.levels[a];for(let e=0;e<i.length;e+=4){const o=i[e+0],r=i[e+1];if(u>=o&&u<o+r){const i=[t,a,e].join("/");f=n[i].key;break}}}const h=[f||"",d].join("/"),g=!a[h];a[h]||(a[h]={name:d,children:[],self:[],total:[],key:h});const p=a[h];(o=p.total)[t]||(o[t]=0),p.total[t]+=m,(r=p.self)[t]||(r[t]=0),p.self[t]+=b,n[c]=p,f&&g&&a[f].children.push(p),0===l&&(i=p)}}),i}const mc=e=>{const t={maxSelf:100,names:[],levels:[]},a=(e,n,i)=>{var o;const{name:r,children:l,self:s,total:c,offset:d}=e;t.names.push(r),(o=t.levels)[n]||(o[n]=[]),t.maxSelf=Math.max(t.maxSelf,s[0]||0),t.levels[n]=t.levels[n].concat([i,c[0]||0,s[0]||0,t.names.length-1]);for(let e=0;e<l.length;e+=1){i+=a(l[e],n+1,i)}return d||c[0]||0};return a(e,0,0),t};function bc(e){const t=new Map;for(let a=0;a<e.children.length;a+=1)t.has(e.children[a].name)||t.set(e.children[a].name,e.children[a]);for(let a=0;a<e.children.length;a+=1){const n=e.children[a],i=t.get(e.children[a].name);i&&i!==n&&(i.total[0]+=n.total[0],i.self[0]+=n.self[0],i.children=i.children.concat(n.children))}e.children=Array.from(t.values());for(let t=0;t<e.children.length;t+=1)bc(e.children[t])}function fc(e,t){const a=function(e,t){const a=uc(e),n={format:"single",numTicks:0,maxSelf:100,sampleRate:100,names:[],levels:[],units:e.units,spyName:e.spyName},i={name:t,total:[],self:[0],children:[]},o=e=>{e.name===t&&(n.numTicks+=e.total[0],i.total=[n.numTicks],i.children=i.children.concat(e.children));for(let t=0;t<e.children.length;t+=1)o(e.children[t])};return o(a),bc(i),{...n,...mc(i)}}(JSON.parse(JSON.stringify(e)),t);return a}function hc(e,t){const a=function(e,t){const a=uc(e),n={format:"single",maxSelf:100,sampleRate:100,numTicks:0,names:[],levels:[],units:e.units,spyName:e.spyName},i=[],o=[],r={name:t,total:[0],self:[0],children:[]},l=(e,a=[])=>{const r=a.concat([{...e,children:[]}]);e.name===t&&(o.push(r),i.push(e.total[0]),n.numTicks+=e.total[0]);for(let t=0;t<e.children.length;t+=1)l(e.children[t],r)};l(a),o.forEach((e,t)=>{r.children.push(((e,t)=>{const a={};let n=a;return e.forEach(({name:e,...a})=>{const i={name:e,...a,total:[t]};n.children=[i],n=i}),a.children[0]})(e.reverse(),i[t]))}),bc(r);const s=mc(r);return s.levels=s.levels.reverse().slice(0,-1),{...n,...s}}(JSON.parse(JSON.stringify(e)),t);return a}var gc={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"};b(".FlamegraphRenderer-module_flamegraphContainer__-7FRV{width:100%}.FlamegraphRenderer-module_flamegraphContainer__-7FRV>:first-child{margin-right:8px}.FlamegraphRenderer-module_flamegraphContainer__-7FRV>:nth-child(2){margin-left:8px}.FlamegraphRenderer-module_createdBy__rHAOT{color:#fff;margin:10px 0;text-align:center}.FlamegraphRenderer-module_createdBy__rHAOT a{color:#199bef!important}.FlamegraphRenderer-module_horizontal__zs7--{flex-direction:row}.FlamegraphRenderer-module_vertical__fRcHg{flex-direction:column-reverse}.FlamegraphRenderer-module_panesWrapper__L-mlA{display:flex}.FlamegraphRenderer-module_sandwichPane__IEOyR,.FlamegraphRenderer-module_tablePane__Gin7Y{flex:1}.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichPaneInfo__5hT4a{background-color:var(--ps-sandwich-pane-info-bg);border-radius:5px;color:var(--ps-neutral-1);display:inline-block;margin:30px 0 0 10px;padding:8px;position:relative}.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichPaneInfo__5hT4a.FlamegraphRenderer-module_vertical__fRcHg{margin:30px 0}.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichPaneInfo__5hT4a.FlamegraphRenderer-module_vertical__fRcHg .FlamegraphRenderer-module_arrow__dPzpE{bottom:-15px;left:20px;top:auto;transform:rotate(-90deg)}.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichPaneInfo__5hT4a .FlamegraphRenderer-module_arrow__dPzpE{border-color:transparent var(--ps-sandwich-pane-info-bg) transparent transparent;border-style:solid;border-width:8px 20px 8px 0;height:0;left:-20px;position:absolute;top:14px;width:0}.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichTop__7N0ZY{margin-bottom:10px}.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichBottom__Dc64g,.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichTop__7N0ZY{display:flex}.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichBottom__Dc64g .FlamegraphRenderer-module_name__XRbN9,.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichTop__7N0ZY .FlamegraphRenderer-module_name__XRbN9{padding:5px 0;transform:rotate(-180deg);writing-mode:vertical-rl}.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichBottom__Dc64g span{text-align:right}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZsYW1lZ3JhcGhSZW5kZXJlci5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxzREFDRSxVQUNGLENBR0EsbUVBQ0UsZ0JBQ0YsQ0FFQSxvRUFDRSxlQUVGLENBRUEsNENBQ0UsVUFBWSxDQUVaLGFBQWMsQ0FEZCxpQkFFRixDQUVBLDhDQUNFLHVCQUNGLENBRUEsNkNBQ0Usa0JBQ0YsQ0FFQSwyQ0FFRSw2QkFDRixDQUVBLCtDQUNFLFlBQ0YsQ0FFQSwyRkFFRSxNQUNGLENBRUEsa0dBTUUsZ0RBQWlELENBRGpELGl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vcmRlci13aWR0aDogOHB4IDIwcHggOHB4IDA7XG4gIGJvcmRlci1jb2xvcjogdHJhbnNwYXJlbnQgdmFyKC0tcHMtc2FuZHdpY2gtcGFuZS1pbmZvLWJnKSB0cmFuc3BhcmVudCB0cmFuc3BhcmVudDtcbn1cbi5zYW5kd2ljaFBhbmUgLnNhbmR3aWNoVG9wIHtcbiAgbWFyZ2luLWJvdHRvbTogMTBweDtcbn1cbi5zYW5kd2ljaFBhbmUgLnNhbmR3aWNoVG9wLFxuLnNhbmR3aWNoUGFuZSAuc2FuZHdpY2hCb3R0b20ge1xuICBkaXNwbGF5OiBmbGV4O1xufVxuLnNhbmR3aWNoUGFuZSAuc2FuZHdpY2hUb3AgLm5hbWUsXG4uc2FuZHdpY2hQYW5lIC5zYW5kd2ljaEJvdHRvbSAubmFtZSB7XG4gIHdyaXRpbmctbW9kZTogdmVydGljYWwtcmw7XG4gIHRyYW5zZm9ybTogcm90YXRlKC0xODBkZWcpO1xuICBwYWRkaW5nOiA1cHggMDtcbn1cbi5zYW5kd2ljaFBhbmUgLnNhbmR3aWNoQm90dG9tIHNwYW4ge1xuICB0ZXh0LWFsaWduOiByaWdodDtcbn0iXX0= */");function pc(e){const t=[];return Object.keys(e).forEach(a=>{var n;t.push(`${a}="${n=String(e[a]||""),n.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`)}),`[${t.join(" ")}]`}function xc(e,t){return`${(100*e/t).toFixed(2)}%`}function Gc(e,t){let a,n,i,o;t?(a=.1,n=.93):(a=1,n=.7),e=Math.max(-1,Math.min(1,e)),Math.abs(e)<.2&&(a*=Math.abs(e)/.2),e>0&&(e**=1-.7),e<0&&(e=-((-e)**(1-.7))),e<0?(o=n,i=n*(1+a*e)):(i=n,o=n*(1-a*e));const r=n*(1-a);return`#${Math.floor(255*i).toString(16).padStart(2,"0")}${Math.floor(255*o).toString(16).padStart(2,"0")}${Math.floor(255*r).toString(16).padStart(2,"0")}`}function Qc(e,t,a,n){const{self:i}=t,{total:o}=t,r=t.name.replace(/"/g,'\\"'),l=e(i),s=8+Math.ceil(16*Math.sqrt(i/a)),c=Gc(o/n,!1),d=Gc(o/n,!0),u=function(e,t,a,n,i){let o="";o=`${function(e){return e.replace(/.*\//,"")}(t)}\n`;const r=e(a);0!==a?o=`${o+r} (${xc(a,i)})`:o+="0";let l=r;n!==a&&(o+=0!==a?"\n":" ",l=e(n),o=`${o}of ${l} (${xc(n,i)})`);return o}(e,r,i,o,n),m={label:u,id:`node${t.index}`,fontsize:s,shape:"box",tooltip:`${r} (${l})`,color:c,fontcolor:"#000000",style:"filled",fontname:"",fillcolor:d};return`N${t.index} ${pc(m)}`}function Ic(e){if("double"===e.metadata.format)return"diff flamegraphs are not supported";const t=uc(e.flamebearer),a=[],n=[];const[i,o,,r]=function e(t,a,n,i,o){return t.children.forEach(t=>{const[r,l]=e(t,a,n,i,o);a=Math.max(a,r),n=Math.max(n,l)}),a=Math.max(a,t.self[0]),n=Math.max(n,t.total[0]),i+=t.self[0],o+=t.total[0],[a,n,i,o]}(t,0,0,0,0),{sampleRate:l,units:s}=e.metadata,c=xi(o,l,s),d=e=>c.format(e,l,!0);let u={};const m={};let b=0;function f(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]):(b+=1,u[e.name]={index:b,name:e.name,self:e.self[0],total:e.total[0],parents:[],children:[]})),e.children.forEach(a=>{const n=f(a,t.concat([e.name])),i=`${e.name}/${a.name}`;a.name!==e.name&&(m[i]?m[i].weight+=a.total[0]:m[i]={from:u[e.name],to:n,weight:a.total[0],residual:!1},n.parents.push(m[i]),u[e.name].children.push(m[i]))}),u[e.name]}t.children.forEach(e=>{f(e,[])});const h=.005*r,g=.001*r;function p(e,t){let a=0,n=t;if(e.forEach(e=>{e.weight>0&&(n+=Math.abs(e.weight))}),0!==n&&(e.forEach(e=>{const t=Math.abs(e.weight)/n;a+=-t*Math.log2(t)}),t>0)){const e=Math.abs(t)/n;a+=-e*Math.log2(e)}return a}Object.keys(u).forEach(e=>{u[e].total<h&&delete u[e]});const x={};Object.keys(u).forEach(e=>{x[u[e].name]=function(e){let t=0;return 0===e.parents.length?t+=1:t+=p(e.parents,0),0===e.children.length?t+=1:t+=p(e.children,e.self),t*e.total+e.self}(u[e])});const G=Object.values(u).sort((e,t)=>{const a=x[e.name],n=x[t.name];return a!==n?n-a:e.name!==t.name?e.name<t.name?-1:1:e.self!==t.self?n-a:e.name<t.name?-1:1}),Q={};function I(e){const[t,a]=[e.from,e.to],n={},i=[a];for(;i.length>0;){const a=i.shift();for(let o=0;o<a.parents.length;o+=1){const r=a.parents[o];if(e!==r&&!n[r.from.name]){if(r.from===t)return!0;n[r.from.name]=!0,i.push(r.from)}}}return!1}return G.forEach(e=>{Q[e.name]=e}),G.slice(80).forEach(e=>{delete Q[e.name]}),function e(t,a){const n=!Q[t.name];t.children.forEach(i=>{const o=!Q[i.name];if(e(i,n?a:t),!o&&a&&n){const e=`${a.name}/${i.name}`;m[e]||(m[e]={from:u[a.name],to:u[i.name],weight:0,residual:!0}),m[e].weight+=i.total[0],m[e].residual=!0}})}(t,null),u=Q,G.reverse().forEach(e=>{const t=e.parents.sort((e,t)=>t.weight-e.weight),a=[];for(let e=0;e<t.length;e+=1){const n=t[e];if(!n.residual)break;I(n)&&(a.push(n),delete m[`${n.from.name}/${n.to.name}`])}a.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(m).forEach(e=>{const t=m[e];u[t.from.name]||delete m[e],u[t.to.name]||delete m[e],t.weight<g&&delete m[e]}),Object.keys(u).forEach(e=>{a.push(Qc(d,u[e],i,o))}),Object.keys(m).forEach(e=>{n.push(function(e,t,a){const n=t.from.name.replace(/"/g,'\\"'),i=t.to.name.replace(/"/g,'\\"'),o=t.weight,r=e(t.weight),l=`${n} -> ${i} (${r})`,s={label:r,weight:1+100*o/a,penwidth:1+5*o/a,tooltip:l,labeltooltip:l,fontname:"",color:Gc(o/a,!1),style:t.residual?"dotted":""};return`N${t.from.index} -> N${t.to.index} ${pc(s)}`}(d,m[e],o))}),`digraph "unnamed" {\n fontname= ""\n ${a.join("\n")}\n ${n.join("\n")}\n }`}var vc="GraphVizPanel-module_graphVizPane__B18cQ";b(".GraphVizPanel-module_graphVizPane__B18cQ{display:flex;flex:1}.GraphVizPanel-module_graphVizPane__B18cQ.GraphVizPanel-module_graphVizPane__B18cQ{border:1px solid var(--ps-ui-border);margin-right:0}.GraphVizPanel-module_graphVizPane__B18cQ div[id^=graphviz]{overflow:hidden;width:100%}.GraphVizPanel-module_graphVizPane__B18cQ div[id^=graphviz] .graph>polygon{fill:none}.GraphVizPanel-module_graphVizPane__B18cQ div[id^=graphviz] .edge text[text-anchor=middle]{fill:var(--ps-toolbar-icon-color)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkdyYXBoVml6UGFuZWwubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsMENBQ0UsWUFBYSxDQUNiLE1BQ0YsQ0FDQSxtRkFFRSxvQ0FBcUMsQ0FEckMsY0FFRixDQUNBLDREQUVFLGVBQWdCLENBRGhCLFVBRUYsQ0FDQSwyRUFDRSxTQUNGLENBQ0EsMkZBQ0UsaUNBQ0YiLCJmaWxlIjoiR3JhcGhWaXpQYW5lbC5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5ncmFwaFZpelBhbmUge1xuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4OiAxO1xufVxuLmdyYXBoVml6UGFuZS5ncmFwaFZpelBhbmUge1xuICBtYXJnaW4tcmlnaHQ6IDA7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXBzLXVpLWJvcmRlcik7XG59XG4uZ3JhcGhWaXpQYW5lIGRpdltpZF49Z3JhcGh2aXpdIHtcbiAgd2lkdGg6IDEwMCU7XG4gIG92ZXJmbG93OiBoaWRkZW47XG59XG4uZ3JhcGhWaXpQYW5lIGRpdltpZF49Z3JhcGh2aXpdIDpnbG9iYWwgLmdyYXBoID4gcG9seWdvbiB7XG4gIGZpbGw6IG5vbmU7XG59XG4uZ3JhcGhWaXpQYW5lIGRpdltpZF49Z3JhcGh2aXpdIDpnbG9iYWwgLmVkZ2UgdGV4dFt0ZXh0LWFuY2hvcj1taWRkbGVdIHtcbiAgZmlsbDogdmFyKC0tcHMtdG9vbGJhci1pY29uLWNvbG9yKTtcbn0iXX0= */");const yc=()=>null;function Bc({flamebearer:a}){var n,i;const o=a,r=(null===(n=o.metadata)||void 0===n?void 0:n.format)&&(null===(i=o.flamebearer)||void 0===i?void 0:i.levels),l=`graphviz-pane-${(null==o?void 0:o.appName)||String((new Date).valueOf())}`,s=t.useMemo(()=>Ic(o),[JSON.stringify(o)]);return e.jsx("div",{className:vc,children:r?e.jsx(yc,{options:{zoom:!0,width:"150%",height:"100%",scale:1,useWorker:!1},dot:s}):e.jsx("div",{children:"NO DATA"})},l)}function Fc(e,t){const a=[...t];function n(e,t,a){for(const n of e){let e=0;for(let i=t;i<n.length;i+=a)n[i]-=e,e+=n[i]+n[i+1]}}return"double"===e?(n(a,0,7),n(a,3,7)):n(a,0,4),a}function Zc(e,t){const a=[...t];function n(e,t,a){for(const n of e){let e=0;for(let i=t;i<n.length;i+=a)n[i]+=e,e=n[i]+n[i+1]}}return"double"===e?(n(a,0,7),n(a,3,7)):n(a,0,4),a}function Lc(e){if(e.profile&&e.flamebearer&&console.warn("'profile' and 'flamebearer' properties are mutually exclusive. Please use profile if possible."),e.profile){const a={...e.profile,flamebearer:{...e.profile.flamebearer}};a.flamebearer.levels=JSON.parse(JSON.stringify(a.flamebearer.levels)),(t=a).flamebearer.levels=Zc(t.metadata.format,t.flamebearer.levels);const n={...a,...a.metadata,...a.flamebearer,flamebearer:void 0,metadata:void 0};return delete n.flamebearer,delete n.metadata,n}var t;if(e.flamebearer)return e.flamebearer;return{format:"single",names:[],units:"unknown",levels:[[]],spyName:"unknown",numTicks:0,sampleRate:0,maxSelf:0}}class Nc extends t.Component{constructor(t){super(t),this.resetFlamegraphState={focusedNode:a.Maybe.nothing(),zoom:a.Maybe.nothing()},this.initialFlamegraphState=this.resetFlamegraphState,this.calcNewConfigs=(e,t)=>{const a=this.state.flamegraphConfigs,n=(e,t,a)=>{const n=(e,t,a)=>e.names[ii(e.format).getBarName(e.levels[t],a)];if(a.isNothing)return!0;try{const i=a,o=n(e,i.value.i,i.value.j);return o===n(t,i.value.i,i.value.j)}catch{return!1}};n(e,t,this.state.flamegraphConfigs.zoom)||(a.zoom=this.resetFlamegraphState.zoom);return n(e,t,this.state.flamegraphConfigs.focusedNode)||(a.focusedNode=this.resetFlamegraphState.focusedNode),a},this.onSearchChange=e=>{this.setState({searchQuery:e})},this.isSameFlamebearer=(e,t)=>function(e,t){var a;return e.format===t.format&&e.numTicks===t.numTicks&&e.sampleRate===t.sampleRate&&e.units===t.units&&(null===(a=e.names)||void 0===a?void 0:a.length)===(null==t?void 0:t.names.length)&&e.levels.length===t.levels.length&&!!e.names.every((e,a)=>e===t.names[a])&&!!function(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){if(e[a].length!==t[a].length)return!1;for(let n=0;n<e[a].length;n++)if(e[a][n]!==t[a][n])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:a.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 n={...this.state.flamegraphConfigs};const{zoom:i}=this.state.flamegraphConfigs;i.isJust&&i.value.i<=e&&(n={...n,zoom:this.initialFlamegraphState.zoom}),this.setState({...this.state,flamegraphConfigs:{...n,focusedNode:a.Maybe.just({i:e,j:t})}})},this.isNameInFocusedSubtree=e=>{const{focusedNode:t}=this.state.flamegraphConfigs;if(t.isNothing)return!0;const{flamebearer:a}=this.state;if(!a||!a.levels)return!0;const{names:n,levels:i,format:o}=a,r=ii(o),l=t.value.i,s=t.value.j,c=i[l];if(!c)return!0;const d=r.getBarOffset(c,s),u=d+r.getBarTotal(c,s);for(let t=l;t<i.length;t++){const a=i[t];for(let t=0;t<a.length;t+=r.jStep){const i=r.getBarOffset(a,t),o=r.getBarTotal(a,t);if(i>=d&&i+o<=u){if(n[r.getBarName(a,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:a.Maybe.nothing()});this.isNameInFocusedSubtree(t)?this.setState({selectedItem:a.Maybe.just(t)}):this.setState({selectedItem:a.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.clearFocus=()=>{this.setState(e=>({...e,flamegraphConfigs:{...e.flamegraphConfigs,...this.resetFlamegraphState}}))},this.getActiveRange=()=>{const{flamebearer:e}=this.state,{zoom:t,focusedNode:a}=this.state.flamegraphConfigs,n=e.numTicks;if(!n)return{rangeMin:0,rangeMax:1};const i=ii(e.format),o=t=>{const a=e.levels[t.i];if(!a)return{rangeMin:0,rangeMax:1};const o=i.getBarOffset(a,t.j),r=i.getBarTotal(a,t.j);return{rangeMin:o/n,rangeMax:(o+r)/n}};return t.match({Just:e=>a.match({Just:t=>{const a=o(t),n=o(e);return a.rangeMax-a.rangeMin<n.rangeMax-n.rangeMin?a:n},Nothing:()=>o(e)}),Nothing:()=>a.match({Just:e=>o(e),Nothing:()=>({rangeMin:0,rangeMax:1})})})},this.isDirty=()=>this.state.selectedItem.isJust||JSON.stringify(this.initialFlamegraphState)!==JSON.stringify(this.state.flamegraphConfigs),this.handleSetPalette=e=>{this.setState({palette:e})},this.render=()=>{var t;const a=e.jsx("div",{className:Si(gc.tablePane,"vertical"===this.state.panesOrientation?gc.vertical:gc.horizontal),children:e.jsx(ql,{"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(),i=!this.state.flamebearer||this.state.flamebearer.names.length<=1,o=this.context,r="Location"!==o.location,l=this.state.flamebearer.numTicks,s=xi(l,this.state.flamebearer.sampleRate,this.state.flamebearer.units).format(l,this.state.flamebearer.sampleRate),c=fi(s,r)||s,u=function(e,t=hi){const a=Math.abs(e);for(const{value:n,label:i}of t)if(a>=n)return`${(e/n).toFixed(2).replace(/\.?0+$/,"")} ${i}`;return mi(e)}(l,o.sampleCountFormat),m=o.tooltipSamples.replace(/[::]\s*$/,""),b=(null===(t=o.tooltipUnitTitles[this.state.flamebearer.units])||void 0===t?void 0:t.formattedValue)||o.tooltipUnitTitles.unknown.formattedValue,f=this.getActiveRange(),h=f.rangeMin>0||f.rangeMax<1,g=Math.max(0,Math.min(l,(f.rangeMax-f.rangeMin)*l)),p=l>0?g/l*100:0,x=(()=>{const e=ii(this.state.flamebearer.format),t=this.state.flamegraphConfigs.focusedNode.mapOrElse(()=>this.state.flamegraphConfigs.zoom.mapOrElse(()=>null,e=>e),e=>e);if(!t)return"";const a=this.state.flamebearer.levels[t.i];if(!a)return"";const n=e.getBarName(a,t.j);return this.state.flamebearer.names[n]||""})(),G=e.jsx(ll,{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,breadcrumb:i?void 0:{totalValueText:c,totalSamplesText:u,samplesLabel:m,unitLabel:b,hasFocus:h,focusPercent:p,focusLabel:x,ofTotalPlacement:r?"before":"after",ofTotalLabel:o.ofTotal,clearFocusLabel:o.clearFocus,onClearFocus:this.clearFocus}},"flamegraph-pane"),Q=(()=>{if(this.state.selectedItem.isNothing)return e.jsx("div",{className:gc.sandwichPane,children:e.jsxs("div",{className:Si(gc.sandwichPaneInfo,"vertical"===this.state.panesOrientation?gc.vertical:gc.horizontal),children:[e.jsx("div",{className:gc.arrow}),"Select a function to view callers/callees sandwich view"]})},"sandwich-pane");const t=hc(this.state.flamebearer,this.state.selectedItem.value),a=fc(this.state.flamebearer,this.state.selectedItem.value),i=t=>e.jsx(ll,{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:gc.sandwichPane,children:[e.jsxs("div",{className:gc.sandwichTop,children:[e.jsx("span",{className:gc.name,children:"Callers"}),i({flamebearer:t})]}),e.jsxs("div",{className:gc.sandwichBottom,children:[e.jsx("span",{className:gc.name,children:"Callees"}),i({flamebearer:a,headerVisible:!1,showSingleLevel:!0})]})]},"sandwich-pane")})(),I=function(e,t,a,n,i){switch(e){case"table":return[a];case"flamegraph":return[t];case"sandwich":return[a,n];case"both":return[a,t];case"graphviz":return[i];default:throw new Error(`Invalid view '${e}'`)}}(this.state.view,G,a,Q,e.jsx(Bc,{flamebearer:this.state.flamebearer}));return e.jsxs("div",{children:[e.jsxs("div",{children:[n&&e.jsx(oc,{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:`${gc.flamegraphContainer} ${Si("vertical"===this.state.panesOrientation?gc.vertical:gc.horizontal,gc[this.state.panesOrientation],gc.panesWrapper)}`,children:i?e.jsx(Ji,{}):I.map(e=>e)})]}),this.props.showPyroscopeLogo&&e.jsxs("div",{className:gc.createdBy,children:["Created by",e.jsxs("a",{href:"https://twitter.com/PyroscopeIO",rel:"noreferrer",target:"_blank",children:[e.jsx(d,{width:"30",height:"30"}),"@PyroscopeIO"]})]})]})},this.state={isFlamegraphDirty:!1,view:this.props.onlyDisplay?this.props.onlyDisplay:"both",fitMode:"HEAD",flamebearer:Lc(t),panesOrientation:t.panesOrientation?t.panesOrientation:"horizontal",searchQuery:"",selectedItem:a.Maybe.nothing(),flamegraphConfigs:this.initialFlamegraphState,palette:fr}}componentDidUpdate(e,t){const n=Lc(e),i=Lc(this.props);if(!this.isSameFlamebearer(n,i)){const e=this.calcNewConfigs(n,i);return void this.setState({flamebearer:i,flamegraphConfigs:{...this.state.flamegraphConfigs,...e},selectedItem:a.Maybe.nothing()})}t.flamegraphConfigs!==this.state.flamegraphConfigs&&this.updateFlamegraphDirtiness()}shouldShowToolbar(){return void 0===this.props.showToolbar||this.props.showToolbar}}Nc.contextType=vr,Nc.defaultProps={showCredit:!1};const Xc={showPyroscopeLogo:!1},wc=(e,t)=>{if(t)return t;const a=null!=e?e:"auto";return"zh-CN"===("auto"===a?"undefined"!=typeof navigator&&navigator.language&&navigator.language.toLowerCase().startsWith("zh")?"zh-CN":"en":a)?Qr:Gr};exports.Box=function(t){const{children:a,noPadding:n,className:i="",theme:o="dark"}=t,r=n?"":Tn.padding;return e.jsx("div",{className:`${Tn.box} ${r} ${i}`,"data-theme":o,children:a})},exports.DefaultPalette=fr,exports.Flamegraph=ji,exports.FlamegraphI18nProvider=yr,exports.FlamegraphRenderer=a=>{const{i18n:n,locale:i,colorMode:o="light",sandwich:r=!0,...l}=a,s=t.useMemo(()=>wc(i,n),[i,n]),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(yr,{messages:s,children:e.jsx(Nc,{...Xc,enableSandwichView:r,...l})})})},exports.convertJaegerTraceToProfile=function(e){const t={numTicks:0,maxSelf:0,names:[],levels:[]},a={},n={children:[]};return e.spans.forEach(e=>{e.children=[],a[e.spanID]=e}),e.spans.forEach(e=>{let t=n;e.references&&e.references.length>0&&(t=a[e.references[0].spanID]||n),t.children.push(e)}),function e(t,a){(t.children||[]).forEach(t=>e(t));let n=0;const i=u(t.children||[],e=>e.operationName);t.children=m(i,e=>{const t=e[0];for(let a=1;a<e.length;a+=1)t.duration+=e[a].duration;return n+=t.duration,t}),t.total=t.duration||n,t.self=Math.max(0,t.total-n)}(n),function a(n,i,o){var r;return t.numTicks||(t.numTicks=n.total),(r=t.levels)[i]||(r[i]=[]),t.levels[i].push(o),t.levels[i].push(n.total),t.levels[i].push(n.self),t.names.push((n.processID?`${e.processes[n.processID].serviceName}: `:"")+(n.operationName||"total")),t.levels[i].push(t.names.length-1),(n.children||[]).forEach(e=>{o+=a(e,i+1,o)}),n.total}(n,0,0),t.levels=Fc("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=Zc("single",e.flamebearer.levels),t.flamebearer.levels=Zc("single",t.flamebearer.levels);const a=function(e,t){const a={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},n=uc(e,t),i=(e,t,n,o)=>{var r;const{name:l,children:s,self:c,total:d}=e;a.names.push(l),(r=a.levels)[t]||(r[t]=[]),a.maxSelf=Math.max(a.maxSelf,c[0]||0,c[1]||0),a.levels[t]=a.levels[t].concat([n,d[0]||0,c[0]||0,o,d[1]||0,c[1]||0,a.names.length-1]);for(let e=0;e<s.length;e+=1){const[a,r]=i(s[e],t+1,n,o);n+=a,o+=r}return[d[0]||0,d[1]||0]};return i(n,0,0,0),a}(e.flamebearer,t.flamebearer);a.levels=Fc("double",a.levels);const n={...e.metadata};return n.format="double",{version:1,flamebearer:a,metadata:n,leftTicks:e.flamebearer.numTicks,rightTicks:t.flamebearer.numTicks}},exports.flamegraphDefaultMessages=Gr,exports.flamegraphZhCNMessages=Qr;
|
|
17
|
+
*/var dl,ul=(sl||(sl=1,function(e){!function(){var t={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=i(e,n(a)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var o in e)t.call(e,o)&&e[o]&&(n=i(n,o));return n}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):window.classNames=a}()}(cl)),cl.exports),ml=f(ul),bl={};function fl(){return dl||(dl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="crosshairs",a=[],n="f05b",i="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,a,n,i]},e.faCrosshairs=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(bl)),bl}var hl,gl=fl(),pl={};function xl(){return hl||(hl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-left",a=[9001],n="f053",i="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,a,n,i]},e.faChevronLeft=e.definition,e.prefix="fas",e.iconName=t,e.width=320,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(pl)),pl}var Gl,Ql=xl(),vl={};function Il(){return Gl||(Gl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="chevron-right",a=[9002],n="f054",i="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,a,n,i]},e.faChevronRight=e.definition,e.prefix="fas",e.iconName=t,e.width=320,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(vl)),vl}var yl=Il(),Bl={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"};b(".Table-module_table__6A8SM{table-layout:fixed;width:100%}.Table-module_table__6A8SM thead{background-color:var(--ps-table-header-bg,var(--ps-ui-foreground,#fff));color:var(--ps-table-header-text,var(--ps-ui-foreground-text,#000))}.Table-module_table__6A8SM thead th.Table-module_sortable__J6kyp{cursor:pointer;user-select:none}.Table-module_table__6A8SM thead th .Table-module_sortArrow__Nrncn{border:5px solid transparent;border-top:5px solid var(--ps-ui-foreground-text);display:inline-block;margin-left:7px;position:relative;top:3px}.Table-module_table__6A8SM thead th .Table-module_sortArrow__Nrncn.Table-module_asc__tJDI9{border-bottom-color:var(--ps-button-switch-bg-highlight);border-top-color:transparent;top:-2px}.Table-module_table__6A8SM thead th .Table-module_sortArrow__Nrncn.Table-module_desc__fjVRY{border-top-color:var(--ps-button-switch-bg-highlight);top:3px}.Table-module_table__6A8SM tbody tr:nth-child(2n){background-color:var(--ps-neutral-9)}.Table-module_table__6A8SM tbody{cursor:pointer}.Table-module_table__6A8SM tbody td{font-weight:400;text-align:center}.Table-module_table__6A8SM tbody tr.Table-module_isRowSelected__UhIAJ{background:var(--ps-table-highlight-row-bg,#bae0ff)!important;color:var(--ps-table-highlight-row-text,#0958d9);cursor:pointer}.Table-module_table__6A8SM tbody tr.Table-module_isRowSelected__UhIAJ td:first-child{box-shadow:inset 3px 0 0 0 var(--ps-table-highlight-border,#1677ff)}.Table-module_table__6A8SM tbody tr.Table-module_isRowDisabled__sz3NJ td{text-decoration:line-through}.Table-module_table__6A8SM tbody tr:not(.Table-module_isRowSelected__UhIAJ):hover{background:var(--ps-ui-element-bg-highlight);color:var(--ps-neutral-2);cursor:pointer}.Table-module_table__6A8SM tbody td,.Table-module_table__6A8SM tbody th{border:1px solid var(--ps-ui-border);padding:4px 10px;width:10%}.Table-module_loadingSpinner__SSjMK{margin-top:50px;text-align:center}.Table-module_pagination__VXgcO{display:flex;justify-content:flex-end}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRhYmxlLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLDJCQUVFLGtCQUFtQixDQURuQixVQUdGLENBQ0EsaUNBQ0UsdUVBQTZFLENBQzdFLG1FQUNGLENBQ0EsaUVBQ0UsY0FBZSxDQUNmLGdCQUNGLENBQ0EsbUVBR0UsNEJBQThDLENBQTlDLGlEQUE4QyxDQUY5QyxvQkFBcUIsQ0FLckIsZUFBZ0IsQ0FEaEIsaUJBQWtCLENBRGxCLE9BR0YsQ0FDQ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2luYXRpb24ge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtZW5kO1xufSJdfQ== */");var Fl="Button-module_button__Ed1ge",Zl="Button-module_noIcon__Uzjvv",Ll="Button-module_noBox__mLreC",Nl="Button-module_customIcon__-slpC",Xl="Button-module_iconWithText__DQRkr",wl="Button-module_default__HhXlQ",Wl="Button-module_outline__Flf4r",Cl="Button-module_float__4marx",Rl="Button-module_primary__xByv0",Ul="Button-module_secondary__D0K-F",Dl="Button-module_danger__5-vIq",kl="Button-module_grouped__j8KwB";b(".Button-module_button__Ed1ge{border:1px solid var(--ps-ui-border);border-radius:4px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Button-module_button__Ed1ge[type=button],.Button-module_button__Ed1ge[type=reset],.Button-module_button__Ed1ge[type=submit]{-webkit-appearance:button}.Button-module_noIcon__Uzjvv{min-width:48px}.Button-module_noBox__mLreC{background:inherit!important;border:none;border-radius:none}.Button-module_customIcon__-slpC svg{margin-right:5px;vertical-align:-.125em;width:1rem}.Button-module_iconWithText__DQRkr{margin-right:5px}.Button-module_default__HhXlQ,.Button-module_float__4marx,.Button-module_outline__Flf4r{background:var(--ps-ui-element-bg-primary)}.Button-module_default__HhXlQ:hover:not(:disabled),.Button-module_float__4marx:hover:not(:disabled),.Button-module_outline__Flf4r:hover:not(:disabled){background-color:var(--ps-ui-element-bg-highlight)}.Button-module_default__HhXlQ:disabled,.Button-module_float__4marx:disabled,.Button-module_outline__Flf4r:disabled{color:var(--ps-disabled-button-text);pointer-events:none}.Button-module_primary__xByv0{background-color:var(--ps-button-switch-bg);border-color:transparent;color:var(--ps-button-switch-text)!important}.Button-module_primary__xByv0:hover{background-color:var(--ps-button-switch-bg-highlight)}.Button-module_primary__xByv0:disabled{background-color:var(--ps-green-disabled);pointer-events:none}.Button-module_secondary__D0K-F{background-color:var(--ps-blue-primary);border-color:transparent;color:var(--ps-immutable-off-white)}.Button-module_secondary__D0K-F:hover{background-color:var(--ps-blue-highlight)}.Button-module_secondary__D0K-F:disabled{background-color:var(--ps-blue-disabled);pointer-events:none}.Button-module_float__4marx{background-color:transparent;border-color:transparent}.Button-module_danger__5-vIq{background-color:var(--ps-red-primary);border-color:transparent;color:var(--ps-neutral-2)}.Button-module_danger__5-vIq:hover{background-color:var(--ps-red-highlight)}.Button-module_danger__5-vIq:disabled{background-color:var(--ps-red-disabled);pointer-events:none}.Button-module_outline__Flf4r{background-color:transparent}.Button-module_outline__Flf4r:hover:not(:disabled){background-color:rgba(144,202,249,.08)}.Button-module_grouped__j8KwB{border-radius:0;border-right:0;margin:0;padding-left:12px;padding-right:12px}.Button-module_grouped__j8KwB:first-child{border-left:1px solid var(--ps-ui-border);border-radius:4px 0 0 4px}.Button-module_grouped__j8KwB:last-child{border-radius:0 4px 4px 0;border-right:1px solid var(--ps-ui-border)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJ1dHRvbi5tb2R1bGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw2QkFLRSxvQ0FBcUMsQ0FDckMsaUJBQWtCLENBRmxCLGNBQWUsQ0FGZixlQUFnQixDQUNoQixzQkFBdUIsQ0FGdkIsa0JBTUYsQ0FDQSw2SEFDRSx5QkFDRixDQUVBLDZCQUNFLGNBQ0YsQ0FFQSw0QkFHRSw0QkFBOEIsQ0FGOUIsV0FBWSxDQUNaLGtCQUVGLENBRUEscUNBRUUsZ0JBQWlCLENBQ2pCLHNCQUF3QixDQUZ4QixVQUdGLENBRUEsbUNBQ0UsZ0JBQ0YsQ0FFQSx3RkFDRSwwQ0FDRixDQUNBLHVKQUNFLGtEQUNGLENBQ0EsbUhBQ0Usb0NBQXFDLENBQ3JDLG1CQUNGLENBRUEsOEJBR0UsMkNBQTRDLENBRjVDLHdCQUF5QixDQUN6Qiw0Q0FFRixDQUNBLG9DQUNFLHFEQUNGLENBQ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IHtcbiAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSgxNDQsIDIwMiwgMjQ5LCAwLjA4KTtcbn1cblxuLmdyb3VwZWQge1xuICBtYXJnaW46IDA7XG4gIGJvcmRlci1yaWdodDogMDtcbiAgYm9yZGVyLXJhZGl1czogMDtcbiAgcGFkZGluZy1sZWZ0OiAxMnB4O1xuICBwYWRkaW5nLXJpZ2h0OiAxMnB4O1xufVxuXG4uZ3JvdXBlZDpmaXJzdC1jaGlsZCB7XG4gIGJvcmRlci1sZWZ0OiAxcHggc29saWQgdmFyKC0tcHMtdWktYm9yZGVyKTtcbiAgYm9yZGVyLXJhZGl1czogNHB4IDAgMCA0cHg7XG59XG5cbi5ncm91cGVkOmxhc3QtY2hpbGQge1xuICBib3JkZXItcmlnaHQ6IDFweCBzb2xpZCB2YXIoLS1wcy11aS1ib3JkZXIpO1xuICBib3JkZXItcmFkaXVzOiAwIDRweCA0cHggMDtcbn0iXX0= */");const Yl=t.forwardRef(function({disabled:t=!1,kind:a="default",type:n="button",icon:i,iconNode:o,children:r,grouped:l,onClick:s,id:c,className:d,form:u,noBox:m,autoFocus:b,...f},h){return e.jsxs("button",{...f,id:c,ref:h,type:n,"data-testid":f["data-testid"],disabled:t,onClick:s,form:u,autoFocus:b,"aria-label":f["aria-label"],className:ml(Fl,l?kl:"",Vl(a),d,m&&Ll,o&&Nl,!i&&!o&&Zl),children:[i?e.jsx(Hn,{icon:i,className:r?Xl:""}):null,o,r]})});function Vl(e){switch(e){case"default":return wl;case"primary":return Rl;case"secondary":return Ul;case"danger":return Dl;case"outline":return Wl;case"float":return Cl;default:throw Error(`Unsupported kind ${e}`)}}function jl({row:a}){const{cells:n,isRowSelected:i,isRowDisabled:o,className:r,onClick:l,onDoubleClick:s,onContextMenu:c,...d}=a,u=t.useRef(Math.random()).current;return e.jsx("tr",{...d,onClick:l,onDoubleClick:s,onContextMenu:c,className:_i(r,{[Bl.isRowSelected]:i,[Bl.isRowDisabled]:o}),children:n&&n.map(({style:t,value:a,...n},i)=>e.jsx("td",{style:t,...n,children:a},u+i))})}function _l({sortByDirection:a,sortBy:n,updateSortParams:i,table:o,tableBodyRef:r,className:l,isLoading:s,itemsPerPage:c}){const d=a&&n&&i,[u,m]=t.useState(0);return s?e.jsx("div",{className:Bl.loadingSpinner}):e.jsxs(e.Fragment,{children:[e.jsxs("table",{className:_i(Bl.table,{[l||""]:l}),"data-testid":"table-ui",children:[e.jsx("thead",{children:e.jsx("tr",{children:o.headRow.map(({sortable:r,label:l,name:s,...c},u)=>r&&"not-filled"!==o.type&&d?t.createElement("th",{...c,key:u,className:Bl.sortable,onClick:()=>i(s)},l,e.jsx("span",{className:_i(Bl.sortArrow,{[Bl[a]]:n===s})})):e.jsx("th",{...c,children:l},u))})}),e.jsx("tbody",{ref:r,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})}):Sl(o.bodyRows,u,c).map((t,a)=>{var n;return e.jsx(jl,{row:t},null!==(n=t["data-row"])&&void 0!==n?n:`row-${a}`)})})]}),e.jsx(Ml,{bodyRows:"filled"===o.type?o.bodyRows:void 0,itemsPerPage:c,currPage:u,setCurrPage:m})]})}function Sl(e,t,a){return a?e.slice(t*a,a*(t+1)):e}function Ml({itemsPerPage:t,currPage:a,setCurrPage:n,bodyRows:i}){if(!t)return null;const o=!!i&&Sl(i,a+1,t).length>0,r=!!i&&Sl(i,a-1,t).length>0;return e.jsxs("nav",{className:Bl.pagination,children:[e.jsx(Yl,{"aria-label":"Previous Page",disabled:!r,kind:"float",icon:Ql.faChevronLeft,onClick:()=>n(a-1)}),e.jsx(Yl,{disabled:!o,"aria-label":"Next Page",kind:"float",icon:yl.faChevronRight,onClick:()=>n(a+1)})]})}function Jl({numTicks:a,sampleRate:n,units:i,tableBodyRef:o,palette:r}){const l=xi(a,n,i),s=l.format(a,n),c=Br(),d=t.useCallback((e,t,a)=>{var o;const d=null===(o=a.target.closest("tr"))||void 0===o?void 0:o.dataset.row;if(!d)return void t();const[u,m,...b]=d.split(";");switch(u){case"single":{const[t,a]=b,o=l.format(parseInt(t,10),n),r=l.format(parseInt(a,10),n),c=s.split(" "),d="<"===c[0]?c[1]:c[0],u=o.split(" "),f="<"===u[0]?u[1]:u[0],h=r.split(" "),g="<"===h[0]?h[1]:h[0];e({title:{text:m,diff:{text:"",color:""}},tooltipData:[{units:i,self:`${o}(${(parseFloat(f)/parseFloat(d)*100).toFixed(2)}%)`,total:`${r}(${(parseFloat(g)/parseFloat(d)*100).toFixed(2)}%)`,tooltipType:"table"}]});break}case"double":{const[t,a,o,s]=b,d=Rr({formatter:l,sampleRate:n,totalLeft:parseInt(t,10),leftTicks:parseInt(a,10),totalRight:parseInt(o,10),rightTicks:parseInt(s,10),title:m,units:i},r,c);e({title:d.title,tooltipData:d.tooltipData});break}}},[l,n,i,s,r,c]);return e.jsx(Xr,{dataSourceRef:o,shouldShowTitle:!1,clickInfoSide:"left",setTooltipContent:d,palette:r})}var El="ProfilerTable-module_tableContextMenu__7Svm8",zl="ProfilerTable-module_sandwichItem__b9Ipy";b(".ProfilerTable-module_tableContextMenu__7Svm8 .szh-menu{background-color:var(--ps-ui-background,#fff);border:1px solid var(--ps-ui-border,#ccc);border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,.15);min-width:180px;padding:4px 0;z-index:1000}.ProfilerTable-module_tableContextMenu__7Svm8 .szh-menu__item{align-items:center;color:var(--ps-ui-foreground-text,#333);cursor:pointer;display:flex;font-size:13px;gap:8px;padding:8px 12px;transition:background-color .15s}.ProfilerTable-module_tableContextMenu__7Svm8 .szh-menu__item:hover{background-color:var(--ps-ui-element-bg-highlight,#f0f0f0)}.ProfilerTable-module_tableContextMenu__7Svm8 .szh-menu__item svg{flex-shrink:0;height:14px;width:14px}.ProfilerTable-module_sandwichItem__b9Ipy svg{height:16px;width:16px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2V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IoLS1wcy11aS1mb3JlZ3JvdW5kLXRleHQsICMzMzMpO1xuICBmb250LXNpemU6IDEzcHg7XG4gIHRyYW5zaXRpb246IGJhY2tncm91bmQtY29sb3IgMC4xNXM7XG59XG4udGFibGVDb250ZXh0TWVudSA6Z2xvYmFsKC5zemgtbWVudV9faXRlbSk6aG92ZXIge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wcy11aS1lbGVtZW50LWJnLWhpZ2hsaWdodCwgI2YwZjBmMCk7XG59XG4udGFibGVDb250ZXh0TWVudSA6Z2xvYmFsKC5zemgtbWVudV9faXRlbSkgc3ZnIHtcbiAgd2lkdGg6IDE0cHg7XG4gIGhlaWdodDogMTRweDtcbiAgZmxleC1zaHJpbms6IDA7XG59XG5cbi5zYW5kd2ljaEl0ZW0gc3ZnIHtcbiAgd2lkdGg6IDE2cHg7XG4gIGhlaWdodDogMTZweDtcbn0iXX0= */");const Al=e=>e||0;function Ol(e,t,a,n){const i=t;return i.type="single",i.self=Al(i.self)+e.getBarSelf(a,n),i.total=Al(i.total)+e.getBarTotal(a,n),i}function Hl(e,t,a,n,i,o){const r=t;return r.type="double",r.self=Al(r.self)+e.getBarSelf(a,n),r.total=Al(r.total)+e.getBarTotal(a,n),r.selfLeft=Al(r.selfLeft)+e.getBarSelfLeft(a,n),r.selfRght=Al(r.selfRght)+e.getBarSelfRght(a,n),r.selfDiff=Al(r.selfDiff)+e.getBarSelfDiff(a,n),r.totalLeft=Al(r.totalLeft)+e.getBarTotalLeft(a,n),r.totalRght=Al(r.totalRght)+e.getBarTotalRght(a,n),r.totalDiff=Al(r.totalDiff)+e.getBarTotalDiff(a,n),r.leftTicks=i,r.rightTicks=o,r}function Tl(e,t){if(!e||!e.levels)return null;const{names:a,levels:n,format:i}=e,o=ii(i);let r=null;for(let e=0;e<n.length;e++){const i=n[e];for(let n=0;n<i.length;n+=o.jStep){if(a[o.getBarName(i,n)]===t){const t=o.getBarTotal(i,n);(!r||t>r.total)&&(r={i:e,j:n,total:t})}}}return r?{i:r.i,j:r.j}:null}function Pl(e,t,a){const n=148-e/t*148,i=a.alpha(1);return{backgroundImage:`linear-gradient(${i}, ${i})`,backgroundPosition:`-${n}px 0px`,backgroundRepeat:"no-repeat"}}const Kl=({flamebearer:t,sortBy:a,sortByDirection:n,fitMode:i,handleTableItemClick:o,highlightQuery:r,palette:l,selectedItem:s,messages:c,onRowContextMenu:d,onRowDoubleClick:u})=>{const{numTicks:m,maxSelf:b,sampleRate:f,spyName:h,units:g}=t,p=function(e){if(!e)return[];const{names:t,levels:a,format:n}=e,i="double"!==n?ai:ni,o=new Map;for(let r=0;r<a.length;r++){const l=a[r];for(let a=0;a<l.length;a+=i.jStep){const r=t[i.getBarName(l,a)];o.has(r)||o.set(r,{name:r||"<empty>",self:0,total:0});const s=o.get(r);if(!s)break;"single"===n?Ol(ai,s,l,a):Hl(ni,s,l,a,e.leftTicks,e.rightTicks)}}return Array.from(o.values())}(t).sort((e,t)=>t.total-e.total),x="asc"===n?1:-1;let G;if("name"===a)G=p.sort((e,t)=>x*e[a].localeCompare(t[a]));else switch(a){case"total":case"self":G=p.sort((e,t)=>x*(e[a]-t[a]));break;case"baseline":G=p.sort((e,t)=>x*(e.totalLeft/e.leftTicks-t.totalLeft/t.leftTicks));break;case"comparison":G=p.sort((e,t)=>x*(e.totalRght/e.rightTicks-t.totalRght/t.rightTicks));break;case"diff":G=p.sort((e,t)=>{const a=pi(gi(e.totalLeft/e.leftTicks),gi(e.totalRght/e.rightTicks)),n=pi(gi(t.totalLeft/t.leftTicks),gi(t.totalRght/t.rightTicks));return x*(a-n)});break;default:G=p}const Q=xi(m,f,g),v=e=>!!s.isJust&&e===s.value,I=t=>{return e.jsx("button",{className:"table-item-button",children:e.jsx("div",{className:"symbol-name",style:(a=i,a===yi?{direction:"rtl",overflow:"hidden",textOverflow:"ellipsis"}:{overflow:"hidden",textOverflow:"ellipsis"}),children:t.name})});var a},y=G.filter(e=>{return!r||(t=r,e.name.toLowerCase().includes(t.toLowerCase()));var t}).map(e=>{if("double"===e.type)return(e=>{const t=gi(e.totalLeft/e.leftTicks),a=gi(e.totalRght/e.rightTicks),n=pi(t,a);let i="";n>0?i=l.badColor.rgb().string():n<0&&(i=l.goodColor.rgb().string());let r="";return e.totalLeft&&n!==1/0?e.totalRght?n>0?r=`+${n.toFixed(2)}%`:n<0&&(r=`${n.toFixed(2)}%`):r=c.diffRemoved:r=c.diffNew,{"data-row":`${e.type};${e.name};${e.totalLeft};${e.leftTicks};${e.totalRght};${e.rightTicks}`,isRowSelected:v(e.name),onClick:()=>o(e),onContextMenu:t=>d(t,e.name),onDoubleClick:()=>u(e.name),cells:[{value:I(e)},{value:`${t} %`},{value:`${a} %`},{value:r,style:{color:i}}]}})(e);const t=Ni(h,e.name);return((e,t)=>({"data-row":`${e.type};${e.name};${e.self};${e.total}`,isRowSelected:v(e.name),onClick:()=>o(e),onContextMenu:t=>d(t,e.name),onDoubleClick:()=>u(e.name),cells:[{value:I(e)},{value:Q.format(e.self,f),style:Pl(e.self,b,t)},{value:Q.format(e.total,f),style:Pl(e.total,m,t)}]}))(e,Xi(l,t))});return y.length>0?{bodyRows:y,type:"filled"}:{value:e.jsx("div",{className:"unsupported-format",children:c.noItemsFound}),type:"not-filled"}};function $l({tableBodyRef:a,flamebearer:n,isDoubles:i,fitMode:o,handleTableItemClick:r,highlightQuery:l,selectedItem:s,palette:c,onFocusOnNode:d,updateView:u,enableSandwichView:m=!0}){const b=Br(),[f,h]=tr({transition:!0}),[g,p]=t.useState({x:0,y:0}),[x,G]=t.useState(null),Q=t.useCallback(e=>{if(s.isJust&&s.value===e||r({name:e}),!d)return;const t=Tl(n,e);t&&d(t.i,t.j)},[n,d,s,r]),v=t.useCallback((e,t)=>{e.preventDefault(),p({x:e.clientX,y:e.clientY}),G(t),h(!0)},[h]),I=t.useCallback(()=>{h(!1),G(null)},[h]),y=t.useCallback(()=>{if(!x||!d)return;const e=Tl(n,x);e&&d(e.i,e.j),I()},[x,n,d,I]),B=t.useCallback(()=>{x&&navigator.clipboard&&(navigator.clipboard.writeText(x),I())},[x,I]),F=t.useCallback(()=>{x&&(r({name:x}),I())},[x,r,I]),Z=t.useCallback(()=>{x&&u&&(u("sandwich"),r({name:x}),I())},[x,u,r,I]),L=t.useMemo(()=>i?[{sortable:1,name:"name",label:b.location},{sortable:1,name:"baseline",label:b.baseline,default:!0},{sortable:1,name:"comparison",label:b.comparison},{sortable:1,name:"diff",label:b.diff}]:[{sortable:1,name:"name",label:b.location},{sortable:1,name:"self",label:b.self,default:!0},{sortable:1,name:"total",label:b.total}],[b,i]),N=(e=>{const a=e.filter(e=>null==e?void 0:e.default)[0]||e[0],[n,i]=t.useState(a.name),[o,r]=t.useState("desc");return{sortBy:n,sortByDirection:o,updateSortParams:e=>{let t=o;t=n===e?"asc"===t?"desc":"asc":"desc",i(e),r(t)}}})(L),X={headRow:L,...Kl({flamebearer:n,sortBy:N.sortBy,sortByDirection:N.sortByDirection,fitMode:o,handleTableItemClick:r,highlightQuery:l,palette:c,selectedItem:s,messages:b,onRowContextMenu:v,onRowDoubleClick:Q})},w=s.isJust&&s.value===x;return e.jsxs(e.Fragment,{children:[e.jsx(_l,{...N,tableBodyRef:a,table:X,className:ml("flamegraph-table",{"flamegraph-table-doubles":i})}),e.jsxs(To,{...f,anchorPoint:g,onClose:I,className:El,children:[d&&e.jsxs(or,{onClick:y,children:[e.jsx(Hn,{icon:gl.faCrosshairs}),b.focusOnThisFunction]}),e.jsxs(or,{onClick:B,children:[e.jsx(Hn,{icon:eo.faCopy}),b.copyFunctionName]}),e.jsxs(or,{onClick:F,children:[e.jsx(Hn,{icon:oo.faHighlighter}),w?b.clearHighlight:b.highlightSimilarNodes]}),u&&m&&e.jsxs(or,{onClick:Z,className:zl,children:[e.jsx(Sr,{fill:"currentColor"}),b.openInSandwichView]})]})]})}const ql=t.memo(function({flamebearer:a,fitMode:n,handleTableItemClick:i,highlightQuery:o,palette:r,selectedItem:l,onFocusOnNode:s,updateView:c,enableSandwichView:d}){const u=t.useRef(null),m="double"===a.format;return e.jsxs("div",{"data-testid":"table-view",className:m?"flamegraph-table-wrapper flamegraph-table-wrapper--double":"flamegraph-table-wrapper",children:[e.jsx("div",{className:"flamegraph-table-scroll",children:e.jsx($l,{tableBodyRef:u,flamebearer:a,isDoubles:m,fitMode:n,highlightQuery:o,handleTableItemClick:i,palette:r,selectedItem:l,onFocusOnNode:s,updateView:c,enableSandwichView:d})}),e.jsx(Jl,{tableBodyRef:u,numTicks:a.numTicks,sampleRate:a.sampleRate,units:a.units,palette:r})]})});var es,ts,as={},ns={};function is(){return es||(es=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="arrow-rotate-left",a=[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],n="f0e2",i="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,a,n,i]},e.faArrowRotateLeft=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(ns)),ns}function os(){return ts||(ts=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=is();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}(as)),as}var rs,ls,ss=os(),cs={},ds={};function us(){return rs||(rs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="diagram-project",a=["project-diagram"],n="f542",i="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,a,n,i]},e.faDiagramProject=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(ds)),ds}function ms(){return ls||(ls=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=us();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}(cs)),cs}var bs,fs,hs=ms(),gs={},ps={};function xs(){return bs||(bs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="ellipsis-vertical",a=["ellipsis-v"],n="f142",i="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,a,n,i]},e.faEllipsisVertical=e.definition,e.prefix="fas",e.iconName=t,e.width=128,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(ps)),ps}function Gs(){return fs||(fs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=xs();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}(gs)),gs}var Qs=Gs();function vs(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=>vs(e)).filter(e=>!!e);return t.length?t.join(" "):void 0}return t.isValidElement(e)?vs(e.props.children):void 0}}const Is=({placement:t,title:a,content:n,children:i})=>{const o=vs(null!=a?a:n);return o?e.jsx("span",{title:o,children:i}):e.jsx(e.Fragment,{children:i})};var ys,Bs={};function Fs(){return ys||(ys=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="link",a=[128279,"chain"],n="f0c1",i="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,a,n,i]},e.faLink=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=a,e.unicode=n,e.svgPathData=i,e.aliases=a}(Bs)),Bs}var Zs=Fs(),Ls="Input-module_input__ulQdV";b(".Input-module_input__ulQdV,.Input-module_input__ulQdV:focus,.Input-module_input__ulQdV:focus:active{outline:none}.Input-module_input__ulQdV{border:1px solid var(--ps-ui-border);border-radius:4px;display:inline-block;padding:.25em .375em;position:relative}.Input-module_input__ulQdV[type=search]{-webkit-appearance:textfield;outline-offset:-2px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIklucHV0Lm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU1BLG9HQUNFLFlBQ0YsQ0FDQSwyQkFLRSxvQ0FBcUMsQ0FGckMsaUJBQWtCLENBRmxCLG9CQUFxQixDQUdyQixvQkFBdUIsQ0FGdkIsaUJBSUYsQ0FDQSx3Q0FDRSw0QkFBNkIsQ0FDN0IsbUJBQ0YiLCJmaWxlIjoiSW5wdXQubW9kdWxlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuaW5wdXQge1xuICBvdXRsaW5lOiBub25lO1xufVxuLmlucHV0OmZvY3VzIHtcbiAgb3V0bGluZTogbm9uZTtcbn1cbi5pbnB1dDpmb2N1czphY3RpdmUge1xuICBvdXRsaW5lOiBub25lO1xufVxuLmlucHV0IHtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgcGFkZGluZzogMC4yNWVtIDAuMzc1ZW07XG4gIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXBzLXVpLWJvcmRlcik7XG59XG4uaW5wdXRbdHlwZT1zZWFyY2hdIHtcbiAgLXdlYmtpdC1hcHBlYXJhbmNlOiB0ZXh0ZmllbGQ7XG4gIG91dGxpbmUtb2Zmc2V0OiAtMnB4O1xufSJdfQ== */");const Ns=t.forwardRef(({testId:t,className:a,type:n,name:i,placeholder:o,minLength:r=0,debounceTimeout:l=100,onChange:s,value:d,htmlId:u},m)=>e.jsx(c.DebounceInput,{inputRef:m,"data-testid":t,className:`${Ls} ${a||""}`,type:n,name:i,placeholder:o,minLength:r,debounceTimeout:l,onChange:s,value:d,id:u}));var Xs="SharedQueryInput-module_wrapper__XRxrd",ws="SharedQueryInput-module_search__XlzRv",Ws="SharedQueryInput-module_search-synced__J4T4b",Cs="SharedQueryInput-module_searchWithSync__ryuQa",Rs="SharedQueryInput-module_icon__Aq0Hv",Us="SharedQueryInput-module_checked__oRvod",Ds="SharedQueryInput-module_sync__0IO2N",ks="SharedQueryInput-module_syncSelected__hstBI";b(".SharedQueryInput-module_wrapper__XRxrd{align-items:center;display:flex;flex-direction:row;width:100%}.SharedQueryInput-module_search-synced__J4T4b,.SharedQueryInput-module_searchWithSync__ryuQa,.SharedQueryInput-module_search__XlzRv{background:var(--ps-immutable-white);border:1px solid var(--ps-ui-border);color:rgba(0,0,0,.85);display:flex;font:inherit;height:37px;margin-right:1.5px;transition:background-color .1s ease-out,border-color .1s ease-out,box-shadow .1s ease-out;width:100%}.SharedQueryInput-module_search-synced__J4T4b::placeholder,.SharedQueryInput-module_searchWithSync__ryuQa::placeholder,.SharedQueryInput-module_search__XlzRv::placeholder{color:rgba(0,0,0,.25)}.SharedQueryInput-module_kylin__Fp93M.SharedQueryInput-module_search-synced__J4T4b,.SharedQueryInput-module_kylin__Fp93M.SharedQueryInput-module_searchWithSync__ryuQa,.SharedQueryInput-module_light__yewPS.SharedQueryInput-module_search-synced__J4T4b,.SharedQueryInput-module_light__yewPS.SharedQueryInput-module_searchWithSync__ryuQa,.SharedQueryInput-module_search__XlzRv.SharedQueryInput-module_kylin__Fp93M,.SharedQueryInput-module_search__XlzRv.SharedQueryInput-module_light__yewPS{background:var(--ps-immutable-white);border-color:var(--ps-ui-border);color:rgba(0,0,0,.65)}@media (prefers-color-scheme:dark){.SharedQueryInput-module_search-synced__J4T4b,.SharedQueryInput-module_searchWithSync__ryuQa,.SharedQueryInput-module_search__XlzRv,.SharedQueryInput-module_search__XlzRv.SharedQueryInput-module_dark__lvctB{background:var(--ps-immutable-dark-background);border-color:var(--ps-ui-border-dark);color:hsla(0,0%,100%,.75)}.SharedQueryInput-module_search-synced__J4T4b::placeholder,.SharedQueryInput-module_searchWithSync__ryuQa::placeholder,.SharedQueryInput-module_search__XlzRv.SharedQueryInput-module_dark__lvctB::placeholder,.SharedQueryInput-module_search__XlzRv::placeholder{color:hsla(0,0%,100%,.5)}}.SharedQueryInput-module_search-synced__J4T4b:focus-visible,.SharedQueryInput-module_searchWithSync__ryuQa:focus-visible,.SharedQueryInput-module_search__XlzRv:focus-visible{background:var(--ps-immutable-white);border-color:#5d976f;box-shadow:0 0 0 3px rgba(93,151,111,.4);outline:none}.SharedQueryInput-module_kylin__Fp93M.SharedQueryInput-module_search-synced__J4T4b:focus,.SharedQueryInput-module_kylin__Fp93M.SharedQueryInput-module_searchWithSync__ryuQa:focus,.SharedQueryInput-module_light__yewPS.SharedQueryInput-module_search-synced__J4T4b:focus,.SharedQueryInput-module_light__yewPS.SharedQueryInput-module_searchWithSync__ryuQa:focus,.SharedQueryInput-module_search__XlzRv.SharedQueryInput-module_kylin__Fp93M:focus,.SharedQueryInput-module_search__XlzRv.SharedQueryInput-module_light__yewPS:focus{background:var(--ps-immutable-white);border-color:#5d976f;box-shadow:0 0 0 2px rgba(93,151,111,.2);outline:none}@media (prefers-color-scheme:dark){.SharedQueryInput-module_dark__lvctB.SharedQueryInput-module_search-synced__J4T4b:focus,.SharedQueryInput-module_dark__lvctB.SharedQueryInput-module_searchWithSync__ryuQa:focus,.SharedQueryInput-module_search__XlzRv.SharedQueryInput-module_dark__lvctB:focus{background:var(--ps-immutable-dark-background);border-color:#303030;box-shadow:0 0 0 2px rgba(48,48,48,.6);outline:none}}.SharedQueryInput-module_searchWithSync__ryuQa{border-bottom-right-radius:0;border-right:1px solid var(--ps-ui-border);border-top-right-radius:0;margin-right:0}.SharedQueryInput-module_search-synced__J4T4b{border-color:var(--ps-immutable-linked-border)}.SharedQueryInput-module_checked__oRvod,.SharedQueryInput-module_icon__Aq0Hv{cursor:pointer}.SharedQueryInput-module_checked__oRvod path,.SharedQueryInput-module_icon__Aq0Hv path{fill:var(--ps-grey-primary)}.SharedQueryInput-module_checked__oRvod path{fill:var(--ps-immutable-linked-border)}.SharedQueryInput-module_syncSelected__hstBI,.SharedQueryInput-module_sync__0IO2N{align-items:center;align-self:stretch;background-color:var(--ps-immutable-off-white);border:none;border:1px solid var(--ps-ui-border);border-bottom-right-radius:4px;border-left:none;border-top-right-radius:4px;cursor:pointer;display:flex;justify-content:center;position:relative;width:40px}.SharedQueryInput-module_syncSelected__hstBI{border-bottom-color:var(--ps-immutable-linked-border);border-right-color:var(--ps-immutable-linked-border);border-top-color:var(--ps-immutable-linked-border)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNoYXJlZFF1ZXJ5SW5wdXQubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsd0NBR0Usa0JBQW1CLENBRm5CLFlBQWEsQ0FDYixrQkFBbUIsQ0FHbkIsVUFDRixDQUVBLG9JQUNFLG9DQUFxQyxDQU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LXBzLWdyZXktcHJpbWFyeSk7XG59XG5cbi5jaGVja2VkIHBhdGgge1xuICBmaWxsOiB2YXIoLS1wcy1pbW11dGFibGUtbGlua2VkLWJvcmRlcik7XG59XG5cbi5zeW5jLCAuc3luY1NlbGVjdGVkIHtcbiAgYm9yZGVyOiBub25lO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wcy1pbW11dGFibGUtb2ZmLXdoaXRlKTtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICB3aWR0aDogNDBweDtcbiAgYm9yZGVyLXRvcC1yaWdodC1yYWRpdXM6IDRweDtcbiAgYm9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6IDRweDtcbiAgYm9yZGVyOiAxcHggc29saWQgdmFyKC0tcHMtdWktYm9yZGVyKTtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBib3JkZXItbGVmdDogbm9uZTtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24tc2VsZjogc3RyZXRjaDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG59XG5cbi5zeW5jU2VsZWN0ZWQge1xuICBib3JkZXItdG9wLWNvbG9yOiB2YXIoLS1wcy1pbW11dGFibGUtbGlua2VkLWJvcmRlcik7XG4gIGJvcmRlci1yaWdodC1jb2xvcjogdmFyKC0tcHMtaW1tdXRhYmxlLWxpbmtlZC1ib3JkZXIpO1xuICBib3JkZXItYm90dG9tLWNvbG9yOiB2YXIoLS1wcy1pbW11dGFibGUtbGlua2VkLWJvcmRlcik7XG59Il19 */");const Ys=({onHighlightChange:a,highlightQuery:n,sharedQuery:i,width:o})=>{const r=Br(),l=(e=>{const a=t.useRef();return t.useEffect(()=>{a.current=e},[e]),a.current})(null==i?void 0:i.syncEnabled);t.useEffect(()=>{"string"==typeof(null==i?void 0:i.searchQuery)&&(i.syncEnabled&&a(i.searchQuery),!i.syncEnabled&&l&&l!==(null==i?void 0:i.id)&&a(""))},[null==i?void 0:i.searchQuery,null==i?void 0:i.syncEnabled]);const s=t.useMemo(()=>i&&i.syncEnabled?i.searchQuery||"":n,[i,n]),c=t.useMemo(()=>`${i?Cs:ws} ${(null==i?void 0:i.syncEnabled)?Ws:""}`,[i]),d=(null==i?void 0:i.syncEnabled)?r.unsyncSearchBars:r.syncSearchBars;return e.jsxs("div",{className:Xs,style:{width:o},children:[e.jsx(Ns,{testId:"flamegraph-search",className:c,type:"search",name:"flamegraph-search",placeholder:r.searchPlaceholder,minLength:1,debounceTimeout:100,onChange:e=>{a(e.target.value),i&&i.syncEnabled&&i.onQueryChange(e.target.value)},value:s}),i?e.jsx(Is,{placement:"top",title:d,children:e.jsx("button",{className:i.syncEnabled?ks:Ds,onClick:()=>{const e=!(null==i?void 0:i.syncEnabled)&&(null==i?void 0:i.id);null==i||i.toggleSync(e),e?null==i||i.onQueryChange(n):(a(n),null==i||i.onQueryChange(""))},children:e.jsx(Hn,{className:`${i.syncEnabled?Us:Rs}`,icon:Zs.faLink})})}):null]})};var Vs="DiffLegend-module_flamegraph-legend__Cywr1",js="DiffLegend-module_flamegraph-legend-list__swdXj",_s="DiffLegend-module_flamegraph-legend-item__0P-6g";function Ss(t){const{palette:a,showMode:n}=t,i=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}`)}}(n),o=wi(a);return e.jsx("div",{"data-testid":"flamegraph-legend",className:`${Vs} ${js}`,children:i.map(t=>e.jsxs("div",{className:_s,style:{backgroundColor:o(t).rgb().toString()},children:[t>0?"+":"",t,"%"]},t))})}function Ms(){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"})})})}b(".DiffLegend-module_flamegraph-legend__Cywr1{align-items:center;display:flex;font-size:11px;justify-content:center}.DiffLegend-module_flamegraph-legend-list__swdXj{display:flex;justify-content:center}.DiffLegend-module_flamegraph-legend-item__0P-6g{overflow:hidden;text-align:center;white-space:nowrap;width:37px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRpZmZMZWdlbmQubW9kdWxlLmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw0Q0FFRSxrQkFBbUIsQ0FEbkIsWUFBYSxDQUViLGNBQWUsQ0FDZixzQkFDRixDQUVBLGlEQUNFLFlBQWEsQ0FDYixzQkFDRixDQUVBLGlEQU9FLGVBQWdCLENBTGhCLGlCQUFrQixDQUlsQixrQkFBbUIsQ0FMbkIsVUFPRiIsImZpbGUiOiJEaWZmTGVnZW5kLm1vZHVsZS5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZmxhbWVncmFwaC1sZWdlbmQge1xuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBmb250LXNpemU6IDExcHg7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xufVxuXG4uZmxhbWVncmFwaC1sZWdlbmQtbGlzdCB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xufVxuXG4uZmxhbWVncmFwaC1sZWdlbmQtaXRlbSB7XG4gIHdpZHRoOiAzN3B4O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG5cbiAgLyogaWYgZm9yIHNvbWUgcmVhc29uIHRoZSBjb250ZW50cyBjYW4ndCBmaXQgXG4gICAqIGRvbid0IGJyZWFrIGludG8gMiBsaW5lcyAqL1xuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xuICBvdmVyZmxvdzogaGlkZGVuO1xufVxuIl19 */");var Js="Dropdown-module_dropdownMenu__tbN8r",Es="Dropdown-module_dropdownMenuButton__Xy8M4";function zs({id:t,children:a,className:n,disabled:i,value:o,label:r,onItemClick:l,overflow:s,position:c,direction:d,align:u,viewScroll:m,arrow:b,menuButtonClassName:f="",ariaLabel:h,portal:g,...p}){const x=p.menuButton||e.jsx(Os,{"aria-label":h,className:`${Es} ${f}`,disabled:i,type:"button",children:o||r});return e.jsxs(nr,{id:t,"aria-label":h,className:ml(n,Js),"data-testid":p["data-testid"],onItemClick:l,overflow:s,position:c,direction:d,align:u,viewScroll:m,arrow:b,menuButton:x,portal:g,children:[e.jsx(rr,{children:r}),a]})}b('@charset "UTF-8";.Dropdown-module_dropdownMenu__tbN8r{box-shadow:0 2px 6px var(--ps-dropdown-shadow)!important;padding:.25rem 0}.Dropdown-module_dropdownMenu__tbN8r,.Dropdown-module_dropdownMenu__tbN8r ul[class*=szh-menu]{background-color:var(--ps-dropdown-background)!important;color:var(--ps-neutral-2)!important}.Dropdown-module_dropdownMenu__tbN8r li[class=szh-menu__header]{text-align:left}.Dropdown-module_dropdownMenu__tbN8r div[class*=hover],.Dropdown-module_dropdownMenu__tbN8r li[class*=hover]{background-color:var(--ps-ui-element-bg-highlight)}.Dropdown-module_dropdownMenu__tbN8r [class*=szh-menu--open]:empty{display:none}.Dropdown-module_dropdownMenu__tbN8r [class*="szh-menu__item active"]{background-color:var(--ps-ui-element-bg-highlight);color:var(--ps-selected-app)}.Dropdown-module_dropdownMenu__tbN8r [class*=szh-menu__item--focusable]{background-color:inherit!important;padding-bottom:1rem;padding-top:1rem}.Dropdown-module_dropdownMenu__tbN8r [class*=szh-menu__item--focusable] input{width:100%}.Dropdown-module_dropdownMenuButton__Xy8M4{background-color:var(--ps-ui-element-bg-primary);border:1px solid var(--ps-ui-border);border-radius:4px;display:flex;flex-shrink:0;margin-right:5px;outline:none;padding-right:20px;position:relative}.Dropdown-module_dropdownMenuButton__Xy8M4:after{content:"▾";position:absolute;right:5px;top:3px}.Dropdown-module_dropdownMenuButton__Xy8M4:hover{background-color:var(--ps-ui-element-bg-highlight);cursor:pointer}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRyb3Bkb3duLm1vZHVsZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZDQSxnQkFLQSxDQWpEQSxxQ0FFRSx3REFBNEQsQ0FENUQsZ0JBSUYsQ0FDQSw4RkFIRSx3REFBMEQsQ0FDMUQsbUNBS0YsQ0FDQSxnRUFDRSxlQUNGLENBQ0EsNkdBRUUsa0RBQ0YsQ0FDQSxtRUFDRSxZQUNGLENBQ0Esc0VBQ0Usa0RBQW1ELENBQ25ELDRCQUNGLENBQ0Esd0VBQ0Usa0NBQW9DLENBRXBDLG1CQUFvQixDQURwQixnQkFFRixDQUNBLDhFQUNFLFVBQ0YsQ0FFQSwyQ0FNRSxnREFBaUQsQ0FDakQsb0NBQXFDLENBRnJDLGlCQUFrQixDQUhsQixZQUFhLENBQ2IsYUFBYyxDQUtkLGdCQUFpQixDQVBqQixZQUFhLENBUWIsa0JBQW1CLENBTG5CLGlCQU1GLENBQ0EsaURBQ0UsV0FBWSxDQUNaLGlCQUFrQixDQUVsQixTQUFVLENBRFYsT0FFRixDQUNBLGlEQUVFLGtEQUFtRCxDQURuRCxjQUVGIiwiZmlsZSI6IkRyb3Bkb3duLm1vZHVsZS5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiQGNoYXJzZXQgXCJVVEYtOFwiO1xuLmRyb3Bkb3duTWVudSB7XG4gIHBhZGRpbmc6IDAuMjVyZW0gMDtcbiAgYm94LXNoYWRvdzogMHB4IDJweCA2cHggdmFyKC0tcHMtZHJvcGRvd24tc2hhZG93KSAhaW1wb3J0YW50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bkb3duTWVudSBbY2xhc3MqPXN6aC1tZW51X19pdGVtLS1mb2N1c2FibGVdIGlucHV0IHtcbiAgd2lkdGg6IDEwMCU7XG59XG5cbi5kcm9wZG93bk1lbnVCdXR0b24ge1xuICBvdXRsaW5lOiBub25lO1xuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4LXNocmluazogMDtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXBzLXVpLWVsZW1lbnQtYmctcHJpbWFyeSk7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXBzLXVpLWJvcmRlcik7XG4gIG1hcmdpbi1yaWdodDogNXB4O1xuICBwYWRkaW5nLXJpZ2h0OiAyMHB4O1xufVxuLmRyb3Bkb3duTWVudUJ1dHRvbjo6YWZ0ZXIge1xuICBjb250ZW50OiBcIuKWvlwiO1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogM3B4O1xuICByaWdodDogNXB4O1xufVxuLmRyb3Bkb3duTWVudUJ1dHRvbjpob3ZlciB7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHMtdWktZWxlbWVudC1iZy1oaWdobGlnaHQpO1xufSJdfQ== */');const As=or,Os=Vo;var Hs="DiffLegendPaletteDropdown-module_container__h8Tts",Ts="DiffLegendPaletteDropdown-module_triggerButton__oezA6",Ps="DiffLegendPaletteDropdown-module_dropdownArrow__-Lu0w",Ks="DiffLegendPaletteDropdown-module_menuItem__5iWry",$s="DiffLegendPaletteDropdown-module_menuItemText__a-tt0";b(".DiffLegendPaletteDropdown-module_container__h8Tts{align-items:center;display:flex}.DiffLegendPaletteDropdown-module_triggerButton__oezA6{align-items:center;background-color:var(--ps-immutable-off-white);border:1px solid var(--ps-ui-border);border-radius:4px;cursor:pointer;display:flex;gap:6px;height:37px;padding:4px 8px}.DiffLegendPaletteDropdown-module_triggerButton__oezA6:hover{background-color:var(--ps-ui-element-bg-highlight)}.DiffLegendPaletteDropdown-module_dropdownArrow__-Lu0w{color:var(--ps-text-secondary);font-size:8px;margin-left:4px}.DiffLegendPaletteDropdown-module_menuItem__5iWry{align-items:center;display:flex;gap:12px;justify-content:space-between;min-width:200px;padding:4px 0}.DiffLegendPaletteDropdown-module_menuItemText__a-tt0{color:var(--ps-text-primary);font-size:13px}.DiffLegendPaletteDropdown-module_row__Dgure{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:2px}.DiffLegendPaletteDropdown-module_row__Dgure p{font-size:13px;margin:0}.DiffLegendPaletteDropdown-module_dropdownWrapper__oQiLG{display:flex}.DiffLegendPaletteDropdown-module_diffPaletteDropdown__-mtm9{background-color:var(--ps-immutable-off-white);border:1px solid var(--ps-ui-border);border-radius:4px;cursor:pointer;padding:4px 8px}.DiffLegendPaletteDropdown-module_diffPaletteDropdown__-mtm9:hover{background-color:var(--ps-ui-element-bg-highlight)}.DiffLegendPaletteDropdown-module_dropdownItem__qp936{align-items:center;display:flex;gap:8px;margin-top:4px}.DiffLegendPaletteDropdown-module_dropdownItem__qp936 svg{flex-shrink:0;height:16px;width:16px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRpZmZMZWdlbmRQYWxldHRlRHJvcGRvd24ubW9kdWxlLmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQSxtREFFRSxrQkFBbUIsQ0FEbkIsWUFFRixDQUdBLHVEQUVFLGtCQUFtQixDQUtuQiw4Q0FBK0MsQ0FGL0Msb0NBQXFDLENBQ3JDLGlCQUFrQixDQUVsQixjQUFlLENBUGYsWUFBYSxDQUViLE9BQVEsQ0FNUixXQUFZLENBTFosZUFNRixDQUVBLDZEQUNFLGtEQUNGLENBRUEsdURBRUUsOEJBQStCLENBRC9CLGFBQWMsQ0FFZCxlQUNGLENBR0Esa0RBRUUsa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kZXI6IDFweCBzb2xpZCB2YXIoLS1wcy11aS1ib3JkZXIpO1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIHBhZGRpbmc6IDRweCA4cHg7XG4gIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXBzLWltbXV0YWJsZS1vZmYtd2hpdGUpO1xufVxuXG4uZGlmZlBhbGV0dGVEcm9wZG93bjpob3ZlciB7XG4gIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXBzLXVpLWVsZW1lbnQtYmctaGlnaGxpZ2h0KTtcbn1cblxuLmRyb3Bkb3duSXRlbSB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGdhcDogOHB4O1xuICBtYXJnaW4tdG9wOiA0cHg7XG59XG5cbi5kcm9wZG93bkl0ZW0gc3ZnIHtcbiAgd2lkdGg6IDE2cHg7XG4gIGhlaWdodDogMTZweDtcbiAgZmxleC1zaHJpbms6IDA7XG59XG4iXX0= */");const qs=[fr,hr],ec=t=>{const{palette:a=fr,onChange:n}=t,i=Br(),o=e=>"Default"===e.name?i.paletteDefaultName:"Color Blind"===e.name?i.paletteColorBlindName:e.name,r=e=>"Default"===e.name?i.paletteDefaultDesc:"Color Blind"===e.name?i.paletteColorBlindDesc:"";return e.jsx("div",{className:Hs,children:e.jsx(zs,{label:i.diffLegendSelectPalette,align:"end",menuButton:e.jsxs(Os,{className:ml(Es,Ts),children:[e.jsx(Ss,{palette:a,showMode:"small"}),e.jsx("span",{className:Ps})]}),onItemClick:e=>{e.value&&n(e.value)},children:qs.map(t=>e.jsx(As,{value:t,children:e.jsxs("div",{className:Ks,children:[e.jsxs("span",{className:$s,children:[o(t)," ",r(t)]}),t.name===a.name&&e.jsx(Ms,{})]})},t.name))})})};var tc={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"};b(".Toolbar-module_navbar__XN6xZ{align-items:center;background-color:var(--ps-fl-toolbar-bg);border:1px solid var(--ps-ui-border);display:flex;flex-direction:row;height:47px;justify-content:space-between;margin:10px 0;padding:4px;position:relative}.Toolbar-module_searchWrapper__k--ua{flex-shrink:0;width:360px}.Toolbar-module_rightSection__if7LO{align-items:center;display:flex;gap:4px}.Toolbar-module_viewType__AKARg{display:flex;flex-direction:row;flex-wrap:nowrap}.Toolbar-module_navbar__XN6xZ button{color:var(--ps-toolbar-icon-color)}.Toolbar-module_fitModeButton__jOxve,.Toolbar-module_toggleViewButton__OQ9-U{align-items:center;background-color:transparent;border-color:transparent;display:flex;height:37px;justify-content:center;margin:0 2px;min-width:auto;padding:0;width:40px}.Toolbar-module_fitModeButton__jOxve svg,.Toolbar-module_toggleViewButton__OQ9-U svg{height:22px;width:22px}.Toolbar-module_selected__vwBQt.Toolbar-module_fitModeButton__jOxve,.Toolbar-module_selected__vwBQt.Toolbar-module_fitModeButton__jOxve:hover,.Toolbar-module_toggleViewButton__OQ9-U.Toolbar-module_selected__vwBQt,.Toolbar-module_toggleViewButton__OQ9-U.Toolbar-module_selected__vwBQt:hover{background-color:var(--ps-fl-toolbar-btn-bg)}.Toolbar-module_selected__vwBQt.Toolbar-module_fitModeButton__jOxve svg,.Toolbar-module_toggleViewButton__OQ9-U.Toolbar-module_selected__vwBQt svg{color:#fff}.Toolbar-module_collapseNodeButton__bLdiw,.Toolbar-module_resetViewButton__y2ebV{background-color:transparent;border-color:transparent;height:37px;margin:0 2px;min-width:auto;padding:0;width:40px}.Toolbar-module_resetViewButton__y2ebV{margin:0 2px;min-width:auto;padding:0;width:40px}.Toolbar-module_divider__dG6pE{background-color:var(--ps-ui-border);height:37px;margin:0 2px;width:1px}.Toolbar-module_item__o-hKc,.Toolbar-module_itemsContainer__gSTMF{display:flex}.Toolbar-module_moreButton__rhOdT{border:none;border-radius:4px;height:37px;padding:0 5px}.Toolbar-module_moreButton__rhOdT.Toolbar-module_active__36Kt-,.Toolbar-module_moreButton__rhOdT.Toolbar-module_active__36Kt-:hover{background-color:var(--ps-fl-toolbar-btn-bg)}.Toolbar-module_moreButton__rhOdT:hover{background-color:var(--ps-ui-element-bg-highlight);cursor:pointer}.Toolbar-module_navbarCollapsedItems__vojhw{background-color:var(--ps-fl-toolbar-bg);border:1px solid var(--ps-ui-border);display:flex;height:47px;padding:4px;position:absolute;right:0;top:50px;z-index:1}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRvb2xiYXIubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsOEJBVUUsa0JBQW1CLENBSG5CLHdDQUF5QyxDQUN6QyxvQ0FBcUMsQ0FOckMsWUFBYSxDQUNiLGtCQUFtQixDQUduQixXQUFZLENBRFosNkJBQThCLENBRDlCLGFBQWMsQ0FLZCxXQUFZLENBUlosaUJBVUYsQ0FFQSxxQ0FFRSxhQUFjLENBRGQsV0FFRixDQUVBLG9DQUVFLGtCQUFtQixDQURuQixZQUFhLENBRWIsT0FDRixDQUVBLGdDQUNFLFlBQWEsQ0FDYixrQkFBbUIsQ0FDbkIsZ0JBQ0YsQ0FFQSxxQ0FDRSxrQ0FDRixDQUVBLDZFQVVFLGtCQUFtQixDQUhuQiw0QkFBNkIsQ0FEN0Isd0JBQXlCLENBRXpCLFlBQWEsQ0FQYixXQU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ZsLXRvb2xiYXItYnRuLWJnKTtcbn1cbi5tb3JlQnV0dG9uOmhvdmVyIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHMtdWktZWxlbWVudC1iZy1oaWdobGlnaHQpO1xuICBjdXJzb3I6IHBvaW50ZXI7XG59XG5cbi5uYXZiYXJDb2xsYXBzZWRJdGVtcyB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcmlnaHQ6IDA7XG4gIHRvcDogNTBweDtcbiAgaGVpZ2h0OiA0N3B4O1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wcy1mbC10b29sYmFyLWJnKTtcbiAgYm9yZGVyOiAxcHggc29saWQgdmFyKC0tcHMtdWktYm9yZGVyKTtcbiAgcGFkZGluZzogNHB4O1xuICB6LWluZGV4OiAxO1xufSJdfQ== */");const ac=G.bind(tc),nc=(e,t,a)=>{const n=0===t?e-360-5:e-360-16-5;let i=0,o=0;return a.reverse().forEach(e=>{o+=e,n<=o&&(i+=1)}),i},ic=()=>e.jsx("div",{className:tc.divider}),oc=t.memo(({view:a,handleSearchChange:n,highlightQuery:i,isFlamegraphDirty:o,reset:l,updateFitMode:s,fitMode:c,updateView:d,selectedNode:u,onFocusOnSubtree:m,flamegraphType:b,enableChangingDisplay:f=!0,sharedQuery:h,ExportData:g,palette:p,setPalette:x})=>{const G=t.useRef(null),Q=Br(),v="double"===b&&p&&x,I=[{el:e.jsxs(e.Fragment,{children:[e.jsx(sc,{fitMode:c,updateFitMode:s}),e.jsx(ic,{})]}),width:93},{el:e.jsx(lc,{isFlamegraphDirty:o,reset:l}),width:44},{el:e.jsxs(e.Fragment,{children:[e.jsx(rc,{selectedNode:u,onFocusOnSubtree:m}),e.jsx(ic,{})]}),width:49},f?{el:e.jsx(dc,{flamegraphType:b,view:a,updateView:d}),width:44*("single"===b?5:3)}:null,t.isValidElement(g)?{el:e.jsxs(e.Fragment,{children:[e.jsx(ic,{}),g]}),width:49}:null].filter(e=>null!==e),y=I.reduce((e,t)=>[...e,t.width],[]),{isCollapsed:B,collapsedItemsNumber:F,handleMoreClick:Z}=((e,a)=>{const[n,i]=t.useState(!0),[o,l]=t.useState(0);return t.useLayoutEffect(()=>{if(e.current){const{width:t}=e.current.getBoundingClientRect(),n=nc(t,o,a);l(n)}},[e.current,a]),r(e,e=>{const{width:t}=e.target.getBoundingClientRect(),n=nc(t,o,a);l(n),i(!0)}),{isCollapsed:n,handleMoreClick:()=>{i(e=>!e)},collapsedItemsNumber:o}})(G,y),L=I.reduce((e,t,a)=>(a<F?e.hidden.push(t):e.visible.push(t),e),{visible:[],hidden:[]});return e.jsx("div",{role:"toolbar",ref:G,children:e.jsxs("div",{className:tc.navbar,children:[e.jsx("div",{className:tc.searchWrapper,children:e.jsx(Ys,{width:360,onHighlightChange:n,highlightQuery:i,sharedQuery:h})}),e.jsxs("div",{className:tc.rightSection,children:[v&&e.jsxs(e.Fragment,{children:[e.jsx(ec,{palette:p,onChange:x}),e.jsx(ic,{})]}),e.jsxs("div",{className:tc.itemsContainer,children:[L.visible.map((t,a)=>e.jsx("div",{className:tc.item,style:{width:t.width},children:t.el},a)),0!==F&&e.jsx(Is,{placement:"top",title:Q.more,children:e.jsx("button",{onClick:Z,className:ac({[tc.moreButton]:!0,[tc.active]:!B}),children:e.jsx(Hn,{icon:Qs.faEllipsisV})})})]})]}),!B&&e.jsx("div",{className:tc.navbarCollapsedItems,children:L.hidden.map((t,a)=>e.jsx("div",{className:tc.item,style:{width:t.width},children:t.el},a))})]})})});function rc({onFocusOnSubtree:t,selectedNode:a}){const n=Br(),i=a.mapOr(()=>{},e=>()=>t(e.i,e.j));return e.jsx(Is,{placement:"top",title:n.collapseNodesAbove,children:e.jsx("div",{children:e.jsx(Yl,{disabled:!a.isJust,onClick:i,className:tc.collapseNodeButton,"aria-label":n.collapseNodesAbove,children:e.jsx(Hn,{icon:uo.faCompressAlt})})})})}function lc({isFlamegraphDirty:t,reset:a}){const n=Br();return e.jsx(Is,{placement:"top",title:n.resetView,children:e.jsx("span",{children:e.jsx(Yl,{id:"reset",disabled:!t,onClick:a,className:tc.resetViewButton,"aria-label":n.resetView,children:e.jsx(Hn,{icon:ss.faUndo})})})})}function sc({fitMode:t,updateFitMode:a}){const n=Br(),i=e=>t===e;return e.jsxs(e.Fragment,{children:[e.jsx(Is,{placement:"top",title:n.headFirst,children:e.jsx(Yl,{onClick:()=>a("HEAD"),className:ac({[tc.fitModeButton]:!0,[tc.selected]:i("HEAD")}),children:e.jsx(Mr,{})})}),e.jsx(Is,{placement:"top",title:n.tailFirst,children:e.jsx(Yl,{onClick:()=>a("TAIL"),className:ac({[tc.fitModeButton]:!0,[tc.selected]:i("TAIL")}),children:e.jsx(Jr,{})})})]})}const cc=(t,a)=>"single"===t?[{label:a.viewTable,value:"table",Icon:Vr},{label:a.viewTableAndFlamegraph,value:"both",Icon:jr},{label:a.viewFlamegraph,value:"flamegraph",Icon:_r},{label:a.viewSandwich,value:"sandwich",Icon:Sr},{label:a.viewGraphviz,value:"graphviz",Icon:()=>e.jsx(Hn,{icon:hs.faProjectDiagram})}]:[{label:a.viewTable,value:"table",Icon:Vr},{label:a.viewTableAndFlamegraph,value:"both",Icon:jr},{label:a.viewFlamegraph,value:"flamegraph",Icon:_r}];function dc({view:t,updateView:a,flamegraphType:n}){const i=Br(),o=cc(n,i);return e.jsx("div",{className:tc.viewType,children:o.map(({label:n,value:i,Icon:o})=>e.jsx(Is,{placement:"top",title:n,children:e.jsx(Yl,{"data-testid":i,onClick:()=>a(i),className:ac({[tc.toggleViewButton]:!0,selected:t===i}),children:e.jsx(o,{})})},i))})}function uc(e,t){const a={},n={};let i={name:"total",children:[],self:[],total:[],key:"/total"};return(t?[e,t]:[e]).forEach((e,t)=>{var o,r;for(let l=0;l<e.levels.length;l+=1)for(let s=0;s<e.levels[l].length;s+=4){const c=[t,l,s].join("/"),d=e.names[e.levels[l][s+3]],u=e.levels[l][s+0],m=e.levels[l][s+1],b=e.levels[l][s+2];let f="";if(0!==l){const a=l-1,i=e.levels[a];for(let e=0;e<i.length;e+=4){const o=i[e+0],r=i[e+1];if(u>=o&&u<o+r){const i=[t,a,e].join("/");f=n[i].key;break}}}const h=[f||"",d].join("/"),g=!a[h];a[h]||(a[h]={name:d,children:[],self:[],total:[],key:h});const p=a[h];(o=p.total)[t]||(o[t]=0),p.total[t]+=m,(r=p.self)[t]||(r[t]=0),p.self[t]+=b,n[c]=p,f&&g&&a[f].children.push(p),0===l&&(i=p)}}),i}const mc=e=>{const t={maxSelf:100,names:[],levels:[]},a=(e,n,i)=>{var o;const{name:r,children:l,self:s,total:c,offset:d}=e;t.names.push(r),(o=t.levels)[n]||(o[n]=[]),t.maxSelf=Math.max(t.maxSelf,s[0]||0),t.levels[n]=t.levels[n].concat([i,c[0]||0,s[0]||0,t.names.length-1]);for(let e=0;e<l.length;e+=1){i+=a(l[e],n+1,i)}return d||c[0]||0};return a(e,0,0),t};function bc(e){const t=new Map;for(let a=0;a<e.children.length;a+=1)t.has(e.children[a].name)||t.set(e.children[a].name,e.children[a]);for(let a=0;a<e.children.length;a+=1){const n=e.children[a],i=t.get(e.children[a].name);i&&i!==n&&(i.total[0]+=n.total[0],i.self[0]+=n.self[0],i.children=i.children.concat(n.children))}e.children=Array.from(t.values());for(let t=0;t<e.children.length;t+=1)bc(e.children[t])}function fc(e,t){const a=function(e,t){const a=uc(e),n={format:"single",numTicks:0,maxSelf:100,sampleRate:100,names:[],levels:[],units:e.units,spyName:e.spyName},i={name:t,total:[],self:[0],children:[]},o=e=>{e.name===t&&(n.numTicks+=e.total[0],i.total=[n.numTicks],i.children=i.children.concat(e.children));for(let t=0;t<e.children.length;t+=1)o(e.children[t])};return o(a),bc(i),{...n,...mc(i)}}(JSON.parse(JSON.stringify(e)),t);return a}function hc(e,t){const a=function(e,t){const a=uc(e),n={format:"single",maxSelf:100,sampleRate:100,numTicks:0,names:[],levels:[],units:e.units,spyName:e.spyName},i=[],o=[],r={name:t,total:[0],self:[0],children:[]},l=(e,a=[])=>{const r=a.concat([{...e,children:[]}]);e.name===t&&(o.push(r),i.push(e.total[0]),n.numTicks+=e.total[0]);for(let t=0;t<e.children.length;t+=1)l(e.children[t],r)};l(a),o.forEach((e,t)=>{r.children.push(((e,t)=>{const a={};let n=a;return e.forEach(({name:e,...a})=>{const i={name:e,...a,total:[t]};n.children=[i],n=i}),a.children[0]})(e.reverse(),i[t]))}),bc(r);const s=mc(r);return s.levels=s.levels.reverse().slice(0,-1),{...n,...s}}(JSON.parse(JSON.stringify(e)),t);return a}var gc={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"};b(".FlamegraphRenderer-module_flamegraphContainer__-7FRV{width:100%}.FlamegraphRenderer-module_flamegraphContainer__-7FRV>:first-child{margin-right:8px}.FlamegraphRenderer-module_flamegraphContainer__-7FRV>:nth-child(2){margin-left:8px}.FlamegraphRenderer-module_createdBy__rHAOT{color:#fff;margin:10px 0;text-align:center}.FlamegraphRenderer-module_createdBy__rHAOT a{color:#199bef!important}.FlamegraphRenderer-module_horizontal__zs7--{flex-direction:row}.FlamegraphRenderer-module_vertical__fRcHg{flex-direction:column-reverse}.FlamegraphRenderer-module_panesWrapper__L-mlA{display:flex}.FlamegraphRenderer-module_sandwichPane__IEOyR,.FlamegraphRenderer-module_tablePane__Gin7Y{flex:1}.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichPaneInfo__5hT4a{background-color:var(--ps-sandwich-pane-info-bg);border-radius:5px;color:var(--ps-neutral-1);display:inline-block;margin:30px 0 0 10px;padding:8px;position:relative}.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichPaneInfo__5hT4a.FlamegraphRenderer-module_vertical__fRcHg{margin:30px 0}.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichPaneInfo__5hT4a.FlamegraphRenderer-module_vertical__fRcHg .FlamegraphRenderer-module_arrow__dPzpE{bottom:-15px;left:20px;top:auto;transform:rotate(-90deg)}.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichPaneInfo__5hT4a .FlamegraphRenderer-module_arrow__dPzpE{border-color:transparent var(--ps-sandwich-pane-info-bg) transparent transparent;border-style:solid;border-width:8px 20px 8px 0;height:0;left:-20px;position:absolute;top:14px;width:0}.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichTop__7N0ZY{margin-bottom:10px}.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichBottom__Dc64g,.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichTop__7N0ZY{display:flex}.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichBottom__Dc64g .FlamegraphRenderer-module_name__XRbN9,.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichTop__7N0ZY .FlamegraphRenderer-module_name__XRbN9{padding:5px 0;transform:rotate(-180deg);writing-mode:vertical-rl}.FlamegraphRenderer-module_sandwichPane__IEOyR .FlamegraphRenderer-module_sandwichBottom__Dc64g span{text-align:right}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2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bmUgLnNhbmR3aWNoUGFuZUluZm8udmVydGljYWwgLmFycm93IHtcbiAgdG9wOiBpbml0aWFsO1xuICBib3R0b206IC0xNXB4O1xuICBsZWZ0OiAyMHB4O1xuICB0cmFuc2Zvcm06IHJvdGF0ZSgtOTBkZWcpO1xufVxuLnNhbmR3aWNoUGFuZSAuc2FuZHdpY2hQYW5lSW5mbyAuYXJyb3cge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogMTRweDtcbiAgbGVmdDogLTIwcHg7XG4gIHdpZHRoOiAwO1xuICBoZWlnaHQ6IDA7XG4gIGJvcmRlci1zdHlsZTogc29saWQ7XG4gIGJvcmRlci13aWR0aDogOHB4IDIwcHggOHB4IDA7XG4gIGJvcmRlci1jb2xvcjogdHJhbnNwYXJlbnQgdmFyKC0tcHMtc2FuZHdpY2gtcGFuZS1pbmZvLWJnKSB0cmFuc3BhcmVudCB0cmFuc3BhcmVudDtcbn1cbi5zYW5kd2ljaFBhbmUgLnNhbmR3aWNoVG9wIHtcbiAgbWFyZ2luLWJvdHRvbTogMTBweDtcbn1cbi5zYW5kd2ljaFBhbmUgLnNhbmR3aWNoVG9wLFxuLnNhbmR3aWNoUGFuZSAuc2FuZHdpY2hCb3R0b20ge1xuICBkaXNwbGF5OiBmbGV4O1xufVxuLnNhbmR3aWNoUGFuZSAuc2FuZHdpY2hUb3AgLm5hbWUsXG4uc2FuZHdpY2hQYW5lIC5zYW5kd2ljaEJvdHRvbSAubmFtZSB7XG4gIHdyaXRpbmctbW9kZTogdmVydGljYWwtcmw7XG4gIHRyYW5zZm9ybTogcm90YXRlKC0xODBkZWcpO1xuICBwYWRkaW5nOiA1cHggMDtcbn1cbi5zYW5kd2ljaFBhbmUgLnNhbmR3aWNoQm90dG9tIHNwYW4ge1xuICB0ZXh0LWFsaWduOiByaWdodDtcbn0iXX0= */");function pc(e){const t=[];return Object.keys(e).forEach(a=>{var n;t.push(`${a}="${n=String(e[a]||""),n.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`)}),`[${t.join(" ")}]`}function xc(e,t){return`${(100*e/t).toFixed(2)}%`}function Gc(e,t){let a,n,i,o;t?(a=.1,n=.93):(a=1,n=.7),e=Math.max(-1,Math.min(1,e)),Math.abs(e)<.2&&(a*=Math.abs(e)/.2),e>0&&(e**=1-.7),e<0&&(e=-((-e)**(1-.7))),e<0?(o=n,i=n*(1+a*e)):(i=n,o=n*(1-a*e));const r=n*(1-a);return`#${Math.floor(255*i).toString(16).padStart(2,"0")}${Math.floor(255*o).toString(16).padStart(2,"0")}${Math.floor(255*r).toString(16).padStart(2,"0")}`}function Qc(e,t,a,n){const{self:i}=t,{total:o}=t,r=t.name.replace(/"/g,'\\"'),l=e(i),s=8+Math.ceil(16*Math.sqrt(i/a)),c=Gc(o/n,!1),d=Gc(o/n,!0),u=function(e,t,a,n,i){let o="";o=`${function(e){return e.replace(/.*\//,"")}(t)}\n`;const r=e(a);0!==a?o=`${o+r} (${xc(a,i)})`:o+="0";let l=r;n!==a&&(o+=0!==a?"\n":" ",l=e(n),o=`${o}of ${l} (${xc(n,i)})`);return o}(e,r,i,o,n),m={label:u,id:`node${t.index}`,fontsize:s,shape:"box",tooltip:`${r} (${l})`,color:c,fontcolor:"#000000",style:"filled",fontname:"",fillcolor:d};return`N${t.index} ${pc(m)}`}function vc(e){if("double"===e.metadata.format)return"diff flamegraphs are not supported";const t=uc(e.flamebearer),a=[],n=[];const[i,o,,r]=function e(t,a,n,i,o){return t.children.forEach(t=>{const[r,l]=e(t,a,n,i,o);a=Math.max(a,r),n=Math.max(n,l)}),a=Math.max(a,t.self[0]),n=Math.max(n,t.total[0]),i+=t.self[0],o+=t.total[0],[a,n,i,o]}(t,0,0,0,0),{sampleRate:l,units:s}=e.metadata,c=xi(o,l,s),d=e=>c.format(e,l,!0);let u={};const m={};let b=0;function f(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]):(b+=1,u[e.name]={index:b,name:e.name,self:e.self[0],total:e.total[0],parents:[],children:[]})),e.children.forEach(a=>{const n=f(a,t.concat([e.name])),i=`${e.name}/${a.name}`;a.name!==e.name&&(m[i]?m[i].weight+=a.total[0]:m[i]={from:u[e.name],to:n,weight:a.total[0],residual:!1},n.parents.push(m[i]),u[e.name].children.push(m[i]))}),u[e.name]}t.children.forEach(e=>{f(e,[])});const h=.005*r,g=.001*r;function p(e,t){let a=0,n=t;if(e.forEach(e=>{e.weight>0&&(n+=Math.abs(e.weight))}),0!==n&&(e.forEach(e=>{const t=Math.abs(e.weight)/n;a+=-t*Math.log2(t)}),t>0)){const e=Math.abs(t)/n;a+=-e*Math.log2(e)}return a}Object.keys(u).forEach(e=>{u[e].total<h&&delete u[e]});const x={};Object.keys(u).forEach(e=>{x[u[e].name]=function(e){let t=0;return 0===e.parents.length?t+=1:t+=p(e.parents,0),0===e.children.length?t+=1:t+=p(e.children,e.self),t*e.total+e.self}(u[e])});const G=Object.values(u).sort((e,t)=>{const a=x[e.name],n=x[t.name];return a!==n?n-a:e.name!==t.name?e.name<t.name?-1:1:e.self!==t.self?n-a:e.name<t.name?-1:1}),Q={};function v(e){const[t,a]=[e.from,e.to],n={},i=[a];for(;i.length>0;){const a=i.shift();for(let o=0;o<a.parents.length;o+=1){const r=a.parents[o];if(e!==r&&!n[r.from.name]){if(r.from===t)return!0;n[r.from.name]=!0,i.push(r.from)}}}return!1}return G.forEach(e=>{Q[e.name]=e}),G.slice(80).forEach(e=>{delete Q[e.name]}),function e(t,a){const n=!Q[t.name];t.children.forEach(i=>{const o=!Q[i.name];if(e(i,n?a:t),!o&&a&&n){const e=`${a.name}/${i.name}`;m[e]||(m[e]={from:u[a.name],to:u[i.name],weight:0,residual:!0}),m[e].weight+=i.total[0],m[e].residual=!0}})}(t,null),u=Q,G.reverse().forEach(e=>{const t=e.parents.sort((e,t)=>t.weight-e.weight),a=[];for(let e=0;e<t.length;e+=1){const n=t[e];if(!n.residual)break;v(n)&&(a.push(n),delete m[`${n.from.name}/${n.to.name}`])}a.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(m).forEach(e=>{const t=m[e];u[t.from.name]||delete m[e],u[t.to.name]||delete m[e],t.weight<g&&delete m[e]}),Object.keys(u).forEach(e=>{a.push(Qc(d,u[e],i,o))}),Object.keys(m).forEach(e=>{n.push(function(e,t,a){const n=t.from.name.replace(/"/g,'\\"'),i=t.to.name.replace(/"/g,'\\"'),o=t.weight,r=e(t.weight),l=`${n} -> ${i} (${r})`,s={label:r,weight:1+100*o/a,penwidth:1+5*o/a,tooltip:l,labeltooltip:l,fontname:"",color:Gc(o/a,!1),style:t.residual?"dotted":""};return`N${t.from.index} -> N${t.to.index} ${pc(s)}`}(d,m[e],o))}),`digraph "unnamed" {\n fontname= ""\n ${a.join("\n")}\n ${n.join("\n")}\n }`}var Ic="GraphVizPanel-module_graphVizPane__B18cQ";b(".GraphVizPanel-module_graphVizPane__B18cQ{display:flex;flex:1}.GraphVizPanel-module_graphVizPane__B18cQ.GraphVizPanel-module_graphVizPane__B18cQ{border:1px solid var(--ps-ui-border);margin-right:0}.GraphVizPanel-module_graphVizPane__B18cQ div[id^=graphviz]{overflow:hidden;width:100%}.GraphVizPanel-module_graphVizPane__B18cQ div[id^=graphviz] .graph>polygon{fill:none}.GraphVizPanel-module_graphVizPane__B18cQ div[id^=graphviz] .edge text[text-anchor=middle]{fill:var(--ps-toolbar-icon-color)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkdyYXBoVml6UGFuZWwubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsMENBQ0UsWUFBYSxDQUNiLE1BQ0YsQ0FDQSxtRkFFRSxvQ0FBcUMsQ0FEckMsY0FFRixDQUNBLDREQUVFLGVBQWdCLENBRGhCLFVBRUYsQ0FDQSwyRUFDRSxTQUNGLENBQ0EsMkZBQ0UsaUNBQ0YiLCJmaWxlIjoiR3JhcGhWaXpQYW5lbC5tb2R1bGUuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5ncmFwaFZpelBhbmUge1xuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4OiAxO1xufVxuLmdyYXBoVml6UGFuZS5ncmFwaFZpelBhbmUge1xuICBtYXJnaW4tcmlnaHQ6IDA7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXBzLXVpLWJvcmRlcik7XG59XG4uZ3JhcGhWaXpQYW5lIGRpdltpZF49Z3JhcGh2aXpdIHtcbiAgd2lkdGg6IDEwMCU7XG4gIG92ZXJmbG93OiBoaWRkZW47XG59XG4uZ3JhcGhWaXpQYW5lIGRpdltpZF49Z3JhcGh2aXpdIDpnbG9iYWwgLmdyYXBoID4gcG9seWdvbiB7XG4gIGZpbGw6IG5vbmU7XG59XG4uZ3JhcGhWaXpQYW5lIGRpdltpZF49Z3JhcGh2aXpdIDpnbG9iYWwgLmVkZ2UgdGV4dFt0ZXh0LWFuY2hvcj1taWRkbGVdIHtcbiAgZmlsbDogdmFyKC0tcHMtdG9vbGJhci1pY29uLWNvbG9yKTtcbn0iXX0= */");const yc=()=>null;function Bc({flamebearer:a}){var n,i;const o=a,r=(null===(n=o.metadata)||void 0===n?void 0:n.format)&&(null===(i=o.flamebearer)||void 0===i?void 0:i.levels),l=`graphviz-pane-${(null==o?void 0:o.appName)||String((new Date).valueOf())}`,s=t.useMemo(()=>vc(o),[JSON.stringify(o)]);return e.jsx("div",{className:Ic,children:r?e.jsx(yc,{options:{zoom:!0,width:"150%",height:"100%",scale:1,useWorker:!1},dot:s}):e.jsx("div",{children:"NO DATA"})},l)}function Fc(e,t){const a=[...t];function n(e,t,a){for(const n of e){let e=0;for(let i=t;i<n.length;i+=a)n[i]-=e,e+=n[i]+n[i+1]}}return"double"===e?(n(a,0,7),n(a,3,7)):n(a,0,4),a}function Zc(e,t){const a=[...t];function n(e,t,a){for(const n of e){let e=0;for(let i=t;i<n.length;i+=a)n[i]+=e,e=n[i]+n[i+1]}}return"double"===e?(n(a,0,7),n(a,3,7)):n(a,0,4),a}function Lc(e){if(e.profile&&e.flamebearer&&console.warn("'profile' and 'flamebearer' properties are mutually exclusive. Please use profile if possible."),e.profile){const a={...e.profile,flamebearer:{...e.profile.flamebearer}};a.flamebearer.levels=JSON.parse(JSON.stringify(a.flamebearer.levels)),(t=a).flamebearer.levels=Zc(t.metadata.format,t.flamebearer.levels);const n={...a,...a.metadata,...a.flamebearer,flamebearer:void 0,metadata:void 0};return delete n.flamebearer,delete n.metadata,n}var t;if(e.flamebearer)return e.flamebearer;return{format:"single",names:[],units:"unknown",levels:[[]],spyName:"unknown",numTicks:0,sampleRate:0,maxSelf:0}}class Nc extends t.Component{constructor(t){super(t),this.resetFlamegraphState={focusedNode:a.Maybe.nothing(),zoom:a.Maybe.nothing()},this.initialFlamegraphState=this.resetFlamegraphState,this.calcNewConfigs=(e,t)=>{const a=this.state.flamegraphConfigs,n=(e,t,a)=>{const n=(e,t,a)=>e.names[ii(e.format).getBarName(e.levels[t],a)];if(a.isNothing)return!0;try{const i=a,o=n(e,i.value.i,i.value.j);return o===n(t,i.value.i,i.value.j)}catch{return!1}};n(e,t,this.state.flamegraphConfigs.zoom)||(a.zoom=this.resetFlamegraphState.zoom);return n(e,t,this.state.flamegraphConfigs.focusedNode)||(a.focusedNode=this.resetFlamegraphState.focusedNode),a},this.onSearchChange=e=>{this.setState({searchQuery:e})},this.isSameFlamebearer=(e,t)=>function(e,t){var a;return e.format===t.format&&e.numTicks===t.numTicks&&e.sampleRate===t.sampleRate&&e.units===t.units&&(null===(a=e.names)||void 0===a?void 0:a.length)===(null==t?void 0:t.names.length)&&e.levels.length===t.levels.length&&!!e.names.every((e,a)=>e===t.names[a])&&!!function(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){if(e[a].length!==t[a].length)return!1;for(let n=0;n<e[a].length;n++)if(e[a][n]!==t[a][n])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:a.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 n={...this.state.flamegraphConfigs};const{zoom:i}=this.state.flamegraphConfigs;i.isJust&&i.value.i<=e&&(n={...n,zoom:this.initialFlamegraphState.zoom}),this.setState({...this.state,flamegraphConfigs:{...n,focusedNode:a.Maybe.just({i:e,j:t})}})},this.isNameInFocusedSubtree=e=>{const{focusedNode:t}=this.state.flamegraphConfigs;if(t.isNothing)return!0;const{flamebearer:a}=this.state;if(!a||!a.levels)return!0;const{names:n,levels:i,format:o}=a,r=ii(o),l=t.value.i,s=t.value.j,c=i[l];if(!c)return!0;const d=r.getBarOffset(c,s),u=d+r.getBarTotal(c,s);for(let t=l;t<i.length;t++){const a=i[t];for(let t=0;t<a.length;t+=r.jStep){const i=r.getBarOffset(a,t),o=r.getBarTotal(a,t);if(i>=d&&i+o<=u){if(n[r.getBarName(a,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:a.Maybe.nothing()});this.isNameInFocusedSubtree(t)?this.setState({selectedItem:a.Maybe.just(t)}):this.setState({selectedItem:a.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.clearFocus=()=>{this.setState(e=>({...e,flamegraphConfigs:{...e.flamegraphConfigs,...this.resetFlamegraphState}}))},this.getActiveRange=()=>{const{flamebearer:e}=this.state,{zoom:t,focusedNode:a}=this.state.flamegraphConfigs,n=e.numTicks;if(!n)return{rangeMin:0,rangeMax:1};const i=ii(e.format),o=t=>{const a=e.levels[t.i];if(!a)return{rangeMin:0,rangeMax:1};const o=i.getBarOffset(a,t.j),r=i.getBarTotal(a,t.j);return{rangeMin:o/n,rangeMax:(o+r)/n}};return t.match({Just:e=>a.match({Just:t=>{const a=o(t),n=o(e);return a.rangeMax-a.rangeMin<n.rangeMax-n.rangeMin?a:n},Nothing:()=>o(e)}),Nothing:()=>a.match({Just:e=>o(e),Nothing:()=>({rangeMin:0,rangeMax:1})})})},this.isDirty=()=>this.state.selectedItem.isJust||JSON.stringify(this.initialFlamegraphState)!==JSON.stringify(this.state.flamegraphConfigs),this.handleSetPalette=e=>{this.setState({palette:e})},this.render=()=>{var t;const a=e.jsx("div",{className:_i(gc.tablePane,"vertical"===this.state.panesOrientation?gc.vertical:gc.horizontal),children:e.jsx(ql,{"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(),i=!this.state.flamebearer||this.state.flamebearer.names.length<=1,o=this.context,r="Location"!==o.location,l=this.state.flamebearer.numTicks,s=xi(l,this.state.flamebearer.sampleRate,this.state.flamebearer.units).format(l,this.state.flamebearer.sampleRate),c=fi(s,r)||s,u=function(e,t=hi){const a=Math.abs(e);for(const{value:n,label:i}of t)if(a>=n)return`${(e/n).toFixed(2).replace(/\.?0+$/,"")} ${i}`;return mi(e)}(l,o.sampleCountFormat),m=o.tooltipSamples.replace(/[::]\s*$/,""),b=(null===(t=o.tooltipUnitTitles[this.state.flamebearer.units])||void 0===t?void 0:t.formattedValue)||o.tooltipUnitTitles.unknown.formattedValue,f=this.getActiveRange(),h=f.rangeMin>0||f.rangeMax<1,g=Math.max(0,Math.min(l,(f.rangeMax-f.rangeMin)*l)),p=l>0?g/l*100:0,x=(()=>{const e=ii(this.state.flamebearer.format),t=this.state.flamegraphConfigs.focusedNode.mapOrElse(()=>this.state.flamegraphConfigs.zoom.mapOrElse(()=>null,e=>e),e=>e);if(!t)return"";const a=this.state.flamebearer.levels[t.i];if(!a)return"";const n=e.getBarName(a,t.j);return this.state.flamebearer.names[n]||""})(),G=e.jsx(ll,{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,breadcrumb:i?void 0:{totalValueText:c,totalSamplesText:u,samplesLabel:m,unitLabel:b,hasFocus:h,focusPercent:p,focusLabel:x,ofTotalPlacement:r?"before":"after",ofTotalLabel:o.ofTotal,clearFocusLabel:o.clearFocus,onClearFocus:this.clearFocus}},"flamegraph-pane"),Q=(()=>{if("sandwich"!==this.state.view)return e.jsx("div",{className:gc.sandwichPane},"sandwich-pane");if(this.state.selectedItem.isNothing)return e.jsx("div",{className:gc.sandwichPane,children:e.jsxs("div",{className:_i(gc.sandwichPaneInfo,"vertical"===this.state.panesOrientation?gc.vertical:gc.horizontal),children:[e.jsx("div",{className:gc.arrow}),"Select a function to view callers/callees sandwich view"]})},"sandwich-pane");const t=hc(this.state.flamebearer,this.state.selectedItem.value),a=fc(this.state.flamebearer,this.state.selectedItem.value),i=t=>e.jsx(ll,{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:gc.sandwichPane,children:[e.jsxs("div",{className:gc.sandwichTop,children:[e.jsx("span",{className:gc.name,children:"Callers"}),i({flamebearer:t})]}),e.jsxs("div",{className:gc.sandwichBottom,children:[e.jsx("span",{className:gc.name,children:"Callees"}),i({flamebearer:a,headerVisible:!1,showSingleLevel:!0})]})]},"sandwich-pane")})(),v=function(e,t,a,n,i){switch(e){case"table":return[a];case"flamegraph":return[t];case"sandwich":return[a,n];case"both":return[a,t];case"graphviz":return[i];default:throw new Error(`Invalid view '${e}'`)}}(this.state.view,G,a,Q,e.jsx(Bc,{flamebearer:this.state.flamebearer}));return e.jsxs("div",{children:[e.jsxs("div",{children:[n&&e.jsx(oc,{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:`${gc.flamegraphContainer} ${_i("vertical"===this.state.panesOrientation?gc.vertical:gc.horizontal,gc[this.state.panesOrientation],gc.panesWrapper)}`,children:i?e.jsx(Mi,{}):v.map(e=>e)})]}),this.props.showPyroscopeLogo&&e.jsxs("div",{className:gc.createdBy,children:["Created by",e.jsxs("a",{href:"https://twitter.com/PyroscopeIO",rel:"noreferrer",target:"_blank",children:[e.jsx(d,{width:"30",height:"30"}),"@PyroscopeIO"]})]})]})},this.state={isFlamegraphDirty:!1,view:this.props.onlyDisplay?this.props.onlyDisplay:"both",fitMode:"HEAD",flamebearer:Lc(t),panesOrientation:t.panesOrientation?t.panesOrientation:"horizontal",searchQuery:"",selectedItem:a.Maybe.nothing(),flamegraphConfigs:this.initialFlamegraphState,palette:fr}}componentDidUpdate(e,t){if(e.profile!==this.props.profile||e.flamebearer!==this.props.flamebearer){const e=t.flamebearer,n=Lc(this.props);if(!this.isSameFlamebearer(e,n)){const t=this.calcNewConfigs(e,n);return void this.setState({flamebearer:n,flamegraphConfigs:{...this.state.flamegraphConfigs,...t},selectedItem:a.Maybe.nothing()})}}t.flamegraphConfigs!==this.state.flamegraphConfigs&&this.updateFlamegraphDirtiness()}shouldShowToolbar(){return void 0===this.props.showToolbar||this.props.showToolbar}}Nc.contextType=Ir,Nc.defaultProps={showCredit:!1};const Xc={showPyroscopeLogo:!1},wc=(e,t)=>{if(t)return t;const a=null!=e?e:"auto";return"zh-CN"===("auto"===a?"undefined"!=typeof navigator&&navigator.language&&navigator.language.toLowerCase().startsWith("zh")?"zh-CN":"en":a)?Qr:Gr};exports.Box=function(t){const{children:a,noPadding:n,className:i="",theme:o="dark"}=t,r=n?"":Tn.padding;return e.jsx("div",{className:`${Tn.box} ${r} ${i}`,"data-theme":o,children:a})},exports.DefaultPalette=fr,exports.Flamegraph=Vi,exports.FlamegraphI18nProvider=yr,exports.FlamegraphRenderer=a=>{const{i18n:n,locale:i,colorMode:o="light",sandwich:r=!0,...l}=a,s=t.useMemo(()=>wc(i,n),[i,n]),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(yr,{messages:s,children:e.jsx(Nc,{...Xc,enableSandwichView:r,...l})})})},exports.convertJaegerTraceToProfile=function(e){const t={numTicks:0,maxSelf:0,names:[],levels:[]},a={},n={children:[]};return e.spans.forEach(e=>{e.children=[],a[e.spanID]=e}),e.spans.forEach(e=>{let t=n;e.references&&e.references.length>0&&(t=a[e.references[0].spanID]||n),t.children.push(e)}),function e(t,a){(t.children||[]).forEach(t=>e(t));let n=0;const i=u(t.children||[],e=>e.operationName);t.children=m(i,e=>{const t=e[0];for(let a=1;a<e.length;a+=1)t.duration+=e[a].duration;return n+=t.duration,t}),t.total=t.duration||n,t.self=Math.max(0,t.total-n)}(n),function a(n,i,o){var r;return t.numTicks||(t.numTicks=n.total),(r=t.levels)[i]||(r[i]=[]),t.levels[i].push(o),t.levels[i].push(n.total),t.levels[i].push(n.self),t.names.push((n.processID?`${e.processes[n.processID].serviceName}: `:"")+(n.operationName||"total")),t.levels[i].push(t.names.length-1),(n.children||[]).forEach(e=>{o+=a(e,i+1,o)}),n.total}(n,0,0),t.levels=Fc("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=Zc("single",e.flamebearer.levels),t.flamebearer.levels=Zc("single",t.flamebearer.levels);const a=function(e,t){const a={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},n=uc(e,t),i=(e,t,n,o)=>{var r;const{name:l,children:s,self:c,total:d}=e;a.names.push(l),(r=a.levels)[t]||(r[t]=[]),a.maxSelf=Math.max(a.maxSelf,c[0]||0,c[1]||0),a.levels[t]=a.levels[t].concat([n,d[0]||0,c[0]||0,o,d[1]||0,c[1]||0,a.names.length-1]);for(let e=0;e<s.length;e+=1){const[a,r]=i(s[e],t+1,n,o);n+=a,o+=r}return[d[0]||0,d[1]||0]};return i(n,0,0,0),a}(e.flamebearer,t.flamebearer);a.levels=Fc("double",a.levels);const n={...e.metadata};return n.format="double",{version:1,flamebearer:a,metadata:n,leftTicks:e.flamebearer.numTicks,rightTicks:t.flamebearer.numTicks}},exports.flamegraphDefaultMessages=Gr,exports.flamegraphZhCNMessages=Qr;
|
|
18
18
|
//# sourceMappingURL=index.cjs.js.map
|