1"use strict";(self.webpackChunkssr_chart=self.webpackChunkssr_chart||[]).push([[4546],{81255(t,e,r){r.d(e,{P:()=>c});var n=r(74430),i=r(55560);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function l(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}(0,n.__QUDE_IMPORT_MAP_MARK__)("39e742bdfd1c",[]);var u=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(t,[{key:"geometry",value:function(t){var e=(0,i.g)(t);return{decoratorAndTextMargin:e/3,width:Math.round(.8*e),ignoreRtl:!1}}},{key:"draw",value:function(t,e,r,n){var i=e.horizontalPixelRatio,o=e.verticalPixelRatio,a=Math.max(1,Math.round(i*n.decoratorWidth/8)),l=a%2/2,u=Math.round((n.textTop+n.textBottom)/2*o)+l,c=Math.round((n.decoratorLeft+n.decoratorWidth/2)*i)+l,s=Math.round(n.decoratorWidth*i);t.strokeStyle=r.color,t.lineWidth=a;var f=s/2;c%2/2!=f%2/2&&(f+=.5),t.beginPath(),t.moveTo(c-f,u),t.lineTo(c+f,u),t.moveTo(c,u-f),t.lineTo(c,u+f),t.stroke()}}],[{key:"instance",value:function(){return this._instance||(this._instance=new t),this._instance}}])}();u._instance=null;var c=u;c.instance()},19156(t,e,r){r.d(e,{T:()=>y});var n=r(74430),i=r(55560);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach(function(e){u(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function u(t,e,r){return(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}function f(t,e,r){return e=h(e),function(t,e){if(e&&("object"==o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}(0,n.__QUDE_IMPORT_MAP_MARK__)("33f5fca02124",[]);var y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),function(t,e){return e&&c(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"getTextInfo",value:function(){var t=this._getInternalData(),e=this.fontStyle(),r=this._getFontInfo();return l(l({},t),{},{textTop:t.textTop-.5,lineSpacing:this.lineSpacing(),font:e,fontSize:r.fontSize,fontFamily:r.fontFamily,centerRotation:this.centerTextRotation()})}},{key:"setCursorType",value:function(t){var e,r;(null===(e=this._hitTest)||void 0===e||null===(e=e.details)||void 0===e?void 0:e.cursorType)!==t&&(null===(r=this._hitTest)||void 0===r||r.mergeData({cursorType:t}))}}])}(i.B)},94546(t,e,r){r.d(e,{VerticalLineTool:()=>D});var n=r(74430),i=r(99819),o=r(93843),a=r(51098),l=r(36897),u=r(95356),c=r(263),s=r(81255),f=r(55560),p=r(28924),h=r(19156),d=r(23383),y=r(35093);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function _(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?v(Object(r),!0).forEach(function(e){m(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function m(t,e,r){return(e=P(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,P(n.key),n)}}function x(t,e,r){return e&&O(t.prototype,e),r&&O(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function P(t){var e=function(t){if("object"!=b(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(e)?e:e+""}function j(t,e,r){return e=E(e),function(t,e){if(e&&("object"==b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return S(t)}(t,T()?Reflect.construct(e,r||[],E(t).constructor):e.apply(t,r))}function S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function T(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(T=function(){return!!t})()}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}function k(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&M(t,e)}function M(t,e){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},M(t,e)}(0,n.__QUDE_IMPORT_MAP_MARK__)("3dec70161405",[]);var A=function(t){function e(){var t;return w(this,e),(t=j(this,e,arguments))._lineRenderer=new p.V,t._renderer=new o.C(t._hitTestCollector),t._labelRenderer=new h.T(new c.H(c.a.MovePoint)),t._mode=i.T.Preview,t}return k(e,t),x(e,[{key:"renderer",value:function(){return this._renderer}},{key:"_updateImpl",value:function(){this._renderer.clear();var t=this.points();if(0!==(null==t?void 0:t.length)){var e,r=this._source.getScope().mediaSize,n=r.width,a=r.height,l=this._source.properties(),p=this._placeHolderMode(),h=!0;if(l.text){var d=0,y=5,b=i.H.Center,v=i.V.Middle,_=t[0].x,m=0;switch(l.vertLabelsAlign){case"top":m=a;break;case"middle":m=a/2;break;case"bottom":m=0}if("horizontal"===l.textOrientation){switch(l.horzLabelsAlign){case"left":b=i.H.Right;break;case"right":b=i.H.Left;break;case"center":b=i.H.Center}switch(l.vertLabelsAlign){case"top":v=i.V.Bottom;break;case"middle":v=i.V.Middle;break;case"bottom":v=i.V.Top}}else{switch(d=-Math.PI/2,y=0,l.horzLabelsAlign){case"left":v=i.V.Bottom;break;case"right":v=i.V.Top;break;case"center":v=i.V.Middle}switch(l.vertLabelsAlign){case"top":b=i.H.Left;break;case"middle":b=i.H.Center;break;case"bottom":b=i.H.Right}}this._labelRenderer.setData({points:[new c.P(_,m)],text:this._textDisplay(),color:this._textDisplayColor(),vertAlign:v,horzAlign:b,fontFamily:u.C,offsetX:y,offsetY:0,bold:l.bold,italic:l.italic,fontSize:l.fontSize,forceTextAlign:!0,angle:d,decorator:p?s.P.instance():void 0}),this._labelRenderer.setCursorType(this._textCursorType()),this._renderer.append(this._labelRenderer),this._needLabelExclusionPath(this._labelRenderer)&&(e=(0,f.c)(this._labelRenderer,n,a)||void 0),(h=this._labelRenderer.isOutOfScreen(n,a))?this.closeTextEditor():this._updateEditor(this._labelRenderer.getTextInfo())}var g={x:t[0].x,lineColor:l.lineColor,lineWidth:l.lineWidth,lineStyle:l.lineStyle,excludeBoundaries:e},w=g.lineWidth/2+1;if(h=h&&(g.x<-w||g.x>n+w),this._lineRenderer.setData(g),this._lineRenderer.setHitTest(new c.H(c.a.MovePoint,{})),this._renderer.insert(this._lineRenderer,0),!h&&1===t.length&&!this._isTextEditMode()){var O=new c.P(t[0].x,.9*a),x=new o.A(O,{pointIndex:0,resizeDirections:c.j});this._renderer.append(this.createLineAnchor({points:[x]},0))}}}},{key:"_needLabelExclusionPath",value:function(t){var e=this._source.properties(),r="horizontal"===e.textOrientation,n=e.text;if(r)return""!==n.trim();if("center"!==e.horzLabelsAlign)return!1;var i=t.getLinesInfo().lines;return i.length%2!=0&&""!==i[Math.floor(i.length/2)].text.trim()}}])}(a.B),C=function(t){function e(){var t;return w(this,e),(t=j(this,e,arguments))._line=new A(S(t),t.editingHelper),t._paneView=[t._line],t._timeAxisViews=[new l.T(Object.create(null))],t}return k(e,t),x(e,[{key:"pointsCount",value:function(){return 1}},{key:"updateAllViews",value:function(){var t=this;if(this.controlPoints.length){for(var e=[],r=0;r<this.controlPoints.length;r++){var n=this.controlPoints[r],i=this.pointToScreenPoint(n);if(!i)return;e.push(new o.A(i,{pointIndex:r}))}
1this.controlPoints.forEach(function(r,n){t._timeAxisViews[n].update(t._calculateTimeAxisViewData(r.time,e[n].x))}),this._paneView[0].update({points:e})}}},{key:"isCreationFinished",value:function(){return this._line.isCreationFinished()}},{key:"startTextEditing",value:function(){return this._line.startTextEditing()}}])}(a.a),R=function(){return{lineColor:(0,y.g)("#2962FF"),lineWidth:2,lineStyle:0,extendLine:!0,showTime:!0,showLabel:!1,horzLabelsAlign:i.H.Center,vertLabelsAlign:i.V.Middle,textColor:(0,y.g)("#2962FF"),textOrientation:"vertical",fontSize:14,bold:!1,italic:!1,wordWrap:!0}},D=function(t){function e(){var t;return w(this,e),(t=j(this,e,arguments)).type=i.bv,t}return k(e,t),x(e,[{key:"createPrimitive",value:function(t){return this._primitive=function(t,e,r){if(T())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&M(i,r.prototype),i}(C,[_({id:this.id,points:[],text:"",placeholder:(0,d.t)("tool.misc.add_text")},R()),this.type,t].concat(function(t){if(Array.isArray(t))return g(t)}(e=this.getTextResetArgs(t))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return g(t,e);var r={}.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)?g(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),this._primitive.defaultProps=R,this._primitive;var e}}])}(a.b)},28924(t,e,r){r.d(e,{V:()=>y});var n=r(74430),i=r(93843),o=r(263),a=r(35093),l=r(99819);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function f(t,e,r){return e=h(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],h(t).constructor):e.apply(t,r))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}(0,n.__QUDE_IMPORT_MAP_MARK__)("eec897d2560f",[]);var y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),r=e,n=[{key:"hitTest",value:function(t){if(!this._data||!this._hitTest)return null;var e=(0,o.i)().line,r=Math.abs(t.x-this._data.x)<=e+this._data.lineWidth/2,n=void 0===this._data.top||this._data.top-t.y<=e,i=void 0===this._data.bottom||t.y-this._data.bottom<=e;return r&&n&&i?this._hitTest:null}},{key:"drawImpl",value:function(t){if(this._data&&!(this._data.lineWidth<=0)){var e=t.context,r=t.horizontalPixelRatio,n=t.verticalPixelRatio,o=t.mediaSize,l=this._data.x;if(!(l<-this._data.lineWidth/2||l>o.width+this._data.lineWidth/2)){e.lineCap="butt",e.strokeStyle=this._data.lineColor,e.lineWidth=Math.max(1,Math.floor(this._data.lineWidth*r)),void 0!==this._data.lineStyle&&(0,a.s)(e,this._data.lineStyle);var u=void 0!==this._data.top?Math.max(0,this._data.top):0,c=void 0!==this._data.bottom?Math.min(o.height,this._data.bottom):o.height,s=Math.round(l*r),f=Math.floor(u*n),p=Math.ceil(c*n);void 0!==this._data.excludeBoundaries&&(0,i.a)(t,this._data.excludeBoundaries),(0,i.h)(e,s,f,p)}}}}],n&&c(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(l.B)},51098(t,e,r){r.d(e,{B:()=>x,a:()=>P,b:()=>M});var n=r(74430),i=r(99819),o=r(93843),a=r(35093),l=r(83859);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},s.apply(null,arguments)}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?f(Object(r),!0).forEach(function(e){h(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function h(t,e,r){return(e=v(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function b(t,e,r){return e&&y(t.prototype,e),r&&y(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function v(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function _(t,e,r){return e=g(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,m()?Reflect.construct(e,r||[],g(t).constructor):e.apply(t,r))}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(m=function(){return!!t})()}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function w(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e)}function O(t,e){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},O(t,e)}(0,n.__QUDE_IMPORT_MAP_MARK__)("9cb07029e79f",[]);var x=function(t){function e(t,r){var n;return d(this,e),(n=_(this,e,[t]))._editingHelper=r,n._creatingFinished=!1,n._mode=1,n._textWasEdited=!1,n._textEditor=null,n}return w(e,t),b(e,[{key:"isCreationFinished",value:function(){return this._creatingFinished}},{key:"startTextEditing",value:function(){this._mode=1,this._textWasEdited=!1}},{key:"_isTextEditMode",value:function(){return 1===this._mode}},{key:"_placeHolderMode",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!this._isTextEditMode(),r=this._source.hovered,n=!t||this._source.hovered&&null===this._source.currentMouseInPointIndex,i=!this._textValue(),o=this._source.selected;return e&&r&&n&&i&&o}},{key:"_textValue",value:function(){return this._source.properties().text}},{key:"_textDisplay",value:function(){var t=this._source.properties(),e=t.text,r=t.placeholder;return e||(this._textWasEdited?"â":r)}},{key:"_textDisplayColor",value:function(){var t=this._textColor();return this._textValue()?t:(0,i.bw)(t,.5)}},{key:"_textColor",value:function(){return this._source.properties().textColor}},{key:"_textCursorType",value:function(){return this.isSelectedSource()?i.e.text:i.e.unset}},{key:"_updateEditor",value:function(t){var e;!this._textEditor&&this._isTextEditMode()?this._activateEditMode(t):null===(e=this._textEditor)||void 0===e||e.update({textInfo:t})}},{key:"_activateEditMode",value:function(t){var e=this;if(!this._textEditor){var r=this._source.properties(),n=r.textColor,i=r.text,o=r.placeholder,a=r.wordWrap;this._textEditor=this._editingHelper.showTextEditor({text:i,placeholder:o,textColor:n,multiLine:a,textInfo:t,onExit:function(){e._deactiveEditMode(),e._textValue()?e._editingHelper.accept():e._editingHelper.abort()},onInput:function(t){e._source.updateProps({text:t}),e._source.belongChart().updateRender()}})}}},{key:"_deactiveEditMode",value:function(){var t;this._creatingFinished||(this._creatingFinished=!0),null!==(t=this._textEditor)&&void 0!==t&&t.dis
1pose(),this._mode=0,this._textWasEdited=!0,this._textEditor=null}},{key:"closeTextEditor",value:function(){this._deactiveEditMode()}}])}(o.T),P=function(t){function e(t,r,n,i,o){var a;return d(this,e),(a=_(this,e,[t,r,n,i])).editingHelper=o,a}return w(e,t),b(e,[{key:"asTextToolPrimitive",value:function(){return this}},{key:"isfillBg",value:function(){return this._props.fillBackground}}])}(o.u);function j(t){return"number"==typeof t?"".concat(t,"px"):t}var S=b(function t(e){d(this,t),this.keyCode=e.keyCode||e.which}),T=new Map([["10b_2",.15],["10bi_2",.15],["12_3",.8],["12b_2",.5],["12bi_2",.45],["14b_2",.65],["14bi_2",.65],["16_2.5",.8],["16b_2",.8],["16bi_2",.75],["16b_2.5",.8],["16bi_2.5",.75],["16bi_3",.65],["20_2",1],["20b_2",.8],["20bi_2",.75],["20bi_3",.55],["20_2.5",.25],["20_3",.8],["24_2.5",.95],["24_3",.95],["28_2",1.4],["28_2.5",1.38],["28_3",1.38],["32_2",1.6],["32_2.5",1.6],["32_3",1.6]]),E=new(b(function t(){d(this,t),this.root={get activeElement(){return document.activeElement}}})),k=function(t){function e(t,r){var n;return d(this,e),(n=_(this,e)).padding=2,n.exited=!1,n.prevFocus=null,n.el=null,n.openValue="",n.panelWidget=t,n.container=t.getGuiPanel().getGuiServiceWrap(),n.options=(0,a.m)({offsetTop:0,offsetLeft:0,multiLine:!1,placeholder:""},p({},r)),n._createTextarea(),n._calculateStyle(),n._bindEvents(),n._mount(),n}return w(e,t),b(e,[{key:"_createTextarea",value:function(){this.el=document.createElement("textarea"),this.el.className=(0,i.bt)("tool-textarea"),this.el.setAttribute("autocapitalize","off"),this.el.setAttribute("autocomplete","off"),this.el.setAttribute("spellcheck","false"),this.el.value=this.openValue=this.options.text||""}},{key:"_calculateStyle",value:function(){var t,e,r=this.options,n=r.textInfo,o=r.offsetTop,a=r.offsetLeft,l=r.textColor,u=(r.multiLine,n.font),c=n.fontSize,s=n.textLeft,f=n.textTop,p=n.textBottom,h=n.textRight,d=n.textAlign,y=n.centerRotation,b=(n.lineSpacing,n.fontFamily),v=Math.ceil(h-s)+1,_=Math.ceil(p-f),m=0;y&&0!==y.angle?(e=y.x-v/2,t=y.y-_/2,m=y.angle):(t=Math.round(f)+.5,e=Math.round(s)+.5);var g=(0,i.g)()<=2||(0,i.g)()>=3?(0,i.g)():(0,i.g)()<2.5?2:2.5,w="".concat(c).concat(u.includes("bold")?"b":"").concat(u.includes("italic")?"i":"","_").concat(g);T.get(w);var O={width:j(v+2*this.padding),height:j(_+2*this.padding),top:j(t-this.padding+o),left:j(e-this.padding+a),font:u,fontSize:j(c),lineHeight:j(c),textAlign:d,letterSpacing:"0",rotate:m?"".concat(m,"deg"):void 0};return this.el&&(this.el.style.width=O.width,this.el.style.height=O.height,this.el.style.top=O.top,this.el.style.left=O.left,this.el.style.font=O.font,this.el.style.fontSize=O.fontSize,this.el.style.lineHeight=O.lineHeight,this.el.style.textAlign=O.textAlign,this.el.style.letterSpacing=O.letterSpacing,this.el.style.caretColor=l,this.el.style.color="transparent",this.el.style.fontFamily=b,O.rotate&&(this.el.style.transform=O.rotate)),O}},{key:"_bindEvents",value:function(){var t=this;if(!this.el)throw new Error("Textarea element not initialized");var e=function(){var e,r;t.el&&(null===(e=(r=t.options).onInput)||void 0===e||e.call(r,t.el.value))},r=function(){E.root.activeElement!==t.el&&t.exit()},n=function(e){var r=new S(e);(27===r.keyCode||13===r.keyCode&&!t.options.multiLine)&&t.exit()};this.el.addEventListener("input",e),this.el.addEventListener("blur",r),this.el.addEventListener("keydown",n),this._eventHandlers={handleInput:e,handleBlur:r,handleKeydown:n}}},{key:"_mount",value:function(){var t=this;if(!this.el)throw new Error("Textarea element not initialized");this.prevFocus=E.root.activeElement,this.container.appendChild(this.el),this.el.value=this.options.text,setTimeout(function(){t.el.focus(),t.el.dataset.partFingerprint="textarea"},0)}},{key:"exit",value:function(){var t,e,r;if(!this.exited){this.exited=!0,null!==(t=(e=this.options).onExit)&&void 0!==t&&t.call(e),this.prevFocus&&this.prevFocus instanceof HTMLElement&&this.prevFocus.focus();var n=(null===(r=this.el)||void 0===r?void 0:r.value)||"";this.openValue!==n&&this.panelWidget.getChartWidget().noticeChartCacheCallback(),this.destroy()}}},{key:"destroy",value:function(){if(this.el){var t=this._eventHandlers;t&&(this.el.removeEventListener("input",t.handleInput),this.el.removeEventListener("blur",t.handleBlur),this.el.removeEventListener("keydown",t.handleKeydown)),this.el.parentNode&&this.el.parentNode.removeChild(this.el),this.el=null,this.container=null,this.prevFocus=null,this.exited=!0}}},{key:"update",value:function(t){this.options=p(p({},this.options),t),this.el&&this._calculateStyle(),void 0!==t.text&&this.el&&(this.el.value=t.text)}}])}(l.A),M=function(t){function e(){return d(this,e),_(this,e,arguments)}return w(e,t),b(e,[{key:"getTextResetArgs",value:function(t){var r,n=this;return[].concat((r=function(t,e,r){var n=s(g(t.prototype),"resetArgs",r);return n}(e,0,this),function(t){if(Array.isArray(t))return c(t)}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r={}.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)?c(t,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[{showTextEditor:function(e){return t.getBelongPanelWidget().getGuiService().showComponent({Component:k,props:p(p({},e),{},{offsetTop:0,offsetLeft:0})})},accept:function(){n._primitive.toolService().markCreatingFinishedOrAborted(),n._primitive.updateActive()},abort:function(){t.removeDrawTool(n._primitive),n._primitive.toolService().markCreatingFinishedOrAborted()}}])}}])}(o.D)},36897(t,e,r){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}r.d(e,{T:()=>a}),(0,r(74430).__QUDE_IMPORT_MAP_MARK__)("e4bb488c67e3",[]);var a=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._data=e},(e=[{key:"update",value:function(t){Object.assign(this._data,t)}},{key:"backColor",value:function(){return this._data.background}},{key:"coordinate",value:function(){return this._data.coordinate}},{key:"text",value:function(){return this._data.text}},{key:"textColor",value:function(){return this._data.foreground}},{key:"tickVisible",value:function(){return!1}},{key:"visible",value:function(){return!!this._data.visible}},{key:"borderColor",value:function(){var t;return null!==(t=this._data.border)&&void 0!==t?t:this._data.background}}])&&i(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.