!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/wordcloud
 * @requires highcharts
 *
 * (c) 2016-2026 Highsoft AS
 * Authors: Jon Arild Nygård
 *
 * 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/wordcloud",["highcharts/highcharts"],function(t){return e(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/modules/wordcloud"]=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 i,r,o={512:function(t){t.exports=e},944:function(e){e.exports=t}},n={};function a(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}};return o[t](i,i.exports,a),i.exports}a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var s={};a.d(s,{default:function(){return W}});var h=a(944),l=a.n(h),u=function(){return(u=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},p=function(t,e){var i=e.animatableAttribs,r=e.onComplete,o=e.css,n=e.renderer,a=t.series&&t.series.chart.hasRendered?void 0:t.series&&t.series.options.animation,s=t.graphic;if(e.attribs=u(u({},e.attribs),{class:t.getClassName()}),t.shouldDraw())s||(t.graphic=s="text"===e.shapeType?n.text():"image"===e.shapeType?n.image(e.imageUrl||"").attr(e.shapeArgs||{}):n[e.shapeType](e.shapeArgs||{}),s.add(e.group)),o&&s.css(o),s.attr(e.attribs).animate(i,!e.isNew&&a,r);else if(s){var h=function(){t.graphic=s=s&&s.destroy(),"function"==typeof r&&r()};Object.keys(i).length?s.animate(i,void 0,function(){return h()}):h()}},c=a(512),f=a.n(c),d=(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.prototype.isValid=function(){return!0},e}(f().seriesTypes.column.prototype.pointClass);(0,h.extend)(m.prototype,{weight:1});var g={allowExtendPlayingField:!0,animation:{duration:500},borderWidth:0,clip:!1,colorByPoint:!0,cropThreshold:1/0,colorKey:"weight",minFontSize:1,maxFontSize:25,placementStrategy:"center",rotation:{from:0,orientations:2,to:90},showInLegend:!1,spiral:"rectangular",style:{fontFamily:"sans-serif",fontWeight:"900",whiteSpace:"nowrap"},tooltip:{followPointer:!0,pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.weight}</b><br/>'}},y=l().deg2rad;function x(t){var e,i=t.axes||[];return i.length||(i=[],(e=t.concat([t[0]])).reduce(function(t,e){var r,o,n=(r=e[0]-t[0],[[-(o=e[1]-t[1]),r],[o,-r]])[0];return(0,h.find)(i,function(t){return t[0]===n[0]&&t[1]===n[1]})||i.push(n),e}),t.axes=i),i}function b(t,e){var i=t.map(function(t){var i=t[0],r=t[1];return i*e[0]+r*e[1]});return{min:Math.min.apply(this,i),max:Math.max.apply(this,i)}}function v(t,e){var i=x(t),r=x(e),o=i.concat(r);return!(0,h.find)(o,function(i){var r,o;return r=b(t,i),!!((o=b(e,i)).min>r.max||o.max<r.min)})}function M(t,e){var i=4*t,r=Math.ceil((Math.sqrt(i)-1)/2),o=function(t){return"boolean"==typeof t},n=2*r+1,a=Math.pow(n,2),s=!1;return n-=1,t<=1e4&&(o(s)&&i>=a-n&&(s={x:r-(a-i),y:-r}),a-=n,o(s)&&i>=a-n&&(s={x:-r,y:-r+(a-i)}),a-=n,o(s)&&(s=i>=a-n?{x:-r+(a-i),y:r}:{x:r,y:r-(a-i-n)}),s.x*=5,s.y*=5),s}function w(t,e){var i=Math.pow(10,(0,h.isNumber)(e)?e:14);return Math.round(t*i)/i}function S(t,e){var i=t[0],r=t[1],o=-(y*e),n=Math.cos(o),a=Math.sin(o);return[w(i*n-r*a),w(i*a+r*n)]}function A(t,e,i){var r=S([t[0]-e[0],t[1]-e[1]],i);return[r[0]+e[0],r[1]+e[1]]}var _=function(t,e,i){var r=i.reduce(function(t,e){var i=e.dimensions,r=Math.max(i.width,i.height);return t.maxHeight=Math.max(t.maxHeight,i.height),t.maxWidth=Math.max(t.maxWidth,i.width),t.area+=r*r,t},{maxHeight:0,maxWidth:0,area:0}),o=Math.max(r.maxHeight,r.maxWidth,.85*Math.sqrt(r.area)),n=t>e?t/e:1,a=e>t?e/t:1;return{width:o*n,height:o*a,ratioX:n,ratioY:a}},O=function(t,e,i){var r=2*Math.max(Math.abs(i.top),Math.abs(i.bottom)),o=2*Math.max(Math.abs(i.left),Math.abs(i.right));return Math.min(o>0?1/o*t:1,r>0?1/r*e:1)},N=function(t,e){for(var i=[],r=1;r<1e4;r++)i.push(t(r,e));return function(t){return t<=1e4&&i[t-1]}},X=(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(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 i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),j=l().noop,z=f().seriesTypes.column,P=function(t,e){var i,r,o,n,a,s;return(0,h.isObject)(t)&&(0,h.isObject)(e)?(i=e.bottom-e.top,r=e.right-e.left,a=r*(o=t.ratioX)>i*(n=t.ratioY)?r:i,s=(0,h.merge)(t,{width:t.width+a*o*2,height:t.height+a*n*2})):s=t,s},F=function(t,e,i,r,o){var n=[t,e],a=t-i/2,s=t+i/2,h=e-r/2,l=e+r/2;return[[a,h],[s,h],[s,l],[a,l]].map(function(t){return A(t,n,-o)})},Y=function(t){return Math.round(t*(Math.random()+.5)/2)},T=function(t,e,i,r){var o,n=!1;return(0,h.isNumber)(t)&&(0,h.isNumber)(e)&&(0,h.isNumber)(i)&&(0,h.isNumber)(r)&&t>0&&e>-1&&r>i&&(o=(r-i)/(t-1||1),n=i+e%t*o),n},H=function(t,e){var i,r,o,n,a,s,l=e.placed,u=e.field,p=e.rectangle,c=e.polygon,f=e.spiral,d=t.rect=(0,h.extend)({},p),m=1,g={x:0,y:0};for(t.polygon=c,t.rotation=e.rotation;!1!==g&&(i=t.rect,r=t.polygon,o=t.lastCollidedWith,n=function(e){var o,n,a=(o=i,!((n=e.rect).left>o.right||n.right<o.left||n.top>o.bottom||n.bottom<o.top));return a&&(t.rotation%90||e.rotation%90)&&(a=v(r,e.polygon)),a},a=!1,o&&!(a=n(o))&&delete t.lastCollidedWith,!a&&(a=!!(0,h.find)(l,function(e){var i=n(e);return i&&(t.lastCollidedWith=e),i})),a||!((s={left:-(u.width/2),right:u.width/2,top:-(u.height/2),bottom:u.height/2}).left<d.left&&s.right>d.right&&s.top<d.top&&s.bottom>d.bottom));)g=f(m),(0,h.isObject)(g)&&(d.left=p.left+g.x,d.right=p.right+g.x,d.top=p.top+g.y,d.bottom=p.bottom+g.y,t.polygon=function(t,e,i){return i.map(function(i){return[i[0]+t,i[1]+e]})}(g.x,g.y,c)),m++;return g},C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return X(e,t),e.prototype.pointAttribs=function(t,e){var i=l().seriesTypes.column.prototype.pointAttribs.call(this,t,e);return delete i.stroke,delete i["stroke-width"],i},e.prototype.deriveFontSize=function(t,e,i){var r=(0,h.isNumber)(t)?t:0,o=(0,h.isNumber)(e)?e:1;return Math.floor(Math.max((0,h.isNumber)(i)?i:1,r*o))},e.prototype.drawPoints=function(){if(!this.zooming&&(!this.defaultScale||this.group.scaleX===this.defaultScale)){var t,e=this.hasRendered,i=this.xAxis,r=this.yAxis,o=this.chart,n=this.group,a=this.options,s=a.animation,l=a.allowExtendPlayingField,u=o.renderer,c=[],f=this.placementStrategy[a.placementStrategy],d=a.rotation,m=this.points.map(function(t){return t.weight}),g=Math.max.apply(null,m),y=this.points.concat().sort(function(t,e){return e.weight-t.weight}),x=u.text().add(n);this.group.attr({scaleX:1,scaleY:1});for(var b=0;b<y.length;b++){var v=y[b],M=1/g*v.weight,w=this.deriveFontSize(M,a.maxFontSize,a.minFontSize),S=(0,h.extend)({fontSize:w+"px"},a.style);x.css(S).attr({x:0,y:0,text:v.name});var A=x.getBBox(!0);v.dimensions={height:A.height,width:A.width}}t=_(i.len,r.len,y);for(var X=N(this.spirals[a.spiral],{field:t}),j=0;j<y.length;j++){var z,Y,v=y[j],M=1/g*v.weight,w=this.deriveFontSize(M,a.maxFontSize,a.minFontSize),S=(0,h.extend)({fontSize:w+"px"},a.style),T=f(v,{data:y,field:t,placed:c,rotation:d}),C=(0,h.extend)(this.pointAttribs(v,v.selected&&"select"),{align:"center","alignment-baseline":"middle","dominant-baseline":"middle",x:T.x,y:T.y,text:v.name,rotation:(0,h.isNumber)(T.rotation)?T.rotation:void 0}),W=F(T.x,T.y,v.dimensions.width,v.dimensions.height,T.rotation),E=W.reduce(function(t,e){var i=e[0],r=e[1];return t.left=Math.min(i,t.left),t.right=Math.max(i,t.right),t.bottom=Math.max(r,t.bottom),t.top=Math.min(r,t.top),t},{left:Number.MAX_VALUE,right:-Number.MAX_VALUE,bottom:-Number.MAX_VALUE,top:Number.MAX_VALUE}),R=H(v,{rectangle:E,polygon:W,field:t,placed:c,spiral:X,rotation:T.rotation}),D=void 0;!R&&l&&(t=P(t,E),R=H(v,{rectangle:E,polygon:W,field:t,placed:c,spiral:X,rotation:T.rotation})),(0,h.isObject)(R)?(C.x=(C.x||0)+R.x,C.y=(C.y||0)+R.y,E.left+=R.x,E.right+=R.x,E.top+=R.y,E.bottom+=R.y,z=t,Y=E,(!(0,h.isNumber)(z.left)||z.left>Y.left)&&(z.left=Y.left),(!(0,h.isNumber)(z.right)||z.right<Y.right)&&(z.right=Y.right),(!(0,h.isNumber)(z.top)||z.top>Y.top)&&(z.top=Y.top),(!(0,h.isNumber)(z.bottom)||z.bottom<Y.bottom)&&(z.bottom=Y.bottom),t=z,c.push(v),v.isNull=!1,v.isInside=!0):v.isNull=!0,s&&(D={x:C.x,y:C.y},e?(delete C.x,delete C.y):(C.x=0,C.y=0)),p(v,{animatableAttribs:D,attribs:C,css:S,group:n,renderer:u,shapeArgs:void 0,shapeType:"text"})}x=x.destroy(),this.defaultScale=O(i.len,r.len,t),this.field=t,this.group.attr({scaleX:this.defaultScale,scaleY:this.defaultScale})}},e.prototype.hasData=function(){return(0,h.isObject)(this)&&!0===this.visible&&(0,h.isArray)(this.points)&&this.points.length>0},e.prototype.getPlotBox=function(t){var e,i=this.chart,r=this.group,o=this.zooming,n=i.plotSizeX,a=void 0===n?0:n,s=i.plotSizeY,l=void 0===s?0:s,u=i.inverted,p=this[u?"yAxis":"xAxis"],c=this[u?"xAxis":"yAxis"],f=p?p.len:i.plotWidth,d=c?c.len:i.plotHeight,m=p?p.left:i.plotLeft,g=c?c.top:i.plotTop,y=this.field,x=0,b=0,v=m+f/2,M=g+d/2,w=v,S=M,A=this.defaultScale||1,_=0,O=0;if(y&&(_=2*Math.max(Math.abs(y.top),Math.abs(y.bottom)),O=2*Math.max(Math.abs(y.left),Math.abs(y.right))),u&&(O=(e=[_,O])[0],_=e[1]),r&&o){var N=m+Math.max(O*(A=Math.max(o.scale,this.defaultScale||1)),f)/2,X=g+Math.max(_*A,d)/2,j=A-(r.scaleX||1);x=j*((a-O)/2+o.zoomX*a-f/2),b=j*((l-_)/2+o.zoomY*l-d/2),"series"===t&&(o.x=Math.max(0,Math.min(1-o.width,o.x+o.panX/o.scale)),x+=o.panX*a,o.panX=0,o.y=Math.max(0,Math.min(1-o.height,o.y+o.panY/o.scale)),b+=o.panY*l,o.panY=0),(0,h.isNumber)(r.translateX)&&(0,h.isNumber)(r.translateY)&&(w=r.translateX,S=r.translateY),v=w-x,(M=S-b)>X?M=X:M<2*g+d-X&&(M=2*g+d-X),v>N?v=N:v<2*m+f-N&&(v=2*m+f-N)}return{translateX:v,translateY:M,scaleX:A,scaleY:A}},e.defaultOptions=(0,h.merge)(z.defaultOptions,g),e}(z);(0,h.extend)(C.prototype,{animate:j,animateDrilldown:j,animateDrillupFrom:j,isCartesian:!1,pointClass:m,setClip:j,placementStrategy:{random:function(t,e){var i=e.field,r=e.rotation;return{x:Y(i.width)-i.width/2,y:Y(i.height)-i.height/2,rotation:T(r.orientations,t.index,r.from,r.to)}},center:function(t,e){var i=e.rotation;return{x:0,y:0,rotation:T(i.orientations,t.index,i.from,i.to)}}},pointArrayMap:["weight"],spirals:{archimedean:function(t,e){var i=e.field,r=i.width*i.width+i.height*i.height,o=.8*t,n=!1;return t<=1e4&&(Math.min(Math.abs((n={x:o*Math.cos(o),y:o*Math.sin(o)}).x),Math.abs(n.y))<r||(n=!1)),n},rectangular:function(t,e){var i=M(t,e),r=e.field;return i&&(i.x*=r.ratioX,i.y*=r.ratioY),i},square:M},utils:{extendPlayingField:P,getRotation:T,isPolygonsColliding:v,rotate2DToOrigin:S,rotate2DToPoint:A}}),f().registerSeriesType("wordcloud",C);var W=l();return s.default}()});