1import{D as e,d as t,t as n}from"./jsxRuntime.module-CyxCbY_j.js";import{s as r}from"./checkmark-BX3G5GQh.js";var i=new RegExp(/^#([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i),a=function(){return`rgba(`+this[0]+`,`+this[1]+`,`+this[2]+`,`+this[3].toFixed(1)+`)`};function o(e){return i.test(e)}function s(e,t,n,r){if(arguments.length==1&&Array.isArray(arguments[0]))return s.apply(null,arguments[0]);if(arguments.length<3||arguments.length>4)return!1;let i=Array.prototype.slice.call(arguments);i.length==4&&(i[3]=Math.floor(255*i[3]));let a=i.map(function(e){let t=(+e).toString(16);return t.length==1&&(t=`0`+t),t},[]);return!~a.indexOf(`NaN`)&&`#`+a.join(``)}function c(e){if(!o(e))return!1;let t=e.match(i)[1];(t.length==3||t.length==4)&&(t=t.match(/./g).reduce(function(e,t){return e+t+t},``));let n=t.match(/.{1,2}/g).map(function(e){return parseInt(e,16)});return n[3]=n.length==4?+(n[3]/255).toPrecision(3):1,n.toString=a,n}function l(e){if(!o(e))return!1;let t=e.match(i)[1];(t.length==3||t.length==4)&&(t=t.match(/./g).reduce(function(e,t){return e+t+t},``));let n=t.match(/.{1,2}/g).map(function(e){return parseInt(e,16)});if(n.length==4){n[0]=+(n[0]/255).toPrecision(3);let e=n.shift();n.push(e)}else n.push(1);return n.toString=a,n}var u=e=>c(p(e)).toString()===`0,0,0,1`?d:f,d=`rgba(255, 255, 255, 0.2)`,f=`rgba(0, 0, 0, 0.2)`,p=e=>e.indexOf(`#`)===-1?`#${e}`:e,m=e=>{let t=c(p(e)),n=t[0]/255,r=t[1]/255,i=t[2]/255;return(Math.min(n,r,i)+Math.max(n,r,i))/2},h=e=>m(e)<.15;t(),r();var g={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:`#000`,fadeColor:`transparent`,animation:`spinner-line-fade-default`,rotate:0,direction:1,speed:1,zIndex:2e9,className:`spinner`,top:`50%`,left:`50%`,shadow:`0 0 1px transparent`,position:`absolute`},_=function(){function e(e){e===void 0&&(e={}),this.opts=Object.assign({},g,e)}return e.prototype.spin=function(e){return this.stop(),this.el=document.createElement(`div`),this.el.className=this.opts.className,this.el.setAttribute(`role`,`progressbar`),v(this.el,{position:this.opts.position,width:0,zIndex:this.opts.zIndex,left:this.opts.left,top:this.opts.top,transform:`scale(`+this.opts.scale+`)`}),e&&e.insertBefore(this.el,e.firstChild||null),b(this.el,this.opts),this},e.prototype.stop=function(){return this.el&&=(typeof requestAnimationFrame<`u`?cancelAnimationFrame(this.animateId):clearTimeout(this.animateId),this.el.parentNode&&this.el.parentNode.removeChild(this.el),void 0),this},e}();function v(e,t){for(let n in t)e.style[n]=t[n];return e}function y(e,t){return typeof e==`string`?e:e[t%e.length]}function b(e,t){let n=Math.round(t.corners*t.width*500)/1e3+`px`,r=`none`;t.shadow===!0?r=`0 2px 4px #000`:typeof t.shadow==`string`&&(r=t.shadow);let i=x(r);for(let r=0;r<t.lines;r++){let a=~~(360/t.lines*r+t.rotate),o=v(document.createElement(`div`),{position:`absolute`,top:-t.width/2+`px`,width:t.length+t.width+`px`,height:t.width+`px`,background:y(t.fadeColor,r),borderRadius:n,transformOrigin:`left`,transform:`rotate(`+a+`deg) translateX(`+t.radius+`px)`}),s=r*t.direction/t.lines/t.speed;s-=1/t.speed;let c=v(document.createElement(`div`),{width:`100%`,height:`100%`,background:y(t.color,r),borderRadius:n,boxShadow:S(i,a),animation:1/t.speed+`s linear `+s+`s infinite `+t.animation});o.appendChild(c),e.appendChild(o)}}function x(e){let t=/^\s*([a-zA-Z]+\s+)?(-?\d+(\.\d+)?)([a-zA-Z]*)\s+(-?\d+(\.\d+)?)([a-zA-Z]*)(.*)$/,n=[];for(let r=0,i=e.split(`,`);r<i.length;r++){let e=i[r].match(t);if(e===null)continue;let a=+e[2],o=+e[5],s=e[4],c=e[7];a===0&&!s&&(s=c),o===0&&!c&&(c=s),s===c&&n.push({prefix:e[1]||``,x:a,y:o,xUnits:s,yUnits:c,end:e[8]})}return n}function S(e,t){let n=[];for(let r=0,i=e;r<i.length;r++){let e=i[r],a=C(e.x,e.y,t);n.push(e.prefix+a[0]+e.xUnits+` `+a[1]+e.yUnits+e.end)}return n.join(`, `)}function C(e,t,n){let r=n*Math.PI/180,i=Math.sin(r),a=Math.cos(r);return[Math.round((e*a+t*i)*1e3)/1e3,Math.round((-e*i+t*a)*1e3)/1e3]}var w=class extends e{componentDidMount(){this.spinner=new _(this.props.config),this.props.stopped||this.spinner.spin(this.containerRef)}UNSAFE_componentWillReceiveProps(e){e.stopped===!0&&!this.props.stopped?this.spinner.stop():!e.stopped&&this.props.stopped===!0&&this.spinner.spin(this.containerRef)}componentWillUnmount(){this.spinner.stop()}render(){return n(`span`,{ref:e=>
1this.containerRef=e})}};w.defaultProps={config:{length:6,width:4,radius:20,corners:0}};export{h as a,u as i,_ as n,l as o,p as r,s,w as t}; 2//# sourceMappingURL=spinner-oymKqEjE.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.