From 260b8d52e95f5c9f348aba83917d19ef979b94ee Mon Sep 17 00:00:00 2001 From: Peter Bierma Date: Thu, 1 Aug 2024 11:46:02 -0400 Subject: [PATCH] flamegraph: Retain inversion when toggling filters Previously clicking the "Hide Irrelevant Frames" or "Hide Import System Frames" checkboxes would switch the flame graph back to icicle mode. Ensure we retain flame mode when the user has chosen it. --- news/656.bugfix.rst | 3 +++ src/memray/reporters/assets/flamegraph_common.js | 6 ++++-- src/memray/reporters/templates/assets/flamegraph.js | 2 +- src/memray/reporters/templates/assets/flamegraph_common.js | 2 +- .../reporters/templates/assets/temporal_flamegraph.js | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 news/656.bugfix.rst diff --git a/news/656.bugfix.rst b/news/656.bugfix.rst new file mode 100644 index 0000000000..70cc145356 --- /dev/null +++ b/news/656.bugfix.rst @@ -0,0 +1,3 @@ +Ensure flame graphs stay in flame mode when the user has selected it. +Previously clicking the "Hide Irrelevant Frames" or "Hide Import System Frames" +checkboxes would switch the flame graph back to icicle mode. diff --git a/src/memray/reporters/assets/flamegraph_common.js b/src/memray/reporters/assets/flamegraph_common.js index 10d5b04125..4be23e73c2 100644 --- a/src/memray/reporters/assets/flamegraph_common.js +++ b/src/memray/reporters/assets/flamegraph_common.js @@ -258,6 +258,9 @@ export function initThreadsDropdown(data, merge_threads) { } export function drawChart(chart_data) { + // Retain the "invertedness" if there's an existing graph. + let invert = chart ? chart.inverted() : true; + // Clear any existing chart if (chart) { chart.destroy(); @@ -270,8 +273,7 @@ export function drawChart(chart_data) { // smooth transitions .transitionDuration(250) .transitionEase(d3.easeCubic) - // invert the graph by default - .inverted(true) + .inverted(invert) // make each row a little taller .cellHeight(20) // don't show elements that are less than 5px wide diff --git a/src/memray/reporters/templates/assets/flamegraph.js b/src/memray/reporters/templates/assets/flamegraph.js index e4b0befa36..82c8459c6c 100644 --- a/src/memray/reporters/templates/assets/flamegraph.js +++ b/src/memray/reporters/templates/assets/flamegraph.js @@ -6,4 +6,4 @@ * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",f=16,c=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,_=NaN,d=4294967295,g=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",f],["flip",512],["partial",c],["partialRight",l],["rearg",h]],y="[object Arguments]",m="[object Array]",w="[object Boolean]",b="[object Date]",x="[object Error]",I="[object Function]",j="[object GeneratorFunction]",A="[object Map]",E="[object Number]",k="[object Object]",B="[object Promise]",O="[object RegExp]",z="[object Set]",R="[object String]",S="[object Symbol]",C="[object WeakMap]",F="[object ArrayBuffer]",L="[object DataView]",T="[object Float32Array]",D="[object Float64Array]",U="[object Int8Array]",W="[object Int16Array]",$="[object Int32Array]",M="[object Uint8Array]",P="[object Uint8ClampedArray]",N="[object Uint16Array]",q="[object Uint32Array]",Z=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,Y=RegExp(V.source),H=RegExp(J.source),X=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),an=/^\s+/,fn=/\s/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dn=/\w*$/,gn=/^[-+]0x[0-9a-f]+$/i,yn=/^0b[01]+$/i,mn=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,bn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,In=/($^)/,jn=/['\n\r\u2028\u2029\\]/g,An="\\ud800-\\udfff",En="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kn="\\u2700-\\u27bf",Bn="a-z\\xdf-\\xf6\\xf8-\\xff",On="A-Z\\xc0-\\xd6\\xd8-\\xde",zn="\\ufe0e\\ufe0f",Rn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Sn="['’]",Cn="["+An+"]",Fn="["+Rn+"]",Ln="["+En+"]",Tn="\\d+",Dn="["+kn+"]",Un="["+Bn+"]",Wn="[^"+An+Rn+Tn+kn+Bn+On+"]",$n="\\ud83c[\\udffb-\\udfff]",Mn="[^"+An+"]",Pn="(?:\\ud83c[\\udde6-\\uddff]){2}",Nn="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+On+"]",Zn="\\u200d",Gn="(?:"+Un+"|"+Wn+")",Kn="(?:"+qn+"|"+Wn+")",Vn="(?:['’](?:d|ll|m|re|s|t|ve))?",Jn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Yn="(?:"+Ln+"|"+$n+")"+"?",Hn="["+zn+"]?",Xn=Hn+Yn+("(?:"+Zn+"(?:"+[Mn,Pn,Nn].join("|")+")"+Hn+Yn+")*"),Qn="(?:"+[Dn,Pn,Nn].join("|")+")"+Xn,nt="(?:"+[Mn+Ln+"?",Ln,Pn,Nn,Cn].join("|")+")",tt=RegExp(Sn,"g"),rt=RegExp(Ln,"g"),et=RegExp($n+"(?="+$n+")|"+nt+Xn,"g"),ut=RegExp([qn+"?"+Un+"+"+Vn+"(?="+[Fn,qn,"$"].join("|")+")",Kn+"+"+Jn+"(?="+[Fn,qn+Gn,"$"].join("|")+")",qn+"?"+Gn+"+"+Vn,qn+"+"+Jn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tn,Qn].join("|"),"g"),it=RegExp("["+Zn+An+En+zn+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ft=-1,ct={};ct[T]=ct[D]=ct[U]=ct[W]=ct[$]=ct[M]=ct[P]=ct[N]=ct[q]=!0,ct[y]=ct[m]=ct[F]=ct[w]=ct[L]=ct[b]=ct[x]=ct[I]=ct[A]=ct[E]=ct[k]=ct[O]=ct[z]=ct[R]=ct[C]=!1;var lt={};lt[y]=lt[m]=lt[F]=lt[L]=lt[w]=lt[b]=lt[T]=lt[D]=lt[U]=lt[W]=lt[$]=lt[A]=lt[E]=lt[k]=lt[O]=lt[z]=lt[R]=lt[S]=lt[M]=lt[P]=lt[N]=lt[q]=!0,lt[x]=lt[I]=lt[C]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,vt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,_t="object"==typeof self&&self&&self.Object===Object&&self,dt=vt||_t||Function("return this")(),gt=t&&!t.nodeType&&t,yt=gt&&n&&!n.nodeType&&n,mt=yt&&yt.exports===gt,wt=mt&&vt.process,bt=function(){try{var n=yt&&yt.require&&yt.require("util").types;return n||wt&&wt.binding&&wt.binding("util")}catch(n){}}(),xt=bt&&bt.isArrayBuffer,It=bt&&bt.isDate,jt=bt&&bt.isMap,At=bt&&bt.isRegExp,Et=bt&&bt.isSet,kt=bt&&bt.isTypedArray;function Bt(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function Ot(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function Lt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function ur(n,t){for(var r=n.length;r--&&qt(t,n[r],0)>-1;);return r}var ir=Jt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),or=Jt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ar(n){return"\\"+st[n]}function fr(n){return it.test(n)}function cr(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function lr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"});var yr=function n(t){var r,e=(t=null==t?dt:yr.defaults(dt.Object(),t,yr.pick(dt,at))).Array,fn=t.Date,An=t.Error,En=t.Function,kn=t.Math,Bn=t.Object,On=t.RegExp,zn=t.String,Rn=t.TypeError,Sn=e.prototype,Cn=En.prototype,Fn=Bn.prototype,Ln=t["__core-js_shared__"],Tn=Cn.toString,Dn=Fn.hasOwnProperty,Un=0,Wn=(r=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",$n=Fn.toString,Mn=Tn.call(Bn),Pn=dt._,Nn=On("^"+Tn.call(Dn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=mt?t.Buffer:u,Zn=t.Symbol,Gn=t.Uint8Array,Kn=qn?qn.allocUnsafe:u,Vn=lr(Bn.getPrototypeOf,Bn),Jn=Bn.create,Yn=Fn.propertyIsEnumerable,Hn=Sn.splice,Xn=Zn?Zn.isConcatSpreadable:u,Qn=Zn?Zn.iterator:u,nt=Zn?Zn.toStringTag:u,et=function(){try{var n=hi(Bn,"defineProperty");return n({},"",{}),n}catch(n){}}(),it=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,st=fn&&fn.now!==dt.Date.now&&fn.now,vt=t.setTimeout!==dt.setTimeout&&t.setTimeout,_t=kn.ceil,gt=kn.floor,yt=Bn.getOwnPropertySymbols,wt=qn?qn.isBuffer:u,bt=t.isFinite,Mt=Sn.join,Jt=lr(Bn.keys,Bn),mr=kn.max,wr=kn.min,br=fn.now,xr=t.parseInt,Ir=kn.random,jr=Sn.reverse,Ar=hi(t,"DataView"),Er=hi(t,"Map"),kr=hi(t,"Promise"),Br=hi(t,"Set"),Or=hi(t,"WeakMap"),zr=hi(Bn,"create"),Rr=Or&&new Or,Sr={},Cr=Ui(Ar),Fr=Ui(Er),Lr=Ui(kr),Tr=Ui(Br),Dr=Ui(Or),Ur=Zn?Zn.prototype:u,Wr=Ur?Ur.valueOf:u,$r=Ur?Ur.toString:u;function Mr(n){if(ra(n)&&!Zo(n)&&!(n instanceof Zr)){if(n instanceof qr)return n;if(Dn.call(n,"__wrapped__"))return Wi(n)}return new qr(n)}var Pr=function(){function n(){}return function(t){if(!ta(t))return{};if(Jn)return Jn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Nr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Zr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Gr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function ce(n,t,r,e,i,o){var a,f=1&t,c=2&t,l=4&t;if(r&&(a=i?r(n,e,i,o):r(n)),a!==u)return a;if(!ta(n))return n;var s=Zo(n);if(s){if(a=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Dn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!f)return zu(n,a)}else{var h=_i(n),p=h==I||h==j;if(Jo(n))return ju(n,f);if(h==k||h==y||p&&!i){if(a=c||p?{}:gi(n),!f)return c?function(n,t){return Ru(n,vi(n),t)}(n,function(n,t){return n&&Ru(t,Ca(t),n)}(a,n)):function(n,t){return Ru(n,pi(n),t)}(n,ie(a,n))}else{if(!lt[h])return i?n:{};a=function(n,t,r){var e=n.constructor;switch(t){case F:return Au(n);case w:case b:return new e(+n);case L:return function(n,t){var r=t?Au(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case T:case D:case U:case W:case $:case M:case P:case N:case q:return Eu(n,r);case A:return new e;case E:case R:return new e(n);case O:return function(n){var t=new n.constructor(n.source,dn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case z:return new e;case S:return u=n,Wr?Bn(Wr.call(u)):{}}var u}(n,h,f)}}o||(o=new Yr);var v=o.get(n);if(v)return v;o.set(n,a),aa(n)?n.forEach((function(e){a.add(ce(e,t,r,e,n,o))})):ea(n)&&n.forEach((function(e,u){a.set(u,ce(e,t,r,u,n,o))}));var _=s?u:(l?c?ii:ui:c?Ca:Sa)(n);return zt(_||n,(function(e,u){_&&(e=n[u=e]),re(a,u,ce(e,t,r,u,n,o))})),a}function le(n,t,r){var e=r.length;if(null==n)return!e;for(n=Bn(n);e--;){var i=r[e],o=t[i],a=n[i];if(a===u&&!(i in n)||!o(a))return!1}return!0}function se(n,t,r){if("function"!=typeof n)throw new Rn(i);return Ri((function(){n.apply(u,r)}),t)}function he(n,t,r,e){var u=-1,i=Ft,o=!0,a=n.length,f=[],c=t.length;if(!a)return f;r&&(t=Tt(t,nr(r))),e?(i=Lt,o=!1):t.length>=200&&(i=rr,o=!1,t=new Jr(t));n:for(;++u-1},Kr.prototype.set=function(n,t){var r=this.__data__,e=ee(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Vr.prototype.clear=function(){this.size=0,this.__data__={hash:new Gr,map:new(Er||Kr),string:new Gr}},Vr.prototype.delete=function(n){var t=li(this,n).delete(n);return this.size-=t?1:0,t},Vr.prototype.get=function(n){return li(this,n).get(n)},Vr.prototype.has=function(n){return li(this,n).has(n)},Vr.prototype.set=function(n,t){var r=li(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Jr.prototype.add=Jr.prototype.push=function(n){return this.__data__.set(n,o),this},Jr.prototype.has=function(n){return this.__data__.has(n)},Yr.prototype.clear=function(){this.__data__=new Kr,this.size=0},Yr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Yr.prototype.get=function(n){return this.__data__.get(n)},Yr.prototype.has=function(n){return this.__data__.has(n)},Yr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Kr){var e=r.__data__;if(!Er||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Vr(e)}return r.set(n,t),this.size=r.size,this};var pe=Fu(be),ve=Fu(xe,!0);function _e(n,t){var r=!0;return pe(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function de(n,t,r){for(var e=-1,i=n.length;++e0&&r(a)?t>1?ye(a,t-1,r,e,u):Dt(u,a):e||(u[u.length]=a)}return u}var me=Lu(),we=Lu(!0);function be(n,t){return n&&me(n,t,Sa)}function xe(n,t){return n&&we(n,t,Sa)}function Ie(n,t){return Ct(t,(function(t){return Xo(n[t])}))}function je(n,t){for(var r=0,e=(t=wu(t,n)).length;null!=n&&rt}function Be(n,t){return null!=n&&Dn.call(n,t)}function Oe(n,t){return null!=n&&t in Bn(n)}function ze(n,t,r){for(var i=r?Lt:Ft,o=n[0].length,a=n.length,f=a,c=e(a),l=1/0,s=[];f--;){var h=n[f];f&&t&&(h=Tt(h,nr(t))),l=wr(h.length,l),c[f]=!r&&(t||o>=120&&h.length>=120)?new Jr(f&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p=a?f:f*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Ge(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)a!==n&&Hn.call(a,f,1),Hn.call(n,f,1);return n}function Ve(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;mi(u)?Hn.call(n,u,1):hu(n,u)}}return n}function Je(n,t){return n+gt(Ir()*(t-n+1))}function Ye(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=gt(t/2))&&(n+=n)}while(t);return r}function He(n,t){return Si(ki(n,t,uf),n+"")}function Xe(n){return Xr(Ma(n))}function Qe(n,t){var r=Ma(n);return Li(r,fe(t,0,r.length))}function nu(n,t,r,e){if(!ta(n))return n;for(var i=-1,o=(t=wu(t,n)).length,a=o-1,f=n;null!=f&&++ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=e(i);++u>>1,o=n[i];null!==o&&!ca(o)&&(r?o<=t:o=200){var c=t?null:Yu(n);if(c)return hr(c);o=!1,u=rr,f=new Jr}else f=t?[]:a;n:for(;++e=e?n:uu(n,t,r)}var Iu=it||function(n){return dt.clearTimeout(n)};function ju(n,t){if(t)return n.slice();var r=n.length,e=Kn?Kn(r):new n.constructor(r);return n.copy(e),e}function Au(n){var t=new n.constructor(n.byteLength);return new Gn(t).set(new Gn(n)),t}function Eu(n,t){var r=t?Au(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function ku(n,t){if(n!==t){var r=n!==u,e=null===n,i=n==n,o=ca(n),a=t!==u,f=null===t,c=t==t,l=ca(t);if(!f&&!l&&!o&&n>t||o&&a&&c&&!f&&!l||e&&a&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n1?r[i-1]:u,a=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,a&&wi(r[0],r[1],a)&&(o=i<3?u:o,i=1),t=Bn(t);++e-1?i[o?t[a]:a]:u}}function $u(n){return ei((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var a=t[e];if("function"!=typeof a)throw new Rn(i);if(o&&!f&&"wrapper"==ai(a))var f=new qr([],!0)}for(e=f?e:r;++e1&&w.reverse(),p&&lf))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Jr:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(cn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return zt(g,(function(r){var e="_."+r[0];t&r[1]&&!Ft(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Fi(n){var t=0,r=0;return function(){var e=br(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Li(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,io(n,r)}));function ho(n){var t=Mr(n);return t.__chain__=!0,t}function po(n,t){return t(n)}var vo=ei((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return ae(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Zr&&mi(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:po,args:[i],thisArg:u}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var _o=Su((function(n,t,r){Dn.call(n,r)?++n[r]:oe(n,r,1)}));var go=Wu(Ni),yo=Wu(qi);function mo(n,t){return(Zo(n)?zt:pe)(n,ci(t,3))}function wo(n,t){return(Zo(n)?Rt:ve)(n,ci(t,3))}var bo=Su((function(n,t,r){Dn.call(n,r)?n[r].push(t):oe(n,r,[t])}));var xo=He((function(n,t,r){var u=-1,i="function"==typeof t,o=Ko(n)?e(n.length):[];return pe(n,(function(n){o[++u]=i?Bt(t,n,r):Re(n,t,r)})),o})),Io=Su((function(n,t,r){oe(n,r,t)}));function jo(n,t){return(Zo(n)?Tt:$e)(n,ci(t,3))}var Ao=Su((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var Eo=He((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wi(n,t[0],t[1])?t=[]:r>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Ze(n,ye(t,1),[])})),ko=st||function(){return dt.Date.now()};function Bo(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Xu(n,s,u,u,u,u,t)}function Oo(n,t){var r;if("function"!=typeof t)throw new Rn(i);return n=_a(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var zo=He((function(n,t,r){var e=1;if(r.length){var u=sr(r,fi(zo));e|=c}return Xu(n,e,t,r,u)})),Ro=He((function(n,t,r){var e=3;if(r.length){var u=sr(r,fi(Ro));e|=c}return Xu(t,e,n,r,u)}));function So(n,t,r){var e,o,a,f,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new Rn(i);function _(t){var r=e,i=o;return e=o=u,s=t,f=n.apply(i,r)}function d(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=a}function g(){var n=ko();if(d(n))return y(n);c=Ri(g,function(n){var r=t-(n-l);return p?wr(r,a-(n-s)):r}(n))}function y(n){return c=u,v&&e?_(n):(e=o=u,f)}function m(){var n=ko(),r=d(n);if(e=arguments,o=this,l=n,r){if(c===u)return function(n){return s=n,c=Ri(g,t),h?_(n):f}(l);if(p)return Iu(c),c=Ri(g,t),_(l)}return c===u&&(c=Ri(g,t)),f}return t=ga(t)||0,ta(r)&&(h=!!r.leading,a=(p="maxWait"in r)?mr(ga(r.maxWait)||0,t):a,v="trailing"in r?!!r.trailing:v),m.cancel=function(){c!==u&&Iu(c),s=0,e=l=o=c=u},m.flush=function(){return c===u?f:y(ko())},m}var Co=He((function(n,t){return se(n,1,t)})),Fo=He((function(n,t,r){return se(n,ga(t)||0,r)}));function Lo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new Rn(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Lo.Cache||Vr),r}function To(n){if("function"!=typeof n)throw new Rn(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Lo.Cache=Vr;var Do=bu((function(n,t){var r=(t=1==t.length&&Zo(t[0])?Tt(t[0],nr(ci())):Tt(ye(t,1),nr(ci()))).length;return He((function(e){for(var u=-1,i=wr(e.length,r);++u=t})),qo=Se(function(){return arguments}())?Se:function(n){return ra(n)&&Dn.call(n,"callee")&&!Yn.call(n,"callee")},Zo=e.isArray,Go=xt?nr(xt):function(n){return ra(n)&&Ee(n)==F};function Ko(n){return null!=n&&na(n.length)&&!Xo(n)}function Vo(n){return ra(n)&&Ko(n)}var Jo=wt||yf,Yo=It?nr(It):function(n){return ra(n)&&Ee(n)==b};function Ho(n){if(!ra(n))return!1;var t=Ee(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!ia(n)}function Xo(n){if(!ta(n))return!1;var t=Ee(n);return t==I||t==j||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(n){return"number"==typeof n&&n==_a(n)}function na(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function ta(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function ra(n){return null!=n&&"object"==typeof n}var ea=jt?nr(jt):function(n){return ra(n)&&_i(n)==A};function ua(n){return"number"==typeof n||ra(n)&&Ee(n)==E}function ia(n){if(!ra(n)||Ee(n)!=k)return!1;var t=Vn(n);if(null===t)return!0;var r=Dn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Tn.call(r)==Mn}var oa=At?nr(At):function(n){return ra(n)&&Ee(n)==O};var aa=Et?nr(Et):function(n){return ra(n)&&_i(n)==z};function fa(n){return"string"==typeof n||!Zo(n)&&ra(n)&&Ee(n)==R}function ca(n){return"symbol"==typeof n||ra(n)&&Ee(n)==S}var la=kt?nr(kt):function(n){return ra(n)&&na(n.length)&&!!ct[Ee(n)]};var sa=Ku(We),ha=Ku((function(n,t){return n<=t}));function pa(n){if(!n)return[];if(Ko(n))return fa(n)?_r(n):zu(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=_i(n);return(t==A?cr:t==z?hr:Ma)(n)}function va(n){return n?(n=ga(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function _a(n){var t=va(n),r=t%1;return t==t?r?t-r:t:0}function da(n){return n?fe(_a(n),0,d):0}function ga(n){if("number"==typeof n)return n;if(ca(n))return _;if(ta(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=ta(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Qt(n);var r=yn.test(n);return r||wn.test(n)?pt(n.slice(2),r?2:8):gn.test(n)?_:+n}function ya(n){return Ru(n,Ca(n))}function ma(n){return null==n?"":lu(n)}var wa=Cu((function(n,t){if(ji(t)||Ko(t))Ru(t,Sa(t),n);else for(var r in t)Dn.call(t,r)&&re(n,r,t[r])})),ba=Cu((function(n,t){Ru(t,Ca(t),n)})),xa=Cu((function(n,t,r,e){Ru(t,Ca(t),n,e)})),Ia=Cu((function(n,t,r,e){Ru(t,Sa(t),n,e)})),ja=ei(ae);var Aa=He((function(n,t){n=Bn(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&wi(t[0],t[1],i)&&(e=1);++r1),t})),Ru(n,ii(n),r),e&&(r=ce(r,7,ti));for(var u=t.length;u--;)hu(r,t[u]);return r}));var Da=ei((function(n,t){return null==n?{}:function(n,t){return Ge(n,t,(function(t,r){return Ba(n,r)}))}(n,t)}));function Ua(n,t){if(null==n)return{};var r=Tt(ii(n),(function(n){return[n]}));return t=ci(t),Ge(n,r,(function(n,r){return t(n,r[0])}))}var Wa=Hu(Sa),$a=Hu(Ca);function Ma(n){return null==n?[]:tr(n,Sa(n))}var Pa=Du((function(n,t,r){return t=t.toLowerCase(),n+(r?Na(t):t)}));function Na(n){return Ha(ma(n).toLowerCase())}function qa(n){return(n=ma(n))&&n.replace(xn,ir).replace(rt,"")}var Za=Du((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Ga=Du((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Ka=Tu("toLowerCase");var Va=Du((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Ja=Du((function(n,t,r){return n+(r?" ":"")+Ha(t)}));var Ya=Du((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Ha=Tu("toUpperCase");function Xa(n,t,r){return n=ma(n),(t=r?u:t)===u?function(n){return ot.test(n)}(n)?function(n){return n.match(ut)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var Qa=He((function(n,t){try{return Bt(n,u,t)}catch(n){return Ho(n)?n:new An(n)}})),nf=ei((function(n,t){return zt(t,(function(t){t=Di(t),oe(n,t,zo(n[t],n))})),n}));function tf(n){return function(){return n}}var rf=$u(),ef=$u(!0);function uf(n){return n}function of(n){return Te("function"==typeof n?n:ce(n,1))}var af=He((function(n,t){return function(r){return Re(r,n,t)}})),ff=He((function(n,t){return function(r){return Re(n,r,t)}}));function cf(n,t,r){var e=Sa(t),u=Ie(t,e);null!=r||ta(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=Ie(t,Sa(t)));var i=!(ta(r)&&"chain"in r&&!r.chain),o=Xo(n);return zt(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=zu(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Dt([this.value()],arguments))})})),n}function lf(){}var sf=qu(Tt),hf=qu(St),pf=qu($t);function vf(n){return bi(n)?Vt(Di(n)):function(n){return function(t){return je(t,n)}}(n)}var _f=Gu(),df=Gu(!0);function gf(){return[]}function yf(){return!1}var mf=Nu((function(n,t){return n+t}),0),wf=Ju("ceil"),bf=Nu((function(n,t){return n/t}),1),xf=Ju("floor");var If,jf=Nu((function(n,t){return n*t}),1),Af=Ju("round"),Ef=Nu((function(n,t){return n-t}),0);return Mr.after=function(n,t){if("function"!=typeof t)throw new Rn(i);return n=_a(n),function(){if(--n<1)return t.apply(this,arguments)}},Mr.ary=Bo,Mr.assign=wa,Mr.assignIn=ba,Mr.assignInWith=xa,Mr.assignWith=Ia,Mr.at=ja,Mr.before=Oo,Mr.bind=zo,Mr.bindAll=nf,Mr.bindKey=Ro,Mr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Zo(n)?n:[n]},Mr.chain=ho,Mr.chunk=function(n,t,r){t=(r?wi(n,t,r):t===u)?1:mr(_a(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,a=0,f=e(_t(i/t));oi?0:i+r),(e=e===u||e>i?i:_a(e))<0&&(e+=i),e=r>e?0:da(e);r>>0)?(n=ma(n))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=lu(t))&&fr(n)?xu(_r(n),0,r):n.split(t,r):[]},Mr.spread=function(n,t){if("function"!=typeof n)throw new Rn(i);return t=null==t?0:mr(_a(t),0),He((function(r){var e=r[t],u=xu(r,0,t);return e&&Dt(u,e),Bt(n,this,u)}))},Mr.tail=function(n){var t=null==n?0:n.length;return t?uu(n,1,t):[]},Mr.take=function(n,t,r){return n&&n.length?uu(n,0,(t=r||t===u?1:_a(t))<0?0:t):[]},Mr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?uu(n,(t=e-(t=r||t===u?1:_a(t)))<0?0:t,e):[]},Mr.takeRightWhile=function(n,t){return n&&n.length?vu(n,ci(t,3),!1,!0):[]},Mr.takeWhile=function(n,t){return n&&n.length?vu(n,ci(t,3)):[]},Mr.tap=function(n,t){return t(n),n},Mr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new Rn(i);return ta(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),So(n,t,{leading:e,maxWait:t,trailing:u})},Mr.thru=po,Mr.toArray=pa,Mr.toPairs=Wa,Mr.toPairsIn=$a,Mr.toPath=function(n){return Zo(n)?Tt(n,Di):ca(n)?[n]:zu(Ti(ma(n)))},Mr.toPlainObject=ya,Mr.transform=function(n,t,r){var e=Zo(n),u=e||Jo(n)||la(n);if(t=ci(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:ta(n)&&Xo(i)?Pr(Vn(n)):{}}return(u?zt:be)(n,(function(n,e,u){return t(r,n,e,u)})),r},Mr.unary=function(n){return Bo(n,1)},Mr.union=to,Mr.unionBy=ro,Mr.unionWith=eo,Mr.uniq=function(n){return n&&n.length?su(n):[]},Mr.uniqBy=function(n,t){return n&&n.length?su(n,ci(t,2)):[]},Mr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?su(n,u,t):[]},Mr.unset=function(n,t){return null==n||hu(n,t)},Mr.unzip=uo,Mr.unzipWith=io,Mr.update=function(n,t,r){return null==n?n:pu(n,t,mu(r))},Mr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:pu(n,t,mu(r),e)},Mr.values=Ma,Mr.valuesIn=function(n){return null==n?[]:tr(n,Ca(n))},Mr.without=oo,Mr.words=Xa,Mr.wrap=function(n,t){return Uo(mu(t),n)},Mr.xor=ao,Mr.xorBy=fo,Mr.xorWith=co,Mr.zip=lo,Mr.zipObject=function(n,t){return gu(n||[],t||[],re)},Mr.zipObjectDeep=function(n,t){return gu(n||[],t||[],nu)},Mr.zipWith=so,Mr.entries=Wa,Mr.entriesIn=$a,Mr.extend=ba,Mr.extendWith=xa,cf(Mr,Mr),Mr.add=mf,Mr.attempt=Qa,Mr.camelCase=Pa,Mr.capitalize=Na,Mr.ceil=wf,Mr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=ga(r))==r?r:0),t!==u&&(t=(t=ga(t))==t?t:0),fe(ga(n),t,r)},Mr.clone=function(n){return ce(n,4)},Mr.cloneDeep=function(n){return ce(n,5)},Mr.cloneDeepWith=function(n,t){return ce(n,5,t="function"==typeof t?t:u)},Mr.cloneWith=function(n,t){return ce(n,4,t="function"==typeof t?t:u)},Mr.conformsTo=function(n,t){return null==t||le(n,t,Sa(t))},Mr.deburr=qa,Mr.defaultTo=function(n,t){return null==n||n!=n?t:n},Mr.divide=bf,Mr.endsWith=function(n,t,r){n=ma(n),t=lu(t);var e=n.length,i=r=r===u?e:fe(_a(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Mr.eq=Mo,Mr.escape=function(n){return(n=ma(n))&&H.test(n)?n.replace(J,or):n},Mr.escapeRegExp=function(n){return(n=ma(n))&&on.test(n)?n.replace(un,"\\$&"):n},Mr.every=function(n,t,r){var e=Zo(n)?St:_e;return r&&wi(n,t,r)&&(t=u),e(n,ci(t,3))},Mr.find=go,Mr.findIndex=Ni,Mr.findKey=function(n,t){return Pt(n,ci(t,3),be)},Mr.findLast=yo,Mr.findLastIndex=qi,Mr.findLastKey=function(n,t){return Pt(n,ci(t,3),xe)},Mr.floor=xf,Mr.forEach=mo,Mr.forEachRight=wo,Mr.forIn=function(n,t){return null==n?n:me(n,ci(t,3),Ca)},Mr.forInRight=function(n,t){return null==n?n:we(n,ci(t,3),Ca)},Mr.forOwn=function(n,t){return n&&be(n,ci(t,3))},Mr.forOwnRight=function(n,t){return n&&xe(n,ci(t,3))},Mr.get=ka,Mr.gt=Po,Mr.gte=No,Mr.has=function(n,t){return null!=n&&di(n,t,Be)},Mr.hasIn=Ba,Mr.head=Gi,Mr.identity=uf,Mr.includes=function(n,t,r,e){n=Ko(n)?n:Ma(n),r=r&&!e?_a(r):0;var u=n.length;return r<0&&(r=mr(u+r,0)),fa(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&qt(n,t,r)>-1},Mr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_a(r);return u<0&&(u=mr(e+u,0)),qt(n,t,u)},Mr.inRange=function(n,t,r){return t=va(t),r===u?(r=t,t=0):r=va(r),function(n,t,r){return n>=wr(t,r)&&n=-9007199254740991&&n<=v},Mr.isSet=aa,Mr.isString=fa,Mr.isSymbol=ca,Mr.isTypedArray=la,Mr.isUndefined=function(n){return n===u},Mr.isWeakMap=function(n){return ra(n)&&_i(n)==C},Mr.isWeakSet=function(n){return ra(n)&&"[object WeakSet]"==Ee(n)},Mr.join=function(n,t){return null==n?"":Mt.call(n,t)},Mr.kebabCase=Za,Mr.last=Yi,Mr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=_a(r))<0?mr(e+i,0):wr(i,e-1)),t==t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):Nt(n,Gt,i,!0)},Mr.lowerCase=Ga,Mr.lowerFirst=Ka,Mr.lt=sa,Mr.lte=ha,Mr.max=function(n){return n&&n.length?de(n,uf,ke):u},Mr.maxBy=function(n,t){return n&&n.length?de(n,ci(t,2),ke):u},Mr.mean=function(n){return Kt(n,uf)},Mr.meanBy=function(n,t){return Kt(n,ci(t,2))},Mr.min=function(n){return n&&n.length?de(n,uf,We):u},Mr.minBy=function(n,t){return n&&n.length?de(n,ci(t,2),We):u},Mr.stubArray=gf,Mr.stubFalse=yf,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=jf,Mr.nth=function(n,t){return n&&n.length?qe(n,_a(t)):u},Mr.noConflict=function(){return dt._===this&&(dt._=Pn),this},Mr.noop=lf,Mr.now=ko,Mr.pad=function(n,t,r){n=ma(n);var e=(t=_a(t))?vr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Zu(gt(u),r)+n+Zu(_t(u),r)},Mr.padEnd=function(n,t,r){n=ma(n);var e=(t=_a(t))?vr(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=Ir();return wr(n+i*(t-n+ht("1e-"+((i+"").length-1))),t)}return Je(n,t)},Mr.reduce=function(n,t,r){var e=Zo(n)?Ut:Yt,u=arguments.length<3;return e(n,ci(t,4),r,u,pe)},Mr.reduceRight=function(n,t,r){var e=Zo(n)?Wt:Yt,u=arguments.length<3;return e(n,ci(t,4),r,u,ve)},Mr.repeat=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:_a(t),Ye(ma(n),t)},Mr.replace=function(){var n=arguments,t=ma(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Mr.result=function(n,t,r){var e=-1,i=(t=wu(t,n)).length;for(i||(i=1,n=u);++ev)return[];var r=d,e=wr(n,d);t=ci(t),n-=d;for(var u=Xt(e,t);++r=o)return n;var f=r-vr(e);if(f<1)return e;var c=a?xu(a,0,f).join(""):n.slice(0,f);if(i===u)return c+e;if(a&&(f+=c.length-f),oa(i)){if(n.slice(f).search(i)){var l,s=c;for(i.global||(i=On(i.source,ma(dn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===u?f:h)}}else if(n.indexOf(lu(i),f)!=f){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Mr.unescape=function(n){return(n=ma(n))&&Y.test(n)?n.replace(V,gr):n},Mr.uniqueId=function(n){var t=++Un;return ma(n)+t},Mr.upperCase=Ya,Mr.upperFirst=Ha,Mr.each=mo,Mr.eachRight=wo,Mr.first=Gi,cf(Mr,(If={},be(Mr,(function(n,t){Dn.call(Mr.prototype,t)||(If[t]=n)})),If),{chain:!1}),Mr.VERSION="4.17.21",zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Mr[n].placeholder=Mr})),zt(["drop","take"],(function(n,t){Zr.prototype[n]=function(r){r=r===u?1:mr(_a(r),0);var e=this.__filtered__&&!t?new Zr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,d),type:n+(e.__dir__<0?"Right":"")}),e},Zr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),zt(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Zr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ci(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),zt(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Zr.prototype[n]=function(){return this[r](1).value()[0]}})),zt(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Zr.prototype[n]=function(){return this.__filtered__?new Zr(this):this[r](1)}})),Zr.prototype.compact=function(){return this.filter(uf)},Zr.prototype.find=function(n){return this.filter(n).head()},Zr.prototype.findLast=function(n){return this.reverse().find(n)},Zr.prototype.invokeMap=He((function(n,t){return"function"==typeof n?new Zr(this):this.map((function(r){return Re(r,n,t)}))})),Zr.prototype.reject=function(n){return this.filter(To(ci(n)))},Zr.prototype.slice=function(n,t){n=_a(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Zr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=_a(t))<0?r.dropRight(-t):r.take(t-n)),r)},Zr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Zr.prototype.toArray=function(){return this.take(d)},be(Zr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Mr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Mr.prototype[t]=function(){var t=this.__wrapped__,a=e?[1]:arguments,f=t instanceof Zr,c=a[0],l=f||Zo(t),s=function(n){var t=i.apply(Mr,Dt([n],a));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(f=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=f&&!p;if(!o&&l){t=_?t:new Zr(this);var d=n.apply(t,a);return d.__actions__.push({func:po,args:[s],thisArg:u}),new qr(d,h)}return v&&_?n.apply(this,a):(d=this.thru(s),v?e?d.value()[0]:d.value():d)})})),zt(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Sn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Mr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Zo(u)?u:[],n)}return this[r]((function(r){return t.apply(Zo(r)?r:[],n)}))}})),be(Zr.prototype,(function(n,t){var r=Mr[t];if(r){var e=r.name+"";Dn.call(Sr,e)||(Sr[e]=[]),Sr[e].push({name:t,func:r})}})),Sr[Mu(u,2).name]=[{name:"wrapper",func:u}],Zr.prototype.clone=function(){var n=new Zr(this.__wrapped__);return n.__actions__=zu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=zu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=zu(this.__views__),n},Zr.prototype.reverse=function(){if(this.__filtered__){var n=new Zr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Zr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Zo(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Mr.prototype.plant=function(n){for(var t,r=this;r instanceof Nr;){var e=Wi(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Mr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Zr){var t=n;return this.__actions__.length&&(t=new Zr(this)),(t=t.reverse()).__actions__.push({func:po,args:[no],thisArg:u}),new qr(t,this.__chain__)}return this.thru(no)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return _u(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,Qn&&(Mr.prototype[Qn]=function(){return this}),Mr}();dt._=yr,(e=function(){return yr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)},625:(n,t,r)=>{"use strict";r.d(t,{Fc:()=>h,NO:()=>l,O:()=>p,YD:()=>f,g5:()=>v,gB:()=>a,gf:()=>c,sB:()=>i,vU:()=>o});var e=r(486),u=r.n(e);function i(n){const t=n.map((n=>new Date(n[0]))),r=n.map((n=>n[1])),e=n.map((n=>n[2])),u=n.length>1?"lines":"markers";var i=[{x:t,y:r,mode:u,name:"Resident size"},{x:t,y:e,mode:u,name:"Heap size"}];Plotly.newPlot("memoryGraph",i,{xaxis:{title:{text:"Time"}},yaxis:{title:{text:"Memory Size"},tickformat:".4~s",exponentformat:"B",ticksuffix:"B"}},{responsive:!0}),Plotly.newPlot("smallMemoryGraph",i,{height:40,margin:{l:0,r:0,b:0,t:0,pad:4},plot_bgcolor:"#343a40",yaxis:{tickformat:".4~s",exponentformat:"B",ticksuffix:"B"},showlegend:!1},{responsive:!0,displayModeBar:!1}),document.getElementById("smallMemoryGraph").onclick((()=>{o()}))}function o(){setTimeout((()=>{Plotly.Plots.resize("memoryGraph"),Plotly.Plots.resize("smallMemoryGraph")}),100)}function a(n,t=1){if(Math.abs(n)<1024)return n+" B";const r=["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let e=-1;const u=10**t;do{n/=1024,++e}while(Math.round(Math.abs(n)*u)/u>=1024&&e1?"s":"";let i=`${e}
${t} total
${`${n.n_allocations} allocation${u}`}`;return!1===r&&(i=i.concat(`
Thread ID: ${n.thread_id}`)),i}function l(n,t){return function(n,t){let r=u().cloneDeep(n.children);const e=u().filter(r,(function n(r){return r.children&&r.children.length>0&&(r.children=u().filter(r.children,n)),t(r)}));return u().defaults({children:e},n)}(n,(n=>n.thread_id===t))}function s(n,t){function r(n){let e=[];if(t(n)){e=[];for(const t of n.children)e.push(...r(t));let t=u().clone(n);t.children=e,e=[t]}else for(const t of n.children)e.push(...r(t));return e}let e=[];for(let t of n.children)e.push(...r(t));return u().defaults({children:e},n)}function h(n){return s(n,(n=>n.interesting))}function p(n){return s(n,(n=>!n.import_system))}function v(n){return u().reduce(n,((n,t)=>(n.n_allocations+=t.n_allocations,n.value+=t.value,n)),{n_allocations:0,value:0})}},501:(n,t,r)=>{"use strict";r.d(t,{Cd:()=>c,Ji:()=>v,N4:()=>b,Vi:()=>j,Xx:()=>p,Z1:()=>w,bf:()=>d,cW:()=>I,ib:()=>y,sO:()=>m});var e=r(625);const u="filter_uninteresting",i="filter_import_system",o="filter_thread";var a=null;let f=new class{constructor(){this.filters={}}registerFilter(n,t){this.filters[n]=t}unRegisterFilter(n){delete this.filters[n]}drawChart(n){let t=n;_.forOwn(this.filters,(n=>{t=n(t)})),j(t),a.merge([])}};function c(){return a}function l(){return location.hash?parseInt(location.hash.substring(1),10):0}function s(){document.getElementById("resetZoomButton").disabled=0==l()}function h(n){n.id!=l()&&(history.pushState({id:n.id},n.data.name,`#${n.id}`),s())}function p(){const n=l(),t=a.findById(n);t&&(a.zoomTo(t),s())}function v(){a.inverted(this===document.getElementById("icicles")),a.resetZoom(),$('[data-toggle="tooltip"]').tooltip("hide")}function d(){a.resetZoom()}function g(){return document.getElementById("chart").clientWidth}function y(){f.drawChart(data),location.hash&&p()}function m(){const n=this.dataset.thread;"-0x1"===n?f.unRegisterFilter(o):f.registerFilter(o,(t=>{let r=(0,e.NO)(t,n);const u=(0,e.g5)(r.children);return _.defaults(u,r),r.n_allocations=u.n_allocations,r.value=u.value,r})),f.drawChart(data)}function w(){void 0===this.hideUninterestingFrames&&(this.hideUninterestingFrames=!0),!0===this.hideUninterestingFrames?(this.hideUninterestingFrames=!0,f.registerFilter(u,(n=>(0,e.Fc)(n)))):f.unRegisterFilter(u),this.hideUninterestingFrames=!this.hideUninterestingFrames,f.drawChart(data)}function b(){void 0===this.hideImportSystemFrames&&(this.hideImportSystemFrames=!0),!0===this.hideImportSystemFrames?(this.hideImportSystemFrames=!0,inverted?(data=invertedNoImportsData,temporal&&(hideImports=!0,intervals=invertedNoImportsIntervals)):f.registerFilter(i,(n=>(0,e.O)(n)))):(f.unRegisterFilter(i),data=flamegraphData,temporal&&(hideImports=!1,intervals=flamegraphIntervals)),this.hideImportSystemFrames=!this.hideImportSystemFrames,f.drawChart(data)}function x(n,t){return n.highlight?"orange":n.data.name&&n.data.location?(e=n.data.location[1],"py"==(r=void 0===e?e:e.substring(e.lastIndexOf(".")+1,e.length)||e)?d3.schemePastel1[2]:"c"==r||"cpp"==r||"h"==r?d3.schemePastel1[5]:d3.schemePastel1[8]):"#EEE";var r,e}function I(n,t){if(!0===t)return;const r=n.unique_threads;if(!r||r.length<=1)return;document.getElementById("threadsDropdown").removeAttribute("hidden");const e=document.getElementById("threadsDropdownList");for(const n of r){let t=document.createElement("a");t.className="dropdown-item",t.dataset.thread=n,t.text=n,t.onclick=m,e.appendChild(t)}}function j(n){a&&(a.destroy(),d3.selectAll(".d3-flame-graph-tip").remove()),a=flamegraph().width(g()).transitionDuration(250).transitionEase(d3.easeCubic).inverted(!0).cellHeight(20).minFrameSize(2).setColorMapper(x).onClick(h).tooltip(d3.tip().attr("class","d3-flame-graph-tip").html((n=>{const t=(0,e.gB)(n.data.value);return(0,e.gf)(n.data,t,merge_threads)})).direction((n=>{const t=(n.x1+n.x0)/2;return.25.25?"w":"n"}))),d3.select("#chart").datum(n).call(a),a.width(g())}}},t={};function r(e){var u=t[e];if(void 0!==u)return u.exports;var i=t[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return r.d(t,{a:t}),t},r.d=(n,t)=>{for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),r.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),r.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),(()=>{"use strict";var n=r(625),t=r(501);function e(n){const{strings:t,nodes:r,unique_threads:e}=n,u=r.name.map(((n,e)=>({name:t[r.name[e]],location:[t[r.function[e]],t[r.filename[e]],r.lineno[e]],value:r.value[e],children:r.children[e],n_allocations:r.n_allocations[e],thread_id:t[r.thread_id[e]],interesting:0!==r.interesting[e],import_system:0!==r.import_system[e]})));for(const n of u)n.children=n.children.map((n=>u[n]));const i=u[0];return i.unique_threads=e.map((n=>t[n])),i}window.resizeMemoryGraph=n.vU,document.addEventListener("DOMContentLoaded",(function(){!function(n){const{strings:t,nodes:r,inverted_no_imports_nodes:u,unique_threads:i}=n;flamegraphData=e({strings:t,nodes:r,unique_threads:i}),invertedNoImportsData=inverted?e({strings:t,nodes:u,unique_threads:i}):null,data=flamegraphData}(packed_data),(0,n.sB)(memory_records),(0,t.cW)(data,merge_threads),(0,t.Vi)(data),location.hash&&(0,t.Xx)(),document.getElementById("icicles").onchange=t.Ji,document.getElementById("flames").onchange=t.Ji,document.getElementById("resetZoomButton").onclick=t.bf,document.getElementById("resetThreadFilterItem").onclick=t.sO,document.getElementById("hideUninteresting").onclick=t.Z1.bind(this),document.getElementById("hideImportSystem").onclick=t.N4.bind(this),t.Z1.bind(this)(),document.onkeyup=n=>{"Escape"==n.code&&(0,t.bf)()},document.getElementById("searchTerm").addEventListener("input",(()=>{const n=document.getElementById("searchTerm");(0,t.Cd)().search(n.value)})),window.addEventListener("popstate",t.Xx),window.addEventListener("resize",(0,n.YD)(t.ib));let r=document.getElementById("stats-start-time"),u=document.getElementById("stats-end-time");r.textContent=new Date(r.innerText),u.textContent=new Date(u.innerText),$('[data-toggle-second="tooltip"]').tooltip(),$('[data-toggle="tooltip"]').tooltip()}))})()})(); \ No newline at end of file + */n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",f=16,c=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,_=NaN,d=4294967295,g=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",f],["flip",512],["partial",c],["partialRight",l],["rearg",h]],y="[object Arguments]",m="[object Array]",w="[object Boolean]",b="[object Date]",x="[object Error]",I="[object Function]",j="[object GeneratorFunction]",A="[object Map]",E="[object Number]",k="[object Object]",B="[object Promise]",O="[object RegExp]",z="[object Set]",R="[object String]",S="[object Symbol]",C="[object WeakMap]",F="[object ArrayBuffer]",L="[object DataView]",T="[object Float32Array]",D="[object Float64Array]",U="[object Int8Array]",W="[object Int16Array]",$="[object Int32Array]",M="[object Uint8Array]",P="[object Uint8ClampedArray]",N="[object Uint16Array]",q="[object Uint32Array]",Z=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,Y=RegExp(V.source),H=RegExp(J.source),X=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),an=/^\s+/,fn=/\s/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dn=/\w*$/,gn=/^[-+]0x[0-9a-f]+$/i,yn=/^0b[01]+$/i,mn=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,bn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,In=/($^)/,jn=/['\n\r\u2028\u2029\\]/g,An="\\ud800-\\udfff",En="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kn="\\u2700-\\u27bf",Bn="a-z\\xdf-\\xf6\\xf8-\\xff",On="A-Z\\xc0-\\xd6\\xd8-\\xde",zn="\\ufe0e\\ufe0f",Rn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Sn="['’]",Cn="["+An+"]",Fn="["+Rn+"]",Ln="["+En+"]",Tn="\\d+",Dn="["+kn+"]",Un="["+Bn+"]",Wn="[^"+An+Rn+Tn+kn+Bn+On+"]",$n="\\ud83c[\\udffb-\\udfff]",Mn="[^"+An+"]",Pn="(?:\\ud83c[\\udde6-\\uddff]){2}",Nn="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+On+"]",Zn="\\u200d",Gn="(?:"+Un+"|"+Wn+")",Kn="(?:"+qn+"|"+Wn+")",Vn="(?:['’](?:d|ll|m|re|s|t|ve))?",Jn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Yn="(?:"+Ln+"|"+$n+")"+"?",Hn="["+zn+"]?",Xn=Hn+Yn+("(?:"+Zn+"(?:"+[Mn,Pn,Nn].join("|")+")"+Hn+Yn+")*"),Qn="(?:"+[Dn,Pn,Nn].join("|")+")"+Xn,nt="(?:"+[Mn+Ln+"?",Ln,Pn,Nn,Cn].join("|")+")",tt=RegExp(Sn,"g"),rt=RegExp(Ln,"g"),et=RegExp($n+"(?="+$n+")|"+nt+Xn,"g"),ut=RegExp([qn+"?"+Un+"+"+Vn+"(?="+[Fn,qn,"$"].join("|")+")",Kn+"+"+Jn+"(?="+[Fn,qn+Gn,"$"].join("|")+")",qn+"?"+Gn+"+"+Vn,qn+"+"+Jn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tn,Qn].join("|"),"g"),it=RegExp("["+Zn+An+En+zn+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ft=-1,ct={};ct[T]=ct[D]=ct[U]=ct[W]=ct[$]=ct[M]=ct[P]=ct[N]=ct[q]=!0,ct[y]=ct[m]=ct[F]=ct[w]=ct[L]=ct[b]=ct[x]=ct[I]=ct[A]=ct[E]=ct[k]=ct[O]=ct[z]=ct[R]=ct[C]=!1;var lt={};lt[y]=lt[m]=lt[F]=lt[L]=lt[w]=lt[b]=lt[T]=lt[D]=lt[U]=lt[W]=lt[$]=lt[A]=lt[E]=lt[k]=lt[O]=lt[z]=lt[R]=lt[S]=lt[M]=lt[P]=lt[N]=lt[q]=!0,lt[x]=lt[I]=lt[C]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,vt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,_t="object"==typeof self&&self&&self.Object===Object&&self,dt=vt||_t||Function("return this")(),gt=t&&!t.nodeType&&t,yt=gt&&n&&!n.nodeType&&n,mt=yt&&yt.exports===gt,wt=mt&&vt.process,bt=function(){try{var n=yt&&yt.require&&yt.require("util").types;return n||wt&&wt.binding&&wt.binding("util")}catch(n){}}(),xt=bt&&bt.isArrayBuffer,It=bt&&bt.isDate,jt=bt&&bt.isMap,At=bt&&bt.isRegExp,Et=bt&&bt.isSet,kt=bt&&bt.isTypedArray;function Bt(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function Ot(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function Lt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function ur(n,t){for(var r=n.length;r--&&qt(t,n[r],0)>-1;);return r}var ir=Jt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),or=Jt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ar(n){return"\\"+st[n]}function fr(n){return it.test(n)}function cr(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function lr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"});var yr=function n(t){var r,e=(t=null==t?dt:yr.defaults(dt.Object(),t,yr.pick(dt,at))).Array,fn=t.Date,An=t.Error,En=t.Function,kn=t.Math,Bn=t.Object,On=t.RegExp,zn=t.String,Rn=t.TypeError,Sn=e.prototype,Cn=En.prototype,Fn=Bn.prototype,Ln=t["__core-js_shared__"],Tn=Cn.toString,Dn=Fn.hasOwnProperty,Un=0,Wn=(r=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",$n=Fn.toString,Mn=Tn.call(Bn),Pn=dt._,Nn=On("^"+Tn.call(Dn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=mt?t.Buffer:u,Zn=t.Symbol,Gn=t.Uint8Array,Kn=qn?qn.allocUnsafe:u,Vn=lr(Bn.getPrototypeOf,Bn),Jn=Bn.create,Yn=Fn.propertyIsEnumerable,Hn=Sn.splice,Xn=Zn?Zn.isConcatSpreadable:u,Qn=Zn?Zn.iterator:u,nt=Zn?Zn.toStringTag:u,et=function(){try{var n=hi(Bn,"defineProperty");return n({},"",{}),n}catch(n){}}(),it=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,st=fn&&fn.now!==dt.Date.now&&fn.now,vt=t.setTimeout!==dt.setTimeout&&t.setTimeout,_t=kn.ceil,gt=kn.floor,yt=Bn.getOwnPropertySymbols,wt=qn?qn.isBuffer:u,bt=t.isFinite,Mt=Sn.join,Jt=lr(Bn.keys,Bn),mr=kn.max,wr=kn.min,br=fn.now,xr=t.parseInt,Ir=kn.random,jr=Sn.reverse,Ar=hi(t,"DataView"),Er=hi(t,"Map"),kr=hi(t,"Promise"),Br=hi(t,"Set"),Or=hi(t,"WeakMap"),zr=hi(Bn,"create"),Rr=Or&&new Or,Sr={},Cr=Ui(Ar),Fr=Ui(Er),Lr=Ui(kr),Tr=Ui(Br),Dr=Ui(Or),Ur=Zn?Zn.prototype:u,Wr=Ur?Ur.valueOf:u,$r=Ur?Ur.toString:u;function Mr(n){if(ra(n)&&!Zo(n)&&!(n instanceof Zr)){if(n instanceof qr)return n;if(Dn.call(n,"__wrapped__"))return Wi(n)}return new qr(n)}var Pr=function(){function n(){}return function(t){if(!ta(t))return{};if(Jn)return Jn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Nr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Zr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Gr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function ce(n,t,r,e,i,o){var a,f=1&t,c=2&t,l=4&t;if(r&&(a=i?r(n,e,i,o):r(n)),a!==u)return a;if(!ta(n))return n;var s=Zo(n);if(s){if(a=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Dn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!f)return zu(n,a)}else{var h=_i(n),p=h==I||h==j;if(Jo(n))return ju(n,f);if(h==k||h==y||p&&!i){if(a=c||p?{}:gi(n),!f)return c?function(n,t){return Ru(n,vi(n),t)}(n,function(n,t){return n&&Ru(t,Ca(t),n)}(a,n)):function(n,t){return Ru(n,pi(n),t)}(n,ie(a,n))}else{if(!lt[h])return i?n:{};a=function(n,t,r){var e=n.constructor;switch(t){case F:return Au(n);case w:case b:return new e(+n);case L:return function(n,t){var r=t?Au(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case T:case D:case U:case W:case $:case M:case P:case N:case q:return Eu(n,r);case A:return new e;case E:case R:return new e(n);case O:return function(n){var t=new n.constructor(n.source,dn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case z:return new e;case S:return u=n,Wr?Bn(Wr.call(u)):{}}var u}(n,h,f)}}o||(o=new Yr);var v=o.get(n);if(v)return v;o.set(n,a),aa(n)?n.forEach((function(e){a.add(ce(e,t,r,e,n,o))})):ea(n)&&n.forEach((function(e,u){a.set(u,ce(e,t,r,u,n,o))}));var _=s?u:(l?c?ii:ui:c?Ca:Sa)(n);return zt(_||n,(function(e,u){_&&(e=n[u=e]),re(a,u,ce(e,t,r,u,n,o))})),a}function le(n,t,r){var e=r.length;if(null==n)return!e;for(n=Bn(n);e--;){var i=r[e],o=t[i],a=n[i];if(a===u&&!(i in n)||!o(a))return!1}return!0}function se(n,t,r){if("function"!=typeof n)throw new Rn(i);return Ri((function(){n.apply(u,r)}),t)}function he(n,t,r,e){var u=-1,i=Ft,o=!0,a=n.length,f=[],c=t.length;if(!a)return f;r&&(t=Tt(t,nr(r))),e?(i=Lt,o=!1):t.length>=200&&(i=rr,o=!1,t=new Jr(t));n:for(;++u-1},Kr.prototype.set=function(n,t){var r=this.__data__,e=ee(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Vr.prototype.clear=function(){this.size=0,this.__data__={hash:new Gr,map:new(Er||Kr),string:new Gr}},Vr.prototype.delete=function(n){var t=li(this,n).delete(n);return this.size-=t?1:0,t},Vr.prototype.get=function(n){return li(this,n).get(n)},Vr.prototype.has=function(n){return li(this,n).has(n)},Vr.prototype.set=function(n,t){var r=li(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Jr.prototype.add=Jr.prototype.push=function(n){return this.__data__.set(n,o),this},Jr.prototype.has=function(n){return this.__data__.has(n)},Yr.prototype.clear=function(){this.__data__=new Kr,this.size=0},Yr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Yr.prototype.get=function(n){return this.__data__.get(n)},Yr.prototype.has=function(n){return this.__data__.has(n)},Yr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Kr){var e=r.__data__;if(!Er||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Vr(e)}return r.set(n,t),this.size=r.size,this};var pe=Fu(be),ve=Fu(xe,!0);function _e(n,t){var r=!0;return pe(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function de(n,t,r){for(var e=-1,i=n.length;++e0&&r(a)?t>1?ye(a,t-1,r,e,u):Dt(u,a):e||(u[u.length]=a)}return u}var me=Lu(),we=Lu(!0);function be(n,t){return n&&me(n,t,Sa)}function xe(n,t){return n&&we(n,t,Sa)}function Ie(n,t){return Ct(t,(function(t){return Xo(n[t])}))}function je(n,t){for(var r=0,e=(t=wu(t,n)).length;null!=n&&rt}function Be(n,t){return null!=n&&Dn.call(n,t)}function Oe(n,t){return null!=n&&t in Bn(n)}function ze(n,t,r){for(var i=r?Lt:Ft,o=n[0].length,a=n.length,f=a,c=e(a),l=1/0,s=[];f--;){var h=n[f];f&&t&&(h=Tt(h,nr(t))),l=wr(h.length,l),c[f]=!r&&(t||o>=120&&h.length>=120)?new Jr(f&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p=a?f:f*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Ge(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)a!==n&&Hn.call(a,f,1),Hn.call(n,f,1);return n}function Ve(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;mi(u)?Hn.call(n,u,1):hu(n,u)}}return n}function Je(n,t){return n+gt(Ir()*(t-n+1))}function Ye(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=gt(t/2))&&(n+=n)}while(t);return r}function He(n,t){return Si(ki(n,t,uf),n+"")}function Xe(n){return Xr(Ma(n))}function Qe(n,t){var r=Ma(n);return Li(r,fe(t,0,r.length))}function nu(n,t,r,e){if(!ta(n))return n;for(var i=-1,o=(t=wu(t,n)).length,a=o-1,f=n;null!=f&&++ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=e(i);++u>>1,o=n[i];null!==o&&!ca(o)&&(r?o<=t:o=200){var c=t?null:Yu(n);if(c)return hr(c);o=!1,u=rr,f=new Jr}else f=t?[]:a;n:for(;++e=e?n:uu(n,t,r)}var Iu=it||function(n){return dt.clearTimeout(n)};function ju(n,t){if(t)return n.slice();var r=n.length,e=Kn?Kn(r):new n.constructor(r);return n.copy(e),e}function Au(n){var t=new n.constructor(n.byteLength);return new Gn(t).set(new Gn(n)),t}function Eu(n,t){var r=t?Au(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function ku(n,t){if(n!==t){var r=n!==u,e=null===n,i=n==n,o=ca(n),a=t!==u,f=null===t,c=t==t,l=ca(t);if(!f&&!l&&!o&&n>t||o&&a&&c&&!f&&!l||e&&a&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n1?r[i-1]:u,a=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,a&&wi(r[0],r[1],a)&&(o=i<3?u:o,i=1),t=Bn(t);++e-1?i[o?t[a]:a]:u}}function $u(n){return ei((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var a=t[e];if("function"!=typeof a)throw new Rn(i);if(o&&!f&&"wrapper"==ai(a))var f=new qr([],!0)}for(e=f?e:r;++e1&&w.reverse(),p&&lf))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Jr:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(cn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return zt(g,(function(r){var e="_."+r[0];t&r[1]&&!Ft(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Fi(n){var t=0,r=0;return function(){var e=br(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Li(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,io(n,r)}));function ho(n){var t=Mr(n);return t.__chain__=!0,t}function po(n,t){return t(n)}var vo=ei((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return ae(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Zr&&mi(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:po,args:[i],thisArg:u}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var _o=Su((function(n,t,r){Dn.call(n,r)?++n[r]:oe(n,r,1)}));var go=Wu(Ni),yo=Wu(qi);function mo(n,t){return(Zo(n)?zt:pe)(n,ci(t,3))}function wo(n,t){return(Zo(n)?Rt:ve)(n,ci(t,3))}var bo=Su((function(n,t,r){Dn.call(n,r)?n[r].push(t):oe(n,r,[t])}));var xo=He((function(n,t,r){var u=-1,i="function"==typeof t,o=Ko(n)?e(n.length):[];return pe(n,(function(n){o[++u]=i?Bt(t,n,r):Re(n,t,r)})),o})),Io=Su((function(n,t,r){oe(n,r,t)}));function jo(n,t){return(Zo(n)?Tt:$e)(n,ci(t,3))}var Ao=Su((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var Eo=He((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wi(n,t[0],t[1])?t=[]:r>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Ze(n,ye(t,1),[])})),ko=st||function(){return dt.Date.now()};function Bo(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Xu(n,s,u,u,u,u,t)}function Oo(n,t){var r;if("function"!=typeof t)throw new Rn(i);return n=_a(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var zo=He((function(n,t,r){var e=1;if(r.length){var u=sr(r,fi(zo));e|=c}return Xu(n,e,t,r,u)})),Ro=He((function(n,t,r){var e=3;if(r.length){var u=sr(r,fi(Ro));e|=c}return Xu(t,e,n,r,u)}));function So(n,t,r){var e,o,a,f,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new Rn(i);function _(t){var r=e,i=o;return e=o=u,s=t,f=n.apply(i,r)}function d(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=a}function g(){var n=ko();if(d(n))return y(n);c=Ri(g,function(n){var r=t-(n-l);return p?wr(r,a-(n-s)):r}(n))}function y(n){return c=u,v&&e?_(n):(e=o=u,f)}function m(){var n=ko(),r=d(n);if(e=arguments,o=this,l=n,r){if(c===u)return function(n){return s=n,c=Ri(g,t),h?_(n):f}(l);if(p)return Iu(c),c=Ri(g,t),_(l)}return c===u&&(c=Ri(g,t)),f}return t=ga(t)||0,ta(r)&&(h=!!r.leading,a=(p="maxWait"in r)?mr(ga(r.maxWait)||0,t):a,v="trailing"in r?!!r.trailing:v),m.cancel=function(){c!==u&&Iu(c),s=0,e=l=o=c=u},m.flush=function(){return c===u?f:y(ko())},m}var Co=He((function(n,t){return se(n,1,t)})),Fo=He((function(n,t,r){return se(n,ga(t)||0,r)}));function Lo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new Rn(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Lo.Cache||Vr),r}function To(n){if("function"!=typeof n)throw new Rn(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Lo.Cache=Vr;var Do=bu((function(n,t){var r=(t=1==t.length&&Zo(t[0])?Tt(t[0],nr(ci())):Tt(ye(t,1),nr(ci()))).length;return He((function(e){for(var u=-1,i=wr(e.length,r);++u=t})),qo=Se(function(){return arguments}())?Se:function(n){return ra(n)&&Dn.call(n,"callee")&&!Yn.call(n,"callee")},Zo=e.isArray,Go=xt?nr(xt):function(n){return ra(n)&&Ee(n)==F};function Ko(n){return null!=n&&na(n.length)&&!Xo(n)}function Vo(n){return ra(n)&&Ko(n)}var Jo=wt||yf,Yo=It?nr(It):function(n){return ra(n)&&Ee(n)==b};function Ho(n){if(!ra(n))return!1;var t=Ee(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!ia(n)}function Xo(n){if(!ta(n))return!1;var t=Ee(n);return t==I||t==j||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(n){return"number"==typeof n&&n==_a(n)}function na(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function ta(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function ra(n){return null!=n&&"object"==typeof n}var ea=jt?nr(jt):function(n){return ra(n)&&_i(n)==A};function ua(n){return"number"==typeof n||ra(n)&&Ee(n)==E}function ia(n){if(!ra(n)||Ee(n)!=k)return!1;var t=Vn(n);if(null===t)return!0;var r=Dn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Tn.call(r)==Mn}var oa=At?nr(At):function(n){return ra(n)&&Ee(n)==O};var aa=Et?nr(Et):function(n){return ra(n)&&_i(n)==z};function fa(n){return"string"==typeof n||!Zo(n)&&ra(n)&&Ee(n)==R}function ca(n){return"symbol"==typeof n||ra(n)&&Ee(n)==S}var la=kt?nr(kt):function(n){return ra(n)&&na(n.length)&&!!ct[Ee(n)]};var sa=Ku(We),ha=Ku((function(n,t){return n<=t}));function pa(n){if(!n)return[];if(Ko(n))return fa(n)?_r(n):zu(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=_i(n);return(t==A?cr:t==z?hr:Ma)(n)}function va(n){return n?(n=ga(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function _a(n){var t=va(n),r=t%1;return t==t?r?t-r:t:0}function da(n){return n?fe(_a(n),0,d):0}function ga(n){if("number"==typeof n)return n;if(ca(n))return _;if(ta(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=ta(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Qt(n);var r=yn.test(n);return r||wn.test(n)?pt(n.slice(2),r?2:8):gn.test(n)?_:+n}function ya(n){return Ru(n,Ca(n))}function ma(n){return null==n?"":lu(n)}var wa=Cu((function(n,t){if(ji(t)||Ko(t))Ru(t,Sa(t),n);else for(var r in t)Dn.call(t,r)&&re(n,r,t[r])})),ba=Cu((function(n,t){Ru(t,Ca(t),n)})),xa=Cu((function(n,t,r,e){Ru(t,Ca(t),n,e)})),Ia=Cu((function(n,t,r,e){Ru(t,Sa(t),n,e)})),ja=ei(ae);var Aa=He((function(n,t){n=Bn(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&wi(t[0],t[1],i)&&(e=1);++r1),t})),Ru(n,ii(n),r),e&&(r=ce(r,7,ti));for(var u=t.length;u--;)hu(r,t[u]);return r}));var Da=ei((function(n,t){return null==n?{}:function(n,t){return Ge(n,t,(function(t,r){return Ba(n,r)}))}(n,t)}));function Ua(n,t){if(null==n)return{};var r=Tt(ii(n),(function(n){return[n]}));return t=ci(t),Ge(n,r,(function(n,r){return t(n,r[0])}))}var Wa=Hu(Sa),$a=Hu(Ca);function Ma(n){return null==n?[]:tr(n,Sa(n))}var Pa=Du((function(n,t,r){return t=t.toLowerCase(),n+(r?Na(t):t)}));function Na(n){return Ha(ma(n).toLowerCase())}function qa(n){return(n=ma(n))&&n.replace(xn,ir).replace(rt,"")}var Za=Du((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Ga=Du((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Ka=Tu("toLowerCase");var Va=Du((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Ja=Du((function(n,t,r){return n+(r?" ":"")+Ha(t)}));var Ya=Du((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Ha=Tu("toUpperCase");function Xa(n,t,r){return n=ma(n),(t=r?u:t)===u?function(n){return ot.test(n)}(n)?function(n){return n.match(ut)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var Qa=He((function(n,t){try{return Bt(n,u,t)}catch(n){return Ho(n)?n:new An(n)}})),nf=ei((function(n,t){return zt(t,(function(t){t=Di(t),oe(n,t,zo(n[t],n))})),n}));function tf(n){return function(){return n}}var rf=$u(),ef=$u(!0);function uf(n){return n}function of(n){return Te("function"==typeof n?n:ce(n,1))}var af=He((function(n,t){return function(r){return Re(r,n,t)}})),ff=He((function(n,t){return function(r){return Re(n,r,t)}}));function cf(n,t,r){var e=Sa(t),u=Ie(t,e);null!=r||ta(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=Ie(t,Sa(t)));var i=!(ta(r)&&"chain"in r&&!r.chain),o=Xo(n);return zt(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=zu(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Dt([this.value()],arguments))})})),n}function lf(){}var sf=qu(Tt),hf=qu(St),pf=qu($t);function vf(n){return bi(n)?Vt(Di(n)):function(n){return function(t){return je(t,n)}}(n)}var _f=Gu(),df=Gu(!0);function gf(){return[]}function yf(){return!1}var mf=Nu((function(n,t){return n+t}),0),wf=Ju("ceil"),bf=Nu((function(n,t){return n/t}),1),xf=Ju("floor");var If,jf=Nu((function(n,t){return n*t}),1),Af=Ju("round"),Ef=Nu((function(n,t){return n-t}),0);return Mr.after=function(n,t){if("function"!=typeof t)throw new Rn(i);return n=_a(n),function(){if(--n<1)return t.apply(this,arguments)}},Mr.ary=Bo,Mr.assign=wa,Mr.assignIn=ba,Mr.assignInWith=xa,Mr.assignWith=Ia,Mr.at=ja,Mr.before=Oo,Mr.bind=zo,Mr.bindAll=nf,Mr.bindKey=Ro,Mr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Zo(n)?n:[n]},Mr.chain=ho,Mr.chunk=function(n,t,r){t=(r?wi(n,t,r):t===u)?1:mr(_a(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,a=0,f=e(_t(i/t));oi?0:i+r),(e=e===u||e>i?i:_a(e))<0&&(e+=i),e=r>e?0:da(e);r>>0)?(n=ma(n))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=lu(t))&&fr(n)?xu(_r(n),0,r):n.split(t,r):[]},Mr.spread=function(n,t){if("function"!=typeof n)throw new Rn(i);return t=null==t?0:mr(_a(t),0),He((function(r){var e=r[t],u=xu(r,0,t);return e&&Dt(u,e),Bt(n,this,u)}))},Mr.tail=function(n){var t=null==n?0:n.length;return t?uu(n,1,t):[]},Mr.take=function(n,t,r){return n&&n.length?uu(n,0,(t=r||t===u?1:_a(t))<0?0:t):[]},Mr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?uu(n,(t=e-(t=r||t===u?1:_a(t)))<0?0:t,e):[]},Mr.takeRightWhile=function(n,t){return n&&n.length?vu(n,ci(t,3),!1,!0):[]},Mr.takeWhile=function(n,t){return n&&n.length?vu(n,ci(t,3)):[]},Mr.tap=function(n,t){return t(n),n},Mr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new Rn(i);return ta(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),So(n,t,{leading:e,maxWait:t,trailing:u})},Mr.thru=po,Mr.toArray=pa,Mr.toPairs=Wa,Mr.toPairsIn=$a,Mr.toPath=function(n){return Zo(n)?Tt(n,Di):ca(n)?[n]:zu(Ti(ma(n)))},Mr.toPlainObject=ya,Mr.transform=function(n,t,r){var e=Zo(n),u=e||Jo(n)||la(n);if(t=ci(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:ta(n)&&Xo(i)?Pr(Vn(n)):{}}return(u?zt:be)(n,(function(n,e,u){return t(r,n,e,u)})),r},Mr.unary=function(n){return Bo(n,1)},Mr.union=to,Mr.unionBy=ro,Mr.unionWith=eo,Mr.uniq=function(n){return n&&n.length?su(n):[]},Mr.uniqBy=function(n,t){return n&&n.length?su(n,ci(t,2)):[]},Mr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?su(n,u,t):[]},Mr.unset=function(n,t){return null==n||hu(n,t)},Mr.unzip=uo,Mr.unzipWith=io,Mr.update=function(n,t,r){return null==n?n:pu(n,t,mu(r))},Mr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:pu(n,t,mu(r),e)},Mr.values=Ma,Mr.valuesIn=function(n){return null==n?[]:tr(n,Ca(n))},Mr.without=oo,Mr.words=Xa,Mr.wrap=function(n,t){return Uo(mu(t),n)},Mr.xor=ao,Mr.xorBy=fo,Mr.xorWith=co,Mr.zip=lo,Mr.zipObject=function(n,t){return gu(n||[],t||[],re)},Mr.zipObjectDeep=function(n,t){return gu(n||[],t||[],nu)},Mr.zipWith=so,Mr.entries=Wa,Mr.entriesIn=$a,Mr.extend=ba,Mr.extendWith=xa,cf(Mr,Mr),Mr.add=mf,Mr.attempt=Qa,Mr.camelCase=Pa,Mr.capitalize=Na,Mr.ceil=wf,Mr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=ga(r))==r?r:0),t!==u&&(t=(t=ga(t))==t?t:0),fe(ga(n),t,r)},Mr.clone=function(n){return ce(n,4)},Mr.cloneDeep=function(n){return ce(n,5)},Mr.cloneDeepWith=function(n,t){return ce(n,5,t="function"==typeof t?t:u)},Mr.cloneWith=function(n,t){return ce(n,4,t="function"==typeof t?t:u)},Mr.conformsTo=function(n,t){return null==t||le(n,t,Sa(t))},Mr.deburr=qa,Mr.defaultTo=function(n,t){return null==n||n!=n?t:n},Mr.divide=bf,Mr.endsWith=function(n,t,r){n=ma(n),t=lu(t);var e=n.length,i=r=r===u?e:fe(_a(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Mr.eq=Mo,Mr.escape=function(n){return(n=ma(n))&&H.test(n)?n.replace(J,or):n},Mr.escapeRegExp=function(n){return(n=ma(n))&&on.test(n)?n.replace(un,"\\$&"):n},Mr.every=function(n,t,r){var e=Zo(n)?St:_e;return r&&wi(n,t,r)&&(t=u),e(n,ci(t,3))},Mr.find=go,Mr.findIndex=Ni,Mr.findKey=function(n,t){return Pt(n,ci(t,3),be)},Mr.findLast=yo,Mr.findLastIndex=qi,Mr.findLastKey=function(n,t){return Pt(n,ci(t,3),xe)},Mr.floor=xf,Mr.forEach=mo,Mr.forEachRight=wo,Mr.forIn=function(n,t){return null==n?n:me(n,ci(t,3),Ca)},Mr.forInRight=function(n,t){return null==n?n:we(n,ci(t,3),Ca)},Mr.forOwn=function(n,t){return n&&be(n,ci(t,3))},Mr.forOwnRight=function(n,t){return n&&xe(n,ci(t,3))},Mr.get=ka,Mr.gt=Po,Mr.gte=No,Mr.has=function(n,t){return null!=n&&di(n,t,Be)},Mr.hasIn=Ba,Mr.head=Gi,Mr.identity=uf,Mr.includes=function(n,t,r,e){n=Ko(n)?n:Ma(n),r=r&&!e?_a(r):0;var u=n.length;return r<0&&(r=mr(u+r,0)),fa(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&qt(n,t,r)>-1},Mr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:_a(r);return u<0&&(u=mr(e+u,0)),qt(n,t,u)},Mr.inRange=function(n,t,r){return t=va(t),r===u?(r=t,t=0):r=va(r),function(n,t,r){return n>=wr(t,r)&&n=-9007199254740991&&n<=v},Mr.isSet=aa,Mr.isString=fa,Mr.isSymbol=ca,Mr.isTypedArray=la,Mr.isUndefined=function(n){return n===u},Mr.isWeakMap=function(n){return ra(n)&&_i(n)==C},Mr.isWeakSet=function(n){return ra(n)&&"[object WeakSet]"==Ee(n)},Mr.join=function(n,t){return null==n?"":Mt.call(n,t)},Mr.kebabCase=Za,Mr.last=Yi,Mr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=_a(r))<0?mr(e+i,0):wr(i,e-1)),t==t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):Nt(n,Gt,i,!0)},Mr.lowerCase=Ga,Mr.lowerFirst=Ka,Mr.lt=sa,Mr.lte=ha,Mr.max=function(n){return n&&n.length?de(n,uf,ke):u},Mr.maxBy=function(n,t){return n&&n.length?de(n,ci(t,2),ke):u},Mr.mean=function(n){return Kt(n,uf)},Mr.meanBy=function(n,t){return Kt(n,ci(t,2))},Mr.min=function(n){return n&&n.length?de(n,uf,We):u},Mr.minBy=function(n,t){return n&&n.length?de(n,ci(t,2),We):u},Mr.stubArray=gf,Mr.stubFalse=yf,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=jf,Mr.nth=function(n,t){return n&&n.length?qe(n,_a(t)):u},Mr.noConflict=function(){return dt._===this&&(dt._=Pn),this},Mr.noop=lf,Mr.now=ko,Mr.pad=function(n,t,r){n=ma(n);var e=(t=_a(t))?vr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Zu(gt(u),r)+n+Zu(_t(u),r)},Mr.padEnd=function(n,t,r){n=ma(n);var e=(t=_a(t))?vr(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=Ir();return wr(n+i*(t-n+ht("1e-"+((i+"").length-1))),t)}return Je(n,t)},Mr.reduce=function(n,t,r){var e=Zo(n)?Ut:Yt,u=arguments.length<3;return e(n,ci(t,4),r,u,pe)},Mr.reduceRight=function(n,t,r){var e=Zo(n)?Wt:Yt,u=arguments.length<3;return e(n,ci(t,4),r,u,ve)},Mr.repeat=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:_a(t),Ye(ma(n),t)},Mr.replace=function(){var n=arguments,t=ma(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Mr.result=function(n,t,r){var e=-1,i=(t=wu(t,n)).length;for(i||(i=1,n=u);++ev)return[];var r=d,e=wr(n,d);t=ci(t),n-=d;for(var u=Xt(e,t);++r=o)return n;var f=r-vr(e);if(f<1)return e;var c=a?xu(a,0,f).join(""):n.slice(0,f);if(i===u)return c+e;if(a&&(f+=c.length-f),oa(i)){if(n.slice(f).search(i)){var l,s=c;for(i.global||(i=On(i.source,ma(dn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===u?f:h)}}else if(n.indexOf(lu(i),f)!=f){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Mr.unescape=function(n){return(n=ma(n))&&Y.test(n)?n.replace(V,gr):n},Mr.uniqueId=function(n){var t=++Un;return ma(n)+t},Mr.upperCase=Ya,Mr.upperFirst=Ha,Mr.each=mo,Mr.eachRight=wo,Mr.first=Gi,cf(Mr,(If={},be(Mr,(function(n,t){Dn.call(Mr.prototype,t)||(If[t]=n)})),If),{chain:!1}),Mr.VERSION="4.17.21",zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Mr[n].placeholder=Mr})),zt(["drop","take"],(function(n,t){Zr.prototype[n]=function(r){r=r===u?1:mr(_a(r),0);var e=this.__filtered__&&!t?new Zr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,d),type:n+(e.__dir__<0?"Right":"")}),e},Zr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),zt(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Zr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ci(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),zt(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Zr.prototype[n]=function(){return this[r](1).value()[0]}})),zt(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Zr.prototype[n]=function(){return this.__filtered__?new Zr(this):this[r](1)}})),Zr.prototype.compact=function(){return this.filter(uf)},Zr.prototype.find=function(n){return this.filter(n).head()},Zr.prototype.findLast=function(n){return this.reverse().find(n)},Zr.prototype.invokeMap=He((function(n,t){return"function"==typeof n?new Zr(this):this.map((function(r){return Re(r,n,t)}))})),Zr.prototype.reject=function(n){return this.filter(To(ci(n)))},Zr.prototype.slice=function(n,t){n=_a(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Zr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=_a(t))<0?r.dropRight(-t):r.take(t-n)),r)},Zr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Zr.prototype.toArray=function(){return this.take(d)},be(Zr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Mr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Mr.prototype[t]=function(){var t=this.__wrapped__,a=e?[1]:arguments,f=t instanceof Zr,c=a[0],l=f||Zo(t),s=function(n){var t=i.apply(Mr,Dt([n],a));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(f=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=f&&!p;if(!o&&l){t=_?t:new Zr(this);var d=n.apply(t,a);return d.__actions__.push({func:po,args:[s],thisArg:u}),new qr(d,h)}return v&&_?n.apply(this,a):(d=this.thru(s),v?e?d.value()[0]:d.value():d)})})),zt(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Sn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Mr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Zo(u)?u:[],n)}return this[r]((function(r){return t.apply(Zo(r)?r:[],n)}))}})),be(Zr.prototype,(function(n,t){var r=Mr[t];if(r){var e=r.name+"";Dn.call(Sr,e)||(Sr[e]=[]),Sr[e].push({name:t,func:r})}})),Sr[Mu(u,2).name]=[{name:"wrapper",func:u}],Zr.prototype.clone=function(){var n=new Zr(this.__wrapped__);return n.__actions__=zu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=zu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=zu(this.__views__),n},Zr.prototype.reverse=function(){if(this.__filtered__){var n=new Zr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Zr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Zo(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Mr.prototype.plant=function(n){for(var t,r=this;r instanceof Nr;){var e=Wi(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Mr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Zr){var t=n;return this.__actions__.length&&(t=new Zr(this)),(t=t.reverse()).__actions__.push({func:po,args:[no],thisArg:u}),new qr(t,this.__chain__)}return this.thru(no)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return _u(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,Qn&&(Mr.prototype[Qn]=function(){return this}),Mr}();dt._=yr,(e=function(){return yr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)},625:(n,t,r)=>{"use strict";r.d(t,{Fc:()=>h,NO:()=>l,O:()=>p,YD:()=>f,g5:()=>v,gB:()=>a,gf:()=>c,sB:()=>i,vU:()=>o});var e=r(486),u=r.n(e);function i(n){const t=n.map((n=>new Date(n[0]))),r=n.map((n=>n[1])),e=n.map((n=>n[2])),u=n.length>1?"lines":"markers";var i=[{x:t,y:r,mode:u,name:"Resident size"},{x:t,y:e,mode:u,name:"Heap size"}];Plotly.newPlot("memoryGraph",i,{xaxis:{title:{text:"Time"}},yaxis:{title:{text:"Memory Size"},tickformat:".4~s",exponentformat:"B",ticksuffix:"B"}},{responsive:!0}),Plotly.newPlot("smallMemoryGraph",i,{height:40,margin:{l:0,r:0,b:0,t:0,pad:4},plot_bgcolor:"#343a40",yaxis:{tickformat:".4~s",exponentformat:"B",ticksuffix:"B"},showlegend:!1},{responsive:!0,displayModeBar:!1}),document.getElementById("smallMemoryGraph").onclick((()=>{o()}))}function o(){setTimeout((()=>{Plotly.Plots.resize("memoryGraph"),Plotly.Plots.resize("smallMemoryGraph")}),100)}function a(n,t=1){if(Math.abs(n)<1024)return n+" B";const r=["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let e=-1;const u=10**t;do{n/=1024,++e}while(Math.round(Math.abs(n)*u)/u>=1024&&e1?"s":"";let i=`${e}
${t} total
${`${n.n_allocations} allocation${u}`}`;return!1===r&&(i=i.concat(`
Thread ID: ${n.thread_id}`)),i}function l(n,t){return function(n,t){let r=u().cloneDeep(n.children);const e=u().filter(r,(function n(r){return r.children&&r.children.length>0&&(r.children=u().filter(r.children,n)),t(r)}));return u().defaults({children:e},n)}(n,(n=>n.thread_id===t))}function s(n,t){function r(n){let e=[];if(t(n)){e=[];for(const t of n.children)e.push(...r(t));let t=u().clone(n);t.children=e,e=[t]}else for(const t of n.children)e.push(...r(t));return e}let e=[];for(let t of n.children)e.push(...r(t));return u().defaults({children:e},n)}function h(n){return s(n,(n=>n.interesting))}function p(n){return s(n,(n=>!n.import_system))}function v(n){return u().reduce(n,((n,t)=>(n.n_allocations+=t.n_allocations,n.value+=t.value,n)),{n_allocations:0,value:0})}},501:(n,t,r)=>{"use strict";r.d(t,{Cd:()=>c,Ji:()=>v,N4:()=>b,Vi:()=>j,Xx:()=>p,Z1:()=>w,bf:()=>d,cW:()=>I,ib:()=>y,sO:()=>m});var e=r(625);const u="filter_uninteresting",i="filter_import_system",o="filter_thread";var a=null;let f=new class{constructor(){this.filters={}}registerFilter(n,t){this.filters[n]=t}unRegisterFilter(n){delete this.filters[n]}drawChart(n){let t=n;_.forOwn(this.filters,(n=>{t=n(t)})),j(t),a.merge([])}};function c(){return a}function l(){return location.hash?parseInt(location.hash.substring(1),10):0}function s(){document.getElementById("resetZoomButton").disabled=0==l()}function h(n){n.id!=l()&&(history.pushState({id:n.id},n.data.name,`#${n.id}`),s())}function p(){const n=l(),t=a.findById(n);t&&(a.zoomTo(t),s())}function v(){a.inverted(this===document.getElementById("icicles")),a.resetZoom(),$('[data-toggle="tooltip"]').tooltip("hide")}function d(){a.resetZoom()}function g(){return document.getElementById("chart").clientWidth}function y(){f.drawChart(data),location.hash&&p()}function m(){const n=this.dataset.thread;"-0x1"===n?f.unRegisterFilter(o):f.registerFilter(o,(t=>{let r=(0,e.NO)(t,n);const u=(0,e.g5)(r.children);return _.defaults(u,r),r.n_allocations=u.n_allocations,r.value=u.value,r})),f.drawChart(data)}function w(){void 0===this.hideUninterestingFrames&&(this.hideUninterestingFrames=!0),!0===this.hideUninterestingFrames?(this.hideUninterestingFrames=!0,f.registerFilter(u,(n=>(0,e.Fc)(n)))):f.unRegisterFilter(u),this.hideUninterestingFrames=!this.hideUninterestingFrames,f.drawChart(data)}function b(){void 0===this.hideImportSystemFrames&&(this.hideImportSystemFrames=!0),!0===this.hideImportSystemFrames?(this.hideImportSystemFrames=!0,inverted?(data=invertedNoImportsData,temporal&&(hideImports=!0,intervals=invertedNoImportsIntervals)):f.registerFilter(i,(n=>(0,e.O)(n)))):(f.unRegisterFilter(i),data=flamegraphData,temporal&&(hideImports=!1,intervals=flamegraphIntervals)),this.hideImportSystemFrames=!this.hideImportSystemFrames,f.drawChart(data)}function x(n,t){return n.highlight?"orange":n.data.name&&n.data.location?(e=n.data.location[1],"py"==(r=void 0===e?e:e.substring(e.lastIndexOf(".")+1,e.length)||e)?d3.schemePastel1[2]:"c"==r||"cpp"==r||"h"==r?d3.schemePastel1[5]:d3.schemePastel1[8]):"#EEE";var r,e}function I(n,t){if(!0===t)return;const r=n.unique_threads;if(!r||r.length<=1)return;document.getElementById("threadsDropdown").removeAttribute("hidden");const e=document.getElementById("threadsDropdownList");for(const n of r){let t=document.createElement("a");t.className="dropdown-item",t.dataset.thread=n,t.text=n,t.onclick=m,e.appendChild(t)}}function j(n){let t=!a||a.inverted();a&&(a.destroy(),d3.selectAll(".d3-flame-graph-tip").remove()),a=flamegraph().width(g()).transitionDuration(250).transitionEase(d3.easeCubic).inverted(t).cellHeight(20).minFrameSize(2).setColorMapper(x).onClick(h).tooltip(d3.tip().attr("class","d3-flame-graph-tip").html((n=>{const t=(0,e.gB)(n.data.value);return(0,e.gf)(n.data,t,merge_threads)})).direction((n=>{const t=(n.x1+n.x0)/2;return.25.25?"w":"n"}))),d3.select("#chart").datum(n).call(a),a.width(g())}}},t={};function r(e){var u=t[e];if(void 0!==u)return u.exports;var i=t[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return r.d(t,{a:t}),t},r.d=(n,t)=>{for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),r.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),r.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),(()=>{"use strict";var n=r(625),t=r(501);function e(n){const{strings:t,nodes:r,unique_threads:e}=n,u=r.name.map(((n,e)=>({name:t[r.name[e]],location:[t[r.function[e]],t[r.filename[e]],r.lineno[e]],value:r.value[e],children:r.children[e],n_allocations:r.n_allocations[e],thread_id:t[r.thread_id[e]],interesting:0!==r.interesting[e],import_system:0!==r.import_system[e]})));for(const n of u)n.children=n.children.map((n=>u[n]));const i=u[0];return i.unique_threads=e.map((n=>t[n])),i}window.resizeMemoryGraph=n.vU,document.addEventListener("DOMContentLoaded",(function(){!function(n){const{strings:t,nodes:r,inverted_no_imports_nodes:u,unique_threads:i}=n;flamegraphData=e({strings:t,nodes:r,unique_threads:i}),invertedNoImportsData=inverted?e({strings:t,nodes:u,unique_threads:i}):null,data=flamegraphData}(packed_data),(0,n.sB)(memory_records),(0,t.cW)(data,merge_threads),(0,t.Vi)(data),location.hash&&(0,t.Xx)(),document.getElementById("icicles").onchange=t.Ji,document.getElementById("flames").onchange=t.Ji,document.getElementById("resetZoomButton").onclick=t.bf,document.getElementById("resetThreadFilterItem").onclick=t.sO,document.getElementById("hideUninteresting").onclick=t.Z1.bind(this),document.getElementById("hideImportSystem").onclick=t.N4.bind(this),t.Z1.bind(this)(),document.onkeyup=n=>{"Escape"==n.code&&(0,t.bf)()},document.getElementById("searchTerm").addEventListener("input",(()=>{const n=document.getElementById("searchTerm");(0,t.Cd)().search(n.value)})),window.addEventListener("popstate",t.Xx),window.addEventListener("resize",(0,n.YD)(t.ib));let r=document.getElementById("stats-start-time"),u=document.getElementById("stats-end-time");r.textContent=new Date(r.innerText),u.textContent=new Date(u.innerText),$('[data-toggle-second="tooltip"]').tooltip(),$('[data-toggle="tooltip"]').tooltip()}))})()})(); \ No newline at end of file diff --git a/src/memray/reporters/templates/assets/flamegraph_common.js b/src/memray/reporters/templates/assets/flamegraph_common.js index ebae67b590..52539ad51f 100644 --- a/src/memray/reporters/templates/assets/flamegraph_common.js +++ b/src/memray/reporters/templates/assets/flamegraph_common.js @@ -6,4 +6,4 @@ * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",a=16,c=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,_=NaN,g=4294967295,d=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",c],["partialRight",l],["rearg",h]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",m="[object Date]",x="[object Error]",j="[object Function]",A="[object GeneratorFunction]",O="[object Map]",k="[object Number]",I="[object Object]",E="[object Promise]",R="[object RegExp]",z="[object Set]",S="[object String]",B="[object Symbol]",C="[object WeakMap]",W="[object ArrayBuffer]",L="[object DataView]",$="[object Float32Array]",T="[object Float64Array]",U="[object Int8Array]",D="[object Int16Array]",M="[object Int32Array]",F="[object Uint8Array]",P="[object Uint8ClampedArray]",N="[object Uint16Array]",q="[object Uint32Array]",Z=/\b__p \+= '';/g,K=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,Y=RegExp(V.source),J=RegExp(H.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),fn=/^\s+/,an=/\s/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,dn=/^[-+]0x[0-9a-f]+$/i,yn=/^0b[01]+$/i,bn=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jn=/($^)/,An=/['\n\r\u2028\u2029\\]/g,On="\\ud800-\\udfff",kn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",In="\\u2700-\\u27bf",En="a-z\\xdf-\\xf6\\xf8-\\xff",Rn="A-Z\\xc0-\\xd6\\xd8-\\xde",zn="\\ufe0e\\ufe0f",Sn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bn="['’]",Cn="["+On+"]",Wn="["+Sn+"]",Ln="["+kn+"]",$n="\\d+",Tn="["+In+"]",Un="["+En+"]",Dn="[^"+On+Sn+$n+In+En+Rn+"]",Mn="\\ud83c[\\udffb-\\udfff]",Fn="[^"+On+"]",Pn="(?:\\ud83c[\\udde6-\\uddff]){2}",Nn="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+Rn+"]",Zn="\\u200d",Kn="(?:"+Un+"|"+Dn+")",Gn="(?:"+qn+"|"+Dn+")",Vn="(?:['’](?:d|ll|m|re|s|t|ve))?",Hn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Yn="(?:"+Ln+"|"+Mn+")"+"?",Jn="["+zn+"]?",Qn=Jn+Yn+("(?:"+Zn+"(?:"+[Fn,Pn,Nn].join("|")+")"+Jn+Yn+")*"),Xn="(?:"+[Tn,Pn,Nn].join("|")+")"+Qn,nt="(?:"+[Fn+Ln+"?",Ln,Pn,Nn,Cn].join("|")+")",tt=RegExp(Bn,"g"),rt=RegExp(Ln,"g"),et=RegExp(Mn+"(?="+Mn+")|"+nt+Qn,"g"),ut=RegExp([qn+"?"+Un+"+"+Vn+"(?="+[Wn,qn,"$"].join("|")+")",Gn+"+"+Hn+"(?="+[Wn,qn+Kn,"$"].join("|")+")",qn+"?"+Kn+"+"+Vn,qn+"+"+Hn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$n,Xn].join("|"),"g"),it=RegExp("["+Zn+On+kn+zn+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ft=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ct={};ct[$]=ct[T]=ct[U]=ct[D]=ct[M]=ct[F]=ct[P]=ct[N]=ct[q]=!0,ct[y]=ct[b]=ct[W]=ct[w]=ct[L]=ct[m]=ct[x]=ct[j]=ct[O]=ct[k]=ct[I]=ct[R]=ct[z]=ct[S]=ct[C]=!1;var lt={};lt[y]=lt[b]=lt[W]=lt[L]=lt[w]=lt[m]=lt[$]=lt[T]=lt[U]=lt[D]=lt[M]=lt[O]=lt[k]=lt[I]=lt[R]=lt[z]=lt[S]=lt[B]=lt[F]=lt[P]=lt[N]=lt[q]=!0,lt[x]=lt[j]=lt[C]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,vt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,_t="object"==typeof self&&self&&self.Object===Object&&self,gt=vt||_t||Function("return this")(),dt=t&&!t.nodeType&&t,yt=dt&&n&&!n.nodeType&&n,bt=yt&&yt.exports===dt,wt=bt&&vt.process,mt=function(){try{var n=yt&&yt.require&&yt.require("util").types;return n||wt&&wt.binding&&wt.binding("util")}catch(n){}}(),xt=mt&&mt.isArrayBuffer,jt=mt&&mt.isDate,At=mt&&mt.isMap,Ot=mt&&mt.isRegExp,kt=mt&&mt.isSet,It=mt&&mt.isTypedArray;function Et(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function Rt(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function Lt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function ur(n,t){for(var r=n.length;r--&&qt(t,n[r],0)>-1;);return r}var ir=Ht({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),or=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function fr(n){return"\\"+st[n]}function ar(n){return it.test(n)}function cr(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function lr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"});var yr=function n(t){var r,e=(t=null==t?gt:yr.defaults(gt.Object(),t,yr.pick(gt,ft))).Array,an=t.Date,On=t.Error,kn=t.Function,In=t.Math,En=t.Object,Rn=t.RegExp,zn=t.String,Sn=t.TypeError,Bn=e.prototype,Cn=kn.prototype,Wn=En.prototype,Ln=t["__core-js_shared__"],$n=Cn.toString,Tn=Wn.hasOwnProperty,Un=0,Dn=(r=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Mn=Wn.toString,Fn=$n.call(En),Pn=gt._,Nn=Rn("^"+$n.call(Tn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=bt?t.Buffer:u,Zn=t.Symbol,Kn=t.Uint8Array,Gn=qn?qn.allocUnsafe:u,Vn=lr(En.getPrototypeOf,En),Hn=En.create,Yn=Wn.propertyIsEnumerable,Jn=Bn.splice,Qn=Zn?Zn.isConcatSpreadable:u,Xn=Zn?Zn.iterator:u,nt=Zn?Zn.toStringTag:u,et=function(){try{var n=hi(En,"defineProperty");return n({},"",{}),n}catch(n){}}(),it=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,st=an&&an.now!==gt.Date.now&&an.now,vt=t.setTimeout!==gt.setTimeout&&t.setTimeout,_t=In.ceil,dt=In.floor,yt=En.getOwnPropertySymbols,wt=qn?qn.isBuffer:u,mt=t.isFinite,Ft=Bn.join,Ht=lr(En.keys,En),br=In.max,wr=In.min,mr=an.now,xr=t.parseInt,jr=In.random,Ar=Bn.reverse,Or=hi(t,"DataView"),kr=hi(t,"Map"),Ir=hi(t,"Promise"),Er=hi(t,"Set"),Rr=hi(t,"WeakMap"),zr=hi(En,"create"),Sr=Rr&&new Rr,Br={},Cr=Ui(Or),Wr=Ui(kr),Lr=Ui(Ir),$r=Ui(Er),Tr=Ui(Rr),Ur=Zn?Zn.prototype:u,Dr=Ur?Ur.valueOf:u,Mr=Ur?Ur.toString:u;function Fr(n){if(rf(n)&&!Zo(n)&&!(n instanceof Zr)){if(n instanceof qr)return n;if(Tn.call(n,"__wrapped__"))return Di(n)}return new qr(n)}var Pr=function(){function n(){}return function(t){if(!tf(t))return{};if(Hn)return Hn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Nr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Zr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Kr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function ce(n,t,r,e,i,o){var f,a=1&t,c=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),f!==u)return f;if(!tf(n))return n;var s=Zo(n);if(s){if(f=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Tn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!a)return zu(n,f)}else{var h=_i(n),p=h==j||h==A;if(Ho(n))return Au(n,a);if(h==I||h==y||p&&!i){if(f=c||p?{}:di(n),!a)return c?function(n,t){return Su(n,vi(n),t)}(n,function(n,t){return n&&Su(t,Wf(t),n)}(f,n)):function(n,t){return Su(n,pi(n),t)}(n,ie(f,n))}else{if(!lt[h])return i?n:{};f=function(n,t,r){var e=n.constructor;switch(t){case W:return Ou(n);case w:case m:return new e(+n);case L:return function(n,t){var r=t?Ou(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case $:case T:case U:case D:case M:case F:case P:case N:case q:return ku(n,r);case O:return new e;case k:case S:return new e(n);case R:return function(n){var t=new n.constructor(n.source,gn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case z:return new e;case B:return u=n,Dr?En(Dr.call(u)):{}}var u}(n,h,a)}}o||(o=new Yr);var v=o.get(n);if(v)return v;o.set(n,f),af(n)?n.forEach((function(e){f.add(ce(e,t,r,e,n,o))})):ef(n)&&n.forEach((function(e,u){f.set(u,ce(e,t,r,u,n,o))}));var _=s?u:(l?c?ii:ui:c?Wf:Cf)(n);return zt(_||n,(function(e,u){_&&(e=n[u=e]),re(f,u,ce(e,t,r,u,n,o))})),f}function le(n,t,r){var e=r.length;if(null==n)return!e;for(n=En(n);e--;){var i=r[e],o=t[i],f=n[i];if(f===u&&!(i in n)||!o(f))return!1}return!0}function se(n,t,r){if("function"!=typeof n)throw new Sn(i);return Si((function(){n.apply(u,r)}),t)}function he(n,t,r,e){var u=-1,i=Wt,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=$t(t,nr(r))),e?(i=Lt,o=!1):t.length>=200&&(i=rr,o=!1,t=new Hr(t));n:for(;++u-1},Gr.prototype.set=function(n,t){var r=this.__data__,e=ee(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Vr.prototype.clear=function(){this.size=0,this.__data__={hash:new Kr,map:new(kr||Gr),string:new Kr}},Vr.prototype.delete=function(n){var t=li(this,n).delete(n);return this.size-=t?1:0,t},Vr.prototype.get=function(n){return li(this,n).get(n)},Vr.prototype.has=function(n){return li(this,n).has(n)},Vr.prototype.set=function(n,t){var r=li(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Hr.prototype.add=Hr.prototype.push=function(n){return this.__data__.set(n,o),this},Hr.prototype.has=function(n){return this.__data__.has(n)},Yr.prototype.clear=function(){this.__data__=new Gr,this.size=0},Yr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Yr.prototype.get=function(n){return this.__data__.get(n)},Yr.prototype.has=function(n){return this.__data__.has(n)},Yr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Gr){var e=r.__data__;if(!kr||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Vr(e)}return r.set(n,t),this.size=r.size,this};var pe=Wu(me),ve=Wu(xe,!0);function _e(n,t){var r=!0;return pe(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function ge(n,t,r){for(var e=-1,i=n.length;++e0&&r(f)?t>1?ye(f,t-1,r,e,u):Tt(u,f):e||(u[u.length]=f)}return u}var be=Lu(),we=Lu(!0);function me(n,t){return n&&be(n,t,Cf)}function xe(n,t){return n&&we(n,t,Cf)}function je(n,t){return Ct(t,(function(t){return Qo(n[t])}))}function Ae(n,t){for(var r=0,e=(t=wu(t,n)).length;null!=n&&rt}function Ee(n,t){return null!=n&&Tn.call(n,t)}function Re(n,t){return null!=n&&t in En(n)}function ze(n,t,r){for(var i=r?Lt:Wt,o=n[0].length,f=n.length,a=f,c=e(f),l=1/0,s=[];a--;){var h=n[a];a&&t&&(h=$t(h,nr(t))),l=wr(h.length,l),c[a]=!r&&(t||o>=120&&h.length>=120)?new Hr(a&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p=f?a:a*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Ke(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)f!==n&&Jn.call(f,a,1),Jn.call(n,a,1);return n}function Ve(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;bi(u)?Jn.call(n,u,1):hu(n,u)}}return n}function He(n,t){return n+dt(jr()*(t-n+1))}function Ye(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=dt(t/2))&&(n+=n)}while(t);return r}function Je(n,t){return Bi(Ii(n,t,ia),n+"")}function Qe(n){return Qr(Pf(n))}function Xe(n,t){var r=Pf(n);return Li(r,ae(t,0,r.length))}function nu(n,t,r,e){if(!tf(n))return n;for(var i=-1,o=(t=wu(t,n)).length,f=o-1,a=n;null!=a&&++ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=e(i);++u>>1,o=n[i];null!==o&&!lf(o)&&(r?o<=t:o=200){var c=t?null:Yu(n);if(c)return hr(c);o=!1,u=rr,a=new Hr}else a=t?[]:f;n:for(;++e=e?n:uu(n,t,r)}var ju=it||function(n){return gt.clearTimeout(n)};function Au(n,t){if(t)return n.slice();var r=n.length,e=Gn?Gn(r):new n.constructor(r);return n.copy(e),e}function Ou(n){var t=new n.constructor(n.byteLength);return new Kn(t).set(new Kn(n)),t}function ku(n,t){var r=t?Ou(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Iu(n,t){if(n!==t){var r=n!==u,e=null===n,i=n==n,o=lf(n),f=t!==u,a=null===t,c=t==t,l=lf(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||e&&f&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&wi(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=En(t);++e-1?i[o?t[f]:f]:u}}function Mu(n){return ei((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new Sn(i);if(o&&!a&&"wrapper"==fi(f))var a=new qr([],!0)}for(e=a?e:r;++e1&&w.reverse(),p&&la))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Hr:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(cn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return zt(d,(function(r){var e="_."+r[0];t&r[1]&&!Wt(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Wi(n){var t=0,r=0;return function(){var e=mr(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Li(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,io(n,r)}));function ho(n){var t=Fr(n);return t.__chain__=!0,t}function po(n,t){return t(n)}var vo=ei((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return fe(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Zr&&bi(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:po,args:[i],thisArg:u}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var _o=Bu((function(n,t,r){Tn.call(n,r)?++n[r]:oe(n,r,1)}));var go=Du(Ni),yo=Du(qi);function bo(n,t){return(Zo(n)?zt:pe)(n,ci(t,3))}function wo(n,t){return(Zo(n)?St:ve)(n,ci(t,3))}var mo=Bu((function(n,t,r){Tn.call(n,r)?n[r].push(t):oe(n,r,[t])}));var xo=Je((function(n,t,r){var u=-1,i="function"==typeof t,o=Go(n)?e(n.length):[];return pe(n,(function(n){o[++u]=i?Et(t,n,r):Se(n,t,r)})),o})),jo=Bu((function(n,t,r){oe(n,r,t)}));function Ao(n,t){return(Zo(n)?$t:Me)(n,ci(t,3))}var Oo=Bu((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var ko=Je((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wi(n,t[0],t[1])?t=[]:r>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Ze(n,ye(t,1),[])})),Io=st||function(){return gt.Date.now()};function Eo(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Qu(n,s,u,u,u,u,t)}function Ro(n,t){var r;if("function"!=typeof t)throw new Sn(i);return n=gf(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var zo=Je((function(n,t,r){var e=1;if(r.length){var u=sr(r,ai(zo));e|=c}return Qu(n,e,t,r,u)})),So=Je((function(n,t,r){var e=3;if(r.length){var u=sr(r,ai(So));e|=c}return Qu(t,e,n,r,u)}));function Bo(n,t,r){var e,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new Sn(i);function _(t){var r=e,i=o;return e=o=u,s=t,a=n.apply(i,r)}function g(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=f}function d(){var n=Io();if(g(n))return y(n);c=Si(d,function(n){var r=t-(n-l);return p?wr(r,f-(n-s)):r}(n))}function y(n){return c=u,v&&e?_(n):(e=o=u,a)}function b(){var n=Io(),r=g(n);if(e=arguments,o=this,l=n,r){if(c===u)return function(n){return s=n,c=Si(d,t),h?_(n):a}(l);if(p)return ju(c),c=Si(d,t),_(l)}return c===u&&(c=Si(d,t)),a}return t=yf(t)||0,tf(r)&&(h=!!r.leading,f=(p="maxWait"in r)?br(yf(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),b.cancel=function(){c!==u&&ju(c),s=0,e=l=o=c=u},b.flush=function(){return c===u?a:y(Io())},b}var Co=Je((function(n,t){return se(n,1,t)})),Wo=Je((function(n,t,r){return se(n,yf(t)||0,r)}));function Lo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new Sn(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Lo.Cache||Vr),r}function $o(n){if("function"!=typeof n)throw new Sn(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Lo.Cache=Vr;var To=mu((function(n,t){var r=(t=1==t.length&&Zo(t[0])?$t(t[0],nr(ci())):$t(ye(t,1),nr(ci()))).length;return Je((function(e){for(var u=-1,i=wr(e.length,r);++u=t})),qo=Be(function(){return arguments}())?Be:function(n){return rf(n)&&Tn.call(n,"callee")&&!Yn.call(n,"callee")},Zo=e.isArray,Ko=xt?nr(xt):function(n){return rf(n)&&ke(n)==W};function Go(n){return null!=n&&nf(n.length)&&!Qo(n)}function Vo(n){return rf(n)&&Go(n)}var Ho=wt||ya,Yo=jt?nr(jt):function(n){return rf(n)&&ke(n)==m};function Jo(n){if(!rf(n))return!1;var t=ke(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!of(n)}function Qo(n){if(!tf(n))return!1;var t=ke(n);return t==j||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xo(n){return"number"==typeof n&&n==gf(n)}function nf(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function tf(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function rf(n){return null!=n&&"object"==typeof n}var ef=At?nr(At):function(n){return rf(n)&&_i(n)==O};function uf(n){return"number"==typeof n||rf(n)&&ke(n)==k}function of(n){if(!rf(n)||ke(n)!=I)return!1;var t=Vn(n);if(null===t)return!0;var r=Tn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&$n.call(r)==Fn}var ff=Ot?nr(Ot):function(n){return rf(n)&&ke(n)==R};var af=kt?nr(kt):function(n){return rf(n)&&_i(n)==z};function cf(n){return"string"==typeof n||!Zo(n)&&rf(n)&&ke(n)==S}function lf(n){return"symbol"==typeof n||rf(n)&&ke(n)==B}var sf=It?nr(It):function(n){return rf(n)&&nf(n.length)&&!!ct[ke(n)]};var hf=Gu(De),pf=Gu((function(n,t){return n<=t}));function vf(n){if(!n)return[];if(Go(n))return cf(n)?_r(n):zu(n);if(Xn&&n[Xn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Xn]());var t=_i(n);return(t==O?cr:t==z?hr:Pf)(n)}function _f(n){return n?(n=yf(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function gf(n){var t=_f(n),r=t%1;return t==t?r?t-r:t:0}function df(n){return n?ae(gf(n),0,g):0}function yf(n){if("number"==typeof n)return n;if(lf(n))return _;if(tf(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=tf(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Xt(n);var r=yn.test(n);return r||wn.test(n)?pt(n.slice(2),r?2:8):dn.test(n)?_:+n}function bf(n){return Su(n,Wf(n))}function wf(n){return null==n?"":lu(n)}var mf=Cu((function(n,t){if(Ai(t)||Go(t))Su(t,Cf(t),n);else for(var r in t)Tn.call(t,r)&&re(n,r,t[r])})),xf=Cu((function(n,t){Su(t,Wf(t),n)})),jf=Cu((function(n,t,r,e){Su(t,Wf(t),n,e)})),Af=Cu((function(n,t,r,e){Su(t,Cf(t),n,e)})),Of=ei(fe);var kf=Je((function(n,t){n=En(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&wi(t[0],t[1],i)&&(e=1);++r1),t})),Su(n,ii(n),r),e&&(r=ce(r,7,ti));for(var u=t.length;u--;)hu(r,t[u]);return r}));var Uf=ei((function(n,t){return null==n?{}:function(n,t){return Ke(n,t,(function(t,r){return Rf(n,r)}))}(n,t)}));function Df(n,t){if(null==n)return{};var r=$t(ii(n),(function(n){return[n]}));return t=ci(t),Ke(n,r,(function(n,r){return t(n,r[0])}))}var Mf=Ju(Cf),Ff=Ju(Wf);function Pf(n){return null==n?[]:tr(n,Cf(n))}var Nf=Tu((function(n,t,r){return t=t.toLowerCase(),n+(r?qf(t):t)}));function qf(n){return Qf(wf(n).toLowerCase())}function Zf(n){return(n=wf(n))&&n.replace(xn,ir).replace(rt,"")}var Kf=Tu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Gf=Tu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Vf=$u("toLowerCase");var Hf=Tu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Yf=Tu((function(n,t,r){return n+(r?" ":"")+Qf(t)}));var Jf=Tu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Qf=$u("toUpperCase");function Xf(n,t,r){return n=wf(n),(t=r?u:t)===u?function(n){return ot.test(n)}(n)?function(n){return n.match(ut)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var na=Je((function(n,t){try{return Et(n,u,t)}catch(n){return Jo(n)?n:new On(n)}})),ta=ei((function(n,t){return zt(t,(function(t){t=Ti(t),oe(n,t,zo(n[t],n))})),n}));function ra(n){return function(){return n}}var ea=Mu(),ua=Mu(!0);function ia(n){return n}function oa(n){return $e("function"==typeof n?n:ce(n,1))}var fa=Je((function(n,t){return function(r){return Se(r,n,t)}})),aa=Je((function(n,t){return function(r){return Se(n,r,t)}}));function ca(n,t,r){var e=Cf(t),u=je(t,e);null!=r||tf(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=je(t,Cf(t)));var i=!(tf(r)&&"chain"in r&&!r.chain),o=Qo(n);return zt(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=zu(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Tt([this.value()],arguments))})})),n}function la(){}var sa=qu($t),ha=qu(Bt),pa=qu(Mt);function va(n){return mi(n)?Vt(Ti(n)):function(n){return function(t){return Ae(t,n)}}(n)}var _a=Ku(),ga=Ku(!0);function da(){return[]}function ya(){return!1}var ba=Nu((function(n,t){return n+t}),0),wa=Hu("ceil"),ma=Nu((function(n,t){return n/t}),1),xa=Hu("floor");var ja,Aa=Nu((function(n,t){return n*t}),1),Oa=Hu("round"),ka=Nu((function(n,t){return n-t}),0);return Fr.after=function(n,t){if("function"!=typeof t)throw new Sn(i);return n=gf(n),function(){if(--n<1)return t.apply(this,arguments)}},Fr.ary=Eo,Fr.assign=mf,Fr.assignIn=xf,Fr.assignInWith=jf,Fr.assignWith=Af,Fr.at=Of,Fr.before=Ro,Fr.bind=zo,Fr.bindAll=ta,Fr.bindKey=So,Fr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Zo(n)?n:[n]},Fr.chain=ho,Fr.chunk=function(n,t,r){t=(r?wi(n,t,r):t===u)?1:br(gf(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,f=0,a=e(_t(i/t));oi?0:i+r),(e=e===u||e>i?i:gf(e))<0&&(e+=i),e=r>e?0:df(e);r>>0)?(n=wf(n))&&("string"==typeof t||null!=t&&!ff(t))&&!(t=lu(t))&&ar(n)?xu(_r(n),0,r):n.split(t,r):[]},Fr.spread=function(n,t){if("function"!=typeof n)throw new Sn(i);return t=null==t?0:br(gf(t),0),Je((function(r){var e=r[t],u=xu(r,0,t);return e&&Tt(u,e),Et(n,this,u)}))},Fr.tail=function(n){var t=null==n?0:n.length;return t?uu(n,1,t):[]},Fr.take=function(n,t,r){return n&&n.length?uu(n,0,(t=r||t===u?1:gf(t))<0?0:t):[]},Fr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?uu(n,(t=e-(t=r||t===u?1:gf(t)))<0?0:t,e):[]},Fr.takeRightWhile=function(n,t){return n&&n.length?vu(n,ci(t,3),!1,!0):[]},Fr.takeWhile=function(n,t){return n&&n.length?vu(n,ci(t,3)):[]},Fr.tap=function(n,t){return t(n),n},Fr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new Sn(i);return tf(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),Bo(n,t,{leading:e,maxWait:t,trailing:u})},Fr.thru=po,Fr.toArray=vf,Fr.toPairs=Mf,Fr.toPairsIn=Ff,Fr.toPath=function(n){return Zo(n)?$t(n,Ti):lf(n)?[n]:zu($i(wf(n)))},Fr.toPlainObject=bf,Fr.transform=function(n,t,r){var e=Zo(n),u=e||Ho(n)||sf(n);if(t=ci(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:tf(n)&&Qo(i)?Pr(Vn(n)):{}}return(u?zt:me)(n,(function(n,e,u){return t(r,n,e,u)})),r},Fr.unary=function(n){return Eo(n,1)},Fr.union=to,Fr.unionBy=ro,Fr.unionWith=eo,Fr.uniq=function(n){return n&&n.length?su(n):[]},Fr.uniqBy=function(n,t){return n&&n.length?su(n,ci(t,2)):[]},Fr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?su(n,u,t):[]},Fr.unset=function(n,t){return null==n||hu(n,t)},Fr.unzip=uo,Fr.unzipWith=io,Fr.update=function(n,t,r){return null==n?n:pu(n,t,bu(r))},Fr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:pu(n,t,bu(r),e)},Fr.values=Pf,Fr.valuesIn=function(n){return null==n?[]:tr(n,Wf(n))},Fr.without=oo,Fr.words=Xf,Fr.wrap=function(n,t){return Uo(bu(t),n)},Fr.xor=fo,Fr.xorBy=ao,Fr.xorWith=co,Fr.zip=lo,Fr.zipObject=function(n,t){return du(n||[],t||[],re)},Fr.zipObjectDeep=function(n,t){return du(n||[],t||[],nu)},Fr.zipWith=so,Fr.entries=Mf,Fr.entriesIn=Ff,Fr.extend=xf,Fr.extendWith=jf,ca(Fr,Fr),Fr.add=ba,Fr.attempt=na,Fr.camelCase=Nf,Fr.capitalize=qf,Fr.ceil=wa,Fr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=yf(r))==r?r:0),t!==u&&(t=(t=yf(t))==t?t:0),ae(yf(n),t,r)},Fr.clone=function(n){return ce(n,4)},Fr.cloneDeep=function(n){return ce(n,5)},Fr.cloneDeepWith=function(n,t){return ce(n,5,t="function"==typeof t?t:u)},Fr.cloneWith=function(n,t){return ce(n,4,t="function"==typeof t?t:u)},Fr.conformsTo=function(n,t){return null==t||le(n,t,Cf(t))},Fr.deburr=Zf,Fr.defaultTo=function(n,t){return null==n||n!=n?t:n},Fr.divide=ma,Fr.endsWith=function(n,t,r){n=wf(n),t=lu(t);var e=n.length,i=r=r===u?e:ae(gf(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Fr.eq=Fo,Fr.escape=function(n){return(n=wf(n))&&J.test(n)?n.replace(H,or):n},Fr.escapeRegExp=function(n){return(n=wf(n))&&on.test(n)?n.replace(un,"\\$&"):n},Fr.every=function(n,t,r){var e=Zo(n)?Bt:_e;return r&&wi(n,t,r)&&(t=u),e(n,ci(t,3))},Fr.find=go,Fr.findIndex=Ni,Fr.findKey=function(n,t){return Pt(n,ci(t,3),me)},Fr.findLast=yo,Fr.findLastIndex=qi,Fr.findLastKey=function(n,t){return Pt(n,ci(t,3),xe)},Fr.floor=xa,Fr.forEach=bo,Fr.forEachRight=wo,Fr.forIn=function(n,t){return null==n?n:be(n,ci(t,3),Wf)},Fr.forInRight=function(n,t){return null==n?n:we(n,ci(t,3),Wf)},Fr.forOwn=function(n,t){return n&&me(n,ci(t,3))},Fr.forOwnRight=function(n,t){return n&&xe(n,ci(t,3))},Fr.get=Ef,Fr.gt=Po,Fr.gte=No,Fr.has=function(n,t){return null!=n&&gi(n,t,Ee)},Fr.hasIn=Rf,Fr.head=Ki,Fr.identity=ia,Fr.includes=function(n,t,r,e){n=Go(n)?n:Pf(n),r=r&&!e?gf(r):0;var u=n.length;return r<0&&(r=br(u+r,0)),cf(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&qt(n,t,r)>-1},Fr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:gf(r);return u<0&&(u=br(e+u,0)),qt(n,t,u)},Fr.inRange=function(n,t,r){return t=_f(t),r===u?(r=t,t=0):r=_f(r),function(n,t,r){return n>=wr(t,r)&&n=-9007199254740991&&n<=v},Fr.isSet=af,Fr.isString=cf,Fr.isSymbol=lf,Fr.isTypedArray=sf,Fr.isUndefined=function(n){return n===u},Fr.isWeakMap=function(n){return rf(n)&&_i(n)==C},Fr.isWeakSet=function(n){return rf(n)&&"[object WeakSet]"==ke(n)},Fr.join=function(n,t){return null==n?"":Ft.call(n,t)},Fr.kebabCase=Kf,Fr.last=Yi,Fr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=gf(r))<0?br(e+i,0):wr(i,e-1)),t==t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):Nt(n,Kt,i,!0)},Fr.lowerCase=Gf,Fr.lowerFirst=Vf,Fr.lt=hf,Fr.lte=pf,Fr.max=function(n){return n&&n.length?ge(n,ia,Ie):u},Fr.maxBy=function(n,t){return n&&n.length?ge(n,ci(t,2),Ie):u},Fr.mean=function(n){return Gt(n,ia)},Fr.meanBy=function(n,t){return Gt(n,ci(t,2))},Fr.min=function(n){return n&&n.length?ge(n,ia,De):u},Fr.minBy=function(n,t){return n&&n.length?ge(n,ci(t,2),De):u},Fr.stubArray=da,Fr.stubFalse=ya,Fr.stubObject=function(){return{}},Fr.stubString=function(){return""},Fr.stubTrue=function(){return!0},Fr.multiply=Aa,Fr.nth=function(n,t){return n&&n.length?qe(n,gf(t)):u},Fr.noConflict=function(){return gt._===this&&(gt._=Pn),this},Fr.noop=la,Fr.now=Io,Fr.pad=function(n,t,r){n=wf(n);var e=(t=gf(t))?vr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Zu(dt(u),r)+n+Zu(_t(u),r)},Fr.padEnd=function(n,t,r){n=wf(n);var e=(t=gf(t))?vr(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=jr();return wr(n+i*(t-n+ht("1e-"+((i+"").length-1))),t)}return He(n,t)},Fr.reduce=function(n,t,r){var e=Zo(n)?Ut:Yt,u=arguments.length<3;return e(n,ci(t,4),r,u,pe)},Fr.reduceRight=function(n,t,r){var e=Zo(n)?Dt:Yt,u=arguments.length<3;return e(n,ci(t,4),r,u,ve)},Fr.repeat=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:gf(t),Ye(wf(n),t)},Fr.replace=function(){var n=arguments,t=wf(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Fr.result=function(n,t,r){var e=-1,i=(t=wu(t,n)).length;for(i||(i=1,n=u);++ev)return[];var r=g,e=wr(n,g);t=ci(t),n-=g;for(var u=Qt(e,t);++r=o)return n;var a=r-vr(e);if(a<1)return e;var c=f?xu(f,0,a).join(""):n.slice(0,a);if(i===u)return c+e;if(f&&(a+=c.length-a),ff(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=Rn(i.source,wf(gn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===u?a:h)}}else if(n.indexOf(lu(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Fr.unescape=function(n){return(n=wf(n))&&Y.test(n)?n.replace(V,dr):n},Fr.uniqueId=function(n){var t=++Un;return wf(n)+t},Fr.upperCase=Jf,Fr.upperFirst=Qf,Fr.each=bo,Fr.eachRight=wo,Fr.first=Ki,ca(Fr,(ja={},me(Fr,(function(n,t){Tn.call(Fr.prototype,t)||(ja[t]=n)})),ja),{chain:!1}),Fr.VERSION="4.17.21",zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Fr[n].placeholder=Fr})),zt(["drop","take"],(function(n,t){Zr.prototype[n]=function(r){r=r===u?1:br(gf(r),0);var e=this.__filtered__&&!t?new Zr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,g),type:n+(e.__dir__<0?"Right":"")}),e},Zr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),zt(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Zr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ci(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),zt(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Zr.prototype[n]=function(){return this[r](1).value()[0]}})),zt(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Zr.prototype[n]=function(){return this.__filtered__?new Zr(this):this[r](1)}})),Zr.prototype.compact=function(){return this.filter(ia)},Zr.prototype.find=function(n){return this.filter(n).head()},Zr.prototype.findLast=function(n){return this.reverse().find(n)},Zr.prototype.invokeMap=Je((function(n,t){return"function"==typeof n?new Zr(this):this.map((function(r){return Se(r,n,t)}))})),Zr.prototype.reject=function(n){return this.filter($o(ci(n)))},Zr.prototype.slice=function(n,t){n=gf(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Zr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=gf(t))<0?r.dropRight(-t):r.take(t-n)),r)},Zr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Zr.prototype.toArray=function(){return this.take(g)},me(Zr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Fr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Fr.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,a=t instanceof Zr,c=f[0],l=a||Zo(t),s=function(n){var t=i.apply(Fr,Tt([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new Zr(this);var g=n.apply(t,f);return g.__actions__.push({func:po,args:[s],thisArg:u}),new qr(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),zt(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Bn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Fr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Zo(u)?u:[],n)}return this[r]((function(r){return t.apply(Zo(r)?r:[],n)}))}})),me(Zr.prototype,(function(n,t){var r=Fr[t];if(r){var e=r.name+"";Tn.call(Br,e)||(Br[e]=[]),Br[e].push({name:t,func:r})}})),Br[Fu(u,2).name]=[{name:"wrapper",func:u}],Zr.prototype.clone=function(){var n=new Zr(this.__wrapped__);return n.__actions__=zu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=zu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=zu(this.__views__),n},Zr.prototype.reverse=function(){if(this.__filtered__){var n=new Zr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Zr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Zo(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Fr.prototype.plant=function(n){for(var t,r=this;r instanceof Nr;){var e=Di(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Fr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Zr){var t=n;return this.__actions__.length&&(t=new Zr(this)),(t=t.reverse()).__actions__.push({func:po,args:[no],thisArg:u}),new qr(t,this.__chain__)}return this.thru(no)},Fr.prototype.toJSON=Fr.prototype.valueOf=Fr.prototype.value=function(){return _u(this.__wrapped__,this.__actions__)},Fr.prototype.first=Fr.prototype.head,Xn&&(Fr.prototype[Xn]=function(){return this}),Fr}();gt._=yr,(e=function(){return yr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)},625:(n,t,r)=>{"use strict";r.d(t,{gB:()=>e,gf:()=>u});r(486);function e(n,t=1){if(Math.abs(n)<1024)return n+" B";const r=["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let e=-1;const u=10**t;do{n/=1024,++e}while(Math.round(Math.abs(n)*u)/u>=1024&&e1?"s":"";let i=`${e}
${t} total
${`${n.n_allocations} allocation${u}`}`;return!1===r&&(i=i.concat(`
Thread ID: ${n.thread_id}`)),i}}},t={};function r(e){var u=t[e];if(void 0!==u)return u.exports;var i=t[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return r.d(t,{a:t}),t},r.d=(n,t)=>{for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),r.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),r.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),(()=>{"use strict";var n=r(625);var t=null;new class{constructor(){this.filters={}}registerFilter(n,t){this.filters[n]=t}unRegisterFilter(n){delete this.filters[n]}drawChart(r){let e=r;_.forOwn(this.filters,(n=>{e=n(e)})),function(r){t&&(t.destroy(),d3.selectAll(".d3-flame-graph-tip").remove());t=flamegraph().width(o()).transitionDuration(250).transitionEase(d3.easeCubic).inverted(!0).cellHeight(20).minFrameSize(2).setColorMapper(f).onClick(i).tooltip(d3.tip().attr("class","d3-flame-graph-tip").html((t=>{const r=(0,n.gB)(t.data.value);return(0,n.gf)(t.data,r,merge_threads)})).direction((n=>{const t=(n.x1+n.x0)/2;return.25.25?"w":"n"}))),d3.select("#chart").datum(r).call(t),t.width(o())}(e),t.merge([])}};function e(){return location.hash?parseInt(location.hash.substring(1),10):0}function u(){document.getElementById("resetZoomButton").disabled=0==e()}function i(n){n.id!=e()&&(history.pushState({id:n.id},n.data.name,`#${n.id}`),u())}function o(){return document.getElementById("chart").clientWidth}function f(n,t){return n.highlight?"orange":n.data.name&&n.data.location?(e=n.data.location[1],"py"==(r=void 0===e?e:e.substring(e.lastIndexOf(".")+1,e.length)||e)?d3.schemePastel1[2]:"c"==r||"cpp"==r||"h"==r?d3.schemePastel1[5]:d3.schemePastel1[8]):"#EEE";var r,e}})()})(); \ No newline at end of file + */n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",a=16,c=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,_=NaN,g=4294967295,d=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",c],["partialRight",l],["rearg",h]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",m="[object Date]",x="[object Error]",j="[object Function]",A="[object GeneratorFunction]",O="[object Map]",k="[object Number]",I="[object Object]",E="[object Promise]",R="[object RegExp]",z="[object Set]",S="[object String]",B="[object Symbol]",C="[object WeakMap]",W="[object ArrayBuffer]",L="[object DataView]",$="[object Float32Array]",T="[object Float64Array]",U="[object Int8Array]",D="[object Int16Array]",M="[object Int32Array]",F="[object Uint8Array]",P="[object Uint8ClampedArray]",N="[object Uint16Array]",q="[object Uint32Array]",Z=/\b__p \+= '';/g,K=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,Y=RegExp(V.source),J=RegExp(H.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),fn=/^\s+/,an=/\s/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,dn=/^[-+]0x[0-9a-f]+$/i,yn=/^0b[01]+$/i,bn=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jn=/($^)/,An=/['\n\r\u2028\u2029\\]/g,On="\\ud800-\\udfff",kn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",In="\\u2700-\\u27bf",En="a-z\\xdf-\\xf6\\xf8-\\xff",Rn="A-Z\\xc0-\\xd6\\xd8-\\xde",zn="\\ufe0e\\ufe0f",Sn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bn="['’]",Cn="["+On+"]",Wn="["+Sn+"]",Ln="["+kn+"]",$n="\\d+",Tn="["+In+"]",Un="["+En+"]",Dn="[^"+On+Sn+$n+In+En+Rn+"]",Mn="\\ud83c[\\udffb-\\udfff]",Fn="[^"+On+"]",Pn="(?:\\ud83c[\\udde6-\\uddff]){2}",Nn="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+Rn+"]",Zn="\\u200d",Kn="(?:"+Un+"|"+Dn+")",Gn="(?:"+qn+"|"+Dn+")",Vn="(?:['’](?:d|ll|m|re|s|t|ve))?",Hn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Yn="(?:"+Ln+"|"+Mn+")"+"?",Jn="["+zn+"]?",Qn=Jn+Yn+("(?:"+Zn+"(?:"+[Fn,Pn,Nn].join("|")+")"+Jn+Yn+")*"),Xn="(?:"+[Tn,Pn,Nn].join("|")+")"+Qn,nt="(?:"+[Fn+Ln+"?",Ln,Pn,Nn,Cn].join("|")+")",tt=RegExp(Bn,"g"),rt=RegExp(Ln,"g"),et=RegExp(Mn+"(?="+Mn+")|"+nt+Qn,"g"),ut=RegExp([qn+"?"+Un+"+"+Vn+"(?="+[Wn,qn,"$"].join("|")+")",Gn+"+"+Hn+"(?="+[Wn,qn+Kn,"$"].join("|")+")",qn+"?"+Kn+"+"+Vn,qn+"+"+Hn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$n,Xn].join("|"),"g"),it=RegExp("["+Zn+On+kn+zn+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ft=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ct={};ct[$]=ct[T]=ct[U]=ct[D]=ct[M]=ct[F]=ct[P]=ct[N]=ct[q]=!0,ct[y]=ct[b]=ct[W]=ct[w]=ct[L]=ct[m]=ct[x]=ct[j]=ct[O]=ct[k]=ct[I]=ct[R]=ct[z]=ct[S]=ct[C]=!1;var lt={};lt[y]=lt[b]=lt[W]=lt[L]=lt[w]=lt[m]=lt[$]=lt[T]=lt[U]=lt[D]=lt[M]=lt[O]=lt[k]=lt[I]=lt[R]=lt[z]=lt[S]=lt[B]=lt[F]=lt[P]=lt[N]=lt[q]=!0,lt[x]=lt[j]=lt[C]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,vt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,_t="object"==typeof self&&self&&self.Object===Object&&self,gt=vt||_t||Function("return this")(),dt=t&&!t.nodeType&&t,yt=dt&&n&&!n.nodeType&&n,bt=yt&&yt.exports===dt,wt=bt&&vt.process,mt=function(){try{var n=yt&&yt.require&&yt.require("util").types;return n||wt&&wt.binding&&wt.binding("util")}catch(n){}}(),xt=mt&&mt.isArrayBuffer,jt=mt&&mt.isDate,At=mt&&mt.isMap,Ot=mt&&mt.isRegExp,kt=mt&&mt.isSet,It=mt&&mt.isTypedArray;function Et(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function Rt(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function Lt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function ur(n,t){for(var r=n.length;r--&&qt(t,n[r],0)>-1;);return r}var ir=Ht({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),or=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function fr(n){return"\\"+st[n]}function ar(n){return it.test(n)}function cr(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function lr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"});var yr=function n(t){var r,e=(t=null==t?gt:yr.defaults(gt.Object(),t,yr.pick(gt,ft))).Array,an=t.Date,On=t.Error,kn=t.Function,In=t.Math,En=t.Object,Rn=t.RegExp,zn=t.String,Sn=t.TypeError,Bn=e.prototype,Cn=kn.prototype,Wn=En.prototype,Ln=t["__core-js_shared__"],$n=Cn.toString,Tn=Wn.hasOwnProperty,Un=0,Dn=(r=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Mn=Wn.toString,Fn=$n.call(En),Pn=gt._,Nn=Rn("^"+$n.call(Tn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=bt?t.Buffer:u,Zn=t.Symbol,Kn=t.Uint8Array,Gn=qn?qn.allocUnsafe:u,Vn=lr(En.getPrototypeOf,En),Hn=En.create,Yn=Wn.propertyIsEnumerable,Jn=Bn.splice,Qn=Zn?Zn.isConcatSpreadable:u,Xn=Zn?Zn.iterator:u,nt=Zn?Zn.toStringTag:u,et=function(){try{var n=hi(En,"defineProperty");return n({},"",{}),n}catch(n){}}(),it=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,st=an&&an.now!==gt.Date.now&&an.now,vt=t.setTimeout!==gt.setTimeout&&t.setTimeout,_t=In.ceil,dt=In.floor,yt=En.getOwnPropertySymbols,wt=qn?qn.isBuffer:u,mt=t.isFinite,Ft=Bn.join,Ht=lr(En.keys,En),br=In.max,wr=In.min,mr=an.now,xr=t.parseInt,jr=In.random,Ar=Bn.reverse,Or=hi(t,"DataView"),kr=hi(t,"Map"),Ir=hi(t,"Promise"),Er=hi(t,"Set"),Rr=hi(t,"WeakMap"),zr=hi(En,"create"),Sr=Rr&&new Rr,Br={},Cr=Ui(Or),Wr=Ui(kr),Lr=Ui(Ir),$r=Ui(Er),Tr=Ui(Rr),Ur=Zn?Zn.prototype:u,Dr=Ur?Ur.valueOf:u,Mr=Ur?Ur.toString:u;function Fr(n){if(rf(n)&&!Zo(n)&&!(n instanceof Zr)){if(n instanceof qr)return n;if(Tn.call(n,"__wrapped__"))return Di(n)}return new qr(n)}var Pr=function(){function n(){}return function(t){if(!tf(t))return{};if(Hn)return Hn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Nr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Zr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Kr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function ce(n,t,r,e,i,o){var f,a=1&t,c=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),f!==u)return f;if(!tf(n))return n;var s=Zo(n);if(s){if(f=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Tn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!a)return zu(n,f)}else{var h=_i(n),p=h==j||h==A;if(Ho(n))return Au(n,a);if(h==I||h==y||p&&!i){if(f=c||p?{}:di(n),!a)return c?function(n,t){return Su(n,vi(n),t)}(n,function(n,t){return n&&Su(t,Wf(t),n)}(f,n)):function(n,t){return Su(n,pi(n),t)}(n,ie(f,n))}else{if(!lt[h])return i?n:{};f=function(n,t,r){var e=n.constructor;switch(t){case W:return Ou(n);case w:case m:return new e(+n);case L:return function(n,t){var r=t?Ou(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case $:case T:case U:case D:case M:case F:case P:case N:case q:return ku(n,r);case O:return new e;case k:case S:return new e(n);case R:return function(n){var t=new n.constructor(n.source,gn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case z:return new e;case B:return u=n,Dr?En(Dr.call(u)):{}}var u}(n,h,a)}}o||(o=new Yr);var v=o.get(n);if(v)return v;o.set(n,f),af(n)?n.forEach((function(e){f.add(ce(e,t,r,e,n,o))})):ef(n)&&n.forEach((function(e,u){f.set(u,ce(e,t,r,u,n,o))}));var _=s?u:(l?c?ii:ui:c?Wf:Cf)(n);return zt(_||n,(function(e,u){_&&(e=n[u=e]),re(f,u,ce(e,t,r,u,n,o))})),f}function le(n,t,r){var e=r.length;if(null==n)return!e;for(n=En(n);e--;){var i=r[e],o=t[i],f=n[i];if(f===u&&!(i in n)||!o(f))return!1}return!0}function se(n,t,r){if("function"!=typeof n)throw new Sn(i);return Si((function(){n.apply(u,r)}),t)}function he(n,t,r,e){var u=-1,i=Wt,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=$t(t,nr(r))),e?(i=Lt,o=!1):t.length>=200&&(i=rr,o=!1,t=new Hr(t));n:for(;++u-1},Gr.prototype.set=function(n,t){var r=this.__data__,e=ee(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Vr.prototype.clear=function(){this.size=0,this.__data__={hash:new Kr,map:new(kr||Gr),string:new Kr}},Vr.prototype.delete=function(n){var t=li(this,n).delete(n);return this.size-=t?1:0,t},Vr.prototype.get=function(n){return li(this,n).get(n)},Vr.prototype.has=function(n){return li(this,n).has(n)},Vr.prototype.set=function(n,t){var r=li(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Hr.prototype.add=Hr.prototype.push=function(n){return this.__data__.set(n,o),this},Hr.prototype.has=function(n){return this.__data__.has(n)},Yr.prototype.clear=function(){this.__data__=new Gr,this.size=0},Yr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Yr.prototype.get=function(n){return this.__data__.get(n)},Yr.prototype.has=function(n){return this.__data__.has(n)},Yr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Gr){var e=r.__data__;if(!kr||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Vr(e)}return r.set(n,t),this.size=r.size,this};var pe=Wu(me),ve=Wu(xe,!0);function _e(n,t){var r=!0;return pe(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function ge(n,t,r){for(var e=-1,i=n.length;++e0&&r(f)?t>1?ye(f,t-1,r,e,u):Tt(u,f):e||(u[u.length]=f)}return u}var be=Lu(),we=Lu(!0);function me(n,t){return n&&be(n,t,Cf)}function xe(n,t){return n&&we(n,t,Cf)}function je(n,t){return Ct(t,(function(t){return Qo(n[t])}))}function Ae(n,t){for(var r=0,e=(t=wu(t,n)).length;null!=n&&rt}function Ee(n,t){return null!=n&&Tn.call(n,t)}function Re(n,t){return null!=n&&t in En(n)}function ze(n,t,r){for(var i=r?Lt:Wt,o=n[0].length,f=n.length,a=f,c=e(f),l=1/0,s=[];a--;){var h=n[a];a&&t&&(h=$t(h,nr(t))),l=wr(h.length,l),c[a]=!r&&(t||o>=120&&h.length>=120)?new Hr(a&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p=f?a:a*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Ke(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)f!==n&&Jn.call(f,a,1),Jn.call(n,a,1);return n}function Ve(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;bi(u)?Jn.call(n,u,1):hu(n,u)}}return n}function He(n,t){return n+dt(jr()*(t-n+1))}function Ye(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=dt(t/2))&&(n+=n)}while(t);return r}function Je(n,t){return Bi(Ii(n,t,ia),n+"")}function Qe(n){return Qr(Pf(n))}function Xe(n,t){var r=Pf(n);return Li(r,ae(t,0,r.length))}function nu(n,t,r,e){if(!tf(n))return n;for(var i=-1,o=(t=wu(t,n)).length,f=o-1,a=n;null!=a&&++ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=e(i);++u>>1,o=n[i];null!==o&&!lf(o)&&(r?o<=t:o=200){var c=t?null:Yu(n);if(c)return hr(c);o=!1,u=rr,a=new Hr}else a=t?[]:f;n:for(;++e=e?n:uu(n,t,r)}var ju=it||function(n){return gt.clearTimeout(n)};function Au(n,t){if(t)return n.slice();var r=n.length,e=Gn?Gn(r):new n.constructor(r);return n.copy(e),e}function Ou(n){var t=new n.constructor(n.byteLength);return new Kn(t).set(new Kn(n)),t}function ku(n,t){var r=t?Ou(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Iu(n,t){if(n!==t){var r=n!==u,e=null===n,i=n==n,o=lf(n),f=t!==u,a=null===t,c=t==t,l=lf(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||e&&f&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&wi(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=En(t);++e-1?i[o?t[f]:f]:u}}function Mu(n){return ei((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new Sn(i);if(o&&!a&&"wrapper"==fi(f))var a=new qr([],!0)}for(e=a?e:r;++e1&&w.reverse(),p&&la))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Hr:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(cn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return zt(d,(function(r){var e="_."+r[0];t&r[1]&&!Wt(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Wi(n){var t=0,r=0;return function(){var e=mr(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Li(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,io(n,r)}));function ho(n){var t=Fr(n);return t.__chain__=!0,t}function po(n,t){return t(n)}var vo=ei((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return fe(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Zr&&bi(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:po,args:[i],thisArg:u}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var _o=Bu((function(n,t,r){Tn.call(n,r)?++n[r]:oe(n,r,1)}));var go=Du(Ni),yo=Du(qi);function bo(n,t){return(Zo(n)?zt:pe)(n,ci(t,3))}function wo(n,t){return(Zo(n)?St:ve)(n,ci(t,3))}var mo=Bu((function(n,t,r){Tn.call(n,r)?n[r].push(t):oe(n,r,[t])}));var xo=Je((function(n,t,r){var u=-1,i="function"==typeof t,o=Go(n)?e(n.length):[];return pe(n,(function(n){o[++u]=i?Et(t,n,r):Se(n,t,r)})),o})),jo=Bu((function(n,t,r){oe(n,r,t)}));function Ao(n,t){return(Zo(n)?$t:Me)(n,ci(t,3))}var Oo=Bu((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var ko=Je((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wi(n,t[0],t[1])?t=[]:r>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Ze(n,ye(t,1),[])})),Io=st||function(){return gt.Date.now()};function Eo(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Qu(n,s,u,u,u,u,t)}function Ro(n,t){var r;if("function"!=typeof t)throw new Sn(i);return n=gf(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var zo=Je((function(n,t,r){var e=1;if(r.length){var u=sr(r,ai(zo));e|=c}return Qu(n,e,t,r,u)})),So=Je((function(n,t,r){var e=3;if(r.length){var u=sr(r,ai(So));e|=c}return Qu(t,e,n,r,u)}));function Bo(n,t,r){var e,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new Sn(i);function _(t){var r=e,i=o;return e=o=u,s=t,a=n.apply(i,r)}function g(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=f}function d(){var n=Io();if(g(n))return y(n);c=Si(d,function(n){var r=t-(n-l);return p?wr(r,f-(n-s)):r}(n))}function y(n){return c=u,v&&e?_(n):(e=o=u,a)}function b(){var n=Io(),r=g(n);if(e=arguments,o=this,l=n,r){if(c===u)return function(n){return s=n,c=Si(d,t),h?_(n):a}(l);if(p)return ju(c),c=Si(d,t),_(l)}return c===u&&(c=Si(d,t)),a}return t=yf(t)||0,tf(r)&&(h=!!r.leading,f=(p="maxWait"in r)?br(yf(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),b.cancel=function(){c!==u&&ju(c),s=0,e=l=o=c=u},b.flush=function(){return c===u?a:y(Io())},b}var Co=Je((function(n,t){return se(n,1,t)})),Wo=Je((function(n,t,r){return se(n,yf(t)||0,r)}));function Lo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new Sn(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Lo.Cache||Vr),r}function $o(n){if("function"!=typeof n)throw new Sn(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Lo.Cache=Vr;var To=mu((function(n,t){var r=(t=1==t.length&&Zo(t[0])?$t(t[0],nr(ci())):$t(ye(t,1),nr(ci()))).length;return Je((function(e){for(var u=-1,i=wr(e.length,r);++u=t})),qo=Be(function(){return arguments}())?Be:function(n){return rf(n)&&Tn.call(n,"callee")&&!Yn.call(n,"callee")},Zo=e.isArray,Ko=xt?nr(xt):function(n){return rf(n)&&ke(n)==W};function Go(n){return null!=n&&nf(n.length)&&!Qo(n)}function Vo(n){return rf(n)&&Go(n)}var Ho=wt||ya,Yo=jt?nr(jt):function(n){return rf(n)&&ke(n)==m};function Jo(n){if(!rf(n))return!1;var t=ke(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!of(n)}function Qo(n){if(!tf(n))return!1;var t=ke(n);return t==j||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xo(n){return"number"==typeof n&&n==gf(n)}function nf(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function tf(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function rf(n){return null!=n&&"object"==typeof n}var ef=At?nr(At):function(n){return rf(n)&&_i(n)==O};function uf(n){return"number"==typeof n||rf(n)&&ke(n)==k}function of(n){if(!rf(n)||ke(n)!=I)return!1;var t=Vn(n);if(null===t)return!0;var r=Tn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&$n.call(r)==Fn}var ff=Ot?nr(Ot):function(n){return rf(n)&&ke(n)==R};var af=kt?nr(kt):function(n){return rf(n)&&_i(n)==z};function cf(n){return"string"==typeof n||!Zo(n)&&rf(n)&&ke(n)==S}function lf(n){return"symbol"==typeof n||rf(n)&&ke(n)==B}var sf=It?nr(It):function(n){return rf(n)&&nf(n.length)&&!!ct[ke(n)]};var hf=Gu(De),pf=Gu((function(n,t){return n<=t}));function vf(n){if(!n)return[];if(Go(n))return cf(n)?_r(n):zu(n);if(Xn&&n[Xn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Xn]());var t=_i(n);return(t==O?cr:t==z?hr:Pf)(n)}function _f(n){return n?(n=yf(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function gf(n){var t=_f(n),r=t%1;return t==t?r?t-r:t:0}function df(n){return n?ae(gf(n),0,g):0}function yf(n){if("number"==typeof n)return n;if(lf(n))return _;if(tf(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=tf(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Xt(n);var r=yn.test(n);return r||wn.test(n)?pt(n.slice(2),r?2:8):dn.test(n)?_:+n}function bf(n){return Su(n,Wf(n))}function wf(n){return null==n?"":lu(n)}var mf=Cu((function(n,t){if(Ai(t)||Go(t))Su(t,Cf(t),n);else for(var r in t)Tn.call(t,r)&&re(n,r,t[r])})),xf=Cu((function(n,t){Su(t,Wf(t),n)})),jf=Cu((function(n,t,r,e){Su(t,Wf(t),n,e)})),Af=Cu((function(n,t,r,e){Su(t,Cf(t),n,e)})),Of=ei(fe);var kf=Je((function(n,t){n=En(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&wi(t[0],t[1],i)&&(e=1);++r1),t})),Su(n,ii(n),r),e&&(r=ce(r,7,ti));for(var u=t.length;u--;)hu(r,t[u]);return r}));var Uf=ei((function(n,t){return null==n?{}:function(n,t){return Ke(n,t,(function(t,r){return Rf(n,r)}))}(n,t)}));function Df(n,t){if(null==n)return{};var r=$t(ii(n),(function(n){return[n]}));return t=ci(t),Ke(n,r,(function(n,r){return t(n,r[0])}))}var Mf=Ju(Cf),Ff=Ju(Wf);function Pf(n){return null==n?[]:tr(n,Cf(n))}var Nf=Tu((function(n,t,r){return t=t.toLowerCase(),n+(r?qf(t):t)}));function qf(n){return Qf(wf(n).toLowerCase())}function Zf(n){return(n=wf(n))&&n.replace(xn,ir).replace(rt,"")}var Kf=Tu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Gf=Tu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Vf=$u("toLowerCase");var Hf=Tu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Yf=Tu((function(n,t,r){return n+(r?" ":"")+Qf(t)}));var Jf=Tu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Qf=$u("toUpperCase");function Xf(n,t,r){return n=wf(n),(t=r?u:t)===u?function(n){return ot.test(n)}(n)?function(n){return n.match(ut)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var na=Je((function(n,t){try{return Et(n,u,t)}catch(n){return Jo(n)?n:new On(n)}})),ta=ei((function(n,t){return zt(t,(function(t){t=Ti(t),oe(n,t,zo(n[t],n))})),n}));function ra(n){return function(){return n}}var ea=Mu(),ua=Mu(!0);function ia(n){return n}function oa(n){return $e("function"==typeof n?n:ce(n,1))}var fa=Je((function(n,t){return function(r){return Se(r,n,t)}})),aa=Je((function(n,t){return function(r){return Se(n,r,t)}}));function ca(n,t,r){var e=Cf(t),u=je(t,e);null!=r||tf(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=je(t,Cf(t)));var i=!(tf(r)&&"chain"in r&&!r.chain),o=Qo(n);return zt(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=zu(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Tt([this.value()],arguments))})})),n}function la(){}var sa=qu($t),ha=qu(Bt),pa=qu(Mt);function va(n){return mi(n)?Vt(Ti(n)):function(n){return function(t){return Ae(t,n)}}(n)}var _a=Ku(),ga=Ku(!0);function da(){return[]}function ya(){return!1}var ba=Nu((function(n,t){return n+t}),0),wa=Hu("ceil"),ma=Nu((function(n,t){return n/t}),1),xa=Hu("floor");var ja,Aa=Nu((function(n,t){return n*t}),1),Oa=Hu("round"),ka=Nu((function(n,t){return n-t}),0);return Fr.after=function(n,t){if("function"!=typeof t)throw new Sn(i);return n=gf(n),function(){if(--n<1)return t.apply(this,arguments)}},Fr.ary=Eo,Fr.assign=mf,Fr.assignIn=xf,Fr.assignInWith=jf,Fr.assignWith=Af,Fr.at=Of,Fr.before=Ro,Fr.bind=zo,Fr.bindAll=ta,Fr.bindKey=So,Fr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Zo(n)?n:[n]},Fr.chain=ho,Fr.chunk=function(n,t,r){t=(r?wi(n,t,r):t===u)?1:br(gf(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,f=0,a=e(_t(i/t));oi?0:i+r),(e=e===u||e>i?i:gf(e))<0&&(e+=i),e=r>e?0:df(e);r>>0)?(n=wf(n))&&("string"==typeof t||null!=t&&!ff(t))&&!(t=lu(t))&&ar(n)?xu(_r(n),0,r):n.split(t,r):[]},Fr.spread=function(n,t){if("function"!=typeof n)throw new Sn(i);return t=null==t?0:br(gf(t),0),Je((function(r){var e=r[t],u=xu(r,0,t);return e&&Tt(u,e),Et(n,this,u)}))},Fr.tail=function(n){var t=null==n?0:n.length;return t?uu(n,1,t):[]},Fr.take=function(n,t,r){return n&&n.length?uu(n,0,(t=r||t===u?1:gf(t))<0?0:t):[]},Fr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?uu(n,(t=e-(t=r||t===u?1:gf(t)))<0?0:t,e):[]},Fr.takeRightWhile=function(n,t){return n&&n.length?vu(n,ci(t,3),!1,!0):[]},Fr.takeWhile=function(n,t){return n&&n.length?vu(n,ci(t,3)):[]},Fr.tap=function(n,t){return t(n),n},Fr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new Sn(i);return tf(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),Bo(n,t,{leading:e,maxWait:t,trailing:u})},Fr.thru=po,Fr.toArray=vf,Fr.toPairs=Mf,Fr.toPairsIn=Ff,Fr.toPath=function(n){return Zo(n)?$t(n,Ti):lf(n)?[n]:zu($i(wf(n)))},Fr.toPlainObject=bf,Fr.transform=function(n,t,r){var e=Zo(n),u=e||Ho(n)||sf(n);if(t=ci(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:tf(n)&&Qo(i)?Pr(Vn(n)):{}}return(u?zt:me)(n,(function(n,e,u){return t(r,n,e,u)})),r},Fr.unary=function(n){return Eo(n,1)},Fr.union=to,Fr.unionBy=ro,Fr.unionWith=eo,Fr.uniq=function(n){return n&&n.length?su(n):[]},Fr.uniqBy=function(n,t){return n&&n.length?su(n,ci(t,2)):[]},Fr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?su(n,u,t):[]},Fr.unset=function(n,t){return null==n||hu(n,t)},Fr.unzip=uo,Fr.unzipWith=io,Fr.update=function(n,t,r){return null==n?n:pu(n,t,bu(r))},Fr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:pu(n,t,bu(r),e)},Fr.values=Pf,Fr.valuesIn=function(n){return null==n?[]:tr(n,Wf(n))},Fr.without=oo,Fr.words=Xf,Fr.wrap=function(n,t){return Uo(bu(t),n)},Fr.xor=fo,Fr.xorBy=ao,Fr.xorWith=co,Fr.zip=lo,Fr.zipObject=function(n,t){return du(n||[],t||[],re)},Fr.zipObjectDeep=function(n,t){return du(n||[],t||[],nu)},Fr.zipWith=so,Fr.entries=Mf,Fr.entriesIn=Ff,Fr.extend=xf,Fr.extendWith=jf,ca(Fr,Fr),Fr.add=ba,Fr.attempt=na,Fr.camelCase=Nf,Fr.capitalize=qf,Fr.ceil=wa,Fr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=yf(r))==r?r:0),t!==u&&(t=(t=yf(t))==t?t:0),ae(yf(n),t,r)},Fr.clone=function(n){return ce(n,4)},Fr.cloneDeep=function(n){return ce(n,5)},Fr.cloneDeepWith=function(n,t){return ce(n,5,t="function"==typeof t?t:u)},Fr.cloneWith=function(n,t){return ce(n,4,t="function"==typeof t?t:u)},Fr.conformsTo=function(n,t){return null==t||le(n,t,Cf(t))},Fr.deburr=Zf,Fr.defaultTo=function(n,t){return null==n||n!=n?t:n},Fr.divide=ma,Fr.endsWith=function(n,t,r){n=wf(n),t=lu(t);var e=n.length,i=r=r===u?e:ae(gf(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Fr.eq=Fo,Fr.escape=function(n){return(n=wf(n))&&J.test(n)?n.replace(H,or):n},Fr.escapeRegExp=function(n){return(n=wf(n))&&on.test(n)?n.replace(un,"\\$&"):n},Fr.every=function(n,t,r){var e=Zo(n)?Bt:_e;return r&&wi(n,t,r)&&(t=u),e(n,ci(t,3))},Fr.find=go,Fr.findIndex=Ni,Fr.findKey=function(n,t){return Pt(n,ci(t,3),me)},Fr.findLast=yo,Fr.findLastIndex=qi,Fr.findLastKey=function(n,t){return Pt(n,ci(t,3),xe)},Fr.floor=xa,Fr.forEach=bo,Fr.forEachRight=wo,Fr.forIn=function(n,t){return null==n?n:be(n,ci(t,3),Wf)},Fr.forInRight=function(n,t){return null==n?n:we(n,ci(t,3),Wf)},Fr.forOwn=function(n,t){return n&&me(n,ci(t,3))},Fr.forOwnRight=function(n,t){return n&&xe(n,ci(t,3))},Fr.get=Ef,Fr.gt=Po,Fr.gte=No,Fr.has=function(n,t){return null!=n&&gi(n,t,Ee)},Fr.hasIn=Rf,Fr.head=Ki,Fr.identity=ia,Fr.includes=function(n,t,r,e){n=Go(n)?n:Pf(n),r=r&&!e?gf(r):0;var u=n.length;return r<0&&(r=br(u+r,0)),cf(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&qt(n,t,r)>-1},Fr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:gf(r);return u<0&&(u=br(e+u,0)),qt(n,t,u)},Fr.inRange=function(n,t,r){return t=_f(t),r===u?(r=t,t=0):r=_f(r),function(n,t,r){return n>=wr(t,r)&&n=-9007199254740991&&n<=v},Fr.isSet=af,Fr.isString=cf,Fr.isSymbol=lf,Fr.isTypedArray=sf,Fr.isUndefined=function(n){return n===u},Fr.isWeakMap=function(n){return rf(n)&&_i(n)==C},Fr.isWeakSet=function(n){return rf(n)&&"[object WeakSet]"==ke(n)},Fr.join=function(n,t){return null==n?"":Ft.call(n,t)},Fr.kebabCase=Kf,Fr.last=Yi,Fr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=gf(r))<0?br(e+i,0):wr(i,e-1)),t==t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):Nt(n,Kt,i,!0)},Fr.lowerCase=Gf,Fr.lowerFirst=Vf,Fr.lt=hf,Fr.lte=pf,Fr.max=function(n){return n&&n.length?ge(n,ia,Ie):u},Fr.maxBy=function(n,t){return n&&n.length?ge(n,ci(t,2),Ie):u},Fr.mean=function(n){return Gt(n,ia)},Fr.meanBy=function(n,t){return Gt(n,ci(t,2))},Fr.min=function(n){return n&&n.length?ge(n,ia,De):u},Fr.minBy=function(n,t){return n&&n.length?ge(n,ci(t,2),De):u},Fr.stubArray=da,Fr.stubFalse=ya,Fr.stubObject=function(){return{}},Fr.stubString=function(){return""},Fr.stubTrue=function(){return!0},Fr.multiply=Aa,Fr.nth=function(n,t){return n&&n.length?qe(n,gf(t)):u},Fr.noConflict=function(){return gt._===this&&(gt._=Pn),this},Fr.noop=la,Fr.now=Io,Fr.pad=function(n,t,r){n=wf(n);var e=(t=gf(t))?vr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Zu(dt(u),r)+n+Zu(_t(u),r)},Fr.padEnd=function(n,t,r){n=wf(n);var e=(t=gf(t))?vr(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=jr();return wr(n+i*(t-n+ht("1e-"+((i+"").length-1))),t)}return He(n,t)},Fr.reduce=function(n,t,r){var e=Zo(n)?Ut:Yt,u=arguments.length<3;return e(n,ci(t,4),r,u,pe)},Fr.reduceRight=function(n,t,r){var e=Zo(n)?Dt:Yt,u=arguments.length<3;return e(n,ci(t,4),r,u,ve)},Fr.repeat=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:gf(t),Ye(wf(n),t)},Fr.replace=function(){var n=arguments,t=wf(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Fr.result=function(n,t,r){var e=-1,i=(t=wu(t,n)).length;for(i||(i=1,n=u);++ev)return[];var r=g,e=wr(n,g);t=ci(t),n-=g;for(var u=Qt(e,t);++r=o)return n;var a=r-vr(e);if(a<1)return e;var c=f?xu(f,0,a).join(""):n.slice(0,a);if(i===u)return c+e;if(f&&(a+=c.length-a),ff(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=Rn(i.source,wf(gn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===u?a:h)}}else if(n.indexOf(lu(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Fr.unescape=function(n){return(n=wf(n))&&Y.test(n)?n.replace(V,dr):n},Fr.uniqueId=function(n){var t=++Un;return wf(n)+t},Fr.upperCase=Jf,Fr.upperFirst=Qf,Fr.each=bo,Fr.eachRight=wo,Fr.first=Ki,ca(Fr,(ja={},me(Fr,(function(n,t){Tn.call(Fr.prototype,t)||(ja[t]=n)})),ja),{chain:!1}),Fr.VERSION="4.17.21",zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Fr[n].placeholder=Fr})),zt(["drop","take"],(function(n,t){Zr.prototype[n]=function(r){r=r===u?1:br(gf(r),0);var e=this.__filtered__&&!t?new Zr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,g),type:n+(e.__dir__<0?"Right":"")}),e},Zr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),zt(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Zr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ci(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),zt(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Zr.prototype[n]=function(){return this[r](1).value()[0]}})),zt(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Zr.prototype[n]=function(){return this.__filtered__?new Zr(this):this[r](1)}})),Zr.prototype.compact=function(){return this.filter(ia)},Zr.prototype.find=function(n){return this.filter(n).head()},Zr.prototype.findLast=function(n){return this.reverse().find(n)},Zr.prototype.invokeMap=Je((function(n,t){return"function"==typeof n?new Zr(this):this.map((function(r){return Se(r,n,t)}))})),Zr.prototype.reject=function(n){return this.filter($o(ci(n)))},Zr.prototype.slice=function(n,t){n=gf(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Zr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=gf(t))<0?r.dropRight(-t):r.take(t-n)),r)},Zr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Zr.prototype.toArray=function(){return this.take(g)},me(Zr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Fr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Fr.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,a=t instanceof Zr,c=f[0],l=a||Zo(t),s=function(n){var t=i.apply(Fr,Tt([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new Zr(this);var g=n.apply(t,f);return g.__actions__.push({func:po,args:[s],thisArg:u}),new qr(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),zt(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Bn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Fr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Zo(u)?u:[],n)}return this[r]((function(r){return t.apply(Zo(r)?r:[],n)}))}})),me(Zr.prototype,(function(n,t){var r=Fr[t];if(r){var e=r.name+"";Tn.call(Br,e)||(Br[e]=[]),Br[e].push({name:t,func:r})}})),Br[Fu(u,2).name]=[{name:"wrapper",func:u}],Zr.prototype.clone=function(){var n=new Zr(this.__wrapped__);return n.__actions__=zu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=zu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=zu(this.__views__),n},Zr.prototype.reverse=function(){if(this.__filtered__){var n=new Zr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Zr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Zo(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Fr.prototype.plant=function(n){for(var t,r=this;r instanceof Nr;){var e=Di(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Fr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Zr){var t=n;return this.__actions__.length&&(t=new Zr(this)),(t=t.reverse()).__actions__.push({func:po,args:[no],thisArg:u}),new qr(t,this.__chain__)}return this.thru(no)},Fr.prototype.toJSON=Fr.prototype.valueOf=Fr.prototype.value=function(){return _u(this.__wrapped__,this.__actions__)},Fr.prototype.first=Fr.prototype.head,Xn&&(Fr.prototype[Xn]=function(){return this}),Fr}();gt._=yr,(e=function(){return yr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)},625:(n,t,r)=>{"use strict";r.d(t,{gB:()=>e,gf:()=>u});r(486);function e(n,t=1){if(Math.abs(n)<1024)return n+" B";const r=["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let e=-1;const u=10**t;do{n/=1024,++e}while(Math.round(Math.abs(n)*u)/u>=1024&&e1?"s":"";let i=`${e}
${t} total
${`${n.n_allocations} allocation${u}`}`;return!1===r&&(i=i.concat(`
Thread ID: ${n.thread_id}`)),i}}},t={};function r(e){var u=t[e];if(void 0!==u)return u.exports;var i=t[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return r.d(t,{a:t}),t},r.d=(n,t)=>{for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),r.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),r.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),(()=>{"use strict";var n=r(625);var t=null;new class{constructor(){this.filters={}}registerFilter(n,t){this.filters[n]=t}unRegisterFilter(n){delete this.filters[n]}drawChart(r){let e=r;_.forOwn(this.filters,(n=>{e=n(e)})),function(r){let e=!t||t.inverted();t&&(t.destroy(),d3.selectAll(".d3-flame-graph-tip").remove());t=flamegraph().width(o()).transitionDuration(250).transitionEase(d3.easeCubic).inverted(e).cellHeight(20).minFrameSize(2).setColorMapper(f).onClick(i).tooltip(d3.tip().attr("class","d3-flame-graph-tip").html((t=>{const r=(0,n.gB)(t.data.value);return(0,n.gf)(t.data,r,merge_threads)})).direction((n=>{const t=(n.x1+n.x0)/2;return.25.25?"w":"n"}))),d3.select("#chart").datum(r).call(t),t.width(o())}(e),t.merge([])}};function e(){return location.hash?parseInt(location.hash.substring(1),10):0}function u(){document.getElementById("resetZoomButton").disabled=0==e()}function i(n){n.id!=e()&&(history.pushState({id:n.id},n.data.name,`#${n.id}`),u())}function o(){return document.getElementById("chart").clientWidth}function f(n,t){return n.highlight?"orange":n.data.name&&n.data.location?(e=n.data.location[1],"py"==(r=void 0===e?e:e.substring(e.lastIndexOf(".")+1,e.length)||e)?d3.schemePastel1[2]:"c"==r||"cpp"==r||"h"==r?d3.schemePastel1[5]:d3.schemePastel1[8]):"#EEE";var r,e}})()})(); \ No newline at end of file diff --git a/src/memray/reporters/templates/assets/temporal_flamegraph.js b/src/memray/reporters/templates/assets/temporal_flamegraph.js index de4304d98d..2ddd41632a 100644 --- a/src/memray/reporters/templates/assets/temporal_flamegraph.js +++ b/src/memray/reporters/templates/assets/temporal_flamegraph.js @@ -6,4 +6,4 @@ * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */n=r.nmd(n),function(){var i,u="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,f=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,d=NaN,_=4294967295,g=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",f],["partialRight",l],["rearg",h]],y="[object Arguments]",m="[object Array]",w="[object Boolean]",b="[object Date]",x="[object Error]",I="[object Function]",j="[object GeneratorFunction]",A="[object Map]",E="[object Number]",k="[object Object]",O="[object Promise]",B="[object RegExp]",S="[object Set]",R="[object String]",z="[object Symbol]",D="[object WeakMap]",C="[object ArrayBuffer]",F="[object DataView]",L="[object Float32Array]",T="[object Float64Array]",N="[object Int8Array]",W="[object Int16Array]",U="[object Int32Array]",$="[object Uint8Array]",M="[object Uint8ClampedArray]",P="[object Uint16Array]",q="[object Uint32Array]",Z=/\b__p \+= '';/g,J=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,V=RegExp(Y.source),H=RegExp(G.source),X=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),an=/^\s+/,cn=/\s/,fn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,dn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_n=/\w*$/,gn=/^[-+]0x[0-9a-f]+$/i,yn=/^0b[01]+$/i,mn=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,bn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,In=/($^)/,jn=/['\n\r\u2028\u2029\\]/g,An="\\ud800-\\udfff",En="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kn="\\u2700-\\u27bf",On="a-z\\xdf-\\xf6\\xf8-\\xff",Bn="A-Z\\xc0-\\xd6\\xd8-\\xde",Sn="\\ufe0e\\ufe0f",Rn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zn="['’]",Dn="["+An+"]",Cn="["+Rn+"]",Fn="["+En+"]",Ln="\\d+",Tn="["+kn+"]",Nn="["+On+"]",Wn="[^"+An+Rn+Ln+kn+On+Bn+"]",Un="\\ud83c[\\udffb-\\udfff]",$n="[^"+An+"]",Mn="(?:\\ud83c[\\udde6-\\uddff]){2}",Pn="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+Bn+"]",Zn="\\u200d",Jn="(?:"+Nn+"|"+Wn+")",Kn="(?:"+qn+"|"+Wn+")",Yn="(?:['’](?:d|ll|m|re|s|t|ve))?",Gn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Vn="(?:"+Fn+"|"+Un+")"+"?",Hn="["+Sn+"]?",Xn=Hn+Vn+("(?:"+Zn+"(?:"+[$n,Mn,Pn].join("|")+")"+Hn+Vn+")*"),Qn="(?:"+[Tn,Mn,Pn].join("|")+")"+Xn,nt="(?:"+[$n+Fn+"?",Fn,Mn,Pn,Dn].join("|")+")",tt=RegExp(zn,"g"),rt=RegExp(Fn,"g"),et=RegExp(Un+"(?="+Un+")|"+nt+Xn,"g"),it=RegExp([qn+"?"+Nn+"+"+Yn+"(?="+[Cn,qn,"$"].join("|")+")",Kn+"+"+Gn+"(?="+[Cn,qn+Jn,"$"].join("|")+")",qn+"?"+Jn+"+"+Yn,qn+"+"+Gn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ln,Qn].join("|"),"g"),ut=RegExp("["+Zn+An+En+Sn+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ct=-1,ft={};ft[L]=ft[T]=ft[N]=ft[W]=ft[U]=ft[$]=ft[M]=ft[P]=ft[q]=!0,ft[y]=ft[m]=ft[C]=ft[w]=ft[F]=ft[b]=ft[x]=ft[I]=ft[A]=ft[E]=ft[k]=ft[B]=ft[S]=ft[R]=ft[D]=!1;var lt={};lt[y]=lt[m]=lt[C]=lt[F]=lt[w]=lt[b]=lt[L]=lt[T]=lt[N]=lt[W]=lt[U]=lt[A]=lt[E]=lt[k]=lt[B]=lt[S]=lt[R]=lt[z]=lt[$]=lt[M]=lt[P]=lt[q]=!0,lt[x]=lt[I]=lt[D]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,vt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,dt="object"==typeof self&&self&&self.Object===Object&&self,_t=vt||dt||Function("return this")(),gt=t&&!t.nodeType&&t,yt=gt&&n&&!n.nodeType&&n,mt=yt&&yt.exports===gt,wt=mt&&vt.process,bt=function(){try{var n=yt&&yt.require&&yt.require("util").types;return n||wt&&wt.binding&&wt.binding("util")}catch(n){}}(),xt=bt&&bt.isArrayBuffer,It=bt&&bt.isDate,jt=bt&&bt.isMap,At=bt&&bt.isRegExp,Et=bt&&bt.isSet,kt=bt&&bt.isTypedArray;function Ot(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function Bt(n,t,r,e){for(var i=-1,u=null==n?0:n.length;++i-1}function Ft(n,t,r){for(var e=-1,i=null==n?0:n.length;++e-1;);return r}function ir(n,t){for(var r=n.length;r--&&qt(t,n[r],0)>-1;);return r}var ur=Gt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),or=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ar(n){return"\\"+st[n]}function cr(n){return ut.test(n)}function fr(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function lr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,i=0,u=[];++r",""":'"',"'":"'"});var yr=function n(t){var r,e=(t=null==t?_t:yr.defaults(_t.Object(),t,yr.pick(_t,at))).Array,cn=t.Date,An=t.Error,En=t.Function,kn=t.Math,On=t.Object,Bn=t.RegExp,Sn=t.String,Rn=t.TypeError,zn=e.prototype,Dn=En.prototype,Cn=On.prototype,Fn=t["__core-js_shared__"],Ln=Dn.toString,Tn=Cn.hasOwnProperty,Nn=0,Wn=(r=/[^.]+$/.exec(Fn&&Fn.keys&&Fn.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Un=Cn.toString,$n=Ln.call(On),Mn=_t._,Pn=Bn("^"+Ln.call(Tn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=mt?t.Buffer:i,Zn=t.Symbol,Jn=t.Uint8Array,Kn=qn?qn.allocUnsafe:i,Yn=lr(On.getPrototypeOf,On),Gn=On.create,Vn=Cn.propertyIsEnumerable,Hn=zn.splice,Xn=Zn?Zn.isConcatSpreadable:i,Qn=Zn?Zn.iterator:i,nt=Zn?Zn.toStringTag:i,et=function(){try{var n=hu(On,"defineProperty");return n({},"",{}),n}catch(n){}}(),ut=t.clearTimeout!==_t.clearTimeout&&t.clearTimeout,st=cn&&cn.now!==_t.Date.now&&cn.now,vt=t.setTimeout!==_t.setTimeout&&t.setTimeout,dt=kn.ceil,gt=kn.floor,yt=On.getOwnPropertySymbols,wt=qn?qn.isBuffer:i,bt=t.isFinite,$t=zn.join,Gt=lr(On.keys,On),mr=kn.max,wr=kn.min,br=cn.now,xr=t.parseInt,Ir=kn.random,jr=zn.reverse,Ar=hu(t,"DataView"),Er=hu(t,"Map"),kr=hu(t,"Promise"),Or=hu(t,"Set"),Br=hu(t,"WeakMap"),Sr=hu(On,"create"),Rr=Br&&new Br,zr={},Dr=Nu(Ar),Cr=Nu(Er),Fr=Nu(kr),Lr=Nu(Or),Tr=Nu(Br),Nr=Zn?Zn.prototype:i,Wr=Nr?Nr.valueOf:i,Ur=Nr?Nr.toString:i;function $r(n){if(ra(n)&&!Zo(n)&&!(n instanceof Zr)){if(n instanceof qr)return n;if(Tn.call(n,"__wrapped__"))return Wu(n)}return new qr(n)}var Mr=function(){function n(){}return function(t){if(!ta(t))return{};if(Gn)return Gn(t);n.prototype=t;var r=new n;return n.prototype=i,r}}();function Pr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Zr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=_,this.__views__=[]}function Jr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function fe(n,t,r,e,u,o){var a,c=1&t,f=2&t,l=4&t;if(r&&(a=u?r(n,e,u,o):r(n)),a!==i)return a;if(!ta(n))return n;var s=Zo(n);if(s){if(a=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Tn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!c)return Si(n,a)}else{var h=du(n),p=h==I||h==j;if(Go(n))return ji(n,c);if(h==k||h==y||p&&!u){if(a=f||p?{}:gu(n),!c)return f?function(n,t){return Ri(n,vu(n),t)}(n,function(n,t){return n&&Ri(t,Da(t),n)}(a,n)):function(n,t){return Ri(n,pu(n),t)}(n,ue(a,n))}else{if(!lt[h])return u?n:{};a=function(n,t,r){var e=n.constructor;switch(t){case C:return Ai(n);case w:case b:return new e(+n);case F:return function(n,t){var r=t?Ai(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case L:case T:case N:case W:case U:case $:case M:case P:case q:return Ei(n,r);case A:return new e;case E:case R:return new e(n);case B:return function(n){var t=new n.constructor(n.source,_n.exec(n));return t.lastIndex=n.lastIndex,t}(n);case S:return new e;case z:return i=n,Wr?On(Wr.call(i)):{}}var i}(n,h,c)}}o||(o=new Vr);var v=o.get(n);if(v)return v;o.set(n,a),aa(n)?n.forEach((function(e){a.add(fe(e,t,r,e,n,o))})):ea(n)&&n.forEach((function(e,i){a.set(i,fe(e,t,r,i,n,o))}));var d=s?i:(l?f?uu:iu:f?Da:za)(n);return St(d||n,(function(e,i){d&&(e=n[i=e]),re(a,i,fe(e,t,r,i,n,o))})),a}function le(n,t,r){var e=r.length;if(null==n)return!e;for(n=On(n);e--;){var u=r[e],o=t[u],a=n[u];if(a===i&&!(u in n)||!o(a))return!1}return!0}function se(n,t,r){if("function"!=typeof n)throw new Rn(u);return Ru((function(){n.apply(i,r)}),t)}function he(n,t,r,e){var i=-1,u=Ct,o=!0,a=n.length,c=[],f=t.length;if(!a)return c;r&&(t=Lt(t,nr(r))),e?(u=Ft,o=!1):t.length>=200&&(u=rr,o=!1,t=new Gr(t));n:for(;++i-1},Kr.prototype.set=function(n,t){var r=this.__data__,e=ee(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Yr.prototype.clear=function(){this.size=0,this.__data__={hash:new Jr,map:new(Er||Kr),string:new Jr}},Yr.prototype.delete=function(n){var t=lu(this,n).delete(n);return this.size-=t?1:0,t},Yr.prototype.get=function(n){return lu(this,n).get(n)},Yr.prototype.has=function(n){return lu(this,n).has(n)},Yr.prototype.set=function(n,t){var r=lu(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Gr.prototype.add=Gr.prototype.push=function(n){return this.__data__.set(n,o),this},Gr.prototype.has=function(n){return this.__data__.has(n)},Vr.prototype.clear=function(){this.__data__=new Kr,this.size=0},Vr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Vr.prototype.get=function(n){return this.__data__.get(n)},Vr.prototype.has=function(n){return this.__data__.has(n)},Vr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Kr){var e=r.__data__;if(!Er||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Yr(e)}return r.set(n,t),this.size=r.size,this};var pe=Ci(be),ve=Ci(xe,!0);function de(n,t){var r=!0;return pe(n,(function(n,e,i){return r=!!t(n,e,i)})),r}function _e(n,t,r){for(var e=-1,u=n.length;++e0&&r(a)?t>1?ye(a,t-1,r,e,i):Tt(i,a):e||(i[i.length]=a)}return i}var me=Fi(),we=Fi(!0);function be(n,t){return n&&me(n,t,za)}function xe(n,t){return n&&we(n,t,za)}function Ie(n,t){return Dt(t,(function(t){return Xo(n[t])}))}function je(n,t){for(var r=0,e=(t=wi(t,n)).length;null!=n&&rt}function Oe(n,t){return null!=n&&Tn.call(n,t)}function Be(n,t){return null!=n&&t in On(n)}function Se(n,t,r){for(var u=r?Ft:Ct,o=n[0].length,a=n.length,c=a,f=e(a),l=1/0,s=[];c--;){var h=n[c];c&&t&&(h=Lt(h,nr(t))),l=wr(h.length,l),f[c]=!r&&(t||o>=120&&h.length>=120)?new Gr(c&&h):i}h=n[0];var p=-1,v=f[0];n:for(;++p=a?c:c*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Je(n,t,r){for(var e=-1,i=t.length,u={};++e-1;)a!==n&&Hn.call(a,c,1),Hn.call(n,c,1);return n}function Ye(n,t){for(var r=n?t.length:0,e=r-1;r--;){var i=t[r];if(r==e||i!==u){var u=i;mu(i)?Hn.call(n,i,1):hi(n,i)}}return n}function Ge(n,t){return n+gt(Ir()*(t-n+1))}function Ve(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=gt(t/2))&&(n+=n)}while(t);return r}function He(n,t){return zu(ku(n,t,ic),n+"")}function Xe(n){return Xr($a(n))}function Qe(n,t){var r=$a(n);return Fu(r,ce(t,0,r.length))}function ni(n,t,r,e){if(!ta(n))return n;for(var u=-1,o=(t=wi(t,n)).length,a=o-1,c=n;null!=c&&++uu?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var o=e(u);++i>>1,o=n[u];null!==o&&!fa(o)&&(r?o<=t:o=200){var f=t?null:Vi(n);if(f)return hr(f);o=!1,i=rr,c=new Gr}else c=t?[]:a;n:for(;++e=e?n:ii(n,t,r)}var Ii=ut||function(n){return _t.clearTimeout(n)};function ji(n,t){if(t)return n.slice();var r=n.length,e=Kn?Kn(r):new n.constructor(r);return n.copy(e),e}function Ai(n){var t=new n.constructor(n.byteLength);return new Jn(t).set(new Jn(n)),t}function Ei(n,t){var r=t?Ai(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function ki(n,t){if(n!==t){var r=n!==i,e=null===n,u=n==n,o=fa(n),a=t!==i,c=null===t,f=t==t,l=fa(t);if(!c&&!l&&!o&&n>t||o&&a&&f&&!c&&!l||e&&a&&f||!r&&f||!u)return 1;if(!e&&!o&&!l&&n1?r[u-1]:i,a=u>2?r[2]:i;for(o=n.length>3&&"function"==typeof o?(u--,o):i,a&&wu(r[0],r[1],a)&&(o=u<3?i:o,u=1),t=On(t);++e-1?u[o?t[a]:a]:i}}function Ui(n){return eu((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var a=t[e];if("function"!=typeof a)throw new Rn(u);if(o&&!c&&"wrapper"==au(a))var c=new qr([],!0)}for(e=c?e:r;++e1&&w.reverse(),p&&lc))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Gr:i;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(fn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return St(g,(function(r){var e="_."+r[0];t&r[1]&&!Ct(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Cu(n){var t=0,r=0;return function(){var e=br(),u=16-(e-r);if(r=e,u>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(i,arguments)}}function Fu(n,t){var r=-1,e=n.length,u=e-1;for(t=t===i?e:t;++r1?n[t-1]:i;return r="function"==typeof r?(n.pop(),r):i,uo(n,r)}));function ho(n){var t=$r(n);return t.__chain__=!0,t}function po(n,t){return t(n)}var vo=eu((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,u=function(t){return ae(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Zr&&mu(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:po,args:[u],thisArg:i}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(i),n}))):this.thru(u)}));var _o=zi((function(n,t,r){Tn.call(n,r)?++n[r]:oe(n,r,1)}));var go=Wi(Pu),yo=Wi(qu);function mo(n,t){return(Zo(n)?St:pe)(n,fu(t,3))}function wo(n,t){return(Zo(n)?Rt:ve)(n,fu(t,3))}var bo=zi((function(n,t,r){Tn.call(n,r)?n[r].push(t):oe(n,r,[t])}));var xo=He((function(n,t,r){var i=-1,u="function"==typeof t,o=Ko(n)?e(n.length):[];return pe(n,(function(n){o[++i]=u?Ot(t,n,r):Re(n,t,r)})),o})),Io=zi((function(n,t,r){oe(n,r,t)}));function jo(n,t){return(Zo(n)?Lt:Ue)(n,fu(t,3))}var Ao=zi((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var Eo=He((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wu(n,t[0],t[1])?t=[]:r>2&&wu(t[0],t[1],t[2])&&(t=[t[0]]),Ze(n,ye(t,1),[])})),ko=st||function(){return _t.Date.now()};function Oo(n,t,r){return t=r?i:t,t=n&&null==t?n.length:t,Xi(n,s,i,i,i,i,t)}function Bo(n,t){var r;if("function"!=typeof t)throw new Rn(u);return n=da(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=i),r}}var So=He((function(n,t,r){var e=1;if(r.length){var i=sr(r,cu(So));e|=f}return Xi(n,e,t,r,i)})),Ro=He((function(n,t,r){var e=3;if(r.length){var i=sr(r,cu(Ro));e|=f}return Xi(t,e,n,r,i)}));function zo(n,t,r){var e,o,a,c,f,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new Rn(u);function d(t){var r=e,u=o;return e=o=i,s=t,c=n.apply(u,r)}function _(n){var r=n-l;return l===i||r>=t||r<0||p&&n-s>=a}function g(){var n=ko();if(_(n))return y(n);f=Ru(g,function(n){var r=t-(n-l);return p?wr(r,a-(n-s)):r}(n))}function y(n){return f=i,v&&e?d(n):(e=o=i,c)}function m(){var n=ko(),r=_(n);if(e=arguments,o=this,l=n,r){if(f===i)return function(n){return s=n,f=Ru(g,t),h?d(n):c}(l);if(p)return Ii(f),f=Ru(g,t),d(l)}return f===i&&(f=Ru(g,t)),c}return t=ga(t)||0,ta(r)&&(h=!!r.leading,a=(p="maxWait"in r)?mr(ga(r.maxWait)||0,t):a,v="trailing"in r?!!r.trailing:v),m.cancel=function(){f!==i&&Ii(f),s=0,e=l=o=f=i},m.flush=function(){return f===i?c:y(ko())},m}var Do=He((function(n,t){return se(n,1,t)})),Co=He((function(n,t,r){return se(n,ga(t)||0,r)}));function Fo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new Rn(u);var r=function(){var e=arguments,i=t?t.apply(this,e):e[0],u=r.cache;if(u.has(i))return u.get(i);var o=n.apply(this,e);return r.cache=u.set(i,o)||u,o};return r.cache=new(Fo.Cache||Yr),r}function Lo(n){if("function"!=typeof n)throw new Rn(u);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Fo.Cache=Yr;var To=bi((function(n,t){var r=(t=1==t.length&&Zo(t[0])?Lt(t[0],nr(fu())):Lt(ye(t,1),nr(fu()))).length;return He((function(e){for(var i=-1,u=wr(e.length,r);++i=t})),qo=ze(function(){return arguments}())?ze:function(n){return ra(n)&&Tn.call(n,"callee")&&!Vn.call(n,"callee")},Zo=e.isArray,Jo=xt?nr(xt):function(n){return ra(n)&&Ee(n)==C};function Ko(n){return null!=n&&na(n.length)&&!Xo(n)}function Yo(n){return ra(n)&&Ko(n)}var Go=wt||gc,Vo=It?nr(It):function(n){return ra(n)&&Ee(n)==b};function Ho(n){if(!ra(n))return!1;var t=Ee(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!ua(n)}function Xo(n){if(!ta(n))return!1;var t=Ee(n);return t==I||t==j||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(n){return"number"==typeof n&&n==da(n)}function na(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function ta(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function ra(n){return null!=n&&"object"==typeof n}var ea=jt?nr(jt):function(n){return ra(n)&&du(n)==A};function ia(n){return"number"==typeof n||ra(n)&&Ee(n)==E}function ua(n){if(!ra(n)||Ee(n)!=k)return!1;var t=Yn(n);if(null===t)return!0;var r=Tn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ln.call(r)==$n}var oa=At?nr(At):function(n){return ra(n)&&Ee(n)==B};var aa=Et?nr(Et):function(n){return ra(n)&&du(n)==S};function ca(n){return"string"==typeof n||!Zo(n)&&ra(n)&&Ee(n)==R}function fa(n){return"symbol"==typeof n||ra(n)&&Ee(n)==z}var la=kt?nr(kt):function(n){return ra(n)&&na(n.length)&&!!ft[Ee(n)]};var sa=Ki(We),ha=Ki((function(n,t){return n<=t}));function pa(n){if(!n)return[];if(Ko(n))return ca(n)?dr(n):Si(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=du(n);return(t==A?fr:t==S?hr:$a)(n)}function va(n){return n?(n=ga(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function da(n){var t=va(n),r=t%1;return t==t?r?t-r:t:0}function _a(n){return n?ce(da(n),0,_):0}function ga(n){if("number"==typeof n)return n;if(fa(n))return d;if(ta(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=ta(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Qt(n);var r=yn.test(n);return r||wn.test(n)?pt(n.slice(2),r?2:8):gn.test(n)?d:+n}function ya(n){return Ri(n,Da(n))}function ma(n){return null==n?"":li(n)}var wa=Di((function(n,t){if(ju(t)||Ko(t))Ri(t,za(t),n);else for(var r in t)Tn.call(t,r)&&re(n,r,t[r])})),ba=Di((function(n,t){Ri(t,Da(t),n)})),xa=Di((function(n,t,r,e){Ri(t,Da(t),n,e)})),Ia=Di((function(n,t,r,e){Ri(t,za(t),n,e)})),ja=eu(ae);var Aa=He((function(n,t){n=On(n);var r=-1,e=t.length,u=e>2?t[2]:i;for(u&&wu(t[0],t[1],u)&&(e=1);++r1),t})),Ri(n,uu(n),r),e&&(r=fe(r,7,tu));for(var i=t.length;i--;)hi(r,t[i]);return r}));var Ta=eu((function(n,t){return null==n?{}:function(n,t){return Je(n,t,(function(t,r){return Oa(n,r)}))}(n,t)}));function Na(n,t){if(null==n)return{};var r=Lt(uu(n),(function(n){return[n]}));return t=fu(t),Je(n,r,(function(n,r){return t(n,r[0])}))}var Wa=Hi(za),Ua=Hi(Da);function $a(n){return null==n?[]:tr(n,za(n))}var Ma=Ti((function(n,t,r){return t=t.toLowerCase(),n+(r?Pa(t):t)}));function Pa(n){return Ha(ma(n).toLowerCase())}function qa(n){return(n=ma(n))&&n.replace(xn,ur).replace(rt,"")}var Za=Ti((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Ja=Ti((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Ka=Li("toLowerCase");var Ya=Ti((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Ga=Ti((function(n,t,r){return n+(r?" ":"")+Ha(t)}));var Va=Ti((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Ha=Li("toUpperCase");function Xa(n,t,r){return n=ma(n),(t=r?i:t)===i?function(n){return ot.test(n)}(n)?function(n){return n.match(it)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var Qa=He((function(n,t){try{return Ot(n,i,t)}catch(n){return Ho(n)?n:new An(n)}})),nc=eu((function(n,t){return St(t,(function(t){t=Tu(t),oe(n,t,So(n[t],n))})),n}));function tc(n){return function(){return n}}var rc=Ui(),ec=Ui(!0);function ic(n){return n}function uc(n){return Le("function"==typeof n?n:fe(n,1))}var oc=He((function(n,t){return function(r){return Re(r,n,t)}})),ac=He((function(n,t){return function(r){return Re(n,r,t)}}));function cc(n,t,r){var e=za(t),i=Ie(t,e);null!=r||ta(t)&&(i.length||!e.length)||(r=t,t=n,n=this,i=Ie(t,za(t)));var u=!(ta(r)&&"chain"in r&&!r.chain),o=Xo(n);return St(i,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(u||t){var r=n(this.__wrapped__);return(r.__actions__=Si(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Tt([this.value()],arguments))})})),n}function fc(){}var lc=qi(Lt),sc=qi(zt),hc=qi(Ut);function pc(n){return bu(n)?Yt(Tu(n)):function(n){return function(t){return je(t,n)}}(n)}var vc=Ji(),dc=Ji(!0);function _c(){return[]}function gc(){return!1}var yc=Pi((function(n,t){return n+t}),0),mc=Gi("ceil"),wc=Pi((function(n,t){return n/t}),1),bc=Gi("floor");var xc,Ic=Pi((function(n,t){return n*t}),1),jc=Gi("round"),Ac=Pi((function(n,t){return n-t}),0);return $r.after=function(n,t){if("function"!=typeof t)throw new Rn(u);return n=da(n),function(){if(--n<1)return t.apply(this,arguments)}},$r.ary=Oo,$r.assign=wa,$r.assignIn=ba,$r.assignInWith=xa,$r.assignWith=Ia,$r.at=ja,$r.before=Bo,$r.bind=So,$r.bindAll=nc,$r.bindKey=Ro,$r.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Zo(n)?n:[n]},$r.chain=ho,$r.chunk=function(n,t,r){t=(r?wu(n,t,r):t===i)?1:mr(da(t),0);var u=null==n?0:n.length;if(!u||t<1)return[];for(var o=0,a=0,c=e(dt(u/t));ou?0:u+r),(e=e===i||e>u?u:da(e))<0&&(e+=u),e=r>e?0:_a(e);r>>0)?(n=ma(n))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=li(t))&&cr(n)?xi(dr(n),0,r):n.split(t,r):[]},$r.spread=function(n,t){if("function"!=typeof n)throw new Rn(u);return t=null==t?0:mr(da(t),0),He((function(r){var e=r[t],i=xi(r,0,t);return e&&Tt(i,e),Ot(n,this,i)}))},$r.tail=function(n){var t=null==n?0:n.length;return t?ii(n,1,t):[]},$r.take=function(n,t,r){return n&&n.length?ii(n,0,(t=r||t===i?1:da(t))<0?0:t):[]},$r.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?ii(n,(t=e-(t=r||t===i?1:da(t)))<0?0:t,e):[]},$r.takeRightWhile=function(n,t){return n&&n.length?vi(n,fu(t,3),!1,!0):[]},$r.takeWhile=function(n,t){return n&&n.length?vi(n,fu(t,3)):[]},$r.tap=function(n,t){return t(n),n},$r.throttle=function(n,t,r){var e=!0,i=!0;if("function"!=typeof n)throw new Rn(u);return ta(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),zo(n,t,{leading:e,maxWait:t,trailing:i})},$r.thru=po,$r.toArray=pa,$r.toPairs=Wa,$r.toPairsIn=Ua,$r.toPath=function(n){return Zo(n)?Lt(n,Tu):fa(n)?[n]:Si(Lu(ma(n)))},$r.toPlainObject=ya,$r.transform=function(n,t,r){var e=Zo(n),i=e||Go(n)||la(n);if(t=fu(t,4),null==r){var u=n&&n.constructor;r=i?e?new u:[]:ta(n)&&Xo(u)?Mr(Yn(n)):{}}return(i?St:be)(n,(function(n,e,i){return t(r,n,e,i)})),r},$r.unary=function(n){return Oo(n,1)},$r.union=to,$r.unionBy=ro,$r.unionWith=eo,$r.uniq=function(n){return n&&n.length?si(n):[]},$r.uniqBy=function(n,t){return n&&n.length?si(n,fu(t,2)):[]},$r.uniqWith=function(n,t){return t="function"==typeof t?t:i,n&&n.length?si(n,i,t):[]},$r.unset=function(n,t){return null==n||hi(n,t)},$r.unzip=io,$r.unzipWith=uo,$r.update=function(n,t,r){return null==n?n:pi(n,t,mi(r))},$r.updateWith=function(n,t,r,e){return e="function"==typeof e?e:i,null==n?n:pi(n,t,mi(r),e)},$r.values=$a,$r.valuesIn=function(n){return null==n?[]:tr(n,Da(n))},$r.without=oo,$r.words=Xa,$r.wrap=function(n,t){return No(mi(t),n)},$r.xor=ao,$r.xorBy=co,$r.xorWith=fo,$r.zip=lo,$r.zipObject=function(n,t){return gi(n||[],t||[],re)},$r.zipObjectDeep=function(n,t){return gi(n||[],t||[],ni)},$r.zipWith=so,$r.entries=Wa,$r.entriesIn=Ua,$r.extend=ba,$r.extendWith=xa,cc($r,$r),$r.add=yc,$r.attempt=Qa,$r.camelCase=Ma,$r.capitalize=Pa,$r.ceil=mc,$r.clamp=function(n,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=ga(r))==r?r:0),t!==i&&(t=(t=ga(t))==t?t:0),ce(ga(n),t,r)},$r.clone=function(n){return fe(n,4)},$r.cloneDeep=function(n){return fe(n,5)},$r.cloneDeepWith=function(n,t){return fe(n,5,t="function"==typeof t?t:i)},$r.cloneWith=function(n,t){return fe(n,4,t="function"==typeof t?t:i)},$r.conformsTo=function(n,t){return null==t||le(n,t,za(t))},$r.deburr=qa,$r.defaultTo=function(n,t){return null==n||n!=n?t:n},$r.divide=wc,$r.endsWith=function(n,t,r){n=ma(n),t=li(t);var e=n.length,u=r=r===i?e:ce(da(r),0,e);return(r-=t.length)>=0&&n.slice(r,u)==t},$r.eq=$o,$r.escape=function(n){return(n=ma(n))&&H.test(n)?n.replace(G,or):n},$r.escapeRegExp=function(n){return(n=ma(n))&&on.test(n)?n.replace(un,"\\$&"):n},$r.every=function(n,t,r){var e=Zo(n)?zt:de;return r&&wu(n,t,r)&&(t=i),e(n,fu(t,3))},$r.find=go,$r.findIndex=Pu,$r.findKey=function(n,t){return Mt(n,fu(t,3),be)},$r.findLast=yo,$r.findLastIndex=qu,$r.findLastKey=function(n,t){return Mt(n,fu(t,3),xe)},$r.floor=bc,$r.forEach=mo,$r.forEachRight=wo,$r.forIn=function(n,t){return null==n?n:me(n,fu(t,3),Da)},$r.forInRight=function(n,t){return null==n?n:we(n,fu(t,3),Da)},$r.forOwn=function(n,t){return n&&be(n,fu(t,3))},$r.forOwnRight=function(n,t){return n&&xe(n,fu(t,3))},$r.get=ka,$r.gt=Mo,$r.gte=Po,$r.has=function(n,t){return null!=n&&_u(n,t,Oe)},$r.hasIn=Oa,$r.head=Ju,$r.identity=ic,$r.includes=function(n,t,r,e){n=Ko(n)?n:$a(n),r=r&&!e?da(r):0;var i=n.length;return r<0&&(r=mr(i+r,0)),ca(n)?r<=i&&n.indexOf(t,r)>-1:!!i&&qt(n,t,r)>-1},$r.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=null==r?0:da(r);return i<0&&(i=mr(e+i,0)),qt(n,t,i)},$r.inRange=function(n,t,r){return t=va(t),r===i?(r=t,t=0):r=va(r),function(n,t,r){return n>=wr(t,r)&&n=-9007199254740991&&n<=v},$r.isSet=aa,$r.isString=ca,$r.isSymbol=fa,$r.isTypedArray=la,$r.isUndefined=function(n){return n===i},$r.isWeakMap=function(n){return ra(n)&&du(n)==D},$r.isWeakSet=function(n){return ra(n)&&"[object WeakSet]"==Ee(n)},$r.join=function(n,t){return null==n?"":$t.call(n,t)},$r.kebabCase=Za,$r.last=Vu,$r.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e;return r!==i&&(u=(u=da(r))<0?mr(e+u,0):wr(u,e-1)),t==t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,u):Pt(n,Jt,u,!0)},$r.lowerCase=Ja,$r.lowerFirst=Ka,$r.lt=sa,$r.lte=ha,$r.max=function(n){return n&&n.length?_e(n,ic,ke):i},$r.maxBy=function(n,t){return n&&n.length?_e(n,fu(t,2),ke):i},$r.mean=function(n){return Kt(n,ic)},$r.meanBy=function(n,t){return Kt(n,fu(t,2))},$r.min=function(n){return n&&n.length?_e(n,ic,We):i},$r.minBy=function(n,t){return n&&n.length?_e(n,fu(t,2),We):i},$r.stubArray=_c,$r.stubFalse=gc,$r.stubObject=function(){return{}},$r.stubString=function(){return""},$r.stubTrue=function(){return!0},$r.multiply=Ic,$r.nth=function(n,t){return n&&n.length?qe(n,da(t)):i},$r.noConflict=function(){return _t._===this&&(_t._=Mn),this},$r.noop=fc,$r.now=ko,$r.pad=function(n,t,r){n=ma(n);var e=(t=da(t))?vr(n):0;if(!t||e>=t)return n;var i=(t-e)/2;return Zi(gt(i),r)+n+Zi(dt(i),r)},$r.padEnd=function(n,t,r){n=ma(n);var e=(t=da(t))?vr(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var u=Ir();return wr(n+u*(t-n+ht("1e-"+((u+"").length-1))),t)}return Ge(n,t)},$r.reduce=function(n,t,r){var e=Zo(n)?Nt:Vt,i=arguments.length<3;return e(n,fu(t,4),r,i,pe)},$r.reduceRight=function(n,t,r){var e=Zo(n)?Wt:Vt,i=arguments.length<3;return e(n,fu(t,4),r,i,ve)},$r.repeat=function(n,t,r){return t=(r?wu(n,t,r):t===i)?1:da(t),Ve(ma(n),t)},$r.replace=function(){var n=arguments,t=ma(n[0]);return n.length<3?t:t.replace(n[1],n[2])},$r.result=function(n,t,r){var e=-1,u=(t=wi(t,n)).length;for(u||(u=1,n=i);++ev)return[];var r=_,e=wr(n,_);t=fu(t),n-=_;for(var i=Xt(e,t);++r=o)return n;var c=r-vr(e);if(c<1)return e;var f=a?xi(a,0,c).join(""):n.slice(0,c);if(u===i)return f+e;if(a&&(c+=f.length-c),oa(u)){if(n.slice(c).search(u)){var l,s=f;for(u.global||(u=Bn(u.source,ma(_n.exec(u))+"g")),u.lastIndex=0;l=u.exec(s);)var h=l.index;f=f.slice(0,h===i?c:h)}}else if(n.indexOf(li(u),c)!=c){var p=f.lastIndexOf(u);p>-1&&(f=f.slice(0,p))}return f+e},$r.unescape=function(n){return(n=ma(n))&&V.test(n)?n.replace(Y,gr):n},$r.uniqueId=function(n){var t=++Nn;return ma(n)+t},$r.upperCase=Va,$r.upperFirst=Ha,$r.each=mo,$r.eachRight=wo,$r.first=Ju,cc($r,(xc={},be($r,(function(n,t){Tn.call($r.prototype,t)||(xc[t]=n)})),xc),{chain:!1}),$r.VERSION="4.17.21",St(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){$r[n].placeholder=$r})),St(["drop","take"],(function(n,t){Zr.prototype[n]=function(r){r=r===i?1:mr(da(r),0);var e=this.__filtered__&&!t?new Zr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,_),type:n+(e.__dir__<0?"Right":"")}),e},Zr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),St(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Zr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:fu(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),St(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Zr.prototype[n]=function(){return this[r](1).value()[0]}})),St(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Zr.prototype[n]=function(){return this.__filtered__?new Zr(this):this[r](1)}})),Zr.prototype.compact=function(){return this.filter(ic)},Zr.prototype.find=function(n){return this.filter(n).head()},Zr.prototype.findLast=function(n){return this.reverse().find(n)},Zr.prototype.invokeMap=He((function(n,t){return"function"==typeof n?new Zr(this):this.map((function(r){return Re(r,n,t)}))})),Zr.prototype.reject=function(n){return this.filter(Lo(fu(n)))},Zr.prototype.slice=function(n,t){n=da(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Zr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==i&&(r=(t=da(t))<0?r.dropRight(-t):r.take(t-n)),r)},Zr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Zr.prototype.toArray=function(){return this.take(_)},be(Zr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),u=$r[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);u&&($r.prototype[t]=function(){var t=this.__wrapped__,a=e?[1]:arguments,c=t instanceof Zr,f=a[0],l=c||Zo(t),s=function(n){var t=u.apply($r,Tt([n],a));return e&&h?t[0]:t};l&&r&&"function"==typeof f&&1!=f.length&&(c=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,d=c&&!p;if(!o&&l){t=d?t:new Zr(this);var _=n.apply(t,a);return _.__actions__.push({func:po,args:[s],thisArg:i}),new qr(_,h)}return v&&d?n.apply(this,a):(_=this.thru(s),v?e?_.value()[0]:_.value():_)})})),St(["pop","push","shift","sort","splice","unshift"],(function(n){var t=zn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);$r.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var i=this.value();return t.apply(Zo(i)?i:[],n)}return this[r]((function(r){return t.apply(Zo(r)?r:[],n)}))}})),be(Zr.prototype,(function(n,t){var r=$r[t];if(r){var e=r.name+"";Tn.call(zr,e)||(zr[e]=[]),zr[e].push({name:t,func:r})}})),zr[$i(i,2).name]=[{name:"wrapper",func:i}],Zr.prototype.clone=function(){var n=new Zr(this.__wrapped__);return n.__actions__=Si(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Si(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Si(this.__views__),n},Zr.prototype.reverse=function(){if(this.__filtered__){var n=new Zr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Zr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Zo(n),e=t<0,i=r?n.length:0,u=function(n,t,r){var e=-1,i=r.length;for(;++e=this.__values__.length;return{done:n,value:n?i:this.__values__[this.__index__++]}},$r.prototype.plant=function(n){for(var t,r=this;r instanceof Pr;){var e=Wu(r);e.__index__=0,e.__values__=i,t?u.__wrapped__=e:t=e;var u=e;r=r.__wrapped__}return u.__wrapped__=n,t},$r.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Zr){var t=n;return this.__actions__.length&&(t=new Zr(this)),(t=t.reverse()).__actions__.push({func:po,args:[no],thisArg:i}),new qr(t,this.__chain__)}return this.thru(no)},$r.prototype.toJSON=$r.prototype.valueOf=$r.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},$r.prototype.first=$r.prototype.head,Qn&&($r.prototype[Qn]=function(){return this}),$r}();_t._=yr,(e=function(){return yr}.call(t,r,t,n))===i||(n.exports=e)}.call(this)},625:(n,t,r)=>{"use strict";r.d(t,{Fc:()=>l,NO:()=>c,O:()=>s,YD:()=>o,g5:()=>h,gB:()=>u,gf:()=>a});var e=r(486),i=r.n(e);function u(n,t=1){if(Math.abs(n)<1024)return n+" B";const r=["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let e=-1;const i=10**t;do{n/=1024,++e}while(Math.round(Math.abs(n)*i)/i>=1024&&e1?"s":"";let u=`${e}
${t} total
${`${n.n_allocations} allocation${i}`}`;return!1===r&&(u=u.concat(`
Thread ID: ${n.thread_id}`)),u}function c(n,t){return function(n,t){let r=i().cloneDeep(n.children);const e=i().filter(r,(function n(r){return r.children&&r.children.length>0&&(r.children=i().filter(r.children,n)),t(r)}));return i().defaults({children:e},n)}(n,(n=>n.thread_id===t))}function f(n,t){function r(n){let e=[];if(t(n)){e=[];for(const t of n.children)e.push(...r(t));let t=i().clone(n);t.children=e,e=[t]}else for(const t of n.children)e.push(...r(t));return e}let e=[];for(let t of n.children)e.push(...r(t));return i().defaults({children:e},n)}function l(n){return f(n,(n=>n.interesting))}function s(n){return f(n,(n=>!n.import_system))}function h(n){return i().reduce(n,((n,t)=>(n.n_allocations+=t.n_allocations,n.value+=t.value,n)),{n_allocations:0,value:0})}},501:(n,t,r)=>{"use strict";r.d(t,{Cd:()=>f,Ji:()=>d,N4:()=>x,Xx:()=>v,YX:()=>l,Z1:()=>b,bf:()=>g,cW:()=>j,ib:()=>m,sO:()=>w});var e=r(625);const i="filter_uninteresting",u="filter_import_system",o="filter_thread";var a=null;let c=new class{constructor(){this.filters={}}registerFilter(n,t){this.filters[n]=t}unRegisterFilter(n){delete this.filters[n]}drawChart(n){let t=n;_.forOwn(this.filters,(n=>{t=n(t)})),function(n){a&&(a.destroy(),d3.selectAll(".d3-flame-graph-tip").remove());a=flamegraph().width(y()).transitionDuration(250).transitionEase(d3.easeCubic).inverted(!0).cellHeight(20).minFrameSize(2).setColorMapper(I).onClick(p).tooltip(d3.tip().attr("class","d3-flame-graph-tip").html((n=>{const t=(0,e.gB)(n.data.value);return(0,e.gf)(n.data,t,merge_threads)})).direction((n=>{const t=(n.x1+n.x0)/2;return.25.25?"w":"n"}))),d3.select("#chart").datum(n).call(a),a.width(y())}(t),a.merge([])}};function f(){return a}function l(){return c}function s(){return location.hash?parseInt(location.hash.substring(1),10):0}function h(){document.getElementById("resetZoomButton").disabled=0==s()}function p(n){n.id!=s()&&(history.pushState({id:n.id},n.data.name,`#${n.id}`),h())}function v(){const n=s(),t=a.findById(n);t&&(a.zoomTo(t),h())}function d(){a.inverted(this===document.getElementById("icicles")),a.resetZoom(),$('[data-toggle="tooltip"]').tooltip("hide")}function g(){a.resetZoom()}function y(){return document.getElementById("chart").clientWidth}function m(){c.drawChart(data),location.hash&&v()}function w(){const n=this.dataset.thread;"-0x1"===n?c.unRegisterFilter(o):c.registerFilter(o,(t=>{let r=(0,e.NO)(t,n);const i=(0,e.g5)(r.children);return _.defaults(i,r),r.n_allocations=i.n_allocations,r.value=i.value,r})),c.drawChart(data)}function b(){void 0===this.hideUninterestingFrames&&(this.hideUninterestingFrames=!0),!0===this.hideUninterestingFrames?(this.hideUninterestingFrames=!0,c.registerFilter(i,(n=>(0,e.Fc)(n)))):c.unRegisterFilter(i),this.hideUninterestingFrames=!this.hideUninterestingFrames,c.drawChart(data)}function x(){void 0===this.hideImportSystemFrames&&(this.hideImportSystemFrames=!0),!0===this.hideImportSystemFrames?(this.hideImportSystemFrames=!0,inverted?(data=invertedNoImportsData,temporal&&(hideImports=!0,intervals=invertedNoImportsIntervals)):c.registerFilter(u,(n=>(0,e.O)(n)))):(c.unRegisterFilter(u),data=flamegraphData,temporal&&(hideImports=!1,intervals=flamegraphIntervals)),this.hideImportSystemFrames=!this.hideImportSystemFrames,c.drawChart(data)}function I(n,t){return n.highlight?"orange":n.data.name&&n.data.location?(e=n.data.location[1],"py"==(r=void 0===e?e:e.substring(e.lastIndexOf(".")+1,e.length)||e)?d3.schemePastel1[2]:"c"==r||"cpp"==r||"h"==r?d3.schemePastel1[5]:d3.schemePastel1[8]):"#EEE";var r,e}function j(n,t){if(!0===t)return;const r=n.unique_threads;if(!r||r.length<=1)return;document.getElementById("threadsDropdown").removeAttribute("hidden");const e=document.getElementById("threadsDropdownList");for(const n of r){let t=document.createElement("a");t.className="dropdown-item",t.dataset.thread=n,t.text=n,t.onclick=w,e.appendChild(t)}}}},t={};function r(e){var i=t[e];if(void 0!==i)return i.exports;var u=t[e]={id:e,loaded:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.loaded=!0,u.exports}r.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return r.d(t,{a:t}),t},r.d=(n,t)=>{for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),r.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),r.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),(()=>{"use strict";var n=r(625),t=r(501),e=null,i=null,u=a(packed_data.nodes),o=inverted?a(packed_data.inverted_no_imports_nodes):null;function a(n){let t=new Array(n.children.length);console.log("finding parent index for each node");for(const[r,e]of n.children.entries())e.forEach((n=>t[n]=r));return console.assert(void 0===t[0],"root node has a parent"),t}function c(n,t){console.log("constructing nodes");const r=t.name.map(((r,e)=>({name:n[t.name[e]],location:[n[t.function[e]],n[t.filename[e]],t.lineno[e]],value:0,children:t.children[e],n_allocations:0,thread_id:n[t.thread_id[e]],interesting:0!==t.interesting[e],import_system:0!==t.import_system[e]})));console.log("mapping child indices to child nodes");for(const[n,t]of r.entries())t.children=t.children.map((n=>r[n]));return r}function f(n,t,r,e){n.forEach((n=>{let[i,u,o,a,c]=n;if(i<=r&&(null===u||u>r))for(;void 0!==o;)t[o].n_allocations+=a,t[o].value+=c,o=e[o]}))}function l(n,t,r,e,i){n.forEach((n=>{let[u,o,a,c,f]=n;if(u>=r&&u<=e&&(null===o||o>e))for(;void 0!==a;)t[a].n_allocations+=c,t[a].value+=f,a=i[a]}))}function s(n,t,r){const{flamegraphNodeObjects:e,invertedNoImportsNodeObjects:i}=function(n){const{strings:t,nodes:r,inverted_no_imports_nodes:e,unique_threads:i,intervals:u,no_imports_interval_list:o}=n,a=c(t,r),f=inverted?c(t,e):null;return flamegraphIntervals=u,invertedNoImportsIntervals=o,{flamegraphNodeObjects:a,invertedNoImportsNodeObjects:f}}(n),a=n.high_water_mark_by_snapshot;if(a){console.log("finding highest high water mark in range");let n=t,c=a[t];for(let e=t;e<=r;++e)a[e]>c&&(c=a[e],n=e);console.log("highest water mark between "+t+" and "+r+" is "+c+" at "+n);let l,s,h={shapes:[]};n==memory_records.length?(h["xaxis.range[1]"]=new Date(memory_records.at(-1)[0]+10),l=new Date(memory_records.at(-1)[0]),s=new Date(memory_records.at(-1)[0]+10)):0==n?(h["xaxis.range[0]"]=new Date(memory_records[0][0]-10),l=new Date(memory_records[0][0]-10),s=new Date(memory_records[0][0])):(l=new Date(memory_records[n-1][0]),s=new Date(memory_records[n][0])),h.shapes=[{type:"rect",xref:"x",yref:"paper",x0:l,y0:0,x1:s,y1:1,fillcolor:"#fbff00",opacity:.2,line:{width:0}}],Plotly.relayout("plot",h),console.log("finding hwm allocations"),f(flamegraphIntervals,e,n,u),inverted&&f(invertedNoImportsIntervals,i,n,o)}else console.log("finding leaked allocations"),l(flamegraphIntervals,e,t,r,u),inverted&&l(invertedNoImportsIntervals,i,t,r,o);e.forEach((n=>{n.children=n.children.filter((n=>n.n_allocations>0))})),inverted&&i.forEach((n=>{n.children=n.children.filter((n=>n.n_allocations>0))})),flamegraphData=e[0],invertedNoImportsData=inverted?i[0]:null}function h(n){console.log("refreshing flame graph!");let r=function(n){console.log("getRangeData");let t={};if(n.hasOwnProperty("xaxis.range[0]"))t={string1:n["xaxis.range[0]"],string2:n["xaxis.range[1]"]};else if(n.hasOwnProperty("xaxis.range"))t={string1:n["xaxis.range"][0],string2:n["xaxis.range"][1]};else{if(null===e)return;{let n=e.layout.xaxis.range;t={string1:n[0],string2:n[1]}}}return t}(n);if(console.log("range data: "+JSON.stringify(r)),null!=i&&JSON.stringify(r)===JSON.stringify(i))return;console.log("showing loading animation"),console.log("showLoadingAnimation"),document.getElementById("loading").style.display="block",document.getElementById("overlay").style.display="block",i=r,console.log("finding range of relevant snapshot");let u=0,o=memory_records.length;if(r){const n=new Date(r.string1).getTime(),t=memory_records.findIndex((t=>t[0]>=n));-1!=t&&(u=t);const e=new Date(r.string2).getTime(),i=memory_records.findIndex((n=>n[0]>e));-1!=i&&(o=i)}console.log("start index is "+u),console.log("end index is "+o),console.log("first possible index is 0"),console.log("last possible index is "+memory_records.length),console.log("constructing tree"),s(packed_data,u,o),data=inverted&&hideImports?invertedNoImportsData:flamegraphData,intervals=inverted&&hideImports?invertedNoImportsIntervals:flamegraphIntervals,console.log("total allocations in range: "+data.n_allocations),console.log("total bytes in range: "+data.value),console.log("drawing chart"),(0,t.YX)().drawChart(data),console.log("hiding loading animation"),console.log("hideLoadingAnimation"),document.getElementById("loading").style.display="none",document.getElementById("overlay").style.display="none"}var p=null;function v(n){console.log("refreshFlamegraphDebounced"),p&&clearTimeout(p),p=setTimeout((function(){h(n)}),500)}document.addEventListener("DOMContentLoaded",(function(){console.log("main");const r=packed_data.unique_threads.map((n=>packed_data.strings[n]));(0,t.cW)({unique_threads:r},merge_threads),function(n){console.log("init memory graph");const t=n.map((n=>new Date(n[0]))),r=n.map((n=>n[1])),i=n.map((n=>n[2])),u=n.length>1?"lines":"markers";var o=[{x:t,y:r,mode:u,name:"Resident size"},{x:t,y:i,mode:u,name:"Heap size"}];Plotly.newPlot("plot",o,{xaxis:{title:{text:"Time"},rangeslider:{visible:!0}},yaxis:{title:{text:"Memory Size"},tickformat:".4~s",exponentformat:"B",ticksuffix:"B"}},{responsive:!0,displayModeBar:!1}).then((n=>{console.assert(null===e),e=n}))}(memory_records),h({}),location.hash&&(0,t.Xx)(),document.getElementById("icicles").onchange=t.Ji,document.getElementById("flames").onchange=t.Ji,document.getElementById("resetZoomButton").onclick=t.bf,document.getElementById("resetThreadFilterItem").onclick=t.sO,document.getElementById("hideUninteresting").onclick=t.Z1.bind(this),document.getElementById("hideImportSystem").onclick=t.N4.bind(this),t.Z1.bind(this)(),document.onkeyup=n=>{"Escape"==n.code&&(0,t.bf)()},document.getElementById("searchTerm").addEventListener("input",(()=>{const n=document.getElementById("searchTerm");(0,t.Cd)().search(n.value)})),window.addEventListener("popstate",t.Xx),window.addEventListener("resize",(0,n.YD)(t.ib)),$('[data-toggle-second="tooltip"]').tooltip(),$('[data-toggle="tooltip"]').tooltip(),console.log("setup reload handler"),document.getElementById("plot").on("plotly_relayout",v),[].slice.call(document.querySelectorAll(".toast")).map((function(n){return new bootstrap.Toast(n,{delay:1e4})})).forEach((n=>n.show()))}))})()})(); \ No newline at end of file + */n=r.nmd(n),function(){var i,u="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,f=32,l=64,s=128,h=256,p=1/0,v=9007199254740991,d=NaN,_=4294967295,g=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",f],["partialRight",l],["rearg",h]],y="[object Arguments]",m="[object Array]",w="[object Boolean]",b="[object Date]",x="[object Error]",I="[object Function]",j="[object GeneratorFunction]",A="[object Map]",E="[object Number]",k="[object Object]",O="[object Promise]",B="[object RegExp]",S="[object Set]",R="[object String]",z="[object Symbol]",D="[object WeakMap]",C="[object ArrayBuffer]",F="[object DataView]",L="[object Float32Array]",T="[object Float64Array]",N="[object Int8Array]",W="[object Int16Array]",U="[object Int32Array]",$="[object Uint8Array]",M="[object Uint8ClampedArray]",P="[object Uint16Array]",q="[object Uint32Array]",Z=/\b__p \+= '';/g,J=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,V=RegExp(Y.source),H=RegExp(G.source),X=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),an=/^\s+/,cn=/\s/,fn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,dn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_n=/\w*$/,gn=/^[-+]0x[0-9a-f]+$/i,yn=/^0b[01]+$/i,mn=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,bn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,In=/($^)/,jn=/['\n\r\u2028\u2029\\]/g,An="\\ud800-\\udfff",En="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kn="\\u2700-\\u27bf",On="a-z\\xdf-\\xf6\\xf8-\\xff",Bn="A-Z\\xc0-\\xd6\\xd8-\\xde",Sn="\\ufe0e\\ufe0f",Rn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zn="['’]",Dn="["+An+"]",Cn="["+Rn+"]",Fn="["+En+"]",Ln="\\d+",Tn="["+kn+"]",Nn="["+On+"]",Wn="[^"+An+Rn+Ln+kn+On+Bn+"]",Un="\\ud83c[\\udffb-\\udfff]",$n="[^"+An+"]",Mn="(?:\\ud83c[\\udde6-\\uddff]){2}",Pn="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+Bn+"]",Zn="\\u200d",Jn="(?:"+Nn+"|"+Wn+")",Kn="(?:"+qn+"|"+Wn+")",Yn="(?:['’](?:d|ll|m|re|s|t|ve))?",Gn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Vn="(?:"+Fn+"|"+Un+")"+"?",Hn="["+Sn+"]?",Xn=Hn+Vn+("(?:"+Zn+"(?:"+[$n,Mn,Pn].join("|")+")"+Hn+Vn+")*"),Qn="(?:"+[Tn,Mn,Pn].join("|")+")"+Xn,nt="(?:"+[$n+Fn+"?",Fn,Mn,Pn,Dn].join("|")+")",tt=RegExp(zn,"g"),rt=RegExp(Fn,"g"),et=RegExp(Un+"(?="+Un+")|"+nt+Xn,"g"),it=RegExp([qn+"?"+Nn+"+"+Yn+"(?="+[Cn,qn,"$"].join("|")+")",Kn+"+"+Gn+"(?="+[Cn,qn+Jn,"$"].join("|")+")",qn+"?"+Jn+"+"+Yn,qn+"+"+Gn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ln,Qn].join("|"),"g"),ut=RegExp("["+Zn+An+En+Sn+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ct=-1,ft={};ft[L]=ft[T]=ft[N]=ft[W]=ft[U]=ft[$]=ft[M]=ft[P]=ft[q]=!0,ft[y]=ft[m]=ft[C]=ft[w]=ft[F]=ft[b]=ft[x]=ft[I]=ft[A]=ft[E]=ft[k]=ft[B]=ft[S]=ft[R]=ft[D]=!1;var lt={};lt[y]=lt[m]=lt[C]=lt[F]=lt[w]=lt[b]=lt[L]=lt[T]=lt[N]=lt[W]=lt[U]=lt[A]=lt[E]=lt[k]=lt[B]=lt[S]=lt[R]=lt[z]=lt[$]=lt[M]=lt[P]=lt[q]=!0,lt[x]=lt[I]=lt[D]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,vt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,dt="object"==typeof self&&self&&self.Object===Object&&self,_t=vt||dt||Function("return this")(),gt=t&&!t.nodeType&&t,yt=gt&&n&&!n.nodeType&&n,mt=yt&&yt.exports===gt,wt=mt&&vt.process,bt=function(){try{var n=yt&&yt.require&&yt.require("util").types;return n||wt&&wt.binding&&wt.binding("util")}catch(n){}}(),xt=bt&&bt.isArrayBuffer,It=bt&&bt.isDate,jt=bt&&bt.isMap,At=bt&&bt.isRegExp,Et=bt&&bt.isSet,kt=bt&&bt.isTypedArray;function Ot(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function Bt(n,t,r,e){for(var i=-1,u=null==n?0:n.length;++i-1}function Ft(n,t,r){for(var e=-1,i=null==n?0:n.length;++e-1;);return r}function ir(n,t){for(var r=n.length;r--&&qt(t,n[r],0)>-1;);return r}var ur=Gt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),or=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ar(n){return"\\"+st[n]}function cr(n){return ut.test(n)}function fr(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function lr(n,t){return function(r){return n(t(r))}}function sr(n,t){for(var r=-1,e=n.length,i=0,u=[];++r",""":'"',"'":"'"});var yr=function n(t){var r,e=(t=null==t?_t:yr.defaults(_t.Object(),t,yr.pick(_t,at))).Array,cn=t.Date,An=t.Error,En=t.Function,kn=t.Math,On=t.Object,Bn=t.RegExp,Sn=t.String,Rn=t.TypeError,zn=e.prototype,Dn=En.prototype,Cn=On.prototype,Fn=t["__core-js_shared__"],Ln=Dn.toString,Tn=Cn.hasOwnProperty,Nn=0,Wn=(r=/[^.]+$/.exec(Fn&&Fn.keys&&Fn.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Un=Cn.toString,$n=Ln.call(On),Mn=_t._,Pn=Bn("^"+Ln.call(Tn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=mt?t.Buffer:i,Zn=t.Symbol,Jn=t.Uint8Array,Kn=qn?qn.allocUnsafe:i,Yn=lr(On.getPrototypeOf,On),Gn=On.create,Vn=Cn.propertyIsEnumerable,Hn=zn.splice,Xn=Zn?Zn.isConcatSpreadable:i,Qn=Zn?Zn.iterator:i,nt=Zn?Zn.toStringTag:i,et=function(){try{var n=hu(On,"defineProperty");return n({},"",{}),n}catch(n){}}(),ut=t.clearTimeout!==_t.clearTimeout&&t.clearTimeout,st=cn&&cn.now!==_t.Date.now&&cn.now,vt=t.setTimeout!==_t.setTimeout&&t.setTimeout,dt=kn.ceil,gt=kn.floor,yt=On.getOwnPropertySymbols,wt=qn?qn.isBuffer:i,bt=t.isFinite,$t=zn.join,Gt=lr(On.keys,On),mr=kn.max,wr=kn.min,br=cn.now,xr=t.parseInt,Ir=kn.random,jr=zn.reverse,Ar=hu(t,"DataView"),Er=hu(t,"Map"),kr=hu(t,"Promise"),Or=hu(t,"Set"),Br=hu(t,"WeakMap"),Sr=hu(On,"create"),Rr=Br&&new Br,zr={},Dr=Nu(Ar),Cr=Nu(Er),Fr=Nu(kr),Lr=Nu(Or),Tr=Nu(Br),Nr=Zn?Zn.prototype:i,Wr=Nr?Nr.valueOf:i,Ur=Nr?Nr.toString:i;function $r(n){if(ra(n)&&!Zo(n)&&!(n instanceof Zr)){if(n instanceof qr)return n;if(Tn.call(n,"__wrapped__"))return Wu(n)}return new qr(n)}var Mr=function(){function n(){}return function(t){if(!ta(t))return{};if(Gn)return Gn(t);n.prototype=t;var r=new n;return n.prototype=i,r}}();function Pr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Zr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=_,this.__views__=[]}function Jr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function fe(n,t,r,e,u,o){var a,c=1&t,f=2&t,l=4&t;if(r&&(a=u?r(n,e,u,o):r(n)),a!==i)return a;if(!ta(n))return n;var s=Zo(n);if(s){if(a=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Tn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!c)return Si(n,a)}else{var h=du(n),p=h==I||h==j;if(Go(n))return ji(n,c);if(h==k||h==y||p&&!u){if(a=f||p?{}:gu(n),!c)return f?function(n,t){return Ri(n,vu(n),t)}(n,function(n,t){return n&&Ri(t,Da(t),n)}(a,n)):function(n,t){return Ri(n,pu(n),t)}(n,ue(a,n))}else{if(!lt[h])return u?n:{};a=function(n,t,r){var e=n.constructor;switch(t){case C:return Ai(n);case w:case b:return new e(+n);case F:return function(n,t){var r=t?Ai(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case L:case T:case N:case W:case U:case $:case M:case P:case q:return Ei(n,r);case A:return new e;case E:case R:return new e(n);case B:return function(n){var t=new n.constructor(n.source,_n.exec(n));return t.lastIndex=n.lastIndex,t}(n);case S:return new e;case z:return i=n,Wr?On(Wr.call(i)):{}}var i}(n,h,c)}}o||(o=new Vr);var v=o.get(n);if(v)return v;o.set(n,a),aa(n)?n.forEach((function(e){a.add(fe(e,t,r,e,n,o))})):ea(n)&&n.forEach((function(e,i){a.set(i,fe(e,t,r,i,n,o))}));var d=s?i:(l?f?uu:iu:f?Da:za)(n);return St(d||n,(function(e,i){d&&(e=n[i=e]),re(a,i,fe(e,t,r,i,n,o))})),a}function le(n,t,r){var e=r.length;if(null==n)return!e;for(n=On(n);e--;){var u=r[e],o=t[u],a=n[u];if(a===i&&!(u in n)||!o(a))return!1}return!0}function se(n,t,r){if("function"!=typeof n)throw new Rn(u);return Ru((function(){n.apply(i,r)}),t)}function he(n,t,r,e){var i=-1,u=Ct,o=!0,a=n.length,c=[],f=t.length;if(!a)return c;r&&(t=Lt(t,nr(r))),e?(u=Ft,o=!1):t.length>=200&&(u=rr,o=!1,t=new Gr(t));n:for(;++i-1},Kr.prototype.set=function(n,t){var r=this.__data__,e=ee(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Yr.prototype.clear=function(){this.size=0,this.__data__={hash:new Jr,map:new(Er||Kr),string:new Jr}},Yr.prototype.delete=function(n){var t=lu(this,n).delete(n);return this.size-=t?1:0,t},Yr.prototype.get=function(n){return lu(this,n).get(n)},Yr.prototype.has=function(n){return lu(this,n).has(n)},Yr.prototype.set=function(n,t){var r=lu(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Gr.prototype.add=Gr.prototype.push=function(n){return this.__data__.set(n,o),this},Gr.prototype.has=function(n){return this.__data__.has(n)},Vr.prototype.clear=function(){this.__data__=new Kr,this.size=0},Vr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Vr.prototype.get=function(n){return this.__data__.get(n)},Vr.prototype.has=function(n){return this.__data__.has(n)},Vr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Kr){var e=r.__data__;if(!Er||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Yr(e)}return r.set(n,t),this.size=r.size,this};var pe=Ci(be),ve=Ci(xe,!0);function de(n,t){var r=!0;return pe(n,(function(n,e,i){return r=!!t(n,e,i)})),r}function _e(n,t,r){for(var e=-1,u=n.length;++e0&&r(a)?t>1?ye(a,t-1,r,e,i):Tt(i,a):e||(i[i.length]=a)}return i}var me=Fi(),we=Fi(!0);function be(n,t){return n&&me(n,t,za)}function xe(n,t){return n&&we(n,t,za)}function Ie(n,t){return Dt(t,(function(t){return Xo(n[t])}))}function je(n,t){for(var r=0,e=(t=wi(t,n)).length;null!=n&&rt}function Oe(n,t){return null!=n&&Tn.call(n,t)}function Be(n,t){return null!=n&&t in On(n)}function Se(n,t,r){for(var u=r?Ft:Ct,o=n[0].length,a=n.length,c=a,f=e(a),l=1/0,s=[];c--;){var h=n[c];c&&t&&(h=Lt(h,nr(t))),l=wr(h.length,l),f[c]=!r&&(t||o>=120&&h.length>=120)?new Gr(c&&h):i}h=n[0];var p=-1,v=f[0];n:for(;++p=a?c:c*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Je(n,t,r){for(var e=-1,i=t.length,u={};++e-1;)a!==n&&Hn.call(a,c,1),Hn.call(n,c,1);return n}function Ye(n,t){for(var r=n?t.length:0,e=r-1;r--;){var i=t[r];if(r==e||i!==u){var u=i;mu(i)?Hn.call(n,i,1):hi(n,i)}}return n}function Ge(n,t){return n+gt(Ir()*(t-n+1))}function Ve(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=gt(t/2))&&(n+=n)}while(t);return r}function He(n,t){return zu(ku(n,t,ic),n+"")}function Xe(n){return Xr($a(n))}function Qe(n,t){var r=$a(n);return Fu(r,ce(t,0,r.length))}function ni(n,t,r,e){if(!ta(n))return n;for(var u=-1,o=(t=wi(t,n)).length,a=o-1,c=n;null!=c&&++uu?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var o=e(u);++i>>1,o=n[u];null!==o&&!fa(o)&&(r?o<=t:o=200){var f=t?null:Vi(n);if(f)return hr(f);o=!1,i=rr,c=new Gr}else c=t?[]:a;n:for(;++e=e?n:ii(n,t,r)}var Ii=ut||function(n){return _t.clearTimeout(n)};function ji(n,t){if(t)return n.slice();var r=n.length,e=Kn?Kn(r):new n.constructor(r);return n.copy(e),e}function Ai(n){var t=new n.constructor(n.byteLength);return new Jn(t).set(new Jn(n)),t}function Ei(n,t){var r=t?Ai(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function ki(n,t){if(n!==t){var r=n!==i,e=null===n,u=n==n,o=fa(n),a=t!==i,c=null===t,f=t==t,l=fa(t);if(!c&&!l&&!o&&n>t||o&&a&&f&&!c&&!l||e&&a&&f||!r&&f||!u)return 1;if(!e&&!o&&!l&&n1?r[u-1]:i,a=u>2?r[2]:i;for(o=n.length>3&&"function"==typeof o?(u--,o):i,a&&wu(r[0],r[1],a)&&(o=u<3?i:o,u=1),t=On(t);++e-1?u[o?t[a]:a]:i}}function Ui(n){return eu((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var a=t[e];if("function"!=typeof a)throw new Rn(u);if(o&&!c&&"wrapper"==au(a))var c=new qr([],!0)}for(e=c?e:r;++e1&&w.reverse(),p&&lc))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Gr:i;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(fn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return St(g,(function(r){var e="_."+r[0];t&r[1]&&!Ct(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Cu(n){var t=0,r=0;return function(){var e=br(),u=16-(e-r);if(r=e,u>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(i,arguments)}}function Fu(n,t){var r=-1,e=n.length,u=e-1;for(t=t===i?e:t;++r1?n[t-1]:i;return r="function"==typeof r?(n.pop(),r):i,uo(n,r)}));function ho(n){var t=$r(n);return t.__chain__=!0,t}function po(n,t){return t(n)}var vo=eu((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,u=function(t){return ae(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Zr&&mu(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:po,args:[u],thisArg:i}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(i),n}))):this.thru(u)}));var _o=zi((function(n,t,r){Tn.call(n,r)?++n[r]:oe(n,r,1)}));var go=Wi(Pu),yo=Wi(qu);function mo(n,t){return(Zo(n)?St:pe)(n,fu(t,3))}function wo(n,t){return(Zo(n)?Rt:ve)(n,fu(t,3))}var bo=zi((function(n,t,r){Tn.call(n,r)?n[r].push(t):oe(n,r,[t])}));var xo=He((function(n,t,r){var i=-1,u="function"==typeof t,o=Ko(n)?e(n.length):[];return pe(n,(function(n){o[++i]=u?Ot(t,n,r):Re(n,t,r)})),o})),Io=zi((function(n,t,r){oe(n,r,t)}));function jo(n,t){return(Zo(n)?Lt:Ue)(n,fu(t,3))}var Ao=zi((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var Eo=He((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wu(n,t[0],t[1])?t=[]:r>2&&wu(t[0],t[1],t[2])&&(t=[t[0]]),Ze(n,ye(t,1),[])})),ko=st||function(){return _t.Date.now()};function Oo(n,t,r){return t=r?i:t,t=n&&null==t?n.length:t,Xi(n,s,i,i,i,i,t)}function Bo(n,t){var r;if("function"!=typeof t)throw new Rn(u);return n=da(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=i),r}}var So=He((function(n,t,r){var e=1;if(r.length){var i=sr(r,cu(So));e|=f}return Xi(n,e,t,r,i)})),Ro=He((function(n,t,r){var e=3;if(r.length){var i=sr(r,cu(Ro));e|=f}return Xi(t,e,n,r,i)}));function zo(n,t,r){var e,o,a,c,f,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new Rn(u);function d(t){var r=e,u=o;return e=o=i,s=t,c=n.apply(u,r)}function _(n){var r=n-l;return l===i||r>=t||r<0||p&&n-s>=a}function g(){var n=ko();if(_(n))return y(n);f=Ru(g,function(n){var r=t-(n-l);return p?wr(r,a-(n-s)):r}(n))}function y(n){return f=i,v&&e?d(n):(e=o=i,c)}function m(){var n=ko(),r=_(n);if(e=arguments,o=this,l=n,r){if(f===i)return function(n){return s=n,f=Ru(g,t),h?d(n):c}(l);if(p)return Ii(f),f=Ru(g,t),d(l)}return f===i&&(f=Ru(g,t)),c}return t=ga(t)||0,ta(r)&&(h=!!r.leading,a=(p="maxWait"in r)?mr(ga(r.maxWait)||0,t):a,v="trailing"in r?!!r.trailing:v),m.cancel=function(){f!==i&&Ii(f),s=0,e=l=o=f=i},m.flush=function(){return f===i?c:y(ko())},m}var Do=He((function(n,t){return se(n,1,t)})),Co=He((function(n,t,r){return se(n,ga(t)||0,r)}));function Fo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new Rn(u);var r=function(){var e=arguments,i=t?t.apply(this,e):e[0],u=r.cache;if(u.has(i))return u.get(i);var o=n.apply(this,e);return r.cache=u.set(i,o)||u,o};return r.cache=new(Fo.Cache||Yr),r}function Lo(n){if("function"!=typeof n)throw new Rn(u);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Fo.Cache=Yr;var To=bi((function(n,t){var r=(t=1==t.length&&Zo(t[0])?Lt(t[0],nr(fu())):Lt(ye(t,1),nr(fu()))).length;return He((function(e){for(var i=-1,u=wr(e.length,r);++i=t})),qo=ze(function(){return arguments}())?ze:function(n){return ra(n)&&Tn.call(n,"callee")&&!Vn.call(n,"callee")},Zo=e.isArray,Jo=xt?nr(xt):function(n){return ra(n)&&Ee(n)==C};function Ko(n){return null!=n&&na(n.length)&&!Xo(n)}function Yo(n){return ra(n)&&Ko(n)}var Go=wt||gc,Vo=It?nr(It):function(n){return ra(n)&&Ee(n)==b};function Ho(n){if(!ra(n))return!1;var t=Ee(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!ua(n)}function Xo(n){if(!ta(n))return!1;var t=Ee(n);return t==I||t==j||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(n){return"number"==typeof n&&n==da(n)}function na(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function ta(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function ra(n){return null!=n&&"object"==typeof n}var ea=jt?nr(jt):function(n){return ra(n)&&du(n)==A};function ia(n){return"number"==typeof n||ra(n)&&Ee(n)==E}function ua(n){if(!ra(n)||Ee(n)!=k)return!1;var t=Yn(n);if(null===t)return!0;var r=Tn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ln.call(r)==$n}var oa=At?nr(At):function(n){return ra(n)&&Ee(n)==B};var aa=Et?nr(Et):function(n){return ra(n)&&du(n)==S};function ca(n){return"string"==typeof n||!Zo(n)&&ra(n)&&Ee(n)==R}function fa(n){return"symbol"==typeof n||ra(n)&&Ee(n)==z}var la=kt?nr(kt):function(n){return ra(n)&&na(n.length)&&!!ft[Ee(n)]};var sa=Ki(We),ha=Ki((function(n,t){return n<=t}));function pa(n){if(!n)return[];if(Ko(n))return ca(n)?dr(n):Si(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=du(n);return(t==A?fr:t==S?hr:$a)(n)}function va(n){return n?(n=ga(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function da(n){var t=va(n),r=t%1;return t==t?r?t-r:t:0}function _a(n){return n?ce(da(n),0,_):0}function ga(n){if("number"==typeof n)return n;if(fa(n))return d;if(ta(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=ta(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Qt(n);var r=yn.test(n);return r||wn.test(n)?pt(n.slice(2),r?2:8):gn.test(n)?d:+n}function ya(n){return Ri(n,Da(n))}function ma(n){return null==n?"":li(n)}var wa=Di((function(n,t){if(ju(t)||Ko(t))Ri(t,za(t),n);else for(var r in t)Tn.call(t,r)&&re(n,r,t[r])})),ba=Di((function(n,t){Ri(t,Da(t),n)})),xa=Di((function(n,t,r,e){Ri(t,Da(t),n,e)})),Ia=Di((function(n,t,r,e){Ri(t,za(t),n,e)})),ja=eu(ae);var Aa=He((function(n,t){n=On(n);var r=-1,e=t.length,u=e>2?t[2]:i;for(u&&wu(t[0],t[1],u)&&(e=1);++r1),t})),Ri(n,uu(n),r),e&&(r=fe(r,7,tu));for(var i=t.length;i--;)hi(r,t[i]);return r}));var Ta=eu((function(n,t){return null==n?{}:function(n,t){return Je(n,t,(function(t,r){return Oa(n,r)}))}(n,t)}));function Na(n,t){if(null==n)return{};var r=Lt(uu(n),(function(n){return[n]}));return t=fu(t),Je(n,r,(function(n,r){return t(n,r[0])}))}var Wa=Hi(za),Ua=Hi(Da);function $a(n){return null==n?[]:tr(n,za(n))}var Ma=Ti((function(n,t,r){return t=t.toLowerCase(),n+(r?Pa(t):t)}));function Pa(n){return Ha(ma(n).toLowerCase())}function qa(n){return(n=ma(n))&&n.replace(xn,ur).replace(rt,"")}var Za=Ti((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Ja=Ti((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Ka=Li("toLowerCase");var Ya=Ti((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Ga=Ti((function(n,t,r){return n+(r?" ":"")+Ha(t)}));var Va=Ti((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Ha=Li("toUpperCase");function Xa(n,t,r){return n=ma(n),(t=r?i:t)===i?function(n){return ot.test(n)}(n)?function(n){return n.match(it)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var Qa=He((function(n,t){try{return Ot(n,i,t)}catch(n){return Ho(n)?n:new An(n)}})),nc=eu((function(n,t){return St(t,(function(t){t=Tu(t),oe(n,t,So(n[t],n))})),n}));function tc(n){return function(){return n}}var rc=Ui(),ec=Ui(!0);function ic(n){return n}function uc(n){return Le("function"==typeof n?n:fe(n,1))}var oc=He((function(n,t){return function(r){return Re(r,n,t)}})),ac=He((function(n,t){return function(r){return Re(n,r,t)}}));function cc(n,t,r){var e=za(t),i=Ie(t,e);null!=r||ta(t)&&(i.length||!e.length)||(r=t,t=n,n=this,i=Ie(t,za(t)));var u=!(ta(r)&&"chain"in r&&!r.chain),o=Xo(n);return St(i,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(u||t){var r=n(this.__wrapped__);return(r.__actions__=Si(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Tt([this.value()],arguments))})})),n}function fc(){}var lc=qi(Lt),sc=qi(zt),hc=qi(Ut);function pc(n){return bu(n)?Yt(Tu(n)):function(n){return function(t){return je(t,n)}}(n)}var vc=Ji(),dc=Ji(!0);function _c(){return[]}function gc(){return!1}var yc=Pi((function(n,t){return n+t}),0),mc=Gi("ceil"),wc=Pi((function(n,t){return n/t}),1),bc=Gi("floor");var xc,Ic=Pi((function(n,t){return n*t}),1),jc=Gi("round"),Ac=Pi((function(n,t){return n-t}),0);return $r.after=function(n,t){if("function"!=typeof t)throw new Rn(u);return n=da(n),function(){if(--n<1)return t.apply(this,arguments)}},$r.ary=Oo,$r.assign=wa,$r.assignIn=ba,$r.assignInWith=xa,$r.assignWith=Ia,$r.at=ja,$r.before=Bo,$r.bind=So,$r.bindAll=nc,$r.bindKey=Ro,$r.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Zo(n)?n:[n]},$r.chain=ho,$r.chunk=function(n,t,r){t=(r?wu(n,t,r):t===i)?1:mr(da(t),0);var u=null==n?0:n.length;if(!u||t<1)return[];for(var o=0,a=0,c=e(dt(u/t));ou?0:u+r),(e=e===i||e>u?u:da(e))<0&&(e+=u),e=r>e?0:_a(e);r>>0)?(n=ma(n))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=li(t))&&cr(n)?xi(dr(n),0,r):n.split(t,r):[]},$r.spread=function(n,t){if("function"!=typeof n)throw new Rn(u);return t=null==t?0:mr(da(t),0),He((function(r){var e=r[t],i=xi(r,0,t);return e&&Tt(i,e),Ot(n,this,i)}))},$r.tail=function(n){var t=null==n?0:n.length;return t?ii(n,1,t):[]},$r.take=function(n,t,r){return n&&n.length?ii(n,0,(t=r||t===i?1:da(t))<0?0:t):[]},$r.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?ii(n,(t=e-(t=r||t===i?1:da(t)))<0?0:t,e):[]},$r.takeRightWhile=function(n,t){return n&&n.length?vi(n,fu(t,3),!1,!0):[]},$r.takeWhile=function(n,t){return n&&n.length?vi(n,fu(t,3)):[]},$r.tap=function(n,t){return t(n),n},$r.throttle=function(n,t,r){var e=!0,i=!0;if("function"!=typeof n)throw new Rn(u);return ta(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),zo(n,t,{leading:e,maxWait:t,trailing:i})},$r.thru=po,$r.toArray=pa,$r.toPairs=Wa,$r.toPairsIn=Ua,$r.toPath=function(n){return Zo(n)?Lt(n,Tu):fa(n)?[n]:Si(Lu(ma(n)))},$r.toPlainObject=ya,$r.transform=function(n,t,r){var e=Zo(n),i=e||Go(n)||la(n);if(t=fu(t,4),null==r){var u=n&&n.constructor;r=i?e?new u:[]:ta(n)&&Xo(u)?Mr(Yn(n)):{}}return(i?St:be)(n,(function(n,e,i){return t(r,n,e,i)})),r},$r.unary=function(n){return Oo(n,1)},$r.union=to,$r.unionBy=ro,$r.unionWith=eo,$r.uniq=function(n){return n&&n.length?si(n):[]},$r.uniqBy=function(n,t){return n&&n.length?si(n,fu(t,2)):[]},$r.uniqWith=function(n,t){return t="function"==typeof t?t:i,n&&n.length?si(n,i,t):[]},$r.unset=function(n,t){return null==n||hi(n,t)},$r.unzip=io,$r.unzipWith=uo,$r.update=function(n,t,r){return null==n?n:pi(n,t,mi(r))},$r.updateWith=function(n,t,r,e){return e="function"==typeof e?e:i,null==n?n:pi(n,t,mi(r),e)},$r.values=$a,$r.valuesIn=function(n){return null==n?[]:tr(n,Da(n))},$r.without=oo,$r.words=Xa,$r.wrap=function(n,t){return No(mi(t),n)},$r.xor=ao,$r.xorBy=co,$r.xorWith=fo,$r.zip=lo,$r.zipObject=function(n,t){return gi(n||[],t||[],re)},$r.zipObjectDeep=function(n,t){return gi(n||[],t||[],ni)},$r.zipWith=so,$r.entries=Wa,$r.entriesIn=Ua,$r.extend=ba,$r.extendWith=xa,cc($r,$r),$r.add=yc,$r.attempt=Qa,$r.camelCase=Ma,$r.capitalize=Pa,$r.ceil=mc,$r.clamp=function(n,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=ga(r))==r?r:0),t!==i&&(t=(t=ga(t))==t?t:0),ce(ga(n),t,r)},$r.clone=function(n){return fe(n,4)},$r.cloneDeep=function(n){return fe(n,5)},$r.cloneDeepWith=function(n,t){return fe(n,5,t="function"==typeof t?t:i)},$r.cloneWith=function(n,t){return fe(n,4,t="function"==typeof t?t:i)},$r.conformsTo=function(n,t){return null==t||le(n,t,za(t))},$r.deburr=qa,$r.defaultTo=function(n,t){return null==n||n!=n?t:n},$r.divide=wc,$r.endsWith=function(n,t,r){n=ma(n),t=li(t);var e=n.length,u=r=r===i?e:ce(da(r),0,e);return(r-=t.length)>=0&&n.slice(r,u)==t},$r.eq=$o,$r.escape=function(n){return(n=ma(n))&&H.test(n)?n.replace(G,or):n},$r.escapeRegExp=function(n){return(n=ma(n))&&on.test(n)?n.replace(un,"\\$&"):n},$r.every=function(n,t,r){var e=Zo(n)?zt:de;return r&&wu(n,t,r)&&(t=i),e(n,fu(t,3))},$r.find=go,$r.findIndex=Pu,$r.findKey=function(n,t){return Mt(n,fu(t,3),be)},$r.findLast=yo,$r.findLastIndex=qu,$r.findLastKey=function(n,t){return Mt(n,fu(t,3),xe)},$r.floor=bc,$r.forEach=mo,$r.forEachRight=wo,$r.forIn=function(n,t){return null==n?n:me(n,fu(t,3),Da)},$r.forInRight=function(n,t){return null==n?n:we(n,fu(t,3),Da)},$r.forOwn=function(n,t){return n&&be(n,fu(t,3))},$r.forOwnRight=function(n,t){return n&&xe(n,fu(t,3))},$r.get=ka,$r.gt=Mo,$r.gte=Po,$r.has=function(n,t){return null!=n&&_u(n,t,Oe)},$r.hasIn=Oa,$r.head=Ju,$r.identity=ic,$r.includes=function(n,t,r,e){n=Ko(n)?n:$a(n),r=r&&!e?da(r):0;var i=n.length;return r<0&&(r=mr(i+r,0)),ca(n)?r<=i&&n.indexOf(t,r)>-1:!!i&&qt(n,t,r)>-1},$r.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=null==r?0:da(r);return i<0&&(i=mr(e+i,0)),qt(n,t,i)},$r.inRange=function(n,t,r){return t=va(t),r===i?(r=t,t=0):r=va(r),function(n,t,r){return n>=wr(t,r)&&n=-9007199254740991&&n<=v},$r.isSet=aa,$r.isString=ca,$r.isSymbol=fa,$r.isTypedArray=la,$r.isUndefined=function(n){return n===i},$r.isWeakMap=function(n){return ra(n)&&du(n)==D},$r.isWeakSet=function(n){return ra(n)&&"[object WeakSet]"==Ee(n)},$r.join=function(n,t){return null==n?"":$t.call(n,t)},$r.kebabCase=Za,$r.last=Vu,$r.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e;return r!==i&&(u=(u=da(r))<0?mr(e+u,0):wr(u,e-1)),t==t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,u):Pt(n,Jt,u,!0)},$r.lowerCase=Ja,$r.lowerFirst=Ka,$r.lt=sa,$r.lte=ha,$r.max=function(n){return n&&n.length?_e(n,ic,ke):i},$r.maxBy=function(n,t){return n&&n.length?_e(n,fu(t,2),ke):i},$r.mean=function(n){return Kt(n,ic)},$r.meanBy=function(n,t){return Kt(n,fu(t,2))},$r.min=function(n){return n&&n.length?_e(n,ic,We):i},$r.minBy=function(n,t){return n&&n.length?_e(n,fu(t,2),We):i},$r.stubArray=_c,$r.stubFalse=gc,$r.stubObject=function(){return{}},$r.stubString=function(){return""},$r.stubTrue=function(){return!0},$r.multiply=Ic,$r.nth=function(n,t){return n&&n.length?qe(n,da(t)):i},$r.noConflict=function(){return _t._===this&&(_t._=Mn),this},$r.noop=fc,$r.now=ko,$r.pad=function(n,t,r){n=ma(n);var e=(t=da(t))?vr(n):0;if(!t||e>=t)return n;var i=(t-e)/2;return Zi(gt(i),r)+n+Zi(dt(i),r)},$r.padEnd=function(n,t,r){n=ma(n);var e=(t=da(t))?vr(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var u=Ir();return wr(n+u*(t-n+ht("1e-"+((u+"").length-1))),t)}return Ge(n,t)},$r.reduce=function(n,t,r){var e=Zo(n)?Nt:Vt,i=arguments.length<3;return e(n,fu(t,4),r,i,pe)},$r.reduceRight=function(n,t,r){var e=Zo(n)?Wt:Vt,i=arguments.length<3;return e(n,fu(t,4),r,i,ve)},$r.repeat=function(n,t,r){return t=(r?wu(n,t,r):t===i)?1:da(t),Ve(ma(n),t)},$r.replace=function(){var n=arguments,t=ma(n[0]);return n.length<3?t:t.replace(n[1],n[2])},$r.result=function(n,t,r){var e=-1,u=(t=wi(t,n)).length;for(u||(u=1,n=i);++ev)return[];var r=_,e=wr(n,_);t=fu(t),n-=_;for(var i=Xt(e,t);++r=o)return n;var c=r-vr(e);if(c<1)return e;var f=a?xi(a,0,c).join(""):n.slice(0,c);if(u===i)return f+e;if(a&&(c+=f.length-c),oa(u)){if(n.slice(c).search(u)){var l,s=f;for(u.global||(u=Bn(u.source,ma(_n.exec(u))+"g")),u.lastIndex=0;l=u.exec(s);)var h=l.index;f=f.slice(0,h===i?c:h)}}else if(n.indexOf(li(u),c)!=c){var p=f.lastIndexOf(u);p>-1&&(f=f.slice(0,p))}return f+e},$r.unescape=function(n){return(n=ma(n))&&V.test(n)?n.replace(Y,gr):n},$r.uniqueId=function(n){var t=++Nn;return ma(n)+t},$r.upperCase=Va,$r.upperFirst=Ha,$r.each=mo,$r.eachRight=wo,$r.first=Ju,cc($r,(xc={},be($r,(function(n,t){Tn.call($r.prototype,t)||(xc[t]=n)})),xc),{chain:!1}),$r.VERSION="4.17.21",St(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){$r[n].placeholder=$r})),St(["drop","take"],(function(n,t){Zr.prototype[n]=function(r){r=r===i?1:mr(da(r),0);var e=this.__filtered__&&!t?new Zr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,_),type:n+(e.__dir__<0?"Right":"")}),e},Zr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),St(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Zr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:fu(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),St(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Zr.prototype[n]=function(){return this[r](1).value()[0]}})),St(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Zr.prototype[n]=function(){return this.__filtered__?new Zr(this):this[r](1)}})),Zr.prototype.compact=function(){return this.filter(ic)},Zr.prototype.find=function(n){return this.filter(n).head()},Zr.prototype.findLast=function(n){return this.reverse().find(n)},Zr.prototype.invokeMap=He((function(n,t){return"function"==typeof n?new Zr(this):this.map((function(r){return Re(r,n,t)}))})),Zr.prototype.reject=function(n){return this.filter(Lo(fu(n)))},Zr.prototype.slice=function(n,t){n=da(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Zr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==i&&(r=(t=da(t))<0?r.dropRight(-t):r.take(t-n)),r)},Zr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Zr.prototype.toArray=function(){return this.take(_)},be(Zr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),u=$r[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);u&&($r.prototype[t]=function(){var t=this.__wrapped__,a=e?[1]:arguments,c=t instanceof Zr,f=a[0],l=c||Zo(t),s=function(n){var t=u.apply($r,Tt([n],a));return e&&h?t[0]:t};l&&r&&"function"==typeof f&&1!=f.length&&(c=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,d=c&&!p;if(!o&&l){t=d?t:new Zr(this);var _=n.apply(t,a);return _.__actions__.push({func:po,args:[s],thisArg:i}),new qr(_,h)}return v&&d?n.apply(this,a):(_=this.thru(s),v?e?_.value()[0]:_.value():_)})})),St(["pop","push","shift","sort","splice","unshift"],(function(n){var t=zn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);$r.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var i=this.value();return t.apply(Zo(i)?i:[],n)}return this[r]((function(r){return t.apply(Zo(r)?r:[],n)}))}})),be(Zr.prototype,(function(n,t){var r=$r[t];if(r){var e=r.name+"";Tn.call(zr,e)||(zr[e]=[]),zr[e].push({name:t,func:r})}})),zr[$i(i,2).name]=[{name:"wrapper",func:i}],Zr.prototype.clone=function(){var n=new Zr(this.__wrapped__);return n.__actions__=Si(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Si(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Si(this.__views__),n},Zr.prototype.reverse=function(){if(this.__filtered__){var n=new Zr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Zr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Zo(n),e=t<0,i=r?n.length:0,u=function(n,t,r){var e=-1,i=r.length;for(;++e=this.__values__.length;return{done:n,value:n?i:this.__values__[this.__index__++]}},$r.prototype.plant=function(n){for(var t,r=this;r instanceof Pr;){var e=Wu(r);e.__index__=0,e.__values__=i,t?u.__wrapped__=e:t=e;var u=e;r=r.__wrapped__}return u.__wrapped__=n,t},$r.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Zr){var t=n;return this.__actions__.length&&(t=new Zr(this)),(t=t.reverse()).__actions__.push({func:po,args:[no],thisArg:i}),new qr(t,this.__chain__)}return this.thru(no)},$r.prototype.toJSON=$r.prototype.valueOf=$r.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},$r.prototype.first=$r.prototype.head,Qn&&($r.prototype[Qn]=function(){return this}),$r}();_t._=yr,(e=function(){return yr}.call(t,r,t,n))===i||(n.exports=e)}.call(this)},625:(n,t,r)=>{"use strict";r.d(t,{Fc:()=>l,NO:()=>c,O:()=>s,YD:()=>o,g5:()=>h,gB:()=>u,gf:()=>a});var e=r(486),i=r.n(e);function u(n,t=1){if(Math.abs(n)<1024)return n+" B";const r=["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let e=-1;const i=10**t;do{n/=1024,++e}while(Math.round(Math.abs(n)*i)/i>=1024&&e1?"s":"";let u=`${e}
${t} total
${`${n.n_allocations} allocation${i}`}`;return!1===r&&(u=u.concat(`
Thread ID: ${n.thread_id}`)),u}function c(n,t){return function(n,t){let r=i().cloneDeep(n.children);const e=i().filter(r,(function n(r){return r.children&&r.children.length>0&&(r.children=i().filter(r.children,n)),t(r)}));return i().defaults({children:e},n)}(n,(n=>n.thread_id===t))}function f(n,t){function r(n){let e=[];if(t(n)){e=[];for(const t of n.children)e.push(...r(t));let t=i().clone(n);t.children=e,e=[t]}else for(const t of n.children)e.push(...r(t));return e}let e=[];for(let t of n.children)e.push(...r(t));return i().defaults({children:e},n)}function l(n){return f(n,(n=>n.interesting))}function s(n){return f(n,(n=>!n.import_system))}function h(n){return i().reduce(n,((n,t)=>(n.n_allocations+=t.n_allocations,n.value+=t.value,n)),{n_allocations:0,value:0})}},501:(n,t,r)=>{"use strict";r.d(t,{Cd:()=>f,Ji:()=>d,N4:()=>x,Xx:()=>v,YX:()=>l,Z1:()=>b,bf:()=>g,cW:()=>j,ib:()=>m,sO:()=>w});var e=r(625);const i="filter_uninteresting",u="filter_import_system",o="filter_thread";var a=null;let c=new class{constructor(){this.filters={}}registerFilter(n,t){this.filters[n]=t}unRegisterFilter(n){delete this.filters[n]}drawChart(n){let t=n;_.forOwn(this.filters,(n=>{t=n(t)})),function(n){let t=!a||a.inverted();a&&(a.destroy(),d3.selectAll(".d3-flame-graph-tip").remove());a=flamegraph().width(y()).transitionDuration(250).transitionEase(d3.easeCubic).inverted(t).cellHeight(20).minFrameSize(2).setColorMapper(I).onClick(p).tooltip(d3.tip().attr("class","d3-flame-graph-tip").html((n=>{const t=(0,e.gB)(n.data.value);return(0,e.gf)(n.data,t,merge_threads)})).direction((n=>{const t=(n.x1+n.x0)/2;return.25.25?"w":"n"}))),d3.select("#chart").datum(n).call(a),a.width(y())}(t),a.merge([])}};function f(){return a}function l(){return c}function s(){return location.hash?parseInt(location.hash.substring(1),10):0}function h(){document.getElementById("resetZoomButton").disabled=0==s()}function p(n){n.id!=s()&&(history.pushState({id:n.id},n.data.name,`#${n.id}`),h())}function v(){const n=s(),t=a.findById(n);t&&(a.zoomTo(t),h())}function d(){a.inverted(this===document.getElementById("icicles")),a.resetZoom(),$('[data-toggle="tooltip"]').tooltip("hide")}function g(){a.resetZoom()}function y(){return document.getElementById("chart").clientWidth}function m(){c.drawChart(data),location.hash&&v()}function w(){const n=this.dataset.thread;"-0x1"===n?c.unRegisterFilter(o):c.registerFilter(o,(t=>{let r=(0,e.NO)(t,n);const i=(0,e.g5)(r.children);return _.defaults(i,r),r.n_allocations=i.n_allocations,r.value=i.value,r})),c.drawChart(data)}function b(){void 0===this.hideUninterestingFrames&&(this.hideUninterestingFrames=!0),!0===this.hideUninterestingFrames?(this.hideUninterestingFrames=!0,c.registerFilter(i,(n=>(0,e.Fc)(n)))):c.unRegisterFilter(i),this.hideUninterestingFrames=!this.hideUninterestingFrames,c.drawChart(data)}function x(){void 0===this.hideImportSystemFrames&&(this.hideImportSystemFrames=!0),!0===this.hideImportSystemFrames?(this.hideImportSystemFrames=!0,inverted?(data=invertedNoImportsData,temporal&&(hideImports=!0,intervals=invertedNoImportsIntervals)):c.registerFilter(u,(n=>(0,e.O)(n)))):(c.unRegisterFilter(u),data=flamegraphData,temporal&&(hideImports=!1,intervals=flamegraphIntervals)),this.hideImportSystemFrames=!this.hideImportSystemFrames,c.drawChart(data)}function I(n,t){return n.highlight?"orange":n.data.name&&n.data.location?(e=n.data.location[1],"py"==(r=void 0===e?e:e.substring(e.lastIndexOf(".")+1,e.length)||e)?d3.schemePastel1[2]:"c"==r||"cpp"==r||"h"==r?d3.schemePastel1[5]:d3.schemePastel1[8]):"#EEE";var r,e}function j(n,t){if(!0===t)return;const r=n.unique_threads;if(!r||r.length<=1)return;document.getElementById("threadsDropdown").removeAttribute("hidden");const e=document.getElementById("threadsDropdownList");for(const n of r){let t=document.createElement("a");t.className="dropdown-item",t.dataset.thread=n,t.text=n,t.onclick=w,e.appendChild(t)}}}},t={};function r(e){var i=t[e];if(void 0!==i)return i.exports;var u=t[e]={id:e,loaded:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.loaded=!0,u.exports}r.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return r.d(t,{a:t}),t},r.d=(n,t)=>{for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),r.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),r.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),(()=>{"use strict";var n=r(625),t=r(501),e=null,i=null,u=a(packed_data.nodes),o=inverted?a(packed_data.inverted_no_imports_nodes):null;function a(n){let t=new Array(n.children.length);console.log("finding parent index for each node");for(const[r,e]of n.children.entries())e.forEach((n=>t[n]=r));return console.assert(void 0===t[0],"root node has a parent"),t}function c(n,t){console.log("constructing nodes");const r=t.name.map(((r,e)=>({name:n[t.name[e]],location:[n[t.function[e]],n[t.filename[e]],t.lineno[e]],value:0,children:t.children[e],n_allocations:0,thread_id:n[t.thread_id[e]],interesting:0!==t.interesting[e],import_system:0!==t.import_system[e]})));console.log("mapping child indices to child nodes");for(const[n,t]of r.entries())t.children=t.children.map((n=>r[n]));return r}function f(n,t,r,e){n.forEach((n=>{let[i,u,o,a,c]=n;if(i<=r&&(null===u||u>r))for(;void 0!==o;)t[o].n_allocations+=a,t[o].value+=c,o=e[o]}))}function l(n,t,r,e,i){n.forEach((n=>{let[u,o,a,c,f]=n;if(u>=r&&u<=e&&(null===o||o>e))for(;void 0!==a;)t[a].n_allocations+=c,t[a].value+=f,a=i[a]}))}function s(n,t,r){const{flamegraphNodeObjects:e,invertedNoImportsNodeObjects:i}=function(n){const{strings:t,nodes:r,inverted_no_imports_nodes:e,unique_threads:i,intervals:u,no_imports_interval_list:o}=n,a=c(t,r),f=inverted?c(t,e):null;return flamegraphIntervals=u,invertedNoImportsIntervals=o,{flamegraphNodeObjects:a,invertedNoImportsNodeObjects:f}}(n),a=n.high_water_mark_by_snapshot;if(a){console.log("finding highest high water mark in range");let n=t,c=a[t];for(let e=t;e<=r;++e)a[e]>c&&(c=a[e],n=e);console.log("highest water mark between "+t+" and "+r+" is "+c+" at "+n);let l,s,h={shapes:[]};n==memory_records.length?(h["xaxis.range[1]"]=new Date(memory_records.at(-1)[0]+10),l=new Date(memory_records.at(-1)[0]),s=new Date(memory_records.at(-1)[0]+10)):0==n?(h["xaxis.range[0]"]=new Date(memory_records[0][0]-10),l=new Date(memory_records[0][0]-10),s=new Date(memory_records[0][0])):(l=new Date(memory_records[n-1][0]),s=new Date(memory_records[n][0])),h.shapes=[{type:"rect",xref:"x",yref:"paper",x0:l,y0:0,x1:s,y1:1,fillcolor:"#fbff00",opacity:.2,line:{width:0}}],Plotly.relayout("plot",h),console.log("finding hwm allocations"),f(flamegraphIntervals,e,n,u),inverted&&f(invertedNoImportsIntervals,i,n,o)}else console.log("finding leaked allocations"),l(flamegraphIntervals,e,t,r,u),inverted&&l(invertedNoImportsIntervals,i,t,r,o);e.forEach((n=>{n.children=n.children.filter((n=>n.n_allocations>0))})),inverted&&i.forEach((n=>{n.children=n.children.filter((n=>n.n_allocations>0))})),flamegraphData=e[0],invertedNoImportsData=inverted?i[0]:null}function h(n){console.log("refreshing flame graph!");let r=function(n){console.log("getRangeData");let t={};if(n.hasOwnProperty("xaxis.range[0]"))t={string1:n["xaxis.range[0]"],string2:n["xaxis.range[1]"]};else if(n.hasOwnProperty("xaxis.range"))t={string1:n["xaxis.range"][0],string2:n["xaxis.range"][1]};else{if(null===e)return;{let n=e.layout.xaxis.range;t={string1:n[0],string2:n[1]}}}return t}(n);if(console.log("range data: "+JSON.stringify(r)),null!=i&&JSON.stringify(r)===JSON.stringify(i))return;console.log("showing loading animation"),console.log("showLoadingAnimation"),document.getElementById("loading").style.display="block",document.getElementById("overlay").style.display="block",i=r,console.log("finding range of relevant snapshot");let u=0,o=memory_records.length;if(r){const n=new Date(r.string1).getTime(),t=memory_records.findIndex((t=>t[0]>=n));-1!=t&&(u=t);const e=new Date(r.string2).getTime(),i=memory_records.findIndex((n=>n[0]>e));-1!=i&&(o=i)}console.log("start index is "+u),console.log("end index is "+o),console.log("first possible index is 0"),console.log("last possible index is "+memory_records.length),console.log("constructing tree"),s(packed_data,u,o),data=inverted&&hideImports?invertedNoImportsData:flamegraphData,intervals=inverted&&hideImports?invertedNoImportsIntervals:flamegraphIntervals,console.log("total allocations in range: "+data.n_allocations),console.log("total bytes in range: "+data.value),console.log("drawing chart"),(0,t.YX)().drawChart(data),console.log("hiding loading animation"),console.log("hideLoadingAnimation"),document.getElementById("loading").style.display="none",document.getElementById("overlay").style.display="none"}var p=null;function v(n){console.log("refreshFlamegraphDebounced"),p&&clearTimeout(p),p=setTimeout((function(){h(n)}),500)}document.addEventListener("DOMContentLoaded",(function(){console.log("main");const r=packed_data.unique_threads.map((n=>packed_data.strings[n]));(0,t.cW)({unique_threads:r},merge_threads),function(n){console.log("init memory graph");const t=n.map((n=>new Date(n[0]))),r=n.map((n=>n[1])),i=n.map((n=>n[2])),u=n.length>1?"lines":"markers";var o=[{x:t,y:r,mode:u,name:"Resident size"},{x:t,y:i,mode:u,name:"Heap size"}];Plotly.newPlot("plot",o,{xaxis:{title:{text:"Time"},rangeslider:{visible:!0}},yaxis:{title:{text:"Memory Size"},tickformat:".4~s",exponentformat:"B",ticksuffix:"B"}},{responsive:!0,displayModeBar:!1}).then((n=>{console.assert(null===e),e=n}))}(memory_records),h({}),location.hash&&(0,t.Xx)(),document.getElementById("icicles").onchange=t.Ji,document.getElementById("flames").onchange=t.Ji,document.getElementById("resetZoomButton").onclick=t.bf,document.getElementById("resetThreadFilterItem").onclick=t.sO,document.getElementById("hideUninteresting").onclick=t.Z1.bind(this),document.getElementById("hideImportSystem").onclick=t.N4.bind(this),t.Z1.bind(this)(),document.onkeyup=n=>{"Escape"==n.code&&(0,t.bf)()},document.getElementById("searchTerm").addEventListener("input",(()=>{const n=document.getElementById("searchTerm");(0,t.Cd)().search(n.value)})),window.addEventListener("popstate",t.Xx),window.addEventListener("resize",(0,n.YD)(t.ib)),$('[data-toggle-second="tooltip"]').tooltip(),$('[data-toggle="tooltip"]').tooltip(),console.log("setup reload handler"),document.getElementById("plot").on("plotly_relayout",v),[].slice.call(document.querySelectorAll(".toast")).map((function(n){return new bootstrap.Toast(n,{delay:1e4})})).forEach((n=>n.show()))}))})()})(); \ No newline at end of file