!/**
 * Highcharts JS v12.5.0 (2026-01-12)
 * @module highcharts/modules/item-series
 * @requires highcharts
 *
 * Item series type for Highcharts
 *
 * (c) 2019-2026 Highsoft AS
 * Author: Torstein Honsi
 *
 * 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(require("highcharts"),require("highcharts").SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/item-series",[["highcharts/highcharts"],["highcharts/highcharts","SeriesRegistry"]],e):"object"==typeof exports?exports["highcharts/modules/item-series"]=e(require("highcharts"),require("highcharts").SeriesRegistry):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry)}(this,function(t,e){return function(){"use strict";var o,i,r={512:function(t){t.exports=e},944:function(e){e.exports=t}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var o=n[t]={exports:{}};return r[t](o,o.exports,s),o.exports}s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,{a:e}),e},s.d=function(t,e){for(var o in e)s.o(e,o)&&!s.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var a={};s.d(a,{default:function(){return S}});var h=s(944),l=s.n(h),c=s(512),p=s.n(c),u=(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),d=p().series.prototype.pointClass,f=p().seriesTypes.pie.prototype.pointClass,g=l().extend,y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e}(f);g(y.prototype,{haloPath:d.prototype.haloPath});var v={endAngle:void 0,innerSize:"40%",itemPadding:.1,layout:"vertical",marker:(0,l().merge)({lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}.marker,{radius:null}),rows:void 0,crisp:!1,showInLegend:!0,startAngle:void 0},m=(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),b=p().seriesTypes.pie,w=l().defined,x=l().extend,M=l().fireEvent,A=l().isNumber,_=l().merge,P=l().pick,O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.animate=function(t){var e=this.group;e&&(t?e.attr({opacity:0}):e.animate({opacity:1},this.options.animation))},e.prototype.drawDataLabels=function(){if(this.center&&this.slots)t.prototype.drawDataLabels.call(this);else for(var e=0,o=this.points;e<o.length;e++)o[e].destroyElements({dataLabel:1})},e.prototype.drawPoints=function(){for(var t=this.options,e=this.chart.renderer,o=t.marker,i=this.borderWidth%2?.5:1,r=this.getRows(),n=Math.ceil(this.total/r),s=this.chart.plotWidth/n,a=this.chart.plotHeight/r,h=this.itemSize||Math.min(s,a),l=0,c=0,p=this.points;c<p.length;c++){var u=p[c],d=u.marker||{},f=d.symbol||o.symbol,g=P(d.radius,o.radius),y=w(g)?2*g:h,v=y*t.itemPadding,m=void 0,b=void 0,M=void 0,A=void 0,_=void 0,O=void 0,S=void 0;if(u.graphics=b=u.graphics||[],this.chart.styledMode||(M=this.pointAttribs(u,u.selected&&"select")),!u.isNull&&u.visible){u.graphic||(u.graphic=e.g("point").add(this.group));for(var k=0;k<(u.y||0);++k){if(this.center&&this.slots){var C=this.slots.shift();A=C.x-h/2,_=C.y-h/2}else"horizontal"===t.layout?(A=l%n*s,_=a*Math.floor(l/n)):(A=s*Math.floor(l/r),_=l%r*a);A+=v,_+=v,S=O=Math.round(y-2*v),this.options.crisp&&(A=Math.round(A)-i,_=Math.round(_)+i),m={x:A,y:_,width:O,height:S},void 0!==g&&(m.r=g),M&&x(m,M);var R=b[k];R?R.animate(m):R=e.symbol(f,void 0,void 0,void 0,void 0,{backgroundSize:"within"}).attr(m).add(u.graphic),R.isActive=!0,b[k]=R,++l}}for(var T=0;T<b.length;T++){var R=b[T];if(!R)return;R.isActive?R.isActive=!1:(R.destroy(),b.splice(T,1),T--)}}},e.prototype.getRows=function(){var t,e=this.chart,o=this.total||0,i=this.options.rows;if(!i)if(t=e.plotWidth/e.plotHeight,i=Math.sqrt(o),t>1)for(i=Math.ceil(i);i>1&&!(o/i/i>t);)i--;else for(i=Math.floor(i);i<o&&!(o/i/i<t);)i++;return i},e.prototype.getSlots=function(){for(var t,e,o,i,r,n,s,a,h,l,c,p,u=this.center,d=u[2],f=this.slots=this.slots||[],g=this.endAngleRad-this.startAngleRad,y=this.options.rows,v=g%(2*Math.PI)==0,m=this.total||0,b=u[3],w=0,x=Number.MAX_VALUE,M=(d-b)/d;x>m+(c&&v?c.length:0);){l=x,f.length=0,x=0,c=p,p=[],h=d/++w/2,y?(b=(h-y)/h*d)>=0?h=y:(b=0,M=1):h=Math.floor(h*M);for(var A=h;A>0;A--)r=Math.ceil((i=g*(o=(b+A/h*(d-b-w))/2))/w),p.push({rowRadius:o,rowLength:i,colCount:r}),x+=r+1}if(c){for(var _=l-this.total-(v?c.length:0),P=function(t){_>0&&(t.row.colCount--,_--)};_>0;)c.map(function(t){return{angle:t.colCount/t.rowLength,row:t}}).sort(function(t,e){return e.angle-t.angle}).slice(0,Math.min(_,Math.ceil(c.length/2))).forEach(P);for(var O=0,S=c;O<S.length;O++){var A=S[O],k=A.rowRadius,C=A.colCount;for(a=0,n=C?g/C:0;a<=C;a+=1)s=this.startAngleRad+a*n,t=u[0]+Math.cos(s)*k,e=u[1]+Math.sin(s)*k,f.push({x:t,y:e,angle:s})}return f.sort(function(t,e){return t.angle-e.angle}),this.itemSize=w,f}},e.prototype.translate=function(e){0===this.total&&A(this.options.startAngle)&&A(this.options.endAngle)&&(this.center=this.getCenter()),this.slots||(this.slots=[]),A(this.options.startAngle)&&A(this.options.endAngle)?(t.prototype.translate.call(this,e),this.slots=this.getSlots()):(this.generatePoints(),M(this,"afterTranslate"))},e.defaultOptions=_(b.defaultOptions,v),e}(b);x(O.prototype,{markerAttribs:void 0,pointClass:y}),p().registerSeriesType("item",O);var S=l();return a.default}()});