!/**
 * 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,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/indicators/psar",["highcharts/highcharts"],function(t){return e(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/indicators/psar"]=e(t._Highcharts,t._Highcharts.SeriesRegistry):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,(t,e)=>(()=>{"use strict";var r={512:t=>{t.exports=e},944:e=>{e.exports=t}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={exports:{}};return r[t](n,n.exports,a),n.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};a.d(n,{default:()=>g});var i=a(944),s=a.n(i),c=a(512),l=a.n(c);let{doc:u,win:p}=s();function h(t){return f(t)&&"number"==typeof t.nodeType}function f(t,e){let r;return!!t&&"object"==typeof t&&(!e||"[object Array]"!==(r=Object.prototype.toString.call(t))&&"[object Array Iterator]"!==r)}Array.prototype.find;let{sma:d}=l().seriesTypes;function y(t,e){return parseFloat(t.toFixed(e))}class m extends d{constructor(){super(...arguments),this.nameComponents=void 0}getValues(t,e){let r=t.xData,o=t.yData,a=e.maxAccelerationFactor,n=e.increment,i=e.initialAccelerationFactor,s=e.decimals,c=e.index,l=[],u=[],p=[],h=e.initialAccelerationFactor,f,d=o[0][1],m,g,x,b=1,v,j,A,_,O=o[0][2],F,H,M,w;if(!(c>=o.length)){for(w=0;w<c;w++)d=Math.max(o[w][1],d),O=Math.min(o[w][2],y(O,s));for(f=o[w][1]>O?1:-1,m=d-O,g=(h=e.initialAccelerationFactor)*m,l.push([r[c],O]),u.push(r[c]),p.push(y(O,s)),w=c+1;w<o.length;w++)if(v=o[w-1][2],j=o[w-2][2],A=o[w-1][1],_=o[w-2][1],H=o[w][1],M=o[w][2],null!==j&&null!==_&&null!==v&&null!==A&&null!==H&&null!==M){var S,D,P,R,T,W,k,C,I,V,q,z,B,E,G,J,K,L,N,Q,U;T=f,W=b,k=O,C=g,I=j,V=v,q=A,z=_,B=d,O=T===W?1===T?k+C<Math.min(I,V)?k+C:Math.min(I,V):k+C>Math.max(z,q)?k+C:Math.max(z,q):B,S=f,D=d,F=1===S?H>D?H:D:M<D?M:D,P=b,R=O,E=x=1===P&&M>R||-1===P&&H>R?1:-1,G=f,J=F,K=d,L=h,N=n,Q=a,U=i,g=(h=E===G?1===E&&J>K||-1===E&&J<K?L===Q?Q:y(L+N,2):L:U)*(m=F-O),l.push([r[w],y(O,s)]),u.push(r[w]),p.push(y(O,s)),b=f,f=x,d=F}return{values:l,xData:u,yData:p}}}}m.defaultOptions=function(t,...e){let r,o=[t,...e],a={},n=function(t,e){return"object"!=typeof t&&(t={}),function(t,e,r){for(let r in t)Object.hasOwnProperty.call(t,r)&&e.call((0,t[r]),t[r],r,t)}(e,function(r,o){if("__proto__"!==o&&"constructor"!==o){let a;!f(r,!0)||(a=r?.constructor,f(r,!0)&&!h(r)&&a?.name&&"Object"!==a.name)||h(r)?t[o]=e[o]:t[o]=n(t[o]||{},r)}}),t};!0===t&&(a=o[1],o=Array.prototype.slice.call(o,2));let i=o.length;for(r=0;r<i;r++)a=n(a,o[r]);return a}(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}}),l().registerSeriesType("psar",m);let g=s();return n.default})());