@nebula.js/sn-gauge 0.8.13 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/properties.json +8 -4
- package/core/esm/index.js +4 -4
- package/dist/sn-gauge.esm.js +5 -5
- package/dist/sn-gauge.js +5 -5
- package/dist/sn-gauge.systemjs.js +3 -3
- package/package.json +27 -27
- package/sn-gauge-ext/dist/sn-gauge.js +5 -5
- package/sn-gauge-ext/sn-gauge.qext +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-gauge v0.
|
|
3
|
-
* Copyright (c)
|
|
2
|
+
* @nebula.js/sn-gauge v0.9.0
|
|
3
|
+
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["qlik-chart-modules","qlik-object-conversion","@nebula.js/stardust","picasso-plugin-q","picasso.js"],(function(e){"use strict";var t,i,n,a,o,r,s,l,c,u,h,d,p,m,g,f,y,x,v,b,S,M,k,w,I;return{setters:[function(e){t=e.fontResolver,i=e.getValue,n=e.setValue,a=e.cache,o=e.layoutService,r=e.dockService,s=e.colorService,l=e.themeService},function(e){c=e.default},function(e){u=e.useElement,h=e.useOptions,d=e.useState,p=e.useEffect,m=e.useAppLayout,g=e.useStaleLayout,f=e.useTheme,y=e.useApp,x=e.useModel,v=e.useRect,b=e.useTranslator,S=e.useInteractionState,M=e.usePromise,k=e.onTakeSnapshot},function(e){w=e.default},function(e){I=e.default}],execute:function(){function A(e){return{dimensions:{min:0,max:0},measures:{min:1,max:1,description:()=>e.translator.get("Visualizations.Descriptions.Gauge.Measure")}}}e("default",(function(e){return function(e){if(e&&e.get&&e.add){const t="Object.Gauge.RangeIsDefault";if(e.get(t)!==t)return;Object.keys(qi).forEach((t=>{e.add(qi[t])}))}}(e.translator),{qae:_i(e),ext:P(e),component(){const e=Ft(),t=Jt({core:e}),i=Ti({core:e,services:t});Gt({core:e,settings:i,services:t}),$i({services:t})}}}));const L=(e,i,n)=>{const a=t({theme:n,translator:i,flags:e,config:{id:"gauge",paths:["axis.title","axis.label.name","label.value"]}});return{component:"styling-panel",chartTitle:"Object.Gauge",translation:"LayerStyleEditor.component.styling",useBackground:!0,subtitle:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,items:{axisTitleSection:{translation:"properties.axis.title",component:"panel-section",items:{labelSection:{component:"items",ref:"components",key:"axis",items:{fontWrapper:{component:"inline-wrapper",items:{fontFamily:{ref:"axis.title.fontFamily",component:"dropdown",options:()=>a.getOptions("axis.title.fontFamily"),defaultValue:()=>a.getDefaultValue("axis.title.fontFamily")},fontColor:{ref:"axis.title.color",component:"color-picker",defaultValue:()=>({color:n.getStyle("object.gauge","axis.title","color")}),width:!1}}}}}}},axisLabelSection:{translation:"properties.axis.label",component:"panel-section",items:{labelSection:{component:"items",ref:"components",key:"axis",items:{fontWrapper:{component:"inline-wrapper",items:{fontFamily:{ref:"axis.label.name.fontFamily",component:"dropdown",options:()=>a.getOptions("axis.label.name.fontFamily"),defaultValue:()=>a.getDefaultValue("axis.label.name.fontFamily"),width:!0},fontColor:{ref:"axis.label.name.color",component:"color-picker",defaultValue:()=>({color:n.getStyle("object.gauge","axis.label.name","color")}),width:!1}}}}}}},valueLabelSection:{translation:"properties.value.label",component:"panel-section",items:{labelSection:{component:"items",ref:"components",key:"value",items:{fontWrapper:{component:"inline-wrapper",items:{fontFamily:{ref:"label.value.fontFamily",component:"dropdown",options:()=>a.getOptions("label.value.fontFamily"),defaultValue:()=>a.getDefaultValue("label.value.fontFamily"),width:!0},fontColor:{ref:"label.value.color",component:"color-picker",defaultValue:()=>({color:n.getStyle("object.gauge","label.value","color")}),width:!1}}}}}}}}}};let N;function R(e){return"measure"===i(e,"color.useBaseColors")}function P(e){const{flags:t,translator:a,sense:o}=e,r=null==o?void 0:o.theme,s=()=>{var e;if(!r)return-1;const{primary:t}=r.getDataColorSpecials(),i=null===(e=r.getDataColorPickerPalettes()[0])||void 0===e?void 0:e.colors,n=i.indexOf(t);return{index:-1===n?Math.min(6,i.length-1):n}};return{definition:{type:"items",component:"accordion",items:{data:{uses:"data",items:{measures:{disabledRef:""}}},addons:{type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines",items:{colorBackground:{show:!1}}}}},settings:{type:"items",uses:"settings",component:"expandable-items",translation:"Common.Appearance",items:{simpleLabels:{items:{labels:{items:{header:{show(e){var t;return null===(t=e.qHyperCubeDef.qMeasures)||void 0===t?void 0:t.length}},measureTitle:{component:"checkbox",ref:"measureAxis.show",type:"string",translation:"Simple.Label.Measure.Hide",defaultValue:"all",show(e){var t;return null===(t=e.qHyperCubeDef.qMeasures)||void 0===t?void 0:t.length},convertFunctions:{get:(e,t,i,n)=>"labels"===n.measureAxis.show||"none"===n.measureAxis.show,set(e,t,i,n,a){a.measureAxis.show=e?"labels":"all"}}}}}}},presentation:{type:"items",grouped:!0,translation:"properties.presentation",items:{styleEditor:L(t,a,r),rangeLimits:{type:"items",items:{text:{component:"text",translation:"properties.axis.rangeLimits",style:"sHeader"},min:{ref:"measureAxis.min",translation:"properties.axis.min",type:"number",expression:"optional",invalid:e=>e.measureAxis&&e.measureAxis.min>=e.measureAxis.max,change(e){n(e,"disclaimerClosed",!0)}},max:{ref:"measureAxis.max",translation:"Common.Max",type:"number",expression:"optional",defaultValue:100,invalid:e=>e.measureAxis&&e.measureAxis.min>=e.measureAxis.max,change(e){n(e,"disclaimerClosed",!0)}}}},type:{ref:"gaugetype",type:"string",component:"item-selection-list",defaultValue:"radial",horizontal:!0,items:[{icon:"gauge_gauge",component:"icon-item",labelPlacement:"bottom",translation:"properties.gauge.radial",value:"radial"},{icon:"gauge_vertical_bar",component:"icon-item",labelPlacement:"bottom",translation:"properties.gauge.bar",value:"bar"}],change(e){"radial"===e.gaugetype?(N=e.orientation,e.orientation="horizontal"):e.orientation=N}},autoOrientation:{ref:"autoOrientation",translation:"properties.orientation",type:"boolean",defaultValue:!0,component:"switch",undefinedValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],show:e=>"bar"===e.gaugetype},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"horizontal",horizontal:!0,items:[{component:"icon-item",icon:"direction_up_down",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"direction_left_right",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:e=>"bar"===e.gaugetype&&!e.autoOrientation},segments:{type:"items",items:{useSegments:{ref:"useSegments",type:"boolean",component:"switch",defaultValue:!1,translation:"properties.gauge.useSegments",change(e){const t=function(e){const{paletteColors:t,colors:i}=e;return t&&t.length?t:i&&i.length?i.map((e=>({index:e.color}))):void 0}(e.segmentInfo);t&&(e.useSegments&&1===t.length?e.segmentInfo.paletteColors=[e.paletteProgressColor||e.progressColor]:e.paletteProgressColor=t[0])},options:[{value:!1,translation:"properties.off"},{value:!0,translation:"properties.on"}]},useBaseColor:{ref:"color.useBaseColors",type:"string",defaultValue:"measure",translation:"properties.useLibraryMeasureColors",component:"switch",show:e=>(e.color||(e.color={}),e.color.useBaseColors||(e.color.useBaseColors="off"),!0),options:[{value:"off",translation:"properties.off"},{value:"measure",translation:"properties.on"}]},paletteProgressColor:{component:"color-picker",translation:"properties.color",ref:"paletteProgressColor",type:"object",dualOutput:!0,defaultValue:s,show(e){if(!i(e,"paletteProgressColor")){let t=function({progressColor:e,theme:t}){var i;const n=null===(i=t.getDataColorPickerPalettes()[0])||void 0===i?void 0:i.colors;return null!=e?void 0!==e.index&&-1!==e.index&&n[e.index]?n[e.index]:void 0!==e.color?e.color?e.color:"none":n[e]?n[e]:e||"none":"none"}({progressColor:i(e,"progressColor"),theme:r}),a=-1;t&&"none"!==t||(t=s(),a=t.index),n(e,"paletteProgressColor",{index:a,color:t})}return!R(e)&&!e.useSegments}},segmentInfo:{ref:"segments",type:"items",component:"color-scale-creator",show:e=>!R(e)&&e.useSegments,items:{limits:{ref:"segmentInfo.limits",type:"array",items:{value:{ref:"value",type:"number",expression:"optional",invalid:(e,t)=>"number"==typeof e.value&&(e.value<t.measureAxis.min||e.value>t.measureAxis.max),defaultValue:1}}},paletteColors:{items:{color:{ref:"color",type:"string"},index:{ref:"index",type:"integer",defaultValue:6}},type:"array",ref:"segmentInfo.paletteColors"}}}}},disclaimerClosed:{ref:"disclaimerClosed",type:"boolean",defaultValue:!1,show:!1}}},measureAxis:{type:"items",label:(t,i)=>(t=>{let i;const n=t.getMeasureLayouts()[0];return i=n&&!n.qError?`${e.translator.get("properties.measureAxis")}: ${n.qFallbackTitle}`:e.translator.get("properties.measureAxis"),i})(i),grouped:!0,items:{axis:{type:"items",snapshot:{title:"properties.measureAxis",tid:"property-yAxis"},items:{show:{ref:"measureAxis.show",translation:"properties.axis.labelsAndTitle",type:"string",component:"dropdown",options:[{value:"all",translation:"properties.axis.show.all"},{value:"labels",translation:"properties.axis.show.labels"},{value:"title",translation:"properties.axis.show.title"},{value:"none",translation:"Common.None"}],defaultValue:"all"},spacing:{ref:"measureAxis.spacing",translation:"properties.axis.scale",type:"number",component:"dropdown",defaultValue:1,show:e=>e.measureAxis&&"none"!==e.measureAxis.show&&"title"!==e.measureAxis.show,options:[{value:2,translation:"properties.gridLine.wide"},{value:1,translation:"properties.gridLine.medium"},{value:.5,translation:"properties.gridLine.narrow"}]}}}}}}}}},support:{cssScaling:!1,snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!0},importProperties:(t,i,n,a)=>c.axisChart.importProperties({exportFormat:t,initialProperties:i,hypercubePath:a,extension:n,dataDefinition:A(e)}),exportProperties:(e,t,i)=>c.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:i,supportedAutoMinMax:!1})}}const C={require:["chart","renderer"],renderer:"dom",render(e){var t;return function({chart:e,settings:t,h:i}){if(!e)return[];const n=function({h:e,settings:t}){if(!t)return[];const{isRtl:i,title:n,text:a}=t,o={disclaimer:{borderRadius:"10px",border:"1px solid #404040",position:"absolute",top:"10%",left:"50%",margin:"0 0 0 -150px",width:"298px",cursor:"default",background:"white",direction:i?"rtl":"ltr"},closeIcon:{position:"absolute",[i?"left":"right"]:"5px",top:"3px",cursor:"pointer",color:"#595959",pointerEvents:"auto"},dmHeader:{color:"#575859",fontSize:"18px",paddingLeft:"20px",paddingTop:"10px",paddingRight:"20px",paddingBottom:"0px",maxHeight:"44px",overflow:"hidden"},dmMain:{display:"block",color:"#575859",paddingLeft:"20px",paddingRight:"20px",paddingTop:"10px",paddingBottom:"10px"},dmP:{paddingBottom:"10px"}};return[e("div",{style:o.disclaimer},e("div",{style:o.closeIcon,onClick:()=>null==t?void 0:t.close()},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},e("defs",{},e("path",{id:"remove-a",d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"})),e("use",{xlinkHref:"#remove-a"}))),e("header",{style:o.dmHeader},n),e("main",{style:o.dmMain},e("p",{style:o.dmP},a)))]}({settings:t,h:i});return n}({chart:this.chart,settings:null===(t=this.settings)||void 0===t?void 0:t.settings,h:e})}},E=52,D=-.7*Math.PI,T=.7*Math.PI,q="#EEEEEE",z=2.38,_={MIN:12,MAX:60},$={MIN:100,MAX:1e3},V={LEFT:4,RIGHT:4},F={VERTICAL_ALIGNMENT_FACTOR:.4},B={VERTICAL_ALIGNMENT_FACTOR:.5},O=1.15,G=2,H=1.2,W="#595959",j="#E6E6E6",U=.4,X=1,K=2,Z=.15,J=20,Y=150,Q=12,ee=8,te=70,ie=3,ne={MEASURE:"measure"},ae={BAR:"bar",SEGMENT_BAR:"segment-bar",LABEL_BAR:"label-bar",BACKGROUND_BAR:"background-bar",MARK:"mark",OOB_INDICATOR:"oob-indicator",BAR_AXIS:"bar-axis",AXIS_TITLE:"axis-title",GAUGE_LABEL:"gauge-label",RADIAL_AXIS:"radial-axis",RADIAL_GAUGE_NEEDLE:"radial-gauge-needle",RADIAL_OOB_INDICATOR_MIN:"radial-oob-indicator-min",RADIAL_OOB_INDICATOR_MAX:"radial-oob-indicator-max",RADIAL_GAUGE:"radial-gauge",CIRCLE_GAUGE:"circle-gauge",REFERENCE_LINES_AND_LABELS:"reference-lines-and-labels",RADIAL_SPARK:"radial-spark",RADIAL_GAUGE_LABEL:"radial-gauge-label",RADIAL_REFERENCE_LINES:"radial-reference-lines",SEGMENT_RADIAL_GAUGE:"segment-radial-gauge",LABEL_RADIAL_GAUGE:"label-radial-gauge"},oe="color",re=1e-4,se="XSMALL",le="XSMALL_VERTICAL",ce="XSMALL_HORIZONTAL",ue="SMALL",he="MEDIUM",de={FULL:{width:550,height:450},MEDIUM:{width:300,height:150},SMALL:{width:150,height:84},SMALLER:{width:150,height:75},XSMALL:{width:84,height:84},XSMALL_VERTICAL:{width:105,height:0},XSMALL_HORIZONTAL:{width:0,height:104},SPARK:{height:75,width:50}},pe=600,me=200,ge=500;function fe(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function ye(e,t){var i=Object.create(e.prototype);for(var n in t)i[n]=t[n];return i}function xe(){}var ve=.7,be=1/ve,Se="\\s*([+-]?\\d+)\\s*",Me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ke="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",we=/^#([0-9a-f]{3,8})$/,Ie=new RegExp(`^rgb\\(${Se},${Se},${Se}\\)$`),Ae=new RegExp(`^rgb\\(${ke},${ke},${ke}\\)$`),Le=new RegExp(`^rgba\\(${Se},${Se},${Se},${Me}\\)$`),Ne=new RegExp(`^rgba\\(${ke},${ke},${ke},${Me}\\)$`),Re=new RegExp(`^hsl\\(${Me},${ke},${ke}\\)$`),Pe=new RegExp(`^hsla\\(${Me},${ke},${ke},${Me}\\)$`),Ce={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ee(){return this.rgb().formatHex()}function De(){return this.rgb().formatRgb()}function Te(e){var t,i;return e=(e+"").trim().toLowerCase(),(t=we.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?qe(t):3===i?new Ve(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?ze(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?ze(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Ie.exec(e))?new Ve(t[1],t[2],t[3],1):(t=Ae.exec(e))?new Ve(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Le.exec(e))?ze(t[1],t[2],t[3],t[4]):(t=Ne.exec(e))?ze(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Re.exec(e))?We(t[1],t[2]/100,t[3]/100,1):(t=Pe.exec(e))?We(t[1],t[2]/100,t[3]/100,t[4]):Ce.hasOwnProperty(e)?qe(Ce[e]):"transparent"===e?new Ve(NaN,NaN,NaN,0):null}function qe(e){return new Ve(e>>16&255,e>>8&255,255&e,1)}function ze(e,t,i,n){return n<=0&&(e=t=i=NaN),new Ve(e,t,i,n)}function _e(e){return e instanceof xe||(e=Te(e)),e?new Ve((e=e.rgb()).r,e.g,e.b,e.opacity):new Ve}function $e(e,t,i,n){return 1===arguments.length?_e(e):new Ve(e,t,i,null==n?1:n)}function Ve(e,t,i,n){this.r=+e,this.g=+t,this.b=+i,this.opacity=+n}function Fe(){return`#${He(this.r)}${He(this.g)}${He(this.b)}`}function Be(){const e=Oe(this.opacity);return`${1===e?"rgb(":"rgba("}${Ge(this.r)}, ${Ge(this.g)}, ${Ge(this.b)}${1===e?")":`, ${e})`}`}function Oe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ge(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function He(e){return((e=Ge(e))<16?"0":"")+e.toString(16)}function We(e,t,i,n){return n<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new Ue(e,t,i,n)}function je(e){if(e instanceof Ue)return new Ue(e.h,e.s,e.l,e.opacity);if(e instanceof xe||(e=Te(e)),!e)return new Ue;if(e instanceof Ue)return e;var t=(e=e.rgb()).r/255,i=e.g/255,n=e.b/255,a=Math.min(t,i,n),o=Math.max(t,i,n),r=NaN,s=o-a,l=(o+a)/2;return s?(r=t===o?(i-n)/s+6*(i<n):i===o?(n-t)/s+2:(t-i)/s+4,s/=l<.5?o+a:2-o-a,r*=60):s=l>0&&l<1?0:r,new Ue(r,s,l,e.opacity)}function Ue(e,t,i,n){this.h=+e,this.s=+t,this.l=+i,this.opacity=+n}function Xe(e){return(e=(e||0)%360)<0?e+360:e}function Ke(e){return Math.max(0,Math.min(1,e||0))}function Ze(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}fe(xe,Te,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ee,formatHex:Ee,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return je(this).formatHsl()},formatRgb:De,toString:De}),fe(Ve,$e,ye(xe,{brighter(e){return e=null==e?be:Math.pow(be,e),new Ve(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ve:Math.pow(ve,e),new Ve(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ve(Ge(this.r),Ge(this.g),Ge(this.b),Oe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Fe,formatHex:Fe,formatHex8:function(){return`#${He(this.r)}${He(this.g)}${He(this.b)}${He(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Be,toString:Be})),fe(Ue,(function(e,t,i,n){return 1===arguments.length?je(e):new Ue(e,t,i,null==n?1:n)}),ye(xe,{brighter(e){return e=null==e?be:Math.pow(be,e),new Ue(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ve:Math.pow(ve,e),new Ue(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*t,a=2*i-n;return new Ve(Ze(e>=240?e-240:e+120,a,n),Ze(e,a,n),Ze(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new Ue(Xe(this.h),Ke(this.s),Ke(this.l),Oe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Oe(this.opacity);return`${1===e?"hsl(":"hsla("}${Xe(this.h)}, ${100*Ke(this.s)}%, ${100*Ke(this.l)}%${1===e?")":`, ${e})`}`}}));const Je=Math.PI/180,Ye=180/Math.PI,Qe=.96422,et=.82521,tt=4/29,it=6/29,nt=3*it*it,at=it*it*it;function ot(e){if(e instanceof rt)return new rt(e.l,e.a,e.b,e.opacity);if(e instanceof dt)return pt(e);e instanceof Ve||(e=_e(e));var t,i,n=ut(e.r),a=ut(e.g),o=ut(e.b),r=st((.2225045*n+.7168786*a+.0606169*o)/1);return n===a&&a===o?t=i=r:(t=st((.4360747*n+.3850649*a+.1430804*o)/Qe),i=st((.0139322*n+.0971045*a+.7141733*o)/et)),new rt(116*r-16,500*(t-r),200*(r-i),e.opacity)}function rt(e,t,i,n){this.l=+e,this.a=+t,this.b=+i,this.opacity=+n}function st(e){return e>at?Math.pow(e,1/3):e/nt+tt}function lt(e){return e>it?e*e*e:nt*(e-tt)}function ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ut(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ht(e,t,i,n){return 1===arguments.length?function(e){if(e instanceof dt)return new dt(e.h,e.c,e.l,e.opacity);if(e instanceof rt||(e=ot(e)),0===e.a&&0===e.b)return new dt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ye;return new dt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new dt(e,t,i,null==n?1:n)}function dt(e,t,i,n){this.h=+e,this.c=+t,this.l=+i,this.opacity=+n}function pt(e){if(isNaN(e.h))return new rt(e.l,0,0,e.opacity);var t=e.h*Je;return new rt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function mt(e){return function(e){return ht(e).l<70}(e)?j:W}function gt(e,t=!0){let i="";for(let t=0;t<e.length;t++){const n=e[t];i+=0===t?`M${n.x} ${n.y}`:`L${n.x} ${n.y}`,i+=" "}return t&&(i+="Z"),i}function ft(e){const{angle:t,origin:i}=e,n=e.points.map((e=>function(e,t,i={x:0,y:0}){const n=Math.cos(t),a=Math.sin(t),o=(s=i,{x:(r=e).x-s.x,y:r.y-s.y});var r,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:n*o.x-a*o.y,y:a*o.x+n*o.y},i)}(e,t,i)));return{type:"path",fill:e.fill,d:gt(n)}}fe(rt,(function(e,t,i,n){return 1===arguments.length?ot(e):new rt(e,t,i,null==n?1:n)}),ye(xe,{brighter(e){return new rt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new rt(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,i=isNaN(this.b)?e:e-this.b/200;return new Ve(ct(3.1338561*(t=Qe*lt(t))-1.6168667*(e=1*lt(e))-.4906146*(i=et*lt(i))),ct(-.9787684*t+1.9161415*e+.033454*i),ct(.0719453*t-.2289914*e+1.4052427*i),this.opacity)}})),fe(dt,ht,ye(xe,{brighter(e){return new dt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new dt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return pt(this).rgb()}}));const yt={require:["chart"],defaultSettings:{settings:{},style:{}},render(){var e;return function({chart:e,settings:t}){if(!e||!t)return[];const{size:i,component:n,selector:a,pointingTo:o,isRtl:r,width:s,height:l}=t;if(!e.component(t.component))return[];const c=e.findShapes(a).filter((e=>e.key===n));if(null==c||!c.length)return[];let u=s/2,h=l/2,d=-Math.PI/2;const p=i/3;switch(o){case"top":h=p;break;case"bottom":h=l-p,d=3*Math.PI/2-Math.PI;break;case"right":u=s-p,d=0;break;case"left":u=p,d=Math.PI}const m=[];for(let e=0;e<c.length;e+=1){const t=c[e];let a=["top",...r?["left"]:["right"]].includes(o)?t.attrs.fill:q;if(n===ae.SEGMENT_BAR){const{stops:e}=t.attrs.fill;if(["top","right"].includes(o)){const t=e.find((e=>1===e.offset));a=(null==t?void 0:t.color)||W}else{const t=e.toReversed().find((e=>0===e.offset));a=(null==t?void 0:t.color)||W}}const s=mt(a),l={x:u,y:h},p=i/6,g=ft({points:[{x:l.x+2*p,y:l.y},{x:l.x,y:l.y+p},{x:l.x,y:l.y-p}],angle:d,fill:s,origin:l});m.push(g)}return m}({chart:this.chart,settings:null===(e=this.settings)||void 0===e?void 0:e.settings})}};function xt({services:e}){var t;const{colorService:i,layoutService:n,themeService:a}=e,{useBaseColors:o}=n.getLayout().color||{},{baseColor:r}=(null===(t=n.getLayout().qHyperCube)||void 0===t?void 0:t.qMeasureInfo[0].coloring)||{};if("off"===o)return i.getColor();let s;if(!r)return i.getColor();{var l,c,u;const e=(null===(l=a.getTheme().getDataColorPickerPalettes()[0])||void 0===l?void 0:l.colors)||[];s=null!==(c=r.color)&&void 0!==c?c:W;const t=null!==(u=r.index)&&void 0!==u?u:-1;e.length>0&&t>-1&&t<e.length&&(s=e[t])}return()=>s}function vt(e,t,i,n){const a=Math.floor(Math.min(e,t)),o=Math.abs(n-i),r=.02*Math.tan(-o/4+Math.PI/2),s=2*(.4+r)-2*kt(e,t)/a;return{innerRadius:s-2*(a>500?50:Math.max(a/ge*50,10))/a,outerRadius:s,radiusIncrease:r,labelGaugeRadius:1.39*(.4+r)}}function bt(e,t,i,n){const a=n-Math.PI/2;return{x:e+i*Math.cos(a),y:t+i*Math.sin(a)}}function St({innerRadius:e,outerRadius:t,width:i,height:n}){return(t-e)*Math.min(i,n)/2}function Mt(e){return!1!==e.show&&0!==e.show&&"0"!==e.show}function kt(e,t){return Math.min(6,Math.min(e,t)/me)}function wt(e,t){return 4*vt(e,t,D,T).radiusIncrease*Math.min(e,t)}const It={require:["chart","symbol"],defaultSettings:{settings:{},style:{}},render(){var e;return function({chart:e,settings:t,symbol:i}){if(!e||!t||!i)return[];if(!e.component(t.component))return[];const{valueAngle:n,width:a,height:o}=t,{outerRadius:r,innerRadius:s}=vt(a,o,D,T),l=St({innerRadius:s,outerRadius:r,width:a,height:o}),c=a/2,u=o/2,h=r*Math.min(a,o)/2,d=bt(c,u,h,t.valueAngle),p=d.x,m=d.y,g=[],f=q,y=t.fill||mt(f),x={x:p,y:m},v=l/6,b=[{x:x.x+.3*v,y:x.y},{x:x.x-7.5*v,y:x.y+v},{x:x.x-7.5*v,y:x.y-v}],S=n-Math.PI/2,M=ft({points:b,angle:S,fill:y,origin:x});return M.data={pointerWidth:v,angle:S,radius:h,fill:y},g.push(M),g}({chart:this.chart,settings:null===(e=this.settings)||void 0===e?void 0:e.settings,symbol:this.symbol})}};const At={require:["chart","symbol"],defaultSettings:{settings:{},style:{}},render(){var e;return function({chart:e,settings:t,symbol:i}){if(!e||!t||!i)return[];const{size:n,component:a,selector:o,angle:r,radius:s,width:l,height:c}=t;if(!e.component(t.component))return[];const u=e.findShapes(o).filter((e=>e.key===a));if(null==u||!u.length)return[];const h=l/2,d=c/2,{x:p,y:m}=bt(h,d,s,r),g=[],f=t.fill,y=r===D?-1:1,x={x:p,y:m},v=n/6,b=ft({points:[{x:x.x+(2*v+1)*y,y:x.y+.5},{x:x.x+1*y,y:x.y+v+.5},{x:x.x+1*y,y:x.y-v+.5}],angle:r,fill:f,origin:x});return g.push(b),g}({chart:this.chart,settings:null===(e=this.settings)||void 0===e?void 0:e.settings,symbol:this.symbol})}};function Lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nt,Rt;var Pt=function(){if(Rt)return Nt;Rt=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,i=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(i){if(!i||"[object Object]"!==t.call(i))return!1;var n,a=e.call(i,"constructor"),o=i.constructor&&i.constructor.prototype&&e.call(i.constructor.prototype,"isPrototypeOf");if(i.constructor&&!a&&!o)return!1;for(n in i);return void 0===n||e.call(i,n)},r=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,i){if("__proto__"===i){if(!e.call(t,i))return;if(n)return n(t,i).value}return t[i]};return Nt=function e(){var t,i,n,l,c,u,h=arguments[0],d=1,p=arguments.length,m=!1;for("boolean"==typeof h&&(m=h,h=arguments[1]||{},d=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});d<p;++d)if(null!=(t=arguments[d]))for(i in t)n=s(h,i),h!==(l=s(t,i))&&(m&&l&&(o(l)||(c=a(l)))?(c?(c=!1,u=n&&a(n)?n:[]):u=n&&o(n)?n:{},r(h,{name:i,newValue:e(m,u,l)})):void 0!==l&&r(h,{name:i,newValue:l}));return h},Nt}(),Ct=Lt(Pt);let Et;function Dt(){Et=Et||document.createElement("canvas").getContext("2d")}const Tt={measureTextWidth(e){Dt();const{width:t}=Et.measureText(e);return t},lineWrap(e,t,i,n){let a,o;Dt();const r=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,h,d=e?e.split(/\s+/):[],p=r[0];if("number"!=typeof t||t<=0)return[e];if("number"==typeof n&&r.length>=n)return r.slice(0,n);for(i&&(Et.font=i),o=0;o<r.length;o++){for(h=r[o],d=h.split(/\s+/),[p]=d,u="",a=1;a<d.length;a++)if(l=`${p} ${d[a]}`,c=Tt.measureTextWidth(l),c>t&&("number"!=typeof n||n>s.length)?(s.push(p),p=d[a]):p=l,"number"==typeof n&&s.length>=n){u=d.slice(a+1).join(" ");break}"number"!=typeof n||s.length<n?s.push(p):s[Math.max(0,s.length-1)]=`${s[Math.max(0,s.length-1)]} ${p} ${u}`}return s},wordWrap(e,t,i,n,a){if(Dt(),!e||!e.length)return[];i&&(Et.font=i);let o=[];const r=e.slice();let s,l,c,u="";if(r.filter((e=>!!e)),"number"!=typeof t||t<0)return e.slice();for(c=0;c<r.length;c++){var h;if(l=r[c],u="",l.length<=1||Tt.measureTextWidth(l)<=t)o.push(l);else if(s=Tt.splitWord(l,t,void 0,void 0===n?void 0:n-o.length),s.length<=1)o.push(s[0]);else u=null!==(h=s.pop())&&void 0!==h?h:"",o=o.concat(s),r[c+1]?Tt.measureTextWidth(`${u} ${r[c+1]}`)>t&&(void 0===n||o.length+r.length-c<=n)?r.splice(c+1,0,u):r[c+1]=`${u} ${r[c+1]}`:r.push(u)}return o.forEach(((e,t,i)=>{i[t]=e.trim()})),void 0!==n&&o.length>n?(o=o.splice(0,n),o[o.length-1]=Tt.truncate(o[o.length-1],t,i,a).text):(l=o[o.length-1],l&&l.length>1&&Tt.measureTextWidth(l)>t&&(o[o.length-1]=Tt.truncate(l,t,i,a).text)),o},truncate(e,t,i,n="…"){Dt();let a,o,r,s,l=e;const c=Tt.measureTextWidth("i");if(i&&(Et.font=i),e&&t){if(Tt.measureTextWidth(l)>t){const e=Math.ceil(t/c);for(a=Math.min(e,l.length);a>0;a--)if(o=l.substring(0,a-1),r=o.trim()+n,Tt.measureTextWidth(r)<=t){s=l.substring(a-1),l=r;break}a||(s=l,l="…")}}else s=void 0;return{text:l,rest:s}},isNumber:e=>"number"==typeof e&&Number.isFinite(e),explodeWord(e,t,i,n){let a;Dt();let o,r=e,s="",l=[];if(void 0!==i&&Tt.isNumber(i)&&i<=1)return[e];const c=Math.ceil(t/n);for(a=Math.min(e.length,c);a>0&&(r=e.substring(0,a),o=e.substring(a-1,a)," "===o?r=e.substring(0,a-1):r+="-",s=e.substring(a),!(Tt.measureTextWidth(r)<=t));a--);return(!a&&!r||Tt.measureTextWidth(r)>t)&&(r=e.substring(0,1),s=e.substring(1)),l.push(r),s?(Tt.measureTextWidth(s)>t?l=l.concat(Tt.explodeWord(s,t,void 0===i?void 0:i-1,n)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,i,n)=>(Dt(),e&&t?(i&&(Et.font=i),Tt.explodeWord(e,t,n,Math.max(1,Tt.measureTextWidth("i")))):[]),wrapText(e,t,i,n,a="…"){let o;return Number.isNaN(t)||!t?[e]:(o=void 0===n||n>1?Tt.lineWrap(e,t,i,n):[e],o=Tt.wordWrap(o,t,i,n,a),o)},getFontHeight:e=>(Dt(),e&&(Et.font=e),1.5*Tt.measureTextWidth("m")),tokenize(e,t,i,n,a,o,r=1){Dt(),t&&(Et.font=t);const s=Tt.getFontHeight(),l=r*s;let c=[],u=[];if(void 0!==o&&o<s)return[];const h=o?Math.max(1,Math.floor(o/l)):n||1;return c=[void 0===n||Number.isNaN(n)||n<=0?h:Math.min(h,n)],Array.isArray(e)?e.forEach(((e,i)=>{u.length<h&&(u=u.concat(Tt.wrapText(e,a,t,c[i])))})):u=Tt.wrapText(e,a,t,c[0],i),u}};function qt({chart:e,renderer:t,refLine:i,settings:n,width:a,height:o,barWidth:r}){if(!e||!t||!n)return{};const{position:s,scale:l,value:c,label:u,line:h,formatter:d,cId:p}=i,m=i.radius?i.radius*(Math.min(a,o)/2):a/2,g=(T-D)*s+D-Math.PI/2,f={x:a/2,y:o/2},y=Ct(!0,{},n.style.line,h||{}),x={type:"line",cId:p,...{x1:f.x+Math.cos(g)*m,y1:f.y+Math.sin(g)*m,x2:f.x+Math.cos(g)*(m+r),y2:f.y+Math.sin(g)*(m+r)},data:{angle:g,innerRadius:m},stroke:y.stroke,strokeWidth:y.strokeWidth,strokeDasharray:y.strokeDasharray};let v;if(u){const i=Ct(!0,{fill:"#000",fontFamily:"Arial",fontSize:"12px",opacity:1,padding:5,background:{fill:"#fff",stroke:"transparent",strokeWidth:0,opacity:.5}},n.style.label||{},{fill:y.stroke},u),{fontFamily:s,fontSize:h,fill:x,opacity:b}=i,S=!1!==u.showLabel?i.text:"";let M,k="";if("string"==typeof d||"object"==typeof d)M=e.formatter(d);else if(void 0!==l&&"string"!=typeof l&&"function"==typeof l.data){const e=l.data()&&l.data().fields;M=e&&e[0]?e[0].formatter():null}!1!==u.showValue&&(M?k=` (${M("function"==typeof c?c():c)})`:l&&(k=` (${c})`));const w=e=>t.measureText({text:e,fontFamily:s,fontSize:h}),I=w("M").height,A=`normal ${h} ${s}`;let L,N=ie;const R=`${S}${k}`||"",P=Math.min(a,o),C=Math.min(8,P/200),E=bt(f.x,f.y,m+r+C,g+Math.PI/2),D=w(R).width;L=Math.min(E.x,a-E.x-z,te),N=function(e,t,i){const n=Math.min(Math.floor((e+z)/t),Math.floor((i-e)/t));return Math.min(n,ie)}(E.y,I,o);let T=Tt.tokenize(R,A,`... ${k}`,N,L,void 0);const q=function(e){let t="start";const i=e>-Math.PI&&e<0?"baseline":"hanging";return(e+=Math.PI/2)<0&&e>-Math.PI?t="end":e>0&&e<Math.PI&&(t="start"),{textAnchor:t,baseline:i}}(g);E.y-2*I>0&&E.y+2*I<o&&(E.x-D+z<0&&"end"===q.textAnchor||E.x+D-z>a)&&(T=Tt.tokenize(R,A,`... ${k}`,N,L,void 0)),v={fill:x,opacity:b,fontFamily:s,fontSize:h,linePosition:E,lineHeight:I,align:"left",baseline:q.baseline,textAnchor:q.textAnchor,lines:T,cId:p}}return{lineNode:x,labelNode:v}}const zt={require:["chart","renderer"],defaultSettings:{style:{line:{stroke:"#000"}}},render(){var e,t;const{settings:i,chart:n,renderer:a,rect:o}=this;if(!(n&&o&&i&&a))return[];const{width:r,height:s}=o,l=null!==(e=null==i||null===(t=i.settings)||void 0===t?void 0:t.barWidth)&&void 0!==e?e:0;let c=(null==i?void 0:i.lines)&&i.lines.radial||[];if(0===c.length)return[];c=c.map((e=>{if("function"==typeof e.value&&(e.value=e.value()),e.scale){const t=null==n?void 0:n.scale("string"==typeof e.scale?e.scale:""),i=t(e.value);return Ct(e,{scale:t,position:i})}return Ct(e,{position:e.value})}));const u=[],h=[];[...c].forEach((e=>{if(e.position>=0&&e.position<=1){const{lineNode:t,labelNode:o}=qt({chart:n,renderer:a,refLine:e,settings:i,width:r,height:s,barWidth:l});t&&u.push(t),o&&h.push(o)}}));const d=[];h.forEach((e=>{const{fill:t,opacity:i,fontFamily:n,fontSize:a,lines:o,lineHeight:r,textAnchor:s,linePosition:l,baseline:c,cId:u}=e,h=l,p=o.length-1,m=o.map(((e,o)=>{let l=h.y;return p>0&&("baseline"===c?l-=(p-o)*r:l+=o*r),{type:"text",text:e,cId:u,baseline:c,anchor:s,fill:t,opacity:i,fontFamily:n,fontSize:a,x:h.x,y:l}}));d.push(...m)}));const{MEDIUM:p,SMALLER:m}=de,g=r>=p.width&&s>=p.height;return[...r>=m.width&&s>=m.height?u:[],...g?d:[]]}};const _t={require:["chart","symbol"],defaultSettings:{settings:{},style:{}},render(){var e;return function({chart:e,settings:t,symbol:i}){if(!e||!t||!i)return[];const{valueAngle:n,width:a,height:o}=t,r=.4*Math.min(a,o),s=[],l=t.fill,c={x:a/2,y:o/2},u=ft({points:[{x:c.x-r/2,y:c.y+r/2},{x:c.x,y:c.y-r},{x:c.x+r/2,y:c.y+r/2}],angle:n,fill:l,origin:c});return s.push(u),s}({chart:this.chart,settings:null===(e=this.settings)||void 0===e?void 0:e.settings,symbol:this.symbol})}},$t={getGap(e,t){const i=e.position<t.position?e:t,n=e.position<t.position?t:e;return n.position-n.radius-(i.position+i.radius)},findSegmentPositionMeetMaxThenMin(e,t,i){const n=e.position+e.radius,a=e.position-Math.max(0,n-i),o=a-e.radius;return a+Math.max(0,t-o)},layoutPositionFromMin(e,t,i,n=0){const a=e.length-1;let o,r,s,l=t;for(let t=0;t<a;t++)o=e[t],r=e[t+1],s=(o.position+r.position)/2-n/2,o.position=$t.findSegmentPositionMeetMaxThenMin(o,l,s),l=o.position+o.radius+n;r&&(r.position=$t.findSegmentPositionMeetMaxThenMin(r,l,i))},adjustPositionFromMax(e,t,i,n=0){const a=e.length-1,o=Math.max(0,e[a].position+e[a].radius-i);if(0===o)return;let r,s,l,c,u=0;for(r=a;r>0&&(s=e[r],l=e[r-1],c=Math.max(0,$t.getGap(l,s)-n),c-=Math.max(0,u+c-o),u+=c,s.move=c,!(u>=o));r--);for(u<o&&l&&(c=Math.max(0,l.position-l.radius-t),c-=Math.max(0,u+c-o),u+=c,l.move=c),u=0,r=0;r<=a;r++)s=e[r],u+=s.move||0,s.move=u,s.position-=u},createLayout(e,t,i,n=0){const a=e.map((e=>e.segment)),o=a.length-1;if(o<0)return[];if(0===o){const e=a[0];e.position=$t.findSegmentPositionMeetMaxThenMin(e,t,i)}else $t.layoutPositionFromMin(a,t,i,n),$t.adjustPositionFromMax(a,t,i,n);return e.filter((e=>{const n=Math.ceil(e.segment.position-e.segment.radius),a=e.segment.position+e.segment.radius;return n>=t&&a<=i}))}};const Vt={require:["chart","renderer"],defaultSettings:{style:{line:{stroke:"#000"}}},render(){var e,t;const{settings:i,chart:n,renderer:a,rect:o}=this;if(!(n&&o&&i&&a))return[];const{width:r,height:s}=o,{barWidth:l,needlePosition:c}=i.settings,u=null!==(e=null===(t=i.settings)||void 0===t?void 0:t.isRtl)&&void 0!==e&&e,h=u?-1:1,d=(null==i?void 0:i.lines)&&i.lines.x||[],p=(null==i?void 0:i.lines)&&i.lines.y||[];let m=d.length>0?d:p;if(0===m.length)return[];const g=d.length>0;m=m.map((e=>{if("function"==typeof e.value&&(e.value=e.value()),e.scale){const t=null==n?void 0:n.scale("string"==typeof e.scale?e.scale:""),i=t(e.value);return Ct(e,{scale:t,position:i})}return Ct(e,{position:e.value})}));const f=[],y=[];[...m].forEach((e=>{if(Mt(e)&&e.position>=0&&e.position<=1){const{lineNode:t,labelNode:o}=function({chart:e,renderer:t,refLine:i,settings:n,width:a,height:o,isVerticalRefLine:r,barWidth:s}){if(!e||!t||!n)return{};const{position:l,scale:c,value:u,label:h,line:d,formatter:p,cId:m}=i,g=Ct(!0,{},n.style.line,d||{}),f={type:"line",cId:m,...r?{x1:l*a,x2:l*a,y1:o/2-s/2,y2:o/2+s/2}:{x1:a/2-s/2,x2:a/2+s/2,y1:l*o,y2:l*o},stroke:g.stroke,strokeWidth:g.strokeWidth,strokeDasharray:g.strokeDasharray};let y;if(h){const i=Ct(!0,{fill:"#000",fontFamily:"Arial",fontSize:"12px",opacity:1,padding:5,background:{fill:"#fff",stroke:"transparent",strokeWidth:0,opacity:.5}},n.style.label||{},{fill:g.stroke},h),{fontFamily:d,fontSize:f,fill:x,opacity:v}=i,b=!1!==h.showLabel?i.text:"";let S,M="";if("string"==typeof p||"object"==typeof p)S=e.formatter(p);else if(void 0!==c&&"string"!=typeof c&&"function"==typeof c.data){const e=c.data()&&c.data().fields;S=e&&e[0]?e[0].formatter():null}!1!==h.showValue&&(S?M=` (${S("function"==typeof u?u():u)})`:c&&(M=` (${u})`));const k=e=>t.measureText({text:e,fontFamily:d,fontSize:f}),w=k("M").height,I=`normal ${f} ${d}`,A=r?Y:a/2-s/2-Q,L=r?2:1,N=`${b}${M}`||"",R=Tt.tokenize(N,I,`... ${M}`,L,A,void 0),P=(r?a:o)*l,C=Math.min(A,Math.max(...R.map((e=>k(e).width)))),E=R.length*w;y={fill:x,opacity:v,fontFamily:d,fontSize:f,linePosition:P,lineHeight:w,lines:R,cId:m,segment:{position:P,radius:r?C/2:E/2}}}return{lineNode:f,labelNode:y}}({chart:n,renderer:a,refLine:e,settings:i,width:r,height:s,isVerticalRefLine:g,barWidth:l});t&&f.push(t),o&&y.push(o)}}));const{MEDIUM:x,SMALLER:v}=de,b=r>=x.width&&s>=x.height;if(!(r>=v.width&&s>=v.height))return[];const S=[...f];if(!b||0===y.length)return S;let M=[];if(y.sort(((e,t)=>e.segment.position-t.segment.position)),g)M=$t.createLayout(y,0,r,ee);else{const{attrs:e}=n.findShapes("text").filter((e=>e.key===ae.GAUGE_LABEL))[0],{"font-size":t}=e,i=parseFloat(t),a=y.filter((e=>e.segment.position<s-c)),o=y.filter((e=>e.segment.position>=s-c)),r=$t.createLayout(a,0,e.y-i/2),l=$t.createLayout(o,e.y+i/2,s);M=0===r.length&&a.length>0?$t.createLayout(y,e.y+i/2,s):0===l.length&&o.length>0?$t.createLayout(y,0,e.y-i/2):[...r,...l]}return M.forEach((e=>{const{fill:t,opacity:i,fontFamily:n,fontSize:a,lines:o,segment:c,linePosition:d,lineHeight:p,cId:m}=e,{position:f}=c;if(d!==f&&""!==e.lines[0]){let e={x1:r/2+h*(l/2),x2:r/2+h*(l/2+.75*Q),y1:d,y2:f};g&&(e={y1:s/2+l/2,y2:s/2+l/2+Q,x1:d,x2:f});const i={type:"line",...e,stroke:t,strokeWidth:1,isConnector:!0,cId:m};S.push(i)}const y=o.map(((e,o)=>{let c=g?s/2+l/2+p/2+Q:f;return c+=o*p,{type:"text",text:e,cId:m,baseline:"central",anchor:g?"middle":u?"end":"start",fill:t,opacity:i,fontFamily:n,fontSize:a,x:g?f:r/2+h*(l/2+Q),y:c}}));S.push(...y)})),S}},Ft=()=>{const e=u(),t=h(),[i,n]=d({});return p((()=>{e.style.overflow="hidden";const i=I();i.use(w),i.component("oob-indicator",yt),i.component("radial-gauge-needle",It),i.component("radial-custom-ref-line",zt),i.component("custom-ref-line",Vt),i.component("radial-oob-indicator",At),i.component("radial-spark",_t),i.component("disclaimer-component",C);const o=i({renderer:{prio:[t.renderer||"svg"]}}),r=o.chart({element:e,data:[],settings:{}});return n({picassoInstance:o,chart:r,cache:a()}),()=>{r.destroy()}}),[]),i};var Bt={dataRelatedPropertiesPaths:["filters[].options","qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qFallbackTitle","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qNumFormat","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","measureAxis.min","measureAxis.max","refLine.refLines[].refLineExpr"]};function Ot(e){const{qHyperCube:t,...a}=e,{...o}=t||{},r=Ct(!0,{},{...a,qHyperCube:{...o,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:s}=Bt;return s.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==i(r,e)&&n(r,e,null);else{const e=t[0],a=t[1].split("].")[1];i(r,e,[]).forEach((e=>{void 0!==i(e,a)&&n(e,a,null)}))}})),r}const Gt=({core:e,services:t,settings:i})=>{const n=u(),{qLocaleInfo:a}=m();p((()=>{if(!t)return;const{chart:o,cache:r}=e;if(!o)return;const{colorService:s,layoutService:l,dockService:c}=t;if("radial"===l.meta.gaugetype){const{width:e,height:t}=c.meta.chart.size;n.style.transform=`translateY(${wt(e,t)}px)`}else n.style.transform="";o.update({data:[{type:"q",key:"qHyperCube",data:l.getHyperCube(),config:{localeInfo:a}},...s.getData()],settings:i}),r&&function({cache:e,layout:t}){const i=Ot(t);e.set("dataIndependentProperties",JSON.stringify(i))}({cache:r,layout:l.getLayout()})}),[e,i])};function Ht({layout:e,options:t}){return e.snapshotData&&!t.freeResize?{width:e.snapshotData.content.size.w,height:e.snapshotData.content.size.h,preserveAspectRatio:!0,align:.5}:void 0}function Wt({options:e,cache:t,layoutService:i}){const n={isSizeChanging:!1};return{enabled:()=>!1!==e.chartAnimations&&!n.isSizeChanging&&!function({cache:e,layout:t}){const i=Ot(t);return e.get("dataIndependentProperties")!==JSON.stringify(i)}({cache:t,layout:i.getLayout()}),meta:n}}function jt({layout:e,rect:t}){var i;const{measureAxis:n,qHyperCube:a,autoOrientation:o,gaugetype:r,useSegments:s,refLine:l}=e,c=null===(i=e.qHyperCube)||void 0===i?void 0:i.qMeasureInfo[0].qFallbackTitle,{width:u,height:h}=t;let d=e.orientation;o&&(d=u>=h?"horizontal":"vertical");const p="vertical"===d,m=function({measureAxis:e,qHyperCube:t}){if(!e||!t)return{min:0,max:1};let{min:i,max:n}=e;if(i=Number(i),n=Number(n),i!==n)return{min:Math.min(i,n),max:Math.max(i,n)};const a=t.qDataPages[0].qMatrix[0][0].qNum;let o=Math.abs(a-i)/2;return 0===o&&(o=0!==i?Math.abs(i)/2:Number.MAX_VALUE/2),{min:i-o,max:n+o}}({measureAxis:n,qHyperCube:a}),g=(null==l?void 0:l.refLines)||[],f=(null==n?void 0:n.spacing)||1,y=null==n?void 0:n.show,x=function({layout:e,rangeLimits:t}){var i,n;const{gradient:a}=(null===(i=e.qHyperCube)||void 0===i?void 0:i.qMeasureInfo[0].coloring)||{};if("measure"!==(null===(n=e.color)||void 0===n?void 0:n.useBaseColors)||!a)return e.segmentInfo;const{min:o,max:r}=t,{limits:s,limitType:l,breakTypes:c,colors:u}=a;return{limits:s.map(((e,t)=>({value:"percent"===l?o+e*(r-o):e,gradient:c[t]}))),paletteColors:u}}({layout:e,rangeLimits:m});return{measureAxisTitle:c,measureAxisSpacing:f,measureAxisShow:y,rangeLimits:m,qHyperCube:a,orientation:d,autoOrientation:o,gaugetype:r,isVertical:p,useSegments:s,segmentInfo:x,refLines:g}}function Ut({dockService:e,layoutService:t}){const{width:i,height:n}=e.meta.chart.size,{orientation:a,autoOrientation:o}=t.meta;return o?i<n:"vertical"===a}function Xt(e,t,i){if(e>=i)return 1;if(e<=t)return 0;const n=Math.min(1,Math.max(0,(e-t)/(i-t)));return Number.isNaN(n)?0:n}function Kt(e,t,i){const n="none"===e||"labels"===e,a=t<de.SMALL.width||i<de.SMALL.height;return!(n||a)}function Zt(e){return"none"!==e&&"title"!==e}const Jt=({core:e})=>{const t=g(),i=f(),n=y(),a=x(),c=v(),u=b(),{qLocaleInfo:M}=m(),[k,w]=d(null),I=h(),A=S();return p((()=>{if(!t||!e)return;const{picassoInstance:h,chart:d,cache:p}=e;if(!d)return;t.color||(t.color={useBaseColors:"off"});const m=o({source:t,metaAdditionsFn:()=>jt({layout:t,rect:c})}),{direction:g="ltr"}=I,f=Ht({layout:m.getLayout(),options:I}),y=r({chart:d,layoutService:m,config:{rtl:"rtl"===g,logicalSize:f},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0}}),x=s({app:n,model:a,translator:u,picasso:h,layoutService:m,config:{key:oe,localeInfo:M,theme:i,auto:()=>({mode:"primary",byMeasureDef:{activeMeasureIndex:0,type:"expression",label:""}})},createConfig:()=>({colorProps:{auto:!0,paletteColor:t.paletteProgressColor||{index:t.progressColor}}})}),v=l({theme:i,config:{id:"gauge"}}),b=function({chart:e,layoutService:t,dockService:i}){function n(){const{width:e,height:n}=i.meta.chart.size,a=Ut({dockService:i,layoutService:t});return Math.min(E,a?e/10:n/10)}function a(){const{width:e,height:n}=i.meta.chart.size;return Ut({dockService:i,layoutService:t})?n:e}function o(e){const{min:i,max:n}=t.meta.rangeLimits,o=e?n-(t.meta.qHyperCube.qDataPages[0].qMatrix[0][0].qNum-i):t.meta.qHyperCube.qDataPages[0].qMatrix[0][0].qNum;return a()*Xt(o,i,n)}const r={getBottomPadding(r){if(Ut({dockService:i,layoutService:t})){const e=o(!1)+-r.height*F.VERTICAL_ALIGNMENT_FACTOR,t=0,i=a()-r.height/O;return e<t?t:e>i?i:e}const s=n(),{VERTICAL_ALIGNMENT_FACTOR:l}=B;let c=.5*s+r.height/2+s*l;return c=function({refLabels:e,valueLabel:t}){return e.forEach((e=>{(function(e,t){const i=t.x-t.width/2>=e.x+e.width/2||t.x+t.width/2<=e.x-e.width/2,n=t.y-t.height/2>=e.y+e.height/2;return!(i||n)})(e,t)&&(t.y=e.y+e.height/2+t.height/2)})),t.y}({refLabels:e.findShapes("text").filter((e=>e.key===ae.REFERENCE_LINES_AND_LABELS)).map((e=>{const{x:t,y:n,"font-size":a}=e.attrs,o=parseFloat(a);return{x:t,y:n-i.meta.chart.size.height/2,height:o,width:Y}})),valueLabel:{x:o(i.config.rtl),y:c,...r}}),-c},getTopPadding:e=>-r.getBottomPadding(e),getLeftPadding(e){const{width:r}=i.meta.chart.size,s=i.config.rtl,l=n(),c=Ut({dockService:i,layoutService:t}),u=Math.min(e.width,r*U);if(c)return s?r/5-l-u:r/5+l;const h=o(s)-e.width/2,d=V.RIGHT,p=a()-e.width-V.LEFT;return h<d?d:h>p?p:h},getRightPadding:e=>-r.getLeftPadding(e)},s={getLeftPadding(a){if(!Ut({dockService:i,layoutService:t}))return 0;const o=e.findShapes("container").filter((e=>e.key===ae.BAR_AXIS));if(1!==o.length)return 0;const r=o[0],s=Zt(t.meta.measureAxisShow)?Math.max(...r.children.filter((e=>"text"===e.type)).map((e=>e.bounds.width))):0,l=Math.max(...r.children.filter((e=>"line"===e.type)).map((e=>e.bounds.width)));let c=n()/2+s+l+1.9*a.height;const{width:u}=i.meta.chart.size;return c>u/2-a.height/4&&(c=u/2-a.height/4),i.config.rtl?c:-c},getRightPadding:e=>-s.getLeftPadding(e),getTopPadding(){if(Ut({dockService:i,layoutService:t}))return-4;const a=e.findShapes("container").filter((e=>e.key===ae.BAR_AXIS));if(1!==a.length)return 0;const o=a[0],r=Zt(t.meta.measureAxisShow)?Math.max(...o.children.filter((e=>"text"===e.type)).map((e=>e.bounds.height))):0,s=Math.max(...o.children.filter((e=>"line"===e.type)).map((e=>e.bounds.height))),l=n();return-(l/2+r+s+J+l*Z)},getBottomPadding:()=>-s.getTopPadding()};return{getBarWidthInPixels:n,getValueLabelFontSize:function(e,t){const{width:n,height:a}=i.meta.chart.size,o=Xt(Math.min(a,n),$.MIN,$.MAX);return e+Math.round(o*(t-e))},getNeedlePosition:o,barValueLabel:r,barAxisTitle:s}}({chart:d,layoutService:m,dockService:y}),S=function({layoutService:e,themeService:t,colorService:i}){const n=t.getStyles(),a=t=>{var i;return null===(i=e.getLayoutValue("components",[]))||void 0===i?void 0:i.find((e=>e.key===t))},o=e=>e?i.getPaletteColor(e):void 0;return{query:{axis:{title:{getStyle:()=>{var e,t,i,r;return{fontFamily:null!==(e=null===(t=a("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.axis.title.fontFamily,fontSize:n.axis.title.fontSize,color:null!==(i=o(null===(r=a("axis"))||void 0===r||null===(r=r.axis)||void 0===r||null===(r=r.title)||void 0===r?void 0:r.color))&&void 0!==i?i:n.axis.title.color}}},label:{getStyle:()=>{var e,t,i,r;return{fontFamily:null!==(e=null===(t=a("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.axis.label.name.fontFamily,fontSize:n.axis.label.name.fontSize,fill:null!==(i=o(null===(r=a("axis"))||void 0===r||null===(r=r.axis)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r.color))&&void 0!==i?i:n.axis.label.name.color}}}},label:{getStyle:()=>{var e,t,i,r;return{fontFamily:null!==(e=null===(t=a("value"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.label.value.fontFamily,fill:null!==(i=o(null===(r=a("value"))||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.color))&&void 0!==i?i:n.label.value.color}}}}}}({layoutService:m,themeService:v,colorService:x}),k=Wt({options:I,cache:p,layoutService:m}),L=function({layout:e,model:t,translator:i,interactionState:n}){return{isClosed:()=>e.disclaimerClosed,close:()=>{t.getProperties().then((e=>{e.disclaimerClosed=!0,t.setProperties(e)}))},translator:i,isEditMode:n.edit}}({layout:t,model:a,translator:u,interactionState:A});w({layoutService:m,colorService:x,dockService:y,labelService:b,themeService:v,styleService:S,animationsService:k,disclaimerService:L})}),[a,n,t,i.name(),u.language(),e,I.direction,A.edit]),k};function Yt({width:e,height:t,fontSize:i}){const{FULL:n}=de;if(e>=n.width&&t>=n.height){let e=Number.parseFloat(i);return e=Math.floor(e*H),`${e}px`}return i}var Qt=e=>()=>e;function ei(e){return 1==(e=+e)?ti:function(t,i){return i-t?function(e,t,i){return e=Math.pow(e,i),t=Math.pow(t,i)-e,i=1/i,function(n){return Math.pow(e+n*t,i)}}(t,i,e):Qt(isNaN(t)?i:t)}}function ti(e,t){var i=t-e;return i?function(e,t){return function(i){return e+i*t}}(e,i):Qt(isNaN(e)?t:e)}var ii=function e(t){var i=ei(t);function n(e,t){var n=i((e=$e(e)).r,(t=$e(t)).r),a=i(e.g,t.g),o=i(e.b,t.b),r=ti(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=a(t),e.b=o(t),e.opacity=r(t),e+""}}return n.gamma=e,n}(1);function ni({thisColor:e,paletteColors:t,paletteIndex:i,limit:n,isLeft:a=!1,themeService:o}){const r=a?0:1,s=0===Object.entries(n).length,l=n.gradient;let c=i+(a?-1:1);s&&(c=a?0:t.length-1);const u=o.getTheme().getColorPickerColor(c<t.length&&c>=0?t[c]:t[0]);return{color:l?ii(e,u)(.5):e,offset:r,gradient:l}}function ai({limits:e,paletteColors:t,paletteIndex:n,themeService:a}){const o=i(e,""+(n-1),{}),r=i(e,`${n}`,{}),s=[o,r].map((e=>e.gradient)).includes(!0),l=a.getTheme().getColorPickerColor(t[n]);if(!s)return[{offset:0,color:l},{offset:1,color:l}];const c=[ni({thisColor:l,paletteColors:t,paletteIndex:n,limit:o,isLeft:!0,themeService:a}),ni({thisColor:l,paletteColors:t,paletteIndex:n,limit:r,isLeft:!1,themeService:a})];2===c.filter((e=>e.gradient)).length&&c.splice(1,0,{offset:.5,color:l,gradient:!0});const u=c.map((({offset:e,color:t,gradient:i})=>({offset:e,color:t,gradient:i})));return u}function oi({themeService:e,segmentInfo:t,rangeLimits:i}){const{limits:n,colors:a}=t;let{paletteColors:o}=t;o&&0!==o.length||!a||(o=a.map((e=>({index:e.color}))));const{min:r,max:s}=i;n.sort(((e,t)=>e.value-t.value));const l=[r,...n.map((e=>e.value)),s],c=[];for(let t=0;t<o.length;t++){const i=ai({limits:n,paletteColors:o,paletteIndex:t,themeService:e}).map((e=>({offset:Xt(l[t]+e.offset*(l[t+1]-l[t]),r,s),color:e.color,gradient:"gradient"in e?e.gradient:void 0})));c.push(...i)}return c}function ri(e){return e.map((e=>({...e,offset:1-e.offset}))).reverse()}function si({themeService:e,isVertical:t,segmentInfo:i,rangeLimits:n,isRtl:a}){return{type:"gradient",x1:0,x2:t?0:1,y1:t?1:0,y2:0,stops:a&&!t?ri(oi({themeService:e,segmentInfo:i,rangeLimits:n})):oi({themeService:e,segmentInfo:i,rangeLimits:n})}}function li(e){const t=function(e){if(e=e.replace("#",""),6!==e.length)throw new Error("Invalid hex color");const t=parseInt(e.substring(0,2),16),i=parseInt(e.substring(2,4),16),n=parseInt(e.substring(4,6),16);return{r:t,g:i,b:n}}(e),i=.21*t.r+.72*t.g+.07*t.b>127.5?-50:50;return`rgb(${t.r+i}, ${t.g+i}, ${t.b+i})`}function ci({services:e}){const{dockService:t,disclaimerService:i}=e,{translator:n,isClosed:a,isEditMode:o}=i;if(a()||!o)return!1;const r=t.config.rtl;return{key:"disclaimer-component",type:"disclaimer-component",layout:{displayOrder:5,minimumLayoutMode:he},settings:{isRtl:r,close:e.disclaimerService.close,title:n.get("Object.Gauge.RangeIsDefaultTitle"),text:n.get("Object.Gauge.RangeIsDefault")}}}function ui({services:e}){const{dockService:t,layoutService:i,themeService:n,animationsService:a}=e,{qHyperCube:o,useSegments:r,segmentInfo:s,rangeLimits:l}=i.meta,c=Ut({dockService:t,layoutService:i}),u=c?"vertical":"horizontal";if(!r)return!1;const{min:h,max:d}=l,p=o.qDataPages[0].qMatrix[0][0].qNum,m=Math.max(h,Math.min(d,p)),g={type:"box",key:ae.MARK,data:{extract:{field:"qMeasureInfo/0",props:{start:m,end:m,measureIndex:0}}},settings:{minor:{scale:"m"},orientation:u,box:{width:.1,maxWidthPx:E,minHeightPx:G,fill:()=>function({themeService:e,isVertical:t,segmentInfo:i,rangeLimits:n,value:a}){const o=si({themeService:e,isVertical:t,segmentInfo:i,rangeLimits:n,isRtl:!1}),{min:r,max:s}=n,l=Xt(a,r,s),{stops:c}=o;let u="black";for(let e=0;e<c.length;e++){const t=c[e].offset,i=c[e+1].offset;if(l>=t&&l<=i){const n=Xt(l,t,i);u=mt(ii(c[e].color,c[e+1].color)(n));break}}return u}({value:p,themeService:n,isVertical:c,segmentInfo:s,rangeLimits:l}),stroke:"transparent"}},animations:{enabled:a.enabled,trackBy:e=>`${e.data.measureIndex.value}`}};return g}function hi({services:e}){const{dockService:t,themeService:i,styleService:n,layoutService:a,animationsService:o}=e;if(!Zt(a.meta.measureAxisShow))return[];const{width:r,height:s}=t.meta.chart.size,l=vt(r,s,D,T),{innerRadius:c,outerRadius:u,radiusIncrease:h}=l,d=4*h,p=Math.min(r,s)/2,m=i.getStyles(),g=n.query.axis.label.getStyle(),{tickLength:f,labelPadding:y}=function({width:e,height:t,defaultTickSize:i,defaultLabelPadding:n}){const a=Math.min(Math.min(e,t)/pe,1);return{tickLength:i*a,labelPadding:n*a}}({width:r,height:s,defaultTickSize:8,defaultLabelPadding:20}),x=kt(r,s);return[{key:ae.RADIAL_AXIS,type:"axis",rendererSettings:{disableScreenReader:!0},dock:"center",layout:{minimumLayoutMode:ue},scale:"m",settings:{arc:{radius:u,startAngle:D,endAngle:T,offset:-10*d*(u-c)*p},align:"top",line:{show:!1,stroke:"#cdcdcd"},ticks:{tickSize:f,stroke:m.axis.line.major.color,margin:x},labels:{margin:-6-2*f+y,fontFamily:g.fontFamily,fill:g.fill,fontSize:g.fontSize}},animations:{enabled:o.enabled,trackBy:e=>{const{type:t,text:i,x:n,y:a,x1:o,y1:r,value:s}=e;return"text"===t?`text-${i}-${n}-${a}`:`tick-${s}-${o}-${r}`}}}]}function di(e,t,i,n){const a=n?ri(oi({themeService:t,segmentInfo:i,rangeLimits:e})):oi({themeService:t,segmentInfo:i,rangeLimits:e}),o=(T-D)/(2*Math.PI),r=a.map((e=>{""!==e.color&&void 0!==e.color||(e.color="#000000");return{offset:e.offset*o,color:e.color}}));return{type:"gradient",orientation:"conic",startAngle:D-Math.PI/2,x:0,y:0,stops:r}}function pi({services:e}){const{dockService:t,themeService:i,layoutService:n,animationsService:a}=e,{rangeLimits:o,useSegments:r,segmentInfo:s,qHyperCube:l}=n.meta,{width:c,height:u}=t.meta.chart.size,h=t.config.rtl,{outerRadius:d,innerRadius:p,labelGaugeRadius:m}=vt(c,u,D,T),g=o.max,f=l.qDataPages[0].qMatrix[0][0].qNum,y=g-f,x=[{value:Math.max(re,f-o.min),valueLabel:"Measure"},{value:Math.max(re,y),valueLabel:"Remaining"}],v=function({themeService:e,segmentInfo:t,rangeLimits:i}){const n=oi({themeService:e,segmentInfo:t,rangeLimits:i});let a=0,o=0;const r=n.map((e=>(""!==e.color&&void 0!==e.color||(e.color="#000000"),o=0===i.max?e.offset*(i.max-i.min)-a:e.offset*i.max-a,a+=o,{value:o,color:e.color,gradient:e.gradient}))).filter((e=>0!==e.value||!0===e.gradient));return r.forEach((e=>{e.value=Math.abs(e.value)})),r}({themeService:i,segmentInfo:s,rangeLimits:o});h&&(x.reverse(),v.reverse());const b={type:"pie",key:ae.RADIAL_GAUGE,data:{items:x},settings:{startAngle:D,endAngle:T,slice:{arc:{ref:"value"},outerRadius:()=>d,innerRadius:()=>p,fill:(t,i)=>{const n=xt({services:e});return h?1===i?n(t):q:0===i?n(t):q},strokeWidth:e=>e.datum.value.value===re?0:1,stroke:(t,i)=>{const n=li(xt({services:e})(t));return h?1===i?n:"#0000":0===i?n:"#0000"}}},animations:{enabled:a.enabled,trackBy:e=>e.data.value.valueLabel}},S={type:"pie",key:ae.SEGMENT_RADIAL_GAUGE,renderer:"canvas",displayOrder:1,data:{items:v},settings:{startAngle:D,endAngle:T,slice:{arc:{ref:"value"},outerRadius:()=>d,innerRadius:()=>p,strokeWidth:0,fill:(e,t)=>{var n,a;return(h?e.datum.value.gradient||(null===(n=v[t+1])||void 0===n?void 0:n.gradient):e.datum.value.gradient||(null===(a=v[t-1])||void 0===a?void 0:a.gradient))?di(o,i,s,h):e.datum.value.color}}},animations:{enabled:a.enabled,trackBy:e=>e.data.value.color}},M={type:"pie",key:ae.CIRCLE_GAUGE,renderer:"canvas",displayOrder:0,data:{items:[{value:Math.max(f,re),valueLabel:"Measure"}]},settings:{startAngle:0,endAngle:2*Math.PI,slice:{arc:{ref:"value"},outerRadius:()=>d,innerRadius:()=>p,fill:()=>function(e,t,i,n){const a=di(e,t,i,n),o={offset:(T-D)/(2*Math.PI),color:"rgba(0, 0, 0, 0)"};return a.stops.push(o),a.stops.push({offset:1,color:"rgba(0, 0, 0, 0)"}),a}(o,i,s,h),strokeWidth:0,opacity:r?1:0}},animations:{enabled:a.enabled,trackBy:e=>e.data.value.valueLabel,isMainComponent:!0}},k={type:"pie",key:ae.LABEL_RADIAL_GAUGE,renderer:"canvas",displayOrder:0,data:{items:[{value:Math.max(f,re),valueLabel:"Measure"}]},settings:{startAngle:0,endAngle:2*Math.PI,slice:{arc:{ref:"value"},outerRadius:()=>m+.01,innerRadius:()=>m,opacity:0}},animations:{enabled:a.enabled,trackBy:e=>e.data.value.valueLabel,isMainComponent:!0}};return r?[M,k,S]:[k,b]}function mi({chart:e,services:t}){const{layoutService:i,styleService:n,labelService:a,animationsService:o,dockService:r}=t,{width:s,height:l}=r.meta.chart.size,{getValueLabelFontSize:c}=a,u=n.query.axis.title.getStyle(),h=c(_.MIN,_.MAX),d=Number.parseFloat(Yt({width:s,height:l,fontSize:u.fontSize})),p=function({width:e,height:t,totalFontHeight:i}){const n=vt(e,t,D,T).labelGaugeRadius*Math.min(e,t)*.9-i;return(wt(e,t)-2*kt(e,t))/n}({width:s,height:l,totalFontHeight:h+d}),m=.5-p,g=Kt(i.meta.measureAxisShow,s,l),{qHyperCube:f}=i.meta,y=f.qMeasureInfo[0].qFallbackTitle,x=f.qDataPages[0].qMatrix[0][0].qNum,v=n.query.label.getStyle();return[{type:"labels",key:ae.RADIAL_GAUGE_LABEL,layout:{displayOrder:4},settings:{sources:[{component:ae.LABEL_RADIAL_GAUGE,selector:"path",strategy:{type:"rows",settings:{fill:"#000",padding:0,justify:m,labels:[{fontSize:h,fontFamily:v.fontFamily,fill:v.fill,label({data:t}){const i=e.formatter(ne.MEASURE);return t&&i?i(x):""},linkData:({data:e})=>e?{value:e.value.value,formatter:ne.MEASURE}:null},{fontSize:d,fontFamily:u.fontFamily,fill:u.color,label:()=>g?y:""}]}}}]},animations:{enabled:o.enabled,trackBy:e=>"text"+(e.data?"value-label":"axis-title"),adjustTweenedNodes(t){t.forEach((t=>{const{type:i,data:n}=t;if("text"===i&&n&&n.value&&n.formatter&&(t.text=e.formatter(n.formatter)(n.value),t.ellipsed&&"0"!==t.ellipsed)){const{text:e,fontSize:i,fontFamily:n,maxWidth:a}=t,o=`normal ${i} ${n}`,r="…",s=1;t.ellipsed=Tt.tokenize(e,o,r,s,a)[0]}}))}}}]}function gi({services:e}){const{dockService:t,layoutService:i,animationsService:n}=e,{width:a,height:o}=t.meta.chart.size,r=t.config.rtl,{rangeLimits:s,qHyperCube:l}=i.meta,{min:c,max:u}=s;let h,d=l.qDataPages[0].qMatrix[0][0].qNum;(d>u||d<c)&&(h="#00000000"),r&&(d=u-(d-c));const p=D+Xt(d,c,u)*(T-D);return{type:"radial-gauge-needle",key:ae.RADIAL_GAUGE_NEEDLE,layout:{displayOrder:2},settings:{component:ae.SEGMENT_RADIAL_GAUGE,fill:h,valueAngle:p,width:a,height:o},animations:{enabled:n.enabled,trackBy:e=>e.type,adjustTweenedNodes(e){e.forEach((e=>{const{data:t}=e;if(t){const{pointerWidth:i,angle:n,radius:r,fill:s}=t,l=bt(a/2,o/2,r,n+Math.PI/2),{x:c,y:u}=l,h=[{x:c+.3*i,y:u},{x:c-7.5*i,y:u+i},{x:c-7.5*i,y:u-i}],{d:d}=ft({points:h,angle:n,fill:s,origin:l});e.d=d}}))}}}}function fi({services:e}){const{dockService:t,layoutService:i,animationsService:n}=e,{width:a,height:o}=t.meta.chart.size,r=t.config.rtl,{rangeLimits:s,useSegments:l,qHyperCube:c}=i.meta,{min:u,max:h}=s,d=c.qDataPages[0].qMatrix[0][0].qNum,{outerRadius:p,innerRadius:m}=vt(a,o,D,T),g=(m+(p-m)/2)*Math.min(a,o)/2,{RADIAL_OOB_INDICATOR_MIN:f,RADIAL_OOB_INDICATOR_MAX:y,SEGMENT_RADIAL_GAUGE:x,RADIAL_GAUGE:v}=ae;return[f,y].map(((t,i)=>{const s=l?x:v,c=function(e,t){const i=xt({services:e})({datum:{value:()=>0}});return t?"#595959":i}(e,l);let f=0;(0===i&&d<u||1===i&&d>h)&&(f=St({innerRadius:m,outerRadius:p,width:a,height:o}));let y=D;return(0===i&&r||1===i&&!r)&&(y=T),{type:"radial-oob-indicator",key:t,layout:{displayOrder:2},settings:{component:s,selector:"path",angle:y,radius:g,size:f,fill:c,width:a,height:o},animations:{enabled:n.enabled,trackBy:e=>e.type}}}))}function yi({core:e,services:t}){const{chart:i}=e;if(!i)return[];const{dockService:n,layoutService:a}=t,{width:o,height:r}=n.meta.chart.size,{useSegments:s}=a.meta,l=Ut({dockService:n,layoutService:a}),c=[ci({services:t})];if("bar"===t.layoutService.meta.gaugetype){c.push(...function({services:e}){const{dockService:t,layoutService:i,styleService:n,themeService:a,animationsService:o}=e;if("none"===i.meta.measureAxisShow)return[];const{width:r,height:s}=t.meta.chart.size,l=t.config.rtl,c=Ut({dockService:t,layoutService:i}),u=a.getStyles(),h=n.query.axis.label.getStyle(),{fontFamily:d,fill:p,fontSize:m}=h,g=Zt(i.meta.measureAxisShow);return[{type:"axis",rendererSettings:{disableScreenReader:!0},key:ae.BAR_AXIS,dock:"center",scale:"m",layout:{minimumLayoutMode:se},settings:{align:c?l?"right":"left":"top",line:{show:!c,stroke:u.axis.line.major.color},labels:{show:g,minLengthPx:20,fontFamily:d,fill:p,fontSize:Yt({width:r,height:s,fontSize:m})},paddingStart:()=>{if(c){const e=Math.min(r/10,E);return r/2+e/2}const e=Math.min(s/10,E);return s/2+e/2+K},ticks:{stroke:u.axis.line.major.color}},animations:{enabled:o.enabled,trackBy:e=>void 0===e.tickValue?"axis":"text"===e.type?`label: ${e.tickValue}`:`mark: ${e.tickValue}`}}]}({services:t}),...function({services:e}){const{themeService:t,dockService:i,layoutService:n,animationsService:a}=e,{rangeLimits:o,segmentInfo:r,useSegments:s}=n.meta,l=i.config.rtl,c=Ut({dockService:i,layoutService:n}),u=c?"vertical":"horizontal",{min:h,max:d}=o,p=l&&!c?d:h,m={type:"box",key:ae.BAR,data:{extract:{field:"qMeasureInfo/0",props:{start:h,end:{field:"qMeasureInfo/0"},measureIndex:0}}},settings:{minor:{scale:"m"},orientation:u,box:{width:.1,maxWidthPx:E,fill:xt({services:e}),strokeWidth:e=>e.datum.value<=h?0:1,stroke:t=>li(xt({services:e})(t))}},animations:{enabled:a.enabled,isMainComponent:!0,trackBy:e=>`${e.data.measureIndex.value}`}},g={type:"box",key:ae.SEGMENT_BAR,data:{extract:{field:"qMeasureInfo/0",props:{start:h,end:d,measureIndex:0}}},settings:{minor:{scale:"m"},orientation:u,box:{width:.1,maxWidthPx:E,fill:()=>si({themeService:t,isVertical:c,segmentInfo:r,rangeLimits:o,isRtl:l}),stroke:"transparent"}},animations:{enabled:a.enabled,trackBy:e=>`${e.data.measureIndex.value}`}},f={type:"box",key:ae.BACKGROUND_BAR,data:{extract:{field:"qMeasureInfo/0",props:{start:h,end:d}}},settings:{minor:{scale:"m"},orientation:u,box:{width:.1,maxWidthPx:E,fill:q}}},y={type:"box",key:ae.LABEL_BAR,data:{extract:{field:"qMeasureInfo/0",props:{start:p,end:p}}},settings:{minor:{scale:"m"},orientation:u,box:{width:c?U:X,opacity:0}}};return s?[y,g]:[y,f,m]}({services:t}),...function({services:e}){const{dockService:t,labelService:i,styleService:n,layoutService:a}=e,{width:o,height:r}=t.meta.chart.size;if(!Kt(a.meta.measureAxisShow,o,r))return[];const s=Ut({dockService:t,layoutService:a}),{measureAxisTitle:l,useSegments:c}=a.meta,{getTopPadding:u,getBottomPadding:h,getLeftPadding:d,getRightPadding:p}=i.barAxisTitle,m=n.query.axis.title.getStyle(),{fontFamily:g,fontSize:f,color:y}=m;return[{type:"labels",key:ae.AXIS_TITLE,settings:{sources:[{component:c?ae.SEGMENT_BAR:ae.BACKGROUND_BAR,selector:"rect",strategy:{type:"bar",settings:{direction:s?"up":"right",align:.5,justify:.5,labels:[{fontFamily:g,fill:y,fontSize:Number.parseFloat(Yt({width:o,height:r,fontSize:f})),label:()=>l,dock:s&&t.config.rtl?"right":"left",placements:[{position:"inside",padding:{top:u,bottom:h,left:d,right:p},overflow:!0}]}]}}}]}}]}({services:t}),function({services:e}){const{layoutService:t,dockService:i,labelService:n,animationsService:a}=e,{qHyperCube:o,rangeLimits:r,useSegments:s}=t.meta,{width:l,height:c}=i.meta.chart.size,u=i.config.rtl,h=Ut({dockService:i,layoutService:t}),{min:d,max:p}=r,m=o.qDataPages[0].qMatrix[0][0].qNum;let g=n.getBarWidthInPixels();m<=p&&m>=d&&(g=0);let f=h?"bottom":u?"right":"left";return m>p&&(f=h?"top":u?"left":"right"),{type:"oob-indicator",key:ae.OOB_INDICATOR,layout:{displayOrder:2},settings:{component:s?ae.SEGMENT_BAR:ae.BAR,isRtl:u,selector:"rect",pointingTo:f,size:g,width:l,height:c},animations:{enabled:a.enabled,trackBy:e=>e.type}}}({services:t}),ui({services:t}));const e=function({chart:e,services:t}){if(!e.formatter)return!1;const{labelService:i,styleService:n,dockService:a,layoutService:o,animationsService:r}=t,s=Ut({dockService:a,layoutService:o}),{getValueLabelFontSize:l,barValueLabel:c}=i,{getTopPadding:u,getBottomPadding:h,getLeftPadding:d,getRightPadding:p}=c,m=l(_.MIN,_.MAX),g=n.query.label.getStyle();return{type:"labels",key:ae.GAUGE_LABEL,layout:{minimumLayoutMode:s?le:ce},settings:{sources:[{component:ae.LABEL_BAR,selector:"rect",formatter:"measure",strategy:{type:"bar",settings:{direction:s?"up":"right",orientation:"horizontal",fontFamily:g.fontFamily,fill:g.fill,fontSize:m,align:s?0:.5,justify:0,labels:[{label:({data:t})=>t?e.formatter(ne.MEASURE)(t.value):"",linkData:({data:e})=>e?{value:e.value,formatter:ne.MEASURE}:null,placements:[{position:"outside",padding:{top:u,bottom:h,left:d,right:p},overflow:!0}]}]}}}]},animations:{enabled:r.enabled,trackBy:e=>e.type,adjustTweenedNodes(t){t.forEach((t=>{const{type:i,data:n}=t;"text"===i&&n&&n.value&&n.formatter&&(t.text=e.formatter(n.formatter)(n.value))}))}}}}({chart:i,services:t}),n=function({services:e}){const{dockService:t,layoutService:i,labelService:n,themeService:a,colorService:o,animationsService:r}=e,{refLines:s}=i.meta,l=t.config.rtl,c=Ut({dockService:t,layoutService:i}),u=a.getStyles();return{type:"custom-ref-line",key:ae.REFERENCE_LINES_AND_LABELS,settings:{barWidth:n.getBarWidthInPixels(),isRtl:l,needlePosition:n.getNeedlePosition(!1)},lines:{[c?"y":"x"]:s.filter(Mt).map((e=>{var t,i;return{scale:"m",value:e.refLineExpr.value,cId:e.cId,label:{text:e.label,...u.referenceLine.label.name,showValue:e.showValue,showLabel:e.showLabel},line:{stroke:o.getPaletteColor(e.paletteColor||{index:e.color}),strokeWidth:(null===(t=e.style)||void 0===t?void 0:t.lineThickness)||2,strokeDasharray:null===(i=e.style)||void 0===i?void 0:i.lineType}}}))},animations:{enabled:r.enabled,trackBy:e=>{const{type:t,cId:i,text:n,isConnector:a}=e;return"text"===t?`${i}-text-${n}`:"line"===t?a?`${i}-connector`:`${i}-line`:Math.random()}}}}({services:t});l?(c.push(e),c.push(n)):(c.push(n),c.push(e))}else o>=de.SPARK.width&&r>=de.SPARK.height?c.push(...pi({services:t}),...mi({chart:i,services:t}),...hi({services:t}),...s?[gi({services:t})]:[],...fi({services:t}),function({services:e}){const{dockService:t,themeService:i,colorService:n,layoutService:a,animationsService:o}=e,{width:r,height:s}=t.meta.chart.size,{refLines:l}=a.meta,c=i.getStyles(),u=vt(r,s,D,T),{innerRadius:h,outerRadius:d}=u,p=St({innerRadius:h,outerRadius:d,width:r,height:s}),m={type:"radial-custom-ref-line",key:ae.RADIAL_REFERENCE_LINES,displayOrder:1,settings:{barWidth:p},lines:{radial:l.filter(Mt).map((e=>{var t,i;return{scale:"r",value:e.refLineExpr.value,cId:e.cId,label:{text:e.label,...c.referenceLine.label.name,showValue:e.showValue,showLabel:e.showLabel},radius:u.innerRadius,line:{stroke:n.getPaletteColor(e.paletteColor||{index:e.color}),strokeWidth:(null===(t=e.style)||void 0===t?void 0:t.lineThickness)||2,strokeDasharray:null===(i=e.style)||void 0===i?void 0:i.lineType}}}))},animations:{enabled:o.enabled,trackBy:e=>{const{type:t,cId:i}=e;return"line"===t?`${i}-line`:Math.random()},adjustTweenedNodes(e){e.forEach((e=>{const{type:t,data:i}=e;if("line"===t){const{angle:t,innerRadius:n}=i;e.x1=r/2+Math.cos(t)*n,e.y1=s/2+Math.sin(t)*n,e.x2=r/2+Math.cos(t)*(n+p),e.y2=s/2+Math.sin(t)*(n+p)}}))}}};return m}({services:t})):c.push(function({services:e}){const{dockService:t,layoutService:i,themeService:n,animationsService:a}=e,{width:o,height:r}=t.meta.chart.size,{rangeLimits:s,useSegments:l,segmentInfo:c,qHyperCube:u}=i.meta,{min:h,max:d}=s,p=u.qDataPages[0].qMatrix[0][0].qNum,m=vt(o,r,D,T).outerRadius;let g;g=p<h?D:p>d?T:D+(p-h)/(d-h)*(T-D);const f=xt({services:e}),y=l?function({value:e,segmentInfo:t,themeService:i}){const{paletteColors:n,limits:a}=t,o=i.getTheme();if(!a.length)return o.getColorPickerColor(n[0]);const r=a.findIndex((t=>e<=t.value)),s=-1===r?n.length-1:r;return o.getColorPickerColor(n[s]||n[n.length-1])}({value:p,segmentInfo:c,themeService:n}):f({datum:{value:()=>0}});return{type:"radial-spark",key:ae.RADIAL_SPARK,layout:{displayOrder:2},settings:{fill:y,radius:m,valueAngle:g,width:o,height:r},animations:{enabled:a.enabled,trackBy:e=>e.type}}}({services:t}));return c}const xi=Math.log(10),vi={log:(e,t)=>e<=0||t<=0?NaN:Math.log(e)/Math.log(t),log10:e=>e<=0?NaN:Math.log(e)/xi,getNiceNumber(e){let t;if(0===e)return 0;const i=Math.floor(Math.log(Math.abs(e))/xi),n=e/10**i;return t=n<=1?1:n<=2?2:n<=5?5:10,t*10**i*(e<0?-1:1)},getSmallNiceNumber(e){let t;if(0===e)return 0;let i=Math.floor(Math.log(Math.abs(e))/xi);const n=e/10**i;return n<1?(t=5,i--):t=n<2?1:n<5?2:5,t*10**i*(e<0?-1:1)},getGoodNumber(e){let t;if(0===e)return 0;const i=Math.floor(Math.log(Math.abs(e))/xi),n=e/10**i;return t=Math.ceil(n),7!==t&&9!==t||t++,n>1&&n<=1.5?t=1.5:n>2&&n<=2.5&&(t=2.5),t*10**i*(e<0?-1:1)},calculateTicks(e,t,i,n,a,o){return this.plotSize=e,this.explicitPlotMin=t,this.explicitPlotMax=i,this.minTickSpacingInPixel=n,this.absMax=Math.abs(this.explicitPlotMax),this.absMin=Math.abs(this.explicitPlotMin),this.usedDataRange=this.explicitPlotMax-this.explicitPlotMin,this.maxNumIntervals=this.plotSize/this.minTickSpacingInPixel,this.maxNumTicks=this.maxNumIntervals+1,this.minTickDataSpacing=o||0,this.tickDataSpacing=Math.max(this.usedDataRange/this.maxNumIntervals,this.minTickDataSpacing),this.fontHeight=a,this.tickBaseValue=0,this.spaceUseLimit=.6,0===e?(this.plotMin=this.explicitPlotMin,this.plotMax=this.explicitPlotMax,this.tickDataSpacingNN=this.tickDataSpacing,Ni.call(this),Pi.call(this)):(this.maxNumIntervals<1?ki.call(this):(this.explicitPlotMax>0&&this.explicitPlotMin<0?1===this.maxNumIntervals?Mi.call(this,!0):this.maxNumIntervals>=5?Si.call(this):this.maxNumIntervals<2?wi.call(this):Ii.call(this):Si.call(this),this.tickMaxIndex<this.tickMinIndex?(this.tickDataSpacing=Math.max(this.usedDataRange/this.maxNumIntervals,this.minTickDataSpacing),ki.call(this)):Ai.call(this)),Ni.call(this),Pi.call(this))}};function bi(e,t,i){void 0===e&&(e=null!==this.explicitPlotMin),void 0===t&&(t=null!==this.explicitPlotMax),this.tickDataSpacingNN=i?vi.getGoodNumber(this.tickDataSpacing):vi.getNiceNumber(this.tickDataSpacing),Ri.apply(this,[e,t])}function Si(){bi.call(this);const e=this.tickMaxIndex-this.tickMinIndex;let t=this.plotMax-this.plotMin;this.spaceUseFactor=t/this.plotRange;let i=this.plotSize*this.tickDataSpacingNN/this.plotRange<this.minTickSpacingInPixel;if(i&&this.maxNumIntervals>=5){for(;this.tickDataSpacing<=this.absMax&&i;)this.tickDataSpacing=Math.max(1.1*this.tickDataSpacingNN,this.minTickDataSpacing),bi.call(this),t=this.plotMax-this.plotMin,this.spaceUseFactor=t/this.plotRange,i=this.plotSize*this.tickDataSpacingNN/this.plotRange<this.minTickSpacingInPixel;if(!i)return}for(this.tickDataSpacing=Math.max(this.usedDataRange/this.maxNumIntervals,this.minTickDataSpacing),(i||e<=2&&this.maxNumIntervals>=2*e)&&bi.apply(this,[void 0,void 0,!0]),t=this.plotMax-this.plotMin,this.spaceUseFactor=t/this.plotRange,i=this.plotSize*this.tickDataSpacingNN/this.plotRange<this.minTickSpacingInPixel;this.tickDataSpacing<=this.absMax&&i;)this.tickDataSpacing=Math.max(1.1*this.tickDataSpacingNN,this.minTickDataSpacing),bi.apply(this,[void 0,void 0,!0]),t=this.plotMax-this.plotMin,this.spaceUseFactor=t/this.plotRange,i=this.plotSize*this.tickDataSpacingNN/this.plotRange<this.minTickSpacingInPixel}function Mi(e){e?(this.tickDataSpacingNN=vi.getGoodNumber(this.absMax),this.tickBaseValue=-this.tickDataSpacingNN,this.plotMin=this.explicitPlotMin,this.plotMax=this.explicitPlotMax,this.tickMinIndex=1,this.tickMaxIndex=1,this.tickDataSpacingNN*=2):(this.plotMax=this.explicitPlotMax,this.plotMin=this.explicitPlotMin,this.plotRange=this.plotMax-this.plotMin,this.tickMinIndex=0,this.tickMaxIndex=0,this.tickDataSpacingNN=vi.getNiceNumber(this.absMax),this.tickDataSpacingNN===this.absMax&&(this.tickDataSpacingNN=vi.getNiceNumber(1.1*this.absMax)))}function ki(){let e;this.tickDataSpacingNN=vi.getNiceNumber(this.tickDataSpacing),this.plotMin=this.explicitPlotMin,this.plotMax=this.explicitPlotMax,this.plotRange=this.plotMax-this.plotMin,this.tickMinIndex=0,this.tickMaxIndex=0,(this.explicitPlotMax<0||this.explicitPlotMin>0)&&(e=vi.getSmallNiceNumber(this.plotRange),this.tickBaseValue=Math.ceil(this.plotMin/e)*e)}function wi(){const e=this.explicitPlotMax>=-this.explicitPlotMin,t=e||null!==this.explicitPlotMin,i=!e||null!==this.explicitPlotMax;bi.apply(this,[t,i,!0]);const n=(this.absMax+(1-this.spaceUseLimit)*this.absMin)/this.spaceUseLimit*1.0001;for(;this.tickDataSpacing<=n&&this.plotSize*this.tickDataSpacingNN/this.plotRange<this.minTickSpacingInPixel;)this.tickDataSpacing=Math.max(1.1*this.tickDataSpacingNN,this.minTickDataSpacing),bi.apply(this,[t,i,!0]);const a=this.plotMax-this.plotMin;this.spaceUseFactor=a/this.plotRange}function Ii(){Si.call(this);const e=this.plotMax-this.plotMin;this.spaceUseFactor=e/this.plotRange}function Ai(){const e=vi.getNiceNumber(this.tickDataSpacingNN);if(this.tickDataSpacingNN===e||0!==this.tickBaseValue)return;const t=this.tickDataSpacingNN,i=this.tickMinIndex,n=this.tickMaxIndex,a=n-i,o=this.plotMin,r=this.plotMax;this.tickDataSpacingNN=e,Ri.apply(this,[null!==this.explicitPlotMin,null!==this.explicitPlotMax]);const s=this.plotMax-this.plotMin;this.spaceUseFactor=s/this.plotRange;const l=this.plotSize*this.tickDataSpacingNN/this.plotRange<this.minTickSpacingInPixel,c=this.tickMaxIndex-this.tickMinIndex;!l&&(c===a||c>=10||c>=3&&1.5*c>=a)||(this.tickDataSpacingNN=t,this.tickMinIndex=i,this.tickMaxIndex=n,this.plotMin=o,this.plotMax=r,this.plotRange=this.plotMax-this.plotMin)}function Li(){this.plotMax===this.plotMin||0===this.plotSize?(this.minTickValue=this.plotMin,this.maxTickValue=this.plotMax):(this.minTickValue=this.tickBaseValue+this.tickMinIndex*this.tickDataSpacingNN,this.maxTickValue=this.tickBaseValue+this.tickMaxIndex*this.tickDataSpacingNN)}function Ni(){let e,t;if(this.mainTickValues=[],this.secondaryTickValues=[],Li.call(this),0===this.plotSize)return;e=this.tickBaseValue;const i=this.tickMaxIndex-this.tickMinIndex;if(!(i<1)){for(t=0;t<=i;t++)this.mainTickValues.push(e+(t+this.tickMinIndex)*this.tickDataSpacingNN);for(e=this.tickBaseValue+this.tickDataSpacingNN/2,t=0;t<i;t++)this.secondaryTickValues.push(e+(t+this.tickMinIndex)*this.tickDataSpacingNN)}}function Ri(e,t){this.tickMinIndex=e?Math.ceil(this.explicitPlotMin/this.tickDataSpacingNN):Math.floor(this.explicitPlotMin/this.tickDataSpacingNN),this.tickMaxIndex=t?Math.floor(this.explicitPlotMax/this.tickDataSpacingNN):Math.ceil(this.explicitPlotMax/this.tickDataSpacingNN),this.plotMin=e?this.explicitPlotMin:this.tickMinIndex*this.tickDataSpacingNN,this.plotMax=t?this.explicitPlotMax:this.tickMaxIndex*this.tickDataSpacingNN,this.plotRange=this.plotMax-this.plotMin}function Pi(){return{plotMin:this.plotMin,plotMax:this.plotMax,tickSpacing:this.tickDataSpacingNN,tickBaseValue:this.tickBaseValue,tickMinIndex:this.tickMinIndex,tickMaxIndex:this.tickMaxIndex,minTickValue:this.minTickValue,maxTickValue:this.maxTickValue,mainTickValues:this.mainTickValues,secondaryTickValues:this.secondaryTickValues}}function Ci({core:e,dockService:t,rangeLimits:i,measureAxisSpacing:n,isRadial:a,isVertical:o,styleService:r}){const s=i.min,l=i.max,{width:c,height:u}=function(e){return{width:e.meta.chart.size.width,height:e.meta.chart.size.height}}(t);let h,d=96*n;if(a)h=Math.min(u,c);else{h=o?u:c;const{chart:t,picassoInstance:i}=e;if(t&&i){const e=t.formatter(ne.MEASURE),a=i.renderer("svg")(),p=r.query.axis.label.getStyle(),{fontFamily:m,fontSize:g}=p,f=e=>a.measureText({text:e,fontSize:Yt({width:c,height:u,fontSize:g}),fontFamily:m}),y=Math.max(96,...[s,l,(l-s)/2].map((t=>f(e(t)).width)));d=o?4*f("M").height:y;d=h/(Math.max(2,h/d/n+1)-1)}}const p=function({plotSize:e,rangeMax:t,rangeMin:i,minTickSpacingInPixel:n}){const a=vi.calculateTicks(e,i,t,n,20,0);a.tickSpacing;const o=a.mainTickValues;0===o.length&&o.push(a.minTickValue);const r=o[0];o[0]=a.plotMin,r-a.plotMin>=a.tickSpacing/2&&o.splice(1,0,r);const s=a.mainTickValues[a.mainTickValues.length-1];return a.plotMax-s<=a.tickSpacing/2?o[a.mainTickValues.length-1]=a.plotMax:o.push(a.plotMax),o}({plotSize:h,rangeMin:s,rangeMax:l,minTickSpacingInPixel:d});return{values:p}}function Ei({isRadial:e,dockService:t,isVertical:i}){return e?!t.config.rtl:!!i||t.config.rtl}function Di({core:e,services:t,logicalSize:i}){if(!t.layoutService.meta.qHyperCube)throw new Error("Layout is missing a hypercube");const n=yi({core:e,services:t}),a=function({core:e,services:t}){const{dockService:i,styleService:n,colorService:a,layoutService:o}=t,{rangeLimits:r,measureAxisSpacing:s,gaugetype:l}=o.meta,c=Ut({dockService:i,layoutService:o}),u="radial"===l,h=Ci({core:e,dockService:i,rangeLimits:r,measureAxisSpacing:s,isRadial:u,isVertical:c,styleService:n});return{m:{data:{field:"qMeasureInfo/0"},type:"linear",invert:Ei({isRadial:u,dockService:i,isVertical:c}),min:r.min,max:r.max,ticks:{values:h.values}},r:{data:{field:"qMeasureInfo/0"},invert:i.config.rtl,min:r.min,max:r.max},...a.getScales()}}({core:e,services:t});return{scales:a,components:n,formatters:{[ne.MEASURE]:{data:{field:"qMeasureInfo/0"}}},strategy:{layoutModes:de,logicalSize:i}}}const Ti=({core:e,services:t})=>{const[i,n]=d({}),a=h(),o=v();return M((async()=>{if(!t)return Promise.resolve();const{colorService:i}=t;return i.initialize().then((()=>{const{layoutService:i}=t,o=Ht({layout:i.getLayout(),options:a}),r=Di({core:e,services:t,logicalSize:o});n(r)}))}),[t]),p((()=>{if(t&&t.dockService&&t.layoutService){const{dockService:i,layoutService:r,animationsService:s}=t;s.meta.isSizeChanging=!0;const l=Ht({layout:r.getLayout(),options:a});i.update(l||o);const c=Di({core:e,services:t,logicalSize:l});n(c)}}),[o]),i};const qi={Object_Gauge_RangeIsDefault:{id:"Object.Gauge.RangeIsDefault",locale:{"de-DE":"Max. und Min. auf Standardwerte festgelegt. Sie können über das Eigenschaften-Fenster unter Darstellung > Präsentation geändert werden.","en-US":"Max. and Min. set to default values. You can change them via the properties window under Display > Presentation.","es-ES":"Máx y mín se han configurado como valores predefinidos. Puede cambiarlos en el panel de propiedades en Aspecto > Presentación.","fr-FR":"Les valeurs max. et min. par défaut sont définies. Vous pouvez les modifier via le panneau des propriétés sous Aspect > Présentation.","it-IT":"Il massimo e il minimo vengono impostati sui valori predefiniti. È possibile modificarli nel pannello delle proprietà in Aspetto > Presentazione.","ja-JP":"最大値と最小値は規定値に設定されています。これは、スタイル > プレゼンテーションからプロパティ パネルで変更できます。","ko-KR":"최대 및 최소 값이 기본값으로 설정됩니다. 모양 > 프레젠테이션 아래 속성 패널에서 이를 변경할 수 있습니다.","nl-NL":"Max. en min. zijn ingesteld op standaardwaarden. U kunt deze wijzigen in het eigenschappenvenster onder Uiterlijk > Presentatie.","pl-PL":"Maks. i Min. są ustawione na wartości domyślne. Można je zmienić w panelu właściwości, w obszarze Wygląd > Prezentacja.","pr-BR":"Máx. e mín. estão definidos com valores padrão. É possível alterá-los no painel de propriedades, em Aparência > Apresentação.","ru-RU":"Максимальные и минимальные значения установлены по умолчанию. Эти значения можно изменить на панели свойств в меню Вид > Представление.","sv-SE":"Max och min är inställda på standardvärden. Du kan ändra dem i egenskapspanelen under Utseende > Presentation.","tr-TR":"Maks. ve min. değerleri varsayılan değerlere ayarlanmıştır. Görünüş > Sunum altındaki özellikler panelinden bu değerleri değiştirebilirsiniz.","zh-CN":"最大值和最小值已设置为默认值。您可以在“外观”>“显示”下的属性面板中进行更改。","zh-TW":"最大值與最小值均設為預設值。您可以在 [外觀] > [呈現方式] 之下的屬性面板中變更這些值。"}},Object_Gauge_RangeIsDefaultTitle:{id:"Object.Gauge.RangeIsDefaultTitle",locale:{"de-DE":"Bereich auf Standardwerte eingestellt","en-US":"Range set to default values","es-ES":"Rango fijado a valores predeterminados","fr-FR":"Plage définie sur les valeurs par défaut","it-IT":"Scala impostata sui valori predefiniti","ja-JP":"範囲は規定値に設定されています","ko-KR":"범위가 기본값으로 설정됩니다.","nl-NL":"Bereik ingesteld op standaardwaarden","pl-PL":"Zakres ustawiony na wartości domyślne","pt-BR":"Intervalo definido com valores padrão","ru-RU":"Значения диапазона установлены по умолчанию","sv-SE":"Intervallet har standardvärden","tr-TR":"Varsayılan değerlere ayarlı aralık","zh-CN":"范围设置为默认值","zh-TW":"範圍會設為預設值"}}};const zi={version:JSON.stringify("0.8.13"),qHyperCubeDef:{qMeasures:[],qInitialDataFetch:[{qWidth:1,qHeight:1}],qSuppressZero:!1,qSuppressMissing:!0},showTitles:!0,title:"",subtitle:"",footnote:"",measureAxis:{min:0,max:100,show:"all",spacing:1},orientation:"horizontal",segmentInfo:{limits:[],paletteColors:[{index:6}]},refLine:{refLines:[]},showDetails:!0,components:[],gaugetype:"radial",autoOrientation:!0,useSegments:!1,color:{useBaseColors:"measure"},paletteProgressColor:{index:6},angle:.7};function _i(e){return{properties:zi,data:{targets:[{path:"/qHyperCubeDef",...A(e)}]}}}const $i=({services:e})=>{k((t=>{if(e){const{dockService:i}=e,{width:n,height:a}=i.meta.chart.size;t.snapshotData=t.snapshotData||{content:{size:{w:n,h:a}}},t.snapshotData.content={size:{w:n,h:a}}}return Promise.resolve(t)}))}}}}));
|
|
7
|
+
System.register(["qlik-chart-modules","qlik-object-conversion","@nebula.js/stardust","picasso-plugin-q","picasso.js"],function(e){"use strict";var t,i,a,n,r,o,s,l,c,u,h,p,d,m,g,f,y,x,b,v,S,M,k,w,I;return{setters:[function(e){t=e.fontResolver,i=e.getValue,a=e.setValue,n=e.cache,r=e.layoutService,o=e.dockService,s=e.colorService,l=e.themeService},function(e){c=e.default},function(e){u=e.useElement,h=e.useOptions,p=e.useState,d=e.useEffect,m=e.useAppLayout,g=e.useStaleLayout,f=e.useTheme,y=e.useApp,x=e.useModel,b=e.useRect,v=e.useTranslator,S=e.useInteractionState,M=e.usePromise,k=e.onTakeSnapshot},function(e){w=e.default},function(e){I=e.default}],execute:function(){function A(e){return{dimensions:{min:0,max:0},measures:{min:1,max:1,description:()=>e.translator.get("Visualizations.Descriptions.Gauge.Measure")}}}e("default",function(e){return function(e){if(e&&e.get&&e.add){const t="Object.Gauge.RangeIsDefault";if(e.get(t)!==t)return;Object.keys(qi).forEach(t=>{e.add(qi[t])})}}(e.translator),{qae:_i(e),ext:P(e),component(){const e=Vt(),t=Jt({core:e}),i=Ti({core:e,services:t});Gt({core:e,settings:i,services:t}),$i({services:t})}}});const L=(e,i,a)=>{const n=t({theme:a,translator:i,flags:e,config:{id:"gauge",paths:["axis.title","axis.label.name","label.value"]}});return{component:"styling-panel",chartTitle:"Object.Gauge",translation:"LayerStyleEditor.component.styling",useBackground:!0,subtitle:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,items:{axisTitleSection:{translation:"properties.axis.title",component:"panel-section",items:{labelSection:{component:"items",ref:"components",key:"axis",items:{fontWrapper:{component:"inline-wrapper",items:{fontFamily:{ref:"axis.title.fontFamily",component:"dropdown",options:()=>n.getOptions("axis.title.fontFamily"),defaultValue:()=>n.getDefaultValue("axis.title.fontFamily")},fontColor:{ref:"axis.title.color",component:"color-picker",defaultValue:()=>({color:a.getStyle("object.gauge","axis.title","color")}),width:!1}}}}}}},axisLabelSection:{translation:"properties.axis.label",component:"panel-section",items:{labelSection:{component:"items",ref:"components",key:"axis",items:{fontWrapper:{component:"inline-wrapper",items:{fontFamily:{ref:"axis.label.name.fontFamily",component:"dropdown",options:()=>n.getOptions("axis.label.name.fontFamily"),defaultValue:()=>n.getDefaultValue("axis.label.name.fontFamily"),width:!0},fontColor:{ref:"axis.label.name.color",component:"color-picker",defaultValue:()=>({color:a.getStyle("object.gauge","axis.label.name","color")}),width:!1}}}}}}},valueLabelSection:{translation:"properties.value.label",component:"panel-section",items:{labelSection:{component:"items",ref:"components",key:"value",items:{fontWrapper:{component:"inline-wrapper",items:{fontFamily:{ref:"label.value.fontFamily",component:"dropdown",options:()=>n.getOptions("label.value.fontFamily"),defaultValue:()=>n.getDefaultValue("label.value.fontFamily"),width:!0},fontColor:{ref:"label.value.color",component:"color-picker",defaultValue:()=>({color:a.getStyle("object.gauge","label.value","color")}),width:!1}}}}}}}}}};let N;function R(e){return"measure"===i(e,"color.useBaseColors")}function P(e){const{flags:t,translator:n,sense:r}=e,o=r?.theme,s=()=>{if(!o)return-1;const{primary:e}=o.getDataColorSpecials(),t=o.getDataColorPickerPalettes()[0]?.colors,i=t.indexOf(e);return{index:-1===i?Math.min(6,t.length-1):i}};return{definition:{type:"items",component:"accordion",items:{data:{uses:"data",items:{measures:{disabledRef:""}}},addons:{type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines",items:{colorBackground:{show:!1}}}}},settings:{type:"items",uses:"settings",component:"expandable-items",translation:"Common.Appearance",items:{simpleLabels:{items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qMeasures?.length},measureTitle:{component:"checkbox",ref:"measureAxis.show",type:"string",translation:"Simple.Label.Measure.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qMeasures?.length,convertFunctions:{get:(e,t,i,a)=>"labels"===a.measureAxis.show||"none"===a.measureAxis.show,set(e,t,i,a,n){n.measureAxis.show=e?"labels":"all"}}}}}}},presentation:{type:"items",grouped:!0,translation:"properties.presentation",items:{styleEditor:L(t,n,o),rangeLimits:{type:"items",items:{text:{component:"text",translation:"properties.axis.rangeLimits",style:"sHeader"},min:{ref:"measureAxis.min",translation:"properties.axis.min",type:"number",expression:"optional",invalid:e=>e.measureAxis&&e.measureAxis.min>=e.measureAxis.max,change(e){a(e,"disclaimerClosed",!0)}},max:{ref:"measureAxis.max",translation:"Common.Max",type:"number",expression:"optional",defaultValue:100,invalid:e=>e.measureAxis&&e.measureAxis.min>=e.measureAxis.max,change(e){a(e,"disclaimerClosed",!0)}}}},type:{ref:"gaugetype",type:"string",component:"item-selection-list",defaultValue:"radial",horizontal:!0,items:[{icon:"gauge_gauge",component:"icon-item",labelPlacement:"bottom",translation:"properties.gauge.radial",value:"radial"},{icon:"gauge_vertical_bar",component:"icon-item",labelPlacement:"bottom",translation:"properties.gauge.bar",value:"bar"}],change(e){"radial"===e.gaugetype?(N=e.orientation,e.orientation="horizontal"):e.orientation=N}},autoOrientation:{ref:"autoOrientation",translation:"properties.orientation",type:"boolean",defaultValue:!0,component:"switch",undefinedValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],show:e=>"bar"===e.gaugetype},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"horizontal",horizontal:!0,items:[{component:"icon-item",icon:"direction_up_down",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"direction_left_right",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:e=>"bar"===e.gaugetype&&!e.autoOrientation},segments:{type:"items",items:{useSegments:{ref:"useSegments",type:"boolean",component:"switch",defaultValue:!1,translation:"properties.gauge.useSegments",change(e){const t=function(e){const{paletteColors:t,colors:i}=e;return t&&t.length?t:i&&i.length?i.map(e=>({index:e.color})):void 0}(e.segmentInfo);t&&(e.useSegments&&1===t.length?e.segmentInfo.paletteColors=[e.paletteProgressColor||e.progressColor]:e.paletteProgressColor=t[0])},options:[{value:!1,translation:"properties.off"},{value:!0,translation:"properties.on"}]},useBaseColor:{ref:"color.useBaseColors",type:"string",defaultValue:"measure",translation:"properties.useLibraryMeasureColors",component:"switch",show:e=>(e.color||(e.color={}),e.color.useBaseColors||(e.color.useBaseColors="off"),!0),options:[{value:"off",translation:"properties.off"},{value:"measure",translation:"properties.on"}]},paletteProgressColor:{component:"color-picker",translation:"properties.color",ref:"paletteProgressColor",type:"object",dualOutput:!0,defaultValue:s,show(e){if(!i(e,"paletteProgressColor")){let t=function({progressColor:e,theme:t}){const i=t.getDataColorPickerPalettes()[0]?.colors;return null!=e?void 0!==e.index&&-1!==e.index&&i[e.index]?i[e.index]:void 0!==e.color?e.color?e.color:"none":i[e]?i[e]:e||"none":"none"}({progressColor:i(e,"progressColor"),theme:o}),n=-1;t&&"none"!==t||(t=s(),n=t.index),a(e,"paletteProgressColor",{index:n,color:t})}return!R(e)&&!e.useSegments}},segmentInfo:{ref:"segments",type:"items",component:"color-scale-creator",show:e=>!R(e)&&e.useSegments,items:{limits:{ref:"segmentInfo.limits",type:"array",items:{value:{ref:"value",type:"number",expression:"optional",invalid:(e,t)=>"number"==typeof e.value&&(e.value<t.measureAxis.min||e.value>t.measureAxis.max),defaultValue:1}}},paletteColors:{items:{color:{ref:"color",type:"string"},index:{ref:"index",type:"integer",defaultValue:6}},type:"array",ref:"segmentInfo.paletteColors"}}}}},disclaimerClosed:{ref:"disclaimerClosed",type:"boolean",defaultValue:!1,show:!1}}},measureAxis:{type:"items",label:(t,i)=>(t=>{let i;const a=t.getMeasureLayouts()[0];return i=a&&!a.qError?`${e.translator.get("properties.measureAxis")}: ${a.qFallbackTitle}`:e.translator.get("properties.measureAxis"),i})(i),grouped:!0,items:{axis:{type:"items",snapshot:{title:"properties.measureAxis",tid:"property-yAxis"},items:{show:{ref:"measureAxis.show",translation:"properties.axis.labelsAndTitle",type:"string",component:"dropdown",options:[{value:"all",translation:"properties.axis.show.all"},{value:"labels",translation:"properties.axis.show.labels"},{value:"title",translation:"properties.axis.show.title"},{value:"none",translation:"Common.None"}],defaultValue:"all"},spacing:{ref:"measureAxis.spacing",translation:"properties.axis.scale",type:"number",component:"dropdown",defaultValue:1,show:e=>e.measureAxis&&"none"!==e.measureAxis.show&&"title"!==e.measureAxis.show,options:[{value:2,translation:"properties.gridLine.wide"},{value:1,translation:"properties.gridLine.medium"},{value:.5,translation:"properties.gridLine.narrow"}]}}}}}}}}},support:{cssScaling:!1,snapshot:!0,export:!0,sharing:!0,exportData:!0,viewData:!0},importProperties:(t,i,a,n)=>c.axisChart.importProperties({exportFormat:t,initialProperties:i,hypercubePath:n,extension:a,dataDefinition:A(e)}),exportProperties:(e,t,i)=>c.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:i,supportedAutoMinMax:!1})}}const C={require:["chart","renderer"],renderer:"dom",render(e){return function({chart:e,settings:t,h:i}){if(!e)return[];const a=function({h:e,settings:t}){if(!t)return[];const{isRtl:i,title:a,text:n}=t,r={disclaimer:{borderRadius:"10px",border:"1px solid #404040",position:"absolute",top:"10%",left:"50%",margin:"0 0 0 -150px",width:"298px",cursor:"default",background:"white",direction:i?"rtl":"ltr"},closeIcon:{position:"absolute",[i?"left":"right"]:"5px",top:"3px",cursor:"pointer",color:"#595959",pointerEvents:"auto"},dmHeader:{color:"#575859",fontSize:"18px",paddingLeft:"20px",paddingTop:"10px",paddingRight:"20px",paddingBottom:"0px",maxHeight:"44px",overflow:"hidden"},dmMain:{display:"block",color:"#575859",paddingLeft:"20px",paddingRight:"20px",paddingTop:"10px",paddingBottom:"10px"},dmP:{paddingBottom:"10px"}};return[e("div",{style:r.disclaimer},e("div",{style:r.closeIcon,onClick:()=>t?.close()},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},e("defs",{},e("path",{id:"remove-a",d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"})),e("use",{xlinkHref:"#remove-a"}))),e("header",{style:r.dmHeader},a),e("main",{style:r.dmMain},e("p",{style:r.dmP},n)))]}({settings:t,h:i});return a}({chart:this.chart,settings:this.settings?.settings,h:e})}},E=52,D=-.7*Math.PI,T=.7*Math.PI,q="#EEEEEE",z=2.38,_={MIN:12,MAX:60},$={MIN:100,MAX:1e3},F={LEFT:4,RIGHT:4},V={VERTICAL_ALIGNMENT_FACTOR:.4},B={VERTICAL_ALIGNMENT_FACTOR:.5},O=1.15,G=2,H=1.2,W="#595959",j="#E6E6E6",U=.4,X=1,K=2,Z=.15,J=20,Y=150,Q=12,ee=8,te=70,ie=3,ae={MEASURE:"measure"},ne={BAR:"bar",SEGMENT_BAR:"segment-bar",LABEL_BAR:"label-bar",BACKGROUND_BAR:"background-bar",MARK:"mark",OOB_INDICATOR:"oob-indicator",BAR_AXIS:"bar-axis",AXIS_TITLE:"axis-title",GAUGE_LABEL:"gauge-label",RADIAL_AXIS:"radial-axis",RADIAL_GAUGE_NEEDLE:"radial-gauge-needle",RADIAL_OOB_INDICATOR_MIN:"radial-oob-indicator-min",RADIAL_OOB_INDICATOR_MAX:"radial-oob-indicator-max",RADIAL_GAUGE:"radial-gauge",CIRCLE_GAUGE:"circle-gauge",REFERENCE_LINES_AND_LABELS:"reference-lines-and-labels",RADIAL_SPARK:"radial-spark",RADIAL_GAUGE_LABEL:"radial-gauge-label",RADIAL_REFERENCE_LINES:"radial-reference-lines",SEGMENT_RADIAL_GAUGE:"segment-radial-gauge",LABEL_RADIAL_GAUGE:"label-radial-gauge"},re="color",oe=1e-4,se="XSMALL",le="XSMALL_VERTICAL",ce="XSMALL_HORIZONTAL",ue="SMALL",he="MEDIUM",pe={FULL:{width:550,height:450},MEDIUM:{width:300,height:150},SMALL:{width:150,height:84},SMALLER:{width:150,height:75},XSMALL:{width:84,height:84},XSMALL_VERTICAL:{width:105,height:0},XSMALL_HORIZONTAL:{width:0,height:104},SPARK:{height:75,width:50}},de=600,me=200,ge=500;function fe(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function ye(e,t){var i=Object.create(e.prototype);for(var a in t)i[a]=t[a];return i}function xe(){}var be=.7,ve=1/be,Se="\\s*([+-]?\\d+)\\s*",Me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ke="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",we=/^#([0-9a-f]{3,8})$/,Ie=new RegExp(`^rgb\\(${Se},${Se},${Se}\\)$`),Ae=new RegExp(`^rgb\\(${ke},${ke},${ke}\\)$`),Le=new RegExp(`^rgba\\(${Se},${Se},${Se},${Me}\\)$`),Ne=new RegExp(`^rgba\\(${ke},${ke},${ke},${Me}\\)$`),Re=new RegExp(`^hsl\\(${Me},${ke},${ke}\\)$`),Pe=new RegExp(`^hsla\\(${Me},${ke},${ke},${Me}\\)$`),Ce={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ee(){return this.rgb().formatHex()}function De(){return this.rgb().formatRgb()}function Te(e){var t,i;return e=(e+"").trim().toLowerCase(),(t=we.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?qe(t):3===i?new Fe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?ze(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?ze(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Ie.exec(e))?new Fe(t[1],t[2],t[3],1):(t=Ae.exec(e))?new Fe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Le.exec(e))?ze(t[1],t[2],t[3],t[4]):(t=Ne.exec(e))?ze(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Re.exec(e))?We(t[1],t[2]/100,t[3]/100,1):(t=Pe.exec(e))?We(t[1],t[2]/100,t[3]/100,t[4]):Ce.hasOwnProperty(e)?qe(Ce[e]):"transparent"===e?new Fe(NaN,NaN,NaN,0):null}function qe(e){return new Fe(e>>16&255,e>>8&255,255&e,1)}function ze(e,t,i,a){return a<=0&&(e=t=i=NaN),new Fe(e,t,i,a)}function _e(e){return e instanceof xe||(e=Te(e)),e?new Fe((e=e.rgb()).r,e.g,e.b,e.opacity):new Fe}function $e(e,t,i,a){return 1===arguments.length?_e(e):new Fe(e,t,i,null==a?1:a)}function Fe(e,t,i,a){this.r=+e,this.g=+t,this.b=+i,this.opacity=+a}function Ve(){return`#${He(this.r)}${He(this.g)}${He(this.b)}`}function Be(){const e=Oe(this.opacity);return`${1===e?"rgb(":"rgba("}${Ge(this.r)}, ${Ge(this.g)}, ${Ge(this.b)}${1===e?")":`, ${e})`}`}function Oe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ge(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function He(e){return((e=Ge(e))<16?"0":"")+e.toString(16)}function We(e,t,i,a){return a<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new Ue(e,t,i,a)}function je(e){if(e instanceof Ue)return new Ue(e.h,e.s,e.l,e.opacity);if(e instanceof xe||(e=Te(e)),!e)return new Ue;if(e instanceof Ue)return e;var t=(e=e.rgb()).r/255,i=e.g/255,a=e.b/255,n=Math.min(t,i,a),r=Math.max(t,i,a),o=NaN,s=r-n,l=(r+n)/2;return s?(o=t===r?(i-a)/s+6*(i<a):i===r?(a-t)/s+2:(t-i)/s+4,s/=l<.5?r+n:2-r-n,o*=60):s=l>0&&l<1?0:o,new Ue(o,s,l,e.opacity)}function Ue(e,t,i,a){this.h=+e,this.s=+t,this.l=+i,this.opacity=+a}function Xe(e){return(e=(e||0)%360)<0?e+360:e}function Ke(e){return Math.max(0,Math.min(1,e||0))}function Ze(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}fe(xe,Te,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ee,formatHex:Ee,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return je(this).formatHsl()},formatRgb:De,toString:De}),fe(Fe,$e,ye(xe,{brighter(e){return e=null==e?ve:Math.pow(ve,e),new Fe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?be:Math.pow(be,e),new Fe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Fe(Ge(this.r),Ge(this.g),Ge(this.b),Oe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ve,formatHex:Ve,formatHex8:function(){return`#${He(this.r)}${He(this.g)}${He(this.b)}${He(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Be,toString:Be})),fe(Ue,function(e,t,i,a){return 1===arguments.length?je(e):new Ue(e,t,i,null==a?1:a)},ye(xe,{brighter(e){return e=null==e?ve:Math.pow(ve,e),new Ue(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?be:Math.pow(be,e),new Ue(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*t,n=2*i-a;return new Fe(Ze(e>=240?e-240:e+120,n,a),Ze(e,n,a),Ze(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new Ue(Xe(this.h),Ke(this.s),Ke(this.l),Oe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Oe(this.opacity);return`${1===e?"hsl(":"hsla("}${Xe(this.h)}, ${100*Ke(this.s)}%, ${100*Ke(this.l)}%${1===e?")":`, ${e})`}`}}));const Je=Math.PI/180,Ye=180/Math.PI,Qe=.96422,et=.82521,tt=4/29,it=6/29,at=3*it*it,nt=it*it*it;function rt(e){if(e instanceof ot)return new ot(e.l,e.a,e.b,e.opacity);if(e instanceof pt)return dt(e);e instanceof Fe||(e=_e(e));var t,i,a=ut(e.r),n=ut(e.g),r=ut(e.b),o=st((.2225045*a+.7168786*n+.0606169*r)/1);return a===n&&n===r?t=i=o:(t=st((.4360747*a+.3850649*n+.1430804*r)/Qe),i=st((.0139322*a+.0971045*n+.7141733*r)/et)),new ot(116*o-16,500*(t-o),200*(o-i),e.opacity)}function ot(e,t,i,a){this.l=+e,this.a=+t,this.b=+i,this.opacity=+a}function st(e){return e>nt?Math.pow(e,1/3):e/at+tt}function lt(e){return e>it?e*e*e:at*(e-tt)}function ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ut(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ht(e,t,i,a){return 1===arguments.length?function(e){if(e instanceof pt)return new pt(e.h,e.c,e.l,e.opacity);if(e instanceof ot||(e=rt(e)),0===e.a&&0===e.b)return new pt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ye;return new pt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pt(e,t,i,null==a?1:a)}function pt(e,t,i,a){this.h=+e,this.c=+t,this.l=+i,this.opacity=+a}function dt(e){if(isNaN(e.h))return new ot(e.l,0,0,e.opacity);var t=e.h*Je;return new ot(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function mt(e){return function(e){return ht(e).l<70}(e)?j:W}function gt(e,t=!0){let i="";for(let t=0;t<e.length;t++){const a=e[t];i+=0===t?`M${a.x} ${a.y}`:`L${a.x} ${a.y}`,i+=" "}return t&&(i+="Z"),i}function ft(e){const{angle:t,origin:i}=e,a=e.points.map(e=>function(e,t,i={x:0,y:0}){const a=Math.cos(t),n=Math.sin(t),r=(s=i,{x:(o=e).x-s.x,y:o.y-s.y});var o,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:a*r.x-n*r.y,y:n*r.x+a*r.y},i)}(e,t,i));return{type:"path",fill:e.fill,d:gt(a)}}fe(ot,function(e,t,i,a){return 1===arguments.length?rt(e):new ot(e,t,i,null==a?1:a)},ye(xe,{brighter(e){return new ot(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ot(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,i=isNaN(this.b)?e:e-this.b/200;return new Fe(ct(3.1338561*(t=Qe*lt(t))-1.6168667*(e=1*lt(e))-.4906146*(i=et*lt(i))),ct(-.9787684*t+1.9161415*e+.033454*i),ct(.0719453*t-.2289914*e+1.4052427*i),this.opacity)}})),fe(pt,ht,ye(xe,{brighter(e){return new pt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return dt(this).rgb()}}));const yt={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e||!t)return[];const{size:i,component:a,selector:n,pointingTo:r,isRtl:o,width:s,height:l}=t;if(!e.component(t.component))return[];const c=e.findShapes(n).filter(e=>e.key===a);if(!c?.length)return[];let u=s/2,h=l/2,p=-Math.PI/2;const d=i/3;switch(r){case"top":h=d;break;case"bottom":h=l-d,p=3*Math.PI/2-Math.PI;break;case"right":u=s-d,p=0;break;case"left":u=d,p=Math.PI}const m=[];for(let e=0;e<c.length;e+=1){const t=c[e];let n=["top",...o?["left"]:["right"]].includes(r)?t.attrs.fill:q;if(a===ne.SEGMENT_BAR){const{stops:e}=t.attrs.fill;if(["top","right"].includes(r)){const t=e.find(e=>1===e.offset);n=t?.color||W}else{const t=e.toReversed().find(e=>0===e.offset);n=t?.color||W}}const s=mt(n),l={x:u,y:h},d=i/6,g=ft({points:[{x:l.x+2*d,y:l.y},{x:l.x,y:l.y+d},{x:l.x,y:l.y-d}],angle:p,fill:s,origin:l});m.push(g)}return m}({chart:this.chart,settings:this.settings?.settings})}};function xt({services:e}){const{colorService:t,layoutService:i,themeService:a}=e,{useBaseColors:n}=i.getLayout().color||{},{baseColor:r}=i.getLayout().qHyperCube?.qMeasureInfo[0].coloring||{};if("off"===n)return t.getColor();let o;if(!r)return t.getColor();{const e=a.getTheme().getDataColorPickerPalettes()[0]?.colors||[];o=r.color??W;const t=r.index??-1;e.length>0&&t>-1&&t<e.length&&(o=e[t])}return()=>o}function bt(e,t,i,a){const n=Math.floor(Math.min(e,t)),r=Math.abs(a-i),o=.02*Math.tan(-r/4+Math.PI/2),s=2*(.4+o)-2*kt(e,t)/n;return{innerRadius:s-2*(n>500?50:Math.max(n/ge*50,10))/n,outerRadius:s,radiusIncrease:o,labelGaugeRadius:1.39*(.4+o)}}function vt(e,t,i,a){const n=a-Math.PI/2;return{x:e+i*Math.cos(n),y:t+i*Math.sin(n)}}function St({innerRadius:e,outerRadius:t,width:i,height:a}){return(t-e)*Math.min(i,a)/2}function Mt(e){return!1!==e.show&&0!==e.show&&"0"!==e.show}function kt(e,t){return Math.min(6,Math.min(e,t)/me)}function wt(e,t){return 4*bt(e,t,D,T).radiusIncrease*Math.min(e,t)}const It={require:["chart","symbol"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t,symbol:i}){if(!e||!t||!i)return[];if(!e.component(t.component))return[];const{valueAngle:a,width:n,height:r}=t,{outerRadius:o,innerRadius:s}=bt(n,r,D,T),l=St({innerRadius:s,outerRadius:o,width:n,height:r}),c=n/2,u=r/2,h=o*Math.min(n,r)/2,p=vt(c,u,h,t.valueAngle),d=p.x,m=p.y,g=[],f=q,y=t.fill||mt(f),x={x:d,y:m},b=l/6,v=[{x:x.x+.3*b,y:x.y},{x:x.x-7.5*b,y:x.y+b},{x:x.x-7.5*b,y:x.y-b}],S=a-Math.PI/2,M=ft({points:v,angle:S,fill:y,origin:x});return M.data={pointerWidth:b,angle:S,radius:h,fill:y},g.push(M),g}({chart:this.chart,settings:this.settings?.settings,symbol:this.symbol})}};const At={require:["chart","symbol"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t,symbol:i}){if(!e||!t||!i)return[];const{size:a,component:n,selector:r,angle:o,radius:s,width:l,height:c}=t;if(!e.component(t.component))return[];const u=e.findShapes(r).filter(e=>e.key===n);if(!u?.length)return[];const h=l/2,p=c/2,{x:d,y:m}=vt(h,p,s,o),g=[],f=t.fill,y=o===D?-1:1,x={x:d,y:m},b=a/6,v=ft({points:[{x:x.x+(2*b+1)*y,y:x.y+.5},{x:x.x+1*y,y:x.y+b+.5},{x:x.x+1*y,y:x.y-b+.5}],angle:o,fill:f,origin:x});return g.push(v),g}({chart:this.chart,settings:this.settings?.settings,symbol:this.symbol})}};function Lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nt,Rt;var Pt=function(){if(Rt)return Nt;Rt=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,n=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},r=function(i){if(!i||"[object Object]"!==t.call(i))return!1;var a,n=e.call(i,"constructor"),r=i.constructor&&i.constructor.prototype&&e.call(i.constructor.prototype,"isPrototypeOf");if(i.constructor&&!n&&!r)return!1;for(a in i);return void 0===a||e.call(i,a)},o=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,i){if("__proto__"===i){if(!e.call(t,i))return;if(a)return a(t,i).value}return t[i]};return Nt=function e(){var t,i,a,l,c,u,h=arguments[0],p=1,d=arguments.length,m=!1;for("boolean"==typeof h&&(m=h,h=arguments[1]||{},p=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});p<d;++p)if(null!=(t=arguments[p]))for(i in t)a=s(h,i),h!==(l=s(t,i))&&(m&&l&&(r(l)||(c=n(l)))?(c?(c=!1,u=a&&n(a)?a:[]):u=a&&r(a)?a:{},o(h,{name:i,newValue:e(m,u,l)})):void 0!==l&&o(h,{name:i,newValue:l}));return h},Nt}(),Ct=Lt(Pt);let Et;function Dt(){Et=Et||document.createElement("canvas").getContext("2d")}const Tt={measureTextWidth(e){Dt();const{width:t}=Et.measureText(e);return t},lineWrap(e,t,i,a){let n,r;Dt();const o=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,h,p=e?e.split(/\s+/):[],d=o[0];if("number"!=typeof t||t<=0)return[e];if("number"==typeof a&&o.length>=a)return o.slice(0,a);for(i&&(Et.font=i),r=0;r<o.length;r++){for(h=o[r],p=h.split(/\s+/),[d]=p,u="",n=1;n<p.length;n++)if(l=`${d} ${p[n]}`,c=Tt.measureTextWidth(l),c>t&&("number"!=typeof a||a>s.length)?(s.push(d),d=p[n]):d=l,"number"==typeof a&&s.length>=a){u=p.slice(n+1).join(" ");break}"number"!=typeof a||s.length<a?s.push(d):s[Math.max(0,s.length-1)]=`${s[Math.max(0,s.length-1)]} ${d} ${u}`}return s},wordWrap(e,t,i,a,n){if(Dt(),!e||!e.length)return[];i&&(Et.font=i);let r=[];const o=e.slice();let s,l,c,u="";if(o.filter(e=>!!e),"number"!=typeof t||t<0)return e.slice();for(c=0;c<o.length;c++)l=o[c],u="",l.length<=1||Tt.measureTextWidth(l)<=t?r.push(l):(s=Tt.splitWord(l,t,void 0,void 0===a?void 0:a-r.length),s.length<=1?r.push(s[0]):(u=s.pop()??"",r=r.concat(s),o[c+1]?Tt.measureTextWidth(`${u} ${o[c+1]}`)>t&&(void 0===a||r.length+o.length-c<=a)?o.splice(c+1,0,u):o[c+1]=`${u} ${o[c+1]}`:o.push(u)));return r.forEach((e,t,i)=>{i[t]=e.trim()}),void 0!==a&&r.length>a?(r=r.splice(0,a),r[r.length-1]=Tt.truncate(r[r.length-1],t,i,n).text):(l=r[r.length-1],l&&l.length>1&&Tt.measureTextWidth(l)>t&&(r[r.length-1]=Tt.truncate(l,t,i,n).text)),r},truncate(e,t,i,a="…"){Dt();let n,r,o,s,l=e;const c=Tt.measureTextWidth("i");if(i&&(Et.font=i),e&&t){if(Tt.measureTextWidth(l)>t){const e=Math.ceil(t/c);for(n=Math.min(e,l.length);n>0;n--)if(r=l.substring(0,n-1),o=r.trim()+a,Tt.measureTextWidth(o)<=t){s=l.substring(n-1),l=o;break}n||(s=l,l="…")}}else s=void 0;return{text:l,rest:s}},isNumber:e=>"number"==typeof e&&Number.isFinite(e),explodeWord(e,t,i,a){let n;Dt();let r,o=e,s="",l=[];if(void 0!==i&&Tt.isNumber(i)&&i<=1)return[e];const c=Math.ceil(t/a);for(n=Math.min(e.length,c);n>0&&(o=e.substring(0,n),r=e.substring(n-1,n)," "===r?o=e.substring(0,n-1):o+="-",s=e.substring(n),!(Tt.measureTextWidth(o)<=t));n--);return(!n&&!o||Tt.measureTextWidth(o)>t)&&(o=e.substring(0,1),s=e.substring(1)),l.push(o),s?(Tt.measureTextWidth(s)>t?l=l.concat(Tt.explodeWord(s,t,void 0===i?void 0:i-1,a)):l.push(s),l.filter(e=>""!==e.trim())):l},splitWord:(e,t,i,a)=>(Dt(),e&&t?(i&&(Et.font=i),Tt.explodeWord(e,t,a,Math.max(1,Tt.measureTextWidth("i")))):[]),wrapText(e,t,i,a,n="…"){let r;return Number.isNaN(t)||!t?[e]:(r=void 0===a||a>1?Tt.lineWrap(e,t,i,a):[e],r=Tt.wordWrap(r,t,i,a,n),r)},getFontHeight:e=>(Dt(),e&&(Et.font=e),1.5*Tt.measureTextWidth("m")),tokenize(e,t,i,a,n,r,o=1){Dt(),t&&(Et.font=t);const s=Tt.getFontHeight(),l=o*s;let c=[],u=[];if(void 0!==r&&r<s)return[];const h=r?Math.max(1,Math.floor(r/l)):a||1;return c=[void 0===a||Number.isNaN(a)||a<=0?h:Math.min(h,a)],Array.isArray(e)?e.forEach((e,i)=>{u.length<h&&(u=u.concat(Tt.wrapText(e,n,t,c[i])))}):u=Tt.wrapText(e,n,t,c[0],i),u}};function qt({chart:e,renderer:t,refLine:i,settings:a,width:n,height:r,barWidth:o}){if(!e||!t||!a)return{};const{position:s,scale:l,value:c,label:u,line:h,formatter:p,cId:d}=i,m=i.radius?i.radius*(Math.min(n,r)/2):n/2,g=(T-D)*s+D-Math.PI/2,f={x:n/2,y:r/2},y=Ct(!0,{},a.style.line,h||{}),x={type:"line",cId:d,...{x1:f.x+Math.cos(g)*m,y1:f.y+Math.sin(g)*m,x2:f.x+Math.cos(g)*(m+o),y2:f.y+Math.sin(g)*(m+o)},data:{angle:g,innerRadius:m},stroke:y.stroke,strokeWidth:y.strokeWidth,strokeDasharray:y.strokeDasharray};let b;if(u){const i=Ct(!0,{fill:"#000",fontFamily:"Arial",fontSize:"12px",opacity:1,padding:5,background:{fill:"#fff",stroke:"transparent",strokeWidth:0,opacity:.5}},a.style.label||{},{fill:y.stroke},u),{fontFamily:s,fontSize:h,fill:x,opacity:v}=i,S=!1!==u.showLabel?i.text:"";let M,k="";if("string"==typeof p||"object"==typeof p)M=e.formatter(p);else if(void 0!==l&&"string"!=typeof l&&"function"==typeof l.data){const e=l.data()&&l.data().fields;M=e&&e[0]?e[0].formatter():null}!1!==u.showValue&&(M?k=` (${M("function"==typeof c?c():c)})`:l&&(k=` (${c})`));const w=e=>t.measureText({text:e,fontFamily:s,fontSize:h}),I=w("M").height,A=`normal ${h} ${s}`;let L,N=ie;const R=`${S}${k}`||"",P=Math.min(n,r),C=Math.min(8,P/200),E=vt(f.x,f.y,m+o+C,g+Math.PI/2),D=w(R).width;L=Math.min(E.x,n-E.x-z,te),N=function(e,t,i){const a=Math.min(Math.floor((e+z)/t),Math.floor((i-e)/t));return Math.min(a,ie)}(E.y,I,r);let T=Tt.tokenize(R,A,`... ${k}`,N,L,void 0);const q=function(e){let t="start";const i=e>-Math.PI&&e<0?"baseline":"hanging";return(e+=Math.PI/2)<0&&e>-Math.PI?t="end":e>0&&e<Math.PI&&(t="start"),{textAnchor:t,baseline:i}}(g);E.y-2*I>0&&E.y+2*I<r&&(E.x-D+z<0&&"end"===q.textAnchor||E.x+D-z>n)&&(T=Tt.tokenize(R,A,`... ${k}`,N,L,void 0)),b={fill:x,opacity:v,fontFamily:s,fontSize:h,linePosition:E,lineHeight:I,align:"left",baseline:q.baseline,textAnchor:q.textAnchor,lines:T,cId:d}}return{lineNode:x,labelNode:b}}const zt={require:["chart","renderer"],defaultSettings:{style:{line:{stroke:"#000"}}},render(){const{settings:e,chart:t,renderer:i,rect:a}=this;if(!(t&&a&&e&&i))return[];const{width:n,height:r}=a,o=e?.settings?.barWidth??0;let s=e?.lines&&e.lines.radial||[];if(0===s.length)return[];s=s.map(e=>{if("function"==typeof e.value&&(e.value=e.value()),e.scale){const i=t?.scale("string"==typeof e.scale?e.scale:""),a=i(e.value);return Ct(e,{scale:i,position:a})}return Ct(e,{position:e.value})});const l=[],c=[];[...s].forEach(a=>{if(a.position>=0&&a.position<=1){const{lineNode:s,labelNode:u}=qt({chart:t,renderer:i,refLine:a,settings:e,width:n,height:r,barWidth:o});s&&l.push(s),u&&c.push(u)}});const u=[];c.forEach(e=>{const{fill:t,opacity:i,fontFamily:a,fontSize:n,lines:r,lineHeight:o,textAnchor:s,linePosition:l,baseline:c,cId:h}=e,p=l,d=r.length-1,m=r.map((e,r)=>{let l=p.y;return d>0&&("baseline"===c?l-=(d-r)*o:l+=r*o),{type:"text",text:e,cId:h,baseline:c,anchor:s,fill:t,opacity:i,fontFamily:a,fontSize:n,x:p.x,y:l}});u.push(...m)});const{MEDIUM:h,SMALLER:p}=pe,d=n>=h.width&&r>=h.height;return[...n>=p.width&&r>=p.height?l:[],...d?u:[]]}};const _t={require:["chart","symbol"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t,symbol:i}){if(!e||!t||!i)return[];const{valueAngle:a,width:n,height:r}=t,o=.4*Math.min(n,r),s=[],l=t.fill,c={x:n/2,y:r/2},u=ft({points:[{x:c.x-o/2,y:c.y+o/2},{x:c.x,y:c.y-o},{x:c.x+o/2,y:c.y+o/2}],angle:a,fill:l,origin:c});return s.push(u),s}({chart:this.chart,settings:this.settings?.settings,symbol:this.symbol})}},$t={getGap(e,t){const i=e.position<t.position?e:t,a=e.position<t.position?t:e;return a.position-a.radius-(i.position+i.radius)},findSegmentPositionMeetMaxThenMin(e,t,i){const a=e.position+e.radius,n=e.position-Math.max(0,a-i),r=n-e.radius;return n+Math.max(0,t-r)},layoutPositionFromMin(e,t,i,a=0){const n=e.length-1;let r,o,s,l=t;for(let t=0;t<n;t++)r=e[t],o=e[t+1],s=(r.position+o.position)/2-a/2,r.position=$t.findSegmentPositionMeetMaxThenMin(r,l,s),l=r.position+r.radius+a;o&&(o.position=$t.findSegmentPositionMeetMaxThenMin(o,l,i))},adjustPositionFromMax(e,t,i,a=0){const n=e.length-1,r=Math.max(0,e[n].position+e[n].radius-i);if(0===r)return;let o,s,l,c,u=0;for(o=n;o>0&&(s=e[o],l=e[o-1],c=Math.max(0,$t.getGap(l,s)-a),c-=Math.max(0,u+c-r),u+=c,s.move=c,!(u>=r));o--);for(u<r&&l&&(c=Math.max(0,l.position-l.radius-t),c-=Math.max(0,u+c-r),u+=c,l.move=c),u=0,o=0;o<=n;o++)s=e[o],u+=s.move||0,s.move=u,s.position-=u},createLayout(e,t,i,a=0){const n=e.map(e=>e.segment),r=n.length-1;if(r<0)return[];if(0===r){const e=n[0];e.position=$t.findSegmentPositionMeetMaxThenMin(e,t,i)}else $t.layoutPositionFromMin(n,t,i,a),$t.adjustPositionFromMax(n,t,i,a);return e.filter(e=>{const a=Math.ceil(e.segment.position-e.segment.radius),n=e.segment.position+e.segment.radius;return a>=t&&n<=i})}};const Ft={require:["chart","renderer"],defaultSettings:{style:{line:{stroke:"#000"}}},render(){const{settings:e,chart:t,renderer:i,rect:a}=this;if(!(t&&a&&e&&i))return[];const{width:n,height:r}=a,{barWidth:o,needlePosition:s}=e.settings,l=e.settings?.isRtl??!1,c=l?-1:1,u=e?.lines&&e.lines.x||[],h=e?.lines&&e.lines.y||[];let p=u.length>0?u:h;if(0===p.length)return[];const d=u.length>0;p=p.map(e=>{if("function"==typeof e.value&&(e.value=e.value()),e.scale){const i=t?.scale("string"==typeof e.scale?e.scale:""),a=i(e.value);return Ct(e,{scale:i,position:a})}return Ct(e,{position:e.value})});const m=[],g=[];[...p].forEach(a=>{if(Mt(a)&&a.position>=0&&a.position<=1){const{lineNode:s,labelNode:l}=function({chart:e,renderer:t,refLine:i,settings:a,width:n,height:r,isVerticalRefLine:o,barWidth:s}){if(!e||!t||!a)return{};const{position:l,scale:c,value:u,label:h,line:p,formatter:d,cId:m}=i,g=Ct(!0,{},a.style.line,p||{}),f={type:"line",cId:m,...o?{x1:l*n,x2:l*n,y1:r/2-s/2,y2:r/2+s/2}:{x1:n/2-s/2,x2:n/2+s/2,y1:l*r,y2:l*r},stroke:g.stroke,strokeWidth:g.strokeWidth,strokeDasharray:g.strokeDasharray};let y;if(h){const i=Ct(!0,{fill:"#000",fontFamily:"Arial",fontSize:"12px",opacity:1,padding:5,background:{fill:"#fff",stroke:"transparent",strokeWidth:0,opacity:.5}},a.style.label||{},{fill:g.stroke},h),{fontFamily:p,fontSize:f,fill:x,opacity:b}=i,v=!1!==h.showLabel?i.text:"";let S,M="";if("string"==typeof d||"object"==typeof d)S=e.formatter(d);else if(void 0!==c&&"string"!=typeof c&&"function"==typeof c.data){const e=c.data()&&c.data().fields;S=e&&e[0]?e[0].formatter():null}!1!==h.showValue&&(S?M=` (${S("function"==typeof u?u():u)})`:c&&(M=` (${u})`));const k=e=>t.measureText({text:e,fontFamily:p,fontSize:f}),w=k("M").height,I=`normal ${f} ${p}`,A=o?Y:n/2-s/2-Q,L=o?2:1,N=`${v}${M}`||"",R=Tt.tokenize(N,I,`... ${M}`,L,A,void 0),P=(o?n:r)*l,C=Math.min(A,Math.max(...R.map(e=>k(e).width))),E=R.length*w;y={fill:x,opacity:b,fontFamily:p,fontSize:f,linePosition:P,lineHeight:w,lines:R,cId:m,segment:{position:P,radius:o?C/2:E/2}}}return{lineNode:f,labelNode:y}}({chart:t,renderer:i,refLine:a,settings:e,width:n,height:r,isVerticalRefLine:d,barWidth:o});s&&m.push(s),l&&g.push(l)}});const{MEDIUM:f,SMALLER:y}=pe,x=n>=f.width&&r>=f.height;if(!(n>=y.width&&r>=y.height))return[];const b=[...m];if(!x||0===g.length)return b;let v=[];if(g.sort((e,t)=>e.segment.position-t.segment.position),d)v=$t.createLayout(g,0,n,ee);else{const{attrs:e}=t.findShapes("text").filter(e=>e.key===ne.GAUGE_LABEL)[0],{"font-size":i}=e,a=parseFloat(i),n=g.filter(e=>e.segment.position<r-s),o=g.filter(e=>e.segment.position>=r-s),l=$t.createLayout(n,0,e.y-a/2),c=$t.createLayout(o,e.y+a/2,r);v=0===l.length&&n.length>0?$t.createLayout(g,e.y+a/2,r):0===c.length&&o.length>0?$t.createLayout(g,0,e.y-a/2):[...l,...c]}return v.forEach(e=>{const{fill:t,opacity:i,fontFamily:a,fontSize:s,lines:u,segment:h,linePosition:p,lineHeight:m,cId:g}=e,{position:f}=h;if(p!==f&&""!==e.lines[0]){let e={x1:n/2+c*(o/2),x2:n/2+c*(o/2+.75*Q),y1:p,y2:f};d&&(e={y1:r/2+o/2,y2:r/2+o/2+Q,x1:p,x2:f});const i={type:"line",...e,stroke:t,strokeWidth:1,isConnector:!0,cId:g};b.push(i)}const y=u.map((e,u)=>{let h=d?r/2+o/2+m/2+Q:f;return h+=u*m,{type:"text",text:e,cId:g,baseline:"central",anchor:d?"middle":l?"end":"start",fill:t,opacity:i,fontFamily:a,fontSize:s,x:d?f:n/2+c*(o/2+Q),y:h}});b.push(...y)}),b}},Vt=()=>{const e=u(),t=h(),[i,a]=p({});return d(()=>{e.style.overflow="hidden";const i=I();i.use(w),i.component("oob-indicator",yt),i.component("radial-gauge-needle",It),i.component("radial-custom-ref-line",zt),i.component("custom-ref-line",Ft),i.component("radial-oob-indicator",At),i.component("radial-spark",_t),i.component("disclaimer-component",C);const r=i({renderer:{prio:[t.renderer||"svg"]}}),o=r.chart({element:e,data:[],settings:{}});return a({picassoInstance:r,chart:o,cache:n()}),()=>{o.destroy()}},[]),i};var Bt={dataRelatedPropertiesPaths:["filters[].options","qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qFallbackTitle","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qNumFormat","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","measureAxis.min","measureAxis.max","refLine.refLines[].refLineExpr"]};function Ot(e){const{qHyperCube:t,...n}=e,{...r}=t||{},o=Ct(!0,{},{...n,qHyperCube:{...r,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:s}=Bt;return s.forEach(e=>{const t=e.split("[");if(1===t.length)void 0!==i(o,e)&&a(o,e,null);else{const e=t[0],n=t[1].split("].")[1];i(o,e,[]).forEach(e=>{void 0!==i(e,n)&&a(e,n,null)})}}),o}const Gt=({core:e,services:t,settings:i})=>{const a=u(),{qLocaleInfo:n}=m();d(()=>{if(!t)return;const{chart:r,cache:o}=e;if(!r)return;const{colorService:s,layoutService:l,dockService:c}=t;if("radial"===l.meta.gaugetype){const{width:e,height:t}=c.meta.chart.size;a.style.transform=`translateY(${wt(e,t)}px)`}else a.style.transform="";r.update({data:[{type:"q",key:"qHyperCube",data:l.getHyperCube(),config:{localeInfo:n}},...s.getData()],settings:i}),o&&function({cache:e,layout:t}){const i=Ot(t);e.set("dataIndependentProperties",JSON.stringify(i))}({cache:o,layout:l.getLayout()})},[e,i])};function Ht({layout:e,options:t}){return e.snapshotData&&!t.freeResize?{width:e.snapshotData.content.size.w,height:e.snapshotData.content.size.h,preserveAspectRatio:!0,align:.5}:void 0}function Wt({options:e,cache:t,layoutService:i}){const a={isSizeChanging:!1};return{enabled:()=>!1!==e.chartAnimations&&!a.isSizeChanging&&!function({cache:e,layout:t}){const i=Ot(t);return e.get("dataIndependentProperties")!==JSON.stringify(i)}({cache:t,layout:i.getLayout()}),meta:a}}function jt({layout:e,rect:t}){const{measureAxis:i,qHyperCube:a,autoOrientation:n,gaugetype:r,useSegments:o,refLine:s}=e,l=e.qHyperCube?.qMeasureInfo[0].qFallbackTitle,{width:c,height:u}=t;let h=e.orientation;n&&(h=c>=u?"horizontal":"vertical");const p="vertical"===h,d=function({measureAxis:e,qHyperCube:t}){if(!e||!t)return{min:0,max:1};let{min:i,max:a}=e;if(i=Number(i),a=Number(a),i!==a)return{min:Math.min(i,a),max:Math.max(i,a)};const n=t.qDataPages[0].qMatrix[0][0].qNum;let r=Math.abs(n-i)/2;return 0===r&&(r=0!==i?Math.abs(i)/2:1),{min:i-r,max:a+r}}({measureAxis:i,qHyperCube:a}),m=s?.refLines||[],g=i?.spacing||1,f=i?.show,y=function({layout:e,rangeLimits:t}){const{gradient:i}=e.qHyperCube?.qMeasureInfo[0].coloring||{};if("measure"!==e.color?.useBaseColors||!i)return e.segmentInfo;const{min:a,max:n}=t,{limits:r,limitType:o,breakTypes:s,colors:l}=i;return{limits:r.map((e,t)=>({value:"percent"===o?a+e*(n-a):e,gradient:s[t]})),paletteColors:l}}({layout:e,rangeLimits:d});return{measureAxisTitle:l,measureAxisSpacing:g,measureAxisShow:f,rangeLimits:d,qHyperCube:a,orientation:h,autoOrientation:n,gaugetype:r,isVertical:p,useSegments:o,segmentInfo:y,refLines:m}}function Ut({dockService:e,layoutService:t}){const{width:i,height:a}=e.meta.chart.size,{orientation:n,autoOrientation:r}=t.meta;return r?i<a:"vertical"===n}function Xt(e,t,i){if(e>=i)return 1;if(e<=t)return 0;const a=Math.min(1,Math.max(0,(e-t)/(i-t)));return Number.isNaN(a)?0:a}function Kt(e,t,i){const a="none"===e||"labels"===e,n=t<pe.SMALL.width||i<pe.SMALL.height;return!(a||n)}function Zt(e){return"none"!==e&&"title"!==e}const Jt=({core:e})=>{const t=g(),i=f(),a=y(),n=x(),c=b(),u=v(),{qLocaleInfo:M}=m(),[k,w]=p(null),I=h(),A=S();return d(()=>{if(!t||!e)return;const{picassoInstance:h,chart:p,cache:d}=e;if(!p)return;t.color||(t.color={useBaseColors:"off"});const m=r({source:t,metaAdditionsFn:()=>jt({layout:t,rect:c})}),{direction:g="ltr"}=I,f=Ht({layout:m.getLayout(),options:I}),y=o({chart:p,layoutService:m,config:{rtl:"rtl"===g,logicalSize:f},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0}}),x=s({app:a,model:n,translator:u,picasso:h,layoutService:m,config:{key:re,localeInfo:M,theme:i,auto:()=>({mode:"primary",byMeasureDef:{activeMeasureIndex:0,type:"expression",label:""}})},createConfig:()=>({colorProps:{auto:!0,paletteColor:t.paletteProgressColor||{index:t.progressColor}}})}),b=l({theme:i,config:{id:"gauge"}}),v=function({chart:e,layoutService:t,dockService:i}){function a(){const{width:e,height:a}=i.meta.chart.size,n=Ut({dockService:i,layoutService:t});return Math.min(E,n?e/10:a/10)}function n(){const{width:e,height:a}=i.meta.chart.size;return Ut({dockService:i,layoutService:t})?a:e}function r(e){const{min:i,max:a}=t.meta.rangeLimits,r=e?a-(t.meta.qHyperCube.qDataPages[0].qMatrix[0][0].qNum-i):t.meta.qHyperCube.qDataPages[0].qMatrix[0][0].qNum;return n()*Xt(r,i,a)}const o={getBottomPadding(o){if(Ut({dockService:i,layoutService:t})){const e=r(!1)+-o.height*V.VERTICAL_ALIGNMENT_FACTOR,t=0,i=n()-o.height/O;return e<t?t:e>i?i:e}const s=a(),{VERTICAL_ALIGNMENT_FACTOR:l}=B;let c=.5*s+o.height/2+s*l;return c=function({refLabels:e,valueLabel:t}){return e.forEach(e=>{(function(e,t){const i=t.x-t.width/2>=e.x+e.width/2||t.x+t.width/2<=e.x-e.width/2,a=t.y-t.height/2>=e.y+e.height/2;return!(i||a)})(e,t)&&(t.y=e.y+e.height/2+t.height/2)}),t.y}({refLabels:e.findShapes("text").filter(e=>e.key===ne.REFERENCE_LINES_AND_LABELS).map(e=>{const{x:t,y:a,"font-size":n}=e.attrs,r=parseFloat(n);return{x:t,y:a-i.meta.chart.size.height/2,height:r,width:Y}}),valueLabel:{x:r(i.config.rtl),y:c,...o}}),-c},getTopPadding:e=>-o.getBottomPadding(e),getLeftPadding(e){const{width:o}=i.meta.chart.size,s=i.config.rtl,l=a(),c=Ut({dockService:i,layoutService:t}),u=Math.min(e.width,o*U);if(c)return s?o/5-l-u:o/5+l;const h=r(s)-e.width/2,p=F.RIGHT,d=n()-e.width-F.LEFT;return h<p?p:h>d?d:h},getRightPadding:e=>-o.getLeftPadding(e)},s={getLeftPadding(n){if(!Ut({dockService:i,layoutService:t}))return 0;const r=e.findShapes("container").filter(e=>e.key===ne.BAR_AXIS);if(1!==r.length)return 0;const o=r[0],s=Zt(t.meta.measureAxisShow)?Math.max(...o.children.filter(e=>"text"===e.type).map(e=>e.bounds.width)):0,l=Math.max(...o.children.filter(e=>"line"===e.type).map(e=>e.bounds.width));let c=a()/2+s+l+1.9*n.height;const{width:u}=i.meta.chart.size;return c>u/2-n.height/4&&(c=u/2-n.height/4),i.config.rtl?c:-c},getRightPadding:e=>-s.getLeftPadding(e),getTopPadding(){if(Ut({dockService:i,layoutService:t}))return-4;const n=e.findShapes("container").filter(e=>e.key===ne.BAR_AXIS);if(1!==n.length)return 0;const r=n[0],o=Zt(t.meta.measureAxisShow)?Math.max(...r.children.filter(e=>"text"===e.type).map(e=>e.bounds.height)):0,s=Math.max(...r.children.filter(e=>"line"===e.type).map(e=>e.bounds.height)),l=a();return-(l/2+o+s+J+l*Z)},getBottomPadding:()=>-s.getTopPadding()};return{getBarWidthInPixels:a,getValueLabelFontSize:function(e,t){const{width:a,height:n}=i.meta.chart.size,r=Xt(Math.min(n,a),$.MIN,$.MAX);return e+Math.round(r*(t-e))},getNeedlePosition:r,barValueLabel:o,barAxisTitle:s}}({chart:p,layoutService:m,dockService:y}),S=function({layoutService:e,themeService:t,colorService:i}){const a=t.getStyles(),n=t=>{const i=e.getLayoutValue("components",[])?.find(e=>e.key===t);return i},r=e=>e?i.getPaletteColor(e):void 0;return{query:{axis:{title:{getStyle:()=>({fontFamily:n("axis")?.axis?.title?.fontFamily??a.axis.title.fontFamily,fontSize:a.axis.title.fontSize,color:r(n("axis")?.axis?.title?.color)??a.axis.title.color})},label:{getStyle:()=>({fontFamily:n("axis")?.axis?.label?.name?.fontFamily??a.axis.label.name.fontFamily,fontSize:a.axis.label.name.fontSize,fill:r(n("axis")?.axis?.label?.name?.color)??a.axis.label.name.color})}},label:{getStyle:()=>({fontFamily:n("value")?.label?.value?.fontFamily??a.label.value.fontFamily,fill:r(n("value")?.label?.value?.color)??a.label.value.color})}}}}({layoutService:m,themeService:b,colorService:x}),k=Wt({options:I,cache:d,layoutService:m}),L=function({layout:e,model:t,translator:i,interactionState:a}){return{isClosed:()=>e.disclaimerClosed,close:()=>{t.getProperties().then(e=>{e.disclaimerClosed=!0,t.setProperties(e)})},translator:i,isEditMode:a.edit}}({layout:t,model:n,translator:u,interactionState:A});w({layoutService:m,colorService:x,dockService:y,labelService:v,themeService:b,styleService:S,animationsService:k,disclaimerService:L})},[n,a,t,i.name(),u.language(),e,I.direction,A.edit]),k};function Yt({width:e,height:t,fontSize:i}){const{FULL:a}=pe;if(e>=a.width&&t>=a.height){let e=Number.parseFloat(i);return e=Math.floor(e*H),`${e}px`}return i}var Qt=e=>()=>e;function ei(e){return 1===(e=+e)?ti:function(t,i){return i-t?function(e,t,i){return e=Math.pow(e,i),t=Math.pow(t,i)-e,i=1/i,function(a){return Math.pow(e+a*t,i)}}(t,i,e):Qt(isNaN(t)?i:t)}}function ti(e,t){var i=t-e;return i?function(e,t){return function(i){return e+i*t}}(e,i):Qt(isNaN(e)?t:e)}var ii=function e(t){var i=ei(t);function a(e,t){var a=i((e=$e(e)).r,(t=$e(t)).r),n=i(e.g,t.g),r=i(e.b,t.b),o=ti(e.opacity,t.opacity);return function(t){return e.r=a(t),e.g=n(t),e.b=r(t),e.opacity=o(t),e+""}}return a.gamma=e,a}(1);function ai({thisColor:e,paletteColors:t,paletteIndex:i,limit:a,isLeft:n=!1,themeService:r}){const o=n?0:1,s=0===Object.entries(a).length,l=a.gradient;let c=i+(n?-1:1);s&&(c=n?0:t.length-1);const u=r.getTheme().getColorPickerColor(c<t.length&&c>=0?t[c]:t[0]);return{color:l?ii(e,u)(.5):e,offset:o,gradient:l}}function ni({limits:e,paletteColors:t,paletteIndex:a,themeService:n}){const r=i(e,""+(a-1),{}),o=i(e,`${a}`,{}),s=[r,o].map(e=>e.gradient).includes(!0),l=n.getTheme().getColorPickerColor(t[a]);if(!s)return[{offset:0,color:l},{offset:1,color:l}];const c=[ai({thisColor:l,paletteColors:t,paletteIndex:a,limit:r,isLeft:!0,themeService:n}),ai({thisColor:l,paletteColors:t,paletteIndex:a,limit:o,isLeft:!1,themeService:n})];2===c.filter(e=>e.gradient).length&&c.splice(1,0,{offset:.5,color:l,gradient:!0});const u=c.map(({offset:e,color:t,gradient:i})=>({offset:e,color:t,gradient:i}));return u}function ri({themeService:e,segmentInfo:t,rangeLimits:i}){const{limits:a,colors:n}=t;let{paletteColors:r}=t;r&&0!==r.length||!n||(r=n.map(e=>({index:e.color})));const{min:o,max:s}=i;a.sort((e,t)=>e.value-t.value);const l=[o,...a.map(e=>e.value),s],c=[];for(let t=0;t<r.length;t++){const i=ni({limits:a,paletteColors:r,paletteIndex:t,themeService:e}).map(e=>({offset:Xt(l[t]+e.offset*(l[t+1]-l[t]),o,s),color:e.color,gradient:"gradient"in e?e.gradient:void 0}));c.push(...i)}return c}function oi(e){return e.map(e=>({...e,offset:1-e.offset})).reverse()}function si({themeService:e,isVertical:t,segmentInfo:i,rangeLimits:a,isRtl:n}){return{type:"gradient",x1:0,x2:t?0:1,y1:t?1:0,y2:0,stops:n&&!t?oi(ri({themeService:e,segmentInfo:i,rangeLimits:a})):ri({themeService:e,segmentInfo:i,rangeLimits:a})}}function li(e){const t=function(e){if(e=e.replace("#",""),6!==e.length)throw new Error("Invalid hex color");const t=parseInt(e.substring(0,2),16),i=parseInt(e.substring(2,4),16),a=parseInt(e.substring(4,6),16);return{r:t,g:i,b:a}}(e),i=.21*t.r+.72*t.g+.07*t.b>127.5?-50:50;return`rgb(${t.r+i}, ${t.g+i}, ${t.b+i})`}function ci({services:e}){const{dockService:t,disclaimerService:i}=e,{translator:a,isClosed:n,isEditMode:r}=i;if(n()||!r)return!1;const o=t.config.rtl;return{key:"disclaimer-component",type:"disclaimer-component",layout:{displayOrder:5,minimumLayoutMode:he},settings:{isRtl:o,close:e.disclaimerService.close,title:a.get("Object.Gauge.RangeIsDefaultTitle"),text:a.get("Object.Gauge.RangeIsDefault")}}}function ui({services:e}){const{dockService:t,layoutService:i,themeService:a,animationsService:n}=e,{qHyperCube:r,useSegments:o,segmentInfo:s,rangeLimits:l}=i.meta,c=Ut({dockService:t,layoutService:i}),u=c?"vertical":"horizontal";if(!o)return!1;const{min:h,max:p}=l,d=r.qDataPages[0].qMatrix[0][0].qNum,m=Math.max(h,Math.min(p,d)),g={type:"box",key:ne.MARK,data:{extract:{field:"qMeasureInfo/0",props:{start:m,end:m,measureIndex:0}}},settings:{minor:{scale:"m"},orientation:u,box:{width:.1,maxWidthPx:E,minHeightPx:G,fill:()=>function({themeService:e,isVertical:t,segmentInfo:i,rangeLimits:a,value:n}){const r=si({themeService:e,isVertical:t,segmentInfo:i,rangeLimits:a,isRtl:!1}),{min:o,max:s}=a,l=Xt(n,o,s),{stops:c}=r;let u="black";for(let e=0;e<c.length;e++){const t=c[e].offset,i=c[e+1].offset;if(l>=t&&l<=i){const a=Xt(l,t,i);u=mt(ii(c[e].color,c[e+1].color)(a));break}}return u}({value:d,themeService:a,isVertical:c,segmentInfo:s,rangeLimits:l}),stroke:"transparent"}},animations:{enabled:n.enabled,trackBy:e=>`${e.data.measureIndex.value}`}};return g}function hi({services:e}){const{dockService:t,themeService:i,styleService:a,layoutService:n,animationsService:r}=e;if(!Zt(n.meta.measureAxisShow))return[];const{width:o,height:s}=t.meta.chart.size,l=bt(o,s,D,T),{innerRadius:c,outerRadius:u,radiusIncrease:h}=l,p=4*h,d=Math.min(o,s)/2,m=i.getStyles(),g=a.query.axis.label.getStyle(),{tickLength:f,labelPadding:y}=function({width:e,height:t,defaultTickSize:i,defaultLabelPadding:a}){const n=Math.min(Math.min(e,t)/de,1);return{tickLength:i*n,labelPadding:a*n}}({width:o,height:s,defaultTickSize:8,defaultLabelPadding:20}),x=kt(o,s);return[{key:ne.RADIAL_AXIS,type:"axis",rendererSettings:{disableScreenReader:!0},dock:"center",layout:{minimumLayoutMode:ue},scale:"m",settings:{arc:{radius:u,startAngle:D,endAngle:T,offset:-10*p*(u-c)*d},align:"top",line:{show:!1,stroke:"#cdcdcd"},ticks:{tickSize:f,stroke:m.axis.line.major.color,margin:x},labels:{margin:-6-2*f+y,fontFamily:g.fontFamily,fill:g.fill,fontSize:g.fontSize}},animations:{enabled:r.enabled,trackBy:e=>{const{type:t,text:i,x:a,y:n,x1:r,y1:o,value:s}=e;return"text"===t?`text-${i}-${a}-${n}`:`tick-${s}-${r}-${o}`}}}]}function pi(e,t,i,a){const n=a?oi(ri({themeService:t,segmentInfo:i,rangeLimits:e})):ri({themeService:t,segmentInfo:i,rangeLimits:e}),r=(T-D)/(2*Math.PI),o=n.map(e=>{""!==e.color&&void 0!==e.color||(e.color="#000000");return{offset:e.offset*r,color:e.color}});return{type:"gradient",orientation:"conic",startAngle:D-Math.PI/2,x:0,y:0,stops:o}}function di({services:e}){const{dockService:t,themeService:i,layoutService:a,animationsService:n}=e,{rangeLimits:r,useSegments:o,segmentInfo:s,qHyperCube:l}=a.meta,{width:c,height:u}=t.meta.chart.size,h=t.config.rtl,{outerRadius:p,innerRadius:d,labelGaugeRadius:m}=bt(c,u,D,T),g=r.max,f=l.qDataPages[0].qMatrix[0][0].qNum,y=g-f,x=[{value:Math.max(oe,f-r.min),valueLabel:"Measure"},{value:Math.max(oe,y),valueLabel:"Remaining"}],b=function({themeService:e,segmentInfo:t,rangeLimits:i}){const a=ri({themeService:e,segmentInfo:t,rangeLimits:i});let n=0,r=0;const o=a.map(e=>(""!==e.color&&void 0!==e.color||(e.color="#000000"),r=0===i.max?e.offset*(i.max-i.min)-n:e.offset*i.max-n,n+=r,{value:r,color:e.color,gradient:e.gradient})).filter(e=>0!==e.value||!0===e.gradient);return o.forEach(e=>{e.value=Math.abs(e.value)}),o}({themeService:i,segmentInfo:s,rangeLimits:r});h&&(x.reverse(),b.reverse());const v={type:"pie",key:ne.RADIAL_GAUGE,data:{items:x},settings:{startAngle:D,endAngle:T,slice:{arc:{ref:"value"},outerRadius:()=>p,innerRadius:()=>d,fill:(t,i)=>{const a=xt({services:e});return h?1===i?a(t):q:0===i?a(t):q},strokeWidth:e=>e.datum.value.value===oe?0:1,stroke:(t,i)=>{const a=li(xt({services:e})(t));return h?1===i?a:"#0000":0===i?a:"#0000"}}},animations:{enabled:n.enabled,trackBy:e=>e.data.value.valueLabel}},S={type:"pie",key:ne.SEGMENT_RADIAL_GAUGE,renderer:"canvas",displayOrder:1,data:{items:b},settings:{startAngle:D,endAngle:T,slice:{arc:{ref:"value"},outerRadius:()=>p,innerRadius:()=>d,strokeWidth:0,fill:(e,t)=>(h?e.datum.value.gradient||b[t+1]?.gradient:e.datum.value.gradient||b[t-1]?.gradient)?pi(r,i,s,h):e.datum.value.color}},animations:{enabled:n.enabled,trackBy:e=>e.data.value.color}},M={type:"pie",key:ne.CIRCLE_GAUGE,renderer:"canvas",displayOrder:0,data:{items:[{value:Math.max(f,oe),valueLabel:"Measure"}]},settings:{startAngle:0,endAngle:2*Math.PI,slice:{arc:{ref:"value"},outerRadius:()=>p,innerRadius:()=>d,fill:()=>function(e,t,i,a){const n=pi(e,t,i,a),r={offset:(T-D)/(2*Math.PI),color:"rgba(0, 0, 0, 0)"};return n.stops.push(r),n.stops.push({offset:1,color:"rgba(0, 0, 0, 0)"}),n}(r,i,s,h),strokeWidth:0,opacity:o?1:0}},animations:{enabled:n.enabled,trackBy:e=>e.data.value.valueLabel,isMainComponent:!0}},k={type:"pie",key:ne.LABEL_RADIAL_GAUGE,renderer:"canvas",displayOrder:0,data:{items:[{value:Math.max(f,oe),valueLabel:"Measure"}]},settings:{startAngle:0,endAngle:2*Math.PI,slice:{arc:{ref:"value"},outerRadius:()=>m+.01,innerRadius:()=>m,opacity:0}},animations:{enabled:n.enabled,trackBy:e=>e.data.value.valueLabel,isMainComponent:!0}};return o?[M,k,S]:[k,v]}function mi({chart:e,services:t}){const{layoutService:i,styleService:a,labelService:n,animationsService:r,dockService:o}=t,{width:s,height:l}=o.meta.chart.size,{getValueLabelFontSize:c}=n,u=a.query.axis.title.getStyle(),h=c(_.MIN,_.MAX),p=Number.parseFloat(Yt({width:s,height:l,fontSize:u.fontSize})),d=function({width:e,height:t,totalFontHeight:i}){const a=bt(e,t,D,T).labelGaugeRadius*Math.min(e,t)*.9-i;return(wt(e,t)-2*kt(e,t))/a}({width:s,height:l,totalFontHeight:h+p}),m=.5-d,g=Kt(i.meta.measureAxisShow,s,l),{qHyperCube:f}=i.meta,y=f.qMeasureInfo[0].qFallbackTitle,x=f.qDataPages[0].qMatrix[0][0].qNum,b=a.query.label.getStyle();return[{type:"labels",key:ne.RADIAL_GAUGE_LABEL,layout:{displayOrder:4},settings:{sources:[{component:ne.LABEL_RADIAL_GAUGE,selector:"path",strategy:{type:"rows",settings:{fill:"#000",padding:0,justify:m,labels:[{fontSize:h,fontFamily:b.fontFamily,fill:b.fill,label({data:t}){const i=e.formatter(ae.MEASURE);return t&&i?i(x):""},linkData:({data:e})=>e?{value:e.value.value,formatter:ae.MEASURE}:null},{fontSize:p,fontFamily:u.fontFamily,fill:u.color,label:()=>g?y:""}]}}}]},animations:{enabled:r.enabled,trackBy:e=>"text"+(e.data?"value-label":"axis-title"),adjustTweenedNodes(t){t.forEach(t=>{const{type:i,data:a}=t;if("text"===i&&a&&a.value&&a.formatter&&(t.text=e.formatter(a.formatter)(a.value),t.ellipsed&&"0"!==t.ellipsed)){const{text:e,fontSize:i,fontFamily:a,maxWidth:n}=t,r=`normal ${i} ${a}`,o="…",s=1;t.ellipsed=Tt.tokenize(e,r,o,s,n)[0]}})}}}]}function gi({services:e}){const{dockService:t,layoutService:i,animationsService:a}=e,{width:n,height:r}=t.meta.chart.size,o=t.config.rtl,{rangeLimits:s,qHyperCube:l}=i.meta,{min:c,max:u}=s;let h,p=l.qDataPages[0].qMatrix[0][0].qNum;(p>u||p<c)&&(h="#00000000"),o&&(p=u-(p-c));const d=D+Xt(p,c,u)*(T-D);return{type:"radial-gauge-needle",key:ne.RADIAL_GAUGE_NEEDLE,layout:{displayOrder:2},settings:{component:ne.SEGMENT_RADIAL_GAUGE,fill:h,valueAngle:d,width:n,height:r},animations:{enabled:a.enabled,trackBy:e=>e.type,adjustTweenedNodes(e){e.forEach(e=>{const{data:t}=e;if(t){const{pointerWidth:i,angle:a,radius:o,fill:s}=t,l=vt(n/2,r/2,o,a+Math.PI/2),{x:c,y:u}=l,h=[{x:c+.3*i,y:u},{x:c-7.5*i,y:u+i},{x:c-7.5*i,y:u-i}],{d:p}=ft({points:h,angle:a,fill:s,origin:l});e.d=p}})}}}}function fi({services:e}){const{dockService:t,layoutService:i,animationsService:a}=e,{width:n,height:r}=t.meta.chart.size,o=t.config.rtl,{rangeLimits:s,useSegments:l,qHyperCube:c}=i.meta,{min:u,max:h}=s,p=c.qDataPages[0].qMatrix[0][0].qNum,{outerRadius:d,innerRadius:m}=bt(n,r,D,T),g=(m+(d-m)/2)*Math.min(n,r)/2,{RADIAL_OOB_INDICATOR_MIN:f,RADIAL_OOB_INDICATOR_MAX:y,SEGMENT_RADIAL_GAUGE:x,RADIAL_GAUGE:b}=ne;return[f,y].map((t,i)=>{const s=l?x:b,c=function(e,t){const i=xt({services:e})({datum:{value:()=>0}});return t?"#595959":i}(e,l);let f=0;(0===i&&p<u||1===i&&p>h)&&(f=St({innerRadius:m,outerRadius:d,width:n,height:r}));let y=D;return(0===i&&o||1===i&&!o)&&(y=T),{type:"radial-oob-indicator",key:t,layout:{displayOrder:2},settings:{component:s,selector:"path",angle:y,radius:g,size:f,fill:c,width:n,height:r},animations:{enabled:a.enabled,trackBy:e=>e.type}}})}function yi({core:e,services:t}){const{chart:i}=e;if(!i)return[];const{dockService:a,layoutService:n}=t,{width:r,height:o}=a.meta.chart.size,{useSegments:s}=n.meta,l=Ut({dockService:a,layoutService:n}),c=[ci({services:t})];if("bar"===t.layoutService.meta.gaugetype){c.push(...function({services:e}){const{dockService:t,layoutService:i,styleService:a,themeService:n,animationsService:r}=e;if("none"===i.meta.measureAxisShow)return[];const{width:o,height:s}=t.meta.chart.size,l=t.config.rtl,c=Ut({dockService:t,layoutService:i}),u=n.getStyles(),h=a.query.axis.label.getStyle(),{fontFamily:p,fill:d,fontSize:m}=h,g=Zt(i.meta.measureAxisShow);return[{type:"axis",rendererSettings:{disableScreenReader:!0},key:ne.BAR_AXIS,dock:"center",scale:"m",layout:{minimumLayoutMode:se},settings:{align:c?l?"right":"left":"top",line:{show:!c,stroke:u.axis.line.major.color},labels:{show:g,minLengthPx:20,fontFamily:p,fill:d,fontSize:Yt({width:o,height:s,fontSize:m})},paddingStart:()=>{if(c){const e=Math.min(o/10,E);return o/2+e/2}const e=Math.min(s/10,E);return s/2+e/2+K},ticks:{stroke:u.axis.line.major.color}},animations:{enabled:r.enabled,trackBy:e=>void 0===e.tickValue?"axis":"text"===e.type?`label: ${e.tickValue}`:`mark: ${e.tickValue}`}}]}({services:t}),...function({services:e}){const{themeService:t,dockService:i,layoutService:a,animationsService:n}=e,{rangeLimits:r,segmentInfo:o,useSegments:s}=a.meta,l=i.config.rtl,c=Ut({dockService:i,layoutService:a}),u=c?"vertical":"horizontal",{min:h,max:p}=r,d=l&&!c?p:h,m={type:"box",key:ne.BAR,data:{extract:{field:"qMeasureInfo/0",props:{start:h,end:{field:"qMeasureInfo/0"},measureIndex:0}}},settings:{minor:{scale:"m"},orientation:u,box:{width:.1,maxWidthPx:E,fill:xt({services:e}),strokeWidth:e=>e.datum.value<=h?0:1,stroke:t=>li(xt({services:e})(t))}},animations:{enabled:n.enabled,isMainComponent:!0,trackBy:e=>`${e.data.measureIndex.value}`}},g={type:"box",key:ne.SEGMENT_BAR,data:{extract:{field:"qMeasureInfo/0",props:{start:h,end:p,measureIndex:0}}},settings:{minor:{scale:"m"},orientation:u,box:{width:.1,maxWidthPx:E,fill:()=>si({themeService:t,isVertical:c,segmentInfo:o,rangeLimits:r,isRtl:l}),stroke:"transparent"}},animations:{enabled:n.enabled,trackBy:e=>`${e.data.measureIndex.value}`}},f={type:"box",key:ne.BACKGROUND_BAR,data:{extract:{field:"qMeasureInfo/0",props:{start:h,end:p}}},settings:{minor:{scale:"m"},orientation:u,box:{width:.1,maxWidthPx:E,fill:q}}},y={type:"box",key:ne.LABEL_BAR,data:{extract:{field:"qMeasureInfo/0",props:{start:d,end:d}}},settings:{minor:{scale:"m"},orientation:u,box:{width:c?U:X,opacity:0}}};return s?[y,g]:[y,f,m]}({services:t}),...function({services:e}){const{dockService:t,labelService:i,styleService:a,layoutService:n}=e,{width:r,height:o}=t.meta.chart.size;if(!Kt(n.meta.measureAxisShow,r,o))return[];const s=Ut({dockService:t,layoutService:n}),{measureAxisTitle:l,useSegments:c}=n.meta,{getTopPadding:u,getBottomPadding:h,getLeftPadding:p,getRightPadding:d}=i.barAxisTitle,m=a.query.axis.title.getStyle(),{fontFamily:g,fontSize:f,color:y}=m;return[{type:"labels",key:ne.AXIS_TITLE,settings:{sources:[{component:c?ne.SEGMENT_BAR:ne.BACKGROUND_BAR,selector:"rect",strategy:{type:"bar",settings:{direction:s?"up":"right",align:.5,justify:.5,labels:[{fontFamily:g,fill:y,fontSize:Number.parseFloat(Yt({width:r,height:o,fontSize:f})),label:()=>l,dock:s&&t.config.rtl?"right":"left",placements:[{position:"inside",padding:{top:u,bottom:h,left:p,right:d},overflow:!0}]}]}}}]}}]}({services:t}),function({services:e}){const{layoutService:t,dockService:i,labelService:a,animationsService:n}=e,{qHyperCube:r,rangeLimits:o,useSegments:s}=t.meta,{width:l,height:c}=i.meta.chart.size,u=i.config.rtl,h=Ut({dockService:i,layoutService:t}),{min:p,max:d}=o,m=r.qDataPages[0].qMatrix[0][0].qNum;let g=a.getBarWidthInPixels();m<=d&&m>=p&&(g=0);let f=h?"bottom":u?"right":"left";return m>d&&(f=h?"top":u?"left":"right"),{type:"oob-indicator",key:ne.OOB_INDICATOR,layout:{displayOrder:2},settings:{component:s?ne.SEGMENT_BAR:ne.BAR,isRtl:u,selector:"rect",pointingTo:f,size:g,width:l,height:c},animations:{enabled:n.enabled,trackBy:e=>e.type}}}({services:t}),ui({services:t}));const e=function({chart:e,services:t}){if(!e.formatter)return!1;const{labelService:i,styleService:a,dockService:n,layoutService:r,animationsService:o}=t,s=Ut({dockService:n,layoutService:r}),{getValueLabelFontSize:l,barValueLabel:c}=i,{getTopPadding:u,getBottomPadding:h,getLeftPadding:p,getRightPadding:d}=c,m=l(_.MIN,_.MAX),g=a.query.label.getStyle();return{type:"labels",key:ne.GAUGE_LABEL,layout:{minimumLayoutMode:s?le:ce},settings:{sources:[{component:ne.LABEL_BAR,selector:"rect",formatter:"measure",strategy:{type:"bar",settings:{direction:s?"up":"right",orientation:"horizontal",fontFamily:g.fontFamily,fill:g.fill,fontSize:m,align:s?0:.5,justify:0,labels:[{label:({data:t})=>t?e.formatter(ae.MEASURE)(t.value):"",linkData:({data:e})=>e?{value:e.value,formatter:ae.MEASURE}:null,placements:[{position:"outside",padding:{top:u,bottom:h,left:p,right:d},overflow:!0}]}]}}}]},animations:{enabled:o.enabled,trackBy:e=>e.type,adjustTweenedNodes(t){t.forEach(t=>{const{type:i,data:a}=t;"text"===i&&a&&a.value&&a.formatter&&(t.text=e.formatter(a.formatter)(a.value))})}}}}({chart:i,services:t}),a=function({services:e}){const{dockService:t,layoutService:i,labelService:a,themeService:n,colorService:r,animationsService:o}=e,{refLines:s}=i.meta,l=t.config.rtl,c=Ut({dockService:t,layoutService:i}),u=n.getStyles();return{type:"custom-ref-line",key:ne.REFERENCE_LINES_AND_LABELS,settings:{barWidth:a.getBarWidthInPixels(),isRtl:l,needlePosition:a.getNeedlePosition(!1)},lines:{[c?"y":"x"]:s.filter(Mt).map(e=>({scale:"m",value:e.refLineExpr.value,cId:e.cId,label:{text:e.label,...u.referenceLine.label.name,showValue:e.showValue,showLabel:e.showLabel},line:{stroke:r.getPaletteColor(e.paletteColor||{index:e.color}),strokeWidth:e.style?.lineThickness||2,strokeDasharray:e.style?.lineType}}))},animations:{enabled:o.enabled,trackBy:e=>{const{type:t,cId:i,text:a,isConnector:n}=e;return"text"===t?`${i}-text-${a}`:"line"===t?n?`${i}-connector`:`${i}-line`:Math.random()}}}}({services:t});l?(c.push(e),c.push(a)):(c.push(a),c.push(e))}else r>=pe.SPARK.width&&o>=pe.SPARK.height?c.push(...di({services:t}),...mi({chart:i,services:t}),...hi({services:t}),...s?[gi({services:t})]:[],...fi({services:t}),function({services:e}){const{dockService:t,themeService:i,colorService:a,layoutService:n,animationsService:r}=e,{width:o,height:s}=t.meta.chart.size,{refLines:l}=n.meta,c=i.getStyles(),u=bt(o,s,D,T),{innerRadius:h,outerRadius:p}=u,d=St({innerRadius:h,outerRadius:p,width:o,height:s}),m={type:"radial-custom-ref-line",key:ne.RADIAL_REFERENCE_LINES,displayOrder:1,settings:{barWidth:d},lines:{radial:l.filter(Mt).map(e=>({scale:"r",value:e.refLineExpr.value,cId:e.cId,label:{text:e.label,...c.referenceLine.label.name,showValue:e.showValue,showLabel:e.showLabel},radius:u.innerRadius,line:{stroke:a.getPaletteColor(e.paletteColor||{index:e.color}),strokeWidth:e.style?.lineThickness||2,strokeDasharray:e.style?.lineType}}))},animations:{enabled:r.enabled,trackBy:e=>{const{type:t,cId:i}=e;return"line"===t?`${i}-line`:Math.random()},adjustTweenedNodes(e){e.forEach(e=>{const{type:t,data:i}=e;if("line"===t){const{angle:t,innerRadius:a}=i;e.x1=o/2+Math.cos(t)*a,e.y1=s/2+Math.sin(t)*a,e.x2=o/2+Math.cos(t)*(a+d),e.y2=s/2+Math.sin(t)*(a+d)}})}}};return m}({services:t})):c.push(function({services:e}){const{dockService:t,layoutService:i,themeService:a,animationsService:n}=e,{width:r,height:o}=t.meta.chart.size,{rangeLimits:s,useSegments:l,segmentInfo:c,qHyperCube:u}=i.meta,{min:h,max:p}=s,d=u.qDataPages[0].qMatrix[0][0].qNum,m=bt(r,o,D,T).outerRadius;let g;g=d<h?D:d>p?T:D+(d-h)/(p-h)*(T-D);const f=xt({services:e}),y=l?function({value:e,segmentInfo:t,themeService:i}){const{paletteColors:a,limits:n}=t,r=i.getTheme();if(!n.length)return r.getColorPickerColor(a[0]);const o=n.findIndex(t=>e<=t.value),s=-1===o?a.length-1:o;return r.getColorPickerColor(a[s]||a[a.length-1])}({value:d,segmentInfo:c,themeService:a}):f({datum:{value:()=>0}});return{type:"radial-spark",key:ne.RADIAL_SPARK,layout:{displayOrder:2},settings:{fill:y,radius:m,valueAngle:g,width:r,height:o},animations:{enabled:n.enabled,trackBy:e=>e.type}}}({services:t}));return c}const xi=Math.log(10),bi={log:(e,t)=>e<=0||t<=0?NaN:Math.log(e)/Math.log(t),log10:e=>e<=0?NaN:Math.log(e)/xi,getNiceNumber(e){let t;if(0===e)return 0;const i=Math.floor(Math.log(Math.abs(e))/xi),a=e/10**i;return t=a<=1?1:a<=2?2:a<=5?5:10,t*10**i*(e<0?-1:1)},getSmallNiceNumber(e){let t;if(0===e)return 0;let i=Math.floor(Math.log(Math.abs(e))/xi);const a=e/10**i;return a<1?(t=5,i--):t=a<2?1:a<5?2:5,t*10**i*(e<0?-1:1)},getGoodNumber(e){let t;if(0===e)return 0;const i=Math.floor(Math.log(Math.abs(e))/xi),a=e/10**i;return t=Math.ceil(a),7!==t&&9!==t||t++,a>1&&a<=1.5?t=1.5:a>2&&a<=2.5&&(t=2.5),t*10**i*(e<0?-1:1)},calculateTicks(e,t,i,a,n,r){return this.plotSize=e,this.explicitPlotMin=t,this.explicitPlotMax=i,this.minTickSpacingInPixel=a,this.absMax=Math.abs(this.explicitPlotMax),this.absMin=Math.abs(this.explicitPlotMin),this.usedDataRange=this.explicitPlotMax-this.explicitPlotMin,this.maxNumIntervals=this.plotSize/this.minTickSpacingInPixel,this.maxNumTicks=this.maxNumIntervals+1,this.minTickDataSpacing=r||0,this.tickDataSpacing=Math.max(this.usedDataRange/this.maxNumIntervals,this.minTickDataSpacing),this.fontHeight=n,this.tickBaseValue=0,this.spaceUseLimit=.6,0===e?(this.plotMin=this.explicitPlotMin,this.plotMax=this.explicitPlotMax,this.tickDataSpacingNN=this.tickDataSpacing,Ni.call(this),Pi.call(this)):(this.maxNumIntervals<1?ki.call(this):(this.explicitPlotMax>0&&this.explicitPlotMin<0?1===this.maxNumIntervals?Mi.call(this,!0):this.maxNumIntervals>=5?Si.call(this):this.maxNumIntervals<2?wi.call(this):Ii.call(this):Si.call(this),this.tickMaxIndex<this.tickMinIndex?(this.tickDataSpacing=Math.max(this.usedDataRange/this.maxNumIntervals,this.minTickDataSpacing),ki.call(this)):Ai.call(this)),Ni.call(this),Pi.call(this))}};function vi(e,t,i){void 0===e&&(e=null!==this.explicitPlotMin),void 0===t&&(t=null!==this.explicitPlotMax),this.tickDataSpacingNN=i?bi.getGoodNumber(this.tickDataSpacing):bi.getNiceNumber(this.tickDataSpacing),Ri.apply(this,[e,t])}function Si(){vi.call(this);const e=this.tickMaxIndex-this.tickMinIndex;let t=this.plotMax-this.plotMin;this.spaceUseFactor=t/this.plotRange;let i=this.plotSize*this.tickDataSpacingNN/this.plotRange<this.minTickSpacingInPixel;if(i&&this.maxNumIntervals>=5){for(;this.tickDataSpacing<=this.absMax&&i;)this.tickDataSpacing=Math.max(1.1*this.tickDataSpacingNN,this.minTickDataSpacing),vi.call(this),t=this.plotMax-this.plotMin,this.spaceUseFactor=t/this.plotRange,i=this.plotSize*this.tickDataSpacingNN/this.plotRange<this.minTickSpacingInPixel;if(!i)return}for(this.tickDataSpacing=Math.max(this.usedDataRange/this.maxNumIntervals,this.minTickDataSpacing),(i||e<=2&&this.maxNumIntervals>=2*e)&&vi.apply(this,[void 0,void 0,!0]),t=this.plotMax-this.plotMin,this.spaceUseFactor=t/this.plotRange,i=this.plotSize*this.tickDataSpacingNN/this.plotRange<this.minTickSpacingInPixel;this.tickDataSpacing<=this.absMax&&i;)this.tickDataSpacing=Math.max(1.1*this.tickDataSpacingNN,this.minTickDataSpacing),vi.apply(this,[void 0,void 0,!0]),t=this.plotMax-this.plotMin,this.spaceUseFactor=t/this.plotRange,i=this.plotSize*this.tickDataSpacingNN/this.plotRange<this.minTickSpacingInPixel}function Mi(e){e?(this.tickDataSpacingNN=bi.getGoodNumber(this.absMax),this.tickBaseValue=-this.tickDataSpacingNN,this.plotMin=this.explicitPlotMin,this.plotMax=this.explicitPlotMax,this.tickMinIndex=1,this.tickMaxIndex=1,this.tickDataSpacingNN*=2):(this.plotMax=this.explicitPlotMax,this.plotMin=this.explicitPlotMin,this.plotRange=this.plotMax-this.plotMin,this.tickMinIndex=0,this.tickMaxIndex=0,this.tickDataSpacingNN=bi.getNiceNumber(this.absMax),this.tickDataSpacingNN===this.absMax&&(this.tickDataSpacingNN=bi.getNiceNumber(1.1*this.absMax)))}function ki(){let e;this.tickDataSpacingNN=bi.getNiceNumber(this.tickDataSpacing),this.plotMin=this.explicitPlotMin,this.plotMax=this.explicitPlotMax,this.plotRange=this.plotMax-this.plotMin,this.tickMinIndex=0,this.tickMaxIndex=0,(this.explicitPlotMax<0||this.explicitPlotMin>0)&&(e=bi.getSmallNiceNumber(this.plotRange),this.tickBaseValue=Math.ceil(this.plotMin/e)*e)}function wi(){const e=this.explicitPlotMax>=-this.explicitPlotMin,t=e||null!==this.explicitPlotMin,i=!e||null!==this.explicitPlotMax;vi.apply(this,[t,i,!0]);const a=(this.absMax+(1-this.spaceUseLimit)*this.absMin)/this.spaceUseLimit*1.0001;for(;this.tickDataSpacing<=a&&this.plotSize*this.tickDataSpacingNN/this.plotRange<this.minTickSpacingInPixel;)this.tickDataSpacing=Math.max(1.1*this.tickDataSpacingNN,this.minTickDataSpacing),vi.apply(this,[t,i,!0]);const n=this.plotMax-this.plotMin;this.spaceUseFactor=n/this.plotRange}function Ii(){Si.call(this);const e=this.plotMax-this.plotMin;this.spaceUseFactor=e/this.plotRange}function Ai(){const e=bi.getNiceNumber(this.tickDataSpacingNN);if(this.tickDataSpacingNN===e||0!==this.tickBaseValue)return;const t=this.tickDataSpacingNN,i=this.tickMinIndex,a=this.tickMaxIndex,n=a-i,r=this.plotMin,o=this.plotMax;this.tickDataSpacingNN=e,Ri.apply(this,[null!==this.explicitPlotMin,null!==this.explicitPlotMax]);const s=this.plotMax-this.plotMin;this.spaceUseFactor=s/this.plotRange;const l=this.plotSize*this.tickDataSpacingNN/this.plotRange<this.minTickSpacingInPixel,c=this.tickMaxIndex-this.tickMinIndex;!l&&(c===n||c>=10||c>=3&&1.5*c>=n)||(this.tickDataSpacingNN=t,this.tickMinIndex=i,this.tickMaxIndex=a,this.plotMin=r,this.plotMax=o,this.plotRange=this.plotMax-this.plotMin)}function Li(){this.plotMax===this.plotMin||0===this.plotSize?(this.minTickValue=this.plotMin,this.maxTickValue=this.plotMax):(this.minTickValue=this.tickBaseValue+this.tickMinIndex*this.tickDataSpacingNN,this.maxTickValue=this.tickBaseValue+this.tickMaxIndex*this.tickDataSpacingNN)}function Ni(){let e,t;if(this.mainTickValues=[],this.secondaryTickValues=[],Li.call(this),0===this.plotSize)return;e=this.tickBaseValue;const i=this.tickMaxIndex-this.tickMinIndex;if(!(i<1)){for(t=0;t<=i;t++)this.mainTickValues.push(e+(t+this.tickMinIndex)*this.tickDataSpacingNN);for(e=this.tickBaseValue+this.tickDataSpacingNN/2,t=0;t<i;t++)this.secondaryTickValues.push(e+(t+this.tickMinIndex)*this.tickDataSpacingNN)}}function Ri(e,t){this.tickMinIndex=e?Math.ceil(this.explicitPlotMin/this.tickDataSpacingNN):Math.floor(this.explicitPlotMin/this.tickDataSpacingNN),this.tickMaxIndex=t?Math.floor(this.explicitPlotMax/this.tickDataSpacingNN):Math.ceil(this.explicitPlotMax/this.tickDataSpacingNN),this.plotMin=e?this.explicitPlotMin:this.tickMinIndex*this.tickDataSpacingNN,this.plotMax=t?this.explicitPlotMax:this.tickMaxIndex*this.tickDataSpacingNN,this.plotRange=this.plotMax-this.plotMin}function Pi(){return{plotMin:this.plotMin,plotMax:this.plotMax,tickSpacing:this.tickDataSpacingNN,tickBaseValue:this.tickBaseValue,tickMinIndex:this.tickMinIndex,tickMaxIndex:this.tickMaxIndex,minTickValue:this.minTickValue,maxTickValue:this.maxTickValue,mainTickValues:this.mainTickValues,secondaryTickValues:this.secondaryTickValues}}function Ci({core:e,dockService:t,rangeLimits:i,measureAxisSpacing:a,isRadial:n,isVertical:r,styleService:o}){const s=i.min,l=i.max,{width:c,height:u}=function(e){return{width:e.meta.chart.size.width,height:e.meta.chart.size.height}}(t);let h,p=96*a;if(n)h=Math.min(u,c);else{h=r?u:c;const{chart:t,picassoInstance:i}=e;if(t&&i){const e=t.formatter(ae.MEASURE),n=i.renderer("svg")(),d=o.query.axis.label.getStyle(),{fontFamily:m,fontSize:g}=d,f=e=>n.measureText({text:e,fontSize:Yt({width:c,height:u,fontSize:g}),fontFamily:m}),y=Math.max(96,...[s,l,(l-s)/2].map(t=>f(e(t)).width));p=r?4*f("M").height:y;p=h/(Math.max(2,h/p/a+1)-1)}}const d=function({plotSize:e,rangeMax:t,rangeMin:i,minTickSpacingInPixel:a}){const n=bi.calculateTicks(e,i,t,a,20,0);n.tickSpacing;const r=n.mainTickValues;0===r.length&&r.push(n.minTickValue);const o=r[0];r[0]=n.plotMin,o-n.plotMin>=n.tickSpacing/2&&r.splice(1,0,o);const s=n.mainTickValues[n.mainTickValues.length-1];return n.plotMax-s<=n.tickSpacing/2?r[n.mainTickValues.length-1]=n.plotMax:r.push(n.plotMax),r}({plotSize:h,rangeMin:s,rangeMax:l,minTickSpacingInPixel:p});return{values:d}}function Ei({isRadial:e,dockService:t,isVertical:i}){return e?!t.config.rtl:!!i||t.config.rtl}function Di({core:e,services:t,logicalSize:i}){if(!t.layoutService.meta.qHyperCube)throw new Error("Layout is missing a hypercube");const a=yi({core:e,services:t}),n=function({core:e,services:t}){const{dockService:i,styleService:a,colorService:n,layoutService:r}=t,{rangeLimits:o,measureAxisSpacing:s,gaugetype:l}=r.meta,c=Ut({dockService:i,layoutService:r}),u="radial"===l,h=Ci({core:e,dockService:i,rangeLimits:o,measureAxisSpacing:s,isRadial:u,isVertical:c,styleService:a});return{m:{data:{field:"qMeasureInfo/0"},type:"linear",invert:Ei({isRadial:u,dockService:i,isVertical:c}),min:o.min,max:o.max,ticks:{values:h.values}},r:{data:{field:"qMeasureInfo/0"},invert:i.config.rtl,min:o.min,max:o.max},...n.getScales()}}({core:e,services:t});return{scales:n,components:a,formatters:{[ae.MEASURE]:{data:{field:"qMeasureInfo/0"}}},strategy:{layoutModes:pe,logicalSize:i}}}const Ti=({core:e,services:t})=>{const[i,a]=p({}),n=h(),r=b();return M(async()=>{if(!t)return Promise.resolve();const{colorService:i}=t;return i.initialize().then(()=>{const{layoutService:i}=t,r=Ht({layout:i.getLayout(),options:n}),o=Di({core:e,services:t,logicalSize:r});a(o)})},[t]),d(()=>{if(t&&t.dockService&&t.layoutService){const{dockService:i,layoutService:o,animationsService:s}=t;s.meta.isSizeChanging=!0;const l=Ht({layout:o.getLayout(),options:n});i.update(l||r);const c=Di({core:e,services:t,logicalSize:l});a(c)}},[r]),i};const qi={Object_Gauge_RangeIsDefault:{id:"Object.Gauge.RangeIsDefault",locale:{"de-DE":"Max. und Min. auf Standardwerte festgelegt. Sie können über das Eigenschaften-Fenster unter Darstellung > Präsentation geändert werden.","en-US":"Max. and Min. set to default values. You can change them via the properties window under Display > Presentation.","es-ES":"Máx y mín se han configurado como valores predefinidos. Puede cambiarlos en el panel de propiedades en Aspecto > Presentación.","fr-FR":"Les valeurs max. et min. par défaut sont définies. Vous pouvez les modifier via le panneau des propriétés sous Aspect > Présentation.","it-IT":"Il massimo e il minimo vengono impostati sui valori predefiniti. È possibile modificarli nel pannello delle proprietà in Aspetto > Presentazione.","ja-JP":"最大値と最小値は規定値に設定されています。これは、スタイル > プレゼンテーションからプロパティ パネルで変更できます。","ko-KR":"최대 및 최소 값이 기본값으로 설정됩니다. 모양 > 프레젠테이션 아래 속성 패널에서 이를 변경할 수 있습니다.","nl-NL":"Max. en min. zijn ingesteld op standaardwaarden. U kunt deze wijzigen in het eigenschappenvenster onder Uiterlijk > Presentatie.","pl-PL":"Maks. i Min. są ustawione na wartości domyślne. Można je zmienić w panelu właściwości, w obszarze Wygląd > Prezentacja.","pr-BR":"Máx. e mín. estão definidos com valores padrão. É possível alterá-los no painel de propriedades, em Aparência > Apresentação.","ru-RU":"Максимальные и минимальные значения установлены по умолчанию. Эти значения можно изменить на панели свойств в меню Вид > Представление.","sv-SE":"Max och min är inställda på standardvärden. Du kan ändra dem i egenskapspanelen under Utseende > Presentation.","tr-TR":"Maks. ve min. değerleri varsayılan değerlere ayarlanmıştır. Görünüş > Sunum altındaki özellikler panelinden bu değerleri değiştirebilirsiniz.","zh-CN":"最大值和最小值已设置为默认值。您可以在“外观”>“显示”下的属性面板中进行更改。","zh-TW":"最大值與最小值均設為預設值。您可以在 [外觀] > [呈現方式] 之下的屬性面板中變更這些值。"}},Object_Gauge_RangeIsDefaultTitle:{id:"Object.Gauge.RangeIsDefaultTitle",locale:{"de-DE":"Bereich auf Standardwerte eingestellt","en-US":"Range set to default values","es-ES":"Rango fijado a valores predeterminados","fr-FR":"Plage définie sur les valeurs par défaut","it-IT":"Scala impostata sui valori predefiniti","ja-JP":"範囲は規定値に設定されています","ko-KR":"범위가 기본값으로 설정됩니다.","nl-NL":"Bereik ingesteld op standaardwaarden","pl-PL":"Zakres ustawiony na wartości domyślne","pt-BR":"Intervalo definido com valores padrão","ru-RU":"Значения диапазона установлены по умолчанию","sv-SE":"Intervallet har standardvärden","tr-TR":"Varsayılan değerlere ayarlı aralık","zh-CN":"范围设置为默认值","zh-TW":"範圍會設為預設值"}}};function zi(e){return{version:JSON.stringify("0.9.0"),qHyperCubeDef:{qMeasures:[],qInitialDataFetch:[{qWidth:1,qHeight:1}],qSuppressZero:!1,qSuppressMissing:!0},showTitles:!0,title:"",subtitle:"",footnote:"",disableNavMenu:!!e?.flags?.isEnabled?.("TLV_1804_DEFAULT_CHART_SETTINGS"),measureAxis:{min:0,max:100,show:"all",spacing:1},orientation:"horizontal",segmentInfo:{limits:[],paletteColors:[{index:6}]},refLine:{refLines:[]},showDetails:!0,components:[],gaugetype:"radial",autoOrientation:!0,useSegments:!1,color:{useBaseColors:"measure"},paletteProgressColor:{index:6},angle:.7}}function _i(e){return{properties:zi(e),data:{targets:[{path:"/qHyperCubeDef",...A(e)}]}}}const $i=({services:e})=>{k(t=>{if(e){const{dockService:i}=e,{width:a,height:n}=i.meta.chart.size;t.snapshotData=t.snapshotData||{content:{size:{w:a,h:n}}},t.snapshotData.content={size:{w:a,h:n}}}return Promise.resolve(t)})}}}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nebula.js/sn-gauge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "A gauge chart",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"qlik",
|
|
@@ -32,52 +32,52 @@
|
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@babel/eslint-parser": "7.28.
|
|
36
|
-
"@babel/preset-env": "7.
|
|
37
|
-
"@babel/preset-react": "7.
|
|
38
|
-
"@babel/preset-typescript": "7.
|
|
39
|
-
"@commitlint/config-conventional": "
|
|
40
|
-
"@nebula.js/cli": "
|
|
41
|
-
"@nebula.js/cli-build": "
|
|
42
|
-
"@nebula.js/cli-sense": "
|
|
43
|
-
"@nebula.js/cli-serve": "
|
|
44
|
-
"@playwright/test": "1.
|
|
45
|
-
"@qlik/eslint-config": "1.
|
|
46
|
-
"@qlik/prettier-config": "0.4.
|
|
35
|
+
"@babel/eslint-parser": "7.28.6",
|
|
36
|
+
"@babel/preset-env": "7.29.2",
|
|
37
|
+
"@babel/preset-react": "7.28.5",
|
|
38
|
+
"@babel/preset-typescript": "7.28.5",
|
|
39
|
+
"@commitlint/config-conventional": "20.5.0",
|
|
40
|
+
"@nebula.js/cli": "6.8.0",
|
|
41
|
+
"@nebula.js/cli-build": "6.8.0",
|
|
42
|
+
"@nebula.js/cli-sense": "6.8.0",
|
|
43
|
+
"@nebula.js/cli-serve": "6.8.0",
|
|
44
|
+
"@playwright/test": "1.59.1",
|
|
45
|
+
"@qlik/eslint-config": "1.4.29",
|
|
46
|
+
"@qlik/prettier-config": "0.4.37",
|
|
47
47
|
"@qlik/tsconfig": "0.3.1",
|
|
48
|
-
"@rollup/plugin-typescript": "
|
|
49
|
-
"@scriptappy/cli": "0.10.
|
|
48
|
+
"@rollup/plugin-typescript": "12.3.0",
|
|
49
|
+
"@scriptappy/cli": "0.10.5",
|
|
50
50
|
"@types/d3-interpolate": "3.0.4",
|
|
51
51
|
"@types/extend": "3.0.4",
|
|
52
52
|
"@types/jest": "30.0.0",
|
|
53
|
-
"@types/react": "18.3.
|
|
53
|
+
"@types/react": "18.3.28",
|
|
54
54
|
"@types/react-dom": "18.3.7",
|
|
55
|
-
"commitlint": "
|
|
55
|
+
"commitlint": "20.5.0",
|
|
56
56
|
"d3-color": "3.1.0",
|
|
57
57
|
"d3-interpolate": "3.0.1",
|
|
58
|
-
"eslint": "9.
|
|
58
|
+
"eslint": "9.39.4",
|
|
59
59
|
"eslint-config-airbnb-base": "15.0.0",
|
|
60
60
|
"eslint-plugin-import": "2.32.0",
|
|
61
61
|
"extend": "3.0.2",
|
|
62
62
|
"husky": "9.1.7",
|
|
63
|
-
"jest": "30.0
|
|
64
|
-
"jest-environment-jsdom": "30.0
|
|
65
|
-
"lint-staged": "16.
|
|
66
|
-
"picasso-plugin-q": "2.
|
|
67
|
-
"picasso.js": "2.
|
|
68
|
-
"prettier": "3.
|
|
69
|
-
"qlik-chart-modules": "0.
|
|
63
|
+
"jest": "30.3.0",
|
|
64
|
+
"jest-environment-jsdom": "30.3.0",
|
|
65
|
+
"lint-staged": "16.4.0",
|
|
66
|
+
"picasso-plugin-q": "2.10.0",
|
|
67
|
+
"picasso.js": "2.10.0",
|
|
68
|
+
"prettier": "3.8.1",
|
|
69
|
+
"qlik-chart-modules": "0.100.1",
|
|
70
70
|
"qlik-object-conversion": "0.17.1",
|
|
71
71
|
"react": "18.3.1",
|
|
72
72
|
"react-dom": "18.3.1",
|
|
73
|
-
"typescript": "
|
|
73
|
+
"typescript": "6.0.2",
|
|
74
74
|
"yargs": "18.0.0"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"@nebula.js/stardust": ">=5.4.0"
|
|
78
78
|
},
|
|
79
79
|
"engines": {
|
|
80
|
-
"node": ">=
|
|
80
|
+
"node": ">=24"
|
|
81
81
|
},
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|