UNPKG

jsroot

Version:
2 lines 2.52 MB
// https://root.cern/js/ v7.9.1 !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).JSROOT=t.JSROOT||{})}(this,(function(t){"use strict";var e="undefined"!=typeof document?document.currentScript:null;const i="7.9.1",n="19/05/2025",s=i+" "+n,r=Boolean("object"==typeof process&&process.versions?.node&&process.versions.v8),a={id_counter:1},o="undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:"undefined"==typeof document?location.href:e&&"SCRIPT"===e.tagName.toUpperCase()&&e.src||new URL("jsroot.min.js",document.baseURI).href,l="$jsrootsys";function h(t){return t&&"object"==typeof t}function c(t){return"function"==typeof t}function d(t){return"string"==typeof t}function f(t){return h(t)&&c(t.then)}function u(t,e){return new Promise((i=>{setTimeout((()=>{const e=c(t)?t():t;i(e)}),e)}))}function p(t){return f(t)?t:Promise.resolve(t)}if(t.source_dir="","$"!==l[0])t.source_dir=l;else if(o&&d(o)){let e=o.indexOf("modules/core.mjs");e<0&&(e=o.indexOf("build/jsroot.js")),e<0&&(e=o.indexOf("build/jsroot.min.js")),e>=0?t.source_dir=o.slice(0,e):a.ignore_v6=!0}r||(t.source_dir?console.log(`Set jsroot source_dir to ${t.source_dir}, ${s}`):console.log(`jsroot bundle, ${s}`));let m=r;function g(){return m}function _(t){m=Boolean(t)}function x(){return r}const y=x()?t=>Buffer.from(t,"base64").toString("latin1"):globalThis?.atob,v=x()?t=>Buffer.from(t,"latin1").toString("base64"):globalThis?.btoa,A={isFirefox:!0,isSafari:!1,isChrome:!1,isWin:!1,touches:!1,screenWidth:1200};function b(t){if(t.length<14||0!==t.indexOf("[object "))return 0;const e=t.indexOf("Array]");return e<0||e!==t.length-6?0:14===t.length?1:2}"undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!=typeof navigator&&(navigator.userAgentData?.brands?.forEach((t=>{"HeadlessChrome"===t.brand?(A.isChromeHeadless=!0,A.chromeVersion=parseInt(t.version)):"Chromium"===t.brand&&(A.isChrome=!0,A.chromeVersion=parseInt(t.version))})),A.chromeVersion?(A.isFirefox=!1,A.isWin="Windows"===navigator.userAgentData.platform):(A.isFirefox=navigator.userAgent.indexOf("Firefox")>=0,A.isSafari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,A.isChrome=Boolean(window.chrome),A.isChromeHeadless=navigator.userAgent.indexOf("HeadlessChrome")>=0,A.chromeVersion=A.isChrome||A.isChromeHeadless?navigator.userAgent.indexOf("Chrom")>0?parseInt(navigator.userAgent.match(/Chrom(?:e|ium)\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/)[1]):134:0,A.isWin=navigator.userAgent.indexOf("Windows")>=0),A.android=/android/i.test(navigator.userAgent),A.touches="ontouchend"in document,A.screenWidth=window.screen?.width??1200);const w={Render3D:{Default:0,WebGL:1,WebGLImage:2,SVG:3,fromString(t){return"webgl"===t||"gl"===t?this.WebGL:"img"===t?this.WebGLImage:"svg"===t?this.SVG:this.Default}},Embed3D:{NoEmbed:-1,Default:0,Overlay:1,Embed:2,EmbedSVG:3,fromString(t){return"embed"===t?this.Embed:"overlay"===t?this.Overlay:this.Default}},Latex:{Off:0,Symbols:1,Normal:2,MathJax:3,AlwaysMathJax:4,fromString(t){if(!t||!d(t))return this.Normal;switch(t){case"off":return this.Off;case"symbols":return this.Symbols;case"normal":case"latex":case"exp":case"experimental":return this.Normal;case"MathJax":case"mathjax":case"math":return this.MathJax;case"AlwaysMathJax":case"alwaysmath":case"alwaysmathjax":return this.AlwaysMathJax}const e=parseInt(t);return Number.isInteger(e)&&e>=this.Off&&e<=this.AlwaysMathJax?e:this.Normal}}},M={Render3D:w.Render3D.Default,Render3DBatch:w.Render3D.Default,Embed3D:w.Embed3D.Default,CanvasWidth:1200,CanvasHeight:800,CanvasScale:1,Tooltip:!r,TooltipAnimation:500,ContextMenu:!r,Zooming:!r,ZoomMouse:!r,ZoomWheel:!r,ZoomTouch:!r,MoveResize:!A.touches&&!r,HandleKeys:!r,DragAndDrop:!r,DragGraphs:!0,UserSelect:"none",ProgressBox:!r,ToolBar:!r&&"popup",ToolBarSide:"left",ToolBarVert:!1,CanEnlarge:!0,CanAdjustFrame:!1,ApproxTextSize:!1,LoadSymbolTtf:!1,OptimizeDraw:1,AutoStat:!0,FrameNDC:{},SmallPad:{width:150,height:100},Palette:57,Latex:w.Latex.Normal,GeoGradPerSegm:6,GeoCompressComp:!0,IgnoreUrlOptions:!1,HierarchyLimit:250,DislpayKind:"simple",BrowserWidth:250,XValuesFormat:void 0,YValuesFormat:void 0,ZValuesFormat:void 0,HandleWrongHttpResponse:!1,UseStamp:!r,MaxRanges:200,TreeReadBunchSize:1e6,FilesTimeout:0,FilesRemap:{"https://root.cern/":"https://root-eos.web.cern.ch/"},WithCredentials:!1,SkipStreamerInfos:!1,OnlyLastCycle:!1,DarkMode:!1,PreferSavedPoints:!1,AxisTiltAngle:25,StripAxisLabels:!0,CutAxisLabels:!1,FuncAsCurve:!1,TimeZone:"",NewTabUrl:"",NewTabUrlPars:"",NewTabUrlExportSettings:!1},S={fName:"Modern",fOptLogx:0,fOptLogy:0,fOptLogz:0,fOptDate:0,fOptFile:0,fDateX:.01,fDateY:.01,fOptTitle:1,fCanvasColor:0,fPadColor:0,fPadBottomMargin:.1,fPadTopMargin:.1,fPadLeftMargin:.1,fPadRightMargin:.1,fPadGridX:!1,fPadGridY:!1,fPadTickX:0,fPadTickY:0,fPadBorderSize:2,fPadBorderMode:0,fCanvasBorderSize:2,fCanvasBorderMode:0,fStatColor:0,fStatStyle:1e3,fStatTextColor:1,fStatFontSize:0,fStatFont:42,fStatBorderSize:1,fStatFormat:"6.4g",fStatX:.98,fStatY:.935,fStatW:.2,fStatH:.16,fTitleAlign:23,fTitleColor:0,fTitleTextColor:1,fTitleBorderSize:0,fTitleFont:42,fTitleFontSize:.05,fTitleStyle:0,fTitleX:.5,fTitleY:.995,fTitleW:0,fTitleH:0,fFitFormat:"5.4g",fOptStat:1111,fOptFit:0,fNumberContours:20,fGridColor:0,fGridStyle:3,fGridWidth:1,fFrameFillColor:0,fFrameFillStyle:1001,fFrameLineColor:1,fFrameLineWidth:1,fFrameLineStyle:1,fFrameBorderSize:1,fFrameBorderMode:0,fEndErrorSize:2,fErrorX:.5,fHistMinimumZero:!1,fHistTopMargin:.05,fHistFillColor:0,fHistFillStyle:1001,fHistLineColor:602,fHistLineStyle:1,fHistLineWidth:1,fPaintTextFormat:"g",fTimeOffset:788918400,fLegendBorderSize:1,fLegendFont:42,fLegendTextSize:0,fLegendFillColor:0,fLegendFillStyle:1001,fHatchesLineWidth:1,fHatchesSpacing:1,fCandleWhiskerRange:1,fCandleBoxRange:.5,fCandleScaled:!1,fViolinScaled:!0,fCandleCircleLineWidth:1,fCandleCrossLineWidth:1,fOrthoCamera:!1,fXAxisExpXOffset:0,fXAxisExpYOffset:0,fYAxisExpXOffset:0,fYAxisExpYOffset:0,fAxisMaxDigits:5,fStripDecimals:!0,fBarWidth:1};function T(){return r?a.nodejs_document:"undefined"!=typeof document?document:"object"==typeof window?window.document:void 0}function C(t){return 1<<t}function P(t,e,i){if(!t)return null;if(e){const i=e.obj.indexOf(t);if(i>=0)return e.clones[i]}else e={obj:[],clones:[],nofunc:i};const n=b(Object.prototype.toString.apply(t));if(1===n){const i=[];e.obj.push(t),e.clones.push(i);for(let n=0;n<t.length;++n)i.push(h(t[n])?P(t[n],e):t[n]);return i}if(2===n){const i=[];e.obj.push(t),e.clones.push(i);for(let e=0;e<t.length;++e)i.push(t[e]);return i}const s={};e.obj.push(t),e.clones.push(s);for(const i in t)h(t[i])?s[i]=P(t[i],e):e.nofunc&&c(t[i])||(s[i]=t[i]);return s}t._ensureJSROOT=null;const E=Object.assign;function k(e){if(!e)return null;const i=d(e)?JSON.parse(e):e,n=[];let s;const r=e=>{if(null==e)return;if(d(e)){if(s||e.length<6||0!==e.indexOf("$ref:"))return;const t=parseInt(e.slice(5));if(!Number.isInteger(t)||t<0||t>=n.length)return;return s=!1,n[t]}if("object"!=typeof e)return;if(b(Object.prototype.toString.apply(e))>0){for(let t=0;t<e.length;++t){const i=r(e[t]);void 0!==i&&(e[t]=i)}return}const i=Object.keys(e),a=i.length;if(!1!==s&&1===a&&"$ref"===i[0]){const t=parseInt(e.$ref);if(!Number.isInteger(t)||t<0||t>=n.length)return;return s=!0,n[t]}if(!1!==s&&a>1&&"$arr"===i[0]&&"len"===i[1]){let t;switch(e.$arr){case"Int8":t=new Int8Array(e.len);break;case"Uint8":t=new Uint8Array(e.len);break;case"Int16":t=new Int16Array(e.len);break;case"Uint16":t=new Uint16Array(e.len);break;case"Int32":t=new Int32Array(e.len);break;case"Uint32":t=new Uint32Array(e.len);break;case"Float32":t=new Float32Array(e.len);break;case"Int64":case"Uint64":case"Float64":t=new Float64Array(e.len);break;default:t=new Array(e.len)}if(t.fill("Bool"!==e.$arr&&0),void 0!==e.b){const i=y(e.b);if(!t.buffer)throw new Error("base64 coding supported only for native arrays with binary data");{const n=new DataView(t.buffer,e.o||0),s=Math.min(i.length,n.byteLength);for(let t=0;t<s;++t)n.setUint8(t,i.charCodeAt(t))}}else{let n=2,s=0;for(;n<a;){if("p"===i[n][0]&&(s=e[i[n++]]),"v"!==i[n][0])throw new Error(`Unexpected member ${i[n]} in array decoding`);const r=e[i[n++]];if("object"==typeof r)for(let e=0;e<r.length;++e)t[s++]=r[e];else if(t[s++]=r,n<a&&"n"===i[n][0]){let a=e[i[n++]];for(;--a;)t[s++]=r}}}return t}if(!1!==s&&3===a&&"$pair"===i[0]&&"first"===i[1]&&"second"===i[2]){s=!0;const t=r(e.first),i=r(e.second);return void 0!==t&&(e.first=t),void 0!==i&&(e.second=i),e._typename=e.$pair,void delete e.$pair}if(!(n.indexOf(e)>=0)){n.push(e),e._typename&&t.addMethods(e);for(let t=0;t<a;++t){const n=i[t],s=r(e[n]);void 0!==s&&(e[n]=s)}}};return r(i),i}function N(t){if(!t)return null;const e=JSON.parse(t);if(e?.length)for(let t=0;t<e.length;++t)e[t]=k(e[t]);return e}function L(t,e){if(!h(t))return"";const i=[],n=t=>{if(c(t))return;if(null==t||!h(t))return t;if(b(Object.prototype.toString.apply(t))>0){const e=new Array(t.length);for(let i=0;i<t.length;++i)e[i]=n(t[i]);return e}const e=i.indexOf(t);if(e>=0)return{$ref:e};const s=Object.keys(t),r=s.length,a={};if(3===r&&"$pair"===s[0]&&"first"===s[1]&&"second"===s[2])return a.$pair=t.$pair,a.first=n(t.first),a.second=n(t.second),a;i.push(t);for(let e=0;e<r;++e){const i=s[e];i&&"$"!==i[0]&&(a[i]=n(t[i]))}return a},s=n(t);return JSON.stringify(s,null,e)}function D(t){const e={opts:{},has(t){return void 0!==this.opts[t]},get(t,e){const i=this.opts[t];return void 0!==i?i:e}};if(!t||!d(t)){if(M.IgnoreUrlOptions||"undefined"==typeof document)return e;t=document.URL}e.url=t;const i=t.indexOf("?");if(i<0)return e;for(t=decodeURI(t.slice(i+1));t;){let i=0,n=0,s=-1,r=-1;for(;i<t.length&&(0!==n||"&"!==t[i]&&"#"!==t[i]);){switch(t[i]){case"'":n>=0&&(n=(n+1)%2),r<0&&(r=i);break;case'"':n<=0&&(n=(n-1)%2),r<0&&(r=i);break;case"=":r<0&&s<0&&(s=i)}i++}if(s<0&&r<0)e.opts[t.slice(0,i)]="";else if(s>0){let n=t.slice(s+1,i);"'"!==n[0]&&'"'!==n[0]||n.at(0)!==n.at(-1)||(n=n.slice(1,n.length-1)),e.opts[t.slice(0,s)]=n}if(i>=t.length||"#"===t[i])break;t=t.slice(i+1)}return e}function z(t){if(c(t))return t;if(!d(t))return null;const e=t.split(".");let i=globalThis;for(let t=0;i&&t<e.length;++t)i=i[e[t]];return c(i)?i:null}function O(t,e,i,n,s){function a(s){s.http_callback=c(i)?i.bind(s):()=>{},s.error_callback=c(n)?n.bind(s):function(t){console.warn(t.message),this.http_callback(null)}.bind(s),e||(e="buf");let a="GET",o=!0;const l=e.indexOf(";sync");switch(l>0&&(e=e.slice(0,l),o=!1),e){case"head":a="HEAD";break;case"posttext":a="POST",e="text";break;case"postbuf":a="POST",e="buf";break;case"post":case"multi":a="POST"}return s.kind=e,M.WithCredentials&&(s.withCredentials=!0),M.HandleWrongHttpResponse&&"GET"===a&&c(s.addEventListener)&&s.addEventListener("progress",function(t){t.lengthComputable&&this.expected_size&&t.loaded>this.expected_size&&(this.did_abort=!0,this.abort(),this.error_callback(Error(`Server sends more bytes ${t.loaded} than expected ${this.expected_size}. Abort I/O operation`),598))}.bind(s)),s.onreadystatechange=function(){if(!this.did_abort){if(2===this.readyState&&this.expected_size){const t=parseInt(this.getResponseHeader("Content-Length"));if(Number.isInteger(t)&&t>this.expected_size&&!M.HandleWrongHttpResponse)return this.did_abort="large",this.abort(),this.error_callback(Error(`Server response size ${t} larger than expected ${this.expected_size}. Abort I/O operation`),599)}if(4===this.readyState){if(200!==this.status&&206!==this.status&&!A.qt6&&(0!==this.status||0!==t.indexOf("file://")&&0!==t.indexOf("blob:")))return this.error_callback(Error(`Fail to load url ${t}`),this.status);if(this.nodejs_checkzip&&"gzip"===this.getResponseHeader("content-encoding"))return Promise.resolve().then((function(){return nF})).then((t=>{const e=t.unzipSync(Buffer.from(this.response)),i=JSON.parse(e);return this.http_callback(k(i))}));switch(this.kind){case"xml":return this.http_callback(this.responseXML);case"text":return this.http_callback(this.responseText);case"object":return this.http_callback(k(this.responseText));case"multi":return this.http_callback(N(this.responseText));case"head":return this.http_callback(this)}if(void 0===this.responseType)return this.http_callback(this.responseText);if("bin"===this.kind&&"byteLength"in this.response){const t=new Uint8Array(this.response);let e="";for(let i=0;i<t.length;++i)e+=String.fromCharCode(t[i]);return this.http_callback(e)}this.http_callback(this.response)}}},s.open(a,t,o),"bin"!==e&&"buf"!==e||(s.responseType="arraybuffer"),r&&"GET"===a&&"object"===e&&t.indexOf(".json.gz")>0&&(s.nodejs_checkzip=!0,s.responseType="arraybuffer"),s}if(x()){if(!s)throw Error("Not allowed to create http requests in node.js without promise");return Promise.resolve().then((function(){return nF})).then((t=>a(new t.default)))}const o=a(new XMLHttpRequest);return s?Promise.resolve(o):o}async function F(t,e,i){return new Promise(((n,s)=>{O(t,e,n,s,!0).then((t=>t.send(i||null)))}))}async function R(e){if(r){let t,i;return Promise.resolve().then((function(){return nF})).then((e=>(t=e.tmpNameSync()+".js",Promise.resolve().then((function(){return nF}))))).then((n=>(i=n,i.writeFileSync(t,e),import("file://"+t)))).finally((()=>i.unlinkSync(t)))}if("undefined"!=typeof document){const i=document.getElementsByTagName("script");for(let t=0;t<i.length;++t)if(i[t].innerHTML===e)return!0;const n=e.indexOf("JSROOT.require")>=0,s=!n&&e.indexOf("import {")>0&&e.indexOf("} from '")>0,r=!n&&!s&&e.indexOf("JSROOT.ObjectPainter")>=0,o=n?t._ensureJSROOT():Promise.resolve(!0);return r&&!globalThis.JSROOT&&(globalThis.JSROOT=a.jsroot),o.then((()=>{const t=document.createElement("script");return t.setAttribute("type",s?"module":"text/javascript"),t.innerHTML=e,document.head.appendChild(t),!!g()||u(!0,10)}))}return!1}async function B(t){return d(t)&&(t=t.split(";")),0===t.length||import(t.shift()).then((()=>B(t)))}async function I(e){if(!e)return!0;if(d(e)&&e.indexOf(";")>=0&&(e=e.split(";")),!d(e)){const t=e,i=()=>!t.length||I(t.shift()).then(i,i);return i()}0===e.indexOf("$$$")&&(0===(e=e.slice(3)).indexOf("style/")&&e.indexOf(".css")<0&&(e+=".css"),e=t.source_dir+e);const i=e.indexOf(".css")>0;if(r)return i?null:0===e.indexOf("http:")||0===e.indexOf("https:")?F(e,"text").then((t=>R(t))):0===e.indexOf("./")?Promise.resolve().then((function(){return nF})).then((t=>R(t.readFileSync(e)))):import(e);const n=t=>{if(t===e)return!0;const i=t.indexOf(e);return i>0&&i+e.length===t.length&&"/"===t[i-1]};if(i){const t=document.getElementsByTagName("link");for(let e=0;e<t.length;++e)if(t[e].href&&"text/css"===t[e].type&&"stylesheet"===t[e].rel&&n(t[e].href))return!0}else{const t=document.getElementsByTagName("script");for(let e=0;e<t.length;++e)if(n(t[e].src))return!0}let s;return i?(s=document.createElement("link"),s.setAttribute("rel","stylesheet"),s.setAttribute("type","text/css"),s.setAttribute("href",e)):(s=document.createElement("script"),s.setAttribute("type","text/javascript"),s.setAttribute("src",e)),new Promise(((t,i)=>{s.onload=()=>t(!0),s.onerror=()=>{s.remove(),i(Error(`Fail to load ${e}`))},document.head.appendChild(s)}))}t.addMethods=null,t._ensureJSROOT=async function(){return(globalThis.JSROOT?Promise.resolve(!0):I(t.source_dir+"scripts/JSRoot.core.js")).then((()=>{if(globalThis.JSROOT?._complete_loading)return globalThis.JSROOT._complete_loading()})).then((()=>globalThis.JSROOT))};const j="ROOT.",U="TObject",q="TNamed",$="TString",H="TObjString",G="TKey",X="TFile",V="TList",Y="THashList",W="TMap",Z="TObjArray",K="TClonesArray",J="TAttLine",Q="TAttFill",tt="TAttMarker",et="TAttText",it="THStack",nt="TGraph",st="TMultiGraph",rt="TCutG",at="TGraph2DErrors",ot="TGraph2DAsymmErrors",lt="TGraphPolar",ht="TGraphPolargram",ct="TGraphTime",dt="TPave",ft="TPaveText",ut="TPaveStats",pt="TPavesText",mt="TPaveLabel",gt="TPaveClass",_t="TDiamond",xt="TLegend",yt="TLegendEntry",vt="TPaletteAxis",At="TImagePalette",bt="TText",wt="TLink",Mt="TLatex",St="TMathText",Tt="TAnnotation",Ct="TColor",Pt="TLine",Et="TBox",kt="TPolyLine",Nt="TPolyLine3D",Lt="TPolyMarker3D",Dt="TAttPad",zt="TPad",Ot="TCanvas",Ft="TFrame",Rt="TAttCanvas",Bt="TGaxis",It="TAttAxis",jt="TAxis",Ut="TStyle",qt="TH1",$t="TH1I",Ht="TH1F",Gt="TH1D",Xt="TH2",Vt="TH2I",Yt="TH2F",Wt="TH2D",Zt="TH3",Kt="TF1",Jt="TF12",Qt="TF2",te="TF3",ee="TProfile",ie="TProfile2D",ne="TProfile3D",se="TGeoVolume",re="TGeoNode",ae="TGeoNodeMatrix",oe="ROOT::Experimental::",le="http://www.w3.org/2000/svg",he=-1111,ce=C(9),de="inspect",fe="title",ue="https://root.cern/doc/master/class";function pe(e,i){const n=i||{};switch(e){case U:E(n,{fUniqueID:0,fBits:0});break;case q:E(n,{fUniqueID:0,fBits:0,fName:"",fTitle:""});break;case V:case Y:E(n,{name:e,arr:[],opt:[]});break;case Z:E(n,{name:e,arr:[]});break;case It:E(n,{fNdivisions:510,fAxisColor:1,fLabelColor:1,fLabelFont:42,fLabelOffset:.005,fLabelSize:.035,fTickLength:.03,fTitleOffset:1,fTitleSize:.035,fTitleColor:1,fTitleFont:42});break;case jt:pe(q,n),pe(It,n),E(n,{fNbins:1,fXmin:0,fXmax:1,fXbins:[],fFirst:0,fLast:0,fBits2:0,fTimeDisplay:!1,fTimeFormat:"",fLabels:null,fModLabs:null});break;case J:E(n,{fLineColor:1,fLineStyle:1,fLineWidth:1});break;case Q:E(n,{fFillColor:0,fFillStyle:0});break;case tt:E(n,{fMarkerColor:1,fMarkerStyle:1,fMarkerSize:1});break;case Pt:pe(U,n),pe(J,n),E(n,{fX1:0,fX2:1,fY1:0,fY2:1});break;case Et:pe(U,n),pe(J,n),pe(Q,n),E(n,{fX1:0,fX2:1,fY1:0,fY2:1});break;case dt:pe(Et,n),E(n,{fX1NDC:0,fY1NDC:0,fX2NDC:0,fY2NDC:0,fBorderSize:0,fInit:1,fShadowColor:1,fCornerRadius:0,fOption:"brNDC",fName:""});break;case et:E(n,{fTextAngle:0,fTextSize:0,fTextAlign:22,fTextColor:1,fTextFont:42});break;case ft:pe(dt,n),pe(et,n),E(n,{fLabel:"",fLongest:27,fMargin:.05,fLines:pe(V)});break;case ut:pe(ft,n),E(n,{fFillColor:S.fStatColor,fFillStyle:S.fStatStyle,fTextFont:S.fStatFont,fTextSize:S.fStatFontSize,fTextColor:S.fStatTextColor,fBorderSize:S.fStatBorderSize,fOptFit:S.fOptFit,fOptStat:S.fOptStat,fFitFormat:S.fFitFormat,fStatFormat:S.fStatFormat,fParent:null});break;case xt:pe(dt,n),pe(et,n),E(n,{fColumnSeparation:0,fEntrySeparation:.1,fMargin:.25,fNColumns:1,fPrimitives:pe(V),fName:dt,fBorderSize:S.fLegendBorderSize,fTextFont:S.fLegendFont,fTextSize:S.fLegendTextSize,fFillColor:S.fLegendFillColor,fFillStyle:S.fLegendFillStyle});break;case vt:pe(dt,n),E(n,{fAxis:pe(Bt),fH:null,fName:dt});break;case yt:pe(U,n),pe(et,n),pe(J,n),pe(Q,n),pe(tt,n),E(n,{fLabel:"",fObject:null,fOption:"",fTextAlign:0,fTextColor:0,fTextFont:0});break;case bt:pe(q,n),pe(et,n),E(n,{fX:0,fY:0});break;case Mt:pe(bt,n),pe(J,n),E(n,{fLimitFactorSize:3,fOriginSize:.04});break;case H:pe(U,n),E(n,{fString:""});break;case qt:pe(q,n),pe(J,n),pe(Q,n),pe(tt,n),E(n,{fBits:8,fNcells:0,fXaxis:pe(jt),fYaxis:pe(jt),fZaxis:pe(jt),fFillColor:S.fHistFillColor,fFillStyle:S.fHistFillStyle,fLineColor:S.fHistLineColor,fLineStyle:S.fHistLineStyle,fLineWidth:S.fHistLineWidth,fBarOffset:0,fBarWidth:1e3,fEntries:0,fTsumw:0,fTsumw2:0,fTsumwx:0,fTsumwx2:0,fMaximum:he,fMinimum:he,fNormFactor:0,fContour:[],fSumw2:[],fOption:"",fFunctions:pe(V),fBufferSize:0,fBuffer:[],fBinStatErrOpt:0,fStatOverflows:2});break;case $t:case Gt:case"TH1L64":case"TH1F":case"TH1S":case"TH1C":pe(qt,n),n.fArray=[];break;case Xt:pe(qt,n),E(n,{fScalefactor:1,fTsumwy:0,fTsumwy2:0,fTsumwxy:0});break;case Vt:case"TH2L64":case Yt:case"TH2D":case"TH2S":case"TH2C":pe(Xt,n),n.fArray=[];break;case Zt:pe(qt,n),E(n,{fTsumwy:0,fTsumwy2:0,fTsumwz:0,fTsumwz2:0,fTsumwxy:0,fTsumwxz:0,fTsumwyz:0});break;case"TH3I":case"TH3L64":case"TH3F":case"TH3D":case"TH3S":case"TH3C":pe(Zt,n),n.fArray=[];break;case it:pe(q,n),E(n,{fHists:pe(V),fHistogram:null,fMaximum:he,fMinimum:he});break;case nt:pe(q,n),pe(J,n),pe(Q,n),pe(tt,n),E(n,{fFunctions:pe(V),fHistogram:null,fMaxSize:0,fMaximum:he,fMinimum:he,fNpoints:0,fX:[],fY:[]});break;case"TGraphAsymmErrors":pe(nt,n),E(n,{fEXlow:[],fEXhigh:[],fEYlow:[],fEYhigh:[]});break;case st:pe(q,n),E(n,{fFunctions:pe(V),fGraphs:pe(V),fHistogram:null,fMaximum:he,fMinimum:he});break;case ht:pe(q,n),pe(et,n),pe(J,n),E(n,{fRadian:!1,fDegree:!1,fGrad:!1,fPolarLabelColor:1,fRadialLabelColor:1,fAxisAngle:0,fPolarOffset:.04,fPolarTextSize:.04,fRadialOffset:.025,fRadialTextSize:.035,fRwrmin:0,fRwrmax:1,fRwtmin:0,fRwtmax:2*Math.PI,fTickpolarSize:.02,fPolarLabelFont:62,fRadialLabelFont:62,fCutRadial:0,fNdivRad:508,fNdivPol:508});break;case kt:pe(U,n),pe(J,n),pe(Q,n),E(n,{fLastPoint:-1,fN:0,fOption:"",fX:null,fY:null});break;case Bt:pe(Pt,n),pe(et,n),E(n,{fChopt:"",fFunctionName:"",fGridLength:0,fLabelColor:1,fLabelFont:42,fLabelOffset:.005,fLabelSize:.035,fName:"",fNdiv:12,fTickSize:.02,fTimeFormat:"",fTitle:"",fTitleOffset:1,fTitleSize:.035,fWmax:100,fWmin:0});break;case Dt:E(n,{fLeftMargin:S.fPadLeftMargin,fRightMargin:S.fPadRightMargin,fBottomMargin:S.fPadBottomMargin,fTopMargin:S.fPadTopMargin,fXfile:2,fYfile:2,fAfile:1,fXstat:.99,fYstat:.99,fAstat:2,fFrameFillColor:S.fFrameFillColor,fFrameFillStyle:S.fFrameFillStyle,fFrameLineColor:S.fFrameLineColor,fFrameLineWidth:S.fFrameLineWidth,fFrameLineStyle:S.fFrameLineStyle,fFrameBorderSize:S.fFrameBorderSize,fFrameBorderMode:S.fFrameBorderMode});break;case zt:pe(U,n),pe(J,n),pe(Q,n),pe(Dt,n),E(n,{fFillColor:S.fPadColor,fFillStyle:1001,fX1:0,fY1:0,fX2:1,fY2:1,fXtoAbsPixelk:1,fXtoPixelk:1,fXtoPixel:1,fYtoAbsPixelk:1,fYtoPixelk:1,fYtoPixel:1,fUtoAbsPixelk:1,fUtoPixelk:1,fUtoPixel:1,fVtoAbsPixelk:1,fVtoPixelk:1,fVtoPixel:1,fAbsPixeltoXk:1,fPixeltoXk:1,fPixeltoX:1,fAbsPixeltoYk:1,fPixeltoYk:1,fPixeltoY:1,fXlowNDC:0,fYlowNDC:0,fXUpNDC:0,fYUpNDC:0,fWNDC:1,fHNDC:1,fAbsXlowNDC:0,fAbsYlowNDC:0,fAbsWNDC:1,fAbsHNDC:1,fUxmin:0,fUymin:0,fUxmax:0,fUymax:0,fTheta:30,fPhi:30,fAspectRatio:0,fNumber:0,fLogx:S.fOptLogx,fLogy:S.fOptLogy,fLogz:S.fOptLogz,fTickx:S.fPadTickX,fTicky:S.fPadTickY,fPadPaint:0,fCrosshair:0,fCrosshairPos:0,fBorderSize:S.fPadBorderSize,fBorderMode:S.fPadBorderMode,fModified:!1,fGridx:S.fPadGridX,fGridy:S.fPadGridY,fAbsCoord:!1,fEditable:!0,fFixedAspectRatio:!1,fPrimitives:pe(V),fExecs:null,fName:"pad",fTitle:"canvas"});break;case Rt:E(n,{fXBetween:2,fYBetween:2,fTitleFromTop:1.2,fXdate:.2,fYdate:.3,fAdate:1});break;case Ot:pe(zt,n),E(n,{fFillColor:S.fCanvasColor,fFillStyle:1001,fNumPaletteColor:0,fNextPaletteColor:0,fDISPLAY:"$DISPLAY",fDoubleBuffer:0,fRetained:!0,fXsizeUser:0,fYsizeUser:0,fXsizeReal:20,fYsizeReal:10,fWindowTopX:0,fWindowTopY:0,fWindowWidth:0,fWindowHeight:0,fBorderSize:S.fCanvasBorderSize,fBorderMode:S.fCanvasBorderMode,fCw:M.CanvasWidth,fCh:M.CanvasHeight,fCatt:pe(Rt),kMoveOpaque:!0,kResizeOpaque:!0,fHighLightColor:5,fBatch:!0,kShowEventStatus:!1,kAutoExec:!0,kMenuBar:!0});break;case se:pe(q,n),pe(J,n),pe(Q,n),E(n,{fGeoAtt:0,fFinder:null,fMedium:null,fNodes:null,fNtotal:0,fNumber:0,fRefCount:0,fShape:null,fVoxels:null});break;case re:pe(q,n),E(n,{fGeoAtt:0,fMother:null,fNovlp:0,fNumber:0,fOverlaps:null,fVolume:null});break;case ae:pe(re,n),E(n,{fMatrix:null});break;case"TGeoTrack":pe(U,n),pe(J,n),pe(tt,n),E(n,{fGeoAtt:0,fNpoints:0,fPoints:[]});break;case Nt:pe(U,n),pe(J,n),E(n,{fLastPoint:-1,fN:0,fOption:"",fP:[]});break;case Lt:pe(U,n),pe(tt,n),E(n,{fLastPoint:-1,fN:0,fName:"",fOption:"",fP:[]})}return n._typename=e,t.addMethods(n,e),n}function me(t,e,i,n){const s=pe(t);if(!s.fXaxis||!s.fYaxis||!s.fZaxis)return null;switch(s.fName="hist",s.fTitle="title",e&&E(s.fXaxis,{fNbins:e,fXmin:0,fXmax:e}),i&&E(s.fYaxis,{fNbins:i,fXmin:0,fXmax:i}),n&&E(s.fZaxis,{fNbins:n,fXmin:0,fXmax:n}),parseInt(t[2])){case 1:e&&(s.fNcells=e+2);break;case 2:e&&i&&(s.fNcells=(e+2)*(i+2));break;case 3:e&&i&&n&&(s.fNcells=(e+2)*(i+2)*(n+2))}if(s.fNcells>0){switch(t[3]){case"C":s.fArray=new Int8Array(s.fNcells);break;case"S":s.fArray=new Int16Array(s.fNcells);break;case"I":s.fArray=new Int32Array(s.fNcells);break;case"F":s.fArray=new Float32Array(s.fNcells);break;case"L":case"D":s.fArray=new Float64Array(s.fNcells);break;default:s.fArray=new Array(s.fNcells)}s.fArray.fill(0)}return s}function ge(t,e){if(t)if(e.indexOf(";")<0)t.fTitle=e;else{const i=e.split(";");t.fTitle=i[0],i.length>1&&(t.fXaxis.fTitle=i[1]),i.length>2&&(t.fYaxis.fTitle=i[2]),i.length>3&&(t.fZaxis.fTitle=i[3])}}function _e(t,e){const i=pe(kt);return t&&(i.fN=t,e?(i.fX=new Int32Array(t),i.fY=new Int32Array(t)):(i.fX=new Float32Array(t),i.fY=new Float32Array(t))),i}function xe(t,e,i){const n=E(pe(nt),{fBits:1032,fName:"graph",fTitle:"title"});if(t>0){n.fMaxSize=n.fNpoints=t;const s=h(e)&&e.length===t,r=h(i)&&i.length===t;for(let a=0;a<t;++a)n.fX.push(s?e[a]:a/t),n.fY.push(r?i[a]:a/t)}return n}function ye(...t){const e=pe(it);for(let i=0;i<t.length;++i)e.fHists.Add(t[i],"");return e}function ve(...t){const e=pe(st);for(let i=0;i<t.length;++i)e.fGraphs.Add(t[i],"");return e}const Ae={};function be(t,e){let i=Ae[t];const n=void 0!==i;return n||(i={}),t!==U&&t!==q&&void 0===e?.fBits||void 0===i.TestBit&&(i.TestBit=function(t){return 0!==(this.fBits&t)},i.InvertBit=function(t){this.fBits^=16777215&t},i.SetBit=function(t,e=!0){this.fBits=e?this.fBits|t:this.fBits&~t}),n||(t!==V&&t!==Y||(i.Clear=function(){this.arr=[],this.opt=[]},i.Add=function(t,e){this.arr.push(t),this.opt.push(d(e)?e:"")},i.AddFirst=function(t,e){this.arr.unshift(t),this.opt.unshift(d(e)?e:"")},i.RemoveAt=function(t){this.arr.splice(t,1),this.opt.splice(t,1)}),t!==ft&&t!==ut||(i.AddText=function(t){const e=pe(Mt);e.fTitle=t,e.fTextAlign=0,e.fTextColor=0,e.fTextFont=0,e.fTextSize=0,this.fLines.Add(e)},i.Clear=function(){this.fLines.Clear()}),0!==t.indexOf(Kt)&&t!==Jt&&t!==Qt&&t!==te||(i.addFormula=function(t){t&&(void 0===this.formulas&&(this.formulas=[]),this.formulas.push(t))},i.GetParName=function(t){if(this.fParams?.fParNames)return this.fParams.fParNames[t];if(this.fFormula?.fParams)for(let e=0,i=this.fFormula.fParams;e<i.length;++e)if(i[e].second===t)return i[e].first;return this.fNames&&this.fNames[t]?this.fNames[t]:`p${t}`},i.GetParValue=function(t){return this.fParams?.fParameters?this.fParams.fParameters[t]:this.fFormula?.fClingParameters?this.fFormula.fClingParameters[t]:this.fParams?this.fParams[t]:void 0},i.GetParError=function(t){return this.fParErrors?this.fParErrors[t]:void 0},i.GetNumPars=function(){return this.fNpar}),0!==t.indexOf(nt)&&t!==rt||t===ht||t===ct||(i.IsInside=function(t,e){const i=this.fX,n=this.fY;let s=0,r=this.fNpoints-1,a=!1;for(;s<this.fNpoints;++s)(n[s]<e&&n[r]>=e||n[r]<e&&n[s]>=e)&&i[s]+(e-n[s])/(n[r]-n[s])*(i[r]-i[s])<t&&(a=!a),r=s;return a}),0!==t.indexOf(qt)&&0!==t.indexOf(Xt)&&0!==t.indexOf(Zt)||(i.getBinError=function(t){return t>=this.fNcells&&(t=this.fNcells-1),t<0&&(t=0),t<this.fSumw2.length?Math.sqrt(this.fSumw2[t]):Math.sqrt(Math.abs(this.fArray[t]))},i.setBinContent=function(t,e){this.fEntries++,this.fTsumw=0,t>=0&&t<this.fArray.length&&(this.fArray[t]=e)}),0===t.indexOf(qt)&&(i.getBin=function(t){return t},i.getBinContent=function(t){return this.fArray[t]},i.Fill=function(t,e){const i=this.fXaxis,n=Math.max(0,1+Math.min(i.fNbins,Math.floor((t-i.fXmin)/(i.fXmax-i.fXmin)*i.fNbins)));this.fArray[n]+=e??1,this.fEntries++}),0===t.indexOf(Xt)&&(i.getBin=function(t,e){return t+(this.fXaxis.fNbins+2)*e},i.getBinContent=function(t,e){return this.fArray[this.getBin(t,e)]},i.Fill=function(t,e,i){const n=this.fXaxis,s=this.fYaxis,r=Math.max(0,1+Math.min(n.fNbins,Math.floor((t-n.fXmin)/(n.fXmax-n.fXmin)*n.fNbins))),a=Math.max(0,1+Math.min(s.fNbins,Math.floor((e-s.fXmin)/(s.fXmax-s.fXmin)*s.fNbins)));this.fArray[r+(n.fNbins+2)*a]+=i??1,this.fEntries++}),0===t.indexOf(Zt)&&(i.getBin=function(t,e,i){return t+(this.fXaxis.fNbins+2)*(e+(this.fYaxis.fNbins+2)*i)},i.getBinContent=function(t,e,i){return this.fArray[this.getBin(t,e,i)]},i.Fill=function(t,e,i,n){const s=this.fXaxis,r=this.fYaxis,a=this.fZaxis,o=Math.max(0,1+Math.min(s.fNbins,Math.floor((t-s.fXmin)/(s.fXmax-s.fXmin)*s.fNbins))),l=Math.max(0,1+Math.min(r.fNbins,Math.floor((e-r.fXmin)/(r.fXmax-r.fXmin)*r.fNbins))),h=Math.max(0,1+Math.min(a.fNbins,Math.floor((i-a.fXmin)/(a.fXmax-a.fXmin)*a.fNbins)));this.fArray[o+(s.fNbins+2)*(l+(r.fNbins+2)*h)]+=n??1,this.fEntries++}),t!==zt&&t!==Ot||(i.Divide=function(t,e,i=.01,n=.01){if(!e){const i=t;if(i<2)return this;(t=e=Math.round(Math.sqrt(i)))*e<i&&(t+=1)}if(t*e<2)return 0;this.fPrimitives.Clear();const s=1/e,r=1/t;let a=0;for(let o=0;o<e;o++){const e=1-o*s-n;let l=e-s+2*n;if(l<0&&(l=0),!(l>e))for(let n=0;n<t;n++){const t=n*r+i,s=t+r-2*i;if(t>s)continue;a++;const o=pe(zt);o.fName=o.fTitle=`${this.fName}_${a}`,o.fNumber=a,this._typename!==Ot?(o.fAbsWNDC=(s-t)*this.fAbsWNDC,o.fAbsHNDC=(e-l)*this.fAbsHNDC,o.fAbsXlowNDC=this.fAbsXlowNDC+t*this.fAbsWNDC,o.fAbsYlowNDC=this.fAbsYlowNDC+l*this.fAbsHNDC):(o.fAbsWNDC=s-t,o.fAbsHNDC=e-l,o.fAbsXlowNDC=t,o.fAbsYlowNDC=l),this.fPrimitives.Add(o)}}return t*e},i.GetPad=function(t){return this.fPrimitives.arr.find((e=>e._typename===zt&&e.fNumber===t))}),0===t.indexOf(ee)&&(t===ne?(i.getBin=function(t,e,i){return t+(this.fXaxis.fNbins+2)*(e+(this.fYaxis.fNbins+2)*i)},i.getBinContent=function(t,e,i){const n=this.getBin(t,e,i);return n<0||n>=this.fNcells||this.fBinEntries[n]<1e-300?0:this.fArray?this.fArray[n]/this.fBinEntries[n]:0},i.getBinEntries=function(t,e,i){const n=this.getBin(t,e,i);return n<0||n>=this.fNcells?0:this.fBinEntries[n]}):t===ie?(i.getBin=function(t,e){return t+(this.fXaxis.fNbins+2)*e},i.getBinContent=function(t,e){const i=this.getBin(t,e);return i<0||i>=this.fNcells||this.fBinEntries[i]<1e-300?0:this.fArray?this.fArray[i]/this.fBinEntries[i]:0},i.getBinEntries=function(t,e){const i=this.getBin(t,e);return i<0||i>=this.fNcells?0:this.fBinEntries[i]}):(i.getBin=function(t){return t},i.getBinContent=function(t){return t<0||t>=this.fNcells||this.fBinEntries[t]<1e-300?0:this.fArray?this.fArray[t]/this.fBinEntries[t]:0},i.getBinEntries=function(t){return t<0||t>=this.fNcells?0:this.fBinEntries[t]}),i.getBinEffectiveEntries=function(t){if(t<0||t>=this.fNcells)return 0;const e=this.fBinEntries[t];if(!this.fBinSumw2||this.fBinSumw2.length!==this.fNcells)return e;const i=this.fBinSumw2[t];return i>0?e*e/i:0},i.getBinError=function(t){if(t<0||t>=this.fNcells)return 0;const e=this.fArray[t],i=this.fBinEntries[t],n=this.fSumw2[t],s=this.getBinEffectiveEntries(t);if(i<1e-300)return 0;const r=1,a=2,o=3;if(this.fErrorMode===o)return 1/Math.sqrt(i);const l=e/i,h=Math.sqrt(Math.abs(n/i-l**2));return this.fErrorMode===a?0!==h?h/Math.sqrt(s):1/Math.sqrt(12*s):this.fErrorMode===r?h:h/Math.sqrt(s)}),t===jt&&(i.GetBinLowEdge=function(t){return this.fNbins<=0?0:this.fXbins.length?t>0&&t<=this.fNbins+1?this.fXbins[t-1]:0===t?2*this.fXbins[0]-this.fXbins[1]:t===this.fNbins+2?2*this.fXbins[t-2]-this.fXbins[t-3]:0:this.fXmin+(t-1)*(this.fXmax-this.fXmin)/this.fNbins},i.GetBinCenter=function(t){return this.fNbins<=0?0:this.fXbins.length?t>0&&t<=this.fNbins?(this.fXbins[t-1]+this.fXbins[t])/2:0===t?1.5*this.fXbins[0]-.5*this.fXbins[1]:t===this.fNbins+1?1.5*this.fXbins[t-1]-.5*this.fXbins[t-2]:0:this.fXmin+(t-.5)*(this.fXmax-this.fXmin)/this.fNbins}),0===t.indexOf("ROOT::Math::LorentzVector")&&(i.Px=i.X=function(){return this.fCoordinates.Px()},i.Py=i.Y=function(){return this.fCoordinates.Py()},i.Pz=i.Z=function(){return this.fCoordinates.Pz()},i.E=i.T=function(){return this.fCoordinates.E()},i.M2=function(){return this.fCoordinates.M2()},i.M=function(){return this.fCoordinates.M()},i.R=i.P=function(){return this.fCoordinates.R()},i.P2=function(){return this.P()*this.P()},i.Pt=i.pt=function(){return Math.sqrt(this.P2())},i.Phi=i.phi=function(){return Math.atan2(this.fCoordinates.Py(),this.fCoordinates.Px())},i.Eta=i.eta=function(){return Math.atanh(this.Pz()/this.P())}),0===t.indexOf("ROOT::Math::PxPyPzE4D")&&(i.Px=i.X=function(){return this.fX},i.Py=i.Y=function(){return this.fY},i.Pz=i.Z=function(){return this.fZ},i.E=i.T=function(){return this.fT},i.P2=function(){return this.fX**2+this.fY**2+this.fZ**2},i.R=i.P=function(){return Math.sqrt(this.P2())},i.Mag2=i.M2=function(){return this.fT**2-this.fX**2-this.fY**2-this.fZ**2},i.Mag=i.M=function(){return this.M2()>=0?Math.sqrt(this.M2()):-Math.sqrt(-this.M2())},i.Perp2=i.Pt2=function(){return this.fX**2+this.fY**2},i.Pt=i.pt=function(){return Math.sqrt(this.P2())},i.Phi=i.phi=function(){return Math.atan2(this.fY,this.fX)},i.Eta=i.eta=function(){return Math.atanh(this.Pz/this.P())}),Ae[t]=i),i}function we(t,e){Ae[t]=e}function Me(t,e){if(h(t)){if(t.$kind===V||t.$kind===Z)return!0;e||(e=t._typename)}return e===V||e===Y||e===W||e===Z||e===K}t.addMethods=function(t,e){E(t,be(e||t._typename,t))},S.fXaxis=pe(It),S.fYaxis=pe(It),S.fZaxis=pe(It),a.jsroot={version:s,source_dir:t.source_dir,settings:M,gStyle:S,parse:k,isBatchMode:g};var Se=Object.freeze({__proto__:null,BIT:C,get _ensureJSROOT(){return t._ensureJSROOT},get addMethods(){return t.addMethods},atob_func:y,browser:A,btoa_func:v,clTAnnotation:Tt,clTAttCanvas:Rt,clTAttFill:Q,clTAttLine:J,clTAttMarker:tt,clTAttText:et,clTAxis:jt,clTBox:Et,clTCanvas:Ot,clTClonesArray:K,clTColor:Ct,clTCutG:rt,clTDiamond:_t,clTF1:Kt,clTF12:Jt,clTF2:Qt,clTF3:te,clTFile:X,clTFrame:Ft,clTGaxis:Bt,clTGeoNode:re,clTGeoNodeMatrix:ae,clTGeoVolume:se,clTGraph:nt,clTGraph2DAsymmErrors:ot,clTGraph2DErrors:at,clTGraphPolar:lt,clTGraphPolargram:ht,clTGraphTime:ct,clTH1:qt,clTH1D:Gt,clTH1F:Ht,clTH1I:$t,clTH2:Xt,clTH2D:Wt,clTH2F:Yt,clTH2I:Vt,clTH3:Zt,clTHStack:it,clTHashList:Y,clTImagePalette:At,clTKey:G,clTLatex:Mt,clTLegend:xt,clTLegendEntry:yt,clTLine:Pt,clTLink:wt,clTList:V,clTMap:W,clTMathText:St,clTMultiGraph:st,clTNamed:q,clTObjArray:Z,clTObjString:H,clTObject:U,clTPad:zt,clTPaletteAxis:vt,clTPave:dt,clTPaveClass:gt,clTPaveLabel:mt,clTPaveStats:ut,clTPaveText:ft,clTPavesText:pt,clTPolyLine:kt,clTPolyLine3D:Nt,clTPolyMarker3D:Lt,clTProfile:ee,clTProfile2D:ie,clTProfile3D:ne,clTString:$,clTStyle:Ut,clTText:bt,clone:P,constants:w,create:pe,createHistogram:me,createHttpRequest:O,createTGraph:xe,createTHStack:ye,createTMultiGraph:ve,createTPolyLine:_e,decodeUrl:D,findFunction:z,gStyle:S,getDocument:T,getMethods:be,getPromise:p,httpRequest:F,injectCode:R,internals:a,isArrayProto:b,isBatchMode:g,isFunc:c,isNodeJs:x,isObject:h,isPromise:f,isRootCollection:Me,isStr:d,kInspect:de,kNoStats:ce,kNoZoom:he,kTitle:fe,loadModules:B,loadScript:I,nsREX:oe,nsSVG:le,parse:k,parseMulti:N,postponePromise:u,prROOT:j,registerMethods:we,setBatchMode:_,setHistogramTitle:ge,settings:M,get source_dir(){return t.source_dir},toJSON:L,urlClassPrefix:ue,version:s,version_date:n,version_id:i});function Te(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function Ce(t,e){var i=Object.create(t.prototype);for(var n in e)i[n]=e[n];return i}function Pe(){}var Ee=.7,ke=1/Ee,Ne="\\s*([+-]?\\d+)\\s*",Le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",De="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ze=/^#([0-9a-f]{3,8})$/,Oe=new RegExp(`^rgb\\(${Ne},${Ne},${Ne}\\)$`),Fe=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),Re=new RegExp(`^rgba\\(${Ne},${Ne},${Ne},${Le}\\)$`),Be=new RegExp(`^rgba\\(${De},${De},${De},${Le}\\)$`),Ie=new RegExp(`^hsl\\(${Le},${De},${De}\\)$`),je=new RegExp(`^hsla\\(${Le},${De},${De},${Le}\\)$`),Ue={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function qe(){return this.rgb().formatHex()}function $e(){return this.rgb().formatRgb()}function He(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=ze.exec(t))?(i=e[1].length,e=parseInt(e[1],16),6===i?Ge(e):3===i?new We(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?Xe(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?Xe(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Oe.exec(t))?new We(e[1],e[2],e[3],1):(e=Fe.exec(t))?new We(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Re.exec(t))?Xe(e[1],e[2],e[3],e[4]):(e=Be.exec(t))?Xe(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ie.exec(t))?ei(e[1],e[2]/100,e[3]/100,1):(e=je.exec(t))?ei(e[1],e[2]/100,e[3]/100,e[4]):Ue.hasOwnProperty(t)?Ge(Ue[t]):"transparent"===t?new We(NaN,NaN,NaN,0):null}function Ge(t){return new We(t>>16&255,t>>8&255,255&t,1)}function Xe(t,e,i,n){return n<=0&&(t=e=i=NaN),new We(t,e,i,n)}function Ve(t){return t instanceof Pe||(t=He(t)),t?new We((t=t.rgb()).r,t.g,t.b,t.opacity):new We}function Ye(t,e,i,n){return 1===arguments.length?Ve(t):new We(t,e,i,null==n?1:n)}function We(t,e,i,n){this.r=+t,this.g=+e,this.b=+i,this.opacity=+n}function Ze(){return`#${ti(this.r)}${ti(this.g)}${ti(this.b)}`}function Ke(){const t=Je(this.opacity);return`${1===t?"rgb(":"rgba("}${Qe(this.r)}, ${Qe(this.g)}, ${Qe(this.b)}${1===t?")":`, ${t})`}`}function Je(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Qe(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ti(t){return((t=Qe(t))<16?"0":"")+t.toString(16)}function ei(t,e,i,n){return n<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new ni(t,e,i,n)}function ii(t){if(t instanceof ni)return new ni(t.h,t.s,t.l,t.opacity);if(t instanceof Pe||(t=He(t)),!t)return new ni;if(t instanceof ni)return t;var e=(t=t.rgb()).r/255,i=t.g/255,n=t.b/255,s=Math.min(e,i,n),r=Math.max(e,i,n),a=NaN,o=r-s,l=(r+s)/2;return o?(a=e===r?(i-n)/o+6*(i<n):i===r?(n-e)/o+2:(e-i)/o+4,o/=l<.5?r+s:2-r-s,a*=60):o=l>0&&l<1?0:a,new ni(a,o,l,t.opacity)}function ni(t,e,i,n){this.h=+t,this.s=+e,this.l=+i,this.opacity=+n}function si(t){return(t=(t||0)%360)<0?t+360:t}function ri(t){return Math.max(0,Math.min(1,t||0))}function ai(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}Te(Pe,He,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:qe,formatHex:qe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ii(this).formatHsl()},formatRgb:$e,toString:$e}),Te(We,Ye,Ce(Pe,{brighter(t){return t=null==t?ke:Math.pow(ke,t),new We(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ee:Math.pow(Ee,t),new We(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new We(Qe(this.r),Qe(this.g),Qe(this.b),Je(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ze,formatHex:Ze,formatHex8:function(){return`#${ti(this.r)}${ti(this.g)}${ti(this.b)}${ti(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ke,toString:Ke})),Te(ni,(function(t,e,i,n){return 1===arguments.length?ii(t):new ni(t,e,i,null==n?1:n)}),Ce(Pe,{brighter(t){return t=null==t?ke:Math.pow(ke,t),new ni(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ee:Math.pow(Ee,t),new ni(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*e,s=2*i-n;return new We(ai(t>=240?t-240:t+120,s,n),ai(t,s,n),ai(t<120?t+240:t-120,s,n),this.opacity)},clamp(){return new ni(si(this.h),ri(this.s),ri(this.l),Je(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Je(this.opacity);return`${1===t?"hsl(":"hsla("}${si(this.h)}, ${100*ri(this.s)}%, ${100*ri(this.l)}%${1===t?")":`, ${t})`}`}}));const oi=Math.PI/180,li=180/Math.PI,hi=.96422,ci=.82521,di=4/29,fi=6/29,ui=3*fi*fi,pi=fi*fi*fi;function mi(t){if(t instanceof gi)return new gi(t.l,t.a,t.b,t.opacity);if(t instanceof Ai)return bi(t);t instanceof We||(t=Ve(t));var e,i,n=vi(t.r),s=vi(t.g),r=vi(t.b),a=_i((.2225045*n+.7168786*s+.0606169*r)/1);return n===s&&s===r?e=i=a:(e=_i((.4360747*n+.3850649*s+.1430804*r)/hi),i=_i((.0139322*n+.0971045*s+.7141733*r)/ci)),new gi(116*a-16,500*(e-a),200*(a-i),t.opacity)}function gi(t,e,i,n){this.l=+t,this.a=+e,this.b=+i,this.opacity=+n}function _i(t){return t>pi?Math.pow(t,1/3):t/ui+di}function xi(t){return t>fi?t*t*t:ui*(t-di)}function yi(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function vi(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ai(t,e,i,n){this.h=+t,this.c=+e,this.l=+i,this.opacity=+n}function bi(t){if(isNaN(t.h))return new gi(t.l,0,0,t.opacity);var e=t.h*oi;return new gi(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Te(gi,(function(t,e,i,n){return 1===arguments.length?mi(t):new gi(t,e,i,null==n?1:n)}),Ce(Pe,{brighter(t){return new gi(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new gi(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;return new We(yi(3.1338561*(e=hi*xi(e))-1.6168667*(t=1*xi(t))-.4906146*(i=ci*xi(i))),yi(-.9787684*e+1.9161415*t+.033454*i),yi(.0719453*e-.2289914*t+1.4052427*i),this.opacity)}})),Te(Ai,(function(t,e,i,n){return 1===arguments.length?function(t){if(t instanceof Ai)return new Ai(t.h,t.c,t.l,t.opacity);if(t instanceof gi||(t=mi(t)),0===t.a&&0===t.b)return new Ai(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*li;return new Ai(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Ai(t,e,i,null==n?1:n)}),Ce(Pe,{brighter(t){return new Ai(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new Ai(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return bi(this).rgb()}}));var wi=-.14861,Mi=1.78277,Si=-.29227,Ti=-.90649,Ci=1.97294,Pi=Ci*Ti,Ei=Ci*Mi,ki=Mi*Si-Ti*wi;function Ni(t,e,i,n){this.h=+t,this.s=+e,this.l=+i,this.opacity=+n}Te(Ni,(function(t,e,i,n){return 1===arguments.length?function(t){if(t instanceof Ni)return new Ni(t.h,t.s,t.l,t.opacity);t instanceof We||(t=Ve(t));var e=t.r/255,i=t.g/255,n=t.b/255,s=(ki*n+Pi*e-Ei*i)/(ki+Pi-Ei),r=n-s,a=(Ci*(i-s)-Si*r)/Ti,o=Math.sqrt(a*a+r*r)/(Ci*s*(1-s)),l=o?Math.atan2(a,r)*li-120:NaN;return new Ni(l<0?l+360:l,o,s,t.opacity)}(t):new Ni(t,e,i,null==n?1:n)}),Ce(Pe,{brighter(t){return t=null==t?ke:Math.pow(ke,t),new Ni(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ee:Math.pow(Ee,t),new Ni(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*oi,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),s=Math.sin(t);return new We(255*(e+i*(wi*n+Mi*s)),255*(e+i*(Si*n+Ti*s)),255*(e+i*(Ci*n)),this.opacity)}}));var Li=Math.abs,Di=Math.cos,zi=Math.sin,Oi=Math.PI,Fi=Oi/2,Ri=2*Oi,Bi=Math.max,Ii=1e-12;function ji(t,e){return Array.from({length:e-t},((e,i)=>t+i))}function Ui(){return function(t){var e=0,i=null,n=null,s=null;function r(r){var a,o=r.length,l=new Array(o),h=ji(0,o),c=new Array(o*o),d=new Array(o),f=0;r=Float64Array.from({length:o*o},((t,e)=>r[e/o|0][e%o]));for(let e=0;e<o;++e){let i=0;for(let n=0;n<o;++n)i+=r[e*o+n]+t*r[n*o+e];f+=l[e]=i}a=(f=Bi(0,Ri-e*o)/f)?e:Ri/o;{let t=0;i&&h.sort(((t,e)=>i(l[t],l[e])));for(const e of h){const i=t;{const s=ji(0,o).filter((t=>r[e*o+t]||r[t*o+e]));n&&s.sort(((t,i)=>n(r[e*o+t],r[e*o+i])));for(const i of s){let n;if(e<i?(n=c[e*o+i]||(c[e*o+i]={source:null,target:null}),n.source={index:e,startAngle:t,endAngle:t+=r[e*o+i]*f,value:r[e*o+i]}):(n=c[i*o+e]||(c[i*o+e]={source:null,target:null}),n.target={index:e,startAngle:t,endAngle:t+=r[e*o+i]*f,value:r[e*o+i]},e===i&&(n.source=n.target)),n.source&&n.target&&n.source.value<n.target.value){const t=n.source;n.source=n.target,n.target=t}}d[e]={index:e,startAngle:i,endAngle:t,value:l[e]}}t+=a}}return(c=Object.values(c)).groups=d,s?c.sort(s):c}return r.padAngle=function(t){return arguments.length?(e=Bi(0,t),r):e},r.sortGroups=function(t){return arguments.length?(i=t,r):i},r.sortSubgroups=function(t){return arguments.length?(n=t,r):n},r.sortChords=function(t){return arguments.length?(null==t?s=null:(e=t,s=function(t,i){return e(t.source.value+t.target.value,i.source.value+i.target.value)})._=t,r):s&&s._;var e},r}(!1)}const qi=Math.PI,$i=2*qi,Hi=1e-6,Gi=$i-Hi;function Xi(t){this._+=t[0];for(let e=1,i=t.length;e<i;++e)this._+=arguments[e]+t[e]}let Vi=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Xi:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Xi;const i=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*i)/i+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,i,n){this._append`Q${+t},${+e},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(t,e,i,n,s,r){this._append`C${+t},${+e},${+i},${+n},${this._x1=+s},${this._y1=+r}`}arcTo(t,e,i,n,s){if(t=+t,e=+e,i=+i,n=+n,(s=+s)<0)throw new Error(`negative radius: ${s}`);let r=this._x1,a=this._y1,o=i-t,l=n-e,h=r-t,c=a-e,d=h*h+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(d>Hi)if(Math.abs(c*o-l*h)>Hi&&s){let f=i-r,u=n-a,p=o*o+l*l,m=f*f+u*u,g=Math.sqrt(p),_=Math.sqrt(d),x=s*Math.tan((qi-Math.acos((p+d-m)/(2*g*_)))/2),y=x/_,v=x/g;Math.abs(y-1)>Hi&&this._append`L${t+y*h},${e+y*c}`,this._append`A${s},${s},0,0,${+(c*f>h*u)},${this._x1=t+v*o},${this._y1=e+v*l}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,i,n,s,r){if(t=+t,e=+e,r=!!r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let a=i*Math.cos(n),o=i*Math.sin(n),l=t+a,h=e+o,c=1^r,d=r?n-s:s-n;null===this._x1?this._append`M${l},${h}`:(Math.abs(this._x1-l)>Hi||Math.abs(this._y1-h)>Hi)&&this._append`L${l},${h}`,i&&(d<0&&(d=d%$i+$i),d>Gi?this._append`A${i},${i},0,1,${c},${t-a},${e-o}A${i},${i},0,1,${c},${this._x1=l},${this._y1=h}`:d>Hi&&this._append`A${i},${i},0,${+(d>=qi)},${c},${this._x1=t+i*Math.cos(s)},${this._y1=e+i*Math.sin(s)}`)}rect(t,e,i,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}};function Yi(){return new Vi}Yi.prototype=Vi.prototype;var Wi=Array.prototype.slice;function Zi(t){return function(){return t}}function Ki(t){return t.source}function Ji(t){return t.target}function Qi(t){return t.radius}function tn(t){return t.startAngle}function en(t){return t.endAngle}function nn(){return 0}function sn(){return function(){var t=Ki,e=Ji,i=Qi,n=Qi,s=tn,r=en,a=nn,o=null;function l(){var l,h=t.apply(this,arguments),c=e.apply(this,arguments),d=a.apply(this,arguments)/2,f=Wi.call(arguments),u=+i.apply(this,(f[0]=h,f)),p=s.apply(this,f)-Fi,m=r.apply(this,f)-Fi,g=+n.apply(this,(f[0]=c,f)),_=s.apply(this,f)-Fi,x=r.apply(this,f)-Fi;if(o||(o=l=Yi()),d>Ii&&(Li(m-p)>2*d+Ii?m>p?(p+=d,m-=d):(p-=d,m+=d):p=m=(p+m)/2,Li(x-_)>2*d+Ii?x>_?(_+=d,x-=d):(_-=d,x+=d):_=x=(_+x)/2),o.moveTo(u*Di(p),u*zi(p)),o.arc(0,0,u,p,m),p===_&&m===x||(o.quadraticCurveTo(0,0,g*Di(_),g*zi(_)),o.arc(0,0,g,_,x)),o.quadraticCurveTo(0,0,u*Di(p),u*zi(p)),o.closePath(),l)return o=null,l+""||null}return l.radius=function(t){return arguments.length?(i=n="function"==typeof t?t:Zi(+t),l):i},l.sourceRadius=function(t){return arguments.length?(i="function"==typeof t?t:Zi(+t),l):i},l.targetRadius=function(t){return arguments.length?(n="function"==typeof t?t:Zi(+t),l):n},l.startAngle=function(t){return arguments.length?(s="function"==typeof t?t:Zi(+t),l):s},l.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:Zi(+t),l):r},l.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Zi(+t),l):a},l.source=function(e){return arguments.length?(t=e,l):t},l.target=function(t){return arguments.length?(e=t,l):e},l.context=function(t){return arguments.length?(o=null==t?null:t,l):o},l}()}var rn={value: