!/**
 * Highcharts JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/textpath-support
 * @requires highcharts
 *
 * (c) 2009-2026 Highsoft AS
 * Author: Torstein Hønsi
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts):"function"==typeof define&&define.amd?define("highcharts/modules/textpath",["highcharts/highcharts"],function(t){return e(t)}):"object"==typeof exports?exports["highcharts/modules/textpath"]=e(t._Highcharts):t.Highcharts=e(t.Highcharts)}("u"<typeof window?this:window,function(t){return function(){"use strict";var e={944:function(e){e.exports=t}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var a=r[t]={exports:{}};return e[t](a,a.exports,n),a.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var o={};n.d(o,{default:function(){return x}});var a=n(944),i=n.n(a),c=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,a=e.length;o<a;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};function s(t,e,r,n){void 0===n&&(n={});var o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});var a=o.hcEvents;i().Point&&t instanceof i().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var c=t.addEventListener;c&&c.call(t,e,r,!!i().supportsPassiveEvents&&{passive:void 0===n.passive?-1!==e.indexOf("touch"):n.passive,capture:!1}),a[e]||(a[e]=[]);var s={fn:r,order:"number"==typeof n.order?n.order:1/0};return a[e].push(s),a[e].sort(function(t,e){return t.order-e.order}),function(){!function(t,e,r){function n(e,r){var n=t.removeEventListener;n&&n.call(t,e,r,!1)}function o(r){var o,a;t.nodeName&&(e?(o={})[e]=!0:o=r,f(o,function(t,e){if(r[e])for(a=r[e].length;a--;)n(e,r[e][a].fn)}))}var a="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(a,"hcEvents")){var i=a.hcEvents;if(e){var c=i[e]||[];r?(i[e]=c.filter(function(t){return r!==t.fn}),n(e,r)):(o(i),i[e]=[])}else o(i),delete a.hcEvents}}(t,e,r)}}function h(t){return u(t)&&"number"==typeof t.nodeType}function u(t,e){var r;return!!t&&"object"==typeof t&&(!e||"[object Array]"!==(r=Object.prototype.toString.call(t))&&"[object Array Iterator]"!==r)}function f(t,e,r){for(var n in t)Object.hasOwnProperty.call(t,n)&&e.call(r||t[n],t[n],n,t)}i().doc,i().win,Array.prototype.find;var l=i().deg2rad;function d(t,e){var r=this;e=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n,o=c([t],e,!0),a={},i=function(t,e){return"object"!=typeof t&&(t={}),f(e,function(r,n){if("__proto__"!==n&&"constructor"!==n){var o;!u(r,!0)||(o=null==r?void 0:r.constructor,u(r,!0)&&!h(r)&&(null==o?void 0:o.name)&&"Object"!==o.name)||h(r)?t[n]=e[n]:t[n]=i(t[n]||{},r)}}),t};!0===t&&(a=o[1],o=Array.prototype.slice.call(o,2));var s=o.length;for(n=0;n<s;n++)a=i(a,o[n]);return a}(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);var n=this.renderer.url,o=this.text||this,i=o.textPath,l=e.attributes,d=e.enabled;if(t=t||i&&i.path,i&&i.undo(),t&&d){var p=s(o,"afterModifyTree",function(e){if(t&&d){var i=t.attr("id");i||t.attr("id",i=(0,a.uniqueKey)());var c={x:0,y:0};null!=l.dx&&(c.dx=l.dx,delete l.dx),null!=l.dy&&(c.dy=l.dy,delete l.dy),o.attr(c),r.attr({transform:""}),r.box&&(r.box=r.box.destroy());var s=e.nodes.slice(0);e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:function(t,e){var r;for(r in t||(t={}),e)t[r]=e[r];return t}(l,{"text-anchor":l.textAnchor,href:""+n+"#".concat(i)}),children:s}}});o.textPath={path:t,undo:p}}else o.attr({dx:0,dy:0}),delete o.textPath;return this.added&&(o.textCache="",this.renderer.buildText(o)),this}function p(t){var e,r=t.bBox,n=null==(e=this.element)?void 0:e.querySelector("textPath");if(n){for(var o=[],a=this.renderer.fontMetrics(this.element),i=a.b,c=a.h-i,s=RegExp('(<tspan>|<tspan(?!\\sclass="highcharts-br")[^>]*>|<\\/tspan>)',"g"),h=n.innerHTML.replace(s,"").split(/<tspan class="highcharts-br"[^>]*>/),u=h.length,f=function(t,e){var r=e.x,o=e.y,a=(n.getRotationOfChar(t)-90)*l,s=Math.cos(a),h=Math.sin(a);return[[r-c*s,o-c*h],[r+i*s,o+i*h]]},d=0,p=0;p<u;p++){for(var v=h[p].length,y=0;y<v;y+=5)try{var x=d+y+p,b=f(x,n.getStartPositionOfChar(x)),g=b[0],P=b[1];0===y?(o.push(P),o.push(g)):(0===p&&o.unshift(P),p===u-1&&o.push(g))}catch(t){break}d+=v-1;try{var x=d+p,m=n.getEndPositionOfChar(x),O=f(x,m),g=O[0],P=O[1];o.unshift(P),o.unshift(g)}catch(t){break}}o.length&&o.push(o[0].slice()),r.polygon=o}return r}function v(t){var e,r=t.labelOptions,n=t.point,o=r[n.formatPrefix+"TextPath"]||r.textPath;o&&!r.useHTML&&(this.setTextPath((null==(e=n.getDataLabelPath)?void 0:e.call(n,this))||n.graphic,o),n.dataLabelPath&&!o.enabled&&(n.dataLabelPath=n.dataLabelPath.destroy()))}var y=i();y.TextPath={compose:function(t){s(t,"afterGetBBox",p),s(t,"beforeAddingDataLabel",v);var e=t.prototype;e.setTextPath||(e.setTextPath=d)}},y.TextPath.compose(y.SVGElement);var x=i();return o.default}()});