From 5f06c0108c4c9ba697a266521f1aff652b89c35d Mon Sep 17 00:00:00 2001 From: Matt Wozniski Date: Fri, 8 Sep 2023 11:30:16 -0400 Subject: [PATCH] Rename flamegraph "Invert" button We've adding a `--inverted` mode to `memray flamegraph` causing stacks to be added to the flame graph in reverse order, so that the children of the root are functions that performed allocations and the leaves are thread entry points. Because of this change, we need a different name for the "Invert" button that flips the entire flame graph upside down. This commit introduces a new toggle button for switching between our default "icicle graph" view (with the root at the top and allocations dangling from it) and the traditional "flame graph" view (with the root at the bottom and allocations rising up from it). The toggle button also gives a visual indication of what mode you're in. --- docs/_static/images/invert_button.png | Bin 1398 -> 0 bytes docs/flamegraph.rst | 29 ++++++++++-------- src/memray/reporters/assets/flamegraph.js | 3 +- .../reporters/assets/flamegraph_common.js | 2 +- .../reporters/assets/temporal_flamegraph.js | 3 +- .../reporters/templates/assets/flamegraph.css | 8 +++++ .../reporters/templates/assets/flamegraph.js | 2 +- .../templates/assets/temporal_flamegraph.js | 2 +- .../reporters/templates/flamegraph.html | 23 +++++++++++++- 9 files changed, 54 insertions(+), 18 deletions(-) delete mode 100644 docs/_static/images/invert_button.png diff --git a/docs/_static/images/invert_button.png b/docs/_static/images/invert_button.png deleted file mode 100644 index 688762c9781456d3b5e7ea816740f9af1cb55221..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1398 zcmZWpdo6KnNrT;I+tJBs@Nl>`SC9 z3D+9~fQUHS+!Pm)HPQ-IeSz#nOF#wzC7g14|x%`o~)OH*2j@<_RiFiXI86@(mCWI9V?e0(+(R|p&{91-4c`Y!YIv@2&b)BGt4P|C1*T5 zY9VSYe?6jSyEA{KYxA^Z6Kz%r71!9)CxO~hhB})R;`XIuM9i(_4*o}iyZq*YmmB=p zq{{MKtugMim16SX6eVM5?u&1~g(`DVpme>Xk!3_smKuze!Pf|sp=%f?%?B>}x zq*-f4@KwZI)p_hS&F0?GMVz5WgFtGm?YC-W1b=nm=#KmCv;miM!BqsOuws6R_h=2)hh@<6g>Hem^7DF<9NzcVjh~HYA3F z$pKG}A3xSzNGvwYGyYm6#_d6;}z5kN2>e*Z4v-#!H5J)QWNlmoV*TAp+!M7JJ1AKQ|WQSoVEeuSf( z&?LUIJ>8)BW(Px= zAp_lPYw7VK+}ZHnX4aUMUEZDEp1WqxWGL=hJ;va+?j;gGn%6%0E@Xa?dskRQEPRtO zz3+9@E&`ByK+wNt*d9ORE@;RvcL}5nKV~pQa=NDePFp`zK%>@8AvsGvRarcq380{u zQ(RvDwL|^ct%U+(t>ntT`gGxXE8qD#!$p|jZxjoTe31qW0wp zyqyuU4{2RXWyfPDp}bGQ*^0r#rhe%9G9#@VQ * 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,g=4294967295,d=[["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]",j="[object Function]",A="[object GeneratorFunction]",I="[object Map]",k="[object Number]",E="[object Object]",O="[object Promise]",B="[object RegExp]",z="[object Set]",R="[object String]",S="[object Symbol]",C="[object WeakMap]",F="[object ArrayBuffer]",L="[object DataView]",U="[object Float32Array]",W="[object Float64Array]",T="[object Int8Array]",D="[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,Y=/[&<>"']/g,H=RegExp(V.source),J=RegExp(Y.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,gn=/\w*$/,dn=/^[-+]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,jn=/($^)/,An=/['\n\r\u2028\u2029\\]/g,In="\\ud800-\\udfff",kn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",En="\\u2700-\\u27bf",On="a-z\\xdf-\\xf6\\xf8-\\xff",Bn="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="["+In+"]",Fn="["+Rn+"]",Ln="["+kn+"]",Un="\\d+",Wn="["+En+"]",Tn="["+On+"]",Dn="[^"+In+Rn+Un+En+On+Bn+"]",$n="\\ud83c[\\udffb-\\udfff]",Mn="[^"+In+"]",Pn="(?:\\ud83c[\\udde6-\\uddff]){2}",Nn="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+Bn+"]",Zn="\\u200d",Gn="(?:"+Tn+"|"+Dn+")",Kn="(?:"+qn+"|"+Dn+")",Vn="(?:['’](?:d|ll|m|re|s|t|ve))?",Yn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Hn="(?:"+Ln+"|"+$n+")"+"?",Jn="["+zn+"]?",Xn=Jn+Hn+("(?:"+Zn+"(?:"+[Mn,Pn,Nn].join("|")+")"+Jn+Hn+")*"),Qn="(?:"+[Wn,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+"?"+Tn+"+"+Vn+"(?="+[Fn,qn,"$"].join("|")+")",Kn+"+"+Yn+"(?="+[Fn,qn+Gn,"$"].join("|")+")",qn+"?"+Gn+"+"+Vn,qn+"+"+Yn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Un,Qn].join("|"),"g"),it=RegExp("["+Zn+In+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 ]/,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[U]=ct[W]=ct[T]=ct[D]=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[j]=ct[I]=ct[k]=ct[E]=ct[B]=ct[z]=ct[R]=ct[C]=!1;var lt={};lt[y]=lt[m]=lt[F]=lt[L]=lt[w]=lt[b]=lt[U]=lt[W]=lt[T]=lt[D]=lt[$]=lt[I]=lt[k]=lt[E]=lt[B]=lt[z]=lt[R]=lt[S]=lt[M]=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,mt=yt&&yt.exports===dt,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,jt=bt&&bt.isDate,At=bt&&bt.isMap,It=bt&&bt.isRegExp,kt=bt&&bt.isSet,Et=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 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=Yt({À:"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=Yt({"&":"&","<":"<",">":">",'"':""","'":"'"});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?gt:yr.defaults(gt.Object(),t,yr.pick(gt,at))).Array,fn=t.Date,In=t.Error,kn=t.Function,En=t.Math,On=t.Object,Bn=t.RegExp,zn=t.String,Rn=t.TypeError,Sn=e.prototype,Cn=kn.prototype,Fn=On.prototype,Ln=t["__core-js_shared__"],Un=Cn.toString,Wn=Fn.hasOwnProperty,Tn=0,Dn=(r=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",$n=Fn.toString,Mn=Un.call(On),Pn=gt._,Nn=Bn("^"+Un.call(Wn).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(On.getPrototypeOf,On),Yn=On.create,Hn=Fn.propertyIsEnumerable,Jn=Sn.splice,Xn=Zn?Zn.isConcatSpreadable:u,Qn=Zn?Zn.iterator:u,nt=Zn?Zn.toStringTag:u,et=function(){try{var n=hi(On,"defineProperty");return n({},"",{}),n}catch(n){}}(),it=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,st=fn&&fn.now!==gt.Date.now&&fn.now,vt=t.setTimeout!==gt.setTimeout&&t.setTimeout,_t=En.ceil,dt=En.floor,yt=On.getOwnPropertySymbols,wt=qn?qn.isBuffer:u,bt=t.isFinite,Mt=Sn.join,Yt=lr(On.keys,On),mr=En.max,wr=En.min,br=fn.now,xr=t.parseInt,jr=En.random,Ar=Sn.reverse,Ir=hi(t,"DataView"),kr=hi(t,"Map"),Er=hi(t,"Promise"),Or=hi(t,"Set"),Br=hi(t,"WeakMap"),zr=hi(On,"create"),Rr=Br&&new Br,Sr={},Cr=Ti(Ir),Fr=Ti(kr),Lr=Ti(Er),Ur=Ti(Or),Wr=Ti(Br),Tr=Zn?Zn.prototype:u,Dr=Tr?Tr.valueOf:u,$r=Tr?Tr.toString:u;function Mr(n){if(ra(n)&&!Zo(n)&&!(n instanceof Zr)){if(n instanceof qr)return n;if(Wn.call(n,"__wrapped__"))return Di(n)}return new qr(n)}var Pr=function(){function n(){}return function(t){if(!ta(t))return{};if(Yn)return Yn(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 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]&&Wn.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==j||h==A;if(Yo(n))return Au(n,f);if(h==E||h==y||p&&!i){if(a=c||p?{}:di(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 Iu(n);case w:case b:return new e(+n);case L:return function(n,t){var r=t?Iu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case U:case W:case T:case D:case $:case M:case P:case N:case q:return ku(n,r);case I:return new e;case k:case R:return new e(n);case B: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 S:return u=n,Dr?On(Dr.call(u)):{}}var u}(n,h,f)}}o||(o=new Hr);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=On(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=Ut(t,nr(r))),e?(i=Lt,o=!1):t.length>=200&&(i=rr,o=!1,t=new Yr(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(kr||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},Yr.prototype.add=Yr.prototype.push=function(n){return this.__data__.set(n,o),this},Yr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.clear=function(){this.__data__=new Kr,this.size=0},Hr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Hr.prototype.get=function(n){return this.__data__.get(n)},Hr.prototype.has=function(n){return this.__data__.has(n)},Hr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Kr){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=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 ge(n,t,r){for(var e=-1,i=n.length;++e0&&r(a)?t>1?ye(a,t-1,r,e,u):Wt(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 je(n,t){return Ct(t,(function(t){return Xo(n[t])}))}function Ae(n,t){for(var r=0,e=(t=wu(t,n)).length;null!=n&&rt}function Oe(n,t){return null!=n&&Wn.call(n,t)}function Be(n,t){return null!=n&&t in On(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=Ut(h,nr(t))),l=wr(h.length,l),c[f]=!r&&(t||o>=120&&h.length>=120)?new Yr(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&&Jn.call(a,f,1),Jn.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)?Jn.call(n,u,1):hu(n,u)}}return n}function Ye(n,t){return n+dt(jr()*(t-n+1))}function He(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 Si(Ei(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:Hu(n);if(c)return hr(c);o=!1,u=rr,f=new Yr}else f=t?[]:a;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=Kn?Kn(r):new n.constructor(r);return n.copy(e),e}function Iu(n){var t=new n.constructor(n.byteLength);return new Gn(t).set(new Gn(n)),t}function ku(n,t){var r=t?Iu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Eu(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=On(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 Yr: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]&&!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){Wn.call(n,r)?++n[r]:oe(n,r,1)}));var go=Du(Ni),yo=Du(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){Wn.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=Ko(n)?e(n.length):[];return pe(n,(function(n){o[++u]=i?Ot(t,n,r):Re(n,t,r)})),o})),jo=Su((function(n,t,r){oe(n,r,t)}));function Ao(n,t){return(Zo(n)?Ut:$e)(n,ci(t,3))}var Io=Su((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),[])})),Eo=st||function(){return gt.Date.now()};function Oo(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Xu(n,s,u,u,u,u,t)}function Bo(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=Je((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=Je((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 g(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=a}function d(){var n=Eo();if(g(n))return y(n);c=Ri(d,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=Eo(),r=g(n);if(e=arguments,o=this,l=n,r){if(c===u)return function(n){return s=n,c=Ri(d,t),h?_(n):f}(l);if(p)return ju(c),c=Ri(d,t),_(l)}return c===u&&(c=Ri(d,t)),f}return t=da(t)||0,ta(r)&&(h=!!r.leading,a=(p="maxWait"in r)?mr(da(r.maxWait)||0,t):a,v="trailing"in r?!!r.trailing:v),m.cancel=function(){c!==u&&ju(c),s=0,e=l=o=c=u},m.flush=function(){return c===u?f:y(Eo())},m}var Co=Je((function(n,t){return se(n,1,t)})),Fo=Je((function(n,t,r){return se(n,da(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 Uo(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 Wo=bu((function(n,t){var r=(t=1==t.length&&Zo(t[0])?Ut(t[0],nr(ci())):Ut(ye(t,1),nr(ci()))).length;return Je((function(e){for(var u=-1,i=wr(e.length,r);++u=t})),qo=Se(function(){return arguments}())?Se:function(n){return ra(n)&&Wn.call(n,"callee")&&!Hn.call(n,"callee")},Zo=e.isArray,Go=xt?nr(xt):function(n){return ra(n)&&ke(n)==F};function Ko(n){return null!=n&&na(n.length)&&!Xo(n)}function Vo(n){return ra(n)&&Ko(n)}var Yo=wt||yf,Ho=jt?nr(jt):function(n){return ra(n)&&ke(n)==b};function Jo(n){if(!ra(n))return!1;var t=ke(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=ke(n);return t==j||t==A||"[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=At?nr(At):function(n){return ra(n)&&_i(n)==I};function ua(n){return"number"==typeof n||ra(n)&&ke(n)==k}function ia(n){if(!ra(n)||ke(n)!=E)return!1;var t=Vn(n);if(null===t)return!0;var r=Wn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Un.call(r)==Mn}var oa=It?nr(It):function(n){return ra(n)&&ke(n)==B};var aa=kt?nr(kt):function(n){return ra(n)&&_i(n)==z};function fa(n){return"string"==typeof n||!Zo(n)&&ra(n)&&ke(n)==R}function ca(n){return"symbol"==typeof n||ra(n)&&ke(n)==S}var la=Et?nr(Et):function(n){return ra(n)&&na(n.length)&&!!ct[ke(n)]};var sa=Ku(De),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==I?cr:t==z?hr:Ma)(n)}function va(n){return n?(n=da(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 ga(n){return n?fe(_a(n),0,g):0}function da(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):dn.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(Ai(t)||Ko(t))Ru(t,Sa(t),n);else for(var r in t)Wn.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)})),ja=Cu((function(n,t,r,e){Ru(t,Sa(t),n,e)})),Aa=ei(ae);var Ia=Je((function(n,t){n=On(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 Wa=ei((function(n,t){return null==n?{}:function(n,t){return Ge(n,t,(function(t,r){return Oa(n,r)}))}(n,t)}));function Ta(n,t){if(null==n)return{};var r=Ut(ii(n),(function(n){return[n]}));return t=ci(t),Ge(n,r,(function(n,r){return t(n,r[0])}))}var Da=Ju(Sa),$a=Ju(Ca);function Ma(n){return null==n?[]:tr(n,Sa(n))}var Pa=Wu((function(n,t,r){return t=t.toLowerCase(),n+(r?Na(t):t)}));function Na(n){return Ja(ma(n).toLowerCase())}function qa(n){return(n=ma(n))&&n.replace(xn,ir).replace(rt,"")}var Za=Wu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Ga=Wu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Ka=Uu("toLowerCase");var Va=Wu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Ya=Wu((function(n,t,r){return n+(r?" ":"")+Ja(t)}));var Ha=Wu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Ja=Uu("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=Je((function(n,t){try{return Ot(n,u,t)}catch(n){return Jo(n)?n:new In(n)}})),nf=ei((function(n,t){return zt(t,(function(t){t=Wi(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 Ue("function"==typeof n?n:ce(n,1))}var af=Je((function(n,t){return function(r){return Re(r,n,t)}})),ff=Je((function(n,t){return function(r){return Re(n,r,t)}}));function cf(n,t,r){var e=Sa(t),u=je(t,e);null!=r||ta(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=je(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,Wt([this.value()],arguments))})})),n}function lf(){}var sf=qu(Ut),hf=qu(St),pf=qu($t);function vf(n){return bi(n)?Vt(Wi(n)):function(n){return function(t){return Ae(t,n)}}(n)}var _f=Gu(),gf=Gu(!0);function df(){return[]}function yf(){return!1}var mf=Nu((function(n,t){return n+t}),0),wf=Yu("ceil"),bf=Nu((function(n,t){return n/t}),1),xf=Yu("floor");var jf,Af=Nu((function(n,t){return n*t}),1),If=Yu("round"),kf=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=Oo,Mr.assign=wa,Mr.assignIn=ba,Mr.assignInWith=xa,Mr.assignWith=ja,Mr.at=Aa,Mr.before=Bo,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:ga(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),Je((function(r){var e=r[t],u=xu(r,0,t);return e&&Wt(u,e),Ot(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=Da,Mr.toPairsIn=$a,Mr.toPath=function(n){return Zo(n)?Ut(n,Wi):ca(n)?[n]:zu(Ui(ma(n)))},Mr.toPlainObject=ya,Mr.transform=function(n,t,r){var e=Zo(n),u=e||Yo(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 Oo(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 To(mu(t),n)},Mr.xor=ao,Mr.xorBy=fo,Mr.xorWith=co,Mr.zip=lo,Mr.zipObject=function(n,t){return du(n||[],t||[],re)},Mr.zipObjectDeep=function(n,t){return du(n||[],t||[],nu)},Mr.zipWith=so,Mr.entries=Da,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=da(r))==r?r:0),t!==u&&(t=(t=da(t))==t?t:0),fe(da(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))&&J.test(n)?n.replace(Y,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=Ea,Mr.gt=Po,Mr.gte=No,Mr.has=function(n,t){return null!=n&&gi(n,t,Oe)},Mr.hasIn=Oa,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]"==ke(n)},Mr.join=function(n,t){return null==n?"":Mt.call(n,t)},Mr.kebabCase=Za,Mr.last=Hi,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?ge(n,uf,Ee):u},Mr.maxBy=function(n,t){return n&&n.length?ge(n,ci(t,2),Ee):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?ge(n,uf,De):u},Mr.minBy=function(n,t){return n&&n.length?ge(n,ci(t,2),De):u},Mr.stubArray=df,Mr.stubFalse=yf,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=Af,Mr.nth=function(n,t){return n&&n.length?qe(n,_a(t)):u},Mr.noConflict=function(){return gt._===this&&(gt._=Pn),this},Mr.noop=lf,Mr.now=Eo,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(dt(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=jr();return wr(n+i*(t-n+ht("1e-"+((i+"").length-1))),t)}return Ye(n,t)},Mr.reduce=function(n,t,r){var e=Zo(n)?Tt:Ht,u=arguments.length<3;return e(n,ci(t,4),r,u,pe)},Mr.reduceRight=function(n,t,r){var e=Zo(n)?Dt:Ht,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),He(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=g,e=wr(n,g);t=ci(t),n-=g;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=Bn(i.source,ma(gn.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))&&H.test(n)?n.replace(V,dr):n},Mr.uniqueId=function(n){var t=++Tn;return ma(n)+t},Mr.upperCase=Ha,Mr.upperFirst=Ja,Mr.each=mo,Mr.eachRight=wo,Mr.first=Gi,cf(Mr,(jf={},be(Mr,(function(n,t){Wn.call(Mr.prototype,t)||(jf[t]=n)})),jf),{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,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(uf)},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 Re(r,n,t)}))})),Zr.prototype.reject=function(n){return this.filter(Uo(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(g)},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,Wt([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 g=n.apply(t,a);return g.__actions__.push({func:po,args:[s],thisArg:u}),new qr(g,h)}return v&&_?n.apply(this,a):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),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+"";Wn.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=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},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}();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,{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:()=>A,Xx:()=>p,Z1:()=>w,bf:()=>g,cW:()=>j,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)})),A(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(!a.inverted()),a.resetZoom()}function g(){a.resetZoom()}function d(){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:f.registerFilter(i,(n=>(0,e.O)(n)))):(f.unRegisterFilter(i),inverted&&(data=flamegraphData)),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 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=m,e.appendChild(t)}}function A(n){a&&(a.destroy(),d3.selectAll(".d3-flame-graph-tip").remove()),a=flamegraph().width(d()).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(d())}}},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("invertButton").onclick=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()}))})()})(); \ 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,g=4294967295,d=[["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]",j="[object Function]",I="[object GeneratorFunction]",A="[object Map]",E="[object Number]",k="[object Object]",O="[object Promise]",B="[object RegExp]",z="[object Set]",R="[object String]",S="[object Symbol]",C="[object WeakMap]",F="[object ArrayBuffer]",L="[object DataView]",U="[object Float32Array]",W="[object Float64Array]",T="[object Int8Array]",D="[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,gn=/\w*$/,dn=/^[-+]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,jn=/($^)/,In=/['\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",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+"]",Un="\\d+",Wn="["+kn+"]",Tn="["+On+"]",Dn="[^"+An+Rn+Un+kn+On+Bn+"]",$n="\\ud83c[\\udffb-\\udfff]",Mn="[^"+An+"]",Pn="(?:\\ud83c[\\udde6-\\uddff]){2}",Nn="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+Bn+"]",Zn="\\u200d",Gn="(?:"+Tn+"|"+Dn+")",Kn="(?:"+qn+"|"+Dn+")",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="(?:"+[Wn,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+"?"+Tn+"+"+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_])",Un,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[U]=ct[W]=ct[T]=ct[D]=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[j]=ct[A]=ct[E]=ct[k]=ct[B]=ct[z]=ct[R]=ct[C]=!1;var lt={};lt[y]=lt[m]=lt[F]=lt[L]=lt[w]=lt[b]=lt[U]=lt[W]=lt[T]=lt[D]=lt[$]=lt[A]=lt[E]=lt[k]=lt[B]=lt[z]=lt[R]=lt[S]=lt[M]=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,mt=yt&&yt.exports===dt,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,jt=bt&&bt.isDate,It=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 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?gt:yr.defaults(gt.Object(),t,yr.pick(gt,at))).Array,fn=t.Date,An=t.Error,En=t.Function,kn=t.Math,On=t.Object,Bn=t.RegExp,zn=t.String,Rn=t.TypeError,Sn=e.prototype,Cn=En.prototype,Fn=On.prototype,Ln=t["__core-js_shared__"],Un=Cn.toString,Wn=Fn.hasOwnProperty,Tn=0,Dn=(r=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",$n=Fn.toString,Mn=Un.call(On),Pn=gt._,Nn=Bn("^"+Un.call(Wn).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(On.getPrototypeOf,On),Jn=On.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(On,"defineProperty");return n({},"",{}),n}catch(n){}}(),it=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,st=fn&&fn.now!==gt.Date.now&&fn.now,vt=t.setTimeout!==gt.setTimeout&&t.setTimeout,_t=kn.ceil,dt=kn.floor,yt=On.getOwnPropertySymbols,wt=qn?qn.isBuffer:u,bt=t.isFinite,Mt=Sn.join,Jt=lr(On.keys,On),mr=kn.max,wr=kn.min,br=fn.now,xr=t.parseInt,jr=kn.random,Ir=Sn.reverse,Ar=hi(t,"DataView"),Er=hi(t,"Map"),kr=hi(t,"Promise"),Or=hi(t,"Set"),Br=hi(t,"WeakMap"),zr=hi(On,"create"),Rr=Br&&new Br,Sr={},Cr=Ti(Ar),Fr=Ti(Er),Lr=Ti(kr),Ur=Ti(Or),Wr=Ti(Br),Tr=Zn?Zn.prototype:u,Dr=Tr?Tr.valueOf:u,$r=Tr?Tr.toString:u;function Mr(n){if(ra(n)&&!Zo(n)&&!(n instanceof Zr)){if(n instanceof qr)return n;if(Wn.call(n,"__wrapped__"))return Di(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__=g,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]&&Wn.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==j||h==I;if(Jo(n))return Iu(n,f);if(h==k||h==y||p&&!i){if(a=c||p?{}:di(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 U:case W:case T:case D: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 B: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 S:return u=n,Dr?On(Dr.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=On(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=Ut(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 ge(n,t,r){for(var e=-1,i=n.length;++e0&&r(a)?t>1?ye(a,t-1,r,e,u):Wt(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 je(n,t){return Ct(t,(function(t){return Xo(n[t])}))}function Ie(n,t){for(var r=0,e=(t=wu(t,n)).length;null!=n&&rt}function Oe(n,t){return null!=n&&Wn.call(n,t)}function Be(n,t){return null!=n&&t in On(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=Ut(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+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 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 ju=it||function(n){return gt.clearTimeout(n)};function Iu(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=On(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(d,(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){Wn.call(n,r)?++n[r]:oe(n,r,1)}));var go=Du(Ni),yo=Du(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){Wn.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?Ot(t,n,r):Re(n,t,r)})),o})),jo=Su((function(n,t,r){oe(n,r,t)}));function Io(n,t){return(Zo(n)?Ut:$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 gt.Date.now()};function Oo(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Xu(n,s,u,u,u,u,t)}function Bo(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 g(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=a}function d(){var n=ko();if(g(n))return y(n);c=Ri(d,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=g(n);if(e=arguments,o=this,l=n,r){if(c===u)return function(n){return s=n,c=Ri(d,t),h?_(n):f}(l);if(p)return ju(c),c=Ri(d,t),_(l)}return c===u&&(c=Ri(d,t)),f}return t=da(t)||0,ta(r)&&(h=!!r.leading,a=(p="maxWait"in r)?mr(da(r.maxWait)||0,t):a,v="trailing"in r?!!r.trailing:v),m.cancel=function(){c!==u&&ju(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,da(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 Uo(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 Wo=bu((function(n,t){var r=(t=1==t.length&&Zo(t[0])?Ut(t[0],nr(ci())):Ut(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)&&Wn.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=jt?nr(jt):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==j||t==I||"[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=It?nr(It):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=Wn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Un.call(r)==Mn}var oa=At?nr(At):function(n){return ra(n)&&Ee(n)==B};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(De),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=da(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 ga(n){return n?fe(_a(n),0,g):0}function da(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):dn.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(Ii(t)||Ko(t))Ru(t,Sa(t),n);else for(var r in t)Wn.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)})),ja=Cu((function(n,t,r,e){Ru(t,Sa(t),n,e)})),Ia=ei(ae);var Aa=He((function(n,t){n=On(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 Wa=ei((function(n,t){return null==n?{}:function(n,t){return Ge(n,t,(function(t,r){return Oa(n,r)}))}(n,t)}));function Ta(n,t){if(null==n)return{};var r=Ut(ii(n),(function(n){return[n]}));return t=ci(t),Ge(n,r,(function(n,r){return t(n,r[0])}))}var Da=Hu(Sa),$a=Hu(Ca);function Ma(n){return null==n?[]:tr(n,Sa(n))}var Pa=Wu((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=Wu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Ga=Wu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Ka=Uu("toLowerCase");var Va=Wu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Ja=Wu((function(n,t,r){return n+(r?" ":"")+Ha(t)}));var Ya=Wu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Ha=Uu("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 Ot(n,u,t)}catch(n){return Ho(n)?n:new An(n)}})),nf=ei((function(n,t){return zt(t,(function(t){t=Wi(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 Ue("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=je(t,e);null!=r||ta(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=je(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,Wt([this.value()],arguments))})})),n}function lf(){}var sf=qu(Ut),hf=qu(St),pf=qu($t);function vf(n){return bi(n)?Vt(Wi(n)):function(n){return function(t){return Ie(t,n)}}(n)}var _f=Gu(),gf=Gu(!0);function df(){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 jf,If=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=Oo,Mr.assign=wa,Mr.assignIn=ba,Mr.assignInWith=xa,Mr.assignWith=ja,Mr.at=Ia,Mr.before=Bo,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:ga(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&&Wt(u,e),Ot(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=Da,Mr.toPairsIn=$a,Mr.toPath=function(n){return Zo(n)?Ut(n,Wi):ca(n)?[n]:zu(Ui(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 Oo(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 To(mu(t),n)},Mr.xor=ao,Mr.xorBy=fo,Mr.xorWith=co,Mr.zip=lo,Mr.zipObject=function(n,t){return du(n||[],t||[],re)},Mr.zipObjectDeep=function(n,t){return du(n||[],t||[],nu)},Mr.zipWith=so,Mr.entries=Da,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=da(r))==r?r:0),t!==u&&(t=(t=da(t))==t?t:0),fe(da(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&&gi(n,t,Oe)},Mr.hasIn=Oa,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?ge(n,uf,ke):u},Mr.maxBy=function(n,t){return n&&n.length?ge(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?ge(n,uf,De):u},Mr.minBy=function(n,t){return n&&n.length?ge(n,ci(t,2),De):u},Mr.stubArray=df,Mr.stubFalse=yf,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=If,Mr.nth=function(n,t){return n&&n.length?qe(n,_a(t)):u},Mr.noConflict=function(){return gt._===this&&(gt._=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(dt(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=jr();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)?Tt:Yt,u=arguments.length<3;return e(n,ci(t,4),r,u,pe)},Mr.reduceRight=function(n,t,r){var e=Zo(n)?Dt: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=g,e=wr(n,g);t=ci(t),n-=g;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=Bn(i.source,ma(gn.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,dr):n},Mr.uniqueId=function(n){var t=++Tn;return ma(n)+t},Mr.upperCase=Ya,Mr.upperFirst=Ha,Mr.each=mo,Mr.eachRight=wo,Mr.first=Gi,cf(Mr,(jf={},be(Mr,(function(n,t){Wn.call(Mr.prototype,t)||(jf[t]=n)})),jf),{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,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(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(Uo(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(g)},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,Wt([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 g=n.apply(t,a);return g.__actions__.push({func:po,args:[s],thisArg:u}),new qr(g,h)}return v&&_?n.apply(this,a):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),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+"";Wn.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=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},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}();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,{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:()=>I,Xx:()=>p,Z1:()=>w,bf:()=>g,cW:()=>j,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)})),I(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("icicle")),a.resetZoom()}function g(){a.resetZoom()}function d(){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:f.registerFilter(i,(n=>(0,e.O)(n)))):(f.unRegisterFilter(i),inverted&&(data=flamegraphData)),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 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=m,e.appendChild(t)}}function I(n){a&&(a.destroy(),d3.selectAll(".d3-flame-graph-tip").remove()),a=flamegraph().width(d()).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(d())}}},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("icicle").onchange=t.Ji,document.getElementById("flame").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()}))})()})(); \ 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 e12df7e253..da485fd5ca 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 u,i="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,_=NaN,g=4294967295,d=[["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]",j="[object Function]",A="[object GeneratorFunction]",I="[object Map]",E="[object Number]",k="[object Object]",O="[object Promise]",B="[object RegExp]",S="[object Set]",R="[object String]",z="[object Symbol]",C="[object WeakMap]",F="[object ArrayBuffer]",D="[object DataView]",L="[object Float32Array]",T="[object Float64Array]",W="[object Int8Array]",U="[object Int16Array]",$="[object Int32Array]",M="[object Uint8Array]",N="[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,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,dn=/^[-+]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,jn=/($^)/,An=/['\n\r\u2028\u2029\\]/g,In="\\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="['’]",Cn="["+In+"]",Fn="["+Rn+"]",Dn="["+En+"]",Ln="\\d+",Tn="["+kn+"]",Wn="["+On+"]",Un="[^"+In+Rn+Ln+kn+On+Bn+"]",$n="\\ud83c[\\udffb-\\udfff]",Mn="[^"+In+"]",Nn="(?:\\ud83c[\\udde6-\\uddff]){2}",Pn="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+Bn+"]",Zn="\\u200d",Jn="(?:"+Wn+"|"+Un+")",Kn="(?:"+qn+"|"+Un+")",Yn="(?:['’](?:d|ll|m|re|s|t|ve))?",Gn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Vn="(?:"+Dn+"|"+$n+")"+"?",Hn="["+Sn+"]?",Xn=Hn+Vn+("(?:"+Zn+"(?:"+[Mn,Nn,Pn].join("|")+")"+Hn+Vn+")*"),Qn="(?:"+[Tn,Nn,Pn].join("|")+")"+Xn,nt="(?:"+[Mn+Dn+"?",Dn,Nn,Pn,Cn].join("|")+")",tt=RegExp(zn,"g"),rt=RegExp(Dn,"g"),et=RegExp($n+"(?="+$n+")|"+nt+Xn,"g"),ut=RegExp([qn+"?"+Wn+"+"+Yn+"(?="+[Fn,qn,"$"].join("|")+")",Kn+"+"+Gn+"(?="+[Fn,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"),it=RegExp("["+Zn+In+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[W]=ft[U]=ft[$]=ft[M]=ft[N]=ft[P]=ft[q]=!0,ft[y]=ft[m]=ft[F]=ft[w]=ft[D]=ft[b]=ft[x]=ft[j]=ft[I]=ft[E]=ft[k]=ft[B]=ft[S]=ft[R]=ft[C]=!1;var lt={};lt[y]=lt[m]=lt[F]=lt[D]=lt[w]=lt[b]=lt[L]=lt[T]=lt[W]=lt[U]=lt[$]=lt[I]=lt[E]=lt[k]=lt[B]=lt[S]=lt[R]=lt[z]=lt[M]=lt[N]=lt[P]=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,mt=yt&&yt.exports===dt,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,jt=bt&&bt.isDate,At=bt&&bt.isMap,It=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 u=-1,i=null==n?0:n.length;++u-1}function Dt(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=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 it.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,u=0,i=[];++r",""":'"',"'":"'"});var yr=function n(t){var r,e=(t=null==t?gt:yr.defaults(gt.Object(),t,yr.pick(gt,at))).Array,cn=t.Date,In=t.Error,En=t.Function,kn=t.Math,On=t.Object,Bn=t.RegExp,Sn=t.String,Rn=t.TypeError,zn=e.prototype,Cn=En.prototype,Fn=On.prototype,Dn=t["__core-js_shared__"],Ln=Cn.toString,Tn=Fn.hasOwnProperty,Wn=0,Un=(r=/[^.]+$/.exec(Dn&&Dn.keys&&Dn.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",$n=Fn.toString,Mn=Ln.call(On),Nn=gt._,Pn=Bn("^"+Ln.call(Tn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=mt?t.Buffer:u,Zn=t.Symbol,Jn=t.Uint8Array,Kn=qn?qn.allocUnsafe:u,Yn=lr(On.getPrototypeOf,On),Gn=On.create,Vn=Fn.propertyIsEnumerable,Hn=zn.splice,Xn=Zn?Zn.isConcatSpreadable:u,Qn=Zn?Zn.iterator:u,nt=Zn?Zn.toStringTag:u,et=function(){try{var n=hi(On,"defineProperty");return n({},"",{}),n}catch(n){}}(),it=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,st=cn&&cn.now!==gt.Date.now&&cn.now,vt=t.setTimeout!==gt.setTimeout&&t.setTimeout,_t=kn.ceil,dt=kn.floor,yt=On.getOwnPropertySymbols,wt=qn?qn.isBuffer:u,bt=t.isFinite,Mt=zn.join,Gt=lr(On.keys,On),mr=kn.max,wr=kn.min,br=cn.now,xr=t.parseInt,jr=kn.random,Ar=zn.reverse,Ir=hi(t,"DataView"),Er=hi(t,"Map"),kr=hi(t,"Promise"),Or=hi(t,"Set"),Br=hi(t,"WeakMap"),Sr=hi(On,"create"),Rr=Br&&new Br,zr={},Cr=Wi(Ir),Fr=Wi(Er),Dr=Wi(kr),Lr=Wi(Or),Tr=Wi(Br),Wr=Zn?Zn.prototype:u,Ur=Wr?Wr.valueOf:u,$r=Wr?Wr.toString:u;function Mr(n){if(ra(n)&&!Zo(n)&&!(n instanceof Zr)){if(n instanceof qr)return n;if(Tn.call(n,"__wrapped__"))return Ui(n)}return new qr(n)}var Nr=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=u,r}}();function Pr(){}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 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,i,o){var a,c=1&t,f=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]&&Tn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!c)return Su(n,a)}else{var h=_i(n),p=h==j||h==A;if(Go(n))return Au(n,c);if(h==k||h==y||p&&!i){if(a=f||p?{}:di(n),!c)return f?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 Iu(n);case w:case b:return new e(+n);case D:return function(n,t){var r=t?Iu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case L:case T:case W:case U:case $:case M:case N:case P:case q:return Eu(n,r);case I:return new e;case E:case R:return new e(n);case B:return function(n){var t=new n.constructor(n.source,gn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case S:return new e;case z:return u=n,Ur?On(Ur.call(u)):{}}var u}(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,u){a.set(u,fe(e,t,r,u,n,o))}));var _=s?u:(l?f?ii:ui:f?Ca:za)(n);return St(_||n,(function(e,u){_&&(e=n[u=e]),re(a,u,fe(e,t,r,u,n,o))})),a}function le(n,t,r){var e=r.length;if(null==n)return!e;for(n=On(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,c=[],f=t.length;if(!a)return c;r&&(t=Lt(t,nr(r))),e?(i=Dt,o=!1):t.length>=200&&(i=rr,o=!1,t=new Gr(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},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=li(this,n).delete(n);return this.size-=t?1:0,t},Yr.prototype.get=function(n){return li(this,n).get(n)},Yr.prototype.has=function(n){return li(this,n).has(n)},Yr.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},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=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 ge(n,t,r){for(var e=-1,i=n.length;++e0&&r(a)?t>1?ye(a,t-1,r,e,u):Tt(u,a):e||(u[u.length]=a)}return u}var me=Du(),we=Du(!0);function be(n,t){return n&&me(n,t,za)}function xe(n,t){return n&&we(n,t,za)}function je(n,t){return Ct(t,(function(t){return Xo(n[t])}))}function Ae(n,t){for(var r=0,e=(t=wu(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 i=r?Dt:Ft,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):u}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,u=t.length,i={};++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 u=t[r];if(r==e||u!==i){var i=u;mi(u)?Hn.call(n,u,1):hu(n,u)}}return n}function Ge(n,t){return n+dt(jr()*(t-n+1))}function Ve(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 He(n,t){return zi(ki(n,t,uc),n+"")}function Xe(n){return Xr(Ma(n))}function Qe(n,t){var r=Ma(n);return Di(r,ce(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,c=n;null!=c&&++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&&!fa(o)&&(r?o<=t:o=200){var f=t?null:Vu(n);if(f)return hr(f);o=!1,u=rr,c=new Gr}else c=t?[]:a;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=Kn?Kn(r):new n.constructor(r);return n.copy(e),e}function Iu(n){var t=new n.constructor(n.byteLength);return new Jn(t).set(new Jn(n)),t}function Eu(n,t){var r=t?Iu(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=fa(n),a=t!==u,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||!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=On(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&&!c&&"wrapper"==ai(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: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(fn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return St(d,(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 Di(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=zu((function(n,t,r){Tn.call(n,r)?++n[r]:oe(n,r,1)}));var go=Uu(Pi),yo=Uu(qi);function mo(n,t){return(Zo(n)?St:pe)(n,fi(t,3))}function wo(n,t){return(Zo(n)?Rt:ve)(n,fi(t,3))}var bo=zu((function(n,t,r){Tn.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?Ot(t,n,r):Re(n,t,r)})),o})),jo=zu((function(n,t,r){oe(n,r,t)}));function Ao(n,t){return(Zo(n)?Lt:$e)(n,fi(t,3))}var Io=zu((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 gt.Date.now()};function Oo(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Xu(n,s,u,u,u,u,t)}function Bo(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 So=He((function(n,t,r){var e=1;if(r.length){var u=sr(r,ci(So));e|=f}return Xu(n,e,t,r,u)})),Ro=He((function(n,t,r){var e=3;if(r.length){var u=sr(r,ci(Ro));e|=f}return Xu(t,e,n,r,u)}));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(i);function _(t){var r=e,i=o;return e=o=u,s=t,c=n.apply(i,r)}function g(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=a}function d(){var n=ko();if(g(n))return y(n);f=Ri(d,function(n){var r=t-(n-l);return p?wr(r,a-(n-s)):r}(n))}function y(n){return f=u,v&&e?_(n):(e=o=u,c)}function m(){var n=ko(),r=g(n);if(e=arguments,o=this,l=n,r){if(f===u)return function(n){return s=n,f=Ri(d,t),h?_(n):c}(l);if(p)return ju(f),f=Ri(d,t),_(l)}return f===u&&(f=Ri(d,t)),c}return t=da(t)||0,ta(r)&&(h=!!r.leading,a=(p="maxWait"in r)?mr(da(r.maxWait)||0,t):a,v="trailing"in r?!!r.trailing:v),m.cancel=function(){f!==u&&ju(f),s=0,e=l=o=f=u},m.flush=function(){return f===u?c:y(ko())},m}var Co=He((function(n,t){return se(n,1,t)})),Fo=He((function(n,t,r){return se(n,da(t)||0,r)}));function Do(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(Do.Cache||Yr),r}function Lo(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)}}Do.Cache=Yr;var To=bu((function(n,t){var r=(t=1==t.length&&Zo(t[0])?Lt(t[0],nr(fi())):Lt(ye(t,1),nr(fi()))).length;return He((function(e){for(var u=-1,i=wr(e.length,r);++u=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)==F};function Ko(n){return null!=n&&na(n.length)&&!Xo(n)}function Yo(n){return ra(n)&&Ko(n)}var Go=wt||dc,Vo=jt?nr(jt):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==j||t==A||"[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=At?nr(At):function(n){return ra(n)&&_i(n)==I};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=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)==Mn}var oa=It?nr(It):function(n){return ra(n)&&Ee(n)==B};var aa=Et?nr(Et):function(n){return ra(n)&&_i(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=Ku(Ue),ha=Ku((function(n,t){return n<=t}));function pa(n){if(!n)return[];if(Ko(n))return ca(n)?_r(n):Su(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==I?fr:t==S?hr:Ma)(n)}function va(n){return n?(n=da(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 ga(n){return n?ce(_a(n),0,g):0}function da(n){if("number"==typeof n)return n;if(fa(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):dn.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(Ai(t)||Ko(t))Ru(t,za(t),n);else for(var r in t)Tn.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)})),ja=Cu((function(n,t,r,e){Ru(t,za(t),n,e)})),Aa=ei(ae);var Ia=He((function(n,t){n=On(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=fe(r,7,ti));for(var u=t.length;u--;)hu(r,t[u]);return r}));var Ta=ei((function(n,t){return null==n?{}:function(n,t){return Je(n,t,(function(t,r){return Oa(n,r)}))}(n,t)}));function Wa(n,t){if(null==n)return{};var r=Lt(ii(n),(function(n){return[n]}));return t=fi(t),Je(n,r,(function(n,r){return t(n,r[0])}))}var Ua=Hu(za),$a=Hu(Ca);function Ma(n){return null==n?[]:tr(n,za(n))}var Na=Tu((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,ir).replace(rt,"")}var Za=Tu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Ja=Tu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Ka=Lu("toLowerCase");var Ya=Tu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Ga=Tu((function(n,t,r){return n+(r?" ":"")+Ha(t)}));var Va=Tu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Ha=Lu("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 Ot(n,u,t)}catch(n){return Ho(n)?n:new In(n)}})),nc=ei((function(n,t){return St(t,(function(t){t=Ti(t),oe(n,t,So(n[t],n))})),n}));function tc(n){return function(){return n}}var rc=$u(),ec=$u(!0);function uc(n){return n}function ic(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),u=je(t,e);null!=r||ta(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=je(t,za(t)));var i=!(ta(r)&&"chain"in r&&!r.chain),o=Xo(n);return St(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__=Su(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=qu(Lt),sc=qu(zt),hc=qu($t);function pc(n){return bi(n)?Yt(Ti(n)):function(n){return function(t){return Ae(t,n)}}(n)}var vc=Ju(),_c=Ju(!0);function gc(){return[]}function dc(){return!1}var yc=Pu((function(n,t){return n+t}),0),mc=Gu("ceil"),wc=Pu((function(n,t){return n/t}),1),bc=Gu("floor");var xc,jc=Pu((function(n,t){return n*t}),1),Ac=Gu("round"),Ic=Pu((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=Oo,Mr.assign=wa,Mr.assignIn=ba,Mr.assignInWith=xa,Mr.assignWith=ja,Mr.at=Aa,Mr.before=Bo,Mr.bind=So,Mr.bindAll=nc,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,c=e(_t(i/t));oi?0:i+r),(e=e===u||e>i?i:_a(e))<0&&(e+=i),e=r>e?0:ga(e);r>>0)?(n=ma(n))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=lu(t))&&cr(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&&Tt(u,e),Ot(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,fi(t,3),!1,!0):[]},Mr.takeWhile=function(n,t){return n&&n.length?vu(n,fi(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),zo(n,t,{leading:e,maxWait:t,trailing:u})},Mr.thru=po,Mr.toArray=pa,Mr.toPairs=Ua,Mr.toPairsIn=$a,Mr.toPath=function(n){return Zo(n)?Lt(n,Ti):fa(n)?[n]:Su(Li(ma(n)))},Mr.toPlainObject=ya,Mr.transform=function(n,t,r){var e=Zo(n),u=e||Go(n)||la(n);if(t=fi(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:ta(n)&&Xo(i)?Nr(Yn(n)):{}}return(u?St:be)(n,(function(n,e,u){return t(r,n,e,u)})),r},Mr.unary=function(n){return Oo(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,fi(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 Wo(mu(t),n)},Mr.xor=ao,Mr.xorBy=co,Mr.xorWith=fo,Mr.zip=lo,Mr.zipObject=function(n,t){return du(n||[],t||[],re)},Mr.zipObjectDeep=function(n,t){return du(n||[],t||[],nu)},Mr.zipWith=so,Mr.entries=Ua,Mr.entriesIn=$a,Mr.extend=ba,Mr.extendWith=xa,cc(Mr,Mr),Mr.add=yc,Mr.attempt=Qa,Mr.camelCase=Na,Mr.capitalize=Pa,Mr.ceil=mc,Mr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=da(r))==r?r:0),t!==u&&(t=(t=da(t))==t?t:0),ce(da(n),t,r)},Mr.clone=function(n){return fe(n,4)},Mr.cloneDeep=function(n){return fe(n,5)},Mr.cloneDeepWith=function(n,t){return fe(n,5,t="function"==typeof t?t:u)},Mr.cloneWith=function(n,t){return fe(n,4,t="function"==typeof t?t:u)},Mr.conformsTo=function(n,t){return null==t||le(n,t,za(t))},Mr.deburr=qa,Mr.defaultTo=function(n,t){return null==n||n!=n?t:n},Mr.divide=wc,Mr.endsWith=function(n,t,r){n=ma(n),t=lu(t);var e=n.length,i=r=r===u?e:ce(_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(G,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)?zt:_e;return r&&wi(n,t,r)&&(t=u),e(n,fi(t,3))},Mr.find=go,Mr.findIndex=Pi,Mr.findKey=function(n,t){return Nt(n,fi(t,3),be)},Mr.findLast=yo,Mr.findLastIndex=qi,Mr.findLastKey=function(n,t){return Nt(n,fi(t,3),xe)},Mr.floor=bc,Mr.forEach=mo,Mr.forEachRight=wo,Mr.forIn=function(n,t){return null==n?n:me(n,fi(t,3),Ca)},Mr.forInRight=function(n,t){return null==n?n:we(n,fi(t,3),Ca)},Mr.forOwn=function(n,t){return n&&be(n,fi(t,3))},Mr.forOwnRight=function(n,t){return n&&xe(n,fi(t,3))},Mr.get=ka,Mr.gt=No,Mr.gte=Po,Mr.has=function(n,t){return null!=n&&gi(n,t,Oe)},Mr.hasIn=Oa,Mr.head=Ji,Mr.identity=uc,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)),ca(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=ca,Mr.isSymbol=fa,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=Vi,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):Pt(n,Jt,i,!0)},Mr.lowerCase=Ja,Mr.lowerFirst=Ka,Mr.lt=sa,Mr.lte=ha,Mr.max=function(n){return n&&n.length?ge(n,uc,ke):u},Mr.maxBy=function(n,t){return n&&n.length?ge(n,fi(t,2),ke):u},Mr.mean=function(n){return Kt(n,uc)},Mr.meanBy=function(n,t){return Kt(n,fi(t,2))},Mr.min=function(n){return n&&n.length?ge(n,uc,Ue):u},Mr.minBy=function(n,t){return n&&n.length?ge(n,fi(t,2),Ue):u},Mr.stubArray=gc,Mr.stubFalse=dc,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=jc,Mr.nth=function(n,t){return n&&n.length?qe(n,_a(t)):u},Mr.noConflict=function(){return gt._===this&&(gt._=Nn),this},Mr.noop=fc,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(dt(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=jr();return wr(n+i*(t-n+ht("1e-"+((i+"").length-1))),t)}return Ge(n,t)},Mr.reduce=function(n,t,r){var e=Zo(n)?Wt:Vt,u=arguments.length<3;return e(n,fi(t,4),r,u,pe)},Mr.reduceRight=function(n,t,r){var e=Zo(n)?Ut:Vt,u=arguments.length<3;return e(n,fi(t,4),r,u,ve)},Mr.repeat=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:_a(t),Ve(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=g,e=wr(n,g);t=fi(t),n-=g;for(var u=Xt(e,t);++r=o)return n;var c=r-vr(e);if(c<1)return e;var f=a?xu(a,0,c).join(""):n.slice(0,c);if(i===u)return f+e;if(a&&(c+=f.length-c),oa(i)){if(n.slice(c).search(i)){var l,s=f;for(i.global||(i=Bn(i.source,ma(gn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;f=f.slice(0,h===u?c:h)}}else if(n.indexOf(lu(i),c)!=c){var p=f.lastIndexOf(i);p>-1&&(f=f.slice(0,p))}return f+e},Mr.unescape=function(n){return(n=ma(n))&&V.test(n)?n.replace(Y,dr):n},Mr.uniqueId=function(n){var t=++Wn;return ma(n)+t},Mr.upperCase=Va,Mr.upperFirst=Ha,Mr.each=mo,Mr.eachRight=wo,Mr.first=Ji,cc(Mr,(xc={},be(Mr,(function(n,t){Tn.call(Mr.prototype,t)||(xc[t]=n)})),xc),{chain:!1}),Mr.VERSION="4.17.21",St(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Mr[n].placeholder=Mr})),St(["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,g),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:fi(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(uc)},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(fi(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(g)},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,c=t instanceof Zr,f=a[0],l=c||Zo(t),s=function(n){var t=i.apply(Mr,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,_=c&&!p;if(!o&&l){t=_?t:new Zr(this);var g=n.apply(t,a);return g.__actions__.push({func:po,args:[s],thisArg:u}),new qr(g,h)}return v&&_?n.apply(this,a):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),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);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+"";Tn.call(zr,e)||(zr[e]=[]),zr[e].push({name:t,func:r})}})),zr[Mu(u,2).name]=[{name:"wrapper",func:u}],Zr.prototype.clone=function(){var n=new Zr(this.__wrapped__);return n.__actions__=Su(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Su(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Su(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 Pr;){var e=Ui(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}();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,{Fc:()=>l,NO:()=>c,O:()=>s,YD:()=>o,g5:()=>h,gB:()=>i,gf:()=>a});var e=r(486),u=r.n(e);function i(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 c(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 f(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 l(n){return f(n,(n=>n.interesting))}function s(n){return f(n,(n=>!n.import_system))}function h(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:()=>f,Ji:()=>g,N4:()=>x,Xx:()=>v,YX:()=>l,Z1:()=>b,bf:()=>d,cW:()=>A,ib:()=>m,sO:()=>w});var e=r(625);const u="filter_uninteresting",i="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(j).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 g(){a.inverted(!a.inverted()),a.resetZoom()}function d(){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 u=(0,e.g5)(r.children);return _.defaults(u,r),r.n_allocations=u.n_allocations,r.value=u.value,r})),c.drawChart(data)}function b(){void 0===this.hideUninterestingFrames&&(this.hideUninterestingFrames=!0),!0===this.hideUninterestingFrames?(this.hideUninterestingFrames=!0,c.registerFilter(u,(n=>(0,e.Fc)(n)))):c.unRegisterFilter(u),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:c.registerFilter(i,(n=>(0,e.O)(n)))):(c.unRegisterFilter(i),inverted&&(data=flamegraphData)),this.hideImportSystemFrames=!this.hideImportSystemFrames,c.drawChart(data)}function j(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 A(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 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),e=null,u=null,i=function(){let n=new Array(packed_data.nodes.children.length);console.log("finding parent index for each node");for(const[t,r]of packed_data.nodes.children.entries())r.forEach((r=>n[r]=t));return console.assert(void 0===n[0],"root node has a parent"),n}();function o(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!=u&&JSON.stringify(r)===JSON.stringify(u))return;console.log("showing loading animation"),console.log("showLoadingAnimation"),document.getElementById("loading").style.display="block",document.getElementById("overlay").style.display="block",u=r,console.log("finding range of relevant snapshot");let o=0,a=memory_records.length;if(r){const n=new Date(r.string1).getTime(),t=memory_records.findIndex((t=>t[0]>=n));-1!=t&&(o=t);const e=new Date(r.string2).getTime(),u=memory_records.findIndex((n=>n[0]>e));-1!=u&&(a=u)}console.log("start index is "+o),console.log("end index is "+a),console.log("first possible index is 0"),console.log("last possible index is "+memory_records.length),console.log("constructing tree"),data=function(n,t,r){const{strings:e,nodes:u,unique_threads:o}=n;console.log("constructing nodes");const a=u.name.map(((n,t)=>({name:e[u.name[t]],location:[e[u.function[t]],e[u.filename[t]],u.lineno[t]],value:0,children:u.children[t],n_allocations:0,thread_id:e[u.thread_id[t]],interesting:0!==u.interesting[t],import_system:0!==u.import_system[t]})));console.log("mapping child indices to child nodes");for(const[n,t]of a.entries())t.children=t.children.map((n=>a[n]));const c=n.high_water_mark_by_snapshot;if(c){console.log("finding highest high water mark in range");let e=t,u=c[t];for(let n=t;n<=r;++n)c[n]>u&&(u=c[n],e=n);console.log("highest water mark between "+t+" and "+r+" is "+u+" at "+e);let o,f,l={shapes:[]};e==memory_records.length?(l["xaxis.range[1]"]=new Date(memory_records.at(-1)[0]+10),o=new Date(memory_records.at(-1)[0]),f=new Date(memory_records.at(-1)[0]+10)):0==e?(l["xaxis.range[0]"]=new Date(memory_records[0][0]-10),o=new Date(memory_records[0][0]-10),f=new Date(memory_records[0][0])):(o=new Date(memory_records[e-1][0]),f=new Date(memory_records[e][0])),l.shapes=[{type:"rect",xref:"x",yref:"paper",x0:o,y0:0,x1:f,y1:1,fillcolor:"#fbff00",opacity:.2,line:{width:0}}],Plotly.relayout("plot",l),console.log("finding hwm allocations"),n.intervals.forEach((n=>{let[t,r,u,o,c]=n;if(t<=e&&(null===r||r>e))for(;void 0!==u;)a[u].n_allocations+=o,a[u].value+=c,u=i[u]}))}else console.log("finding leaked allocations"),n.intervals.forEach((n=>{let[e,u,o,c,f]=n;if(e>=t&&e<=r&&(null===u||u>r))for(;void 0!==o;)a[o].n_allocations+=c,a[o].value+=f,o=i[o]}));return console.log("total allocations in range: "+a[0].n_allocations),console.log("total bytes in range: "+a[0].value),a.forEach((n=>{n.children=n.children.filter((n=>n.n_allocations>0))})),a[0]}(packed_data,o,a),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 a=null;function c(n){console.log("refreshFlamegraphDebounced"),a&&clearTimeout(a),a=setTimeout((function(){o(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])),u=n.map((n=>n[2])),i=n.length>1?"lines":"markers";var o=[{x:t,y:r,mode:i,name:"Resident size"},{x:t,y:u,mode:i,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),o({}),location.hash&&(0,t.Xx)(),document.getElementById("invertButton").onclick=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",c),[].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 u,i="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,_=NaN,g=4294967295,d=[["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]",j="[object Function]",I="[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]",C="[object WeakMap]",F="[object ArrayBuffer]",D="[object DataView]",L="[object Float32Array]",T="[object Float64Array]",W="[object Int8Array]",U="[object Int16Array]",$="[object Int32Array]",M="[object Uint8Array]",N="[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,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,dn=/^[-+]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,jn=/($^)/,In=/['\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="['’]",Cn="["+An+"]",Fn="["+Rn+"]",Dn="["+En+"]",Ln="\\d+",Tn="["+kn+"]",Wn="["+On+"]",Un="[^"+An+Rn+Ln+kn+On+Bn+"]",$n="\\ud83c[\\udffb-\\udfff]",Mn="[^"+An+"]",Nn="(?:\\ud83c[\\udde6-\\uddff]){2}",Pn="[\\ud800-\\udbff][\\udc00-\\udfff]",qn="["+Bn+"]",Zn="\\u200d",Jn="(?:"+Wn+"|"+Un+")",Kn="(?:"+qn+"|"+Un+")",Yn="(?:['’](?:d|ll|m|re|s|t|ve))?",Gn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Vn="(?:"+Dn+"|"+$n+")"+"?",Hn="["+Sn+"]?",Xn=Hn+Vn+("(?:"+Zn+"(?:"+[Mn,Nn,Pn].join("|")+")"+Hn+Vn+")*"),Qn="(?:"+[Tn,Nn,Pn].join("|")+")"+Xn,nt="(?:"+[Mn+Dn+"?",Dn,Nn,Pn,Cn].join("|")+")",tt=RegExp(zn,"g"),rt=RegExp(Dn,"g"),et=RegExp($n+"(?="+$n+")|"+nt+Xn,"g"),ut=RegExp([qn+"?"+Wn+"+"+Yn+"(?="+[Fn,qn,"$"].join("|")+")",Kn+"+"+Gn+"(?="+[Fn,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"),it=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[W]=ft[U]=ft[$]=ft[M]=ft[N]=ft[P]=ft[q]=!0,ft[y]=ft[m]=ft[F]=ft[w]=ft[D]=ft[b]=ft[x]=ft[j]=ft[A]=ft[E]=ft[k]=ft[B]=ft[S]=ft[R]=ft[C]=!1;var lt={};lt[y]=lt[m]=lt[F]=lt[D]=lt[w]=lt[b]=lt[L]=lt[T]=lt[W]=lt[U]=lt[$]=lt[A]=lt[E]=lt[k]=lt[B]=lt[S]=lt[R]=lt[z]=lt[M]=lt[N]=lt[P]=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,mt=yt&&yt.exports===dt,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,jt=bt&&bt.isDate,It=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 u=-1,i=null==n?0:n.length;++u-1}function Dt(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=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 it.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,u=0,i=[];++r",""":'"',"'":"'"});var yr=function n(t){var r,e=(t=null==t?gt:yr.defaults(gt.Object(),t,yr.pick(gt,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,Cn=En.prototype,Fn=On.prototype,Dn=t["__core-js_shared__"],Ln=Cn.toString,Tn=Fn.hasOwnProperty,Wn=0,Un=(r=/[^.]+$/.exec(Dn&&Dn.keys&&Dn.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",$n=Fn.toString,Mn=Ln.call(On),Nn=gt._,Pn=Bn("^"+Ln.call(Tn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qn=mt?t.Buffer:u,Zn=t.Symbol,Jn=t.Uint8Array,Kn=qn?qn.allocUnsafe:u,Yn=lr(On.getPrototypeOf,On),Gn=On.create,Vn=Fn.propertyIsEnumerable,Hn=zn.splice,Xn=Zn?Zn.isConcatSpreadable:u,Qn=Zn?Zn.iterator:u,nt=Zn?Zn.toStringTag:u,et=function(){try{var n=hi(On,"defineProperty");return n({},"",{}),n}catch(n){}}(),it=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,st=cn&&cn.now!==gt.Date.now&&cn.now,vt=t.setTimeout!==gt.setTimeout&&t.setTimeout,_t=kn.ceil,dt=kn.floor,yt=On.getOwnPropertySymbols,wt=qn?qn.isBuffer:u,bt=t.isFinite,Mt=zn.join,Gt=lr(On.keys,On),mr=kn.max,wr=kn.min,br=cn.now,xr=t.parseInt,jr=kn.random,Ir=zn.reverse,Ar=hi(t,"DataView"),Er=hi(t,"Map"),kr=hi(t,"Promise"),Or=hi(t,"Set"),Br=hi(t,"WeakMap"),Sr=hi(On,"create"),Rr=Br&&new Br,zr={},Cr=Wi(Ar),Fr=Wi(Er),Dr=Wi(kr),Lr=Wi(Or),Tr=Wi(Br),Wr=Zn?Zn.prototype:u,Ur=Wr?Wr.valueOf:u,$r=Wr?Wr.toString:u;function Mr(n){if(ra(n)&&!Zo(n)&&!(n instanceof Zr)){if(n instanceof qr)return n;if(Tn.call(n,"__wrapped__"))return Ui(n)}return new qr(n)}var Nr=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=u,r}}();function Pr(){}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 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,i,o){var a,c=1&t,f=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]&&Tn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!c)return Su(n,a)}else{var h=_i(n),p=h==j||h==I;if(Go(n))return Iu(n,c);if(h==k||h==y||p&&!i){if(a=f||p?{}:di(n),!c)return f?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 D:return function(n,t){var r=t?Au(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case L:case T:case W:case U:case $:case M:case N:case P:case q:return Eu(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,gn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case S:return new e;case z:return u=n,Ur?On(Ur.call(u)):{}}var u}(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,u){a.set(u,fe(e,t,r,u,n,o))}));var _=s?u:(l?f?ii:ui:f?Ca:za)(n);return St(_||n,(function(e,u){_&&(e=n[u=e]),re(a,u,fe(e,t,r,u,n,o))})),a}function le(n,t,r){var e=r.length;if(null==n)return!e;for(n=On(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,c=[],f=t.length;if(!a)return c;r&&(t=Lt(t,nr(r))),e?(i=Dt,o=!1):t.length>=200&&(i=rr,o=!1,t=new Gr(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},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=li(this,n).delete(n);return this.size-=t?1:0,t},Yr.prototype.get=function(n){return li(this,n).get(n)},Yr.prototype.has=function(n){return li(this,n).has(n)},Yr.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},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=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 ge(n,t,r){for(var e=-1,i=n.length;++e0&&r(a)?t>1?ye(a,t-1,r,e,u):Tt(u,a):e||(u[u.length]=a)}return u}var me=Du(),we=Du(!0);function be(n,t){return n&&me(n,t,za)}function xe(n,t){return n&&we(n,t,za)}function je(n,t){return Ct(t,(function(t){return Xo(n[t])}))}function Ie(n,t){for(var r=0,e=(t=wu(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 i=r?Dt:Ft,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):u}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,u=t.length,i={};++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 u=t[r];if(r==e||u!==i){var i=u;mi(u)?Hn.call(n,u,1):hu(n,u)}}return n}function Ge(n,t){return n+dt(jr()*(t-n+1))}function Ve(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 He(n,t){return zi(ki(n,t,uc),n+"")}function Xe(n){return Xr(Ma(n))}function Qe(n,t){var r=Ma(n);return Di(r,ce(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,c=n;null!=c&&++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&&!fa(o)&&(r?o<=t:o=200){var f=t?null:Vu(n);if(f)return hr(f);o=!1,u=rr,c=new Gr}else c=t?[]:a;n:for(;++e=e?n:uu(n,t,r)}var ju=it||function(n){return gt.clearTimeout(n)};function Iu(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 Jn(t).set(new Jn(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=fa(n),a=t!==u,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||!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=On(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&&!c&&"wrapper"==ai(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: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(fn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return St(d,(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 Di(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=zu((function(n,t,r){Tn.call(n,r)?++n[r]:oe(n,r,1)}));var go=Uu(Pi),yo=Uu(qi);function mo(n,t){return(Zo(n)?St:pe)(n,fi(t,3))}function wo(n,t){return(Zo(n)?Rt:ve)(n,fi(t,3))}var bo=zu((function(n,t,r){Tn.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?Ot(t,n,r):Re(n,t,r)})),o})),jo=zu((function(n,t,r){oe(n,r,t)}));function Io(n,t){return(Zo(n)?Lt:$e)(n,fi(t,3))}var Ao=zu((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 gt.Date.now()};function Oo(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Xu(n,s,u,u,u,u,t)}function Bo(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 So=He((function(n,t,r){var e=1;if(r.length){var u=sr(r,ci(So));e|=f}return Xu(n,e,t,r,u)})),Ro=He((function(n,t,r){var e=3;if(r.length){var u=sr(r,ci(Ro));e|=f}return Xu(t,e,n,r,u)}));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(i);function _(t){var r=e,i=o;return e=o=u,s=t,c=n.apply(i,r)}function g(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=a}function d(){var n=ko();if(g(n))return y(n);f=Ri(d,function(n){var r=t-(n-l);return p?wr(r,a-(n-s)):r}(n))}function y(n){return f=u,v&&e?_(n):(e=o=u,c)}function m(){var n=ko(),r=g(n);if(e=arguments,o=this,l=n,r){if(f===u)return function(n){return s=n,f=Ri(d,t),h?_(n):c}(l);if(p)return ju(f),f=Ri(d,t),_(l)}return f===u&&(f=Ri(d,t)),c}return t=da(t)||0,ta(r)&&(h=!!r.leading,a=(p="maxWait"in r)?mr(da(r.maxWait)||0,t):a,v="trailing"in r?!!r.trailing:v),m.cancel=function(){f!==u&&ju(f),s=0,e=l=o=f=u},m.flush=function(){return f===u?c:y(ko())},m}var Co=He((function(n,t){return se(n,1,t)})),Fo=He((function(n,t,r){return se(n,da(t)||0,r)}));function Do(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(Do.Cache||Yr),r}function Lo(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)}}Do.Cache=Yr;var To=bu((function(n,t){var r=(t=1==t.length&&Zo(t[0])?Lt(t[0],nr(fi())):Lt(ye(t,1),nr(fi()))).length;return He((function(e){for(var u=-1,i=wr(e.length,r);++u=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)==F};function Ko(n){return null!=n&&na(n.length)&&!Xo(n)}function Yo(n){return ra(n)&&Ko(n)}var Go=wt||dc,Vo=jt?nr(jt):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==j||t==I||"[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=It?nr(It):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=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)==Mn}var oa=At?nr(At):function(n){return ra(n)&&Ee(n)==B};var aa=Et?nr(Et):function(n){return ra(n)&&_i(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=Ku(Ue),ha=Ku((function(n,t){return n<=t}));function pa(n){if(!n)return[];if(Ko(n))return ca(n)?_r(n):Su(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?fr:t==S?hr:Ma)(n)}function va(n){return n?(n=da(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 ga(n){return n?ce(_a(n),0,g):0}function da(n){if("number"==typeof n)return n;if(fa(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):dn.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(Ii(t)||Ko(t))Ru(t,za(t),n);else for(var r in t)Tn.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)})),ja=Cu((function(n,t,r,e){Ru(t,za(t),n,e)})),Ia=ei(ae);var Aa=He((function(n,t){n=On(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=fe(r,7,ti));for(var u=t.length;u--;)hu(r,t[u]);return r}));var Ta=ei((function(n,t){return null==n?{}:function(n,t){return Je(n,t,(function(t,r){return Oa(n,r)}))}(n,t)}));function Wa(n,t){if(null==n)return{};var r=Lt(ii(n),(function(n){return[n]}));return t=fi(t),Je(n,r,(function(n,r){return t(n,r[0])}))}var Ua=Hu(za),$a=Hu(Ca);function Ma(n){return null==n?[]:tr(n,za(n))}var Na=Tu((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,ir).replace(rt,"")}var Za=Tu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Ja=Tu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Ka=Lu("toLowerCase");var Ya=Tu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Ga=Tu((function(n,t,r){return n+(r?" ":"")+Ha(t)}));var Va=Tu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Ha=Lu("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 Ot(n,u,t)}catch(n){return Ho(n)?n:new An(n)}})),nc=ei((function(n,t){return St(t,(function(t){t=Ti(t),oe(n,t,So(n[t],n))})),n}));function tc(n){return function(){return n}}var rc=$u(),ec=$u(!0);function uc(n){return n}function ic(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),u=je(t,e);null!=r||ta(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=je(t,za(t)));var i=!(ta(r)&&"chain"in r&&!r.chain),o=Xo(n);return St(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__=Su(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=qu(Lt),sc=qu(zt),hc=qu($t);function pc(n){return bi(n)?Yt(Ti(n)):function(n){return function(t){return Ie(t,n)}}(n)}var vc=Ju(),_c=Ju(!0);function gc(){return[]}function dc(){return!1}var yc=Pu((function(n,t){return n+t}),0),mc=Gu("ceil"),wc=Pu((function(n,t){return n/t}),1),bc=Gu("floor");var xc,jc=Pu((function(n,t){return n*t}),1),Ic=Gu("round"),Ac=Pu((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=Oo,Mr.assign=wa,Mr.assignIn=ba,Mr.assignInWith=xa,Mr.assignWith=ja,Mr.at=Ia,Mr.before=Bo,Mr.bind=So,Mr.bindAll=nc,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,c=e(_t(i/t));oi?0:i+r),(e=e===u||e>i?i:_a(e))<0&&(e+=i),e=r>e?0:ga(e);r>>0)?(n=ma(n))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=lu(t))&&cr(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&&Tt(u,e),Ot(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,fi(t,3),!1,!0):[]},Mr.takeWhile=function(n,t){return n&&n.length?vu(n,fi(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),zo(n,t,{leading:e,maxWait:t,trailing:u})},Mr.thru=po,Mr.toArray=pa,Mr.toPairs=Ua,Mr.toPairsIn=$a,Mr.toPath=function(n){return Zo(n)?Lt(n,Ti):fa(n)?[n]:Su(Li(ma(n)))},Mr.toPlainObject=ya,Mr.transform=function(n,t,r){var e=Zo(n),u=e||Go(n)||la(n);if(t=fi(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:ta(n)&&Xo(i)?Nr(Yn(n)):{}}return(u?St:be)(n,(function(n,e,u){return t(r,n,e,u)})),r},Mr.unary=function(n){return Oo(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,fi(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 Wo(mu(t),n)},Mr.xor=ao,Mr.xorBy=co,Mr.xorWith=fo,Mr.zip=lo,Mr.zipObject=function(n,t){return du(n||[],t||[],re)},Mr.zipObjectDeep=function(n,t){return du(n||[],t||[],nu)},Mr.zipWith=so,Mr.entries=Ua,Mr.entriesIn=$a,Mr.extend=ba,Mr.extendWith=xa,cc(Mr,Mr),Mr.add=yc,Mr.attempt=Qa,Mr.camelCase=Na,Mr.capitalize=Pa,Mr.ceil=mc,Mr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=da(r))==r?r:0),t!==u&&(t=(t=da(t))==t?t:0),ce(da(n),t,r)},Mr.clone=function(n){return fe(n,4)},Mr.cloneDeep=function(n){return fe(n,5)},Mr.cloneDeepWith=function(n,t){return fe(n,5,t="function"==typeof t?t:u)},Mr.cloneWith=function(n,t){return fe(n,4,t="function"==typeof t?t:u)},Mr.conformsTo=function(n,t){return null==t||le(n,t,za(t))},Mr.deburr=qa,Mr.defaultTo=function(n,t){return null==n||n!=n?t:n},Mr.divide=wc,Mr.endsWith=function(n,t,r){n=ma(n),t=lu(t);var e=n.length,i=r=r===u?e:ce(_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(G,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)?zt:_e;return r&&wi(n,t,r)&&(t=u),e(n,fi(t,3))},Mr.find=go,Mr.findIndex=Pi,Mr.findKey=function(n,t){return Nt(n,fi(t,3),be)},Mr.findLast=yo,Mr.findLastIndex=qi,Mr.findLastKey=function(n,t){return Nt(n,fi(t,3),xe)},Mr.floor=bc,Mr.forEach=mo,Mr.forEachRight=wo,Mr.forIn=function(n,t){return null==n?n:me(n,fi(t,3),Ca)},Mr.forInRight=function(n,t){return null==n?n:we(n,fi(t,3),Ca)},Mr.forOwn=function(n,t){return n&&be(n,fi(t,3))},Mr.forOwnRight=function(n,t){return n&&xe(n,fi(t,3))},Mr.get=ka,Mr.gt=No,Mr.gte=Po,Mr.has=function(n,t){return null!=n&&gi(n,t,Oe)},Mr.hasIn=Oa,Mr.head=Ji,Mr.identity=uc,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)),ca(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=ca,Mr.isSymbol=fa,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=Vi,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):Pt(n,Jt,i,!0)},Mr.lowerCase=Ja,Mr.lowerFirst=Ka,Mr.lt=sa,Mr.lte=ha,Mr.max=function(n){return n&&n.length?ge(n,uc,ke):u},Mr.maxBy=function(n,t){return n&&n.length?ge(n,fi(t,2),ke):u},Mr.mean=function(n){return Kt(n,uc)},Mr.meanBy=function(n,t){return Kt(n,fi(t,2))},Mr.min=function(n){return n&&n.length?ge(n,uc,Ue):u},Mr.minBy=function(n,t){return n&&n.length?ge(n,fi(t,2),Ue):u},Mr.stubArray=gc,Mr.stubFalse=dc,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=jc,Mr.nth=function(n,t){return n&&n.length?qe(n,_a(t)):u},Mr.noConflict=function(){return gt._===this&&(gt._=Nn),this},Mr.noop=fc,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(dt(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=jr();return wr(n+i*(t-n+ht("1e-"+((i+"").length-1))),t)}return Ge(n,t)},Mr.reduce=function(n,t,r){var e=Zo(n)?Wt:Vt,u=arguments.length<3;return e(n,fi(t,4),r,u,pe)},Mr.reduceRight=function(n,t,r){var e=Zo(n)?Ut:Vt,u=arguments.length<3;return e(n,fi(t,4),r,u,ve)},Mr.repeat=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:_a(t),Ve(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=g,e=wr(n,g);t=fi(t),n-=g;for(var u=Xt(e,t);++r=o)return n;var c=r-vr(e);if(c<1)return e;var f=a?xu(a,0,c).join(""):n.slice(0,c);if(i===u)return f+e;if(a&&(c+=f.length-c),oa(i)){if(n.slice(c).search(i)){var l,s=f;for(i.global||(i=Bn(i.source,ma(gn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;f=f.slice(0,h===u?c:h)}}else if(n.indexOf(lu(i),c)!=c){var p=f.lastIndexOf(i);p>-1&&(f=f.slice(0,p))}return f+e},Mr.unescape=function(n){return(n=ma(n))&&V.test(n)?n.replace(Y,dr):n},Mr.uniqueId=function(n){var t=++Wn;return ma(n)+t},Mr.upperCase=Va,Mr.upperFirst=Ha,Mr.each=mo,Mr.eachRight=wo,Mr.first=Ji,cc(Mr,(xc={},be(Mr,(function(n,t){Tn.call(Mr.prototype,t)||(xc[t]=n)})),xc),{chain:!1}),Mr.VERSION="4.17.21",St(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Mr[n].placeholder=Mr})),St(["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,g),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:fi(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(uc)},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(fi(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(g)},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,c=t instanceof Zr,f=a[0],l=c||Zo(t),s=function(n){var t=i.apply(Mr,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,_=c&&!p;if(!o&&l){t=_?t:new Zr(this);var g=n.apply(t,a);return g.__actions__.push({func:po,args:[s],thisArg:u}),new qr(g,h)}return v&&_?n.apply(this,a):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),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);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+"";Tn.call(zr,e)||(zr[e]=[]),zr[e].push({name:t,func:r})}})),zr[Mu(u,2).name]=[{name:"wrapper",func:u}],Zr.prototype.clone=function(){var n=new Zr(this.__wrapped__);return n.__actions__=Su(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Su(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Su(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 Pr;){var e=Ui(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}();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,{Fc:()=>l,NO:()=>c,O:()=>s,YD:()=>o,g5:()=>h,gB:()=>i,gf:()=>a});var e=r(486),u=r.n(e);function i(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 c(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 f(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 l(n){return f(n,(n=>n.interesting))}function s(n){return f(n,(n=>!n.import_system))}function h(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:()=>f,Ji:()=>g,N4:()=>x,Xx:()=>v,YX:()=>l,Z1:()=>b,bf:()=>d,cW:()=>I,ib:()=>m,sO:()=>w});var e=r(625);const u="filter_uninteresting",i="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(j).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 g(){a.inverted(this===document.getElementById("icicle")),a.resetZoom()}function d(){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 u=(0,e.g5)(r.children);return _.defaults(u,r),r.n_allocations=u.n_allocations,r.value=u.value,r})),c.drawChart(data)}function b(){void 0===this.hideUninterestingFrames&&(this.hideUninterestingFrames=!0),!0===this.hideUninterestingFrames?(this.hideUninterestingFrames=!0,c.registerFilter(u,(n=>(0,e.Fc)(n)))):c.unRegisterFilter(u),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:c.registerFilter(i,(n=>(0,e.O)(n)))):(c.unRegisterFilter(i),inverted&&(data=flamegraphData)),this.hideImportSystemFrames=!this.hideImportSystemFrames,c.drawChart(data)}function j(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=w,e.appendChild(t)}}}},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),e=null,u=null,i=function(){let n=new Array(packed_data.nodes.children.length);console.log("finding parent index for each node");for(const[t,r]of packed_data.nodes.children.entries())r.forEach((r=>n[r]=t));return console.assert(void 0===n[0],"root node has a parent"),n}();function o(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!=u&&JSON.stringify(r)===JSON.stringify(u))return;console.log("showing loading animation"),console.log("showLoadingAnimation"),document.getElementById("loading").style.display="block",document.getElementById("overlay").style.display="block",u=r,console.log("finding range of relevant snapshot");let o=0,a=memory_records.length;if(r){const n=new Date(r.string1).getTime(),t=memory_records.findIndex((t=>t[0]>=n));-1!=t&&(o=t);const e=new Date(r.string2).getTime(),u=memory_records.findIndex((n=>n[0]>e));-1!=u&&(a=u)}console.log("start index is "+o),console.log("end index is "+a),console.log("first possible index is 0"),console.log("last possible index is "+memory_records.length),console.log("constructing tree"),data=function(n,t,r){const{strings:e,nodes:u,unique_threads:o}=n;console.log("constructing nodes");const a=u.name.map(((n,t)=>({name:e[u.name[t]],location:[e[u.function[t]],e[u.filename[t]],u.lineno[t]],value:0,children:u.children[t],n_allocations:0,thread_id:e[u.thread_id[t]],interesting:0!==u.interesting[t],import_system:0!==u.import_system[t]})));console.log("mapping child indices to child nodes");for(const[n,t]of a.entries())t.children=t.children.map((n=>a[n]));const c=n.high_water_mark_by_snapshot;if(c){console.log("finding highest high water mark in range");let e=t,u=c[t];for(let n=t;n<=r;++n)c[n]>u&&(u=c[n],e=n);console.log("highest water mark between "+t+" and "+r+" is "+u+" at "+e);let o,f,l={shapes:[]};e==memory_records.length?(l["xaxis.range[1]"]=new Date(memory_records.at(-1)[0]+10),o=new Date(memory_records.at(-1)[0]),f=new Date(memory_records.at(-1)[0]+10)):0==e?(l["xaxis.range[0]"]=new Date(memory_records[0][0]-10),o=new Date(memory_records[0][0]-10),f=new Date(memory_records[0][0])):(o=new Date(memory_records[e-1][0]),f=new Date(memory_records[e][0])),l.shapes=[{type:"rect",xref:"x",yref:"paper",x0:o,y0:0,x1:f,y1:1,fillcolor:"#fbff00",opacity:.2,line:{width:0}}],Plotly.relayout("plot",l),console.log("finding hwm allocations"),n.intervals.forEach((n=>{let[t,r,u,o,c]=n;if(t<=e&&(null===r||r>e))for(;void 0!==u;)a[u].n_allocations+=o,a[u].value+=c,u=i[u]}))}else console.log("finding leaked allocations"),n.intervals.forEach((n=>{let[e,u,o,c,f]=n;if(e>=t&&e<=r&&(null===u||u>r))for(;void 0!==o;)a[o].n_allocations+=c,a[o].value+=f,o=i[o]}));return console.log("total allocations in range: "+a[0].n_allocations),console.log("total bytes in range: "+a[0].value),a.forEach((n=>{n.children=n.children.filter((n=>n.n_allocations>0))})),a[0]}(packed_data,o,a),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 a=null;function c(n){console.log("refreshFlamegraphDebounced"),a&&clearTimeout(a),a=setTimeout((function(){o(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])),u=n.map((n=>n[2])),i=n.length>1?"lines":"markers";var o=[{x:t,y:r,mode:i,name:"Resident size"},{x:t,y:u,mode:i,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),o({}),location.hash&&(0,t.Xx)(),document.getElementById("icicle").onchange=t.Ji,document.getElementById("flame").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",c),[].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 diff --git a/src/memray/reporters/templates/flamegraph.html b/src/memray/reporters/templates/flamegraph.html index d08d2520ce..5d238dc8c0 100644 --- a/src/memray/reporters/templates/flamegraph.html +++ b/src/memray/reporters/templates/flamegraph.html @@ -21,8 +21,29 @@ title="Hide frames related to the Python import system" > +
+ + +
- {% endblock %} {% block content %}