@nocobase/app 1.3.39-beta → 1.4.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/client/.umirc.ts +12 -14
  2. package/client/src/pages/index.tsx +3 -0
  3. package/dist/client/4607.bae81918.async.js +1 -0
  4. package/dist/client/5617.d114c98c.async.js +78 -0
  5. package/dist/client/5721.ee2b0cf3.async.js +7 -0
  6. package/dist/client/index.html +2 -1
  7. package/dist/client/index.html.tpl +2 -1
  8. package/dist/client/npm._at_ant-design.e1f1f4b0.async.js +110 -0
  9. package/dist/client/{npm._at_antv.5ea2df50.async.js → npm._at_antv.56fcebdf.async.js} +5 -5
  10. package/dist/client/npm._at_budibase.113c5b6a.async.js +36 -0
  11. package/dist/client/npm._at_dnd-kit.2fac5dde.async.js +9 -0
  12. package/dist/client/npm._at_emotion.6969cd50.async.js +2 -0
  13. package/dist/client/npm._at_formily.b1a03e41.async.js +96 -0
  14. package/dist/client/npm._at_formulajs.ff63776b.async.js +1 -0
  15. package/dist/client/npm._at_rc-component.43f95f42.async.js +5 -0
  16. package/dist/client/npm._at_remix-run.9a0418a9.async.js +2 -0
  17. package/dist/client/npm.ahooks.b416801a.async.js +6 -0
  18. package/dist/client/npm.antd-style.ecb45bdd.async.js +1 -0
  19. package/dist/client/npm.antd.732d7b9d.async.js +476 -0
  20. package/dist/client/npm.axios.c42e25ff.async.js +11 -0
  21. package/dist/client/npm.bignumber.js.cb49cd48.async.js +1 -0
  22. package/dist/client/npm.buffer.6f3eca94.async.js +1 -0
  23. package/dist/client/npm.cytoscape.cba0c14d.async.js +5 -0
  24. package/dist/client/{npm.d3-selection.e2684be8.async.js → npm.d3-selection.15d6ab5b.async.js} +1 -1
  25. package/dist/client/npm.d3-shape.b48fc404.async.js +1 -0
  26. package/dist/client/{npm.d3-transition.83e0f431.async.js → npm.d3-transition.5fd82a9c.async.js} +1 -1
  27. package/dist/client/{npm.dayjs.f4357565.async.js → npm.dayjs.0a5fd152.async.js} +1 -1
  28. package/dist/client/{npm.decimal.js.bb6d6d2e.async.js → npm.decimal.js.19391b1c.async.js} +1 -1
  29. package/dist/client/npm.dompurify.d5071c22.async.js +3 -0
  30. package/dist/client/{npm.elkjs.d0ff4db1.async.js → npm.elkjs.f35a7d45.async.js} +4 -4
  31. package/dist/client/npm.gl-matrix.d851d654.async.js +1 -0
  32. package/dist/client/{npm.handlebars.c04806e7.async.js → npm.handlebars.ade4c4fe.async.js} +5 -5
  33. package/dist/client/{npm.highlight.js.4213abe5.async.js → npm.highlight.js.8a8320c8.async.js} +1 -1
  34. package/dist/client/{npm.html-tokenize.360bb6e8.async.js → npm.html-tokenize.a6d58ae7.async.js} +1 -1
  35. package/dist/client/npm.htmlparser2.27ad86bc.async.js +2 -0
  36. package/dist/client/npm.i18next.98bb572b.async.js +1 -0
  37. package/dist/client/npm.json5.d58066fd.async.js +14 -0
  38. package/dist/client/npm.jstat.733c0b2c.async.js +1 -0
  39. package/dist/client/{npm.layout-base.49e322a0.async.js → npm.layout-base.0bdb6d00.async.js} +1 -1
  40. package/dist/client/npm.lodash-es.c06b3dd5.async.js +1 -0
  41. package/dist/client/npm.lodash.0ff318b3.async.js +37 -0
  42. package/dist/client/npm.markdown-it.5b35f93d.async.js +15 -0
  43. package/dist/client/npm.mathjs.fd97f3b7.async.js +52 -0
  44. package/dist/client/npm.mermaid.defd0c88.async.js +1529 -0
  45. package/dist/client/npm.moment.36abbf2c.async.js +4 -0
  46. package/dist/client/npm.picomatch.7a2f1314.async.js +1 -0
  47. package/dist/client/npm.postcss.2ccf11ae.async.js +27 -0
  48. package/dist/client/{npm.quill.e91b3c12.async.js → npm.quill.9d4c2cd1.async.js} +7 -7
  49. package/dist/client/{npm.rc-menu.2e06b9c3.async.js → npm.rc-menu.adf5ade6.async.js} +1 -1
  50. package/dist/client/npm.rc-picker.ef8a3e8b.async.js +1 -0
  51. package/dist/client/{npm.rc-select.13236fb8.async.js → npm.rc-select.7c36e54e.async.js} +2 -2
  52. package/dist/client/{npm.rc-table.de3dd762.async.js → npm.rc-table.a153e021.async.js} +1 -1
  53. package/dist/client/npm.rc-tree.f61b7d87.async.js +1 -0
  54. package/dist/client/npm.rc-util.23a9b855.async.js +18 -0
  55. package/dist/client/npm.react-dom.b9fb5fd7.async.js +11 -0
  56. package/dist/client/npm.react-image-lightbox.727d3218.async.js +3 -0
  57. package/dist/client/npm.react-router-dom.832efba3.async.js +1 -0
  58. package/dist/client/npm.readable-stream.6e743f2a.async.js +1 -0
  59. package/dist/client/p__index.89314c11.async.js +1533 -0
  60. package/dist/client/umi.9e319d79.js +21 -0
  61. package/lib/index.js +11 -3
  62. package/package.json +6 -6
  63. package/src/index.ts +12 -9
  64. package/dist/client/4607.6d585996.async.js +0 -1
  65. package/dist/client/5721.cf90e884.async.js +0 -8
  66. package/dist/client/6718.1e7fe05d.async.js +0 -66
  67. package/dist/client/npm._at_ant-design.4fe52a2f.async.js +0 -110
  68. package/dist/client/npm._at_dnd-kit.01a3ad70.async.js +0 -6
  69. package/dist/client/npm._at_emotion.0c6b11eb.async.js +0 -2
  70. package/dist/client/npm._at_formily.f9d0b213.async.js +0 -101
  71. package/dist/client/npm._at_formulajs.fe3f9fca.async.js +0 -1
  72. package/dist/client/npm._at_rc-component.086dbf23.async.js +0 -5
  73. package/dist/client/npm._at_remix-run.55137b87.async.js +0 -3
  74. package/dist/client/npm.ahooks.c3df4eb6.async.js +0 -6
  75. package/dist/client/npm.antd-style.47ebbe31.async.js +0 -1
  76. package/dist/client/npm.antd.91188318.async.js +0 -476
  77. package/dist/client/npm.axios.f696c6e5.async.js +0 -2
  78. package/dist/client/npm.bignumber.js.70d3d7e8.async.js +0 -1
  79. package/dist/client/npm.buffer.9cce4593.async.js +0 -1
  80. package/dist/client/npm.cytoscape.39239e7b.async.js +0 -5
  81. package/dist/client/npm.d3-shape.3660138b.async.js +0 -1
  82. package/dist/client/npm.dompurify.93b5a130.async.js +0 -3
  83. package/dist/client/npm.gl-matrix.31b80e16.async.js +0 -1
  84. package/dist/client/npm.htmlparser2.cbbea4c4.async.js +0 -2
  85. package/dist/client/npm.i18next.eee0fc0f.async.js +0 -1
  86. package/dist/client/npm.json5.87aca70f.async.js +0 -14
  87. package/dist/client/npm.jstat.657c7dba.async.js +0 -1
  88. package/dist/client/npm.lodash-es.5eff0420.async.js +0 -1
  89. package/dist/client/npm.lodash.0f9322fa.async.js +0 -37
  90. package/dist/client/npm.markdown-it.5875530c.async.js +0 -15
  91. package/dist/client/npm.mathjs.d8df2940.async.js +0 -53
  92. package/dist/client/npm.mermaid.7057e144.async.js +0 -1530
  93. package/dist/client/npm.moment.3c26e672.async.js +0 -4
  94. package/dist/client/npm.postcss.368fceaf.async.js +0 -28
  95. package/dist/client/npm.rc-picker.218fa2cc.async.js +0 -1
  96. package/dist/client/npm.rc-tree.bdb9cee8.async.js +0 -1
  97. package/dist/client/npm.rc-util.87a2c212.async.js +0 -18
  98. package/dist/client/npm.react-dom.6236e62b.async.js +0 -11
  99. package/dist/client/npm.react-image-lightbox.0e0cf81f.async.js +0 -3
  100. package/dist/client/npm.react-router-dom.06c80c5d.async.js +0 -2
  101. package/dist/client/npm.readable-stream.41117b5f.async.js +0 -1
  102. package/dist/client/p__index.4ee03ea9.async.js +0 -1509
  103. package/dist/client/umi.99c57684.js +0 -22
