{ "pandav:/index.js": { "cubeCode": "Cube('pandav:/npm/rbush/3.0.1',['pandav:/npm/quickselect/1.0.1'],function(a,b,c){var d=Math.min,e=Math.ceil,f=Math.max;function g(a,b){return this instanceof g?void(this._maxEntries=f(4,a||9),this._minEntries=f(2,e(.4*this._maxEntries)),b&&this._initFormat(b),this.clear()):new g(a,b)}function h(a,b,c){if(!c)return b.indexOf(a);for(var d=0;d=c.minX&&a.maxY>=c.minY}function w(a){return{children:a,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-Infinity,maxY:-Infinity}}function x(a,b,c,d,f){for(var g,h=[b,c];h.length;)c=h.pop(),b=h.pop(),c-b<=d||(g=b+e((c-b)/d/2)*d,y(a,g,b,c,f),h.push(b,g,g,c))}a.exports=g,a.exports.default=g;var y=c('pandav:/npm/quickselect/1.0.1');return g.prototype={all:function(){return this._all(this.data,[])},search:function(a){var b=this.data,c=[],d=this.toBBox;if(!v(a,b))return c;for(var e,f,g,h,j=[];b;){for(e=0,f=b.children.length;ethis._maxEntries;)this._split(f,b),b--;this._adjustParentBBoxes(e,f,b)},_split:function(a,b){var c=a[b],d=c.children.length,e=this._minEntries;this._chooseSplitAxis(c,e,d);var f=this._chooseSplitIndex(c,e,d),g=w(c.children.splice(f,c.children.length-f));g.height=c.height,g.leaf=c.leaf,k(c,this.toBBox),k(g,this.toBBox),b?a[b-1].children.push(g):this._splitRoot(c,g)},_splitRoot:function(a,b){this.data=w([a,b]),this.data.height=a.height+1,this.data.leaf=!1,k(this.data,this.toBBox)},_chooseSplitIndex:function(a,b,c){var d,e,f,g,h,j,k,m;for(j=k=1/0,d=b;d<=c-b;d++)e=l(a,0,d,this.toBBox),f=l(a,d,c,this.toBBox),g=t(e,f),h=q(e)+q(f),g=b;e--)f=a.children[e],n(j,a.leaf?g(f):f),k+=r(j);return k},_adjustParentBBoxes:function(a,b,c){for(var d=c;0<=d;d--)n(b[d],a)},_condense:function(a){for(var b,c=a.length-1;0<=c;c--)0===a[c].children.length?0