!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/item-series
 * @requires highcharts
 *
 * Item series type for Highcharts
 *
 * (c) 2019-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,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/item-series",["highcharts/highcharts"],function(t){return e(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/modules/item-series"]=e(t._Highcharts,t._Highcharts.SeriesRegistry):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,function(t,e){return function(){"use strict";var o,r,i={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 i[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 b}});var h=s(944),l=s.n(h),c=s(512),u=s.n(c),p=(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 r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),d=u().series.prototype.pointClass,f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e}(u().seriesTypes.pie.prototype.pointClass);(0,h.extend)(f.prototype,{haloPath:d.prototype.haloPath});var g={endAngle:void 0,innerSize:"40%",itemPadding:.1,layout:"vertical",marker:(0,h.merge)({lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"var(--highcharts-background-color)",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"var(--highcharts-neutral-color-20)",lineColor:"var(--highcharts-neutral-color-100)",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,distance:4,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:[1,3],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},y=(r=function(t,e){return(r=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}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),v=u().seriesTypes.pie,m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(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,r=this.borderWidth%2?.5:1,i=this.getRows(),n=Math.ceil(this.total/i),s=this.chart.plotWidth/n,a=this.chart.plotHeight/i,l=this.itemSize||Math.min(s,a),c=0,u=0,p=this.points;u<p.length;u++){var d=p[u],f=d.marker||{},g=f.symbol||o.symbol,y=(0,h.pick)(f.radius,o.radius),v=(0,h.defined)(y)?2*y:l,m=v*t.itemPadding,b=void 0,w=void 0,_=void 0,x=void 0,M=void 0,A=void 0,P=void 0;if(d.graphics=w=d.graphics||[],this.chart.styledMode||(_=this.pointAttribs(d,d.selected&&"select")),!d.isNull&&d.visible){d.graphic||(d.graphic=e.g("point").add(this.group));for(var O=0;O<(d.y||0);++O){if(this.center&&this.slots){var k=this.slots.shift();x=k.x-l/2,M=k.y-l/2}else"horizontal"===t.layout?(x=c%n*s,M=a*Math.floor(c/n)):(x=s*Math.floor(c/i),M=c%i*a);x+=m,M+=m,P=A=Math.round(v-2*m),this.options.crisp&&(x=Math.round(x)-r,M=Math.round(M)+r),b={x:x,y:M,width:A,height:P},void 0!==y&&(b.r=y),_&&(0,h.extend)(b,_);var S=w[O];S?S.animate(b):S=e.symbol(g,void 0,void 0,void 0,void 0,{backgroundSize:"within"}).attr(b).add(d.graphic),S.isActive=!0,w[O]=S,++c}}for(var C=0;C<w.length;C++){var S=w[C];if(!S)return;S.isActive?S.isActive=!1:(S.destroy(),w.splice(C,1),C--)}}},e.prototype.getRows=function(){var t,e=this.chart,o=this.total||0,r=this.options.rows;if(!r)if(t=e.plotWidth/e.plotHeight,r=Math.sqrt(o),t>1)for(r=Math.ceil(r);r>1&&!(o/r/r>t);)r--;else for(r=Math.floor(r);r<o&&!(o/r/r<t);)r++;return r},e.prototype.getSlots=function(){for(var t,e,o,r,i,n,s,a,h,l,c,u,p=this.center,d=p[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=p[3],w=0,_=Number.MAX_VALUE,x=(d-b)/d;_>m+(c&&v?c.length:0);){l=_,f.length=0,_=0,c=u,u=[],h=d/++w/2,y?(b=(h-y)/h*d)>=0?h=y:(b=0,x=1):h=Math.floor(h*x);for(var M=h;M>0;M--)i=Math.ceil((r=g*(o=(b+M/h*(d-b-w))/2))/w),u.push({rowRadius:o,rowLength:r,colCount:i}),_+=i+1}if(c){for(var A=l-this.total-(v?c.length:0),P=function(t){A>0&&(t.row.colCount--,A--)};A>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(A,Math.ceil(c.length/2))).forEach(P);for(var O=0,k=c;O<k.length;O++){var M=k[O],S=M.rowRadius,C=M.colCount;for(a=0,n=C?g/C:0;a<=C;a+=1)s=this.startAngleRad+a*n,t=p[0]+Math.cos(s)*S,e=p[1]+Math.sin(s)*S,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&&(0,h.isNumber)(this.options.startAngle)&&(0,h.isNumber)(this.options.endAngle)&&(this.center=this.getCenter()),this.slots||(this.slots=[]),(0,h.isNumber)(this.options.startAngle)&&(0,h.isNumber)(this.options.endAngle)?(t.prototype.translate.call(this,e),this.slots=this.getSlots()):(this.generatePoints(),(0,h.fireEvent)(this,"afterTranslate"))},e.defaultOptions=(0,h.merge)(v.defaultOptions,g),e}(v);(0,h.extend)(m.prototype,{markerAttribs:void 0,pointClass:f}),u().registerSeriesType("item",m);var b=l();return a.default}()});