import{o as e,t}from"./chunk-Bj-mKKzh.js";import{n,t as r}from"./lib-qyXcPJAL.js";var i=t(((t,i)=>{(function(a,o){typeof t==`object`&&typeof i==`object`?i.exports=o((r(),e(n))):typeof define==`function`&&define.amd?define([`@popperjs/core`],o):typeof t==`object`?t.cytoscapePopper=o((r(),e(n))):a.cytoscapePopper=o(a.Popper)})(t,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=7)})([(function(e,t,n){e.exports=Object.assign==null?function(e){return[...arguments].slice(1).forEach(function(t){t!=null&&Object.keys(t).forEach(function(n){return e[n]=t[n]})}),e}:Object.assign.bind(Object)}),(function(e,t,n){var r=n(5).getBoundingBox;function i(e,t){return{getBoundingClientRect:function(){return r(e,t)}}}e.exports={getRef:i}}),(function(e,t,n){var r=n(0),i=n(1).getRef,a=n(6).getContent,o={},s=n(8).createPopper;function c(e,t){return s(i(e,t),a(e,t.content),r({},o,t.popper))}e.exports={getPopper:c}}),(function(e,t,n){var r=n(0),i=n(2).getPopper,a=n(1).getRef;function o(e){return d(this),i(this[0],c(this[0],e))}function s(e){return d(this),a(this[0],c(this[0],e))}function c(e,t){var n=function(e){return e.isNode()?{w:e.renderedWidth(),h:e.renderedHeight()}:{w:3,h:3}};return r({},{renderedDimensions:n,renderedPosition:function(e){return e.isNode()?l(e,n):u(e)},popper:{},cy:e.cy()},t)}function l(e,t){var n=e.renderedPosition(),r=t(e),i=r.w/2,a=r.h/2;return{x:n.x-i,y:n.y-a}}function u(e){var t=e.midpoint(),n=e.cy().pan(),r=e.cy().zoom();return{x:t.x*r+n.x,y:t.y*r+n.y}}function d(e){e.length>1&&(console.warn(`Popper.js Extension should only be used on one element.`),console.warn(`Ignoring all subsequent elements`))}e.exports={popper:o,popperRef:s}}),(function(e,t,n){var r=n(0),i=n(2).getPopper,a=n(1).getRef;function o(e){return i(this,c(this,e))}function s(e){return a(this,c(this,e))}function c(e,t){return r({},{boundingBox:{top:0,left:0,right:0,bottom:0,w:3,h:3},renderedDimensions:function(){return{w:3,h:3}},renderedPosition:function(){return{x:0,y:0}},popper:{},cy:e},t)}e.exports={popper:o,popperRef:s}}),(function(e,t,n){function r(e,t){var n=t.renderedPosition,r=t.cy,i=t.renderedDimensions,a=r.container().getBoundingClientRect(),o=i(e),s=n(e);return{top:s.y+a.top,left:s.x+a.left,right:s.x+o.w+a.left,bottom:s.y+o.h+a.top,width:o.w,height:o.h}}e.exports={getBoundingBox:r}}),(function(e,t,n){function r(e,t){var n=null;if(typeof t==`function`)n=t(e);else if(t instanceof HTMLElement)return t;else throw Error(`Can not create popper from 'target' with unknown type`);if(n===null)throw Error(`No 'target' specified to create popper`);return n}e.exports={getContent:r}}),(function(e,t,n){var r=n(4),i=n(3),a=function(e){e&&(e(`core`,`popper`,r.popper),e(`collection`,`popper`,i.popper),e(`core`,`popperRef`,r.popperRef),e(`collection`,`popperRef`,i.popperRef))};typeof cytoscape<`u`&&a(cytoscape),e.exports=a}),(function(t,n){t.exports=e})])})}));export default i();