@antv/g-svg 1.8.54 → 1.8.56
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.
- package/dist/index.esm.js +354 -218
- package/dist/index.js +354 -218
- package/dist/index.umd.js +1799 -1194
- package/dist/index.umd.min.js +1 -1
- package/package.json +5 -5
package/dist/index.umd.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@antv/g-lite")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).G=t.G||{},t.G.SVG={}),t.window.G)}(this,(function(t,e){"use strict";function r(){r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=Object.create((e&&e.prototype instanceof d?e:d).prototype),a=new O(n||[]);return i(o,"_invoke",{value:x(t,r,a)}),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function p(){}function v(){}var m={};s(m,a,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(C([])));y&&y!==e&&n.call(y,a)&&(m=y);var b=v.prototype=d.prototype=Object.create(m);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(i,o,a,u){var c=f(t[i],t,o);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function x(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return k()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=A(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function A(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=f(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=v,i(b,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:p,configurable:!0}),p.displayName=s(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},E(w.prototype),s(w.prototype,u,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(l(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(b),s(b,c,"Generator"),s(b,a,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=C,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(this.prev>=o.tryLoc){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(o.catchLoc>this.prev)return r(o.catchLoc,!0);if(o.finallyLoc>this.prev)return r(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(this.prev>=i.tryLoc&&n.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;L(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function n(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function u(t){n(a,i,o,u,c,"next",t)}function c(t){n(a,i,o,u,c,"throw",t)}u(void 0)}))}}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function u(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;o.length>n;n++)0>e.indexOf(r=o[n])&&(i[r]=t[r]);return i}function c(){c=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,i){var o=Object.create((e&&e.prototype instanceof d?e:d).prototype),a=new O(i||[]);return n(o,"_invoke",{value:x(t,r,a)}),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function p(){}function v(){}var m={};s(m,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(C([])));y&&y!==e&&r.call(y,o)&&(m=y);var b=v.prototype=d.prototype=Object.create(m);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(n,o,a,u){var c=f(t[n],t,o);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return i("throw",t,a,u)}))}u(c.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return k()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=A(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function A(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=f(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=v,n(b,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:p,configurable:!0}),p.displayName=s(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},E(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(l(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(b),s(b,u,"Generator"),s(b,o,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=C,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(this.prev>=o.tryLoc){var u=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(u&&c){if(o.catchLoc>this.prev)return n(o.catchLoc,!0);if(o.finallyLoc>this.prev)return n(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return n(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(this.prev>=i.tryLoc&&r.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;L(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function s(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,u,"next",t)}function u(t){s(o,n,i,a,u,"throw",t)}a(void 0)}))}}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var h=function(){function t(){this.context=void 0}return t.prototype.apply=function(e,r){var n=this,i=e.renderingService,o=e.renderingContext,a=e.config;this.context=e;var u=o.root.ownerDocument.defaultView,s=function(t){i.hooks.pointerMove.call(t)},f=function(t){i.hooks.pointerUp.call(t)},h=function(t){i.hooks.pointerDown.call(t)},d=function(t){i.hooks.pointerOver.call(t)},p=function(t){i.hooks.pointerOut.call(t)},v=function(t){i.hooks.pointerCancel.call(t)},m=function(t){i.hooks.pointerWheel.call(t)},g=function(t){i.hooks.click.call(t)},y=function(t){r.globalThis.document.addEventListener("pointermove",s,!0),t.addEventListener("pointerdown",h,!0),t.addEventListener("pointerleave",p,!0),t.addEventListener("pointerover",d,!0),r.globalThis.addEventListener("pointerup",f,!0)},b=function(t){t.addEventListener("touchstart",h,!0),t.addEventListener("touchend",f,!0),t.addEventListener("touchmove",s,!0),t.addEventListener("touchcancel",v,!0)},E=function(t){r.globalThis.document.addEventListener("mousemove",s,!0),t.addEventListener("mousedown",h,!0),t.addEventListener("mouseout",p,!0),t.addEventListener("mouseover",d,!0),r.globalThis.addEventListener("mouseup",f,!0)};i.hooks.init.tapPromise(t.tag,l(c().mark((function t(){var e;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=n.context.contextService.getDomElement(),r.globalThis.navigator.msPointerEnabled?(e.style.msContentZooming="none",e.style.msTouchAction="none"):u.supportsPointerEvents&&(e.style.touchAction="none"),u.supportsPointerEvents?y(e):E(e),u.supportsTouchEvents&&b(e),a.useNativeClickEvent&&e.addEventListener("click",g,!0),e.addEventListener("wheel",m,{passive:!0,capture:!0});case 6:case"end":return t.stop()}}),t)})))),i.hooks.destroy.tap(t.tag,(function(){var t=n.context.contextService.getDomElement();r.globalThis.navigator.msPointerEnabled?(t.style.msContentZooming="",t.style.msTouchAction=""):u.supportsPointerEvents&&(t.style.touchAction=""),u.supportsPointerEvents?function(t){r.globalThis.document.removeEventListener("pointermove",s,!0),t.removeEventListener("pointerdown",h,!0),t.removeEventListener("pointerleave",p,!0),t.removeEventListener("pointerover",d,!0),r.globalThis.removeEventListener("pointerup",f,!0)}(t):function(t){r.globalThis.document.removeEventListener("mousemove",s,!0),t.removeEventListener("mousedown",h,!0),t.removeEventListener("mouseout",p,!0),t.removeEventListener("mouseover",d,!0),r.globalThis.removeEventListener("mouseup",f,!0)}(t),u.supportsTouchEvents&&function(t){t.removeEventListener("touchstart",h,!0),t.removeEventListener("touchend",f,!0),t.removeEventListener("touchmove",s,!0),t.removeEventListener("touchcancel",v,!0)}(t),a.useNativeClickEvent&&t.removeEventListener("click",g,!0),t.removeEventListener("wheel",m,!0)}))},t}();h.tag="DOMInteraction";var d=function(t){var e,r;function n(){for(var e,r=arguments.length,n=Array(r),i=0;r>i;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).name="dom-interaction",e}(e=n).prototype=Object.create((r=t).prototype),e.prototype.constructor=e,f(e,r);var i=n.prototype;return i.init=function(){this.addRenderingPlugin(new h)},i.destroy=function(){this.removeAllRenderingPlugins()},n}(e.AbstractRendererPlugin),p=Object.freeze({__proto__:null,Plugin:d});function v(){v=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,i){var o=Object.create((e&&e.prototype instanceof h?e:h).prototype),a=new O(i||[]);return n(o,"_invoke",{value:x(t,r,a)}),o}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function d(){}function p(){}var m={};c(m,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(C([])));y&&y!==e&&r.call(y,o)&&(m=y);var b=p.prototype=h.prototype=Object.create(m);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(n,o,a,u){var c=l(t[n],t,o);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return i("throw",t,a,u)}))}u(c.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return k()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=A(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function A(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return d.prototype=p,n(b,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:d,configurable:!0}),d.displayName=c(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},E(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(s(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(b),c(b,u,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=C,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(this.prev>=o.tryLoc){var u=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(u&&c){if(o.catchLoc>this.prev)return n(o.catchLoc,!0);if(o.finallyLoc>this.prev)return n(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return n(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(this.prev>=i.tryLoc&&r.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;L(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function m(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);e>r;r++)n[r]=t[r];return n}function b(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return y(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return t.length>n?{done:!1,value:t[n++]}:{done:!0}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var E=function(){function t(){}var e=t.prototype;return e.apply=function(e,r){var n=this,i=e.config.document,o=e.renderingService,a=e.svgElementMap;o.hooks.pick.tapPromise(t.tag,function(){var t,e=(t=v().mark((function t(e){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",n.pick(a,i,e));case 1:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){m(o,n,i,a,u,"next",t)}function u(t){m(o,n,i,a,u,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}()),o.hooks.pickSync.tap(t.tag,(function(t){return n.pick(a,i,t)}))},e.pick=function(t,e,r){var n=r.topmost,i=r.position,o=i.clientX,a=i.clientY;try{for(var u,c=[],s=b((e||document).elementsFromPoint(o,a));!(u=s()).done;){var l=t.get(u.value);if(l&&l.isInteractive()&&(c.push(l),n))return r.picked=c,r}r.picked=c}catch(t){r.picked=[]}return r},t}();E.tag="SVGPicker";var w=function(t){var e,r;function n(){for(var e,r=arguments.length,n=Array(r),i=0;r>i;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).name="svg-picker",e}(e=n).prototype=Object.create((r=t).prototype),e.prototype.constructor=e,g(e,r);var i=n.prototype;return i.init=function(){this.addRenderingPlugin(new E)},i.destroy=function(){this.removeAllRenderingPlugins()},n}(e.AbstractRendererPlugin),x=Object.freeze({__proto__:null,Plugin:w}),A="undefined"!=typeof Float32Array?Float32Array:Array;function S(){var t=new A(16);return A!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function L(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],u=e[5],c=e[6],s=e[7],l=e[8],f=e[9],h=e[10],d=e[11],p=e[12],v=e[13],m=e[14],g=e[15],y=r*u-n*a,b=r*c-i*a,E=r*s-o*a,w=n*c-i*u,x=n*s-o*u,A=i*s-o*c,S=l*v-f*p,L=l*m-h*p,O=l*g-d*p,C=f*m-h*v,k=f*g-d*v,P=h*g-d*m,T=y*P-b*k+E*C+w*O-x*L+A*S;return T?(t[0]=(u*P-c*k+s*C)*(T=1/T),t[1]=(i*k-n*P-o*C)*T,t[2]=(v*A-m*x+g*w)*T,t[3]=(h*x-f*A-d*w)*T,t[4]=(c*O-a*P-s*L)*T,t[5]=(r*P-i*O+o*L)*T,t[6]=(m*E-p*A-g*b)*T,t[7]=(l*A-h*E+d*b)*T,t[8]=(a*k-u*O+s*S)*T,t[9]=(n*O-r*k-o*S)*T,t[10]=(p*x-v*E+g*y)*T,t[11]=(f*E-l*x-d*y)*T,t[12]=(u*L-a*C-c*S)*T,t[13]=(r*C-n*L+i*S)*T,t[14]=(v*b-p*w-m*y)*T,t[15]=(l*w-f*b+h*y)*T,t):null}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var O=function(t){return null==t},C={}.toString,k=function(t){return e="String",C.call(t)==="[object "+e+"]";var e};function P(){P=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,i){var o=Object.create((e&&e.prototype instanceof h?e:h).prototype),a=new L(i||[]);return n(o,"_invoke",{value:w(t,r,a)}),o}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function d(){}function p(){}var v={};c(v,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==e&&r.call(g,o)&&(v=g);var y=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function i(n,o,a,u){var c=l(t[n],t,o);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return i("throw",t,a,u)}))}u(c.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function w(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return C()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=x(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=p,n(y,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:d,configurable:!0}),d.displayName=c(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(E.prototype),c(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new E(s(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),c(y,u,"Generator"),c(y,o,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=O,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(this.prev>=o.tryLoc){var u=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(u&&c){if(o.catchLoc>this.prev)return n(o.catchLoc,!0);if(o.finallyLoc>this.prev)return n(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return n(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(this.prev>=i.tryLoc&&r.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function T(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function G(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){T(o,n,i,a,u,"next",t)}function u(t){T(o,n,i,a,u,"throw",t)}a(void 0)}))}}function M(){return M=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},M.apply(this,arguments)}function _(t,e){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_(t,e)}var j=function(){this.$el=void 0,this.$groupEl=void 0,this.$hitTestingEl=void 0};function N(t,e){var r=e.img,n=void 0===r?"":r,i=e.width,o=e.height;if(t.setAttribute("x","0"),t.setAttribute("y","0"),k(n))t.setAttribute("href",n);else if(n instanceof Image)i||t.setAttribute("width",""+n.width),o||t.setAttribute("height",""+n.height),t.setAttribute("href",n.src);else if(n instanceof HTMLElement&&k(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase())t.setAttribute("href",n.toDataURL());else if(n instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",""+n.width),a.setAttribute("height",""+n.height);var u=a.getContext("2d");u&&(u.putImageData(n,0,0),i||t.setAttribute("width",""+n.width),o||t.setAttribute("height",""+n.height),t.setAttribute("href",a.toDataURL()))}}function D(t,r){var n=r.x1,i=r.y1,o=r.x2,a=r.y2,u=r.defX,c=void 0===u?0:u,s=r.defY,l=void 0===s?0:s,f=r.markerStart,h=r.markerEnd,d=r.markerStartOffset,p=r.markerEndOffset,v=0,m=0,g=0,y=0,b=0;f&&e.isDisplayObject(f)&&d&&(v=Math.cos(b=Math.atan2(a-i,o-n))*(d||0),m=Math.sin(b)*(d||0)),h&&e.isDisplayObject(h)&&p&&(g=Math.cos(b=Math.atan2(i-a,n-o))*(p||0),y=Math.sin(b)*(p||0)),t.setAttribute("x1",""+(n-c+v)),t.setAttribute("y1",""+(i-l+m)),t.setAttribute("x2",""+(o-c+g)),t.setAttribute("y2",""+(a-l+y))}function $(t,r){var n=r.path,i=r.defX,o=void 0===i?0:i,a=r.defY,u=void 0===a?0:a,c=r.markerStart,s=r.markerEnd,l=r.markerStartOffset,f=r.markerEndOffset,h=0,d=0,p=0,v=0,m=0;if(c&&e.isDisplayObject(c)&&l){var g=c.parentNode.getStartTangent(),y=g[0],b=g[1];h=Math.cos(m=Math.atan2(y[1]-b[1],y[0]-b[0]))*(l||0),d=Math.sin(m)*(l||0)}if(s&&e.isDisplayObject(s)&&f){var E=s.parentNode.getEndTangent(),w=E[0],x=E[1];p=Math.cos(m=Math.atan2(w[1]-x[1],w[0]-x[0]))*(f||0),v=Math.sin(m)*(f||0)}t.setAttribute("d",e.translatePathToString(n.absolutePath,o,u,h,d,p,v))}function V(t,r){var n=r.points.points,i=r.defX,o=void 0===i?0:i,a=r.defY,u=void 0===a?0:a,c=r.markerStart,s=r.markerStartOffset,l=r.markerEnd,f=r.markerEndOffset,h=n.length;if(n&&h>=2){var d=0,p=0,v=0,m=0,g=0;c&&e.isDisplayObject(c)&&s&&(d=Math.cos(g=Math.atan2(n[1][1]-n[0][1],n[1][0]-n[0][0]))*(s||0),p=Math.sin(g)*(s||0)),l&&e.isDisplayObject(l)&&f&&(v=Math.cos(g=Math.atan2(n[h-2][1]-n[h-1][1],n[h-2][0]-n[h-1][0]))*(f||0),m=Math.sin(g)*(f||0)),t.setAttribute("points",n.map((function(t,e){var r=0,n=0;return 0===e?(r=d,n=p):e===h-1&&(r=v,n=m),t[0]-o+r+","+(t[1]-u+n)})).join(" "))}}function R(t,e){var r=e.radius,n=e.width,i=e.height;if(isFinite(n)&&isFinite(i)){var o="";if(r&&r.some((function(t){return 0!==t}))){var a=r.map((function(t){return e=t,r=0,o=Math.min(Math.abs(n)/2,Math.abs(i)/2),r>e?r:e>o?o:e;var e,r,o})),u=a[0],c=a[1],s=a[2],l=a[3],f=n>0?1:-1,h=i>0?1:-1,d=f+h!==0?1:0;o=[["M "+f*u+",0"],["l "+(n-f*(u+c))+",0"],["a "+c+","+c+",0,0,"+d+","+f*c+","+h*c],["l 0,"+(i-h*(c+s))],["a "+s+","+s+",0,0,"+d+","+-f*s+","+h*s],["l "+(f*(s+l)-n)+",0"],["a "+l+","+l+",0,0,"+d+","+-f*l+","+-h*l],["l 0,"+(h*(l+u)-i)],["a "+u+","+u+",0,0,"+d+","+f*u+","+-h*u],["z"]].join(" ")}else o="M 0,0 l "+n+",0 l 0,"+i+" l"+-n+" 0 z";t.setAttribute("d",o)}}function I(t,e){return(e||document).createElementNS("http://www.w3.org/2000/svg",t)}function U(t){return t.toFixed(6).replace(".000000","")}function F(t){return t.replace(/[&|<|>|"|']/g,(function(t){return"&"===t?"&":"<"===t?"<":">"===t?">":'"'===t?""":"'"}))}j.tag="c-svg-element";var H={opacity:"opacity",fillStyle:"fill",fill:"fill",fillRule:"fill-rule",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",clipPath:"clip-path",textPath:"text-path",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",letterSpacing:"letter-spacing",startArrow:"marker-start",endArrow:"marker-end",class:"class",id:"id",preserveAspectRatio:"preserveAspectRatio",visibility:"visibility",anchor:"anchor",shadowColor:"flood-color",shadowBlur:"stdDeviation",shadowOffsetX:"dx",shadowOffsetY:"dy",filter:"filter",innerHTML:"innerHTML",textAlign:"text-anchor",pointerEvents:"pointer-events"},B={textAlign:{inherit:"inherit",left:"left",start:"left",center:"middle",right:"end",end:"end"}},W={textAlign:"inherit",lineCap:"butt",lineJoin:"miter",lineWidth:"1px",opacity:"1",fillOpacity:"1",fillRule:"nonzero",strokeOpacity:"1",strokeWidth:"0",strokeMiterLimit:"4",letterSpacing:"0",fontSize:"inherit",fontFamily:"inherit",pointerEvents:"auto"},Y="g-svg",X="clip-path-",z="text-path-",q=function(){function t(t,e,r){this.pluginOptions=void 0,this.defElementManager=void 0,this.context=void 0,this.svgElementMap=new WeakMap,this.$camera=void 0,this.renderQueue=[],this.dirtyAttributes=new WeakMap,this.pendingReorderQueue=new Set,this.clipPathUseMap=new WeakMap,this.pluginOptions=t,this.defElementManager=e,this.context=r}var r=t.prototype;return r.apply=function(r){var n=this,i=r.renderingService,o=r.renderingContext;this.context=r,this.context.svgElementMap=this.svgElementMap;var a=o.root.ownerDocument.defaultView,u=this.context.config.document,c=function(t){var e=t.target;if(n.clipPathUseMap.get(e)){var r=n.defElementManager.getDefElement().querySelector("#"+n.getId(e));r&&r.remove()}n.createSVGDom(u,e,n.$camera)},s=function(t){var e=t.target;n.defElementManager.clear(e.entity),n.clipPathUseMap.delete(e),n.removeSVGDom(e)},l=function(t){var e,r,i=t.parentNode,o=null===(e=t.parentNode)||void 0===e||null===(r=e.elementSVG)||void 0===r?void 0:r.$groupEl,a=((null==i?void 0:i.children)||[]).slice();o&&n.reorderChildren(u,o,a)},f=function(t){l(t.target)},h=function(t){var e=t.target;if(e.elementSVG){var r=t.attrName,i=n.dirtyAttributes.get(e);i||(n.dirtyAttributes.set(e,[]),i=n.dirtyAttributes.get(e)),i.push(r)}},d=function(t){var r,i=t.target,o=null===(r=i.elementSVG)||void 0===r?void 0:r.$el,a=i.parsedStyle,u=a.fill,c=a.stroke,s=a.clipPath;if(u&&!e.isCSSRGB(u)&&n.defElementManager.createOrUpdateGradientAndPattern(i,o,u,"fill",n),c&&!e.isCSSRGB(c)&&n.defElementManager.createOrUpdateGradientAndPattern(i,o,c,"stroke",n),s){var l=L(S(),i.getWorldTransform()),f=X+s.entity+"-"+i.entity,h=n.defElementManager.getDefElement().querySelector("#"+f);h&&n.applyTransform(h,l)}};i.hooks.init.tapPromise(t.tag,G(P().mark((function t(){var r,i,o,u;return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=(r=n.context.config).background,o=r.document,n.defElementManager.init(),u=n.context.contextService.getContext(),i&&(u.style.background=i),u.setAttribute("color-interpolation-filters","sRGB"),n.$camera=I("g",o),n.$camera.id=Y+"-camera",n.applyTransform(n.$camera,n.context.camera.getOrthoMatrix()),u.appendChild(n.$camera),a.addEventListener(e.ElementEvent.MOUNTED,c),a.addEventListener(e.ElementEvent.UNMOUNTED,s),a.addEventListener(e.ElementEvent.REPARENT,f),a.addEventListener(e.ElementEvent.ATTR_MODIFIED,h),a.addEventListener(e.ElementEvent.BOUNDS_CHANGED,d);case 14:case"end":return t.stop()}}),t)})))),i.hooks.destroy.tap(t.tag,(function(){a.removeEventListener(e.ElementEvent.MOUNTED,c),a.removeEventListener(e.ElementEvent.UNMOUNTED,s),a.removeEventListener(e.ElementEvent.REPARENT,f),a.removeEventListener(e.ElementEvent.ATTR_MODIFIED,h),a.removeEventListener(e.ElementEvent.BOUNDS_CHANGED,d)})),i.hooks.render.tap(t.tag,(function(t){n.renderQueue.push(t)})),i.hooks.beginFrame.tap(t.tag,(function(){var t=n.context.config.document;n.pendingReorderQueue.size&&(n.pendingReorderQueue.forEach((function(e){var r,i=((null==e?void 0:e.children)||[]).slice(),o=null==e||null===(r=e.elementSVG)||void 0===r?void 0:r.$groupEl;o&&n.reorderChildren(t||u,o,i||[])})),n.pendingReorderQueue.clear())})),i.hooks.endFrame.tap(t.tag,(function(){o.renderReasons.has(e.RenderReason.CAMERA_CHANGED)&&n.applyTransform(n.$camera,n.context.camera.getOrthoMatrix()),n.renderQueue.forEach((function(t){var e,r,i=null===(e=t.elementSVG)||void 0===e?void 0:e.$el,o=null===(r=t.elementSVG)||void 0===r?void 0:r.$groupEl;if(i&&o){var a=t.getLocalTransform();n.applyTransform(o,a);var u=n.clipPathUseMap.get(t);u&&u.length&&u.forEach((function(e){n.applyTransform(e,t.getWorldTransform())})),t.renderable.dirty=!1}var c=n.dirtyAttributes.get(t);c&&(c.forEach((function(e){"zIndex"===e?l(t):"increasedLineWidthForHitTesting"===e&&n.createOrUpdateHitArea(t,i,o),n.updateAttribute(t,[e])})),n.dirtyAttributes.delete(t))})),n.renderQueue=[]}))},r.getId=function(t){return Y+"-"+t.entity},r.reorderChildren=function(t,e,r){if(r.sort((function(t,e){return t.sortable.renderOrder-e.sortable.renderOrder})),r.length){var n=(t||document).createDocumentFragment();r.forEach((function(t){if(t.isConnected){var e=t.elementSVG.$groupEl;e&&n.appendChild(e)}})),e.appendChild(n)}},r.applyTransform=function(t,e){t.setAttribute("transform","matrix("+U(e[0])+","+U(e[1])+","+U(e[4])+","+U(e[5])+","+U(e[12])+","+U(e[13])+")")},r.applyAttributes=function(t){var r=t.elementSVG,n=null==r?void 0:r.$el;if(n&&(null==r?void 0:r.$groupEl)){var i=t.nodeName,o=t.attributes;n.setAttribute("fill","none"),i===e.Shape.IMAGE&&n.setAttribute("preserveAspectRatio","none"),this.updateAttribute(t,Object.keys(o))}},r.updateAttribute=function(t,r){var n=this,i=this.context.config.document,o=t.elementSVG,a=o.$el,u=o.$groupEl,c=o.$hitTestingEl,s=t.parsedStyle,l=t.computedStyle,f=t.nodeName;r.some((function(e){return n.context.SVGElementLifeCycleContribution.shouldUpdateElementAttribute(t,e)}))&&a&&[a,c].forEach((function(r){r&&(n.context.SVGElementLifeCycleContribution.updateElementAttribute(t,r,n.svgElementMap),t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t))})),r.forEach((function(r){var o,h,d=H[r],p=e.runtime.enableCSSParsing?l[r]:s[r],v=!O(p)&&""+p,m=(null===(o=B[r])||void 0===o?void 0:o[v])||v,g=s[r],y=d&&!!(null===(h=e.propertyMetadataCache[r])||void 0===h?void 0:h.inh);d&&(f!==e.Shape.GROUP&&!t.isCustomElement||e.runtime.enableCSSParsing||!y&&"fill"!==d&&"stroke"!==d)&&(f===e.Shape.HTML&&("lineWidth"===r?a.style["border-width"]=(g||0)+"px":"lineDash"===r&&(a.style["border-style"]="dashed")),"fill"===r?f===e.Shape.HTML?a.style.background=""+g:n.defElementManager.createOrUpdateGradientAndPattern(t,a,g,d,n):"stroke"===r?f===e.Shape.HTML?(a.style["border-color"]=""+g,a.style["border-style"]="solid"):n.defElementManager.createOrUpdateGradientAndPattern(t,a,g,d,n):e.runtime.enableCSSParsing&&y?"unset"!==v&&v!==W[r]?null==u||u.setAttribute(d,m):null==u||u.removeAttribute(d):"clipPath"===r?n.createOrUpdateClipOrTextPath(i,g,t):"textPath"===r?n.createOrUpdateClipOrTextPath(i,g,t,!0):"shadowType"===r||"shadowColor"===r||"shadowBlur"===r||"shadowOffsetX"===r||"shadowOffsetY"===r?n.defElementManager.createOrUpdateShadow(t,a,r):"filter"===r?n.defElementManager.createOrUpdateFilter(t,a,g):"innerHTML"===r?n.createOrUpdateInnerHTML(i,a,g):"anchor"===r?f!==e.Shape.TEXT&&n.updateAnchorWithTransform(t):O(p)||[a,c].forEach((function(t){t&&d&&("unset"!==v&&v!==W[r]?t.setAttribute(d,m):t.removeAttribute(d))})))}))},r.createSVGDom=function(t,r,n,i){void 0===i&&(i=!1),r.elementSVG=new j;var o=r.elementSVG,a=this.context.SVGElementLifeCycleContribution.createElement(r,this.svgElementMap);if(a){var u,c;r.nodeName===e.Shape.HTML&&(r.parsedStyle.$el=a),this.pluginOptions.outputSVGElementId&&(a.id=this.getId(r)),this.pluginOptions.outputSVGElementName&&r.name&&a.setAttribute("name",r.name),!a.hasAttribute("data-wrapgroup")&&"g"===a.nodeName||i?c=a:((c=I("g",t)).id=a.id+"-g",c.appendChild(a)),o.$el=a,o.$groupEl=c,this.applyAttributes(r),this.createOrUpdateHitArea(r,a,c);var s=n||r.parentNode&&(null===(u=r.parentNode.elementSVG)||void 0===u?void 0:u.$groupEl);s&&(s.appendChild(c),this.pendingReorderQueue.add(r.parentNode))}},r.removeSVGDom=function(t){var e,r=null===(e=t.elementSVG)||void 0===e?void 0:e.$groupEl;r&&r.parentNode&&(r.parentNode.removeChild(r),this.context.SVGElementLifeCycleContribution.destroyElement(t,r))},r.createOrUpdateHitArea=function(t,e,r){var n=t.elementSVG,i=n.$hitTestingEl,o=t.parsedStyle.increasedLineWidthForHitTesting;if(o){if(!i){i=e.cloneNode(),this.pluginOptions.outputSVGElementId&&(i.id=Y+"-"+t.nodeName+"-hittesting-"+t.entity),["filter"].forEach((function(t){i.removeAttribute(t)}));var a="none"!==e.getAttribute("fill");i.setAttribute("fill",a?"transparent":"none"),i.setAttribute("stroke","transparent"),r.appendChild(i),n.$hitTestingEl=i}i.setAttribute("stroke-width",""+(o+t.parsedStyle.lineWidth))}else i&&(r.removeChild(i),n.$hitTestingEl=null)},r.createOrUpdateInnerHTML=function(t,e,r){var n=(t||document).createElement("div");"string"==typeof r?n.innerHTML=r:n.appendChild(r),e.innerHTML="",e.appendChild(n)},r.createOrUpdateClipOrTextPath=function(t,e,r,n){void 0===n&&(n=!1);var i=r.elementSVG.$groupEl,o=n?"g":"clipPath",a=n?"text-path":"clip-path";if(e){var u=(n?z:X)+e.entity+"-"+r.entity,c=this.defElementManager.getDefElement();if(!c.querySelector("#"+u)){var s;if(n)this.createSVGDom(t,e,null,!0),s=e.elementSVG.$el;else{if(!e.isConnected)c.querySelector("#"+this.getId(e))||this.createSVGDom(t,e,c,!0);s=I(o,t);var l=I("use",t);l.setAttribute("href","#"+e.elementSVG.$el.id),s.appendChild(l);var f=this.clipPathUseMap.get(e);f||(this.clipPathUseMap.set(e,[]),f=this.clipPathUseMap.get(e)),f.push(l),this.applyTransform(l,e.getWorldTransform());var h=L(S(),r.getWorldTransform());this.applyTransform(s,h)}s.id=u,c.appendChild(s)}this.applyAttributes(e),n||i.setAttribute(a,"url(#"+u+")")}else n||i.removeAttribute(a)},r.updateAnchorWithTransform=function(t){var r,n,i=t.getGeometryBounds(),o=i&&2*i.halfExtents[0]||0,a=i&&2*i.halfExtents[1]||0,u=(t.parsedStyle||{}).anchor;[null===(r=t.elementSVG)||void 0===r?void 0:r.$el,null===(n=t.elementSVG)||void 0===n?void 0:n.$hitTestingEl].forEach((function(r){if(r){var n=-u[0]*o,i=-u[1]*a;0===n&&0===i||r.setAttribute("transform","translate("+n+","+i+")"),t.nodeName!==e.Shape.CIRCLE&&t.nodeName!==e.Shape.ELLIPSE||(r.setAttribute("cx",""+o/2),r.setAttribute("cy",""+a/2))}}))},t}();q.tag="SVGRenderer";var Q,J,Z={top:"hanging",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"};function K(t,r,n){var i=r.lineWidth,o=r.dx,a=r.dy,u=r.textPath,c=r.textPathSide,s=void 0===c?"left":c,l=r.textPathStartOffset,f=void 0===l?0:l,h=r.textDecorationLine,d=void 0===h?"":h,p=r.textDecorationColor,v=void 0===p?"":p,m=r.textDecorationStyle,g=void 0===m?"":m,y=r.metrics,b=r.textBaseline;e.runtime.enableCSSParsing||"alphabetic"!==b||(b="bottom"),t.setAttribute("dominant-baseline",Z[b]),t.setAttribute("paint-order","stroke");var E=y.lines,w=y.lineHeight,x=y.height,A=E.length,S="";if(0===o&&0===a||(S+="transform:translate("+o+"px, "+a+"px);"),d&&"none"!==d&&(S+="text-decoration:"+d+" "+g+" "+v+";"),S&&t.setAttribute("style",S),1===A){var L=F(E[0]);if(t.setAttribute("dx",""+i/2),"bottom"!==b&&"top"!==b||(t.setAttribute("dominant-baseline","middle"),t.setAttribute("dy","bottom"===b?"-0.5em":"0.5em")),u){t.innerHTML="";var O=I("textPath",t.ownerDocument);O.setAttribute("href","#"+(z+u.entity)),"left"!==s&&O.setAttribute("side",s),0!==f&&O.setAttribute("startOffset",""+f),O.innerHTML=L,t.appendChild(O)}else t.innerHTML=L}else t.innerHTML=E.map((function(t,e){var r=0;return 0===e?"middle"===b?r=w/2-x/2:"top"===b||"hanging"===b?r=0:"bottom"!==b&&"alphabetic"!==b&&"ideographic"!==b||(r=-w*(A-1)):r=w,'<tspan x="0" dx="'+i/2+'" dy="'+r+'">'+F(t)+"</tspan>"})).join("")}var tt=((Q={})[e.Shape.RECT]="path",Q[e.Shape.CIRCLE]="circle",Q[e.Shape.ELLIPSE]="ellipse",Q[e.Shape.IMAGE]="image",Q[e.Shape.GROUP]="g",Q[e.Shape.LINE]="line",Q[e.Shape.POLYLINE]="polyline",Q[e.Shape.POLYGON]="polygon",Q[e.Shape.TEXT]="text",Q[e.Shape.PATH]="path",Q[e.Shape.HTML]="foreignObject",Q),et=((J={})[e.Shape.CIRCLE]=["r"],J[e.Shape.ELLIPSE]=["rx","ry"],J[e.Shape.RECT]=["width","height","radius"],J[e.Shape.IMAGE]=["img","width","height"],J[e.Shape.LINE]=["x1","y1","x2","y2","markerStart","markerEnd","markerStartOffset","markerEndOffset"],J[e.Shape.POLYLINE]=["points","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"],J[e.Shape.POLYGON]=["points","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"],J[e.Shape.PATH]=["path","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"],J[e.Shape.TEXT]=["text","font","fontSize","fontFamily","fontStyle","fontWeight","fontVariant","lineHeight","letterSpacing","wordWrap","wordWrapWidth","maxLines","leading","textBaseline","textAlign","textTransform","textOverflow","textPath","textPathSide","textPathStartOffset","textDecorationLine","textDecorationColor","textDecorationStyle","dx","dy"],J),rt=function(){function t(t){this.context=void 0,this.context=t}var r=t.prototype;return r.createElement=function(t,e){var r=I(tt[t.nodeName]||"g",this.context.config.document||document);return e.set(r,t),r},r.destroyElement=function(t,e){},r.shouldUpdateElementAttribute=function(t,e){return(et[t.nodeName]||[]).indexOf(e)>-1},r.updateElementAttribute=function(t){var r=t.elementSVG.$el,n=t.parsedStyle;switch(t.nodeName){case e.Shape.IMAGE:N(r,n);break;case e.Shape.RECT:R(r,n);break;case e.Shape.LINE:D(r,n);break;case e.Shape.POLYGON:case e.Shape.POLYLINE:V(r,n);break;case e.Shape.PATH:$(r,n);break;case e.Shape.TEXT:K(r,n)}},t}(),nt="g-filter-";function it(t,e,r,n,i){var o=nt+r.entity,a=e.querySelectorAll("[name="+o+"]");if(a.length&&a.forEach((function(t){e.removeChild(t)})),0===i.length)null==n||n.removeAttribute("filter");else{var u=i.map((function(r,n){var i=r.name,a=r.params,u=I("filter",t);return u.setAttribute("filterUnits","userSpaceOnUse"),"blur"===i?function(t,e,r){var n=I("feGaussianBlur",t);n.setAttribute("in","SourceGraphic"),n.setAttribute("stdDeviation",""+r[0].value),e.appendChild(n)}(t,u,a):"brightness"===i?function(t,e,r){var n=ot(r[0]);at(t,e,{type:"linear",slope:n,intercept:0})}(t,u,a):"drop-shadow"===i?function(t,e,r){var n=r[0].value,i=r[1].value,o=r[2].value,a=r[3].formatted,u=I("feGaussianBlur",t);u.setAttribute("in","SourceAlpha"),u.setAttribute("stdDeviation",""+o),e.appendChild(u);var c=I("feOffset",t);c.setAttribute("dx",""+n),c.setAttribute("dy",""+i),c.setAttribute("result","offsetblur"),e.appendChild(c);var s=I("feFlood",t);s.setAttribute("flood-color",a),e.appendChild(s);var l=I("feComposite",t);l.setAttribute("in2","offsetblur"),l.setAttribute("operator","in"),e.appendChild(l);var f=I("feMerge",t);e.appendChild(f);var h=I("feMergeNode",t),d=I("feMergeNode",t);d.setAttribute("in","SourceGraphic"),f.appendChild(h),f.appendChild(d)}(t,u,a):"contrast"===i?function(t,e,r){var n=ot(r[0]);at(t,e,{type:"linear",slope:n,intercept:-.5*n+.5})}(t,u,a):"grayscale"===i?function(t,e,r){var n=ot(r[0]);ut(t,e,[.2126+.7874*(1-n),.7152-.7152*(1-n),.0722-.0722*(1-n),0,0,.2126-.2126*(1-n),.7152+.2848*(1-n),.0722-.0722*(1-n),0,0,.2126-.2126*(1-n),.7152-.7152*(1-n),.0722+.9278*(1-n),0,0,0,0,0,1,0])}(t,u,a):"sepia"===i?function(t,e,r){var n=ot(r[0]);ut(t,e,[.393+.607*(1-n),.769-.769*(1-n),.189-.189*(1-n),0,0,.349-.349*(1-n),.686+.314*(1-n),.168-.168*(1-n),0,0,.272-.272*(1-n),.534-.534*(1-n),.131+.869*(1-n),0,0,0,0,0,1,0])}(t,u,a):"saturate"===i?function(t,e,r){var n=ot(r[0]),i=I("feColorMatrix",t);i.setAttribute("type","saturate"),i.setAttribute("values",""+n),e.appendChild(i)}(t,u,a):"hue-rotate"===i?function(t,e,r){var n=I("feColorMatrix",t);n.setAttribute("type","hueRotate"),n.setAttribute("values",""+r[0].value),e.appendChild(n)}(t,u,a):"invert"===i&&function(t,e,r){var n=ot(r[0]);at(t,e,{type:"table",tableValues:n+" "+(1-n)})}(t,u,a),u.id=o+"-"+n,u.setAttribute("name",o),e.appendChild(u),u.id}));setTimeout((function(){null==n||n.setAttribute("filter",u.map((function(t){return"url(#"+t+")"})).join(" "))}))}}function ot(t){return t.unit===e.UnitType.kPercentage?t.value/100:t.value}function at(t,e,r){var n=r.type,i=r.slope,o=r.intercept,a=r.tableValues,u=I("feComponentTransfer",t);[I("feFuncR",t),I("feFuncG",t),I("feFuncB",t)].forEach((function(t){t.setAttribute("type",n),"table"===n?t.setAttribute("tableValues",""+a):(t.setAttribute("slope",""+i),t.setAttribute("intercept",""+o)),u.appendChild(t)})),e.appendChild(u)}function ut(t,e,r){var n=I("feColorMatrix",t);n.setAttribute("type","matrix"),n.setAttribute("values",r.join(" ")),e.appendChild(n)}var ct="g-pattern-",st={},lt=0;function ft(t,r,n,i,o,a,u,c){if(!o)return"";if(!e.isCSSRGB(o)){if(e.isPattern(o)){var s=function(t,r,n,i,o,a){var u=ht(i),c=r.querySelector("#"+u);if(!c){var s=i.image,l="";if(k(s)?l=s:e.isBrowser&&(s instanceof HTMLImageElement?l=s.src:s instanceof HTMLCanvasElement&&(l=s.toDataURL())),l){var f,h=I("image",t);h.setAttribute("href",l),o?f=o(l):e.isBrowser&&(f=new window.Image),l.match(/^data:/i)||(f.crossOrigin="Anonymous",h.setAttribute("crossorigin","anonymous")),f.src=l;var d=function(){var e=dt(t,r,n,i,u,f.width,f.height);r.appendChild(e),e.appendChild(h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("width",""+f.width),h.setAttribute("height",""+f.height)};f.complete?d():f.onload=d}if("rect"===s.nodeName){var p=s.parsedStyle,v=dt(t,r,s,i,u,p.width,p.height);s.forEach((function(e){a.createSVGDom(t,e,null);var r=e.elementSVG,n=e.getLocalTransform();a.applyTransform(r.$groupEl,n)})),v.appendChild(s.elementSVG.$groupEl)}}return u}(t,r,n,o,u,c);return i.style[a]="url(#"+s+")",s}if(1===o.length){var l=pt(t,n,r,i,o[0]);return null==i||i.setAttribute(a,"url(#"+l+")"),l}var f=function(t,e,r,n,i){var o=nt+e.entity+"-gradient",a=r.querySelector("#"+o);a||((a=I("filter",t)).setAttribute("filterUnits","userSpaceOnUse"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.id=o,r.appendChild(a));var u=0;i.forEach((function(i,c){var s=pt(t,e,r,n,i),l=s+"_rect",f=I("rect",t);f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("width","100%"),f.setAttribute("height","100%"),f.setAttribute("fill","url(#"+s+")"),f.id=l,r.appendChild(f);var h=I("feImage",t);if(h.setAttribute("href","#"+l),h.setAttribute("result",o+"-"+c),a.appendChild(h),c>0){var d=I("feBlend",t);d.setAttribute("in",1===c?o+"-"+(c-1):o+"-blended-"+(u-1)),d.setAttribute("in2",o+"-"+c),d.setAttribute("result",o+"-blended-"+u++),d.setAttribute("mode","multiply"),a.appendChild(d)}}));var c=I("feComposite",t);return c.setAttribute("in",o+"-blended-"+u),c.setAttribute("in2","SourceGraphic"),c.setAttribute("operator","in"),a.appendChild(c),o}(t,n,r,i,o);return null==i||i.setAttribute("filter","url(#"+f+")"),null==i||i.setAttribute("fill","black"),f}return"currentColor"===n.style[a]?null==i||i.setAttribute(a,"currentColor"):null==i||i.setAttribute(a,o.isNone?"none":""+o),""}function ht(t,r){void 0===r&&(r={});var n="";if(e.isCSSGradientValue(t)){var i=t.type;if(i===e.GradientType.LinearGradient||i===e.GradientType.RadialGradient){var o=M({},t.value,r),a=o.angle,u=o.cx,c=o.cy,s=o.size;n="gradient-"+o.type+"-"+((null==a?void 0:""+a)||0)+"-"+((null==u?void 0:""+u)||0)+"-"+((null==c?void 0:""+c)||0)+"-"+((null==s?void 0:""+s)||0)+"-"+o.width+"-"+o.height+"-"+o.steps.map((function(t){return""+t.offset+t.color})).join("-")}}else e.isPattern(t)&&(n=k(t.image)?"pattern-"+t.image+"-"+t.repetition:"rect"===t.image.nodeName?"pattern-rect-"+t.image.entity:"pattern-"+lt);return n&&(st[n]||(st[n]=ct+""+lt++)),st[n]}function dt(t,r,n,i,o,a,u){var c=i.repetition,s=i.transform,l=I("pattern",t);s&&l.setAttribute("patternTransform",function(t){return e.parseTransform(t).map((function(t){var e=t.t,r=t.d;if("translate"===e)return"translate("+r[0].value+" "+r[1].value+")";if("translatex"===e)return"translate("+r[0].value+" 0)";if("translatey"===e)return"translate(0 "+r[0].value+")";if("rotate"===e)return"rotate("+r[0].value+")";if("scale"===e){var n=(null==r?void 0:r.map((function(t){return t.value})))||[1,1];return"scale("+n[0]+", "+n[1]+")"}if("scalex"===e)return"scale("+((null==r?void 0:r.map((function(t){return t.value})))||[1])[0]+", 1)";if("scaley"===e)return"scale(1, "+((null==r?void 0:r.map((function(t){return t.value})))||[1])[0]+")";if("skew"===e){var i=(null==r?void 0:r.map((function(t){return t.value})))||[0,0];return"skewX("+i[0]+") skewY("+i[1]+")"}if("skewx"===e)return"skewX("+((null==r?void 0:r.map((function(t){return t.value})))||[0])[0]+")";if("skewy"===e)return"skewY("+((null==r?void 0:r.map((function(t){return t.value})))||[0])[0]+")";if("matrix"===e){var o=r.map((function(t){return t.value}));return"matrix("+o[0]+" "+o[1]+" "+o[2]+" "+o[3]+" "+o[4]+" "+o[5]+")"}})).join(" ")}(s)),l.setAttribute("patternUnits","userSpaceOnUse"),l.id=o,r.appendChild(l),l.setAttribute("x","0"),l.setAttribute("y","0");var f=n.getGeometryBounds().halfExtents,h=a,d=u;return"repeat-x"===c?d=2*f[1]:"repeat-y"===c?h=2*f[0]:"no-repeat"===c&&(h=2*f[0],d=2*f[1]),l.setAttribute("width",""+h),l.setAttribute("height",""+d),l}function pt(t,r,n,i,o){var a=r.getGeometryBounds(),u=a&&2*a.halfExtents[0]||0,c=a&&2*a.halfExtents[1]||0,s=ht(o,{width:u,height:c}),l=n.querySelector("#"+s);if(!l){(l=I(o.type===e.GradientType.LinearGradient?"linearGradient":"radialGradient",t)).setAttribute("gradientUnits","userSpaceOnUse");var f="";o.value.steps.sort((function(t,e){return t.offset.value-e.offset.value})).forEach((function(t){f+='<stop offset="'+t.offset.value/100+'" stop-color="'+t.color+'"></stop>'})),l.innerHTML=f,l.id=s,n.appendChild(l)}if(o.type===e.GradientType.LinearGradient){var h=e.computeLinearGradient(u,c,o.value.angle),d=h.y1,p=h.x2,v=h.y2;l.setAttribute("x1",""+h.x1),l.setAttribute("y1",""+d),l.setAttribute("x2",""+p),l.setAttribute("y2",""+v)}else{var m=o.value,g=e.computeRadialGradient(u,c,m.cx,m.cy,m.size),y=g.y,b=g.r;l.setAttribute("cx",""+g.x),l.setAttribute("cy",""+y),l.setAttribute("r",""+b)}return s}var vt=/url\("?#(.*)\)/,mt=function(){function t(t){this.context=void 0,this.$def=void 0,this.gradientCache={},this.context=t}var r=t.prototype;return r.getDefElement=function(){return this.$def},r.init=function(){var t=this.context.config.document,e=this.context.contextService.getContext();this.$def=I("defs",t),e.appendChild(this.$def)},r.clear=function(t){var e=this;Object.keys(this.gradientCache).forEach((function(r){e.clearUnusedDefElement(e.gradientCache,r,t)}))},r.clearUnusedDefElement=function(t,e,r){if(t[e]&&1===t[e].size&&t[e].has(r)){var n=this.$def.querySelector("#"+e);n&&this.$def.removeChild(n)}},r.createOrUpdateGradientAndPattern=function(t,r,n,i,o){var a=this.context.config,u=a.document,c=a.createImage;if(r){var s=(e.isPattern(n)?r.style[i]:r.getAttribute(i)||"").match(vt);s&&s.length>1&&this.clearUnusedDefElement(this.gradientCache,s[1].replace('"',""),t.entity);var l=ft(u||document,this.$def,t,r,n,i,c,o);l&&(this.gradientCache[l]||(this.gradientCache[l]=new Set),this.gradientCache[l].add(t.entity))}},r.createOrUpdateShadow=function(t,e,r){!function(t,e,r,n,i){var o=r.parsedStyle,a=o.shadowType,u=o.shadowBlur,c=o.shadowColor,s=o.shadowOffsetX,l=o.shadowOffsetY,f=!O(c)&&u>0,h="g-filter-dropshadow-"+r.entity,d=e.querySelector("#"+h);if(d&&(d.getAttribute("data-type")===a&&f||(d.remove(),d=null)),f){if(null==n||n.setAttribute("filter","url(#"+h+")"),!d){if((d=I("filter",t)).setAttribute("data-type",a),"outer"===a){var p=I("feDropShadow",t);p.setAttribute("dx",""+(s||0)/2),p.setAttribute("dy",""+(l||0)/2),p.setAttribute("stdDeviation",""+(u||0)/4),p.setAttribute("flood-color",""+c),d.appendChild(p)}else if("inner"===a){var v=I("feComponentTransfer",t);v.setAttribute("in","SourceAlpha");var m=I("feFuncA",t);m.setAttribute("type","table"),m.setAttribute("tableValues","1 0"),v.appendChild(m),d.appendChild(v);var g=I("feGaussianBlur",t);g.setAttribute("stdDeviation",""+(u||0)/4),d.appendChild(g);var y=I("feOffset",t);y.setAttribute("dx",""+(s||0)/2),y.setAttribute("dy",""+(l||0)/2),y.setAttribute("result","offsetblur"),d.appendChild(y);var b=I("feFlood",t);b.setAttribute("flood-color",""+c),b.setAttribute("result","color"),d.appendChild(b);var E=I("feComposite",t);E.setAttribute("in2","offsetblur"),E.setAttribute("operator","in"),d.appendChild(E);var w=I("feComposite",t);w.setAttribute("in2","SourceAlpha"),w.setAttribute("operator","in"),d.appendChild(w);var x=I("feMerge",t);d.appendChild(x);var A=I("feMergeNode",t);A.setAttribute("in","SourceGraphic");var S=I("feMergeNode",t);x.appendChild(A),x.appendChild(S)}return d.id=h,d.setAttribute("filterUnits","userSpaceOnUse"),void e.appendChild(d)}if("inner"===a){var L=d.children[1],C=d.children[2];"shadowColor"===i?d.children[3].setAttribute("flood-color",""+c):"shadowBlur"===i?L.setAttribute("stdDeviation",""+(u||0)/4):"shadowOffsetX"===i?C.setAttribute("dx",""+(s||0)/2):"shadowOffsetY"===i&&C.setAttribute("dy",""+(l||0)/2)}else if("outer"===a){var k=d.children[0];"shadowColor"===i?k.setAttribute("flood-color",""+c):"shadowBlur"===i?k.setAttribute("stdDeviation",""+(u||0)/4):"shadowOffsetX"===i?k.setAttribute("dx",""+(s||0)/2):"shadowOffsetY"===i&&k.setAttribute("dy",""+(l||0)/2)}}else null==n||n.removeAttribute("filter")}(this.context.config.document||document,this.$def,t,e,r)},r.createOrUpdateFilter=function(t,e,r){it(this.context.config.document||document,this.$def,t,e,r)},t}(),gt=function(t){var e,r;function n(e){var r;return void 0===e&&(e={}),(r=t.call(this)||this).options=void 0,r.name="svg-renderer",r.options=e,r}(e=n).prototype=Object.create((r=t).prototype),e.prototype.constructor=e,_(e,r);var i=n.prototype;return i.init=function(){var t=this.options,e=t.outputSVGElementId,r=t.outputSVGElementName,n=new mt(this.context),i=new rt(this.context);this.context.defaultElementLifeCycleContribution=i,this.context.SVGElementLifeCycleContribution=i;var o={outputSVGElementId:!!O(e)||!!e,outputSVGElementName:!!O(r)||!!r};this.addRenderingPlugin(new q(o,n,this.context))},i.destroy=function(){this.removeAllRenderingPlugins(),delete this.context.defaultElementLifeCycleContribution,delete this.context.SVGElementLifeCycleContribution},n}(e.AbstractRendererPlugin),yt=Object.freeze({__proto__:null,CLIP_PATH_PREFIX:X,DEFAULT_VALUE_MAP:W,DefaultElementLifeCycleContribution:rt,ElementSVG:j,G_SVG_PREFIX:Y,Plugin:gt,SHAPE2TAGS:tt,SHAPE_UPDATE_DEPS:et,SVGRendererPlugin:q,SVG_ATTR_MAP:H,TEXT_PATH_PREFIX:z,createSVGElement:I,updateImageElementAttribute:N,updateLineElementAttribute:D,updatePathElementAttribute:$,updatePolylineElementAttribute:V,updateRectElementAttribute:R,updateTextElementAttribute:K}),bt=["offset","composite","computedOffset","easing"],Et=["offset","composite","computedOffset","easing","transformOrigin"],wt=["offset","composite","computedOffset","easing","transformOrigin"],xt=["offset","composite","computedOffset","easing","transformOrigin"],At=function(){function t(t){this.context=void 0,this.$container=void 0,this.$namespace=void 0,this.dpr=void 0,this.canvasConfig=void 0,this.context=t,this.canvasConfig=t.config}var n=t.prototype;return n.init=function(){var t=i(r().mark((function t(){var n,i,o,a,u,c;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=(n=this.canvasConfig).document,a=n.devicePixelRatio,this.$container=k(i=n.container)?(o||document).getElementById(i):i,this.$container&&(this.$container.style.position||(this.$container.style.position="relative"),(u=I("svg",o)).setAttribute("width",""+this.canvasConfig.width),u.setAttribute("height",""+this.canvasConfig.height),this.$container.appendChild(u),this.$namespace=u),c=a||e.isBrowser&&window.devicePixelRatio||1,this.dpr=c=1>c?1:Math.ceil(c);case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),n.getDomElement=function(){return this.$namespace},n.getContext=function(){return this.$namespace},n.getDPR=function(){return this.dpr},n.getBoundingClientRect=function(){var t;return null===(t=this.$namespace)||void 0===t?void 0:t.getBoundingClientRect()},n.destroy=function(){this.$container&&this.$namespace&&this.$namespace.parentNode&&this.$container.removeChild(this.$namespace)},n.resize=function(t,e){this.$namespace&&(this.$namespace.setAttribute("width",""+t),this.$namespace.setAttribute("height",""+e))},n.applyCursorStyle=function(t){this.$container&&(this.$container.style.cursor=t)},n.generateCSSText=function(t,e,r,n,i){void 0===i&&(i={});var o=n.duration,a=n.easing,c=n.delay,s=n.direction,l=n.iterations,f=n.fill;return"@keyframes "+t+"{"+r.map((function(t){var e=t.computedOffset,r=u(t,bt);return 100*e+"%{"+Object.keys(r).map((function(t){return t+":"+(i[t]||"")+r[t]+";"})).join("")+"}"})).join("")+"}"+e+" {animation: "+t+" "+o+"ms "+a+" "+c+"ms "+(l===1/0?"infinite":l)+" "+s+" "+f+";}"},n.toDataURL=function(){var t=i(r().mark((function t(n){var i,o,a,c,s,l,f=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this.$namespace.cloneNode(!0),o=this.canvasConfig.document,a=0,c=null,this.context.renderingContext.root.forEach((function(t){var r=t.getAnimations();if(r.length){c||(c=(o||document).createElement("style"),i.appendChild(c));var n=t.elementSVG,s="#"+n.$el.id,l="#"+n.$groupEl.id,h="",d="";r.forEach((function(t){var r=t.effect.getKeyframes();if(r.length){var i=[],o=[],c=r[0],p=u(c,Et);if(Object.keys(p).forEach((function(t){var r;"transform"===t&&o.push(t),!!(null===(r=e.propertyMetadataCache[t])||void 0===r?void 0:r.inh)?o.push(t):"transform"!==t&&i.push(t)})),o.length){var v=r.map((function(t){var e=t.offset,r=t.composite,n=t.computedOffset,i=t.easing,a=u(t,wt),c={offset:e,composite:r,computedOffset:n,easing:i};return Object.keys(a).forEach((function(e){o.includes(e)&&(c[e]=t[e])})),c}));d+=f.generateCSSText("a"+a++,l,v,t.effect.getComputedTiming(),{transform:n.$groupEl.getAttribute("transform")})}if(i.length){var m=r.map((function(t){var e=t.offset,r=t.composite,n=t.computedOffset,o=t.easing,a=u(t,xt),c={offset:e,composite:r,computedOffset:n,easing:o};return Object.keys(a).forEach((function(e){i.includes(e)&&(c[e]=t[e])})),c}));h+=f.generateCSSText("a"+a++,s,m,t.effect.getComputedTiming())}}})),c.textContent+=h+d}})),s=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),(l=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",s)).replaceChild(i,l.documentElement),t.abrupt("return","data:image/svg+xml;charset=utf8,"+encodeURIComponent((new XMLSerializer).serializeToString(l)));case 10:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),t}(),St=function(t){function e(){for(var e,r=arguments.length,n=Array(r),i=0;r>i;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).name="svg-context-register",e}o(e,t);var r=e.prototype;return r.init=function(){this.context.ContextService=At},r.destroy=function(){delete this.context.ContextService},e}(e.AbstractRendererPlugin),Lt=function(t){function e(e){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).registerPlugin(new St),r.registerPlugin(new gt({outputSVGElementId:e.outputSVGElementId})),r.registerPlugin(new d),r.registerPlugin(new w),r}return o(e,t),e}(e.AbstractRenderer);t.DomInteraction=p,t.Renderer=Lt,t.SVGPicker=x,t.SVGRenderer=yt,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@antv/g-lite")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).G=t.G||{},t.G.SVG={}),t.window.G)}(this,(function(t,e){"use strict";function r(){r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=Object.create((e&&e.prototype instanceof p?e:p).prototype),a=new L(n||[]);return o(i,"_invoke",{value:x(t,r,a)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(k([])));g&&g!==e&&n.call(g,a)&&(y=g);var b=v.prototype=p.prototype=Object.create(y);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=A(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function A(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,o(b,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},E(w.prototype),l(w.prototype,c,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(b),l(b,u,"Generator"),l(b,a,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(this.prev>=i.tryLoc){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(i.catchLoc>this.prev)return r(i.catchLoc,!0);if(i.finallyLoc>this.prev)return r(i.finallyLoc)}else if(c){if(i.catchLoc>this.prev)return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(i.finallyLoc>this.prev)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(this.prev>=o.tryLoc&&n.call(o,"finallyLoc")&&o.finallyLoc>this.prev){var i=o;break}}i&&("break"===t||"continue"===t)&&e>=i.tryLoc&&i.finallyLoc>=e&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function c(t){o(a,n,i,c,u,"next",t)}function u(t){o(a,n,i,c,u,"throw",t)}c(void 0)}))}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;e.length>r;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(n.key,"string"))?o:o+""),n)}var o}function u(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function h(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;i.length>n;n++)0>e.indexOf(r=i[n])&&(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;i.length>n;n++)0>e.indexOf(r=i[n])&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function p(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=s(t);if(e){var o=s(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return p(this,r)}}function v(){v=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=Object.create((e&&e.prototype instanceof p?e:p).prototype),a=new k(n||[]);return o(i,"_invoke",{value:A(t,r,a)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function y(){}var m={};l(m,a,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(P([])));b&&b!==e&&r.call(b,a)&&(m=b);var E=y.prototype=p.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function i(o,a,c,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==n(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,c,u)}),(function(t){i("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return i("throw",t,c,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function A(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=O(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:d,configurable:!0}),d.displayName=l(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(E),l(E,u,"Generator"),l(E,a,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=P,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(this.prev>=i.tryLoc){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(i.catchLoc>this.prev)return n(i.catchLoc,!0);if(i.finallyLoc>this.prev)return n(i.finallyLoc)}else if(c){if(i.catchLoc>this.prev)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(i.finallyLoc>this.prev)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(this.prev>=o.tryLoc&&r.call(o,"finallyLoc")&&o.finallyLoc>this.prev){var i=o;break}}i&&("break"===t||"continue"===t)&&e>=i.tryLoc&&i.finallyLoc>=e&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function y(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function m(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){y(i,n,o,a,c,"next",t)}function c(t){y(i,n,o,a,c,"throw",t)}a(void 0)}))}}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var r=0;e.length>r;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(i=void 0,i=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o.key,"string"),"symbol"===n(i)?i:i+""),o)}var i}function E(t,e,r){return e&&b(t.prototype,e),r&&b(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}function x(t,e){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},x(t,e)}function A(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=w(t);if(e){var o=w(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return A(this,r)}}var S=function(){function t(){g(this,t),this.context=void 0}return E(t,[{key:"apply",value:function(e,r){var n=this,o=e.renderingService,i=e.renderingContext,a=e.config;this.context=e;var c=i.root.ownerDocument.defaultView,u=function(t){o.hooks.pointerMove.call(t)},l=function(t){o.hooks.pointerUp.call(t)},s=function(t){o.hooks.pointerDown.call(t)},f=function(t){o.hooks.pointerOver.call(t)},h=function(t){o.hooks.pointerOut.call(t)},p=function(t){o.hooks.pointerCancel.call(t)},d=function(t){o.hooks.pointerWheel.call(t)},y=function(t){o.hooks.click.call(t)},g=function(t){r.globalThis.document.addEventListener("pointermove",u,!0),t.addEventListener("pointerdown",s,!0),t.addEventListener("pointerleave",h,!0),t.addEventListener("pointerover",f,!0),r.globalThis.addEventListener("pointerup",l,!0),r.globalThis.addEventListener("pointercancel",p,!0)},b=function(t){t.addEventListener("touchstart",s,!0),t.addEventListener("touchend",l,!0),t.addEventListener("touchmove",u,!0),t.addEventListener("touchcancel",p,!0)},E=function(t){r.globalThis.document.addEventListener("mousemove",u,!0),t.addEventListener("mousedown",s,!0),t.addEventListener("mouseout",h,!0),t.addEventListener("mouseover",f,!0),r.globalThis.addEventListener("mouseup",l,!0)};o.hooks.init.tapPromise(t.tag,m(v().mark((function t(){var e;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=n.context.contextService.getDomElement(),r.globalThis.navigator.msPointerEnabled?(e.style.msContentZooming="none",e.style.msTouchAction="none"):c.supportsPointerEvents&&(e.style.touchAction="none"),c.supportsPointerEvents?g(e):E(e),c.supportsTouchEvents&&b(e),a.useNativeClickEvent&&e.addEventListener("click",y,!0),e.addEventListener("wheel",d,{passive:!0,capture:!0});case 6:case"end":return t.stop()}}),t)})))),o.hooks.destroy.tap(t.tag,(function(){var t=n.context.contextService.getDomElement();r.globalThis.navigator.msPointerEnabled?(t.style.msContentZooming="",t.style.msTouchAction=""):c.supportsPointerEvents&&(t.style.touchAction=""),c.supportsPointerEvents?function(t){r.globalThis.document.removeEventListener("pointermove",u,!0),t.removeEventListener("pointerdown",s,!0),t.removeEventListener("pointerleave",h,!0),t.removeEventListener("pointerover",f,!0),r.globalThis.removeEventListener("pointerup",l,!0)}(t):function(t){r.globalThis.document.removeEventListener("mousemove",u,!0),t.removeEventListener("mousedown",s,!0),t.removeEventListener("mouseout",h,!0),t.removeEventListener("mouseover",f,!0),r.globalThis.removeEventListener("mouseup",l,!0)}(t),c.supportsTouchEvents&&function(t){t.removeEventListener("touchstart",s,!0),t.removeEventListener("touchend",l,!0),t.removeEventListener("touchmove",u,!0),t.removeEventListener("touchcancel",p,!0)}(t),a.useNativeClickEvent&&t.removeEventListener("click",y,!0),t.removeEventListener("wheel",d,!0)}))}}]),t}();S.tag="DOMInteraction";var L=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&x(t,e)}(r,t);var e=O(r);function r(){var t;g(this,r);for(var n=arguments.length,o=Array(n),i=0;n>i;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))).name="dom-interaction",t}return E(r,[{key:"init",value:function(){this.addRenderingPlugin(new S)}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}}]),r}(e.AbstractRendererPlugin),k=Object.freeze({__proto__:null,Plugin:L});function P(){P=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=Object.create((e&&e.prototype instanceof p?e:p).prototype),a=new L(n||[]);return o(i,"_invoke",{value:x(t,r,a)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(k([])));g&&g!==e&&r.call(g,a)&&(y=g);var b=v.prototype=p.prototype=Object.create(y);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(o,a,c,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==n(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,c,u)}),(function(t){i("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return i("throw",t,c,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=A(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function A(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=v,o(b,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},E(w.prototype),l(w.prototype,c,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(b),l(b,u,"Generator"),l(b,a,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(this.prev>=i.tryLoc){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(i.catchLoc>this.prev)return n(i.catchLoc,!0);if(i.finallyLoc>this.prev)return n(i.finallyLoc)}else if(c){if(i.catchLoc>this.prev)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(i.finallyLoc>this.prev)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(this.prev>=o.tryLoc&&r.call(o,"finallyLoc")&&o.finallyLoc>this.prev){var i=o;break}}i&&("break"===t||"continue"===t)&&e>=i.tryLoc&&i.finallyLoc>=e&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function C(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function T(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j(t,e){for(var r=0;e.length>r;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(i=void 0,i=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o.key,"string"),"symbol"===n(i)?i:i+""),o)}var i}function G(t,e,r){return e&&j(t.prototype,e),r&&j(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_(t)}function M(t,e){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},M(t,e)}function N(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function R(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=_(t);if(e){var o=_(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return N(this,r)}}function D(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);e>r;r++)n[r]=t[r];return n}function $(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return D(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return t.length>n?{done:!1,value:t[n++]}:{done:!0}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}var I=function(){function t(){T(this,t)}return G(t,[{key:"apply",value:function(e,r){var n=this,o=e.config.document,i=e.renderingService,a=e.svgElementMap;i.hooks.pick.tapPromise(t.tag,function(){var t,e=(t=P().mark((function t(e){return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",n.pick(a,o,e));case 1:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){C(i,n,o,a,c,"next",t)}function c(t){C(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}()),i.hooks.pickSync.tap(t.tag,(function(t){return n.pick(a,o,t)}))}},{key:"pick",value:function(t,e,r){var n=r.topmost,o=r.position,i=o.clientX,a=o.clientY;try{var c,u=[],l=$((e||document).elementsFromPoint(i,a));try{for(l.s();!(c=l.n()).done;){var s=t.get(c.value);if(s&&s.isInteractive()&&(u.push(s),n))return r.picked=u,r}}catch(t){l.e(t)}finally{l.f()}r.picked=u}catch(t){r.picked=[]}return r}}]),t}();I.tag="SVGPicker";var V=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&M(t,e)}(r,t);var e=R(r);function r(){var t;T(this,r);for(var n=arguments.length,o=Array(n),i=0;n>i;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))).name="svg-picker",t}return G(r,[{key:"init",value:function(){this.addRenderingPlugin(new I)}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}}]),r}(e.AbstractRendererPlugin),U=Object.freeze({__proto__:null,Plugin:V}),F="undefined"!=typeof Float32Array?Float32Array:Array;function H(){var t=new F(16);return F!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function B(t,e){var r=e[0],n=e[1],o=e[2],i=e[3],a=e[4],c=e[5],u=e[6],l=e[7],s=e[8],f=e[9],h=e[10],p=e[11],d=e[12],v=e[13],y=e[14],m=e[15],g=r*c-n*a,b=r*u-o*a,E=r*l-i*a,w=n*u-o*c,x=n*l-i*c,A=o*l-i*u,O=s*v-f*d,S=s*y-h*d,L=s*m-p*d,k=f*y-h*v,P=f*m-p*v,C=h*m-p*y,T=g*C-b*P+E*k+w*L-x*S+A*O;return T?(t[0]=(c*C-u*P+l*k)*(T=1/T),t[1]=(o*P-n*C-i*k)*T,t[2]=(v*A-y*x+m*w)*T,t[3]=(h*x-f*A-p*w)*T,t[4]=(u*L-a*C-l*S)*T,t[5]=(r*C-o*L+i*S)*T,t[6]=(y*E-d*A-m*b)*T,t[7]=(s*A-h*E+p*b)*T,t[8]=(a*P-c*L+l*O)*T,t[9]=(n*L-r*P-i*O)*T,t[10]=(d*x-v*E+m*g)*T,t[11]=(f*E-s*x-p*g)*T,t[12]=(c*S-a*k-u*O)*T,t[13]=(r*k-n*S+o*O)*T,t[14]=(v*b-d*w-y*g)*T,t[15]=(s*w-f*b+h*g)*T,t):null}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var W=function(t){return null==t},Y={}.toString,X=function(t){return e="String",Y.call(t)==="[object "+e+"]";var e};function z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function q(t){for(var e=1;arguments.length>e;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?z(Object(r),!0).forEach((function(e){rt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Q(){Q=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=Object.create((e&&e.prototype instanceof p?e:p).prototype),a=new L(n||[]);return o(i,"_invoke",{value:x(t,r,a)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(k([])));g&&g!==e&&r.call(g,a)&&(y=g);var b=v.prototype=p.prototype=Object.create(y);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(o,a,c,u){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==n(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,c,u)}),(function(t){i("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return i("throw",t,c,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=A(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function A(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,o(b,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},E(w.prototype),l(w.prototype,c,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(b),l(b,u,"Generator"),l(b,a,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(this.prev>=i.tryLoc){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(i.catchLoc>this.prev)return n(i.catchLoc,!0);if(i.finallyLoc>this.prev)return n(i.finallyLoc)}else if(c){if(i.catchLoc>this.prev)return n(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(i.finallyLoc>this.prev)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(this.prev>=o.tryLoc&&r.call(o,"finallyLoc")&&o.finallyLoc>this.prev){var i=o;break}}i&&("break"===t||"continue"===t)&&e>=i.tryLoc&&i.finallyLoc>=e&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function J(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function Z(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){J(i,n,o,a,c,"next",t)}function c(t){J(i,n,o,a,c,"throw",t)}a(void 0)}))}}function K(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tt(t,e){for(var r=0;e.length>r;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,lt(n.key),n)}}function et(t,e,r){return e&&tt(t.prototype,e),r&&tt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function rt(t,e,r){return(e=lt(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nt(t){return nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nt(t)}function ot(t,e){return ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ot(t,e)}function it(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function at(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=nt(t);if(e){var o=nt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return it(this,r)}}function ct(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ut(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ut(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ut(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);e>r;r++)n[r]=t[r];return n}function lt(t){var e=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===n(e)?e:e+""}var st=et((function t(){K(this,t),this.$el=void 0,this.$groupEl=void 0,this.$hitTestingEl=void 0}));function ft(t,e){var r=e.img,n=void 0===r?"":r,o=e.width,i=e.height;if(t.setAttribute("x","0"),t.setAttribute("y","0"),X(n))t.setAttribute("href",n);else if(n instanceof Image)o||t.setAttribute("width","".concat(n.width)),i||t.setAttribute("height","".concat(n.height)),t.setAttribute("href",n.src);else if(n instanceof HTMLElement&&X(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase())t.setAttribute("href",n.toDataURL());else if(n instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width","".concat(n.width)),a.setAttribute("height","".concat(n.height));var c=a.getContext("2d");c&&(c.putImageData(n,0,0),o||t.setAttribute("width","".concat(n.width)),i||t.setAttribute("height","".concat(n.height)),t.setAttribute("href",a.toDataURL()))}}function ht(t,r){var n=r.x1,o=r.y1,i=r.x2,a=r.y2,c=r.defX,u=void 0===c?0:c,l=r.defY,s=void 0===l?0:l,f=r.markerStart,h=r.markerEnd,p=r.markerStartOffset,d=r.markerEndOffset,v=0,y=0,m=0,g=0,b=0;f&&e.isDisplayObject(f)&&p&&(v=Math.cos(b=Math.atan2(a-o,i-n))*(p||0),y=Math.sin(b)*(p||0)),h&&e.isDisplayObject(h)&&d&&(m=Math.cos(b=Math.atan2(o-a,n-i))*(d||0),g=Math.sin(b)*(d||0)),t.setAttribute("x1","".concat(n-u+v)),t.setAttribute("y1","".concat(o-s+y)),t.setAttribute("x2","".concat(i-u+m)),t.setAttribute("y2","".concat(a-s+g))}function pt(t,r){var n=r.path,o=r.defX,i=void 0===o?0:o,a=r.defY,c=void 0===a?0:a,u=r.markerStart,l=r.markerEnd,s=r.markerStartOffset,f=r.markerEndOffset,h=0,p=0,d=0,v=0,y=0;if(u&&e.isDisplayObject(u)&&s){var m=ct(u.parentNode.getStartTangent(),2),g=m[0],b=m[1];h=Math.cos(y=Math.atan2(g[1]-b[1],g[0]-b[0]))*(s||0),p=Math.sin(y)*(s||0)}if(l&&e.isDisplayObject(l)&&f){var E=ct(l.parentNode.getEndTangent(),2),w=E[0],x=E[1];d=Math.cos(y=Math.atan2(w[1]-x[1],w[0]-x[0]))*(f||0),v=Math.sin(y)*(f||0)}t.setAttribute("d",e.translatePathToString(n.absolutePath,i,c,h,p,d,v))}function dt(t,r){var n=r.points.points,o=r.defX,i=void 0===o?0:o,a=r.defY,c=void 0===a?0:a,u=r.markerStart,l=r.markerStartOffset,s=r.markerEnd,f=r.markerEndOffset,h=n.length;if(n&&h>=2){var p=0,d=0,v=0,y=0,m=0;u&&e.isDisplayObject(u)&&l&&(p=Math.cos(m=Math.atan2(n[1][1]-n[0][1],n[1][0]-n[0][0]))*(l||0),d=Math.sin(m)*(l||0)),s&&e.isDisplayObject(s)&&f&&(v=Math.cos(m=Math.atan2(n[h-2][1]-n[h-1][1],n[h-2][0]-n[h-1][0]))*(f||0),y=Math.sin(m)*(f||0)),t.setAttribute("points",n.map((function(t,e){var r=0,n=0;return 0===e?(r=p,n=d):e===h-1&&(r=v,n=y),"".concat(t[0]-i+r,",").concat(t[1]-c+n)})).join(" "))}}function vt(t,e){var r=e.radius,n=e.width,o=e.height;if(isFinite(n)&&isFinite(o)){var i="";if(r&&r.some((function(t){return 0!==t}))){var a=ct(r.map((function(t){return e=t,r=0,i=Math.min(Math.abs(n)/2,Math.abs(o)/2),r>e?r:e>i?i:e;var e,r,i})),4),c=a[0],u=a[1],l=a[2],s=a[3],f=n>0?1:-1,h=o>0?1:-1,p=f+h!==0?1:0;i=[["M ".concat(f*c,",0")],["l ".concat(n-f*(c+u),",0")],["a ".concat(u,",").concat(u,",0,0,").concat(p,",").concat(f*u,",").concat(h*u)],["l 0,".concat(o-h*(u+l))],["a ".concat(l,",").concat(l,",0,0,").concat(p,",").concat(-f*l,",").concat(h*l)],["l ".concat(f*(l+s)-n,",0")],["a ".concat(s,",").concat(s,",0,0,").concat(p,",").concat(-f*s,",").concat(-h*s)],["l 0,".concat(h*(s+c)-o)],["a ".concat(c,",").concat(c,",0,0,").concat(p,",").concat(f*c,",").concat(-h*c)],["z"]].join(" ")}else i="M 0,0 l ".concat(n,",0 l 0,").concat(o," l").concat(-n," 0 z");t.setAttribute("d",i)}}function yt(t,e){return(e||document).createElementNS("http://www.w3.org/2000/svg",t)}function mt(t){return t.toFixed(6).replace(".000000","")}function gt(t){return t.replace(/[&|<|>|"|']/g,(function(t){return"&"===t?"&":"<"===t?"<":">"===t?">":'"'===t?""":"'"}))}st.tag="c-svg-element";var bt={opacity:"opacity",fillStyle:"fill",fill:"fill",fillRule:"fill-rule",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",clipPath:"clip-path",textPath:"text-path",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",letterSpacing:"letter-spacing",startArrow:"marker-start",endArrow:"marker-end",class:"class",id:"id",preserveAspectRatio:"preserveAspectRatio",visibility:"visibility",anchor:"anchor",shadowColor:"flood-color",shadowBlur:"stdDeviation",shadowOffsetX:"dx",shadowOffsetY:"dy",filter:"filter",innerHTML:"innerHTML",textAlign:"text-anchor",pointerEvents:"pointer-events"},Et={textAlign:{inherit:"inherit",left:"left",start:"left",center:"middle",right:"end",end:"end"}},wt={textAlign:"inherit",lineCap:"butt",lineJoin:"miter",lineWidth:"1px",opacity:"1",fillOpacity:"1",fillRule:"nonzero",strokeOpacity:"1",strokeWidth:"0",strokeMiterLimit:"4",letterSpacing:"0",fontSize:"inherit",fontFamily:"inherit",pointerEvents:"auto"},xt="g-svg",At="clip-path-",Ot="text-path-",St=function(){function t(e,r,n){K(this,t),this.pluginOptions=void 0,this.defElementManager=void 0,this.context=void 0,this.svgElementMap=new WeakMap,this.$camera=void 0,this.renderQueue=[],this.dirtyAttributes=new WeakMap,this.pendingReorderQueue=new Set,this.clipPathUseMap=new WeakMap,this.pluginOptions=e,this.defElementManager=r,this.context=n}return et(t,[{key:"apply",value:function(r){var n=this,o=r.renderingService,i=r.renderingContext;this.context=r,this.context.svgElementMap=this.svgElementMap;var a=i.root.ownerDocument.defaultView,c=this.context.config.document,u=function(t){var e=t.target;if(n.clipPathUseMap.get(e)){var r=n.defElementManager.getDefElement().querySelector("#".concat(n.getId(e)));r&&r.remove()}n.createSVGDom(c,e,n.$camera)},l=function(t){var e=t.target;n.defElementManager.clear(e.entity),n.clipPathUseMap.delete(e),n.removeSVGDom(e)},s=function(t){var e,r,o=t.parentNode,i=null===(e=t.parentNode)||void 0===e||null===(r=e.elementSVG)||void 0===r?void 0:r.$groupEl,a=((null==o?void 0:o.children)||[]).slice();i&&n.reorderChildren(c,i,a)},f=function(t){s(t.target)},h=function(t){var e=t.target;if(e.elementSVG){var r=t.attrName,o=n.dirtyAttributes.get(e);o||(n.dirtyAttributes.set(e,[]),o=n.dirtyAttributes.get(e)),o.push(r)}},p=function(t){var r,o=t.target,i=null===(r=o.elementSVG)||void 0===r?void 0:r.$el,a=o.parsedStyle,c=a.fill,u=a.stroke,l=a.clipPath;if(c&&!e.isCSSRGB(c)&&n.defElementManager.createOrUpdateGradientAndPattern(o,i,c,"fill",n),u&&!e.isCSSRGB(u)&&n.defElementManager.createOrUpdateGradientAndPattern(o,i,u,"stroke",n),l){var s=B(H(),o.getWorldTransform()),f=At+l.entity+"-"+o.entity,h=n.defElementManager.getDefElement().querySelector("#".concat(f));h&&n.applyTransform(h,s)}};o.hooks.init.tapPromise(t.tag,Z(Q().mark((function t(){var r,o,i,c;return Q().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=(r=n.context.config).background,i=r.document,n.defElementManager.init(),c=n.context.contextService.getContext(),o&&(c.style.background=o),c.setAttribute("color-interpolation-filters","sRGB"),n.$camera=yt("g",i),n.$camera.id="".concat(xt,"-camera"),n.applyTransform(n.$camera,n.context.camera.getOrthoMatrix()),c.appendChild(n.$camera),a.addEventListener(e.ElementEvent.MOUNTED,u),a.addEventListener(e.ElementEvent.UNMOUNTED,l),a.addEventListener(e.ElementEvent.REPARENT,f),a.addEventListener(e.ElementEvent.ATTR_MODIFIED,h),a.addEventListener(e.ElementEvent.BOUNDS_CHANGED,p);case 14:case"end":return t.stop()}}),t)})))),o.hooks.destroy.tap(t.tag,(function(){a.removeEventListener(e.ElementEvent.MOUNTED,u),a.removeEventListener(e.ElementEvent.UNMOUNTED,l),a.removeEventListener(e.ElementEvent.REPARENT,f),a.removeEventListener(e.ElementEvent.ATTR_MODIFIED,h),a.removeEventListener(e.ElementEvent.BOUNDS_CHANGED,p)})),o.hooks.render.tap(t.tag,(function(t){n.renderQueue.push(t)})),o.hooks.beginFrame.tap(t.tag,(function(){var t=n.context.config.document;n.pendingReorderQueue.size&&(n.pendingReorderQueue.forEach((function(e){var r,o=((null==e?void 0:e.children)||[]).slice(),i=null==e||null===(r=e.elementSVG)||void 0===r?void 0:r.$groupEl;i&&n.reorderChildren(t||c,i,o||[])})),n.pendingReorderQueue.clear())})),o.hooks.endFrame.tap(t.tag,(function(){i.renderReasons.has(e.RenderReason.CAMERA_CHANGED)&&n.applyTransform(n.$camera,n.context.camera.getOrthoMatrix()),n.renderQueue.forEach((function(t){var e,r,o=null===(e=t.elementSVG)||void 0===e?void 0:e.$el,i=null===(r=t.elementSVG)||void 0===r?void 0:r.$groupEl;if(o&&i){var a=t.getLocalTransform();n.applyTransform(i,a);var c=n.clipPathUseMap.get(t);c&&c.length&&c.forEach((function(e){n.applyTransform(e,t.getWorldTransform())})),t.renderable.dirty=!1}var u=n.dirtyAttributes.get(t);u&&(u.forEach((function(e){"zIndex"===e?s(t):"increasedLineWidthForHitTesting"===e&&n.createOrUpdateHitArea(t,o,i),n.updateAttribute(t,[e])})),n.dirtyAttributes.delete(t))})),n.renderQueue=[]}))}},{key:"getId",value:function(t){return"".concat(xt,"-").concat(t.entity)}},{key:"reorderChildren",value:function(t,e,r){if(r.sort((function(t,e){return t.sortable.renderOrder-e.sortable.renderOrder})),r.length){var n=(t||document).createDocumentFragment();r.forEach((function(t){if(t.isConnected){var e=t.elementSVG.$groupEl;e&&n.appendChild(e)}})),e.appendChild(n)}}},{key:"applyTransform",value:function(t,e){t.setAttribute("transform","matrix(".concat(mt(e[0]),",").concat(mt(e[1]),",").concat(mt(e[4]),",").concat(mt(e[5]),",").concat(mt(e[12]),",").concat(mt(e[13]),")"))}},{key:"applyAttributes",value:function(t){var r=t.elementSVG,n=null==r?void 0:r.$el;if(n&&(null==r?void 0:r.$groupEl)){var o=t.nodeName,i=t.attributes;n.setAttribute("fill","none"),o===e.Shape.IMAGE&&n.setAttribute("preserveAspectRatio","none"),this.updateAttribute(t,Object.keys(i))}}},{key:"updateAttribute",value:function(t,r){var n=this,o=this.context.config.document,i=t.elementSVG,a=i.$el,c=i.$groupEl,u=i.$hitTestingEl,l=t.parsedStyle,s=t.computedStyle,f=t.nodeName;r.some((function(e){return n.context.SVGElementLifeCycleContribution.shouldUpdateElementAttribute(t,e)}))&&a&&[a,u].forEach((function(r){r&&(n.context.SVGElementLifeCycleContribution.updateElementAttribute(t,r,n.svgElementMap),t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t))})),r.forEach((function(r){var i,h,p=bt[r],d=e.runtime.enableCSSParsing?s[r]:l[r],v=!W(d)&&""+d,y=(null===(i=Et[r])||void 0===i?void 0:i[v])||v,m=l[r],g=p&&!!(null===(h=e.propertyMetadataCache[r])||void 0===h?void 0:h.inh);p&&(f!==e.Shape.GROUP&&!t.isCustomElement||e.runtime.enableCSSParsing||!g&&"fill"!==p&&"stroke"!==p)&&(f===e.Shape.HTML&&("lineWidth"===r?a.style["border-width"]="".concat(m||0,"px"):"lineDash"===r&&(a.style["border-style"]="dashed")),"fill"===r?f===e.Shape.HTML?a.style.background=""+m:n.defElementManager.createOrUpdateGradientAndPattern(t,a,m,p,n):"stroke"===r?f===e.Shape.HTML?(a.style["border-color"]=""+m,a.style["border-style"]="solid"):n.defElementManager.createOrUpdateGradientAndPattern(t,a,m,p,n):e.runtime.enableCSSParsing&&g?"unset"!==v&&v!==wt[r]?null==c||c.setAttribute(p,y):null==c||c.removeAttribute(p):"clipPath"===r?n.createOrUpdateClipOrTextPath(o,m,t):"textPath"===r?n.createOrUpdateClipOrTextPath(o,m,t,!0):"shadowType"===r||"shadowColor"===r||"shadowBlur"===r||"shadowOffsetX"===r||"shadowOffsetY"===r?n.defElementManager.createOrUpdateShadow(t,a,r):"filter"===r?n.defElementManager.createOrUpdateFilter(t,a,m):"innerHTML"===r?n.createOrUpdateInnerHTML(o,a,m):"anchor"===r?f!==e.Shape.TEXT&&n.updateAnchorWithTransform(t):W(d)||[a,u].forEach((function(t){t&&p&&("unset"!==v&&v!==wt[r]?t.setAttribute(p,y):t.removeAttribute(p))})))}))}},{key:"createSVGDom",value:function(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];r.elementSVG=new st;var i=r.elementSVG,a=this.context.SVGElementLifeCycleContribution.createElement(r,this.svgElementMap);if(a){var c,u;r.nodeName===e.Shape.HTML&&(r.parsedStyle.$el=a),this.pluginOptions.outputSVGElementId&&(a.id=this.getId(r)),this.pluginOptions.outputSVGElementName&&r.name&&a.setAttribute("name",r.name),!a.hasAttribute("data-wrapgroup")&&"g"===a.nodeName||o?u=a:((u=yt("g",t)).id=a.id+"-g",u.appendChild(a)),i.$el=a,i.$groupEl=u,this.applyAttributes(r),this.createOrUpdateHitArea(r,a,u);var l=n||r.parentNode&&(null===(c=r.parentNode.elementSVG)||void 0===c?void 0:c.$groupEl);l&&(l.appendChild(u),this.pendingReorderQueue.add(r.parentNode))}}},{key:"removeSVGDom",value:function(t){var e,r=null===(e=t.elementSVG)||void 0===e?void 0:e.$groupEl;r&&r.parentNode&&(r.parentNode.removeChild(r),this.context.SVGElementLifeCycleContribution.destroyElement(t,r))}},{key:"createOrUpdateHitArea",value:function(t,e,r){var n=t.elementSVG,o=n.$hitTestingEl,i=t.parsedStyle.increasedLineWidthForHitTesting;if(i){if(!o){o=e.cloneNode(),this.pluginOptions.outputSVGElementId&&(o.id="".concat(xt,"-").concat(t.nodeName,"-hittesting-").concat(t.entity)),["filter"].forEach((function(t){o.removeAttribute(t)}));var a="none"!==e.getAttribute("fill");o.setAttribute("fill",a?"transparent":"none"),o.setAttribute("stroke","transparent"),r.appendChild(o),n.$hitTestingEl=o}o.setAttribute("stroke-width","".concat(i+t.parsedStyle.lineWidth))}else o&&(r.removeChild(o),n.$hitTestingEl=null)}},{key:"createOrUpdateInnerHTML",value:function(t,e,r){var n=(t||document).createElement("div");"string"==typeof r?n.innerHTML=r:n.appendChild(r),e.innerHTML="",e.appendChild(n)}},{key:"createOrUpdateClipOrTextPath",value:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=r.elementSVG.$groupEl,i=n?"g":"clipPath",a=n?"text-path":"clip-path";if(e){var c=(n?Ot:At)+e.entity+"-"+r.entity,u=this.defElementManager.getDefElement();if(!u.querySelector("#".concat(c))){var l;if(n)this.createSVGDom(t,e,null,!0),l=e.elementSVG.$el;else{if(!e.isConnected)u.querySelector("#".concat(this.getId(e)))||this.createSVGDom(t,e,u,!0);l=yt(i,t);var s=yt("use",t);s.setAttribute("href","#".concat(e.elementSVG.$el.id)),l.appendChild(s);var f=this.clipPathUseMap.get(e);f||(this.clipPathUseMap.set(e,[]),f=this.clipPathUseMap.get(e)),f.push(s),this.applyTransform(s,e.getWorldTransform());var h=B(H(),r.getWorldTransform());this.applyTransform(l,h)}l.id=c,u.appendChild(l)}this.applyAttributes(e),n||o.setAttribute(a,"url(#".concat(c,")"))}else n||o.removeAttribute(a)}},{key:"updateAnchorWithTransform",value:function(t){var r,n,o=t.getGeometryBounds(),i=o&&2*o.halfExtents[0]||0,a=o&&2*o.halfExtents[1]||0,c=(t.parsedStyle||{}).anchor;[null===(r=t.elementSVG)||void 0===r?void 0:r.$el,null===(n=t.elementSVG)||void 0===n?void 0:n.$hitTestingEl].forEach((function(r){if(r){var n=-c[0]*i,o=-c[1]*a;0===n&&0===o||r.setAttribute("transform","translate(".concat(n,",").concat(o,")")),t.nodeName!==e.Shape.CIRCLE&&t.nodeName!==e.Shape.ELLIPSE||(r.setAttribute("cx","".concat(i/2)),r.setAttribute("cy","".concat(a/2)))}}))}}]),t}();St.tag="SVGRenderer";var Lt,kt,Pt={top:"hanging",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"};function Ct(t,r,n){var o=r.lineWidth,i=r.dx,a=r.dy,c=r.textPath,u=r.textPathSide,l=void 0===u?"left":u,s=r.textPathStartOffset,f=void 0===s?0:s,h=r.textDecorationLine,p=void 0===h?"":h,d=r.textDecorationColor,v=void 0===d?"":d,y=r.textDecorationStyle,m=void 0===y?"":y,g=r.metrics,b=r.textBaseline;e.runtime.enableCSSParsing||"alphabetic"!==b||(b="bottom"),t.setAttribute("dominant-baseline",Pt[b]),t.setAttribute("paint-order","stroke");var E=g.lines,w=g.lineHeight,x=g.height,A=E.length,O="";if(0===i&&0===a||(O+="transform:translate(".concat(i,"px, ").concat(a,"px);")),p&&"none"!==p&&(O+="text-decoration:".concat(p," ").concat(m," ").concat(v,";")),O&&t.setAttribute("style",O),1===A){var S=gt(E[0]);if(t.setAttribute("dx","".concat(o/2)),"bottom"!==b&&"top"!==b||(t.setAttribute("dominant-baseline","middle"),t.setAttribute("dy","bottom"===b?"-0.5em":"0.5em")),c){t.innerHTML="";var L=yt("textPath",t.ownerDocument);L.setAttribute("href","#".concat(Ot+c.entity)),"left"!==l&&L.setAttribute("side",l),0!==f&&L.setAttribute("startOffset","".concat(f)),L.innerHTML=S,t.appendChild(L)}else t.innerHTML=S}else t.innerHTML=E.map((function(t,e){var r=0;return 0===e?"middle"===b?r=w/2-x/2:"top"===b||"hanging"===b?r=0:"bottom"!==b&&"alphabetic"!==b&&"ideographic"!==b||(r=-w*(A-1)):r=w,'<tspan x="0" dx="'.concat(o/2,'" dy="').concat(r,'">').concat(gt(t),"</tspan>")})).join("")}var Tt=(rt(Lt={},e.Shape.RECT,"path"),rt(Lt,e.Shape.CIRCLE,"circle"),rt(Lt,e.Shape.ELLIPSE,"ellipse"),rt(Lt,e.Shape.IMAGE,"image"),rt(Lt,e.Shape.GROUP,"g"),rt(Lt,e.Shape.LINE,"line"),rt(Lt,e.Shape.POLYLINE,"polyline"),rt(Lt,e.Shape.POLYGON,"polygon"),rt(Lt,e.Shape.TEXT,"text"),rt(Lt,e.Shape.PATH,"path"),rt(Lt,e.Shape.HTML,"foreignObject"),Lt),jt=(rt(kt={},e.Shape.CIRCLE,["r"]),rt(kt,e.Shape.ELLIPSE,["rx","ry"]),rt(kt,e.Shape.RECT,["width","height","radius"]),rt(kt,e.Shape.IMAGE,["img","width","height"]),rt(kt,e.Shape.LINE,["x1","y1","x2","y2","markerStart","markerEnd","markerStartOffset","markerEndOffset"]),rt(kt,e.Shape.POLYLINE,["points","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"]),rt(kt,e.Shape.POLYGON,["points","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"]),rt(kt,e.Shape.PATH,["path","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"]),rt(kt,e.Shape.TEXT,["text","font","fontSize","fontFamily","fontStyle","fontWeight","fontVariant","lineHeight","letterSpacing","wordWrap","wordWrapWidth","maxLines","leading","textBaseline","textAlign","textTransform","textOverflow","textPath","textPathSide","textPathStartOffset","textDecorationLine","textDecorationColor","textDecorationStyle","dx","dy"]),kt),Gt=function(){function t(e){K(this,t),this.context=void 0,this.context=e}return et(t,[{key:"createElement",value:function(t,e){var r=yt(Tt[t.nodeName]||"g",this.context.config.document||document);return e.set(r,t),r}},{key:"destroyElement",value:function(t,e){}},{key:"shouldUpdateElementAttribute",value:function(t,e){return(jt[t.nodeName]||[]).indexOf(e)>-1}},{key:"updateElementAttribute",value:function(t){var r=t.elementSVG.$el,n=t.parsedStyle;switch(t.nodeName){case e.Shape.IMAGE:ft(r,n);break;case e.Shape.RECT:vt(r,n);break;case e.Shape.LINE:ht(r,n);break;case e.Shape.POLYGON:case e.Shape.POLYLINE:dt(r,n);break;case e.Shape.PATH:pt(r,n);break;case e.Shape.TEXT:Ct(r,n)}}}]),t}(),_t="g-filter-";function Mt(t,e,r,n,o){var i=_t+r.entity,a=e.querySelectorAll("[name=".concat(i,"]"));if(a.length&&a.forEach((function(t){e.removeChild(t)})),0===o.length)null==n||n.removeAttribute("filter");else{var c=o.map((function(r,n){var o=r.name,a=r.params,c=yt("filter",t);return c.setAttribute("filterUnits","userSpaceOnUse"),"blur"===o?function(t,e,r){var n=yt("feGaussianBlur",t);n.setAttribute("in","SourceGraphic"),n.setAttribute("stdDeviation","".concat(r[0].value)),e.appendChild(n)}(t,c,a):"brightness"===o?function(t,e,r){var n=Nt(r[0]);Rt(t,e,{type:"linear",slope:n,intercept:0})}(t,c,a):"drop-shadow"===o?function(t,e,r){var n=r[0].value,o=r[1].value,i=r[2].value,a=r[3].formatted,c=yt("feGaussianBlur",t);c.setAttribute("in","SourceAlpha"),c.setAttribute("stdDeviation","".concat(i)),e.appendChild(c);var u=yt("feOffset",t);u.setAttribute("dx","".concat(n)),u.setAttribute("dy","".concat(o)),u.setAttribute("result","offsetblur"),e.appendChild(u);var l=yt("feFlood",t);l.setAttribute("flood-color",a),e.appendChild(l);var s=yt("feComposite",t);s.setAttribute("in2","offsetblur"),s.setAttribute("operator","in"),e.appendChild(s);var f=yt("feMerge",t);e.appendChild(f);var h=yt("feMergeNode",t),p=yt("feMergeNode",t);p.setAttribute("in","SourceGraphic"),f.appendChild(h),f.appendChild(p)}(t,c,a):"contrast"===o?function(t,e,r){var n=Nt(r[0]);Rt(t,e,{type:"linear",slope:n,intercept:-.5*n+.5})}(t,c,a):"grayscale"===o?function(t,e,r){var n=Nt(r[0]);Dt(t,e,[.2126+.7874*(1-n),.7152-.7152*(1-n),.0722-.0722*(1-n),0,0,.2126-.2126*(1-n),.7152+.2848*(1-n),.0722-.0722*(1-n),0,0,.2126-.2126*(1-n),.7152-.7152*(1-n),.0722+.9278*(1-n),0,0,0,0,0,1,0])}(t,c,a):"sepia"===o?function(t,e,r){var n=Nt(r[0]);Dt(t,e,[.393+.607*(1-n),.769-.769*(1-n),.189-.189*(1-n),0,0,.349-.349*(1-n),.686+.314*(1-n),.168-.168*(1-n),0,0,.272-.272*(1-n),.534-.534*(1-n),.131+.869*(1-n),0,0,0,0,0,1,0])}(t,c,a):"saturate"===o?function(t,e,r){var n=Nt(r[0]),o=yt("feColorMatrix",t);o.setAttribute("type","saturate"),o.setAttribute("values","".concat(n)),e.appendChild(o)}(t,c,a):"hue-rotate"===o?function(t,e,r){var n=yt("feColorMatrix",t);n.setAttribute("type","hueRotate"),n.setAttribute("values","".concat(r[0].value)),e.appendChild(n)}(t,c,a):"invert"===o&&function(t,e,r){var n=Nt(r[0]);Rt(t,e,{type:"table",tableValues:"".concat(n," ").concat(1-n)})}(t,c,a),c.id="".concat(i,"-").concat(n),c.setAttribute("name",i),e.appendChild(c),c.id}));setTimeout((function(){null==n||n.setAttribute("filter",c.map((function(t){return"url(#".concat(t,")")})).join(" "))}))}}function Nt(t){return t.unit===e.UnitType.kPercentage?t.value/100:t.value}function Rt(t,e,r){var n=r.type,o=r.slope,i=r.intercept,a=r.tableValues,c=yt("feComponentTransfer",t);[yt("feFuncR",t),yt("feFuncG",t),yt("feFuncB",t)].forEach((function(t){t.setAttribute("type",n),"table"===n?t.setAttribute("tableValues","".concat(a)):(t.setAttribute("slope","".concat(o)),t.setAttribute("intercept","".concat(i))),c.appendChild(t)})),e.appendChild(c)}function Dt(t,e,r){var n=yt("feColorMatrix",t);n.setAttribute("type","matrix"),n.setAttribute("values",r.join(" ")),e.appendChild(n)}var $t="g-pattern-",It={},Vt=0;function Ut(t,r,n,o,i,a,c,u){if(!i)return"";if(!e.isCSSRGB(i)){if(e.isPattern(i)){var l=function(t,r,n,o,i,a){var c=Ft(o),u=r.querySelector("#".concat(c));if(!u){var l=o.image,s="";if(X(l)?s=l:e.isBrowser&&(l instanceof HTMLImageElement?s=l.src:l instanceof HTMLCanvasElement&&(s=l.toDataURL())),s){var f,h=yt("image",t);h.setAttribute("href",s),i?f=i(s):e.isBrowser&&(f=new window.Image),s.match(/^data:/i)||(f.crossOrigin="Anonymous",h.setAttribute("crossorigin","anonymous")),f.src=s;var p=function(){var e=Ht(t,r,n,o,c,f.width,f.height);r.appendChild(e),e.appendChild(h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("width","".concat(f.width)),h.setAttribute("height","".concat(f.height))};f.complete?p():f.onload=p}if("rect"===l.nodeName){var d=l.parsedStyle,v=Ht(t,r,l,o,c,d.width,d.height);l.forEach((function(e){a.createSVGDom(t,e,null);var r=e.elementSVG,n=e.getLocalTransform();a.applyTransform(r.$groupEl,n)})),v.appendChild(l.elementSVG.$groupEl)}}return c}(t,r,n,i,c,u);return o.style[a]="url(#".concat(l,")"),l}if(1===i.length){var s=Bt(t,n,r,o,i[0]);return null==o||o.setAttribute(a,"url(#".concat(s,")")),s}var f=function(t,e,r,n,o){var i=_t+e.entity+"-gradient",a=r.querySelector("#".concat(i));a||((a=yt("filter",t)).setAttribute("filterUnits","userSpaceOnUse"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.id=i,r.appendChild(a));var c=0;o.forEach((function(o,u){var l=Bt(t,e,r,n,o),s=l+"_rect",f=yt("rect",t);f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("width","100%"),f.setAttribute("height","100%"),f.setAttribute("fill","url(#".concat(l,")")),f.id=s,r.appendChild(f);var h=yt("feImage",t);if(h.setAttribute("href","#".concat(s)),h.setAttribute("result","".concat(i,"-").concat(u)),a.appendChild(h),u>0){var p=yt("feBlend",t);p.setAttribute("in",1===u?"".concat(i,"-").concat(u-1):"".concat(i,"-blended-").concat(c-1)),p.setAttribute("in2","".concat(i,"-").concat(u)),p.setAttribute("result","".concat(i,"-blended-").concat(c++)),p.setAttribute("mode","multiply"),a.appendChild(p)}}));var u=yt("feComposite",t);return u.setAttribute("in","".concat(i,"-blended-").concat(c)),u.setAttribute("in2","SourceGraphic"),u.setAttribute("operator","in"),a.appendChild(u),i}(t,n,r,o,i);return null==o||o.setAttribute("filter","url(#".concat(f,")")),null==o||o.setAttribute("fill","black"),f}return"currentColor"===n.style[a]?null==o||o.setAttribute(a,"currentColor"):null==o||o.setAttribute(a,i.isNone?"none":""+i),""}function Ft(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="";if(e.isCSSGradientValue(t)){var o=t.type;if(o===e.GradientType.LinearGradient||o===e.GradientType.RadialGradient){var i=q(q({},t.value),r),a=i.width,c=i.height,u=i.steps,l=i.angle,s=i.cx,f=i.cy,h=i.size;n="gradient-".concat(i.type,"-").concat((null==l?void 0:""+l)||0,"-").concat((null==s?void 0:""+s)||0,"-").concat((null==f?void 0:""+f)||0,"-").concat((null==h?void 0:""+h)||0,"-").concat(a,"-").concat(c,"-").concat(u.map((function(t){var e=t.color;return"".concat(t.offset).concat(e)})).join("-"))}}else e.isPattern(t)&&(n=X(t.image)?"pattern-".concat(t.image,"-").concat(t.repetition):"rect"===t.image.nodeName?"pattern-rect-".concat(t.image.entity):"pattern-".concat(Vt));return n&&(It[n]||(It[n]=$t+"".concat(Vt++))),It[n]}function Ht(t,r,n,o,i,a,c){var u=o.repetition,l=o.transform,s=yt("pattern",t);l&&s.setAttribute("patternTransform",function(t){return e.parseTransform(t).map((function(t){var e=t.t,r=t.d;if("translate"===e)return"translate(".concat(r[0].value," ").concat(r[1].value,")");if("translatex"===e)return"translate(".concat(r[0].value," 0)");if("translatey"===e)return"translate(0 ".concat(r[0].value,")");if("rotate"===e)return"rotate(".concat(r[0].value,")");if("scale"===e){var n=(null==r?void 0:r.map((function(t){return t.value})))||[1,1];return"scale(".concat(n[0],", ").concat(n[1],")")}if("scalex"===e){var o=(null==r?void 0:r.map((function(t){return t.value})))||[1];return"scale(".concat(o[0],", 1)")}if("scaley"===e){var i=(null==r?void 0:r.map((function(t){return t.value})))||[1];return"scale(1, ".concat(i[0],")")}if("skew"===e){var a=(null==r?void 0:r.map((function(t){return t.value})))||[0,0];return"skewX(".concat(a[0],") skewY(").concat(a[1],")")}if("skewx"===e){var c=(null==r?void 0:r.map((function(t){return t.value})))||[0];return"skewX(".concat(c[0],")")}if("skewy"===e){var u=(null==r?void 0:r.map((function(t){return t.value})))||[0];return"skewY(".concat(u[0],")")}if("matrix"===e){var l=ct(r.map((function(t){return t.value})),6),s=l[1],f=l[2],h=l[3],p=l[4],d=l[5];return"matrix(".concat(l[0]," ").concat(s," ").concat(f," ").concat(h," ").concat(p," ").concat(d,")")}})).join(" ")}(l)),s.setAttribute("patternUnits","userSpaceOnUse"),s.id=i,r.appendChild(s),s.setAttribute("x","0"),s.setAttribute("y","0");var f=n.getGeometryBounds().halfExtents,h=a,p=c;return"repeat-x"===u?p=2*f[1]:"repeat-y"===u?h=2*f[0]:"no-repeat"===u&&(h=2*f[0],p=2*f[1]),s.setAttribute("width","".concat(h)),s.setAttribute("height","".concat(p)),s}function Bt(t,r,n,o,i){var a=r.getGeometryBounds(),c=a&&2*a.halfExtents[0]||0,u=a&&2*a.halfExtents[1]||0,l=Ft(i,{width:c,height:u}),s=n.querySelector("#".concat(l));if(!s){(s=yt(i.type===e.GradientType.LinearGradient?"linearGradient":"radialGradient",t)).setAttribute("gradientUnits","userSpaceOnUse");var f="";i.value.steps.sort((function(t,e){return t.offset.value-e.offset.value})).forEach((function(t){var e=t.color;f+='<stop offset="'.concat(t.offset.value/100,'" stop-color="').concat(e,'"></stop>')})),s.innerHTML=f,s.id=l,n.appendChild(s)}if(i.type===e.GradientType.LinearGradient){var h=e.computeLinearGradient(c,u,i.value.angle),p=h.y1,d=h.x2,v=h.y2;s.setAttribute("x1","".concat(h.x1)),s.setAttribute("y1","".concat(p)),s.setAttribute("x2","".concat(d)),s.setAttribute("y2","".concat(v))}else{var y=i.value,m=e.computeRadialGradient(c,u,y.cx,y.cy,y.size),g=m.y,b=m.r;s.setAttribute("cx","".concat(m.x)),s.setAttribute("cy","".concat(g)),s.setAttribute("r","".concat(b))}return l}var Wt=/url\("?#(.*)\)/,Yt=function(){function t(e){K(this,t),this.context=void 0,this.$def=void 0,this.gradientCache={},this.context=e}return et(t,[{key:"getDefElement",value:function(){return this.$def}},{key:"init",value:function(){var t=this.context.config.document,e=this.context.contextService.getContext();this.$def=yt("defs",t),e.appendChild(this.$def)}},{key:"clear",value:function(t){var e=this;Object.keys(this.gradientCache).forEach((function(r){e.clearUnusedDefElement(e.gradientCache,r,t)}))}},{key:"clearUnusedDefElement",value:function(t,e,r){if(t[e]&&1===t[e].size&&t[e].has(r)){var n=this.$def.querySelector("#".concat(e));n&&this.$def.removeChild(n)}}},{key:"createOrUpdateGradientAndPattern",value:function(t,r,n,o,i){var a=this.context.config,c=a.document,u=a.createImage;if(r){var l=(e.isPattern(n)?r.style[o]:r.getAttribute(o)||"").match(Wt);l&&l.length>1&&this.clearUnusedDefElement(this.gradientCache,l[1].replace('"',""),t.entity);var s=Ut(c||document,this.$def,t,r,n,o,u,i);s&&(this.gradientCache[s]||(this.gradientCache[s]=new Set),this.gradientCache[s].add(t.entity))}}},{key:"createOrUpdateShadow",value:function(t,e,r){!function(t,e,r,n,o){var i=r.parsedStyle,a=i.shadowType,c=i.shadowBlur,u=i.shadowColor,l=i.shadowOffsetX,s=i.shadowOffsetY,f=!W(u)&&c>0,h="g-filter-dropshadow-"+r.entity,p=e.querySelector("#".concat(h));if(p&&(p.getAttribute("data-type")===a&&f||(p.remove(),p=null)),f){if(null==n||n.setAttribute("filter","url(#".concat(h,")")),!p){if((p=yt("filter",t)).setAttribute("data-type",a),"outer"===a){var d=yt("feDropShadow",t);d.setAttribute("dx","".concat((l||0)/2)),d.setAttribute("dy","".concat((s||0)/2)),d.setAttribute("stdDeviation","".concat((c||0)/4)),d.setAttribute("flood-color",""+u),p.appendChild(d)}else if("inner"===a){var v=yt("feComponentTransfer",t);v.setAttribute("in","SourceAlpha");var y=yt("feFuncA",t);y.setAttribute("type","table"),y.setAttribute("tableValues","1 0"),v.appendChild(y),p.appendChild(v);var m=yt("feGaussianBlur",t);m.setAttribute("stdDeviation","".concat((c||0)/4)),p.appendChild(m);var g=yt("feOffset",t);g.setAttribute("dx","".concat((l||0)/2)),g.setAttribute("dy","".concat((s||0)/2)),g.setAttribute("result","offsetblur"),p.appendChild(g);var b=yt("feFlood",t);b.setAttribute("flood-color",""+u),b.setAttribute("result","color"),p.appendChild(b);var E=yt("feComposite",t);E.setAttribute("in2","offsetblur"),E.setAttribute("operator","in"),p.appendChild(E);var w=yt("feComposite",t);w.setAttribute("in2","SourceAlpha"),w.setAttribute("operator","in"),p.appendChild(w);var x=yt("feMerge",t);p.appendChild(x);var A=yt("feMergeNode",t);A.setAttribute("in","SourceGraphic");var O=yt("feMergeNode",t);x.appendChild(A),x.appendChild(O)}return p.id=h,p.setAttribute("filterUnits","userSpaceOnUse"),void e.appendChild(p)}if("inner"===a){var S=p.children[1],L=p.children[2];"shadowColor"===o?p.children[3].setAttribute("flood-color",""+u):"shadowBlur"===o?S.setAttribute("stdDeviation","".concat((c||0)/4)):"shadowOffsetX"===o?L.setAttribute("dx","".concat((l||0)/2)):"shadowOffsetY"===o&&L.setAttribute("dy","".concat((s||0)/2))}else if("outer"===a){var k=p.children[0];"shadowColor"===o?k.setAttribute("flood-color",""+u):"shadowBlur"===o?k.setAttribute("stdDeviation","".concat((c||0)/4)):"shadowOffsetX"===o?k.setAttribute("dx","".concat((l||0)/2)):"shadowOffsetY"===o&&k.setAttribute("dy","".concat((s||0)/2))}}else null==n||n.removeAttribute("filter")}(this.context.config.document||document,this.$def,t,e,r)}},{key:"createOrUpdateFilter",value:function(t,e,r){Mt(this.context.config.document||document,this.$def,t,e,r)}}]),t}(),Xt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ot(t,e)}(r,t);var e=at(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return K(this,r),(t=e.call(this)).options=void 0,t.name="svg-renderer",t.options=n,t}return et(r,[{key:"init",value:function(){var t=this.options,e=t.outputSVGElementId,r=t.outputSVGElementName,n=new Yt(this.context),o=new Gt(this.context);this.context.defaultElementLifeCycleContribution=o,this.context.SVGElementLifeCycleContribution=o;var i={outputSVGElementId:!!W(e)||!!e,outputSVGElementName:!!W(r)||!!r};this.addRenderingPlugin(new St(i,n,this.context))}},{key:"destroy",value:function(){this.removeAllRenderingPlugins(),delete this.context.defaultElementLifeCycleContribution,delete this.context.SVGElementLifeCycleContribution}}]),r}(e.AbstractRendererPlugin),zt=Object.freeze({__proto__:null,CLIP_PATH_PREFIX:At,DEFAULT_VALUE_MAP:wt,DefaultElementLifeCycleContribution:Gt,ElementSVG:st,G_SVG_PREFIX:xt,Plugin:Xt,SHAPE2TAGS:Tt,SHAPE_UPDATE_DEPS:jt,SVGRendererPlugin:St,SVG_ATTR_MAP:bt,TEXT_PATH_PREFIX:Ot,createSVGElement:yt,updateImageElementAttribute:ft,updateLineElementAttribute:ht,updatePathElementAttribute:pt,updatePolylineElementAttribute:dt,updateRectElementAttribute:vt,updateTextElementAttribute:Ct}),qt=["offset","composite","computedOffset","easing"],Qt=["offset","composite","computedOffset","easing","transformOrigin"],Jt=["offset","composite","computedOffset","easing","transformOrigin"],Zt=["offset","composite","computedOffset","easing","transformOrigin"],Kt=function(){function t(e){a(this,t),this.context=void 0,this.$container=void 0,this.$namespace=void 0,this.dpr=void 0,this.canvasConfig=void 0,this.context=e,this.canvasConfig=e.config}var n,o;return u(t,[{key:"init",value:(o=i(r().mark((function t(){var n,o,i,a,c,u;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=(n=this.canvasConfig).document,a=n.devicePixelRatio,this.$container=X(o=n.container)?(i||document).getElementById(o):o,this.$container&&(this.$container.style.position||(this.$container.style.position="relative"),(c=yt("svg",i)).setAttribute("width","".concat(this.canvasConfig.width)),c.setAttribute("height","".concat(this.canvasConfig.height)),this.$container.appendChild(c),this.$namespace=c),u=a||e.isBrowser&&window.devicePixelRatio||1,this.dpr=u=1>u?1:Math.ceil(u);case 6:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"getDomElement",value:function(){return this.$namespace}},{key:"getContext",value:function(){return this.$namespace}},{key:"getDPR",value:function(){return this.dpr}},{key:"getBoundingClientRect",value:function(){var t;return null===(t=this.$namespace)||void 0===t?void 0:t.getBoundingClientRect()}},{key:"destroy",value:function(){this.$container&&this.$namespace&&this.$namespace.parentNode&&this.$container.removeChild(this.$namespace)}},{key:"resize",value:function(t,e){this.$namespace&&(this.$namespace.setAttribute("width","".concat(t)),this.$namespace.setAttribute("height","".concat(e)))}},{key:"applyCursorStyle",value:function(t){this.$container&&(this.$container.style.cursor=t)}},{key:"generateCSSText",value:function(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=n.duration,a=n.easing,c=n.delay,u=n.direction,l=n.iterations,s=n.fill;return"@keyframes ".concat(t,"{").concat(r.map((function(t){var e=t.computedOffset,r=h(t,qt),n=Object.keys(r).map((function(t){return"".concat(t,":").concat(o[t]||"").concat(r[t],";")})).join("");return"".concat(100*e,"%{").concat(n,"}")})).join(""),"}")+"".concat(e," {animation: ").concat(t," ").concat(i,"ms ").concat(a," ").concat(c,"ms ").concat(l===1/0?"infinite":l," ").concat(u," ").concat(s,";}")}},{key:"toDataURL",value:(n=i(r().mark((function t(){var n,o,i,a,c,u,l=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.$namespace.cloneNode(!0),o=this.canvasConfig.document,i=0,a=null,this.context.renderingContext.root.forEach((function(t){var r=t.getAnimations();if(r.length){a||(a=(o||document).createElement("style"),n.appendChild(a));var c=t.elementSVG,u="#".concat(c.$el.id),s="#".concat(c.$groupEl.id),f="",p="";r.forEach((function(t){var r=t.effect.getKeyframes();if(r.length){var n=[],o=[],a=r[0],d=h(a,Qt);if(Object.keys(d).forEach((function(t){var r;"transform"===t&&o.push(t),(null===(r=e.propertyMetadataCache[t])||void 0===r?void 0:r.inh)?o.push(t):"transform"!==t&&n.push(t)})),o.length){var v=r.map((function(t){var e=t.offset,r=t.composite,n=t.computedOffset,i=t.easing,a=h(t,Jt),c={offset:e,composite:r,computedOffset:n,easing:i};return Object.keys(a).forEach((function(e){o.includes(e)&&(c[e]=t[e])})),c}));p+=l.generateCSSText("a".concat(i++),s,v,t.effect.getComputedTiming(),{transform:c.$groupEl.getAttribute("transform")})}if(n.length){var y=r.map((function(t){var e=t.offset,r=t.composite,o=t.computedOffset,i=t.easing,a=h(t,Zt),c={offset:e,composite:r,computedOffset:o,easing:i};return Object.keys(a).forEach((function(e){n.includes(e)&&(c[e]=t[e])})),c}));f+=l.generateCSSText("a".concat(i++),u,y,t.effect.getComputedTiming())}}})),a.textContent+=f+p}})),c=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),(u=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",c)).replaceChild(n,u.documentElement),t.abrupt("return","data:image/svg+xml;charset=utf8,".concat(encodeURIComponent((new XMLSerializer).serializeToString(u))));case 10:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})}]),t}(),te=function(t){l(r,t);var e=d(r);function r(){var t;a(this,r);for(var n=arguments.length,o=Array(n),i=0;n>i;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))).name="svg-context-register",t}return u(r,[{key:"init",value:function(){this.context.ContextService=Kt}},{key:"destroy",value:function(){delete this.context.ContextService}}]),r}(e.AbstractRendererPlugin),ee=function(t){l(r,t);var e=d(r);function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a(this,r),(t=e.call(this,n)).registerPlugin(new te),t.registerPlugin(new Xt({outputSVGElementId:n.outputSVGElementId})),t.registerPlugin(new L),t.registerPlugin(new V),t}return u(r)}(e.AbstractRenderer);t.DomInteraction=k,t.Renderer=ee,t.SVGPicker=U,t.SVGRenderer=zt,Object.defineProperty(t,"__esModule",{value:!0})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/g-svg",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.56",
|
|
4
4
|
"description": "A renderer implemented by SVG",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antv",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"sync": "tnpm sync"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@antv/g-plugin-dom-interaction": "^1.7.
|
|
34
|
-
"@antv/g-plugin-svg-picker": "^1.7.
|
|
35
|
-
"@antv/g-plugin-svg-renderer": "^1.8.
|
|
33
|
+
"@antv/g-plugin-dom-interaction": "^1.7.48",
|
|
34
|
+
"@antv/g-plugin-svg-picker": "^1.7.49",
|
|
35
|
+
"@antv/g-plugin-svg-renderer": "^1.8.56",
|
|
36
36
|
"@antv/util": "^3.3.1",
|
|
37
37
|
"tslib": "^2.3.1"
|
|
38
38
|
},
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "059286bbeff21a63e75a41811b89623c37f511f4"
|
|
50
50
|
}
|