@@ -0,0 +1 @@
1
+ (self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[8582],{2162:function(Z){(function(h,u){Z.exports=u()})(this,function(){var h=function(u,f){var q=Array.prototype.concat,p=Array.prototype.slice,w=Object.prototype.toString;function d(a,t){var c=a>t?a:t;return u.pow(10,17-~~(u.log(c>0?c:-c)*u.LOG10E))}var i=Array.isArray||function(t){return w.call(t)==="[object Array]"};function n(a){return w.call(a)==="[object Function]"}function r(a){return typeof a=="number"?a-a===0:!1}function e(a){return q.apply([],a)}function o(){return new o._init(arguments)}o.fn=o.prototype,o._init=function(t){if(i(t[0]))if(i(t[0][0])){n(t[1])&&(t[0]=o.map(t[0],t[1]));for(var c=0;c<t[0].length;c++)this[c]=t[0][c];this.length=t[0].length}else this[0]=n(t[1])?o.map(t[0],t[1]):t[0],this.length=1;else if(r(t[0]))this[0]=o.seq.apply(null,t),this.length=1;else{if(t[0]instanceof o)return o(t[0].toArray());this[0]=[],this.length=1}return this},o._init.prototype=o.prototype,o._init.constructor=o,o.utils={calcRdx:d,isArray:i,isFunction:n,isNumber:r,toVector:e},o._random_fn=u.random,o.setRandom=function(t){if(typeof t!="function")throw new TypeError("fn is not a function");o._random_fn=t},o.extend=function(t){var c,g;if(arguments.length===1){for(g in t)o[g]=t[g];return this}for(c=1;c<arguments.length;c++)for(g in arguments[c])t[g]=arguments[c][g];return t},o.rows=function(t){return t.length||1},o.cols=function(t){return t[0].length||1},o.dimensions=function(t){return{rows:o.rows(t),cols:o.cols(t)}},o.row=function(t,c){return i(c)?c.map(function(g){return o.row(t,g)}):t[c]},o.rowa=function(t,c){return o.row(t,c)},o.col=function(t,c){if(i(c)){var g=o.arange(t.length).map(function(){return new Array(c.length)});return c.forEach(function(_,k){o.arange(t.length).forEach(function(R){g[R][k]=t[R][_]})}),g}for(var y=new Array(t.length),b=0;b<t.length;b++)y[b]=[t[b][c]];return y},o.cola=function(t,c){return o.col(t,c).map(function(g){return g[0]})},o.diag=function(t){for(var c=o.rows(t),g=new Array(c),y=0;y<c;y++)g[y]=[t[y][y]];return g},o.antidiag=function(t){for(var c=o.rows(t)-1,g=new Array(c),y=0;c>=0;c--,y++)g[y]=[t[y][c]];return g},o.transpose=function(t){var c=[],g,y,b,_,k;for(i(t[0])||(t=[t]),y=t.length,b=t[0].length,k=0;k<b;k++){for(g=new Array(y),_=0;_<y;_++)g[_]=t[_][k];c.push(g)}return c.length===1?c[0]:c},o.map=function(t,c,g){var y,b,_,k,R;for(i(t[0])||(t=[t]),b=t.length,_=t[0].length,k=g?t:new Array(b),y=0;y<b;y++)for(k[y]||(k[y]=new Array(_)),R=0;R<_;R++)k[y][R]=c(t[y][R],y,R);return k.length===1?k[0]:k},o.cumreduce=function(t,c,g){var y,b,_,k,R;for(i(t[0])||(t=[t]),b=t.length,_=t[0].length,k=g?t:new Array(b),y=0;y<b;y++)for(k[y]||(k[y]=new Array(_)),_>0&&(k[y][0]=t[y][0]),R=1;R<_;R++)k[y][R]=c(k[y][R-1],t[y][R]);return k.length===1?k[0]:k},o.alter=function(t,c){return o.map(t,c,!0)},o.create=function(t,c,g){var y=new Array(t),b,_;for(n(c)&&(g=c,c=t),b=0;b<t;b++)for(y[b]=new Array(c),_=0;_<c;_++)y[b][_]=g(b,_);return y};function s(){return 0}o.zeros=function(t,c){return r(c)||(c=t),o.create(t,c,s)};function l(){return 1}o.ones=function(t,c){return r(c)||(c=t),o.create(t,c,l)},o.rand=function(t,c){return r(c)||(c=t),o.create(t,c,o._random_fn)};function v(a,t){return a===t?1:0}o.identity=function(t,c){return r(c)||(c=t),o.create(t,c,v)},o.symmetric=function(t){var c=t.length,g,y;if(t.length!==t[0].length)return!1;for(g=0;g<c;g++)for(y=0;y<c;y++)if(t[y][g]!==t[g][y])return!1;return!0},o.clear=function(t){return o.alter(t,s)},o.seq=function(t,c,g,y){n(y)||(y=!1);var b=[],_=d(t,c),k=(c*_-t*_)/((g-1)*_),R=t,z;for(z=0;R<=c&&z<g;z++,R=(t*_+k*_*z)/_)b.push(y?y(R,z):R);return b},o.arange=function(t,c,g){var y=[],b;if(g=g||1,c===f&&(c=t,t=0),t===c||g===0)return[];if(t<c&&g<0)return[];if(t>c&&g>0)return[];if(g>0)for(b=t;b<c;b+=g)y.push(b);else for(b=t;b>c;b+=g)y.push(b);return y},o.slice=function(){function a(c,g,y,b){var _,k=[],R=c.length;if(g===f&&y===f&&b===f)return o.copy(c);if(g=g||0,y=y||c.length,g=g>=0?g:R+g,y=y>=0?y:R+y,b=b||1,g===y||b===0)return[];if(g<y&&b<0)return[];if(g>y&&b>0)return[];if(b>0)for(_=g;_<y;_+=b)k.push(c[_]);else for(_=g;_>y;_+=b)k.push(c[_]);return k}function t(c,g){var y,b;if(g=g||{},r(g.row)){if(r(g.col))return c[g.row][g.col];var _=o.rowa(c,g.row);return y=g.col||{},a(_,y.start,y.end,y.step)}if(r(g.col)){var k=o.cola(c,g.col);return b=g.row||{},a(k,b.start,b.end,b.step)}b=g.row||{},y=g.col||{};var R=a(c,b.start,b.end,b.step);return R.map(function(z){return a(z,y.start,y.end,y.step)})}return t}(),o.sliceAssign=function(t,c,g){var y,b;if(r(c.row)){if(r(c.col))return t[c.row][c.col]=g;c.col=c.col||{},c.col.start=c.col.start||0,c.col.end=c.col.end||t[0].length,c.col.step=c.col.step||1,y=o.arange(c.col.start,u.min(t.length,c.col.end),c.col.step);var _=c.row;return y.forEach(function(R,z){t[_][R]=g[z]}),t}if(r(c.col)){c.row=c.row||{},c.row.start=c.row.start||0,c.row.end=c.row.end||t.length,c.row.step=c.row.step||1,b=o.arange(c.row.start,u.min(t[0].length,c.row.end),c.row.step);var k=c.col;return b.forEach(function(R,z){t[R][k]=g[z]}),t}return g[0].length===f&&(g=[g]),c.row.start=c.row.start||0,c.row.end=c.row.end||t.length,c.row.step=c.row.step||1,c.col.start=c.col.start||0,c.col.end=c.col.end||t[0].length,c.col.step=c.col.step||1,b=o.arange(c.row.start,u.min(t.length,c.row.end),c.row.step),y=o.arange(c.col.start,u.min(t[0].length,c.col.end),c.col.step),b.forEach(function(R,z){y.forEach(function(A,I){t[R][A]=g[z][I]})}),t},o.diagonal=function(t){var c=o.zeros(t.length,t.length);return t.forEach(function(g,y){c[y][y]=g}),c},o.copy=function(t){return t.map(function(c){return r(c)?c:c.map(function(g){return g})})};var m=o.prototype;return m.length=0,m.push=Array.prototype.push,m.sort=Array.prototype.sort,m.splice=Array.prototype.splice,m.slice=Array.prototype.slice,m.toArray=function(){return this.length>1?p.call(this):p.call(this)[0]},m.map=function(t,c){return o(o.map(this,t,c))},m.cumreduce=function(t,c){return o(o.cumreduce(this,t,c))},m.alter=function(t){return o.alter(this,t),this},function(a){for(var t=0;t<a.length;t++)(function(c){m[c]=function(g){var y=this,b;return g?(setTimeout(function(){g.call(y,m[c].call(y))}),this):(b=o[c](this),i(b)?o(b):b)}})(a[t])}("transpose clear symmetric rows cols dimensions diag antidiag".split(" ")),function(a){for(var t=0;t<a.length;t++)(function(c){m[c]=function(g,y){var b=this;return y?(setTimeout(function(){y.call(b,m[c].call(b,g))}),this):o(o[c](this,g))}})(a[t])}("row col".split(" ")),function(a){for(var t=0;t<a.length;t++)(function(c){m[c]=function(){return o(o[c].apply(null,arguments))}})(a[t])}("create zeros ones rand identity".split(" ")),o}(Math);return function(u,f){var q=u.utils.isFunction;function p(i,n){return i-n}function w(i,n,r){return f.max(n,f.min(i,r))}u.sum=function(n){for(var r=0,e=n.length;--e>=0;)r+=n[e];return r},u.sumsqrd=function(n){for(var r=0,e=n.length;--e>=0;)r+=n[e]*n[e];return r},u.sumsqerr=function(n){for(var r=u.mean(n),e=0,o=n.length,s;--o>=0;)s=n[o]-r,e+=s*s;return e},u.sumrow=function(n){for(var r=0,e=n.length;--e>=0;)r+=n[e];return r},u.product=function(n){for(var r=1,e=n.length;--e>=0;)r*=n[e];return r},u.min=function(n){for(var r=n[0],e=0;++e<n.length;)n[e]<r&&(r=n[e]);return r},u.max=function(n){for(var r=n[0],e=0;++e<n.length;)n[e]>r&&(r=n[e]);return r},u.unique=function(n){for(var r={},e=[],o=0;o<n.length;o++)r[n[o]]||(r[n[o]]=!0,e.push(n[o]));return e},u.mean=function(n){return u.sum(n)/n.length},u.meansqerr=function(n){return u.sumsqerr(n)/n.length},u.geomean=function(n){var r=n.map(f.log),e=u.mean(r);return f.exp(e)},u.median=function(n){var r=n.length,e=n.slice().sort(p);return r&1?e[r/2|0]:(e[r/2-1]+e[r/2])/2},u.cumsum=function(n){return u.cumreduce(n,function(r,e){return r+e})},u.cumprod=function(n){return u.cumreduce(n,function(r,e){return r*e})},u.diff=function(n){var r=[],e=n.length,o;for(o=1;o<e;o++)r.push(n[o]-n[o-1]);return r},u.rank=function(i){var n,r=[],e={};for(n=0;n<i.length;n++){var o=i[n];e[o]?e[o]++:(e[o]=1,r.push(o))}var s=r.sort(p),l={},v=1;for(n=0;n<s.length;n++){var o=s[n],m=e[o],a=v,t=v+m-1,c=(a+t)/2;l[o]=c,v+=m}return i.map(function(g){return l[g]})},u.mode=function(n){var r=n.length,e=n.slice().sort(p),o=1,s=0,l=0,v=[],m;for(m=0;m<r;m++)e[m]===e[m+1]?o++:(o>s?(v=[e[m]],s=o,l=0):o===s&&(v.push(e[m]),l++),o=1);return l===0?v[0]:v},u.range=function(n){return u.max(n)-u.min(n)},u.variance=function(n,r){return u.sumsqerr(n)/(n.length-(r?1:0))},u.pooledvariance=function(n){var r=n.reduce(function(o,s){return o+u.sumsqerr(s)},0),e=n.reduce(function(o,s){return o+s.length},0);return r/(e-n.length)},u.deviation=function(i){for(var n=u.mean(i),r=i.length,e=new Array(r),o=0;o<r;o++)e[o]=i[o]-n;return e},u.stdev=function(n,r){return f.sqrt(u.variance(n,r))},u.pooledstdev=function(n){return f.sqrt(u.pooledvariance(n))},u.meandev=function(n){for(var r=u.mean(n),e=[],o=n.length-1;o>=0;o--)e.push(f.abs(n[o]-r));return u.mean(e)},u.meddev=function(n){for(var r=u.median(n),e=[],o=n.length-1;o>=0;o--)e.push(f.abs(n[o]-r));return u.median(e)},u.coeffvar=function(n){return u.stdev(n)/u.mean(n)},u.quartiles=function(n){var r=n.length,e=n.slice().sort(p);return[e[f.round(r/4)-1],e[f.round(r/2)-1],e[f.round(r*3/4)-1]]},u.quantiles=function(n,r,e,o){var s=n.slice().sort(p),l=[r.length],v=n.length,m,a,t,c,g,y;for(typeof e>"u"&&(e=3/8),typeof o>"u"&&(o=3/8),m=0;m<r.length;m++)a=r[m],t=e+a*(1-e-o),c=v*a+t,g=f.floor(w(c,1,v-1)),y=w(c-g,0,1),l[m]=(1-y)*s[g-1]+y*s[g];return l},u.percentile=function(n,r,e){var o=n.slice().sort(p),s=r*(o.length+(e?1:-1))+(e?0:1),l=parseInt(s),v=s-l;return l+1<o.length?o[l-1]+v*(o[l]-o[l-1]):o[l-1]},u.percentileOfScore=function(n,r,e){var o=0,s=n.length,l=!1,v,m;for(e==="strict"&&(l=!0),m=0;m<s;m++)v=n[m],(l&&v<r||!l&&v<=r)&&o++;return o/s},u.histogram=function(n,r){r=r||4;var e=u.min(n),o=(u.max(n)-e)/r,s=n.length,l=[],v;for(v=0;v<r;v++)l[v]=0;for(v=0;v<s;v++)l[f.min(f.floor((n[v]-e)/o),r-1)]+=1;return l},u.covariance=function(n,r){var e=u.mean(n),o=u.mean(r),s=n.length,l=new Array(s),v;for(v=0;v<s;v++)l[v]=(n[v]-e)*(r[v]-o);return u.sum(l)/(s-1)},u.corrcoeff=function(n,r){return u.covariance(n,r)/u.stdev(n,1)/u.stdev(r,1)},u.spearmancoeff=function(i,n){return i=u.rank(i),n=u.rank(n),u.corrcoeff(i,n)},u.stanMoment=function(n,r){for(var e=u.mean(n),o=u.stdev(n),s=n.length,l=0,v=0;v<s;v++)l+=f.pow((n[v]-e)/o,r);return l/n.length},u.skewness=function(n){return u.stanMoment(n,3)},u.kurtosis=function(n){return u.stanMoment(n,4)-3};var d=u.prototype;(function(i){for(var n=0;n<i.length;n++)(function(r){d[r]=function(e,o){var s=[],l=0,v=this;if(q(e)&&(o=e,e=!1),o)return setTimeout(function(){o.call(v,d[r].call(v,e))}),this;if(this.length>1){for(v=e===!0?this:this.transpose();l<v.length;l++)s[l]=u[r](v[l]);return s}return u[r](this[0],e)}})(i[n])})("cumsum cumprod".split(" ")),function(i){for(var n=0;n<i.length;n++)(function(r){d[r]=function(e,o){var s=[],l=0,v=this;if(q(e)&&(o=e,e=!1),o)return setTimeout(function(){o.call(v,d[r].call(v,e))}),this;if(this.length>1){for(r!=="sumrow"&&(v=e===!0?this:this.transpose());l<v.length;l++)s[l]=u[r](v[l]);return e===!0?u[r](u.utils.toVector(s)):s}return u[r](this[0],e)}})(i[n])}("sum sumsqrd sumsqerr sumrow product min max unique mean meansqerr geomean median diff rank mode range variance deviation stdev meandev meddev coeffvar quartiles histogram skewness kurtosis".split(" ")),function(i){for(var n=0;n<i.length;n++)(function(r){d[r]=function(){var e=[],o=0,s=this,l=Array.prototype.slice.call(arguments),v;if(q(l[l.length-1])){v=l[l.length-1];var m=l.slice(0,l.length-1);return setTimeout(function(){v.call(s,d[r].apply(s,m))}),this}else{v=void 0;var a=function(c){return u[r].apply(s,[c].concat(l))}}if(this.length>1){for(s=s.transpose();o<s.length;o++)e[o]=a(s[o]);return e}return a(this[0])}})(i[n])}("quantiles percentileOfScore".split(" "))}(h,Math),function(u,f){u.gammaln=function(p){var w=0,d=[76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18],i=1.000000000190015,n,r,e;for(e=(r=n=p)+5.5,e-=(n+.5)*f.log(e);w<6;w++)i+=d[w]/++r;return f.log(2.5066282746310007*i/n)-e},u.loggam=function(p){var w,d,i,n,r,e,o,s=[.08333333333333333,-.002777777777777778,.0007936507936507937,-.0005952380952380952,.0008417508417508418,-.001917526917526918,.00641025641025641,-.02955065359477124,.1796443723688307,-1.3924322169059];if(w=p,o=0,p==1||p==2)return 0;for(p<=7&&(o=f.floor(7-p),w=p+o),d=1/(w*w),i=2*f.PI,r=s[9],e=8;e>=0;e--)r*=d,r+=s[e];if(n=r/w+.5*f.log(i)+(w-.5)*f.log(w)-w,p<=7)for(e=1;e<=o;e++)n-=f.log(w-1),w-=1;return n},u.gammafn=function(p){var w=[-1.716185138865495,24.76565080557592,-379.80425647094563,629.3311553128184,866.9662027904133,-31451.272968848367,-36144.413418691176,66456.14382024054],d=[-30.8402300119739,315.35062697960416,-1015.1563674902192,-3107.771671572311,22538.11842098015,4755.846277527881,-134659.9598649693,-115132.2596755535],i=!1,n=0,r=0,e=0,o=p,s,l,v,m;if(p>171.6243769536076)return 1/0;if(o<=0)if(m=o%1+36e-17,m)i=(o&1?-1:1)*f.PI/f.sin(f.PI*m),o=1-o;else return 1/0;for(v=o,o<1?l=o++:l=(o-=n=(o|0)-1)-1,s=0;s<8;++s)e=(e+w[s])*l,r=r*l+d[s];if(m=e/r+1,v<o)m/=v;else if(v>o)for(s=0;s<n;++s)m*=o,o++;return i&&(m=i/m),m},u.gammap=function(p,w){return u.lowRegGamma(p,w)*u.gammafn(p)},u.lowRegGamma=function(p,w){var d=u.gammaln(p),i=p,n=1/p,r=n,e=w+1-p,o=1/1e-30,s=1/e,l=s,v=1,m=-~(f.log(p>=1?p:1/p)*8.5+p*.4+17),a;if(w<0||p<=0)return NaN;if(w<p+1){for(;v<=m;v++)n+=r*=w/++i;return n*f.exp(-w+p*f.log(w)-d)}for(;v<=m;v++)a=-v*(v-p),e+=2,s=a*s+e,o=e+a/o,s=1/s,l*=s*o;return 1-l*f.exp(-w+p*f.log(w)-d)},u.factorialln=function(p){return p<0?NaN:u.gammaln(p+1)},u.factorial=function(p){return p<0?NaN:u.gammafn(p+1)},u.combination=function(p,w){return p>170||w>170?f.exp(u.combinationln(p,w)):u.factorial(p)/u.factorial(w)/u.factorial(p-w)},u.combinationln=function(p,w){return u.factorialln(p)-u.factorialln(w)-u.factorialln(p-w)},u.permutation=function(p,w){return u.factorial(p)/u.factorial(p-w)},u.betafn=function(p,w){if(!(p<=0||w<=0))return p+w>170?f.exp(u.betaln(p,w)):u.gammafn(p)*u.gammafn(w)/u.gammafn(p+w)},u.betaln=function(p,w){return u.gammaln(p)+u.gammaln(w)-u.gammaln(p+w)},u.betacf=function(p,w,d){var i=1e-30,n=1,r=w+d,e=w+1,o=w-1,s=1,l=1-r*p/e,v,m,a,t;for(f.abs(l)<i&&(l=i),l=1/l,t=l;n<=100&&(v=2*n,m=n*(d-n)*p/((o+v)*(w+v)),l=1+m*l,f.abs(l)<i&&(l=i),s=1+m/s,f.abs(s)<i&&(s=i),l=1/l,t*=l*s,m=-(w+n)*(r+n)*p/((w+v)*(e+v)),l=1+m*l,f.abs(l)<i&&(l=i),s=1+m/s,f.abs(s)<i&&(s=i),l=1/l,a=l*s,t*=a,!(f.abs(a-1)<3e-7));n++);return t},u.gammapinv=function(p,w){var d=0,i=w-1,n=1e-8,r=u.gammaln(w),e,o,s,l,v,m,a;if(p>=1)return f.max(100,w+100*f.sqrt(w));if(p<=0)return 0;for(w>1?(m=f.log(i),a=f.exp(i*(m-1)-r),v=p<.5?p:1-p,s=f.sqrt(-2*f.log(v)),e=(2.30753+s*.27061)/(1+s*(.99229+s*.04481))-s,p<.5&&(e=-e),e=f.max(.001,w*f.pow(1-1/(9*w)-e/(3*f.sqrt(w)),3))):(s=1-w*(.253+w*.12),p<s?e=f.pow(p/s,1/w):e=1-f.log(1-(p-s)/(1-s)));d<12;d++){if(e<=0)return 0;if(o=u.lowRegGamma(w,e)-p,w>1?s=a*f.exp(-(e-i)+i*(f.log(e)-m)):s=f.exp(-e+i*f.log(e)-r),l=o/s,e-=s=l/(1-.5*f.min(1,l*((w-1)/e-1))),e<=0&&(e=.5*(e+s)),f.abs(s)<n*e)break}return e},u.erf=function(p){var w=[-1.3026537197817094,.6419697923564902,.019476473204185836,-.00956151478680863,-.000946595344482036,.000366839497852761,42523324806907e-18,-20278578112534e-18,-1624290004647e-18,130365583558e-17,15626441722e-18,-85238095915e-18,6529054439e-18,5059343495e-18,-991364156e-18,-227365122e-18,96467911e-18,2394038e-18,-6886027e-18,894487e-18,313092e-18,-112708e-18,381e-18,7106e-18,-1523e-18,-94e-18,121e-18,-28e-18],d=w.length-1,i=!1,n=0,r=0,e,o,s,l;for(p<0&&(p=-p,i=!0),e=2/(2+p),o=4*e-2;d>0;d--)s=n,n=o*n-r+w[d],r=s;return l=e*f.exp(-p*p+.5*(w[0]+o*n)-r),i?l-1:1-l},u.erfc=function(p){return 1-u.erf(p)},u.erfcinv=function(p){var w=0,d,i,n,r;if(p>=2)return-100;if(p<=0)return 100;for(r=p<1?p:2-p,n=f.sqrt(-2*f.log(r/2)),d=-.70711*((2.30753+n*.27061)/(1+n*(.99229+n*.04481))-n);w<2;w++)i=u.erfc(d)-r,d+=i/(1.1283791670955126*f.exp(-d*d)-d*i);return p<1?d:-d},u.ibetainv=function(p,w,d){var i=1e-8,n=w-1,r=d-1,e=0,o,s,l,v,m,a,t,c,g,y,b;if(p<=0)return 0;if(p>=1)return 1;for(w>=1&&d>=1?(l=p<.5?p:1-p,v=f.sqrt(-2*f.log(l)),t=(2.30753+v*.27061)/(1+v*(.99229+v*.04481))-v,p<.5&&(t=-t),c=(t*t-3)/6,g=2/(1/(2*w-1)+1/(2*d-1)),y=t*f.sqrt(c+g)/g-(1/(2*d-1)-1/(2*w-1))*(c+5/6-2/(3*g)),t=w/(w+d*f.exp(2*y))):(o=f.log(w/(w+d)),s=f.log(d/(w+d)),v=f.exp(w*o)/w,m=f.exp(d*s)/d,y=v+m,p<v/y?t=f.pow(w*y*p,1/w):t=1-f.pow(d*y*(1-p),1/d)),b=-u.gammaln(w)-u.gammaln(d)+u.gammaln(w+d);e<10;e++){if(t===0||t===1)return t;if(a=u.ibeta(t,w,d)-p,v=f.exp(n*f.log(t)+r*f.log(1-t)+b),m=a/v,t-=v=m/(1-.5*f.min(1,m*(n/t-r/(1-t)))),t<=0&&(t=.5*(t+v)),t>=1&&(t=.5*(t+v+1)),f.abs(v)<i*t&&e>0)break}return t},u.ibeta=function(p,w,d){var i=p===0||p===1?0:f.exp(u.gammaln(w+d)-u.gammaln(w)-u.gammaln(d)+w*f.log(p)+d*f.log(1-p));return p<0||p>1?!1:p<(w+1)/(w+d+2)?i*u.betacf(p,w,d)/w:1-i*u.betacf(1-p,d,w)/d},u.randn=function(p,w){var d,i,n,r,e;if(w||(w=p),p)return u.create(p,w,function(){return u.randn()});do d=u._random_fn(),i=1.7156*(u._random_fn()-.5),n=d-.449871,r=f.abs(i)+.386595,e=n*n+r*(.196*r-.25472*n);while(e>.27597&&(e>.27846||i*i>-4*f.log(d)*d*d));return i/d},u.randg=function(p,w,d){var i=p,n,r,e,o,s,l;if(d||(d=w),p||(p=1),w)return l=u.zeros(w,d),l.alter(function(){return u.randg(p)}),l;p<1&&(p+=1),n=p-1/3,r=1/f.sqrt(9*n);do{do s=u.randn(),o=1+r*s;while(o<=0);o=o*o*o,e=u._random_fn()}while(e>1-.331*f.pow(s,4)&&f.log(e)>.5*s*s+n*(1-o+f.log(o)));if(p==i)return n*o;do e=u._random_fn();while(e===0);return f.pow(e,1/i)*n*o},function(q){for(var p=0;p<q.length;p++)(function(w){u.fn[w]=function(){return u(u.map(this,function(d){return u[w](d)}))}})(q[p])}("gammaln gammafn factorial factorialln".split(" ")),function(q){for(var p=0;p<q.length;p++)(function(w){u.fn[w]=function(){return u(u[w].apply(null,arguments))}})(q[p])}("randn".split(" "))}(h,Math),function(u,f){(function(i){for(var n=0;n<i.length;n++)(function(r){u[r]=function e(o,s,l){return this instanceof e?(this._a=o,this._b=s,this._c=l,this):new e(o,s,l)},u.fn[r]=function(e,o,s){var l=u[r](e,o,s);return l.data=this,l},u[r].prototype.sample=function(e){var o=this._a,s=this._b,l=this._c;return e?u.alter(e,function(){return u[r].sample(o,s,l)}):u[r].sample(o,s,l)},function(e){for(var o=0;o<e.length;o++)(function(s){u[r].prototype[s]=function(l){var v=this._a,m=this._b,a=this._c;return!l&&l!==0&&(l=this.data),typeof l!="number"?u.fn.map.call(l,function(t){return u[r][s](t,v,m,a)}):u[r][s](l,v,m,a)}})(e[o])}("pdf cdf inv".split(" ")),function(e){for(var o=0;o<e.length;o++)(function(s){u[r].prototype[s]=function(){return u[r][s](this._a,this._b,this._c)}})(e[o])}("mean median mode variance".split(" "))})(i[n])})("beta centralF cauchy chisquare exponential gamma invgamma kumaraswamy laplace lognormal noncentralt normal pareto studentt weibull uniform binomial negbin hypgeom poisson triangular tukey arcsine".split(" ")),u.extend(u.beta,{pdf:function(n,r,e){return n>1||n<0?0:r==1&&e==1?1:r<512&&e<512?f.pow(n,r-1)*f.pow(1-n,e-1)/u.betafn(r,e):f.exp((r-1)*f.log(n)+(e-1)*f.log(1-n)-u.betaln(r,e))},cdf:function(n,r,e){return n>1||n<0?(n>1)*1:u.ibeta(n,r,e)},inv:function(n,r,e){return u.ibetainv(n,r,e)},mean:function(n,r){return n/(n+r)},median:function(n,r){return u.ibetainv(.5,n,r)},mode:function(n,r){return(n-1)/(n+r-2)},sample:function(n,r){var e=u.randg(n);return e/(e+u.randg(r))},variance:function(n,r){return n*r/(f.pow(n+r,2)*(n+r+1))}}),u.extend(u.centralF,{pdf:function(n,r,e){var o,s,l;return n<0?0:r<=2?n===0&&r<2?1/0:n===0&&r===2?1:1/u.betafn(r/2,e/2)*f.pow(r/e,r/2)*f.pow(n,r/2-1)*f.pow(1+r/e*n,-(r+e)/2):(o=r*n/(e+n*r),s=e/(e+n*r),l=r*s/2,l*u.binomial.pdf((r-2)/2,(r+e-2)/2,o))},cdf:function(n,r,e){return n<0?0:u.ibeta(r*n/(r*n+e),r/2,e/2)},inv:function(n,r,e){return e/(r*(1/u.ibetainv(n,r/2,e/2)-1))},mean:function(n,r){return r>2?r/(r-2):void 0},mode:function(n,r){return n>2?r*(n-2)/(n*(r+2)):void 0},sample:function(n,r){var e=u.randg(n/2)*2,o=u.randg(r/2)*2;return e/n/(o/r)},variance:function(n,r){if(!(r<=4))return 2*r*r*(n+r-2)/(n*(r-2)*(r-2)*(r-4))}}),u.extend(u.cauchy,{pdf:function(n,r,e){return e<0?0:e/(f.pow(n-r,2)+f.pow(e,2))/f.PI},cdf:function(n,r,e){return f.atan((n-r)/e)/f.PI+.5},inv:function(i,n,r){return n+r*f.tan(f.PI*(i-.5))},median:function(n){return n},mode:function(n){return n},sample:function(n,r){return u.randn()*f.sqrt(1/(2*u.randg(.5)))*r+n}}),u.extend(u.chisquare,{pdf:function(n,r){return n<0?0:n===0&&r===2?.5:f.exp((r/2-1)*f.log(n)-n/2-r/2*f.log(2)-u.gammaln(r/2))},cdf:function(n,r){return n<0?0:u.lowRegGamma(r/2,n/2)},inv:function(i,n){return 2*u.gammapinv(i,.5*n)},mean:function(i){return i},median:function(n){return n*f.pow(1-2/(9*n),3)},mode:function(n){return n-2>0?n-2:0},sample:function(n){return u.randg(n/2)*2},variance:function(n){return 2*n}}),u.extend(u.exponential,{pdf:function(n,r){return n<0?0:r*f.exp(-r*n)},cdf:function(n,r){return n<0?0:1-f.exp(-r*n)},inv:function(i,n){return-f.log(1-i)/n},mean:function(i){return 1/i},median:function(i){return 1/i*f.log(2)},mode:function(){return 0},sample:function(n){return-1/n*f.log(u._random_fn())},variance:function(i){return f.pow(i,-2)}}),u.extend(u.gamma,{pdf:function(n,r,e){return n<0?0:n===0&&r===1?1/e:f.exp((r-1)*f.log(n)-n/e-u.gammaln(r)-r*f.log(e))},cdf:function(n,r,e){return n<0?0:u.lowRegGamma(r,n/e)},inv:function(i,n,r){return u.gammapinv(i,n)*r},mean:function(i,n){return i*n},mode:function(n,r){if(n>1)return(n-1)*r},sample:function(n,r){return u.randg(n)*r},variance:function(n,r){return n*r*r}}),u.extend(u.invgamma,{pdf:function(n,r,e){return n<=0?0:f.exp(-(r+1)*f.log(n)-e/n-u.gammaln(r)+r*f.log(e))},cdf:function(n,r,e){return n<=0?0:1-u.lowRegGamma(r,e/n)},inv:function(i,n,r){return r/u.gammapinv(1-i,n)},mean:function(i,n){return i>1?n/(i-1):void 0},mode:function(n,r){return r/(n+1)},sample:function(n,r){return r/u.randg(n)},variance:function(n,r){if(!(n<=2))return r*r/((n-1)*(n-1)*(n-2))}}),u.extend(u.kumaraswamy,{pdf:function(n,r,e){return n===0&&r===1?e:n===1&&e===1?r:f.exp(f.log(r)+f.log(e)+(r-1)*f.log(n)+(e-1)*f.log(1-f.pow(n,r)))},cdf:function(n,r,e){return n<0?0:n>1?1:1-f.pow(1-f.pow(n,r),e)},inv:function(n,r,e){return f.pow(1-f.pow(1-n,1/e),1/r)},mean:function(i,n){return n*u.gammafn(1+1/i)*u.gammafn(n)/u.gammafn(1+1/i+n)},median:function(n,r){return f.pow(1-f.pow(2,-1/r),1/n)},mode:function(n,r){if(n>=1&&r>=1&&n!==1&&r!==1)return f.pow((n-1)/(n*r-1),1/n)},variance:function(){throw new Error("variance not yet implemented")}}),u.extend(u.lognormal,{pdf:function(n,r,e){return n<=0?0:f.exp(-f.log(n)-.5*f.log(2*f.PI)-f.log(e)-f.pow(f.log(n)-r,2)/(2*e*e))},cdf:function(n,r,e){return n<0?0:.5+.5*u.erf((f.log(n)-r)/f.sqrt(2*e*e))},inv:function(i,n,r){return f.exp(-1.4142135623730951*r*u.erfcinv(2*i)+n)},mean:function(n,r){return f.exp(n+r*r/2)},median:function(n){return f.exp(n)},mode:function(n,r){return f.exp(n-r*r)},sample:function(n,r){return f.exp(u.randn()*r+n)},variance:function(n,r){return(f.exp(r*r)-1)*f.exp(2*n+r*r)}}),u.extend(u.noncentralt,{pdf:function(n,r,e){var o=1e-14;return f.abs(e)<o?u.studentt.pdf(n,r):f.abs(n)<o?f.exp(u.gammaln((r+1)/2)-e*e/2-.5*f.log(f.PI*r)-u.gammaln(r/2)):r/n*(u.noncentralt.cdf(n*f.sqrt(1+2/r),r+2,e)-u.noncentralt.cdf(n,r,e))},cdf:function(n,r,e){var o=1e-14,s=200;if(f.abs(e)<o)return u.studentt.cdf(n,r);var l=!1;n<0&&(l=!0,e=-e);for(var v=u.normal.cdf(-e,0,1),m=o+1,a=m,t=n*n/(n*n+r),c=0,g=f.exp(-e*e/2),y=f.exp(-e*e/2-.5*f.log(2)-u.gammaln(3/2))*e;c<s||a>o||m>o;)a=m,c>0&&(g*=e*e/(2*c),y*=e*e/(2*(c+1/2))),m=g*u.beta.cdf(t,c+.5,r/2)+y*u.beta.cdf(t,c+1,r/2),v+=.5*m,c++;return l?1-v:v}}),u.extend(u.normal,{pdf:function(n,r,e){return f.exp(-.5*f.log(2*f.PI)-f.log(e)-f.pow(n-r,2)/(2*e*e))},cdf:function(n,r,e){return .5*(1+u.erf((n-r)/f.sqrt(2*e*e)))},inv:function(i,n,r){return-1.4142135623730951*r*u.erfcinv(2*i)+n},mean:function(i){return i},median:function(n){return n},mode:function(i){return i},sample:function(n,r){return u.randn()*r+n},variance:function(i,n){return n*n}}),u.extend(u.pareto,{pdf:function(n,r,e){return n<r?0:e*f.pow(r,e)/f.pow(n,e+1)},cdf:function(n,r,e){return n<r?0:1-f.pow(r/n,e)},inv:function(n,r,e){return r/f.pow(1-n,1/e)},mean:function(n,r){if(!(r<=1))return r*f.pow(n,r)/(r-1)},median:function(n,r){return n*(r*f.SQRT2)},mode:function(n){return n},variance:function(i,n){if(!(n<=2))return i*i*n/(f.pow(n-1,2)*(n-2))}}),u.extend(u.studentt,{pdf:function(n,r){return r=r>1e100?1e100:r,1/(f.sqrt(r)*u.betafn(.5,r/2))*f.pow(1+n*n/r,-((r+1)/2))},cdf:function(n,r){var e=r/2;return u.ibeta((n+f.sqrt(n*n+r))/(2*f.sqrt(n*n+r)),e,e)},inv:function(i,n){var r=u.ibetainv(2*f.min(i,1-i),.5*n,.5);return r=f.sqrt(n*(1-r)/r),i>.5?r:-r},mean:function(n){return n>1?0:void 0},median:function(){return 0},mode:function(){return 0},sample:function(n){return u.randn()*f.sqrt(n/(2*u.randg(n/2)))},variance:function(n){return n>2?n/(n-2):n>1?1/0:void 0}}),u.extend(u.weibull,{pdf:function(n,r,e){return n<0||r<0||e<0?0:e/r*f.pow(n/r,e-1)*f.exp(-f.pow(n/r,e))},cdf:function(n,r,e){return n<0?0:1-f.exp(-f.pow(n/r,e))},inv:function(i,n,r){return n*f.pow(-f.log(1-i),1/r)},mean:function(i,n){return i*u.gammafn(1+1/n)},median:function(n,r){return n*f.pow(f.log(2),1/r)},mode:function(n,r){return r<=1?0:n*f.pow((r-1)/r,1/r)},sample:function(n,r){return n*f.pow(-f.log(u._random_fn()),1/r)},variance:function(n,r){return n*n*u.gammafn(1+2/r)-f.pow(u.weibull.mean(n,r),2)}}),u.extend(u.uniform,{pdf:function(n,r,e){return n<r||n>e?0:1/(e-r)},cdf:function(n,r,e){return n<r?0:n<e?(n-r)/(e-r):1},inv:function(i,n,r){return n+i*(r-n)},mean:function(n,r){return .5*(n+r)},median:function(n,r){return u.mean(n,r)},mode:function(){throw new Error("mode is not yet implemented")},sample:function(n,r){return n/2+r/2+(r/2-n/2)*(2*u._random_fn()-1)},variance:function(n,r){return f.pow(r-n,2)/12}});function q(i,n,r,e){for(var o=0,s=1,l=1,v=1,m=0,a=0,t;f.abs((l-a)/l)>e;)a=l,t=-(n+m)*(n+r+m)*i/(n+2*m)/(n+2*m+1),o=l+t*o,s=v+t*s,m=m+1,t=m*(r-m)*i/(n+2*m-1)/(n+2*m),l=o+t*l,v=s+t*v,o=o/v,s=s/v,l=l/v,v=1;return l/n}u.extend(u.binomial,{pdf:function(n,r,e){return e===0||e===1?r*e===n?1:0:u.combination(r,n)*f.pow(e,n)*f.pow(1-e,r-n)},cdf:function(n,r,e){var o,s=1e-10;if(n<0)return 0;if(n>=r)return 1;if(e<0||e>1||r<=0)return NaN;n=f.floor(n);var l=e,v=n+1,m=r-n,a=v+m,t=f.exp(u.gammaln(a)-u.gammaln(m)-u.gammaln(v)+v*f.log(l)+m*f.log(1-l));return l<(v+1)/(a+2)?o=t*q(l,v,m,s):o=1-t*q(1-l,m,v,s),f.round((1-o)*(1/s))/(1/s)}}),u.extend(u.negbin,{pdf:function(n,r,e){return n!==n>>>0?!1:n<0?0:u.combination(n+r-1,r-1)*f.pow(1-e,n)*f.pow(e,r)},cdf:function(n,r,e){var o=0,s=0;if(n<0)return 0;for(;s<=n;s++)o+=u.negbin.pdf(s,r,e);return o}}),u.extend(u.hypgeom,{pdf:function(n,r,e,o){if(n!==n|0)return!1;if(n<0||n<e-(r-o))return 0;if(n>o||n>e)return 0;if(e*2>r)return o*2>r?u.hypgeom.pdf(r-e-o+n,r,r-e,r-o):u.hypgeom.pdf(o-n,r,r-e,o);if(o*2>r)return u.hypgeom.pdf(e-n,r,e,r-o);if(e<o)return u.hypgeom.pdf(n,r,o,e);for(var s=1,l=0,v=0;v<n;v++){for(;s>1&&l<o;)s*=1-e/(r-l),l++;s*=(o-v)*(e-v)/((v+1)*(r-e-o+v+1))}for(;l<o;l++)s*=1-e/(r-l);return f.min(1,f.max(0,s))},cdf:function(n,r,e,o){if(n<0||n<e-(r-o))return 0;if(n>=o||n>=e)return 1;if(e*2>r)return o*2>r?u.hypgeom.cdf(r-e-o+n,r,r-e,r-o):1-u.hypgeom.cdf(o-n-1,r,r-e,o);if(o*2>r)return 1-u.hypgeom.cdf(e-n-1,r,e,r-o);if(e<o)return u.hypgeom.cdf(n,r,o,e);for(var s=1,l=1,v=0,m=0;m<n;m++){for(;s>1&&v<o;){var a=1-e/(r-v);l*=a,s*=a,v++}l*=(o-m)*(e-m)/((m+1)*(r-e-o+m+1)),s+=l}for(;v<o;v++)s*=1-e/(r-v);return f.min(1,f.max(0,s))}}),u.extend(u.poisson,{pdf:function(n,r){return r<0||n%1!==0||n<0?0:f.pow(r,n)*f.exp(-r)/u.factorial(n)},cdf:function(n,r){var e=[],o=0;if(n<0)return 0;for(;o<=n;o++)e.push(u.poisson.pdf(o,r));return u.sum(e)},mean:function(i){return i},variance:function(i){return i},sampleSmall:function(n){var r=1,e=0,o=f.exp(-n);do e++,r*=u._random_fn();while(r>o);return e-1},sampleLarge:function(n){var r=n,e,o,s,l,v,m,a,t,c,g;for(l=f.sqrt(r),v=f.log(r),a=.931+2.53*l,m=-.059+.02483*a,t=1.1239+1.1328/(a-3.4),c=.9277-3.6224/(a-2);;){if(o=f.random()-.5,s=f.random(),g=.5-f.abs(o),e=f.floor((2*m/g+a)*o+r+.43),g>=.07&&s<=c)return e;if(!(e<0||g<.013&&s>g)&&f.log(s)+f.log(t)-f.log(m/(g*g)+a)<=-r+e*v-u.loggam(e+1))return e}},sample:function(n){return n<10?this.sampleSmall(n):this.sampleLarge(n)}}),u.extend(u.triangular,{pdf:function(n,r,e,o){return e<=r||o<r||o>e?NaN:n<r||n>e?0:n<o?2*(n-r)/((e-r)*(o-r)):n===o?2/(e-r):2*(e-n)/((e-r)*(e-o))},cdf:function(n,r,e,o){return e<=r||o<r||o>e?NaN:n<=r?0:n>=e?1:n<=o?f.pow(n-r,2)/((e-r)*(o-r)):1-f.pow(e-n,2)/((e-r)*(e-o))},inv:function(n,r,e,o){return e<=r||o<r||o>e?NaN:n<=(o-r)/(e-r)?r+(e-r)*f.sqrt(n*((o-r)/(e-r))):r+(e-r)*(1-f.sqrt((1-n)*(1-(o-r)/(e-r))))},mean:function(n,r,e){return(n+r+e)/3},median:function(n,r,e){if(e<=(n+r)/2)return r-f.sqrt((r-n)*(r-e))/f.sqrt(2);if(e>(n+r)/2)return n+f.sqrt((r-n)*(e-n))/f.sqrt(2)},mode:function(n,r,e){return e},sample:function(n,r,e){var o=u._random_fn();return o<(e-n)/(r-n)?n+f.sqrt(o*(r-n)*(e-n)):r-f.sqrt((1-o)*(r-n)*(r-e))},variance:function(n,r,e){return(n*n+r*r+e*e-n*r-n*e-r*e)/18}}),u.extend(u.arcsine,{pdf:function(n,r,e){return e<=r?NaN:n<=r||n>=e?0:2/f.PI*f.pow(f.pow(e-r,2)-f.pow(2*n-r-e,2),-.5)},cdf:function(n,r,e){return n<r?0:n<e?2/f.PI*f.asin(f.sqrt((n-r)/(e-r))):1},inv:function(i,n,r){return n+(.5-.5*f.cos(f.PI*i))*(r-n)},mean:function(n,r){return r<=n?NaN:(n+r)/2},median:function(n,r){return r<=n?NaN:(n+r)/2},mode:function(){throw new Error("mode is not yet implemented")},sample:function(n,r){return(n+r)/2+(r-n)/2*f.sin(2*f.PI*u.uniform.sample(0,1))},variance:function(n,r){return r<=n?NaN:f.pow(r-n,2)/8}});function p(i){return i/f.abs(i)}u.extend(u.laplace,{pdf:function(n,r,e){return e<=0?0:f.exp(-f.abs(n-r)/e)/(2*e)},cdf:function(n,r,e){return e<=0?0:n<r?.5*f.exp((n-r)/e):1-.5*f.exp(-(n-r)/e)},mean:function(i){return i},median:function(i){return i},mode:function(i){return i},variance:function(i,n){return 2*n*n},sample:function(n,r){var e=u._random_fn()-.5;return n-r*p(e)*f.log(1-2*f.abs(e))}});function w(i,n,r){var e=12,o=6,s=-30,l=-50,v=60,m=8,a=3,t=2,c=3,g=[.9815606342467192,.9041172563704749,.7699026741943047,.5873179542866175,.3678314989981802,.1252334085114689],y=[.04717533638651183,.10693932599531843,.16007832854334622,.20316742672306592,.2334925365383548,.24914704581340277],b=i*.5;if(b>=m)return 1;var _=2*u.normal.cdf(b,0,1,1,0)-1;_>=f.exp(l/r)?_=f.pow(_,r):_=0;var k;i>a?k=t:k=c;for(var R=b,z=(m-b)/k,A=R+z,I=0,E=r-1,V=1;V<=k;V++){for(var U=0,P=.5*(A+R),N=.5*(A-R),L=1;L<=e;L++){var O,T;o<L?(O=e-L+1,T=g[O-1]):(O=L,T=-g[O-1]);var G=N*T,x=P+G,Q=x*x;if(Q>v)break;var H=2*u.normal.cdf(x,0,1,1,0),W=2*u.normal.cdf(x,i,1,1,0),C=H*.5-W*.5;C>=f.exp(s/E)&&(C=y[O-1]*f.exp(-(.5*Q))*f.pow(C,E),U+=C)}U*=2*N*r/f.sqrt(2*f.PI),I+=U,R=A,A+=z}return _+=I,_<=f.exp(s/n)?0:(_=f.pow(_,n),_>=1?1:_)}function d(i,n,r){var e=.322232421088,o=.099348462606,s=-1,l=.588581570495,v=-.342242088547,m=.531103462366,a=-.204231210125,t=.10353775285,c=-453642210148e-16,g=.0038560700634,y=.8832,b=.2368,_=1.214,k=1.208,R=1.4142,z=120,A=.5-.5*i,I=f.sqrt(f.log(1/(A*A))),E=I+((((I*c+a)*I+v)*I+s)*I+e)/((((I*g+t)*I+m)*I+l)*I+o);r<z&&(E+=(E*E*E+E)/r/4);var V=y-b*E;return r<z&&(V+=-_/r+k*E/r),E*(V*f.log(n-1)+R)}u.extend(u.tukey,{cdf:function(n,r,e){var o=1,s=r,l=16,v=8,m=-30,a=1e-14,t=100,c=800,g=5e3,y=25e3,b=1,_=.5,k=.25,R=.125,z=[.9894009349916499,.9445750230732326,.8656312023878318,.755404408355003,.6178762444026438,.45801677765722737,.2816035507792589,.09501250983763744],A=[.027152459411754096,.062253523938647894,.09515851168249279,.12462897125553388,.14959598881657674,.16915651939500254,.18260341504492358,.1894506104550685];if(n<=0)return 0;if(e<2||o<1||s<2)return NaN;if(!Number.isFinite(n))return 1;if(e>y)return w(n,o,s);var I=e*.5,E=I*f.log(e)-e*f.log(2)-u.gammaln(I),V=I-1,U=e*.25,P;e<=t?P=b:e<=c?P=_:e<=g?P=k:P=R,E+=f.log(P);for(var N=0,L=1;L<=50;L++){for(var O=0,T=(2*L-1)*P,G=1;G<=l;G++){var x,Q;v<G?(x=G-v-1,Q=E+V*f.log(T+z[x]*P)-(z[x]*P+T)*U):(x=G-1,Q=E+V*f.log(T-z[x]*P)+(z[x]*P-T)*U);var H;if(Q>=m){v<G?H=n*f.sqrt((z[x]*P+T)*.5):H=n*f.sqrt((-(z[x]*P)+T)*.5);var W=w(H,o,s),C=W*A[x]*f.exp(Q);O+=C}}if(L*P>=1&&O<=a)break;N+=O}if(O>a)throw new Error("tukey.cdf failed to converge");return N>1&&(N=1),N},inv:function(i,n,r){var e=1,o=n,s=1e-4,l=50;if(r<2||e<1||o<2)return NaN;if(i<0||i>1)return NaN;if(i===0)return 0;if(i===1)return 1/0;var v=d(i,o,r),m=u.tukey.cdf(v,n,r)-i,a;m>0?a=f.max(0,v-1):a=v+1;for(var t=u.tukey.cdf(a,n,r)-i,c,g=1;g<l;g++){c=a-t*(a-v)/(t-m),m=t,v=a,c<0&&(c=0,t=-i),t=u.tukey.cdf(c,n,r)-i,a=c;var y=f.abs(a-v);if(y<s)return c}throw new Error("tukey.inv failed to converge")}})}(h,Math),function(u,f){var q=Array.prototype.push,p=u.utils.isArray;function w(d){return p(d)||d instanceof u}u.extend({add:function(i,n){return w(n)?(w(n[0])||(n=[n]),u.map(i,function(r,e,o){return r+n[e][o]})):u.map(i,function(r){return r+n})},subtract:function(i,n){return w(n)?(w(n[0])||(n=[n]),u.map(i,function(r,e,o){return r-n[e][o]||0})):u.map(i,function(r){return r-n})},divide:function(i,n){return w(n)?(w(n[0])||(n=[n]),u.multiply(i,u.inv(n))):u.map(i,function(r){return r/n})},multiply:function(i,n){var r,e,o,s,l,v,m,a;if(i.length===void 0&&n.length===void 0)return i*n;if(l=i.length,v=i[0].length,m=u.zeros(l,o=w(n)?n[0].length:v),a=0,w(n)){for(;a<o;a++)for(r=0;r<l;r++){for(s=0,e=0;e<v;e++)s+=i[r][e]*n[e][a];m[r][a]=s}return l===1&&a===1?m[0][0]:m}return u.map(i,function(t){return t*n})},outer:function(i,n){return u.multiply(i.map(function(r){return[r]}),[n])},dot:function(i,n){w(i[0])||(i=[i]),w(n[0])||(n=[n]);for(var r=i[0].length===1&&i.length!==1?u.transpose(i):i,e=n[0].length===1&&n.length!==1?u.transpose(n):n,o=[],s=0,l=r.length,v=r[0].length,m,a;s<l;s++){for(o[s]=[],m=0,a=0;a<v;a++)m+=r[s][a]*e[s][a];o[s]=m}return o.length===1?o[0]:o},pow:function(i,n){return u.map(i,function(r){return f.pow(r,n)})},exp:function(i){return u.map(i,function(n){return f.exp(n)})},log:function(i){return u.map(i,function(n){return f.log(n)})},abs:function(i){return u.map(i,function(n){return f.abs(n)})},norm:function(i,n){var r=0,e=0;for(isNaN(n)&&(n=2),w(i[0])&&(i=i[0]);e<i.length;e++)r+=f.pow(f.abs(i[e]),n);return f.pow(r,1/n)},angle:function(i,n){return f.acos(u.dot(i,n)/(u.norm(i)*u.norm(n)))},aug:function(i,n){var r=[],e;for(e=0;e<i.length;e++)r.push(i[e].slice());for(e=0;e<r.length;e++)q.apply(r[e],n[e]);return r},inv:function(i){for(var n=i.length,r=i[0].length,e=u.identity(n,r),o=u.gauss_jordan(i,e),s=[],l=0,v;l<n;l++)for(s[l]=[],v=r;v<o[0].length;v++)s[l][v-r]=o[l][v];return s},det:function d(i){if(i.length===2)return i[0][0]*i[1][1]-i[0][1]*i[1][0];for(var n=0,r=0;r<i.length;r++){for(var e=[],o=1;o<i.length;o++){e[o-1]=[];for(var s=0;s<i.length;s++)s<r?e[o-1][s]=i[o][s]:s>r&&(e[o-1][s-1]=i[o][s])}var l=r%2?-1:1;n+=d(e)*i[0][r]*l}return n},gauss_elimination:function(i,n){var r=0,e=0,o=i.length,s=i[0].length,l=1,v=0,m=[],a,t,c,g;for(i=u.aug(i,n),a=i[0].length,r=0;r<o;r++){for(t=i[r][r],e=r,g=r+1;g<s;g++)t<f.abs(i[g][r])&&(t=i[g][r],e=g);if(e!=r)for(g=0;g<a;g++)c=i[r][g],i[r][g]=i[e][g],i[e][g]=c;for(e=r+1;e<o;e++)for(l=i[e][r]/i[r][r],g=r;g<a;g++)i[e][g]=i[e][g]-l*i[r][g]}for(r=o-1;r>=0;r--){for(v=0,e=r+1;e<=o-1;e++)v=v+m[e]*i[r][e];m[r]=(i[r][a-1]-v)/i[r][r]}return m},gauss_jordan:function(i,n){var r=u.aug(i,n),e=r.length,o=r[0].length,s=0,l,v,m;for(v=0;v<e;v++){var a=v;for(m=v+1;m<e;m++)f.abs(r[m][v])>f.abs(r[a][v])&&(a=m);var t=r[v];for(r[v]=r[a],r[a]=t,m=v+1;m<e;m++)for(s=r[m][v]/r[v][v],l=v;l<o;l++)r[m][l]-=r[v][l]*s}for(v=e-1;v>=0;v--){for(s=r[v][v],m=0;m<v;m++)for(l=o-1;l>v-1;l--)r[m][l]-=r[v][l]*r[m][v]/s;for(r[v][v]/=s,l=e;l<o;l++)r[v][l]/=s}return r},triaUpSolve:function(i,n){var r=i[0].length,e=u.zeros(1,r)[0],o,s=!1;return n[0].length!=null&&(n=n.map(function(l){return l[0]}),s=!0),u.arange(r-1,-1,-1).forEach(function(l){o=u.arange(l+1,r).map(function(v){return e[v]*i[l][v]}),e[l]=(n[l]-u.sum(o))/i[l][l]}),s?e.map(function(l){return[l]}):e},triaLowSolve:function(i,n){var r=i[0].length,e=u.zeros(1,r)[0],o,s=!1;return n[0].length!=null&&(n=n.map(function(l){return l[0]}),s=!0),u.arange(r).forEach(function(l){o=u.arange(l).map(function(v){return i[l][v]*e[v]}),e[l]=(n[l]-u.sum(o))/i[l][l]}),s?e.map(function(l){return[l]}):e},lu:function(i){var n=i.length,r=u.identity(n),e=u.zeros(i.length,i[0].length),o;return u.arange(n).forEach(function(s){e[0][s]=i[0][s]}),u.arange(1,n).forEach(function(s){u.arange(s).forEach(function(l){o=u.arange(l).map(function(v){return r[s][v]*e[v][l]}),r[s][l]=(i[s][l]-u.sum(o))/e[l][l]}),u.arange(s,n).forEach(function(l){o=u.arange(s).map(function(v){return r[s][v]*e[v][l]}),e[s][l]=i[o.length][l]-u.sum(o)})}),[r,e]},cholesky:function(i){var n=i.length,r=u.zeros(i.length,i[0].length),e;return u.arange(n).forEach(function(o){e=u.arange(o).map(function(s){return f.pow(r[o][s],2)}),r[o][o]=f.sqrt(i[o][o]-u.sum(e)),u.arange(o+1,n).forEach(function(s){e=u.arange(o).map(function(l){return r[o][l]*r[s][l]}),r[s][o]=(i[o][s]-u.sum(e))/r[o][o]})}),r},gauss_jacobi:function(i,n,r,e){for(var o=0,s=0,l=i.length,v=[],m=[],a=[],t,c,g,y;o<l;o++)for(v[o]=[],m[o]=[],a[o]=[],s=0;s<l;s++)o>s?(v[o][s]=i[o][s],m[o][s]=a[o][s]=0):o<s?(m[o][s]=i[o][s],v[o][s]=a[o][s]=0):(a[o][s]=i[o][s],v[o][s]=m[o][s]=0);for(g=u.multiply(u.multiply(u.inv(a),u.add(v,m)),-1),c=u.multiply(u.inv(a),n),t=r,y=u.add(u.multiply(g,r),c),o=2;f.abs(u.norm(u.subtract(y,t)))>e;)t=y,y=u.add(u.multiply(g,t),c),o++;return y},gauss_seidel:function(i,n,r,e){for(var o=0,s=i.length,l=[],v=[],m=[],a,t,c,g,y;o<s;o++)for(l[o]=[],v[o]=[],m[o]=[],a=0;a<s;a++)o>a?(l[o][a]=i[o][a],v[o][a]=m[o][a]=0):o<a?(v[o][a]=i[o][a],l[o][a]=m[o][a]=0):(m[o][a]=i[o][a],l[o][a]=v[o][a]=0);for(g=u.multiply(u.multiply(u.inv(u.add(m,l)),v),-1),c=u.multiply(u.inv(u.add(m,l)),n),t=r,y=u.add(u.multiply(g,r),c),o=2;f.abs(u.norm(u.subtract(y,t)))>e;)t=y,y=u.add(u.multiply(g,t),c),o=o+1;return y},SOR:function(i,n,r,e,o){for(var s=0,l=i.length,v=[],m=[],a=[],t,c,g,y,b;s<l;s++)for(v[s]=[],m[s]=[],a[s]=[],t=0;t<l;t++)s>t?(v[s][t]=i[s][t],m[s][t]=a[s][t]=0):s<t?(m[s][t]=i[s][t],v[s][t]=a[s][t]=0):(a[s][t]=i[s][t],v[s][t]=m[s][t]=0);for(y=u.multiply(u.inv(u.add(a,u.multiply(v,o))),u.subtract(u.multiply(a,1-o),u.multiply(m,o))),g=u.multiply(u.multiply(u.inv(u.add(a,u.multiply(v,o))),n),o),c=r,b=u.add(u.multiply(y,r),g),s=2;f.abs(u.norm(u.subtract(b,c)))>e;)c=b,b=u.add(u.multiply(y,c),g),s++;return b},householder:function(i){for(var n=i.length,r=i[0].length,e=0,o=[],s=[],l,v,m,a,t;e<n-1;e++){for(l=0,a=e+1;a<r;a++)l+=i[a][e]*i[a][e];for(t=i[e+1][e]>0?-1:1,l=t*f.sqrt(l),v=f.sqrt((l*l-i[e+1][e]*l)/2),o=u.zeros(n,1),o[e+1][0]=(i[e+1][e]-l)/(2*v),m=e+2;m<n;m++)o[m][0]=i[m][e]/(2*v);s=u.subtract(u.identity(n,r),u.multiply(u.multiply(o,u.transpose(o)),2)),i=u.multiply(s,u.multiply(i,s))}return i},QR:function(){var d=u.sum,i=u.arange;function n(r){var e=r.length,o=r[0].length,s=u.zeros(o,o);r=u.copy(r);var l,v,m;for(v=0;v<o;v++){for(s[v][v]=f.sqrt(d(i(e).map(function(a){return r[a][v]*r[a][v]}))),l=0;l<e;l++)r[l][v]=r[l][v]/s[v][v];for(m=v+1;m<o;m++)for(s[v][m]=d(i(e).map(function(a){return r[a][v]*r[a][m]})),l=0;l<e;l++)r[l][m]=r[l][m]-r[l][v]*s[v][m]}return[r,s]}return n}(),lstsq:function(){function d(n){n=u.copy(n);var r=n.length,e=u.identity(r);return u.arange(r-1,-1,-1).forEach(function(o){u.sliceAssign(e,{row:o},u.divide(u.slice(e,{row:o}),n[o][o])),u.sliceAssign(n,{row:o},u.divide(u.slice(n,{row:o}),n[o][o])),u.arange(o).forEach(function(s){var l=u.multiply(n[s][o],-1),v=u.slice(n,{row:s}),m=u.multiply(u.slice(n,{row:o}),l);u.sliceAssign(n,{row:s},u.add(v,m));var a=u.slice(e,{row:s}),t=u.multiply(u.slice(e,{row:o}),l);u.sliceAssign(e,{row:s},u.add(a,t))})}),e}function i(n,r){var e=!1;r[0].length===void 0&&(r=r.map(function(y){return[y]}),e=!0);var o=u.QR(n),s=o[0],l=o[1],v=n[0].length,m=u.slice(s,{col:{end:v}}),a=u.slice(l,{row:{end:v}}),t=d(a),c=u.transpose(m);c[0].length===void 0&&(c=[c]);var g=u.multiply(u.multiply(t,c),r);return g.length===void 0&&(g=[[g]]),e?g.map(function(y){return y[0]}):g}return i}(),jacobi:function(i){for(var n=1,r=i.length,e=u.identity(r,r),o=[],s,l,v,m,a,t,c,g;n===1;){for(t=i[0][1],m=0,a=1,l=0;l<r;l++)for(v=0;v<r;v++)l!=v&&t<f.abs(i[l][v])&&(t=f.abs(i[l][v]),m=l,a=v);for(i[m][m]===i[a][a]?c=i[m][a]>0?f.PI/4:-f.PI/4:c=f.atan(2*i[m][a]/(i[m][m]-i[a][a]))/2,g=u.identity(r,r),g[m][m]=f.cos(c),g[m][a]=-f.sin(c),g[a][m]=f.sin(c),g[a][a]=f.cos(c),e=u.multiply(e,g),s=u.multiply(u.multiply(u.inv(g),i),g),i=s,n=0,l=1;l<r;l++)for(v=1;v<r;v++)l!=v&&f.abs(i[l][v])>.001&&(n=1)}for(l=0;l<r;l++)o.push(i[l][l]);return[e,o]},rungekutta:function(i,n,r,e,o,s){var l,v,m,a,t;if(s===2)for(;e<=r;)l=n*i(e,o),v=n*i(e+n,o+l),m=o+(l+v)/2,o=m,e=e+n;if(s===4)for(;e<=r;)l=n*i(e,o),v=n*i(e+n/2,o+l/2),a=n*i(e+n/2,o+v/2),t=n*i(e+n,o+a),m=o+(l+2*v+2*a+t)/6,o=m,e=e+n;return o},romberg:function(i,n,r,e){for(var o=0,s=(r-n)/2,l=[],v=[],m=[],a,t,c,g,y;o<e/2;){for(y=i(n),c=n,g=0;c<=r;c=c+s,g++)l[g]=c;for(a=l.length,c=1;c<a-1;c++)y+=(c%2!==0?4:2)*i(l[c]);y=s/3*(y+i(r)),m[o]=y,s/=2,o++}for(t=m.length,a=1;t!==1;){for(c=0;c<t-1;c++)v[c]=(f.pow(4,a)*m[c+1]-m[c])/(f.pow(4,a)-1);t=v.length,m=v,v=[],a++}return m},richardson:function(i,n,r,e){function o(b,_){for(var k=0,R=b.length,z;k<R;k++)b[k]===_&&(z=k);return z}for(var s=f.abs(r-i[o(i,r)+1]),l=0,v=[],m=[],a,t,c,g,y;e>=s;)a=o(i,r+e),t=o(i,r),v[l]=(n[a]-2*n[t]+n[2*t-a])/(e*e),e/=2,l++;for(g=v.length,c=1;g!=1;){for(y=0;y<g-1;y++)m[y]=(f.pow(4,c)*v[y+1]-v[y])/(f.pow(4,c)-1);g=m.length,v=m,m=[],c++}return v},simpson:function(i,n,r,e){for(var o=(r-n)/e,s=i(n),l=[],v=n,m=0,a=1,t;v<=r;v=v+o,m++)l[m]=v;for(t=l.length;a<t-1;a++)s+=(a%2!==0?4:2)*i(l[a]);return o/3*(s+i(r))},hermite:function(i,n,r,e){for(var o=i.length,s=0,l=0,v=[],m=[],a=[],t=[],c;l<o;l++){for(v[l]=1,c=0;c<o;c++)l!=c&&(v[l]*=(e-i[c])/(i[l]-i[c]));for(m[l]=0,c=0;c<o;c++)l!=c&&(m[l]+=1/(i[l]-i[c]));a[l]=(1-2*(e-i[l])*m[l])*(v[l]*v[l]),t[l]=(e-i[l])*(v[l]*v[l]),s+=a[l]*n[l]+t[l]*r[l]}return s},lagrange:function(i,n,r){for(var e=0,o=0,s,l,v=i.length;o<v;o++){for(l=n[o],s=0;s<v;s++)o!=s&&(l*=(r-i[s])/(i[o]-i[s]));e+=l}return e},cubic_spline:function(i,n,r){for(var e=i.length,o=0,s,l=[],v=[],m=[],a=[],t=[],c=[],g=[];o<e-1;o++)t[o]=i[o+1]-i[o];for(m[0]=0,o=1;o<e-1;o++)m[o]=3/t[o]*(n[o+1]-n[o])-3/t[o-1]*(n[o]-n[o-1]);for(o=1;o<e-1;o++)l[o]=[],v[o]=[],l[o][o-1]=t[o-1],l[o][o]=2*(t[o-1]+t[o]),l[o][o+1]=t[o],v[o][0]=m[o];for(a=u.multiply(u.inv(l),v),s=0;s<e-1;s++)c[s]=(n[s+1]-n[s])/t[s]-t[s]*(a[s+1][0]+2*a[s][0])/3,g[s]=(a[s+1][0]-a[s][0])/(3*t[s]);for(s=0;s<e&&!(i[s]>r);s++);return s-=1,n[s]+(r-i[s])*c[s]+u.sq(r-i[s])*a[s]+(r-i[s])*u.sq(r-i[s])*g[s]},gauss_quadrature:function(){throw new Error("gauss_quadrature not yet implemented")},PCA:function(i){var n=i.length,r=i[0].length,e=0,o,s,l=[],v=[],m=[],a=[],t=[],c=[],g=[],y=[],b=[],_=[];for(e=0;e<n;e++)l[e]=u.sum(i[e])/r;for(e=0;e<r;e++)for(g[e]=[],o=0;o<n;o++)g[e][o]=i[o][e]-l[o];for(g=u.transpose(g),e=0;e<n;e++)for(y[e]=[],o=0;o<n;o++)y[e][o]=u.dot([g[e]],[g[o]])/(r-1);for(m=u.jacobi(y),b=m[0],v=m[1],_=u.transpose(b),e=0;e<v.length;e++)for(o=e;o<v.length;o++)v[e]<v[o]&&(s=v[e],v[e]=v[o],v[o]=s,a=_[e],_[e]=_[o],_[o]=a);for(c=u.transpose(g),e=0;e<n;e++)for(t[e]=[],o=0;o<c.length;o++)t[e][o]=u.dot([_[e]],[c[o]]);return[i,v,_,t]}}),function(d){for(var i=0;i<d.length;i++)(function(n){u.fn[n]=function(r,e){var o=this;return e?(setTimeout(function(){e.call(o,u.fn[n].call(o,r))},15),this):typeof u[n](this,r)=="number"?u[n](this,r):u(u[n](this,r))}})(d[i])}("add divide multiply subtract dot pow exp log abs norm angle".split(" "))}(h,Math),function(u,f){var q=[].slice,p=u.utils.isNumber,w=u.utils.isArray;u.extend({zscore:function(){var n=q.call(arguments);return p(n[1])?(n[0]-n[1])/n[2]:(n[0]-u.mean(n[1]))/u.stdev(n[1],n[2])},ztest:function(){var n=q.call(arguments),r;return w(n[1])?(r=u.zscore(n[0],n[1],n[3]),n[2]===1?u.normal.cdf(-f.abs(r),0,1):u.normal.cdf(-f.abs(r),0,1)*2):n.length>2?(r=u.zscore(n[0],n[1],n[2]),n[3]===1?u.normal.cdf(-f.abs(r),0,1):u.normal.cdf(-f.abs(r),0,1)*2):(r=n[0],n[1]===1?u.normal.cdf(-f.abs(r),0,1):u.normal.cdf(-f.abs(r),0,1)*2)}}),u.extend(u.fn,{zscore:function(n,r){return(n-this.mean())/this.stdev(r)},ztest:function(n,r,e){var o=f.abs(this.zscore(n,e));return r===1?u.normal.cdf(-o,0,1):u.normal.cdf(-o,0,1)*2}}),u.extend({tscore:function(){var n=q.call(arguments);return n.length===4?(n[0]-n[1])/(n[2]/f.sqrt(n[3])):(n[0]-u.mean(n[1]))/(u.stdev(n[1],!0)/f.sqrt(n[1].length))},ttest:function(){var n=q.call(arguments),r;return n.length===5?(r=f.abs(u.tscore(n[0],n[1],n[2],n[3])),n[4]===1?u.studentt.cdf(-r,n[3]-1):u.studentt.cdf(-r,n[3]-1)*2):p(n[1])?(r=f.abs(n[0]),n[2]==1?u.studentt.cdf(-r,n[1]-1):u.studentt.cdf(-r,n[1]-1)*2):(r=f.abs(u.tscore(n[0],n[1])),n[2]==1?u.studentt.cdf(-r,n[1].length-1):u.studentt.cdf(-r,n[1].length-1)*2)}}),u.extend(u.fn,{tscore:function(n){return(n-this.mean())/(this.stdev(!0)/f.sqrt(this.cols()))},ttest:function(n,r){return r===1?1-u.studentt.cdf(f.abs(this.tscore(n)),this.cols()-1):u.studentt.cdf(-f.abs(this.tscore(n)),this.cols()-1)*2}}),u.extend({anovafscore:function(){var n=q.call(arguments),r,e,o,s,l,v,m,a;if(n.length===1){for(l=new Array(n[0].length),m=0;m<n[0].length;m++)l[m]=n[0][m];n=l}for(e=new Array,m=0;m<n.length;m++)e=e.concat(n[m]);for(o=u.mean(e),r=0,m=0;m<n.length;m++)r=r+n[m].length*f.pow(u.mean(n[m])-o,2);for(r/=n.length-1,v=0,m=0;m<n.length;m++)for(s=u.mean(n[m]),a=0;a<n[m].length;a++)v+=f.pow(n[m][a]-s,2);return v/=e.length-n.length,r/v},anovaftest:function(){var n=q.call(arguments),r,e,o,s;if(p(n[0]))return 1-u.centralF.cdf(n[0],n[1],n[2]);var l=u.anovafscore(n);for(r=n.length-1,o=0,s=0;s<n.length;s++)o=o+n[s].length;return e=o-r-1,1-u.centralF.cdf(l,r,e)},ftest:function(n,r,e){return 1-u.centralF.cdf(n,r,e)}}),u.extend(u.fn,{anovafscore:function(){return u.anovafscore(this.toArray())},anovaftes:function(){var n=0,r;for(r=0;r<this.length;r++)n=n+this[r].length;return u.ftest(this.anovafscore(),this.length-1,n-this.length)}}),u.extend({qscore:function(){var n=q.call(arguments),r,e,o,s,l;return p(n[0])?(r=n[0],e=n[1],o=n[2],s=n[3],l=n[4]):(r=u.mean(n[0]),e=u.mean(n[1]),o=n[0].length,s=n[1].length,l=n[2]),f.abs(r-e)/(l*f.sqrt((1/o+1/s)/2))},qtest:function(){var n=q.call(arguments),r;n.length===3?(r=n[0],n=n.slice(1)):n.length===7?(r=u.qscore(n[0],n[1],n[2],n[3],n[4]),n=n.slice(5)):(r=u.qscore(n[0],n[1],n[2]),n=n.slice(3));var e=n[0],o=n[1];return 1-u.tukey.cdf(r,o,e-o)},tukeyhsd:function(n){for(var r=u.pooledstdev(n),e=n.map(function(a){return u.mean(a)}),o=n.reduce(function(a,t){return a+t.length},0),s=[],l=0;l<n.length;++l)for(var v=l+1;v<n.length;++v){var m=u.qtest(e[l],e[v],n[l].length,n[v].length,r,o,n.length);s.push([[l,v],m])}return s}}),u.extend({normalci:function(){var n=q.call(arguments),r=new Array(2),e;return n.length===4?e=f.abs(u.normal.inv(n[1]/2,0,1)*n[2]/f.sqrt(n[3])):e=f.abs(u.normal.inv(n[1]/2,0,1)*u.stdev(n[2])/f.sqrt(n[2].length)),r[0]=n[0]-e,r[1]=n[0]+e,r},tci:function(){var n=q.call(arguments),r=new Array(2),e;return n.length===4?e=f.abs(u.studentt.inv(n[1]/2,n[3]-1)*n[2]/f.sqrt(n[3])):e=f.abs(u.studentt.inv(n[1]/2,n[2].length-1)*u.stdev(n[2],!0)/f.sqrt(n[2].length)),r[0]=n[0]-e,r[1]=n[0]+e,r},significant:function(n,r){return n<r}}),u.extend(u.fn,{normalci:function(n,r){return u.normalci(n,r,this.toArray())},tci:function(n,r){return u.tci(n,r,this.toArray())}});function d(i,n,r,e){if(i>1||r>1||i<=0||r<=0)throw new Error("Proportions should be greater than 0 and less than 1");var o=(i*n+r*e)/(n+e),s=f.sqrt(o*(1-o)*(1/n+1/e));return(i-r)/s}u.extend(u.fn,{oneSidedDifferenceOfProportions:function(n,r,e,o){var s=d(n,r,e,o);return u.ztest(s,1)},twoSidedDifferenceOfProportions:function(n,r,e,o){var s=d(n,r,e,o);return u.ztest(s,2)}})}(h,Math),h.models=function(){function u(d){var i=d[0].length,n=h.arange(i).map(function(r){var e=h.arange(i).filter(function(o){return o!==r});return f(h.col(d,r).map(function(o){return o[0]}),h.col(d,e))});return n}function f(d,i){var n=d.length,r=i[0].length-1,e=n-r-1,o=h.lstsq(i,d),s=h.multiply(i,o.map(function(g){return[g]})).map(function(g){return g[0]}),l=h.subtract(d,s),v=h.mean(d),m=h.sum(s.map(function(g){return Math.pow(g-v,2)})),a=h.sum(d.map(function(g,y){return Math.pow(g-s[y],2)})),t=m+a,c=m/t;return{exog:i,endog:d,nobs:n,df_model:r,df_resid:e,coef:o,predict:s,resid:l,ybar:v,SST:t,SSE:m,SSR:a,R2:c}}function q(d){var i=u(d.exog),n=Math.sqrt(d.SSR/d.df_resid),r=i.map(function(v){var m=v.SST,a=v.R2;return n/Math.sqrt(m*(1-a))}),e=d.coef.map(function(v,m){return(v-0)/r[m]}),o=e.map(function(v){var m=h.studentt.cdf(v,d.df_resid);return(m>.5?1-m:m)*2}),s=h.studentt.inv(.975,d.df_resid),l=d.coef.map(function(v,m){var a=s*r[m];return[v-a,v+a]});return{se:r,t:e,p:o,sigmaHat:n,interval95:l}}function p(d){var i=d.R2/d.df_model/((1-d.R2)/d.df_resid),n=function(e,o,s){return h.beta.cdf(e/(s/o+e),o/2,s/2)},r=1-n(i,d.df_model,d.df_resid);return{F_statistic:i,pvalue:r}}function w(d,i){var n=f(d,i),r=q(n),e=p(n),o=1-(1-n.R2)*((n.nobs-1)/n.df_resid);return n.t=r,n.f=e,n.adjust_R2=o,n}return{ols:w}}(),h.extend({buildxmatrix:function(){for(var f=new Array(arguments.length),q=0;q<arguments.length;q++){var p=[1];f[q]=p.concat(arguments[q])}return h(f)},builddxmatrix:function(){for(var f=new Array(arguments[0].length),q=0;q<arguments[0].length;q++){var p=[1];f[q]=p.concat(arguments[0][q])}return h(f)},buildjxmatrix:function(f){for(var q=new Array(f.length),p=0;p<f.length;p++)q[p]=f[p];return h.builddxmatrix(q)},buildymatrix:function(f){return h(f).transpose()},buildjymatrix:function(f){return f.transpose()},matrixmult:function(f,q){var p,w,d,i,n;if(f.cols()==q.rows()){if(q.rows()>1){for(i=[],p=0;p<f.rows();p++)for(i[p]=[],w=0;w<q.cols();w++){for(n=0,d=0;d<f.cols();d++)n+=f.toArray()[p][d]*q.toArray()[d][w];i[p][w]=n}return h(i)}for(i=[],p=0;p<f.rows();p++)for(i[p]=[],w=0;w<q.cols();w++){for(n=0,d=0;d<f.cols();d++)n+=f.toArray()[p][d]*q.toArray()[w];i[p][w]=n}return h(i)}},regress:function(f,q){var p=h.xtranspxinv(f),w=f.transpose(),d=h.matrixmult(h(p),w);return h.matrixmult(d,q)},regresst:function(f,q,p){var w=h.regress(f,q),d={};d.anova={};var i=h.jMatYBar(f,w);d.yBar=i;var n=q.mean();d.anova.residuals=h.residuals(q,i),d.anova.ssr=h.ssr(i,n),d.anova.msr=d.anova.ssr/(f[0].length-1),d.anova.sse=h.sse(q,i),d.anova.mse=d.anova.sse/(q.length-(f[0].length-1)-1),d.anova.sst=h.sst(q,n),d.anova.mst=d.anova.sst/(q.length-1),d.anova.r2=1-d.anova.sse/d.anova.sst,d.anova.r2<0&&(d.anova.r2=0),d.anova.fratio=d.anova.msr/d.anova.mse,d.anova.pvalue=h.anovaftest(d.anova.fratio,f[0].length-1,q.length-(f[0].length-1)-1),d.anova.rmse=Math.sqrt(d.anova.mse),d.anova.r2adj=1-d.anova.mse/d.anova.mst,d.anova.r2adj<0&&(d.anova.r2adj=0),d.stats=new Array(f[0].length);for(var r=h.xtranspxinv(f),e,o,s,l=0;l<w.length;l++)e=Math.sqrt(d.anova.mse*Math.abs(r[l][l])),o=Math.abs(w[l]/e),s=h.ttest(o,q.length-f[0].length-1,p),d.stats[l]=[w[l],e,o,s];return d.regress=w,d},xtranspx:function(f){return h.matrixmult(f.transpose(),f)},xtranspxinv:function(f){var q=h.matrixmult(f.transpose(),f),p=h.inv(q);return p},jMatYBar:function(f,q){var p=h.matrixmult(f,q);return new h(p)},residuals:function(f,q){return h.matrixsubtract(f,q)},ssr:function(f,q){for(var p=0,w=0;w<f.length;w++)p+=Math.pow(f[w]-q,2);return p},sse:function(f,q){for(var p=0,w=0;w<f.length;w++)p+=Math.pow(f[w]-q[w],2);return p},sst:function(f,q){for(var p=0,w=0;w<f.length;w++)p+=Math.pow(f[w]-q,2);return p},matrixsubtract:function(f,q){for(var p=new Array(f.length),w=0;w<f.length;w++){p[w]=new Array(f[w].length);for(var d=0;d<f[w].length;d++)p[w][d]=f[w][d]-q[w][d]}return h(p)}}),h.jStat=h,h})}}]);
@@ -1 +1 @@
1
- (self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[8359],{82241:function(b){(function(D,v){b.exports=v()})(this,function(){return function(E){var D={};function v(h){if(D[h])return D[h].exports;var n=D[h]={i:h,l:!1,exports:{}};return E[h].call(n.exports,n,n.exports,v),n.l=!0,n.exports}return v.m=E,v.c=D,v.i=function(h){return h},v.d=function(h,n,e){v.o(h,n)||Object.defineProperty(h,n,{configurable:!1,enumerable:!0,get:e})},v.n=function(h){var n=h&&h.__esModule?function(){return h.default}:function(){return h};return v.d(n,"a",n),n},v.o=function(h,n){return Object.prototype.hasOwnProperty.call(h,n)},v.p="",v(v.s=26)}([function(E,D,v){"use strict";function h(){}h.QUALITY=1,h.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,h.DEFAULT_INCREMENTAL=!1,h.DEFAULT_ANIMATION_ON_LAYOUT=!0,h.DEFAULT_ANIMATION_DURING_LAYOUT=!1,h.DEFAULT_ANIMATION_PERIOD=50,h.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,h.DEFAULT_GRAPH_MARGIN=15,h.NODE_DIMENSIONS_INCLUDE_LABELS=!1,h.SIMPLE_NODE_SIZE=40,h.SIMPLE_NODE_HALF_SIZE=h.SIMPLE_NODE_SIZE/2,h.EMPTY_COMPOUND_NODE_SIZE=40,h.MIN_EDGE_LENGTH=1,h.WORLD_BOUNDARY=1e6,h.INITIAL_WORLD_BOUNDARY=h.WORLD_BOUNDARY/1e3,h.WORLD_CENTER_X=1200,h.WORLD_CENTER_Y=900,E.exports=h},function(E,D,v){"use strict";var h=v(2),n=v(8),e=v(9);function i(l,r,f){h.call(this,f),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=f,this.bendpoints=[],this.source=l,this.target=r}i.prototype=Object.create(h.prototype);for(var s in h)i[s]=h[s];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(l){if(this.source===l)return this.target;if(this.target===l)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(l,r){for(var f=this.getOtherEnd(l),t=r.getGraphManager().getRoot();;){if(f.getOwner()==r)return f;if(f.getOwner()==t)break;f=f.getOwner().getParent()}return null},i.prototype.updateLength=function(){var l=new Array(4);this.isOverlapingSourceAndTarget=n.getIntersection(this.target.getRect(),this.source.getRect(),l),this.isOverlapingSourceAndTarget||(this.lengthX=l[0]-l[2],this.lengthY=l[1]-l[3],Math.abs(this.lengthX)<1&&(this.lengthX=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},E.exports=i},function(E,D,v){"use strict";function h(n){this.vGraphObject=n}E.exports=h},function(E,D,v){"use strict";var h=v(2),n=v(10),e=v(13),i=v(0),s=v(16),l=v(4);function r(t,o,a,u){a==null&&u==null&&(u=o),h.call(this,u),t.graphManager!=null&&(t=t.graphManager),this.estimatedSize=n.MIN_VALUE,this.inclusionTreeDepth=n.MAX_VALUE,this.vGraphObject=u,this.edges=[],this.graphManager=t,a!=null&&o!=null?this.rect=new e(o.x,o.y,a.width,a.height):this.rect=new e}r.prototype=Object.create(h.prototype);for(var f in h)r[f]=h[f];r.prototype.getEdges=function(){return this.edges},r.prototype.getChild=function(){return this.child},r.prototype.getOwner=function(){return this.owner},r.prototype.getWidth=function(){return this.rect.width},r.prototype.setWidth=function(t){this.rect.width=t},r.prototype.getHeight=function(){return this.rect.height},r.prototype.setHeight=function(t){this.rect.height=t},r.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},r.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},r.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},r.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},r.prototype.getRect=function(){return this.rect},r.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},r.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},r.prototype.setRect=function(t,o){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=o.width,this.rect.height=o.height},r.prototype.setCenter=function(t,o){this.rect.x=t-this.rect.width/2,this.rect.y=o-this.rect.height/2},r.prototype.setLocation=function(t,o){this.rect.x=t,this.rect.y=o},r.prototype.moveBy=function(t,o){this.rect.x+=t,this.rect.y+=o},r.prototype.getEdgeListToNode=function(t){var o=[],a,u=this;return u.edges.forEach(function(g){if(g.target==t){if(g.source!=u)throw"Incorrect edge source!";o.push(g)}}),o},r.prototype.getEdgesBetween=function(t){var o=[],a,u=this;return u.edges.forEach(function(g){if(!(g.source==u||g.target==u))throw"Incorrect edge source and/or target";(g.target==t||g.source==t)&&o.push(g)}),o},r.prototype.getNeighborsList=function(){var t=new Set,o=this;return o.edges.forEach(function(a){if(a.source==o)t.add(a.target);else{if(a.target!=o)throw"Incorrect incidency!";t.add(a.source)}}),t},r.prototype.withChildren=function(){var t=new Set,o,a;if(t.add(this),this.child!=null)for(var u=this.child.getNodes(),g=0;g<u.length;g++)o=u[g],a=o.withChildren(),a.forEach(function(p){t.add(p)});return t},r.prototype.getNoOfChildren=function(){var t=0,o;if(this.child==null)t=1;else for(var a=this.child.getNodes(),u=0;u<a.length;u++)o=a[u],t+=o.getNoOfChildren();return t==0&&(t=1),t},r.prototype.getEstimatedSize=function(){if(this.estimatedSize==n.MIN_VALUE)throw"assert failed";return this.estimatedSize},r.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},r.prototype.scatter=function(){var t,o,a=-i.INITIAL_WORLD_BOUNDARY,u=i.INITIAL_WORLD_BOUNDARY;t=i.WORLD_CENTER_X+s.nextDouble()*(u-a)+a;var g=-i.INITIAL_WORLD_BOUNDARY,p=i.INITIAL_WORLD_BOUNDARY;o=i.WORLD_CENTER_Y+s.nextDouble()*(p-g)+g,this.rect.x=t,this.rect.y=o},r.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var t=this.getChild();if(t.updateBounds(!0),this.rect.x=t.getLeft(),this.rect.y=t.getTop(),this.setWidth(t.getRight()-t.getLeft()),this.setHeight(t.getBottom()-t.getTop()),i.NODE_DIMENSIONS_INCLUDE_LABELS){var o=t.getRight()-t.getLeft(),a=t.getBottom()-t.getTop();this.labelWidth>o&&(this.rect.x-=(this.labelWidth-o)/2,this.setWidth(this.labelWidth)),this.labelHeight>a&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-a)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-a),this.setHeight(this.labelHeight))}}},r.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==n.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},r.prototype.transform=function(t){var o=this.rect.x;o>i.WORLD_BOUNDARY?o=i.WORLD_BOUNDARY:o<-i.WORLD_BOUNDARY&&(o=-i.WORLD_BOUNDARY);var a=this.rect.y;a>i.WORLD_BOUNDARY?a=i.WORLD_BOUNDARY:a<-i.WORLD_BOUNDARY&&(a=-i.WORLD_BOUNDARY);var u=new l(o,a),g=t.inverseTransformPoint(u);this.setLocation(g.x,g.y)},r.prototype.getLeft=function(){return this.rect.x},r.prototype.getRight=function(){return this.rect.x+this.rect.width},r.prototype.getTop=function(){return this.rect.y},r.prototype.getBottom=function(){return this.rect.y+this.rect.height},r.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},E.exports=r},function(E,D,v){"use strict";function h(n,e){n==null&&e==null?(this.x=0,this.y=0):(this.x=n,this.y=e)}h.prototype.getX=function(){return this.x},h.prototype.getY=function(){return this.y},h.prototype.setX=function(n){this.x=n},h.prototype.setY=function(n){this.y=n},h.prototype.getDifference=function(n){return new DimensionD(this.x-n.x,this.y-n.y)},h.prototype.getCopy=function(){return new h(this.x,this.y)},h.prototype.translate=function(n){return this.x+=n.width,this.y+=n.height,this},E.exports=h},function(E,D,v){"use strict";var h=v(2),n=v(10),e=v(0),i=v(6),s=v(3),l=v(1),r=v(13),f=v(12),t=v(11);function o(u,g,p){h.call(this,p),this.estimatedSize=n.MIN_VALUE,this.margin=e.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=u,g!=null&&g instanceof i?this.graphManager=g:g!=null&&g instanceof Layout&&(this.graphManager=g.graphManager)}o.prototype=Object.create(h.prototype);for(var a in h)o[a]=h[a];o.prototype.getNodes=function(){return this.nodes},o.prototype.getEdges=function(){return this.edges},o.prototype.getGraphManager=function(){return this.graphManager},o.prototype.getParent=function(){return this.parent},o.prototype.getLeft=function(){return this.left},o.prototype.getRight=function(){return this.right},o.prototype.getTop=function(){return this.top},o.prototype.getBottom=function(){return this.bottom},o.prototype.isConnected=function(){return this.isConnected},o.prototype.add=function(u,g,p){if(g==null&&p==null){var c=u;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(c)>-1)throw"Node already in graph!";return c.owner=this,this.getNodes().push(c),c}else{var y=u;if(!(this.getNodes().indexOf(g)>-1&&this.getNodes().indexOf(p)>-1))throw"Source or target not in graph!";if(!(g.owner==p.owner&&g.owner==this))throw"Both owners must be this graph!";return g.owner!=p.owner?null:(y.source=g,y.target=p,y.isInterGraph=!1,this.getEdges().push(y),g.edges.push(y),p!=g&&p.edges.push(y),y)}},o.prototype.remove=function(u){var g=u;if(u instanceof s){if(g==null)throw"Node is null!";if(!(g.owner!=null&&g.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var p=g.edges.slice(),c,y=p.length,d=0;d<y;d++)c=p[d],c.isInterGraph?this.graphManager.remove(c):c.source.owner.remove(c);var L=this.nodes.indexOf(g);if(L==-1)throw"Node not in owner node list!";this.nodes.splice(L,1)}else if(u instanceof l){var c=u;if(c==null)throw"Edge is null!";if(!(c.source!=null&&c.target!=null))throw"Source and/or target is null!";if(!(c.source.owner!=null&&c.target.owner!=null&&c.source.owner==this&&c.target.owner==this))throw"Source and/or target owner is invalid!";var O=c.source.edges.indexOf(c),I=c.target.edges.indexOf(c);if(!(O>-1&&I>-1))throw"Source and/or target doesn't know this edge!";c.source.edges.splice(O,1),c.target!=c.source&&c.target.edges.splice(I,1);var L=c.source.owner.getEdges().indexOf(c);if(L==-1)throw"Not in owner's edge list!";c.source.owner.getEdges().splice(L,1)}},o.prototype.updateLeftTop=function(){for(var u=n.MAX_VALUE,g=n.MAX_VALUE,p,c,y,d=this.getNodes(),L=d.length,O=0;O<L;O++){var I=d[O];p=I.getTop(),c=I.getLeft(),u>p&&(u=p),g>c&&(g=c)}return u==n.MAX_VALUE?null:(d[0].getParent().paddingLeft!=null?y=d[0].getParent().paddingLeft:y=this.margin,this.left=g-y,this.top=u-y,new f(this.left,this.top))},o.prototype.updateBounds=function(u){for(var g=n.MAX_VALUE,p=-n.MAX_VALUE,c=n.MAX_VALUE,y=-n.MAX_VALUE,d,L,O,I,T,A=this.nodes,N=A.length,R=0;R<N;R++){var x=A[R];u&&x.child!=null&&x.updateBounds(),d=x.getLeft(),L=x.getRight(),O=x.getTop(),I=x.getBottom(),g>d&&(g=d),p<L&&(p=L),c>O&&(c=O),y<I&&(y=I)}var m=new r(g,c,p-g,y-c);g==n.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),A[0].getParent().paddingLeft!=null?T=A[0].getParent().paddingLeft:T=this.margin,this.left=m.x-T,this.right=m.x+m.width+T,this.top=m.y-T,this.bottom=m.y+m.height+T},o.calculateBounds=function(u){for(var g=n.MAX_VALUE,p=-n.MAX_VALUE,c=n.MAX_VALUE,y=-n.MAX_VALUE,d,L,O,I,T=u.length,A=0;A<T;A++){var N=u[A];d=N.getLeft(),L=N.getRight(),O=N.getTop(),I=N.getBottom(),g>d&&(g=d),p<L&&(p=L),c>O&&(c=O),y<I&&(y=I)}var R=new r(g,c,p-g,y-c);return R},o.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},o.prototype.getEstimatedSize=function(){if(this.estimatedSize==n.MIN_VALUE)throw"assert failed";return this.estimatedSize},o.prototype.calcEstimatedSize=function(){for(var u=0,g=this.nodes,p=g.length,c=0;c<p;c++){var y=g[c];u+=y.calcEstimatedSize()}return u==0?this.estimatedSize=e.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=u/Math.sqrt(this.nodes.length),this.estimatedSize},o.prototype.updateConnected=function(){var u=this;if(this.nodes.length==0){this.isConnected=!0;return}var g=new t,p=new Set,c=this.nodes[0],y,d,L=c.withChildren();for(L.forEach(function(R){g.push(R),p.add(R)});g.length!==0;){c=g.shift(),y=c.getEdges();for(var O=y.length,I=0;I<O;I++){var T=y[I];if(d=T.getOtherEndInGraph(c,this),d!=null&&!p.has(d)){var A=d.withChildren();A.forEach(function(R){g.push(R),p.add(R)})}}}if(this.isConnected=!1,p.size>=this.nodes.length){var N=0;p.forEach(function(R){R.owner==u&&N++}),N==this.nodes.length&&(this.isConnected=!0)}},E.exports=o},function(E,D,v){"use strict";var h,n=v(1);function e(i){h=v(5),this.layout=i,this.graphs=[],this.edges=[]}e.prototype.addRoot=function(){var i=this.layout.newGraph(),s=this.layout.newNode(null),l=this.add(i,s);return this.setRootGraph(l),this.rootGraph},e.prototype.add=function(i,s,l,r,f){if(l==null&&r==null&&f==null){if(i==null)throw"Graph is null!";if(s==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(s.child!=null)throw"Already has a child!";return i.parent=s,s.child=i,i}else{f=l,r=s,l=i;var t=r.getOwner(),o=f.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(o!=null&&o.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==o)return l.isInterGraph=!1,t.add(l,r,f);if(l.isInterGraph=!0,l.source=r,l.target=f,this.edges.indexOf(l)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(l),!(l.source!=null&&l.target!=null))throw"Edge source and/or target is null!";if(!(l.source.edges.indexOf(l)==-1&&l.target.edges.indexOf(l)==-1))throw"Edge already in source and/or target incidency list!";return l.source.edges.push(l),l.target.edges.push(l),l}},e.prototype.remove=function(i){if(i instanceof h){var s=i;if(s.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(s==this.rootGraph||s.parent!=null&&s.parent.graphManager==this))throw"Invalid parent node!";var l=[];l=l.concat(s.getEdges());for(var r,f=l.length,t=0;t<f;t++)r=l[t],s.remove(r);var o=[];o=o.concat(s.getNodes());var a;f=o.length;for(var t=0;t<f;t++)a=o[t],s.remove(a);s==this.rootGraph&&this.setRootGraph(null);var u=this.graphs.indexOf(s);this.graphs.splice(u,1),s.parent=null}else if(i instanceof n){if(r=i,r==null)throw"Edge is null!";if(!r.isInterGraph)throw"Not an inter-graph edge!";if(!(r.source!=null&&r.target!=null))throw"Source and/or target is null!";if(!(r.source.edges.indexOf(r)!=-1&&r.target.edges.indexOf(r)!=-1))throw"Source and/or target doesn't know this edge!";var u=r.source.edges.indexOf(r);if(r.source.edges.splice(u,1),u=r.target.edges.indexOf(r),r.target.edges.splice(u,1),!(r.source.owner!=null&&r.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(r.source.owner.getGraphManager().edges.indexOf(r)==-1)throw"Not in owner graph manager's edge list!";var u=r.source.owner.getGraphManager().edges.indexOf(r);r.source.owner.getGraphManager().edges.splice(u,1)}},e.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},e.prototype.getGraphs=function(){return this.graphs},e.prototype.getAllNodes=function(){if(this.allNodes==null){for(var i=[],s=this.getGraphs(),l=s.length,r=0;r<l;r++)i=i.concat(s[r].getNodes());this.allNodes=i}return this.allNodes},e.prototype.resetAllNodes=function(){this.allNodes=null},e.prototype.resetAllEdges=function(){this.allEdges=null},e.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},e.prototype.getAllEdges=function(){if(this.allEdges==null){for(var i=[],s=this.getGraphs(),l=s.length,r=0;r<s.length;r++)i=i.concat(s[r].getEdges());i=i.concat(this.edges),this.allEdges=i}return this.allEdges},e.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},e.prototype.setAllNodesToApplyGravitation=function(i){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=i},e.prototype.getRoot=function(){return this.rootGraph},e.prototype.setRootGraph=function(i){if(i.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=i,i.parent==null&&(i.parent=this.layout.newNode("Root node"))},e.prototype.getLayout=function(){return this.layout},e.prototype.isOneAncestorOfOther=function(i,s){if(!(i!=null&&s!=null))throw"assert failed";if(i==s)return!0;var l=i.getOwner(),r;do{if(r=l.getParent(),r==null)break;if(r==s)return!0;if(l=r.getOwner(),l==null)break}while(!0);l=s.getOwner();do{if(r=l.getParent(),r==null)break;if(r==i)return!0;if(l=r.getOwner(),l==null)break}while(!0);return!1},e.prototype.calcLowestCommonAncestors=function(){for(var i,s,l,r,f,t=this.getAllEdges(),o=t.length,a=0;a<o;a++){if(i=t[a],s=i.source,l=i.target,i.lca=null,i.sourceInLca=s,i.targetInLca=l,s==l){i.lca=s.getOwner();continue}for(r=s.getOwner();i.lca==null;){for(i.targetInLca=l,f=l.getOwner();i.lca==null;){if(f==r){i.lca=f;break}if(f==this.rootGraph)break;if(i.lca!=null)throw"assert failed";i.targetInLca=f.getParent(),f=i.targetInLca.getOwner()}if(r==this.rootGraph)break;i.lca==null&&(i.sourceInLca=r.getParent(),r=i.sourceInLca.getOwner())}if(i.lca==null)throw"assert failed"}},e.prototype.calcLowestCommonAncestor=function(i,s){if(i==s)return i.getOwner();var l=i.getOwner();do{if(l==null)break;var r=s.getOwner();do{if(r==null)break;if(r==l)return r;r=r.getParent().getOwner()}while(!0);l=l.getParent().getOwner()}while(!0);return l},e.prototype.calcInclusionTreeDepths=function(i,s){i==null&&s==null&&(i=this.rootGraph,s=1);for(var l,r=i.getNodes(),f=r.length,t=0;t<f;t++)l=r[t],l.inclusionTreeDepth=s,l.child!=null&&this.calcInclusionTreeDepths(l.child,s+1)},e.prototype.includesInvalidEdge=function(){for(var i,s=this.edges.length,l=0;l<s;l++)if(i=this.edges[l],this.isOneAncestorOfOther(i.source,i.target))return!0;return!1},E.exports=e},function(E,D,v){"use strict";var h=v(0);function n(){}for(var e in h)n[e]=h[e];n.MAX_ITERATIONS=2500,n.DEFAULT_EDGE_LENGTH=50,n.DEFAULT_SPRING_STRENGTH=.45,n.DEFAULT_REPULSION_STRENGTH=4500,n.DEFAULT_GRAVITY_STRENGTH=.4,n.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,n.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,n.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,n.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,n.COOLING_ADAPTATION_FACTOR=.33,n.ADAPTATION_LOWER_NODE_LIMIT=1e3,n.ADAPTATION_UPPER_NODE_LIMIT=5e3,n.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,n.MAX_NODE_DISPLACEMENT=n.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,n.MIN_REPULSION_DIST=n.DEFAULT_EDGE_LENGTH/10,n.CONVERGENCE_CHECK_PERIOD=100,n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,n.MIN_EDGE_LENGTH=1,n.GRID_CALCULATION_CHECK_PERIOD=10,E.exports=n},function(E,D,v){"use strict";var h=v(12);function n(){}n.calcSeparationAmount=function(e,i,s,l){if(!e.intersects(i))throw"assert failed";var r=new Array(2);this.decideDirectionsForOverlappingNodes(e,i,r),s[0]=Math.min(e.getRight(),i.getRight())-Math.max(e.x,i.x),s[1]=Math.min(e.getBottom(),i.getBottom())-Math.max(e.y,i.y),e.getX()<=i.getX()&&e.getRight()>=i.getRight()?s[0]+=Math.min(i.getX()-e.getX(),e.getRight()-i.getRight()):i.getX()<=e.getX()&&i.getRight()>=e.getRight()&&(s[0]+=Math.min(e.getX()-i.getX(),i.getRight()-e.getRight())),e.getY()<=i.getY()&&e.getBottom()>=i.getBottom()?s[1]+=Math.min(i.getY()-e.getY(),e.getBottom()-i.getBottom()):i.getY()<=e.getY()&&i.getBottom()>=e.getBottom()&&(s[1]+=Math.min(e.getY()-i.getY(),i.getBottom()-e.getBottom()));var f=Math.abs((i.getCenterY()-e.getCenterY())/(i.getCenterX()-e.getCenterX()));i.getCenterY()===e.getCenterY()&&i.getCenterX()===e.getCenterX()&&(f=1);var t=f*s[0],o=s[1]/f;s[0]<o?o=s[0]:t=s[1],s[0]=-1*r[0]*(o/2+l),s[1]=-1*r[1]*(t/2+l)},n.decideDirectionsForOverlappingNodes=function(e,i,s){e.getCenterX()<i.getCenterX()?s[0]=-1:s[0]=1,e.getCenterY()<i.getCenterY()?s[1]=-1:s[1]=1},n.getIntersection2=function(e,i,s){var l=e.getCenterX(),r=e.getCenterY(),f=i.getCenterX(),t=i.getCenterY();if(e.intersects(i))return s[0]=l,s[1]=r,s[2]=f,s[3]=t,!0;var o=e.getX(),a=e.getY(),u=e.getRight(),g=e.getX(),p=e.getBottom(),c=e.getRight(),y=e.getWidthHalf(),d=e.getHeightHalf(),L=i.getX(),O=i.getY(),I=i.getRight(),T=i.getX(),A=i.getBottom(),N=i.getRight(),R=i.getWidthHalf(),x=i.getHeightHalf(),m=!1,w=!1;if(l===f){if(r>t)return s[0]=l,s[1]=a,s[2]=f,s[3]=A,!1;if(r<t)return s[0]=l,s[1]=p,s[2]=f,s[3]=O,!1}else if(r===t){if(l>f)return s[0]=o,s[1]=r,s[2]=I,s[3]=t,!1;if(l<f)return s[0]=u,s[1]=r,s[2]=L,s[3]=t,!1}else{var C=e.height/e.width,X=i.height/i.width,M=(t-r)/(f-l),U=void 0,P=void 0,F=void 0,G=void 0,S=void 0,Y=void 0;if(-C===M?l>f?(s[0]=g,s[1]=p,m=!0):(s[0]=u,s[1]=a,m=!0):C===M&&(l>f?(s[0]=o,s[1]=a,m=!0):(s[0]=c,s[1]=p,m=!0)),-X===M?f>l?(s[2]=T,s[3]=A,w=!0):(s[2]=I,s[3]=O,w=!0):X===M&&(f>l?(s[2]=L,s[3]=O,w=!0):(s[2]=N,s[3]=A,w=!0)),m&&w)return!1;if(l>f?r>t?(U=this.getCardinalDirection(C,M,4),P=this.getCardinalDirection(X,M,2)):(U=this.getCardinalDirection(-C,M,3),P=this.getCardinalDirection(-X,M,1)):r>t?(U=this.getCardinalDirection(-C,M,1),P=this.getCardinalDirection(-X,M,3)):(U=this.getCardinalDirection(C,M,2),P=this.getCardinalDirection(X,M,4)),!m)switch(U){case 1:G=a,F=l+-d/M,s[0]=F,s[1]=G;break;case 2:F=c,G=r+y*M,s[0]=F,s[1]=G;break;case 3:G=p,F=l+d/M,s[0]=F,s[1]=G;break;case 4:F=g,G=r+-y*M,s[0]=F,s[1]=G;break}if(!w)switch(P){case 1:Y=O,S=f+-x/M,s[2]=S,s[3]=Y;break;case 2:S=N,Y=t+R*M,s[2]=S,s[3]=Y;break;case 3:Y=A,S=f+x/M,s[2]=S,s[3]=Y;break;case 4:S=T,Y=t+-R*M,s[2]=S,s[3]=Y;break}}return!1},n.getCardinalDirection=function(e,i,s){return e>i?s:1+s%4},n.getIntersection=function(e,i,s,l){if(l==null)return this.getIntersection2(e,i,s);var r=e.x,f=e.y,t=i.x,o=i.y,a=s.x,u=s.y,g=l.x,p=l.y,c=void 0,y=void 0,d=void 0,L=void 0,O=void 0,I=void 0,T=void 0,A=void 0,N=void 0;return d=o-f,O=r-t,T=t*f-r*o,L=p-u,I=a-g,A=g*u-a*p,N=d*I-L*O,N===0?null:(c=(O*A-I*T)/N,y=(L*T-d*A)/N,new h(c,y))},n.angleOfVector=function(e,i,s,l){var r=void 0;return e!==s?(r=Math.atan((l-i)/(s-e)),s<e?r+=Math.PI:l<i&&(r+=this.TWO_PI)):l<i?r=this.ONE_AND_HALF_PI:r=this.HALF_PI,r},n.doIntersect=function(e,i,s,l){var r=e.x,f=e.y,t=i.x,o=i.y,a=s.x,u=s.y,g=l.x,p=l.y,c=(t-r)*(p-u)-(g-a)*(o-f);if(c===0)return!1;var y=((p-u)*(g-r)+(a-g)*(p-f))/c,d=((f-o)*(g-r)+(t-r)*(p-f))/c;return 0<y&&y<1&&0<d&&d<1},n.HALF_PI=.5*Math.PI,n.ONE_AND_HALF_PI=1.5*Math.PI,n.TWO_PI=2*Math.PI,n.THREE_PI=3*Math.PI,E.exports=n},function(E,D,v){"use strict";function h(){}h.sign=function(n){return n>0?1:n<0?-1:0},h.floor=function(n){return n<0?Math.ceil(n):Math.floor(n)},h.ceil=function(n){return n<0?Math.floor(n):Math.ceil(n)},E.exports=h},function(E,D,v){"use strict";function h(){}h.MAX_VALUE=2147483647,h.MIN_VALUE=-2147483648,E.exports=h},function(E,D,v){"use strict";var h=function(){function r(f,t){for(var o=0;o<t.length;o++){var a=t[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(f,a.key,a)}}return function(f,t,o){return t&&r(f.prototype,t),o&&r(f,o),f}}();function n(r,f){if(!(r instanceof f))throw new TypeError("Cannot call a class as a function")}var e=function(f){return{value:f,next:null,prev:null}},i=function(f,t,o,a){return f!==null?f.next=t:a.head=t,o!==null?o.prev=t:a.tail=t,t.prev=f,t.next=o,a.length++,t},s=function(f,t){var o=f.prev,a=f.next;return o!==null?o.next=a:t.head=a,a!==null?a.prev=o:t.tail=o,f.prev=f.next=null,t.length--,f},l=function(){function r(f){var t=this;n(this,r),this.length=0,this.head=null,this.tail=null,f!=null&&f.forEach(function(o){return t.push(o)})}return h(r,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(t,o){return i(o.prev,e(t),o,this)}},{key:"insertAfter",value:function(t,o){return i(o,e(t),o.next,this)}},{key:"insertNodeBefore",value:function(t,o){return i(o.prev,t,o,this)}},{key:"insertNodeAfter",value:function(t,o){return i(o,t,o.next,this)}},{key:"push",value:function(t){return i(this.tail,e(t),null,this)}},{key:"unshift",value:function(t){return i(null,e(t),this.head,this)}},{key:"remove",value:function(t){return s(t,this)}},{key:"pop",value:function(){return s(this.tail,this).value}},{key:"popNode",value:function(){return s(this.tail,this)}},{key:"shift",value:function(){return s(this.head,this).value}},{key:"shiftNode",value:function(){return s(this.head,this)}},{key:"get_object_at",value:function(t){if(t<=this.length()){for(var o=1,a=this.head;o<t;)a=a.next,o++;return a.value}}},{key:"set_object_at",value:function(t,o){if(t<=this.length()){for(var a=1,u=this.head;a<t;)u=u.next,a++;u.value=o}}}]),r}();E.exports=l},function(E,D,v){"use strict";function h(n,e,i){this.x=null,this.y=null,n==null&&e==null&&i==null?(this.x=0,this.y=0):typeof n=="number"&&typeof e=="number"&&i==null?(this.x=n,this.y=e):n.constructor.name=="Point"&&e==null&&i==null&&(i=n,this.x=i.x,this.y=i.y)}h.prototype.getX=function(){return this.x},h.prototype.getY=function(){return this.y},h.prototype.getLocation=function(){return new h(this.x,this.y)},h.prototype.setLocation=function(n,e,i){n.constructor.name=="Point"&&e==null&&i==null?(i=n,this.setLocation(i.x,i.y)):typeof n=="number"&&typeof e=="number"&&i==null&&(parseInt(n)==n&&parseInt(e)==e?this.move(n,e):(this.x=Math.floor(n+.5),this.y=Math.floor(e+.5)))},h.prototype.move=function(n,e){this.x=n,this.y=e},h.prototype.translate=function(n,e){this.x+=n,this.y+=e},h.prototype.equals=function(n){if(n.constructor.name=="Point"){var e=n;return this.x==e.x&&this.y==e.y}return this==n},h.prototype.toString=function(){return new h().constructor.name+"[x="+this.x+",y="+this.y+"]"},E.exports=h},function(E,D,v){"use strict";function h(n,e,i,s){this.x=0,this.y=0,this.width=0,this.height=0,n!=null&&e!=null&&i!=null&&s!=null&&(this.x=n,this.y=e,this.width=i,this.height=s)}h.prototype.getX=function(){return this.x},h.prototype.setX=function(n){this.x=n},h.prototype.getY=function(){return this.y},h.prototype.setY=function(n){this.y=n},h.prototype.getWidth=function(){return this.width},h.prototype.setWidth=function(n){this.width=n},h.prototype.getHeight=function(){return this.height},h.prototype.setHeight=function(n){this.height=n},h.prototype.getRight=function(){return this.x+this.width},h.prototype.getBottom=function(){return this.y+this.height},h.prototype.intersects=function(n){return!(this.getRight()<n.x||this.getBottom()<n.y||n.getRight()<this.x||n.getBottom()<this.y)},h.prototype.getCenterX=function(){return this.x+this.width/2},h.prototype.getMinX=function(){return this.getX()},h.prototype.getMaxX=function(){return this.getX()+this.width},h.prototype.getCenterY=function(){return this.y+this.height/2},h.prototype.getMinY=function(){return this.getY()},h.prototype.getMaxY=function(){return this.getY()+this.height},h.prototype.getWidthHalf=function(){return this.width/2},h.prototype.getHeightHalf=function(){return this.height/2},E.exports=h},function(E,D,v){"use strict";var h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function n(){}n.lastID=0,n.createID=function(e){return n.isPrimitive(e)?e:(e.uniqueID!=null||(e.uniqueID=n.getString(),n.lastID++),e.uniqueID)},n.getString=function(e){return e==null&&(e=n.lastID),"Object#"+e},n.isPrimitive=function(e){var i=typeof e=="undefined"?"undefined":h(e);return e==null||i!="object"&&i!="function"},E.exports=n},function(E,D,v){"use strict";function h(a){if(Array.isArray(a)){for(var u=0,g=Array(a.length);u<a.length;u++)g[u]=a[u];return g}else return Array.from(a)}var n=v(0),e=v(6),i=v(3),s=v(1),l=v(5),r=v(4),f=v(17),t=v(27);function o(a){t.call(this),this.layoutQuality=n.QUALITY,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=n.DEFAULT_INCREMENTAL,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new e(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,a!=null&&(this.isRemoteUse=a)}o.RANDOM_SEED=1,o.prototype=Object.create(t.prototype),o.prototype.getGraphManager=function(){return this.graphManager},o.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},o.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},o.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},o.prototype.newGraphManager=function(){var a=new e(this);return this.graphManager=a,a},o.prototype.newGraph=function(a){return new l(null,this.graphManager,a)},o.prototype.newNode=function(a){return new i(this.graphManager,a)},o.prototype.newEdge=function(a){return new s(null,null,a)},o.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},o.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var a;return this.checkLayoutSuccess()?a=!1:a=this.layout(),n.ANIMATE==="during"?!1:(a&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,a)},o.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},o.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var a,u=this.graphManager.getAllEdges(),g=0;g<u.length;g++)a=u[g];for(var p,c=this.graphManager.getRoot().getNodes(),g=0;g<c.length;g++)p=c[g];this.update(this.graphManager.getRoot())}},o.prototype.update=function(a){if(a==null)this.update2();else if(a instanceof i){var u=a;if(u.getChild()!=null)for(var g=u.getChild().getNodes(),p=0;p<g.length;p++)update(g[p]);if(u.vGraphObject!=null){var c=u.vGraphObject;c.update(u)}}else if(a instanceof s){var y=a;if(y.vGraphObject!=null){var d=y.vGraphObject;d.update(y)}}else if(a instanceof l){var L=a;if(L.vGraphObject!=null){var O=L.vGraphObject;O.update(L)}}},o.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=n.QUALITY,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=n.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},o.prototype.transform=function(a){if(a==null)this.transform(new r(0,0));else{var u=new f,g=this.graphManager.getRoot().updateLeftTop();if(g!=null){u.setWorldOrgX(a.x),u.setWorldOrgY(a.y),u.setDeviceOrgX(g.x),u.setDeviceOrgY(g.y);for(var p=this.getAllNodes(),c,y=0;y<p.length;y++)c=p[y],c.transform(u)}}},o.prototype.positionNodesRandomly=function(a){if(a==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var u,g,p=a.getNodes(),c=0;c<p.length;c++)u=p[c],g=u.getChild(),g==null||g.getNodes().length==0?u.scatter():(this.positionNodesRandomly(g),u.updateBounds())},o.prototype.getFlatForest=function(){for(var a=[],u=!0,g=this.graphManager.getRoot().getNodes(),p=!0,c=0;c<g.length;c++)g[c].getChild()!=null&&(p=!1);if(!p)return a;var y=new Set,d=[],L=new Map,O=[];for(O=O.concat(g);O.length>0&&u;){for(d.push(O[0]);d.length>0&&u;){var I=d[0];d.splice(0,1),y.add(I);for(var T=I.getEdges(),c=0;c<T.length;c++){var A=T[c].getOtherEnd(I);if(L.get(I)!=A)if(!y.has(A))d.push(A),L.set(A,I);else{u=!1;break}}}if(!u)a=[];else{var N=[].concat(h(y));a.push(N);for(var c=0;c<N.length;c++){var R=N[c],x=O.indexOf(R);x>-1&&O.splice(x,1)}y=new Set,L=new Map}}return a},o.prototype.createDummyNodesForBendpoints=function(a){for(var u=[],g=a.source,p=this.graphManager.calcLowestCommonAncestor(a.source,a.target),c=0;c<a.bendpoints.length;c++){var y=this.newNode(null);y.setRect(new Point(0,0),new Dimension(1,1)),p.add(y);var d=this.newEdge(null);this.graphManager.add(d,g,y),u.add(y),g=y}var d=this.newEdge(null);return this.graphManager.add(d,g,a.target),this.edgeToDummyNodes.set(a,u),a.isInterGraph()?this.graphManager.remove(a):p.remove(a),u},o.prototype.createBendpointsFromDummyNodes=function(){var a=[];a=a.concat(this.graphManager.getAllEdges()),a=[].concat(h(this.edgeToDummyNodes.keys())).concat(a);for(var u=0;u<a.length;u++){var g=a[u];if(g.bendpoints.length>0){for(var p=this.edgeToDummyNodes.get(g),c=0;c<p.length;c++){var y=p[c],d=new r(y.getCenterX(),y.getCenterY()),L=g.bendpoints.get(c);L.x=d.x,L.y=d.y,y.getOwner().remove(y)}this.graphManager.add(g,g.source,g.target)}}},o.transform=function(a,u,g,p){if(g!=null&&p!=null){var c=u;if(a<=50){var y=u/g;c-=(u-y)/50*(50-a)}else{var d=u*p;c+=(d-u)/50*(a-50)}return c}else{var L,O;return a<=50?(L=9*u/500,O=u/10):(L=9*u/50,O=-8*u),L*a+O}},o.findCenterOfTree=function(a){var u=[];u=u.concat(a);var g=[],p=new Map,c=!1,y=null;(u.length==1||u.length==2)&&(c=!0,y=u[0]);for(var d=0;d<u.length;d++){var L=u[d],O=L.getNeighborsList().size;p.set(L,L.getNeighborsList().size),O==1&&g.push(L)}var I=[];for(I=I.concat(g);!c;){var T=[];T=T.concat(I),I=[];for(var d=0;d<u.length;d++){var L=u[d],A=u.indexOf(L);A>=0&&u.splice(A,1);var N=L.getNeighborsList();N.forEach(function(m){if(g.indexOf(m)<0){var w=p.get(m),C=w-1;C==1&&I.push(m),p.set(m,C)}})}g=g.concat(I),(u.length==1||u.length==2)&&(c=!0,y=u[0])}return y},o.prototype.setGraphManager=function(a){this.graphManager=a},E.exports=o},function(E,D,v){"use strict";function h(){}h.seed=1,h.x=0,h.nextDouble=function(){return h.x=Math.sin(h.seed++)*1e4,h.x-Math.floor(h.x)},E.exports=h},function(E,D,v){"use strict";var h=v(4);function n(e,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}n.prototype.getWorldOrgX=function(){return this.lworldOrgX},n.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},n.prototype.getWorldOrgY=function(){return this.lworldOrgY},n.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},n.prototype.getWorldExtX=function(){return this.lworldExtX},n.prototype.setWorldExtX=function(e){this.lworldExtX=e},n.prototype.getWorldExtY=function(){return this.lworldExtY},n.prototype.setWorldExtY=function(e){this.lworldExtY=e},n.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},n.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},n.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},n.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},n.prototype.getDeviceExtX=function(){return this.ldeviceExtX},n.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},n.prototype.getDeviceExtY=function(){return this.ldeviceExtY},n.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},n.prototype.transformX=function(e){var i=0,s=this.lworldExtX;return s!=0&&(i=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/s),i},n.prototype.transformY=function(e){var i=0,s=this.lworldExtY;return s!=0&&(i=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/s),i},n.prototype.inverseTransformX=function(e){var i=0,s=this.ldeviceExtX;return s!=0&&(i=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/s),i},n.prototype.inverseTransformY=function(e){var i=0,s=this.ldeviceExtY;return s!=0&&(i=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/s),i},n.prototype.inverseTransformPoint=function(e){var i=new h(this.inverseTransformX(e.x),this.inverseTransformY(e.y));return i},E.exports=n},function(E,D,v){"use strict";function h(t){if(Array.isArray(t)){for(var o=0,a=Array(t.length);o<t.length;o++)a[o]=t[o];return a}else return Array.from(t)}var n=v(15),e=v(7),i=v(0),s=v(8),l=v(9);function r(){n.call(this),this.useSmartIdealEdgeLengthCalculation=e.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=e.DEFAULT_EDGE_LENGTH,this.springConstant=e.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=e.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=e.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=e.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=e.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*e.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=e.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=e.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=e.MAX_ITERATIONS}r.prototype=Object.create(n.prototype);for(var f in n)r[f]=n[f];r.prototype.initParameters=function(){n.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=e.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},r.prototype.calcIdealEdgeLengths=function(){for(var t,o,a,u,g,p,c=this.getGraphManager().getAllEdges(),y=0;y<c.length;y++)t=c[y],t.idealLength=this.idealEdgeLength,t.isInterGraph&&(a=t.getSource(),u=t.getTarget(),g=t.getSourceInLca().getEstimatedSize(),p=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=g+p-2*i.SIMPLE_NODE_SIZE),o=t.getLca().getInclusionTreeDepth(),t.idealLength+=e.DEFAULT_EDGE_LENGTH*e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(a.getInclusionTreeDepth()+u.getInclusionTreeDepth()-2*o))},r.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;this.incremental?(t>e.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*e.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-e.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=e.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>e.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(e.COOLING_ADAPTATION_FACTOR,1-(t-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*(1-e.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=e.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},r.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),o,a=0;a<t.length;a++)o=t[a],this.calcSpringForce(o,o.idealLength)},r.prototype.calcRepulsionForces=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a,u,g,p,c=this.getAllNodes(),y;if(this.useFRGridVariant)for(this.totalIterations%e.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),y=new Set,a=0;a<c.length;a++)g=c[a],this.calculateRepulsionForceOfANode(g,y,t,o),y.add(g);else for(a=0;a<c.length;a++)for(g=c[a],u=a+1;u<c.length;u++)p=c[u],g.getOwner()==p.getOwner()&&this.calcRepulsionForce(g,p)},r.prototype.calcGravitationalForces=function(){for(var t,o=this.getAllNodesToApplyGravitation(),a=0;a<o.length;a++)t=o[a],this.calcGravitationalForce(t)},r.prototype.moveNodes=function(){for(var t=this.getAllNodes(),o,a=0;a<t.length;a++)o=t[a],o.move()},r.prototype.calcSpringForce=function(t,o){var a=t.getSource(),u=t.getTarget(),g,p,c,y;if(this.uniformLeafNodeSizes&&a.getChild()==null&&u.getChild()==null)t.updateLengthSimple();else if(t.updateLength(),t.isOverlapingSourceAndTarget)return;g=t.getLength(),g!=0&&(p=this.springConstant*(g-o),c=p*(t.lengthX/g),y=p*(t.lengthY/g),a.springForceX+=c,a.springForceY+=y,u.springForceX-=c,u.springForceY-=y)},r.prototype.calcRepulsionForce=function(t,o){var a=t.getRect(),u=o.getRect(),g=new Array(2),p=new Array(4),c,y,d,L,O,I,T;if(a.intersects(u)){s.calcSeparationAmount(a,u,g,e.DEFAULT_EDGE_LENGTH/2),I=2*g[0],T=2*g[1];var A=t.noOfChildren*o.noOfChildren/(t.noOfChildren+o.noOfChildren);t.repulsionForceX-=A*I,t.repulsionForceY-=A*T,o.repulsionForceX+=A*I,o.repulsionForceY+=A*T}else this.uniformLeafNodeSizes&&t.getChild()==null&&o.getChild()==null?(c=u.getCenterX()-a.getCenterX(),y=u.getCenterY()-a.getCenterY()):(s.getIntersection(a,u,p),c=p[2]-p[0],y=p[3]-p[1]),Math.abs(c)<e.MIN_REPULSION_DIST&&(c=l.sign(c)*e.MIN_REPULSION_DIST),Math.abs(y)<e.MIN_REPULSION_DIST&&(y=l.sign(y)*e.MIN_REPULSION_DIST),d=c*c+y*y,L=Math.sqrt(d),O=this.repulsionConstant*t.noOfChildren*o.noOfChildren/d,I=O*c/L,T=O*y/L,t.repulsionForceX-=I,t.repulsionForceY-=T,o.repulsionForceX+=I,o.repulsionForceY+=T},r.prototype.calcGravitationalForce=function(t){var o,a,u,g,p,c,y,d;o=t.getOwner(),a=(o.getRight()+o.getLeft())/2,u=(o.getTop()+o.getBottom())/2,g=t.getCenterX()-a,p=t.getCenterY()-u,c=Math.abs(g)+t.getWidth()/2,y=Math.abs(p)+t.getHeight()/2,t.getOwner()==this.graphManager.getRoot()?(d=o.getEstimatedSize()*this.gravityRangeFactor,(c>d||y>d)&&(t.gravitationForceX=-this.gravityConstant*g,t.gravitationForceY=-this.gravityConstant*p)):(d=o.getEstimatedSize()*this.compoundGravityRangeFactor,(c>d||y>d)&&(t.gravitationForceX=-this.gravityConstant*g*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*p*this.compoundGravityConstant))},r.prototype.isConverged=function(){var t,o=!1;return this.totalIterations>this.maxIterations/3&&(o=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,t||o},r.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},r.prototype.calcNoOfChildrenForAllNodes=function(){for(var t,o=this.graphManager.getAllNodes(),a=0;a<o.length;a++)t=o[a],t.noOfChildren=t.getNoOfChildren()},r.prototype.calcGrid=function(t){var o=0,a=0;o=parseInt(Math.ceil((t.getRight()-t.getLeft())/this.repulsionRange)),a=parseInt(Math.ceil((t.getBottom()-t.getTop())/this.repulsionRange));for(var u=new Array(o),g=0;g<o;g++)u[g]=new Array(a);for(var g=0;g<o;g++)for(var p=0;p<a;p++)u[g][p]=new Array;return u},r.prototype.addNodeToGrid=function(t,o,a){var u=0,g=0,p=0,c=0;u=parseInt(Math.floor((t.getRect().x-o)/this.repulsionRange)),g=parseInt(Math.floor((t.getRect().width+t.getRect().x-o)/this.repulsionRange)),p=parseInt(Math.floor((t.getRect().y-a)/this.repulsionRange)),c=parseInt(Math.floor((t.getRect().height+t.getRect().y-a)/this.repulsionRange));for(var y=u;y<=g;y++)for(var d=p;d<=c;d++)this.grid[y][d].push(t),t.setGridCoordinates(u,g,p,c)},r.prototype.updateGrid=function(){var t,o,a=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),t=0;t<a.length;t++)o=a[t],this.addNodeToGrid(o,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},r.prototype.calculateRepulsionForceOfANode=function(t,o,a,u){if(this.totalIterations%e.GRID_CALCULATION_CHECK_PERIOD==1&&a||u){var g=new Set;t.surrounding=new Array;for(var p,c=this.grid,y=t.startX-1;y<t.finishX+2;y++)for(var d=t.startY-1;d<t.finishY+2;d++)if(!(y<0||d<0||y>=c.length||d>=c[0].length)){for(var L=0;L<c[y][d].length;L++)if(p=c[y][d][L],!(t.getOwner()!=p.getOwner()||t==p)&&!o.has(p)&&!g.has(p)){var O=Math.abs(t.getCenterX()-p.getCenterX())-(t.getWidth()/2+p.getWidth()/2),I=Math.abs(t.getCenterY()-p.getCenterY())-(t.getHeight()/2+p.getHeight()/2);O<=this.repulsionRange&&I<=this.repulsionRange&&g.add(p)}}t.surrounding=[].concat(h(g))}for(y=0;y<t.surrounding.length;y++)this.calcRepulsionForce(t,t.surrounding[y])},r.prototype.calcRepulsionRange=function(){return 0},E.exports=r},function(E,D,v){"use strict";var h=v(1),n=v(7);function e(s,l,r){h.call(this,s,l,r),this.idealLength=n.DEFAULT_EDGE_LENGTH}e.prototype=Object.create(h.prototype);for(var i in h)e[i]=h[i];E.exports=e},function(E,D,v){"use strict";var h=v(3);function n(i,s,l,r){h.call(this,i,s,l,r),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}n.prototype=Object.create(h.prototype);for(var e in h)n[e]=h[e];n.prototype.setGridCoordinates=function(i,s,l,r){this.startX=i,this.finishX=s,this.startY=l,this.finishY=r},E.exports=n},function(E,D,v){"use strict";function h(n,e){this.width=0,this.height=0,n!==null&&e!==null&&(this.height=e,this.width=n)}h.prototype.getWidth=function(){return this.width},h.prototype.setWidth=function(n){this.width=n},h.prototype.getHeight=function(){return this.height},h.prototype.setHeight=function(n){this.height=n},E.exports=h},function(E,D,v){"use strict";var h=v(14);function n(){this.map={},this.keys=[]}n.prototype.put=function(e,i){var s=h.createID(e);this.contains(s)||(this.map[s]=i,this.keys.push(e))},n.prototype.contains=function(e){var i=h.createID(e);return this.map[e]!=null},n.prototype.get=function(e){var i=h.createID(e);return this.map[i]},n.prototype.keySet=function(){return this.keys},E.exports=n},function(E,D,v){"use strict";var h=v(14);function n(){this.set={}}n.prototype.add=function(e){var i=h.createID(e);this.contains(i)||(this.set[i]=e)},n.prototype.remove=function(e){delete this.set[h.createID(e)]},n.prototype.clear=function(){this.set={}},n.prototype.contains=function(e){return this.set[h.createID(e)]==e},n.prototype.isEmpty=function(){return this.size()===0},n.prototype.size=function(){return Object.keys(this.set).length},n.prototype.addAllTo=function(e){for(var i=Object.keys(this.set),s=i.length,l=0;l<s;l++)e.push(this.set[i[l]])},n.prototype.size=function(){return Object.keys(this.set).length},n.prototype.addAll=function(e){for(var i=e.length,s=0;s<i;s++){var l=e[s];this.add(l)}},E.exports=n},function(E,D,v){"use strict";var h=function(){function s(l,r){for(var f=0;f<r.length;f++){var t=r[f];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(l,t.key,t)}}return function(l,r,f){return r&&s(l.prototype,r),f&&s(l,f),l}}();function n(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}var e=v(11),i=function(){function s(l,r){n(this,s),(r!==null||r!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var f=void 0;l instanceof e?f=l.size():f=l.length,this._quicksort(l,0,f-1)}return h(s,[{key:"_quicksort",value:function(r,f,t){if(f<t){var o=this._partition(r,f,t);this._quicksort(r,f,o),this._quicksort(r,o+1,t)}}},{key:"_partition",value:function(r,f,t){for(var o=this._get(r,f),a=f,u=t;;){for(;this.compareFunction(o,this._get(r,u));)u--;for(;this.compareFunction(this._get(r,a),o);)a++;if(a<u)this._swap(r,a,u),a++,u--;else return u}}},{key:"_get",value:function(r,f){return r instanceof e?r.get_object_at(f):r[f]}},{key:"_set",value:function(r,f,t){r instanceof e?r.set_object_at(f,t):r[f]=t}},{key:"_swap",value:function(r,f,t){var o=this._get(r,f);this._set(r,f,this._get(r,t)),this._set(r,t,o)}},{key:"_defaultCompareFunction",value:function(r,f){return f>r}}]),s}();E.exports=i},function(E,D,v){"use strict";var h=function(){function i(s,l){for(var r=0;r<l.length;r++){var f=l[r];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,l,r){return l&&i(s.prototype,l),r&&i(s,r),s}}();function n(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}var e=function(){function i(s,l){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;n(this,i),this.sequence1=s,this.sequence2=l,this.match_score=r,this.mismatch_penalty=f,this.gap_penalty=t,this.iMax=s.length+1,this.jMax=l.length+1,this.grid=new Array(this.iMax);for(var o=0;o<this.iMax;o++){this.grid[o]=new Array(this.jMax);for(var a=0;a<this.jMax;a++)this.grid[o][a]=0}this.tracebackGrid=new Array(this.iMax);for(var u=0;u<this.iMax;u++){this.tracebackGrid[u]=new Array(this.jMax);for(var g=0;g<this.jMax;g++)this.tracebackGrid[u][g]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return h(i,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var l=1;l<this.jMax;l++)this.grid[0][l]=this.grid[0][l-1]+this.gap_penalty,this.tracebackGrid[0][l]=[!1,!1,!0];for(var r=1;r<this.iMax;r++)this.grid[r][0]=this.grid[r-1][0]+this.gap_penalty,this.tracebackGrid[r][0]=[!1,!0,!1];for(var f=1;f<this.iMax;f++)for(var t=1;t<this.jMax;t++){var o=void 0;this.sequence1[f-1]===this.sequence2[t-1]?o=this.grid[f-1][t-1]+this.match_score:o=this.grid[f-1][t-1]+this.mismatch_penalty;var a=this.grid[f-1][t]+this.gap_penalty,u=this.grid[f][t-1]+this.gap_penalty,g=[o,a,u],p=this.arrayAllMaxIndexes(g);this.grid[f][t]=g[p[0]],this.tracebackGrid[f][t]=[p.includes(0),p.includes(1),p.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var l=[];for(l.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});l[0];){var r=l[0],f=this.tracebackGrid[r.pos[0]][r.pos[1]];f[0]&&l.push({pos:[r.pos[0]-1,r.pos[1]-1],seq1:this.sequence1[r.pos[0]-1]+r.seq1,seq2:this.sequence2[r.pos[1]-1]+r.seq2}),f[1]&&l.push({pos:[r.pos[0]-1,r.pos[1]],seq1:this.sequence1[r.pos[0]-1]+r.seq1,seq2:"-"+r.seq2}),f[2]&&l.push({pos:[r.pos[0],r.pos[1]-1],seq1:"-"+r.seq1,seq2:this.sequence2[r.pos[1]-1]+r.seq2}),r.pos[0]===0&&r.pos[1]===0&&this.alignments.push({sequence1:r.seq1,sequence2:r.seq2}),l.shift()}return this.alignments}},{key:"getAllIndexes",value:function(l,r){for(var f=[],t=-1;(t=l.indexOf(r,t+1))!==-1;)f.push(t);return f}},{key:"arrayAllMaxIndexes",value:function(l){return this.getAllIndexes(l,Math.max.apply(null,l))}}]),i}();E.exports=e},function(E,D,v){"use strict";var h=function(){};h.FDLayout=v(18),h.FDLayoutConstants=v(7),h.FDLayoutEdge=v(19),h.FDLayoutNode=v(20),h.DimensionD=v(21),h.HashMap=v(22),h.HashSet=v(23),h.IGeometry=v(8),h.IMath=v(9),h.Integer=v(10),h.Point=v(12),h.PointD=v(4),h.RandomSeed=v(16),h.RectangleD=v(13),h.Transform=v(17),h.UniqueIDGeneretor=v(14),h.Quicksort=v(24),h.LinkedList=v(11),h.LGraphObject=v(2),h.LGraph=v(5),h.LEdge=v(1),h.LGraphManager=v(6),h.LNode=v(3),h.Layout=v(15),h.LayoutConstants=v(0),h.NeedlemanWunsch=v(25),E.exports=h},function(E,D,v){"use strict";function h(){this.listeners=[]}var n=h.prototype;n.addListener=function(e,i){this.listeners.push({event:e,callback:i})},n.removeListener=function(e,i){for(var s=this.listeners.length;s>=0;s--){var l=this.listeners[s];l.event===e&&l.callback===i&&this.listeners.splice(s,1)}},n.emit=function(e,i){for(var s=0;s<this.listeners.length;s++){var l=this.listeners[s];e===l.event&&l.callback(i)}},E.exports=h}])})}}]);
1
+ (self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[8359],{82241:function(b){(function(D,v){b.exports=v()})(this,function(){return function(E){var D={};function v(h){if(D[h])return D[h].exports;var n=D[h]={i:h,l:!1,exports:{}};return E[h].call(n.exports,n,n.exports,v),n.l=!0,n.exports}return v.m=E,v.c=D,v.i=function(h){return h},v.d=function(h,n,e){v.o(h,n)||Object.defineProperty(h,n,{configurable:!1,enumerable:!0,get:e})},v.n=function(h){var n=h&&h.__esModule?function(){return h.default}:function(){return h};return v.d(n,"a",n),n},v.o=function(h,n){return Object.prototype.hasOwnProperty.call(h,n)},v.p="",v(v.s=26)}([function(E,D,v){"use strict";function h(){}h.QUALITY=1,h.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,h.DEFAULT_INCREMENTAL=!1,h.DEFAULT_ANIMATION_ON_LAYOUT=!0,h.DEFAULT_ANIMATION_DURING_LAYOUT=!1,h.DEFAULT_ANIMATION_PERIOD=50,h.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,h.DEFAULT_GRAPH_MARGIN=15,h.NODE_DIMENSIONS_INCLUDE_LABELS=!1,h.SIMPLE_NODE_SIZE=40,h.SIMPLE_NODE_HALF_SIZE=h.SIMPLE_NODE_SIZE/2,h.EMPTY_COMPOUND_NODE_SIZE=40,h.MIN_EDGE_LENGTH=1,h.WORLD_BOUNDARY=1e6,h.INITIAL_WORLD_BOUNDARY=h.WORLD_BOUNDARY/1e3,h.WORLD_CENTER_X=1200,h.WORLD_CENTER_Y=900,E.exports=h},function(E,D,v){"use strict";var h=v(2),n=v(8),e=v(9);function i(l,r,f){h.call(this,f),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=f,this.bendpoints=[],this.source=l,this.target=r}i.prototype=Object.create(h.prototype);for(var s in h)i[s]=h[s];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(l){if(this.source===l)return this.target;if(this.target===l)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(l,r){for(var f=this.getOtherEnd(l),t=r.getGraphManager().getRoot();;){if(f.getOwner()==r)return f;if(f.getOwner()==t)break;f=f.getOwner().getParent()}return null},i.prototype.updateLength=function(){var l=new Array(4);this.isOverlapingSourceAndTarget=n.getIntersection(this.target.getRect(),this.source.getRect(),l),this.isOverlapingSourceAndTarget||(this.lengthX=l[0]-l[2],this.lengthY=l[1]-l[3],Math.abs(this.lengthX)<1&&(this.lengthX=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},E.exports=i},function(E,D,v){"use strict";function h(n){this.vGraphObject=n}E.exports=h},function(E,D,v){"use strict";var h=v(2),n=v(10),e=v(13),i=v(0),s=v(16),l=v(4);function r(t,o,a,u){a==null&&u==null&&(u=o),h.call(this,u),t.graphManager!=null&&(t=t.graphManager),this.estimatedSize=n.MIN_VALUE,this.inclusionTreeDepth=n.MAX_VALUE,this.vGraphObject=u,this.edges=[],this.graphManager=t,a!=null&&o!=null?this.rect=new e(o.x,o.y,a.width,a.height):this.rect=new e}r.prototype=Object.create(h.prototype);for(var f in h)r[f]=h[f];r.prototype.getEdges=function(){return this.edges},r.prototype.getChild=function(){return this.child},r.prototype.getOwner=function(){return this.owner},r.prototype.getWidth=function(){return this.rect.width},r.prototype.setWidth=function(t){this.rect.width=t},r.prototype.getHeight=function(){return this.rect.height},r.prototype.setHeight=function(t){this.rect.height=t},r.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},r.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},r.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},r.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},r.prototype.getRect=function(){return this.rect},r.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},r.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},r.prototype.setRect=function(t,o){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=o.width,this.rect.height=o.height},r.prototype.setCenter=function(t,o){this.rect.x=t-this.rect.width/2,this.rect.y=o-this.rect.height/2},r.prototype.setLocation=function(t,o){this.rect.x=t,this.rect.y=o},r.prototype.moveBy=function(t,o){this.rect.x+=t,this.rect.y+=o},r.prototype.getEdgeListToNode=function(t){var o=[],a,u=this;return u.edges.forEach(function(g){if(g.target==t){if(g.source!=u)throw"Incorrect edge source!";o.push(g)}}),o},r.prototype.getEdgesBetween=function(t){var o=[],a,u=this;return u.edges.forEach(function(g){if(!(g.source==u||g.target==u))throw"Incorrect edge source and/or target";(g.target==t||g.source==t)&&o.push(g)}),o},r.prototype.getNeighborsList=function(){var t=new Set,o=this;return o.edges.forEach(function(a){if(a.source==o)t.add(a.target);else{if(a.target!=o)throw"Incorrect incidency!";t.add(a.source)}}),t},r.prototype.withChildren=function(){var t=new Set,o,a;if(t.add(this),this.child!=null)for(var u=this.child.getNodes(),g=0;g<u.length;g++)o=u[g],a=o.withChildren(),a.forEach(function(p){t.add(p)});return t},r.prototype.getNoOfChildren=function(){var t=0,o;if(this.child==null)t=1;else for(var a=this.child.getNodes(),u=0;u<a.length;u++)o=a[u],t+=o.getNoOfChildren();return t==0&&(t=1),t},r.prototype.getEstimatedSize=function(){if(this.estimatedSize==n.MIN_VALUE)throw"assert failed";return this.estimatedSize},r.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},r.prototype.scatter=function(){var t,o,a=-i.INITIAL_WORLD_BOUNDARY,u=i.INITIAL_WORLD_BOUNDARY;t=i.WORLD_CENTER_X+s.nextDouble()*(u-a)+a;var g=-i.INITIAL_WORLD_BOUNDARY,p=i.INITIAL_WORLD_BOUNDARY;o=i.WORLD_CENTER_Y+s.nextDouble()*(p-g)+g,this.rect.x=t,this.rect.y=o},r.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var t=this.getChild();if(t.updateBounds(!0),this.rect.x=t.getLeft(),this.rect.y=t.getTop(),this.setWidth(t.getRight()-t.getLeft()),this.setHeight(t.getBottom()-t.getTop()),i.NODE_DIMENSIONS_INCLUDE_LABELS){var o=t.getRight()-t.getLeft(),a=t.getBottom()-t.getTop();this.labelWidth>o&&(this.rect.x-=(this.labelWidth-o)/2,this.setWidth(this.labelWidth)),this.labelHeight>a&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-a)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-a),this.setHeight(this.labelHeight))}}},r.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==n.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},r.prototype.transform=function(t){var o=this.rect.x;o>i.WORLD_BOUNDARY?o=i.WORLD_BOUNDARY:o<-i.WORLD_BOUNDARY&&(o=-i.WORLD_BOUNDARY);var a=this.rect.y;a>i.WORLD_BOUNDARY?a=i.WORLD_BOUNDARY:a<-i.WORLD_BOUNDARY&&(a=-i.WORLD_BOUNDARY);var u=new l(o,a),g=t.inverseTransformPoint(u);this.setLocation(g.x,g.y)},r.prototype.getLeft=function(){return this.rect.x},r.prototype.getRight=function(){return this.rect.x+this.rect.width},r.prototype.getTop=function(){return this.rect.y},r.prototype.getBottom=function(){return this.rect.y+this.rect.height},r.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},E.exports=r},function(E,D,v){"use strict";function h(n,e){n==null&&e==null?(this.x=0,this.y=0):(this.x=n,this.y=e)}h.prototype.getX=function(){return this.x},h.prototype.getY=function(){return this.y},h.prototype.setX=function(n){this.x=n},h.prototype.setY=function(n){this.y=n},h.prototype.getDifference=function(n){return new DimensionD(this.x-n.x,this.y-n.y)},h.prototype.getCopy=function(){return new h(this.x,this.y)},h.prototype.translate=function(n){return this.x+=n.width,this.y+=n.height,this},E.exports=h},function(E,D,v){"use strict";var h=v(2),n=v(10),e=v(0),i=v(6),s=v(3),l=v(1),r=v(13),f=v(12),t=v(11);function o(u,g,p){h.call(this,p),this.estimatedSize=n.MIN_VALUE,this.margin=e.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=u,g!=null&&g instanceof i?this.graphManager=g:g!=null&&g instanceof Layout&&(this.graphManager=g.graphManager)}o.prototype=Object.create(h.prototype);for(var a in h)o[a]=h[a];o.prototype.getNodes=function(){return this.nodes},o.prototype.getEdges=function(){return this.edges},o.prototype.getGraphManager=function(){return this.graphManager},o.prototype.getParent=function(){return this.parent},o.prototype.getLeft=function(){return this.left},o.prototype.getRight=function(){return this.right},o.prototype.getTop=function(){return this.top},o.prototype.getBottom=function(){return this.bottom},o.prototype.isConnected=function(){return this.isConnected},o.prototype.add=function(u,g,p){if(g==null&&p==null){var c=u;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(c)>-1)throw"Node already in graph!";return c.owner=this,this.getNodes().push(c),c}else{var y=u;if(!(this.getNodes().indexOf(g)>-1&&this.getNodes().indexOf(p)>-1))throw"Source or target not in graph!";if(!(g.owner==p.owner&&g.owner==this))throw"Both owners must be this graph!";return g.owner!=p.owner?null:(y.source=g,y.target=p,y.isInterGraph=!1,this.getEdges().push(y),g.edges.push(y),p!=g&&p.edges.push(y),y)}},o.prototype.remove=function(u){var g=u;if(u instanceof s){if(g==null)throw"Node is null!";if(!(g.owner!=null&&g.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var p=g.edges.slice(),c,y=p.length,d=0;d<y;d++)c=p[d],c.isInterGraph?this.graphManager.remove(c):c.source.owner.remove(c);var L=this.nodes.indexOf(g);if(L==-1)throw"Node not in owner node list!";this.nodes.splice(L,1)}else if(u instanceof l){var c=u;if(c==null)throw"Edge is null!";if(!(c.source!=null&&c.target!=null))throw"Source and/or target is null!";if(!(c.source.owner!=null&&c.target.owner!=null&&c.source.owner==this&&c.target.owner==this))throw"Source and/or target owner is invalid!";var O=c.source.edges.indexOf(c),I=c.target.edges.indexOf(c);if(!(O>-1&&I>-1))throw"Source and/or target doesn't know this edge!";c.source.edges.splice(O,1),c.target!=c.source&&c.target.edges.splice(I,1);var L=c.source.owner.getEdges().indexOf(c);if(L==-1)throw"Not in owner's edge list!";c.source.owner.getEdges().splice(L,1)}},o.prototype.updateLeftTop=function(){for(var u=n.MAX_VALUE,g=n.MAX_VALUE,p,c,y,d=this.getNodes(),L=d.length,O=0;O<L;O++){var I=d[O];p=I.getTop(),c=I.getLeft(),u>p&&(u=p),g>c&&(g=c)}return u==n.MAX_VALUE?null:(d[0].getParent().paddingLeft!=null?y=d[0].getParent().paddingLeft:y=this.margin,this.left=g-y,this.top=u-y,new f(this.left,this.top))},o.prototype.updateBounds=function(u){for(var g=n.MAX_VALUE,p=-n.MAX_VALUE,c=n.MAX_VALUE,y=-n.MAX_VALUE,d,L,O,I,T,A=this.nodes,N=A.length,R=0;R<N;R++){var x=A[R];u&&x.child!=null&&x.updateBounds(),d=x.getLeft(),L=x.getRight(),O=x.getTop(),I=x.getBottom(),g>d&&(g=d),p<L&&(p=L),c>O&&(c=O),y<I&&(y=I)}var m=new r(g,c,p-g,y-c);g==n.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),A[0].getParent().paddingLeft!=null?T=A[0].getParent().paddingLeft:T=this.margin,this.left=m.x-T,this.right=m.x+m.width+T,this.top=m.y-T,this.bottom=m.y+m.height+T},o.calculateBounds=function(u){for(var g=n.MAX_VALUE,p=-n.MAX_VALUE,c=n.MAX_VALUE,y=-n.MAX_VALUE,d,L,O,I,T=u.length,A=0;A<T;A++){var N=u[A];d=N.getLeft(),L=N.getRight(),O=N.getTop(),I=N.getBottom(),g>d&&(g=d),p<L&&(p=L),c>O&&(c=O),y<I&&(y=I)}var R=new r(g,c,p-g,y-c);return R},o.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},o.prototype.getEstimatedSize=function(){if(this.estimatedSize==n.MIN_VALUE)throw"assert failed";return this.estimatedSize},o.prototype.calcEstimatedSize=function(){for(var u=0,g=this.nodes,p=g.length,c=0;c<p;c++){var y=g[c];u+=y.calcEstimatedSize()}return u==0?this.estimatedSize=e.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=u/Math.sqrt(this.nodes.length),this.estimatedSize},o.prototype.updateConnected=function(){var u=this;if(this.nodes.length==0){this.isConnected=!0;return}var g=new t,p=new Set,c=this.nodes[0],y,d,L=c.withChildren();for(L.forEach(function(R){g.push(R),p.add(R)});g.length!==0;){c=g.shift(),y=c.getEdges();for(var O=y.length,I=0;I<O;I++){var T=y[I];if(d=T.getOtherEndInGraph(c,this),d!=null&&!p.has(d)){var A=d.withChildren();A.forEach(function(R){g.push(R),p.add(R)})}}}if(this.isConnected=!1,p.size>=this.nodes.length){var N=0;p.forEach(function(R){R.owner==u&&N++}),N==this.nodes.length&&(this.isConnected=!0)}},E.exports=o},function(E,D,v){"use strict";var h,n=v(1);function e(i){h=v(5),this.layout=i,this.graphs=[],this.edges=[]}e.prototype.addRoot=function(){var i=this.layout.newGraph(),s=this.layout.newNode(null),l=this.add(i,s);return this.setRootGraph(l),this.rootGraph},e.prototype.add=function(i,s,l,r,f){if(l==null&&r==null&&f==null){if(i==null)throw"Graph is null!";if(s==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(s.child!=null)throw"Already has a child!";return i.parent=s,s.child=i,i}else{f=l,r=s,l=i;var t=r.getOwner(),o=f.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(o!=null&&o.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==o)return l.isInterGraph=!1,t.add(l,r,f);if(l.isInterGraph=!0,l.source=r,l.target=f,this.edges.indexOf(l)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(l),!(l.source!=null&&l.target!=null))throw"Edge source and/or target is null!";if(!(l.source.edges.indexOf(l)==-1&&l.target.edges.indexOf(l)==-1))throw"Edge already in source and/or target incidency list!";return l.source.edges.push(l),l.target.edges.push(l),l}},e.prototype.remove=function(i){if(i instanceof h){var s=i;if(s.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(s==this.rootGraph||s.parent!=null&&s.parent.graphManager==this))throw"Invalid parent node!";var l=[];l=l.concat(s.getEdges());for(var r,f=l.length,t=0;t<f;t++)r=l[t],s.remove(r);var o=[];o=o.concat(s.getNodes());var a;f=o.length;for(var t=0;t<f;t++)a=o[t],s.remove(a);s==this.rootGraph&&this.setRootGraph(null);var u=this.graphs.indexOf(s);this.graphs.splice(u,1),s.parent=null}else if(i instanceof n){if(r=i,r==null)throw"Edge is null!";if(!r.isInterGraph)throw"Not an inter-graph edge!";if(!(r.source!=null&&r.target!=null))throw"Source and/or target is null!";if(!(r.source.edges.indexOf(r)!=-1&&r.target.edges.indexOf(r)!=-1))throw"Source and/or target doesn't know this edge!";var u=r.source.edges.indexOf(r);if(r.source.edges.splice(u,1),u=r.target.edges.indexOf(r),r.target.edges.splice(u,1),!(r.source.owner!=null&&r.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(r.source.owner.getGraphManager().edges.indexOf(r)==-1)throw"Not in owner graph manager's edge list!";var u=r.source.owner.getGraphManager().edges.indexOf(r);r.source.owner.getGraphManager().edges.splice(u,1)}},e.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},e.prototype.getGraphs=function(){return this.graphs},e.prototype.getAllNodes=function(){if(this.allNodes==null){for(var i=[],s=this.getGraphs(),l=s.length,r=0;r<l;r++)i=i.concat(s[r].getNodes());this.allNodes=i}return this.allNodes},e.prototype.resetAllNodes=function(){this.allNodes=null},e.prototype.resetAllEdges=function(){this.allEdges=null},e.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},e.prototype.getAllEdges=function(){if(this.allEdges==null){for(var i=[],s=this.getGraphs(),l=s.length,r=0;r<s.length;r++)i=i.concat(s[r].getEdges());i=i.concat(this.edges),this.allEdges=i}return this.allEdges},e.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},e.prototype.setAllNodesToApplyGravitation=function(i){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=i},e.prototype.getRoot=function(){return this.rootGraph},e.prototype.setRootGraph=function(i){if(i.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=i,i.parent==null&&(i.parent=this.layout.newNode("Root node"))},e.prototype.getLayout=function(){return this.layout},e.prototype.isOneAncestorOfOther=function(i,s){if(!(i!=null&&s!=null))throw"assert failed";if(i==s)return!0;var l=i.getOwner(),r;do{if(r=l.getParent(),r==null)break;if(r==s)return!0;if(l=r.getOwner(),l==null)break}while(!0);l=s.getOwner();do{if(r=l.getParent(),r==null)break;if(r==i)return!0;if(l=r.getOwner(),l==null)break}while(!0);return!1},e.prototype.calcLowestCommonAncestors=function(){for(var i,s,l,r,f,t=this.getAllEdges(),o=t.length,a=0;a<o;a++){if(i=t[a],s=i.source,l=i.target,i.lca=null,i.sourceInLca=s,i.targetInLca=l,s==l){i.lca=s.getOwner();continue}for(r=s.getOwner();i.lca==null;){for(i.targetInLca=l,f=l.getOwner();i.lca==null;){if(f==r){i.lca=f;break}if(f==this.rootGraph)break;if(i.lca!=null)throw"assert failed";i.targetInLca=f.getParent(),f=i.targetInLca.getOwner()}if(r==this.rootGraph)break;i.lca==null&&(i.sourceInLca=r.getParent(),r=i.sourceInLca.getOwner())}if(i.lca==null)throw"assert failed"}},e.prototype.calcLowestCommonAncestor=function(i,s){if(i==s)return i.getOwner();var l=i.getOwner();do{if(l==null)break;var r=s.getOwner();do{if(r==null)break;if(r==l)return r;r=r.getParent().getOwner()}while(!0);l=l.getParent().getOwner()}while(!0);return l},e.prototype.calcInclusionTreeDepths=function(i,s){i==null&&s==null&&(i=this.rootGraph,s=1);for(var l,r=i.getNodes(),f=r.length,t=0;t<f;t++)l=r[t],l.inclusionTreeDepth=s,l.child!=null&&this.calcInclusionTreeDepths(l.child,s+1)},e.prototype.includesInvalidEdge=function(){for(var i,s=this.edges.length,l=0;l<s;l++)if(i=this.edges[l],this.isOneAncestorOfOther(i.source,i.target))return!0;return!1},E.exports=e},function(E,D,v){"use strict";var h=v(0);function n(){}for(var e in h)n[e]=h[e];n.MAX_ITERATIONS=2500,n.DEFAULT_EDGE_LENGTH=50,n.DEFAULT_SPRING_STRENGTH=.45,n.DEFAULT_REPULSION_STRENGTH=4500,n.DEFAULT_GRAVITY_STRENGTH=.4,n.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,n.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,n.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,n.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,n.COOLING_ADAPTATION_FACTOR=.33,n.ADAPTATION_LOWER_NODE_LIMIT=1e3,n.ADAPTATION_UPPER_NODE_LIMIT=5e3,n.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,n.MAX_NODE_DISPLACEMENT=n.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,n.MIN_REPULSION_DIST=n.DEFAULT_EDGE_LENGTH/10,n.CONVERGENCE_CHECK_PERIOD=100,n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,n.MIN_EDGE_LENGTH=1,n.GRID_CALCULATION_CHECK_PERIOD=10,E.exports=n},function(E,D,v){"use strict";var h=v(12);function n(){}n.calcSeparationAmount=function(e,i,s,l){if(!e.intersects(i))throw"assert failed";var r=new Array(2);this.decideDirectionsForOverlappingNodes(e,i,r),s[0]=Math.min(e.getRight(),i.getRight())-Math.max(e.x,i.x),s[1]=Math.min(e.getBottom(),i.getBottom())-Math.max(e.y,i.y),e.getX()<=i.getX()&&e.getRight()>=i.getRight()?s[0]+=Math.min(i.getX()-e.getX(),e.getRight()-i.getRight()):i.getX()<=e.getX()&&i.getRight()>=e.getRight()&&(s[0]+=Math.min(e.getX()-i.getX(),i.getRight()-e.getRight())),e.getY()<=i.getY()&&e.getBottom()>=i.getBottom()?s[1]+=Math.min(i.getY()-e.getY(),e.getBottom()-i.getBottom()):i.getY()<=e.getY()&&i.getBottom()>=e.getBottom()&&(s[1]+=Math.min(e.getY()-i.getY(),i.getBottom()-e.getBottom()));var f=Math.abs((i.getCenterY()-e.getCenterY())/(i.getCenterX()-e.getCenterX()));i.getCenterY()===e.getCenterY()&&i.getCenterX()===e.getCenterX()&&(f=1);var t=f*s[0],o=s[1]/f;s[0]<o?o=s[0]:t=s[1],s[0]=-1*r[0]*(o/2+l),s[1]=-1*r[1]*(t/2+l)},n.decideDirectionsForOverlappingNodes=function(e,i,s){e.getCenterX()<i.getCenterX()?s[0]=-1:s[0]=1,e.getCenterY()<i.getCenterY()?s[1]=-1:s[1]=1},n.getIntersection2=function(e,i,s){var l=e.getCenterX(),r=e.getCenterY(),f=i.getCenterX(),t=i.getCenterY();if(e.intersects(i))return s[0]=l,s[1]=r,s[2]=f,s[3]=t,!0;var o=e.getX(),a=e.getY(),u=e.getRight(),g=e.getX(),p=e.getBottom(),c=e.getRight(),y=e.getWidthHalf(),d=e.getHeightHalf(),L=i.getX(),O=i.getY(),I=i.getRight(),T=i.getX(),A=i.getBottom(),N=i.getRight(),R=i.getWidthHalf(),x=i.getHeightHalf(),m=!1,w=!1;if(l===f){if(r>t)return s[0]=l,s[1]=a,s[2]=f,s[3]=A,!1;if(r<t)return s[0]=l,s[1]=p,s[2]=f,s[3]=O,!1}else if(r===t){if(l>f)return s[0]=o,s[1]=r,s[2]=I,s[3]=t,!1;if(l<f)return s[0]=u,s[1]=r,s[2]=L,s[3]=t,!1}else{var C=e.height/e.width,X=i.height/i.width,M=(t-r)/(f-l),U=void 0,P=void 0,F=void 0,G=void 0,S=void 0,Y=void 0;if(-C===M?l>f?(s[0]=g,s[1]=p,m=!0):(s[0]=u,s[1]=a,m=!0):C===M&&(l>f?(s[0]=o,s[1]=a,m=!0):(s[0]=c,s[1]=p,m=!0)),-X===M?f>l?(s[2]=T,s[3]=A,w=!0):(s[2]=I,s[3]=O,w=!0):X===M&&(f>l?(s[2]=L,s[3]=O,w=!0):(s[2]=N,s[3]=A,w=!0)),m&&w)return!1;if(l>f?r>t?(U=this.getCardinalDirection(C,M,4),P=this.getCardinalDirection(X,M,2)):(U=this.getCardinalDirection(-C,M,3),P=this.getCardinalDirection(-X,M,1)):r>t?(U=this.getCardinalDirection(-C,M,1),P=this.getCardinalDirection(-X,M,3)):(U=this.getCardinalDirection(C,M,2),P=this.getCardinalDirection(X,M,4)),!m)switch(U){case 1:G=a,F=l+-d/M,s[0]=F,s[1]=G;break;case 2:F=c,G=r+y*M,s[0]=F,s[1]=G;break;case 3:G=p,F=l+d/M,s[0]=F,s[1]=G;break;case 4:F=g,G=r+-y*M,s[0]=F,s[1]=G;break}if(!w)switch(P){case 1:Y=O,S=f+-x/M,s[2]=S,s[3]=Y;break;case 2:S=N,Y=t+R*M,s[2]=S,s[3]=Y;break;case 3:Y=A,S=f+x/M,s[2]=S,s[3]=Y;break;case 4:S=T,Y=t+-R*M,s[2]=S,s[3]=Y;break}}return!1},n.getCardinalDirection=function(e,i,s){return e>i?s:1+s%4},n.getIntersection=function(e,i,s,l){if(l==null)return this.getIntersection2(e,i,s);var r=e.x,f=e.y,t=i.x,o=i.y,a=s.x,u=s.y,g=l.x,p=l.y,c=void 0,y=void 0,d=void 0,L=void 0,O=void 0,I=void 0,T=void 0,A=void 0,N=void 0;return d=o-f,O=r-t,T=t*f-r*o,L=p-u,I=a-g,A=g*u-a*p,N=d*I-L*O,N===0?null:(c=(O*A-I*T)/N,y=(L*T-d*A)/N,new h(c,y))},n.angleOfVector=function(e,i,s,l){var r=void 0;return e!==s?(r=Math.atan((l-i)/(s-e)),s<e?r+=Math.PI:l<i&&(r+=this.TWO_PI)):l<i?r=this.ONE_AND_HALF_PI:r=this.HALF_PI,r},n.doIntersect=function(e,i,s,l){var r=e.x,f=e.y,t=i.x,o=i.y,a=s.x,u=s.y,g=l.x,p=l.y,c=(t-r)*(p-u)-(g-a)*(o-f);if(c===0)return!1;var y=((p-u)*(g-r)+(a-g)*(p-f))/c,d=((f-o)*(g-r)+(t-r)*(p-f))/c;return 0<y&&y<1&&0<d&&d<1},n.HALF_PI=.5*Math.PI,n.ONE_AND_HALF_PI=1.5*Math.PI,n.TWO_PI=2*Math.PI,n.THREE_PI=3*Math.PI,E.exports=n},function(E,D,v){"use strict";function h(){}h.sign=function(n){return n>0?1:n<0?-1:0},h.floor=function(n){return n<0?Math.ceil(n):Math.floor(n)},h.ceil=function(n){return n<0?Math.floor(n):Math.ceil(n)},E.exports=h},function(E,D,v){"use strict";function h(){}h.MAX_VALUE=2147483647,h.MIN_VALUE=-2147483648,E.exports=h},function(E,D,v){"use strict";var h=function(){function r(f,t){for(var o=0;o<t.length;o++){var a=t[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(f,a.key,a)}}return function(f,t,o){return t&&r(f.prototype,t),o&&r(f,o),f}}();function n(r,f){if(!(r instanceof f))throw new TypeError("Cannot call a class as a function")}var e=function(f){return{value:f,next:null,prev:null}},i=function(f,t,o,a){return f!==null?f.next=t:a.head=t,o!==null?o.prev=t:a.tail=t,t.prev=f,t.next=o,a.length++,t},s=function(f,t){var o=f.prev,a=f.next;return o!==null?o.next=a:t.head=a,a!==null?a.prev=o:t.tail=o,f.prev=f.next=null,t.length--,f},l=function(){function r(f){var t=this;n(this,r),this.length=0,this.head=null,this.tail=null,f!=null&&f.forEach(function(o){return t.push(o)})}return h(r,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(t,o){return i(o.prev,e(t),o,this)}},{key:"insertAfter",value:function(t,o){return i(o,e(t),o.next,this)}},{key:"insertNodeBefore",value:function(t,o){return i(o.prev,t,o,this)}},{key:"insertNodeAfter",value:function(t,o){return i(o,t,o.next,this)}},{key:"push",value:function(t){return i(this.tail,e(t),null,this)}},{key:"unshift",value:function(t){return i(null,e(t),this.head,this)}},{key:"remove",value:function(t){return s(t,this)}},{key:"pop",value:function(){return s(this.tail,this).value}},{key:"popNode",value:function(){return s(this.tail,this)}},{key:"shift",value:function(){return s(this.head,this).value}},{key:"shiftNode",value:function(){return s(this.head,this)}},{key:"get_object_at",value:function(t){if(t<=this.length()){for(var o=1,a=this.head;o<t;)a=a.next,o++;return a.value}}},{key:"set_object_at",value:function(t,o){if(t<=this.length()){for(var a=1,u=this.head;a<t;)u=u.next,a++;u.value=o}}}]),r}();E.exports=l},function(E,D,v){"use strict";function h(n,e,i){this.x=null,this.y=null,n==null&&e==null&&i==null?(this.x=0,this.y=0):typeof n=="number"&&typeof e=="number"&&i==null?(this.x=n,this.y=e):n.constructor.name=="Point"&&e==null&&i==null&&(i=n,this.x=i.x,this.y=i.y)}h.prototype.getX=function(){return this.x},h.prototype.getY=function(){return this.y},h.prototype.getLocation=function(){return new h(this.x,this.y)},h.prototype.setLocation=function(n,e,i){n.constructor.name=="Point"&&e==null&&i==null?(i=n,this.setLocation(i.x,i.y)):typeof n=="number"&&typeof e=="number"&&i==null&&(parseInt(n)==n&&parseInt(e)==e?this.move(n,e):(this.x=Math.floor(n+.5),this.y=Math.floor(e+.5)))},h.prototype.move=function(n,e){this.x=n,this.y=e},h.prototype.translate=function(n,e){this.x+=n,this.y+=e},h.prototype.equals=function(n){if(n.constructor.name=="Point"){var e=n;return this.x==e.x&&this.y==e.y}return this==n},h.prototype.toString=function(){return new h().constructor.name+"[x="+this.x+",y="+this.y+"]"},E.exports=h},function(E,D,v){"use strict";function h(n,e,i,s){this.x=0,this.y=0,this.width=0,this.height=0,n!=null&&e!=null&&i!=null&&s!=null&&(this.x=n,this.y=e,this.width=i,this.height=s)}h.prototype.getX=function(){return this.x},h.prototype.setX=function(n){this.x=n},h.prototype.getY=function(){return this.y},h.prototype.setY=function(n){this.y=n},h.prototype.getWidth=function(){return this.width},h.prototype.setWidth=function(n){this.width=n},h.prototype.getHeight=function(){return this.height},h.prototype.setHeight=function(n){this.height=n},h.prototype.getRight=function(){return this.x+this.width},h.prototype.getBottom=function(){return this.y+this.height},h.prototype.intersects=function(n){return!(this.getRight()<n.x||this.getBottom()<n.y||n.getRight()<this.x||n.getBottom()<this.y)},h.prototype.getCenterX=function(){return this.x+this.width/2},h.prototype.getMinX=function(){return this.getX()},h.prototype.getMaxX=function(){return this.getX()+this.width},h.prototype.getCenterY=function(){return this.y+this.height/2},h.prototype.getMinY=function(){return this.getY()},h.prototype.getMaxY=function(){return this.getY()+this.height},h.prototype.getWidthHalf=function(){return this.width/2},h.prototype.getHeightHalf=function(){return this.height/2},E.exports=h},function(E,D,v){"use strict";var h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function n(){}n.lastID=0,n.createID=function(e){return n.isPrimitive(e)?e:(e.uniqueID!=null||(e.uniqueID=n.getString(),n.lastID++),e.uniqueID)},n.getString=function(e){return e==null&&(e=n.lastID),"Object#"+e},n.isPrimitive=function(e){var i=typeof e>"u"?"undefined":h(e);return e==null||i!="object"&&i!="function"},E.exports=n},function(E,D,v){"use strict";function h(a){if(Array.isArray(a)){for(var u=0,g=Array(a.length);u<a.length;u++)g[u]=a[u];return g}else return Array.from(a)}var n=v(0),e=v(6),i=v(3),s=v(1),l=v(5),r=v(4),f=v(17),t=v(27);function o(a){t.call(this),this.layoutQuality=n.QUALITY,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=n.DEFAULT_INCREMENTAL,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new e(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,a!=null&&(this.isRemoteUse=a)}o.RANDOM_SEED=1,o.prototype=Object.create(t.prototype),o.prototype.getGraphManager=function(){return this.graphManager},o.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},o.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},o.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},o.prototype.newGraphManager=function(){var a=new e(this);return this.graphManager=a,a},o.prototype.newGraph=function(a){return new l(null,this.graphManager,a)},o.prototype.newNode=function(a){return new i(this.graphManager,a)},o.prototype.newEdge=function(a){return new s(null,null,a)},o.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},o.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var a;return this.checkLayoutSuccess()?a=!1:a=this.layout(),n.ANIMATE==="during"?!1:(a&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,a)},o.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},o.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var a,u=this.graphManager.getAllEdges(),g=0;g<u.length;g++)a=u[g];for(var p,c=this.graphManager.getRoot().getNodes(),g=0;g<c.length;g++)p=c[g];this.update(this.graphManager.getRoot())}},o.prototype.update=function(a){if(a==null)this.update2();else if(a instanceof i){var u=a;if(u.getChild()!=null)for(var g=u.getChild().getNodes(),p=0;p<g.length;p++)update(g[p]);if(u.vGraphObject!=null){var c=u.vGraphObject;c.update(u)}}else if(a instanceof s){var y=a;if(y.vGraphObject!=null){var d=y.vGraphObject;d.update(y)}}else if(a instanceof l){var L=a;if(L.vGraphObject!=null){var O=L.vGraphObject;O.update(L)}}},o.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=n.QUALITY,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=n.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},o.prototype.transform=function(a){if(a==null)this.transform(new r(0,0));else{var u=new f,g=this.graphManager.getRoot().updateLeftTop();if(g!=null){u.setWorldOrgX(a.x),u.setWorldOrgY(a.y),u.setDeviceOrgX(g.x),u.setDeviceOrgY(g.y);for(var p=this.getAllNodes(),c,y=0;y<p.length;y++)c=p[y],c.transform(u)}}},o.prototype.positionNodesRandomly=function(a){if(a==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var u,g,p=a.getNodes(),c=0;c<p.length;c++)u=p[c],g=u.getChild(),g==null||g.getNodes().length==0?u.scatter():(this.positionNodesRandomly(g),u.updateBounds())},o.prototype.getFlatForest=function(){for(var a=[],u=!0,g=this.graphManager.getRoot().getNodes(),p=!0,c=0;c<g.length;c++)g[c].getChild()!=null&&(p=!1);if(!p)return a;var y=new Set,d=[],L=new Map,O=[];for(O=O.concat(g);O.length>0&&u;){for(d.push(O[0]);d.length>0&&u;){var I=d[0];d.splice(0,1),y.add(I);for(var T=I.getEdges(),c=0;c<T.length;c++){var A=T[c].getOtherEnd(I);if(L.get(I)!=A)if(!y.has(A))d.push(A),L.set(A,I);else{u=!1;break}}}if(!u)a=[];else{var N=[].concat(h(y));a.push(N);for(var c=0;c<N.length;c++){var R=N[c],x=O.indexOf(R);x>-1&&O.splice(x,1)}y=new Set,L=new Map}}return a},o.prototype.createDummyNodesForBendpoints=function(a){for(var u=[],g=a.source,p=this.graphManager.calcLowestCommonAncestor(a.source,a.target),c=0;c<a.bendpoints.length;c++){var y=this.newNode(null);y.setRect(new Point(0,0),new Dimension(1,1)),p.add(y);var d=this.newEdge(null);this.graphManager.add(d,g,y),u.add(y),g=y}var d=this.newEdge(null);return this.graphManager.add(d,g,a.target),this.edgeToDummyNodes.set(a,u),a.isInterGraph()?this.graphManager.remove(a):p.remove(a),u},o.prototype.createBendpointsFromDummyNodes=function(){var a=[];a=a.concat(this.graphManager.getAllEdges()),a=[].concat(h(this.edgeToDummyNodes.keys())).concat(a);for(var u=0;u<a.length;u++){var g=a[u];if(g.bendpoints.length>0){for(var p=this.edgeToDummyNodes.get(g),c=0;c<p.length;c++){var y=p[c],d=new r(y.getCenterX(),y.getCenterY()),L=g.bendpoints.get(c);L.x=d.x,L.y=d.y,y.getOwner().remove(y)}this.graphManager.add(g,g.source,g.target)}}},o.transform=function(a,u,g,p){if(g!=null&&p!=null){var c=u;if(a<=50){var y=u/g;c-=(u-y)/50*(50-a)}else{var d=u*p;c+=(d-u)/50*(a-50)}return c}else{var L,O;return a<=50?(L=9*u/500,O=u/10):(L=9*u/50,O=-8*u),L*a+O}},o.findCenterOfTree=function(a){var u=[];u=u.concat(a);var g=[],p=new Map,c=!1,y=null;(u.length==1||u.length==2)&&(c=!0,y=u[0]);for(var d=0;d<u.length;d++){var L=u[d],O=L.getNeighborsList().size;p.set(L,L.getNeighborsList().size),O==1&&g.push(L)}var I=[];for(I=I.concat(g);!c;){var T=[];T=T.concat(I),I=[];for(var d=0;d<u.length;d++){var L=u[d],A=u.indexOf(L);A>=0&&u.splice(A,1);var N=L.getNeighborsList();N.forEach(function(m){if(g.indexOf(m)<0){var w=p.get(m),C=w-1;C==1&&I.push(m),p.set(m,C)}})}g=g.concat(I),(u.length==1||u.length==2)&&(c=!0,y=u[0])}return y},o.prototype.setGraphManager=function(a){this.graphManager=a},E.exports=o},function(E,D,v){"use strict";function h(){}h.seed=1,h.x=0,h.nextDouble=function(){return h.x=Math.sin(h.seed++)*1e4,h.x-Math.floor(h.x)},E.exports=h},function(E,D,v){"use strict";var h=v(4);function n(e,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}n.prototype.getWorldOrgX=function(){return this.lworldOrgX},n.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},n.prototype.getWorldOrgY=function(){return this.lworldOrgY},n.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},n.prototype.getWorldExtX=function(){return this.lworldExtX},n.prototype.setWorldExtX=function(e){this.lworldExtX=e},n.prototype.getWorldExtY=function(){return this.lworldExtY},n.prototype.setWorldExtY=function(e){this.lworldExtY=e},n.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},n.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},n.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},n.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},n.prototype.getDeviceExtX=function(){return this.ldeviceExtX},n.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},n.prototype.getDeviceExtY=function(){return this.ldeviceExtY},n.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},n.prototype.transformX=function(e){var i=0,s=this.lworldExtX;return s!=0&&(i=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/s),i},n.prototype.transformY=function(e){var i=0,s=this.lworldExtY;return s!=0&&(i=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/s),i},n.prototype.inverseTransformX=function(e){var i=0,s=this.ldeviceExtX;return s!=0&&(i=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/s),i},n.prototype.inverseTransformY=function(e){var i=0,s=this.ldeviceExtY;return s!=0&&(i=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/s),i},n.prototype.inverseTransformPoint=function(e){var i=new h(this.inverseTransformX(e.x),this.inverseTransformY(e.y));return i},E.exports=n},function(E,D,v){"use strict";function h(t){if(Array.isArray(t)){for(var o=0,a=Array(t.length);o<t.length;o++)a[o]=t[o];return a}else return Array.from(t)}var n=v(15),e=v(7),i=v(0),s=v(8),l=v(9);function r(){n.call(this),this.useSmartIdealEdgeLengthCalculation=e.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=e.DEFAULT_EDGE_LENGTH,this.springConstant=e.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=e.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=e.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=e.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=e.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*e.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=e.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=e.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=e.MAX_ITERATIONS}r.prototype=Object.create(n.prototype);for(var f in n)r[f]=n[f];r.prototype.initParameters=function(){n.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=e.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},r.prototype.calcIdealEdgeLengths=function(){for(var t,o,a,u,g,p,c=this.getGraphManager().getAllEdges(),y=0;y<c.length;y++)t=c[y],t.idealLength=this.idealEdgeLength,t.isInterGraph&&(a=t.getSource(),u=t.getTarget(),g=t.getSourceInLca().getEstimatedSize(),p=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=g+p-2*i.SIMPLE_NODE_SIZE),o=t.getLca().getInclusionTreeDepth(),t.idealLength+=e.DEFAULT_EDGE_LENGTH*e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(a.getInclusionTreeDepth()+u.getInclusionTreeDepth()-2*o))},r.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;this.incremental?(t>e.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*e.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-e.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=e.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>e.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(e.COOLING_ADAPTATION_FACTOR,1-(t-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*(1-e.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=e.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},r.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),o,a=0;a<t.length;a++)o=t[a],this.calcSpringForce(o,o.idealLength)},r.prototype.calcRepulsionForces=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a,u,g,p,c=this.getAllNodes(),y;if(this.useFRGridVariant)for(this.totalIterations%e.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),y=new Set,a=0;a<c.length;a++)g=c[a],this.calculateRepulsionForceOfANode(g,y,t,o),y.add(g);else for(a=0;a<c.length;a++)for(g=c[a],u=a+1;u<c.length;u++)p=c[u],g.getOwner()==p.getOwner()&&this.calcRepulsionForce(g,p)},r.prototype.calcGravitationalForces=function(){for(var t,o=this.getAllNodesToApplyGravitation(),a=0;a<o.length;a++)t=o[a],this.calcGravitationalForce(t)},r.prototype.moveNodes=function(){for(var t=this.getAllNodes(),o,a=0;a<t.length;a++)o=t[a],o.move()},r.prototype.calcSpringForce=function(t,o){var a=t.getSource(),u=t.getTarget(),g,p,c,y;if(this.uniformLeafNodeSizes&&a.getChild()==null&&u.getChild()==null)t.updateLengthSimple();else if(t.updateLength(),t.isOverlapingSourceAndTarget)return;g=t.getLength(),g!=0&&(p=this.springConstant*(g-o),c=p*(t.lengthX/g),y=p*(t.lengthY/g),a.springForceX+=c,a.springForceY+=y,u.springForceX-=c,u.springForceY-=y)},r.prototype.calcRepulsionForce=function(t,o){var a=t.getRect(),u=o.getRect(),g=new Array(2),p=new Array(4),c,y,d,L,O,I,T;if(a.intersects(u)){s.calcSeparationAmount(a,u,g,e.DEFAULT_EDGE_LENGTH/2),I=2*g[0],T=2*g[1];var A=t.noOfChildren*o.noOfChildren/(t.noOfChildren+o.noOfChildren);t.repulsionForceX-=A*I,t.repulsionForceY-=A*T,o.repulsionForceX+=A*I,o.repulsionForceY+=A*T}else this.uniformLeafNodeSizes&&t.getChild()==null&&o.getChild()==null?(c=u.getCenterX()-a.getCenterX(),y=u.getCenterY()-a.getCenterY()):(s.getIntersection(a,u,p),c=p[2]-p[0],y=p[3]-p[1]),Math.abs(c)<e.MIN_REPULSION_DIST&&(c=l.sign(c)*e.MIN_REPULSION_DIST),Math.abs(y)<e.MIN_REPULSION_DIST&&(y=l.sign(y)*e.MIN_REPULSION_DIST),d=c*c+y*y,L=Math.sqrt(d),O=this.repulsionConstant*t.noOfChildren*o.noOfChildren/d,I=O*c/L,T=O*y/L,t.repulsionForceX-=I,t.repulsionForceY-=T,o.repulsionForceX+=I,o.repulsionForceY+=T},r.prototype.calcGravitationalForce=function(t){var o,a,u,g,p,c,y,d;o=t.getOwner(),a=(o.getRight()+o.getLeft())/2,u=(o.getTop()+o.getBottom())/2,g=t.getCenterX()-a,p=t.getCenterY()-u,c=Math.abs(g)+t.getWidth()/2,y=Math.abs(p)+t.getHeight()/2,t.getOwner()==this.graphManager.getRoot()?(d=o.getEstimatedSize()*this.gravityRangeFactor,(c>d||y>d)&&(t.gravitationForceX=-this.gravityConstant*g,t.gravitationForceY=-this.gravityConstant*p)):(d=o.getEstimatedSize()*this.compoundGravityRangeFactor,(c>d||y>d)&&(t.gravitationForceX=-this.gravityConstant*g*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*p*this.compoundGravityConstant))},r.prototype.isConverged=function(){var t,o=!1;return this.totalIterations>this.maxIterations/3&&(o=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,t||o},r.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},r.prototype.calcNoOfChildrenForAllNodes=function(){for(var t,o=this.graphManager.getAllNodes(),a=0;a<o.length;a++)t=o[a],t.noOfChildren=t.getNoOfChildren()},r.prototype.calcGrid=function(t){var o=0,a=0;o=parseInt(Math.ceil((t.getRight()-t.getLeft())/this.repulsionRange)),a=parseInt(Math.ceil((t.getBottom()-t.getTop())/this.repulsionRange));for(var u=new Array(o),g=0;g<o;g++)u[g]=new Array(a);for(var g=0;g<o;g++)for(var p=0;p<a;p++)u[g][p]=new Array;return u},r.prototype.addNodeToGrid=function(t,o,a){var u=0,g=0,p=0,c=0;u=parseInt(Math.floor((t.getRect().x-o)/this.repulsionRange)),g=parseInt(Math.floor((t.getRect().width+t.getRect().x-o)/this.repulsionRange)),p=parseInt(Math.floor((t.getRect().y-a)/this.repulsionRange)),c=parseInt(Math.floor((t.getRect().height+t.getRect().y-a)/this.repulsionRange));for(var y=u;y<=g;y++)for(var d=p;d<=c;d++)this.grid[y][d].push(t),t.setGridCoordinates(u,g,p,c)},r.prototype.updateGrid=function(){var t,o,a=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),t=0;t<a.length;t++)o=a[t],this.addNodeToGrid(o,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},r.prototype.calculateRepulsionForceOfANode=function(t,o,a,u){if(this.totalIterations%e.GRID_CALCULATION_CHECK_PERIOD==1&&a||u){var g=new Set;t.surrounding=new Array;for(var p,c=this.grid,y=t.startX-1;y<t.finishX+2;y++)for(var d=t.startY-1;d<t.finishY+2;d++)if(!(y<0||d<0||y>=c.length||d>=c[0].length)){for(var L=0;L<c[y][d].length;L++)if(p=c[y][d][L],!(t.getOwner()!=p.getOwner()||t==p)&&!o.has(p)&&!g.has(p)){var O=Math.abs(t.getCenterX()-p.getCenterX())-(t.getWidth()/2+p.getWidth()/2),I=Math.abs(t.getCenterY()-p.getCenterY())-(t.getHeight()/2+p.getHeight()/2);O<=this.repulsionRange&&I<=this.repulsionRange&&g.add(p)}}t.surrounding=[].concat(h(g))}for(y=0;y<t.surrounding.length;y++)this.calcRepulsionForce(t,t.surrounding[y])},r.prototype.calcRepulsionRange=function(){return 0},E.exports=r},function(E,D,v){"use strict";var h=v(1),n=v(7);function e(s,l,r){h.call(this,s,l,r),this.idealLength=n.DEFAULT_EDGE_LENGTH}e.prototype=Object.create(h.prototype);for(var i in h)e[i]=h[i];E.exports=e},function(E,D,v){"use strict";var h=v(3);function n(i,s,l,r){h.call(this,i,s,l,r),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}n.prototype=Object.create(h.prototype);for(var e in h)n[e]=h[e];n.prototype.setGridCoordinates=function(i,s,l,r){this.startX=i,this.finishX=s,this.startY=l,this.finishY=r},E.exports=n},function(E,D,v){"use strict";function h(n,e){this.width=0,this.height=0,n!==null&&e!==null&&(this.height=e,this.width=n)}h.prototype.getWidth=function(){return this.width},h.prototype.setWidth=function(n){this.width=n},h.prototype.getHeight=function(){return this.height},h.prototype.setHeight=function(n){this.height=n},E.exports=h},function(E,D,v){"use strict";var h=v(14);function n(){this.map={},this.keys=[]}n.prototype.put=function(e,i){var s=h.createID(e);this.contains(s)||(this.map[s]=i,this.keys.push(e))},n.prototype.contains=function(e){var i=h.createID(e);return this.map[e]!=null},n.prototype.get=function(e){var i=h.createID(e);return this.map[i]},n.prototype.keySet=function(){return this.keys},E.exports=n},function(E,D,v){"use strict";var h=v(14);function n(){this.set={}}n.prototype.add=function(e){var i=h.createID(e);this.contains(i)||(this.set[i]=e)},n.prototype.remove=function(e){delete this.set[h.createID(e)]},n.prototype.clear=function(){this.set={}},n.prototype.contains=function(e){return this.set[h.createID(e)]==e},n.prototype.isEmpty=function(){return this.size()===0},n.prototype.size=function(){return Object.keys(this.set).length},n.prototype.addAllTo=function(e){for(var i=Object.keys(this.set),s=i.length,l=0;l<s;l++)e.push(this.set[i[l]])},n.prototype.size=function(){return Object.keys(this.set).length},n.prototype.addAll=function(e){for(var i=e.length,s=0;s<i;s++){var l=e[s];this.add(l)}},E.exports=n},function(E,D,v){"use strict";var h=function(){function s(l,r){for(var f=0;f<r.length;f++){var t=r[f];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(l,t.key,t)}}return function(l,r,f){return r&&s(l.prototype,r),f&&s(l,f),l}}();function n(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}var e=v(11),i=function(){function s(l,r){n(this,s),(r!==null||r!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var f=void 0;l instanceof e?f=l.size():f=l.length,this._quicksort(l,0,f-1)}return h(s,[{key:"_quicksort",value:function(r,f,t){if(f<t){var o=this._partition(r,f,t);this._quicksort(r,f,o),this._quicksort(r,o+1,t)}}},{key:"_partition",value:function(r,f,t){for(var o=this._get(r,f),a=f,u=t;;){for(;this.compareFunction(o,this._get(r,u));)u--;for(;this.compareFunction(this._get(r,a),o);)a++;if(a<u)this._swap(r,a,u),a++,u--;else return u}}},{key:"_get",value:function(r,f){return r instanceof e?r.get_object_at(f):r[f]}},{key:"_set",value:function(r,f,t){r instanceof e?r.set_object_at(f,t):r[f]=t}},{key:"_swap",value:function(r,f,t){var o=this._get(r,f);this._set(r,f,this._get(r,t)),this._set(r,t,o)}},{key:"_defaultCompareFunction",value:function(r,f){return f>r}}]),s}();E.exports=i},function(E,D,v){"use strict";var h=function(){function i(s,l){for(var r=0;r<l.length;r++){var f=l[r];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,l,r){return l&&i(s.prototype,l),r&&i(s,r),s}}();function n(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}var e=function(){function i(s,l){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;n(this,i),this.sequence1=s,this.sequence2=l,this.match_score=r,this.mismatch_penalty=f,this.gap_penalty=t,this.iMax=s.length+1,this.jMax=l.length+1,this.grid=new Array(this.iMax);for(var o=0;o<this.iMax;o++){this.grid[o]=new Array(this.jMax);for(var a=0;a<this.jMax;a++)this.grid[o][a]=0}this.tracebackGrid=new Array(this.iMax);for(var u=0;u<this.iMax;u++){this.tracebackGrid[u]=new Array(this.jMax);for(var g=0;g<this.jMax;g++)this.tracebackGrid[u][g]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return h(i,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var l=1;l<this.jMax;l++)this.grid[0][l]=this.grid[0][l-1]+this.gap_penalty,this.tracebackGrid[0][l]=[!1,!1,!0];for(var r=1;r<this.iMax;r++)this.grid[r][0]=this.grid[r-1][0]+this.gap_penalty,this.tracebackGrid[r][0]=[!1,!0,!1];for(var f=1;f<this.iMax;f++)for(var t=1;t<this.jMax;t++){var o=void 0;this.sequence1[f-1]===this.sequence2[t-1]?o=this.grid[f-1][t-1]+this.match_score:o=this.grid[f-1][t-1]+this.mismatch_penalty;var a=this.grid[f-1][t]+this.gap_penalty,u=this.grid[f][t-1]+this.gap_penalty,g=[o,a,u],p=this.arrayAllMaxIndexes(g);this.grid[f][t]=g[p[0]],this.tracebackGrid[f][t]=[p.includes(0),p.includes(1),p.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var l=[];for(l.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});l[0];){var r=l[0],f=this.tracebackGrid[r.pos[0]][r.pos[1]];f[0]&&l.push({pos:[r.pos[0]-1,r.pos[1]-1],seq1:this.sequence1[r.pos[0]-1]+r.seq1,seq2:this.sequence2[r.pos[1]-1]+r.seq2}),f[1]&&l.push({pos:[r.pos[0]-1,r.pos[1]],seq1:this.sequence1[r.pos[0]-1]+r.seq1,seq2:"-"+r.seq2}),f[2]&&l.push({pos:[r.pos[0],r.pos[1]-1],seq1:"-"+r.seq1,seq2:this.sequence2[r.pos[1]-1]+r.seq2}),r.pos[0]===0&&r.pos[1]===0&&this.alignments.push({sequence1:r.seq1,sequence2:r.seq2}),l.shift()}return this.alignments}},{key:"getAllIndexes",value:function(l,r){for(var f=[],t=-1;(t=l.indexOf(r,t+1))!==-1;)f.push(t);return f}},{key:"arrayAllMaxIndexes",value:function(l){return this.getAllIndexes(l,Math.max.apply(null,l))}}]),i}();E.exports=e},function(E,D,v){"use strict";var h=function(){};h.FDLayout=v(18),h.FDLayoutConstants=v(7),h.FDLayoutEdge=v(19),h.FDLayoutNode=v(20),h.DimensionD=v(21),h.HashMap=v(22),h.HashSet=v(23),h.IGeometry=v(8),h.IMath=v(9),h.Integer=v(10),h.Point=v(12),h.PointD=v(4),h.RandomSeed=v(16),h.RectangleD=v(13),h.Transform=v(17),h.UniqueIDGeneretor=v(14),h.Quicksort=v(24),h.LinkedList=v(11),h.LGraphObject=v(2),h.LGraph=v(5),h.LEdge=v(1),h.LGraphManager=v(6),h.LNode=v(3),h.Layout=v(15),h.LayoutConstants=v(0),h.NeedlemanWunsch=v(25),E.exports=h},function(E,D,v){"use strict";function h(){this.listeners=[]}var n=h.prototype;n.addListener=function(e,i){this.listeners.push({event:e,callback:i})},n.removeListener=function(e,i){for(var s=this.listeners.length;s>=0;s--){var l=this.listeners[s];l.event===e&&l.callback===i&&this.listeners.splice(s,1)}},n.emit=function(e,i){for(var s=0;s<this.listeners.length;s++){var l=this.listeners[s];e===l.event&&l.callback(i)}},E.exports=h}])})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[2698],{67308:function(Z,a,n){n.d(a,{Z:function(){return O}});function t(){this.__data__=[],this.size=0}var r=t,e=n(79651);function _(D,m){for(var b=D.length;b--;)if((0,e.Z)(D[b][0],m))return b;return-1}var s=_,o=Array.prototype,i=o.splice;function u(D){var m=this.__data__,b=s(m,D);if(b<0)return!1;var A=m.length-1;return b==A?m.pop():i.call(m,b,1),--this.size,!0}var f=u;function d(D){var m=this.__data__,b=s(m,D);return b<0?void 0:m[b][1]}var l=d;function c(D){return s(this.__data__,D)>-1}var E=c;function v(D,m){var b=this.__data__,A=s(b,D);return A<0?(++this.size,b.push([D,m])):b[A][1]=m,this}var p=v;function P(D){var m=-1,b=D==null?0:D.length;for(this.clear();++m<b;){var A=D[m];this.set(A[0],A[1])}}P.prototype.clear=r,P.prototype.delete=f,P.prototype.get=l,P.prototype.has=E,P.prototype.set=p;var O=P},86183:function(Z,a,n){var t=n(62508),r=n(66092),e=(0,t.Z)(r.Z,"Map");a.Z=e},37834:function(Z,a,n){n.d(a,{Z:function(){return $}});var t=n(62508),r=(0,t.Z)(Object,"create"),e=r;function _(){this.__data__=e?e(null):{},this.size=0}var s=_;function o(M){var L=this.has(M)&&delete this.__data__[M];return this.size-=L?1:0,L}var i=o,u="__lodash_hash_undefined__",f=Object.prototype,d=f.hasOwnProperty;function l(M){var L=this.__data__;if(e){var W=L[M];return W===u?void 0:W}return d.call(L,M)?L[M]:void 0}var c=l,E=Object.prototype,v=E.hasOwnProperty;function p(M){var L=this.__data__;return e?L[M]!==void 0:v.call(L,M)}var P=p,O="__lodash_hash_undefined__";function D(M,L){var W=this.__data__;return this.size+=this.has(M)?0:1,W[M]=e&&L===void 0?O:L,this}var m=D;function b(M){var L=-1,W=M==null?0:M.length;for(this.clear();++L<W;){var J=M[L];this.set(J[0],J[1])}}b.prototype.clear=s,b.prototype.delete=i,b.prototype.get=c,b.prototype.has=P,b.prototype.set=m;var A=b,I=n(67308),T=n(86183);function R(){this.size=0,this.__data__={hash:new A,map:new(T.Z||I.Z),string:new A}}var H=R;function z(M){var L=typeof M;return L=="string"||L=="number"||L=="symbol"||L=="boolean"?M!=="__proto__":M===null}var K=z;function C(M,L){var W=M.__data__;return K(L)?W[typeof L=="string"?"string":"hash"]:W.map}var j=C;function S(M){var L=j(this,M).delete(M);return this.size-=L?1:0,L}var F=S;function tn(M){return j(this,M).get(M)}var nn=tn;function un(M){return j(this,M).has(M)}var x=un;function U(M,L){var W=j(this,M),J=W.size;return W.set(M,L),this.size+=W.size==J?0:1,this}var G=U;function X(M){var L=-1,W=M==null?0:M.length;for(this.clear();++L<W;){var J=M[L];this.set(J[0],J[1])}}X.prototype.clear=H,X.prototype.delete=F,X.prototype.get=nn,X.prototype.has=x,X.prototype.set=G;var $=X},93203:function(Z,a,n){var t=n(62508),r=n(66092),e=(0,t.Z)(r.Z,"Set");a.Z=e},63001:function(Z,a,n){n.d(a,{Z:function(){return u}});var t=n(37834),r="__lodash_hash_undefined__";function e(f){return this.__data__.set(f,r),this}var _=e;function s(f){return this.__data__.has(f)}var o=s;function i(f){var d=-1,l=f==null?0:f.length;for(this.__data__=new t.Z;++d<l;)this.add(f[d])}i.prototype.add=i.prototype.push=_,i.prototype.has=o;var u=i},31667:function(Z,a,n){n.d(a,{Z:function(){return P}});var t=n(67308);function r(){this.__data__=new t.Z,this.size=0}var e=r;function _(O){var D=this.__data__,m=D.delete(O);return this.size=D.size,m}var s=_;function o(O){return this.__data__.get(O)}var i=o;function u(O){return this.__data__.has(O)}var f=u,d=n(86183),l=n(37834),c=200;function E(O,D){var m=this.__data__;if(m instanceof t.Z){var b=m.__data__;if(!d.Z||b.length<c-1)return b.push([O,D]),this.size=++m.size,this;m=this.__data__=new l.Z(b)}return m.set(O,D),this.size=m.size,this}var v=E;function p(O){var D=this.__data__=new t.Z(O);this.size=D.size}p.prototype.clear=e,p.prototype.delete=s,p.prototype.get=i,p.prototype.has=f,p.prototype.set=v;var P=p},17685:function(Z,a,n){var t=n(66092),r=t.Z.Symbol;a.Z=r},84073:function(Z,a,n){var t=n(66092),r=t.Z.Uint8Array;a.Z=r},76579:function(Z,a){function n(t,r){for(var e=-1,_=t==null?0:t.length;++e<_&&r(t[e],e,t)!==!1;);return t}a.Z=n},68774:function(Z,a){function n(t,r){for(var e=-1,_=t==null?0:t.length,s=0,o=[];++e<_;){var i=t[e];r(i,e,t)&&(o[s++]=i)}return o}a.Z=n},87668:function(Z,a,n){n.d(a,{Z:function(){return l}});function t(c,E){for(var v=-1,p=Array(c);++v<c;)p[v]=E(v);return p}var r=t,e=n(29169),_=n(27771),s=n(77008),o=n(56009),i=n(18843),u=Object.prototype,f=u.hasOwnProperty;function d(c,E){var v=(0,_.Z)(c),p=!v&&(0,e.Z)(c),P=!v&&!p&&(0,s.Z)(c),O=!v&&!p&&!P&&(0,i.Z)(c),D=v||p||P||O,m=D?r(c.length,String):[],b=m.length;for(var A in c)(E||f.call(c,A))&&!(D&&(A=="length"||P&&(A=="offset"||A=="parent")||O&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||(0,o.Z)(A,b)))&&m.push(A);return m}var l=d},74073:function(Z,a){function n(t,r){for(var e=-1,_=t==null?0:t.length,s=Array(_);++e<_;)s[e]=r(t[e],e,t);return s}a.Z=n},58694:function(Z,a){function n(t,r){for(var e=-1,_=r.length,s=t.length;++e<_;)t[s+e]=r[e];return t}a.Z=n},72954:function(Z,a,n){var t=n(74752),r=n(79651),e=Object.prototype,_=e.hasOwnProperty;function s(o,i,u){var f=o[i];(!(_.call(o,i)&&(0,r.Z)(f,u))||u===void 0&&!(i in o))&&(0,t.Z)(o,i,u)}a.Z=s},74752:function(Z,a,n){var t=n(77904);function r(e,_,s){_=="__proto__"&&t.Z?(0,t.Z)(e,_,{configurable:!0,enumerable:!0,value:s,writable:!0}):e[_]=s}a.Z=r},48451:function(Z,a,n){n.d(a,{Z:function(){return mt}});var t=n(31667),r=n(76579),e=n(72954),_=n(31899),s=n(17179);function o(y,Y){return y&&(0,_.Z)(Y,(0,s.Z)(Y),y)}var i=o,u=n(32957);function f(y,Y){return y&&(0,_.Z)(Y,(0,u.Z)(Y),y)}var d=f,l=n(91050),c=n(87215),E=n(95695);function v(y,Y){return(0,_.Z)(y,(0,E.Z)(y),Y)}var p=v,P=n(58694),O=n(12513),D=n(88176),m=Object.getOwnPropertySymbols,b=m?function(y){for(var Y=[];y;)(0,P.Z)(Y,(0,E.Z)(y)),y=(0,O.Z)(y);return Y}:D.Z,A=b;function I(y,Y){return(0,_.Z)(y,A(y),Y)}var T=I,R=n(1808),H=n(63327);function z(y){return(0,H.Z)(y,u.Z,A)}var K=z,C=n(83970),j=Object.prototype,S=j.hasOwnProperty;function F(y){var Y=y.length,cn=new y.constructor(Y);return Y&&typeof y[0]=="string"&&S.call(y,"index")&&(cn.index=y.index,cn.input=y.input),cn}var tn=F,nn=n(41884);function un(y,Y){var cn=Y?(0,nn.Z)(y.buffer):y.buffer;return new y.constructor(cn,y.byteOffset,y.byteLength)}var x=un,U=/\w*$/;function G(y){var Y=new y.constructor(y.source,U.exec(y));return Y.lastIndex=y.lastIndex,Y}var X=G,$=n(17685),M=$.Z?$.Z.prototype:void 0,L=M?M.valueOf:void 0;function W(y){return L?Object(L.call(y)):{}}var J=W,On=n(12701),_n="[object Boolean]",dn="[object Date]",pn="[object Map]",En="[object Number]",An="[object RegExp]",Rn="[object Set]",V="[object String]",bn="[object Symbol]",Bn="[object ArrayBuffer]",Jn="[object DataView]",Xn="[object Float32Array]",Vn="[object Float64Array]",Qn="[object Int8Array]",kn="[object Int16Array]",qn="[object Int32Array]",Un="[object Uint8Array]",nt="[object Uint8ClampedArray]",tt="[object Uint16Array]",rt="[object Uint32Array]";function et(y,Y,cn){var jn=y.constructor;switch(Y){case Bn:return(0,nn.Z)(y);case _n:case dn:return new jn(+y);case Jn:return x(y,cn);case Xn:case Vn:case Qn:case kn:case qn:case Un:case nt:case tt:case rt:return(0,On.Z)(y,cn);case pn:return new jn;case En:case V:return new jn(y);case An:return X(y);case Rn:return new jn;case bn:return J(y)}}var wn=et,at=n(73658),_t=n(27771),Kn=n(77008),xn=n(18533),st="[object Map]";function ot(y){return(0,xn.Z)(y)&&(0,C.Z)(y)==st}var Wn=ot,Sn=n(21162),Dn=n(98351),Fn=Dn.Z&&Dn.Z.isMap,it=Fn?(0,Sn.Z)(Fn):Wn,ut=it,ft=n(77226),ct="[object Set]";function dt(y){return(0,xn.Z)(y)&&(0,C.Z)(y)==ct}var lt=dt,Gn=Dn.Z&&Dn.Z.isSet,vt=Gn?(0,Sn.Z)(Gn):lt,gt=vt,Zt=1,g=2,h=4,B="[object Arguments]",w="[object Array]",Q="[object Boolean]",N="[object Date]",en="[object Error]",k="[object Function]",an="[object GeneratorFunction]",sn="[object Map]",fn="[object Number]",on="[object Object]",rn="[object RegExp]",Zn="[object Set]",ln="[object String]",gn="[object Symbol]",hn="[object WeakMap]",yn="[object ArrayBuffer]",Pn="[object DataView]",Nn="[object Float32Array]",Cn="[object Float64Array]",In="[object Int8Array]",pt="[object Int16Array]",yt="[object Int32Array]",Pt="[object Uint8Array]",At="[object Uint8ClampedArray]",Tt="[object Uint16Array]",Mt="[object Uint32Array]",q={};q[B]=q[w]=q[yn]=q[Pn]=q[Q]=q[N]=q[Nn]=q[Cn]=q[In]=q[pt]=q[yt]=q[sn]=q[fn]=q[on]=q[rn]=q[Zn]=q[ln]=q[gn]=q[Pt]=q[At]=q[Tt]=q[Mt]=!0,q[en]=q[k]=q[hn]=!1;function Hn(y,Y,cn,jn,zn,Tn){var vn,$n=Y&Zt,Yn=Y&g,Dt=Y&h;if(cn&&(vn=zn?cn(y,jn,zn,Tn):cn(y)),vn!==void 0)return vn;if(!(0,ft.Z)(y))return y;var Et=(0,_t.Z)(y);if(Et){if(vn=tn(y),!$n)return(0,c.Z)(y,vn)}else{var Ln=(0,C.Z)(y),bt=Ln==k||Ln==an;if((0,Kn.Z)(y))return(0,l.Z)(y,$n);if(Ln==on||Ln==B||bt&&!zn){if(vn=Yn||bt?{}:(0,at.Z)(y),!$n)return Yn?T(y,d(vn,y)):p(y,i(vn,y))}else{if(!q[Ln])return zn?y:{};vn=wn(y,Ln,$n)}}Tn||(Tn=new t.Z);var ht=Tn.get(y);if(ht)return ht;Tn.set(y,vn),gt(y)?y.forEach(function(Mn){vn.add(Hn(Mn,Y,cn,Mn,y,Tn))}):ut(y)&&y.forEach(function(Mn,mn){vn.set(mn,Hn(Mn,Y,cn,mn,y,Tn))});var Ct=Dt?Yn?K:R.Z:Yn?u.Z:s.Z,Ot=Et?void 0:Ct(y);return(0,r.Z)(Ot||y,function(Mn,mn){Ot&&(mn=Mn,Mn=y[mn]),(0,e.Z)(vn,mn,Hn(Mn,Y,cn,mn,y,Tn))}),vn}var mt=Hn},49811:function(Z,a,n){n.d(a,{Z:function(){return o}});var t=n(2693),r=n(50585);function e(i,u){return function(f,d){if(f==null)return f;if(!(0,r.Z)(f))return i(f,d);for(var l=f.length,c=u?l:-1,E=Object(f);(u?c--:++c<l)&&d(E[c],c,E)!==!1;);return f}}var _=e,s=_(t.Z),o=s},58e3:function(Z,a,n){var t=n(72714);function r(e,_,s){for(var o=-1,i=e.length;++o<i;){var u=e[o],f=_(u);if(f!=null&&(d===void 0?f===f&&!(0,t.Z)(f):s(f,d)))var d=f,l=u}return l}a.Z=r},21692:function(Z,a){function n(t,r,e,_){for(var s=t.length,o=e+(_?1:-1);_?o--:++o<s;)if(r(t[o],o,t))return o;return-1}a.Z=n},10626:function(Z,a,n){n.d(a,{Z:function(){return f}});var t=n(58694),r=n(17685),e=n(29169),_=n(27771),s=r.Z?r.Z.isConcatSpreadable:void 0;function o(d){return(0,_.Z)(d)||(0,e.Z)(d)||!!(s&&d&&d[s])}var i=o;function u(d,l,c,E,v){var p=-1,P=d.length;for(c||(c=i),v||(v=[]);++p<P;){var O=d[p];l>0&&c(O)?l>1?u(O,l-1,c,E,v):(0,t.Z)(v,O):E||(v[v.length]=O)}return v}var f=u},61395:function(Z,a,n){n.d(a,{Z:function(){return _}});function t(s){return function(o,i,u){for(var f=-1,d=Object(o),l=u(o),c=l.length;c--;){var E=l[s?c:++f];if(i(d[E],E,d)===!1)break}return o}}var r=t,e=r(),_=e},2693:function(Z,a,n){var t=n(61395),r=n(17179);function e(_,s){return _&&(0,t.Z)(_,s,r.Z)}a.Z=e},13317:function(Z,a,n){var t=n(22823),r=n(62281);function e(_,s){s=(0,t.Z)(s,_);for(var o=0,i=s.length;_!=null&&o<i;)_=_[(0,r.Z)(s[o++])];return o&&o==i?_:void 0}a.Z=e},63327:function(Z,a,n){var t=n(58694),r=n(27771);function e(_,s,o){var i=s(_);return(0,r.Z)(_)?i:(0,t.Z)(i,o(_))}a.Z=e},93589:function(Z,a,n){n.d(a,{Z:function(){return P}});var t=n(17685),r=Object.prototype,e=r.hasOwnProperty,_=r.toString,s=t.Z?t.Z.toStringTag:void 0;function o(O){var D=e.call(O,s),m=O[s];try{O[s]=void 0;var b=!0}catch{}var A=_.call(O);return b&&(D?O[s]=m:delete O[s]),A}var i=o,u=Object.prototype,f=u.toString;function d(O){return f.call(O)}var l=d,c="[object Null]",E="[object Undefined]",v=t.Z?t.Z.toStringTag:void 0;function p(O){return O==null?O===void 0?E:c:v&&v in Object(O)?i(O):l(O)}var P=p},74765:function(Z,a,n){n.d(a,{Z:function(){return Zt}});var t=n(31667),r=n(63001);function e(g,h){for(var B=-1,w=g==null?0:g.length;++B<w;)if(h(g[B],B,g))return!0;return!1}var _=e,s=n(59548),o=1,i=2;function u(g,h,B,w,Q,N){var en=B&o,k=g.length,an=h.length;if(k!=an&&!(en&&an>k))return!1;var sn=N.get(g),fn=N.get(h);if(sn&&fn)return sn==h&&fn==g;var on=-1,rn=!0,Zn=B&i?new r.Z:void 0;for(N.set(g,h),N.set(h,g);++on<k;){var ln=g[on],gn=h[on];if(w)var hn=en?w(gn,ln,on,h,g,N):w(ln,gn,on,g,h,N);if(hn!==void 0){if(hn)continue;rn=!1;break}if(Zn){if(!_(h,function(yn,Pn){if(!(0,s.Z)(Zn,Pn)&&(ln===yn||Q(ln,yn,B,w,N)))return Zn.push(Pn)})){rn=!1;break}}else if(!(ln===gn||Q(ln,gn,B,w,N))){rn=!1;break}}return N.delete(g),N.delete(h),rn}var f=u,d=n(17685),l=n(84073),c=n(79651);function E(g){var h=-1,B=Array(g.size);return g.forEach(function(w,Q){B[++h]=[Q,w]}),B}var v=E,p=n(6545),P=1,O=2,D="[object Boolean]",m="[object Date]",b="[object Error]",A="[object Map]",I="[object Number]",T="[object RegExp]",R="[object Set]",H="[object String]",z="[object Symbol]",K="[object ArrayBuffer]",C="[object DataView]",j=d.Z?d.Z.prototype:void 0,S=j?j.valueOf:void 0;function F(g,h,B,w,Q,N,en){switch(B){case C:if(g.byteLength!=h.byteLength||g.byteOffset!=h.byteOffset)return!1;g=g.buffer,h=h.buffer;case K:return!(g.byteLength!=h.byteLength||!N(new l.Z(g),new l.Z(h)));case D:case m:case I:return(0,c.Z)(+g,+h);case b:return g.name==h.name&&g.message==h.message;case T:case H:return g==h+"";case A:var k=v;case R:var an=w&P;if(k||(k=p.Z),g.size!=h.size&&!an)return!1;var sn=en.get(g);if(sn)return sn==h;w|=O,en.set(g,h);var fn=f(k(g),k(h),w,Q,N,en);return en.delete(g),fn;case z:if(S)return S.call(g)==S.call(h)}return!1}var tn=F,nn=n(1808),un=1,x=Object.prototype,U=x.hasOwnProperty;function G(g,h,B,w,Q,N){var en=B&un,k=(0,nn.Z)(g),an=k.length,sn=(0,nn.Z)(h),fn=sn.length;if(an!=fn&&!en)return!1;for(var on=an;on--;){var rn=k[on];if(!(en?rn in h:U.call(h,rn)))return!1}var Zn=N.get(g),ln=N.get(h);if(Zn&&ln)return Zn==h&&ln==g;var gn=!0;N.set(g,h),N.set(h,g);for(var hn=en;++on<an;){rn=k[on];var yn=g[rn],Pn=h[rn];if(w)var Nn=en?w(Pn,yn,rn,h,g,N):w(yn,Pn,rn,g,h,N);if(!(Nn===void 0?yn===Pn||Q(yn,Pn,B,w,N):Nn)){gn=!1;break}hn||(hn=rn=="constructor")}if(gn&&!hn){var Cn=g.constructor,In=h.constructor;Cn!=In&&"constructor"in g&&"constructor"in h&&!(typeof Cn=="function"&&Cn instanceof Cn&&typeof In=="function"&&In instanceof In)&&(gn=!1)}return N.delete(g),N.delete(h),gn}var X=G,$=n(83970),M=n(27771),L=n(77008),W=n(18843),J=1,On="[object Arguments]",_n="[object Array]",dn="[object Object]",pn=Object.prototype,En=pn.hasOwnProperty;function An(g,h,B,w,Q,N){var en=(0,M.Z)(g),k=(0,M.Z)(h),an=en?_n:(0,$.Z)(g),sn=k?_n:(0,$.Z)(h);an=an==On?dn:an,sn=sn==On?dn:sn;var fn=an==dn,on=sn==dn,rn=an==sn;if(rn&&(0,L.Z)(g)){if(!(0,L.Z)(h))return!1;en=!0,fn=!1}if(rn&&!fn)return N||(N=new t.Z),en||(0,W.Z)(g)?f(g,h,B,w,Q,N):tn(g,h,an,B,w,Q,N);if(!(B&J)){var Zn=fn&&En.call(g,"__wrapped__"),ln=on&&En.call(h,"__wrapped__");if(Zn||ln){var gn=Zn?g.value():g,hn=ln?h.value():h;return N||(N=new t.Z),Q(gn,hn,B,w,N)}}return rn?(N||(N=new t.Z),X(g,h,B,w,Q,N)):!1}var Rn=An,V=n(18533);function bn(g,h,B,w,Q){return g===h?!0:g==null||h==null||!(0,V.Z)(g)&&!(0,V.Z)(h)?g!==g&&h!==h:Rn(g,h,B,w,bn,Q)}var Bn=bn,Jn=1,Xn=2;function Vn(g,h,B,w){var Q=B.length,N=Q,en=!w;if(g==null)return!N;for(g=Object(g);Q--;){var k=B[Q];if(en&&k[2]?k[1]!==g[k[0]]:!(k[0]in g))return!1}for(;++Q<N;){k=B[Q];var an=k[0],sn=g[an],fn=k[1];if(en&&k[2]){if(sn===void 0&&!(an in g))return!1}else{var on=new t.Z;if(w)var rn=w(sn,fn,an,g,h,on);if(!(rn===void 0?Bn(fn,sn,Jn|Xn,w,on):rn))return!1}}return!0}var Qn=Vn,kn=n(77226);function qn(g){return g===g&&!(0,kn.Z)(g)}var Un=qn,nt=n(17179);function tt(g){for(var h=(0,nt.Z)(g),B=h.length;B--;){var w=h[B],Q=g[w];h[B]=[w,Q,Un(Q)]}return h}var rt=tt;function et(g,h){return function(B){return B==null?!1:B[g]===h&&(h!==void 0||g in Object(B))}}var wn=et;function at(g){var h=rt(g);return h.length==1&&h[0][2]?wn(h[0][0],h[0][1]):function(B){return B===g||Qn(B,g,h)}}var _t=at,Kn=n(13317);function xn(g,h,B){var w=g==null?void 0:(0,Kn.Z)(g,h);return w===void 0?B:w}var st=xn,ot=n(75487),Wn=n(99365),Sn=n(62281),Dn=1,Fn=2;function it(g,h){return(0,Wn.Z)(g)&&Un(h)?wn((0,Sn.Z)(g),h):function(B){var w=st(B,g);return w===void 0&&w===h?(0,ot.Z)(B,g):Bn(h,w,Dn|Fn)}}var ut=it,ft=n(69203),ct=n(54193);function dt(g){return function(h){return(0,Kn.Z)(h,g)}}var lt=dt;function Gn(g){return(0,Wn.Z)(g)?(0,ct.Z)((0,Sn.Z)(g)):lt(g)}var vt=Gn;function gt(g){return typeof g=="function"?g:g==null?ft.Z:typeof g=="object"?(0,M.Z)(g)?ut(g[0],g[1]):_t(g):vt(g)}var Zt=gt},39473:function(Z,a,n){n.d(a,{Z:function(){return u}});var t=n(72764),r=n(1851),e=(0,r.Z)(Object.keys,Object),_=e,s=Object.prototype,o=s.hasOwnProperty;function i(f){if(!(0,t.Z)(f))return _(f);var d=[];for(var l in Object(f))o.call(f,l)&&l!="constructor"&&d.push(l);return d}var u=i},40676:function(Z,a){function n(t,r){return t<r}a.Z=n},21018:function(Z,a,n){var t=n(49811),r=n(50585);function e(_,s){var o=-1,i=(0,r.Z)(_)?Array(_.length):[];return(0,t.Z)(_,function(u,f,d){i[++o]=s(u,f,d)}),i}a.Z=e},54193:function(Z,a){function n(t){return function(r){return r==null?void 0:r[t]}}a.Z=n},69581:function(Z,a,n){var t=n(69203),r=n(81211),e=n(27227);function _(s,o){return(0,e.Z)((0,r.Z)(s,o,t.Z),s+"")}a.Z=_},21162:function(Z,a){function n(t){return function(r){return t(r)}}a.Z=n},59548:function(Z,a){function n(t,r){return t.has(r)}a.Z=n},68882:function(Z,a,n){var t=n(69203);function r(e){return typeof e=="function"?e:t.Z}a.Z=r},22823:function(Z,a,n){n.d(a,{Z:function(){return E}});var t=n(27771),r=n(99365),e=n(42454),_=500;function s(v){var p=(0,e.Z)(v,function(O){return P.size===_&&P.clear(),O}),P=p.cache;return p}var o=s,i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,f=o(function(v){var p=[];return v.charCodeAt(0)===46&&p.push(""),v.replace(i,function(P,O,D,m){p.push(D?m.replace(u,"$1"):O||P)}),p}),d=f,l=n(50751);function c(v,p){return(0,t.Z)(v)?v:(0,r.Z)(v,p)?[v]:d((0,l.Z)(v))}var E=c},41884:function(Z,a,n){var t=n(84073);function r(e){var _=new e.constructor(e.byteLength);return new t.Z(_).set(new t.Z(e)),_}a.Z=r},91050:function(Z,a,n){var t=n(66092),r=typeof exports=="object"&&exports&&!exports.nodeType&&exports,e=r&&typeof module=="object"&&module&&!module.nodeType&&module,_=e&&e.exports===r,s=_?t.Z.Buffer:void 0,o=s?s.allocUnsafe:void 0;function i(u,f){if(f)return u.slice();var d=u.length,l=o?o(d):new u.constructor(d);return u.copy(l),l}a.Z=i},12701:function(Z,a,n){var t=n(41884);function r(e,_){var s=_?(0,t.Z)(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}a.Z=r},87215:function(Z,a){function n(t,r){var e=-1,_=t.length;for(r||(r=Array(_));++e<_;)r[e]=t[e];return r}a.Z=n},31899:function(Z,a,n){var t=n(72954),r=n(74752);function e(_,s,o,i){var u=!o;o||(o={});for(var f=-1,d=s.length;++f<d;){var l=s[f],c=i?i(o[l],_[l],l,o,_):void 0;c===void 0&&(c=_[l]),u?(0,r.Z)(o,l,c):(0,t.Z)(o,l,c)}return o}a.Z=e},77904:function(Z,a,n){var t=n(62508),r=function(){try{var e=(0,t.Z)(Object,"defineProperty");return e({},"",{}),e}catch{}}();a.Z=r},13413:function(Z,a){var n=typeof global=="object"&&global&&global.Object===Object&&global;a.Z=n},1808:function(Z,a,n){var t=n(63327),r=n(95695),e=n(17179);function _(s){return(0,t.Z)(s,e.Z,r.Z)}a.Z=_},62508:function(Z,a,n){n.d(a,{Z:function(){return I}});var t=n(73234),r=n(66092),e=r.Z["__core-js_shared__"],_=e,s=function(){var T=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||"");return T?"Symbol(src)_1."+T:""}();function o(T){return!!s&&s in T}var i=o,u=n(77226),f=n(90019),d=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,E=Object.prototype,v=c.toString,p=E.hasOwnProperty,P=RegExp("^"+v.call(p).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function O(T){if(!(0,u.Z)(T)||i(T))return!1;var R=(0,t.Z)(T)?P:l;return R.test((0,f.Z)(T))}var D=O;function m(T,R){return T==null?void 0:T[R]}var b=m;function A(T,R){var H=b(T,R);return D(H)?H:void 0}var I=A},12513:function(Z,a,n){var t=n(1851),r=(0,t.Z)(Object.getPrototypeOf,Object);a.Z=r},95695:function(Z,a,n){var t=n(68774),r=n(88176),e=Object.prototype,_=e.propertyIsEnumerable,s=Object.getOwnPropertySymbols,o=s?function(i){return i==null?[]:(i=Object(i),(0,t.Z)(s(i),function(u){return _.call(i,u)}))}:r.Z;a.Z=o},83970:function(Z,a,n){n.d(a,{Z:function(){return H}});var t=n(62508),r=n(66092),e=(0,t.Z)(r.Z,"DataView"),_=e,s=n(86183),o=(0,t.Z)(r.Z,"Promise"),i=o,u=n(93203),f=(0,t.Z)(r.Z,"WeakMap"),d=f,l=n(93589),c=n(90019),E="[object Map]",v="[object Object]",p="[object Promise]",P="[object Set]",O="[object WeakMap]",D="[object DataView]",m=(0,c.Z)(_),b=(0,c.Z)(s.Z),A=(0,c.Z)(i),I=(0,c.Z)(u.Z),T=(0,c.Z)(d),R=l.Z;(_&&R(new _(new ArrayBuffer(1)))!=D||s.Z&&R(new s.Z)!=E||i&&R(i.resolve())!=p||u.Z&&R(new u.Z)!=P||d&&R(new d)!=O)&&(R=function(z){var K=(0,l.Z)(z),C=K==v?z.constructor:void 0,j=C?(0,c.Z)(C):"";if(j)switch(j){case m:return D;case b:return E;case A:return p;case I:return P;case T:return O}return K});var H=R},16174:function(Z,a,n){var t=n(22823),r=n(29169),e=n(27771),_=n(56009),s=n(1656),o=n(62281);function i(u,f,d){f=(0,t.Z)(f,u);for(var l=-1,c=f.length,E=!1;++l<c;){var v=(0,o.Z)(f[l]);if(!(E=u!=null&&d(u,v)))break;u=u[v]}return E||++l!=c?E:(c=u==null?0:u.length,!!c&&(0,s.Z)(c)&&(0,_.Z)(v,c)&&((0,e.Z)(u)||(0,r.Z)(u)))}a.Z=i},73658:function(Z,a,n){n.d(a,{Z:function(){return u}});var t=n(77226),r=Object.create,e=function(){function f(){}return function(d){if(!(0,t.Z)(d))return{};if(r)return r(d);f.prototype=d;var l=new f;return f.prototype=void 0,l}}(),_=e,s=n(12513),o=n(72764);function i(f){return typeof f.constructor=="function"&&!(0,o.Z)(f)?_((0,s.Z)(f)):{}}var u=i},56009:function(Z,a){var n=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(e,_){var s=typeof e;return _=_??n,!!_&&(s=="number"||s!="symbol"&&t.test(e))&&e>-1&&e%1==0&&e<_}a.Z=r},50439:function(Z,a,n){var t=n(79651),r=n(50585),e=n(56009),_=n(77226);function s(o,i,u){if(!(0,_.Z)(u))return!1;var f=typeof i;return(f=="number"?(0,r.Z)(u)&&(0,e.Z)(i,u.length):f=="string"&&i in u)?(0,t.Z)(u[i],o):!1}a.Z=s},99365:function(Z,a,n){var t=n(27771),r=n(72714),e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_=/^\w*$/;function s(o,i){if((0,t.Z)(o))return!1;var u=typeof o;return u=="number"||u=="symbol"||u=="boolean"||o==null||(0,r.Z)(o)?!0:_.test(o)||!e.test(o)||i!=null&&o in Object(i)}a.Z=s},72764:function(Z,a){var n=Object.prototype;function t(r){var e=r&&r.constructor,_=typeof e=="function"&&e.prototype||n;return r===_}a.Z=t},98351:function(Z,a,n){var t=n(13413),r=typeof exports=="object"&&exports&&!exports.nodeType&&exports,e=r&&typeof module=="object"&&module&&!module.nodeType&&module,_=e&&e.exports===r,s=_&&t.Z.process,o=function(){try{var i=e&&e.require&&e.require("util").types;return i||s&&s.binding&&s.binding("util")}catch{}}();a.Z=o},1851:function(Z,a){function n(t,r){return function(e){return t(r(e))}}a.Z=n},81211:function(Z,a,n){n.d(a,{Z:function(){return s}});function t(o,i,u){switch(u.length){case 0:return o.call(i);case 1:return o.call(i,u[0]);case 2:return o.call(i,u[0],u[1]);case 3:return o.call(i,u[0],u[1],u[2])}return o.apply(i,u)}var r=t,e=Math.max;function _(o,i,u){return i=e(i===void 0?o.length-1:i,0),function(){for(var f=arguments,d=-1,l=e(f.length-i,0),c=Array(l);++d<l;)c[d]=f[i+d];d=-1;for(var E=Array(i+1);++d<i;)E[d]=f[d];return E[i]=u(c),r(o,this,E)}}var s=_},66092:function(Z,a,n){var t=n(13413),r=typeof self=="object"&&self&&self.Object===Object&&self,e=t.Z||r||Function("return this")();a.Z=e},6545:function(Z,a){function n(t){var r=-1,e=Array(t.size);return t.forEach(function(_){e[++r]=_}),e}a.Z=n},27227:function(Z,a,n){n.d(a,{Z:function(){return c}});var t=n(62002),r=n(77904),e=n(69203),_=r.Z?function(E,v){return(0,r.Z)(E,"toString",{configurable:!0,enumerable:!1,value:(0,t.Z)(v),writable:!0})}:e.Z,s=_,o=800,i=16,u=Date.now;function f(E){var v=0,p=0;return function(){var P=u(),O=i-(P-p);if(p=P,O>0){if(++v>=o)return arguments[0]}else v=0;return E.apply(void 0,arguments)}}var d=f,l=d(s),c=l},62281:function(Z,a,n){var t=n(72714),r=1/0;function e(_){if(typeof _=="string"||(0,t.Z)(_))return _;var s=_+"";return s=="0"&&1/_==-r?"-0":s}a.Z=e},90019:function(Z,a){var n=Function.prototype,t=n.toString;function r(e){if(e!=null){try{return t.call(e)}catch{}try{return e+""}catch{}}return""}a.Z=r},92346:function(Z,a,n){var t=n(48451),r=4;function e(_){return(0,t.Z)(_,r)}a.Z=e},86295:function(Z,a,n){var t=n(48451),r=1,e=4;function _(s){return(0,t.Z)(s,r|e)}a.Z=_},62002:function(Z,a){function n(t){return function(){return t}}a.Z=n},3688:function(Z,a,n){var t=n(69581),r=n(79651),e=n(50439),_=n(32957),s=Object.prototype,o=s.hasOwnProperty,i=(0,t.Z)(function(u,f){u=Object(u);var d=-1,l=f.length,c=l>2?f[2]:void 0;for(c&&(0,e.Z)(f[0],f[1],c)&&(l=1);++d<l;)for(var E=f[d],v=(0,_.Z)(E),p=-1,P=v.length;++p<P;){var O=v[p],D=u[O];(D===void 0||(0,r.Z)(D,s[O])&&!o.call(u,O))&&(u[O]=E[O])}return u});a.Z=i},79651:function(Z,a){function n(t,r){return t===r||t!==t&&r!==r}a.Z=n},13445:function(Z,a,n){n.d(a,{Z:function(){return u}});var t=n(68774),r=n(49811);function e(f,d){var l=[];return(0,r.Z)(f,function(c,E,v){d(c,E,v)&&l.push(c)}),l}var _=e,s=n(74765),o=n(27771);function i(f,d){var l=(0,o.Z)(f)?t.Z:_;return l(f,(0,s.Z)(d,3))}var u=i},86288:function(Z,a,n){n.d(a,{Z:function(){return v}});var t=n(74765),r=n(50585),e=n(17179);function _(p){return function(P,O,D){var m=Object(P);if(!(0,r.Z)(P)){var b=(0,t.Z)(O,3);P=(0,e.Z)(P),O=function(I){return b(m[I],I,m)}}var A=p(P,O,D);return A>-1?m[b?P[A]:A]:void 0}}var s=_,o=n(21692),i=n(94099);function u(p){var P=(0,i.Z)(p),O=P%1;return P===P?O?P-O:P:0}var f=u,d=Math.max;function l(p,P,O){var D=p==null?0:p.length;if(!D)return-1;var m=O==null?0:f(O);return m<0&&(m=d(D+m,0)),(0,o.Z)(p,(0,t.Z)(P,3),m)}var c=l,E=s(c),v=E},27961:function(Z,a,n){var t=n(10626);function r(e){var _=e==null?0:e.length;return _?(0,t.Z)(e,1):[]}a.Z=r},70870:function(Z,a,n){var t=n(76579),r=n(49811),e=n(68882),_=n(27771);function s(o,i){var u=(0,_.Z)(o)?t.Z:r.Z;return u(o,(0,e.Z)(i))}a.Z=s},44435:function(Z,a,n){var t=n(61395),r=n(68882),e=n(32957);function _(s,o){return s==null?s:(0,t.Z)(s,(0,r.Z)(o),e.Z)}a.Z=_},17452:function(Z,a,n){n.d(a,{Z:function(){return i}});var t=Object.prototype,r=t.hasOwnProperty;function e(u,f){return u!=null&&r.call(u,f)}var _=e,s=n(16174);function o(u,f){return u!=null&&(0,s.Z)(u,f,_)}var i=o},75487:function(Z,a,n){n.d(a,{Z:function(){return s}});function t(o,i){return o!=null&&i in Object(o)}var r=t,e=n(16174);function _(o,i){return o!=null&&(0,e.Z)(o,i,r)}var s=_},69203:function(Z,a){function n(t){return t}a.Z=n},29169:function(Z,a,n){n.d(a,{Z:function(){return d}});var t=n(93589),r=n(18533),e="[object Arguments]";function _(l){return(0,r.Z)(l)&&(0,t.Z)(l)==e}var s=_,o=Object.prototype,i=o.hasOwnProperty,u=o.propertyIsEnumerable,f=s(function(){return arguments}())?s:function(l){return(0,r.Z)(l)&&i.call(l,"callee")&&!u.call(l,"callee")},d=f},27771:function(Z,a){var n=Array.isArray;a.Z=n},50585:function(Z,a,n){var t=n(73234),r=n(1656);function e(_){return _!=null&&(0,r.Z)(_.length)&&!(0,t.Z)(_)}a.Z=e},836:function(Z,a,n){var t=n(50585),r=n(18533);function e(_){return(0,r.Z)(_)&&(0,t.Z)(_)}a.Z=e},77008:function(Z,a,n){n.d(a,{Z:function(){return d}});var t=n(66092);function r(){return!1}var e=r,_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,s=_&&typeof module=="object"&&module&&!module.nodeType&&module,o=s&&s.exports===_,i=o?t.Z.Buffer:void 0,u=i?i.isBuffer:void 0,f=u||e,d=f},79697:function(Z,a,n){var t=n(39473),r=n(83970),e=n(29169),_=n(27771),s=n(50585),o=n(77008),i=n(72764),u=n(18843),f="[object Map]",d="[object Set]",l=Object.prototype,c=l.hasOwnProperty;function E(v){if(v==null)return!0;if((0,s.Z)(v)&&((0,_.Z)(v)||typeof v=="string"||typeof v.splice=="function"||(0,o.Z)(v)||(0,u.Z)(v)||(0,e.Z)(v)))return!v.length;var p=(0,r.Z)(v);if(p==f||p==d)return!v.size;if((0,i.Z)(v))return!(0,t.Z)(v).length;for(var P in v)if(c.call(v,P))return!1;return!0}a.Z=E},73234:function(Z,a,n){var t=n(93589),r=n(77226),e="[object AsyncFunction]",_="[object Function]",s="[object GeneratorFunction]",o="[object Proxy]";function i(u){if(!(0,r.Z)(u))return!1;var f=(0,t.Z)(u);return f==_||f==s||f==e||f==o}a.Z=i},1656:function(Z,a){var n=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=n}a.Z=t},77226:function(Z,a){function n(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}a.Z=n},18533:function(Z,a){function n(t){return t!=null&&typeof t=="object"}a.Z=n},37514:function(Z,a,n){var t=n(93589),r=n(12513),e=n(18533),_="[object Object]",s=Function.prototype,o=Object.prototype,i=s.toString,u=o.hasOwnProperty,f=i.call(Object);function d(l){if(!(0,e.Z)(l)||(0,t.Z)(l)!=_)return!1;var c=(0,r.Z)(l);if(c===null)return!0;var E=u.call(c,"constructor")&&c.constructor;return typeof E=="function"&&E instanceof E&&i.call(E)==f}a.Z=d},72714:function(Z,a,n){var t=n(93589),r=n(18533),e="[object Symbol]";function _(s){return typeof s=="symbol"||(0,r.Z)(s)&&(0,t.Z)(s)==e}a.Z=_},18843:function(Z,a,n){n.d(a,{Z:function(){return x}});var t=n(93589),r=n(1656),e=n(18533),_="[object Arguments]",s="[object Array]",o="[object Boolean]",i="[object Date]",u="[object Error]",f="[object Function]",d="[object Map]",l="[object Number]",c="[object Object]",E="[object RegExp]",v="[object Set]",p="[object String]",P="[object WeakMap]",O="[object ArrayBuffer]",D="[object DataView]",m="[object Float32Array]",b="[object Float64Array]",A="[object Int8Array]",I="[object Int16Array]",T="[object Int32Array]",R="[object Uint8Array]",H="[object Uint8ClampedArray]",z="[object Uint16Array]",K="[object Uint32Array]",C={};C[m]=C[b]=C[A]=C[I]=C[T]=C[R]=C[H]=C[z]=C[K]=!0,C[_]=C[s]=C[O]=C[o]=C[D]=C[i]=C[u]=C[f]=C[d]=C[l]=C[c]=C[E]=C[v]=C[p]=C[P]=!1;function j(U){return(0,e.Z)(U)&&(0,r.Z)(U.length)&&!!C[(0,t.Z)(U)]}var S=j,F=n(21162),tn=n(98351),nn=tn.Z&&tn.Z.isTypedArray,un=nn?(0,F.Z)(nn):S,x=un},49360:function(Z,a){function n(t){return t===void 0}a.Z=n},17179:function(Z,a,n){var t=n(87668),r=n(39473),e=n(50585);function _(s){return(0,e.Z)(s)?(0,t.Z)(s):(0,r.Z)(s)}a.Z=_},32957:function(Z,a,n){n.d(a,{Z:function(){return c}});var t=n(87668),r=n(77226),e=n(72764);function _(E){var v=[];if(E!=null)for(var p in Object(E))v.push(p);return v}var s=_,o=Object.prototype,i=o.hasOwnProperty;function u(E){if(!(0,r.Z)(E))return s(E);var v=(0,e.Z)(E),p=[];for(var P in E)P=="constructor"&&(v||!i.call(E,P))||p.push(P);return p}var f=u,d=n(50585);function l(E){return(0,d.Z)(E)?(0,t.Z)(E,!0):f(E)}var c=l},935:function(Z,a){function n(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}a.Z=n},43836:function(Z,a,n){var t=n(74073),r=n(74765),e=n(21018),_=n(27771);function s(o,i){var u=(0,_.Z)(o)?t.Z:e.Z;return u(o,(0,r.Z)(i,3))}a.Z=s},48392:function(Z,a,n){var t=n(74752),r=n(2693),e=n(74765);function _(s,o){var i={};return o=(0,e.Z)(o,3),(0,r.Z)(s,function(u,f,d){(0,t.Z)(i,f,o(u,f,d))}),i}a.Z=_},61303:function(Z,a,n){n.d(a,{Z:function(){return o}});var t=n(58e3);function r(i,u){return i>u}var e=r,_=n(69203);function s(i){return i&&i.length?(0,t.Z)(i,_.Z,e):void 0}var o=s},42454:function(Z,a,n){var t=n(37834),r="Expected a function";function e(_,s){if(typeof _!="function"||s!=null&&typeof s!="function")throw new TypeError(r);var o=function(){var i=arguments,u=s?s.apply(this,i):i[0],f=o.cache;if(f.has(u))return f.get(u);var d=_.apply(this,i);return o.cache=f.set(u,d)||f,d};return o.cache=new(e.Cache||t.Z),o}e.Cache=t.Z,a.Z=e},59236:function(Z,a,n){n.d(a,{Z:function(){return un}});var t=n(31667),r=n(74752),e=n(79651);function _(x,U,G){(G!==void 0&&!(0,e.Z)(x[U],G)||G===void 0&&!(U in x))&&(0,r.Z)(x,U,G)}var s=_,o=n(61395),i=n(91050),u=n(12701),f=n(87215),d=n(73658),l=n(29169),c=n(27771),E=n(836),v=n(77008),p=n(73234),P=n(77226),O=n(37514),D=n(18843);function m(x,U){if(!(U==="constructor"&&typeof x[U]=="function")&&U!="__proto__")return x[U]}var b=m,A=n(31899),I=n(32957);function T(x){return(0,A.Z)(x,(0,I.Z)(x))}var R=T;function H(x,U,G,X,$,M,L){var W=b(x,G),J=b(U,G),On=L.get(J);if(On){s(x,G,On);return}var _n=M?M(W,J,G+"",x,U,L):void 0,dn=_n===void 0;if(dn){var pn=(0,c.Z)(J),En=!pn&&(0,v.Z)(J),An=!pn&&!En&&(0,D.Z)(J);_n=J,pn||En||An?(0,c.Z)(W)?_n=W:(0,E.Z)(W)?_n=(0,f.Z)(W):En?(dn=!1,_n=(0,i.Z)(J,!0)):An?(dn=!1,_n=(0,u.Z)(J,!0)):_n=[]:(0,O.Z)(J)||(0,l.Z)(J)?(_n=W,(0,l.Z)(W)?_n=R(W):(!(0,P.Z)(W)||(0,p.Z)(W))&&(_n=(0,d.Z)(J))):dn=!1}dn&&(L.set(J,_n),$(_n,J,X,M,L),L.delete(J)),s(x,G,_n)}var z=H;function K(x,U,G,X,$){x!==U&&(0,o.Z)(U,function(M,L){if($||($=new t.Z),(0,P.Z)(M))z(x,U,L,G,K,X,$);else{var W=X?X(b(x,L),M,L+"",x,U,$):void 0;W===void 0&&(W=M),s(x,L,W)}},I.Z)}var C=K,j=n(69581),S=n(50439);function F(x){return(0,j.Z)(function(U,G){var X=-1,$=G.length,M=$>1?G[$-1]:void 0,L=$>2?G[2]:void 0;for(M=x.length>3&&typeof M=="function"?($--,M):void 0,L&&(0,S.Z)(G[0],G[1],L)&&(M=$<3?void 0:M,$=1),U=Object(U);++X<$;){var W=G[X];W&&x(U,W,X,M)}return U})}var tn=F,nn=tn(function(x,U,G){C(x,U,G)}),un=nn},3729:function(Z,a,n){var t=n(58e3),r=n(40676),e=n(69203);function _(s){return s&&s.length?(0,t.Z)(s,e.Z,r.Z):void 0}a.Z=_},17948:function(Z,a,n){var t=n(58e3),r=n(74765),e=n(40676);function _(s,o){return s&&s.length?(0,t.Z)(s,(0,r.Z)(o,2),e.Z):void 0}a.Z=_},25222:function(Z,a,n){var t=n(66092),r=function(){return t.Z.Date.now()};a.Z=r},61666:function(Z,a,n){n.d(a,{Z:function(){return b}});var t=n(13317),r=n(72954),e=n(22823),_=n(56009),s=n(77226),o=n(62281);function i(A,I,T,R){if(!(0,s.Z)(A))return A;I=(0,e.Z)(I,A);for(var H=-1,z=I.length,K=z-1,C=A;C!=null&&++H<z;){var j=(0,o.Z)(I[H]),S=T;if(j==="__proto__"||j==="constructor"||j==="prototype")return A;if(H!=K){var F=C[j];S=R?R(F,j,C):void 0,S===void 0&&(S=(0,s.Z)(F)?F:(0,_.Z)(I[H+1])?[]:{})}(0,r.Z)(C,j,S),C=C[j]}return A}var u=i;function f(A,I,T){for(var R=-1,H=I.length,z={};++R<H;){var K=I[R],C=(0,t.Z)(A,K);T(C,K)&&u(z,(0,e.Z)(K,A),C)}return z}var d=f,l=n(75487);function c(A,I){return d(A,I,function(T,R){return(0,l.Z)(A,R)})}var E=c,v=n(27961),p=n(81211),P=n(27227);function O(A){return(0,P.Z)((0,p.Z)(A,void 0,v.Z),A+"")}var D=O,m=D(function(A,I){return A==null?{}:E(A,I)}),b=m},74379:function(Z,a,n){n.d(a,{Z:function(){return d}});var t=Math.ceil,r=Math.max;function e(l,c,E,v){for(var p=-1,P=r(t((c-l)/(E||1)),0),O=Array(P);P--;)O[v?P:++p]=l,l+=E;return O}var _=e,s=n(50439),o=n(94099);function i(l){return function(c,E,v){return v&&typeof v!="number"&&(0,s.Z)(c,E,v)&&(E=v=void 0),c=(0,o.Z)(c),E===void 0?(E=c,c=0):E=(0,o.Z)(E),v=v===void 0?c<E?1:-1:(0,o.Z)(v),_(c,E,v,l)}}var u=i,f=u(),d=f},92344:function(Z,a,n){n.d(a,{Z:function(){return f}});function t(d,l,c,E){var v=-1,p=d==null?0:d.length;for(E&&p&&(c=d[++v]);++v<p;)c=l(c,d[v],v,d);return c}var r=t,e=n(49811),_=n(74765);function s(d,l,c,E,v){return v(d,function(p,P,O){c=E?(E=!1,p):l(c,p,P,O)}),c}var o=s,i=n(27771);function u(d,l,c){var E=(0,i.Z)(d)?r:o,v=arguments.length<3;return E(d,(0,_.Z)(l,4),c,v,e.Z)}var f=u},42199:function(Z,a,n){n.d(a,{Z:function(){return Rn}});var t=n(39473),r=n(83970),e=n(50585),_=n(93589),s=n(27771),o=n(18533),i="[object String]";function u(V){return typeof V=="string"||!(0,s.Z)(V)&&(0,o.Z)(V)&&(0,_.Z)(V)==i}var f=u,d=n(54193),l=(0,d.Z)("length"),c=l,E="\\ud800-\\udfff",v="\\u0300-\\u036f",p="\\ufe20-\\ufe2f",P="\\u20d0-\\u20ff",O=v+p+P,D="\\ufe0e\\ufe0f",m="\\u200d",b=RegExp("["+m+E+O+D+"]");function A(V){return b.test(V)}var I=A,T="\\ud800-\\udfff",R="\\u0300-\\u036f",H="\\ufe20-\\ufe2f",z="\\u20d0-\\u20ff",K=R+H+z,C="\\ufe0e\\ufe0f",j="["+T+"]",S="["+K+"]",F="\\ud83c[\\udffb-\\udfff]",tn="(?:"+S+"|"+F+")",nn="[^"+T+"]",un="(?:\\ud83c[\\udde6-\\uddff]){2}",x="[\\ud800-\\udbff][\\udc00-\\udfff]",U="\\u200d",G=tn+"?",X="["+C+"]?",$="(?:"+U+"(?:"+[nn,un,x].join("|")+")"+X+G+")*",M=X+G+$,L="(?:"+[nn+S+"?",S,un,x,j].join("|")+")",W=RegExp(F+"(?="+F+")|"+L+M,"g");function J(V){for(var bn=W.lastIndex=0;W.test(V);)++bn;return bn}var On=J;function _n(V){return I(V)?On(V):c(V)}var dn=_n,pn="[object Map]",En="[object Set]";function An(V){if(V==null)return 0;if((0,e.Z)(V))return f(V)?dn(V):V.length;var bn=(0,r.Z)(V);return bn==pn||bn==En?V.size:(0,t.Z)(V).length}var Rn=An},16406:function(Z,a,n){n.d(a,{Z:function(){return A}});var t=n(10626),r=n(74073),e=n(13317),_=n(74765),s=n(21018);function o(I,T){var R=I.length;for(I.sort(T);R--;)I[R]=I[R].value;return I}var i=o,u=n(21162),f=n(72714);function d(I,T){if(I!==T){var R=I!==void 0,H=I===null,z=I===I,K=(0,f.Z)(I),C=T!==void 0,j=T===null,S=T===T,F=(0,f.Z)(T);if(!j&&!F&&!K&&I>T||K&&C&&S&&!j&&!F||H&&C&&S||!R&&S||!z)return 1;if(!H&&!K&&!F&&I<T||F&&R&&z&&!H&&!K||j&&R&&z||!C&&z||!S)return-1}return 0}var l=d;function c(I,T,R){for(var H=-1,z=I.criteria,K=T.criteria,C=z.length,j=R.length;++H<C;){var S=l(z[H],K[H]);if(S){if(H>=j)return S;var F=R[H];return S*(F=="desc"?-1:1)}}return I.index-T.index}var E=c,v=n(69203),p=n(27771);function P(I,T,R){T.length?T=(0,r.Z)(T,function(K){return(0,p.Z)(K)?function(C){return(0,e.Z)(C,K.length===1?K[0]:K)}:K}):T=[v.Z];var H=-1;T=(0,r.Z)(T,(0,u.Z)(_.Z));var z=(0,s.Z)(I,function(K,C,j){var S=(0,r.Z)(T,function(F){return F(K)});return{criteria:S,index:++H,value:K}});return i(z,function(K,C){return E(K,C,R)})}var O=P,D=n(69581),m=n(50439),b=(0,D.Z)(function(I,T){if(I==null)return[];var R=T.length;return R>1&&(0,m.Z)(I,T[0],T[1])?T=[]:R>2&&(0,m.Z)(T[0],T[1],T[2])&&(T=[T[0]]),O(I,(0,t.Z)(T,1),[])}),A=b},88176:function(Z,a){function n(){return[]}a.Z=n},94099:function(Z,a,n){n.d(a,{Z:function(){return m}});var t=/\s/;function r(b){for(var A=b.length;A--&&t.test(b.charAt(A)););return A}var e=r,_=/^\s+/;function s(b){return b&&b.slice(0,e(b)+1).replace(_,"")}var o=s,i=n(77226),u=n(72714),f=0/0,d=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,E=parseInt;function v(b){if(typeof b=="number")return b;if((0,u.Z)(b))return f;if((0,i.Z)(b)){var A=typeof b.valueOf=="function"?b.valueOf():b;b=(0,i.Z)(A)?A+"":A}if(typeof b!="string")return b===0?b:+b;b=o(b);var I=l.test(b);return I||c.test(b)?E(b.slice(2),I?2:8):d.test(b)?f:+b}var p=v,P=1/0,O=17976931348623157e292;function D(b){if(!b)return b===0?b:0;if(b=p(b),b===P||b===-P){var A=b<0?-1:1;return A*O}return b===b?b:0}var m=D},50751:function(Z,a,n){n.d(a,{Z:function(){return l}});var t=n(17685),r=n(74073),e=n(27771),_=n(72714),s=1/0,o=t.Z?t.Z.prototype:void 0,i=o?o.toString:void 0;function u(c){if(typeof c=="string")return c;if((0,e.Z)(c))return(0,r.Z)(c,u)+"";if((0,_.Z)(c))return i?i.call(c):"";var E=c+"";return E=="0"&&1/c==-s?"-0":E}var f=u;function d(c){return c==null?"":f(c)}var l=d},8500:function(Z,a,n){n.d(a,{Z:function(){return C}});var t=n(10626),r=n(69581),e=n(63001),_=n(21692);function s(j){return j!==j}var o=s;function i(j,S,F){for(var tn=F-1,nn=j.length;++tn<nn;)if(j[tn]===S)return tn;return-1}var u=i;function f(j,S,F){return S===S?u(j,S,F):(0,_.Z)(j,o,F)}var d=f;function l(j,S){var F=j==null?0:j.length;return!!F&&d(j,S,0)>-1}var c=l;function E(j,S,F){for(var tn=-1,nn=j==null?0:j.length;++tn<nn;)if(F(S,j[tn]))return!0;return!1}var v=E,p=n(59548),P=n(93203);function O(){}var D=O,m=n(6545),b=1/0,A=P.Z&&1/(0,m.Z)(new P.Z([,-0]))[1]==b?function(j){return new P.Z(j)}:D,I=A,T=200;function R(j,S,F){var tn=-1,nn=c,un=j.length,x=!0,U=[],G=U;if(F)x=!1,nn=v;else if(un>=T){var X=S?null:I(j);if(X)return(0,m.Z)(X);x=!1,nn=p.Z,G=new e.Z}else G=S?[]:U;n:for(;++tn<un;){var $=j[tn],M=S?S($):$;if($=F||$!==0?$:0,x&&M===M){for(var L=G.length;L--;)if(G[L]===M)continue n;S&&G.push(M),U.push($)}else nn(G,M,F)||(G!==U&&G.push(M),U.push($))}return U}var H=R,z=n(836),K=(0,r.Z)(function(j){return H((0,t.Z)(j,1,z.Z,!0))}),C=K},66749:function(Z,a,n){var t=n(50751),r=0;function e(_){var s=++r;return(0,t.Z)(_)+s}a.Z=e},34148:function(Z,a,n){n.d(a,{Z:function(){return o}});var t=n(74073);function r(i,u){return(0,t.Z)(u,function(f){return i[f]})}var e=r,_=n(17179);function s(i){return i==null?[]:e(i,(0,_.Z)(i))}var o=s},62743:function(Z,a,n){n.d(a,{Z:function(){return s}});var t=n(72954);function r(o,i,u){for(var f=-1,d=o.length,l=i.length,c={};++f<d;){var E=f<l?i[f]:void 0;u(c,o[f],E)}return c}var e=r;function _(o,i){return e(o||[],i||[],t.Z)}var s=_}}]);