@antv/g-svg 1.8.25 → 1.8.26
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { CanvasContext, DataURLOptions, GlobalRuntime } from '@antv/g-lite';
|
|
2
|
-
import type { ContextService } from '@antv/g-lite';
|
|
1
|
+
import type { CanvasContext, DataURLOptions, GlobalRuntime, ContextService } from '@antv/g-lite';
|
|
3
2
|
export declare class SVGContextService implements ContextService<SVGElement> {
|
|
4
3
|
private $container;
|
|
5
4
|
private $namespace;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SVGContextService.d.ts","sourceRoot":"","sources":["../src/SVGContextService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"SVGContextService.d.ts","sourceRoot":"","sources":["../src/SVGContextService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,aAAa,EAEb,cAAc,EACf,MAAM,cAAc,CAAC;AAKtB,qBAAa,iBAAkB,YAAW,cAAc,CAAC,UAAU,CAAC;IAClE,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,UAAU,CAAoB;IACtC,OAAO,CAAC,GAAG,CAAS;IAEpB,OAAO,CAAC,YAAY,CAAwB;gBAEhC,OAAO,EAAE,aAAa,GAAG,aAAa;IAI5C,IAAI;IA2BV,aAAa;IAIb,UAAU;IAIV,MAAM;IAIN,qBAAqB;IAIrB,OAAO;IAOP,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAQpC,gBAAgB,CAAC,MAAM,EAAE,MAAM;IAMzB,SAAS,CAAC,OAAO,GAAE,OAAO,CAAC,cAAc,CAAM;CAiBtD"}
|
package/dist/index.umd.js
CHANGED
|
@@ -2909,10 +2909,11 @@
|
|
|
2909
2909
|
} else {
|
|
2910
2910
|
img.onload = onload;
|
|
2911
2911
|
// Fix onload() bug in IE9
|
|
2912
|
-
img.src = img.src;
|
|
2912
|
+
// img.src = img.src;
|
|
2913
2913
|
}
|
|
2914
2914
|
}
|
|
2915
2915
|
}
|
|
2916
|
+
|
|
2916
2917
|
return patternId;
|
|
2917
2918
|
}
|
|
2918
2919
|
function createOrUpdateGradient(document, object, $def, $el, parsedColor) {
|
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",s=o.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 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 h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function d(){}function p(){}function v(){}var m={};c(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 w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,o,a,u){var s=h(t[i],t,o);if("throw"!==s.type){var c=s.arg,l=c.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){c.value=t,a(c)}),(function(t){return r("throw",t,a,u)}))}u(s.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 new 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 s=h(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function A(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var i=n.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,f):i:(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[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=c(v,s,"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,c(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(E.prototype),c(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new E(l(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),c(b,s,"Generator"),c(b,a,(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)&&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"),s=n.call(o,"finallyLoc");if(u&&s){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(!s)throw new 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,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 new 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 n(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).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,s,"next",t)}function s(t){n(a,i,o,u,s,"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(){u=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",s=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 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 h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function d(){}function p(){}function v(){}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=v.prototype=d.prototype=Object.create(m);function w(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 s=h(t[n],t,o);if("throw"!==s.type){var c=s.arg,l=c.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){c.value=t,a(c)}),(function(t){return i("throw",t,a,u)}))}u(s.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 new 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 s=h(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function A(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var i=n.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,f):i:(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 p.prototype=v,n(b,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:p,configurable:!0}),p.displayName=c(v,s,"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,c(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(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(l(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),c(b,s,"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"),s=r.call(o,"finallyLoc");if(u&&s){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(!s)throw new 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 new 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 s(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,i)}function c(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 l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}var h=function(){function t(){this.context=void 0}return t.prototype.apply=function(e){var r=this,n=e.renderingService,i=e.renderingContext;this.context=e;var o=i.root.ownerDocument.defaultView,a=function(t){n.hooks.pointerMove.call(t)},s=function(t){n.hooks.pointerUp.call(t)},l=function(t){n.hooks.pointerDown.call(t)},h=function(t){n.hooks.pointerOver.call(t)},f=function(t){n.hooks.pointerOut.call(t)},d=function(t){n.hooks.pointerCancel.call(t)},p=function(t){n.hooks.pointerWheel.call(t)},v=function(t){globalThis.document.addEventListener("pointermove",a,!0),t.addEventListener("pointerdown",l,!0),t.addEventListener("pointerleave",f,!0),t.addEventListener("pointerover",h,!0),globalThis.addEventListener("pointerup",s,!0)},m=function(t){t.addEventListener("touchstart",l,!0),t.addEventListener("touchend",s,!0),t.addEventListener("touchmove",a,!0),t.addEventListener("touchcancel",d,!0)},g=function(t){globalThis.document.addEventListener("mousemove",a,!0),t.addEventListener("mousedown",l,!0),t.addEventListener("mouseout",f,!0),t.addEventListener("mouseover",h,!0),globalThis.addEventListener("mouseup",s,!0)};n.hooks.init.tapPromise(t.tag,c(u().mark((function t(){var e;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=r.context.contextService.getDomElement(),globalThis.navigator.msPointerEnabled?(e.style.msContentZooming="none",e.style.msTouchAction="none"):o.supportsPointerEvents&&(e.style.touchAction="none"),o.supportsPointerEvents?v(e):g(e),o.supportsTouchEvents&&m(e),e.addEventListener("wheel",p,{passive:!0,capture:!0});case 5:case"end":return t.stop()}}),t)})))),n.hooks.destroy.tap(t.tag,(function(){var t=r.context.contextService.getDomElement();globalThis.navigator.msPointerEnabled?(t.style.msContentZooming="",t.style.msTouchAction=""):o.supportsPointerEvents&&(t.style.touchAction=""),o.supportsPointerEvents?function(t){globalThis.document.removeEventListener("pointermove",a,!0),t.removeEventListener("pointerdown",l,!0),t.removeEventListener("pointerleave",f,!0),t.removeEventListener("pointerover",h,!0),globalThis.removeEventListener("pointerup",s,!0)}(t):function(t){globalThis.document.removeEventListener("mousemove",a,!0),t.removeEventListener("mousedown",l,!0),t.removeEventListener("mouseout",f,!0),t.removeEventListener("mouseover",h,!0),globalThis.removeEventListener("mouseup",s,!0)}(t),o.supportsTouchEvents&&function(t){t.removeEventListener("touchstart",l,!0),t.removeEventListener("touchend",s,!0),t.removeEventListener("touchmove",a,!0),t.removeEventListener("touchcancel",d,!0)}(t),t.removeEventListener("wheel",p,!0)}))},t}();h.tag="DOMInteraction";var f=function(t){var e,r;function n(){for(var e,r=arguments.length,n=new 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}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,l(e,r);var i=n.prototype;return i.init=function(){this.addRenderingPlugin(new h)},i.destroy=function(){this.removeAllRenderingPlugins()},n}(e.AbstractRendererPlugin),d=Object.freeze({__proto__:null,Plugin:f}),p="undefined"!=typeof Float32Array?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var v=function(t){return null==t},m={}.toString,g=function(t){return e="String",m.call(t)==="[object "+e+"]";var e},y=function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;o>i;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},b=function(t,e,r){this.name=t,this.version=e,this.os=r,this.type="browser"},w=function(t){this.version=t,this.type="node",this.name="node",this.os=process.platform},E=function(t,e,r,n){this.name=t,this.version=e,this.os=r,this.bot=n,this.type="bot-device"},x=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},A=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},S=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,L=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],O=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function C(t){return t?k(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new A:"undefined"!=typeof navigator?k(navigator.userAgent):"undefined"!=typeof process&&process.version?new w(process.version.slice(1)):null}function k(t){var e=function(t){return""!==t&&L.reduce((function(e,r){var n=r[0];if(e)return e;var i=r[1].exec(t);return!!i&&[n,i]}),!1)}(t);if(!e)return null;var r=e[0],n=e[1];if("searchbot"===r)return new x;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?3>i.length&&(i=y(y([],i,!0),function(t){for(var e=[],r=0;t>r;r++)e.push("0");return e}(3-i.length),!0)):i=[];var o=i.join("."),a=function(t){for(var e=0,r=O.length;r>e;e++){var n=O[e],i=n[0];if(n[1].exec(t))return i}return null}(t),u=S.exec(t);return u&&u[1]?new E(r,o,a,u[1]):new b(r,o,a)}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 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 c(t,e,r,i){var o=Object.create((e&&e.prototype instanceof f?e:f).prototype),a=new L(i||[]);return n(o,"_invoke",{value:E(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=c;var h={};function f(){}function d(){}function p(){}var v={};s(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=f.prototype=Object.create(v);function b(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 s=l(t[n],t,o);if("throw"!==s.type){var c=s.arg,h=c.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,u)}))}u(s.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 E(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new 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===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 s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var i=n.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 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=s(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,s(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(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(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),s(y,u,"Generator"),s(y,o,(function(){return this})),s(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"),s=r.call(o,"finallyLoc");if(u&&s){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(!s)throw new 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),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 i=n.arg;S(r)}return i}}throw new 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),h}},t}function T(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).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 N=function(){this.$el=void 0,this.$groupEl=void 0,this.$hitTestingEl=void 0};function j(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"),g(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&&g(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 $(t,r){var n,i,o=r.x1,a=r.y1,u=r.x2,s=r.y2,c=r.defX,l=void 0===c?0:c,h=r.defY,f=void 0===h?0:h,d=r.markerStart,p=r.markerEnd,v=r.markerStartOffset,m=r.markerEndOffset,g=0,y=0,b=0,w=0,E=0;d&&d instanceof e.DisplayObject&&v&&(n=u-o,i=s-a,E=Math.atan2(i,n),g=Math.cos(E)*(v||0),y=Math.sin(E)*(v||0)),p&&p instanceof e.DisplayObject&&m&&(n=o-u,i=a-s,E=Math.atan2(i,n),b=Math.cos(E)*(m||0),w=Math.sin(E)*(m||0)),t.setAttribute("x1",""+(o-l+g)),t.setAttribute("y1",""+(a-f+y)),t.setAttribute("x2",""+(u-l+b)),t.setAttribute("y2",""+(s-f+w))}function D(t,r){var n,i,o=r.path,a=r.defX,u=void 0===a?0:a,s=r.defY,c=void 0===s?0:s,l=r.markerStart,h=r.markerEnd,f=r.markerStartOffset,d=r.markerEndOffset,p=0,v=0,m=0,g=0,y=0;if(l&&l instanceof e.DisplayObject&&f){var b=l.parentNode.getStartTangent(),w=b[0],E=b[1];n=w[0]-E[0],i=w[1]-E[1],y=Math.atan2(i,n),p=Math.cos(y)*(f||0),v=Math.sin(y)*(f||0)}if(h&&h instanceof e.DisplayObject&&d){var x=h.parentNode.getEndTangent(),A=x[0],S=x[1];n=A[0]-S[0],i=A[1]-S[1],y=Math.atan2(i,n),m=Math.cos(y)*(d||0),g=Math.sin(y)*(d||0)}t.setAttribute("d",e.translatePathToString(o.absolutePath,u,c,p,v,m,g))}function I(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,s=r.markerStart,c=r.markerStartOffset,l=r.markerEnd,h=r.markerEndOffset,f=n.length;if(n&&f>=2){var d,p,v=0,m=0,g=0,y=0,b=0;s&&s instanceof e.DisplayObject&&c&&(d=n[1][0]-n[0][0],p=n[1][1]-n[0][1],b=Math.atan2(p,d),v=Math.cos(b)*(c||0),m=Math.sin(b)*(c||0)),l&&l instanceof e.DisplayObject&&h&&(d=n[f-2][0]-n[f-1][0],p=n[f-2][1]-n[f-1][1],b=Math.atan2(p,d),g=Math.cos(b)*(h||0),y=Math.sin(b)*(h||0)),t.setAttribute("points",n.map((function(t,e){var r=0,n=0;return 0===e?(r=v,n=m):e===f-1&&(r=g,n=y),t[0]-o+r+","+(t[1]-u+n)})).join(" "))}}function V(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],s=a[1],c=a[2],l=a[3],h=n>0?1:-1,f=i>0?1:-1,d=h+f!==0?1:0;o=[["M "+h*u+",0"],["l "+(n-h*(u+s))+",0"],["a "+s+","+s+",0,0,"+d+","+h*s+","+f*s],["l 0,"+(i-f*(s+c))],["a "+c+","+c+",0,0,"+d+","+-h*c+","+f*c],["l "+(h*(c+l)-n)+",0"],["a "+l+","+l+",0,0,"+d+","+-h*l+","+-f*l],["l 0,"+(f*(l+u)-i)],["a "+u+","+u+",0,0,"+d+","+h*u+","+-f*u],["z"]].join(" ")}else o="M 0,0 l "+n+",0 l 0,"+i+" l"+-n+" 0 z";t.setAttribute("d",o)}}function R(t,e){return(e||document).createElementNS("http://www.w3.org/2000/svg",t)}function U(t){return t.toFixed(6).replace(".000000","")}function W(t){return t.replace(/[&|<|>|"|']/g,(function(t){return"&"===t?"&":"<"===t?"<":">"===t?">":'"'===t?""":"'"}))}N.tag="c-svg-element";var F={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"}},H={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.$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;var a=o.root.ownerDocument.defaultView,u=this.context.config.document,s=function(t){n.createSVGDom(u,t.target,n.$camera)},c=function(t){var e=t.target;n.defElementManager.clear(e.entity),n.clipPathUseMap.delete(e),n.removeSVGDom(e)},l=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)}},h=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,s=a.stroke;!u||u instanceof e.CSSRGB||n.defElementManager.createOrUpdateGradientAndPattern(i,o,u,"fill"),!s||s instanceof e.CSSRGB||n.defElementManager.createOrUpdateGradientAndPattern(i,o,s,"stroke")};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=R("g",o),n.$camera.id="g-svg-camera",n.applyTransform(n.$camera,n.context.camera.getOrthoMatrix()),u.appendChild(n.$camera),a.addEventListener(e.ElementEvent.MOUNTED,s),a.addEventListener(e.ElementEvent.UNMOUNTED,c),a.addEventListener(e.ElementEvent.ATTR_MODIFIED,l),a.addEventListener(e.ElementEvent.BOUNDS_CHANGED,h);case 13:case"end":return t.stop()}}),t)})))),i.hooks.destroy.tap(t.tag,(function(){a.removeEventListener(e.ElementEvent.MOUNTED,s),a.removeEventListener(e.ElementEvent.UNMOUNTED,c),a.removeEventListener(e.ElementEvent.ATTR_MODIFIED,l),a.removeEventListener(e.ElementEvent.BOUNDS_CHANGED,h)})),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 s=n.clipPathUseMap.get(t);s&&s.length&&s.forEach((function(e){n.applyTransform(e,t.getWorldTransform())})),t.renderable.dirty=!1}var c=n.dirtyAttributes.get(t);c&&(c.forEach((function(e){if("zIndex"===e){var r,a,s=t.parentNode,c=null===(r=t.parentNode)||void 0===r||null===(a=r.elementSVG)||void 0===a?void 0:a.$groupEl,l=((null==s?void 0:s.children)||[]).slice();c&&n.reorderChildren(u,c,l)}else"increasedLineWidthForHitTesting"===e&&n.createOrUpdateHitArea(t,i,o);n.updateAttribute(t,[e])})),n.dirtyAttributes.delete(t))})),n.renderQueue=[]}))},r.getId=function(t){return"g-svg-"+t.nodeName+"-"+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,s=o.$hitTestingEl,c=t.parsedStyle,l=t.computedStyle;r.some((function(e){return n.context.SVGElementLifeCycleContribution.shouldUpdateElementAttribute(t,e)}))&&a&&[a,s].forEach((function(r){r&&(n.context.SVGElementLifeCycleContribution.updateElementAttribute(t,r),t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t))})),r.forEach((function(r){var o,h,f=F[r],d=l[r],p=d&&d.toString(),v=(null===(o=B[r])||void 0===o?void 0:o[p])||p,m=c[r],g=!!(null===(h=e.propertyMetadataCache[r])||void 0===h?void 0:h.inh);f&&(t.nodeName===e.Shape.HTML&&("lineWidth"===r?a.style["border-width"]=(m||0)+"px":"lineDash"===r&&(a.style["border-style"]="dashed")),"fill"===r?t.nodeName===e.Shape.HTML?a.style.background=m.toString():n.defElementManager.createOrUpdateGradientAndPattern(t,a,m,f):"stroke"===r?t.nodeName===e.Shape.HTML?(a.style["border-color"]=m.toString(),a.style["border-style"]="solid"):n.defElementManager.createOrUpdateGradientAndPattern(t,a,m,f):g&&f?"unset"!==p&&p!==H[r]?null==u||u.setAttribute(f,v):null==u||u.removeAttribute(f):"clipPath"===r?n.createOrUpdateClipOrTextPath(i,m,t):"textPath"===r?n.createOrUpdateClipOrTextPath(i,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(i,a,m):"anchor"===r?t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t):d&&[a,s].forEach((function(t){t&&f&&("unset"!==p&&p!==H[r]?t.setAttribute(f,v):t.removeAttribute(f))})))}))},r.createSVGDom=function(t,r,n,i){void 0===i&&(i=!1),r.elementSVG=new N;var o=r.elementSVG,a=this.context.SVGElementLifeCycleContribution.createElement(r);if(a){var u,s;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?s=a:(s=R("g",t)).appendChild(a),o.$el=a,o.$groupEl=s,this.applyAttributes(r),this.createOrUpdateHitArea(r,a,s);var c=r.parentNode&&(null===(u=r.parentNode.elementSVG)||void 0===u?void 0:u.$groupEl)||n;c&&(c.appendChild(s),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="g-svg-"+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,o=r.elementSVG.$groupEl,a=n?"g":"clipPath",u=n?"text-path":"clip-path";if(e){var s=(n?z:X)+e.entity+"-"+r.entity,c=this.defElementManager.getDefElement();if(!c.querySelector("#"+s)){var l;if(n)this.createSVGDom(t,e,null,!0),l=e.elementSVG.$el;else{if(!e.isConnected)c.querySelector("#"+this.getId(e))||this.createSVGDom(t,e,c,!0);l=R(a,t);var h=R("use",t);h.setAttribute("href","#"+e.elementSVG.$el.id),l.appendChild(h);var f=this.clipPathUseMap.get(e);f||(this.clipPathUseMap.set(e,[]),f=this.clipPathUseMap.get(e)),f.push(h),this.applyTransform(h,e.getWorldTransform());var d=function(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],u=e[5],s=e[6],c=e[7],l=e[8],h=e[9],f=e[10],d=e[11],p=e[12],v=e[13],m=e[14],g=e[15],y=r*u-n*a,b=r*s-i*a,w=r*c-o*a,E=n*s-i*u,x=n*c-o*u,A=i*c-o*s,S=l*v-h*p,L=l*m-f*p,O=l*g-d*p,C=h*m-f*v,k=h*g-d*v,P=f*g-d*m,T=y*P-b*k+w*C+E*O-x*L+A*S;return T?(t[0]=(u*P-s*k+c*C)*(T=1/T),t[1]=(i*k-n*P-o*C)*T,t[2]=(v*A-m*x+g*E)*T,t[3]=(f*x-h*A-d*E)*T,t[4]=(s*O-a*P-c*L)*T,t[5]=(r*P-i*O+o*L)*T,t[6]=(m*w-p*A-g*b)*T,t[7]=(l*A-f*w+d*b)*T,t[8]=(a*k-u*O+c*S)*T,t[9]=(n*O-r*k-o*S)*T,t[10]=(p*x-v*w+g*y)*T,t[11]=(h*w-l*x-d*y)*T,t[12]=(u*L-a*C-s*S)*T,t[13]=(r*C-n*L+i*S)*T,t[14]=(v*b-p*E-m*y)*T,t[15]=(l*E-h*b+f*y)*T,t):null}((i=new p(16),p!=Float32Array&&(i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[11]=0,i[12]=0,i[13]=0,i[14]=0),i[0]=1,i[5]=1,i[10]=1,i[15]=1,i),r.getWorldTransform());this.applyTransform(l,d)}l.id=s,c.appendChild(l)}this.applyAttributes(e),n||o.setAttribute(u,"url(#"+s+")")}else n||o.removeAttribute(u)},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,K,J={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"},Z={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"};function tt(t,e){var r=e.textBaseline,n=e.lineWidth,i=e.metrics,o=e.dx,a=e.dy,u=e.textPath,s=e.textPathSide,c=void 0===s?"left":s,l=e.textPathStartOffset,h=void 0===l?0:l,f=e.textDecorationLine,d=void 0===f?"":f,p=e.textDecorationColor,v=void 0===p?"":p,m=e.textDecorationStyle,g=void 0===m?"":m,y=C();y&&"firefox"===y.name?t.setAttribute("dominant-baseline",Z[r]||"alphabetic"):(t.setAttribute("dominant-baseline",Z[r]),t.setAttribute("alignment-baseline",J[r])),t.setAttribute("paint-order","stroke");var b=i.lines,w=i.lineHeight,E=i.height,x=b.length,A="";if(0===o&&0===a||(A+="transform:translate("+o+"px, "+a+"px);"),d&&"none"!==d&&(A+="text-decoration:"+d+" "+g+" "+v+";"),A&&t.setAttribute("style",A),1===x){var S=W(b[0]);if(t.setAttribute("dx",""+n/2),u){t.innerHTML="";var L=R("textPath",t.ownerDocument);L.setAttribute("href","#"+(z+u.entity)),"left"!==c&&L.setAttribute("side",c),0!==h&&L.setAttribute("startOffset",""+h),L.innerHTML=S,t.appendChild(L)}else t.innerHTML=S}else t.innerHTML=b.map((function(t,e){var i=0;return 0===e?"middle"===r?i=w/2-E/2:"top"===r||"hanging"===r?i=0:"bottom"!==r&&"alphabetic"!==r&&"ideographic"!==r||(i=-w*(x-1)):i=w,'<tspan x="0" dx="'+n/2+'" dy="'+i+'">'+W(t)+"</tspan>"})).join("")}var et=((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),rt=((K={})[e.Shape.CIRCLE]=["r"],K[e.Shape.ELLIPSE]=["rx","ry"],K[e.Shape.RECT]=["width","height","radius"],K[e.Shape.IMAGE]=["img","width","height"],K[e.Shape.LINE]=["x1","y1","x2","y2","markerStart","markerEnd","markerStartOffset","markerEndOffset"],K[e.Shape.POLYLINE]=["points","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"],K[e.Shape.POLYGON]=["points","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"],K[e.Shape.PATH]=["path","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"],K[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"],K),nt=function(){function t(t){this.context=void 0,this.context=t}var r=t.prototype;return r.createElement=function(t){return R(et[t.nodeName]||"g",this.context.config.document||document)},r.destroyElement=function(t,e){},r.shouldUpdateElementAttribute=function(t,e){return(rt[t.nodeName]||[]).indexOf(e)>-1},r.updateElementAttribute=function(t){var r=t.elementSVG.$el,n=t.parsedStyle;switch(t.nodeName){case e.Shape.IMAGE:j(r,n);break;case e.Shape.RECT:V(r,n);break;case e.Shape.LINE:$(r,n);break;case e.Shape.POLYGON:case e.Shape.POLYLINE:I(r,n);break;case e.Shape.PATH:D(r,n);break;case e.Shape.TEXT:tt(r,n)}},t}(),it="g-filter-";function ot(t,r,n,i,o){var a=it+n.entity,u=r.querySelectorAll("[name="+a+"]");if(u.length&&u.forEach((function(t){r.removeChild(t)})),0===o.length)null==i||i.removeAttribute("filter");else{var s=o.map((function(n,i){var o=n.name,u=n.params,s=R("filter",t);return s.setAttribute("filterUnits","userSpaceOnUse"),"blur"===o?function(t,e,r){var n=R("feGaussianBlur",t);n.setAttribute("in","SourceGraphic"),n.setAttribute("stdDeviation",""+r[0].value),e.appendChild(n)}(t,s,u):"brightness"===o?function(t,e,r){var n=at(r[0]);ut(t,e,{type:"linear",slope:n,intercept:0})}(t,s,u):"drop-shadow"===o?function(t,e,r){var n=r[0].value,i=r[1].value,o=r[2].value,a=r[3].formatted,u=R("feGaussianBlur",t);u.setAttribute("in","SourceAlpha"),u.setAttribute("stdDeviation",""+o),e.appendChild(u);var s=R("feOffset",t);s.setAttribute("dx",""+n),s.setAttribute("dy",""+i),s.setAttribute("result","offsetblur"),e.appendChild(s);var c=R("feFlood",t);c.setAttribute("flood-color",a),e.appendChild(c);var l=R("feComposite",t);l.setAttribute("in2","offsetblur"),l.setAttribute("operator","in"),e.appendChild(l);var h=R("feMerge",t);e.appendChild(h);var f=R("feMergeNode",t),d=R("feMergeNode",t);d.setAttribute("in","SourceGraphic"),h.appendChild(f),h.appendChild(d)}(t,s,u):"contrast"===o?function(t,e,r){var n=at(r[0]);ut(t,e,{type:"linear",slope:n,intercept:-.5*n+.5})}(t,s,u):"grayscale"===o?function(t,e,r){var n=at(r[0]);st(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,s,u):"sepia"===o?function(t,e,r){var n=at(r[0]);st(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,s,u):"saturate"===o?function(t,e,r){var n=at(r[0]),i=R("feColorMatrix",t);i.setAttribute("type","saturate"),i.setAttribute("values",""+n),e.appendChild(i)}(t,s,u):"hue-rotate"===o?function(t,r,n){var i=R("feColorMatrix",t);i.setAttribute("type","hueRotate"),i.setAttribute("values",""+n[0].to(e.UnitType.kDegrees).value),r.appendChild(i)}(t,s,u):"invert"===o&&function(t,e,r){var n=at(r[0]);ut(t,e,{type:"table",tableValues:n+" "+(1-n)})}(t,s,u),s.id=a+"-"+i,s.setAttribute("name",a),r.appendChild(s),s.id}));setTimeout((function(){null==i||i.setAttribute("filter",s.map((function(t){return"url(#"+t+")"})).join(" "))}))}}function at(t){return t.unit===e.UnitType.kPercentage?t.value/100:t.value}function ut(t,e,r){var n=r.type,i=r.slope,o=r.intercept,a=r.tableValues,u=R("feComponentTransfer",t);[R("feFuncR",t),R("feFuncG",t),R("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 st(t,e,r){var n=R("feColorMatrix",t);n.setAttribute("type","matrix"),n.setAttribute("values",r.join(" ")),e.appendChild(n)}var ct={},lt=0;function ht(t,r,n,i,o,a,u){if(!o)return"";if(!(o instanceof e.CSSRGB)){if(e.isPattern(o)){var s=function(t,r,n,i,o){var a=ft(i);if(!r.querySelector("#"+a)){var u=i.image,s=i.repetition,c="";if(g(u)?c=u:e.isBrowser&&(u instanceof HTMLImageElement?c=u.src:u instanceof HTMLCanvasElement&&(c=u.toDataURL())),c){var l=R("pattern",t);l.setAttribute("patternUnits","userSpaceOnUse");var h,f=R("image",t);l.appendChild(f),l.id=a,r.appendChild(l),f.setAttribute("href",c),o?h=o(c):e.isBrowser&&(h=new window.Image),c.match(/^data:/i)||(h.crossOrigin="Anonymous",f.setAttribute("crossorigin","anonymous")),h.src=c;var d=function(){l.setAttribute("x","0"),l.setAttribute("y","0");var t=n.getGeometryBounds().halfExtents,e=h.width,r=h.height;"repeat-x"===s?r=2*t[1]:"repeat-y"===s?e=2*t[0]:"no-repeat"===s&&(e=2*t[0],r=2*t[1]),l.setAttribute("width",""+e),l.setAttribute("height",""+r),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("width",""+h.width),f.setAttribute("height",""+h.height)};h.complete?d():(h.onload=d,h.src=h.src)}}return a}(t,r,n,o,u);return i.style[a]="url(#"+s+")",s}if(1===o.length){var c=dt(t,n,r,i,o[0]);return null==i||i.setAttribute(a,"url(#"+c+")"),c}var l=function(t,e,r,n,i){var o=it+e.entity+"-gradient",a=r.querySelector("#"+o);a||((a=R("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,s){var c=dt(t,e,r,n,i),l=c+"_rect",h=R("rect",t);h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("width","100%"),h.setAttribute("height","100%"),h.setAttribute("fill","url(#"+c+")"),h.id=l,r.appendChild(h);var f=R("feImage",t);if(f.setAttribute("href","#"+l),f.setAttribute("result",o+"-"+s),a.appendChild(f),s>0){var d=R("feBlend",t);d.setAttribute("in",1===s?o+"-"+(s-1):o+"-blended-"+(u-1)),d.setAttribute("in2",o+"-"+s),d.setAttribute("result",o+"-blended-"+u++),d.setAttribute("mode","multiply"),a.appendChild(d)}}));var s=R("feComposite",t);return s.setAttribute("in",o+"-blended-"+u),s.setAttribute("in2","SourceGraphic"),s.setAttribute("operator","in"),a.appendChild(s),o}(t,n,r,i,o);return null==i||i.setAttribute("filter","url(#"+l+")"),null==i||i.setAttribute("fill","black"),l}return"currentColor"===n.style[a]?null==i||i.setAttribute(a,"currentColor"):null==i||i.setAttribute(a,o.isNone?"none":o.toString()),""}function ft(t,r){void 0===r&&(r={});var n="";if(t instanceof e.CSSGradientValue){var i=t.type;if(i===e.GradientType.LinearGradient||i===e.GradientType.RadialGradient){var o=M({},t.value,r),a=o.width,u=o.height,s=o.steps,c=o.angle,l=o.cx,h=o.cy,f=o.size;n="gradient-"+o.type+"-"+((null==c?void 0:c.toString())||0)+"-"+((null==l?void 0:l.toString())||0)+"-"+((null==h?void 0:h.toString())||0)+"-"+((null==f?void 0:f.toString())||0)+"-"+a+"-"+u+"-"+s.map((function(t){return""+t.offset+t.color})).join("-")}}else e.isPattern(t)&&(n=g(t.image)?"pattern-"+t.image+"-"+t.repetition:"pattern-"+lt);return n&&(ct[n]||(ct[n]="g-pattern-"+lt++)),ct[n]}function dt(t,r,n,i,o){var a=r.getGeometryBounds(),u=a&&2*a.halfExtents[0]||0,s=a&&2*a.halfExtents[1]||0,c=ft(o,{width:u,height:s}),l=n.querySelector("#"+c);if(!l){(l=R(o.type===e.GradientType.LinearGradient?"linearGradient":"radialGradient",t)).setAttribute("gradientUnits","userSpaceOnUse");var h="";o.value.steps.sort((function(t,e){return t.offset.value-e.offset.value})).forEach((function(t){h+='<stop offset="'+t.offset.value/100+'" stop-color="'+t.color+'"></stop>'})),l.innerHTML=h,l.id=c,n.appendChild(l)}if(o.type===e.GradientType.LinearGradient){var f=e.computeLinearGradient(u,s,o.value.angle),d=f.y1,p=f.x2,v=f.y2;l.setAttribute("x1",""+f.x1),l.setAttribute("y1",""+d),l.setAttribute("x2",""+p),l.setAttribute("y2",""+v)}else{var m=o.value,g=e.computeRadialGradient(u,s,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 c}var pt=/url\(#(.*)\)/,vt=function(){function t(t){this.context=void 0,this.$def=void 0,this.gradientCache={},this.context=t}var e=t.prototype;return e.getDefElement=function(){return this.$def},e.init=function(){var t=this.context.config.document,e=this.context.contextService.getContext();this.$def=R("defs",t),e.appendChild(this.$def)},e.clear=function(t){var e=this;Object.keys(this.gradientCache).forEach((function(r){e.clearUnusedDefElement(e.gradientCache,r,t)}))},e.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)}},e.createOrUpdateGradientAndPattern=function(t,e,r,n){var i=this.context.config,o=i.document,a=i.createImage;if(e){var u,s=null===(u=e.getAttribute(n))||void 0===u?void 0:u.match(pt);s&&s.length>1&&this.clearUnusedDefElement(this.gradientCache,s[1],t.entity);var c=ht(o||document,this.$def,t,e,r,n,a);this.gradientCache[c]||(this.gradientCache[c]=new Set),this.gradientCache[c].add(t.entity)}},e.createOrUpdateShadow=function(t,e,r){!function(t,e,r,n,i){var o=r.parsedStyle,a=o.shadowType,u=o.shadowBlur,s=o.shadowColor,c=o.shadowOffsetX,l=o.shadowOffsetY,h=!v(s)&&u>0,f="g-filter-dropshadow-"+r.entity,d=e.querySelector("#"+f);if(d&&(d.getAttribute("data-type")===a&&h||(d.remove(),d=null)),h){if(null==n||n.setAttribute("filter","url(#"+f+")"),!d){if((d=R("filter",t)).setAttribute("data-type",a),"outer"===a){var p=R("feDropShadow",t);p.setAttribute("dx",""+(c||0)/2),p.setAttribute("dy",""+(l||0)/2),p.setAttribute("stdDeviation",""+(u||0)/4),p.setAttribute("flood-color",s.toString()),d.appendChild(p)}else if("inner"===a){var m=R("feComponentTransfer",t);m.setAttribute("in","SourceAlpha");var g=R("feFuncA",t);g.setAttribute("type","table"),g.setAttribute("tableValues","1 0"),m.appendChild(g),d.appendChild(m);var y=R("feGaussianBlur",t);y.setAttribute("stdDeviation",""+(u||0)/4),d.appendChild(y);var b=R("feOffset",t);b.setAttribute("dx",""+(c||0)/2),b.setAttribute("dy",""+(l||0)/2),b.setAttribute("result","offsetblur"),d.appendChild(b);var w=R("feFlood",t);w.setAttribute("flood-color",s.toString()),w.setAttribute("result","color"),d.appendChild(w);var E=R("feComposite",t);E.setAttribute("in2","offsetblur"),E.setAttribute("operator","in"),d.appendChild(E);var x=R("feComposite",t);x.setAttribute("in2","SourceAlpha"),x.setAttribute("operator","in"),d.appendChild(x);var A=R("feMerge",t);d.appendChild(A);var S=R("feMergeNode",t);S.setAttribute("in","SourceGraphic");var L=R("feMergeNode",t);A.appendChild(S),A.appendChild(L)}return d.id=f,d.setAttribute("filterUnits","userSpaceOnUse"),void e.appendChild(d)}if("inner"===a){var O=d.children[1],C=d.children[2];"shadowColor"===i?d.children[3].setAttribute("flood-color",s.toString()):"shadowBlur"===i?O.setAttribute("stdDeviation",""+(u||0)/4):"shadowOffsetX"===i?C.setAttribute("dx",""+(c||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",s.toString()):"shadowBlur"===i?k.setAttribute("stdDeviation",""+(u||0)/4):"shadowOffsetX"===i?k.setAttribute("dx",""+(c||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)},e.createOrUpdateFilter=function(t,e,r){ot(this.context.config.document||document,this.$def,t,e,r)},t}(),mt=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}r=t,(e=n).prototype=Object.create(r.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 vt(this.context),i=new nt(this.context);this.context.defaultElementLifeCycleContribution=i,this.context.SVGElementLifeCycleContribution=i;var o={outputSVGElementId:!!v(e)||!!e,outputSVGElementName:!!v(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),gt=Object.freeze({__proto__:null,CLIP_PATH_PREFIX:X,DEFAULT_VALUE_MAP:H,DefaultElementLifeCycleContribution:nt,ElementSVG:N,G_SVG_PREFIX:Y,Plugin:mt,SHAPE2TAGS:et,SHAPE_UPDATE_DEPS:rt,SVGRendererPlugin:q,SVG_ATTR_MAP:F,TEXT_PATH_PREFIX:z,createSVGElement:R,updateImageElementAttribute:j,updateLineElementAttribute:$,updatePathElementAttribute:D,updatePolylineElementAttribute:I,updateRectElementAttribute:V,updateTextElementAttribute:tt});function yt(){yt=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 c(t,e,r,i){var o=Object.create((e&&e.prototype instanceof f?e:f).prototype),a=new L(i||[]);return n(o,"_invoke",{value:E(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=c;var h={};function f(){}function d(){}function p(){}var v={};s(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=f.prototype=Object.create(v);function b(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 s=l(t[n],t,o);if("throw"!==s.type){var c=s.arg,h=c.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,u)}))}u(s.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 E(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new 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===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 s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var i=n.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 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=s(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,s(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(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(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),s(y,u,"Generator"),s(y,o,(function(){return this})),s(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"),s=r.call(o,"finallyLoc");if(u&&s){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(!s)throw new 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),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 i=n.arg;S(r)}return i}}throw new 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),h}},t}function bt(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,i)}function wt(t,e){return wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wt(t,e)}function Et(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);e>r;r++)n[r]=t[r];return n}function xt(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 Et(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)?Et(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 At=function(){function t(){}var r=t.prototype;return r.apply=function(e){var r=this,n=e.config.document,i=e.renderingService;i.hooks.pick.tapPromise(t.tag,function(){var t,e=(t=yt().mark((function t(e){return yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.pick(n,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){bt(o,n,i,a,u,"next",t)}function u(t){bt(o,n,i,a,u,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}()),i.hooks.pickSync.tap(t.tag,(function(t){return r.pick(n,t)}))},r.pick=function(t,r){var n=r.topmost,i=r.position,o=i.clientX,a=i.clientY;try{for(var u,s=[],c=xt((t||document).elementsFromPoint(o,a));!(u=c()).done;){var l=u.value,h=l&&l.getAttribute("id");if(h&&h.startsWith(Y)){var f=h.lastIndexOf("-"),d=e.runtime.displayObjectPool.getByEntity(h.substring(f+1));if(d&&d.isInteractive()&&(s.push(d),n))return r.picked=s,r}}r.picked=s}catch(t){r.picked=[]}return r},t}();At.tag="SVGPicker";var St=function(t){var e,r;function n(){for(var e,r=arguments.length,n=new 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}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,wt(e,r);var i=n.prototype;return i.init=function(){this.addRenderingPlugin(new At)},i.destroy=function(){this.removeAllRenderingPlugins()},n}(e.AbstractRendererPlugin),Lt=Object.freeze({__proto__:null,Plugin:St}),Ot=function(){function t(t){this.$container=void 0,this.$namespace=void 0,this.dpr=void 0,this.canvasConfig=void 0,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,s;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=(n=this.canvasConfig).document,a=n.devicePixelRatio,this.$container=g(i=n.container)?(o||document).getElementById(i):i,this.$container&&(this.$container.style.position||(this.$container.style.position="relative"),(u=R("svg",o)).setAttribute("width",""+this.canvasConfig.width),u.setAttribute("height",""+this.canvasConfig.height),this.$container.appendChild(u),this.$namespace=u),s=1>(s=a||e.isBrowser&&window.devicePixelRatio||1)?1:Math.ceil(s),this.dpr=s;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.toDataURL=function(){var t=i(r().mark((function t(e){var n,i,o;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.$namespace.cloneNode(!0),i=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),(o=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",i)).replaceChild(n,o.documentElement),t.abrupt("return","data:image/svg+xml;charset=utf8,"+encodeURIComponent((new XMLSerializer).serializeToString(o)));case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),t}(),Ct=function(t){function e(){for(var e,r=arguments.length,n=new 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=Ot},r.destroy=function(){delete this.context.ContextService},e}(e.AbstractRendererPlugin),kt=function(t){function e(e){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).registerPlugin(new Ct),r.registerPlugin(new mt({outputSVGElementId:e.outputSVGElementId})),r.registerPlugin(new f),r.registerPlugin(new St),r}return o(e,t),e}(e.AbstractRenderer);t.DomInteraction=d,t.Renderer=kt,t.SVGPicker=Lt,t.SVGRenderer=gt,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,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",s=o.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 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 h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function d(){}function p(){}function v(){}var m={};c(m,a,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(C([])));g&&g!==e&&n.call(g,a)&&(m=g);var b=v.prototype=d.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,o,a,u){var s=h(t[i],t,o);if("throw"!==s.type){var c=s.arg,l=c.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){c.value=t,a(c)}),(function(t){return r("throw",t,a,u)}))}u(s.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===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 s=h(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function A(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var i=n.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,f):i:(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[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=c(v,s,"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,c(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(E.prototype),c(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new E(l(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),c(b,s,"Generator"),c(b,a,(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)&&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"),s=n.call(o,"finallyLoc");if(u&&s){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(!s)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,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 n(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).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,s,"next",t)}function s(t){n(a,i,o,u,s,"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(){u=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",s=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 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 h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function d(){}function p(){}function v(){}var m={};c(m,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(C([])));g&&g!==e&&r.call(g,o)&&(m=g);var b=v.prototype=d.prototype=Object.create(m);function w(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 s=h(t[n],t,o);if("throw"!==s.type){var c=s.arg,l=c.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){c.value=t,a(c)}),(function(t){return i("throw",t,a,u)}))}u(s.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 s=h(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function A(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var i=n.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,f):i:(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 p.prototype=v,n(b,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:p,configurable:!0}),p.displayName=c(v,s,"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,c(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(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(l(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),c(b,s,"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"),s=r.call(o,"finallyLoc");if(u&&s){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(!s)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 s(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,i)}function c(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 l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}var h=function(){function t(){this.context=void 0}return t.prototype.apply=function(e){var r=this,n=e.renderingService,i=e.renderingContext;this.context=e;var o=i.root.ownerDocument.defaultView,a=function(t){n.hooks.pointerMove.call(t)},s=function(t){n.hooks.pointerUp.call(t)},l=function(t){n.hooks.pointerDown.call(t)},h=function(t){n.hooks.pointerOver.call(t)},f=function(t){n.hooks.pointerOut.call(t)},d=function(t){n.hooks.pointerCancel.call(t)},p=function(t){n.hooks.pointerWheel.call(t)},v=function(t){globalThis.document.addEventListener("pointermove",a,!0),t.addEventListener("pointerdown",l,!0),t.addEventListener("pointerleave",f,!0),t.addEventListener("pointerover",h,!0),globalThis.addEventListener("pointerup",s,!0)},m=function(t){t.addEventListener("touchstart",l,!0),t.addEventListener("touchend",s,!0),t.addEventListener("touchmove",a,!0),t.addEventListener("touchcancel",d,!0)},y=function(t){globalThis.document.addEventListener("mousemove",a,!0),t.addEventListener("mousedown",l,!0),t.addEventListener("mouseout",f,!0),t.addEventListener("mouseover",h,!0),globalThis.addEventListener("mouseup",s,!0)};n.hooks.init.tapPromise(t.tag,c(u().mark((function t(){var e;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=r.context.contextService.getDomElement(),globalThis.navigator.msPointerEnabled?(e.style.msContentZooming="none",e.style.msTouchAction="none"):o.supportsPointerEvents&&(e.style.touchAction="none"),o.supportsPointerEvents?v(e):y(e),o.supportsTouchEvents&&m(e),e.addEventListener("wheel",p,{passive:!0,capture:!0});case 5:case"end":return t.stop()}}),t)})))),n.hooks.destroy.tap(t.tag,(function(){var t=r.context.contextService.getDomElement();globalThis.navigator.msPointerEnabled?(t.style.msContentZooming="",t.style.msTouchAction=""):o.supportsPointerEvents&&(t.style.touchAction=""),o.supportsPointerEvents?function(t){globalThis.document.removeEventListener("pointermove",a,!0),t.removeEventListener("pointerdown",l,!0),t.removeEventListener("pointerleave",f,!0),t.removeEventListener("pointerover",h,!0),globalThis.removeEventListener("pointerup",s,!0)}(t):function(t){globalThis.document.removeEventListener("mousemove",a,!0),t.removeEventListener("mousedown",l,!0),t.removeEventListener("mouseout",f,!0),t.removeEventListener("mouseover",h,!0),globalThis.removeEventListener("mouseup",s,!0)}(t),o.supportsTouchEvents&&function(t){t.removeEventListener("touchstart",l,!0),t.removeEventListener("touchend",s,!0),t.removeEventListener("touchmove",a,!0),t.removeEventListener("touchcancel",d,!0)}(t),t.removeEventListener("wheel",p,!0)}))},t}();h.tag="DOMInteraction";var f=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,l(e,r);var i=n.prototype;return i.init=function(){this.addRenderingPlugin(new h)},i.destroy=function(){this.removeAllRenderingPlugins()},n}(e.AbstractRendererPlugin),d=Object.freeze({__proto__:null,Plugin:f}),p="undefined"!=typeof Float32Array?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var v=function(t){return null==t},m={}.toString,y=function(t){return e="String",m.call(t)==="[object "+e+"]";var e},g=function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;o>i;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},b=function(t,e,r){this.name=t,this.version=e,this.os=r,this.type="browser"},w=function(t){this.version=t,this.type="node",this.name="node",this.os=process.platform},E=function(t,e,r,n){this.name=t,this.version=e,this.os=r,this.bot=n,this.type="bot-device"},x=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},A=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},S=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,L=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],O=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function C(t){return t?k(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new A:"undefined"!=typeof navigator?k(navigator.userAgent):"undefined"!=typeof process&&process.version?new w(process.version.slice(1)):null}function k(t){var e=function(t){return""!==t&&L.reduce((function(e,r){var n=r[0];if(e)return e;var i=r[1].exec(t);return!!i&&[n,i]}),!1)}(t);if(!e)return null;var r=e[0],n=e[1];if("searchbot"===r)return new x;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?3>i.length&&(i=g(g([],i,!0),function(t){for(var e=[],r=0;t>r;r++)e.push("0");return e}(3-i.length),!0)):i=[];var o=i.join("."),a=function(t){for(var e=0,r=O.length;r>e;e++){var n=O[e],i=n[0];if(n[1].exec(t))return i}return null}(t),u=S.exec(t);return u&&u[1]?new E(r,o,a,u[1]):new b(r,o,a)}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 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 c(t,e,r,i){var o=Object.create((e&&e.prototype instanceof f?e:f).prototype),a=new L(i||[]);return n(o,"_invoke",{value:E(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=c;var h={};function f(){}function d(){}function p(){}var v={};s(v,o,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(O([])));y&&y!==e&&r.call(y,o)&&(v=y);var g=p.prototype=f.prototype=Object.create(v);function b(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 s=l(t[n],t,o);if("throw"!==s.type){var c=s.arg,h=c.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,u)}))}u(s.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 E(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===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 s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var i=n.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 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(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:d,configurable:!0}),d.displayName=s(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,s(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(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(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,u,"Generator"),s(g,o,(function(){return this})),s(g,"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"),s=r.call(o,"finallyLoc");if(u&&s){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(!s)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),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 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),h}},t}function T(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).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 N=function(){this.$el=void 0,this.$groupEl=void 0,this.$hitTestingEl=void 0};function j(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"),y(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&&y(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 $(t,r){var n=r.x1,i=r.y1,o=r.x2,a=r.y2,u=r.defX,s=void 0===u?0:u,c=r.defY,l=void 0===c?0:c,h=r.markerStart,f=r.markerEnd,d=r.markerStartOffset,p=r.markerEndOffset,v=0,m=0,y=0,g=0,b=0;h&&h instanceof e.DisplayObject&&d&&(v=Math.cos(b=Math.atan2(a-i,o-n))*(d||0),m=Math.sin(b)*(d||0)),f&&f instanceof e.DisplayObject&&p&&(y=Math.cos(b=Math.atan2(i-a,n-o))*(p||0),g=Math.sin(b)*(p||0)),t.setAttribute("x1",""+(n-s+v)),t.setAttribute("y1",""+(i-l+m)),t.setAttribute("x2",""+(o-s+y)),t.setAttribute("y2",""+(a-l+g))}function D(t,r){var n=r.path,i=r.defX,o=void 0===i?0:i,a=r.defY,u=void 0===a?0:a,s=r.markerStart,c=r.markerEnd,l=r.markerStartOffset,h=r.markerEndOffset,f=0,d=0,p=0,v=0,m=0;if(s&&s instanceof e.DisplayObject&&l){var y=s.parentNode.getStartTangent(),g=y[0],b=y[1];f=Math.cos(m=Math.atan2(g[1]-b[1],g[0]-b[0]))*(l||0),d=Math.sin(m)*(l||0)}if(c&&c instanceof e.DisplayObject&&h){var w=c.parentNode.getEndTangent(),E=w[0],x=w[1];p=Math.cos(m=Math.atan2(E[1]-x[1],E[0]-x[0]))*(h||0),v=Math.sin(m)*(h||0)}t.setAttribute("d",e.translatePathToString(n.absolutePath,o,u,f,d,p,v))}function I(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,s=r.markerStart,c=r.markerStartOffset,l=r.markerEnd,h=r.markerEndOffset,f=n.length;if(n&&f>=2){var d=0,p=0,v=0,m=0,y=0;s&&s instanceof e.DisplayObject&&c&&(d=Math.cos(y=Math.atan2(n[1][1]-n[0][1],n[1][0]-n[0][0]))*(c||0),p=Math.sin(y)*(c||0)),l&&l instanceof e.DisplayObject&&h&&(v=Math.cos(y=Math.atan2(n[f-2][1]-n[f-1][1],n[f-2][0]-n[f-1][0]))*(h||0),m=Math.sin(y)*(h||0)),t.setAttribute("points",n.map((function(t,e){var r=0,n=0;return 0===e?(r=d,n=p):e===f-1&&(r=v,n=m),t[0]-o+r+","+(t[1]-u+n)})).join(" "))}}function V(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],s=a[1],c=a[2],l=a[3],h=n>0?1:-1,f=i>0?1:-1,d=h+f!==0?1:0;o=[["M "+h*u+",0"],["l "+(n-h*(u+s))+",0"],["a "+s+","+s+",0,0,"+d+","+h*s+","+f*s],["l 0,"+(i-f*(s+c))],["a "+c+","+c+",0,0,"+d+","+-h*c+","+f*c],["l "+(h*(c+l)-n)+",0"],["a "+l+","+l+",0,0,"+d+","+-h*l+","+-f*l],["l 0,"+(f*(l+u)-i)],["a "+u+","+u+",0,0,"+d+","+h*u+","+-f*u],["z"]].join(" ")}else o="M 0,0 l "+n+",0 l 0,"+i+" l"+-n+" 0 z";t.setAttribute("d",o)}}function R(t,e){return(e||document).createElementNS("http://www.w3.org/2000/svg",t)}function U(t){return t.toFixed(6).replace(".000000","")}function W(t){return t.replace(/[&|<|>|"|']/g,(function(t){return"&"===t?"&":"<"===t?"<":">"===t?">":'"'===t?""":"'"}))}N.tag="c-svg-element";var F={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"}},H={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.$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;var a=o.root.ownerDocument.defaultView,u=this.context.config.document,s=function(t){n.createSVGDom(u,t.target,n.$camera)},c=function(t){var e=t.target;n.defElementManager.clear(e.entity),n.clipPathUseMap.delete(e),n.removeSVGDom(e)},l=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)}},h=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,s=a.stroke;!u||u instanceof e.CSSRGB||n.defElementManager.createOrUpdateGradientAndPattern(i,o,u,"fill"),!s||s instanceof e.CSSRGB||n.defElementManager.createOrUpdateGradientAndPattern(i,o,s,"stroke")};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=R("g",o),n.$camera.id="g-svg-camera",n.applyTransform(n.$camera,n.context.camera.getOrthoMatrix()),u.appendChild(n.$camera),a.addEventListener(e.ElementEvent.MOUNTED,s),a.addEventListener(e.ElementEvent.UNMOUNTED,c),a.addEventListener(e.ElementEvent.ATTR_MODIFIED,l),a.addEventListener(e.ElementEvent.BOUNDS_CHANGED,h);case 13:case"end":return t.stop()}}),t)})))),i.hooks.destroy.tap(t.tag,(function(){a.removeEventListener(e.ElementEvent.MOUNTED,s),a.removeEventListener(e.ElementEvent.UNMOUNTED,c),a.removeEventListener(e.ElementEvent.ATTR_MODIFIED,l),a.removeEventListener(e.ElementEvent.BOUNDS_CHANGED,h)})),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 s=n.clipPathUseMap.get(t);s&&s.length&&s.forEach((function(e){n.applyTransform(e,t.getWorldTransform())})),t.renderable.dirty=!1}var c=n.dirtyAttributes.get(t);c&&(c.forEach((function(e){if("zIndex"===e){var r,a,s=t.parentNode,c=null===(r=t.parentNode)||void 0===r||null===(a=r.elementSVG)||void 0===a?void 0:a.$groupEl,l=((null==s?void 0:s.children)||[]).slice();c&&n.reorderChildren(u,c,l)}else"increasedLineWidthForHitTesting"===e&&n.createOrUpdateHitArea(t,i,o);n.updateAttribute(t,[e])})),n.dirtyAttributes.delete(t))})),n.renderQueue=[]}))},r.getId=function(t){return"g-svg-"+t.nodeName+"-"+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,s=o.$hitTestingEl,c=t.parsedStyle,l=t.computedStyle;r.some((function(e){return n.context.SVGElementLifeCycleContribution.shouldUpdateElementAttribute(t,e)}))&&a&&[a,s].forEach((function(r){r&&(n.context.SVGElementLifeCycleContribution.updateElementAttribute(t,r),t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t))})),r.forEach((function(r){var o,h,f=F[r],d=l[r],p=d&&""+d,v=(null===(o=B[r])||void 0===o?void 0:o[p])||p,m=c[r],y=!!(null===(h=e.propertyMetadataCache[r])||void 0===h?void 0:h.inh);f&&(t.nodeName===e.Shape.HTML&&("lineWidth"===r?a.style["border-width"]=(m||0)+"px":"lineDash"===r&&(a.style["border-style"]="dashed")),"fill"===r?t.nodeName===e.Shape.HTML?a.style.background=""+m:n.defElementManager.createOrUpdateGradientAndPattern(t,a,m,f):"stroke"===r?t.nodeName===e.Shape.HTML?(a.style["border-color"]=""+m,a.style["border-style"]="solid"):n.defElementManager.createOrUpdateGradientAndPattern(t,a,m,f):y&&f?"unset"!==p&&p!==H[r]?null==u||u.setAttribute(f,v):null==u||u.removeAttribute(f):"clipPath"===r?n.createOrUpdateClipOrTextPath(i,m,t):"textPath"===r?n.createOrUpdateClipOrTextPath(i,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(i,a,m):"anchor"===r?t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t):d&&[a,s].forEach((function(t){t&&f&&("unset"!==p&&p!==H[r]?t.setAttribute(f,v):t.removeAttribute(f))})))}))},r.createSVGDom=function(t,r,n,i){void 0===i&&(i=!1),r.elementSVG=new N;var o=r.elementSVG,a=this.context.SVGElementLifeCycleContribution.createElement(r);if(a){var u,s;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?s=a:(s=R("g",t)).appendChild(a),o.$el=a,o.$groupEl=s,this.applyAttributes(r),this.createOrUpdateHitArea(r,a,s);var c=r.parentNode&&(null===(u=r.parentNode.elementSVG)||void 0===u?void 0:u.$groupEl)||n;c&&(c.appendChild(s),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="g-svg-"+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,o=r.elementSVG.$groupEl,a=n?"g":"clipPath",u=n?"text-path":"clip-path";if(e){var s=(n?z:X)+e.entity+"-"+r.entity,c=this.defElementManager.getDefElement();if(!c.querySelector("#"+s)){var l;if(n)this.createSVGDom(t,e,null,!0),l=e.elementSVG.$el;else{if(!e.isConnected)c.querySelector("#"+this.getId(e))||this.createSVGDom(t,e,c,!0);l=R(a,t);var h=R("use",t);h.setAttribute("href","#"+e.elementSVG.$el.id),l.appendChild(h);var f=this.clipPathUseMap.get(e);f||(this.clipPathUseMap.set(e,[]),f=this.clipPathUseMap.get(e)),f.push(h),this.applyTransform(h,e.getWorldTransform());var d=function(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],u=e[5],s=e[6],c=e[7],l=e[8],h=e[9],f=e[10],d=e[11],p=e[12],v=e[13],m=e[14],y=e[15],g=r*u-n*a,b=r*s-i*a,w=r*c-o*a,E=n*s-i*u,x=n*c-o*u,A=i*c-o*s,S=l*v-h*p,L=l*m-f*p,O=l*y-d*p,C=h*m-f*v,k=h*y-d*v,P=f*y-d*m,T=g*P-b*k+w*C+E*O-x*L+A*S;return T?(t[0]=(u*P-s*k+c*C)*(T=1/T),t[1]=(i*k-n*P-o*C)*T,t[2]=(v*A-m*x+y*E)*T,t[3]=(f*x-h*A-d*E)*T,t[4]=(s*O-a*P-c*L)*T,t[5]=(r*P-i*O+o*L)*T,t[6]=(m*w-p*A-y*b)*T,t[7]=(l*A-f*w+d*b)*T,t[8]=(a*k-u*O+c*S)*T,t[9]=(n*O-r*k-o*S)*T,t[10]=(p*x-v*w+y*g)*T,t[11]=(h*w-l*x-d*g)*T,t[12]=(u*L-a*C-s*S)*T,t[13]=(r*C-n*L+i*S)*T,t[14]=(v*b-p*E-m*g)*T,t[15]=(l*E-h*b+f*g)*T,t):null}((i=new p(16),p!=Float32Array&&(i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[11]=0,i[12]=0,i[13]=0,i[14]=0),i[0]=1,i[5]=1,i[10]=1,i[15]=1,i),r.getWorldTransform());this.applyTransform(l,d)}l.id=s,c.appendChild(l)}this.applyAttributes(e),n||o.setAttribute(u,"url(#"+s+")")}else n||o.removeAttribute(u)},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,K,J={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"},Z={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"};function tt(t,e){var r=e.textBaseline,n=e.lineWidth,i=e.metrics,o=e.dx,a=e.dy,u=e.textPath,s=e.textPathSide,c=void 0===s?"left":s,l=e.textPathStartOffset,h=void 0===l?0:l,f=e.textDecorationLine,d=void 0===f?"":f,p=e.textDecorationColor,v=void 0===p?"":p,m=e.textDecorationStyle,y=void 0===m?"":m,g=C();g&&"firefox"===g.name?t.setAttribute("dominant-baseline",Z[r]||"alphabetic"):(t.setAttribute("dominant-baseline",Z[r]),t.setAttribute("alignment-baseline",J[r])),t.setAttribute("paint-order","stroke");var b=i.lines,w=i.lineHeight,E=i.height,x=b.length,A="";if(0===o&&0===a||(A+="transform:translate("+o+"px, "+a+"px);"),d&&"none"!==d&&(A+="text-decoration:"+d+" "+y+" "+v+";"),A&&t.setAttribute("style",A),1===x){var S=W(b[0]);if(t.setAttribute("dx",""+n/2),u){t.innerHTML="";var L=R("textPath",t.ownerDocument);L.setAttribute("href","#"+(z+u.entity)),"left"!==c&&L.setAttribute("side",c),0!==h&&L.setAttribute("startOffset",""+h),L.innerHTML=S,t.appendChild(L)}else t.innerHTML=S}else t.innerHTML=b.map((function(t,e){var i=0;return 0===e?"middle"===r?i=w/2-E/2:"top"===r||"hanging"===r?i=0:"bottom"!==r&&"alphabetic"!==r&&"ideographic"!==r||(i=-w*(x-1)):i=w,'<tspan x="0" dx="'+n/2+'" dy="'+i+'">'+W(t)+"</tspan>"})).join("")}var et=((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),rt=((K={})[e.Shape.CIRCLE]=["r"],K[e.Shape.ELLIPSE]=["rx","ry"],K[e.Shape.RECT]=["width","height","radius"],K[e.Shape.IMAGE]=["img","width","height"],K[e.Shape.LINE]=["x1","y1","x2","y2","markerStart","markerEnd","markerStartOffset","markerEndOffset"],K[e.Shape.POLYLINE]=["points","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"],K[e.Shape.POLYGON]=["points","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"],K[e.Shape.PATH]=["path","markerStart","markerEnd","markerMid","markerStartOffset","markerEndOffset"],K[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"],K),nt=function(){function t(t){this.context=void 0,this.context=t}var r=t.prototype;return r.createElement=function(t){return R(et[t.nodeName]||"g",this.context.config.document||document)},r.destroyElement=function(t,e){},r.shouldUpdateElementAttribute=function(t,e){return(rt[t.nodeName]||[]).indexOf(e)>-1},r.updateElementAttribute=function(t){var r=t.elementSVG.$el,n=t.parsedStyle;switch(t.nodeName){case e.Shape.IMAGE:j(r,n);break;case e.Shape.RECT:V(r,n);break;case e.Shape.LINE:$(r,n);break;case e.Shape.POLYGON:case e.Shape.POLYLINE:I(r,n);break;case e.Shape.PATH:D(r,n);break;case e.Shape.TEXT:tt(r,n)}},t}(),it="g-filter-";function ot(t,r,n,i,o){var a=it+n.entity,u=r.querySelectorAll("[name="+a+"]");if(u.length&&u.forEach((function(t){r.removeChild(t)})),0===o.length)null==i||i.removeAttribute("filter");else{var s=o.map((function(n,i){var o=n.name,u=n.params,s=R("filter",t);return s.setAttribute("filterUnits","userSpaceOnUse"),"blur"===o?function(t,e,r){var n=R("feGaussianBlur",t);n.setAttribute("in","SourceGraphic"),n.setAttribute("stdDeviation",""+r[0].value),e.appendChild(n)}(t,s,u):"brightness"===o?function(t,e,r){var n=at(r[0]);ut(t,e,{type:"linear",slope:n,intercept:0})}(t,s,u):"drop-shadow"===o?function(t,e,r){var n=r[0].value,i=r[1].value,o=r[2].value,a=r[3].formatted,u=R("feGaussianBlur",t);u.setAttribute("in","SourceAlpha"),u.setAttribute("stdDeviation",""+o),e.appendChild(u);var s=R("feOffset",t);s.setAttribute("dx",""+n),s.setAttribute("dy",""+i),s.setAttribute("result","offsetblur"),e.appendChild(s);var c=R("feFlood",t);c.setAttribute("flood-color",a),e.appendChild(c);var l=R("feComposite",t);l.setAttribute("in2","offsetblur"),l.setAttribute("operator","in"),e.appendChild(l);var h=R("feMerge",t);e.appendChild(h);var f=R("feMergeNode",t),d=R("feMergeNode",t);d.setAttribute("in","SourceGraphic"),h.appendChild(f),h.appendChild(d)}(t,s,u):"contrast"===o?function(t,e,r){var n=at(r[0]);ut(t,e,{type:"linear",slope:n,intercept:-.5*n+.5})}(t,s,u):"grayscale"===o?function(t,e,r){var n=at(r[0]);st(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,s,u):"sepia"===o?function(t,e,r){var n=at(r[0]);st(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,s,u):"saturate"===o?function(t,e,r){var n=at(r[0]),i=R("feColorMatrix",t);i.setAttribute("type","saturate"),i.setAttribute("values",""+n),e.appendChild(i)}(t,s,u):"hue-rotate"===o?function(t,r,n){var i=R("feColorMatrix",t);i.setAttribute("type","hueRotate"),i.setAttribute("values",""+n[0].to(e.UnitType.kDegrees).value),r.appendChild(i)}(t,s,u):"invert"===o&&function(t,e,r){var n=at(r[0]);ut(t,e,{type:"table",tableValues:n+" "+(1-n)})}(t,s,u),s.id=a+"-"+i,s.setAttribute("name",a),r.appendChild(s),s.id}));setTimeout((function(){null==i||i.setAttribute("filter",s.map((function(t){return"url(#"+t+")"})).join(" "))}))}}function at(t){return t.unit===e.UnitType.kPercentage?t.value/100:t.value}function ut(t,e,r){var n=r.type,i=r.slope,o=r.intercept,a=r.tableValues,u=R("feComponentTransfer",t);[R("feFuncR",t),R("feFuncG",t),R("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 st(t,e,r){var n=R("feColorMatrix",t);n.setAttribute("type","matrix"),n.setAttribute("values",r.join(" ")),e.appendChild(n)}var ct={},lt=0;function ht(t,r,n,i,o,a,u){if(!o)return"";if(!(o instanceof e.CSSRGB)){if(e.isPattern(o)){var s=function(t,r,n,i,o){var a=ft(i);if(!r.querySelector("#"+a)){var u=i.image,s=i.repetition,c="";if(y(u)?c=u:e.isBrowser&&(u instanceof HTMLImageElement?c=u.src:u instanceof HTMLCanvasElement&&(c=u.toDataURL())),c){var l=R("pattern",t);l.setAttribute("patternUnits","userSpaceOnUse");var h,f=R("image",t);l.appendChild(f),l.id=a,r.appendChild(l),f.setAttribute("href",c),o?h=o(c):e.isBrowser&&(h=new window.Image),c.match(/^data:/i)||(h.crossOrigin="Anonymous",f.setAttribute("crossorigin","anonymous")),h.src=c;var d=function(){l.setAttribute("x","0"),l.setAttribute("y","0");var t=n.getGeometryBounds().halfExtents,e=h.width,r=h.height;"repeat-x"===s?r=2*t[1]:"repeat-y"===s?e=2*t[0]:"no-repeat"===s&&(e=2*t[0],r=2*t[1]),l.setAttribute("width",""+e),l.setAttribute("height",""+r),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("width",""+h.width),f.setAttribute("height",""+h.height)};h.complete?d():h.onload=d}}return a}(t,r,n,o,u);return i.style[a]="url(#"+s+")",s}if(1===o.length){var c=dt(t,n,r,i,o[0]);return null==i||i.setAttribute(a,"url(#"+c+")"),c}var l=function(t,e,r,n,i){var o=it+e.entity+"-gradient",a=r.querySelector("#"+o);a||((a=R("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,s){var c=dt(t,e,r,n,i),l=c+"_rect",h=R("rect",t);h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("width","100%"),h.setAttribute("height","100%"),h.setAttribute("fill","url(#"+c+")"),h.id=l,r.appendChild(h);var f=R("feImage",t);if(f.setAttribute("href","#"+l),f.setAttribute("result",o+"-"+s),a.appendChild(f),s>0){var d=R("feBlend",t);d.setAttribute("in",1===s?o+"-"+(s-1):o+"-blended-"+(u-1)),d.setAttribute("in2",o+"-"+s),d.setAttribute("result",o+"-blended-"+u++),d.setAttribute("mode","multiply"),a.appendChild(d)}}));var s=R("feComposite",t);return s.setAttribute("in",o+"-blended-"+u),s.setAttribute("in2","SourceGraphic"),s.setAttribute("operator","in"),a.appendChild(s),o}(t,n,r,i,o);return null==i||i.setAttribute("filter","url(#"+l+")"),null==i||i.setAttribute("fill","black"),l}return"currentColor"===n.style[a]?null==i||i.setAttribute(a,"currentColor"):null==i||i.setAttribute(a,o.isNone?"none":""+o),""}function ft(t,r){void 0===r&&(r={});var n="";if(t instanceof e.CSSGradientValue){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,s=o.cy,c=o.size;n="gradient-"+o.type+"-"+((null==a?void 0:""+a)||0)+"-"+((null==u?void 0:""+u)||0)+"-"+((null==s?void 0:""+s)||0)+"-"+((null==c?void 0:""+c)||0)+"-"+o.width+"-"+o.height+"-"+o.steps.map((function(t){return""+t.offset+t.color})).join("-")}}else e.isPattern(t)&&(n=y(t.image)?"pattern-"+t.image+"-"+t.repetition:"pattern-"+lt);return n&&(ct[n]||(ct[n]="g-pattern-"+lt++)),ct[n]}function dt(t,r,n,i,o){var a=r.getGeometryBounds(),u=a&&2*a.halfExtents[0]||0,s=a&&2*a.halfExtents[1]||0,c=ft(o,{width:u,height:s}),l=n.querySelector("#"+c);if(!l){(l=R(o.type===e.GradientType.LinearGradient?"linearGradient":"radialGradient",t)).setAttribute("gradientUnits","userSpaceOnUse");var h="";o.value.steps.sort((function(t,e){return t.offset.value-e.offset.value})).forEach((function(t){h+='<stop offset="'+t.offset.value/100+'" stop-color="'+t.color+'"></stop>'})),l.innerHTML=h,l.id=c,n.appendChild(l)}if(o.type===e.GradientType.LinearGradient){var f=e.computeLinearGradient(u,s,o.value.angle),d=f.y1,p=f.x2,v=f.y2;l.setAttribute("x1",""+f.x1),l.setAttribute("y1",""+d),l.setAttribute("x2",""+p),l.setAttribute("y2",""+v)}else{var m=o.value,y=e.computeRadialGradient(u,s,m.cx,m.cy,m.size),g=y.y,b=y.r;l.setAttribute("cx",""+y.x),l.setAttribute("cy",""+g),l.setAttribute("r",""+b)}return c}var pt=/url\(#(.*)\)/,vt=function(){function t(t){this.context=void 0,this.$def=void 0,this.gradientCache={},this.context=t}var e=t.prototype;return e.getDefElement=function(){return this.$def},e.init=function(){var t=this.context.config.document,e=this.context.contextService.getContext();this.$def=R("defs",t),e.appendChild(this.$def)},e.clear=function(t){var e=this;Object.keys(this.gradientCache).forEach((function(r){e.clearUnusedDefElement(e.gradientCache,r,t)}))},e.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)}},e.createOrUpdateGradientAndPattern=function(t,e,r,n){var i=this.context.config,o=i.document,a=i.createImage;if(e){var u,s=null===(u=e.getAttribute(n))||void 0===u?void 0:u.match(pt);s&&s.length>1&&this.clearUnusedDefElement(this.gradientCache,s[1],t.entity);var c=ht(o||document,this.$def,t,e,r,n,a);this.gradientCache[c]||(this.gradientCache[c]=new Set),this.gradientCache[c].add(t.entity)}},e.createOrUpdateShadow=function(t,e,r){!function(t,e,r,n,i){var o=r.parsedStyle,a=o.shadowType,u=o.shadowBlur,s=o.shadowColor,c=o.shadowOffsetX,l=o.shadowOffsetY,h=!v(s)&&u>0,f="g-filter-dropshadow-"+r.entity,d=e.querySelector("#"+f);if(d&&(d.getAttribute("data-type")===a&&h||(d.remove(),d=null)),h){if(null==n||n.setAttribute("filter","url(#"+f+")"),!d){if((d=R("filter",t)).setAttribute("data-type",a),"outer"===a){var p=R("feDropShadow",t);p.setAttribute("dx",""+(c||0)/2),p.setAttribute("dy",""+(l||0)/2),p.setAttribute("stdDeviation",""+(u||0)/4),p.setAttribute("flood-color",""+s),d.appendChild(p)}else if("inner"===a){var m=R("feComponentTransfer",t);m.setAttribute("in","SourceAlpha");var y=R("feFuncA",t);y.setAttribute("type","table"),y.setAttribute("tableValues","1 0"),m.appendChild(y),d.appendChild(m);var g=R("feGaussianBlur",t);g.setAttribute("stdDeviation",""+(u||0)/4),d.appendChild(g);var b=R("feOffset",t);b.setAttribute("dx",""+(c||0)/2),b.setAttribute("dy",""+(l||0)/2),b.setAttribute("result","offsetblur"),d.appendChild(b);var w=R("feFlood",t);w.setAttribute("flood-color",""+s),w.setAttribute("result","color"),d.appendChild(w);var E=R("feComposite",t);E.setAttribute("in2","offsetblur"),E.setAttribute("operator","in"),d.appendChild(E);var x=R("feComposite",t);x.setAttribute("in2","SourceAlpha"),x.setAttribute("operator","in"),d.appendChild(x);var A=R("feMerge",t);d.appendChild(A);var S=R("feMergeNode",t);S.setAttribute("in","SourceGraphic");var L=R("feMergeNode",t);A.appendChild(S),A.appendChild(L)}return d.id=f,d.setAttribute("filterUnits","userSpaceOnUse"),void e.appendChild(d)}if("inner"===a){var O=d.children[1],C=d.children[2];"shadowColor"===i?d.children[3].setAttribute("flood-color",""+s):"shadowBlur"===i?O.setAttribute("stdDeviation",""+(u||0)/4):"shadowOffsetX"===i?C.setAttribute("dx",""+(c||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",""+s):"shadowBlur"===i?k.setAttribute("stdDeviation",""+(u||0)/4):"shadowOffsetX"===i?k.setAttribute("dx",""+(c||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)},e.createOrUpdateFilter=function(t,e,r){ot(this.context.config.document||document,this.$def,t,e,r)},t}(),mt=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 vt(this.context),i=new nt(this.context);this.context.defaultElementLifeCycleContribution=i,this.context.SVGElementLifeCycleContribution=i;var o={outputSVGElementId:!!v(e)||!!e,outputSVGElementName:!!v(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:H,DefaultElementLifeCycleContribution:nt,ElementSVG:N,G_SVG_PREFIX:Y,Plugin:mt,SHAPE2TAGS:et,SHAPE_UPDATE_DEPS:rt,SVGRendererPlugin:q,SVG_ATTR_MAP:F,TEXT_PATH_PREFIX:z,createSVGElement:R,updateImageElementAttribute:j,updateLineElementAttribute:$,updatePathElementAttribute:D,updatePolylineElementAttribute:I,updateRectElementAttribute:V,updateTextElementAttribute:tt});function gt(){gt=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 c(t,e,r,i){var o=Object.create((e&&e.prototype instanceof f?e:f).prototype),a=new L(i||[]);return n(o,"_invoke",{value:E(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=c;var h={};function f(){}function d(){}function p(){}var v={};s(v,o,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(O([])));y&&y!==e&&r.call(y,o)&&(v=y);var g=p.prototype=f.prototype=Object.create(v);function b(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 s=l(t[n],t,o);if("throw"!==s.type){var c=s.arg,h=c.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,u)}))}u(s.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 E(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===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 s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var i=n.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 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(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:d,configurable:!0}),d.displayName=s(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,s(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(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(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,u,"Generator"),s(g,o,(function(){return this})),s(g,"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"),s=r.call(o,"finallyLoc");if(u&&s){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(!s)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),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 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),h}},t}function bt(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,i)}function wt(t,e){return wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wt(t,e)}function Et(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 xt(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 Et(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)?Et(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 At=function(){function t(){}var r=t.prototype;return r.apply=function(e){var r=this,n=e.config.document,i=e.renderingService;i.hooks.pick.tapPromise(t.tag,function(){var t,e=(t=gt().mark((function t(e){return gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.pick(n,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){bt(o,n,i,a,u,"next",t)}function u(t){bt(o,n,i,a,u,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}()),i.hooks.pickSync.tap(t.tag,(function(t){return r.pick(n,t)}))},r.pick=function(t,r){var n=r.topmost,i=r.position,o=i.clientX,a=i.clientY;try{for(var u,s=[],c=xt((t||document).elementsFromPoint(o,a));!(u=c()).done;){var l=u.value,h=l&&l.getAttribute("id");if(h&&h.startsWith(Y)){var f=h.lastIndexOf("-"),d=e.runtime.displayObjectPool.getByEntity(h.substring(f+1));if(d&&d.isInteractive()&&(s.push(d),n))return r.picked=s,r}}r.picked=s}catch(t){r.picked=[]}return r},t}();At.tag="SVGPicker";var St=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,wt(e,r);var i=n.prototype;return i.init=function(){this.addRenderingPlugin(new At)},i.destroy=function(){this.removeAllRenderingPlugins()},n}(e.AbstractRendererPlugin),Lt=Object.freeze({__proto__:null,Plugin:St}),Ot=function(){function t(t){this.$container=void 0,this.$namespace=void 0,this.dpr=void 0,this.canvasConfig=void 0,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,s;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=(n=this.canvasConfig).document,a=n.devicePixelRatio,this.$container=y(i=n.container)?(o||document).getElementById(i):i,this.$container&&(this.$container.style.position||(this.$container.style.position="relative"),(u=R("svg",o)).setAttribute("width",""+this.canvasConfig.width),u.setAttribute("height",""+this.canvasConfig.height),this.$container.appendChild(u),this.$namespace=u),s=a||e.isBrowser&&window.devicePixelRatio||1,this.dpr=s=1>s?1:Math.ceil(s);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.toDataURL=function(){var t=i(r().mark((function t(e){var n,i,o;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.$namespace.cloneNode(!0),i=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),(o=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",i)).replaceChild(n,o.documentElement),t.abrupt("return","data:image/svg+xml;charset=utf8,"+encodeURIComponent((new XMLSerializer).serializeToString(o)));case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),t}(),Ct=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=Ot},r.destroy=function(){delete this.context.ContextService},e}(e.AbstractRendererPlugin),kt=function(t){function e(e){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).registerPlugin(new Ct),r.registerPlugin(new mt({outputSVGElementId:e.outputSVGElementId})),r.registerPlugin(new f),r.registerPlugin(new St),r}return o(e,t),e}(e.AbstractRenderer);t.DomInteraction=d,t.Renderer=kt,t.SVGPicker=Lt,t.SVGRenderer=yt,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.26",
|
|
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.29",
|
|
34
|
+
"@antv/g-plugin-svg-picker": "^1.7.29",
|
|
35
|
+
"@antv/g-plugin-svg-renderer": "^1.8.26",
|
|
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": "9c99243a29308d12fc22ab4f3290033771e53fcb"
|
|
50
50
|
}
|