/**
 * Copyright (c) 2024 Visa, Inc.
 *
 * This source code is licensed under the MIT license
 * https://github.com/visa/visa-chart-components/blob/master/LICENSE
 *
 **/
var __makeTemplateObject=this&&this.__makeTemplateObject||function(t,i){if(Object.defineProperty){Object.defineProperty(t,"raw",{value:i})}else{t.raw=i}return t};System.register([],(function(t){"use strict";return{execute:function(){t({a:l,c:i,w:f});function i(t){return function i(){return t}}var e=Math.PI,h=2*e,n=1e-6,s=h-n;function a(t){this._+=t[0];for(var i=1,e=t.length;i<e;++i){this._+=arguments[i]+t[i]}}function r(t){var i=Math.floor(t);if(!(i>=0))throw new Error("invalid digits: ".concat(t));if(i>15)return a;var e=Math.pow(10,i);return function(t){this._+=t[0];for(var i=1,h=t.length;i<h;++i){this._+=Math.round(arguments[i]*e)/e+t[i]}}}var u=function(){function t(t){this._x0=this._y0=this._x1=this._y1=null;this._="";this._append=t==null?a:r(t)}t.prototype.moveTo=function(t,i){this._append(__makeTemplateObject(["M",",",""],["M",",",""]),this._x0=this._x1=+t,this._y0=this._y1=+i)};t.prototype.closePath=function(){if(this._x1!==null){this._x1=this._x0,this._y1=this._y0;this._append(__makeTemplateObject(["Z"],["Z"]))}};t.prototype.lineTo=function(t,i){this._append(__makeTemplateObject(["L",",",""],["L",",",""]),this._x1=+t,this._y1=+i)};t.prototype.quadraticCurveTo=function(t,i,e,h){this._append(__makeTemplateObject(["Q",",",",",",",""],["Q",",",",",",",""]),+t,+i,this._x1=+e,this._y1=+h)};t.prototype.bezierCurveTo=function(t,i,e,h,n,s){this._append(__makeTemplateObject(["C",",",",",",",",",",",""],["C",",",",",",",",",",",""]),+t,+i,+e,+h,this._x1=+n,this._y1=+s)};t.prototype.arcTo=function(t,i,h,s,a){t=+t,i=+i,h=+h,s=+s,a=+a;if(a<0)throw new Error("negative radius: ".concat(a));var r=this._x1,u=this._y1,f=h-t,c=s-i,l=r-t,o=u-i,m=l*l+o*o;if(this._x1===null){this._append(__makeTemplateObject(["M",",",""],["M",",",""]),this._x1=t,this._y1=i)}else if(!(m>n));else if(!(Math.abs(o*f-c*l)>n)||!a){this._append(__makeTemplateObject(["L",",",""],["L",",",""]),this._x1=t,this._y1=i)}else{var _=h-r,M=s-u,v=f*f+c*c,b=_*_+M*M,j=Math.sqrt(v),O=Math.sqrt(m),p=a*Math.tan((e-Math.acos((v+m-b)/(2*j*O)))/2),k=p/O,T=p/j;if(Math.abs(k-1)>n){this._append(__makeTemplateObject(["L",",",""],["L",",",""]),t+k*l,i+k*o)}this._append(__makeTemplateObject(["A",",",",0,0,",",",",",""],["A",",",",0,0,",",",",",""]),a,a,+(o*_>l*M),this._x1=t+T*f,this._y1=i+T*c)}};t.prototype.arc=function(t,i,a,r,u,f){t=+t,i=+i,a=+a,f=!!f;if(a<0)throw new Error("negative radius: ".concat(a));var c=a*Math.cos(r),l=a*Math.sin(r),o=t+c,m=i+l,_=1^f,M=f?r-u:u-r;if(this._x1===null){this._append(__makeTemplateObject(["M",",",""],["M",",",""]),o,m)}else if(Math.abs(this._x1-o)>n||Math.abs(this._y1-m)>n){this._append(__makeTemplateObject(["L",",",""],["L",",",""]),o,m)}if(!a)return;if(M<0)M=M%h+h;if(M>s){this._append(__makeTemplateObject(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""],["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""]),a,a,_,t-c,i-l,a,a,_,this._x1=o,this._y1=m)}else if(M>n){this._append(__makeTemplateObject(["A",",",",0,",",",",",",",""],["A",",",",0,",",",",",",",""]),a,a,+(M>=e),_,this._x1=t+a*Math.cos(u),this._y1=i+a*Math.sin(u))}};t.prototype.rect=function(t,i,e,h){this._append(__makeTemplateObject(["M",",","h","v","h","Z"],["M",",","h","v","h","Z"]),this._x0=this._x1=+t,this._y0=this._y1=+i,e=+e,+h,-e)};t.prototype.toString=function(){return this._};return t}();function f(t){var i=3;t.digits=function(e){if(!arguments.length)return i;if(e==null){i=null}else{var h=Math.floor(e);if(!(h>=0))throw new RangeError("invalid digits: ".concat(e));i=h}return t};return function(){return new u(i)}}var c=t("s",Array.prototype.slice);function l(t){return typeof t==="object"&&"length"in t?t:Array.from(t)}}}}));
//# sourceMappingURL=p-0187065a.system.js.map