function t(t,n,a){var e=t.$amap.events||(t.$amap.events={});(e[n]||(e[n]=[])).push(a)}function n(n){var a=n.$options.amapMeta.events,e=void 0===a?[]:a,o=n.$amap.context.target;e.forEach((function(a){n.$watch("$listeners."+a,(function(e,f){f&&o.off(a,f),e&&(t(n,a,e),o.on(a,e))}),{immediate:!0})}))}function a(n,a,e,o){o||(o=n.$amap.context.target);var f=e.events;(void 0===f?[]:f).forEach((function(f){var i=e.getter;if(i){var r=function(t){var f="function"==typeof i?i.call(n,o,t):o[i](),r=n.$props[a];if("function"==typeof e.equals){if(e.equals(f,r))return}else if(f===r)return;n.$emit("update:"+a,f)};t(n,f,r),o.on(f,r)}}))}function e(t){var n=t.$amap.context.target,a=t.$amap.events||{},e=function(t){a[t].forEach((function(a){n.off(t,a)}))};for(var o in a)e(o)}export{n as bindEvents,a as bindTwoWayEvent,e as unbindEvents};