!/**
 * Highstock JS v12.6.0 (2026-04-13)
 * @module highcharts/indicators/psar
 * @requires highcharts
 * @requires highcharts/modules/stock
 *
 * Parabolic SAR Indicator for Highcharts Stock
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Grzegorz Blachliński
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(t._Highcharts,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/indicators/psar",["highcharts/highcharts"],function(t){return r(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/indicators/psar"]=r(t._Highcharts,t._Highcharts.SeriesRegistry):t.Highcharts=r(t.Highcharts,t.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,function(t,r){return function(){"use strict";var e,n={512:function(t){t.exports=r},944:function(r){r.exports=t}},o={};function i(t){var r=o[t];if(void 0!==r)return r.exports;var e=o[t]={exports:{}};return n[t](e,e.exports,i),e.exports}i.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(r,{a:r}),r},i.d=function(t,r){for(var e in r)i.o(r,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},i.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)};var a={};i.d(a,{default:function(){return m}});var c=i(944),u=i.n(c),s=i(512),l=i.n(s),p=function(t,r,e){if(e||2==arguments.length)for(var n,o=0,i=r.length;o<i;o++)!n&&o in r||(n||(n=Array.prototype.slice.call(r,0,o)),n[o]=r[o]);return t.concat(n||Array.prototype.slice.call(r))};function f(t){return h(t)&&"number"==typeof t.nodeType}function h(t,r){var e;return!!t&&"object"==typeof t&&(!r||"[object Array]"!==(e=Object.prototype.toString.call(t))&&"[object Array Iterator]"!==e)}u().doc,u().win,Array.prototype.find;var y=(e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(t,r)},function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),d=l().seriesTypes.sma;function v(t,r){return parseFloat(t.toFixed(r))}var g=function(t){function r(){var r=null!==t&&t.apply(this,arguments)||this;return r.nameComponents=void 0,r}return y(r,t),r.prototype.getValues=function(t,r){var e,n,o,i,a,c,u,s,l,p,f,h,y,d,g,m,x,_,b,j,A,O,w,F,H,M,P,S,D,R,T,W,k,C=t.xData,I=t.yData,V=r.maxAccelerationFactor,q=r.increment,z=r.initialAccelerationFactor,B=r.decimals,E=r.index,G=[],J=[],K=[],L=r.initialAccelerationFactor,N=I[0][1],Q=1,U=I[0][2];if(!(E>=I.length)){for(k=0;k<E;k++)N=Math.max(I[k][1],N),U=Math.min(I[k][2],v(U,B));for(O=I[k][1]>U?1:-1,w=N-U,F=(L=r.initialAccelerationFactor)*w,G.push([C[E],U]),J.push(C[E]),K.push(v(U,B)),k=E+1;k<I.length;k++)if(M=I[k-1][2],P=I[k-2][2],S=I[k-1][1],D=I[k-2][1],T=I[k][1],W=I[k][2],null!==P&&null!==D&&null!==M&&null!==S&&null!==T&&null!==W){e=O,n=Q,o=U,i=F,a=P,c=M,u=S,s=D,l=N,U=e===n?1===e?o+i<Math.min(a,c)?o+i:Math.min(a,c):o+i>Math.max(s,u)?o+i:Math.max(s,u):l,_=O,b=N,R=1===_?T>b?T:b:W<b?W:b,j=Q,A=U,p=H=1===j&&W>A||-1===j&&T>A?1:-1,f=O,h=R,y=N,d=L,g=q,m=V,x=z,F=(L=p===f?1===p&&h>y||-1===p&&h<y?d===m?m:v(d+g,2):d:x)*(w=R-U),G.push([C[k],v(U,B)]),J.push(C[k]),K.push(v(U,B)),Q=O,O=H,N=R}return{values:G,xData:J,yData:K}}},r.defaultOptions=function(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var n,o=p([t],r,!0),i={},a=function(t,r){return"object"!=typeof t&&(t={}),function(t,r,e){for(var n in t)Object.hasOwnProperty.call(t,n)&&r.call((0,t[n]),t[n],n,t)}(r,function(e,n){if("__proto__"!==n&&"constructor"!==n){var o;!h(e,!0)||(o=null==e?void 0:e.constructor,h(e,!0)&&!f(e)&&(null==o?void 0:o.name)&&"Object"!==o.name)||f(e)?t[n]=r[n]:t[n]=a(t[n]||{},e)}}),t};!0===t&&(i=o[1],o=Array.prototype.slice.call(o,2));var c=o.length;for(n=0;n<c;n++)i=a(i,o[n]);return i}(d.defaultOptions,{lineWidth:0,marker:{enabled:!0},states:{hover:{lineWidthPlus:0}},params:{period:void 0,initialAccelerationFactor:.02,maxAccelerationFactor:.2,increment:.02,index:2,decimals:4}}),r}(d);l().registerSeriesType("psar",g);var m=u();return a.default}()});